| 1156 | return document.head.createShadowRoot || document.head.attachShadow; |
| 1157 | } |
| 1158 | function Ke(e, i) { |
| 1159 | if (e.closest) |
| 1160 | return e.closest(i); |
| 1161 | if (e.matches || e.msMatchesSelector || e.webkitMatchesSelector) { |
| 1162 | var t = e; |
| 1163 | if (!document.documentElement.contains(t)) |
| 1164 | return null; |
| 1165 | do { |
| 1166 | if ((t.matches || t.msMatchesSelector || t.webkitMatchesSelector).call(t, i)) |
| 1167 | return t; |
| 1168 | t = t.parentElement || t.parentNode; |
| 1169 | } while (t !== null && t.nodeType === 1); |
| 1170 | return null; |
| 1171 | } |
| 1172 | return console.error("Your browser is not supported"), null; |
| 1173 | } |
| 1174 | function Ge(e) { |
| 1175 | if (!e || !gt()) |
| 1176 | return document.body; |