PageSourceSearch

https://seomaker.ai/_nuxt-v2/GVHM5zSg.js

js seomaker.ai collected 2026-10-05 12:36:54 UTC 23,478 bytes, 3 lines download raw bytes

1import{At as e,Bn as t,Ct as n,Gn as r,Ln as i,Mt as a,Rn as o,St as s,Xn as c,_n as l,bt as u,dn as d,ei as f,ii as p,in as m,jr as h,kt as g,nn as _,pt as v,sn as y,wn as b,xr as x,xt as S,yt as C}from"./BPsVqlsv.js";import{C as w,t as T,w as E}from"./CTS8L1HF.js";import{t as ee}from"./BwKsV0YZ.js";var te=[],D=0,O=``,k=``;function ne(){if(typeof document>`u`||(D+=1,D>1))return;let{body:e,documentElement:t}=document,n=window.innerWidth-t.clientWidth;if(O=e.style.overflow,k=e.style.paddingRight,e.style.overflow=`hidden`,n>0){let t=Number.parseFloat(window.getComputedStyle(e).paddingRight)||0;e.style.paddingRight=`${t+n}px`}}function re(){typeof document>`u`||D===0||(--D,!(D>0)&&(document.body.style.overflow=O,document.body.style.paddingRight=k))}var A=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],j=A.join(`,`),M=typeof Element>`u`,N=M?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,P=!M&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},F=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):F(e.parentNode))},ie=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},I=function(e,t,n){if(F(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(j));return t&&N.call(e,j)&&r.unshift(e),r=r.filter(n),r},L=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!F(a,!1))if(a.tagName===`SLOT`){var o=a.assignedElements(),s=L(o.length?o:a.children,!0,n);
vendor: 4,552 bytes, line 1
1n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{N.call(a,j)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!F(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=L(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}return r},R=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},z=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||ie(e))&&!R(e)?0:e.tabIndex},B=function(e,t){var n=z(e);return n<0&&t&&!R(e)?0:n},V=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},H=function(e){return e.tagName===`INPUT`},U=function(e){return H(e)&&e.type===`hidden`},ae=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},oe=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},se=function(e){if(!e.name)return!0;var t=e.form||P(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(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 i=oe(r,e.form);return!i||i===e},ce=function(e){return H(e)&&e.type===`radio`},le=function(e){return ce(e)&&!se(e)},ue=function(e){var t=e&&P(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=P(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},de=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},fe=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=N.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(N.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=P(e);if(s&&!s.shadowRoot&&r(s)===!0)return de(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(ue(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return de(e);return!1},pe=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return N.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},W=function(e,t){return!(t.disabled||U(t)||fe(t,e)||ae(t)||pe(t))},G=function(e,t){return!(le(t)||z(t)<0||!W(e,t))},me=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},he=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=B(a,i),s=i?he(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(V).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},ge=function(e,t){return t||={},he(t.getShadowRoot?L([e],t.includeContainer,{filter:G.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:me}):I(e,t.includeContainer,G.bind(null,t)))},_e=function(e,t){return t||={},t.getShadowRoot?L([e],t.includeContainer,{filter:W.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):I(e,t.includeContainer,W.bind(null,t))},K=function(e,t){if(t||={},!e)throw Error(`No node provided`);return N.call(e,j)!==!1&&G(t,e)},ve=A.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),q=function(e,t){if(t||={},!e)throw Error(`No node provided`);return N.call(e,ve)!==!1&&W(t,e)};function J(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ye(e){if(Array.isArray(e))return J(e)}function be(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];
vendor: 4,106 bytes, lines 1-3
1if(!n){if(Array.isArray(e)||(n=ke(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function xe(e,t,n){return(t=Oe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ce(){throw TypeError(`Invalid attempt to spread non-iterable instance.
3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?we(Object(n),!0).forEach(function(t){xe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ee(e){return ye(e)||Se(e)||ke(e)||Ce()}function De(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Oe(e){var t=De(e,`string`);return typeof t==`symbol`?t:t+``}function ke(e,t){if(e){if(typeof e==`string`)return J(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(e,t):void 0}}var Y={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,t){t!==Y.getActiveTrap(e)&&Y.pauseTrap(e);var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),Y.unpauseTrap(e)},pauseTrap:function(e){Y.getActiveTrap(e)?._setPausedState(!0)},unpauseTrap:function(e){var t=Y.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},Ae=function(e){return e.tagName&&e.tagName.toLowerCase()===`input`&&typeof e.select==`function`},je=function(e){return e?.key===`Escape`||e?.key===`Esc`||e?.keyCode===27},X=function(e){return e?.key===`Tab`||e?.keyCode===9},Me=function(e){return X(e)&&!e.shiftKey},Ne=function(e){return X(e)&&e.shiftKey},Z=function(e){return setTimeout(e,0)},Q=function(e){var t=[...arguments].slice(1);return typeof e==`function`?e.apply(void 0,t):e},$=function(e){return e.target.shadowRoot&&typeof e.composedPath==`function`?e.composedPath()[0]:e.target},Pe=[],Fe=function(e,t){var n=t?.document||document,r=t?.trapStack||Pe,i=Te({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,delayReturnFocus:!0,isolateSubtrees:!1,isKeyForward:Me,isKeyBackward:Ne},t),a={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,s=function(e,t,n){return e&&e[t]!==void 0?e[t]:i[n||t]},c=function(e,t){var n=typeof t?.composedPath==`function`?t.composedPath():void 0;return a.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||n?.includes(r)||i.find(function(t){return t===e})})},l=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.hasFallback,a=r!==void 0&&r,o=t.params,s=o===void 0?[]:o,c=i[e];if(typeof c==`function`&&(c=c.apply(void 0,Ee(s))),c===!0&&(c=void 0),!c){
vendor: 8,167 bytes, line 3
3if(c===void 0||c===!1)return c;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}var l=c;if(typeof c==`string`){try{l=n.querySelector(c)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!l&&!a)throw Error(`\`${e}\` as selector refers to no known node`)}return l},u=function(e){var t=e.activeElement;return t?t.shadowRoot&&t.shadowRoot.activeElement!==null?u(t.shadowRoot):t:null},d=function(){var e=l(`initialFocus`,{hasFallback:!0});if(e===!1)return!1;if(e===void 0||e&&!q(e,i.tabbableOptions)){var t=u(n);if(c(t)>=0)e=t;else{var r=a.tabbableGroups[0];e=r&&r.firstTabbableNode||l(`fallbackFocus`)}}else e===null&&(e=l(`fallbackFocus`));if(!e)throw Error(`Your focus-trap needs to have at least one focusable element`);return e},f=function(){if(a.containerGroups=a.containers.map(function(e){var t=ge(e,i.tabbableOptions),n=_e(e,i.tabbableOptions),r=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return K(e)}),s=n.slice().reverse().find(function(e){return K(e)});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:!!t.find(function(e){return z(e)>0}),firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return K(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return K(e)}):t[i+(r?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!l(`fallbackFocus`))throw Error(`Your focus-trap must have at least one container with at least one tabbable node in it at all times`);if(a.containerGroups.find(function(e){return e.posTabIndexesFound})&&a.containerGroups.length>1)throw 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.`)},p=function(e){if(e!==!1&&e!==u(document)){if(!e||!e.focus){p(d());return}e.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=e,Ae(e)&&e.select()}},m=function(e){var t=l(`setReturnFocus`,{params:[e]});return t||t!==!1&&e},h=function(e){var t=e.target,n=e.event,r=e.isBackward,o=r!==void 0&&r;t||=$(n),f();var s=null;if(a.tabbableGroups.length>0){var u=c(t,n),d=u>=0?a.containerGroups[u]:void 0;if(u<0)s=o?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(o){var p=a.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(d.container===t||q(t,i.tabbableOptions)&&!K(t,i.tabbableOptions)&&!d.nextTabbableNode(t,!1))&&(p=u),p>=0){var m=p===0?a.tabbableGroups.length-1:p-1,h=a.tabbableGroups[m];s=z(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else X(n)||(s=d.nextTabbableNode(t,!1))}else{var g=a.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(g<0&&(d.container===t||q(t,i.tabbableOptions)&&!K(t,i.tabbableOptions)&&!d.nextTabbableNode(t))&&(g=u),g>=0){var _=g===a.tabbableGroups.length-1?0:g+1,v=a.tabbableGroups[_];s=z(t)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else X(n)||(s=d.nextTabbableNode(t))}}else s=l(`fallbackFocus`);return s},g=function(e){if(!(c($(e),e)>=0)){if(Q(i.clickOutsideDeactivates,e)){o.deactivate({returnFocus:i.returnFocusOnDeactivate});return}Q(i.allowOutsideClick,e)||e.preventDefault()}},_=function(e){var t=$(e),n=c(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var r,o=!0;if(a.mostRecentlyFocusedNode)if(z(a.mostRecentlyFocusedNode)>0){var s=c(a.mostRecentlyFocusedNode),l=a.containerGroups[s].tabbableNodes;if(l.length>0){var u=l.findIndex(function(e){return e===a.mostRecentlyFocusedNode});u>=0&&(i.isKeyForward(a.recentNavEvent)?u+1<l.length&&(r=l[u+1],o=!1):u-1>=0&&(r=l[u-1],o=!1))}}else a.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return z(e)>0})})||(o=!1);else o=!1;o&&(r=h({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),p(r||a.mostRecentlyFocusedNode||d())}a.recentNavEvent=void 0},v=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];a.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(X(e)&&e.preventDefault(),p(n))},y=function(e){(i.isKeyForward(e)||i.isKeyBackward(e))&&v(e,i.isKeyBackward(e))},b=function(e){je(e)&&Q(i.escapeDeactivates,e)!==!1&&(e.preventDefault(),o.deactivate())},x=function(e){c($(e),e)>=0||Q(i.clickOutsideDeactivates,e)||Q(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},S=function(){if(a.active){Y.activateTrap(r,o);var e;return i.delayInitialFocus?e=new Promise(function(e){a.delayInitialFocusTimer=Z(function(){p(d()),e()})}):p(d()),n.addEventListener(`focusin`,_,!0),n.addEventListener(`mousedown`,g,{capture:!0,passive:!1}),n.addEventListener(`touchstart`,g,{capture:!0,passive:!1}),n.addEventListener(`click`,x,{capture:!0,passive:!1}),n.addEventListener(`keydown`,y,{capture:!0,passive:!1}),n.addEventListener(`keydown`,b),e}},C=function(e){a.active&&!a.paused&&o._setSubtreeIsolation(!1),a.adjacentElements.clear(),a.alreadySilent.clear();var t=new Set,n=new Set,r=be(e),i;try{for(r.s();!(i=r.n()).done;){var s=i.value;t.add(s);for(var c=typeof ShadowRoot<`u`&&s.getRootNode()instanceof ShadowRoot,l=s;l;){t.add(l);var u=l.parentElement,d=[];u?d=u.children:!u&&c&&(d=l.getRootNode().children,u=l.getRootNode().host,c=typeof ShadowRoot<`u`&&u.getRootNode()instanceof ShadowRoot);var f=be(d),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;n.add(m)}}catch(e){f.e(e)}finally{f.f()}l=u}}}catch(e){r.e(e)}finally{r.f()}t.forEach(function(e){n.delete(e)}),a.adjacentElements=n},w=function(){if(a.active)return n.removeEventListener(`focusin`,_,!0),n.removeEventListener(`mousedown`,g,!0),n.removeEventListener(`touchstart`,g,!0),n.removeEventListener(`click`,x,!0),n.removeEventListener(`keydown`,y,!0),n.removeEventListener(`keydown`,b),o},T=typeof window<`u`&&`MutationObserver`in window?new MutationObserver(function(e){var t=a.mostRecentlyFocusedNode;t&&e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===t||typeof e.contains==`function`&&e.contains(t)})})&&a.containers.some(function(e){return e?.isConnected})&&(f(),p(d()))}):void 0,E=function(){T&&(T.disconnect(),a.active&&!a.paused&&a.containers.map(function(e){T.observe(e,{subtree:!0,childList:!0})}))};return o={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,`onActivate`),i=s(e,`onPostActivate`),c=s(e,`checkCanFocusTrap`),l=Y.getActiveTrap(r),d=!1;if(l&&!l.paused){var p;(p=l._setSubtreeIsolation)==null||p.call(l,!1),d=!0}try{c||f(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=u(n),t?.({trap:o});var m=function(){c&&f();var e=function(){o._setSubtreeIsolation(!0),E(),i?.({trap:o})},t=S();t?t.then(e):e()};if(c)return c(a.containers.concat()).then(m,m),this;m()}catch(e){if(l===Y.getActiveTrap(r)&&d){var h;(h=l._setSubtreeIsolation)==null||h.call(l,!0)}throw e}return this},deactivate:function(e){if(!a.active)return this;var t=Te({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,a.paused||o._setSubtreeIsolation(!1),a.alreadySilent.clear(),w(),a.active=!1,a.paused=!1,E(),Y.deactivateTrap(r,o);var n=s(t,`onDeactivate`),c=s(t,`onPostDeactivate`),l=s(t,`checkCanReturnFocus`),u=s(t,`delayReturnFocus`),d=s(t,`returnFocus`,`returnFocusOnDeactivate`);n?.({trap:o});var f=function(){d&&p(m(a.nodeFocusedBeforeActivation)),c?.({trap:o})},h=function(){u&&d?Z(f):f()};return d&&l?(l(m(a.nodeFocusedBeforeActivation)).then(h,h),this):(h(),this)},pause:function(e){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return!a.active||(a.manuallyPaused=!1,r[r.length-1]!==this)?this:this._setPausedState(!1,e)},updateContainerElements:function(e){return a.containers=[].concat(e).filter(
3Boolean).map(function(e){return typeof e==`string`?n.querySelector(e):e}),i.isolateSubtrees&&C(a.containers),a.active&&(f(),a.paused||o._setSubtreeIsolation(!0)),E(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(e,t){if(a.paused===e)return this;if(a.paused=e,e){var n=s(t,`onPause`),r=s(t,`onPostPause`);n?.({trap:o}),w(),o._setSubtreeIsolation(!1),E(),r?.({trap:o})}else{var i=s(t,`onUnpause`),c=s(t,`onPostUnpause`);i?.({trap:o}),(function(){f();var e=function(){o._setSubtreeIsolation(!0),E(),c?.({trap:o})},t=S();t?t.then(e):e()})()}return this}},_setSubtreeIsolation:{value:function(e){i.isolateSubtrees&&a.adjacentElements.forEach(function(t){if(e)switch(i.isolateSubtrees){case`aria-hidden`:(t.ariaHidden===`true`||t.getAttribute(`aria-hidden`)?.toLowerCase()===`true`)&&a.alreadySilent.add(t),t.setAttribute(`aria-hidden`,`true`);break;default:(t.inert||t.hasAttribute(`inert`))&&a.alreadySilent.add(t),t.setAttribute(`inert`,!0)}else if(!a.alreadySilent.has(t))switch(i.isolateSubtrees){case`aria-hidden`:t.removeAttribute(`aria-hidden`);break;default:t.removeAttribute(`inert`)}})}}}),o.updateContainerElements(e),o},Ie={key:0,class:`fixed inset-0 z-50 bg-ink-900/50`,"aria-hidden":`true`},Le=[`onKeydown`],Re=[`aria-label`,`aria-labelledby`],ze={key:0,class:`flex items-start gap-4 border-b border-line px-5 py-4`},Be=[`id`],Ve=[`aria-label`],He={class:`min-h-0 flex-1 overflow-y-auto px-5 py-4`},Ue={key:1,class:`flex flex-wrap items-center justify-end gap-2 border-t border-line px-5 py-3`},We=Object.assign(a({__name:`UiDialog`,props:_({title:{default:void 0},ariaLabel:{default:void 0},maxWidth:{default:`md`},persistent:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},hideClose:{type:Boolean,default:!1},closeLabel:{default:`Close`}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:_([`close`],[`update:modelValue`]),setup(a,{emit:_}){let D=a,O=_,k=o(a,`modelValue`),A=i(),j=x(null),M=x(!1),N=null,P=!1,F=C(()=>({sm:`max-w-[28rem]`,md:`max-w-[34rem]`,lg:`max-w-[48rem]`,xl:`max-w-[64rem]`,full:`max-w-none`})[D.maxWidth]),ie=t(),I=C(()=>!!(D.title||ie.title)),L=C(()=>!D.ariaLabel&&I.value?A:void 0);function R(){let e=j.value;!e||N||(ne(),P=!0,N=Fe(e,{trapStack:te,escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:e,returnFocusOnDeactivate:!0,delayInitialFocus:!1}),N.activate())}function z(){N?.deactivate(),N=null,P&&=(re(),!1)}let B=null;function V(e){k.value&&=(B=e,!1)}function H(){D.persistent||V(`overlay`)}function U(){D.persistent||V(`escape`)}return r(k,async e=>{e?(await m(),R()):(z(),O(`close`,B??`model`),B=null)}),d(async()=>{M.value=!0,k.value&&(await m(),R())}),y(z),(t,r)=>{let i=ee;return h(M)?(l(),S(v,{key:0,to:`body`},[e(T,{"enter-active-class":`transition-opacity duration-150 ease-out`,"enter-from-class":`opacity-0`,"leave-active-class":`transition-opacity duration-100 ease-in`,"leave-to-class":`opacity-0`},{default:c(()=>[k.value?(l(),n(`div`,Ie)):s(``,!0)]),_:1}),e(T,{"enter-active-class":`transition duration-150 ease-out`,"enter-from-class":`opacity-0 scale-95`,"leave-active-class":`transition duration-100 ease-in`,"leave-to-class":`opacity-0 scale-95`},{default:c(()=>[k.value?(l(),n(`div`,{key:0,class:f([`fixed inset-0 z-50 flex overflow-y-auto`,a.fullscreen?``:`items-center justify-center p-4`]),onMousedown:E(H,[`self`]),onKeydown:w(E(U,[`stop`]),[`escape`])},[u(`div`,{ref_key:`panel`,ref:j,role:`dialog`,"aria-modal":`true`,"aria-label":a.ariaLabel,"aria-labelledby":h(L),tabindex:`-1`,"data-testid":`ui-dialog`,class:f([`relative flex w-full flex-col bg-surface text-ink-800 shadow-ui-xl outline-none`,a.fullscreen?`min-h-full`:[`my-auto max-h-[calc(100vh-2rem)] rounded-ui-lg`,h(F)]])},[t.$slots.title||a.title||!a.hideClose?(l(),n(`header`,ze,[u(`div`,{id:h(A),class:`min-w-0 flex-1 text-base font-semibold text-ink-900`},[b(t.$slots,`title`,{},()=>[g(p(a.title),1)])],8,Be),a.hideClose?s(``,!0):(l(),n(`button`,{key:0,type:`button`,class:`-m-1 cursor-pointer rounded-ui-sm p-1 text-ink-500 hover:bg-ink-100 hover:text-ink-800`,"aria-label":a.closeLabel,onClick:r[0]||=e=>V(`button`)},[e(i,{name:`mdi:close`,class:`size-5`,"aria-hidden":`true`})],8,Ve))])):s(``,!0),u(`div`,He,[b(t.$slots,`default`,{close:()=>V(`button`)})]),t.$slots.footer?(l(),n(`footer`,Ue,[b(t.$slots,`footer`,{close:()=>V(`button`)})])):s(``,!0)],10,Re)],42,Le)):s(``,!0)]),_:3})])):s(``,!0)}}}),{__name:`UiDialog`});export{We as t};

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.