1!function(n,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():n.focusManager=e()}(this,function(){"use strict";function n(n,e){for(var t=e;t;){if(t===n)return!0;t=t.parentElement}return!1}function e(n){return n.disabled===!0}function t(n){return Boolean(n)&&n.tabIndex>=0&&!e(n)}function r(n){e(n)&&(n.disabled=!1),t(n)||(n.tabIndex=-1)}function u(n){if(t(n))return n;for(var e,r,o=n.children,i=o.length,s=0;s<i;s+=1)if(e=o[s],r=u(e))return r;return null}function o(n){for(var e,r,u=n.children,i=u.length,s=i-1;s>=0;s-=1)if(e=u[s],r=o(e))return r;return t(n)?n:null}function i(n){r(n),n.focus(),d.lastFocus=n}function s(n,e){var t;e?t=e:(t=u(n)||n,t===d.lastFocus&&(t=o(n)||n)),i(t)}function l(n){var e=u(n)||n;i(e)}function f(n){var e=o(n)||n;i(e)}function c(n){var e=d.eventListenerContext,t=d.eventListenerArguments;e&&t&&e.removeEventListener.apply(e,t),d.eventListenerContext=null,d.eventListenerArguments=null,d.lastFocus=null,n&&n.focus()}function a(e,t){n(e,t)?d.lastFocus=t:s(e)}function v(n,e,t){function r(e){a(n,e.target)}if(!n)return null;c(),s(n,e);var u=t||document,o=["focus",r,!0];d.eventListenerContext=u,d.eventListenerArguments=o,u.addEventListener.apply(u,o)}var d={eventListenerArguments:null,eventListenerContext:null,lastFocus:null},m={capture:v,release:c,focusFirstInElement:l,focusLastInElement:f};return m}); 2//# sourceMappingURL=focusManager.min.js.map
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.