1"use strict";(self.webpackChunk_termly_web_dashboard=self.webpackChunk_termly_web_dashboard||[]).push([[8192],{28192(e,t,n){n.d(t,{s3:()=>je,$c:()=>ve,XF:()=>Pe,P6:()=>pe,kp:()=>_e,s9:()=>He,we:()=>Ve,fI:()=>fe,R1:()=>ae,bv:()=>Xe,It:()=>ze});var r=n(53241),o=n.t(r,2),u=n(47758),i=["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])"].join(","),l="undefined"==typeof Element,c=l?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!l&&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},a=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&a(e.parentNode)},d=function(e,t,n){if(a(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&c.call(e,i)&&r.unshift(e),r.filter(n)},f=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var u=o.shift();if(!a(u,!1))if("SLOT"===u.tagName){var l=u.assignedElements(),s=l.length?l:u.children,d=f(s,!0,n);
vendor: 4,811 bytes, line 1
1n.flatten?r.push.apply(r,d):r.push({scopeParent:u,candidates:d})}else{c.call(u,i)&&n.filter(u)&&(t||!e.includes(u))&&r.push(u);var v=u.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(u),p=!a(v,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(u));if(v&&p){var m=f(!0===v?u.children:v.children,!0,n);n.flatten?r.push.apply(r,m):r.push({scopeParent:u,candidates:m})}else o.unshift.apply(o,u.children)}}return r},v=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))&&!v(e)?0:e.tabIndex},m=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},g=function(e){return"INPUT"===e.tagName},h=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},b=function(e,t){return!(t.disabled||a(t)||function(e){return g(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=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 o=c.call(e,"details>summary:first-of-type")?e.parentElement:e;if(c.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return h(e)}else{if("function"==typeof r){for(var u=e;e;){var i=e.parentElement,l=s(e);if(i&&!i.shadowRoot&&!0===r(i))return h(e);e=e.assignedSlot?e.assignedSlot:i||l===e.ownerDocument?i:l.host}e=u}if(function(e){var t,n,r,o,u=e&&s(e),i=null===(t=u)||void 0===t?void 0:t.host,l=!1;if(u&&u!==e)for(l=!!(null!==(n=i)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(i)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&i;){var c,a,d;l=!(null===(a=i=null===(c=u=s(i))||void 0===c?void 0:c.host)||void 0===a||null===(d=a.ownerDocument)||void 0===d||!d.contains(i))}return l}(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 r=t.children.item(n);if("LEGEND"===r.tagName)return!!c.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},y=function(e,t){return!(function(e){return function(e){return g(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(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 o=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!o||o===e}(e)}(t)||p(t)<0||!b(e,t))},w=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},E=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,u=o?e.scopeParent:e,i=function(e,t){var n=p(e);return n<0&&t&&!v(e)?0:n}(u,o),l=o?E(e.candidates):u;0===i?o?t.push.apply(t,l):t.push(u):n.push({documentOrder:r,tabIndex:i,item:e,isScope:o,content:l})}),n.sort(m).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},R=function(e,t){var n;return n=(t=t||{}).getShadowRoot?f([e],t.includeContainer,{filter:y.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:w}):d(e,t.includeContainer,y.bind(null,t)),E(n)},x=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==c.call(e,i)&&y(t,e)};function k(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function S(){const e=/android/i;return e.test(function(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}())||e.test(k())}const C="data-floating-ui-focusable";function A(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function M(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;
1if(n&&(0,u.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function P(e){return"composedPath"in e?e.composedPath()[0]:e.target}function I(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function N(e){return(null==e?void 0:e.ownerDocument)||document}function T(e){return(0,u.sb)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function L(e){return!!e&&"combobox"===e.getAttribute("role")&&T(e)}function O(e){return e?e.hasAttribute(C)?e:e.querySelector("["+C+"]")||e:null}function D(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...D(e,t.id,n)])}function q(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){const t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}function j(e){e.preventDefault(),e.stopPropagation()}function F(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var W="undefined"!=typeof document?r.useLayoutEffect:function(){};function _(e){const t=r.useRef(e);return W(()=>{t.current=e}),t}const B={...o}.useInsertionEffect||(e=>e());function K(e){const t=r.useRef(()=>{});return B(()=>{t.current=e}),r.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}const U=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function H(e,t){const n=R(e,U()),r=n.length;if(0===r)return;const o=A(N(e)),u=n.indexOf(o);return n[-1===u?1===t?0:r-1:u+t]}function V(e){return H(N(e).body,1)||e}function $(e){return H(N(e).body,-1)||e}function X(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!M(n,r)}function Y(e){R(e,U()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function z(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}var G=n(98157),J=n(61424),Q=n(36185);const Z="data-floating-ui-focusable",ee="active",te="selected",ne={...o};let re=!1,oe=0;const ue=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+oe++,ie=ne.useId||function(){const[e,t]=r.useState(()=>re?ue():void 0);return W(()=>{null==e&&t(ue())},[]),r.useEffect(()=>{re=!0},[]),e};function le(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}const ce=r.createContext(null),se=r.createContext(null),ae=()=>{var e;return(null==(e=r.useContext(ce))?void 0:e.id)||null},de=()=>r.useContext(se);function fe(e){const t=ie(),n=de(),r=ae(),o=e||r;return W(()=>{if(!t)return;const e={id:t,parentId:o};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}},[n,t,o]),t}function ve(e){const{children:t,id:n}=e,o=ae();return(0,G.jsx)(ce.Provider,{value:r.useMemo(()=>({id:n,parentId:o}),[n,o]),children:t})}function pe(e){const{children:t}=e,n=r.useRef([]),o=r.useCallback(e=>{n.current=[...n.current,e]},[]),u=r.useCallback(e=>{n.current=n.current.filter(t=>t!==e)},[]),[i]=r.useState(()=>le());return(0,G.jsx)(se.Provider,{value:r.useMemo(()=>({nodesRef:n,addNode:o,removeNode:u,events:i}),[o,u,i]),children:t})}function me(e){return"data-floating-ui-"+e}let ge=0;function he(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(ge);const u=()=>null==e?void 0:e.focus({preventScroll:n});o?u():ge=requestAnimationFrame(u)}const be={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function ye(e){return"inert"===e?be.inert:"aria-hidden"===e?be["aria-hidden"]:be.none}let we=new WeakSet,Ee={},Re=0;const xe=e=>e&&(e.host||xe(e.parentNode));function ke(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=(o=e[0],(null==o?void 0:o.ownerDocument)||document).body;var o;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,l=(c=t,e.map(e=>{if(c.contains(e))return e;const t=xe(e);return c.contains(t)?t:null}).filter(e=>null!=e));var c;const s=new Set,a=new Set(l),d=[];Ee[o]||(Ee[o]=new WeakMap);const f=Ee[o];return l.forEach(function e(t){t&&!s.has(t)&&(s.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!a.has(t)&&[].forEach.call(t.children,t=>{if("script"!==(0,u.mq)(t))if(s.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=ye(i),u=(r.get(t)||0)+1,l=(f.get(t)||0)+1;r.set(t,u),f.set(t,l),d.push(t),1===u&&n&&we.add(t),1===l&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"inert"===i?"":"true")}})}(t),s.clear(),Re++,()=>
1{d.forEach(e=>{const t=ye(i),n=(t.get(e)||0)-1,r=(f.get(e)||0)-1;t.set(e,n),f.set(e,r),n||(!we.has(e)&&i&&e.removeAttribute(i),we.delete(e)),r||e.removeAttribute(o)}),Re--,Re||(be.inert=new WeakMap,be["aria-hidden"]=new WeakMap,be.none=new WeakMap,we=new WeakSet,Ee={})}}(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const Se={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Ce=r.forwardRef(function(e,t){const[n,o]=r.useState();W(()=>{/apple/i.test(navigator.vendor)&&o("button")},[]);const u={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[me("focus-guard")]:"",style:Se};return(0,G.jsx)("span",{...e,...u})}),Ae=r.createContext(null),Me=me("portal");function Pe(e){const{children:t,id:n,root:o,preserveTabOrder:i=!0}=e,l=function(e){void 0===e&&(e={});const{id:t,root:n}=e,o=ie(),i=Ie(),[l,c]=r.useState(null),s=r.useRef(null);return W(()=>()=>{null==l||l.remove(),queueMicrotask(()=>{s.current=null})},[l]),W(()=>{if(!o)return;if(s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=o,n.setAttribute(Me,""),e.appendChild(n),s.current=n,c(n)},[t,o]),W(()=>{if(null===n)return;if(!o)return;if(s.current)return;let e=n||(null==i?void 0:i.portalNode);e&&!(0,u.Ll)(e)&&(e=e.current),e=e||document.body;let r=null;t&&(r=document.createElement("div"),r.id=t,e.appendChild(r));const l=document.createElement("div");l.id=o,l.setAttribute(Me,""),e=r||e,e.appendChild(l),s.current=l,c(l)},[t,n,o,i]),l}({id:n,root:o}),[c,s]=r.useState(null),a=r.useRef(null),d=r.useRef(null),f=r.useRef(null),v=r.useRef(null),p=null==c?void 0:c.modal,m=null==c?void 0:c.open,g=!!c&&!c.modal&&c.open&&i&&!(!o&&!l);return r.useEffect(()=>{if(l&&i&&!p)return l.addEventListener("focusin",e,!0),l.addEventListener("focusout",e,!0),()=>{l.removeEventListener("focusin",e,!0),l.removeEventListener("focusout",e,!0)};function e(e){l&&X(e)&&("focusin"===e.type?z:Y)(l)}},[l,i,p]),r.useEffect(()=>{l&&(m||z(l))},[m,l]),(0,G.jsxs)(Ae.Provider,{value:r.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:a,afterOutsideRef:d,beforeInsideRef:f,afterInsideRef:v,portalNode:l,setFocusManagerState:s}),[i,l]),children:[g&&l&&(0,G.jsx)(Ce,{"data-type":"outside",ref:a,onFocus:e=>{if(X(e,l)){var t;null==(t=f.current)||t.focus()}else{const e=$(c?c.domReference:null);null==e||e.focus()}}}),g&&l&&(0,G.jsx)("span",{"aria-owns":l.id,style:Se}),l&&J.createPortal(t,l),g&&l&&(0,G.jsx)(Ce,{"data-type":"outside",ref:d,onFocus:e=>{if(X(e,l)){var t;null==(t=v.current)||t.focus()}else{const t=V(c?c.domReference:null);null==t||t.focus(),(null==c?void 0:c.closeOnFocusOut)&&(null==c||c.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Ie=()=>r.useContext(Ae);function Ne(e){return r.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let Te=[];function Le(){Te=Te.filter(e=>e.isConnected)}function Oe(){return Le(),Te[Te.length-1]}function De(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const r=U(),o=function(e,t){return(t=t||{}).getShadowRoot?f([e],t.includeContainer,{filter:b.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):d(e,t.includeContainer,b.bind(null,t))}(e,r),u=o.filter(e=>{const t=e.getAttribute("data-tabindex")||"";return x(e,r)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),i=e.getAttribute("tabindex");t.current.includes("floating")||0===u.length?"0"!==i&&e.setAttribute("tabindex","0"):("-1"!==i||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const qe=r.forwardRef(function(e,t){return(0,G.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:Se})});function je(e){const{context:t,children:n,disabled:o=!1,order:i=["content"],guards:l=!0,initialFocus:c=0,returnFocus:s=!0,restoreFocus:a=!1,modal:d=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:v=!0,outsideElementsInert:p=!1,getInsideElements:m=()=>[]}=e,{open:g,onOpenChange:h,events:b,dataRef:y,elements:{domReference:w,floating:E}}=t,C=K(()=>{var e;return null==(e=y.current.floatingContext)?void 0:e.nodeId}),I=K(m),T="number"==typeof c&&c<0,F=L(w)&&T,B="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,H=!B||l,Y=!H||B&&p,z=_(i),J=_(c),Q=_(s),Z=de(),ee=Ie(),te=r.useRef(null),ne=r.useRef(null),re=r.useRef(!1),oe=r.useRef(!1),ue=r.useRef(-1),ie=r.useRef(-1),le=null!=ee,ce=O(E),se=K(function(e){return void 0===e&&(e=ce),e?R(e,U()):[]}),ae=K(e=>{const t=se(e);return z.current.map(e=>
1w&&"reference"===e?w:ce&&"floating"===e?ce:t).filter(Boolean).flat()});r.useEffect(()=>{if(o)return;if(!d)return;function e(e){if("Tab"===e.key){M(ce,A(N(ce)))&&0===se().length&&!F&&j(e);const t=ae(),n=P(e);"reference"===z.current[0]&&n===w&&(j(e),e.shiftKey?he(t[t.length-1]):he(t[1])),"floating"===z.current[1]&&n===ce&&e.shiftKey&&(j(e),he(t[0]))}}const t=N(ce);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[o,w,ce,d,z,F,se,ae]),r.useEffect(()=>{if(!o&&E)return E.addEventListener("focusin",e),()=>{E.removeEventListener("focusin",e)};function e(e){const t=P(e),n=se().indexOf(t);-1!==n&&(ue.current=n)}},[o,E,se]),r.useEffect(()=>{if(o)return;if(!v)return;function e(){oe.current=!0,setTimeout(()=>{oe.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,r=P(e);queueMicrotask(()=>{const o=C(),i=!(M(w,t)||M(E,t)||M(t,E)||M(null==ee?void 0:ee.portalNode,t)||null!=t&&t.hasAttribute(me("focus-guard"))||Z&&(D(Z.nodesRef.current,o).find(e=>{var n,r;return M(null==(n=e.context)?void 0:n.elements.floating,t)||M(null==(r=e.context)?void 0:r.elements.domReference,t)})||q(Z.nodesRef.current,o).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,O(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(n===w&&ce&&De(ce,z),a&&n!==w&&(null==r||!r.isConnected)&&A(N(ce))===N(ce).body){(0,u.sb)(ce)&&ce.focus();const e=ue.current,t=se(),n=t[e]||t[t.length-1]||ce;(0,u.sb)(n)&&n.focus()}y.current.insideReactTree?y.current.insideReactTree=!1:!F&&d||!t||!i||oe.current||t===Oe()||(re.current=!0,h(!1,e,"focus-out"))})}const n=Boolean(!Z&&ee);function r(){var e;-1!==(e=ie).current&&(clearTimeout(e.current),e.current=-1),y.current.insideReactTree=!0,ie.current=window.setTimeout(()=>{y.current.insideReactTree=!1})}return E&&(0,u.sb)(w)?(w.addEventListener("focusout",t),w.addEventListener("pointerdown",e),E.addEventListener("focusout",t),n&&E.addEventListener("focusout",r,!0),()=>{w.removeEventListener("focusout",t),w.removeEventListener("pointerdown",e),E.removeEventListener("focusout",t),n&&E.removeEventListener("focusout",r,!0)}):void 0},[o,w,E,ce,d,Z,ee,h,v,a,se,F,C,z,y]);const fe=r.useRef(null),ve=r.useRef(null),pe=Ne([fe,null==ee?void 0:ee.beforeInsideRef]),ge=Ne([ve,null==ee?void 0:ee.afterInsideRef]);function be(e){return!o&&f&&d?(0,G.jsx)(qe,{ref:"start"===e?te:ne,onClick:e=>h(!1,e.nativeEvent),children:"string"==typeof f?f:"Dismiss"}):null}r.useEffect(()=>{var e,t;if(o)return;if(!E)return;const n=Array.from((null==ee||null==(e=ee.portalNode)?void 0:e.querySelectorAll("["+me("portal")+"]"))||[]),r=null==(t=(Z?q(Z.nodesRef.current,C()):[]).find(e=>{var t;return L((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,u=[E,r,...n,...I(),te.current,ne.current,fe.current,ve.current,null==ee?void 0:ee.beforeOutsideRef.current,null==ee?void 0:ee.afterOutsideRef.current,z.current.includes("reference")||F?w:null].filter(e=>null!=e),i=d||F?ke(u,!Y,Y):ke(u);return()=>{i()}},[o,w,E,d,z,ee,F,H,Y,Z,C,I]),W(()=>{if(o||!(0,u.sb)(ce))return;const e=A(N(ce));queueMicrotask(()=>{const t=ae(ce),n=J.current,r=("number"==typeof n?t[n]:n.current)||ce,o=M(ce,e);T||o||!g||he(r,{preventScroll:r===ce})})},[o,g,ce,T,ae,J]),W(()=>{if(o||!ce)return;const e=N(ce);var t;function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(re.current=!0),"outside-press"===t)if(r)re.current=!1;else if(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(S()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(n)||function(e){return!k().includes("jsdom/")&&(!S()&&0===e.width&&0===e.height||S()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}(n))re.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),re.current=!e}}t=A(e),Le(),t&&"body"!==(0,u.mq)(t)&&(Te.push(t),Te.length>20&&(Te=Te.slice(-20))),b.on("openchange",n);const r=e.createElement("span");return r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true"),Object.assign(r.style,Se),le&&w&&w.insertAdjacentElement("afterend",r),()=>{b.off("openchange",n);const t=A(e),o=M(E,t)||Z&&D(Z.nodesRef.current,C(),!1).some(e=>{var n;return M(null==(n=e.context)?void 0:n.elements.floating,t)}),i=function(){if("boolean"==typeof Q.current){const e=w||Oe();return e&&e.isConnected?e:r}return Q.current.current||r}();queueMicrotask(()=>{const n=function(e){const t=U();return x(e,t)?e:R(e,t)[0]||e}(i);Q.current&&!re.current&&(0,u.sb)(n)&&(n===t||t===e.body||o)&&n.focus({preventScroll:!0}),r.remove()})}},[o,E,ce,Q,y,b,Z,le,w,C]),r.useEffect(()=>(queueMicrotask(()=>{re.current=!1}),()=>{queueMicrotask(Le)}),[o]),W(()=>{if(!o&&ee)return ee.setFocusManagerState({modal:d,closeOnFocusOut:v,open:g,onOpenChange:h,domReference:w}),()=>{ee.setFocusManagerState(null)}},[o,ee,d,g,h,v,w]),W(()=>{o||ce&&De(ce,z)},[o,ce,z]);
1const ye=!o&&H&&(!d||!F)&&(le||d);return(0,G.jsxs)(G.Fragment,{children:[ye&&(0,G.jsx)(Ce,{"data-type":"inside",ref:pe,onFocus:e=>{if(d){const e=ae();he("reference"===i[0]?e[0]:e[e.length-1])}else if(null!=ee&&ee.preserveTabOrder&&ee.portalNode)if(re.current=!1,X(e,ee.portalNode)){const e=V(w);null==e||e.focus()}else{var t;null==(t=ee.beforeOutsideRef.current)||t.focus()}}}),!F&&be("start"),n,be("end"),ye&&(0,G.jsx)(Ce,{"data-type":"inside",ref:ge,onFocus:e=>{if(d)he(ae()[0]);else if(null!=ee&&ee.preserveTabOrder&&ee.portalNode)if(v&&(re.current=!0),X(e,ee.portalNode)){const e=$(w);null==e||e.focus()}else{var t;null==(t=ee.afterOutsideRef.current)||t.focus()}}})]})}function Fe(e){return(0,u.sb)(e.target)&&"BUTTON"===e.target.tagName}function We(e){return T(e)}function _e(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:i,elements:{domReference:l}}=e,{enabled:c=!0,event:s="click",toggle:a=!0,ignoreMouse:d=!1,keyboardHandlers:f=!0,stickIfOpen:v=!0}=t,p=r.useRef(),m=r.useRef(!1),g=r.useMemo(()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==s&&(F(t,!0)&&d||(!n||!a||i.current.openEvent&&v&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),o(!0,e.nativeEvent,"click")):o(!1,e.nativeEvent,"click")))},onClick(e){const t=p.current;"mousedown"===s&&p.current?p.current=void 0:F(t,!0)&&d||(!n||!a||i.current.openEvent&&v&&"click"!==i.current.openEvent.type?o(!0,e.nativeEvent,"click"):o(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!f||Fe(e)||(" "!==e.key||We(l)||(e.preventDefault(),m.current=!0),function(e){return(0,u.sb)(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&o(!n||!a,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!f||Fe(e)||We(l)||" "===e.key&&m.current&&(m.current=!1,o(!n||!a,e.nativeEvent,"click"))}}),[i,l,s,d,f,o,n,v,a]);return r.useMemo(()=>c?{reference:g}:{},[c,g])}const Be={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Ke={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ue=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function He(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,elements:i,dataRef:l}=e,{enabled:c=!0,escapeKey:s=!0,outsidePress:a=!0,outsidePressEvent:d="pointerdown",referencePress:f=!1,referencePressEvent:v="pointerdown",ancestorScroll:p=!1,bubbles:m,capture:g}=t,h=de(),b=K("function"==typeof a?a:()=>!1),y="function"==typeof a?b:a,w=r.useRef(!1),{escapeKey:E,outsidePress:R}=Ue(m),{escapeKey:x,outsidePress:k}=Ue(g),S=r.useRef(!1),C=K(e=>{var t;if(!n||!c||!s||"Escape"!==e.key)return;if(S.current)return;const r=null==(t=l.current.floatingContext)?void 0:t.nodeId,u=h?D(h.nodesRef.current,r):[];if(!E&&(e.stopPropagation(),u.length>0)){let e=!0;if(u.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}o(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),A=K(e=>{var t;const n=()=>{var t;C(e),null==(t=P(e))||t.removeEventListener("keydown",n)};null==(t=P(e))||t.addEventListener("keydown",n)}),T=K(e=>{var t;const n=l.current.insideReactTree;l.current.insideReactTree=!1;const r=w.current;if(w.current=!1,"click"===d&&r)return;if(n)return;if("function"==typeof y&&!y(e))return;const c=P(e),s="["+me("inert")+"]",a=N(i.floating).querySelectorAll(s);let f=(0,u.vq)(c)?c:null;for(;f&&!(0,u.eu)(f);){const e=(0,u.$4)(f);if((0,u.eu)(e)||!(0,u.vq)(e))break;f=e}if(a.length&&(0,u.vq)(c)&&!c.matches("html,body")&&!M(c,i.floating)&&Array.from(a).every(e=>!M(f,e)))return;if((0,u.sb)(c)&&q){const t=(0,u.eu)(c),n=(0,u.L9)(c),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),l=o&&c.clientWidth>0&&c.scrollWidth>c.clientWidth,s=i&&c.clientHeight>0&&c.scrollHeight>c.clientHeight,a="rtl"===n.direction,d=s&&(a?e.offsetX<=c.offsetWidth-c.clientWidth:e.offsetX>c.clientWidth),f=l&&e.offsetY>c.clientHeight;if(d||f)return}const v=null==(t=l.current.floatingContext)?void 0:t.nodeId,p=h&&D(h.nodesRef.current,v).some(t=>{var n;return I(e,null==(n=t.context)?void 0:n.elements.floating)});if(I(e,i.floating)||I(e,i.domReference)||p)return;const m=h?D(h.nodesRef.current,v):[];if(m.length>0){let e=!0;if(m.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}o(!1,e,"outside-press")}),L=K(e=>{var t;const n=()=>{var t;T(e),null==(t=P(e))||t.removeEventListener(d,n)};null==(t=P(e))||t.addEventListener(d,n)});r.useEffect(()=>{if(!n||!c)return;l.current.__escapeKeyBubbles=E,l.current.__outsidePressBubbles=R;let e=-1;function t(e){o(!1,e,"ancestor-scroll")}function r(){window.clearTimeout(e),S.current=!0}function a(){e=window.setTimeout(()=>{S.current=!1},(0,u.Tc)()?5:0)}const f=N(i.floating);
1s&&(f.addEventListener("keydown",x?A:C,x),f.addEventListener("compositionstart",r),f.addEventListener("compositionend",a)),y&&f.addEventListener(d,k?L:T,k);let v=[];return p&&((0,u.vq)(i.domReference)&&(v=(0,u.v9)(i.domReference)),(0,u.vq)(i.floating)&&(v=v.concat((0,u.v9)(i.floating))),!(0,u.vq)(i.reference)&&i.reference&&i.reference.contextElement&&(v=v.concat((0,u.v9)(i.reference.contextElement)))),v=v.filter(e=>{var t;return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)}),v.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{s&&(f.removeEventListener("keydown",x?A:C,x),f.removeEventListener("compositionstart",r),f.removeEventListener("compositionend",a)),y&&f.removeEventListener(d,k?L:T,k),v.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[l,i,s,y,d,n,o,p,c,E,R,C,x,A,T,k,L]),r.useEffect(()=>{l.current.insideReactTree=!1},[l,y,d]);const O=r.useMemo(()=>({onKeyDown:C,...f&&{[Be[v]]:e=>{o(!1,e.nativeEvent,"reference-press")},..."click"!==v&&{onClick(e){o(!1,e.nativeEvent,"reference-press")}}}}),[C,o,f,v]),q=r.useMemo(()=>({onKeyDown:C,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[Ke[d]]:()=>{l.current.insideReactTree=!0}}),[C,d,l]);return r.useMemo(()=>c?{reference:O,floating:q}:{},[c,O,q])}function Ve(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:o}=e,u=ie(),i=r.useRef({}),[l]=r.useState(()=>le()),c=null!=ae(),[s,a]=r.useState(o.reference),d=K((e,t,r)=>{i.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)}),f=r.useMemo(()=>({setPositionReference:a}),[]),v=r.useMemo(()=>({reference:s||o.reference||null,floating:o.floating||null,domReference:o.reference}),[s,o.reference,o.floating]);return r.useMemo(()=>({dataRef:i,open:t,onOpenChange:d,elements:v,events:l,floatingId:u,refs:f}),[t,d,v,l,u,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,i=o.elements,[l,c]=r.useState(null),[s,a]=r.useState(null),d=(null==i?void 0:i.domReference)||l,f=r.useRef(null),v=de();W(()=>{d&&(f.current=d)},[d]);const p=(0,Q.we)({...e,elements:{...i,...s&&{reference:s}}}),m=r.useCallback(e=>{const t=(0,u.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;a(t),p.refs.setReference(t)},[p.refs]),g=r.useCallback(e=>{((0,u.vq)(e)||null===e)&&(f.current=e,c(e)),((0,u.vq)(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!(0,u.vq)(e))&&p.refs.setReference(e)},[p.refs]),h=r.useMemo(()=>({...p.refs,setReference:g,setPositionReference:m,domReference:f}),[p.refs,g,m]),b=r.useMemo(()=>({...p.elements,domReference:d}),[p.elements,d]),y=r.useMemo(()=>({...p,...o,refs:h,elements:b,nodeId:t}),[p,h,b,t,o]);return W(()=>{o.dataRef.current.floatingContext=y;const e=null==v?void 0:v.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),r.useMemo(()=>({...p,context:y,refs:h,elements:b}),[p,h,b,y])}function $e(e,t,n){const r=new Map,o="item"===n;let u=e;if(o&&e){const{[ee]:t,[te]:n,...r}=e;u=r}return{..."floating"===n&&{tabIndex:-1,[Z]:""},...u,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,u]=t;var i;o&&[ee,te].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof u&&(null==(i=r.get(n))||i.push(u),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),u=0;u<t;u++)o[u]=arguments[u];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[n]=u)}),e):e,{})}}function Xe(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),o=e.map(e=>null==e?void 0:e.item),u=r.useCallback(t=>$e(t,e,"reference"),t),i=r.useCallback(t=>$e(t,e,"floating"),n),l=r.useCallback(t=>$e(t,e,"item"),o);return r.useMemo(()=>({getReferenceProps:u,getFloatingProps:i,getItemProps:l}),[u,i,l])}const Ye=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function ze(e,t){var n,o;void 0===t&&(t={});const{open:u,elements:i,floatingId:l}=e,{enabled:c=!0,role:s="dialog"}=t,a=ie(),d=(null==(n=i.domReference)?void 0:n.id)||a,f=r.useMemo(()=>{var e;return(null==(e=O(i.floating))?void 0:e.id)||l},[i.floating,l]),v=null!=(o=Ye.get(s))?o:s,p=null!=ae(),m=r.useMemo(()=>"tooltip"===v||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:u?f:void 0}:{"aria-expanded":u?"true":"false","aria-haspopup":"alertdialog"===v?"dialog":v,"aria-controls":u?f:void 0,..."listbox"===v&&{role:"combobox"},..."menu"===v&&{id:d},..."menu"===v&&p&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[v,f,p,u,d,s]),g=r.useMemo(()=>{const e={id:f,...v&&{role:v}};return"tooltip"===v||"label"===s?e:{...e,..."menu"===v&&{"aria-labelledby":d}}},[v,f,d,s]),h=r.useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:f+"-fui-option"}};switch(s){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[f,s]);return r.useMemo(()=>c?{reference:m,floating:g,item:h}:{},[c,m,g,h])}},36185(e,t,n){n.d(t,{BN:()=>v,Ej:()=>m,UU:()=>p,cY:()=>f,we:()=>d});var r=n(80361),o=n(53241),u=n(61424),i="undefined"!=typeof document?o.useLayoutEffect:function(){};function l(e,t){if(e===t)return!0;
1if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!l(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||l(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function c(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function s(e,t){const n=c(e);return Math.round(t*n)/n}function a(e){const t=o.useRef(e);return i(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:v,floating:p}={},transform:m=!0,whileElementsMounted:g,open:h}=e,[b,y]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,E]=o.useState(d);l(w,d)||E(d);const[R,x]=o.useState(null),[k,S]=o.useState(null),C=o.useCallback(e=>{e!==I.current&&(I.current=e,x(e))},[]),A=o.useCallback(e=>{e!==N.current&&(N.current=e,S(e))},[]),M=v||R,P=p||k,I=o.useRef(null),N=o.useRef(null),T=o.useRef(b),L=null!=g,O=a(g),D=a(f),q=a(h),j=o.useCallback(()=>{if(!I.current||!N.current)return;const e={placement:t,strategy:n,middleware:w};D.current&&(e.platform=D.current),(0,r.rD)(I.current,N.current,e).then(e=>{const t={...e,isPositioned:!1!==q.current};F.current&&!l(T.current,t)&&(T.current=t,u.flushSync(()=>{y(t)}))})},[w,t,n,D,q]);i(()=>{!1===h&&T.current.isPositioned&&(T.current.isPositioned=!1,y(e=>({...e,isPositioned:!1})))},[h]);const F=o.useRef(!1);i(()=>(F.current=!0,()=>{F.current=!1}),[]),i(()=>{if(M&&(I.current=M),P&&(N.current=P),M&&P){if(O.current)return O.current(M,P,j);j()}},[M,P,j,O,L]);const W=o.useMemo(()=>({reference:I,floating:N,setReference:C,setFloating:A}),[C,A]),_=o.useMemo(()=>({reference:M,floating:P}),[M,P]),B=o.useMemo(()=>{const e={position:n,left:0,top:0};if(!_.floating)return e;const t=s(_.floating,b.x),r=s(_.floating,b.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...c(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,m,_.floating,b.x,b.y]);return o.useMemo(()=>({...b,update:j,refs:W,elements:_,floatingStyles:B}),[b,j,W,_,B])}const f=(e,t)=>({...(0,r.cY)(e),options:[e,t]}),v=(e,t)=>
1({...(0,r.BN)(e),options:[e,t]}),p=(e,t)=>({...(0,r.UU)(e),options:[e,t]}),m=(e,t)=>({...(0,r.Ej)(e),options:[e,t]})}}]); 2//# sourceMappingURL=8192-484592.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.