1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4595],{23756:function(e,n,t){t.d(n,{ZP:function(){return eX}});var r,o,u=t(75990),i=t(11025),a=t(2265),c="data-focus-lock",d="data-focus-lock-disabled",l=t(1159),f={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},s=t(52633),v=(0,s.s)({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),p=(0,s.s)(),m=(0,s.s)(),h=(0,s._)({async:!0,ssr:"undefined"!=typeof document}),b=(0,a.createContext)(void 0),g=[],y=(0,a.forwardRef)(function(e,n){var t,r=(0,a.useState)(),o=r[0],u=r[1],s=(0,a.useRef)(),m=(0,a.useRef)(!1),y=(0,a.useRef)(null),x=(0,a.useState)({})[1],E=e.children,w=e.disabled,O=void 0!==w&&w,N=e.noFocusGuards,C=void 0!==N&&N,P=e.persistentFocus,F=e.crossFrame,M=e.autoFocus,R=(e.allowTextSelection,e.group),j=e.className,A=e.whiteList,D=e.hasPositiveIndices,I=e.shards,k=void 0===I?g:I,S=e.as,T=e.lockProps,_=e.sideCar,L=e.returnFocus,W=void 0!==L&&L,V=e.focusOptions,U=e.onActivation,B=e.onDeactivation,G=(0,a.useState)({})[0],Z=(0,a.useCallback)(function(e){var n=e.captureFocusRestore;if(!y.current){var t,r=null==(t=document)?void 0:t.activeElement;y.current=r,r!==document.body&&(y.current=n(r))}s.current&&U&&U(s.current),m.current=!0,x()},[U]),q=(0,a.useCallback)(function(){m.current=!1,B&&B(s.current),x()},[B]),z=(0,a.useCallback)(function(e){var n=y.current;if(n){var t=("function"==typeof n?n():n)||document.body,r="function"==typeof W?W(t):W;if(r){var o="object"==typeof r?r:void 0;y.current=null,e?Promise.resolve().then(function(){return t.focus(o)}):t.focus(o)}}},[W]),H=(0,a.useCallback)(function(e){m.current&&v.useMedium(e)},[]),Y=p.useMedium,K=(0,a.useCallback)(function(e){s.current!==e&&(s.current=e,u(e))},[]),$=(0,i.Z)(((t={})[d]=O&&"disabled",t[c]=R,t),void 0===T?{}:T),X=!0!==C,J=X&&"tail"!==C,Q=(0,l.q)([n,K]),ee=(0,a.useMemo)(function(){return{observed:s,shards:k,enabled:!O,get active(){return m.current}}},[O,m,k,s]);return a.createElement(a.Fragment,null,X&&[a.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:O?-1:0,style:f}),D?a.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:O?-1:1,style:f}):null],!O&&a.createElement(_,{id:G,sideCar:h,observed:o,disabled:O,persistentFocus:void 0!==P&&P,crossFrame:void 0===F||F,autoFocus:void 0===M||M,whiteList:A,shards:k,onActivation:Z,onDeactivation:q,returnFocus:z,focusOptions:V,noFocusGuards:C}),a.createElement(void 0===S?"div":S,(0,i.Z)({ref:Q},$,{className:j,onBlur:Y,onFocus:H}),a.createElement(b.Provider,{value:ee},E)),J&&a.createElement("div",{"data-focus-guard":!0,tabIndex:O?-1:0,style:f}))});y.propTypes={};var x=t(90445);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var w=function(e){for(var n=Array(e.length),t=0;t<e.length;++t)n[t]=e[t];return n},O=function(e){return Array.isArray(e)?e:[e]},N=function(e){return Array.isArray(e)?e[0]:e},C=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var n=window.getComputedStyle(e,null);return!!n&&!!n.getPropertyValue&&("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility"))},P=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},F=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},M=function(e,n){var t,r=e.get(n);if(void 0!==r)return r;var o=(t=M.bind(void 0,e),!n||F(n)||!C(n)&&!n.hasAttribute("inert")&&t(P(n)));return e.set(n,o),o},R=function(e,n){var t,r=e.get(n);if(void 0!==r)return r;var o=(t=R.bind(void 0,e),!n||!!F(n)||!!I(n)&&t(P(n)));return e.set(n,o),o},j=function(e){return e.dataset},A=function(e){return"INPUT"===e.tagName},D=function(e){return A(e)&&"radio"===e.type},I=function(e){return![!0,"true",""].includes(e.getAttribute("data-no-autofocus"))},k=function(e){var n;return!!(e&&(null===(n=j(e))||void 0===n?void 0:n.focusGuard))},S=function(e){return!k(e)},T=function(e){return!!e},_=function(e,n){var t=Math.max(0,e.tabIndex),r=Math.max(0,n.tabIndex),o=t-r,u=e.index-n.index;if(o){if(!t)return 1;if(!r)return -1}return o||u},L=function(e,n,t){return w(e).map(function(e,n){var r=e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex;return{node:e,index:n,tabIndex:t&&-1===r?(e.dataset||{}).focusGuard?0:-1:r}}).filter(function(e){return!n||e.tabIndex>=0}).sort(_)},W="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",V="".concat(W,", [data-focus-guard]"),U=function(e,n){return w((e.shadowRoot||e).children).reduce(function(e,t){return e.concat(t.matches(n?V:W)?[t]:[],U(t))},[])},B=function(e,n){var t;return e instanceof HTMLIFrameElement&&(null===(t=e.contentDocument)||void 0===t?void 0:t.body)?G([e.contentDocument.body],n):[e]},G=function(e,n){return e.reduce(function(e,t){var r,o=U(t,n),u=(r=[]).concat.apply(r,o.map(function(e){return B(e,n)}));return e.concat(u,t.parentNode?w(t.parentNode.querySelectorAll(W)).filter(function(e){return e===t}):[])},[])},Z=function(e,n){return w(e).filter(function(e){return M(n,e)}).filter(function(e){return!((A(e)||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))})},q=function(e,n){return void 0===n&&(n=new Map),w(e).filter(function(e){return R(n,e)})},z=function(e,n,t){return L(Z(G(e,t),n),!0,t)},H=function(e,n){return L(Z(G(e),n),!1)},Y=function(e,n){return e.shadowRoot?Y(e.shadowRoot,n):!!(void 0!==Object.getPrototypeOf(e).contains&&Object.getPrototypeOf(e).contains.call(e,n))||w(e.children).some(function(e){var t;if(e instanceof HTMLIFrameElement){var r=null===(t=e.contentDocument)||void 0===t?void 0:t.body;
1return!!r&&Y(r,n)}return Y(e,n)})},K=function(e){try{return e()}catch(e){return}},$=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var n=e.activeElement;return n.shadowRoot?$(n.shadowRoot):n instanceof HTMLIFrameElement&&K(function(){return n.contentWindow.document})?$(n.contentWindow.document):n}},X=function(e){void 0===e&&(e=document);var n=$(e);return!!n&&w(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return Y(e,n)})},J=function(e){for(var n=new Set,t=e.length,r=0;r<t;r+=1)for(var o=r+1;o<t;o+=1){var u=e[r].compareDocumentPosition(e[o]);(u&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&n.add(o),(u&Node.DOCUMENT_POSITION_CONTAINS)>0&&n.add(r)}return e.filter(function(e,t){return!n.has(t)})},Q=function(e){return e.parentNode?Q(e.parentNode):e},ee=function(e){return O(e).filter(Boolean).reduce(function(e,n){var t=n.getAttribute(c);return e.push.apply(e,t?J(w(Q(n).querySelectorAll("[".concat(c,'="').concat(t,'"]:not([').concat(d,'="disabled"])')))):[n]),e},[])},en=function(e,n){return void 0===n&&(n=$(N(e).ownerDocument)),!!n&&(!n.dataset||!n.dataset.focusGuard)&&ee(e).some(function(e){var t;return Y(e,n)||(t=n,!!w(e.querySelectorAll("iframe")).some(function(e){return e===t}))})},et=function(e,n){e&&("focus"in e&&e.focus(n),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},er=function(e,n){return D(e)&&e.name&&n.filter(D).filter(function(n){return n.name===e.name}).filter(function(e){return e.checked})[0]||e},eo=function(e){var n=new Set;return e.forEach(function(t){return n.add(er(t,e))}),e.filter(function(e){return n.has(e)})},eu=function(e){return e[0]&&e.length>1?er(e[0],e):e[0]},ei=function(e,n){return e.indexOf(er(n,e))},ea="NEW_FOCUS",ec=function(e,n,t,r,o){var u=e.length,i=e[0],a=e[u-1],c=k(r);if(!(r&&e.indexOf(r)>=0)){var d=void 0!==r?t.indexOf(r):-1,l=o?t.indexOf(o):d,f=o?e.indexOf(o):-1;if(-1===d)return -1!==f?f:ea;if(-1===f)return ea;var s=d-l,v=t.indexOf(i),p=t.indexOf(a),m=eo(t),h=void 0!==r?m.indexOf(r):-1,b=o?m.indexOf(o):h,g=m.filter(function(e){return e.tabIndex>=0}),y=void 0!==r?g.indexOf(r):-1,x=o?g.indexOf(o):y;if(!s&&f>=0||0===n.length)return f;var E=ei(e,n[0]),w=ei(e,n[n.length-1]);if(d<=v&&c&&Math.abs(s)>1)return w;if(d>=p&&c&&Math.abs(s)>1)return E;if(s&&Math.abs(y>=0&&x>=0?x-y:b-h)>1)return f;if(d<=v)return w;if(d>p)return E;if(s)return Math.abs(s)>1?f:(u+f+s)%u}},ed=function(e,n,t){var r=q(e.map(function(e){return e.node}).filter(function(e){var n,r=null===(n=j(e))||void 0===n?void 0:n.autofocus;return e.autofocus||void 0!==r&&"false"!==r||t.indexOf(e)>=0}));return r&&r.length?eu(r):eu(q(n))},el=function(e,n){return void 0===n&&(n=[]),n.push(e),e.parentNode&&el(e.parentNode.host||e.parentNode,n),n},ef=function(e,n){for(var t=el(e),r=el(n),o=0;o<t.length;o+=1){var u=t[o];if(r.indexOf(u)>=0)return u}return!1},es=function(e,n,t){var r=O(e),o=O(n),u=r[0],i=!1;
1return o.filter(Boolean).forEach(function(e){i=ef(i||e,e)||i,t.filter(Boolean).forEach(function(e){var n=ef(u,e);n&&(i=!i||Y(n,i)?n:ef(n,i))})}),i},ev=function(e,n){return e.reduce(function(e,t){return e.concat(Z(w(t.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(e){return G([e])}).reduce(function(e,n){return e.concat(n)},[]),n))},[])},ep=function(e,n){var t=new Map;return n.forEach(function(e){return t.set(e.node,e)}),e.map(function(e){return t.get(e)}).filter(T)},em=function(e,n){var t=$(O(e).length>0?document:N(e).ownerDocument),r=ee(e).filter(S),o=es(t||e,e,r),u=new Map,i=H(r,u),a=i.filter(function(e){return S(e.node)});if(a[0]){var c=H([o],u).map(function(e){return e.node}),d=ep(c,a),l=d.map(function(e){return e.node}),f=d.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),s=ec(l,f,c,t,n);if(s===ea){var v=ed(i,f,ev(r,u))||ed(i,l,ev(r,u));return v?{node:v}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===s?s:d[s]}},eh=0,eb=!1,eg=function(e,n,t){void 0===t&&(t={});var r=em(e,n);if(!eb&&r){if(eh>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),eb=!0,setTimeout(function(){eb=!1},1);return}eh++,et(r.node,t.focusOptions),eh--}};function ey(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var n=e?new WeakRef(e):null;return function(){return(null==n?void 0:n.deref())||null}}var ex=function(e){if(!e)return null;for(var n=[],t=e;t&&t!==document.body;)n.push({current:ey(t),parent:ey(t.parentElement),left:ey(t.previousElementSibling),right:ey(t.nextElementSibling)}),t=t.parentElement;return{element:ey(e),stack:n,ownerDocument:e.ownerDocument}},eE=function(e){if(e)for(var n,t,r,o,u,i=e.stack,a=e.ownerDocument,c=new Map,d=0;d<i.length;d++){var l=i[d],f=null===(n=l.parent)||void 0===n?void 0:n.call(l);if(f&&a.contains(f)){for(var s=null===(t=l.left)||void 0===t?void 0:t.call(l),v=l.current(),p=f.contains(v)?v:void 0,m=null===(r=l.right)||void 0===r?void 0:r.call(l),h=z([f],c),b=null!==(u=null!==(o=null!=p?p:null==s?void 0:s.nextElementSibling)&&void 0!==o?o:m)&&void 0!==u?u:s;b;){for(var g=0;g<h.length;g++){var y=h[g];if(null==b?void 0:b.contains(y.node))return y.node}b=b.nextElementSibling}if(h.length)return h[0].node}}},ew=function(e){var n=ex(e);return function(){return eE(n)}},eO=function(e){var n=ee(e).filter(S),t=L(G([es(e,e,n)],!0),!0,!0),r=G(n,!1);return t.map(function(e){var n=e.node;return{node:n,index:e.index,lockItem:r.indexOf(n)>=0,guard:k(n)}})},eN=function(e,n,t){if(!e||!n)return console.error("no element or scope given"),{};var r=O(n);if(r.every(function(n){return!Y(n,e)}))return console.error("Active element is not contained in the scope"),{};var o=t?z(r,new Map):H(r,new Map),u=o.findIndex(function(n){return n.node===e});if(-1!==u)return{prev:o[u-1],next:o[u+1],first:o[0],last:o[o.length-1]}},eC=function(e,n){var t=n?z(O(e),new Map):H(O(e),new Map);return{first:t[0],last:t[t.length-1]}},eP=function(e,n,t){void 0===n&&(n={});var r,o=(r=n,Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},r)),u=eN(e,o.scope,o.onlyTabbable);if(u){var i=t(u,o.cycle);i&&et(i.node,o.focusOptions)}},eF=function(e,n,t){var r,o=eC(e,null===(r=n.onlyTabbable)||void 0===r||r)[t];o&&et(o.node,n.focusOptions)};function eM(e){setTimeout(e,1)}var eR=function(e){return e&&"current"in e?e.current:e},ej=function(){return document&&document.activeElement===document.body},eA=null,eD=null,eI=function(){return null},ek=null,eS=!1,eT=!1,e_=function(e,n){ek={observerNode:e,portaledElement:n}};function eL(e,n,t,r){var o=null,u=e;do{var i=r[u];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else if(i.lockItem){if(u!==e)return;o=null}else break}while((u+=t)!==n);o&&(o.node.tabIndex=0)}var eW=function(e){return H(e,new Map)},eV=function(){var e=!1;if(eA){var n=eA,t=n.observed,r=n.persistentFocus,o=n.autoFocus,u=n.shards,i=n.crossFrame,a=n.focusOptions,c=n.noFocusGuards,d=t||ek&&ek.portaledElement;if(ej()&&eD&&eD!==document.body&&(!document.body.contains(eD)||!eW([(s=eD).parentNode]).some(function(e){return e.no
1de===s}))){var l=eI();l&&l.focus()}var f=document&&document.activeElement;if(d){var s,v=[d].concat(u.map(eR).filter(Boolean));if((!f||(eA.whiteList||function(){return!0})(f))&&(r||function(){if(!(i?!!eS:"meanwhile"===eS)||!c||!eD||eT)return!1;var e=eW(v),n=e.findIndex(function(e){return e.node===eD});return 0===n||n===e.length-1}()||!(ej()||X())||!eD&&o)&&(d&&!(en(v)||f&&v.some(function(e){return function e(n,t,r){return t&&(t.host===n&&(!t.activeElement||r.contains(t.activeElement))||t.parentNode&&e(n,t.parentNode,r))}(f,e,e)})||ek&&ek.portaledElement===f)&&(document&&!eD&&f&&!o?(f.blur&&f.blur(),document.body.focus()):(e=eg(v,eD,{focusOptions:a}),ek={})),(eD=document&&document.activeElement)!==document.body&&(eI=ew(eD)),eS=!1),document&&f!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var p=document&&document.activeElement,m=eO(v),h=m.map(function(e){return e.node}).indexOf(p);h>-1&&(m.filter(function(e){var n=e.guard,t=e.node;return n&&t.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),eL(h,m.length,1,m),eL(h,-1,-1,m))}}}return e},eU=function(e){eV()&&e&&(e.stopPropagation(),e.preventDefault())},eB=function(){return eM(eV)},eG=function(){eT=!0},eZ=function(){eT=!1,eS="just",eM(function(){eS="meanwhile"})},eq=function(){document.addEventListener("focusin",eU),document.addEventListener("focusout",eB),window.addEventListener("focus",eG),window.addEventListener("blur",eZ)},ez=function(){document.removeEventListener("focusin",eU),document.removeEventListener("focusout",eB),window.removeEventListener("focus",eG),window.removeEventListener("blur",eZ)},eH={moveFocusInside:eg,focusInside:en,focusNextElement:function(e,n){void 0===n&&(n={}),eP(e,n,function(e,n){var t=e.next,r=e.first;return t||n&&r})},focusPrevElement:function(e,n){void 0===n&&(n={}),eP(e,n,function(e,n){var t=e.prev,r=e.last;return t||n&&r})},focusFirstElement:function(e,n){void 0===n&&(n={}),eF(e,n,"first")},focusLastElement:function(e,n){void 0===n&&(n={}),eF(e,n,"last")},captureFocusRestore:ew};v.assignSyncMedium(function(e){var n=e.target,t=e.currentTarget;t.contains(n)||e_(t,n)}),p.assignMedium(eB),m.assignMedium(function(e){return e(eH)});var eY=(r=function(e){return e.filter(function(e){return!e.disabled})},o=function(e){var n=e.slice(-1)[0];n&&!eA&&eq();var t=eA,r=t&&n&&n.id===t.id;eA=n,!t||r||(t.onDeactivation(),e.filter(function(e){return e.id===t.id}).length||t.returnFocus(!n)),n?(eD=null,r&&t.observed===n.observed||n.onActivation(eH),eV(!0),eM(eV)):(ez(),eD=null)},function(e){var n,t,u,i,c=[];function d(){o(i=r(c.map(function(e){return e.props})))}var l=function(n){function t(){return n.apply(this,arguments)||this}(0,x.Z)(t,n),t.peek=function(){return i};var r=t.prototype;return r.componentDidMount=function(){c.push(this),d()},r.componentDidUpdate=function(){d()},r.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),d()},r.render=function(){return a.createElement(e,this.props)},t}(a.PureComponent);return n="displayName",t="SideEffect("+(e.displayName||e.name||"Component")+")",(u=function(e,n){if("object"!=E(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=E(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"==E(u)?u:u+"")in l)?Object.defineProperty(l,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[n]=t,l})(function(){return null}),eK=(0,a.forwardRef)(function(e,n){return a.createElement(y,(0,i.Z)({sideCar:eY,ref:n},e))}),e$=y.propTypes||{};e$.sideCar,(0,u.Z)(e$,["sideCar"]),eK.propTypes={};var eX=eK},35852:function(e,n,t){t.d(n,{VY:function(){return z},h_:function(){return q},fC:function(){return G},xz:function(){return Z}});var r=t(2265),o=t(79648),u=t(91307),i=t(52539),a=t(50298),c=t(22909),d=t(89224),l=t(13721),f=t(71774),s=t(76291),v=t(85952),p=t(259),m=t(57437),h=Symbol("radix.slottable");function b(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}var g=t(21727),y=t(30423),x=t(60827),E="Popover",[w,O]=(0,i.b)(E,[f.D7]),N=(0,f.D7)(),[C,P]=w(E),F=e=>{let{__scopePopover:n,children:t,open:o,defaultOpen:u,onOpenChange:i,modal:
1a=!1}=e,c=N(n),d=r.useRef(null),[s,v]=r.useState(!1),[p,h]=(0,g.T)({prop:o,defaultProp:null!=u&&u,onChange:i,caller:E});return(0,m.jsx)(f.fC,{...c,children:(0,m.jsx)(C,{scope:n,contentId:(0,l.M)(),triggerRef:d,open:p,onOpenChange:h,onOpenToggle:r.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:s,onCustomAnchorAdd:r.useCallback(()=>v(!0),[]),onCustomAnchorRemove:r.useCallback(()=>v(!1),[]),modal:a,children:t})})};F.displayName=E;var M="PopoverAnchor";r.forwardRef((e,n)=>{let{__scopePopover:t,...o}=e,u=P(M,t),i=N(t),{onCustomAnchorAdd:a,onCustomAnchorRemove:c}=u;return r.useEffect(()=>(a(),()=>c()),[a,c]),(0,m.jsx)(f.ee,{...i,...o,ref:n})}).displayName=M;var R="PopoverTrigger",j=r.forwardRef((e,n)=>{let{__scopePopover:t,...r}=e,i=P(R,t),a=N(t),c=(0,u.e)(n,i.triggerRef),d=(0,m.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":B(i.open),...r,ref:c,onClick:(0,o.Mj)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?d:(0,m.jsx)(f.ee,{asChild:!0,...a,children:d})});j.displayName=R;var A="PopoverPortal",[D,I]=w(A,{forceMount:void 0}),k=e=>{let{__scopePopover:n,forceMount:t,children:r,container:o}=e,u=P(A,n);return(0,m.jsx)(D,{scope:n,forceMount:t,children:(0,m.jsx)(v.z,{present:t||u.open,children:(0,m.jsx)(s.h,{asChild:!0,container:o,children:r})})})};k.displayName=A;var S="PopoverContent",T=r.forwardRef((e,n)=>{let t=I(S,e.__scopePopover),{forceMount:r=t.forceMount,...o}=e,u=P(S,e.__scopePopover);return(0,m.jsx)(v.z,{present:r||u.open,children:u.modal?(0,m.jsx)(L,{...o,ref:n}):(0,m.jsx)(W,{...o,ref:n})})});T.displayName=S;var _=function(e){let n=function(e){let n=r.forwardRef((e,n)=>{let{children:t,...o}=e;if(r.isValidElement(t)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?t.props.ref:t.props.ref||t.ref,c=function(e,n){let t={...n};for(let r in n){let o=e[r],u=n[r];/^on[A-Z]/.test(r)?o&&u?t[r]=(...e)=>{let n=u(...e);return o(...e),n}:o&&(t[r]=o):"style"===r?t[r]={...o,...u}:"className"===r&&(t[r]=[o,u].filter(Boolean).join(" "))}return{...e,...t}}(o,t.props);return t.type!==r.Fragment&&(c.ref=n?(0,u.F)(n,a):a),r.cloneElement(t,c)}return r.Children.count(t)>1?r.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}(e),t=r.forwardRef((e,t)=>{let{children:o,...u}=e,i=r.Children.toArray(o),a=i.find(b);if(a){let e=a.props.children,o=i.map(n=>n!==a?n:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,m.jsx)(n,{...u,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,m.jsx)(n,{...u,ref:t,children:o})});return t.displayName=`${e}.Slot`,t}("PopoverContent.RemoveScroll"),L=r.forwardRef((e,n)=>{let t=P(S,e.__scopePopover),i=r.useRef(null),a=(0,u.e)(n,i),c=r.useRef(!1);return r.useEffect(()=>{let e=i.current;if(e)return(0,y.Ry)(e)},[]),(0,m.jsx)(x.Z,{as:_,allowPinchZoom:!0,children:(0,m.jsx)(V,{...e,ref:a,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.Mj)(e.onCloseAutoFocus,e=>{var n;e.preventDefault(),c.current||null===(n=t.triggerRef.current)||void 0===n||n.focus()}),onPointerDownOutside:(0,o.Mj)(e.onPointerDownOutside,e=>{let n=e.detail.originalEvent,t=0===n.button&&!0===n.ctrlKey,r=2===n.button||t;c.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.Mj)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),W=r.forwardRef((e,n)=>{let t=P(S,e.__scopePopover),o=r.useRef(!1),u=r.useRef(!1);return(0,m.jsx)(V,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,n),n.defaultPrevented||(o.current||null===(i=t.triggerRef.current)||void 0===i||i.focus(),n.preventDefault()),o.current=!1,u.current=!1},onInteractOutside:n=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,n),n.defaultPrevented||(o.current=!0,"pointerdown"!==n.detail.originalEvent.type||(u.current=!0));let a=n.target;(null===(i=t.triggerRef.current)||void 0===i?void 0:i.contains(a))&&n.preventDefault(),"focusin"===n.detail.originalEvent.type&&u.current&&n.preventDefault()}})}
1),V=r.forwardRef((e,n)=>{let{__scopePopover:t,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:u,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:v,onInteractOutside:p,...h}=e,b=P(S,t),g=N(t);return(0,c.EW)(),(0,m.jsx)(d.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:u,children:(0,m.jsx)(a.XB,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:p,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:v,onDismiss:()=>b.onOpenChange(!1),children:(0,m.jsx)(f.VY,{"data-state":B(b.open),role:"dialog",id:b.contentId,...g,...h,ref:n,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),U="PopoverClose";function B(e){return e?"open":"closed"}r.forwardRef((e,n)=>{let{__scopePopover:t,...r}=e,u=P(U,t);return(0,m.jsx)(p.WV.button,{type:"button",...r,ref:n,onClick:(0,o.Mj)(e.onClick,()=>u.onOpenChange(!1))})}).displayName=U,r.forwardRef((e,n)=>{let{__scopePopover:t,...r}=e,o=N(t);return(0,m.jsx)(f.Eh,{...o,...r,ref:n})}).displayName="PopoverArrow";var G=F,Z=j,q=k,z=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.