PageSourceSearch

https://www.mydosh.com/app/plugins/pulsar-blocks/build/menu/view.js?ver=68d5c2c5f46a215aa2ba

js mydosh.com collected 2026-10-08 07:53:25 UTC 20,728 bytes, 1 lines download raw bytes

vendor: 6,175 bytes, line 1
1import{getContext as e,getElement as t,store as n}from"@wordpress/interactivity";var o=["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])"],r=o.join(","),a="undefined"==typeof Element,i=a?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!a&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},s=function(e,t){var n;void 0===t&&(t=!0);var o=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===o||"true"===o||t&&e&&s(e.parentNode)},c=function(e,t,n){if(s(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(r));return t&&i.call(e,r)&&o.unshift(e),o.filter(n)},l=function(e,t,n){for(var o=[],a=Array.from(e);a.length;){var u=a.shift();if(!s(u,!1))if("SLOT"===u.tagName){var c=u.assignedElements(),d=c.length?c:u.children,p=l(d,!0,n);n.flatten?o.push.apply(o,p):o.push({scopeParent:u,candidates:p})}else{i.call(u,r)&&n.filter(u)&&(t||!e.includes(u))&&o.push(u);var f=u.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(u),b=!s(f,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(u));if(f&&b){var v=l(!0===f?u.children:f.children,!0,n);n.flatten?o.push.apply(o,v):o.push({scopeParent:u,candidates:v})}else a.unshift.apply(a,u.children)}}return o},d=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)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!d(e)?0:e.tabIndex},f=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},b=function(e){return"INPUT"===e.tagName},v=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return 0===n&&0===o},m=function(e,t){return!(t.disabled||s(t)||function(e){return b(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,o=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var r=i.call(e,"details>summary:first-of-type")?e.parentElement:e;if(i.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return v(e)}else{if("function"==typeof o){for(var a=e;e;){var s=e.parentElement,c=u(e);if(s&&!s.shadowRoot&&!0===o(s))return v(e);e=e.assignedSlot?e.assignedSlot:s||c===e.ownerDocument?s:c.host}e=a}if(function(e){var t,n,o,r,a=e&&u(e),i=null===(t=a)||void 0===t?void 0:t.host,s=!1;if(a&&a!==e)for(s=!!(null!==(n=i)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(i)||null!=e&&null!==(r=e.ownerDocument)&&void 0!==r&&r.contains(e));!s&&i;){var c,l,d;s=!(null===(l=i=null===(c=a=u(i))||void 0===c?void 0:c.host)||void 0===l||null===(d=l.ownerDocument)||void 0===d||!d.contains(i))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var o=t.children.item(n);if("LEGEND"===o.tagName)return!!i.call(t,"fieldset[disabled] *")||!o.contains(e)}return!0}t=t.parentElement}return!1}(t))},h=function(e,t){return!(function(e){return function(e){return b(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||u(e),o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(e.name)}catch(e){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",e.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)}(t)||p(t)<0||!m(e,t))},y=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},w=function(e){var t=[],n=[];return e.forEach(function(e,o){var r=!!e.scopeParent,a=r?e.scopeParent:e,i=function(e,t){var n=p(e);return n<0&&t&&!d(e)?0:n}(a,r),u=r?w(e.candidates):a;0===i?r?t.push.apply(t,u):t.push(a):n.push({documentOrder:o,tabIndex:i,item:e,isScope:r,content:u})}),n.sort(f).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},g=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==i.call(e,r)&&h(t,e)},S=o.concat("iframe").join(","),O=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==i.call(e,S)&&m(t,e)};function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function T(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 4,454 bytes, line 1
1t%2?k(Object(n),!0).forEach(function(t){T(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var F=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},P=function(e){return F(e)&&!e.shiftKey},C=function(e){return F(e)&&e.shiftKey},D=function(e){return setTimeout(e,0)},I=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return"function"==typeof e?e.apply(void 0,n):e},x=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},R=[],A=function(e,t){var n,o=(null==t?void 0:t.document)||document,r=(null==t?void 0:t.trapStack)||R,a=N({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:P,isKeyBackward:C},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},u=function(e,t,n){return e&&void 0!==e[t]?e[t]:a[n||t]},s=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return i.containerGroups.findIndex(function(t){var o=t.container,r=t.tabbableNodes;return o.contains(e)||(null==n?void 0:n.includes(o))||r.find(function(t){return t===e})})},d=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.hasFallback,i=void 0!==r&&r,u=n.params,s=void 0===u?[]:u,c=a[e];if("function"==typeof c&&(c=c.apply(void 0,function(e){if(Array.isArray(e))return E(e)}(t=s)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),!0===c&&(c=void 0),!c){if(void 0===c||!1===c)return c;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=c;if("string"==typeof c){try{l=o.querySelector(c)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!l&&!i)throw new Error("`".concat(e,"` as selector refers to no known node"))}return l},f=function(){var e=d("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!O(e,a.tabbableOptions))if(s(o.activeElement)>=0)e=o.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||d("fallbackFocus")}else null===e&&(e=d("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},b=function(){if(i.containerGroups=i.containers.map(function(e){var t=function(e,t){var n;return n=(t=t||{}).getShadowRoot?l([e],t.includeContainer,{filter:h.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:y}):c(e,t.includeContainer,h.bind(null,t)),w(n)}(e,a.tabbableOptions),n=function(e,t){return(t=t||{}).getShadowRoot?l([e],t.includeContainer,{filter:m.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,m.bind(null,t))}(e,a.tabbableOptions),o=t.length>0?t[0]:void 0,r=t.length>0?t[t.length-1]:void 0,i=n.find(function(e){return g(e)}),u=n.slice().reverse().find(function(e){return g(e)}),s=!!t.find(function(e){return p(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:s,firstTabbableNode:o,lastTabbableNode:r,firstDomTabbableNode:i,lastDomTabbableNode:u,nextTabbableNode:function(e){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.indexOf(e);return r<0?o?n.slice(n.indexOf(e)+1).find(function(e){return g(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return g(e)}):t[r+(o?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!d("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(i.containerGroups.find(function(e){return e.posTabIndexesFound}
1)&&i.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.")},v=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?v(t.shadowRoot):t},S=function(e){!1!==e&&e!==v(document)&&(e&&e.focus?(e.focus({preventScroll:!!a.preventScroll}),i.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):S(f()))},T=function(e){var t=d("setReturnFocus",{params:[e]});return t||!1!==t&&e},k=function(e){var t=e.target,n=e.event,o=e.isBackward,r=void 0!==o&&o;t=t||x(n),b();var u=null;if(i.tabbableGroups.length>0){var c=s(t,n),l=c>=0?i.containerGroups[c]:void 0;if(c<0)u=r?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(r){var f=i.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(f<0&&(l.container===t||O(t,a.tabbableOptions)&&!g(t,a.tabbableOptions)&&!l.nextTabbableNode(t,!1))&&(f=c),f>=0){var v=0===f?i.tabbableGroups.length-1:f-1,m=i.tabbableGroups[v];u=p(t)>=0?m.lastTabbableNode:m.lastDomTabbableNode}else F(n)||(u=l.nextTabbableNode(t,!1))}else{var h=i.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(h<0&&(l.container===t||O(t,a.tabbableOptions)&&!g(t,a.tabbableOptions)&&!l.nextTabbableNode(t))&&(h=c),h>=0){var y=h===i.tabbableGroups.length-1?0:h+1,w=i.tabbableGroups[y];u=p(t)>=0?w.firstTabbableNode:w.firstDomTabbableNode}else F(n)||(u=l.nextTabbableNode(t))}}else u=d("fallbackFocus");return u},A=function(e){var t=x(e);s(t,e)>=0||(I(a.clickOutsideDeactivates,e)?n.deactivate({returnFocus:a.returnFocusOnDeactivate}):I(a.allowOutsideClick,e)||e.preventDefault())},L=function(e){var t=x(e),n=s(t,e)>=0;if(n||t instanceof Document)n&&(i.mostRecentlyFocusedNode=t);else{var o;e.stopImmediatePropagation();var r=!0;if(i.mostRecentlyFocusedNode)if(p(i.mostRecentlyFocusedNode)>0){var u=s(i.mostRecentlyFocusedNode),c=i.containerGroups[u].tabbableNodes;if(c.length>0){var l=c.findIndex(function(e){return e===i.mostRecentlyFocusedNode});l>=0&&(a.isKeyForward(i.recentNavEvent)?l+1<c.length&&(o=c[l+1],r=!1):l-1>=0&&(o=c[l-1],r=!1))}}else i.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return p(e)>0})})||(r=!1);else r=!1;r&&(o=k({target:i.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(i.recentNavEvent)})),S(o||i.mostRecentlyFocusedNode||f())}i.recentNavEvent=void 0},G=function(e){(a.isKeyForward(e)||a.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];i.recentNavEvent=e;var n=k({event:e,isBackward:t});n&&(F(e)&&e.preventDefault(),S(n))}(e,a.isKeyBackward(e))},M=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===I(a.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},_=function(e){var t=x(e);s(t,e)>=0||I(a.clickOutsideDeactivates,e)||I(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},j=function(){if(i.active)return function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var o=e.indexOf(t);-1===o||e.splice(o,1),e.push(t)}(r,n),i.delayInitialFocusTimer=a.delayInitialFocus?D(function(){S(f())}):S(f()),o.addEventListener("focusin",L,!0),o.addEventListener("mousedown",A,{capture:!0,passive:!1}),o.addEventListener("touchstart",A,{capture:!0,passive:!1}),o.addEventListener("click",_,{capture:!0,passive:!1}),o.addEventListener("keydown",G,{capture:!0,passive:!1}),o.addEventListener("keydown",M),n},B=function(){if(i.active)return o.removeEventListener("focusin",L,!0),o.removeEventListener("mousedown",A,!0),o.removeEventListener("touchstart",A,!0),o.removeEventListener("click",_,!0),o.removeEventListener("keydown",G,!0),o.removeEventListener("keydown",M),n},q="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes
1).some(function(e){return e===i.mostRecentlyFocusedNode})})&&S(f())}):void 0,K=function(){q&&(q.disconnect(),i.active&&!i.paused&&i.containers.map(function(e){q.observe(e,{subtree:!0,childList:!0})}))};return n={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=u(e,"onActivate"),n=u(e,"onPostActivate"),r=u(e,"checkCanFocusTrap");r||b(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=v(o),null==t||t();var a=function(){r&&b(),j(),K(),null==n||n()};return r?(r(i.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!i.active)return this;var t=N({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,B(),i.active=!1,i.paused=!1,K(),function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}(r,n);var o=u(t,"onDeactivate"),s=u(t,"onPostDeactivate"),c=u(t,"checkCanReturnFocus"),l=u(t,"returnFocus","returnFocusOnDeactivate");null==o||o();var d=function(){D(function(){l&&S(T(i.nodeFocusedBeforeActivation)),null==s||s()})};return l&&c?(c(T(i.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return i.active?(i.manuallyPaused=!1,r[r.length-1]!==this?this:this._setPausedState(!1,e)):this}
1,updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map(function(e){return"string"==typeof e?o.querySelector(e):e}),i.active&&b(),K(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(e,t){if(i.paused===e)return this;if(i.paused=e,e){var n=u(t,"onPause"),o=u(t,"onPostPause");null==n||n(),B(),K(),null==o||o()}else{var r=u(t,"onUnpause"),a=u(t,"onPostUnpause");null==r||r(),b(),j(),K(),null==a||a()}return this}}}),n.updateContainerElements(e),n};const L=(e,t)=>{(e=>{if(!e)return!1;const t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&"0"!==t.opacity})(e)?t.activate():requestAnimationFrame(()=>L(e,t))};n("pulsar/menu",{state:{isLoading:!0,isMenuOpen:!1,isCollapsed:!1,isTouchEnabled:!1,openSubmenus:[],menuTrap:null,submenuTraps:{}},actions:{toggleMenuOnClick:()=>{const{state:e}=n("pulsar/menu"),{ref:o}=t();if(e.isMenuOpen=!e.isMenuOpen,document.documentElement.classList.toggle("has-open-menu",e.isMenuOpen),e.isMenuOpen)if(e.menuTrap)L(o.closest(".wp-block-pulsar-menu").querySelector(".wp-block-pulsar-menu__container"),e.menuTrap);else{const t=o.closest(".wp-block-pulsar-menu").querySelector(".wp-block-pulsar-menu__container");t&&(e.menuTrap=A(t,{allowOutsideClick:!0,escapeDeactivates:!0,returnFocusOnDeactivate:!0,onDeactivate:()=>{e.isMenuOpen=!1,e.openSubmenus=[],document.documentElement.classList.remove("has-open-menu")},initialFocus:t.querySelector(".wp-block-pulsar-menu__close"),fallbackFocus:t}),L(t,e.menuTrap))}else e.menuTrap&&e.menuTrap.deactivate(),Object.keys(e.submenuTraps).forEach(t=>{e.submenuTraps[t]&&(e.submenuTraps[t].deactivate(),delete e.submenuTraps[t])}),e.openSubmenus=[]},openMenuOnClick:()=>{const{state:e}=n("pulsar/menu");e.isMenuOpen=!0,document.documentElement.classList.add("has-open-menu")},closeMenuOnClick:()=>{const{state:e}=n("pulsar/menu");e.menuTrap&&e.menuTrap.deactivate(),e.isMenuOpen=!1,e.openSubmenus=[],document.documentElement.classList.remove("has-open-menu")},toggleSubmenuOnClick:()=>{const{state:o}=n("pulsar/menu"),r=e().submenuId,a=[...o.openSubmenus];if(a.includes(r)){const e=a.indexOf(r);-1!==e&&(o.submenuTraps[r]&&(o.submenuTraps[r].deactivate(),delete o.submenuTraps[r]),a.splice(e,1))}else if(a.push(r),o.isCollapsed){const{ref:e}=t(),n=e.closest(".wp-block-pulsar-menu__item").querySelector(".wp-block-pulsar-menu__submenu");n&&!o.submenuTraps[r]&&(o.submenuTraps[r]=A(n,{allowOutsideClick:!0,escapeDeactivates:!0,returnFocusOnDeactivate:!0,onDeactivate:()=>{const e=o.openSubmenus.indexOf(r);-1!==e&&o.openSubmenus.splice(e,1)}}),L(n,o.submenuTraps[r]))}o.openSubmenus=a},openSubmenuOnClick:()=>{const{state:t}=n("pulsar/menu"),o=e().submenuId,r=[...t.openSubmenus];r.push(o),t.openSubmenus=r},closeSubmenuOnClick:()=>{const{state:t}=n("pulsar/menu"),o=e().submenuId,r=[...t.openSubmenus],a=r.indexOf(o);-1!==a&&(t.submenuTraps[o]&&(t.submenuTraps[o].deactivate(),delete t.submenuTraps[o]),r.splice(a,1),t.openSubmenus=r)},openSubmenuOnHover:()=>{const{state:t}=n("pulsar/menu");if(t.isCollapsed||t.isTouchEnabled)return;const o=e(),r=[...t.openSubmenus];r.push(o.submenuId),t.openSubmenus=r},closeSubmenuOnHover:()=>{const{state:t}=n("pulsar/menu");if(t.isCollapsed||t.isTouchEnabled)return;const o=e(),r=[...t.openSubmenus],a=r.indexOf(o.submenuId);-1!==a&&(r.splice(a,1),t.openSubmenus=r)},handleKeydown:e=>{const{state:o}=n("pulsar/menu"),{ref:r}=t();if(!o.isCollapsed&&"Escape"===e.key){const e=r.closest(".wp-block-pulsar-menu__item");if(e){const t=parseInt(e.dataset.wpContext.match(/\d+/)[0],10);if(o.openSubmenus.includes(t)){const n=[...o.openSubmenus],r=n.indexOf(t);if(-1!==r){n.splice(r,1),o.openSubmenus=n;const t=e.querySelector(".wp-block-pulsar-menu__submenu-toggle");t&&t.focus()}}}}}},callbacks:{isLoading:()=>{const{state:e}=n("pulsar/menu");e.isLoading=!1},isCollapsed:()=>{const{state:e}=n("pulsar/menu"),{ref:o}=t(),r=o.classList.contains("collapses-always"),a=o.dataset.breakpoint,i=window.matchMedia(`(min-width: ${a}px)`);e.isCollapsed=r||!r&&!i.matches},isTouchEnabled:()=>{const{state:e}=n("pulsar/menu"),t="ontouchstart"in window||window.navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0;return e.isTouchEnabled=t,t},isAriaHidden:()=>{const{state:e}=n("pulsar/menu");return!e.isMenuOpen&&e.isCollapsed},isSubmenuOpen:()=>{const{state:t}=n("pulsar/menu"),o=e();return t.openSubmenus.includes(o.submenuId)}}});

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.