@prt-ts/fluent-react-table-v2 9.36.0-build.2.0 → 9.40.0-build.1.0
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/README.md +7 -0
- package/index.js +772 -153
- package/package.json +7 -11
- package/src/index.d.ts +1 -0
- package/src/lib/components/filters/FilterDrawer.d.ts +9 -0
- package/{lib → src/lib}/components/filters/FilterMultiSelectCheckbox.d.ts +2 -2
- package/src/lib/components/filters/index.d.ts +2 -0
- package/{lib → src/lib}/components/grid-header/GridHeader.d.ts +2 -0
- package/src/lib/components/loading/useLoadingStyles.d.ts +1 -0
- package/src/lib/components/pagination/index.d.ts +1 -0
- package/src/lib/components/pagination/usePaginationStyles.d.ts +1 -0
- package/{lib → src/lib}/components/table/Table.d.ts +3 -3
- package/src/lib/components/table/useTableStaticStyles.d.ts +2 -0
- package/{lib/components/thead → src/lib/components}/useGridContainer.d.ts +2 -2
- package/vite.config.d.ts +2 -0
- package/index.d.ts +0 -1
- package/index.mjs +0 -19192
- package/lib/components/filters/index.d.ts +0 -1
- package/lib/components/loading/useLoadingStyles.d.ts +0 -1
- package/lib/components/pagination/usePaginationStyles.d.ts +0 -1
- package/lib/components/table/useTableStaticStyles.d.ts +0 -2
- /package/{lib → src/lib}/components/GridContainer.d.ts +0 -0
- /package/{lib → src/lib}/components/filters/Filter.d.ts +0 -0
- /package/{lib → src/lib}/components/filters/FilterMultiSelectRadio.d.ts +0 -0
- /package/{lib → src/lib}/components/grid-header/index.d.ts +0 -0
- /package/{lib → src/lib}/components/grid-header/useGridHeaderStyles.d.ts +0 -0
- /package/{lib → src/lib}/components/icon-components/GridIcons.d.ts +0 -0
- /package/{lib → src/lib}/components/index.d.ts +0 -0
- /package/{lib → src/lib}/components/loading/Loading.d.ts +0 -0
- /package/{lib → src/lib}/components/loading/index.d.ts +0 -0
- /package/{lib → src/lib}/components/no-item/NoItemGrid.d.ts +0 -0
- /package/{lib → src/lib}/components/no-item/index.d.ts +0 -0
- /package/{lib → src/lib}/components/no-item/useNoItemGridStyles.d.ts +0 -0
- /package/{lib → src/lib}/components/no-search-result/NoSearchResult.d.ts +0 -0
- /package/{lib → src/lib}/components/no-search-result/index.d.ts +0 -0
- /package/{lib → src/lib}/components/no-search-result/useNoSearchResultStyles.d.ts +0 -0
- /package/{lib → src/lib}/components/pagination/Pagination.d.ts +0 -0
- /package/{lib → src/lib}/components/table/index.d.ts +0 -0
- /package/{lib → src/lib}/components/thead/HeaderCell.d.ts +0 -0
- /package/{lib → src/lib}/components/thead/index.d.ts +0 -0
- /package/{lib → src/lib}/index.d.ts +0 -0
- /package/{lib → src/lib}/types/TableProps.d.ts +0 -0
- /package/{lib → src/lib}/types/TableRef.d.ts +0 -0
- /package/{lib → src/lib}/types/index.d.ts +0 -0
package/index.js
CHANGED
|
@@ -1,153 +1,772 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),q=require("react"),qu=require("react-dom");function Pi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Lu=Pi(C),y=Pi(q),Vu=Pi(qu),qa=q.createContext({dragDropManager:void 0});function Qe(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var ys=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),vn=function(){return Math.random().toString(36).substring(7).split("").join(".")},ws={INIT:"@@redux/INIT"+vn(),REPLACE:"@@redux/REPLACE"+vn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+vn()}};function Hu(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function $u(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Uu(e))return"date";if(Wu(e))return"error";var r=Gu(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Gu(e){return typeof e.constructor=="function"?e.constructor.name:null}function Wu(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Uu(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function fr(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=$u(e)),t}function La(e,t,r){var o;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Qe(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Qe(1):"Expected the enhancer to be a function. Instead, received: '"+fr(r)+"'");return r(La)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Qe(2):"Expected the root reducer to be a function. Instead, received: '"+fr(e)+"'");var n=e,i=t,s=[],a=s,l=!1;function u(){a===s&&(a=s.slice())}function c(){if(l)throw new Error(process.env.NODE_ENV==="production"?Qe(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?Qe(4):"Expected the listener to be a function. Instead, received: '"+fr(h)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?Qe(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var b=!0;return u(),a.push(h),function(){if(b){if(l)throw new Error(process.env.NODE_ENV==="production"?Qe(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");b=!1,u();var m=a.indexOf(h);a.splice(m,1),s=null}}}function g(h){if(!Hu(h))throw new Error(process.env.NODE_ENV==="production"?Qe(7):"Actions must be plain objects. Instead, the actual type was: '"+fr(h)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof h.type>"u")throw new Error(process.env.NODE_ENV==="production"?Qe(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error(process.env.NODE_ENV==="production"?Qe(9):"Reducers may not dispatch actions.");try{l=!0,i=n(i,h)}finally{l=!1}for(var b=s=a,v=0;v<b.length;v++){var m=b[v];m()}return h}function d(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?Qe(10):"Expected the nextReducer to be a function. Instead, received: '"+fr(h));n=h,g({type:ws.REPLACE})}function p(){var h,b=f;return h={subscribe:function(m){if(typeof m!="object"||m===null)throw new Error(process.env.NODE_ENV==="production"?Qe(11):"Expected the observer to be an object. Instead, received: '"+fr(m)+"'");function w(){m.next&&m.next(c())}w();var x=b(w);return{unsubscribe:x}}},h[ys]=function(){return this},h}return g({type:ws.INIT}),o={dispatch:g,subscribe:f,getState:c,replaceReducer:d},o[ys]=p,o}function K(e,t,...r){if(Ku()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let o;if(t===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;o=new Error(t.replace(/%s/g,function(){return r[n++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}function Ku(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function Xu(e,t,r){return t.split(".").reduce((o,n)=>o&&o[n]?o[n]:r||null,e)}function Zu(e,t){return e.filter(r=>r!==t)}function Va(e){return typeof e=="object"}function Yu(e,t){const r=new Map,o=i=>{r.set(i,r.has(i)?r.get(i)+1:1)};e.forEach(o),t.forEach(o);const n=[];return r.forEach((i,s)=>{i===1&&n.push(s)}),n}function Qu(e,t){return e.filter(r=>t.indexOf(r)>-1)}const Ni="dnd-core/INIT_COORDS",jo="dnd-core/BEGIN_DRAG",Ti="dnd-core/PUBLISH_DRAG_SOURCE",Mo="dnd-core/HOVER",Ao="dnd-core/DROP",qo="dnd-core/END_DRAG";function xs(e,t){return{type:Ni,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const Ju={type:Ni,payload:{clientOffset:null,sourceClientOffset:null}};function ed(e){return function(r=[],o={publishSource:!0}){const{publishSource:n=!0,clientOffset:i,getSourceClientOffset:s}=o,a=e.getMonitor(),l=e.getRegistry();e.dispatch(xs(i)),td(r,a,l);const u=nd(r,a);if(u==null){e.dispatch(Ju);return}let c=null;if(i){if(!s)throw new Error("getSourceClientOffset must be defined");rd(s),c=s(u)}e.dispatch(xs(i,c));const g=l.getSource(u).beginDrag(a,u);if(g==null)return;od(g),l.pinSource(u);const d=l.getSourceType(u);return{type:jo,payload:{itemType:d,item:g,sourceId:u,clientOffset:i||null,sourceClientOffset:c||null,isSourcePublic:!!n}}}}function td(e,t,r){K(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(o){K(r.getSource(o),"Expected sourceIds to be registered.")})}function rd(e){K(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function od(e){K(Va(e),"Item must be an object.")}function nd(e,t){let r=null;for(let o=e.length-1;o>=0;o--)if(t.canDragSource(e[o])){r=e[o];break}return r}function id(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),o.forEach(function(n){id(e,n,r[n])})}return e}function ad(e){return function(r={}){const o=e.getMonitor(),n=e.getRegistry();ld(o),dd(o).forEach((s,a)=>{const l=cd(s,a,n,o),u={type:Ao,payload:{dropResult:sd({},r,l)}};e.dispatch(u)})}}function ld(e){K(e.isDragging(),"Cannot call drop while not dragging."),K(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function cd(e,t,r,o){const n=r.getTarget(e);let i=n?n.drop(o,e):void 0;return ud(i),typeof i>"u"&&(i=t===0?{}:o.getDropResult()),i}function ud(e){K(typeof e>"u"||Va(e),"Drop result must either be an object or undefined.")}function dd(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function fd(e){return function(){const r=e.getMonitor(),o=e.getRegistry();gd(r);const n=r.getSourceId();return n!=null&&(o.getSource(n,!0).endDrag(r,n),o.unpinSource()),{type:qo}}}function gd(e){K(e.isDragging(),"Cannot call endDrag while not dragging.")}function Zn(e,t){return t===null?e===null:Array.isArray(e)?e.some(r=>r===t):e===t}function pd(e){return function(r,{clientOffset:o}={}){hd(r);const n=r.slice(0),i=e.getMonitor(),s=e.getRegistry(),a=i.getItemType();return md(n,s,a),vd(n,i,s),bd(n,i,s),{type:Mo,payload:{targetIds:n,clientOffset:o||null}}}}function hd(e){K(Array.isArray(e),"Expected targetIds to be an array.")}function vd(e,t,r){K(t.isDragging(),"Cannot call hover while not dragging."),K(!t.didDrop(),"Cannot call hover after drop.");for(let o=0;o<e.length;o++){const n=e[o];K(e.lastIndexOf(n)===o,"Expected targetIds to be unique in the passed array.");const i=r.getTarget(n);K(i,"Expected targetIds to be registered.")}}function md(e,t,r){for(let o=e.length-1;o>=0;o--){const n=e[o],i=t.getTargetType(n);Zn(i,r)||e.splice(o,1)}}function bd(e,t,r){e.forEach(function(o){r.getTarget(o).hover(t,o)})}function yd(e){return function(){if(e.getMonitor().isDragging())return{type:Ti}}}function wd(e){return{beginDrag:ed(e),publishDragSource:yd(e),hover:pd(e),drop:ad(e),endDrag:fd(e)}}class xd{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:r}=this.store;function o(i){return(...s)=>{const a=i.apply(t,s);typeof a<"u"&&r(a)}}const n=wd(this);return Object.keys(n).reduce((i,s)=>{const a=n[s];return i[s]=o(a),i},{})}dispatch(t){this.store.dispatch(t)}constructor(t,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const o=this.store.getState().refCount>0;this.backend&&(o&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!o&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=r,t.subscribe(this.handleRefCountChange)}}function kd(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Ha(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Sd(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:o}=e;return!t||!r||!o?null:Ha(kd(t,o),r)}function _d(e){const{clientOffset:t,initialClientOffset:r}=e;return!t||!r?null:Ha(t,r)}const Mr=[],Di=[];Mr.__IS_NONE__=!0;Di.__IS_ALL__=!0;function Cd(e,t){return e===Mr?!1:e===Di||typeof t>"u"?!0:Qu(t,e).length>0}class Bd{subscribeToStateChange(t,r={}){const{handlerIds:o}=r;K(typeof t=="function","listener must be a function."),K(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");let n=this.store.getState().stateId;const i=()=>{const s=this.store.getState(),a=s.stateId;try{a===n||a===n+1&&!Cd(s.dirtyHandlerIds,o)||t()}finally{n=a}};return this.store.subscribe(i)}subscribeToOffsetChange(t){K(typeof t=="function","listener must be a function.");let r=this.store.getState().dragOffset;const o=()=>{const n=this.store.getState().dragOffset;n!==r&&(r=n,t())};return this.store.subscribe(o)}canDragSource(t){if(!t)return!1;const r=this.registry.getSource(t);return K(r,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:r.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const r=this.registry.getTarget(t);if(K(r,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const o=this.registry.getTargetType(t),n=this.getItemType();return Zn(o,n)&&r.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const r=this.registry.getSource(t,!0);if(K(r,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const o=this.registry.getSourceType(t),n=this.getItemType();return o!==n?!1:r.isDragging(this,t)}isOverTarget(t,r={shallow:!1}){if(!t)return!1;const{shallow:o}=r;if(!this.isDragging())return!1;const n=this.registry.getTargetType(t),i=this.getItemType();if(i&&!Zn(n,i))return!1;const s=this.getTargetIds();if(!s.length)return!1;const a=s.indexOf(t);return o?a===s.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return Sd(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return _d(this.store.getState().dragOffset)}constructor(t,r){this.store=t,this.registry=r}}const ks=typeof global<"u"?global:self,$a=ks.MutationObserver||ks.WebKitMutationObserver;function Ga(e){return function(){const r=setTimeout(n,0),o=setInterval(n,50);function n(){clearTimeout(r),clearInterval(o),e()}}}function Rd(e){let t=1;const r=new $a(e),o=document.createTextNode("");return r.observe(o,{characterData:!0}),function(){t=-t,o.data=t}}const Ed=typeof $a=="function"?Rd:Ga;class Pd{enqueueTask(t){const{queue:r,requestFlush:o}=this;r.length||(o(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let o=0,n=t.length-this.index;o<n;o++)t[o]=t[o+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=Ed(this.flush),this.requestErrorThrow=Ga(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Nd{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class Td{create(t){const r=this.freeTasks,o=r.length?r.pop():new Nd(this.onError,n=>r[r.length]=n);return o.task=t,o}constructor(t){this.onError=t,this.freeTasks=[]}}const Wa=new Pd,Dd=new Td(Wa.registerPendingError);function Fd(e){Wa.enqueueTask(Dd.create(e))}const Fi="dnd-core/ADD_SOURCE",Ii="dnd-core/ADD_TARGET",Oi="dnd-core/REMOVE_SOURCE",Lo="dnd-core/REMOVE_TARGET";function Id(e){return{type:Fi,payload:{sourceId:e}}}function Od(e){return{type:Ii,payload:{targetId:e}}}function zd(e){return{type:Oi,payload:{sourceId:e}}}function jd(e){return{type:Lo,payload:{targetId:e}}}function Md(e){K(typeof e.canDrag=="function","Expected canDrag to be a function."),K(typeof e.beginDrag=="function","Expected beginDrag to be a function."),K(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Ad(e){K(typeof e.canDrop=="function","Expected canDrop to be a function."),K(typeof e.hover=="function","Expected hover to be a function."),K(typeof e.drop=="function","Expected beginDrag to be a function.")}function Yn(e,t){if(t&&Array.isArray(e)){e.forEach(r=>Yn(r,!1));return}K(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Je;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Je||(Je={}));let qd=0;function Ld(){return qd++}function Vd(e){const t=Ld().toString();switch(e){case Je.SOURCE:return`S${t}`;case Je.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Ss(e){switch(e[0]){case"S":return Je.SOURCE;case"T":return Je.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function _s(e,t){const r=e.entries();let o=!1;do{const{done:n,value:[,i]}=r.next();if(i===t)return!0;o=!!n}while(!o);return!1}class Hd{addSource(t,r){Yn(t),Md(r);const o=this.addHandler(Je.SOURCE,t,r);return this.store.dispatch(Id(o)),o}addTarget(t,r){Yn(t,!0),Ad(r);const o=this.addHandler(Je.TARGET,t,r);return this.store.dispatch(Od(o)),o}containsHandler(t){return _s(this.dragSources,t)||_s(this.dropTargets,t)}getSource(t,r=!1){return K(this.isSourceId(t),"Expected a valid source ID."),r&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return K(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return K(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return K(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return Ss(t)===Je.SOURCE}isTargetId(t){return Ss(t)===Je.TARGET}removeSource(t){K(this.getSource(t),"Expected an existing source."),this.store.dispatch(zd(t)),Fd(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){K(this.getTarget(t),"Expected an existing target."),this.store.dispatch(jd(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const r=this.getSource(t);K(r,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=r}unpinSource(){K(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,r,o){const n=Vd(t);return this.types.set(n,r),t===Je.SOURCE?this.dragSources.set(n,o):t===Je.TARGET&&this.dropTargets.set(n,o),n}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const $d=(e,t)=>e===t;function Gd(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Wd(e,t,r=$d){if(e.length!==t.length)return!1;for(let o=0;o<e.length;++o)if(!r(e[o],t[o]))return!1;return!0}function Ud(e=Mr,t){switch(t.type){case Mo:break;case Fi:case Ii:case Lo:case Oi:return Mr;case jo:case Ti:case qo:case Ao:default:return Di}const{targetIds:r=[],prevTargetIds:o=[]}=t.payload,n=Yu(r,o);if(!(n.length>0||!Wd(r,o)))return Mr;const s=o[o.length-1],a=r[r.length-1];return s!==a&&(s&&n.push(s),a&&n.push(a)),n}function Kd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),o.forEach(function(n){Kd(e,n,r[n])})}return e}const Cs={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Zd(e=Cs,t){const{payload:r}=t;switch(t.type){case Ni:case jo:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Mo:return Gd(e.clientOffset,r.clientOffset)?e:Xd({},e,{clientOffset:r.clientOffset});case qo:case Ao:return Cs;default:return e}}function Yd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),o.forEach(function(n){Yd(e,n,r[n])})}return e}const Qd={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Jd(e=Qd,t){const{payload:r}=t;switch(t.type){case jo:return gr({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case Ti:return gr({},e,{isSourcePublic:!0});case Mo:return gr({},e,{targetIds:r.targetIds});case Lo:return e.targetIds.indexOf(r.targetId)===-1?e:gr({},e,{targetIds:Zu(e.targetIds,r.targetId)});case Ao:return gr({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case qo:return gr({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function ef(e=0,t){switch(t.type){case Fi:case Ii:return e+1;case Oi:case Lo:return e-1;default:return e}}function tf(e=0){return e+1}function rf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function of(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),o.forEach(function(n){rf(e,n,r[n])})}return e}function nf(e={},t){return{dirtyHandlerIds:Ud(e.dirtyHandlerIds,{type:t.type,payload:of({},t.payload,{prevTargetIds:Xu(e,"dragOperation.targetIds",[])})}),dragOffset:Zd(e.dragOffset,t),refCount:ef(e.refCount,t),dragOperation:Jd(e.dragOperation,t),stateId:tf(e.stateId)}}function sf(e,t=void 0,r={},o=!1){const n=af(o),i=new Bd(n,new Hd(n)),s=new xd(n,i),a=e(s,t,r);return s.receiveBackend(a),s}function af(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return La(nf,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function lf(e,t){if(e==null)return{};var r=cf(e,t),o,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function cf(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,i;for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}let Bs=0;const bo=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var uf=q.memo(function(t){var{children:r}=t,o=lf(t,["children"]);const[n,i]=df(o);return q.useEffect(()=>{if(i){const s=Ua();return++Bs,()=>{--Bs===0&&(s[bo]=null)}}},[]),C.jsx(qa.Provider,{value:n,children:r})});function df(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=ff(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}function ff(e,t=Ua(),r,o){const n=t;return n[bo]||(n[bo]={dragDropManager:sf(e,t,r,o)}),n[bo]}function Ua(){return typeof global<"u"?global:window}function gf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pf=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,n,i;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[n]))return!1;for(n=o;n--!==0;){var s=i[n];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r};const hf=gf(pf),sr=typeof window<"u"?q.useLayoutEffect:q.useEffect;function vf(e,t,r){const[o,n]=q.useState(()=>t(e)),i=q.useCallback(()=>{const s=t(e);hf(o,s)||(n(s),r&&r())},[o,e,r]);return sr(i),[o,i]}function mf(e,t,r){const[o,n]=vf(e,t,r);return sr(function(){const s=e.getHandlerId();if(s!=null)return e.subscribeToStateChange(n,{handlerIds:[s]})},[e,n]),o}function Ka(e,t,r){return mf(t,e||(()=>({})),()=>r.reconnect())}function Xa(e,t){const r=[...t||[]];return t==null&&typeof e!="function"&&r.push(e),q.useMemo(()=>typeof e=="function"?e():e,r)}function bf(e){return q.useMemo(()=>e.hooks.dragSource(),[e])}function yf(e){return q.useMemo(()=>e.hooks.dragPreview(),[e])}let mn=!1,bn=!1;class wf{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){K(!mn,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return mn=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{mn=!1}}isDragging(){if(!this.sourceId)return!1;K(!bn,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return bn=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{bn=!1}}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,r){return this.internalMonitor.isOverTarget(t,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let yn=!1;class xf{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}canDrop(){if(!this.targetId)return!1;K(!yn,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return yn=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{yn=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function kf(e,t,r){const o=r.getRegistry(),n=o.addTarget(e,t);return[n,()=>o.removeTarget(n)]}function Sf(e,t,r){const o=r.getRegistry(),n=o.addSource(e,t);return[n,()=>o.removeSource(n)]}function Qn(e,t,r,o){let n=r?r.call(o,e,t):void 0;if(n!==void 0)return!!n;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<i.length;l++){const u=i[l];if(!a(u))return!1;const c=e[u],f=t[u];if(n=r?r.call(o,c,f,u):void 0,n===!1||n===void 0&&c!==f)return!1}return!0}function Jn(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _f(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function Cf(e){return(t=null,r=null)=>{if(!q.isValidElement(t)){const i=t;return e(i,r),i}const o=t;return _f(o),Bf(o,r?i=>e(i,r):e)}}function Za(e){const t={};return Object.keys(e).forEach(r=>{const o=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const n=Cf(o);t[r]=()=>n}}),t}function Rs(e,t){typeof e=="function"?e(t):e.current=t}function Bf(e,t){const r=e.ref;return K(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?q.cloneElement(e,{ref:o=>{Rs(r,o),Rs(t,o)}}):q.cloneElement(e,{ref:t})}class Rf{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?t?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),r):(this.lastConnectedDragSource=t,r):r}reconnectDragPreview(t=!1){const r=this.dragPreview,o=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(o&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}o&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Qn(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Qn(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=Za({dragSource:(r,o)=>{this.clearDragSource(),this.dragSourceOptions=o||null,Jn(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,o)=>{this.clearDragPreview(),this.dragPreviewOptions=o||null,Jn(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class Ef{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Qn(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=Za({dropTarget:(r,o)=>{this.clearDropTarget(),this.dropTargetOptions=o,Jn(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function Cr(){const{dragDropManager:e}=q.useContext(qa);return K(e!=null,"Expected drag drop context"),e}function Pf(e,t){const r=Cr(),o=q.useMemo(()=>new Rf(r.getBackend()),[r]);return sr(()=>(o.dragSourceOptions=e||null,o.reconnect(),()=>o.disconnectDragSource()),[o,e]),sr(()=>(o.dragPreviewOptions=t||null,o.reconnect(),()=>o.disconnectDragPreview()),[o,t]),o}function Nf(){const e=Cr();return q.useMemo(()=>new wf(e),[e])}class Tf{beginDrag(){const t=this.spec,r=this.monitor;let o=null;return typeof t.item=="object"?o=t.item:typeof t.item=="function"?o=t.item(r):o={},o??null}canDrag(){const t=this.spec,r=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(r):!0}isDragging(t,r){const o=this.spec,n=this.monitor,{isDragging:i}=o;return i?i(n):r===t.getSourceId()}endDrag(){const t=this.spec,r=this.monitor,o=this.connector,{end:n}=t;n&&n(r.getItem(),r),o.reconnect()}constructor(t,r,o){this.spec=t,this.monitor=r,this.connector=o}}function Df(e,t,r){const o=q.useMemo(()=>new Tf(e,t,r),[t,r]);return q.useEffect(()=>{o.spec=e},[e]),o}function Ff(e){return q.useMemo(()=>{const t=e.type;return K(t!=null,"spec.type must be defined"),t},[e])}function If(e,t,r){const o=Cr(),n=Df(e,t,r),i=Ff(e);sr(function(){if(i!=null){const[a,l]=Sf(i,n,o);return t.receiveHandlerId(a),r.receiveHandlerId(a),l}},[o,t,r,n,i])}function Of(e,t){const r=Xa(e,t);K(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const o=Nf(),n=Pf(r.options,r.previewOptions);return If(r,o,n),[Ka(r.collect,o,n),bf(n),yf(n)]}function zf(e){return q.useMemo(()=>e.hooks.dropTarget(),[e])}function jf(e){const t=Cr(),r=q.useMemo(()=>new Ef(t.getBackend()),[t]);return sr(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function Mf(){const e=Cr();return q.useMemo(()=>new xf(e),[e])}function Af(e){const{accept:t}=e;return q.useMemo(()=>(K(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class qf{canDrop(){const t=this.spec,r=this.monitor;return t.canDrop?t.canDrop(r.getItem(),r):!0}hover(){const t=this.spec,r=this.monitor;t.hover&&t.hover(r.getItem(),r)}drop(){const t=this.spec,r=this.monitor;if(t.drop)return t.drop(r.getItem(),r)}constructor(t,r){this.spec=t,this.monitor=r}}function Lf(e,t){const r=q.useMemo(()=>new qf(e,t),[t]);return q.useEffect(()=>{r.spec=e},[e]),r}function Vf(e,t,r){const o=Cr(),n=Lf(e,t),i=Af(e);sr(function(){const[a,l]=kf(i,n,o);return t.receiveHandlerId(a),r.receiveHandlerId(a),l},[o,t,n,r,i.map(s=>s.toString()).join("|")])}function Hf(e,t){const r=Xa(e,t),o=Mf(),n=jf(r.options);return Vf(r,o,n),[Ka(r.collect,o,n),zf(n)]}function Ya(e){let t=null;return()=>(t==null&&(t=e()),t)}function $f(e,t){return e.filter(r=>r!==t)}function Gf(e,t){const r=new Set,o=i=>r.add(i);e.forEach(o),t.forEach(o);const n=[];return r.forEach(i=>n.push(i)),n}class Wf{enter(t){const r=this.entered.length,o=n=>this.isNodeInDocument(n)&&(!n.contains||n.contains(t));return this.entered=Gf(this.entered.filter(o),[t]),r===0&&this.entered.length>0}leave(t){const r=this.entered.length;return this.entered=$f(this.entered.filter(this.isNodeInDocument),t),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class Uf{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const r={};Object.keys(this.config.exposeProperties).forEach(o=>{const n=this.config.exposeProperties[o];n!=null&&(r[o]={value:n(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,r)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,r){return r===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Qa="__NATIVE_FILE__",Ja="__NATIVE_URL__",el="__NATIVE_TEXT__",tl="__NATIVE_HTML__",Es=Object.freeze(Object.defineProperty({__proto__:null,FILE:Qa,HTML:tl,TEXT:el,URL:Ja},Symbol.toStringTag,{value:"Module"}));function wn(e,t,r){const o=t.reduce((n,i)=>n||e.getData(i),"");return o??r}const ei={[Qa]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[tl]:{exposeProperties:{html:(e,t)=>wn(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Ja]:{exposeProperties:{urls:(e,t)=>wn(e,t,"").split(`
|
|
2
|
-
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[el]:{exposeProperties:{text:(e,t)=>wn(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Kf(e,t){const r=ei[e];if(!r)throw new Error(`native type ${e} has no configuration`);const o=new Uf(r);return o.loadDataTransfer(t),o}function xn(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(ei).filter(r=>{const o=ei[r];return o?.matchesTypes?o.matchesTypes.some(n=>t.indexOf(n)>-1):!1})[0]||null}const Xf=Ya(()=>/firefox/i.test(navigator.userAgent)),rl=Ya(()=>!!window.safari);class Ps{interpolate(t){const{xs:r,ys:o,c1s:n,c2s:i,c3s:s}=this;let a=r.length-1;if(t===r[a])return o[a];let l=0,u=s.length-1,c;for(;l<=u;){c=Math.floor(.5*(l+u));const d=r[c];if(d<t)l=c+1;else if(d>t)u=c-1;else return o[c]}a=Math.max(0,u);const f=t-r[a],g=f*f;return o[a]+n[a]*f+i[a]*g+s[a]*f*g}constructor(t,r){const{length:o}=t,n=[];for(let d=0;d<o;d++)n.push(d);n.sort((d,p)=>t[d]<t[p]?-1:1);const i=[],s=[];let a,l;for(let d=0;d<o-1;d++)a=t[d+1]-t[d],l=r[d+1]-r[d],i.push(a),s.push(l/a);const u=[s[0]];for(let d=0;d<i.length-1;d++){const p=s[d],h=s[d+1];if(p*h<=0)u.push(0);else{a=i[d];const b=i[d+1],v=a+b;u.push(3*v/((v+b)/p+(v+a)/h))}}u.push(s[s.length-1]);const c=[],f=[];let g;for(let d=0;d<u.length-1;d++){g=s[d];const p=u[d],h=1/i[d],b=p+u[d+1]-g-g;c.push((g-p-b)*h),f.push(b*h*h)}this.xs=t,this.ys=r,this.c1s=u,this.c2s=c,this.c3s=f}}const Zf=1;function ol(e){const t=e.nodeType===Zf?e:e.parentElement;if(!t)return null;const{top:r,left:o}=t.getBoundingClientRect();return{x:o,y:r}}function no(e){return{x:e.clientX,y:e.clientY}}function Yf(e){var t;return e.nodeName==="IMG"&&(Xf()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function Qf(e,t,r,o){let n=e?t.width:r,i=e?t.height:o;return rl()&&e&&(i/=window.devicePixelRatio,n/=window.devicePixelRatio),{dragPreviewWidth:n,dragPreviewHeight:i}}function Jf(e,t,r,o,n){const i=Yf(t),a=ol(i?e:t),l={x:r.x-a.x,y:r.y-a.y},{offsetWidth:u,offsetHeight:c}=e,{anchorX:f,anchorY:g}=o,{dragPreviewWidth:d,dragPreviewHeight:p}=Qf(i,t,u,c),h=()=>{let _=new Ps([0,.5,1],[l.y,l.y/c*p,l.y+p-c]).interpolate(g);return rl()&&i&&(_+=(window.devicePixelRatio-1)*p),_},b=()=>new Ps([0,.5,1],[l.x,l.x/u*d,l.x+d-u]).interpolate(f),{offsetX:v,offsetY:m}=n,w=v===0||v,x=m===0||m;return{x:w?v:b(),y:x?m:h()}}class eg{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,r){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=r}}function tg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ns(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),o.forEach(function(n){tg(e,n,r[n])})}return e}class rg{profile(){var t,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,r,o){return this.sourcePreviewNodeOptions.set(t,o),this.sourcePreviewNodes.set(t,r),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,r,o){this.sourceNodes.set(t,r),this.sourceNodeOptions.set(t,o);const n=s=>this.handleDragStart(s,t),i=s=>this.handleSelectStart(s);return r.setAttribute("draggable","true"),r.addEventListener("dragstart",n),r.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),r.removeEventListener("dragstart",n),r.removeEventListener("selectstart",i),r.setAttribute("draggable","false")}}connectDropTarget(t,r){const o=s=>this.handleDragEnter(s,t),n=s=>this.handleDragOver(s,t),i=s=>this.handleDrop(s,t);return r.addEventListener("dragenter",o),r.addEventListener("dragover",n),r.addEventListener("drop",i),()=>{r.removeEventListener("dragenter",o),r.removeEventListener("dragover",n),r.removeEventListener("drop",i)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(t);return Ns({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(t);return Ns({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(Es).some(r=>Es[r]===t)}beginDragNativeItem(t,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=Kf(t,r),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const r=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var o;return(o=this.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},r)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,r){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}handleDragEnter(t,r){this.dragEnterTargetIds.unshift(r)}handleDragOver(t,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}handleDrop(t,r){this.dropTargetIds.unshift(r)}constructor(t,r,o){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=n=>{const i=this.sourceNodes.get(n);return i&&ol(i)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=n=>!!(n&&this.document&&this.document.body&&this.document.body.contains(n)),this.endDragIfSourceWasRemovedFromDOM=()=>{const n=this.currentDragSourceNode;n==null||this.isNodeInDocument(n)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=n=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(n||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=n=>{if(n.defaultPrevented)return;const{dragStartSourceIds:i}=this;this.dragStartSourceIds=null;const s=no(n);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(i||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:s});const{dataTransfer:a}=n,l=xn(a);if(this.monitor.isDragging()){if(a&&typeof a.setDragImage=="function"){const c=this.monitor.getSourceId(),f=this.sourceNodes.get(c),g=this.sourcePreviewNodes.get(c)||f;if(g){const{anchorX:d,anchorY:p,offsetX:h,offsetY:b}=this.getCurrentSourcePreviewNodeOptions(),w=Jf(f,g,s,{anchorX:d,anchorY:p},{offsetX:h,offsetY:b});a.setDragImage(g,w.x,w.y)}}try{a?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(n.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(a&&!a.types&&(n.target&&!n.target.hasAttribute||!n.target.hasAttribute("draggable")))return;n.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=n=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(n.dataTransfer)}if(!this.enterLeaveCounter.enter(n.target)||this.monitor.isDragging())return;const{dataTransfer:a}=n,l=xn(a);l&&this.beginDragNativeItem(l,a)},this.handleTopDragEnter=n=>{const{dragEnterTargetIds:i}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=n.altKey,i.length>0&&this.actions.hover(i,{clientOffset:no(n)}),i.some(a=>this.monitor.canDropOnTarget(a))&&(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=n=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(n.dataTransfer)}},this.handleTopDragOver=n=>{const{dragOverTargetIds:i}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="none");return}this.altKeyPressed=n.altKey,this.lastClientOffset=no(n),this.scheduleHover(i),(i||[]).some(a=>this.monitor.canDropOnTarget(a))?(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?n.preventDefault():(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=n=>{this.isDraggingNativeItem()&&n.preventDefault(),this.enterLeaveCounter.leave(n.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=n=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var i;n.preventDefault(),(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(n.dataTransfer)}else xn(n.dataTransfer)&&n.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=n=>{const{dropTargetIds:i}=this;this.dropTargetIds=[],this.actions.hover(i,{clientOffset:no(n)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=n=>{const i=n.target;typeof i.dragDrop=="function"&&(i.tagName==="INPUT"||i.tagName==="SELECT"||i.tagName==="TEXTAREA"||i.isContentEditable||(n.preventDefault(),i.dragDrop()))},this.options=new eg(r,o),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new Wf(this.isNodeInDocument)}}const og=function(t,r,o){return new rg(t,r,o)},ng=["Top","Right","Bottom","Left"];function Xr(e,t,...r){const[o,n=o,i=o,s=n]=r,a=[o,n,i,s],l={};for(let u=0;u<a.length;u+=1)if(a[u]||a[u]===0){const c=e+ng[u]+t;l[c]=a[u]}return l}function ti(...e){return Xr("border","Width",...e)}function ri(...e){return Xr("border","Style",...e)}function oi(...e){return Xr("border","Color",...e)}const ig=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function Zr(e){return ig.includes(e)}function sg(...e){return Zr(e[0])?{...ri(e[0]),...e[1]&&ti(e[1]),...e[2]&&oi(e[2])}:{...ti(e[0]),...e[1]&&ri(e[1]),...e[2]&&oi(e[2])}}function ag(...e){return Zr(e[0])?{borderLeftStyle:e[0],...e[1]&&{borderLeftWidth:e[1]},...e[2]&&{borderLeftColor:e[2]}}:{borderLeftWidth:e[0],...e[1]&&{borderLeftStyle:e[1]},...e[2]&&{borderLeftColor:e[2]}}}function lg(...e){return Zr(e[0])?{borderBottomStyle:e[0],...e[1]&&{borderBottomWidth:e[1]},...e[2]&&{borderBottomColor:e[2]}}:{borderBottomWidth:e[0],...e[1]&&{borderBottomStyle:e[1]},...e[2]&&{borderBottomColor:e[2]}}}function cg(...e){return Zr(e[0])?{borderRightStyle:e[0],...e[1]&&{borderRightWidth:e[1]},...e[2]&&{borderRightColor:e[2]}}:{borderRightWidth:e[0],...e[1]&&{borderRightStyle:e[1]},...e[2]&&{borderRightColor:e[2]}}}function ug(...e){return Zr(e[0])?{borderTopStyle:e[0],...e[1]&&{borderTopWidth:e[1]},...e[2]&&{borderTopColor:e[2]}}:{borderTopWidth:e[0],...e[1]&&{borderTopStyle:e[1]},...e[2]&&{borderTopColor:e[2]}}}function dg(e,t=e,r=e,o=t){return{borderBottomRightRadius:r,borderBottomLeftRadius:o,borderTopRightRadius:t,borderTopLeftRadius:e}}const fg=e=>typeof e=="string"&&/(\d+(\w+|%))/.test(e),io=e=>typeof e=="number"&&!Number.isNaN(e),gg=e=>e==="initial",Ts=e=>e==="auto",pg=e=>e==="none",hg=["content","fit-content","max-content","min-content"],kn=e=>hg.some(t=>e===t)||fg(e);function vg(...e){const t=e.length===1,r=e.length===2,o=e.length===3;if(t){const[n]=e;if(gg(n))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(Ts(n))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(pg(n))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(io(n))return{flexGrow:n,flexShrink:1,flexBasis:0};if(kn(n))return{flexGrow:1,flexShrink:1,flexBasis:n}}if(r){const[n,i]=e;if(io(i))return{flexGrow:n,flexShrink:i,flexBasis:0};if(kn(i))return{flexGrow:n,flexShrink:1,flexBasis:i}}if(o){const[n,i,s]=e;if(io(n)&&io(i)&&(Ts(s)||kn(s)))return{flexGrow:n,flexShrink:i,flexBasis:s}}return process.env.NODE_ENV!=="production"&&console.error("The value passed to shorthands.flex did not match any flex property specs. The CSS styles were not generated. Please, check the flex documentation."),{}}function mg(e,t=e){return{columnGap:e,rowGap:t}}const bg=/var\(.*\)/gi;function yg(e){return e===void 0||typeof e=="number"||typeof e=="string"&&!bg.test(e)}const wg=/^[a-zA-Z0-9\-_\\#;]+$/,xg=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|\d.*/;function Sn(e){return e!==void 0&&typeof e=="string"&&wg.test(e)&&!xg.test(e)}function kg(...e){if(e.some(i=>!yg(i)))return process.env.NODE_ENV!=="production"&&console.error("The value passed to shorthands.gridArea() did not match any gridArea property specs. The CSS styles were not generated. Please, check the gridArea documentation.",["The value passed to shorthands.gridArea() did not match any gridArea property specs. ",`The CSS styles were not generated.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
`),t=up(e);if(t===void 0)return;const r=ep(t);return r?.loc}function up(e){for(let t=e.length-1;t>=0;--t)if(e[t].includes("at getSourceURLfromError"))return e[t+3]}const Vo=()=>{const e={};return function(r,o){e[r.id]===void 0&&(r.insertCSSRules(o),e[r.id]=!0)}};function fl(e){return e.reduce(function(t,r){var o=r[0],n=r[1];return t[o]=n,t[n]=o,t},{})}function dp(e){return typeof e=="boolean"}function fp(e){return typeof e=="function"}function Or(e){return typeof e=="number"}function gp(e){return e===null||typeof e>"u"}function pp(e){return e&&typeof e=="object"}function hp(e){return typeof e=="string"}function wo(e,t){return e.indexOf(t)!==-1}function vp(e){return parseFloat(e)===0?e:e[0]==="-"?e.slice(1):"-"+e}function so(e,t,r,o){return t+vp(r)+o}function mp(e){var t=e.indexOf(".");if(t===-1)e=100-parseFloat(e)+"%";else{var r=e.length-t-2;e=100-parseFloat(e),e=e.toFixed(r)+"%"}return e}function gl(e){return e.replace(/ +/g," ").split(" ").map(function(t){return t.trim()}).filter(Boolean).reduce(function(t,r){var o=t.list,n=t.state,i=(r.match(/\(/g)||[]).length,s=(r.match(/\)/g)||[]).length;return n.parensDepth>0?o[o.length-1]=o[o.length-1]+" "+r:o.push(r),n.parensDepth+=i-s,{list:o,state:n}},{list:[],state:{parensDepth:0}}).list}function Ms(e){var t=gl(e);if(t.length<=3||t.length>4)return e;var r=t[0],o=t[1],n=t[2],i=t[3];return[r,i,n,o].join(" ")}function bp(e){return!dp(e)&&!gp(e)}function yp(e){for(var t=[],r=0,o=0,n=!1;o<e.length;)!n&&e[o]===","?(t.push(e.substring(r,o).trim()),o++,r=o):e[o]==="("?(n=!0,o++):(e[o]===")"&&(n=!1),o++);return r!=o&&t.push(e.substring(r,o+1)),t}var N={padding:function(t){var r=t.value;return Or(r)?r:Ms(r)},textShadow:function(t){var r=t.value,o=yp(r).map(function(n){return n.replace(/(^|\s)(-*)([.|\d]+)/,function(i,s,a,l){if(l==="0")return i;var u=a===""?"-":"";return""+s+u+l})});return o.join(",")},borderColor:function(t){var r=t.value;return Ms(r)},borderRadius:function(t){var r=t.value;if(Or(r))return r;if(wo(r,"/")){var o=r.split("/"),n=o[0],i=o[1],s=N.borderRadius({value:n.trim()}),a=N.borderRadius({value:i.trim()});return s+" / "+a}var l=gl(r);switch(l.length){case 2:return l.reverse().join(" ");case 4:{var u=l[0],c=l[1],f=l[2],g=l[3];return[c,u,g,f].join(" ")}default:return r}},background:function(t){var r=t.value,o=t.valuesToConvert,n=t.isRtl,i=t.bgImgDirectionRegex,s=t.bgPosDirectionRegex;if(Or(r))return r;var a=r.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return r=r.replace(a,N.backgroundPosition({value:a,valuesToConvert:o,isRtl:n,bgPosDirectionRegex:s})),N.backgroundImage({value:r,valuesToConvert:o,bgImgDirectionRegex:i})},backgroundImage:function(t){var r=t.value,o=t.valuesToConvert,n=t.bgImgDirectionRegex;return!wo(r,"url(")&&!wo(r,"linear-gradient(")?r:r.replace(n,function(i,s,a){return i.replace(a,o[a])})},backgroundPosition:function(t){var r=t.value,o=t.valuesToConvert,n=t.isRtl,i=t.bgPosDirectionRegex;return r.replace(n?/^((-|\d|\.)+%)/:null,function(s,a){return mp(a)}).replace(i,function(s){return o[s]})},backgroundPositionX:function(t){var r=t.value,o=t.valuesToConvert,n=t.isRtl,i=t.bgPosDirectionRegex;return Or(r)?r:N.backgroundPosition({value:r,valuesToConvert:o,isRtl:n,bgPosDirectionRegex:i})},transition:function(t){var r=t.value,o=t.propertiesToConvert;return r.split(/,\s*/g).map(function(n){var i=n.split(" ");return i[0]=o[i[0]]||i[0],i.join(" ")}).join(", ")},transitionProperty:function(t){var r=t.value,o=t.propertiesToConvert;return r.split(/,\s*/g).map(function(n){return o[n]||n}).join(", ")},transform:function(t){var r=t.value,o="[^\\u0020-\\u007e]",n="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",i="((?:-?"+("(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+o+"|"+n+")")+("(?:[_a-z0-9-]|"+o+"|"+n+")")+"*")+")?")+")|(?:inherit|auto))",s=new RegExp("(translateX\\s*\\(\\s*)"+i+"(\\s*\\))","gi"),a=new RegExp("(translate\\s*\\(\\s*)"+i+"((?:\\s*,\\s*"+i+"){0,1}\\s*\\))","gi"),l=new RegExp("(translate3d\\s*\\(\\s*)"+i+"((?:\\s*,\\s*"+i+"){0,2}\\s*\\))","gi"),u=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+i+"(\\s*\\))","gi");return r.replace(s,so).replace(a,so).replace(l,so).replace(u,so)}};N.objectPosition=N.backgroundPosition;N.margin=N.padding;N.borderWidth=N.padding;N.boxShadow=N.textShadow;N.webkitBoxShadow=N.boxShadow;N.mozBoxShadow=N.boxShadow;N.WebkitBoxShadow=N.boxShadow;N.MozBoxShadow=N.boxShadow;N.borderStyle=N.borderColor;N.webkitTransform=N.transform;N.mozTransform=N.transform;N.WebkitTransform=N.transform;N.MozTransform=N.transform;N.transformOrigin=N.backgroundPosition;N.webkitTransformOrigin=N.transformOrigin;N.mozTransformOrigin=N.transformOrigin;N.WebkitTransformOrigin=N.transformOrigin;N.MozTransformOrigin=N.transformOrigin;N.webkitTransition=N.transition;N.mozTransition=N.transition;N.WebkitTransition=N.transition;N.MozTransition=N.transition;N.webkitTransitionProperty=N.transitionProperty;N.mozTransitionProperty=N.transitionProperty;N.WebkitTransitionProperty=N.transitionProperty;N.MozTransitionProperty=N.transitionProperty;N["text-shadow"]=N.textShadow;N["border-color"]=N.borderColor;N["border-radius"]=N.borderRadius;N["background-image"]=N.backgroundImage;N["background-position"]=N.backgroundPosition;N["background-position-x"]=N.backgroundPositionX;N["object-position"]=N.objectPosition;N["border-width"]=N.padding;N["box-shadow"]=N.textShadow;N["-webkit-box-shadow"]=N.textShadow;N["-moz-box-shadow"]=N.textShadow;N["border-style"]=N.borderColor;N["-webkit-transform"]=N.transform;N["-moz-transform"]=N.transform;N["transform-origin"]=N.transformOrigin;N["-webkit-transform-origin"]=N.transformOrigin;N["-moz-transform-origin"]=N.transformOrigin;N["-webkit-transition"]=N.transition;N["-moz-transition"]=N.transition;N["transition-property"]=N.transitionProperty;N["-webkit-transition-property"]=N.transitionProperty;N["-moz-transition-property"]=N.transitionProperty;var pl=fl([["paddingLeft","paddingRight"],["marginLeft","marginRight"],["left","right"],["borderLeft","borderRight"],["borderLeftColor","borderRightColor"],["borderLeftStyle","borderRightStyle"],["borderLeftWidth","borderRightWidth"],["borderTopLeftRadius","borderTopRightRadius"],["borderBottomLeftRadius","borderBottomRightRadius"],["padding-left","padding-right"],["margin-left","margin-right"],["border-left","border-right"],["border-left-color","border-right-color"],["border-left-style","border-right-style"],["border-left-width","border-right-width"],["border-top-left-radius","border-top-right-radius"],["border-bottom-left-radius","border-bottom-right-radius"]]),wp=["content"],As=fl([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),xp=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),kp=new RegExp("(left)|(right)");function hl(e){return Object.keys(e).reduce(function(t,r){var o=e[r];if(hp(o)&&(o=o.trim()),wo(wp,r))return t[r]=o,t;var n=ii(r,o),i=n.key,s=n.value;return t[i]=s,t},Array.isArray(e)?[]:{})}function ii(e,t){var r=/\/\*\s?@noflip\s?\*\//.test(t),o=r?e:Sp(e),n=r?t:_p(o,t);return{key:o,value:n}}function Sp(e){return pl[e]||e}function _p(e,t){if(!bp(t))return t;if(pp(t))return hl(t);var r=Or(t),o=fp(t),n=r||o?t:t.replace(/ !important.*?$/,""),i=!r&&n.length!==t.length,s=N[e],a;return s?a=s({value:n,valuesToConvert:As,propertiesToConvert:pl,isRtl:!0,bgImgDirectionRegex:xp,bgPosDirectionRegex:kp}):a=As[n]||n,i?a+" !important":a}const Cp=/[A-Z]/g,Bp=/^ms-/,Rn={};function Rp(e){return"-"+e.toLowerCase()}function zr(e){if(Object.prototype.hasOwnProperty.call(Rn,e))return Rn[e];if(e.substr(0,2)==="--")return e;const t=e.replace(Cp,Rp);return Rn[e]=Bp.test(t)?"-"+t:t}function vl(e){return e.charAt(0)==="&"?e.slice(1):e}var ml="-ms-",qr="-moz-",Ct="-webkit-",bl="comm",Ho="rule",ji="decl",Ep="@media",Pp="@import",Np="@supports",Tp="@keyframes",yl="@layer",Dp=Math.abs,$o=String.fromCharCode,Fp=Object.assign;function Ip(e,t){return Ge(e,0)^45?(((t<<2^Ge(e,0))<<2^Ge(e,1))<<2^Ge(e,2))<<2^Ge(e,3):0}function wl(e){return e.trim()}function xl(e,t){return(e=t.exec(e))?e[0]:e}function qe(e,t,r){return e.replace(t,r)}function kl(e,t){return e.indexOf(t)}function Ge(e,t){return e.charCodeAt(t)|0}function Vr(e,t,r){return e.slice(t,r)}function mt(e){return e.length}function Sl(e){return e.length}function er(e,t){return t.push(e),e}function Op(e,t){return e.map(t).join("")}var Go=1,wr=1,_l=0,Ue=0,ge=0,Br="";function Wo(e,t,r,o,n,i,s,a){return{value:e,root:t,parent:r,type:o,props:n,children:i,line:Go,column:wr,length:s,return:"",siblings:a}}function ao(e,t){return Fp(Wo("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function zp(){return ge}function jp(){return ge=Ue>0?Ge(Br,--Ue):0,wr--,ge===10&&(wr=1,Go--),ge}function tt(){return ge=Ue<_l?Ge(Br,Ue++):0,wr++,ge===10&&(wr=1,Go++),ge}function or(){return Ge(Br,Ue)}function xo(){return Ue}function Uo(e,t){return Vr(Br,e,t)}function Eo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Cl(e){return Go=wr=1,_l=mt(Br=e),Ue=0,[]}function Bl(e){return Br="",e}function ko(e){return wl(Uo(Ue-1,si(e===91?e+2:e===40?e+1:e)))}function Mp(e){return Bl(qp(Cl(e)))}function Ap(e){for(;(ge=or())&&ge<33;)tt();return Eo(e)>2||Eo(ge)>3?"":" "}function qp(e){for(;tt();)switch(Eo(ge)){case 0:er(Rl(Ue-1),e);break;case 2:er(ko(ge),e);break;default:er($o(ge),e)}return e}function Lp(e,t){for(;--t&&tt()&&!(ge<48||ge>102||ge>57&&ge<65||ge>70&&ge<97););return Uo(e,xo()+(t<6&&or()==32&&tt()==32))}function si(e){for(;tt();)switch(ge){case e:return Ue;case 34:case 39:e!==34&&e!==39&&si(ge);break;case 40:e===41&&si(e);break;case 92:tt();break}return Ue}function Vp(e,t){for(;tt()&&e+ge!==47+10;)if(e+ge===42+42&&or()===47)break;return"/*"+Uo(t,Ue-1)+"*"+$o(e===47?e:tt())}function Rl(e){for(;!Eo(or());)tt();return Uo(e,Ue)}function El(e){return Bl(So("",null,null,null,[""],e=Cl(e),0,[0],e))}function So(e,t,r,o,n,i,s,a,l){for(var u=0,c=0,f=s,g=0,d=0,p=0,h=1,b=1,v=1,m=0,w="",x=n,k=i,_=o,S=w;b;)switch(p=m,m=tt()){case 40:if(p!=108&&Ge(S,f-1)==58){kl(S+=qe(ko(m),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=ko(m);break;case 9:case 10:case 13:case 32:S+=Ap(p);break;case 92:S+=Lp(xo()-1,7);continue;case 47:switch(or()){case 42:case 47:er(Hp(Vp(tt(),xo()),t,r,l),l);break;default:S+="/"}break;case 123*h:a[u++]=mt(S)*v;case 125*h:case 59:case 0:switch(m){case 0:case 125:b=0;case 59+c:v==-1&&(S=qe(S,/\f/g,"")),d>0&&mt(S)-f&&er(d>32?Ls(S+";",o,r,f-1,l):Ls(qe(S," ","")+";",o,r,f-2,l),l);break;case 59:S+=";";default:if(er(_=qs(S,t,r,u,c,n,a,w,x=[],k=[],f,i),i),m===123)if(c===0)So(S,t,_,_,x,i,f,a,k);else switch(g===99&&Ge(S,3)===110?100:g){case 100:case 108:case 109:case 115:So(e,_,_,o&&er(qs(e,_,_,0,0,n,a,w,n,x=[],f,k),k),n,k,f,a,o?x:k);break;default:So(S,_,_,_,[""],k,0,a,k)}}u=c=d=0,h=v=1,w=S="",f=s;break;case 58:f=1+mt(S),d=p;default:if(h<1){if(m==123)--h;else if(m==125&&h++==0&&jp()==125)continue}switch(S+=$o(m),m*h){case 38:v=c>0?1:(S+="\f",-1);break;case 44:a[u++]=(mt(S)-1)*v,v=1;break;case 64:or()===45&&(S+=ko(tt())),g=or(),c=f=mt(w=S+=Rl(xo())),m++;break;case 45:p===45&&mt(S)==2&&(h=0)}}return i}function qs(e,t,r,o,n,i,s,a,l,u,c,f){for(var g=n-1,d=n===0?i:[""],p=Sl(d),h=0,b=0,v=0;h<o;++h)for(var m=0,w=Vr(e,g+1,g=Dp(b=s[h])),x=e;m<p;++m)(x=wl(b>0?d[m]+" "+w:qe(w,/&\f/g,d[m])))&&(l[v++]=x);return Wo(e,t,r,n===0?Ho:a,l,u,c,f)}function Hp(e,t,r,o){return Wo(e,t,r,bl,$o(zp()),Vr(e,2,-2),0,o)}function Ls(e,t,r,o,n){return Wo(e,t,r,ji,Vr(e,0,o),Vr(e,o+1,-1),o,n)}function xr(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function Pl(e,t,r,o){switch(e.type){case yl:if(e.children.length)break;case Pp:case ji:return e.return=e.return||e.value;case bl:return"";case Tp:return e.return=e.value+"{"+xr(e.children,o)+"}";case Ho:if(!mt(e.value=e.props.join(",")))return""}return mt(r=xr(e.children,o))?e.return=e.value+"{"+r+"}":""}function Nl(e){var t=Sl(e);return function(r,o,n,i){for(var s="",a=0;a<t;a++)s+=e[a](r,o,n,i)||"";return s}}function Tl(e){return function(t){t.root||(t=t.return)&&e(t)}}const $p=e=>{switch(e.type){case Ho:if(typeof e.props=="string"){if(process.env.NODE_ENV!=="production")throw new Error(`"element.props" has type "string" (${JSON.stringify(e.props,null,2)}), it's not expected. Please report a bug if it happens.`);return}e.props=e.props.map(t=>t.indexOf(":global(")===-1?t:Mp(t).reduce((r,o,n,i)=>{if(o==="")return r;if(o===":"&&i[n+1]==="global"){const s=i[n+2].slice(1,-1)+" ";return r.unshift(s),i[n+1]="",i[n+2]="",r}return r.push(o),r},[]).join(""))}};function Dl(e,t,r){switch(Ip(e,t)){case 5103:return Ct+"print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return Ct+e+e;case 4789:return qr+e+e;case 5349:case 4246:case 6968:return Ct+e+qr+e+ml+e+e;case 6187:if(!xl(e,/grab/))return qe(qe(qe(e,/(zoom-|grab)/,Ct+"$1"),/(image-set)/,Ct+"$1"),e,"")+e;case 5495:case 3959:return qe(e,/(image-set\([^]*)/,Ct+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return qe(e,/(.+)-inline(.+)/,Ct+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(mt(e)-1-t>6)switch(Ge(e,t+1)){case 102:if(Ge(e,t+3)===108)return qe(e,/(.+:)(.+)-([^]+)/,"$1"+Ct+"$2-$3$1"+qr+(Ge(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~kl(e,"stretch")?Dl(qe(e,"stretch","fill-available"),t)+e:e}break}return e}function Fl(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case ji:e.return=Dl(e.value,e.length);return;case Ho:if(e.length)return Op(e.props,function(n){switch(xl(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xr([ao(e,{props:[qe(n,/:(read-\w+)/,":"+qr+"$1")]})],o);case"::placeholder":return xr([ao(e,{props:[qe(n,/:(plac\w+)/,":"+Ct+"input-$1")]}),ao(e,{props:[qe(n,/:(plac\w+)/,":"+qr+"$1")]}),ao(e,{props:[qe(n,/:(plac\w+)/,ml+"input-$1")]})],o)}return""})}}function Gp(e){switch(e.type){case"@container":case Ep:case Np:case yl:return!0}return!1}const Wp=e=>{Gp(e)&&Array.isArray(e.children)&&e.children.sort((t,r)=>t.props[0]>r.props[0]?1:-1)};function Up(){}function Mi(e,t){const r=[];return xr(El(e),Nl([$p,t?Wp:Up,Fl,Pl,Tl(o=>r.push(o))])),r}const Kp=/,( *[^ &])/g;function Xp(e){return"&"+vl(e.replace(Kp,",&$1"))}function Vs(e,t,r){let o=t;return r.length>0&&(o=r.reduceRight((n,i)=>`${Xp(i)} { ${n} }`,t)),`${e}{${o}}`}function Hs(e){const{className:t,media:r,layer:o,selectors:n,support:i,property:s,rtlClassName:a,rtlProperty:l,rtlValue:u,value:c,container:f}=e,g=`.${t}`,d=Array.isArray(c)?`${c.map(h=>`${zr(s)}: ${h}`).join(";")};`:`${zr(s)}: ${c};`;let p=Vs(g,d,n);if(l&&a){const h=`.${a}`,b=Array.isArray(u)?`${u.map(v=>`${zr(l)}: ${v}`).join(";")};`:`${zr(l)}: ${u};`;p+=Vs(h,b,n)}return r&&(p=`@media ${r} { ${p} }`),o&&(p=`@layer ${o} { ${p} }`),i&&(p=`@supports ${i} { ${p} }`),f&&(p=`@container ${f} { ${p} }`),Mi(p,!0)}function Il(e){let t="";for(const r in e){const o=e[r];typeof o!="string"&&typeof o!="number"||(t+=zr(r)+":"+o+";")}return t}function $s(e){let t="";for(const r in e)t+=`${r}{${Il(e[r])}}`;return t}function Gs(e,t){const r=`@keyframes ${e} {${t}}`,o=[];return xr(El(r),Nl([Pl,Fl,Tl(n=>o.push(n))])),o}function Ws(e,t){return e.length===0?t:`${e} and ${t}`}function Zp(e){return e.substr(0,6)==="@media"}function Yp(e){return e.substr(0,6)==="@layer"}const Qp=/^(:|\[|>|&)/;function Jp(e){return Qp.test(e)}function eh(e){return e.substr(0,9)==="@supports"}function th(e){return e.substring(0,10)==="@container"}function rh(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}const Us={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function Ks(e,t,r,o,n){if(r)return"m";if(t||o)return"t";if(n)return"c";if(e.length>0){const i=e[0].trim();if(i.charCodeAt(0)===58)return Us[i.slice(4,8)]||Us[i.slice(3,5)]||"d"}return"d"}function lo({container:e,media:t,layer:r,property:o,selectors:n,support:i,value:s}){const a=rr(n.join("")+e+t+r+i+o+s.trim());return ni+a}function Xs(e,t,r,o,n){const i=e.join("")+t+r+o+n,s=rr(i),a=s.charCodeAt(0);return a>=48&&a<=57?String.fromCharCode(a+17)+s.substr(1):s}function Ol(...e){process.env.NODE_ENV!=="production"&&typeof document<"u"&&console.error(...e)}function oh(e,t){const r=JSON.stringify(t,null,2),o=["@griffel/react: A rule was not resolved to CSS properly. Please check your `makeStyles` or `makeResetStyles` calls for following:"," ".repeat(2)+"makeStyles({"," ".repeat(4)+"[slot]: {"," ".repeat(6)+`"${e}": ${r.split(`
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
You can check this by searching up for matching entries in a lockfile produced by your package manager (yarn.lock, pnpm-lock.yaml or package-lock.json).`)}function Kl(e,t){return function(o,n,i,s,a){return ai(n)?t(nv(o,n),null,i,s,a):ai(o)?t(o,n,i,s,a):(lv(o),e(o,n,i,s,a))}}function Xl(e){const{as:t,[kr]:r,[zl]:o,...n}=e,i=n,s=typeof r=="string"?t??r:r;return typeof s!="string"&&t&&(i.as=t),{elementType:s,props:i,renderFunction:o}}const nr=Lu,cv=(e,t,r)=>{const{elementType:o,renderFunction:n,props:i}=Xl(e),s={...i,...t};return n?nr.jsx(y.Fragment,{children:n(o,s)},r):nr.jsx(o,s,r)},uv=(e,t,r)=>{const{elementType:o,renderFunction:n,props:i}=Xl(e),s={...i,...t};return n?nr.jsx(y.Fragment,{children:n(o,{...s,children:nr.jsxs(y.Fragment,{children:s.children},void 0)})},r):nr.jsxs(o,s,r)},V=Kl(nr.jsx,cv),gt=Kl(nr.jsxs,uv),Zl=y.createContext(void 0),dv="";Zl.Provider;function fv(){var e;return(e=y.useContext(Zl))!==null&&e!==void 0?e:dv}const Yl=y.createContext(void 0),gv={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"};Yl.Provider;function Xe(){var e;return(e=y.useContext(Yl))!==null&&e!==void 0?e:gv}const Ql=y.createContext(void 0);Ql.Provider;function pv(){var e;return(e=y.useContext(Ql))!==null&&e!==void 0?e:{}}const Jl=y.createContext(void 0),hv=()=>{};Jl.Provider;const Re=e=>{var t,r;return(r=(t=y.useContext(Jl))===null||t===void 0?void 0:t[e])!==null&&r!==void 0?r:hv},ec=y.createContext(void 0);ec.Provider;function vv(){return y.useContext(ec)}const ci=y.createContext(void 0),mv={};ci.Provider;const bv=()=>y.useContext(ci)?y.useContext(ci):mv,yv=U({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),wv=(e,t)=>{const{title:r,primaryFill:o="currentColor",...n}=e,i={...n,title:void 0,fill:o},s=yv(),a=bv();return i.className=A(s.root,t?.flipInRtl&&a?.textDirection==="rtl"&&s.rtl,i.className),r&&(i["aria-label"]=r),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},G=(e,t,r,o)=>{const n=t==="1em"?"20":t,i=y.forwardRef((s,a)=>{const l={...wv(s,{flipInRtl:o?.flipInRtl}),ref:a,width:t,height:t,viewBox:`0 0 ${n} ${n}`,xmlns:"http://www.w3.org/2000/svg"};return y.createElement("svg",l,...r.map(u=>y.createElement("path",{d:u,fill:l.fill})))});return i.displayName=e,i},xv=G("ArrowNextFilled","1em",["M13.75 4.75c.38 0 .7.28.74.65l.01.1v9a.75.75 0 0 1-1.5.1V5.5c0-.41.34-.75.75-.75Zm-8.28.22a.75.75 0 0 1 .98-.07l.08.07 4.5 4.5c.27.27.3.68.07.98l-.07.08-4.5 4.5a.75.75 0 0 1-1.13-.98l.07-.08L9.44 10 5.47 6.03a.75.75 0 0 1 0-1.06Z"],{flipInRtl:!0}),kv=G("ArrowPreviousFilled","1em",["M6 4.75c-.38 0-.7.28-.74.65l-.01.1v9a.75.75 0 0 0 1.5.1V5.5A.75.75 0 0 0 6 4.75Zm8.28.22a.75.75 0 0 0-.98-.07l-.08.07-4.5 4.5a.75.75 0 0 0-.07.98l.07.08 4.5 4.5a.75.75 0 0 0 1.13-.98l-.07-.08L10.31 10l3.97-3.97c.3-.3.3-.77 0-1.06Z"],{flipInRtl:!0}),Sv=G("ArrowStepInLeftRegular","1em",["M5 10a1 1 0 1 0-2 0 1 1 0 0 0 2 0ZM4 8a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm14 2a.5.5 0 0 1-.5.5H9.7l3.15 3.15a.5.5 0 0 1-.7.7l-4-4a.5.5 0 0 1 0-.7l4-4a.5.5 0 0 1 .7.7L9.71 9.5h7.79c.28 0 .5.22.5.5Z"]),_v=G("ArrowStepInRightRegular","1em",["M15 10a1 1 0 1 0 2 0 1 1 0 0 0-2 0Zm1 2a2 2 0 1 1 0-4 2 2 0 0 1 0 4ZM2 10c0-.28.22-.5.5-.5h7.8L7.14 6.35a.5.5 0 1 1 .7-.7l4 4c.2.2.2.5 0 .7l-4 4a.5.5 0 0 1-.7-.7l3.14-3.15H2.5A.5.5 0 0 1 2 10Z"]),Cv=G("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),Bv=G("ChevronDownFilled","1em",["M15.8 7.73c.28.3.27.78-.03 1.06l-5.25 5a.75.75 0 0 1-1.04 0l-5.25-5a.75.75 0 0 1 1.04-1.08L10 12.2l4.73-4.5a.75.75 0 0 1 1.06.02Z"]),Vi=G("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),Rv=G("ChevronLeftFilled","1em",["M12.27 15.8a.75.75 0 0 1-1.06-.03l-5-5.25a.75.75 0 0 1 0-1.04l5-5.25a.75.75 0 1 1 1.08 1.04L7.8 10l4.5 4.73c.29.3.28.78-.02 1.06Z"]),Ev=G("ChevronLeftRegular","1em",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]),tc=G("ChevronRightFilled","1em",["M7.73 4.2a.75.75 0 0 1 1.06.03l5 5.25c.28.3.28.75 0 1.04l-5 5.25a.75.75 0 1 1-1.08-1.04L12.2 10l-4.5-4.73a.75.75 0 0 1 .02-1.06Z"]),rc=G("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),oc=G("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),Pv=G("ColumnEditFilled","1em",["M3 3.5c0-.28.22-.5.5-.5H4a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-.5a.5.5 0 0 1 0-1H4a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-.5a.5.5 0 0 1-.5-.5ZM9 3a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h.22l.21-.84a3.2 3.2 0 0 1 .84-1.49L13 11.94V5a2 2 0 0 0-2-2H9Zm6 2v4.94l-1 1V5c0-1.1.9-2 2-2h.5a.5.5 0 0 1 0 1H16a1 1 0 0 0-1 1Zm-4.02 10.38 4.83-4.83a1.87 1.87 0 1 1 2.64 2.64l-4.83 4.83a2.2 2.2 0 0 1-1.02.58l-1.5.37a.89.89 0 0 1-1.07-1.07l.37-1.5c.1-.39.3-.74.58-1.02Z"]),Nv=G("ColumnEditRegular","1em",["M3 3.5c0-.28.22-.5.5-.5H4a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-.5a.5.5 0 0 1 0-1H4a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-.5a.5.5 0 0 1-.5-.5ZM9 4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h.47l-.04.16-.21.84H9a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v6.94l-1 1V5a1 1 0 0 0-1-1H9Zm6 1v4.94l-1 1V5c0-1.1.9-2 2-2h.5a.5.5 0 0 1 0 1H16a1 1 0 0 0-1 1Zm-4.02 10.38 4.83-4.83a1.87 1.87 0 1 1 2.64 2.64l-4.83 4.83a2.2 2.2 0 0 1-1.02.58l-1.5.37a.89.89 0 0 1-1.07-1.07l.37-1.5c.1-.39.3-.74.58-1.02Z"]),Tv=G("DragFilled","1em",["M10 2c.2 0 .39.08.53.22l1.5 1.5a.75.75 0 0 1-1.06 1.06l-.22-.22v1.69a.75.75 0 0 1-1.5 0V4.56l-.22.22a.75.75 0 0 1-1.06-1.06l1.5-1.5A.75.75 0 0 1 10 2Zm2 8a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-9.78-.53a.75.75 0 0 0 0 1.06l1.5 1.5a.75.75 0 0 0 1.06-1.06l-.22-.22h1.69a.75.75 0 0 0 0-1.5H4.56l.22-.22a.75.75 0 0 0-1.06-1.06l-1.5 1.5ZM10 18c.2 0 .39-.08.53-.22l1.5-1.5a.75.75 0 1 0-1.06-1.06l-.22.22v-1.69a.75.75 0 0 0-1.5 0v1.69l-.22-.22a.75.75 0 0 0-1.06 1.06l1.5 1.5c.14.14.33.22.53.22Zm7.78-8.53a.75.75 0 0 1 0 1.06l-1.5 1.5a.75.75 0 1 1-1.06-1.06l.22-.22h-1.69a.75.75 0 0 1 0-1.5h1.69l-.22-.22a.75.75 0 0 1 1.06-1.06l1.5 1.5Z"]),Dv=G("DragRegular","1em",["M9.65 2.15c.2-.2.5-.2.7 0l2 2a.5.5 0 0 1-.7.7L10.5 3.71V6.5a.5.5 0 0 1-1 0V3.7L8.35 4.86a.5.5 0 1 1-.7-.7l2-2ZM10 12a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0-1a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm5.85 1.35 2-2a.5.5 0 0 0 0-.7l-2-2a.5.5 0 0 0-.7.7l1.14 1.15H13.5a.5.5 0 0 0 0 1h2.8l-1.15 1.15a.5.5 0 0 0 .7.7Zm-5.5 5.5 2-2a.5.5 0 0 0-.7-.7l-1.15 1.14V13.5a.5.5 0 0 0-1 0v2.8l-1.15-1.15a.5.5 0 0 0-.7.7l2 2c.2.2.5.2.7 0Zm-8.2-7.5a.5.5 0 0 1 0-.7l2-2a.5.5 0 1 1 .7.7L3.71 9.5H6.5a.5.5 0 0 1 0 1H3.7l1.15 1.15a.5.5 0 0 1-.7.7l-2-2Z"]),Hi=G("FilterFilled","1em",["M12.25 13.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5h4.5Zm2-4.25a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5h8.5Zm2-4.25a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1 0-1.5h12.5Z"]),Fv=G("FilterRegular","1em",["M7.5 13h5a.5.5 0 0 1 .09 1H7.5a.5.5 0 0 1-.09-1h5.09-5Zm-2-4h9a.5.5 0 0 1 .09 1H5.5a.5.5 0 0 1-.09-1h9.09-9Zm-2-4h13a.5.5 0 0 1 .09 1H3.5a.5.5 0 0 1-.09-1H16.5h-13Z"]),nc=G("GroupFilled","1em",["M7 4.5c0 .36-.07.7-.2 1H10c.28 0 .5.22.5.5v2H10a2 2 0 0 0-2 2v.5H6a.5.5 0 0 1-.5-.5V6.8a2.5 2.5 0 0 1-1.5.15V10c0 1.1.9 2 2 2h2v2c0 1.1.9 2 2 2h3.05a2.51 2.51 0 0 1 .16-1.5H10a.5.5 0 0 1-.5-.5v-2h.5a2 2 0 0 0 2-2v-.5h2c.28 0 .5.22.5.5v3.2a2.5 2.5 0 0 1 1.5-.15V10a2 2 0 0 0-2-2h-2V6a2 2 0 0 0-2-2H6.95c.03.16.05.33.05.5Zm3.5 5v.5a.5.5 0 0 1-.5.5h-.5V10c0-.28.22-.5.5-.5h.5ZM6 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm11 11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0-11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm-11 11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"]),Iv=G("GroupRegular","1em",["M7 4.5c0 .17-.02.34-.05.5H10a1 1 0 0 1 1 1v2h-1a2 2 0 0 0-2 2v1H6a1 1 0 0 1-1-1V6.95a2.51 2.51 0 0 1-1 0V10c0 1.1.9 2 2 2h2v2c0 1.1.9 2 2 2h3.05a2.51 2.51 0 0 1 0-1H10a1 1 0 0 1-1-1v-2h1a2 2 0 0 0 2-2V9h2a1 1 0 0 1 1 1v3.05a2.51 2.51 0 0 1 1 0V10a2 2 0 0 0-2-2h-2V6a2 2 0 0 0-2-2H6.95c.03.16.05.33.05.5ZM11 9v1a1 1 0 0 1-1 1H9v-1a1 1 0 0 1 1-1h1ZM6 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm11 11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0-11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm-11 11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"]),Ov=G("GroupDismissFilled","1em",["M7 4.5c0 .36-.07.7-.2 1H10c.28 0 .5.22.5.5v2H10a2 2 0 0 0-2 2v.5H6a.5.5 0 0 1-.5-.5V6.8a2.5 2.5 0 0 1-1.5.15V10c0 1.1.9 2 2 2h2v2a2 2 0 0 0 1.16 1.81 5.51 5.51 0 0 1 .34-3.6V10c0-.28.22-.5.5-.5h2.2a5.48 5.48 0 0 1 3.61-.34A2 2 0 0 0 14 8h-2V6a2 2 0 0 0-2-2H6.95c.03.16.05.33.05.5Zm-1 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm11 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm-11 11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm13-1a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-2.65-1.15a.5.5 0 0 0-.7-.7l-1.15 1.14-1.15-1.14a.5.5 0 0 0-.7.7l1.14 1.15-1.14 1.15a.5.5 0 0 0 .7.7l1.15-1.14 1.15 1.14a.5.5 0 0 0 .7-.7l-1.14-1.15 1.14-1.15Z"]),zv=G("GroupListRegular","1em",["M2.5 3a.5.5 0 0 0-.5.5v5c0 .28.22.5.5.5h2a.5.5 0 0 0 0-1H3V4h1.5a.5.5 0 0 0 0-1h-2Zm0 8a.5.5 0 0 0-.5.5v5c0 .28.22.5.5.5h2a.5.5 0 0 0 0-1H3v-4h1.5a.5.5 0 0 0 0-1h-2ZM6 4.5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm.5 7.5a.5.5 0 0 0 0 1h11a.5.5 0 0 0 0-1h-11ZM6 7.5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm.5 7.5a.5.5 0 0 0 0 1h11a.5.5 0 0 0 0-1h-11Z"]),jv=G("NextRegular","1em",["M17 3.5a.5.5 0 0 0-1 0v13a.5.5 0 1 0 1 0v-13ZM3 4.25c0-1 1.12-1.6 1.95-1.04l8.5 5.71c.73.5.73 1.57 0 2.07l-8.5 5.8A1.25 1.25 0 0 1 3 15.75V4.25Zm1.39-.2a.25.25 0 0 0-.39.2v11.5c0 .2.23.32.4.2l8.49-5.78a.25.25 0 0 0 0-.42l-8.5-5.7Z"]),Mv=G("PinRegular","1em",["M10.12 3.14a2 2 0 0 1 3.2-.52l4.06 4.05a2 2 0 0 1-.52 3.2l-3.46 1.74a1.5 1.5 0 0 0-.72.78L11.25 16a1 1 0 0 1-1.64.33L7 13.7 3.7 17H3v-.7L6.3 13l-2.62-2.61a1 1 0 0 1 .34-1.64L7.6 7.32c.34-.14.62-.4.78-.72l1.73-3.46Zm2.5.18a1 1 0 0 0-1.6.26L9.29 7.04a2.5 2.5 0 0 1-1.31 1.2L4.39 9.69l5.93 5.93 1.43-3.59a2.5 2.5 0 0 1 1.2-1.3l3.46-1.74a1 1 0 0 0 .26-1.6l-4.05-4.06Z"]),Av=G("PinOffRegular","1em",["M2.85 2.15a.5.5 0 1 0-.7.7L6.9 7.6 4.02 8.75a1 1 0 0 0-.34 1.64L6.3 13 3 16.3v.7h.7L7 13.7l2.61 2.62a1 1 0 0 0 1.64-.34l1.15-2.88 4.75 4.75a.5.5 0 0 0 .7-.7l-15-15Zm8.78 10.18-1.31 3.28-5.93-5.93 3.28-1.3 3.96 3.95Zm1.33-1.62-.08.04.74.75 3.24-1.62a2 2 0 0 0 .52-3.2l-4.05-4.06a2 2 0 0 0-3.2.52L8.5 6.38l.75.74.04-.08 1.73-3.45a1 1 0 0 1 1.6-.26l4.05 4.05a1 1 0 0 1-.26 1.6l-3.45 1.73Z"]),qv=G("PreviousRegular","1em",["M3 3.5a.5.5 0 0 1 1 0v13a.5.5 0 0 1-1 0v-13Zm14 .75c0-1-1.12-1.6-1.95-1.04l-8.5 5.71c-.73.5-.73 1.57 0 2.07l8.5 5.8c.83.56 1.95-.03 1.95-1.04V4.25Zm-1.39-.2c.17-.12.39 0 .39.2v11.5c0 .2-.22.32-.4.2l-8.49-5.78a.25.25 0 0 1 0-.42l8.5-5.7Z"]),Lv=G("SaveFilled","1em",["M3 5c0-1.1.9-2 2-2h1v3.5C6 7.33 6.67 8 7.5 8h4c.83 0 1.5-.67 1.5-1.5V3h.38a2 2 0 0 1 1.41.59l1.62 1.62A2 2 0 0 1 17 6.62V15a2 2 0 0 1-2 2v-5.5c0-.83-.67-1.5-1.5-1.5h-7c-.83 0-1.5.67-1.5 1.5V17a2 2 0 0 1-2-2V5Zm9-2H7v3.5c0 .28.22.5.5.5h4a.5.5 0 0 0 .5-.5V3Zm2 8.5V17H6v-5.5c0-.28.22-.5.5-.5h7c.28 0 .5.22.5.5Z"]),Vv=G("SaveRegular","1em",["M3 5c0-1.1.9-2 2-2h8.38a2 2 0 0 1 1.41.59l1.62 1.62A2 2 0 0 1 17 6.62V15a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm2-1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1v-4.5c0-.83.67-1.5 1.5-1.5h7c.83 0 1.5.67 1.5 1.5V16a1 1 0 0 0 1-1V6.62a1 1 0 0 0-.3-.7L14.1 4.28a1 1 0 0 0-.71-.29H13v2.5c0 .83-.67 1.5-1.5 1.5h-4A1.5 1.5 0 0 1 6 6.5V4H5Zm2 0v2.5c0 .28.22.5.5.5h4a.5.5 0 0 0 .5-.5V4H7Zm7 12v-4.5a.5.5 0 0 0-.5-.5h-7a.5.5 0 0 0-.5.5V16h8Z"]),Hv=G("SearchFilled","1em",["M8.5 3a5.5 5.5 0 0 1 4.38 8.82l4.15 4.15a.75.75 0 0 1-.98 1.13l-.08-.07-4.15-4.15A5.5 5.5 0 1 1 8.5 3Zm0 1.5a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"]),$v=G("SearchRegular","1em",["M8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),Gv=G("TableSimpleCheckmarkFilled","1em",["M14 17h-3.5v-6.5H17V14a3 3 0 0 1-3 3Zm3-7.5h-6.5V3H14a3 3 0 0 1 3 3v3.5Zm-7.5 0V3H6a3 3 0 0 0-3 3v3.5h6.5Zm0 7.5v-6.5H3V14a3 3 0 0 0 3 3h3.5Zm5.85-3.9a.5.5 0 0 0-.7-.7l-1.4 1.4-.4-.4a.5.5 0 0 0-.7.7l.75.75c.2.2.5.2.7 0l1.75-1.75Z"]),Wv=G("TableSimpleCheckmarkRegular","1em",["M6 3a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3H6ZM4 6c0-1.1.9-2 2-2h3.5v5.5H4V6Zm6.5 3.5V4H14a2 2 0 0 1 2 2v3.5h-5.5Zm-6.5 1h5.5V16H6a2 2 0 0 1-2-2v-3.5Zm10.86 1.4c.2.2.2.5 0 .7l-1.75 1.75a.5.5 0 0 1-.71 0l-.75-.75a.5.5 0 0 1 .7-.7l.4.4 1.4-1.4c.2-.2.51-.2.7 0Z"]),Uv=G("TextSortAscendingFilled","1em",["M6.7 2.5a.75.75 0 0 0-1.4 0L3.03 9a.75.75 0 0 0 1.42.5l.34-1h2.4l.34 1A.75.75 0 0 0 8.96 9L6.7 2.5ZM6 5.04 6.68 7H5.32L6 5.04ZM4 11a.75.75 0 0 0 0 1.5h2.53l-3.14 4.3A.75.75 0 0 0 4 18h4a.75.75 0 0 0 0-1.5H5.47l3.14-4.3A.75.75 0 0 0 8 11H4Zm10.25-9c.41 0 .75.34.75.75v12.57l1.45-1.58a.75.75 0 0 1 1.1 1.02l-2.75 3a.75.75 0 0 1-1.1 0l-2.75-3a.75.75 0 0 1 1.1-1.02l1.45 1.58V2.75c0-.41.34-.75.75-.75Z"]),Kv=G("TextSortDescendingFilled","1em",["M4 2a.75.75 0 1 0 0 1.5h2.53L3.39 7.8A.75.75 0 0 0 4 9h4a.75.75 0 0 0 0-1.5H5.47l3.14-4.3A.75.75 0 0 0 8 2H4Zm2.7 8.5a.75.75 0 0 0-1.4 0L3.03 17a.75.75 0 1 0 1.42.5l.34-1h2.4l.34 1a.75.75 0 1 0 1.42-.5L6.7 10.5ZM6 13.04 6.68 15H5.32L6 13.04ZM14.25 2c.41 0 .75.34.75.75v12.57l1.45-1.58a.75.75 0 0 1 1.1 1.02l-2.75 3a.75.75 0 0 1-1.1 0l-2.75-3a.75.75 0 0 1 1.1-1.02l1.45 1.58V2.75c0-.41.34-.75.75-.75Z"]),Xv=G("ArrowSortDown20Filled","20",["M9.75 17c.23 0 .45-.1.59-.28l2.94-2.94a.75.75 0 0 0-1.06-1.06l-1.72 1.71V3.75a.75.75 0 0 0-1.5 0v10.7L7.28 12.7a.75.75 0 1 0-1.06 1.06l3 3.01c.15.15.34.22.53.22Z"]),Zv=G("ArrowSortDown20Regular","20",["m10 15.29 2.65-2.64a.5.5 0 0 1 .7.7L9.9 16.82a.5.5 0 0 1-.74.03h-.01l-3.5-3.5a.5.5 0 1 1 .71-.7L9 15.29V3.5a.5.5 0 0 1 1 0v11.79Z"]),Yv=G("ArrowSortUp20Filled","20",["M9.75 3c.23 0 .45.1.59.28l2.94 2.94a.75.75 0 0 1-1.06 1.06L10.5 5.57v10.68a.75.75 0 0 1-1.5 0V5.55L7.28 7.3a.75.75 0 1 1-1.06-1.06l3-3.01A.73.73 0 0 1 9.75 3Z"]),Qv=G("ArrowSortUp20Regular","20",["M9 4.71 6.35 7.35a.5.5 0 1 1-.7-.7L9.1 3.18a.5.5 0 0 1 .74-.03h.01l3.5 3.5a.5.5 0 1 1-.71.7L10 4.71V16.5a.5.5 0 0 1-1 0V4.71Z"]),ic=G("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),Jv=G("Checkmark16Filled","16",["M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 0 1 4.9 12L2.22 9.28a.75.75 0 1 1 1.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 0 1 1.06.04Z"]),em=G("CodeTextOff16Filled","16",["M13.25 7h-3a.75.75 0 0 1 0-1.5h3a.75.75 0 0 1 0 1.5Zm-3.5-3h4.5a.75.75 0 0 0 0-1.5h-4.5a.75.75 0 0 0 0 1.5Zm-1 7.5h-7a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5Zm-2-7.5a.75.75 0 0 0 0-1.5H4.62L6.12 4h.63Zm8.1 10.15-13-13a.5.5 0 0 0-.7.7l.64.65h-.04a.75.75 0 0 0 0 1.5h1.54l1.5 1.5h-.04a.75.75 0 0 0 0 1.5h1.54l1.5 1.5H3.75a.75.75 0 0 0 0 1.5h5.54l4.86 4.85a.5.5 0 0 0 .7 0 .5.5 0 0 0 0-.7Z"]),tm=G("CodeTextOff16Regular","16",["m6.12 4-1-1H7a.5.5 0 0 1 0 1h-.88ZM9.5 4h5a.5.5 0 0 0 0-1h-5a.5.5 0 0 0 0 1Zm.5 2a.5.5 0 0 0 0 1h3.5a.5.5 0 0 0 0-1H10Zm-1 6H1.5a.5.5 0 0 0 0 1H9a.5.5 0 0 0 0-1Zm5.85 2.15-13-13a.5.5 0 0 0-.7.7L2.29 3H1.5a.5.5 0 0 0 0 1h1.8l2 2h-.8a.5.5 0 0 0 0 1h1.8l2 2H3.5a.5.5 0 0 0 0 1h5.8l4.85 4.85a.5.5 0 0 0 .7 0 .5.5 0 0 0 0-.7Z"]),rm=G("DocumentSearch24Regular","24",["M11.4 10.95a4.93 4.93 0 0 1 .55 6.32l-.14.2 4.22 4.21.07.09a.77.77 0 0 1-1.08 1.08l-.09-.08-4.25-4.25a4.93 4.93 0 1 1 .73-7.57ZM13.14 2c.6 0 1.17.24 1.59.66l2.81 2.8 2.8 2.82c.43.42.67 1 .67 1.6v9.87c0 1.24-1.01 2.25-2.25 2.25h-1.51c-.04-.3-.15-.58-.34-.83l-.12-.14-.52-.53h2.49c.41 0 .75-.34.75-.75V10h-4.25c-1.2 0-2.17-.92-2.24-2.1L13 7.76V3.5H7.25a.75.75 0 0 0-.75.75v4.42a5.9 5.9 0 0 0-1.5.58v-5C5 3.01 6 2 7.25 2h5.88Zm-7.6 10.04a3.38 3.38 0 1 0 4.79 4.78 3.38 3.38 0 0 0-4.78-4.78Zm8.97-7.48v3.2c0 .37.28.69.65.74H18.45L14.5 4.56Z"]),om=G("Search24Regular","24",["M10 2.75a7.25 7.25 0 0 1 5.63 11.82l4.9 4.9a.75.75 0 0 1-.98 1.13l-.08-.07-4.9-4.9A7.25 7.25 0 1 1 10 2.75Zm0 1.5a5.75 5.75 0 1 0 0 11.5 5.75 5.75 0 0 0 0-11.5Z"]),nm=G("Square12Filled","12",["M2 4c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Z"]),im=G("Square16Filled","16",["M2 4.5A2.5 2.5 0 0 1 4.5 2h7A2.5 2.5 0 0 1 14 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5v-7Z"]),sm="fui-Icon-filled",am="fui-Icon-regular",lm=U({root:{mc9l5x:"fjseox"},visible:{mc9l5x:"f1w7gpdv"}},{d:[".fjseox{display:none;}",".f1w7gpdv{display:inline;}"]}),cm=(e,t)=>{const r=o=>{const{className:n,primaryFill:i="currentColor",filled:s,...a}=o,l=lm();return y.createElement(y.Fragment,null,y.createElement(e,Object.assign({},a,{className:A(l.root,s&&l.visible,sm,n),fill:i})),y.createElement(t,Object.assign({},a,{className:A(l.root,!s&&l.visible,am,n),fill:i})))};return r.displayName="CompoundIcon",r},$e=cm;/*!
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
*/let di;const ra=typeof DOMRect<"u"?DOMRect:class{constructor(e,t,r,o){this.left=e||0,this.top=t||0,this.right=(e||0)+(r||0),this.bottom=(t||0)+(o||0)}};let Cm=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),di=!1}catch{di=!0}const Tn=100;function jt(e){const t=e();let r=t.__tabsterInstanceContext;return r||(r={elementByUId:{},basics:{Promise:t.Promise||void 0,WeakRef:t.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},t.__tabsterInstanceContext=r),r}function Bm(e){const t=e.__tabsterInstanceContext;t&&(t.elementByUId={},delete t.WeakRef,t.containerBoundingRectCache={},t.containerBoundingRectCacheTimer&&e.clearTimeout(t.containerBoundingRectCacheTimer),t.fakeWeakRefsTimer&&e.clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefs=[],delete e.__tabsterInstanceContext)}function Rm(e){const t=e.__tabsterInstanceContext;return new(t?.basics.WeakMap||WeakMap)}class pc{constructor(t){this._target=t}deref(){return this._target}static cleanup(t,r){return t._target?r||!Ki(t._target.ownerDocument,t._target)?(delete t._target,!0):!1:!0}}class ir{constructor(t,r,o){const n=jt(t);let i;n.WeakRef?i=new n.WeakRef(r):(i=new pc(r),n.fakeWeakRefs.push(i)),this._ref=i,this._data=o}get(){const t=this._ref;let r;return t&&(r=t.deref(),r||delete this._ref),r}getData(){return this._data}}function hc(e,t){const r=jt(e);r.fakeWeakRefs=r.fakeWeakRefs.filter(o=>!pc.cleanup(o,t))}function vc(e){const t=jt(e);t.fakeWeakRefsStarted||(t.fakeWeakRefsStarted=!0,t.WeakRef=Dm(t)),t.fakeWeakRefsTimer||(t.fakeWeakRefsTimer=e().setTimeout(()=>{t.fakeWeakRefsTimer=void 0,hc(e),vc(e)},2*60*1e3))}function Em(e){const t=jt(e);t.fakeWeakRefsStarted=!1,t.fakeWeakRefsTimer&&(e().clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefsTimer=void 0,t.fakeWeakRefs=[])}function Ui(e,t,r){if(t.nodeType!==Node.ELEMENT_NODE)return;const o=di?r:{acceptNode:r};return e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,o,!1)}function mc(e,t){let r=t.__tabsterCacheId;const o=jt(e),n=r?o.containerBoundingRectCache[r]:void 0;if(n)return n.rect;const i=t.ownerDocument&&t.ownerDocument.documentElement;if(!i)return new ra;let s=0,a=0,l=i.clientWidth,u=i.clientHeight;if(t!==i){const f=t.getBoundingClientRect();s=Math.max(s,f.left),a=Math.max(a,f.top),l=Math.min(l,f.right),u=Math.min(u,f.bottom)}const c=new ra(s<l?s:-1,a<u?a:-1,s<l?l-s:0,a<u?u-a:0);return r||(r="r-"+ ++o.lastContainerBoundingRectCacheId,t.__tabsterCacheId=r),o.containerBoundingRectCache[r]={rect:c,element:t},o.containerBoundingRectCacheTimer||(o.containerBoundingRectCacheTimer=window.setTimeout(()=>{o.containerBoundingRectCacheTimer=void 0;for(const f of Object.keys(o.containerBoundingRectCache))delete o.containerBoundingRectCache[f].element.__tabsterCacheId;o.containerBoundingRectCache={}},50)),c}function oa(e,t,r){const o=bc(t);if(!o)return!1;const n=mc(e,o),i=t.getBoundingClientRect(),s=i.height*(1-r),a=Math.max(0,n.top-i.top),l=Math.max(0,i.bottom-n.bottom),u=a+l;return u===0||u<=s}function na(e,t,r){const o=bc(t);if(o){const n=mc(e,o),i=t.getBoundingClientRect();r?o.scrollTop+=i.top-n.top:o.scrollTop+=i.bottom-n.bottom}}function bc(e){const t=e.ownerDocument;if(t){for(let r=e.parentElement;r;r=r.parentElement)if(r.scrollWidth>r.clientWidth||r.scrollHeight>r.clientHeight)return r;return t.documentElement}return null}function Pm(e){e.__shouldIgnoreFocus=!0}function yc(e){return!!e.__shouldIgnoreFocus}function Nm(e){const t=new Uint32Array(4);if(e.crypto&&e.crypto.getRandomValues)e.crypto.getRandomValues(t);else if(e.msCrypto&&e.msCrypto.getRandomValues)e.msCrypto.getRandomValues(t);else for(let o=0;o<t.length;o++)t[o]=4294967295*Math.random();const r=[];for(let o=0;o<t.length;o++)r.push(t[o].toString(36));return r.push("|"),r.push((++Cm).toString(36)),r.push("|"),r.push(Date.now().toString(36)),r.join("")}function _o(e,t){const r=jt(e);let o=t.__tabsterElementUID;return o||(o=t.__tabsterElementUID=Nm(e())),!r.elementByUId[o]&&Ki(t.ownerDocument,t)&&(r.elementByUId[o]=new ir(e,t)),o}function ia(e,t){const r=jt(e);for(const o of Object.keys(r.elementByUId)){const n=r.elementByUId[o],i=n&&n.get();i&&t&&!t.contains(i)||delete r.elementByUId[o]}}function Ki(e,t){var r;return!!(!((r=e?.body)===null||r===void 0)&&r.contains(t))}function wc(e,t){const r=e.matches||e.matchesSelector||e.msMatchesSelector||e.webkitMatchesSelector;return r&&r.call(e,t)}function Tm(e){const t=jt(e);if(t.basics.Promise)return t.basics.Promise;throw new Error("No Promise defined.")}function Dm(e){return e.basics.WeakRef}let Fm=0;class Qo{constructor(t,r,o){const n=t.getWindow;this._tabster=t,this._element=new ir(n,r),this._props={...o},this.id="i"+ ++Fm}getElement(){return this._element.get()}getProps(){return this._props}setProps(t){this._props={...t}}}class fi{constructor(t,r,o,n){var i;this._focusIn=u=>{const c=this.input;if(this.onFocusIn&&c){const f=dt.getLastPhantomFrom()||u.relatedTarget;this.onFocusIn(this,this._isBackward(!0,c,f),f)}},this._focusOut=u=>{this.useDefaultAction=!1;const c=this.input;if(this.onFocusOut&&c){const f=u.relatedTarget;this.onFocusOut(this,this._isBackward(!1,c,f),f)}};const s=t(),a=s.document.createElement("i");a.tabIndex=0,a.setAttribute("role","none"),a.setAttribute(Wi,""),a.setAttribute("aria-hidden","true");const l=a.style;l.position="fixed",l.width=l.height="1px",l.opacity="0.001",l.zIndex="-1",l.setProperty("content-visibility","hidden"),Pm(a),this.input=a,this.isFirst=o.isFirst,this.isOutside=r,this._isPhantom=(i=o.isPhantom)!==null&&i!==void 0?i:!1,a.addEventListener("focusin",this._focusIn),a.addEventListener("focusout",this._focusOut),a.__tabsterDummyContainer=n,this._isPhantom&&(this._disposeTimer=s.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(s.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var t;this._clearDisposeTimeout&&this._clearDisposeTimeout();const r=this.input;r&&(delete this.onFocusIn,delete this.onFocusOut,delete this.input,r.removeEventListener("focusin",this._focusIn),r.removeEventListener("focusout",this._focusOut),delete r.__tabsterDummyContainer,(t=r.parentElement)===null||t===void 0||t.removeChild(r))}setTopLeft(t,r){var o;const n=(o=this.input)===null||o===void 0?void 0:o.style;n&&(n.top=`${t}px`,n.left=`${r}px`)}_isBackward(t,r,o){return t&&!o?!this.isFirst:!!(o&&r.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)}}const Xi={Root:1,Modalizer:2,Mover:3,Groupper:4};class dt{constructor(t,r,o,n,i,s){this._element=r,this._instance=new Om(t,r,this,o,n,i,s)}_setHandlers(t,r){this._onFocusIn=t,this._onFocusOut=r}moveOut(t){var r;(r=this._instance)===null||r===void 0||r.moveOut(t)}moveOutWithDefaultAction(t){var r;(r=this._instance)===null||r===void 0||r.moveOutWithDefaultAction(t)}getHandler(t){return t?this._onFocusIn:this._onFocusOut}setTabbable(t){var r;(r=this._instance)===null||r===void 0||r.setTabbable(this,t)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static getLastPhantomFrom(){const t=dt._lastPhantomFrom;return delete dt._lastPhantomFrom,t}static moveWithPhantomDummy(t,r,o,n){const s=new fi(t.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(s){const a=r.parentElement;if(a){let l=o&&!n||!o&&n?r.nextElementSibling:r;if(l)if(n){const u=l.previousElementSibling;u&&u.__tabsterDummyContainer&&(l=u)}else l.__tabsterDummyContainer&&(l=l.nextElementSibling);a.insertBefore(s,l),dt._lastPhantomFrom=r,t.getWindow().setTimeout(()=>{delete dt._lastPhantomFrom},0),Gt(s)}}}}function Lt(e,t){var r;const o={1:"Root",2:"Modalizer",3:"Mover",4:"Groupper"};(r=e.input)===null||r===void 0||r.setAttribute(Wi,[`isFirst=${e.isFirst}`,`isOutside=${e.isOutside}`,...t.map(n=>`(${o[n.priority]}, tabbable=${n.tabbable})`)].join(", "))}class Im{constructor(t){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=r=>{var o;this._changedParents.has(r)||(this._changedParents.add(r),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(o=this._win)===null||o===void 0?void 0:o.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const n of this._dummyElements){const i=n.deref();if(i){const s=this._dummyCallbacks.get(i);if(s){const a=i.parentElement;(!a||this._changedParents.has(a))&&s()}}}this._changedParents=new WeakSet},Tn)))},this._win=t}add(t,r){this._dummyCallbacks.has(t)||(this._dummyElements.push(new WeakRef(t)),this._dummyCallbacks.set(t,r),this.domChanged=this._domChanged)}remove(t){this._dummyElements=this._dummyElements.filter(r=>{const o=r.deref();return o&&o!==t}),this._dummyCallbacks.delete(t),this._dummyElements.length===0&&delete this.domChanged}dispose(){var t;const r=(t=this._win)===null||t===void 0?void 0:t.call(this);this._updateTimer&&(r?.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(r?.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(t){this._win&&(this._updateQueue.add(t),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var t;this._updateTimer||(this._updateTimer=(t=this._win)===null||t===void 0?void 0:t.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+Tn<=Date.now()){const r=new Map,o=[];for(const n of this._updateQueue)o.push(n(r));this._updateQueue.clear();for(const n of o)n();r.clear()}else this._scheduledUpdatePositions()},Tn))}}class Om{constructor(t,r,o,n,i,s,a){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(d,p,h)=>{this._onFocus(!0,d,p,h)},this._onFocusOut=(d,p,h)=>{this._onFocus(!1,d,p,h)},this.moveOut=d=>{var p;const h=this._firstDummy,b=this._lastDummy;if(h&&b){this._ensurePosition();const v=h.input,m=b.input,w=(p=this._element)===null||p===void 0?void 0:p.get();if(v&&m&&w){let x;d?(v.tabIndex=0,x=v):(m.tabIndex=0,x=m),x&&Gt(x)}}},this.moveOutWithDefaultAction=d=>{var p;const h=this._firstDummy,b=this._lastDummy;if(h&&b){this._ensurePosition();const v=h.input,m=b.input,w=(p=this._element)===null||p===void 0?void 0:p.get();if(v&&m&&w){let x;d?!h.isOutside&&this._tabster.focusable.isFocusable(w,!0,!0,!0)?x=w:(h.useDefaultAction=!0,v.tabIndex=0,x=v):(b.useDefaultAction=!0,m.tabIndex=0,x=m),x&&Gt(x)}}},this.setTabbable=(d,p)=>{var h,b;for(const m of this._wrappers)if(m.manager===d){m.tabbable=p;break}const v=this._getCurrent();if(v){const m=v.tabbable?0:-1;let w=(h=this._firstDummy)===null||h===void 0?void 0:h.input;w&&(w.tabIndex=m),w=(b=this._lastDummy)===null||b===void 0?void 0:b.input,w&&(w.tabIndex=m)}process.env.NODE_ENV==="development"&&(this._firstDummy&&Lt(this._firstDummy,this._wrappers),this._lastDummy&&Lt(this._lastDummy,this._wrappers))},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),process.env.NODE_ENV==="development"&&(this._firstDummy&&Lt(this._firstDummy,this._wrappers),this._lastDummy&&Lt(this._lastDummy,this._wrappers)),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=d=>{var p,h;const b=((p=this._firstDummy)===null||p===void 0?void 0:p.input)||((h=this._lastDummy)===null||h===void 0?void 0:h.input),v=this._transformElements,m=new Set;let w=0,x=0;const k=this._getWindow();for(let _=b;_&&_.nodeType===Node.ELEMENT_NODE;_=_.parentElement){let S=d.get(_);if(S===void 0){const E=k.getComputedStyle(_).transform;E&&E!=="none"&&(S={scrollTop:_.scrollTop,scrollLeft:_.scrollLeft}),d.set(_,S||null)}S&&(m.add(_),v.has(_)||_.addEventListener("scroll",this._addTransformOffsets),w+=S.scrollTop,x+=S.scrollLeft)}for(const _ of v)m.has(_)||_.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=m,()=>{var _,S;(_=this._firstDummy)===null||_===void 0||_.setTopLeft(w,x),(S=this._lastDummy)===null||S===void 0||S.setTopLeft(w,x)}};const l=r.get();if(!l)throw new Error("No element");this._tabster=t,this._getWindow=t.getWindow,this._callForDefaultAction=a;const u=l.__tabsterDummy;if((u||this)._wrappers.push({manager:o,priority:n,tabbable:!0}),u)return process.env.NODE_ENV==="development"&&(this._firstDummy&&Lt(this._firstDummy,u._wrappers),this._lastDummy&&Lt(this._lastDummy,u._wrappers)),u;l.__tabsterDummy=this;const c=i?.dummyInputsPosition,f=l.tagName;this._isOutside=c?c===fc.Outside:(s||f==="UL"||f==="OL"||f==="TABLE")&&!(f==="LI"||f==="TD"||f==="TH"),this._firstDummy=new fi(this._getWindow,this._isOutside,{isFirst:!0},r),this._lastDummy=new fi(this._getWindow,this._isOutside,{isFirst:!1},r);const g=this._firstDummy.input;g&&t._dummyObserver.add(g,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=r,this._addDummyInputs()}dispose(t,r){var o,n,i,s;const a=this._wrappers=this._wrappers.filter(l=>l.manager!==t&&!r);if(process.env.NODE_ENV==="development"&&(this._firstDummy&&Lt(this._firstDummy,a),this._lastDummy&&Lt(this._lastDummy,a)),a.length===0){delete((o=this._element)===null||o===void 0?void 0:o.get()).__tabsterDummy;for(const c of this._transformElements)c.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const l=this._getWindow();this._addTimer&&(l.clearTimeout(this._addTimer),delete this._addTimer);const u=(n=this._firstDummy)===null||n===void 0?void 0:n.input;u&&this._tabster._dummyObserver.remove(u),(i=this._firstDummy)===null||i===void 0||i.dispose(),(s=this._lastDummy)===null||s===void 0||s.dispose()}}_onFocus(t,r,o,n){var i;const s=this._getCurrent();s&&(!r.useDefaultAction||this._callForDefaultAction)&&((i=s.manager.getHandler(t))===null||i===void 0||i(r,o,n))}_getCurrent(){return this._wrappers.sort((t,r)=>t.tabbable!==r.tabbable?t.tabbable?-1:1:t.priority-r.priority),this._wrappers[0]}_ensurePosition(){var t,r,o;const n=(t=this._element)===null||t===void 0?void 0:t.get(),i=(r=this._firstDummy)===null||r===void 0?void 0:r.input,s=(o=this._lastDummy)===null||o===void 0?void 0:o.input;if(!(!n||!i||!s))if(this._isOutside){const a=n.parentElement;if(a){const l=n.nextElementSibling;l!==s&&a.insertBefore(s,l),n.previousElementSibling!==i&&a.insertBefore(i,n)}}else{n.lastElementChild!==s&&n.appendChild(s);const a=n.firstElementChild;a&&a!==i&&n.insertBefore(i,a)}}}function xc(e){let t=null;for(let r=e.lastElementChild;r;r=r.lastElementChild)t=r;return t||void 0}function lr(e,t,r){const o=document.createEvent("HTMLEvents");return o.initEvent(t,!0,!0),o.details=r,e.dispatchEvent(o),!o.defaultPrevented}function Dn(e,t,r,o){const n=e.storageEntry(t,!0);let i=!1;if(!n.aug){if(o===void 0)return i;n.aug={}}if(o===void 0){if(r in n.aug){const s=n.aug[r];delete n.aug[r],s===null?t.removeAttribute(r):t.setAttribute(r,s),i=!0}}else{let s;r in n.aug||(s=t.getAttribute(r)),s!==void 0&&s!==o&&(n.aug[r]=s,o===null?t.removeAttribute(r):t.setAttribute(r,o),i=!0)}return o===void 0&&Object.keys(n.aug).length===0&&(delete n.aug,e.storageEntry(t,!1)),i}/*!
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
*/const Wm=["input","textarea","*[contenteditable]"].join(", ");class Um extends dt{constructor(t,r,o,n){super(r,t,Xi.Mover,n),this._onFocusDummyInput=i=>{var s,a;const l=this._element.get(),u=i.input;if(l&&u){const c=ke.getTabsterContext(this._tabster,l);let f;c&&(f=(s=ve.findNextTabbable(this._tabster,c,void 0,u,void 0,!i.isFirst,!0))===null||s===void 0?void 0:s.element);const g=(a=this._getMemorized())===null||a===void 0?void 0:a.get();g&&(f=g),f&&Gt(f)}},this._tabster=r,this._getMemorized=o,this._setHandlers(this._onFocusDummyInput)}}const On=1,la=2,ca=3;class Km extends Qo{constructor(t,r,o,n,i){var s;super(t,r,n),this._visible={},this._onIntersection=l=>{for(const u of l){const c=u.target,f=_o(this._win,c);let g,d=this._fullyVisible;if(u.intersectionRatio>=.25?(g=u.intersectionRatio>=.75?Bt.Visible:Bt.PartiallyVisible,g===Bt.Visible&&(d=f)):g=Bt.Invisible,this._visible[f]!==g){g===void 0?(delete this._visible[f],d===f&&delete this._fullyVisible):(this._visible[f]=g,this._fullyVisible=d);const p=this.getState(c);p&&lr(c,ui,p)}}},this._win=t.getWindow,this.visibilityTolerance=(s=n.visibilityTolerance)!==null&&s!==void 0?s:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=o;const a=()=>n.memorizeCurrent?this._current:void 0;t.controlTab||(this.dummyManager=new Um(this._element,t,a,i))}dispose(){var t;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const r=this._win();this._setCurrentTimer&&(r.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(r.clearTimeout(this._updateTimer),delete this._updateTimer),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager}setCurrent(t){t?this._current=new ir(this._win,t):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var r;delete this._setCurrentTimer;const o=[];this._current!==this._prevCurrent&&(o.push(this._current),o.push(this._prevCurrent),this._prevCurrent=this._current);for(const n of o){const i=n?.get();if(i&&((r=this._allElements)===null||r===void 0?void 0:r.get(i))===this){const s=this._props;if(i&&(s.visibilityAware!==void 0||s.trackState)){const a=this.getState(i);a&&lr(i,ui,a)}}}}))}getCurrent(){var t;return((t=this._current)===null||t===void 0?void 0:t.get())||null}findNextTabbable(t,r,o,n,i){var s;const a=this.getElement(),l=a&&((s=t?.__tabsterDummyContainer)===null||s===void 0?void 0:s.get())===a;if(!a)return null;const u=this._tabster;let c=null,f,g=!1;const d=p=>{f=p};if(this._props.tabbable||l||t&&!a.contains(t)){const p={currentElement:t,referenceElement:r,container:a,onUncontrolled:d,ignoreUncontrolled:n,ignoreAccessibility:i,useActiveModalizer:!0},h={};c=u.focusable[o?"findPrev":"findNext"](p,h),g=!!h.outOfDOMOrder}return{element:c,uncontrolled:f,outOfDOMOrder:g}}acceptElement(t,r){var o,n,i;if(!ve.isTabbing)return!((o=r.currentCtx)===null||o===void 0)&&o.isExcludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:s,visibilityAware:a,hasDefault:l=!0}=this._props,u=this.getElement();if(u&&(s||a||l)&&(!u.contains(r.from)||((n=r.from.__tabsterDummyContainer)===null||n===void 0?void 0:n.get())===u)){let c;if(s){const f=(i=this._current)===null||i===void 0?void 0:i.get();f&&r.acceptCondition(f)&&(c=f)}if(!c&&l&&(c=this._tabster.focusable.findDefault({container:u,ignoreUncontrolled:!0,useActiveModalizer:!0})),!c&&a&&(c=this._tabster.focusable.findElement({container:u,ignoreUncontrolled:!0,useActiveModalizer:!0,isBackward:r.isBackward,acceptCondition:f=>{var g;const d=_o(this._win,f),p=this._visible[d];return u!==f&&!!(!((g=this._allElements)===null||g===void 0)&&g.get(f))&&r.acceptCondition(f)&&(p===Bt.Visible||p===Bt.PartiallyVisible&&(a===Bt.PartiallyVisible||!this._fullyVisible))}})),c)return r.found=!0,r.foundElement=c,r.lastToIgnore=u,r.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const t=this.getElement();if(this._unobserve||!t||typeof MutationObserver>"u")return;const r=this._win(),o=this._allElements=new WeakMap,n=this._tabster.focusable;let i=this._updateQueue=[];const s=new MutationObserver(d=>{for(const p of d){const h=p.target,b=p.removedNodes,v=p.addedNodes;if(p.type==="attributes")p.attributeName==="tabindex"&&i.push({element:h,type:la});else{for(let m=0;m<b.length;m++)i.push({element:b[m],type:ca});for(let m=0;m<v.length;m++)i.push({element:v[m],type:On})}}f()}),a=(d,p)=>{var h,b;const v=o.get(d);v&&p&&((h=this._intersectionObserver)===null||h===void 0||h.unobserve(d),o.delete(d)),!v&&!p&&(o.set(d,this),(b=this._intersectionObserver)===null||b===void 0||b.observe(d))},l=d=>{const p=n.isFocusable(d);o.get(d)?p||a(d,!0):p&&a(d)},u=d=>{const{mover:p}=g(d);if(p&&p!==this)if(p.getElement()===d&&n.isFocusable(d))a(d);else return;const h=Ui(r.document,d,b=>{const{mover:v,groupper:m}=g(b);if(v&&v!==this)return NodeFilter.FILTER_REJECT;const w=m?.getFirst(!0);return m&&m.getElement()!==b&&w&&w!==b?NodeFilter.FILTER_REJECT:(n.isFocusable(b)&&a(b),NodeFilter.FILTER_SKIP)});if(h)for(h.currentNode=d;h.nextNode(););},c=d=>{o.get(d)&&a(d,!0);for(let h=d.firstElementChild;h;h=h.nextElementSibling)c(h)},f=()=>{!this._updateTimer&&i.length&&(this._updateTimer=r.setTimeout(()=>{delete this._updateTimer;for(const{element:d,type:p}of i)switch(p){case la:l(d);break;case On:u(d);break;case ca:c(d);break}i=this._updateQueue=[]},0))},g=d=>{const p={};for(let h=d;h;h=h.parentElement){const b=rt(this._tabster,h);if(b&&(b.groupper&&!p.groupper&&(p.groupper=b.groupper),b.mover)){p.mover=b.mover;break}}return p};i.push({element:t,type:On}),f(),s.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{s.disconnect()}}getState(t){const r=_o(this._win,t);if(r in this._visible){const o=this._visible[r]||Bt.Invisible;return{isCurrent:this._current?this._current.get()===t:void 0,visibility:o}}}}function Xm(e,t,r,o,n,i,s,a){const l=r<n?n-r:s<e?e-s:0,u=o<i?i-o:a<t?t-a:0;return l===0?u:u===0?l:Math.sqrt(l*l+u*u)}class Zm{constructor(t,r){this._init=()=>{this._win().addEventListener("keydown",this._onKeyDown,!0),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=o=>{delete this._movers[o.id]},this._onFocus=o=>{var n;for(let i=o;i;i=i.parentElement){const s=(n=rt(this._tabster,i))===null||n===void 0?void 0:n.mover;if(s){s.setCurrent(o);break}}},this._onKeyDown=async o=>{var n,i,s,a;this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(n=this._ignoredInputResolve)===null||n===void 0||n.call(this,!1);let l=o.keyCode;if(o.ctrlKey||o.altKey||o.shiftKey||o.metaKey)return;switch(l){case ee.Down:case ee.Right:case ee.Up:case ee.Left:case ee.PageDown:case ee.PageUp:case ee.Home:case ee.End:break;default:return}const u=this._tabster,c=u.focusedElement.getFocusedElement();if(!c||await this._isIgnoredInput(c,l))return;const f=ke.getTabsterContext(u,c,{checkRtl:!0});if(!f||!f.mover||f.isExcludedFromMover||f.ignoreKeydown(o))return;const g=f.mover,d=g.getElement();if(f.isGroupperFirst){const T=f.groupper;if(T&&!T.isActive(!0)){for(let B=(i=T.getElement())===null||i===void 0?void 0:i.parentElement;B&&B!==d;B=B.parentElement)if(!((a=(s=rt(u,B))===null||s===void 0?void 0:s.groupper)===null||a===void 0)&&a.isActive(!0))return}else return}if(!d)return;const p=u.focusable,h=g.getProps(),b=h.direction||Qt.Both,v=b===Qt.Both,m=v||b===Qt.Vertical,w=v||b===Qt.Horizontal,x=b===Qt.GridLinear,k=x||b===Qt.Grid,_=h.cyclic;let S,E,F=0,O=0;if(k&&(E=c.getBoundingClientRect(),F=Math.ceil(E.left),O=Math.floor(E.right)),f.isRtl&&(l===ee.Right?l=ee.Left:l===ee.Left&&(l=ee.Right)),l===ee.Down&&m||l===ee.Right&&(w||k))if(S=p.findNext({currentElement:c,container:d,useActiveModalizer:!0}),S&&k){const T=Math.ceil(S.getBoundingClientRect().left);!x&&O>T&&(S=void 0)}else!S&&_&&(S=p.findFirst({container:d,ignoreUncontrolled:!0,useActiveModalizer:!0}));else if(l===ee.Up&&m||l===ee.Left&&(w||k))if(S=p.findPrev({currentElement:c,container:d,useActiveModalizer:!0}),S&&k){const T=Math.floor(S.getBoundingClientRect().right);!x&&T>F&&(S=void 0)}else!S&&_&&(S=p.findLast({container:d,ignoreUncontrolled:!0,useActiveModalizer:!0}));else if(l===ee.Home)k?p.findElement({container:d,currentElement:c,ignoreUncontrolled:!0,useActiveModalizer:!0,isBackward:!0,acceptCondition:T=>{var B;if(!p.isFocusable(T))return!1;const R=Math.ceil((B=T.getBoundingClientRect().left)!==null&&B!==void 0?B:0);return T!==c&&F<=R?!0:(S=T,!1)}}):S=p.findFirst({container:d,ignoreUncontrolled:!0,useActiveModalizer:!0});else if(l===ee.End)k?p.findElement({container:d,currentElement:c,ignoreUncontrolled:!0,useActiveModalizer:!0,acceptCondition:T=>{var B;if(!p.isFocusable(T))return!1;const R=Math.ceil((B=T.getBoundingClientRect().left)!==null&&B!==void 0?B:0);return T!==c&&F>=R?!0:(S=T,!1)}}):S=p.findLast({container:d,ignoreUncontrolled:!0,useActiveModalizer:!0});else if(l===ee.PageUp){if(p.findElement({currentElement:c,container:d,useActiveModalizer:!0,isBackward:!0,acceptCondition:T=>p.isFocusable(T)?oa(this._win,T,g.visibilityTolerance)?(S=T,!1):!0:!1}),k&&S){const T=Math.ceil(S.getBoundingClientRect().left);p.findElement({currentElement:S,container:d,useActiveModalizer:!0,acceptCondition:B=>{if(!p.isFocusable(B))return!1;const R=Math.ceil(B.getBoundingClientRect().left);return F<R||T>=R?!0:(S=B,!1)}})}S&&na(this._win,S,!1)}else if(l===ee.PageDown){if(p.findElement({currentElement:c,container:d,useActiveModalizer:!0,acceptCondition:T=>p.isFocusable(T)?oa(this._win,T,g.visibilityTolerance)?(S=T,!1):!0:!1}),k&&S){const T=Math.ceil(S.getBoundingClientRect().left);p.findElement({currentElement:S,container:d,useActiveModalizer:!0,isBackward:!0,acceptCondition:B=>{if(!p.isFocusable(B))return!1;const R=Math.ceil(B.getBoundingClientRect().left);return F>R||T<=R?!0:(S=B,!1)}})}S&&na(this._win,S,!0)}else if(k){const T=l===ee.Up,B=F,R=Math.ceil(E.top),H=O,Z=Math.floor(E.bottom);let Y,Q,ue=0;p.findAll({container:d,currentElement:c,isBackward:T,onElement:Se=>{const me=Se.getBoundingClientRect(),De=Math.ceil(me.left),Me=Math.ceil(me.top),Le=Math.floor(me.right),D=Math.floor(me.bottom);if(T&&R<D||!T&&Z>Me)return!0;const z=Math.ceil(Math.min(H,Le))-Math.floor(Math.max(B,De)),$=Math.ceil(Math.min(H-B,Le-De));if(z>0&&$>=z){const M=z/$;M>ue&&(Y=Se,ue=M)}else if(ue===0){const M=Xm(B,R,H,Z,De,Me,Le,D);(Q===void 0||M<Q)&&(Q=M,Y=Se)}else if(ue>0)return!1;return!0}}),S=Y}S&&(o.preventDefault(),o.stopImmediatePropagation(),Gt(S))},this._tabster=t,this._win=r,this._movers={},t.queueInit(this._init)}dispose(){var t;const r=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(t=this._ignoredInputResolve)===null||t===void 0||t.call(this,!1),this._ignoredInputTimer&&(r.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),r.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._movers).forEach(o=>{this._movers[o]&&(this._movers[o].dispose(),delete this._movers[o])})}createMover(t,r,o){process.env.NODE_ENV;const n=new Km(this._tabster,t,this._onMoverDispose,r,o);return this._movers[n.id]=n,n}async _isIgnoredInput(t,r){var o;if(t.getAttribute("aria-expanded")==="true")return!0;if(wc(t,Wm)){let n=0,i=0,s=0,a;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"){const l=t.type;if(s=(t.value||"").length,l==="email"||l==="number"){if(s){const c=(o=t.ownerDocument.defaultView)===null||o===void 0?void 0:o.getSelection();if(c){const f=c.toString().length,g=r===ee.Left||r===ee.Up;if(c.modify("extend",g?"backward":"forward","character"),f!==c.toString().length)return c.modify("extend",g?"forward":"backward","character"),!0;s=0}}}else{const c=t.selectionStart;if(c===null)return l==="hidden";n=c||0,i=t.selectionEnd||0}}else t.contentEditable==="true"&&(a=new(Tm(this._win))(l=>{this._ignoredInputResolve=p=>{delete this._ignoredInputResolve,l(p)};const u=this._win();this._ignoredInputTimer&&u.clearTimeout(this._ignoredInputTimer);const{anchorNode:c,focusNode:f,anchorOffset:g,focusOffset:d}=u.getSelection()||{};this._ignoredInputTimer=u.setTimeout(()=>{var p,h,b;delete this._ignoredInputTimer;const{anchorNode:v,focusNode:m,anchorOffset:w,focusOffset:x}=u.getSelection()||{};if(v!==c||m!==f||w!==g||x!==d){(p=this._ignoredInputResolve)===null||p===void 0||p.call(this,!1);return}if(n=w||0,i=x||0,s=((h=t.textContent)===null||h===void 0?void 0:h.length)||0,v&&m&&t.contains(v)&&t.contains(m)&&v!==t){let k=!1;const _=S=>{if(S===v)k=!0;else if(S===m)return!0;const E=S.textContent;if(E&&!S.firstChild){const O=E.length;k?m!==v&&(i+=O):(n+=O,i+=O)}let F=!1;for(let O=S.firstChild;O&&!F;O=O.nextSibling)F=_(O);return F};_(t)}(b=this._ignoredInputResolve)===null||b===void 0||b.call(this,!0)},0)}));if(a&&!await a||n!==i||n>0&&(r===ee.Left||r===ee.Up||r===ee.Home)||n<s&&(r===ee.Right||r===ee.Down||r===ee.End))return!0}return!1}}/*!
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
*/class rb{constructor(t){this.keyboardNavigation=t.keyboardNavigation,this.focusedElement=t.focusedElement,this.focusable=t.focusable,this.root=t.root,this.uncontrolled=t.uncontrolled,this.core=t}}class ob{constructor(t,r){var o,n;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="4.9.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=Rm(t),this._win=t;const i=this.getWindow;this.keyboardNavigation=new Lm(i),this.focusedElement=new ve(this,i),this.focusable=new qm(this),this.root=new ke(this,r?.autoRoot),this.uncontrolled=new Qm,this.controlTab=(o=r?.controlTab)!==null&&o!==void 0?o:!0,this.rootDummyInputs=!!r?.rootDummyInputs,this._dummyObserver=new Im(i),this.getParent=(n=r?.getParent)!==null&&n!==void 0?n:s=>s.parentElement,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:s=>{if(!this._unobserve){const a=i().document;this._unobserve=Ym(a,this,gc,s)}}},vc(i),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(t){var r;t&&(this.getParent=(r=t.getParent)!==null&&r!==void 0?r:this.getParent)}createTabster(t,r){const o=new rb(this);return t||this._wrappers.add(o),this._mergeProps(r),o}disposeTabster(t,r){r?this._wrappers.clear():this._wrappers.delete(t),this._wrappers.size===0&&this.dispose()}dispose(){var t,r,o,n,i,s,a,l;this.internal.stopObserver();const u=this._win;u?.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],u&&this._forgetMemorizedTimer&&(u.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(t=this.outline)===null||t===void 0||t.dispose(),(r=this.crossOrigin)===null||r===void 0||r.dispose(),(o=this.deloser)===null||o===void 0||o.dispose(),(n=this.groupper)===null||n===void 0||n.dispose(),(i=this.mover)===null||i===void 0||i.dispose(),(s=this.modalizer)===null||s===void 0||s.dispose(),(a=this.observedElement)===null||a===void 0||a.dispose(),(l=this.restorer)===null||l===void 0||l.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),Em(this.getWindow),ia(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),u&&(Bm(u),delete u.__tabsterInstance,delete this._win)}storageEntry(t,r){const o=this._storage;let n=o.get(t);return n?r===!1&&Object.keys(n).length===0&&o.delete(t):r===!0&&(n={},o.set(t,n)),n}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let t=this._forgetMemorizedElements.shift();t;t=this._forgetMemorizedElements.shift())ia(this.getWindow,t),ve.forgetMemorized(this.focusedElement,t)},0),hc(this.getWindow,!0)))}queueInit(t){var r;this._win&&(this._initQueue.push(t),this._initTimer||(this._initTimer=(r=this._win)===null||r===void 0?void 0:r.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const t=this._initQueue;this._initQueue=[],t.forEach(r=>r())}}function nb(e,t){let r=lb(e);return r?r.createTabster(!1,t):(r=new ob(e,t),e.__tabsterInstance=r,r.createTabster())}function ib(e){const t=e.core;return t.mover||(t.mover=new Zm(t,t.getWindow)),t.mover}function sb(e,t,r){const o=e.core;return o.modalizer||(o.modalizer=new Gm(o,t,r)),o.modalizer}function Zi(e){const t=e.core;return t.restorer||(t.restorer=new tb(t)),t.restorer}function ab(e,t){e.core.disposeTabster(e,t)}function lb(e){return e.__tabsterInstance}const Rr=()=>{const{targetDocument:e}=Xe(),t=e?.defaultView||void 0,r=y.useMemo(()=>t?nb(t,{autoRoot:{},controlTab:!1,getParent:Ul}):null,[t]);return $t(()=>()=>{r&&ab(r)},[r]),r},gi=e=>(Rr(),Jo(e)),cb=(e={})=>{const{circular:t,axis:r,memorizeCurrent:o,tabbable:n,ignoreDefaultKeydown:i,unstable_hasDefault:s}=e,a=Rr();return a&&ib(a),gi({mover:{cyclic:!!t,direction:ub(r??"vertical"),memorizeCurrent:o,tabbable:n,hasDefault:s},...i&&{focusable:{ignoreKeydown:i}}})};function ub(e){switch(e){case"horizontal":return Et.MoverDirections.Horizontal;case"grid":return Et.MoverDirections.Grid;case"grid-linear":return Et.MoverDirections.GridLinear;case"both":return Et.MoverDirections.Both;case"vertical":default:return Et.MoverDirections.Vertical}}const en=()=>{const e=Rr(),{targetDocument:t}=Xe(),r=y.useCallback((a,l)=>e?.focusable.findAll({container:a,acceptCondition:l})||[],[e]),o=y.useCallback(a=>e?.focusable.findFirst({container:a}),[e]),n=y.useCallback(a=>e?.focusable.findLast({container:a}),[e]),i=y.useCallback((a,l={})=>{if(!e||!t)return null;const{container:u=t.body}=l;return e.focusable.findNext({currentElement:a,container:u})},[e,t]),s=y.useCallback((a,l={})=>{if(!e||!t)return null;const{container:u=t.body}=l;return e.focusable.findPrev({currentElement:a,container:u})},[e,t]);return{findAllFocusable:r,findFirstFocusable:o,findLastFocusable:n,findNextFocusable:i,findPrevFocusable:s}},ua="data-fui-focus-visible",Sc="data-fui-focus-within";function db(e,t){if(_c(e))return()=>{};const r={current:void 0},o=$i(t);function n(l){o.isNavigatingWithKeyboard()&&ar(l)&&(r.current=l,l.setAttribute(ua,""))}function i(){r.current&&(r.current.removeAttribute(ua),r.current=void 0)}o.subscribe(l=>{l||i()});const s=l=>{i(),n(l.target)},a=l=>{(!l.relatedTarget||ar(l.relatedTarget)&&!e.contains(l.relatedTarget))&&i()};return e.addEventListener(Dt,s),e.addEventListener("focusout",a),e.focusVisible=!0,n(t.document.activeElement),()=>{i(),e.removeEventListener(Dt,s),e.removeEventListener("focusout",a),delete e.focusVisible,Gi(o)}}function _c(e){return e?e.focusVisible?!0:_c(e?.parentElement):!1}function fb(e={}){const t=Xe(),r=y.useRef(null);var o;const n=(o=e.targetDocument)!==null&&o!==void 0?o:t.targetDocument;return y.useEffect(()=>{if(n?.defaultView&&r.current)return db(r.current,n.defaultView)},[r,n]),r}function gb(e,t){const r=$i(t);r.subscribe(i=>{i||da(e)});const o=i=>{r.isNavigatingWithKeyboard()&&fa(i.target)&&pb(e)},n=i=>{(!i.relatedTarget||fa(i.relatedTarget)&&!e.contains(i.relatedTarget))&&da(e)};return e.addEventListener(Dt,o),e.addEventListener("focusout",n),()=>{e.removeEventListener(Dt,o),e.removeEventListener("focusout",n),Gi(r)}}function pb(e){e.setAttribute(Sc,"")}function da(e){e.removeAttribute(Sc)}function fa(e){return e?!!(e&&typeof e=="object"&&"classList"in e&&"contains"in e):!1}function Cc(){const{targetDocument:e}=Xe(),t=y.useRef(null);return y.useEffect(()=>{if(e?.defaultView&&t.current)return gb(t.current,e.defaultView)},[t,e]),t}const Bc=(e={})=>{const{trapFocus:t,alwaysFocusable:r,legacyTrapFocus:o}=e,n=Rr();n&&(sb(n),Zi(n));const i=xt("modal-",e.id),s=gi({restorer:{type:Et.RestorerTypes.Source},...t&&{modalizer:{id:i,isOthersAccessible:!t,isAlwaysAccessible:r,isTrapped:o&&t}}}),a=gi({restorer:{type:Et.RestorerTypes.Target}});return{modalAttributes:s,triggerAttributes:a}};function hb(){const e=Rr();return e&&Zi(e),Jo({restorer:{type:Et.RestorerTypes.Target}})}function vb(){const e=Rr();return e&&Zi(e),Jo({restorer:{type:Et.RestorerTypes.Source}})}const te={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)"};var pi={exports:{}},zn={};/** @license React v0.19.0
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
*/var pa;function bb(){return pa||(pa=1,function(e){process.env.NODE_ENV!=="production"&&function(){var t=!1,r=!0,o,n,i,s,a;if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,u=null,c=function(){if(l!==null)try{var P=e.unstable_now(),I=!0;l(I,P),l=null}catch(W){throw setTimeout(c,0),W}},f=Date.now();e.unstable_now=function(){return Date.now()-f},o=function(P){l!==null?setTimeout(o,0,P):(l=P,setTimeout(c,0))},n=function(P,I){u=setTimeout(P,I)},i=function(){clearTimeout(u)},s=function(){return!1},a=e.unstable_forceFrameRate=function(){}}else{var g=window.performance,d=window.Date,p=window.setTimeout,h=window.clearTimeout;if(typeof console<"u"){var b=window.requestAnimationFrame,v=window.cancelAnimationFrame;typeof b!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),typeof v!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if(typeof g=="object"&&typeof g.now=="function")e.unstable_now=function(){return g.now()};else{var m=d.now();e.unstable_now=function(){return d.now()-m}}var w=!1,x=null,k=-1,_=5,S=0;s=function(){return e.unstable_now()>=S},a=function(){},e.unstable_forceFrameRate=function(P){if(P<0||P>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported");return}P>0?_=Math.floor(1e3/P):_=5};var E=function(){if(x!==null){var P=e.unstable_now();S=P+_;var I=!0;try{var W=x(I,P);W?O.postMessage(null):(w=!1,x=null)}catch(le){throw O.postMessage(null),le}}else w=!1},F=new MessageChannel,O=F.port2;F.port1.onmessage=E,o=function(P){x=P,w||(w=!0,O.postMessage(null))},n=function(P,I){k=p(function(){P(e.unstable_now())},I)},i=function(){h(k),k=-1}}function T(P,I){var W=P.length;P.push(I),H(P,I,W)}function B(P){var I=P[0];return I===void 0?null:I}function R(P){var I=P[0];if(I!==void 0){var W=P.pop();return W!==I&&(P[0]=W,Z(P,W,0)),I}else return null}function H(P,I,W){for(var le=W;;){var Be=le-1>>>1,Ee=P[Be];if(Ee!==void 0&&Y(Ee,I)>0)P[Be]=I,P[le]=Ee,le=Be;else return}}function Z(P,I,W){for(var le=W,Be=P.length;le<Be;){var Ee=(le+1)*2-1,at=P[Ee],qt=Ee+1,Oe=P[qt];if(at!==void 0&&Y(at,I)<0)Oe!==void 0&&Y(Oe,at)<0?(P[le]=Oe,P[qt]=I,le=qt):(P[le]=at,P[Ee]=I,le=Ee);else if(Oe!==void 0&&Y(Oe,I)<0)P[le]=Oe,P[qt]=I,le=qt;else return}}function Y(P,I){var W=P.sortIndex-I.sortIndex;return W!==0?W:P.id-I.id}var Q=0,ue=1,Se=2,me=3,De=4,Me=5,Le=0,D=0,z=4,$=typeof SharedArrayBuffer=="function"?new SharedArrayBuffer(z*Int32Array.BYTES_PER_ELEMENT):typeof ArrayBuffer=="function"?new ArrayBuffer(z*Int32Array.BYTES_PER_ELEMENT):null,M=$!==null?new Int32Array($):[],J=0,_e=1,Ae=2,j=3;M[J]=Q,M[j]=0,M[_e]=0;var Fe=131072,kt=524288,Ze=0,Mt=null,Ce=null,St=0,fn=1,se=2,we=3,ae=4,Ve=5,be=6,nt=7,Ye=8;function xe(P){if(Ce!==null){var I=St;if(St+=P.length,St+1>Ze){if(Ze*=2,Ze>kt){console.error("Scheduler Profiling: Event log exceeded maximum size. Don't forget to call `stopLoggingProfilingEvents()`."),pt();return}var W=new Int32Array(Ze*4);W.set(Ce),Mt=W.buffer,Ce=W}Ce.set(P,I)}}function ur(){Ze=Fe,Mt=new ArrayBuffer(Ze*4),Ce=new Int32Array(Mt),St=0}function pt(){var P=Mt;return Ze=0,Mt=null,Ce=null,St=0,P}function it(P,I){M[j]++,Ce!==null&&xe([fn,I*1e3,P.id,P.priorityLevel])}function dr(P,I){M[J]=Q,M[_e]=0,M[j]--,Ce!==null&&xe([se,I*1e3,P.id])}function Nr(P,I){M[j]--,Ce!==null&&xe([ae,I*1e3,P.id])}function to(P,I){M[J]=Q,M[_e]=0,M[j]--,Ce!==null&&xe([we,I*1e3,P.id])}function gn(P,I){Le++,M[J]=P.priorityLevel,M[_e]=P.id,M[Ae]=Le,Ce!==null&&xe([Ve,I*1e3,P.id,Le])}function Tr(P,I){M[J]=Q,M[_e]=0,M[Ae]=0,Ce!==null&&xe([be,I*1e3,P.id,Le])}function bu(P){D++,Ce!==null&&xe([nt,P*1e3,D])}function yu(P){Ce!==null&&xe([Ye,P*1e3,D])}var wu=1073741823,xu=-1,ku=250,Su=5e3,_u=1e4,Cu=wu,st=[],At=[],Bu=1,he=null,Ie=me,ro=!1,Zt=!1,Dr=!1;function oo(P){for(var I=B(At);I!==null;){if(I.callback===null)R(At);else if(I.startTime<=P)R(At),I.sortIndex=I.expirationTime,T(st,I),it(I,P),I.isQueued=!0;else return;I=B(At)}}function pn(P){if(Dr=!1,oo(P),!Zt)if(B(st)!==null)Zt=!0,o(hn);else{var I=B(At);I!==null&&n(pn,I.startTime-P)}}function hn(P,I){yu(I),Zt=!1,Dr&&(Dr=!1,i()),ro=!0;var W=Ie;try{if(r)try{return Ru(P,I)}catch(Ee){if(he!==null){var le=e.unstable_now();to(he,le),he.isQueued=!1}throw Ee}}finally{he=null,Ie=W,ro=!1;{var Be=e.unstable_now();bu(Be)}}}function Ru(P,I){var W=I;for(oo(W),he=B(st);he!==null&&!t&&!(he.expirationTime>W&&(!P||s()));){var le=he.callback;if(le!==null){he.callback=null,Ie=he.priorityLevel;var Be=he.expirationTime<=W;gn(he,W);var Ee=le(Be);W=e.unstable_now(),typeof Ee=="function"?(he.callback=Ee,Tr(he,W)):(dr(he,W),he.isQueued=!1,he===B(st)&&R(st)),oo(W)}else R(st);he=B(st)}if(he!==null)return!0;var at=B(At);return at!==null&&n(pn,at.startTime-W),!1}function Eu(P,I){switch(P){case ue:case Se:case me:case De:case Me:break;default:P=me}var W=Ie;Ie=P;try{return I()}finally{Ie=W}}function Pu(P){var I;switch(Ie){case ue:case Se:case me:I=me;break;default:I=Ie;break}var W=Ie;Ie=I;try{return P()}finally{Ie=W}}function Nu(P){var I=Ie;return function(){var W=Ie;Ie=I;try{return P.apply(this,arguments)}finally{Ie=W}}}function bs(P){switch(P){case ue:return xu;case Se:return ku;case Me:return Cu;case De:return _u;case me:default:return Su}}function Tu(P,I,W){var le=e.unstable_now(),Be,Ee;if(typeof W=="object"&&W!==null){var at=W.delay;typeof at=="number"&&at>0?Be=le+at:Be=le,Ee=typeof W.timeout=="number"?W.timeout:bs(P)}else Ee=bs(P),Be=le;var qt=Be+Ee,Oe={id:Bu++,callback:I,priorityLevel:P,startTime:Be,expirationTime:qt,sortIndex:-1};return Oe.isQueued=!1,Be>le?(Oe.sortIndex=Be,T(At,Oe),B(st)===null&&Oe===B(At)&&(Dr?i():Dr=!0,n(pn,Be-le))):(Oe.sortIndex=qt,T(st,Oe),it(Oe,le),Oe.isQueued=!0,!Zt&&!ro&&(Zt=!0,o(hn))),Oe}function Du(){}function Fu(){!Zt&&!ro&&(Zt=!0,o(hn))}function Iu(){return B(st)}function Ou(P){if(P.isQueued){var I=e.unstable_now();Nr(P,I),P.isQueued=!1}P.callback=null}function zu(){return Ie}function ju(){var P=e.unstable_now();oo(P);var I=B(st);return I!==he&&he!==null&&I!==null&&I.callback!==null&&I.startTime<=P&&I.expirationTime<he.expirationTime||s()}var Mu=a,Au={startLoggingProfilingEvents:ur,stopLoggingProfilingEvents:pt,sharedProfilingBuffer:$};e.unstable_IdlePriority=Me,e.unstable_ImmediatePriority=ue,e.unstable_LowPriority=De,e.unstable_NormalPriority=me,e.unstable_Profiling=Au,e.unstable_UserBlockingPriority=Se,e.unstable_cancelCallback=Ou,e.unstable_continueExecution=Fu,e.unstable_getCurrentPriorityLevel=zu,e.unstable_getFirstCallbackNode=Iu,e.unstable_next=Pu,e.unstable_pauseExecution=Du,e.unstable_requestPaint=Mu,e.unstable_runWithPriority=Eu,e.unstable_scheduleCallback=Tu,e.unstable_shouldYield=ju,e.unstable_wrapCallback=Nu}()}(jn)),jn}process.env.NODE_ENV==="production"?pi.exports=mb():pi.exports=bb();var ha=pi.exports;const yb=e=>{const t=r=>{const o=y.useRef(r.value),n=y.useRef(0),i=y.useRef();return i.current||(i.current={value:o,version:n,listeners:[]}),$t(()=>{o.current=r.value,n.current+=1,ha.unstable_runWithPriority(ha.unstable_NormalPriority,()=>{i.current.listeners.forEach(s=>{s([n.current,r.value])})})},[r.value]),y.createElement(e,{value:i.current},r.children)};return process.env.NODE_ENV!=="production"&&(t.displayName="ContextSelector.Provider"),t},Qr=e=>{const t=y.createContext({value:{current:e},version:{current:-1},listeners:[]});return t.Provider=yb(t.Provider),delete t.Consumer,t},Ne=(e,t)=>{const r=y.useContext(e),{value:{current:o},version:{current:n},listeners:i}=r,s=t(o),[a,l]=y.useReducer((u,c)=>{if(!c)return[o,s];if(c[0]<=n)return co(u[1],s)?u:[o,s];try{if(co(u[0],c[1]))return u;const f=t(c[1]);return co(u[1],f)?u:[c[1],f]}catch{}return[u[0],u[1]]},[o,s]);return co(a[1],s)||l(void 0),$t(()=>(i.push(l),()=>{const u=i.indexOf(l);i.splice(u,1)}),[i]),a[1]};function wb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const co=typeof Object.is=="function"?Object.is:wb;function tn(e){const t=y.useContext(e);return t.version?t.version.current!==-1:!1}const mr="Enter",Pt=" ",Rc="Tab",hi="ArrowDown",Ec="ArrowLeft",Pc="ArrowRight",Mn="ArrowUp",xb="End",kb="Home",Sb="PageDown",_b="PageUp",rn="Escape";function Gr(e,t){const{disabled:r,disabledFocusable:o=!1,["aria-disabled"]:n,onClick:i,onKeyDown:s,onKeyUp:a,...l}=t??{},u=typeof n=="string"?n==="true":n,c=r||o||u,f=X(p=>{c?(p.preventDefault(),p.stopPropagation()):i?.(p)}),g=X(p=>{if(s?.(p),p.isDefaultPrevented())return;const h=p.key;if(c&&(h===mr||h===Pt)){p.preventDefault(),p.stopPropagation();return}if(h===Pt){p.preventDefault();return}else h===mr&&(p.preventDefault(),p.currentTarget.click())}),d=X(p=>{if(a?.(p),p.isDefaultPrevented())return;const h=p.key;if(c&&(h===mr||h===Pt)){p.preventDefault(),p.stopPropagation();return}h===Pt&&(p.preventDefault(),p.currentTarget.click())});if(e==="button"||e===void 0)return{...l,disabled:r&&!o,"aria-disabled":o?!0:u,onClick:o?void 0:f,onKeyUp:o?void 0:a,onKeyDown:o?void 0:s};{const p={role:"button",tabIndex:r&&!o?void 0:0,...l,onClick:f,onKeyUp:d,onKeyDown:g,"aria-disabled":r||o||u};return e==="a"&&c&&(p.href=void 0),p}}const Cb=(e,t)=>{const r=mh(e,t);var o;const n=Gr((o=r?.as)!==null&&o!==void 0?o:"button",r);return r&&n};function Bb(e){const t=e.clientX,r=e.clientY,o=t+1,n=r+1;function i(){return{left:t,top:r,right:o,bottom:n,x:t,y:r,height:1,width:1}}return{getBoundingClientRect:i}}const va="data-popper-is-intersecting",ma="data-popper-escaped",ba="data-popper-reference-hidden",Rb="data-popper-placement",Eb=["top","right","bottom","left"],cr=Math.min,et=Math.max,No=Math.round,Wt=e=>({x:e,y:e}),Pb={left:"right",right:"left",bottom:"top",top:"bottom"},Nb={start:"end",end:"start"};function vi(e,t,r){return et(e,cr(t,r))}function Ft(e,t){return typeof e=="function"?e(t):e}function It(e){return e.split("-")[0]}function Er(e){return e.split("-")[1]}function Yi(e){return e==="x"?"y":"x"}function Qi(e){return e==="y"?"height":"width"}function Pr(e){return["top","bottom"].includes(It(e))?"y":"x"}function Ji(e){return Yi(Pr(e))}function Tb(e,t,r){r===void 0&&(r=!1);const o=Er(e),n=Ji(e),i=Qi(n);let s=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=To(s)),[s,To(s)]}function Db(e){const t=To(e);return[mi(e),t,mi(t)]}function mi(e){return e.replace(/start|end/g,t=>Nb[t])}function Fb(e,t,r){const o=["left","right"],n=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?n:o:t?o:n;case"left":case"right":return t?i:s;default:return[]}}function Ib(e,t,r,o){const n=Er(e);let i=Fb(It(e),r==="start",o);return n&&(i=i.map(s=>s+"-"+n),t&&(i=i.concat(i.map(mi)))),i}function To(e){return e.replace(/left|right|bottom|top/g,t=>Pb[t])}function Ob(e){return{top:0,right:0,bottom:0,left:0,...e}}function Nc(e){return typeof e!="number"?Ob(e):{top:e,right:e,bottom:e,left:e}}function Do(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ya(e,t,r){let{reference:o,floating:n}=e;const i=Pr(t),s=Ji(t),a=Qi(s),l=It(t),u=i==="y",c=o.x+o.width/2-n.width/2,f=o.y+o.height/2-n.height/2,g=o[a]/2-n[a]/2;let d;switch(l){case"top":d={x:c,y:o.y-n.height};break;case"bottom":d={x:c,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:f};break;case"left":d={x:o.x-n.width,y:f};break;default:d={x:o.x,y:o.y}}switch(Er(t)){case"start":d[s]-=g*(r&&u?-1:1);break;case"end":d[s]+=g*(r&&u?-1:1);break}return d}const zb=async(e,t,r)=>{const{placement:o="bottom",strategy:n="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:c,y:f}=ya(u,o,l),g=o,d={},p=0;for(let h=0;h<a.length;h++){const{name:b,fn:v}=a[h],{x:m,y:w,data:x,reset:k}=await v({x:c,y:f,initialPlacement:o,placement:g,strategy:n,middlewareData:d,rects:u,platform:s,elements:{reference:e,floating:t}});if(c=m??c,f=w??f,d={...d,[b]:{...d[b],...x}},k&&p<=50){p++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(u=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):k.rects),{x:c,y:f}=ya(u,g,l)),h=-1;continue}}return{x:c,y:f,placement:g,strategy:n,middlewareData:d}};async function Sr(e,t){var r;t===void 0&&(t={});const{x:o,y:n,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:g=!1,padding:d=0}=Ft(t,e),p=Nc(d),b=a[g?f==="floating"?"reference":"floating":f],v=Do(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),m=f==="floating"?{...s.floating,x:o,y:n}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},k=Do(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:m,offsetParent:w,strategy:l}):m);return{top:(v.top-k.top+p.top)/x.y,bottom:(k.bottom-v.bottom+p.bottom)/x.y,left:(v.left-k.left+p.left)/x.x,right:(k.right-v.right+p.right)/x.x}}const jb=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:n,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=Ft(e,t)||{};if(u==null)return{};const f=Nc(c),g={x:r,y:o},d=Ji(n),p=Qi(d),h=await s.getDimensions(u),b=d==="y",v=b?"top":"left",m=b?"bottom":"right",w=b?"clientHeight":"clientWidth",x=i.reference[p]+i.reference[d]-g[d]-i.floating[p],k=g[d]-i.reference[d],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let S=_?_[w]:0;(!S||!await(s.isElement==null?void 0:s.isElement(_)))&&(S=a.floating[w]||i.floating[p]);const E=x/2-k/2,F=S/2-h[p]/2-1,O=cr(f[v],F),T=cr(f[m],F),B=O,R=S-h[p]-T,H=S/2-h[p]/2+E,Z=vi(B,H,R),Y=!l.arrow&&Er(n)!=null&&H!=Z&&i.reference[p]/2-(H<B?O:T)-h[p]/2<0,Q=Y?H<B?H-B:H-R:0;return{[d]:g[d]+Q,data:{[d]:Z,centerOffset:H-Z-Q,...Y&&{alignmentOffset:Q}},reset:Y}}}),Mb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:n,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...b}=Ft(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const v=It(n),m=It(a)===a,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),x=g||(m||!h?[To(a)]:Db(a));!g&&p!=="none"&&x.push(...Ib(a,h,p,w));const k=[a,...x],_=await Sr(t,b),S=[];let E=((o=i.flip)==null?void 0:o.overflows)||[];if(c&&S.push(_[v]),f){const B=Tb(n,s,w);S.push(_[B[0]],_[B[1]])}if(E=[...E,{placement:n,overflows:S}],!S.every(B=>B<=0)){var F,O;const B=(((F=i.flip)==null?void 0:F.index)||0)+1,R=k[B];if(R)return{data:{index:B,overflows:E},reset:{placement:R}};let H=(O=E.filter(Z=>Z.overflows[0]<=0).sort((Z,Y)=>Z.overflows[1]-Y.overflows[1])[0])==null?void 0:O.placement;if(!H)switch(d){case"bestFit":{var T;const Z=(T=E.map(Y=>[Y.placement,Y.overflows.filter(Q=>Q>0).reduce((Q,ue)=>Q+ue,0)]).sort((Y,Q)=>Y[1]-Q[1])[0])==null?void 0:T[0];Z&&(H=Z);break}case"initialPlacement":H=a;break}if(n!==H)return{reset:{placement:H}}}return{}}}};function wa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xa(e){return Eb.some(t=>e[t]>=0)}const ka=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:o="referenceHidden",...n}=Ft(e,t);switch(o){case"referenceHidden":{const i=await Sr(t,{...n,elementContext:"reference"}),s=wa(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:xa(s)}}}case"escaped":{const i=await Sr(t,{...n,altBoundary:!0}),s=wa(i,r.floating);return{data:{escapedOffsets:s,escaped:xa(s)}}}default:return{}}}}};async function Ab(e,t){const{placement:r,platform:o,elements:n}=e,i=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=It(r),a=Er(r),l=Pr(r)==="y",u=["left","top"].includes(s)?-1:1,c=i&&l?-1:1,f=Ft(t,e);let{mainAxis:g,crossAxis:d,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof p=="number"&&(d=a==="end"?p*-1:p),l?{x:d*c,y:g*u}:{x:g*u,y:d*c}}const qb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:o}=t,n=await Ab(t,e);return{x:r+n.x,y:o+n.y,data:n}}}},Lb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:n}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:v,y:m}=b;return{x:v,y:m}}},...l}=Ft(e,t),u={x:r,y:o},c=await Sr(t,l),f=Pr(It(n)),g=Yi(f);let d=u[g],p=u[f];if(i){const b=g==="y"?"top":"left",v=g==="y"?"bottom":"right",m=d+c[b],w=d-c[v];d=vi(m,d,w)}if(s){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",m=p+c[b],w=p-c[v];p=vi(m,p,w)}const h=a.fn({...t,[g]:d,[f]:p});return{...h,data:{x:h.x-r,y:h.y-o}}}}},Vb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:o,placement:n,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Ft(e,t),c={x:r,y:o},f=Pr(n),g=Yi(f);let d=c[g],p=c[f];const h=Ft(a,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const w=g==="y"?"height":"width",x=i.reference[g]-i.floating[w]+b.mainAxis,k=i.reference[g]+i.reference[w]-b.mainAxis;d<x?d=x:d>k&&(d=k)}if(u){var v,m;const w=g==="y"?"width":"height",x=["top","left"].includes(It(n)),k=i.reference[f]-i.floating[w]+(x&&((v=s.offset)==null?void 0:v[f])||0)+(x?0:b.crossAxis),_=i.reference[f]+i.reference[w]+(x?0:((m=s.offset)==null?void 0:m[f])||0)-(x?b.crossAxis:0);p<k?p=k:p>_&&(p=_)}return{[g]:d,[f]:p}}}},Hb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:n,elements:i}=t,{apply:s=()=>{},...a}=Ft(e,t),l=await Sr(t,a),u=It(r),c=Er(r),f=Pr(r)==="y",{width:g,height:d}=o.floating;let p,h;u==="top"||u==="bottom"?(p=u,h=c===(await(n.isRTL==null?void 0:n.isRTL(i.floating))?"start":"end")?"left":"right"):(h=u,p=c==="end"?"top":"bottom");const b=d-l[p],v=g-l[h],m=!t.middlewareData.shift;let w=b,x=v;if(f){const _=g-l.left-l.right;x=c||m?cr(v,_):_}else{const _=d-l.top-l.bottom;w=c||m?cr(b,_):_}if(m&&!c){const _=et(l.left,0),S=et(l.right,0),E=et(l.top,0),F=et(l.bottom,0);f?x=g-2*(_!==0||S!==0?_+S:et(l.left,l.right)):w=d-2*(E!==0||F!==0?E+F:et(l.top,l.bottom))}await s({...t,availableWidth:x,availableHeight:w});const k=await n.getDimensions(i.floating);return g!==k.width||d!==k.height?{reset:{rects:!0}}:{}}}};function Ut(e){return Tc(e)?(e.nodeName||"").toLowerCase():"#document"}function We(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xt(e){var t;return(t=(Tc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Tc(e){return e instanceof Node||e instanceof We(e).Node}function Ot(e){return e instanceof Element||e instanceof We(e).Element}function wt(e){return e instanceof HTMLElement||e instanceof We(e).HTMLElement}function Sa(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof We(e).ShadowRoot}function Jr(e){const{overflow:t,overflowX:r,overflowY:o,display:n}=ot(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(n)}function $b(e){return["table","td","th"].includes(Ut(e))}function es(e){const t=ts(),r=ot(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function Gb(e){let t=_r(e);for(;wt(t)&&!on(t);){if(es(t))return t;t=_r(t)}return null}function ts(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function on(e){return["html","body","#document"].includes(Ut(e))}function ot(e){return We(e).getComputedStyle(e)}function nn(e){return Ot(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function _r(e){if(Ut(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Sa(e)&&e.host||Xt(e);return Sa(t)?t.host:t}function Dc(e){const t=_r(e);return on(t)?e.ownerDocument?e.ownerDocument.body:e.body:wt(t)&&Jr(t)?t:Dc(t)}function bi(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);const n=Dc(e),i=n===((o=e.ownerDocument)==null?void 0:o.body),s=We(n);return i?t.concat(s,s.visualViewport||[],Jr(n)?n:[],s.frameElement&&r?bi(s.frameElement):[]):t.concat(n,bi(n,[],r))}function Fc(e){const t=ot(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const n=wt(e),i=n?e.offsetWidth:r,s=n?e.offsetHeight:o,a=No(r)!==i||No(o)!==s;return a&&(r=i,o=s),{width:r,height:o,$:a}}function Ic(e){return Ot(e)?e:e.contextElement}function br(e){const t=Ic(e);if(!wt(t))return Wt(1);const r=t.getBoundingClientRect(),{width:o,height:n,$:i}=Fc(t);let s=(i?No(r.width):r.width)/o,a=(i?No(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Wb=Wt(0);function Oc(e){const t=We(e);return!ts()||!t.visualViewport?Wb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ub(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==We(e)?!1:t}function Wr(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);const n=e.getBoundingClientRect(),i=Ic(e);let s=Wt(1);t&&(o?Ot(o)&&(s=br(o)):s=br(e));const a=Ub(i,r,o)?Oc(i):Wt(0);let l=(n.left+a.x)/s.x,u=(n.top+a.y)/s.y,c=n.width/s.x,f=n.height/s.y;if(i){const g=We(i),d=o&&Ot(o)?We(o):o;let p=g.frameElement;for(;p&&o&&d!==g;){const h=br(p),b=p.getBoundingClientRect(),v=ot(p),m=b.left+(p.clientLeft+parseFloat(v.paddingLeft))*h.x,w=b.top+(p.clientTop+parseFloat(v.paddingTop))*h.y;l*=h.x,u*=h.y,c*=h.x,f*=h.y,l+=m,u+=w,p=We(p).frameElement}}return Do({width:c,height:f,x:l,y:u})}function Kb(e){let{rect:t,offsetParent:r,strategy:o}=e;const n=wt(r),i=Xt(r);if(r===i)return t;let s={scrollLeft:0,scrollTop:0},a=Wt(1);const l=Wt(0);if((n||!n&&o!=="fixed")&&((Ut(r)!=="body"||Jr(i))&&(s=nn(r)),wt(r))){const u=Wr(r);a=br(r),l.x=u.x+r.clientLeft,l.y=u.y+r.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}}function Xb(e){return Array.from(e.getClientRects())}function zc(e){return Wr(Xt(e)).left+nn(e).scrollLeft}function Zb(e){const t=Xt(e),r=nn(e),o=e.ownerDocument.body,n=et(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=et(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-r.scrollLeft+zc(e);const a=-r.scrollTop;return ot(o).direction==="rtl"&&(s+=et(t.clientWidth,o.clientWidth)-n),{width:n,height:i,x:s,y:a}}function Yb(e,t){const r=We(e),o=Xt(e),n=r.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(n){i=n.width,s=n.height;const u=ts();(!u||u&&t==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:i,height:s,x:a,y:l}}function Qb(e,t){const r=Wr(e,!0,t==="fixed"),o=r.top+e.clientTop,n=r.left+e.clientLeft,i=wt(e)?br(e):Wt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=n*i.x,u=o*i.y;return{width:s,height:a,x:l,y:u}}function _a(e,t,r){let o;if(t==="viewport")o=Yb(e,r);else if(t==="document")o=Zb(Xt(e));else if(Ot(t))o=Qb(t,r);else{const n=Oc(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return Do(o)}function jc(e,t){const r=_r(e);return r===t||!Ot(r)||on(r)?!1:ot(r).position==="fixed"||jc(r,t)}function Jb(e,t){const r=t.get(e);if(r)return r;let o=bi(e,[],!1).filter(a=>Ot(a)&&Ut(a)!=="body"),n=null;const i=ot(e).position==="fixed";let s=i?_r(e):e;for(;Ot(s)&&!on(s);){const a=ot(s),l=es(s);!l&&a.position==="fixed"&&(n=null),(i?!l&&!n:!l&&a.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Jr(s)&&!l&&jc(e,s))?o=o.filter(c=>c!==s):n=a,s=_r(s)}return t.set(e,o),o}function e1(e){let{element:t,boundary:r,rootBoundary:o,strategy:n}=e;const s=[...r==="clippingAncestors"?Jb(t,this._c):[].concat(r),o],a=s[0],l=s.reduce((u,c)=>{const f=_a(t,c,n);return u.top=et(f.top,u.top),u.right=cr(f.right,u.right),u.bottom=cr(f.bottom,u.bottom),u.left=et(f.left,u.left),u},_a(t,a,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function t1(e){return Fc(e)}function r1(e,t,r){const o=wt(t),n=Xt(t),i=r==="fixed",s=Wr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Wt(0);if(o||!o&&!i)if((Ut(t)!=="body"||Jr(n))&&(a=nn(t)),o){const u=Wr(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else n&&(l.x=zc(n));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Ca(e,t){return!wt(e)||ot(e).position==="fixed"?null:t?t(e):e.offsetParent}function Mc(e,t){const r=We(e);if(!wt(e))return r;let o=Ca(e,t);for(;o&&$b(o)&&ot(o).position==="static";)o=Ca(o,t);return o&&(Ut(o)==="html"||Ut(o)==="body"&&ot(o).position==="static"&&!es(o))?r:o||Gb(e)||r}const o1=async function(e){let{reference:t,floating:r,strategy:o}=e;const n=this.getOffsetParent||Mc,i=this.getDimensions;return{reference:r1(t,await n(r),o),floating:{x:0,y:0,...await i(r)}}};function n1(e){return ot(e).direction==="rtl"}const i1={convertOffsetParentRelativeRectToViewportRelativeRect:Kb,getDocumentElement:Xt,getClippingRect:e1,getOffsetParent:Mc,getElementRects:o1,getClientRects:Xb,getDimensions:t1,getScale:br,isElement:Ot,isRTL:n1},s1=(e,t,r)=>{const o=new Map,n={platform:i1,...r},i={...n.platform,_c:o};return zb(e,t,{...n,platform:i})};function Ac(e){const t=e.split("-");return{side:t[0],alignment:t[1]}}const a1=e=>e.nodeName==="HTML"?e:e.parentNode||e.host,l1=e=>{var t;return e.nodeType!==1?{}:((t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView).getComputedStyle(e,null)},sn=e=>{const t=e&&a1(e);if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:r,overflowX:o,overflowY:n}=l1(t);return/(auto|scroll|overlay)/.test(r+n+o)?t:sn(t)},c1=e=>{var t;const r=sn(e);return r?r!==((t=r.ownerDocument)===null||t===void 0?void 0:t.body):!1};function rs(e,t){if(t==="window")return e?.ownerDocument.documentElement;if(t==="clippingParents")return"clippingAncestors";if(t==="scrollParent"){let r=sn(e);return r.nodeName==="BODY"&&(r=e?.ownerDocument.documentElement),r}return t}var Ba;(function(e){e[e.FunctionComponent=0]="FunctionComponent",e[e.ClassComponent=1]="ClassComponent",e[e.IndeterminateComponent=2]="IndeterminateComponent",e[e.HostRoot=3]="HostRoot",e[e.HostPortal=4]="HostPortal",e[e.HostComponent=5]="HostComponent",e[e.HostText=6]="HostText",e[e.Fragment=7]="Fragment",e[e.Mode=8]="Mode",e[e.ContextConsumer=9]="ContextConsumer",e[e.ContextProvider=10]="ContextProvider",e[e.ForwardRef=11]="ForwardRef",e[e.Profiler=12]="Profiler",e[e.SuspenseComponent=13]="SuspenseComponent",e[e.MemoComponent=14]="MemoComponent",e[e.SimpleMemoComponent=15]="SimpleMemoComponent",e[e.LazyComponent=16]="LazyComponent",e[e.IncompleteClassComponent=17]="IncompleteClassComponent",e[e.DehydratedFragment=18]="DehydratedFragment",e[e.SuspenseListComponent=19]="SuspenseListComponent",e[e.FundamentalComponent=20]="FundamentalComponent",e[e.ScopeComponent=21]="ScopeComponent"})(Ba||(Ba={}));function u1(e){if(!e)return null;for(const t in e)if(t.indexOf("__reactInternalInstance$")===0||t.indexOf("__reactFiber$")===0)return e[t];throw new Error("getReactFiber(): Failed to find a React Fiber on a node")}function d1(e,t){return typeof e=="number"||typeof e=="object"&&e!==null?An(e,t):typeof e=="function"?r=>{const o=e(r);return An(o,t)}:{mainAxis:t}}const An=(e,t)=>{if(typeof e=="number")return{mainAxis:e+t};var r;return{...e,mainAxis:((r=e.mainAxis)!==null&&r!==void 0?r:0)+t}};function f1(e,t){if(typeof e=="number")return e;const{start:r,end:o,...n}=e,i=n,s=t?"end":"start",a=t?"start":"end";return e[s]&&(i.left=e[s]),e[a]&&(i.right=e[a]),i}const g1=e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}),p1=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),h1=(e,t)=>{const r=e==="above"||e==="below",o=t==="top"||t==="bottom";return r&&o||!r&&!o},qc=(e,t,r)=>{const o=h1(t,e)?"center":e,n=t&&g1(r)[t],i=o&&p1()[o];return n&&i?`${n}-${i}`:n},v1=()=>({top:"above",bottom:"below",right:"after",left:"before"}),m1=e=>e==="above"||e==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},b1=e=>{const{side:t,alignment:r}=Ac(e),o=v1()[t],n=r&&m1(o)[r];return{position:o,alignment:n}},y1={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function an(e){return e==null?{}:typeof e=="string"?y1[e]:e}function qn(e,t,r){const o=y.useRef(!0),[n]=y.useState(()=>({value:e,callback:t,facade:{get current(){return n.value},set current(i){const s=n.value;if(s!==i){if(n.value=i,r&&o.current)return;n.callback(i,s)}}}}));return $t(()=>{o.current=!1},[]),n.callback=t,n.facade}function w1(e){let t;return()=>(t||(t=new Promise(r=>{Promise.resolve().then(()=>{t=void 0,r(e())})})),t)}function x1(e){if(e.nodeName==="BUTTON"||e.nodeName==="INPUT"||e.nodeName==="SELECT"||e.nodeName==="TEXTAREA"){var r;return!!(!((r=u1(e))===null||r===void 0)&&r.pendingProps.autoFocus)}return!1}function k1(e){return x1(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}function S1(e){const{arrow:t,middlewareData:r}=e;if(!r.arrow||!t)return;const{x:o,y:n}=r.arrow;Object.assign(t.style,{left:`${o}px`,top:`${n}px`})}function _1(e){var t,r,o;const{container:n,placement:i,middlewareData:s,strategy:a,lowPPI:l,coordinates:u,useTransform:c=!0}=e;if(!n)return;n.setAttribute(Rb,i),n.removeAttribute(va),s.intersectionObserver.intersecting&&n.setAttribute(va,""),n.removeAttribute(ma),!((t=s.hide)===null||t===void 0)&&t.escaped&&n.setAttribute(ma,""),n.removeAttribute(ba),!((r=s.hide)===null||r===void 0)&&r.referenceHidden&&n.setAttribute(ba,"");const f=((o=n.ownerDocument.defaultView)===null||o===void 0?void 0:o.devicePixelRatio)||1,g=Math.round(u.x*f)/f,d=Math.round(u.y*f)/f;if(Object.assign(n.style,{position:a}),c){Object.assign(n.style,{transform:l?`translate(${g}px, ${d}px)`:`translate3d(${g}px, ${d}px, 0)`});return}Object.assign(n.style,{left:`${g}px`,top:`${d}px`})}const C1=e=>{switch(e){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function B1(){return{name:"coverTarget",fn:e=>{const{placement:t,rects:r,x:o,y:n}=e,i=Ac(t).side,s={x:o,y:n};switch(i){case"bottom":s.y-=r.reference.height;break;case"top":s.y+=r.reference.height;break;case"left":s.x+=r.reference.width;break;case"right":s.x-=r.reference.width;break}return s}}}function R1(e){const{hasScrollableElement:t,flipBoundary:r,container:o,fallbackPositions:n=[],isRtl:i}=e,s=n.reduce((a,l)=>{const{position:u,align:c}=an(l),f=qc(c,u,i);return f&&a.push(f),a},[]);return Mb({...t&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:rs(o,r)},fallbackStrategy:"bestFit",...s.length&&{fallbackPlacements:s}})}function E1(){return{name:"intersectionObserver",fn:async e=>{const t=e.rects.floating,r=await Sr(e,{altBoundary:!0}),o=r.top<t.height&&r.top>0,n=r.bottom<t.height&&r.bottom>0;return{data:{intersecting:o||n}}}}}const P1=e=>({name:"resetMaxSize",fn({middlewareData:t,elements:r}){var o;if(!((o=t.resetMaxSize)===null||o===void 0)&&o.maxSizeAlreadyReset)return{};const{applyMaxWidth:n,applyMaxHeight:i}=e;return n&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),i&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function N1(e,t){const{container:r,overflowBoundary:o}=t;return Hb({...o&&{altBoundary:!0,boundary:rs(r,o)},apply({availableHeight:n,availableWidth:i,elements:s,rects:a}){const l=(f,g,d)=>{if(f&&(s.floating.style.setProperty("box-sizing","border-box"),s.floating.style.setProperty(`max-${g}`,`${d}px`),a.floating[g]>d)){s.floating.style.setProperty(g,`${d}px`);const p=g==="width"?"x":"y";s.floating.style.getPropertyValue(`overflow-${p}`)||s.floating.style.setProperty(`overflow-${p}`,"auto")}},{applyMaxWidth:u,applyMaxHeight:c}=e;l(u,"width",i),l(c,"height",n)}})}function T1(e){return!e||typeof e=="number"||typeof e=="object"?e:({rects:{floating:t,reference:r},placement:o})=>{const{position:n,alignment:i}=b1(o);return e({positionedRect:t,targetRect:r,position:n,alignment:i})}}function D1(e){const t=T1(e);return qb(t)}function F1(e){const{hasScrollableElement:t,disableTether:r,overflowBoundary:o,container:n,overflowBoundaryPadding:i,isRtl:s}=e;return Lb({...t&&{boundary:"clippingAncestors"},...r&&{crossAxis:r==="all",limiter:Vb({crossAxis:r!=="all",mainAxis:!1})},...i&&{padding:f1(i,s)},...o&&{altBoundary:!0,boundary:rs(n,o)}})}function Ra(e){const t=[];let r=e;for(;r;){const o=sn(r);if(e.ownerDocument.body===o){t.push(o);break}t.push(o),r=o}return t}function I1(e){const{container:t,target:r,arrow:o,strategy:n,middleware:i,placement:s,useTransform:a=!0}=e;let l=!1;if(!r||!t)return{updatePosition:()=>{},dispose:()=>{}};let u=!0;const c=new Set,f=t.ownerDocument.defaultView;Object.assign(t.style,{position:"fixed",left:0,top:0,margin:0});const g=()=>{l||(u&&(Ra(t).forEach(h=>c.add(h)),ar(r)&&Ra(r).forEach(h=>c.add(h)),c.forEach(h=>{h.addEventListener("scroll",d,{passive:!0})}),u=!1),Object.assign(t.style,{position:n}),s1(r,t,{placement:s,middleware:i,strategy:n}).then(({x:h,y:b,middlewareData:v,placement:m})=>{l||(S1({arrow:o,middlewareData:v}),_1({container:t,middlewareData:v,placement:m,coordinates:{x:h,y:b},lowPPI:(f?.devicePixelRatio||1)<=1,strategy:n,useTransform:a}))}).catch(h=>{process.env.NODE_ENV==="development"&&console.error("[usePositioning]: Failed to calculate position",h)}))},d=w1(()=>g()),p=()=>{l=!0,f&&(f.removeEventListener("scroll",d),f.removeEventListener("resize",d)),c.forEach(h=>{h.removeEventListener("scroll",d)}),c.clear()};return f&&(f.addEventListener("scroll",d,{passive:!0}),f.addEventListener("resize",d)),d(),{updatePosition:d,dispose:p}}function os(e){const t=y.useRef(null),r=y.useRef(null),o=y.useRef(null),n=y.useRef(null),i=y.useRef(null),{enabled:s=!0}=e,a=O1(e),l=y.useCallback(()=>{t.current&&t.current.dispose(),t.current=null;var d;const p=(d=o.current)!==null&&d!==void 0?d:r.current;s&&qi()&&p&&n.current&&(t.current=I1({container:n.current,target:p,arrow:i.current,...a(n.current,i.current)}))},[s,a]),u=X(d=>{o.current=d,l()});y.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var d;return(d=t.current)===null||d===void 0?void 0:d.updatePosition()},setTarget:d=>{if(e.target&&process.env.NODE_ENV!=="production"){const p=new Error;console.warn("Imperative setTarget should not be used at the same time as target option"),console.warn(p.stack)}u(d)}}),[e.target,u]),$t(()=>{var d;u((d=e.target)!==null&&d!==void 0?d:null)},[e.target,u]),$t(()=>{l()},[l]),process.env.NODE_ENV!=="production"&&y.useEffect(()=>{if(n.current){var d;const p=n.current,h=(d=p.ownerDocument)===null||d===void 0?void 0:d.createTreeWalker(p,NodeFilter.SHOW_ELEMENT,{acceptNode:k1});for(;h.nextNode();){const b=h.currentNode;console.warn("<Popper>:",b),console.warn(['<Popper>: ^ this node contains "autoFocus" prop on a React element. This can break the initial',"positioning of an element and cause a window jump effect. This issue occurs because React polyfills",'"autoFocus" behavior to solve inconsistencies between different browsers:',"https://github.com/facebook/react/issues/11851#issuecomment-351787078",`
|
|
115
|
-
|
|
116
|
-
`,'We suggest to use the "trapFocus" prop on Fluent components or a catch "ref" and then use','"ref.current.focus" in React.useEffect():',"https://reactjs.org/docs/refs-and-the-dom.html#adding-a-ref-to-a-dom-element"].join(" "))}}},[]);const c=qn(null,d=>{r.current!==d&&(r.current=d,l())}),f=qn(null,d=>{n.current!==d&&(n.current=d,l())}),g=qn(null,d=>{i.current!==d&&(i.current=d,l())});return{targetRef:c,containerRef:f,arrowRef:g}}function O1(e){const{align:t,arrowPadding:r,autoSize:o,coverTarget:n,flipBoundary:i,offset:s,overflowBoundary:a,pinned:l,position:u,unstable_disableTether:c,positionFixed:f,strategy:g,overflowBoundaryPadding:d,fallbackPositions:p,useTransform:h}=e,{dir:b}=Xe(),v=b==="rtl",m=g??f?"fixed":"absolute",w=C1(o);return y.useCallback((x,k)=>{const _=c1(x),S=[w&&P1(w),s&&D1(s),n&&B1(),!l&&R1({container:x,flipBoundary:i,hasScrollableElement:_,isRtl:v,fallbackPositions:p}),F1({container:x,hasScrollableElement:_,overflowBoundary:a,disableTether:c,overflowBoundaryPadding:d,isRtl:v}),w&&N1(w,{container:x,overflowBoundary:a}),E1(),k&&jb({element:k,padding:r}),ka({strategy:"referenceHidden"}),ka({strategy:"escaped"})].filter(Boolean);return{placement:qc(t,u,v),middleware:S,strategy:m,useTransform:h}},[t,r,w,n,c,i,v,s,a,l,u,m,d,p,h])}const Lc=e=>{const[t,r]=y.useState(e);return[t,n=>{if(n==null){r(void 0);return}let i;n instanceof MouseEvent?i=n:i=n.nativeEvent,!(i instanceof MouseEvent)&&process.env.NODE_ENV!=="production"&&console.error("usePositioningMouseTarget should only be used with MouseEvent");const s=Bb(i);r(s)}]},ns=Qr(void 0),z1={open:!1,setOpen:()=>null,toggleOpen:()=>null,triggerRef:{current:null},contentRef:{current:null},arrowRef:{current:null},openOnContext:!1,openOnHover:!1,size:"medium",trapFocus:!1,inline:!1};ns.Provider;const Pe=e=>Ne(ns,(t=z1)=>e(t)),j1=(e,t)=>{const r=Pe(m=>m.contentRef),o=Pe(m=>m.openOnHover),n=Pe(m=>m.setOpen),i=Pe(m=>m.mountNode),s=Pe(m=>m.arrowRef),a=Pe(m=>m.size),l=Pe(m=>m.withArrow),u=Pe(m=>m.appearance),c=Pe(m=>m.trapFocus),f=Pe(m=>m.inertTrapFocus),g=Pe(m=>m.inline),{modalAttributes:d}=Bc({trapFocus:c,legacyTrapFocus:!f,alwaysFocusable:!c}),p={inline:g,appearance:u,withArrow:l,size:a,arrowRef:s,mountNode:i,components:{root:"div"},root:ne(je("div",{ref:He(t,r),role:c?"dialog":"group","aria-modal":c?!0:void 0,...d,...e}),{elementType:"div"})},{onMouseEnter:h,onMouseLeave:b,onKeyDown:v}=p.root;return p.root.onMouseEnter=m=>{o&&n(m,!0),h?.(m)},p.root.onMouseLeave=m=>{o&&n(m,!1),b?.(m)},p.root.onKeyDown=m=>{var w;m.key==="Escape"&&(!((w=r.current)===null||w===void 0)&&w.contains(m.target))&&(m.preventDefault(),n(m,!1)),v?.(m)},p};var is=()=>y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,Ea=Symbol.for("react.strict_mode"),M1=()=>{if(process.env.NODE_ENV==="production")return!1;const e=y.useRef(void 0),t=y.useMemo(()=>Number(y.version.split(".")[0]),[y.version]);if(isNaN(t)||t<18)return!1;if(e.current===void 0){let r=is();for(;r&&r.return;)r=r.return,(r.type===Ea||r.elementType===Ea)&&(e.current=!0)}return!!e.current},Pa=new WeakSet;function A1(e,t){const r=is();y.useEffect(()=>{if(!Pa.has(r)){Pa.add(r),e();return}return e()},t)}var Na=new WeakSet;function q1(e,t){return y.useMemo(()=>{const r=is();return Na.has(r)?e():(Na.add(r),null)},t)}function L1(e,t){var r;const o=M1()&&process.env.NODE_ENV!=="production",n=o?q1:y.useMemo,i=o?A1:y.useEffect,[s,a]=(r=n(()=>e(),t))!=null?r:[null,()=>null];return i(()=>a,t),s}const V1=U({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),Ta=y["useInsertionEffect"],H1=e=>{const{targetDocument:t,dir:r}=Xe(),o=vv(),n=fb(),i=V1(),s=fv(),a=A(s,i.root,e.className),l=o??t?.body,u=L1(()=>{if(l===void 0||e.disabled)return[null,()=>null];const c=l.ownerDocument.createElement("div");return l.appendChild(c),[c,()=>c.remove()]},[l]);return Ta?Ta(()=>{if(!u)return;const c=a.split(" ").filter(Boolean);return u.classList.add(...c),u.setAttribute("dir",r),n.current=u,()=>{u.classList.remove(...c),u.removeAttribute("dir")}},[a,r,u,n]):y.useMemo(()=>{u&&(u.className=a,u.setAttribute("dir",r),n.current=u)},[a,r,u,n]),u};function $1(e){return ar(e)?{element:e}:typeof e=="object"?e===null?{element:null}:e:{}}const G1=e=>{const{element:t,className:r}=$1(e.mountNode),o=y.useRef(null),n=H1({disabled:!!t,className:r}),i={children:e.children,mountNode:t??n,virtualParentRootRef:o};return y.useEffect(()=>(i.virtualParentRootRef.current&&i.mountNode&&Js(i.mountNode,i.virtualParentRootRef.current),()=>{i.mountNode&&Js(i.mountNode,void 0)}),[i.virtualParentRootRef,i.mountNode]),i},W1=e=>y.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&Vu.createPortal(e.children,e.mountNode)),ln=e=>{const t=G1(e);return W1(t)};ln.displayName="Portal";const U1=e=>{pe(e);const t=gt(e.root,{children:[e.withArrow&&V("div",{ref:e.arrowRef,className:e.arrowClassName}),e.root.children]});return e.inline?t:V(ln,{mountNode:e.mountNode,children:t})},K1={root:"fui-PopoverSurface"},X1={small:6,medium:8,large:8},Z1=U({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",ex8oj8:"fmm77a6",Bksk4gw:"f12t24nk",Bc5phfd:"f1babd7",cbiifc:"f1jgo889",fyiq5g:"f1ij1pew",Bqc19t1:"f1gu8pa9",Eet2gb:"fhfnl4n",Bhl7k63:"fk8tkmz",Bv12yb3:"f3n0535",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{z8tnut:"f1kcqot9",z189sj:["f11qrl6u","fjlbh76"],Byoj8tv:"fpe6lb7",uwmqm3:["fjlbh76","f11qrl6u"]},mediumPadding:{z8tnut:"fqag9an",z189sj:["f1gbmcue","f1rh9g5y"],Byoj8tv:"fp67ikv",uwmqm3:["f1rh9g5y","f1gbmcue"]},largePadding:{z8tnut:"fc7z3ec",z189sj:["fat0sn4","fekwl8i"],Byoj8tv:"fe2my4m",uwmqm3:["fekwl8i","fat0sn4"]},smallArrow:{a9b677:"f1ekdpwm",Bqenvij:"f83vc9z"},mediumLargeArrow:{a9b677:"f1kmc0fn",Bqenvij:"fb6lvc5"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["ftj5xct","fyavhwi"],hl6cv3:"f1773hnp",Bh2vraf:"f1n8855c",yayu3t:"f1v7783n",wedwtw:"fsw6im5",rhl9o9:"fh2hsk5",Bu8t5uz:"f159pzir",B6q6orb:"f11yvu4",Bwwlvwl:"fm1ycve"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1hg901r{box-shadow:var(--shadow16);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".fmm77a6{--slide-distance-x:0px;}",".f12t24nk{--slide-distance-y:10px;}",".f1babd7[data-popper-placement^=right]{--slide-distance-x:-10px;}",".f1jgo889[data-popper-placement^=right]{--slide-distance-y:0px;}",".f1ij1pew[data-popper-placement^=bottom]{--slide-distance-x:0px;}",".f1gu8pa9[data-popper-placement^=bottom]{--slide-distance-y:-10px;}",".fhfnl4n[data-popper-placement^=left]{--slide-distance-x:10px;}",".fk8tkmz[data-popper-placement^=left]{--slide-distance-y:0px;}",".f3n0535{animation-name:f5j8bii,fld5wjx;}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1kcqot9{padding-top:12px;}",".f11qrl6u{padding-right:12px;}",".fjlbh76{padding-left:12px;}",".fpe6lb7{padding-bottom:12px;}",".fqag9an{padding-top:16px;}",".f1gbmcue{padding-right:16px;}",".f1rh9g5y{padding-left:16px;}",".fp67ikv{padding-bottom:16px;}",".fc7z3ec{padding-top:20px;}",".fat0sn4{padding-right:20px;}",".fekwl8i{padding-left:20px;}",".fe2my4m{padding-bottom:20px;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",".f1kmc0fn{width:11.312px;}",".fb6lvc5{height:11.312px;}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".ftj5xct::before{transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);}",".fyavhwi::before{transform:rotate(var(--angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .f1n8855c{--angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .fsw6im5{--angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f159pzir{--angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .fm1ycve{--angle:270deg;}'],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes fld5wjx{from{transform:translate(var(--slide-distance-x), var(--slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),Y1=e=>{const t=Z1();return e.root.className=A(K1.root,t.root,e.inline&&t.inline,e.size==="small"&&t.smallPadding,e.size==="medium"&&t.mediumPadding,e.size==="large"&&t.largePadding,e.appearance==="inverted"&&t.inverted,e.appearance==="brand"&&t.brand,e.root.className),e.arrowClassName=A(t.arrow,e.size==="small"?t.smallArrow:t.mediumLargeArrow),e},yi=y.forwardRef((e,t)=>{const r=j1(e,t);return Y1(r),Re("usePopoverSurfaceStyles_unstable")(r),U1(r)});yi.displayName="PopoverSurface";const Q1=4,J1=e=>{const[t,r]=Lc(),o={size:"medium",contextTarget:t,setContextTarget:r,...e},n=y.Children.toArray(e.children);process.env.NODE_ENV!=="production"&&(n.length===0&&console.warn("Popover must contain at least one child"),n.length>2&&console.warn("Popover must contain at most two children"));let i,s;n.length===2?(i=n[0],s=n[1]):n.length===1&&(s=n[0]);const[a,l]=e0(o),u=y.useRef(0),c=X((w,x)=>{if(clearTimeout(u.current),!(w instanceof Event)&&w.persist&&w.persist(),w.type==="mouseleave"){var k;u.current=setTimeout(()=>{l(w,x)},(k=e.mouseLeaveDelay)!==null&&k!==void 0?k:500)}else l(w,x)});y.useEffect(()=>()=>{clearTimeout(u.current)},[]);const f=y.useCallback(w=>{c(w,!a)},[c,a]),g=t0(o),{targetDocument:d}=Xe();var p;Vl({contains:Hr,element:d,callback:w=>c(w,!1),refs:[g.triggerRef,g.contentRef],disabled:!a,disabledFocusOnIframe:!(!((p=e.closeOnIframeFocus)!==null&&p!==void 0)||p)});const h=o.openOnContext||o.closeOnScroll;Hl({contains:Hr,element:d,callback:w=>c(w,!1),refs:[g.triggerRef,g.contentRef],disabled:!a||!h});const{findFirstFocusable:b}=en();y.useEffect(()=>{if(!e.unstable_disableAutoFocus&&a&&g.contentRef.current){var w;const x=(w=g.contentRef.current.getAttribute("tabIndex"))!==null&&w!==void 0?w:void 0,k=isNaN(x)?b(g.contentRef.current):g.contentRef.current;k?.focus()}},[b,a,g.contentRef,e.unstable_disableAutoFocus]);var v,m;return{...o,...g,inertTrapFocus:(v=e.inertTrapFocus)!==null&&v!==void 0?v:e.legacyTrapFocus===void 0?!1:!e.legacyTrapFocus,popoverTrigger:i,popoverSurface:s,open:a,setOpen:c,toggleOpen:f,setContextTarget:r,contextTarget:t,inline:(m=e.inline)!==null&&m!==void 0?m:!1}};function e0(e){const t=X((s,a)=>{var l;return(l=e.onOpenChange)===null||l===void 0?void 0:l.call(e,s,a)}),[r,o]=yt({state:e.open,defaultState:e.defaultOpen,initialState:!1});e.open=r!==void 0?r:e.open;const n=e.setContextTarget,i=y.useCallback((s,a)=>{a&&s.type==="contextmenu"&&n(s),a||n(void 0),o(a),t?.(s,{open:a})},[o,t,n]);return[r,i]}function t0(e){const t={position:"above",align:"center",arrowPadding:2*Q1,target:e.openOnContext?e.contextTarget:void 0,...an(e.positioning)};t.coverTarget&&(e.withArrow=!1),e.withArrow&&(t.offset=d1(t.offset,X1[e.size]));const{targetRef:r,containerRef:o,arrowRef:n}=os(t);return{triggerRef:r,contentRef:o,arrowRef:n}}const r0=e=>{const{appearance:t,arrowRef:r,contentRef:o,inline:n,mountNode:i,open:s,openOnContext:a,openOnHover:l,setOpen:u,size:c,toggleOpen:f,trapFocus:g,triggerRef:d,withArrow:p,inertTrapFocus:h}=e;return y.createElement(ns.Provider,{value:{appearance:t,arrowRef:r,contentRef:o,inline:n,mountNode:i,open:s,openOnContext:a,openOnHover:l,setOpen:u,toggleOpen:f,triggerRef:d,size:c,trapFocus:g,inertTrapFocus:h,withArrow:p}},e.popoverTrigger,e.open&&e.popoverSurface)},wi=e=>{const t=J1(e);return r0(t)};wi.displayName="Popover";const o0=e=>{const{children:t,disableButtonEnhancement:r=!1}=e,o=Li(t),n=Pe(w=>w.open),i=Pe(w=>w.setOpen),s=Pe(w=>w.toggleOpen),a=Pe(w=>w.triggerRef),l=Pe(w=>w.openOnHover),u=Pe(w=>w.openOnContext),{triggerAttributes:c}=Bc(),f=w=>{u&&(w.preventDefault(),i(w,!0))},g=w=>{u||s(w)},d=w=>{w.key===rn&&n&&!w.isDefaultPrevented()&&(i(w,!1),w.preventDefault())},p=w=>{l&&i(w,!0)},h=w=>{l&&i(w,!1)},b={...c,"aria-expanded":`${n}`,...o?.props,onMouseEnter:X(de(o?.props.onMouseEnter,p)),onMouseLeave:X(de(o?.props.onMouseLeave,h)),onContextMenu:X(de(o?.props.onContextMenu,f)),ref:He(a,o?.ref)},v={...b,onClick:X(de(o?.props.onClick,g)),onKeyDown:X(de(o?.props.onKeyDown,d))},m=Gr(o?.type==="button"||o?.type==="a"?o.type:"div",v);return{children:Gl(e.children,Gr(o?.type==="button"||o?.type==="a"?o.type:"div",u?b:r?v:m))}},n0=e=>e.children,Fo=e=>{const t=o0(e);return n0(t)};Fo.displayName="PopoverTrigger";Fo.isFluentTriggerComponent=!0;const i0=e=>{pe(e);const{iconOnly:t,iconPosition:r}=e;return gt(e.root,{children:[r!=="after"&&e.icon&&V(e.icon,{}),!t&&e.root.children,r==="after"&&e.icon&&V(e.icon,{})]})},Vc=y.createContext(void 0),s0={};Vc.Provider;const a0=()=>{var e;return(e=y.useContext(Vc))!==null&&e!==void 0?e:s0},Hc=(e,t)=>{const{size:r}=a0(),{appearance:o="secondary",as:n="button",disabled:i=!1,disabledFocusable:s=!1,icon:a,iconPosition:l="before",shape:u="rounded",size:c=r??"medium"}=e,f=Te(a,{elementType:"span"});return{appearance:o,disabled:i,disabledFocusable:s,iconPosition:l,shape:u,size:c,iconOnly:!!(f?.children&&!e.children),components:{root:"button",icon:"span"},root:ne(je(n,Cb(e,{required:!0,defaultProps:{ref:t,type:"button"}})),{elementType:"button"}),icon:f}},Da={root:"fui-Button",icon:"fui-Button__icon"},l0=ze("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),c0=ze("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),u0=U({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},small:{Bf4jedk:"fh7ncta",z8tnut:"f1khb0e9",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",z8tnut:"fp9bwmr",z189sj:["fjodcmx","fhx4nu"],Byoj8tv:"f150uoa4",uwmqm3:["fhx4nu","fjodcmx"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fh7ncta{min-width:64px;}",".f1khb0e9{padding-top:3px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1jnq6q7{padding-bottom:3px;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",".fp9bwmr{padding-top:8px;}",".fjodcmx{padding-right:var(--spacingHorizontalL);}",".fhx4nu{padding-left:var(--spacingHorizontalL);}",".f150uoa4{padding-bottom:8px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),d0=U({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),f0=U({circular:{kdpuga:["fanj13w","f1gou5sz"],Bw81rd7:["f1gou5sz","fanj13w"],B6xbmo0:["fulf6x3","foeb2x"],dm238s:["foeb2x","fulf6x3"]},rounded:{},square:{kdpuga:["f1ndz5i7","f1co4qro"],Bw81rd7:["f1co4qro","f1ndz5i7"],B6xbmo0:["f146y5a9","f1k2ftg"],dm238s:["f1k2ftg","f146y5a9"]},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{kdpuga:["fg3gtdo","fwii5mg"],Bw81rd7:["fwii5mg","fg3gtdo"],B6xbmo0:["f1palphq","f12nxie7"],dm238s:["f12nxie7","f1palphq"]},medium:{},large:{kdpuga:["ft3lys4","f1la4x2g"],Bw81rd7:["f1la4x2g","ft3lys4"],B6xbmo0:["f156y0zm","fakimq4"],dm238s:["fakimq4","f156y0zm"]}},{d:[".fanj13w[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1gou5sz[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);}",".fulf6x3[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusCircular);}",".foeb2x[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusCircular);}",".f1ndz5i7[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusNone);}",".f1co4qro[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusNone);}",".f146y5a9[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusNone);}",".f1k2ftg[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusNone);}",".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",".fg3gtdo[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusSmall);}",".fwii5mg[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1palphq[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusSmall);}",".f12nxie7[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusSmall);}",".ft3lys4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusLarge);}",".f1la4x2g[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusLarge);}",".f156y0zm[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusLarge);}",".fakimq4[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusLarge);}"],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),g0=U({small:{z8tnut:"f1sl3k7w",z189sj:["f136y8j8","f10xn8zz"],Byoj8tv:"f1brlhvm",uwmqm3:["f10xn8zz","f136y8j8"],Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{z8tnut:"f1sbtcvk",z189sj:["fwiuce9","f15vdbe4"],Byoj8tv:"fdghr9",uwmqm3:["f15vdbe4","fwiuce9"],Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{z8tnut:"f1a1bwwz",z189sj:["f18k1jr3","f1rtp3s9"],Byoj8tv:"fy7v416",uwmqm3:["f1rtp3s9","f18k1jr3"],Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[".f1sl3k7w{padding-top:1px;}",".f136y8j8{padding-right:1px;}",".f10xn8zz{padding-left:1px;}",".f1brlhvm{padding-bottom:1px;}",".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",".f1sbtcvk{padding-top:5px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".fdghr9{padding-bottom:5px;}",".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",".f1a1bwwz{padding-top:7px;}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fy7v416{padding-bottom:7px;}",".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),p0=U({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),$c=e=>{const t=l0(),r=c0(),o=u0(),n=d0(),i=f0(),s=g0(),a=p0(),{appearance:l,disabled:u,disabledFocusable:c,icon:f,iconOnly:g,iconPosition:d,shape:p,size:h}=e;return e.root.className=A(Da.root,t,l&&o[l],o[h],f&&h==="small"&&o.smallWithIcon,f&&h==="large"&&o.largeWithIcon,o[p],(u||c)&&n.base,(u||c)&&n.highContrast,l&&(u||c)&&n[l],l==="primary"&&i.primary,i[h],i[p],g&&s[h],e.root.className),e.icon&&(e.icon.className=A(Da.icon,r,!!e.root.children&&a[d],a[h],e.icon.className)),e},ut=y.forwardRef((e,t)=>{const r=Hc(e,t);return $c(r),Re("useButtonStyles_unstable")(r),i0(r)});ut.displayName="Button";const h0=e=>{pe(e);const{icon:t,iconOnly:r}=e;return gt(e.root,{children:[e.icon&&V(e.icon,{}),!r&&e.root.children,(!r||!t?.children)&&e.menuIcon&&V(e.menuIcon,{})]})},v0=({menuIcon:e,...t},r)=>{const o=Hc(t,r);var n;return o.root["aria-expanded"]=(n=t["aria-expanded"])!==null&&n!==void 0?n:!1,{...o,iconOnly:!t.children,components:{root:"button",icon:"span",menuIcon:"span"},menuIcon:Te(e,{defaultProps:{children:y.createElement(Vi,null)},renderByDefault:!0,elementType:"span"})}},Ln={root:"fui-MenuButton",icon:"fui-MenuButton__icon",menuIcon:"fui-MenuButton__menuIcon"},m0=U({base:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"},outline:{g2u3we:"f1ly1fcm",h3c5rm:["fi8bssc","fj6btzu"],B9xav0g:"f1s9tnsa",zhjwy3:["fj6btzu","fi8bssc"],B4j52fo:"fgx37oo",Bekrc4i:["f130t4y6","f1efpmoh"],Bn0qgzm:"fv51ejd",ibv6hh:["f1efpmoh","f130t4y6"],sj55zd:"f14nttnl"},primary:{De3pzq:"f8w4g0q"},secondary:{De3pzq:"f1nfm20t",g2u3we:"f1ly1fcm",h3c5rm:["fi8bssc","fj6btzu"],B9xav0g:"f1s9tnsa",zhjwy3:["fj6btzu","fi8bssc"],sj55zd:"f14nttnl"},subtle:{De3pzq:"fq5gl1p",sj55zd:"f1eryozh"},transparent:{De3pzq:"f1q9pm1r",sj55zd:"f1qj7y59"}},{d:[".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}",".f1ly1fcm{border-top-color:var(--colorNeutralStroke1Selected);}",".fi8bssc{border-right-color:var(--colorNeutralStroke1Selected);}",".fj6btzu{border-left-color:var(--colorNeutralStroke1Selected);}",".f1s9tnsa{border-bottom-color:var(--colorNeutralStroke1Selected);}",".fgx37oo{border-top-width:var(--strokeWidthThicker);}",".f130t4y6{border-right-width:var(--strokeWidthThicker);}",".f1efpmoh{border-left-width:var(--strokeWidthThicker);}",".fv51ejd{border-bottom-width:var(--strokeWidthThicker);}",".f14nttnl{color:var(--colorNeutralForeground1Selected);}",".f8w4g0q{background-color:var(--colorBrandBackgroundSelected);}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1eryozh{color:var(--colorNeutralForeground2Selected);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"]}),b0=U({outline:{sj55zd:"f14nttnl"},primary:{},secondary:{sj55zd:"f14nttnl"},subtle:{sj55zd:"f1qj7y59"},transparent:{sj55zd:"f1qj7y59"},highContrast:{ze5xyy:"fqyhrn0"}},{d:[".f14nttnl{color:var(--colorNeutralForeground1Selected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],m:[["@media (forced-colors: active){.fqyhrn0:hover{color:Canvas;}}",{m:"(forced-colors: active)"}]]}),y0=U({base:{Bg96gwp:"fez10in"},small:{Be2twd7:"f1ugzwwg",Bqenvij:"fvblgha",Bg96gwp:"fwrc4pm",a9b677:"frx94fk"},medium:{Be2twd7:"f1ugzwwg",Bqenvij:"fvblgha",Bg96gwp:"fwrc4pm",a9b677:"frx94fk"},large:{Be2twd7:"f4ybsrx",Bqenvij:"fd461yt",Bg96gwp:"faaz57k",a9b677:"fjw5fx7"},notIconOnly:{Frg6f3:["fbyavb5","fm0x6gh"]}},{d:[".fez10in{line-height:0;}",".f1ugzwwg{font-size:12px;}",".fvblgha{height:12px;}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".frx94fk{width:12px;}",".f4ybsrx{font-size:16px;}",".fd461yt{height:16px;}",".faaz57k{line-height:var(--lineHeightBase400);}",".fjw5fx7{width:16px;}",".fbyavb5{margin-left:var(--spacingHorizontalXS);}",".fm0x6gh{margin-right:var(--spacingHorizontalXS);}"]}),w0=e=>{const t=m0(),r=b0(),o=y0();return e.root.className=A(Ln.root,e.root["aria-expanded"]&&t.base,e.root["aria-expanded"]&&t[e.appearance],e.root.className),e.icon&&(e.icon.className=A(Ln.icon,e.root["aria-expanded"]&&r[e.appearance]&&r.highContrast,e.icon.className)),e.menuIcon&&(e.menuIcon.className=A(Ln.menuIcon,o.base,o[e.size],!e.iconOnly&&o.notIconOnly,e.menuIcon.className)),$c({...e,iconPosition:"before"}),e},Gc=y.forwardRef((e,t)=>{const r=v0(e,t);return w0(r),Re("useMenuButtonStyles_unstable")(r),h0(r)});Gc.displayName="MenuButton";const Wc=y.createContext(void 0);Wc.Provider;const x0=()=>y.useContext(Wc);function cn(e,t){return k0(x0(),e,t)}function k0(e,t,r){if(!e)return t;t={...t};const{generatedControlId:o,hintId:n,labelFor:i,labelId:s,required:a,validationMessageId:l,validationState:u}=e;if(o){var c,f;(f=(c=t).id)!==null&&f!==void 0||(c.id=o)}if(s&&(!r?.supportsLabelFor||i!==t.id)){var g,d,p;(p=(g=t)[d="aria-labelledby"])!==null&&p!==void 0||(g[d]=s)}if((l||n)&&(t["aria-describedby"]=[l,n,t?.["aria-describedby"]].filter(Boolean).join(" ")),u==="error"){var h,b,v;(v=(h=t)[b="aria-invalid"])!==null&&v!==void 0||(h[b]=!0)}if(a)if(r?.supportsRequired){var m,w;(w=(m=t).required)!==null&&w!==void 0||(m.required=!0)}else{var x,k,_;(_=(x=t)[k="aria-required"])!==null&&_!==void 0||(x[k]=!0)}if(r?.supportsSize){var S,E;(E=(S=t).size)!==null&&E!==void 0||(S.size=e.size)}return t}const S0=(e,t)=>{const{disabled:r=!1,required:o=!1,weight:n="regular",size:i="medium"}=e;return{disabled:r,required:Te(o===!0?"*":o||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:n,size:i,components:{root:"label",required:"span"},root:ne(je("label",{ref:t,...e}),{elementType:"label"})}},_0=e=>(pe(e),gt(e.root,{children:[e.root.children,e.required&&V(e.required,{})]})),Fa={root:"fui-Label",required:"fui-Label__required"},C0=U({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o"},required:{sj55zd:"f1whyuy6",uwmqm3:["fycuoez","f8wuabp"]},requiredDisabled:{sj55zd:"f1s2aq7o"},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"]}),B0=e=>{const t=C0();return e.root.className=A(Fa.root,t.root,e.disabled&&t.disabled,t[e.size],e.weight==="semibold"&&t.semibold,e.root.className),e.required&&(e.required.className=A(Fa.required,t.required,e.disabled&&t.requiredDisabled,e.required.className)),e},Ur=y.forwardRef((e,t)=>{const r=S0(e,t);return B0(r),Re("useLabelStyles_unstable")(r),_0(r)});Ur.displayName="Label";const R0=(e,t)=>{e=cn(e,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:r=!1,required:o,shape:n="square",size:i="medium",labelPosition:s="after",onChange:a}=e,[l,u]=yt({defaultState:e.defaultChecked,state:e.checked,initialState:!1}),c=Yo({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","size","onChange"]}),f=l==="mixed",g=xt("checkbox-",c.primary.id);let d;f?n==="circular"?d=y.createElement(oc,null):d=i==="large"?y.createElement(im,null):y.createElement(nm,null):l&&(d=i==="large"?y.createElement(Jv,null):y.createElement(ic,null));const p={shape:n,checked:l,disabled:r,size:i,labelPosition:s,components:{root:"span",input:"input",indicator:"div",label:Ur},root:ne(e.root,{defaultProps:{ref:Cc(),...c.root},elementType:"span"}),input:ne(e.input,{defaultProps:{type:"checkbox",id:g,ref:t,checked:l===!0,...c.primary},elementType:"input"}),label:Te(e.label,{defaultProps:{htmlFor:g,disabled:r,required:o,size:"medium"},elementType:Ur}),indicator:Te(e.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0,children:d},elementType:"div"})};p.input.onChange=X(b=>{const v=b.currentTarget.indeterminate?"mixed":b.currentTarget.checked;a?.(b,{checked:v}),u(v)});const h=He(p.input.ref);return p.input.ref=h,$t(()=>{h.current&&(h.current.indeterminate=f)},[h,f]),p},E0=e=>(pe(e),gt(e.root,{children:[V(e.input,{}),e.labelPosition==="before"&&e.label&&V(e.label,{}),V(e.indicator,{}),e.labelPosition==="after"&&e.label&&V(e.label,{})]})),uo={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},P0=ze("r1qaeuiq","rm0k3vm",[".r1qaeuiq{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r1qaeuiq:focus{outline-style:none;}",".r1qaeuiq:focus-visible{outline-style:none;}",".r1qaeuiq[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1qaeuiq[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rm0k3vm{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".rm0k3vm:focus{outline-style:none;}",".rm0k3vm:focus-visible{outline-style:none;}",".rm0k3vm[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rm0k3vm[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}']),N0=U({unchecked:{Bi91k9c:"f3p8bqa",ns3gzv:"ffqb913",n5iecx:["f42z0vd","f1j37kh1"],Bq2lx2j:"f10v6cc1",Bv7p3up:["f1j37kh1","f42z0vd"],lj723h:"f1r2dosr",B6u2zzw:"f1oarbgq",Be5wueo:["fo8gord","f18ci1af"],Cgwcxn:"fviagcr",Btnvhkj:["f18ci1af","fo8gord"]},checked:{sj55zd:"f19n0e5",Bvs3sgl:"f5opsb9",opw9sb:"fpaw01r",C5wppx:"f1gqj827",B32epof:["fub94a2","f13mj44e"],Bphahg7:"f1qq5vh1",Jctw66:["f13mj44e","fub94a2"],Bq0zqd5:"f5x9vvn",ns3gzv:"fub8hyy",n5iecx:["fffzknn","f172bh4s"],Bq2lx2j:"f6tipb1",Bv7p3up:["f172bh4s","fffzknn"],Bgesukf:"f8adco2",B6u2zzw:"f1lepnt8",Be5wueo:["f80ygm0","frrkusm"],Cgwcxn:"f1gg953z",Btnvhkj:["frrkusm","f80ygm0"]},mixed:{sj55zd:"f19n0e5",C5wppx:"f12fgbth",B32epof:["f171e6fm","fttsnhr"],Bphahg7:"f1fyk1ks",Jctw66:["fttsnhr","f171e6fm"],opw9sb:"fvvg2h8",ns3gzv:"f1nlwys0",n5iecx:["f1bhstg2","f6tsdgz"],Bq2lx2j:"fqxbw9v",Bv7p3up:["f6tsdgz","f1bhstg2"],cc1l3s:"f1r38qqt",B6u2zzw:"f12q3i2l",Be5wueo:["f9g1hxu","f1o4ic5t"],Cgwcxn:"f1c3thm1",Btnvhkj:["f1o4ic5t","f9g1hxu"],km5s60:"ffd07pq"},disabled:{Bceei9c:"f158kwzp",sj55zd:"f1s2aq7o",C5wppx:"fgiuqeu",B32epof:["f1q4sfkt","f71co73"],Bphahg7:"f1u7lsiy",Jctw66:["f71co73","f1q4sfkt"],opw9sb:"f3vxa14",Bbusuzp:"f1dcs8yz",B7bxudy:"f1lmtjkn"}},{h:[".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".ffqb913:hover>.fui-Checkbox__indicator{border-top-color:var(--colorNeutralStrokeAccessibleHover);}",".f42z0vd:hover>.fui-Checkbox__indicator{border-right-color:var(--colorNeutralStrokeAccessibleHover);}",".f1j37kh1:hover>.fui-Checkbox__indicator{border-left-color:var(--colorNeutralStrokeAccessibleHover);}",".f10v6cc1:hover>.fui-Checkbox__indicator{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".f5x9vvn:hover>.fui-Checkbox__indicator{background-color:var(--colorCompoundBrandBackgroundHover);}",".fub8hyy:hover>.fui-Checkbox__indicator{border-top-color:var(--colorCompoundBrandBackgroundHover);}",".fffzknn:hover>.fui-Checkbox__indicator{border-right-color:var(--colorCompoundBrandBackgroundHover);}",".f172bh4s:hover>.fui-Checkbox__indicator{border-left-color:var(--colorCompoundBrandBackgroundHover);}",".f6tipb1:hover>.fui-Checkbox__indicator{border-bottom-color:var(--colorCompoundBrandBackgroundHover);}",".f1nlwys0:hover>.fui-Checkbox__indicator{border-top-color:var(--colorCompoundBrandStrokeHover);}",".f1bhstg2:hover>.fui-Checkbox__indicator{border-right-color:var(--colorCompoundBrandStrokeHover);}",".f6tsdgz:hover>.fui-Checkbox__indicator{border-left-color:var(--colorCompoundBrandStrokeHover);}",".fqxbw9v:hover>.fui-Checkbox__indicator{border-bottom-color:var(--colorCompoundBrandStrokeHover);}",".f1r38qqt:hover>.fui-Checkbox__indicator{color:var(--colorCompoundBrandForeground1Hover);}"],a:[".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".f1oarbgq:active>.fui-Checkbox__indicator{border-top-color:var(--colorNeutralStrokeAccessiblePressed);}",".fo8gord:active>.fui-Checkbox__indicator{border-right-color:var(--colorNeutralStrokeAccessiblePressed);}",".f18ci1af:active>.fui-Checkbox__indicator{border-left-color:var(--colorNeutralStrokeAccessiblePressed);}",".fviagcr:active>.fui-Checkbox__indicator{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}",".f8adco2:active>.fui-Checkbox__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);}",".f1lepnt8:active>.fui-Checkbox__indicator{border-top-color:var(--colorCompoundBrandBackgroundPressed);}",".f80ygm0:active>.fui-Checkbox__indicator{border-right-color:var(--colorCompoundBrandBackgroundPressed);}",".frrkusm:active>.fui-Checkbox__indicator{border-left-color:var(--colorCompoundBrandBackgroundPressed);}",".f1gg953z:active>.fui-Checkbox__indicator{border-bottom-color:var(--colorCompoundBrandBackgroundPressed);}",".f12q3i2l:active>.fui-Checkbox__indicator{border-top-color:var(--colorCompoundBrandStrokePressed);}",".f9g1hxu:active>.fui-Checkbox__indicator{border-right-color:var(--colorCompoundBrandStrokePressed);}",".f1o4ic5t:active>.fui-Checkbox__indicator{border-left-color:var(--colorCompoundBrandStrokePressed);}",".f1c3thm1:active>.fui-Checkbox__indicator{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".ffd07pq:active>.fui-Checkbox__indicator{color:var(--colorCompoundBrandForeground1Pressed);}"],d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f5opsb9>.fui-Checkbox__indicator{background-color:var(--colorCompoundBrandBackground);}",".fpaw01r>.fui-Checkbox__indicator{color:var(--colorNeutralForegroundInverted);}",".f1gqj827>.fui-Checkbox__indicator{border-top-color:var(--colorCompoundBrandBackground);}",".fub94a2>.fui-Checkbox__indicator{border-right-color:var(--colorCompoundBrandBackground);}",".f13mj44e>.fui-Checkbox__indicator{border-left-color:var(--colorCompoundBrandBackground);}",".f1qq5vh1>.fui-Checkbox__indicator{border-bottom-color:var(--colorCompoundBrandBackground);}",".f12fgbth>.fui-Checkbox__indicator{border-top-color:var(--colorCompoundBrandStroke);}",".f171e6fm>.fui-Checkbox__indicator{border-right-color:var(--colorCompoundBrandStroke);}",".fttsnhr>.fui-Checkbox__indicator{border-left-color:var(--colorCompoundBrandStroke);}",".f1fyk1ks>.fui-Checkbox__indicator{border-bottom-color:var(--colorCompoundBrandStroke);}",".fvvg2h8>.fui-Checkbox__indicator{color:var(--colorCompoundBrandForeground1);}",".f158kwzp{cursor:default;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fgiuqeu>.fui-Checkbox__indicator{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1q4sfkt>.fui-Checkbox__indicator{border-right-color:var(--colorNeutralStrokeDisabled);}",".f71co73>.fui-Checkbox__indicator{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1u7lsiy>.fui-Checkbox__indicator{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f3vxa14>.fui-Checkbox__indicator{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lmtjkn>.fui-Checkbox__indicator{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),T0=ze("ruo9svu",null,[".ruo9svu{box-sizing:border-box;cursor:inherit;height:100%;margin:0;opacity:0;position:absolute;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));}"]),D0=U({before:{j35jbq:["f1e31b4d","f1vgc2s3"]},after:{oyh7mz:["f1vgc2s3","f1e31b4d"]},large:{a9b677:"f1mq5jt6"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1mq5jt6{width:calc(20px + 2 * var(--spacingHorizontalS));}"]}),F0=ze("rrh91wr",null,[".rrh91wr{align-self:flex-start;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);border-radius:var(--borderRadiusSmall);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;font-size:12px;height:16px;width:16px;}"]),I0=U({large:{Be2twd7:"f4ybsrx",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]}},{d:[".f4ybsrx{font-size:16px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}"]}),O0=U({base:{qb2dma:"f7nlbp4",sj55zd:"f1ym3bx4",Bceei9c:"fpo1scq",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},before:{z189sj:["f7x41pl","fruq291"]},after:{uwmqm3:["fruq291","f7x41pl"]},medium:{B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},large:{B6of3ja:"f1xlvstr",jrapky:"f49ad5g"}},{d:[".f7nlbp4{align-self:center;}",".f1ym3bx4{color:inherit;}",".fpo1scq{cursor:inherit;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}"]}),z0=e=>{const{checked:t,disabled:r,labelPosition:o,shape:n,size:i}=e,s=P0(),a=N0();e.root.className=A(uo.root,s,r?a.disabled:t==="mixed"?a.mixed:t?a.checked:a.unchecked,e.root.className);const l=T0(),u=D0();e.input.className=A(uo.input,l,i==="large"&&u.large,u[o],e.input.className);const c=F0(),f=I0();e.indicator&&(e.indicator.className=A(uo.indicator,c,i==="large"&&f.large,n==="circular"&&f.circular,e.indicator.className));const g=O0();return e.label&&(e.label.className=A(uo.label,g.base,g[i],g[o],e.label.className)),e},Tt=y.forwardRef((e,t)=>{const r=R0(e,t);return z0(r),Re("useCheckboxStyles_unstable")(r),E0(r)});Tt.displayName="Checkbox";const ct=Qr({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});ct.Provider;const Rt=Qr({activeOption:void 0,focusVisible:!1,multiselect:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){}});Rt.Provider;function j0(e){const{activeOption:t,appearance:r,focusVisible:o,open:n,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:l,setOpen:u,size:c}=e;return{combobox:{activeOption:t,appearance:r,focusVisible:o,open:n,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:l,setOpen:u,size:c}}}function M0(e){const t=tn(ct),{activeOption:r,focusVisible:o,multiselect:n,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:l}=e,u=Ne(ct,g=>g.registerOption);return{listbox:{activeOption:r,focusVisible:o,multiselect:n,registerOption:t?u:i,selectedOptions:s,selectOption:a,setActiveOption:l}}}function ss(e,t={}){const{open:r=!0,multiselect:o=!1}=t,n=e.key,{altKey:i,ctrlKey:s,key:a,metaKey:l}=e;return a.length===1&&n!==Pt&&!i&&!s&&!l?"Type":r?n===Mn&&i||n===mr||!o&&n===Pt?"CloseSelect":o&&n===Pt?"Select":n===rn?"Close":n===hi?"Next":n===Mn?"Previous":n===kb?"First":n===xb?"Last":n===_b?"PageUp":n===Sb?"PageDown":n===Rc?"Tab":"None":n===hi||n===Mn||n===mr||n===Pt?"Open":"None"}function Uc(e,t,r){switch(e){case"Next":return Math.min(r,t+1);case"Previous":return Math.max(0,t-1);case"First":return 0;case"Last":return r;case"PageDown":return Math.min(r,t+10);case"PageUp":return Math.max(0,t-10);default:return t}}const Kc=()=>{const e=y.useRef([]),t=y.useMemo(()=>({getCount:()=>e.current.length,getOptionAtIndex:u=>{var c;return(c=e.current[u])===null||c===void 0?void 0:c.option},getIndexOfId:u=>e.current.findIndex(c=>c.option.id===u),getOptionById:u=>{const c=e.current.find(f=>f.option.id===u);return c?.option},getOptionsMatchingText:u=>e.current.filter(c=>u(c.option.text)).map(c=>c.option),getOptionsMatchingValue:u=>e.current.filter(c=>u(c.option.value)).map(c=>c.option)}),[]),r=y.useCallback((o,n)=>{var i;const s=e.current.findIndex(a=>!a.element||!n?!1:a.option.id===o.id?!0:a.element.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING);if(((i=e.current[s])===null||i===void 0?void 0:i.option.id)!==o.id){const a={element:n,option:o};s===-1?e.current=[...e.current,a]:e.current.splice(s,0,a)}return()=>{e.current=e.current.filter(a=>a.option.id!==o.id)}},[]);return{...t,options:e.current.map(o=>o.option),registerOption:r}};function A0(e){const{activeOption:t}=e,r=y.useRef(null);return y.useEffect(()=>{if(r.current&&t&&qi()){const o=r.current.querySelector(`#${t.id}`);if(!o)return;const{offsetHeight:n,offsetTop:i}=o,{offsetHeight:s,scrollTop:a}=r.current,l=i<a,u=i+n>a+s,c=2;l?r.current.scrollTo(0,i-c):u&&r.current.scrollTo(0,i-s+n+c)}},[t]),r}const Xc=e=>{const{defaultSelectedOptions:t,multiselect:r,onOptionSelect:o}=e,[n,i]=yt({state:e.selectedOptions,defaultState:t,initialState:[]}),s=q.useCallback((l,u)=>{if(u.disabled)return;let c=[u.value];if(r){const f=n.findIndex(g=>g===u.value);f>-1?c=[...n.slice(0,f),...n.slice(f+1)]:c=[...n,u.value]}i(c),o?.(l,{optionValue:u.value,optionText:u.text,selectedOptions:c})},[o,r,n,i]);return{clearSelection:l=>{i([]),o?.(l,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:s,selectedOptions:n}},q0=(e,t)=>{const{multiselect:r}=e,o=Kc(),{getCount:n,getOptionAtIndex:i,getIndexOfId:s}=o,{clearSelection:a,selectedOptions:l,selectOption:u}=Xc(e),[c,f]=y.useState(),[g,d]=y.useState(!1),p=F=>{const O=ss(F,{open:!0}),T=n()-1,B=c?s(c.id):-1;let R=B;switch(O){case"Select":case"CloseSelect":c&&u(F,c);break;default:R=Uc(O,B,T)}R!==B&&(F.preventDefault(),f(i(R)),d(!0))},h=F=>{d(!1)},b=tn(ct),v=Ne(ct,F=>F.activeOption),m=Ne(ct,F=>F.focusVisible),w=Ne(ct,F=>F.selectedOptions),x=Ne(ct,F=>F.selectOption),k=Ne(ct,F=>F.setActiveOption),_=b?{activeOption:v,focusVisible:m,selectedOptions:w,selectOption:x,setActiveOption:k}:{activeOption:c,focusVisible:g,selectedOptions:l,selectOption:u,setActiveOption:f},S={components:{root:"div"},root:ne(je("div",{ref:t,role:r?"menu":"listbox","aria-activedescendant":b?void 0:c?.id,"aria-multiselectable":r,tabIndex:0,...e}),{elementType:"div"}),multiselect:r,clearSelection:a,...o,..._},E=A0(S);return S.root.ref=He(S.root.ref,E),S.root.onKeyDown=X(de(S.root.onKeyDown,p)),S.root.onMouseOver=X(de(S.root.onMouseOver,h)),S},L0=(e,t)=>(pe(e),V(Rt.Provider,{value:t.listbox,children:V(e.root,{})})),V0={root:"fui-Listbox"},H0=U({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",z8tnut:"f1x4af0m",z189sj:["f7x41pl","fruq291"],Byoj8tv:"fd55psn",uwmqm3:["fruq291","f7x41pl"],Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".f1x4af0m{padding-top:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fd55psn{padding-bottom:var(--spacingHorizontalXS);}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),$0=e=>{const t=H0();return e.root.className=A(V0.root,t.root,e.root.className),e},xi=y.forwardRef((e,t)=>{const r=q0(e,t),o=M0(r);return $0(r),Re("useListboxStyles_unstable")(r),L0(r,o)});xi.displayName="Listbox";function G0(e,t){if(e!==void 0)return e;let r="",o=!1;return y.Children.forEach(t,n=>{typeof n=="string"?r+=n:o=!0}),o&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),r}const W0=(e,t)=>{const{children:r,disabled:o,text:n,value:i}=e,s=y.useRef(null),a=G0(n,r),l=i??a,u=xt("fluent-option",e.id),c=y.useMemo(()=>({id:u,disabled:o,text:a,value:l}),[u,o,a,l]),f=Ne(Rt,_=>_.focusVisible),g=Ne(Rt,_=>_.multiselect),d=Ne(Rt,_=>_.registerOption),p=Ne(Rt,_=>{const S=_.selectedOptions;return!!l&&!!S.find(E=>E===l)}),h=Ne(Rt,_=>_.selectOption),b=Ne(Rt,_=>_.setActiveOption),v=Ne(ct,_=>_.setOpen),m=Ne(Rt,_=>{var S,E;return((S=_.activeOption)===null||S===void 0?void 0:S.id)!==void 0&&((E=_.activeOption)===null||E===void 0?void 0:E.id)===u});let w=y.createElement(Cv,null);g&&(w=p?y.createElement(ic,null):"");const x=_=>{var S;if(o){_.preventDefault();return}b(c),g||v?.(_,!1),h(_,c),(S=e.onClick)===null||S===void 0||S.call(e,_)};y.useEffect(()=>{if(u&&s.current)return d(c,s.current)},[u,c,d]);const k=g?{role:"menuitemcheckbox","aria-checked":p}:{role:"option","aria-selected":p};return{components:{root:"div",checkIcon:"span"},root:ne(je("div",{ref:He(t,s),"aria-disabled":o?"true":void 0,id:u,...k,...e,onClick:x}),{elementType:"div"}),checkIcon:Te(e.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:w},elementType:"span"}),active:m,disabled:o,focusVisible:f,multiselect:g,selected:p}},U0=e=>(pe(e),gt(e.root,{children:[e.checkIcon&&V(e.checkIcon,{}),e.root.children]})),Ia={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},K0=U({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",z8tnut:"fp2oml8",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1tdddsa",uwmqm3:["f1f5gg8d","f1vdfbxk"],qhf8xq:"f10pi13n",Jwef8y:"f1knas48",ecr2s2:"fb40n2d"},active:{Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",B80jsxd:"f1nwj1ja",t2ki1e:"ffmd2fr",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"fc9v8v1",Ihftqj:["f1mwfetb","f18mat8f"],Bcgy8vk:"f1cb6c3",Bhxzhr1:["f18mat8f","f1mwfetb"],B3778ie:["f1ibwz09","f1kp91vd"],d9w3h3:["f1kp91vd","f1ibwz09"],Bl18szs:["f1pix4dl","f13nd1z4"],B4j8arr:["f13nd1z4","f1pix4dl"],B0n5ga8:"f1qw5sz7",s924m2:["f19va7ni","f1a9v3mw"],B1q35kw:"fkkziue",Gp14am:["f1a9v3mw","f19va7ni"],bn5sak:"f1a97anr",By385i5:"f5226zp",Eqx8gd:["fa2bdqt","fei6g0k"],B1piin3:["fei6g0k","fa2bdqt"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",ecr2s2:"fgj9um3",Bbusuzp:"f1dcs8yz"},selected:{},checkIcon:{Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"],Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"],B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f10pi13n{position:relative;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1nwj1ja::after{pointer-events:none;}",".ffmd2fr::after{z-index:1;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".fc9v8v1::after{border-top-width:2px;}",".f1mwfetb::after{border-right-width:2px;}",".f18mat8f::after{border-left-width:2px;}",".f1cb6c3::after{border-bottom-width:2px;}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1pix4dl::after{border-top-right-radius:var(--borderRadiusMedium);}",".f13nd1z4::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1qw5sz7::after{border-top-color:var(--colorStrokeFocus2);}",".f19va7ni::after{border-right-color:var(--colorStrokeFocus2);}",".f1a9v3mw::after{border-left-color:var(--colorStrokeFocus2);}",".fkkziue::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1a97anr::after{top:-2px;}",".f5226zp::after{bottom:-2px;}",".fa2bdqt::after{left:-2px;}",".fei6g0k::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),X0=e=>{const{active:t,disabled:r,focusVisible:o,multiselect:n,selected:i}=e,s=K0();return e.root.className=A(Ia.root,s.root,t&&o&&s.active,r&&s.disabled,i&&s.selected,e.root.className),e.checkIcon&&(e.checkIcon.className=A(Ia.checkIcon,s.checkIcon,n&&s.multiselectCheck,i&&s.selectedCheck,i&&n&&s.selectedMultiselectCheck,r&&s.checkDisabled,e.checkIcon.className)),e},Zc=y.forwardRef((e,t)=>{const r=W0(e,t);return X0(r),Re("useOptionStyles_unstable")(r),U0(r)});Zc.displayName="Option";const Z0=e=>{const{appearance:t="outline",children:r,editable:o=!1,inlinePopup:n=!1,mountNode:i=void 0,multiselect:s,onOpenChange:a,size:l="medium"}=e,u=Kc(),{getOptionAtIndex:c,getOptionsMatchingValue:f}=u,[g,d]=y.useState(),[p,h]=y.useState(!1),[b,v]=y.useState(!1),m=y.useRef(!1),w=Xc(e),{selectedOptions:x}=w,k=Yh(),[_,S]=yt({state:e.value,initialState:void 0}),E=y.useMemo(()=>{if(_!==void 0)return _;if(k&&e.defaultValue!==void 0)return e.defaultValue;const B=f(R=>x.includes(R)).map(R=>R.text);return s?o?"":B.join(", "):B[0]},[_,o,f,s,e.defaultValue,x]),[F,O]=yt({state:e.open,defaultState:e.defaultOpen,initialState:!1}),T=y.useCallback((B,R)=>{a?.(B,{open:R}),O(R)},[a,O]);return y.useEffect(()=>{if(F&&!g)if(!s&&x.length>0){const B=f(R=>R===x[0]).pop();B&&d(B)}else d(c(0));else F||d(void 0)},[F,r]),{...u,...w,activeOption:g,appearance:t,focusVisible:p,hasFocus:b,ignoreNextBlur:m,inlinePopup:n,mountNode:i,open:F,setActiveOption:d,setFocusVisible:h,setHasFocus:v,setOpen:T,setValue:S,size:l,value:E}};function Y0(e,t,r){const{positioning:o}=e,i={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],...an(o)},{targetRef:s,containerRef:a}=os(i),l=He(r?.ref,a),u=r&&{...r,ref:l};return[{...t,ref:He(t?.ref,s)},u]}function Q0(e,t,r,o,n){const{multiselect:i}=e,{activeOption:s,getCount:a,getIndexOfId:l,getOptionAtIndex:u,ignoreNextBlur:c,open:f,selectOption:g,setActiveOption:d,setFocusVisible:p,setHasFocus:h,setOpen:b}=t,v=y.useRef(null),m=y.useRef(null),w=xt("fluent-listbox",n?.id),x=He(n?.ref,m),k=n&&{id:w,multiselect:i,tabIndex:void 0,...n,ref:x},_={"aria-expanded":f,"aria-activedescendant":f?s?.id:void 0,role:"combobox",...o,ref:He(r,o?.ref,v)},S=X(de(B=>{var R;(R=v.current)===null||R===void 0||R.focus()},k?.onClick)),E=X(de(B=>{p(!1)},k?.onMouseOver)),{targetDocument:F}=Xe(),O=X(B=>{var R;!((R=m.current)===null||R===void 0)&&R.contains(B.target)||b(B,!1),F?.removeEventListener("mouseup",O)}),T=X(de(B=>{c.current=!0,F?.addEventListener("mouseup",O)},k?.onMouseDown));return k&&(k.onClick=S,k.onMouseOver=E,k.onMouseDown=T),_.onBlur=de(B=>{c.current||b(B,!1),c.current=!1,h(!1)},_.onBlur),_.onClick=de(B=>{b(B,!f)},_.onClick),_.onFocus=de(B=>{h(!0)},_.onFocus),_.onKeyDown=de(B=>{const R=ss(B,{open:f,multiselect:i}),H=a()-1,Z=s?l(s.id):-1;let Y=Z;switch(R){case"Open":B.preventDefault(),p(!0),b(B,!0);break;case"Close":B.stopPropagation(),B.preventDefault(),b(B,!1);break;case"CloseSelect":!i&&!s?.disabled&&b(B,!1);case"Select":s&&g(B,s),B.preventDefault();break;case"Tab":!i&&s&&g(B,s);break;default:Y=Uc(R,Z,H)}Y!==Z&&(B.preventDefault(),d(u(Y)),p(!0))},_.onKeyDown),_.onMouseOver=de(B=>{p(!1)},_.onMouseOver),[_,k]}const J0=(e,t)=>{e=cn(e,{supportsLabelFor:!0,supportsSize:!0});const r=Z0(e),{activeOption:o,getIndexOfId:n,getOptionsMatchingText:i,open:s,setActiveOption:a,setFocusVisible:l,setOpen:u}=r,{primary:c,root:f}=Yo({props:e,primarySlotTagName:"button",excludedPropNames:["children"]}),g=y.useRef(null),[d,p]=y.useState();y.useEffect(()=>{var S;const E=s?`${(S=g.current)===null||S===void 0?void 0:S.clientWidth}px`:void 0;p(E)},[s]);const h=y.useRef(""),[b,v]=tv(),m=()=>{let S=T=>T.toLowerCase().indexOf(h.current)===0,E=i(S),F=o?n(o.id):0;if(s&&h.current.length===1&&F++,!E.length){const T=h.current.split("");T.length&&T.every(R=>R===T[0])&&(F++,S=R=>R.toLowerCase().indexOf(T[0])===0,E=i(S))}if(E.length>1&&o){const T=E.find(B=>n(B.id)>=F);return T??E[0]}var O;return(O=E[0])!==null&&O!==void 0?O:void 0},w=S=>{if(v(),ss(S)==="Type"){h.current+=S.key.toLowerCase(),b(()=>{h.current=""},500),!s&&u(S,!0);const E=m();a(E),l(!0)}};let x,k;x=ne(e.button,{defaultProps:{type:"button",children:r.value||e.placeholder,...c},elementType:"button"}),x.onKeyDown=de(w,x.onKeyDown),k=r.open||r.hasFocus?Te(e.listbox,{renderByDefault:!0,defaultProps:{children:e.children,style:{width:d}},elementType:xi}):void 0,[x,k]=Y0(e,x,k),[x,k]=Q0(e,r,t,x,k);const _={components:{root:"div",button:"button",expandIcon:"span",listbox:xi},root:ne(e.root,{defaultProps:{"aria-owns":e.inlinePopup?void 0:k?.id,children:e.children,...f},elementType:"div"}),button:x,listbox:k,expandIcon:Te(e.expandIcon,{renderByDefault:!0,defaultProps:{children:y.createElement(Vi,null)},elementType:"span"}),placeholderVisible:!r.value&&!!e.placeholder,...r};return _.root.ref=He(_.root.ref,g),_},ey=(e,t)=>(pe(e),V(e.root,{children:gt(ct.Provider,{value:t.combobox,children:[gt(e.button,{children:[e.button.children,e.expandIcon&&V(e.expandIcon,{})]}),e.listbox&&(e.inlinePopup?V(e.listbox,{}):V(ln,{mountNode:e.mountNode,children:V(e.listbox,{})}))]})})),fo={root:"fui-Dropdown",button:"fui-Dropdown__button",expandIcon:"fui-Dropdown__expandIcon",listbox:"fui-Dropdown__listbox"},ty=U({root:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B7ck84d:"f1ewtqcl",mc9l5x:"f14t3ns0",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Bxyxcbc:"fmmk62d"},listboxCollapsed:{mc9l5x:"fjseox"},button:{Bt984gj:"f122n59",De3pzq:"f1c21dwh",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",i8kkvl:"f14mj54c",Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bahqtrf:"fk6fouc",Budl1dq:"f12nh0o2",Brf1p80:"f1869bpl",fsow6f:["f1o700av","fes3tcz"],a9b677:"fly5x3f",Brovlpu:"ftqa4ok"},placeholder:{sj55zd:"fxc4j92"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f1khb0e9",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1xile11","fqznh8f"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f1sbtcvk",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdghr9",uwmqm3:["f1e60jzv","f135dnwl"]},large:{i8kkvl:"f1rjii52",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f1a1bwwz",z189sj:["fw5db7e","f1uw59to"],Byoj8tv:"fy7v416",uwmqm3:["fnphzt9","flt1dlf"]},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"f1c1zstj",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]},"filled-lighter":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"]},"filled-darker":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]},disabledText:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ewtqcl{box-sizing:border-box;}",".f14t3ns0{display:inline-block;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".f122n59{align-items:center;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f12nh0o2{grid-template-columns:[content] 1fr [icon] auto [end];}",".f1869bpl{justify-content:space-between;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fly5x3f{width:100%;}",".fxc4j92{color:var(--colorNeutralForeground4);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1khb0e9{padding-top:3px;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1jnq6q7{padding-bottom:3px;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1sbtcvk{padding-top:5px;}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fdghr9{padding-bottom:5px;}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1a1bwwz{padding-top:7px;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fy7v416{padding-bottom:7px;}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],f:[".ftqa4ok:focus{outline-style:none;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),ry=U({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Br312pm:"f12w6cgp",Bw0ie65:"f8bv1bt",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f12w6cgp{grid-column-start:icon;}",".f8bv1bt{grid-column-end:end;}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"]}),oy=e=>{const{appearance:t,open:r,placeholderVisible:o,size:n}=e,i=`${e.button["aria-invalid"]}`=="true",s=e.button.disabled,a=ty(),l=ry();return e.root.className=A(fo.root,a.root,a[t],!s&&t==="outline"&&a.outlineInteractive,i&&t!=="underline"&&a.invalid,i&&t==="underline"&&a.invalidUnderline,s&&a.disabled,e.root.className),e.button.className=A(fo.button,a.button,a[n],o&&a.placeholder,s&&a.disabledText,e.button.className),e.listbox&&(e.listbox.className=A(fo.listbox,a.listbox,!r&&a.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=A(fo.expandIcon,l.icon,l[n],s&&l.disabled,e.expandIcon.className)),e},Yc=y.forwardRef((e,t)=>{const r=J0(e,t),o=j0(r);return oy(r),Re("useDropdownStyles_unstable")(r),ey(r,o)});Yc.displayName="Dropdown";const ny=e=>(pe(e),V(e.root,{children:e.root.children!==void 0&&V(e.wrapper,{children:e.root.children})})),iy=(e,t)=>{const{alignContent:r="center",appearance:o="default",inset:n=!1,vertical:i=!1,wrapper:s}=e,a=xt("divider-");return{alignContent:r,appearance:o,inset:n,vertical:i,components:{root:"div",wrapper:"div"},root:ne(je("div",{role:"separator","aria-orientation":i?"vertical":"horizontal","aria-labelledby":e.children?a:void 0,...e,ref:t}),{elementType:"div"}),wrapper:ne(s,{defaultProps:{id:a,children:e.children},elementType:"div"})}},Oa={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},sy=U({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bh6795r:"fqerorx",qhf8xq:"f10pi13n",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",fsow6f:"f17mccla",Bcvre1j:"fyl8oag",Br0sdwz:"f16vkdww",Bn78ew0:"fhsnbul",li1rpt:"f1gw3sf2",ap17g6:"f1ly5f7u",B771hl4:"f1s3tz6t"},childless:{susq4k:"f1kyqvp9",Bicfajf:["fzynn9s","f1z0ukd1"],jwcpgy:["fekrn8e","ftdg338"],B4rk6o:"fesgyo"},start:{Bsft5z2:"f13zj6fq"},center:{Ftih45:"f1wl9k8s",Bsft5z2:"f13zj6fq"},end:{Ftih45:"f1wl9k8s"},brand:{sj55zd:"f16muhyy",Bq4z7u6:"fcbuu2a",Bk5zm6e:["f1wdw2dr","f1ttio3w"],Bqjgrrk:"f1582fpk",Bm6vgfq:["f1ttio3w","f1wdw2dr"],B0n5ga8:"f1ahrvm8",s924m2:["f1cd3wbc","f17hbk9y"],B1q35kw:"fvrapl0",Gp14am:["f17hbk9y","f1cd3wbc"]},default:{sj55zd:"fkfq4zb",Bq4z7u6:"f1vccso1",Bk5zm6e:["f1geml7w","fjml6kk"],Bqjgrrk:"f1r7kh1m",Bm6vgfq:["fjml6kk","f1geml7w"],B0n5ga8:"f16j7guv",s924m2:["fx01ahm","fj1a37q"],B1q35kw:"fl8d8yv",Gp14am:["fj1a37q","fx01ahm"]},subtle:{sj55zd:"fkfq4zb",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"fkfq4zb",Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"],B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fqerorx{flex-grow:1;}",".f10pi13n{position:relative;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mccla{text-align:center;}",".fyl8oag::before{box-sizing:border-box;}",".f16vkdww::before{display:flex;}",".fhsnbul::before{flex-grow:1;}",".f1gw3sf2::after{box-sizing:border-box;}",".f1ly5f7u::after{display:flex;}",".f1s3tz6t::after{flex-grow:1;}",".f1kyqvp9::before{margin-bottom:0;}",".fzynn9s::before{margin-right:0;}",".f1z0ukd1::before{margin-left:0;}",".fekrn8e::after{margin-left:0;}",".ftdg338::after{margin-right:0;}",".fesgyo::after{margin-top:0;}",'.f13zj6fq::after{content:"";}','.f1wl9k8s::before{content:"";}',".f16muhyy{color:var(--colorBrandForeground1);}",".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}",".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}",".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}",".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}",".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}",".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}",".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}",".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}",".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}",".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}",".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}",".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}",".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}",".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}",".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}",".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}",".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}",".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}",".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}",".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}",".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}",".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]}),ay=U({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{Bicfajf:["f1ojjlep","fk1kexq"],Bsft5z2:"f13zj6fq",jwcpgy:["f12w1bnb","f1558wlj"],Iy66sp:"f1ayce8x"}},{d:[".fly5x3f{width:100%;}",".f163fonl::before{border-top-style:solid;}",".f51yk4v::before{border-top-width:var(--strokeWidthThin);}",".f13rof3u::before{min-width:8px;}",".f8rth92::after{border-top-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f1iyka9k::after{min-width:8px;}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",'.f1wl9k8s::before{content:"";}',".f1ojjlep::before{margin-right:12px;}",".fk1kexq::before{margin-left:12px;}",".f1he2m4d::before{max-width:8px;}",".f12w1bnb::after{margin-left:12px;}",".f1558wlj::after{margin-right:12px;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),ly=U({base:{Beiy3e4:"f1vx9l62",sshi5w:"f16gbxbe",m598lv:["f1yq6w5o","f1jpmc5p"],B4f6apu:["f9sc749","f1x8pvcy"],zkzzav:"fhkwbjy",Barhvk9:["flthirb","ftkbnf5"],Ihftqj:["f13hvwk3","f1en4csx"],Bde111x:"f19onpk6"},inset:{B6of3ja:"f1xdg43u",jrapky:"f1jlhsmd"},withChildren:{sshi5w:"f1tjaq3g"},start:{Ftih45:"f1wl9k8s",susq4k:"fg2pwug",Bbdr6tz:"fkjtzyi",B4rk6o:"f8vk40g"},center:{susq4k:"fg2pwug",B4rk6o:"f8vk40g"},end:{susq4k:"fg2pwug",Bsft5z2:"f13zj6fq",B4rk6o:"f8vk40g",gn64ia:"fqg5mu5"}},{d:[".f1vx9l62{flex-direction:column;}",".f16gbxbe{min-height:20px;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f9sc749::before{border-right-width:var(--strokeWidthThin);}",".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}",".fhkwbjy::before{min-height:8px;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f19onpk6::after{min-height:8px;}",".f1xdg43u{margin-top:12px;}",".f1jlhsmd{margin-bottom:12px;}",".f1tjaq3g{min-height:84px;}",'.f1wl9k8s::before{content:"";}',".fg2pwug::before{margin-bottom:12px;}",".fkjtzyi::before{max-height:8px;}",".f8vk40g::after{margin-top:12px;}",'.f13zj6fq::after{content:"";}',".fqg5mu5::after{max-height:8px;}"]}),cy=e=>{const t=sy(),r=ay(),o=ly(),{alignContent:n,appearance:i,inset:s,vertical:a}=e;return e.root.className=A(Oa.root,t.base,t[n],i&&t[i],!a&&r.base,!a&&s&&r.inset,!a&&r[n],a&&o.base,a&&s&&o.inset,a&&o[n],a&&e.root.children!==void 0&&o.withChildren,e.root.children===void 0&&t.childless,e.root.className),e.wrapper&&(e.wrapper.className=A(Oa.wrapper,e.wrapper.className)),e},Qc=y.forwardRef((e,t)=>{const r=iy(e,t);return cy(r),Re("useDividerStyles_unstable")(r),ny(r)});Qc.displayName="Divider";const uy=(e,t)=>{e=cn(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=pv();var o;const{size:n="medium",appearance:i=(o=r.inputDefaultAppearance)!==null&&o!==void 0?o:"outline",onChange:s}=e;process.env.NODE_ENV!=="production"&&(i==="filled-darker-shadow"||i==="filled-lighter-shadow")&&console.error("The 'filled-darker-shadow' and 'filled-lighter-shadow' appearances are deprecated and will be removed in the future.");const[a,l]=yt({state:e.value,defaultState:e.defaultValue,initialState:""}),u=Yo({props:e,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),c={size:n,appearance:i,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:ne(e.input,{defaultProps:{type:"text",ref:t,...u.primary},elementType:"input"}),contentAfter:Te(e.contentAfter,{elementType:"span"}),contentBefore:Te(e.contentBefore,{elementType:"span"}),root:ne(e.root,{defaultProps:u.root,elementType:"span"})};return c.input.value=a,c.input.onChange=X(f=>{const g=f.target.value;s?.(f,{value:g}),l(g)}),c},dy=e=>(pe(e),gt(e.root,{children:[e.contentBefore&&V(e.contentBefore,{}),V(e.input,{}),e.contentAfter&&V(e.contentAfter,{})]})),go={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},fy=ze("r1jtohuq","rl1z2p5",{r:[".r1jtohuq{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1jtohuq::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1jtohuq:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1jtohuq:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1jtohuq:focus-within{outline:2px solid transparent;}",".rl1z2p5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.rl1z2p5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".rl1z2p5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rl1z2p5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rl1z2p5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1jtohuq::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1jtohuq:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),gy=U({small:{sshi5w:"f1pha7fy",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"],Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",uwmqm3:["f1uw59to","fw5db7e"],z189sj:["fw5db7e","f1uw59to"],Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:"f1rjii52",Belr9w4:"f1r7g2jn"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",B3778ie:["f1nf3wye","feulmo5"],d9w3h3:["feulmo5","f1nf3wye"],Bl18szs:["f18vqdqu","f53nyzz"],B4j8arr:["f53nyzz","f18vqdqu"]},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"}},{d:[".f1pha7fy{min-height:24px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1r7g2jn{row-gap:var(--spacingHorizontalSNudge);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".f1nf3wye::after{border-bottom-right-radius:0;}",".feulmo5::after{border-bottom-left-radius:0;}",".f18vqdqu::after{border-top-right-radius:0;}",".f53nyzz::after{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),py=ze("rvp2gzh",null,[".rvp2gzh{box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalXXS);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".rvp2gzh::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),hy=U({large:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),vy=ze("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),my=U({disabled:{sj55zd:"f1s2aq7o"},small:{kwki1k:"f3u2cy0"},medium:{},large:{kwki1k:"fa420co"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3u2cy0>svg{font-size:16px;}",".fa420co>svg{font-size:24px;}"]}),by=e=>{const{size:t,appearance:r}=e,o=e.input.disabled,n=`${e.input["aria-invalid"]}`=="true",i=r.startsWith("filled"),s=gy(),a=hy(),l=my();e.root.className=A(go.root,fy(),s[t],s[r],!o&&r==="outline"&&s.outlineInteractive,!o&&r==="underline"&&s.underlineInteractive,!o&&i&&s.filledInteractive,i&&s.filled,!o&&n&&s.invalid,o&&s.disabled,e.root.className),e.input.className=A(go.input,py(),t==="large"&&a.large,o&&a.disabled,e.input.className);const u=[vy(),o&&l.disabled,l[t]];return e.contentBefore&&(e.contentBefore.className=A(go.contentBefore,...u,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=A(go.contentAfter,...u,e.contentAfter.className)),e},eo=y.forwardRef((e,t)=>{const r=uy(e,t);return by(r),Re("useInputStyles_unstable")(r),dy(r)});eo.displayName="Input";const as=Qr(void 0),yy={open:!1,setOpen:()=>!1,checkedValues:{},onCheckedValueChange:()=>null,isSubmenu:!1,triggerRef:{current:null},menuPopoverRef:{current:null},mountNode:null,triggerId:"",openOnContext:!1,openOnHover:!1,hasIcons:!1,hasCheckmarks:!1,inline:!1,persistOnItemClick:!1},wy=as.Provider,fe=e=>Ne(as,(t=yy)=>e(t)),Jc=y.createContext(void 0),xy=!1,ky=Jc.Provider,Sy=()=>{var e;return(e=y.useContext(Jc))!==null&&e!==void 0?e:xy},eu=y.createContext(void 0),_y={headerId:""},Cy=eu.Provider,By=()=>{var e;return(e=y.useContext(eu))!==null&&e!==void 0?e:_y},ls=Qr(void 0),Ry={checkedValues:{},setFocusByFirstCharacter:()=>null,toggleCheckbox:()=>null,selectRadio:()=>null,hasIcons:!1,hasCheckmarks:!1},Ey=ls.Provider,ki=e=>Ne(ls,(t=Ry)=>e(t)),Kr="fuimenuenter",Py=e=>{const{refs:t,callback:r,element:o,disabled:n}=e,i=X(s=>{const a=t[0],l=s.target;var u;!Hr((u=a.current)!==null&&u!==void 0?u:null,l)&&!n&&r(s)});y.useEffect(()=>{if(o!=null)return n||o.addEventListener(Kr,i),()=>{o.removeEventListener(Kr,i)}},[i,o,n])},Ny=(e,t)=>{e.dispatchEvent(new CustomEvent(Kr,{bubbles:!0,detail:{nativeEvent:t}}))};function cs(){const e=fe(r=>r.isSubmenu),t=tn(ls);return e||t}const Ty=["after","after-bottom","before-top","before","before-bottom","above"],Dy=e=>{const t=cs(),{hoverDelay:r=500,inline:o=!1,hasCheckmarks:n=!1,hasIcons:i=!1,closeOnScroll:s=!1,openOnContext:a=!1,persistOnItemClick:l=!1,openOnHover:u=t,defaultCheckedValues:c,mountNode:f=null}=e,g=xt("menu"),[d,p]=Lc(),h={position:t?"after":"below",align:t?"top":"start",target:e.openOnContext?d:void 0,fallbackPositions:t?Ty:void 0,...an(e.positioning)},b=y.Children.toArray(e.children);process.env.NODE_ENV!=="production"&&(b.length===0&&console.warn("Menu must contain at least one child"),b.length>2&&console.warn("Menu must contain at most two children"));let v,m;b.length===2?(v=b[0],m=b[1]):b.length===1&&(m=b[0]);const{targetRef:w,containerRef:x}=os(h),[k,_]=Iy({hoverDelay:r,isSubmenu:t,setContextTarget:p,closeOnScroll:s,menuPopoverRef:x,triggerRef:w,open:e.open,defaultOpen:e.defaultOpen,onOpenChange:e.onOpenChange,openOnContext:a}),[S,E]=Fy({checkedValues:e.checkedValues,defaultCheckedValues:c,onCheckedValueChange:e.onCheckedValueChange});return{inline:o,hoverDelay:r,triggerId:g,isSubmenu:t,openOnHover:u,contextTarget:d,setContextTarget:p,hasCheckmarks:n,hasIcons:i,closeOnScroll:s,menuTrigger:v,menuPopover:m,mountNode:f,triggerRef:w,menuPopoverRef:x,components:{},openOnContext:a,open:k,setOpen:_,checkedValues:S,onCheckedValueChange:E,persistOnItemClick:l}},Fy=e=>{const[t,r]=yt({state:e.checkedValues,defaultState:e.defaultCheckedValues,initialState:{}}),o=X((n,{name:i,checkedItems:s})=>{var a;(a=e.onCheckedValueChange)===null||a===void 0||a.call(e,n,{name:i,checkedItems:s}),r(l=>({...l,[i]:s}))});return[t,o]},Iy=e=>{const{targetDocument:t}=Xe(),r=fe(d=>d.setOpen),o=X((d,p)=>{var h;return(h=e.onOpenChange)===null||h===void 0?void 0:h.call(e,d,p)}),n=y.useRef(0),i=y.useRef(!1),[s,a]=yt({state:e.open,defaultState:e.defaultOpen,initialState:!1}),l=X((d,p)=>{const h=d instanceof CustomEvent&&d.type===Kr?d.detail.nativeEvent:d;o?.(h,{...p}),p.open&&d.type==="contextmenu"&&e.setContextTarget(d),p.open||e.setContextTarget(void 0),p.bubble&&r(d,{...p}),a(p.open)}),u=X((d,p)=>{if(clearTimeout(n.current),!(d instanceof Event)&&d.persist&&d.persist(),d.type==="mouseleave"||d.type==="mouseenter"||d.type==="mousemove"||d.type===Kr){var h;!((h=e.triggerRef.current)===null||h===void 0)&&h.contains(d.target)&&(i.current=d.type==="mouseenter"||d.type==="mousemove"),n.current=setTimeout(()=>l(d,p),e.hoverDelay)}else l(d,p)});Vl({contains:Hr,disabled:!s,element:t,refs:[e.menuPopoverRef,!e.openOnContext&&e.triggerRef].filter(Boolean),callback:d=>u(d,{open:!1,type:"clickOutside",event:d})});const c=e.openOnContext||e.closeOnScroll;Hl({contains:Hr,element:t,callback:d=>u(d,{open:!1,type:"scrollOutside",event:d}),refs:[e.menuPopoverRef,!e.openOnContext&&e.triggerRef].filter(Boolean),disabled:!s||!c}),Py({element:t,callback:d=>{i.current||u(d,{open:!1,type:"menuMouseEnter",event:d})},disabled:!s,refs:[e.menuPopoverRef]}),y.useEffect(()=>()=>{clearTimeout(n.current)},[]);const{findFirstFocusable:f}=en(),g=y.useCallback(()=>{const d=f(e.menuPopoverRef.current);d?.focus()},[f,e.menuPopoverRef]);return y.useEffect(()=>{s&&g()},[s,g]),[s,u]};function Oy(e){const{checkedValues:t,hasCheckmarks:r,hasIcons:o,inline:n,isSubmenu:i,menuPopoverRef:s,mountNode:a,onCheckedValueChange:l,open:u,openOnContext:c,openOnHover:f,persistOnItemClick:g,setOpen:d,triggerId:p,triggerRef:h}=e;return{menu:{checkedValues:t,hasCheckmarks:r,hasIcons:o,inline:n,isSubmenu:i,menuPopoverRef:s,mountNode:a,onCheckedValueChange:l,open:u,openOnContext:c,openOnHover:f,persistOnItemClick:g,setOpen:d,triggerId:p,triggerRef:h}}}const zy=(e,t)=>y.createElement(wy,{value:t.menu},e.menuTrigger,e.open&&e.menuPopover),us=e=>{const t=Dy(e),r=Oy(t);return zy(t,r)};us.displayName="Menu";const jy=(e,t)=>({components:{root:"div"},root:ne(je("div",{role:"presentation","aria-hidden":!0,...e,ref:t}),{elementType:"div"})}),My={root:"fui-MenuDivider"},Ay=U({root:{B6of3ja:"fvjh0tl",t21cq0:["f1rnx978","f1q7jvqi"],jrapky:"fd1gkq",Frg6f3:["f1q7jvqi","f1rnx978"],a9b677:"f14z66ap",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"frpde29"}},{d:[".fvjh0tl{margin-top:4px;}",".f1rnx978{margin-right:-5px;}",".f1q7jvqi{margin-left:-5px;}",".fd1gkq{margin-bottom:4px;}",".f14z66ap{width:auto;}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fg706s2{border-bottom-style:solid;}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}"]}),qy=e=>{const t=Ay();return e.root.className=A(My.root,t.root,e.root.className),e},Ly=e=>(pe(e),V(e.root,{})),Co=y.forwardRef((e,t)=>{const r=jy(e,t);return qy(r),Re("useMenuDividerStyles_unstable")(r),Ly(r)});Co.displayName="MenuDivider";function Vy(e,t){const r=xt("menu-group");return{components:{root:"div"},root:ne(je("div",{ref:t,"aria-labelledby":r,role:"group",...e}),{elementType:"div"}),headerId:r}}const Hy=(e,t)=>(pe(e),V(Cy,{value:t.menuGroup,children:V(e.root,{})}));function $y(e){const{headerId:t}=e;return{menuGroup:y.useMemo(()=>({headerId:t}),[t])}}const Gy={root:"fui-MenuGroup"},Wy=e=>(e.root.className=A(Gy.root,e.root.className),e),jr=y.forwardRef((e,t)=>{const r=Vy(e,t),o=$y(r);return Wy(r),Re("useMenuGroupStyles_unstable")(r),Hy(r,o)});jr.displayName="MenuGroup";function Uy(e,t){const{headerId:r}=By();return{components:{root:"div"},root:ne(je("div",{ref:t,id:r,...e}),{elementType:"div"})}}const Ky={root:"fui-MenuGroupHeader"},Xy=U({root:{Be2twd7:"fy9rknc",sj55zd:"f11d4kpn",uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"],Bhrd7zp:"fl43uef",Bqenvij:"f1d2rq10",mc9l5x:"f22iagw",Bt984gj:"f122n59"}},{d:[".fy9rknc{font-size:var(--fontSizeBase200);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f1d2rq10{height:32px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}"]}),Zy=e=>{const t=Xy();return e.root.className=A(Ky.root,t.root,e.root.className),e},Yy=e=>(pe(e),V(e.root,{})),tr=y.forwardRef((e,t)=>{const r=Uy(e,t);return Zy(r),Re("useMenuGroupHeaderStyles_unstable")(r),Yy(r)});tr.displayName="MenuGroupHeader";const Qy=(e,t)=>{const r=ki(n=>n.setFocusByFirstCharacter),{onKeyDown:o}=e.root;return e.root.onKeyDown=n=>{var i;o?.(n),!(((i=n.key)===null||i===void 0?void 0:i.length)>1)&&t.current&&r?.(n,t.current)},e},Jy=$e(tc,rc),ew=$e(Rv,Ev),tw=(e,t)=>{const r=Sy(),o=fe(h=>h.persistOnItemClick),{as:n="div",disabled:i=!1,hasSubmenu:s=r,persistOnClick:a=o}=e,l=ki(h=>h.hasIcons),u=ki(h=>h.hasCheckmarks),c=fe(h=>h.setOpen),{dir:f}=Xe(),g=y.useRef(null),d=y.useRef(!1),p={hasSubmenu:s,disabled:i,persistOnClick:a,components:{root:"div",icon:"span",checkmark:"span",submenuIndicator:"span",content:"span",secondaryContent:"span"},root:ne(je(n,Gr(n,{role:"menuitem",...e,disabled:!1,disabledFocusable:i,ref:He(t,g),onKeyDown:X(h=>{var b;(b=e.onKeyDown)===null||b===void 0||b.call(e,h),!h.isDefaultPrevented()&&(h.key===Pt||h.key===mr)&&(d.current=!0)}),onMouseEnter:X(h=>{var b,v;(b=g.current)===null||b===void 0||b.focus(),(v=e.onMouseEnter)===null||v===void 0||v.call(e,h)}),onClick:X(h=>{var b;!s&&!a&&(c(h,{open:!1,keyboard:d.current,bubble:!0,type:"menuItemClick",event:h}),d.current=!1),(b=e.onClick)===null||b===void 0||b.call(e,h)})})),{elementType:"div"}),icon:Te(e.icon,{renderByDefault:l,elementType:"span"}),checkmark:Te(e.checkmark,{renderByDefault:u,elementType:"span"}),submenuIndicator:Te(e.submenuIndicator,{renderByDefault:s,defaultProps:{children:f==="ltr"?y.createElement(Jy,null):y.createElement(ew,null)},elementType:"span"}),content:Te(e.content,{renderByDefault:!!e.children,defaultProps:{children:e.children},elementType:"span"}),secondaryContent:Te(e.secondaryContent,{elementType:"span"})};return Qy(p,g),p},rw=e=>(pe(e),gt(e.root,{children:[e.checkmark&&V(e.checkmark,{}),e.icon&&V(e.icon,{}),e.content&&V(e.content,{}),e.secondaryContent&&V(e.secondaryContent,{}),e.submenuIndicator&&V(e.submenuIndicator,{})]})),ow=U({root:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",Bcdw1i0:"fd7fpy0"},rootChecked:{Bcdw1i0:"f1022m68"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".fd7fpy0{visibility:hidden;}",".f1022m68{visibility:visible;}"]}),nw=e=>{const t=ow();e.checkmark&&(e.checkmark.className=A(t.root,e.checked&&t.rootChecked,e.checkmark.className))},pr={root:"fui-MenuItem",icon:"fui-MenuItem__icon",checkmark:"fui-MenuItem__checkmark",submenuIndicator:"fui-MenuItem__submenuIndicator",content:"fui-MenuItem__content",secondaryContent:"fui-MenuItem__secondaryContent"},iw=ze("rx0oqon","r25f100",[".rx0oqon{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-right:var(--spacingVerticalSNudge);padding-left:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}",".rx0oqon:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rx0oqon:hover .fui-Icon-filled{display:inline;}",".rx0oqon:hover .fui-Icon-regular{display:none;}",".rx0oqon:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rx0oqon:focus{outline-style:none;}",".rx0oqon:focus-visible{outline-style:none;}",".rx0oqon[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rx0oqon[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r25f100{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-left:var(--spacingVerticalSNudge);padding-right:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}",".r25f100:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".r25f100:hover .fui-Icon-filled{display:inline;}",".r25f100:hover .fui-Icon-regular{display:none;}",".r25f100:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".r25f100:focus{outline-style:none;}",".r25f100:focus-visible{outline-style:none;}",".r25f100[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r25f100[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}']),sw=ze("r1ls86vo","rpbc5dr",[".r1ls86vo{padding-left:2px;padding-right:2px;background-color:transparent;flex-grow:1;}",".rpbc5dr{padding-right:2px;padding-left:2px;background-color:transparent;flex-grow:1;}"]),aw=ze("r79npjw","r1j24c7y",[".r79npjw{padding-left:2px;padding-right:2px;color:var(--colorNeutralForeground3);}",".r79npjw:hover{color:var(--colorNeutralForeground3Hover);}",".r79npjw:focus{color:var(--colorNeutralForeground3Hover);}",".r1j24c7y{padding-right:2px;padding-left:2px;color:var(--colorNeutralForeground3);}",".r1j24c7y:hover{color:var(--colorNeutralForeground3Hover);}",".r1j24c7y:focus{color:var(--colorNeutralForeground3Hover);}"]),lw=ze("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),cw=ze("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),uw=U({checkmark:{B6of3ja:"fmnzpld"},splitItemMain:{Bh6795r:"fqerorx"},splitItemTrigger:{Btl43ni:["f1ozlkrg","f10ostut"],Beyfa6y:["f1deotkl","f1krrbdw"],uwmqm3:["f1cnd47f","fhxju0i"],Ftih45:"f1wl9k8s",Ccq8qp:"f1yn80uh",Baz25je:"f68mna0",cmx5o7:"f1p5zmk"},disabled:{sj55zd:"f1s2aq7o",Bi91k9c:"fvgxktp",Jwef8y:"f1ijtazh",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bg7n49j:"f1q1x1ba",t0hwav:"ft33916",Bbusuzp:"f1dcs8yz",ze5xyy:"f1kc2mi9",Bctn1xl:"fk56vqo",Bh6z0a4:"f1ikwg0d"}},{d:[".fmnzpld{margin-top:2px;}",".fqerorx{flex-grow:1;}",".f1ozlkrg{border-top-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",'.f1wl9k8s::before{content:"";}',".f1yn80uh::before{width:var(--strokeWidthThin);}",".f68mna0::before{height:24px;}",".f1p5zmk::before{background-color:var(--colorNeutralStroke1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],h:[".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1ijtazh:hover{background-color:var(--colorNeutralBackground1);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1q1x1ba:hover .fui-MenuItem__icon{color:var(--colorNeutralForegroundDisabled);}"],f:[".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fk56vqo:hover .fui-MenuItem__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ikwg0d:focus{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),dw=e=>{const t=uw(),r=iw(),o=sw(),n=aw(),i=lw(),s=cw();e.root.className=A(pr.root,r,e.disabled&&t.disabled,e.root.className),e.content&&(e.content.className=A(pr.content,o,e.content.className)),e.checkmark&&(e.checkmark.className=A(pr.checkmark,t.checkmark,e.checkmark.className)),e.secondaryContent&&(e.secondaryContent.className=A(pr.secondaryContent,!e.disabled&&n,e.secondaryContent.className)),e.icon&&(e.icon.className=A(pr.icon,i,e.icon.className)),e.submenuIndicator&&(e.submenuIndicator.className=A(pr.submenuIndicator,s,e.submenuIndicator.className)),nw(e)},lt=y.forwardRef((e,t)=>{const r=tw(e,t);return dw(r),Re("useMenuItemStyles_unstable")(r),rw(r)});lt.displayName="MenuItem";const fw=(e,t)=>{const{findAllFocusable:r}=en(),o=gw(),n=tn(as),i=cb({circular:!0,ignoreDefaultKeydown:{Tab:n}});pw(e,o,n)&&console.warn("You are using both MenuList and Menu props, we recommend you to use Menu props when available");const s=y.useRef(null),a=y.useCallback((h,b)=>{const v=["menuitem","menuitemcheckbox","menuitemradio"];if(!s.current)return;const m=r(s.current,E=>E.hasAttribute("role")&&v.indexOf(E.getAttribute("role"))!==-1);let w=m.indexOf(b)+1;w===m.length&&(w=0);const x=m.map(E=>{var F;return(F=E.textContent)===null||F===void 0?void 0:F.charAt(0).toLowerCase()}),k=h.key.toLowerCase(),_=(E,F)=>{for(let O=E;O<x.length;O++)if(k===x[O])return O;return-1};let S=_(w);S===-1&&(S=_(0)),S>-1&&m[S].focus()},[r]);var l;const[u,c]=yt({state:(l=e.checkedValues)!==null&&l!==void 0?l:n?o.checkedValues:void 0,defaultState:e.defaultCheckedValues,initialState:{}});var f;const g=(f=e.onCheckedValueChange)!==null&&f!==void 0?f:n?o.onCheckedValueChange:void 0,d=X((h,b,v,m)=>{const x=[...u?.[b]||[]];m?x.splice(x.indexOf(v),1):x.push(v),g?.(h,{name:b,checkedItems:x}),c(k=>({...k,[b]:x}))}),p=X((h,b,v)=>{const m=[v];c(w=>({...w,[b]:m})),g?.(h,{name:b,checkedItems:m})});return{components:{root:"div"},root:ne(je("div",{ref:He(t,s),role:"menu","aria-labelledby":o.triggerId,...i,...e}),{elementType:"div"}),hasIcons:o.hasIcons||!1,hasCheckmarks:o.hasCheckmarks||!1,checkedValues:u,hasMenuContext:n,setFocusByFirstCharacter:a,selectRadio:p,toggleCheckbox:d}},gw=()=>{const e=fe(i=>i.checkedValues),t=fe(i=>i.onCheckedValueChange),r=fe(i=>i.triggerId),o=fe(i=>i.hasIcons),n=fe(i=>i.hasCheckmarks);return{checkedValues:e,onCheckedValueChange:t,triggerId:r,hasIcons:o,hasCheckmarks:n}},pw=(e,t,r)=>{let o=!1;for(const n in t)e[n]&&(o=!0);return r&&o},hw=(e,t)=>(pe(e),V(Ey,{value:t.menuList,children:V(e.root,{})}));function vw(e){const{checkedValues:t,hasCheckmarks:r,hasIcons:o,selectRadio:n,setFocusByFirstCharacter:i,toggleCheckbox:s}=e;return{menuList:{checkedValues:t,hasCheckmarks:r,hasIcons:o,selectRadio:n,setFocusByFirstCharacter:i,toggleCheckbox:s}}}const mw={root:"fui-MenuList"},bw=U({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",i8kkvl:"f16mnhsx",Belr9w4:"fbi42co"},hasMenuContext:{Bqenvij:"f1l02sjl"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f16mnhsx{column-gap:2px;}",".fbi42co{row-gap:2px;}",".f1l02sjl{height:100%;}"]}),yw=e=>{const t=bw();return e.root.className=A(mw.root,t.root,e.hasMenuContext&&t.hasMenuContext,e.root.className),e},ds=y.forwardRef((e,t)=>{const r=fw(e,t),o=vw(r);return yw(r),Re("useMenuListStyles_unstable")(r),hw(r,o)});ds.displayName="MenuList";const ww=(e,t)=>{const r=fe(x=>x.menuPopoverRef),o=fe(x=>x.setOpen),n=fe(x=>x.open),i=fe(x=>x.openOnHover),s=fe(x=>x.triggerRef),a=cs(),l=y.useRef(!0),u=y.useRef(0),c=vb(),{dir:f}=Xe(),g=f==="ltr"?Ec:Pc,d=y.useCallback(x=>{x&&x.addEventListener("mouseover",k=>{l.current&&(l.current=!1,Ny(r.current,k),u.current=setTimeout(()=>l.current=!0,250))})},[r,u]);y.useEffect(()=>{},[]);var p;const h=(p=fe(x=>x.inline))!==null&&p!==void 0?p:!1,b=fe(x=>x.mountNode),v=ne(je("div",{role:"presentation",...c,...e,ref:He(t,r,d)}),{elementType:"div"}),{onMouseEnter:m,onKeyDown:w}=v;return v.onMouseEnter=X(x=>{i&&o(x,{open:!0,keyboard:!1,type:"menuPopoverMouseEnter",event:x}),m?.(x)}),v.onKeyDown=X(x=>{const k=x.key;if(k===rn||a&&k===g){var _;n&&(!((_=r.current)===null||_===void 0)&&_.contains(x.target))&&!x.isDefaultPrevented()&&(o(x,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:x}),x.preventDefault())}if(k===Rc&&(o(x,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:x}),!a)){var S;(S=s.current)===null||S===void 0||S.focus()}w?.(x)}),{inline:h,mountNode:b,components:{root:"div"},root:v}},xw={root:"fui-MenuPopover"},kw=U({root:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bf4jedk:"fl8fusi",B2u0y6b:"f1kaai3v",B68tc82:"f1p9o1ba",a9b677:"f1ahpp82",E5pizo:"f1hg901r",z8tnut:"f10ra9hq",z189sj:["f8wuabp","fycuoez"],Byoj8tv:"f1y2xyjm",uwmqm3:["fycuoez","f8wuabp"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",ex8oj8:"fmm77a6",Bksk4gw:"f12t24nk",Bc5phfd:"f1babd7",cbiifc:"f1jgo889",fyiq5g:"f1ij1pew",Bqc19t1:"f1gu8pa9",Eet2gb:"fhfnl4n",Bhl7k63:"fk8tkmz",Bv12yb3:"f3n0535",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"}},{d:[".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".fl8fusi{min-width:138px;}",".f1kaai3v{max-width:300px;}",".f1p9o1ba{overflow-x:hidden;}",".f1ahpp82{width:max-content;}",".f1hg901r{box-shadow:var(--shadow16);}",".f10ra9hq{padding-top:4px;}",".f8wuabp{padding-right:4px;}",".fycuoez{padding-left:4px;}",".f1y2xyjm{padding-bottom:4px;}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".fmm77a6{--slide-distance-x:0px;}",".f12t24nk{--slide-distance-y:10px;}",".f1babd7[data-popper-placement^=right]{--slide-distance-x:-10px;}",".f1jgo889[data-popper-placement^=right]{--slide-distance-y:0px;}",".f1ij1pew[data-popper-placement^=bottom]{--slide-distance-x:0px;}",".f1gu8pa9[data-popper-placement^=bottom]{--slide-distance-y:-10px;}",".fhfnl4n[data-popper-placement^=left]{--slide-distance-x:10px;}",".fk8tkmz[data-popper-placement^=left]{--slide-distance-y:0px;}",".f3n0535{animation-name:f5j8bii,fld5wjx;}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes fld5wjx{from{transform:translate(var(--slide-distance-x), var(--slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),Sw=e=>{const t=kw();return e.root.className=A(xw.root,t.root,e.root.className),e},_w=e=>(pe(e),e.inline?V(e.root,{}):V(ln,{mountNode:e.mountNode,children:V(e.root,{})})),fs=y.forwardRef((e,t)=>{const r=ww(e,t);return Sw(r),Re("useMenuPopoverStyles_unstable")(r),_w(r)});fs.displayName="MenuPopover";const Cw=e=>{const{children:t,disableButtonEnhancement:r=!1}=e,o=fe(B=>B.triggerRef),n=fe(B=>B.menuPopoverRef),i=fe(B=>B.setOpen),s=fe(B=>B.open),a=fe(B=>B.triggerId),l=fe(B=>B.openOnHover),u=fe(B=>B.openOnContext),c=hb(),f=cs(),{findFirstFocusable:g}=en(),d=y.useCallback(()=>{const B=g(n.current);B?.focus()},[g,n]),p=y.useRef(!1),h=y.useRef(!1),{dir:b}=Xe(),v=b==="ltr"?Pc:Ec,m=Li(t),w=B=>{hr(B)||B.isDefaultPrevented()||u&&(B.preventDefault(),i(B,{open:!0,keyboard:!1,type:"menuTriggerContextMenu",event:B}))},x=B=>{hr(B)||u||(i(B,{open:!s,keyboard:p.current,type:"menuTriggerClick",event:B}),p.current=!1)},k=B=>{if(hr(B))return;const R=B.key;!u&&(f&&R===v||!f&&R===hi)&&i(B,{open:!0,keyboard:!0,type:"menuTriggerKeyDown",event:B}),R===rn&&!f&&i(B,{open:!1,keyboard:!0,type:"menuTriggerKeyDown",event:B}),s&&R===v&&f&&d()},_=B=>{hr(B)||l&&h.current&&i(B,{open:!0,keyboard:!1,type:"menuTriggerMouseEnter",event:B})},S=B=>{hr(B)||l&&!h.current&&(i(B,{open:!0,keyboard:!1,type:"menuTriggerMouseMove",event:B}),h.current=!0)},E=B=>{hr(B)||l&&i(B,{open:!1,keyboard:!1,type:"menuTriggerMouseLeave",event:B})},F={id:a,...m?.props,ref:He(o,m?.ref),...c,onMouseEnter:X(de(m?.props.onMouseEnter,_)),onMouseLeave:X(de(m?.props.onMouseLeave,E)),onContextMenu:X(de(m?.props.onContextMenu,w)),onMouseMove:X(de(m?.props.onMouseMove,S))},O={"aria-haspopup":"menu","aria-expanded":!s&&!f?void 0:s,...F,onClick:X(de(m?.props.onClick,x)),onKeyDown:X(de(m?.props.onKeyDown,k))},T=Gr(m?.type==="button"||m?.type==="a"?m.type:"div",O);return{isSubmenu:f,children:Gl(t,u?F:r?O:T)}},hr=e=>{const t=r=>r.hasAttribute("disabled")||r.hasAttribute("aria-disabled")&&r.getAttribute("aria-disabled")==="true";return ar(e.target)&&t(e.target)?!0:ar(e.currentTarget)&&t(e.currentTarget)},Bw=e=>y.createElement(ky,{value:e.isSubmenu},e.children),un=e=>{const t=Cw(e);return Bw(t)};un.displayName="MenuTrigger";un.isFluentTriggerComponent=!0;const gs=y.createContext(void 0),Rw={};gs.Provider;const Ew=()=>y.useContext(gs)||Rw,Pw=(e,t)=>(pe(e),V(gs.Provider,{value:t.radioGroup,children:V(e.root,{})})),Nw=(e,t)=>{e=cn(e);const r=xt("radiogroup-"),{name:o=r,value:n,defaultValue:i,disabled:s,layout:a="vertical",onChange:l,required:u}=e;return{layout:a,name:o,value:n,defaultValue:i,disabled:s,required:u,components:{root:"div"},root:{ref:t,role:"radiogroup",...ne(je("div",e,["onChange","name"]),{elementType:"div"}),onChange:X(c=>{l&&ar(c.target,{constructorName:"HTMLInputElement"})&&c.target.type==="radio"&&l(c,{value:c.target.value})})}}},Tw={root:"fui-RadioGroup"},Dw=U({root:{mc9l5x:"f22iagw",Bt984gj:"f6jr5hl"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f6jr5hl{align-items:flex-start;}",".f1vx9l62{flex-direction:column;}"]}),Fw=e=>{const t=Dw();e.root.className=A(Tw.root,t.root,e.layout==="vertical"&&t.vertical,e.root.className)},Iw=e=>{const{name:t,value:r,defaultValue:o,disabled:n,layout:i,required:s}=e,a=e.root["aria-describedby"];return{radioGroup:y.useMemo(()=>({name:t,value:r,defaultValue:o,disabled:n,layout:i,required:s,"aria-describedby":a}),[t,r,o,n,i,s,a])}},tu=y.forwardRef((e,t)=>{const r=Nw(e,t),o=Iw(r);return Fw(r),Re("useRadioGroupStyles_unstable")(r),Pw(r,o)});tu.displayName="RadioGroup";const Ow=e=>(pe(e),gt(e.root,{children:[V(e.input,{}),V(e.indicator,{}),e.label&&V(e.label,{})]})),zw=(e,t)=>{const r=Ew(),{name:o=r.name,checked:n=r.value!==void 0?r.value===e.value:void 0,defaultChecked:i=r.defaultValue!==void 0?r.defaultValue===e.value:void 0,labelPosition:s=r.layout==="horizontal-stacked"?"below":"after",disabled:a=r.disabled,required:l=r.required,"aria-describedby":u=r["aria-describedby"],onChange:c}=e,f=Yo({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),g=ne(e.root,{defaultProps:{ref:Cc(),...f.root},elementType:"span"}),d=ne(e.input,{defaultProps:{ref:t,type:"radio",id:xt("radio-",f.primary.id),name:o,checked:n,defaultChecked:i,disabled:a,required:l,"aria-describedby":u,...f.primary},elementType:"input"});d.onChange=de(d.onChange,b=>c?.(b,{value:b.currentTarget.value}));const p=Te(e.label,{defaultProps:{htmlFor:d.id,disabled:d.disabled},elementType:Ur}),h=ne(e.indicator,{defaultProps:{"aria-hidden":!0,children:y.createElement(oc,null)},elementType:"div"});return{labelPosition:s,components:{root:"span",input:"input",label:Ur,indicator:"div"},root:g,input:d,label:p,indicator:h}},po={root:"fui-Radio",indicator:"fui-Radio__indicator",input:"fui-Radio__input",label:"fui-Radio__label"},jw=ze("r12l4eqc","r18esy0c",[".r12l4eqc{display:inline-flex;position:relative;}",".r12l4eqc:focus{outline-style:none;}",".r12l4eqc:focus-visible{outline-style:none;}",".r12l4eqc[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r12l4eqc[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r18esy0c{display:inline-flex;position:relative;}",".r18esy0c:focus{outline-style:none;}",".r18esy0c:focus-visible{outline-style:none;}",".r18esy0c[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r18esy0c[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}']),Mw=U({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),Aw=ze("r9gx1vl","r1uk1i2c",[".r9gx1vl{position:absolute;left:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".r9gx1vl:enabled{cursor:pointer;}",".r9gx1vl:enabled~.fui-Radio__label{cursor:pointer;}",".r9gx1vl:not(:checked)~.fui-Radio__indicator>*{opacity:0;}",".r9gx1vl:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".r9gx1vl:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".r9gx1vl:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".r9gx1vl:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".r9gx1vl:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r9gx1vl:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r9gx1vl:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r9gx1vl:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".r9gx1vl:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".r9gx1vl:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".r9gx1vl:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".r9gx1vl:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}",".r1uk1i2c{position:absolute;right:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".r1uk1i2c:enabled{cursor:pointer;}",".r1uk1i2c:enabled~.fui-Radio__label{cursor:pointer;}",".r1uk1i2c:not(:checked)~.fui-Radio__indicator>*{opacity:0;}",".r1uk1i2c:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".r1uk1i2c:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".r1uk1i2c:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".r1uk1i2c:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".r1uk1i2c:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r1uk1i2c:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r1uk1i2c:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r1uk1i2c:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".r1uk1i2c:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".r1uk1i2c:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".r1uk1i2c:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".r1uk1i2c:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}"]),qw=U({below:{a9b677:"fly5x3f",Bqenvij:"f1je6zif"}},{d:[".fly5x3f{width:100%;}",".f1je6zif{height:calc(16px + 2 * var(--spacingVerticalS));}"]}),Lw=ze("rid4516",null,[".rid4516{width:16px;height:16px;font-size:12px;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:var(--strokeWidthThin) solid;border-radius:var(--borderRadiusCircular);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;}"]),Vw=U({base:{qb2dma:"f7nlbp4",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},after:{uwmqm3:["fruq291","f7x41pl"],B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},below:{z8tnut:"f1ywm7hm",fsow6f:"f17mccla"}},{d:[".f7nlbp4{align-self:center;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f17mccla{text-align:center;}"]}),Hw=e=>{const{labelPosition:t}=e,r=jw(),o=Mw();e.root.className=A(po.root,r,t==="below"&&o.vertical,e.root.className);const n=Aw(),i=qw();e.input.className=A(po.input,n,t==="below"&&i.below,e.input.className);const s=Lw();e.indicator.className=A(po.indicator,s,e.indicator.className);const a=Vw();e.label&&(e.label.className=A(po.label,a.base,a[t],e.label.className))},Io=y.forwardRef((e,t)=>{const r=zw(e,t);return Hw(r),Re("useRadioStyles_unstable")(r),Ow(r)});Io.displayName="Radio";const ru=y.createContext(void 0),$w={},Gw=ru.Provider,ou=()=>{var e;return(e=y.useContext(ru))!==null&&e!==void 0?e:$w},Ww=(e,t)=>{const{animation:r,appearance:o}=ou(),{animation:n=r??"wave",appearance:i=o??"opaque"}=e,s=ne(je("div",{ref:t,role:"progressbar","aria-busy":!0,"aria-label":"Loading Content",...e}),{elementType:"div"});return{animation:n,appearance:i,components:{root:"div"},root:s}},Uw=(e,t)=>(pe(e),V(Gw,{value:t.skeletonGroup,children:V(e.root,{})})),Kw={root:"fui-Skeleton"},Xw=e=>(e.root.className=A(Kw.root,e.root.className),e),Zw=e=>{const{animation:t,appearance:r}=e;return{skeletonGroup:y.useMemo(()=>({animation:t,appearance:r}),[t,r])}},nu=y.forwardRef((e,t)=>{const r=Ww(e,t),o=Zw(r);return Xw(r),Uw(r,o)});nu.displayName="Skeleton";const Yw=(e,t)=>{const{animation:r,appearance:o}=ou(),{animation:n=r??"wave",appearance:i=o??"opaque",size:s=16,shape:a="rectangle"}=e,l=ne(je("div",{ref:t,...e}),{elementType:"div"});return{appearance:i,animation:n,size:s,shape:a,components:{root:"div"},root:l}},Qw=e=>(pe(e),V(e.root,{})),Jw={root:"fui-SkeletonItem"},ex=U({root:{qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bkjc3bi:"f1qx3921",B8a6bjv:"fj9j8l8",Bpptf2m:"f1b6djjb",Bgh53k4:"f1dsdmen",w3vfg9:"f1cpbl36",vin17d:"f1a27w2r",Ezkn3b:"f452v7t",Gqtpxc:"f4akx1t",B3vm3ge:"f18p5put"},wave:{Bv12yb3:"fj20wtk",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},waveRtl:{Bv12yb3:"f105t0nc",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},pulse:{Bv12yb3:"fnm2mpv",vin17d:"f1iuewzk",De3pzq:"f1gjxg63"},translucent:{Bcmaq0h:["fss7axp","f4160cw"]},translucentPulse:{De3pzq:"f162mh4z"}},{d:[".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1qx3921{background-size:300% 100%;}",".fj9j8l8{background-position-x:center;}",".f1b6djjb{background-position-y:center;}",".f1dsdmen{background-attachment:fixed;}",".f1cpbl36{animation-iteration-count:infinite;}",".f1a27w2r{animation-duration:3s;}",".f452v7t{animation-timing-function:linear;}",".fj20wtk{animation-name:fma800j;}",`.f101ziu5{background-image:linear-gradient(
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
var(--colorNeutralStencil1Alpha) 100%);}`,".f162mh4z{background-color:var(--colorNeutralStencil1Alpha);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f4akx1t{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f18p5put{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f9jxvrw{background-color:WindowText;}}",{m:"screen and (forced-colors: active)"}]],k:["@keyframes fma800j{from{background-position-x:300%;}to{background-position-x:0%;}}","@keyframes fj9wi3p{from{background-position-x:0%;}to{background-position-x:300%;}}","@keyframes f12o7gg6{0%{opacity:1;}50%{opacity:0.4;}100%{opacity:1;}}"]}),tx=U({8:{Bqenvij:"f1x82gua"},12:{Bqenvij:"fvblgha"},16:{Bqenvij:"fd461yt"},20:{Bqenvij:"fjamq6b"},24:{Bqenvij:"frvgh55"},28:{Bqenvij:"fxldao9"},32:{Bqenvij:"f1d2rq10"},36:{Bqenvij:"f8ljn23"},40:{Bqenvij:"fbhnoac"},48:{Bqenvij:"ff2sm71"},56:{Bqenvij:"fzki0ko"},64:{Bqenvij:"f16k9i2m"},72:{Bqenvij:"f1shusfg"},96:{Bqenvij:"fypu0ge"},120:{Bqenvij:"fjr5b71"},128:{Bqenvij:"fele2au"},root:{a9b677:"fly5x3f",Bbmb7ep:["fff7au0","f1bjk9e1"],Beyfa6y:["f1bjk9e1","fff7au0"],B7oj6ja:["fwsfkhu","f8wkphi"],Btl43ni:["f8wkphi","fwsfkhu"]}},{d:[".f1x82gua{height:8px;}",".fvblgha{height:12px;}",".fd461yt{height:16px;}",".fjamq6b{height:20px;}",".frvgh55{height:24px;}",".fxldao9{height:28px;}",".f1d2rq10{height:32px;}",".f8ljn23{height:36px;}",".fbhnoac{height:40px;}",".ff2sm71{height:48px;}",".fzki0ko{height:56px;}",".f16k9i2m{height:64px;}",".f1shusfg{height:72px;}",".fypu0ge{height:96px;}",".fjr5b71{height:120px;}",".fele2au{height:128px;}",".fly5x3f{width:100%;}",".fff7au0{border-bottom-right-radius:4px;}",".f1bjk9e1{border-bottom-left-radius:4px;}",".fwsfkhu{border-top-right-radius:4px;}",".f8wkphi{border-top-left-radius:4px;}"]}),rx=U({8:{a9b677:"f1o3cbw4",Bqenvij:"f1x82gua"},12:{a9b677:"frx94fk",Bqenvij:"fvblgha"},16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},24:{a9b677:"fq4mcun",Bqenvij:"frvgh55"},28:{a9b677:"f1w9dchk",Bqenvij:"fxldao9"},32:{a9b677:"f1szoe96",Bqenvij:"f1d2rq10"},36:{a9b677:"fpdz1er",Bqenvij:"f8ljn23"},40:{a9b677:"feqmc2u",Bqenvij:"fbhnoac"},48:{a9b677:"f124akge",Bqenvij:"ff2sm71"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".f1o3cbw4{width:8px;}",".f1x82gua{height:8px;}",".frx94fk{width:12px;}",".fvblgha{height:12px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fpdz1er{width:36px;}",".f8ljn23{height:36px;}",".feqmc2u{width:40px;}",".fbhnoac{height:40px;}",".f124akge{width:48px;}",".ff2sm71{height:48px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),ox=U({root:{Bbmb7ep:["fqgqgel","fchfifz"],Beyfa6y:["fchfifz","fqgqgel"],B7oj6ja:["fc7b1hi","f1dpx5h9"],Btl43ni:["f1dpx5h9","fc7b1hi"]}},{d:[".fqgqgel{border-bottom-right-radius:50%;}",".fchfifz{border-bottom-left-radius:50%;}",".fc7b1hi{border-top-right-radius:50%;}",".f1dpx5h9{border-top-left-radius:50%;}"]}),nx=e=>{const{animation:t,appearance:r,size:o,shape:n}=e,{dir:i}=Xe(),s=ex(),a=tx(),l=rx(),u=ox();return e.root.className=A(Jw.root,s.root,t==="wave"&&s.wave,t==="wave"&&i==="rtl"&&s.waveRtl,t==="pulse"&&s.pulse,r==="translucent"&&s.translucent,t==="pulse"&&r==="translucent"&&s.translucentPulse,n==="rectangle"&&a.root,n==="rectangle"&&a[o],n==="square"&&l[o],n==="circle"&&u.root,n==="circle"&&l[o],e.root.className),e},Si=y.forwardRef((e,t)=>{const r=Yw(e,t);return nx(r),Qw(r)});Si.displayName="SkeletonItem";const ix=(e,t)=>{const{wrap:r,truncate:o,block:n,italic:i,underline:s,strikethrough:a,size:l,font:u,weight:c,align:f}=e;return{align:f??"start",block:n??!1,font:u??"base",italic:i??!1,size:l??300,strikethrough:a??!1,truncate:o??!1,underline:s??!1,weight:c??"regular",wrap:r??!0,components:{root:"span"},root:ne(je("span",{ref:t,...e}),{elementType:"span"})}},sx=e=>(pe(e),V(e.root,{})),ax={root:"fui-Text"},lx=U({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),cx=e=>{const t=lx();return e.root.className=A(ax.root,t.root,e.wrap===!1&&t.nowrap,e.truncate&&t.truncate,e.block&&t.block,e.italic&&t.italic,e.underline&&t.underline,e.strikethrough&&t.strikethrough,e.underline&&e.strikethrough&&t.strikethroughUnderline,e.size===100&&t.base100,e.size===200&&t.base200,e.size===400&&t.base400,e.size===500&&t.base500,e.size===600&&t.base600,e.size===700&&t.hero700,e.size===800&&t.hero800,e.size===900&&t.hero900,e.size===1e3&&t.hero1000,e.font==="monospace"&&t.monospace,e.font==="numeric"&&t.numeric,e.weight==="medium"&&t.weightMedium,e.weight==="semibold"&&t.weightSemibold,e.weight==="bold"&&t.weightBold,e.align==="center"&&t.alignCenter,e.align==="end"&&t.alignEnd,e.align==="justify"&&t.alignJustify,e.root.className),e};function ux(e){const{useStyles:t,className:r,displayName:o}=e,n=y.forwardRef((i,s)=>{const a=t(),l=ix(i,s);return cx(l),l.root.className=A(r,l.root.className,a.root,i.className),sx(l)});return n.displayName=o,n}const dx={root:"fui-Subtitle2Stronger"},fx=U({root:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"flh3ekv",Bg96gwp:"faaz57k"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".faaz57k{line-height:var(--lineHeightBase400);}"]}),iu=ux({useStyles:fx,className:dx.root,displayName:"Subtitle2Stronger"}),gx=vh({"*":{boxSizing:"border-box"}}),px=zt({tableContainer:{height:"650px",width:"100%",...ie.overflow("hidden","auto"),":hover":{...ie.overflow("auto","auto")},"::-webkit-scrollbar":{width:"6px",height:"4px",...ie.borderRadius("50%")},"::-webkit-scrollbar-track":{"background-color":"#f1f1f1"},"::-webkit-scrollbar-thumb":{"background-color":"#888"},"::-webkit-scrollbar-thumb:hover":{"background-color":"#555"}},table:{width:"100%",borderCollapse:"collapse"},tHead:{...ie.padding("0px","0px","0px","0px"),zIndex:1,backgroundColor:te.colorPaletteAnchorBackground2,color:te.colorNeutralForeground1,position:"sticky",top:0,width:"100%",boxShadow:te.shadow2},tHeadRow:{...ie.padding("0px","0px","0px","0px"),...ie.borderBottom(te.strokeWidthThickest,"solid",te.colorNeutralStroke1)},tBody:{...ie.padding("0px","0px","0px","0px"),zIndex:0},tBodyRow:{...ie.padding("0px","0px","0px","0px"),...ie.borderBottom(te.strokeWidthThin,"solid",te.colorNeutralStroke1),":nth-child(even)":{backgroundColor:te.colorNeutralBackground2},":hover":{backgroundColor:te.colorNeutralBackground2Hover}},tBodySelectedRow:{backgroundColor:te.colorBrandBackground2,...ie.borderBottom(te.strokeWidthThin,"solid",te.colorNeutralStroke1),":hover":{backgroundColor:te.colorBrandBackground2Hover}},tBodyGroupedRow:{backgroundColor:te.colorNeutralBackground2,...ie.borderBottom(te.strokeWidthThin,"solid",te.colorNeutralStroke1)},tBodyCell:{backgroundColor:"transparent",...ie.padding("2px","4px"),minHeight:"35px",height:"35px"},tFoot:{backgroundColor:te.colorNeutralBackground1,color:te.colorNeutralForeground1,position:"sticky",bottom:0,left:0,width:"100%"}}),hx=zt({paginationContainer:{width:"100%",backgroundColor:te.colorNeutralBackground2Hover,...ie.padding("5px")},wrapper:{columnGap:"0.2rem",display:"flex",alignItems:"center",alignContent:"center",justifyContent:"space-between","@media screen and (max-width: 640px)":{flexDirection:"column",rowGap:"0.2rem"}},pageBtnContainer:{display:"flex",columnGap:"3px"},pageBtn:{minWidth:"1.5rem",minHeight:"1.5rem",alignContent:"center",alignItems:"center"},pageSelectionWrapper:{minWidth:"1.5rem"},pageSelectionDropdown:{minWidth:"100%"},pageSizeInput:{minWidth:"1.5rem",width:"4rem"}}),vx=(e,t,r=1)=>[...Array(Math.floor((t-e)/r)+1)].map((o,n)=>e+n*r),Fr=5,mx=e=>{const{table:t,pageSizeOptions:r=[10,20,50,100,1e3]}=e,o=xt("page-size-selector"),n=hx(),i=t.getPageCount(),s=t.getState().pagination.pageIndex,a=t.getState().pagination.pageSize,l=q.useMemo(()=>{let u=s-Math.floor(Fr/2),c=s+Math.floor(Fr/2);if(u<1)u=1,c=i>Fr?Fr:i;else if(c>i){const g=i-Fr+1;u=g<1?1:g,c=i}const f=c-u>=0?vx(u,c):[];return f?.length?[...f]:[1]},[i,s]);return C.jsx("div",{className:n.paginationContainer,children:C.jsxs("div",{className:n.wrapper,children:[C.jsx("div",{className:n.pageSelectionWrapper,children:C.jsx(Yc,{id:o,size:"small",selectedOptions:[`${a}`],placeholder:"Select Page Size",value:t.getState().pagination.pageSize.toString(),onOptionSelect:(u,c)=>t.setPageSize(+c.selectedOptions?.[0]),className:n.pageSelectionDropdown,"aria-label":"Select Page Size",children:r?.map(u=>C.jsx(Zc,{value:`${u}`,children:`${u}`},u))})}),C.jsxs("div",{className:n.pageBtnContainer,children:[C.jsxs("div",{children:[C.jsxs("span",{children:["Page"," ",C.jsxs("strong",{children:[t.getState().pagination.pageIndex+1," of"," ",t.getPageCount()]})]}),C.jsxs("span",{children:[" ","| Go to page:"," ",C.jsx(eo,{type:"number",size:"small",value:`${t.getState().pagination.pageIndex+1}`,onChange:(u,c)=>{const f=c.value?Number(u.target.value)-1:0;f>=0&&f<t.getPageCount()&&t.setPageIndex(f)},className:n.pageSizeInput,"aria-label":"Page Number",autoComplete:"off",autoCorrect:"off"})]})]}),C.jsx(ut,{size:"small",className:n.pageBtn,shape:"circular",onClick:()=>t.setPageIndex(0),disabled:!t.getCanPreviousPage(),icon:C.jsx(qv,{}),"aria-label":"Go to first page"}),C.jsx(ut,{size:"small",className:n.pageBtn,shape:"circular",onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),icon:C.jsx(kv,{}),"aria-label":"Go to previous page"}),l?.map((u,c)=>C.jsx(ut,{shape:"circular",appearance:u-1===s?"primary":void 0,onClick:()=>t.setPageIndex(u-1),"aria-label":`Show Page ${u}`,size:"small",className:n.pageBtn,children:u},c)),C.jsx(ut,{size:"small",className:n.pageBtn,shape:"circular",onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),icon:C.jsx(xv,{}),"aria-label":"Go to next page"}),C.jsx(ut,{size:"small",shape:"circular",className:n.pageBtn,onClick:()=>t.setPageIndex(t.getPageCount()-1),disabled:!t.getCanNextPage(),icon:C.jsx(jv,{}),"aria-label":"Go to last page"})]})]})})};$e(Lv,Vv);$e(Gv,Wv);$e(Hv,$v);$e(Hi,Fv);const Vn=$e(em,tm),bx=$e(Pv,Nv),yx=$e(nc,Iv),wx=$e(tc,rc),xx=$e(Vi,Bv);$e(Tv,Dv);const kx=zt({tableTopHeaderContainer:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",width:"100%",backgroundColor:te.colorBrandBackground2Hover,...ie.padding("5px")},tableTopHeaderLeft:{display:"flex",justifyContent:"flex-start"},tableTopHeaderRight:{display:"flex",justifyContent:"flex-end",...ie.gap("3px")},tableTopHeaderColumnTogglePopover:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",width:"100%",height:"100%"}}),Sx=e=>{const{table:t,gridTitle:r,globalFilter:o,setGlobalFilter:n}=e,i=kx(),s=t.getAllLeafColumns()||[],a=y.useCallback(()=>{t.setGlobalFilter(""),t.resetColumnFilters()},[t]),l=y.useCallback(()=>{t.resetGrouping()},[t]),u=y.useCallback(()=>{t.toggleAllRowsSelected(!1)},[t]);return C.jsxs("div",{className:i.tableTopHeaderContainer,children:[C.jsx("div",{className:i.tableTopHeaderLeft,children:r}),C.jsxs("div",{className:i.tableTopHeaderRight,children:[C.jsxs(wi,{withArrow:!0,children:[C.jsx(Fo,{disableButtonEnhancement:!0,children:C.jsx(ut,{icon:C.jsx(yx,{}),"aria-label":"Toggle Group Column"})}),C.jsx(yi,{children:C.jsxs("div",{className:i.tableTopHeaderColumnTogglePopover,children:[C.jsx(tr,{children:"Group Columns"}),s.map(c=>c.id==="select"||c.id==="id"?null:C.jsx(Tt,{checked:c.getIsGrouped(),onChange:c.getToggleGroupingHandler(),disabled:!c.getCanGroup(),label:c.id},c.id))]})})]}),C.jsxs(wi,{withArrow:!0,children:[C.jsx(Fo,{disableButtonEnhancement:!0,children:C.jsx(ut,{icon:C.jsx(bx,{}),"aria-label":"Toggle Column Visibility"})}),C.jsx(yi,{children:C.jsxs("div",{className:i.tableTopHeaderColumnTogglePopover,children:[C.jsx(tr,{children:"Toggle Columns"}),C.jsx(Tt,{checked:t.getIsAllColumnsVisible(),onChange:t.getToggleAllColumnsVisibilityHandler(),label:"Toggle All"}),C.jsx(Qc,{}),t.getAllLeafColumns().map(c=>c.id==="select"||c.id==="id"?null:C.jsx(Tt,{checked:c.getIsVisible(),onChange:c.getToggleVisibilityHandler(),label:c.id,disabled:!c.getCanHide()},c.id))]})})]}),C.jsx(_x,{value:o??"",onChange:c=>n(String(c)),className:"p-2 font-lg shadow border border-block",placeholder:"Search all columns...",resetAllFilters:a,resetAllGrouping:l,clearAllSelection:u})]})]})};function _x({value:e,onChange:t,debounce:r=500,resetAllFilters:o,resetAllGrouping:n,clearAllSelection:i}){const[s,a]=y.useState("");return y.useEffect(()=>{a(e)},[e]),y.useEffect(()=>{const l=setTimeout(()=>{t(s)},r);return()=>clearTimeout(l)},[s,t,r]),C.jsx(eo,{placeholder:"Search Keyword",value:s,onChange:(l,u)=>a(u.value),type:"search",autoComplete:"off",contentBefore:C.jsx(om,{}),style:{width:"300px"},contentAfter:C.jsx(C.Fragment,{children:C.jsxs(us,{children:[C.jsx(un,{disableButtonEnhancement:!0,children:C.jsx(ut,{appearance:"subtle",icon:C.jsx(Hi,{}),"aria-label":"View Menu"})}),C.jsx(fs,{children:C.jsxs(ds,{children:[C.jsx(lt,{icon:C.jsx(Vn,{}),onClick:o,children:"Clear All Filters"}),C.jsx(lt,{icon:C.jsx(Vn,{}),onClick:n,children:"Clear All Grouping"}),C.jsx(lt,{icon:C.jsx(Vn,{}),onClick:i,children:"Clear All Selection"})]})})]})})})}/**
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,r?.key)}return n}}function Bx(e,t,r,o){var n,i;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let u=(n=(i=a.id)!=null?i:l?l.replace(".","_"):void 0)!=null?n:typeof a.header=="string"?a.header:void 0,c;if(a.accessorFn?c=a.accessorFn:l&&(l.includes(".")?c=g=>{let d=g;for(const h of l.split(".")){var p;d=(p=d)==null?void 0:p[h],process.env.NODE_ENV!=="production"&&d===void 0&&console.warn(`"${h}" in deeply nested key "${l}" returned undefined.`)}return d}:c=g=>g[a.accessorKey]),!u)throw process.env.NODE_ENV!=="production"?new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let f={id:`${String(u)}`,accessorFn:c,parent:o,depth:r,columnDef:a,columns:[],getFlatColumns:L(()=>[!0],()=>{var g;return[f,...(g=f.columns)==null?void 0:g.flatMap(d=>d.getFlatColumns())]},{key:process.env.NODE_ENV==="production"&&"column.getFlatColumns",debug:()=>{var g;return(g=e.options.debugAll)!=null?g:e.options.debugColumns}}),getLeafColumns:L(()=>[e._getOrderColumnsFn()],g=>{var d;if((d=f.columns)!=null&&d.length){let p=f.columns.flatMap(h=>h.getLeafColumns());return g(p)}return[f]},{key:process.env.NODE_ENV==="production"&&"column.getLeafColumns",debug:()=>{var g;return(g=e.options.debugAll)!=null?g:e.options.debugColumns}})};for(const g of e._features)g.createColumn==null||g.createColumn(f,e);return f}function za(e,t,r){var o;let i={id:(o=r.id)!=null?o:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],a=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(a),s.push(l)};return a(i),s},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(i,e)}),i}const Rx={createTable:e=>{e.getHeaderGroups=L(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,o,n)=>{var i,s;const a=(i=o?.map(f=>r.find(g=>g.id===f)).filter(Boolean))!=null?i:[],l=(s=n?.map(f=>r.find(g=>g.id===f)).filter(Boolean))!=null?s:[],u=r.filter(f=>!(o!=null&&o.includes(f.id))&&!(n!=null&&n.includes(f.id)));return ho(t,[...a,...u,...l],e)},{key:process.env.NODE_ENV==="development"&&"getHeaderGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=L(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,o,n)=>(r=r.filter(i=>!(o!=null&&o.includes(i.id))&&!(n!=null&&n.includes(i.id))),ho(t,r,e,"center")),{key:process.env.NODE_ENV==="development"&&"getCenterHeaderGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=L(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,o)=>{var n;const i=(n=o?.map(s=>r.find(a=>a.id===s)).filter(Boolean))!=null?n:[];return ho(t,i,e,"left")},{key:process.env.NODE_ENV==="development"&&"getLeftHeaderGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightHeaderGroups=L(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,o)=>{var n;const i=(n=o?.map(s=>r.find(a=>a.id===s)).filter(Boolean))!=null?n:[];return ho(t,i,e,"right")},{key:process.env.NODE_ENV==="development"&&"getRightHeaderGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getFooterGroups=L(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:process.env.NODE_ENV==="development"&&"getFooterGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftFooterGroups=L(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:process.env.NODE_ENV==="development"&&"getLeftFooterGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterFooterGroups=L(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:process.env.NODE_ENV==="development"&&"getCenterFooterGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightFooterGroups=L(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:process.env.NODE_ENV==="development"&&"getRightFooterGroups",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getFlatHeaders=L(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:process.env.NODE_ENV==="development"&&"getFlatHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=L(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:process.env.NODE_ENV==="development"&&"getLeftFlatHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=L(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:process.env.NODE_ENV==="development"&&"getCenterFlatHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightFlatHeaders=L(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:process.env.NODE_ENV==="development"&&"getRightFlatHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=L(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var o;return!((o=r.subHeaders)!=null&&o.length)}),{key:process.env.NODE_ENV==="development"&&"getCenterLeafHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=L(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var o;return!((o=r.subHeaders)!=null&&o.length)}),{key:process.env.NODE_ENV==="development"&&"getLeftLeafHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightLeafHeaders=L(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var o;return!((o=r.subHeaders)!=null&&o.length)}),{key:process.env.NODE_ENV==="development"&&"getRightLeafHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeafHeaders=L(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,o)=>{var n,i,s,a,l,u;return[...(n=(i=t[0])==null?void 0:i.headers)!=null?n:[],...(s=(a=r[0])==null?void 0:a.headers)!=null?s:[],...(l=(u=o[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},{key:process.env.NODE_ENV==="development"&&"getLeafHeaders",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})}};function ho(e,t,r,o){var n,i;let s=0;const a=function(g,d){d===void 0&&(d=1),s=Math.max(s,d),g.filter(p=>p.getIsVisible()).forEach(p=>{var h;(h=p.columns)!=null&&h.length&&a(p.columns,d+1)},0)};a(e);let l=[];const u=(g,d)=>{const p={depth:d,id:[o,`${d}`].filter(Boolean).join("_"),headers:[]},h=[];g.forEach(b=>{const v=[...h].reverse()[0],m=b.column.depth===p.depth;let w,x=!1;if(m&&b.column.parent?w=b.column.parent:(w=b.column,x=!0),v&&v?.column===w)v.subHeaders.push(b);else{const k=za(r,w,{id:[o,d,w.id,b?.id].filter(Boolean).join("_"),isPlaceholder:x,placeholderId:x?`${h.filter(_=>_.column===w).length}`:void 0,depth:d,index:h.length});k.subHeaders.push(b),h.push(k)}p.headers.push(b),b.headerGroup=p}),l.push(p),d>0&&u(h,d-1)},c=t.map((g,d)=>za(r,g,{depth:s,index:d}));u(c,s-1),l.reverse();const f=g=>g.filter(p=>p.column.getIsVisible()).map(p=>{let h=0,b=0,v=[0];p.subHeaders&&p.subHeaders.length?(v=[],f(p.subHeaders).forEach(w=>{let{colSpan:x,rowSpan:k}=w;h+=x,v.push(k)})):h=1;const m=Math.min(...v);return b=b+m,p.colSpan=h,p.rowSpan=b,{colSpan:h,rowSpan:b}});return f((n=(i=l[0])==null?void 0:i.headers)!=null?n:[]),l}const vo={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Hn=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Ex={getDefaultColumnDef:()=>vo,getInitialState:e=>({columnSizing:{},columnSizingInfo:Hn(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:Ke("columnSizing",e),onColumnSizingInfoChange:Ke("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var r,o,n;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:vo.minSize,(o=i??e.columnDef.size)!=null?o:vo.size),(n=e.columnDef.maxSize)!=null?n:vo.maxSize)},e.getStart=r=>{const o=r?r==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),n=o.findIndex(i=>i.id===e.id);if(n>0){const i=o[n-1];return i.getStart(r)+i.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing(r=>{let{[e.id]:o,...n}=r;return n})},e.getCanResize=()=>{var r,o;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((o=t.options.enableColumnResizing)!=null?o:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let r=0;const o=n=>{if(n.subHeaders.length)n.subHeaders.forEach(o);else{var i;r+=(i=n.column.getSize())!=null?i:0}};return o(e),r},e.getStart=()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},e.getResizeHandler=()=>{const r=t.getColumn(e.column.id),o=r?.getCanResize();return n=>{if(!r||!o||(n.persist==null||n.persist(),$n(n)&&n.touches&&n.touches.length>1))return;const i=e.getSize(),s=e?e.getLeafHeaders().map(h=>[h.column.id,h.column.getSize()]):[[r.id,r.getSize()]],a=$n(n)?Math.round(n.touches[0].clientX):n.clientX,l={},u=(h,b)=>{typeof b=="number"&&(t.setColumnSizingInfo(v=>{var m,w;const x=b-((m=v?.startOffset)!=null?m:0),k=Math.max(x/((w=v?.startSize)!=null?w:0),-.999999);return v.columnSizingStart.forEach(_=>{let[S,E]=_;l[S]=Math.round(Math.max(E+E*k,0)*100)/100}),{...v,deltaOffset:x,deltaPercentage:k}}),(t.options.columnResizeMode==="onChange"||h==="end")&&t.setColumnSizing(v=>({...v,...l})))},c=h=>u("move",h),f=h=>{u("end",h),t.setColumnSizingInfo(b=>({...b,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},g={moveHandler:h=>c(h.clientX),upHandler:h=>{document.removeEventListener("mousemove",g.moveHandler),document.removeEventListener("mouseup",g.upHandler),f(h.clientX)}},d={moveHandler:h=>(h.cancelable&&(h.preventDefault(),h.stopPropagation()),c(h.touches[0].clientX),!1),upHandler:h=>{var b;document.removeEventListener("touchmove",d.moveHandler),document.removeEventListener("touchend",d.upHandler),h.cancelable&&(h.preventDefault(),h.stopPropagation()),f((b=h.touches[0])==null?void 0:b.clientX)}},p=Px()?{passive:!1}:!1;$n(n)?(document.addEventListener("touchmove",d.moveHandler,p),document.addEventListener("touchend",d.upHandler,p)):(document.addEventListener("mousemove",g.moveHandler,p),document.addEventListener("mouseup",g.upHandler,p)),t.setColumnSizingInfo(h=>({...h,startOffset:a,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var r;e.setColumnSizing(t?{}:(r=e.initialState.columnSizing)!=null?r:{})},e.resetHeaderSizeInfo=t=>{var r;e.setColumnSizingInfo(t?Hn():(r=e.initialState.columnSizingInfo)!=null?r:Hn())},e.getTotalSize=()=>{var t,r;return(t=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((o,n)=>o+n.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,r;return(t=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((o,n)=>o+n.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,r;return(t=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((o,n)=>o+n.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,r;return(t=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((o,n)=>o+n.getSize(),0))!=null?t:0}}};let mo=null;function Px(){if(typeof mo=="boolean")return mo;let e=!1;try{const t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch{e=!1}return mo=e,mo}function $n(e){return e.type==="touchstart"}const Nx={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Ke("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;e._autoResetExpanded=()=>{var o,n;if(!t){e._queue(()=>{t=!0});return}if((o=(n=e.options.autoResetAll)!=null?n:e.options.autoResetExpanded)!=null?o:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},e.setExpanded=o=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(o),e.toggleAllRowsExpanded=o=>{o??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=o=>{var n,i;e.setExpanded(o?{}:(n=(i=e.initialState)==null?void 0:i.expanded)!=null?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(o=>o.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>o=>{o.persist==null||o.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const o=e.getState().expanded;return o===!0||Object.values(o).some(Boolean)},e.getIsAllRowsExpanded=()=>{const o=e.getState().expanded;return typeof o=="boolean"?o===!0:!(!Object.keys(o).length||e.getRowModel().flatRows.some(n=>!n.getIsExpanded()))},e.getExpandedDepth=()=>{let o=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const s=i.split(".");o=Math.max(o,s.length)}),o},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=r=>{t.setExpanded(o=>{var n;const i=o===!0?!0:!!(o!=null&&o[e.id]);let s={};if(o===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{s[a]=!0}):s=o,r=(n=r)!=null?n:!i,!i&&r)return{...s,[e.id]:!0};if(i&&!r){const{[e.id]:a,...l}=s;return l}return o})},e.getIsExpanded=()=>{var r;const o=t.getState().expanded;return!!((r=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?r:o===!0||o?.[e.id])},e.getCanExpand=()=>{var r,o,n;return(r=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?r:((o=t.options.enableExpanding)!=null?o:!0)&&!!((n=e.subRows)!=null&&n.length)},e.getIsAllParentsExpanded=()=>{let r=!0,o=e;for(;r&&o.parentId;)o=t.getRow(o.parentId,!0),r=o.getIsExpanded();return r},e.getToggleExpandedHandler=()=>{const r=e.getCanExpand();return()=>{r&&e.toggleExpanded()}}}},au=(e,t,r)=>{var o;const n=r.toLowerCase();return!!(!((o=e.getValue(t))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(n))};au.autoRemove=e=>ft(e);const lu=(e,t,r)=>{var o;return!!(!((o=e.getValue(t))==null||(o=o.toString())==null)&&o.includes(r))};lu.autoRemove=e=>ft(e);const cu=(e,t,r)=>{var o;return((o=e.getValue(t))==null||(o=o.toString())==null?void 0:o.toLowerCase())===r?.toLowerCase()};cu.autoRemove=e=>ft(e);const uu=(e,t,r)=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)};uu.autoRemove=e=>ft(e)||!(e!=null&&e.length);const du=(e,t,r)=>!r.some(o=>{var n;return!((n=e.getValue(t))!=null&&n.includes(o))});du.autoRemove=e=>ft(e)||!(e!=null&&e.length);const fu=(e,t,r)=>r.some(o=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(o)});fu.autoRemove=e=>ft(e)||!(e!=null&&e.length);const gu=(e,t,r)=>e.getValue(t)===r;gu.autoRemove=e=>ft(e);const pu=(e,t,r)=>e.getValue(t)==r;pu.autoRemove=e=>ft(e);const ps=(e,t,r)=>{let[o,n]=r;const i=e.getValue(t);return i>=o&&i<=n};ps.resolveFilterValue=e=>{let[t,r]=e,o=typeof t!="number"?parseFloat(t):t,n=typeof r!="number"?parseFloat(r):r,i=t===null||Number.isNaN(o)?-1/0:o,s=r===null||Number.isNaN(n)?1/0:n;if(i>s){const a=i;i=s,s=a}return[i,s]};ps.autoRemove=e=>ft(e)||ft(e[0])&&ft(e[1]);const _t={includesString:au,includesStringSensitive:lu,equalsString:cu,arrIncludes:uu,arrIncludesAll:du,arrIncludesSome:fu,equals:gu,weakEquals:pu,inNumberRange:ps};function ft(e){return e==null||e===""}const Tx={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:Ke("columnFilters",e),onGlobalFilterChange:Ke("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r;const o=(r=e.getCoreRowModel().flatRows[0])==null||(r=r._getAllCellsByColumnId()[t.id])==null?void 0:r.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const r=t.getCoreRowModel().flatRows[0],o=r?.getValue(e.id);return typeof o=="string"?_t.includesString:typeof o=="number"?_t.inNumberRange:typeof o=="boolean"||o!==null&&typeof o=="object"?_t.equals:Array.isArray(o)?_t.arrIncludes:_t.weakEquals},e.getFilterFn=()=>{var r,o;return Oo(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(o=t.options.filterFns)==null?void 0:o[e.columnDef.filterFn])!=null?r:_t[e.columnDef.filterFn]},e.getCanFilter=()=>{var r,o,n;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((o=t.options.enableColumnFilters)!=null?o:!0)&&((n=t.options.enableFilters)!=null?n:!0)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var r,o,n,i;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableGlobalFilter)!=null?o:!0)&&((n=t.options.enableFilters)!=null?n:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var r;return(r=t.getState().columnFilters)==null||(r=r.find(o=>o.id===e.id))==null?void 0:r.value},e.getFilterIndex=()=>{var r,o;return(r=(o=t.getState().columnFilters)==null?void 0:o.findIndex(n=>n.id===e.id))!=null?r:-1},e.setFilterValue=r=>{t.setColumnFilters(o=>{const n=e.getFilterFn(),i=o?.find(c=>c.id===e.id),s=Ht(r,i?i.value:void 0);if(ja(n,s,e)){var a;return(a=o?.filter(c=>c.id!==e.id))!=null?a:[]}const l={id:e.id,value:s};if(i){var u;return(u=o?.map(c=>c.id===e.id?l:c))!=null?u:[]}return o!=null&&o.length?[...o,l]:[l]})},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>_t.includesString,e.getGlobalFilterFn=()=>{var t,r;const{globalFilterFn:o}=e.options;return Oo(o)?o:o==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[o])!=null?t:_t[o]},e.setColumnFilters=t=>{const r=e.getAllLeafColumns(),o=n=>{var i;return(i=Ht(t,n))==null?void 0:i.filter(s=>{const a=r.find(l=>l.id===s.id);if(a){const l=a.getFilterFn();if(ja(l,s.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(o)},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var r,o;e.setColumnFilters(t?[]:(r=(o=e.initialState)==null?void 0:o.columnFilters)!=null?r:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function ja(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const Dx=(e,t,r)=>r.reduce((o,n)=>{const i=n.getValue(e);return o+(typeof i=="number"?i:0)},0),Fx=(e,t,r)=>{let o;return r.forEach(n=>{const i=n.getValue(e);i!=null&&(o>i||o===void 0&&i>=i)&&(o=i)}),o},Ix=(e,t,r)=>{let o;return r.forEach(n=>{const i=n.getValue(e);i!=null&&(o<i||o===void 0&&i>=i)&&(o=i)}),o},Ox=(e,t,r)=>{let o,n;return r.forEach(i=>{const s=i.getValue(e);s!=null&&(o===void 0?s>=s&&(o=n=s):(o>s&&(o=s),n<s&&(n=s)))}),[o,n]},zx=(e,t)=>{let r=0,o=0;if(t.forEach(n=>{let i=n.getValue(e);i!=null&&(i=+i)>=i&&(++r,o+=i)}),r)return o/r},jx=(e,t)=>{if(!t.length)return;const r=t.map(i=>i.getValue(e));if(!Cx(r))return;if(r.length===1)return r[0];const o=Math.floor(r.length/2),n=r.sort((i,s)=>i-s);return r.length%2!==0?n[o]:(n[o-1]+n[o])/2},Mx=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),Ax=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,qx=(e,t)=>t.length,Gn={sum:Dx,min:Fx,max:Ix,extent:Ox,mean:zx,median:jx,unique:Mx,uniqueCount:Ax,count:qx},Lx={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return(t=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Ke("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(o=>o!==e.id):[...r??[],e.id])},e.getCanGroup=()=>{var r,o,n,i;return(r=(o=(n=(i=e.columnDef.enableGrouping)!=null?i:!0)!=null?n:t.options.enableGrouping)!=null?o:!0)!=null?r:!!e.accessorFn},e.getIsGrouped=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.includes(e.id)},e.getGroupedIndex=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const r=e.getCanGroup();return()=>{r&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const r=t.getCoreRowModel().flatRows[0],o=r?.getValue(e.id);if(typeof o=="number")return Gn.sum;if(Object.prototype.toString.call(o)==="[object Date]")return Gn.extent},e.getAggregationFn=()=>{var r,o;if(!e)throw new Error;return Oo(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(o=t.options.aggregationFns)==null?void 0:o[e.columnDef.aggregationFn])!=null?r:Gn[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var r,o;e.setGrouping(t?[]:(r=(o=e.initialState)==null?void 0:o.grouping)!=null?r:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=r=>{if(e._groupingValuesCache.hasOwnProperty(r))return e._groupingValuesCache[r];const o=t.getColumn(r);return o!=null&&o.columnDef.getGroupingValue?(e._groupingValuesCache[r]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[r]):e.getValue(r)},e._groupingValuesCache={}},createCell:(e,t,r,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===r.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var n;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((n=r.subRows)!=null&&n.length)}}};function Vx(e,t,r){if(!(t!=null&&t.length)||!r)return e;const o=e.filter(i=>!t.includes(i.id));return r==="remove"?o:[...t.map(i=>e.find(s=>s.id===i)).filter(Boolean),...o]}const Hx={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Ke("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var r;e.setColumnOrder(t?[]:(r=e.initialState.columnOrder)!=null?r:[])},e._getOrderColumnsFn=L(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,r,o)=>n=>{let i=[];if(!(t!=null&&t.length))i=n;else{const s=[...t],a=[...n];for(;a.length&&s.length;){const l=s.shift(),u=a.findIndex(c=>c.id===l);u>-1&&i.push(a.splice(u,1)[0])}i=[...i,...a]}return Vx(i,r,o)},{key:process.env.NODE_ENV==="development"&&"getOrderColumnsFn"})}},_i=0,Ci=10,Wn=()=>({pageIndex:_i,pageSize:Ci}),$x={getInitialState:e=>({...e,pagination:{...Wn(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Ke("pagination",e)}),createTable:e=>{let t=!1,r=!1;e._autoResetPageIndex=()=>{var o,n;if(!t){e._queue(()=>{t=!0});return}if((o=(n=e.options.autoResetAll)!=null?n:e.options.autoResetPageIndex)!=null?o:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},e.setPagination=o=>{const n=i=>Ht(o,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(n)},e.resetPagination=o=>{var n;e.setPagination(o?Wn():(n=e.initialState.pagination)!=null?n:Wn())},e.setPageIndex=o=>{e.setPagination(n=>{let i=Ht(o,n.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,s)),{...n,pageIndex:i}})},e.resetPageIndex=o=>{var n,i;e.setPageIndex(o?_i:(n=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?n:_i)},e.resetPageSize=o=>{var n,i;e.setPageSize(o?Ci:(n=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?n:Ci)},e.setPageSize=o=>{e.setPagination(n=>{const i=Math.max(1,Ht(o,n.pageSize)),s=n.pageSize*n.pageIndex,a=Math.floor(s/i);return{...n,pageIndex:a,pageSize:i}})},e.setPageCount=o=>e.setPagination(n=>{var i;let s=Ht(o,(i=e.options.pageCount)!=null?i:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...n,pageCount:s}}),e.getPageOptions=L(()=>[e.getPageCount()],o=>{let n=[];return o&&o>0&&(n=[...new Array(o)].fill(null).map((i,s)=>s)),n},{key:process.env.NODE_ENV==="development"&&"getPageOptions",debug:()=>{var o;return(o=e.options.debugAll)!=null?o:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:o}=e.getState().pagination,n=e.getPageCount();return n===-1?!0:n===0?!1:o<n-1},e.previousPage=()=>e.setPageIndex(o=>o-1),e.nextPage=()=>e.setPageIndex(o=>o+1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var o;return(o=e.options.pageCount)!=null?o:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},Un=()=>({left:[],right:[]}),Kn=()=>({top:[],bottom:[]}),Gx={getInitialState:e=>({columnPinning:Un(),rowPinning:Kn(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Ke("columnPinning",e),onRowPinningChange:Ke("rowPinning",e)}),createColumn:(e,t)=>{e.pin=r=>{const o=e.getLeafColumns().map(n=>n.id).filter(Boolean);t.setColumnPinning(n=>{var i,s;if(r==="right"){var a,l;return{left:((a=n?.left)!=null?a:[]).filter(f=>!(o!=null&&o.includes(f))),right:[...((l=n?.right)!=null?l:[]).filter(f=>!(o!=null&&o.includes(f))),...o]}}if(r==="left"){var u,c;return{left:[...((u=n?.left)!=null?u:[]).filter(f=>!(o!=null&&o.includes(f))),...o],right:((c=n?.right)!=null?c:[]).filter(f=>!(o!=null&&o.includes(f)))}}return{left:((i=n?.left)!=null?i:[]).filter(f=>!(o!=null&&o.includes(f))),right:((s=n?.right)!=null?s:[]).filter(f=>!(o!=null&&o.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(o=>{var n,i,s;return((n=o.columnDef.enablePinning)!=null?n:!0)&&((i=(s=t.options.enableColumnPinning)!=null?s:t.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const r=e.getLeafColumns().map(a=>a.id),{left:o,right:n}=t.getState().columnPinning,i=r.some(a=>o?.includes(a)),s=r.some(a=>n?.includes(a));return i?"left":s?"right":!1},e.getPinnedIndex=()=>{var r,o;const n=e.getIsPinned();return n?(r=(o=t.getState().columnPinning)==null||(o=o[n])==null?void 0:o.indexOf(e.id))!=null?r:-1:0}},createRow:(e,t)=>{e.pin=(r,o,n)=>{const i=o?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],s=n?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],a=new Set([...s,e.id,...i]);t.setRowPinning(l=>{var u,c;if(r==="bottom"){var f,g;return{top:((f=l?.top)!=null?f:[]).filter(h=>!(a!=null&&a.has(h))),bottom:[...((g=l?.bottom)!=null?g:[]).filter(h=>!(a!=null&&a.has(h))),...Array.from(a)]}}if(r==="top"){var d,p;return{top:[...((d=l?.top)!=null?d:[]).filter(h=>!(a!=null&&a.has(h))),...Array.from(a)],bottom:((p=l?.bottom)!=null?p:[]).filter(h=>!(a!=null&&a.has(h)))}}return{top:((u=l?.top)!=null?u:[]).filter(h=>!(a!=null&&a.has(h))),bottom:((c=l?.bottom)!=null?c:[]).filter(h=>!(a!=null&&a.has(h)))}})},e.getCanPin=()=>{var r;const{enableRowPinning:o,enablePinning:n}=t.options;return typeof o=="function"?o(e):(r=o??n)!=null?r:!0},e.getIsPinned=()=>{const r=[e.id],{top:o,bottom:n}=t.getState().rowPinning,i=r.some(a=>o?.includes(a)),s=r.some(a=>n?.includes(a));return i?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var r,o;const n=e.getIsPinned();if(!n)return-1;const i=(r=t._getPinnedRows(n))==null?void 0:r.map(s=>{let{id:a}=s;return a});return(o=i?.indexOf(e.id))!=null?o:-1},e.getCenterVisibleCells=L(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(r,o,n)=>{const i=[...o??[],...n??[]];return r.filter(s=>!i.includes(s.column.id))},{key:process.env.NODE_ENV==="development"&&"row.getCenterVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),e.getLeftVisibleCells=L(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(r,o)=>(o??[]).map(i=>r.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),{key:process.env.NODE_ENV==="development"&&"row.getLeftVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),e.getRightVisibleCells=L(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(r,o)=>(o??[]).map(i=>r.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),{key:process.env.NODE_ENV==="development"&&"row.getRightVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var r,o;return e.setColumnPinning(t?Un():(r=(o=e.initialState)==null?void 0:o.columnPinning)!=null?r:Un())},e.getIsSomeColumnsPinned=t=>{var r;const o=e.getState().columnPinning;if(!t){var n,i;return!!((n=o.left)!=null&&n.length||(i=o.right)!=null&&i.length)}return!!((r=o[t])!=null&&r.length)},e.getLeftLeafColumns=L(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(o=>t.find(n=>n.id===o)).filter(Boolean),{key:process.env.NODE_ENV==="development"&&"getLeftLeafColumns",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.getRightLeafColumns=L(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(o=>t.find(n=>n.id===o)).filter(Boolean),{key:process.env.NODE_ENV==="development"&&"getRightLeafColumns",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.getCenterLeafColumns=L(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,o)=>{const n=[...r??[],...o??[]];return t.filter(i=>!n.includes(i.id))},{key:process.env.NODE_ENV==="development"&&"getCenterLeafColumns",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var r,o;return e.setRowPinning(t?Kn():(r=(o=e.initialState)==null?void 0:o.rowPinning)!=null?r:Kn())},e.getIsSomeRowsPinned=t=>{var r;const o=e.getState().rowPinning;if(!t){var n,i;return!!((n=o.top)!=null&&n.length||(i=o.bottom)!=null&&i.length)}return!!((r=o[t])!=null&&r.length)},e._getPinnedRows=t=>L(()=>[e.getRowModel().rows,e.getState().rowPinning[t]],(r,o)=>{var n;return((n=e.options.keepPinnedRows)==null||n?(o??[]).map(s=>{const a=e.getRow(s,!0);return a.getIsAllParentsExpanded()?a:null}):(o??[]).map(s=>r.find(a=>a.id===s))).filter(Boolean).map(s=>({...s,position:t}))},{key:process.env.NODE_ENV==="development"&&`row.get${t==="top"?"Top":"Bottom"}Rows`,debug:()=>{var r;return(r=e.options.debugAll)!=null?r:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=L(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,r,o)=>{const n=new Set([...r??[],...o??[]]);return t.filter(i=>!n.has(i.id))},{key:process.env.NODE_ENV==="development"&&"row.getCenterRows",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugRows}})}},Wx={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Ke("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var r;return e.setRowSelection(t?{}:(r=e.initialState.rowSelection)!=null?r:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(r=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const o={...r},n=e.getPreGroupedRowModel().flatRows;return t?n.forEach(i=>{i.getCanSelect()&&(o[i.id]=!0)}):n.forEach(i=>{delete o[i.id]}),o})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(r=>{const o=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),n={...r};return e.getRowModel().rows.forEach(i=>{Bi(n,i.id,o,!0,e)}),n}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=L(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?Xn(e,r):{rows:[],flatRows:[],rowsById:{}},{key:process.env.NODE_ENV==="development"&&"getSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=L(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?Xn(e,r):{rows:[],flatRows:[],rowsById:{}},{key:process.env.NODE_ENV==="production"&&"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=L(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?Xn(e,r):{rows:[],flatRows:[],rowsById:{}},{key:process.env.NODE_ENV==="production"&&"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let o=!!(t.length&&Object.keys(r).length);return o&&t.some(n=>n.getCanSelect()&&!r[n.id])&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(n=>n.getCanSelect()),{rowSelection:r}=e.getState();let o=!!t.length;return o&&t.some(n=>!r[n.id])&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;const r=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return r>0&&r<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(r=>r.getCanSelect()).some(r=>r.getIsSelected()||r.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(r,o)=>{const n=e.getIsSelected();t.setRowSelection(i=>{var s;if(r=typeof r<"u"?r:!n,e.getCanSelect()&&n===r)return i;const a={...i};return Bi(a,e.id,r,(s=o?.selectChildren)!=null?s:!0,t),a})},e.getIsSelected=()=>{const{rowSelection:r}=t.getState();return hs(e,r)},e.getIsSomeSelected=()=>{const{rowSelection:r}=t.getState();return Ri(e,r)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:r}=t.getState();return Ri(e,r)==="all"},e.getCanSelect=()=>{var r;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(r=t.options.enableRowSelection)!=null?r:!0},e.getCanSelectSubRows=()=>{var r;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(r=t.options.enableSubRowSelection)!=null?r:!0},e.getCanMultiSelect=()=>{var r;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(r=t.options.enableMultiRowSelection)!=null?r:!0},e.getToggleSelectedHandler=()=>{const r=e.getCanSelect();return o=>{var n;r&&e.toggleSelected((n=o.target)==null?void 0:n.checked)}}}},Bi=(e,t,r,o,n)=>{var i;const s=n.getRow(t);r?(s.getCanMultiSelect()||Object.keys(e).forEach(a=>delete e[a]),s.getCanSelect()&&(e[t]=!0)):delete e[t],o&&(i=s.subRows)!=null&&i.length&&s.getCanSelectSubRows()&&s.subRows.forEach(a=>Bi(e,a.id,r,o,n))};function Xn(e,t){const r=e.getState().rowSelection,o=[],n={},i=function(s,a){return s.map(l=>{var u;const c=hs(l,r);if(c&&(o.push(l),n[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:i(l.subRows)}),c)return l}).filter(Boolean)};return{rows:i(t.rows),flatRows:o,rowsById:n}}function hs(e,t){var r;return(r=t[e.id])!=null?r:!1}function Ri(e,t,r){var o;if(!((o=e.subRows)!=null&&o.length))return!1;let n=!0,i=!1;return e.subRows.forEach(s=>{if(!(i&&!n)&&(s.getCanSelect()&&(hs(s,t)?i=!0:n=!1),s.subRows&&s.subRows.length)){const a=Ri(s,t);a==="all"?i=!0:(a==="some"&&(i=!0),n=!1)}}),n?"all":i?"some":!1}const Ei=/([0-9]+)/gm,Ux=(e,t,r)=>hu(Kt(e.getValue(r)).toLowerCase(),Kt(t.getValue(r)).toLowerCase()),Kx=(e,t,r)=>hu(Kt(e.getValue(r)),Kt(t.getValue(r))),Xx=(e,t,r)=>vs(Kt(e.getValue(r)).toLowerCase(),Kt(t.getValue(r)).toLowerCase()),Zx=(e,t,r)=>vs(Kt(e.getValue(r)),Kt(t.getValue(r))),Yx=(e,t,r)=>{const o=e.getValue(r),n=t.getValue(r);return o>n?1:o<n?-1:0},Qx=(e,t,r)=>vs(e.getValue(r),t.getValue(r));function vs(e,t){return e===t?0:e>t?1:-1}function Kt(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function hu(e,t){const r=e.split(Ei).filter(Boolean),o=t.split(Ei).filter(Boolean);for(;r.length&&o.length;){const n=r.shift(),i=o.shift(),s=parseInt(n,10),a=parseInt(i,10),l=[s,a].sort();if(isNaN(l[0])){if(n>i)return 1;if(i>n)return-1;continue}if(isNaN(l[1]))return isNaN(s)?-1:1;if(s>a)return 1;if(a>s)return-1}return r.length-o.length}const Ir={alphanumeric:Ux,alphanumericCaseSensitive:Kx,text:Xx,textCaseSensitive:Zx,datetime:Yx,basic:Qx},Jx={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Ke("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const r=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const n of r){const i=n?.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return Ir.datetime;if(typeof i=="string"&&(o=!0,i.split(Ei).length>1))return Ir.alphanumeric}return o?Ir.text:Ir.basic},e.getAutoSortDir=()=>{const r=t.getFilteredRowModel().flatRows[0];return typeof r?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var r,o;if(!e)throw new Error;return Oo(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(o=t.options.sortingFns)==null?void 0:o[e.columnDef.sortingFn])!=null?r:Ir[e.columnDef.sortingFn]},e.toggleSorting=(r,o)=>{const n=e.getNextSortingOrder(),i=typeof r<"u"&&r!==null;t.setSorting(s=>{const a=s?.find(d=>d.id===e.id),l=s?.findIndex(d=>d.id===e.id);let u=[],c,f=i?r:n==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&o?a?c="toggle":c="add":s!=null&&s.length&&l!==s.length-1?c="replace":a?c="toggle":c="replace",c==="toggle"&&(i||n||(c="remove")),c==="add"){var g;u=[...s,{id:e.id,desc:f}],u.splice(0,u.length-((g=t.options.maxMultiSortColCount)!=null?g:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=s.map(d=>d.id===e.id?{...d,desc:f}:d):c==="remove"?u=s.filter(d=>d.id!==e.id):u=[{id:e.id,desc:f}];return u})},e.getFirstSortDir=()=>{var r,o;return((r=(o=e.columnDef.sortDescFirst)!=null?o:t.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=r=>{var o,n;const i=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==i&&((o=t.options.enableSortingRemoval)==null||o)&&(!(r&&(n=t.options.enableMultiRemove)!=null)||n)?!1:s==="desc"?"asc":"desc":i},e.getCanSort=()=>{var r,o;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((o=t.options.enableSorting)!=null?o:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var r,o;return(r=(o=e.columnDef.enableMultiSort)!=null?o:t.options.enableMultiSort)!=null?r:!!e.accessorFn},e.getIsSorted=()=>{var r;const o=(r=t.getState().sorting)==null?void 0:r.find(n=>n.id===e.id);return o?o.desc?"desc":"asc":!1},e.getSortIndex=()=>{var r,o;return(r=(o=t.getState().sorting)==null?void 0:o.findIndex(n=>n.id===e.id))!=null?r:-1},e.clearSorting=()=>{t.setSorting(r=>r!=null&&r.length?r.filter(o=>o.id!==e.id):[])},e.getToggleSortingHandler=()=>{const r=e.getCanSort();return o=>{r&&(o.persist==null||o.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(o):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var r,o;e.setSorting(t?[]:(r=(o=e.initialState)==null?void 0:o.sorting)!=null?r:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},ek={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Ke("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=r=>{e.getCanHide()&&t.setColumnVisibility(o=>({...o,[e.id]:r??!e.getIsVisible()}))},e.getIsVisible=()=>{var r,o;return(r=(o=t.getState().columnVisibility)==null?void 0:o[e.id])!=null?r:!0},e.getCanHide=()=>{var r,o;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((o=t.options.enableHiding)!=null?o:!0)},e.getToggleVisibilityHandler=()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=L(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(o=>o.column.getIsVisible()),{key:process.env.NODE_ENV==="production"&&"row._getAllVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),e.getVisibleCells=L(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,o,n)=>[...r,...o,...n],{key:process.env.NODE_ENV==="development"&&"row.getVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})},createTable:e=>{const t=(r,o)=>L(()=>[o(),o().filter(n=>n.getIsVisible()).map(n=>n.id).join("_")],n=>n.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),{key:r,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugColumns}});e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),e.resetColumnVisibility=r=>{var o;e.setColumnVisibility(r?{}:(o=e.initialState.columnVisibility)!=null?o:{})},e.toggleAllColumnsVisible=r=>{var o;r=(o=r)!=null?o:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((n,i)=>({...n,[i.id]:r||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>r=>{var o;e.toggleAllColumnsVisible((o=r.target)==null?void 0:o.checked)}}},Ma=[Rx,ek,Hx,Gx,Tx,Jx,Lx,Nx,$x,Wx,Ex];function tk(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let r={_features:Ma};const o=r._features.reduce((c,f)=>Object.assign(c,f.getDefaultOptions==null?void 0:f.getDefaultOptions(r)),{}),n=c=>r.options.mergeOptions?r.options.mergeOptions(o,c):{...o,...c};let s={...{},...(t=e.initialState)!=null?t:{}};r._features.forEach(c=>{var f;s=(f=c.getInitialState==null?void 0:c.getInitialState(s))!=null?f:s});const a=[];let l=!1;const u={_features:Ma,options:{...o,...e},initialState:s,_queue:c=>{a.push(c),l||(l=!0,Promise.resolve().then(()=>{for(;a.length;)a.shift()();l=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{r.setState(r.initialState)},setOptions:c=>{const f=Ht(c,r.options);r.options=n(f)},getState:()=>r.options.state,setState:c=>{r.options.onStateChange==null||r.options.onStateChange(c)},_getRowId:(c,f,g)=>{var d;return(d=r.options.getRowId==null?void 0:r.options.getRowId(c,f,g))!=null?d:`${g?[g.id,f].join("."):f}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(c,f)=>{const g=(f?r.getCoreRowModel():r.getRowModel()).rowsById[c];if(!g)throw process.env.NODE_ENV!=="production"?new Error(`getRow expected an ID, but got ${c}`):new Error;return g},_getDefaultColumnDef:L(()=>[r.options.defaultColumn],c=>{var f;return c=(f=c)!=null?f:{},{header:g=>{const d=g.header.column.columnDef;return d.accessorKey?d.accessorKey:d.accessorFn?d.id:null},cell:g=>{var d,p;return(d=(p=g.renderValue())==null||p.toString==null?void 0:p.toString())!=null?d:null},...r._features.reduce((g,d)=>Object.assign(g,d.getDefaultColumnDef==null?void 0:d.getDefaultColumnDef()),{}),...c}},{debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns},key:process.env.NODE_ENV==="development"&&"getDefaultColumnDef"}),_getColumnDefs:()=>r.options.columns,getAllColumns:L(()=>[r._getColumnDefs()],c=>{const f=function(g,d,p){return p===void 0&&(p=0),g.map(h=>{const b=Bx(r,h,p,d),v=h;return b.columns=v.columns?f(v.columns,b,p+1):[],b})};return f(c)},{key:process.env.NODE_ENV==="development"&&"getAllColumns",debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllFlatColumns:L(()=>[r.getAllColumns()],c=>c.flatMap(f=>f.getFlatColumns()),{key:process.env.NODE_ENV==="development"&&"getAllFlatColumns",debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),_getAllFlatColumnsById:L(()=>[r.getAllFlatColumns()],c=>c.reduce((f,g)=>(f[g.id]=g,f),{}),{key:process.env.NODE_ENV==="development"&&"getAllFlatColumnsById",debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllLeafColumns:L(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(c,f)=>{let g=c.flatMap(d=>d.getLeafColumns());return f(g)},{key:process.env.NODE_ENV==="development"&&"getAllLeafColumns",debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getColumn:c=>{const f=r._getAllFlatColumnsById()[c];return process.env.NODE_ENV!=="production"&&!f&&console.error(`[Table] Column with id '${c}' does not exist.`),f}};Object.assign(r,u);for(let c=0;c<r._features.length;c++){const f=r._features[c];f==null||f.createTable==null||f.createTable(r)}return r}function rk(e,t,r,o){const n=()=>{var s;return(s=i.getValue())!=null?s:e.options.renderFallbackValue},i={id:`${t.id}_${r.id}`,row:t,column:r,getValue:()=>t.getValue(o),renderValue:n,getContext:L(()=>[e,r,t,i],(s,a,l,u)=>({table:s,column:a,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),{key:process.env.NODE_ENV==="development"&&"cell.getContext",debug:()=>e.options.debugAll})};return e._features.forEach(s=>{s.createCell==null||s.createCell(i,r,t,e)},{}),i}const dn=(e,t,r,o,n,i,s)=>{let a={id:t,index:o,original:r,depth:n,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(a._valuesCache.hasOwnProperty(l))return a._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return a._valuesCache[l]=u.accessorFn(a.original,o),a._valuesCache[l]},getUniqueValues:l=>{if(a._uniqueValuesCache.hasOwnProperty(l))return a._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(a._uniqueValuesCache[l]=u.columnDef.getUniqueValues(a.original,o),a._uniqueValuesCache[l]):(a._uniqueValuesCache[l]=[a.getValue(l)],a._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=a.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:i??[],getLeafRows:()=>su(a.subRows,l=>l.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let l=[],u=a;for(;;){const c=u.getParentRow();if(!c)break;l.push(c),u=c}return l.reverse()},getAllCells:L(()=>[e.getAllLeafColumns()],l=>l.map(u=>rk(e,a,u,u.id)),{key:process.env.NODE_ENV==="development"&&"row.getAllCells",debug:()=>{var l;return(l=e.options.debugAll)!=null?l:e.options.debugRows}}),_getAllCellsByColumnId:L(()=>[a.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),{key:process.env.NODE_ENV==="production"&&"row.getAllCellsByColumnId",debug:()=>{var l;return(l=e.options.debugAll)!=null?l:e.options.debugRows}})};for(let l=0;l<e._features.length;l++){const u=e._features[l];u==null||u.createRow==null||u.createRow(a,e)}return a};function ok(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function nk(){return e=>L(()=>[e.options.data],t=>{const r={rows:[],flatRows:[],rowsById:{}},o=function(n,i,s){i===void 0&&(i=0);const a=[];for(let u=0;u<n.length;u++){const c=dn(e,e._getRowId(n[u],u,s),n[u],u,i,void 0,s?.id);if(r.flatRows.push(c),r.rowsById[c.id]=c,a.push(c),e.options.getSubRows){var l;c.originalSubRows=e.options.getSubRows(n[u],u),(l=c.originalSubRows)!=null&&l.length&&(c.subRows=o(c.originalSubRows,i+1,c))}}return a};return r.rows=o(t),r},{key:process.env.NODE_ENV==="development"&&"getRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function ik(e,t,r){return r.options.filterFromLeafRows?sk(e,t,r):ak(e,t,r)}function sk(e,t,r){var o;const n=[],i={},s=(o=r.options.maxLeafRowFilterDepth)!=null?o:100,a=function(l,u){u===void 0&&(u=0);const c=[];for(let g=0;g<l.length;g++){var f;let d=l[g];const p=dn(r,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(p.columnFilters=d.columnFilters,(f=d.subRows)!=null&&f.length&&u<s){if(p.subRows=a(d.subRows,u+1),d=p,t(d)&&!p.subRows.length){c.push(d),i[d.id]=d,n.push(d);continue}if(t(d)||p.subRows.length){c.push(d),i[d.id]=d,n.push(d);continue}}else d=p,t(d)&&(c.push(d),i[d.id]=d,n.push(d))}return c};return{rows:a(e),flatRows:n,rowsById:i}}function ak(e,t,r){var o;const n=[],i={},s=(o=r.options.maxLeafRowFilterDepth)!=null?o:100,a=function(l,u){u===void 0&&(u=0);const c=[];for(let g=0;g<l.length;g++){let d=l[g];if(t(d)){var f;if((f=d.subRows)!=null&&f.length&&u<s){const h=dn(r,d.id,d.original,d.index,d.depth,void 0,d.parentId);h.subRows=a(d.subRows,u+1),d=h}c.push(d),n.push(d),i[d.id]=d}}return c};return{rows:a(e),flatRows:n,rowsById:i}}function lk(){return e=>L(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,r,o)=>{if(!t.rows.length||!(r!=null&&r.length)&&!o){for(let g=0;g<t.flatRows.length;g++)t.flatRows[g].columnFilters={},t.flatRows[g].columnFiltersMeta={};return t}const n=[],i=[];(r??[]).forEach(g=>{var d;const p=e.getColumn(g.id);if(!p)return;const h=p.getFilterFn();if(!h){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${p.id}.`);return}n.push({id:g.id,filterFn:h,resolvedValue:(d=h.resolveFilterValue==null?void 0:h.resolveFilterValue(g.value))!=null?d:g.value})});const s=r.map(g=>g.id),a=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(g=>g.getCanGlobalFilter());o&&a&&l.length&&(s.push("__global__"),l.forEach(g=>{var d;i.push({id:g.id,filterFn:a,resolvedValue:(d=a.resolveFilterValue==null?void 0:a.resolveFilterValue(o))!=null?d:o})}));let u,c;for(let g=0;g<t.flatRows.length;g++){const d=t.flatRows[g];if(d.columnFilters={},n.length)for(let p=0;p<n.length;p++){u=n[p];const h=u.id;d.columnFilters[h]=u.filterFn(d,h,u.resolvedValue,b=>{d.columnFiltersMeta[h]=b})}if(i.length){for(let p=0;p<i.length;p++){c=i[p];const h=c.id;if(c.filterFn(d,h,c.resolvedValue,b=>{d.columnFiltersMeta[h]=b})){d.columnFilters.__global__=!0;break}}d.columnFilters.__global__!==!0&&(d.columnFilters.__global__=!1)}}const f=g=>{for(let d=0;d<s.length;d++)if(g.columnFilters[s[d]]===!1)return!1;return!0};return ik(t.rows,f,e)},{key:process.env.NODE_ENV==="development"&&"getFilteredRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function ck(){return(e,t)=>L(()=>{var r;return[(r=e.getColumn(t))==null?void 0:r.getFacetedRowModel()]},r=>{if(!r)return new Map;let o=new Map;for(let i=0;i<r.flatRows.length;i++){const s=r.flatRows[i].getUniqueValues(t);for(let a=0;a<s.length;a++){const l=s[a];if(o.has(l)){var n;o.set(l,((n=o.get(l))!=null?n:0)+1)}else o.set(l,1)}}return o},{key:process.env.NODE_ENV==="development"&&"getFacetedUniqueValues_"+t,debug:()=>{var r;return(r=e.options.debugAll)!=null?r:e.options.debugTable},onChange:()=>{}})}function uk(){return(e,t)=>L(()=>{var r;return[(r=e.getColumn(t))==null?void 0:r.getFacetedRowModel()]},r=>{var o;if(!r)return;const n=(o=r.flatRows[0])==null?void 0:o.getUniqueValues(t);if(typeof n>"u")return;let i=[n,n];for(let s=0;s<r.flatRows.length;s++){const a=r.flatRows[s].getUniqueValues(t);for(let l=0;l<a.length;l++){const u=a[l];u<i[0]?i[0]=u:u>i[1]&&(i[1]=u)}}return i},{key:process.env.NODE_ENV==="development"&&"getFacetedMinMaxValues_"+t,debug:()=>{var r;return(r=e.options.debugAll)!=null?r:e.options.debugTable},onChange:()=>{}})}function dk(){return e=>L(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(t!=null&&t.length))return r;const o=e.getState().sorting,n=[],i=o.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),s={};i.forEach(l=>{const u=e.getColumn(l.id);u&&(s[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const a=l=>{const u=l.map(c=>({...c}));return u.sort((c,f)=>{for(let d=0;d<i.length;d+=1){var g;const p=i[d],h=s[p.id],b=(g=p?.desc)!=null?g:!1;let v=0;if(h.sortUndefined){const m=c.getValue(p.id),w=f.getValue(p.id),x=m===void 0,k=w===void 0;(x||k)&&(v=x&&k?0:x?h.sortUndefined:-h.sortUndefined)}if(v===0&&(v=h.sortingFn(c,f,p.id)),v!==0)return b&&(v*=-1),h.invertSorting&&(v*=-1),v}return c.index-f.index}),u.forEach(c=>{var f;n.push(c),(f=c.subRows)!=null&&f.length&&(c.subRows=a(c.subRows))}),u};return{rows:a(r.rows),flatRows:n,rowsById:r.rowsById}},{key:process.env.NODE_ENV==="development"&&"getSortedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function fk(){return e=>L(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,r)=>{if(!r.rows.length||!t.length)return r;const o=t.filter(l=>e.getColumn(l)),n=[],i={},s=function(l,u,c){if(u===void 0&&(u=0),u>=o.length)return l.map(p=>(p.depth=u,n.push(p),i[p.id]=p,p.subRows&&(p.subRows=s(p.subRows,u+1,p.id)),p));const f=o[u],g=gk(l,f);return Array.from(g.entries()).map((p,h)=>{let[b,v]=p,m=`${f}:${b}`;m=c?`${c}>${m}`:m;const w=s(v,u+1,m),x=u?su(v,_=>_.subRows):v,k=dn(e,m,x[0].original,h,u,void 0,c);return Object.assign(k,{groupingColumnId:f,groupingValue:b,subRows:w,leafRows:x,getValue:_=>{if(o.includes(_)){if(k._valuesCache.hasOwnProperty(_))return k._valuesCache[_];if(v[0]){var S;k._valuesCache[_]=(S=v[0].getValue(_))!=null?S:void 0}return k._valuesCache[_]}if(k._groupingValuesCache.hasOwnProperty(_))return k._groupingValuesCache[_];const E=e.getColumn(_),F=E?.getAggregationFn();if(F)return k._groupingValuesCache[_]=F(_,x,v),k._groupingValuesCache[_]}}),w.forEach(_=>{n.push(_),i[_.id]=_}),k})},a=s(r.rows,0);return a.forEach(l=>{n.push(l),i[l.id]=l}),{rows:a,flatRows:n,rowsById:i}},{key:process.env.NODE_ENV==="development"&&"getGroupedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}})}function gk(e,t){const r=new Map;return e.reduce((o,n)=>{const i=`${n.getGroupingValue(t)}`,s=o.get(i);return s?s.push(n):o.set(i,[n]),o},r)}function pk(){return e=>L(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,r,o)=>!r.rows.length||t!==!0&&!Object.keys(t??{}).length||!o?r:vu(r),{key:process.env.NODE_ENV==="development"&&"getExpandedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}})}function vu(e){const t=[],r=o=>{var n;t.push(o),(n=o.subRows)!=null&&n.length&&o.getIsExpanded()&&o.subRows.forEach(r)};return e.rows.forEach(r),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function hk(e){return t=>L(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(r,o)=>{if(!o.rows.length)return o;const{pageSize:n,pageIndex:i}=r;let{rows:s,flatRows:a,rowsById:l}=o;const u=n*i,c=u+n;s=s.slice(u,c);let f;t.options.paginateExpandedRows?f={rows:s,flatRows:a,rowsById:l}:f=vu({rows:s,flatRows:a,rowsById:l}),f.flatRows=[];const g=d=>{f.flatRows.push(d),d.subRows.length&&d.subRows.forEach(g)};return f.rows.forEach(g),f},{key:process.env.NODE_ENV==="development"&&"getPaginationRowModel",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugTable}})}/**
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
*/function vt(e,t){return e?vk(e)?y.createElement(e,t):e:null}function vk(e){return mk(e)||typeof e=="function"||bk(e)}function mk(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function bk(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function yk(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=y.useState(()=>({current:tk(t)})),[o,n]=y.useState(()=>r.current.initialState);return r.current.setOptions(i=>({...i,...e,state:{...o,...e.state},onStateChange:s=>{n(s),e.onStateChange==null||e.onStateChange(s)}})),r.current}const wk=(e,t,r)=>{const o=e.getValue(t);return Array.isArray(r)&&(r?.length===0||r.includes(`${o}`))},xk=(e,t)=>{const{columns:r,data:o,rowSelectionMode:n}=e,[i,s]=y.useState({pageSize:e.pageSize||10,pageIndex:0}),[a,l]=y.useState(e.sortingState??[]),[u,c]=y.useState(e.columnFilterState??[]),[f,g]=y.useState(e.defaultGlobalFilter??""),[d,p]=y.useState(e.groupingState??[]),[h,b]=y.useState(e.rowSelectionState??{}),[v,m]=y.useState(e.columnVisibility??{}),[w,x]=y.useState(()=>e.columnOrderState??r.map(T=>T.id)),[k,_]=y.useState(e.expandedState??{}),[S,E]=y.useState(e.columnPinningState??{}),F=yk({columns:r,data:o,filterFns:{arrIncludesSome:wk},initialState:{expanded:!0},state:{pagination:i,sorting:a,columnFilters:u,globalFilter:f,grouping:d,expanded:k,rowSelection:h,columnOrder:w,columnVisibility:v,columnPinning:S},columnResizeMode:"onChange",enableRowSelection:n!==void 0,enableMultiRowSelection:n==="multiple",enableFilters:!0,enableGlobalFilter:!0,enableColumnFilters:!0,filterFromLeafRows:!0,autoResetExpanded:!1,onRowSelectionChange:b,onPaginationChange:s,onSortingChange:l,onColumnFiltersChange:c,onGlobalFilterChange:g,onGroupingChange:p,onColumnOrderChange:x,onExpandedChange:_,onColumnVisibilityChange:m,onColumnPinningChange:E,getCoreRowModel:nk(),getPaginationRowModel:hk(),getSortedRowModel:dk(),getFilteredRowModel:lk(),getGroupedRowModel:fk(),getExpandedRowModel:pk(),getFacetedUniqueValues:ck(),getFacetedMinMaxValues:uk()}),O=y.useCallback(()=>({pagination:i,sorting:a,columnFilters:u,globalFilter:f,grouping:d,expanded:k,rowSelection:h,columnOrder:w,columnVisibility:v,columnPinning:S}),[i,a,u,f,d,k,h,w,v,S]);return y.useImperativeHandle(t,()=>({table:F,getTableState:O,saveCurrentTableState:T=>{const B=O(),R=JSON.stringify(B);return localStorage.setItem(T,R),!0},applySavedView:T=>{const B=localStorage.getItem(T);if(B){const R=JSON.parse(B);return l(R.sorting),c(R.columnFilters),g(R.globalFilter),p(R.grouping),_(R.expanded),b(R.rowSelection),x(R.columnOrder),m(R.columnVisibility),E(R.columnPinning),setTimeout(()=>{s(R.pagination)},10),!0}return!1}}),[F,O]),{table:F,globalFilter:f,setGlobalFilter:g}};function Jt(){return Jt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Jt.apply(this,arguments)}function kk(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,i;for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var Sk=["bottom","height","left","right","top","width"],_k=function(t,r){return t===void 0&&(t={}),r===void 0&&(r={}),Sk.some(function(o){return t[o]!==r[o]})},Vt=new Map,mu,Ck=function e(){var t=[];Vt.forEach(function(r,o){var n=o.getBoundingClientRect();_k(n,r.rect)&&(r.rect=n,t.push(r))}),t.forEach(function(r){r.callbacks.forEach(function(o){return o(r.rect)})}),mu=window.requestAnimationFrame(e)};function Bk(e,t){return{observe:function(){var o=Vt.size===0;Vt.has(e)?Vt.get(e).callbacks.push(t):Vt.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),o&&Ck()},unobserve:function(){var o=Vt.get(e);if(o){var n=o.callbacks.indexOf(t);n>=0&&o.callbacks.splice(n,1),o.callbacks.length||Vt.delete(e),Vt.size||cancelAnimationFrame(mu)}}}}var zo=typeof window<"u"?q.useLayoutEffect:q.useEffect;function Rk(e,t){t===void 0&&(t={width:0,height:0});var r=q.useState(e.current),o=r[0],n=r[1],i=q.useReducer(Ek,t),s=i[0],a=i[1],l=q.useRef(!1);return zo(function(){e.current!==o&&n(e.current)}),zo(function(){if(o&&!l.current){l.current=!0;var u=o.getBoundingClientRect();a({rect:u})}},[o]),q.useEffect(function(){if(o){var u=Bk(o,function(c){a({rect:c})});return u.observe(),function(){u.unobserve()}}},[o]),s}function Ek(e,t){var r=t.rect;return e.height!==r.height||e.width!==r.width?r:e}var Pk=function(){return 50},Nk=function(t){return t},Tk=function(t,r){var o=r?"offsetWidth":"offsetHeight";return t[o]},Dk=function(t){for(var r=Math.max(t.start-t.overscan,0),o=Math.min(t.end+t.overscan,t.size-1),n=[],i=r;i<=o;i++)n.push(i);return n};function ms(e){var t,r=e.size,o=r===void 0?0:r,n=e.estimateSize,i=n===void 0?Pk:n,s=e.overscan,a=s===void 0?1:s,l=e.paddingStart,u=l===void 0?0:l,c=e.paddingEnd,f=c===void 0?0:c,g=e.parentRef,d=e.horizontal,p=e.scrollToFn,h=e.useObserver,b=e.initialRect,v=e.onScrollElement,m=e.scrollOffsetFn,w=e.keyExtractor,x=w===void 0?Nk:w,k=e.measureSize,_=k===void 0?Tk:k,S=e.rangeExtractor,E=S===void 0?Dk:S,F=d?"width":"height",O=d?"scrollLeft":"scrollTop",T=q.useRef({scrollOffset:0,measurements:[]}),B=q.useState(0),R=B[0],H=B[1];T.current.scrollOffset=R;var Z=h||Rk,Y=Z(g,b),Q=Y[F];T.current.outerSize=Q;var ue=q.useCallback(function(se){g.current&&(g.current[O]=se)},[g,O]),Se=p||ue;p=q.useCallback(function(se){Se(se,ue)},[ue,Se]);var me=q.useState({}),De=me[0],Me=me[1],Le=q.useCallback(function(){return Me({})},[]),D=q.useRef([]),z=q.useMemo(function(){var se=D.current.length>0?Math.min.apply(Math,D.current):0;D.current=[];for(var we=T.current.measurements.slice(0,se),ae=se;ae<o;ae++){var Ve=x(ae),be=De[Ve],nt=we[ae-1]?we[ae-1].end:u,Ye=typeof be=="number"?be:i(ae),xe=nt+Ye;we[ae]={index:ae,start:nt,size:Ye,end:xe,key:Ve}}return we},[i,De,u,o,x]),$=(((t=z[o-1])==null?void 0:t.end)||u)+f;T.current.measurements=z,T.current.totalSize=$;var M=v?v.current:g.current,J=q.useRef(m);J.current=m,zo(function(){if(!M){H(0);return}var se=function(ae){var Ve=J.current?J.current(ae):M[O];H(Ve)};return se(),M.addEventListener("scroll",se,{capture:!1,passive:!0}),function(){M.removeEventListener("scroll",se)}},[M,O]);var _e=Ik(T.current),Ae=_e.start,j=_e.end,Fe=q.useMemo(function(){return E({start:Ae,end:j,overscan:a,size:z.length})},[Ae,j,a,z.length,E]),kt=q.useRef(_);kt.current=_;var Ze=q.useMemo(function(){for(var se=[],we=function(nt,Ye){var xe=Fe[nt],ur=z[xe],pt=Jt(Jt({},ur),{},{measureRef:function(dr){if(dr){var Nr=kt.current(dr,d);if(Nr!==pt.size){var to=T.current.scrollOffset;pt.start<to&&ue(to+(Nr-pt.size)),D.current.push(xe),Me(function(gn){var Tr;return Jt(Jt({},gn),{},(Tr={},Tr[pt.key]=Nr,Tr))})}}}});se.push(pt)},ae=0,Ve=Fe.length;ae<Ve;ae++)we(ae);return se},[Fe,ue,d,z]),Mt=q.useRef(!1);zo(function(){Mt.current&&Me({}),Mt.current=!0},[i]);var Ce=q.useCallback(function(se,we){var ae=we===void 0?{}:we,Ve=ae.align,be=Ve===void 0?"start":Ve,nt=T.current,Ye=nt.scrollOffset,xe=nt.outerSize;be==="auto"&&(se<=Ye?be="start":se>=Ye+xe?be="end":be="start"),be==="start"?p(se):be==="end"?p(se-xe):be==="center"&&p(se-xe/2)},[p]),St=q.useCallback(function(se,we){var ae=we===void 0?{}:we,Ve=ae.align,be=Ve===void 0?"auto":Ve,nt=kk(ae,["align"]),Ye=T.current,xe=Ye.measurements,ur=Ye.scrollOffset,pt=Ye.outerSize,it=xe[Math.max(0,Math.min(se,o-1))];if(it){if(be==="auto")if(it.end>=ur+pt)be="end";else if(it.start<=ur)be="start";else return;var dr=be==="center"?it.start+it.size/2:be==="end"?it.end:it.start;Ce(dr,Jt({align:be},nt))}},[Ce,o]),fn=q.useCallback(function(){for(var se=arguments.length,we=new Array(se),ae=0;ae<se;ae++)we[ae]=arguments[ae];St.apply(void 0,we),requestAnimationFrame(function(){St.apply(void 0,we)})},[St]);return{virtualItems:Ze,totalSize:$,scrollToOffset:Ce,scrollToIndex:fn,measure:Le}}var Fk=function(t,r,o,n){for(;t<=r;){var i=(t+r)/2|0,s=o(i);if(s<n)t=i+1;else if(s>n)r=i-1;else return i}return t>0?t-1:0};function Ik(e){for(var t=e.measurements,r=e.outerSize,o=e.scrollOffset,n=t.length-1,i=function(u){return t[u].start},s=Fk(0,n,i,o),a=s;a<n&&t[a].end<o+r;)a++;return{start:s,end:a}}const Ok=zt({searchInput:{width:"90%",marginBottom:"8px",marginLeft:"10px",marginRight:"10px"}}),zk=({column:e,table:t})=>{const r=t.getPreFilteredRowModel().flatRows[0]?.getValue(e.id),o=e.getFilterValue(),[n,i]=y.useState([]);y.useEffect(()=>{const v=typeof r=="number"||!isNaN(r)?Array.from(e.getFacetedUniqueValues().keys()).sort((m,w)=>Number(m)-Number(w)):Array.from(e.getFacetedUniqueValues().keys()).sort();i(v)},[e.getFacetedUniqueValues()]);const[s,a]=y.useState(""),l=y.useMemo(()=>s?n.filter(v=>v.toLowerCase().includes(s.toLowerCase())):n,[s,n]),u=y.useRef(null),c=ms({parentRef:u,size:l.length,overscan:15}),{virtualItems:f,totalSize:g}=c,d=f.length>0&&f?.[0]?.start||0,p=f.length>0?g-(f?.[f.length-1]?.end||0):0,h=o?.length>0&&o?.length!==n?.length?"mixed":o?.length===n?.length&&n?.length>0,b=Ok();return C.jsxs("div",{children:[C.jsx(eo,{value:s,onChange:(v,m)=>a(m.value),placeholder:"Search Options...",size:"small",className:b.searchInput}),C.jsxs("div",{ref:u,style:{display:"flex",flexDirection:"column",maxHeight:"300px",width:"100%",overflow:"auto"},children:[d>0&&C.jsx("span",{style:{paddingTop:`${d}px`}}),C.jsx(Tt,{checked:h,onChange:()=>{if(o?.length>0){e.setFilterValue(void 0);return}e.setFilterValue([...n])},label:"(Toggle All)"},`toggle-all-${e.id}`),f.map(v=>{const m=`${l[v.index]}`;return C.jsx(Tt,{checked:o?.includes(m)??!1,onChange:()=>{if(o?.includes(m)){e.setFilterValue(w=>w?.filter(x=>x!==m));return}e.setFilterValue(w=>[...w||[],m])},label:m},`${e.id}-${v.index}`)}),p>0&&C.jsx("span",{style:{paddingBottom:`${p}px`}})]},"filter-multi-select-checkbox")]})},Aa=({column:e,table:t})=>{const r=t.getPreFilteredRowModel().flatRows[0]?.getValue(e.id),o=e.getFilterValue(),[n,i]=y.useState([]);y.useEffect(()=>{const g=typeof r=="number"||!isNaN(r)?Array.from(e.getFacetedUniqueValues().keys()).sort((d,p)=>Number(d)-Number(p)):Array.from(e.getFacetedUniqueValues().keys()).sort();i(g)},[e.getFacetedUniqueValues()]);const s=y.useRef(null),a=ms({parentRef:s,size:n.length,overscan:15}),{virtualItems:l,totalSize:u}=a,c=l.length>0&&l?.[0]?.start||0,f=l.length>0?u-(l?.[l.length-1]?.end||0):0;return C.jsxs("div",{ref:s,style:{display:"flex",flexDirection:"column",maxHeight:"300px",width:"100%",overflowY:"auto"},children:[c>0&&C.jsx("div",{style:{paddingTop:`${c}px`}}),C.jsxs(tu,{layout:"vertical",value:o?.[0]||"",onChange:(g,d)=>{if(d.value===""){e.setFilterValue([]);return}e.setFilterValue([d.value])},children:[C.jsx(Io,{value:"",label:"None"}),l.map(g=>{const d=n[g.index];return C.jsx(Io,{value:d,label:d},d)})]}),f>0&&C.jsx("div",{style:{paddingBottom:`${f}px`}})]})},jk=zt({root:{...ie.padding("10px"),width:"100%"},defaultInput:{...ie.padding("10px"),width:"100%"}}),Mk=({column:e,table:t})=>{const r=e.getFilterFn()?.name||"arrIncludesSome",o=jk();switch(r){case"arrIncludesSome":return C.jsx(zk,{column:e,table:t});case"arrIncludesAll":return C.jsx(Aa,{column:e,table:t});case"arrIncludes":return C.jsx(Aa,{column:e,table:t})}return C.jsx("div",{className:o.root,children:C.jsx(eo,{type:"search",value:e.getFilterValue()||"",onChange:(n,i)=>{e.setFilterValue(i.value)},placeholder:"Search...",size:"small",className:o.defaultInput})})},Ak=$e(Xv,Zv),qk=$e(Yv,Qv),Lk=(e,t,r)=>(r.splice(r.indexOf(t),0,r.splice(r.indexOf(e),1)[0]),[...r]),Vk=zt({tHeadCell:{position:"relative",fontSize:te.fontSizeBase300,fontWeight:te.fontWeightBold,minWidth:"1rem",...ie.padding("2px","4px"),...ie.borderLeft("1px","solid",te.colorNeutralStroke1),...ie.borderRight("1px","solid",te.colorNeutralStroke1),...ie.borderBottom("1px","solid",te.colorNeutralStroke1)},tHeadCellContent:{display:"flex",alignContent:"space-between",alignItems:"center",justifyContent:"space-between",cursor:"pointer",width:"100%",minWidth:"1rem",...ie.padding("3px","4px")},tHeadContentBtn:{...ie.padding("0px","0px","0px","0px"),display:"flex",...ie.gap("5px"),alignContent:"space-between",alignItems:"center",justifyContent:"space-between",cursor:"pointer",width:"100%",height:"100%",minWidth:"1rem"},tHeadMenuPopover:{...ie.padding("0px","0px","0px","0px"),width:"300px"},resizer:{...ie.borderRight("1px","solid",te.colorNeutralBackground5),width:"8px",position:"absolute",top:0,right:0,bottom:0,cursor:"col-resize",resize:"horizontal",":hover":{borderRightWidth:"4px",borderRightColor:te.colorNeutralBackground2Pressed}},resizerActive:{borderRightWidth:"4px",borderRightColor:te.colorNeutralBackground2Pressed}}),Hk=({header:e,table:t,hideMenu:r,headerDepth:o,totalNumberOfHeaderDepth:n})=>{const{getState:i,setColumnOrder:s}=t,{columnOrder:a}=i(),{column:l}=e,[{isOver:u},c]=Hf({accept:"column",drop:h=>{const b=Lk(h.id,l.id,a);s(b)},collect:h=>({isOver:h.isOver()})}),[{isDragging:f},g,d]=Of({collect:h=>({isDragging:h.isDragging()}),item:()=>l,type:"column"}),p=Vk();return C.jsxs("th",{colSpan:e.colSpan,style:{opacity:f?.5:1,cursor:f?"grabbing":"pointer",alignItems:o===n?"left":"center",zIndex:99,backgroundColor:u?"#0000000d":"transparent",border:u?"1px dashed #0000000d":"none"},className:p.tHeadCell,children:[C.jsx("div",{ref:g,children:C.jsxs("div",{className:p.tHeadCellContent,ref:c,children:[C.jsx("div",{ref:d,children:e.isPlaceholder?null:C.jsxs(ut,{style:{display:"flex",alignItems:"center",justifyContent:"left",flex:1},onClick:h=>{e.column.toggleSorting(e.column.getIsSorted()==="asc",h.ctrlKey)},onDoubleClick:()=>{e.column.getCanGroup()&&e.column.getToggleGroupingHandler()()},appearance:"transparent",className:p.tHeadContentBtn,icon:{asc:C.jsx("strong",{children:C.jsx(Ak,{})}),desc:C.jsx("strong",{children:C.jsx(qk,{})})}[e.column.getIsSorted()]??void 0,iconPosition:"after",children:[C.jsx("strong",{children:vt(e.column.columnDef.header,e.getContext())}),e.column.getIsGrouped()&&C.jsx(zv,{}),e.column.getIsFiltered()&&C.jsx("strong",{children:C.jsx(Hi,{})}),e.column.getIsPinned()&&C.jsx(Mv,{})]})}),!e.isPlaceholder&&!r&&C.jsx("div",{children:C.jsxs(us,{children:[C.jsx(un,{disableButtonEnhancement:!0,children:C.jsx(Gc,{appearance:"transparent","aria-label":"View Column Actions"})}),C.jsx(fs,{className:p.tHeadMenuPopover,children:C.jsxs(ds,{children:[e.column.getCanSort()&&C.jsxs(jr,{children:[C.jsxs(tr,{children:["Sort by"," ",vt(e.column.columnDef.header,e.getContext())]}),C.jsx(lt,{onClick:h=>{const b=h.ctrlKey;e.column?.toggleSorting(!1,b)},icon:C.jsx(Uv,{}),disabled:e.column.getIsSorted()==="asc",children:"Sort A to Z"}),C.jsx(lt,{onClick:h=>{const b=h.ctrlKey;e.column?.toggleSorting(!0,b)},icon:C.jsx(Kv,{}),disabled:e.column.getIsSorted()==="desc",children:"Sort Z to A"}),C.jsx(Co,{})]},"sort-group"),e.column.getCanGroup()&&C.jsxs(jr,{children:[C.jsxs(tr,{children:["Group by"," ",vt(e.column.columnDef.header,e.getContext())]}),!e.column.getIsGrouped()&&C.jsxs(lt,{onClick:()=>e.column.getToggleGroupingHandler()(),icon:C.jsx(nc,{}),children:["Group by"," ",vt(e.column.columnDef.header,e.getContext())]}),e.column.getIsGrouped()&&C.jsxs(lt,{onClick:()=>e.column.getToggleGroupingHandler()(),icon:C.jsx(Ov,{}),children:["Remove Grouping on"," ",vt(e.column.columnDef.header,e.getContext())]}),C.jsx(Co,{})]},"grouping-group"),e.column.getCanSort()&&C.jsxs(jr,{children:[C.jsxs(tr,{children:["Pin Column"," ",vt(e.column.columnDef.header,e.getContext())]}),C.jsx(lt,{onClick:()=>{e.column?.pin("left")},icon:C.jsx(Sv,{}),disabled:e.column.getIsPinned()==="left",children:"To Left"}),C.jsx(lt,{onClick:()=>{e.column?.pin("right")},icon:C.jsx(_v,{}),disabled:e.column.getIsPinned()==="right",children:"To Right"}),["left","right"].includes(e.column.getIsPinned())&&C.jsx(lt,{onClick:()=>{e.column?.pin(!1)},icon:C.jsx(Av,{}),children:"Unpin Column"}),C.jsx(Co,{})]},"pin columns"),e.column.getCanFilter()&&C.jsxs(jr,{children:[C.jsxs(tr,{children:["Filter by"," ",vt(e.column.columnDef.header,e.getContext())]}),C.jsx(Mk,{column:e.column,table:t})]},"filter-group")]})})]})})]})}),e.column.getCanResize()&&C.jsx("div",{onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:A(p.resizer,l.getIsResizing()&&p.resizerActive)})]})},$k=zt({invertedWrapper:{backgroundColor:te.colorNeutralBackground1},row:{alignItems:"center",display:"grid",paddingBottom:"10px",position:"relative",...ie.gap("10px"),gridTemplateColumns:"min-content 20% 15% 30% 29%"}}),Gk=e=>{const{numberOfItems:t=16,numberOfColumns:r=5}=e,o=$k();return C.jsx("div",{className:o.invertedWrapper,children:C.jsx(nu,{children:[...Array(t)].map((n,i)=>C.jsx("div",{className:o.row,children:[...Array(r)].map((s,a)=>a===0?C.jsx(Si,{shape:"circle",size:24},a):C.jsx(Si,{size:16},a))},i))})})},Wk=zt({wrapper:{backgroundColor:te.colorNeutralBackground1,display:"flex",flexWrap:"wrap",alignContent:"center",justifyContent:"center",minHeight:"300px"}}),Uk=({message:e})=>{const t=Wk();return C.jsx("div",{className:t.wrapper,children:C.jsx("div",{children:e||C.jsx(iu,{children:"No Data to Show."})})})},Kk=zt({wrapper:{backgroundColor:te.colorNeutralBackground1,display:"flex",flexDirection:"column",flexWrap:"wrap",alignContent:"center",justifyContent:"center",minHeight:"300px"},iconWrapper:{display:"flex",flexWrap:"wrap",alignContent:"center",justifyContent:"center"}}),Xk=({message:e})=>{const t=Kk();return C.jsxs("div",{className:t.wrapper,children:[C.jsx("div",{className:t.iconWrapper,children:C.jsx(rm,{})}),C.jsx("div",{children:e||C.jsx(iu,{children:"No item found that matches your search term."})})]})},Zk=e=>{const t=px(),{table:r,rowSelectionMode:o}=e,n=y.useRef(null),{rows:i}=r.getRowModel(),s=ms({parentRef:n,size:i.length,overscan:10}),{virtualItems:a,totalSize:l}=s,u=a.length>0&&a?.[0]?.start||0,c=a.length>0?l-(a?.[a.length-1]?.end||0):0,f=r.getHeaderGroups(),g=e.isLoading&&a.length==0,d=!g&&e.data?.length==0,p=!g&&e?.data?.length>0&&a.length==0;return C.jsx(C.Fragment,{children:C.jsxs("div",{ref:n,className:t.tableContainer,children:[C.jsxs("table",{className:t.table,"aria-label":"Data Grid",children:[C.jsx("thead",{className:t.tHead,children:f?.map(h=>C.jsxs("tr",{children:[o==="multiple"&&C.jsx("th",{style:{width:"1rem"},children:h.depth===f?.length-1&&C.jsx(Tt,{checked:r.getIsSomeRowsSelected()?"mixed":r.getIsAllRowsSelected(),onChange:r.getToggleAllRowsSelectedHandler(),"aria-label":"Select All Rows",title:"Select All Rows"})}),o==="single"&&C.jsx("th",{style:{width:"1rem"},children:" "}),h.headers.map(b=>C.jsx(Hk,{header:b,table:r,hideMenu:h.depth!==f?.length-1,headerDepth:h.depth,totalNumberOfHeaderDepth:f?.length-1},b.id))]},h.id))}),C.jsxs("tbody",{className:t.tBody,children:[u>0&&C.jsx("tr",{className:t.tBodyRow,"aria-hidden":!0,children:C.jsx("td",{style:{height:`${u}px`}})}),a.map(h=>{const b=i[h.index];return C.jsxs("tr",{className:b.getIsSelected()||b.getIsAllSubRowsSelected()?t.tBodySelectedRow:t.tBodyRow,children:[o=="multiple"&&C.jsx("td",{className:t.tBodyCell,children:C.jsx(Tt,{checked:b.getIsSomeSelected()?"mixed":b.getIsSelected()||b.getIsAllSubRowsSelected(),disabled:!b.getCanSelect(),onChange:b.getToggleSelectedHandler(),"aria-label":"Select Row"})}),o=="single"&&C.jsx("td",{className:t.tBodyCell,children:C.jsx(Io,{checked:b.getIsSelected(),disabled:!b.getCanSelect(),onChange:b.getToggleSelectedHandler(),"aria-label":"Select Row"})}),b.getVisibleCells().map(v=>C.jsx("td",{key:v.id,style:{width:v.column.getSize()},className:t.tBodyCell,children:v.getIsGrouped()?C.jsx(C.Fragment,{children:C.jsx(ut,{onClick:b.getToggleExpandedHandler(),style:{cursor:b.getCanExpand()?"pointer":"normal"},appearance:"transparent",icon:b.getIsExpanded()?C.jsx(xx,{}):C.jsx(wx,{}),children:C.jsxs("strong",{children:[vt(v.column.columnDef.cell,v.getContext())," ","(",b.subRows.length,")"]})})}):v.getIsAggregated()?C.jsx("strong",{children:vt(v.column.columnDef.aggregatedCell??v.column.columnDef.cell,v.getContext())}):v.getIsPlaceholder()?null:vt(v.column.columnDef.cell,v.getContext())}))]},b.id)}),c>0&&C.jsx("tr",{className:t.tBodyRow,"aria-hidden":!0,children:C.jsx("td",{style:{height:`${c}px`}})})]}),o==="multiple"&&!g&&!d&&!p&&C.jsx("tfoot",{className:t.tFoot,children:C.jsxs("tr",{children:[C.jsx("td",{className:"p-1",children:C.jsx(Tt,{checked:r.getIsSomePageRowsSelected()?"mixed":r.getIsAllPageRowsSelected(),onChange:r.getToggleAllPageRowsSelectedHandler(),"aria-label":"Select All Current Page Rows",title:"Select All Current Page Rows"})}),C.jsxs("td",{colSpan:20,children:[r.getIsAllPageRowsSelected()?"Unselect":"Select"," ","All Current Page Rows (",r.getRowModel().rows.length,")"]})]})})]}),g&&C.jsx(Gk,{}),d&&C.jsx(Uk,{message:e.noItemPage}),p&&C.jsx(Xk,{message:e.noFilterMatchPage})]})})};function Yk(e,t){const{table:r,globalFilter:o,setGlobalFilter:n}=xk(e,t);return gx(),C.jsxs(uf,{backend:og,children:[C.jsx(Sx,{table:r,gridTitle:e.gridTitle,globalFilter:o,setGlobalFilter:n}),C.jsx(Zk,{table:r,data:e.data,isLoading:e.isLoading||!1,rowSelectionMode:e.rowSelectionMode,noFilterMatchPage:e.noFilterMatchPage,noItemPage:e.noItemPage}),C.jsx(mx,{table:r,pageSizeOptions:e.pageSizeOptions})]})}const Qk=y.forwardRef(Yk);exports.Table=Qk;exports.createColumnHelper=ok;
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useMemo } from 'react';
|
|
4
|
+
import { useDrop, useDrag, DndProvider } from 'react-dnd';
|
|
5
|
+
import { HTML5Backend } from 'react-dnd-html5-backend';
|
|
6
|
+
import { makeStaticStyles, makeStyles, shorthands, tokens, useId, Dropdown, Option, Input, Button, Popover, PopoverTrigger, PopoverSurface, MenuGroupHeader, Checkbox, Divider, Menu, MenuTrigger, MenuPopover, MenuList, MenuItem, RadioGroup, Radio, InlineDrawer, DrawerHeader, DrawerHeaderTitle, DrawerBody, Caption1Stronger, MenuButton, MenuGroup, MenuDivider, mergeClasses, Skeleton, SkeletonItem, Subtitle2Stronger } from '@fluentui/react-components';
|
|
7
|
+
import { PreviousRegular, ArrowPreviousFilled, ArrowNextFilled, NextRegular, bundleIcon, SaveFilled, SaveRegular, TableSimpleCheckmarkFilled, TableSimpleCheckmarkRegular, SearchFilled, SearchRegular, FilterFilled, FilterRegular, CodeTextOff16Filled, CodeTextOff16Regular, ColumnEditFilled, ColumnEditRegular, GroupFilled, GroupRegular, ChevronRightFilled, ChevronRightRegular, ChevronDownRegular, ChevronDownFilled, DragFilled, DragRegular, TextGrammarDismissRegular, Search24Regular, FilterDismissFilled, Dismiss24Regular, ArrowSortDown20Filled, ArrowSortDown20Regular, ArrowSortUp20Filled, ArrowSortUp20Regular, GroupListRegular, PinRegular, TextSortAscendingFilled, TextSortDescendingFilled, GroupDismissFilled, ArrowStepInLeftRegular, ArrowStepInRightRegular, PinOffRegular, DocumentSearch24Regular } from '@fluentui/react-icons';
|
|
8
|
+
import { useReactTable, getCoreRowModel, getPaginationRowModel, getSortedRowModel, getFilteredRowModel, getGroupedRowModel, getExpandedRowModel, getFacetedUniqueValues, getFacetedMinMaxValues, flexRender } from '@tanstack/react-table';
|
|
9
|
+
export { createColumnHelper } from '@tanstack/react-table';
|
|
10
|
+
import { useVirtual } from 'react-virtual';
|
|
11
|
+
|
|
12
|
+
const useStaticStyles = makeStaticStyles({
|
|
13
|
+
"*": {
|
|
14
|
+
boxSizing: "border-box",
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
const useTableStaticStyles = makeStyles({
|
|
18
|
+
tableContainer: Object.assign(Object.assign({ height: "650px", width: "100%" }, shorthands.overflow("hidden", "auto")), {
|
|
19
|
+
/* width */
|
|
20
|
+
":hover": Object.assign({}, shorthands.overflow("auto", "auto")), "::-webkit-scrollbar": Object.assign({ width: "6px", height: "4px" }, shorthands.borderRadius("50%")),
|
|
21
|
+
/* Track */
|
|
22
|
+
"::-webkit-scrollbar-track": {
|
|
23
|
+
"background-color": "#f1f1f1",
|
|
24
|
+
},
|
|
25
|
+
/* Handle */
|
|
26
|
+
"::-webkit-scrollbar-thumb": {
|
|
27
|
+
"background-color": "#888",
|
|
28
|
+
},
|
|
29
|
+
/* Handle on hover */
|
|
30
|
+
"::-webkit-scrollbar-thumb:hover": {
|
|
31
|
+
"background-color": "#555",
|
|
32
|
+
} }),
|
|
33
|
+
table: {
|
|
34
|
+
width: "100%",
|
|
35
|
+
borderCollapse: "collapse",
|
|
36
|
+
},
|
|
37
|
+
tHead: Object.assign(Object.assign({}, shorthands.padding("0px", "0px", "0px", "0px")), { zIndex: 1, backgroundColor: tokens.colorPaletteAnchorBackground2, color: tokens.colorNeutralForeground1, position: "sticky", top: 0, width: "100%", boxShadow: tokens.shadow2 }),
|
|
38
|
+
tHeadRow: Object.assign(Object.assign({}, shorthands.padding("0px", "0px", "0px", "0px")), shorthands.borderBottom(tokens.strokeWidthThickest, "solid", tokens.colorNeutralStroke1)),
|
|
39
|
+
tBody: Object.assign(Object.assign({}, shorthands.padding("0px", "0px", "0px", "0px")), { zIndex: 0 }),
|
|
40
|
+
tBodyRow: Object.assign(Object.assign(Object.assign({}, shorthands.padding("0px", "0px", "0px", "0px")), shorthands.borderBottom(tokens.strokeWidthThin, "solid", tokens.colorNeutralStroke1)), { ":nth-child(even)": {
|
|
41
|
+
backgroundColor: tokens.colorNeutralBackground2,
|
|
42
|
+
}, ":hover": {
|
|
43
|
+
backgroundColor: tokens.colorNeutralBackground2Hover,
|
|
44
|
+
} }),
|
|
45
|
+
tBodySelectedRow: Object.assign(Object.assign({ backgroundColor: tokens.colorBrandBackground2 }, shorthands.borderBottom(tokens.strokeWidthThin, "solid", tokens.colorNeutralStroke1)), { ":hover": {
|
|
46
|
+
backgroundColor: tokens.colorBrandBackground2Hover,
|
|
47
|
+
} }),
|
|
48
|
+
tBodyGroupedRow: Object.assign({ backgroundColor: tokens.colorNeutralBackground2 }, shorthands.borderBottom(tokens.strokeWidthThin, "solid", tokens.colorNeutralStroke1)),
|
|
49
|
+
tBodyCell: Object.assign(Object.assign({ backgroundColor: "transparent" }, shorthands.padding("2px", "4px")), { minHeight: "35px", height: "35px" }),
|
|
50
|
+
tFoot: {
|
|
51
|
+
backgroundColor: tokens.colorNeutralBackground1,
|
|
52
|
+
color: tokens.colorNeutralForeground1,
|
|
53
|
+
position: "sticky",
|
|
54
|
+
bottom: 0,
|
|
55
|
+
left: 0,
|
|
56
|
+
width: "100%",
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
const usePaginationStyle = makeStyles({
|
|
61
|
+
paginationContainer: Object.assign({ width: "100%", backgroundColor: tokens.colorNeutralBackground2Hover }, shorthands.padding("5px")),
|
|
62
|
+
wrapper: {
|
|
63
|
+
columnGap: "0.2rem",
|
|
64
|
+
display: "flex",
|
|
65
|
+
alignItems: "center",
|
|
66
|
+
alignContent: "center",
|
|
67
|
+
justifyContent: "space-between",
|
|
68
|
+
// if smaller size display flex column
|
|
69
|
+
"@media screen and (max-width: 640px)": {
|
|
70
|
+
flexDirection: "column",
|
|
71
|
+
rowGap: "0.2rem",
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
pageBtnContainer: {
|
|
75
|
+
display: "flex",
|
|
76
|
+
columnGap: "3px",
|
|
77
|
+
},
|
|
78
|
+
pageBtn: {
|
|
79
|
+
minWidth: "1.5rem",
|
|
80
|
+
minHeight: "1.5rem",
|
|
81
|
+
alignContent: "center",
|
|
82
|
+
alignItems: "center",
|
|
83
|
+
},
|
|
84
|
+
pageSelectionWrapper: {
|
|
85
|
+
minWidth: "1.5rem",
|
|
86
|
+
},
|
|
87
|
+
pageSelectionDropdown: {
|
|
88
|
+
minWidth: "100%",
|
|
89
|
+
},
|
|
90
|
+
pageSizeInput: {
|
|
91
|
+
minWidth: "1.5rem",
|
|
92
|
+
width: "4rem",
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
const range = (from, to, step = 1) => {
|
|
97
|
+
var _a;
|
|
98
|
+
return (_a = [...Array(Math.floor((to - from) / step) + 1)]) === null || _a === void 0 ? void 0 : _a.map((_, i) => from + i * step);
|
|
99
|
+
};
|
|
100
|
+
const DEFAULT_NUMBER_OF_PAGE_BTN = 5;
|
|
101
|
+
const Pagination = (props) => {
|
|
102
|
+
const { table, pageSizeOptions = [10, 20, 50, 100, 1000] } = props;
|
|
103
|
+
const pageSizeSelectionId = useId("page-size-selector");
|
|
104
|
+
const styles = usePaginationStyle();
|
|
105
|
+
const totalNumberOfPage = table.getPageCount();
|
|
106
|
+
const currentPage = table.getState().pagination.pageIndex;
|
|
107
|
+
const pageSize = table.getState().pagination.pageSize;
|
|
108
|
+
const pageSelectionOptions = useMemo(() => {
|
|
109
|
+
let start = currentPage - Math.floor(DEFAULT_NUMBER_OF_PAGE_BTN / 2);
|
|
110
|
+
let end = currentPage + Math.floor(DEFAULT_NUMBER_OF_PAGE_BTN / 2);
|
|
111
|
+
if (start < 1) {
|
|
112
|
+
start = 1;
|
|
113
|
+
end =
|
|
114
|
+
totalNumberOfPage > DEFAULT_NUMBER_OF_PAGE_BTN
|
|
115
|
+
? DEFAULT_NUMBER_OF_PAGE_BTN
|
|
116
|
+
: totalNumberOfPage;
|
|
117
|
+
}
|
|
118
|
+
else if (end > totalNumberOfPage) {
|
|
119
|
+
const possibleStart = totalNumberOfPage - DEFAULT_NUMBER_OF_PAGE_BTN + 1;
|
|
120
|
+
start = possibleStart < 1 ? 1 : possibleStart;
|
|
121
|
+
end = totalNumberOfPage;
|
|
122
|
+
}
|
|
123
|
+
const currentPageOptions = end - start >= 0 ? range(start, end) : [];
|
|
124
|
+
return (currentPageOptions === null || currentPageOptions === void 0 ? void 0 : currentPageOptions.length) ? [...currentPageOptions] : [1];
|
|
125
|
+
}, [totalNumberOfPage, currentPage]);
|
|
126
|
+
return (jsx("div", Object.assign({ className: styles.paginationContainer }, { children: jsxs("div", Object.assign({ className: styles.wrapper }, { children: [jsx("div", Object.assign({ className: styles.pageSelectionWrapper }, { children: jsx(Dropdown, Object.assign({ id: pageSizeSelectionId, size: "small", selectedOptions: [`${pageSize}`], placeholder: "Select Page Size", value: table.getState().pagination.pageSize.toString(), onOptionSelect: (_, data) => { var _a; return table.setPageSize(Number(+((_a = data.selectedOptions) === null || _a === void 0 ? void 0 : _a[0]))); }, className: styles.pageSelectionDropdown, "aria-label": "Select Page Size" }, { children: pageSizeOptions === null || pageSizeOptions === void 0 ? void 0 : pageSizeOptions.map((option) => (jsx(Option, Object.assign({ value: `${option}` }, { children: `${option}` }), option))) })) })), jsxs("div", Object.assign({ className: styles.pageBtnContainer }, { children: [jsxs("div", { children: [jsxs("span", { children: ["Page", " ", jsxs("strong", { children: [table.getState().pagination.pageIndex + 1, " of", " ", table.getPageCount()] })] }), jsxs("span", { children: [" ", "| Go to page:", " ", jsx(Input, { type: "number", size: "small", value: `${table.getState().pagination.pageIndex + 1}`, onChange: (e, data) => {
|
|
127
|
+
const page = data.value ? Number(e.target.value) - 1 : 0;
|
|
128
|
+
if (page >= 0 && page < table.getPageCount()) {
|
|
129
|
+
table.setPageIndex(page);
|
|
130
|
+
}
|
|
131
|
+
}, className: styles.pageSizeInput, "aria-label": "Page Number", autoComplete: "off", autoCorrect: "off" })] })] }), jsx(Button, { size: "small", className: styles.pageBtn, shape: "circular", onClick: () => table.setPageIndex(0), disabled: !table.getCanPreviousPage(), icon: jsx(PreviousRegular, {}), "aria-label": "Go to first page" }), jsx(Button, { size: "small", className: styles.pageBtn, shape: "circular", onClick: () => table.previousPage(), disabled: !table.getCanPreviousPage(), icon: jsx(ArrowPreviousFilled, {}), "aria-label": "Go to previous page" }), pageSelectionOptions === null || pageSelectionOptions === void 0 ? void 0 : pageSelectionOptions.map((option, index) => (jsx(Button, Object.assign({ shape: "circular", appearance: option - 1 === currentPage ? "primary" : undefined, onClick: () => table.setPageIndex(option - 1), "aria-label": `Show Page ${option}`, size: "small", className: styles.pageBtn }, { children: option }), index))), jsx(Button, { size: "small", className: styles.pageBtn, shape: "circular", onClick: () => table.nextPage(), disabled: !table.getCanNextPage(), icon: jsx(ArrowNextFilled, {}), "aria-label": "Go to next page" }), jsx(Button, { size: "small", shape: "circular", className: styles.pageBtn, onClick: () => table.setPageIndex(table.getPageCount() - 1), disabled: !table.getCanNextPage(), icon: jsx(NextRegular, {}), "aria-label": "Go to last page" })] }))] })) })));
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
bundleIcon(SaveFilled, SaveRegular);
|
|
135
|
+
bundleIcon(TableSimpleCheckmarkFilled, TableSimpleCheckmarkRegular);
|
|
136
|
+
bundleIcon(SearchFilled, SearchRegular);
|
|
137
|
+
bundleIcon(FilterFilled, FilterRegular);
|
|
138
|
+
const ClearFilterIcon = bundleIcon(CodeTextOff16Filled, CodeTextOff16Regular);
|
|
139
|
+
const ToggleSelectColumnIcon = bundleIcon(ColumnEditFilled, ColumnEditRegular);
|
|
140
|
+
const ToggleGroupColumnIcon = bundleIcon(GroupFilled, GroupRegular);
|
|
141
|
+
const GroupCollapsedIcon = bundleIcon(ChevronRightFilled, ChevronRightRegular);
|
|
142
|
+
const GroupExpandedIcon = bundleIcon(ChevronDownRegular, ChevronDownFilled);
|
|
143
|
+
bundleIcon(DragFilled, DragRegular);
|
|
144
|
+
|
|
145
|
+
const useGridHeaderStyles = makeStyles({
|
|
146
|
+
tableTopHeaderContainer: Object.assign({ display: "flex", justifyContent: "space-between", alignItems: "flex-end", width: "100%", backgroundColor: tokens.colorBrandBackground2Hover }, shorthands.padding("5px")),
|
|
147
|
+
tableTopHeaderLeft: {
|
|
148
|
+
display: "flex",
|
|
149
|
+
justifyContent: "flex-start",
|
|
150
|
+
},
|
|
151
|
+
tableTopHeaderRight: Object.assign({ display: "flex", justifyContent: "flex-end" }, shorthands.gap("3px")),
|
|
152
|
+
tableTopHeaderColumnTogglePopover: {
|
|
153
|
+
display: "flex",
|
|
154
|
+
flexDirection: "column",
|
|
155
|
+
justifyContent: "flex-start",
|
|
156
|
+
alignItems: "flex-start",
|
|
157
|
+
width: "100%",
|
|
158
|
+
height: "100%",
|
|
159
|
+
},
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
const GridHeader = (props) => {
|
|
163
|
+
const { table, gridTitle, globalFilter, setGlobalFilter } = props;
|
|
164
|
+
const styles = useGridHeaderStyles();
|
|
165
|
+
const resetAllFilters = React.useCallback(() => {
|
|
166
|
+
table.setGlobalFilter('');
|
|
167
|
+
table.resetColumnFilters();
|
|
168
|
+
}, [table]);
|
|
169
|
+
const resetAllGrouping = React.useCallback(() => {
|
|
170
|
+
table.resetGrouping();
|
|
171
|
+
}, [table]);
|
|
172
|
+
const clearAllSelection = React.useCallback(() => {
|
|
173
|
+
table.toggleAllRowsSelected(false);
|
|
174
|
+
}, [table]);
|
|
175
|
+
return (jsxs("div", Object.assign({ className: styles.tableTopHeaderContainer }, { children: [jsx("div", Object.assign({ className: styles.tableTopHeaderLeft }, { children: gridTitle })), jsxs("div", Object.assign({ className: styles.tableTopHeaderRight }, { children: [jsxs(Popover, Object.assign({ withArrow: true }, { children: [jsx(PopoverTrigger, Object.assign({ disableButtonEnhancement: true }, { children: jsx(Button, { icon: jsx(ToggleGroupColumnIcon, {}), "aria-label": "Toggle Group Column" }) })), jsx(PopoverSurface, { children: jsxs("div", Object.assign({ className: styles.tableTopHeaderColumnTogglePopover }, { children: [jsx(MenuGroupHeader, { children: "Group Columns" }), table.getAllLeafColumns().map((column) => {
|
|
176
|
+
if (column.id === 'select')
|
|
177
|
+
return null;
|
|
178
|
+
if (column.id === 'id')
|
|
179
|
+
return null;
|
|
180
|
+
return (jsx(Checkbox, { checked: column.getIsGrouped(), onChange: column.getToggleGroupingHandler(), disabled: !column.getCanGroup(), label: jsx("span", { children: column.id }) }, column.id));
|
|
181
|
+
})] })) })] })), jsxs(Popover, Object.assign({ withArrow: true }, { children: [jsx(PopoverTrigger, Object.assign({ disableButtonEnhancement: true }, { children: jsx(Button, { icon: jsx(ToggleSelectColumnIcon, {}), "aria-label": "Toggle Column Visibility" }) })), jsx(PopoverSurface, { children: jsxs("div", Object.assign({ className: styles.tableTopHeaderColumnTogglePopover }, { children: [jsx(MenuGroupHeader, { children: "Toggle Columns" }), jsx(Checkbox, { checked: table.getIsAllColumnsVisible(), onChange: table.getToggleAllColumnsVisibilityHandler(), label: 'Toggle All' }), jsx(Divider, {}), table.getAllLeafColumns().map((column) => {
|
|
182
|
+
if (column.id === 'select')
|
|
183
|
+
return null;
|
|
184
|
+
if (column.id === 'id')
|
|
185
|
+
return null;
|
|
186
|
+
return (jsx(Checkbox, { checked: column.getIsVisible(), onChange: column.getToggleVisibilityHandler(), label: column.id, disabled: !column.getCanHide() }, column.id));
|
|
187
|
+
})] })) })] })), jsxs(Menu, { children: [jsx(MenuTrigger, Object.assign({ disableButtonEnhancement: true }, { children: jsx(Button
|
|
188
|
+
// appearance="subtle"
|
|
189
|
+
, {
|
|
190
|
+
// appearance="subtle"
|
|
191
|
+
icon: jsx(TextGrammarDismissRegular, {}), "aria-label": "View Menu" }) })), jsx(MenuPopover, { children: jsxs(MenuList, { children: [jsx(MenuItem, Object.assign({ icon: jsx(ClearFilterIcon, {}), onClick: resetAllFilters }, { children: "Clear All Filters" })), jsx(MenuItem, Object.assign({ icon: jsx(ClearFilterIcon, {}), onClick: resetAllGrouping }, { children: "Clear All Grouping" })), jsx(MenuItem, Object.assign({ icon: jsx(ClearFilterIcon, {}), onClick: clearAllSelection }, { children: "Clear All Selection" }))] }) })] }), jsx(DebouncedInput, { value: globalFilter !== null && globalFilter !== void 0 ? globalFilter : '', onChange: (value) => setGlobalFilter(String(value)), className: "p-2 font-lg shadow border border-block", placeholder: "Search all columns...", openFilterDrawer: props.openFilterDrawer, setFilterDrawerOpen: props.setFilterDrawerOpen })] }))] })));
|
|
192
|
+
};
|
|
193
|
+
// A debounced input react component
|
|
194
|
+
function DebouncedInput({ value: initialValue, onChange, debounce = 500, openFilterDrawer, setFilterDrawerOpen, }) {
|
|
195
|
+
const [value, setValue] = React.useState('');
|
|
196
|
+
React.useEffect(() => {
|
|
197
|
+
setValue(initialValue);
|
|
198
|
+
}, [initialValue]);
|
|
199
|
+
React.useEffect(() => {
|
|
200
|
+
const timeout = setTimeout(() => {
|
|
201
|
+
onChange(value);
|
|
202
|
+
}, debounce);
|
|
203
|
+
return () => clearTimeout(timeout);
|
|
204
|
+
}, [value, onChange, debounce]);
|
|
205
|
+
return (jsx(Input, { placeholder: "Search Keyword", value: value, onChange: (_, data) => setValue(data.value), type: "search", autoComplete: "off", contentBefore: jsx(Search24Regular, {}), style: { width: '300px' }, contentAfter: jsx(Button, { appearance: "subtle", icon: openFilterDrawer ? jsx(FilterDismissFilled, {}) : jsx(FilterFilled, {}), "aria-label": "View Menu", onClick: () => {
|
|
206
|
+
setFilterDrawerOpen((open) => !open);
|
|
207
|
+
} }) }));
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const arrIncludesSome = (row, columnId, value) => {
|
|
211
|
+
// Rank the item
|
|
212
|
+
const rowValue = row.getValue(columnId);
|
|
213
|
+
const passed = Array.isArray(value) &&
|
|
214
|
+
((value === null || value === void 0 ? void 0 : value.length) === 0 || value.includes(`${rowValue}`));
|
|
215
|
+
// console.log("rowValue", rowValue, "value", value, "passed", passed, "columnId", columnId)
|
|
216
|
+
// Return if the item should be filtered in/out
|
|
217
|
+
return passed;
|
|
218
|
+
};
|
|
219
|
+
const useGridContainer = (props, ref) => {
|
|
220
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
221
|
+
const { columns, data, rowSelectionMode } = props;
|
|
222
|
+
const [pagination, setPagination] = React.useState({
|
|
223
|
+
pageSize: props.pageSize || 10,
|
|
224
|
+
pageIndex: 0,
|
|
225
|
+
});
|
|
226
|
+
const [sorting, setSorting] = React.useState((_a = props.sortingState) !== null && _a !== void 0 ? _a : []);
|
|
227
|
+
const [columnFilters, setColumnFilters] = React.useState((_b = props.columnFilterState) !== null && _b !== void 0 ? _b : []);
|
|
228
|
+
const [globalFilter, setGlobalFilter] = React.useState((_c = props.defaultGlobalFilter) !== null && _c !== void 0 ? _c : "");
|
|
229
|
+
const [grouping, setGrouping] = React.useState((_d = props.groupingState) !== null && _d !== void 0 ? _d : []);
|
|
230
|
+
const [rowSelection, setRowSelection] = React.useState((_e = props.rowSelectionState) !== null && _e !== void 0 ? _e : {});
|
|
231
|
+
const [columnVisibility, setColumnVisibility] = React.useState((_f = props.columnVisibility) !== null && _f !== void 0 ? _f : {});
|
|
232
|
+
const [columnOrder, setColumnOrder] = React.useState(() => { var _a; return (_a = props.columnOrderState) !== null && _a !== void 0 ? _a : columns.map((column) => column.id); });
|
|
233
|
+
const [expanded, setExpanded] = React.useState((_g = props.expandedState) !== null && _g !== void 0 ? _g : {});
|
|
234
|
+
const [columnPinning, setColumnPinning] = React.useState((_h = props.columnPinningState) !== null && _h !== void 0 ? _h : {});
|
|
235
|
+
const table = useReactTable({
|
|
236
|
+
columns: columns,
|
|
237
|
+
data,
|
|
238
|
+
filterFns: {
|
|
239
|
+
arrIncludesSome,
|
|
240
|
+
},
|
|
241
|
+
initialState: {
|
|
242
|
+
expanded: true
|
|
243
|
+
},
|
|
244
|
+
state: {
|
|
245
|
+
pagination,
|
|
246
|
+
sorting,
|
|
247
|
+
columnFilters,
|
|
248
|
+
globalFilter,
|
|
249
|
+
grouping,
|
|
250
|
+
expanded,
|
|
251
|
+
rowSelection,
|
|
252
|
+
columnOrder,
|
|
253
|
+
columnVisibility,
|
|
254
|
+
columnPinning,
|
|
255
|
+
},
|
|
256
|
+
columnResizeMode: "onChange",
|
|
257
|
+
enableRowSelection: rowSelectionMode !== undefined,
|
|
258
|
+
enableMultiRowSelection: rowSelectionMode === "multiple",
|
|
259
|
+
enableFilters: true,
|
|
260
|
+
enableGlobalFilter: true,
|
|
261
|
+
enableColumnFilters: true,
|
|
262
|
+
filterFromLeafRows: true,
|
|
263
|
+
autoResetExpanded: false,
|
|
264
|
+
onRowSelectionChange: setRowSelection,
|
|
265
|
+
onPaginationChange: setPagination,
|
|
266
|
+
onSortingChange: setSorting,
|
|
267
|
+
onColumnFiltersChange: setColumnFilters,
|
|
268
|
+
onGlobalFilterChange: setGlobalFilter,
|
|
269
|
+
onGroupingChange: setGrouping,
|
|
270
|
+
onColumnOrderChange: setColumnOrder,
|
|
271
|
+
onExpandedChange: setExpanded,
|
|
272
|
+
onColumnVisibilityChange: setColumnVisibility,
|
|
273
|
+
onColumnPinningChange: setColumnPinning,
|
|
274
|
+
getCoreRowModel: getCoreRowModel(),
|
|
275
|
+
getPaginationRowModel: getPaginationRowModel(),
|
|
276
|
+
getSortedRowModel: getSortedRowModel(),
|
|
277
|
+
getFilteredRowModel: getFilteredRowModel(),
|
|
278
|
+
getGroupedRowModel: getGroupedRowModel(),
|
|
279
|
+
getExpandedRowModel: getExpandedRowModel(),
|
|
280
|
+
getFacetedUniqueValues: getFacetedUniqueValues(),
|
|
281
|
+
getFacetedMinMaxValues: getFacetedMinMaxValues(),
|
|
282
|
+
});
|
|
283
|
+
const getTableState = React.useCallback(() => {
|
|
284
|
+
return {
|
|
285
|
+
pagination,
|
|
286
|
+
sorting,
|
|
287
|
+
columnFilters,
|
|
288
|
+
globalFilter,
|
|
289
|
+
grouping,
|
|
290
|
+
expanded,
|
|
291
|
+
rowSelection,
|
|
292
|
+
columnOrder,
|
|
293
|
+
columnVisibility,
|
|
294
|
+
columnPinning,
|
|
295
|
+
};
|
|
296
|
+
}, [
|
|
297
|
+
pagination,
|
|
298
|
+
sorting,
|
|
299
|
+
columnFilters,
|
|
300
|
+
globalFilter,
|
|
301
|
+
grouping,
|
|
302
|
+
expanded,
|
|
303
|
+
rowSelection,
|
|
304
|
+
columnOrder,
|
|
305
|
+
columnVisibility,
|
|
306
|
+
columnPinning,
|
|
307
|
+
]);
|
|
308
|
+
React.useImperativeHandle(ref, () => {
|
|
309
|
+
return {
|
|
310
|
+
table,
|
|
311
|
+
getTableState: getTableState,
|
|
312
|
+
saveCurrentTableState: (viewName) => {
|
|
313
|
+
const tableState = getTableState();
|
|
314
|
+
const tableStateString = JSON.stringify(tableState);
|
|
315
|
+
localStorage.setItem(viewName, tableStateString);
|
|
316
|
+
return true;
|
|
317
|
+
},
|
|
318
|
+
applySavedView: (viewName) => {
|
|
319
|
+
const tableStateString = localStorage.getItem(viewName);
|
|
320
|
+
if (tableStateString) {
|
|
321
|
+
const tableState = JSON.parse(tableStateString);
|
|
322
|
+
setSorting(tableState.sorting);
|
|
323
|
+
setColumnFilters(tableState.columnFilters);
|
|
324
|
+
setGlobalFilter(tableState.globalFilter);
|
|
325
|
+
setGrouping(tableState.grouping);
|
|
326
|
+
setExpanded(tableState.expanded);
|
|
327
|
+
setRowSelection(tableState.rowSelection);
|
|
328
|
+
setColumnOrder(tableState.columnOrder);
|
|
329
|
+
setColumnVisibility(tableState.columnVisibility);
|
|
330
|
+
setColumnPinning(tableState.columnPinning);
|
|
331
|
+
setTimeout(() => {
|
|
332
|
+
setPagination(tableState.pagination);
|
|
333
|
+
}, 10);
|
|
334
|
+
return true;
|
|
335
|
+
}
|
|
336
|
+
return false;
|
|
337
|
+
},
|
|
338
|
+
};
|
|
339
|
+
}, [table, getTableState]);
|
|
340
|
+
return {
|
|
341
|
+
table,
|
|
342
|
+
globalFilter,
|
|
343
|
+
setGlobalFilter,
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
const useCheckboxFilterStyles = makeStyles({
|
|
348
|
+
searchInput: {
|
|
349
|
+
width: '90%',
|
|
350
|
+
marginBottom: '8px',
|
|
351
|
+
marginLeft: '10px',
|
|
352
|
+
marginRight: '10px',
|
|
353
|
+
},
|
|
354
|
+
searchContainer: Object.assign(Object.assign({ display: 'flex', flexDirection: 'column', maxHeight: '300px', width: '100%' }, shorthands.overflow('auto', 'auto')), { '::-webkit-scrollbar': Object.assign({ width: '6px', height: '4px' }, shorthands.borderRadius('50%')),
|
|
355
|
+
/* Track */
|
|
356
|
+
'::-webkit-scrollbar-track': {
|
|
357
|
+
'background-color': '#f1f1f1',
|
|
358
|
+
},
|
|
359
|
+
/* Handle */
|
|
360
|
+
'::-webkit-scrollbar-thumb': {
|
|
361
|
+
'background-color': '#888',
|
|
362
|
+
},
|
|
363
|
+
/* Handle on hover */
|
|
364
|
+
'::-webkit-scrollbar-thumb:hover': {
|
|
365
|
+
'background-color': '#555',
|
|
366
|
+
} }),
|
|
367
|
+
});
|
|
368
|
+
const FilterMultiSelectCheckbox = ({ column, table, }) => {
|
|
369
|
+
var _a, _b, _c;
|
|
370
|
+
const firstValue = (_a = table
|
|
371
|
+
.getPreFilteredRowModel()
|
|
372
|
+
.flatRows[0]) === null || _a === void 0 ? void 0 : _a.getValue(column.id);
|
|
373
|
+
const columnFilterValue = column.getFilterValue();
|
|
374
|
+
const [filterOptions, setFilterOptions] = React.useState([]);
|
|
375
|
+
React.useEffect(() => {
|
|
376
|
+
const uniqueSortedOptions = typeof firstValue === 'number' || !isNaN(firstValue)
|
|
377
|
+
? Array.from(column.getFacetedUniqueValues().keys()).sort((a, b) => Number(a) - Number(b))
|
|
378
|
+
: Array.from(column.getFacetedUniqueValues().keys()).sort();
|
|
379
|
+
setFilterOptions(uniqueSortedOptions);
|
|
380
|
+
},
|
|
381
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
382
|
+
[column.getFacetedUniqueValues()]);
|
|
383
|
+
const [localColumnFilterValue, setLocalColumnFilterValue] = React.useState('');
|
|
384
|
+
const filterOptionsFiltered = React.useMemo(() => {
|
|
385
|
+
if (!localColumnFilterValue)
|
|
386
|
+
return filterOptions;
|
|
387
|
+
return filterOptions.filter((option) => {
|
|
388
|
+
var _a, _b, _c;
|
|
389
|
+
return (_b = (_a = `${option}`) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.includes((_c = `${localColumnFilterValue}`) === null || _c === void 0 ? void 0 : _c.toLowerCase());
|
|
390
|
+
});
|
|
391
|
+
}, [localColumnFilterValue, filterOptions]);
|
|
392
|
+
const filterContainer = React.useRef(null);
|
|
393
|
+
const rowVirtualizer = useVirtual({
|
|
394
|
+
parentRef: filterContainer,
|
|
395
|
+
size: filterOptionsFiltered.length,
|
|
396
|
+
overscan: 15,
|
|
397
|
+
});
|
|
398
|
+
const { virtualItems: virtualRows, totalSize } = rowVirtualizer;
|
|
399
|
+
const paddingTop = virtualRows.length > 0 ? ((_b = virtualRows === null || virtualRows === void 0 ? void 0 : virtualRows[0]) === null || _b === void 0 ? void 0 : _b.start) || 0 : 0;
|
|
400
|
+
const paddingBottom = virtualRows.length > 0
|
|
401
|
+
? totalSize - (((_c = virtualRows === null || virtualRows === void 0 ? void 0 : virtualRows[virtualRows.length - 1]) === null || _c === void 0 ? void 0 : _c.end) || 0)
|
|
402
|
+
: 0;
|
|
403
|
+
const allOptionChecked = (columnFilterValue === null || columnFilterValue === void 0 ? void 0 : columnFilterValue.length) > 0 &&
|
|
404
|
+
(columnFilterValue === null || columnFilterValue === void 0 ? void 0 : columnFilterValue.length) !== (filterOptions === null || filterOptions === void 0 ? void 0 : filterOptions.length)
|
|
405
|
+
? 'mixed'
|
|
406
|
+
: (columnFilterValue === null || columnFilterValue === void 0 ? void 0 : columnFilterValue.length) === (filterOptions === null || filterOptions === void 0 ? void 0 : filterOptions.length) &&
|
|
407
|
+
(filterOptions === null || filterOptions === void 0 ? void 0 : filterOptions.length) > 0;
|
|
408
|
+
const styles = useCheckboxFilterStyles();
|
|
409
|
+
return (jsxs("div", { children: [jsx(Input, { value: localColumnFilterValue, onChange: (_, data) => setLocalColumnFilterValue(data.value), placeholder: "Search Options...", size: "small", className: styles.searchInput }), jsxs("div", Object.assign({ ref: filterContainer, className: styles.searchContainer }, { children: [paddingTop > 0 && (jsx("span", { style: { paddingTop: `${paddingTop}px` } })), jsx(Checkbox, { checked: allOptionChecked, onChange: () => {
|
|
410
|
+
if ((columnFilterValue === null || columnFilterValue === void 0 ? void 0 : columnFilterValue.length) > 0) {
|
|
411
|
+
column.setFilterValue(undefined);
|
|
412
|
+
return;
|
|
413
|
+
}
|
|
414
|
+
column.setFilterValue([
|
|
415
|
+
...((filterOptions === null || filterOptions === void 0 ? void 0 : filterOptions.map((x) => `${x}`)) || []),
|
|
416
|
+
]);
|
|
417
|
+
}, label: '(Toggle All)' }, `toggle-all-${column.id}`), virtualRows.map((row) => {
|
|
418
|
+
var _a;
|
|
419
|
+
const value = `${filterOptionsFiltered[row.index]}`;
|
|
420
|
+
return (jsx(Checkbox, { checked: (_a = columnFilterValue === null || columnFilterValue === void 0 ? void 0 : columnFilterValue.includes(value)) !== null && _a !== void 0 ? _a : false, onChange: () => {
|
|
421
|
+
if (columnFilterValue === null || columnFilterValue === void 0 ? void 0 : columnFilterValue.includes(value)) {
|
|
422
|
+
column.setFilterValue((old) => old === null || old === void 0 ? void 0 : old.filter((v) => v !== value));
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
column.setFilterValue((old) => [
|
|
426
|
+
...(old || []),
|
|
427
|
+
value,
|
|
428
|
+
]);
|
|
429
|
+
}, label: value }, `${column.id}-${row.index}`));
|
|
430
|
+
}), paddingBottom > 0 && (jsx("span", { style: { paddingBottom: `${paddingBottom}px` } }))] }), 'filter-multi-select-checkbox')] }));
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
const useRadioFilterStyles = makeStyles({
|
|
434
|
+
searchInput: {
|
|
435
|
+
width: '90%',
|
|
436
|
+
marginBottom: '8px',
|
|
437
|
+
marginLeft: '10px',
|
|
438
|
+
marginRight: '10px',
|
|
439
|
+
},
|
|
440
|
+
searchContainer: Object.assign(Object.assign({ display: 'flex', flexDirection: 'column', maxHeight: '300px', width: '100%' }, shorthands.overflow('auto', 'auto')), { '::-webkit-scrollbar': Object.assign({ width: '6px', height: '4px' }, shorthands.borderRadius('50%')),
|
|
441
|
+
/* Track */
|
|
442
|
+
'::-webkit-scrollbar-track': {
|
|
443
|
+
'background-color': '#f1f1f1',
|
|
444
|
+
},
|
|
445
|
+
/* Handle */
|
|
446
|
+
'::-webkit-scrollbar-thumb': {
|
|
447
|
+
'background-color': '#888',
|
|
448
|
+
},
|
|
449
|
+
/* Handle on hover */
|
|
450
|
+
'::-webkit-scrollbar-thumb:hover': {
|
|
451
|
+
'background-color': '#555',
|
|
452
|
+
} }),
|
|
453
|
+
});
|
|
454
|
+
const FilterMultiSelectRadio = ({ column, table }) => {
|
|
455
|
+
var _a, _b, _c;
|
|
456
|
+
const firstValue = (_a = table
|
|
457
|
+
.getPreFilteredRowModel()
|
|
458
|
+
.flatRows[0]) === null || _a === void 0 ? void 0 : _a.getValue(column.id);
|
|
459
|
+
const columnFilterValue = column.getFilterValue();
|
|
460
|
+
const [filterOptions, setFilterOptions] = React.useState([]);
|
|
461
|
+
React.useEffect(() => {
|
|
462
|
+
const uniqueSortedOptions = typeof firstValue === "number" || !isNaN(firstValue) ?
|
|
463
|
+
Array.from(column.getFacetedUniqueValues().keys()).sort((a, b) => Number(a) - Number(b))
|
|
464
|
+
: Array.from(column.getFacetedUniqueValues().keys()).sort();
|
|
465
|
+
setFilterOptions(uniqueSortedOptions);
|
|
466
|
+
},
|
|
467
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
468
|
+
[column.getFacetedUniqueValues()]);
|
|
469
|
+
const [localColumnFilterValue, setLocalColumnFilterValue] = React.useState('');
|
|
470
|
+
const filterOptionsFiltered = React.useMemo(() => {
|
|
471
|
+
if (!localColumnFilterValue)
|
|
472
|
+
return filterOptions;
|
|
473
|
+
return filterOptions.filter((option) => {
|
|
474
|
+
var _a, _b, _c;
|
|
475
|
+
return (_b = (_a = `${option}`) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.includes((_c = `${localColumnFilterValue}`) === null || _c === void 0 ? void 0 : _c.toLowerCase());
|
|
476
|
+
});
|
|
477
|
+
}, [localColumnFilterValue, filterOptions]);
|
|
478
|
+
const filterContainer = React.useRef(null);
|
|
479
|
+
const rowVirtualizer = useVirtual({
|
|
480
|
+
parentRef: filterContainer,
|
|
481
|
+
size: filterOptionsFiltered.length,
|
|
482
|
+
overscan: 15,
|
|
483
|
+
});
|
|
484
|
+
const { virtualItems: virtualRows, totalSize } = rowVirtualizer;
|
|
485
|
+
const paddingTop = virtualRows.length > 0 ? ((_b = virtualRows === null || virtualRows === void 0 ? void 0 : virtualRows[0]) === null || _b === void 0 ? void 0 : _b.start) || 0 : 0;
|
|
486
|
+
const paddingBottom = virtualRows.length > 0
|
|
487
|
+
? totalSize - (((_c = virtualRows === null || virtualRows === void 0 ? void 0 : virtualRows[virtualRows.length - 1]) === null || _c === void 0 ? void 0 : _c.end) || 0)
|
|
488
|
+
: 0;
|
|
489
|
+
const styles = useRadioFilterStyles();
|
|
490
|
+
return (jsxs("div", { children: [jsx(Input, { value: localColumnFilterValue, onChange: (_, data) => setLocalColumnFilterValue(data.value), placeholder: "Search Options...", size: "small", className: styles.searchInput }), jsxs("div", Object.assign({ ref: filterContainer, className: styles.searchContainer }, { children: [paddingTop > 0 && jsx("div", { style: { paddingTop: `${paddingTop}px` } }), jsxs(RadioGroup, Object.assign({ layout: "vertical", value: (columnFilterValue === null || columnFilterValue === void 0 ? void 0 : columnFilterValue[0]) || '', onChange: (_, data) => {
|
|
491
|
+
if (data.value === '') {
|
|
492
|
+
column.setFilterValue([]);
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
495
|
+
column.setFilterValue([data.value]);
|
|
496
|
+
} }, { children: [jsx(Radio, { value: '', label: 'None' }), virtualRows.map((row) => {
|
|
497
|
+
const value = filterOptionsFiltered[row.index];
|
|
498
|
+
return jsx(Radio, { value: value, label: value }, value);
|
|
499
|
+
})] })), paddingBottom > 0 && (jsx("div", { style: { paddingBottom: `${paddingBottom}px` } }))] }))] }));
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
const useFilterStyles = makeStyles({
|
|
503
|
+
root: Object.assign(Object.assign({}, shorthands.padding("10px")), { width: "100%" }),
|
|
504
|
+
defaultInput: Object.assign(Object.assign({}, shorthands.padding("10px")), { width: "100%" })
|
|
505
|
+
});
|
|
506
|
+
const Filter = ({ column, table }) => {
|
|
507
|
+
var _a;
|
|
508
|
+
const sortFunctionName = ((_a = column.getFilterFn()) === null || _a === void 0 ? void 0 : _a.name) || "arrIncludesSome";
|
|
509
|
+
const styles = useFilterStyles();
|
|
510
|
+
switch (sortFunctionName) {
|
|
511
|
+
case "arrIncludesSome":
|
|
512
|
+
return (jsx(FilterMultiSelectCheckbox, { column: column, table: table }));
|
|
513
|
+
case "arrIncludesAll":
|
|
514
|
+
return (jsx(FilterMultiSelectRadio, { column: column, table: table }));
|
|
515
|
+
case "arrIncludes":
|
|
516
|
+
return (jsx(FilterMultiSelectRadio, { column: column, table: table }));
|
|
517
|
+
}
|
|
518
|
+
return (jsx("div", Object.assign({ className: styles.root }, { children: jsx(Input, { type: "search", value: (column.getFilterValue() || ""), onChange: (_, data) => {
|
|
519
|
+
column.setFilterValue(data.value);
|
|
520
|
+
}, placeholder: "Search...", size: "small", className: styles.defaultInput }) })));
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
const useFilterDrawerStyles = makeStyles({
|
|
524
|
+
drawerBody: Object.assign(Object.assign({}, shorthands.overflow('hidden', 'auto')), {
|
|
525
|
+
/* width */
|
|
526
|
+
':hover': Object.assign({}, shorthands.overflow('auto', 'auto')), '::-webkit-scrollbar': Object.assign({ width: '6px', height: '4px' }, shorthands.borderRadius('50%')),
|
|
527
|
+
/* Track */
|
|
528
|
+
'::-webkit-scrollbar-track': {
|
|
529
|
+
'background-color': '#f1f1f1',
|
|
530
|
+
},
|
|
531
|
+
/* Handle */
|
|
532
|
+
'::-webkit-scrollbar-thumb': {
|
|
533
|
+
'background-color': '#888',
|
|
534
|
+
},
|
|
535
|
+
/* Handle on hover */
|
|
536
|
+
'::-webkit-scrollbar-thumb:hover': {
|
|
537
|
+
'background-color': '#555',
|
|
538
|
+
} }),
|
|
539
|
+
});
|
|
540
|
+
const FilterDrawer = ({ open, setOpen, table }) => {
|
|
541
|
+
const headerGroups = table.getHeaderGroups();
|
|
542
|
+
const styles = useFilterDrawerStyles();
|
|
543
|
+
return (jsxs(InlineDrawer, Object.assign({ position: "end", open: open, separator: true }, { children: [jsx(DrawerHeader, { children: jsx(DrawerHeaderTitle, Object.assign({ action: jsx(Button, { appearance: "subtle", "aria-label": "Close", icon: jsx(Dismiss24Regular, {}), onClick: () => setOpen(false) }) }, { children: "Advance Filters" })) }), jsx(DrawerBody, Object.assign({ className: styles.drawerBody }, { children: headerGroups.map((headerGroup) => {
|
|
544
|
+
const canApplyFilter = headerGroup.depth === (headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.length) - 1;
|
|
545
|
+
if (!canApplyFilter)
|
|
546
|
+
return null;
|
|
547
|
+
return headerGroup.headers.map((header) => {
|
|
548
|
+
const canFilter = header.column.getCanFilter();
|
|
549
|
+
if (!canFilter)
|
|
550
|
+
return null;
|
|
551
|
+
return (jsx("div", { children: header.column.getCanFilter() && (jsxs("div", { children: [jsxs(Caption1Stronger, { children: ["Filter by", ' ', flexRender(header.column.columnDef.header, header.getContext())] }), jsx(Filter, { column: header.column, table: table })] }, 'filter-group')) }, header.column.id));
|
|
552
|
+
});
|
|
553
|
+
}) }))] })));
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
const SortAscIcon = bundleIcon(ArrowSortDown20Filled, ArrowSortDown20Regular);
|
|
557
|
+
const SortDescIcon = bundleIcon(ArrowSortUp20Filled, ArrowSortUp20Regular);
|
|
558
|
+
const reorderColumn = (draggedColumnId, targetColumnId, columnOrder) => {
|
|
559
|
+
columnOrder.splice(columnOrder.indexOf(targetColumnId), 0, columnOrder.splice(columnOrder.indexOf(draggedColumnId), 1)[0]);
|
|
560
|
+
return [...columnOrder];
|
|
561
|
+
};
|
|
562
|
+
const useTableHeaderCellStyles = makeStyles({
|
|
563
|
+
tHeadCell: Object.assign(Object.assign(Object.assign(Object.assign({ position: "relative", fontSize: tokens.fontSizeBase300, fontWeight: tokens.fontWeightBold, minWidth: "1rem" }, shorthands.padding("2px", "4px")), shorthands.borderLeft("1px", "solid", tokens.colorNeutralStroke1)), shorthands.borderRight("1px", "solid", tokens.colorNeutralStroke1)), shorthands.borderBottom("1px", "solid", tokens.colorNeutralStroke1)),
|
|
564
|
+
tHeadCellContent: Object.assign({ display: "flex", alignContent: "space-between", alignItems: "center", justifyContent: "space-between", cursor: "pointer", width: "100%", minWidth: "1rem" }, shorthands.padding("3px", "4px")),
|
|
565
|
+
tHeadContentBtn: Object.assign(Object.assign(Object.assign(Object.assign({}, shorthands.padding("0px", "0px", "0px", "0px")), { display: "flex" }), shorthands.gap("5px")), { alignContent: "space-between", alignItems: "center", justifyContent: "space-between", cursor: "pointer", width: "100%", height: "100%", minWidth: "1rem" }),
|
|
566
|
+
tHeadMenuPopover: Object.assign(Object.assign({}, shorthands.padding("0px", "0px", "0px", "0px")), { width: "300px" }),
|
|
567
|
+
resizer: Object.assign(Object.assign({}, shorthands.borderRight("1px", "solid", tokens.colorNeutralBackground5)), { width: "8px", position: "absolute", top: 0, right: 0, bottom: 0, cursor: "col-resize", resize: "horizontal", ":hover": {
|
|
568
|
+
borderRightWidth: "4px",
|
|
569
|
+
borderRightColor: tokens.colorNeutralBackground2Pressed,
|
|
570
|
+
} }),
|
|
571
|
+
resizerActive: {
|
|
572
|
+
borderRightWidth: "4px",
|
|
573
|
+
borderRightColor: tokens.colorNeutralBackground2Pressed,
|
|
574
|
+
},
|
|
575
|
+
});
|
|
576
|
+
const HeaderCell = ({ header, table, hideMenu, headerDepth, totalNumberOfHeaderDepth, }) => {
|
|
577
|
+
var _a;
|
|
578
|
+
const { getState, setColumnOrder } = table;
|
|
579
|
+
const { columnOrder } = getState();
|
|
580
|
+
const { column } = header;
|
|
581
|
+
const [{ isOver }, dropRef] = useDrop({
|
|
582
|
+
accept: "column",
|
|
583
|
+
drop: (draggedColumn) => {
|
|
584
|
+
const newColumnOrder = reorderColumn(draggedColumn.id, column.id, columnOrder);
|
|
585
|
+
setColumnOrder(newColumnOrder);
|
|
586
|
+
},
|
|
587
|
+
collect: (monitor) => ({
|
|
588
|
+
isOver: monitor.isOver(),
|
|
589
|
+
}),
|
|
590
|
+
});
|
|
591
|
+
const [{ isDragging }, dragRef, previewRef] = useDrag({
|
|
592
|
+
collect: (monitor) => ({
|
|
593
|
+
isDragging: monitor.isDragging(),
|
|
594
|
+
}),
|
|
595
|
+
item: () => column,
|
|
596
|
+
type: "column",
|
|
597
|
+
});
|
|
598
|
+
const styles = useTableHeaderCellStyles();
|
|
599
|
+
return (jsxs("th", Object.assign({ colSpan: header.colSpan, style: {
|
|
600
|
+
opacity: isDragging ? 0.5 : 1,
|
|
601
|
+
cursor: isDragging ? "grabbing" : "pointer",
|
|
602
|
+
alignItems: headerDepth === totalNumberOfHeaderDepth ? "left" : "center",
|
|
603
|
+
zIndex: 99,
|
|
604
|
+
backgroundColor: isOver ? "#0000000d" : "transparent",
|
|
605
|
+
border: isOver ? "1px dashed #0000000d" : "none",
|
|
606
|
+
}, className: styles.tHeadCell }, { children: [jsx("div", Object.assign({ ref: dragRef }, { children: jsxs("div", Object.assign({ className: styles.tHeadCellContent, ref: dropRef }, { children: [jsx("div", Object.assign({ ref: previewRef }, { children: header.isPlaceholder ? null : (jsxs(Button, Object.assign({ style: {
|
|
607
|
+
display: "flex",
|
|
608
|
+
alignItems: "center",
|
|
609
|
+
justifyContent: "left",
|
|
610
|
+
flex: 1,
|
|
611
|
+
}, onClick: (e) => {
|
|
612
|
+
header.column.toggleSorting(header.column.getIsSorted() === "asc", e.ctrlKey);
|
|
613
|
+
}, onDoubleClick: () => {
|
|
614
|
+
if (!header.column.getCanGroup())
|
|
615
|
+
return;
|
|
616
|
+
header.column.getToggleGroupingHandler()();
|
|
617
|
+
}, appearance: "transparent", className: styles.tHeadContentBtn, icon: (_a = {
|
|
618
|
+
asc: (jsx("strong", { children: jsx(SortAscIcon, {}) })),
|
|
619
|
+
desc: (jsx("strong", { children: jsx(SortDescIcon, {}) })),
|
|
620
|
+
}[header.column.getIsSorted()]) !== null && _a !== void 0 ? _a : undefined, iconPosition: "after" }, { children: [jsx("strong", { children: flexRender(header.column.columnDef.header, header.getContext()) }), header.column.getIsGrouped() && jsx(GroupListRegular, {}), header.column.getIsFiltered() && (jsx("strong", { children: jsx(FilterFilled, {}) })), header.column.getIsPinned() && jsx(PinRegular, {})] }))) })), !header.isPlaceholder && !hideMenu && (jsx("div", { children: jsxs(Menu, { children: [jsx(MenuTrigger, Object.assign({ disableButtonEnhancement: true }, { children: jsx(MenuButton, { appearance: "transparent", "aria-label": "View Column Actions" }) })), jsx(MenuPopover, Object.assign({ className: styles.tHeadMenuPopover }, { children: jsxs(MenuList, { children: [header.column.getCanSort() && (jsxs(MenuGroup, { children: [jsxs(MenuGroupHeader, { children: ["Sort by", " ", flexRender(header.column.columnDef.header, header.getContext())] }), jsx(MenuItem, Object.assign({ onClick: (e) => {
|
|
621
|
+
var _a;
|
|
622
|
+
const isControlKeySelected = e.ctrlKey;
|
|
623
|
+
(_a = header.column) === null || _a === void 0 ? void 0 : _a.toggleSorting(false, isControlKeySelected);
|
|
624
|
+
}, icon: jsx(TextSortAscendingFilled, {}), disabled: header.column.getIsSorted() === "asc" }, { children: "Sort A to Z" })), jsx(MenuItem, Object.assign({ onClick: (e) => {
|
|
625
|
+
var _a;
|
|
626
|
+
const isControlKeySelected = e.ctrlKey;
|
|
627
|
+
(_a = header.column) === null || _a === void 0 ? void 0 : _a.toggleSorting(true, isControlKeySelected);
|
|
628
|
+
}, icon: jsx(TextSortDescendingFilled, {}), disabled: header.column.getIsSorted() === "desc" }, { children: "Sort Z to A" })), jsx(MenuDivider, {})] }, "sort-group")), header.column.getCanGroup() && (jsxs(MenuGroup, { children: [jsxs(MenuGroupHeader, { children: ["Group by", " ", flexRender(header.column.columnDef.header, header.getContext())] }), !header.column.getIsGrouped() && (jsxs(MenuItem, Object.assign({ onClick: () => header.column.getToggleGroupingHandler()(), icon: jsx(GroupFilled, {}) }, { children: ["Group by", " ", flexRender(header.column.columnDef.header, header.getContext())] }))), header.column.getIsGrouped() && (jsxs(MenuItem, Object.assign({ onClick: () => header.column.getToggleGroupingHandler()(), icon: jsx(GroupDismissFilled, {}) }, { children: ["Remove Grouping on", " ", flexRender(header.column.columnDef.header, header.getContext())] }))), jsx(MenuDivider, {})] }, "grouping-group")), header.column.getCanSort() && (jsxs(MenuGroup, { children: [jsxs(MenuGroupHeader, { children: ["Pin Column", " ", flexRender(header.column.columnDef.header, header.getContext())] }), jsx(MenuItem, Object.assign({ onClick: () => {
|
|
629
|
+
var _a;
|
|
630
|
+
(_a = header.column) === null || _a === void 0 ? void 0 : _a.pin("left");
|
|
631
|
+
}, icon: jsx(ArrowStepInLeftRegular, {}), disabled: header.column.getIsPinned() === "left" }, { children: "To Left" })), jsx(MenuItem, Object.assign({ onClick: () => {
|
|
632
|
+
var _a;
|
|
633
|
+
(_a = header.column) === null || _a === void 0 ? void 0 : _a.pin("right");
|
|
634
|
+
}, icon: jsx(ArrowStepInRightRegular, {}), disabled: header.column.getIsPinned() === "right" }, { children: "To Right" })), ["left", "right"].includes(header.column.getIsPinned()) && (jsx(MenuItem, Object.assign({ onClick: () => {
|
|
635
|
+
var _a;
|
|
636
|
+
(_a = header.column) === null || _a === void 0 ? void 0 : _a.pin(false);
|
|
637
|
+
}, icon: jsx(PinOffRegular, {}) }, { children: "Unpin Column" }))), jsx(MenuDivider, {})] }, "pin columns")), header.column.getCanFilter() && (jsxs(MenuGroup, { children: [jsxs(MenuGroupHeader, { children: ["Filter by", " ", flexRender(header.column.columnDef.header, header.getContext())] }), jsx(Filter, { column: header.column, table: table })] }, "filter-group"))] }) }))] }) }))] })) })), header.column.getCanResize() && (jsx("div", { onMouseDown: header.getResizeHandler(), onTouchStart: header.getResizeHandler(), className: mergeClasses(styles.resizer, column.getIsResizing() && styles.resizerActive) }))] })));
|
|
638
|
+
};
|
|
639
|
+
|
|
640
|
+
const useLoadingStyles = makeStyles({
|
|
641
|
+
invertedWrapper: {
|
|
642
|
+
backgroundColor: tokens.colorNeutralBackground1,
|
|
643
|
+
},
|
|
644
|
+
row: Object.assign(Object.assign({ alignItems: "center", display: "grid", paddingBottom: "10px", position: "relative" }, shorthands.gap("10px")), { gridTemplateColumns: "min-content 20% 15% 30% 29%" }),
|
|
645
|
+
});
|
|
646
|
+
|
|
647
|
+
const Loading = (props) => {
|
|
648
|
+
const { numberOfItems = 16, numberOfColumns = 5 } = props;
|
|
649
|
+
const styles = useLoadingStyles();
|
|
650
|
+
return (jsx("div", Object.assign({ className: styles.invertedWrapper }, { children: jsx(Skeleton, { children: [...Array(numberOfItems)].map((_, i) => (jsx("div", Object.assign({ className: styles.row }, { children: [...Array(numberOfColumns)].map((_, i) => {
|
|
651
|
+
if (i === 0) {
|
|
652
|
+
return jsx(SkeletonItem, { shape: "circle", size: 24 }, i);
|
|
653
|
+
}
|
|
654
|
+
return jsx(SkeletonItem, { size: 16 }, i);
|
|
655
|
+
}) }), i))) }) })));
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
const useNoItemGridStyles = makeStyles({
|
|
659
|
+
wrapper: {
|
|
660
|
+
backgroundColor: tokens.colorNeutralBackground1,
|
|
661
|
+
display: "flex",
|
|
662
|
+
flexWrap: "wrap",
|
|
663
|
+
alignContent: "center",
|
|
664
|
+
justifyContent: "center",
|
|
665
|
+
minHeight: "300px",
|
|
666
|
+
}
|
|
667
|
+
});
|
|
668
|
+
|
|
669
|
+
const NoItemGrid = ({ message }) => {
|
|
670
|
+
const styles = useNoItemGridStyles();
|
|
671
|
+
return (jsx("div", Object.assign({ className: styles.wrapper }, { children: jsx("div", { children: message ? message : jsx(Subtitle2Stronger, { children: "No Data to Show." }) }) })));
|
|
672
|
+
};
|
|
673
|
+
|
|
674
|
+
const useNoFilterMatchStyles = makeStyles({
|
|
675
|
+
wrapper: {
|
|
676
|
+
backgroundColor: tokens.colorNeutralBackground1,
|
|
677
|
+
display: "flex",
|
|
678
|
+
flexDirection: "column",
|
|
679
|
+
flexWrap: "wrap",
|
|
680
|
+
alignContent: "center",
|
|
681
|
+
justifyContent: "center",
|
|
682
|
+
minHeight: "300px",
|
|
683
|
+
},
|
|
684
|
+
iconWrapper: {
|
|
685
|
+
display: "flex",
|
|
686
|
+
flexWrap: "wrap",
|
|
687
|
+
alignContent: "center",
|
|
688
|
+
justifyContent: "center",
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
|
|
692
|
+
const NoSearchResult = ({ message }) => {
|
|
693
|
+
const styles = useNoFilterMatchStyles();
|
|
694
|
+
return (jsxs("div", Object.assign({ className: styles.wrapper }, { children: [jsx("div", Object.assign({ className: styles.iconWrapper }, { children: jsx(DocumentSearch24Regular, {}) })), jsx("div", { children: message ? message : jsx(Subtitle2Stronger, { children: "No item found that matches your search term." }) })] })));
|
|
695
|
+
};
|
|
696
|
+
|
|
697
|
+
const TableContainer = (props) => {
|
|
698
|
+
var _a, _b, _c, _d;
|
|
699
|
+
const styles = useTableStaticStyles();
|
|
700
|
+
const { table, rowSelectionMode } = props;
|
|
701
|
+
const tableContainerRef = React.useRef(null);
|
|
702
|
+
const { rows } = table.getRowModel();
|
|
703
|
+
const rowVirtualizer = useVirtual({
|
|
704
|
+
parentRef: tableContainerRef,
|
|
705
|
+
size: rows.length,
|
|
706
|
+
overscan: 10,
|
|
707
|
+
});
|
|
708
|
+
const { virtualItems: virtualRows, totalSize } = rowVirtualizer;
|
|
709
|
+
const paddingTop = virtualRows.length > 0 ? ((_a = virtualRows === null || virtualRows === void 0 ? void 0 : virtualRows[0]) === null || _a === void 0 ? void 0 : _a.start) || 0 : 0;
|
|
710
|
+
const paddingBottom = virtualRows.length > 0
|
|
711
|
+
? totalSize - (((_b = virtualRows === null || virtualRows === void 0 ? void 0 : virtualRows[virtualRows.length - 1]) === null || _b === void 0 ? void 0 : _b.end) || 0)
|
|
712
|
+
: 0;
|
|
713
|
+
const headerGroups = table.getHeaderGroups();
|
|
714
|
+
// utilities
|
|
715
|
+
const isLoading = props.isLoading && virtualRows.length === 0;
|
|
716
|
+
const noItems = !isLoading && ((_c = props.data) === null || _c === void 0 ? void 0 : _c.length) === 0;
|
|
717
|
+
const noSearchResult = !isLoading && ((_d = props === null || props === void 0 ? void 0 : props.data) === null || _d === void 0 ? void 0 : _d.length) > 0 && virtualRows.length === 0;
|
|
718
|
+
return (jsxs("div", Object.assign({ ref: tableContainerRef, className: styles.tableContainer }, { children: [jsxs("table", Object.assign({ className: styles.table, "aria-label": "Data Grid" }, { children: [jsx("thead", Object.assign({ className: styles.tHead }, { children: headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map((headerGroup) => (jsxs("tr", { children: [rowSelectionMode === 'multiple' && (jsx("th", Object.assign({ style: { width: '1rem' } }, { children: headerGroup.depth === (headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.length) - 1 && (jsx(Checkbox, { checked: table.getIsSomeRowsSelected()
|
|
719
|
+
? 'mixed'
|
|
720
|
+
: table.getIsAllRowsSelected(), onChange: table.getToggleAllRowsSelectedHandler(), "aria-label": "Select All Rows", title: 'Select All Rows' })) }))), rowSelectionMode === 'single' && (jsx("th", Object.assign({ style: { width: '1rem' } }, { children: " " }))), headerGroup.headers.map((header) => {
|
|
721
|
+
return (jsx(HeaderCell, { header: header, table: table, hideMenu: headerGroup.depth !== (headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.length) - 1, headerDepth: headerGroup.depth, totalNumberOfHeaderDepth: (headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.length) - 1 }, header.id));
|
|
722
|
+
})] }, headerGroup.id))) })), jsxs("tbody", Object.assign({ className: styles.tBody }, { children: [paddingTop > 0 && (jsx("tr", Object.assign({ className: styles.tBodyRow, "aria-hidden": true }, { children: jsx("td", { style: { height: `${paddingTop}px` } }) }))), virtualRows.map((virtualRow) => {
|
|
723
|
+
const row = rows[virtualRow.index];
|
|
724
|
+
return (jsxs("tr", Object.assign({ className: row.getIsSelected() || row.getIsAllSubRowsSelected()
|
|
725
|
+
? styles.tBodySelectedRow
|
|
726
|
+
: styles.tBodyRow }, { children: [rowSelectionMode === 'multiple' && (jsx("td", Object.assign({ className: styles.tBodyCell }, { children: jsx(Checkbox, { checked: row.getIsSomeSelected()
|
|
727
|
+
? 'mixed'
|
|
728
|
+
: row.getIsSelected() || row.getIsAllSubRowsSelected(), disabled: !row.getCanSelect(), onChange: row.getToggleSelectedHandler(), "aria-label": "Select Row" }) }))), rowSelectionMode === 'single' && (jsx("td", Object.assign({ className: styles.tBodyCell }, { children: jsx(Radio, { checked: row.getIsSelected(), disabled: !row.getCanSelect(), onChange: row.getToggleSelectedHandler(), "aria-label": "Select Row" }) }))), row.getVisibleCells().map((cell) => {
|
|
729
|
+
var _a;
|
|
730
|
+
return (jsx("td", Object.assign({}, {
|
|
731
|
+
key: cell.id,
|
|
732
|
+
style: {
|
|
733
|
+
// background: cell.getIsGrouped()
|
|
734
|
+
// ? "#0aff0082"
|
|
735
|
+
// : cell.getIsAggregated()
|
|
736
|
+
// ? "#ffa50078"
|
|
737
|
+
// : cell.getIsPlaceholder()
|
|
738
|
+
// ? "#ff000042"
|
|
739
|
+
// : "white",
|
|
740
|
+
width: cell.column.getSize(),
|
|
741
|
+
},
|
|
742
|
+
}, { className: styles.tBodyCell }, { children: cell.getIsGrouped() ? (
|
|
743
|
+
// If it's a grouped cell, add an expander and row count
|
|
744
|
+
jsx(Button, Object.assign({}, {
|
|
745
|
+
onClick: row.getToggleExpandedHandler(),
|
|
746
|
+
style: {
|
|
747
|
+
cursor: row.getCanExpand() ? 'pointer' : 'normal',
|
|
748
|
+
},
|
|
749
|
+
}, { appearance: "transparent", icon: row.getIsExpanded() ? (jsx(GroupExpandedIcon, {})) : (jsx(GroupCollapsedIcon, {})) }, { children: jsxs("strong", { children: [flexRender(cell.column.columnDef.cell, cell.getContext()), ' ', "(", row.subRows.length, ")"] }) }))) : cell.getIsAggregated() ? (
|
|
750
|
+
// If the cell is aggregated, use the Aggregated
|
|
751
|
+
// renderer for cell
|
|
752
|
+
jsx("strong", { children: flexRender((_a = cell.column.columnDef.aggregatedCell) !== null && _a !== void 0 ? _a : cell.column.columnDef.cell, cell.getContext()) })) : cell.getIsPlaceholder() ? null : ( // For cells with repeated values, render null
|
|
753
|
+
// Otherwise, just render the regular cell
|
|
754
|
+
flexRender(cell.column.columnDef.cell, cell.getContext())) })));
|
|
755
|
+
})] }), row.id));
|
|
756
|
+
}), paddingBottom > 0 && (jsx("tr", Object.assign({ className: styles.tBodyRow, "aria-hidden": true }, { children: jsx("td", { style: { height: `${paddingBottom}px` } }) })))] })), rowSelectionMode === 'multiple' &&
|
|
757
|
+
!isLoading &&
|
|
758
|
+
!noItems &&
|
|
759
|
+
!noSearchResult && (jsx("tfoot", Object.assign({ className: styles.tFoot }, { children: jsxs("tr", { children: [jsx("td", Object.assign({ className: "p-1" }, { children: jsx(Checkbox, { checked: table.getIsSomePageRowsSelected()
|
|
760
|
+
? 'mixed'
|
|
761
|
+
: table.getIsAllPageRowsSelected(), onChange: table.getToggleAllPageRowsSelectedHandler(), "aria-label": "Select All Current Page Rows", title: 'Select All Current Page Rows' }) })), jsxs("td", Object.assign({ colSpan: 20 }, { children: [table.getIsAllPageRowsSelected() ? 'Unselect' : 'Select', " All Current Page Rows (", table.getRowModel().rows.length, ")"] }))] }) })))] })), isLoading && jsx(Loading, {}), noItems && jsx(NoItemGrid, { message: props.noItemPage }), noSearchResult && jsx(NoSearchResult, { message: props.noFilterMatchPage })] })));
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
function AdvancedTable(props, ref) {
|
|
765
|
+
const { table, globalFilter, setGlobalFilter } = useGridContainer(props, ref);
|
|
766
|
+
useStaticStyles();
|
|
767
|
+
const [isFilterDrawerOpen, setIsFilterDrawerOpen] = React.useState(false);
|
|
768
|
+
return (jsxs(DndProvider, Object.assign({ backend: HTML5Backend }, { children: [jsx(GridHeader, { table: table, gridTitle: props.gridTitle, globalFilter: globalFilter, setGlobalFilter: setGlobalFilter, setFilterDrawerOpen: setIsFilterDrawerOpen, openFilterDrawer: isFilterDrawerOpen }), jsxs("div", Object.assign({ style: { display: 'flex' } }, { children: [jsx(TableContainer, { table: table, data: props.data, isLoading: props.isLoading || false, rowSelectionMode: props.rowSelectionMode, noFilterMatchPage: props.noFilterMatchPage, noItemPage: props.noItemPage }), jsx(FilterDrawer, { open: isFilterDrawerOpen, setOpen: setIsFilterDrawerOpen, table: table })] })), jsx(Pagination, { table: table, pageSizeOptions: props.pageSizeOptions })] })));
|
|
769
|
+
}
|
|
770
|
+
const ForwardedAdvancedTable = React.forwardRef(AdvancedTable);
|
|
771
|
+
|
|
772
|
+
export { ForwardedAdvancedTable as Table };
|