1(() => { 2 function g(n) { 3 n.directive("collapse", e), 4 (e.inline = (t, { modifiers: i }) => { 5 i.includes("min") && 6 ((t._x_doShow = () => {}), (t._x_doHide = () => {})); 7 }); 8 function e(t, { modifiers: i }) { 9 let r = l(i, "duration", 250) / 1e3, 10 u = l(i, "min", 0), 11 h = !i.includes("min"); 12 t._x_isShown || (t.style.height = `${u}px`), 13 !t._x_isShown && h && (t.hidden = !0), 14 t._x_isShown || (t.style.overflow = "hidden"); 15 let c = (d, s) => { 16 let o = n.setStyles(d, s); 17 return s.height ? () => {} : o; 18 }, 19 f = { 20 transitionProperty: "height", 21 transitionDuration: `${r}s`, 22 transitionTimingFunction: "cubic-bezier(0.4, 0.0, 0.2, 1)", 23 }; 24 t._x_transition = { 25 in(d = () => {}, s = () => {}) { 26 h && (t.hidden = !1), h && (t.style.display = null); 27 let o = t.getBoundingClientRect().height; 28 t.style.height = "auto"; 29 let a = t.getBoundingClientRect().height; 30 o === a && (o = u), 31 n.transition( 32 t, 33 n.setStyles, 34 { 35 during: f, 36 start: { height: o + "px" }, 37 end: { height: a + "px" }, 38 }, 39 () => (t._x_isShown = !0), 40 () => { 41 t.getBoundingClientRect().height == a && 42 (t.style.overflow = null); 43 } 44 ); 45 }, 46 out(d = () => {}, s = () => {}) { 47 let o = t.getBoundingClientRect().height; 48 n.transition( 49 t, 50 c, 51 { 52 during: f, 53 start: { height: o + "px" }, 54 end: { height: u + "px" }, 55 }, 56 () => (t.style.overflow = "hidden"), 57 () => { 58 (t._x_isShown = !1), 59 t.style.height == `${u}px` && 60 h && 61 ((t.style.display = "none"), (t.hidden = !0)); 62 } 63 ); 64 }, 65 }; 66 } 67 } 68 function l(n, e, t) { 69 if (n.indexOf(e) === -1) return t; 70 let i = n[n.indexOf(e) + 1]; 71 if (!i) return t; 72 if (e === "duration") { 73 let r = i.match(/([0-9]+)ms/); 74 if (r) return r[1]; 75 } 76 if (e === "min") { 77 let r = i.match(/([0-9]+)px/); 78 if (r) return r[1]; 79 } 80 return i; 81 } 82 document.addEventListener("alpine:init", () => { 83 window.Alpine.plugin(g); 84 }); 85})();
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.