1import{b5 as Ne,w as ke}from"./DtFjAPax.js";const Ae=t=>t;function ve(t){const e=t-1;return e*e*e+1}function se(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function lt(t,{delay:e=0,duration:a=400,easing:r=Ae}={}){const s=+getComputedStyle(t).opacity;return{delay:e,duration:a,easing:r,css:l=>`opacity: ${l*s}`}}function ut(t,{delay:e=0,duration:a=400,easing:r=ve,x:s=0,y:l=0,opacity:n=0}={}){const c=getComputedStyle(t),b=+c.opacity,p=c.transform==="none"?"":c.transform,T=b*(1-n),[w,N]=se(s),[A,S]=se(l);return{delay:e,duration:a,easing:r,css:(I,L)=>` 2 transform: ${p} translate(${(1-I)*w}${N}, ${(1-I)*A}${S}); 3 opacity: ${b-T*L}`}}function ct(t,{delay:e=0,duration:a=400,easing:r=ve,axis:s="y"}={}){const l=getComputedStyle(t),n=+l.opacity,c=s==="y"?"height":"width",b=parseFloat(l[c]),p=s==="y"?["top","bottom"]:["left","right"],T=p.map(C=>`${C[0].toUpperCase()}${C.slice(1)}`),w=parseFloat(l[`padding${T[0]}`]),N=parseFloat(l[`padding${T[1]}`]),A=parseFloat(l[`margin${T[0]}`]),S=parseFloat(l[`margin${T[1]}`]),I=parseFloat(l[`border${T[0]}Width`]),L=parseFloat(l[`border${T[1]}Width`]);return{delay:e,duration:a,easing:r,css:C=>`overflow: hidden;opacity: ${Math.min(C*20,1)*n};${c}: ${C*b}px;padding-${p[0]}: ${C*w}px;padding-${p[1]}: ${C*N}px;margin-${p[0]}: ${C*A}px;margin-${p[1]}: ${C*S}px;border-${p[0]}-width: ${C*I}px;border-${p[1]}-width: ${C*L}px;min-${c}: 0`}}/*! 4* tabbable 6.4.0 5* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 6*/var be=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[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] *)"],K=be.join(","),pe=typeof Element>"u",D=pe?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,$=!pe&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},U=function(e,a){var r;a===void 0&&(a=!0);var s=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),l=s===""||s==="true",n=l||a&&e&&(typeof e.closest=="function"?e.closest("[inert]"):U(e.parentNode));return n},Fe=function(e){var a,r=e==null||(a=e.getAttribute)===null||a===void 0?void 0:a.call(e,"contenteditable");return r===""||r==="true"},ge=function(e,a,r){if(U(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(K));return a&&D.call(e,K)&&s.unshift(e),s=s.filter(r),s},H=function(e,a,r){for(var s=[],l=Array.from(e);l.length;){var n=l.shift();if(!U(n,!1))if(n.tagName==="SLOT"){var c=n.assignedElements(),b=c.length?c:n.children,p=H(b,!0,r);r.flatten?s.push.apply(s,p):s.push({scopeParent:n,candidates:p})}else{var T=D.call(n,K);T&&r.filter(n)&&(a||!e.includes(n))&&s.push(n);var w=n.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(n),N=!U(w,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(n));if(w&&N){var A=H(w===!0?n.children:w.children,!0,r);r.flatten?s.push.apply(s,A):s.push({scopeParent:n,candidates:A})}else l.unshift.apply(l,n.children)}}return s},he=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)||Fe(e))&&!he(e)?0:e.tabIndex},Oe=function(e,a){var r=P(e);return r<0&&a&&!he(e)?0:r},Re=function(e,a){return e.tabIndex===a.tabIndex?e.documentOrder-a.documentOrder:e.tabIndex-a.tabIndex},ye=function(e){return e.tagName==="INPUT"},Ie=function(e){return ye(e)&&e.type==="hidden"},_e=function(e){var a=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return a},Pe=function(e,a){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===a)return e[r]},De=function(e){if(!e.name)return!0;var a=e.form||$(e),r=function(c){return a.querySelectorAll('input[type="radio"][name="'+c+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=r(window.CSS.escape(e.name));else try{s=r(e.name)}
vendor: 15,682 bytes, lines 6-11
6catch(n){return n.message,!1}var l=Pe(s,e.form);return!l||l===e},Le=function(e){return ye(e)&&e.type==="radio"},Me=function(e){return Le(e)&&!De(e)},xe=function(e){var a,r=e&&$(e),s=(a=r)===null||a===void 0?void 0:a.host,l=!1;if(r&&r!==e){var n,c,b;for(l=!!((n=s)!==null&&n!==void 0&&(c=n.ownerDocument)!==null&&c!==void 0&&c.contains(s)||e!=null&&(b=e.ownerDocument)!==null&&b!==void 0&&b.contains(e));!l&&s;){var p,T,w;r=$(s),s=(p=r)===null||p===void 0?void 0:p.host,l=!!((T=s)!==null&&T!==void 0&&(w=T.ownerDocument)!==null&&w!==void 0&&w.contains(s))}}return l},le=function(e){var a=e.getBoundingClientRect(),r=a.width,s=a.height;return r===0&&s===0},Be=function(e,a){var r=a.displayCheck,s=a.getShadowRoot;if(r==="full-native"&&"checkVisibility"in e){var l=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!l}if(getComputedStyle(e).visibility==="hidden")return!0;var n=D.call(e,"details>summary:first-of-type"),c=n?e.parentElement:e;if(D.call(c,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof s=="function"){for(var b=e;e;){var p=e.parentElement,T=$(e);if(p&&!p.shadowRoot&&s(p)===!0)return le(e);e.assignedSlot?e=e.assignedSlot:!p&&T!==e.ownerDocument?e=T.host:e=p}e=b}if(xe(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return le(e);return!1},Ge=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var a=e.parentElement;a;){if(a.tagName==="FIELDSET"&&a.disabled){for(var r=0;r<a.children.length;r++){var s=a.children.item(r);if(s.tagName==="LEGEND")return D.call(a,"fieldset[disabled] *")?!0:!s.contains(e)}return!0}a=a.parentElement}return!1},V=function(e,a){return!(a.disabled||Ie(a)||Be(a,e)||_e(a)||Ge(a))},Z=function(e,a){return!(Me(a)||P(a)<0||!V(e,a))},je=function(e){var a=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(a)||a>=0)},me=function(e){var a=[],r=[];return e.forEach(function(s,l){var n=!!s.scopeParent,c=n?s.scopeParent:s,b=Oe(c,n),p=n?me(s.candidates):c;b===0?n?a.push.apply(a,p):a.push(c):r.push({documentOrder:l,tabIndex:b,item:s,isScope:n,content:p})}),r.sort(Re).reduce(function(s,l){return l.isScope?s.push.apply(s,l.content):s.push(l.content),s},[]).concat(a)},Ke=function(e,a){a=a||{};var r;return a.getShadowRoot?r=H([e],a.includeContainer,{filter:Z.bind(null,a),flatten:!1,getShadowRoot:a.getShadowRoot,shadowRootFilter:je}):r=ge(e,a.includeContainer,Z.bind(null,a)),me(r)},$e=function(e,a){a=a||{};var r;return a.getShadowRoot?r=H([e],a.includeContainer,{filter:V.bind(null,a),flatten:!0,getShadowRoot:a.getShadowRoot}):r=ge(e,a.includeContainer,V.bind(null,a)),r},M=function(e,a){if(a=a||{},!e)throw new Error("No node provided");return D.call(e,K)===!1?!1:Z(a,e)},Ue=be.concat("iframe:not([inert]):not([inert] *)").join(","),z=function(e,a){if(a=a||{},!e)throw new Error("No node provided");return D.call(e,Ue)===!1?!1:V(a,e)};/*! 7* focus-trap 7.8.0 8* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE 9*/function X(t,e){(e==null||e>t.length)&&(e=t.length);for(var a=0,r=Array(e);a<e;a++)r[a]=t[a];return r}function He(t){if(Array.isArray(t))return X(t)}function ue(t,e){var a=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=Te(t))||e){a&&(t=a);var r=0,s=function(){};return{s,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(b){throw b},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 10In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,n=!0,c=!1;return{s:function(){a=a.call(t)},n:function(){var b=a.next();return n=b.done,b},e:function(b){c=!0,l=b},f:function(){try{n||a.return==null||a.return()}finally{if(c)throw l}}}}function Ve(t,e,a){return(e=Ze(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function We(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ye(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 11In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ce(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),a.push.apply(a,r)}return a}function de(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?ce(Object(a),!0).forEach(function(r){Ve(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ce(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function qe(t){return He(t)||We(t)||Te(t)||Ye()}function ze(t,e){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ze(t){var e=ze(t,"string");return typeof e=="symbol"?e:e+""}function Te(t,e){if(t){if(typeof t=="string")return X(t,e);var a={}.toString.call(t).slice(8,-1);return a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set"?Array.from(t):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?X(t,e):void 0}}var O={getActiveTrap:function(e){return(e==null?void 0:e.length)>0?e[e.length-1]:null},activateTrap:function(e,a){var r=O.getActiveTrap(e);a!==r&&O.pauseTrap(e);var s=e.indexOf(a);s===-1||e.splice(s,1),e.push(a)},deactivateTrap:function(e,a){var r=e.indexOf(a);r!==-1&&e.splice(r,1),O.unpauseTrap(e)},pauseTrap:function(e){var a=O.getActiveTrap(e);a==null||a._setPausedState(!0)},unpauseTrap:function(e){var a=O.getActiveTrap(e);a&&!a._isManuallyPaused()&&a._setPausedState(!1)}},Xe=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Je=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},G=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Qe=function(e){return G(e)&&!e.shiftKey},et=function(e){return G(e)&&e.shiftKey},fe=function(e){return setTimeout(e,0)},B=function(e){for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return typeof e=="function"?e.apply(void 0,r):e},j=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},tt=[],at=function(e,a){var r=(a==null?void 0:a.document)||document,s=(a==null?void 0:a.trapStack)||tt,l=de({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:Qe,isKeyBackward:et},a),n={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},c,b=function(i,o,u){return i&&i[o]!==void 0?i[o]:l[u||o]},p=function(i,o){var u=typeof(o==null?void 0:o.composedPath)=="function"?o.composedPath():void 0;return n.containerGroups.findIndex(function(v){var f=v.container,g=v.tabbableNodes;return f.contains(i)||(u==null?void 0:u.includes(f))||g.find(function(d){return d===i})})},T=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=o.hasFallback,v=u===void 0?!1:u,f=o.params,g=f===void 0?[]:f,d=l[i];if(typeof d=="function"&&(d=d.apply(void 0,qe(g))),d===!0&&(d=void 0),!d){if(d===void 0||d===!1)return d;throw new Error("`".concat(i,"` was specified but was not a node, or did not return a node"))}var h=d;if(typeof d=="string"){try{h=r.querySelector(d)}catch(y){throw new Error("`".concat(i,'` appears to be an invalid selector; error="').concat(y.message,'"'))}if(!h&&!v)throw new Error("`".concat(i,"` as selector refers to no known node"))}return h},w=function(){var i=T("initialFocus",{hasFallback:!0});if(i===!1)return!1;if(i===void 0||i&&!z(i,l.tabbableOptions))if(p(r.activeElement)>=0)i=r.activeElement;else{var o=n.tabbableGroups[0],u=o&&o.firstTabbableNode;i=u||T("fallbackFocus")}else i===null&&(i=T("fallbackFocus"));if(!i)throw new Error("Your focus-trap needs to have at least one focusable element");return i},N=function(){if(n.containerGroups=n.containers.map(function(i){var o=Ke(i,l.tabbableOptions),u=$e(i,l.tabbableOptions),v=o.length>0?o[0]:void 0,f=o.length>0?o[o.length-1]:void 0,g=u.find(function(y){return M(y)}),d=u.slice().reverse().find(function(y){return M(y)}),h=!!o.find(function(y){return P(y)>0});return{container:i,tabbableNodes:o,focusableNodes:u,posTabIndexesFound:h,firstTabbableNode:v,lastTabbableNode:f,firstDomTabbableNode:g,lastDomTabbableNode:d,nextTabbableNode:function(E){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,k=o.indexOf(E);return k<0?F?u.slice(u.indexOf(E)+1).find(function(_){return M(_)}):u.slice(0,u.indexOf(E)).reverse().find(function(_){return M(_)}):o[k+(F?1:-1)]}}}),n.tabbableGroups=n.containerGroups.filter(function(i){return i.tabbableNodes.length>0}),n.tabbableGroups.length<=0&&!T("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(n.containerGroups.find(function(i){return i.posTabIndexesFound})&&n.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.")},A=function(i){var o=i.activeElement;if(o)return o.shadowRoot&&o.shadowRoot.activeElement!==null?A(o.shadowRoot):o},S=function(i){if(i!==!1&&i!==A(document)){if(!i||!i.focus){S(w());return}i.focus({preventScroll:!!l.preventScroll}),n.mostRecentlyFocusedNode=i,Xe(i)&&i.select()}},I=function(i){var o=T("setReturnFocus",{params:[i]});return o||(o===!1?!1:i)},L=function(i){var o=i.target,u=i.event,v=i.isBackward,f=v===void 0?!1:v;o=o||j(u),N();var g=null;if(n.tabbableGroups.length>0){var d=p(o,u),h=d>=0?n.containerGroups[d]:void 0;if(d<0)f?g=n.tabbableGroups[n.tabbableGroups.length-1].lastTabbableNode:g=n.tabbableGroups[0].firstTabbableNode;else if(f){var y=n.tabbableGroups.findIndex(function(Y){var q=Y.firstTabbableNode;return o===q});if(y<0&&(h.container===o||z(o,l.tabbableOptions)&&!M(o,l.tabbableOptions)&&!h.nextTabbableNode(o,!1))&&(y=d),y>=0){var E=y===0?n.tabbableGroups.length-1:y-1,F=n.tabbableGroups[E];g=P(o)>=0?F.lastTabbableNode:F.lastDomTabbableNode}else G(u)||(g=h.nextTabbableNode(o,!1))}else{var k=n.tabbableGroups.findIndex(function(Y){var q=Y.lastTabbableNode;return o===q});if(k<0&&(h.container===o||z(o,l.tabbableOptions)&&!M(o,l.tabbableOptions)&&!h.nextTabbableNode(o))&&(k=d),k>=0){var _=k===n.tabbableGroups.length-1?0:k+1,R=n.tabbableGroups[_];g=P(o)>=0?R.firstTabbableNode:R.firstDomTabbableNode}else G(u)||(g=h.nextTabbableNode(o))}}else g=T("fallbackFocus");return g},C=function(i){var o=j(i);if(!(p(o,i)>=0)){if(B(l.clickOutsideDeactivates,i)){c.deactivate({returnFocus:l.returnFocusOnDeactivate});return}B(l.allowOutsideClick,i)||i.preventDefault()}},te=function(i){var o=j(i),u=p(o,i)>=0;if(u||o instanceof Document)u&&(n.mostRecentlyFocusedNode=o);else{i.stopImmediatePropagation();var v,f=!0;if(n.mostRecentlyFocusedNode)if(P(n.mostRecentlyFocusedNode)>0){var g=p(n.mostRecentlyFocusedNode),d=n.containerGroups[g].tabbableNodes;if(d.length>0){var h=d.findIndex(function(y){return y===n.mostRecentlyFocusedNode});h>=0&&(l.isKeyForward(n.recentNavEvent)?h+1<d.length&&(v=d[h+1],f=!1):h-1>=0&&(v=d[h-1],f=!1))}}else n.containerGroups.some(function(y){return y.tabbableNodes.some(function(E){return P(E)>0})})||(f=!1);else f=!1;f&&(v=L({target:n.mostRecentlyFocusedNode,isBackward:l.isKeyBackward(n.recentNavEvent)})),S(v||n.mostRecentlyFocusedNode||w())}n.recentNavEvent=void 0},Ce=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n.recentNavEvent=i;var u=L({event:i,isBackward:o});u&&(G(i)&&i.preventDefault(),S(u))},ae=function(i){(l.isKeyForward(i)||l.isKeyBackward(i))&&Ce(i,l.isKeyBackward(i))},re=function(i){Je(i)&&B(l.escapeDeactivates,i)!==!1&&(i.preventDefault(),c.deactivate())},ne=function(i){var o=j(i);p(o,i)>=0||B(l.clickOutsideDeactivates,i)||B(l.allowOutsideClick,i)||(i.preventDefault(),i.stopImmediatePropagation())},ie=function(){if(n.active)return O.activateTrap(s,c),n.delayInitialFocusTimer=l.delayInitialFocus?fe(function(){S(w())}):S(w()),r.addEventListener("focusin",te,!0),r.addEventListener("mousedown",C,{capture:!0,passive:!1}),r.addEventListener("touchstart",C,{capture:!0,passive:!1}),r.addEventListener("click",ne,{capture:!0,passive:!1}),r.addEventListener("keydown",ae,{capture:!0,passive:!1}),r.addEventListener("keydown",re),c},Ee=function(i){n.active&&!n.paused&&c._setSubtreeIsolation(!1),n.adjacentElements.clear(),n.alreadySilent.clear();var o=new Set,u=new Set,v=ue(i),f;try{for(v.s();!(f=v.n()).done;){var g=f.value;o.add(g);for(var d=typeof ShadowRoot<"u"&&g.getRootNode()instanceof ShadowRoot,h=g;h;){o.add(h);var y=h.parentElement,E=[];y?E=y.children:!y&&d&&(E=h.getRootNode().children,y=h.getRootNode().host,d=typeof ShadowRoot<"u"&&y.getRootNode()instanceof ShadowRoot);var F=ue(E),k;try{for(F.s();!(k=F.n()).done;){var _=k.value;u.add(_)}}catch(R){F.e(R)}finally{F.f()}h=y}}}catch(R){v.e(R)}finally{v.f()}o.forEach(function(R){u.delete(R)}),n.adjacentElements=u},oe=function(){if(n.active)return r.removeEventListener("focusin",te,!0),r.removeEventListener("mousedown",C,!0),r.removeEventListener("touchstart",C,!0),r.removeEventListener("click",ne,!0),r.removeEventListener("keydown",ae,!0),r.removeEventListener("keydown",re),c},Se=function(i){var o=i.some(function(u){var v=Array.from(u.removedNodes);return v.some(function(f){return f===n.mostRecentlyFocusedNode})});o&&S(w())},W=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(Se):void 0,x=function(){W&&(W.disconnect(),n.active&&!n.paused&&n.containers.map(function(i){W.observe(i,{subtree:!0,childList:!0})}))};return c={get active(){return n.active},get paused(){return n.paused},activate:function(i){if(n.active)return this;var o=b(i,"onActivate"),u=b(i,"onPostActivate"),v=b(i,"checkCanFocusTrap"),f=O.getActiveTrap(s),g=!1;if(f&&!f.paused){var d;(d=f._setSubtreeIsolation)===null||d===void 0||d.call(f,!1),g=!0}try{v||N(),n.active=!0,n.paused=!1,n.nodeFocusedBeforeActivation=A(r),o==null||o();var h=function(){v&&N(),ie(),x(),l.isolateSubtrees&&c._setSubtreeIsolation(!0),u==null||u()};if(v)return v(n.containers.concat()).then(h,h),this;h()}catch(E){if(f===O.getActiveTrap(s)&&g){var y;(y=f._setSubtreeIsolation)===null||y===void 0||y.call(f,!0)}throw E}return this},deactivate:function(i){if(!n.active)return this;var o=de({onDeactivate:l.onDeactivate,onPostDeactivate:l.onPostDeactivate,checkCanReturnFocus:l.checkCanReturnFocus},i);clearTimeout(n.delayInitialFocusTimer),n.delayInitialFocusTimer=void 0,n.paused||c._setSubtreeIsolation(!1),n.alreadySilent.clear(),oe(),n.active=!1,n.paused=!1,x(),O.deactivateTrap(s,c);var u=b(o,"onDeactivate"),v=b(o,"onPostDeactivate"),f=b(o,"checkCanReturnFocus"),g=b(o,"returnFocus","returnFocusOnDeactivate");u==null||u();var d=function(){fe(function(){g&&S(I(n.nodeFocusedBeforeActivation)),v==null||v()})};return g&&f?(f(I(n.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(i){return n.active?(n.manuallyPaused=!0,this._setPausedState(!0,i)):this},unpause:function(i){return n.active?(n.manuallyPaused=!1,s[s.length-1]!==this?this:this._setPausedState(!1,i)):this}
11,updateContainerElements:function(i){var o=[].concat(i).filter(Boolean);return n.containers=o.map(function(u){return typeof u=="string"?r.querySelector(u):u}),l.isolateSubtrees&&Ee(n.containers),n.active&&(N(),l.isolateSubtrees&&!n.paused&&c._setSubtreeIsolation(!0)),x(),this}},Object.defineProperties(c,{_isManuallyPaused:{value:function(){return n.manuallyPaused}},_setPausedState:{value:function(i,o){if(n.paused===i)return this;if(n.paused=i,i){var u=b(o,"onPause"),v=b(o,"onPostPause");u==null||u(),oe(),x(),c._setSubtreeIsolation(!1),v==null||v()}else{var f=b(o,"onUnpause"),g=b(o,"onPostUnpause");f==null||f(),c._setSubtreeIsolation(!0),N(),ie(),x(),g==null||g()}return this}},_setSubtreeIsolation:{value:function(i){l.isolateSubtrees&&n.adjacentElements.forEach(function(o){var u;if(i)switch(l.isolateSubtrees){case"aria-hidden":(o.ariaHidden==="true"||((u=o.getAttribute("aria-hidden"))===null||u===void 0?void 0:u.toLowerCase())==="true")&&n.alreadySilent.add(o),o.setAttribute("aria-hidden","true");break;default:(o.inert||o.hasAttribute("inert"))&&n.alreadySilent.add(o),o.setAttribute("inert",!0);break}else if(!n.alreadySilent.has(o))switch(l.isolateSubtrees){case"aria-hidden":o.removeAttribute("aria-hidden");break;default:o.removeAttribute("inert");break}})}}}),c.updateContainerElements(e),c};const dt=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:at},Symbol.toStringTag,{value:"Module"}));var rt=(t=>(t.NEW_CHAT="newChat",t.NEW_TEMPORARY_CHAT="newTemporaryChat",t.DELETE_CHAT="deleteChat",t.OPEN_MODEL_SELECTOR="openModelSelector",t.TOGGLE_DICTATION="toggleDictation",t.NAVIGATE_CHAT_UP="navigateChatUp",t.NAVIGATE_CHAT_DOWN="navigateChatDown",t.SEARCH="search",t.OPEN_SETTINGS="openSettings",t.SHOW_SHORTCUTS="showShortcuts",t.TOGGLE_SIDEBAR="toggleSidebar",t.TOGGLE_CONTROLS="toggleControls",t.CLOSE_MODAL="closeModal",t.FOCUS_INPUT="focusInput",t.ACCEPT_AUTOCOMPLETE="acceptAutocomplete",t.PREVENT_FILE_CREATION="preventFileCreation",t.NAVIGATE_PROMPT_HISTORY_UP="navigatePromptHistoryUp",t.ATTACH_FILE="attachFile",t.ADD_PROMPT="addPrompt",t.TALK_TO_MODEL="talkToModel",t.GENERATE_MESSAGE_PAIR="generateMessagePair",t.REGENERATE_RESPONSE="regenerateResponse",t.ALLOW_TOOL_CALL="allowToolCall",t.DENY_TOOL_CALL="denyToolCall",t.COPY_LAST_CODE_BLOCK="copyLastCodeBlock",t.COPY_LAST_RESPONSE="copyLastResponse",t.STOP_GENERATING="stopGenerating",t.TOGGLE_MUTE="toggleMute",t))(rt||{});const J=["newChat","newTemporaryChat","deleteChat","openModelSelector","toggleDictation","navigateChatUp","navigateChatDown","search","openSettings","showShortcuts","toggleSidebar","toggleControls","closeModal","focusInput","generateMessagePair","regenerateResponse","allowToolCall","denyToolCall","copyLastCodeBlock","copyLastResponse"],we={newChat:"Cmd+Shift+O",newTemporaryChat:"Cmd+Shift+'",deleteChat:"Cmd+Shift+Backspace",openModelSelector:"Cmd+Shift+M",toggleDictation:"Cmd+Shift+L",navigateChatUp:"",navigateChatDown:"",search:"Cmd+K",openSettings:"Cmd+.",showShortcuts:"Cmd+/",toggleSidebar:"Cmd+Shift+S",toggleControls:"",closeModal:"Escape",focusInput:"Shift+Escape",generateMessagePair:"Cmd+Shift+Enter",regenerateResponse:"Cmd+R",allowToolCall:"Cmd+Alt+Enter",denyToolCall:"Cmd+Alt+Backspace",copyLastCodeBlock:"Cmd+Shift+;",copyLastResponse:"Cmd+Shift+C"},Q=ke({...we});function ft(t){return J.includes(t)}function vt(t){!t||typeof t!="object"||Q.update(e=>{const a={...e};for(const r of J)typeof t[r]=="string"&&(a[r]=t[r]);return a})}function bt(){Q.set({...we})}const ee=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.userAgent);function nt(t){const e=[];ee?(t.metaKey&&e.push("Cmd"),t.ctrlKey&&e.push("Ctrl")):t.ctrlKey&&e.push("Cmd"),t.altKey&&e.push("Alt"),t.shiftKey&&e.push("Shift");let a=t.key;return["Meta","Control","Alt","Shift"].includes(a)?"":(a===" "&&(a="Space"),a.length===1&&(a=a.toUpperCase()),a==='"'&&(a="'"),a===":"&&(a=";"),a==="?"&&(a="/"),a==="{"&&(a="["),a==="}"&&(a="]"),e.push(a),e.join("+"))}function it(t){if(ee)switch(t){case"Cmd":return"â";case"Ctrl":return"â";case"Alt":return"â¥";case"Shift":return"â§";case"Backspace":return"â«";case"Escape":return"Esc";case"Enter":return"â©ï¸";case"Tab":return"â¥"}return t==="Cmd"?"Ctrl":t==="Escape"?"Esc":t}function pt(t){if(!t)return"";const e=t.split("+").map(it);return ee?e.join(""):e.join("+")}function ot(t){const e=new Map;for(const a of J){const r=t[a];r&&e.set(r,a)}return e}function gt(t){const e=nt(t);return e?ot(Ne(Q)).get(e)??null:null}const ht={newChat:{name:t=>t("settings.personal.shortcuts.newChat.label"),keys:["mod","shift","O"],category:"Chat",configurable:!0},newTemporaryChat:{name:t=>t("settings.personal.shortcuts.newTemporaryChat.label"),keys:["mod","shift","'"],category:"Chat",configurable:!0},deleteChat:{name:t=>t("settings.personal.shortcuts.deleteChat.label"),keys:["mod","shift","Backspace"],category:"Chat",configurable:!0},openModelSelector:{name:t=>t("settings.personal.shortcuts.openModelSelector.label"),keys:["mod","shift","M"],category:"Chat",configurable:!0},toggleDictation:{name:t=>t("settings.personal.shortcuts.toggleDictation.label"),keys:["mod","shift","L"],category:"Chat",configurable:!0},navigateChatUp:{name:t=>t("settings.personal.shortcuts.navigateChatUp.label"),keys:[],category:"Chat",configurable:!0},navigateChatDown:{name:t=>t("settings.personal.shortcuts.navigateChatDown.label"),keys:[],category:"Chat",configurable:!0}
11,search:{name:t=>t("settings.personal.shortcuts.search.label"),keys:["mod","K"],category:"Global",configurable:!0},openSettings:{name:t=>t("settings.personal.shortcuts.openSettings.label"),keys:["mod","."],category:"Global",configurable:!0},showShortcuts:{name:t=>t("settings.personal.shortcuts.showShortcuts.label"),keys:["mod","/"],category:"Global",configurable:!0},toggleSidebar:{name:t=>t("settings.personal.shortcuts.toggleSidebar.label"),keys:["mod","shift","S"],category:"Global",configurable:!0},toggleControls:{name:t=>t("settings.personal.shortcuts.toggleControls.label"),keys:[],category:"Global",configurable:!0},closeModal:{name:t=>t("settings.personal.shortcuts.closeModal.label"),keys:["Escape"],category:"Global",configurable:!0},focusInput:{name:t=>t("settings.personal.shortcuts.focusInput.label"),keys:["shift","Escape"],category:"Input",configurable:!0},acceptAutocomplete:{name:t=>t("settings.personal.shortcuts.acceptAutocomplete.label"),keys:["Tab"],category:"Input"},preventFileCreation:{name:t=>t("settings.personal.shortcuts.preventFileCreation.label"),keys:["mod","shift","V"],category:"Input",tooltip:'Only active when "Paste Large Text as File" setting is toggled on.'},attachFile:{name:t=>t("settings.personal.shortcuts.attachFile.label"),keys:["#"],category:"Input"},addPrompt:{name:t=>t("settings.personal.shortcuts.addPrompt.label"),keys:["/"],category:"Input"},talkToModel:{name:t=>t("settings.personal.shortcuts.talkToModel.label"),keys:["@"],category:"Input"},generateMessagePair:{name:t=>t("settings.personal.shortcuts.generateMessagePair.label"),keys:["mod","shift","Enter"],category:"Message",configurable:!0,tooltip:"Only active when the chat input is in focus."},regenerateResponse:{name:t=>t("settings.personal.shortcuts.regenerateResponse.label"),keys:["mod","R"],category:"Message",configurable:!0},allowToolCall:{name:t=>t("settings.personal.shortcuts.allowToolCall.label"),keys:["mod","alt","Enter"],category:"Message",configurable:!0,tooltip:"Only active when a tool call is waiting for approval."},denyToolCall:{name:t=>t("settings.personal.shortcuts.denyToolCall.label"),keys:["mod","alt","Backspace"],category:"Message",configurable:!0,tooltip:"Only active when a tool call is waiting for approval."},stopGenerating:{name:t=>t("settings.personal.shortcuts.stopGenerating.label"),keys:["Escape"],category:"Message",tooltip:"Only active when the chat input is in focus and an LLM is generating a response."},navigatePromptHistoryUp:{name:t=>t("settings.personal.shortcuts.navigatePromptHistoryUp.label"),keys:["ArrowUp"],category:"Message",tooltip:"Only can be triggered when the chat input is in focus."},copyLastResponse:{name:t=>t("settings.personal.shortcuts.copyLastResponse.label"),keys:["mod","shift","C"],category:"Message",configurable:!0},copyLastCodeBlock:{name:t=>t("settings.personal.shortcuts.copyLastCodeBlock.label"),keys:["mod","shift",";"],category:"Message",configurable:!0},toggleMute:{name:t=>t("settings.personal.shortcuts.toggleMute.label"),keys:["M"],category:"Voice",tooltip:"Only active during Voice Mode."}};export{we as D,dt as F,rt as S,ut as a,$e as b,at as c,ft as d,pt as e,lt as f,ht as g,nt as h,z as i,Q as k,vt as l,gt as m,bt as r,ct as s,Ke as t}; 12//# sourceMappingURL=BHe9I6KB.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.