PageSourceSearch

https://flowfuse.com/_nuxt/C_qBTjsv2.js

js flowfuse.com collected 2026-10-02 10:17:07 UTC 7,113 bytes, 1 lines download raw bytes

1import{A as e,B as t,C as n,D as r,F as i,O as a,x as o}from"./DtSZKRQB.js";import{Ht as s,L as c,ct as l,g as u,k as d,tt as f}from"./KMxuRXml.js";import{C as p,S as m,_ as h,a as g,b as _,d as v,f as y,l as b,o as x,s as S,t as C,u as w,w as T,x as E,y as D}from"./seld0gq92.js";function O(e={}){let{inheritAttrs:t=!0,name:n=`ReusableTemplate`}=e,r=a(),i=d({name:`${n}.define`,setup(e,{slots:t}){return()=>{r.value=t.default}}}),o=d({inheritAttrs:t,name:`${n}.reuse`,props:e.props,setup(n,{attrs:i,slots:a}){return()=>{if(!r.value)throw Error(`[VueUse] Failed to find the definition of reusable template`);let o=r.value?.call(r,{...e.props==null?k(i):n,$slots:a});return t&&o?.length===1?o[0]:o}}});return w({define:i,reuse:o},[i,o])}function k(e){let t={};for(let n in e)t[C(n)]=e[n];return t}var A=x?window:void 0;x&&window.document;var j=x?window.navigator:void 0;x&&window.location;function M(e){let t=i(e);return t?.$el??t}function N(...e){let n=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),r=u(()=>{let t=h(i(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return T(()=>[r.value?.map(e=>M(e))??[A].filter(e=>e!=null),h(i(r.value?e[1]:e[0])),h(t(r.value?e[2]:e[1])),i(r.value?e[3]:e[2])],([e,t,r,i],a,o)=>{if(!e?.length||!t?.length||!r?.length)return;let s=b(i)?{...i}:i,c=e.flatMap(e=>t.flatMap(t=>r.map(r=>n(e,t,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function P(){let e=a(!1),t=c();return t&&l(()=>{e.value=!0},t),e}function F(e){let t=P();return u(()=>(t.value,!!e()))}function I(e,t,n={}){let{window:r=A,...a}=n,o,c=F(()=>r&&`MutationObserver`in r),l=()=>{o&&=(o.disconnect(),void 0)},d=s(u(()=>{let t=h(i(e)).map(M).filter(y);return new Set(t)}),e=>{l(),c.value&&e.size&&(o=new MutationObserver(t),e.forEach(e=>o.observe(e,a)))},{immediate:!0,flush:`post`}),f=()=>o?.takeRecords(),p=()=>{d(),l()};return _(p),{isSupported:c,stop:p,takeRecords:f}}function L(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function R(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:a=A,eventName:o=`keydown`,passive:s=!1,dedupe:c=!1}=r,l=L(t);return N(a,o,e=>{e.repeat&&i(c)||l(e)&&n(e)},s)}function z(t,n={}){let{controls:r=!1,navigator:i=j}=n,o=F(()=>i&&`permissions`in i),s=a(),c=typeof t==`string`?{name:t}:t,l=a(),u=()=>{l.value=s.value?.state??`prompt`};N(s,`change`,u,{passive:!0});let d=g(async()=>{if(o.value){if(!s.value)try{s.value=await i.permissions.query(c)}catch{s.value=void 0}finally{u()}if(r)return e(s.value)}});return d(),r?{state:l,isSupported:o,query:d}:l}function B(e={}){let{navigator:t=j,read:n=!1,source:o,copiedDuring:s=1500,legacy:c=!1}=e,l=F(()=>t&&`clipboard`in t),d=z(`clipboard-read`),f=z(`clipboard-write`),m=u(()=>l.value||c),h=a(``),g=a(!1),_=a(!1),v=p(()=>g.value=!1,s,{immediate:!1}),y=0;async function b(){let e=!(l.value&&T(d.value));if(!e)try{h.value=await t.clipboard.readText()}catch{e=!0}e&&(h.value=w())}m.value&&n&&N([`copy`,`cut`],b,{passive:!0});async function x(e){let n=e??i(o);if(m.value&&n!=null){_.value=!0;let e=!(l.value&&T(f.value));if(!e)try{let e=S(n);await t.clipboard.write([e])}catch{e=!0}if(e){if(typeof n==`string`)h.value=n,C(n);else{let e=++y,t=await n();t!=null&&e===y&&(h.value=t,C(t))}}g.value=!0,v.start(),_.value=!1}}function S(e){return typeof e==`string`?(h.value=e,new ClipboardItem({"text/plain":e})):new ClipboardItem({"text/plain":e().then((e=``)=>(h.value=e,new Blob([e],{type:`text/plain`})))})}function C(e){let t=document.createElement(`textarea`);t.value=e,t.style.position=`absolute`,t.style.opacity=`0`,t.setAttribute(`readonly`,``),document.body.appendChild(t),t.select(),document.execCommand(`copy`),t.remove()}function w(){var e,t;return((e=document)==null||(t=e.getSelection)==null||(t=t.call(e))==null?void 0:t.toString())??``}function T(e){return e===`granted`||e===`prompt`}return{copyPending:r(_),isSupported:m,text:r(h),copied:r(g),copy:x}}function V(e){return JSON.parse(JSON.stringify(e))}function H(e,t,n={}){let{window:r=A,...a}=n,o,c=F(()=>r&&`ResizeObserver`in r),l=()=>{o&&=(o.disconnect(),void 0)},d=s(u(()=>{let t=i(e);return Array.isArray(t)?t.map(e=>M(e)):[M(t)]}),e=>{if(l(),c.value&&r){o=new ResizeObserver(t);for(let t of e)t&&o.observe(t,a)}},{immediate:!0,flush:`post`}),f=()=>{l(),d()};return _(f),{isSupported:c,stop:f}}var U=1;function W(e,t={}){let{throttle:n=0,idle:r=200,onStop:s=v,onScroll:c=v,offset:l={left:0,right:0,top:0,bottom:0},observe:d={mutation:!1},eventListenerOptions:f={capture:!1,passive:!0},behavior:p=`auto`,window:h=A,onError:g=e=>{console.error(e)}}=t,_=typeof d==`boolean`?{mutation:d}:d,y=a(0),b=a(0),x=u({get(){return y.value},set(e){C(e,void 0)}}),S=u({get(){return b.value},set(e){C(void 0,e)}});function C(t,n){var r,a;if(!h)return;let o=i(e);if(!o)return;(r=o instanceof Document?h.document.body:o)==null||r.scrollTo({top:i(n)??S.value,left:i(t)??x.value,behavior:i(p)});let s=(o==null||(a=o.document)==null?void 0:a.documentElement)||o?.documentElement||o;x!=null&&(y.value=s.scrollLeft),S!=null&&(b.value=s.scrollTop)}let w=a(!1),T=o({left:!0,right:!1,top:!0,bottom:!1}),O=o({left:!1,right:!1,top:!1,bottom:!1}),k=e=>{w.value&&(w.value=!1,O.left=!1,O.right=!1,O.top=!1,O.bottom=!1,s(e))},j=E(k,n+r),P=e=>{var t;if(!h)return;let n=(e==null||(t=e.document)==null?void 0:t.documentElement)||e?.documentElement||M(e),{display:r,flexDirection:i,direction:a}=h.getComputedStyle(n),o=a===`rtl`?-1:1,s=n.scrollLeft;O.left=s<y.value,O.right=s>y.value;
1let c=Math.abs(s*o)<=(l.left||0),u=Math.abs(s*o)+n.clientWidth>=n.scrollWidth-(l.right||0)-U;r===`flex`&&i===`row-reverse`?(T.left=u,T.right=c):(T.left=c,T.right=u),y.value=s;let d=n.scrollTop;e===h.document&&!d&&(d=h.document.body.scrollTop),O.top=d<b.value,O.bottom=d>b.value;let f=Math.abs(d)<=(l.top||0),p=Math.abs(d)+n.clientHeight>=n.scrollHeight-(l.bottom||0)-U;r===`flex`&&i===`column-reverse`?(T.top=p,T.bottom=f):(T.top=f,T.bottom=p),b.value=d},F=e=>{if(!h)return;let t=e.target.documentElement??e.target;P(t),w.value=!0,j(e),c(e)};return N(e,`scroll`,n?m(F,n,!0,!1):F,f),D(()=>{try{let t=i(e);if(!t)return;P(t)}catch(e){g(e)}}),_?.mutation&&e!=null&&e!==h&&e!==document&&I(e,()=>{let t=i(e);t&&P(t)},{attributes:!0,childList:!0,subtree:!0}),N(e,`scrollend`,k,f),{x,y:S,isScrolling:w,arrivedState:T,directions:O,measure(){let t=i(e);h&&t&&P(t)}}}function G(e,t,r,i={}){var a,o;let{clone:l=!1,passive:d=!1,eventName:p,deep:m=!1,defaultValue:h,shouldEmit:g}=i,_=c(),v=r||_?.emit||(_==null||(a=_.$emit)==null?void 0:a.bind(_))||(_==null||(o=_.proxy)==null||(o=o.$emit)==null?void 0:o.bind(_?.proxy)),y=p;t||=`modelValue`,y||=`update:${t.toString()}`;let b=e=>l?typeof l==`function`?l(e):V(e):e,x=()=>S(e[t])?b(e[t]):h,C=e=>{g?g(e)&&v(y,e):v(y,e)};if(d){let r=n(x()),i=!1;return s(()=>e[t],e=>{i||(i=!0,r.value=b(e),f(()=>i=!1))}),s(r,n=>{!i&&(n!==e[t]||m)&&C(n)},{deep:m}),r}return u({get(){return x()},set(e){C(e)}})}export{B as a,H as c,M as i,W as l,A as n,N as o,R as r,P as s,O as t,G as u};

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.