var IE=Object.defineProperty;var NE=(e,t,n)=>t in e?IE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var FE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Dt=(e,t,n)=>NE(e,typeof t!="symbol"?t+"":t,n);import{j as f,a as Hx,k as LE,t as Pe,l as $E,A as VE,P as WE,e as BE,E as zE,f as YE}from"./index-CzTQZzQy.js";import{r as m,a as $f,b as Hs,g as hu,R as q,c as HE,d as UE,e as GE,f as Ux}from"./vendor-L5FivjNr.js";import{H as Ic,S as qE}from"./index-CTAc7x3r.js";import{N as KE,T as im}from"./index-Dm0I4kYC.js";import{B as XE}from"./index-qcynDQwW.js";var Aie=FE((aoe,jc)=>{/**
 * 2026 Paysera
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 *
 * @author Paysera <plugins@paysera.com>
 * @copyright 2026 Paysera
 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
 */function Gx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Gx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ge(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Gx(e))&&(r&&(r+=" "),r+=t);return r}/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function lv(e){return Object.prototype.toString.call(e)==="[object Object]"}function qx(e){var t,n;return lv(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(lv(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var Nc=function(){return Nc=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Nc.apply(this,arguments)};function ZE(e){return e.toLowerCase()}var QE=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],JE=/[^A-Z0-9]+/gi;function eO(e,t){t===void 0&&(t={});for(var n=t.splitRegexp,r=n===void 0?QE:n,s=t.stripRegexp,i=s===void 0?JE:s,o=t.transform,a=o===void 0?ZE:o,l=t.delimiter,c=l===void 0?" ":l,u=cv(cv(e,r,"$1\0$2"),i,"\0"),d=0,h=u.length;u.charAt(d)==="\0";)d++;for(;u.charAt(h-1)==="\0";)h--;return u.slice(d,h).split("\0").map(a).join(c)}function cv(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce(function(r,s){return r.replace(s,n)},e)}function tO(e,t){return t===void 0&&(t={}),eO(e,Nc({delimiter:"."},t))}function Kx(e,t){return t===void 0&&(t={}),tO(e,Nc({delimiter:"-"},t))}var nO=e=>m.createElement("circle",e),Le=e=>m.createElement("path",e),Re=m.forwardRef(({className:e,isPressed:t,...n},r)=>{const s={...n,className:ge(e,{"is-pressed":t})||void 0,"aria-hidden":!0,focusable:!1};return f.jsx("svg",{...s,ref:r})});Re.displayName="SVG";var rO=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function sO(e,...t){var n=0;return Array.isArray(t[0])&&(t=t[0]),e.replace(rO,function(){var r,s,i,o,a;return r=arguments[3],s=arguments[5],i=arguments[7],o=arguments[9],o==="%"?"%":(i==="*"&&(i=t[n],n++),s===void 0?(r===void 0&&(r=n+1),n++,a=t[r-1]):t[0]&&typeof t[0]=="object"&&t[0].hasOwnProperty(s)&&(a=t[0][s]),o==="f"?a=parseFloat(a)||0:o==="d"&&(a=parseInt(a)||0),i!==void 0&&(o==="f"?a=a.toFixed(i):o==="s"&&(a=a.substr(0,i))),a??"")})}function Oe(e,...t){return sO(e,...t)}var Vf,Xx,Ca,Zx;Vf={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1};Xx=["(","?"];Ca={")":["("],":":["?","?:"]};Zx=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;function iO(e){for(var t=[],n=[],r,s,i,o;r=e.match(Zx);){for(s=r[0],i=e.substr(0,r.index).trim(),i&&t.push(i);o=n.pop();){if(Ca[s]){if(Ca[s][0]===o){s=Ca[s][1]||s;break}}else if(Xx.indexOf(o)>=0||Vf[o]<Vf[s]){n.push(o);break}t.push(o)}Ca[s]||n.push(s),e=e.substr(r.index+s.length)}return e=e.trim(),e&&t.push(e),t.concat(n.reverse())}var oO={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function aO(e,t){var n=[],r,s,i,o,a,l;for(r=0;r<e.length;r++){if(a=e[r],o=oO[a],o){for(s=o.length,i=Array(s);s--;)i[s]=n.pop();try{l=o.apply(null,i)}catch(c){return c}}else t.hasOwnProperty(a)?l=t[a]:l=+a;n.push(l)}return n[0]}function lO(e){var t=iO(e);return function(n){return aO(t,n)}}function cO(e){var t=lO(e);return function(n){return+t({n})}}var uv={contextDelimiter:"",onMissingKey:null};function uO(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(r=t[n].trim(),r.indexOf("plural=")===0)return r.substr(7)}function om(e,t){var n;this.data=e,this.pluralForms={},this.options={};for(n in uv)this.options[n]=t!==void 0&&n in t?t[n]:uv[n]}om.prototype.getPluralForm=function(e,t){var n=this.pluralForms[e],r,s,i;return n||(r=this.data[e][""],i=r["Plural-Forms"]||r["plural-forms"]||r.plural_forms,typeof i!="function"&&(s=uO(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),i=cO(s)),n=this.pluralForms[e]=i),n(t)};om.prototype.dcnpgettext=function(e,t,n,r,s){var i,o,a;return s===void 0?i=0:i=this.getPluralForm(e,s),o=n,t&&(o=t+this.options.contextDelimiter+n),a=this.data[e][o],a&&a[i]?a[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),i===0?n:r)};var dv={"":{plural_forms(e){return e===1?0:1}}},dO=/^i18n\.(n?gettext|has_translation)(_|$)/,fO=(e,t,n)=>{const r=new om({}),s=new Set,i=()=>{s.forEach(C=>C())},o=C=>(s.add(C),()=>s.delete(C)),a=(C="default")=>r.data[C],l=(C,_="default")=>{var S;r.data[_]={...r.data[_],...C},r.data[_][""]={...dv[""],...(S=r.data[_])==null?void 0:S[""]},delete r.pluralForms[_]},c=(C,_)=>{l(C,_),i()},u=(C,_="default")=>{var S;r.data[_]={...r.data[_],...C,"":{...dv[""],...(S=r.data[_])==null?void 0:S[""],...C==null?void 0:C[""]}},delete r.pluralForms[_],i()},d=(C,_)=>{r.data={},r.pluralForms={},c(C,_)},h=(C="default",_,S,k,T)=>(r.data[C]||l(void 0,C),r.dcnpgettext(C,_,S,k,T)),g=C=>C||"default",p=(C,_)=>{let S=h(_,void 0,C);return n?(S=n.applyFilters("i18n.gettext",S,C,_),n.applyFilters("i18n.gettext_"+g(_),S,C,_)):S},v=(C,_,S)=>{let k=h(S,_,C);return n?(k=n.applyFilters("i18n.gettext_with_context",k,C,_,S),n.applyFilters("i18n.gettext_with_context_"+g(S),k,C,_,S)):k},x=(C,_,S,k)=>{let T=h(k,void 0,C,_,S);return n?(T=n.applyFilters("i18n.ngettext",T,C,_,S,k),n.applyFilters("i18n.ngettext_"+g(k),T,C,_,S,k)):T},y=(C,_,S,k,T)=>{let M=h(T,k,C,_,S);return n?(M=n.applyFilters("i18n.ngettext_with_context",M,C,_,S,k,T),n.applyFilters("i18n.ngettext_with_context_"+g(T),M,C,_,S,k,T)):M},w=()=>v("ltr","text direction")==="rtl",b=(C,_,S)=>{var M,E;const k=_?_+""+C:C;let T=!!((E=(M=r.data)==null?void 0:M[S??"default"])!=null&&E[k]);return n&&(T=n.applyFilters("i18n.has_translation",T,C,_,S),T=n.applyFilters("i18n.has_translation_"+g(S),T,C,_,S)),T};if(n){const C=_=>{dO.test(_)&&i()};n.addAction("hookAdded","core/i18n",C),n.addAction("hookRemoved","core/i18n",C)}return{getLocaleData:a,setLocaleData:c,addLocaleData:u,resetLocaleData:d,subscribe:o,__:p,_x:v,_n:x,_nx:y,isRTL:w,hasTranslation:b}};function hO(e){return typeof e!="string"||e===""?(console.error("The namespace must be a non-empty string."),!1):/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)?!0:(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}var Qx=hO;function mO(e){return typeof e!="string"||e===""?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)?!0:(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}var am=mO;function gO(e,t){return function(r,s,i,o=10){const a=e[t];if(!am(r)||!Qx(s))return;if(typeof i!="function"){console.error("The hook callback must be a function.");return}if(typeof o!="number"){console.error("If specified, the hook priority must be a number.");return}const l={callback:i,priority:o,namespace:s};if(a[r]){const c=a[r].handlers;let u;for(u=c.length;u>0&&!(o>=c[u-1].priority);u--);u===c.length?c[u]=l:c.splice(u,0,l),a.__current.forEach(d=>{d.name===r&&d.currentIndex>=u&&d.currentIndex++})}else a[r]={handlers:[l],runs:0};r!=="hookAdded"&&e.doAction("hookAdded",r,s,i,o)}}var fv=gO;function pO(e,t,n=!1){return function(s,i){const o=e[t];if(!am(s)||!n&&!Qx(i))return;if(!o[s])return 0;let a=0;if(n)a=o[s].handlers.length,o[s]={runs:o[s].runs,handlers:[]};else{const l=o[s].handlers;for(let c=l.length-1;c>=0;c--)l[c].namespace===i&&(l.splice(c,1),a++,o.__current.forEach(u=>{u.name===s&&u.currentIndex>=c&&u.currentIndex--}))}return s!=="hookRemoved"&&e.doAction("hookRemoved",s,i),a}}var Ql=pO;function vO(e,t){return function(r,s){const i=e[t];return typeof s<"u"?r in i&&i[r].handlers.some(o=>o.namespace===s):r in i}}var hv=vO;function yO(e,t,n,r){return function(i,...o){const a=e[t];a[i]||(a[i]={handlers:[],runs:0}),a[i].runs++;const l=a[i].handlers;if(!l||!l.length)return n?o[0]:void 0;const c={name:i,currentIndex:0};async function u(){try{a.__current.add(c);let h=n?o[0]:void 0;for(;c.currentIndex<l.length;)h=await l[c.currentIndex].callback.apply(null,o),n&&(o[0]=h),c.currentIndex++;return n?h:void 0}finally{a.__current.delete(c)}}function d(){try{a.__current.add(c);let h=n?o[0]:void 0;for(;c.currentIndex<l.length;)h=l[c.currentIndex].callback.apply(null,o),n&&(o[0]=h),c.currentIndex++;return n?h:void 0}finally{a.__current.delete(c)}}return(r?u:d)()}}var Jl=yO;function bO(e,t){return function(){var i;const r=e[t];return((i=Array.from(r.__current).at(-1))==null?void 0:i.name)??null}}var mv=bO;function xO(e,t){return function(r){const s=e[t];return typeof r>"u"?s.__current.size>0:Array.from(s.__current).some(i=>i.name===r)}}var gv=xO;function wO(e,t){return function(r){const s=e[t];if(am(r))return s[r]&&s[r].runs?s[r].runs:0}}var pv=wO,SO=class{constructor(){Dt(this,"actions");Dt(this,"filters");Dt(this,"addAction");Dt(this,"addFilter");Dt(this,"removeAction");Dt(this,"removeFilter");Dt(this,"hasAction");Dt(this,"hasFilter");Dt(this,"removeAllActions");Dt(this,"removeAllFilters");Dt(this,"doAction");Dt(this,"doActionAsync");Dt(this,"applyFilters");Dt(this,"applyFiltersAsync");Dt(this,"currentAction");Dt(this,"currentFilter");Dt(this,"doingAction");Dt(this,"doingFilter");Dt(this,"didAction");Dt(this,"didFilter");this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=fv(this,"actions"),this.addFilter=fv(this,"filters"),this.removeAction=Ql(this,"actions"),this.removeFilter=Ql(this,"filters"),this.hasAction=hv(this,"actions"),this.hasFilter=hv(this,"filters"),this.removeAllActions=Ql(this,"actions",!0),this.removeAllFilters=Ql(this,"filters",!0),this.doAction=Jl(this,"actions",!1,!1),this.doActionAsync=Jl(this,"actions",!1,!0),this.applyFilters=Jl(this,"filters",!0,!1),this.applyFiltersAsync=Jl(this,"filters",!0,!0),this.currentAction=mv(this,"actions"),this.currentFilter=mv(this,"filters"),this.doingAction=gv(this,"actions"),this.doingFilter=gv(this,"filters"),this.didAction=pv(this,"actions"),this.didFilter=pv(this,"filters")}};function _O(){return new SO}var CO=_O,Jx=CO(),{addAction:$ie,addFilter:Vie,removeAction:Wie,removeFilter:Bie,hasAction:zie,hasFilter:Yie,removeAllActions:Hie,removeAllFilters:Uie,doAction:kO,doActionAsync:Gie,applyFilters:qie,applyFiltersAsync:Kie,currentAction:Xie,currentFilter:Zie,doingAction:Qie,doingFilter:Jie,didAction:eoe,didFilter:toe,actions:noe,filters:roe}=Jx,Vt=fO(void 0,void 0,Jx);Vt.getLocaleData.bind(Vt);Vt.setLocaleData.bind(Vt);Vt.resetLocaleData.bind(Vt);Vt.subscribe.bind(Vt);var R=Vt.__.bind(Vt),Ws=Vt._x.bind(Vt),Wf=Vt._n.bind(Vt);Vt._nx.bind(Vt);var bn=Vt.isRTL.bind(Vt);Vt.hasTranslation.bind(Vt);var ew=(e,t,n)=>{let r,s,i=0,o,a,l,c=0,u=!1,d=!1,h=!0;n&&(u=!!n.leading,d="maxWait"in n,n.maxWait!==void 0&&(i=Math.max(n.maxWait,t)),h="trailing"in n?!!n.trailing:h);function g(O){const A=r,P=s;return r=void 0,s=void 0,c=O,o=e.apply(P,A),o}function p(O,A){a=setTimeout(O,A)}function v(){a!==void 0&&clearTimeout(a)}function x(O){return c=O,p(C,t),u?g(O):o}function y(O){return O-(l||0)}function w(O){const A=y(O),P=O-c,L=t-A;return d?Math.min(L,i-P):L}function b(O){const A=y(O),P=O-c;return l===void 0||A>=t||A<0||d&&P>=i}function C(){const O=Date.now();if(b(O))return S(O);p(C,w(O))}function _(){a=void 0}function S(O){return _(),h&&r?g(O):(r=s=void 0,o)}function k(){v(),c=0,_(),r=l=s=void 0}function T(){return M()?S(Date.now()):o}function M(){return a!==void 0}function E(...O){const A=Date.now(),P=b(A);if(r=O,s=this,l=A,P){if(!M())return x(l);if(d)return p(C,t),g(l)}return M()||p(C,t),o}return E.cancel=k,E.flush=T,E.pending=M,E},TO=(e,t,n)=>ew(e,t,{leading:!0,trailing:!0,maxWait:t});function Fc(){const e=new Map,t=new Map;function n(r){const s=t.get(r);if(s)for(const i of s)i()}return{get(r){return e.get(r)},set(r,s){e.set(r,s),n(r)},delete(r){e.delete(r),n(r)},subscribe(r,s){let i=t.get(r);return i||(i=new Set,t.set(r,i)),i.add(s),()=>{i.delete(s),i.size===0&&t.delete(r)}}}}function MO(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;let s=0;for(;s<n.length;){const i=n[s],o=e[i];if(o===void 0&&!t.hasOwnProperty(i)||o!==t[i])return!1;s++}return!0}function EO(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function OO(e,t){if(e&&t){if(e.constructor===Object&&t.constructor===Object)return MO(e,t);if(Array.isArray(e)&&Array.isArray(t))return EO(e,t)}return e===t}var mr,Ar,Bs,Ls,tw=/<(\/)?(\w+)\s*(\/)?>/g;function Od(e,t,n,r,s){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:s,children:[]}}function DO(e,t){if(mr=e,Ar=0,Bs=[],Ls=[],tw.lastIndex=0,!PO(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are React Elements");do;while(AO(t));return m.createElement(m.Fragment,null,...Bs)}var PO=e=>{const t=typeof e=="object"&&e!==null,n=t&&Object.values(e);return t&&n.length>0&&n.every(r=>m.isValidElement(r))};function AO(e){const t=RO(),[n,r,s,i]=t,o=Ls.length,a=s>Ar?Ar:null;if(r&&!e[r])return Dd(),!1;switch(n){case"no-more-tokens":if(o!==0){const{leadingTextStart:d,tokenStart:h}=Ls.pop();Bs.push(mr.substr(d,h))}return Dd(),!1;case"self-closed":return o===0?(a!==null&&Bs.push(mr.substr(a,s-a)),Bs.push(e[r]),Ar=s+i,!0):(vv(Od(e[r],s,i)),Ar=s+i,!0);case"opener":return Ls.push(Od(e[r],s,i,s+i,a)),Ar=s+i,!0;case"closer":if(o===1)return jO(s),Ar=s+i,!0;const l=Ls.pop(),c=mr.substr(l.prevOffset,s-l.prevOffset);l.children.push(c),l.prevOffset=s+i;const u=Od(l.element,l.tokenStart,l.tokenLength,s+i);return u.children=l.children,vv(u),Ar=s+i,!0;default:return Dd(),!1}}function RO(){const e=tw.exec(mr);if(e===null)return["no-more-tokens"];const t=e.index,[n,r,s,i]=e,o=n.length;return i?["self-closed",s,t,o]:r?["closer",s,t,o]:["opener",s,t,o]}function Dd(){const e=mr.length-Ar;e!==0&&Bs.push(mr.substr(Ar,e))}function vv(e){const{element:t,tokenStart:n,tokenLength:r,prevOffset:s,children:i}=e,o=Ls[Ls.length-1],a=mr.substr(o.prevOffset,n-o.prevOffset);a&&o.children.push(a),o.children.push(m.cloneElement(t,null,...i)),o.prevOffset=s||n+r}function jO(e){const{element:t,leadingTextStart:n,prevOffset:r,tokenStart:s,children:i}=Ls.pop(),o=e?mr.substr(r,e-r):mr.substr(r);o&&i.push(o),n!==null&&Bs.push(mr.substr(n,s-n)),Bs.push(m.cloneElement(t,null,...i))}var St=DO,IO=e=>typeof e=="number"?!1:typeof(e==null?void 0:e.valueOf())=="string"||Array.isArray(e)?!e.length:!e,yv=Object.create(null);function Kt(e,t={}){const{since:n,version:r,alternative:s,plugin:i,link:o,hint:a}=t,l=i?` from ${i}`:"",c=n?` since version ${n}`:"",u=r?` and will be removed${l} in version ${r}`:"",d=s?` Please use ${s} instead.`:"",h=o?` See: ${o}`:"",g=a?` Note: ${a}`:"",p=`${e} is deprecated${c}${u}.${d}${h}${g}`;p in yv||(kO("deprecated",e,t,p),console.warn(p),yv[p]=!0)}var bv=new WeakMap;function NO(e){const t=bv.get(e)||0;return bv.set(e,t+1),t}function FO(e,t,n){return m.useMemo(()=>{if(n)return n;const r=NO(e);return t?`${t}-${r}`:r},[e,n,t])}var yt=FO;function LO(e){return[e?'[tabindex]:not([tabindex^="-"])':"[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])",'iframe:not([tabindex^="-"])',"object","embed","summary","area[href]","[contenteditable]:not([contenteditable=false])"].join(",")}function nw(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function $O(e){const t=e.closest("map[name]");if(!t)return!1;const n=e.ownerDocument.querySelector('img[usemap="#'+t.name+'"]');return!!n&&nw(n)}function lm(e,{sequential:t=!1}={}){const n=e.querySelectorAll(LO(t));return Array.from(n).filter(r=>{if(!nw(r)||r.closest("[inert]"))return!1;const{nodeName:s}=r;return s==="AREA"?$O(r):!0})}function Bf(e){const t=e.getAttribute("tabindex");return t===null?0:parseInt(t,10)}function rw(e){return Bf(e)!==-1}function VO(){const e={};return function(n,r){const{nodeName:s,type:i,checked:o,name:a}=r;if(s!=="INPUT"||i!=="radio"||!a)return n.concat(r);const l=e.hasOwnProperty(a);if(!(o||!l))return n;if(l){const u=e[a];n=n.filter(d=>d!==u)}return e[a]=r,n.concat(r)}}function WO(e,t){return{element:e,index:t}}function BO(e){return e.element}function zO(e,t){const n=Bf(e.element),r=Bf(t.element);return n===r?e.index-t.index:n-r}function cm(e){return e.filter(rw).map(WO).sort(zO).map(BO).reduce(VO(),[])}function YO(e){return cm(lm(e))}function HO(e){return cm(lm(e.ownerDocument.body)).reverse().find(t=>e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_PRECEDING)}function UO(e){return cm(lm(e.ownerDocument.body)).find(t=>e.compareDocumentPosition(t)&e.DOCUMENT_POSITION_FOLLOWING)}const GO=Object.freeze(Object.defineProperty({__proto__:null,find:YO,findNext:UO,findPrevious:HO,isTabbableIndex:rw},Symbol.toStringTag,{value:"Module"}));function xv(e){return e.ownerDocument.defaultView,e.ownerDocument.defaultView.getComputedStyle(e)}function sw(e,t="vertical"){if(e){if((t==="vertical"||t==="all")&&e.scrollHeight>e.clientHeight){const{overflowY:n}=xv(e);if(/(auto|scroll)/.test(n))return e}if((t==="horizontal"||t==="all")&&e.scrollWidth>e.clientWidth){const{overflowX:n}=xv(e);if(/(auto|scroll)/.test(n))return e}return e.ownerDocument===e.parentNode?e:sw(e.parentNode,t)}}var iw={tabbable:GO};function mu(e,t){const n=m.useRef(void 0);return m.useCallback(r=>{r?n.current=e(r):n.current&&n.current()},t)}function qO(){return mu(e=>{function t(n){const{key:r,shiftKey:s,target:i}=n;if(r!=="Tab")return;const o=s?"findPrevious":"findNext",a=iw.tabbable[o](i)||null;if(i.contains(a)){n.preventDefault(),a==null||a.focus();return}if(e.contains(a))return;const l=s?"append":"prepend",{ownerDocument:c}=e,u=c.createElement("div");u.tabIndex=-1,e[l](u),u.addEventListener("blur",()=>e.removeChild(u)),u.focus()}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[])}var ow=qO;function aw(e){if(!e){if(typeof window>"u")return!1;e=window}const{platform:t}=e.navigator;return t.indexOf("Mac")!==-1||["iPad","iPhone"].includes(t)}var KO=27;function lw(e="firstElement"){const t=m.useRef(e),n=r=>{r.focus({preventScroll:!0})};return m.useEffect(()=>{t.current=e},[e]),mu(r=>{var i;if(t.current===!1||r.contains(((i=r.ownerDocument)==null?void 0:i.activeElement)??null))return;if(t.current!=="firstElement"&&t.current!=="firstInputElement"){n(r);return}const s=setTimeout(()=>{if(t.current==="firstInputElement"){const a=r.querySelector('input:not([type="hidden"]):not([disabled]), select:not([disabled]), textarea:not([disabled])');if(a){n(a);return}}const o=iw.tabbable.find(r)[0];o&&n(o)},0);return()=>{clearTimeout(s)}},[])}var Pd=null;function XO(e){const t=m.useRef(null),n=m.useRef(null),r=m.useRef(e);return m.useEffect(()=>{r.current=e},[e]),m.useCallback(s=>{var i,o,a,l;if(s){if(t.current=s,n.current)return;const c=s.ownerDocument.activeElement instanceof window.HTMLIFrameElement?s.ownerDocument.activeElement.contentDocument:s.ownerDocument;n.current=(c==null?void 0:c.activeElement)??null}else if(n.current){const c=(o=t.current)==null?void 0:o.contains((i=t.current)==null?void 0:i.ownerDocument.activeElement);if((a=t.current)!=null&&a.isConnected&&!c){Pd??(Pd=n.current);return}r.current?r.current():(l=n.current.isConnected?n.current:Pd)==null||l.focus(),Pd=null}},[])}var cw=XO,ZO=["button","submit"];function QO(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return ZO.includes(e.type)}return!1}function JO(e){const t=m.useRef(e);m.useEffect(()=>{t.current=e},[e]);const n=m.useRef(!1),r=m.useRef(void 0),s=m.useCallback(()=>{clearTimeout(r.current)},[]);m.useEffect(()=>{e||s()},[e,s]);const i=m.useCallback(a=>{const{type:l,target:c}=a;["mouseup","touchend"].includes(l)?n.current=!1:QO(c)&&(n.current=!0)},[]),o=m.useCallback(a=>{var c;if(a.persist(),n.current)return;const l=a.target.getAttribute("data-unstable-ignore-focus-outside-for-relatedtarget");l&&((c=a.relatedTarget)!=null&&c.closest(l))||(r.current=setTimeout(()=>{if(!document.hasFocus()){a.preventDefault();return}typeof t.current=="function"&&t.current(a)},0))},[]);return{onFocus:s,onMouseDown:i,onMouseUp:i,onTouchStart:i,onTouchEnd:i,onBlur:o}}function ec(e,t){typeof e=="function"?e(t):e&&e.hasOwnProperty("current")&&(e.current=t)}function $t(e){const t=m.useRef(null),n=m.useRef(!1),r=m.useRef(!1),s=m.useRef([]),i=m.useRef(e);return i.current=e,m.useLayoutEffect(()=>{r.current===!1&&n.current===!0&&e.forEach((o,a)=>{const l=s.current[a];o!==l&&(ec(l,null),ec(o,t.current))}),s.current=e},e),m.useLayoutEffect(()=>{r.current=!1}),m.useCallback(o=>{ec(t,o),r.current=!0,n.current=o!==null;const a=o?i.current:s.current;for(const l of a)ec(l,o)},[])}function eD(e){const t=m.useRef(void 0),{constrainTabbing:n=e.focusOnMount!==!1}=e;m.useEffect(()=>{t.current=e},Object.values(e));const r=ow(),s=lw(e.focusOnMount),i=cw(),o=JO(l=>{var c,u;(c=t.current)!=null&&c.__unstableOnClose?t.current.__unstableOnClose("focus-outside",l):(u=t.current)!=null&&u.onClose&&t.current.onClose()}),a=m.useCallback(l=>{l&&l.addEventListener("keydown",c=>{var u;c.keyCode===KO&&!c.defaultPrevented&&((u=t.current)!=null&&u.onClose)&&(c.preventDefault(),c.stopPropagation(),t.current.onClose())})},[]);return[$t([n?r:null,e.focusOnMount!==!1?i:null,e.focusOnMount!==!1?s:null,a]),{...o,tabIndex:-1}]}var tD=eD;function Ai(e){const t=m.useRef(()=>{throw new Error("Callbacks created with `useEvent` cannot be called during rendering.")});return m.useInsertionEffect(()=>{t.current=e}),m.useCallback((...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var Ad=new WeakMap;function nD(e,t){if(!t)return null;const n=Ad.get(e)??new Map;Ad.has(e)||Ad.set(e,n);let r=n.get(t);return r||(typeof(e==null?void 0:e.matchMedia)=="function"?(r=e.matchMedia(t),n.set(t,r),r):null)}function uw(e,t=window){const n=m.useMemo(()=>{const r=nD(t,e);return{subscribe(s){var i;return r?((i=r.addEventListener)==null||i.call(r,"change",s),()=>{var o;(o=r.removeEventListener)==null||o.call(r,"change",s)}):()=>{}},getValue(){return(r==null?void 0:r.matches)??!1}}},[t,e]);return m.useSyncExternalStore(n.subscribe,n.getValue,()=>!1)}function Wa(e){const t=m.useRef(void 0);return m.useEffect(()=>{t.current=e},[e]),t.current}var rD=()=>uw("(prefers-reduced-motion: reduce)"),dw=rD,wv={xhuge:1920,huge:1440,wide:1280,xlarge:1080,large:960,medium:782,small:600,mobile:480},sD={">=":"min-width","<":"max-width"},iD={">=":(e,t)=>t>=e,"<":(e,t)=>t<e},um=m.createContext(null);um.displayName="ViewportMatchWidthContext";var fw=(e,t=">=",n=window)=>{const r=m.useContext(um),s=!r&&`(${sD[t]}: ${wv[e]}px)`,i=uw(s||void 0,n);return r?iD[t](wv[e],r):i};fw.__experimentalWidthProvider=um.Provider;var oD=fw;function hw(e,t={}){const n=Ai(e),r=m.useRef(null),s=m.useRef(void 0);return Ai(i=>{if(i===r.current)return;s.current??(s.current=new ResizeObserver(n));const{current:o}=s;r.current&&o.unobserve(r.current),r.current=i??null,i&&o.observe(i,t)})}var aD=e=>{let t;if(!e.contentBoxSize)t=[e.contentRect.width,e.contentRect.height];else if(e.contentBoxSize[0]){const s=e.contentBoxSize[0];t=[s.inlineSize,s.blockSize]}else{const s=e.contentBoxSize;t=[s.inlineSize,s.blockSize]}const[n,r]=t.map(s=>Math.round(s));return{width:n,height:r}},lD={position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",opacity:0,overflow:"hidden",zIndex:-1};function cD({onResize:e}){const t=hw(n=>{const r=aD(n.at(-1));e(r)});return f.jsx("div",{ref:t,style:lD,"aria-hidden":"true"})}function uD(e,t){return e.width===t.width&&e.height===t.height}var Sv={width:null,height:null};function dD(){const[e,t]=m.useState(Sv),n=m.useRef(Sv),r=m.useCallback(i=>{uD(n.current,i)||(n.current=i,t(i))},[]);return[f.jsx(cD,{onResize:r}),e]}function mw(e,t={}){return e?hw(e,t):dD()}function fD(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function hD(e,t){var n=m.useState(function(){return{inputs:t,result:e()}})[0],r=m.useRef(!0),s=m.useRef(n),i=r.current||!!(t&&s.current.inputs&&fD(t,s.current.inputs)),o=i?s.current:{inputs:t,result:e()};return m.useEffect(function(){r.current=!1,s.current=o},[o]),o.result}function dm(e,t,n){const r=hD(()=>ew(e,t??0,n),[e,t,n==null?void 0:n.leading,n==null?void 0:n.trailing,n==null?void 0:n.maxWait]);return m.useEffect(()=>()=>r.cancel(),[r]),r}function mD(e=""){const[t,n]=m.useState(e),[r,s]=m.useState(e),i=dm(s,250);return m.useEffect(()=>{i(t)},[t,i]),[t,n,r]}function Lc(e,t){const[n,r]=m.useMemo(()=>[s=>e.subscribe(t,s),()=>e.get(t)],[e,t]);return m.useSyncExternalStore(n,r,r)}const gw=m.createContext(!0);function gD(e){return Array.isArray(e)?e:typeof e<"u"?[e]:[]}function pw(e){const t=[];for(const n of e)t.push(...n);return t}function zf(e){return e.slice().reverse()}const Uo=pD();function pD(){var e;return typeof window<"u"&&!!((e=window.document)!=null&&e.createElement)}function at(e){return e?"self"in e?e.document:e.ownerDocument||document:document}function Ba(e){return e?"self"in e?e.self:at(e).defaultView||window:self}function _s(e,t=!1){var r;const{activeElement:n}=at(e);if(!(n!=null&&n.nodeName))return null;if(hm(n)&&((r=n.contentDocument)!=null&&r.body))return _s(n.contentDocument.body,t);if(t){const s=n.getAttribute("aria-activedescendant");if(s){const i=at(n).getElementById(s);if(i)return i}}return n}function kt(e,t){return e===t||e.contains(t)}function ml(e){return(e==null?void 0:e.nodeType)===1}function fm(e){return typeof(e==null?void 0:e.nodeType)=="number"}function hm(e){return e.tagName==="IFRAME"}function Co(e){const t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?vD.indexOf(e.type)!==-1:!1}const vD=["button","color","file","image","reset","submit"];function yD(e){if(typeof e.checkVisibility=="function")return e.checkVisibility();const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function Cr(e){try{const t=e instanceof HTMLInputElement&&e.selectionStart!==null,n=e.tagName==="TEXTAREA";return t||n||!1}catch{return!1}}function Yf(e){return e.isContentEditable||Cr(e)}function bD(e){if(Cr(e))return e.value;if(e.isContentEditable){const t=at(e).createRange();return t.selectNodeContents(e),t.toString()}return""}function Hf(e){let t=0,n=0;if(Cr(e))t=e.selectionStart||0,n=e.selectionEnd||0;else if(e.isContentEditable){const r=at(e).getSelection();if(r!=null&&r.rangeCount&&r.anchorNode&&kt(e,r.anchorNode)&&r.focusNode&&kt(e,r.focusNode)){const s=r.getRangeAt(0),i=s.cloneRange();i.selectNodeContents(e),i.setEnd(s.startContainer,s.startOffset),t=i.toString().length,i.setEnd(s.endContainer,s.endOffset),n=i.toString().length}}return{start:t,end:n}}function gu(e,t){const n=["dialog","menu","listbox","tree","grid"],r=e==null?void 0:e.getAttribute("role");return r&&n.indexOf(r)!==-1?r:t}function vw(e,t){const n={menu:"menuitem",listbox:"option",tree:"treeitem"},r=gu(e);return r?n[r]??t:t}function mm(e){if(!e)return null;const t=n=>n==="auto"||n==="scroll";if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:n}=getComputedStyle(e);if(t(n))return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:n}=getComputedStyle(e);if(t(n))return e}return mm(e.parentElement)||document.scrollingElement||document.body}function Rd(e,...t){/text|search|password|tel|url/i.test(e.type)&&e.setSelectionRange(...t)}function yw(e,t){const n=e.map((s,i)=>[i,s]);let r=!1;return n.sort(([s,i],[o,a])=>{const l=t(i),c=t(a);return l===c||!l||!c?0:xD(l,c)?(s>o&&(r=!0),-1):(s<o&&(r=!0),1)}),r?n.map(([s,i])=>i):e}function xD(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function bw(){return Uo&&!!navigator.maxTouchPoints}function gm(){return Uo?/mac|iphone|ipad|ipod/i.test(navigator.platform):!1}function pu(){return Uo&&gm()&&/apple/i.test(navigator.vendor)}function wD(){return Uo&&/firefox\//i.test(navigator.userAgent)}function SD(){return Uo&&navigator.platform.startsWith("Mac")&&!bw()}function _D(e){const{currentTarget:t,target:n}=e;return t?fm(n)?!kt(t,n):!0:!1}function Nn(e){return e.target===e.currentTarget}function xw(e){const t=e.currentTarget;if(!t)return!1;const n=gm();if(n&&!e.metaKey||!n&&!e.ctrlKey)return!1;const r=t.tagName.toLowerCase();return r==="a"||r==="button"&&t.type==="submit"||r==="input"&&t.type==="submit"}function ww(e){const t=e.currentTarget;if(!t)return!1;const n=t.tagName.toLowerCase();return e.altKey?n==="a"||n==="button"&&t.type==="submit"||n==="input"&&t.type==="submit":!1}function CD(e,t,n){const r=new Event(t,n);return e.dispatchEvent(r)}function qi(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),s={...t,bubbles:!0};return e.dispatchEvent(new FocusEvent("focusout",s)),r}function kD(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}function _v(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function wi(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!fm(r)||!kt(n,r)}function $c(e,t,n,r){const i=(a=>{const l=requestAnimationFrame(a);return()=>cancelAnimationFrame(l)})(()=>{e.removeEventListener(t,o,!0),n()}),o=()=>{i(),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),i}function sn(e,t,n,r=window){const s=[];try{r.document.addEventListener(e,t,n);for(const o of Array.from(r.frames))s.push(sn(e,t,n,o))}catch{}return()=>{try{r.document.removeEventListener(e,t,n)}catch{}for(const o of s)o()}}const pm="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function TD(e){return Number.parseInt(e.getAttribute("tabindex")||"0",10)<0}function ur(e){return!(!e.matches(pm)||!yD(e)||e.closest("[inert]"))}function za(e){if(!ur(e)||TD(e))return!1;if(!("form"in e)||!e.form||e.checked||e.type!=="radio")return!0;const t=e.form.elements.namedItem(e.name);if(!t||!("length"in t))return!0;const n=_s(e);return!n||n===e||!("form"in n)||n.form!==e.form||n.name!==e.name}function vm(e,t){const n=Array.from(e.querySelectorAll(pm));t&&n.unshift(e);const r=n.filter(ur);return r.forEach((s,i)=>{var a;if(!hm(s))return;const o=(a=s.contentDocument)==null?void 0:a.body;o&&r.splice(i,1,...vm(o))}),r}function gl(e,t,n){const r=Array.from(e.querySelectorAll(pm)),s=r.filter(za);return t&&za(e)&&s.unshift(e),s.forEach((i,o)=>{var c;if(!hm(i))return;const a=(c=i.contentDocument)==null?void 0:c.body;if(!a)return;const l=gl(a,!1,n);s.splice(o,1,...l)}),!s.length&&n?r:s}function MD(e,t,n){const[r]=gl(e,t,n);return r||null}function ED(e,t,n,r){const s=_s(e),i=vm(e,t),o=i.indexOf(s),a=i.slice(o+1);return a.find(za)||(n?i.find(za):null)||(r?a[0]:null)||null}function jd(e,t){return ED(document.body,!1,e,t)}function OD(e,t,n,r){const s=_s(e),i=vm(e,t).reverse(),o=i.indexOf(s);return i.slice(o+1).find(za)||null||null||null}function Cv(e,t){return OD(document.body,!1)}function Ri(e){const t=_s(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return n?n===e.id:!1}function zs(e){const t=_s(e);if(!t)return!1;if(kt(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!n||!("id"in e)?!1:n===e.id?!0:!!e.querySelector(`#${CSS.escape(n)}`)}function DD(e){const t=e.getAttribute("tabindex")??"";e.setAttribute("data-tabindex",t),e.setAttribute("tabindex","-1")}function PD(e,t){const n=gl(e,t);for(const r of n)DD(r)}function AD(e){const t=e.querySelectorAll("[data-tabindex]"),n=r=>{const s=r.getAttribute("data-tabindex");r.removeAttribute("data-tabindex"),s?r.setAttribute("tabindex",s):r.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&n(e);for(const r of t)n(r)}function RD(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView({block:"nearest",inline:"nearest",...t})):e.focus()}function Da(...e){}function jD(e,t){if(e===t)return!0;if(!e||!t||typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(e),r=Object.keys(t),{length:s}=n;if(r.length!==s)return!1;for(const i of n)if(e[i]!==t[i])return!1;return!0}function ID(e,t){return ND(e)?e(FD(t)?t():t):e}function ND(e){return typeof e=="function"}function FD(e){return typeof e=="function"}function ps(e,t){return typeof Object.hasOwn=="function"?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function fn(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}function ym(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function LD(e,t){const n={...e};for(const r of t)ps(n,r)&&delete n[r];return n}function $D(e,t){const n={};for(const r of t)ps(e,r)&&(n[r]=e[r]);return n}function Sw(e){return e}function Ke(e,t){if(!e)throw typeof t!="string"?new Error("Invariant failed"):new Error(t)}function VD(e){return Object.keys(e)}function ko(e,...t){const n=typeof e=="function"?e(...t):e;return n==null?!1:!n}function si(e){return e.disabled||e["aria-disabled"]===!0||e["aria-disabled"]==="true"}function WD(e){return e.getAttribute("aria-disabled")==="true"||"disabled"in e&&e.disabled===!0}function wn(e){const t={};for(const n in e)e[n]!==void 0&&(t[n]=e[n]);return t}function ye(...e){for(const t of e)if(t!==void 0)return t}function _w(e){return async()=>{const t=await(e==null?void 0:e());return _w(async()=>(await(t==null?void 0:t()),e))}}BD();function BD({limit:e=100}={}){const t=[];let n=[],r=null;const s=()=>t.length>0,i=()=>n.length>0;return{canUndo:s,canRedo:i,undo:async()=>{var c;s()&&(r=null,n.push(await((c=t.pop())==null?void 0:c())))},redo:async()=>{var c;i()&&(r=null,t.push(await((c=n.pop())==null?void 0:c())))},execute:async(c,u)=>{if(!c)return;for(;t.length>e;)t.shift();const d=u===r;r=u??null;const h=d?Math.max(0,t.length-1):t.length,g=await c();if(!g)return;n=[];const p=t[h];t[h]=_w(async()=>{await(g==null?void 0:g());const v=await(p==null?void 0:p());return async()=>{await(v==null?void 0:v()),await(c==null?void 0:c())}})}}}function Uf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function zD(e){return!e||!m.isValidElement(e)?!1:"ref"in e.props||"ref"in e}function YD(e){return zD(e)?{...e.props}.ref||e.ref:null}function HD(e,t){const n={...e};for(const r in t){if(!ps(t,r))continue;if(r==="className"){const i="className",o=e[i],a=t[i];o&&a?n[i]=`${o} ${a}`:n[i]=a||o;continue}if(r==="style"){const i="style";n[i]=e[i]?{...e[i],...t[i]}:t[i];continue}const s=t[r];if(r.startsWith("on")){if(typeof s!="function")continue;const i=e[r];if(typeof i=="function"){n[r]=(...o)=>{s(...o),i(...o)};continue}}n[r]=s}return n}const Cw={...$f},kv=Cw.useId,Tv=Cw.useInsertionEffect,Ne=Uo?m.useLayoutEffect:m.useEffect;function bm(e){const[t]=m.useState(e);return t}function kw(e){const t=m.useRef(e);return Ne(()=>{t.current=e}),t}function be(e){const t=m.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return Tv?Tv(()=>{t.current=e}):t.current=e,m.useCallback((...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function UD(e){const[t,n]=m.useState(null);return Ne(()=>{if(t==null||!e)return;let r=null;return e(s=>(r=s,t)),()=>{e(r)}},[t,e]),[t,n]}function bt(...e){return m.useMemo(()=>{if(e.some(Boolean))return t=>{for(const n of e)Uf(n,t)}},e)}function On(e){if(kv){const r=kv();return e||r}const[t,n]=m.useState(e);return Ne(()=>{e||t||n(`id-${Math.random().toString(36).slice(2,8)}`)},[e,t]),e||t}function vu(e,t){const n=i=>{if(typeof i=="string")return i},[r,s]=m.useState(()=>n(t));return Ne(()=>{var i;s(((i=e&&"current"in e?e.current:e)==null?void 0:i.tagName.toLowerCase())||n(t))},[e,t]),r}function GD(e,t,n){const r=bm(n),[s,i]=m.useState(r);return m.useEffect(()=>{const o=e&&"current"in e?e.current:e;if(!o)return;const a=()=>{const c=o.getAttribute(t);i(c??r)},l=new MutationObserver(a);return l.observe(o,{attributeFilter:[t]}),a(),()=>l.disconnect()},[e,t,r]),s}function vs(e,t){const n=m.useRef(!1);m.useEffect(()=>{if(n.current)return e();n.current=!0},t),m.useEffect(()=>()=>{n.current=!1},[])}function qD(e,t){const n=m.useRef(!1);Ne(()=>{if(n.current)return e();n.current=!0},t),Ne(()=>()=>{n.current=!1},[])}function yu(){return m.useReducer(()=>[],[])}function vt(e){return be(typeof e=="function"?e:()=>e)}function lt(e,t,n=[]){const r=m.useCallback(s=>(e.wrapElement&&(s=e.wrapElement(s)),t(s)),[...n,e.wrapElement]);return{...e,wrapElement:r}}function xm(e=!1,t){const[n,r]=m.useState(null);return{portalRef:bt(r,t),portalNode:n,domReady:!e||n}}function wm(e,t,n){const r=e.onLoadedMetadataCapture,s=m.useMemo(()=>Object.assign(()=>{},r,...n!==void 0?[{[t]:n}]:[]),[r,t,n]);return[r==null?void 0:r[t],{onLoadedMetadataCapture:s}]}let Mv=!1;function Sm(){return m.useEffect(()=>{Mv||(sn("mousemove",XD,!0),sn("mousedown",tc,!0),sn("mouseup",tc,!0),sn("keydown",tc,!0),sn("scroll",tc,!0),Mv=!0)},[]),be(()=>_m)}let _m=!1,Ev=0,Ov=0;function KD(e){const t=e.movementX||e.screenX-Ev,n=e.movementY||e.screenY-Ov;return Ev=e.screenX,Ov=e.screenY,t||n||!1}function XD(e){KD(e)&&(_m=!0)}function tc(){_m=!1}function pe(e){const t=m.forwardRef((n,r)=>e({...n,ref:r}));return t.displayName=e.displayName||e.name,t}function Cs(e,t){return m.memo(e,t)}function Se(e,t){const{wrapElement:n,render:r,...s}=t,i=bt(t.ref,YD(r));let o;if(m.isValidElement(r)){const a={...r.props,ref:i};o=m.cloneElement(r,HD(s,a))}else r?o=r(s):o=f.jsx(e,{...s});return n?n(o):o}function _e(e){const t=(n={})=>e(n);return t.displayName=e.name,t}function Sn(e=[],t=[]){const n=m.createContext(void 0),r=m.createContext(void 0),s=()=>m.useContext(n),i=(c=!1)=>{const u=m.useContext(r),d=s();return c?u:u||d},o=()=>{const c=m.useContext(r),u=s();if(!(c&&c===u))return u},a=c=>e.reduceRight((u,d)=>f.jsx(d,{...c,children:u}),f.jsx(n.Provider,{...c}));return{context:n,scopedContext:r,useContext:s,useScopedContext:i,useProviderContext:o,ContextProvider:a,ScopedContextProvider:c=>f.jsx(a,{...c,children:t.reduceRight((u,d)=>f.jsx(d,{...c,children:u}),f.jsx(r.Provider,{...c}))})}}const ZD="div",QD=Symbol("accessibleWhenDisabled"),JD=pu(),eP=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function tP(e){const{tagName:t,readOnly:n,type:r}=e;return t==="TEXTAREA"&&!n||t==="SELECT"&&!n?!0:t==="INPUT"&&!n?eP.includes(r):!!(e.isContentEditable||e.getAttribute("role")==="combobox"&&e.dataset.name)}function nP(e){return e?e==="button"||e==="summary"||e==="input"||e==="select"||e==="textarea"||e==="a":!0}function rP(e){return e?e==="button"||e==="input"||e==="select"||e==="textarea":!0}const sP=["button","color","file","image","reset","submit"];function iP(e,t){return e==="button"?!0:e==="input"&&t?t==="checkbox"||t==="radio"?!0:sP.includes(t):!1}function oP(e){if(e.tagName==="BUTTON"){const{type:t}=e;return t==="submit"}if(e.tagName==="INPUT"){const{type:t}=e;return t==="submit"||t==="image"}return!1}function aP({focusable:e,trulyDisabled:t,nativeTabbable:n,supportsDisabled:r,safariTabIndex:s,tabIndexProp:i}){return e?t?n&&!r?-1:void 0:n?s&&i==null?0:i:i??0:i}function Id(e,t){return be(n=>{e==null||e(n),!n.defaultPrevented&&t&&(n.stopPropagation(),n.preventDefault())})}let Dv=!1,Cm=!0;function lP(e){const t=e.target;ml(t)&&!t.hasAttribute("data-focus-visible")&&(Cm=!1)}function cP(e){e.metaKey||e.ctrlKey||e.altKey||(Cm=!0)}const Go=_e(function({focusable:t=!0,accessibleWhenDisabled:n,autoFocus:r,onFocusVisible:s,...i}){const o=m.useRef(null),[a,l]=wm(i,QD,n);n??(n=a),m.useEffect(()=>{t&&(Dv||(sn("mousedown",lP,!0),sn("keydown",cP,!0),Dv=!0))},[t]);const c=t&&si(i),u=c&&!n,[d,h]=m.useState(!1),g=m.useRef(!1),p=m.useRef(null),v=be(N=>{var z;(z=p.current)==null||z.call(p),p.current=null,g.current=!1,N==null||N.removeAttribute("data-focus-visible")});m.useEffect(()=>{t&&u&&(v(o.current),d&&h(!1))},[t,u,d,v]),m.useEffect(()=>{if(!t||!d)return;const N=o.current;if(!N||typeof IntersectionObserver>"u")return;const z=new IntersectionObserver(()=>{ur(N)||(g.current=!1,h(!1))});return z.observe(N),()=>z.disconnect()},[t,d]),m.useEffect(()=>()=>{var N;return(N=p.current)==null?void 0:N.call(p)},[]);const x=Id(i.onKeyPressCapture,c),y=Id(i.onMouseDownCapture,c),w=Id(i.onClickCapture,c),b=(N,z)=>{var K;if(z&&(N.currentTarget=z),!t)return;const B=N.currentTarget;if(B&&Ri(B)&&(s==null||s(N),!N.defaultPrevented)){if(B.dataset.focusVisible="true",g.current=!0,oP(B)){if((K=p.current)==null||K.call(p),p.current=null,typeof IntersectionObserver<"u"){const Q=new IntersectionObserver(()=>{ur(B)||v(B)});Q.observe(B),p.current=()=>Q.disconnect()}return}h(!0)}},C=i.onKeyDownCapture,_=be(N=>{if(C==null||C(N),N.defaultPrevented||!t||d||g.current||N.metaKey||N.altKey||N.ctrlKey||!Nn(N))return;const z=N.currentTarget;$c(z,"focusout",()=>b(N,z))}),S=i.onFocusCapture,k=be(N=>{if(S==null||S(N),N.defaultPrevented||!t)return;if(!Nn(N)){h(!1);return}const z=N.currentTarget,B=()=>b(N,z);Cm||tP(N.target)?$c(N.target,"focusout",B):h(!1)}),T=i.onBlur,M=be(N=>{T==null||T(N),t&&wi(N)&&(v(N.currentTarget),h(!1))}),E=m.useContext(gw),O=be(N=>{t&&r&&N&&E&&queueMicrotask(()=>{Ri(N)||ur(N)&&N.focus()})}),A=vu(o),P=t&&nP(A),L=t&&rP(A),[F,I]=m.useState(!1);JD&&m.useEffect(()=>{if(!t)return;const N=o.current;if(!N)return;const z=N.tagName.toLowerCase(),B=N.type;I(iP(z,B))},[t]);const j=i.style,$=m.useMemo(()=>u?{pointerEvents:"none",...j}:j,[u,j]);return i={"data-focus-visible":t&&d||void 0,"data-autofocus":r||void 0,"aria-disabled":c||void 0,...i,...l,ref:bt(o,O,i.ref),style:$,tabIndex:aP({focusable:t,trulyDisabled:u,nativeTabbable:P,supportsDisabled:L,safariTabIndex:F,tabIndexProp:i.tabIndex}),disabled:L&&u?!0:void 0,contentEditable:c?void 0:i.contentEditable,onKeyPressCapture:x,onClickCapture:w,onMouseDownCapture:y,onKeyDownCapture:_,onFocusCapture:k,onBlur:M},wn(i)});pe(function(t){return Se(ZD,Go(t))});const uP="button";function Pv(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return e.key==="Enter"?Co(t)||t.tagName==="SUMMARY"||t.tagName==="A":e.key===" "?Co(t)||t.tagName==="SUMMARY"||t.tagName==="INPUT"||t.tagName==="SELECT":!1}const dP=Symbol("command"),bu=_e(function({clickOnEnter:t=!0,clickOnSpace:n=!0,...r}){const s=m.useRef(null),[i,o]=m.useState(!1);m.useEffect(()=>{s.current&&o(Co(s.current))},[]);const[a,l]=m.useState(!1),c=m.useRef(!1),u=si(r),[d,h]=wm(r,dP,!0),g=r.onKeyDown,p=be(y=>{g==null||g(y);const w=y.currentTarget;if(y.defaultPrevented||d||u||!Nn(y)||Cr(w)||w.isContentEditable)return;const b=t&&y.key==="Enter",C=n&&y.key===" ",_=y.key==="Enter"&&!t,S=y.key===" "&&!n;if(_||S){y.preventDefault();return}if(b||C){const k=Pv(y);if(b){if(!k){y.preventDefault();const{view:T,...M}=y,E=()=>_v(w,M);wD()?$c(w,"keyup",E):queueMicrotask(E)}}else C&&(c.current=!0,k||(y.preventDefault(),l(!0)))}}),v=r.onKeyUp,x=be(y=>{if(v==null||v(y),y.defaultPrevented||d||u||y.metaKey)return;const w=n&&y.key===" ";if(c.current&&w&&(c.current=!1,!Pv(y))){y.preventDefault(),l(!1);const b=y.currentTarget,{view:C,..._}=y;queueMicrotask(()=>_v(b,_))}});return r={"data-active":a||void 0,type:i?"button":void 0,...h,...r,ref:bt(s,r.ref),onKeyDown:p,onKeyUp:x},r=Go(r),r});pe(function(t){return Se(uP,bu(t))});const pl=Sn(),fP=pl.useContext;pl.useScopedContext;pl.useProviderContext;const hP=pl.ContextProvider,mP=pl.ScopedContextProvider,gP="div",km=_e(function({store:t,shouldRegisterItem:n=!0,getItem:r=Sw,element:s,...i}){const o=fP();t=t||o;const a=On(i.id),l=m.useRef(s);return m.useEffect(()=>{const c=l.current;if(!a||!c||!n)return;const u=r({id:a,element:c});return t==null?void 0:t.renderItem(u)},[a,n,r,t]),i={...i,ref:bt(l,i.ref)},wn(i)});pe(function(t){return Se(gP,km(t))});const xu=Sn([hP],[mP]),vl=xu.useScopedContext,pP=xu.useProviderContext,Li=xu.ContextProvider,ii=xu.ScopedContextProvider,vP=m.createContext(void 0),Tw=m.createContext(void 0),yP={id:null};function bP(e,t,n=!1){const r=e.findIndex(s=>s.id===t);return[...e.slice(r+1),...n?[yP]:[],...e.slice(0,r)]}function xP(e,t){return e.find(n=>!n.disabled)}function Fs(e,t){return t&&e.item(t)||null}function wP(e){const t=[];for(const n of e){const r=t.find(s=>{var i;return((i=s[0])==null?void 0:i.rowId)===n.rowId});r?r.push(n):t.push([n])}return t}function SP(e,t=!1){if(Cr(e))e.setSelectionRange(t?e.value.length:0,e.value.length);else if(e.isContentEditable){const n=at(e).getSelection();n==null||n.selectAllChildren(e),t&&(n==null||n.collapseToEnd())}}const Gf=Symbol("FOCUS_SILENTLY");function _P(e){e[Gf]=!0,e.focus({preventScroll:!0})}function CP(e){const t=e[Gf];return delete e[Gf],t}function Pa(e,t,n){return!(!t||t===n||!e.item(t.id))}function $i(e,t){const n=e.__unstableInternals;return Ke(n,"Invalid store"),n[t]}function kP(e,t){if(!e)return!0;for(const n of e)if(t instanceof Set){if(t.has(n))return!0}else if(n===t)return!0;return!1}function TP(e,t,n){if(t)for(const r of t){let s=e.get(r);s||(s=new Set,e.set(r,s)),s.add(n)}}function MP(e,t,n){if(e&&t)for(const r of t){const s=e.get(r);s&&(s.delete(n),s.size||e.delete(r))}}function hn(e,...t){let n=e,r=n,s=Da,i=!1,o=!1,a=new Set;const l=new Set,c=new Set,u={listeners:new Set,disposables:new Map,listenerKeys:new WeakMap},d={listeners:new Set,disposables:new Map,listenerKeys:new WeakMap},h=E=>(c.add(E),()=>c.delete(E)),g=()=>{var j;const E=l.size,O=Symbol();l.add(O);const A=()=>{l.delete(O),!l.size&&s()};if(E)return A;const P=VD(n),L=[];for(const $ of t){const N=(j=$==null?void 0:$.getState)==null?void 0:j.call($);if(!N)continue;const z=P.filter(K=>ps(N,K));if(!z.length)continue;if(t.length===1||z.length===P.length){for(const K of z)L.push(tt($,[K],Q=>{T(K,Q[K],!0)}));continue}let B=!1;L.push(tt($,z,(K,Q)=>{for(const re of z)B&&K[re]===Q[re]||T(re,K[re],!0);B=!0}))}const F=[];for(const $ of c)F.push($());const I=t.map(Tm);return s=fn(...L,...F,...I),A},p=(E,O,A)=>{var P;A!==void 0&&(A?MP(E.listenersByKey,A,O):(P=E.allKeysListeners)==null||P.delete(O))},v=(E,O,A=u)=>{const P=E?[...E]:null;return A.listeners.has(O)&&p(A,O,A.listenerKeys.get(O)),A.listeners.add(O),P?(A.listenersByKey??(A.listenersByKey=new Map),TP(A.listenersByKey,P,O)):(A.allKeysListeners??(A.allKeysListeners=new Set),A.allKeysListeners.add(O)),A.listenerKeys.set(O,P),()=>{var F;(F=A.disposables.get(O))==null||F(),A.disposables.delete(O);const L=A.listenerKeys.get(O);p(A,O,P),L!==P&&p(A,O,L),A.listenerKeys.delete(O),A.listeners.delete(O)}},x=(E,O)=>v(E,O),y=(E,O,A)=>{A?E.disposables.set(O,A):E.disposables.delete(O)},w=(E,O)=>(y(u,O,O(n,n)),v(E,O)),b=(E,O)=>(!d.listeners.size&&!o&&(r=n),y(d,O,O(n,r)),v(E,O,d)),C=E=>hn($D(n,E),M),_=E=>hn(LD(n,E),M),S=()=>n,k=(E,O,A)=>{var F,I;const{disposables:P}=E;if(!(A instanceof Set)&&!((F=E.allKeysListeners)!=null&&F.size)){const j=(I=E.listenersByKey)==null?void 0:I.get(A);if(!j)return;for(const $ of j){const N=P.size?P.get($):void 0;N&&N();const z=$(n,O);z?P.set($,z):N&&P.delete($)}return}const L=E.allKeysListeners;for(const j of E.listeners){if(!(L!=null&&L.has(j))&&!kP(E.listenerKeys.get(j),A))continue;const $=P.size?P.get(j):void 0;$&&$();const N=j(n,O);N?P.set(j,N):$&&P.delete(j)}},T=(E,O,A=!1)=>{var j;if(!ps(n,E))return;const P=n[E],L=typeof O=="function"?O(P):O;if(L===P)return;if(!A&&t.length)for(const $ of t)(j=$==null?void 0:$.setState)==null||j.call($,E,L);const F=n;n={...n,[E]:L};const I=o;o=!0;try{k(u,F,E)}finally{o=I}if(!d.listeners.size){o||(r=n);return}a.add(E),!i&&(i=!0,queueMicrotask(()=>{i=!1;const $=n,N=a;a=new Set;const z=r;k(d,z,N),r===z&&(r=$)}))},M={getState:S,setState:T,__unstableInternals:{setup:h,init:g,subscribe:x,sync:w,batch:b,pick:C,omit:_}};return M}function Ft(e,...t){if(e)return $i(e,"setup")(...t)}function Tm(e,...t){if(e)return $i(e,"init")(...t)}function Mm(e,...t){if(e)return $i(e,"subscribe")(...t)}function tt(e,...t){if(e)return $i(e,"sync")(...t)}function Ya(e,...t){if(e)return $i(e,"batch")(...t)}function Ha(e,...t){if(e)return $i(e,"omit")(...t)}function Mw(e,...t){if(e)return $i(e,"pick")(...t)}function yl(...e){var r;const t={};for(const s of e){const i=(r=s==null?void 0:s.getState)==null?void 0:r.call(s);i&&Object.assign(t,i)}const n=hn(t,...e);return Object.assign({},...e,n)}var Ew={exports:{}},Ow={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var To=m;function EP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var OP=typeof Object.is=="function"?Object.is:EP,DP=To.useState,PP=To.useEffect,AP=To.useLayoutEffect,RP=To.useDebugValue;function jP(e,t){var n=t(),r=DP({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return AP(function(){s.value=n,s.getSnapshot=t,Nd(s)&&i({inst:s})},[e,n,t]),PP(function(){return Nd(s)&&i({inst:s}),e(function(){Nd(s)&&i({inst:s})})},[e]),RP(n),n}function Nd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!OP(e,n)}catch{return!0}}function IP(e,t){return t()}var NP=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?IP:jP;Ow.useSyncExternalStore=To.useSyncExternalStore!==void 0?To.useSyncExternalStore:NP;Ew.exports=Ow;var Dw=Ew.exports;const Pw=()=>()=>{};function G(e,t=Sw){const n=m.useCallback(s=>e?Mm(e,null,s):Pw(),[e]),r=()=>{const s=typeof t=="string"?t:null,i=typeof t=="function"?t:null,o=e==null?void 0:e.getState();if(i)return i(o);if(o&&s&&ps(o,s))return o[s]};return Dw.useSyncExternalStore(n,r,r)}function Aw(e,t){const n=m.useRef({}),r=m.useCallback(i=>e?Mm(e,null,i):Pw(),[e]),s=()=>{const i=e==null?void 0:e.getState();let o=!1;const a=n.current;for(const l in t){const c=t[l];if(typeof c=="function"){const u=c(i);u!==a[l]&&(a[l]=u,o=!0)}if(typeof c=="string"){if(!i||!ps(i,c))continue;const u=i[c];u!==a[l]&&(a[l]=u,o=!0)}}return o&&(n.current={...a}),n.current};return Dw.useSyncExternalStore(r,s,s)}function ot(e,t,n,r){const s=ps(t,n)?t[n]:void 0,i=kw({value:s,setValue:r?t[r]:void 0});Ne(()=>tt(e,[n],(o,a)=>{const{value:l,setValue:c}=i.current;c&&o[n]!==a[n]&&o[n]!==l&&c(o[n])}),[e,n]),Ne(()=>{if(s!==void 0)return e.setState(n,s),Ya(e,[n],()=>{s!==void 0&&e.setState(n,s)})})}function Hr(e,t){const[n,r]=m.useState(()=>e(t));Ne(()=>Tm(n),[n]);const s=m.useCallback(i=>G(n,i),[n]);return[m.useMemo(()=>({...n,useState:s}),[n,s]),be(()=>{r(i=>e({...t,...i.getState()}))})]}const FP="button";function LP(e){return Yf(e)?!0:e.tagName==="INPUT"&&!Co(e)}function $P(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),s=Math.max(n*.875,n-40)*1.5,i=t?n-s+r:s+r;return e.tagName==="HTML"?i+e.scrollTop:i}function VP(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function Av(e,t,n,r=!1){var c;if(!t||!n)return;const{renderedItems:s}=t.getState(),i=mm(e);if(!i)return;const o=$P(i,r);let a,l;for(let u=0;u<s.length;u+=1){const d=a;if(a=n(u),!a)break;if(a===d)continue;const h=(c=Fs(t,a))==null?void 0:c.element;if(!h)continue;const g=VP(h,r)-o,p=Math.abs(g);if(r&&g<=0||!r&&g>=0){l!==void 0&&l<p&&(a=d);break}l=p}return a}function WP(e,t){return Nn(e)?!1:Pa(t,e.target)}const bl=_e(function({store:t,rowId:n,preventScrollOnKeyDown:r=!1,moveOnKeyPress:s=!0,tabbable:i=!1,getItem:o,"aria-setsize":a,"aria-posinset":l,...c}){const u=vl();t=t||u;const d=On(c.id),h=m.useRef(null),g=m.useContext(Tw),p=si(c)&&!c.accessibleWhenDisabled,{rowId:v,baseElement:x,isActiveItem:y,ariaSetSize:w,ariaPosInSet:b,isTabbable:C}=Aw(t,{rowId(I){if(n)return n;if(I&&g!=null&&g.baseElement&&g.baseElement===I.baseElement)return g.id},baseElement(I){return(I==null?void 0:I.baseElement)||void 0},isActiveItem(I){return!!I&&I.activeId===d},ariaSetSize(I){if(a!=null)return a;if(I&&g!=null&&g.ariaSetSize&&g.baseElement===I.baseElement)return g.ariaSetSize},ariaPosInSet(I){if(l!=null)return l;if(!I||!(g!=null&&g.ariaPosInSet)||g.baseElement!==I.baseElement)return;const j=I.renderedItems.filter($=>$.rowId===v);return g.ariaPosInSet+j.findIndex($=>$.id===d)},isTabbable(I){if(!(I!=null&&I.renderedItems.length))return!0;if(I.virtualFocus)return!1;if(i)return!0;if(I.activeId===null)return!1;const j=t==null?void 0:t.item(I.activeId);return j!=null&&j.disabled||!(j!=null&&j.element)?!0:I.activeId===d}}),_=m.useCallback(I=>{var $;const j={...I,id:d||I.id,rowId:v,disabled:p,children:($=I.element)==null?void 0:$.textContent};return o?o(j):j},[d,v,p,o]),S=c.onFocus,k=m.useRef(!1),T=be(I=>{if(S==null||S(I),I.defaultPrevented||_D(I)||!d||!t||WP(I,t))return;const{virtualFocus:j,baseElement:$}=t.getState();t.setActiveId(d),Yf(I.currentTarget)&&SP(I.currentTarget),j&&Nn(I)&&(LP(I.currentTarget)||$!=null&&$.isConnected&&(pu()&&I.currentTarget.hasAttribute("data-autofocus")&&I.currentTarget.scrollIntoView({block:"nearest",inline:"nearest"}),k.current=!0,I.relatedTarget===$||Pa(t,I.relatedTarget)?_P($):$.focus()))}),M=c.onBlurCapture,E=be(I=>{var j;M==null||M(I),!I.defaultPrevented&&(j=t==null?void 0:t.getState())!=null&&j.virtualFocus&&k.current&&(k.current=!1,I.preventDefault(),I.stopPropagation())}),O=c.onKeyDown,A=vt(r),P=vt(s),L=be(I=>{var re;if(O==null||O(I),I.defaultPrevented||!Nn(I)||!t)return;const{currentTarget:j}=I,$=t.getState(),N=!!((re=t.item(d))!=null&&re.rowId),z=$.orientation!=="horizontal",B=$.orientation!=="vertical",K=()=>!!(N||B||!$.baseElement||!Cr($.baseElement)),Q={ArrowUp:(N||z)&&t.up,ArrowRight:(N||B)&&t.next,ArrowDown:(N||z)&&t.down,ArrowLeft:(N||B)&&t.previous,Home:()=>{if(K())return!N||I.ctrlKey?t==null?void 0:t.first():t==null?void 0:t.previous(-1)},End:()=>{if(K())return!N||I.ctrlKey?t==null?void 0:t.last():t==null?void 0:t.next(-1)},PageUp:()=>Av(j,t,t==null?void 0:t.up,!0),PageDown:()=>Av(j,t,t==null?void 0:t.down)}[I.key];if(Q){if(Yf(j)){const ie=Hf(j),X=B&&I.key==="ArrowLeft",he=B&&I.key==="ArrowRight",je=z&&I.key==="ArrowUp",Te=z&&I.key==="ArrowDown";if(he||Te){const{length:Ue}=bD(j);if(ie.end!==Ue)return}else if((X||je)&&ie.start!==0)return}const Y=Q();if(A(I)||Y!==void 0){if(!P(I))return;I.preventDefault(),t.move(Y)}}}),F=m.useMemo(()=>({id:d,baseElement:x}),[d,x]);return c=lt(c,I=>f.jsx(vP.Provider,{value:F,children:I}),[F]),c={"data-active-item":y||void 0,...c,id:d,ref:bt(h,c.ref),tabIndex:C?c.tabIndex:-1,onFocus:T,onBlurCapture:E,onKeyDown:L},c=bu(c),c=km({store:t,...c,getItem:_,shouldRegisterItem:d?c.shouldRegisterItem:!1}),wn({...c,"aria-setsize":w,"aria-posinset":b})}),qf=Cs(pe(function(t){return Se(FP,bl(t))})),Em=Sn([Li],[ii]),BP=Em.useScopedContext,Rw=Em.useProviderContext,jw=Em.ScopedContextProvider,zP="button",YP=_e(function({store:t,getItem:n,...r}){const s=BP();t=t||s,Ke(t,!1);const i=On(),o=r.id||i,a=si(r),l=m.useCallback(w=>{const b={...w,dimmed:a};return n?n(b):b},[a,n]),c=r.onClick,u=be(w=>{c==null||c(w),!w.defaultPrevented&&(t==null||t.setSelectedId(o))}),d=G(t.panels,w=>{var b;return(b=w.items.find(C=>C.tabId===o))==null?void 0:b.id}),h=i?r.shouldRegisterItem:!1,g=G(t,w=>!!o&&w.activeId===o),p=G(t,w=>!!o&&w.selectedId===o),v=G(t,w=>!!t.item(w.activeId)),x=g||p&&!v,y=p||(r.accessibleWhenDisabled??!0);if(G(t.combobox||t.composite,"virtualFocus")&&(r={...r,tabIndex:-1}),r={role:"tab","aria-selected":p,"aria-controls":d||void 0,...r,id:o,onClick:u},t.composite){const w={id:o,accessibleWhenDisabled:y,store:t.composite,shouldRegisterItem:x&&h,rowId:r.rowId,render:r.render};r={...r,render:f.jsx(qf,{...w,render:t.combobox&&t.composite!==t.combobox?f.jsx(qf,{...w,store:t.combobox}):w.render})}}return r=bl({store:t,...r,accessibleWhenDisabled:y,getItem:l,shouldRegisterItem:h}),r}),HP=Cs(pe(function(t){return Se(zP,YP(t))})),UP="div";function GP(e){return e.some(t=>!!t.rowId)}function qP(e){const t=e.target;return t&&!Cr(t)?!1:e.key.length===1&&!e.ctrlKey&&!e.metaKey}function KP(e){return e.key==="Shift"||e.key==="Control"||e.key==="Alt"||e.key==="Meta"}function Rv(e,t,n){return be(r=>{var a;if(t==null||t(r),r.defaultPrevented||r.isPropagationStopped()||!Nn(r)||KP(r)||qP(r))return;const s=(a=Fs(e,e.getState().activeId))==null?void 0:a.element;if(!s)return;const{view:i,...o}=r;s!==(n==null?void 0:n.current)&&s.focus(),kD(s,r.type,o)||r.preventDefault(),r.currentTarget.contains(s)&&r.stopPropagation()})}function XP(e){return xP(pw(zf(wP(e))))}function Iw(e,t){const{virtualFocus:n,baseElement:r}=e.getState();if(!n||!r||!Cr(r)){t();return}const s=r.scrollLeft,i=r.scrollTop;t(),r.scrollLeft=s,r.scrollTop=i}function ZP(e){const[t,n]=m.useState(!1),r=m.useCallback(()=>n(!0),[]),s=G(e,i=>Fs(e,i.activeId));return m.useEffect(()=>{const i=s==null?void 0:s.element;t&&i&&(n(!1),Iw(e,()=>{i.focus({preventScroll:!0})}))},[e,s,t]),r}const xl=_e(function({store:t,composite:n=!0,focusOnMove:r=n,moveOnKeyPress:s=!0,...i}){const o=pP();t=t||o,Ke(t,!1);const a=m.useRef(null),l=m.useRef(null),c=ZP(t),u=G(t,"moves"),[,d]=UD(n?t.setBaseElement:null);m.useEffect(()=>{var O;if(!t||!u||!n||!r)return;const{activeId:M}=t.getState(),E=(O=Fs(t,M))==null?void 0:O.element;E&&Iw(t,()=>RD(E))},[t,u,n,r]),Ne(()=>{if(!t||!u||!n)return;const{baseElement:M,activeId:E}=t.getState();if(E!==null||!M)return;const O=l.current;l.current=null,O&&qi(O,{relatedTarget:M}),Ri(M)||M.focus()},[t,u,n]);const h=G(t,"activeId"),g=G(t,"virtualFocus");Ne(()=>{var O;if(!t||!n||!g)return;const M=l.current;if(l.current=null,!M)return;const E=((O=Fs(t,h))==null?void 0:O.element)||_s(M);E!==M&&qi(M,{relatedTarget:E})},[t,h,g,n]);const p=Rv(t,i.onKeyDownCapture,l),v=Rv(t,i.onKeyUpCapture,l),x=i.onFocusCapture,y=be(M=>{if(x==null||x(M),M.defaultPrevented||!t)return;const{virtualFocus:E}=t.getState();if(!E)return;const O=M.relatedTarget,A=CP(M.currentTarget);Nn(M)&&A&&(M.stopPropagation(),l.current=O)}),w=i.onFocus,b=be(M=>{if(w==null||w(M),M.defaultPrevented||!n||!t)return;const{relatedTarget:E}=M,{virtualFocus:O}=t.getState();O?Nn(M)&&!Pa(t,E)&&queueMicrotask(c):Nn(M)&&t.setActiveId(null)}),C=i.onBlurCapture,_=be(M=>{var I;if(C==null||C(M),M.defaultPrevented||!t)return;const{virtualFocus:E,activeId:O}=t.getState();if(!E)return;const A=(I=Fs(t,O))==null?void 0:I.element,P=M.relatedTarget,L=Pa(t,P),F=l.current;l.current=null,Nn(M)&&L?(P===A?F&&F!==P&&qi(F,M):A?qi(A,M):F&&qi(F,M),M.stopPropagation()):!Pa(t,M.target)&&A&&qi(A,M)}),S=i.onKeyDown,k=vt(s),T=be(M=>{var $,N;if(S==null||S(M),M.nativeEvent.isComposing||M.defaultPrevented||!t||!Nn(M))return;const{orientation:E,renderedItems:O,activeId:A}=t.getState();if((N=($=Fs(t,A))==null?void 0:$.element)!=null&&N.isConnected)return;const P=E!=="horizontal",L=E!=="vertical",F=GP(O);if((M.key==="ArrowLeft"||M.key==="ArrowRight"||M.key==="Home"||M.key==="End")&&Cr(M.currentTarget))return;const j={ArrowUp:(F||P)&&(()=>{var z;return F?(z=XP(O))==null?void 0:z.id:t==null?void 0:t.last()}),ArrowRight:(F||L)&&t.first,ArrowDown:(F||P)&&t.first,ArrowLeft:(F||L)&&t.last,Home:t.first,End:t.last,PageUp:t.first,PageDown:t.last}[M.key];if(j){const z=j();if(z!==void 0){if(!k(M))return;M.preventDefault(),t.move(z)}}});return i=lt(i,M=>f.jsx(ii,{value:t,children:M}),[t]),i={"aria-activedescendant":G(t,M=>{var E;if(t&&n&&M.virtualFocus)return(E=Fs(t,M.activeId))==null?void 0:E.id}),...i,ref:bt(a,d,i.ref),onKeyDownCapture:p,onKeyUpCapture:v,onFocusCapture:y,onFocus:b,onBlurCapture:_,onKeyDown:T},i=Go({focusable:G(t,M=>n&&(M.virtualFocus||M.activeId===null)),...i}),i}),QP=pe(function(t){return Se(UP,xl(t))}),JP="div",eA=_e(function({store:t,...n}){const r=Rw();t=t||r,Ke(t,!1);const s=G(t,i=>i.orientation==="both"?void 0:i.orientation);return n=lt(n,i=>f.jsx(jw,{value:t,children:i}),[t]),t.composite&&(n={focusable:!1,...n}),n={role:"tablist","aria-orientation":s,...n},n=xl({store:t,...n}),n}),tA=pe(function(t){return Se(JP,eA(t))}),Om=Sn(),Dm=Om.useProviderContext,nA=Om.ContextProvider,rA=Om.ScopedContextProvider,Pm=Sn([nA],[rA]),wl=Pm.useProviderContext,sA=Pm.ContextProvider,Am=Pm.ScopedContextProvider,iA=m.createContext(void 0),oA=m.createContext(void 0),aA="div";function jv(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function lA(e){let t=requestAnimationFrame(()=>{t=requestAnimationFrame(e)});return()=>cancelAnimationFrame(t)}function Iv(...e){return e.join(", ").split(", ").reduce((t,n)=>{const r=n.endsWith("ms")?1:1e3,s=Number.parseFloat(n||"0s")*r;return s>t?s:t},0)}function wu(e,t,n){return!n&&t!==!1&&(!e||!!t)}const Su=_e(function({store:t,alwaysVisible:n,...r}){const s=Dm();t=t||s,Ke(t,!1);const i=m.useRef(null),o=On(r.id),[a,l]=m.useState(null),c=G(t,"open"),u=G(t,"mounted"),d=G(t,"animated"),h=G(t,"contentElement"),g=G(t.disclosure,"contentElement"),p=m.useRef(!1);Ne(()=>{i.current&&(t==null||t.setContentElement(i.current))},[t]),Ne(()=>{let w;return t==null||t.setState("animated",b=>(w=b,!0)),()=>{w!==void 0&&(t==null||t.setState("animated",w))}},[t]),Ne(()=>{if(!d){c?p.current&&(p.current=!1,l("enter")):(p.current=!0,l(null));return}if(!(h!=null&&h.isConnected)){l(null);return}return lA(()=>{l(c?"enter":u?"leave":null)})},[d,h,c,u]),Ne(()=>{if(!t||!d||!a||!h)return;const w=()=>t==null?void 0:t.setState("animating",!1),b=()=>Hs.flushSync(w);if(a==="leave"&&c||a==="enter"&&!c)return;if(typeof d=="number")return jv(d,b);const{transitionDuration:C,animationDuration:_,transitionDelay:S,animationDelay:k}=getComputedStyle(h),{transitionDuration:T="0",animationDuration:M="0",transitionDelay:E="0",animationDelay:O="0"}=g?getComputedStyle(g):{},A=Iv(S,k,E,O)+Iv(C,_,T,M);if(!A){a==="enter"&&t.setState("animated",!1),w();return}return jv(Math.max(A-1e3/60,0),b)},[t,d,h,g,c,a]),r=lt(r,w=>f.jsx(Am,{value:t,children:w}),[t]);const v=wu(u,r.hidden,n),x=r.style,y=m.useMemo(()=>v?{...x,display:"none"}:x,[v,x]);return r={"data-open":c||void 0,"data-enter":a==="enter"||void 0,"data-leave":a==="leave"||void 0,hidden:v,...r,id:o,ref:bt(o?t.setContentElement:null,i,r.ref),style:y},wn(r)}),cA=pe(function(t){return Se(aA,Su(t))});pe(function({unmountOnHide:t,...n}){const r=Dm();return G(n.store||r,s=>!t||(s==null?void 0:s.mounted))===!1?null:f.jsx(cA,{...n})});function Nw(e={}){const t=yl(e.store,Ha(e.disclosure,["contentElement","disclosureElement"])),n=t==null?void 0:t.getState(),r=ye(e.open,n==null?void 0:n.open,e.defaultOpen,!1),s=ye(e.animated,n==null?void 0:n.animated,!1),i=hn({open:r,animated:s,animating:!!s&&r,mounted:r,contentElement:ye(n==null?void 0:n.contentElement,null),disclosureElement:ye(n==null?void 0:n.disclosureElement,null)},t);return Ft(i,()=>tt(i,["animated","animating"],o=>{o.animated||i.setState("animating",!1)})),Ft(i,()=>Mm(i,["open"],()=>{i.getState().animated&&i.setState("animating",!0)})),Ft(i,()=>tt(i,["open","animating"],o=>{i.setState("mounted",o.open||o.animating)})),{...i,disclosure:e.disclosure,setOpen:o=>i.setState("open",o),show:()=>i.setState("open",!0),hide:()=>i.setState("open",!1),toggle:()=>i.setState("open",o=>!o),stopAnimation:()=>i.setState("animating",!1),setContentElement:o=>i.setState("contentElement",o),setDisclosureElement:o=>i.setState("disclosureElement",o)}}function Fw(e,t,n){return vs(t,[n.store,n.disclosure]),ot(e,n,"open","setOpen"),ot(e,n,"mounted","setMounted"),ot(e,n,"animated"),Object.assign(e,{disclosure:n.disclosure})}function Lw(e={}){const[t,n]=Hr(Nw,e);return Fw(t,n,e)}const uA="div",dA=_e(function({store:t,unmountOnHide:n,tabId:r,getItem:s,scrollRestoration:i,scrollElement:o,...a}){const l=Rw();t=t||l,Ke(t,!1);const c=m.useRef(null),u=On(a.id),d=G(t.panels,()=>{var _;return r||((_=t==null?void 0:t.panels.item(u))==null?void 0:_.tabId)}),h=Lw({open:G(t,_=>!!d&&_.selectedId===d)}),g=G(h,"mounted"),p=m.useRef(new Map),v=be(()=>{const _=c.current;return _?o?typeof o=="function"?o(_):"current"in o?o.current:o:_:null});m.useEffect(()=>{if(!i||!g)return;const _=v();if(!_)return;if(i==="reset"){_.scroll(0,0);return}if(!d)return;const S=p.current.get(d);_.scroll((S==null?void 0:S.x)??0,(S==null?void 0:S.y)??0);const k=()=>{p.current.set(d,{x:_.scrollLeft,y:_.scrollTop})};return _.addEventListener("scroll",k),()=>{_.removeEventListener("scroll",k)}},[i,g,d,v]);const[x,y]=m.useState(!1);Ne(()=>{if(!g)return;const _=c.current;_&&y(!!gl(_).length)},[g]);const w=m.useCallback(_=>{const S={..._,id:u||_.id,tabId:r};return s?s(S):S},[u,r,s]),b=a.onKeyDown,C=be(_=>{if(b==null||b(_),_.defaultPrevented||!(t!=null&&t.composite))return;const S={ArrowLeft:t.previous,ArrowRight:t.next,Home:t.first,End:t.last}[_.key];if(!S)return;const{selectedId:k}=t.getState(),T=S({activeId:k});T&&(_.preventDefault(),t.move(T))});return a=lt(a,_=>f.jsx(jw,{value:t,children:_}),[t]),a={role:"tabpanel","aria-labelledby":a["aria-label"]!=null?void 0:d||void 0,...a,id:u,children:n&&!g?null:a.children,ref:bt(c,a.ref),onKeyDown:C},a=Go({focusable:!t.composite&&!x,...a}),a=Su({store:h,...a}),a=km({store:t.panels,...a,getItem:w}),a}),fA=pe(function(t){return Se(uA,dA(t))}),Rm=Sn([sA],[Am]),_u=Rm.useProviderContext,jm=Rm.ContextProvider,Sl=Rm.ScopedContextProvider,$w=m.createContext(void 0),_l=Sn([jm,Li],[Sl,ii]),Vw=_l.useContext,Im=_l.useScopedContext,Nm=_l.useProviderContext,hA=_l.ContextProvider,mA=_l.ScopedContextProvider,Ww=m.createContext(void 0),gA=m.createContext(!1);function pA(e){var s,i;const t=e.find(o=>!!o.element),n=(s=[...e].reverse().find(o=>!!o.element))==null?void 0:s.element;let r=(i=t==null?void 0:t.element)==null?void 0:i.parentElement;if(!n)return at(r).body;for(;r;){if(r.contains(n))return r;r=r.parentElement}return at(r).body}function vA(e){return e==null?void 0:e.__unstablePrivateStore}function Bw(e={}){var d;e.store;const t=(d=e.store)==null?void 0:d.getState(),n=ye(e.items,t==null?void 0:t.items,e.defaultItems,[]),r=new Map(n.map(h=>[h.id,h])),s={items:n,renderedItems:ye(t==null?void 0:t.renderedItems,[])},i=vA(e.store),o=hn({items:n,renderedItems:s.renderedItems},i),a=hn(s,e.store),l=h=>{const g=yw(h,p=>p.element);o.setState("renderedItems",g),a.setState("renderedItems",g)};Ft(a,()=>Tm(o)),Ft(o,()=>Ya(o,["items"],h=>{a.setState("items",h.items)})),Ft(o,()=>Ya(o,["renderedItems"],h=>{let g=!0,p=requestAnimationFrame(()=>{const{renderedItems:w}=a.getState();h.renderedItems!==w&&l(h.renderedItems)});if(typeof IntersectionObserver!="function")return()=>cancelAnimationFrame(p);const v=()=>{if(g){g=!1;return}cancelAnimationFrame(p),p=requestAnimationFrame(()=>l(h.renderedItems))},x=pA(h.renderedItems),y=new IntersectionObserver(v,{root:x});for(const w of h.renderedItems)w.element&&y.observe(w.element);return()=>{cancelAnimationFrame(p),y.disconnect()}}));const c=(h,g,p=!1)=>{let v;return g(y=>{const w=y.findIndex(({id:C})=>C===h.id),b=y.slice();if(w!==-1){v=y[w];const C={...v,...h};b[w]=C,r.set(h.id,C)}else b.push(h),r.set(h.id,h);return b}),()=>{g(y=>{if(!v)return p&&r.delete(h.id),y.filter(({id:C})=>C!==h.id);const w=y.findIndex(({id:C})=>C===h.id);if(w===-1)return y;const b=y.slice();return b[w]=v,r.set(h.id,v),b})}},u=h=>c(h,g=>o.setState("items",g),!0);return{...a,registerItem:u,renderItem:h=>fn(u(h),c(h,g=>o.setState("renderedItems",g))),item:h=>{if(!h)return null;let g=r.get(h);if(!g){const{items:p}=o.getState();g=p.find(v=>v.id===h),g&&r.set(h,g)}return g||null},__unstablePrivateStore:o}}function yA(e,t,n){return vs(t,[n.store]),ot(e,n,"items","setItems"),e}const bA={id:null};function rs(e,t){return e.find(n=>t?!n.disabled&&n.id!==t:!n.disabled)}function xA(e,t){return e.filter(n=>t?!n.disabled&&n.id!==t:!n.disabled)}function Nv(e,t){return e.filter(n=>n.rowId===t)}function wA(e,t,n=!1){const r=e.findIndex(s=>s.id===t);return[...e.slice(r+1),...n?[bA]:[],...e.slice(0,r)]}function zw(e){const t=[];for(const n of e){const r=t.find(s=>{var i;return((i=s[0])==null?void 0:i.rowId)===n.rowId});r?r.push(n):t.push([n])}return t}function Yw(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function SA(e){return{id:"__EMPTY_ITEM__",disabled:!0,rowId:e}}function _A(e,t,n){const r=Yw(e);for(const s of e)for(let i=0;i<r;i+=1){const o=s[i];if(!o||n&&o.disabled){const a=i===0&&n?rs(s):s[i-1];s[i]=a&&t!==a.id&&n?a:SA(a==null?void 0:a.rowId)}}return e}function CA(e){const t=zw(e),n=Yw(t),r=[];for(let s=0;s<n;s+=1)for(const i of t){const o=i[s];o&&r.push({...o,rowId:o.rowId?`${s}`:void 0})}return r}function Cl(e={}){var o;const t=(o=e.store)==null?void 0:o.getState(),n=Bw(e),r=ye(e.activeId,t==null?void 0:t.activeId,e.defaultActiveId),s=hn({...n.getState(),id:ye(e.id,t==null?void 0:t.id)??`id-${Math.random().toString(36).slice(2,8)}`,activeId:r,baseElement:ye(t==null?void 0:t.baseElement,null),includesBaseElement:ye(e.includesBaseElement,t==null?void 0:t.includesBaseElement,r===null),moves:ye(t==null?void 0:t.moves,0),orientation:ye(e.orientation,t==null?void 0:t.orientation,"both"),rtl:ye(e.rtl,t==null?void 0:t.rtl,!1),virtualFocus:ye(e.virtualFocus,t==null?void 0:t.virtualFocus,!1),focusLoop:ye(e.focusLoop,t==null?void 0:t.focusLoop,!1),focusWrap:ye(e.focusWrap,t==null?void 0:t.focusWrap,!1),focusShift:ye(e.focusShift,t==null?void 0:t.focusShift,!1)},n,e.store);Ft(s,()=>tt(s,["renderedItems","activeId"],a=>{s.setState("activeId",l=>{var c;return l!==void 0?l:(c=rs(a.renderedItems))==null?void 0:c.id})}));const i=(a="next",l={})=>{var I,j,$,N;const c=s.getState(),{skip:u=0,activeId:d=c.activeId,focusShift:h=c.focusShift,focusLoop:g=c.focusLoop,focusWrap:p=c.focusWrap,includesBaseElement:v=c.includesBaseElement,renderedItems:x=c.renderedItems,rtl:y=c.rtl}=l,w=a==="up"||a==="down",b=a==="next"||a==="down",C=b?y&&!w:!y||w,_=h&&!u;let S=w?pw(_A(zw(x),d,_)):x;if(S=C?zf(S):S,S=w?CA(S):S,d==null)return(I=rs(S))==null?void 0:I.id;const k=S.find(z=>z.id===d);if(!k)return(j=rs(S))==null?void 0:j.id;const T=S.some(z=>z.rowId),M=S.indexOf(k),E=S.slice(M+1),O=Nv(E,k.rowId);if(u){const z=xA(O,d);return($=z.slice(u)[0]||z[z.length-1])==null?void 0:$.id}const A=g&&(w?g!=="horizontal":g!=="vertical"),P=T&&p&&(w?p!=="horizontal":p!=="vertical"),L=b?(!T||w)&&A&&v:w?v:!1;if(A)return(N=rs(wA(P&&!L?S:Nv(S,k.rowId),d,L),d))==null?void 0:N.id;if(P){const z=rs(L?O:E,d);return L?(z==null?void 0:z.id)||null:z==null?void 0:z.id}const F=rs(O,d);return!F&&L?null:F==null?void 0:F.id};return{...n,...s,setBaseElement:a=>s.setState("baseElement",a),setActiveId:a=>s.setState("activeId",a),move:a=>{a!==void 0&&(s.setState("activeId",a),s.setState("moves",l=>l+1))},first:()=>{var a;return(a=rs(s.getState().renderedItems))==null?void 0:a.id},last:()=>{var a;return(a=rs(zf(s.getState().renderedItems)))==null?void 0:a.id},next:a=>(a!==void 0&&typeof a=="number"&&(a={skip:a}),i("next",a)),previous:a=>(a!==void 0&&typeof a=="number"&&(a={skip:a}),i("previous",a)),down:a=>(a!==void 0&&typeof a=="number"&&(a={skip:a}),i("down",a)),up:a=>(a!==void 0&&typeof a=="number"&&(a={skip:a}),i("up",a))}}function Fm(e){return{id:On(e.id),...e}}function kl(e,t,n){return e=yA(e,t,n),ot(e,n,"activeId","setActiveId"),ot(e,n,"includesBaseElement"),ot(e,n,"virtualFocus"),ot(e,n,"orientation"),ot(e,n,"rtl"),ot(e,n,"focusLoop"),ot(e,n,"focusWrap"),ot(e,n,"focusShift"),e}function kA(e={}){e=Fm(e);const[t,n]=Hr(Cl,e);return kl(t,n,e)}const TA=Sn([jm,Li],[Sl,ii]),MA=TA.useContext;m.createContext(!1);m.createContext(null);function EA(e){var n,r;const t=(r=(n=e[0])==null?void 0:n.element)==null?void 0:r.ownerDocument.activeElement;if(t)return e.find(s=>s.element===t)}function OA(e,t){if(t!=null)return e.find(n=>n.id===t)}function nc(e){return!(!e||e.disabled||e.dimmed)}function DA({composite:e,combobox:t,...n}={}){const r=["items","renderedItems","moves","orientation","virtualFocus","includesBaseElement","baseElement","focusLoop","focusShift","focusWrap"],s=yl(n.store,Ha(e,r),Ha(t,r)),i=s==null?void 0:s.getState(),o=Cl({...n,store:s,includesBaseElement:ye(n.includesBaseElement,i==null?void 0:i.includesBaseElement,!1),orientation:ye(n.orientation,i==null?void 0:i.orientation,"horizontal"),focusLoop:ye(n.focusLoop,i==null?void 0:i.focusLoop,!0)}),a=Bw(),l=hn({...o.getState(),selectedId:ye(n.selectedId,i==null?void 0:i.selectedId,n.defaultSelectedId),selectOnMove:ye(n.selectOnMove,i==null?void 0:i.selectOnMove,!0)},o,s);Ft(l,()=>tt(l,["moves"],()=>{const{activeId:d,selectOnMove:h}=l.getState();if(!h||!d)return;const g=o.item(d);nc(g)&&l.setState("selectedId",g.id)}));let c=!0;Ft(l,()=>Ya(l,["selectedId"],(d,h)=>{if(!c){c=!0;return}if(e&&d.selectedId===h.selectedId)return;const{activeId:g,renderedItems:p}=l.getState(),v=EA(p),x=OA(p,d.selectedId);if(v&&nc(x)&&g!==x.id){o.move(x.id);return}l.setState("activeId",d.selectedId)})),Ft(l,()=>tt(l,["selectedId","renderedItems"],d=>{if(d.selectedId!==void 0)return;const{activeId:h,renderedItems:g}=l.getState(),p=o.item(h);if(nc(p))l.setState("selectedId",p.id);else{const v=g.find(nc);l.setState("selectedId",v==null?void 0:v.id)}})),Ft(l,()=>tt(l,["renderedItems"],d=>{const h=d.renderedItems;if(h.length)return tt(a,["renderedItems"],g=>{const p=g.renderedItems;p.some(v=>!v.tabId)&&p.forEach((v,x)=>{if(v.tabId)return;const y=h[x];y&&a.renderItem({...v,tabId:y.id})})})}));let u=null;return Ft(l,()=>{const d=()=>{u=l.getState().selectedId},h=()=>{c=!1,l.setState("selectedId",u)};if(e&&"setSelectElement"in e)return fn(tt(e,["value"],d),tt(e,["mounted"],h));if(t)return fn(tt(t,["selectedValue"],d),tt(t,["mounted"],h))}),{...o,...l,panels:a,setSelectedId:d=>l.setState("selectedId",d),select:d=>{l.setState("selectedId",d),o.move(d)}}}function PA(e,t,n){vs(t,[n.composite,n.combobox]),e=kl(e,t,n),ot(e,n,"selectedId","setSelectedId"),ot(e,n,"selectOnMove");const[r,s]=Hr(()=>e.panels,{});return vs(s,[e,s]),Object.assign(m.useMemo(()=>({...e,panels:r}),[e,r]),{composite:n.composite,combobox:n.combobox})}function AA(e={}){const t=Vw(),n=MA()||t;e={...e,composite:e.composite!==void 0?e.composite:n,combobox:e.combobox!==void 0?e.combobox:t};const[r,s]=Hr(DA,e);return PA(r,s,e)}const RA="hr",Hw=_e(function({orientation:t="horizontal",...n}){return n={role:"separator","aria-orientation":t,...n},n});pe(function(t){return Se(RA,Hw(t))});const jA="hr",Uw=_e(function({store:t,...n}){const r=vl();t=t||r,Ke(t,!1);const s=G(t,i=>i.orientation==="horizontal"?"vertical":"horizontal");return n=Hw({...n,orientation:s}),n});pe(function(t){return Se(jA,Uw(t))});const IA="div",Gw=_e(function({autoFocusOnShow:t=!0,...n}){return n=lt(n,r=>f.jsx(gw.Provider,{value:t,children:r}),[t]),n});pe(function(t){return Se(IA,Gw(t))});const Fv=m.createContext(0);function NA({level:e,children:t}){const n=m.useContext(Fv),r=Math.max(Math.min(e||n+1,6),1);return f.jsx(Fv.Provider,{value:r,children:t})}const FA="span",qw=_e(function(t){return t={...t,style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px",...t.style}},t});pe(function(t){return Se(FA,qw(t))});const LA="span",$A=_e(function(t){return t={"data-focus-trap":"",tabIndex:0,"aria-hidden":!0,...t,style:{position:"fixed",top:0,left:0,...t.style}},t=qw(t),t}),rc=pe(function(t){return Se(LA,$A(t))}),Lv=m.createContext(null),VA="div";function $v(e){const t=at(e),{fullscreenElement:n}=t;return n instanceof HTMLElement?n:t.body}function WA(e,t){return t?typeof t=="function"?t(e):t:at(e).createElement("div")}function BA(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).slice(2,8)}`}function Os(e){queueMicrotask(()=>{e==null||e.focus()})}const Kw=_e(function({preserveTabOrder:t,preserveTabOrderAnchor:n,portalElement:r,portalRef:s,portal:i=!0,...o}){const a=m.useRef(null),l=bt(a,o.ref),c=m.useContext(Lv),[u,d]=m.useState(null),[h,g]=m.useState(null),p=m.useRef(null),v=m.useRef(null),x=m.useRef(null),y=m.useRef(null);return Ne(()=>{const w=a.current;if(!w||!i){d(null);return}const b=WA(w,r);if(!b){d(null);return}const C=b.isConnected;if(C||(c||$v(w)).appendChild(b),b.id||(b.id=w.id?`portal/${w.id}`:BA()),d(b),Uf(s,b),!C)return()=>{b.remove(),Uf(s,null)}},[i,r,c,s]),m.useEffect(()=>{if(!u||c||r)return;const w=at(u),b=()=>{const C=$v(u);u.parentElement!==C&&C.appendChild(u)};return b(),w.addEventListener("fullscreenchange",b),()=>{w.removeEventListener("fullscreenchange",b)}},[u,c,r]),Ne(()=>{if(!i||!t||!n)return;const w=at(n).createElement("span");return w.style.position="fixed",n.insertAdjacentElement("afterend",w),g(w),()=>{w.remove(),g(null)}},[i,t,n]),m.useEffect(()=>{if(!u||!t)return;let w=0;const b=C=>{if(!wi(C))return;const _=C.type==="focusin";if(cancelAnimationFrame(w),_)return AD(u);w=requestAnimationFrame(()=>{PD(u,!0)})};return u.addEventListener("focusin",b,!0),u.addEventListener("focusout",b,!0),()=>{cancelAnimationFrame(w),u.removeEventListener("focusin",b,!0),u.removeEventListener("focusout",b,!0)}},[u,t]),o=lt(o,w=>{if(w=f.jsx(Lv.Provider,{value:u||c,children:w}),!i)return w;if(!u)return f.jsx("span",{ref:l,id:o.id,style:{position:"fixed"},hidden:!0});w=f.jsxs(f.Fragment,{children:[t&&u&&f.jsx(rc,{ref:v,"data-focus-trap":o.id,className:"__focus-trap-inner-before",onFocus:C=>{wi(C,u)?Os(jd()):Os(p.current)}}),w,t&&u&&f.jsx(rc,{ref:x,"data-focus-trap":o.id,className:"__focus-trap-inner-after",onFocus:C=>{wi(C,u)?Os(Cv()):Os(y.current)}})]}),u&&(w=Hs.createPortal(w,u));let b=f.jsxs(f.Fragment,{children:[t&&u&&f.jsx(rc,{ref:p,"data-focus-trap":o.id,className:"__focus-trap-outer-before",onFocus:C=>{C.relatedTarget!==y.current&&wi(C,u)?Os(v.current):Os(Cv())}}),t&&f.jsx("span",{"aria-owns":u==null?void 0:u.id,style:{position:"fixed"}}),t&&u&&f.jsx(rc,{ref:y,"data-focus-trap":o.id,className:"__focus-trap-outer-after",onFocus:C=>{if(wi(C,u))Os(x.current);else{const _=jd();if(_===v.current){requestAnimationFrame(()=>{var S;return(S=jd())==null?void 0:S.focus()});return}Os(_)}}})]});return h&&t&&(b=Hs.createPortal(b,h)),f.jsxs(f.Fragment,{children:[b,w]})},[u,c,i,o.id,t,h]),o={...o,ref:l},o});pe(function(t){return Se(VA,Kw(t))});const Fd=new WeakMap;function Tl(e,t,n){Fd.has(e)||Fd.set(e,new Map);const r=Fd.get(e),s=r.get(t);if(!s)return r.set(t,n()),()=>{var a;(a=r.get(t))==null||a(),r.delete(t)};const i=n(),o=()=>{i(),s(),r.delete(t)};return r.set(t,o),()=>{r.get(t)===o&&(i(),r.set(t,s))}}function Lm(e,t,n){return Tl(e,t,()=>{const s=e.getAttribute(t);return e.setAttribute(t,n),()=>{s==null?e.removeAttribute(t):e.setAttribute(t,s)}})}function ji(e,t,n){return Tl(e,t,()=>{const s=t in e,i=e[t];return e[t]=n,()=>{s?e[t]=i:delete e[t]}})}function Kf(e,t){return e?Tl(e,"style",()=>{const r=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=r}}):()=>{}}function zA(e,t,n){return e?Tl(e,t,()=>{const s=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{s?e.style.setProperty(t,s):e.style.removeProperty(t)}}):()=>{}}const YA=["SCRIPT","STYLE"];function Xf(e){return`__ariakit-dialog-snapshot-${e}`}function HA(e,t){const n=at(t),r=Xf(e);if(!n.body[r])return!0;do{if(t===n.body)return!1;if(t[r])return!0;if(!t.parentElement)return!1;t=t.parentElement}while(!0)}function UA(e,t,n){return YA.includes(t.tagName)||!HA(e,t)?!1:!n.some(r=>r&&kt(t,r))}function $m(e,t,n,r){for(let s of t){if(!(s!=null&&s.isConnected))continue;const i=t.some(l=>!l||l===s?!1:l.contains(s)),o=at(s),a=s;for(;s.parentElement&&s!==o.body;){if(r==null||r(s.parentElement,a),!i)for(const l of s.parentElement.children)UA(e,l,t)&&n(l,a);s=s.parentElement}}}function GA(e,t){const{body:n}=at(t[0]),r=[];return $m(e,t,i=>{r.push(ji(i,Xf(e),!0))}),fn(ji(n,Xf(e),!0),()=>{for(const i of r)i()})}function Xw(e,...t){if(!e)return!1;const n=e.getAttribute("data-backdrop");return n==null?!1:n===""||n==="true"||!t.length?!0:t.some(r=>n===r)}function Mo(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function qA(e,t=""){return fn(ji(e,Mo(),!0),ji(e,Mo(t),!0))}function Zw(e,t=""){return fn(ji(e,Mo("",!0),!0),ji(e,Mo(t,!0),!0))}function Vm(e,t){const n=Mo(t,!0);if(e[n])return!0;const r=Mo(t);do{if(e[r])return!0;if(!e.parentElement)return!1;e=e.parentElement}while(!0)}function Vv(e,t){const n=[],r=t.map(i=>i==null?void 0:i.id);return $m(e,t,i=>{Xw(i,...r)||n.unshift(qA(i,e))},(i,o)=>{o.hasAttribute("data-dialog")&&o.id!==e||n.unshift(Zw(i,e))}),()=>{for(const i of n)i()}}const KA="div",XA=["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"];_e(function(t){return t});const Ua=pe(function(t){return Se(KA,t)});Object.assign(Ua,XA.reduce((e,t)=>(e[t]=pe(function(r){return Se(t,r)}),e),{}));function ZA({store:e,backdrop:t,alwaysVisible:n,hidden:r}){const s=m.useRef(null),i=Lw({disclosure:e}),o=G(e,"contentElement");m.useEffect(()=>{const c=s.current,u=o;c&&u&&(c.style.zIndex=getComputedStyle(u).zIndex)},[o]),Ne(()=>{const c=o==null?void 0:o.id;if(!c)return;const u=s.current;if(u)return Zw(u,c)},[o]);const a=Su({ref:s,store:i,role:"presentation","data-backdrop":(o==null?void 0:o.id)||"",alwaysVisible:n,hidden:r??void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!t)return null;if(m.isValidElement(t))return f.jsx(Ua,{...a,render:t});const l=typeof t!="boolean"?t:"div";return f.jsx(Ua,{...a,render:f.jsx(l,{})})}function Qw(e={}){return Nw(e)}function Jw(e,t,n){return Fw(e,t,n)}function e1(e={}){const[t,n]=Hr(Qw,e);return Jw(t,n,e)}function t1(){return"inert"in HTMLElement.prototype}function QA(e){return Lm(e,"aria-hidden","true")}function JA(e,...t){if(!e)return!1;const n=e.getAttribute("data-focus-trap");return n==null?!1:t.length?n===""?!1:t.some(r=>n===r):!0}function n1(e,t){return"style"in e?t1()?ji(e,"inert",!0):fn(...gl(e,!0).map(n=>{if(t!=null&&t.some(s=>s&&kt(s,n)))return Da;const r=Tl(n,"focus",()=>(n.focus=Da,()=>{delete n.focus}));return fn(Lm(n,"tabindex","-1"),r)}),QA(e),Kf(e,{pointerEvents:"none",userSelect:"none",cursor:"default"})):Da}function e2(e,t){const n=[],r=t.map(i=>i==null?void 0:i.id);return $m(e,t,i=>{Xw(i,...r)||JA(i,...r)||n.unshift(n1(i,t))},i=>{i.hasAttribute("role")&&(t.some(o=>o&&kt(o,i))||n.unshift(Lm(i,"role","none")))}),()=>{for(const i of n)i()}}function t2(e,t){const n=at(e).createElement("button");return n.type="button",n.tabIndex=-1,n.textContent="Dismiss popup",Object.assign(n.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),n.addEventListener("click",t),e.prepend(n),()=>{n.removeEventListener("click",t),n.remove()}}function n2(e,t){const n=m.useRef(null);return m.useEffect(()=>{if(!e){n.current=null;return}return sn("mousedown",s=>{n.current=s.target},!0,t)},[e,t]),n}function r2(e){return e.tagName==="HTML"?!0:kt(at(e).body,e)}function s2(e,t){if(!e)return!1;if(kt(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const r=at(e).getElementById(n);if(r)return kt(e,r)}return!1}function i2(e,t){if(!("clientY"in e))return!1;const n=t.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}function Ld({store:e,type:t,listener:n,capture:r,domReady:s}){const i=be(n),o=G(e,"open"),a=G(e,"contentElement"),l=m.useRef(!1);Ne(()=>{if(!o||!s||!a)return;const c=()=>{l.current=!0};return a.addEventListener("focusin",c,!0),()=>a.removeEventListener("focusin",c,!0)},[o,s,a]),m.useEffect(()=>o?sn(t,u=>{const{contentElement:d,disclosureElement:h}=e.getState(),g=u.target;d&&ml(g)&&r2(g)&&(kt(d,g)||s2(h,g)||g.hasAttribute("data-focus-trap")||i2(u,d)||l.current&&!Vm(g,d.id)||i(u))},r,a?Ba(a):void 0):void 0,[o,r,e,t,i,a])}function $d(e,t){return typeof e=="function"?e(t):!!e}function o2(e,t,n,r){const s=G(e,"open"),i=G(e,"contentElement"),o=n2(s,i?Ba(i):void 0),a={store:e,domReady:n,capture:!0};Ld({...a,type:"click",listener:l=>{const{contentElement:c}=e.getState(),u=o.current;u&&Vm(u,c==null?void 0:c.id)&&$d(t,l)&&(r&&(r.current=!0),e.hide())}}),Ld({...a,type:"focusin",listener:l=>{const{contentElement:c}=e.getState();c&&l.target!==at(c)&&$d(t,l)&&e.hide()}}),Ld({...a,type:"contextmenu",listener:l=>{$d(t,l)&&(r&&(r.current=!0),e.hide())}})}const Wv=m.createContext({});function a2(e){const t=m.useContext(Wv),[n,r]=m.useState([]),s=m.useCallback(o=>{var a;return r(l=>[...l,o]),fn((a=t.add)==null?void 0:a.call(t,o),()=>{r(l=>l.filter(c=>c!==o))})},[t]);Ne(()=>tt(e,["open","contentElement"],o=>{var a;if(o.open&&o.contentElement)return(a=t.add)==null?void 0:a.call(t,e)}),[e,t]);const i=m.useMemo(()=>({store:e,add:s}),[e,s]);return{wrapElement:m.useCallback(o=>f.jsx(Wv.Provider,{value:i,children:o}),[i]),nestedDialogs:n}}function l2({attribute:e,contentId:t,contentElement:n,enabled:r}){const[s,i]=yu(),o=m.useCallback(()=>{if(!r||!n)return!1;const{body:a}=at(n),l=a.getAttribute(e);return!l||l===t},[s,r,n,e,t]);return m.useEffect(()=>{if(!r||!t||!n)return;const{body:a}=at(n);if(o())return a.setAttribute(e,t),()=>a.removeAttribute(e);const l=new MutationObserver(()=>Hs.flushSync(i));return l.observe(a,{attributeFilter:[e]}),()=>l.disconnect()},[s,r,t,n,o,e]),o}function c2(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function u2(e,t,n){const r=l2({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:t,enabled:n});m.useEffect(()=>{if(!r()||!e)return;const s=at(e),i=Ba(e),{documentElement:o,body:a}=s,l=o.style.getPropertyValue("--scrollbar-width"),c=l?Number.parseInt(l,10):i.innerWidth-o.clientWidth,u=()=>zA(o,"--scrollbar-width",`${c}px`),d=c2(o),h=()=>Kf(a,{overflow:"hidden",[d]:`${c}px`}),g=()=>{const{scrollX:v,scrollY:x,visualViewport:y}=i,w=(y==null?void 0:y.offsetLeft)??0,b=(y==null?void 0:y.offsetTop)??0,C=Kf(a,{position:"fixed",overflow:"hidden",top:`${-(x-Math.floor(b))}px`,left:`${-(v-Math.floor(w))}px`,right:"0",[d]:`${c}px`});return()=>{C(),i.scrollTo({left:v,top:x,behavior:"instant"})}},p=gm()&&!SD();return fn(u(),p?g():h())},[r,e])}const d2="div",Bv=pu();function f2(e){const t=_s(e);return!t||e&&kt(e,t)?!1:!!ur(t)}function zv(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?ur(n)?n:null:n:null}const r1=_e(function({store:t,open:n,onClose:r,focusable:s=!0,modal:i=!0,portal:o=i,backdrop:a=i,hideOnEscape:l=!0,hideOnInteractOutside:c=!0,getPersistentElements:u,preventBodyScroll:d=i,autoFocusOnShow:h=!0,autoFocusOnHide:g=!0,initialFocus:p,finalFocus:v,unmountOnHide:x,unstable_treeSnapshotKey:y,...w}){const b=wl(),C=m.useRef(null),_=e1({store:t||b,open:n,setOpen(J){if(J)return;const fe=C.current;if(!fe)return;const ue=new Event("close",{bubbles:!1,cancelable:!0});r&&fe.addEventListener("close",r,{once:!0}),fe.dispatchEvent(ue),ue.defaultPrevented&&_.setOpen(!0)}}),{portalRef:S,domReady:k}=xm(o,w.portalRef),T=w.preserveTabOrder,M=G(_,J=>T&&!i&&J.mounted),E=On(w.id),O=G(_,"open"),A=G(_,"mounted"),P=G(_,"contentElement"),L=wu(A,w.hidden,w.alwaysVisible);u2(P,E,d&&!L);const F=m.useRef(!1);Ne(()=>tt(_,["open"],J=>{J.open&&(F.current=!1)}),[_]),o2(_,c,k,F);const{wrapElement:I,nestedDialogs:j}=a2(_);w=lt(w,I,[I]);const $=m.useRef(null);Bv&&m.useEffect(()=>{if(!k)return;const J=C.current;if(!J)return;const fe=at(J),ue=me=>{$.current=me.target};return fe.addEventListener("mousedown",ue,!0),()=>{fe.removeEventListener("mousedown",ue,!0)}},[k]),Ne(()=>{if(!O)return;const J=C.current,fe=_s(J,!0);if(fe){if(fe.tagName==="BODY"){const ue=$.current;if($.current=null,!(ue!=null&&ue.isConnected)||!ur(ue)||J&&kt(J,ue))return;_.setDisclosureElement(ue);return}J&&kt(J,fe)||_.setDisclosureElement(fe)}},[_,O]),m.useEffect(()=>{if(!A||!k)return;const J=C.current;if(!J)return;const fe=Ba(J),ue=fe.visualViewport||fe,me=()=>{var xt;const Bt=((xt=fe.visualViewport)==null?void 0:xt.height)??fe.innerHeight;J.style.setProperty("--dialog-viewport-height",`${Bt}px`)};return me(),ue.addEventListener("resize",me),()=>{ue.removeEventListener("resize",me)}},[A,k]),m.useEffect(()=>{if(!i||!A||!k)return;const J=C.current;if(J&&!J.querySelector("[data-dialog-dismiss]"))return t2(J,_.hide)},[_,i,A,k]),Ne(()=>{if(!t1()||O||!A||!k)return;const J=C.current;if(J)return n1(J)},[O,A,k]);const N=O&&k;Ne(()=>{if(!E||!N)return;const J=C.current;return GA(E,[J])},[E,N,y]);const z=be(u);Ne(()=>{if(!E||!N)return;const{disclosureElement:J}=_.getState(),fe=[C.current,...z()||[],...j.map(ue=>ue.getState().contentElement)];return i?fn(Vv(E,fe),e2(E,fe)):Vv(E,[J,...fe])},[E,_,N,z,j,i,y]);const B=!!h,K=vt(h),[Q,re]=m.useState(!1);m.useEffect(()=>{if(!O||!B||!k||!(P!=null&&P.isConnected))return;const J=zv(p,!0)||P.querySelector("[data-autofocus=true],[autofocus]")||MD(P,!0,o&&M)||P,fe=ur(J);K(fe?J:null)&&(re(!0),queueMicrotask(()=>{_.getState().open&&(J.focus(),Bv&&fe&&J.scrollIntoView({block:"nearest",inline:"nearest"}))}))},[O,B,k,P,p,o,M,_,K]);const Y=!!g,ie=vt(g),[X,he]=m.useState(!1);Ne(()=>{if(O)return he(!0),()=>he(!1)},[O]);const je=m.useCallback((J,fe=!0)=>{if(F.current)return;const{disclosureElement:ue}=_.getState();if(f2(J))return;let me=zv(v)||ue;if(me!=null&&me.id){const xt=at(me),pn=`[aria-activedescendant="${me.id}"]`,te=xt.querySelector(pn);te&&(me=te)}if(me&&!ur(me)){const xt=me.closest("[data-dialog]");if(xt!=null&&xt.id){const pn=at(xt),te=`[aria-controls~="${xt.id}"]`,Ee=pn.querySelector(te);Ee&&(me=Ee)}}const Bt=me&&ur(me);if(!Bt&&fe){requestAnimationFrame(()=>je(J,!1));return}ie(Bt?me:null)&&Bt&&(me==null||me.focus())},[_,v,ie]),Te=m.useRef(!1);Ne(()=>{if(O||!X||!Y)return;const J=C.current;Te.current=!0,je(J)},[O,X,k,Y,je]),m.useEffect(()=>{if(!X||!Y)return;const J=C.current;return()=>{if(Te.current){Te.current=!1;return}je(J)}},[X,Y,je]);const Ue=vt(l);m.useEffect(()=>!k||!A?void 0:sn("keydown",fe=>{if(fe.key!=="Escape"||fe.defaultPrevented)return;const ue=C.current;if(!ue||Vm(ue))return;const me=fe.target;if(!fm(me))return;const{disclosureElement:Bt}=_.getState();!!(ml(me)&&me.tagName==="BODY"||kt(ue,me)||!Bt||kt(Bt,me))&&Ue(fe)&&_.hide()},!0,P?Ba(P):void 0),[_,k,A,P,Ue]),w=lt(w,J=>f.jsx(NA,{level:i?1:void 0,children:J}),[i]);const Ae=w.hidden,D=w.alwaysVisible;w=lt(w,J=>a?f.jsxs(f.Fragment,{children:[f.jsx(ZA,{store:_,backdrop:a,hidden:Ae,alwaysVisible:D}),J]}):J,[_,a,Ae,D]);const[V,W]=m.useState(),[H,de]=m.useState();return w=lt(w,J=>f.jsx(Am,{value:_,children:f.jsx(iA.Provider,{value:W,children:f.jsx(oA.Provider,{value:de,children:J})})}),[_]),w={"data-dialog":"",role:"dialog",tabIndex:s?-1:void 0,"aria-labelledby":w["aria-label"]!=null?void 0:V,"aria-describedby":H,...w,id:E,ref:bt(C,w.ref)},w=Gw({...w,autoFocusOnShow:Q}),w=Su({store:_,...w}),w=Go({...w,focusable:s}),w=Kw({portal:o,...w,portalRef:S,preserveTabOrder:M}),w});function Ml(e,t=wl){return pe(function(r){const s=t();return G(r.store||s,i=>!r.unmountOnHide||(i==null?void 0:i.mounted)||!!r.open)?f.jsx(e,{...r}):null})}const s1=Ml(pe(function(t){return Se(d2,r1(t))}),wl),h2=pe(function(t){const n=e1({open:t.open});return f.jsx(s1,{...t,store:n})});pe(function(t){const n=wl();return t.store||n||!t.unmountOnHide?f.jsx(s1,{...t}):f.jsx(h2,{...t})});const Us=Math.min,In=Math.max,Vc=Math.round,sc=Math.floor,$r=e=>({x:e,y:e}),m2={left:"right",right:"left",bottom:"top",top:"bottom"};function Zf(e,t,n){return In(e,Us(t,n))}function Gs(e,t){return typeof e=="function"?e(t):e}function ys(e){return e.split("-")[0]}function qo(e){return e.split("-")[1]}function Wm(e){return e==="x"?"y":"x"}function Bm(e){return e==="y"?"height":"width"}function Fr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function zm(e){return Wm(Fr(e))}function g2(e,t,n){n===void 0&&(n=!1);const r=qo(e),s=zm(e),i=Bm(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Wc(o)),[o,Wc(o)]}function p2(e){const t=Wc(e);return[Qf(e),t,Qf(t)]}function Qf(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Yv=["left","right"],Hv=["right","left"],v2=["top","bottom"],y2=["bottom","top"];function b2(e,t,n){switch(e){case"top":case"bottom":return n?t?Hv:Yv:t?Yv:Hv;case"left":case"right":return t?v2:y2;default:return[]}}function x2(e,t,n,r){const s=qo(e);let i=b2(ys(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Qf)))),i}function Wc(e){const t=ys(e);return m2[t]+e.slice(t.length)}function w2(e){return{top:0,right:0,bottom:0,left:0,...e}}function i1(e){return typeof e!="number"?w2(e):{top:e,right:e,bottom:e,left:e}}function Bc(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Uv(e,t,n){let{reference:r,floating:s}=e;const i=Fr(t),o=zm(t),a=Bm(o),l=ys(t),c=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let g;switch(l){case"top":g={x:u,y:r.y-s.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-s.width,y:d};break;default:g={x:r.x,y:r.y}}switch(qo(t)){case"start":g[o]-=h*(n&&c?-1:1);break;case"end":g[o]+=h*(n&&c?-1:1);break}return g}async function S2(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:g=0}=Gs(t,e),p=i1(g),x=a[h?d==="floating"?"reference":"floating":d],y=Bc(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),w=d==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},_=Bc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:b,strategy:l}):w);return{top:(y.top-_.top+p.top)/C.y,bottom:(_.bottom-y.bottom+p.bottom)/C.y,left:(y.left-_.left+p.left)/C.x,right:(_.right-y.right+p.right)/C.x}}const _2=50,C2=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:S2},l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=Uv(c,r,l),h=r,g=0;const p={};for(let v=0;v<i.length;v++){const x=i[v];if(!x)continue;const{name:y,fn:w}=x,{x:b,y:C,data:_,reset:S}=await w({x:u,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=b??u,d=C??d,p[y]={...p[y],..._},S&&g<_2&&(g++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):S.rects),{x:u,y:d}=Uv(c,h,l)),v=-1)}return{x:u,y:d,placement:h,strategy:s,middlewareData:p}},k2=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Gs(e,t)||{};if(c==null)return{};const d=i1(u),h={x:n,y:r},g=zm(s),p=Bm(g),v=await o.getDimensions(c),x=g==="y",y=x?"top":"left",w=x?"bottom":"right",b=x?"clientHeight":"clientWidth",C=i.reference[p]+i.reference[g]-h[g]-i.floating[p],_=h[g]-i.reference[g],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let k=S?S[b]:0;(!k||!await(o.isElement==null?void 0:o.isElement(S)))&&(k=a.floating[b]||i.floating[p]);const T=C/2-_/2,M=k/2-v[p]/2-1,E=Us(d[y],M),O=Us(d[w],M),A=E,P=k-v[p]-O,L=k/2-v[p]/2+T,F=Zf(A,L,P),I=!l.arrow&&qo(s)!=null&&L!==F&&i.reference[p]/2-(L<A?E:O)-v[p]/2<0,j=I?L<A?L-A:L-P:0;return{[g]:h[g]+j,data:{[g]:F,centerOffset:L-F-j,...I&&{alignmentOffset:j}},reset:I}}}),T2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...x}=Gs(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=ys(s),w=Fr(a),b=ys(a)===a,C=await(l.isRTL==null?void 0:l.isRTL(c.floating)),_=h||(b||!v?[Wc(a)]:p2(a)),S=p!=="none";!h&&S&&_.push(...x2(a,v,p,C));const k=[a,..._],T=await l.detectOverflow(t,x),M=[];let E=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&M.push(T[y]),d){const L=g2(s,o,C);M.push(T[L[0]],T[L[1]])}if(E=[...E,{placement:s,overflows:M}],!M.every(L=>L<=0)){var O,A;const L=(((O=i.flip)==null?void 0:O.index)||0)+1,F=k[L];if(F&&(!(d==="alignment"?w!==Fr(F):!1)||E.every($=>Fr($.placement)===w?$.overflows[0]>0:!0)))return{data:{index:L,overflows:E},reset:{placement:F}};let I=(A=E.filter(j=>j.overflows[0]<=0).sort((j,$)=>j.overflows[1]-$.overflows[1])[0])==null?void 0:A.placement;if(!I)switch(g){case"bestFit":{var P;const j=(P=E.filter($=>{if(S){const N=Fr($.placement);return N===w||N==="y"}return!0}).map($=>[$.placement,$.overflows.filter(N=>N>0).reduce((N,z)=>N+z,0)]).sort(($,N)=>$[1]-N[1])[0])==null?void 0:P[0];j&&(I=j);break}case"initialPlacement":I=a;break}if(s!==I)return{reset:{placement:I}}}return{}}}},o1=new Set(["left","top"]);async function M2(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=ys(n),a=qo(n),l=Fr(n)==="y",c=o1.has(o)?-1:1,u=i&&l?-1:1,d=Gs(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof p=="number"&&(g=a==="end"?p*-1:p),l?{x:g*u,y:h*c}:{x:h*c,y:g*u}}const E2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await M2(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},O2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s,platform:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:y=>{let{x:w,y:b}=y;return{x:w,y:b}}},...c}=Gs(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),h=Fr(ys(s)),g=Wm(h);let p=u[g],v=u[h];if(o){const y=g==="y"?"top":"left",w=g==="y"?"bottom":"right",b=p+d[y],C=p-d[w];p=Zf(b,p,C)}if(a){const y=h==="y"?"top":"left",w=h==="y"?"bottom":"right",b=v+d[y],C=v-d[w];v=Zf(b,v,C)}const x=l.fn({...t,[g]:p,[h]:v});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[g]:o,[h]:a}}}}}},D2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Gs(e,t),u={x:n,y:r},d=Fr(s),h=Wm(d);let g=u[h],p=u[d];const v=Gs(a,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const b=h==="y"?"height":"width",C=i.reference[h]-i.floating[b]+x.mainAxis,_=i.reference[h]+i.reference[b]-x.mainAxis;g<C?g=C:g>_&&(g=_)}if(c){var y,w;const b=h==="y"?"width":"height",C=o1.has(ys(s)),_=i.reference[d]-i.floating[b]+(C&&((y=o.offset)==null?void 0:y[d])||0)+(C?0:x.crossAxis),S=i.reference[d]+i.reference[b]+(C?0:((w=o.offset)==null?void 0:w[d])||0)-(C?x.crossAxis:0);p<_?p=_:p>S&&(p=S)}return{[h]:g,[d]:p}}}},P2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...c}=Gs(e,t),u=await o.detectOverflow(t,c),d=ys(s),h=qo(s),g=Fr(s)==="y",{width:p,height:v}=i.floating;let x,y;d==="top"||d==="bottom"?(x=d,y=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,x=h==="end"?"top":"bottom");const w=v-u.top-u.bottom,b=p-u.left-u.right,C=Us(v-u[x],w),_=Us(p-u[y],b),S=!t.middlewareData.shift;let k=C,T=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=w),S&&!h){const E=In(u.left,0),O=In(u.right,0),A=In(u.top,0),P=In(u.bottom,0);g?T=p-2*(E!==0||O!==0?E+O:In(u.left,u.right)):k=v-2*(A!==0||P!==0?A+P:In(u.top,u.bottom))}await l({...t,availableWidth:T,availableHeight:k});const M=await o.getDimensions(a.floating);return p!==M.width||v!==M.height?{reset:{rects:!0}}:{}}}};function Cu(){return typeof window<"u"}function Ko(e){return a1(e)?(e.nodeName||"").toLowerCase():"#document"}function $n(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ur(e){var t;return(t=(a1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function a1(e){return Cu()?e instanceof Node||e instanceof $n(e).Node:!1}function pr(e){return Cu()?e instanceof Element||e instanceof $n(e).Element:!1}function ks(e){return Cu()?e instanceof HTMLElement||e instanceof $n(e).HTMLElement:!1}function Gv(e){return!Cu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $n(e).ShadowRoot}function El(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=vr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&s!=="inline"&&s!=="contents"}function A2(e){return/^(table|td|th)$/.test(Ko(e))}function ku(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const R2=/transform|translate|scale|rotate|perspective|filter/,j2=/paint|layout|strict|content/,di=e=>!!e&&e!=="none";let Vd;function Ym(e){const t=pr(e)?vr(e):e;return di(t.transform)||di(t.translate)||di(t.scale)||di(t.rotate)||di(t.perspective)||!Hm()&&(di(t.backdropFilter)||di(t.filter))||R2.test(t.willChange||"")||j2.test(t.contain||"")}function I2(e){let t=qs(e);for(;ks(t)&&!Eo(t);){if(Ym(t))return t;if(ku(t))return null;t=qs(t)}return null}function Hm(){return Vd==null&&(Vd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Vd}function Eo(e){return/^(html|body|#document)$/.test(Ko(e))}function vr(e){return $n(e).getComputedStyle(e)}function Tu(e){return pr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qs(e){if(Ko(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gv(e)&&e.host||Ur(e);return Gv(t)?t.host:t}function l1(e){const t=qs(e);return Eo(t)?e.ownerDocument?e.ownerDocument.body:e.body:ks(t)&&El(t)?t:l1(t)}function Ga(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=l1(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=$n(s);if(i){const a=Jf(o);return t.concat(o,o.visualViewport||[],El(s)?s:[],a&&n?Ga(a):[])}else return t.concat(s,Ga(s,[],n))}function Jf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function c1(e){const t=vr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=ks(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Vc(n)!==i||Vc(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function Um(e){return pr(e)?e:e.contextElement}function go(e){const t=Um(e);if(!ks(t))return $r(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=c1(t);let o=(i?Vc(n.width):n.width)/r,a=(i?Vc(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const N2=$r(0);function u1(e){const t=$n(e);return!Hm()||!t.visualViewport?N2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function F2(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$n(e)?!1:t}function Ii(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=Um(e);let o=$r(1);t&&(r?pr(r)&&(o=go(r)):o=go(e));const a=F2(i,n,r)?u1(i):$r(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const h=$n(i),g=r&&pr(r)?$n(r):r;let p=h,v=Jf(p);for(;v&&r&&g!==p;){const x=go(v),y=v.getBoundingClientRect(),w=vr(v),b=y.left+(v.clientLeft+parseFloat(w.paddingLeft))*x.x,C=y.top+(v.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=b,c+=C,p=$n(v),v=Jf(p)}}return Bc({width:u,height:d,x:l,y:c})}function Mu(e,t){const n=Tu(e).scrollLeft;return t?t.left+n:Ii(Ur(e)).left+n}function d1(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Mu(e,n),s=n.top+t.scrollTop;return{x:r,y:s}}function L2(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=Ur(r),a=t?ku(t.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=$r(1);const u=$r(0),d=ks(r);if((d||!d&&!i)&&((Ko(r)!=="body"||El(o))&&(l=Tu(r)),d)){const g=Ii(r);c=go(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}const h=o&&!d&&!i?d1(o,l):$r(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function $2(e){return Array.from(e.getClientRects())}function V2(e){const t=Ur(e),n=Tu(e),r=e.ownerDocument.body,s=In(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=In(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Mu(e);const a=-n.scrollTop;return vr(r).direction==="rtl"&&(o+=In(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}const qv=25;function W2(e,t){const n=$n(e),r=Ur(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=Hm();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}const c=Mu(r);if(c<=0){const u=r.ownerDocument,d=u.body,h=getComputedStyle(d),g=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(r.clientWidth-d.clientWidth-g);p<=qv&&(i-=p)}else c<=qv&&(i+=c);return{width:i,height:o,x:a,y:l}}function B2(e,t){const n=Ii(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=ks(e)?go(e):$r(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,c=r*i.y;return{width:o,height:a,x:l,y:c}}function Kv(e,t,n){let r;if(t==="viewport")r=W2(e,n);else if(t==="document")r=V2(Ur(e));else if(pr(t))r=B2(t,n);else{const s=u1(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Bc(r)}function f1(e,t){const n=qs(e);return n===t||!pr(n)||Eo(n)?!1:vr(n).position==="fixed"||f1(n,t)}function z2(e,t){const n=t.get(e);if(n)return n;let r=Ga(e,[],!1).filter(a=>pr(a)&&Ko(a)!=="body"),s=null;const i=vr(e).position==="fixed";let o=i?qs(e):e;for(;pr(o)&&!Eo(o);){const a=vr(o),l=Ym(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||El(o)&&!l&&f1(e,o))?r=r.filter(u=>u!==o):s=a,o=qs(o)}return t.set(e,r),r}function Y2(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?ku(t)?[]:z2(t,this._c):[].concat(n),r],a=Kv(t,o[0],s);let l=a.top,c=a.right,u=a.bottom,d=a.left;for(let h=1;h<o.length;h++){const g=Kv(t,o[h],s);l=In(g.top,l),c=Us(g.right,c),u=Us(g.bottom,u),d=In(g.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function H2(e){const{width:t,height:n}=c1(e);return{width:t,height:n}}function U2(e,t,n){const r=ks(t),s=Ur(t),i=n==="fixed",o=Ii(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=$r(0);function c(){l.x=Mu(s)}if(r||!r&&!i)if((Ko(t)!=="body"||El(s))&&(a=Tu(t)),r){const g=Ii(t,!0,i,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else s&&c();i&&!r&&s&&c();const u=s&&!r&&!i?d1(s,a):$r(0),d=o.left+a.scrollLeft-l.x-u.x,h=o.top+a.scrollTop-l.y-u.y;return{x:d,y:h,width:o.width,height:o.height}}function Wd(e){return vr(e).position==="static"}function Xv(e,t){if(!ks(e)||vr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ur(e)===n&&(n=n.ownerDocument.body),n}function h1(e,t){const n=$n(e);if(ku(e))return n;if(!ks(e)){let s=qs(e);for(;s&&!Eo(s);){if(pr(s)&&!Wd(s))return s;s=qs(s)}return n}let r=Xv(e,t);for(;r&&A2(r)&&Wd(r);)r=Xv(r,t);return r&&Eo(r)&&Wd(r)&&!Ym(r)?n:r||I2(e)||n}const G2=async function(e){const t=this.getOffsetParent||h1,n=this.getDimensions,r=await n(e.floating);return{reference:U2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function q2(e){return vr(e).direction==="rtl"}const K2={convertOffsetParentRelativeRectToViewportRelativeRect:L2,getDocumentElement:Ur,getClippingRect:Y2,getOffsetParent:h1,getElementRects:G2,getClientRects:$2,getDimensions:H2,getScale:go,isElement:pr,isRTL:q2};function m1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function X2(e,t){let n=null,r;const s=Ur(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:g}=c;if(a||t(),!h||!g)return;const p=sc(d),v=sc(s.clientWidth-(u+h)),x=sc(s.clientHeight-(d+g)),y=sc(u),b={rootMargin:-p+"px "+-v+"px "+-x+"px "+-y+"px",threshold:In(0,Us(1,l))||1};let C=!0;function _(S){const k=S[0].intersectionRatio;if(k!==l){if(!C)return o();k?o(!1,k):r=setTimeout(()=>{o(!1,1e-7)},1e3)}k===1&&!m1(c,e.getBoundingClientRect())&&o(),C=!1}try{n=new IntersectionObserver(_,{...b,root:s.ownerDocument})}catch{n=new IntersectionObserver(_,b)}n.observe(e)}return o(!0),i}function g1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Um(e),u=s||i?[...c?Ga(c):[],...t?Ga(t):[]]:[];u.forEach(y=>{s&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=c&&a?X2(c,n):null;let h=-1,g=null;o&&(g=new ResizeObserver(y=>{let[w]=y;w&&w.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=g)==null||b.observe(t)})),n()}),c&&!l&&g.observe(c),t&&g.observe(t));let p,v=l?Ii(e):null;l&&x();function x(){const y=Ii(e);v&&!m1(v,y)&&n(),v=y,p=requestAnimationFrame(x)}return n(),()=>{var y;u.forEach(w=>{s&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d==null||d(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(p)}}const p1=E2,v1=O2,y1=T2,Gm=P2,eh=k2,b1=D2,x1=(e,t,n)=>{const r=new Map,s={platform:K2,...n},i={...s.platform,_c:r};return C2(e,t,{...s,platform:i})},Z2="div";function Zv(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const s={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...s,toJSON:()=>s}}function Q2(e){if(!e)return Zv();const{x:t,y:n,width:r,height:s}=e;return Zv(t,n,r,s)}function J2(e,t){return{contextElement:e||void 0,getBoundingClientRect:()=>{const n=e,r=t==null?void 0:t(n);return r||!n?Q2(r):n.getBoundingClientRect()}}}function eR(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function Qv(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function tR(e,t){return p1(({placement:n})=>{const r=((e==null?void 0:e.clientHeight)||0)/2,s=typeof t.gutter=="number"?t.gutter+r:t.gutter??r;return{crossAxis:n.split("-")[1]?void 0:t.shift,mainAxis:s,alignmentAxis:t.shift}})}function nR(e){if(e.flip===!1)return;const t=typeof e.flip=="string"?e.flip.split(" "):void 0;return Ke(!t||t.every(eR),!1),y1({padding:e.overflowPadding,fallbackPlacements:t})}function rR(e){if(!(!e.slide&&!e.overlap))return v1({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:b1()})}function sR(e){return Gm({padding:e.overflowPadding,apply({elements:t,availableWidth:n,availableHeight:r,rects:s}){const i=t.floating,o=Math.round(s.reference.width);n=Math.floor(n),r=Math.floor(r),i.style.setProperty("--popover-anchor-width",`${o}px`),i.style.setProperty("--popover-available-width",`${n}px`),i.style.setProperty("--popover-available-height",`${r}px`),e.sameWidth&&(i.style.width=`${o}px`),e.fitViewport&&(i.style.maxWidth=`${n}px`,i.style.maxHeight=`${r}px`)}})}function iR(e,t){if(e)return eh({element:e,padding:t.arrowPadding})}const w1=_e(function({store:t,modal:n=!1,portal:r=n,preserveTabOrder:s=!0,autoFocusOnShow:i=!0,wrapperProps:o,fixed:a=!1,flip:l=!0,shift:c=0,slide:u=!0,overlap:d=!1,sameWidth:h=!1,fitViewport:g=!1,gutter:p,arrowPadding:v=4,overflowPadding:x=8,getAnchorRect:y,updatePosition:w,...b}){const C=_u();t=t||C,Ke(t,!1);const _=G(t,"arrowElement"),S=G(t,"anchorElement"),k=G(t,"disclosureElement"),T=G(t,"popoverElement"),M=G(t,"contentElement"),E=G(t,"placement"),O=G(t,"mounted"),A=G(t,"rendered"),P=m.useRef(null),[L,F]=m.useState(!1),{portalRef:I,domReady:j}=xm(r,b.portalRef),$=be(y),N=be(w),z=!!w;Ne(()=>{if(!(T!=null&&T.isConnected))return;T.style.setProperty("--popover-overflow-padding",`${x}px`);const K=J2(S,$),Q=async()=>{if(!O)return;_||(P.current=P.current||document.createElement("div"));const ie=_||P.current,X=[tR(ie,{gutter:p,shift:c}),nR({flip:l,overflowPadding:x}),rR({slide:u,overlap:d,overflowPadding:x}),iR(ie,{arrowPadding:v}),sR({sameWidth:h,fitViewport:g,overflowPadding:x})],he=await x1(K,T,{placement:E,strategy:a?"fixed":"absolute",middleware:X});t==null||t.setState("currentPlacement",he.placement),F(!0);const je=Qv(he.x),Te=Qv(he.y);if(Object.assign(T.style,{top:"0",left:"0",transform:`translate3d(${je}px,${Te}px,0)`}),ie&&he.middlewareData.arrow){const{x:Ue,y:Ae}=he.middlewareData.arrow,D=he.placement.split("-")[0],V=ie.clientWidth/2,W=ie.clientHeight/2,H=Ue!=null?Ue+V:-V,de=Ae!=null?Ae+W:-W;T.style.setProperty("--popover-transform-origin",{top:`${H}px calc(100% + ${W}px)`,bottom:`${H}px ${-W}px`,left:`calc(100% + ${V}px) ${de}px`,right:`${-V}px ${de}px`}[D]),Object.assign(ie.style,{left:Ue!=null?`${Ue}px`:"",top:Ae!=null?`${Ae}px`:"",[D]:"100%"})}},Y=g1(K,T,async()=>{z?(await N({updatePosition:Q}),F(!0)):await Q()},{elementResize:typeof ResizeObserver=="function"});return()=>{F(!1),Y()}},[t,A,T,_,S,T,E,O,j,a,l,c,u,d,h,g,p,v,x,$,z,N]),Ne(()=>{if(!O||!j||!(T!=null&&T.isConnected)||!(M!=null&&M.isConnected))return;const K=()=>{T.style.zIndex=getComputedStyle(M).zIndex};K();let Q=requestAnimationFrame(()=>{Q=requestAnimationFrame(K)});return()=>cancelAnimationFrame(Q)},[O,j,T,M]);const B=a?"fixed":"absolute";return b=lt(b,K=>f.jsx("div",{...o,style:{position:B,top:0,left:0,width:"max-content",...o==null?void 0:o.style},ref:t==null?void 0:t.setPopoverElement,children:K}),[t,B,o]),b=lt(b,K=>f.jsx(Sl,{value:t,children:K}),[t]),b={"data-placing":!L||void 0,...b,style:{position:"relative",...b.style}},b=r1({store:t,modal:n,portal:r,preserveTabOrder:s,preserveTabOrderAnchor:k||S,autoFocusOnShow:L&&i,...b,portalRef:I}),b});Ml(pe(function(t){return Se(Z2,w1(t))}),_u);const Ol=Sn([jm],[Sl]);Ol.useContext;Ol.useScopedContext;const qm=Ol.useProviderContext,S1=Ol.ContextProvider,Km=Ol.ScopedContextProvider;function Bd(e){return[e.clientX,e.clientY]}function Jv(e,t){const[n,r]=e;let s=!1;const i=t.length;for(let o=i,a=0,l=o-1;a<o;l=a++){const c=t[a],u=t[l],d=t[l===0?o-1:l-1];if(c==null||u==null||d==null)return!1;const[h,g]=c,[p,v]=u,[,x]=d,y=(g-v)*(n-h)-(h-p)*(r-g);if(v<g){if(r>=v&&r<g){if(y===0)return!0;y>0&&(r===v?r>x&&(s=!s):s=!s)}}else if(g<v){if(r>g&&r<=v){if(y===0)return!0;y<0&&(r===v?r<x&&(s=!s):s=!s)}}else if(r===g&&(n>=p&&n<=h||n>=h&&n<=p))return!0}return s}function oR(e,t){const{top:n,right:r,bottom:s,left:i}=t,[o,a]=e;return[o<i?"left":o>r?"right":null,a<n?"top":a>s?"bottom":null]}function ey(e,t){const n=e.getBoundingClientRect(),{top:r,right:s,bottom:i,left:o}=n,[a,l]=oR(t,n),c=[t];return a?(l!=="top"&&c.push([a==="left"?o:s,r]),c.push([a==="left"?s:o,r]),c.push([a==="left"?s:o,i]),l!=="bottom"&&c.push([a==="left"?o:s,i])):l==="top"?(c.push([o,r]),c.push([o,i]),c.push([s,i]),c.push([s,r])):(c.push([o,i]),c.push([o,r]),c.push([s,r]),c.push([s,i])),c}const aR="div";function lR(e,t,n,r){return zs(t)?!0:e?!!(kt(t,e)||n&&kt(n,e)||r!=null&&r.some(s=>zs(s)||kt(s,e))):!1}function cR({store:e,...t}){const[n,r]=m.useState(!1),s=G(e,"mounted");m.useEffect(()=>{s||r(!1)},[s]);const i=t.onFocus,o=be(l=>{i==null||i(l),!l.defaultPrevented&&r(!0)}),a=m.useRef(null);return m.useEffect(()=>tt(e,["anchorElement"],l=>{a.current=l.anchorElement}),[e]),t={autoFocusOnHide:n,finalFocus:a,...t,onFocus:o},t}const ty=m.createContext(null),Xm=_e(function({store:t,modal:n=!1,portal:r=n,hideOnEscape:s=!0,hideOnHoverOutside:i=!0,disablePointerEventsOnApproach:o=!!i,...a}){const l=qm();t=t||l,Ke(t,!1);const c=m.useRef(null),[u,d]=m.useState([]),h=m.useRef(0),g=m.useRef(null),{portalRef:p,domReady:v}=xm(r,a.portalRef),x=Sm(),y=!!i,w=vt(i),b=!!o,C=vt(o),_=G(t,"open"),S=G(t,"mounted");m.useEffect(()=>{if(!v||!S||!y&&!b)return;const O=c.current;return O?fn(sn("mousemove",P=>{if(!t||!x())return;const{anchorElement:L,hideTimeout:F,timeout:I}=t.getState(),j=g.current,[$]=P.composedPath(),N=L;if(lR($,O,N,u)){g.current=$&&N&&kt(N,$)?Bd(P):null,window.clearTimeout(h.current),h.current=0;return}if(!h.current){if(j){const z=Bd(P);if(Jv(z,ey(O,j))){if(g.current=z,!C(P))return;P.preventDefault(),P.stopPropagation();return}}w(P)&&(h.current=window.setTimeout(()=>{h.current=0,t==null||t.hide()},F??I))}},!0),()=>clearTimeout(h.current)):void 0},[t,x,v,S,y,b,u,C,w]),m.useEffect(()=>{if(!v||!S||!b)return;const O=A=>{const P=c.current;if(!P)return;const L=g.current;if(!L)return;const F=ey(P,L);if(Jv(Bd(A),F)){if(!C(A))return;A.preventDefault(),A.stopPropagation()}};return fn(sn("mouseenter",O,!0),sn("mouseover",O,!0),sn("mouseout",O,!0),sn("mouseleave",O,!0))},[v,S,b,C]),m.useEffect(()=>{v&&(_||t==null||t.setAutoFocusOnShow(!1))},[t,v,_]);const k=kw(_);m.useEffect(()=>{if(v)return()=>{k.current||t==null||t.setAutoFocusOnShow(!1)}},[t,v]);const T=m.useContext(ty);Ne(()=>{if(n||!r||!S||!v)return;const O=c.current;if(O)return T==null?void 0:T(O)},[n,r,S,v]);const M=m.useCallback(O=>{d(P=>[...P,O]);const A=T==null?void 0:T(O);return()=>{d(P=>P.filter(L=>L!==O)),A==null||A()}},[T]);a=lt(a,O=>f.jsx(Km,{value:t,children:f.jsx(ty.Provider,{value:M,children:O})}),[t,M]),a={...a,ref:bt(c,a.ref)},a=cR({store:t,...a});const E=G(t,O=>n||O.autoFocusOnShow);return a=w1({store:t,modal:n,portal:r,autoFocusOnShow:E,...a,portalRef:p,hideOnEscape(O){return ko(s,O)?!1:(requestAnimationFrame(()=>{requestAnimationFrame(()=>{t==null||t.hide()})}),!0)}}),a});Ml(pe(function(t){return Se(aR,Xm(t))}),qm);const _1=Sn([S1],[Km]),Zm=_1.useProviderContext,uR=_1.ScopedContextProvider,dR="div",fR=_e(function({store:t,portal:n=!0,gutter:r=8,preserveTabOrder:s=!1,hideOnHoverOutside:i=!0,hideOnInteractOutside:o=!0,...a}){const l=Zm();return t=t||l,Ke(t,!1),a=lt(a,c=>f.jsx(uR,{value:t,children:c}),[t]),a={role:G(t,c=>c.type==="description"?"tooltip":"none"),...a},a=Xm({...a,store:t,portal:n,gutter:r,preserveTabOrder:s,hideOnHoverOutside(c){if(ko(i,c))return!1;const u=t==null?void 0:t.getState().anchorElement;return u?!("focusVisible"in u.dataset):!0},hideOnInteractOutside:c=>{if(ko(o,c))return!1;const u=t==null?void 0:t.getState().anchorElement;return u?!kt(u,c.target):!0}}),a}),hR=Ml(pe(function(t){return Se(dR,fR(t))}),Zm),mR="a",Qm=_e(function({store:t,showOnHover:n=!0,...r}){const s=qm();t=t||s,Ke(t,!1);const i=si(r),o=m.useRef(0);m.useEffect(()=>()=>window.clearTimeout(o.current),[]),m.useEffect(()=>sn("mouseleave",v=>{if(!t)return;const{anchorElement:x}=t.getState();x&&v.target===x&&(window.clearTimeout(o.current),o.current=0)},!0),[t]);const a=r.onMouseMove,l=vt(n),c=Sm(),u=be(p=>{if(a==null||a(p),i||!t||p.defaultPrevented||o.current||!c()||!l(p))return;const v=p.currentTarget;t.setAnchorElement(v),t.setDisclosureElement(v);const{showTimeout:x,timeout:y}=t.getState(),w=()=>{o.current=0,c()&&(t==null||t.setAnchorElement(v),t==null||t.show(),queueMicrotask(()=>{t==null||t.setDisclosureElement(v)}))},b=x??y;b===0?w():o.current=window.setTimeout(w,b)}),d=r.onClick,h=be(p=>{d==null||d(p),t&&(window.clearTimeout(o.current),o.current=0)}),g=m.useCallback(p=>{if(!t)return;const{anchorElement:v}=t.getState();v!=null&&v.isConnected||t.setAnchorElement(p)},[t]);return r={...r,ref:bt(g,r.ref),onMouseMove:u,onClick:h},r=Go(r),r});pe(function(t){return Se(mR,Qm(t))});const gR="div",Si=hn({activeStore:null}),th=new WeakSet;function pR(e){return()=>{const{activeStore:t}=Si.getState();t===e&&Si.setState("activeStore",null)}}function vR(e){e&&(th.add(e),e.hide(),queueMicrotask(()=>th.delete(e)))}const yR=_e(function({store:t,showOnHover:n=!0,...r}){const s=Zm();t=t||s,Ke(t,!1);const i=m.useRef(!1);m.useEffect(()=>tt(t,["mounted"],p=>{p.mounted||(i.current=!1)}),[t]),m.useEffect(()=>{if(!t)return;const p=pR(t);return fn(p,tt(t,["mounted"],v=>{if(!t)return;if(v.mounted){const{activeStore:y}=Si.getState();if(y!==t){if(th.has(t))return;vR(y)}return Si.setState("activeStore",t)}const x=setTimeout(p,t.getState().skipTimeout);return()=>clearTimeout(x)}))},[t]);const o=r.onMouseEnter,a=be(p=>{o==null||o(p),i.current=!0}),l=r.onFocusVisible,c=be(p=>{l==null||l(p),!p.defaultPrevented&&(t==null||t.setAnchorElement(p.currentTarget),t==null||t.show())}),u=r.onBlur,d=be(p=>{if(u==null||u(p),p.defaultPrevented)return;const{activeStore:v}=Si.getState();i.current=!1,v===t&&Si.setState("activeStore",null)}),h=G(t,"type"),g=G(t,p=>{var v;return(v=p.contentElement)==null?void 0:v.id});return r={"aria-labelledby":h==="label"&&r["aria-label"]==null?g:void 0,...r,onMouseEnter:a,onFocusVisible:c,onBlur:d},r=Qm({store:t,showOnHover(p){if(!i.current||ko(n,p))return!1;const{activeStore:v}=Si.getState();return v?(t==null||t.show(),!1):!0},...r}),r}),bR=pe(function(t){return Se(gR,yR(t))});function C1({popover:e,...t}={}){const n=yl(t.store,Ha(e,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),r=n==null?void 0:n.getState(),s=Qw({...t,store:n}),i=ye(t.placement,r==null?void 0:r.placement,"bottom"),o=hn({...s.getState(),placement:i,currentPlacement:i,anchorElement:ye(r==null?void 0:r.anchorElement,null),popoverElement:ye(r==null?void 0:r.popoverElement,null),arrowElement:ye(r==null?void 0:r.arrowElement,null),rendered:Symbol("rendered")},s,n);return{...s,...o,setAnchorElement:a=>o.setState("anchorElement",a),setPopoverElement:a=>o.setState("popoverElement",a),setArrowElement:a=>o.setState("arrowElement",a),render:()=>o.setState("rendered",Symbol("rendered"))}}function k1(e,t,n){return vs(t,[n.popover]),ot(e,n,"placement"),Jw(e,t,n)}function T1(e={}){var i;const t=(i=e.store)==null?void 0:i.getState(),n=C1({...e,placement:ye(e.placement,t==null?void 0:t.placement,"bottom")}),r=ye(e.timeout,t==null?void 0:t.timeout,500),s=hn({...n.getState(),timeout:r,showTimeout:ye(e.showTimeout,t==null?void 0:t.showTimeout),hideTimeout:ye(e.hideTimeout,t==null?void 0:t.hideTimeout),autoFocusOnShow:ye(t==null?void 0:t.autoFocusOnShow,!1)},n,e.store);return{...n,...s,setAutoFocusOnShow:o=>s.setState("autoFocusOnShow",o)}}function M1(e,t,n){return ot(e,n,"timeout"),ot(e,n,"showTimeout"),ot(e,n,"hideTimeout"),k1(e,t,n)}function xR(e={}){var s;const t=(s=e.store)==null?void 0:s.getState(),n=T1({...e,placement:ye(e.placement,t==null?void 0:t.placement,"top"),hideTimeout:ye(e.hideTimeout,t==null?void 0:t.hideTimeout,0)}),r=hn({...n.getState(),type:ye(e.type,t==null?void 0:t.type,"description"),skipTimeout:ye(e.skipTimeout,t==null?void 0:t.skipTimeout,300)},n,e.store);return{...n,...r}}function wR(e,t,n){return ot(e,n,"type"),ot(e,n,"skipTimeout"),M1(e,t,n)}function SR(e={}){const[t,n]=Hr(xR,e);return wR(t,n,e)}const E1=Sn([Li],[ii]),_R=E1.useContext,CR=E1.useScopedContext,kR="div",Jm=_e(function({store:t,...n}){const r=_u();return t=t||r,n={...n,ref:bt(t==null?void 0:t.setAnchorElement,n.ref)},n});pe(function(t){return Se(kR,Jm(t))});const O1="button",D1=_e(function(t){const n=m.useRef(null),r=vu(n,O1),[s,i]=m.useState(()=>!!r&&Co({tagName:r,type:t.type}));return m.useEffect(()=>{n.current&&i(Co(n.current))},[]),t={role:!s&&r!=="a"?"button":void 0,...t,ref:bt(n,t.ref)},t=bu(t),t});pe(function(t){return Se(O1,D1(t))});const TR="button",MR=Symbol("disclosure"),P1=_e(function({store:t,toggleOnClick:n=!0,...r}){var v;const s=Dm();t=t||s,Ke(t,!1);const i=m.useRef(null),[o,a]=m.useState(!1),l=G(t,"disclosureElement"),c=G(t,"open");m.useEffect(()=>{let x=l===i.current;l!=null&&l.isConnected||(t==null||t.setDisclosureElement(i.current),x=!0),a(c&&x)},[l,t,c]);const u=r.onClick,d=vt(n),[h,g]=wm(r,MR,!0),p=be(x=>{u==null||u(x),!x.defaultPrevented&&(h||d(x)&&(t==null||t.setDisclosureElement(x.currentTarget),t==null||t.toggle()))});return r={"aria-expanded":o,"aria-controls":(v=G(t,"contentElement"))==null?void 0:v.id,...g,...r,ref:bt(i,r.ref),onClick:p},r=D1(r),r});pe(function(t){return Se(TR,P1(t))});const ER="button",A1=_e(function({store:t,...n}){const r=wl();return t=t||r,Ke(t,!1),n={"aria-haspopup":gu(G(t,"contentElement"),"dialog"),...n},n=P1({store:t,...n}),n});pe(function(t){return Se(ER,A1(t))});const OR="button",R1=_e(function({store:t,...n}){const r=_u();t=t||r,Ke(t,!1);const s=n.onClick,i=be(o=>{t==null||t.setAnchorElement(o.currentTarget),s==null||s(o)});return n=lt(n,o=>f.jsx(Sl,{value:t,children:o}),[t]),n={...n,onClick:i},n=Jm({store:t,...n}),n=A1({store:t,...n}),n});pe(function(t){return Se(OR,R1(t))});const eg=Sn([Li],[ii]),DR=eg.useContext,PR=eg.useProviderContext,AR=eg.ScopedContextProvider,j1="input";function RR(e,t){if(t!==void 0)return e!=null&&t!=null?t===e:!!t}function jR(e,t){return e==="input"&&(!t||t==="radio")}const I1=_e(function({store:t,name:n,value:r,checked:s,...i}){const o=DR();t=t||o;const a=On(i.id),l=m.useRef(null),c=G(t,S=>s??RR(r,S==null?void 0:S.value)),u=G(t,S=>S==null?void 0:S.id),d=n??u;m.useEffect(()=>{a&&c&&(t==null?void 0:t.getState().activeId)!==a&&(t==null||t.setActiveId(a))},[t,c,a]);const h=i.onChange,g=jR(vu(l,j1),i.type),p=si(i),[v,x]=yu();m.useEffect(()=>{const S=l.current;S&&(g||(c!==void 0&&(S.checked=c),d!==void 0&&(S.name=d),r!==void 0&&(S.value=`${r}`)))},[v,g,c,d,r]);const y=be(S=>{if(p){S.preventDefault(),S.stopPropagation();return}(t==null?void 0:t.getState().value)!==r&&(g||(S.currentTarget.checked=!0,x()),h==null||h(S),!S.defaultPrevented&&(t==null||t.setValue(r)))}),w=i.onClick,b=be(S=>{w==null||w(S),!S.defaultPrevented&&(g||y(S))}),C=i.onFocus,_=be(S=>{if(C==null||C(S),S.defaultPrevented||!g||!t)return;const{moves:k,activeId:T}=t.getState();k&&(a&&T!==a||y(S))});return i={role:g?void 0:"radio",type:g?"radio":void 0,"aria-checked":c,...i,id:a,ref:bt(l,i.ref),onChange:y,onClick:b,onFocus:_},i=bl({store:t,clickOnEnter:!g,...i}),wn({name:g?d:void 0,value:g?r:void 0,checked:c,...i})}),IR=Cs(pe(function(t){return Se(j1,I1(t))})),NR="div",FR=_e(function({store:t,...n}){const r=PR();return t=t||r,Ke(t,!1),n=lt(n,s=>f.jsx(AR,{value:t,children:s}),[t]),n={role:"radiogroup",...n},n=xl({store:t,...n}),n}),LR=pe(function(t){return Se(NR,FR(t))});function $R(e={}){var s;const t=(s=e.store)==null?void 0:s.getState(),n=Cl({...e,focusLoop:ye(e.focusLoop,t==null?void 0:t.focusLoop,!0)}),r=hn({...n.getState(),value:ye(e.value,t==null?void 0:t.value,e.defaultValue,null)},n,e.store);return{...n,...r,setValue:i=>r.setState("value",i)}}function VR(e,t,n){return e=kl(e,t,n),ot(e,n,"value","setValue"),e}function WR(e={}){e=Fm(e);const[t,n]=Hr($R,e);return VR(t,n,e)}const BR="div";let as="";function zd(){as=""}function zR(e){const t=e.target;return t&&Cr(t)?!1:e.key===" "&&as.length?!0:e.key.length===1&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(e.key)}function YR(e,t){if(Nn(e))return!0;const n=e.target;return n?t.some(r=>r.element===n):!1}function HR(e){return e.filter(t=>!t.disabled)}function bc(e,t){var r;const n=((r=e.element)==null?void 0:r.textContent)||e.children||"value"in e&&e.value;return n?ym(n).trim().toLowerCase().startsWith(t.toLowerCase()):!1}function UR(e,t,n){if(!n)return e;const r=e.find(s=>s.id===n);return!r||!bc(r,t)||as!==t&&bc(r,as)?e:(as=t,bP(e.filter(s=>bc(s,as)),n).filter(s=>s.id!==n))}const tg=_e(function({store:t,typeahead:n=!0,...r}){const s=vl();t=t||s,Ke(t,!1);const i=r.onKeyDownCapture,o=m.useRef(0),a=be(l=>{if(i==null||i(l),l.defaultPrevented||!n||!t)return;if(!zR(l))return zd();const{renderedItems:c,items:u,activeId:d,id:h}=t.getState();let g=HR(u.length>c.length?u:c);const p=at(l.currentTarget),v=`[data-offscreen-id="${h}"]`,x=p.querySelectorAll(v);for(const b of x){const C=b.ariaDisabled==="true"||"disabled"in b&&!!b.disabled;g.push({id:b.id,element:b,disabled:C})}if(x.length&&(g=yw(g,b=>b.element)),!YR(l,g))return zd();l.preventDefault(),window.clearTimeout(o.current),o.current=window.setTimeout(()=>{as=""},500);const y=l.key.toLowerCase();as+=y,g=UR(g,y,d);const w=g.find(b=>bc(b,as));w?t.move(w.id):zd()});return r={...r,onKeyDownCapture:a},wn(r)}),GR=pe(function(t){return Se(BR,tg(t))}),N1=m.createContext(void 0),qR="div",F1=_e(function(t){const[n,r]=m.useState();return t=lt(t,s=>f.jsx(N1.Provider,{value:r,children:s}),[]),t={role:"group","aria-labelledby":t["aria-label"]!=null?void 0:n,...t},wn(t)});pe(function(t){return Se(qR,F1(t))});const KR="div",L1=_e(function({store:t,...n}){return n=F1(n),n}),XR=pe(function(t){return Se(KR,L1(t))}),ZR="div",$1=_e(function(t){const n=m.useContext(N1),r=On(t.id);return Ne(()=>(n==null||n(r),()=>n==null?void 0:n(void 0)),[n,r]),t={"aria-hidden":!0,...t,id:r},wn(t)});pe(function(t){return Se(ZR,$1(t))});const QR="div",V1=_e(function({store:t,...n}){return n=$1(n),n}),JR=pe(function(t){return Se(QR,V1(t))}),ej="div";function tj(e){const t=e.relatedTarget;return ml(t)?kt(e.currentTarget,t):!1}const nh=Symbol("composite-hover");function nj(e){const{relatedTarget:t}=e;if(!ml(t))return!1;let n=t;do{if(ps(n,nh)&&n[nh])return!0;n=n.parentElement}while(n);return!1}const ng=_e(function({store:t,focusOnHover:n=!0,blurOnHoverEnd:r=!!n,...s}){const i=vl();t=t||i,Ke(t,!1);const o=Sm(),a=s.onMouseMove,l=vt(n),c=be(p=>{if(a==null||a(p),!p.defaultPrevented&&o()&&l(p)){if(!zs(p.currentTarget)){const v=t==null?void 0:t.getState().baseElement;v&&!Ri(v)&&v.focus()}t==null||t.setActiveId(p.currentTarget.id)}}),u=s.onMouseLeave,d=vt(r),h=be(p=>{var v;u==null||u(p),!p.defaultPrevented&&o()&&(tj(p)||nj(p)||l(p)&&d(p)&&(t==null||t.setActiveId(null),(v=t==null?void 0:t.getState().baseElement)==null||v.focus()))}),g=m.useCallback(p=>{p&&(p[nh]=!0)},[]);return s={...s,ref:bt(g,s.ref),onMouseMove:c,onMouseLeave:h},wn(s)}),rj=Cs(pe(function(t){return Se(ej,ng(t))})),W1=m.createContext(!1),sj="span",ij=f.jsx("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:f.jsx("polyline",{points:"4,8 7,12 12,4"})});function oj(e){return e.checked?e.children||ij:typeof e.children=="function"?e.children:null}const B1=_e(function({store:t,checked:n,...r}){const s=m.useContext(W1);n=n??s;const i=oj({checked:n,children:r.children});return r={"aria-hidden":!0,...r,children:i,style:{width:"1em",height:"1em",pointerEvents:"none",...r.style}},wn(r)});pe(function(t){return Se(sj,B1(t))});const aj="div",lj=_e(function({store:t,"aria-setsize":n,"aria-posinset":r,...s}){const i=vl();t=t||i,Ke(t,!1);const o=On(s.id),a=G(t,c=>c.baseElement||void 0),l=m.useMemo(()=>({id:o,baseElement:a,ariaSetSize:n,ariaPosInSet:r}),[o,a,n,r]);return s=lt(s,c=>f.jsx(Tw.Provider,{value:l,children:c}),[l]),s={...s,id:o},wn(s)}),cj=pe(function(t){return Se(aj,lj(t))});function uj(e={}){var r;e.store;const t=(r=e.store)==null?void 0:r.getState(),n=hn({value:ye(e.value,t==null?void 0:t.value,e.defaultValue,!1)},e.store);return{...n,setValue:s=>n.setState("value",s)}}function dj(e,t,n){return vs(t,[n.store]),ot(e,n,"value","setValue"),e}function fj(e={}){const[t,n]=Hr(uj,e);return dj(t,n,e)}const hj=Sn(),mj=hj.useContext,z1="input";function ny(e,t){t?e.indeterminate=!0:e.indeterminate&&(e.indeterminate=!1)}function gj(e,t){return e==="input"&&(!t||t==="checkbox")}function ry(e){return Array.isArray(e)?e.toString():e}const Y1=_e(function({store:t,name:n,value:r,checked:s,defaultChecked:i,...o}){const a=mj();t=t||a;const[l,c]=m.useState(i??!1),u=G(t,S=>{if(s!==void 0)return s;if((S==null?void 0:S.value)===void 0)return l;if(r!=null){if(Array.isArray(S.value)){const k=ry(r);return S.value.includes(k)}return S.value===r}return Array.isArray(S.value)?!1:typeof S.value=="boolean"?S.value:!1}),d=m.useRef(null),h=gj(vu(d,z1),o.type),g=u?u==="mixed":void 0,p=u==="mixed"?!1:u,v=si(o),[x,y]=yu();m.useEffect(()=>{const S=d.current;S&&(ny(S,g),!h&&(S.checked=p,n!==void 0&&(S.name=n),r!==void 0&&(S.value=String(r))))},[x,g,h,p,n,r]);const w=o.onChange,b=be(S=>{if(v){S.stopPropagation(),S.preventDefault();return}if(ny(S.currentTarget,g),h||(S.currentTarget.checked=!S.currentTarget.checked,y()),w==null||w(S),S.defaultPrevented)return;const k=S.currentTarget.checked;c(k),t==null||t.setValue(T=>{if(r==null)return k;const M=ry(r);return Array.isArray(T)?k?T.includes(M)?T:[...T,M]:T.filter(E=>E!==M):T===M?!1:M})}),C=o.onClick,_=be(S=>{C==null||C(S),!S.defaultPrevented&&(h||b(S))});return o=lt(o,S=>f.jsx(W1.Provider,{value:p,children:S}),[p]),o={role:h?void 0:"checkbox",type:h?"checkbox":void 0,"aria-checked":u,...o,ref:bt(d,o.ref),onChange:b,onClick:_},o=bu({clickOnEnter:!h,...o}),wn({name:h?n:void 0,value:h?r:void 0,checked:p,...o})});pe(function(t){return Se(z1,Y1(t))});const Dl=Sn([Li,S1],[ii,Km]),H1=Dl.useContext,rg=Dl.useScopedContext,Eu=Dl.useProviderContext,pj=Dl.ContextProvider,vj=Dl.ScopedContextProvider,U1=m.createContext(void 0),G1=m.createContext(!1),yj="div";function bj({store:e,...t}){const[n,r]=m.useState(void 0),s=t["aria-label"],i=G(e,"disclosureElement"),o=G(e,"contentElement");return m.useEffect(()=>{const a=i;if(!a)return;const l=o;l&&(s||l.hasAttribute("aria-label")?r(void 0):a.id&&r(a.id))},[s,i,o]),n}const q1=_e(function({store:t,alwaysVisible:n,composite:r,...s}){const i=Eu();t=t||i,Ke(t,!1);const o=t.parent,a=t.menubar,l=!!o,c=On(s.id),u=s.onKeyDown,d=G(t,C=>C.placement.split("-")[0]),h=G(t,C=>C.orientation==="both"?void 0:C.orientation),g=h!=="vertical",p=G(a,C=>!!C&&C.orientation!=="vertical"),v=be(C=>{if(u==null||u(C),!C.defaultPrevented){if(l||a&&!g){const _={ArrowRight:()=>d==="left"&&!g,ArrowLeft:()=>d==="right"&&!g,ArrowUp:()=>d==="bottom"&&g,ArrowDown:()=>d==="top"&&g}[C.key];if(_!=null&&_())return C.stopPropagation(),C.preventDefault(),t==null?void 0:t.hide()}if(a){const _={ArrowRight:()=>{if(p)return a.next()},ArrowLeft:()=>{if(p)return a.previous()},ArrowDown:()=>{if(!p)return a.next()},ArrowUp:()=>{if(!p)return a.previous()}}[C.key],S=_==null?void 0:_();S!==void 0&&(C.stopPropagation(),C.preventDefault(),a.move(S))}}});s=lt(s,C=>f.jsx(vj,{value:t,children:C}),[t]);const x=bj({store:t,...s}),y=wu(G(t,"mounted"),s.hidden,n),w=y?{...s.style,display:"none"}:s.style;s=lt(s,C=>f.jsx(G1.Provider,{value:y,children:C}),[y]),s={"aria-labelledby":x,hidden:y,...s,id:c,ref:bt(c?t.setContentElement:null,s.ref),style:w,onKeyDown:v};const b=!!t.combobox;return r=r??!b,r&&(s={role:"menu","aria-orientation":h,...s}),s=xl({store:t,composite:r,...s}),s=tg({store:t,typeahead:!b,...s}),s});pe(function(t){return Se(yj,q1(t))});const xj="div",wj=_e(function({store:t,modal:n=!1,portal:r=n,hideOnEscape:s=!0,autoFocusOnShow:i=!0,hideOnHoverOutside:o,alwaysVisible:a,...l}){const c=Eu();t=t||c,Ke(t,!1);const u=m.useRef(null),d=t.parent,h=t.menubar,g=!!d,p=!!h&&!g,v=g?!1:n;l={...l,ref:bt(u,l.ref)};const{"aria-labelledby":x,...y}=q1({store:t,alwaysVisible:a,...l});l=y;const[w,b]=m.useState(),C=G(t,"autoFocusOnShow"),_=G(t,"initialFocus"),S=G(t,"baseElement"),k=G(t,"renderedItems");m.useEffect(()=>{let P=!1;return b(L=>{var j,$,N;if(P)return;if(v&&((j=L==null?void 0:L.current)!=null&&j.isConnected))return L;if(!C)return;let F;switch(_){case"first":F=(($=k.find(z=>!z.disabled&&z.element))==null?void 0:$.element)||null;break;case"last":F=((N=[...k].reverse().find(z=>!z.disabled&&z.element))==null?void 0:N.element)||null;break;default:F=S}if(F&&F===(L==null?void 0:L.current))return L;const I=m.createRef();return I.current=F,I}),()=>{P=!0}},[t,v,C,_,k,S]);const T=!!w||!!l.initialFocus||v,M=i===!1?!1:T&&i,E=G(t.combobox||t,"contentElement"),O=G((d==null?void 0:d.combobox)||d,"contentElement"),A=m.useMemo(()=>{if(!O||!E)return;const P=E.getAttribute("role"),L=O.getAttribute("role");if(!((L==="menu"||L==="menubar")&&P==="menu"))return O},[E,O]);return A!==void 0&&(l={preserveTabOrderAnchor:A,...l}),l=Xm({store:t,alwaysVisible:a,initialFocus:w,autoFocusOnShow:M,...l,hideOnEscape(P){return ko(s,P)?!1:(t==null||t.hideAll(),!0)},hideOnHoverOutside(P){const L=t==null?void 0:t.getState().disclosureElement;return(typeof o=="function"?o(P):o??(g?!0:p?L?!zs(L):!0:!1))?P.defaultPrevented||!g||!L||(CD(L,"mouseout",P),!zs(L))?!0:(requestAnimationFrame(()=>{zs(L)||t==null||t.hide()}),!1):!1},modal:v,portal:r,backdrop:g?!1:l.backdrop}),l={"aria-labelledby":x,...l},l}),Sj=Ml(pe(function(t){return Se(xj,wj(t))}),Eu),_j="button";function Cj(e,t){return{ArrowDown:t==="bottom"||t==="top"?"first":!1,ArrowUp:t==="bottom"||t==="top"?"last":!1,ArrowRight:t==="right"?"first":!1,ArrowLeft:t==="left"?"first":!1}[e.key]}function sy(e,t){return!!(e!=null&&e.some(n=>!n.element||n.element===t?!1:n.element.getAttribute("aria-expanded")==="true"))}const kj=_e(function({store:t,focusable:n,accessibleWhenDisabled:r,showOnHover:s,...i}){const o=Eu();t=t||o,Ke(t,!1);const a=m.useRef(null),l=t.parent,c=t.menubar,u=!!l,d=!!c&&!u,h=si(i),g=T=>h||WD(T),p=()=>{const T=a.current;T&&(t==null||t.setDisclosureElement(T),t==null||t.setAnchorElement(T),t==null||t.show())},v=i.onFocus,x=be(T=>{if(v==null||v(T),g(T.currentTarget)||T.defaultPrevented||(t==null||t.setAutoFocusOnShow(!1),t==null||t.setActiveId(null),!c)||!d)return;const{items:M}=c.getState();sy(M,T.currentTarget)&&p()}),y=G(t,T=>T.placement.split("-")[0]),w=i.onKeyDown,b=be(T=>{if(w==null||w(T),g(T.currentTarget)||T.defaultPrevented)return;const M=Cj(T,y);if(M){T.preventDefault();const{open:E}=t.getState();if(E){const O=M==="last"?t.last():t.first();t.move(O);return}p(),t==null||t.setAutoFocusOnShow(!0),t==null||t.setInitialFocus(M)}}),C=i.onClick,_=be(T=>{if(C==null||C(T),T.defaultPrevented||!t)return;const M=!T.detail,{open:E}=t.getState();(!E||M)&&((!u||M)&&t.setAutoFocusOnShow(!0),t.setInitialFocus(M?"first":"container")),u&&p()});i=lt(i,T=>f.jsx(pj,{value:t,children:T}),[t]),u&&(i={...i,render:f.jsx(Ua.div,{render:i.render})});const S=On(i.id),k=G((l==null?void 0:l.combobox)||l,"contentElement");return i={role:u||d?vw(k,"menuitem"):void 0,"aria-haspopup":gu(G(t,"contentElement"),t.combobox?"dialog":"menu"),...i,id:S,ref:bt(a,i.ref),onFocus:x,onKeyDown:b,onClick:_},i=Qm({store:t,focusable:n,accessibleWhenDisabled:r,...i,showOnHover:T=>{if(!(()=>{if(typeof s=="function")return s(T);if(s!=null)return s;if(u)return!0;if(!c)return!1;const{items:O}=c.getState();return d&&sy(O)})())return!1;const E=d?c:l;return E&&E.setActiveId(T.currentTarget.id),!0}}),i=R1({store:t,toggleOnClick:!u,focusable:n,accessibleWhenDisabled:r,...i}),i=tg({store:t,typeahead:d,...i}),i}),K1=pe(function(t){return Se(_j,kj(t))}),Tj="div",Mj=_e(function(t){return t=L1(t),t}),Ej=pe(function(t){return Se(Tj,Mj(t))}),Oj="div",Dj=_e(function(t){return t=V1(t),t}),Pj=pe(function(t){return Se(Oj,Dj(t))}),Aj="div";function Rj(e,t,n){var i,o;if(!e)return!1;if(zs(e))return!0;const r=(o=(i=t==null?void 0:t.find(a=>{var l;return a.element===n?!1:((l=a.element)==null?void 0:l.getAttribute("aria-expanded"))==="true"}))==null?void 0:i.element)==null?void 0:o.getAttribute("aria-controls");if(!r)return!1;const s=at(e).getElementById(r);return s?zs(s)?!0:!!s.querySelector("[role=menuitem][aria-expanded=true]"):!1}const sg=_e(function({store:t,hideOnClick:n=!0,preventScrollOnKeyDown:r=!0,focusOnHover:s,blurOnHoverEnd:i,...o}){const a=rg(!0),l=CR();t=t||a||l,Ke(t,!1);const c=o.onClick,u=vt(n),d="hideAll"in t?t.hideAll:void 0,h=!!d,g=be(x=>{if(c==null||c(x),x.defaultPrevented||ww(x)||xw(x)||!d)return;const y=x.currentTarget.getAttribute("aria-haspopup");y&&y!=="false"||u(x)&&d()}),p=G(t,x=>"contentElement"in x?x.contentElement:null),v=m.useContext(G1);return o={role:vw(p,"menuitem"),...o,onClick:g},o=bl({store:t,preventScrollOnKeyDown:r,...o,shouldRegisterItem:v?!1:o.shouldRegisterItem}),o=ng({store:t,...o,focusOnHover(x){const y=()=>typeof s=="function"?s(x):s??!0;if(!t||!y())return!1;const{baseElement:w,items:b}=t.getState();return h?(x.currentTarget.hasAttribute("aria-expanded")&&x.currentTarget.focus(),!0):Rj(w,b,x.currentTarget)?(x.currentTarget.focus(),!0):!1},blurOnHoverEnd(x){return typeof i=="function"?i(x):i??h}}),o}),jj=Cs(pe(function(t){return Se(Aj,sg(t))})),Ij="span",Nj=_e(function({store:t,checked:n,...r}){const s=m.useContext(U1);return n=n??s,r=B1({...r,checked:n}),r}),X1=pe(function(t){return Se(Ij,Nj(t))}),Fj="div";function Lj(e){return Array.isArray(e)?e.toString():e}function Yd(e,t,n){if(t===void 0)return Array.isArray(e)?e:!!n;const r=Lj(t);return Array.isArray(e)?n?e.includes(r)?e:[...e,r]:e.filter(s=>s!==r):n?r:e===r?!1:e}const $j=_e(function({store:t,name:n,value:r,checked:s,defaultChecked:i,hideOnClick:o=!1,...a}){const l=rg();t=t||l,Ke(t,!1);const c=bm(i);m.useEffect(()=>{t==null||t.setValue(n,(d=[])=>c?Yd(d,r,!0):d)},[t,n,r,c]),m.useEffect(()=>{s!==void 0&&(t==null||t.setValue(n,d=>Yd(d,r,s)))},[t,n,r,s]);const u=fj({value:G(t,d=>d.values[n]),setValue(d){t==null||t.setValue(n,()=>{if(s===void 0)return d;const h=Yd(d,r,s);return!Array.isArray(h)||!Array.isArray(d)?h:jD(d,h)?d:h})}});return a={role:"menuitemcheckbox",...a},a=Y1({store:u,name:n,value:r,checked:s,...a}),a=sg({store:t,hideOnClick:o,...a}),a}),Vj=Cs(pe(function(t){return Se(Fj,$j(t))})),Wj="div";function Hd(e,t,n){return n===void 0?e:n?t:e===t?!1:e}const Bj=_e(function({store:t,name:n,value:r,checked:s,onChange:i,hideOnClick:o=!1,...a}){const l=rg();t=t||l,Ke(t,!1);const c=bm(a.defaultChecked);m.useEffect(()=>{t==null||t.setValue(n,(d=!1)=>Hd(d,r,c))},[t,n,r,c]),m.useEffect(()=>{s!==void 0&&(t==null||t.setValue(n,d=>Hd(d,r,s)))},[t,n,r,s]);const u=G(t,d=>d.values[n]===r);return a=lt(a,d=>f.jsx(U1.Provider,{value:u,children:d}),[u]),a={role:"menuitemradio",...a},a=I1({name:n,value:r,checked:u,onChange(d){if(i==null||i(d),d.defaultPrevented)return;const h=d.currentTarget;t==null||t.setValue(n,g=>Hd(g,r,s??h.checked))},...a}),a=sg({store:t,hideOnClick:o,...a}),a}),zj=Cs(pe(function(t){return Se(Wj,Bj(t))}));function Yj({combobox:e,parent:t,menubar:n,...r}={}){const s=!!n&&!t,i=yl(r.store,Mw(t,["values"]),Ha(e,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),o=i.getState(),a=Cl({...r,store:i,orientation:ye(r.orientation,o.orientation,"vertical")}),l=T1({...r,store:i,placement:ye(r.placement,o.placement,"bottom-start"),timeout:ye(r.timeout,o.timeout,s?0:150),hideTimeout:ye(r.hideTimeout,o.hideTimeout,0)}),c=hn({...a.getState(),...l.getState(),initialFocus:ye(o.initialFocus,"container"),values:ye(r.values,o.values,r.defaultValues,{})},a,l,i);return Ft(c,()=>tt(c,["mounted"],u=>{u.mounted||c.setState("activeId",null)})),Ft(c,()=>tt(t,["orientation"],u=>{c.setState("placement",u.orientation==="vertical"?"right-start":"bottom-start")})),{...a,...l,...c,combobox:e,parent:t,menubar:n,hideAll:()=>{l.hide(),t==null||t.hideAll()},setInitialFocus:u=>c.setState("initialFocus",u),setValues:u=>c.setState("values",u),setValue:(u,d)=>{u!=="__proto__"&&u!=="constructor"&&(Array.isArray(u)||c.setState("values",h=>{const g=h[u],p=ID(d,g);return p===g?h:{...h,[u]:p!==void 0&&p}}))}}}function Hj(e,t,n){return vs(t,[n.combobox,n.parent,n.menubar]),ot(e,n,"values","setValues"),Object.assign(M1(kl(e,t,n),t,n),{combobox:n.combobox,parent:n.parent,menubar:n.menubar})}function Uj(e={}){const t=H1(),n=_R(),r=Nm();e={...e,parent:e.parent!==void 0?e.parent:t,menubar:e.menubar!==void 0?e.menubar:n,combobox:e.combobox!==void 0?e.combobox:r};const[s,i]=Hr(Yj,e);return Hj(s,i,e)}const Gj="hr",qj=_e(function({store:t,...n}){const r=H1();return t=t||r,n=Uw({store:t,...n}),n}),Kj=pe(function(t){return Se(Gj,qj(t))}),Xj="input";function iy(e,t,n){var r;return n?((r=e.find(s=>!s.disabled&&s.value))==null?void 0:r.value)===t:!1}function oy(e,t){return!t||e==null?!1:(e=ym(e),t.length>e.length&&t.toLowerCase().indexOf(e.toLowerCase())===0)}function Zj(e){return e.type==="input"}function Qj(e){return e==="inline"||e==="list"||e==="both"||e==="none"}function Jj(e){var t;return(t=e.find(n=>{var r;return n.disabled?!1:((r=n.element)==null?void 0:r.getAttribute("role"))!=="tab"}))==null?void 0:t.id}const eI=_e(function({store:t,focusable:n=!0,autoSelect:r=!1,getAutoSelectId:s,setValueOnChange:i,showMinLength:o=0,showOnChange:a,showOnMouseDown:l,showOnClick:c=l,showOnKeyDown:u,showOnKeyPress:d=u,blurActiveItemOnClick:h,setValueOnClick:g=!0,moveOnKeyPress:p=!0,autoComplete:v="list",...x}){const y=Nm();t=t||y,Ke(t,!1);const w=m.useRef(null),[b,C]=yu(),_=m.useRef(!1),S=m.useRef(!1),k=G(t,te=>te.virtualFocus&&r),T=v==="inline"||v==="both",[M,E]=m.useState(T);qD(()=>{T&&E(!0)},[T]);const O=G(t,"value"),A=m.useRef(void 0);m.useEffect(()=>tt(t,["selectedValue","activeId"],(te,Ee)=>{A.current=Ee.selectedValue}),[t]);const P=G(t,te=>{var Ee;if(T&&M&&!(te.activeValue&&Array.isArray(te.selectedValue)&&(te.selectedValue.includes(te.activeValue)||(Ee=A.current)!=null&&Ee.includes(te.activeValue))))return te.activeValue}),L=G(t,"renderedItems"),F=G(t,"open"),I=G(t,"contentElement"),j=m.useMemo(()=>!T||!M?O:iy(L,P,k)?oy(O,P)?O+((P==null?void 0:P.slice(O.length))||""):O:P||O,[T,M,L,P,k,O]);m.useEffect(()=>{const te=w.current;if(!te)return;const Ee=()=>E(!0);return te.addEventListener("combobox-item-move",Ee),()=>{te.removeEventListener("combobox-item-move",Ee)}},[]),m.useEffect(()=>{if(!T||!M||!P||!iy(L,P,k)||!oy(O,P))return;let te=Da;return queueMicrotask(()=>{const Ee=w.current;if(!Ee)return;const{start:ht,end:st}=Hf(Ee),It=O.length,zt=P.length;Rd(Ee,It,zt),te=()=>{if(!Ri(Ee))return;const{start:mt,end:Be}=Hf(Ee);mt===It&&Be===zt&&Rd(Ee,ht,st)}}),()=>te()},[b,T,M,P,L,k,O]);const $=m.useRef(null),N=be(s),z=m.useRef(null),B=m.useRef(void 0),K=m.useRef(!1),Q=m.useRef(!1);m.useEffect(()=>{if(!F||!I)return;const te=mm(I);if(!te)return;$.current=te;const Ee=()=>{_.current=!1,K.current=!0},ht=()=>{if(Q.current||(K.current=!0),!t||!_.current)return;const{activeId:It}=t.getState();It!==null&&It!==z.current&&(_.current=!1)},st={passive:!0,capture:!0};return te.addEventListener("wheel",Ee,st),te.addEventListener("touchmove",Ee,st),te.addEventListener("scroll",ht,st),()=>{te.removeEventListener("wheel",Ee,!0),te.removeEventListener("touchmove",Ee,!0),te.removeEventListener("scroll",ht,!0)}},[F,I,t]),Ne(()=>{K.current=!1,O&&(S.current||(_.current=!0))},[O]),Ne(()=>{k!=="always"&&F||(_.current=F)},[k,F]),Ne(()=>{F||(B.current=void 0)},[F]);const re=G(t,"resetValueOnSelect");vs(()=>{var It,zt;const te=_.current;if(!t||!F||!te&&(!re||K.current))return;const{baseElement:Ee,contentElement:ht,activeId:st}=t.getState();if(!(Ee&&!Ri(Ee))){if(ht!=null&&ht.hasAttribute("data-placing")){const mt=new MutationObserver(C);return mt.observe(ht,{attributeFilter:["data-placing"]}),()=>mt.disconnect()}if(k&&te){const mt=N(L),Be=mt!==void 0?mt:Jj(L)??t.first();z.current=Be;const Et=Be??null,Mr=(It=t.item(Et))==null?void 0:It.value,wt=B.current;Et!==st||(wt==null?void 0:wt.id)!==Et||(wt==null?void 0:wt.value)!==Mr?(B.current={id:Et,value:Mr},t.move(Et)):t.setState("activeValue",Mr)}else{const mt=(zt=t.item(st||t.first()))==null?void 0:zt.element;mt&&"scrollIntoView"in mt&&(Q.current=!0,mt.scrollIntoView({block:"nearest",inline:"nearest"}),requestAnimationFrame(()=>{Q.current=!1}))}}},[t,F,b,O,k,re,N,L]),m.useEffect(()=>{if(!T)return;const te=w.current;if(!te)return;const Ee=[te,I].filter(st=>!!st),ht=st=>{Ee.every(It=>wi(st,It))&&(t==null||t.setValue(j))};for(const st of Ee)st.addEventListener("focusout",ht);return()=>{for(const st of Ee)st.removeEventListener("focusout",ht)}},[T,I,t,j]);const Y=te=>te.currentTarget.value.length>=o,ie=x.onChange,X=vt(a??Y),he=vt(i??!t.tag),je=be(te=>{if(ie==null||ie(te),te.defaultPrevented||!t)return;const Ee=te.currentTarget,{value:ht,selectionStart:st,selectionEnd:It}=Ee,zt=te.nativeEvent;if(_.current=!0,Zj(zt)&&(zt.isComposing&&(_.current=!1,S.current=!0),T)){const mt=zt.inputType==="insertText"||zt.inputType==="insertCompositionText",Be=st===ht.length;E(mt&&Be)}if(he(te)){const mt=ht===t.getState().value;t.setValue(ht),queueMicrotask(()=>{Rd(Ee,st,It)}),T&&k&&mt&&C()}X(te)&&t.show(),(!k||!_.current)&&t.setActiveId(null)}),Te=x.onCompositionEnd,Ue=be(te=>{_.current=!0,S.current=!1,Te==null||Te(te),!te.defaultPrevented&&k&&C()}),Ae=x.onMouseDown,D=vt(h??(()=>t.getState().includesBaseElement)),V=vt(g),W=vt(c??Y),H=be(te=>{Ae==null||Ae(te),!te.defaultPrevented&&(te.button||te.ctrlKey||t&&(D(te)&&t.setActiveId(null),V(te)&&t.setValue(j),W(te)&&$c(te.currentTarget,"mouseup",t.show)))}),de=x.onKeyDown,J=vt(d??Y),fe=be(te=>{if(de==null||de(te),te.repeat||(_.current=!1),te.defaultPrevented||!t)return;const{open:Ee}=t.getState();if(Ee&&te.key==="Enter"){te.preventDefault();return}te.ctrlKey||te.altKey||te.shiftKey||te.metaKey||Ee||(te.key==="ArrowUp"||te.key==="ArrowDown")&&J(te)&&(te.preventDefault(),t.show())}),ue=x.onBlur,me=be(te=>{_.current=!1,ue==null||ue(te),te.defaultPrevented}),Bt=On(x.id),xt=Qj(v)?v:void 0,pn=G(t,te=>te.activeId===null);return x={role:"combobox","aria-autocomplete":xt,"aria-haspopup":gu(I,"listbox"),"aria-expanded":F,"aria-controls":I==null?void 0:I.id,"data-active-item":pn||void 0,value:j,...x,id:Bt,ref:bt(w,x.ref),onChange:je,onCompositionEnd:Ue,onMouseDown:H,onKeyDown:fe,onBlur:me},x=xl({store:t,focusable:n,...x,moveOnKeyPress:te=>ko(p,te)?!1:(T&&E(!0),!0)}),x=Jm({store:t,...x}),{autoComplete:"off",...x}}),tI=pe(function(t){return Se(Xj,eI(t))}),nI="div";function rI(e,t){if(t!=null)return e==null?!1:Array.isArray(e)?e.includes(t):e===t}function sI(e){return{menu:"menuitem",listbox:"option",tree:"treeitem"}[e]??"option"}const iI=_e(function({store:t,value:n,hideOnClick:r,setValueOnClick:s,selectValueOnClick:i=!0,resetValueOnSelect:o,focusOnHover:a=!1,moveOnKeyPress:l=!0,getItem:c,...u}){const d=Im();t=t||d,Ke(t,!1);const{resetValueOnSelectState:h,multiSelectable:g,selected:p}=Aw(t,{resetValueOnSelectState:"resetValueOnSelect",multiSelectable(M){return Array.isArray(M.selectedValue)},selected(M){return rI(M.selectedValue,n)}}),v=m.useCallback(M=>{const E={...M,value:n};return c?c(E):E},[n,c]);s=s??!g,r=r??(n!=null&&!g);const x=u.onClick,y=vt(s),w=vt(i),b=vt(o??h??g),C=vt(r),_=be(M=>{x==null||x(M),!M.defaultPrevented&&(ww(M)||xw(M)||(n!=null&&(w(M)&&(b(M)&&(t==null||t.resetValue()),t==null||t.setSelectedValue(E=>Array.isArray(E)?E.includes(n)?E.filter(O=>O!==n):[...E,n]:n)),y(M)&&(t==null||t.setValue(n))),C(M)&&(t==null||t.hide())))}),S=u.onKeyDown,k=be(M=>{if(S==null||S(M),M.defaultPrevented)return;const E=t==null?void 0:t.getState().baseElement;E&&(Ri(E)||(M.key.length===1||M.key==="Backspace"||M.key==="Delete")&&(queueMicrotask(()=>E.focus()),Cr(E)&&(t==null||t.setValue(E.value))))});g&&p!=null&&(u={"aria-selected":p,...u}),u=lt(u,M=>f.jsx(Ww.Provider,{value:n,children:f.jsx(gA.Provider,{value:p??!1,children:M})}),[n,p]),u={role:sI(m.useContext($w)),children:n,...u,onClick:_,onKeyDown:k};const T=vt(l);return u=bl({store:t,...u,getItem:v,moveOnKeyPress:M=>{var O;if(!T(M))return!1;const E=new Event("combobox-item-move");return(O=t==null?void 0:t.getState().baseElement)==null||O.dispatchEvent(E),!0}}),u=ng({store:t,focusOnHover:a,...u}),u}),oI=Cs(pe(function(t){return Se(nI,iI(t))})),aI="span";function ay(e){return ym(e).toLowerCase()}function lI(e,t){const n=[];for(const r of t){let s=0;const i=r.length;for(;e.indexOf(r,s)!==-1;){const o=e.indexOf(r,s);o!==-1&&n.push([o,i]),s=o+1}}return n}function cI(e){return e.filter(([t,n],r,s)=>!s.some(([i,o],a)=>a!==r&&i<=t&&i+o>=t+n))}function uI(e){return e.sort(([t],[n])=>t-n)}function dI(e,t){if(!e||!t)return e;const n=gD(t).filter(Boolean).map(ay),r=[],s=(l,c=!1)=>f.jsx("span",{"data-autocomplete-value":c?"":void 0,"data-user-value":c?void 0:"",children:l},r.length),i=uI(cI(lI(ay(e),new Set(n)))),o=i[0];if(!o)return r.push(s(e,!0)),r;const[a]=o;return[e.slice(0,a),...i.flatMap(([l,c],u)=>{var g;const d=e.slice(l,l+c),h=(g=i[u+1])==null?void 0:g[0];return[d,e.slice(l+c,h)]})].forEach((l,c)=>{l&&r.push(s(l,c%2===0))}),r}const fI=_e(function({store:t,value:n,userValue:r,...s}){const i=Im();t=t||i;const o=m.useContext(Ww),a=n??o,l=G(t,c=>r??(c==null?void 0:c.value));return s={children:m.useMemo(()=>{if(a)return l?dI(a,l):a},[a,l]),...s},wn(s)}),hI=pe(function(t){return Se(aI,fI(t))}),mI="label",gI=_e(function({store:t,...n}){const r=Nm();return t=t||r,Ke(t,!1),n={htmlFor:G(t,s=>{var i;return(i=s.baseElement)==null?void 0:i.id}),...n},wn(n)}),pI=Cs(pe(function(t){return Se(mI,gI(t))})),vI="div",yI=_e(function({store:t,alwaysVisible:n,...r}){const s=Im(!0),i=Vw();t=t||i;const o=!!t&&t===s;Ke(t,!1);const a=m.useRef(null),l=On(r.id),c=G(t,"mounted"),u=wu(c,r.hidden,n),d=u?{...r.style,display:"none"}:r.style,h=G(t,b=>Array.isArray(b.selectedValue)),g=GD(a,"role",r.role),p=(g==="listbox"||g==="tree"||g==="grid")&&h||void 0,[v,x]=m.useState(!1),y=G(t,"contentElement");Ne(()=>{if(!c)return;const b=a.current;if(!b||y!==b)return;const C=()=>{x(!!b.querySelector("[role='listbox']"))},_=new MutationObserver(C);return _.observe(b,{subtree:!0,childList:!0,attributeFilter:["role"]}),C(),()=>_.disconnect()},[c,y]),v||(r={role:"listbox","aria-multiselectable":p,...r}),r=lt(r,b=>f.jsx(mA,{value:t,children:f.jsx($w.Provider,{value:g,children:b})}),[t,g]);const w=l&&(!s||!o)?t.setContentElement:null;return r={hidden:u,...r,id:l,ref:bt(w,a,r.ref),style:d},wn(r)}),bI=pe(function(t){return Se(vI,yI(t))});m.createContext(null);m.createContext(null);const xI=Sn([Li],[ii]),wI=xI.useContext,SI=pu()&&bw();function _I({tag:e,...t}={}){const n=yl(t.store,Mw(e,["value","rtl"])),r=e==null?void 0:e.getState(),s=n==null?void 0:n.getState(),i=ye(t.activeId,s==null?void 0:s.activeId,t.defaultActiveId,null),o=Cl({...t,activeId:i,includesBaseElement:ye(t.includesBaseElement,s==null?void 0:s.includesBaseElement,!0),orientation:ye(t.orientation,s==null?void 0:s.orientation,"vertical"),focusLoop:ye(t.focusLoop,s==null?void 0:s.focusLoop,!0),focusWrap:ye(t.focusWrap,s==null?void 0:s.focusWrap,!0),virtualFocus:ye(t.virtualFocus,s==null?void 0:s.virtualFocus,!0)}),a=C1({...t,placement:ye(t.placement,s==null?void 0:s.placement,"bottom-start")}),l=ye(t.value,s==null?void 0:s.value,t.defaultValue,""),c=ye(t.selectedValue,s==null?void 0:s.selectedValue,r==null?void 0:r.values,t.defaultSelectedValue,""),u=Array.isArray(c),d={...o.getState(),...a.getState(),value:l,selectedValue:c,resetValueOnSelect:ye(t.resetValueOnSelect,s==null?void 0:s.resetValueOnSelect,u),resetValueOnHide:ye(t.resetValueOnHide,s==null?void 0:s.resetValueOnHide,u&&!e),activeValue:s==null?void 0:s.activeValue},h=hn(d,o,a,n);return SI&&Ft(h,()=>tt(h,["virtualFocus"],()=>{h.setState("virtualFocus",!1)})),Ft(h,()=>{if(e)return fn(tt(h,["selectedValue"],g=>{Array.isArray(g.selectedValue)&&e.setValues(g.selectedValue)}),tt(e,["values"],g=>{h.setState("selectedValue",g.values)}))}),Ft(h,()=>tt(h,["resetValueOnHide","mounted"],g=>{g.resetValueOnHide&&(g.mounted||h.setState("value",l))})),Ft(h,()=>tt(h,["open"],g=>{g.open||(h.setState("activeId",i),h.setState("moves",0))})),Ft(h,()=>tt(h,["moves","activeId"],(g,p)=>{g.moves===p.moves&&h.setState("activeValue",void 0)})),Ft(h,()=>Ya(h,["moves","renderedItems"],(g,p)=>{if(g.moves===p.moves)return;const{activeId:v}=h.getState(),x=o.item(v);h.setState("activeValue",x==null?void 0:x.value)})),{...a,...o,...h,tag:e,setValue:g=>h.setState("value",g),resetValue:()=>h.setState("value",d.value),setSelectedValue:g=>h.setState("selectedValue",g)}}function CI(e){const t=wI();return e={...e,tag:e.tag!==void 0?e.tag:t},Fm(e)}function kI(e,t,n){return vs(t,[n.tag]),ot(e,n,"value","setValue"),ot(e,n,"selectedValue","setSelectedValue"),ot(e,n,"resetValueOnHide"),ot(e,n,"resetValueOnSelect"),Object.assign(kl(k1(e,t,n),t,n),{tag:n.tag})}function TI(e={}){e=CI(e);const[t,n]=Hr(_I,e);return kI(t,n,e)}function MI(e={}){return f.jsx(hA,{value:TI(e),children:e.children})}var zc=m.createContext({});zc.displayName="CompositeContext";var Xo=()=>m.useContext(zc),EI=m.forwardRef(function(t,n){var r;const s=Xo(),i=(r=t.store)!==null&&r!==void 0?r:s.store;return f.jsx(XR,{store:i,...t,ref:n})}),OI=m.forwardRef(function(t,n){var r;const s=Xo(),i=(r=t.store)!==null&&r!==void 0?r:s.store;return f.jsx(JR,{store:i,...t,ref:n})}),DI=m.forwardRef(function(t,n){var r;const s=Xo(),i=(r=t.store)!==null&&r!==void 0?r:s.store;return f.jsx(rj,{store:i,...t,ref:n})}),PI=m.forwardRef(function(t,n){var r;const s=Xo(),i=(r=t.store)!==null&&r!==void 0?r:s.store;return f.jsx(qf,{store:i,...t,ref:n})}),AI=m.forwardRef(function(t,n){var r;const s=Xo(),i=(r=t.store)!==null&&r!==void 0?r:s.store;return f.jsx(cj,{store:i,...t,ref:n})}),RI=m.forwardRef(function(t,n){var r;const s=Xo(),i=(r=t.store)!==null&&r!==void 0?r:s.store;return f.jsx(GR,{store:i,...t,ref:n})}),Ln=Object.assign(m.forwardRef(function({activeId:t,defaultActiveId:n,setActiveId:r,focusLoop:s=!1,focusWrap:i=!1,focusShift:o=!1,virtualFocus:a=!1,orientation:l="both",rtl:c=bn(),children:u,disabled:d=!1,...h},g){const p=h.store,v=kA({activeId:t,defaultActiveId:n,setActiveId:r,focusLoop:s,focusWrap:i,focusShift:o,virtualFocus:a,orientation:l,rtl:c}),x=p??v,y=m.useMemo(()=>({store:x}),[x]);return f.jsx(QP,{disabled:d,store:x,...h,ref:g,children:f.jsx(zc.Provider,{value:y,children:u})})}),{Group:Object.assign(EI,{displayName:"Composite.Group"}),GroupLabel:Object.assign(OI,{displayName:"Composite.GroupLabel"}),Item:Object.assign(PI,{displayName:"Composite.Item"}),Row:Object.assign(AI,{displayName:"Composite.Row"}),Hover:Object.assign(DI,{displayName:"Composite.Hover"}),Typeahead:Object.assign(RI,{displayName:"Composite.Typeahead"}),Context:Object.assign(zc,{displayName:"Composite.Context"})});function jI(e){const{shortcut:t,className:n}=e;if(!t)return null;let r,s;return typeof t=="string"&&(r=t),t!==null&&typeof t=="object"&&(r=t.display,s=t.ariaLabel),f.jsx("span",{className:n,"aria-label":s,children:r})}var II=jI,NI={bottom:"bottom",top:"top","middle left":"left","middle right":"right","bottom left":"bottom-end","bottom center":"bottom","bottom right":"bottom-start","top left":"top-end","top center":"top","top right":"top-start","middle left left":"left","middle left right":"left","middle left bottom":"left-end","middle left top":"left-start","middle right left":"right","middle right right":"right","middle right bottom":"right-end","middle right top":"right-start","bottom left left":"bottom-end","bottom left right":"bottom-end","bottom left bottom":"bottom-end","bottom left top":"bottom-end","bottom center left":"bottom","bottom center right":"bottom","bottom center bottom":"bottom","bottom center top":"bottom","bottom right left":"bottom-start","bottom right right":"bottom-start","bottom right bottom":"bottom-start","bottom right top":"bottom-start","top left left":"top-end","top left right":"top-end","top left bottom":"top-end","top left top":"top-end","top center left":"top","top center right":"top","top center bottom":"top","top center top":"top","top right left":"top-start","top right right":"top-start","top right bottom":"top-start","top right top":"top-start",middle:"bottom","middle center":"bottom","middle center bottom":"bottom","middle center left":"bottom","middle center right":"bottom","middle center top":"bottom"},Ou=e=>{var t;return(t=NI[e])!==null&&t!==void 0?t:"bottom"},FI={top:{originX:.5,originY:1},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},right:{originX:0,originY:.5},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},bottom:{originX:.5,originY:0},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},left:{originX:1,originY:.5},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1},overlay:{originX:.5,originY:.5}},LI=e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:FI[e],initial:{opacity:0,scale:0,[t]:`${2*n}em`},animate:{opacity:1,scale:1,[t]:0},transition:{duration:.1,ease:[0,0,.2,1]}}};function $I(e){return!!(e!=null&&e.top)}function VI(e){return!!(e!=null&&e.current)}var WI=({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:s})=>{var i;let o=null;return e?o=e:$I(t)?o={getBoundingClientRect(){const a=t.top.getBoundingClientRect(),l=t.bottom.getBoundingClientRect();return new window.DOMRect(a.x,a.y,a.width,l.bottom-a.top)}}:VI(t)?o=t.current:t?o=t:n?o={getBoundingClientRect(){return n}}:r?o={getBoundingClientRect(){var a,l,c,u;const d=r(s);return new window.DOMRect((a=d.x)!==null&&a!==void 0?a:d.left,(l=d.y)!==null&&l!==void 0?l:d.top,(c=d.width)!==null&&c!==void 0?c:d.right-d.left,(u=d.height)!==null&&u!==void 0?u:d.bottom-d.top)}}:s&&(o=s.parentElement),(i=o)!==null&&i!==void 0?i:null},ly=e=>e===null||Number.isNaN(e)?void 0:Math.round(e),rh=m.createContext({isNestedInTooltip:!1});rh.displayName="TooltipInternalContext";var BI=700,zI={isNestedInTooltip:!0};function YI(e,t){const{children:n,className:r,delay:s=BI,hideOnClick:i=!0,placement:o,position:a,shortcut:l,text:c,...u}=e,{isNestedInTooltip:d}=m.useContext(rh),h=yt(Z1,"tooltip"),g=c||l?h:void 0,p=m.Children.count(n)===1;let v;o!==void 0?v=o:a!==void 0&&(v=Ou(a),Kt("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),v=v||"bottom";const x=SR({placement:v,showTimeout:s}),y=G(x,"mounted");if(d)return p?f.jsx(Ua,{...u,render:n}):n;function w(b){return g&&y&&b.props["aria-describedby"]===void 0&&b.props["aria-label"]!==c?m.cloneElement(b,{"aria-describedby":g}):b}return f.jsxs(rh.Provider,{value:zI,children:[f.jsx(bR,{onClick:i?x.hide:void 0,store:x,render:p?w(n):void 0,ref:t,children:p?void 0:n}),p&&(c||l)&&f.jsxs(hR,{...u,className:ge("components-tooltip",r),unmountOnHide:!0,gutter:4,id:g,overflowPadding:.5,store:x,children:[c,l&&f.jsx(II,{className:c?"components-tooltip__shortcut":"",shortcut:l})]})]})}var Z1=m.forwardRef(YI),Oo=Z1,HI=function(t){return UI(t)&&!GI(t)};function UI(e){return!!e&&typeof e=="object"}function GI(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||XI(e)}var qI=typeof Symbol=="function"&&Symbol.for,KI=qI?Symbol.for("react.element"):60103;function XI(e){return e.$$typeof===KI}function ZI(e){return Array.isArray(e)?[]:{}}function qa(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Do(ZI(e),e,t):e}function QI(e,t,n){return e.concat(t).map(function(r){return qa(r,n)})}function JI(e,t){if(!t.customMerge)return Do;var n=t.customMerge(e);return typeof n=="function"?n:Do}function eN(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function cy(e){return Object.keys(e).concat(eN(e))}function Q1(e,t){try{return t in e}catch{return!1}}function tN(e,t){return Q1(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function nN(e,t,n){var r={};return n.isMergeableObject(e)&&cy(e).forEach(function(s){r[s]=qa(e[s],n)}),cy(t).forEach(function(s){tN(e,s)||(Q1(e,s)&&n.isMergeableObject(t[s])?r[s]=JI(s,n)(e[s],t[s],n):r[s]=qa(t[s],n))}),r}function Do(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||QI,n.isMergeableObject=n.isMergeableObject||HI,n.cloneUnlessOtherwiseSpecified=qa;var r=Array.isArray(t),s=Array.isArray(e),i=r===s;return i?r?n.arrayMerge(e,t,n):nN(e,t,n):qa(t,n)}Do.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,s){return Do(r,s,n)},{})};var rN=Do,sN=rN;const iN=hu(sN);var oN=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,s,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(s=r;s--!==0;)if(!e(t[s],n[s]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(s of t.entries())if(!n.has(s[0]))return!1;for(s of t.entries())if(!e(s[1],n.get(s[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(s of t.entries())if(!n.has(s[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(r=t.length,r!=n.length)return!1;for(s=r;s--!==0;)if(t[s]!==n[s])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(s=r;s--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[s]))return!1;for(s=r;s--!==0;){var o=i[s];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n};const J1=hu(oN);var uy=new Set;function aN(){return globalThis.SCRIPT_DEBUG===!0}function nr(e){if(aN()&&!uy.has(e)){console.warn(e);try{throw Error(e)}catch{}uy.add(e)}}function Pl(e){return e!=null}function lN(e){const t=e==="";return!Pl(e)||t}function cN(e=[],t){var n;return(n=e.find(Pl))!==null&&n!==void 0?n:t}var uN=e=>parseFloat(e),ic=e=>typeof e=="string"?uN(e):e,dy={initial:void 0,fallback:""};function dN(e,t=dy){const{initial:n,fallback:r}={...dy,...t},[s,i]=m.useState(e),o=Pl(e);m.useEffect(()=>{o&&s&&i(void 0)},[o,s]);const a=cN([e,s,n],r),l=m.useCallback(c=>{o||i(c)},[o]);return[a,l]}var fN=dN;function hN(e,t){const n=m.useRef(!1);m.useEffect(()=>{if(n.current)return e();n.current=!0},t),m.useEffect(()=>()=>{n.current=!1},[])}var mN=hN;function Al({defaultValue:e,onChange:t,value:n}){const r=typeof n<"u",s=r?n:e,[i,o]=m.useState(s),a=r?n:i,l=m.useCallback((u,...d)=>{o(u),t==null||t(u,...d)},[t]);let c;return r&&typeof t=="function"?c=t:!r&&typeof t=="function"?c=l:c=o,[a,c]}function gN(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function pN(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var vN=function(){function e(n){var r=this;this._insertTag=function(s){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,i),r.tags.push(s)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(pN(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var i=gN(s);try{i.insertRule(r,i.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var s;return(s=r.parentNode)==null?void 0:s.removeChild(r)}),this.tags=[],this.ctr=0},e}(),an="-ms-",Yc="-moz-",Ge="-webkit-",eS="comm",ig="rule",og="decl",yN="@import",tS="@keyframes",bN="@layer",xN=Math.abs,Du=String.fromCharCode,wN=Object.assign;function SN(e,t){return nn(e,0)^45?(((t<<2^nn(e,0))<<2^nn(e,1))<<2^nn(e,2))<<2^nn(e,3):0}function nS(e){return e.trim()}function _N(e,t){return(e=t.exec(e))?e[0]:e}function qe(e,t,n){return e.replace(t,n)}function sh(e,t){return e.indexOf(t)}function nn(e,t){return e.charCodeAt(t)|0}function Ka(e,t,n){return e.slice(t,n)}function Rr(e){return e.length}function ag(e){return e.length}function oc(e,t){return t.push(e),e}function CN(e,t){return e.map(t).join("")}var Pu=1,Po=1,rS=0,En=0,Lt=0,Zo="";function Au(e,t,n,r,s,i,o){return{value:e,root:t,parent:n,type:r,props:s,children:i,line:Pu,column:Po,length:o,return:""}}function ca(e,t){return wN(Au("",null,null,"",null,null,0),e,{length:-e.length},t)}function kN(){return Lt}function TN(){return Lt=En>0?nn(Zo,--En):0,Po--,Lt===10&&(Po=1,Pu--),Lt}function Vn(){return Lt=En<rS?nn(Zo,En++):0,Po++,Lt===10&&(Po=1,Pu++),Lt}function Vr(){return nn(Zo,En)}function xc(){return En}function Rl(e,t){return Ka(Zo,e,t)}function Xa(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 sS(e){return Pu=Po=1,rS=Rr(Zo=e),En=0,[]}function iS(e){return Zo="",e}function wc(e){return nS(Rl(En-1,ih(e===91?e+2:e===40?e+1:e)))}function MN(e){for(;(Lt=Vr())&&Lt<33;)Vn();return Xa(e)>2||Xa(Lt)>3?"":" "}function EN(e,t){for(;--t&&Vn()&&!(Lt<48||Lt>102||Lt>57&&Lt<65||Lt>70&&Lt<97););return Rl(e,xc()+(t<6&&Vr()==32&&Vn()==32))}function ih(e){for(;Vn();)switch(Lt){case e:return En;case 34:case 39:e!==34&&e!==39&&ih(Lt);break;case 40:e===41&&ih(e);break;case 92:Vn();break}return En}function ON(e,t){for(;Vn()&&e+Lt!==57;)if(e+Lt===84&&Vr()===47)break;return"/*"+Rl(t,En-1)+"*"+Du(e===47?e:Vn())}function DN(e){for(;!Xa(Vr());)Vn();return Rl(e,En)}function PN(e){return iS(Sc("",null,null,null,[""],e=sS(e),0,[0],e))}function Sc(e,t,n,r,s,i,o,a,l){for(var c=0,u=0,d=o,h=0,g=0,p=0,v=1,x=1,y=1,w=0,b="",C=s,_=i,S=r,k=b;x;)switch(p=w,w=Vn()){case 40:if(p!=108&&nn(k,d-1)==58){sh(k+=qe(wc(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:k+=wc(w);break;case 9:case 10:case 13:case 32:k+=MN(p);break;case 92:k+=EN(xc()-1,7);continue;case 47:switch(Vr()){case 42:case 47:oc(AN(ON(Vn(),xc()),t,n),l);break;default:k+="/"}break;case 123*v:a[c++]=Rr(k)*y;case 125*v:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+u:y==-1&&(k=qe(k,/\f/g,"")),g>0&&Rr(k)-d&&oc(g>32?hy(k+";",r,n,d-1):hy(qe(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(oc(S=fy(k,t,n,c,u,s,a,b,C=[],_=[],d),i),w===123)if(u===0)Sc(k,t,S,S,C,i,d,a,_);else switch(h===99&&nn(k,3)===110?100:h){case 100:case 108:case 109:case 115:Sc(e,S,S,r&&oc(fy(e,S,S,0,0,s,a,b,s,C=[],d),_),s,_,d,a,r?C:_);break;default:Sc(k,S,S,S,[""],_,0,a,_)}}c=u=g=0,v=y=1,b=k="",d=o;break;case 58:d=1+Rr(k),g=p;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&TN()==125)continue}switch(k+=Du(w),w*v){case 38:y=u>0?1:(k+="\f",-1);break;case 44:a[c++]=(Rr(k)-1)*y,y=1;break;case 64:Vr()===45&&(k+=wc(Vn())),h=Vr(),u=d=Rr(b=k+=DN(xc())),w++;break;case 45:p===45&&Rr(k)==2&&(v=0)}}return i}function fy(e,t,n,r,s,i,o,a,l,c,u){for(var d=s-1,h=s===0?i:[""],g=ag(h),p=0,v=0,x=0;p<r;++p)for(var y=0,w=Ka(e,d+1,d=xN(v=o[p])),b=e;y<g;++y)(b=nS(v>0?h[y]+" "+w:qe(w,/&\f/g,h[y])))&&(l[x++]=b);return Au(e,t,n,s===0?ig:a,l,c,u)}function AN(e,t,n){return Au(e,t,n,eS,Du(kN()),Ka(e,2,-2),0)}function hy(e,t,n,r){return Au(e,t,n,og,Ka(e,0,r),Ka(e,r+1,-1),r)}function po(e,t){for(var n="",r=ag(e),s=0;s<r;s++)n+=t(e[s],s,e,t)||"";return n}function RN(e,t,n,r){switch(e.type){case bN:if(e.children.length)break;case yN:case og:return e.return=e.return||e.value;case eS:return"";case tS:return e.return=e.value+"{"+po(e.children,r)+"}";case ig:e.value=e.props.join(",")}return Rr(n=po(e.children,r))?e.return=e.value+"{"+n+"}":""}function jN(e){var t=ag(e);return function(n,r,s,i){for(var o="",a=0;a<t;a++)o+=e[a](n,r,s,i)||"";return o}}function IN(e){return function(t){t.root||(t=t.return)&&e(t)}}function oS(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var NN=function(t,n,r){for(var s=0,i=0;s=i,i=Vr(),s===38&&i===12&&(n[r]=1),!Xa(i);)Vn();return Rl(t,En)},FN=function(t,n){var r=-1,s=44;do switch(Xa(s)){case 0:s===38&&Vr()===12&&(n[r]=1),t[r]+=NN(En-1,n,r);break;case 2:t[r]+=wc(s);break;case 4:if(s===44){t[++r]=Vr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Du(s)}while(s=Vn());return t},LN=function(t,n){return iS(FN(sS(t),n))},my=new WeakMap,$N=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,s=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!my.get(r))&&!s){my.set(t,!0);for(var i=[],o=LN(n,i),a=r.props,l=0,c=0;l<o.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=i[l]?o[l].replace(/&\f/g,a[u]):a[u]+" "+o[l]}}},VN=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function aS(e,t){switch(SN(e,t)){case 5103:return Ge+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ge+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ge+e+Yc+e+an+e+e;case 6828:case 4268:return Ge+e+an+e+e;case 6165:return Ge+e+an+"flex-"+e+e;case 5187:return Ge+e+qe(e,/(\w+).+(:[^]+)/,Ge+"box-$1$2"+an+"flex-$1$2")+e;case 5443:return Ge+e+an+"flex-item-"+qe(e,/flex-|-self/,"")+e;case 4675:return Ge+e+an+"flex-line-pack"+qe(e,/align-content|flex-|-self/,"")+e;case 5548:return Ge+e+an+qe(e,"shrink","negative")+e;case 5292:return Ge+e+an+qe(e,"basis","preferred-size")+e;case 6060:return Ge+"box-"+qe(e,"-grow","")+Ge+e+an+qe(e,"grow","positive")+e;case 4554:return Ge+qe(e,/([^-])(transform)/g,"$1"+Ge+"$2")+e;case 6187:return qe(qe(qe(e,/(zoom-|grab)/,Ge+"$1"),/(image-set)/,Ge+"$1"),e,"")+e;case 5495:case 3959:return qe(e,/(image-set\([^]*)/,Ge+"$1$`$1");case 4968:return qe(qe(e,/(.+:)(flex-)?(.*)/,Ge+"box-pack:$3"+an+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ge+e+e;case 4095:case 3583:case 4068:case 2532:return qe(e,/(.+)-inline(.+)/,Ge+"$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(Rr(e)-1-t>6)switch(nn(e,t+1)){case 109:if(nn(e,t+4)!==45)break;case 102:return qe(e,/(.+:)(.+)-([^]+)/,"$1"+Ge+"$2-$3$1"+Yc+(nn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~sh(e,"stretch")?aS(qe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(nn(e,t+1)!==115)break;case 6444:switch(nn(e,Rr(e)-3-(~sh(e,"!important")&&10))){case 107:return qe(e,":",":"+Ge)+e;case 101:return qe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ge+(nn(e,14)===45?"inline-":"")+"box$3$1"+Ge+"$2$3$1"+an+"$2box$3")+e}break;case 5936:switch(nn(e,t+11)){case 114:return Ge+e+an+qe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ge+e+an+qe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ge+e+an+qe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ge+e+an+e+e}return e}var WN=function(t,n,r,s){if(t.length>-1&&!t.return)switch(t.type){case og:t.return=aS(t.value,t.length);break;case tS:return po([ca(t,{value:qe(t.value,"@","@"+Ge)})],s);case ig:if(t.length)return CN(t.props,function(i){switch(_N(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return po([ca(t,{props:[qe(i,/:(read-\w+)/,":"+Yc+"$1")]})],s);case"::placeholder":return po([ca(t,{props:[qe(i,/:(plac\w+)/,":"+Ge+"input-$1")]}),ca(t,{props:[qe(i,/:(plac\w+)/,":"+Yc+"$1")]}),ca(t,{props:[qe(i,/:(plac\w+)/,an+"input-$1")]})],s)}return""})}},BN=[WN],lg=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var s=t.stylisPlugins||BN,i={},o,a=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),y=1;y<x.length;y++)i[x[y]]=!0;a.push(v)});var l,c=[$N,VN];{var u,d=[RN,IN(function(v){u.insert(v)})],h=jN(c.concat(s,d)),g=function(x){return po(PN(x),h)};l=function(x,y,w,b){u=w,g(x?x+"{"+y.styles+"}":y.styles),b&&(p.inserted[y.name]=!0)}}var p={key:n,sheet:new vN({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return p.sheet.hydrate(a),p};function oh(){return oh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oh.apply(null,arguments)}var lS={exports:{}},et={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Qt=typeof Symbol=="function"&&Symbol.for,cg=Qt?Symbol.for("react.element"):60103,ug=Qt?Symbol.for("react.portal"):60106,Ru=Qt?Symbol.for("react.fragment"):60107,ju=Qt?Symbol.for("react.strict_mode"):60108,Iu=Qt?Symbol.for("react.profiler"):60114,Nu=Qt?Symbol.for("react.provider"):60109,Fu=Qt?Symbol.for("react.context"):60110,dg=Qt?Symbol.for("react.async_mode"):60111,Lu=Qt?Symbol.for("react.concurrent_mode"):60111,$u=Qt?Symbol.for("react.forward_ref"):60112,Vu=Qt?Symbol.for("react.suspense"):60113,zN=Qt?Symbol.for("react.suspense_list"):60120,Wu=Qt?Symbol.for("react.memo"):60115,Bu=Qt?Symbol.for("react.lazy"):60116,YN=Qt?Symbol.for("react.block"):60121,HN=Qt?Symbol.for("react.fundamental"):60117,UN=Qt?Symbol.for("react.responder"):60118,GN=Qt?Symbol.for("react.scope"):60119;function Yn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cg:switch(e=e.type,e){case dg:case Lu:case Ru:case Iu:case ju:case Vu:return e;default:switch(e=e&&e.$$typeof,e){case Fu:case $u:case Bu:case Wu:case Nu:return e;default:return t}}case ug:return t}}}function cS(e){return Yn(e)===Lu}et.AsyncMode=dg;et.ConcurrentMode=Lu;et.ContextConsumer=Fu;et.ContextProvider=Nu;et.Element=cg;et.ForwardRef=$u;et.Fragment=Ru;et.Lazy=Bu;et.Memo=Wu;et.Portal=ug;et.Profiler=Iu;et.StrictMode=ju;et.Suspense=Vu;et.isAsyncMode=function(e){return cS(e)||Yn(e)===dg};et.isConcurrentMode=cS;et.isContextConsumer=function(e){return Yn(e)===Fu};et.isContextProvider=function(e){return Yn(e)===Nu};et.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cg};et.isForwardRef=function(e){return Yn(e)===$u};et.isFragment=function(e){return Yn(e)===Ru};et.isLazy=function(e){return Yn(e)===Bu};et.isMemo=function(e){return Yn(e)===Wu};et.isPortal=function(e){return Yn(e)===ug};et.isProfiler=function(e){return Yn(e)===Iu};et.isStrictMode=function(e){return Yn(e)===ju};et.isSuspense=function(e){return Yn(e)===Vu};et.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ru||e===Lu||e===Iu||e===ju||e===Vu||e===zN||typeof e=="object"&&e!==null&&(e.$$typeof===Bu||e.$$typeof===Wu||e.$$typeof===Nu||e.$$typeof===Fu||e.$$typeof===$u||e.$$typeof===HN||e.$$typeof===UN||e.$$typeof===GN||e.$$typeof===YN)};et.typeOf=Yn;lS.exports=et;var qN=lS.exports,uS=qN,KN={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},XN={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},dS={};dS[uS.ForwardRef]=KN;dS[uS.Memo]=XN;var ZN=!0;function zu(e,t,n){var r="";return n.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(r+=s+" ")}),r}var fg=function(t,n,r){var s=t.key+"-"+n.name;(r===!1||ZN===!1)&&t.registered[s]===void 0&&(t.registered[s]=n.styles)},Yu=function(t,n,r){fg(t,n,r);var s=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+s:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function QN(e){for(var t=0,n,r=0,s=e.length;s>=4;++r,s-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var JN={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},eF=/[A-Z]|^ms/g,tF=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fS=function(t){return t.charCodeAt(1)===45},gy=function(t){return t!=null&&typeof t!="boolean"},Ud=oS(function(e){return fS(e)?e:e.replace(eF,"-$&").toLowerCase()}),py=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(tF,function(r,s,i){return jr={name:s,styles:i,next:jr},s})}return JN[t]!==1&&!fS(t)&&typeof n=="number"&&n!==0?n+"px":n};function Za(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return jr={name:s.name,styles:s.styles,next:jr},s.name;var i=n;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)jr={name:o.name,styles:o.styles,next:jr},o=o.next;var a=i.styles+";";return a}return nF(e,t,n)}case"function":{if(e!==void 0){var l=jr,c=n(e);return jr=l,Za(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function nF(e,t,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=Za(e,t,n[s])+";";else for(var i in n){var o=n[i];if(typeof o!="object"){var a=o;t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":gy(a)&&(r+=Ud(i)+":"+py(i,a)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var l=0;l<o.length;l++)gy(o[l])&&(r+=Ud(i)+":"+py(i,o[l])+";");else{var c=Za(e,t,o);switch(i){case"animation":case"animationName":{r+=Ud(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var vy=/label:\s*([^\s;{]+)\s*(;|$)/g,jr;function vo(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,s="";jr=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,s+=Za(n,t,i);else{var o=i;s+=o[0]}for(var a=1;a<e.length;a++)if(s+=Za(n,t,e[a]),r){var l=i;s+=l[a]}vy.lastIndex=0;for(var c="",u;(u=vy.exec(s))!==null;)c+="-"+u[1];var d=QN(s)+c;return{name:d,styles:s,next:jr}}var rF=function(t){return t()},sF=$f.useInsertionEffect?$f.useInsertionEffect:!1,hS=sF||rF,hg=m.createContext(typeof HTMLElement<"u"?lg({key:"css"}):null),iF=hg.Provider,oF=function(){return m.useContext(hg)},mS=function(t){return m.forwardRef(function(n,r){var s=m.useContext(hg);return t(n,s,r)})},gS=m.createContext({}),mg={}.hasOwnProperty,ah="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",aF=function(t,n){var r={};for(var s in n)mg.call(n,s)&&(r[s]=n[s]);return r[ah]=t,r},lF=function(t){var n=t.cache,r=t.serialized,s=t.isStringTag;return fg(n,r,s),hS(function(){return Yu(n,r,s)}),null},cF=mS(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var s=e[ah],i=[r],o="";typeof e.className=="string"?o=zu(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var a=vo(i,void 0,m.useContext(gS));o+=t.key+"-"+a.name;var l={};for(var c in e)mg.call(e,c)&&c!=="css"&&c!==ah&&(l[c]=e[c]);return l.className=o,n&&(l.ref=n),m.createElement(m.Fragment,null,m.createElement(lF,{cache:t,serialized:a,isStringTag:typeof s=="string"}),m.createElement(s,l))}),uF=cF,yy=function(t,n){var r=arguments;if(n==null||!mg.call(n,"css"))return m.createElement.apply(void 0,r);var s=r.length,i=new Array(s);i[0]=uF,i[1]=aF(t,n);for(var o=2;o<s;o++)i[o]=r[o];return m.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(yy||(yy={}));function se(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return vo(t)}function dF(){var e=se.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function by(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function xy(e,t,n){var r=[],s=zu(e,r,n);return r.length<2?n:s+t(r)}var fF=function(t){var n=lg(t);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var r=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=vo(c,n.registered,void 0);return Yu(n,d,!1),n.key+"-"+d.name},s=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=vo(c,n.registered),h="animation-"+d.name;return by(n,{name:d.name,styles:"@keyframes "+h+"{"+d.styles+"}"}),h},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=vo(c,n.registered);by(n,d)},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return xy(n.registered,r,hF(c))};return{css:r,cx:o,injectGlobal:i,keyframes:s,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:zu.bind(null,n.registered),merge:xy.bind(null,n.registered,r)}},hF=function e(t){for(var n="",r=0;r<t.length;r++){var s=t[r];if(s!=null){var i=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))i=e(s);else{i="";for(var o in s)s[o]&&o&&(i&&(i+=" "),i+=o)}break}default:i=s}i&&(n&&(n+=" "),n+=i)}}return n},mF=fF({key:"css"}),gF=mF.cx,pF=e=>typeof e<"u"&&e!==null&&["name","styles"].every(t=>typeof e[t]<"u"),Dn=()=>{const e=oF();return m.useCallback((...n)=>{if(e===null)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return gF(...n.map(r=>pF(r)?(Yu(e,r,!1),`${e.key}-${r.name}`):r))},[e])},pS={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};function gg(e,t){var n=0,r,s;t=t||{};function i(){var o=r,a=arguments.length,l,c;e:for(;o;){if(o.args.length!==arguments.length){o=o.next;continue}for(c=0;c<a;c++)if(o.args[c]!==arguments[c]){o=o.next;continue e}return o!==r&&(o===s&&(s=o.prev),o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=r,o.prev=null,r.prev=o,r=o),o.val}for(l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return o={args:l,val:e.apply(null,l)},r?(r.prev=o,o.next=r):s=o,n===t.maxSize?(s=s.prev,s.next=null):n++,r=o,o.val}return i.clear=function(){r=null,s=null,n=0},i}var vF={grad:.9,turn:360,rad:360/(2*Math.PI)},es=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},qt=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Zn=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},vS=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},wy=function(e){return{r:Zn(e.r,0,255),g:Zn(e.g,0,255),b:Zn(e.b,0,255),a:Zn(e.a)}},Gd=function(e){return{r:qt(e.r),g:qt(e.g),b:qt(e.b),a:qt(e.a,3)}},yF=/^#([0-9a-f]{3,8})$/i,ac=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},yS=function(e){var t=e.r,n=e.g,r=e.b,s=e.a,i=Math.max(t,n,r),o=i-Math.min(t,n,r),a=o?i===t?(n-r)/o:i===n?2+(r-t)/o:4+(t-n)/o:0;return{h:60*(a<0?a+6:a),s:i?o/i*100:0,v:i/255*100,a:s}},bS=function(e){var t=e.h,n=e.s,r=e.v,s=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),o=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,a,o,o,l,r][c],g:255*[l,r,r,a,o,o][c],b:255*[o,o,l,r,r,a][c],a:s}},Sy=function(e){return{h:vS(e.h),s:Zn(e.s,0,100),l:Zn(e.l,0,100),a:Zn(e.a)}},_y=function(e){return{h:qt(e.h),s:qt(e.s),l:qt(e.l),a:qt(e.a,3)}},Cy=function(e){return bS((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},Aa=function(e){return{h:(t=yS(e)).h,s:(s=(200-(n=t.s))*(r=t.v)/100)>0&&s<200?n*r/100/(s<=100?s:200-s)*100:0,l:s/2,a:t.a};var t,n,r,s},bF=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,xF=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,wF=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,SF=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,lh={string:[[function(e){var t=yF.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?qt(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?qt(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=wF.exec(e)||SF.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:wy({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=bF.exec(e)||xF.exec(e);if(!t)return null;var n,r,s=Sy({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(vF[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return Cy(s)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,s=e.a,i=s===void 0?1:s;return es(t)&&es(n)&&es(r)?wy({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,s=e.a,i=s===void 0?1:s;if(!es(t)||!es(n)||!es(r))return null;var o=Sy({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Cy(o)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,s=e.a,i=s===void 0?1:s;if(!es(t)||!es(n)||!es(r))return null;var o=function(a){return{h:vS(a.h),s:Zn(a.s,0,100),v:Zn(a.v,0,100),a:Zn(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return bS(o)},"hsv"]]},ky=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},_F=function(e){return typeof e=="string"?ky(e.trim(),lh.string):typeof e=="object"&&e!==null?ky(e,lh.object):[null,void 0]},qd=function(e,t){var n=Aa(e);return{h:n.h,s:Zn(n.s+100*t,0,100),l:n.l,a:n.a}},Kd=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Ty=function(e,t){var n=Aa(e);return{h:n.h,s:n.s,l:Zn(n.l+100*t,0,100),a:n.a}},ch=function(){function e(t){this.parsed=_F(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return this.parsed!==null},e.prototype.brightness=function(){return qt(Kd(this.rgba),2)},e.prototype.isDark=function(){return Kd(this.rgba)<.5},e.prototype.isLight=function(){return Kd(this.rgba)>=.5},e.prototype.toHex=function(){return t=Gd(this.rgba),n=t.r,r=t.g,s=t.b,o=(i=t.a)<1?ac(qt(255*i)):"","#"+ac(n)+ac(r)+ac(s)+o;var t,n,r,s,i,o},e.prototype.toRgb=function(){return Gd(this.rgba)},e.prototype.toRgbString=function(){return t=Gd(this.rgba),n=t.r,r=t.g,s=t.b,(i=t.a)<1?"rgba("+n+", "+r+", "+s+", "+i+")":"rgb("+n+", "+r+", "+s+")";var t,n,r,s,i},e.prototype.toHsl=function(){return _y(Aa(this.rgba))},e.prototype.toHslString=function(){return t=_y(Aa(this.rgba)),n=t.h,r=t.s,s=t.l,(i=t.a)<1?"hsla("+n+", "+r+"%, "+s+"%, "+i+")":"hsl("+n+", "+r+"%, "+s+"%)";var t,n,r,s,i},e.prototype.toHsv=function(){return t=yS(this.rgba),{h:qt(t.h),s:qt(t.s),v:qt(t.v),a:qt(t.a,3)};var t},e.prototype.invert=function(){return pt({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),pt(qd(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),pt(qd(this.rgba,-t))},e.prototype.grayscale=function(){return pt(qd(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),pt(Ty(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),pt(Ty(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?pt({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):qt(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=Aa(this.rgba);return typeof t=="number"?pt({h:t,s:n.s,l:n.l,a:n.a}):qt(n.h)},e.prototype.isEqual=function(t){return this.toHex()===pt(t).toHex()},e}(),pt=function(e){return e instanceof ch?e:new ch(e)},My=[],xS=function(e){e.forEach(function(t){My.indexOf(t)<0&&(t(ch,lh),My.push(t))})};function wS(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var s in n)r[n[s]]=s;var i={};e.prototype.toName=function(o){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,l,c=r[this.toHex()];if(c)return c;if(o!=null&&o.closest){var u=this.toRgb(),d=1/0,h="black";if(!i.length)for(var g in n)i[g]=new e(n[g]).toRgb();for(var p in n){var v=(a=u,l=i[p],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));v<d&&(d=v,h=p)}return h}},t.string.push([function(o){var a=o.toLowerCase(),l=a==="transparent"?"#0000":n[a];return l?new e(l).toRgb():null},"name"])}var Xd;xS([wS]);function CF(){if(!(typeof document>"u")){if(!Xd){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),Xd=e}return Xd}}function kF(e){return typeof e!="string"?!1:pt(e).isValid()}function TF(e){if(typeof e!="string")return"";if(kF(e))return e;if(!e.includes("var(")||typeof document>"u")return"";const t=CF();if(!t)return"";t.style.background=e;const n=window==null?void 0:window.getComputedStyle(t).background;return t.style.background="",n||""}var MF=gg(TF);function EF(e){const t=MF(e);return pt(t).isLight()?"#000000":"#ffffff"}function OF(e){return EF(e)==="#000000"?"dark":"light"}var Ey=new RegExp(/-left/g),Oy=new RegExp(/-right/g),Dy=new RegExp(/Left/g),Py=new RegExp(/Right/g);function DF(e){return e==="left"?"right":e==="right"?"left":Ey.test(e)?e.replace(Ey,"-right"):Oy.test(e)?e.replace(Oy,"-left"):Dy.test(e)?e.replace(Dy,"Right"):Py.test(e)?e.replace(Py,"Left"):e}var PF=(e={})=>Object.fromEntries(Object.entries(e).map(([t,n])=>[DF(t),n]));function Xt(e={},t){return()=>t?bn()?se(t,"",""):se(e,"",""):bn()?se(PF(e),"",""):se(e,"","")}Xt.watch=()=>bn();var AF={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function gr(e){var t;return(t=AF[e])!==null&&t!==void 0?t:""}var RF={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"},jF=e=>`@media (min-width: ${RF[e]})`,_c="#fff",Or={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},IF={yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},Dr={accent:"var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",accentDarker10:"var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",accentDarker20:"var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6))",accentInverted:`var(--wp-components-color-accent-inverted, ${_c})`,background:`var(--wp-components-color-background, ${_c})`,foreground:`var(--wp-components-color-foreground, ${Or[900]})`,foregroundInverted:`var(--wp-components-color-foreground-inverted, ${_c})`,gray:{900:`var(--wp-components-color-foreground, ${Or[900]})`,800:`var(--wp-components-color-gray-800, ${Or[800]})`,700:`var(--wp-components-color-gray-700, ${Or[700]})`,600:`var(--wp-components-color-gray-600, ${Or[600]})`,400:`var(--wp-components-color-gray-400, ${Or[400]})`,300:`var(--wp-components-color-gray-300, ${Or[300]})`,200:`var(--wp-components-color-gray-200, ${Or[200]})`,100:`var(--wp-components-color-gray-100, ${Or[100]})`}},NF={background:Dr.background,backgroundDisabled:Dr.gray[100],border:Dr.gray[600],borderHover:Dr.gray[700],borderFocus:Dr.accent,borderDisabled:Dr.gray[400],textDisabled:Dr.gray[600],darkGrayPlaceholder:`color-mix(in srgb, ${Dr.foreground}, transparent 38%)`,lightGrayPlaceholder:`color-mix(in srgb, ${Dr.background}, transparent 35%)`},Z=Object.freeze({gray:Or,white:_c,alert:IF,theme:Dr,ui:NF}),ua="36px",FF={controlPaddingX:12,controlPaddingXSmall:8,controlPaddingXLarge:12*1.3334,controlBoxShadowFocus:`0 0 0 0.5px ${Z.theme.accent}`,controlHeight:ua,controlHeightXSmall:`calc( ${ua} * 0.6 )`,controlHeightSmall:`calc( ${ua} * 0.8 )`,controlHeightLarge:`calc( ${ua} * 1.2 )`,controlHeightXLarge:`calc( ${ua} * 1.4 )`},ae=Object.assign({},FF,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusXSmall:"1px",radiusSmall:"2px",radiusMedium:"4px",radiusLarge:"8px",radiusFull:"9999px",radiusRound:"50%",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.4",fontWeight:"normal",fontWeightMedium:"499",fontWeightHeading:"600",gridBase:"4px",elevationXSmall:"0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01)",elevationSmall:"0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02)",elevationMedium:"0 2px 3px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 0.04), 0 12px 12px rgba(0, 0, 0, 0.03), 0 16px 16px rgba(0, 0, 0, 0.02)",elevationLarge:"0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02)",surfaceBackgroundColor:Z.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:Z.white,surfaceColor:Z.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"}),SS=se("font-size:11px;font-weight:",ae.fontWeightMedium,";line-height:1.4;text-transform:uppercase;",""),Hu=m.createContext({});Hu.displayName="ComponentsContext";var _S=()=>m.useContext(Hu);function LF({value:e}){const t=_S(),n=m.useRef(e);return mN(()=>{J1(n.current,e)&&n.current!==e&&globalThis.SCRIPT_DEBUG===!0&&nr(`Please memoize your context: ${JSON.stringify(e)}`)},[e]),m.useMemo(()=>iN(t??{},e??{},{isMergeableObject:qx}),[t,e])}var $F=({children:e,value:t})=>{const n=LF({value:t});return f.jsx(Hu.Provider,{value:n,children:e})},CS=m.memo($F),VF="data-wp-component",WF="data-wp-c16t",oo="__contextSystemKey__";function BF(e){return`components-${Kx(e)}`}var kS=gg(BF);function jt(e,t){return MS(e,t,{forwardsRef:!0})}function TS(e,t){return MS(e,t)}function MS(e,t,n){const r=n!=null&&n.forwardsRef?m.forwardRef(e):e;typeof t>"u"&&globalThis.SCRIPT_DEBUG===!0&&nr("contextConnect: Please provide a namespace");let s=r[oo]||[t];return Array.isArray(t)&&(s=[...s,...t]),typeof t=="string"&&(s=[...s,t]),Object.assign(r,{[oo]:[...new Set(s)],displayName:t,selector:`.${kS(t)}`})}function Ay(e){if(!e)return[];let t=[];return e[oo]&&(t=e[oo]),e.type&&e.type[oo]&&(t=e.type[oo]),t}function ES(e,t){return e?typeof t=="string"?Ay(e).includes(t):Array.isArray(t)?t.some(n=>Ay(e).includes(n)):!1:!1}function zF(e){return{[VF]:e}}function YF(){return{[WF]:!0}}function Mt(e,t){const n=_S();typeof t>"u"&&globalThis.SCRIPT_DEBUG===!0&&nr("useContextSystem: Please provide a namespace");const r=(n==null?void 0:n[t])||{},s={...YF(),...zF(t)},{_overrides:i,...o}=r,a=Object.entries(o).length?Object.assign({},o,e):e,c=Dn()(kS(t),e.className),u=typeof a.renderChildren=="function"?a.renderChildren(a):a.children;for(const d in a)s[d]=a[d];for(const d in i)s[d]=i[d];return u!==void 0&&(s.children=u),s.className=c,s}var HF={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"},UF=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,GF=oS(function(e){return UF.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),qF=GF,KF=function(t){return t!=="theme"},Ry=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?qF:KF},jy=function(t,n,r){var s;if(n){var i=n.shouldForwardProp;s=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof s!="function"&&r&&(s=t.__emotion_forwardProp),s},XF=function(t){var n=t.cache,r=t.serialized,s=t.isStringTag;return fg(n,r,s),hS(function(){return Yu(n,r,s)}),null},oe=function e(t,n){var r=t.__emotion_real===t,s=r&&t.__emotion_base||t,i,o;n!==void 0&&(i=n.label,o=n.target);var a=jy(t,n,r),l=a||Ry(s),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var h=u[0];d.push(h[0]);for(var g=u.length,p=1;p<g;p++)d.push(u[p],h[p])}var v=mS(function(x,y,w){var b=c&&x.as||s,C="",_=[],S=x;if(x.theme==null){S={};for(var k in x)S[k]=x[k];S.theme=m.useContext(gS)}typeof x.className=="string"?C=zu(y.registered,_,x.className):x.className!=null&&(C=x.className+" ");var T=vo(d.concat(_),y.registered,S);C+=y.key+"-"+T.name,o!==void 0&&(C+=" "+o);var M=c&&a===void 0?Ry(b):l,E={};for(var O in x)c&&O==="as"||M(O)&&(E[O]=x[O]);return E.className=C,w&&(E.ref=w),m.createElement(m.Fragment,null,m.createElement(XF,{cache:y,serialized:T,isStringTag:typeof b=="string"}),m.createElement(b,E))});return v.displayName=i!==void 0?i:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=s,v.__emotion_styles=d,v.__emotion_forwardProp=a,Object.defineProperty(v,"toString",{value:function(){return"."+o}}),v.withComponent=function(x,y){var w=e(x,oh({},n,y,{shouldForwardProp:jy(v,y,!0)}));return w.apply(void 0,d)},v}},ZF=oe("div",{target:"e19lxcc00"})("");function QF({as:e,...t},n){return f.jsx(ZF,{as:e,ref:n,...t})}var JF=Object.assign(m.forwardRef(QF),{selector:".components-view"}),mn=JF;function eL(e,t){const{style:n,...r}=Mt(e,"VisuallyHidden");return f.jsx(mn,{ref:t,...r,style:{...HF,...n||{}}})}var tL=jt(eL,"VisuallyHidden"),yr=tL;const OS=m.createContext({});function nL(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const pg=m.createContext(null),DS=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function rL(e=!0){const t=m.useContext(pg);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=m.useId();m.useEffect(()=>{e&&s(i)},[e]);const o=m.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const vg=typeof window<"u",sL=vg?m.useLayoutEffect:m.useEffect,Wn=e=>e;let PS=Wn;function yg(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ao=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},fs=e=>e*1e3,hs=e=>e/1e3,iL={useManualTiming:!1};function oL(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,u=!1,d=!1)=>{const g=d&&r?t:n;return u&&i.add(c),g.has(c)||g.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,s&&(s=!1,l.process(c))}};return l}const lc=["read","resolveKeyframes","update","preRender","render","postRender"],aL=40;function AS(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=lc.reduce((y,w)=>(y[w]=oL(i),y),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:h}=o,g=()=>{const y=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(y-s.timestamp,aL),1),s.timestamp=y,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),h.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(g))},p=()=>{n=!0,r=!0,s.isProcessing||e(g)};return{schedule:lc.reduce((y,w)=>{const b=o[w];return y[w]=(C,_=!1,S=!1)=>(n||p(),b.schedule(C,_,S)),y},{}),cancel:y=>{for(let w=0;w<lc.length;w++)o[lc[w]].cancel(y)},state:s,steps:o}}const{schedule:ct,cancel:Ks,state:tn,steps:Zd}=AS(typeof requestAnimationFrame<"u"?requestAnimationFrame:Wn,!0),RS=m.createContext({strict:!1}),Iy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ro={};for(const e in Iy)Ro[e]={isEnabled:t=>Iy[e].some(n=>!!t[n])};function lL(e){for(const t in e)Ro[t]={...Ro[t],...e[t]}}const cL=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Hc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||cL.has(e)}let jS=e=>!Hc(e);function uL(e){e&&(jS=t=>t.startsWith("on")?!Hc(t):e(t))}try{uL(require("@emotion/is-prop-valid").default)}catch{}function dL(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(jS(s)||n===!0&&Hc(s)||!t&&!Hc(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function fL(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const Uu=m.createContext({});function Qa(e){return typeof e=="string"||Array.isArray(e)}function Gu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const bg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xg=["initial",...bg];function qu(e){return Gu(e.animate)||xg.some(t=>Qa(e[t]))}function IS(e){return!!(qu(e)||e.variants)}function hL(e,t){if(qu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Qa(n)?n:void 0,animate:Qa(r)?r:void 0}}return e.inherit!==!1?t:{}}function mL(e){const{initial:t,animate:n}=hL(e,m.useContext(Uu));return m.useMemo(()=>({initial:t,animate:n}),[Ny(t),Ny(n)])}function Ny(e){return Array.isArray(e)?e.join(" "):e}const gL=Symbol.for("motionComponentSymbol");function ao(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function pL(e,t,n){return m.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ao(n)&&(n.current=r))},[t])}const wg=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),vL="framerAppearId",NS="data-"+wg(vL),{schedule:Sg}=AS(queueMicrotask,!1),FS=m.createContext({});function yL(e,t,n,r,s){var i,o;const{visualElement:a}=m.useContext(Uu),l=m.useContext(RS),c=m.useContext(pg),u=m.useContext(DS).reducedMotion,d=m.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const h=d.current,g=m.useContext(FS);h&&!h.projection&&s&&(h.type==="html"||h.type==="svg")&&bL(d.current,n,s,g);const p=m.useRef(!1);m.useInsertionEffect(()=>{h&&p.current&&h.update(n,c)});const v=n[NS],x=m.useRef(!!v&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,v))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,v)));return sL(()=>{h&&(p.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Sg.render(h.render),x.current&&h.animationState&&h.animationState.animateChanges())}),m.useEffect(()=>{h&&(!x.current&&h.animationState&&h.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,v)}),x.current=!1))}),h}function bL(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:LS(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&ao(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function LS(e){if(e)return e.options.allowProjection!==!1?e.projection:LS(e.parent)}function xL({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,o;e&&lL(e);function a(c,u){let d;const h={...m.useContext(DS),...c,layoutId:wL(c)},{isStatic:g}=h,p=mL(c),v=r(c,g);if(!g&&vg){SL();const x=_L(h);d=x.MeasureLayout,p.visualElement=yL(s,v,h,t,x.ProjectionNode)}return f.jsxs(Uu.Provider,{value:p,children:[d&&p.visualElement?f.jsx(d,{visualElement:p.visualElement,...h}):null,n(s,c,pL(v,p.visualElement,u),v,g,p.visualElement)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${(o=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&o!==void 0?o:""})`}`;const l=m.forwardRef(a);return l[gL]=s,l}function wL({layoutId:e}){const t=m.useContext(OS).id;return t&&e!==void 0?t+"-"+e:e}function SL(e,t){m.useContext(RS).strict}function _L(e){const{drag:t,layout:n}=Ro;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const CL=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function _g(e){return typeof e!="string"||e.includes("-")?!1:!!(CL.indexOf(e)>-1||/[A-Z]/u.test(e))}function Fy(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Cg(e,t,n,r){if(typeof t=="function"){const[s,i]=Fy(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Fy(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const uh=e=>Array.isArray(e),kL=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),TL=e=>uh(e)?e[e.length-1]||0:e,cn=e=>!!(e&&e.getVelocity);function Cc(e){const t=cn(e)?e.get():e;return kL(t)?t.toValue():t}function ML({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const o={latestValues:EL(r,s,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const $S=e=>(t,n)=>{const r=m.useContext(Uu),s=m.useContext(pg),i=()=>ML(e,t,r,s);return n?i():nL(i)};function EL(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=Cc(i[h]);let{initial:o,animate:a}=e;const l=qu(e),c=IS(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!Gu(d)){const h=Array.isArray(d)?d:[d];for(let g=0;g<h.length;g++){const p=Cg(e,h[g]);if(p){const{transitionEnd:v,transition:x,...y}=p;for(const w in y){let b=y[w];if(Array.isArray(b)){const C=u?b.length-1:0;b=b[C]}b!==null&&(s[w]=b)}for(const w in v)s[w]=v[w]}}}return s}const Qo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vi=new Set(Qo),VS=e=>t=>typeof t=="string"&&t.startsWith(e),WS=VS("--"),OL=VS("var(--"),kg=e=>OL(e)?DL.test(e.split("/*")[0].trim()):!1,DL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,BS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,bs=(e,t,n)=>n>t?t:n<e?e:n,Jo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ja={...Jo,transform:e=>bs(0,1,e)},cc={...Jo,default:1},jl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),js=jl("deg"),Wr=jl("%"),Ce=jl("px"),PL=jl("vh"),AL=jl("vw"),Ly={...Wr,parse:e=>Wr.parse(e)/100,transform:e=>Wr.transform(e*100)},RL={borderWidth:Ce,borderTopWidth:Ce,borderRightWidth:Ce,borderBottomWidth:Ce,borderLeftWidth:Ce,borderRadius:Ce,radius:Ce,borderTopLeftRadius:Ce,borderTopRightRadius:Ce,borderBottomRightRadius:Ce,borderBottomLeftRadius:Ce,width:Ce,maxWidth:Ce,height:Ce,maxHeight:Ce,top:Ce,right:Ce,bottom:Ce,left:Ce,padding:Ce,paddingTop:Ce,paddingRight:Ce,paddingBottom:Ce,paddingLeft:Ce,margin:Ce,marginTop:Ce,marginRight:Ce,marginBottom:Ce,marginLeft:Ce,backgroundPositionX:Ce,backgroundPositionY:Ce},jL={rotate:js,rotateX:js,rotateY:js,rotateZ:js,scale:cc,scaleX:cc,scaleY:cc,scaleZ:cc,skew:js,skewX:js,skewY:js,distance:Ce,translateX:Ce,translateY:Ce,translateZ:Ce,x:Ce,y:Ce,z:Ce,perspective:Ce,transformPerspective:Ce,opacity:Ja,originX:Ly,originY:Ly,originZ:Ce},$y={...Jo,transform:Math.round},Tg={...RL,...jL,zIndex:$y,size:Ce,fillOpacity:Ja,strokeOpacity:Ja,numOctaves:$y},IL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},NL=Qo.length;function FL(e,t,n){let r="",s=!0;for(let i=0;i<NL;i++){const o=Qo[i],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=BS(a,Tg[o]);if(!l){s=!1;const u=IL[o]||o;r+=`${u}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Mg(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(Vi.has(l)){o=!0;continue}else if(WS(l)){s[l]=c;continue}else{const u=BS(c,Tg[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(o||n?r.transform=FL(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}const LL={offset:"stroke-dashoffset",array:"stroke-dasharray"},$L={offset:"strokeDashoffset",array:"strokeDasharray"};function VL(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?LL:$L;e[i.offset]=Ce.transform(-r);const o=Ce.transform(t),a=Ce.transform(n);e[i.array]=`${o} ${a}`}function Vy(e,t,n){return typeof e=="string"?e:Ce.transform(t+n*e)}function WL(e,t,n){const r=Vy(t,e.x,e.width),s=Vy(n,e.y,e.height);return`${r} ${s}`}function Eg(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},u,d){if(Mg(e,c,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:p}=e;h.transform&&(p&&(g.transform=h.transform),delete h.transform),p&&(s!==void 0||i!==void 0||g.transform)&&(g.transformOrigin=WL(p,s!==void 0?s:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),o!==void 0&&VL(h,o,a,l,!1)}const Og=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),zS=()=>({...Og(),attrs:{}}),Dg=e=>typeof e=="string"&&e.toLowerCase()==="svg";function YS(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const HS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function US(e,t,n,r){YS(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(HS.has(s)?s:wg(s),t.attrs[s])}const Uc={};function BL(e){Object.assign(Uc,e)}function GS(e,{layout:t,layoutId:n}){return Vi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Uc[e]||e==="opacity")}function Pg(e,t,n){var r;const{style:s}=e,i={};for(const o in s)(cn(s[o])||t.style&&cn(t.style[o])||GS(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[o]=s[o]);return i}function qS(e,t,n){const r=Pg(e,t,n);for(const s in e)if(cn(e[s])||cn(t[s])){const i=Qo.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}function zL(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Wy=["x","y","width","height","cx","cy","r"],YL={useVisualState:$S({scrapeMotionValuesFromProps:qS,createRenderState:zS,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in s)if(Vi.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a<Wy.length;a++){const l=Wy[a];e[l]!==t[l]&&(o=!0)}o&&ct.read(()=>{zL(n,r),ct.render(()=>{Eg(r,s,Dg(n.tagName),e.transformTemplate),US(n,r)})})}})},HL={useVisualState:$S({scrapeMotionValuesFromProps:Pg,createRenderState:Og})};function KS(e,t,n){for(const r in t)!cn(t[r])&&!GS(r,n)&&(e[r]=t[r])}function UL({transformTemplate:e},t){return m.useMemo(()=>{const n=Og();return Mg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function GL(e,t){const n=e.style||{},r={};return KS(r,n,e),Object.assign(r,UL(e,t)),r}function qL(e,t){const n={},r=GL(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function KL(e,t,n,r){const s=m.useMemo(()=>{const i=zS();return Eg(i,t,Dg(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};KS(i,e.style,e),s.style={...i,...s.style}}return s}function XL(e=!1){return(n,r,s,{latestValues:i},o)=>{const l=(_g(n)?KL:qL)(r,i,o,n),c=dL(r,typeof n=="string",e),u=n!==m.Fragment?{...c,...l,ref:s}:{},{children:d}=r,h=m.useMemo(()=>cn(d)?d.get():d,[d]);return m.createElement(n,{...u,children:h})}}function ZL(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={..._g(r)?YL:HL,preloadedFeatures:e,useRender:XL(s),createVisualElement:t,Component:r};return xL(o)}}function XS(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Ku(e,t,n){const r=e.getProps();return Cg(r,t,n!==void 0?n:r.custom,e)}const QL=yg(()=>window.ScrollTimeline!==void 0);class JL{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(s=>{if(QL()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class e$ extends JL{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Ag(e,t){return e?e[t]||e.default||e:void 0}const dh=2e4;function ZS(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<dh;)t+=n,r=e.next(t);return t>=dh?1/0:t}function Rg(e){return typeof e=="function"}function By(e,t){e.timeline=t,e.onfinish=null}const jg=e=>Array.isArray(e)&&typeof e[0]=="number",t$={linearEasing:void 0};function n$(e,t){const n=yg(e);return()=>{var r;return(r=t$[t])!==null&&r!==void 0?r:n()}}const Gc=n$(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),QS=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=e(Ao(0,s-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function JS(e){return!!(typeof e=="function"&&Gc()||!e||typeof e=="string"&&(e in fh||Gc())||jg(e)||Array.isArray(e)&&e.every(JS))}const ka=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,fh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ka([0,.65,.55,1]),circOut:ka([.55,0,1,.45]),backIn:ka([.31,.01,.66,-.59]),backOut:ka([.33,1.53,.69,.99])};function e_(e,t){if(e)return typeof e=="function"&&Gc()?QS(e,t):jg(e)?ka(e):Array.isArray(e)?e.map(n=>e_(n,t)||fh.easeOut):fh[e]}const lr={x:!1,y:!1};function t_(){return lr.x||lr.y}function r$(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function n_(e,t){const n=r$(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function zy(e){return t=>{t.pointerType==="touch"||t_()||e(t)}}function s$(e,t,n={}){const[r,s,i]=n_(e,n),o=zy(a=>{const{target:l}=a,c=t(a);if(typeof c!="function"||!l)return;const u=zy(d=>{c(d),l.removeEventListener("pointerleave",u)});l.addEventListener("pointerleave",u,s)});return r.forEach(a=>{a.addEventListener("pointerenter",o,s)}),i}const r_=(e,t)=>t?e===t?!0:r_(e,t.parentElement):!1,Ig=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,i$=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function o$(e){return i$.has(e.tagName)||e.tabIndex!==-1}const Ta=new WeakSet;function Yy(e){return t=>{t.key==="Enter"&&e(t)}}function Qd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const a$=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Yy(()=>{if(Ta.has(n))return;Qd(n,"down");const s=Yy(()=>{Qd(n,"up")}),i=()=>Qd(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Hy(e){return Ig(e)&&!t_()}function l$(e,t,n={}){const[r,s,i]=n_(e,n),o=a=>{const l=a.currentTarget;if(!Hy(a)||Ta.has(l))return;Ta.add(l);const c=t(a),u=(g,p)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),!(!Hy(g)||!Ta.has(l))&&(Ta.delete(l),typeof c=="function"&&c(g,{success:p}))},d=g=>{u(g,n.useGlobalTarget||r_(l,g.target))},h=g=>{u(g,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",h,s)};return r.forEach(a=>{!o$(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),a.addEventListener("focus",c=>a$(c,s),s)}),i}function c$(e){return e==="x"||e==="y"?lr[e]?null:(lr[e]=!0,()=>{lr[e]=!1}):lr.x||lr.y?null:(lr.x=lr.y=!0,()=>{lr.x=lr.y=!1})}const s_=new Set(["width","height","top","left","right","bottom",...Qo]);let kc;function u$(){kc=void 0}const Br={now:()=>(kc===void 0&&Br.set(tn.isProcessing||iL.useManualTiming?tn.timestamp:performance.now()),kc),set:e=>{kc=e,queueMicrotask(u$)}};function Ng(e,t){e.indexOf(t)===-1&&e.push(t)}function Fg(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Lg{constructor(){this.subscriptions=[]}add(t){return Ng(this.subscriptions,t),()=>Fg(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function i_(e,t){return t?e*(1e3/t):0}const Uy=30,d$=e=>!isNaN(parseFloat(e));class f${constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=Br.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Br.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=d$(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Lg);const r=this.events[t].add(n);return t==="change"?()=>{r(),ct.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Br.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Uy)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Uy);return i_(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function el(e,t){return new f$(e,t)}function h$(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,el(n))}function m$(e,t){const n=Ku(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=TL(i[o]);h$(e,o,a)}}function g$(e){return!!(cn(e)&&e.add)}function hh(e,t){const n=e.getValue("willChange");if(g$(n))return n.add(t)}function o_(e){return e.props[NS]}const a_=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,p$=1e-7,v$=12;function y$(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=a_(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>p$&&++a<v$);return o}function Il(e,t,n,r){if(e===t&&n===r)return Wn;const s=i=>y$(i,0,1,e,n);return i=>i===0||i===1?i:a_(s(i),t,r)}const l_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,c_=e=>t=>1-e(1-t),u_=Il(.33,1.53,.69,.99),$g=c_(u_),d_=l_($g),f_=e=>(e*=2)<1?.5*$g(e):.5*(2-Math.pow(2,-10*(e-1))),Vg=e=>1-Math.sin(Math.acos(e)),h_=c_(Vg),m_=l_(Vg),g_=e=>/^0[^.\s]+$/u.test(e);function b$(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||g_(e):!0}const Ra=e=>Math.round(e*1e5)/1e5,Wg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function x$(e){return e==null}const w$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Bg=(e,t)=>n=>!!(typeof n=="string"&&w$.test(n)&&n.startsWith(e)||t&&!x$(n)&&Object.prototype.hasOwnProperty.call(n,t)),p_=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Wg);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},S$=e=>bs(0,255,e),Jd={...Jo,transform:e=>Math.round(S$(e))},_i={test:Bg("rgb","red"),parse:p_("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Jd.transform(e)+", "+Jd.transform(t)+", "+Jd.transform(n)+", "+Ra(Ja.transform(r))+")"};function _$(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const mh={test:Bg("#"),parse:_$,transform:_i.transform},lo={test:Bg("hsl","hue"),parse:p_("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Wr.transform(Ra(t))+", "+Wr.transform(Ra(n))+", "+Ra(Ja.transform(r))+")"},ln={test:e=>_i.test(e)||mh.test(e)||lo.test(e),parse:e=>_i.test(e)?_i.parse(e):lo.test(e)?lo.parse(e):mh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?_i.transform(e):lo.transform(e)},C$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function k$(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Wg))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(C$))===null||n===void 0?void 0:n.length)||0)>0}const v_="number",y_="color",T$="var",M$="var(",Gy="${}",E$=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function tl(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(E$,l=>(ln.test(l)?(r.color.push(i),s.push(y_),n.push(ln.parse(l))):l.startsWith(M$)?(r.var.push(i),s.push(T$),n.push(l)):(r.number.push(i),s.push(v_),n.push(parseFloat(l))),++i,Gy)).split(Gy);return{values:n,split:a,indexes:r,types:s}}function b_(e){return tl(e).values}function x_(e){const{split:t,types:n}=tl(e),r=t.length;return s=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],s[o]!==void 0){const a=n[o];a===v_?i+=Ra(s[o]):a===y_?i+=ln.transform(s[o]):i+=s[o]}return i}}const O$=e=>typeof e=="number"?0:e;function D$(e){const t=b_(e);return x_(e)(t.map(O$))}const Xs={test:k$,parse:b_,createTransformer:x_,getAnimatableNone:D$},P$=new Set(["brightness","contrast","saturate","opacity"]);function A$(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Wg)||[];if(!r)return e;const s=n.replace(r,"");let i=P$.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const R$=/\b([a-z-]*)\(.*?\)/gu,gh={...Xs,getAnimatableNone:e=>{const t=e.match(R$);return t?t.map(A$).join(" "):e}},j$={...Tg,color:ln,backgroundColor:ln,outlineColor:ln,fill:ln,stroke:ln,borderColor:ln,borderTopColor:ln,borderRightColor:ln,borderBottomColor:ln,borderLeftColor:ln,filter:gh,WebkitFilter:gh},zg=e=>j$[e];function w_(e,t){let n=zg(e);return n!==gh&&(n=Xs),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const I$=new Set(["auto","none","0"]);function N$(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!I$.has(i)&&tl(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=w_(n,s)}const qy=e=>e===Jo||e===Ce,Ky=(e,t)=>parseFloat(e.split(", ")[t]),Xy=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return Ky(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Ky(i[1],e):0}},F$=new Set(["x","y","z"]),L$=Qo.filter(e=>!F$.has(e));function $$(e){const t=[];return L$.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const jo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Xy(4,13),y:Xy(5,14)};jo.translateX=jo.x;jo.translateY=jo.y;const Ei=new Set;let ph=!1,vh=!1;function S_(){if(vh){const e=Array.from(Ei).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=$$(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}vh=!1,ph=!1,Ei.forEach(e=>e.complete()),Ei.clear()}function __(){Ei.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(vh=!0)})}function V$(){__(),S_()}class Yg{constructor(t,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ei.add(this),ph||(ph=!0,ct.read(__),ct.resolveKeyframes(S_))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const o=s==null?void 0:s.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),s&&o===void 0&&s.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ei.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ei.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const C_=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),W$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function B$(e){const t=W$.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function k_(e,t,n=1){const[r,s]=B$(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return C_(o)?parseFloat(o):o}return kg(s)?k_(s,t,n+1):s}const T_=e=>t=>t.test(e),z$={test:e=>e==="auto",parse:e=>e},M_=[Jo,Ce,Wr,js,AL,PL,z$],Zy=e=>M_.find(T_(e));class E_ extends Yg{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),kg(c))){const u=k_(c,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!s_.has(r)||t.length!==2)return;const[s,i]=t,o=Zy(s),a=Zy(i);if(o!==a)if(qy(o)&&qy(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)b$(t[s])&&r.push(s);r.length&&N$(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=jo[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,a=s[o];s[o]=jo[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const Qy=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Xs.test(e)||e==="0")&&!e.startsWith("url("));function Y$(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function H$(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=Qy(s,t),a=Qy(i,t);return!o||!a?!1:Y$(e)||(n==="spring"||Rg(n))&&r}const U$=e=>e!==null;function Xu(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(U$),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const G$=40;class O_{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Br.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>G$?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&V$(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Br.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!H$(t,r,s,i))if(o)this.options.duration=0;else{l&&l(Xu(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Ct=(e,t,n)=>e+(t-e)*n;function ef(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function q$({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=ef(l,a,e+1/3),i=ef(l,a,e),o=ef(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function qc(e,t){return n=>n>0?t:e}const tf=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},K$=[mh,_i,lo],X$=e=>K$.find(t=>t.test(e));function Jy(e){const t=X$(e);if(!t)return!1;let n=t.parse(e);return t===lo&&(n=q$(n)),n}const eb=(e,t)=>{const n=Jy(e),r=Jy(t);if(!n||!r)return qc(e,t);const s={...n};return i=>(s.red=tf(n.red,r.red,i),s.green=tf(n.green,r.green,i),s.blue=tf(n.blue,r.blue,i),s.alpha=Ct(n.alpha,r.alpha,i),_i.transform(s))},Z$=(e,t)=>n=>t(e(n)),Nl=(...e)=>e.reduce(Z$),yh=new Set(["none","hidden"]);function Q$(e,t){return yh.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function J$(e,t){return n=>Ct(e,t,n)}function Hg(e){return typeof e=="number"?J$:typeof e=="string"?kg(e)?qc:ln.test(e)?eb:nV:Array.isArray(e)?D_:typeof e=="object"?ln.test(e)?eb:eV:qc}function D_(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Hg(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function eV(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Hg(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function tV(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],a=e.indexes[o][s[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[i]=l,s[o]++}return r}const nV=(e,t)=>{const n=Xs.createTransformer(t),r=tl(e),s=tl(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?yh.has(e)&&!s.values.length||yh.has(t)&&!r.values.length?Q$(e,t):Nl(D_(tV(r,s),s.values),n):qc(e,t)};function P_(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ct(e,t,n):Hg(e)(e,t)}const rV=5;function A_(e,t,n){const r=Math.max(t-rV,0);return i_(n-e(r),t-r)}const Ot={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},nf=.001;function sV({duration:e=Ot.duration,bounce:t=Ot.bounce,velocity:n=Ot.velocity,mass:r=Ot.mass}){let s,i,o=1-t;o=bs(Ot.minDamping,Ot.maxDamping,o),e=bs(Ot.minDuration,Ot.maxDuration,hs(e)),o<1?(s=c=>{const u=c*o,d=u*e,h=u-n,g=bh(c,o),p=Math.exp(-d);return nf-h/g*p},i=c=>{const d=c*o*e,h=d*n+n,g=Math.pow(o,2)*Math.pow(c,2)*e,p=Math.exp(-d),v=bh(Math.pow(c,2),o);return(-s(c)+nf>0?-1:1)*((h-g)*p)/v}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-nf+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=oV(s,i,a);if(e=fs(e),isNaN(l))return{stiffness:Ot.stiffness,damping:Ot.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const iV=12;function oV(e,t,n){let r=n;for(let s=1;s<iV;s++)r=r-e(r)/t(r);return r}function bh(e,t){return e*Math.sqrt(1-t*t)}const aV=["duration","bounce"],lV=["stiffness","damping","mass"];function tb(e,t){return t.some(n=>e[n]!==void 0)}function cV(e){let t={velocity:Ot.velocity,stiffness:Ot.stiffness,damping:Ot.damping,mass:Ot.mass,isResolvedFromDuration:!1,...e};if(!tb(e,lV)&&tb(e,aV))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*bs(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:Ot.mass,stiffness:s,damping:i}}else{const n=sV(e);t={...t,...n,mass:Ot.mass},t.isResolvedFromDuration=!0}return t}function R_(e=Ot.visualDuration,t=Ot.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:g}=cV({...n,velocity:-hs(n.velocity||0)}),p=h||0,v=c/(2*Math.sqrt(l*u)),x=o-i,y=hs(Math.sqrt(l/u)),w=Math.abs(x)<5;r||(r=w?Ot.restSpeed.granular:Ot.restSpeed.default),s||(s=w?Ot.restDelta.granular:Ot.restDelta.default);let b;if(v<1){const _=bh(y,v);b=S=>{const k=Math.exp(-v*y*S);return o-k*((p+v*y*x)/_*Math.sin(_*S)+x*Math.cos(_*S))}}else if(v===1)b=_=>o-Math.exp(-y*_)*(x+(p+y*x)*_);else{const _=y*Math.sqrt(v*v-1);b=S=>{const k=Math.exp(-v*y*S),T=Math.min(_*S,300);return o-k*((p+v*y*x)*Math.sinh(T)+_*x*Math.cosh(T))/_}}const C={calculatedDuration:g&&d||null,next:_=>{const S=b(_);if(g)a.done=_>=d;else{let k=0;v<1&&(k=_===0?fs(p):A_(b,_,S));const T=Math.abs(k)<=r,M=Math.abs(o-S)<=s;a.done=T&&M}return a.value=a.done?o:S,a},toString:()=>{const _=Math.min(ZS(C),dh),S=QS(k=>C.next(_*k).value,_,30);return _+"ms "+S}};return C}function nb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},g=T=>a!==void 0&&T<a||l!==void 0&&T>l,p=T=>a===void 0?l:l===void 0||Math.abs(a-T)<Math.abs(l-T)?a:l;let v=n*t;const x=d+v,y=o===void 0?x:o(x);y!==x&&(v=y-d);const w=T=>-v*Math.exp(-T/r),b=T=>y+w(T),C=T=>{const M=w(T),E=b(T);h.done=Math.abs(M)<=c,h.value=h.done?y:E};let _,S;const k=T=>{g(h.value)&&(_=T,S=R_({keyframes:[h.value,p(h.value)],velocity:A_(b,T,h.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return k(0),{calculatedDuration:null,next:T=>{let M=!1;return!S&&_===void 0&&(M=!0,C(T),k(T)),_!==void 0&&T>=_?S.next(T-_):(!M&&C(T),h)}}}const uV=Il(.42,0,1,1),dV=Il(0,0,.58,1),j_=Il(.42,0,.58,1),fV=e=>Array.isArray(e)&&typeof e[0]!="number",hV={linear:Wn,easeIn:uV,easeInOut:j_,easeOut:dV,circIn:Vg,circInOut:m_,circOut:h_,backIn:$g,backInOut:d_,backOut:u_,anticipate:f_},rb=e=>{if(jg(e)){PS(e.length===4);const[t,n,r,s]=e;return Il(t,n,r,s)}else if(typeof e=="string")return hV[e];return e};function mV(e,t,n){const r=[],s=n||P_,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Wn:t;a=Nl(l,a)}r.push(a)}return r}function gV(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(PS(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=mV(t,r,s),l=a.length,c=u=>{if(o&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const h=Ao(e[d],e[d+1],u);return a[d](h)};return n?u=>c(bs(e[0],e[i-1],u)):c}function pV(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Ao(0,t,r);e.push(Ct(n,1,s))}}function vV(e){const t=[0];return pV(t,e.length-1),t}function yV(e,t){return e.map(n=>n*t)}function bV(e,t){return e.map(()=>t||j_).splice(0,e.length-1)}function Kc({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=fV(r)?r.map(rb):rb(r),i={done:!1,value:t[0]},o=yV(n&&n.length===t.length?n:vV(t),e),a=gV(o,t,{ease:Array.isArray(s)?s:bV(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const xV=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ct.update(t,!0),stop:()=>Ks(t),now:()=>tn.isProcessing?tn.timestamp:Br.now()}},wV={decay:nb,inertia:nb,tween:Kc,keyframes:Kc,spring:R_},SV=e=>e/100;class Ug extends O_{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,o=(s==null?void 0:s.KeyframeResolver)||Yg,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(i,a,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,a=Rg(n)?n:wV[n]||Kc;let l,c;a!==Kc&&typeof t[0]!="number"&&(l=Nl(SV,P_(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=ZS(u));const{calculatedDuration:d}=u,h=d+s,g=h*(r+1)-s;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:h,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:h,repeat:g,repeatType:p,repeatDelay:v,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-h*(this.speed>=0?1:-1),w=this.speed>=0?y<0:y>u;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let b=this.currentTime,C=i;if(g){const T=Math.min(this.currentTime,u)/d;let M=Math.floor(T),E=T%1;!E&&T>=1&&(E=1),E===1&&M--,M=Math.min(M,g+1),!!(M%2)&&(p==="reverse"?(E=1-E,v&&(E-=v/d)):p==="mirror"&&(C=o)),b=bs(0,1,E)*d}const _=w?{done:!1,value:l[0]}:C.next(b);a&&(_.value=a(_.value));let{done:S}=_;!w&&c!==null&&(S=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return k&&s!==void 0&&(_.value=Xu(l,this.options,s)),x&&x(_.value),k&&this.finish(),_}get duration(){const{resolved:t}=this;return t?hs(t.calculatedDuration):0}get time(){return hs(this.currentTime)}set time(t){t=fs(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=hs(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=xV,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const _V=new Set(["opacity","clipPath","filter","transform"]);function CV(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=e_(a,s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const kV=yg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Xc=10,TV=2e4;function MV(e){return Rg(e.type)||e.type==="spring"||!JS(e.ease)}function EV(e,t){const n=new Ug({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&i<TV;)r=n.sample(i),s.push(r.value),i+=Xc;return{times:void 0,keyframes:s,duration:i-Xc,ease:"linear"}}const I_={anticipate:f_,backInOut:d_,circInOut:m_};function OV(e){return e in I_}class sb extends O_{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:i}=this.options;this.resolver=new E_(i,(o,a)=>this.onKeyframesResolved(o,a),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:o,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&Gc()&&OV(i)&&(i=I_[i]),MV(this.options)){const{onComplete:d,onUpdate:h,motionValue:g,element:p,...v}=this.options,x=EV(t,v);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,s=x.times,i=x.ease,o="keyframes"}const u=CV(a.owner.current,l,t,{...this.options,duration:r,times:s,ease:i});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(By(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(Xu(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:s,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return hs(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return hs(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=fs(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Wn;const{animation:r}=n;By(r,t)}return Wn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:d,element:h,...g}=this.options,p=new Ug({...g,keyframes:r,duration:s,type:i,ease:o,times:a,isGenerator:!0}),v=fs(this.time);c.setWithVelocity(p.sample(v-Xc).value,p.sample(v).value,Xc)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return kV()&&r&&_V.has(r)&&!l&&!c&&!s&&i!=="mirror"&&o!==0&&a!=="inertia"}}const DV={type:"spring",stiffness:500,damping:25,restSpeed:10},PV=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),AV={type:"keyframes",duration:.8},RV={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jV=(e,{keyframes:t})=>t.length>2?AV:Vi.has(e)?e.startsWith("scale")?PV(t[1]):DV:RV;function IV({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Gg=(e,t,n,r={},s,i)=>o=>{const a=Ag(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-fs(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};IV(a)||(u={...u,...jV(e,u)}),u.duration&&(u.duration=fs(u.duration)),u.repeatDelay&&(u.repeatDelay=fs(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const h=Xu(u.keyframes,a);if(h!==void 0)return ct.update(()=>{u.onUpdate(h),u.onComplete()}),new e$([])}return!i&&sb.supports(u)?new sb(u):new Ug(u)};function NV({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function N_(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);const c=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const d in l){const h=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),g=l[d];if(g===void 0||u&&NV(u,d))continue;const p={delay:n,...Ag(o||{},d)};let v=!1;if(window.MotionHandoffAnimation){const y=o_(e);if(y){const w=window.MotionHandoffAnimation(y,d,ct);w!==null&&(p.startTime=w,v=!0)}}hh(e,d),h.start(Gg(d,h,g,e.shouldReduceMotion&&s_.has(d)?{type:!1}:p,e,v));const x=h.animation;x&&c.push(x)}return a&&Promise.all(c).then(()=>{ct.update(()=>{a&&m$(e,a)})}),c}function xh(e,t,n={}){var r;const s=Ku(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(N_(e,s,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=i;return FV(e,t,u+c,d,h,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,u]=l==="beforeChildren"?[o,a]:[a,o];return c().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function FV(e,t,n=0,r=0,s=1,i){const o=[],a=(e.variantChildren.size-1)*r,l=s===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(LV).forEach((c,u)=>{c.notify("AnimationStart",t),o.push(xh(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function LV(e,t){return e.sortNodePosition(t)}function $V(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>xh(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=xh(e,t,n);else{const s=typeof t=="function"?Ku(e,t,n.custom):t;r=Promise.all(N_(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const VV=xg.length;function F_(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?F_(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<VV;n++){const r=xg[n],s=e.props[r];(Qa(s)||s===!1)&&(t[r]=s)}return t}const WV=[...bg].reverse(),BV=bg.length;function zV(e){return t=>Promise.all(t.map(({animation:n,options:r})=>$V(e,n,r)))}function YV(e){let t=zV(e),n=ib(),r=!0;const s=l=>(c,u)=>{var d;const h=Ku(e,u,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(h){const{transition:g,transitionEnd:p,...v}=h;c={...c,...v,...p}}return c};function i(l){t=l(e)}function o(l){const{props:c}=e,u=F_(e.parent)||{},d=[],h=new Set;let g={},p=1/0;for(let x=0;x<BV;x++){const y=WV[x],w=n[y],b=c[y]!==void 0?c[y]:u[y],C=Qa(b),_=y===l?w.isActive:null;_===!1&&(p=x);let S=b===u[y]&&b!==c[y]&&C;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),w.protectedKeys={...g},!w.isActive&&_===null||!b&&!w.prevProp||Gu(b)||typeof b=="boolean")continue;const k=HV(w.prevProp,b);let T=k||y===l&&w.isActive&&!S&&C||x>p&&C,M=!1;const E=Array.isArray(b)?b:[b];let O=E.reduce(s(y),{});_===!1&&(O={});const{prevResolvedValues:A={}}=w,P={...A,...O},L=j=>{T=!0,h.has(j)&&(M=!0,h.delete(j)),w.needsAnimating[j]=!0;const $=e.getValue(j);$&&($.liveStyle=!1)};for(const j in P){const $=O[j],N=A[j];if(g.hasOwnProperty(j))continue;let z=!1;uh($)&&uh(N)?z=!XS($,N):z=$!==N,z?$!=null?L(j):h.add(j):$!==void 0&&h.has(j)?L(j):w.protectedKeys[j]=!0}w.prevProp=b,w.prevResolvedValues=O,w.isActive&&(g={...g,...O}),r&&e.blockInitialAnimation&&(T=!1),T&&(!(S&&k)||M)&&d.push(...E.map(j=>({animation:j,options:{type:y}})))}if(h.size){const x={};h.forEach(y=>{const w=e.getBaseTarget(y),b=e.getValue(y);b&&(b.liveStyle=!0),x[y]=w??null}),d.push({animation:x})}let v=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(d):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),n[l].isActive=c;const d=o(l);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=ib(),r=!0}}}function HV(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!XS(t,e):!1}function fi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ib(){return{animate:fi(!0),whileInView:fi(),whileHover:fi(),whileTap:fi(),whileDrag:fi(),whileFocus:fi(),exit:fi()}}class oi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class UV extends oi{constructor(t){super(t),t.animationState||(t.animationState=YV(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Gu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let GV=0;class qV extends oi{constructor(){super(...arguments),this.id=GV++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const KV={animation:{Feature:UV},exit:{Feature:qV}};function nl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Fl(e){return{point:{x:e.pageX,y:e.pageY}}}const XV=e=>t=>Ig(t)&&e(t,Fl(t));function ja(e,t,n,r){return nl(e,t,XV(n),r)}const ob=(e,t)=>Math.abs(e-t);function ZV(e,t){const n=ob(e.x,t.x),r=ob(e.y,t.y);return Math.sqrt(n**2+r**2)}class L_{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=sf(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,g=ZV(d.offset,{x:0,y:0})>=3;if(!h&&!g)return;const{point:p}=d,{timestamp:v}=tn;this.history.push({...p,timestamp:v});const{onStart:x,onMove:y}=this.handlers;h||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=rf(h,this.transformPagePoint),ct.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:g,onSessionEnd:p,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=sf(d.type==="pointercancel"?this.lastMoveEventInfo:rf(h,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,x),p&&p(d,x)},!Ig(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=Fl(t),a=rf(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=tn;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,sf(a,this.history)),this.removeListeners=Nl(ja(this.contextWindow,"pointermove",this.handlePointerMove),ja(this.contextWindow,"pointerup",this.handlePointerUp),ja(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ks(this.updatePoint)}}function rf(e,t){return t?{point:t(e.point)}:e}function ab(e,t){return{x:e.x-t.x,y:e.y-t.y}}function sf({point:e},t){return{point:e,delta:ab(e,$_(t)),offset:ab(e,QV(t)),velocity:JV(t,.1)}}function QV(e){return e[0]}function $_(e){return e[e.length-1]}function JV(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=$_(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>fs(t)));)n--;if(!r)return{x:0,y:0};const i=hs(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const V_=1e-4,eW=1-V_,tW=1+V_,W_=.01,nW=0-W_,rW=0+W_;function Bn(e){return e.max-e.min}function sW(e,t,n){return Math.abs(e-t)<=n}function lb(e,t,n,r=.5){e.origin=r,e.originPoint=Ct(t.min,t.max,e.origin),e.scale=Bn(n)/Bn(t),e.translate=Ct(n.min,n.max,e.origin)-e.originPoint,(e.scale>=eW&&e.scale<=tW||isNaN(e.scale))&&(e.scale=1),(e.translate>=nW&&e.translate<=rW||isNaN(e.translate))&&(e.translate=0)}function Ia(e,t,n,r){lb(e.x,t.x,n.x,r?r.originX:void 0),lb(e.y,t.y,n.y,r?r.originY:void 0)}function cb(e,t,n){e.min=n.min+t.min,e.max=e.min+Bn(t)}function iW(e,t,n){cb(e.x,t.x,n.x),cb(e.y,t.y,n.y)}function ub(e,t,n){e.min=t.min-n.min,e.max=e.min+Bn(t)}function Na(e,t,n){ub(e.x,t.x,n.x),ub(e.y,t.y,n.y)}function oW(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ct(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ct(n,e,r.max):Math.min(e,n)),e}function db(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function aW(e,{top:t,left:n,bottom:r,right:s}){return{x:db(e.x,n,s),y:db(e.y,t,r)}}function fb(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function lW(e,t){return{x:fb(e.x,t.x),y:fb(e.y,t.y)}}function cW(e,t){let n=.5;const r=Bn(e),s=Bn(t);return s>r?n=Ao(t.min,t.max-r,e.min):r>s&&(n=Ao(e.min,e.max-s,t.min)),bs(0,1,n)}function uW(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const wh=.35;function dW(e=wh){return e===!1?e=0:e===!0&&(e=wh),{x:hb(e,"left","right"),y:hb(e,"top","bottom")}}function hb(e,t,n){return{min:mb(e,t),max:mb(e,n)}}function mb(e,t){return typeof e=="number"?e:e[t]||0}const gb=()=>({translate:0,scale:1,origin:0,originPoint:0}),co=()=>({x:gb(),y:gb()}),pb=()=>({min:0,max:0}),Pt=()=>({x:pb(),y:pb()});function Gn(e){return[e("x"),e("y")]}function B_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function fW({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function hW(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function of(e){return e===void 0||e===1}function Sh({scale:e,scaleX:t,scaleY:n}){return!of(e)||!of(t)||!of(n)}function gi(e){return Sh(e)||z_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function z_(e){return vb(e.x)||vb(e.y)}function vb(e){return e&&e!=="0%"}function Zc(e,t,n){const r=e-n,s=t*r;return n+s}function yb(e,t,n,r,s){return s!==void 0&&(e=Zc(e,s,r)),Zc(e,n,r)+t}function _h(e,t=0,n=1,r,s){e.min=yb(e.min,t,n,r,s),e.max=yb(e.max,t,n,r,s)}function Y_(e,{x:t,y:n}){_h(e.x,t.translate,t.scale,t.originPoint),_h(e.y,n.translate,n.scale,n.originPoint)}const bb=.999999999999,xb=1.0000000000001;function mW(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;a<s;a++){i=n[a],o=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&fo(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Y_(e,o)),r&&gi(i.latestValues)&&fo(e,i.latestValues))}t.x<xb&&t.x>bb&&(t.x=1),t.y<xb&&t.y>bb&&(t.y=1)}function uo(e,t){e.min=e.min+t,e.max=e.max+t}function wb(e,t,n,r,s=.5){const i=Ct(e.min,e.max,s);_h(e,t,n,i,r)}function fo(e,t){wb(e.x,t.x,t.scaleX,t.scale,t.originX),wb(e.y,t.y,t.scaleY,t.scale,t.originY)}function H_(e,t){return B_(hW(e.getBoundingClientRect(),t))}function gW(e,t,n){const r=H_(e,n),{scroll:s}=t;return s&&(uo(r.x,s.offset.x),uo(r.y,s.offset.y)),r}const U_=({current:e})=>e?e.ownerDocument.defaultView:null,pW=new WeakMap;class vW{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Pt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Fl(u).point)},i=(u,d)=>{const{drag:h,dragPropagation:g,onDragStart:p}=this.getProps();if(h&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=c$(h),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Gn(x=>{let y=this.getAxisMotionValue(x).get()||0;if(Wr.test(y)){const{projection:w}=this.visualElement;if(w&&w.layout){const b=w.layout.layoutBox[x];b&&(y=Bn(b)*(parseFloat(y)/100))}}this.originPoint[x]=y}),p&&ct.postRender(()=>p(u,d)),hh(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:h,dragDirectionLock:g,onDirectionLock:p,onDrag:v}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:x}=d;if(g&&this.currentDirection===null){this.currentDirection=yW(x),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),v&&v(u,d)},a=(u,d)=>this.stop(u,d),l=()=>Gn(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new L_(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:U_(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&ct.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!uc(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=oW(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&ao(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=aW(s.layoutBox,n):this.constraints=!1,this.elastic=dW(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Gn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=uW(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ao(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=gW(r,s.root,this.visualElement.getTransformPagePoint());let o=lW(s.layout.layoutBox,i);if(n){const a=n(fW(o));this.hasMutatedConstraints=!!a,a&&(o=B_(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Gn(u=>{if(!uc(u,n,this.currentDirection))return;let d=l&&l[u]||{};o&&(d={min:0,max:0});const h=s?200:1e6,g=s?40:1e7,p={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return hh(this.visualElement,t),r.start(Gg(t,r,0,n,this.visualElement,!1))}stopAnimation(){Gn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Gn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Gn(n=>{const{drag:r}=this.getProps();if(!uc(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];i.set(t[n]-Ct(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ao(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Gn(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=cW({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Gn(o=>{if(!uc(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(Ct(l,c,s[o]))})}addListeners(){if(!this.visualElement.current)return;pW.set(this.visualElement,this);const t=this.visualElement.current,n=ja(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ao(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ct.read(r);const o=nl(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Gn(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=wh,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function uc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function yW(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class bW extends oi{constructor(t){super(t),this.removeGroupControls=Wn,this.removeListeners=Wn,this.controls=new vW(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wn}unmount(){this.removeGroupControls(),this.removeListeners()}}const Sb=e=>(t,n)=>{e&&ct.postRender(()=>e(t,n))};class xW extends oi{constructor(){super(...arguments),this.removePointerDownListener=Wn}onPointerDown(t){this.session=new L_(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:U_(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Sb(t),onStart:Sb(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&ct.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=ja(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Tc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function _b(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const da={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ce.test(e))e=parseFloat(e);else return e;const n=_b(e,t.target.x),r=_b(e,t.target.y);return`${n}% ${r}%`}},wW={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Xs.parse(e);if(s.length>5)return r;const i=Xs.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const c=Ct(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}};class SW extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;BL(_W),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Tc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||ct.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Sg.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function G_(e){const[t,n]=rL(),r=m.useContext(OS);return f.jsx(SW,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(FS),isPresent:t,safeToRemove:n})}const _W={borderRadius:{...da,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:da,borderTopRightRadius:da,borderBottomLeftRadius:da,borderBottomRightRadius:da,boxShadow:wW};function CW(e,t,n){const r=cn(e)?e:el(e);return r.start(Gg("",r,t,n)),r.animation}function kW(e){return e instanceof SVGElement&&e.tagName!=="svg"}const TW=(e,t)=>e.depth-t.depth;class MW{constructor(){this.children=[],this.isDirty=!1}add(t){Ng(this.children,t),this.isDirty=!0}remove(t){Fg(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(TW),this.isDirty=!1,this.children.forEach(t)}}function EW(e,t){const n=Br.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Ks(r),e(i-t))};return ct.read(r,!0),()=>Ks(r)}const q_=["TopLeft","TopRight","BottomLeft","BottomRight"],OW=q_.length,Cb=e=>typeof e=="string"?parseFloat(e):e,kb=e=>typeof e=="number"||Ce.test(e);function DW(e,t,n,r,s,i){s?(e.opacity=Ct(0,n.opacity!==void 0?n.opacity:1,PW(r)),e.opacityExit=Ct(t.opacity!==void 0?t.opacity:1,0,AW(r))):i&&(e.opacity=Ct(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<OW;o++){const a=`border${q_[o]}Radius`;let l=Tb(t,a),c=Tb(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||kb(l)===kb(c)?(e[a]=Math.max(Ct(Cb(l),Cb(c),r),0),(Wr.test(c)||Wr.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=Ct(t.rotate||0,n.rotate||0,r))}function Tb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const PW=K_(0,.5,h_),AW=K_(.5,.95,Wn);function K_(e,t,n){return r=>r<e?0:r>t?1:n(Ao(e,t,r))}function Mb(e,t){e.min=t.min,e.max=t.max}function Un(e,t){Mb(e.x,t.x),Mb(e.y,t.y)}function Eb(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ob(e,t,n,r,s){return e-=t,e=Zc(e,1/n,r),s!==void 0&&(e=Zc(e,1/s,r)),e}function RW(e,t=0,n=1,r=.5,s,i=e,o=e){if(Wr.test(t)&&(t=parseFloat(t),t=Ct(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Ct(i.min,i.max,r);e===i&&(a-=t),e.min=Ob(e.min,t,n,a,s),e.max=Ob(e.max,t,n,a,s)}function Db(e,t,[n,r,s],i,o){RW(e,t[n],t[r],t[s],t.scale,i,o)}const jW=["x","scaleX","originX"],IW=["y","scaleY","originY"];function Pb(e,t,n,r){Db(e.x,t,jW,n?n.x:void 0,r?r.x:void 0),Db(e.y,t,IW,n?n.y:void 0,r?r.y:void 0)}function Ab(e){return e.translate===0&&e.scale===1}function X_(e){return Ab(e.x)&&Ab(e.y)}function Rb(e,t){return e.min===t.min&&e.max===t.max}function NW(e,t){return Rb(e.x,t.x)&&Rb(e.y,t.y)}function jb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Z_(e,t){return jb(e.x,t.x)&&jb(e.y,t.y)}function Ib(e){return Bn(e.x)/Bn(e.y)}function Nb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class FW{constructor(){this.members=[]}add(t){Ng(this.members,t),t.scheduleRender()}remove(t){if(Fg(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function LW(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:h,skewX:g,skewY:p}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),g&&(r+=`skewX(${g}deg) `),p&&(r+=`skewY(${p}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const pi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ma=typeof window<"u"&&window.MotionDebug!==void 0,af=["","X","Y","Z"],$W={visibility:"hidden"},Fb=1e3;let VW=0;function lf(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Q_(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=o_(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ct,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Q_(r)}function J_({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=VW++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ma&&(pi.totalNodes=pi.resolvedTargetDeltas=pi.recalculatedProjection=0),this.nodes.forEach(zW),this.nodes.forEach(qW),this.nodes.forEach(KW),this.nodes.forEach(YW),Ma&&window.MotionDebug.record(pi)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new MW)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Lg),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=kW(o),this.instance=o;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),e){let d;const h=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=EW(h,250),Tc.hasAnimatedSinceResize&&(Tc.hasAnimatedSinceResize=!1,this.nodes.forEach($b))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeTargetChanged:g,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||u.getDefaultTransition()||e5,{onLayoutAnimationStart:x,onLayoutAnimationComplete:y}=u.getProps(),w=!this.targetLayout||!Z_(this.targetLayout,p)||g,b=!h&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||h&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,b);const C={...Ag(v,"layout"),onPlay:x,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else h||$b(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ks(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(XW),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Q_(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Lb);return}this.isUpdating||this.nodes.forEach(UW),this.isUpdating=!1,this.nodes.forEach(GW),this.nodes.forEach(WW),this.nodes.forEach(BW),this.clearAllSnapshots();const a=Br.now();tn.delta=bs(0,1e3/60,a-tn.timestamp),tn.timestamp=a,tn.isProcessing=!0,Zd.update.process(tn),Zd.preRender.process(tn),Zd.render.process(tn),tn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(HW),this.sharedNodes.forEach(ZW)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ct.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ct.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Pt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!X_(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&(a||gi(this.latestValues)||u)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),t5(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return Pt();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(n5))){const{scroll:u}=this.root;u&&(uo(l.x,u.offset.x),uo(l.y,u.offset.y))}return l}removeElementScroll(o){var a;const l=Pt();if(Un(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:h}=u;u!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&Un(l,o),uo(l.x,d.offset.x),uo(l.y,d.offset.y))}return l}applyTransform(o,a=!1){const l=Pt();Un(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&fo(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),gi(u.latestValues)&&fo(l,u.latestValues)}return gi(this.latestValues)&&fo(l,this.latestValues),l}removeTransform(o){const a=Pt();Un(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!gi(c.latestValues))continue;Sh(c.latestValues)&&c.updateSnapshot();const u=Pt(),d=c.measurePageBox();Un(u,d),Pb(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return gi(this.latestValues)&&Pb(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:h}=this.options;if(!(!this.layout||!(d||h))){if(this.resolvedRelativeTargetAt=tn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Pt(),this.relativeTargetOrigin=Pt(),Na(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Un(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Pt(),this.targetWithTransforms=Pt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),iW(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Un(this.target,this.layout.layoutBox),Y_(this.target,this.targetDelta)):Un(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Pt(),this.relativeTargetOrigin=Pt(),Na(this.relativeTargetOrigin,this.target,g.target),Un(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ma&&pi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Sh(this.parent.latestValues)||z_(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===tn.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;Un(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,g=this.treeScale.y;mW(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Pt());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Eb(this.prevProjectionDelta.x,this.projectionDelta.x),Eb(this.prevProjectionDelta.y,this.projectionDelta.y)),Ia(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==g||!Nb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Nb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),Ma&&pi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=co(),this.projectionDelta=co(),this.projectionDeltaWithTransform=co()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=co();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=Pt(),g=l?l.source:void 0,p=this.layout?this.layout.source:void 0,v=g!==p,x=this.getStack(),y=!x||x.members.length<=1,w=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(JW));this.animationProgress=0;let b;this.mixTargetDelta=C=>{const _=C/1e3;Vb(d.x,o.x,_),Vb(d.y,o.y,_),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Na(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),QW(this.relativeTarget,this.relativeTargetOrigin,h,_),b&&NW(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Pt()),Un(b,this.relativeTarget)),v&&(this.animationValues=u,DW(u,c,this.latestValues,_,w,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ks(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ct.update(()=>{Tc.hasAnimatedSinceResize=!0,this.currentAnimation=CW(0,Fb,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Fb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&eC(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Pt();const d=Bn(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=Bn(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Un(a,l),fo(a,u),Ia(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new FW),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&lf("z",o,c,this.animationValues);for(let u=0;u<af.length;u++)lf(`rotate${af[u]}`,o,c,this.animationValues),lf(`skew${af[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return $W;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Cc(o==null?void 0:o.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=Cc(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!gi(this.latestValues)&&(v.transform=u?u({},""):"none",this.hasProjected=!1),v}const h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=LW(this.projectionDeltaWithTransform,this.treeScale,h),u&&(c.transform=u(h,c.transform));const{x:g,y:p}=this.projectionDelta;c.transformOrigin=`${g.origin*100}% ${p.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const v in Uc){if(h[v]===void 0)continue;const{correct:x,applyTo:y}=Uc[v],w=c.transform==="none"?h[v]:x(h[v],d);if(y){const b=y.length;for(let C=0;C<b;C++)c[y[C]]=w}else c[v]=w}return this.options.layoutId&&(c.pointerEvents=d===this?Cc(o==null?void 0:o.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Lb),this.root.sharedNodes.clear()}}}function WW(e){e.updateLayout()}function BW(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?Gn(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],g=Bn(h);h.min=r[d].min,h.max=h.min+g}):eC(i,n.layoutBox,r)&&Gn(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],g=Bn(r[d]);h.max=h.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+g)});const a=co();Ia(a,r,n.layoutBox);const l=co();o?Ia(l,e.applyTransform(s,!0),n.measuredBox):Ia(l,r,n.layoutBox);const c=!X_(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:g}=d;if(h&&g){const p=Pt();Na(p,n.layoutBox,h.layoutBox);const v=Pt();Na(v,r,g.layoutBox),Z_(p,v)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=p,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function zW(e){Ma&&pi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function YW(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function HW(e){e.clearSnapshot()}function Lb(e){e.clearMeasurements()}function UW(e){e.isLayoutDirty=!1}function GW(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function $b(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qW(e){e.resolveTargetDelta()}function KW(e){e.calcProjection()}function XW(e){e.resetSkewAndRotation()}function ZW(e){e.removeLeadSnapshot()}function Vb(e,t,n){e.translate=Ct(t.translate,0,n),e.scale=Ct(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Wb(e,t,n,r){e.min=Ct(t.min,n.min,r),e.max=Ct(t.max,n.max,r)}function QW(e,t,n,r){Wb(e.x,t.x,n.x,r),Wb(e.y,t.y,n.y,r)}function JW(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const e5={duration:.45,ease:[.4,0,.1,1]},Bb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),zb=Bb("applewebkit/")&&!Bb("chrome/")?Math.round:Wn;function Yb(e){e.min=zb(e.min),e.max=zb(e.max)}function t5(e){Yb(e.x),Yb(e.y)}function eC(e,t,n){return e==="position"||e==="preserve-aspect"&&!sW(Ib(t),Ib(n),.2)}function n5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const r5=J_({attachResizeListener:(e,t)=>nl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cf={current:void 0},tC=J_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!cf.current){const e=new r5({});e.mount(window),e.setOptions({layoutScroll:!0}),cf.current=e}return cf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),s5={pan:{Feature:xW},drag:{Feature:bW,ProjectionNode:tC,MeasureLayout:G_}};function Hb(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&ct.postRender(()=>i(t,Fl(t)))}class i5 extends oi{mount(){const{current:t}=this.node;t&&(this.unmount=s$(t,n=>(Hb(this.node,n,"Start"),r=>Hb(this.node,r,"End"))))}unmount(){}}class o5 extends oi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Nl(nl(this.node.current,"focus",()=>this.onFocus()),nl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ub(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&ct.postRender(()=>i(t,Fl(t)))}class a5 extends oi{mount(){const{current:t}=this.node;t&&(this.unmount=l$(t,n=>(Ub(this.node,n,"Start"),(r,{success:s})=>Ub(this.node,r,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ch=new WeakMap,uf=new WeakMap,l5=e=>{const t=Ch.get(e.target);t&&t(e)},c5=e=>{e.forEach(l5)};function u5({root:e,...t}){const n=e||document;uf.has(n)||uf.set(n,{});const r=uf.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(c5,{root:e,...t})),r[s]}function d5(e,t,n){const r=u5(t);return Ch.set(e,n),r.observe(e),()=>{Ch.delete(e),r.unobserve(e)}}const f5={some:0,all:1};class h5 extends oi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:f5[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=c?u:d;h&&h(l)};return d5(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(m5(t,n))&&this.startObserver()}unmount(){}}function m5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const g5={inView:{Feature:h5},tap:{Feature:a5},focus:{Feature:o5},hover:{Feature:i5}},p5={layout:{ProjectionNode:tC,MeasureLayout:G_}},kh={current:null},nC={current:!1};function v5(){if(nC.current=!0,!!vg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>kh.current=e.matches;e.addListener(t),t()}else kh.current=!1}const y5=[...M_,ln,Xs],b5=e=>y5.find(T_(e)),Gb=new WeakMap;function x5(e,t,n){for(const r in t){const s=t[r],i=n[r];if(cn(s))e.addValue(r,s);else if(cn(i))e.addValue(r,el(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,el(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const qb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class w5{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Yg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=Br.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,ct.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:u}=o;this.onUpdate=u,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=qu(n),this.isVariantNode=IS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in h){const p=h[g];l[g]!==void 0&&cn(p)&&p.set(l[g],!1)}}mount(t){this.current=t,Gb.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),nC.current||v5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:kh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Gb.delete(this.current),this.projection&&this.projection.unmount(),Ks(this.notifyUpdate),Ks(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Vi.has(t),s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ct.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ro){const n=Ro[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Pt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<qb.length;r++){const s=qb[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=x5(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=el(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(C_(s)||g_(s))?s=parseFloat(s):!b5(s)&&Xs.test(n)&&(s=w_(t,n)),this.setBaseTarget(t,cn(s)?s.get():s)),cn(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const o=Cg(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!cn(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Lg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class rC extends w5{constructor(){super(...arguments),this.KeyframeResolver=E_}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;cn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function S5(e){return window.getComputedStyle(e)}class _5 extends rC{constructor(){super(...arguments),this.type="html",this.renderInstance=YS}readValueFromInstance(t,n){if(Vi.has(n)){const r=zg(n);return r&&r.default||0}else{const r=S5(t),s=(WS(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return H_(t,n)}build(t,n,r){Mg(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Pg(t,n,r)}}class C5 extends rC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Pt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vi.has(n)){const r=zg(n);return r&&r.default||0}return n=HS.has(n)?n:wg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return qS(t,n,r)}build(t,n,r){Eg(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){US(t,n,r,s)}mount(t){this.isSVGTag=Dg(t.tagName),super.mount(t)}}const k5=(e,t)=>_g(e)?new C5(t):new _5(t,{allowProjection:e!==m.Fragment}),T5=ZL({...KV,...g5,...s5,...p5},k5),M5=fL(T5);var df=["40em","52em","64em"],E5=(e={})=>{const{defaultIndex:t=0}=e;if(typeof t!="number")throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>df.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${df.length} breakpoints, got index ${t}`);const[n,r]=m.useState(t);return m.useEffect(()=>{const s=()=>df.filter(o=>typeof window<"u"?window.matchMedia(`screen and (min-width: ${o})`).matches:!1).length,i=()=>{const o=s();n!==o&&r(o)};return i(),typeof window<"u"&&window.addEventListener("resize",i),()=>{typeof window<"u"&&window.removeEventListener("resize",i)}},[n]),n};function Th(e,t={}){const n=E5(t);if(!Array.isArray(e)&&typeof e!="function")return e;const r=e||[];return r[n>=r.length?r.length-1:n]}var O5="4px";function le(e){var n,r;if(typeof e>"u")return;if(!e)return"0";const t=typeof e=="number"?e:Number(e);return typeof window<"u"&&((r=(n=window.CSS)==null?void 0:n.supports)!=null&&r.call(n,"margin",e.toString()))||Number.isNaN(t)?e.toString():`calc(${O5} * ${e})`}var D5={name:"zjik7",styles:"display:flex"},P5={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},A5={name:"82a6rk",styles:"flex:1"},R5={name:"13nosa1",styles:">*{min-height:0;}"},j5={name:"1pwxzk4",styles:">*{min-width:0;}"};function I5(e){const{isReversed:t,...n}=e;return typeof t<"u"?(Kt("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}function sC(e){const{align:t,className:n,direction:r="row",expanded:s=!0,gap:i=2,justify:o="space-between",wrap:a=!1,...l}=Mt(I5(e),"Flex"),c=Array.isArray(r)?r:[r],u=Th(c),d=typeof u=="string"&&!!u.includes("column"),h=Dn(),g=m.useMemo(()=>{const p=se({alignItems:t??(d?"normal":"center"),flexDirection:u,flexWrap:a?"wrap":void 0,gap:le(i),justifyContent:o,height:d&&s?"100%":void 0,width:!d&&s?"100%":void 0},"","");return h(D5,p,d?R5:j5,n)},[t,n,h,u,s,i,d,o,a]);return{...l,className:g,isColumn:d}}var iC=m.createContext({flexItemDisplay:void 0}),N5=()=>m.useContext(iC);function F5(e,t){const{children:n,isColumn:r,...s}=sC(e);return f.jsx(iC.Provider,{value:{flexItemDisplay:r?"block":void 0},children:f.jsx(mn,{...s,ref:t,children:n})})}var L5=jt(F5,"Flex"),ea=L5;function oC(e){const{className:t,display:n,isBlock:r=!1,...s}=Mt(e,"FlexItem"),i={},o=N5().flexItemDisplay;i.Base=se({display:n||o},"","");const l=Dn()(P5,i.Base,r&&A5,t);return{...s,className:l}}function $5(e,t){const n=oC(e);return f.jsx(mn,{...n,ref:t})}var V5=jt($5,"FlexItem"),Zs=V5;function W5(e){const t=Mt(e,"FlexBlock");return oC({isBlock:!0,...t})}function B5(e,t){const n=W5(e);return f.jsx(mn,{...n,ref:t})}var z5=jt(B5,"FlexBlock"),Y5=z5;function Cn(e){return typeof e<"u"&&e!==null}function H5(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:s,marginRight:i,marginTop:o,marginX:a,marginY:l,padding:c,paddingBottom:u,paddingLeft:d,paddingRight:h,paddingTop:g,paddingX:p,paddingY:v,...x}=Mt(e,"Spacer"),w=Dn()(Cn(n)&&se("margin:",le(n),";",""),Cn(l)&&se("margin-bottom:",le(l),";margin-top:",le(l),";",""),Cn(a)&&se("margin-left:",le(a),";margin-right:",le(a),";",""),Cn(o)&&se("margin-top:",le(o),";",""),Cn(r)&&se("margin-bottom:",le(r),";",""),Cn(s)&&Xt({marginLeft:le(s)})(),Cn(i)&&Xt({marginRight:le(i)})(),Cn(c)&&se("padding:",le(c),";",""),Cn(v)&&se("padding-bottom:",le(v),";padding-top:",le(v),";",""),Cn(p)&&se("padding-left:",le(p),";padding-right:",le(p),";",""),Cn(g)&&se("padding-top:",le(g),";",""),Cn(u)&&se("padding-bottom:",le(u),";",""),Cn(d)&&Xt({paddingLeft:le(d)})(),Cn(h)&&Xt({paddingRight:le(h)})(),t);return{...x,className:w}}function U5(e,t){const n=H5(e);return f.jsx(mn,{...n,ref:t})}var G5=jt(U5,"Spacer"),Zu=G5,rl=m.forwardRef(({icon:e,size:t=24,...n},r)=>m.cloneElement(e,{width:t,height:t,...n,ref:r})),q5=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.75 12v-1.5h1.5V16h-1.5Zm0-8v5h1.5V8h-1.5Z"})}),aC=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z"})}),K5=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),X5=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})}),Z5=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})}),lC=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})}),cC=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})}),uC=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z"})}),Q5=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})}),J5=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),dC=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"})}),fC=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M7 11.5h10V13H7z"})}),e3=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})}),t3={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},qg="…",Ci={auto:"auto",head:"head",middle:"middle",none:"none"},n3={ellipsis:qg,ellipsizeMode:Ci.auto,limit:0,numberOfLines:0};function r3(e,t,n,r){if(typeof e!="string")return"";const s=e.length,i=~~t,o=~~n,a=Pl(r)?r:qg;return i===0&&o===0||i>=s||o>=s||i+o>=s?e:o===0?e.slice(0,i)+a:e.slice(0,i)+a+e.slice(s-o)}function s3(e="",t){const n={...n3,...t},{ellipsis:r,ellipsizeMode:s,limit:i}=n;if(s===Ci.none)return e;let o,a;switch(s){case Ci.head:o=0,a=i;break;case Ci.middle:o=Math.floor(i/2),a=Math.floor(i/2);break;default:o=i,a=0}return s!==Ci.auto?r3(e,o,a,r):e}function hC(e){const{className:t,children:n,ellipsis:r=qg,ellipsizeMode:s=Ci.auto,limit:i=0,numberOfLines:o=0,...a}=Mt(e,"Truncate"),l=Dn();let c;typeof n=="string"?c=n:typeof n=="number"&&(c=n.toString());const u=c?s3(c,{ellipsis:r,ellipsizeMode:s,limit:i,numberOfLines:o}):n,d=!!c&&s===Ci.auto,h=m.useMemo(()=>l(d&&!o&&t3,d&&!!o&&se(o===1?"word-break: break-all;":""," -webkit-box-orient:vertical;-webkit-line-clamp:",o,";display:-webkit-box;overflow:hidden;",""),t),[t,l,o,d]);return{...a,className:h,children:u}}function i3(e,t){const n=hC(e);return f.jsx(mn,{as:"span",...n,ref:t})}var o3=jt(i3,"Truncate"),mC=o3,gC=se("color:",Z.theme.foreground,";line-height:",ae.fontLineHeightBase,";margin:0;text-wrap:balance;text-wrap:pretty;",""),pC={name:"4zleql",styles:"display:block"},a3=se("color:",Z.alert.green,";",""),vC=se("color:",Z.alert.red,";",""),yC=se("color:",Z.gray[700],";",""),bC=se("mark{background:",Z.alert.yellow,";border-radius:",ae.radiusSmall,";box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),l3={name:"50zrmy",styles:"text-transform:uppercase"};const c3=Object.freeze(Object.defineProperty({__proto__:null,Text:gC,block:pC,destructive:vC,highlighterText:bC,muted:yC,positive:a3,upperCase:l3},Symbol.toStringTag,{value:"Module"}));var xC={exports:{}};(function(e){e.exports=function(t){var n={};function r(s){if(n[s])return n[s].exports;var i=n[s]={exports:{},id:s,loaded:!1};return t[s].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=t,r.c=n,r.p="",r(0)}([function(t,n,r){t.exports=r(1)},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var s=r(2);Object.defineProperty(n,"combineChunks",{enumerable:!0,get:function(){return s.combineChunks}}),Object.defineProperty(n,"fillInChunks",{enumerable:!0,get:function(){return s.fillInChunks}}),Object.defineProperty(n,"findAll",{enumerable:!0,get:function(){return s.findAll}}),Object.defineProperty(n,"findChunks",{enumerable:!0,get:function(){return s.findChunks}})},function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.findAll=function(c){var u=c.autoEscape,d=c.caseSensitive,h=d===void 0?!1:d,g=c.findChunks,p=g===void 0?s:g,v=c.sanitize,x=c.searchWords,y=c.textToHighlight;return i({chunksToHighlight:r({chunks:p({autoEscape:u,caseSensitive:h,sanitize:v,searchWords:x,textToHighlight:y})}),totalLength:y?y.length:0})};var r=n.combineChunks=function(c){var u=c.chunks;return u=u.sort(function(d,h){return d.start-h.start}).reduce(function(d,h){if(d.length===0)return[h];var g=d.pop();if(h.start<g.end){var p=Math.max(g.end,h.end);d.push({highlight:!1,start:g.start,end:p})}else d.push(g,h);return d},[]),u},s=function(c){var u=c.autoEscape,d=c.caseSensitive,h=c.sanitize,g=h===void 0?o:h,p=c.searchWords,v=c.textToHighlight;return v=g(v),p.filter(function(x){return x}).reduce(function(x,y){y=g(y),u&&(y=a(y));for(var w=new RegExp(y,d?"g":"gi"),b=void 0;b=w.exec(v);){var C=b.index,_=w.lastIndex;_>C&&x.push({highlight:!1,start:C,end:_}),b.index===w.lastIndex&&w.lastIndex++}return x},[])};n.findChunks=s;var i=n.fillInChunks=function(c){var u=c.chunksToHighlight,d=c.totalLength,h=[],g=function(x,y,w){y-x>0&&h.push({start:x,end:y,highlight:w})};if(u.length===0)g(0,d,!1);else{var p=0;u.forEach(function(v){g(p,v.start,!1),g(v.start,v.end,!0),p=v.end}),g(p,d,!1)}return h};function o(l){return l}function a(l){return l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])})(xC);var u3=xC.exports,d3=e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t},f3=gg(d3);function h3({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:r,caseSensitive:s=!1,children:i,findChunks:o,highlightClassName:a="",highlightStyle:l={},highlightTag:c="mark",sanitize:u,searchWords:d=[],unhighlightClassName:h="",unhighlightStyle:g}){if(!i)return null;if(typeof i!="string")return i;const p=i,v=u3.findAll({autoEscape:r,caseSensitive:s,findChunks:o,sanitize:u,searchWords:d,textToHighlight:p}),x=c;let y=-1,w="",b;return v.map((_,S)=>{const k=p.substr(_.start,_.end-_.start);if(_.highlight){y++;let T;typeof a=="object"?s?T=a[k]:(a=f3(a),T=a[k.toLowerCase()]):T=a;const M=y===+t;w=`${T} ${M?e:""}`,b=M===!0&&n!==null?Object.assign({},l,n):l;const E={children:k,className:w,key:S,style:b};return typeof x!="string"&&(E.highlightIndex=y),m.createElement(x,E)}return m.createElement("span",{children:k,className:h,key:S,style:g})})}var Mh=13,Kb={body:Mh,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},m3=[1,2,3,4,5,6].flatMap(e=>[e,e.toString()]);function Kg(e=Mh){if(e in Kb)return Kg(Kb[e]);if(typeof e!="number"){const n=parseFloat(e);if(Number.isNaN(n))return e;e=n}return`calc(${`(${e} / ${Mh})`} * ${ae.fontSize})`}function g3(e=3){if(!m3.includes(e))return Kg(e);const t=`fontSizeH${e}`;return ae[t]}function p3(e,t){if(t)return t;if(!e)return;let n=`calc(${ae.controlHeight} + ${le(2)})`;switch(e){case"large":n=`calc(${ae.controlHeightLarge} + ${le(2)})`;break;case"small":n=`calc(${ae.controlHeightSmall} + ${le(2)})`;break;case"xSmall":n=`calc(${ae.controlHeightXSmall} + ${le(2)})`;break}return n}var v3={name:"50zrmy",styles:"text-transform:uppercase"};function wC(e){const{adjustLineHeightForInnerControls:t,align:n,children:r,className:s,color:i,ellipsizeMode:o,isDestructive:a=!1,display:l,highlightEscape:c=!1,highlightCaseSensitive:u=!1,highlightWords:d,highlightSanitize:h,isBlock:g=!1,letterSpacing:p,lineHeight:v,optimizeReadabilityFor:x,size:y,truncate:w=!1,upperCase:b=!1,variant:C,weight:_=ae.fontWeight,...S}=Mt(e,"Text");let k=r;const T=Array.isArray(d),M=y==="caption";if(T){if(typeof r!="string")throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");k=h3({autoEscape:c,children:r,caseSensitive:u,searchWords:d,sanitize:h})}const E=Dn(),O=m.useMemo(()=>{const F={},I=p3(t,v);if(F.Base=se({color:i,display:l,fontSize:Kg(y),fontWeight:_,lineHeight:I,letterSpacing:p,textAlign:n},"",""),F.upperCase=v3,F.optimalTextColor=null,x){const j=OF(x)==="dark";F.optimalTextColor=se(j?{color:Z.gray[900]}:{color:Z.white},"","")}return E(gC,F.Base,F.optimalTextColor,a&&vC,!!T&&bC,g&&pC,M&&yC,C&&c3[C],b&&F.upperCase,s)},[t,n,s,i,E,l,g,M,a,T,p,v,x,y,b,C,_]);let A;w===!0&&(A="auto"),w===!1&&(A="none");const P={...S,className:O,children:r,ellipsizeMode:o||A},L=hC(P);return!w&&Array.isArray(r)&&(k=m.Children.map(r,F=>typeof F!="object"||F===null||!("props"in F)?F:ES(F,["Link"])?m.cloneElement(F,{size:F.props.size||"inherit"}):F)),{...L,children:w?L.children:k}}function y3(e,t){const n=wC(e);return f.jsx(mn,{as:"span",...n,ref:t})}var b3=jt(y3,"Text"),Xg=b3,SC=oe("span",{target:"em5sgkm8"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),_C=oe("span",{target:"em5sgkm7"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"}),x3=({disabled:e,isBorderless:t})=>t?"transparent":e?Z.ui.borderDisabled:Z.ui.border,Qu=oe("div",{target:"em5sgkm6"})("&&&{box-sizing:border-box;border-color:",x3,";border-radius:inherit;border-style:solid;border-width:1px;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",Xt({paddingLeft:2}),";}"),w3=oe(ea,{target:"em5sgkm5"})("box-sizing:border-box;position:relative;border-radius:",ae.radiusSmall,";padding-top:0;&:focus-within:not( :has( :is( ",SC,", ",_C," ):focus-within ) ){",Qu,"{border-color:",Z.ui.borderFocus,";box-shadow:",ae.controlBoxShadowFocus,";outline:2px solid transparent;outline-offset:-2px;}}"),S3=({disabled:e})=>{const t=e?Z.ui.backgroundDisabled:Z.ui.background;return se({backgroundColor:t},"","")},_3={name:"1d3w5wq",styles:"width:100%"},C3=({__unstableInputWidth:e,labelPosition:t})=>e?t==="side"?"":se(t==="edge"?{flex:`0 0 ${e}`}:{width:e},"",""):_3,k3=oe("div",{target:"em5sgkm4"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",S3," ",C3,";"),T3=({disabled:e})=>e?se({color:Z.ui.textDisabled},"",""):"",CC=({inputSize:e})=>{const t={default:"13px",small:"11px",compact:"13px","__unstable-large":"13px"},n=t[e]||t.default;return se("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}","")},kC=({inputSize:e,__next40pxDefaultSize:t})=>{const n={default:{height:40,lineHeight:1,minHeight:40,paddingLeft:ae.controlPaddingX,paddingRight:ae.controlPaddingX},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:ae.controlPaddingXSmall,paddingRight:ae.controlPaddingXSmall},compact:{height:32,lineHeight:1,minHeight:32,paddingLeft:ae.controlPaddingXSmall,paddingRight:ae.controlPaddingXSmall},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:ae.controlPaddingX,paddingRight:ae.controlPaddingX}};return t||(n.default=n.compact),n[e]||n.default},M3=e=>se(kC(e),"",""),E3=({paddingInlineStart:e,paddingInlineEnd:t})=>se({paddingInlineStart:e,paddingInlineEnd:t},"",""),O3=({isDragging:e,dragCursor:t})=>{let n,r;return e&&(n=se("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(r=se("&:active{cursor:",t,";}","")),se(n," ",r,";","")},Ju=oe("input",{target:"em5sgkm3"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Z.theme.foreground,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",O3," ",T3," ",CC," ",M3," ",E3," &::-webkit-input-placeholder{color:",Z.ui.darkGrayPlaceholder,";}&::-moz-placeholder{color:",Z.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",Z.ui.darkGrayPlaceholder,";}&[type='email'],&[type='url']{direction:ltr;}}"),D3=oe(Xg,{target:"em5sgkm2"})("&&&{",SS,";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),P3=e=>f.jsx(D3,{...e,as:"label"}),A3=oe(Zs,{target:"em5sgkm1"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),R3=({variant:e="default",size:t,__next40pxDefaultSize:n,isPrefix:r})=>{const{paddingLeft:s}=kC({inputSize:t,__next40pxDefaultSize:n}),i=r?"paddingInlineStart":"paddingInlineEnd";return se(e==="default"?{[i]:s}:{display:"flex",[i]:s-4},"","")},TC=oe("div",{target:"em5sgkm0"})(R3,";");function j3({disabled:e=!1,isBorderless:t=!1}){return f.jsx(Qu,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isBorderless:t})}var I3=m.memo(j3),N3=I3;function F3({children:e,hideLabelFromVision:t,htmlFor:n,...r}){return e?t?f.jsx(yr,{as:"label",htmlFor:n,children:e}):f.jsx(A3,{children:f.jsx(P3,{htmlFor:n,...r,children:e})}):null}function Ll(e){const{__next36pxDefaultSize:t,__next40pxDefaultSize:n,...r}=e;return{...r,__next40pxDefaultSize:n??t}}function L3(e){const n=`input-base-control-${yt(MC)}`;return e||n}function $3(e){const t={};switch(e){case"top":t.direction="column",t.expanded=!1,t.gap=0;break;case"bottom":t.direction="column-reverse",t.expanded=!1,t.gap=0;break;case"edge":t.justify="space-between";break}return t}function MC(e,t){const{__next40pxDefaultSize:n,__unstableInputWidth:r,children:s,className:i,disabled:o=!1,hideLabelFromVision:a=!1,labelPosition:l,id:c,isBorderless:u=!1,label:d,prefix:h,size:g="default",suffix:p,...v}=Ll(Mt(e,"InputBase")),x=L3(c),y=a||!d,w=m.useMemo(()=>({InputControlPrefixWrapper:{__next40pxDefaultSize:n,size:g},InputControlSuffixWrapper:{__next40pxDefaultSize:n,size:g}}),[n,g]);return f.jsxs(w3,{...v,...$3(l),className:i,gap:2,ref:t,children:[f.jsx(F3,{className:"components-input-control__label",hideLabelFromVision:a,labelPosition:l,htmlFor:x,children:d}),f.jsxs(k3,{__unstableInputWidth:r,className:"components-input-control__container",disabled:o,hideLabel:y,labelPosition:l,children:[f.jsxs(CS,{value:w,children:[h&&f.jsx(SC,{className:"components-input-control__prefix",children:h}),s,p&&f.jsx(_C,{className:"components-input-control__suffix",children:p})]}),f.jsx(N3,{disabled:o,isBorderless:u})]})]})}var EC=jt(MC,"InputBase");function V3(e,t,n){return Math.max(t,Math.min(e,n))}const un={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Xb(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Zb(e,t,n,r=.15){return r===0?V3(e,t,n):e<t?-Xb(t-e,n-t,r)+t:e>n?+Xb(e-n,n-t,r)+n:e}function W3(e,[t,n],[r,s]){const[[i,o],[a,l]]=e;return[Zb(t,i,o,r),Zb(n,a,l,s)]}function B3(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function z3(e){var t=B3(e,"string");return typeof t=="symbol"?t:String(t)}function Mn(e,t,n){return t=z3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qb(Object(n),!0).forEach(function(r){Mn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const OC={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function Jb(e){return e?e[0].toUpperCase()+e.slice(1):""}const Y3=["enter","leave"];function H3(e=!1,t){return e&&!Y3.includes(t)}function U3(e,t="",n=!1){const r=OC[e],s=r&&r[t]||t;return"on"+Jb(e)+Jb(s)+(H3(n,s)?"Capture":"")}const G3=["gotpointercapture","lostpointercapture"];function q3(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=G3.includes(t)?"capturecapture":"capture",s=!!~t.indexOf(r);return s&&(t=t.replace("capture","")),{device:t,capture:s,passive:n}}function K3(e,t=""){const n=OC[e],r=n&&n[t]||t;return e+r}function ed(e){return"touches"in e}function DC(e){return ed(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function X3(e){return Array.from(e.touches).filter(t=>{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function Z3(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function PC(e){return ed(e)?Z3(e)[0]:e}function Q3(e){return X3(e).map(t=>t.identifier)}function ff(e){const t=PC(e);return ed(e)?t.identifier:t.pointerId}function e0(e){const t=PC(e);return[t.clientX,t.clientY]}function J3(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:s,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:s,ctrlKey:i})}return t}function Qc(e,...t){return typeof e=="function"?e(...t):e}function eB(){}function tB(...e){return e.length===0?eB:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function t0(e,t){return Object.assign({},t,e||{})}const nB=32;class rB{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:s}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=s,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?Qc(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:s}=this;n.args=this.args;let i=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,s.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,s.locked=!!document.pointerLockElement,Object.assign(s,J3(t)),s.down=s.pressed=s.buttons%2===1||s.touches>0,i=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const S=n._delta.map(Math.abs);un.addTo(n._distance,S)}this.axisIntent&&this.axisIntent(t);const[o,a]=n._movement,[l,c]=r.threshold,{_step:u,values:d}=n;if(r.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(o)>=l&&d[0]),u[1]===!1&&(u[1]=Math.abs(a)>=c&&d[1])):(u[0]===!1&&(u[0]=Math.abs(o)>=l&&Math.sign(o)*l),u[1]===!1&&(u[1]=Math.abs(a)>=c&&Math.sign(a)*c)),n.intentional=u[0]!==!1||u[1]!==!1,!n.intentional)return;const h=[0,0];if(r.hasCustomTransform){const[S,k]=d;h[0]=u[0]!==!1?S-u[0]:0,h[1]=u[1]!==!1?k-u[1]:0}else h[0]=u[0]!==!1?o-u[0]:0,h[1]=u[1]!==!1?a-u[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(h);const g=n.offset,p=n._active&&!n._blocked||n.active;p&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=s[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=Qc(r.bounds,n)),this.setup&&this.setup()),n.movement=h,this.computeOffset()));const[v,x]=n.offset,[[y,w],[b,C]]=n._bounds;n.overflow=[v<y?-1:v>w?1:0,x<b?-1:x>C?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const _=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=W3(n._bounds,n.offset,_),n.delta=un.sub(n.offset,g),this.computeMovement(),p&&(!n.last||i>nB)){n.delta=un.sub(n.offset,g);const S=n.delta.map(Math.abs);un.addTo(n.distance,S),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[S[0]/i,S[1]/i],n.timeDelta=i)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const s=this.handler(Tt(Tt(Tt({},n),t),{},{[this.aliasKey]:t.values}));s!==void 0&&(t.memo=s)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function sB([e,t],n){const r=Math.abs(e),s=Math.abs(t);if(r>s&&r>n)return"x";if(s>r&&s>n)return"y"}class iB extends rB{constructor(...t){super(...t),Mn(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=un.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=un.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const s=typeof r.axisThreshold=="object"?r.axisThreshold[DC(t)]:r.axisThreshold;n.axis=sB(n._movement,s)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const oB=e=>e,n0=.15,AC={enabled(e=!0){return e},eventOptions(e,t,n){return Tt(Tt({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[n0,n0];case!1:return[0,0];default:return un.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return un.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||oB},threshold(e){return un.toVector(e,0)}},aB=0,$l=Tt(Tt({},AC),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=aB){return e},bounds(e={}){if(typeof e=="function")return i=>$l.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:s=1/0}=e;return[[t,n],[r,s]]}}),r0={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class lB extends iB{constructor(...t){super(...t),Mn(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),s={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=$l.bounds(s)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const s=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(s&&s.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=ff(t),r._pointerActive=!0,this.computeValues(e0(t)),this.computeInitial(),n.preventScrollAxis&&DC(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const s=ff(t);if(n._pointerId!==void 0&&s!==n._pointerId)return;const i=e0(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=un.sub(i,n._values),this.computeValues(i)),un.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const s=ff(t);if(n._pointerId!==void 0&&s!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[i,o]=n._distance;if(n.tap=i<=r.tapsThreshold&&o<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[a,l]=n._delta,[c,u]=n._movement,[d,h]=r.swipe.velocity,[g,p]=r.swipe.distance,v=r.swipe.duration;if(n.elapsedTime<v){const x=Math.abs(a/n.timeDelta),y=Math.abs(l/n.timeDelta);x>d&&Math.abs(c)>g&&(n.swipe[0]=Math.sign(a)),y>h&&Math.abs(u)>p&&(n.swipe[1]=Math.sign(l))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,cB(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=r0[t.key];if(n){const r=this.state,s=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,s),r._keyboardActive=!0,un.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in r0&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function cB(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const Vl=typeof window<"u"&&window.document&&window.document.createElement;function RC(){return Vl&&"ontouchstart"in window}function uB(){return RC()||Vl&&window.navigator.maxTouchPoints>1}function dB(){return Vl&&"onpointerdown"in window}function fB(){return Vl&&"exitPointerLock"in window.document}function hB(){try{return"constructor"in GestureEvent}catch{return!1}}const Kn={isBrowser:Vl,gesture:hB(),touch:RC(),touchscreen:uB(),pointer:dB(),pointerLock:fB()},mB=250,gB=180,pB=.5,vB=50,yB=250,bB=10,s0={mouse:0,touch:0,pen:8},xB=Tt(Tt({},$l),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:s=!1}={}}){return this.pointerLock=r&&Kn.pointerLock,Kn.touch&&n?"touch":this.pointerLock?"mouse":Kn.pointer&&!s?"pointer":Kn.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?mB:void 0,!(!Kn.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:s=!0}={}}){return this.pointerButtons=r,this.keys=s,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:s=void 0}){const i=un.toVector(e,n?r:s?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=pB,distance:t=vB,duration:n=yB}={}){return{velocity:this.transform(un.toVector(e)),distance:this.transform(un.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return gB;case!1:return 0;default:return e}},axisThreshold(e){return e?Tt(Tt({},s0),e):s0},keyboardDisplacement(e=bB){return e}});Tt(Tt({},AC),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Kn.touch&&Kn.gesture)return"gesture";if(Kn.touch&&r)return"touch";if(Kn.touchscreen){if(Kn.pointer)return"pointer";if(Kn.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const s=o=>{const a=t0(Qc(n,o),{min:-1/0,max:1/0});return[a.min,a.max]},i=o=>{const a=t0(Qc(r,o),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof n!="function"&&typeof r!="function"?[s(),i()]:o=>[s(o),i(o)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",un.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});Tt(Tt({},$l),{},{mouseOnly:(e=!0)=>e});Tt(Tt({},$l),{},{mouseOnly:(e=!0)=>e});const jC=new Map,Eh=new Map;function wB(e){jC.set(e.key,e.engine),Eh.set(e.key,e.resolver)}const SB={key:"drag",engine:lB,resolver:xB};function _B(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function CB(e,t){if(e==null)return{};var n=_B(e,t),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)r=i[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const kB={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=Kn.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},TB=["target","eventOptions","window","enabled","transform"];function Mc(e={},t){const n={};for(const[r,s]of Object.entries(t))switch(typeof s){case"function":n[r]=s.call(n,e[r],r,e);break;case"object":n[r]=Mc(e[r],s);break;case"boolean":s&&(n[r]=e[r]);break}return n}function MB(e,t,n={}){const r=e,{target:s,eventOptions:i,window:o,enabled:a,transform:l}=r,c=CB(r,TB);if(n.shared=Mc({target:s,eventOptions:i,window:o,enabled:a,transform:l},kB),t){const u=Eh.get(t);n[t]=Mc(Tt({shared:n.shared},c),u)}else for(const u in c){const d=Eh.get(u);d&&(n[u]=Mc(Tt({shared:n.shared},c[u]),d))}return n}class IC{constructor(t,n){Mn(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,s,i){const o=this._listeners,a=K3(n,r),l=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},c=Tt(Tt({},l),i);t.addEventListener(a,s,c);const u=()=>{t.removeEventListener(a,s,c),o.delete(u)};return o.add(u),u}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class EB{constructor(){Mn(this,"_timeouts",new Map)}add(t,n,r=140,...s){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...s))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class OB{constructor(t){Mn(this,"gestures",new Set),Mn(this,"_targetEventStore",new IC(this)),Mn(this,"gestureEventStores",{}),Mn(this,"gestureTimeoutStores",{}),Mn(this,"handlers",{}),Mn(this,"config",{}),Mn(this,"pointerIds",new Set),Mn(this,"touchIds",new Set),Mn(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),DB(this,t)}setEventIds(t){if(ed(t))return this.touchIds=new Set(Q3(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=MB(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let s;if(!(n.target&&(s=n.target(),!s))){if(n.enabled){for(const o of this.gestures){const a=this.config[o],l=i0(r,a.eventOptions,!!s);if(a.enabled){const c=jC.get(o);new c(this,t,o).bind(l)}}const i=i0(r,n.eventOptions,!!s);for(const o in this.nativeHandlers)i(o,"",a=>this.nativeHandlers[o](Tt(Tt({},this.state.shared),{},{event:a,args:t})),void 0,!0)}for(const i in r)r[i]=tB(...r[i]);if(!s)return r;for(const i in r){const{device:o,capture:a,passive:l}=q3(i);this._targetEventStore.add(s,o,"",r[i],{capture:a,passive:l})}}}}function Ki(e,t){e.gestures.add(t),e.gestureEventStores[t]=new IC(e,t),e.gestureTimeoutStores[t]=new EB}function DB(e,t){t.drag&&Ki(e,"drag"),t.wheel&&Ki(e,"wheel"),t.scroll&&Ki(e,"scroll"),t.move&&Ki(e,"move"),t.pinch&&Ki(e,"pinch"),t.hover&&Ki(e,"hover")}const i0=(e,t,n)=>(r,s,i,o={},a=!1)=>{var l,c;const u=(l=o.capture)!==null&&l!==void 0?l:t.capture,d=(c=o.passive)!==null&&c!==void 0?c:t.passive;let h=a?r:U3(r,s,u);n&&d&&(h+="Passive"),e[h]=e[h]||[],e[h].push(i)};function PB(e,t={},n,r){const s=q.useMemo(()=>new OB(e),[]);if(s.applyHandlers(e,r),s.applyConfig(t,n),q.useEffect(s.effect.bind(s)),q.useEffect(()=>s.clean.bind(s),[]),t.target===void 0)return s.bind.bind(s)}function AB(e,t){return wB(SB),PB({drag:e},t||{},"drag")}function RB(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize";break}return t}function jB(e,t){const n=RB(t);return m.useEffect(()=>{e?document.documentElement.style.cursor=n:document.documentElement.style.cursor=null},[e,n]),n}function IB(e){const t=m.useRef(e.value),[n,r]=m.useState({}),s=n.value!==void 0?n.value:e.value;return m.useLayoutEffect(()=>{const{current:a}=t;t.current=e.value,n.value!==void 0&&!n.isStale?r({...n,isStale:!0}):n.isStale&&e.value!==a&&r({})},[e.value,n]),{value:s,onBlur:a=>{var l;r({}),(l=e.onBlur)==null||l.call(e,a)},onChange:(a,l)=>{r(c=>Object.assign(c,{value:a,isStale:!1})),e.onChange(a,l)}}}var NB=e=>e,Oh={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},NC="CHANGE",td="COMMIT",FC="CONTROL",LC="DRAG_END",$C="DRAG_START",VC="DRAG",WC="INVALIDATE",nd="PRESS_DOWN",BC="PRESS_ENTER",sl="PRESS_UP",zC="RESET";function FB(e=Oh){const{value:t}=e;return{...Oh,...e,initialValue:t}}function LB(e){return(t,n)=>{const r={...t};switch(n.type){case FC:return r.value=n.payload.value,r.isDirty=!1,r._event=void 0,r;case sl:r.isDirty=!1;break;case nd:r.isDirty=!1;break;case $C:r.isDragging=!0;break;case LC:r.isDragging=!1;break;case NC:r.error=null,r.value=n.payload.value,t.isPressEnterToChange&&(r.isDirty=!0);break;case td:r.value=n.payload.value,r.isDirty=!1;break;case zC:r.error=null,r.isDirty=!1,r.value=n.payload.value||t.initialValue;break;case WC:r.error=n.payload.error;break}return r._event=n.payload.event,e(r,n)}}function $B(e=NB,t=Oh,n){const[r,s]=m.useReducer(LB(e),FB(t)),i=C=>(_,S)=>{s({type:C,payload:{value:_,event:S}})},o=C=>_=>{s({type:C,payload:{event:_}})},a=C=>_=>{s({type:C,payload:_})},l=i(NC),c=(C,_)=>s({type:WC,payload:{error:C,event:_}}),u=i(zC),d=i(td),h=a($C),g=a(VC),p=a(LC),v=o(sl),x=o(nd),y=o(BC),w=m.useRef(r),b=m.useRef({value:t.value,onChangeHandler:n});return m.useLayoutEffect(()=>{w.current=r,b.current={value:t.value,onChangeHandler:n}}),m.useLayoutEffect(()=>{if(w.current._event!==void 0&&r.value!==b.current.value&&!r.isDirty){var C;b.current.onChangeHandler((C=r.value)!==null&&C!==void 0?C:"",{event:w.current._event})}},[r.value,r.isDirty]),m.useLayoutEffect(()=>{if(t.value!==w.current.value&&!w.current.isDirty){var C;s({type:FC,payload:{value:(C=t.value)!==null&&C!==void 0?C:""}})}},[t.value]),{change:l,commit:d,dispatch:s,drag:g,dragEnd:p,dragStart:h,invalidate:c,pressDown:x,pressEnter:y,pressUp:v,reset:u,state:r}}function Wl(e){return t=>{const{isComposing:n}="nativeEvent"in t?t.nativeEvent:t;n||t.keyCode===229||e(t)}}var hi=()=>{};function VB({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:r,isDragEnabled:s=!1,isPressEnterToChange:i=!1,onBlur:o=hi,onChange:a=hi,onDrag:l=hi,onDragEnd:c=hi,onDragStart:u=hi,onKeyDown:d=hi,onValidate:h=hi,size:g="default",stateReducer:p=b=>b,value:v,type:x,...y},w){const{state:b,change:C,commit:_,drag:S,dragEnd:k,dragStart:T,invalidate:M,pressDown:E,pressEnter:O,pressUp:A,reset:P}=$B(p,{isDragEnabled:s,value:v,isPressEnterToChange:i},a),{value:L,isDragging:F,isDirty:I}=b,j=m.useRef(!1),$=jB(F,t),N=Y=>{o(Y),(I||!Y.target.validity.valid)&&(j.current=!0,B(Y))},z=Y=>{const ie=Y.target.value;C(ie,Y)},B=Y=>{const ie=Y.currentTarget.value;try{h(ie),_(ie,Y)}catch(X){M(X,Y)}},K=Y=>{const{key:ie}=Y;switch(d(Y),ie){case"ArrowUp":A(Y);break;case"ArrowDown":E(Y);break;case"Enter":O(Y),i&&(Y.preventDefault(),B(Y));break;case"Escape":i&&I&&(Y.preventDefault(),P(v,Y));break}},Q=AB(Y=>{const{distance:ie,dragging:X,event:he,target:je}=Y;if(Y.event={...Y.event,target:je},!!ie){if(he.stopPropagation(),!X){c(Y),k(Y);return}l(Y),S(Y),F||(u(Y),T(Y))}},{axis:t==="e"||t==="w"?"x":"y",threshold:n,enabled:s,pointer:{capture:!1}}),re=s?Q():{};return f.jsx(Ju,{...y,...re,className:"components-input-control__input",disabled:e,dragCursor:$,isDragging:F,id:r,onBlur:N,onChange:z,onKeyDown:Wl(K),ref:w,inputSize:g,value:L??"",type:x})}var WB=m.forwardRef(VB),BB=WB,zB=oe("div",{target:"ej5x27r4"})("font-family:",gr("default.fontFamily"),";font-size:",gr("default.fontSize"),";",pS,";"),YB=({__nextHasNoMarginBottom:e=!1})=>!e&&se("margin-bottom:",le(2),";",""),HB=oe("div",{target:"ej5x27r3"})(YB," .components-panel__row &{margin-bottom:inherit;}"),YC=se(SS,";display:block;margin-bottom:",le(2),";padding:0;",""),HC=oe("label",{target:"ej5x27r2"})(YC,";"),UB={name:"11yad0w",styles:"margin-bottom:revert"},GB=({__nextHasNoMarginBottom:e=!1})=>!e&&UB,Jc=oe("p",{target:"ej5x27r1"})("margin-top:",le(2),";margin-bottom:0;font-size:",gr("helpText.fontSize"),";font-style:normal;color:",Z.gray[700],";",GB,";"),qB=oe("span",{target:"ej5x27r0"})(YC,";"),KB=e=>{const{__nextHasNoMarginBottom:t=!1,__associatedWPComponentName:n="BaseControl",id:r,label:s,hideLabelFromVision:i=!1,help:o,className:a,children:l}=Mt(e,"BaseControl");return t||Kt(`Bottom margin styles for wp.components.${n}`,{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."}),f.jsxs(zB,{className:a,children:[f.jsxs(HB,{className:"components-base-control__field",__nextHasNoMarginBottom:t,children:[s&&r&&(i?f.jsx(yr,{as:"label",htmlFor:r,children:s}):f.jsx(HC,{className:"components-base-control__label",htmlFor:r,children:s})),s&&!r&&(i?f.jsx(yr,{as:"label",children:s}):f.jsx(UC,{children:s})),l]}),!!o&&f.jsx(Jc,{id:r?r+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t,children:o})]})},XB=(e,t)=>{const{className:n,children:r,...s}=e;return f.jsx(qB,{ref:t,...s,className:ge("components-base-control__label",n),children:r})},UC=m.forwardRef(XB),ZB=Object.assign(TS(KB,"BaseControl"),{VisualLabel:UC}),Ht=ZB;function Wi({componentName:e,__next40pxDefaultSize:t,size:n,__shouldNotWarnDeprecated36pxSize:r}){r||t||n!==void 0&&n!=="default"||Kt(`36px default size for wp.components.${e}`,{since:"6.8",version:"7.1",hint:"Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version."})}var hf=()=>{};function QB(e){const n=`inspector-input-control-${yt(GC)}`;return e||n}function JB(e,t){const{__next40pxDefaultSize:n,__shouldNotWarnDeprecated36pxSize:r,__unstableStateReducer:s=O=>O,__unstableInputWidth:i,className:o,disabled:a=!1,help:l,hideLabelFromVision:c=!1,id:u,isPressEnterToChange:d=!1,label:h,labelPosition:g="top",onChange:p=hf,onValidate:v=hf,onKeyDown:x=hf,prefix:y,size:w="default",style:b,suffix:C,value:_,...S}=Ll(e),k=QB(u),T=ge("components-input-control",o),M=IB({value:_,onBlur:S.onBlur,onChange:p}),E=l?{"aria-describedby":`${k}__help`}:{};return Wi({componentName:"InputControl",__next40pxDefaultSize:n,size:w,__shouldNotWarnDeprecated36pxSize:r}),f.jsx(Ht,{className:T,help:l,id:k,__nextHasNoMarginBottom:!0,children:f.jsx(EC,{__next40pxDefaultSize:n,__unstableInputWidth:i,disabled:a,gap:3,hideLabelFromVision:c,id:k,justify:"left",label:h,labelPosition:g,prefix:y,size:w,style:b,suffix:C,children:f.jsx(BB,{...S,...E,__next40pxDefaultSize:n,className:"components-input-control__input",disabled:a,id:k,isPressEnterToChange:d,onKeyDown:x,onValidate:v,paddingInlineStart:y?le(1):void 0,paddingInlineEnd:C?le(1):void 0,ref:t,size:w,stateReducer:s,...M})})})}var GC=m.forwardRef(JB),Io=GC;function ez({icon:e,className:t,size:n=20,style:r={},...s}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),a={...n!=20?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...r};return f.jsx("span",{className:i,style:a,...s})}var o0=ez;function tz({icon:e=null,size:t=typeof e=="string"?20:24,...n}){if(typeof e=="string")return f.jsx(o0,{icon:e,size:t,...n});if(m.isValidElement(e)&&o0===e.type)return m.cloneElement(e,{...n});if(typeof e=="function")return m.createElement(e,{size:t,...n});if(e&&(e.type==="svg"||e.type===Re)){const r={...e.props,width:t,height:t,...n};return f.jsx(Re,{...r})}return m.isValidElement(e)?m.cloneElement(e,{size:t,width:t,height:t,...n}):e}var Zt=tz,nz=["onMouseDown","onClick"];function rz({__experimentalIsFocusable:e,isDefault:t,isPrimary:n,isSecondary:r,isTertiary:s,isLink:i,isPressed:o,isSmall:a,size:l,variant:c,describedBy:u,...d}){let h=l,g=c;const p={accessibleWhenDisabled:e,"aria-pressed":o,description:u};if(a){var v;(v=h)!==null&&v!==void 0||(h="small")}if(n){var x;(x=g)!==null&&x!==void 0||(g="primary")}if(s){var y;(y=g)!==null&&y!==void 0||(g="tertiary")}if(r){var w;(w=g)!==null&&w!==void 0||(g="secondary")}if(t){var b;Kt("wp.components.Button `isDefault` prop",{since:"5.4",alternative:'variant="secondary"'}),(b=g)!==null&&b!==void 0||(g="secondary")}if(i){var C;(C=g)!==null&&C!==void 0||(g="link")}return{...p,...d,size:h,variant:g}}function sz(e,t){var X,he;const{__next40pxDefaultSize:n,accessibleWhenDisabled:r,isBusy:s,isDestructive:i,className:o,disabled:a,icon:l,iconPosition:c="left",iconSize:u,showTooltip:d,tooltipPosition:h,shortcut:g,label:p,children:v,size:x="default",text:y,variant:w,description:b,...C}=rz(e),{href:_,target:S,"aria-checked":k,"aria-pressed":T,"aria-selected":M,...E}="href"in C?C:{href:void 0,target:void 0,...C},O=yt(qC,"components-button__description"),A=typeof v=="string"&&!!v||Array.isArray(v)&&(v==null?void 0:v[0])&&v[0]!==null&&((he=(X=v==null?void 0:v[0])==null?void 0:X.props)==null?void 0:he.className)!=="components-tooltip",L=ge("components-button",o,{"is-next-40px-default-size":n,"is-secondary":w==="secondary","is-primary":w==="primary","is-small":x==="small","is-compact":x==="compact","is-tertiary":w==="tertiary","is-pressed":[!0,"true","mixed"].includes(T),"is-pressed-mixed":T==="mixed","is-busy":s,"is-link":w==="link","is-destructive":i,"has-text":!!l&&(A||y),"has-icon":!!l,"has-icon-right":c==="right"}),F=a&&!r,I=_!==void 0&&!a?"a":"button",j=I==="button"?{type:"button",disabled:F,"aria-checked":k,"aria-pressed":T,"aria-selected":M}:{},$=I==="a"?{href:_,target:S}:{},N={};if(a&&r){j["aria-disabled"]=!0,$["aria-disabled"]=!0;for(const je of nz)N[je]=Te=>{Te&&(Te.stopPropagation(),Te.preventDefault())}}const z=!F&&(d&&!!p||!!g||!!p&&!(v!=null&&v.length)&&d!==!1),B=b?O:void 0,K=E["aria-describedby"]||B,Q={className:L,"aria-label":E["aria-label"]||p,"aria-describedby":K,ref:t},re=f.jsxs(f.Fragment,{children:[l&&c==="left"&&f.jsx(Zt,{icon:l,size:u}),y&&f.jsx(f.Fragment,{children:y}),v,l&&c==="right"&&f.jsx(Zt,{icon:l,size:u})]}),Y=I==="a"?f.jsx("a",{...$,...E,...N,...Q,children:re}):f.jsx("button",{...j,...E,...N,...Q,children:re}),ie=z?{text:v!=null&&v.length&&b?b:p,shortcut:g,placement:h&&Ou(h)}:{};return f.jsxs(f.Fragment,{children:[f.jsx(Oo,{...ie,children:Y}),b&&f.jsx(yr,{children:f.jsx("span",{id:B,children:b})})]})}var qC=m.forwardRef(sz),Je=qC,iz={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"},oz=({hideHTMLArrows:e})=>e?iz:"",az=oe(Io,{target:"ep09it41"})(oz,";"),a0=oe(Je,{target:"ep09it40"})("&&&&&{color:",Z.theme.accent,";}"),lz=se("width:",le(5),";min-width:",le(5),";height:",le(5),";",""),cz={smallSpinButtons:lz};function ki(e){const t=Number(e);return isNaN(t)?0:t}function l0(...e){return e.reduce((t,n)=>t+ki(n),0)}function uz(...e){return e.reduce((t,n,r)=>{const s=ki(n);return r===0?s:t-s},0)}function c0(e){const t=(e+"").split(".");return t[1]!==void 0?t[1].length:0}function Zg(e,t,n){const r=ki(e);return Math.max(t,Math.min(r,n))}function dz(e,t,n){const r=ki(e),s=ki(t),i=ki(n),o=Math.max(c0(n),c0(t)),a=s%i?s:0,c=Math.round((r-a)/i)*i+a;return o?ki(c.toFixed(o)):c}var fz={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-end",justify:"flex-start"},bottomRight:{align:"flex-end",justify:"flex-end"},center:{align:"center",justify:"center"},edge:{align:"center",justify:"space-between"},left:{align:"center",justify:"flex-start"},right:{align:"center",justify:"flex-end"},stretch:{align:"stretch"},top:{align:"flex-start",justify:"center"},topLeft:{align:"flex-start",justify:"flex-start"},topRight:{align:"flex-start",justify:"flex-end"}},hz={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-end",align:"flex-start"},bottomRight:{justify:"flex-end",align:"flex-end"},center:{justify:"center",align:"center"},edge:{justify:"space-between",align:"center"},left:{justify:"center",align:"flex-start"},right:{justify:"center",align:"flex-end"},stretch:{align:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function mz(e,t="row"){if(!Pl(e))return{};const r=t==="column"?hz:fz;return e in r?r[e]:{align:e}}function gz(e){return typeof e=="string"?[e]:m.Children.toArray(e).filter(t=>m.isValidElement(t))}function KC(e){const{alignment:t="edge",children:n,direction:r,spacing:s=2,...i}=Mt(e,"HStack"),o=mz(t,r),c={children:gz(n).map((h,g)=>{if(ES(h,["Spacer"])){const v=h,x=v.key||`hstack-${g}`;return f.jsx(Zs,{isBlock:!0,...v.props},x)}return h}),direction:r,justify:"center",...o,...i,gap:s},{isColumn:u,...d}=sC(c);return d}function pz(e,t){const n=KC(e);return f.jsx(mn,{...n,ref:t})}var vz=jt(pz,"HStack"),Ve=vz,yz=()=>{};function bz(e,t){const{__unstableStateReducer:n,className:r,dragDirection:s="n",hideHTMLArrows:i=!1,spinControls:o=i?"none":"native",isDragEnabled:a=!0,isShiftStepEnabled:l=!0,label:c,max:u=1/0,min:d=-1/0,required:h=!1,shiftStep:g=10,step:p=1,spinFactor:v=1,type:x="number",value:y,size:w="default",suffix:b,onChange:C=yz,__shouldNotWarnDeprecated36pxSize:_,...S}=Ll(e);Wi({componentName:"NumberControl",size:w,__next40pxDefaultSize:S.__next40pxDefaultSize,__shouldNotWarnDeprecated36pxSize:_}),i&&Kt("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"});const k=m.useRef(),T=$t([k,t]),M=p==="any",E=M?1:ic(p),O=ic(v)*E,A=(B,K)=>(M||(B=dz(B,d,K??E)),`${Zg(B,d,u)}`),P=A(0),L=x==="number"?"off":void 0,F=ge("components-number-control",r),j=Dn()(w==="small"&&cz.smallSpinButtons),$=(B,K,Q)=>{Q==null||Q.preventDefault();const re=(Q==null?void 0:Q.shiftKey)&&l,Y=re?ic(g)*O:O;let ie=lN(B)?P:B;return K==="up"?ie=l0(ie,Y):K==="down"&&(ie=uz(ie,Y)),A(ie,re?Y:void 0)},N=(B,K)=>{const Q={...B},{type:re,payload:Y}=K,ie=Y.event,X=Q.value;if((re===sl||re===nd)&&(Q.value=$(X,re===sl?"up":"down",ie)),re===VC&&a){const[he,je]=Y.delta,Te=Y.shiftKey&&l,Ue=Te?ic(g)*O:O;let Ae,D;switch(s){case"n":D=je,Ae=-1;break;case"e":D=he,Ae=bn()?-1:1;break;case"s":D=je,Ae=1;break;case"w":D=he,Ae=bn()?1:-1;break}if(D!==0){D=Math.ceil(Math.abs(D))*Math.sign(D);const V=D*Ue*Ae;Q.value=A(l0(X,V),Te?Ue:void 0)}}if(re===BC||re===td){const he=h===!1&&X==="";Q.value=he?X:A(X)}return Q},z=B=>K=>C(String($(y,B,K)),{event:{...K,target:k.current}});return f.jsx(az,{autoComplete:L,inputMode:"numeric",...S,className:F,dragDirection:s,hideHTMLArrows:o!=="native",isDragEnabled:a,label:c,max:u===1/0?void 0:u,min:d===-1/0?void 0:d,ref:T,required:h,step:p,type:x,value:y,__unstableStateReducer:(B,K)=>{var Q;const re=N(B,K);return(Q=n==null?void 0:n(re,K))!==null&&Q!==void 0?Q:re},size:w,__shouldNotWarnDeprecated36pxSize:!0,suffix:o==="custom"?f.jsxs(f.Fragment,{children:[b,f.jsx(Zu,{marginBottom:0,marginRight:2,children:f.jsxs(Ve,{spacing:1,children:[f.jsx(a0,{className:j,icon:J5,size:"small",label:R("Increment"),onClick:z("up")}),f.jsx(a0,{className:j,icon:fC,size:"small",label:R("Decrement"),onClick:z("down")})]})})]}):b,onChange:C})}var xz=m.forwardRef(bz),xs=xz,rd={exports:{}},XC={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",Ĳ:"IJ",ĳ:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ŉ:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},ZC=Object.keys(XC).join("|"),wz=new RegExp(ZC,"g"),Sz=new RegExp(ZC,"");function _z(e){return XC[e]}var QC=function(e){return e.replace(wz,_z)},Cz=function(e){return!!e.match(Sz)};rd.exports=QC;rd.exports.has=Cz;rd.exports.remove=QC;var kz=rd.exports;const JC=hu(kz);function Ti(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ti=function(t){return typeof t}:Ti=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ti(e)}function Tz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ez(e,t,n){return t&&Mz(e.prototype,t),e}function u0(e,t){var n=e._map,r=e._arrayTreeMap,s=e._objectTreeMap;if(n.has(t))return n.get(t);for(var i=Object.keys(t).sort(),o=Array.isArray(t)?r:s,a=0;a<i.length;a++){var l=i[a];if(o=o.get(l),o===void 0)return;var c=t[l];if(o=o.get(c),o===void 0)return}var u=o.get("_ekm_value");if(u)return n.delete(u[0]),u[0]=t,o.set("_ekm_value",u),n.set(t,u),u}var Oz=function(){function e(t){if(Tz(this,e),this.clear(),t instanceof e){var n=[];t.forEach(function(s,i){n.push([i,s])}),t=n}if(t!=null)for(var r=0;r<t.length;r++)this.set(t[r][0],t[r][1])}return Ez(e,[{key:"set",value:function(n,r){if(n===null||Ti(n)!=="object")return this._map.set(n,r),this;for(var s=Object.keys(n).sort(),i=[n,r],o=Array.isArray(n)?this._arrayTreeMap:this._objectTreeMap,a=0;a<s.length;a++){var l=s[a];o.has(l)||o.set(l,new e),o=o.get(l);var c=n[l];o.has(c)||o.set(c,new e),o=o.get(c)}var u=o.get("_ekm_value");return u&&this._map.delete(u[0]),o.set("_ekm_value",i),this._map.set(n,i),this}},{key:"get",value:function(n){if(n===null||Ti(n)!=="object")return this._map.get(n);var r=u0(this,n);if(r)return r[1]}},{key:"has",value:function(n){return n===null||Ti(n)!=="object"?this._map.has(n):u0(this,n)!==void 0}},{key:"delete",value:function(n){return this.has(n)?(this.set(n,void 0),!0):!1}},{key:"forEach",value:function(n){var r=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this;this._map.forEach(function(i,o){o!==null&&Ti(o)==="object"&&(i=i[1]),n.call(s,i,o,r)})}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}]),e}(),Dz=Oz;const ss=hu(Dz);function Pz(e){return!!e&&typeof e[Symbol.iterator]=="function"&&typeof e.next=="function"}var ek={},it={},sd={};Object.defineProperty(sd,"__esModule",{value:!0});var Az={all:Symbol("all"),error:Symbol("error"),fork:Symbol("fork"),join:Symbol("join"),race:Symbol("race"),call:Symbol("call"),cps:Symbol("cps"),subscribe:Symbol("subscribe")};sd.default=Az;Object.defineProperty(it,"__esModule",{value:!0});it.createChannel=it.subscribe=it.cps=it.apply=it.call=it.invoke=it.delay=it.race=it.join=it.fork=it.error=it.all=void 0;var Rz=sd,Gr=jz(Rz);function jz(e){return e&&e.__esModule?e:{default:e}}it.all=function(t){return{type:Gr.default.all,value:t}};it.error=function(t){return{type:Gr.default.error,error:t}};it.fork=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return{type:Gr.default.fork,iterator:t,args:r}};it.join=function(t){return{type:Gr.default.join,task:t}};it.race=function(t){return{type:Gr.default.race,competitors:t}};it.delay=function(t){return new Promise(function(n){setTimeout(function(){return n(!0)},t)})};it.invoke=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return{type:Gr.default.call,func:t,context:null,args:r}};it.call=function(t,n){for(var r=arguments.length,s=Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];return{type:Gr.default.call,func:t,context:n,args:s}};it.apply=function(t,n,r){return{type:Gr.default.call,func:t,context:n,args:r}};it.cps=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return{type:Gr.default.cps,func:t,args:r}};it.subscribe=function(t){return{type:Gr.default.subscribe,channel:t}};it.createChannel=function(t){var n=[],r=function(o){return n.push(o),function(){return n.splice(n.indexOf(o),1)}},s=function(o){return n.forEach(function(a){return a(o)})};return t(s),{subscribe:r}};var Qg={},Fn={},ta={};Object.defineProperty(ta,"__esModule",{value:!0});var Iz=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol?"symbol":typeof e},Nz=sd,Ds=Fz(Nz);function Fz(e){return e&&e.__esModule?e:{default:e}}var kn={obj:function(t){return(typeof t>"u"?"undefined":Iz(t))==="object"&&!!t},all:function(t){return kn.obj(t)&&t.type===Ds.default.all},error:function(t){return kn.obj(t)&&t.type===Ds.default.error},array:Array.isArray,func:function(t){return typeof t=="function"},promise:function(t){return t&&kn.func(t.then)},iterator:function(t){return t&&kn.func(t.next)&&kn.func(t.throw)},fork:function(t){return kn.obj(t)&&t.type===Ds.default.fork},join:function(t){return kn.obj(t)&&t.type===Ds.default.join},race:function(t){return kn.obj(t)&&t.type===Ds.default.race},call:function(t){return kn.obj(t)&&t.type===Ds.default.call},cps:function(t){return kn.obj(t)&&t.type===Ds.default.cps},subscribe:function(t){return kn.obj(t)&&t.type===Ds.default.subscribe},channel:function(t){return kn.obj(t)&&kn.func(t.subscribe)}};ta.default=kn;Object.defineProperty(Fn,"__esModule",{value:!0});Fn.iterator=Fn.array=Fn.object=Fn.error=Fn.any=void 0;var Lz=ta,No=$z(Lz);function $z(e){return e&&e.__esModule?e:{default:e}}var Vz=Fn.any=function(t,n,r,s){return s(t),!0},Wz=Fn.error=function(t,n,r,s,i){return No.default.error(t)?(i(t.error),!0):!1},Bz=Fn.object=function(t,n,r,s,i){if(!No.default.all(t)||!No.default.obj(t.value))return!1;var o={},a=Object.keys(t.value),l=0,c=!1,u=function(g,p){c||(o[g]=p,l++,l===a.length&&s(o))},d=function(g,p){c||(c=!0,i(p))};return a.map(function(h){r(t.value[h],function(g){return u(h,g)},function(g){return d(h,g)})}),!0},zz=Fn.array=function(t,n,r,s,i){if(!No.default.all(t)||!No.default.array(t.value))return!1;var o=[],a=0,l=!1,c=function(h,g){l||(o[h]=g,a++,a===t.value.length&&s(o))},u=function(h,g){l||(l=!0,i(g))};return t.value.map(function(d,h){r(d,function(g){return c(h,g)},function(g){return u(h,g)})}),!0},Yz=Fn.iterator=function(t,n,r,s,i){return No.default.iterator(t)?(r(t,n,i),!0):!1};Fn.default=[Wz,Yz,zz,Bz,Vz];Object.defineProperty(Qg,"__esModule",{value:!0});var Hz=Fn,Uz=tk(Hz),Gz=ta,qz=tk(Gz);function tk(e){return e&&e.__esModule?e:{default:e}}function d0(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var Kz=function(){var t=arguments.length<=0||arguments[0]===void 0?[]:arguments[0],n=[].concat(d0(t),d0(Uz.default)),r=function s(i){var o=arguments.length<=1||arguments[1]===void 0?function(){}:arguments[1],a=arguments.length<=2||arguments[2]===void 0?function(){}:arguments[2],l=function(d){var h=function(v){return function(x){try{var y=v?d.throw(x):d.next(x),w=y.value,b=y.done;if(b)return o(w);g(w)}catch(C){return a(C)}}},g=function p(v){n.some(function(x){return x(v,p,s,h(!1),h(!0))})};h(!1)()},c=qz.default.iterator(i)?i:regeneratorRuntime.mark(function u(){return regeneratorRuntime.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,i;case 2:return h.abrupt("return",h.sent);case 3:case"end":return h.stop()}},u,this)})();l(c)};return r};Qg.default=Kz;var dr={},Jg={};Object.defineProperty(Jg,"__esModule",{value:!0});var Xz=function(){var t=[];return{subscribe:function(r){return t.push(r),function(){t=t.filter(function(s){return s!==r})}},dispatch:function(r){t.slice().forEach(function(s){return s(r)})}}};Jg.default=Xz;Object.defineProperty(dr,"__esModule",{value:!0});dr.race=dr.join=dr.fork=dr.promise=void 0;var Zz=ta,Ni=nk(Zz),Qz=it,Jz=Jg,e4=nk(Jz);function nk(e){return e&&e.__esModule?e:{default:e}}var t4=dr.promise=function(t,n,r,s,i){return Ni.default.promise(t)?(t.then(n,i),!0):!1},Dh=new Map,n4=dr.fork=function(t,n,r){if(!Ni.default.fork(t))return!1;var s=Symbol("fork"),i=(0,e4.default)();Dh.set(s,i),r(t.iterator.apply(null,t.args),function(a){return i.dispatch(a)},function(a){return i.dispatch((0,Qz.error)(a))});var o=i.subscribe(function(){o(),Dh.delete(s)});return n(s),!0},r4=dr.join=function(t,n,r,s,i){if(!Ni.default.join(t))return!1;var o=Dh.get(t.task);return o?function(){var a=o.subscribe(function(l){a(),n(l)})}():i("join error : task not found"),!0},s4=dr.race=function(t,n,r,s,i){if(!Ni.default.race(t))return!1;var o=!1,a=function(u,d,h){o||(o=!0,u[d]=h,n(u))},l=function(u){o||i(u)};return Ni.default.array(t.competitors)?function(){var c=t.competitors.map(function(){return!1});t.competitors.forEach(function(u,d){r(u,function(h){return a(c,d,h)},l)})}():function(){var c=Object.keys(t.competitors).reduce(function(u,d){return u[d]=!1,u},{});Object.keys(t.competitors).forEach(function(u){r(t.competitors[u],function(d){return a(c,u,d)},l)})}(),!0},i4=function(t,n){if(!Ni.default.subscribe(t))return!1;if(!Ni.default.channel(t.channel))throw new Error('the first argument of "subscribe" must be a valid channel');var r=t.channel.subscribe(function(s){r&&r(),n(s)});return!0};dr.default=[t4,n4,r4,s4,i4];var Fi={};Object.defineProperty(Fi,"__esModule",{value:!0});Fi.cps=Fi.call=void 0;var o4=ta,rk=a4(o4);function a4(e){return e&&e.__esModule?e:{default:e}}function l4(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var c4=Fi.call=function(t,n,r,s,i){if(!rk.default.call(t))return!1;try{n(t.func.apply(t.context,t.args))}catch(o){i(o)}return!0},u4=Fi.cps=function(t,n,r,s,i){var o;return rk.default.cps(t)?((o=t.func).call.apply(o,[null].concat(l4(t.args),[function(a,l){a?i(a):n(l)}])),!0):!1};Fi.default=[c4,u4];(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.wrapControls=e.asyncControls=e.create=void 0;var t=it;Object.keys(t).forEach(function(c){c!=="default"&&Object.defineProperty(e,c,{enumerable:!0,get:function(){return t[c]}})});var n=Qg,r=l(n),s=dr,i=l(s),o=Fi,a=l(o);function l(c){return c&&c.__esModule?c:{default:c}}e.create=r.default,e.asyncControls=i.default,e.wrapControls=a.default})(ek);function sk(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function Ph(e){return qx(e)&&typeof e.type=="string"}function d4(e,t){return Ph(e)&&e.type===t}function f4(e={},t){const n=Object.entries(e).map(([i,o])=>(a,l,c,u,d)=>{if(!d4(a,i))return!1;const h=o(a);return sk(h)?h.then(u,d):u(h),!0}),r=(i,o)=>Ph(i)?(t(i),o(),!0):!1;n.push(r);const s=ek.create(n);return i=>new Promise((o,a)=>s(i,l=>{Ph(l)&&t(l),o(l)},a))}function h4(e={}){return t=>{const n=f4(e,t.dispatch);return r=>s=>Pz(s)?n(s):r(s)}}var m4=["@wordpress/admin-ui","@wordpress/api-fetch","@wordpress/block-directory","@wordpress/block-editor","@wordpress/block-library","@wordpress/blocks","@wordpress/boot","@wordpress/commands","@wordpress/compose","@wordpress/connectors","@wordpress/workflows","@wordpress/components","@wordpress/content-types","@wordpress/core-commands","@wordpress/core-data","@wordpress/customize-widgets","@wordpress/data","@wordpress/edit-post","@wordpress/edit-site","@wordpress/edit-widgets","@wordpress/editor","@wordpress/font-list-route","@wordpress/format-library","@wordpress/patterns","@wordpress/preferences","@wordpress/reusable-blocks","@wordpress/rich-text","@wordpress/route","@wordpress/router","@wordpress/routes","@wordpress/storybook","@wordpress/sync","@wordpress/theme","@wordpress/dataviews","@wordpress/fields","@wordpress/lazy-editor","@wordpress/media-editor","@wordpress/media-utils","@wordpress/upload-media","@wordpress/global-styles-ui","@wordpress/ui","@wordpress/views"],ep=(e,t)=>{if(!m4.includes(t))throw new Error(`You tried to opt-in to unstable APIs as module "${t}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);return{lock:g4,unlock:p4}};function g4(e,t){if(!e)throw new Error("Cannot lock an undefined object.");const n=e;Fa in n||(n[Fa]={}),ik.set(n[Fa],t)}function p4(e){if(!e)throw new Error("Cannot unlock an undefined object.");const t=e;if(!(Fa in t))throw new Error("Cannot unlock an object that was not locked before. ");return ik.get(t[Fa])}var ik=new WeakMap,Fa=Symbol("Private API ID"),v4=(e=!1)=>(...t)=>(...n)=>{const r=t.flat();return e&&r.reverse(),r.reduce((s,i)=>[i(...s)],n)[0]},y4=v4(!0),b4=y4;function x4(e){const t=Object.keys(e);return function(r={},s){const i={};let o=!1;for(const a of t){const l=e[a],c=r[a],u=l(c,s);i[a]=u,o=o||u!==c}return o?i:r}}function mf(e){return e.isRegistryControl=!0,e}var w4="@@data/SELECT",S4="@@data/RESOLVE_SELECT",_4="@@data/DISPATCH",C4={[w4]:mf(e=>({storeKey:t,selectorName:n,args:r})=>e.select(t)[n](...r)),[S4]:mf(e=>({storeKey:t,selectorName:n,args:r})=>{const i=e.select(t)[n].hasResolver?"resolveSelect":"select";return e[i](t)[n](...r)}),[_4]:mf(e=>({storeKey:t,actionName:n,args:r})=>e.dispatch(t)[n](...r))},{lock:vi,unlock:Xi}=ep("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/data"),k4=()=>e=>t=>sk(t)?t.then(n=>{if(n)return e(n)}):e(t),T4=k4,M4=(e,t)=>()=>n=>r=>{const s=e.select(t).getCachedResolvers();return Object.entries(s).forEach(([o,a])=>{var u,d;const l=(d=(u=e.stores[t])==null?void 0:u.resolvers)==null?void 0:d[o];if(!l||!l.shouldInvalidate)return;const{shouldInvalidate:c}=l;a.forEach((h,g)=>{h!==void 0&&(h.status!=="finished"&&h.status!=="error"||c(r,...g)&&e.dispatch(t).invalidateResolution(o,g))})}),n(r)},E4=M4;function O4(e){return()=>t=>n=>typeof n=="function"?n(e):t(n)}var D4=e=>t=>(n={},r)=>{const s=r[e];if(s===void 0)return n;const i=t(n[s],r);return i===n[s]?n:{...n,[s]:i}};function Is(e){if(e==null)return[];const t=e.length;let n=t;for(;n>0&&e[n-1]===void 0;)n--;return n===t?e:e.slice(0,n)}var P4=D4("selectorName")((e=new ss,t)=>{switch(t.type){case"START_RESOLUTION":{const n=new ss(e);return n.set(Is(t.args),{status:"resolving"}),n}case"FINISH_RESOLUTION":{const n=new ss(e);return n.set(Is(t.args),{status:"finished"}),n}case"FAIL_RESOLUTION":{const n=new ss(e);return n.set(Is(t.args),{status:"error",error:t.error}),n}case"START_RESOLUTIONS":{const n=new ss(e);for(const r of t.args)n.set(Is(r),{status:"resolving"});return n}case"FINISH_RESOLUTIONS":{const n=new ss(e);for(const r of t.args)n.set(Is(r),{status:"finished"});return n}case"FAIL_RESOLUTIONS":{const n=new ss(e);return t.args.forEach((r,s)=>{const i={status:"error",error:void 0},o=t.errors[s];o&&(i.error=o),n.set(Is(r),i)}),n}case"INVALIDATE_RESOLUTION":{const n=new ss(e);return n.delete(Is(t.args)),n}}return e}),A4=(e={},t)=>{switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":{if(t.selectorName in e){const{[t.selectorName]:n,...r}=e;return r}return e}case"START_RESOLUTION":case"FINISH_RESOLUTION":case"FAIL_RESOLUTION":case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":case"FAIL_RESOLUTIONS":case"INVALIDATE_RESOLUTION":return P4(e,t);default:return e}},R4=A4,gf={};function j4(e){return[e]}function I4(e){return!!e&&typeof e=="object"}function N4(){var e={clear:function(){e.head=null}};return e}function f0(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function F4(e,t){var n,r=t||j4;function s(a){var l=n,c=!0,u,d,h,g;for(u=0;u<a.length;u++){if(d=a[u],!I4(d)){c=!1;break}l.has(d)?l=l.get(d):(h=new WeakMap,l.set(d,h),l=h)}return l.has(gf)||(g=N4(),g.isUniqueByDependants=c,l.set(gf,g)),l.get(gf)}function i(){n=new WeakMap}function o(){var a=arguments.length,l,c,u,d,h;for(d=new Array(a),u=0;u<a;u++)d[u]=arguments[u];for(h=r.apply(null,d),l=s(h),l.isUniqueByDependants||(l.lastDependants&&!f0(h,l.lastDependants,0)&&l.clear(),l.lastDependants=h),c=l.head;c;){if(!f0(c.args,d,1)){c=c.next;continue}return c!==l.head&&(c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=l.head,c.prev=null,l.head.prev=c,l.head=c),c.val}return c={val:e.apply(null,d)},d[0]=null,c.args=d,l.head&&(l.head.prev=c,c.next=l.head),l.head=c,c.val}return o.getDependants=r,o.clear=i,i(),o}function Bi(e,t,n){const r=e[t];if(r)return r.get(Is(n))}function L4(e,t,n){Kt("wp.data.select( store ).getIsResolving",{since:"6.6",version:"6.8",alternative:"wp.data.select( store ).getResolutionState"});const r=Bi(e,t,n);return r&&r.status==="resolving"}function $4(e,t,n){return Bi(e,t,n)!==void 0}function V4(e,t,n){var s;const r=(s=Bi(e,t,n))==null?void 0:s.status;return r==="finished"||r==="error"}function W4(e,t,n){var r;return((r=Bi(e,t,n))==null?void 0:r.status)==="error"}function B4(e,t,n){const r=Bi(e,t,n);return(r==null?void 0:r.status)==="error"?r.error:null}function z4(e,t,n){var r;return((r=Bi(e,t,n))==null?void 0:r.status)==="resolving"}function Y4(e){return e}function H4(e){return Object.values(e).some(t=>Array.from(t._map.values()).some(n=>{var r;return((r=n[1])==null?void 0:r.status)==="resolving"}))}var U4=F4(e=>{const t={};return Object.values(e).forEach(n=>Array.from(n._map.values()).forEach(r=>{var i;const s=((i=r[1])==null?void 0:i.status)??"error";t[s]||(t[s]=0),t[s]++})),t},e=>[e]);const G4=Object.freeze(Object.defineProperty({__proto__:null,countSelectorsByStatus:U4,getCachedResolvers:Y4,getIsResolving:L4,getResolutionError:B4,getResolutionState:Bi,hasFinishedResolution:V4,hasResolutionFailed:W4,hasResolvingSelectors:H4,hasStartedResolution:$4,isResolving:z4},Symbol.toStringTag,{value:"Module"}));function ok(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function ak(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function lk(e,t,n){return{type:"FAIL_RESOLUTION",selectorName:e,args:t,error:n}}function q4(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function K4(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function X4(e,t,n){return{type:"FAIL_RESOLUTIONS",selectorName:e,args:t,errors:n}}function Z4(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function Q4(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function J4(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}const e6=Object.freeze(Object.defineProperty({__proto__:null,failResolution:lk,failResolutions:X4,finishResolution:ak,finishResolutions:K4,invalidateResolution:Z4,invalidateResolutionForStore:Q4,invalidateResolutionForStoreSelector:J4,startResolution:ok,startResolutions:q4},Symbol.toStringTag,{value:"Module"}));var pf=e=>{const t=[...e];for(let n=t.length-1;n>=0;n--)t[n]===void 0&&t.splice(n,1);return t},Ns=(e,t)=>Object.fromEntries(Object.entries(e??{}).map(([n,r])=>[n,t(r,n)])),t6=(e,t)=>t instanceof Map?Object.fromEntries(t):typeof window<"u"&&t instanceof window.HTMLElement?null:t;function n6(){const e={};return{isRunning(t,n){return!!(e[t]&&e[t].get(pf(n)))},clear(t,n){e[t]&&e[t].delete(pf(n))},markAsRunning(t,n){e[t]||(e[t]=new ss),e[t].set(pf(n),!0)}}}function dc(e,t){const n=new WeakMap;return{get(r){const s=e(r);if(!s)return null;let i=n.get(s);return i||(i=t(s,r),n.set(s,i)),i}}}function fc(e,t){return new Proxy(e,{get:(n,r)=>t.get(r)||Reflect.get(n,r)})}function h0(e,t){const n={},r={},s={privateActions:n,registerPrivateActions:o=>{Object.assign(n,o)},privateSelectors:r,registerPrivateSelectors:o=>{Object.assign(r,o)}},i={name:e,instantiate:o=>{const a=new Set,l=t.reducer,u=r6(e,t,o,{registry:o,get dispatch(){return v},get select(){return T},get resolveSelect(){return E}});vi(u,s);const d=n6();function h(B){return(...K)=>Promise.resolve(u.dispatch(B(...K)))}const g={...Ns(e6,h),...Ns(t.actions,h)},p=fc(g,dc(B=>n[B],h)),v=new Proxy(B=>u.dispatch(B),{get:(B,K)=>p[K]});vi(g,p);const x=t.resolvers?Ns(t.resolvers,o6):{};function y(B,K){B.isRegistrySelector&&(B.registry=o);const Q=(...Y)=>{Y=Ah(B,Y);const ie=u.__unstableOriginalGetState();return B.isRegistrySelector&&(B.registry=o),B(ie.root,...Y)};Q.__unstableNormalizeArgs=B.__unstableNormalizeArgs;const re=x[K];return re?a6(Q,K,re,u,d,b):(Q.hasResolver=!1,Q)}function w(B){const K=(Q,re,...Y)=>{var X;if(Q){const he=(X=t.selectors)==null?void 0:X[Q];he&&(re=Ah(he,re))}const ie=u.__unstableOriginalGetState();return B(ie.metadata,Q,re,...Y)};return K.hasResolver=!1,K}const b=Ns(G4,w),C=Ns(t.selectors,y),_={...b,...C},S=dc(B=>r[B],y),k=fc(_,S);for(const B of Object.keys(r))S.get(B);const T=new Proxy(B=>B(u.__unstableOriginalGetState()),{get:(B,K)=>k[K]});vi(_,k);const M=s6(u,x,b),E=Ns(C,M),O=fc(E,dc(B=>S.get(B),M));vi(E,O);const A=i6(u,b),P={...b,...Ns(C,A)},L=fc(P,dc(B=>S.get(B),A));vi(P,L);const F=()=>_,I=()=>g,j=()=>E,$=()=>P;u.__unstableOriginalGetState=u.getState,u.getState=()=>u.__unstableOriginalGetState().root;const N=B=>(a.add(B),()=>a.delete(B));let z=u.__unstableOriginalGetState();return u.subscribe(()=>{const B=u.__unstableOriginalGetState(),K=B!==z;if(z=B,K)for(const Q of a)Q()}),{reducer:l,store:u,actions:g,selectors:_,resolvers:x,getSelectors:F,getResolveSelectors:j,getSuspendSelectors:$,getActions:I,subscribe:N}}};return vi(i,s),i}function r6(e,t,n,r){const s={...t.controls,...C4},i=Ns(s,d=>d.isRegistryControl?d(n):d),o=[E4(n,e),T4,h4(i),O4(r)],a=[HE(...o)];typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&a.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e,serialize:{replacer:t6}}));const{reducer:l,initialState:c}=t,u=x4({metadata:R4,root:l});return UE(u,{root:c},b4(...a))}function s6(e,t,n){return(r,s)=>r.hasResolver?(...i)=>new Promise((o,a)=>{const l=t[s],c=()=>n.hasFinishedResolution(s,i)||typeof l.isFulfilled=="function"&&l.isFulfilled(e.getState(),...i),u=p=>{if(n.hasResolutionFailed(s,i)){const x=n.getResolutionError(s,i);a(x)}else o(p)},d=()=>r(...i),h=d();if(c())return u(h);const g=e.subscribe(()=>{c()&&(g(),u(d()))})}):async(...i)=>r(...i)}function i6(e,t){return(n,r)=>n.hasResolver?(...s)=>{const i=n(...s);if(t.hasFinishedResolution(r,s)){if(t.hasResolutionFailed(r,s))throw t.getResolutionError(r,s);return i}throw new Promise(o=>{const a=e.subscribe(()=>{t.hasFinishedResolution(r,s)&&(o(),a())})})}:n}function o6(e){return e.fulfill?e:{...e,fulfill:e}}function a6(e,t,n,r,s,i){function o(l){s.isRunning(t,l)||i.hasStartedResolution(t,l)||typeof n.isFulfilled=="function"&&n.isFulfilled(r.getState(),...l)||(s.markAsRunning(t,l),setTimeout(async()=>{s.clear(t,l),r.dispatch(ok(t,l));try{const c=n.fulfill(...l);c&&await r.dispatch(c),r.dispatch(ak(t,l))}catch(c){r.dispatch(lk(t,l,c))}},0))}const a=(...l)=>(l=Ah(e,l),o(l),e(...l));return a.hasResolver=!0,a}function Ah(e,t){return e.__unstableNormalizeArgs&&typeof e.__unstableNormalizeArgs=="function"&&(t!=null&&t.length)?e.__unstableNormalizeArgs(t):t}var l6={name:"core/data",instantiate(e){const t=r=>(s,...i)=>e.select(s)[r](...i),n=r=>(s,...i)=>e.dispatch(s)[r](...i);return{getSelectors(){return Object.fromEntries(["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].map(r=>[r,t(r)]))},getActions(){return Object.fromEntries(["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].map(r=>[r,n(r)]))},subscribe(){return()=>()=>{}}}}},c6=l6;function m0(){let e=!1,t=!1;const n=new Set,r=()=>Array.from(n).forEach(s=>s());return{get isPaused(){return e},subscribe(s){return n.add(s),()=>n.delete(s)},pause(){e=!0},resume(){e=!1,t&&(t=!1,r())},emit(){if(e){t=!0;return}r()}}}function fa(e){return typeof e=="string"?e:e.name}function u6(e={},t=null){const n={},r=m0();let s=null;function i(){r.emit()}const o=(_,S)=>{if(!S)return r.subscribe(_);const k=fa(S),T=n[k];return T?T.subscribe(_):t?t.subscribe(_,S):r.subscribe(_)};function a(_){const S=fa(_);s==null||s.add(S);const k=n[S];return k?k.getSelectors():t==null?void 0:t.select(S)}function l(_,S){s=new Set;try{return _.call(this)}finally{S.current=Array.from(s),s=null}}function c(_){const S=fa(_);s==null||s.add(S);const k=n[S];return k?k.getResolveSelectors():t&&t.resolveSelect(S)}function u(_){const S=fa(_);s==null||s.add(S);const k=n[S];return k?k.getSuspendSelectors():t&&t.suspendSelect(S)}function d(_){const S=fa(_),k=n[S];return k?k.getActions():t&&t.dispatch(S)}function h(_){return Object.fromEntries(Object.entries(_).map(([S,k])=>typeof k!="function"?[S,k]:[S,(...T)=>w[S](...T)]))}function g(_,S){if(n[_])return console.error('Store "'+_+'" is already registered.'),n[_];const k=S();if(typeof k.getSelectors!="function")throw new TypeError("store.getSelectors must be a function");if(typeof k.getActions!="function")throw new TypeError("store.getActions must be a function");if(typeof k.subscribe!="function")throw new TypeError("store.subscribe must be a function");k.emitter=m0();const T=k.subscribe;if(k.subscribe=M=>{const E=k.emitter.subscribe(M),O=T(()=>{if(k.emitter.isPaused){k.emitter.emit();return}M()});return()=>{O==null||O(),E==null||E()}},n[_]=k,k.subscribe(i),t)try{Xi(k.store).registerPrivateActions(Xi(t).privateActionsOf(_)),Xi(k.store).registerPrivateSelectors(Xi(t).privateSelectorsOf(_))}catch{}return k}function p(_){g(_.name,()=>_.instantiate(w))}function v(_,S){Kt("wp.data.registerGenericStore",{since:"5.9",alternative:"wp.data.register( storeDescriptor )"}),g(_,()=>S)}function x(_,S){if(!S.reducer)throw new TypeError("Must specify store reducer");return g(_,()=>h0(_,S).instantiate(w)).store}function y(_){if(r.isPaused){_();return}r.pause(),Object.values(n).forEach(S=>S.emitter.pause());try{_()}finally{r.resume(),Object.values(n).forEach(S=>S.emitter.resume())}}let w={batch:y,stores:n,namespaces:n,subscribe:o,select:a,resolveSelect:c,suspendSelect:u,dispatch:d,use:b,register:p,registerGenericStore:v,registerStore:x,__unstableMarkListeningStores:l};function b(_,S){if(_)return w={...w,..._(w,S)},w}w.register(c6);for(const[_,S]of Object.entries(e))w.register(h0(_,S));t&&t.subscribe(i);const C=h(w);return vi(C,{privateActionsOf:_=>{try{return Xi(n[_].store).privateActions}catch{return{}}},privateSelectorsOf:_=>{try{return Xi(n[_].store).privateSelectors}catch{return{}}}}),C}var d6=u6(),id=d6,tp=m.createContext(id);tp.displayName="RegistryProviderContext";var{Consumer:ioe,Provider:ooe}=tp;function od(){return m.useContext(tp)}id.registerGenericStore;id.registerStore;id.use;function f6(e){if(!(typeof document>"u")){if(document.readyState==="complete"||document.readyState==="interactive")return void e();document.addEventListener("DOMContentLoaded",e)}}function g0(e="polite"){const t=document.createElement("div");t.id=`a11y-speak-${e}`,t.className="a11y-speak-region",t.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;word-break:normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(t),t}function h6(){const e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=R("Notifications"),e.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;word-break:normal !important;"),e.setAttribute("hidden","");const{body:t}=document;return t&&t.appendChild(e),e}function m6(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let n=0;n<e.length;n++)e[n].textContent="";t&&t.setAttribute("hidden","hidden")}var p0="";function g6(e){return e=e.replace(/<[^<>]+>/g," "),p0===e&&(e+=" "),p0=e,e}function hc(e,t){m6(),e=g6(e);const n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),s=document.getElementById("a11y-speak-polite");r&&t==="assertive"?r.textContent=e:s&&(s.textContent=e),n&&n.removeAttribute("hidden")}function p6(){const e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");e===null&&h6(),t===null&&g0("assertive"),n===null&&g0("polite")}f6(p6);var v6=new RegExp(/[\u007e\u00ad\u2053\u207b\u208b\u2212\p{Pd}]/gu),y6=e=>JC(e).normalize("NFKC").toLocaleLowerCase().replace(v6,"-");function b6(e){var r;var t;let n=(t=(r=e==null?void 0:e.toString)==null?void 0:r.call(e))!==null&&t!==void 0?t:"";return n=n.replace(/['\u2019]/,""),Kx(n,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}const x6=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?eh({element:r.current,padding:s}).fn(n):{}:r?eh({element:r,padding:s}).fn(n):{}}}};var Ec=typeof document<"u"?m.useLayoutEffect:m.useEffect;function eu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!eu(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!eu(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ck(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function v0(e,t){const n=ck(e);return Math.round(t*n)/n}function y0(e){const t=m.useRef(e);return Ec(()=>{t.current=e}),t}function w6(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=m.useState(r);eu(h,r)||g(r);const[p,v]=m.useState(null),[x,y]=m.useState(null),w=m.useCallback(j=>{j!==S.current&&(S.current=j,v(j))},[]),b=m.useCallback(j=>{j!==k.current&&(k.current=j,y(j))},[]),C=i||p,_=o||x,S=m.useRef(null),k=m.useRef(null),T=m.useRef(u),M=l!=null,E=y0(l),O=y0(s),A=m.useCallback(()=>{if(!S.current||!k.current)return;const j={placement:t,strategy:n,middleware:h};O.current&&(j.platform=O.current),x1(S.current,k.current,j).then($=>{const N={...$,isPositioned:!0};P.current&&!eu(T.current,N)&&(T.current=N,Hs.flushSync(()=>{d(N)}))})},[h,t,n,O]);Ec(()=>{c===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(j=>({...j,isPositioned:!1})))},[c]);const P=m.useRef(!1);Ec(()=>(P.current=!0,()=>{P.current=!1}),[]),Ec(()=>{if(C&&(S.current=C),_&&(k.current=_),C&&_){if(E.current)return E.current(C,_,A);A()}},[C,_,A,E,M]);const L=m.useMemo(()=>({reference:S,floating:k,setReference:w,setFloating:b}),[w,b]),F=m.useMemo(()=>({reference:C,floating:_}),[C,_]),I=m.useMemo(()=>{const j={position:n,left:0,top:0};if(!F.floating)return j;const $=v0(F.floating,u.x),N=v0(F.floating,u.y);return a?{...j,transform:"translate("+$+"px, "+N+"px)",...ck(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:N}},[n,a,F.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:A,refs:L,elements:F,floatingStyles:I}),[u,A,L,F,I])}var b0=0;function x0(e){const t=document.scrollingElement||document.body;e&&(b0=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=b0)}var mc=0;function S6(){return m.useEffect(()=>(mc===0&&x0(!0),++mc,()=>{mc===1&&x0(!1),--mc}),[]),null}var _6=S6,C6={slots:Fc(),fills:Fc(),registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},updateFill:()=>{}},uk=m.createContext(C6);uk.displayName="SlotFillContext";var dk=uk;function k6({name:e,children:t}){const n=m.useContext(dk),r=m.useRef({}),s=m.useRef(t);return m.useLayoutEffect(()=>{s.current=t},[t]),m.useLayoutEffect(()=>{const i=r.current;return n.registerFill(e,i,s.current),()=>n.unregisterFill(e,i)},[n,e]),m.useLayoutEffect(()=>{n.updateFill(e,r.current,s.current)}),null}function w0(e){return typeof e=="function"}function T6(e){return m.Children.map(e,(t,n)=>{if(!t||typeof t=="string")return t;let r=n;return typeof t=="object"&&"key"in t&&(t!=null&&t.key)&&(r=t.key),m.cloneElement(t,{key:r})})}function M6(e){var t;const n=m.useContext(dk),r=m.useRef({}),{name:s,children:i,fillProps:o={}}=e;m.useLayoutEffect(()=>{const u=r.current;return n.registerSlot(s,u),()=>n.unregisterSlot(s,u)},[n,s]);let a=(t=Lc(n.fills,s))!==null&&t!==void 0?t:[];Lc(n.slots,s)!==r.current&&(a=[]);const c=a.map(u=>{const d=w0(u.children)?u.children(o):u.children;return T6(d)}).filter(u=>!IO(u));return f.jsx(f.Fragment,{children:w0(i)?i(c):c})}var E6=M6,O6={slots:Fc(),fills:Fc(),registerSlot:()=>{globalThis.SCRIPT_DEBUG===!0&&nr("Components must be wrapped within `SlotFillProvider`. See https://developer.wordpress.org/block-editor/components/slot-fill/")},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},isDefault:!0},fk=m.createContext(O6);fk.displayName="SlotFillContext";var np=fk;let gc;const D6=new Uint8Array(16);function P6(){if(!gc&&(gc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!gc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gc(D6)}const Jt=[];for(let e=0;e<256;++e)Jt.push((e+256).toString(16).slice(1));function A6(e,t=0){return Jt[e[t+0]]+Jt[e[t+1]]+Jt[e[t+2]]+Jt[e[t+3]]+"-"+Jt[e[t+4]]+Jt[e[t+5]]+"-"+Jt[e[t+6]]+Jt[e[t+7]]+"-"+Jt[e[t+8]]+Jt[e[t+9]]+"-"+Jt[e[t+10]]+Jt[e[t+11]]+Jt[e[t+12]]+Jt[e[t+13]]+Jt[e[t+14]]+Jt[e[t+15]]}const R6=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),S0={randomUUID:R6};function _0(e,t,n){if(S0.randomUUID&&!e)return S0.randomUUID();e=e||{};const r=e.random||(e.rng||P6)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,A6(r)}var C0=new Set,vf=new WeakMap,j6=e=>{if(vf.has(e))return vf.get(e);let t=_0().replace(/[0-9]/g,"");for(;C0.has(t);)t=_0().replace(/[0-9]/g,"");C0.add(t);const n=lg({container:e,key:t});return vf.set(e,n),n};function hk(e){const{children:t,document:n}=e;if(!n)return null;const r=j6(n.head);return f.jsx(iF,{value:r,children:t})}var mk=hk;function I6({name:e,children:t}){var n;const r=m.useContext(np),s=Lc(r.slots,e),i=m.useRef({});if(m.useEffect(()=>{const a=i.current;return r.registerFill(e,a),()=>r.unregisterFill(e,a)},[r,e]),!s||!s.ref.current)return null;const o=f.jsx(mk,{document:s.ref.current.ownerDocument,children:typeof t=="function"?t((n=s.fillProps)!==null&&n!==void 0?n:{}):t});return Hs.createPortal(o,s.ref.current)}function N6(e,t){const{name:n,fillProps:r={},as:s,children:i,...o}=e,a=m.useContext(np),l=m.useRef(null),c=m.useRef(r);return m.useLayoutEffect(()=>{c.current=r},[r]),m.useLayoutEffect(()=>(a.registerSlot(n,l,c.current),()=>a.unregisterSlot(n,l)),[a,n]),m.useLayoutEffect(()=>{a.updateSlot(n,l,c.current)}),f.jsx(mn,{as:s,ref:$t([t,l]),...o})}var F6=m.forwardRef(N6);function L6(e){const t=m.useContext(np);return{...Lc(t.slots,e)}}function $6(e){return f.jsxs(f.Fragment,{children:[f.jsx(k6,{...e}),f.jsx(I6,{...e})]})}function V6(e,t){const{bubblesVirtually:n,...r}=e;return n?f.jsx(F6,{...r,ref:t}):f.jsx(E6,{...r})}var W6=m.forwardRef(V6);function B6(){return[{name:"overlay",fn({rects:e}){return e.reference}},Gm({apply({rects:e,elements:t}){var n;const{firstElementChild:r}=(n=t.floating)!==null&&n!==void 0?n:{};r instanceof HTMLElement&&Object.assign(r.style,{width:`${e.reference.width}px`,height:`${e.reference.height}px`})}})]}var gk="Popover",z6=8,Y6=()=>f.jsxs(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation",children:[f.jsx(Le,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),f.jsx(Le,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})]}),rp=m.createContext(void 0);rp.displayName="__unstableSlotNameContext";var k0="components-popover__fallback-container",H6=()=>{let e=document.body.querySelector("."+k0);return e||(e=document.createElement("div"),e.className=k0,document.body.append(e)),e},U6=(e,t)=>{const{animate:n=!0,headerTitle:r,constrainTabbing:s,onClose:i,children:o,className:a,noArrow:l=!0,position:c,placement:u="bottom-start",offset:d=0,focusOnMount:h="firstElement",anchor:g,expandOnMobile:p,onFocusOutside:v,__unstableSlotName:x=gk,flip:y=!0,resize:w=!0,shift:b=!1,inline:C=!1,variant:_,style:S,__unstableForcePosition:k,anchorRef:T,anchorRect:M,getAnchorRect:E,isAlternate:O,...A}=Mt(e,"Popover");let P=y,L=w;k!==void 0&&(Kt("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and  `resize={ false }`"}),P=!k,L=!k),T!==void 0&&Kt("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),M!==void 0&&Kt("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),E!==void 0&&Kt("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const F=O?"toolbar":_;O!==void 0&&Kt("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const I=m.useRef(null),[j,$]=m.useState(null),N=m.useCallback(wt=>{$(wt)},[]),z=oD("medium","<"),B=p&&z,K=!B&&!l,Q=c?Ou(c):u,re=[...u==="overlay"?B6():[],p1(d),P&&y1(),L&&Gm({padding:z6,apply(wt){var Ut;const{firstElementChild:_n}=(Ut=Ae.floating.current)!==null&&Ut!==void 0?Ut:{};_n instanceof HTMLElement&&Object.assign(_n.style,{maxHeight:`${Math.max(0,wt.availableHeight)}px`,overflow:"auto"})}}),b&&v1({crossAxis:!0,limiter:b1(),padding:1}),x6({element:I})],Y=m.useContext(rp)||x,ie=L6(Y);let X;(i||v)&&(X=(wt,Ut)=>{if(wt==="focus-outside"){const _n=Ut==null?void 0:Ut.target,or=Ae.reference.current,An=Ae.floating.current;if(!(or&&"contains"in or&&or.contains(_n)||(An==null?void 0:An.contains(_n))))return;v?v(Ut):i&&i()}else i&&i()});const[he,je]=tD({constrainTabbing:s,focusOnMount:h,__unstableOnClose:X,onClose:X}),{x:Te,y:Ue,refs:Ae,strategy:D,update:V,placement:W,middlewareData:{arrow:H}}=w6({placement:Q==="overlay"?void 0:Q,middleware:re,whileElementsMounted:(wt,Ut,_n)=>g1(wt,Ut,_n,{layoutShift:!1,animationFrame:!0})}),de=m.useCallback(wt=>{I.current=wt,V()},[V]),J=T==null?void 0:T.top,fe=T==null?void 0:T.bottom,ue=T==null?void 0:T.startContainer,me=T==null?void 0:T.current;m.useLayoutEffect(()=>{const wt=WI({anchor:g,anchorRef:T,anchorRect:M,getAnchorRect:E,fallbackReferenceElement:j});Ae.setReference(wt)},[g,T,J,fe,ue,me,M,E,j,Ae]);const Bt=$t([Ae.setFloating,he,t]),xt=B?void 0:{position:D,top:0,left:0,x:ly(Te),y:ly(Ue)},pn=dw(),te=n&&!B&&!pn,[Ee,ht]=m.useState(!1),{style:st,...It}=m.useMemo(()=>LI(W),[W]),zt=te?{style:{...S,...st,...xt},onAnimationComplete:()=>ht(!0),...It}:{animate:!1,style:{...S,...xt}},mt=(!te||Ee)&&Te!==null&&Ue!==null;let Be=f.jsxs(M5.div,{className:ge(a,{"is-expanded":B,"is-positioned":mt,[`is-${F==="toolbar"?"alternate":F}`]:F}),...zt,...A,ref:Bt,...je,tabIndex:-1,children:[B&&f.jsx(_6,{}),B&&f.jsxs("div",{className:"components-popover__header",children:[f.jsx("span",{className:"components-popover__header-title",children:r}),f.jsx(Je,{className:"components-popover__close",size:"small",icon:cC,onClick:i,label:R("Close")})]}),f.jsx("div",{className:"components-popover__content",children:o}),K&&f.jsx("div",{ref:de,className:["components-popover__arrow",`is-${W.split("-")[0]}`].join(" "),style:{left:typeof(H==null?void 0:H.x)<"u"&&Number.isFinite(H.x)?`${H.x}px`:"",top:typeof(H==null?void 0:H.y)<"u"&&Number.isFinite(H.y)?`${H.y}px`:""},children:f.jsx(Y6,{})})]});const Et=ie.ref&&!C,Mr=T||M||g;return Et?Be=f.jsx($6,{name:Y,children:Be}):C||(Be=Hs.createPortal(f.jsx(hk,{document,children:Be}),H6())),Mr?Be:f.jsxs(f.Fragment,{children:[f.jsx("span",{ref:N}),Be]})},G6=m.forwardRef(({name:e=gk},t)=>f.jsx(W6,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})),q6=Object.assign(jt(U6,"Popover"),{Slot:Object.assign(G6,{displayName:"Popover.Slot"}),__unstableSlotNameProvider:Object.assign(rp.Provider,{displayName:"Popover.__unstableSlotNameProvider"})}),K6=q6,X6=({isBlock:e,isDeselectable:t,size:n})=>se("background:",Z.ui.background,";border:1px solid transparent;border-radius:",ae.radiusSmall,";display:inline-flex;min-width:0;position:relative;",eY(n)," ",!t&&Z6(e),"@media not ( prefers-reduced-motion ){&[data-indicator-animated]::before{transition-property:transform,border-radius;transition-duration:0.2s;transition-timing-function:ease-out;}}&::before{content:'';position:absolute;pointer-events:none;background:",Z.theme.foreground,`;outline:2px solid transparent;outline-offset:-3px;--antialiasing-factor:100;border-radius:calc(
				`,ae.radiusXSmall,` /
					(
						var( --selected-width, 0 ) /
							var( --antialiasing-factor )
					)
			)/`,ae.radiusXSmall,`;left:-1px;width:calc( var( --antialiasing-factor ) * 1px );height:calc( var( --selected-height, 0 ) * 1px );transform-origin:left top;transform:translateX( calc( var( --selected-left, 0 ) * 1px ) ) scaleX(
				calc(
					var( --selected-width, 0 ) / var( --antialiasing-factor )
				)
			);}`,""),Z6=e=>{const t=se("border-color:",Z.ui.border,";","");return se(e&&t," &:hover{border-color:",Z.ui.borderHover,";}&:focus-within{border-color:",Z.ui.borderFocus,";box-shadow:",ae.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")},Q6={name:"1aqh2c7",styles:"min-height:40px;padding:3px"},J6={name:"1ndywgm",styles:"min-height:36px;padding:2px"},eY=e=>({default:J6,"__unstable-large":Q6})[e],tY={name:"7whenc",styles:"display:flex;width:100%"},nY=oe("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"}),sp=m.createContext({});sp.displayName="ToggleGroupControlContext";var rY=()=>m.useContext(sp),pk=sp;function vk(e){const t=m.useRef(!0),n=Wa(e),r=m.useRef(!1);m.useEffect(()=>{t.current&&(t.current=!1)},[]);const s=r.current||!t.current&&n!==e;return m.useEffect(()=>{r.current=s},[s]),s?{value:e??"",defaultValue:void 0}:{value:void 0,defaultValue:e}}function sY({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:s,value:i,id:o,setSelectedElement:a,...l},c){const u=yt(yk,"toggle-group-control-as-radio-group"),d=o||u,{value:h,defaultValue:g}=vk(i),v=WR({defaultValue:g,value:h,setValue:r?b=>{r(b??void 0)}:void 0,rtl:bn()}),x=G(v,"value"),y=v.setValue;m.useEffect(()=>{x===""&&v.setActiveId(void 0)},[v,x]);const w=m.useMemo(()=>({activeItemIsNotFirstItem:()=>v.getState().activeId!==v.first(),baseId:d,isBlock:!t,size:s,value:x,setValue:y,setSelectedElement:a}),[d,t,v,x,a,y,s]);return f.jsx(pk.Provider,{value:w,children:f.jsx(LR,{store:v,"aria-label":n,render:f.jsx(mn,{}),...l,id:d,ref:c,children:e})})}var yk=m.forwardRef(sY);function iY({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:s,value:i,id:o,setSelectedElement:a,...l},c){const u=yt(bk,"toggle-group-control-as-button-group"),d=o||u,{value:h,defaultValue:g}=vk(i),[p,v]=Al({defaultValue:g,value:h,onChange:r}),x=m.useMemo(()=>({baseId:d,value:p,setValue:v,isBlock:!t,isDeselectable:!0,size:s,setSelectedElement:a}),[d,p,v,t,s,a]);return f.jsx(pk.Provider,{value:x,children:f.jsx(mn,{"aria-label":n,...l,ref:c,role:"group",children:e})})}var bk=m.forwardRef(iY),Rh={element:void 0,top:0,right:0,bottom:0,left:0,width:0,height:0};function oY(e){var t,n,r;const s=e.getBoundingClientRect();if(s.width===0||s.height===0)return;const i=e.offsetParent,o=(t=i==null?void 0:i.getBoundingClientRect())!==null&&t!==void 0?t:Rh,a=(n=i==null?void 0:i.scrollLeft)!==null&&n!==void 0?n:0,l=(r=i==null?void 0:i.scrollTop)!==null&&r!==void 0?r:0,c=parseFloat(getComputedStyle(e).width),u=parseFloat(getComputedStyle(e).height),d=c/s.width,h=u/s.height;return{element:e,top:(s.top-(o==null?void 0:o.top))*h+l,right:((o==null?void 0:o.right)-s.right)*d-a,bottom:((o==null?void 0:o.bottom)-s.bottom)*h-l,left:(s.left-(o==null?void 0:o.left))*d+a,width:c,height:u}}var aY=100;function xk(e,t=[]){const[n,r]=m.useState(Rh),s=m.useRef(),i=Ai(()=>{if(e&&e.isConnected){const a=oY(e);if(a)return r(a),clearInterval(s.current),!0}else clearInterval(s.current);return!1}),o=mw(()=>{i()||requestAnimationFrame(()=>{i()||(s.current=setInterval(i,aY))})});return m.useLayoutEffect(()=>{o(e),e||r(Rh)},[o,e]),m.useLayoutEffect(()=>{i()},t),n}function lY(e,t){const n=m.useRef(e),r=Ai(t);m.useLayoutEffect(()=>{n.current!==e&&(r({previousValue:n.current}),n.current=e)},[r,e])}function wk(e,t,{prefix:n="subelement",dataAttribute:r=`${n}-animated`,transitionEndFilter:s=()=>!0,roundRect:i=!1}={}){const o=Ai(()=>{Object.keys(t).forEach(a=>a!=="element"&&(e==null?void 0:e.style.setProperty(`--${n}-${a}`,String(i?Math.floor(t[a]):t[a]))))});m.useLayoutEffect(()=>{o()},[t,o]),lY(t.element,({previousValue:a})=>{t.element&&a&&(e==null||e.setAttribute(`data-${r}`,""))}),m.useLayoutEffect(()=>{function a(l){s(l)&&(e==null||e.removeAttribute(`data-${r}`))}return e==null||e.addEventListener("transitionend",a),()=>e==null?void 0:e.removeEventListener("transitionend",a)},[r,e,s])}function cY(e,t){const{__nextHasNoMarginBottom:n=!1,__next40pxDefaultSize:r=!1,__shouldNotWarnDeprecated36pxSize:s,className:i,isAdaptiveWidth:o=!1,isBlock:a=!1,isDeselectable:l=!1,label:c,hideLabelFromVision:u=!1,help:d,onChange:h,size:g="default",value:p,children:v,...x}=Mt(e,"ToggleGroupControl"),y=r&&g==="default"?"__unstable-large":g,[w,b]=m.useState(),[C,_]=m.useState(),S=$t([_,t]),k=xk(p!=null?w:void 0);wk(C,k,{prefix:"selected",dataAttribute:"indicator-animated",transitionEndFilter:O=>O.pseudoElement==="::before",roundRect:!0});const T=Dn(),M=m.useMemo(()=>T(X6({isBlock:a,isDeselectable:l,size:y}),a&&tY,i),[i,T,a,l,y]),E=l?bk:yk;return Wi({componentName:"ToggleGroupControl",size:g,__next40pxDefaultSize:r,__shouldNotWarnDeprecated36pxSize:s}),f.jsxs(Ht,{help:d,__nextHasNoMarginBottom:n,__associatedWPComponentName:"ToggleGroupControl",children:[!u&&f.jsx(nY,{children:f.jsx(Ht.VisualLabel,{children:c})}),f.jsx(E,{...x,setSelectedElement:b,className:M,isAdaptiveWidth:o,label:c,onChange:h,ref:S,size:y,value:p,children:v})]})}var uY=jt(cY,"ToggleGroupControl"),na=uY,dY=oe("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),Sk={name:"82a6rk",styles:"flex:1"},_k=({isDeselectable:e,isIcon:t,isPressed:n,size:r})=>se("align-items:center;appearance:none;background:transparent;border:none;border-radius:",ae.radiusXSmall,";color:",Z.theme.gray[700],";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;@media not ( prefers-reduced-motion ){transition:background ",ae.transitionDurationFast," linear,color ",ae.transitionDurationFast," linear,font-weight 60ms linear;}user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&[disabled]{opacity:0.4;cursor:default;}&:active{background:",Z.ui.background,";}",e&&hY," ",t&&gY({size:r})," ",n&&fY,";",""),fY=se("color:",Z.theme.foregroundInverted,";&:active{background:transparent;}",""),hY=se("color:",Z.theme.foreground,";&:focus{box-shadow:inset 0 0 0 1px ",Z.ui.background,",0 0 0 ",ae.borderWidthFocus," ",Z.theme.accent,";outline:2px solid transparent;}",""),mY=oe("div",{target:"et6ln9s0"})("display:flex;font-size:",ae.fontSize,";line-height:1;"),gY=({size:e="default"})=>{const t={default:"30px","__unstable-large":"32px"};return se("color:",Z.theme.foreground,";height:",t[e],";aspect-ratio:1;padding-left:0;padding-right:0;","")};const pY=Object.freeze(Object.defineProperty({__proto__:null,ButtonContentView:mY,LabelView:dY,buttonView:_k,labelBlock:Sk},Symbol.toStringTag,{value:"Module"}));var{ButtonContentView:T0,LabelView:vY}=pY,yY=({showTooltip:e,text:t,children:n})=>e&&t?f.jsx(Oo,{text:t,placement:"top",children:n}):f.jsx(f.Fragment,{children:n});function Ck(e,t){const n=rY(),r=yt(Ck,n.baseId||"toggle-group-control-option-base"),s=Mt({...e,id:r},"ToggleGroupControlOptionBase"),{isBlock:i=!1,isDeselectable:o=!1,size:a="default"}=n,{className:l,isIcon:c=!1,value:u,children:d,showTooltip:h=!1,disabled:g,...p}=s,v=n.value===u,x=Dn(),y=m.useMemo(()=>x(i&&Sk),[x,i]),w=m.useMemo(()=>x(_k({isDeselectable:o,isIcon:c,isPressed:v,size:a}),l),[x,o,c,v,a,l]),b=()=>{o&&v?n.setValue(void 0):n.setValue(u)},C={...p,className:w,"data-value":u,ref:t},_=m.useRef(null);return m.useLayoutEffect(()=>{v&&_.current&&n.setSelectedElement(_.current)},[v,n]),f.jsx(vY,{ref:_,className:y,children:f.jsx(yY,{showTooltip:h,text:p["aria-label"],children:o?f.jsx("button",{...C,disabled:g,"aria-pressed":v,type:"button",onClick:b,children:f.jsx(T0,{children:d})}):f.jsx(IR,{disabled:g,onFocusVisible:()=>{var k;(!(n.value===null||n.value==="")||(k=n.activeItemIsNotFirstItem)!=null&&k.call(n))&&n.setValue(u)},render:f.jsx("button",{type:"button",...C}),value:u,children:f.jsx(T0,{children:d})})})})}var bY=jt(Ck,"ToggleGroupControlOptionBase"),kk=bY;function xY(e,t){const{label:n,...r}=e,s=r["aria-label"]||n;return f.jsx(kk,{...r,"aria-label":s,ref:t,children:n})}var wY=m.forwardRef(xY),Oi=wY;function SY(e,t){const{icon:n,label:r,...s}=e;return f.jsx(kk,{...s,isIcon:!0,"aria-label":r,showTooltip:!0,ref:t,children:f.jsx(Zt,{icon:n})})}var _Y=m.forwardRef(SY),CY=_Y,yf=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},bf=function(e){return .2126*yf(e.r)+.7152*yf(e.g)+.0722*yf(e.b)};function kY(e){e.prototype.luminance=function(){return t=bf(this.rgba),(n=2)===void 0&&(n=0),r===void 0&&(r=Math.pow(10,n)),Math.round(r*t)/r+0;var t,n,r},e.prototype.contrast=function(t){t===void 0&&(t="#FFF");var n,r,s,i,o,a,l,c=t instanceof e?t:new e(t);return i=this.rgba,o=c.toRgb(),a=bf(i),l=bf(o),n=a>l?(a+.05)/(l+.05):(l+.05)/(a+.05),(r=2)===void 0&&(r=0),s===void 0&&(s=Math.pow(10,r)),Math.floor(s*n)/s+0},e.prototype.isReadable=function(t,n){return t===void 0&&(t="#FFF"),n===void 0&&(n={}),this.contrast(t)>=(a=(o=(r=n).size)===void 0?"normal":o,(i=(s=r.level)===void 0?"AA":s)==="AAA"&&a==="normal"?7:i==="AA"&&a==="large"?3:4.5);var r,s,i,o,a}}var TY=(e,t)=>{const{renderContent:n,renderToggle:r,className:s,contentClassName:i,expandOnMobile:o,headerTitle:a,focusOnMount:l,popoverProps:c,onClose:u,onToggle:d,style:h,open:g,defaultOpen:p,position:v,variant:x}=Mt(e,"Dropdown");v!==void 0&&Kt("`position` prop in wp.components.Dropdown",{since:"6.2",alternative:"`popoverProps.placement` prop",hint:"Note that the `position` prop will override any values passed through the `popoverProps.placement` prop."});const[y,w]=m.useState(null),b=m.useRef(),[C,_]=Al({defaultValue:p,value:g,onChange:d});function S(){var A;if(!b.current)return;const{ownerDocument:E}=b.current,O=(A=E==null?void 0:E.activeElement)==null?void 0:A.closest('[role="dialog"]');!b.current.contains(E.activeElement)&&(!O||O.contains(b.current))&&k()}function k(){u==null||u(),_(!1)}const T={isOpen:!!C,onToggle:()=>_(!C),onClose:k},M=!!(c!=null&&c.anchor)||!!(c!=null&&c.anchorRef)||!!(c!=null&&c.getAnchorRect)||!!(c!=null&&c.anchorRect);return f.jsxs("div",{className:s,ref:$t([b,t,w]),tabIndex:-1,style:h,children:[r(T),C&&f.jsx(K6,{position:v,onClose:k,onFocusOutside:S,expandOnMobile:o,headerTitle:a,focusOnMount:l,offset:13,anchor:M?void 0:y,variant:x,...c,className:ge("components-dropdown__content",c==null?void 0:c.className,i),children:n(T)})]})},MY=jt(TY,"Dropdown"),Tk=MY;function EY(e,t){const n=Mt(e,"InputControlSuffixWrapper");return f.jsx(TC,{...n,ref:t})}var Mk=jt(EY,"InputControlSuffixWrapper"),OY=Mk,DY=({disabled:e})=>e?se("color:",Z.ui.textDisabled,";cursor:default;",""):"",PY={name:"1lv1yo7",styles:"display:inline-flex"},AY=({variant:e})=>e==="minimal"?PY:"",RY=oe(EC,{target:"e1mv6sxx3"})("color:",Z.theme.foreground,";cursor:pointer;",DY," ",AY,";"),jY=({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{if(t)return;const r={default:{height:40,minHeight:40,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},compact:{height:32,minHeight:32,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};e||(r.default=r.compact);const s=r[n]||r.default;return se(s,"","")},Ek=18,IY=({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const r={default:ae.controlPaddingX,small:ae.controlPaddingXSmall,compact:ae.controlPaddingXSmall,"__unstable-large":ae.controlPaddingX};e||(r.default=r.compact);const s=r[n]||r.default;return Xt({paddingLeft:s,paddingRight:s+Ek,...t?{paddingTop:s,paddingBottom:s}:{}})},NY=({multiple:e})=>({overflow:e?"auto":"hidden"}),FY={name:"n1jncc",styles:"field-sizing:content"},LY=({variant:e})=>e==="minimal"?FY:"",$Y=oe("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:currentColor;cursor:inherit;display:block;font-family:inherit;margin:0;width:100%;max-width:none;white-space:nowrap;text-overflow:ellipsis;",CC,";",jY,";",IY,";",NY," ",LY,";}"),VY=oe("div",{target:"e1mv6sxx1"})("margin-inline-end:",le(-1),";line-height:0;path{fill:currentColor;}"),WY=oe(OY,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",Xt({right:0}),";"),BY=()=>f.jsx(WY,{children:f.jsx(VY,{children:f.jsx(rl,{icon:K5,size:Ek})})}),zY=BY;function YY(e){const n=`inspector-select-control-${yt(Ok)}`;return e||n}function HY({options:e}){return e.map(({id:t,label:n,value:r,...s},i)=>{const o=t||`${n}-${r}-${i}`;return f.jsx("option",{value:r,...s,children:n},o)})}function UY(e,t){const{className:n,disabled:r=!1,help:s,hideLabelFromVision:i,id:o,label:a,multiple:l=!1,onChange:c,options:u=[],size:d="default",value:h,labelPosition:g="top",children:p,prefix:v,suffix:x,variant:y="default",__next40pxDefaultSize:w=!1,__nextHasNoMarginBottom:b=!1,__shouldNotWarnDeprecated36pxSize:C,..._}=Ll(e),S=YY(o),k=s?`${S}__help`:void 0;if(!(u!=null&&u.length)&&!p)return null;const T=E=>{var O,A;if(e.multiple){const L=Array.from(E.target.options).filter(({selected:F})=>F).map(({value:F})=>F);(O=e.onChange)==null||O.call(e,L,{event:E});return}(A=e.onChange)==null||A.call(e,E.target.value,{event:E})},M=ge("components-select-control",n);return Wi({componentName:"SelectControl",__next40pxDefaultSize:w,size:d,__shouldNotWarnDeprecated36pxSize:C}),f.jsx(Ht,{help:s,id:S,className:M,__nextHasNoMarginBottom:b,__associatedWPComponentName:"SelectControl",children:f.jsx(RY,{disabled:r,hideLabelFromVision:i,id:S,isBorderless:y==="minimal",label:a,size:d,suffix:x||!l&&f.jsx(zY,{}),prefix:v,labelPosition:g,__unstableInputWidth:y==="minimal"?"auto":void 0,variant:y,__next40pxDefaultSize:w,children:f.jsx($Y,{..._,__next40pxDefaultSize:w,"aria-describedby":k,className:"components-select-control__input",disabled:r,id:S,multiple:l,onChange:T,ref:t,selectSize:d,value:h,variant:y,children:p||f.jsx(HY,{options:u})})})})}var Ok=m.forwardRef(UY),zi=Ok;function Oc(e,t,n){return typeof e!="number"?null:parseFloat(`${Zg(e,t,n)}`)}function GY(e){const{min:t,max:n,value:r,initial:s}=e,[i,o]=fN(Oc(r,t,n),{initial:Oc(s??null,t,n),fallback:null}),a=m.useCallback(l=>{o(l===null?null:Oc(l,t,n))},[t,n,o]);return[i,a]}var Fo=30,Lo=4,ip=()=>se({height:Fo,minHeight:Fo},"",""),Di=12,qY=({__next40pxDefaultSize:e})=>!e&&se({minHeight:Fo},"",""),KY=oe("div",{target:"e1epgpqk14"})("-webkit-tap-highlight-color:transparent;align-items:center;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;min-height:40px;",qY,";"),XY=({color:e=Z.ui.borderFocus})=>se({color:e},"",""),ZY=({marks:e,__nextHasNoMarginBottom:t})=>t?"":se({marginBottom:e?16:void 0},"",""),QY=oe("div",{shouldForwardProp:e=>!["color","__nextHasNoMarginBottom","marks"].includes(e),target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",XY,";",ip,";",ZY,";"),JY=oe("span",{target:"e1epgpqk12"})("display:flex;margin-top:",Lo,"px;",Xt({marginRight:6}),";"),eH=oe("span",{target:"e1epgpqk11"})("display:flex;margin-top:",Lo,"px;",Xt({marginLeft:6}),";"),tH=({disabled:e,railColor:t})=>{let n=t||"";return e&&(n=Z.ui.backgroundDisabled),se({background:n},"","")},nH=oe("span",{target:"e1epgpqk10"})("background-color:",Z.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",Lo,"px;position:absolute;margin-top:",(Fo-Lo)/2,"px;top:0;border-radius:",ae.radiusFull,";",tH,";"),rH=({disabled:e,trackColor:t})=>{let n=t||"currentColor";return e&&(n=Z.gray[400]),se({background:n},"","")},sH=oe("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",ae.radiusFull,";height:",Lo,"px;pointer-events:none;display:block;position:absolute;margin-top:",(Fo-Lo)/2,"px;top:0;.is-marked &{@media not ( prefers-reduced-motion ){transition:width ease 0.1s;}}",rH,";"),iH=oe("span",{target:"e1epgpqk8"})({name:"g5kg28",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none;margin-top:17px"}),oH=oe("span",{target:"e1epgpqk7"})("position:absolute;left:0;top:-4px;height:4px;width:2px;transform:translateX( -50% );background-color:",Z.ui.background,";z-index:1;"),aH=({isFilled:e})=>se({color:e?Z.gray[700]:Z.gray[300]},"",""),lH=oe("span",{target:"e1epgpqk6"})("color:",Z.gray[300],";font-size:11px;position:absolute;top:8px;white-space:nowrap;",Xt({left:0}),";",Xt({transform:"translateX( -50% )"},{transform:"translateX( 50% )"}),";",aH,";"),Dk=({disabled:e})=>e?se("background-color:",Z.gray[400],";",""):se("background-color:",Z.theme.accent,";",""),cH=oe("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",Di,"px;justify-content:center;margin-top:",(Fo-Di)/2,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",Di,"px;border-radius:",ae.radiusRound,";z-index:3;.is-marked &{@media not ( prefers-reduced-motion ){transition:left ease 0.1s;}}",Dk,";",Xt({marginLeft:-10}),";",Xt({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),uH=({isFocused:e})=>e?se("&::before{content:' ';position:absolute;background-color:",Z.theme.accent,";opacity:0.4;border-radius:",ae.radiusRound,";height:",Di+8,"px;width:",Di+8,"px;top:-4px;left:-4px;}",""):"",dH=oe("span",{target:"e1epgpqk4"})("align-items:center;border-radius:",ae.radiusRound,";height:100%;outline:0;position:absolute;user-select:none;width:100%;box-shadow:",ae.elevationXSmall,";",Dk,";",uH,";"),fH=oe("input",{target:"e1epgpqk3"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",Di/2,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",Di,"px );"),hH=({show:e})=>se("display:",e?"inline-block":"none",";opacity:",e?1:0,";@media not ( prefers-reduced-motion ){transition:opacity 120ms ease,display 120ms ease allow-discrete;}@starting-style{opacity:0;}",""),mH={name:"1cypxip",styles:"top:-80%"},gH={name:"1lr98c4",styles:"bottom:-80%"},pH=({placement:e})=>e==="bottom"?gH:mH,vH=oe("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:",ae.radiusSmall,";color:white;font-size:12px;min-width:32px;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;user-select:none;line-height:1.4;",hH,";",pH,";",Xt({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),yH=oe(xs,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;input[type='number']&{",ip,";}",Xt({marginLeft:`${le(4)} !important`}),";"),bH=oe("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",ip,";}",Xt({marginLeft:8}),";");function xH(e,t){const{describedBy:n,label:r,value:s,...i}=e;return f.jsx(fH,{...i,"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:s})}var wH=m.forwardRef(xH),SH=wH;function _H(e){const{className:t,isFilled:n=!1,label:r,style:s={},...i}=e,o=ge("components-range-control__mark",n&&"is-filled",t),a=ge("components-range-control__mark-label",n&&"is-filled");return f.jsxs(f.Fragment,{children:[f.jsx(oH,{...i,"aria-hidden":"true",className:o,style:s}),r&&f.jsx(lH,{"aria-hidden":"true",className:a,isFilled:n,style:s,children:r})]})}function CH(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:s=100,step:i=1,value:o=0,...a}=e;return f.jsxs(f.Fragment,{children:[f.jsx(nH,{disabled:t,...a}),n&&f.jsx(kH,{disabled:t,marks:n,min:r,max:s,step:i,value:o})]})}function kH(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:s=100,step:i=1,value:o=0}=e,l=TH({marks:n,min:r,max:s,step:i==="any"?1:i,value:o});return f.jsx(iH,{"aria-hidden":"true",className:"components-range-control__marks",children:l.map(c=>m.createElement(_H,{...c,key:c.key,"aria-hidden":"true",disabled:t}))})}function TH({marks:e,min:t=0,max:n=100,step:r=1,value:s=0}){if(!e)return[];const i=n-t;if(!Array.isArray(e)){e=[];const a=1+Math.round(i/r);for(;a>e.push({value:r*e.length+t}););}const o=[];return e.forEach((a,l)=>{if(a.value<t||a.value>n)return;const c=`mark-${l}`,u=a.value<=s,d=`${(a.value-t)/i*100}%`,h={[bn()?"right":"left"]:d};o.push({...a,isFilled:u,key:c,style:h})}),o}function MH(e){const{className:t,inputRef:n,tooltipPlacement:r,show:s=!1,style:i={},value:o=0,renderTooltipContent:a=g=>g,zIndex:l=100,...c}=e,u=EH({inputRef:n,tooltipPlacement:r}),d=ge("components-simple-tooltip",t),h={...i,zIndex:l};return f.jsx(vH,{...c,"aria-hidden":"false",className:d,placement:u,show:s,role:"tooltip",style:h,children:a(o)})}function EH({inputRef:e,tooltipPlacement:t}){const[n,r]=m.useState(),s=m.useCallback(()=>{e&&e.current&&r(t)},[t,e]);return m.useEffect(()=>{s()},[s]),m.useEffect(()=>(window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)})),n}var ha=()=>{};function OH({resetFallbackValue:e,initialPosition:t}){return e!==void 0?Number.isNaN(e)?null:e:t!==void 0?Number.isNaN(t)?null:t:null}function Pk(e,t){var mt;const{__nextHasNoMarginBottom:n=!1,afterIcon:r,allowReset:s=!1,beforeIcon:i,className:o,color:a=Z.theme.accent,currentInput:l,disabled:c=!1,help:u,hideLabelFromVision:d=!1,initialPosition:h,isShiftStepEnabled:g=!0,label:p,marks:v=!1,max:x=100,min:y=0,onBlur:w=ha,onChange:b=ha,onFocus:C=ha,onMouseLeave:_=ha,onMouseMove:S=ha,railColor:k,renderTooltipContent:T=Be=>Be,resetFallbackValue:M,__next40pxDefaultSize:E=!1,shiftStep:O=10,showTooltip:A,step:P=1,trackColor:L,value:F,withInputField:I=!0,__shouldNotWarnDeprecated36pxSize:j,...$}=e,[N,z]=GY({min:y,max:x,value:F??null,initial:h}),B=m.useRef(!1);let K=A,Q=I;P==="any"&&(K=!1,Q=!1);const[re,Y]=m.useState(K),[ie,X]=m.useState(!1),he=m.useRef(),je=(mt=he.current)==null?void 0:mt.matches(":focus"),Te=!c&&ie,Ue=N===null,D=Ue?"":N!==void 0?N:l,V=Ue?(x-y)/2+y:N,W=Ue?50:(N-y)/(x-y)*100,H=`${Zg(W,0,100)}%`,de=ge("components-range-control",o),J=ge("components-range-control__wrapper",!!v&&"is-marked"),fe=yt(Pk,"inspector-range-control"),ue=u?`${fe}__help`:void 0,me=K!==!1&&Number.isFinite(N),Bt=Be=>{const Et=parseFloat(Be.target.value);z(Et),b(Et)},xt=Be=>{let Et=parseFloat(Be);z(Et),isNaN(Et)?s&&(B.current=!0):((Et<y||Et>x)&&(Et=Oc(Et,y,x)),b(Et),B.current=!1)},pn=()=>{B.current&&(te(),B.current=!1)},te=()=>{const Be=Number.isNaN(M)?null:M??null;z(Be),b(Be??void 0)},Ee=()=>Y(!0),ht=()=>Y(!1),st=Be=>{w(Be),X(!1),ht()},It=Be=>{C(Be),X(!0),Ee()},zt={[bn()?"right":"left"]:H};return Wi({componentName:"RangeControl",__next40pxDefaultSize:E,size:void 0,__shouldNotWarnDeprecated36pxSize:j}),f.jsx(Ht,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"RangeControl",className:de,label:p,hideLabelFromVision:d,id:`${fe}`,help:u,children:f.jsxs(KY,{className:"components-range-control__root",__next40pxDefaultSize:E,children:[i&&f.jsx(JY,{children:f.jsx(Zt,{icon:i})}),f.jsxs(QY,{__nextHasNoMarginBottom:n,className:J,color:a,marks:!!v,children:[f.jsx(SH,{...$,className:"components-range-control__slider",describedBy:ue,disabled:c,id:`${fe}`,label:p,max:x,min:y,onBlur:st,onChange:Bt,onFocus:It,onMouseMove:S,onMouseLeave:_,ref:$t([he,t]),step:P,value:D??void 0}),f.jsx(CH,{"aria-hidden":!0,disabled:c,marks:v,max:x,min:y,railColor:k,step:P,value:V}),f.jsx(sH,{"aria-hidden":!0,className:"components-range-control__track",disabled:c,style:{width:H},trackColor:L}),f.jsx(cH,{className:"components-range-control__thumb-wrapper",style:zt,disabled:c,children:f.jsx(dH,{"aria-hidden":!0,isFocused:Te,disabled:c})}),me&&f.jsx(MH,{className:"components-range-control__tooltip",inputRef:he,tooltipPlacement:"bottom",renderTooltipContent:T,show:je||re,style:zt,value:N})]}),r&&f.jsx(eH,{children:f.jsx(Zt,{icon:r})}),Q&&f.jsx(yH,{"aria-label":p,className:"components-range-control__number",disabled:c,inputMode:"decimal",isShiftStepEnabled:g,max:x,min:y,onBlur:pn,onChange:xt,shiftStep:O,size:E?"__unstable-large":"default",__unstableInputWidth:le(E?20:16),step:P,value:D,__shouldNotWarnDeprecated36pxSize:!0}),s&&f.jsx(bH,{children:f.jsx(Je,{className:"components-range-control__reset",accessibleWhenDisabled:!c,disabled:c||N===OH({resetFallbackValue:M,initialPosition:h}),variant:"secondary",size:"small",onClick:te,children:R("Reset")})})]})})}var DH=m.forwardRef(Pk),PH=DH;function AH(e,t){const n=Mt(e,"InputControlPrefixWrapper");return f.jsx(TC,{...n,isPrefix:!0,ref:t})}var RH=jt(AH,"InputControlPrefixWrapper");function ra(){return(ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function op(e,t){if(e==null)return{};var n,r,s={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(s[n]=e[n]);return s}function La(e){var t=m.useRef(e),n=m.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var $o=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e<t?t:e},$a=function(e){return"touches"in e},jh=function(e){return e&&e.ownerDocument.defaultView||self},M0=function(e,t,n){var r=e.getBoundingClientRect(),s=$a(t)?function(i,o){for(var a=0;a<i.length;a++)if(i[a].identifier===o)return i[a];return i[0]}(t.touches,n):t;return{left:$o((s.pageX-(r.left+jh(e).pageXOffset))/r.width),top:$o((s.pageY-(r.top+jh(e).pageYOffset))/r.height)}},E0=function(e){!$a(e)&&e.preventDefault()},ap=q.memo(function(e){var t=e.onMove,n=e.onKey,r=e.onEnd,s=op(e,["onMove","onKey","onEnd"]),i=m.useRef(null),o=La(t),a=La(n),l=La(r),c=m.useRef(null),u=m.useRef(!1),d=m.useMemo(function(){var x=function(b){E0(b),($a(b)?b.touches.length>0:b.buttons>0)&&i.current?o(M0(i.current,b,c.current)):(w(!1),l())},y=function(){w(!1),l()};function w(b){var C=u.current,_=jh(i.current),S=b?_.addEventListener:_.removeEventListener;S(C?"touchmove":"mousemove",x),S(C?"touchend":"mouseup",y)}return[function(b){var C=b.nativeEvent,_=i.current;if(_&&(E0(C),!function(k,T){return T&&!$a(k)}(C,u.current)&&_)){if($a(C)){u.current=!0;var S=C.changedTouches||[];S.length&&(c.current=S[0].identifier)}_.focus(),o(M0(_,C,c.current)),w(!0)}},function(b){var C=b.which||b.keyCode;C<37||C>40||(b.preventDefault(),a({left:C===39?.05:C===37?-.05:0,top:C===40?.05:C===38?-.05:0}))},function(b){var C=b.which||b.keyCode;C>=37&&C<=40&&l()},w]},[a,o,l]),h=d[0],g=d[1],p=d[2],v=d[3];return m.useEffect(function(){return v},[v]),q.createElement("div",ra({},s,{onTouchStart:h,onMouseDown:h,className:"react-colorful__interactive",ref:i,onKeyDown:g,onKeyUp:p,tabIndex:0,role:"slider"}))}),Bl=function(e){return e.filter(Boolean).join(" ")},lp=function(e){var t=e.color,n=e.left,r=e.top,s=r===void 0?.5:r,i=Bl(["react-colorful__pointer",e.className]);return q.createElement("div",{className:i,style:{top:100*s+"%",left:100*n+"%"}},q.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},yn=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Ak=function(e){var t=e.s,n=e.v,r=e.a,s=(200-t)*n/100;return{h:yn(e.h),s:yn(s>0&&s<200?t*n/100/(s<=100?s:200-s)*100:0),l:yn(s/2),a:yn(r,2)}},Ih=function(e){var t=Ak(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},xf=function(e){var t=Ak(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Rk=function(e){var t=e.h,n=e.s,r=e.v,s=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),o=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:yn(255*[r,a,o,o,l,r][c]),g:yn(255*[l,r,r,a,o,o][c]),b:yn(255*[o,o,l,r,r,a][c]),a:yn(s,2)}},jk=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?IH({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},jH=jk,IH=function(e){var t=e.r,n=e.g,r=e.b,s=e.a,i=Math.max(t,n,r),o=i-Math.min(t,n,r),a=o?i===t?(n-r)/o:i===n?2+(r-t)/o:4+(t-n)/o:0;return{h:yn(60*(a<0?a+6:a)),s:yn(i?o/i*100:0),v:yn(i/255*100),a:s}},Ik=q.memo(function(e){var t=e.hue,n=e.onChange,r=e.onChangeEnd,s=Bl(["react-colorful__hue",e.className]);return q.createElement("div",{className:s},q.createElement(ap,{onMove:function(i){n({h:360*i.left})},onKey:function(i){n({h:$o(t+360*i.left,0,360)})},onEnd:r,"aria-label":"Hue","aria-valuenow":yn(t),"aria-valuemax":"360","aria-valuemin":"0"},q.createElement(lp,{className:"react-colorful__hue-pointer",left:t/360,color:Ih({h:t,s:100,v:100,a:1})})))}),Nk=q.memo(function(e){var t=e.hsva,n=e.onChange,r=e.onChangeEnd,s={backgroundColor:Ih({h:t.h,s:100,v:100,a:1})};return q.createElement("div",{className:"react-colorful__saturation",style:s},q.createElement(ap,{onMove:function(i){n({s:100*i.left,v:100-100*i.top})},onKey:function(i){n({s:$o(t.s+100*i.left,0,100),v:$o(t.v-100*i.top,0,100)})},onEnd:r,"aria-label":"Color","aria-valuetext":"Saturation "+yn(t.s)+"%, Brightness "+yn(t.v)+"%"},q.createElement(lp,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Ih(t)})))}),NH=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Fk=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function Lk(e,t,n,r){var s=La(n),i=La(r),o=m.useState(function(){return e.toHsva(t)}),a=o[0],l=o[1],c=m.useRef({color:t,hsva:a}),u=m.useRef(!1);m.useEffect(function(){if(!e.equal(t,c.current.color)){var g=e.toHsva(t);c.current={hsva:g,color:t},l(g),u.current=!1}},[t,e]),m.useEffect(function(){var g;NH(a,c.current.hsva)||e.equal(g=e.fromHsva(a),c.current.color)||(c.current={hsva:a,color:g},s(g),u.current=!0)},[a,e,s]);var d=m.useCallback(function(g){l(function(p){return Object.assign({},p,g)})},[]),h=m.useCallback(function(){u.current&&(u.current=!1,i(c.current.color))},[i]);return[a,d,h]}var FH=typeof window<"u"?m.useLayoutEffect:m.useEffect,LH=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},O0=new Map,$k=function(e){FH(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!O0.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,O0.set(t,n);var r=LH();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},$H=function(e){var t=e.className,n=e.colorModel,r=e.color,s=r===void 0?n.defaultColor:r,i=e.onChange,o=e.onChangeEnd,a=op(e,["className","colorModel","color","onChange","onChangeEnd"]),l=m.useRef(null);$k(l);var c=Lk(n,s,i,o),u=c[0],d=c[1],h=c[2],g=Bl(["react-colorful",t]);return q.createElement("div",ra({},a,{ref:l,className:g}),q.createElement(Nk,{hsva:u,onChange:d,onChangeEnd:h}),q.createElement(Ik,{hue:u.h,onChange:d,onChangeEnd:h,className:"react-colorful__last-control"}))},VH=function(e){var t=e.className,n=e.hsva,r=e.onChange,s=e.onChangeEnd,i={backgroundImage:"linear-gradient(90deg, "+xf(Object.assign({},n,{a:0}))+", "+xf(Object.assign({},n,{a:1}))+")"},o=Bl(["react-colorful__alpha",t]),a=yn(100*n.a);return q.createElement("div",{className:o},q.createElement("div",{className:"react-colorful__alpha-gradient",style:i}),q.createElement(ap,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:$o(n.a+l.left)})},onEnd:s,"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},q.createElement(lp,{className:"react-colorful__alpha-pointer",left:n.a,color:xf(n)})))},WH=function(e){var t=e.className,n=e.colorModel,r=e.color,s=r===void 0?n.defaultColor:r,i=e.onChange,o=e.onChangeEnd,a=op(e,["className","colorModel","color","onChange","onChangeEnd"]),l=m.useRef(null);$k(l);var c=Lk(n,s,i,o),u=c[0],d=c[1],h=c[2],g=Bl(["react-colorful",t]);return q.createElement("div",ra({},a,{ref:l,className:g}),q.createElement(Nk,{hsva:u,onChange:d,onChangeEnd:h}),q.createElement(Ik,{hue:u.h,onChange:d,onChangeEnd:h}),q.createElement(VH,{hsva:u,onChange:d,onChangeEnd:h,className:"react-colorful__last-control"}))},BH={defaultColor:"rgba(0, 0, 0, 1)",toHsva:jk,fromHsva:function(e){var t=Rk(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:Fk},zH=function(e){return q.createElement(WH,ra({},e,{colorModel:BH}))},YH={defaultColor:"rgb(0, 0, 0)",toHsva:jH,fromHsva:function(e){var t=Rk(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:Fk},HH=function(e){return q.createElement($H,ra({},e,{colorModel:YH}))},UH=({color:e,enableAlpha:t,onChange:n})=>{const r=t?zH:HH,s=m.useMemo(()=>e.toRgbString(),[e]);return f.jsx(r,{color:s,onChange:i=>{n(pt(i))},onPointerDown:({currentTarget:i,pointerId:o})=>{i.setPointerCapture(o)},onPointerUp:({currentTarget:i,pointerId:o})=>{i.releasePointerCapture(o)}})};function GH(e){const{expanded:t=!1,alignment:n="stretch",...r}=Mt(e,"VStack");return KC({direction:"column",expanded:t,alignment:n,...r})}function qH(e,t){const n=GH(e);return f.jsx(mn,{...n,ref:t})}var KH=jt(qH,"VStack"),Rt=KH;function XH(e){const{as:t,level:n=2,color:r=Z.theme.foreground,isBlock:s=!0,weight:i=ae.fontWeightHeading,...o}=Mt(e,"Heading"),a=t||`h${n}`,l={};return typeof a=="string"&&a[0]!=="h"&&(l.role="heading",l["aria-level"]=typeof n=="string"?parseInt(n):n),{...wC({color:r,isBlock:s,weight:i,size:g3(n),...o}),...l,as:a}}function ZH(e,t){const n=XH(e);return f.jsx(mn,{...n,ref:t})}var QH=jt(ZH,"Heading"),JH=QH,eU=({paddingSize:e="small"})=>{if(e==="none")return;const t={small:le(2),medium:le(4)};return se("padding:",t[e]||t.small,";","")},tU=oe("div",{target:"eovvns30"})("margin-left:",le(-2),";margin-right:",le(-2),";&:first-of-type{margin-top:",le(-2),";}&:last-of-type{margin-bottom:",le(-2),";}",eU,";");function nU(e,t){const{paddingSize:n="small",...r}=Mt(e,"DropdownContentWrapper");return f.jsx(tU,{...r,paddingSize:n,ref:t})}var rU=jt(nU,"DropdownContentWrapper"),sU=rU,iU={bottom:{alignItems:"flex-end",justifyContent:"center"},bottomLeft:{alignItems:"flex-start",justifyContent:"flex-end"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-end"},center:{alignItems:"center",justifyContent:"center"},spaced:{alignItems:"center",justifyContent:"space-between"},left:{alignItems:"center",justifyContent:"flex-start"},right:{alignItems:"center",justifyContent:"flex-end"},stretch:{alignItems:"stretch"},top:{alignItems:"flex-start",justifyContent:"center"},topLeft:{alignItems:"flex-start",justifyContent:"flex-start"},topRight:{alignItems:"flex-start",justifyContent:"flex-end"}};function oU(e){return e?iU[e]:{}}function aU(e){const{align:t,alignment:n,className:r,columnGap:s,columns:i=2,gap:o=3,isInline:a=!1,justify:l,rowGap:c,rows:u,templateColumns:d,templateRows:h,...g}=Mt(e,"Grid"),p=Array.isArray(i)?i:[i],v=Th(p),x=Array.isArray(u)?u:[u],y=Th(x),w=d||!!i&&`repeat( ${v}, 1fr )`,b=h||!!u&&`repeat( ${y}, 1fr )`,C=Dn(),_=m.useMemo(()=>{const S=oU(n),k=se({alignItems:t,display:a?"inline-grid":"grid",gap:`calc( ${ae.gridBase} * ${o} )`,gridTemplateColumns:w||void 0,gridTemplateRows:b||void 0,gridRowGap:c,gridColumnGap:s,justifyContent:l,verticalAlign:a?"middle":void 0,...S},"","");return C(k,r)},[t,n,r,s,C,o,w,b,a,l,c]);return{...g,className:_}}function lU(e,t){const n=aU(e);return f.jsx(mn,{...n,ref:t})}var cU=jt(lU,"Grid"),D0=cU;function Vk(e){const{__nextHasNoMarginBottom:t,label:n,className:r,heading:s,checked:i,indeterminate:o,help:a,id:l,onChange:c,onClick:u,...d}=e;s&&Kt("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[h,g]=m.useState(!1),[p,v]=m.useState(!1),x=mu(b=>{b&&(b.indeterminate=!!o,g(b.matches(":checked")),v(b.matches(":indeterminate")))},[i,o]),y=yt(Vk,"inspector-checkbox-control",l),w=b=>c(b.target.checked);return f.jsx(Ht,{__nextHasNoMarginBottom:t,__associatedWPComponentName:"CheckboxControl",label:s,id:y,help:a&&f.jsx("span",{className:"components-checkbox-control__help",children:a}),className:ge("components-checkbox-control",r),children:f.jsxs(Ve,{spacing:0,justify:"start",alignment:"top",children:[f.jsxs("span",{className:"components-checkbox-control__input-container",children:[f.jsx("input",{ref:x,id:y,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:w,checked:i,"aria-describedby":a?y+"__help":void 0,onClick:b=>{b.currentTarget.focus(),u==null||u(b)},...d}),p?f.jsx(rl,{icon:fC,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,h?f.jsx(rl,{icon:aC,className:"components-checkbox-control__checked",role:"presentation"}):null]}),n&&f.jsx("label",{className:"components-checkbox-control__label",htmlFor:y,children:n})]})})}var ad=Vk,uU=e=>se("font-size:",gr("default.fontSize"),";font-family:inherit;appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:start;text-decoration:",e==="a"?"none":void 0,";svg,path{fill:currentColor;}&:hover{color:",Z.theme.accent,";}&:focus{box-shadow:none;outline:none;}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Z.theme.accent,";outline:2px solid transparent;outline-offset:0;}",""),dU={name:"1bcj5ek",styles:"width:100%;display:block"},fU={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},hU=se("border:1px solid ",ae.surfaceBorderColor,";",""),mU=se(">*:not( marquee )>*{border-bottom:1px solid ",ae.surfaceBorderColor,";}>*:last-of-type>*{border-bottom-color:transparent;}",""),ro=ae.radiusSmall,gU=se("border-radius:",ro,";",""),pU=se("border-radius:",ro,";>*:first-of-type>*{border-top-left-radius:",ro,";border-top-right-radius:",ro,";}>*:last-of-type>*{border-bottom-left-radius:",ro,";border-bottom-right-radius:",ro,";}",""),cp=`calc(${ae.fontSize} * ${ae.fontLineHeightBase})`,vU=`calc((${ae.controlHeight} - ${cp} - 2px) / 2)`,yU=`calc((${ae.controlHeightSmall} - ${cp} - 2px) / 2)`,bU=`calc((${ae.controlHeightLarge} - ${cp} - 2px) / 2)`,P0={small:se("padding:",yU," ",ae.controlPaddingXSmall,"px;",""),medium:se("padding:",vU," ",ae.controlPaddingX,"px;",""),large:se("padding:",bU," ",ae.controlPaddingXLarge,"px;","")},up=m.createContext({size:"medium"});up.displayName="ItemGroupContext";var Wk=()=>m.useContext(up);function xU(e){const{as:t,className:n,onClick:r,role:s="listitem",size:i,...o}=Mt(e,"Item"),{spacedAround:a,size:l}=Wk(),c=i||l,u=t||(typeof r<"u"?"button":"div"),d=Dn(),h=m.useMemo(()=>d((u==="button"||u==="a")&&uU(u),P0[c]||P0.medium,fU,a&&gU,n),[u,n,d,c,a]),g=d(dU);return{as:u,className:h,onClick:r,wrapperClassName:g,role:s,...o}}function wU(e,t){const{role:n,wrapperClassName:r,...s}=xU(e);return f.jsx("div",{role:n,className:r,children:f.jsx(mn,{...s,ref:t})})}var SU=jt(wU,"Item"),_U=SU;function CU(e){const{className:t,isBordered:n=!1,isRounded:r=!0,isSeparated:s=!1,role:i="list",...o}=Mt(e,"ItemGroup"),l=Dn()(n&&hU,s&&mU,r&&pU,t);return{isBordered:n,className:l,role:i,isSeparated:s,...o}}function kU(e,t){const{isBordered:n,isSeparated:r,size:s,...i}=CU(e),{size:o}=Wk(),c={spacedAround:!n&&!r,size:s||o};return f.jsx(up.Provider,{value:c,children:f.jsx(mn,{...i,ref:t})})}var TU=jt(kU,"ItemGroup"),A0=TU;function MU(e,t){const{value:n,isExpanded:r,instanceId:s,selectedSuggestionIndex:i,className:o,onChange:a,onFocus:l,onBlur:c,...u}=e,[d,h]=m.useState(!1),g=n?n.length+1:0,p=y=>{a&&a({value:y.target.value})},v=y=>{h(!0),l==null||l(y)},x=y=>{h(!1),c==null||c(y)};return f.jsx("input",{ref:t,id:`components-form-token-input-${s}`,type:"text",...u,value:n||"",onChange:p,onFocus:v,onBlur:x,size:g,className:ge(o,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":r,"aria-autocomplete":"list","aria-owns":r?`components-form-token-suggestions-${s}`:void 0,"aria-activedescendant":d&&i!==-1&&r?`components-form-token-suggestions-${s}-${i}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${s}`})}var EU=m.forwardRef(MU),OU=EU,DU=e=>{e.preventDefault()};function PU({selectedIndex:e,scrollIntoView:t,match:n,onHover:r,onSelect:s,suggestions:i=[],displayTransform:o,instanceId:a,__experimentalRenderItem:l}){const c=mu(g=>{e>-1&&t&&g.children[e]&&g.children[e].scrollIntoView({behavior:"instant",block:"nearest",inline:"nearest"})},[e,t]),u=g=>()=>{r==null||r(g)},d=g=>()=>{s==null||s(g)},h=g=>{const p=o(n).normalize("NFKC").toLocaleLowerCase();if(p.length===0)return null;const v=o(g),x=v.normalize("NFKC").toLocaleLowerCase().indexOf(p);return{suggestionBeforeMatch:v.substring(0,x),suggestionMatch:v.substring(x,x+p.length),suggestionAfterMatch:v.substring(x+p.length)}};return f.jsxs("ul",{ref:c,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${a}`,role:"listbox",children:[i.map((g,p)=>{const v=h(g),x=p===e,y=typeof g=="object"&&(g==null?void 0:g.disabled),w=typeof g=="object"&&"value"in g?g==null?void 0:g.value:o(g),b=ge("components-form-token-field__suggestion",{"is-selected":x});let C;return typeof l=="function"?C=l({item:g}):v?C=f.jsxs("span",{"aria-label":o(g),children:[v.suggestionBeforeMatch,f.jsx("strong",{className:"components-form-token-field__suggestion-match",children:v.suggestionMatch}),v.suggestionAfterMatch]}):C=o(g),f.jsx("li",{id:`components-form-token-suggestions-${a}-${p}`,role:"option",className:b,onMouseDown:DU,onClick:d(g),onMouseEnter:u(g),"aria-selected":p===e,"aria-disabled":y,children:C},w)}),i.length===0&&f.jsx("li",{className:"components-form-token-field__suggestion is-empty",children:R("No items found")})]})}var AU=PU,RU=dF`
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
 `,jU=oe("svg",{target:"ea4tfvq2"})("width:",ae.spinnerSize,"px;height:",ae.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",Z.theme.accent,";overflow:visible;opacity:1;background-color:transparent;"),Bk={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},IU=oe("circle",{target:"ea4tfvq1"})(Bk,";stroke:",Z.gray[300],";"),NU=oe("path",{target:"ea4tfvq0"})(Bk,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",RU,";");function FU({className:e,...t},n){return f.jsxs(jU,{className:ge("components-spinner",e),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...t,ref:n,children:[f.jsx(IU,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),f.jsx(NU,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"})]})}var LU=m.forwardRef(FU),ws=LU,$U=new Set(["alert","status","log","marquee","timer"]),zk=[];function VU(e){const t=Array.from(document.body.children),n=[];zk.push(n);for(const r of t)r!==e&&WU(r)&&(r.setAttribute("aria-hidden","true"),n.push(r))}function WU(e){const t=e.getAttribute("role");return!(e.tagName==="SCRIPT"||e.hasAttribute("hidden")||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&$U.has(t))}function BU(){const e=zk.pop();if(e)for(const t of e)t.removeAttribute("aria-hidden")}var zU=ae.transitionDuration,YU=Number.parseInt(ae.transitionDuration),HU="components-modal__disappear-animation";function UU(){const e=m.useRef(),[t,n]=m.useState(!1),r=dw(),s=m.useCallback(()=>new Promise(i=>{const o=e.current;if(r){i();return}if(!o){globalThis.SCRIPT_DEBUG===!0&&nr("wp.components.Modal: the Modal component can't be closed with an exit animation because of a missing reference to the modal frame element."),i();return}let a;const l=()=>new Promise(u=>{a=d=>{d.animationName===HU&&u()},o.addEventListener("animationend",a),n(!0)}),c=()=>new Promise(u=>{setTimeout(()=>u(),YU*1.2)});Promise.race([l(),c()]).then(()=>{a&&o.removeEventListener("animationend",a),n(!1),i()})}),[r]);return{overlayClassname:t?"is-animating-out":void 0,frameRef:e,frameStyle:{"--modal-frame-animation-duration":`${zU}`},closeModal:s}}var Nh=m.createContext(new Set);Nh.displayName="ModalContext";var ma=new Map;function GU(e,t){const{bodyOpenClassName:n="modal-open",role:r="dialog",title:s=null,focusOnMount:i=!0,shouldCloseOnEsc:o=!0,shouldCloseOnClickOutside:a=!0,isDismissible:l=!0,aria:c={labelledby:void 0,describedby:void 0},onRequestClose:u,icon:d,closeButtonLabel:h,children:g,style:p,overlayClassName:v,className:x,contentLabel:y,onKeyDown:w,isFullScreen:b=!1,size:C,headerActions:_=null,__experimentalHideHeader:S=!1}=e,k=m.useRef(),T=yt(Yk),M=s?`components-modal-header-${T}`:c.labelledby,E=lw(i==="firstContentElement"?"firstElement":i),O=ow(),A=cw(),P=m.useRef(null),L=m.useRef(null),[F,I]=m.useState(!1),[j,$]=m.useState(!1);let N;b||C==="fill"?N="is-full-screen":C&&(N=`has-size-${C}`);const z=m.useCallback(()=>{if(!P.current)return;const D=sw(P.current);P.current===D?$(!0):$(!1)},[P]);m.useEffect(()=>(VU(k.current),()=>BU()),[]);const B=m.useRef();m.useEffect(()=>{B.current=u},[u]);const K=m.useContext(Nh),[Q]=m.useState(()=>new Set);m.useEffect(()=>{var D;K.add(B);for(const V of K)V!==B&&((D=V.current)==null||D.call(V));return()=>{var V;for(const W of Q)(V=W.current)==null||V.call(W);K.delete(B)}},[K,Q]),m.useEffect(()=>{var D;const V=n,W=1+((D=ma.get(V))!==null&&D!==void 0?D:0);return ma.set(V,W),document.body.classList.add(n),()=>{const H=ma.get(V)-1;H===0?(document.body.classList.remove(V),ma.delete(V)):ma.set(V,H)}},[n]);const{closeModal:re,frameRef:Y,frameStyle:ie,overlayClassname:X}=UU();m.useLayoutEffect(()=>{if(!window.ResizeObserver||!L.current)return;const D=new ResizeObserver(z);return D.observe(L.current),z(),()=>{D.disconnect()}},[z,L]);function he(D){o&&(D.code==="Escape"||D.key==="Escape")&&!D.defaultPrevented&&(D.preventDefault(),re().then(()=>u(D)))}const je=m.useCallback(D=>{var H;var V;const W=(V=(H=D==null?void 0:D.currentTarget)==null?void 0:H.scrollTop)!==null&&V!==void 0?V:-1;!F&&W>0?I(!0):F&&W<=0&&I(!1)},[F]);let Te=null;const Ue={onPointerDown:D=>{D.target===D.currentTarget&&(Te=D.target,D.preventDefault())},onPointerUp:({target:D,button:V})=>{const W=D===Te;Te=null,V===0&&W&&re().then(()=>u())}},Ae=f.jsx("div",{ref:$t([k,t]),className:ge("components-modal__screen-overlay",X,v),onKeyDown:Wl(he),...a?Ue:{},children:f.jsx(mk,{document,children:f.jsx("div",{className:ge("components-modal__frame",N,x),style:{...ie,...p},ref:$t([Y,O,A,i!=="firstContentElement"?E:null]),role:r,"aria-label":y,"aria-labelledby":y?void 0:M,"aria-describedby":c.describedby,tabIndex:-1,onKeyDown:w,children:f.jsxs("div",{className:ge("components-modal__content",{"hide-header":S,"is-scrollable":j,"has-scrolled-content":F}),role:"document",onScroll:je,ref:P,"aria-label":j?R("Scrollable section"):void 0,tabIndex:j?0:void 0,children:[!S&&f.jsxs("div",{className:"components-modal__header",children:[f.jsxs("div",{className:"components-modal__header-heading-container",children:[d&&f.jsx("span",{className:"components-modal__icon-container","aria-hidden":!0,children:d}),s&&f.jsx("h1",{id:M,className:"components-modal__header-heading",children:s})]}),_,l&&f.jsxs(f.Fragment,{children:[f.jsx(Zu,{marginBottom:0,marginLeft:2}),f.jsx(Je,{size:"compact",onClick:D=>re().then(()=>u(D)),icon:cC,label:h||R("Close")})]})]}),f.jsx("div",{ref:$t([L,i==="firstContentElement"?E:null]),className:"components-modal__children-container",children:g})]})})})});return Hs.createPortal(f.jsx(Nh.Provider,{value:Q,children:Ae}),document.body)}var Yk=m.forwardRef(GU),qU=Yk;function gn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function zr(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Hk=6048e5,KU=864e5;let XU={};function ld(){return XU}function il(e,t){var a,l,c,u;const n=ld(),r=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,s=gn(e),i=s.getDay(),o=(i<r?7:0)+i-r;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function tu(e){return il(e,{weekStartsOn:1})}function Uk(e){const t=gn(e),n=t.getFullYear(),r=zr(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=tu(r),i=zr(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const o=tu(i);return t.getTime()>=s.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function R0(e){const t=gn(e);return t.setHours(0,0,0,0),t}function j0(e){const t=gn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Fh(e,t){const n=R0(e),r=R0(t),s=+n-j0(n),i=+r-j0(r);return Math.round((s-i)/KU)}function ZU(e){const t=Uk(e),n=zr(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),tu(n)}function QU(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function JU(e){if(!QU(e)&&typeof e!="number")return!1;const t=gn(e);return!isNaN(Number(t))}function I0(e){const t=gn(e);return t.setSeconds(0,0),t}function e9(e){const t=gn(e),n=zr(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const t9={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},n9=(e,t,n)=>{let r;const s=t9[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function wf(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const r9={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},s9={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},i9={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},o9={date:wf({formats:r9,defaultWidth:"full"}),time:wf({formats:s9,defaultWidth:"full"}),dateTime:wf({formats:i9,defaultWidth:"full"})},a9={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l9=(e,t,n,r)=>a9[e];function ga(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;s=e.formattingValues[a]||e.formattingValues[o]}else{const o=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[a]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return s[i]}}const c9={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},u9={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},d9={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},f9={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},h9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},m9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},g9=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},p9={ordinalNumber:g9,era:ga({values:c9,defaultWidth:"wide"}),quarter:ga({values:u9,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ga({values:d9,defaultWidth:"wide"}),day:ga({values:f9,defaultWidth:"wide"}),dayPeriod:ga({values:h9,defaultWidth:"wide",formattingValues:m9,defaultFormattingWidth:"wide"})};function pa(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(s);if(!i)return null;const o=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?y9(a,d=>d.test(o)):v9(a,d=>d.test(o));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(o.length);return{value:c,rest:u}}}function v9(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function y9(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function b9(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const a=t.slice(s.length);return{value:o,rest:a}}}const x9=/^(\d+)(th|st|nd|rd)?/i,w9=/\d+/i,S9={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},_9={any:[/^b/i,/^(a|c)/i]},C9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},k9={any:[/1/i,/2/i,/3/i,/4/i]},T9={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},M9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},E9={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},O9={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},D9={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},P9={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},A9={ordinalNumber:b9({matchPattern:x9,parsePattern:w9,valueCallback:e=>parseInt(e,10)}),era:pa({matchPatterns:S9,defaultMatchWidth:"wide",parsePatterns:_9,defaultParseWidth:"any"}),quarter:pa({matchPatterns:C9,defaultMatchWidth:"wide",parsePatterns:k9,defaultParseWidth:"any",valueCallback:e=>e+1}),month:pa({matchPatterns:T9,defaultMatchWidth:"wide",parsePatterns:M9,defaultParseWidth:"any"}),day:pa({matchPatterns:E9,defaultMatchWidth:"wide",parsePatterns:O9,defaultParseWidth:"any"}),dayPeriod:pa({matchPatterns:D9,defaultMatchWidth:"any",parsePatterns:P9,defaultParseWidth:"any"})},R9={code:"en-US",formatDistance:n9,formatLong:o9,formatRelative:l9,localize:p9,match:A9,options:{weekStartsOn:0,firstWeekContainsDate:1}};function j9(e){const t=gn(e);return Fh(t,e9(t))+1}function I9(e){const t=gn(e),n=+tu(t)-+ZU(t);return Math.round(n/Hk)+1}function Gk(e,t){var u,d,h,g;const n=gn(e),r=n.getFullYear(),s=ld(),i=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??s.firstWeekContainsDate??((g=(h=s.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,o=zr(e,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const a=il(o,t),l=zr(e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const c=il(l,t);return n.getTime()>=a.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function N9(e,t){var a,l,c,u;const n=ld(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,s=Gk(e,t),i=zr(e,0);return i.setFullYear(s,0,r),i.setHours(0,0,0,0),il(i,t)}function F9(e,t){const n=gn(e),r=+il(n,t)-+N9(n,t);return Math.round(r/Hk)+1}function Xe(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ps={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Xe(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Xe(n+1,2)},d(e,t){return Xe(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Xe(e.getHours()%12||12,t.length)},H(e,t){return Xe(e.getHours(),t.length)},m(e,t){return Xe(e.getMinutes(),t.length)},s(e,t){return Xe(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return Xe(s,t.length)}},Zi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},N0={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Ps.y(e,t)},Y:function(e,t,n,r){const s=Gk(e,r),i=s>0?s:1-s;if(t==="YY"){const o=i%100;return Xe(o,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):Xe(i,t.length)},R:function(e,t){const n=Uk(e);return Xe(n,t.length)},u:function(e,t){const n=e.getFullYear();return Xe(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Xe(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Xe(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ps.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Xe(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const s=F9(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):Xe(s,t.length)},I:function(e,t,n){const r=I9(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Xe(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ps.d(e,t)},D:function(e,t,n){const r=j9(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Xe(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const s=e.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Xe(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Xe(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return Xe(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=Zi.noon:r===0?s=Zi.midnight:s=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=Zi.evening:r>=12?s=Zi.afternoon:r>=4?s=Zi.morning:s=Zi.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ps.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ps.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Xe(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Xe(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ps.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ps.s(e,t)},S:function(e,t){return Ps.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return L0(r);case"XXXX":case"XX":return yi(r);case"XXXXX":case"XXX":default:return yi(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return L0(r);case"xxxx":case"xx":return yi(r);case"xxxxx":case"xxx":default:return yi(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+F0(r,":");case"OOOO":default:return"GMT"+yi(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+F0(r,":");case"zzzz":default:return"GMT"+yi(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Xe(r,t.length)},T:function(e,t,n){const r=e.getTime();return Xe(r,t.length)}};function F0(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),i=r%60;return i===0?n+String(s):n+String(s)+t+Xe(i,2)}function L0(e,t){return e%60===0?(e>0?"-":"+")+Xe(Math.abs(e)/60,2):yi(e,t)}function yi(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Xe(Math.trunc(r/60),2),i=Xe(r%60,2);return n+s+t+i}const $0=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},qk=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},L9=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return $0(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",$0(r,t)).replace("{{time}}",qk(s,t))},$9={p:qk,P:L9},V9=/^D+$/,W9=/^Y+$/,B9=["D","DD","YY","YYYY"];function z9(e){return V9.test(e)}function Y9(e){return W9.test(e)}function H9(e,t,n){const r=U9(e,t,n);if(console.warn(r),B9.includes(e))throw new RangeError(r)}function U9(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const G9=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,q9=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,K9=/^'([^]*?)'?$/,X9=/''/g,Z9=/[a-zA-Z]/;function ts(e,t,n){var u,d,h,g;const r=ld(),s=r.locale??R9,i=r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,o=r.weekStartsOn??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??0,a=gn(e);if(!JU(a))throw new RangeError("Invalid time value");let l=t.match(q9).map(p=>{const v=p[0];if(v==="p"||v==="P"){const x=$9[v];return x(p,s.formatLong)}return p}).join("").match(G9).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const v=p[0];if(v==="'")return{isToken:!1,value:Q9(p)};if(N0[v])return{isToken:!0,value:p};if(v.match(Z9))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:p}});s.localize.preprocessor&&(l=s.localize.preprocessor(a,l));const c={firstWeekContainsDate:i,weekStartsOn:o,locale:s};return l.map(p=>{if(!p.isToken)return p.value;const v=p.value;(Y9(v)||z9(v))&&H9(v,t,String(e));const x=N0[v[0]];return x(a,v,s.localize,c)}).join("")}function Q9(e){const t=e.match(K9);return t?t[1].replace(X9,"'"):e}function J9(e){const t=gn(e),n=t.getFullYear(),r=t.getMonth(),s=zr(e,0);return s.setFullYear(n,r+1,0),s.setHours(0,0,0,0),s.getDate()}function Kk(e,t){const n=gn(e),r=n.getFullYear(),s=n.getDate(),i=zr(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const o=J9(i);return n.setMonth(t,Math.min(s,o)),n}function V0(e,t){let n=gn(e);return isNaN(+n)?zr(e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Kk(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var Xk;function ne(){return Xk.apply(null,arguments)}function e8(e){Xk=e}function br(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Pi(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Ye(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function dp(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Ye(e,t))return!1;return!0}function Tn(e){return e===void 0}function Ss(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function zl(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Zk(e,t){var n=[],r,s=e.length;for(r=0;r<s;++r)n.push(t(e[r],r));return n}function $s(e,t){for(var n in t)Ye(t,n)&&(e[n]=t[n]);return Ye(t,"toString")&&(e.toString=t.toString),Ye(t,"valueOf")&&(e.valueOf=t.valueOf),e}function qr(e,t,n,r){return xT(e,t,n,r,!0).utc()}function t8(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function De(e){return e._pf==null&&(e._pf=t8()),e._pf}var Lh;Array.prototype.some?Lh=Array.prototype.some:Lh=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function fp(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=De(e),n=Lh.call(t.parsedDateParts,function(s){return s!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function cd(e){var t=qr(NaN);return e!=null?$s(De(t),e):De(t).userInvalidated=!0,t}var W0=ne.momentProperties=[],Sf=!1;function hp(e,t){var n,r,s,i=W0.length;if(Tn(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Tn(t._i)||(e._i=t._i),Tn(t._f)||(e._f=t._f),Tn(t._l)||(e._l=t._l),Tn(t._strict)||(e._strict=t._strict),Tn(t._tzm)||(e._tzm=t._tzm),Tn(t._isUTC)||(e._isUTC=t._isUTC),Tn(t._offset)||(e._offset=t._offset),Tn(t._pf)||(e._pf=De(t)),Tn(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)r=W0[n],s=t[r],Tn(s)||(e[r]=s);return e}function Yl(e){hp(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Sf===!1&&(Sf=!0,ne.updateOffset(this),Sf=!1)}function xr(e){return e instanceof Yl||e!=null&&e._isAMomentObject!=null}function Qk(e){ne.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function rr(e,t){var n=!0;return $s(function(){if(ne.deprecationHandler!=null&&ne.deprecationHandler(null,e),n){var r=[],s,i,o,a=arguments.length;for(i=0;i<a;i++){if(s="",typeof arguments[i]=="object"){s+=`
[`+i+"] ";for(o in arguments[0])Ye(arguments[0],o)&&(s+=o+": "+arguments[0][o]+", ");s=s.slice(0,-2)}else s=arguments[i];r.push(s)}Qk(e+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var B0={};function Jk(e,t){ne.deprecationHandler!=null&&ne.deprecationHandler(e,t),B0[e]||(Qk(t),B0[e]=!0)}ne.suppressDeprecationWarnings=!1;ne.deprecationHandler=null;function Kr(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function n8(e){var t,n;for(n in e)Ye(e,n)&&(t=e[n],Kr(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function $h(e,t){var n=$s({},e),r;for(r in t)Ye(t,r)&&(Pi(e[r])&&Pi(t[r])?(n[r]={},$s(n[r],e[r]),$s(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Ye(e,r)&&!Ye(t,r)&&Pi(e[r])&&(n[r]=$s({},n[r]));return n}function mp(e){e!=null&&this.set(e)}var Vh;Object.keys?Vh=Object.keys:Vh=function(e){var t,n=[];for(t in e)Ye(e,t)&&n.push(t);return n};var r8={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function s8(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Kr(r)?r.call(t,n):r}function Yr(e,t,n){var r=""+Math.abs(e),s=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var gp=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,pc=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,_f={},yo={};function xe(e,t,n,r){var s=r;typeof r=="string"&&(s=function(){return this[r]()}),e&&(yo[e]=s),t&&(yo[t[0]]=function(){return Yr(s.apply(this,arguments),t[1],t[2])}),n&&(yo[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function i8(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function o8(e){var t=e.match(gp),n,r;for(n=0,r=t.length;n<r;n++)yo[t[n]]?t[n]=yo[t[n]]:t[n]=i8(t[n]);return function(s){var i="",o;for(o=0;o<r;o++)i+=Kr(t[o])?t[o].call(s,e):t[o];return i}}function Dc(e,t){return e.isValid()?(t=eT(t,e.localeData()),_f[t]=_f[t]||o8(t),_f[t](e)):e.localeData().invalidDate()}function eT(e,t){var n=5;function r(s){return t.longDateFormat(s)||s}for(pc.lastIndex=0;n>=0&&pc.test(e);)e=e.replace(pc,r),pc.lastIndex=0,n-=1;return e}var a8={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function l8(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(gp).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var c8="Invalid date";function u8(){return this._invalidDate}var d8="%d",f8=/\d{1,2}/;function h8(e){return this._ordinal.replace("%d",e)}var m8={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function g8(e,t,n,r){var s=this._relativeTime[n];return Kr(s)?s(e,t,n,r):s.replace(/%d/i,e)}function p8(e,t){var n=this._relativeTime[e>0?"future":"past"];return Kr(n)?n(t):n.replace(/%s/i,t)}var z0={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function sr(e){return typeof e=="string"?z0[e]||z0[e.toLowerCase()]:void 0}function pp(e){var t={},n,r;for(r in e)Ye(e,r)&&(n=sr(r),n&&(t[n]=e[r]));return t}var v8={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function y8(e){var t=[],n;for(n in e)Ye(e,n)&&t.push({unit:n,priority:v8[n]});return t.sort(function(r,s){return r.priority-s.priority}),t}var tT=/\d/,Hn=/\d\d/,nT=/\d{3}/,vp=/\d{4}/,ud=/[+-]?\d{6}/,dt=/\d\d?/,rT=/\d\d\d\d?/,sT=/\d\d\d\d\d\d?/,dd=/\d{1,3}/,yp=/\d{1,4}/,fd=/[+-]?\d{1,6}/,sa=/\d+/,hd=/[+-]?\d+/,b8=/Z|[+-]\d\d:?\d\d/gi,md=/Z|[+-]\d\d(?::?\d\d)?/gi,x8=/[+-]?\d+(\.\d{1,3})?/,Hl=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ia=/^[1-9]\d?/,bp=/^([1-9]\d|\d)/,nu;nu={};function ce(e,t,n){nu[e]=Kr(t)?t:function(r,s){return r&&n?n:t}}function w8(e,t){return Ye(nu,e)?nu[e](t._strict,t._locale):new RegExp(S8(e))}function S8(e){return ms(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,s,i){return n||r||s||i}))}function ms(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Xn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Fe(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Xn(t)),n}var Wh={};function rt(e,t){var n,r=t,s;for(typeof e=="string"&&(e=[e]),Ss(t)&&(r=function(i,o){o[t]=Fe(i)}),s=e.length,n=0;n<s;n++)Wh[e[n]]=r}function Ul(e,t){rt(e,function(n,r,s,i){s._w=s._w||{},t(n,s._w,s,i)})}function _8(e,t,n){t!=null&&Ye(Wh,e)&&Wh[e](t,n._a,n,e)}function gd(e){return e%4===0&&e%100!==0||e%400===0}var dn=0,ls=1,Ir=2,Yt=3,fr=4,cs=5,Mi=6,C8=7,k8=8;xe("Y",0,0,function(){var e=this.year();return e<=9999?Yr(e,4):"+"+e});xe(0,["YY",2],0,function(){return this.year()%100});xe(0,["YYYY",4],0,"year");xe(0,["YYYYY",5],0,"year");xe(0,["YYYYYY",6,!0],0,"year");ce("Y",hd);ce("YY",dt,Hn);ce("YYYY",yp,vp);ce("YYYYY",fd,ud);ce("YYYYYY",fd,ud);rt(["YYYYY","YYYYYY"],dn);rt("YYYY",function(e,t){t[dn]=e.length===2?ne.parseTwoDigitYear(e):Fe(e)});rt("YY",function(e,t){t[dn]=ne.parseTwoDigitYear(e)});rt("Y",function(e,t){t[dn]=parseInt(e,10)});function Va(e){return gd(e)?366:365}ne.parseTwoDigitYear=function(e){return Fe(e)+(Fe(e)>68?1900:2e3)};var iT=oa("FullYear",!0);function T8(){return gd(this.year())}function oa(e,t){return function(n){return n!=null?(oT(this,e,n),ne.updateOffset(this,t),this):ol(this,e)}}function ol(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function oT(e,t,n){var r,s,i,o,a;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(s?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(s?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(s?r.setUTCHours(n):r.setHours(n));case"Date":return void(s?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,o=e.month(),a=e.date(),a=a===29&&o===1&&!gd(i)?28:a,s?r.setUTCFullYear(i,o,a):r.setFullYear(i,o,a)}}function M8(e){return e=sr(e),Kr(this[e])?this[e]():this}function E8(e,t){if(typeof e=="object"){e=pp(e);var n=y8(e),r,s=n.length;for(r=0;r<s;r++)this[n[r].unit](e[n[r].unit])}else if(e=sr(e),Kr(this[e]))return this[e](t);return this}function O8(e,t){return(e%t+t)%t}var At;Array.prototype.indexOf?At=Array.prototype.indexOf:At=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function xp(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=O8(t,12);return e+=(t-n)/12,n===1?gd(e)?29:28:31-n%7%2}xe("M",["MM",2],"Mo",function(){return this.month()+1});xe("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});xe("MMMM",0,0,function(e){return this.localeData().months(this,e)});ce("M",dt,ia);ce("MM",dt,Hn);ce("MMM",function(e,t){return t.monthsShortRegex(e)});ce("MMMM",function(e,t){return t.monthsRegex(e)});rt(["M","MM"],function(e,t){t[ls]=Fe(e)-1});rt(["MMM","MMMM"],function(e,t,n,r){var s=n._locale.monthsParse(e,r,n._strict);s!=null?t[ls]=s:De(n).invalidMonth=e});var D8="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),aT="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),lT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,P8=Hl,A8=Hl;function R8(e,t){return e?br(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||lT).test(t)?"format":"standalone"][e.month()]:br(this._months)?this._months:this._months.standalone}function j8(e,t){return e?br(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[lT.test(t)?"format":"standalone"][e.month()]:br(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function I8(e,t,n){var r,s,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=qr([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(s=At.call(this._shortMonthsParse,o),s!==-1?s:null):(s=At.call(this._longMonthsParse,o),s!==-1?s:null):t==="MMM"?(s=At.call(this._shortMonthsParse,o),s!==-1?s:(s=At.call(this._longMonthsParse,o),s!==-1?s:null)):(s=At.call(this._longMonthsParse,o),s!==-1?s:(s=At.call(this._shortMonthsParse,o),s!==-1?s:null))}function N8(e,t,n){var r,s,i;if(this._monthsParseExact)return I8.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(s=qr([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(i="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function cT(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Fe(t);else if(t=e.localeData().monthsParse(t),!Ss(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,xp(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function uT(e){return e!=null?(cT(this,e),ne.updateOffset(this,!0),this):ol(this,"Month")}function F8(){return xp(this.year(),this.month())}function L8(e){return this._monthsParseExact?(Ye(this,"_monthsRegex")||dT.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Ye(this,"_monthsShortRegex")||(this._monthsShortRegex=P8),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function $8(e){return this._monthsParseExact?(Ye(this,"_monthsRegex")||dT.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Ye(this,"_monthsRegex")||(this._monthsRegex=A8),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function dT(){function e(l,c){return c.length-l.length}var t=[],n=[],r=[],s,i,o,a;for(s=0;s<12;s++)i=qr([2e3,s]),o=ms(this.monthsShort(i,"")),a=ms(this.months(i,"")),t.push(o),n.push(a),r.push(a),r.push(o);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function V8(e,t,n,r,s,i,o){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,s,i,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,s,i,o),a}function al(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ru(e,t,n){var r=7+t-n,s=(7+al(e,0,r).getUTCDay()-t)%7;return-s+r-1}function fT(e,t,n,r,s){var i=(7+n-r)%7,o=ru(e,r,s),a=1+7*(t-1)+i+o,l,c;return a<=0?(l=e-1,c=Va(l)+a):a>Va(e)?(l=e+1,c=a-Va(e)):(l=e,c=a),{year:l,dayOfYear:c}}function ll(e,t,n){var r=ru(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1,i,o;return s<1?(o=e.year()-1,i=s+gs(o,t,n)):s>gs(e.year(),t,n)?(i=s-gs(e.year(),t,n),o=e.year()+1):(o=e.year(),i=s),{week:i,year:o}}function gs(e,t,n){var r=ru(e,t,n),s=ru(e+1,t,n);return(Va(e)-r+s)/7}xe("w",["ww",2],"wo","week");xe("W",["WW",2],"Wo","isoWeek");ce("w",dt,ia);ce("ww",dt,Hn);ce("W",dt,ia);ce("WW",dt,Hn);Ul(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Fe(e)});function W8(e){return ll(e,this._week.dow,this._week.doy).week}var B8={dow:0,doy:6};function z8(){return this._week.dow}function Y8(){return this._week.doy}function H8(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function U8(e){var t=ll(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}xe("d",0,"do","day");xe("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});xe("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});xe("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});xe("e",0,0,"weekday");xe("E",0,0,"isoWeekday");ce("d",dt);ce("e",dt);ce("E",dt);ce("dd",function(e,t){return t.weekdaysMinRegex(e)});ce("ddd",function(e,t){return t.weekdaysShortRegex(e)});ce("dddd",function(e,t){return t.weekdaysRegex(e)});Ul(["dd","ddd","dddd"],function(e,t,n,r){var s=n._locale.weekdaysParse(e,r,n._strict);s!=null?t.d=s:De(n).invalidWeekday=e});Ul(["d","e","E"],function(e,t,n,r){t[r]=Fe(e)});function G8(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function q8(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function wp(e,t){return e.slice(t,7).concat(e.slice(0,t))}var K8="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),hT="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),X8="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Z8=Hl,Q8=Hl,J8=Hl;function eG(e,t){var n=br(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?wp(n,this._week.dow):e?n[e.day()]:n}function tG(e){return e===!0?wp(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function nG(e){return e===!0?wp(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function rG(e,t,n){var r,s,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=qr([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(s=At.call(this._weekdaysParse,o),s!==-1?s:null):t==="ddd"?(s=At.call(this._shortWeekdaysParse,o),s!==-1?s:null):(s=At.call(this._minWeekdaysParse,o),s!==-1?s:null):t==="dddd"?(s=At.call(this._weekdaysParse,o),s!==-1||(s=At.call(this._shortWeekdaysParse,o),s!==-1)?s:(s=At.call(this._minWeekdaysParse,o),s!==-1?s:null)):t==="ddd"?(s=At.call(this._shortWeekdaysParse,o),s!==-1||(s=At.call(this._weekdaysParse,o),s!==-1)?s:(s=At.call(this._minWeekdaysParse,o),s!==-1?s:null)):(s=At.call(this._minWeekdaysParse,o),s!==-1||(s=At.call(this._weekdaysParse,o),s!==-1)?s:(s=At.call(this._shortWeekdaysParse,o),s!==-1?s:null))}function sG(e,t,n){var r,s,i;if(this._weekdaysParseExact)return rG.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(s=qr([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function iG(e){if(!this.isValid())return e!=null?this:NaN;var t=ol(this,"Day");return e!=null?(e=G8(e,this.localeData()),this.add(e-t,"d")):t}function oG(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function aG(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=q8(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function lG(e){return this._weekdaysParseExact?(Ye(this,"_weekdaysRegex")||Sp.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ye(this,"_weekdaysRegex")||(this._weekdaysRegex=Z8),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function cG(e){return this._weekdaysParseExact?(Ye(this,"_weekdaysRegex")||Sp.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ye(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Q8),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function uG(e){return this._weekdaysParseExact?(Ye(this,"_weekdaysRegex")||Sp.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ye(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=J8),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Sp(){function e(u,d){return d.length-u.length}var t=[],n=[],r=[],s=[],i,o,a,l,c;for(i=0;i<7;i++)o=qr([2e3,1]).day(i),a=ms(this.weekdaysMin(o,"")),l=ms(this.weekdaysShort(o,"")),c=ms(this.weekdays(o,"")),t.push(a),n.push(l),r.push(c),s.push(a),s.push(l),s.push(c);t.sort(e),n.sort(e),r.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function _p(){return this.hours()%12||12}function dG(){return this.hours()||24}xe("H",["HH",2],0,"hour");xe("h",["hh",2],0,_p);xe("k",["kk",2],0,dG);xe("hmm",0,0,function(){return""+_p.apply(this)+Yr(this.minutes(),2)});xe("hmmss",0,0,function(){return""+_p.apply(this)+Yr(this.minutes(),2)+Yr(this.seconds(),2)});xe("Hmm",0,0,function(){return""+this.hours()+Yr(this.minutes(),2)});xe("Hmmss",0,0,function(){return""+this.hours()+Yr(this.minutes(),2)+Yr(this.seconds(),2)});function mT(e,t){xe(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}mT("a",!0);mT("A",!1);function gT(e,t){return t._meridiemParse}ce("a",gT);ce("A",gT);ce("H",dt,bp);ce("h",dt,ia);ce("k",dt,ia);ce("HH",dt,Hn);ce("hh",dt,Hn);ce("kk",dt,Hn);ce("hmm",rT);ce("hmmss",sT);ce("Hmm",rT);ce("Hmmss",sT);rt(["H","HH"],Yt);rt(["k","kk"],function(e,t,n){var r=Fe(e);t[Yt]=r===24?0:r});rt(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});rt(["h","hh"],function(e,t,n){t[Yt]=Fe(e),De(n).bigHour=!0});rt("hmm",function(e,t,n){var r=e.length-2;t[Yt]=Fe(e.substr(0,r)),t[fr]=Fe(e.substr(r)),De(n).bigHour=!0});rt("hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[Yt]=Fe(e.substr(0,r)),t[fr]=Fe(e.substr(r,2)),t[cs]=Fe(e.substr(s)),De(n).bigHour=!0});rt("Hmm",function(e,t,n){var r=e.length-2;t[Yt]=Fe(e.substr(0,r)),t[fr]=Fe(e.substr(r))});rt("Hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[Yt]=Fe(e.substr(0,r)),t[fr]=Fe(e.substr(r,2)),t[cs]=Fe(e.substr(s))});function fG(e){return(e+"").toLowerCase().charAt(0)==="p"}var hG=/[ap]\.?m?\.?/i,mG=oa("Hours",!0);function gG(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var pT={calendar:r8,longDateFormat:a8,invalidDate:c8,ordinal:d8,dayOfMonthOrdinalParse:f8,relativeTime:m8,months:D8,monthsShort:aT,week:B8,weekdays:K8,weekdaysMin:X8,weekdaysShort:hT,meridiemParse:hG},gt={},va={},cl;function pG(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function Y0(e){return e&&e.toLowerCase().replace("_","-")}function vG(e){for(var t=0,n,r,s,i;t<e.length;){for(i=Y0(e[t]).split("-"),n=i.length,r=Y0(e[t+1]),r=r?r.split("-"):null;n>0;){if(s=pd(i.slice(0,n).join("-")),s)return s;if(r&&r.length>=n&&pG(i,r)>=n-1)break;n--}t++}return cl}function yG(e){return!!(e&&e.match("^[^/\\\\]*$"))}function pd(e){var t=null,n;if(gt[e]===void 0&&typeof jc<"u"&&jc&&jc.exports&&yG(e))try{t=cl._abbr,n=require,n("./locale/"+e),Ys(t)}catch{gt[e]=null}return gt[e]}function Ys(e,t){var n;return e&&(Tn(t)?n=Ts(e):n=Cp(e,t),n?cl=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),cl._abbr}function Cp(e,t){if(t!==null){var n,r=pT;if(t.abbr=e,gt[e]!=null)Jk("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=gt[e]._config;else if(t.parentLocale!=null)if(gt[t.parentLocale]!=null)r=gt[t.parentLocale]._config;else if(n=pd(t.parentLocale),n!=null)r=n._config;else return va[t.parentLocale]||(va[t.parentLocale]=[]),va[t.parentLocale].push({name:e,config:t}),null;return gt[e]=new mp($h(r,t)),va[e]&&va[e].forEach(function(s){Cp(s.name,s.config)}),Ys(e),gt[e]}else return delete gt[e],null}function bG(e,t){if(t!=null){var n,r,s=pT;gt[e]!=null&&gt[e].parentLocale!=null?gt[e].set($h(gt[e]._config,t)):(r=pd(e),r!=null&&(s=r._config),t=$h(s,t),r==null&&(t.abbr=e),n=new mp(t),n.parentLocale=gt[e],gt[e]=n),Ys(e)}else gt[e]!=null&&(gt[e].parentLocale!=null?(gt[e]=gt[e].parentLocale,e===Ys()&&Ys(e)):gt[e]!=null&&delete gt[e]);return gt[e]}function Ts(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return cl;if(!br(e)){if(t=pd(e),t)return t;e=[e]}return vG(e)}function xG(){return Vh(gt)}function kp(e){var t,n=e._a;return n&&De(e).overflow===-2&&(t=n[ls]<0||n[ls]>11?ls:n[Ir]<1||n[Ir]>xp(n[dn],n[ls])?Ir:n[Yt]<0||n[Yt]>24||n[Yt]===24&&(n[fr]!==0||n[cs]!==0||n[Mi]!==0)?Yt:n[fr]<0||n[fr]>59?fr:n[cs]<0||n[cs]>59?cs:n[Mi]<0||n[Mi]>999?Mi:-1,De(e)._overflowDayOfYear&&(t<dn||t>Ir)&&(t=Ir),De(e)._overflowWeeks&&t===-1&&(t=C8),De(e)._overflowWeekday&&t===-1&&(t=k8),De(e).overflow=t),e}var wG=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,SG=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_G=/Z|[+-]\d\d(?::?\d\d)?/,vc=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Cf=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],CG=/^\/?Date\((-?\d+)/i,kG=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,TG={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function vT(e){var t,n,r=e._i,s=wG.exec(r)||SG.exec(r),i,o,a,l,c=vc.length,u=Cf.length;if(s){for(De(e).iso=!0,t=0,n=c;t<n;t++)if(vc[t][1].exec(s[1])){o=vc[t][0],i=vc[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(s[3]){for(t=0,n=u;t<n;t++)if(Cf[t][1].exec(s[3])){a=(s[2]||" ")+Cf[t][0];break}if(a==null){e._isValid=!1;return}}if(!i&&a!=null){e._isValid=!1;return}if(s[4])if(_G.exec(s[4]))l="Z";else{e._isValid=!1;return}e._f=o+(a||"")+(l||""),Mp(e)}else e._isValid=!1}function MG(e,t,n,r,s,i){var o=[EG(e),aT.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(s,10)];return i&&o.push(parseInt(i,10)),o}function EG(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function OG(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function DG(e,t,n){if(e){var r=hT.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(r!==s)return De(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function PG(e,t,n){if(e)return TG[e];if(t)return 0;var r=parseInt(n,10),s=r%100,i=(r-s)/100;return i*60+s}function yT(e){var t=kG.exec(OG(e._i)),n;if(t){if(n=MG(t[4],t[3],t[2],t[5],t[6],t[7]),!DG(t[1],n,e))return;e._a=n,e._tzm=PG(t[8],t[9],t[10]),e._d=al.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),De(e).rfc2822=!0}else e._isValid=!1}function AG(e){var t=CG.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(vT(e),e._isValid===!1)delete e._isValid;else return;if(yT(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ne.createFromInputFallback(e)}ne.createFromInputFallback=rr("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function so(e,t,n){return e??t??n}function RG(e){var t=new Date(ne.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Tp(e){var t,n,r=[],s,i,o;if(!e._d){for(s=RG(e),e._w&&e._a[Ir]==null&&e._a[ls]==null&&jG(e),e._dayOfYear!=null&&(o=so(e._a[dn],s[dn]),(e._dayOfYear>Va(o)||e._dayOfYear===0)&&(De(e)._overflowDayOfYear=!0),n=al(o,0,e._dayOfYear),e._a[ls]=n.getUTCMonth(),e._a[Ir]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=s[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Yt]===24&&e._a[fr]===0&&e._a[cs]===0&&e._a[Mi]===0&&(e._nextDay=!0,e._a[Yt]=0),e._d=(e._useUTC?al:V8).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Yt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(De(e).weekdayMismatch=!0)}}function jG(e){var t,n,r,s,i,o,a,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,n=so(t.GG,e._a[dn],ll(ut(),1,4).year),r=so(t.W,1),s=so(t.E,1),(s<1||s>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,c=ll(ut(),i,o),n=so(t.gg,e._a[dn],c.year),r=so(t.w,c.week),t.d!=null?(s=t.d,(s<0||s>6)&&(l=!0)):t.e!=null?(s=t.e+i,(t.e<0||t.e>6)&&(l=!0)):s=i),r<1||r>gs(n,i,o)?De(e)._overflowWeeks=!0:l!=null?De(e)._overflowWeekday=!0:(a=fT(n,r,s,i,o),e._a[dn]=a.year,e._dayOfYear=a.dayOfYear)}ne.ISO_8601=function(){};ne.RFC_2822=function(){};function Mp(e){if(e._f===ne.ISO_8601){vT(e);return}if(e._f===ne.RFC_2822){yT(e);return}e._a=[],De(e).empty=!0;var t=""+e._i,n,r,s,i,o,a=t.length,l=0,c,u;for(s=eT(e._f,e._locale).match(gp)||[],u=s.length,n=0;n<u;n++)i=s[n],r=(t.match(w8(i,e))||[])[0],r&&(o=t.substr(0,t.indexOf(r)),o.length>0&&De(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),l+=r.length),yo[i]?(r?De(e).empty=!1:De(e).unusedTokens.push(i),_8(i,r,e)):e._strict&&!r&&De(e).unusedTokens.push(i);De(e).charsLeftOver=a-l,t.length>0&&De(e).unusedInput.push(t),e._a[Yt]<=12&&De(e).bigHour===!0&&e._a[Yt]>0&&(De(e).bigHour=void 0),De(e).parsedDateParts=e._a.slice(0),De(e).meridiem=e._meridiem,e._a[Yt]=IG(e._locale,e._a[Yt],e._meridiem),c=De(e).era,c!==null&&(e._a[dn]=e._locale.erasConvertYear(c,e._a[dn])),Tp(e),kp(e)}function IG(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function NG(e){var t,n,r,s,i,o,a=!1,l=e._f.length;if(l===0){De(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<l;s++)i=0,o=!1,t=hp({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],Mp(t),fp(t)&&(o=!0),i+=De(t).charsLeftOver,i+=De(t).unusedTokens.length*10,De(t).score=i,a?i<r&&(r=i,n=t):(r==null||i<r||o)&&(r=i,n=t,o&&(a=!0));$s(e,n||t)}function FG(e){if(!e._d){var t=pp(e._i),n=t.day===void 0?t.date:t.day;e._a=Zk([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Tp(e)}}function LG(e){var t=new Yl(kp(bT(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function bT(e){var t=e._i,n=e._f;return e._locale=e._locale||Ts(e._l),t===null||n===void 0&&t===""?cd({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),xr(t)?new Yl(kp(t)):(zl(t)?e._d=t:br(n)?NG(e):n?Mp(e):$G(e),fp(e)||(e._d=null),e))}function $G(e){var t=e._i;Tn(t)?e._d=new Date(ne.now()):zl(t)?e._d=new Date(t.valueOf()):typeof t=="string"?AG(e):br(t)?(e._a=Zk(t.slice(0),function(n){return parseInt(n,10)}),Tp(e)):Pi(t)?FG(e):Ss(t)?e._d=new Date(t):ne.createFromInputFallback(e)}function xT(e,t,n,r,s){var i={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Pi(e)&&dp(e)||br(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=s,i._l=n,i._i=e,i._f=t,i._strict=r,LG(i)}function ut(e,t,n,r){return xT(e,t,n,r,!1)}var VG=rr("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ut.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:cd()}),WG=rr("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ut.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:cd()});function wT(e,t){var n,r;if(t.length===1&&br(t[0])&&(t=t[0]),!t.length)return ut();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function BG(){var e=[].slice.call(arguments,0);return wT("isBefore",e)}function zG(){var e=[].slice.call(arguments,0);return wT("isAfter",e)}var YG=function(){return Date.now?Date.now():+new Date},ya=["year","quarter","month","week","day","hour","minute","second","millisecond"];function HG(e){var t,n=!1,r,s=ya.length;for(t in e)if(Ye(e,t)&&!(At.call(ya,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<s;++r)if(e[ya[r]]){if(n)return!1;parseFloat(e[ya[r]])!==Fe(e[ya[r]])&&(n=!0)}return!0}function UG(){return this._isValid}function GG(){return kr(NaN)}function vd(e){var t=pp(e),n=t.year||0,r=t.quarter||0,s=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,a=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=HG(t),this._milliseconds=+u+c*1e3+l*6e4+a*1e3*60*60,this._days=+o+i*7,this._months=+s+r*3+n*12,this._data={},this._locale=Ts(),this._bubble()}function Pc(e){return e instanceof vd}function Bh(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function qG(e,t,n){var r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),i=0,o;for(o=0;o<r;o++)Fe(e[o])!==Fe(t[o])&&i++;return i+s}function ST(e,t){xe(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Yr(~~(n/60),2)+t+Yr(~~n%60,2)})}ST("Z",":");ST("ZZ","");ce("Z",md);ce("ZZ",md);rt(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ep(md,e)});var KG=/([\+\-]|\d\d)/gi;function Ep(e,t){var n=(t||"").match(e),r,s,i;return n===null?null:(r=n[n.length-1]||[],s=(r+"").match(KG)||["-",0,0],i=+(s[1]*60)+Fe(s[2]),i===0?0:s[0]==="+"?i:-i)}function Op(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(xr(e)||zl(e)?e.valueOf():ut(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),ne.updateOffset(n,!1),n):ut(e).local()}function zh(e){return-Math.round(e._d.getTimezoneOffset())}ne.updateOffset=function(){};function XG(e,t,n){var r=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Ep(md,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(s=zh(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),r!==e&&(!t||this._changeInProgress?kT(this,kr(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ne.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:zh(this)}function ZG(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function QG(e){return this.utcOffset(0,e)}function JG(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zh(this),"m")),this}function e7(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Ep(b8,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function t7(e){return this.isValid()?(e=e?ut(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function n7(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function r7(){if(!Tn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return hp(e,this),e=bT(e),e._a?(t=e._isUTC?qr(e._a):ut(e._a),this._isDSTShifted=this.isValid()&&qG(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function s7(){return this.isValid()?!this._isUTC:!1}function i7(){return this.isValid()?this._isUTC:!1}function _T(){return this.isValid()?this._isUTC&&this._offset===0:!1}var o7=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,a7=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function kr(e,t){var n=e,r=null,s,i,o;return Pc(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Ss(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=o7.exec(e))?(s=r[1]==="-"?-1:1,n={y:0,d:Fe(r[Ir])*s,h:Fe(r[Yt])*s,m:Fe(r[fr])*s,s:Fe(r[cs])*s,ms:Fe(Bh(r[Mi]*1e3))*s}):(r=a7.exec(e))?(s=r[1]==="-"?-1:1,n={y:mi(r[2],s),M:mi(r[3],s),w:mi(r[4],s),d:mi(r[5],s),h:mi(r[6],s),m:mi(r[7],s),s:mi(r[8],s)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=l7(ut(n.from),ut(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),i=new vd(n),Pc(e)&&Ye(e,"_locale")&&(i._locale=e._locale),Pc(e)&&Ye(e,"_isValid")&&(i._isValid=e._isValid),i}kr.fn=vd.prototype;kr.invalid=GG;function mi(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function H0(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function l7(e,t){var n;return e.isValid()&&t.isValid()?(t=Op(t,e),e.isBefore(t)?n=H0(e,t):(n=H0(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function CT(e,t){return function(n,r){var s,i;return r!==null&&!isNaN(+r)&&(Jk(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),s=kr(n,r),kT(this,s,e),this}}function kT(e,t,n,r){var s=t._milliseconds,i=Bh(t._days),o=Bh(t._months);e.isValid()&&(r=r??!0,o&&cT(e,ol(e,"Month")+o*n),i&&oT(e,"Date",ol(e,"Date")+i*n),s&&e._d.setTime(e._d.valueOf()+s*n),r&&ne.updateOffset(e,i||o))}var c7=CT(1,"add"),u7=CT(-1,"subtract");function TT(e){return typeof e=="string"||e instanceof String}function d7(e){return xr(e)||zl(e)||TT(e)||Ss(e)||h7(e)||f7(e)||e===null||e===void 0}function f7(e){var t=Pi(e)&&!dp(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,i,o=r.length;for(s=0;s<o;s+=1)i=r[s],n=n||Ye(e,i);return t&&n}function h7(e){var t=br(e),n=!1;return t&&(n=e.filter(function(r){return!Ss(r)&&TT(e)}).length===0),t&&n}function m7(e){var t=Pi(e)&&!dp(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,i;for(s=0;s<r.length;s+=1)i=r[s],n=n||Ye(e,i);return t&&n}function g7(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function p7(e,t){arguments.length===1&&(arguments[0]?d7(arguments[0])?(e=arguments[0],t=void 0):m7(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||ut(),r=Op(n,this).startOf("day"),s=ne.calendarFormat(this,r)||"sameElse",i=t&&(Kr(t[s])?t[s].call(this,n):t[s]);return this.format(i||this.localeData().calendar(s,this,ut(n)))}function v7(){return new Yl(this)}function y7(e,t){var n=xr(e)?e:ut(e);return this.isValid()&&n.isValid()?(t=sr(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function b7(e,t){var n=xr(e)?e:ut(e);return this.isValid()&&n.isValid()?(t=sr(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function x7(e,t,n,r){var s=xr(e)?e:ut(e),i=xr(t)?t:ut(t);return this.isValid()&&s.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(s,n):!this.isBefore(s,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function w7(e,t){var n=xr(e)?e:ut(e),r;return this.isValid()&&n.isValid()?(t=sr(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function S7(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function _7(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function C7(e,t,n){var r,s,i;if(!this.isValid())return NaN;if(r=Op(e,this),!r.isValid())return NaN;switch(s=(r.utcOffset()-this.utcOffset())*6e4,t=sr(t),t){case"year":i=Ac(this,r)/12;break;case"month":i=Ac(this,r);break;case"quarter":i=Ac(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-s)/864e5;break;case"week":i=(this-r-s)/6048e5;break;default:i=this-r}return n?i:Xn(i)}function Ac(e,t){if(e.date()<t.date())return-Ac(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),s,i;return t-r<0?(s=e.clone().add(n-1,"months"),i=(t-r)/(r-s)):(s=e.clone().add(n+1,"months"),i=(t-r)/(s-r)),-(n+i)||0}ne.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";ne.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function k7(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function T7(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Dc(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Kr(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Dc(n,"Z")):Dc(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function M7(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,s,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+s+i)}function E7(e){e||(e=this.isUtc()?ne.defaultFormatUtc:ne.defaultFormat);var t=Dc(this,e);return this.localeData().postformat(t)}function O7(e,t){return this.isValid()&&(xr(e)&&e.isValid()||ut(e).isValid())?kr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function D7(e){return this.from(ut(),e)}function P7(e,t){return this.isValid()&&(xr(e)&&e.isValid()||ut(e).isValid())?kr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function A7(e){return this.to(ut(),e)}function MT(e){var t;return e===void 0?this._locale._abbr:(t=Ts(e),t!=null&&(this._locale=t),this)}var ET=rr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function OT(){return this._locale}var su=1e3,bo=60*su,iu=60*bo,DT=(365*400+97)*24*iu;function xo(e,t){return(e%t+t)%t}function PT(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-DT:new Date(e,t,n).valueOf()}function AT(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-DT:Date.UTC(e,t,n)}function R7(e){var t,n;if(e=sr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?AT:PT,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=xo(t+(this._isUTC?0:this.utcOffset()*bo),iu);break;case"minute":t=this._d.valueOf(),t-=xo(t,bo);break;case"second":t=this._d.valueOf(),t-=xo(t,su);break}return this._d.setTime(t),ne.updateOffset(this,!0),this}function j7(e){var t,n;if(e=sr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?AT:PT,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=iu-xo(t+(this._isUTC?0:this.utcOffset()*bo),iu)-1;break;case"minute":t=this._d.valueOf(),t+=bo-xo(t,bo)-1;break;case"second":t=this._d.valueOf(),t+=su-xo(t,su)-1;break}return this._d.setTime(t),ne.updateOffset(this,!0),this}function I7(){return this._d.valueOf()-(this._offset||0)*6e4}function N7(){return Math.floor(this.valueOf()/1e3)}function F7(){return new Date(this.valueOf())}function L7(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function $7(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function V7(){return this.isValid()?this.toISOString():null}function W7(){return fp(this)}function B7(){return $s({},De(this))}function z7(){return De(this).overflow}function Y7(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}xe("N",0,0,"eraAbbr");xe("NN",0,0,"eraAbbr");xe("NNN",0,0,"eraAbbr");xe("NNNN",0,0,"eraName");xe("NNNNN",0,0,"eraNarrow");xe("y",["y",1],"yo","eraYear");xe("y",["yy",2],0,"eraYear");xe("y",["yyy",3],0,"eraYear");xe("y",["yyyy",4],0,"eraYear");ce("N",Dp);ce("NN",Dp);ce("NNN",Dp);ce("NNNN",tq);ce("NNNNN",nq);rt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var s=n._locale.erasParse(e,r,n._strict);s?De(n).era=s:De(n).invalidEra=e});ce("y",sa);ce("yy",sa);ce("yyy",sa);ce("yyyy",sa);ce("yo",rq);rt(["y","yy","yyy","yyyy"],dn);rt(["yo"],function(e,t,n,r){var s;n._locale._eraYearOrdinalRegex&&(s=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[dn]=n._locale.eraYearOrdinalParse(e,s):t[dn]=parseInt(e,10)});function H7(e,t){var n,r,s,i=this._eras||Ts("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":s=ne(i[n].since).startOf("day"),i[n].since=s.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":s=ne(i[n].until).startOf("day").valueOf(),i[n].until=s.valueOf();break}}return i}function U7(e,t,n){var r,s,i=this.eras(),o,a,l;for(e=e.toUpperCase(),r=0,s=i.length;r<s;++r)if(o=i[r].name.toUpperCase(),a=i[r].abbr.toUpperCase(),l=i[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return i[r];break;case"NNNN":if(o===e)return i[r];break;case"NNNNN":if(l===e)return i[r];break}else if([o,a,l].indexOf(e)>=0)return i[r]}function G7(e,t){var n=e.since<=e.until?1:-1;return t===void 0?ne(e.since).year():ne(e.since).year()+(t-e.offset)*n}function q7(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function K7(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function X7(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function Z7(){var e,t,n,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=s[e].since<=s[e].until?1:-1,r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return(this.year()-ne(s[e].since).year())*n+s[e].offset;return this.year()}function Q7(e){return Ye(this,"_erasNameRegex")||Pp.call(this),e?this._erasNameRegex:this._erasRegex}function J7(e){return Ye(this,"_erasAbbrRegex")||Pp.call(this),e?this._erasAbbrRegex:this._erasRegex}function eq(e){return Ye(this,"_erasNarrowRegex")||Pp.call(this),e?this._erasNarrowRegex:this._erasRegex}function Dp(e,t){return t.erasAbbrRegex(e)}function tq(e,t){return t.erasNameRegex(e)}function nq(e,t){return t.erasNarrowRegex(e)}function rq(e,t){return t._eraYearOrdinalRegex||sa}function Pp(){var e=[],t=[],n=[],r=[],s,i,o,a,l,c=this.eras();for(s=0,i=c.length;s<i;++s)o=ms(c[s].name),a=ms(c[s].abbr),l=ms(c[s].narrow),t.push(o),e.push(a),n.push(l),r.push(o),r.push(a),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}xe(0,["gg",2],0,function(){return this.weekYear()%100});xe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function yd(e,t){xe(0,[e,e.length],0,t)}yd("gggg","weekYear");yd("ggggg","weekYear");yd("GGGG","isoWeekYear");yd("GGGGG","isoWeekYear");ce("G",hd);ce("g",hd);ce("GG",dt,Hn);ce("gg",dt,Hn);ce("GGGG",yp,vp);ce("gggg",yp,vp);ce("GGGGG",fd,ud);ce("ggggg",fd,ud);Ul(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Fe(e)});Ul(["gg","GG"],function(e,t,n,r){t[r]=ne.parseTwoDigitYear(e)});function sq(e){return RT.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function iq(e){return RT.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function oq(){return gs(this.year(),1,4)}function aq(){return gs(this.isoWeekYear(),1,4)}function lq(){var e=this.localeData()._week;return gs(this.year(),e.dow,e.doy)}function cq(){var e=this.localeData()._week;return gs(this.weekYear(),e.dow,e.doy)}function RT(e,t,n,r,s){var i;return e==null?ll(this,r,s).year:(i=gs(e,r,s),t>i&&(t=i),uq.call(this,e,t,n,r,s))}function uq(e,t,n,r,s){var i=fT(e,t,n,r,s),o=al(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}xe("Q",0,"Qo","quarter");ce("Q",tT);rt("Q",function(e,t){t[ls]=(Fe(e)-1)*3});function dq(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}xe("D",["DD",2],"Do","date");ce("D",dt,ia);ce("DD",dt,Hn);ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});rt(["D","DD"],Ir);rt("Do",function(e,t){t[Ir]=Fe(e.match(dt)[0])});var jT=oa("Date",!0);xe("DDD",["DDDD",3],"DDDo","dayOfYear");ce("DDD",dd);ce("DDDD",nT);rt(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Fe(e)});function fq(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}xe("m",["mm",2],0,"minute");ce("m",dt,bp);ce("mm",dt,Hn);rt(["m","mm"],fr);var hq=oa("Minutes",!1);xe("s",["ss",2],0,"second");ce("s",dt,bp);ce("ss",dt,Hn);rt(["s","ss"],cs);var mq=oa("Seconds",!1);xe("S",0,0,function(){return~~(this.millisecond()/100)});xe(0,["SS",2],0,function(){return~~(this.millisecond()/10)});xe(0,["SSS",3],0,"millisecond");xe(0,["SSSS",4],0,function(){return this.millisecond()*10});xe(0,["SSSSS",5],0,function(){return this.millisecond()*100});xe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});xe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});xe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});xe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ce("S",dd,tT);ce("SS",dd,Hn);ce("SSS",dd,nT);var Vs,IT;for(Vs="SSSS";Vs.length<=9;Vs+="S")ce(Vs,sa);function gq(e,t){t[Mi]=Fe(("0."+e)*1e3)}for(Vs="S";Vs.length<=9;Vs+="S")rt(Vs,gq);IT=oa("Milliseconds",!1);xe("z",0,0,"zoneAbbr");xe("zz",0,0,"zoneName");function pq(){return this._isUTC?"UTC":""}function vq(){return this._isUTC?"Coordinated Universal Time":""}var ee=Yl.prototype;ee.add=c7;ee.calendar=p7;ee.clone=v7;ee.diff=C7;ee.endOf=j7;ee.format=E7;ee.from=O7;ee.fromNow=D7;ee.to=P7;ee.toNow=A7;ee.get=M8;ee.invalidAt=z7;ee.isAfter=y7;ee.isBefore=b7;ee.isBetween=x7;ee.isSame=w7;ee.isSameOrAfter=S7;ee.isSameOrBefore=_7;ee.isValid=W7;ee.lang=ET;ee.locale=MT;ee.localeData=OT;ee.max=WG;ee.min=VG;ee.parsingFlags=B7;ee.set=E8;ee.startOf=R7;ee.subtract=u7;ee.toArray=L7;ee.toObject=$7;ee.toDate=F7;ee.toISOString=T7;ee.inspect=M7;typeof Symbol<"u"&&Symbol.for!=null&&(ee[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ee.toJSON=V7;ee.toString=k7;ee.unix=N7;ee.valueOf=I7;ee.creationData=Y7;ee.eraName=q7;ee.eraNarrow=K7;ee.eraAbbr=X7;ee.eraYear=Z7;ee.year=iT;ee.isLeapYear=T8;ee.weekYear=sq;ee.isoWeekYear=iq;ee.quarter=ee.quarters=dq;ee.month=uT;ee.daysInMonth=F8;ee.week=ee.weeks=H8;ee.isoWeek=ee.isoWeeks=U8;ee.weeksInYear=lq;ee.weeksInWeekYear=cq;ee.isoWeeksInYear=oq;ee.isoWeeksInISOWeekYear=aq;ee.date=jT;ee.day=ee.days=iG;ee.weekday=oG;ee.isoWeekday=aG;ee.dayOfYear=fq;ee.hour=ee.hours=mG;ee.minute=ee.minutes=hq;ee.second=ee.seconds=mq;ee.millisecond=ee.milliseconds=IT;ee.utcOffset=XG;ee.utc=QG;ee.local=JG;ee.parseZone=e7;ee.hasAlignedHourOffset=t7;ee.isDST=n7;ee.isLocal=s7;ee.isUtcOffset=i7;ee.isUtc=_T;ee.isUTC=_T;ee.zoneAbbr=pq;ee.zoneName=vq;ee.dates=rr("dates accessor is deprecated. Use date instead.",jT);ee.months=rr("months accessor is deprecated. Use month instead",uT);ee.years=rr("years accessor is deprecated. Use year instead",iT);ee.zone=rr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ZG);ee.isDSTShifted=rr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",r7);function yq(e){return ut(e*1e3)}function bq(){return ut.apply(null,arguments).parseZone()}function NT(e){return e}var He=mp.prototype;He.calendar=s8;He.longDateFormat=l8;He.invalidDate=u8;He.ordinal=h8;He.preparse=NT;He.postformat=NT;He.relativeTime=g8;He.pastFuture=p8;He.set=n8;He.eras=H7;He.erasParse=U7;He.erasConvertYear=G7;He.erasAbbrRegex=J7;He.erasNameRegex=Q7;He.erasNarrowRegex=eq;He.months=R8;He.monthsShort=j8;He.monthsParse=N8;He.monthsRegex=$8;He.monthsShortRegex=L8;He.week=W8;He.firstDayOfYear=Y8;He.firstDayOfWeek=z8;He.weekdays=eG;He.weekdaysMin=nG;He.weekdaysShort=tG;He.weekdaysParse=sG;He.weekdaysRegex=lG;He.weekdaysShortRegex=cG;He.weekdaysMinRegex=uG;He.isPM=fG;He.meridiem=gG;function ou(e,t,n,r){var s=Ts(),i=qr().set(r,t);return s[n](i,e)}function FT(e,t,n){if(Ss(e)&&(t=e,e=void 0),e=e||"",t!=null)return ou(e,t,n,"month");var r,s=[];for(r=0;r<12;r++)s[r]=ou(e,r,n,"month");return s}function Ap(e,t,n,r){typeof e=="boolean"?(Ss(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Ss(t)&&(n=t,t=void 0),t=t||"");var s=Ts(),i=e?s._week.dow:0,o,a=[];if(n!=null)return ou(t,(n+i)%7,r,"day");for(o=0;o<7;o++)a[o]=ou(t,(o+i)%7,r,"day");return a}function xq(e,t){return FT(e,t,"months")}function wq(e,t){return FT(e,t,"monthsShort")}function Sq(e,t,n){return Ap(e,t,n,"weekdays")}function _q(e,t,n){return Ap(e,t,n,"weekdaysShort")}function Cq(e,t,n){return Ap(e,t,n,"weekdaysMin")}Ys("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Fe(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});ne.lang=rr("moment.lang is deprecated. Use moment.locale instead.",Ys);ne.langData=rr("moment.langData is deprecated. Use moment.localeData instead.",Ts);var ns=Math.abs;function kq(){var e=this._data;return this._milliseconds=ns(this._milliseconds),this._days=ns(this._days),this._months=ns(this._months),e.milliseconds=ns(e.milliseconds),e.seconds=ns(e.seconds),e.minutes=ns(e.minutes),e.hours=ns(e.hours),e.months=ns(e.months),e.years=ns(e.years),this}function LT(e,t,n,r){var s=kr(t,n);return e._milliseconds+=r*s._milliseconds,e._days+=r*s._days,e._months+=r*s._months,e._bubble()}function Tq(e,t){return LT(this,e,t,1)}function Mq(e,t){return LT(this,e,t,-1)}function U0(e){return e<0?Math.floor(e):Math.ceil(e)}function Eq(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,s,i,o,a,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=U0(Yh(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,s=Xn(e/1e3),r.seconds=s%60,i=Xn(s/60),r.minutes=i%60,o=Xn(i/60),r.hours=o%24,t+=Xn(o/24),l=Xn($T(t)),n+=l,t-=U0(Yh(l)),a=Xn(n/12),n%=12,r.days=t,r.months=n,r.years=a,this}function $T(e){return e*4800/146097}function Yh(e){return e*146097/4800}function Oq(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=sr(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+$T(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Yh(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Ms(e){return function(){return this.as(e)}}var VT=Ms("ms"),Dq=Ms("s"),Pq=Ms("m"),Aq=Ms("h"),Rq=Ms("d"),jq=Ms("w"),Iq=Ms("M"),Nq=Ms("Q"),Fq=Ms("y"),Lq=VT;function $q(){return kr(this)}function Vq(e){return e=sr(e),this.isValid()?this[e+"s"]():NaN}function Yi(e){return function(){return this.isValid()?this._data[e]:NaN}}var Wq=Yi("milliseconds"),Bq=Yi("seconds"),zq=Yi("minutes"),Yq=Yi("hours"),Hq=Yi("days"),Uq=Yi("months"),Gq=Yi("years");function qq(){return Xn(this.days()/7)}var is=Math.round,ho={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Kq(e,t,n,r,s){return s.relativeTime(t||1,!!n,e,r)}function Xq(e,t,n,r){var s=kr(e).abs(),i=is(s.as("s")),o=is(s.as("m")),a=is(s.as("h")),l=is(s.as("d")),c=is(s.as("M")),u=is(s.as("w")),d=is(s.as("y")),h=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d],h[2]=t,h[3]=+e>0,h[4]=r,Kq.apply(null,h)}function Zq(e){return e===void 0?is:typeof e=="function"?(is=e,!0):!1}function Qq(e,t){return ho[e]===void 0?!1:t===void 0?ho[e]:(ho[e]=t,e==="s"&&(ho.ss=t-1),!0)}function Jq(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=ho,s,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},ho,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),s=this.localeData(),i=Xq(this,!n,r,s),n&&(i=s.pastFuture(+this,i)),s.postformat(i)}var kf=Math.abs;function Qi(e){return(e>0)-(e<0)||+e}function bd(){if(!this.isValid())return this.localeData().invalidDate();var e=kf(this._milliseconds)/1e3,t=kf(this._days),n=kf(this._months),r,s,i,o,a=this.asSeconds(),l,c,u,d;return a?(r=Xn(e/60),s=Xn(r/60),e%=60,r%=60,i=Xn(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",c=Qi(this._months)!==Qi(a)?"-":"",u=Qi(this._days)!==Qi(a)?"-":"",d=Qi(this._milliseconds)!==Qi(a)?"-":"",l+"P"+(i?c+i+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(s||r||e?"T":"")+(s?d+s+"H":"")+(r?d+r+"M":"")+(e?d+o+"S":"")):"P0D"}var We=vd.prototype;We.isValid=UG;We.abs=kq;We.add=Tq;We.subtract=Mq;We.as=Oq;We.asMilliseconds=VT;We.asSeconds=Dq;We.asMinutes=Pq;We.asHours=Aq;We.asDays=Rq;We.asWeeks=jq;We.asMonths=Iq;We.asQuarters=Nq;We.asYears=Fq;We.valueOf=Lq;We._bubble=Eq;We.clone=$q;We.get=Vq;We.milliseconds=Wq;We.seconds=Bq;We.minutes=zq;We.hours=Yq;We.days=Hq;We.weeks=qq;We.months=Uq;We.years=Gq;We.humanize=Jq;We.toISOString=bd;We.toString=bd;We.toJSON=bd;We.locale=MT;We.localeData=OT;We.toIsoString=rr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bd);We.lang=ET;xe("X",0,0,"unix");xe("x",0,0,"valueOf");ce("x",hd);ce("X",x8);rt("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});rt("x",function(e,t,n){n._d=new Date(Fe(e))});//! moment.js
ne.version="2.30.1";e8(ut);ne.fn=ee;ne.min=BG;ne.max=zG;ne.now=YG;ne.utc=qr;ne.unix=yq;ne.months=xq;ne.isDate=zl;ne.locale=Ys;ne.invalid=cd;ne.duration=kr;ne.isMoment=xr;ne.weekdays=Sq;ne.parseZone=bq;ne.localeData=Ts;ne.isDuration=Pc;ne.monthsShort=wq;ne.weekdaysMin=Cq;ne.defineLocale=Cp;ne.updateLocale=bG;ne.locales=xG;ne.weekdaysShort=_q;ne.normalizeUnits=sr;ne.relativeTimeRounding=Zq;ne.relativeTimeThreshold=Qq;ne.calendarFormat=g7;ne.prototype=ee;ne.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const eK=Object.freeze(Object.defineProperty({__proto__:null,default:ne},Symbol.toStringTag,{value:"Module"}));var WT={exports:{}};const tK=GE(eK);(function(e){//! moment-timezone.js
//! version : 0.5.48
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
(function(t,n){e.exports?e.exports=n(tK):n(t.moment)})(Ux,function(t){t.version===void 0&&t.default&&(t=t.default);var n="0.5.48",r={},s={},i={},o={},a={},l;(!t||typeof t.version!="string")&&ie("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var c=t.version.split("."),u=+c[0],d=+c[1];(u<2||u===2&&d<6)&&ie("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+t.version+". See momentjs.com");function h(D){return D>96?D-87:D>64?D-29:D-48}function g(D){var V=0,W=D.split("."),H=W[0],de=W[1]||"",J=1,fe,ue=0,me=1;for(D.charCodeAt(0)===45&&(V=1,me=-1),V;V<H.length;V++)fe=h(H.charCodeAt(V)),ue=60*ue+fe;for(V=0;V<de.length;V++)J=J/60,fe=h(de.charCodeAt(V)),ue+=fe*J;return ue*me}function p(D){for(var V=0;V<D.length;V++)D[V]=g(D[V])}function v(D,V){for(var W=0;W<V;W++)D[W]=Math.round((D[W-1]||0)+D[W]*6e4);D[V-1]=1/0}function x(D,V){var W=[],H;for(H=0;H<V.length;H++)W[H]=D[V[H]];return W}function y(D){var V=D.split("|"),W=V[2].split(" "),H=V[3].split(""),de=V[4].split(" ");return p(W),p(H),p(de),v(de,H.length),{name:V[0],abbrs:x(V[1].split(" "),H),offsets:x(W,H),untils:de,population:V[5]|0}}function w(D){D&&this._set(y(D))}function b(D,V){var W=V.length;if(D<V[0])return 0;if(W>1&&V[W-1]===1/0&&D>=V[W-2])return W-1;if(D>=V[W-1])return-1;for(var H,de=0,J=W-1;J-de>1;)H=Math.floor((de+J)/2),V[H]<=D?de=H:J=H;return J}w.prototype={_set:function(D){this.name=D.name,this.abbrs=D.abbrs,this.untils=D.untils,this.offsets=D.offsets,this.population=D.population},_index:function(D){var V=+D,W=this.untils,H;if(H=b(V,W),H>=0)return H},countries:function(){var D=this.name;return Object.keys(i).filter(function(V){return i[V].zones.indexOf(D)!==-1})},parse:function(D){var V=+D,W=this.offsets,H=this.untils,de=H.length-1,J,fe,ue,me;for(me=0;me<de;me++)if(J=W[me],fe=W[me+1],ue=W[me&&me-1],J<fe&&X.moveAmbiguousForward?J=fe:J>ue&&X.moveInvalidForward&&(J=ue),V<H[me]-J*6e4)return W[me];return W[de]},abbr:function(D){return this.abbrs[this._index(D)]},offset:function(D){return ie("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(D)]},utcOffset:function(D){return this.offsets[this._index(D)]}};function C(D,V){this.name=D,this.zones=V}function _(D){var V=D.toTimeString(),W=V.match(/\([a-z ]+\)/i);W&&W[0]?(W=W[0].match(/[A-Z]/g),W=W?W.join(""):void 0):(W=V.match(/[A-Z]{3,5}/g),W=W?W[0]:void 0),W==="GMT"&&(W=void 0),this.at=+D,this.abbr=W,this.offset=D.getTimezoneOffset()}function S(D){this.zone=D,this.offsetScore=0,this.abbrScore=0}S.prototype.scoreOffsetAt=function(D){this.offsetScore+=Math.abs(this.zone.utcOffset(D.at)-D.offset),this.zone.abbr(D.at).replace(/[^A-Z]/g,"")!==D.abbr&&this.abbrScore++};function k(D,V){for(var W,H;H=((V.at-D.at)/12e4|0)*6e4;)W=new _(new Date(D.at+H)),W.offset===D.offset?D=W:V=W;return D}function T(){var D=new Date().getFullYear()-2,V=new _(new Date(D,0,1)),W=V.offset,H=[V],de,J,fe,ue;for(ue=1;ue<48;ue++)fe=new Date(D,ue,1).getTimezoneOffset(),fe!==W&&(J=new _(new Date(D,ue,1)),de=k(V,J),H.push(de),H.push(new _(new Date(de.at+6e4))),V=J,W=fe);for(ue=0;ue<4;ue++)H.push(new _(new Date(D+ue,0,1))),H.push(new _(new Date(D+ue,6,1)));return H}function M(D,V){return D.offsetScore!==V.offsetScore?D.offsetScore-V.offsetScore:D.abbrScore!==V.abbrScore?D.abbrScore-V.abbrScore:D.zone.population!==V.zone.population?V.zone.population-D.zone.population:V.zone.name.localeCompare(D.zone.name)}function E(D,V){var W,H;for(p(V),W=0;W<V.length;W++)H=V[W],a[H]=a[H]||{},a[H][D]=!0}function O(D){var V=D.length,W={},H=[],de={},J,fe,ue,me;for(J=0;J<V;J++)if(ue=D[J].offset,!de.hasOwnProperty(ue)){me=a[ue]||{};for(fe in me)me.hasOwnProperty(fe)&&(W[fe]=!0);de[ue]=!0}for(J in W)W.hasOwnProperty(J)&&H.push(o[J]);return H}function A(){try{var D=Intl.DateTimeFormat().resolvedOptions().timeZone;if(D&&D.length>3){var V=o[L(D)];if(V)return V;ie("Moment Timezone found "+D+" from the Intl api, but did not have that data loaded.")}}catch{}var W=T(),H=W.length,de=O(W),J=[],fe,ue,me;for(ue=0;ue<de.length;ue++){for(fe=new S(I(de[ue])),me=0;me<H;me++)fe.scoreOffsetAt(W[me]);J.push(fe)}return J.sort(M),J.length>0?J[0].zone.name:void 0}function P(D){return(!l||D)&&(l=A()),l}function L(D){return(D||"").toLowerCase().replace(/\//g,"_")}function F(D){var V,W,H,de;for(typeof D=="string"&&(D=[D]),V=0;V<D.length;V++)H=D[V].split("|"),W=H[0],de=L(W),r[de]=D[V],o[de]=W,E(de,H[2].split(" "))}function I(D,V){D=L(D);var W=r[D],H;return W instanceof w?W:typeof W=="string"?(W=new w(W),r[D]=W,W):s[D]&&V!==I&&(H=I(s[D],I))?(W=r[D]=new w,W._set(H),W.name=o[D],W):null}function j(){var D,V=[];for(D in o)o.hasOwnProperty(D)&&(r[D]||r[s[D]])&&o[D]&&V.push(o[D]);return V.sort()}function $(){return Object.keys(i)}function N(D){var V,W,H,de;for(typeof D=="string"&&(D=[D]),V=0;V<D.length;V++)W=D[V].split("|"),H=L(W[0]),de=L(W[1]),s[H]=de,o[H]=W[0],s[de]=H,o[de]=W[1]}function z(D){var V,W,H,de;if(!(!D||!D.length))for(V=0;V<D.length;V++)de=D[V].split("|"),W=de[0].toUpperCase(),H=de[1].split(" "),i[W]=new C(W,H)}function B(D){return D=D.toUpperCase(),i[D]||null}function K(D,V){if(D=B(D),!D)return null;var W=D.zones.sort();return V?W.map(function(H){var de=I(H);return{name:H,offset:de.utcOffset(new Date)}}):W}function Q(D){F(D.zones),N(D.links),z(D.countries),X.dataVersion=D.version}function re(D){return re.didShowError||(re.didShowError=!0,ie("moment.tz.zoneExists('"+D+"') has been deprecated in favor of !moment.tz.zone('"+D+"')")),!!I(D)}function Y(D){var V=D._f==="X"||D._f==="x";return!!(D._a&&D._tzm===void 0&&!V)}function ie(D){typeof console<"u"&&typeof console.error=="function"&&console.error(D)}function X(D){var V=Array.prototype.slice.call(arguments,0,-1),W=arguments[arguments.length-1],H=t.utc.apply(null,V),de;return!t.isMoment(D)&&Y(H)&&(de=I(W))&&H.add(de.parse(H),"minutes"),H.tz(W),H}X.version=n,X.dataVersion="",X._zones=r,X._links=s,X._names=o,X._countries=i,X.add=F,X.link=N,X.load=Q,X.zone=I,X.zoneExists=re,X.guess=P,X.names=j,X.Zone=w,X.unpack=y,X.unpackBase60=g,X.needsOffset=Y,X.moveInvalidForward=!0,X.moveAmbiguousForward=!1,X.countries=$,X.zonesForCountry=K;var he=t.fn;t.tz=X,t.defaultZone=null,t.updateOffset=function(D,V){var W=t.defaultZone,H;if(D._z===void 0&&(W&&Y(D)&&!D._isUTC&&D.isValid()&&(D._d=t.utc(D._a)._d,D.utc().add(W.parse(D),"minutes")),D._z=W),D._z)if(H=D._z.utcOffset(D),Math.abs(H)<16&&(H=H/60),D.utcOffset!==void 0){var de=D._z;D.utcOffset(-H,V),D._z=de}else D.zone(H,V)},he.tz=function(D,V){if(D){if(typeof D!="string")throw new Error("Time zone name must be a string, got "+D+" ["+typeof D+"]");return this._z=I(D),this._z?t.updateOffset(this,V):ie("Moment Timezone has no data for "+D+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name};function je(D){return function(){return this._z?this._z.abbr(this):D.call(this)}}function Te(D){return function(){return this._z=null,D.apply(this,arguments)}}function Ue(D){return function(){return arguments.length>0&&(this._z=null),D.apply(this,arguments)}}he.zoneName=je(he.zoneName),he.zoneAbbr=je(he.zoneAbbr),he.utc=Te(he.utc),he.local=Te(he.local),he.utcOffset=Ue(he.utcOffset),t.tz.setDefault=function(D){return(u<2||u===2&&d<9)&&ie("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+t.version+"."),t.defaultZone=D?I(D):null,t};var Ae=t.momentProperties;return Object.prototype.toString.call(Ae)==="[object Array]"?(Ae.push("_z"),Ae.push("_a")):Ae&&(Ae._z=null),t})})(WT);var nK=WT.exports,rK={exports:{}},Tf={exports:{}};const sK="stub",iK=[],oK=[],aK={version:sK,zones:iK,links:oK};var G0;function lK(){if(G0)return Tf.exports;G0=1;var e=Tf.exports=nK;return e.tz.load(aK),Tf.exports}(function(e){//! moment-timezone-utils.js
//! version : 0.5.48
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
(function(t,n){e.exports?e.exports=n(lK()):n(t.moment)})(Ux,function(t){if(!t.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX",r=1e-6;function s(b,C){for(var _=".",S="",k;C>0;)C-=1,b*=60,k=Math.floor(b+r),_+=n[k],b-=k,k&&(S+=_,_="");return S}function i(b,C){for(var _="",S=Math.abs(b),k=Math.floor(S),T=s(S-k,Math.min(~~C,10));k>0;)_=n[k%60]+_,k=Math.floor(k/60);return b<0&&(_="-"+_),_&&T?_+T:!T&&_==="-"?"0":_||T||"0"}function o(b){var C=[],_=0,S;for(S=0;S<b.length-1;S++)C[S]=i(Math.round((b[S]-_)/1e3)/60,1),_=b[S];return C.join(" ")}function a(b){var C=0,_=[],S=[],k=[],T={},M,E;for(M=0;M<b.abbrs.length;M++)E=b.abbrs[M]+"|"+b.offsets[M],T[E]===void 0&&(T[E]=C,_[C]=b.abbrs[M],S[C]=i(Math.round(b.offsets[M]*60)/60,1),C++),k[M]=i(T[E],0);return _.join(" ")+"|"+S.join(" ")+"|"+k.join("")}function l(b){if(!b)return"";if(b<1e3)return b;var C=String(b|0).length-2,_=Math.round(b/Math.pow(10,C));return _+"e"+C}function c(b){if(!b.name)throw new Error("Missing name");if(!b.abbrs)throw new Error("Missing abbrs");if(!b.untils)throw new Error("Missing untils");if(!b.offsets)throw new Error("Missing offsets");if(b.offsets.length!==b.untils.length||b.offsets.length!==b.abbrs.length)throw new Error("Mismatched array lengths")}function u(b){return c(b),[b.name,a(b),o(b.untils),l(b.population)].join("|")}function d(b){return[b.name,b.zones.join(" ")].join("|")}function h(b,C){var _;if(b.length!==C.length)return!1;for(_=0;_<b.length;_++)if(b[_]!==C[_])return!1;return!0}function g(b,C){return h(b.offsets,C.offsets)&&h(b.abbrs,C.abbrs)&&h(b.untils,C.untils)}function p(b,C,_,S){var k,T,M,E,O,A,P=[];for(k=0;k<b.length;k++){for(A=!1,M=b[k],T=0;T<P.length;T++)O=P[T],E=O[0],g(M,E)&&(M.population>E.population||M.population===E.population&&S&&S[M.name]?O.unshift(M):O.push(M),A=!0);A||P.push([M])}for(k=0;k<P.length;k++)for(O=P[k],C.push(O[0]),T=1;T<O.length;T++)_.push(O[0].name+"|"+O[T].name)}function v(b,C){var _=[],S=[];return b.links&&(S=b.links.slice()),p(b.zones,_,S,C),{version:b.version,zones:_,links:S.sort()}}function x(b,C,_){var S=0,k=b.length+1,T,M;for(_||(_=C),C>_&&(M=C,C=_,_=M),M=0;M<b.length;M++)b[M]!=null&&(T=new Date(b[M]).getUTCFullYear(),T<C&&(S=M+1),T>_&&(k=Math.min(k,M+1)));return[S,k]}function y(b,C,_){var S=Array.prototype.slice,k=x(b.untils,C,_),T=S.apply(b.untils,k);return T[T.length-1]=null,{name:b.name,abbrs:S.apply(b.abbrs,k),untils:T,offsets:S.apply(b.offsets,k),population:b.population,countries:b.countries}}function w(b,C,_,S){var k,T=b.zones,M=[],E;for(k=0;k<T.length;k++)M[k]=y(T[k],C,_);for(E=v({zones:M,links:b.links.slice(),version:b.version},S),k=0;k<E.zones.length;k++)E.zones[k]=u(E.zones[k]);return E.countries=b.countries?b.countries.map(function(O){return d(O)}):[],E}return t.tz.pack=u,t.tz.packBase60=i,t.tz.createLinks=v,t.tz.filterYears=y,t.tz.filterLinkPack=w,t.tz.packCountry=d,t})})(rK);var wo="WP",cK=/^[+-][0-1][0-9](:?[0-9][0-9])?$/,Rp={l10n:{locale:"en",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],meridiem:{am:"am",pm:"pm",AM:"AM",PM:"PM"},relative:{future:"%s from now",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},startOfWeek:0},formats:{time:"g:i a",date:"F j, Y",datetime:"F j, Y g:i a",datetimeAbbreviated:"M j, Y g:i a"},timezone:{offset:0,offsetFormatted:"0",string:"",abbr:""}};function xd(){return Rp}var Hh;function uK(){ne.tz.zone(wo)||(Hh?ne.tz.add(Hh):BT())}function BT(){const e=ne.tz.zone(Rp.timezone.string);let t;e?t=ne.tz.pack({name:wo,abbrs:e.abbrs,untils:e.untils,offsets:e.offsets}):t=ne.tz.pack({name:wo,abbrs:[wo],untils:[null],offsets:[0]}),Hh=t,ne.tz.add(t)}var Uh=60,dK=60,fK=60*Uh,q0={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S(e){const t=e.format("D");return e.format("Do").replace(t,"")},w:"d",z(e){return(parseInt(e.format("DDD"),10)-1).toString()},W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t(e){return e.daysInMonth()},L(e){return e.isLeapYear()?"1":"0"},o:"GGGG",Y:"YYYY",y:"YY",a:"a",A:"A",B(e){const t=ne(e).utcOffset(60),n=parseInt(t.format("s"),10),r=parseInt(t.format("m"),10),s=parseInt(t.format("H"),10);return parseInt(((n+r*Uh+s*fK)/86.4).toString(),10)},g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSSSSS",v:"SSS",e:"zz",I(e){return e.isDST()?"1":"0"},O:"ZZ",P:"Z",T:"z",Z(e){const t=e.format("Z"),n=t[0]==="-"?-1:1,r=t.substring(1).split(":").map(s=>parseInt(s,10));return n*(r[0]*dK+r[1])*Uh},c:"YYYY-MM-DDTHH:mm:ssZ",r(e){return e.locale("en").format("ddd, DD MMM YYYY HH:mm:ss ZZ")},U:"X"};function hK(e,t=new Date){let n,r;const s=[],i=ne(t);for(n=0;n<e.length;n++){if(r=e[n],r==="\\"){n++,s.push("["+e[n]+"]");continue}if(r in q0){const o=q0[r];typeof o!="string"?s.push("["+o(i)+"]"):s.push(o)}else s.push("["+r+"]")}return i.format(s.join("[]"))}function mK(e,t=new Date,n){const r=gK(t,n);return r.locale(Rp.l10n.locale),hK(e,r)}function cr(e){return uK(),e?ne.tz(e,wo).toDate():ne.tz(wo).toDate()}function gK(e,t=""){const n=ne(e);return t!==""?pK(t)?n.utcOffset(t):n.tz(t):n.utcOffset(0)}function pK(e){return typeof e=="number"?!0:cK.test(e)}BT();class zT extends Date{constructor(){super(),this.setTime(arguments.length===0?Date.now():arguments.length===1?typeof arguments[0]=="string"?+new Date(arguments[0]):arguments[0]:Date.UTC(...arguments))}getTimezoneOffset(){return 0}}const K0=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(K0.test(e)){const t=Date.prototype[e.replace(K0,"$1UTC")];t&&(zT.prototype[e]=t)}});function X0(e){return typeof e=="string"?/Z|[+-]\d{2}(:?\d{2})?$/.test(e)?new Date(e):new zT(e+"Z"):gn(e)}function Z0(e,t){return t?(e%12+12)%24:e%12}function vK(e){return e%12||12}function Gh(e){return(t,n)=>{const r={...t};return(n.type===td||n.type===sl||n.type===nd)&&r.value!==void 0&&(r.value=r.value.toString().padStart(e,"0")),r}}function YT(e){var r,s;var t;const n=(t=(s=(r=e.target)==null?void 0:r.ownerDocument.defaultView)==null?void 0:s.HTMLInputElement)!==null&&t!==void 0?t:HTMLInputElement;return e.target instanceof n?e.target.validity.valid:!1}var Mf="yyyy-MM-dd'T'HH:mm:ss",yK=oe("div",{target:"evcr2319"})("box-sizing:border-box;font-size:",ae.fontSize,";"),qh=oe("fieldset",{target:"evcr2318"})("border:0;margin:0 0 ",le(2*2)," 0;padding:0;&:last-child{margin-bottom:0;}"),bK=oe("div",{target:"evcr2317"})({name:"pd0mhc",styles:"direction:ltr;display:flex"}),wd=se("&&& ",Ju,"{padding-left:",le(2),";padding-right:",le(2),";text-align:center;}",""),xK=oe(xs,{target:"evcr2316"})(wd," width:",le(9),";&&& ",Ju,"{padding-right:0;}&&& ",Qu,"{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;}"),wK=oe("span",{target:"evcr2315"})("border-top:",ae.borderWidth," solid ",Z.gray[700],";border-bottom:",ae.borderWidth," solid ",Z.gray[700],";font-size:",ae.fontSize,`;line-height:calc(
		`,ae.controlHeight," - ",ae.borderWidth,` * 2
	);display:inline-block;`),SK=oe(xs,{target:"evcr2314"})(wd," width:",le(9),";&&& ",Ju,"{padding-left:0;}&&& ",Qu,"{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}"),_K=oe("div",{target:"evcr2313"})({name:"1ff36h2",styles:"flex-grow:1"}),CK=oe(xs,{target:"evcr2312"})(wd," width:",le(9),";"),kK=oe(xs,{target:"evcr2311"})(wd," width:",le(14),";"),Q0=oe("div",{target:"evcr2310"})({name:"ebu3jh",styles:"text-decoration:underline dotted"}),TK=()=>{const{timezone:e}=xd(),t=-1*(new Date().getTimezoneOffset()/60);if(Number(e.offset)===t)return null;const r=`UTC${Number(e.offset)>=0?"+":""}${e.offsetFormatted}`,s=e.string.replace("_"," "),i=`(${r}) ${s}`;return s.trim().length===0?f.jsx(Q0,{className:"components-datetime__timezone",children:r}):f.jsx(Oo,{placement:"top",text:i,children:f.jsx(Q0,{className:"components-datetime__timezone",children:r})})},MK=TK;function HT({value:e,defaultValue:t,is12Hour:n,label:r,minutesProps:s,onChange:i}){const[o={hours:new Date().getHours(),minutes:new Date().getMinutes()},a]=Al({value:e,onChange:i,defaultValue:t}),l=h(o.hours),c=vK(o.hours),u=p=>(v,{event:x})=>{if(!YT(x))return;const y=Number(v);a({...o,[p]:p==="hours"&&n?Z0(y,l==="PM"):y})},d=p=>()=>{l!==p&&a({...o,hours:Z0(c,p==="PM")})};function h(p){return p<12?"AM":"PM"}const g=r?qh:m.Fragment;return f.jsxs(g,{children:[r&&f.jsx(Ht.VisualLabel,{as:"legend",children:r}),f.jsxs(Ve,{alignment:"left",expanded:!1,children:[f.jsxs(bK,{className:"components-datetime__time-field components-datetime__time-field-time",children:[f.jsx(xK,{className:"components-datetime__time-field-hours-input",label:R("Hours"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:String(n?c:o.hours).padStart(2,"0"),step:1,min:n?1:0,max:n?12:23,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:u("hours"),__unstableStateReducer:Gh(2)}),f.jsx(wK,{className:"components-datetime__time-separator","aria-hidden":"true",children:":"}),f.jsx(SK,{className:ge("components-datetime__time-field-minutes-input",s==null?void 0:s.className),label:R("Minutes"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:String(o.minutes).padStart(2,"0"),step:1,min:0,max:59,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:(...p)=>{var v;u("minutes")(...p),(v=s==null?void 0:s.onChange)==null||v.call(s,...p)},__unstableStateReducer:Gh(2),...s})]}),n&&f.jsxs(na,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,isBlock:!0,label:R("Select AM or PM"),hideLabelFromVision:!0,value:l,onChange:p=>{d(p)()},children:[f.jsx(Oi,{value:"AM",label:R("AM")}),f.jsx(Oi,{value:"PM",label:R("PM")})]})]})]})}var EK=["dmy","mdy","ymd"];function jp({is12Hour:e,currentTime:t,onChange:n,dateOrder:r,hideLabelFromVision:s=!1}){const[i,o]=m.useState(()=>t?I0(X0(t)):new Date);m.useEffect(()=>{o(t?I0(X0(t)):new Date)},[t]);const a=[{value:"01",label:R("January")},{value:"02",label:R("February")},{value:"03",label:R("March")},{value:"04",label:R("April")},{value:"05",label:R("May")},{value:"06",label:R("June")},{value:"07",label:R("July")},{value:"08",label:R("August")},{value:"09",label:R("September")},{value:"10",label:R("October")},{value:"11",label:R("November")},{value:"12",label:R("December")}],{day:l,month:c,year:u,minutes:d,hours:h}=m.useMemo(()=>({day:ts(i,"dd"),month:ts(i,"MM"),year:ts(i,"yyyy"),minutes:ts(i,"mm"),hours:ts(i,"HH"),am:ts(i,"a")}),[i]),g=_=>(k,{event:T})=>{if(!YT(T))return;const M=Number(k),E=V0(i,{[_]:M});o(E),n==null||n(ts(E,Mf))},p=({hours:_,minutes:S})=>{const k=V0(i,{hours:_,minutes:S});o(k),n==null||n(ts(k,Mf))},v=f.jsx(CK,{className:"components-datetime__time-field components-datetime__time-field-day",label:R("Day"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:l,step:1,min:1,max:31,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:g("date")},"day"),x=f.jsx(_K,{children:f.jsx(zi,{className:"components-datetime__time-field components-datetime__time-field-month",label:R("Month"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:c,options:a,onChange:_=>{const S=Kk(i,Number(_)-1);o(S),n==null||n(ts(S,Mf))}})},"month"),y=f.jsx(kK,{className:"components-datetime__time-field components-datetime__time-field-year",label:R("Year"),hideLabelFromVision:!0,__next40pxDefaultSize:!0,value:u,step:1,min:1,max:9999,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:g("year"),__unstableStateReducer:Gh(4)},"year"),w=e?"mdy":"dmy",C=(r&&EK.includes(r)?r:w).split("").map(_=>{switch(_){case"d":return v;case"m":return x;case"y":return y;default:return null}});return f.jsxs(yK,{className:"components-datetime__time",children:[f.jsxs(qh,{children:[s?f.jsx(yr,{as:"legend",children:R("Time")}):f.jsx(Ht.VisualLabel,{as:"legend",className:"components-datetime__time-legend",children:R("Time")}),f.jsxs(Ve,{className:"components-datetime__time-wrapper",children:[f.jsx(HT,{value:{hours:Number(h),minutes:Number(d)},is12Hour:e,onChange:p}),f.jsx(Zu,{}),f.jsx(MK,{})]})]}),f.jsxs(qh,{children:[s?f.jsx(yr,{as:"legend",children:R("Date")}):f.jsx(Ht.VisualLabel,{as:"legend",className:"components-datetime__time-legend",children:R("Date")}),f.jsx(Ve,{className:"components-datetime__time-wrapper",children:C})]})]})}jp.TimeInput=HT;Object.assign(jp.TimeInput,{displayName:"TimePicker.TimeInput"});var OK=jp,DK=()=>{};function PK(e,t){const{className:n,checked:r,id:s,disabled:i,onChange:o=DK,onClick:a,...l}=e,c=ge("components-form-toggle",n,{"is-checked":r,"is-disabled":i});return f.jsxs("span",{className:c,children:[f.jsx("input",{className:"components-form-toggle__input",id:s,type:"checkbox",checked:r,onChange:o,disabled:i,onClick:u=>{u.currentTarget.focus(),a==null||a(u)},...l,ref:t}),f.jsx("span",{className:"components-form-toggle__track"}),f.jsx("span",{className:"components-form-toggle__thumb"})]})}var AK=m.forwardRef(PK),RK=AK,jK=()=>{};function UT({value:e,status:t,title:n,displayTransform:r,isBorderless:s=!1,disabled:i=!1,onClickRemove:o=jK,onMouseEnter:a,onMouseLeave:l,messages:c,termPosition:u,termsCount:d}){const h=yt(UT),g=ge("components-form-token-field__token",{"is-error":t==="error","is-success":t==="success","is-validating":t==="validating","is-borderless":s,"is-disabled":i}),p=()=>o({value:e}),v=r(e),x=Oe(R("%1$s (%2$d of %3$d)"),v,u,d);return f.jsxs("span",{className:g,onMouseEnter:a,onMouseLeave:l,title:n,children:[f.jsxs("span",{className:"components-form-token-field__token-text",id:`components-form-token-field__token-text-${h}`,children:[f.jsx(yr,{as:"span",children:x}),f.jsx("span",{"aria-hidden":"true",children:v})]}),f.jsx(Je,{className:"components-form-token-field__remove-token",size:"small",icon:lC,onClick:i?void 0:p,disabled:i,label:c.remove,"aria-describedby":`components-form-token-field__token-text-${h}`})]})}var IK=({__next40pxDefaultSize:e,hasTokens:t})=>!e&&se("padding-top:",le(t?1:.5),";padding-bottom:",le(t?1:.5),";",""),NK=oe(ea,{target:"ehq8nmi0"})("padding:7px;",pS," ",IK,";"),FK=e=>e;function Ip(e){const{autoCapitalize:t,autoComplete:n,maxLength:r,placeholder:s,label:i=R("Add item"),className:o,suggestions:a=[],maxSuggestions:l=100,value:c=[],displayTransform:u=FK,saveTransform:d=U=>U.trim(),onChange:h=()=>{},onInputChange:g=()=>{},onFocus:p=void 0,isBorderless:v=!1,disabled:x=!1,tokenizeOnSpace:y=!1,messages:w={added:R("Item added."),removed:R("Item removed."),remove:R("Remove item"),__experimentalInvalid:R("Invalid item")},__experimentalRenderItem:b,__experimentalExpandOnFocus:C=!1,__experimentalValidateInput:_=()=>!0,__experimentalShowHowTo:S=!0,__next40pxDefaultSize:k=!1,__experimentalAutoSelectFirstMatch:T=!1,__nextHasNoMarginBottom:M=!1,tokenizeOnBlur:E=!1}=Ll(e);M||Kt("Bottom margin styles for wp.components.FormTokenField",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."}),Wi({componentName:"FormTokenField",size:void 0,__next40pxDefaultSize:k});const O=yt(Ip),[A,P]=m.useState(""),[L,F]=m.useState(0),[I,j]=m.useState(!1),[$,N]=m.useState(!1),[z,B]=m.useState(-1),[K,Q]=m.useState(!1),re=Wa(a),Y=Wa(c),ie=m.useRef(null),X=m.useRef(null),he=dm(hc,500);m.useEffect(()=>{I&&!Te()&&je()},[I]),m.useEffect(()=>{const U=!OO(a,re||[]);(U||c!==Y)&&Ie(U)},[a,re,c,Y]),m.useEffect(()=>{Ie()},[A]),m.useEffect(()=>{Ie()},[T]),x&&I&&(j(!1),P(""));function je(){var U;(U=ie.current)==null||U.focus()}function Te(){var U;return ie.current===((U=ie.current)==null?void 0:U.ownerDocument.activeElement)}function Ue(U){Te()||U.target===X.current?(j(!0),N(C||$)):j(!1),typeof p=="function"&&p(U)}function Ae(U){if(Gt()&&_(A))j(!1),E&&Gt()&&Ut(A);else{if(P(""),F(0),j(!1),C){const ke=U.relatedTarget===X.current;N(ke)}else N(!1);B(-1),Q(!1)}}function D(U){let ke=!1;if(!U.defaultPrevented){switch(U.key){case"Backspace":ke=ue(Be);break;case"Enter":ke=Mr();break;case"ArrowLeft":ke=me();break;case"ArrowUp":ke=xt();break;case"ArrowRight":ke=Bt();break;case"ArrowDown":ke=pn();break;case"Delete":ke=ue(Et);break;case"Space":y&&(ke=Mr());break;case"Escape":ke=Ee(U);break;case"Tab":ke=ht(U);break}ke&&U.preventDefault()}}function V(U){let ke=!1;switch(U.key){case",":ke=st();break}ke&&U.preventDefault()}function W(U){U.target===X.current&&I&&U.preventDefault()}function H(U){_n(U.value),je()}function de(U){const ke=An().indexOf(U);ke>=0&&(B(ke),Q(!1))}function J(U){Ut(U)}function fe(U){const ke=U.value,on=y?/[ ,\t]+/:/[,\t]+/,Rn=ke.split(on),Jr=Rn[Rn.length-1]||"";Rn.length>1&&wt(Rn.slice(0,-1)),P(Jr),g(Jr)}function ue(U){let ke=!1;return Te()&&$e()&&(U(),ke=!0),ke}function me(){let U=!1;return $e()&&(zt(),U=!0),U}function Bt(){let U=!1;return $e()&&(mt(),U=!0),U}function xt(){return B(U=>(U===0?An(A,a,c,l,d).length:U)-1),Q(!0),!0}function pn(){return B(U=>(U+1)%An(A,a,c,l,d).length),Q(!0),!0}function te(U){U.target instanceof HTMLInputElement&&(P(U.target.value),N(!1),B(-1),Q(!1))}function Ee(U){return te(U),!0}function ht(U){return te(U),!1}function st(){return Gt()&&Ut(A),!0}function It(U){F(c.length-Math.max(U,-1)-1)}function zt(){F(U=>Math.min(U+1,c.length))}function mt(){F(U=>Math.max(U-1,0))}function Be(){const U=we()-1;U>-1&&_n(c[U])}function Et(){const U=we();U<c.length&&(_n(c[U]),It(U))}function Mr(){let U=!1;const ke=Me();return ke?(Ut(ke),U=!0):Gt()&&(Ut(A),U=!0),U}function wt(U){const ke=[...new Set(U.map(d).filter(Boolean).filter(on=>!ze(on)))];if(ke.length>0){const on=[...c];on.splice(we(),0,...ke),h(on)}}function Ut(U){if(!_(U)){hc(w.__experimentalInvalid,"assertive");return}wt([U]),hc(w.added,"assertive"),P(""),B(-1),Q(!1),N(!C),I&&!E&&je()}function _n(U){const ke=c.filter(on=>or(on)!==or(U));h(ke),hc(w.removed,"assertive")}function or(U){return typeof U=="object"?U.value:U}function An(U=A,ke=a,on=c,Rn=l,Jr=d){let Es=Jr(U);const Zl=[],iv=[],ov=on.map(Er=>typeof Er=="string"?Er:Er.value);return Es.length===0?ke=ke.filter(Er=>!ov.includes(Er)):(Es=Es.normalize("NFKC").toLocaleLowerCase(),ke.forEach(Er=>{const av=Er.normalize("NFKC").toLocaleLowerCase().indexOf(Es);ov.indexOf(Er)===-1&&(av===0?Zl.push(Er):av>0&&iv.push(Er))}),ke=Zl.concat(iv)),ke.slice(0,Rn)}function Me(){if(z!==-1)return An()[z]}function ze(U){return c.some(ke=>or(U)===or(ke))}function we(){return c.length-L}function $e(){return A.length===0}function Gt(){return d(A).length>0}function Ie(U=!0){const ke=A.trim().length>1,on=An(A),Rn=on.length>0,Jr=Te()&&C;if(N(Jr||ke&&Rn),U&&(T&&ke&&Rn?(B(0),Q(!0)):(B(-1),Q(!1))),ke){const Es=Rn?Oe(Wf("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",on.length),on.length):R("No results.");he(Es,"assertive")}}function Td(){const U=c.map(Md);return U.splice(we(),0,Ed()),U}function Md(U,ke,on){const Rn=or(U),Jr=typeof U!="string"?U.status:void 0,Es=ke+1,Zl=on.length;return f.jsx(Zs,{children:f.jsx(UT,{value:Rn,status:Jr,title:typeof U!="string"?U.title:void 0,displayTransform:u,onClickRemove:H,isBorderless:typeof U!="string"&&U.isBorderless||v,onMouseEnter:typeof U!="string"?U.onMouseEnter:void 0,onMouseLeave:typeof U!="string"?U.onMouseLeave:void 0,disabled:Jr!=="error"&&x,messages:w,termsCount:Zl,termPosition:Es})},"token-"+Rn)}function Ed(){const U={instanceId:O,autoCapitalize:t,autoComplete:n,placeholder:c.length===0?s:"",disabled:x,value:A,onBlur:Ae,isExpanded:$,selectedSuggestionIndex:z};return f.jsx(OU,{...U,onChange:r&&c.length>=r?void 0:fe,ref:ie},"input")}const la=ge(o,"components-form-token-field__input-container",{"is-active":I,"is-disabled":x});let ui={className:"components-form-token-field",tabIndex:-1};const jE=An();return x||(ui=Object.assign({},ui,{onKeyDown:Wl(D),onKeyPress:V,onFocus:Ue})),f.jsxs("div",{...ui,children:[i&&f.jsx(HC,{htmlFor:`components-form-token-input-${O}`,className:"components-form-token-field__label",children:i}),f.jsxs("div",{ref:X,className:la,tabIndex:-1,onMouseDown:W,onTouchStart:W,children:[f.jsx(NK,{justify:"flex-start",align:"center",gap:1,wrap:!0,__next40pxDefaultSize:k,hasTokens:!!c.length,children:Td()}),$&&f.jsx(AU,{instanceId:O,match:d(A),displayTransform:u,suggestions:jE,selectedIndex:z,scrollIntoView:K,onHover:de,onSelect:J,__experimentalRenderItem:b})]}),!M&&f.jsx(Zu,{marginBottom:2}),S&&f.jsx(Jc,{id:`components-form-token-suggestions-howto-${O}`,className:"components-form-token-field__help",__nextHasNoMarginBottom:M,children:R(y?"Separate with commas, spaces, or the Enter key.":"Separate with commas or the Enter key.")})]})}var LK=Ip,$K=oe(Io,{target:"effl84m1"})({name:"37btb2",styles:"input[type='search']{&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{-webkit-appearance:none;}}"}),VK=oe(Zt,{target:"effl84m0"})({name:"1i54h4p",styles:"&:dir( ltr ){transform:scaleX( -1 );}"});function WK({searchRef:e,value:t,onChange:n,onClose:r}){if(!r&&!t)return null;r&&Kt("`onClose` prop in wp.components.SearchControl",{since:"6.8"});const s=()=>{var i;n(""),(i=e.current)==null||i.focus()};return f.jsx(Mk,{variant:"control",children:f.jsx(Je,{size:"small",icon:lC,label:R(r?"Close search":"Reset search"),onClick:r??s})})}function BK({__nextHasNoMarginBottom:e=!1,className:t,onChange:n,value:r,label:s=R("Search"),placeholder:i=R("Search"),hideLabelFromVision:o=!0,onClose:a,size:l="default",...c},u){const{disabled:d,...h}=c,g=m.useRef(null),p=yt(GT,"components-search-control"),v=m.useMemo(()=>({BaseControl:{_overrides:{__nextHasNoMarginBottom:e},__associatedWPComponentName:"SearchControl"}}),[e]);return f.jsx(CS,{value:v,children:f.jsx($K,{__next40pxDefaultSize:!0,id:p,hideLabelFromVision:o,label:s,ref:$t([g,u]),type:"search",size:l,className:ge("components-search-control",t),onChange:x=>n(x??""),autoComplete:"off",placeholder:i,value:r??"",prefix:f.jsx(RH,{variant:"icon",children:f.jsx(VK,{icon:e3,fill:"currentColor"})}),suffix:f.jsx(WK,{searchRef:g,value:r,onChange:n,onClose:a}),...h})})}var GT=m.forwardRef(BK),zK=GT;function J0(e,t){return`${e}-${t}-option-description`}function Ef(e,t){return`${e}-${t}`}function ex(e){return`${e}__help`}function qT(e){const{label:t,className:n,selected:r,help:s,onChange:i,onClick:o,hideLabelFromVision:a,options:l=[],id:c,...u}=e,d=yt(qT,"inspector-radio-control",c),h=g=>i(g.target.value);return l!=null&&l.length?f.jsxs("fieldset",{id:d,className:ge(n,"components-radio-control"),"aria-describedby":s?ex(d):void 0,children:[a?f.jsx(yr,{as:"legend",children:t}):f.jsx(Ht.VisualLabel,{as:"legend",children:t}),f.jsx(Rt,{spacing:3,className:ge("components-radio-control__group-wrapper",{"has-help":!!s}),children:l.map((g,p)=>f.jsxs("div",{className:"components-radio-control__option",children:[f.jsx("input",{id:Ef(d,p),className:"components-radio-control__input",type:"radio",name:d,value:g.value,onChange:h,checked:g.value===r,"aria-describedby":g.description?J0(d,p):void 0,onClick:v=>{v.currentTarget.focus(),o==null||o(v)},...u}),f.jsx("label",{className:"components-radio-control__label",htmlFor:Ef(d,p),children:g.label}),g.description?f.jsx(Jc,{__nextHasNoMarginBottom:!0,id:J0(d,p),className:"components-radio-control__option-description",children:g.description}):null]},Ef(d,p)))}),!!s&&f.jsx(Jc,{__nextHasNoMarginBottom:!0,id:ex(d),className:"components-base-control__help",children:s})]}):null}var KT=qT;function YK(e,t){const{__nextHasNoMarginBottom:n,__next40pxDefaultSize:r=!1,label:s,hideLabelFromVision:i,value:o,help:a,id:l,className:c,onChange:u,type:d="text",...h}=e,g=yt(XT,"inspector-text-control",l),p=v=>u(v.target.value);return Wi({componentName:"TextControl",size:void 0,__next40pxDefaultSize:r}),f.jsx(Ht,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"TextControl",label:s,hideLabelFromVision:i,id:g,help:a,className:c,children:f.jsx("input",{className:ge("components-text-control__input",{"is-next-40px-default-size":r}),type:d,id:g,value:o,onChange:p,"aria-describedby":a?g+"__help":void 0,ref:t,...h})})}var XT=m.forwardRef(YK),HK=XT,UK=se("box-shadow:0 0 0 transparent;border-radius:",ae.radiusSmall,";border:",ae.borderWidth," solid ",Z.ui.border,";@media not ( prefers-reduced-motion ){transition:box-shadow 0.1s linear;}",""),GK=se("border-color:",Z.theme.accent,";box-shadow:0 0 0 calc( ",ae.borderWidthFocus," - ",ae.borderWidth," ) ",Z.theme.accent,";outline:2px solid transparent;",""),qK=oe("textarea",{target:"e1w5nnrk0"})("width:100%;display:block;font-family:",gr("default.fontFamily"),";line-height:20px;background:",Z.theme.background,";color:",Z.theme.foreground,";resize:vertical;padding:9px 11px;min-height:38px;",UK,";font-size:",gr("mobileTextMinFontSize"),";",jF("small"),"{font-size:",gr("default.fontSize"),";}&:focus{",GK,";}&::-webkit-input-placeholder{color:",Z.ui.darkGrayPlaceholder,";}&::-moz-placeholder{color:",Z.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",Z.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Z.ui.lightGrayPlaceholder,";}&::-moz-placeholder{color:",Z.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",Z.ui.lightGrayPlaceholder,";}}");function KK(e,t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:s,value:i,help:o,onChange:a,rows:l=4,className:c,...u}=e,h=`inspector-textarea-control-${yt(ZT)}`,g=v=>a(v.target.value),p=ge("components-textarea-control",c);return f.jsx(Ht,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"TextareaControl",label:r,hideLabelFromVision:s,id:h,help:o,className:p,children:f.jsx(qK,{className:"components-textarea-control__input",id:h,rows:l,onChange:g,"aria-describedby":o?h+"__help":void 0,value:i,ref:t,...u})})}var ZT=m.forwardRef(KK),XK=ZT;function ZK({__nextHasNoMarginBottom:e,label:t,checked:n,help:r,className:s,onChange:i,disabled:o},a){function l(v){i(v.target.checked)}const u=`inspector-toggle-control-${yt(QT)}`,h=Dn()("components-toggle-control",s,!e&&se({marginBottom:le(3)},"",""));e||Kt("Bottom margin styles for wp.components.ToggleControl",{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});let g,p;return r&&(typeof r=="function"?n!==void 0&&(p=r(n)):p=r,p&&(g=u+"__help")),f.jsx(Ht,{id:u,help:p&&f.jsx("span",{className:"components-toggle-control__help",children:p}),className:h,__nextHasNoMarginBottom:!0,children:f.jsxs(Ve,{justify:"flex-start",spacing:2,children:[f.jsx(RK,{id:u,checked:n,onChange:l,"aria-describedby":g,disabled:o,ref:a}),f.jsx(Y5,{as:"label",htmlFor:u,className:ge("components-toggle-control__label",{"is-disabled":o}),children:t})]})})}var QT=m.forwardRef(ZK),JT=QT,xn=m.createContext(void 0);xn.displayName="MenuContext";var mo={SCALE_AMOUNT_OUTER:.82,SCALE_AMOUNT_CONTENT:.9,DURATION:{IN:"400ms",OUT:"200ms"},EASING:"cubic-bezier(0.33, 0, 0, 1)"},eM=le(1),QK=le(2),Np=le(3),JK=Z.theme.gray[300],eX=Z.theme.gray[200],Fp=Z.theme.gray[700],tX=Z.theme.gray[100],tM=Z.theme.foreground,nX=`0 0 0 ${ae.borderWidth} ${JK}, ${ae.elevationMedium}`,rX=`0 0 0 ${ae.borderWidth} ${tM}`,nM="minmax( 0, max-content ) 1fr",sX=oe("div",{target:"e1wg7tti14"})("position:relative;background-color:",Z.ui.background,";border-radius:",ae.radiusMedium,";",e=>se("box-shadow:",e.variant==="toolbar"?rX:nX,";","")," overflow:hidden;@media not ( prefers-reduced-motion ){transition-property:transform,opacity;transition-timing-function:",mo.EASING,";transition-duration:",mo.DURATION.IN,";will-change:transform,opacity;opacity:0;&:has( [data-enter] ){opacity:1;}&:has( [data-leave] ){transition-duration:",mo.DURATION.OUT,";}&:has( [data-side='bottom'] ),&:has( [data-side='top'] ){transform:scaleY( ",mo.SCALE_AMOUNT_OUTER," );}&:has( [data-side='bottom'] ){transform-origin:top;}&:has( [data-side='top'] ){transform-origin:bottom;}&:has( [data-enter][data-side='bottom'] ),&:has( [data-enter][data-side='top'] ),&:has( [data-leave][data-side='bottom'] ),&:has( [data-leave][data-side='top'] ){transform:scaleY( 1 );}}"),Vo=oe("div",{target:"e1wg7tti13"})("position:relative;z-index:1000000;display:grid;grid-template-columns:",nM,";grid-template-rows:auto;box-sizing:border-box;min-width:160px;max-width:320px;max-height:var( --popover-available-height );padding:",eM,`;overscroll-behavior:contain;overflow:auto;outline:2px solid transparent!important;@media not ( prefers-reduced-motion ){transition:inherit;transform-origin:inherit;&[data-side='bottom'],&[data-side='top']{transform:scaleY(
				calc(
					1 / `,mo.SCALE_AMOUNT_OUTER,` *
						`,mo.SCALE_AMOUNT_CONTENT,`
				)
			);}&[data-enter][data-side='bottom'],&[data-enter][data-side='top'],&[data-leave][data-side='bottom'],&[data-leave][data-side='top']{transform:scaleY( 1 );}}`),Lp=se("all:unset;position:relative;min-height:",le(10),";box-sizing:border-box;grid-column:1/-1;display:grid;grid-template-columns:",nM,";align-items:center;@supports ( grid-template-columns: subgrid ){grid-template-columns:subgrid;}font-size:",gr("default.fontSize"),";font-family:inherit;font-weight:normal;line-height:20px;color:",Z.theme.foreground,";border-radius:",ae.radiusSmall,";padding-block:",QK,";padding-inline:",Np,";scroll-margin:",eM,";user-select:none;outline:none;&[aria-disabled='true']{color:",Z.ui.textDisabled,`;cursor:not-allowed;}&[data-active-item]:not( [data-focus-visible] ):not(
			[aria-disabled='true']
		){background-color:`,Z.theme.accent,";color:",Z.theme.accentInverted,";}&[data-focus-visible]{box-shadow:0 0 0 1.5px ",Z.theme.accent,";outline:2px solid transparent;}&:active,&[data-active]{}",Vo,':not(:focus) &:not(:focus)[aria-expanded="true"]{background-color:',tX,";color:",Z.theme.foreground,";}svg{fill:currentColor;}",""),iX=oe(jj,{target:"e1wg7tti12"})(Lp,";"),Kh=oe(Vj,{target:"e1wg7tti11"})(Lp,";"),Xh=oe(zj,{target:"e1wg7tti10"})(Lp,";"),$p=oe("span",{target:"e1wg7tti9"})("grid-column:1;",Kh,">&,",Xh,">&{min-width:",le(6),";}",Kh,">&,",Xh,">&,&:not( :empty ){margin-inline-end:",le(2),";}display:flex;align-items:center;justify-content:center;color:",Fp,";[data-active-item]:not( [data-focus-visible] )>&,[aria-disabled='true']>&{color:inherit;}"),Vp=oe("div",{target:"e1wg7tti8"})("grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:",le(3),";pointer-events:none;"),Wp=oe("div",{target:"e1wg7tti7"})("flex:1;display:inline-flex;flex-direction:column;gap:",le(1),";"),Bp=oe("span",{target:"e1wg7tti6"})("flex:0 1 fit-content;min-width:0;width:fit-content;display:flex;align-items:center;justify-content:center;gap:",le(3),";color:",Fp,";[data-active-item]:not( [data-focus-visible] ) *:not(",Vo,") &,[aria-disabled='true'] *:not(",Vo,") &{color:inherit;}"),oX=oe(Ej,{target:"e1wg7tti5"})({name:"49aokf",styles:"display:contents"}),aX=oe(Pj,{target:"e1wg7tti4"})("grid-column:1/-1;padding-block-start:",le(3),";padding-block-end:",le(2),";padding-inline:",Np,";"),lX=oe(Kj,{target:"e1wg7tti3"})("grid-column:1/-1;border:none;height:",ae.borderWidth,";background-color:",e=>e.variant==="toolbar"?tM:eX,";margin-block:",le(2),";margin-inline:",Np,";outline:2px solid transparent;"),cX=oe(Zt,{target:"e1wg7tti2"})("width:",le(1.5),";",Xt({transform:"scaleX(1)"},{transform:"scaleX(-1)"}),";"),uX=oe(mC,{target:"e1wg7tti1"})("font-size:",gr("default.fontSize"),";line-height:20px;color:inherit;"),dX=oe(mC,{target:"e1wg7tti0"})("font-size:",gr("helpText.fontSize"),";line-height:16px;color:",Fp,";overflow-wrap:anywhere;[data-active-item]:not( [data-focus-visible] ) *:not( ",Vo," ) &,[aria-disabled='true'] *:not( ",Vo," ) &{color:inherit;}"),rM=m.forwardRef(function({prefix:t,suffix:n,children:r,disabled:s=!1,hideOnClick:i=!0,store:o,...a},l){const c=m.useContext(xn);if(!(c!=null&&c.store))throw new Error("Menu.Item can only be rendered inside a Menu component");const u=o??c.store;return f.jsxs(iX,{ref:l,...a,accessibleWhenDisabled:!0,disabled:s,hideOnClick:i,store:u,children:[f.jsx($p,{children:t}),f.jsxs(Vp,{children:[f.jsx(Wp,{children:r}),n&&f.jsx(Bp,{children:n})]})]})}),fX=m.forwardRef(function({suffix:t,children:n,disabled:r=!1,hideOnClick:s=!1,...i},o){const a=m.useContext(xn);if(!(a!=null&&a.store))throw new Error("Menu.CheckboxItem can only be rendered inside a Menu component");return f.jsxs(Kh,{ref:o,...i,accessibleWhenDisabled:!0,disabled:r,hideOnClick:s,store:a.store,children:[f.jsx(X1,{store:a.store,render:f.jsx($p,{}),style:{width:"auto",height:"auto"},children:f.jsx(rl,{icon:aC,size:24})}),f.jsxs(Vp,{children:[f.jsx(Wp,{children:n}),t&&f.jsx(Bp,{children:t})]})]})}),hX=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(nO,{cx:12,cy:12,r:3})}),mX=m.forwardRef(function({suffix:t,children:n,disabled:r=!1,hideOnClick:s=!1,...i},o){const a=m.useContext(xn);if(!(a!=null&&a.store))throw new Error("Menu.RadioItem can only be rendered inside a Menu component");return f.jsxs(Xh,{ref:o,...i,accessibleWhenDisabled:!0,disabled:r,hideOnClick:s,store:a.store,children:[f.jsx(X1,{store:a.store,render:f.jsx($p,{}),style:{width:"auto",height:"auto"},children:f.jsx(rl,{icon:hX,size:24})}),f.jsxs(Vp,{children:[f.jsx(Wp,{children:n}),t&&f.jsx(Bp,{children:t})]})]})}),gX=m.forwardRef(function(t,n){const r=m.useContext(xn);if(!(r!=null&&r.store))throw new Error("Menu.Group can only be rendered inside a Menu component");return f.jsx(oX,{ref:n,...t,store:r.store})}),pX=m.forwardRef(function(t,n){const r=m.useContext(xn);if(!(r!=null&&r.store))throw new Error("Menu.GroupLabel can only be rendered inside a Menu component");return f.jsx(aX,{ref:n,render:f.jsx(Xg,{upperCase:!0,variant:"muted",size:"11px",weight:500,lineHeight:"16px"}),...t,store:r.store})}),vX=m.forwardRef(function(t,n){const r=m.useContext(xn);if(!(r!=null&&r.store))throw new Error("Menu.Separator can only be rendered inside a Menu component");return f.jsx(lX,{ref:n,...t,store:r.store,variant:r.variant})}),yX=m.forwardRef(function(t,n){const r=m.useContext(xn);if(!(r!=null&&r.store))throw new Error("Menu.ItemLabel can only be rendered inside a Menu component");return f.jsx(uX,{numberOfLines:1,ref:n,...t})}),bX=m.forwardRef(function(t,n){const r=m.useContext(xn);if(!(r!=null&&r.store))throw new Error("Menu.ItemHelpText can only be rendered inside a Menu component");return f.jsx(dX,{numberOfLines:2,ref:n,...t})}),xX=m.forwardRef(function({children:t,disabled:n=!1,...r},s){const i=m.useContext(xn);if(!(i!=null&&i.store))throw new Error("Menu.TriggerButton can only be rendered inside a Menu component");if(i.store.parent)throw new Error("Menu.TriggerButton should not be rendered inside a nested Menu component. Use Menu.SubmenuTriggerItem instead.");return f.jsx(K1,{ref:s,...r,disabled:n,store:i.store,children:t})}),wX=m.forwardRef(function({suffix:t,...n},r){const s=m.useContext(xn);if(!(s!=null&&s.store.parent))throw new Error("Menu.SubmenuTriggerItem can only be rendered inside a nested Menu component");return f.jsx(K1,{ref:r,accessibleWhenDisabled:!0,store:s.store,render:f.jsx(rM,{...n,store:s.store.parent,suffix:f.jsxs(f.Fragment,{children:[t,f.jsx(cX,{"aria-hidden":"true",icon:X5,size:24,preserveAspectRatio:"xMidYMid slice"})]})})})}),SX=m.forwardRef(function({gutter:t,children:n,shift:r,modal:s=!0,...i},o){var h;const a=m.useContext(xn),l=(h=G(a==null?void 0:a.store,"currentPlacement"))==null?void 0:h.split("-")[0],c=m.useCallback(g=>(g.preventDefault(),!0),[]),u=G(a==null?void 0:a.store,"rtl")?"rtl":"ltr",d=m.useMemo(()=>({dir:u,style:{direction:u}}),[u]);if(!(a!=null&&a.store))throw new Error("Menu.Popover can only be rendered inside a Menu component");return f.jsx(Sj,{...i,ref:o,modal:s,store:a.store,gutter:t??(a.store.parent?0:8),shift:r??(a.store.parent?-4:0),hideOnHoverOutside:!1,"data-side":l,wrapperProps:d,hideOnEscape:c,unmountOnHide:!0,render:g=>f.jsx(sX,{variant:a.variant,children:f.jsx(Vo,{...g})}),children:n})}),_X=e=>{const{children:t,defaultOpen:n=!1,open:r,onOpenChange:s,placement:i,variant:o}=Mt(e,"Menu"),a=m.useContext(xn),l=bn();let c=i??(a!=null&&a.store?"right-start":"bottom-start");l&&(/right/.test(c)?c=c.replace("right","left"):/left/.test(c)&&(c=c.replace("left","right")));const u=Uj({parent:a==null?void 0:a.store,open:r,defaultOpen:n,placement:c,focusLoop:!0,setOpen(h){s==null||s(h)},rtl:l}),d=m.useMemo(()=>({store:u,variant:o}),[u,o]);return f.jsx(xn.Provider,{value:d,children:t})},CX=Object.assign(TS(_X,"Menu"),{Context:Object.assign(xn,{displayName:"Menu.Context"}),Item:Object.assign(rM,{displayName:"Menu.Item"}),RadioItem:Object.assign(mX,{displayName:"Menu.RadioItem"}),CheckboxItem:Object.assign(fX,{displayName:"Menu.CheckboxItem"}),Group:Object.assign(gX,{displayName:"Menu.Group"}),GroupLabel:Object.assign(pX,{displayName:"Menu.GroupLabel"}),Separator:Object.assign(vX,{displayName:"Menu.Separator"}),ItemLabel:Object.assign(yX,{displayName:"Menu.ItemLabel"}),ItemHelpText:Object.assign(bX,{displayName:"Menu.ItemHelpText"}),Popover:Object.assign(SX,{displayName:"Menu.Popover"}),TriggerButton:Object.assign(xX,{displayName:"Menu.TriggerButton"}),SubmenuTriggerItem:Object.assign(wX,{displayName:"Menu.SubmenuTriggerItem"})}),kX=({colors:e})=>{const t=Object.entries(e.gray||{}).map(([n,r])=>`--wp-components-color-gray-${n}: ${r};`).join("");return[se("--wp-components-color-accent:",e.accent,";--wp-components-color-accent-darker-10:",e.accentDarker10,";--wp-components-color-accent-darker-20:",e.accentDarker20,";--wp-components-color-accent-inverted:",e.accentInverted,";--wp-components-color-background:",e.background,";--wp-components-color-foreground:",e.foreground,";--wp-components-color-foreground-inverted:",e.foregroundInverted,";",t,";","")]},TX=oe("div",{target:"e1krjpvb0"})({name:"1a3idx0",styles:"color:var( --wp-components-color-foreground, currentColor )"});xS([wS,kY]);function MX(e){EX(e);const t={...PX(e.accent),...AX(e.background)};return DX(OX(e,t)),{colors:t}}function EX(e){for(const[t,n]of Object.entries(e))typeof n<"u"&&!pt(n).isValid()&&globalThis.SCRIPT_DEBUG===!0&&nr(`wp.components.Theme: "${n}" is not a valid color value for the '${t}' prop.`)}function OX(e,t){const n=e.background||Z.white,r=e.accent||"#3858e9",s=t.foreground||Z.gray[900],i=t.gray||Z.gray;return{accent:pt(n).isReadable(r)?void 0:`The background color ("${n}") does not have sufficient contrast against the accent color ("${r}").`,foreground:pt(n).isReadable(s)?void 0:`The background color provided ("${n}") does not have sufficient contrast against the standard foreground colors.`,grays:pt(n).contrast(i[600])>=3&&pt(n).contrast(i[700])>=4.5?void 0:`The background color provided ("${n}") cannot generate a set of grayscale foreground colors with sufficient contrast. Try adjusting the color to be lighter or darker.`}}function DX(e){for(const t of Object.values(e))t&&globalThis.SCRIPT_DEBUG===!0&&nr("wp.components.Theme: "+t)}function PX(e){return e?{accent:e,accentDarker10:pt(e).darken(.1).toHex(),accentDarker20:pt(e).darken(.2).toHex(),accentInverted:Zh(e)}:{}}function AX(e){if(!e)return{};const t=Zh(e);return{background:e,foreground:t,foregroundInverted:Zh(t),gray:RX(e,t)}}function Zh(e){return pt(e).isDark()?Z.white:Z.gray[900]}function RX(e,t){const n={100:.06,200:.121,300:.132,400:.2,600:.42,700:.543,800:.821},r=.884,s=pt(e).isDark()?"lighten":"darken",i=Math.abs(pt(e).toHsl().l-pt(t).toHsl().l)/100,o={};return Object.entries(n).forEach(([a,l])=>{o[parseInt(a)]=pt(e)[s](l/r*i).toHex()}),o}function jX({accent:e,background:t,className:n,...r}){const s=Dn(),i=m.useMemo(()=>s(...kX(MX({accent:e,background:t})),n),[e,t,n,s]);return f.jsx(TX,{className:i,...r})}var IX=jX,au=m.createContext(void 0);au.displayName="TabsContext";var zp=()=>m.useContext(au),NX=oe(tA,{target:"enfox0g4"})(`display:flex;align-items:stretch;overflow-x:auto;&[aria-orientation='vertical']{flex-direction:column;}:where( [aria-orientation='horizontal'] ){width:fit-content;}--direction-factor:1;--direction-start:left;--direction-end:right;--selected-start:var( --selected-left, 0 );&:dir( rtl ){--direction-factor:-1;--direction-start:right;--direction-end:left;--selected-start:var( --selected-right, 0 );}@media not ( prefers-reduced-motion ){&[data-indicator-animated]::before{transition-property:transform,border-radius,border-block;transition-duration:0.2s;transition-timing-function:ease-out;}}position:relative;&::before{content:'';position:absolute;pointer-events:none;transform-origin:var( --direction-start ) top;outline:2px solid transparent;outline-offset:-1px;}--antialiasing-factor:100;&[aria-orientation='horizontal']{--fade-width:64px;--fade-gradient-base:transparent 0%,black var( --fade-width );--fade-gradient-composed:var( --fade-gradient-base ),black 60%,transparent 50%;&.is-overflowing-first{mask-image:linear-gradient(
				to var( --direction-end ),
				var( --fade-gradient-base )
			);}&.is-overflowing-last{mask-image:linear-gradient(
				to var( --direction-start ),
				var( --fade-gradient-base )
			);}&.is-overflowing-first.is-overflowing-last{mask-image:linear-gradient(
					to right,
					var( --fade-gradient-composed )
				),linear-gradient( to left, var( --fade-gradient-composed ) );}&::before{bottom:0;height:0;width:calc( var( --antialiasing-factor ) * 1px );transform:translateX(
					calc(
						var( --selected-start ) * var( --direction-factor ) *
							1px
					)
				) scaleX(
					calc(
						var( --selected-width, 0 ) /
							var( --antialiasing-factor )
					)
				);border-bottom:var( --wp-admin-border-width-focus ) solid `,Z.theme.accent,";}}&[aria-orientation='vertical']{&::before{border-radius:",ae.radiusSmall,`/calc(
					`,ae.radiusSmall,` /
						(
							var( --selected-height, 0 ) /
								var( --antialiasing-factor )
						)
				);top:0;left:0;width:100%;height:calc( var( --antialiasing-factor ) * 1px );transform:translateY( calc( var( --selected-top, 0 ) * 1px ) ) scaleY(
					calc(
						var( --selected-height, 0 ) /
							var( --antialiasing-factor )
					)
				);background-color:color-mix(
				in srgb,
				`,Z.theme.accent,`,
				transparent 96%
			);}&[data-select-on-move='true']:has(
				:is( :focus-visible, [data-focus-visible] )
			)::before{box-sizing:border-box;border:var( --wp-admin-border-width-focus ) solid `,Z.theme.accent,`;border-block-width:calc(
				var( --wp-admin-border-width-focus, 1px ) /
					(
						var( --selected-height, 0 ) /
							var( --antialiasing-factor )
					)
			);}}`),FX=oe(HP,{target:"enfox0g3"})("&{border-radius:0;background:transparent;border:none;box-shadow:none;flex:1 0 auto;white-space:nowrap;display:flex;align-items:center;cursor:pointer;line-height:1.2;font-weight:400;font-size:",gr("default.fontSize"),";color:",Z.theme.foreground,";position:relative;&[aria-disabled='true']{cursor:default;color:",Z.ui.textDisabled,";}&:not( [aria-disabled='true'] ):is( :hover, [data-focus-visible] ){color:",Z.theme.accent,";}&:focus:not( :disabled ){box-shadow:none;outline:none;}&::after{position:absolute;pointer-events:none;outline:var( --wp-admin-border-width-focus ) solid ",Z.theme.accent,";border-radius:",ae.radiusSmall,";opacity:0;@media not ( prefers-reduced-motion ){transition:opacity 0.1s linear;}}&[data-focus-visible]::after{opacity:1;}}[aria-orientation='horizontal'] &{padding-inline:",le(4),";height:",le(12),";scroll-margin:24px;&::after{content:'';inset:",le(3),";}}[aria-orientation='vertical'] &{padding:",le(2)," ",le(3),";min-height:",le(10),";&[aria-selected='true']{color:",Z.theme.accent,";fill:currentColor;}}[aria-orientation='vertical'][data-select-on-move='false'] &::after{content:'';inset:var( --wp-admin-border-width-focus );}"),LX=oe("span",{target:"enfox0g2"})({name:"9at4z3",styles:"flex-grow:1;display:flex;align-items:center;[aria-orientation='horizontal'] &{justify-content:center;}[aria-orientation='vertical'] &{justify-content:start;}"}),$X=oe(Zt,{target:"enfox0g1"})("flex-shrink:0;margin-inline-end:",le(-1),";[aria-orientation='horizontal'] &{display:none;}opacity:0;[role='tab']:is( [aria-selected='true'], [data-focus-visible], :hover ) &{opacity:1;}@media not ( prefers-reduced-motion ){[data-select-on-move='true'] [role='tab']:is( [aria-selected='true'],  ) &{transition:opacity 0.15s 0.15s linear;}}&:dir( rtl ){rotate:180deg;}"),VX=oe(fA,{target:"enfox0g0"})("&:focus{box-shadow:none;outline:none;}&[data-focus-visible]{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ",Z.theme.accent,";outline:2px solid transparent;outline-offset:0;}"),WX=m.forwardRef(function({children:t,tabId:n,disabled:r,render:s,...i},o){var a;const{store:l,instanceId:c}=(a=zp())!==null&&a!==void 0?a:{};if(!l)return globalThis.SCRIPT_DEBUG===!0&&nr("`Tabs.Tab` must be wrapped in a `Tabs` component."),null;const u=`${c}-${n}`;return f.jsxs(FX,{ref:o,store:l,id:u,disabled:r,render:s,...i,children:[f.jsx(LX,{children:t}),f.jsx($X,{icon:Z5})]})});function BX(e,t){const[n,r]=m.useState(!1),[s,i]=m.useState(!1),[o,a]=m.useState(),l=Ai(c=>{for(const u of c)u.target===t.first&&r(!u.isIntersecting),u.target===t.last&&i(!u.isIntersecting)});return m.useEffect(()=>{if(!e||!window.IntersectionObserver)return;const c=new IntersectionObserver(l,{root:e,threshold:.9});return a(c),()=>c.disconnect()},[l,e]),m.useEffect(()=>{if(o)return t.first&&o.observe(t.first),t.last&&o.observe(t.last),()=>{t.first&&o.unobserve(t.first),t.last&&o.unobserve(t.last)}},[t.first,t.last,o]),{first:n,last:s}}var zX=24;function YX(e,t,{margin:n=zX}={}){m.useLayoutEffect(()=>{var h;if(!e||!t)return;const{scrollLeft:r}=e,s=e.getBoundingClientRect().width,{left:i,width:o}=t,a=r+s,c=i+o+n-a,u=r-(i-n);let d=null;u>0?d=r-u:c>0&&(d=r+c),d!==null&&((h=e.scroll)==null||h.call(e,{left:d}))},[n,e,t])}var HX=m.forwardRef(function({children:t,...n},r){var b,C;var s;const{store:i}=(s=zp())!==null&&s!==void 0?s:{},o=G(i,"selectedId"),a=G(i,"activeId"),l=G(i,"selectOnMove"),c=G(i,"items"),[u,d]=m.useState(),h=$t([r,d]),g=i==null?void 0:i.item(o),p=G(i,"renderedItems"),v=p&&g?p.indexOf(g):-1,x=xk(g==null?void 0:g.element,[v]),y=BX(u,{first:(b=c==null?void 0:c.at(0))==null?void 0:b.element,last:(C=c==null?void 0:c.at(-1))==null?void 0:C.element});wk(u,x,{prefix:"selected",dataAttribute:"indicator-animated",transitionEndFilter:_=>_.pseudoElement==="::before",roundRect:!0}),YX(u,x);const w=()=>{l&&o!==a&&(i==null||i.setActiveId(o))};return i?f.jsx(NX,{ref:h,store:i,render:_=>{var S;return f.jsx("div",{..._,tabIndex:(S=_.tabIndex)!==null&&S!==void 0?S:-1})},onBlur:w,"data-select-on-move":l?"true":"false",...n,className:ge(y.first&&"is-overflowing-first",y.last&&"is-overflowing-last",n.className),children:t}):(globalThis.SCRIPT_DEBUG===!0&&nr("`Tabs.TabList` must be wrapped in a `Tabs` component."),null)}),UX=m.forwardRef(function({children:t,tabId:n,focusable:r=!0,...s},i){const o=zp(),a=G(o==null?void 0:o.store,"selectedId");if(!o)return globalThis.SCRIPT_DEBUG===!0&&nr("`Tabs.TabPanel` must be wrapped in a `Tabs` component."),null;const{store:l,instanceId:c}=o,u=`${c}-${n}`;return f.jsx(VX,{ref:i,store:l,id:`${u}-view`,tabId:u,focusable:r,...s,children:a===u&&t})});function yc(e,t){return e&&`${t}-${e}`}function tx(e,t){return typeof e=="string"?e.replace(`${t}-`,""):e}var GX=Object.assign(function e({selectOnMove:t=!0,defaultTabId:n,orientation:r="horizontal",onSelect:s,children:i,selectedTabId:o,activeTabId:a,defaultActiveTabId:l,onActiveTabIdChange:c}){const u=yt(e,"tabs"),d=AA({selectOnMove:t,orientation:r,defaultSelectedId:yc(n,u),setSelectedId:x=>{s==null||s(tx(x,u))},selectedId:yc(o,u),defaultActiveId:yc(l,u),setActiveId:x=>{c==null||c(tx(x,u))},activeId:yc(a,u),rtl:bn()}),{items:h,activeId:g}=G(d),{setActiveId:p}=d;m.useEffect(()=>{requestAnimationFrame(()=>{var y,w;const x=(w=(y=h==null?void 0:h[0])==null?void 0:y.element)==null?void 0:w.ownerDocument.activeElement;!x||!h.some(b=>x===b.element)||g!==x.id&&p(x.id)})},[g,h,p]);const v=m.useMemo(()=>({store:d,instanceId:u}),[d,u]);return f.jsx(au.Provider,{value:v,children:i})},{Tab:Object.assign(WX,{displayName:"Tabs.Tab"}),TabList:Object.assign(HX,{displayName:"Tabs.TabList"}),TabPanel:Object.assign(UX,{displayName:"Tabs.TabPanel"}),Context:Object.assign(au,{displayName:"Tabs.Context"})}),{lock:qX}=ep("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/components");function KX(e="default"){switch(e){case"info":return Q5;case"success":return dC;case"warning":return q5;case"error":return uC;default:return null}}function XX({className:e,intent:t="default",children:n,...r}){const s=KX(t),i=!!s;return f.jsx("span",{className:ge("components-badge",e,{[`is-${t}`]:t,"has-icon":i}),...r,children:f.jsxs("span",{className:"components-badge__flex-wrapper",children:[i&&f.jsx(Zt,{icon:s,size:16,fill:"currentColor",className:"components-badge__icon"}),f.jsx("span",{className:"components-badge__content",children:n})]})})}var ZX=XX;function QX(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const Of={},Ea={};function os(e,t){try{const r=(Of[e]||(Of[e]=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format))(t).split("GMT")[1];return r in Ea?Ea[r]:nx(r,r.split(":"))}catch{if(e in Ea)return Ea[e];const n=e==null?void 0:e.match(JX);return n?nx(e,n.slice(1)):NaN}}const JX=/([+-]\d\d):?(\d\d)?/;function nx(e,t){const n=+(t[0]||0),r=+(t[1]||0),s=+(t[2]||0)/60;return Ea[e]=n*60+r>0?n*60+r+s:n*60-r-s}class Lr extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(os(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),sM(this,t)):this.setTime(Date.now())}static tz(t,...n){return n.length?new Lr(...n,t):new Lr(Date.now(),t)}withTimeZone(t){return new Lr(+this,t)}getTimezoneOffset(){const t=-os(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),lu(this),+this}[Symbol.for("constructDateFrom")](t){return new Lr(+new Date(t),this.timeZone)}}const rx=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!rx.test(e))return;const t=e.replace(rx,"$1UTC");Lr.prototype[t]&&(e.startsWith("get")?Lr.prototype[e]=function(){return this.internal[t]()}:(Lr.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),eZ(this),+this},Lr.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),lu(this),+this}))});function lu(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-os(e.timeZone,e)*60))}function eZ(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),sM(e)}function sM(e,t){const n=Array.isArray(t)?tZ(t):+e.internal,r=os(e.timeZone,e),s=r>0?Math.floor(r):Math.ceil(r),i=new Date(+e);i.setUTCHours(i.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),a=-new Date(+i).getTimezoneOffset(),l=o-a;let c=o;if(l&&o!==s){const M=Date.prototype.getHours.apply(e),E=Array.isArray(t)?t[3]||0:e.internal.getUTCHours();if(M!==E){const O=new Date(+e),A=o-s;A&&O.setUTCMinutes(O.getUTCMinutes()+A);const P=os(e.timeZone,O);(P>0?Math.floor(P):Math.ceil(P))===s&&(c=a)}}const u=c-s;u&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);const d=new Date(+e);d.setUTCSeconds(0);const h=o>0?d.getSeconds():(d.getSeconds()-60)%60,g=Math.round(-(os(e.timeZone,e)*60))%60;(g||h)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+g+h);const p=os(e.timeZone,e),v=p>0?Math.floor(p):Math.ceil(p),y=-new Date(+e).getTimezoneOffset()-v,w=v!==s,b=y-u,C=v-s,_=n-v*60*1e3,S=C>0&&sx(e)-n===C*60*1e3&&sx(e,_)!==n;if(w&&b&&!S){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+b);const M=os(e.timeZone,e),E=M>0?Math.floor(M):Math.ceil(M),O=v-E;O&&b<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+O)}lu(e);const T=(t?n:n+g*1e3)-+e.internal;T&&Math.abs(T)<30*60*1e3&&(Date.prototype.setTime.call(e,+e+T),lu(e))}function tZ(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function sx(e,t){const n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(-os(e.timeZone,n)*60)),+n}class rn extends Lr{static tz(t,...n){return n.length?new rn(...n,t):new rn(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),s=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+s}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,s]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${r} ${n} ${s}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,s]=this.tzComponents();return`${t} GMT${n}${r}${s} (${QX(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),s=String(Math.abs(t)%60).padStart(2,"0");return[n,r,s]}withTimeZone(t){return new rn(+this,t)}[Symbol.for("constructDateFrom")](t){return new rn(+new Date(t),this.timeZone)}}const iM=6048e5,nZ=864e5,ix=Symbol.for("constructDateFrom");function Wt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ix in e?e[ix](t):e instanceof Date?new e.constructor(t):new Date(t)}function nt(e,t){return Wt(t||e,e)}function oM(e,t,n){const r=nt(e,n==null?void 0:n.in);return isNaN(t)?Wt(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function aM(e,t,n){const r=nt(e,n==null?void 0:n.in);if(isNaN(t))return Wt(e,NaN);if(!t)return r;const s=r.getDate(),i=Wt(e,r.getTime());i.setMonth(r.getMonth()+t+1,0);const o=i.getDate();return s>=o?i:(r.setFullYear(i.getFullYear(),i.getMonth(),s),r)}let rZ={};function Gl(){return rZ}function Wo(e,t){var a,l,c,u;const n=Gl(),r=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,s=nt(e,t==null?void 0:t.in),i=s.getDay(),o=(i<r?7:0)+i-r;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function ul(e,t){return Wo(e,{...t,weekStartsOn:1})}function lM(e,t){const n=nt(e,t==null?void 0:t.in),r=n.getFullYear(),s=Wt(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const i=ul(s),o=Wt(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const a=ul(o);return n.getTime()>=i.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function ox(e){const t=nt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function aa(e,...t){const n=Wt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function dl(e,t){const n=nt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Yp(e,t,n){const[r,s]=aa(n==null?void 0:n.in,e,t),i=dl(r),o=dl(s),a=+i-ox(i),l=+o-ox(o);return Math.round((a-l)/nZ)}function sZ(e,t){const n=lM(e,t),r=Wt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ul(r)}function iZ(e,t,n){return oM(e,t*7,n)}function oZ(e,t,n){return aM(e,t*12,n)}function aZ(e,t){let n,r=t==null?void 0:t.in;return e.forEach(s=>{!r&&typeof s=="object"&&(r=Wt.bind(null,s));const i=nt(s,r);(!n||n<i||isNaN(+i))&&(n=i)}),Wt(r,n||NaN)}function lZ(e,t){let n,r=t==null?void 0:t.in;return e.forEach(s=>{!r&&typeof s=="object"&&(r=Wt.bind(null,s));const i=nt(s,r);(!n||n>i||isNaN(+i))&&(n=i)}),Wt(r,n||NaN)}function cZ(e,t,n){const[r,s]=aa(n==null?void 0:n.in,e,t);return+dl(r)==+dl(s)}function cM(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function uZ(e){return!(!cM(e)&&typeof e!="number"||isNaN(+nt(e)))}function uM(e,t,n){const[r,s]=aa(n==null?void 0:n.in,e,t),i=r.getFullYear()-s.getFullYear(),o=r.getMonth()-s.getMonth();return i*12+o}function dZ(e,t){const n=nt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function dM(e,t){const[n,r]=aa(e,t.start,t.end);return{start:n,end:r}}function fZ(e,t){const{start:n,end:r}=dM(t==null?void 0:t.in,e);let s=+n>+r;const i=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0),o.setDate(1);let a=1;const l=[];for(;+o<=i;)l.push(Wt(n,o)),o.setMonth(o.getMonth()+a);return s?l.reverse():l}function hZ(e,t){const n=nt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function mZ(e,t){const n=nt(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function fM(e,t){const n=nt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function gZ(e,t){const{start:n,end:r}=dM(t==null?void 0:t.in,e);let s=+n>+r;const i=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let a=1;const l=[];for(;+o<=i;)l.push(Wt(n,o)),o.setFullYear(o.getFullYear()+a);return s?l.reverse():l}function hM(e,t){var a,l,c,u;const n=Gl(),r=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,s=nt(e,t==null?void 0:t.in),i=s.getDay(),o=(i<r?-7:0)+6-(i-r);return s.setDate(s.getDate()+o),s.setHours(23,59,59,999),s}function pZ(e,t){return hM(e,{...t,weekStartsOn:1})}const vZ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},yZ=(e,t,n)=>{let r;const s=vZ[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Df(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const bZ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xZ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wZ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},SZ={date:Df({formats:bZ,defaultWidth:"full"}),time:Df({formats:xZ,defaultWidth:"full"}),dateTime:Df({formats:wZ,defaultWidth:"full"})},_Z={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},CZ=(e,t,n,r)=>_Z[e];function ba(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;s=e.formattingValues[a]||e.formattingValues[o]}else{const o=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[a]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return s[i]}}const kZ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},TZ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},MZ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},EZ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},OZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},DZ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},PZ=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},AZ={ordinalNumber:PZ,era:ba({values:kZ,defaultWidth:"wide"}),quarter:ba({values:TZ,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ba({values:MZ,defaultWidth:"wide"}),day:ba({values:EZ,defaultWidth:"wide"}),dayPeriod:ba({values:OZ,defaultWidth:"wide",formattingValues:DZ,defaultFormattingWidth:"wide"})};function xa(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(s);if(!i)return null;const o=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?jZ(a,d=>d.test(o)):RZ(a,d=>d.test(o));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(o.length);return{value:c,rest:u}}}function RZ(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function jZ(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function IZ(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const a=t.slice(s.length);return{value:o,rest:a}}}const NZ=/^(\d+)(th|st|nd|rd)?/i,FZ=/\d+/i,LZ={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},$Z={any:[/^b/i,/^(a|c)/i]},VZ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},WZ={any:[/1/i,/2/i,/3/i,/4/i]},BZ={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},zZ={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},YZ={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},HZ={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},UZ={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},GZ={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},qZ={ordinalNumber:IZ({matchPattern:NZ,parsePattern:FZ,valueCallback:e=>parseInt(e,10)}),era:xa({matchPatterns:LZ,defaultMatchWidth:"wide",parsePatterns:$Z,defaultParseWidth:"any"}),quarter:xa({matchPatterns:VZ,defaultMatchWidth:"wide",parsePatterns:WZ,defaultParseWidth:"any",valueCallback:e=>e+1}),month:xa({matchPatterns:BZ,defaultMatchWidth:"wide",parsePatterns:zZ,defaultParseWidth:"any"}),day:xa({matchPatterns:YZ,defaultMatchWidth:"wide",parsePatterns:HZ,defaultParseWidth:"any"}),dayPeriod:xa({matchPatterns:UZ,defaultMatchWidth:"any",parsePatterns:GZ,defaultParseWidth:"any"})},io={code:"en-US",formatDistance:yZ,formatLong:SZ,formatRelative:CZ,localize:AZ,match:qZ,options:{weekStartsOn:0,firstWeekContainsDate:1}};function KZ(e,t){const n=nt(e,t==null?void 0:t.in);return Yp(n,fM(n))+1}function Hp(e,t){const n=nt(e,t==null?void 0:t.in),r=+ul(n)-+sZ(n);return Math.round(r/iM)+1}function mM(e,t){var u,d,h,g;const n=nt(e,t==null?void 0:t.in),r=n.getFullYear(),s=Gl(),i=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??s.firstWeekContainsDate??((g=(h=s.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,o=Wt((t==null?void 0:t.in)||e,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const a=Wo(o,t),l=Wt((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const c=Wo(l,t);return+n>=+a?r+1:+n>=+c?r:r-1}function XZ(e,t){var a,l,c,u;const n=Gl(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,s=mM(e,t),i=Wt((t==null?void 0:t.in)||e,0);return i.setFullYear(s,0,r),i.setHours(0,0,0,0),Wo(i,t)}function Up(e,t){const n=nt(e,t==null?void 0:t.in),r=+Wo(n,t)-+XZ(n,t);return Math.round(r/iM)+1}function Ze(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const As={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ze(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ze(n+1,2)},d(e,t){return Ze(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ze(e.getHours()%12||12,t.length)},H(e,t){return Ze(e.getHours(),t.length)},m(e,t){return Ze(e.getMinutes(),t.length)},s(e,t){return Ze(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return Ze(s,t.length)}},Ji={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ax={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return As.y(e,t)},Y:function(e,t,n,r){const s=mM(e,r),i=s>0?s:1-s;if(t==="YY"){const o=i%100;return Ze(o,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):Ze(i,t.length)},R:function(e,t){const n=lM(e);return Ze(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ze(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ze(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ze(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return As.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ze(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const s=Up(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):Ze(s,t.length)},I:function(e,t,n){const r=Hp(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ze(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):As.d(e,t)},D:function(e,t,n){const r=KZ(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ze(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const s=e.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Ze(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Ze(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return Ze(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=Ji.noon:r===0?s=Ji.midnight:s=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=Ji.evening:r>=12?s=Ji.afternoon:r>=4?s=Ji.morning:s=Ji.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return As.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):As.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ze(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ze(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):As.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):As.s(e,t)},S:function(e,t){return As.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return cx(r);case"XXXX":case"XX":return bi(r);case"XXXXX":case"XXX":default:return bi(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return cx(r);case"xxxx":case"xx":return bi(r);case"xxxxx":case"xxx":default:return bi(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+lx(r,":");case"OOOO":default:return"GMT"+bi(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+lx(r,":");case"zzzz":default:return"GMT"+bi(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Ze(r,t.length)},T:function(e,t,n){return Ze(+e,t.length)}};function lx(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),i=r%60;return i===0?n+String(s):n+String(s)+t+Ze(i,2)}function cx(e,t){return e%60===0?(e>0?"-":"+")+Ze(Math.abs(e)/60,2):bi(e,t)}function bi(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Ze(Math.trunc(r/60),2),i=Ze(r%60,2);return n+s+t+i}const ux=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},gM=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ZZ=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return ux(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",ux(r,t)).replace("{{time}}",gM(s,t))},QZ={p:gM,P:ZZ},JZ=/^D+$/,eQ=/^Y+$/,tQ=["D","DD","YY","YYYY"];function nQ(e){return JZ.test(e)}function rQ(e){return eQ.test(e)}function sQ(e,t,n){const r=iQ(e,t,n);if(console.warn(r),tQ.includes(e))throw new RangeError(r)}function iQ(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const oQ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,aQ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lQ=/^'([^]*?)'?$/,cQ=/''/g,uQ=/[a-zA-Z]/;function Oa(e,t,n){var u,d,h,g,p,v,x,y;const r=Gl(),s=(n==null?void 0:n.locale)??r.locale??io,i=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((v=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:v.weekStartsOn)??r.weekStartsOn??((y=(x=r.locale)==null?void 0:x.options)==null?void 0:y.weekStartsOn)??0,a=nt(e,n==null?void 0:n.in);if(!uZ(a))throw new RangeError("Invalid time value");let l=t.match(aQ).map(w=>{const b=w[0];if(b==="p"||b==="P"){const C=QZ[b];return C(w,s.formatLong)}return w}).join("").match(oQ).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const b=w[0];if(b==="'")return{isToken:!1,value:dQ(w)};if(ax[b])return{isToken:!0,value:w};if(b.match(uQ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:w}});s.localize.preprocessor&&(l=s.localize.preprocessor(a,l));const c={firstWeekContainsDate:i,weekStartsOn:o,locale:s};return l.map(w=>{if(!w.isToken)return w.value;const b=w.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&rQ(b)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&nQ(b))&&sQ(b,t,String(e));const C=ax[b[0]];return C(a,b,s.localize,c)}).join("")}function dQ(e){const t=e.match(lQ);return t?t[1].replace(cQ,"'"):e}function fQ(e,t){const n=nt(e,t==null?void 0:t.in),r=n.getFullYear(),s=n.getMonth(),i=Wt(n,0);return i.setFullYear(r,s+1,0),i.setHours(0,0,0,0),i.getDate()}function hQ(e,t){return nt(e,t==null?void 0:t.in).getMonth()}function mQ(e,t){return nt(e,t==null?void 0:t.in).getFullYear()}function gQ(e,t){return+nt(e)>+nt(t)}function pQ(e,t){return+nt(e)<+nt(t)}function vQ(e,t,n){const[r,s]=aa(n==null?void 0:n.in,e,t);return r.getFullYear()===s.getFullYear()&&r.getMonth()===s.getMonth()}function yQ(e,t,n){const[r,s]=aa(n==null?void 0:n.in,e,t);return r.getFullYear()===s.getFullYear()}function bQ(e,t,n){const r=nt(e,n==null?void 0:n.in),s=r.getFullYear(),i=r.getDate(),o=Wt(e,0);o.setFullYear(s,t,15),o.setHours(0,0,0,0);const a=fQ(o);return r.setMonth(t,Math.min(i,a)),r}function xQ(e,t,n){const r=nt(e,n==null?void 0:n.in);return isNaN(+r)?Wt(e,NaN):(r.setFullYear(t),r)}const dx=5,wQ=4;function SQ(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,s=t.addDays(e,-r+1),i=t.addDays(s,dx*7-1);return t.getMonth(e)===t.getMonth(i)?dx:wQ}function pM(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-1*6):t.addDays(n,-1*(r-1))}function _Q(e,t){const n=pM(e,t),r=SQ(e,t);return t.addDays(n,r*7-1)}const Sd={...io,labels:{labelDayButton:(e,t,n,r)=>{let s;r&&typeof r.format=="function"?s=r.format.bind(r):s=(o,a)=>Oa(o,a,{locale:io,...n});let i=s(e,"PPPP");return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(s,i)=>Oa(s,i,{locale:io,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let s;r&&typeof r.format=="function"?s=r.format.bind(r):s=(o,a)=>Oa(o,a,{locale:io,...n});let i=s(e,"PPPP");return t!=null&&t.today&&(i=`Today, ${i}`),i},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(s,i)=>Oa(s,i,{locale:io,...t}),r(e,"cccc")}}};class zn{constructor(t,n){this.Date=Date,this.today=()=>{var r;return(r=this.overrides)!=null&&r.today?this.overrides.today():this.options.timeZone?rn.tz(this.options.timeZone):new this.Date},this.newDate=(r,s,i)=>{var o;return(o=this.overrides)!=null&&o.newDate?this.overrides.newDate(r,s,i):this.options.timeZone?new rn(r,s,i,this.options.timeZone):new Date(r,s,i)},this.addDays=(r,s)=>{var i;return(i=this.overrides)!=null&&i.addDays?this.overrides.addDays(r,s):oM(r,s)},this.addMonths=(r,s)=>{var i;return(i=this.overrides)!=null&&i.addMonths?this.overrides.addMonths(r,s):aM(r,s)},this.addWeeks=(r,s)=>{var i;return(i=this.overrides)!=null&&i.addWeeks?this.overrides.addWeeks(r,s):iZ(r,s)},this.addYears=(r,s)=>{var i;return(i=this.overrides)!=null&&i.addYears?this.overrides.addYears(r,s):oZ(r,s)},this.differenceInCalendarDays=(r,s)=>{var i;return(i=this.overrides)!=null&&i.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,s):Yp(r,s)},this.differenceInCalendarMonths=(r,s)=>{var i;return(i=this.overrides)!=null&&i.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,s):uM(r,s)},this.eachMonthOfInterval=r=>{var s;return(s=this.overrides)!=null&&s.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):fZ(r)},this.eachYearOfInterval=r=>{var a;const s=(a=this.overrides)!=null&&a.eachYearOfInterval?this.overrides.eachYearOfInterval(r):gZ(r),i=new Set(s.map(l=>this.getYear(l)));if(i.size===s.length)return s;const o=[];return i.forEach(l=>{o.push(new Date(l,0,1))}),o},this.endOfBroadcastWeek=r=>{var s;return(s=this.overrides)!=null&&s.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):_Q(r,this)},this.endOfISOWeek=r=>{var s;return(s=this.overrides)!=null&&s.endOfISOWeek?this.overrides.endOfISOWeek(r):pZ(r)},this.endOfMonth=r=>{var s;return(s=this.overrides)!=null&&s.endOfMonth?this.overrides.endOfMonth(r):dZ(r)},this.endOfWeek=(r,s)=>{var i;return(i=this.overrides)!=null&&i.endOfWeek?this.overrides.endOfWeek(r,s):hM(r,this.options)},this.endOfYear=r=>{var s;return(s=this.overrides)!=null&&s.endOfYear?this.overrides.endOfYear(r):mZ(r)},this.format=(r,s,i)=>{var a;const o=(a=this.overrides)!=null&&a.format?this.overrides.format(r,s,this.options):Oa(r,s,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(o):o},this.getISOWeek=r=>{var s;return(s=this.overrides)!=null&&s.getISOWeek?this.overrides.getISOWeek(r):Hp(r)},this.getMonth=(r,s)=>{var i;return(i=this.overrides)!=null&&i.getMonth?this.overrides.getMonth(r,this.options):hQ(r,this.options)},this.getYear=(r,s)=>{var i;return(i=this.overrides)!=null&&i.getYear?this.overrides.getYear(r,this.options):mQ(r,this.options)},this.getWeek=(r,s)=>{var i;return(i=this.overrides)!=null&&i.getWeek?this.overrides.getWeek(r,this.options):Up(r,this.options)},this.isAfter=(r,s)=>{var i;return(i=this.overrides)!=null&&i.isAfter?this.overrides.isAfter(r,s):gQ(r,s)},this.isBefore=(r,s)=>{var i;return(i=this.overrides)!=null&&i.isBefore?this.overrides.isBefore(r,s):pQ(r,s)},this.isDate=r=>{var s;return(s=this.overrides)!=null&&s.isDate?this.overrides.isDate(r):cM(r)},this.isSameDay=(r,s)=>{var i;return(i=this.overrides)!=null&&i.isSameDay?this.overrides.isSameDay(r,s):cZ(r,s)},this.isSameMonth=(r,s)=>{var i;return(i=this.overrides)!=null&&i.isSameMonth?this.overrides.isSameMonth(r,s):vQ(r,s)},this.isSameYear=(r,s)=>{var i;return(i=this.overrides)!=null&&i.isSameYear?this.overrides.isSameYear(r,s):yQ(r,s)},this.max=r=>{var s;return(s=this.overrides)!=null&&s.max?this.overrides.max(r):aZ(r)},this.min=r=>{var s;return(s=this.overrides)!=null&&s.min?this.overrides.min(r):lZ(r)},this.setMonth=(r,s)=>{var i;return(i=this.overrides)!=null&&i.setMonth?this.overrides.setMonth(r,s):bQ(r,s)},this.setYear=(r,s)=>{var i;return(i=this.overrides)!=null&&i.setYear?this.overrides.setYear(r,s):xQ(r,s)},this.startOfBroadcastWeek=(r,s)=>{var i;return(i=this.overrides)!=null&&i.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):pM(r,this)},this.startOfDay=r=>{var s;return(s=this.overrides)!=null&&s.startOfDay?this.overrides.startOfDay(r):dl(r)},this.startOfISOWeek=r=>{var s;return(s=this.overrides)!=null&&s.startOfISOWeek?this.overrides.startOfISOWeek(r):ul(r)},this.startOfMonth=r=>{var s;return(s=this.overrides)!=null&&s.startOfMonth?this.overrides.startOfMonth(r):hZ(r)},this.startOfWeek=(r,s)=>{var i;return(i=this.overrides)!=null&&i.startOfWeek?this.overrides.startOfWeek(r,this.options):Wo(r,this.options)},this.startOfYear=r=>{var s;return(s=this.overrides)!=null&&s.startOfYear?this.overrides.startOfYear(r):fM(r)},this.options={locale:Sd,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let s=0;s<10;s++)r[s.toString()]=n.format(s);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){var n;const t=(n=this.options.locale)==null?void 0:n.code;return t&&zn.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:s}=this.options,i=n==null?void 0:n.code;if(i&&zn.yearFirstLocales.has(i))try{return new Intl.DateTimeFormat(i,{month:"long",year:"numeric",timeZone:r,numberingSystem:s}).format(t)}catch{}const o=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,o)}}zn.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Xr=new zn;class vM{constructor(t,n,r=Xr){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class CQ{constructor(t,n){this.date=t,this.weeks=n}}class kQ{constructor(t,n){this.days=n,this.weekNumber=t}}function TQ(e){return q.createElement("button",{...e})}function MQ(e){return q.createElement("span",{...e})}function EQ(e){const{size:t=24,orientation:n="left",className:r}=e;return q.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&q.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&q.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&q.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&q.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function OQ(e){const{day:t,modifiers:n,...r}=e;return q.createElement("td",{...r})}function DQ(e){const{day:t,modifiers:n,...r}=e,s=q.useRef(null);return q.useEffect(()=>{var i;n.focused&&((i=s.current)==null||i.focus())},[n.focused]),q.createElement("button",{ref:s,...r})}var ve;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(ve||(ve={}));var _t;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(_t||(_t={}));var hr;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(hr||(hr={}));var jn;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(jn||(jn={}));function PQ(e){const{options:t,className:n,components:r,classNames:s,...i}=e,o=[s[ve.Dropdown],n].join(" "),a=t==null?void 0:t.find(({value:l})=>l===i.value);return q.createElement("span",{"data-disabled":i.disabled,className:s[ve.DropdownRoot]},q.createElement(r.Select,{className:o,...i},t==null?void 0:t.map(({value:l,label:c,disabled:u})=>q.createElement(r.Option,{key:l,value:l,disabled:u},c))),q.createElement("span",{className:s[ve.CaptionLabel],"aria-hidden":!0},a==null?void 0:a.label,q.createElement(r.Chevron,{orientation:"down",size:18,className:s[ve.Chevron]})))}function AQ(e){return q.createElement("div",{...e})}function RQ(e){return q.createElement("div",{...e})}function jQ(e){const{calendarMonth:t,displayIndex:n,...r}=e;return q.createElement("div",{...r},e.children)}function IQ(e){const{calendarMonth:t,displayIndex:n,...r}=e;return q.createElement("div",{...r})}function NQ(e){return q.createElement("table",{...e})}function FQ(e){return q.createElement("div",{...e})}const yM=m.createContext(void 0);function ql(){const e=m.useContext(yM);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function LQ(e){const{components:t}=ql();return q.createElement(t.Dropdown,{...e})}function $Q(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:s,...i}=e,{components:o,classNames:a,labels:{labelPrevious:l,labelNext:c}}=ql(),u=m.useCallback(h=>{s&&(n==null||n(h))},[s,n]),d=m.useCallback(h=>{r&&(t==null||t(h))},[r,t]);return q.createElement("nav",{...i},q.createElement(o.PreviousMonthButton,{type:"button",className:a[ve.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:d},q.createElement(o.Chevron,{disabled:r?void 0:!0,className:a[ve.Chevron],orientation:"left"})),q.createElement(o.NextMonthButton,{type:"button",className:a[ve.NextMonthButton],tabIndex:s?void 0:-1,"aria-disabled":s?void 0:!0,"aria-label":c(s),onClick:u},q.createElement(o.Chevron,{disabled:s?void 0:!0,orientation:"right",className:a[ve.Chevron]})))}function VQ(e){const{components:t}=ql();return q.createElement(t.Button,{...e})}function WQ(e){return q.createElement("option",{...e})}function BQ(e){const{components:t}=ql();return q.createElement(t.Button,{...e})}function zQ(e){const{rootRef:t,...n}=e;return q.createElement("div",{...n,ref:t})}function YQ(e){return q.createElement("select",{...e})}function HQ(e){const{week:t,...n}=e;return q.createElement("tr",{...n})}function UQ(e){return q.createElement("th",{...e})}function GQ(e){return q.createElement("thead",{"aria-hidden":!0},q.createElement("tr",{...e}))}function qQ(e){const{week:t,...n}=e;return q.createElement("th",{...n})}function KQ(e){return q.createElement("th",{...e})}function XQ(e){return q.createElement("tbody",{...e})}function ZQ(e){const{components:t}=ql();return q.createElement(t.Dropdown,{...e})}const QQ=Object.freeze(Object.defineProperty({__proto__:null,Button:TQ,CaptionLabel:MQ,Chevron:EQ,Day:OQ,DayButton:DQ,Dropdown:PQ,DropdownNav:AQ,Footer:RQ,Month:jQ,MonthCaption:IQ,MonthGrid:NQ,Months:FQ,MonthsDropdown:LQ,Nav:$Q,NextMonthButton:VQ,Option:WQ,PreviousMonthButton:BQ,Root:zQ,Select:YQ,Week:HQ,WeekNumber:qQ,WeekNumberHeader:KQ,Weekday:UQ,Weekdays:GQ,Weeks:XQ,YearsDropdown:ZQ},Symbol.toStringTag,{value:"Module"}));function us(e,t,n=!1,r=Xr){let{from:s,to:i}=e;const{differenceInCalendarDays:o,isSameDay:a}=r;return s&&i?(o(i,s)<0&&([s,i]=[i,s]),o(t,s)>=(n?1:0)&&o(i,t)>=(n?1:0)):!n&&i?a(i,t):!n&&s?a(s,t):!1}function Gp(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function _d(e){return!!(e&&typeof e=="object"&&"from"in e)}function qp(e){return!!(e&&typeof e=="object"&&"after"in e)}function Kp(e){return!!(e&&typeof e=="object"&&"before"in e)}function bM(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function xM(e,t){return Array.isArray(e)&&e.every(t.isDate)}function ds(e,t,n=Xr){const r=Array.isArray(t)?t:[t],{isSameDay:s,differenceInCalendarDays:i,isAfter:o}=n;return r.some(a=>{if(typeof a=="boolean")return a;if(n.isDate(a))return s(e,a);if(xM(a,n))return a.some(l=>s(e,l));if(_d(a))return us(a,e,!1,n);if(bM(a))return Array.isArray(a.dayOfWeek)?a.dayOfWeek.includes(e.getDay()):a.dayOfWeek===e.getDay();if(Gp(a)){const l=i(a.before,e),c=i(a.after,e),u=l>0,d=c<0;return o(a.before,a.after)?d&&u:u||d}return qp(a)?i(e,a.after)>0:Kp(a)?i(a.before,e)>0:typeof a=="function"?a(e):!1})}function JQ(e,t,n,r,s){const{disabled:i,hidden:o,modifiers:a,showOutsideDays:l,broadcastCalendar:c,today:u=s.today()}=t,{isSameDay:d,isSameMonth:h,startOfMonth:g,isBefore:p,endOfMonth:v,isAfter:x}=s,y=n&&g(n),w=r&&v(r),b={[_t.focused]:[],[_t.outside]:[],[_t.disabled]:[],[_t.hidden]:[],[_t.today]:[]},C={};for(const _ of e){const{date:S,displayMonth:k}=_,T=!!(k&&!h(S,k)),M=!!(y&&p(S,y)),E=!!(w&&x(S,w)),O=!!(i&&ds(S,i,s)),A=!!(o&&ds(S,o,s))||M||E||!c&&!l&&T||c&&l===!1&&T,P=d(S,u);T&&b.outside.push(_),O&&b.disabled.push(_),A&&b.hidden.push(_),P&&b.today.push(_),a&&Object.keys(a).forEach(L=>{const F=a==null?void 0:a[L];F&&ds(S,F,s)&&(C[L]?C[L].push(_):C[L]=[_])})}return _=>{const S={[_t.focused]:!1,[_t.disabled]:!1,[_t.hidden]:!1,[_t.outside]:!1,[_t.today]:!1},k={};for(const T in b){const M=b[T];S[T]=M.some(E=>E===_)}for(const T in C)k[T]=C[T].some(M=>M===_);return{...S,...k}}}function eJ(e,t,n={}){return Object.entries(e).filter(([,s])=>s===!0).reduce((s,[i])=>(n[i]?s.push(n[i]):t[_t[i]]?s.push(t[_t[i]]):t[hr[i]]&&s.push(t[hr[i]]),s),[t[ve.Day]])}function tJ(e){return{...QQ,...e}}function nJ(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function rJ(){const e={};for(const t in ve)e[ve[t]]=`rdp-${ve[t]}`;for(const t in _t)e[_t[t]]=`rdp-${_t[t]}`;for(const t in hr)e[hr[t]]=`rdp-${hr[t]}`;for(const t in jn)e[jn[t]]=`rdp-${jn[t]}`;return e}function wM(e,t,n){return(n??new zn(t)).formatMonthYear(e)}const sJ=wM;function iJ(e,t,n){return(n??new zn(t)).format(e,"d")}function oJ(e,t=Xr){return t.format(e,"LLLL")}function aJ(e,t,n){return(n??new zn(t)).format(e,"cccccc")}function lJ(e,t=Xr){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function cJ(){return""}function SM(e,t=Xr){return t.format(e,"yyyy")}const uJ=SM,dJ=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:wM,formatDay:iJ,formatMonthCaption:sJ,formatMonthDropdown:oJ,formatWeekNumber:lJ,formatWeekNumberHeader:cJ,formatWeekdayName:aJ,formatYearCaption:uJ,formatYearDropdown:SM},Symbol.toStringTag,{value:"Module"}));function fJ(e){return e!=null&&e.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e!=null&&e.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...dJ,...e}}function Xp(e,t,n,r){let s=(r??new zn(n)).format(e,"PPPP");return t.today&&(s=`Today, ${s}`),t.selected&&(s=`${s}, selected`),s}const hJ=Xp;function Zp(e,t,n){return(n??new zn(t)).formatMonthYear(e)}const mJ=Zp;function _M(e,t,n,r){let s=(r??new zn(n)).format(e,"PPPP");return t!=null&&t.today&&(s=`Today, ${s}`),s}function CM(e){return"Choose the Month"}function kM(){return""}const gJ="Go to the Next Month";function TM(e,t){return gJ}function MM(e){return"Go to the Previous Month"}function EM(e,t,n){return(n??new zn(t)).format(e,"cccc")}function OM(e,t){return`Week ${e}`}function DM(e){return"Week Number"}function PM(e){return"Choose the Year"}const pJ=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:mJ,labelDay:hJ,labelDayButton:Xp,labelGrid:Zp,labelGridcell:_M,labelMonthDropdown:CM,labelNav:kM,labelNext:TM,labelPrevious:MM,labelWeekNumber:OM,labelWeekNumberHeader:DM,labelWeekday:EM,labelYearDropdown:PM},Symbol.toStringTag,{value:"Module"})),ar=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function vJ(e,t){var r;const n=((r=t.locale)==null?void 0:r.labels)??{};return{...pJ,...e??{},labelDayButton:ar(Xp,e==null?void 0:e.labelDayButton,n.labelDayButton),labelMonthDropdown:ar(CM,e==null?void 0:e.labelMonthDropdown,n.labelMonthDropdown),labelNext:ar(TM,e==null?void 0:e.labelNext,n.labelNext),labelPrevious:ar(MM,e==null?void 0:e.labelPrevious,n.labelPrevious),labelWeekNumber:ar(OM,e==null?void 0:e.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:ar(PM,e==null?void 0:e.labelYearDropdown,n.labelYearDropdown),labelGrid:ar(Zp,e==null?void 0:e.labelGrid,n.labelGrid),labelGridcell:ar(_M,e==null?void 0:e.labelGridcell,n.labelGridcell),labelNav:ar(kM,e==null?void 0:e.labelNav,n.labelNav),labelWeekNumberHeader:ar(DM,e==null?void 0:e.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:ar(EM,e==null?void 0:e.labelWeekday,n.labelWeekday)}}function yJ(e,t,n,r,s){const{startOfMonth:i,startOfYear:o,endOfYear:a,eachMonthOfInterval:l,getMonth:c}=s;return l({start:o(e),end:a(e)}).map(h=>{const g=r.formatMonthDropdown(h,s),p=c(h),v=t&&h<i(t)||n&&h>i(n)||!1;return{value:p,label:g,disabled:v}})}function bJ(e,t={},n={}){let r={...t==null?void 0:t[ve.Day]};return Object.entries(e).filter(([,s])=>s===!0).forEach(([s])=>{r={...r,...n==null?void 0:n[s]}}),r}function xJ(e,t,n,r){const s=r??e.today(),i=n?e.startOfBroadcastWeek(s,e):t?e.startOfISOWeek(s):e.startOfWeek(s),o=[];for(let a=0;a<7;a++){const l=e.addDays(i,a);o.push(l)}return o}function wJ(e,t,n,r,s=!1){if(!e||!t)return;const{startOfYear:i,endOfYear:o,eachYearOfInterval:a,getYear:l}=r,c=i(e),u=o(t),d=a({start:c,end:u});return s&&d.reverse(),d.map(h=>{const g=n.formatYearDropdown(h,r);return{value:l(h),label:g,disabled:!1}})}function SJ(e,t={}){var a;const{weekStartsOn:n,locale:r}=t,s=n??((a=r==null?void 0:r.options)==null?void 0:a.weekStartsOn)??0,i=l=>{const c=typeof l=="number"||typeof l=="string"?new Date(l):l;return new rn(c.getFullYear(),c.getMonth(),c.getDate(),12,0,0,e)},o=l=>{const c=i(l);return new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0,0)};return{today:()=>i(rn.tz(e)),newDate:(l,c,u)=>new rn(l,c,u,12,0,0,e),startOfDay:l=>i(l),startOfWeek:(l,c)=>{const u=i(l),d=(c==null?void 0:c.weekStartsOn)??s,h=(u.getDay()-d+7)%7;return u.setDate(u.getDate()-h),u},startOfISOWeek:l=>{const c=i(l),u=(c.getDay()-1+7)%7;return c.setDate(c.getDate()-u),c},startOfMonth:l=>{const c=i(l);return c.setDate(1),c},startOfYear:l=>{const c=i(l);return c.setMonth(0,1),c},endOfWeek:(l,c)=>{const u=i(l),g=((((c==null?void 0:c.weekStartsOn)??s)+6)%7-u.getDay()+7)%7;return u.setDate(u.getDate()+g),u},endOfISOWeek:l=>{const c=i(l),u=(7-c.getDay())%7;return c.setDate(c.getDate()+u),c},endOfMonth:l=>{const c=i(l);return c.setMonth(c.getMonth()+1,0),c},endOfYear:l=>{const c=i(l);return c.setMonth(11,31),c},eachMonthOfInterval:l=>{const c=i(l.start),u=i(l.end),d=[],h=new rn(c.getFullYear(),c.getMonth(),1,12,0,0,e),g=u.getFullYear()*12+u.getMonth();for(;h.getFullYear()*12+h.getMonth()<=g;)d.push(new rn(h,e)),h.setMonth(h.getMonth()+1,1);return d},addDays:(l,c)=>{const u=i(l);return u.setDate(u.getDate()+c),u},addWeeks:(l,c)=>{const u=i(l);return u.setDate(u.getDate()+c*7),u},addMonths:(l,c)=>{const u=i(l);return u.setMonth(u.getMonth()+c),u},addYears:(l,c)=>{const u=i(l);return u.setFullYear(u.getFullYear()+c),u},eachYearOfInterval:l=>{const c=i(l.start),u=i(l.end),d=[],h=new rn(c.getFullYear(),0,1,12,0,0,e);for(;h.getFullYear()<=u.getFullYear();)d.push(new rn(h,e)),h.setFullYear(h.getFullYear()+1,0,1);return d},getWeek:(l,c)=>{var d;const u=o(l);return Up(u,{weekStartsOn:(c==null?void 0:c.weekStartsOn)??s,firstWeekContainsDate:(c==null?void 0:c.firstWeekContainsDate)??((d=r==null?void 0:r.options)==null?void 0:d.firstWeekContainsDate)??1})},getISOWeek:l=>{const c=o(l);return Hp(c)},differenceInCalendarDays:(l,c)=>{const u=o(l),d=o(c);return Yp(u,d)},differenceInCalendarMonths:(l,c)=>{const u=o(l),d=o(c);return uM(u,d)}}}const Kl=e=>e instanceof HTMLElement?e:null,Pf=e=>[...e.querySelectorAll("[data-animated-month]")??[]],_J=e=>Kl(e.querySelector("[data-animated-month]")),Af=e=>Kl(e.querySelector("[data-animated-caption]")),Rf=e=>Kl(e.querySelector("[data-animated-weeks]")),CJ=e=>Kl(e.querySelector("[data-animated-nav]")),kJ=e=>Kl(e.querySelector("[data-animated-weekdays]"));function TJ(e,t,{classNames:n,months:r,focused:s,dateLib:i}){const o=m.useRef(null),a=m.useRef(r),l=m.useRef(!1);m.useLayoutEffect(()=>{const c=a.current;if(a.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||c.length===0||r.length!==c.length)return;const u=i.isSameMonth(r[0].date,c[0].date),d=i.isAfter(r[0].date,c[0].date),h=d?n[jn.caption_after_enter]:n[jn.caption_before_enter],g=d?n[jn.weeks_after_enter]:n[jn.weeks_before_enter],p=o.current,v=e.current.cloneNode(!0);if(v instanceof HTMLElement?(Pf(v).forEach(b=>{if(!(b instanceof HTMLElement))return;const C=_J(b);C&&b.contains(C)&&b.removeChild(C);const _=Af(b);_&&_.classList.remove(h);const S=Rf(b);S&&S.classList.remove(g)}),o.current=v):o.current=null,l.current||u||s)return;const x=p instanceof HTMLElement?Pf(p):[],y=Pf(e.current);if(y!=null&&y.every(w=>w instanceof HTMLElement)&&x&&x.every(w=>w instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const w=CJ(e.current);w&&(w.style.zIndex="1"),y.forEach((b,C)=>{const _=x[C];if(!_)return;b.style.position="relative",b.style.overflow="hidden";const S=Af(b);S&&S.classList.add(h);const k=Rf(b);k&&k.classList.add(g);const T=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),w&&(w.style.zIndex=""),S&&S.classList.remove(h),k&&k.classList.remove(g),b.style.position="",b.style.overflow="",b.contains(_)&&b.removeChild(_)};_.style.pointerEvents="none",_.style.position="absolute",_.style.overflow="hidden",_.setAttribute("aria-hidden","true");const M=kJ(_);M&&(M.style.opacity="0");const E=Af(_);E&&(E.classList.add(d?n[jn.caption_before_exit]:n[jn.caption_after_exit]),E.addEventListener("animationend",T));const O=Rf(_);O&&O.classList.add(d?n[jn.weeks_before_exit]:n[jn.weeks_after_exit]),b.insertBefore(_,b.firstChild)})}})}function MJ(e,t,n,r){const s=e[0],i=e[e.length-1],{ISOWeek:o,fixedWeeks:a,broadcastCalendar:l}=n??{},{addDays:c,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:h,endOfISOWeek:g,endOfMonth:p,endOfWeek:v,isAfter:x,startOfBroadcastWeek:y,startOfISOWeek:w,startOfWeek:b}=r,C=l?y(s,r):o?w(s):b(s),_=l?h(i):o?g(p(i)):v(p(i)),S=t&&(l?h(t):o?g(t):v(t)),k=S&&x(_,S)?S:_,T=u(k,C),M=d(i,s)+1,E=[];for(let P=0;P<=T;P++){const L=c(C,P);E.push(L)}const A=(l?35:42)*M;if(a&&E.length<A){const P=A-E.length;for(let L=0;L<P;L++){const F=c(E[E.length-1],1);E.push(F)}}return E}function EJ(e){const t=[];return e.reduce((n,r)=>{const s=r.weeks.reduce((i,o)=>i.concat(o.days.slice()),t.slice());return n.concat(s.slice())},t.slice())}function OJ(e,t,n,r){const{numberOfMonths:s=1}=n,i=[];for(let o=0;o<s;o++){const a=r.addMonths(e,o);if(t&&a>t)break;i.push(a)}return i}function fx(e,t,n,r){const{month:s,defaultMonth:i,today:o=r.today(),numberOfMonths:a=1}=e;let l=s||i||o;const{differenceInCalendarMonths:c,addMonths:u,startOfMonth:d}=r;if(n&&c(n,l)<a-1){const h=-1*(a-1);l=u(n,h)}return t&&c(l,t)<0&&(l=t),d(l)}function DJ(e,t,n,r){const{addDays:s,endOfBroadcastWeek:i,endOfISOWeek:o,endOfMonth:a,endOfWeek:l,getISOWeek:c,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:h,startOfWeek:g}=r,p=e.reduce((v,x)=>{const y=n.broadcastCalendar?d(x,r):n.ISOWeek?h(x):g(x),w=n.broadcastCalendar?i(x):n.ISOWeek?o(a(x)):l(a(x)),b=t.filter(k=>k>=y&&k<=w),C=n.broadcastCalendar?35:42;if(n.fixedWeeks&&b.length<C){const k=t.filter(T=>{const M=C-b.length;return T>w&&T<=s(w,M)});b.push(...k)}const _=b.reduce((k,T)=>{const M=n.ISOWeek?c(T):u(T),E=k.find(A=>A.weekNumber===M),O=new vM(T,x,r);return E?E.days.push(O):k.push(new kQ(M,[O])),k},[]),S=new CQ(x,_);return v.push(S),v},[]);return n.reverseMonths?p.reverse():p}function PJ(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:s,startOfDay:i,startOfMonth:o,endOfMonth:a,addYears:l,endOfYear:c,newDate:u,today:d}=t,{fromYear:h,toYear:g,fromMonth:p,toMonth:v}=e;!n&&p&&(n=p),!n&&h&&(n=t.newDate(h,0,1)),!r&&v&&(r=v),!r&&g&&(r=u(g,11,31));const x=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=o(n):h?n=u(h,0,1):!n&&x&&(n=s(l(e.today??d(),-100))),r?r=a(r):g?r=u(g,11,31):!r&&x&&(r=c(e.today??d())),[n&&i(n),r&&i(r)]}function AJ(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:s,numberOfMonths:i=1}=n,{startOfMonth:o,addMonths:a,differenceInCalendarMonths:l}=r,c=s?i:1,u=o(e);if(!t)return a(u,c);if(!(l(t,e)<i))return a(u,c)}function RJ(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:s,numberOfMonths:i}=n,{startOfMonth:o,addMonths:a,differenceInCalendarMonths:l}=r,c=s?i??1:1,u=o(e);if(!t)return a(u,-c);if(!(l(u,t)<=0))return a(u,-c)}function jJ(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function Cd(e,t){const[n,r]=m.useState(e);return[t===void 0?n:t,r]}function IJ(e,t){var C;const[n,r]=PJ(e,t),{startOfMonth:s,endOfMonth:i}=t,o=fx(e,n,r,t),[a,l]=Cd(o,e.month?o:void 0);m.useEffect(()=>{const _=fx(e,n,r,t);l(_)},[e.timeZone]);const{months:c,weeks:u,days:d,previousMonth:h,nextMonth:g}=m.useMemo(()=>{const _=OJ(a,r,{numberOfMonths:e.numberOfMonths},t),S=MJ(_,e.endMonth?i(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),k=DJ(_,S,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),T=jJ(k),M=EJ(k),E=RJ(a,n,e,t),O=AJ(a,r,e,t);return{months:k,weeks:T,days:M,previousMonth:E,nextMonth:O}},[t,a.getTime(),r==null?void 0:r.getTime(),n==null?void 0:n.getTime(),e.disableNavigation,e.broadcastCalendar,(C=e.endMonth)==null?void 0:C.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:p,onMonthChange:v}=e,x=_=>u.some(S=>S.days.some(k=>k.isEqualTo(_))),y=_=>{if(p)return;let S=s(_);n&&S<s(n)&&(S=s(n)),r&&S>s(r)&&(S=s(r)),l(S),v==null||v(S)};return{months:c,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:h,nextMonth:g,goToMonth:y,goToDay:_=>{x(_)||y(_.date)}}}var Pr;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(Pr||(Pr={}));function hx(e){return!e[_t.disabled]&&!e[_t.hidden]&&!e[_t.outside]}function NJ(e,t,n,r){let s,i=-1;for(const o of e){const a=t(o);hx(a)&&(a[_t.focused]&&i<Pr.FocusedModifier?(s=o,i=Pr.FocusedModifier):r!=null&&r.isEqualTo(o)&&i<Pr.LastFocused?(s=o,i=Pr.LastFocused):n(o.date)&&i<Pr.Selected?(s=o,i=Pr.Selected):a[_t.today]&&i<Pr.Today&&(s=o,i=Pr.Today))}return s||(s=e.find(o=>hx(t(o)))),s}function FJ(e,t,n,r,s,i,o){const{ISOWeek:a,broadcastCalendar:l}=i,{addDays:c,addMonths:u,addWeeks:d,addYears:h,endOfBroadcastWeek:g,endOfISOWeek:p,endOfWeek:v,max:x,min:y,startOfBroadcastWeek:w,startOfISOWeek:b,startOfWeek:C}=o;let S={day:c,week:d,month:u,year:h,startOfWeek:k=>l?w(k,o):a?b(k):C(k),endOfWeek:k=>l?g(k):a?p(k):v(k)}[e](n,t==="after"?1:-1);return t==="before"&&r?S=x([r,S]):t==="after"&&s&&(S=y([s,S])),S}function AM(e,t,n,r,s,i,o,a=0){if(a>365)return;const l=FJ(e,t,n.date,r,s,i,o),c=!!(i.disabled&&ds(l,i.disabled,o)),u=!!(i.hidden&&ds(l,i.hidden,o)),d=l,h=new vM(l,d,o);return!c&&!u?h:AM(e,t,h,r,s,i,o,a+1)}function LJ(e,t,n,r,s){const{autoFocus:i}=e,[o,a]=m.useState(),l=NJ(t.days,n,r||(()=>!1),o),[c,u]=m.useState(i?l:void 0);return{isFocusTarget:v=>!!(l!=null&&l.isEqualTo(v)),setFocused:u,focused:c,blur:()=>{a(c),u(void 0)},moveFocus:(v,x)=>{if(!c)return;const y=AM(v,x,c,t.navStart,t.navEnd,e,s);y&&(e.disableNavigation&&!t.days.some(b=>b.isEqualTo(y))||(t.goToDay(y),u(y)))}}}function $J(e,t){const{selected:n,required:r,onSelect:s}=e,[i,o]=Cd(n,s?n:void 0),a=s?n:i,{isSameDay:l}=t,c=g=>(a==null?void 0:a.some(p=>l(p,g)))??!1,{min:u,max:d}=e;return{selected:a,select:(g,p,v)=>{let x=[...a??[]];if(c(g)){if((a==null?void 0:a.length)===u||r&&(a==null?void 0:a.length)===1)return;x=a==null?void 0:a.filter(y=>!l(y,g))}else(a==null?void 0:a.length)===d?x=[g]:x=[...x,g];return s||o(x),s==null||s(x,g,p,v),x},isSelected:c}}function VJ(e,t,n=0,r=0,s=!1,i=Xr){const{from:o,to:a}=t||{},{isSameDay:l,isAfter:c,isBefore:u}=i;let d;if(!o&&!a)d={from:e,to:n>0?void 0:e};else if(o&&!a)l(o,e)?n===0?d={from:o,to:e}:s?d={from:o,to:void 0}:d=void 0:u(e,o)?d={from:e,to:o}:d={from:o,to:e};else if(o&&a)if(l(o,e)&&l(a,e))s?d={from:o,to:a}:d=void 0;else if(l(o,e))d={from:o,to:n>0?void 0:e};else if(l(a,e))d={from:e,to:n>0?void 0:e};else if(u(e,o))d={from:e,to:a};else if(c(e,o))d={from:o,to:e};else if(c(e,a))d={from:o,to:e};else throw new Error("Invalid range");if(d!=null&&d.from&&(d!=null&&d.to)){const h=i.differenceInCalendarDays(d.to,d.from);r>0&&h>r?d={from:e,to:void 0}:n>1&&h<n&&(d={from:e,to:void 0})}return d}function WJ(e,t,n=Xr){const r=Array.isArray(t)?t:[t];let s=e.from;const i=n.differenceInCalendarDays(e.to,e.from),o=Math.min(i,6);for(let a=0;a<=o;a++){if(r.includes(s.getDay()))return!0;s=n.addDays(s,1)}return!1}function mx(e,t,n=Xr){return us(e,t.from,!1,n)||us(e,t.to,!1,n)||us(t,e.from,!1,n)||us(t,e.to,!1,n)}function RM(e,t,n=Xr){const r=Array.isArray(t)?t:[t];if(r.filter(a=>typeof a!="function").some(a=>typeof a=="boolean"?a:n.isDate(a)?us(e,a,!1,n):xM(a,n)?a.some(l=>us(e,l,!1,n)):_d(a)?a.from&&a.to?mx(e,{from:a.from,to:a.to},n):!1:bM(a)?WJ(e,a.dayOfWeek,n):Gp(a)?n.isAfter(a.before,a.after)?mx(e,{from:n.addDays(a.after,1),to:n.addDays(a.before,-1)},n):ds(e.from,a,n)||ds(e.to,a,n):qp(a)||Kp(a)?ds(e.from,a,n)||ds(e.to,a,n):!1))return!0;const o=r.filter(a=>typeof a=="function");if(o.length){let a=e.from;const l=n.differenceInCalendarDays(e.to,e.from);for(let c=0;c<=l;c++){if(o.some(u=>u(a)))return!0;a=n.addDays(a,1)}}return!1}function BJ(e,t){const{disabled:n,excludeDisabled:r,resetOnSelect:s,selected:i,required:o,onSelect:a}=e,[l,c]=Cd(i,a?i:void 0),u=a?i:l;return{selected:u,select:(g,p,v)=>{const{min:x,max:y}=e;let w;if(g){const b=u==null?void 0:u.from,C=u==null?void 0:u.to,_=!!b&&!!C,S=!!b&&!!C&&t.isSameDay(b,C)&&t.isSameDay(g,b);s&&(_||!(u!=null&&u.from))?!o&&S?w=void 0:w={from:g,to:void 0}:w=VJ(g,u,x,y,o,t)}return r&&n&&(w!=null&&w.from)&&w.to&&RM({from:w.from,to:w.to},n,t)&&(w.from=g,w.to=void 0),a||c(w),a==null||a(w,g,p,v),w},isSelected:g=>u&&us(u,g,!1,t)}}function zJ(e,t){const{selected:n,required:r,onSelect:s}=e,[i,o]=Cd(n,s?n:void 0),a=s?n:i,{isSameDay:l}=t;return{selected:a,select:(d,h,g)=>{let p=d;return!r&&a&&a&&l(d,a)&&(p=void 0),s||o(p),s==null||s(p,d,h,g),p},isSelected:d=>a?l(a,d):!1}}function YJ(e,t){const n=zJ(e,t),r=$J(e,t),s=BJ(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return s;default:return}}function qn(e,t){return e instanceof rn&&e.timeZone===t?e:new rn(e,t)}function eo(e,t,n){return qn(e,t)}function gx(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?eo(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?eo(r,t):r):_d(e)?{...e,from:e.from?qn(e.from,t):e.from,to:e.to?qn(e.to,t):e.to}:Gp(e)?{before:eo(e.before,t),after:eo(e.after,t)}:qp(e)?{after:eo(e.after,t)}:Kp(e)?{before:eo(e.before,t)}:e}function jf(e,t,n){return e&&(Array.isArray(e)?e.map(r=>gx(r,t)):gx(e,t))}function jM(e){var An;let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=qn(t.today,n)),t.month&&(t.month=qn(t.month,n)),t.defaultMonth&&(t.defaultMonth=qn(t.defaultMonth,n)),t.startMonth&&(t.startMonth=qn(t.startMonth,n)),t.endMonth&&(t.endMonth=qn(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=qn(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=(An=t.selected)==null?void 0:An.map(Me=>qn(Me,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?qn(t.selected.from,n):t.selected.from,to:t.selected.to?qn(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=jf(t.disabled,n)),t.hidden!==void 0&&(t.hidden=jf(t.hidden,n)),t.modifiers)){const Me={};Object.keys(t.modifiers).forEach(ze=>{var we;Me[ze]=jf((we=t.modifiers)==null?void 0:we[ze],n)}),t.modifiers=Me}const{components:r,formatters:s,labels:i,dateLib:o,locale:a,classNames:l}=m.useMemo(()=>{const Me={...Sd,...t.locale},ze=t.broadcastCalendar?1:t.weekStartsOn,we=t.noonSafe&&t.timeZone?SJ(t.timeZone,{weekStartsOn:ze,locale:Me}):void 0,$e=t.dateLib&&we?{...we,...t.dateLib}:t.dateLib??we,Gt=new zn({locale:Me,weekStartsOn:ze,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},$e);return{dateLib:Gt,components:tJ(t.components),formatters:fJ(t.formatters),labels:vJ(t.labels,Gt.options),locale:Me,classNames:{...rJ(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:o.today()});const{captionLayout:c,mode:u,navLayout:d,numberOfMonths:h=1,onDayBlur:g,onDayClick:p,onDayFocus:v,onDayKeyDown:x,onDayMouseEnter:y,onDayMouseLeave:w,onNextClick:b,onPrevClick:C,showWeekNumber:_,styles:S}=t,{formatCaption:k,formatDay:T,formatMonthDropdown:M,formatWeekNumber:E,formatWeekNumberHeader:O,formatWeekdayName:A,formatYearDropdown:P}=s,L=IJ(t,o),{days:F,months:I,navStart:j,navEnd:$,previousMonth:N,nextMonth:z,goToMonth:B}=L,K=JQ(F,t,j,$,o),{isSelected:Q,select:re,selected:Y}=YJ(t,o)??{},{blur:ie,focused:X,isFocusTarget:he,moveFocus:je,setFocused:Te}=LJ(t,L,K,Q??(()=>!1),o),{labelDayButton:Ue,labelGridcell:Ae,labelGrid:D,labelMonthDropdown:V,labelNav:W,labelPrevious:H,labelNext:de,labelWeekday:J,labelWeekNumber:fe,labelWeekNumberHeader:ue,labelYearDropdown:me}=i,Bt=m.useMemo(()=>xJ(o,t.ISOWeek,t.broadcastCalendar,t.today),[o,t.ISOWeek,t.broadcastCalendar,t.today]),xt=u!==void 0||p!==void 0,pn=m.useCallback(()=>{N&&(B(N),C==null||C(N))},[N,B,C]),te=m.useCallback(()=>{z&&(B(z),b==null||b(z))},[B,z,b]),Ee=m.useCallback((Me,ze)=>we=>{we.preventDefault(),we.stopPropagation(),Te(Me),!ze.disabled&&(re==null||re(Me.date,ze,we),p==null||p(Me.date,ze,we))},[re,p,Te]),ht=m.useCallback((Me,ze)=>we=>{Te(Me),v==null||v(Me.date,ze,we)},[v,Te]),st=m.useCallback((Me,ze)=>we=>{ie(),g==null||g(Me.date,ze,we)},[ie,g]),It=m.useCallback((Me,ze)=>we=>{const $e={ArrowLeft:[we.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[we.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[we.shiftKey?"year":"week","after"],ArrowUp:[we.shiftKey?"year":"week","before"],PageUp:[we.shiftKey?"year":"month","before"],PageDown:[we.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if($e[we.key]){we.preventDefault(),we.stopPropagation();const[Gt,Ie]=$e[we.key];je(Gt,Ie)}x==null||x(Me.date,ze,we)},[je,x,t.dir]),zt=m.useCallback((Me,ze)=>we=>{y==null||y(Me.date,ze,we)},[y]),mt=m.useCallback((Me,ze)=>we=>{w==null||w(Me.date,ze,we)},[w]),Be=m.useCallback(Me=>ze=>{const we=Number(ze.target.value),$e=o.setMonth(o.startOfMonth(Me),we);B($e)},[o,B]),Et=m.useCallback(Me=>ze=>{const we=Number(ze.target.value),$e=o.setYear(o.startOfMonth(Me),we);B($e)},[o,B]),{className:Mr,style:wt}=m.useMemo(()=>({className:[l[ve.Root],t.className].filter(Boolean).join(" "),style:{...S==null?void 0:S[ve.Root],...t.style}}),[l,t.className,t.style,S]),Ut=nJ(t),_n=m.useRef(null);TJ(_n,!!t.animate,{classNames:l,months:I,focused:X,dateLib:o});const or={dayPickerProps:t,selected:Y,select:re,isSelected:Q,months:I,nextMonth:z,previousMonth:N,goToMonth:B,getModifiers:K,components:r,classNames:l,styles:S,labels:i,formatters:s};return q.createElement(yM.Provider,{value:or},q.createElement(r.Root,{rootRef:t.animate?_n:void 0,className:Mr,style:wt,dir:t.dir,id:t.id,lang:t.lang??a.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...Ut},q.createElement(r.Months,{className:l[ve.Months],style:S==null?void 0:S[ve.Months]},!t.hideNavigation&&!d&&q.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[ve.Nav],style:S==null?void 0:S[ve.Nav],"aria-label":W(),onPreviousClick:pn,onNextClick:te,previousMonth:N,nextMonth:z}),I.map((Me,ze)=>q.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:l[ve.Month],style:S==null?void 0:S[ve.Month],key:ze,displayIndex:ze,calendarMonth:Me},d==="around"&&!t.hideNavigation&&ze===0&&q.createElement(r.PreviousMonthButton,{type:"button",className:l[ve.PreviousMonthButton],tabIndex:N?void 0:-1,"aria-disabled":N?void 0:!0,"aria-label":H(N),onClick:pn,"data-animated-button":t.animate?"true":void 0},q.createElement(r.Chevron,{disabled:N?void 0:!0,className:l[ve.Chevron],orientation:t.dir==="rtl"?"right":"left"})),q.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[ve.MonthCaption],style:S==null?void 0:S[ve.MonthCaption],calendarMonth:Me,displayIndex:ze},c!=null&&c.startsWith("dropdown")?q.createElement(r.DropdownNav,{className:l[ve.Dropdowns],style:S==null?void 0:S[ve.Dropdowns]},(()=>{const we=c==="dropdown"||c==="dropdown-months"?q.createElement(r.MonthsDropdown,{key:"month",className:l[ve.MonthsDropdown],"aria-label":V(),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:Be(Me.date),options:yJ(Me.date,j,$,s,o),style:S==null?void 0:S[ve.Dropdown],value:o.getMonth(Me.date)}):q.createElement("span",{key:"month"},M(Me.date,o)),$e=c==="dropdown"||c==="dropdown-years"?q.createElement(r.YearsDropdown,{key:"year",className:l[ve.YearsDropdown],"aria-label":me(o.options),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:Et(Me.date),options:wJ(j,$,s,o,!!t.reverseYears),style:S==null?void 0:S[ve.Dropdown],value:o.getYear(Me.date)}):q.createElement("span",{key:"year"},P(Me.date,o));return o.getMonthYearOrder()==="year-first"?[$e,we]:[we,$e]})(),q.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},k(Me.date,o.options,o))):q.createElement(r.CaptionLabel,{className:l[ve.CaptionLabel],role:"status","aria-live":"polite"},k(Me.date,o.options,o))),d==="around"&&!t.hideNavigation&&ze===h-1&&q.createElement(r.NextMonthButton,{type:"button",className:l[ve.NextMonthButton],tabIndex:z?void 0:-1,"aria-disabled":z?void 0:!0,"aria-label":de(z),onClick:te,"data-animated-button":t.animate?"true":void 0},q.createElement(r.Chevron,{disabled:z?void 0:!0,className:l[ve.Chevron],orientation:t.dir==="rtl"?"left":"right"})),ze===h-1&&d==="after"&&!t.hideNavigation&&q.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[ve.Nav],style:S==null?void 0:S[ve.Nav],"aria-label":W(),onPreviousClick:pn,onNextClick:te,previousMonth:N,nextMonth:z}),q.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":u==="multiple"||u==="range","aria-label":D(Me.date,o.options,o)||void 0,className:l[ve.MonthGrid],style:S==null?void 0:S[ve.MonthGrid]},!t.hideWeekdays&&q.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[ve.Weekdays],style:S==null?void 0:S[ve.Weekdays]},_&&q.createElement(r.WeekNumberHeader,{"aria-label":ue(o.options),className:l[ve.WeekNumberHeader],style:S==null?void 0:S[ve.WeekNumberHeader],scope:"col"},O()),Bt.map(we=>q.createElement(r.Weekday,{"aria-label":J(we,o.options,o),className:l[ve.Weekday],key:String(we),style:S==null?void 0:S[ve.Weekday],scope:"col"},A(we,o.options,o)))),q.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[ve.Weeks],style:S==null?void 0:S[ve.Weeks]},Me.weeks.map(we=>q.createElement(r.Week,{className:l[ve.Week],key:we.weekNumber,style:S==null?void 0:S[ve.Week],week:we},_&&q.createElement(r.WeekNumber,{week:we,style:S==null?void 0:S[ve.WeekNumber],"aria-label":fe(we.weekNumber,{locale:a}),className:l[ve.WeekNumber],scope:"row",role:"rowheader"},E(we.weekNumber,o)),we.days.map($e=>{const{date:Gt}=$e,Ie=K($e);if(Ie[_t.focused]=!Ie.hidden&&!!(X!=null&&X.isEqualTo($e)),Ie[hr.selected]=(Q==null?void 0:Q(Gt))||Ie.selected,_d(Y)){const{from:la,to:ui}=Y;Ie[hr.range_start]=!!(la&&ui&&o.isSameDay(Gt,la)),Ie[hr.range_end]=!!(la&&ui&&o.isSameDay(Gt,ui)),Ie[hr.range_middle]=us(Y,Gt,!0,o)}const Td=bJ(Ie,S,t.modifiersStyles),Md=eJ(Ie,l,t.modifiersClassNames),Ed=!xt&&!Ie.hidden?Ae(Gt,Ie,o.options,o):void 0;return q.createElement(r.Day,{key:`${$e.isoDate}_${$e.displayMonthId}`,day:$e,modifiers:Ie,className:Md.join(" "),style:Td,role:"gridcell","aria-selected":Ie.selected||void 0,"aria-label":Ed,"data-day":$e.isoDate,"data-month":$e.outside?$e.dateMonthId:void 0,"data-selected":Ie.selected||void 0,"data-disabled":Ie.disabled||void 0,"data-hidden":Ie.hidden||void 0,"data-outside":$e.outside||void 0,"data-focused":Ie.focused||void 0,"data-today":Ie.today||void 0},!Ie.hidden&&xt?q.createElement(r.DayButton,{className:l[ve.DayButton],style:S==null?void 0:S[ve.DayButton],type:"button",day:$e,modifiers:Ie,disabled:!Ie.focused&&Ie.disabled||void 0,"aria-disabled":Ie.focused&&Ie.disabled||void 0,tabIndex:he($e)?0:-1,"aria-label":Ue(Gt,Ie,o.options,o),onClick:Ee($e,Ie),onBlur:st($e,Ie),onFocus:ht($e,Ie),onKeyDown:It($e,Ie),onMouseEnter:zt($e,Ie),onMouseLeave:mt($e,Ie)},T(Gt,o.options,o)):!Ie.hidden&&T($e.date,o.options,o))})))))))),t.footer&&q.createElement(r.Footer,{className:l[ve.Footer],style:S==null?void 0:S[ve.Footer],role:"status","aria-live":"polite"},t.footer)))}var HJ=()=>f.jsx("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeDasharray:"3.7677",strokeDashoffset:"3.2",strokeWidth:"1",children:f.jsx("path",{d:"M29.5,0.5 h-27 a2,2 0 0 0 -2,2 v27 a2,2 0 0 0 2,2 h27 a2,2 0 0 0 2,-2 v-27 a2,2 0 0 0 -2,-2"})}),UJ=()=>f.jsx("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeDasharray:"3.84516",strokeDashoffset:"1.9226",strokeWidth:"1",children:f.jsx("path",{d:"M32,0.5 h-29.5 a2,2 0 0 0 -2,2 v27 a2,2 0 0 0 2,2 h30"})}),GJ=()=>f.jsxs("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeDasharray:"3.9 4",strokeDashoffset:"2",strokeWidth:"1",children:[f.jsx("line",{x1:"0",y1:"0.5",x2:"100",y2:"0.5"}),f.jsx("line",{x1:"0",y1:"31.5",x2:"100",y2:"31.5"})]}),qJ=()=>f.jsx("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeDasharray:"3.84516",strokeDashoffset:"1.9226",strokeWidth:"1",children:f.jsx("path",{d:"M0,0.5 h29.5 a2,2 0 0 1 2,2 v27 a2,2 0 0 1 -2,2 h-29.5"})});function KJ(e){const{day:t,modifiers:n,children:r,...s}=e;let i;return n.preview_start&&n.preview_end?i=HJ:n.preview_start?i=UJ:n.preview_end?i=qJ:n.preview&&(i=GJ),f.jsxs("td",{...s,children:[i&&f.jsx(i,{}),r]})}var XJ={root:"components-calendar",day:"components-calendar__day",day_button:"components-calendar__day-button",caption_label:"components-calendar__caption-label",button_next:"components-calendar__button-next",button_previous:"components-calendar__button-previous",chevron:"components-calendar__chevron",nav:"components-calendar__nav",month_caption:"components-calendar__month-caption",months:"components-calendar__months",month_grid:"components-calendar__month-grid",weekday:"components-calendar__weekday",today:"components-calendar__day--today",selected:"components-calendar__day--selected",disabled:"components-calendar__day--disabled",hidden:"components-calendar__day--hidden",range_start:"components-calendar__range-start",range_end:"components-calendar__range-end",range_middle:"components-calendar__range-middle",weeks_before_enter:"components-calendar__weeks-before-enter",weeks_before_exit:"components-calendar__weeks-before-exit",weeks_after_enter:"components-calendar__weeks-after-enter",weeks_after_exit:"components-calendar__weeks-after-exit",caption_after_enter:"components-calendar__caption-after-enter",caption_after_exit:"components-calendar__caption-after-exit",caption_before_enter:"components-calendar__caption-before-enter",caption_before_exit:"components-calendar__caption-before-exit"},ZJ={preview:"components-calendar__day--preview",preview_start:"components-calendar__day--preview-start",preview_end:"components-calendar__day--preview-end"},IM={animate:!0,showOutsideDays:!1,showWeekNumber:!1,hideWeekdays:!1,captionLayout:"label",fixedWeeks:!1,hideNavigation:!1,classNames:XJ,role:"application",components:{Day:KJ}};function NM(e){return Math.min(3,Math.max(1,e))}function QJ(e){const t=new Intl.Locale(e);return"getTextInfo"in t?t.getTextInfo().direction==="rtl":["ar","he","fa","ur","ps","syr","dv","ku","yi"].includes(t.language)}var FM=({locale:e,timeZone:t,mode:n})=>m.useMemo(()=>{const r=new Intl.DateTimeFormat(e.code,{year:"numeric",month:"long",timeZone:t}),s=new Intl.DateTimeFormat(e.code,{weekday:"narrow",timeZone:t}),i=new Intl.DateTimeFormat(e.code,{weekday:"long",timeZone:t}),o=new Intl.DateTimeFormat(e.code,{weekday:"long",year:"numeric",month:"long",day:"numeric",timeZone:t});return{"aria-label":R(n==="single"?"Date calendar":"Date range calendar"),labels:{labelGrid:a=>r.format(a),labelGridcell:(a,l)=>{const c=o.format(a);let u=c;return l!=null&&l.today&&(u=Oe(R("Today, %s"),c)),u},labelNext:()=>R("Go to the Next Month"),labelPrevious:()=>R("Go to the Previous Month"),labelDayButton:(a,l)=>{const c=o.format(a);let u=c;return l!=null&&l.today&&(u=Oe(R("Today, %s"),c)),l!=null&&l.selected&&(u=Oe(R("%s, selected"),c)),u},labelWeekday:a=>i.format(a)},locale:e,dir:QJ(e.code)?"rtl":"ltr",formatters:{formatWeekdayName:a=>s.format(a),formatCaption:a=>r.format(a)},timeZone:t}},[e,t,n]),JJ=({defaultSelected:e,selected:t,onSelect:n,numberOfMonths:r=1,locale:s=Sd,timeZone:i,...o})=>{const a=FM({locale:s,timeZone:i,mode:"single"}),l=m.useCallback((d,h,g,p)=>{n==null||n(d??void 0,h,g,p)},[n]),[c,u]=Al({defaultValue:e,value:t,onChange:l});return f.jsx(jM,{...IM,...a,...o,mode:"single",numberOfMonths:NM(r),selected:c??void 0,onSelect:u})};function eee({selected:e,hoveredDate:t,excludeDisabled:n,min:r,max:s,disabled:i}){return m.useMemo(()=>{if(!t||!(e!=null&&e.from))return;let o,a;if(t<e.from){var l;o={from:t,to:e.from},a={from:t,to:(l=e.to)!==null&&l!==void 0?l:e.from}}else if(e.to&&t>e.from&&t<e.to)o={from:e.from,to:t},a={from:e.from,to:t};else if(t>e.from){var c;o={from:(c=e.to)!==null&&c!==void 0?c:e.from,to:t},a={from:e.from,to:t}}return r!==void 0&&r>0&&a&&Fh(a.to,a.from)<r&&(o={from:t,to:t}),s!==void 0&&s>0&&a&&Fh(a.to,a.from)>s&&(o={from:t,to:t}),n&&i&&a&&RM(a,i)&&(o={from:t,to:t}),o},[e,t,n,r,s,i])}var tee=({defaultSelected:e,selected:t,onSelect:n,numberOfMonths:r=1,excludeDisabled:s,min:i,max:o,disabled:a,locale:l=Sd,timeZone:c,...u})=>{const d=FM({locale:l,timeZone:c,mode:"range"}),h=m.useCallback((b,C,_,S)=>{n==null||n(b??void 0,C,_,S)},[n]),[g,p]=Al({defaultValue:e,value:t,onChange:h}),[v,x]=m.useState(void 0),y=eee({selected:g,hoveredDate:v,excludeDisabled:s,min:i,max:o,disabled:a}),w=m.useMemo(()=>({preview:y,preview_start:y==null?void 0:y.from,preview_end:y==null?void 0:y.to}),[y]);return f.jsx(jM,{...IM,...d,...u,mode:"range",numberOfMonths:NM(r),disabled:a,excludeDisabled:s,min:i,max:o,selected:g??void 0,onSelect:p,onDayMouseEnter:b=>x(b),onDayMouseLeave:()=>x(void 0),modifiers:w,modifiersClassNames:ZJ})};function px({type:e,message:t}){const n={valid:dC,invalid:uC};return f.jsxs("p",{className:ge("components-validated-control__indicator",`is-${e}`),children:[e==="validating"?f.jsx(ws,{className:"components-validated-control__indicator-spinner"}):f.jsx(Zt,{className:"components-validated-control__indicator-icon",icon:n[e],size:16,fill:"currentColor"}),t]})}function nee(e,t,n){return t&&!n?f.jsxs(f.Fragment,{children:[e," ",`(${R("Required")})`]}):!t&&n?f.jsxs(f.Fragment,{children:[e," ",`(${R("Optional")})`]}):e}function ree({required:e,markWhenOptional:t,onValidate:n,customValidity:r,getValidityTarget:s,children:i},o){const[a,l]=m.useState(),[c,u]=m.useState(),[d,h]=m.useState(!1),g=Wa(r==null?void 0:r.type);m.useEffect(()=>{const y=s(),w=()=>l(y==null?void 0:y.validationMessage);return y==null||y.addEventListener("invalid",w),()=>{y==null||y.removeEventListener("invalid",w)}}),m.useEffect(()=>{if(!d)return;const y=s();if(!(r!=null&&r.type)){y==null||y.setCustomValidity(""),l(y==null?void 0:y.validationMessage),u(void 0);return}switch(r.type){case"validating":{const b=setTimeout(()=>{y==null||y.setCustomValidity(""),l(void 0),u({type:"validating",message:r.message})},1e3);return()=>clearTimeout(b)}case"valid":{if(g==="valid")break;y==null||y.setCustomValidity(""),l(y==null?void 0:y.validationMessage),u({type:"valid",message:r.message});break}case"invalid":{var w;y==null||y.setCustomValidity((w=r.message)!==null&&w!==void 0?w:""),l(y==null?void 0:y.validationMessage),u(void 0);break}}},[d,r==null?void 0:r.type,r==null?void 0:r.message,s,g]);const p=y=>{d||(!y.relatedTarget||!y.currentTarget.contains(y.relatedTarget))&&(h(!0),n==null||n())},v=(...y)=>{var w,b;(b=(w=i.props).onChange)==null||b.call(w,...y),(d||a)&&(n==null||n())},x=y=>{y.key==="Enter"&&(n==null||n())};return f.jsxs("div",{className:"components-validated-control",ref:o,onBlur:p,onKeyDown:Wl(x),children:[m.cloneElement(i,{label:nee(i.props.label,e,t),onChange:v,required:e}),f.jsxs("div",{"aria-live":"polite",children:[a&&f.jsx(px,{type:"invalid",message:a}),!a&&c&&f.jsx(px,{type:c.type,message:c.message})]})]})}var Zr=m.forwardRef(ree),see=({required:e,onValidate:t,customValidity:n,onChange:r,markWhenOptional:s,...i},o)=>{const a=m.useRef(null),l=$t([o,a]),c=m.useRef(i.checked);return f.jsx(Zr,{required:e,markWhenOptional:s,ref:l,onValidate:()=>t==null?void 0:t(c.current),customValidity:n,getValidityTarget:()=>{var u;return(u=a.current)==null?void 0:u.querySelector('input[type="checkbox"]')},children:f.jsx(ad,{__nextHasNoMarginBottom:!0,onChange:u=>{c.current=u,r==null||r(u)},...i})})},iee=m.forwardRef(see),oee=({required:e,onValidate:t,customValidity:n,onChange:r,markWhenOptional:s,...i},o)=>{const a=m.useRef(null),l=m.useRef(i.value);return f.jsxs("div",{className:"components-validated-control__wrapper-with-error-delegate",ref:o,children:[f.jsx(Zr,{required:e,markWhenOptional:s,onValidate:()=>t==null?void 0:t(l.current),customValidity:n,getValidityTarget:()=>a.current,children:f.jsx(Ip,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,...i,onChange:(c,...u)=>{l.current=c,r==null||r(c,...u)}})}),f.jsx("input",{className:"components-validated-control__error-delegate",type:"text",ref:a,required:e,value:l.current&&l.current.length>0?"hasvalue":"",tabIndex:-1,onChange:()=>{},onFocus:c=>{var u,d;(d=(u=c.target.previousElementSibling)==null?void 0:u.querySelector('input[type="text"]'))==null||d.focus()}})]})},aee=m.forwardRef(oee),lee=({required:e,onValidate:t,customValidity:n,onChange:r,markWhenOptional:s,...i},o)=>{const a=m.useRef(null),l=$t([o,a]),c=m.useRef(i.value);return f.jsx(Zr,{required:e,markWhenOptional:s,onValidate:()=>t==null?void 0:t(c.current),customValidity:n,getValidityTarget:()=>a.current,children:f.jsx(Io,{__next40pxDefaultSize:!0,ref:l,onChange:(u,...d)=>{c.current=u,r==null||r(u,...d)},...i})})},cee=m.forwardRef(lee),uee=({required:e,onValidate:t,customValidity:n,onChange:r,markWhenOptional:s,...i},o)=>{const a=m.useRef(null),l=$t([o,a]),c=m.useRef(i.value);return f.jsx(Zr,{required:e,markWhenOptional:s,onValidate:()=>t==null?void 0:t(c.current),customValidity:n,getValidityTarget:()=>a.current,children:f.jsx(xs,{__next40pxDefaultSize:!0,ref:l,onChange:(u,...d)=>{c.current=u,r==null||r(u,...d)},...i})})},dee=m.forwardRef(uee),fee=({required:e,onValidate:t,customValidity:n,onChange:r,markWhenOptional:s,...i},o)=>{const a=m.useRef(null),l=$t([o,a]),c=m.useRef(i.selected);return f.jsx(Zr,{required:e,markWhenOptional:s,ref:l,onValidate:()=>t==null?void 0:t(c.current),customValidity:n,getValidityTarget:()=>{var u;return(u=a.current)==null?void 0:u.querySelector('input[type="radio"]')},children:f.jsx(KT,{onChange:u=>{c.current=u,r==null||r(u)},...i})})},hee=m.forwardRef(fee),mee=({required:e,onValidate:t,customValidity:n,onChange:r,markWhenOptional:s,...i},o)=>{const a=m.useRef(null),l=$t([o,a]),c=m.useRef(i.value);return f.jsx(Zr,{required:e,markWhenOptional:s,onValidate:()=>t==null?void 0:t(c.current),customValidity:n,getValidityTarget:()=>a.current,children:f.jsx(zi,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,ref:l,onChange:u=>{c.current=u,r==null||r(u)},...i})})},gee=m.forwardRef(mee),pee=({required:e,onValidate:t,customValidity:n,onChange:r,markWhenOptional:s,...i},o)=>{const a=m.useRef(null),l=$t([o,a]),c=m.useRef(i.value);return f.jsx(Zr,{required:e,markWhenOptional:s,onValidate:()=>t==null?void 0:t(c.current),customValidity:n,getValidityTarget:()=>a.current,children:f.jsx(HK,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,ref:l,onChange:u=>{c.current=u,r==null||r(u)},...i})})},vee=m.forwardRef(pee),yee=({required:e,onValidate:t,customValidity:n,onChange:r,markWhenOptional:s,...i},o)=>{const a=m.useRef(null),l=$t([o,a]),c=m.useRef(i.value);return f.jsx(Zr,{required:e,markWhenOptional:s,onValidate:()=>t==null?void 0:t(c.current),customValidity:n,getValidityTarget:()=>a.current,children:f.jsx(XK,{__nextHasNoMarginBottom:!0,ref:l,onChange:u=>{c.current=u,r==null||r(u)},...i})})},bee=m.forwardRef(yee),xee=({required:e,onValidate:t,customValidity:n,onChange:r,markWhenOptional:s,...i},o)=>{const a=m.useRef(null),l=$t([o,a]),c=m.useRef(i.checked);return m.useEffect(()=>{a.current&&(a.current.required=e??!1)},[e]),f.jsx(Zr,{required:e,markWhenOptional:s,onValidate:()=>t==null?void 0:t(c.current),customValidity:n,getValidityTarget:()=>a.current,children:f.jsx(JT,{__nextHasNoMarginBottom:!0,ref:l,onChange:u=>{c.current=u,r==null||r(u)},...i})})},wee=m.forwardRef(xee),See=({required:e,onValidate:t,customValidity:n,onChange:r,markWhenOptional:s,...i},o)=>{const a=m.useRef(null),l=m.useRef(i.value),c=m.useId();return f.jsxs("div",{className:"components-validated-control__wrapper-with-error-delegate",children:[f.jsx(Zr,{required:e,markWhenOptional:s,onValidate:()=>t==null?void 0:t(l.current),customValidity:n,getValidityTarget:()=>a.current,children:f.jsx(na,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,ref:o,onChange:u=>{l.current=u,r==null||r(u)},...i})}),f.jsx("input",{className:"components-validated-control__error-delegate",type:"radio",ref:a,required:e,checked:i.value!==void 0,tabIndex:-1,name:c,onChange:()=>{},onFocus:u=>{var d,h;(h=(d=u.target.previousElementSibling)==null?void 0:d.querySelector('[data-active-item="true"]'))==null||h.focus()}})]})},_ee=m.forwardRef(See),ir={};qX(ir,{__experimentalPopoverLegacyPositionToPlacement:Ou,ComponentsContext:Hu,Tabs:GX,Theme:IX,Menu:CX,kebabCase:b6,withIgnoreIMEEvents:Wl,Badge:ZX,normalizeTextString:y6,DateCalendar:JJ,DateRangeCalendar:tee,TZDate:rn,Picker:UH,ValidatedInputControl:cee,ValidatedCheckboxControl:iee,ValidatedNumberControl:dee,ValidatedSelectControl:gee,ValidatedRadioControl:hee,ValidatedTextControl:vee,ValidatedTextareaControl:bee,ValidatedToggleControl:wee,ValidatedToggleGroupControl:_ee,ValidatedFormTokenField:aee});const Cee=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})}),kee=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})}),Tee=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})}),Mee=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M12 3.9 6.5 9.5l1 1 3.8-3.7V20h1.5V6.8l3.7 3.7 1-1z"})}),Eee=f.jsx(Re,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:f.jsx(Le,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})}),vx=f.jsx(Re,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:f.jsx(Le,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})}),Oee=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})}),Dee=f.jsx(Re,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:f.jsx(Le,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),Pee=f.jsx(Re,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:f.jsx(Le,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),LM=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})}),Aee=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"})}),Ree=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}),jee=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})}),$M=f.jsx(Re,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:f.jsx(Le,{d:"M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z"})}),Iee=f.jsx(Re,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:f.jsx(Le,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"})}),Qp=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})}),yx=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})}),bx=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})}),Nee=f.jsx(Re,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:f.jsx(Le,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})}),Fee=f.jsx(Re,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:f.jsx(Le,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"})}),VM=f.jsx(Re,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:f.jsx(Le,{d:"M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z"})}),Qn="is",Jn="isNot",er="isAny",tr="isNone",ai="isAll",li="isNotAll",Bo="lessThan",zo="greaterThan",Yo="lessThanOrEqual",Ho="greaterThanOrEqual",Qs="before",Js="after",ei="beforeInc",ti="afterInc",Hi="contains",Ui="notContains",Gi="startsWith",vn="between",ni="on",ri="notOn",wr="inThePast",Sr="over",Jp=[Qn,Jn,er,tr,ai,li,Bo,zo,Yo,Ho,Qs,Js,ei,ti,Hi,Ui,Gi,vn,ni,ri,wr,Sr],Qh=[Qn,Jn,Bo,zo,Yo,Ho,Qs,Js,ei,ti,Hi,Ui,Gi,ni,ri],Lee={[Qn]:{key:"is-filter",label:R("Is")},[Jn]:{key:"is-not-filter",label:R("Is not")},[er]:{key:"is-any-filter",label:R("Is any")},[tr]:{key:"is-none-filter",label:R("Is none")},[ai]:{key:"is-all-filter",label:R("Is all")},[li]:{key:"is-not-all-filter",label:R("Is not all")},[Bo]:{key:"less-than-filter",label:R("Less than")},[zo]:{key:"greater-than-filter",label:R("Greater than")},[Yo]:{key:"less-than-or-equal-filter",label:R("Less than or equal")},[Ho]:{key:"greater-than-or-equal-filter",label:R("Greater than or equal")},[Qs]:{key:"before-filter",label:R("Before")},[Js]:{key:"after-filter",label:R("After")},[ei]:{key:"before-inc-filter",label:R("Before (inc)")},[ti]:{key:"after-inc-filter",label:R("After (inc)")},[Hi]:{key:"contains-filter",label:R("Contains")},[Ui]:{key:"not-contains-filter",label:R("Doesn't contain")},[Gi]:{key:"starts-with-filter",label:R("Starts with")},[vn]:{key:"between-filter",label:R("Between (inc)")},[ni]:{key:"on-filter",label:R("On")},[ri]:{key:"not-on-filter",label:R("Not on")},[wr]:{key:"in-the-past-filter",label:R("In the past")},[Sr]:{key:"over-filter",label:R("Over")}},WM=["asc","desc"],$ee={asc:"↑",desc:"↓"},Vee={asc:"ascending",desc:"descending"},BM={asc:R("Sort ascending"),desc:R("Sort descending")},Wee={asc:Mee,desc:Cee},ev="table",zM="grid",Bee="list",zee="pickerGrid",ft=m.createContext({view:{type:ev},onChangeView:()=>{},fields:[],data:[],paginationInfo:{totalItems:0,totalPages:0},selection:[],onChangeSelection:()=>{},setOpenedFilter:()=>{},openedFilter:null,getItemId:e=>e.id,isItemClickable:()=>!0,renderItemLink:void 0,containerWidth:0,containerRef:m.createRef(),resizeObserverRef:()=>{},defaultLayouts:{list:{},grid:{},table:{}},filters:[],isShowingFilter:!1,setIsShowingFilter:()=>{},hasInfiniteScrollHandler:!1,config:{perPageSizes:[]}});ft.displayName="DataViewsContext";function tv({selection:e,onChangeSelection:t,item:n,getItemId:r,titleField:s,disabled:i,...o}){var u;const a=r(n),l=!i&&e.includes(a),c=((u=s==null?void 0:s.getValue)==null?void 0:u.call(s,{item:n}))||R("(no title)");return f.jsx(ad,{className:"dataviews-selection-checkbox",__nextHasNoMarginBottom:!0,"aria-label":c,"aria-disabled":i,checked:l,onChange:()=>{i||t(e.includes(a)?e.filter(d=>a!==d):[...e,a])},...o})}const{unlock:Tr}=ep("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/dataviews"),{Menu:So,kebabCase:Yee}=Tr(ir);function Hee({action:e,onClick:t,items:n}){const r=typeof e.label=="string"?e.label:e.label(n);return f.jsx(Je,{label:r,icon:e.icon,disabled:!!e.disabled,accessibleWhenDisabled:!0,isDestructive:e.isDestructive,size:"compact",onClick:t})}function Uee({action:e,onClick:t,items:n}){const r=typeof e.label=="string"?e.label:e.label(n);return f.jsx(So.Item,{disabled:e.disabled,onClick:t,children:f.jsx(So.ItemLabel,{children:r})})}function Xl({action:e,items:t,closeModal:n}){var r;const s=typeof e.label=="string"?e.label:e.label(t);return f.jsx(qU,{title:e.modalHeader||s,__experimentalHideHeader:!!e.hideModalHeader,onRequestClose:n,focusOnMount:(r=e.modalFocusOnMount)!==null&&r!==void 0?r:!0,size:e.modalSize||"medium",overlayClassName:`dataviews-action-modal dataviews-action-modal__${Yee(e.id)}`,children:f.jsx(e.RenderModal,{items:t,closeModal:n})})}function YM({actions:e,item:t,registry:n,setActiveModalAction:r}){return f.jsx(So.Group,{children:e.map(s=>f.jsx(Uee,{action:s,onClick:()=>{if("RenderModal"in s){r(s);return}s.callback([t],{registry:n})},items:[t]},s.id))})}function Jh({item:e,actions:t,isCompact:n}){const r=od(),{primaryActions:s,eligibleActions:i}=m.useMemo(()=>{const o=t.filter(l=>!l.isEligible||l.isEligible(e));return{primaryActions:o.filter(l=>l.isPrimary&&!!l.icon),eligibleActions:o}},[t,e]);return n?f.jsx(xx,{item:e,actions:i,isSmall:!0,registry:r}):f.jsxs(Ve,{spacing:1,justify:"flex-end",className:"dataviews-item-actions",style:{flexShrink:0,width:"auto"},children:[f.jsx(Gee,{item:e,actions:s,registry:r}),s.length<i.length&&f.jsx(xx,{item:e,actions:i,registry:r})]})}function xx({item:e,actions:t,isSmall:n,registry:r}){const[s,i]=m.useState(null);return f.jsxs(f.Fragment,{children:[f.jsxs(So,{placement:"bottom-end",children:[f.jsx(So.TriggerButton,{render:f.jsx(Je,{size:n?"small":"compact",icon:Qp,label:R("Actions"),accessibleWhenDisabled:!0,disabled:!t.length,className:"dataviews-all-actions-button"})}),f.jsx(So.Popover,{children:f.jsx(YM,{actions:t,item:e,registry:r,setActiveModalAction:i})})]}),!!s&&f.jsx(Xl,{action:s,items:[e],closeModal:()=>i(null)})]})}function Gee({item:e,actions:t,registry:n}){const[r,s]=m.useState(null);return!Array.isArray(t)||t.length===0?null:f.jsxs(f.Fragment,{children:[t.map(i=>f.jsx(Hee,{action:i,onClick:()=>{if("RenderModal"in i){s(i);return}i.callback([e],{registry:n})},items:[e]},i.id)),!!r&&f.jsx(Xl,{action:r,items:[e],closeModal:()=>s(null)})]})}function qee({action:e,items:t,ActionTriggerComponent:n}){const[r,s]=m.useState(!1),i={action:e,onClick:()=>{s(!0)},items:t};return f.jsxs(f.Fragment,{children:[f.jsx(n,{...i}),r&&f.jsx(Xl,{action:e,items:t,closeModal:()=>s(!1)})]})}function HM(e,t){return m.useMemo(()=>e.some(n=>n.supportsBulk&&(!n.isEligible||n.isEligible(t))),[e,t])}function nv(e,t){return m.useMemo(()=>t.some(n=>e.some(r=>r.supportsBulk&&(!r.isEligible||r.isEligible(n)))),[e,t])}function UM({selection:e,onChangeSelection:t,data:n,actions:r,getItemId:s}){const i=m.useMemo(()=>n.filter(l=>r.some(c=>c.supportsBulk&&(!c.isEligible||c.isEligible(l)))),[n,r]),o=n.filter(l=>e.includes(s(l))&&i.includes(l)),a=o.length===i.length;return f.jsx(ad,{className:"dataviews-view-table-selection-checkbox",__nextHasNoMarginBottom:!0,checked:a,indeterminate:!a&&!!o.length,onChange:()=>{t(a?[]:i.map(l=>s(l)))},"aria-label":R(a?"Deselect all":"Select all")})}function wx({action:e,onClick:t,isBusy:n,items:r}){const s=typeof e.label=="string"?e.label:e.label(r);return f.jsx(Je,{disabled:n,accessibleWhenDisabled:!0,label:s,icon:e.icon,isDestructive:e.isDestructive,size:"compact",onClick:t,isBusy:n,tooltipPosition:"top"})}const GM=[];function Kee({action:e,selectedItems:t,actionInProgress:n,setActionInProgress:r}){const s=od(),i=m.useMemo(()=>t.filter(o=>!e.isEligible||e.isEligible(o)),[e,t]);return"RenderModal"in e?f.jsx(qee,{action:e,items:i,ActionTriggerComponent:wx},e.id):f.jsx(wx,{action:e,onClick:async()=>{r(e.id),await e.callback(t,{registry:s}),r(null)},items:i,isBusy:n===e.id},e.id)}function Sx(e,t,n,r,s,i,o,a,l){const c=i.length>0?Oe(Wf("%d Item selected","%d Items selected",i.length),i.length):Oe(Wf("%d Item","%d Items",e.length),e.length);return f.jsxs(Ve,{expanded:!1,className:"dataviews-bulk-actions-footer__container",spacing:3,children:[f.jsx(UM,{selection:r,onChangeSelection:l,data:e,actions:t,getItemId:n}),f.jsx("span",{className:"dataviews-bulk-actions-footer__item-count",children:c}),f.jsxs(Ve,{className:"dataviews-bulk-actions-footer__action-buttons",expanded:!1,spacing:1,children:[s.map(u=>f.jsx(Kee,{action:u,selectedItems:i,actionInProgress:o,setActionInProgress:a},u.id)),i.length>0&&f.jsx(Je,{icon:LM,showTooltip:!0,tooltipPosition:"top",size:"compact",label:R("Cancel"),disabled:!!o,accessibleWhenDisabled:!1,onClick:()=>{l(GM)}})]})]})}function Xee({selection:e,actions:t,onChangeSelection:n,data:r,getItemId:s}){const[i,o]=m.useState(null),a=m.useRef(null),l=m.useMemo(()=>t.filter(h=>h.supportsBulk),[t]),c=m.useMemo(()=>r.filter(h=>l.some(g=>!g.isEligible||g.isEligible(h))),[r,l]),u=m.useMemo(()=>r.filter(h=>e.includes(s(h))&&c.includes(h)),[e,r,s,c]),d=m.useMemo(()=>t.filter(h=>h.supportsBulk&&h.icon&&u.some(g=>!h.isEligible||h.isEligible(g))),[t,u]);if(i)a.current||(a.current=Sx(r,t,s,e,d,u,i,o,n));else return a.current&&(a.current=null),Sx(r,t,s,e,d,u,i,o,n);return a.current}function qM(){const{data:e,selection:t,actions:n=GM,onChangeSelection:r,getItemId:s}=m.useContext(ft);return f.jsx(Xee,{selection:t,onChangeSelection:r,data:e,actions:n,getItemId:s})}const{Menu:en}=Tr(ir);function Zee({children:e}){return m.Children.toArray(e).filter(Boolean).map((t,n)=>f.jsxs(m.Fragment,{children:[n>0&&f.jsx(en.Separator,{}),t]},n))}const Qee=m.forwardRef(function({fieldId:t,view:n,fields:r,onChangeView:s,onHide:i,setOpenedFilter:o,canMove:a=!0},l){var b,C,_,S,k;var c;const u=(c=n.fields)!==null&&c!==void 0?c:[],d=u==null?void 0:u.indexOf(t),h=((b=n.sort)==null?void 0:b.field)===t;let g=!1,p=!1,v=!1,x=[];const y=r.find(T=>T.id===t);if(!y)return null;g=y.enableHiding!==!1,p=y.enableSorting!==!1;const w=y.header;return x=!!y.filterBy&&((C=y.filterBy)==null?void 0:C.operators)||[],v=!((_=n.filters)!=null&&_.some(T=>t===T.field))&&!!((S=y.elements)!=null&&S.length||y.Edit)&&y.filterBy!==!1&&!((k=y.filterBy)!=null&&k.isPrimary),!p&&!a&&!g&&!v?w:f.jsxs(en,{children:[f.jsxs(en.TriggerButton,{render:f.jsx(Je,{size:"compact",className:"dataviews-view-table-header-button",ref:l,variant:"tertiary"}),children:[w,n.sort&&h&&f.jsx("span",{"aria-hidden":"true",children:$ee[n.sort.direction]})]}),f.jsx(en.Popover,{style:{minWidth:"240px"},children:f.jsxs(Zee,{children:[p&&f.jsx(en.Group,{children:WM.map(T=>{const M=n.sort&&h&&n.sort.direction===T,E=`${t}-${T}`;return f.jsx(en.RadioItem,{name:"view-table-sorting",value:E,checked:M,onChange:()=>{s({...n,sort:{field:t,direction:T},showLevels:!1})},children:f.jsx(en.ItemLabel,{children:BM[T]})},E)})}),v&&f.jsx(en.Group,{children:f.jsx(en.Item,{prefix:f.jsx(Zt,{icon:$M}),onClick:()=>{o(t),s({...n,page:1,filters:[...n.filters||[],{field:t,value:void 0,operator:x[0]}]})},children:f.jsx(en.ItemLabel,{children:R("Add filter")})})}),(a||g)&&y&&f.jsxs(en.Group,{children:[a&&f.jsx(en.Item,{prefix:f.jsx(Zt,{icon:kee}),disabled:d<1,onClick:()=>{var T;s({...n,fields:[...(T=u.slice(0,d-1))!==null&&T!==void 0?T:[],t,u[d-1],...u.slice(d+1)]})},children:f.jsx(en.ItemLabel,{children:R("Move left")})}),a&&f.jsx(en.Item,{prefix:f.jsx(Zt,{icon:Tee}),disabled:d>=u.length-1,onClick:()=>{var T;s({...n,fields:[...(T=u.slice(0,d))!==null&&T!==void 0?T:[],u[d+1],t,...u.slice(d+2)]})},children:f.jsx(en.ItemLabel,{children:R("Move right")})}),g&&y&&f.jsx(en.Item,{prefix:f.jsx(Zt,{icon:VM}),onClick:()=>{i(y),s({...n,fields:u.filter(T=>T!==t)})},children:f.jsx(en.ItemLabel,{children:R("Hide column")})})]})]})})]})}),_x=Qee;function Jee({item:e,isItemClickable:t,onClickItem:n,className:r}){return!t(e)||!n?{className:r}:{className:r?`${r} ${r}--clickable`:void 0,role:"button",tabIndex:0,onClick:s=>{s.stopPropagation(),n(e)},onKeyDown:s=>{(s.key==="Enter"||s.key===""||s.key===" ")&&(s.stopPropagation(),n(e))}}}function cu({item:e,isItemClickable:t,onClickItem:n,renderItemLink:r,className:s,children:i,...o}){if(!t(e))return i;if(r)return r({item:e,className:`${s} ${s}--clickable`,...o,children:i});const a=Jee({item:e,isItemClickable:t,onClickItem:n,className:s});return f.jsx("div",{...a,...o,children:i})}function ete({item:e,level:t,titleField:n,mediaField:r,descriptionField:s,onClickItem:i,renderItemLink:o,isItemClickable:a}){var l;return f.jsxs(Ve,{spacing:3,justify:"flex-start",children:[r&&f.jsx(cu,{item:e,isItemClickable:a,onClickItem:i,renderItemLink:o,className:"dataviews-view-table__cell-content-wrapper dataviews-column-primary__media","aria-label":n?Oe(R("Click item: %s"),(l=n.getValue)==null?void 0:l.call(n,{item:e})):void 0,children:f.jsx(r.render,{item:e,field:r,config:{sizes:"32px"}})}),f.jsxs(Rt,{spacing:0,alignment:"flex-start",className:"dataviews-view-table__primary-column-content",children:[n&&f.jsxs(cu,{item:e,isItemClickable:a,onClickItem:i,renderItemLink:o,className:"dataviews-view-table__cell-content-wrapper dataviews-title-field",children:[t!==void 0&&t>0&&f.jsxs("span",{className:"dataviews-view-table__level",children:["—".repeat(t)," "]}),f.jsx(n.render,{item:e,field:n})]}),s&&f.jsx(s.render,{item:e,field:s})]})]})}const tte=e=>bn()?Math.abs(e.scrollLeft)<=1:e.scrollLeft+e.clientWidth>=e.scrollWidth-1;function nte({scrollContainerRef:e,enabled:t=!1}){const[n,r]=m.useState(!1),s=dm(m.useCallback(()=>{const i=e.current;i&&r(tte(i))},[e,r]),200);return m.useEffect(()=>typeof window>"u"||!t||!e.current?()=>{}:(s(),e.current.addEventListener("scroll",s),window.addEventListener("resize",s),()=>{var i;(i=e.current)==null||i.removeEventListener("scroll",s),window.removeEventListener("resize",s)}),[e,t]),n}function rte({item:e,fields:t,column:n,align:r}){const s=t.find(o=>o.id===n);if(!s)return null;const i=ge("dataviews-view-table__cell-content-wrapper",{"dataviews-view-table__cell-align-end":r==="end","dataviews-view-table__cell-align-center":r==="center"});return f.jsx("div",{className:i,children:f.jsx(s.render,{item:e,field:s})})}function Cx({hasBulkActions:e,item:t,level:n,actions:r,fields:s,id:i,view:o,titleField:a,mediaField:l,descriptionField:c,selection:u,getItemId:d,isItemClickable:h,onClickItem:g,renderItemLink:p,onChangeSelection:v,isActionsColumnSticky:x,posinset:y}){var w;const{paginationInfo:b}=m.useContext(ft),C=HM(r,t),_=C&&u.includes(i),[S,k]=m.useState(!1),{showTitle:T=!0,showMedia:M=!0,showDescription:E=!0,infiniteScrollEnabled:O}=o,A=()=>{k(!0)},P=()=>{k(!1)},L=m.useRef(!1),F=(w=o.fields)!==null&&w!==void 0?w:[],I=a&&T||l&&M||c&&E;return f.jsxs("tr",{className:ge("dataviews-view-table__row",{"is-selected":C&&_,"is-hovered":S,"has-bulk-actions":C}),onMouseEnter:A,onMouseLeave:P,onTouchStart:()=>{L.current=!0},"aria-setsize":O?b.totalItems:void 0,"aria-posinset":y,role:O?"article":void 0,onClick:j=>{var $;C&&!L.current&&(($=document.getSelection())==null?void 0:$.type)!=="Range"&&((aw()?j.metaKey:j.ctrlKey)?v(u.includes(i)?u.filter(N=>i!==N):[...u,i]):v(u.includes(i)?u.filter(N=>i!==N):[i]))},children:[e&&f.jsx("td",{className:"dataviews-view-table__checkbox-column",children:f.jsx("div",{className:"dataviews-view-table__cell-content-wrapper",children:f.jsx(tv,{item:t,selection:u,onChangeSelection:v,getItemId:d,titleField:a,disabled:!C})})}),I&&f.jsx("td",{children:f.jsx(ete,{item:t,level:n,titleField:T?a:void 0,mediaField:M?l:void 0,descriptionField:E?c:void 0,isItemClickable:h,onClickItem:g,renderItemLink:p})}),F.map(j=>{var Q,re;var $;const{width:N,maxWidth:z,minWidth:B,align:K}=($=(re=(Q=o.layout)==null?void 0:Q.styles)==null?void 0:re[j])!==null&&$!==void 0?$:{};return f.jsx("td",{style:{width:N,maxWidth:z,minWidth:B},children:f.jsx(rte,{fields:s,item:t,column:j,align:K})},j)}),!!(r!=null&&r.length)&&f.jsx("td",{className:ge("dataviews-view-table__actions-column",{"dataviews-view-table__actions-column--sticky":!0,"dataviews-view-table__actions-column--stuck":x}),onClick:j=>j.stopPropagation(),children:f.jsx(Jh,{item:t,actions:r})})]})}function ste({actions:e,data:t,fields:n,getItemId:r,getItemLevel:s,isLoading:i=!1,onChangeView:o,onChangeSelection:a,selection:l,setOpenedFilter:c,onClickItem:u,isItemClickable:d,renderItemLink:h,view:g,className:p,empty:v}){var Q,re;var x;const{containerRef:y}=m.useContext(ft),w=m.useRef(new Map),b=m.useRef(),[C,_]=m.useState(),S=nv(e,t);m.useEffect(()=>{b.current&&(b.current.focus(),b.current=void 0)});const k=m.useId(),T=nte({scrollContainerRef:y,enabled:!!(e!=null&&e.length)});if(C){b.current=C,_(void 0);return}const M=Y=>{const ie=w.current.get(Y.id),X=ie?w.current.get(ie.fallback):void 0;_(X==null?void 0:X.node)},E=!!(t!=null&&t.length),O=n.find(Y=>Y.id===g.titleField),A=n.find(Y=>Y.id===g.mediaField),P=n.find(Y=>Y.id===g.descriptionField),L=g.groupByField?n.find(Y=>Y.id===g.groupByField):null,F=L?t.reduce((Y,ie)=>{var he;const X=L.getValue({item:ie});return Y.has(X)||Y.set(X,[]),(he=Y.get(X))==null||he.push(ie),Y},new Map):null,{showTitle:I=!0,showMedia:j=!0,showDescription:$=!0}=g,N=O&&I||A&&j||P&&$,z=(x=g.fields)!==null&&x!==void 0?x:[],B=(Y,ie)=>X=>{X?w.current.set(Y,{node:X,fallback:z[ie>0?ie-1:1]}):w.current.delete(Y)},K=g.infiniteScrollEnabled&&!F;return f.jsxs(f.Fragment,{children:[f.jsxs("table",{className:ge("dataviews-view-table",p,{[`has-${(Q=g.layout)==null?void 0:Q.density}-density`]:((re=g.layout)==null?void 0:re.density)&&["compact","comfortable"].includes(g.layout.density)}),"aria-busy":i,"aria-describedby":k,role:K?"feed":void 0,children:[f.jsx("thead",{children:f.jsxs("tr",{className:"dataviews-view-table__row",children:[S&&f.jsx("th",{className:"dataviews-view-table__checkbox-column",scope:"col",children:f.jsx(UM,{selection:l,onChangeSelection:a,data:t,actions:e,getItemId:r})}),N&&f.jsx("th",{scope:"col",children:O&&f.jsx(_x,{ref:B(O.id,0),fieldId:O.id,view:g,fields:n,onChangeView:o,onHide:M,setOpenedFilter:c,canMove:!1})}),z.map((Y,ie)=>{var D,V,W,H,de;var X,he;const{width:je,maxWidth:Te,minWidth:Ue,align:Ae}=(X=(V=(D=g.layout)==null?void 0:D.styles)==null?void 0:V[Y])!==null&&X!==void 0?X:{};return f.jsx("th",{style:{width:je,maxWidth:Te,minWidth:Ue,textAlign:Ae},"aria-sort":(W=g.sort)!=null&&W.direction&&((H=g.sort)==null?void 0:H.field)===Y?Vee[g.sort.direction]:void 0,scope:"col",children:f.jsx(_x,{ref:B(Y,ie),fieldId:Y,view:g,fields:n,onChangeView:o,onHide:M,setOpenedFilter:c,canMove:(he=(de=g.layout)==null?void 0:de.enableMoving)!==null&&he!==void 0?he:!0})},Y)}),!!(e!=null&&e.length)&&f.jsx("th",{className:ge("dataviews-view-table__actions-column",{"dataviews-view-table__actions-column--sticky":!0,"dataviews-view-table__actions-column--stuck":!T}),children:f.jsx("span",{className:"dataviews-view-table-header",children:R("Actions")})})]})}),E&&L&&F?Array.from(F.entries()).map(([Y,ie])=>f.jsxs("tbody",{children:[f.jsx("tr",{className:"dataviews-view-table__group-header-row",children:f.jsx("td",{colSpan:z.length+(N?1:0)+(S?1:0)+(e!=null&&e.length?1:0),className:"dataviews-view-table__group-header-cell",children:Oe(R("%1$s: %2$s"),L.label,Y)})}),ie.map((X,he)=>f.jsx(Cx,{item:X,level:g.showLevels&&typeof s=="function"?s(X):void 0,hasBulkActions:S,actions:e,fields:n,id:r(X)||he.toString(),view:g,titleField:O,mediaField:A,descriptionField:P,selection:l,getItemId:r,onChangeSelection:a,onClickItem:u,renderItemLink:h,isItemClickable:d,isActionsColumnSticky:!T},r(X)))]},`group-${Y}`)):f.jsx("tbody",{children:E&&t.map((Y,ie)=>f.jsx(Cx,{item:Y,level:g.showLevels&&typeof s=="function"?s(Y):void 0,hasBulkActions:S,actions:e,fields:n,id:r(Y)||ie.toString(),view:g,titleField:O,mediaField:A,descriptionField:P,selection:l,getItemId:r,onChangeSelection:a,onClickItem:u,renderItemLink:h,isItemClickable:d,isActionsColumnSticky:!T,posinset:K?ie+1:void 0},r(Y)))})]}),f.jsxs("div",{className:ge({"dataviews-loading":i,"dataviews-no-results":!E&&!i}),id:k,children:[!E&&f.jsx("p",{children:i?f.jsx(ws,{}):v}),E&&i&&f.jsx("p",{className:"dataviews-loading-more",children:f.jsx(ws,{})})]})]})}const uu=m.forwardRef(({className:e,previewSize:t,...n},r)=>f.jsx("div",{ref:r,className:ge("dataviews-view-grid-items",e),style:{gridTemplateColumns:t&&`repeat(auto-fill, minmax(${t}px, 1fr))`},...n})),{Badge:ite}=Tr(ir);function em({view:e,selection:t,onChangeSelection:n,onClickItem:r,isItemClickable:s,renderItemLink:i,getItemId:o,item:a,actions:l,mediaField:c,titleField:u,descriptionField:d,regularFields:h,badgeFields:g,hasBulkActions:p,config:v,posinset:x}){const{showTitle:y=!0,showMedia:w=!0,showDescription:b=!0,infiniteScrollEnabled:C}=e,_=HM(l,a),S=o(a),k=yt(em),T=t.includes(S),M=c!=null&&c.render?f.jsx(c.render,{item:a,field:c,config:v}):null,E=y&&(u!=null&&u.render)?f.jsx(u.render,{item:a,field:u}):null,O=w&&M;let A,P;s(a)&&r&&(E?(A={"aria-labelledby":`dataviews-view-grid__title-field-${k}`},P={id:`dataviews-view-grid__title-field-${k}`}):A={"aria-label":R("Navigate to item")});const{paginationInfo:L}=m.useContext(ft);return f.jsxs(Rt,{spacing:0,className:ge("dataviews-view-grid__card",{"is-selected":_&&T}),onClickCapture:F=>{if(aw()?F.metaKey:F.ctrlKey){if(F.stopPropagation(),F.preventDefault(),!_)return;n(t.includes(S)?t.filter(I=>S!==I):[...t,S])}},role:C?"article":void 0,"aria-setsize":C?L.totalItems:void 0,"aria-posinset":x,children:[O&&f.jsx(cu,{item:a,isItemClickable:s,onClickItem:r,renderItemLink:i,className:"dataviews-view-grid__media",...A,children:M}),p&&O&&f.jsx(tv,{item:a,selection:t,onChangeSelection:n,getItemId:o,titleField:u,disabled:!_}),!y&&O&&!!(l!=null&&l.length)&&f.jsx("div",{className:"dataviews-view-grid__media-actions",children:f.jsx(Jh,{item:a,actions:l,isCompact:!0})}),y&&f.jsxs(Ve,{justify:"space-between",className:"dataviews-view-grid__title-actions",children:[f.jsx(cu,{item:a,isItemClickable:s,onClickItem:r,renderItemLink:i,className:"dataviews-view-grid__title-field dataviews-title-field",...P,children:E}),!!(l!=null&&l.length)&&f.jsx(Jh,{item:a,actions:l,isCompact:!0})]}),f.jsxs(Rt,{spacing:1,children:[b&&(d==null?void 0:d.render)&&f.jsx(d.render,{item:a,field:d}),!!(g!=null&&g.length)&&f.jsx(Ve,{className:"dataviews-view-grid__badge-fields",spacing:2,wrap:!0,alignment:"top",justify:"flex-start",children:g.map(F=>f.jsx(ite,{className:"dataviews-view-grid__field-value",children:f.jsx(F.render,{item:a,field:F})},F.id))}),!!(h!=null&&h.length)&&f.jsx(Rt,{className:"dataviews-view-grid__fields",spacing:1,children:h.map(F=>f.jsx(ea,{className:"dataviews-view-grid__field",gap:1,justify:"flex-start",expanded:!0,style:{height:"auto"},direction:"row",children:f.jsxs(f.Fragment,{children:[f.jsx(Oo,{text:F.label,children:f.jsx(Zs,{className:"dataviews-view-grid__field-name",children:F.header})}),f.jsx(Zs,{className:"dataviews-view-grid__field-value",style:{maxHeight:"none"},children:f.jsx(F.render,{item:a,field:F})})]})},F.id))})]})]},S)}function ote({actions:e,data:t,fields:n,getItemId:r,isLoading:s,onChangeSelection:i,onClickItem:o,isItemClickable:a,renderItemLink:l,selection:c,view:u,className:d,empty:h}){var A;var g;const{resizeObserverRef:p}=m.useContext(ft),v=n.find(P=>P.id===(u==null?void 0:u.titleField)),x=n.find(P=>P.id===(u==null?void 0:u.mediaField)),y=n.find(P=>P.id===(u==null?void 0:u.descriptionField)),w=(g=u.fields)!==null&&g!==void 0?g:[],{regularFields:b,badgeFields:C}=w.reduce((P,L)=>{var j,$;const F=n.find(N=>N.id===L);if(!F)return P;const I=($=(j=u.layout)==null?void 0:j.badgeFields)!=null&&$.includes(L)?"badgeFields":"regularFields";return P[I].push(F),P},{regularFields:[],badgeFields:[]}),_=!!(t!=null&&t.length),S=nv(e,t),k=(A=u.layout)==null?void 0:A.previewSize,T="900px",M=u.groupByField?n.find(P=>P.id===u.groupByField):null,E=M?t.reduce((P,L)=>{var I;const F=M.getValue({item:L});return P.has(F)||P.set(F,[]),(I=P.get(F))==null||I.push(L),P},new Map):null,O=u.infiniteScrollEnabled&&!E;return f.jsxs(f.Fragment,{children:[_&&M&&E&&f.jsx(Rt,{spacing:4,children:Array.from(E.entries()).map(([P,L])=>f.jsxs(Rt,{spacing:2,children:[f.jsx("h3",{className:"dataviews-view-grid__group-header",children:Oe(R("%1$s: %2$s"),M.label,P)}),f.jsx(uu,{className:ge("dataviews-view-grid",d),previewSize:k,"aria-busy":s,ref:p,children:L.map(F=>f.jsx(em,{view:u,selection:c,onChangeSelection:i,onClickItem:o,isItemClickable:a,renderItemLink:l,getItemId:r,item:F,actions:e,mediaField:x,titleField:v,descriptionField:y,regularFields:b,badgeFields:C,hasBulkActions:S,config:{sizes:T}},r(F)))})]},P))}),_&&!E&&f.jsx(uu,{className:ge("dataviews-view-grid",d),previewSize:k,"aria-busy":s,ref:p,role:O?"feed":void 0,children:t.map((P,L)=>f.jsx(em,{view:u,selection:c,onChangeSelection:i,onClickItem:o,isItemClickable:a,renderItemLink:l,getItemId:r,item:P,actions:e,mediaField:x,titleField:v,descriptionField:y,regularFields:b,badgeFields:C,hasBulkActions:S,config:{sizes:T},posinset:O?L+1:void 0},r(P)))}),!_&&f.jsx("div",{className:ge({"dataviews-loading":s,"dataviews-no-results":!s}),children:f.jsx("p",{children:s?f.jsx(ws,{}):h})}),_&&s&&f.jsx("p",{className:"dataviews-loading-more",children:f.jsx(ws,{})})]})}const{Menu:If}=Tr(ir);function tm(e){return`${e}-item-wrapper`}function ate(e,t){return`${e}-primary-action-${t}`}function nm(e){return`${e}-dropdown`}function lte({idPrefix:e,primaryAction:t,item:n}){const r=od(),[s,i]=m.useState(!1),o=ate(e,t.id),a=typeof t.label=="string"?t.label:t.label([n]);return"RenderModal"in t?f.jsx("div",{role:"gridcell",children:f.jsx(Ln.Item,{id:o,render:f.jsx(Je,{label:a,disabled:!!t.disabled,accessibleWhenDisabled:!0,icon:t.icon,isDestructive:t.isDestructive,size:"small",onClick:()=>i(!0)}),children:s&&f.jsx(Xl,{action:t,items:[n],closeModal:()=>i(!1)})})},t.id):f.jsx("div",{role:"gridcell",children:f.jsx(Ln.Item,{id:o,render:f.jsx(Je,{label:a,disabled:!!t.disabled,accessibleWhenDisabled:!0,icon:t.icon,isDestructive:t.isDestructive,size:"small",onClick:()=>{t.callback([n],{registry:r})}})})},t.id)}function cte({view:e,actions:t,idPrefix:n,isSelected:r,item:s,titleField:i,mediaField:o,descriptionField:a,onSelect:l,otherFields:c,onDropdownTriggerKeyDown:u,posinset:d}){const{showTitle:h=!0,showMedia:g=!0,showDescription:p=!0,infiniteScrollEnabled:v}=e,x=m.useRef(null),y=`${n}-label`,w=`${n}-description`,b=od(),[C,_]=m.useState(!1),[S,k]=m.useState(null),T=({type:I})=>{_(I==="mouseenter")},{paginationInfo:M}=m.useContext(ft);m.useEffect(()=>{var I;r&&((I=x.current)==null||I.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"}))},[r]);const{primaryAction:E,eligibleActions:O}=m.useMemo(()=>{const I=t.filter($=>!$.isEligible||$.isEligible(s));return{primaryAction:I.filter($=>$.isPrimary&&!!$.icon)[0],eligibleActions:I}},[t,s]),A=E&&t.length===1,P=g&&(o!=null&&o.render)?f.jsx("div",{className:"dataviews-view-list__media-wrapper",children:f.jsx(o.render,{item:s,field:o,config:{sizes:"52px"}})}):null,L=h&&(i!=null&&i.render)?f.jsx(i.render,{item:s,field:i}):null,F=(O==null?void 0:O.length)>0&&f.jsxs(Ve,{spacing:3,className:"dataviews-view-list__item-actions",children:[E&&f.jsx(lte,{idPrefix:n,primaryAction:E,item:s}),!A&&f.jsxs("div",{role:"gridcell",children:[f.jsxs(If,{placement:"bottom-end",children:[f.jsx(If.TriggerButton,{render:f.jsx(Ln.Item,{id:nm(n),render:f.jsx(Je,{size:"small",icon:Qp,label:R("Actions"),accessibleWhenDisabled:!0,disabled:!t.length,onKeyDown:u})})}),f.jsx(If.Popover,{children:f.jsx(YM,{actions:O,item:s,registry:b,setActiveModalAction:k})})]}),!!S&&f.jsx(Xl,{action:S,items:[s],closeModal:()=>k(null)})]})]});return f.jsx(Ln.Row,{ref:x,render:f.jsx("div",{"aria-posinset":d,"aria-setsize":v?M.totalItems:void 0}),role:v?"article":"row",className:ge({"is-selected":r,"is-hovered":C}),onMouseEnter:T,onMouseLeave:T,children:f.jsxs(Ve,{className:"dataviews-view-list__item-wrapper",spacing:0,children:[f.jsx("div",{role:"gridcell",children:f.jsx(Ln.Item,{id:tm(n),"aria-pressed":r,"aria-labelledby":y,"aria-describedby":w,className:"dataviews-view-list__item",onClick:()=>l(s)})}),f.jsxs(Ve,{spacing:3,justify:"start",alignment:"flex-start",children:[P,f.jsxs(Rt,{spacing:1,className:"dataviews-view-list__field-wrapper",children:[f.jsxs(Ve,{spacing:0,children:[f.jsx("div",{className:"dataviews-title-field",id:y,children:L}),F]}),p&&(a==null?void 0:a.render)&&f.jsx("div",{className:"dataviews-view-list__field",children:f.jsx(a.render,{item:s,field:a})}),f.jsx("div",{className:"dataviews-view-list__fields",id:w,children:c.map(I=>f.jsxs("div",{className:"dataviews-view-list__field",children:[f.jsx(yr,{as:"span",className:"dataviews-view-list__field-label",children:I.label}),f.jsx("span",{className:"dataviews-view-list__field-value",children:f.jsx(I.render,{item:s,field:I})})]},I.id))})]})]})]})})}function ute(e){return!!e}function KM(e){var t;const{actions:n,data:r,fields:s,getItemId:i,isLoading:o,onChangeSelection:a,selection:l,view:c,className:u,empty:d}=e,h=yt(KM,"view-list"),g=r==null?void 0:r.findLast(P=>l.includes(i(P))),p=s.find(P=>P.id===c.titleField),v=s.find(P=>P.id===c.mediaField),x=s.find(P=>P.id===c.descriptionField),y=((t=c==null?void 0:c.fields)!==null&&t!==void 0?t:[]).map(P=>s.find(L=>P===L.id)).filter(ute),w=P=>a([i(P)]),b=m.useCallback(P=>`${h}-${i(P)}`,[h,i]),C=m.useCallback((P,L)=>L.startsWith(b(P)),[b]),[_,S]=m.useState(void 0);m.useEffect(()=>{g&&S(tm(b(g)))},[g,b]);const k=r.findIndex(P=>C(P,_??"")),T=Wa(k),M=k!==-1,E=m.useCallback((P,L)=>{var $;const F=Math.min(r.length-1,Math.max(0,P));if(!r[F])return;const I=b(r[F]),j=L(I);S(j),($=document.getElementById(j))==null||$.focus()},[r,b]);m.useEffect(()=>{!M&&(T!==void 0&&T!==-1)&&E(T,tm)},[M,E,T]);const O=m.useCallback(P=>{P.key==="ArrowDown"&&(P.preventDefault(),E(k+1,nm)),P.key==="ArrowUp"&&(P.preventDefault(),E(k-1,nm))},[E,k]),A=r==null?void 0:r.length;return A?f.jsxs(f.Fragment,{children:[f.jsx(Ln,{id:h,render:f.jsx("div",{}),className:ge("dataviews-view-list",u),role:c.infiniteScrollEnabled?"feed":"grid",activeId:_,setActiveId:S,children:r.map((P,L)=>{const F=b(P);return f.jsx(cte,{view:c,idPrefix:F,actions:n,item:P,isSelected:P===g,onSelect:w,mediaField:v,titleField:p,descriptionField:x,otherFields:y,onDropdownTriggerKeyDown:O,posinset:c.infiniteScrollEnabled?L+1:void 0},F)})}),A&&o&&f.jsx("p",{className:"dataviews-loading-more",children:f.jsx(ws,{})})]}):f.jsx("div",{className:ge({"dataviews-loading":o,"dataviews-no-results":!A&&!o}),children:!A&&f.jsx("p",{children:o?f.jsx(ws,{}):d})})}function XM(){var e;const{view:t,onChangeView:n,paginationInfo:{totalItems:r=0,totalPages:s}}=m.useContext(ft);if(!r||!s||t.infiniteScrollEnabled)return null;const i=(e=t.page)!==null&&e!==void 0?e:1,o=Array.from(Array(s)).map((a,l)=>{const c=l+1;return{value:c.toString(),label:c.toString(),"aria-label":i===c?Oe(R("Page %1$d of %2$d"),i,s):c.toString()}});return!!r&&s!==1&&f.jsxs(Ve,{expanded:!1,className:"dataviews-pagination",justify:"end",spacing:6,children:[f.jsx(Ve,{justify:"flex-start",expanded:!1,spacing:1,className:"dataviews-pagination__page-select",children:St(Oe(Ws("<div>Page</div>%1$s<div>of %2$d</div>","paging"),"<CurrentPage />",s),{div:f.jsx("div",{"aria-hidden":!0}),CurrentPage:f.jsx(zi,{"aria-label":R("Current page"),value:i.toString(),options:o,onChange:a=>{n({...t,page:+a})},size:"small",__nextHasNoMarginBottom:!0,variant:"minimal"})})}),f.jsxs(Ve,{expanded:!1,spacing:1,children:[f.jsx(Je,{onClick:()=>n({...t,page:i-1}),disabled:i===1,accessibleWhenDisabled:!0,label:R("Previous page"),icon:bn()?bx:yx,showTooltip:!0,size:"compact",tooltipPosition:"top"}),f.jsx(Je,{onClick:()=>n({...t,page:i+1}),disabled:i>=s,accessibleWhenDisabled:!0,label:R("Next page"),icon:bn()?yx:bx,showTooltip:!0,size:"compact",tooltipPosition:"top"})]})]})}const dte=m.memo(XM);function fte(e){return m.useMemo(()=>e==null?void 0:e.every(t=>t.supportsBulk),[e])}const{Badge:hte}=Tr(ir);function kx({view:e,multiselect:t,selection:n,onChangeSelection:r,getItemId:s,item:i,mediaField:o,titleField:a,descriptionField:l,regularFields:c,badgeFields:u,config:d,posinset:h,setsize:g}){const{showTitle:p=!0,showMedia:v=!0,showDescription:x=!0}=e,y=s(i),w=n.includes(y),b=o!=null&&o.render?f.jsx(o.render,{item:i,field:o,config:d}):null,C=p&&(a!=null&&a.render)?f.jsx(a.render,{item:i,field:a}):null;return f.jsxs(Ln.Item,{render:({children:_,...S})=>f.jsx(Rt,{spacing:0,children:_,...S}),role:"option","aria-posinset":h,"aria-setsize":g,className:ge("dataviews-view-picker-grid__card",{"is-selected":w}),"aria-selected":w,onClick:()=>{if(w)r(n.filter(_=>y!==_));else{const _=t?[...n,y]:[y];r(_)}},children:[v&&b&&f.jsx("div",{className:"dataviews-view-picker-grid__media",children:b}),v&&b&&f.jsx(tv,{item:i,selection:n,onChangeSelection:r,getItemId:s,titleField:a,disabled:!1,"aria-hidden":!0,tabIndex:-1}),f.jsx(Ve,{justify:"space-between",className:"dataviews-view-picker-grid__title-actions",children:f.jsx("div",{className:"dataviews-view-picker-grid__title-field dataviews-title-field",children:C})}),f.jsxs(Rt,{spacing:1,children:[x&&(l==null?void 0:l.render)&&f.jsx(l.render,{item:i,field:l}),!!(u!=null&&u.length)&&f.jsx(Ve,{className:"dataviews-view-picker-grid__badge-fields",spacing:2,wrap:!0,alignment:"top",justify:"flex-start",children:u.map(_=>f.jsx(hte,{className:"dataviews-view-picker-grid__field-value",children:f.jsx(_.render,{item:i,field:_})},_.id))}),!!(c!=null&&c.length)&&f.jsx(Rt,{className:"dataviews-view-picker-grid__fields",spacing:1,children:c.map(_=>f.jsx(ea,{className:"dataviews-view-picker-grid__field",gap:1,justify:"flex-start",expanded:!0,style:{height:"auto"},direction:"row",children:f.jsxs(f.Fragment,{children:[f.jsx(Zs,{className:"dataviews-view-picker-grid__field-name",children:_.header}),f.jsx(Zs,{className:"dataviews-view-picker-grid__field-value",style:{maxHeight:"none"},children:f.jsx(_.render,{item:i,field:_})})]})},_.id))})]})]},y)}function ZM({groupName:e,groupField:t,children:n}){const r=yt(ZM,"dataviews-view-picker-grid-group__header");return f.jsxs(Rt,{spacing:2,role:"group","aria-labelledby":r,children:[f.jsx("h3",{className:"dataviews-view-picker-grid-group__header",id:r,children:Oe(R("%1$s: %2$s"),t.label,e)}),n]},e)}function mte({actions:e,data:t,fields:n,getItemId:r,isLoading:s,onChangeSelection:i,selection:o,view:a,className:l,empty:c}){var I;var u,d,h;const{resizeObserverRef:g,paginationInfo:p,itemListLabel:v}=m.useContext(ft),x=n.find(j=>j.id===(a==null?void 0:a.titleField)),y=n.find(j=>j.id===(a==null?void 0:a.mediaField)),w=n.find(j=>j.id===(a==null?void 0:a.descriptionField)),b=(u=a.fields)!==null&&u!==void 0?u:[],{regularFields:C,badgeFields:_}=b.reduce((j,$)=>{var B,K;const N=n.find(Q=>Q.id===$);if(!N)return j;const z=(K=(B=a.layout)==null?void 0:B.badgeFields)!=null&&K.includes($)?"badgeFields":"regularFields";return j[z].push(N),j},{regularFields:[],badgeFields:[]}),S=!!(t!=null&&t.length),k=(I=a.layout)==null?void 0:I.previewSize,T=fte(e),M="900px",E=a.groupByField?n.find(j=>j.id===a.groupByField):null,O=E?t.reduce((j,$)=>{var z;const N=E.getValue({item:$});return j.has(N)||j.set(N,[]),(z=j.get(N))==null||z.push($),j},new Map):null,A=a.infiniteScrollEnabled&&!O,P=(d=a==null?void 0:a.page)!==null&&d!==void 0?d:1,L=(h=a==null?void 0:a.perPage)!==null&&h!==void 0?h:0,F=A?p==null?void 0:p.totalItems:void 0;return f.jsxs(f.Fragment,{children:[S&&E&&O&&f.jsx(Ln,{virtualFocus:!0,orientation:"horizontal",role:"listbox","aria-multiselectable":T,className:ge("dataviews-view-picker-grid",l),"aria-label":v,render:({children:j,...$})=>f.jsx(Rt,{spacing:4,children:j,...$}),children:Array.from(O.entries()).map(([j,$])=>f.jsx(ZM,{groupName:j,groupField:E,children:f.jsx(uu,{previewSize:k,style:{gridTemplateColumns:k&&`repeat(auto-fill, minmax(${k}px, 1fr))`},"aria-busy":s,ref:g,children:$.map(N=>{const z=(P-1)*L+t.indexOf(N)+1;return f.jsx(kx,{view:a,multiselect:T,selection:o,onChangeSelection:i,getItemId:r,item:N,mediaField:y,titleField:x,descriptionField:w,regularFields:C,badgeFields:_,config:{sizes:M},posinset:z,setsize:F},r(N))})})},j))}),S&&!O&&f.jsx(Ln,{render:f.jsx(uu,{className:ge("dataviews-view-picker-grid",l),previewSize:k,"aria-busy":s,ref:g}),virtualFocus:!0,orientation:"horizontal",role:"listbox","aria-multiselectable":T,"aria-label":v,children:t.map((j,$)=>{let N=A?$+1:void 0;return A||(N=(P-1)*L+$+1),f.jsx(kx,{view:a,multiselect:T,selection:o,onChangeSelection:i,getItemId:r,item:j,mediaField:y,titleField:x,descriptionField:w,regularFields:C,badgeFields:_,config:{sizes:M},posinset:N,setsize:F},r(j))})}),!S&&f.jsx("div",{className:ge({"dataviews-loading":s,"dataviews-no-results":!s}),children:f.jsx("p",{children:s?f.jsx(ws,{}):c})}),S&&s&&f.jsx("p",{className:"dataviews-loading-more",children:f.jsx(ws,{})})]})}const gte=[{value:120,breakpoint:1},{value:170,breakpoint:1},{value:230,breakpoint:1},{value:290,breakpoint:1112},{value:350,breakpoint:1636},{value:430,breakpoint:588}];function Tx(){var l,c;var e,t;const n=m.useContext(ft),r=n.view,s=gte.filter(u=>n.containerWidth>=u.breakpoint),i=(e=(l=r.layout)==null?void 0:l.previewSize)!==null&&e!==void 0?e:230,o=(t=(c=s.map((u,d)=>({...u,index:d})).filter(u=>u.value<=i).sort((u,d)=>d.value-u.value)[0])==null?void 0:c.index)!==null&&t!==void 0?t:0,a=s.map((u,d)=>({value:d}));return f.jsx(PH,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,showTooltip:!1,label:R("Preview size"),value:o,min:0,max:s.length-1,withInputField:!1,onChange:(u=0)=>{n.onChangeView({...r,layout:{...r.layout,previewSize:s[u].value}})},step:1,marks:a})}function pte(){var n;const e=m.useContext(ft),t=e.view;return f.jsxs(na,{__nextHasNoMarginBottom:!0,size:"__unstable-large",label:R("Density"),value:((n=t.layout)==null?void 0:n.density)||"balanced",onChange:r=>{e.onChangeView({...t,layout:{...t.layout,density:r}})},isBlock:!0,children:[f.jsx(Oi,{value:"comfortable",label:Ws("Comfortable","Density option for DataView layout")},"comfortable"),f.jsx(Oi,{value:"balanced",label:Ws("Balanced","Density option for DataView layout")},"balanced"),f.jsx(Oi,{value:"compact",label:Ws("Compact","Density option for DataView layout")},"compact")]})}const fl=[{type:ev,label:R("Table"),component:ste,icon:Eee,viewConfigOptions:pte},{type:zM,label:R("Grid"),component:ote,icon:vx,viewConfigOptions:Tx},{type:Bee,label:R("List"),component:KM,icon:bn()?jee:Ree},{type:zee,label:R("Grid"),component:mte,icon:vx,viewConfigOptions:Tx,isPicker:!0}],vte=[],rv=(e,t)=>e.singleSelection?t==null?void 0:t.value:Array.isArray(t==null?void 0:t.value)?t.value:!Array.isArray(t==null?void 0:t.value)&&(t!=null&&t.value)?[t.value]:vte;function Mx(e=""){return JC(e.trim().toLowerCase())}const Ex=(e,t,n)=>e.singleSelection?n:Array.isArray(t==null?void 0:t.value)?t.value.includes(n)?t.value.filter(r=>r!==n):[...t.value,n]:[n];function Ox(e,t){return`${e}-${t}`}const QM=({selected:e})=>f.jsx("span",{className:ge("dataviews-filters__search-widget-listitem-multi-selection",{"is-selected":e}),children:e&&f.jsx(Zt,{icon:Oee})}),JM=({selected:e})=>f.jsx("span",{className:ge("dataviews-filters__search-widget-listitem-single-selection",{"is-selected":e})});function eE({view:e,filter:t,onChangeView:n}){var l,c;const r=yt(eE,"dataviews-filter-list-box"),[s,i]=m.useState(((l=t.operators)==null?void 0:l.length)===1?void 0:null),o=(c=e.filters)==null?void 0:c.find(u=>u.field===t.field),a=rv(t,o);return f.jsx(Ln,{virtualFocus:!0,focusLoop:!0,activeId:s,setActiveId:i,role:"listbox",className:"dataviews-filters__search-widget-listbox","aria-label":Oe(R("List of: %1$s"),t.name),onFocusVisible:()=>{!s&&t.elements.length&&i(Ox(r,t.elements[0].value))},render:f.jsx(Ln.Typeahead,{}),children:t.elements.map(u=>f.jsxs(Ln.Hover,{render:f.jsx(Ln.Item,{id:Ox(r,u.value),render:f.jsx("div",{"aria-label":u.label,role:"option",className:"dataviews-filters__search-widget-listitem"}),onClick:()=>{var d,h;const g=o?[...((d=e.filters)!==null&&d!==void 0?d:[]).map(p=>p.field===t.field?{...p,operator:o.operator||t.operators[0],value:Ex(t,o,u.value)}:p)]:[...(h=e.filters)!==null&&h!==void 0?h:[],{field:t.field,operator:t.operators[0],value:Ex(t,o,u.value)}];n({...e,page:1,filters:g})}}),children:[t.singleSelection&&f.jsx(JM,{selected:a===u.value}),!t.singleSelection&&f.jsx(QM,{selected:a.includes(u.value)}),f.jsx("span",{children:u.label})]},u.value))})}function yte({view:e,filter:t,onChangeView:n}){var c;const[r,s]=m.useState(""),i=m.useDeferredValue(r),o=(c=e.filters)==null?void 0:c.find(u=>u.field===t.field),a=rv(t,o),l=m.useMemo(()=>{const u=Mx(i);return t.elements.filter(d=>Mx(d.label).includes(u))},[t.elements,i]);return f.jsxs(MI,{selectedValue:a,setSelectedValue:u=>{var d,h;const g=o?[...((d=e.filters)!==null&&d!==void 0?d:[]).map(p=>p.field===t.field?{...p,operator:o.operator||t.operators[0],value:u}:p)]:[...(h=e.filters)!==null&&h!==void 0?h:[],{field:t.field,operator:t.operators[0],value:u}];n({...e,page:1,filters:g})},setValue:s,children:[f.jsxs("div",{className:"dataviews-filters__search-widget-filter-combobox__wrapper",children:[f.jsx(pI,{render:f.jsx(yr,{children:R("Search items")}),children:R("Search items")}),f.jsx(tI,{autoSelect:"always",placeholder:R("Search"),className:"dataviews-filters__search-widget-filter-combobox__input"}),f.jsx("div",{className:"dataviews-filters__search-widget-filter-combobox__icon",children:f.jsx(Zt,{icon:Nee})})]}),f.jsxs(bI,{className:"dataviews-filters__search-widget-filter-combobox-list",alwaysVisible:!0,children:[l.map(u=>f.jsxs(oI,{resetValueOnSelect:!1,value:u.value,className:"dataviews-filters__search-widget-listitem",hideOnClick:!1,setValueOnClick:!1,focusOnHover:!0,children:[t.singleSelection&&f.jsx(JM,{selected:a===u.value}),!t.singleSelection&&f.jsx(QM,{selected:a.includes(u.value)}),f.jsxs("span",{children:[f.jsx(hI,{className:"dataviews-filters__search-widget-filter-combobox-item-value",value:u.label}),!!u.description&&f.jsx("span",{className:"dataviews-filters__search-widget-listitem-description",children:u.description})]})]},u.value)),!l.length&&f.jsx("p",{children:R("No results found")})]})]})}function bte(e){const t=e.filter.elements.length>10?yte:eE;return f.jsx(t,{...e})}function xte({filter:e,view:t,onChangeView:n,fields:r}){var c;const s=(c=t.filters)==null?void 0:c.find(u=>u.field===e.field),i=r.find(u=>u.id===e.field),o=rv(e,s),a=m.useMemo(()=>{var u;return((u=t.filters)!==null&&u!==void 0?u:[]).reduce((d,h)=>(d[h.field]=h.value,d),{})},[t.filters]),l=Ai(u=>{var d;if(!i||!s)return;const h=u[i.id];J1(h,o)||n({...t,filters:((d=t.filters)!==null&&d!==void 0?d:[]).map(g=>g.field===e.field?{...g,operator:s.operator||e.operators[0],value:h===""?void 0:h}:g)})});return!i||!i.Edit||!s?null:f.jsx(ea,{className:"dataviews-filters__user-input-widget",gap:2.5,direction:"column",children:f.jsx(i.Edit,{hideLabelFromVision:!0,data:a,field:i,operator:s.operator,onChange:l})})}const wte="Enter",Ste=" ",_te=({activeElements:e,filterInView:t,filter:n})=>{if(e===void 0||e.length===0)return n.name;const r={Name:f.jsx("span",{className:"dataviews-filters__summary-filter-text-name"}),Value:f.jsx("span",{className:"dataviews-filters__summary-filter-text-value"})};if((t==null?void 0:t.operator)===er)return St(Oe(R("<Name>%1$s is any: </Name><Value>%2$s</Value>"),n.name,e.map(s=>s.label).join(", ")),r);if((t==null?void 0:t.operator)===tr)return St(Oe(R("<Name>%1$s is none: </Name><Value>%2$s</Value>"),n.name,e.map(s=>s.label).join(", ")),r);if((t==null?void 0:t.operator)===ai)return St(Oe(R("<Name>%1$s is all: </Name><Value>%2$s</Value>"),n.name,e.map(s=>s.label).join(", ")),r);if((t==null?void 0:t.operator)===li)return St(Oe(R("<Name>%1$s is not all: </Name><Value>%2$s</Value>"),n.name,e.map(s=>s.label).join(", ")),r);if((t==null?void 0:t.operator)===Qn)return St(Oe(R("<Name>%1$s is: </Name><Value>%2$s</Value>"),n.name,e[0].label),r);if((t==null?void 0:t.operator)===Jn)return St(Oe(R("<Name>%1$s is not: </Name><Value>%2$s</Value>"),n.name,e[0].label),r);if((t==null?void 0:t.operator)===Bo)return St(Oe(R("<Name>%1$s is less than: </Name><Value>%2$s</Value>"),n.name,e[0].label),r);if((t==null?void 0:t.operator)===zo)return St(Oe(R("<Name>%1$s is greater than: </Name><Value>%2$s</Value>"),n.name,e[0].label),r);if((t==null?void 0:t.operator)===Yo)return St(Oe(R("<Name>%1$s is less than or equal to: </Name><Value>%2$s</Value>"),n.name,e[0].label),r);if((t==null?void 0:t.operator)===Ho)return St(Oe(R("<Name>%1$s is greater than or equal to: </Name><Value>%2$s</Value>"),n.name,e[0].label),r);if((t==null?void 0:t.operator)===Hi)return St(Oe(R("<Name>%1$s contains: </Name><Value>%2$s</Value>"),n.name,e[0].label),r);if((t==null?void 0:t.operator)===Ui)return St(Oe(R("<Name>%1$s doesn't contain: </Name><Value>%2$s</Value>"),n.name,e[0].label),r);if((t==null?void 0:t.operator)===Gi)return St(Oe(R("<Name>%1$s starts with: </Name><Value>%2$s</Value>"),n.name,e[0].label),r);if((t==null?void 0:t.operator)===Qs)return St(Oe(R("<Name>%1$s is before: </Name><Value>%2$s</Value>"),n.name,e[0].label),r);if((t==null?void 0:t.operator)===Js)return St(Oe(R("<Name>%1$s is after: </Name><Value>%2$s</Value>"),n.name,e[0].label),r);if((t==null?void 0:t.operator)===ei)return St(Oe(R("<Name>%1$s is on or before: </Name><Value>%2$s</Value>"),n.name,e[0].label),r);if((t==null?void 0:t.operator)===ti)return St(Oe(R("<Name>%1$s is on or after: </Name><Value>%2$s</Value>"),n.name,e[0].label),r);if((t==null?void 0:t.operator)===vn){const{label:s}=e[0];return St(Oe(R("<Name>%1$s between (inc): </Name><Value>%2$s and %3$s</Value>"),n.name,s[0],s[1]),r)}return(t==null?void 0:t.operator)===ni?St(Oe(R("<Name>%1$s is: </Name><Value>%2$s</Value>"),n.name,e[0].label),r):(t==null?void 0:t.operator)===ri?St(Oe(R("<Name>%1$s is not: </Name><Value>%2$s</Value>"),n.name,e[0].label),r):(t==null?void 0:t.operator)===wr?St(Oe(R("<Name>%1$s is in the past: </Name><Value>%2$s</Value>"),n.name,`${e[0].value.value} ${e[0].value.unit}`),r):(t==null?void 0:t.operator)===Sr?St(Oe(R("<Name>%1$s is over: </Name><Value>%2$s</Value> ago"),n.name,`${e[0].value.value} ${e[0].value.unit}`),r):Oe(R("Unknown status for %1$s"),n.name)};function Cte({filter:e,view:t,onChangeView:n}){var o,a;const r=(o=e.operators)==null?void 0:o.map(l=>{var c;return{value:l,label:(c=Lee[l])==null?void 0:c.label}}),s=(a=t.filters)==null?void 0:a.find(l=>l.field===e.field),i=(s==null?void 0:s.operator)||e.operators[0];return r.length>1&&f.jsxs(Ve,{spacing:2,justify:"flex-start",className:"dataviews-filters__summary-operators-container",children:[f.jsx(Zs,{className:"dataviews-filters__summary-operators-filter-name",children:e.name}),f.jsx(zi,{className:"dataviews-filters__summary-operators-filter-select",label:R("Conditions"),value:i,options:r,onChange:l=>{var c,u;const d=l,h=s==null?void 0:s.operator,g=s?[...((c=t.filters)!==null&&c!==void 0?c:[]).map(p=>{if(p.field===e.field){const v=[vn,wr,Sr],x=h&&(v.includes(h)||v.includes(d));return{...p,value:x?void 0:p.value,operator:d}}return p})]:[...(u=t.filters)!==null&&u!==void 0?u:[],{field:e.field,operator:d,value:void 0}];n({...t,page:1,filters:g})},size:"small",variant:"minimal",__nextHasNoMarginBottom:!0,hideLabelFromVision:!0})]})}function kte({addFilterRef:e,openedFilter:t,fields:n,...r}){var p;const s=m.useRef(null),{filter:i,view:o,onChangeView:a}=r,l=(p=o.filters)==null?void 0:p.find(v=>v.field===i.field);let c=[];i.elements.length>0?c=i.elements.filter(v=>{var x;return i.singleSelection?v.value===(l==null?void 0:l.value):(x=l==null?void 0:l.value)==null?void 0:x.includes(v.value)}):(l==null?void 0:l.value)!==void 0&&(c=[{value:l.value,label:l.value}]);const u=i.isPrimary,d=l==null?void 0:l.isLocked,h=!d&&(l==null?void 0:l.value)!==void 0,g=!d&&(!u||h);return f.jsx(Tk,{defaultOpen:t===i.field,contentClassName:"dataviews-filters__summary-popover",popoverProps:{placement:"bottom-start",role:"dialog"},onClose:()=>{var v;(v=s.current)==null||v.focus()},renderToggle:({isOpen:v,onToggle:x})=>f.jsxs("div",{className:"dataviews-filters__summary-chip-container",children:[f.jsx(Oo,{text:Oe(R("Filter by: %1$s"),i.name.toLowerCase()),placement:"top",children:f.jsx("div",{className:ge("dataviews-filters__summary-chip",{"has-reset":g,"has-values":h,"is-not-clickable":d}),role:"button",tabIndex:d?-1:0,onClick:()=>{d||x()},onKeyDown:y=>{!d&&[wte,Ste].includes(y.key)&&(x(),y.preventDefault())},"aria-disabled":d,"aria-pressed":v,"aria-expanded":v,ref:s,children:f.jsx(_te,{activeElements:c,filterInView:l,filter:i})})}),g&&f.jsx(Oo,{text:R(u?"Reset":"Remove"),placement:"top",children:f.jsx("button",{className:ge("dataviews-filters__summary-chip-remove",{"has-values":h}),onClick:()=>{var y,w,b;a({...o,page:1,filters:(y=o.filters)==null?void 0:y.filter(C=>C.field!==i.field)}),u?(b=s.current)==null||b.focus():(w=e.current)==null||w.focus()},children:f.jsx(Zt,{icon:LM})})})]}),renderContent:()=>f.jsxs(Rt,{spacing:0,justify:"flex-start",children:[f.jsx(Cte,{...r}),r.filter.elements.length>0?f.jsx(bte,{...r,filter:{...r.filter,elements:r.filter.elements}}):f.jsx(xte,{...r,fields:n})]})})}const{Menu:wa}=Tr(ir);function tE({filters:e,view:t,onChangeView:n,setOpenedFilter:r,triggerProps:s}){const i=e.filter(o=>!o.isVisible);return f.jsxs(wa,{children:[f.jsx(wa.TriggerButton,{...s}),f.jsx(wa.Popover,{children:i.map(o=>f.jsx(wa.Item,{onClick:()=>{r(o.field),n({...t,page:1,filters:[...t.filters||[],{field:o.field,value:void 0,operator:o.operators[0]}]})},children:f.jsx(wa.ItemLabel,{children:o.name})},o.field))})]})}function Tte({filters:e,view:t,onChangeView:n,setOpenedFilter:r},s){if(!e.length||e.every(({isPrimary:o})=>o))return null;const i=e.filter(o=>!o.isVisible);return f.jsx(tE,{triggerProps:{render:f.jsx(Je,{accessibleWhenDisabled:!0,size:"compact",className:"dataviews-filters-button",variant:"tertiary",disabled:!i.length,ref:s}),children:R("Add filter")},filters:e,view:t,onChangeView:n,setOpenedFilter:r})}const Mte=m.forwardRef(Tte);function Ete({filters:e,view:t,onChangeView:n}){var i;const r=o=>e.some(a=>a.field===o&&a.isPrimary),s=!t.search&&!((i=t.filters)!=null&&i.some(o=>!o.isLocked&&(o.value!==void 0||!r(o.field))));return f.jsx(Je,{disabled:s,accessibleWhenDisabled:!0,size:"compact",variant:"tertiary",className:"dataviews-filters__reset-button",onClick:()=>{var o;n({...t,page:1,search:"",filters:((o=t.filters)==null?void 0:o.filter(a=>!!a.isLocked))||[]})},children:R("Reset")})}function nE(e,t){return m.useMemo(()=>{const n=[];return e.forEach(r=>{var c,u,d,h;var s,i;if(r.filterBy===!1||!((c=r.elements)!=null&&c.length)&&!r.Edit)return;const o=r.filterBy.operators,a=!!((u=r.filterBy)!=null&&u.isPrimary),l=(s=(d=t.filters)==null?void 0:d.some(g=>g.field===r.id&&!!g.isLocked))!==null&&s!==void 0?s:!1;n.push({field:r.id,name:r.label,elements:(i=r.elements)!==null&&i!==void 0?i:[],singleSelection:o.some(g=>Qh.includes(g)),operators:o,isVisible:l||a||!!((h=t.filters)!=null&&h.some(g=>g.field===r.id&&Jp.includes(g.operator))),isPrimary:a,isLocked:l})}),n.sort((r,s)=>r.isLocked&&!s.isLocked?-1:!r.isLocked&&s.isLocked?1:r.isPrimary&&!s.isPrimary?-1:!r.isPrimary&&s.isPrimary?1:r.name.localeCompare(s.name)),n},[e,t])}function rE(){var g;const{filters:e,view:t,onChangeView:n,setOpenedFilter:r,isShowingFilter:s,setIsShowingFilter:i}=m.useContext(ft),o=m.useRef(null),a=m.useCallback(p=>{n(p),i(!0)},[n,i]),c=!!e.filter(p=>p.isVisible).length;if(e.length===0)return null;const u={label:R("Add filter"),"aria-expanded":!1,isPressed:!1},d={label:Ws("Filter","verb"),"aria-expanded":s,isPressed:s,onClick:()=>{s||r(null),i(!s)}},h=f.jsx(Je,{ref:o,className:"dataviews-filters__visibility-toggle",size:"compact",icon:$M,...c?d:u});return f.jsx("div",{className:"dataviews-filters__container-visibility-toggle",children:c?f.jsx(Ote,{buttonRef:o,filtersCount:(g=t.filters)==null?void 0:g.length,children:h}):f.jsx(tE,{filters:e,view:t,onChangeView:a,setOpenedFilter:r,triggerProps:{render:h}})})}function Ote({buttonRef:e,filtersCount:t,children:n}){return m.useEffect(()=>()=>{var r;(r=e.current)==null||r.focus()},[e]),f.jsxs(f.Fragment,{children:[n,!!t&&f.jsx("span",{className:"dataviews-filters-toggle__count",children:t})]})}function Dte({className:e}){const{fields:t,view:n,onChangeView:r,openedFilter:s,setOpenedFilter:i}=m.useContext(ft),o=m.useRef(null),a=nE(t,n),l=f.jsx(Mte,{filters:a,view:n,onChangeView:r,ref:o,setOpenedFilter:i},"add-filter"),c=a.filter(d=>d.isVisible);if(c.length===0)return null;const u=[...c.map(d=>f.jsx(kte,{filter:d,view:n,fields:t,onChangeView:r,addFilterRef:o,openedFilter:s},d.field)),l];return u.push(f.jsx(Ete,{filters:a,view:n,onChangeView:r},"reset-filters")),f.jsx(Ve,{justify:"flex-start",style:{width:"fit-content"},wrap:!0,className:e,children:u})}const sE=m.memo(Dte);function iE({className:e}){var w;const{actions:t=[],data:n,fields:r,getItemId:s,getItemLevel:i,isLoading:o,view:a,onChangeView:l,selection:c,onChangeSelection:u,setOpenedFilter:d,onClickItem:h,isItemClickable:g,renderItemLink:p,defaultLayouts:v,empty:x=R("No results")}=m.useContext(ft),y=(w=fl.find(b=>b.type===a.type&&v[b.type]))==null?void 0:w.component;return f.jsx(y,{className:e,actions:t,data:n,fields:r,getItemId:s,getItemLevel:i,isLoading:o,onChangeView:l,onChangeSelection:u,selection:c,setOpenedFilter:d,onClickItem:h,renderItemLink:p,isItemClickable:g,view:a,empty:x})}const Pte=[];function oE(){const{view:e,paginationInfo:{totalItems:t=0,totalPages:n},data:r,actions:s=Pte}=m.useContext(ft),i=nv(s,r)&&[ev,zM].includes(e.type);return!t||!n||n<=1&&!i?null:!!t&&f.jsxs(Ve,{expanded:!1,justify:"end",className:"dataviews-footer",children:[i&&f.jsx(qM,{}),f.jsx(dte,{})]})}const aE=m.memo(function({label:t}){const{view:n,onChangeView:r}=m.useContext(ft),[s,i,o]=mD(n.search);m.useEffect(()=>{var u;i((u=n.search)!==null&&u!==void 0?u:"")},[n.search,i]);const a=m.useRef(r),l=m.useRef(n);m.useEffect(()=>{a.current=r,l.current=n},[r,n]),m.useEffect(()=>{var u;o!==((u=l.current)==null?void 0:u.search)&&a.current({...l.current,page:1,search:o})},[o]);const c=t||R("Search");return f.jsx(zK,{className:"dataviews-search",__nextHasNoMarginBottom:!0,onChange:i,value:s,label:c,placeholder:c,size:"compact"})});function Ate(){var e;const t=m.useContext(ft),{view:n,onChangeView:r}=t,s=(e=n.infiniteScrollEnabled)!==null&&e!==void 0?e:!1;return t.hasInfiniteScrollHandler?f.jsx(JT,{__nextHasNoMarginBottom:!0,label:R("Enable infinite scroll"),help:R("Automatically load more content as you scroll, instead of showing pagination links."),checked:s,onChange:i=>{r({...n,infiniteScrollEnabled:i})}}):null}const{Menu:Nr}=Tr(ir),Rte={className:"dataviews-config__popover",placement:"bottom-end",offset:9};function lE(){const{view:e,onChangeView:t,defaultLayouts:n}=m.useContext(ft),r=Object.keys(n);if(r.length<=1)return null;const s=fl.find(i=>e.type===i.type);return f.jsxs(Nr,{children:[f.jsx(Nr.TriggerButton,{render:f.jsx(Je,{size:"compact",icon:s==null?void 0:s.icon,label:R("Layout")})}),f.jsx(Nr.Popover,{children:r.map(i=>{const o=fl.find(a=>a.type===i);return o?f.jsx(Nr.RadioItem,{value:i,name:"view-actions-available-view",checked:i===e.type,hideOnClick:!0,onChange:a=>{switch(a.target.value){case"list":case"grid":case"table":case"pickerGrid":const l={...e};return"layout"in l&&delete l.layout,t({...l,type:a.target.value,...n[a.target.value]})}globalThis.SCRIPT_DEBUG===!0&&nr("Invalid dataview")},children:f.jsx(Nr.ItemLabel,{children:o.label})},i):null})})]})}function jte(){var s;const{view:e,fields:t,onChangeView:n}=m.useContext(ft),r=m.useMemo(()=>t.filter(o=>o.enableSorting!==!1).map(o=>({label:o.label,value:o.id})),[t]);return f.jsx(zi,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:R("Sort by"),value:(s=e.sort)==null?void 0:s.field,options:r,onChange:i=>{var o;n({...e,sort:{direction:((o=e==null?void 0:e.sort)==null?void 0:o.direction)||"desc",field:i},showLevels:!1})}})}function Ite(){var i,o;const{view:e,fields:t,onChangeView:n}=m.useContext(ft);if(t.filter(a=>a.enableSorting!==!1).length===0)return null;let s=(i=e.sort)==null?void 0:i.direction;return!s&&((o=e.sort)!=null&&o.field)&&(s="desc"),f.jsx(na,{className:"dataviews-view-config__sort-direction",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,isBlock:!0,label:R("Order"),value:s,onChange:a=>{var l,c;if(a==="asc"||a==="desc"){n({...e,sort:{direction:a,field:((l=e.sort)==null?void 0:l.field)||((c=t.find(u=>u.enableSorting!==!1))==null?void 0:c.id)||""},showLevels:!1});return}globalThis.SCRIPT_DEBUG===!0&&nr("Invalid direction")},children:WM.map(a=>f.jsx(CY,{value:a,icon:Wee[a],label:BM[a]},a))})}function Nte(){var s;const{view:e,config:t,onChangeView:n}=m.useContext(ft),{infiniteScrollEnabled:r}=e;return!t||!t.perPageSizes||t.perPageSizes.length<2||t.perPageSizes.length>6||r?null:f.jsx(na,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,isBlock:!0,label:R("Items per page"),value:e.perPage||10,disabled:!((s=e==null?void 0:e.sort)!=null&&s.field),onChange:i=>{const o=typeof i=="number"||i===void 0?i:parseInt(i,10);n({...e,perPage:o,page:1})},children:t.perPageSizes.map(i=>f.jsx(Oi,{value:i,label:i.toString()},i))})}function Fte({previewOptions:e,onChangePreviewOption:t,onMenuOpenChange:n,activeOption:r}){const s=i=>{setTimeout(()=>{const o=document.querySelector(`.dataviews-field-control__field-${i} .dataviews-field-control__field-preview-options-button`);o instanceof HTMLElement&&o.focus()},50)};return f.jsxs(Nr,{onOpenChange:n,children:[f.jsx(Nr.TriggerButton,{render:f.jsx(Je,{className:"dataviews-field-control__field-preview-options-button",size:"compact",icon:Qp,label:R("Preview")})}),f.jsx(Nr.Popover,{children:e==null?void 0:e.map(({id:i,label:o})=>f.jsx(Nr.RadioItem,{value:i,checked:i===r,onChange:()=>{t==null||t(i),s(i)},children:f.jsx(Nr.ItemLabel,{children:o})},i))})]})}function Rc({field:e,label:t,description:n,isVisible:r,isFirst:s,isLast:i,canMove:o=!0,onToggleVisibility:a,onMoveUp:l,onMoveDown:c,previewOptions:u,onChangePreviewOption:d}){const[h,g]=m.useState(!1),p=()=>{setTimeout(()=>{const v=document.querySelector(`.dataviews-field-control__field-${e.id} .dataviews-field-control__field-visibility-button`);v instanceof HTMLElement&&v.focus()},50)};return f.jsx(_U,{children:f.jsxs(Ve,{expanded:!0,className:ge("dataviews-field-control__field",`dataviews-field-control__field-${e.id}`,{"is-interacting":h}),justify:"flex-start",children:[f.jsx("span",{className:"dataviews-field-control__icon",children:!o&&!e.enableHiding&&f.jsx(Zt,{icon:Iee})}),f.jsxs("span",{className:"dataviews-field-control__label-sub-label-container",children:[f.jsx("span",{className:"dataviews-field-control__label",children:t||e.label}),n&&f.jsx("span",{className:"dataviews-field-control__sub-label",children:n})]}),f.jsxs(Ve,{justify:"flex-end",expanded:!1,className:"dataviews-field-control__actions",children:[r&&f.jsxs(f.Fragment,{children:[f.jsx(Je,{disabled:s||!o,accessibleWhenDisabled:!0,size:"compact",onClick:l,icon:Pee,label:s||!o?R("This field can't be moved up"):Oe(R("Move %s up"),e.label)}),f.jsx(Je,{disabled:i||!o,accessibleWhenDisabled:!0,size:"compact",onClick:c,icon:Dee,label:i||!o?R("This field can't be moved down"):Oe(R("Move %s down"),e.label)})]}),a&&f.jsx(Je,{className:"dataviews-field-control__field-visibility-button",disabled:!e.enableHiding,accessibleWhenDisabled:!0,size:"compact",onClick:()=>{a(),p()},icon:r?VM:Fee,label:Oe(Ws(r?"Hide %s":"Show %s","field"),e.label)}),u&&f.jsx(Fte,{previewOptions:u,onChangePreviewOption:d,onMenuOpenChange:g,activeOption:e.id})]})]})})}function Dx({index:e,field:t,view:n,onChangeView:r}){var s;const i=(s=n.fields)!==null&&s!==void 0?s:[],o=e!==void 0&&i.includes(t.id);return f.jsx(Rc,{field:t,isVisible:o,isFirst:e!==void 0&&e<1,isLast:e!==void 0&&e===i.length-1,onToggleVisibility:()=>{r({...n,fields:o?i.filter(a=>a!==t.id):[...i,t.id]})},onMoveUp:e!==void 0?()=>{var a;r({...n,fields:[...(a=i.slice(0,e-1))!==null&&a!==void 0?a:[],t.id,i[e-1],...i.slice(e+1)]})}:void 0,onMoveDown:e!==void 0?()=>{var a;r({...n,fields:[...(a=i.slice(0,e))!==null&&a!==void 0?a:[],i[e+1],t.id,...i.slice(e+2)]})}:void 0})}function to(e){return!!e}function Lte(){var e;const{view:t,fields:n,onChangeView:r}=m.useContext(ft),s=[t==null?void 0:t.titleField,t==null?void 0:t.mediaField,t==null?void 0:t.descriptionField].filter(Boolean),i=(e=t.fields)!==null&&e!==void 0?e:[],o=n.filter(y=>!i.includes(y.id)&&!s.includes(y.id)&&y.type!=="media"),a=i.map(y=>n.find(w=>w.id===y)).filter(to);if(!(a!=null&&a.length)&&!(o!=null&&o.length))return null;const l=n.find(y=>y.id===t.titleField),c=n.find(y=>y.id===t.mediaField),u=n.find(y=>y.id===t.descriptionField),d=n.filter(y=>y.type==="media");let h;if(d.length>1){var g;const y=to(c)&&((g=t.showMedia)!==null&&g!==void 0?g:!0);h=to(c)&&f.jsx(Rc,{field:c,label:R("Preview"),description:c.label,isVisible:y,onToggleVisibility:()=>{r({...t,showMedia:!y})},canMove:!1,previewOptions:d.map(w=>({label:w.label,id:w.id})),onChangePreviewOption:w=>r({...t,mediaField:w})},c.id)}const p=[{field:l,isVisibleFlag:"showTitle"},{field:c,isVisibleFlag:"showMedia",ui:h},{field:u,isVisibleFlag:"showDescription"}].filter(({field:y})=>to(y)),v=p.filter(({field:y,isVisibleFlag:w})=>{var b;return to(y)&&((b=t[w])!==null&&b!==void 0?b:!0)}),x=p.filter(({field:y,isVisibleFlag:w})=>{var b;return to(y)&&!(!((b=t[w])!==null&&b!==void 0)||b)});return f.jsxs(Rt,{className:"dataviews-field-control",spacing:6,children:[f.jsx(Rt,{className:"dataviews-view-config__properties",spacing:0,children:(v.length>0||!!(a!=null&&a.length))&&f.jsxs(A0,{isBordered:!0,isSeparated:!0,children:[v.map(({field:y,isVisibleFlag:w,ui:b})=>b??f.jsx(Rc,{field:y,isVisible:!0,onToggleVisibility:()=>{r({...t,[w]:!1})},canMove:!1},y.id)),a.map((y,w)=>f.jsx(Dx,{field:y,view:t,onChangeView:r,index:w},y.id))]})}),(!!(o!=null&&o.length)||!!x.length)&&f.jsxs(Rt,{spacing:4,children:[f.jsx(Ht.VisualLabel,{style:{margin:0},children:R("Hidden")}),f.jsx(Rt,{className:"dataviews-view-config__properties",spacing:0,children:f.jsxs(A0,{isBordered:!0,isSeparated:!0,children:[x.length>0&&x.map(({field:y,isVisibleFlag:w,ui:b})=>b??f.jsx(Rc,{field:y,isVisible:!1,onToggleVisibility:()=>{r({...t,[w]:!0})},canMove:!1},y.id)),o.map(y=>f.jsx(Dx,{field:y,view:t,onChangeView:r},y.id))]})})]})]})}function Px({title:e,description:t,children:n}){return f.jsxs(D0,{columns:12,className:"dataviews-settings-section",gap:4,children:[f.jsxs("div",{className:"dataviews-settings-section__sidebar",children:[f.jsx(JH,{level:2,className:"dataviews-settings-section__title",children:e}),t&&f.jsx(Xg,{variant:"muted",className:"dataviews-settings-section__description",children:t})]}),f.jsx(D0,{columns:8,gap:4,className:"dataviews-settings-section__content",children:n})]})}function cE(){const{view:e}=m.useContext(ft),t=yt(uE,"dataviews-view-config-dropdown"),n=fl.find(r=>r.type===e.type);return f.jsx(Tk,{expandOnMobile:!0,popoverProps:{...Rte,id:t},renderToggle:({onToggle:r,isOpen:s})=>f.jsx(Je,{size:"compact",icon:Aee,label:Ws("View options","View is used as a noun"),onClick:r,"aria-expanded":s?"true":"false","aria-controls":t}),renderContent:()=>f.jsx(sU,{paddingSize:"medium",className:"dataviews-config__popover-content-wrapper",children:f.jsxs(Rt,{className:"dataviews-view-config",spacing:6,children:[f.jsxs(Px,{title:R("Appearance"),children:[f.jsxs(Ve,{expanded:!0,className:"is-divided-in-two",children:[f.jsx(jte,{}),f.jsx(Ite,{})]}),!!(n!=null&&n.viewConfigOptions)&&f.jsx(n.viewConfigOptions,{}),f.jsx(Ate,{}),f.jsx(Nte,{})]}),f.jsx(Px,{title:R("Properties"),children:f.jsx(Lte,{})})]})})})}function uE(){return f.jsxs(f.Fragment,{children:[f.jsx(lE,{}),f.jsx(cE,{})]})}const $te=m.memo(uE);function ci({item:e,field:t}){var r,s;const n=t.getValue({item:e});return((s=(r=t==null?void 0:t.elements)==null?void 0:r.find(i=>i.value===n))==null?void 0:s.label)||t.getValue({item:e})}function Vte(e,t,n){return n==="asc"?e.localeCompare(t):t.localeCompare(e)}const Wte=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Bte={sort:Vte,isValid:{custom:(e,t)=>{const n=t.getValue({item:e});return![void 0,"",null].includes(n)&&!Wte.test(n)?R("Value must be a valid email address."):t.elements&&!t.elements.map(s=>s.value).includes(n)?R("Value must be one of the elements."):null}},Edit:"email",render:({item:e,field:t})=>t.elements?ci({item:e,field:t}):t.getValue({item:e}),enableSorting:!0,filterBy:{defaultOperators:[er,tr],validOperators:[Qn,Jn,Hi,Ui,Gi,er,tr,ai,li]}};function zte(e,t,n){return n==="asc"?e-t:t-e}const Yte={sort:zte,isValid:{custom:(e,t)=>{const n=t.getValue({item:e});return![void 0,"",null].includes(n)&&!Number.isInteger(n)?R("Value must be an integer."):t!=null&&t.elements&&!t.elements.map(s=>s.value).includes(Number(n))?R("Value must be one of the elements."):null}},Edit:"integer",render:({item:e,field:t})=>t.elements?ci({item:e,field:t}):t.getValue({item:e}),enableSorting:!0,filterBy:{defaultOperators:[Qn,Jn,Bo,zo,Yo,Ho,vn],validOperators:[Qn,Jn,Bo,zo,Yo,Ho,vn,er,tr,ai,li]}};function Hte(e,t,n){return n==="asc"?e.localeCompare(t):t.localeCompare(e)}const Ute={sort:Hte,isValid:{custom:(e,t)=>{const n=t.getValue({item:e});return t!=null&&t.elements&&!t.elements.map(s=>s.value).includes(n)?R("Value must be one of the elements."):null}},Edit:"text",render:({item:e,field:t})=>t.elements?ci({item:e,field:t}):t.getValue({item:e}),enableSorting:!0,filterBy:{defaultOperators:[er,tr],validOperators:[Qn,Jn,Hi,Ui,Gi,er,tr,ai,li]}};function Gte(e,t,n){const r=new Date(e).getTime(),s=new Date(t).getTime();return n==="asc"?r-s:s-r}const qte={sort:Gte,isValid:{custom:(e,t)=>{const n=t.getValue({item:e});return t!=null&&t.elements&&!t.elements.map(s=>s.value).includes(n)?R("Value must be one of the elements."):null}},Edit:"datetime",render:({item:e,field:t})=>t.elements?ci({item:e,field:t}):t.getValue({item:e}),enableSorting:!0,filterBy:{defaultOperators:[ni,ri,Qs,Js,ei,ti,wr,Sr],validOperators:[ni,ri,Qs,Js,ei,ti,wr,Sr]}},Kte=e=>mK(xd().formats.date,cr(e));function Xte(e,t,n){const r=new Date(e).getTime(),s=new Date(t).getTime();return n==="asc"?r-s:s-r}const Zte={sort:Xte,Edit:"date",isValid:{custom:(e,t)=>{const n=t.getValue({item:e});return t!=null&&t.elements&&!t.elements.map(s=>s.value).includes(n)?R("Value must be one of the elements."):null}},render:({item:e,field:t})=>{if(t.elements)return ci({item:e,field:t});const n=t.getValue({item:e});return n?Kte(n):""},enableSorting:!0,filterBy:{defaultOperators:[ni,ri,Qs,Js,ei,ti,wr,Sr,vn],validOperators:[ni,ri,Qs,Js,ei,ti,wr,Sr,vn]}};function Qte(e,t,n){const r=!!e;return r===!!t?0:n==="asc"?r?1:-1:r?-1:1}const Jte={sort:Qte,isValid:{custom:(e,t)=>{const n=t.getValue({item:e});return![void 0,"",null].includes(n)&&![!0,!1].includes(n)?R("Value must be true, false, or undefined"):null}},Edit:"boolean",render:({item:e,field:t})=>t.elements?ci({item:e,field:t}):t.getValue({item:e})===!0?R("True"):t.getValue({item:e})===!1?R("False"):null,enableSorting:!0,filterBy:{defaultOperators:[Qn,Jn],validOperators:[Qn,Jn]}};function ene(){return 0}const tne={sort:ene,isValid:{custom:(e,t)=>{const n=t.getValue({item:e});return t!=null&&t.elements&&!t.elements.map(s=>s.value).includes(n)?R("Value must be one of the elements."):null}},Edit:null,render:()=>null,enableSorting:!1,filterBy:!1};function nne(e,t,n){const r=Array.isArray(e)?e:[],s=Array.isArray(t)?t:[];if(r.length!==s.length)return n==="asc"?r.length-s.length:s.length-r.length;const i=r.join(","),o=s.join(",");return n==="asc"?i.localeCompare(o):o.localeCompare(i)}function rne({item:e,field:t}){return(t.getValue({item:e})||[]).join(", ")}const sne={sort:nne,isValid:{custom:(e,t)=>{const n=t.getValue({item:e});if(![void 0,"",null].includes(n)&&!Array.isArray(n))return R("Value must be an array.");if(!n.every(r=>typeof r=="string"))return R("Every value must be a string.");if(t!=null&&t.elements){const r=t.elements.map(s=>s.value);if(!n.every(s=>r.includes(s)))return R("Value must be one of the elements.")}return null}},Edit:"array",render:rne,enableSorting:!0,filterBy:{defaultOperators:[er,tr],validOperators:[er,tr,ai,li]}};function ine(e,t,n){return n==="asc"?e.localeCompare(t):t.localeCompare(e)}const one={sort:ine,isValid:{custom:(e,t)=>{const n=t.getValue({item:e});return t!=null&&t.elements&&!t.elements.map(s=>s.value).includes(n)?R("Value must be one of the elements."):null}},Edit:"telephone",render:({item:e,field:t})=>t.elements?ci({item:e,field:t}):t.getValue({item:e}),enableSorting:!0,filterBy:{defaultOperators:[er,tr],validOperators:[Qn,Jn,Hi,Ui,Gi,er,tr,ai,li]}};function ane(e){return e==="email"?Bte:e==="integer"?Yte:e==="text"?Ute:e==="datetime"?qte:e==="date"?Zte:e==="boolean"?Jte:e==="media"?tne:e==="array"?sne:e==="telephone"?one:{sort:(t,n,r)=>typeof t=="number"&&typeof n=="number"?r==="asc"?t-n:n-t:r==="asc"?t.localeCompare(n):n.localeCompare(t),isValid:{custom:(t,n)=>{var r;if(n!=null&&n.elements){const s=n.getValue({item:t});if(!((r=n==null?void 0:n.elements)==null?void 0:r.map(o=>o.value)).includes(s))return R("Value must be one of the elements.")}return null}},Edit:null,render:({item:t,field:n})=>n.elements?ci({item:t,field:n}):n.getValue({item:t}),enableSorting:!0,filterBy:{defaultOperators:[Qn,Jn],validOperators:Jp}}}function lne({field:e,onChange:t,data:n,hideLabelFromVision:r}){const{id:s,getValue:i,label:o,description:a}=e;return f.jsx(ad,{__nextHasNoMarginBottom:!0,hidden:r,label:o,help:a,checked:i({item:n}),onChange:()=>t({[s]:!i({item:n})})})}const dE={[wr]:[{value:"days",label:R("Days")},{value:"weeks",label:R("Weeks")},{value:"months",label:R("Months")},{value:"years",label:R("Years")}],[Sr]:[{value:"days",label:R("Days ago")},{value:"weeks",label:R("Weeks ago")},{value:"months",label:R("Months ago")},{value:"years",label:R("Years ago")}]};function fE({id:e,value:t,onChange:n,label:r,hideLabelFromVision:s,options:i,className:o}){const{value:a="",unit:l=i[0].value}=t,c=m.useCallback(d=>n({[e]:{value:Number(d),unit:l}}),[e,n,l]),u=m.useCallback(d=>n({[e]:{value:a,unit:d}}),[e,n,a]);return f.jsx(Ht,{id:e,__nextHasNoMarginBottom:!0,className:ge(o,"dataviews-controls__relative-date"),label:r,hideLabelFromVision:s,children:f.jsxs(Ve,{spacing:2.5,children:[f.jsx(xs,{__next40pxDefaultSize:!0,className:"dataviews-controls__relative-date-number",spinControls:"none",min:1,step:1,value:a,onChange:c}),f.jsx(zi,{className:"dataviews-controls__relative-date-unit",__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:R("Unit"),value:l,options:i,onChange:u,hideLabelFromVision:!0})]})})}function cne({data:e,field:t,onChange:n,hideLabelFromVision:r,operator:s}){const{id:i,label:o}=t,a=t.getValue({item:e}),l=m.useCallback(c=>n({[i]:c}),[i,n]);return s===wr||s===Sr?f.jsx(fE,{id:i,value:a&&typeof a=="object"?a:{},onChange:n,label:o,hideLabelFromVision:r,options:dE[s]}):f.jsxs("fieldset",{className:"dataviews-controls__datetime",children:[!r&&f.jsx(Ht.VisualLabel,{as:"legend",children:o}),r&&f.jsx(yr,{as:"legend",children:o}),f.jsx(OK,{currentTime:typeof a=="string"?a:void 0,onChange:l,hideLabelFromVision:!0})]})}const hE=6048e5,une=864e5,Ax=Symbol.for("constructDateFrom");function _r(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ax in e?e[Ax](t):e instanceof Date?new e.constructor(t):new Date(t)}function Pn(e,t){return _r(t||e,e)}function dne(e,t,n){const r=Pn(e,n==null?void 0:n.in);return isNaN(t)?_r(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function mE(e,t,n){const r=Pn(e,n==null?void 0:n.in);if(isNaN(t))return _r(e,NaN);if(!t)return r;const s=r.getDate(),i=_r(e,r.getTime());i.setMonth(r.getMonth()+t+1,0);const o=i.getDate();return s>=o?i:(r.setFullYear(i.getFullYear(),i.getMonth(),s),r)}let fne={};function kd(){return fne}function hl(e,t){var a,l,c,u;const n=kd(),r=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,s=Pn(e,t==null?void 0:t.in),i=s.getDay(),o=(i<r?7:0)+i-r;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function du(e,t){return hl(e,{...t,weekStartsOn:1})}function gE(e,t){const n=Pn(e,t==null?void 0:t.in),r=n.getFullYear(),s=_r(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const i=du(s),o=_r(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const a=du(o);return n.getTime()>=i.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function Rx(e){const t=Pn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function hne(e,...t){const n=_r.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function jx(e,t){const n=Pn(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function mne(e,t,n){const[r,s]=hne(n==null?void 0:n.in,e,t),i=jx(r),o=jx(s),a=+i-Rx(i),l=+o-Rx(o);return Math.round((a-l)/une)}function gne(e,t){const n=gE(e,t),r=_r(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),du(r)}function pne(e,t,n){return mE(e,t*12,n)}function vne(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function pE(e){return!(!vne(e)&&typeof e!="number"||isNaN(+Pn(e)))}function yne(e,t){const n=Pn(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function vE(e,t){const n=Pn(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const bne={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},xne=(e,t,n)=>{let r;const s=bne[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Nf(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const wne={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Sne={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_ne={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Cne={date:Nf({formats:wne,defaultWidth:"full"}),time:Nf({formats:Sne,defaultWidth:"full"}),dateTime:Nf({formats:_ne,defaultWidth:"full"})},kne={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Tne=(e,t,n,r)=>kne[e];function Sa(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;s=e.formattingValues[a]||e.formattingValues[o]}else{const o=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[a]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return s[i]}}const Mne={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ene={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},One={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Dne={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Pne={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ane={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Rne=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},jne={ordinalNumber:Rne,era:Sa({values:Mne,defaultWidth:"wide"}),quarter:Sa({values:Ene,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Sa({values:One,defaultWidth:"wide"}),day:Sa({values:Dne,defaultWidth:"wide"}),dayPeriod:Sa({values:Pne,defaultWidth:"wide",formattingValues:Ane,defaultFormattingWidth:"wide"})};function _a(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(s);if(!i)return null;const o=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?Nne(a,d=>d.test(o)):Ine(a,d=>d.test(o));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(o.length);return{value:c,rest:u}}}function Ine(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Nne(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Fne(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const a=t.slice(s.length);return{value:o,rest:a}}}const Lne=/^(\d+)(th|st|nd|rd)?/i,$ne=/\d+/i,Vne={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Wne={any:[/^b/i,/^(a|c)/i]},Bne={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},zne={any:[/1/i,/2/i,/3/i,/4/i]},Yne={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Hne={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Une={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Gne={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},qne={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Kne={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Xne={ordinalNumber:Fne({matchPattern:Lne,parsePattern:$ne,valueCallback:e=>parseInt(e,10)}),era:_a({matchPatterns:Vne,defaultMatchWidth:"wide",parsePatterns:Wne,defaultParseWidth:"any"}),quarter:_a({matchPatterns:Bne,defaultMatchWidth:"wide",parsePatterns:zne,defaultParseWidth:"any",valueCallback:e=>e+1}),month:_a({matchPatterns:Yne,defaultMatchWidth:"wide",parsePatterns:Hne,defaultParseWidth:"any"}),day:_a({matchPatterns:Une,defaultMatchWidth:"wide",parsePatterns:Gne,defaultParseWidth:"any"}),dayPeriod:_a({matchPatterns:qne,defaultMatchWidth:"any",parsePatterns:Kne,defaultParseWidth:"any"})},Zne={code:"en-US",formatDistance:xne,formatLong:Cne,formatRelative:Tne,localize:jne,match:Xne,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Qne(e,t){const n=Pn(e,t==null?void 0:t.in);return mne(n,vE(n))+1}function Jne(e,t){const n=Pn(e,t==null?void 0:t.in),r=+du(n)-+gne(n);return Math.round(r/hE)+1}function yE(e,t){var u,d,h,g;const n=Pn(e,t==null?void 0:t.in),r=n.getFullYear(),s=kd(),i=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??s.firstWeekContainsDate??((g=(h=s.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,o=_r((t==null?void 0:t.in)||e,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const a=hl(o,t),l=_r((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const c=hl(l,t);return+n>=+a?r+1:+n>=+c?r:r-1}function ere(e,t){var a,l,c,u;const n=kd(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,s=yE(e,t),i=_r((t==null?void 0:t.in)||e,0);return i.setFullYear(s,0,r),i.setHours(0,0,0,0),hl(i,t)}function tre(e,t){const n=Pn(e,t==null?void 0:t.in),r=+hl(n,t)-+ere(n,t);return Math.round(r/hE)+1}function Qe(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Rs={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Qe(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Qe(n+1,2)},d(e,t){return Qe(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Qe(e.getHours()%12||12,t.length)},H(e,t){return Qe(e.getHours(),t.length)},m(e,t){return Qe(e.getMinutes(),t.length)},s(e,t){return Qe(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return Qe(s,t.length)}},no={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ix={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Rs.y(e,t)},Y:function(e,t,n,r){const s=yE(e,r),i=s>0?s:1-s;if(t==="YY"){const o=i%100;return Qe(o,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):Qe(i,t.length)},R:function(e,t){const n=gE(e);return Qe(n,t.length)},u:function(e,t){const n=e.getFullYear();return Qe(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Qe(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Qe(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Rs.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Qe(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const s=tre(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):Qe(s,t.length)},I:function(e,t,n){const r=Jne(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Qe(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Rs.d(e,t)},D:function(e,t,n){const r=Qne(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Qe(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const s=e.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Qe(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Qe(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return Qe(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=no.noon:r===0?s=no.midnight:s=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=no.evening:r>=12?s=no.afternoon:r>=4?s=no.morning:s=no.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Rs.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Rs.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Qe(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Qe(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Rs.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Rs.s(e,t)},S:function(e,t){return Rs.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Fx(r);case"XXXX":case"XX":return xi(r);case"XXXXX":case"XXX":default:return xi(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Fx(r);case"xxxx":case"xx":return xi(r);case"xxxxx":case"xxx":default:return xi(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Nx(r,":");case"OOOO":default:return"GMT"+xi(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Nx(r,":");case"zzzz":default:return"GMT"+xi(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Qe(r,t.length)},T:function(e,t,n){return Qe(+e,t.length)}};function Nx(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),i=r%60;return i===0?n+String(s):n+String(s)+t+Qe(i,2)}function Fx(e,t){return e%60===0?(e>0?"-":"+")+Qe(Math.abs(e)/60,2):xi(e,t)}function xi(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Qe(Math.trunc(r/60),2),i=Qe(r%60,2);return n+s+t+i}const Lx=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},bE=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},nre=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return Lx(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Lx(r,t)).replace("{{time}}",bE(s,t))},rre={p:bE,P:nre},sre=/^D+$/,ire=/^Y+$/,ore=["D","DD","YY","YYYY"];function are(e){return sre.test(e)}function lre(e){return ire.test(e)}function cre(e,t,n){const r=ure(e,t,n);if(console.warn(r),ore.includes(e))throw new RangeError(r)}function ure(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const dre=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fre=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hre=/^'([^]*?)'?$/,mre=/''/g,gre=/[a-zA-Z]/;function xE(e,t,n){var u,d,h,g;const r=kd(),s=r.locale??Zne,i=r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,o=r.weekStartsOn??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??0,a=Pn(e,n==null?void 0:n.in);if(!pE(a))throw new RangeError("Invalid time value");let l=t.match(fre).map(p=>{const v=p[0];if(v==="p"||v==="P"){const x=rre[v];return x(p,s.formatLong)}return p}).join("").match(dre).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const v=p[0];if(v==="'")return{isToken:!1,value:pre(p)};if(Ix[v])return{isToken:!0,value:p};if(v.match(gre))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:p}});s.localize.preprocessor&&(l=s.localize.preprocessor(a,l));const c={firstWeekContainsDate:i,weekStartsOn:o,locale:s};return l.map(p=>{if(!p.isToken)return p.value;const v=p.value;(lre(v)||are(v))&&cre(v,t,String(e));const x=Ix[v[0]];return x(a,v,s.localize,c)}).join("")}function pre(e){const t=e.match(hre);return t?t[1].replace(mre,"'"):e}function fu(e,t,n){return dne(e,-t,n)}function vre(e,t,n){return mE(e,-1,n)}function yre(e,t,n){return pne(e,-1,n)}const{DateCalendar:bre,DateRangeCalendar:xre}=Tr(ir),wre=[{id:"today",label:R("Today"),getValue:()=>cr(null)},{id:"yesterday",label:R("Yesterday"),getValue:()=>{const e=cr(null);return fu(e,1)}},{id:"past-week",label:R("Past week"),getValue:()=>{const e=cr(null);return fu(e,7)}},{id:"past-month",label:R("Past month"),getValue:()=>{const e=cr(null);return vre(e)}}],Sre=[{id:"last-7-days",label:R("Last 7 days"),getValue:()=>{const e=cr(null);return[fu(e,7),e]}},{id:"last-30-days",label:R("Last 30 days"),getValue:()=>{const e=cr(null);return[fu(e,30),e]}},{id:"month-to-date",label:R("Month to date"),getValue:()=>{const e=cr(null);return[yne(e),e]}},{id:"last-year",label:R("Last year"),getValue:()=>{const e=cr(null);return[yre(e),e]}},{id:"year-to-date",label:R("Year to date"),getValue:()=>{const e=cr(null);return[vE(e),e]}}],_o=e=>{if(!e)return null;const t=cr(e);return t&&pE(t)?t:null},rm=e=>e?typeof e=="string"?e:xE(e,"yyyy-MM-dd"):"";function _re({id:e,value:t,onChange:n,label:r,hideLabelFromVision:s,className:i}){const[o,a]=m.useState(null),[l,c]=m.useState(()=>_o(t)||new Date),u=m.useCallback(p=>{const v=p?xE(p,"yyyy-MM-dd"):void 0;n({[e]:v}),a(null)},[e,n]),d=m.useCallback(p=>{const v=p.getValue(),x=rm(v);c(v),n({[e]:x}),a(p.id)},[e,n]),h=m.useCallback(p=>{if(n({[e]:p}),p){const v=_o(p);v&&c(v)}a(null)},[e,n]),{l10n:{startOfWeek:g}}=xd();return f.jsx(Ht,{__nextHasNoMarginBottom:!0,id:e,className:i,label:r,hideLabelFromVision:s,children:f.jsxs(Rt,{spacing:4,children:[f.jsxs(Ve,{spacing:2,wrap:!0,justify:"flex-start",children:[wre.map(p=>{const v=o===p.id;return f.jsx(Je,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:v,size:"small",onClick:()=>d(p),children:p.label},p.id)}),f.jsx(Je,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:!o,size:"small",disabled:!!o,accessibleWhenDisabled:!1,children:R("Custom")})]}),f.jsx(Io,{__next40pxDefaultSize:!0,type:"date",label:R("Date"),hideLabelFromVision:!0,value:t,onChange:h}),f.jsx(bre,{style:{width:"100%"},selected:t&&_o(t)||void 0,onSelect:u,month:l,onMonthChange:c,timeZone:void 0,weekStartsOn:g})]})})}function Cre({id:e,value:t,onChange:n,label:r,hideLabelFromVision:s,className:i}){const[o,a]=m.useState(null),l=m.useMemo(()=>{if(!t)return{from:void 0,to:void 0};const[x,y]=t;return{from:_o(x)||void 0,to:_o(y)||void 0}},[t]),[c,u]=m.useState(()=>l.from||new Date),d=m.useCallback((x,y)=>{x&&y?n({[e]:[rm(x),rm(y)]}):!x&&!y&&n({[e]:void 0})},[e,n]),h=m.useCallback(x=>{d(x==null?void 0:x.from,x==null?void 0:x.to),a(null)},[d]),g=m.useCallback(x=>{const[y,w]=x.getValue();u(y),d(y,w),a(x.id)},[d]),p=m.useCallback((x,y)=>{const[w,b]=t||[void 0,void 0];if(d(x==="from"?y:w,x==="to"?y:b),y){const S=_o(y);S&&u(S)}a(null)},[t,d]),{l10n:v}=xd();return f.jsx(Ht,{__nextHasNoMarginBottom:!0,id:e,className:i,label:r,hideLabelFromVision:s,children:f.jsxs(Rt,{spacing:4,children:[f.jsxs(Ve,{spacing:2,wrap:!0,justify:"flex-start",children:[Sre.map(x=>{const y=o===x.id;return f.jsx(Je,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:y,size:"small",onClick:()=>g(x),children:x.label},x.id)}),f.jsx(Je,{className:"dataviews-controls__date-preset",variant:"tertiary",isPressed:!o,size:"small",accessibleWhenDisabled:!1,disabled:!!o,children:R("Custom")})]}),f.jsxs(Ve,{spacing:2,children:[f.jsx(Io,{__next40pxDefaultSize:!0,type:"date",label:R("From"),hideLabelFromVision:!0,value:t==null?void 0:t[0],onChange:x=>p("from",x)}),f.jsx(Io,{__next40pxDefaultSize:!0,type:"date",label:R("To"),hideLabelFromVision:!0,value:t==null?void 0:t[1],onChange:x=>p("to",x)})]}),f.jsx(xre,{style:{width:"100%"},selected:l,onSelect:h,month:c,onMonthChange:u,timeZone:void 0,weekStartsOn:v.startOfWeek})]})})}function kre({data:e,field:t,onChange:n,hideLabelFromVision:r,operator:s}){const{id:i,label:o}=t,a=t.getValue({item:e});if(s===wr||s===Sr)return f.jsx(fE,{className:"dataviews-controls__date",id:i,value:a&&typeof a=="object"?a:{},onChange:n,label:o,hideLabelFromVision:r,options:dE[s]});if(s===vn){let l;return Array.isArray(a)&&a.length===2&&a.every(c=>typeof c=="string")&&(l=a),f.jsx(Cre,{className:"dataviews-controls__date",id:i,value:l,onChange:n,label:o,hideLabelFromVision:r})}return f.jsx(_re,{className:"dataviews-controls__date",id:i,value:typeof a=="string"?a:void 0,onChange:n,label:o,hideLabelFromVision:r})}const{ValidatedTextControl:Tre}=Tr(ir);function sv({data:e,field:t,onChange:n,hideLabelFromVision:r,type:s}){var g;const{id:i,label:o,placeholder:a,description:l}=t,c=t.getValue({item:e}),[u,d]=m.useState(void 0),h=m.useCallback(p=>n({[i]:p}),[i,n]);return f.jsx(Tre,{required:!!((g=t.isValid)!=null&&g.required),onValidate:p=>{var x,y;const v=(y=(x=t.isValid)==null?void 0:x.custom)==null?void 0:y.call(x,{...e,[i]:p},t);if(v){d({type:"invalid",message:v});return}d(void 0)},customValidity:u,label:o,placeholder:a,value:c??"",help:l,onChange:h,hideLabelFromVision:r,type:s})}function Mre({data:e,field:t,onChange:n,hideLabelFromVision:r}){return f.jsx(sv,{data:e,field:t,onChange:n,hideLabelFromVision:r,type:"email"})}function Ere({data:e,field:t,onChange:n,hideLabelFromVision:r}){return f.jsx(sv,{data:e,field:t,onChange:n,hideLabelFromVision:r,type:"tel"})}const{ValidatedNumberControl:Ore}=Tr(ir);function Dre({id:e,value:t,onChange:n,hideLabelFromVision:r}){const[s="",i=""]=Array.isArray(t)?t:[],o=m.useCallback(l=>n({[e]:[Number(l),i]}),[e,n,i]),a=m.useCallback(l=>n({[e]:[s,Number(l)]}),[e,n,s]);return f.jsx(Ht,{__nextHasNoMarginBottom:!0,help:R("The max. value must be greater than the min. value."),children:f.jsxs(ea,{direction:"row",gap:4,children:[f.jsx(xs,{label:R("Min."),value:s,max:i?Number(i)-1:void 0,onChange:o,__next40pxDefaultSize:!0,hideLabelFromVision:r}),f.jsx(xs,{label:R("Max."),value:i,min:s?Number(s)+1:void 0,onChange:a,__next40pxDefaultSize:!0,hideLabelFromVision:r})]})})}function Pre({data:e,field:t,onChange:n,hideLabelFromVision:r,operator:s}){var g;var i;const{id:o,label:a,description:l}=t,c=(i=t.getValue({item:e}))!==null&&i!==void 0?i:"",[u,d]=m.useState(void 0),h=m.useCallback(p=>{n({[o]:["",void 0].includes(p)?void 0:Number(p)})},[o,n]);return s===vn?f.jsx(Dre,{id:o,value:c,onChange:n,hideLabelFromVision:r}):f.jsx(Ore,{required:!!((g=t.isValid)!=null&&g.required),onValidate:p=>{var x,y;const v=(y=(x=t.isValid)==null?void 0:x.custom)==null?void 0:y.call(x,{...e,[o]:[void 0,"",null].includes(p)?void 0:Number(p)},t);if(v){d({type:"invalid",message:v});return}d(void 0)},customValidity:u,label:a,help:l,value:c,onChange:h,__next40pxDefaultSize:!0,hideLabelFromVision:r})}function Are({data:e,field:t,onChange:n,hideLabelFromVision:r}){const{id:s,label:i}=t,o=t.getValue({item:e}),a=m.useCallback(l=>n({[s]:l}),[s,n]);return t.elements?f.jsx(KT,{label:i,onChange:a,options:t.elements,selected:o,hideLabelFromVision:r}):null}function Rre({data:e,field:t,onChange:n,hideLabelFromVision:r}){var s,i;const{id:o,label:a,type:l}=t,c=l==="array",u=(s=t.getValue({item:e}))!==null&&s!==void 0?s:c?[]:"",d=m.useCallback(v=>n({[o]:v}),[o,n]),h=(i=t==null?void 0:t.elements)!==null&&i!==void 0?i:[],p=h.some(({value:v})=>v==="")||c?h:[{label:R("Select item"),value:""},...h];return f.jsx(zi,{label:a,value:u,help:t.description,options:p,onChange:d,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,hideLabelFromVision:r,multiple:c})}function jre({data:e,field:t,onChange:n,hideLabelFromVision:r}){return f.jsx(sv,{data:e,field:t,onChange:n,hideLabelFromVision:r})}function Ire({data:e,field:t,onChange:n,hideLabelFromVision:r}){const{id:s}=t,i=t.getValue({item:e}),o=m.useCallback(a=>n({[s]:a}),[s,n]);if(t.elements){const a=t.elements.find(l=>l.value===i);return f.jsx(na,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,isBlock:!0,label:t.label,help:(a==null?void 0:a.description)||t.description,onChange:o,value:i,hideLabelFromVision:r,children:t.elements.map(l=>f.jsx(Oi,{label:l.label,value:l.value},l.value))})}return null}const{ValidatedToggleControl:Nre}=Tr(ir);function Fre({field:e,onChange:t,data:n,hideLabelFromVision:r}){const{id:s,getValue:i,label:o}=e,[a,l]=m.useState(void 0);return f.jsx(Nre,{required:!!e.isValid.required,onValidate:c=>{var d,h;const u=(h=(d=e.isValid)==null?void 0:d.custom)==null?void 0:h.call(d,{...n,[s]:c},e);if(u){l({type:"invalid",message:u});return}l(void 0)},customValidity:a,hidden:r,__nextHasNoMarginBottom:!0,label:o,checked:i({item:n}),onChange:()=>t({[s]:!i({item:n})})})}function Lre({data:e,field:t,onChange:n,hideLabelFromVision:r}){var s;const{id:i,label:o,placeholder:a,elements:l}=t,c=t.getValue({item:e}),u=m.useCallback(p=>l==null?void 0:l.find(v=>v.value===p),[l]),d=m.useCallback(p=>l==null?void 0:l.find(v=>v.label===p),[l]),h=m.useMemo(()=>Array.isArray(c)?c.map(p=>{var x;return((x=u(p))==null?void 0:x.label)||p}):[],[c,u]),g=m.useCallback(p=>{const v=p.map(x=>{if(typeof x!="string")return x.value;const y=d(x);return(y==null?void 0:y.value)||x});n({[i]:v})},[i,n,d]);return f.jsx(LK,{label:r?void 0:o,value:h,onChange:g,placeholder:a,suggestions:(s=l==null?void 0:l.map(p=>p.label))!==null&&s!==void 0?s:[],__experimentalExpandOnFocus:l&&l.length>0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}const $x={array:Lre,boolean:Fre,checkbox:lne,datetime:cne,date:kre,email:Mre,telephone:Ere,integer:Pre,radio:Are,select:Rre,text:jre,toggleGroup:Ire};function $re(e,t){return typeof e.Edit=="function"?e.Edit:typeof e.Edit=="string"?Ff(e.Edit):e.elements&&e.type!=="array"?Ff("select"):typeof t.Edit=="string"?Ff(t.Edit):t.Edit}function Ff(e){if(Object.keys($x).includes(e))return $x[e];throw"Control "+e+" not found"}const Vre=e=>({item:t})=>{const n=e.split(".");let r=t;for(const s of n)r.hasOwnProperty(s)?r=r[s]:r=void 0;return r};function Wre(e,t){if(e.filterBy===!1)return!1;if(typeof e.filterBy=="object"){let r=e.filterBy.operators;(!r||!Array.isArray(r))&&(r=t.filterBy?t.filterBy.defaultOperators:[]);let s=Jp;return typeof t.filterBy=="object"&&(s=t.filterBy.validOperators),r=r.filter(o=>s.includes(o)),e.elements&&r.includes(vn)&&(r=r.filter(o=>o!==vn)),r.some(o=>Qh.includes(o))&&(r=r.filter(o=>[...Qh,vn].includes(o))),r.length===0?!1:{isPrimary:!!e.filterBy.isPrimary,operators:r}}if(t.filterBy===!1)return!1;let n=t.filterBy.defaultOperators;return e.elements&&n.includes(vn)&&(n=n.filter(r=>r!==vn)),{operators:n}}function Bre(e){return e.map(t=>{var n,r,s,i,o,a,l;const c=ane(t.type),u=t.getValue||Vre(t.id),d=(n=t.sort)!==null&&n!==void 0?n:function(y,w,b){return c.sort(u({item:y}),u({item:w}),b)},h={...c.isValid,...t.isValid},g=$re(t,c),p=(r=t.render)!==null&&r!==void 0?r:function({item:y,field:w}){return c.render({item:y,field:w})},v=Wre(t,c);return{...t,label:t.label||t.id,header:t.header||t.label||t.id,getValue:u,render:p,sort:d,isValid:h,Edit:g,enableHiding:(s=t.enableHiding)!==null&&s!==void 0?s:!0,enableSorting:(i=(o=t.enableSorting)!==null&&o!==void 0?o:c.enableSorting)!==null&&i!==void 0?i:!0,filterBy:v,readOnly:(a=(l=t.readOnly)!==null&&l!==void 0?l:c.readOnly)!==null&&a!==void 0?a:!1}})}const zre=e=>e.id,Yre=()=>!0,Hre=[],Ure=fl.filter(e=>!e.isPicker);function Gre({header:e,search:t=!0,searchLabel:n=void 0}){const{isShowingFilter:r}=m.useContext(ft);return f.jsxs(f.Fragment,{children:[f.jsxs(Ve,{alignment:"top",justify:"space-between",className:"dataviews__view-actions",spacing:1,children:[f.jsxs(Ve,{justify:"start",expanded:!1,className:"dataviews__search",children:[t&&f.jsx(aE,{label:n}),f.jsx(rE,{})]}),f.jsxs(Ve,{spacing:1,expanded:!1,style:{flexShrink:0},children:[f.jsx($te,{}),e]})]}),r&&f.jsx(sE,{className:"dataviews-filters__container"}),f.jsx(iE,{}),f.jsx(oE,{})]})}function qre({view:e,onChangeView:t,fields:n,search:r=!0,searchLabel:s=void 0,actions:i=Hre,data:o,getItemId:a=zre,getItemLevel:l,isLoading:c=!1,paginationInfo:u,defaultLayouts:d,selection:h,onChangeSelection:g,onClickItem:p,renderItemLink:v,isItemClickable:x=Yre,header:y,children:w,config:b={perPageSizes:[10,20,50,100]},empty:C}){const{infiniteScrollHandler:_}=u,S=m.useRef(null),[k,T]=m.useState(0),M=mw(re=>{T(re[0].borderBoxSize[0].inlineSize)},{box:"border-box"}),[E,O]=m.useState([]),A=h===void 0||g===void 0,P=A?E:h,[L,F]=m.useState(null);function I(re){const Y=typeof re=="function"?re(P):re;A&&O(Y),g&&g(Y)}const j=m.useMemo(()=>Bre(n),[n]),$=m.useMemo(()=>P.filter(re=>o.some(Y=>a(Y)===re)),[P,o,a]),N=nE(j,e),z=m.useMemo(()=>(N||[]).some(re=>re.isPrimary||re.isLocked),[N]),[B,K]=m.useState(z);m.useEffect(()=>{z&&!B&&K(!0)},[z,B]),m.useEffect(()=>{if(!e.infiniteScrollEnabled||!S.current)return;const re=TO(ie=>{const X=ie.target,he=X.scrollTop,je=X.scrollHeight,Te=X.clientHeight;he+Te>=je-100&&(_==null||_())},100),Y=S.current;return Y.addEventListener("scroll",re),()=>{Y.removeEventListener("scroll",re),re.cancel()}},[_,e.infiniteScrollEnabled]);const Q=m.useMemo(()=>Object.fromEntries(Object.entries(d).filter(([re])=>Ure.some(Y=>Y.type===re))),[d]);return Q[e.type]?f.jsx(ft.Provider,{value:{view:e,onChangeView:t,fields:j,actions:i,data:o,isLoading:c,paginationInfo:u,selection:$,onChangeSelection:I,openedFilter:L,setOpenedFilter:F,getItemId:a,getItemLevel:l,isItemClickable:x,onClickItem:p,renderItemLink:v,containerWidth:k,containerRef:S,resizeObserverRef:M,defaultLayouts:Q,filters:N,isShowingFilter:B,setIsShowingFilter:K,config:b,empty:C,hasInfiniteScrollHandler:!!_},children:f.jsx("div",{className:"dataviews-wrapper",ref:S,children:w??f.jsx(Gre,{header:y,search:r,searchLabel:s})})}):null}const Qr=qre;Qr.BulkActionToolbar=qM;Qr.Filters=sE;Qr.FiltersToggle=rE;Qr.Layout=iE;Qr.LayoutSwitcher=lE;Qr.Pagination=XM;Qr.Search=aE;Qr.ViewConfig=cE;Qr.Footer=oE;const wE=["controller","token","_token","tab","configure","route"],SE=["tablePage","perPage","search","sort","sortDirection"],Kre=[...wE,...SE],Xre=e=>{const t=new URLSearchParams(window.location.search),n=new Set(e),r=[];return t.forEach((s,i)=>{if(!Kre.includes(i)&&n.has(i))try{const o=JSON.parse(s||"{}");o&&typeof o=="object"&&o.value!==void 0&&o.operator&&r.push({field:i,operator:o.operator,value:o.value})}catch{}}),r.length>0?r:void 0},Vx=(e,t)=>{var s;const n=new URLSearchParams(window.location.search),r=n.get("sort");return{type:"table",page:parseInt(n.get("tablePage")||"1",10),perPage:parseInt(n.get("perPage")||"10",10),titleField:t,fields:e.filter(i=>i.id!==t).map(i=>i.id),search:n.get("search")||void 0,sort:r?{field:r,direction:((s=n.get("sortDirection"))==null?void 0:s.toLowerCase())||"asc"}:void 0,filters:Xre(e.map(i=>i.id))}},Zre=e=>{var s;const t=new URLSearchParams(window.location.search),n=[];t.forEach((i,o)=>{if(!wE.includes(o)){if(SE.includes(o)){n.push(o);return}try{const a=JSON.parse(i||"{}");a&&typeof a=="object"&&a.value!==void 0&&a.operator&&n.push(o)}catch{}}}),n.forEach(i=>t.delete(i)),t.set("tablePage",String(e.page??1)),t.set("perPage",String(e.perPage??10)),e.search&&t.set("search",e.search),e.sort&&(t.set("sort",e.sort.field),t.set("sortDirection",e.sort.direction)),(s=e.filters)==null||s.forEach(i=>{i.value===void 0||i.value===""||Array.isArray(i.value)&&i.value.length===0||t.set(i.field,JSON.stringify({operator:i.operator,value:i.value}))});const r=`${window.location.pathname}${t.toString()?"?"+t.toString():""}`;window.history.replaceState(null,"",r)},Qre=(e,t)=>{const[n,r]=m.useState(()=>Vx(e,t)),s=m.useCallback(i=>{r(i),Zre(i)},[]);return m.useEffect(()=>{const i=()=>{r(Vx(e,t))};return window.addEventListener("popstate",i),()=>{window.removeEventListener("popstate",i)}},[e,t]),{view:n,updateView:s,setView:r}},Jre={orderId:"id_order",date:"date_add",amount:"total_paid",status:"current_state"},ese=e=>Jre[e]??e,tse=e=>Array.isArray(e)&&e.every(t=>typeof t=="string"),nse=e=>{const t={};return e==null||e.forEach(({field:n,operator:r,value:s})=>{if(!(s===void 0||s===""||Array.isArray(s)&&s.length===0)){if(n==="date"){const i=s;r==="between"&&Array.isArray(i)&&i.length===2?(t.dateFrom=String(i[0]),t.dateTo=String(i[1])):r==="afterInc"?t.dateFrom=String(Array.isArray(i)?i[0]:i):r==="beforeInc"&&(t.dateTo=String(Array.isArray(i)?i[0]:i));return}if(n==="status"||n==="paymentMethod"){if(r!=="isAny")return;tse(s)?t[n]=s:t[n]=[String(s)];return}if(n==="orderId"||n==="paymentId"||n==="customerName"||n==="customerEmail"){if(r!=="contains")return;t[n]=String(s)}}}),t},rse=e=>{const{user:t}=Hx(),[n,r]=m.useState(!0),s=m.useMemo(()=>{var c,u,d;return{orderBy:ese(((c=e.sort)==null?void 0:c.field)??"id_order"),orderDirection:((d=(u=e.sort)==null?void 0:u.direction)==null?void 0:d.toUpperCase())||"DESC",perPage:e.perPage,page:e.page,search:e.search,...nse(e.filters)}},[e]),{data:i,isLoading:o}=LE(s,{refetchOnMountOrArgChange:!0,skip:!t.authorized});m.useEffect(()=>{!o&&i&&n&&r(!1)},[o,i,n]);const a=m.useMemo(()=>(i==null?void 0:i.items)??[],[i]),l=m.useMemo(()=>({totalItems:(i==null?void 0:i.totalItems)??0,totalPages:(i==null?void 0:i.pages)??0}),[i]);return{data:a,paginationInfo:l,isLoading:o,isInitialLoad:n}},sse="_tableCard_1vkmo_1",ise="_tableCardDisabled_1vkmo_27",Wx={tableCard:sse,tableCardDisabled:ise},ose={table:{}},_E=({primaryField:e,fields:t,disabled:n=!1,onRowClick:r,getItemId:s})=>{const{view:i,updateView:o}=Qre(t,e),{data:a,paginationInfo:l,isLoading:c,isInitialLoad:u}=rse(i),d=m.useCallback(g=>{u&&c||o(g)},[u,c,o]),h=m.useCallback(g=>{var b;if(n||!r||c)return;const p=g.target;if(p.closest('button, a, input, select, label, [role="button"], [role="checkbox"]')||((b=window.getSelection())==null?void 0:b.type)==="Range")return;const v=p.closest(".dataviews-view-table__row"),x=v==null?void 0:v.closest("tbody");if(!v||!x)return;const w=Array.from(x.querySelectorAll(".dataviews-view-table__row")).indexOf(v);w<0||w>=a.length||r(String(a[w].id))},[n,r,c,a]);return f.jsx("div",{className:`${Wx.tableCard} ${n?Wx.tableCardDisabled:""}`.trim(),onClick:h,children:f.jsx(Qr,{data:a,isLoading:c,fields:t,view:i,defaultLayouts:ose,paginationInfo:l,onChangeView:d,getItemId:s??(g=>String(g.id))})})};function ase(e,t){return e?e.length>t?`…${e.slice(-t)}`:e:"-"}function sm(e,t){const n=payseraData.localeCode.replace("_","-");return new Intl.NumberFormat(n,{style:"currency",currency:t,unitDisplay:"short"}).format(e)}function CE(e,t=!1){const n=payseraData.localeCode.replace("_","-"),r=new Date(e),s={year:"numeric",month:"short",day:"numeric"};return{date:r.toLocaleDateString(n,s),time:r.toLocaleTimeString(n),separator:t?", ":`
`}}const kE={initiated:"Initiated",processing:"Processing",authorized:"Authorized",settled:"Settled",failed:"Failed",cancelled:"Cancelled",expired:"Expired",refunded:"Refunded",chargeback:"Chargeback",on_hold:"On Hold",pending_settlement:"Pending Settlement",awaiting_authorization:"Awaiting Authorization",rejected:"Rejected"},lse="_statusBadge_1cryv_1",cse="_status_settled_1cryv_13",use="_status_authorized_1cryv_14",dse="_status_processing_1cryv_19",fse="_status_pending_settlement_1cryv_20",hse="_status_awaiting_authorization_1cryv_21",mse="_status_initiated_1cryv_22",gse="_status_failed_1cryv_27",pse="_status_rejected_1cryv_28",vse="_status_cancelled_1cryv_29",yse="_status_expired_1cryv_30",bse="_status_refunded_1cryv_35",xse="_status_chargeback_1cryv_36",wse="_status_on_hold_1cryv_41",Sse="_tableContainer_1cryv_46",_se="_tableDisabled_1cryv_53",Cse="_tableToolbar_1cryv_58",kse="_searchInputWrapper_1cryv_68",Tse="_searchInput_1cryv_68",Mse="_searchInputIcon_1cryv_94",Ese="_totalCount_1cryv_102",Ose="_tableWrapper_1cryv_108",Dse="_table_1cryv_46",Pse="_sortableHeader_1cryv_137",Ase="_clickableRow_1cryv_144",Rse="_loadingCell_1cryv_151",jse="_emptyCell_1cryv_152",Ise="_pagination_1cryv_158",Nse="_paginationInfo_1cryv_168",Fse="_perPageSelect_1cryv_176",Lse="_paginationControls_1cryv_183",$se="_pageButton_1cryv_189",Vse="_pageInfo_1cryv_209",Wse="_disclaimer_1cryv_215",Bse="_drawerOverlay_1cryv_234",zse="_drawerOverlayOpen_1cryv_245",Yse="_drawer_1cryv_234",Hse="_drawerOpen_1cryv_265",Use="_drawerHeader_1cryv_269",Gse="_drawerHeaderTitle_1cryv_278",qse="_drawerClose_1cryv_288",Kse="_drawerContent_1cryv_301",Xse="_drawerLoading_1cryv_307",Zse="_drawerSections_1cryv_313",Qse="_drawerCard_1cryv_319",Jse="_drawerField_1cryv_332",eie="_drawerFieldLight_1cryv_350",tie="_drawerFieldStrong_1cryv_355",nie="_drawerInlineAction_1cryv_361",rie="_tableFilterRow_1cryv_373",sie="_filterBar_1cryv_379",iie="_filterChip_1cryv_386",oie="_filterChipLabel_1cryv_399",aie="_filterChipOperator_1cryv_404",lie="_filterChipInput_1cryv_409",cie="_filterChipSeparator_1cryv_427",uie="_filterChipTrigger_1cryv_431",die="_filterChipCaret_1cryv_450",fie="_filterChipRemove_1cryv_455",hie="_filterChipPopover_1cryv_478",mie="_filterChipPopoverEmpty_1cryv_494",gie="_filterChipPopoverOption_1cryv_500",pie="_filterChipPopoverOptionActive_1cryv_516",vie="_addFilterWrapper_1cryv_520",yie="_addFilterButton_1cryv_525",bie="_addFilterMenu_1cryv_554",xie="_addFilterMenuItem_1cryv_569",wie="_filterResetButton_1cryv_582",Sie="_historyTable_1cryv_600",Nt={statusBadge:lse,statusSettled:cse,statusAuthorized:use,statusProcessing:dse,statusPendingSettlement:fse,statusAwaitingAuthorization:hse,statusInitiated:mse,statusFailed:gse,statusRejected:pse,statusCancelled:vse,statusExpired:yse,statusRefunded:bse,statusChargeback:xse,statusOnHold:wse,tableContainer:Sse,tableDisabled:_se,tableToolbar:Cse,searchInputWrapper:kse,searchInput:Tse,searchInputIcon:Mse,totalCount:Ese,tableWrapper:Ose,table:Dse,sortableHeader:Pse,clickableRow:Ase,loadingCell:Rse,emptyCell:jse,pagination:Ise,paginationInfo:Nse,perPageSelect:Fse,paginationControls:Lse,pageButton:$se,pageInfo:Vse,disclaimer:Wse,drawerOverlay:Bse,drawerOverlayOpen:zse,drawer:Yse,drawerOpen:Hse,drawerHeader:Use,drawerHeaderTitle:Gse,drawerClose:qse,drawerContent:Kse,drawerLoading:Xse,drawerSections:Zse,drawerCard:Qse,drawerField:Jse,drawerFieldLight:eie,drawerFieldStrong:tie,drawerInlineAction:nie,tableFilterRow:rie,filterBar:sie,filterChip:iie,filterChipLabel:oie,filterChipOperator:aie,filterChipInput:lie,filterChipSeparator:cie,filterChipTrigger:uie,filterChipCaret:die,filterChipRemove:fie,filterChipPopover:hie,filterChipPopoverEmpty:mie,filterChipPopoverOption:gie,filterChipPopoverOptionActive:pie,addFilterWrapper:vie,addFilterButton:yie,addFilterMenu:bie,addFilterMenuItem:xie,filterResetButton:wie,historyTable:Sie},TE=({status:e})=>f.jsx("span",{className:`${Nt.statusBadge} ${Nt[`status_${e}`]||""}`.trim(),children:Pe(kE[e]||e)}),_ie=2e3,Cie=({value:e,label:t,className:n})=>{const[r,s]=m.useState(!1),i=async()=>{if(e)try{await navigator.clipboard.writeText(e),s(!0),setTimeout(()=>s(!1),_ie)}catch{s(!1)}};return f.jsx(XE,{type:"button",variant:"secondary",onClick:i,disabled:!e,className:n,children:r?Pe("Copied!"):t??Pe("Copy to Clipboard")})},kie=10,Bx=300,Lf=({title:e,fields:t})=>f.jsxs("div",{className:Nt.drawerCard,children:[f.jsx(Ic,{level:"3",children:e}),t.map((n,r)=>f.jsxs("div",{className:`${Nt.drawerField} ${n.weight==="light"?Nt.drawerFieldLight:""} ${n.weight==="strong"?Nt.drawerFieldStrong:""}`.trim(),children:[n.label&&f.jsx("label",{children:n.label}),f.jsx("span",{children:n.value})]},`${n.label??"field"}-${r}`))]}),ME=e=>{const{date:t,time:n,separator:r}=CE(e,!0);return`${t}${r}${n}`},Tie=e=>[{label:Pe("Payer's name"),value:e.payer_name||"-"},{label:Pe("Payer's email"),value:e.payer_email??e.customer.email??"-"}],Mie=e=>{var r;const t=[{label:Pe("Created"),value:ME(e.date_add),weight:"light"},{label:Pe("Payment ID"),value:e.paysera_payment_id||"-",weight:"light"}];e.payment_link&&t.push({label:Pe("Payment link"),value:f.jsx("span",{className:Nt.drawerInlineAction,children:f.jsx(Cie,{value:e.payment_link})}),weight:"light"}),t.push({label:Pe("Payment method"),value:e.payment_method||"-",weight:"light"}),e.original_amount&&e.exchange_rate&&(t.push({label:Pe("Original amount"),value:sm(e.original_amount.value,e.original_amount.currency),weight:"light"}),t.push({label:Pe("Exchange rate"),value:`1 ${e.original_amount.currency} = ${e.exchange_rate} ${((r=e.paid_amount)==null?void 0:r.currency)??e.amount.currency}`,weight:"light"}));const n=e.paid_amount??e.amount;return t.push({label:Pe("Total"),value:sm(n.value,n.currency),weight:"strong"}),t},Eie=e=>{const t=[];return e.paysera_order_id&&t.push({label:Pe("Order ID"),value:e.paysera_order_id,weight:"light"}),t.push({label:Pe("PrestaShop order"),value:e.id,weight:"light"}),e.order_link&&t.push({value:f.jsx("a",{href:e.order_link,target:"_blank",rel:"noopener noreferrer",children:Pe("View order in PrestaShop")}),weight:"light"}),t},zx=e=>{if(!e)return"-";const t=e.split("_").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" ");return Pe(t)},Oie=({transitions:e})=>e.length===0?f.jsx(im,{children:Pe("No status history available")}):f.jsxs("table",{className:Nt.historyTable,children:[f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{children:Pe("Date")}),f.jsx("th",{children:Pe("Initial status")}),f.jsx("th",{children:Pe("Final status")})]})}),f.jsx("tbody",{children:e.map((t,n)=>f.jsxs("tr",{children:[f.jsx("td",{children:ME(t.date_add)}),f.jsx("td",{children:zx(t.from_status)}),f.jsx("td",{children:zx(t.to_status)})]},`${t.date_add}-${n}`))})]}),EE=m.memo(({paymentId:e,isOpen:t,onClose:n})=>{const[r,s]=m.useState(!1),[i,o]=m.useState(!1),{data:a,isLoading:l,error:c}=$E(e??"",{refetchOnMountOrArgChange:!1,skip:!t||e===null});m.useEffect(()=>{t?(o(!0),setTimeout(()=>s(!0),kie)):(s(!1),setTimeout(()=>o(!1),Bx))},[t]);const u=()=>{s(!1),setTimeout(()=>n(),Bx)};return i?f.jsx("div",{className:`${Nt.drawerOverlay} ${r?Nt.drawerOverlayOpen:""}`.trim(),onClick:u,children:f.jsxs("div",{className:`${Nt.drawer} ${r?Nt.drawerOpen:""}`.trim(),onClick:d=>d.stopPropagation(),children:[f.jsxs("div",{className:Nt.drawerHeader,children:[f.jsxs("div",{className:Nt.drawerHeaderTitle,children:[f.jsx(Ic,{level:"1",children:Pe("Payment details")}),a&&f.jsx(TE,{status:a.status})]}),f.jsx("button",{type:"button",className:Nt.drawerClose,onClick:u,"aria-label":Pe("Close"),children:"×"})]}),f.jsxs("div",{className:Nt.drawerContent,children:[l&&f.jsx("div",{className:Nt.drawerLoading,children:f.jsx(qE,{})}),c!==void 0&&f.jsx(KE,{status:"error",isDismissible:!1,children:f.jsx(im,{children:Pe("Error loading payment details")})}),a&&f.jsxs("div",{className:Nt.drawerSections,children:[f.jsx(Lf,{title:Pe("Payer info"),fields:Tie(a)}),f.jsx(Lf,{title:Pe("Payment options"),fields:Mie(a)}),f.jsx(Lf,{title:Pe("Order information"),fields:Eie(a)}),f.jsxs("div",{className:Nt.drawerCard,children:[f.jsx(Ic,{level:"4",children:Pe("Payments log")}),f.jsx(Oie,{transitions:a.status_transitions})]})]})]})]})}):null});EE.displayName="PaymentOrderDrawer";const OE="orderId",DE=()=>m.useMemo(()=>{const e=Object.entries(kE).map(([t,n])=>({value:t,label:Pe(n)}));return[{id:"orderId",label:Pe("Order ID"),enableGlobalSearch:!0,enableSorting:!0,type:"text",render:({item:t})=>f.jsxs(f.Fragment,{children:["#",t.id]}),filterBy:{operators:["contains"]}},{id:"paymentId",label:Pe("Payment ID"),enableGlobalSearch:!0,enableSorting:!1,type:"text",render:({item:t})=>ase(t.paysera_payment_id,6),filterBy:{operators:["contains"]}},{id:"date",label:Pe("Date"),enableGlobalSearch:!1,enableSorting:!0,type:"date",render:({item:t})=>{const{date:n,time:r}=CE(t.date_add);return f.jsxs(f.Fragment,{children:[n,f.jsx("br",{}),r]})},filterBy:{operators:["beforeInc","afterInc","between"]}},{id:"customerName",label:Pe("Customer name"),enableGlobalSearch:!0,enableSorting:!0,type:"text",render:({item:t})=>`${t.customer.firstname??""} ${t.customer.lastname??""}`.trim()||"-",filterBy:{operators:["contains"]}},{id:"customerEmail",label:Pe("Email"),enableGlobalSearch:!0,enableSorting:!0,type:"text",render:({item:t})=>t.customer.email||"-",filterBy:{operators:["contains"]}},{id:"paymentMethod",label:Pe("Payment method"),enableGlobalSearch:!1,enableSorting:!1,type:"text",render:({item:t})=>t.payment_method||"-",filterBy:!1},{id:"amount",label:Pe("Amount"),enableGlobalSearch:!1,enableSorting:!0,type:"text",render:({item:t})=>sm(t.amount.value,t.amount.currency),filterBy:!1},{id:"status",label:Pe("Status"),enableGlobalSearch:!1,enableSorting:!0,type:"array",render:({item:t})=>t.status?f.jsx(TE,{status:t.status}):"-",filterBy:{operators:["isAny"]},elements:e}]},[]),Die=()=>f.jsxs("div",{className:Nt.disclaimer,children:[f.jsx(Ic,{level:"4",children:Pe("Authorisation required")}),f.jsx(im,{as:"p",children:Pe("Please connect your Paysera account to access this feature.")})]}),PE=m.memo(()=>{const e=DE(),[t,n]=m.useState(null),[r,s]=m.useState(!1),i=m.useCallback(a=>{n(a),s(!0)},[]),o=m.useCallback(()=>{s(!1),n(null)},[]);return f.jsxs(f.Fragment,{children:[f.jsx(_E,{primaryField:OE,fields:e,onRowClick:i,getItemId:a=>String(a.id)}),f.jsx(EE,{paymentId:t,isOpen:r,onClose:o})]})});PE.displayName="PaymentsListAuthorized";const AE=m.memo(()=>{const e=DE();return f.jsxs(f.Fragment,{children:[f.jsx(_E,{primaryField:OE,fields:e,disabled:!0}),f.jsx(Die,{})]})});AE.displayName="PaymentsListUnauthorized";const Pie=()=>{const{user:e}=Hx();return f.jsxs(VE,{className:"paysera-payments-list-page",children:[f.jsx(WE,{title:Pe("Payments List"),subtitle:Pe("Manage your payments and refunds")}),e.authorized?f.jsx(PE,{}):f.jsx(AE,{})]})},RE=m.memo(Pie);RE.displayName="PaymentsListPage";const Yx=document.getElementById("paysera-react-root");Yx&&BE(Yx).render(f.jsx(zE,{children:f.jsx(YE,{children:f.jsx(RE,{})})}))});export default Aie();
