@lax-wp/design-system 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2743,7 +2743,7 @@ const detectOS = () => {
|
|
|
2743
2743
|
xe && xe.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex items-center gap-0.5 flex-shrink-0", children: xe.map((_e, Re) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2744
2744
|
"kbd",
|
|
2745
2745
|
{
|
|
2746
|
-
className: "inline-flex items-center justify-center min-w-[20px] h-5 px-1 bg-
|
|
2746
|
+
className: "inline-flex items-center justify-center min-w-[20px] h-5 px-1 bg-neutral-800 rounded text-[11px] font-medium text-[#E5E7EB] leading-none",
|
|
2747
2747
|
children: _e
|
|
2748
2748
|
},
|
|
2749
2749
|
Re
|
package/dist/index.umd.js
CHANGED
|
@@ -46,7 +46,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
46
46
|
-webkit-text-fill-color: white !important;
|
|
47
47
|
-webkit-box-shadow: 0 0 0px 1000px var(--input-bg-color) inset !important;
|
|
48
48
|
}
|
|
49
|
-
`}),K?jsxRuntimeExports.jsx("label",{htmlFor:Le,className:"mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",children:jsxRuntimeExports.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:jsxRuntimeExports.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:jsxRuntimeExports.jsxs(Typography,{variant:"medium",size:"extra-small",appearance:"subtitle",children:[K,J&&jsxRuntimeExports.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}):null,jsxRuntimeExports.jsxs("div",{className:"relative input-field",children:[jsxRuntimeExports.jsx("input",{...xe,ref:ge,id:Le,type:ne,value:t,defaultValue:V,placeholder:ce,required:J,disabled:W,max:G,min:U,onKeyDown:a,style:$e(),className:cn$1("border border-solid h-8 rounded-md block w-full pl-3","text-sm font-medium text-neutral-900 dark:text-black-100","bg-white dark:bg-black-600","transition-colors duration-200 ease-in-out","focus:outline-none focus:ring-2",Ae(),W&&"opacity-70 cursor-not-allowed bg-neutral-50 dark:bg-black-700",ve),onChange:We=>n(We.target.value),onClick:We=>We.stopPropagation()}),me&&jsxRuntimeExports.jsx("div",{ref:ye,className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:me})]}),jsxRuntimeExports.jsx(framerMotion.AnimatePresence,{children:s&&jsxRuntimeExports.jsx(framerMotion.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:jsxRuntimeExports.jsx(Typography,{className:cn$1("mt-1",Te()),appearance:"custom",size:"extra-small",variant:"medium",children:s})})})]})});InputField.displayName="InputField";const warn=(e,t,n,a)=>{const s=[n,{code:t,...a||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(s,"warn","react-i18next::",!0);isString$1(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...s):console?.warn&&console.warn(...s)},alreadyWarned={},warnOnce=(e,t,n,a)=>{isString$1(n)&&alreadyWarned[n]||(isString$1(n)&&(alreadyWarned[n]=new Date),warn(e,t,n,a))},loadedClb=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},loadNamespaces=(e,t,n)=>{e.loadNamespaces(t,loadedClb(e,n))},loadLanguages=(e,t,n,a)=>{if(isString$1(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return loadNamespaces(e,n,a);n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,loadedClb(e,a))},hasLoadedNamespace=(e,t,n={})=>!t.languages||!t.languages.length?(warnOnce(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(a,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!s(a.isLanguageChangingTo,e))return!1}}),isString$1=e=>typeof e=="string",isObject$3=e=>typeof e=="object"&&e!==null,matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,htmlEntities={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},unescapeHtmlEntity=e=>htmlEntities[e],unescape=e=>e.replace(matchHtmlEntity,unescapeHtmlEntity);let defaultOptions={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape};const getDefaults=()=>defaultOptions;let i18nInstance;const getI18n=()=>i18nInstance,I18nContext=React.createContext();class ReportNamespaces{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const usePrevious=(e,t)=>{const n=React.useRef();return React.useEffect(()=>{n.current=e},[e,t]),n.current},alwaysNewT=(e,t,n,a)=>e.getFixedT(t,n,a),useMemoizedT=(e,t,n,a)=>React.useCallback(alwaysNewT(e,t,n,a),[e,t,n,a]),useTranslation=(e,t={})=>{const{i18n:n}=t,{i18n:a,defaultNS:s}=React.useContext(I18nContext)||{},o=n||a||getI18n();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new ReportNamespaces),!o){warnOnce(o,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const ye=(Se,Ae)=>isString$1(Ae)?Ae:isObject$3(Ae)&&isString$1(Ae.defaultValue)?Ae.defaultValue:Array.isArray(Se)?Se[Se.length-1]:Se,Re=[ye,{},!1];return Re.t=ye,Re.i18n={},Re.ready=!1,Re}o.options.react?.wait&&warnOnce(o,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const V={...getDefaults(),...o.options.react,...t},{useSuspense:W,keyPrefix:G}=V;let U=s||o.options?.defaultNS;U=isString$1(U)?[U]:U||["translation"],o.reportNamespaces.addUsedNamespaces?.(U);const J=(o.isInitialized||o.initializedStoreOnce)&&U.every(ye=>hasLoadedNamespace(ye,o,V)),K=useMemoizedT(o,t.lng||null,V.nsMode==="fallback"?U:U[0],G),ne=()=>K,ce=()=>alwaysNewT(o,t.lng||null,V.nsMode==="fallback"?U:U[0],G),[me,ue]=React.useState(ne);let ve=U.join();t.lng&&(ve=`${t.lng}${ve}`);const pe=usePrevious(ve),xe=React.useRef(!0);React.useEffect(()=>{const{bindI18n:ye,bindI18nStore:Re}=V;xe.current=!0,!J&&!W&&(t.lng?loadLanguages(o,t.lng,U,()=>{xe.current&&ue(ce)}):loadNamespaces(o,U,()=>{xe.current&&ue(ce)})),J&&pe&&pe!==ve&&xe.current&&ue(ce);const Se=()=>{xe.current&&ue(ce)};return ye&&o?.on(ye,Se),Re&&o?.store.on(Re,Se),()=>{xe.current=!1,o&&ye&&ye?.split(" ").forEach(Ae=>o.off(Ae,Se)),Re&&o&&Re.split(" ").forEach(Ae=>o.store.off(Ae,Se))}},[o,ve]),React.useEffect(()=>{xe.current&&J&&ue(ne)},[o,G,J]);const ge=[me,o,J];if(ge.t=me,ge.i18n=o,ge.ready=J,J||!J&&!W)return ge;throw new Promise(ye=>{t.lng?loadLanguages(o,t.lng,U,()=>ye()):loadNamespaces(o,U,()=>ye())})},HelpIcon=({size:e=16,className:t="",...n})=>jsxRuntimeExports.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`text-neutral-500 hover:text-neutral-700 ${t}`,...n,children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntimeExports.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),jsxRuntimeExports.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),CloseIcon$6=React.forwardRef(({size:e=24,fill:t="currentColor",className:n,...a},s)=>jsxRuntimeExports.jsx("svg",{ref:s,className:cn$1(n),width:e,height:e,viewBox:"0 0 20 20",fill:t,xmlns:"http://www.w3.org/2000/svg",...a,children:jsxRuntimeExports.jsx("path",{d:"M10.0002 11.1666L5.91683 15.2499C5.76405 15.4027 5.56961 15.4791 5.3335 15.4791C5.09739 15.4791 4.90294 15.4027 4.75016 15.2499C4.59738 15.0971 4.521 14.9027 4.521 14.6666C4.521 14.4305 4.59738 14.236 4.75016 14.0833L8.8335 9.99992L4.75016 5.91659C4.59738 5.76381 4.521 5.56936 4.521 5.33325C4.521 5.09714 4.59738 4.9027 4.75016 4.74992C4.90294 4.59714 5.09739 4.52075 5.3335 4.52075C5.56961 4.52075 5.76405 4.59714 5.91683 4.74992L10.0002 8.83325L14.0835 4.74992C14.2363 4.59714 14.4307 4.52075 14.6668 4.52075C14.9029 4.52075 15.0974 4.59714 15.2502 4.74992C15.4029 4.9027 15.4793 5.09714 15.4793 5.33325C15.4793 5.56936 15.4029 5.76381 15.2502 5.91659L11.1668 9.99992L15.2502 14.0833C15.4029 14.236 15.4793 14.4305 15.4793 14.6666C15.4793 14.9027 15.4029 15.0971 15.2502 15.2499C15.0974 15.4027 14.9029 15.4791 14.6668 15.4791C14.4307 15.4791 14.2363 15.4027 14.0835 15.2499L10.0002 11.1666Z"})}));CloseIcon$6.displayName="CloseIcon";const COLORS={primary:{50:"#E6F1FC",100:"#C6E1F9",200:"#8AC0F2",300:"#54A4EC",400:"#3392E9",500:"#0077E3",600:"#016DCF",700:"#0054A1",800:"#00417D",900:"#00325F",950:"#001c35",975:"#00111f"},black:{50:"#f0f0f0",100:"#d9d9d9",200:"#bfbfbf",300:"#8c8c8c",400:"#595959",500:"#454545",600:"#262626",700:"#1f1f1f",800:"#141414",900:"#000000",950:"#0a0a0a",975:"#050505"},blue:{50:"#E6F1FC",100:"#C6E1F9",200:"#8AC0F2",300:"#54A4EC",400:"#3392E9",500:"#0077E3",600:"#016DCF",700:"#0054A1",800:"#00417D",900:"#00325F",950:"#002547",975:"#001529"},success:{50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31",950:"#033625",975:"#022419"},neutral:{50:"#F9FAFB",100:"#F2F4F7",200:"#EAECF0",300:"#D0D5DD",400:"#98A2B3",500:"#667085",600:"#475467",700:"#344054",800:"#1D2939",900:"#101828",950:"#0c1219",975:"#080a0f"},error:{50:"#FEF3F2",100:"#FEE4E2",200:"#FECDCA",300:"#FDA29B",400:"#F97066",500:"#F04438",600:"#D92D20",700:"#B42318",800:"#912018",900:"#7A271A",950:"#3d1008",975:"#2a0b05"},warning:{50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E",950:"#662505",975:"#451803"},teal:{50:"#ebf5f5",100:"#c2e0df",200:"#a4d1d0",300:"#7abcba",400:"#61afad",500:"#399b98",600:"#348d8a",700:"#286e6c",800:"#1f5554",900:"#184140",950:"#133534",975:"#0c2222"},green:{50:"#f2f7f2",100:"#d5e5d5",200:"#c1d9c1",300:"#a5c7a5",400:"#94bd93",500:"#79ac78",600:"#6e9d6d",700:"#567a55",800:"#435f42",900:"#334832",950:"#001e00",975:"#182818"},yellow:{50:"#fffaed",100:"#fff0c7",200:"#ffe8ac",300:"#ffde86",400:"#ffd76f",500:"#ffcd4b",600:"#e8bb44",700:"#b59235",800:"#8c7129",900:"#6b5620",950:"#524314",975:"#382e0e"},orange:{50:"#fef4e8",100:"#fddeb7",200:"#fcce94",300:"#fbb764",400:"#faa945",500:"#f99417",600:"#e38715",700:"#b16910",800:"#89510d",900:"#693e0a",950:"#4d2d07",975:"#331e05"},peach:{50:"#fceef3",100:"#f5cad9",200:"#f0b0c6",300:"#ea8cad",400:"#e5759d",500:"#df5384",600:"#cb4c78",700:"#9e3b5e",800:"#7b2e49",900:"#5e2337",950:"#451a2b",975:"#2e111d"},red:{50:"#fceaeb",100:"#f6bec0",200:"#f29ea2",300:"#ec7278",400:"#e9575d",500:"#e32d35",600:"#cf2930",700:"#a12026",800:"#7d191d",900:"#5f1316",950:"#470c0f",975:"#2f080a"},purple:{50:"#f5e7ff",100:"#dfb4ff",200:"#d090ff",300:"#bb5dff",400:"#ad3dff",500:"#990dff",600:"#8b0ce8",700:"#6d09b5",800:"#54078c",900:"#40056b",950:"#300450",975:"#200336"},navy:{50:"#eaebf6",100:"#bebfe2",200:"#9ea1d3",300:"#7276bf",400:"#575bb3",500:"#2d32a0",600:"#292e92",700:"#202472",800:"#191c58",900:"#131543",950:"#0d0e2f",975:"#090a20"},grey:{50:"#f2f2f2",100:"#d5d5d5",200:"#c1c1c1",300:"#a5a5a5",400:"#939393",500:"#787878",600:"#6d6d6d",700:"#555555",800:"#424242",900:"#323232",950:"#252525",975:"#191919"}},getHashColor=e=>{let t=0;for(let s=0;s<e.length;s++)t=e.charCodeAt(s)+((t<<5)-t);const n=(t&16777215).toString(16).toUpperCase();return`#${"00000".substring(0,6-n.length)+n}`},getLighterColor=(e,t=80)=>{let n=parseInt(e.slice(1,3),16),a=parseInt(e.slice(3,5),16),s=parseInt(e.slice(5,7),16);return n=Math.min(255,n+(255-n)*(t/100)),a=Math.min(255,a+(255-a)*(t/100)),s=Math.min(255,s+(255-s)*(t/100)),`#${Math.round(n).toString(16).padStart(2,"0")}${Math.round(a).toString(16).padStart(2,"0")}${Math.round(s).toString(16).padStart(2,"0")}`},getDarkerColor=(e,t=30)=>{let n=parseInt(e.slice(1,3),16),a=parseInt(e.slice(3,5),16),s=parseInt(e.slice(5,7),16);return n=Math.max(0,n*(1-t/100)),a=Math.max(0,a*(1-t/100)),s=Math.max(0,s*(1-t/100)),`#${Math.round(n).toString(16).padStart(2,"0")}${Math.round(a).toString(16).padStart(2,"0")}${Math.round(s).toString(16).padStart(2,"0")}`},getPredefinedColorStyle=(e,t)=>({background:t?COLORS[e]?.[975]:COLORS[e]?.[50],borderColor:t?COLORS[e]?.[900]:COLORS[e]?.[100],color:t?COLORS[e]?.[500]:COLORS[e]?.[600]}),getCustomColorStyle=(e,t)=>{const n=e.startsWith("#")?e:getHashColor(e);return{background:t?getDarkerColor(n,80):getLighterColor(n,90),borderColor:t?getDarkerColor(n,40):getLighterColor(n,50),color:t?getLighterColor(n,40):n}},getDefaultStyle=e=>({background:e?"#2D3748":"#F7FAFC",borderColor:e?"#4A5568":"#E2E8F0",color:e?"#A0AEC0":"#4A5568"}),getSizeClasses=e=>{switch(e){case"xs":return"text-xs px-1 py-0.5";case"lg":return"text-sm px-2.5 py-1.5";case"md":return"text-sm px-2 py-1";default:return"text-xs px-1.5 py-0.5"}},getCloseIconColor=(e,t,n,a)=>e?n?t.color:COLORS[e]?.[500]||t.color:a?"#A0AEC0":"#4A5568",Tag=React.forwardRef(({label:e,color:t,size:n="sm",className:a,onClick:s,onMouseDown:o,truncate:V,isHashColor:W=!1,icon:G,removable:U=!1,onRemove:J,onUpload:K,acceptsUpload:ne=!1,theme:ce="light","aria-label":me},ue)=>{const ve=ce==="dark",pe=()=>t?t in COLORS?getPredefinedColorStyle(t,ve):getCustomColorStyle(t,ve):getDefaultStyle(ve),xe=Se=>{const Ae=Se.target.files?.[0];Ae&&K&&K(Ae),Se.target.value=""},ge=Se=>{(Se.key==="Enter"||Se.key===" ")&&(s||ne)&&(Se.preventDefault(),s&&s(Se))},ye=pe(),Re=getCloseIconColor(t,ye,W,ve);return jsxRuntimeExports.jsx("div",{ref:ue,className:cn$1("inline-flex items-center border rounded-md transition-colors bg-primary-50 border-primary-100 text-primary-600 dark:bg-primary-900 dark:border-primary-800 dark:text-primary-400",getSizeClasses(n),(s||ne)&&"cursor-pointer hover:opacity-80",a),onMouseDown:o,onClick:s,onKeyDown:ge,"aria-label":me||`Tag: ${e}`,role:"button",tabIndex:s||ne?0:void 0,children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-0.5 truncate w-full overflow-hidden",children:[G,V?jsxRuntimeExports.jsx("p",{title:e,className:`text-${n} ${s||ne?"cursor-pointer":""}`,children:e.length>V?`${e.slice(0,V)}...`:e}):jsxRuntimeExports.jsx("p",{className:`text-${n}`,children:e}),ne&&jsxRuntimeExports.jsx("input",{type:"file",onChange:xe,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer","aria-label":`Upload file for ${e}`}),U&&J&&jsxRuntimeExports.jsx("button",{onClick:J,className:"ml-1 flex-shrink-0","aria-label":`Remove ${e}`,type:"button",children:jsxRuntimeExports.jsx(CloseIcon$6,{size:12,fill:Re,className:"cursor-pointer text-primary-600 dark:text-primary-400"})})]})})});Tag.displayName="Tag";const Label=({labels:e=[]})=>{const t=[],n=[];return e.forEach(a=>{typeof a=="string"&&!t.includes(a)?t.push(a):typeof a!="string"&&!n.some(s=>s.label===a.label)&&n.push(a)}),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[t?.map(a=>jsxRuntimeExports.jsx(Tag,{size:"xs",label:a,color:"primary"},a)),n?.map((a,s)=>jsxRuntimeExports.jsx(Tag,{size:"xs",label:a?.label,color:a?.color},a?.id||s))]})};function _objectWithoutPropertiesLoose$5(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},_extends$5.apply(null,arguments)}var fromEntries=function(t){return t.reduce(function(n,a){var s=a[0],o=a[1];return n[s]=o,n},{})},useIsomorphicLayoutEffect$2=typeof window<"u"&&window.document&&window.document.createElement?React__namespace.useLayoutEffect:React__namespace.useEffect,top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(e,t){return e.concat([t+"-"+start,t+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(e,t){return e.concat([t,t+"-"+start,t+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName$1(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow$1(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function isElement$1(e){var t=getWindow$1(e).Element;return e instanceof t||e instanceof Element}function isHTMLElement$1(e){var t=getWindow$1(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function isShadowRoot$1(e){if(typeof ShadowRoot>"u")return!1;var t=getWindow$1(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function applyStyles$1(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},s=t.attributes[n]||{},o=t.elements[n];!isHTMLElement$1(o)||!getNodeName$1(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(V){var W=s[V];W===!1?o.removeAttribute(V):o.setAttribute(V,W===!0?"":W)}))})}function effect$2(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var s=t.elements[a],o=t.attributes[a]||{},V=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),W=V.reduce(function(G,U){return G[U]="",G},{});!isHTMLElement$1(s)||!getNodeName$1(s)||(Object.assign(s.style,W),Object.keys(o).forEach(function(G){s.removeAttribute(G)}))})}}const applyStyles$2={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles$1,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}var max$1=Math.max,min$1=Math.min,round$2=Math.round;function getUAString(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect$1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),s=1,o=1;t&&isHTMLElement$1(e)&&(s=e.offsetWidth>0&&round$2(a.width)/e.offsetWidth||1,o=e.offsetHeight>0&&round$2(a.height)/e.offsetHeight||1);var V=isElement$1(e)?getWindow$1(e):window,W=V.visualViewport,G=!isLayoutViewport()&&n,U=(a.left+(G&&W?W.offsetLeft:0))/s,J=(a.top+(G&&W?W.offsetTop:0))/o,K=a.width/s,ne=a.height/o;return{width:K,height:ne,top:J,right:U+K,bottom:J+ne,left:U,x:U,y:J}}function getLayoutRect(e){var t=getBoundingClientRect$1(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function contains(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot$1(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function getComputedStyle$2(e){return getWindow$1(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName$1(e))>=0}function getDocumentElement$1(e){return((isElement$1(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode$1(e){return getNodeName$1(e)==="html"?e:e.assignedSlot||e.parentNode||(isShadowRoot$1(e)?e.host:null)||getDocumentElement$1(e)}function getTrueOffsetParent(e){return!isHTMLElement$1(e)||getComputedStyle$2(e).position==="fixed"?null:e.offsetParent}function getContainingBlock(e){var t=/firefox/i.test(getUAString()),n=/Trident/i.test(getUAString());if(n&&isHTMLElement$1(e)){var a=getComputedStyle$2(e);if(a.position==="fixed")return null}var s=getParentNode$1(e);for(isShadowRoot$1(s)&&(s=s.host);isHTMLElement$1(s)&&["html","body"].indexOf(getNodeName$1(s))<0;){var o=getComputedStyle$2(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function getOffsetParent(e){for(var t=getWindow$1(e),n=getTrueOffsetParent(e);n&&isTableElement(n)&&getComputedStyle$2(n).position==="static";)n=getTrueOffsetParent(n);return n&&(getNodeName$1(n)==="html"||getNodeName$1(n)==="body"&&getComputedStyle$2(n).position==="static")?t:n||getContainingBlock(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function within(e,t,n){return max$1(e,min$1(t,n))}function withinMaxClamp(e,t,n){var a=within(e,t,n);return a>n?n:a}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var toPaddingObject=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,mergePaddingObject(typeof t!="number"?t:expandToHashMap(t,basePlacements))};function arrow(e){var t,n=e.state,a=e.name,s=e.options,o=n.elements.arrow,V=n.modifiersData.popperOffsets,W=getBasePlacement(n.placement),G=getMainAxisFromPlacement(W),U=[left,right].indexOf(W)>=0,J=U?"height":"width";if(!(!o||!V)){var K=toPaddingObject(s.padding,n),ne=getLayoutRect(o),ce=G==="y"?top:left,me=G==="y"?bottom:right,ue=n.rects.reference[J]+n.rects.reference[G]-V[G]-n.rects.popper[J],ve=V[G]-n.rects.reference[G],pe=getOffsetParent(o),xe=pe?G==="y"?pe.clientHeight||0:pe.clientWidth||0:0,ge=ue/2-ve/2,ye=K[ce],Re=xe-ne[J]-K[me],Se=xe/2-ne[J]/2+ge,Ae=within(ye,Se,Re),Te=G;n.modifiersData[a]=(t={},t[Te]=Ae,t.centerOffset=Ae-Se,t)}}function effect$1(e){var t=e.state,n=e.options,a=n.element,s=a===void 0?"[data-popper-arrow]":a;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||contains(t.elements.popper,s)&&(t.elements.arrow=s))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(e){return e.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e,t){var n=e.x,a=e.y,s=t.devicePixelRatio||1;return{x:round$2(n*s)/s||0,y:round$2(a*s)/s||0}}function mapToStyles(e){var t,n=e.popper,a=e.popperRect,s=e.placement,o=e.variation,V=e.offsets,W=e.position,G=e.gpuAcceleration,U=e.adaptive,J=e.roundOffsets,K=e.isFixed,ne=V.x,ce=ne===void 0?0:ne,me=V.y,ue=me===void 0?0:me,ve=typeof J=="function"?J({x:ce,y:ue}):{x:ce,y:ue};ce=ve.x,ue=ve.y;var pe=V.hasOwnProperty("x"),xe=V.hasOwnProperty("y"),ge=left,ye=top,Re=window;if(U){var Se=getOffsetParent(n),Ae="clientHeight",Te="clientWidth";if(Se===getWindow$1(n)&&(Se=getDocumentElement$1(n),getComputedStyle$2(Se).position!=="static"&&W==="absolute"&&(Ae="scrollHeight",Te="scrollWidth")),Se=Se,s===top||(s===left||s===right)&&o===end){ye=bottom;var Le=K&&Se===Re&&Re.visualViewport?Re.visualViewport.height:Se[Ae];ue-=Le-a.height,ue*=G?1:-1}if(s===left||(s===top||s===bottom)&&o===end){ge=right;var $e=K&&Se===Re&&Re.visualViewport?Re.visualViewport.width:Se[Te];ce-=$e-a.width,ce*=G?1:-1}}var We=Object.assign({position:W},U&&unsetSides),ke=J===!0?roundOffsetsByDPR({x:ce,y:ue},getWindow$1(n)):{x:ce,y:ue};if(ce=ke.x,ue=ke.y,G){var Ge;return Object.assign({},We,(Ge={},Ge[ye]=xe?"0":"",Ge[ge]=pe?"0":"",Ge.transform=(Re.devicePixelRatio||1)<=1?"translate("+ce+"px, "+ue+"px)":"translate3d("+ce+"px, "+ue+"px, 0)",Ge))}return Object.assign({},We,(t={},t[ye]=xe?ue+"px":"",t[ge]=pe?ce+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,n=e.options,a=n.gpuAcceleration,s=a===void 0?!0:a,o=n.adaptive,V=o===void 0?!0:o,W=n.roundOffsets,G=W===void 0?!0:W,U={placement:getBasePlacement(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},U,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:V,roundOffsets:G})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},U,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:G})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(e){var t=e.state,n=e.instance,a=e.options,s=a.scroll,o=s===void 0?!0:s,V=a.resize,W=V===void 0?!0:V,G=getWindow$1(t.elements.popper),U=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&U.forEach(function(J){J.addEventListener("scroll",n.update,passive)}),W&&G.addEventListener("resize",n.update,passive),function(){o&&U.forEach(function(J){J.removeEventListener("scroll",n.update,passive)}),W&&G.removeEventListener("resize",n.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};var hash$2={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,function(t){return hash$2[t]})}var hash$1={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,function(t){return hash$1[t]})}function getWindowScroll(e){var t=getWindow$1(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function getWindowScrollBarX(e){return getBoundingClientRect$1(getDocumentElement$1(e)).left+getWindowScroll(e).scrollLeft}function getViewportRect(e,t){var n=getWindow$1(e),a=getDocumentElement$1(e),s=n.visualViewport,o=a.clientWidth,V=a.clientHeight,W=0,G=0;if(s){o=s.width,V=s.height;var U=isLayoutViewport();(U||!U&&t==="fixed")&&(W=s.offsetLeft,G=s.offsetTop)}return{width:o,height:V,x:W+getWindowScrollBarX(e),y:G}}function getDocumentRect(e){var t,n=getDocumentElement$1(e),a=getWindowScroll(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=max$1(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),V=max$1(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),W=-a.scrollLeft+getWindowScrollBarX(e),G=-a.scrollTop;return getComputedStyle$2(s||n).direction==="rtl"&&(W+=max$1(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:V,x:W,y:G}}function isScrollParent(e){var t=getComputedStyle$2(e),n=t.overflow,a=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+a)}function getScrollParent$1(e){return["html","body","#document"].indexOf(getNodeName$1(e))>=0?e.ownerDocument.body:isHTMLElement$1(e)&&isScrollParent(e)?e:getScrollParent$1(getParentNode$1(e))}function listScrollParents(e,t){var n;t===void 0&&(t=[]);var a=getScrollParent$1(e),s=a===((n=e.ownerDocument)==null?void 0:n.body),o=getWindow$1(a),V=s?[o].concat(o.visualViewport||[],isScrollParent(a)?a:[]):a,W=t.concat(V);return s?W:W.concat(listScrollParents(getParentNode$1(V)))}function rectToClientRect$1(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getInnerBoundingClientRect(e,t){var n=getBoundingClientRect$1(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function getClientRectFromMixedType(e,t,n){return t===viewport?rectToClientRect$1(getViewportRect(e,n)):isElement$1(t)?getInnerBoundingClientRect(t,n):rectToClientRect$1(getDocumentRect(getDocumentElement$1(e)))}function getClippingParents(e){var t=listScrollParents(getParentNode$1(e)),n=["absolute","fixed"].indexOf(getComputedStyle$2(e).position)>=0,a=n&&isHTMLElement$1(e)?getOffsetParent(e):e;return isElement$1(a)?t.filter(function(s){return isElement$1(s)&&contains(s,a)&&getNodeName$1(s)!=="body"}):[]}function getClippingRect(e,t,n,a){var s=t==="clippingParents"?getClippingParents(e):[].concat(t),o=[].concat(s,[n]),V=o[0],W=o.reduce(function(G,U){var J=getClientRectFromMixedType(e,U,a);return G.top=max$1(J.top,G.top),G.right=min$1(J.right,G.right),G.bottom=min$1(J.bottom,G.bottom),G.left=max$1(J.left,G.left),G},getClientRectFromMixedType(e,V,a));return W.width=W.right-W.left,W.height=W.bottom-W.top,W.x=W.left,W.y=W.top,W}function computeOffsets(e){var t=e.reference,n=e.element,a=e.placement,s=a?getBasePlacement(a):null,o=a?getVariation(a):null,V=t.x+t.width/2-n.width/2,W=t.y+t.height/2-n.height/2,G;switch(s){case top:G={x:V,y:t.y-n.height};break;case bottom:G={x:V,y:t.y+t.height};break;case right:G={x:t.x+t.width,y:W};break;case left:G={x:t.x-n.width,y:W};break;default:G={x:t.x,y:t.y}}var U=s?getMainAxisFromPlacement(s):null;if(U!=null){var J=U==="y"?"height":"width";switch(o){case start:G[U]=G[U]-(t[J]/2-n[J]/2);break;case end:G[U]=G[U]+(t[J]/2-n[J]/2);break}}return G}function detectOverflow(e,t){t===void 0&&(t={});var n=t,a=n.placement,s=a===void 0?e.placement:a,o=n.strategy,V=o===void 0?e.strategy:o,W=n.boundary,G=W===void 0?clippingParents:W,U=n.rootBoundary,J=U===void 0?viewport:U,K=n.elementContext,ne=K===void 0?popper:K,ce=n.altBoundary,me=ce===void 0?!1:ce,ue=n.padding,ve=ue===void 0?0:ue,pe=mergePaddingObject(typeof ve!="number"?ve:expandToHashMap(ve,basePlacements)),xe=ne===popper?reference:popper,ge=e.rects.popper,ye=e.elements[me?xe:ne],Re=getClippingRect(isElement$1(ye)?ye:ye.contextElement||getDocumentElement$1(e.elements.popper),G,J,V),Se=getBoundingClientRect$1(e.elements.reference),Ae=computeOffsets({reference:Se,element:ge,placement:s}),Te=rectToClientRect$1(Object.assign({},ge,Ae)),Le=ne===popper?Te:Se,$e={top:Re.top-Le.top+pe.top,bottom:Le.bottom-Re.bottom+pe.bottom,left:Re.left-Le.left+pe.left,right:Le.right-Re.right+pe.right},We=e.modifiersData.offset;if(ne===popper&&We){var ke=We[s];Object.keys($e).forEach(function(Ge){var Be=[right,bottom].indexOf(Ge)>=0?1:-1,Pe=[top,bottom].indexOf(Ge)>=0?"y":"x";$e[Ge]+=ke[Pe]*Be})}return $e}function computeAutoPlacement(e,t){t===void 0&&(t={});var n=t,a=n.placement,s=n.boundary,o=n.rootBoundary,V=n.padding,W=n.flipVariations,G=n.allowedAutoPlacements,U=G===void 0?placements:G,J=getVariation(a),K=J?W?variationPlacements:variationPlacements.filter(function(me){return getVariation(me)===J}):basePlacements,ne=K.filter(function(me){return U.indexOf(me)>=0});ne.length===0&&(ne=K);var ce=ne.reduce(function(me,ue){return me[ue]=detectOverflow(e,{placement:ue,boundary:s,rootBoundary:o,padding:V})[getBasePlacement(ue)],me},{});return Object.keys(ce).sort(function(me,ue){return ce[me]-ce[ue]})}function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===auto)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}function flip(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,V=n.altAxis,W=V===void 0?!0:V,G=n.fallbackPlacements,U=n.padding,J=n.boundary,K=n.rootBoundary,ne=n.altBoundary,ce=n.flipVariations,me=ce===void 0?!0:ce,ue=n.allowedAutoPlacements,ve=t.options.placement,pe=getBasePlacement(ve),xe=pe===ve,ge=G||(xe||!me?[getOppositePlacement(ve)]:getExpandedFallbackPlacements(ve)),ye=[ve].concat(ge).reduce(function(Ke,rt){return Ke.concat(getBasePlacement(rt)===auto?computeAutoPlacement(t,{placement:rt,boundary:J,rootBoundary:K,padding:U,flipVariations:me,allowedAutoPlacements:ue}):rt)},[]),Re=t.rects.reference,Se=t.rects.popper,Ae=new Map,Te=!0,Le=ye[0],$e=0;$e<ye.length;$e++){var We=ye[$e],ke=getBasePlacement(We),Ge=getVariation(We)===start,Be=[top,bottom].indexOf(ke)>=0,Pe=Be?"width":"height",je=detectOverflow(t,{placement:We,boundary:J,rootBoundary:K,altBoundary:ne,padding:U}),Ne=Be?Ge?right:left:Ge?bottom:top;Re[Pe]>Se[Pe]&&(Ne=getOppositePlacement(Ne));var _e=getOppositePlacement(Ne),Ie=[];if(o&&Ie.push(je[ke]<=0),W&&Ie.push(je[Ne]<=0,je[_e]<=0),Ie.every(function(Ke){return Ke})){Le=We,Te=!1;break}Ae.set(We,Ie)}if(Te)for(var Fe=me?3:1,Ue=function(rt){var et=ye.find(function(Qe){var lt=Ae.get(Qe);if(lt)return lt.slice(0,rt).every(function(it){return it})});if(et)return Le=et,"break"},Je=Fe;Je>0;Je--){var Ze=Ue(Je);if(Ze==="break")break}t.placement!==Le&&(t.modifiersData[a]._skip=!0,t.placement=Le,t.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function isAnySideFullyClipped(e){return[top,right,bottom,left].some(function(t){return e[t]>=0})}function hide(e){var t=e.state,n=e.name,a=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,V=detectOverflow(t,{elementContext:"reference"}),W=detectOverflow(t,{altBoundary:!0}),G=getSideOffsets(V,a),U=getSideOffsets(W,s,o),J=isAnySideFullyClipped(G),K=isAnySideFullyClipped(U);t.modifiersData[n]={referenceClippingOffsets:G,popperEscapeOffsets:U,isReferenceHidden:J,hasPopperEscaped:K},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":J,"data-popper-escaped":K})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(e,t,n){var a=getBasePlacement(e),s=[left,top].indexOf(a)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,V=o[0],W=o[1];return V=V||0,W=(W||0)*s,[left,right].indexOf(a)>=0?{x:W,y:V}:{x:V,y:W}}function offset(e){var t=e.state,n=e.options,a=e.name,s=n.offset,o=s===void 0?[0,0]:s,V=placements.reduce(function(J,K){return J[K]=distanceAndSkiddingToXY(K,t.rects,o),J},{}),W=V[t.placement],G=W.x,U=W.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=G,t.modifiersData.popperOffsets.y+=U),t.modifiersData[a]=V}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(e){return e==="x"?"y":"x"}function preventOverflow(e){var t=e.state,n=e.options,a=e.name,s=n.mainAxis,o=s===void 0?!0:s,V=n.altAxis,W=V===void 0?!1:V,G=n.boundary,U=n.rootBoundary,J=n.altBoundary,K=n.padding,ne=n.tether,ce=ne===void 0?!0:ne,me=n.tetherOffset,ue=me===void 0?0:me,ve=detectOverflow(t,{boundary:G,rootBoundary:U,padding:K,altBoundary:J}),pe=getBasePlacement(t.placement),xe=getVariation(t.placement),ge=!xe,ye=getMainAxisFromPlacement(pe),Re=getAltAxis(ye),Se=t.modifiersData.popperOffsets,Ae=t.rects.reference,Te=t.rects.popper,Le=typeof ue=="function"?ue(Object.assign({},t.rects,{placement:t.placement})):ue,$e=typeof Le=="number"?{mainAxis:Le,altAxis:Le}:Object.assign({mainAxis:0,altAxis:0},Le),We=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ke={x:0,y:0};if(Se){if(o){var Ge,Be=ye==="y"?top:left,Pe=ye==="y"?bottom:right,je=ye==="y"?"height":"width",Ne=Se[ye],_e=Ne+ve[Be],Ie=Ne-ve[Pe],Fe=ce?-Te[je]/2:0,Ue=xe===start?Ae[je]:Te[je],Je=xe===start?-Te[je]:-Ae[je],Ze=t.elements.arrow,Ke=ce&&Ze?getLayoutRect(Ze):{width:0,height:0},rt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject(),et=rt[Be],Qe=rt[Pe],lt=within(0,Ae[je],Ke[je]),it=ge?Ae[je]/2-Fe-lt-et-$e.mainAxis:Ue-lt-et-$e.mainAxis,at=ge?-Ae[je]/2+Fe+lt+Qe+$e.mainAxis:Je+lt+Qe+$e.mainAxis,pt=t.elements.arrow&&getOffsetParent(t.elements.arrow),st=pt?ye==="y"?pt.clientTop||0:pt.clientLeft||0:0,vt=(Ge=We?.[ye])!=null?Ge:0,mt=Ne+it-vt-st,ht=Ne+at-vt,Et=within(ce?min$1(_e,mt):_e,Ne,ce?max$1(Ie,ht):Ie);Se[ye]=Et,ke[ye]=Et-Ne}if(W){var kt,Gt=ye==="x"?top:left,Ot=ye==="x"?bottom:right,At=Se[Re],Mt=Re==="y"?"height":"width",Qt=At+ve[Gt],ar=At-ve[Ot],wt=[top,left].indexOf(pe)!==-1,Dt=(kt=We?.[Re])!=null?kt:0,dt=wt?Qt:At-Ae[Mt]-Te[Mt]-Dt+$e.altAxis,xt=wt?At+Ae[Mt]+Te[Mt]-Dt-$e.altAxis:ar,Tt=ce&&wt?withinMaxClamp(dt,At,xt):within(ce?dt:Qt,At,ce?xt:ar);Se[Re]=Tt,ke[Re]=Tt-At}t.modifiersData[a]=ke}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){return e===getWindow$1(e)||!isHTMLElement$1(e)?getWindowScroll(e):getHTMLElementScroll(e)}function isElementScaled(e){var t=e.getBoundingClientRect(),n=round$2(t.width)/e.offsetWidth||1,a=round$2(t.height)/e.offsetHeight||1;return n!==1||a!==1}function getCompositeRect(e,t,n){n===void 0&&(n=!1);var a=isHTMLElement$1(t),s=isHTMLElement$1(t)&&isElementScaled(t),o=getDocumentElement$1(t),V=getBoundingClientRect$1(e,s,n),W={scrollLeft:0,scrollTop:0},G={x:0,y:0};return(a||!a&&!n)&&((getNodeName$1(t)!=="body"||isScrollParent(o))&&(W=getNodeScroll(t)),isHTMLElement$1(t)?(G=getBoundingClientRect$1(t,!0),G.x+=t.clientLeft,G.y+=t.clientTop):o&&(G.x=getWindowScrollBarX(o))),{x:V.left+W.scrollLeft-G.x,y:V.top+W.scrollTop-G.y,width:V.width,height:V.height}}function order$1(e){var t=new Map,n=new Set,a=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var V=[].concat(o.requires||[],o.requiresIfExists||[]);V.forEach(function(W){if(!n.has(W)){var G=t.get(W);G&&s(G)}}),a.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),a}function orderModifiers(e){var t=order$1(e);return modifierPhases.reduce(function(n,a){return n.concat(t.filter(function(s){return s.phase===a}))},[])}function debounce$2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mergeByName(e){var t=e.reduce(function(n,a){var s=n[a.name];return n[a.name]=s?Object.assign({},s,a,{options:Object.assign({},s.options,a.options),data:Object.assign({},s.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function popperGenerator(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?DEFAULT_OPTIONS:s;return function(W,G,U){U===void 0&&(U=o);var J={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,o),modifiersData:{},elements:{reference:W,popper:G},attributes:{},styles:{}},K=[],ne=!1,ce={state:J,setOptions:function(pe){var xe=typeof pe=="function"?pe(J.options):pe;ue(),J.options=Object.assign({},o,J.options,xe),J.scrollParents={reference:isElement$1(W)?listScrollParents(W):W.contextElement?listScrollParents(W.contextElement):[],popper:listScrollParents(G)};var ge=orderModifiers(mergeByName([].concat(a,J.options.modifiers)));return J.orderedModifiers=ge.filter(function(ye){return ye.enabled}),me(),ce.update()},forceUpdate:function(){if(!ne){var pe=J.elements,xe=pe.reference,ge=pe.popper;if(areValidElements(xe,ge)){J.rects={reference:getCompositeRect(xe,getOffsetParent(ge),J.options.strategy==="fixed"),popper:getLayoutRect(ge)},J.reset=!1,J.placement=J.options.placement,J.orderedModifiers.forEach(function($e){return J.modifiersData[$e.name]=Object.assign({},$e.data)});for(var ye=0;ye<J.orderedModifiers.length;ye++){if(J.reset===!0){J.reset=!1,ye=-1;continue}var Re=J.orderedModifiers[ye],Se=Re.fn,Ae=Re.options,Te=Ae===void 0?{}:Ae,Le=Re.name;typeof Se=="function"&&(J=Se({state:J,options:Te,name:Le,instance:ce})||J)}}}},update:debounce$2(function(){return new Promise(function(ve){ce.forceUpdate(),ve(J)})}),destroy:function(){ue(),ne=!0}};if(!areValidElements(W,G))return ce;ce.setOptions(U).then(function(ve){!ne&&U.onFirstUpdate&&U.onFirstUpdate(ve)});function me(){J.orderedModifiers.forEach(function(ve){var pe=ve.name,xe=ve.options,ge=xe===void 0?{}:xe,ye=ve.effect;if(typeof ye=="function"){var Re=ye({state:J,name:pe,instance:ce,options:ge}),Se=function(){};K.push(Re||Se)}})}function ue(){K.forEach(function(ve){return ve()}),K=[]}return ce}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$2,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers}),reactFastCompare,hasRequiredReactFastCompare;function requireReactFastCompare(){if(hasRequiredReactFastCompare)return reactFastCompare;hasRequiredReactFastCompare=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",a=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(o,V){if(o===V)return!0;if(o&&V&&typeof o=="object"&&typeof V=="object"){if(o.constructor!==V.constructor)return!1;var W,G,U;if(Array.isArray(o)){if(W=o.length,W!=V.length)return!1;for(G=W;G--!==0;)if(!s(o[G],V[G]))return!1;return!0}var J;if(t&&o instanceof Map&&V instanceof Map){if(o.size!==V.size)return!1;for(J=o.entries();!(G=J.next()).done;)if(!V.has(G.value[0]))return!1;for(J=o.entries();!(G=J.next()).done;)if(!s(G.value[1],V.get(G.value[0])))return!1;return!0}if(n&&o instanceof Set&&V instanceof Set){if(o.size!==V.size)return!1;for(J=o.entries();!(G=J.next()).done;)if(!V.has(G.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(V)){if(W=o.length,W!=V.length)return!1;for(G=W;G--!==0;)if(o[G]!==V[G])return!1;return!0}if(o.constructor===RegExp)return o.source===V.source&&o.flags===V.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof V.valueOf=="function")return o.valueOf()===V.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof V.toString=="function")return o.toString()===V.toString();if(U=Object.keys(o),W=U.length,W!==Object.keys(V).length)return!1;for(G=W;G--!==0;)if(!Object.prototype.hasOwnProperty.call(V,U[G]))return!1;if(e&&o instanceof Element)return!1;for(G=W;G--!==0;)if(!((U[G]==="_owner"||U[G]==="__v"||U[G]==="__o")&&o.$$typeof)&&!s(o[U[G]],V[U[G]]))return!1;return!0}return o!==o&&V!==V}return reactFastCompare=function(V,W){try{return s(V,W)}catch(G){if((G.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw G}},reactFastCompare}var reactFastCompareExports=requireReactFastCompare();const isEqual$1=getDefaultExportFromCjs(reactFastCompareExports);var EMPTY_MODIFIERS=[],usePopper=function(t,n,a){a===void 0&&(a={});var s=React__namespace.useRef(null),o={onFirstUpdate:a.onFirstUpdate,placement:a.placement||"bottom",strategy:a.strategy||"absolute",modifiers:a.modifiers||EMPTY_MODIFIERS},V=React__namespace.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),W=V[0],G=V[1],U=React__namespace.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(ce){var me=ce.state,ue=Object.keys(me.elements);ReactDOM__namespace.flushSync(function(){G({styles:fromEntries(ue.map(function(ve){return[ve,me.styles[ve]||{}]})),attributes:fromEntries(ue.map(function(ve){return[ve,me.attributes[ve]]}))})})},requires:["computeStyles"]}},[]),J=React__namespace.useMemo(function(){var ne={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[U,{name:"applyStyles",enabled:!1}])};return isEqual$1(s.current,ne)?s.current||ne:(s.current=ne,ne)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,U]),K=React__namespace.useRef();return useIsomorphicLayoutEffect$2(function(){K.current&&K.current.setOptions(J)},[J]),useIsomorphicLayoutEffect$2(function(){if(!(t==null||n==null)){var ne=a.createPopper||createPopper,ce=ne(t,n,J);return K.current=ce,function(){ce.destroy(),K.current=null}}},[t,n,a.createPopper]),{state:K.current?K.current.state:null,styles:W.styles,attributes:W.attributes,update:K.current?K.current.update:null,forceUpdate:K.current?K.current.forceUpdate:null}};function useGetLatest(e){var t=React__namespace.useRef(e);return t.current=e,React__namespace.useCallback(function(){return t.current},[])}var noop$1=function(){};function useControlledState(e){var t=e.initial,n=e.value,a=e.onChange,s=a===void 0?noop$1:a;if(t===void 0&&n===void 0)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var o=React__namespace.useState(t),V=o[0],W=o[1],G=useGetLatest(V),U=React__namespace.useCallback(function(K){var ne=G(),ce=typeof K=="function"?K(ne):K;typeof ce.persist=="function"&&ce.persist(),W(ce),typeof s=="function"&&s(ce)},[G,s]),J=n!==void 0;return[J?n:V,J?s:U]}function generateBoundingClientRect(e,t){return e===void 0&&(e=0),t===void 0&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:function(){return null}}}}var _excluded$7=["styles","attributes"],virtualElement={getBoundingClientRect:generateBoundingClientRect()},defaultConfig={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"};function usePopperTooltip(e,t){var n,a,s;e===void 0&&(e={}),t===void 0&&(t={});var o=Object.keys(defaultConfig).reduce(function(Pe,je){var Ne;return _extends$5({},Pe,(Ne={},Ne[je]=Pe[je]!==void 0?Pe[je]:defaultConfig[je],Ne))},e),V=React__namespace.useMemo(function(){return[{name:"offset",options:{offset:o.offset}}]},Array.isArray(o.offset)?o.offset:[]),W=_extends$5({},t,{placement:t.placement||o.placement,modifiers:t.modifiers||V}),G=React__namespace.useState(null),U=G[0],J=G[1],K=React__namespace.useState(null),ne=K[0],ce=K[1],me=useControlledState({initial:o.defaultVisible,value:o.visible,onChange:o.onVisibleChange}),ue=me[0],ve=me[1],pe=React__namespace.useRef();React__namespace.useEffect(function(){return function(){return clearTimeout(pe.current)}},[]);var xe=usePopper(o.followCursor?virtualElement:U,ne,W),ge=xe.styles,ye=xe.attributes,Re=_objectWithoutPropertiesLoose$5(xe,_excluded$7),Se=Re.update,Ae=useGetLatest({visible:ue,triggerRef:U,tooltipRef:ne,finalConfig:o}),Te=React__namespace.useCallback(function(Pe){return Array.isArray(o.trigger)?o.trigger.includes(Pe):o.trigger===Pe},Array.isArray(o.trigger)?o.trigger:[o.trigger]),Le=React__namespace.useCallback(function(){clearTimeout(pe.current),pe.current=window.setTimeout(function(){return ve(!1)},o.delayHide)},[o.delayHide,ve]),$e=React__namespace.useCallback(function(){clearTimeout(pe.current),pe.current=window.setTimeout(function(){return ve(!0)},o.delayShow)},[o.delayShow,ve]),We=React__namespace.useCallback(function(){Ae().visible?Le():$e()},[Ae,Le,$e]);React__namespace.useEffect(function(){if(Ae().finalConfig.closeOnOutsideClick){var Pe=function(Ne){var _e,Ie=Ae(),Fe=Ie.tooltipRef,Ue=Ie.triggerRef,Je=(Ne.composedPath==null||(_e=Ne.composedPath())==null?void 0:_e[0])||Ne.target;Je instanceof Node&&Fe!=null&&Ue!=null&&!Fe.contains(Je)&&!Ue.contains(Je)&&Le()};return document.addEventListener("mousedown",Pe),function(){return document.removeEventListener("mousedown",Pe)}}},[Ae,Le]),React__namespace.useEffect(function(){if(!(U==null||!Te("click")))return U.addEventListener("click",We),function(){return U.removeEventListener("click",We)}},[U,Te,We]),React__namespace.useEffect(function(){if(!(U==null||!Te("double-click")))return U.addEventListener("dblclick",We),function(){return U.removeEventListener("dblclick",We)}},[U,Te,We]),React__namespace.useEffect(function(){if(!(U==null||!Te("right-click"))){var Pe=function(Ne){Ne.preventDefault(),We()};return U.addEventListener("contextmenu",Pe),function(){return U.removeEventListener("contextmenu",Pe)}}},[U,Te,We]),React__namespace.useEffect(function(){if(!(U==null||!Te("focus")))return U.addEventListener("focus",$e),U.addEventListener("blur",Le),function(){U.removeEventListener("focus",$e),U.removeEventListener("blur",Le)}},[U,Te,$e,Le]),React__namespace.useEffect(function(){if(!(U==null||!Te("hover")))return U.addEventListener("mouseenter",$e),U.addEventListener("mouseleave",Le),function(){U.removeEventListener("mouseenter",$e),U.removeEventListener("mouseleave",Le)}},[U,Te,$e,Le]),React__namespace.useEffect(function(){if(!(ne==null||!Te("hover")||!Ae().finalConfig.interactive))return ne.addEventListener("mouseenter",$e),ne.addEventListener("mouseleave",Le),function(){ne.removeEventListener("mouseenter",$e),ne.removeEventListener("mouseleave",Le)}},[ne,Te,$e,Le,Ae]);var ke=Re==null||(n=Re.state)==null||(a=n.modifiersData)==null||(s=a.hide)==null?void 0:s.isReferenceHidden;React__namespace.useEffect(function(){o.closeOnTriggerHidden&&ke&&Le()},[o.closeOnTriggerHidden,Le,ke]),React__namespace.useEffect(function(){if(!o.followCursor||U==null)return;function Pe(je){var Ne=je.clientX,_e=je.clientY;virtualElement.getBoundingClientRect=generateBoundingClientRect(Ne,_e),Se?.()}return U.addEventListener("mousemove",Pe),function(){return U.removeEventListener("mousemove",Pe)}},[o.followCursor,U,Se]),React__namespace.useEffect(function(){if(!(ne==null||Se==null||o.mutationObserverOptions==null)){var Pe=new MutationObserver(Se);return Pe.observe(ne,o.mutationObserverOptions),function(){return Pe.disconnect()}}},[o.mutationObserverOptions,ne,Se]);var Ge=function(je){return je===void 0&&(je={}),_extends$5({},je,{style:_extends$5({},je.style,ge.popper)},ye.popper,{"data-popper-interactive":o.interactive})},Be=function(je){return je===void 0&&(je={}),_extends$5({},je,ye.arrow,{style:_extends$5({},je.style,ge.arrow),"data-popper-arrow":!0})};return _extends$5({getArrowProps:Be,getTooltipProps:Ge,setTooltipRef:ce,setTriggerRef:J,tooltipRef:ne,triggerRef:U,visible:ue},Re)}const detectOS=()=>{if(typeof window>"u"||typeof navigator>"u")return"other";const e=navigator.platform?.toLowerCase()||"",t=navigator.userAgent?.toLowerCase()||"";return e.includes("mac")||t.includes("mac")?"macos":e.includes("win")||t.includes("win")?"windows":e.includes("linux")||t.includes("linux")?"linux":"other"},useOS=()=>React.useMemo(()=>detectOS(),[]),isMacOS=()=>detectOS()==="macos",SHORTCUT_KEY_MAP={Meta:{macos:"⌘",other:"Ctrl"},Alt:{macos:"⌥",other:"Alt"},Shift:{macos:"⇧",other:"Shift"},Control:{macos:"⌃",other:"Ctrl"},Enter:{macos:"↵",other:"Enter"},Delete:{macos:"⌫",other:"Delete"}},mapShortcutKey=(e,t)=>{const n=t??detectOS(),a=SHORTCUT_KEY_MAP[e];return a?n==="macos"?a.macos:a.other:e},mapShortcutKeys=(e,t)=>{const n=t??detectOS();return e.map(a=>mapShortcutKey(a,n))},useShortcutKeys=e=>{const t=useOS();return React.useMemo(()=>mapShortcutKeys(e,t),[e,t])},Tooltip=({children:e,title:t,hideTooltip:n=!1,delayShow:a=!1,whiteSpace:s="initial",placement:o="top",className:V,shortcuts:W})=>{const{getArrowProps:G,getTooltipProps:U,setTooltipRef:J,setTriggerRef:K,visible:ne}=usePopperTooltip({placement:o}),[ce,me]=React.useState(!a),[ue,ve]=React.useState(null),pe=useOS(),xe=React.useMemo(()=>W?mapShortcutKeys(W,pe):void 0,[W,pe]),ge=()=>{if(a){const Re=setTimeout(()=>{me(!0)},1e3);ve(Re)}else me(!0)},ye=()=>{ue&&(clearTimeout(ue),ve(null)),a&&me(!1)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{ref:K,className:V,onMouseEnter:ge,onMouseLeave:ye,children:e}),ne&&(a?ce&&t:t)&&!n&&ReactDOM.createPortal(jsxRuntimeExports.jsxs("div",{ref:J,...U({className:"tooltip-container",style:{whiteSpace:s}}),children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("span",{className:"flex-1",children:t}),xe&&xe.length>0&&jsxRuntimeExports.jsx("span",{className:"flex items-center gap-0.5 flex-shrink-0",children:xe.map((Re,Se)=>jsxRuntimeExports.jsx("kbd",{className:"inline-flex items-center justify-center min-w-[20px] h-5 px-1 bg-white/10 border border-white/20 rounded text-[11px] font-medium text-white/80 leading-none",children:Re},Se))})]}),jsxRuntimeExports.jsx("div",{...G({className:"tooltip-arrow"})})]}),document.body)]})},AIStarIcon=({size:e=24,fill:t="currentColor",fillSecondary:n="white"})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[jsxRuntimeExports.jsx("path",{d:"M17.5128 13.6276L13.7184 11.9717C12.8016 11.5708 12.0696 10.8389 11.6688 9.92205L10.0128 6.12765C9.88322 5.83245 9.46802 5.83245 9.33842 6.12765L7.68242 9.92205C7.28162 10.8389 6.54962 11.5708 5.63282 11.9717L1.83122 13.63C1.53842 13.7572 1.53602 14.1748 1.83122 14.3044L5.69762 16.0132C6.61202 16.4188 7.34162 17.1532 7.73762 18.0724L9.34082 21.7948C9.46802 22.09 9.88802 22.0924 10.0152 21.7948L11.6688 18.0052C12.0696 17.0884 12.8016 16.3565 13.7184 15.9557L17.5128 14.2997C17.808 14.17 17.808 13.7548 17.5128 13.6252V13.6276Z",fill:t}),jsxRuntimeExports.jsx("path",{d:"M22.2624 6.43876L20.0688 5.48116C19.5384 5.25076 19.116 4.82596 18.8856 4.29796L17.928 2.10436C17.8536 1.93396 17.6136 1.93396 17.5392 2.10436L16.5816 4.29796C16.3512 4.82836 15.9264 5.25076 15.3984 5.48116L13.2024 6.43876C13.032 6.51316 13.032 6.75316 13.2024 6.82756L15.4368 7.81636C15.9648 8.04916 16.3872 8.47636 16.6152 9.00676L17.5416 11.1572C17.616 11.3276 17.8584 11.3276 17.9328 11.1572L18.888 8.96836C19.1184 8.43796 19.5432 8.01556 20.0712 7.78516L22.2648 6.82756C22.4352 6.75316 22.4352 6.51316 22.2648 6.43876H22.2624Z",fill:t})]}),AIExtractedIndicator=({position:e="top",title:t="AI Extracted Field"})=>jsxRuntimeExports.jsx(Tooltip,{placement:e,title:t,children:jsxRuntimeExports.jsx("div",{className:"cursor-pointer",children:jsxRuntimeExports.jsx(AIStarIcon,{size:12,fill:"#016DCF",fillSecondary:"#54A4EC"})})}),Required=({isConditional:e})=>jsxRuntimeExports.jsx("span",{className:`${e?"text-yellow-500":"text-red-500"}`,children:"*"}),EyeIcon=({className:e,size:t=16})=>jsxRuntimeExports.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[jsxRuntimeExports.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),EyeOffIcon=({className:e,size:t=16})=>jsxRuntimeExports.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[jsxRuntimeExports.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),jsxRuntimeExports.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}),CloseIcon$5=({className:e,size:t=16})=>jsxRuntimeExports.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[jsxRuntimeExports.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),jsxRuntimeExports.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),RevertIcon=({className:e,size:t=16})=>jsxRuntimeExports.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[jsxRuntimeExports.jsx("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),jsxRuntimeExports.jsx("path",{d:"M3 3v5h5"})]}),BaseInputField=React.forwardRef(({id:e,label:t,onChange:n,errorMessage:a,successMessage:s,required:o,isRequiredConditional:V=!1,bg:W,tags:G,color:U,className:J,isPasswordField:K,setIsPasswordVisible:ne,inputRef:ce,tooltip:me,suffixIcon:ue,revertBackValue:ve,originalCase:pe=!1,textSize:xe,isAiExtracted:ge=!1,isGTN:ye=!1,gtnName:Re=null,inputClassName:Se="",inputStyle:Ae={},labelClassName:Te,onBlur:Le,isLiveField:$e=!1,isClearable:We=!1,riskDetails:ke,isRiskAnalysisOpen:Ge=!1,RiskDetailsCard:Be,onAddGTNToDocument:Pe,...je},Ne)=>{const{t:_e}=useTranslation(),[Ie,Fe]=React.useState(!1),[Ue,Je]=React.useState(!1),Ze=Ke=>{Pe&&Pe({key:Re,value:Ke})};return jsxRuntimeExports.jsxs("div",{className:cn$1("flex gap-0.5 relative",Ue&&ye?"border rounded-lg border-primary-100 bg-primary-50 p-1 focus:ring-blue-500 focus:border-blue-500 dark:focus:ring-neutral-50 dark:focus:border-neutral-50":""),onMouseEnter:()=>Je(!0),onMouseLeave:()=>Je(!1),children:[ye&&!Ue?jsxRuntimeExports.jsx("div",{className:"w-1 h-1 bg-primary-600 rounded-full animate-blink mt-1.5"}):null,jsxRuntimeExports.jsxs("div",{className:cn$1("flex flex-col w-full",J),children:[jsxRuntimeExports.jsx("style",{children:`
|
|
49
|
+
`}),K?jsxRuntimeExports.jsx("label",{htmlFor:Le,className:"mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",children:jsxRuntimeExports.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:jsxRuntimeExports.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:jsxRuntimeExports.jsxs(Typography,{variant:"medium",size:"extra-small",appearance:"subtitle",children:[K,J&&jsxRuntimeExports.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}):null,jsxRuntimeExports.jsxs("div",{className:"relative input-field",children:[jsxRuntimeExports.jsx("input",{...xe,ref:ge,id:Le,type:ne,value:t,defaultValue:V,placeholder:ce,required:J,disabled:W,max:G,min:U,onKeyDown:a,style:$e(),className:cn$1("border border-solid h-8 rounded-md block w-full pl-3","text-sm font-medium text-neutral-900 dark:text-black-100","bg-white dark:bg-black-600","transition-colors duration-200 ease-in-out","focus:outline-none focus:ring-2",Ae(),W&&"opacity-70 cursor-not-allowed bg-neutral-50 dark:bg-black-700",ve),onChange:We=>n(We.target.value),onClick:We=>We.stopPropagation()}),me&&jsxRuntimeExports.jsx("div",{ref:ye,className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:me})]}),jsxRuntimeExports.jsx(framerMotion.AnimatePresence,{children:s&&jsxRuntimeExports.jsx(framerMotion.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:jsxRuntimeExports.jsx(Typography,{className:cn$1("mt-1",Te()),appearance:"custom",size:"extra-small",variant:"medium",children:s})})})]})});InputField.displayName="InputField";const warn=(e,t,n,a)=>{const s=[n,{code:t,...a||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(s,"warn","react-i18next::",!0);isString$1(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...s):console?.warn&&console.warn(...s)},alreadyWarned={},warnOnce=(e,t,n,a)=>{isString$1(n)&&alreadyWarned[n]||(isString$1(n)&&(alreadyWarned[n]=new Date),warn(e,t,n,a))},loadedClb=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},loadNamespaces=(e,t,n)=>{e.loadNamespaces(t,loadedClb(e,n))},loadLanguages=(e,t,n,a)=>{if(isString$1(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return loadNamespaces(e,n,a);n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,loadedClb(e,a))},hasLoadedNamespace=(e,t,n={})=>!t.languages||!t.languages.length?(warnOnce(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(a,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!s(a.isLanguageChangingTo,e))return!1}}),isString$1=e=>typeof e=="string",isObject$3=e=>typeof e=="object"&&e!==null,matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,htmlEntities={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},unescapeHtmlEntity=e=>htmlEntities[e],unescape=e=>e.replace(matchHtmlEntity,unescapeHtmlEntity);let defaultOptions={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape};const getDefaults=()=>defaultOptions;let i18nInstance;const getI18n=()=>i18nInstance,I18nContext=React.createContext();class ReportNamespaces{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const usePrevious=(e,t)=>{const n=React.useRef();return React.useEffect(()=>{n.current=e},[e,t]),n.current},alwaysNewT=(e,t,n,a)=>e.getFixedT(t,n,a),useMemoizedT=(e,t,n,a)=>React.useCallback(alwaysNewT(e,t,n,a),[e,t,n,a]),useTranslation=(e,t={})=>{const{i18n:n}=t,{i18n:a,defaultNS:s}=React.useContext(I18nContext)||{},o=n||a||getI18n();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new ReportNamespaces),!o){warnOnce(o,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const ye=(Se,Ae)=>isString$1(Ae)?Ae:isObject$3(Ae)&&isString$1(Ae.defaultValue)?Ae.defaultValue:Array.isArray(Se)?Se[Se.length-1]:Se,Re=[ye,{},!1];return Re.t=ye,Re.i18n={},Re.ready=!1,Re}o.options.react?.wait&&warnOnce(o,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const V={...getDefaults(),...o.options.react,...t},{useSuspense:W,keyPrefix:G}=V;let U=s||o.options?.defaultNS;U=isString$1(U)?[U]:U||["translation"],o.reportNamespaces.addUsedNamespaces?.(U);const J=(o.isInitialized||o.initializedStoreOnce)&&U.every(ye=>hasLoadedNamespace(ye,o,V)),K=useMemoizedT(o,t.lng||null,V.nsMode==="fallback"?U:U[0],G),ne=()=>K,ce=()=>alwaysNewT(o,t.lng||null,V.nsMode==="fallback"?U:U[0],G),[me,ue]=React.useState(ne);let ve=U.join();t.lng&&(ve=`${t.lng}${ve}`);const pe=usePrevious(ve),xe=React.useRef(!0);React.useEffect(()=>{const{bindI18n:ye,bindI18nStore:Re}=V;xe.current=!0,!J&&!W&&(t.lng?loadLanguages(o,t.lng,U,()=>{xe.current&&ue(ce)}):loadNamespaces(o,U,()=>{xe.current&&ue(ce)})),J&&pe&&pe!==ve&&xe.current&&ue(ce);const Se=()=>{xe.current&&ue(ce)};return ye&&o?.on(ye,Se),Re&&o?.store.on(Re,Se),()=>{xe.current=!1,o&&ye&&ye?.split(" ").forEach(Ae=>o.off(Ae,Se)),Re&&o&&Re.split(" ").forEach(Ae=>o.store.off(Ae,Se))}},[o,ve]),React.useEffect(()=>{xe.current&&J&&ue(ne)},[o,G,J]);const ge=[me,o,J];if(ge.t=me,ge.i18n=o,ge.ready=J,J||!J&&!W)return ge;throw new Promise(ye=>{t.lng?loadLanguages(o,t.lng,U,()=>ye()):loadNamespaces(o,U,()=>ye())})},HelpIcon=({size:e=16,className:t="",...n})=>jsxRuntimeExports.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`text-neutral-500 hover:text-neutral-700 ${t}`,...n,children:[jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntimeExports.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),jsxRuntimeExports.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),CloseIcon$6=React.forwardRef(({size:e=24,fill:t="currentColor",className:n,...a},s)=>jsxRuntimeExports.jsx("svg",{ref:s,className:cn$1(n),width:e,height:e,viewBox:"0 0 20 20",fill:t,xmlns:"http://www.w3.org/2000/svg",...a,children:jsxRuntimeExports.jsx("path",{d:"M10.0002 11.1666L5.91683 15.2499C5.76405 15.4027 5.56961 15.4791 5.3335 15.4791C5.09739 15.4791 4.90294 15.4027 4.75016 15.2499C4.59738 15.0971 4.521 14.9027 4.521 14.6666C4.521 14.4305 4.59738 14.236 4.75016 14.0833L8.8335 9.99992L4.75016 5.91659C4.59738 5.76381 4.521 5.56936 4.521 5.33325C4.521 5.09714 4.59738 4.9027 4.75016 4.74992C4.90294 4.59714 5.09739 4.52075 5.3335 4.52075C5.56961 4.52075 5.76405 4.59714 5.91683 4.74992L10.0002 8.83325L14.0835 4.74992C14.2363 4.59714 14.4307 4.52075 14.6668 4.52075C14.9029 4.52075 15.0974 4.59714 15.2502 4.74992C15.4029 4.9027 15.4793 5.09714 15.4793 5.33325C15.4793 5.56936 15.4029 5.76381 15.2502 5.91659L11.1668 9.99992L15.2502 14.0833C15.4029 14.236 15.4793 14.4305 15.4793 14.6666C15.4793 14.9027 15.4029 15.0971 15.2502 15.2499C15.0974 15.4027 14.9029 15.4791 14.6668 15.4791C14.4307 15.4791 14.2363 15.4027 14.0835 15.2499L10.0002 11.1666Z"})}));CloseIcon$6.displayName="CloseIcon";const COLORS={primary:{50:"#E6F1FC",100:"#C6E1F9",200:"#8AC0F2",300:"#54A4EC",400:"#3392E9",500:"#0077E3",600:"#016DCF",700:"#0054A1",800:"#00417D",900:"#00325F",950:"#001c35",975:"#00111f"},black:{50:"#f0f0f0",100:"#d9d9d9",200:"#bfbfbf",300:"#8c8c8c",400:"#595959",500:"#454545",600:"#262626",700:"#1f1f1f",800:"#141414",900:"#000000",950:"#0a0a0a",975:"#050505"},blue:{50:"#E6F1FC",100:"#C6E1F9",200:"#8AC0F2",300:"#54A4EC",400:"#3392E9",500:"#0077E3",600:"#016DCF",700:"#0054A1",800:"#00417D",900:"#00325F",950:"#002547",975:"#001529"},success:{50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31",950:"#033625",975:"#022419"},neutral:{50:"#F9FAFB",100:"#F2F4F7",200:"#EAECF0",300:"#D0D5DD",400:"#98A2B3",500:"#667085",600:"#475467",700:"#344054",800:"#1D2939",900:"#101828",950:"#0c1219",975:"#080a0f"},error:{50:"#FEF3F2",100:"#FEE4E2",200:"#FECDCA",300:"#FDA29B",400:"#F97066",500:"#F04438",600:"#D92D20",700:"#B42318",800:"#912018",900:"#7A271A",950:"#3d1008",975:"#2a0b05"},warning:{50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E",950:"#662505",975:"#451803"},teal:{50:"#ebf5f5",100:"#c2e0df",200:"#a4d1d0",300:"#7abcba",400:"#61afad",500:"#399b98",600:"#348d8a",700:"#286e6c",800:"#1f5554",900:"#184140",950:"#133534",975:"#0c2222"},green:{50:"#f2f7f2",100:"#d5e5d5",200:"#c1d9c1",300:"#a5c7a5",400:"#94bd93",500:"#79ac78",600:"#6e9d6d",700:"#567a55",800:"#435f42",900:"#334832",950:"#001e00",975:"#182818"},yellow:{50:"#fffaed",100:"#fff0c7",200:"#ffe8ac",300:"#ffde86",400:"#ffd76f",500:"#ffcd4b",600:"#e8bb44",700:"#b59235",800:"#8c7129",900:"#6b5620",950:"#524314",975:"#382e0e"},orange:{50:"#fef4e8",100:"#fddeb7",200:"#fcce94",300:"#fbb764",400:"#faa945",500:"#f99417",600:"#e38715",700:"#b16910",800:"#89510d",900:"#693e0a",950:"#4d2d07",975:"#331e05"},peach:{50:"#fceef3",100:"#f5cad9",200:"#f0b0c6",300:"#ea8cad",400:"#e5759d",500:"#df5384",600:"#cb4c78",700:"#9e3b5e",800:"#7b2e49",900:"#5e2337",950:"#451a2b",975:"#2e111d"},red:{50:"#fceaeb",100:"#f6bec0",200:"#f29ea2",300:"#ec7278",400:"#e9575d",500:"#e32d35",600:"#cf2930",700:"#a12026",800:"#7d191d",900:"#5f1316",950:"#470c0f",975:"#2f080a"},purple:{50:"#f5e7ff",100:"#dfb4ff",200:"#d090ff",300:"#bb5dff",400:"#ad3dff",500:"#990dff",600:"#8b0ce8",700:"#6d09b5",800:"#54078c",900:"#40056b",950:"#300450",975:"#200336"},navy:{50:"#eaebf6",100:"#bebfe2",200:"#9ea1d3",300:"#7276bf",400:"#575bb3",500:"#2d32a0",600:"#292e92",700:"#202472",800:"#191c58",900:"#131543",950:"#0d0e2f",975:"#090a20"},grey:{50:"#f2f2f2",100:"#d5d5d5",200:"#c1c1c1",300:"#a5a5a5",400:"#939393",500:"#787878",600:"#6d6d6d",700:"#555555",800:"#424242",900:"#323232",950:"#252525",975:"#191919"}},getHashColor=e=>{let t=0;for(let s=0;s<e.length;s++)t=e.charCodeAt(s)+((t<<5)-t);const n=(t&16777215).toString(16).toUpperCase();return`#${"00000".substring(0,6-n.length)+n}`},getLighterColor=(e,t=80)=>{let n=parseInt(e.slice(1,3),16),a=parseInt(e.slice(3,5),16),s=parseInt(e.slice(5,7),16);return n=Math.min(255,n+(255-n)*(t/100)),a=Math.min(255,a+(255-a)*(t/100)),s=Math.min(255,s+(255-s)*(t/100)),`#${Math.round(n).toString(16).padStart(2,"0")}${Math.round(a).toString(16).padStart(2,"0")}${Math.round(s).toString(16).padStart(2,"0")}`},getDarkerColor=(e,t=30)=>{let n=parseInt(e.slice(1,3),16),a=parseInt(e.slice(3,5),16),s=parseInt(e.slice(5,7),16);return n=Math.max(0,n*(1-t/100)),a=Math.max(0,a*(1-t/100)),s=Math.max(0,s*(1-t/100)),`#${Math.round(n).toString(16).padStart(2,"0")}${Math.round(a).toString(16).padStart(2,"0")}${Math.round(s).toString(16).padStart(2,"0")}`},getPredefinedColorStyle=(e,t)=>({background:t?COLORS[e]?.[975]:COLORS[e]?.[50],borderColor:t?COLORS[e]?.[900]:COLORS[e]?.[100],color:t?COLORS[e]?.[500]:COLORS[e]?.[600]}),getCustomColorStyle=(e,t)=>{const n=e.startsWith("#")?e:getHashColor(e);return{background:t?getDarkerColor(n,80):getLighterColor(n,90),borderColor:t?getDarkerColor(n,40):getLighterColor(n,50),color:t?getLighterColor(n,40):n}},getDefaultStyle=e=>({background:e?"#2D3748":"#F7FAFC",borderColor:e?"#4A5568":"#E2E8F0",color:e?"#A0AEC0":"#4A5568"}),getSizeClasses=e=>{switch(e){case"xs":return"text-xs px-1 py-0.5";case"lg":return"text-sm px-2.5 py-1.5";case"md":return"text-sm px-2 py-1";default:return"text-xs px-1.5 py-0.5"}},getCloseIconColor=(e,t,n,a)=>e?n?t.color:COLORS[e]?.[500]||t.color:a?"#A0AEC0":"#4A5568",Tag=React.forwardRef(({label:e,color:t,size:n="sm",className:a,onClick:s,onMouseDown:o,truncate:V,isHashColor:W=!1,icon:G,removable:U=!1,onRemove:J,onUpload:K,acceptsUpload:ne=!1,theme:ce="light","aria-label":me},ue)=>{const ve=ce==="dark",pe=()=>t?t in COLORS?getPredefinedColorStyle(t,ve):getCustomColorStyle(t,ve):getDefaultStyle(ve),xe=Se=>{const Ae=Se.target.files?.[0];Ae&&K&&K(Ae),Se.target.value=""},ge=Se=>{(Se.key==="Enter"||Se.key===" ")&&(s||ne)&&(Se.preventDefault(),s&&s(Se))},ye=pe(),Re=getCloseIconColor(t,ye,W,ve);return jsxRuntimeExports.jsx("div",{ref:ue,className:cn$1("inline-flex items-center border rounded-md transition-colors bg-primary-50 border-primary-100 text-primary-600 dark:bg-primary-900 dark:border-primary-800 dark:text-primary-400",getSizeClasses(n),(s||ne)&&"cursor-pointer hover:opacity-80",a),onMouseDown:o,onClick:s,onKeyDown:ge,"aria-label":me||`Tag: ${e}`,role:"button",tabIndex:s||ne?0:void 0,children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-0.5 truncate w-full overflow-hidden",children:[G,V?jsxRuntimeExports.jsx("p",{title:e,className:`text-${n} ${s||ne?"cursor-pointer":""}`,children:e.length>V?`${e.slice(0,V)}...`:e}):jsxRuntimeExports.jsx("p",{className:`text-${n}`,children:e}),ne&&jsxRuntimeExports.jsx("input",{type:"file",onChange:xe,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer","aria-label":`Upload file for ${e}`}),U&&J&&jsxRuntimeExports.jsx("button",{onClick:J,className:"ml-1 flex-shrink-0","aria-label":`Remove ${e}`,type:"button",children:jsxRuntimeExports.jsx(CloseIcon$6,{size:12,fill:Re,className:"cursor-pointer text-primary-600 dark:text-primary-400"})})]})})});Tag.displayName="Tag";const Label=({labels:e=[]})=>{const t=[],n=[];return e.forEach(a=>{typeof a=="string"&&!t.includes(a)?t.push(a):typeof a!="string"&&!n.some(s=>s.label===a.label)&&n.push(a)}),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[t?.map(a=>jsxRuntimeExports.jsx(Tag,{size:"xs",label:a,color:"primary"},a)),n?.map((a,s)=>jsxRuntimeExports.jsx(Tag,{size:"xs",label:a?.label,color:a?.color},a?.id||s))]})};function _objectWithoutPropertiesLoose$5(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},_extends$5.apply(null,arguments)}var fromEntries=function(t){return t.reduce(function(n,a){var s=a[0],o=a[1];return n[s]=o,n},{})},useIsomorphicLayoutEffect$2=typeof window<"u"&&window.document&&window.document.createElement?React__namespace.useLayoutEffect:React__namespace.useEffect,top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(e,t){return e.concat([t+"-"+start,t+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(e,t){return e.concat([t,t+"-"+start,t+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName$1(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow$1(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function isElement$1(e){var t=getWindow$1(e).Element;return e instanceof t||e instanceof Element}function isHTMLElement$1(e){var t=getWindow$1(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function isShadowRoot$1(e){if(typeof ShadowRoot>"u")return!1;var t=getWindow$1(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function applyStyles$1(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},s=t.attributes[n]||{},o=t.elements[n];!isHTMLElement$1(o)||!getNodeName$1(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(V){var W=s[V];W===!1?o.removeAttribute(V):o.setAttribute(V,W===!0?"":W)}))})}function effect$2(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var s=t.elements[a],o=t.attributes[a]||{},V=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),W=V.reduce(function(G,U){return G[U]="",G},{});!isHTMLElement$1(s)||!getNodeName$1(s)||(Object.assign(s.style,W),Object.keys(o).forEach(function(G){s.removeAttribute(G)}))})}}const applyStyles$2={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles$1,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}var max$1=Math.max,min$1=Math.min,round$2=Math.round;function getUAString(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect$1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),s=1,o=1;t&&isHTMLElement$1(e)&&(s=e.offsetWidth>0&&round$2(a.width)/e.offsetWidth||1,o=e.offsetHeight>0&&round$2(a.height)/e.offsetHeight||1);var V=isElement$1(e)?getWindow$1(e):window,W=V.visualViewport,G=!isLayoutViewport()&&n,U=(a.left+(G&&W?W.offsetLeft:0))/s,J=(a.top+(G&&W?W.offsetTop:0))/o,K=a.width/s,ne=a.height/o;return{width:K,height:ne,top:J,right:U+K,bottom:J+ne,left:U,x:U,y:J}}function getLayoutRect(e){var t=getBoundingClientRect$1(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function contains(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot$1(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function getComputedStyle$2(e){return getWindow$1(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName$1(e))>=0}function getDocumentElement$1(e){return((isElement$1(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode$1(e){return getNodeName$1(e)==="html"?e:e.assignedSlot||e.parentNode||(isShadowRoot$1(e)?e.host:null)||getDocumentElement$1(e)}function getTrueOffsetParent(e){return!isHTMLElement$1(e)||getComputedStyle$2(e).position==="fixed"?null:e.offsetParent}function getContainingBlock(e){var t=/firefox/i.test(getUAString()),n=/Trident/i.test(getUAString());if(n&&isHTMLElement$1(e)){var a=getComputedStyle$2(e);if(a.position==="fixed")return null}var s=getParentNode$1(e);for(isShadowRoot$1(s)&&(s=s.host);isHTMLElement$1(s)&&["html","body"].indexOf(getNodeName$1(s))<0;){var o=getComputedStyle$2(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function getOffsetParent(e){for(var t=getWindow$1(e),n=getTrueOffsetParent(e);n&&isTableElement(n)&&getComputedStyle$2(n).position==="static";)n=getTrueOffsetParent(n);return n&&(getNodeName$1(n)==="html"||getNodeName$1(n)==="body"&&getComputedStyle$2(n).position==="static")?t:n||getContainingBlock(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function within(e,t,n){return max$1(e,min$1(t,n))}function withinMaxClamp(e,t,n){var a=within(e,t,n);return a>n?n:a}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var toPaddingObject=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,mergePaddingObject(typeof t!="number"?t:expandToHashMap(t,basePlacements))};function arrow(e){var t,n=e.state,a=e.name,s=e.options,o=n.elements.arrow,V=n.modifiersData.popperOffsets,W=getBasePlacement(n.placement),G=getMainAxisFromPlacement(W),U=[left,right].indexOf(W)>=0,J=U?"height":"width";if(!(!o||!V)){var K=toPaddingObject(s.padding,n),ne=getLayoutRect(o),ce=G==="y"?top:left,me=G==="y"?bottom:right,ue=n.rects.reference[J]+n.rects.reference[G]-V[G]-n.rects.popper[J],ve=V[G]-n.rects.reference[G],pe=getOffsetParent(o),xe=pe?G==="y"?pe.clientHeight||0:pe.clientWidth||0:0,ge=ue/2-ve/2,ye=K[ce],Re=xe-ne[J]-K[me],Se=xe/2-ne[J]/2+ge,Ae=within(ye,Se,Re),Te=G;n.modifiersData[a]=(t={},t[Te]=Ae,t.centerOffset=Ae-Se,t)}}function effect$1(e){var t=e.state,n=e.options,a=n.element,s=a===void 0?"[data-popper-arrow]":a;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||contains(t.elements.popper,s)&&(t.elements.arrow=s))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(e){return e.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e,t){var n=e.x,a=e.y,s=t.devicePixelRatio||1;return{x:round$2(n*s)/s||0,y:round$2(a*s)/s||0}}function mapToStyles(e){var t,n=e.popper,a=e.popperRect,s=e.placement,o=e.variation,V=e.offsets,W=e.position,G=e.gpuAcceleration,U=e.adaptive,J=e.roundOffsets,K=e.isFixed,ne=V.x,ce=ne===void 0?0:ne,me=V.y,ue=me===void 0?0:me,ve=typeof J=="function"?J({x:ce,y:ue}):{x:ce,y:ue};ce=ve.x,ue=ve.y;var pe=V.hasOwnProperty("x"),xe=V.hasOwnProperty("y"),ge=left,ye=top,Re=window;if(U){var Se=getOffsetParent(n),Ae="clientHeight",Te="clientWidth";if(Se===getWindow$1(n)&&(Se=getDocumentElement$1(n),getComputedStyle$2(Se).position!=="static"&&W==="absolute"&&(Ae="scrollHeight",Te="scrollWidth")),Se=Se,s===top||(s===left||s===right)&&o===end){ye=bottom;var Le=K&&Se===Re&&Re.visualViewport?Re.visualViewport.height:Se[Ae];ue-=Le-a.height,ue*=G?1:-1}if(s===left||(s===top||s===bottom)&&o===end){ge=right;var $e=K&&Se===Re&&Re.visualViewport?Re.visualViewport.width:Se[Te];ce-=$e-a.width,ce*=G?1:-1}}var We=Object.assign({position:W},U&&unsetSides),ke=J===!0?roundOffsetsByDPR({x:ce,y:ue},getWindow$1(n)):{x:ce,y:ue};if(ce=ke.x,ue=ke.y,G){var Ge;return Object.assign({},We,(Ge={},Ge[ye]=xe?"0":"",Ge[ge]=pe?"0":"",Ge.transform=(Re.devicePixelRatio||1)<=1?"translate("+ce+"px, "+ue+"px)":"translate3d("+ce+"px, "+ue+"px, 0)",Ge))}return Object.assign({},We,(t={},t[ye]=xe?ue+"px":"",t[ge]=pe?ce+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,n=e.options,a=n.gpuAcceleration,s=a===void 0?!0:a,o=n.adaptive,V=o===void 0?!0:o,W=n.roundOffsets,G=W===void 0?!0:W,U={placement:getBasePlacement(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},U,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:V,roundOffsets:G})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},U,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:G})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(e){var t=e.state,n=e.instance,a=e.options,s=a.scroll,o=s===void 0?!0:s,V=a.resize,W=V===void 0?!0:V,G=getWindow$1(t.elements.popper),U=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&U.forEach(function(J){J.addEventListener("scroll",n.update,passive)}),W&&G.addEventListener("resize",n.update,passive),function(){o&&U.forEach(function(J){J.removeEventListener("scroll",n.update,passive)}),W&&G.removeEventListener("resize",n.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};var hash$2={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,function(t){return hash$2[t]})}var hash$1={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,function(t){return hash$1[t]})}function getWindowScroll(e){var t=getWindow$1(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function getWindowScrollBarX(e){return getBoundingClientRect$1(getDocumentElement$1(e)).left+getWindowScroll(e).scrollLeft}function getViewportRect(e,t){var n=getWindow$1(e),a=getDocumentElement$1(e),s=n.visualViewport,o=a.clientWidth,V=a.clientHeight,W=0,G=0;if(s){o=s.width,V=s.height;var U=isLayoutViewport();(U||!U&&t==="fixed")&&(W=s.offsetLeft,G=s.offsetTop)}return{width:o,height:V,x:W+getWindowScrollBarX(e),y:G}}function getDocumentRect(e){var t,n=getDocumentElement$1(e),a=getWindowScroll(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=max$1(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),V=max$1(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),W=-a.scrollLeft+getWindowScrollBarX(e),G=-a.scrollTop;return getComputedStyle$2(s||n).direction==="rtl"&&(W+=max$1(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:V,x:W,y:G}}function isScrollParent(e){var t=getComputedStyle$2(e),n=t.overflow,a=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+a)}function getScrollParent$1(e){return["html","body","#document"].indexOf(getNodeName$1(e))>=0?e.ownerDocument.body:isHTMLElement$1(e)&&isScrollParent(e)?e:getScrollParent$1(getParentNode$1(e))}function listScrollParents(e,t){var n;t===void 0&&(t=[]);var a=getScrollParent$1(e),s=a===((n=e.ownerDocument)==null?void 0:n.body),o=getWindow$1(a),V=s?[o].concat(o.visualViewport||[],isScrollParent(a)?a:[]):a,W=t.concat(V);return s?W:W.concat(listScrollParents(getParentNode$1(V)))}function rectToClientRect$1(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getInnerBoundingClientRect(e,t){var n=getBoundingClientRect$1(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function getClientRectFromMixedType(e,t,n){return t===viewport?rectToClientRect$1(getViewportRect(e,n)):isElement$1(t)?getInnerBoundingClientRect(t,n):rectToClientRect$1(getDocumentRect(getDocumentElement$1(e)))}function getClippingParents(e){var t=listScrollParents(getParentNode$1(e)),n=["absolute","fixed"].indexOf(getComputedStyle$2(e).position)>=0,a=n&&isHTMLElement$1(e)?getOffsetParent(e):e;return isElement$1(a)?t.filter(function(s){return isElement$1(s)&&contains(s,a)&&getNodeName$1(s)!=="body"}):[]}function getClippingRect(e,t,n,a){var s=t==="clippingParents"?getClippingParents(e):[].concat(t),o=[].concat(s,[n]),V=o[0],W=o.reduce(function(G,U){var J=getClientRectFromMixedType(e,U,a);return G.top=max$1(J.top,G.top),G.right=min$1(J.right,G.right),G.bottom=min$1(J.bottom,G.bottom),G.left=max$1(J.left,G.left),G},getClientRectFromMixedType(e,V,a));return W.width=W.right-W.left,W.height=W.bottom-W.top,W.x=W.left,W.y=W.top,W}function computeOffsets(e){var t=e.reference,n=e.element,a=e.placement,s=a?getBasePlacement(a):null,o=a?getVariation(a):null,V=t.x+t.width/2-n.width/2,W=t.y+t.height/2-n.height/2,G;switch(s){case top:G={x:V,y:t.y-n.height};break;case bottom:G={x:V,y:t.y+t.height};break;case right:G={x:t.x+t.width,y:W};break;case left:G={x:t.x-n.width,y:W};break;default:G={x:t.x,y:t.y}}var U=s?getMainAxisFromPlacement(s):null;if(U!=null){var J=U==="y"?"height":"width";switch(o){case start:G[U]=G[U]-(t[J]/2-n[J]/2);break;case end:G[U]=G[U]+(t[J]/2-n[J]/2);break}}return G}function detectOverflow(e,t){t===void 0&&(t={});var n=t,a=n.placement,s=a===void 0?e.placement:a,o=n.strategy,V=o===void 0?e.strategy:o,W=n.boundary,G=W===void 0?clippingParents:W,U=n.rootBoundary,J=U===void 0?viewport:U,K=n.elementContext,ne=K===void 0?popper:K,ce=n.altBoundary,me=ce===void 0?!1:ce,ue=n.padding,ve=ue===void 0?0:ue,pe=mergePaddingObject(typeof ve!="number"?ve:expandToHashMap(ve,basePlacements)),xe=ne===popper?reference:popper,ge=e.rects.popper,ye=e.elements[me?xe:ne],Re=getClippingRect(isElement$1(ye)?ye:ye.contextElement||getDocumentElement$1(e.elements.popper),G,J,V),Se=getBoundingClientRect$1(e.elements.reference),Ae=computeOffsets({reference:Se,element:ge,placement:s}),Te=rectToClientRect$1(Object.assign({},ge,Ae)),Le=ne===popper?Te:Se,$e={top:Re.top-Le.top+pe.top,bottom:Le.bottom-Re.bottom+pe.bottom,left:Re.left-Le.left+pe.left,right:Le.right-Re.right+pe.right},We=e.modifiersData.offset;if(ne===popper&&We){var ke=We[s];Object.keys($e).forEach(function(Ge){var Be=[right,bottom].indexOf(Ge)>=0?1:-1,Pe=[top,bottom].indexOf(Ge)>=0?"y":"x";$e[Ge]+=ke[Pe]*Be})}return $e}function computeAutoPlacement(e,t){t===void 0&&(t={});var n=t,a=n.placement,s=n.boundary,o=n.rootBoundary,V=n.padding,W=n.flipVariations,G=n.allowedAutoPlacements,U=G===void 0?placements:G,J=getVariation(a),K=J?W?variationPlacements:variationPlacements.filter(function(me){return getVariation(me)===J}):basePlacements,ne=K.filter(function(me){return U.indexOf(me)>=0});ne.length===0&&(ne=K);var ce=ne.reduce(function(me,ue){return me[ue]=detectOverflow(e,{placement:ue,boundary:s,rootBoundary:o,padding:V})[getBasePlacement(ue)],me},{});return Object.keys(ce).sort(function(me,ue){return ce[me]-ce[ue]})}function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===auto)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}function flip(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,V=n.altAxis,W=V===void 0?!0:V,G=n.fallbackPlacements,U=n.padding,J=n.boundary,K=n.rootBoundary,ne=n.altBoundary,ce=n.flipVariations,me=ce===void 0?!0:ce,ue=n.allowedAutoPlacements,ve=t.options.placement,pe=getBasePlacement(ve),xe=pe===ve,ge=G||(xe||!me?[getOppositePlacement(ve)]:getExpandedFallbackPlacements(ve)),ye=[ve].concat(ge).reduce(function(Ke,rt){return Ke.concat(getBasePlacement(rt)===auto?computeAutoPlacement(t,{placement:rt,boundary:J,rootBoundary:K,padding:U,flipVariations:me,allowedAutoPlacements:ue}):rt)},[]),Re=t.rects.reference,Se=t.rects.popper,Ae=new Map,Te=!0,Le=ye[0],$e=0;$e<ye.length;$e++){var We=ye[$e],ke=getBasePlacement(We),Ge=getVariation(We)===start,Be=[top,bottom].indexOf(ke)>=0,Pe=Be?"width":"height",je=detectOverflow(t,{placement:We,boundary:J,rootBoundary:K,altBoundary:ne,padding:U}),Ne=Be?Ge?right:left:Ge?bottom:top;Re[Pe]>Se[Pe]&&(Ne=getOppositePlacement(Ne));var _e=getOppositePlacement(Ne),Ie=[];if(o&&Ie.push(je[ke]<=0),W&&Ie.push(je[Ne]<=0,je[_e]<=0),Ie.every(function(Ke){return Ke})){Le=We,Te=!1;break}Ae.set(We,Ie)}if(Te)for(var Fe=me?3:1,Ue=function(rt){var et=ye.find(function(Qe){var lt=Ae.get(Qe);if(lt)return lt.slice(0,rt).every(function(it){return it})});if(et)return Le=et,"break"},Je=Fe;Je>0;Je--){var Ze=Ue(Je);if(Ze==="break")break}t.placement!==Le&&(t.modifiersData[a]._skip=!0,t.placement=Le,t.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function isAnySideFullyClipped(e){return[top,right,bottom,left].some(function(t){return e[t]>=0})}function hide(e){var t=e.state,n=e.name,a=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,V=detectOverflow(t,{elementContext:"reference"}),W=detectOverflow(t,{altBoundary:!0}),G=getSideOffsets(V,a),U=getSideOffsets(W,s,o),J=isAnySideFullyClipped(G),K=isAnySideFullyClipped(U);t.modifiersData[n]={referenceClippingOffsets:G,popperEscapeOffsets:U,isReferenceHidden:J,hasPopperEscaped:K},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":J,"data-popper-escaped":K})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(e,t,n){var a=getBasePlacement(e),s=[left,top].indexOf(a)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,V=o[0],W=o[1];return V=V||0,W=(W||0)*s,[left,right].indexOf(a)>=0?{x:W,y:V}:{x:V,y:W}}function offset(e){var t=e.state,n=e.options,a=e.name,s=n.offset,o=s===void 0?[0,0]:s,V=placements.reduce(function(J,K){return J[K]=distanceAndSkiddingToXY(K,t.rects,o),J},{}),W=V[t.placement],G=W.x,U=W.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=G,t.modifiersData.popperOffsets.y+=U),t.modifiersData[a]=V}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(e){return e==="x"?"y":"x"}function preventOverflow(e){var t=e.state,n=e.options,a=e.name,s=n.mainAxis,o=s===void 0?!0:s,V=n.altAxis,W=V===void 0?!1:V,G=n.boundary,U=n.rootBoundary,J=n.altBoundary,K=n.padding,ne=n.tether,ce=ne===void 0?!0:ne,me=n.tetherOffset,ue=me===void 0?0:me,ve=detectOverflow(t,{boundary:G,rootBoundary:U,padding:K,altBoundary:J}),pe=getBasePlacement(t.placement),xe=getVariation(t.placement),ge=!xe,ye=getMainAxisFromPlacement(pe),Re=getAltAxis(ye),Se=t.modifiersData.popperOffsets,Ae=t.rects.reference,Te=t.rects.popper,Le=typeof ue=="function"?ue(Object.assign({},t.rects,{placement:t.placement})):ue,$e=typeof Le=="number"?{mainAxis:Le,altAxis:Le}:Object.assign({mainAxis:0,altAxis:0},Le),We=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ke={x:0,y:0};if(Se){if(o){var Ge,Be=ye==="y"?top:left,Pe=ye==="y"?bottom:right,je=ye==="y"?"height":"width",Ne=Se[ye],_e=Ne+ve[Be],Ie=Ne-ve[Pe],Fe=ce?-Te[je]/2:0,Ue=xe===start?Ae[je]:Te[je],Je=xe===start?-Te[je]:-Ae[je],Ze=t.elements.arrow,Ke=ce&&Ze?getLayoutRect(Ze):{width:0,height:0},rt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject(),et=rt[Be],Qe=rt[Pe],lt=within(0,Ae[je],Ke[je]),it=ge?Ae[je]/2-Fe-lt-et-$e.mainAxis:Ue-lt-et-$e.mainAxis,at=ge?-Ae[je]/2+Fe+lt+Qe+$e.mainAxis:Je+lt+Qe+$e.mainAxis,pt=t.elements.arrow&&getOffsetParent(t.elements.arrow),st=pt?ye==="y"?pt.clientTop||0:pt.clientLeft||0:0,vt=(Ge=We?.[ye])!=null?Ge:0,mt=Ne+it-vt-st,ht=Ne+at-vt,Et=within(ce?min$1(_e,mt):_e,Ne,ce?max$1(Ie,ht):Ie);Se[ye]=Et,ke[ye]=Et-Ne}if(W){var kt,Gt=ye==="x"?top:left,Ot=ye==="x"?bottom:right,At=Se[Re],Mt=Re==="y"?"height":"width",Qt=At+ve[Gt],ar=At-ve[Ot],wt=[top,left].indexOf(pe)!==-1,Dt=(kt=We?.[Re])!=null?kt:0,dt=wt?Qt:At-Ae[Mt]-Te[Mt]-Dt+$e.altAxis,xt=wt?At+Ae[Mt]+Te[Mt]-Dt-$e.altAxis:ar,Tt=ce&&wt?withinMaxClamp(dt,At,xt):within(ce?dt:Qt,At,ce?xt:ar);Se[Re]=Tt,ke[Re]=Tt-At}t.modifiersData[a]=ke}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){return e===getWindow$1(e)||!isHTMLElement$1(e)?getWindowScroll(e):getHTMLElementScroll(e)}function isElementScaled(e){var t=e.getBoundingClientRect(),n=round$2(t.width)/e.offsetWidth||1,a=round$2(t.height)/e.offsetHeight||1;return n!==1||a!==1}function getCompositeRect(e,t,n){n===void 0&&(n=!1);var a=isHTMLElement$1(t),s=isHTMLElement$1(t)&&isElementScaled(t),o=getDocumentElement$1(t),V=getBoundingClientRect$1(e,s,n),W={scrollLeft:0,scrollTop:0},G={x:0,y:0};return(a||!a&&!n)&&((getNodeName$1(t)!=="body"||isScrollParent(o))&&(W=getNodeScroll(t)),isHTMLElement$1(t)?(G=getBoundingClientRect$1(t,!0),G.x+=t.clientLeft,G.y+=t.clientTop):o&&(G.x=getWindowScrollBarX(o))),{x:V.left+W.scrollLeft-G.x,y:V.top+W.scrollTop-G.y,width:V.width,height:V.height}}function order$1(e){var t=new Map,n=new Set,a=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var V=[].concat(o.requires||[],o.requiresIfExists||[]);V.forEach(function(W){if(!n.has(W)){var G=t.get(W);G&&s(G)}}),a.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),a}function orderModifiers(e){var t=order$1(e);return modifierPhases.reduce(function(n,a){return n.concat(t.filter(function(s){return s.phase===a}))},[])}function debounce$2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mergeByName(e){var t=e.reduce(function(n,a){var s=n[a.name];return n[a.name]=s?Object.assign({},s,a,{options:Object.assign({},s.options,a.options),data:Object.assign({},s.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function popperGenerator(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?DEFAULT_OPTIONS:s;return function(W,G,U){U===void 0&&(U=o);var J={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,o),modifiersData:{},elements:{reference:W,popper:G},attributes:{},styles:{}},K=[],ne=!1,ce={state:J,setOptions:function(pe){var xe=typeof pe=="function"?pe(J.options):pe;ue(),J.options=Object.assign({},o,J.options,xe),J.scrollParents={reference:isElement$1(W)?listScrollParents(W):W.contextElement?listScrollParents(W.contextElement):[],popper:listScrollParents(G)};var ge=orderModifiers(mergeByName([].concat(a,J.options.modifiers)));return J.orderedModifiers=ge.filter(function(ye){return ye.enabled}),me(),ce.update()},forceUpdate:function(){if(!ne){var pe=J.elements,xe=pe.reference,ge=pe.popper;if(areValidElements(xe,ge)){J.rects={reference:getCompositeRect(xe,getOffsetParent(ge),J.options.strategy==="fixed"),popper:getLayoutRect(ge)},J.reset=!1,J.placement=J.options.placement,J.orderedModifiers.forEach(function($e){return J.modifiersData[$e.name]=Object.assign({},$e.data)});for(var ye=0;ye<J.orderedModifiers.length;ye++){if(J.reset===!0){J.reset=!1,ye=-1;continue}var Re=J.orderedModifiers[ye],Se=Re.fn,Ae=Re.options,Te=Ae===void 0?{}:Ae,Le=Re.name;typeof Se=="function"&&(J=Se({state:J,options:Te,name:Le,instance:ce})||J)}}}},update:debounce$2(function(){return new Promise(function(ve){ce.forceUpdate(),ve(J)})}),destroy:function(){ue(),ne=!0}};if(!areValidElements(W,G))return ce;ce.setOptions(U).then(function(ve){!ne&&U.onFirstUpdate&&U.onFirstUpdate(ve)});function me(){J.orderedModifiers.forEach(function(ve){var pe=ve.name,xe=ve.options,ge=xe===void 0?{}:xe,ye=ve.effect;if(typeof ye=="function"){var Re=ye({state:J,name:pe,instance:ce,options:ge}),Se=function(){};K.push(Re||Se)}})}function ue(){K.forEach(function(ve){return ve()}),K=[]}return ce}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$2,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers}),reactFastCompare,hasRequiredReactFastCompare;function requireReactFastCompare(){if(hasRequiredReactFastCompare)return reactFastCompare;hasRequiredReactFastCompare=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",a=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(o,V){if(o===V)return!0;if(o&&V&&typeof o=="object"&&typeof V=="object"){if(o.constructor!==V.constructor)return!1;var W,G,U;if(Array.isArray(o)){if(W=o.length,W!=V.length)return!1;for(G=W;G--!==0;)if(!s(o[G],V[G]))return!1;return!0}var J;if(t&&o instanceof Map&&V instanceof Map){if(o.size!==V.size)return!1;for(J=o.entries();!(G=J.next()).done;)if(!V.has(G.value[0]))return!1;for(J=o.entries();!(G=J.next()).done;)if(!s(G.value[1],V.get(G.value[0])))return!1;return!0}if(n&&o instanceof Set&&V instanceof Set){if(o.size!==V.size)return!1;for(J=o.entries();!(G=J.next()).done;)if(!V.has(G.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(V)){if(W=o.length,W!=V.length)return!1;for(G=W;G--!==0;)if(o[G]!==V[G])return!1;return!0}if(o.constructor===RegExp)return o.source===V.source&&o.flags===V.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof V.valueOf=="function")return o.valueOf()===V.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof V.toString=="function")return o.toString()===V.toString();if(U=Object.keys(o),W=U.length,W!==Object.keys(V).length)return!1;for(G=W;G--!==0;)if(!Object.prototype.hasOwnProperty.call(V,U[G]))return!1;if(e&&o instanceof Element)return!1;for(G=W;G--!==0;)if(!((U[G]==="_owner"||U[G]==="__v"||U[G]==="__o")&&o.$$typeof)&&!s(o[U[G]],V[U[G]]))return!1;return!0}return o!==o&&V!==V}return reactFastCompare=function(V,W){try{return s(V,W)}catch(G){if((G.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw G}},reactFastCompare}var reactFastCompareExports=requireReactFastCompare();const isEqual$1=getDefaultExportFromCjs(reactFastCompareExports);var EMPTY_MODIFIERS=[],usePopper=function(t,n,a){a===void 0&&(a={});var s=React__namespace.useRef(null),o={onFirstUpdate:a.onFirstUpdate,placement:a.placement||"bottom",strategy:a.strategy||"absolute",modifiers:a.modifiers||EMPTY_MODIFIERS},V=React__namespace.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),W=V[0],G=V[1],U=React__namespace.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(ce){var me=ce.state,ue=Object.keys(me.elements);ReactDOM__namespace.flushSync(function(){G({styles:fromEntries(ue.map(function(ve){return[ve,me.styles[ve]||{}]})),attributes:fromEntries(ue.map(function(ve){return[ve,me.attributes[ve]]}))})})},requires:["computeStyles"]}},[]),J=React__namespace.useMemo(function(){var ne={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[U,{name:"applyStyles",enabled:!1}])};return isEqual$1(s.current,ne)?s.current||ne:(s.current=ne,ne)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,U]),K=React__namespace.useRef();return useIsomorphicLayoutEffect$2(function(){K.current&&K.current.setOptions(J)},[J]),useIsomorphicLayoutEffect$2(function(){if(!(t==null||n==null)){var ne=a.createPopper||createPopper,ce=ne(t,n,J);return K.current=ce,function(){ce.destroy(),K.current=null}}},[t,n,a.createPopper]),{state:K.current?K.current.state:null,styles:W.styles,attributes:W.attributes,update:K.current?K.current.update:null,forceUpdate:K.current?K.current.forceUpdate:null}};function useGetLatest(e){var t=React__namespace.useRef(e);return t.current=e,React__namespace.useCallback(function(){return t.current},[])}var noop$1=function(){};function useControlledState(e){var t=e.initial,n=e.value,a=e.onChange,s=a===void 0?noop$1:a;if(t===void 0&&n===void 0)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var o=React__namespace.useState(t),V=o[0],W=o[1],G=useGetLatest(V),U=React__namespace.useCallback(function(K){var ne=G(),ce=typeof K=="function"?K(ne):K;typeof ce.persist=="function"&&ce.persist(),W(ce),typeof s=="function"&&s(ce)},[G,s]),J=n!==void 0;return[J?n:V,J?s:U]}function generateBoundingClientRect(e,t){return e===void 0&&(e=0),t===void 0&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:function(){return null}}}}var _excluded$7=["styles","attributes"],virtualElement={getBoundingClientRect:generateBoundingClientRect()},defaultConfig={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"};function usePopperTooltip(e,t){var n,a,s;e===void 0&&(e={}),t===void 0&&(t={});var o=Object.keys(defaultConfig).reduce(function(Pe,je){var Ne;return _extends$5({},Pe,(Ne={},Ne[je]=Pe[je]!==void 0?Pe[je]:defaultConfig[je],Ne))},e),V=React__namespace.useMemo(function(){return[{name:"offset",options:{offset:o.offset}}]},Array.isArray(o.offset)?o.offset:[]),W=_extends$5({},t,{placement:t.placement||o.placement,modifiers:t.modifiers||V}),G=React__namespace.useState(null),U=G[0],J=G[1],K=React__namespace.useState(null),ne=K[0],ce=K[1],me=useControlledState({initial:o.defaultVisible,value:o.visible,onChange:o.onVisibleChange}),ue=me[0],ve=me[1],pe=React__namespace.useRef();React__namespace.useEffect(function(){return function(){return clearTimeout(pe.current)}},[]);var xe=usePopper(o.followCursor?virtualElement:U,ne,W),ge=xe.styles,ye=xe.attributes,Re=_objectWithoutPropertiesLoose$5(xe,_excluded$7),Se=Re.update,Ae=useGetLatest({visible:ue,triggerRef:U,tooltipRef:ne,finalConfig:o}),Te=React__namespace.useCallback(function(Pe){return Array.isArray(o.trigger)?o.trigger.includes(Pe):o.trigger===Pe},Array.isArray(o.trigger)?o.trigger:[o.trigger]),Le=React__namespace.useCallback(function(){clearTimeout(pe.current),pe.current=window.setTimeout(function(){return ve(!1)},o.delayHide)},[o.delayHide,ve]),$e=React__namespace.useCallback(function(){clearTimeout(pe.current),pe.current=window.setTimeout(function(){return ve(!0)},o.delayShow)},[o.delayShow,ve]),We=React__namespace.useCallback(function(){Ae().visible?Le():$e()},[Ae,Le,$e]);React__namespace.useEffect(function(){if(Ae().finalConfig.closeOnOutsideClick){var Pe=function(Ne){var _e,Ie=Ae(),Fe=Ie.tooltipRef,Ue=Ie.triggerRef,Je=(Ne.composedPath==null||(_e=Ne.composedPath())==null?void 0:_e[0])||Ne.target;Je instanceof Node&&Fe!=null&&Ue!=null&&!Fe.contains(Je)&&!Ue.contains(Je)&&Le()};return document.addEventListener("mousedown",Pe),function(){return document.removeEventListener("mousedown",Pe)}}},[Ae,Le]),React__namespace.useEffect(function(){if(!(U==null||!Te("click")))return U.addEventListener("click",We),function(){return U.removeEventListener("click",We)}},[U,Te,We]),React__namespace.useEffect(function(){if(!(U==null||!Te("double-click")))return U.addEventListener("dblclick",We),function(){return U.removeEventListener("dblclick",We)}},[U,Te,We]),React__namespace.useEffect(function(){if(!(U==null||!Te("right-click"))){var Pe=function(Ne){Ne.preventDefault(),We()};return U.addEventListener("contextmenu",Pe),function(){return U.removeEventListener("contextmenu",Pe)}}},[U,Te,We]),React__namespace.useEffect(function(){if(!(U==null||!Te("focus")))return U.addEventListener("focus",$e),U.addEventListener("blur",Le),function(){U.removeEventListener("focus",$e),U.removeEventListener("blur",Le)}},[U,Te,$e,Le]),React__namespace.useEffect(function(){if(!(U==null||!Te("hover")))return U.addEventListener("mouseenter",$e),U.addEventListener("mouseleave",Le),function(){U.removeEventListener("mouseenter",$e),U.removeEventListener("mouseleave",Le)}},[U,Te,$e,Le]),React__namespace.useEffect(function(){if(!(ne==null||!Te("hover")||!Ae().finalConfig.interactive))return ne.addEventListener("mouseenter",$e),ne.addEventListener("mouseleave",Le),function(){ne.removeEventListener("mouseenter",$e),ne.removeEventListener("mouseleave",Le)}},[ne,Te,$e,Le,Ae]);var ke=Re==null||(n=Re.state)==null||(a=n.modifiersData)==null||(s=a.hide)==null?void 0:s.isReferenceHidden;React__namespace.useEffect(function(){o.closeOnTriggerHidden&&ke&&Le()},[o.closeOnTriggerHidden,Le,ke]),React__namespace.useEffect(function(){if(!o.followCursor||U==null)return;function Pe(je){var Ne=je.clientX,_e=je.clientY;virtualElement.getBoundingClientRect=generateBoundingClientRect(Ne,_e),Se?.()}return U.addEventListener("mousemove",Pe),function(){return U.removeEventListener("mousemove",Pe)}},[o.followCursor,U,Se]),React__namespace.useEffect(function(){if(!(ne==null||Se==null||o.mutationObserverOptions==null)){var Pe=new MutationObserver(Se);return Pe.observe(ne,o.mutationObserverOptions),function(){return Pe.disconnect()}}},[o.mutationObserverOptions,ne,Se]);var Ge=function(je){return je===void 0&&(je={}),_extends$5({},je,{style:_extends$5({},je.style,ge.popper)},ye.popper,{"data-popper-interactive":o.interactive})},Be=function(je){return je===void 0&&(je={}),_extends$5({},je,ye.arrow,{style:_extends$5({},je.style,ge.arrow),"data-popper-arrow":!0})};return _extends$5({getArrowProps:Be,getTooltipProps:Ge,setTooltipRef:ce,setTriggerRef:J,tooltipRef:ne,triggerRef:U,visible:ue},Re)}const detectOS=()=>{if(typeof window>"u"||typeof navigator>"u")return"other";const e=navigator.platform?.toLowerCase()||"",t=navigator.userAgent?.toLowerCase()||"";return e.includes("mac")||t.includes("mac")?"macos":e.includes("win")||t.includes("win")?"windows":e.includes("linux")||t.includes("linux")?"linux":"other"},useOS=()=>React.useMemo(()=>detectOS(),[]),isMacOS=()=>detectOS()==="macos",SHORTCUT_KEY_MAP={Meta:{macos:"⌘",other:"Ctrl"},Alt:{macos:"⌥",other:"Alt"},Shift:{macos:"⇧",other:"Shift"},Control:{macos:"⌃",other:"Ctrl"},Enter:{macos:"↵",other:"Enter"},Delete:{macos:"⌫",other:"Delete"}},mapShortcutKey=(e,t)=>{const n=t??detectOS(),a=SHORTCUT_KEY_MAP[e];return a?n==="macos"?a.macos:a.other:e},mapShortcutKeys=(e,t)=>{const n=t??detectOS();return e.map(a=>mapShortcutKey(a,n))},useShortcutKeys=e=>{const t=useOS();return React.useMemo(()=>mapShortcutKeys(e,t),[e,t])},Tooltip=({children:e,title:t,hideTooltip:n=!1,delayShow:a=!1,whiteSpace:s="initial",placement:o="top",className:V,shortcuts:W})=>{const{getArrowProps:G,getTooltipProps:U,setTooltipRef:J,setTriggerRef:K,visible:ne}=usePopperTooltip({placement:o}),[ce,me]=React.useState(!a),[ue,ve]=React.useState(null),pe=useOS(),xe=React.useMemo(()=>W?mapShortcutKeys(W,pe):void 0,[W,pe]),ge=()=>{if(a){const Re=setTimeout(()=>{me(!0)},1e3);ve(Re)}else me(!0)},ye=()=>{ue&&(clearTimeout(ue),ve(null)),a&&me(!1)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{ref:K,className:V,onMouseEnter:ge,onMouseLeave:ye,children:e}),ne&&(a?ce&&t:t)&&!n&&ReactDOM.createPortal(jsxRuntimeExports.jsxs("div",{ref:J,...U({className:"tooltip-container",style:{whiteSpace:s}}),children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("span",{className:"flex-1",children:t}),xe&&xe.length>0&&jsxRuntimeExports.jsx("span",{className:"flex items-center gap-0.5 flex-shrink-0",children:xe.map((Re,Se)=>jsxRuntimeExports.jsx("kbd",{className:"inline-flex items-center justify-center min-w-[20px] h-5 px-1 bg-neutral-800 rounded text-[11px] font-medium text-[#E5E7EB] leading-none",children:Re},Se))})]}),jsxRuntimeExports.jsx("div",{...G({className:"tooltip-arrow"})})]}),document.body)]})},AIStarIcon=({size:e=24,fill:t="currentColor",fillSecondary:n="white"})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[jsxRuntimeExports.jsx("path",{d:"M17.5128 13.6276L13.7184 11.9717C12.8016 11.5708 12.0696 10.8389 11.6688 9.92205L10.0128 6.12765C9.88322 5.83245 9.46802 5.83245 9.33842 6.12765L7.68242 9.92205C7.28162 10.8389 6.54962 11.5708 5.63282 11.9717L1.83122 13.63C1.53842 13.7572 1.53602 14.1748 1.83122 14.3044L5.69762 16.0132C6.61202 16.4188 7.34162 17.1532 7.73762 18.0724L9.34082 21.7948C9.46802 22.09 9.88802 22.0924 10.0152 21.7948L11.6688 18.0052C12.0696 17.0884 12.8016 16.3565 13.7184 15.9557L17.5128 14.2997C17.808 14.17 17.808 13.7548 17.5128 13.6252V13.6276Z",fill:t}),jsxRuntimeExports.jsx("path",{d:"M22.2624 6.43876L20.0688 5.48116C19.5384 5.25076 19.116 4.82596 18.8856 4.29796L17.928 2.10436C17.8536 1.93396 17.6136 1.93396 17.5392 2.10436L16.5816 4.29796C16.3512 4.82836 15.9264 5.25076 15.3984 5.48116L13.2024 6.43876C13.032 6.51316 13.032 6.75316 13.2024 6.82756L15.4368 7.81636C15.9648 8.04916 16.3872 8.47636 16.6152 9.00676L17.5416 11.1572C17.616 11.3276 17.8584 11.3276 17.9328 11.1572L18.888 8.96836C19.1184 8.43796 19.5432 8.01556 20.0712 7.78516L22.2648 6.82756C22.4352 6.75316 22.4352 6.51316 22.2648 6.43876H22.2624Z",fill:t})]}),AIExtractedIndicator=({position:e="top",title:t="AI Extracted Field"})=>jsxRuntimeExports.jsx(Tooltip,{placement:e,title:t,children:jsxRuntimeExports.jsx("div",{className:"cursor-pointer",children:jsxRuntimeExports.jsx(AIStarIcon,{size:12,fill:"#016DCF",fillSecondary:"#54A4EC"})})}),Required=({isConditional:e})=>jsxRuntimeExports.jsx("span",{className:`${e?"text-yellow-500":"text-red-500"}`,children:"*"}),EyeIcon=({className:e,size:t=16})=>jsxRuntimeExports.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[jsxRuntimeExports.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),jsxRuntimeExports.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),EyeOffIcon=({className:e,size:t=16})=>jsxRuntimeExports.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[jsxRuntimeExports.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),jsxRuntimeExports.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}),CloseIcon$5=({className:e,size:t=16})=>jsxRuntimeExports.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[jsxRuntimeExports.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),jsxRuntimeExports.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),RevertIcon=({className:e,size:t=16})=>jsxRuntimeExports.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[jsxRuntimeExports.jsx("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),jsxRuntimeExports.jsx("path",{d:"M3 3v5h5"})]}),BaseInputField=React.forwardRef(({id:e,label:t,onChange:n,errorMessage:a,successMessage:s,required:o,isRequiredConditional:V=!1,bg:W,tags:G,color:U,className:J,isPasswordField:K,setIsPasswordVisible:ne,inputRef:ce,tooltip:me,suffixIcon:ue,revertBackValue:ve,originalCase:pe=!1,textSize:xe,isAiExtracted:ge=!1,isGTN:ye=!1,gtnName:Re=null,inputClassName:Se="",inputStyle:Ae={},labelClassName:Te,onBlur:Le,isLiveField:$e=!1,isClearable:We=!1,riskDetails:ke,isRiskAnalysisOpen:Ge=!1,RiskDetailsCard:Be,onAddGTNToDocument:Pe,...je},Ne)=>{const{t:_e}=useTranslation(),[Ie,Fe]=React.useState(!1),[Ue,Je]=React.useState(!1),Ze=Ke=>{Pe&&Pe({key:Re,value:Ke})};return jsxRuntimeExports.jsxs("div",{className:cn$1("flex gap-0.5 relative",Ue&&ye?"border rounded-lg border-primary-100 bg-primary-50 p-1 focus:ring-blue-500 focus:border-blue-500 dark:focus:ring-neutral-50 dark:focus:border-neutral-50":""),onMouseEnter:()=>Je(!0),onMouseLeave:()=>Je(!1),children:[ye&&!Ue?jsxRuntimeExports.jsx("div",{className:"w-1 h-1 bg-primary-600 rounded-full animate-blink mt-1.5"}):null,jsxRuntimeExports.jsxs("div",{className:cn$1("flex flex-col w-full",J),children:[jsxRuntimeExports.jsx("style",{children:`
|
|
50
50
|
.dark input:-webkit-autofill,
|
|
51
51
|
.dark input:-webkit-autofill:hover,
|
|
52
52
|
.dark input:-webkit-autofill:focus {
|