PageSourceSearch

https://gptunnel.by/assets/Runtime.DSBWaS43.js

js gptunnel.by collected 2026-10-08 19:31:03 UTC 96,508 bytes, 1 lines download raw bytes

1var On=Object.defineProperty;var An=(e,t,n)=>t in e?On(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Tt=(e,t,n)=>An(e,typeof t!="symbol"?t+"":t,n);import{hb as Pe,hc as ke,hd as In,he as ae,hf as Ce,hg as Nn,hh as Ct,hi as Wt,hj as Zt,hk as Kt}from"./index.DWx_J-B-.js";import"./chart-nivo-vendor.9JbZHABU.js";import"./react-core-vendor.D_1TfdSv.js";import"./react-state-vendor.BtVmZG7G.js";import"./ui-core-vendor.BSpJcg8o.js";import"./utils-misc-vendor.CE3_DVpl.js";import"./utils-http-vendor.BNrwvkCX.js";import"./integration-vendor.C0kSE4vt.js";import"./analytics-vendor.hZLgeZwr.js";import"./editor-markdown-vendor.Dn4mW6yV.js";import"./media-vendor.CTndhX-I.js";let St=!1;function jn(){St||(console.warn("[LocatorJS]: No local storage available. Please check your browser settings."),St=!0)}function Xe(){return typeof localStorage=="undefined"||localStorage==null?(jn(),!1):!0}function Ie(){if(!Xe())return{};const e={},t=localStorage.getItem("LOCATOR_OPTIONS");if(t){const n=JSON.parse(t);typeof n.projectPath=="string"&&(e.projectPath=n.projectPath),typeof n.templateOrTemplateId=="string"&&(e.templateOrTemplateId=n.templateOrTemplateId),typeof n.adapterId=="string"&&(e.adapterId=n.adapterId),typeof n.replacePath=="object"&&typeof n.replacePath.from=="string"&&typeof n.replacePath.to=="string"&&(e.replacePath={from:n.replacePath.from,to:n.replacePath.to}),typeof n.disabled=="boolean"&&(e.disabled=n.disabled),typeof n.showIntro=="boolean"&&(e.showIntro=n.showIntro),typeof n.hrefTarget=="string"&&(e.hrefTarget=n.hrefTarget),typeof n.welcomeScreenDismissed=="boolean"&&(e.welcomeScreenDismissed=n.welcomeScreenDismissed)}return e}function Rn(e){Xe()&&localStorage.setItem("LOCATOR_OPTIONS",JSON.stringify(e))}function Bn(){Xe()&&localStorage.removeItem("LOCATOR_OPTIONS")}function Hn(e){if(!Xe())return;let t=localStorage.getItem("LOCATOR_OPTIONS");addEventListener("storage",n=>{if(n.key!=="LOCATOR_OPTIONS")return;const o=localStorage.getItem("LOCATOR_OPTIONS");o!==t&&(t=o,e(Ie()))})}function ge(e){const[t,n]=e.split("::");if(!t||!n)throw new Error("locatorjsId is malformed");return[t,n]}const Dn=!1,Mn=(e,t)=>e===t,gt=Symbol("solid-proxy"),Vn=typeof Proxy=="function",Fn=Symbol("solid-track"),Re={equals:Mn};let Ut=Yt;const le=1,Be=2,Jt={owned:null,cleanups:null,context:null,owner:null};var L=null;let ct=null,Wn=null,O=null,A=null,q=null,Ge=0;function Ne(e,t){const n=O,o=L,l=e.length===0,r=t===void 0?o:t,i=l?Jt:{owned:null,cleanups:null,context:r?r.context:null,owner:r},s=l?e:()=>e(()=>X(()=>$e(i)));L=i,O=null;try{return pe(s,!0)}finally{O=n,L=o}}function M(e,t){t=t?Object.assign({},Re,t):Re;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},o=l=>(typeof l=="function"&&(l=l(n.value)),Gt(n,l));return[Xt.bind(n),o]}function S(e,t,n){const o=$t(e,t,!1,le);Se(o)}function Te(e,t,n){Ut=Yn;const o=$t(e,t,!1,le);o.user=!0,q?q.push(o):Se(o)}function W(e,t,n){n=n?Object.assign({},Re,n):Re;const o=$t(e,t,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=n.equals||void 0,Se(o),Xt.bind(o)}function Zn(e){return pe(e,!1)}function X(e){if(O===null)return e();const t=O;O=null;try{return e()}finally{O=t}}function Kn(e){Te(()=>X(e))}function qt(e){return L===null||(L.cleanups===null?L.cleanups=[e]:L.cleanups.push(e)),e}function Un(e,t){const n=Symbol("context");return{id:n,Provider:Qn(n),defaultValue:e}}function Jn(e){let t;return L&&L.context&&(t=L.context[e.id])!==void 0?t:e.defaultValue}function qn(e){const t=W(e),n=W(()=>mt(t()));return n.toArray=()=>{const o=n();return Array.isArray(o)?o:o!=null?[o]:[]},n}function Xt(){if(this.sources&&this.state)if(this.state===le)Se(this);else{const e=A;A=null,pe(()=>De(this),!1),A=e}if(O){const e=this.observers?this.observers.length:0;O.sources?(O.sources.push(this),O.sourceSlots.push(e)):(O.sources=[this],O.sourceSlots=[e]),this.observers?(this.observers.push(O),this.observerSlots.push(O.sources.length-1)):(this.observers=[O],this.observerSlots=[O.sources.length-1])}return this.value}function Gt(e,t,n){let o=e.value;return(!e.comparator||!e.comparator(o,t))&&(e.value=t,e.observers&&e.observers.length&&pe(()=>{for(let l=0;l<e.observers.length;l+=1){const r=e.observers[l],i=ct&&ct.running;i&&ct.disposed.has(r),(i?!r.tState:!r.state)&&(r.pure?A.push(r):q.pu
1sh(r),r.observers&&zt(r)),i||(r.state=le)}if(A.length>1e6)throw A=[],new Error},!1)),t}function Se(e){if(!e.fn)return;$e(e);const t=Ge;Xn(e,e.value,t)}function Xn(e,t,n){let o;const l=L,r=O;O=L=e;try{o=e.fn(t)}catch(i){return e.pure&&(e.state=le,e.owned&&e.owned.forEach($e),e.owned=null),e.updatedAt=n+1,Qt(i)}finally{O=r,L=l}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Gt(e,o):e.value=o,e.updatedAt=n)}function $t(e,t,n,o=le,l){const r={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:L,context:L?L.context:null,pure:n};return L===null||L!==Jt&&(L.owned?L.owned.push(r):L.owned=[r]),r}function He(e){if(e.state===0)return;if(e.state===Be)return De(e);if(e.suspense&&X(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Ge);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===le)Se(e);else if(e.state===Be){const o=A;A=null,pe(()=>De(e,t[0]),!1),A=o}}function pe(e,t){if(A)return e();let n=!1;t||(A=[]),q?n=!0:q=[],Ge++;try{const o=e();return Gn(n),o}catch(o){n||(q=null),A=null,Qt(o)}}function Gn(e){if(A&&(Yt(A),A=null),e)return;const t=q;q=null,t.length&&pe(()=>Ut(t),!1)}function Yt(e){for(let t=0;t<e.length;t++)He(e[t])}function Yn(e){let t,n=0;for(t=0;t<e.length;t++){const o=e[t];o.user?e[n++]=o:He(o)}for(t=0;t<n;t++)He(e[t])}function De(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const o=e.sources[n];if(o.sources){const l=o.state;l===le?o!==t&&(!o.updatedAt||o.updatedAt<Ge)&&He(o):l===Be&&De(o,t)}}}function zt(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Be,n.pure?A.push(n):q.push(n),n.observers&&zt(n))}}function $e(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),o=e.sourceSlots.pop(),l=n.observers;if(l&&l.length){const r=l.pop(),i=n.observerSlots.pop();o<l.length&&(r.sourceSlots[i]=o,l[o]=r,n.observerSlots[o]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)$e(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)$e(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function zn(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Qt(e,t=L){throw zn(e)}function mt(e){if(typeof e=="function"&&!e.length)return mt(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const o=mt(e[n]);Array.isArray(o)?t.push.apply(t,o):t.push(o)}return t}return e}function Qn(e,t){return function(o){let l;return S(()=>l=X(()=>(L.context={...L.context,[e]:o.value},qn(()=>o.children))),void 0),l}}const eo=Symbol("fallback");function Et(e){for(let t=0;t<e.length;t++)e[t]()}function to(e,t,n={}){let o=[],l=[],r=[],i=0,s=t.length>1?[]:null;return qt(()=>Et(r)),()=>{let c=e()||[],u=c.length,f,a;return c[Fn],X(()=>{let h,g,x,v,y,b,C,T,P;if(u===0)i!==0&&(Et(r),r=[],o=[],l=[],i=0,s&&(s=[])),n.fallback&&(o=[eo],l[0]=Ne(B=>(r[0]=B,n.fallback())),i=1);else if(i===0){for(l=new Array(u),a=0;a<u;a++)o[a]=c[a],l[a]=Ne(d);i=u}else{for(x=new Array(u),v=new Array(u),s&&(y=new Array(u)),b=0,C=Math.min(i,u);b<C&&o[b]===c[b];b++);for(C=i-1,T=u-1;C>=b&&T>=b&&o[C]===c[T];C--,T--)x[T]=l[C],v[T]=r[C],s&&(y[T]=s[C]);for(h=new Map,g=new Array(T+1),a=T;a>=b;a--)P=c[a],f=h.get(P),g[a]=f===void 0?-1:f,h.set(P,a);for(f=b;f<=C;f++)P=o[f],a=h.get(P),a!==void 0&&a!==-1?(x[a]=l[f],v[a]=r[f],s&&(y[a]=s[f]),a=g[a],h.set(P,a)):r[f]();for(a=b;a<u;a++)a in x?(l[a]=x[a],r[a]=v[a],s&&(s[a]=y[a],s[a](a))):l[a]=Ne(d);l=l.slice(0,i=u),o=c.slice(0)}return l});function d(h){if(r[a]=h,s){const[g,x]=M(a);return s[a]=x,t(c[a],g)}return t(c[a])}}}function $(e,t){return X(()=>e(t||{}))}function Oe(){return!0}const no={get(e,t,n){return t===gt?n:e.get(t)},has(e,t){return t===gt?!0:e.has(t)},set:Oe,deleteProperty:Oe,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Oe,deleteProperty:Oe}},ownKeys(e){return e.keys()}};function at(e){return(e=typeof e=="function"?e():e)?e:{}}function oo(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function ro(...e){let t=!1;for(let i=0;i<e.length;i++){const s=e[i];t=t||!!s&&gt in s,e[i]=typeof s=="function"?(t=!0,W(s)):s}if(Vn&&t)return new Proxy({get(i){for(let s=e.length-1;s>=0;s--){const c=at(e[s])[i];if(c!==void 0)return c}},has(i){for(let s=e.length-1;s>=0;s--)if(i in at(e[s]))return!0;return!1},keys(){const i=[];for(let s=0;s<e.length;s++)i.push(...Object.keys(at(e[s])));return[...new Set(i)]}},no);const n={},o=Object.create(null);for(let i=e.length-1;i>=0;i--){const s=e[i];if(!s)continue;const c=Object.getOwnPropertyNames(s);for(let u=c.length-1;u>=0;u--){const f=c[u];if(f==="__proto__"||f==="constructor")continue;const a=Object.getOwnPropertyDescriptor(s,f);if(!o[f])o[f]=a.get?{enumerable:!0,configurable:!0,get:oo.bind(n[f]=[a.get.bind(s)])}:a.value!==void 0?a:void 0;else{const d=n[f];d&&(a.get?d.push(a.get.bind(s)):a.value!==void 0&&d.push(()=>a.value))}}}const l={},r=Object.keys(o);for(let i=r.length-1;i>=0;i--){const s=r[i],c=o[s];c&&c.get?Object.defineProperty(l,s,c):l[s]=c?c.value:void 0}return l}const lo=e=>`Stale read from <${e}>.`;function ye(e){const t="fallback"in e&&{fallback:()=>e.fallback};return W(to(()=>e.each,e.children,t||void 0))}function io(e){const t=e.keyed,n=W(()=>e.when,void 0,void 0),o=t?n:W(n,void 0,{equals:(l,r)=>!l==!r});return W(()=>{const l=o();if(l){const r=e.children;return typeof r=="function"&&r.length>0?X(()=>r(t?l:()=>{if(!X(o))throw lo("Show");return n()})):r}return e.fallback},void 0,void 0)}const _=e=>W(()=>e());function so(e,t,n){let o=n.length,l=t.length,r=o,i=0,s=0,c=t[l-1].nextSibling,u=null;for(;i<l||s<r;){if(t[i]===n[s]){i++,s++;continue}for(;t[l-1]===n[r-1];)l--,r--;if(l===i){const f=r<o?s?n[s-1].nextSibling:n[r-s]:c;for(;s<r;)e.insertBefore(n[s++],f)}else if(r===s)for(;i<l;)(!u||!u.has(t[i]))&&t[i].remove(),i++;else if(t[i]===n[r-1]&&n[s]===t[l-1]){const f=t[--l].nextSibling;e.insertBefore(n[s++],t[i++].nextSibling),e.insertBefore(n[--r],f),t[l]=n[r]}else{if(!u){u=new Map;let a=s;for(;a<r;)u.set(n[a],a++)}const f=u.get(t[i]);if(f!=null)if(s<f&&f<r){let a=i,d=1,h;for(;++a<l&&a<r&&!((h=u.get(t[a]))==null||h!==f+d);)d++;if(d>f-s){const g=t[i];for(;s<f;)e.insertBefore(n[s++],g)}else e.replaceChild(n[s++],t[i++])}else i++;else t[i++].remove()}}}const Lt="_$DX_DELEGATE";function co(e,t,n,o={}){let l;return Ne(r=>{l=r,t===document?e():p(t,e(),t.firstChild?null:void 0,n)},o.owner),()=>{l(),t.textContent=""}}function w(e,t,n,o){let l;const r=()=>{const s=document.createElement("template");return s.innerHTML=e,s.content.firstChild},i=()=>(l||(l=r())).cloneNode(!0);return i.cloneNode=i,i}function I(e,t=window.document){const n=t[Lt]||(t[Lt]=new Set);for(let o=0,l=e.length;o<l;o++){const r=e[o];n.has(r)||(n.add(r),t.addEventListener(r,ao))}}function j(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function Z(e,t){t==null?e.removeAttribute("class"):e.className=t}function je(e,t,n){if(!t)return n?j(e,"style"):t;const o=e.style;if(typeof t=="string")return o.cssText=t;typeof n=="string"&&(o.cssText=n=void 0),n||(n={}),t||(t={});let l,r;for(r in n)t[r]==null&&o.removeProperty(r),delete n[r];for(r in t)l=t[r],l!==n[r]&&(o.setProperty(r,l),n[r]=l);return n}function we(e,t,n){return X(()=>e(t,n))}function p(e,t,n,o){if(n!==void 0&&!o&&(o=[]),typeof t!="function")return Me(e,t,o,n);S(l=>Me(e,t(),l,n),o)}function ao(e){let t=e.target;const n=`$$${e.type}`,o=e.target,l=e.currentTarget,r=c=>Object.defineProperty(e,"target",{configurable:!0,value:c}),i=()=>{const c=t[n];if(c&&!t.disabled){const u=t[`${n}Data`];if(u!==void 0?c.call(t,u,e):c.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&r(t.host),!0},s=()=>{for(;i()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),e.composedPath){const c=e.composedPath();r(c[0]);for(let u=0;u<c.length-2&&(t=c[u],!!i());u++){if(t._$host){t=t._$host,s();break}if(t.parentNode===l)break}}else s();r(o)}function Me(e,t,n,o,l){for(;typeof n=="function";)n=n();if(t===n)return n;const r=typeof t,i=o!==void 0;if(e=i&&n[0]&&n[0].parentNode||e,r==="string"||r==="number"){if(r==="number"&&(t=t.toString(),t===n))return n;if(i){let s=n[0];s&&s.nodeType===3?s.data!==t&&(s.data=t):s=document.createTextNode(t),n=ue(e,n,o,s)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||r==="boolean")n=ue(e,n,o);else{if(r==="function")return S(()=>{let s=t();for(;typeof s=="function";)s=s();n=Me(e,s,n,o)}),()=>n;if(Array.isArray(t)){const s=[],c=n&&Array.isArray(n);if(pt(s,t,n,l))return S(()=>n=Me(e,s,n,o,!0)),()=>n;if(s.length===0){if(n=ue(e,n,o),i)return n}else c?n.length===0?Ot(e,s,o):so(e,n,s):(n&&ue(e),Ot(e,s));n=s}else if(t.nodeType){if(Array.isArray(n)){if(i)return n=ue(e,n,o,t);ue(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function pt(e,t,n,o){let l=!1;for(let r=0,i=t.length;r<i;r++){let s=t[r],c=n&&n[e.length],u;if(!(s==null||s===!0||s===!1))if((u=typeof s)=="object"&&s.nodeType)e.push(s);else if(Array.isArray(s))l=pt(e,s,c)||l;else if(u==="function")if(o){for(;typeof s=="function";)s=s();l=pt(e,Array.isArray(s)?s:[s],Array.isArray(c)?c:[c])||l}else e.push(s),l=!0;else{const f=String(s);c&&c.nodeType===3&&c.data===f?e.push(c):e.push(document.createTextNode(f))}}return l}function Ot(e,t,n=null){for(let o=0,l=t.length;o<l;o++)e.insertBefore(t[o],n)}function ue(e,t,n,o){if(n===void 0)return e.textContent="";const l=o||document.createTextNode("");if(t.length){let r=!1;for(let i=t.length-1;i>=0;i--){const s=t[i];if(l!==s){const c=s.parentNode===e;!r&&!i?c?e.replaceChild(l,s):e.insertBefore(l,n):c&&s.remove()}else r=!0}}else e.insertBefore(l,n);return[l]}function en(){const t=(document.documentElement.dataset.locatorMouseModifiers||"alt").split("+"),n={};return t.forEach(o=>{n[o]=!0},{}),n}
1function fe(e,t=!1){const n=en();return t?e.altKey==!!n.alt&&e.metaKey==!!n.meta&&e.shiftKey==!!n.shift:e.altKey==!!n.alt&&e.ctrlKey==!!n.ctrl&&e.metaKey==!!n.meta&&e.shiftKey==!!n.shift}function Ve(e){let t=e;for(;t;){if(t._debugSource)return{fiber:t,source:t._debugSource};t=t._debugOwner||null}return null}function Fe(e,t){var l;const n=(l=window.__REACT_DEVTOOLS_GLOBAL_HOOK__)==null?void 0:l.renderers,o=n==null?void 0:n.values();if(o){for(const r of Array.from(o))if(r.findFiberByHostInstance){const i=r.findFiberByHostInstance(e);if(i)return i}}return null}function tn(e){var t,n,o;return e?typeof e.elementType=="string"?e.elementType:e.elementType?e.elementType.name?e.elementType.name:e.elementType.displayName?e.elementType.displayName:(t=e.elementType.type)!=null&&t.name?e.elementType.type.name:(o=(n=e.elementType._payload)==null?void 0:n._result)!=null&&o.name?e.elementType._payload._result.name:"Anonymous":"Anonymous":"Not found"}function We(e,t){return{label:tn(e),link:t?{filePath:t.fileName,projectPath:"",line:t.lineNumber,column:t.columnNumber||0}:null}}function nn(e){const t=[];let n=e.child;for(;n;)t.push(n),n=n.sibling;return t}function uo(e){const t=[e];let n=e;for(;n.return;){if(n=n.return,n.stateNode&&n.stateNode instanceof HTMLElement||nn(n).length>1)return t;
1t.push(n)}return t}function on(e){return e!=null}function fo(e){const t={};return e.map(n=>{const o=JSON.stringify(n);return t[o]?null:(t[o]=!0,n)}).filter(on)}function rn(e){return e.stateNode&&e.stateNode.getBoundingClientRect?e.stateNode.getBoundingClientRect():null}function Ye(e,t){const n=Math.min(e.x,t.x),o=Math.min(e.y,t.y);return{x:n,y:o,width:Math.max(e.x+e.width,t.x+t.width)-n,height:Math.max(e.y+e.height,t.y+t.height)-o}}const ho=6;function ln(e,t=0){const n=nn(e);let o;return n.forEach(l=>{let r=rn(l);!r&&t<ho&&(r=ln(l,t+1)||null),r&&(r.width<=0||r.height<=0||(o?o=Ye(o,r):o=r))}),o}function sn(e){var t,n;return!!((n=(t=e._debugOwner)==null?void 0:t.elementType)!=null&&n.styledComponentId)}function go(e){const t=[],n=e.stateNode;if(!n||!(n instanceof HTMLElement))throw new Error("This functions works only for Fibres with HTMLElement stateNode");let o=n.getBoundingClientRect(),l=sn(e)&&e._debugOwner?e._debugOwner:e;for(;l._debugOwner||l.return;){l=l._debugOwner||l.return;const r=l.stateNode;if(!r||!(r instanceof HTMLElement))return{component:l,parentElements:t,componentBox:ln(l)||o};const i=tn(l);o=Ye(o,r.getBoundingClientRect()),t.push({box:r.getBoundingClientRect(),label:i,link:null})}throw new Error("Could not find root component")}function ze(e){let t=e;const n=new Set;let o=t;const l=t.uniqueId;n.add(o.uniqueId);let r=2;for(;o&&r>0;)r--,o=o.getParent(),o&&(n.add(o.uniqueId),t=o);return{expandedIds:n,highlightedId:l,root:t,originalNode:e}}const ut=new WeakMap;let At=0;function mo(e){return ut.has(e)||(At++,ut.set(e,At)),ut.get(e)}class Qe{constructor(t){Tt(this,"type","element");this.element=t,this.name=t.nodeName.toLowerCase(),this.uniqueId=String(mo(t))}getBox(){return this.element.getBoundingClientRect()}getElement(){return this.element}getChildren(){return Array.from(this.element.children).map(n=>n instanceof HTMLElement?new this.constructor(n):null).filter(on)}getParent(){return this.element.parentElement?new this.constructor(this.element.parentElement):null}getSource(){throw new Error("Method not implemented.")}getComponent(){throw new Error("Method not implemented.")}}function po(e){var o;const t=[],n=Fe(e);if(n){const{component:l,componentBox:r,parentElements:i}=go(n);uo(l).forEach(u=>{const f=Ve(u);if(f){const a=We(f.fiber,f.source);t.push(a)}});const c=We(n,(o=Ve(n))==null?void 0:o.source);return sn(n)&&(c.label=`${c.label} (styled)`),{thisElement:{box:rn(n)||e.getBoundingClientRect(),...c},htmlElement:e,parentElements:i,componentBox:r,componentsLabels:fo(t)}}return null}class yo extends Qe{getSource(){const t=Fe(this.element);return t&&t._debugSource?{fileName:t._debugSource.fileName,lineNumber:t._debugSource.lineNumber,columnNumber:t._debugSource.columnNumber}:null}getComponent(){var o;const t=Fe(this.element),n=t==null?void 0:t._debugOwner;if(n){const l=We(n,(o=Ve(n))==null?void 0:o.source);return{label:l.label,callLink:l.link&&{fileName:l.link.filePath,lineNumber:l.link.line,columnNumber:l.link.column,projectPath:l.link.projectPath}||void 0}}return null}}function xo(e){const t=new yo(e);return ze(t)}function It(e){var n;const t=We(e,(n=Ve(e))==null?void 0:n.source);return{title:t.label,link:t.link}}function vo(e){const t=Fe(e);if(t){const n=[];let o=t;for(n.push(It(o));o._debugOwner;)o=o._debugOwner,n.push(It(o));return n}return[]}const Q={getElementInfo:po,getTree:xo,getParentsPaths:vo};function Ze(e,t){if(e.dataset.locatorjsId){const[,n]=ge(e.dataset.locatorjsId),o=t.expressions[Number(n)];if(o)return o}return null}function bo(e,t,n,o){let l=e.getBoundingClientRect();function r(i){const s=i.parentNode;if(s&&s instanceof HTMLElement)if(s.dataset.locatorjsId){const[c]=ge(s.dataset.locatorjsId),u=t[c];if(u){const f=Ze(s,u);f&&(f.wrappingComponentId===o&&n===c&&(l=Ye(l,s.getBoundingClientRect()),r(s)),f.wrappingComponentId)}}else r(s)}return r(e),l}function cn(e){var n,o,l,r;const t=e.closest("[data-locatorjs-id]");if(t&&t instanceof HTMLElement&&t.dataset&&(t.dataset.locatorjsId||t.dataset.locatorjsStyled)){const i=t.dataset.locatorjsId,s=t.dataset.locatorjsStyled;if(!i)return null;const[c]=ge(i),[u,f]=s?ge(s):[null,null],a=window.__LOCATOR_DATA__;if(!a)return null;const d=a[c];if(!d)return null;const h=u&&a[u],g=Ze(t,d);if(!g)return null;const x=h&&h.styledDefinitions[Number(f)];x&&(h.filePath,h.projectPath,(((n=x.loc)==null?void 0:n.start.column)||0)+1,(o=x.loc)!=null&&o.start.line);const v=g.wrappingComponentId!==null?d.components[Number(g.wrappingComponentId)]:null;return{thisElement:{box:t.getBoundingClientRect(),label:g.name,link:{filePath:d.filePath,projectPath:d.projectPath,column:(g.loc.start.column||0)+1,line:g.loc.start.line||0}},htmlElement:t,parentElements:[],componentBox:bo(t,a,c,Number(g.wrappingComponentId)),componentsLabels:v?[{label:v.name||"component",link:{filePath:d.filePath,projectPath:d.projectPath,column:(((l=v.loc)==null?void 0:l.start.column)||0)+1,line:((r=v.loc)==null?void 0:r.start.line)||0}}]:[]}}return null}class wo extends Qe{getSource(){const t=this.element.dataset.locatorjsId,n=window.__LOCATOR_DATA__;if(t&&n){const[o]=ge(t),l=n[o];if(l){const r=Ze(this.element,l);if(r)return{fileName:l.filePath,projectPath:l.projectPath,columnNumber:(r.loc.start.column||0)+1,lineNumber:r.loc.start.line||0}}}return null}getComponent(){var o,l;const t=this.element.dataset.locatorjsId,n=window.__LOCATOR_DATA__;if(t&&n){const[r]=ge(t),i=n[r];if(i){const s=Ze(this.element,i);if(s&&s.wrappingComponentId!==null){const c=i.components[s.wrappingComponentId];
1if(c)return{label:c.name||"component",definitionLink:{fileName:i.filePath,projectPath:i.projectPath,columnNumber:(((o=c.loc)==null?void 0:o.start.column)||0)+1,lineNumber:((l=c.loc)==null?void 0:l.start.line)||0}}}}}return null}}function Co(e){const t=new wo(e);return ze(t)}function $o(e){const t=[];let n=e,o=null;do{if(n){const l=cn(n),r=JSON.stringify(l==null?void 0:l.componentsLabels);if(l&&r!==o){o=r;const i=l.thisElement.link,s=l.thisElement.label;i&&t.push({title:s,link:i})}}n=n.parentElement}while(n);return t}const ee={getElementInfo:cn,getTree:Co,getParentsPaths:$o};function _o(e){if(e.__svelte_meta){const{loc:t}=e.__svelte_meta;return{thisElement:{box:e.getBoundingClientRect(),label:e.nodeName.toLowerCase(),link:{column:t.column+1,line:t.line+1,filePath:t.file,projectPath:""}},htmlElement:e,parentElements:[],componentBox:e.getBoundingClientRect(),componentsLabels:[]}}return null}class Po extends Qe{getSource(){const t=this.element;if(t.__svelte_meta){const{loc:n}=t.__svelte_meta;return{fileName:n.file,lineNumber:n.line+1,columnNumber:n.column+1}}return null}getComponent(){return null}}function ko(e){const t=new Po(e);return ze(t)}function To(e){var l,r;const t=[];let n=e,o=1e4;do{if(n!=null&&n.__svelte_meta){const{loc:i}=n.__svelte_meta;i.file===((r=(l=t[t.length-1])==null?void 0:l.link)==null?void 0:r.filePath)||t.push({title:n.nodeName.toLowerCase(),link:{column:i.column+1,line:i.line+1,filePath:i.file,projectPath:""}})}if(n=n.parentElement,o--,o<0)break}while(n);return t}const te={getElementInfo:_o,getTree:ko,getParentsPaths:To};function an(e){var n,o,l;let t=null;return(n=e==null?void 0:e.subTree)!=null&&n.children&&((o=e==null?void 0:e.subTree)==null?void 0:o.children)instanceof Array&&((l=e==null?void 0:e.subTree)==null||l.children.forEach(r=>{const i=So(r);i&&(i.width<=0||i.height<=0||(t?t=Ye(t,i):t=i))})),t}function So(e){return e.el instanceof HTMLElement?e.el.getBoundingClientRect():e.component?an(e.component):null}function un(e){const t=e.__vueParentComponent;if(t){if(!t.type)return null;const n=an(t),{__file:o,__name:l}=t.type;if(o&&l)return{thisElement:{box:e.getBoundingClientRect(),label:e.nodeName.toLowerCase(),link:{column:1,line:1,filePath:o,projectPath:""}},htmlElement:e,parentElements:[],componentBox:n||e.getBoundingClientRect(),componentsLabels:[{label:l,link:{column:1,line:1,filePath:o,projectPath:""}}]}}return null}class Eo extends Qe{getSource(){const n=this.element.__vueParentComponent;if(n&&n.type){const{__file:o}=n.type;if(o)return{fileName:o,lineNumber:1,columnNumber:1}}return null}getComponent(){return null}}function Lo(e){const t=new Eo(e);return ze(t)}function Oo(e){const t=[];let n=e,o=null;do{if(n){const l=un(n),r=JSON.stringify(l==null?void 0:l.componentsLabels);if(l&&r!==o){o=r;const i=l.thisElement.link,s=l.thisElement.label;i&&t.push({title:s,link:i})}}n=n.parentElement}while(n);return t}const ne={getElementInfo:un,getTree:Lo,getParentsPaths:Oo};function Ke(e,t){return t==="react"?Q.getElementInfo(e):t==="svelte"?te.getElementInfo(e):t==="jsx"?ee.getElementInfo(e):t==="vue"?ne.getElementInfo(e):ee.getElementInfo(e)||Q.getElementInfo(e)||te.getElementInfo(e)||ne.getElementInfo(e)}function fn(e,t){window.open(e,t.getOptions().hrefTarget)}function yt(e,t,n){const o=Pe(e,t,n);window.open(o,n.getOptions().hrefTarget||ke)}function Nt(e,t,n){return fn(In(e,t,n),n)}function Ao(){const[e,t]=M(Ie());Hn(o=>{t(o)}),window.addEventListener("message",o=>{o.source==window&&o.data.type&&o.data.type=="LOCATOR_EXTENSION_UPDATED_OPTIONS"&&t(Ie())},!1);function n(o){const r={...Ie(),...o};Rn(r),t(r)}return window.enableLocator=()=>(n({disabled:!1}),"Locator enabled"),{setOptions:n,getOptions:e}}const dn=Un();function Io(e){const t=Ao();return $(dn.Provider,{value:t,get children(){return e.children}})}function J(){const e=Jn(dn);if(!e)throw new Error("Options context is not provided");return e}const No=w('<div class="border border-purple-500"><div id="locatorjs-labels-section"><div id="locatorjs-labels-wrapper">'),jo=w('<a class="cursor-pointer bg-purple-500 block text-white text-xs font-bold text-center px-1 py-0.5 rounded whitespace-nowrap pointer-events-auto hover:bg-purple-600">'),Ro=w('<div class="cursor-pointer bg-purple-500 block text-white text-xs font-bold text-center px-1 py-0.5 rounded whitespace-nowrap pointer-events-auto hover:bg-purple-600">');function Bo(e){const t=J(),n=()=>e.bbox.height>=window.innerHeight-40,o=()=>e.bbox.y<30&&!n(),l=()=>Math.max(e.bbox.x-ae,0),r=()=>Math.max(e.bbox.y-ae,0),i=()=>e.bbox.y<0?-(e.bbox.y-ae):0,s=()=>e.bbox.x<0?-(e.bbox.x-ae):0,c=()=>Math.min(e.bbox.width-s()+ae*2,window.innerWidth),u=()=>Math.min(e.bbox.height-i()+ae*2,window.innerHeight);return(()=>{const f=No(),a=f.firstChild,d=a.firstChild;return f.style.setProperty("z-index","1"),f.style.setProperty("position","fixed"),p(d,$(ye,{get each(){return e.labels},children:h=>{const g=h.link?Pe(h.link,e.targets,t):null,x={"line-height":"18px"};return g?(()=>{const v=jo();return v.$$click=()=>{fn(g,t)},je(v,x),j(v,"href",g),p(v,()=>h.label),S(()=>j(v,"target",t.getOptions().hrefTarget||ke)),v})():(()=>{const v=Ro();return je(v,x),p(v,()=>h.label),v})()}})),S(h=>{const g=l()+"px",x=r()+"px",v=c()+"px",y=u()+"px",b=l()===0||r()===0?"0":"8px",C=l()+c()===window.innerWidth||r()===0?"0":"8px",T=l()===0||r()+u()===window.innerHeight?"0":"8px",P=l()+c()===window.innerWidth||r()+u()===window.innerHeight?"0":"8px",B={position:"absolute",display:"flex","justify-content":"center",bottom:o()?n()?"2px":"-28px":void 0,top:o()?void 0:n()?"2px":"-28px",left:"0px",width:"100%","pointer-events":"auto",cursor:"pointer",...o()?{"border-bottom-left-radius":"100%","border-bottom-right-radius":"100%"}:{"border-top-left-radius":"100%","border-top-right-radius":"100%"}},H=o()?"10px 10px 2px 10px":"2px 10px 10px 10px";return g!==h._v$&&((h._v$=g)!=null?f.style.setProperty("left",g):f.style.removeProperty("left")),x!==h._v$2&&((h._v$2=x)!=null?f.style.setProperty("top",x):f.style.removeProperty("top")),v!==h._v$3&&((h._v$3=v)!=null?f.style.setProperty("width",v):f.style.removeProperty("width")),y!==h._v$4&&((h._v$4=y)!=null?f.style.setProperty("height",y):f.style.removeProperty("height")),b!==h._v$5&&((h._v$5=b)!=null?f.style.setProperty("border-top-left-radius",b):f.style.removeProperty("border-top-left-radius")),C!==h._v$6&&((h._v$6=C)!=null?f.style.setProperty("border-top-right-radius",C):f.style.removeProperty("border-top-right-radius")),T!==h._v$7&&((h._v$7=T)!=null?f.style.setProperty("border-bottom-left-radius",T):f.style.removeProperty("border-bottom-left-radius")),P!==h._v$8&&((h._v$8=P)!=null?f.style.setProperty("border-bottom-right-radius",P):f.style.removeProperty("border-bottom-right-radius")),h._v$9=je(a,B,h._v$9),H!==h._v$10&&((
1h._v$10=H)!=null?d.style.setProperty("padding",H):d.style.removeProperty("padding")),h},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0,_v$6:void 0,_v$7:void 0,_v$8:void 0,_v$9:void 0,_v$10:void 0}),f})()}I(["click"]);const Ho=w('<button class="py-1 px-1 hover:bg-white/30 pointer hover:text-gray-100 rounded">');function xt(e){return(()=>{const t=Ho();return t.$$click=n=>{n.preventDefault(),n.stopPropagation(),e.onClick()},p(t,()=>e.children),t})()}I(["click"]);const Do=w('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>check-bold</title><path fill="green" d="M9,20.42L2.79,14.21L5.62,11.38L9,14.77L18.88,4.88L21.71,7.71L9,20.42Z">'),Mo=w('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z">');function Vo(e){const[t,n]=M(!1);return $(xt,{onClick:()=>{n(!0),setTimeout(()=>{n(!1)},2e3),e.onClick()},get children(){return _(()=>!!t())()?(()=>{const o=Do();return o.style.setProperty("width","16px"),o.style.setProperty("height","16px"),o.style.setProperty("pointer-events","none"),o})():(()=>{const o=Mo();return o.style.setProperty("width","16px"),o.style.setProperty("height","16px"),o.style.setProperty("pointer-events","none"),o})()}})}const Fo=w('<div class="fixed flex text-xs font-bold items-center justify-center text-blue-500 bg-blue-500/30">'),Wo=w('<div class="fixed flex text-xs font-bold items-center justify-center text-orange-500 bg-orange-500/30">'),Zo=w('<div class="fixed flex text-xs font-bold items-center justify-center text-green-500 bg-green-500/30">');function Ko(e){return[_(()=>Object.entries(e.allBoxes.margin).map(([,t])=>(()=>{const n=Wo();return n.style.setProperty("text-shadow","-1px 1px 0 #fff, 1px 1px 0 #fff, 1px -1px 0 #fff, -1px -1px 0 #fff"),S(o=>{const l=t.left+"px",r=t.top+"px",i=t.width+"px",s=t.height+"px";return l!==o._v$5&&((o._v$5=l)!=null?n.style.setProperty("left",l):n.style.removeProperty("left")),r!==o._v$6&&((o._v$6=r)!=null?n.style.setProperty("top",r):n.style.removeProperty("top")),i!==o._v$7&&((o._v$7=i)!=null?n.style.setProperty("width",i):n.style.removeProperty("width")),s!==o._v$8&&((o._v$8=s)!=null?n.style.setProperty("height",s):n.style.removeProperty("height")),o},{_v$5:void 0,_v$6:void 0,_v$7:void 0,_v$8:void 0}),n})())),_(()=>Object.entries(e.allBoxes.padding).map(([,t])=>(()=>{const n=Zo();return n.style.setProperty("text-shadow","-1px 1px 0 #fff, 1px 1px 0 #fff, 1px -1px 0 #fff, -1px -1px 0 #fff"),S(o=>{const l=t.left+"px",r=t.top+"px",i=t.width+"px",s=t.height+"px";return l!==o._v$9&&((o._v$9=l)!=null?n.style.setProperty("left",l):n.style.removeProperty("left")),r!==o._v$10&&((o._v$10=r)!=null?n.style.setProperty("top",r):n.style.removeProperty("top")),i!==o._v$11&&((o._v$11=i)!=null?n.style.setProperty("width",i):n.style.removeProperty("width")),s!==o._v$12&&((o._v$12=s)!=null?n.style.setProperty("height",s):n.style.removeProperty("height")),o},{_v$9:void 0,_v$10:void 0,_v$11:void 0,_v$12:void 0}),n})())),(()=>{const t=Fo();return t.style.setProperty("text-shadow","-1px 1px 0 #fff, 1px 1px 0 #fff, 1px -1px 0 #fff, -1px -1px 0 #fff"),p(t,()=>e.allBoxes.innerBox.label),S(n=>{const o=e.allBoxes.innerBox.left+"px",l=e.allBoxes.innerBox.top+"px",r=e.allBoxes.innerBox.width+"px",i=e.allBoxes.innerBox.height+"px";return o!==n._v$&&((n._v$=o)!=null?t.style.setProperty("left",o):t.style.removeProperty("left")),l!==n._v$2&&((n._v$2=l)!=null?t.style.setProperty("top",l):t.style.removeProperty("top")),r!==n._v$3&&((n._v$3=r)!=null?t.style.setProperty("width",r):t.style.removeProperty("width")),i!==n._v$4&&((n._v$4=i)!=null?t.style.setProperty("height",i):t.style.removeProperty("height")),n},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0}),t})()]}const Uo=w('<div class="group/tooltip relative block"><div role="tooltip">');function ft(e){const t={bottom:"-bottom-7 left-1/2 -translate-x-1/2 transform",left:"-left-2 top-1/2 -translate-y-1/2 -translate-x-full transform",right:"-right-2 top-1/2 -translate-y-1/2 translate-x-full transform",top:"-top-7 left-1/2 -translate-x-1/2 transform"};return(()=>{const n=Uo(),o=n.firstChild;return p(n,()=>e.children,o),p(o,()=>e.tooltipText),S(()=>Z(o,"pointer-events-none invisible absolute z-10 whitespace-nowrap rounded bg-gray-700 px-2 py-1 text-center text-xs text-white opacity-0 transition-opacity duration-300 group-hover/tooltip:visible group-hover/tooltip:opacity-100 "+t[e.position||"top"])),n})()}const Jo=w('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>sitemap</title>
1<path fill="currentColor" d="M9,2V8H11V11H5C3.89,11 3,11.89 3,13V16H1V22H7V16H5V13H11V16H9V22H15V16H13V13H19V16H17V22H23V16H21V13C21,11.89 20.11,11 19,11H13V8H15V2H9Z">'),qo=w('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>format-list-text</title><path fill="currentColor" d="M2 14H8V20H2M16 8H10V10H16M2 10H8V4H2M10 4V6H22V4M10 20H16V18H10M10 16H22V14H10">'),Xo=w('<div><div class="fixed flex text-xs font-bold items-center justify-center text-sky-500 rounded border border-solid border-sky-500"><div class="absolute bg-black/60 text-white font-bold rounded-md px-1 py-1 flex">');function Go(e){const t=()=>e.element.thisElement.box,n=()=>{const r=e.element.htmlElement,i=e.element.thisElement.box;if(r&&i){const s=window.getComputedStyle(r),c={top:parseFloat(s.marginTop),left:parseFloat(s.marginLeft),right:parseFloat(s.marginRight),bottom:parseFloat(s.marginBottom)},u={top:parseFloat(s.paddingTop),left:parseFloat(s.paddingLeft),right:parseFloat(s.paddingRight),bottom:parseFloat(s.paddingBottom)},f={top:{top:i.y-c.top,left:i.x,width:i.width,height:c.top,label:z(c.top)},left:{top:i.y-c.top,left:i.x-c.left,width:c.left,height:i.height+c.top+c.bottom,label:z(c.left)},right:{top:i.y-c.top,left:i.x+i.width,width:c.right,height:i.height+c.top+c.bottom,label:z(c.right)},bottom:{top:i.y+i.height,left:i.x,width:i.width,height:c.bottom,label:z(c.bottom)}},a={top:{top:i.y,left:i.x,width:i.width,height:u.top,label:z(u.top)},left:{top:i.y+u.top,left:i.x,width:u.left,height:i.height-u.top-u.bottom,label:z(u.left)},right:{top:i.y+u.top,left:i.x+i.width-u.right,width:u.right,height:i.height-u.top-u.bottom,label:z(u.right)},bottom:{top:i.y+i.height-u.bottom,left:i.x,width:i.width,height:u.bottom,label:z(u.bottom)}};return{margin:f,padding:a,innerBox:{top:i.y+u.top,left:i.x+u.left,width:i.width-u.left-u.right,height:i.height-u.top-u.bottom,label:""}}
1}return null};let o;function l(){const r=(o==null?void 0:o.clientWidth)||80,i={top:-16,left:0};return t().width<r&&(i.left=-r/2+t().width/2-1),t().height<40&&(i.top=-30),{top:i.top+"px",left:i.left+"px"}}return[(()=>{const r=Xo(),i=r.firstChild,s=i.firstChild;p(r,(()=>{const u=_(()=>!!n());return()=>u()&&$(Ko,{get allBoxes(){return n()}})})(),i),i.style.setProperty("z-index","2"),i.style.setProperty("text-shadow","-1px 1px 0 #fff, 1px 1px 0 #fff, 1px -1px 0 #fff, -1px -1px 0 #fff"),i.style.setProperty("text-overflow","ellipsis");const c=o;return typeof c=="function"?we(c,s):o=s,p(s,$(ft,{tooltipText:"Tree view",get children(){return $(xt,{onClick:()=>{e.showTreeFromElement(e.element.htmlElement)},get children(){const u=Jo();return u.style.setProperty("width","16px"),u.style.setProperty("height","16px"),u.style.setProperty("pointer-events","none"),u}})}}),null),p(s,$(ft,{tooltipText:"Parents",get children(){return $(xt,{onClick:()=>{e.showParentsPath(e.element.htmlElement,t().x+2,t().y+20)},get children(){const u=qo();return u.style.setProperty("width","16px"),u.style.setProperty("height","16px"),u.style.setProperty("pointer-events","none"),u}})}}),null),p(s,$(ft,{tooltipText:"Copy path",get children(){return $(Vo,{onClick:()=>{e.copyToClipboard(e.element.htmlElement)}})}}),null),p(i,()=>e.element.thisElement.label,null),S(u=>{const f=t().x+"px",a=t().y+"px",d=t().width+"px",h=t().height+"px",g={"text-shadow":"none","pointer-events":"auto",...l()};return f!==u._v$&&((u._v$=f)!=null?i.style.setProperty("left",f):i.style.removeProperty("left")),a!==u._v$2&&((u._v$2=a)!=null?i.style.setProperty("top",a):i.style.removeProperty("top")),d!==u._v$3&&((u._v$3=d)!=null?i.style.setProperty("width",d):i.style.removeProperty("width")),h!==u._v$4&&((u._v$4=h)!=null?i.style.setProperty("height",h):i.style.removeProperty("height")),u._v$5=je(s,g,u._v$5),u},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0}),r})(),_((()=>{const r=_(()=>e.element.componentsLabels.length>0);return()=>r()&&$(Bo,{get labels(){return e.element.componentsLabels},get bbox(){return e.element.componentBox},get element(){return e.element.htmlElement},get showTreeFromElement(){return e.showTreeFromElement},get targets(){return e.targets}})})())]}function z(e){return e?`${e}px`:""}const Yo=w('<div class="fixed top-0 left-0 w-screen h-screen flex items-center justify-center"><div class="flex items-center justify-center">No source found');function zo(e){const t=W(()=>Ke(e.currentElement,e.adapterId)),n=()=>e.currentElement.getBoundingClientRect();return _((()=>{const o=_(()=>!!t());return()=>o()?$(Go,{get element(){return t()},get showTreeFromElement(){return e.showTreeFromElement},get showParentsPath(){return e.showParentsPath},get copyToClipboard(){return e.copyToClipboard},get targets(){return e.targets}}):(()=>{const l=Yo(),r=l.firstChild;return r.style.setProperty("position","absolute"),r.style.setProperty("background-color","rgba(222, 0, 0, 0.3)"),r.style.setProperty("border","1px solid rgba(222, 0, 0, 0.5)"),r.style.setProperty("border-radius","2px"),r.style.setProperty("font-size","12px"),r.style.setProperty("font-weight","bold"),r.style.setProperty("text-shadow","-1px 1px 0 #fff, 1px 1px 0 #fff, 1px -1px 0 #fff, -1px -1px 0 #fff"),r.style.setProperty("text-overflow","ellipsis"),S(i=>{const s=n().x+"px",c=n().y+"px",u=n().width+"px",f=n().height+"px";return s!==i._v$&&((i._v$=s)!=null?r.style.setProperty("left",s):r.style.removeProperty("left")),c!==i._v$2&&((i._v$2=c)!=null?r.style.setProperty("top",c):r.style.removeProperty("top")),u!==i._v$3&&((i._v$3=u)!=null?r.style.setProperty("width",u):r.style.removeProperty("width")),f!==i._v$4&&((i._v$4=f)!=null?r.style.setProperty("height",f):r.style.removeProperty("height")),i},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0}),l})()})())}const jt=w("<div>");function Qo(e){const t=()=>e.node.type==="component"?2:0,n=()=>e.node.getBox();return(()=>{const o=jt();return p(o,(()=>{const l=_(()=>!!n());return()=>l()?(()=>{const r=jt();return r.style.setProperty("position","fixed"),S(i=>{const s=n().x-t()+"px",c=n().y-t()+"px",u=n().width+t()*2+"px",f=n().height+t()*2+"px",a=e.node.type==="component"?"2px solid rgba(200,0,0,1)":"1px solid rgba(200,0,0,1)",d=e.node.type==="component"?"5px":"3px",h=e.node.type==="component"?1e3:10;return s!==i._v$&&((i._v$=s)!=null?r.style.setProperty("left",s):r.style.removeProperty("left")),c!==i._v$2&&((i._v$2=c)!=null?r.style.setProperty("top",c):r.style.removeProperty("top")),u!==i._v$3&&((i._v$3=u)!=null?r.style.setProperty("width",u):r.style.removeProperty("width")),f!==i._v$4&&((i._v$4=f)!=null?r.style.setProperty("height",f):r.style.removeProperty("height")),a!==i._v$5&&((i._v$5=a)!=null?r.style.setProperty("border",a):r.style.removeProperty("border")),d!==i._v$6&&((i._v$6=d)!=null?r.style.setProperty("border-radius",d):r.style.removeProperty("border-radius")),h!==i._v$7&&((i._v$7=h)!=null?r.style.setProperty("z-index",h):r.style.removeProperty("z-index")),i},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0,_v$6:void 0,_v$7:void 0}),r})():null})()),o})()}function et(){return"fixed left-3 bottom-3 bg-white shadow-lg rounded-lg py-3 px-3 border-2 border-red-500 transition-all pointer-events-auto"}const er=w('<a class="hover:bg-slate-50 rounded" title="LocatorJS" href="https://www.locatorjs.com" target="_blank">
1<svg width="276" height="66" viewBox="0 0 276 66" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_12_2)"><path d="M81.2989 47.0524H95.4743V51H76.8579V19.2399H81.2989V47.0524ZM120.289 40.3236C120.289 41.9684 119.99 43.4787 119.391 44.8543C118.823 46.23 118.016 47.4262 116.969 48.443C115.952 49.4299 114.741 50.2075 113.336 50.7757C111.93 51.314 110.42 51.5832 108.805 51.5832C107.19 51.5832 105.68 51.314 104.274 50.7757C102.868 50.2075 101.657 49.4299 100.64 48.443C99.6237 47.4262 98.8162 46.23 98.2181 44.8543C97.6499 43.4787 97.3658 41.9684 97.3658 40.3236C97.3658 38.6787 97.6499 37.1834 98.2181 35.8377C98.8162 34.462 99.6237 33.2807 100.64 32.2938C101.657 31.3069 102.868 30.5443 104.274 30.006C105.68 29.4378 107.19 29.1537 108.805 29.1537C110.42 29.1537 111.93 29.4378 113.336 30.006C114.741 30.5443 115.952 31.3069 116.969 32.2938C118.016 33.2807 118.823 34.462 119.391 35.8377C119.99 37.1834 120.289 38.6787 120.289 40.3236ZM115.893 40.3236C115.893 39.3068 115.728 38.3348 115.399 37.4077C115.1 36.4807 114.651 35.6732 114.053 34.9854C113.455 34.2676 112.708 33.6994 111.81 33.2807C110.943 32.862 109.941 32.6527 108.805 32.6527C107.668 32.6527 106.652 32.862 105.754 33.2807C104.887 33.6994 104.154 34.2676 103.556 34.9854C102.958 35.6732 102.495 36.4807 102.166 37.4077C101.867 38.3348 101.717 39.3068 101.717 40.3236C101.717 41.3404 101.867 42.3123 102.166 43.2394C102.495 44.1665 102.958 44.9889 103.556 45.7066C104.154 46.4244 104.887 46.9926 105.754 47.4113C106.652 47.83 107.668 48.0393 108.805 48.0393C109.941 48.0393 110.943 47.83 111.81 47.4113C112.708 46.9926 113.455 46.4244 114.053 45.7066C114.651 44.9889 115.1 44.1665 115.399 43.2394C115.728 42.3123 115.893 41.3404 115.893 40.3236ZM141.029 35.1199C140.581 34.4321 139.908 33.8639 139.011 33.4153C138.113 32.9368 137.156 32.6976 136.14 32.6976C135.033 32.6976 134.046 32.9069 133.179 33.3256C132.342 33.7443 131.624 34.3125 131.026 35.0302C130.428 35.7181 129.964 36.5255 129.635 37.4526C129.336 38.3797 129.187 39.3516 129.187 40.3684C129.187 41.3852 129.336 42.3572 129.635 43.2843C129.964 44.2113 130.428 45.0338 131.026 45.7515C131.624 46.4393 132.357 46.9926 133.224 47.4113C134.091 47.83 135.078 48.0393 136.185 48.0393C137.261 48.0393 138.233 47.83 139.1 47.4113C139.998 46.9926 140.73 46.4244 141.298 45.7066L144.125 48.2636C143.227 49.3103 142.106 50.1327 140.76 50.7308C139.414 51.2991 137.889 51.5832 136.185 51.5832C134.54 51.5832 133.014 51.314 131.609 50.7757C130.233 50.2374 129.037 49.4897 128.02 48.5328C127.003 47.5459 126.196 46.3646 125.598 44.9889C125.03 43.6132 124.745 42.0731 124.745 40.3684C124.745 38.6937 125.03 37.1685 125.598 35.7928C126.166 34.4171 126.959 33.2359 127.975 32.249C128.992 31.2621 130.188 30.4995 131.564 29.9612C132.97 29.4229 134.48 29.1537 136.095 29.1537C137.59 29.1537 139.07 29.4528 140.536 30.0509C142.031 30.649 143.212 31.5163 144.08 32.6527L141.029 35.1199ZM161.536 37.2283C161.536 35.6433 161.058 34.477 160.101 33.7293C159.144 32.9518 157.873 32.563 156.288 32.563C155.091 32.563 153.955 32.8022 152.878 33.2807C151.832 33.7293 150.949 34.3125 150.232 35.0302L147.989 32.3387C149.035 31.3518 150.306 30.5742 151.802 30.006C153.327 29.4378 154.957 29.1537 156.691 29.1537C158.217 29.1537 159.532 29.378 160.639 29.8266C161.775 30.2453 162.702 30.8284 163.42 31.5761C164.138 32.3237 164.676 33.206 165.035 34.2228C165.394 35.2396 165.573 36.3311 165.573 37.4975V46.7833C165.573 47.501 165.588 48.2636 165.618 49.0711C165.678 49.8486 165.768 50.4916 165.887 51H162.074C161.835 49.9832 161.716 48.9664 161.716 47.9496H161.581C160.803 49.086 159.817 49.9682 158.62 50.5963C157.454 51.2243 156.063 51.5383 154.448 51.5383C153.611 51.5383 152.729 51.4187 151.802 51.1794C150.905 50.9701 150.082 50.6112 149.334 50.1028C148.587 49.5944 147.959 48.9215 147.45 48.0842C146.972 47.2468 146.733 46.215 146.733 44.9889C146.733 43.374 147.166 42.103 148.034 41.1759C148.901 40.2189 150.037 39.5012 151.443 39.0227C152.848 38.5143 154.433 38.1853 156.198 38.0358C157.962 37.8862 159.742 37.8115 161.536 37.8115V37.2283ZM160.504 40.8619C159.458 40.8619 158.366 40.9067 157.23 40.9965C156.123 41.0862 155.106 41.2656 154.179 41.5348C153.282 41.8039 152.534 42.2076 151.936 42.746C151.338 43.2843 151.039 44.002 151.039 44.8992C151.
1039 45.5272 151.159 46.0506 151.398 46.4692C151.667 46.8879 152.011 47.2318 152.43 47.501C152.848 47.7702 153.312 47.9645 153.82 48.0842C154.329 48.1739 154.852 48.2187 155.39 48.2187C157.364 48.2187 158.874 47.6356 159.921 46.4692C160.998 45.273 161.536 43.7777 161.536 41.9834V40.8619H160.504ZM182.585 33.191H176.933V44.2712C176.933 45.5571 177.172 46.4842 177.651 47.0524C178.129 47.5907 178.892 47.8599 179.938 47.8599C180.327 47.8599 180.746 47.815 181.194 47.7253C181.643 47.6356 182.047 47.501 182.406 47.3216L182.54 50.7757C182.032 50.9551 181.464 51.0897 180.836 51.1794C180.237 51.2991 179.609 51.3589 178.952 51.3589C176.948 51.3589 175.408 50.8056 174.331 49.6991C173.284 48.5926 172.761 46.9328 172.761 44.7197V33.191H168.679V29.7369H172.761V23.6361H176.933V29.7369H182.585V33.191ZM208.473 40.3236C208.473 41.9684 208.174 43.4787 207.576 44.8543C207.008 46.23 206.2 47.4262 205.154 48.443C204.137 49.4299 202.926 50.2075 201.52 50.7757C200.115 51.314 198.604 51.5832 196.989 51.5832C195.374 51.5832 193.864 51.314 192.459 50.7757C191.053 50.2075 189.842 49.4299 188.825 48.443C187.808 47.4262 187.001 46.23 186.403 44.8543C185.834 43.4787 185.55 41.9684 185.55 40.3236C185.55 38.6787 185.834 37.1834 186.403 35.8377C187.001 34.462 187.808 33.2807 188.825 32.2938C189.842 31.3069 191.053 30.5443 192.459 30.006C193.864 29.4378 195.374 29.1537 196.989 29.1537C198.604 29.1537 200.115 29.4378 201.52 30.006C202.926 30.5443 204.137 31.3069 205.154 32.2938C206.2 33.2807 207.008 34.462 207.576 35.8377C208.174 37.1834 208.473 38.6787 208.473 40.3236ZM204.077 40.3236C204.077 39.3068 203.913 38.3348 203.584 37.4077C203.285 36.4807 202.836 35.6732 202.238 34.9854C201.64 34.2676 200.892 33.6994 199.995 33.2807C199.128 32.862 198.126 32.6527 196.989 32.6527C195.853 32.6527 194.836 32.862 193.939 33.2807C193.072 33.6994 192.339 34.2676 191.741 34.9854C191.143 35.6732 190.679 36.4807 190.35 37.4077C190.051 38.3348 189.902 39.3068 189.902 40.3236C189.902 41.3404 190.051 42.3123 190.35 43.2394C190.679 44.1665 191.143 44.9889 191.741 45.7066C192.339 46.4244 193.072 46.9926 193.939 47.4113C194.836 47.83 195.853 48.0393 196.989 48.0393C198.126 48.0393 199.128 47.83 199.995 47.4113C200.892 46.9926 201.64 46.4244 202.238 45.7066C202.836 44.9889 203.285 44.1665 203.584 43.2394C203.913 42.3123 204.077 41.3404 204.077 40.3236ZM214.321 34.3125C214.321 33.7443 214.306 33.0116 214.276 32.1144C214.246 31.2172 214.201 30.4247 214.141 29.7369H218.134C218.194 30.2752 218.238 30.9032 218.268 31.6209C218.298 32.3088 218.313 32.877 218.313 33.3256H218.448C219.046 32.0695 219.913 31.0677 221.05 30.32C222.216 29.5425 223.517 29.1537 224.952 29.1537C225.61 29.1537 226.163 29.2135 226.612 29.3331L226.433 33.2359C225.835 33.0863 225.192 33.0116 224.504 33.0116C223.487 33.0116 222.605 33.206 221.857 33.5947C221.109 33.9536 220.481 34.4471 219.973 35.0751C219.494 35.7031 219.136 36.4358 218.896 37.2732C218.657 38.0806 218.537 38.9329 218.537 39.8301V51H214.321V34.3125ZM231.74 43.9123C231.979 45.0487 232.502 45.9908 233.31 46.7384C234.117 47.4861 235.119 47.8599 236.315 47.8599C237.272 47.8599 238.05 47.6804 238.648 47.3216C239.276 46.9627 239.769 46.4842 240.128 45.8861C240.487 45.2581 240.741 44.5403 240.891 43.7329C241.04 42.8955 241.115 42.0133 241.115 41.0862V19.2399H245.556V41.2656C245.556 42.3721 245.437 43.5385 245.197 44.7646C244.958 45.9908 244.509 47.1272 243.852 48.1739C243.194 49.2206 242.267 50.0879 241.07 50.7757C239.904 51.4635 238.394 51.8075 236.54 51.8075C234.117 51.8075 232.143 51.1794 230.618 49.9234C229.093 48.6673 228.091 47.0524 227.613 45.0786L231.74 43.9123ZM268.798 25.1164C268.17 24.2491 267.318 23.5463 266.241 23.008C265.165 22.4398 263.954 22.1557 262.608 22.1557C261.89 22.1557 261.157 22.2604 260.41 22.4697C259.692 22.6492 259.034 22.9632 258.436 23.4118C257.838 23.8304 257.344 24.3687 256.956 25.0267C256.597 25.6547 256.417 26.4173 256.417 27.3145C256.417 28.1818 256.582 28.9145 256.911 29.5126C257.27 30.0808 257.733 30.5742 258.301 30.9929C258.9 31.3817 259.587 31.7256 260.365 32.0247C261.172 32.2938 262.025 32.5779 262.922 32.877C263.998 33.206 265.09 33.5798 266.197 33.9985C267.303 34.4171 268.305 34.9704 269.202 35.6582C270.099 36.3461 270.832 37.2134 271.4 38.2601C271.968 39.2769 272.253 40.5778 272.253 42.1628C272.253 43.8076 271.939 45.2431 271.31 46.4692C270.712 47.6655 269.905 48.6673 268.888 49.4748C267.871 50.2524 266.69 50.8355 265.344 51.2243C264.028 51.6131 262.668 51.8075 261.262 51.8075C259.258 51.8075 257.314 51.4187 255.43 50.6411C253.576 49.8636 252.036 48.7122 250.81 47.187L254.264 44.2712C255.012 45.3777 256.014 46.2749 257.27 46.9
1627C258.526 47.6505 259.886 47.9945 261.352 47.9945C262.099 47.9945 262.847 47.8898 263.595 47.6804C264.342 47.4711 265.015 47.1421 265.613 46.6935C266.241 46.245 266.75 45.6917 267.139 45.0338C267.527 44.3459 267.722 43.5235 267.722 42.5665C267.722 41.6095 267.512 40.817 267.094 40.189C266.705 39.5311 266.167 38.9778 265.479 38.5292C264.791 38.0806 263.984 37.7068 263.056 37.4077C262.159 37.0788 261.202 36.7498 260.185 36.4208C259.169 36.1218 258.167 35.7629 257.18 35.3442C256.193 34.8956 255.311 34.3424 254.533 33.6845C253.756 32.9966 253.128 32.1592 252.649 31.1724C252.171 30.1855 251.931 28.9593 251.931 27.4939C251.931 25.9089 252.245 24.5482 252.873 23.4118C253.531 22.2753 254.369 21.3333 255.386 20.5856C256.432 19.838 257.599 19.2997 258.885 18.9707C260.2 18.6118 261.516 18.4324 262.832 18.4324C264.686 18.4324 266.421 18.7614 268.036 19.4193C269.651 20.0772 270.952 20.9595 271.939 22.066L268.798 25.1164Z" fill="black"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M10.3286 4.8189C13.8092 2.60154 18.3151 2.12833 26 2.02734V7.02796C23.318 7.06363 21.125 7.14462 19.2499 7.32846C16.0346 7.64367 14.2912 8.22292 13.0151 9.03586C11.4141 10.0558 10.0559 11.414 9.03592 13.015C8.22299 14.2911 7.64373 16.0346 7.32852 19.2498C7.14468 21.1249 7.06369 23.318 7.02803 25.9999H2.0274C2.12839 18.3151 2.6016 13.8091 4.81896 10.3286C6.23121 8.11176 8.11182 6.23115 10.3286 4.8189ZM2.0274 39.9999H7.02803C7.06369 42.6819 7.14468 44.875 7.32852 46.7501C7.64373 49.9653 8.22299 51.7088 9.03592 52.9848C10.0559 54.5859 11.4141 55.9441 13.0151 56.964C14.2912 57.777 16.0346 58.3562 19.2499 58.6714C21.125 58.8553 23.318 58.9363 26 58.9719V63.9725C18.3151 63.8716 13.8092 63.3983 10.3286 61.181C8.11182 59.7687 6.23121 57.8881 4.81896 55.6713C2.6016 52.1908 2.12839 47.6848 2.0274 39.9999ZM40 63.9725C47.6849 63.8716 52.1908 63.3983 55.6714 61.181C57.8882 59.7687 59.7688 57.8881 61.181 55.6713C63.3984 52.1908 63.8716 47.6848 63.9726 39.9999H58.972C58.9363 42.6819 58.8553 44.875 58.6715 46.7501C58.3563 49.9653 57.777 51.7088 56.9641 52.9848C55.9441 54.5859 54.5859 55.9441 52.9849 56.964C51.7089 57.777 49.9654 58.3562 46.7502 58.6714C44.875 58.8553 42.682 58.9363 40 58.9719V63.9725ZM58.972 25.9999C58.9363 23.318 58.8553 21.1249 58.6715 19.2498C58.3563 16.0346 57.777 14.2911 56.9641 13.015C55.9441 11.414 54.5859 10.0558 52.9849 9.03586C51.7089 8.22292 49.9654 7.64367 46.7502 7.32846C44.875 7.14462 42.682 7.06363 40 7.02796V2.02734C47.6849 2.12833 52.1908 2.60154 55.6714 4.8189C57.8882 6.23115 59.7688 8.11176 61.181 10.3286C63.3984 13.8091 63.8716 18.3151 63.9726 25.9999H58.972Z" fill="url(#paint0_linear_12_2)"></path><path d="M13.08 34.5427C13.08 34.866 13.274 35.1578 13.5721 35.283L25.3232 40.2171C25.8523 40.4393 26.4369 40.0507 26.4369 39.4768V37.0538C26.43
169 36.7189 26.229 36.4191 25.9153 36.3018L17.8431 33.2822C17.7912 33.2628 17.7568 33.2132 17.7568 33.1577C17.7568 33.1022 17.7912 33.0526 17.8432 33.0332L25.9146 30.0225C26.2286 29.9054 26.4369 29.6055 26.4369 29.2703V26.8385C26.4369 26.2647 25.8523 25.8761 25.3232 26.0983L13.5721 31.0324C13.274 31.1576 13.08 31.4494 13.08 31.7727V34.5427Z" fill="#160101"></path><path d="M38.5829 22.0116C38.7202 21.5014 38.3359 21 37.8076 21H35.624C35.2609 21 34.943 21.2436 34.8487 21.5942L29.1928 42.6065C29.0555 43.1167 29.4398 43.6181 29.9681 43.6181H32.1517C32.5148 43.6181 32.8327 43.3745 32.927 43.0239L38.5829 22.0116Z" fill="#160101"></path><path d="M54.2036 35.283C54.5017 35.1578 54.6957 34.866 54.6957 34.5427V31.7727C54.6957 31.4494 54.5017 31.1576 54.2036 31.0324L42.4525 26.0983C41.9234 25.8761 41.3388 26.2647 41.3388 26.8385V29.2706C41.3388 29.6056 41.5468 29.9054 41.8607 30.0227L49.9503 33.0456C49.9971 33.0631 50.0282 33.1078 50.0282 33.1577C50.0282 33.2076 49.9972 33.2523 49.9505 33.2698L41.86 36.3016C41.5465 36.4191 41.3388 36.7187 41.3388 37.0534V39.4768C41.3388 40.0507 41.9234 40.4393 42.4525 40.2171L54.2036 35.283Z" fill="#160101"></path></g><defs><linearGradient id="paint0_linear_12_2" x1="2.0274" y1="2.02734" x2="46.9876" y2="47.4871" gradientUnits="userSpaceOnUse"><stop stop-color="#1909D1"></stop><stop offset="1" stop-color="#DC0E0E"></stop></linearGradient><clipPath id="clip0_12_2"><rect width="276" height="66" fill="white">');function tt(e){const t=ro({width:90},e);return(()=>{const n=er(),o=n.firstChild;return n.$$click=l=>{l.preventDefault(),window.open("https://www.locatorjs.com","_blank")},S(l=>{const r=t.width+"px",i=t.width/276*66+"px";return r!==l._v$&&((l._v$=r)!=null?o.style.setProperty("width",r):o.style.removeProperty("width")),i!==l._v$2&&((l._v$2=i)!=null?o.style.setProperty("height",i):o.style.removeProperty("height")),l},{_v$:void 0,_v$2:void 0}),n})()}I(["click"]);const tr=w('<button class="bg-slate-100 py-1 px-2 rounded hover:bg-slate-300 active:bg-slate-200 cursor-pointer text-xs">');function nr(e){return(()=>{const t=tr();return t.addEventListener("click",()=>{e.onClick()}),p(t,()=>e.title||"Settings"),t})()}const or=w('<div class="flex justify-between gap-2">');function hn(e){return(()=>{const t=or();return p(t,$(tt,{}),null),p(t,(()=>{const n=_(()=>!!e.openOptions);return()=>n()?$(nr,{onClick:()=>{e.openOptions()},get title(){return Ce()?"Project settings":"Settings"}}):null})(),null),t})()}const rr=w('<div><div class="text-sm mt-2 mb-1">Go to component code with <!> + <div class="inline-block px-1 py-0.5 border border-slate-200 rounded">click</div> </div><div class="text-xs mt-2 mb-1 text-gray-600 flex gap-1"><a class="underline cursor-pointer" href="https://www.locatorjs.com" target="_blank">What is Locator?</a><a class="underline cursor-pointer">Stop showing this popup'),lr=w('<div class="inline-block px-1 py-0.5 border border-slate-200 rounded">');function ir(e){const t=J(),[n,o]=M(!0);setTimeout(()=>{o(!1)},5e3),Te(()=>{e.hide&&n()&&o(!1)});const l=()=>en();return(()=>{const r=rr(),i=r.firstChild,s=i.firstChild,c=s.nextSibling;c.nextSibling;const u=i.nextSibling,f=u.firstChild,a=f.nextSibling;return p(r,$(hn,{get openOptions(){return e.openOptions},get adapter(){return e.adapter}}),i),p(i,$(ye,{get each(){return Object.keys(l())},children:(d,h)=>[_(()=>h()===0?"":" + "),(()=>{const g=lr();return p(g,()=>Nn[d]),g})()]}),c),a.$$click=()=>{t.setOptions({showIntro:!1})},S(d=>{const h=et(),g=n()?"12px":"-120px";return h!==d._v$&&Z(r,d._v$=h),g!==d._v$2&&((d._v$2=g)!=null?r.style.setProperty("bottom",g):r.style.removeProperty("bottom")),d},{_v$:void 0,_v$2:void 0}),r})()}I(["click"]);const sr=w('<button class="w-6 h-6 rounded hover:bg-slate-100 flex items-center justify-center text-slate-400 hover:text-slate-600"><svg viewBox="0 0 24 24"><path fill="currentColor" d="M13.46,12L19,17.54V19H17.54L12,13.46L6.46,19H5V17.54L10.54,12L5,6.46V5H6.46L12,10.54L17.54,5H19V6.46L13.46,12Z">');function gn(e){return(()=>{const t=sr(),n=t.firstChild;return t.$$click=()=>e.onClick(),n.style.setProperty("width","20px"),n.style.setProperty("height","20px"),t})()}I(["click"]);const cr=w('<div class="mt-2 border border-gray-200 rounded p-4 flex flex-col gap-1"><div class="flex justify-between self-stretch text-sm"><div>Editor / Link template</div><a class="underline cursor-pointer"></a></div><div class="text-xs text-gray-700">Change your editor for this project. For less common editors, you can change the link template.'),ar=w('<div class="flex flex-col gap-1 py-1"><div class="flex items-center"><input id="custom" type="radio" class="focus:ring-indigo-200 h-4 w-4 text-indigo-600 border-slate-300 hover:border-slate-400"><label for="custom" class="ml-2 block text-sm font-medium text-slate-700 hover:text-slate-800">Custom'),ur=w('<div class="flex items-center"><input type="radio" class="focus:ring-indigo-200 h-4 w-4 text-indigo-600 border-slate-300 hover:border-slate-400"><label class="ml-2 block text-sm font-medium text-slate-700 hover:text-slate-800">'),fr=w('<div class="mt-1"><input type="text" name="text">');function dr(e){const t=()=>Object.entries(e.targets)[0][0],n=()=>e.selectedTarget||"";function o(){var r;e.selectTarget((e.targets[n()]?(r=e.targets[n()])==null?void 0:r.url:n())||"")}const l=()=>!e.targets[n()];return(()=>{const r=cr(),i=r.firstChild,s=i.firstChild,c=s.nextSibling;return i.nextSibling,c.$$click=()=>{e.selectedTarget===void 0?e.selectTarget(t()):e.selectTarget(void 0)},p(c,()=>e.selectedTarget===void 0?"edit":"clear"),p(r,(()=>{const u=_(()=>e.selectedTarget!==void 0);return()=>u()?[(()=>{const f=ar(),a=f.firstChild,d=a.firstChild;return p(f,$(ye,{get each(){return Object.entries(e.targets)},children:([h,g])=>(()=>{const x=ur(),v=x.firstChild,y=v.nextSibling;return v.$$click=()=>{e.selectTarget(h)},j(v,"id",h),j(y,"for",h),p(y,()=>g.label),S(()=>v.checked=h===n()),x})()}),a),d.$$click=()=>{o()},S(()=>d.checked=l()),f})(),_((()=>{const f=_(()=>!!l());return()=>f()&&(()=>{const a=fr(),d=a.firstChild;return d.$$input=h=>{e.selectTarget(h.currentTarget.value)},d.$$click=()=>{e.targets[n()]&&o()},S(()=>Z(d,"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-slate-300 rounded-md "+(e.targets[n()]?"text-slate-400":"text-slate-800"))),S(()=>{var h;return d.value=e.targets[n()]?(h=e.targets[n()])==null?void 0:h.url:n()}),a})()})())]:null})(),null),r})()}I(["click","input"]);const hr=w('<div class="mt-2 border border-gray-200 rounded p-4 flex flex-col gap-1"><div class="flex justify-between self-stretch text-sm"><div>Project path (prefix)</div><a class="underline cursor-pointer"></a></div><div class="text-xs text-gray-700">If your framework generates relative paths, you can add a prefix to it to make absolute paths.'),gr=w('<div class="py-2 flex flex-col gap-2"><input id="project-path" placeholder="e.g. /Users/MyName/MyProject" type="text" name="text" class="shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-slate-300 rounded-md"><div class="text-xs text-slate-700 pt-2">Run <code class="bg-slate-100 rounded py-1 px-2">pwd</code> or <code class="bg-slate-100 rounded py-1 px-2">echo %cd%</code> to get the current path');function mr(e){return(()=>{const t=hr(),n=t.firstChild,o=n.firstChild,l=o.nextSibling;return n.nextSibling,l.$$click=()=>{e.value===void 0?e.onChange(""):e.onChange(void 0)},p(l,()=>e.value===void 0?"edit":"clear"),p(t,(()=>{const r=_(()=>e.value!==void 0);return()=>r()?(()=>{const i=gr(),s=i.firstChild;return s.$$input=c=>{e.onChange(c.currentTarget.value)},S(()=>s.value=e.value),i})():[]})(),null),t})()}I(["click","input"]);const pr=w('<div class="mt-2 border border-gray-200 rounded p-4 flex flex-col gap-1"><div class="flex justify-between self-stretch text-sm"><div>Transform final link</div><a class="underline cursor-pointer"></a></div><div class="text-xs text-gray-700">In case you need to change something in the final generated link you can find and replace parts with Regex'),yr=w('<div class="py-2"><div class="flex gap-2"><div class="grow"><label for="project-path" class="block text-sm text-slate-700 pb-0.5 font-bold">
1From (Regex)</label><input id="project-path" placeholder="from regex" type="text" name="text" class="shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-slate-300 rounded-md"></div><div class="grow"><label for="project-path" class="block text-sm text-slate-700 pb-0.5 font-bold">To</label><input id="project-path" placeholder="to" type="text" name="text" class="shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-slate-300 rounded-md">'),xr=w('<div class="text-red-600 mt-1 text-sm">Regex is not valid!'),dt={from:"",to:""};function vr(e){const t=()=>{if(!e.value||!e.value.from)return!1;try{new RegExp(`${e.value.from}`)}catch(n){return!0}return!1};return(()=>{const n=pr(),o=n.firstChild,l=o.firstChild,r=l.nextSibling;return o.nextSibling,r.$$click=()=>{e.value===void 0?e.onChange(dt):e.onChange(void 0)},p(r,()=>e.value===void 0?"edit":"clear"),p(n,(()=>{const i=_(()=>e.value!==void 0);return()=>i()?(()=>{const s=yr(),c=s.firstChild,u=c.firstChild,f=u.firstChild,a=f.nextSibling,d=u.nextSibling,h=d.firstChild,g=h.nextSibling;return a.$$input=x=>{e.onChange({...e.value||dt,from:x.currentTarget.value})},g.$$input=x=>{e.onChange({...e.value||dt,to:x.currentTarget.value})},p(s,(()=>{const x=_(()=>!!t());return()=>x()?xr():null})(),null),S(()=>a.value=e.value.from),S(()=>g.value=e.value.to),s})():null})(),null),n})()}I(["click","input"]);const br=w('<div class="mt-2 border border-gray-200 rounded p-4 flex flex-col gap-1"><div class="flex justify-between self-stretch text-sm"><div>Link Href Target</div><a class="underline cursor-pointer">'),wr=w('<div class="text-xs text-gray-700">Hot-reloading On some stacks (e.g. Create React App) gets broken when you use _blank as the target. You can change the target to _self to fix this. <br>Some browsers open unnecessary tabs when you use _blank.'),Cr=w('<div class="flex flex-col gap-1 py-1">'),$r=w('<div class="flex items-center"><input type="radio" class="focus:ring-indigo-200 h-4 w-4 text-indigo-600 border-slate-300 hover:border-slate-400"><label class="ml-2 block text-sm font-medium text-slate-700 hover:text-slate-800">'),_r=["_blank","_self"];function Pr(e){const t=()=>e.value||"";return(()=>{const n=br(),o=n.firstChild,l=o.firstChild,r=l.nextSibling;return r.$$click=()=>{e.value===void 0?e.onChange(ke):e.onChange(void 0)},p(r,()=>e.value===void 0?"edit":"clear"),p(n,(()=>{const i=_(()=>e.value!==void 0);return()=>i()?[wr(),(()=>{const s=Cr();return p(s,$(ye,{get each(){return Object.entries(_r)},children:([c,u])=>(()=>{const f=$r(),a=f.firstChild,d=a.nextSibling;return a.$$click=()=>{e.onChange(c)},j(a,"id",c),j(d,"for",c),p(d,u),S(()=>a.checked=c===t()),f})()})),s})()]:null})(),null),n})()}I(["click"]);const kr=w('<div><div class="mt-4"><div class="text-sm flex flex-col bg-green-50 text-green-800 p-4 -mx-4 rounded whitespace-pre-wrap break-all"><label for="email" class="block text-xs text-green-700">Link preview:'),Tr=w('<a class="hover:underline">');function mn(e){const t=J();function n(){return t.getOptions().templateOrTemplateId}function o(r){t.setOptions({templateOrTemplateId:r})}const l=()=>e.linkProps?Pe(e.linkProps,e.targets,t,n()):void 0;return(()=>{const r=kr(),i=r.firstChild,s=i.firstChild;return s.firstChild,p(r,$(mr,{get value(){return t.getOptions().projectPath},onChange:function(c){t.setOptions({projectPath:c})}}),i),p(r,$(vr,{get value(){return t.getOptions().replacePath},onChange:c=>{t.setOptions({replacePath:c})}}),i),p(r,$(dr,{get targets(){return e.targets},get selectedTarget(){return n()},selectTarget:o}),i),p(r,$(Pr,{get value(){return t.getOptions().hrefTarget},onChange:c=>{t.setOptions({hrefTarget:c})}}),i),p(s,(()=>{const c=_(()=>!!l());return()=>c()?(()=>{const u=Tr();return p(u,l),S(f=>{const a=l(),d=t.getOptions().hrefTarget||ke;return a!==f._v$&&j(u,"href",f._v$=a),d!==f._v$2&&j(u,"target",f._v$2=d),f},{_v$:void 0,_v$2:void 0}),u})():"To test the link, try to hover over some element."})(),null),r})()}const Sr=w('<div><div class="p-1"><div class="flex justify-between items-center"></div><div class="flex gap-2 justify-between mt-4"><button class="bg-slate-100 py-1 px-2 rounded hover:bg-slate-300 active:bg-slate-200 cursor-pointer text-xs">Reset settings</button><button class="bg-red-50 py-1 px-2 rounded hover:bg-red-200 active:bg-red-100 cursor-pointer text-xs text-red-800 flex gap-1"><svg viewBox="0 0 24 24">
1<path fill="currentColor" d="M16.56,5.44L15.11,6.89C16.84,7.94 18,9.83 18,12A6,6 0 0,1 12,18A6,6 0 0,1 6,12C6,9.83 7.16,7.94 8.88,6.88L7.44,5.44C5.36,6.88 4,9.28 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12C20,9.28 18.64,6.88 16.56,5.44M13,3H11V13H13"></path></svg> Disable Locator');function Er(e){const t=J(),n=W(()=>{var o;return e.currentElement&&((o=Ke(e.currentElement,e.adapterId))==null?void 0:o.thisElement.link)||null});return(()=>{const o=Sr(),l=o.firstChild,r=l.firstChild,i=r.nextSibling,s=i.firstChild,c=s.nextSibling,u=c.firstChild;return p(r,$(tt,{}),null),p(r,$(gn,{onClick:()=>e.onClose()}),null),p(l,$(mn,{get linkProps(){return n()},get adapterId(){return e.adapterId},get targets(){return e.targets}}),i),s.$$click=()=>{Bn(),e.onClose()},c.$$click=()=>{Ce()?(t.setOptions({disabled:!0}),e.onClose()):e.showDisableDialog()},u.style.setProperty("width","16px"),u.style.setProperty("height","16px"),S(()=>Z(o,et()+" w-[560px] max-w-full overflow-hidden")),o})()}I(["click"]);const Lr=w('<a target="_blank" class="underline">');function Ae(e){return(()=>{const t=Lr();return t.$$click=n=>{n.preventDefault(),window.open(e.href,"_blank")},p(t,()=>e.children),S(()=>j(t,"href",e.href)),t})()}I(["click"]);const Or=w('<div class="bg-white p-4 rounded-xl border-2 border-red-500 shadow-xl cursor-auto pointer-events-auto z-10"><div class="mt-2 font-bold">No source info found for this element!</div><div class="text-gray-700"><p class="font-medium text-gray-900 mt-2 mb-1">You need one of these:</p><ul class="pl-4 list-disc"><li>Working React in development mode, with </li><li>React, SolidJS or Preact with Locator Babel plugin</li></ul><p class="font-medium text-gray-900 mt-2 mb-1">Setup babel plugin:</p><div><ul class="pl-4 list-disc"><li></li><li></li><li>');function Ar(){return(()=>{const e=Or(),t=e.firstChild,n=t.nextSibling,o=n.firstChild,l=o.nextSibling,r=l.firstChild;r.firstChild;const i=l.nextSibling,s=i.nextSibling,c=s.firstChild,u=c.firstChild,f=u.nextSibling,a=f.nextSibling;return p(e,$(tt,{}),t),p(r,$(Ae,{href:"https://babeljs.io/docs/en/babel-preset-react",children:"preset-react plugins"}),null),p(u,$(Ae,{href:"https://www.locatorjs.com/install/react-data-id",children:"React"})),p(f,$(Ae,{href:"https://www.locatorjs.com/install/preact",children:"Preact"})),p(a,$(Ae,{href:"https://www.locatorjs.com/install/solidjs",children:"SolidJS"})),e})()}const Ir=w(`<div class="bg-white p-4 rounded-xl border-2 border-red-500 shadow-xl cursor-auto pointer-events-auto z-10 max-w-xl max-h-full overflow-auto"><div class="mt-2 mb-4"><h1 class="text-2xl font-bold">Welcome to Locator!</h1><span class="text-sm">Before using Locator, let's try links in your project and fix them if needed.</span></div><div class="mt-4 flex gap-2 justify-between items-center"><div class="text-sm text-gray-600"></div><div class="flex gap-2"><a class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded">Test link</a><button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Confirm`);function Nr(e){const t=J(),n=()=>e.originalLinkProps?Pe(e.originalLinkProps,e.targets,t,t.getOptions().templateOrTemplateId):void 0;return(()=>{const o=Ir(),l=o.firstChild,r=l.nextSibling,i=r.firstChild,s=i.nextSibling,c=s.firstChild,u=c.nextSibling;return p(o,$(mn,{get linkProps(){return e.originalLinkProps},get adapterId(){return e.adapterId},get targets(){return e.targets}}),r),u.$$click=()=>{t.setOptions({welcomeScreenDismissed:!0}),e.onClose()},S(f=>{const a=n(),d=t.getOptions().hrefTarget||ke;return a!==f._v$&&j(c,"href",f._v$=a),d!==f._v$2&&j(c,"target",f._v$2=d),f},{_v$:void 0,_v$2:void 0}),o})()}I(["click"]);function Rt(e){return e.className=="locatorjs-label"||e.id=="locatorjs-labels-section"||e.id=="locatorjs-layer"||e.id=="locatorjs-wrapper"||e.matches("#locatorjs-wrapper *")}function jr(e,t){return Ct()&&te.getTree?te.getTree(e):Wt()&&ne.getTree?ne.getTree(e):Zt()&&Q.getTree?Q.getTree(e):Kt()&&ee.getTree?ee.getTree(e):null}function Bt(e){const t=e.split("/"),n=t.slice(Math.max(t.length-3,0),t.length).join("/");return n!==e?`.../${n}`:n}const Rr=w('<div class="font-bold cursor-pointer text-black hover:bg-gray-100 rounded">'),Br=w('<div class="font-bold">'),Hr=w('<div><div><div><div class="font-mono flex gap-1">&lt;<!>></div><div class="whitespace-nowrap text-ellipsis overflow-hidden"></div></div><div>'),Dr=w('<div class="flex gap-2 justify-between pb-1"><div class="whitespace-nowrap text-ellipsis overflow-hidden">'),Mr=w('<button class="inline-flex cursor-pointer bg-gray-100 rounded-full hover:bg-gray-200 py-0 px-2 ml-2">...');function pn(e){const t=J();
1function n(){return $(ye,{get each(){return e.node.getChildren()},children:u=>$(pn,{node:u,get expandedIds(){return e.expandedIds},get highlightedId(){return e.highlightedId},get expandId(){return e.expandId},get parentFilePath(){var f;return(f=e.node.getSource())==null?void 0:f.fileName},get targets(){return e.targets},get setHighlightedBoundingBox(){return e.setHighlightedBoundingBox},get parentComponent(){return e.node.getComponent()}})})}function o(){var u;return((u=e.node.getSource())==null?void 0:u.fileName)!==e.parentFilePath}function l(){return e.node.getComponent&&JSON.stringify(e.node.getComponent())!==JSON.stringify(e.parentComponent)}const r=()=>!e.node.getSource();function i(){return l()&&!r()}function s(){return i()}function c(){var u;return(u=e.node.getComponent())!=null&&u.callLink?(()=>{const f=Rr();return f.$$click=()=>{var d;const a=(d=e.node.getComponent())==null?void 0:d.callLink;a&&Nt(a,e.targets,t)},p(f,()=>{var a;return(a=e.node.getComponent())==null?void 0:a.label}),f})():(()=>{const f=Br();return p(f,()=>{var a;return(a=e.node.getComponent())==null?void 0:a.label}),f})()}return(()=>{const u=Hr(),f=u.firstChild,a=f.firstChild,d=a.firstChild,h=d.firstChild,g=h.nextSibling;g.nextSibling;const x=d.nextSibling,v=a.nextSibling;return u.addEventListener("mouseleave",()=>{e.setHighlightedBoundingBox(null)}),u.addEventListener("mouseenter",()=>{e.setHighlightedBoundingBox(e.node)}),p(u,(()=>{const y=_(()=>!!i());return()=>y()&&(()=>{const b=Dr(),C=b.firstChild;return p(b,c,C),p(C,()=>{var T,P;return Bt(((P=(T=e.node.getComponent())==null?void 0:T.definitionLink)==null?void 0:P.fileName)||"")}),b})()})(),f),a.$$click=()=>{const y=e.node.getSource();y&&Nt(y,e.targets,t)},p(d,()=>e.node.name,g),p(d,(()=>{const y=_(()=>!!r());return()=>y()&&c()})(),null),p(x,(()=>{const y=_(()=>!!(o()&&!i()));return()=>{var b;return y()?Bt(((b=e.node.getSource())==null?void 0:b.fileName)||""):null}})()),p(v,(()=>{const y=_(()=>!!e.expandedIds.has(e.node.uniqueId));return()=>y()?n():(()=>{const b=_(()=>!!e.node.getChildren().length);return()=>b()?(()=>{const C=Mr();return C.$$click=()=>{e.expandId(e.node.uniqueId)},C})():""})()})()),S(y=>{const b="text-xs pl-2 "+(e.highlightedId===e.node.uniqueId?"bg-yellow-100 ":" ")+(s()?"border border-gray-300 py-2 pr-2 ":" ")+(e.node.getSource()?"text-black ":"text-gray-500 "),C=i()?"pl-2":"",T="flex justify-between items-center gap-4 "+(e.node.getSource()?" cursor-pointer hover:bg-sky-100":"");return b!==y._v$&&Z(u,y._v$=b),C!==y._v$2&&Z(f,y._v$2=C),T!==y._v$3&&Z(a,y._v$3=T),y},{_v$:void 0,_v$2:void 0,_v$3:void 0}),u})()}I(["click"]);const vt=Math.min,de=Math.max,Ue=Math.round,K=e=>({x:e,y:e}),Vr={left:"right",right:"left",bottom:"top",top:"bottom"},Fr={start:"end",end:"start"};function Ht(e,t,n){return de(e,vt(t,n))}function nt(e,t){return typeof e=="function"?e(t):e}function ce(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function yn(e){return e==="x"?"y":"x"}function xn(e){return e==="y"?"height":"width"}function oe(e){return["top","bottom"].includes(ce(e))?"y":"x"}function vn(e){return yn(oe(e))}function Wr(e,t,n){n===void 0&&(n=!1);const o=ot(e),l=vn(e),r=xn(l);let i=l==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=Je(i)),[i,Je(i)]}function Zr(e){const t=Je(e);return[bt(e),t,bt(t)]}function bt(e){return e.replace(/start|end/g,t=>Fr[t])}function Kr(e,t,n){const o=["left","right"],l=["right","left"],r=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?l:o:t?o:l;case"left":case"right":return t?r:i;default:return[]}}function Ur(e,t,n,o){const l=ot(e);let r=Kr(ce(e),n==="start",o);return l&&(r=r.map(i=>i+"-"+l),t&&(r=r.concat(r.map(bt)))),r}function Je(e){return e.replace(/left|right|bottom|top/g,t=>Vr[t])}function Jr(e){return{top:0,right:0,bottom:0,left:0,...e}}function qr(e){return typeof e!="number"?Jr(e):{top:e,right:e,bottom:e,left:e}}function qe(e){const{x:t,y:n,width:o,height:l}=e;return{width:o,height:l,top:n,left:t,right:t+o,bottom:n+l,x:t,y:n}}function Dt(e,t,n){let{reference:o,floating:l}=e;const r=oe(t),i=vn(t),s=xn(i),c=ce(t),u=r==="y",f=o.x+o.width/2-l.width/2,a=o.y+o.height/2-l.height/2,d=o[s]/2-l[s]/2;let h;switch(c){case"top":h={x:f,y:o.y-l.height};break;case"bottom":h={x:f,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:a};break;case"left":h={x:o.x-l.width,y:a};break;default:h={x:o.x,y:o.y}}switch(ot(t)){case"start":h[i]-=d*(n&&u?-1:1);break;case"end":h[i]+=d*(n&&u?-1:1);break}return h}const Xr=async(e,t,n)=>{const{placement:o="bottom",strategy:l="absolute",middleware:r=[],platform:i}=n,s=r.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:l}),{x:f,y:a}=Dt(u,o,c),d=o,h={},g=0;for(let x=0;x<s.length;x++){const{name:v,fn:y}=s[x],{x:b,y:C,data:T,reset:P}=await y({x:f,y:a,initialPlacement:o,placement:d,strategy:l,middlewareData:h,rects:u,platform:i,elements:{reference:e,floating:t}});f=b!=null?b:f,a=C!=null?C:a,h={...h,[v]:{...h[v],...T}},P&&g<=50&&(g++,typeof P=="object"&&(P.placement&&(d=P.placement),P.rects&&(u=P.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:l}):P.rects),{x:f,y:a}=Dt(u,d,c)),x=-1)}return{x:f,y:a,placement:d,strategy:l,middlewareData:h}};async function bn(e,t){var n;t===void 0&&(t={});
vendor: 11,877 bytes, line 1
1const{x:o,y:l,platform:r,rects:i,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:a="floating",altBoundary:d=!1,padding:h=0}=nt(t,e),g=qr(h),v=s[d?a==="floating"?"reference":"floating":a],y=qe(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(v)))==null||n?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:c})),b=a==="floating"?{x:o,y:l,width:i.floating.width,height:i.floating.height}:i.reference,C=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),T=await(r.isElement==null?void 0:r.isElement(C))?await(r.getScale==null?void 0:r.getScale(C))||{x:1,y:1}:{x:1,y:1},P=qe(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:C,strategy:c}):b);return{top:(y.top-P.top+g.top)/T.y,bottom:(P.bottom-y.bottom+g.bottom)/T.y,left:(y.left-P.left+g.left)/T.x,right:(P.right-y.right+g.right)/T.x}}const Gr=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:l,middlewareData:r,rects:i,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:a=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:x=!0,...v}=nt(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const y=ce(l),b=oe(s),C=ce(s)===s,T=await(c.isRTL==null?void 0:c.isRTL(u.floating)),P=d||(C||!x?[Je(s)]:Zr(s)),B=g!=="none";!d&&B&&P.push(...Ur(s,x,g,T));const H=[s,...P],m=await bn(t,v),k=[];let E=((o=r.flip)==null?void 0:o.overflows)||[];if(f&&k.push(m[y]),a){const ie=Wr(l,i,T);k.push(m[ie[0]],m[ie[1]])}if(E=[...E,{placement:l,overflows:k}],!k.every(ie=>ie<=0)){var R,Le;const ie=(((R=r.flip)==null?void 0:R.index)||0)+1,st=H[ie];if(st&&(!(a==="alignment"?b!==oe(st):!1)||E.every(D=>D.overflows[0]>0&&oe(D.placement)===b)))return{data:{index:ie,overflows:E},reset:{placement:st}};let be=(Le=E.filter(se=>se.overflows[0]<=0).sort((se,D)=>se.overflows[1]-D.overflows[1])[0])==null?void 0:Le.placement;if(!be)switch(h){case"bestFit":{var ve;const se=(ve=E.filter(D=>{if(B){const Y=oe(D.placement);return Y===b||Y==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(Y=>Y>0).reduce((Y,Ln)=>Y+Ln,0)]).sort((D,Y)=>D[1]-Y[1])[0])==null?void 0:ve[0];se&&(be=se);break}case"initialPlacement":be=s;break}if(l!==be)return{reset:{placement:be}}}return{}}}};async function Yr(e,t){const{placement:n,platform:o,elements:l}=e,r=await(o.isRTL==null?void 0:o.isRTL(l.floating)),i=ce(n),s=ot(n),c=oe(n)==="y",u=["left","top"].includes(i)?-1:1,f=r&&c?-1:1,a=nt(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:g}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return s&&typeof g=="number"&&(h=s==="end"?g*-1:g),c?{x:h*f,y:d*u}:{x:d*u,y:h*f}}const zr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:l,y:r,placement:i,middlewareData:s}=t,c=await Yr(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:l+c.x,y:r+c.y,data:{...c,placement:i}}}}},Qr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:l}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:s={fn:v=>{let{x:y,y:b}=v;return{x:y,y:b}}},...c}=nt(e,t),u={x:n,y:o},f=await bn(t,c),a=oe(ce(l)),d=yn(a);let h=u[d],g=u[a];if(r){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=h+f[v],C=h-f[y];h=Ht(b,h,C)}if(i){const v=a==="y"?"top":"left",y=a==="y"?"bottom":"right",b=g+f[v],C=g-f[y];g=Ht(b,g,C)}const x=s.fn({...t,[d]:h,[a]:g});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[d]:r,[a]:i}}}}}};function rt(){return typeof window!="undefined"}function xe(e){return wn(e)?(e.nodeName||"").toLowerCase():"#document"}function N(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function G(e){var t;return(t=(wn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wn(e){return rt()?e instanceof Node||e instanceof N(e).Node:!1}function V(e){return rt()?e instanceof Element||e instanceof N(e).Element:!1}function U(e){return rt()?e instanceof HTMLElement||e instanceof N(e).HTMLElement:!1}function Mt(e){return!rt()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof N(e).ShadowRoot}function Ee(e){const{overflow:t,overflowX:n,overflowY:o,display:l}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(l)}function el(e){return["table","td","th"].includes(xe(e))}function lt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(n){return!1}})}function _t(e){const t=Pt(),n=V(e)?F(e):e;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function tl(e){let t=re(e);for(;U(t)&&!me(t);){if(_t(t))return t;if(lt(t))return null;t=re(t)}return null}function Pt(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function me(e){return["html","body","#document"].includes(xe(e))}function F(e){return N(e).getComputedStyle(e)}function it(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function re(e){if(xe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mt(e)&&e.host||G(e);return Mt(t)?t.host:t}function Cn(e){const t=re(e);return me(t)?e.ownerDocument?e.ownerDocument.body:e.body:U(t)&&Ee(t)?t:Cn(t)}function $n(e,t,n){var o;t===void 0&&(t=[]);const l=Cn(e),r=l===((o=e.ownerDocument)==null?void 0:o.body),i=N(l);return r?(wt(i),t.concat(i,i.visualViewport||[],Ee(l)?l:[],[])):t.concat(l,$n(l,[]))}function wt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _n(e){const t=F(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const l=U(e),r=l?e.offsetWidth:n,i=l?e.offsetHeight:o,s=Ue(n)!==r||Ue(o)!==i;return s&&(n=r,o=i),{width:n,height:o,$:s}}function Pn(e){return V(e)?e:e.contextElement}function he(e){const t=Pn(e);if(!U(t))return K(1);const n=t.getBoundingClientRect(),{width:o,height:l,$:r}=_n(t);let i=(r?Ue(n.width):n.width)/o,s=(r?Ue(n.height):n.height)/l;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const nl=K(0);function kn(e){const t=N(e);return!Pt()||!t.visualViewport?nl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ol(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==N(e)?!1:t}function _e(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect(),r=Pn(e);let i=K(1);t&&(o?V(o)&&(i=he(o)):i=he(e));const s=ol(r,n,o)?kn(r):K(0);let c=(l.left+s.x)/i.x,u=(l.top+s.y)/i.y,f=l.width/i.x,a=l.height/i.y;if(r){const d=N(r),h=o&&V(o)?N(o):o;let g=d,x=wt(g);for(;x&&o&&h!==g;){const v=he(x),y=x.getBoundingClientRect(),b=F(x),C=y.left+(x.clientLeft+parseFloat(b.paddingLeft))*v.x,T=y.top+(x.clientTop+parseFloat(b.paddingTop))*v.y;c*=v.x,u*=v.y,f*=v.x,a*=v.y,c+=C,u+=T,g=N(x),x=wt(g)}}return qe({width:f,height:a,x:c,y:u})}function kt(e,t){const n=it(e).scrollLeft;return t?t.left+n:_e(G(e)).left+n}function Tn(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=o.left+t.scrollLeft-(n?0:kt(e,o)),r=o.top+t.scrollTop;return{x:l,y:r}}function rl(e){let{elements:t,rect:n,offsetParent:o,strategy:l}=e;const r=l==="fixed",i=G(o),s=t?lt(t.floating):!1;if(o===i||s&&r)return n;let c={scrollLeft:0,scrollTop:0},u=K(1);const f=K(0),a=U(o);if((a||!a&&!r)&&((xe(o)!=="body"||Ee(i))&&(c=it(o)),U(o))){const h=_e(o);u=he(o),f.x=h.x+o.clientLeft,f.y=h.y+o.clientTop}const d=i&&!a&&!r?Tn(i,c,!0):K(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+d.x,y:n.y*u.y-c.scrollTop*u.y+f.y+d.y}}function ll(e){return Array.from(e.getClientRects())}function il(e){const t=G(e),n=it(e),o=e.ownerDocument.body,l=de(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=de(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+kt(e);const s=-n.scrollTop;return F(o).direction==="rtl"&&(i+=de(t.clientWidth,o.clientWidth)-l),{width:l,height:r,x:i,y:s}}function sl(e,t){const n=N(e),o=G(e),l=n.visualViewport;let r=o.clientWidth,i=o.clientHeight,s=0,c=0;if(l){r=l.width,i=l.height;const u=Pt();(!u||u&&t==="fixed")&&(s=l.offsetLeft,c=l.offsetTop)}return{width:r,height:i,x:s,y:c}}function cl(e,t){const n=_e(e,!0,t==="fixed"),o=n.top+e.clientTop,l=n.left+e.clientLeft,r=U(e)?he(e):K(1),i=e.clientWidth*r.x,s=e.clientHeight*r.y,c=l*r.x,u=o*r.y;return{width:i,height:s,x:c,y:u}}function Vt(e,t,n){let o;if(t==="viewport")o=sl(e,n);else if(t==="document")o=il(G(e));else if(V(t))o=cl(t,n);else{const l=kn(e);o={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return qe(o)}function Sn(e,t){const n=re(e);return n===t||!V(n)||me(n)?!1:F(n).position==="fixed"||Sn(n,t)}function al(e,t){const n=t.get(e);if(n)return n;let o=$n(e,[]).filter(s=>V(s)&&xe(s)!=="body"),l=null;const r=F(e).position==="fixed";let i=r?re(e):e;for(;V(i)&&!me(i);){const s=F(i),c=_t(i);!c&&s.position==="fixed"&&(l=null),(r?!c&&!l:!c&&s.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||Ee(i)&&!c&&Sn(e,i))?o=o.filter(f=>f!==i):l=s,i=re(i)}return t.set(e,o),o}function ul(e){let{element:t,boundary:n,rootBoundary:o,strategy:l}=e;const i=[...n==="clippingAncestors"?lt(t)?[]:al(t,this._c):[].concat(n),o],s=i[0],c=i.reduce((u,f)=>{const a=Vt(t,f,l);return u.top=de(a.top,u.top),u.right=vt(a.right,u.right),u.bottom=vt(a.bottom,u.bottom),u.left=de(a.left,u.left),u},Vt(t,s,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function fl(e){const{width:t,height:n}=_n(e);return{width:t,height:n}}function dl(e,t,n){const o=U(t),l=G(t),r=n==="fixed",i=_e(e,!0,r,t);let s={scrollLeft:0,scrollTop:0};const c=K(0);function u(){c.x=kt(l)}if(o||!o&&!r)if((xe(t)!=="body"||Ee(l))&&(s=it(t)),o){const h=_e(t,!0,r,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else l&&u();r&&!o&&l&&u();const f=l&&!o&&!r?Tn(l,s):K(0),a=i.left+s.scrollLeft-c.x-f.x,d=i.top+s.scrollTop-c.y-f.y;return{x:a,y:d,width:i.width,height:i.height}}function ht(e){return F(e).position==="static"}function Ft(e,t){if(!U(e)||F(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return G(e)===n&&(n=n.ownerDocument.body),n}function En(e,t){const n=N(e);if(lt(e))return n;if(!U(e)){let l=re(e);for(;l&&!me(l);){if(V(l)&&!ht(l))return l;l=re(l)}return n}let o=Ft(e,t);for(;o&&el(o)&&ht(o);)o=Ft(o,t);return o&&me(o)&&ht(o)&&!_t(o)?n:o||tl(e)||n}const hl=async function(e){const t=this.getOffsetParent||En,n=this.getDimensions,o=await n(e.floating);return{reference:dl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function gl(e){return F(e).direction==="rtl"}const ml={convertOffsetParentRelativeRectToViewportRelativeRect:rl,getDocumentElement:G,getClippingRect:ul,getOffsetParent:En,getElementRects:hl,getClientRects:ll,getDimensions:fl,getScale:he,isElement:V,isRTL:gl},pl=zr,yl=Qr,xl=Gr,vl=(e,t,n)=>{const o=new Map,l={platform:ml,...n},r={...l.platform,_c:o};return Xr(e,t,{...l,platform:r})},bl=w('<div><div><div class="m-2 bg-white rounded-md p-4 shadow-xl text-xs overflow-auto">'),wl=w("<div>"),Cl=w('<div class="mb-2"><button class="inline-flex cursor-pointer bg-gray-100 rounded-full hover:bg-gray-200 py-0 px-2 ">...');function $l(e){let t;const[n,o]=M();return Te(()=>{if(t){const l=e.treeState.originalNode.getBox();vl({getBoundingClientRect:()=>
1({top:(l==null?void 0:l.y)||0,left:(l==null?void 0:l.x)||0,width:16,height:16})},t,{placement:"left-start",middleware:[pl(10),yl(),xl()]}).then(({x:r,y:i})=>{o({x:r,y:i})})}}),(()=>{const l=bl(),r=l.firstChild,i=r.firstChild;l.$$click=c=>{c.currentTarget===c.target&&e.close()},l.style.setProperty("position","fixed"),l.style.setProperty("top","0"),l.style.setProperty("left","0"),l.style.setProperty("width","100vw"),l.style.setProperty("height","100vh"),l.style.setProperty("pointer-events","auto"),l.style.setProperty("background-color","rgba(0,0,0,0.1)"),l.style.setProperty("z-index","1001");const s=t;return typeof s=="function"?we(s,r):t=r,r.style.setProperty("position","absolute"),i.style.setProperty("max-height","calc(100vh - 16px)"),p(i,(()=>{const c=_(()=>!!e.treeState);return()=>c()?(()=>{const u=wl();return p(u,(()=>{const f=_(()=>{var a;return!!((a=e.treeState)!=null&&a.root.getParent())});return()=>f()?(()=>{const a=Cl(),d=a.firstChild;return d.$$click=()=>{const h=e.treeState,g=h.root.getParent();g&&(h.expandedIds.add(g.uniqueId),e.setTreeState({...h,root:g}))},a})():null})(),null),p(u,$(pn,{get node(){return e.treeState.root},get expandedIds(){return e.treeState.expandedIds},get highlightedId(){return e.treeState.highlightedId},expandId:f=>{const a=e.treeState;a.expandedIds.add(f),e.setTreeState(a)},get targets(){return e.targets},get setHighlightedBoundingBox(){return e.setHighlightedNode},parentComponent:null}),null),u})():"no tree"})()),S(c=>{var a,d;const u=`${((a=n())==null?void 0:a.y)||0}px`,f=`${((d=n())==null?void 0:d.x)||0}px`;return u!==c._v$&&((c._v$=u)!=null?r.style.setProperty("top",u):r.style.removeProperty("top")),f!==c._v$2&&((c._v$2=f)!=null?r.style.setProperty("left",f):r.
1style.removeProperty("left")),c},{_v$:void 0,_v$2:void 0}),l})()}I(["click"]);const _l=w('<div><div class="flex justify-between items-center"></div><div class="font-medium mt-2">Disable Locator</div><div class="text-sm text-gray-700 mt-1">You will be able to enable Locator again by running `enableLocator()` in DevTools console.</div><div class="flex justify-end"><button class="bg-slate-100 py-2 px-4 rounded hover:bg-slate-300 active:bg-slate-200 cursor-pointer text-sm">Confirm');function Pl(e){const t=J();return(()=>{const n=_l(),o=n.firstChild,l=o.nextSibling,r=l.nextSibling,i=r.nextSibling,s=i.firstChild;return p(o,$(tt,{}),null),p(o,$(gn,{onClick:()=>e.onClose()}),null),s.addEventListener("click",()=>{t.setOptions({disabled:!0})}),S(()=>Z(n,et()+" w-96")),n})()}function kl(e,t){return t==="react"&&Q.getParentsPaths?Q.getParentsPaths(e):t==="svelte"&&te.getParentsPaths?te.getParentsPaths(e):t==="vue"&&ne.getParentsPaths?ne.getParentsPaths(e):t==="jsx"&&ee.getParentsPaths?ee.getParentsPaths(e):Ct()&&te.getParentsPaths?te.getParentsPaths(e):Wt()&&ne.getParentsPaths?ne.getParentsPaths(e):Zt()&&Q.getParentsPaths?Q.getParentsPaths(e):Kt()&&ee.getParentsPaths?ee.getParentsPaths(e):[]}function Tl(e){const t=e.split("/");if(t.length===1)return t[0]||"unnamed";const n=t[t.length-1]||"unnamed";return n.startsWith("index.")?`${t[t.length-2]}/${n}`:n}const Sl=w('<div tabindex="0"><div><div class="bg-white rounded-md py-2 shadow-xl text-xs overflow-auto flex flex-col">'),El=w('<a><div class="text-xs text-gray-500">');function Ll(e){const t=J();let n,o,l;Kn(()=>{l&&l.focus()});const[r,i]=M(null),s=()=>kl(e.contextMenuState.target,e.adapterId);function c(a){var h;if(r==null){i(0);return}let d=(h=r())!=null?h:-1;a==="down"&&(d+=1),a==="up"&&(d-=1),d<0&&(d=s().length-1),d>s().length-1&&(d=0),i(d),window.setTimeout(()=>{u()},0)}function u(){var a;r!=null&&((a=o==null?void 0:o.querySelector(`:nth-child(${(r()||0)+1})`))==null||a.scrollIntoView({block:"nearest"}))}function f(a){switch(a.key){case"Escape":{a.preventDefault(),a.stopPropagation(),e.close();break}case"ArrowDown":{a.preventDefault(),c("down");break}case"ArrowUp":{a.preventDefault(),c("up");break}case"Enter":case" ":{if(a.preventDefault(),r()!==null){const d=s()[r()];d&&yt(d.link,e.targets,t),i(null)}e.close();break}}}return(()=>{const a=Sl(),d=a.firstChild,h=d.firstChild;a.$$keydown=f,a.$$click=y=>{y.currentTarget===y.target&&e.close()};const g=l;typeof g=="function"?we(g,a):l=a,a.style.setProperty("position","fixed"),a.style.setProperty("top","0"),a.style.setProperty("left","0"),a.style.setProperty("width","100vw"),a.style.setProperty("height","100vh"),a.style.setProperty("pointer-events","auto"),a.style.setProperty("background-color","rgba(0,0,0,0.1)"),a.style.setProperty("z-index","1001");const x=n;typeof x=="function"?we(x,d):n=d,d.style.setProperty("position","absolute");const v=o;return typeof v=="function"?we(v,h):o=h,h.style.setProperty("max-height","calc(100vh - 16px)"),p(h,$(ye,{get each(){return s()},children:(y,b)=>(()=>{const C=El(),T=C.firstChild;return C.$$click=P=>{P.preventDefault(),P.stopPropagation(),yt(y.link,e.targets,t),e.close()},p(C,()=>y.title,T),p(T,()=>{var P;return Tl(((P=y.link)==null?void 0:P.filePath)||"")}),S(P=>{const B="px-4 py-2 w-60 hover:bg-slate-50 text-left text-sm font-medium "+(b()===r()?"bg-slate-100":""),H=Pe(y.link,e.targets,t);return B!==P._v$3&&Z(C,P._v$3=B),H!==P._v$4&&j(C,"href",P._v$4=H),P},{_v$3:void 0,_v$4:void 0}),C})()})),S(y=>{const b=`${e.contextMenuState.y||0}px`,C=`${e.contextMenuState.x||0}px`;return b!==y._v$&&((y._v$=b)!=null?d.style.setProperty("top",b):d.style.removeProperty("top")),C!==y._v$2&&((y._v$2=C)!=null?d.style.setProperty("left",C):d.style.removeProperty("left")),y},{_v$:void 0,_v$2:void 0}),a})()}I(["click","keydown"]);const Ol=w('<div><div class="mt-2 text-xs text-gray-600">Support me on <a class="underline hover:text-sky-900 text-sky-700" href="https://github.com/sponsors/infi-pc" target="_blank">GitHub sponsors'),Al=w('<div class="fixed top-0 left-0 w-screen h-screen flex items-center justify-center bg-black/70 pointer-events-auto">');function Il(e){const[t,n]=M(["off"]),[o,l]=M(!1),[r,i]=M(null),[s,c]=M(null),[u,f]=M(null),a=J();Te(()=>{o()&&r()?document.body.classList.add("locatorjs-active-pointer"):document.body.classList.remove("locatorjs-active-pointer")});function d(m){l(fe(m))}function h(m){l(fe(m,!0))}function g(m){const k=m.target;if(k&&k instanceof HTMLElement){if(Rt(k))return;l(fe(m,!0)),Zn(()=>{i(k)})}}function x(m){fe(m)&&(m.preventDefault(),m.stopPropagation())}function v(m,k,E){n(["context",{target:m,x:k,y:E}])}function y(m){const k=Ke(m,e.adapterId);if(k){const E=k.thisElement.link;E&&navigator.clipboard.writeText(E.filePath)}}function b(m){if(!fe(m,!0))return;m.preventDefault(),m.stopPropagation();const k=m.clientX,E=m.clientY,R=m.target;R&&R instanceof HTMLElement&&v(R,k,E)}function C(m){if(!fe(m)&&t()[0]!=="options")return;const k=m.target;if(k&&k instanceof HTMLElement){if(k.shadowRoot||Rt(k))return;const E=Ke(k,e.adapterId);if(E){const R=E.thisElement.link;R?(m.preventDefault(),m.stopPropagation(),(!Ce()||Ct())&&!a.getOptions().welcomeScreenDismissed?c(["choose-editor",R]):yt(R,e.targets,a)):(console.error("[LocatorJS]: Could not find link: Element info: ",E),c(["no-link"]))}else console.error("[LocatorJS]: Could not find element info. Element: ",k),c(["no-link"])}}function T(){i(null)}const P=[document];document.querySelectorAll("*").forEach(m=>{m.id!=="locatorjs-wrapper"&&m.shadowRoot&&P.push(m.shadowRoot)});for(const m of P)m.addEventListener("mouseover",g,{capture:!0}),m.addEventListener("keydown",h),m.addEventListener("keyup",d),m.addEventListener("click",C,{capture:!0}),m.addEventListener("contextmenu",b,{capture:!0}),m.addEventListener("mousedown",x,{capture:!0}),m.addEventListener("mouseup",x,{capture:!0}),m.addEventListener("scroll",T);qt(()=>{for(const m of P)m.removeEventListener("keyup",d),m.removeEventListener("keydown",h),m.removeEventListener("mouseover",g,{capture:!0}),m.removeEventListener("click",C,{capture:!0}),m.removeEventListener("contextmenu",b,{capture:!0}),m.removeEventListener("mousedown",x,{capture:!0}),m.removeEventListener("mouseup",x,{capture:!0}),m.removeEventListener("scroll",T)});
1function B(m){const k=jr(m);k&&n(["tree",k])}function H(){n(["options"])}return[_((()=>{const m=_(()=>t()[0]==="tree");return()=>m()?$($l,{get treeState(){return t()[1]},close:()=>n(["off"]),setTreeState:k=>n(["tree",k]),get adapterId(){return e.adapterId},get targets(){return e.targets},setHighlightedNode:f}):null})()),_((()=>{const m=_(()=>t()[0]==="context");return()=>m()?$(Ll,{get contextMenuState(){return t()[1]},close:()=>n(["off"]),get adapterId(){return e.adapterId},get targets(){return e.targets},setHighlightedNode:f}):null})()),_((()=>{const m=_(()=>!!((o()||t()[0]==="options")&&r()));return()=>m()?$(zo,{get currentElement(){return r()},get adapterId(){return e.adapterId},get targets(){return e.targets},showTreeFromElement:B,showParentsPath:v,copyToClipboard:y}):null})()),_((()=>{const m=_(()=>!!o());return()=>m()?(()=>{const k=Ol(),E=k.firstChild,R=E.firstChild,Le=R.nextSibling;return p(k,$(hn,{openOptions:H,get adapter(){return e.adapterId}}),E),Le.$$click=ve=>{ve.preventDefault(),ve.stopPropagation(),window.open("https://github.com/sponsors/infi-pc")},S(()=>Z(k,et())),k})():null})()),_((()=>{const m=_(()=>!!u());return()=>m()?$(Qo,{get node(){return u()}}):null})()),_((()=>{const m=_(()=>!Ce()&&a.getOptions().showIntro!==!1);return()=>m()?$(ir,{openOptions:H,get hide(){return!!o()||t()[0]!=="off"},get adapter(){return e.adapterId}}):null})()),_((()=>{const m=_(()=>t()[0]==="options");return()=>m()?$(Er,{get adapterId(){return e.adapterId},get targets(){return e.targets},onClose:()=>{n(["off"])},showDisableDialog:()=>{n(["disable-confirmation"])},get currentElement(){return r()}}):null})()),_((()=>{const m=_(()=>t()[0]==="disable-confirmation");return()=>m()?$(Pl,{onClose:()=>{n(["off"])}}):null})()),_((()=>{const m=_(()=>!!s());return()=>m()&&(()=>{const k=Al();return k.$$click=E=>{E.currentTarget===E.target&&c(null)},p(k,(()=>{const E=_(()=>s()[0]==="no-link");return()=>E()&&$(Ar,{})})(),null),p(k,(()=>{const E=_(()=>s()[0]==="choose-editor");return()=>E()&&$(Nr,{get targets(){return e.targets},get originalLinkProps(){return s()[1]},onClose:()=>{c(null)}})})(),null),k})()})())]}function Nl(e){const t=J(),n=()=>t.getOptions().disabled||!1;return Te(()=>{n()&&Ce()?document.head.dataset.locatorDisabled="disabled":delete document.head.dataset.locatorDisabled}),$(io,{get when(){return!n()},get children(){return $(Il,e)}})}function Jl(e,t,n){co(()=>$(Io,{get children(){return $(Nl,{get targets(){return Object.fromEntries(Object.entries(n).map(([o,l])=>[o,typeof l=="string"?{url:l,label:o}:l]))},adapterId:t})}}),e)}I(["click"]);export{Jl as initRender};

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.