1// @alpinejs/[email protected] downloaded from https://ga.jspm.io/npm:@alpinejs/[email protected]/dist/module.esm.js 2 3function e(e){e.directive("resize",e.skipDuringClone(((e,{value:t,expression:n,modifiers:o},{evaluateLater:l,cleanup:s})=>{let u=l(n);let c=(e,r)=>{u((()=>{}),{scope:{$width:e,$height:r}})};let d=o.includes("document")?i(c):r(e,c);s((()=>d()))})))}function r(e,r){let t=new ResizeObserver((e=>{let[t,n]=o(e);r(t,n)}));t.observe(e);return()=>t.disconnect()}var t;var n=new Set;function i(e){n.add(e);if(!t){t=new ResizeObserver((e=>{let[r,t]=o(e);n.forEach((e=>e(r,t)))}));t.observe(document.documentElement)}return()=>{n.delete(e)}}function o(e){let r,t;for(let n of e){r=n.borderBoxSize[0].inlineSize;t=n.borderBoxSize[0].blockSize}return[r,t]}var l=e;export{l as default,e as resize}; 4
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.