vendor: 3,645 bytes, lines 1-4
1import{v as G,aA as be,aV as Te,aG as Fe,d as Ee,aW as ne,aX as Se,aY as De,D as Re,aZ as ke,N as xe,a as Pe,o as Ce,e as Ie,k,r as ie,h as T,f as Oe,G as Ae,aq as Be,s as Le,ak as Ke,al as Me,Z as oe,aU as je,J as Ge}from"../../entry/js/main-DqXmKUqu.js";/*! 2* tabbable 6.2.0 3* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 4*/var pe=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],z=pe.join(","),he=typeof Element>"u",C=he?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,H=!he&&Element.prototype.getRootNode?function(o){var e;return o==null||(e=o.getRootNode)===null||e===void 0?void 0:e.call(o)}:function(o){return o==null?void 0:o.ownerDocument},Y=function o(e,t){var a;t===void 0&&(t=!0);var u=e==null||(a=e.getAttribute)===null||a===void 0?void 0:a.call(e,"inert"),s=u===""||u==="true",r=s||t&&e&&o(e.parentNode);return r},Ue=function(e){var t,a=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return a===""||a==="true"},ge=function(e,t,a){if(Y(e))return[];var u=Array.prototype.slice.apply(e.querySelectorAll(z));return t&&C.call(e,z)&&u.unshift(e),u=u.filter(a),u},me=function o(e,t,a){for(var u=[],s=Array.from(e);s.length;){var r=s.shift();if(!Y(r,!1))if(r.tagName==="SLOT"){var f=r.assignedElements(),c=f.length?f:r.children,b=o(c,!0,a);a.flatten?u.push.apply(u,b):u.push({scopeParent:r,candidates:b})}else{var w=C.call(r,z);w&&a.filter(r)&&(t||!e.includes(r))&&u.push(r);var h=r.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(r),F=!Y(h,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(r));if(h&&F){var I=o(h===!0?r.children:h.children,!0,a);a.flatten?u.push.apply(u,I):u.push({scopeParent:r,candidates:I})}else s.unshift.apply(s,r.children)}}return u},ye=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},P=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Ue(e))&&!ye(e)?0:e.tabIndex},Ve=function(e,t){var a=P(e);return a<0&&t&&!ye(e)?0:a},$e=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},we=function(e){return e.tagName==="INPUT"},qe=function(e){return we(e)&&e.type==="hidden"},ze=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(a){return a.tagName==="SUMMARY"});return t},He=function(e,t){for(var a=0;a<e.length;a++)if(e[a].checked&&e[a].form===t)return e[a]},Ye=function(e){if(!e.name)return!0;var t=e.form||H(e),a=function(f){return t.querySelectorAll('input[type="radio"][name="'+f+'"]')},u;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")u=a(window.CSS.escape(e.name));else try{u=a(e.name)}catch(r){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",r.message),!1}var s=He(u,e.form);return!s||s===e},Ze=function(e){return we(e)&&e.type==="radio"},We=function(e){return Ze(e)&&!Ye(e)},_e=function(e){var t,a=e&&H(e),u=(t=a)===null||t===void 0?void 0:t.host,s=!1;if(a&&a!==e){var r,f,c;for(s=!!((r=u)!==null&&r!==void 0&&(f=r.ownerDocument)!==null&&f!==void 0&&f.contains(u)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!s&&u;){var b,w,h;
vendor: 12,295 bytes, lines 4-7
4a=H(u),u=(b=a)===null||b===void 0?void 0:b.host,s=!!((w=u)!==null&&w!==void 0&&(h=w.ownerDocument)!==null&&h!==void 0&&h.contains(u))}}return s},ue=function(e){var t=e.getBoundingClientRect(),a=t.width,u=t.height;return a===0&&u===0},Xe=function(e,t){var a=t.displayCheck,u=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=C.call(e,"details>summary:first-of-type"),r=s?e.parentElement:e;if(C.call(r,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="legacy-full"){if(typeof u=="function"){for(var f=e;e;){var c=e.parentElement,b=H(e);if(c&&!c.shadowRoot&&u(c)===!0)return ue(e);e.assignedSlot?e=e.assignedSlot:!c&&b!==e.ownerDocument?e=b.host:e=c}e=f}if(_e(e))return!e.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return ue(e);return!1},Je=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var a=0;a<t.children.length;a++){var u=t.children.item(a);if(u.tagName==="LEGEND")return C.call(t,"fieldset[disabled] *")?!0:!u.contains(e)}return!0}t=t.parentElement}return!1},Z=function(e,t){return!(t.disabled||Y(t)||qe(t)||Xe(t,e)||ze(t)||Je(t))},Q=function(e,t){return!(We(t)||P(t)<0||!Z(e,t))},Qe=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},et=function o(e){var t=[],a=[];return e.forEach(function(u,s){var r=!!u.scopeParent,f=r?u.scopeParent:u,c=Ve(f,r),b=r?o(u.candidates):f;c===0?r?t.push.apply(t,b):t.push(f):a.push({documentOrder:s,tabIndex:c,item:u,isScope:r,content:b})}),a.sort($e).reduce(function(u,s){return s.isScope?u.push.apply(u,s.content):u.push(s.content),u},[]).concat(t)},tt=function(e,t){t=t||{};var a;return t.getShadowRoot?a=me([e],t.includeContainer,{filter:Q.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Qe}):a=ge(e,t.includeContainer,Q.bind(null,t)),et(a)},at=function(e,t){t=t||{};var a;return t.getShadowRoot?a=me([e],t.includeContainer,{filter:Z.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):a=ge(e,t.includeContainer,Z.bind(null,t)),a},O=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return C.call(e,z)===!1?!1:Q(t,e)},rt=pe.concat("iframe").join(","),J=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return C.call(e,rt)===!1?!1:Z(t,e)};/*! 5* focus-trap 7.5.4 6* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE 7*/function se(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(o);e&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(o,u).enumerable})),t.push.apply(t,a)}return t}function le(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?se(Object(t),!0).forEach(function(a){nt(o,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):se(Object(t)).forEach(function(a){Object.defineProperty(o,a,Object.getOwnPropertyDescriptor(t,a))})}return o}function nt(o,e,t){return e=ot(e),e in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function it(o,e){if(typeof o!="object"||o===null)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var a=t.call(o,e||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function ot(o){var e=it(o,"string");return typeof e=="symbol"?e:String(e)}var ce={activateTrap:function(e,t){if(e.length>0){var a=e[e.length-1];a!==t&&a.pause()}var u=e.indexOf(t);u===-1||e.splice(u,1),e.push(t)},deactivateTrap:function(e,t){var a=e.indexOf(t);a!==-1&&e.splice(a,1),e.length>0&&e[e.length-1].unpause()}},ut=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},st=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},U=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},lt=function(e){return U(e)&&!e.shiftKey},ct=function(e){return U(e)&&e.shiftKey},fe=function(e){return setTimeout(e,0)},de=function(e,t){var a=-1;return e.every(function(u,s){return t(u)?(a=s,!1):!0}),a},j=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),u=1;u<t;u++)a[u-1]=arguments[u];return typeof e=="function"?e.apply(void 0,a):e},q=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},ft=[],dt=function(e,t){var a=(t==null?void 0:t.document)||document,u=(t==null?void 0:t.trapStack)||ft,s=le({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:lt,isKeyBackward:ct},t),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},f,c=function(i,n,l){return i&&i[n]!==void 0?i[n]:s[l||n]},b=function(i,n){var l=typeof(n==null?void 0:n.composedPath)=="function"?n.composedPath():void 0;return r.containerGroups.findIndex(function(d){var v=d.container,g=d.tabbableNodes;return v.contains(i)||(l==null?void 0:l.includes(v))||g.find(function(m){return m===i})})},w=function(i){var n=s[i];if(typeof n=="function"){for(var l=arguments.length,d=new Array(l>1?l-1:0),v=1;v<l;v++)d[v-1]=arguments[v];n=n.apply(void 0,d)}if(n===!0&&(n=void 0),!n){if(n===void 0||n===!1)return n;throw new Error("`".concat(i,"` was specified but was not a node, or did not return a node"))}var g=n;if(typeof n=="string"&&(g=a.querySelector(n),!g))throw new Error("`".concat(i,"` as selector refers to no known node"));return g},h=function(){var i=w("initialFocus");if(i===!1)return!1;if(i===void 0||!J(i,s.tabbableOptions))if(b(a.activeElement)>=0)i=a.activeElement;else{var n=r.tabbableGroups[0],l=n&&n.firstTabbableNode;i=l||w("fallbackFocus")}if(!i)throw new Error("Your focus-trap needs to have at least one focusable element");return i},F=function(){if(r.containerGroups=r.containers.map(function(i){var n=tt(i,s.tabbableOptions),l=at(i,s.tabbableOptions),d=n.length>0?n[0]:void 0,v=n.length>0?n[n.length-1]:void 0,g=l.find(function(y){return O(y)}),m=l.slice().reverse().find(function(y){return O(y)}),N=!!n.find(function(y){return P(y)>0});return{container:i,tabbableNodes:n,focusableNodes:l,posTabIndexesFound:N,firstTabbableNode:d,lastTabbableNode:v,firstDomTabbableNode:g,lastDomTabbableNode:m,nextTabbableNode:function(x){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,R=n.indexOf(x);return R<0?K?l.slice(l.indexOf(x)+1).find(function(M){return O(M)}):l.slice(0,l.indexOf(x)).reverse().find(function(M){return O(M)}):n[R+(K?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(i){return i.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!w("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find(function(i){return i.posTabIndexesFound})&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},I=function p(i){var n=i.activeElement;if(n)return n.shadowRoot&&n.shadowRoot.activeElement!==null?p(n.shadowRoot):n},E=function p(i){if(i!==!1&&i!==I(document)){if(!i||!i.focus){p(h());return}i.focus({preventScroll:!!s.preventScroll}),r.mostRecentlyFocusedNode=i,ut(i)&&i.select()}},A=function(i){var n=w("setReturnFocus",i);return n||(n===!1?!1:i)},D=function(i){var n=i.target,l=i.event,d=i.isBackward,v=d===void 0?!1:d;n=n||q(l),F();var g=null;if(r.tabbableGroups.length>0){var m=b(n,l),N=m>=0?r.containerGroups[m]:void 0;if(m<0)v?g=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:g=r.tabbableGroups[0].firstTabbableNode;else if(v){var y=de(r.tabbableGroups,function(_){var X=_.firstTabbableNode;return n===X});if(y<0&&(N.container===n||J(n,s.tabbableOptions)&&!O(n,s.tabbableOptions)&&!N.nextTabbableNode(n,!1))&&(y=m),y>=0){var x=y===0?r.tabbableGroups.length-1:y-1,K=r.tabbableGroups[x];g=P(n)>=0?K.lastTabbableNode:K.lastDomTabbableNode}else U(l)||(g=N.nextTabbableNode(n,!1))}else{var R=de(r.tabbableGroups,function(_){var X=_.lastTabbableNode;return n===X});if(R<0&&(N.container===n||J(n,s.tabbableOptions)&&!O(n,s.tabbableOptions)&&!N.nextTabbableNode(n))&&(R=m),R>=0){var M=R===r.tabbableGroups.length-1?0:R+1,re=r.tabbableGroups[M];g=P(n)>=0?re.firstTabbableNode:re.firstDomTabbableNode}else U(l)||(g=N.nextTabbableNode(n))}}else g=w("fallbackFocus");return g},S=function(i){var n=q(i);if(!(b(n,i)>=0)){if(j(s.clickOutsideDeactivates,i)){f.deactivate({returnFocus:s.returnFocusOnDeactivate});return}j(s.allowOutsideClick,i)||i.preventDefault()}},B=function(i){var n=q(i),l=b(n,i)>=0;if(l||n instanceof Document)l&&(r.mostRecentlyFocusedNode=n);else{i.stopImmediatePropagation();var d,v=!0;if(r.mostRecentlyFocusedNode)if(P(r.mostRecentlyFocusedNode)>0){var g=b(r.mostRecentlyFocusedNode),m=r.containerGroups[g].tabbableNodes;if(m.length>0){var N=m.findIndex(function(y){return y===r.mostRecentlyFocusedNode});N>=0&&(s.isKeyForward(r.recentNavEvent)?N+1<m.length&&(d=m[N+1],v=!1):N-1>=0&&(d=m[N-1],v=!1))}}else r.containerGroups.some(function(y){return y.tabbableNodes.some(function(x){return P(x)>0})})||(v=!1);else v=!1;v&&(d=D({target:r.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(r.recentNavEvent)})),E(d||r.mostRecentlyFocusedNode||h())}r.recentNavEvent=void 0},V=function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;r.recentNavEvent=i;var l=D({event:i,isBackward:n});l&&(U(i)&&i.preventDefault(),E(l))},$=function(i){if(st(i)&&j(s.escapeDeactivates,i)!==!1){i.preventDefault(),f.deactivate();return}(s.isKeyForward(i)||s.isKeyBackward(i))&&V(i,s.isKeyBackward(i))},ee=function(i){var n=q(i);b(n,i)>=0||j(s.clickOutsideDeactivates,i)||j(s.allowOutsideClick,i)||(i.preventDefault(),i.stopImmediatePropagation())},te=function(){if(r.active)return ce.activateTrap(u,f),r.delayInitialFocusTimer=s.delayInitialFocus?fe(function(){E(h())}):E(h()),a.addEventListener("focusin",B,!0),a.addEventListener("mousedown",S,{capture:!0,passive:!1}),a.addEventListener("touchstart",S,{capture:!0,passive:!1}),a.addEventListener("click",ee,{capture:!0,passive:!1}),a.addEventListener("keydown",$,{capture:!0,passive:!1}),f},ae=function(){if(r.active)return a.removeEventListener("focusin",B,!0),a.removeEventListener("mousedown",S,!0),a.removeEventListener("touchstart",S,!0),a.removeEventListener("click",ee,!0),a.removeEventListener("keydown",$,!0),f},Ne=function(i){var n=i.some(function(l){var d=Array.from(l.removedNodes);return d.some(function(v){return v===r.mostRecentlyFocusedNode})});n&&E(h())},W=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(Ne):void 0,L=function(){W&&(W.disconnect(),r.active&&!r.paused&&r.containers.map(function(i){W.observe(i,{subtree:!0,childList:!0})}))};return f={get active(){return r.active},get paused(){return r.paused},activate:function(i){if(r.active)return this;var n=c(i,"onActivate"),l=c(i,"onPostActivate"),d=c(i,"checkCanFocusTrap");d||F(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=a.activeElement,n==null||n();var v=function(){d&&F(),te(),L(),l==null||l()};return d?(d(r.containers.concat()).then(v,v),this):(v(),this)},deactivate:function(i){if(!r.active)return this;var n=le({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},i);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,ae(),r.active=!1,r.paused=!1,L(),ce.deactivateTrap(u,f);var l=c(n,"onDeactivate"),d=c(n,"onPostDeactivate"),v=c(n,"checkCanReturnFocus"),g=c(n,"returnFocus","returnFocusOnDeactivate");l==null||l();var m=function(){fe(function(){g&&E(A(r.nodeFocusedBeforeActivation)),d==null||d()})};return g&&v?(v(A(r.nodeFocusedBeforeActivation)).then(m,m),this):(m(),this)},pause:function(i){if(r.paused||!r.active)return this;var n=c(i,"onPause"),l=c(i,"onPostPause");return r.paused=!0,n==null||n(),ae(),L(),l==null||l(),this},unpause:function(i){if(!r.paused||!r.active)return this;var n=c(i,"onUnpause"),l=c(i,"onPostUnpause");return r.paused=!1,n==null||n(),F(),te(),L(),l==null||l(),this}
7,updateContainerElements:function(i){var n=[].concat(i).filter(Boolean);return r.containers=n.map(function(l){return typeof l=="string"?a.querySelector(l):l}),r.active&&F(),L(),this}},f.updateContainerElements(e),f};function vt(o,e={}){let t;const{immediate:a,...u}=e,s=G(!1),r=G(!1),f=h=>t&&t.activate(h),c=h=>t&&t.deactivate(h),b=()=>{t&&(t.pause(),r.value=!0)},w=()=>{t&&(t.unpause(),r.value=!1)};return be(()=>Te(o),h=>{h&&(t=dt(h,{...u,onActivate(){s.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){s.value=!1,e.onDeactivate&&e.onDeactivate()}}),a&&f())},{flush:"post"}),Fe(()=>c()),{hasFocus:s,isPaused:r,activate:f,deactivate:c,pause:b,unpause:w}}const bt={class:"flex w-full"},pt={class:"mr-1.5 flex w-full justify-end gap-x-1.5 text-lg"},ht={class:"flex w-full gap-x-1.5 text-lg"},gt=["aria-expanded"],mt=k("span",{class:"sr-only"},"Open Main Navigation Menu",-1),yt=["role"],wt=["aria-label"],ve="nav-site-menu",Tt=Ee({__name:"DocHamburgerNav.internal",setup(o){const e=ne(Se),{isAnyIdActive:t,forceClose:a,searchTopOffset:u}=ne(De),s=G(null),r=G(null),f=G(null),[c,b]=Re(),w=ke(document.body);xe(f,A,{ignore:[r]});const{activate:h,deactivate:F}=vt(s,{escapeDeactivates:!1}),I=Pe(()=>((u==null?void 0:u.value)??0)-((e==null?void 0:e.rowTopOffset.value)??0));be(c,D=>{w.value=D,D?h():F()});function E(){if(c.value){if(t()){a();return}A()}}function A(){c.value&&b()}return(D,S)=>{var B,V;return Ce(),Ie("div",bt,[k("div",pt,[ie(D.$slots,"additional-nav-items")]),k("div",{ref_key:"overallContainerRef",ref:s,class:"z-10",onKeyup:S[1]||(S[1]=Ge($=>E(),["esc"]))},[k("div",ht,[k("button",{ref_key:"hamburgerButtonRef",ref:r,class:"z-10 p-1",type:"button","aria-controls":ve,"aria-expanded":T(c),onClick:S[0]||(S[0]=$=>T(b)())},[mt,Oe(T(Le),{size:"sm",name:T(c)?T(Ae):T(Be)},null,8,["name"])],8,gt)]),Ke(k("div",{class:"fixed inset-0 flex h-screen w-screen min-w-[320px] bg-black/45",role:T(c)?"dialog":"none",style:oe({top:`${((V=(B=T(e))==null?void 0:B.rowTopOffset)==null?void 0:V.value)??0}px`})},[k("nav",{class:"flex h-full w-full flex-col divide-y","aria-label":T(je),style:oe({"padding-top":`${I.value??0}px`})},[k("ul",{id:ve,ref_key:"hamburgerMenuRef",ref:f,class:"no-default-styles -mt-.5 flex max-h-full w-full flex-col divide-y overflow-y-auto py-.5"},[ie(D.$slots,"default")],512)],12,wt)],12,yt),[[Me,T(c)]])],544)])}}});export{Tt as default};
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.