PageSourceSearch

https://tailscan.com/_nuxt/DRiNQ7CP.js

js tailscan.com collected 2026-10-01 15:06:48 UTC 9,239 bytes, 4 lines download raw bytes

1import{az as T,Y as I,F as M,a0 as D,W as H,q as A,B as k,D as E,A as C,m as U}from"./b0B6LXoP.js";function O(e,t,...n){if(e in t){let u=t[e];return typeof u=="function"?u(...n):u}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(u=>`"${u}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,O),r}var R=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(R||{}),_=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(_||{});function W({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...u}){var o;let a=$(r,n),l=Object.assign(u,{props:a});if(e||t&2&&a.static)return y(l);if(t&1){let m=(o=a.unmount)==null||o?0:1;return O(m,{0(){return null},1(){return y({...u,props:{...a,hidden:!0,style:{display:"none"}}})}})}return y(l)}function y({props:e,attrs:t,slots:n,slot:r,name:u}){var o,a;let{as:l,...m}=K(e,["unmount","static"]),i=(o=n.default)==null?void 0:o.call(n,r),s={};if(r){let p=!1,h=[];for(let[f,d]of Object.entries(r))typeof d=="boolean"&&(p=!0),d===!0&&h.push(f);p&&(s["data-headlessui-state"]=h.join(" "))}if(l==="template"){if(i=P(i??[]),Object.keys(m).length>0||Object.keys(t).length>0){let[p,...h]=i??[];if(!B(p)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${u} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(m).concat(Object.keys(t)).map(c=>c.trim()).filter((c,b,L)=>L.indexOf(c)===b).sort((c,b)=>c.localeCompare(b)).map(c=>`  - ${c}`).join(`
2`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(c=>`  - ${c}`).join(`
3`)].join(`
4`));let f=$((a=p.props)!=null?a:{},m),d=T(p,f);for(let c in f)c.startsWith("on")&&(d.props||(d.props={}),d.props[c]=f[c]);return d}return Array.isArray(i)&&i.length===1?i[0]:i}return I(l,Object.assign({},m,s),{default:()=>i})}function P(e){return e.flatMap(t=>t.type===M?P(t.children):[t])}function $(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let u in r)u.startsWith("on")&&typeof r[u]=="function"?(n[u]!=null||(n[u]=[]),n[u].push(r[u])):t[u]=r[u];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](u,...o){let a=n[r];for(let l of a){if(u instanceof Event&&u.defaultPrevented)return;l(u,...o)}}});return t}function ce(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function K(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function B(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let G=0;function V(){return++G}function fe(){return V()}var q=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(q||{});function v(e){var t;return e==null||e.value==null?null:(t=e.value.$el)!=null?t:e.value}let F=Symbol("Context");var X=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(X||{});function pe(){return D(F,null)}function me(e){H(F,e)}function S(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function he(e,t){let n=A(S(e.value.type,e.value.as));return k(()=>{n.value=S(e.value.type,e.value.as)}),E(()=>{var r;n.value||v(t)&&v(t)instanceof HTMLButtonElement&&!((r=v(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}var Y=Object.defineProperty,z=(e,t,n)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t,n)=>(z(e,typeof t!="symbol"?t+"":t,n),n);class J{constructor(){j(this,"current",this.detect()),j(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>
4"u"?"server":"client"}}let N=new J;function Q(e){if(N.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=v(e);if(t)return t.ownerDocument}return document}let g=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Z=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Z||{}),ee=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ee||{}),te=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(te||{});function ne(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(g)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var x=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(x||{});function re(e,t=0){var n;return e===((n=Q(e))==null?void 0:n.body)?!1:O(t,{0(){return e.matches(g)},1(){let r=e;for(;r!==null;){if(r.matches(g))return!0;r=r.parentElement}return!1}})}var oe=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(oe||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let ue=["textarea","input"].join(",");function le(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,ue))!=null?n:!1}function ae(e,t=n=>n){return e.slice().sort((n,r)=>{let u=t(n),o=t(r);if(u===null||o===null)return 0;let a=u.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ve(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:u=[]}={}){var o;let a=(o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?o:document,l=Array.isArray(e)?n?ae(e):e:ne(e);u.length>0&&l.length>1&&(l=l.filter(d=>!u.includes(d))),r=r??a.activeElement;let m=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),i=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(r))-1;if(t&4)return Math.max(0,l.indexOf(r))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=t&32?{preventScroll:!0}:{},p=0,h=l.length,f;do{if(p>=h||p+h<=0)return 0;let d=i+p;if(t&16)d=(d+h)%h;else{if(d<0)return 3;if(d>=h)return 1}f=l[d],f==null||f.focus(s),p+=m}while(f!==a.activeElement);return t&6&&le(f)&&f.select(),2}function w(e,t,n){N.isServer||E(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function ie(e,t,n){N.isServer||E(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function we(e,t,n=C(()=>!0)){function r(o,a){if(!n.value||o.defaultPrevented)return;let l=a(o);if(l===null||!l.getRootNode().contains(l))return;let m=function i(s){return typeof s=="function"?i(s()):Array.isArray(s)||s instanceof Set?s:[s]}(e);for(let i of m){if(i===null)continue;let s=i instanceof HTMLElement?i:v(i);if(s!=null&&s.contains(l)||o.composed&&o.composedPath().includes(s))return}return!re(l,x.Loose)&&l.tabIndex!==-1&&o.preventDefault(),t(o,l)}let u=A(null);w("pointerdown",o=>{var a,l;n.value&&(u.value=((l=(a=o.composedPath)==null?void 0:a.call(o))==null?void 0:l[0])||o.target)},!0),w("mousedown",o=>{var a,l;n.value&&(u.value=((l=(a=o.composedPath)==null?void 0:a.call(o))==null?void 0:l[0])||o.target)},!0),w("click",o=>{u.value&&(r(o,()=>u.value),u.value=null)},!0),w("touchend",o=>r(o,()=>o.target instanceof HTMLElement?o.target:null),!0),ie("blur",o=>r(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var se=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(se||{});let be=U({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{let{features:r,...u}=e,o={"aria-hidden":(r&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return W({ourProps:o,theirProps:u,slot:{},attrs:n,slots:t,name:"Hidden"})}}});
4export{ne as E,W as H,ce as K,R as N,ae as O,ve as P,K as T,se as a,he as b,me as c,q as d,ie as e,be as f,N as g,x as h,Z as i,ee as j,X as l,Q as m,v as o,pe as p,fe as t,O as u,re as w,we as y};

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.