1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[84721],{73406(e,t,n){function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},83480(e,t,n){n.d(t,{we:()=>p});var r=n(93708),i=n(43249),o=n(26832),u=n(36977),a=n(55344),s="undefined"!=typeof document?u.useLayoutEffect:function(){};function l(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;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(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!==r--;){const n=i[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 d(e,t){const n=c(e);return Math.round(t*n)/n}function f(e){const t=u.useRef(e);return s(()=>{t.current=e}),t}function p(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:p=[],platform:h,elements:{reference:m,floating:g}={},transform:v=!0,whileElementsMounted:b,open:y}=e,[I,k]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,w]=u.useState(p);l(x,p)||w(p);const[E,R]=u.useState(null),[C,_]=u.useState(null),A=u.useCallback(e=>{e!==S.current&&(S.current=e,R(e))},[]),O=u.useCallback(e=>{e!==D.current&&(D.current=e,_(e))},[]),T=m||E,M=g||C,S=u.useRef(null),D=u.useRef(null),V=u.useRef(I),P=null!=b,L=f(b),K=f(h),N=f(y),F=u.useCallback(()=>{if(!S.current||!D.current)return;const e={placement:t,strategy:n,middleware:x};K.current&&(e.platform=K.current),(0,o.rD)(S.current,D.current,e).then(e=>{const t=(0,i._)((0,r._)({},e),{isPositioned:!1!==N.current});B.current&&!l(V.current,t)&&(V.current=t,a.flushSync(()=>{k(t)}))})},[x,t,n,K,N]);s(()=>{!1===y&&V.current.isPositioned&&(V.current.isPositioned=!1,k(e=>(0,i._)((0,r._)({},e),{isPositioned:!1})))},[y]);const B=u.useRef(!1);s(()=>(B.current=!0,()=>{B.current=!1}),[]),s(()=>{if(T&&(S.current=T),M&&(D.current=M),T&&M){if(L.current)return L.current(T,M,F);F()}},[T,M,F,L,P]);const q=u.useMemo(()=>({reference:S,floating:D,setReference:A,setFloating:O}),[A,O]),H=u.useMemo(()=>({reference:T,floating:M}),[T,M]),U=u.useMemo(()=>{const e={position:n,left:0,top:0};if(!H.floating)return e;const t=d(H.floating,I.x),o=d(H.floating,I.y);return v?(0,r._)((0,i._)((0,r._)({},e),{transform:"translate("+t+"px, "+o+"px)"}),c(H.floating)>=1.5&&{willChange:"transform"}):{position:n,left:t,top:o}},[n,v,H.floating,I.x,I.y]);return u.useMemo(()=>(0,i._)((0,r._)({},I),{update:F,refs:q,elements:H,floatingStyles:U}),[I,F,q,H,U])}n.d(t,["BN",0,(e,t)=>{const n=(0,o.BN)(e);return{name:n.name,fn:n.fn,options:[e,t]}},"UE",0,(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?(0,o.UE)({element:n.current,padding:r}).fn(t):{}:n?(0,o.UE)({element:n,padding:r}).fn(t):{};var i}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}},"UU",0,(e,t)=>{const n=(0,o.UU)(e);return{name:n.name,fn:n.fn,options:[e,t]}},"cY",0,(e,t)=>{const n=(0,o.cY)(e);return{name:n.name,fn:n.fn,options:[e,t]}}])}
vendor: 4,206 bytes, line 1
1,87420(e,t,n){n.d(t,{s3:()=>Te,kp:()=>De,s9:()=>Ke,we:()=>Ne,Bi:()=>oe,bv:()=>Be,It:()=>He});var r=n(93708),i=n(43249),o=n(43918),u=n(70315),a=n(36977),s=n.t(a,2),l=n(24548),c=["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(","),d="undefined"==typeof Element,f=d?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,p=!d&&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},h=function e(t,n){var r;void 0===n&&(n=!0);var i=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},m=function(e,t,n){if(h(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(c));return t&&f.call(e,c)&&r.unshift(e),r.filter(n)},g=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var u=o.shift();if(!h(u,!1))if("SLOT"===u.tagName){var a=u.assignedElements(),s=e(a.length?a:u.children,!0,r);r.flatten?i.push.apply(i,s):i.push({scopeParent:u,candidates:s})}else{f.call(u,c)&&r.filter(u)&&(n||!t.includes(u))&&i.push(u);var l=u.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(u),d=!h(l,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(u));if(l&&d){var p=e(!0===l?u.children:l.children,!0,r);r.flatten?i.push.apply(i,p):i.push({scopeParent:u,candidates:p})}else o.unshift.apply(o,u.children)}}return i},v=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},b=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},y=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},I=function(e){return"INPUT"===e.tagName},k=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},x=function(e,t){return!(t.disabled||h(t)||function(e){return I(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=f.call(e,"details>summary:first-of-type")?e.parentElement:e;if(f.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return k(e)}else{if("function"==typeof r){for(var o=e;e;){var u=e.parentElement,a=p(e);if(u&&!u.shadowRoot&&!0===r(u))return k(e);e=e.assignedSlot?e.assignedSlot:u||a===e.ownerDocument?u:a.host}e=o}if(function(e){var t,n,r,i,o=e&&p(e),u=null===(t=o)||void 0===t?void 0:t.host,a=!1;if(o&&o!==e)for(a=!!(null!==(n=u)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(u)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!a&&u;){var s,l,c;a=!(null===(l=u=null===(s=o=p(u))||void 0===s?void 0:s.host)||void 0===l||null===(c=l.ownerDocument)||void 0===c||!c.contains(u))}return a}(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!!f.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},w=function(e,t){return!(function(e){return function(e){return I(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||p(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)}
1catch(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=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!i||i===e}(e)}(t)||b(t)<0||!x(e,t))},E=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},R=function e(t){var n=[],r=[];return t.forEach(function(t,i){var o=!!t.scopeParent,u=o?t.scopeParent:t,a=function(e,t){var n=b(e);return n<0&&t&&!v(e)?0:n}(u,o),s=o?e(t.candidates):u;0===a?o?n.push.apply(n,s):n.push(u):r.push({documentOrder:i,tabIndex:a,item:t,isScope:o,content:s})}),r.sort(y).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},C=function(e,t){var n;return n=(t=t||{}).getShadowRoot?g([e],t.includeContainer,{filter:w.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:E}):m(e,t.includeContainer,w.bind(null,t)),R(n)},_=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==f.call(e,c)&&w(t,e)};function A(){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 O(){const e=/android/i;return e.test(function(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}())||e.test(A())}const T="data-floating-ui-focusable";function M(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 S(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,l.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function D(e){return"composedPath"in e?e.composedPath()[0]:e.target}function V(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 P(e){return(null==e?void 0:e.ownerDocument)||document}function L(e){return(0,l.sb)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function K(e){return!!e&&"combobox"===e.getAttribute("role")&&L(e)}function N(e){return e?e.hasAttribute(T)?e:e.querySelector("["+T+"]")||e:null}function F(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,...F(e,t.id,n)])}function B(e,t){var n;let r=[],i=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;i;){const t=e.find(e=>e.id===i);i=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}function q(e){e.preventDefault(),e.stopPropagation()}function H(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var U="undefined"!=typeof document?a.useLayoutEffect:function(){};function j(e){const t=a.useRef(e);return U(()=>{t.current=e}),t}const G=(0,r._)({},s).useInsertionEffect||(e=>e());function W(e){const t=a.useRef(()=>{});return G(()=>{t.current=e}),a.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 Y=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function z(e,t){const n=C(e,Y()),r=n.length;if(0===r)return;const i=M(P(e)),o=n.indexOf(i);return n[-1===o?1===t?0:r-1:o+t]}function $(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!S(n,r)}var X=n(19061),Z=(n(55344),n(83480));const J="data-floating-ui-focusable",Q="active",ee="selected",te=(0,r._)({},s);let ne=!1,re=0;const ie=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+re++,oe=te.useId||function(){const[e,t]=a.useState(()=>ne?ie():void 0);return U(()=>{null==e&&t(ie())},[]),a.useEffect(()=>{ne=!0},[]),e};const ue=a.createContext(null),ae=a.createContext(null),se=()=>{var e;return(null==(e=a.useContext(ue))?void 0:e.id)||null},le=()=>a.useContext(ae);function ce(e){return"data-floating-ui-"+e}let de=0;function fe(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(de);const o=()=>null==e?void 0:e.focus({preventScroll:n});i?o():de=requestAnimationFrame(o)}const pe={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function he(e){return"inert"===e?pe.inert:"aria-hidden"===e?pe["aria-hidden"]:pe.none}let me=new WeakSet,ge={},ve=0;function be(e){return e?(0,l.Ng)(e)?e.host:be(e.parentNode):null}const ye=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=be(t);return e.contains(n)?n:null}).filter(e=>null!=e);function Ie(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=(i=e[0],(null==i?void 0:i.ownerDocument)||document).body;var i;return function(e,t,n,r){const i="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,u=ye(t,e),a=new Set,s=new Set(u),c=[];ge[i]||(ge[i]=new WeakMap);const d=ge[i];return u.forEach(function e(t){t&&!a.has(t)&&(a.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!s.has(t)&&[].forEach.call(t.children,t=>{if("script"!==(0,l.mq)(t))if(a.has(t))e(t);else{const e=o?t.getAttribute(o):null,n=null!==e&&"false"!==e,r=he(o),u=(r.get(t)||0)+1,a=(d.get(t)||0)+1;r.set(t,u),d.set(t,a),c.push(t),1===u&&n&&me.add(t),1===a&&t.setAttribute(i,""),!n&&o&&t.setAttribute(o,"inert"===o?"":"true")}})}(t),a.clear(),ve++,()=>
1{c.forEach(e=>{const t=he(o),n=(t.get(e)||0)-1,r=(d.get(e)||0)-1;t.set(e,n),d.set(e,r),n||(!me.has(e)&&o&&e.removeAttribute(o),me.delete(e)),r||e.removeAttribute(i)}),ve--,ve||(pe.inert=new WeakMap,pe["aria-hidden"]=new WeakMap,pe.none=new WeakMap,me=new WeakSet,ge={})}}(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const ke={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},xe=a.forwardRef(function(e,t){const[n,i]=a.useState();U(()=>{/apple/i.test(navigator.vendor)&&i("button")},[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[ce("focus-guard")]:"",style:ke};return(0,X.jsx)("span",(0,r._)({},e,o))}),we=a.createContext(null);function Ee(e){return a.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let Re=[];function Ce(){Re=Re.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function _e(){Ce();const e=Re[Re.length-1];return null==e?void 0:e.deref()}function Ae(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const r=Y(),i=function(e,t){return(t=t||{}).getShadowRoot?g([e],t.includeContainer,{filter:x.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):m(e,t.includeContainer,x.bind(null,t))}(e,r),o=i.filter(e=>{const t=e.getAttribute("data-tabindex")||"";return _(e,r)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),u=e.getAttribute("tabindex");t.current.includes("floating")||0===o.length?"0"!==u&&e.setAttribute("tabindex","0"):("-1"!==u||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const Oe=a.forwardRef(function(e,t){return(0,X.jsx)("button",(0,i._)((0,r._)({},e),{type:"button",ref:t,tabIndex:-1,style:ke}))});function Te(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:o=!0,initialFocus:u=0,returnFocus:s=!0,restoreFocus:c=!1,modal:d=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:p=!0,outsideElementsInert:h=!1,getInsideElements:m=()=>[]}=e,{open:g,onOpenChange:v,events:b,dataRef:y,elements:{domReference:I,floating:k}}=t,x=W(()=>{var e;return null==(e=y.current.floatingContext)?void 0:e.nodeId}),w=W(m),E="number"==typeof u&&u<0,R=K(I)&&E,T="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,V=!T||o,L=!V||T&&h,H=j(i),G=j(u),Z=j(s),J=le(),Q=a.useContext(we),ee=a.useRef(null),te=a.useRef(null),ne=a.useRef(!1),re=a.useRef(!1),ie=a.useRef(-1),oe=a.useRef(-1),ue=null!=Q,ae=N(k),se=W(function(e){return void 0===e&&(e=ae),e?C(e,Y()):[]}),de=W(e=>{const t=se(e);return H.current.map(e=>I&&"reference"===e?I:ae&&"floating"===e?ae:t).filter(Boolean).flat()});a.useEffect(()=>{if(r)return;if(!d)return;function e(e){if("Tab"===e.key){S(ae,M(P(ae)))&&0===se().length&&!R&&q(e);const t=de(),n=D(e);"reference"===H.current[0]&&n===I&&(q(e),e.shiftKey?fe(t[t.length-1]):fe(t[1])),"floating"===H.current[1]&&n===ae&&e.shiftKey&&(q(e),fe(t[0]))}}const t=P(ae);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,I,ae,d,H,R,se,de]),a.useEffect(()=>{if(!r&&k)return k.addEventListener("focusin",e),()=>{k.removeEventListener("focusin",e)};function e(e){const t=D(e),n=se().indexOf(t);-1!==n&&(ie.current=n)}},[r,k,se]),a.useEffect(()=>{if(r)return;if(!p)return;function e(){re.current=!0,setTimeout(()=>{re.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,r=D(e);queueMicrotask(()=>{const i=x(),o=!(S(I,t)||S(k,t)||S(t,k)||S(null==Q?void 0:Q.portalNode,t)||null!=t&&t.hasAttribute(ce("focus-guard"))||J&&(F(J.nodesRef.current,i).find(e=>{var n,r;return S(null==(n=e.context)?void 0:n.elements.floating,t)||S(null==(r=e.context)?void 0:r.elements.domReference,t)})||B(J.nodesRef.current,i).find(e=>{var n,r,i;return[null==(n=e.context)?void 0:n.elements.floating,N(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(i=e.context)?void 0:i.elements.domReference)===t})));if(n===I&&ae&&Ae(ae,H),c&&n!==I&&(null==r||!r.isConnected)&&M(P(ae))===P(ae).body){(0,l.sb)(ae)&&ae.focus();const e=ie.current,t=se(),n=t[e]||t[t.length-1]||ae;(0,l.sb)(n)&&n.focus()}y.current.insideReactTree?y.current.insideReactTree=!1:!R&&d||!t||!o||re.current||t===_e()||(ne.current=!0,v(!1,e,"focus-out"))})}const n=Boolean(!J&&Q);function i(){var e;-1!==(e=oe).current&&(clearTimeout(e.current),e.current=-1),y.current.insideReactTree=!0,oe.current=window.setTimeout(()=>{y.current.insideReactTree=!1})}return k&&(0,l.sb)(I)?(I.addEventListener("focusout",t),I.addEventListener("pointerdown",e),k.addEventListener("focusout",t),n&&k.addEventListener("focusout",i,!0),()=>{I.removeEventListener("focusout",t),I.removeEventListener("pointerdown",e),k.removeEventListener("focusout",t),n&&k.removeEventListener("focusout",i,!0)}):void 0},[r,I,k,ae,d,J,Q,v,p,c,se,R,x,H,y]);const pe=a.useRef(null),he=a.useRef(null),me=Ee([pe,null==Q?void 0:Q.beforeInsideRef]),ge=Ee([he,null==Q?void 0:Q.afterInsideRef]);function ve(e){return!r&&f&&d?(0,X.jsx)(Oe,{ref:"start"===e?ee:te,onClick:e=>v(!1,e.nativeEvent),children:"string"==typeof f?f:"Dismiss"}):null}a.useEffect(()=>{var e,t;if(r)return;if(!k)return;const n=Array.from((null==Q||null==(e=Q.portalNode)?void 0:e.querySelectorAll("["+ce("portal")+"]"))||[]),i=null==(t=(J?B(J.nodesRef.current,x()):[]).find(e=>{var t;return K((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,o=[k,i,...n,...w(),ee.current,te.current,pe.current,he.current,null==Q?void 0:Q.beforeOutsideRef.current,null==Q?void 0:Q.afterOutsideRef.current,H.current.includes("reference")||R?I:null].filter(e=>null!=e),u=d||R?Ie(o,!L,L):Ie(o);return()=>{u()}},[r,I,k,d,H,Q,R,V,L,J,x,w]),U(()=>
1{if(r||!(0,l.sb)(ae))return;const e=M(P(ae));queueMicrotask(()=>{const t=de(ae),n=G.current,r=("number"==typeof n?t[n]:n.current)||ae,i=S(ae,e);E||i||!g||fe(r,{preventScroll:r===ae})})},[r,g,ae,E,de,G]),U(()=>{if(r||!ae)return;const e=P(ae);var t;function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(ne.current=!0),"outside-press"===t)if(r)ne.current=!1;else if(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(O()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(n)||function(e){return!A().includes("jsdom/")&&(!O()&&0===e.width&&0===e.height||O()&&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))ne.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),ne.current=!e}}t=M(e),Ce(),t&&"body"!==(0,l.mq)(t)&&(Re.push(new WeakRef(t)),Re.length>20&&(Re=Re.slice(-20))),b.on("openchange",n);const i=e.createElement("span");return i.setAttribute("tabindex","-1"),i.setAttribute("aria-hidden","true"),Object.assign(i.style,ke),ue&&I&&I.insertAdjacentElement("afterend",i),()=>{b.off("openchange",n);const t=M(e),r=S(k,t)||J&&F(J.nodesRef.current,x(),!1).some(e=>{var n;return S(null==(n=e.context)?void 0:n.elements.floating,t)}),o=function(){if("boolean"==typeof Z.current){const e=I||_e();return e&&e.isConnected?e:i}return Z.current.current||i}();queueMicrotask(()=>{const n=function(e){const t=Y();return _(e,t)?e:C(e,t)[0]||e}(o);Z.current&&!ne.current&&(0,l.sb)(n)&&(n===t||t===e.body||r)&&n.focus({preventScroll:!0}),i.remove()})}},[r,k,ae,Z,y,b,J,ue,I,x]),a.useEffect(()=>(queueMicrotask(()=>{ne.current=!1}),()=>{queueMicrotask(Ce)}),[r]),U(()=>{if(!r&&Q)return Q.setFocusManagerState({modal:d,closeOnFocusOut:p,open:g,onOpenChange:v,domReference:I}),()=>{Q.setFocusManagerState(null)}},[r,Q,d,g,v,p,I]),U(()=>{r||ae&&Ae(ae,H)},[r,ae,H]);const be=!r&&V&&(!d||!R)&&(ue||d);return(0,X.jsxs)(X.Fragment,{children:[be&&(0,X.jsx)(xe,{"data-type":"inside",ref:me,onFocus:e=>{if(d){const e=de();fe("reference"===i[0]?e[0]:e[e.length-1])}else if(null!=Q&&Q.preserveTabOrder&&Q.portalNode)if(ne.current=!1,$(e,Q.portalNode)){const e=z(P(n=I).body,1)||n;null==e||e.focus()}else{var t;null==(t=Q.beforeOutsideRef.current)||t.focus()}var n}}),!R&&ve("start"),n,ve("end"),be&&(0,X.jsx)(xe,{"data-type":"inside",ref:ge,onFocus:e=>{if(d)fe(de()[0]);else if(null!=Q&&Q.preserveTabOrder&&Q.portalNode)if(p&&(ne.current=!0),$(e,Q.portalNode)){const e=z(P(n=I).body,-1)||n;null==e||e.focus()}else{var t;null==(t=Q.afterOutsideRef.current)||t.focus()}var n}})]})}function Me(e){return(0,l.sb)(e.target)&&"BUTTON"===e.target.tagName}function Se(e){return L(e)}function De(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:u=!0,event:s="click",toggle:c=!0,ignoreMouse:d=!1,keyboardHandlers:f=!0,stickIfOpen:p=!0}=t,h=a.useRef(),m=a.useRef(!1),g=a.useMemo(()=>({onPointerDown(e){h.current=e.pointerType},onMouseDown(e){const t=h.current;0===e.button&&"click"!==s&&(H(t,!0)&&d||(!n||!c||i.current.openEvent&&p&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=h.current;"mousedown"===s&&h.current?h.current=void 0:H(t,!0)&&d||(!n||!c||i.current.openEvent&&p&&"click"!==i.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){h.current=void 0,e.defaultPrevented||!f||Me(e)||(" "!==e.key||Se(o)||(e.preventDefault(),m.current=!0),function(e){return(0,l.sb)(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!f||Me(e)||Se(o)||" "===e.key&&m.current&&(m.current=!1,r(!n||!c,e.nativeEvent,"click"))}}),[i,o,s,d,f,r,n,p,c]);return a.useMemo(()=>u?{reference:g}:{},[u,g])}const Ve={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Pe={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Le=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 Ke(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,elements:o,dataRef:u}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:d=!0,outsidePressEvent:f="pointerdown",referencePress:p=!1,referencePressEvent:h="pointerdown",ancestorScroll:m=!1,bubbles:g,capture:v}=t,b=le(),y=W("function"==typeof d?d:()=>!1),I="function"==typeof d?y:d,k=a.useRef(!1),{escapeKey:x,outsidePress:w}=Le(g),{escapeKey:E,outsidePress:R}=Le(v),C=a.useRef(!1),_=W(e=>{var t;if(!n||!s||!c||"Escape"!==e.key)return;if(C.current)return;const r=null==(t=u.current.floatingContext)?void 0:t.nodeId,o=b?F(b.nodesRef.current,r):[];if(!x&&(e.stopPropagation(),o.length>0)){let e=!0;
1if(o.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}i(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),A=W(e=>{var t;const n=()=>{var t;_(e),null==(t=D(e))||t.removeEventListener("keydown",n)};null==(t=D(e))||t.addEventListener("keydown",n)}),O=W(e=>{var t;const n=u.current.insideReactTree;u.current.insideReactTree=!1;const r=k.current;if(k.current=!1,"click"===f&&r)return;if(n)return;if("function"==typeof I&&!I(e))return;const a=D(e),s="["+ce("inert")+"]",c=P(o.floating).querySelectorAll(s);let d=(0,l.vq)(a)?a:null;for(;d&&!(0,l.eu)(d);){const e=(0,l.$4)(d);if((0,l.eu)(e)||!(0,l.vq)(e))break;d=e}if(c.length&&(0,l.vq)(a)&&!a.matches("html,body")&&!S(a,o.floating)&&Array.from(c).every(e=>!S(d,e)))return;if((0,l.sb)(a)&&L){const t=(0,l.eu)(a),n=(0,l.L9)(a),r=/auto|scroll/,i=t||r.test(n.overflowX),o=t||r.test(n.overflowY),u=i&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,s=o&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,c="rtl"===n.direction,d=s&&(c?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),f=u&&e.offsetY>a.clientHeight;if(d||f)return}const p=null==(t=u.current.floatingContext)?void 0:t.nodeId,h=b&&F(b.nodesRef.current,p).some(t=>{var n;return V(e,null==(n=t.context)?void 0:n.elements.floating)});if(V(e,o.floating)||V(e,o.domReference)||h)return;const m=b?F(b.nodesRef.current,p):[];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}i(!1,e,"outside-press")}),T=W(e=>{var t;const n=()=>{var t;O(e),null==(t=D(e))||t.removeEventListener(f,n)};null==(t=D(e))||t.addEventListener(f,n)});a.useEffect(()=>{if(!n||!s)return;u.current.__escapeKeyBubbles=x,u.current.__outsidePressBubbles=w;let e=-1;function t(e){i(!1,e,"ancestor-scroll")}function r(){window.clearTimeout(e),C.current=!0}function a(){e=window.setTimeout(()=>{C.current=!1},(0,l.Tc)()?5:0)}const d=P(o.floating);c&&(d.addEventListener("keydown",E?A:_,E),d.addEventListener("compositionstart",r),d.addEventListener("compositionend",a)),I&&d.addEventListener(f,R?T:O,R);let p=[];return m&&((0,l.vq)(o.domReference)&&(p=(0,l.v9)(o.domReference)),(0,l.vq)(o.floating)&&(p=p.concat((0,l.v9)(o.floating))),!(0,l.vq)(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat((0,l.v9)(o.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t)}),()=>{c&&(d.removeEventListener("keydown",E?A:_,E),d.removeEventListener("compositionstart",r),d.removeEventListener("compositionend",a)),I&&d.removeEventListener(f,R?T:O,R),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[u,o,c,I,f,n,i,m,s,x,w,_,E,A,O,R,T]),a.useEffect(()=>{u.current.insideReactTree=!1},[u,I,f]);const M=a.useMemo(()=>(0,r._)({onKeyDown:_},p&&(0,r._)({[Ve[h]]:e=>{i(!1,e.nativeEvent,"reference-press")}},"click"!==h&&{onClick(e){i(!1,e.nativeEvent,"reference-press")}})),[_,i,p,h]),L=a.useMemo(()=>{function e(e){0===e.button&&(k.current=!0)}return{onKeyDown:_,onMouseDown:e,onMouseUp:e,[Pe[f]]:()=>{u.current.insideReactTree=!0}}},[_,f,u]);return a.useMemo(()=>s?{reference:M,floating:L}:{},[s,M,L])}function Ne(e){var t,n;let u=void 0===e?{}:e,{elements:s}=u,c=(0,o._)(u,["elements"]);const{nodeId:d}=c,f=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=oe(),o=a.useRef({}),[u]=a.useState(()=>function(){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)}}}()),s=null!=se(),[l,c]=a.useState(r.reference),d=W((e,t,r)=>{o.current.openEvent=e?t:void 0,u.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)}),f=a.useMemo(()=>({setPositionReference:c}),[]),p=a.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return a.useMemo(()=>({dataRef:o,open:t,onOpenChange:d,elements:p,events:u,floatingId:i,refs:f}),[t,d,p,u,i,f])}((0,i._)((0,r._)({},c),{elements:{reference:null!=(t=null==s?void 0:s.reference)?t:null,floating:null!=(n=null==s?void 0:s.floating)?n:null}})),p=c.rootContext||f,h=p.elements,[m,g]=a.useState(null),[v,b]=a.useState(null),y=(null==h?void 0:h.domReference)||m,I=a.useRef(null),k=le();U(()=>{y&&(I.current=y)},[y]);const x=(0,Z.we)((0,i._)((0,r._)({},c),{elements:(0,r._)({},h,v&&{reference:v})})),w=a.useCallback(e=>{const t=(0,l.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;b(t),x.refs.setReference(t)},[x.refs]),E=a.useCallback(e=>{((0,l.vq)(e)||null===e)&&(I.current=e,g(e)),((0,l.vq)(x.refs.reference.current)||null===x.refs.reference.current||null!==e&&!(0,l.vq)(e))&&x.refs.setReference(e)},[x.refs]),R=a.useMemo(()=>(0,i._)((0,r._)({},x.refs),{setReference:E,setPositionReference:w,domReference:I}),[x.refs,E,w]),C=a.useMemo(()=>(0,i._)((0,r._)({},x.elements),{domReference:y}),[x.elements,y]),_=a.useMemo(()=>(0,i._)((0,r._)({},x,p),{refs:R,elements:C,nodeId:d}),[x,R,C,d,p]);return U(()=>{p.dataRef.current.floatingContext=_;const e=null==k?void 0:k.nodesRef.current.find(e=>e.id===d);e&&(e.context=_)}),a.useMemo(()=>(0,i._)((0,r._)({},x),{context:_,refs:R,elements:C}),[x,R,C,_])}function Fe(e,t,n){const i=new Map,a="item"===n;let s=e;if(a&&e){const{[Q]:t,[ee]:n}=e;s=(0,o._)(e,[Q,ee].map(u._))}return(0,r._)({},"floating"===n&&{tabIndex:-1,[J]:""},s,t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>
1t?(Object.entries(t).forEach(t=>{let[n,r]=t;var o;a&&[Q,ee].includes(n)||(0===n.indexOf("on")?(i.has(n)||i.set(n,[]),"function"==typeof r&&(null==(o=i.get(n))||o.push(r),e[n]=function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null==(e=i.get(n))?void 0:e.map(e=>e(...r)).find(e=>void 0!==e)})):e[n]=r)}),e):e,{}))}function Be(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),r=e.map(e=>null==e?void 0:e.item),i=a.useCallback(t=>Fe(t,e,"reference"),t),o=a.useCallback(t=>Fe(t,e,"floating"),n),u=a.useCallback(t=>Fe(t,e,"item"),r);return a.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:u}),[i,o,u])}const qe=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function He(e,t){var n,o;void 0===t&&(t={});const{open:u,elements:s,floatingId:l}=e,{enabled:c=!0,role:d="dialog"}=t,f=oe(),p=(null==(n=s.domReference)?void 0:n.id)||f,h=a.useMemo(()=>{var e;return(null==(e=N(s.floating))?void 0:e.id)||l},[s.floating,l]),m=null!=(o=qe.get(d))?o:d,g=null!=se(),v=a.useMemo(()=>"tooltip"===m||"label"===d?{["aria-"+("label"===d?"labelledby":"describedby")]:u?h:void 0}:(0,r._)({"aria-expanded":u?"true":"false","aria-haspopup":"alertdialog"===m?"dialog":m,"aria-controls":u?h:void 0},"listbox"===m&&{role:"combobox"},"menu"===m&&{id:p},"menu"===m&&g&&{role:"menuitem"},"select"===d&&{"aria-autocomplete":"none"},"combobox"===d&&{"aria-autocomplete":"list"}),[m,h,g,u,p,d]),b=a.useMemo(()=>{const e=(0,r._)({id:h},m&&{role:m});return"tooltip"===m||"label"===d?e:(0,r._)({},e,"menu"===m&&{"aria-labelledby":p})},[m,h,p,d]),y=a.useCallback(e=>{let{active:t,selected:n}=e;const o=(0,r._)({role:"option"},t&&{id:h+"-fui-option"});switch(d){case"select":case"combobox":return(0,i._)((0,r._)({},o),{"aria-selected":n})}return{}},[h,d]);return a.useMemo(()=>c?{reference:v,floating:b,item:y}:{},[c,v,b,y])}},52370(e,t,n){let r;n.d(t,{Bp:()=>X});var i=n(73406),o=n(67591),u=n(93747),a=n(36977),s=(n(2372),n(47320)),l=0;function c(){return String(l++)}var d="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function f(e){var t=a.useRef(e);return d(function(){t.current=e},[e]),t}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(function(t){"function"==typeof t?t(e):t&&(t.current=e)})}}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some(function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault})}}function m(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];r(),n=setTimeout(function(){n=null,e.apply(void 0,o)},t)}return i.cancel=r,i}var g=m(function(e){v(e).textContent=""},500);function v(e){var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function b(){}var y=b;function I(e,t){return t?Object.keys(e).reduce(function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e},(0,o.A)({},e)):e}function k(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(t){for(var u=e;u>=0;u--)if(!r(n[u],u))return u}else for(var a=e;a<o;a++)if(!r(n[a],a))return a;return i?k(t?o-1:0,t,n,r):-1}function x(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(0===o)return-1;var u=o-1;("number"!=typeof e||e<0||e>u)&&(e=t>0?-1:u+1);var a=e+t;a<0?a=i?u:0:a>u&&(a=i?0:u);var s=k(a,t<0,n,r,i);return-1===s?e>=o?-1:e:s}function w(e,t,n,r){return void 0===r&&(r=!0),!!n&&t.some(function(t){return t&&(E(t,e,n)||r&&E(t,
1n.document.activeElement,n))})}function E(e,t,n){return e===t||t instanceof n.Node&&e.contains(t)}function R(e,t,n,r,i){if(i[e]!==r[e]){var u,a=n["on"+(u=e).slice(0,1).toUpperCase()+u.slice(1)+"Change"];if("function"==typeof a){var s=t.type;a((0,o.A)({type:s},i))}}}function C(e,t,n,r){var i=a.useRef({}),u=a.useCallback(function(t,n){var r=t.state;r=I(r,n.props);var i=e(r,n),u=n.props.stateReducer(r,(0,o.A)({},n,{changes:i}));return{state:(0,o.A)({},r,u),lastAction:n}},[e]),s=a.useReducer(u,t,function(e){return{state:n(e),lastAction:void 0}}),l=s[0],c=l.state,d=l.lastAction,p=s[1],h=f(t),m=a.useCallback(function(e){return p((0,o.A)({},e,{props:h.current}))},[h]);return a.useEffect(function(){if(d){var e=I(i.current,d.props);!r(e,c)&&function(e,t,n,r){for(var i=e.type,u={},a=0,s=Object.keys(n);a<s.length;a++){var l=s[a];R(l,e,t,n,r),r[l]!==n[l]&&(u[l]=r[l])}"function"==typeof t.onStateChange&&Object.keys(u).length&&t.onStateChange((0,o.A)({type:i},u))}(d,d.props,e,c)}i.current=c},[c,d,r]),[c,m]}function _(){var e=a.useRef(!0);return a.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}var A={environment:u.shape({addEventListener:u.func.isRequired,removeEventListener:u.func.isRequired,document:u.shape({createElement:u.func.isRequired,getElementById:u.func.isRequired,activeElement:u.any.isRequired,body:u.any.isRequired}).isRequired,Node:u.func.isRequired}),itemToKey:u.func,stateReducer:u.func};function O(e,t){return void 0===e?t:e}function T(e,t,n,r){return void 0!==e?e:void 0!==t?t:void 0!==n?n:r}var M=m(function(e,t){!function(e,t){e&&t&&(v(t).textContent=e,g(t))}(e,t)},200);var S=(0,o.A)({},A,{getA11yStatusMessage:u.func,highlightedIndex:u.number,defaultHighlightedIndex:u.number,initialHighlightedIndex:u.number,isOpen:u.bool,defaultIsOpen:u.bool,initialIsOpen:u.bool,selectedItem:u.any,initialSelectedItem:u.any,defaultSelectedItem:u.any,id:u.string,labelId:u.string,menuId:u.string,getItemId:u.func,toggleButtonId:u.string,onSelectedItemChange:u.func,onHighlightedIndexChange:u.func,onStateChange:u.func,onIsOpenChange:u.func,scrollIntoView:u.func}),D={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},isItemDisabled:function(e){return!1},stateReducer:function(e,t){return t.changes},scrollIntoView:function(e,t){e&&(0,s.O)(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}
1).forEach(function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r})},environment:"undefined"==typeof window?void 0:window},V=!1,P=(0,o.A)({},r||(r=n.t(a,2))).useId,L="function"==typeof P?function(e){var t=e.id,n=e.labelId,r=e.menuId,i=e.getItemId,o=e.toggleButtonId,u=e.inputId,s="downshift-"+P();return t||(t=s),a.useMemo(function(){return{labelId:null!=n?n:t+"-label",menuId:null!=r?r:t+"-menu",getItemId:null!=i?i:function(e){return t+"-item-"+e},toggleButtonId:null!=o?o:t+"-toggle-button",inputId:null!=u?u:t+"-input"}},[i,t,u,n,r,o])}:function(e){var t=e.id,n=e.labelId,r=e.menuId,i=e.getItemId,o=e.toggleButtonId,u=e.inputId,s=a.useState(function(){return null!=t?t:"downshift-"+c()})[0];return a.useMemo(function(){return{labelId:null!=n?n:s+"-label",menuId:null!=r?r:s+"-menu",getItemId:null!=i?i:function(e){return s+"-item-"+e},toggleButtonId:null!=o?o:s+"-toggle-button",inputId:null!=u?u:s+"-input"}},[i,u,n,r,o,s])};function K(e,t,n){var r=O(n,-1);return e[r]&&t(e[r],r)?-1:r}function N(e,t,n,r,i,u){var a=e.length&&i>=0;return(0,o.A)({isOpen:!1,highlightedIndex:-1},a&&(0,o.A)({selectedItem:e[i],isOpen:O(n,V),highlightedIndex:O(r,-1)},u&&{inputValue:t(e[i])}))}function F(e,t,n,r,i,o,u,a){return 0===e.length?-1:void 0===t||u!==t||-1!==t&&(void 0===e[t]||r(e[t],t))?void 0===n||-1!==n&&(void 0===e[n]||r(e[n],n))?o?e.findIndex(function(e){return i(o)===i(e)}):a<0&&e[e.length-1]&&!r(e[e.length-1],e.length-1)?e.length-1:a>0&&e[0]&&!r(e[0],0)?0:-1:n:t}var B=b;function q(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function H(e){var t=function(e){var t=T(e.selectedItem,e.initialSelectedItem,e.defaultSelectedItem,null),n=T(e.isOpen,e.initialIsOpen,e.defaultIsOpen,V),r=function(e){var t=T(e.highlightedIndex,e.initialHighlightedIndex,e.defaultHighlightedIndex,-1);return t>-1&&e.items[t]&&e.isItemDisabled(e.items[t],t)?-1:t}(e),i=T(e.inputValue,e.initialInputValue,e.defaultInputValue,"");return{highlightedIndex:r<0&&t&&n?e.items.findIndex(function(n){return e.itemToKey(n)===e.itemToKey(t)}):r,isOpen:n,selectedItem:t,inputValue:i}}(e),n=t.selectedItem,r=t.inputValue;return""===r&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(r=e.itemToString(n)),(0,o.A)({},t,{inputValue:r})}(0,o.A)({},S,{items:u.array.isRequired,isItemDisabled:u.func});var U=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:22,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:19,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,InputBlur:9,InputChange:8,InputClick:10,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEnd:4,InputKeyDownEnter:7,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownPageDown:6,InputKeyDownPageUp:5,ItemClick:13,ItemMouseMove:12,MenuMouseLeave:11,ToggleButtonClick:14}),j=(0,o.A)({},S,{items:u.array.isRequired,isItemDisabled:u.func,inputValue:u.string,defaultInputValue:u.string,initialInputValue:u.string,inputId:u.string,onInputValueChange:u.func});function G(e,t){var n,r=t.type,i=t.props;switch(r){case 13:n={isOpen:O(i.defaultIsOpen,V),highlightedIndex:K(i.items,i.isItemDisabled,i.defaultHighlightedIndex),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case 0:n=e.isOpen?{highlightedIndex:x(e.highlightedIndex,1,i.items,i.isItemDisabled,!0)}:{highlightedIndex:t.altKey&&null==e.selectedItem?-1:F(i.items,i.initialHighlightedIndex,i.defaultHighlightedIndex,i.isItemDisabled,i.itemToKey,e.selectedItem,e.highlightedIndex,1),isOpen:i.items.length>=0};break;case 1:n=e.isOpen?t.altKey?N(i.items,i.itemToString,i.defaultIsOpen,i.defaultHighlightedIndex,e.highlightedIndex,!0):{highlightedIndex:x(e.highlightedIndex,-1,i.items,i.isItemDisabled,!0)}:{highlightedIndex:F(i.items,i.initialHighlightedIndex,i.defaultHighlightedIndex,i.isItemDisabled,i.itemToKey,e.selectedItem,e.highlightedIndex,-1),isOpen:i.items.length>=0};break;case 7:n=N(i.items,i.itemToString,i.defaultIsOpen,i.defaultHighlightedIndex,e.highlightedIndex,!0);break;case 2:n=(0,o.A)({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case 5:n={highlightedIndex:x(e.highlightedIndex,-10,i.items,i.isItemDisabled,!0)};break;case 6:n={highlightedIndex:x(e.highlightedIndex,10,i.items,i.isItemDisabled,!0)};break;case 3:n={highlightedIndex:k(0,!1,i.items,i.isItemDisabled)};break;case 4:n={highlightedIndex:k(i.items.length-1,!0,i.items,i.isItemDisabled)};break;case 9:n=(0,o.A)({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&i.items.length&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case 8:n={isOpen:!0,highlightedIndex:K(i.items,i.isItemDisabled,i.defaultHighlightedIndex),inputValue:t.inputValue};break;case 10:n={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:F(i.items,i.initialHighlightedIndex,i.defaultHighlightedIndex,i.isItemDisabled,i.itemToKey,e.selectedItem,e.highlightedIndex,0)};break;case 19:n={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case 22:n={inputValue:t.inputValue};break;default:return function(e,t,n,r){var i;switch(n.type){case r.ItemMouseMove:i={highlightedIndex:n.disabled?-1:n.index};break;case r.MenuMouseLeave:i={highlightedIndex:-1};break;case r.ToggleButtonClick:case r.FunctionToggleMenu:i={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:F(t.items,t.initialHighlightedIndex,t.defaultHighlightedIndex,t.isItemDisabled,t.itemToKey,e.selectedItem,e.highlightedIndex,0)};break;case r.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:F(t.items,t.initialHighlightedIndex,t.defaultHighlightedIndex,t.isItemDisabled,t.itemToKey,e.selectedItem,e.highlightedIndex,0)};break;case r.FunctionCloseMenu:i={isOpen:!1};break;case r.FunctionSetHighlightedIndex:var u=n.highlightedIndex;i={highlightedIndex:t.isItemDisabled(t.items[u],u)?-1:u};break;case r.FunctionSetInputValue:i={inputValue:n.inputValue};break;case r.FunctionReset:i={highlightedIndex:K(t.items,t.isItemDisabled,t.defaultHighlightedIndex),isOpen:O(t.defaultIsOpen,V),selectedItem:O(t.defaultSelectedItem,null),inputValue:O(t.defaultInputValue,"")};break;default:throw new Error("Reducer called without proper action type.")}return(0,o.A)({},e,i)}(e,i,t,U)}return(0,o.A)({},e,n)}var W=["onMouseLeave","refKey","ref","aria-label"],Y=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],z=["onClick","onPress","refKey","ref"],$=["aria-label","onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];function X(e){void 0===e&&(e={}),y(e,X,j);var t=(0,o.A)({},D,e),n=t.items,r=t.isItemDisabled,u=t.scrollIntoView,s=t.environment,l=t.getA11yStatus
1Message,c=function(e,t,n,r){var i=(0,a.useRef)(null),o=C(e,t,n,r),u=o[0],s=o[1],l=_();return(0,a.useEffect)(function(){void 0!==t.selectedItem&&(l||t.itemToKey(t.selectedItem)!==t.itemToKey(i.current)&&s({type:22,inputValue:t.itemToString(t.selectedItem)}),i.current=u.selectedItem===i.current?t.selectedItem:u.selectedItem)},[u.selectedItem,t.selectedItem]),[I(u,t),s]}(G,t,H,q),m=c[0],g=c[1],v=m.isOpen,k=m.highlightedIndex,x=m.selectedItem,E=m.inputValue,R=(0,a.useRef)(null),A=(0,a.useRef)({}),O=(0,a.useRef)(null),S=(0,a.useRef)(null),P=_(),K=L(t),N=(0,a.useRef)(),F=f(m);!function(e,t,n,r){var i=null==r?void 0:r.document,o=_();a.useEffect(function(){if(e&&!o&&i){var n=e(t);M(n,i)}},n),a.useEffect(function(){return function(){M.cancel(),function(e){var t=null==e?void 0:e.getElementById("a11y-status-message");t&&t.remove()}(i)}},[i])}(l,m,[v,k,x,E],s);var U=function(e,t,n,r,i,o){var u=a.useRef(!0);return d(function(){if(!(t<0)&&n&&Object.keys(i.current).length)if(u.current){var a=i.current[o(t)];a&&r.current&&e(a,r.current)}else u.current=!0},[t]),a.useCallback(function(){u.current=!1},[])}(u,k,v,R,A,K.getItemId);B({state:m,props:t}),(0,a.useEffect)(function(){T(t.isOpen,t.initialIsOpen,t.defaultIsOpen,V)&&O.current&&O.current.focus()},[]),(0,a.useEffect)(function(){P||(N.current=n.length)});var Z=(0,a.useCallback)(function(){F.current.isOpen&&g({type:9})},[g,F]),J=(0,a.useMemo)(function(){return[R,S,O]},[]),Q=function(e,t,n){var r=a.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1}),i=a.useCallback(function(){return n.map(function(e){return e.current})},[n]);return a.useEffect(function(){if(!e)return b;function n(){r.current.isTouchEnd=!1,r.current.isMouseDown=!0}function o(n){r.current.isMouseDown=!1,w(n.target,i(),e)||t()}function u(){r.current.isTouchEnd=!1,r.current.isTouchMove=!1}function a(){r.current.isTouchMove=!0}function s(n){r.current.isTouchEnd=!0,r.current.isTouchMove||w(n.target,i(),e,!1)||t()}return e.addEventListener("mousedown",n),e.addEventListener("mouseup",o),e.addEventListener("touchstart",u),e.addEventListener("touchmove",a),e.addEventListener("touchend",s),function(){e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",o),e.removeEventListener("touchstart",u),e.removeEventListener("touchmove",a),e.removeEventListener("touchend",s)}},[e,i,t]),r}(s,Z,J),ee=b;(0,a.useEffect)(function(){v||(A.current={})},[v]),(0,a.useEffect)(function(){var e;v&&null!=s&&s.document&&null!=(e=O.current)&&e.focus&&s.document.activeElement!==O.current&&O.current.focus()},[v,s]);var te=(0,a.useMemo)(function(){return{ArrowDown:function(e){e.preventDefault(),g({type:0,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),g({type:1,altKey:e.altKey})},Home:function(e){F.current.isOpen&&(e.preventDefault(),g({type:3}))},End:function(e){F.current.isOpen&&(e.preventDefault(),g({type:4}))},Escape:function(e){var t=F.current;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),g({type:2}))},Enter:function(e){F.current.isOpen&&229!==e.which&&(e.preventDefault(),g({type:7}))},PageUp:function(e){F.current.isOpen&&(e.preventDefault(),g({type:5}))},PageDown:function(e){F.current.isOpen&&(e.preventDefault(),g({type:6}))}}},[g,F]),ne=(0,a.useCallback)(function(e){return(0,o.A)({id:K.labelId,htmlFor:K.inputId},e)},[K]),re=(0,a.useCallback)(function(e,t){var n,r=null!=e?e:{},u=r.onMouseLeave,a=r.refKey,s=void 0===a?"ref":a,l=r.ref,c=r["aria-label"],d=(0,i.A)(r,W),f=(null!=t?t:{}).suppressRefError;return ee("getMenuProps",void 0!==f&&f,s,R),(0,o.A)(((n={})[s]=p(l,function(e){R.current=e}),n.id=K.menuId,n.role="listbox",n["aria-label"]=c,n["aria-labelledby"]=c?void 0:""+K.labelId,n.onMouseLeave=h(u,function(){g({type:11})}),n),d)},[g,ee,K]),ie=(0,a.useCallback)(function(e){var t,u,a=null!=e?e:{},s=a.item,l=a.index,c=a.refKey,d=void 0===c?"ref":c,f=a.ref,m=a.onMouseMove,v=a.onMouseDown,b=a.onClick;a.onPress;var y=a.disabled,I=(0,i.A)(a,Y);void 0!==y&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var x=function(e,t,n,r){if(void 0!==e&&void 0!==t)return[e,t];if(void 0!==e){if(n.indexOf(e)<0)throw new Error(r);return[e,n.indexOf(e)]}if(void 0!==t){var i=n[t];if(void 0===i)throw new Error(r);return[i,t]}throw new Error(r)}(s,l,n,"Pass either item or index to getItemProps!"),w=x[0],E=x[1],R=r(w,E),C=b;return(0,o.A)(((t={})[d]=p(f,function(e){e&&(A.current[K.getItemId(E)]=e)}),t["aria-disabled"]=R,t["aria-selected"]=E===k,t.id=K.getItemId(E),t.role="option",t),!R&&((u={}).onClick=h(C,function(){g({type:13,index:E})}),u),{onMouseMove:h(m,function(){Q.current.isTouchEnd||E===F.current.highlightedIndex||(U(),g({type:12,index:E,disabled:R}))}),onMouseDown:h(v,function(e){return e.preventDefault()})},I)},[g,K,n,r,k,Q,U,F]),oe=(0,a.useCallback)(function(e){var t,n=null!=e?e:{},r=n.onClick;n.onPress;var u=n.refKey,a=void 0===u?"ref":u,s=n.ref,l=(0,i.A)(n,z);return(0,o.A)(((t={}
1)[a]=p(s,function(e){S.current=e}),t["aria-controls"]=K.menuId,t["aria-expanded"]=v,t.id=K.toggleButtonId,t.tabIndex=-1,t),!l.disabled&&(0,o.A)({},{onClick:h(r,function(){g({type:14})})}),l)},[g,v,K]),ue=(0,a.useCallback)(function(e,t){var n,r=null!=e?e:{},u=r["aria-label"],a=r.onKeyDown,l=r.onChange,c=r.onInput,d=r.onBlur;r.onChangeText;var f=r.onClick,m=r.refKey,b=void 0===m?"ref":m,y=r.ref,I=(0,i.A)(r,$),x=(null!=t?t:{}).suppressRefError;ee("getInputProps",void 0!==x&&x,b,O);var w,R={};return I.disabled||((w={}).onChange=h(l,c,function(e){g({type:8,inputValue:e.target.value})}),w.onKeyDown=h(a,function(e){var t=function(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&!t.startsWith("Arrow")?"Arrow"+t:t}(e);t&&t in te&&te[t](e)}),w.onBlur=h(d,function(e){if(null!=s&&s.document&&F.current.isOpen&&!Q.current.isMouseDown){var t=null===e.relatedTarget&&s.document.activeElement!==s.document.body;g({type:9,selectItem:!t})}}),w.onClick=h(f,function(){g({type:10})}),R=w),(0,o.A)(((n={})[b]=p(y,function(e){O.current=e}),n["aria-activedescendant"]=v&&k>-1?K.getItemId(k):"",n["aria-autocomplete"]="list",n["aria-controls"]=K.menuId,n["aria-expanded"]=v,n["aria-labelledby"]=u?void 0:K.labelId,n["aria-label"]=u,n.autoComplete="off",n.id=K.inputId,n.role="combobox",n.value=E,n),R,I)},[g,K,s,te,v,k,E,Q,ee,F]),ae=(0,a.useCallback)(function(){g({type:15})},[g]),se=(0,a.useCallback)(function(){g({type:17})},[g]),le=(0,a.useCallback)(function(){g({type:16})},[g]),ce=(0,a.useCallback)(function(e){g({type:18,highlightedIndex:e})},[g]),de=(0,a.useCallback)(function(e){g({type:19,selectedItem:e})},[g]);return{getItemProps:ie,getLabelProps:ne,getMenuProps:re,getInputProps:ue,getToggleButtonProps:oe,toggleMenu:ae,openMenu:le,closeMenu:se,setHighlightedIndex:ce,setInputValue:(0,a.useCallback)(function(e){g({type:20,inputValue:e})},[g]),selectItem:de,reset:(0,a.useCallback)(function(){g({type:21})},[g]),highlightedIndex:k,isOpen:v,selectedItem:x,inputValue:E}}X.stateChangeTypes=U,S.stateReducer,S.itemToKey,S.environment,u.array,u.array,u.array,u.func,u.number,u.number,u.number,u.func,u.func,u.string,u.string;var Z=Object.freeze({__proto__:null,FunctionAddItem:6,TagClick:0,TagGroupKeyDownArrowLeft:1,TagGroupKeyDownArrowRight:2,TagGroupKeyDownBackspace:4,TagGroupKeyDownDelete:3,TagRemoveClick:5});function J(e,t){var n;switch(t.type){case 0:n={activeIndex:t.index};break;case 1:n={activeIndex:0===e.activeIndex?e.items.length-1:e.activeIndex-1};break;case 2:n={activeIndex:e.activeIndex===e.items.length-1?0:e.activeIndex+1};break;case 4:case 3:var r=[].concat(e.items.slice(0,e.activeIndex),e.items.slice(e.activeIndex+1)),i=0===r.length?-1:r.length===e.activeIndex?e.activeIndex-1:e.activeIndex;n={items:[].concat(e.items.slice(0,e.activeIndex),e.items.slice(e.activeIndex+1)),activeIndex:i};break;case 5:var u=[].concat(e.items.slice(0,t.index),e.items.slice(t.index+1));n={items:u,activeIndex:0===u.length?-1:u.length===t.index?t.index-1:t.index};break;case 6:var a;n={items:a=void 0===t.index?[].concat(e.items,[t.item]):[].concat(e.items.slice(0,t.index),[t.item],e.items.slice(t.index)),activeIndex:-1===e.activeIndex?a.length-1:e.activeIndex};break;default:throw new Error("Invalid useTagGroup reducer action.")}return(0,o.A)({},e,n)}var Q=(0,o.A)({},r||(r=n.t(a,2))).useId,ee="function"==typeof Q?function(e){var t=e.id,n=e.tagGroupId,r=e.getTagId,i="downshift-"+Q();return t||(t=i),a.useMemo(function(){return{tagGroupId:null!=n?n:t+"-tag-group",getTagId:null!=r?r:function(e){return t+"-tag-"+e}}},[r,t,n])}:function(e){var t=e.id,n=e.getTagId,r=e.tagGroupId,i=a.useState(function(){return null!=t?t:"downshift-"+c()})[0];return a.useMemo(function(){return{tagGroupId:null!=r?r:i+"-tag-group",getTagId:null!=n?n:function(e){return i+"-tag-"+e}}},[n,i,r])};function te(e){var t,n,r,i,o=null!=(t=null!=(n=e.items)?n:e.initialItems)?t:[];return{activeIndex:null!=(r=null!=(i=e.activeIndex)?i:e.initialActiveIndex)?r:0===o.length?-1:0,items:o}}function ne(e,t){return e.activeIndex===t.activeIndex&&e.items===t.items}var re="tag-group-a11y-description",ie={isItemDisabled:u.func},oe=["onKeyDown"],ue=["index","refKey","ref","onClick"],ae=["index","onClick"],se=function(e){var t;void 0===e&&(e={}),y(e,se,ie);var n=function(e){return(0,o.A)({stateReducer:function(e,t){return t.changes},environment:"undefined"==typeof window?void 0:window,removeElementDescription:"Press Delete or Backspace to remove tag."},e)}(e),r=function(e,t,n,r){var i=C(e,t,n,r),o=i[0],u=i[1];return[I(o,t),u]}(J,n,te,ne),u=r[0],s=r[1],l=u.activeIndex,c=u.items,d=ee({getTagId:n.getTagId,id:n.id,tagGroupId:n.tagGroupId});!function(e,t){a.useEffect(function(){if(e){var n=e.createElement("div");return n.setAttribute("id",re),n.style.display="none",n.textContent=t,e.body.appendChild(n),function(){n.remove()}}},[t,e])}(null==(t=n.environment)?void 0:t.document,n.removeElementDescription);var f=function(e,t,n){var r=a.useRef({}),i=a.useRef(e),o=a.useRef(t);return a.useEffect(function(){var u;(-1!==e&&-1!==i.current&&e!==i.current||o.current===t+1)&&(null==(u=r.current[n(e)])||u.focus()),i.current=e,o.current=t},[e,n,t]),r}(l,c.length,d.getTagId),m=(0,a.useCallback)(function(e){var t=null!=e?e:{},n=t.onKeyDown,r=(0,i.A)(t,oe);return(0,o.A)({id:d.tagGroupId,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions",role:"listbox",onKeyDown:h(n,function(e){switch(e.key){case"ArrowLeft":s({type:1});break;case"ArrowRight":s({type:2});break;case"Delete":s({type:3});break;case"Backspace":s({type:4})}})},r)},[s,d.tagGroupId]),g=(0,a.useCallback)(function(e){var t,n=e.index,r=e.refKey,u=void 0===r?"ref":r,a=e.ref,c=e.onClick,m=(0,i.A)(e,ue);if(!Number.isInteger(n)||n<0)throw new Error("Pass correct item index to getTagProps!");var g=d.getTagId(n);return(0,o.A)(((t={"aria-describedby":re})[u]=p(a,function(e){e&&(f.current[g]=e)}),t["aria-labelledby"]=g,t.role="option",t.id=g,t.onClick=h(c,function(){s({type:0,index:n})}),t.tabIndex=l===n?0:-1,t),m)},[s,d,l,f]),v=(0,a.useCallback)(function(e){var t=e.index,n=e.onClick,r=(0,i.A)(e,ae);if(!Number.isInteger(t)||t<0)throw new Error("Pass correct item index to getTagRemoveProps!");var u=d.getTagId(t),a=u+"-remove";return(0,o.A)({id:a,tabIndex:-1,"aria-labelledby":a+" "+u,onClick:h(n,function(e){e.stopPropagation(),s({type:5,index:t})})},r)},[d,s]),b=(0,a.useCallback)(function(e,t){s({type:6,item:e,index:t})},[s]);return{activeIndex:l,addItem:b,getTagGroupProps:m,getTagProps:g,getTagRemoveProps:v,items:c}};se.stateChangeTypes=Z},97629(e,t,n){n.d(t,{_g:()=>A,$o:()=>O}),n(83258);var r=n(93972),i=(n(22068),n(40431),n(64300),n(24552),n(69785)),o=n(94601),u=n(93708),a=n(43249),s=n(43918),l=n(69983),c=n(67796);n(43154),n(91587),n(98357),n(87169);class d extends l.A{get _matchFrom(){return this.maxLength-String(this.from).length}updateOptions(e){super.updateOptions(e)}_update(e){const{to:t=this.to||0,from:n=this.from||0,maxLength:r=this.maxLength||0,autofix:i=this.autofix}=e,o=(0,s._)(e,["to","from","maxLength","autofix"]);this.to=t,this.from=n,this.maxLength=Math.max(String(t).length,r),this.autofix=i;const u=String(this.from).padStart(this.maxLength,"0"),a=String(this.to).padStart(this.maxLength,"0");let l=0;for(;l<a.length&&a[l]===u[l];)++l;o.mask=a.slice(0,l).replace(/0/g,"\\0")+"0".repeat(this.maxLength-l),super._update(o)}get isComplete(){return super.isComplete&&Boolean(this.value)}boundaries(e){let t="",n="";const[,r,i]=e.match(/^(\D*)(\d*)(\D*)/)||[];return i&&(t="0".repeat(r.length)+i,n="9".repeat(r.length)+i),t=t.padEnd(this.maxLength,"0"),n=n.padEnd(this.maxLength,"9"),[t,n]}doPrepareChar(e,t){let n;return void 0===t&&(t={}),[e,n]=super.doPrepareChar(e.replace(/\D/g,""),t),e||(n.skip=!this.isComplete),[e,n]}_appendCharRaw(e,t){if(void 0===t&&(t={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,t);const n=String(this.from).padStart(this.maxLength,"0"),r=String(this.to).padStart(this.maxLength,"0"),[i,o]=this.boundaries(this.value+e);return Number(o)<this.from?super._appendCharRaw(n[this.value.length],t):Number(i)>this.to?!t.tail&&"pad"===this.autofix&&this.value.length+1<this.maxLength?super._appendCharRaw(n[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(r[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){const t=this.value;if(-1===t.search(/[^0]/)&&t.length<=this._matchFrom)return!0;const[n,r]=this.boundaries(t);return this.from<=Number(r)&&Number(n)<=this.to&&super.doValidate(e)}pad(e){const t=new i.A;if(this.value.length===this.maxLength)return t;const n=this.value,r=this.maxLength-this.value.length;if(r){this.reset();for(let n=0;n<r;++n)t.aggregate(super._appendCharRaw("0",e));
1n.split("").forEach(e=>this._appendCharRaw(e))}return t}constructor(e){super(e)}}r.A.MaskedRange=d;var f=n(55889);class p extends l.A{static extractPatternOptions(e){const{mask:t,pattern:n}=e,r=(0,s._)(e,["mask","pattern"]);return(0,a._)((0,u._)({},r),{mask:(0,f.Kg)(t)?t:n})}updateOptions(e){super.updateOptions(e)}_update(e){const t=(0,u._)({},p.DEFAULTS,e),{mask:n,pattern:r,blocks:i}=t,o=(0,s._)(t,["mask","pattern","blocks"]),l=Object.assign({},p.GET_DEFAULT_BLOCKS());e.min&&(l.Y.from=e.min.getFullYear()),e.max&&(l.Y.to=e.max.getFullYear()),e.min&&e.max&&l.Y.from===l.Y.to&&(l.m.from=e.min.getMonth()+1,l.m.to=e.max.getMonth()+1,l.m.from===l.m.to&&(l.d.from=e.min.getDate(),l.d.to=e.max.getDate())),Object.assign(l,this.blocks,i),super._update((0,a._)((0,u._)({},o),{mask:(0,f.Kg)(n)?n:r,blocks:l}))}doValidate(e){const t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&null!=t&&(null==this.min||this.min<=t)&&(null==this.max||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(e){return super.optionsIsChanged(p.extractPatternOptions(e))}constructor(e){super(p.extractPatternOptions((0,u._)({},p.DEFAULTS,e)))}}p.GET_DEFAULT_BLOCKS=()=>({d:{mask:d,from:1,to:31,maxLength:2},m:{mask:d,from:1,to:12,maxLength:2},Y:{mask:d,from:1900,to:9999}}),p.DEFAULTS=(0,a._)((0,u._)({},l.A.DEFAULTS),{mask:Date,pattern:"d{.}`m{.}`Y",format:(e,t)=>e?[String(e.getDate()).padStart(2,"0"),String(e.getMonth()+1).padStart(2,"0"),e.getFullYear()].join("."):"",parse:(e,t)=>{const[n,r,i]=e.split(".").map(Number);return new Date(i,r-1,n)}}),r.A.MaskedDate=p,n(64239);var h=n(29639);class m extends l.A{updateOptions(e){super.updateOptions(e)}_update(e){const{enum:t}=e,n=(0,s._)(e,["enum"]);if(t){const e=t.map(e=>e.length),r=Math.min(...e),i=Math.max(...e)-r;n.mask="*".repeat(r),i&&(n.mask+="["+"*".repeat(i)+"]"),this.enum=t}super._update(n)}_appendCharRaw(e,t){void 0===t&&(t={});const n=Math.min(this.nearestInputPos(0,f.M8.FORCE_RIGHT),this.value.length),r=this.enum.filter(t=>this.matchValue(t,this.unmaskedValue+e,n));if(r.length){1===r.length&&this._forEachBlocksInRange(0,this.value.length,(e,n)=>{const i=r[0][n];n>=this.value.length||i===e.value||(e.reset(),e._appendChar(i,t))});const e=super._appendCharRaw(r[0][this.value.length],t);return 1===r.length&&r[0].slice(this.unmaskedValue.length).split("").forEach(t=>e.aggregate(super._appendCharRaw(t))),e}return new i.A({skip:!this.isComplete})}extractTail(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),new h.A("",e)}remove(e,t){if(void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),e===t)return new i.A;const n=Math.min(super.nearestInputPos(0,f.M8.FORCE_RIGHT),this.value.length);let r;for(r=e;r>=0&&!(this.enum.filter(e=>this.matchValue(e,this.value.slice(n,r),n)).length>1);--r);const o=super.remove(r,t);return o.tailShift+=r-e,o}get isComplete(){return this.enum.indexOf(this.value)>=0}constructor(e){super((0,u._)({},m.DEFAULTS,e))}}m.DEFAULTS=(0,a._)((0,u._)({},l.A.DEFAULTS),{matchValue:(e,t,n)=>e.indexOf(t,n)===n}),r.A.MaskedEnum=m;class g extends o.A{updateOptions(e){super.updateOptions(e)}_update(e){super._update((0,a._)((0,u._)({},e),{validate:e.mask}))}}r.A.MaskedFunction=g,n(51661),n(62332);class v extends l.A{get repeatFrom(){var e;return null!=(e=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)?e:0}get repeatTo(){var e;return null!=(e=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)?e:1/0}updateOptions(e){super.updateOptions(e)}_update(e){var t,n,r;const i=(0,c.ko)(e),{repeat:o}=i,u=(0,s._)(i,["repeat"]);this._blockOpts=Object.assign({},this._blockOpts,u);const a=(0,c.Ay)(this._blockOpts);this.repeat=null!=(t=null!=(n=null!=o?o:a.repeat)?n:this.repeat)?t:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&(null==(r=this._blocks)?void 0:r.length)||0,this.repeatFrom)),blocks:{m:a},eager:a.eager,overwrite:a.overwrite,skipInvalid:a.skipInvalid,lazy:a.lazy,placeholderChar:a.placeholderChar,displayChar:a.displayChar})}_allocateBlock(e){return e<this._blocks.length?this._blocks[e]:this.repeatTo===1/0||this._blocks.length<this.repeatTo?(this._blocks.push((0,c.Ay)(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]):void 0}_appendCharRaw(e,t){void 0===t&&(t={});const n=new i.A;for(let i,c,d=null!=(r=null==(o=this._mapPosToBlock(this.displayValue.length))?void 0:o.index)?r:Math.max(this._blocks.length-1,0);i=null!=(s=this._blocks[d])?s:c=!c&&this._allocateBlock(d);++d){var r,o,s,l;const f=i._appendChar(e,(0,a._)((0,u._)({},t),{_beforeTailState:null==(l=t._beforeTailState)||null==(l=l._blocks)?void 0:l[d]}));if(f.skip&&c){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(n.aggregate(f),f.consumed)break}return n}_trimEmptyTail(e,t){var n,r;void 0===e&&(e=0);const i=Math.max((null==(n=this._mapPosToBlock(e))?void 0:n.index)||0,this.repeatFrom,0);let o;null!=t&&(o=null==(r=this._mapPosToBlock(t))?void 0:r.index),null==o&&(o=this._blocks.length-1);let u=0;for(let e=o;i<=e&&!this._blocks[e].unmaskedValue;--e,++u);u&&(this._blocks.splice(o-u+1,u),this.mask=this.mask.slice(u))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length);const n=super.remove(e,t);return this._trimEmptyTail(e,t),n}totalInputPositions(e,t){return void 0===e&&(e=0),null==t&&this.repeatTo===1/0?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}constructor(e){super(e)}}r.A.RepeatBlock=v,n(15036);try{globalThis.IMask=r.A}catch(e){}var b=n(88673),y=n(36977),I=n(1074),k=n(93747);const x={mask:k.oneOfType([k.array,k.func,k.string,k.instanceOf(RegExp),k.oneOf([Date,Number,b.A.Masked]),k.instanceOf(b.A.Masked)]),value:k.any,unmask:k.oneOfType([k.bool,k.oneOf(["typed"])]),prepare:k.func,prepareChar:k.func,validate:k.func,commit:k.func,overwrite:k.oneOfType([k.bool,k.oneOf(["shift"])]),eager:k.oneOfType([k.bool,k.oneOf(["append","remove"])]),skipInvalid:k.bool,onAccept:k.func,onComplete:k.func,placeholderChar:k.string,displayChar:k.string,lazy:k.bool,definitions:k.object,blocks:k.object,enum:k.arrayOf(k.string),maxLength:k.number,from:k.number,to:k.number,pattern:k.string,format:k.func,parse:k.func,autofix:k.oneOfType([k.bool,k.oneOf(["pad"])]),radix:k.string,thousandsSeparator:k.string,mapToRadix:k.arrayOf(k.string),scale:k.number,normalizeZeros:k.bool,padFractionalZeros:k.bool,min:k.oneOfType([k.number,k.instanceOf(Date)]),max:k.oneOfType([k.number,k.instanceOf(Date)]),dispatch:k.func,inputRef:k.oneOfType([k.func,k.shape({current:k.object})])},w=Object.keys(x).filter(e=>
1"value"!==e),E=["value","unmask","onAccept","onComplete","inputRef"],R=w.filter(e=>E.indexOf(e)<0),C=function(e){var t;const n=((t=class extends y.Component{componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){const e=this.props,t=this._extractMaskOptionsFromProps(e);var n;t.mask?this.maskRef?(this.maskRef.updateOptions(t),"value"in e&&void 0!==e.value&&(this.maskValue=e.value)):this.initMask(t):(this.destroyMask(),"value"in e&&void 0!==e.value&&(null!=(n=this.element)&&n.isContentEditable&&"INPUT"!==this.element.tagName&&"TEXTAREA"!==this.element.tagName?this.element.textContent=e.value:this.element.value=e.value))}componentWillUnmount(){this.destroyMask()}_inputRef(e){this.element=e,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=e:this.props.inputRef(e))}initMask(e){void 0===e&&(e=this._extractMaskOptionsFromProps(this.props)),this.maskRef=(0,b.A)(this.element,e).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&void 0!==this.props.value&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(e){const{}=e,t=(0,I._)({},e);return Object.keys(t).filter(e=>R.indexOf(e)<0).forEach(e=>{delete t[e]}),t}_extractNonMaskProps(e){const{}=e,t=(0,I._)({},e);return w.forEach(e=>{"maxLength"!==e&&delete t[e]}),"defaultValue"in t||(t.defaultValue=e.mask?"":t.value),delete t.value,t}get maskValue(){return this.maskRef?"typed"===this.props.unmask?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(e){this.maskRef&&(e=null==e&&"typed"!==this.props.unmask?"":e,"typed"===this.props.unmask?this.maskRef.typedValue=e:this.props.unmask?this.maskRef.unmaskedValue=e:this.maskRef.value=e)}_onAccept(e){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,e)}_onComplete(e){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,e)}render(){return y.createElement(e,(0,a._)((0,u._)({},this._extractNonMaskProps(this.props)),{inputRef:this._inputRef}))}constructor(e){super(e),this._inputRef=this._inputRef.bind(this)}}).displayName=void 0,t.propTypes=void 0,t),r=e.displayName||e.name||"Component";return n.displayName="IMask("+r+")",n.propTypes=x,y.forwardRef((e,t)=>y.createElement(n,(0,a._)((0,u._)({},e),{ref:t})))}(e=>{let{inputRef:t}=e,n=(0,s._)(e,["inputRef"]);return y.createElement("input",(0,a._)((0,u._)({},n),{ref:t}))}),_=(e,t)=>
1y.createElement(C,(0,a._)((0,u._)({},e),{ref:t})),A=y.forwardRef(_);function O(e,t){let{onAccept:n,onComplete:r,ref:i=(0,y.useRef)(null),defaultValue:o,defaultUnmaskedValue:u,defaultTypedValue:a}=void 0===t?{}:t;const l=(0,y.useRef)(null),[c,d]=(0,y.useState)({}),[f,p]=(0,y.useState)(""),[h,m]=(0,y.useState)(""),[g,v]=(0,y.useState)(),I=(0,y.useCallback)(()=>{var e;null==(e=l.current)||e.destroy(),l.current=null},[]),k=(0,y.useCallback)(()=>{const e=l.current;e&&(d({value:e.value,unmaskedValue:e.unmaskedValue,typedValue:e.typedValue}),v(e.typedValue),m(e.unmaskedValue),p(e.value))},[]),x=(0,y.useCallback)(e=>{const t=l.current;t&&(k(),null==n||n(t.value,t,e))},[n]),w=(0,y.useCallback)(e=>l.current&&(null==r?void 0:r(l.current.value,l.current,e)),[r]);return(0,y.useEffect)(()=>{const{value:e}=c,t=(0,s._)(c,["value"]),n=l.current;n&&void 0!==f&&(e!==f&&(n.value=f,n.value!==f&&x()),d(t))},[f]),(0,y.useEffect)(()=>{const{unmaskedValue:e}=c,t=(0,s._)(c,["unmaskedValue"]),n=l.current;n&&void 0!==h&&(e!==h&&(n.unmaskedValue=h,n.unmaskedValue!==h&&x()),d(t))},[h]),(0,y.useEffect)(()=>{const{typedValue:e}=c,t=(0,s._)(c,["typedValue"]),n=l.current;n&&void 0!==g&&(e!==g&&(n.typedValue=g,n.masked.typedValueEquals(g)||x()),d(t))},[g]),(0,y.useEffect)(()=>{const t=i.current;if(!t||null==e||!e.mask)return I();const n=l.current;n?null==n||n.updateOptions(e):t&&null!=e&&e.mask&&(l.current=(0,b.A)(t,e),k(),void 0!==o&&p(o),void 0!==u&&m(u),void 0!==a&&v(a))},[e,I,x]),(0,y.useEffect)(()=>{if(!l.current)return;const e=l.current;return e.on("accept",x),e.on("complete",w),()=>{e.off("accept",x),e.off("complete",w)}},[x,w]),(0,y.useEffect)(()=>I,[I]),{ref:i,maskRef:l,value:f,setValue:p,unmaskedValue:h,setUnmaskedValue:m,typedValue:g,setTypedValue:v}}}}]); 2//# sourceMappingURL=/resources/source-maps/84721.7ee5b356383d5e439a7a.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.