/*! For license information please see dashboard.js.LICENSE.txt */ (()=>{var e,t,r={659:(e,t,r)=>{var n=r(51873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},1882:(e,t,r)=>{var n=r(72552),o=r(23805);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},2404:(e,t,r)=>{var n=r(60270);e.exports=function(e,t){return n(e,t)}},2523:e=>{e.exports=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i{"use strict";var n=r(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},3335:e=>{e.exports=function(e,t){return e>t}},3650:(e,t,r)=>{var n=r(74335)(Object.keys,Object);e.exports=n},3656:(e,t,r)=>{e=r.nmd(e);var n=r(9325),o=r(89935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},4509:(e,t,r)=>{var n=r(12651);e.exports=function(e){return n(this,e).has(e)}},4664:(e,t,r)=>{var n=r(79770),o=r(63345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},4901:(e,t,r)=>{var n=r(72552),o=r(30294),i=r(40346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},5128:(e,t,r)=>{var n=r(80909),o=r(64894);e.exports=function(e,t){var r=-1,i=o(e)?Array(e.length):[];return n(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}},5556:(e,t,r)=>{e.exports=r(2694)()},5861:(e,t,r)=>{var n=r(55580),o=r(68223),i=r(32804),a=r(76545),s=r(28303),l=r(72552),A=r(47473),c="[object Map]",u="[object Promise]",f="[object Set]",d="[object WeakMap]",p="[object DataView]",h=A(n),m=A(o),g=A(i),y=A(a),v=A(s),b=l;(n&&b(new n(new ArrayBuffer(1)))!=p||o&&b(new o)!=c||i&&b(i.resolve())!=u||a&&b(new a)!=f||s&&b(new s)!=d)&&(b=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?A(r):"";if(n)switch(n){case h:return p;case m:return c;case g:return u;case y:return f;case v:return d}return t}),e.exports=b},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7309:(e,t,r)=>{var n=r(62006)(r(24713));e.exports=n},7350:(e,t,r)=>{var n=r(38221),o=r(23805);e.exports=function(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:i,maxWait:t,trailing:a})}},9325:(e,t,r)=>{var n=r(34840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},10124:(e,t,r)=>{var n=r(9325);e.exports=function(){return n.Date.now()}},10308:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r){void 0===r&&(r={});for(var n=[],o="function"==typeof r.replace,A=r.transform||a.returnFirstArg,c=r.library||s,u=c.cloneElement,f=c.createElement,d=c.isValidElement,p=t.length,h=0;h1&&(g=u(g,{key:g.key||h})),n.push(A(g,m,h));continue}}if("text"!==m.type){var y=m,v={};l(y)?((0,a.setStyleProp)(y.attribs.style,y.attribs),v=y.attribs):y.attribs&&(v=(0,i.default)(y.attribs,y.name));var b=void 0;switch(m.type){case"script":case"style":m.children[0]&&(v.dangerouslySetInnerHTML={__html:m.children[0].data});break;case"tag":"textarea"===m.name&&m.children[0]?v.defaultValue=m.children[0].data:m.children&&m.children.length&&(b=e(m.children,r));break;default:continue}p>1&&(v.key=h),n.push(A(f(m.name,v,b),m,h))}else{var w=!m.data.trim().length;if(w&&m.parent&&!(0,a.canTextBeChildOfNode)(m.parent))continue;if(r.trim&&w)continue;n.push(A(m.data,m,h))}}return 1===n.length?n[0]:n};var o=r(51609),i=n(r(20840)),a=r(74958),s={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function l(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,a.isCustomComponent)(e.name,e.attribs)}},10392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},10776:(e,t,r)=>{var n=r(30756),o=r(95950);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,n(a)]}return t}},11331:(e,t,r)=>{var n=r(72552),o=r(28879),i=r(40346),a=Function.prototype,s=Object.prototype,l=a.toString,A=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=A.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==c}},11741:(e,t,r)=>{var n=r(98023);e.exports=function(e){return n(e)&&e!=+e}},12507:(e,t,r)=>{var n=r(28754),o=r(49698),i=r(63912),a=r(13222);e.exports=function(e){return function(t){t=a(t);var r=o(t)?i(t):void 0,s=r?r[0]:t.charAt(0),l=r?n(r,1).join(""):t.slice(1);return s[e]()+l}}},12651:(e,t,r)=>{var n=r(74218);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},12749:(e,t,r)=>{var n=r(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},13222:(e,t,r)=>{var n=r(77556);e.exports=function(e){return null==e?"":n(e)}},14210:(e,t,r)=>{"use strict";function n(e,t,r,n,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{o[e]=new n(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{o[e]=new n(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{o[e]=new n(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{o[e]=new n(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{o[e]=new n(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{o[e]=new n(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{o[e]=new n(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{o[e]=new n(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{o[e]=new n(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,a);o[t]=new n(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,a);o[t]=new n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,a);o[t]=new n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{o[e]=new n(e,1,!1,e.toLowerCase(),null,!1,!1)})),o.xlinkHref=new n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{o[e]=new n(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:s,SAME:l,possibleStandardNames:A}=r(96811),c=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),u=Object.keys(A).reduce(((e,t)=>{const r=A[t];return r===l?e[t]=t:r===s?e[t.toLowerCase()]=t:e[t]=r,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=c,t.possibleStandardNames=u},14248:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},15325:(e,t,r)=>{var n=r(96131);e.exports=function(e,t){return!(null==e||!e.length)&&n(e,t,0)>-1}},15389:(e,t,r)=>{var n=r(93663),o=r(87978),i=r(83488),a=r(56449),s=r(50583);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):n(e):s(e)}},17255:(e,t,r)=>{var n=r(47422);e.exports=function(e){return function(t){return n(t,e)}}},17277:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{var n=r(99374),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},17670:(e,t,r)=>{var n=r(12651);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},19219:e=>{e.exports=function(e,t){return e.has(t)}},19570:(e,t,r)=>{var n=r(37334),o=r(93243),i=r(83488),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},19747:(e,t,r)=>{var n=r(17277),o=r(23777),i=r(15389),a=r(56449),s=r(36800);e.exports=function(e,t,r){var l=a(e)?n:o;return r&&s(e,t,r)&&(t=void 0),l(e,i(t,3))}},19788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,A="";function c(e){return e?e.replace(l,A):A}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var u=1,f=1;function d(e){var t=e.match(r);t&&(u+=t.length);var n=e.lastIndexOf("\n");f=~n?e.length-n:f+e.length}function p(){var e={line:u,column:f};return function(t){return t.position=new h(e),v(),t}}function h(e){this.start=e,this.end={line:u,column:f},this.source=l.source}h.prototype.content=e;var m=[];function g(t){var r=new Error(l.source+":"+u+":"+f+": "+t);if(r.reason=t,r.filename=l.source,r.line=u,r.column=f,r.source=e,!l.silent)throw r;m.push(r)}function y(t){var r=t.exec(e);if(r){var n=r[0];return d(n),e=e.slice(n.length),r}}function v(){y(n)}function b(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;A!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,A===e.charAt(r-1))return g("End of comment missing");var n=e.slice(2,r-2);return f+=2,d(n),e=e.slice(r),f+=2,t({type:"comment",comment:n})}}function x(){var e=p(),r=y(o);if(r){if(w(),!y(i))return g("property missing ':'");var n=y(a),l=e({type:"declaration",property:c(r[0].replace(t,A)),value:n?c(n[0].replace(t,A)):A});return y(s),l}}return v(),function(){var e,t=[];for(b(t);e=x();)!1!==e&&(t.push(e),b(t));return t}()}},20317:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},20840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var r={},A=Boolean(e.type&&s[e.type]);for(var c in e){var u=e[c];if((0,n.isCustomAttribute)(c))r[c]=u;else{var f=c.toLowerCase(),d=l(f);if(d){var p=(0,n.getPropertyInfo)(d);switch(i.includes(d)&&a.includes(t)&&!A&&(d=l("default"+f)),r[d]=u,p&&p.type){case n.BOOLEAN:r[d]=!0;break;case n.OVERLOADED_BOOLEAN:""===u&&(r[d]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(r[c]=u)}}return(0,o.setStyleProp)(e.style,r),r};var n=r(14210),o=r(74958),i=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return n.possibleStandardNames[e]}},21020:(e,t,r)=>{"use strict";var n=r(51609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,r){var n,i={},A=null,c=null;for(n in void 0!==r&&(A=""+r),void 0!==t.key&&(A=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,n)&&!l.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:A,ref:c,props:i,_owner:s.current}}t.Fragment=i,t.jsx=A,t.jsxs=A},21549:(e,t,r)=>{var n=r(22032),o=r(63862),i=r(66721),a=r(12749),s=r(35749);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(51873),o=r(37828),i=r(75288),a=r(25911),s=r(20317),l=r(84247),A=n?n.prototype:void 0,c=A?A.valueOf:void 0;e.exports=function(e,t,r,n,A,u,f){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!u(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=s;case"[object Set]":var p=1&n;if(d||(d=l),e.size!=t.size&&!p)return!1;var h=f.get(e);if(h)return h==t;n|=2,f.set(e,t);var m=a(d(e),d(t),n,A,u,f);return f.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},22032:(e,t,r)=>{var n=r(81042);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},23181:(e,t,r)=>{var n=r(85508)();e.exports=n},23777:(e,t,r)=>{var n=r(80909);e.exports=function(e,t){var r=!0;return n(e,(function(e,n,o){return r=!!t(e,n,o)})),r}},23805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},24128:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new o(n,i||e,a),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o{var n=r(2523),o=r(15389),i=r(83870),a=Math.max;e.exports=function(e,t,r){var s=null==e?0:e.length;if(!s)return-1;var l=null==r?0:i(r);return l<0&&(l=a(s+l,0)),n(e,o(t,3),l)}},24739:(e,t,r)=>{var n=r(26025);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},25160:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n{var n=r(38859),o=r(14248),i=r(19219);e.exports=function(e,t,r,a,s,l){var A=1&r,c=e.length,u=t.length;if(c!=u&&!(A&&u>c))return!1;var f=l.get(e),d=l.get(t);if(f&&d)return f==t&&d==e;var p=-1,h=!0,m=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++p{var n=r(75288);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},27301:e=>{e.exports=function(e){return function(t){return e(t)}}},27534:(e,t,r)=>{var n=r(72552),o=r(40346);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},28077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},28303:(e,t,r)=>{var n=r(56110)(r(9325),"WeakMap");e.exports=n},28586:(e,t,r)=>{var n=r(56449),o=r(44394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},28754:(e,t,r)=>{var n=r(25160);e.exports=function(e,t,r){var o=e.length;return r=void 0===r?o:r,!t&&r>=o?e:n(e,t,r)}},28879:(e,t,r)=>{var n=r(74335)(Object.getPrototypeOf,Object);e.exports=n},29817:e=>{e.exports=function(e){return this.__data__.has(e)}},29905:e=>{e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},30361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e{var n=r(86649),o=r(95950);e.exports=function(e,t){return e&&n(e,t,o)}},30756:(e,t,r)=>{var n=r(23805);e.exports=function(e){return e==e&&!n(e)}},31175:(e,t,r)=>{var n=r(26025);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},31380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},31684:(e,t,r)=>{var n=r(93599),o=r(56176),i=r(83488);e.exports=function(e){return e&&e.length?n(e,i,o):void 0}},31769:(e,t,r)=>{var n=r(56449),o=r(28586),i=r(61802),a=r(13222);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},31800:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},32804:(e,t,r)=>{var n=r(56110)(r(9325),"Promise");e.exports=n},32865:(e,t,r)=>{var n=r(19570),o=r(51811)(n);e.exports=o},33031:(e,t,r)=>{var n=r(83120),o=r(46155),i=r(69302),a=r(36800),s=i((function(e,t){if(null==e)return[];var r=t.length;return r>1&&a(e,t[0],t[1])?t=[]:r>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,n(t,1),[])}));e.exports=s},34840:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},34932:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r{var n=r(81042);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},36800:(e,t,r)=>{var n=r(75288),o=r(64894),i=r(30361),a=r(23805);e.exports=function(e,t,r){if(!a(r))return!1;var s=typeof t;return!!("number"==s?o(r)&&i(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},36957:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=f;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(f);t.CDATA=d;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(f);t.Document=p;var h=function(e){function t(t,r,n,o){void 0===n&&(n=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,n)||this;return i.name=t,i.attribs=r,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(f);function m(e){return(0,a.isTag)(e)}function g(e){return e.type===a.ElementType.CDATA}function y(e){return e.type===a.ElementType.Text}function v(e){return e.type===a.ElementType.Comment}function b(e){return e.type===a.ElementType.Directive}function w(e){return e.type===a.ElementType.Root}function x(e,t){var r;if(void 0===t&&(t=!1),y(e))r=new A(e.data);else if(v(e))r=new c(e.data);else if(m(e)){var n=t?C(e.children):[],o=new h(e.name,i({},e.attribs),n);n.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),r=o}else if(g(e)){n=t?C(e.children):[];var a=new d(n);n.forEach((function(e){return e.parent=a})),r=a}else if(w(e)){n=t?C(e.children):[];var s=new p(n);n.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),r=s}else{if(!b(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new u(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function C(e){for(var t=e.map((function(e){return x(e,!0)})),r=1;r{var n=r(4901),o=r(27301),i=r(86009),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},37217:(e,t,r)=>{var n=r(80079),o=r(51420),i=r(90938),a=r(63605),s=r(29817),l=r(80945);function A(e){var t=this.__data__=new n(e);this.size=t.size}A.prototype.clear=o,A.prototype.delete=i,A.prototype.get=a,A.prototype.has=s,A.prototype.set=l,e.exports=A},37334:e=>{e.exports=function(e){return function(){return e}}},37828:(e,t,r)=>{var n=r(9325).Uint8Array;e.exports=n},38221:(e,t,r)=>{var n=r(23805),o=r(10124),i=r(99374),a=Math.max,s=Math.min;e.exports=function(e,t,r){var l,A,c,u,f,d,p=0,h=!1,m=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=l,n=A;return l=A=void 0,p=t,u=e.apply(n,r)}function v(e){var r=e-d;return void 0===d||r>=t||r<0||m&&e-p>=c}function b(){var e=o();if(v(e))return w(e);f=setTimeout(b,function(e){var r=t-(e-d);return m?s(r,c-(e-p)):r}(e))}function w(e){return f=void 0,g&&l?y(e):(l=A=void 0,u)}function x(){var e=o(),r=v(e);if(l=arguments,A=this,d=e,r){if(void 0===f)return function(e){return p=e,f=setTimeout(b,t),h?y(e):u}(d);if(m)return clearTimeout(f),f=setTimeout(b,t),y(d)}return void 0===f&&(f=setTimeout(b,t)),u}return t=i(t)||0,n(r)&&(h=!!r.leading,c=(m="maxWait"in r)?a(i(r.maxWait)||0,t):c,g="trailing"in r?!!r.trailing:g),x.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=d=A=f=void 0},x.flush=function(){return void 0===f?u:w(o())},x}},38329:(e,t,r)=>{var n=r(64894);e.exports=function(e,t){return function(r,o){if(null==r)return r;if(!n(r))return e(r,o);for(var i=r.length,a=t?i:-1,s=Object(r);(t?a--:++a(l=(a=Math.ceil(f/7))>l?a+1:l+1)&&(i=l,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((l=A.length)-(i=c.length)<0&&(i=l,n=c,c=A,A=n),r=0;i;)r=(A[--i]=A[i]+c[i]+r)/p|0,A[i]%=p;for(r&&(A.unshift(r),++o),l=A.length;0==A[--l];)A.pop();return t.d=A,t.e=o,s?O(t,f):t}function y(e,t,r){if(e!==~~e||er)throw Error(A+e)}function v(e){var t,r,n,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;te.e^i.s<0?1:-1;for(t=0,r=(n=i.d.length)<(o=e.d.length)?n:o;te.d[t]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1},m.decimalPlaces=m.dp=function(){var e=this,t=e.d.length-1,r=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)r--;return r<0?0:r},m.dividedBy=m.div=function(e){return b(this,new this.constructor(e))},m.dividedToIntegerBy=m.idiv=function(e){var t=this.constructor;return O(b(this,new t(e),0,1),t.precision)},m.equals=m.eq=function(e){return!this.cmp(e)},m.exponent=function(){return x(this)},m.greaterThan=m.gt=function(e){return this.cmp(e)>0},m.greaterThanOrEqualTo=m.gte=function(e){return this.cmp(e)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return 0===this.s},m.lessThan=m.lt=function(e){return this.cmp(e)<0},m.lessThanOrEqualTo=m.lte=function(e){return this.cmp(e)<1},m.logarithm=m.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(o))throw Error(l+"NaN");if(r.s<1)throw Error(l+(r.s?"NaN":"-Infinity"));return r.eq(o)?new n(0):(s=!1,t=b(E(r,a),E(e,a),a),s=!0,O(t,i))},m.minus=m.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?S(t,e):g(t,(e.s=-e.s,e))},m.modulo=m.mod=function(e){var t,r=this,n=r.constructor,o=n.precision;if(!(e=new n(e)).s)throw Error(l+"NaN");return r.s?(s=!1,t=b(r,e,0,1).times(e),s=!0,r.minus(t)):O(new n(r),o)},m.naturalExponential=m.exp=function(){return w(this)},m.naturalLogarithm=m.ln=function(){return E(this)},m.negated=m.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},m.plus=m.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?g(t,e):S(t,(e.s=-e.s,e))},m.precision=m.sd=function(e){var t,r,n,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(A+e);if(t=x(o)+1,r=7*(n=o.d.length-1)+1,n=o.d[n]){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},m.squareRoot=m.sqrt=function(){var e,t,r,n,o,i,a,A=this,c=A.constructor;if(A.s<1){if(!A.s)return new c(0);throw Error(l+"NaN")}for(e=x(A),s=!1,0==(o=Math.sqrt(+A))||o==1/0?(((t=v(A.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=u((e+1)/2)-(e<0||e%2),n=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new c(o.toString()),o=a=(r=c.precision)+3;;)if(n=(i=n).plus(b(A,i,a+2)).times(.5),v(i.d).slice(0,a)===(t=v(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(O(i,r+1,0),i.times(i).eq(A)){n=i;break}}else if("9999"!=t)break;a+=4}return s=!0,O(n,r)},m.times=m.mul=function(e){var t,r,n,o,i,a,l,A,c,u=this,f=u.constructor,d=u.d,h=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,r=u.e+e.e,(A=d.length)<(c=h.length)&&(i=d,d=h,h=i,a=A,A=c,c=a),i=[],n=a=A+c;n--;)i.push(0);for(n=c;--n>=0;){for(t=0,o=A+n;o>n;)l=i[o]+h[n]*d[o-n-1]+t,i[o--]=l%p|0,t=l/p|0;i[o]=(i[o]+t)%p|0}for(;!i[--a];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,s?O(e,f.precision):e},m.toDecimalPlaces=m.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(y(e,0,i),void 0===t?t=n.rounding:y(t,0,8),O(r,e+x(r)+1,t))},m.toExponential=function(e,t){var r,n=this,o=n.constructor;return void 0===e?r=k(n,!0):(y(e,0,i),void 0===t?t=o.rounding:y(t,0,8),r=k(n=O(new o(n),e+1,t),!0,e+1)),r},m.toFixed=function(e,t){var r,n,o=this,a=o.constructor;return void 0===e?k(o):(y(e,0,i),void 0===t?t=a.rounding:y(t,0,8),r=k((n=O(new a(o),e+x(o)+1,t)).abs(),!1,e+x(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},m.toInteger=m.toint=function(){var e=this,t=e.constructor;return O(new t(e),x(e)+1,t.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(e){var t,r,n,i,a,A,c=this,f=c.constructor,d=+(e=new f(e));if(!e.s)return new f(o);if(!(c=new f(c)).s){if(e.s<1)throw Error(l+"Infinity");return c}if(c.eq(o))return c;if(n=f.precision,e.eq(o))return O(c,n);if(A=(t=e.e)>=(r=e.d.length-1),a=c.s,A){if((r=d<0?-d:d)<=9007199254740991){for(i=new f(o),t=Math.ceil(n/7+4),s=!1;r%2&&P((i=i.times(c)).d,t),0!==(r=u(r/2));)P((c=c.times(c)).d,t);return s=!0,e.s<0?new f(o).div(i):O(i,n)}}else if(a<0)throw Error(l+"NaN");return a=a<0&&1&e.d[Math.max(t,r)]?-1:1,c.s=1,s=!1,i=e.times(E(c,n+12)),s=!0,(i=w(i)).s=a,i},m.toPrecision=function(e,t){var r,n,o=this,a=o.constructor;return void 0===e?n=k(o,(r=x(o))<=a.toExpNeg||r>=a.toExpPos):(y(e,1,i),void 0===t?t=a.rounding:y(t,0,8),n=k(o=O(new a(o),e,t),e<=(r=x(o))||r<=a.toExpNeg,e)),n},m.toSignificantDigits=m.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(y(e,1,i),void 0===t?t=r.rounding:y(t,0,8)),O(new r(this),e,t)},m.toString=m.valueOf=m.val=m.toJSON=function(){var e=this,t=x(e),r=e.constructor;return k(e,t<=r.toExpNeg||t>=r.toExpPos)};var b=function(){function e(e,t){var r,n=0,o=e.length;for(e=e.slice();o--;)r=e[o]*t+n,e[o]=r%p|0,n=r/p|0;return n&&e.unshift(n),e}function t(e,t,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=e[r]1;)e.shift()}return function(n,o,i,a){var s,A,c,u,f,d,h,m,g,y,v,b,w,C,M,E,j,S,k=n.constructor,P=n.s==o.s?1:-1,N=n.d,T=o.d;if(!n.s)return new k(n);if(!o.s)throw Error(l+"Division by zero");for(A=n.e-o.e,j=T.length,M=N.length,m=(h=new k(P)).d=[],c=0;T[c]==(N[c]||0);)++c;if(T[c]>(N[c]||0)&&--A,(b=null==i?i=k.precision:a?i+(x(n)-x(o))+1:i)<0)return new k(0);if(b=b/7+2|0,c=0,1==j)for(u=0,T=T[0],b++;(c1&&(T=e(T,u),N=e(N,u),j=T.length,M=N.length),C=j,y=(g=N.slice(0,j)).length;y=p/2&&++E;do{u=0,(s=t(T,g,j,y))<0?(v=g[0],j!=y&&(v=v*p+(g[1]||0)),(u=v/E|0)>1?(u>=p&&(u=p-1),1==(s=t(f=e(T,u),g,d=f.length,y=g.length))&&(u--,r(f,j16)throw Error(c+x(e));if(!e.s)return new d(o);for(null==t?(s=!1,l=p):l=t,a=new d(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(l+=Math.log(f(2,u))/Math.LN10*2+5|0,r=n=i=new d(o),d.precision=l;;){if(n=O(n.times(e),l),r=r.times(++A),v((a=i.plus(b(n,r,l))).d).slice(0,l)===v(i.d).slice(0,l)){for(;u--;)i=O(i.times(i),l);return d.precision=p,null==t?(s=!0,O(i,p)):i}i=a}}function x(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function C(e,t,r){if(t>e.LN10.sd())throw s=!0,r&&(e.precision=r),Error(l+"LN10 precision limit exceeded");return O(new e(e.LN10),t)}function M(e){for(var t="";e--;)t+="0";return t}function E(e,t){var r,n,i,a,A,c,u,f,d,p=1,h=e,m=h.d,g=h.constructor,y=g.precision;if(h.s<1)throw Error(l+(h.s?"NaN":"-Infinity"));if(h.eq(o))return new g(0);if(null==t?(s=!1,f=y):f=t,h.eq(10))return null==t&&(s=!0),C(g,f);if(f+=10,g.precision=f,n=(r=v(m)).charAt(0),a=x(h),!(Math.abs(a)<15e14))return u=C(g,f+2,y).times(a+""),h=E(new g(n+"."+r.slice(1)),f-10).plus(u),g.precision=y,null==t?(s=!0,O(h,y)):h;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=v((h=h.times(e)).d)).charAt(0),p++;for(a=x(h),n>1?(h=new g("0."+r),a++):h=new g(n+"."+r.slice(1)),c=A=h=b(h.minus(o),h.plus(o),f),d=O(h.times(h),f),i=3;;){if(A=O(A.times(d),f),v((u=c.plus(b(A,new g(i),f))).d).slice(0,f)===v(c.d).slice(0,f))return c=c.times(2),0!==a&&(c=c.plus(C(g,f+2,y).times(a+""))),c=b(c,new g(p),f),g.precision=y,null==t?(s=!0,O(c,y)):c;c=u,i+=2}}function j(e,t){var r,n,o;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);)++n;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(n,o)){if(o-=n,r=r-n-1,e.e=u(r/7),e.d=[],n=(r+1)%7,r<0&&(n+=7),nh||e.e<-h))throw Error(c+r)}else e.s=0,e.e=0,e.d=[0];return e}function O(e,t,r){var n,o,i,a,l,A,d,m,g=e.d;for(a=1,i=g[0];i>=10;i/=10)a++;if((n=t-a)<0)n+=7,o=t,d=g[m=0];else{if((m=Math.ceil((n+1)/7))>=(i=g.length))return e;for(d=i=g[m],a=1;i>=10;i/=10)a++;o=(n%=7)-7+a}if(void 0!==r&&(l=d/(i=f(10,a-o-1))%10|0,A=t<0||void 0!==g[m+1]||d%i,A=r<4?(l||A)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||A||6==r&&(n>0?o>0?d/f(10,a-o):0:g[m-1])%10&1||r==(e.s<0?8:7))),t<1||!g[0])return A?(i=x(e),g.length=1,t=t-i-1,g[0]=f(10,(7-t%7)%7),e.e=u(-t/7)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==n?(g.length=m,i=1,m--):(g.length=m+1,i=f(10,7-n),g[m]=o>0?(d/f(10,a-o)%f(10,o)|0)*i:0),A)for(;;){if(0==m){(g[0]+=i)==p&&(g[0]=1,++e.e);break}if(g[m]+=i,g[m]!=p)break;g[m--]=0,i=1}for(n=g.length;0===g[--n];)g.pop();if(s&&(e.e>h||e.e<-h))throw Error(c+x(e));return e}function S(e,t){var r,n,o,i,a,l,A,c,u,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),s?O(t,h):t;if(A=e.d,f=t.d,n=t.e,c=e.e,A=A.slice(),a=c-n){for((u=a<0)?(r=A,a=-a,l=f.length):(r=f,n=c,l=A.length),a>(o=Math.max(Math.ceil(h/7),l)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((u=(o=A.length)<(l=f.length))&&(l=o),o=0;o0;--o)A[l++]=0;for(o=f.length;o>a;){if(A[--o]0?i=i.charAt(0)+"."+i.slice(1)+M(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+M(-o-1)+i,r&&(n=r-a)>0&&(i+=M(n))):o>=a?(i+=M(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+M(n))):((n=o+1)0&&(o+1===a&&(i+="."),i+=M(n))),e.s<0?"-"+i:i}function P(e,t){if(e.length>t)return e.length=t,!0}function N(e){if(!e||"object"!=typeof e)throw Error(l+"Object expected");var t,r,n,o=["precision",1,i,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=o[t+1]&&n<=o[t+2]))throw Error(A+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(A+r+": "+n);this[r]=new this(n)}return this}(a=function e(t){var r,n,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(A+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):j(t,e.toString())}if("string"!=typeof e)throw Error(A+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!d.test(e))throw Error(A+e);j(t,e)}if(i.prototype=m,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=N,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r{var n=r(53661),o=r(31380),i=r(51459);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t{e.exports=function(e){return null!=e&&"object"==typeof e}},41141:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=r(45413),a=r(36957);o(r(36957),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,r){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?i.ElementType.Tag:void 0,n=new a.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var r=new a.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new a.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},41799:(e,t,r)=>{var n=r(37217),o=r(60270);e.exports=function(e,t,r,i){var a=r.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var A=r[a];if(l&&A[2]?A[1]!==e[A[0]]:!(A[0]in e))return!1}for(;++a{var t="\\ud800-\\udfff",r="["+t+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+n+"|"+o+")?",A="[\\ufe0e\\ufe0f]?",c=A+l+"(?:\\u200d(?:"+[i,a,s].join("|")+")"+A+l+")*",u="(?:"+[i+n+"?",n,a,s,r].join("|")+")",f=RegExp(o+"(?="+o+")|"+u+c,"g");e.exports=function(e){return e.match(f)||[]}},42426:(e,t,r)=>{var n=r(14248),o=r(15389),i=r(90916),a=r(56449),s=r(36800);e.exports=function(e,t,r){var l=a(e)?n:i;return r&&s(e,t,r)&&(t=void 0),l(e,o(t,3))}},43360:(e,t,r)=>{var n=r(93243);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},43714:(e,t,r)=>{var n=r(53730);e.exports=function(e,t,r){for(var o=-1,i=e.criteria,a=t.criteria,s=i.length,l=r.length;++o=l?A:A*("desc"==r[o]?-1:1)}return e.index-t.index}},44394:(e,t,r)=>{var n=r(72552),o=r(40346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},44517:(e,t,r)=>{var n=r(76545),o=r(63950),i=r(84247),a=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:o;e.exports=a},45083:(e,t,r)=>{var n=r(1882),o=r(87296),i=r(23805),a=r(47473),s=/^\[object .+?Constructor\]$/,l=Function.prototype,A=Object.prototype,c=l.toString,u=A.hasOwnProperty,f=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?f:s).test(a(e))}},45413:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(r=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},45891:(e,t,r)=>{var n=r(51873),o=r(72428),i=r(56449),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},46155:(e,t,r)=>{var n=r(34932),o=r(47422),i=r(15389),a=r(5128),s=r(73937),l=r(27301),A=r(43714),c=r(83488),u=r(56449);e.exports=function(e,t,r){t=t.length?n(t,(function(e){return u(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[c];var f=-1;t=n(t,l(i));var d=a(e,(function(e,r,o){return{criteria:n(t,(function(t){return t(e)})),index:++f,value:e}}));return s(d,(function(e,t){return A(e,t,r)}))}},47237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},47307:(e,t,r)=>{var n=r(83120),o=r(55378);e.exports=function(e,t){return n(o(e,t),1)}},47422:(e,t,r)=>{var n=r(31769),o=r(77797);e.exports=function(e,t){for(var r=0,i=(t=n(t,e)).length;null!=e&&r{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},48655:(e,t,r)=>{var n=r(26025);e.exports=function(e){return n(this.__data__,e)>-1}},49326:(e,t,r)=>{var n=r(31769),o=r(72428),i=r(56449),a=r(30361),s=r(30294),l=r(77797);e.exports=function(e,t,r){for(var A=-1,c=(t=n(t,e)).length,u=!1;++A{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},50002:(e,t,r)=>{var n=r(82199),o=r(4664),i=r(95950);e.exports=function(e){return n(e,i,o)}},50014:(e,t,r)=>{var n=r(15389),o=r(55765);e.exports=function(e,t){return e&&e.length?o(e,n(t,2)):[]}},50104:(e,t,r)=>{var n=r(53661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},50442:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,a.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||l),t):[]};var o=n(r(92471));t.htmlToDOM=o.default;var i=n(r(20840));t.attributesToProps=i.default;var a=n(r(10308));t.domToReact=a.default;var s=r(41141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return s.Text}});var l={lowerCaseAttributeNames:!1}},50583:(e,t,r)=>{var n=r(47237),o=r(17255),i=r(28586),a=r(77797);e.exports=function(e){return i(e)?n(a(e)):o(e)}},50689:(e,t,r)=>{var n=r(50002),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,a,s){var l=1&r,A=n(e),c=A.length;if(c!=n(t).length&&!l)return!1;for(var u=c;u--;){var f=A[u];if(!(l?f in t:o.call(t,f)))return!1}var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var h=!0;s.set(e,t),s.set(t,e);for(var m=l;++u{var n=r(80079);e.exports=function(){this.__data__=new n,this.size=0}},51459:e=>{e.exports=function(e){return this.__data__.has(e)}},51609:e=>{"use strict";e.exports=window.React},51811:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},51873:(e,t,r)=>{var n=r(9325).Symbol;e.exports=n},52199:(e,t,r)=>{"use strict";e.exports=r(78867)},53661:(e,t,r)=>{var n=r(63040),o=r(17670),i=r(90289),a=r(4509),s=r(72949);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(44394);e.exports=function(e,t){if(e!==t){var r=void 0!==e,o=null===e,i=e==e,a=n(e),s=void 0!==t,l=null===t,A=t==t,c=n(t);if(!l&&!c&&!a&&e>t||a&&s&&A&&!l&&!c||o&&s&&A||!r&&A||!i)return 1;if(!o&&!a&&!c&&e{var n=r(72552),o=r(40346);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==n(e)}},54128:(e,t,r)=>{var n=r(31800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},55378:(e,t,r)=>{var n=r(34932),o=r(15389),i=r(5128),a=r(56449);e.exports=function(e,t){return(a(e)?n:i)(e,o(t,3))}},55481:(e,t,r)=>{var n=r(9325)["__core-js_shared__"];e.exports=n},55527:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},55580:(e,t,r)=>{var n=r(56110)(r(9325),"DataView");e.exports=n},55765:(e,t,r)=>{var n=r(38859),o=r(15325),i=r(29905),a=r(19219),s=r(44517),l=r(84247);e.exports=function(e,t,r){var A=-1,c=o,u=e.length,f=!0,d=[],p=d;if(r)f=!1,c=i;else if(u>=200){var h=t?null:s(e);if(h)return l(h);f=!1,c=a,p=new n}else p=t?[]:d;e:for(;++A{var n=r(12507)("toUpperCase");e.exports=n},56110:(e,t,r)=>{var n=r(45083),o=r(10392);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},56176:e=>{e.exports=function(e,t){return e{var t=Array.isArray;e.exports=t},56757:(e,t,r)=>{var n=r(91033),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a{var n=r(47422);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},59350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60270:(e,t,r)=>{var n=r(87068),o=r(40346);e.exports=function e(t,r,i,a,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,i,a,e,s))}},61074:e=>{e.exports=function(e){return e.split("")}},61802:(e,t,r)=>{var n=r(62224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)})),t}));e.exports=a},62006:(e,t,r)=>{var n=r(15389),o=r(64894),i=r(95950);e.exports=function(e){return function(t,r,a){var s=Object(t);if(!o(t)){var l=n(r,3);t=i(t),r=function(e){return l(s[e],e,s)}}var A=e(t,r,a);return A>-1?s[l?t[A]:A]:void 0}}},62224:(e,t,r)=>{var n=r(50104);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},63040:(e,t,r)=>{var n=r(21549),o=r(80079),i=r(68223);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},63345:e=>{e.exports=function(){return[]}},63605:e=>{e.exports=function(e){return this.__data__.get(e)}},63702:e=>{e.exports=function(){this.__data__=[],this.size=0}},63862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},63912:(e,t,r)=>{var n=r(61074),o=r(49698),i=r(42054);e.exports=function(e){return o(e)?i(e):n(e)}},63950:e=>{e.exports=function(){}},64894:(e,t,r)=>{var n=r(1882),o=r(30294);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},65496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,r,f=(e=(0,n.escapeSpecialCharacters)(e)).match(s),d=f&&f[1]?f[1].toLowerCase():"";switch(d){case o:var p=u(e);return l.test(e)||null===(t=null==(g=p.querySelector(i))?void 0:g.parentNode)||void 0===t||t.removeChild(g),A.test(e)||null===(r=null==(g=p.querySelector(a))?void 0:g.parentNode)||void 0===r||r.removeChild(g),p.querySelectorAll(o);case i:case a:var m=c(e).querySelectorAll(d);return A.test(e)&&l.test(e)?m[0].parentNode.childNodes:m;default:return h?h(e):(g=c(e,a).querySelector(a)).childNodes;var g}};var n=r(67731),o="html",i="head",a="body",s=/<([a-zA-Z]+[0-9]?)/,l=//i,A=//i,c=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},f="object"==typeof window&&window.DOMParser;if("function"==typeof f){var d=new f;c=u=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();c=function(e,t){if(t){var r=p.documentElement.querySelector(t);return r&&(r.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var h,m="object"==typeof document&&document.createElement("template");m&&m.content&&(h=function(e){return m.innerHTML=e,m.content.childNodes})},66721:(e,t,r)=>{var n=r(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},67197:e=>{e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},67731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=i,t.escapeSpecialCharacters=function(e){return e.replace(o.CARRIAGE_RETURN_REGEX,o.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=s,t.formatDOM=function e(t,r,o){void 0===r&&(r=null);for(var l,A=[],c=0,u=t.length;c{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},68223:(e,t,r)=>{var n=r(56110)(r(9325),"Map");e.exports=n},69302:(e,t,r)=>{var n=r(83488),o=r(56757),i=r(32865);e.exports=function(e,t){return i(o(e,t,n),e+"")}},69843:e=>{e.exports=function(e){return null==e}},70080:(e,t,r)=>{var n=r(26025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():o.call(t,r,1),--this.size,0))}},70695:(e,t,r)=>{var n=r(78096),o=r(72428),i=r(56449),a=r(3656),s=r(30361),l=r(37167),A=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),c=!r&&o(e),u=!r&&!c&&a(e),f=!r&&!c&&!u&&l(e),d=r||c||u||f,p=d?n(e.length,String):[],h=p.length;for(var m in e)!t&&!A.call(e,m)||d&&("length"==m||u&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,h))||p.push(m);return p}},72428:(e,t,r)=>{var n=r(27534),o=r(40346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},72552:(e,t,r)=>{var n=r(51873),o=r(659),i=r(59350),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},72949:(e,t,r)=>{var n=r(12651);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},73916:(e,t,r)=>{var n=r(43360),o=r(30641),i=r(15389);e.exports=function(e,t){var r={};return t=i(t,3),o(e,(function(e,o,i){n(r,o,t(e,o,i))})),r}},73937:e=>{e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},74218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},74335:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},74848:(e,t,r)=>{"use strict";e.exports=r(21020)},74958:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,s)}catch(e){t.style={}}else t.style={}};var o=r(51609),i=n(r(35229)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),s={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},75288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},76545:(e,t,r)=>{var n=r(56110)(r(9325),"Set");e.exports=n},76959:e=>{e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n{var n=r(51873),o=r(34932),i=r(56449),a=r(44394),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},77797:(e,t,r)=>{var n=r(44394);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},78096:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),A=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isFragment=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case a:case i:case u:case f:return e;default:switch(e=e&&e.$$typeof){case A:case l:case c:case p:case d:case s:return e;default:return t}}case n:return t}}}(e)===o}},79770:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r{var n=r(63702),o=r(70080),i=r(24739),a=r(48655),s=r(31175);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(28077),o=r(49326);e.exports=function(e,t){return null!=e&&o(e,t,n)}},80909:(e,t,r)=>{var n=r(30641),o=r(38329)(n);e.exports=o},80945:(e,t,r)=>{var n=r(80079),o=r(68223),i=r(53661);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},81042:(e,t,r)=>{var n=r(56110)(Object,"create");e.exports=n},82199:(e,t,r)=>{var n=r(14528),o=r(56449);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},83120:(e,t,r)=>{var n=r(14528),o=r(45891);e.exports=function e(t,r,i,a,s){var l=-1,A=t.length;for(i||(i=o),s||(s=[]);++l0&&i(c)?r>1?e(c,r-1,i,a,s):n(s,c):a||(s[s.length]=c)}return s}},83221:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===r(i[l],l,i))break}return t}}},83488:e=>{e.exports=function(e){return e}},83870:(e,t,r)=>{var n=r(17400);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},84247:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},85015:(e,t,r)=>{var n=r(72552),o=r(56449),i=r(40346);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==n(e)}},85463:e=>{e.exports=function(e){return e!=e}},85508:(e,t,r)=>{var n=r(86151),o=r(36800),i=r(17400);e.exports=function(e){return function(t,r,a){return a&&"number"!=typeof a&&o(t,r,a)&&(r=a=void 0),t=i(t),void 0===r?(r=t,t=0):r=i(r),a=void 0===a?t{e=r.nmd(e);var n=r(34840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},86151:e=>{var t=Math.ceil,r=Math.max;e.exports=function(e,n,o,i){for(var a=-1,s=r(t((n-e)/(o||1)),0),l=Array(s);s--;)l[i?s:++a]=e,e+=o;return l}},86649:(e,t,r)=>{var n=r(83221)();e.exports=n},87068:(e,t,r)=>{var n=r(37217),o=r(25911),i=r(21986),a=r(50689),s=r(5861),l=r(56449),A=r(3656),c=r(37167),u="[object Arguments]",f="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,h,m,g){var y=l(e),v=l(t),b=y?f:s(e),w=v?f:s(t),x=(b=b==u?d:b)==d,C=(w=w==u?d:w)==d,M=b==w;if(M&&A(e)){if(!A(t))return!1;y=!0,x=!1}if(M&&!x)return g||(g=new n),y||c(e)?o(e,t,r,h,m,g):i(e,t,b,r,h,m,g);if(!(1&r)){var E=x&&p.call(e,"__wrapped__"),j=C&&p.call(t,"__wrapped__");if(E||j){var O=E?e.value():e,S=j?t.value():t;return g||(g=new n),m(O,S,r,h,g)}}return!!M&&(g||(g=new n),a(e,t,r,h,m,g))}},87296:(e,t,r)=>{var n,o=r(55481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},87978:(e,t,r)=>{var n=r(60270),o=r(58156),i=r(80631),a=r(28586),s=r(30756),l=r(67197),A=r(77797);e.exports=function(e,t){return a(e)&&s(t)?l(A(e),t):function(r){var a=o(r,e);return void 0===a&&a===t?i(r,e):n(t,a,3)}}},88984:(e,t,r)=>{var n=r(55527),o=r(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},89935:e=>{e.exports=function(){return!1}},90289:(e,t,r)=>{var n=r(12651);e.exports=function(e){return n(this,e).get(e)}},90916:(e,t,r)=>{var n=r(80909);e.exports=function(e,t){var r;return n(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}},90938:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},91033:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},92471:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(a),r=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,r)};var o=n(r(65496)),i=r(67731),a=/<(![a-zA-Z\s]+)>/},93243:(e,t,r)=>{var n=r(56110),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},93599:(e,t,r)=>{var n=r(44394);e.exports=function(e,t,r){for(var o=-1,i=e.length;++o{var n=r(41799),o=r(10776),i=r(67197);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},94506:(e,t,r)=>{var n=r(93599),o=r(3335),i=r(83488);e.exports=function(e){return e&&e.length?n(e,i,o):void 0}},95950:(e,t,r)=>{var n=r(70695),o=r(88984),i=r(64894);e.exports=function(e){return i(e)?n(e):o(e)}},96131:(e,t,r)=>{var n=r(2523),o=r(85463),i=r(76959);e.exports=function(e,t,r){return t==t?i(e,t,r):n(e,o,r)}},96811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},98023:(e,t,r)=>{var n=r(72552),o=r(40346);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==n(e)}},98917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||r.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(i,l)).replace(n,s))}},99374:(e,t,r)=>{var n=r(54128),o=r(23805),i=r(44394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,A=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||l.test(e)?A(e.slice(2),r?2:8):a.test(e)?NaN:+e}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return r[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,o.d(i,a),i},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e={};o.r(e),o.d(e,{Button:()=>xv,CaptionLabel:()=>Cv,Chevron:()=>Mv,Day:()=>Ev,DayButton:()=>jv,Dropdown:()=>Ov,DropdownNav:()=>Sv,Footer:()=>kv,Month:()=>Pv,MonthCaption:()=>Nv,MonthGrid:()=>Tv,Months:()=>Dv,MonthsDropdown:()=>Iv,Nav:()=>Lv,NextMonthButton:()=>zv,Option:()=>Rv,PreviousMonthButton:()=>Fv,Root:()=>Vv,Select:()=>Wv,Week:()=>Bv,WeekNumber:()=>Yv,WeekNumberHeader:()=>qv,Weekday:()=>Xv,Weekdays:()=>Uv,Weeks:()=>Hv,YearsDropdown:()=>Zv});var t={};o.r(t),o.d(t,{formatCaption:()=>Kv,formatDay:()=>Jv,formatMonthCaption:()=>Qv,formatMonthDropdown:()=>_v,formatWeekNumber:()=>$v,formatWeekNumberHeader:()=>eb,formatWeekdayName:()=>tb,formatYearCaption:()=>nb,formatYearDropdown:()=>rb});var r={};o.r(r),o.d(r,{labelCaption:()=>ib,labelDay:()=>lb,labelDayButton:()=>sb,labelGrid:()=>ob,labelGridcell:()=>ab,labelMonthDropdown:()=>cb,labelNav:()=>Ab,labelNext:()=>ub,labelPrevious:()=>fb,labelWeekNumber:()=>pb,labelWeekNumberHeader:()=>hb,labelWeekday:()=>db,labelYearDropdown:()=>mb});var n={};o.r(n),o.d(n,{scaleBand:()=>QE,scaleDiverging:()=>vN,scaleDivergingLog:()=>bN,scaleDivergingPow:()=>xN,scaleDivergingSqrt:()=>CN,scaleDivergingSymlog:()=>wN,scaleIdentity:()=>mS,scaleImplicit:()=>GE,scaleLinear:()=>hS,scaleLog:()=>ES,scaleOrdinal:()=>KE,scalePoint:()=>_E,scalePow:()=>IS,scaleQuantile:()=>YS,scaleQuantize:()=>qS,scaleRadial:()=>RS,scaleSequential:()=>fN,scaleSequentialLog:()=>dN,scaleSequentialPow:()=>hN,scaleSequentialQuantile:()=>gN,scaleSequentialSqrt:()=>mN,scaleSequentialSymlog:()=>pN,scaleSqrt:()=>LS,scaleSymlog:()=>kS,scaleThreshold:()=>HS,scaleTime:()=>lN,scaleUtc:()=>AN,tickFormat:()=>dS});const i=window.wp.element;var a=o(51609),s=o.t(a,2),l=o.n(a);const A=window.ReactDOM;function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var v;function b(e,t,r){return void 0===r&&(r="/"),function(e,t,r,n){let o=I(("string"==typeof t?y(t):t).pathname||"/",r);if(null==o)return null;let i=w(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(d(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(n.length));let s=W([n,a.relativePath]),l=r.concat(a);e.children&&e.children.length>0&&(d(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),w(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:P(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of x(e.path))o(e,t,r);else o(e,t)})),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===n.length)return o?[i,""]:[i];let a=x(n.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(v||(v={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const C=/^:[\w-]+$/,M=3,E=2,j=1,O=10,S=-2,k=e=>"*"===e;function P(e,t){let r=e.split("/"),n=r.length;return r.some(k)&&(n+=S),t&&(n+=E),r.filter((e=>!k(e))).reduce(((e,t)=>e+(C.test(t)?M:""===t?j:O)),n)}function N(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,o={},i="/",a=[];for(let e=0;e(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1),l=n.reduce(((e,t,r)=>{let{paramName:n,isOptional:o}=t;if("*"===n){let e=s[r]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[r];return e[n]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:i,pathnameBase:a,pattern:e}}function D(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return p(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function I(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}const L=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function z(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}function R(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function F(e,t){let r=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?r.map(((e,t)=>t===r.length-1?e.pathname:e.pathnameBase)):r.map((e=>e.pathnameBase))}function V(e,t,r,n){let o;void 0===n&&(n=!1),"string"==typeof e?o=y(e):(o=c({},e),d(!o.pathname||!o.pathname.includes("?"),R("?","pathname","search",o)),d(!o.pathname||!o.pathname.includes("#"),R("#","pathname","hash",o)),d(!o.search||!o.search.includes("#"),R("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let r,{pathname:n,search:o="",hash:i=""}="string"==typeof e?y(e):e;if(n)if(a=n,L.test(a))r=n;else{if(n.includes("//")){let e=n;n=n.replace(/\/\/+/g,"/"),p(!1,"Pathnames cannot have embedded double slashes - normalizing "+e+" -> "+n)}r=n.startsWith("/")?z(n.substring(1),"/"):z(n,t)}else r=t;var a;return{pathname:r,search:X(o),hash:U(i)}}(o,i),A=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&r.endsWith("/");return l.pathname.endsWith("/")||!A&&!u||(l.pathname+="/"),l}const W=e=>e.join("/").replace(/\/\/+/g,"/"),B=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),X=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",U=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const Y=["post","put","patch","delete"],q=(new Set(Y),["get",...Y]);function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t{r.current=!0})),a.useCallback((function(n,o){void 0===o&&(o={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,H({fromRouteId:t},o)))}),[e,t])}():function(){$()||d(!1);let e=a.useContext(Z),{basename:t,future:r,navigator:n}=a.useContext(K),{matches:o}=a.useContext(J),{pathname:i}=ee(),s=JSON.stringify(F(o,r.v7_relativeSplatPath)),l=a.useRef(!1);return te((()=>{l.current=!0})),a.useCallback((function(r,o){if(void 0===o&&(o={}),!l.current)return;if("number"==typeof r)return void n.go(r);let a=V(r,JSON.parse(s),i,"path"===o.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:W([t,a.pathname])),(o.replace?n.replace:n.push)(a,o.state,o)}),[t,n,s,i,e])}()}const ne=a.createContext(null);function oe(e,t,r,n){$()||d(!1);let{navigator:o}=a.useContext(K),{matches:i}=a.useContext(J),s=i[i.length-1],l=s?s.params:{},A=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let c,f=ee();if(t){var p;let e="string"==typeof t?y(t):t;"/"===A||(null==(p=e.pathname)?void 0:p.startsWith(A))||d(!1),c=e}else c=f;let h=c.pathname||"/",m=h;if("/"!==A){let e=A.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=b(e,{pathname:m}),v=function(e,t,r,n){var o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){var i;if(!r)return null;if(r.errors)e=r.matches;else{if(!(null!=(i=n)&&i.v7_partialHydration&&0===t.length&&!r.initialized&&r.matches.length>0))return null;e=r.matches}}let s=e,l=null==(o=r)?void 0:o.errors;if(null!=l){let e=s.findIndex((e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id])));e>=0||d(!1),s=s.slice(0,Math.min(s.length,e+1))}let A=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e=0?s.slice(0,c+1):[s[0]];break}}}return s.reduceRight(((e,n,o)=>{let i,u=!1,f=null,d=null;var p;r&&(i=l&&n.route.id?l[n.route.id]:void 0,f=n.route.errorElement||ae,A&&(c<0&&0===o?(fe[p="route-fallback"]||(fe[p]=!0),u=!0,d=null):c===o&&(u=!0,d=n.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,o+1)),m=()=>{let t;return t=i?f:u?d:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(le,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===o)?a.createElement(se,{location:r.location,revalidation:r.revalidation,component:f,error:i,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:W([A,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?A:W([A,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,r,n);return t&&v?a.createElement(Q.Provider,{value:{location:H({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:u.Pop}},v):v}function ie(){let e=function(){var e;let t=a.useContext(_),r=function(){let e=a.useContext(G);return e||d(!1),e}(ce.UseRouteError),n=ue(ce.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),r?a.createElement("pre",{style:n},r):null,null)}const ae=a.createElement(ie,null);class se extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?a.createElement(J.Provider,{value:this.props.routeContext},a.createElement(_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function le(e){let{routeContext:t,match:r,children:n}=e,o=a.useContext(Z);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),a.createElement(J.Provider,{value:t},n)}var Ae=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ae||{}),ce=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ce||{});function ue(e){let t=function(){let e=a.useContext(J);return e||d(!1),e}(),r=t.matches[t.matches.length-1];return r.route.id||d(!1),r.route.id}const fe={};function de(e){let{to:t,replace:r,state:n,relative:o}=e;$()||d(!1);let{future:i,static:s}=a.useContext(K),{matches:l}=a.useContext(J),{pathname:A}=ee(),c=re(),u=V(t,F(l,i.v7_relativeSplatPath),A,"path"===o),f=JSON.stringify(u);return a.useEffect((()=>c(JSON.parse(f),{replace:r,state:n,relative:o})),[c,f,o,r,n]),null}function pe(e){return function(e){let t=a.useContext(J).outlet;return t?a.createElement(ne.Provider,{value:e},t):t}(e.context)}function he(e){d(!1)}function me(e){let{basename:t="/",children:r=null,location:n,navigationType:o=u.Pop,navigator:i,static:s=!1,future:l}=e;$()&&d(!1);let A=t.replace(/^\/*/,"/"),c=a.useMemo((()=>({basename:A,navigator:i,static:s,future:H({v7_relativeSplatPath:!1},l)})),[A,l,i,s]);"string"==typeof n&&(n=y(n));let{pathname:f="/",search:p="",hash:h="",state:m=null,key:g="default"}=n,v=a.useMemo((()=>{let e=I(f,A);return null==e?null:{location:{pathname:e,search:p,hash:h,state:m,key:g},navigationType:o}}),[A,f,p,h,m,g,o]);return null==v?null:a.createElement(K.Provider,{value:c},a.createElement(Q.Provider,{children:r,value:v}))}function ge(e){let{children:t,location:r}=e;return oe(ye(t),r)}function ye(e,t){void 0===t&&(t=[]);let r=[];return a.Children.forEach(e,((e,n)=>{if(!a.isValidElement(e))return;let o=[...t,n];if(e.type===a.Fragment)return void r.push.apply(r,ye(e.props.children,o));e.type!==he&&d(!1),e.props.index&&e.props.children&&d(!1);let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=ye(e.props.children,o)),r.push(i)})),r}a.startTransition,new Promise((()=>{})),a.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(lc){}new Map;const ve=a.startTransition;function be(e){let{basename:t,children:r,future:n,window:o}=e,i=a.useRef();var s;null==i.current&&(i.current=(void 0===(s={window:o,v5Compat:!0})&&(s={}),function(e,t,r,n){void 0===n&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s=u.Pop,l=null,A=p();function p(){return(a.state||{idx:null}).idx}function y(){s=u.Pop;let e=p(),t=null==e?null:e-A;A=e,l&&l({action:s,location:b.location,delta:t})}function v(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:g(e);return r=r.replace(/ $/,"%20"),d(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==A&&(A=0,a.replaceState(c({},a.state,{idx:A}),""));let b={get action(){return s},get location(){return e(o,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(f,y),l=e,()=>{o.removeEventListener(f,y),l=null}},createHref:e=>t(o,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=u.Push;let n=m(b.location,e,t);r&&r(n,e),A=p()+1;let c=h(n,A),f=b.createHref(n);try{a.pushState(c,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}i&&l&&l({action:s,location:b.location,delta:1})},replace:function(e,t){s=u.Replace;let n=m(b.location,e,t);r&&r(n,e),A=p();let o=h(n,A),c=b.createHref(n);a.replaceState(o,"",c),i&&l&&l({action:s,location:b.location,delta:0})},go:e=>a.go(e)};return b}((function(e,t){let{pathname:r="/",search:n="",hash:o=""}=y(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),m("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:g(t))}),(function(e,t){p("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),s)));let l=i.current,[A,v]=a.useState({action:l.action,location:l.location}),{v7_startTransition:b}=n||{},w=a.useCallback((e=>{b&&ve?ve((()=>v(e))):v(e)}),[v,b]);return a.useLayoutEffect((()=>l.listen(w)),[l,w]),a.useEffect((()=>{return null==(e=n)||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),void(t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation));var e,t}),[n]),a.createElement(me,{basename:t,children:r,location:A.location,navigationType:A.action,navigator:l,future:n})}var we,xe;A.flushSync,a.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(we||(we={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(xe||(xe={}));const Ce=window.wp.i18n;var Me=o(74848);const Ee=e=>{const t=ke(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),je(r,t)||Se(e)},getConflictingClassGroupIds:(e,t)=>{const o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}},je=(e,t)=>{if(0===e.length)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?je(e.slice(1),n):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId},Oe=/^\[(.+)\]$/,Se=e=>{if(Oe.test(e)){const t=Oe.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ke=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return De(Object.entries(e.classGroups),r).forEach((([e,r])=>{Pe(r,n,e,t)})),n},Pe=(e,t,r,n)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return Te(e)?void Pe(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach((([e,o])=>{Pe(o,Ne(t,e),r,n)}))}else(""===e?t:Ne(t,e)).classGroupId=r}))},Ne=(e,t)=>{let r=e;return t.split("-").forEach((e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)})),r},Te=e=>e.isThemeGetter,De=(e,t)=>t?e.map((([e,r])=>{const n=r.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,r])=>[t+e,r]))):e));return[e,n]})):e,Ie=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}},Le=e=>{const{separator:t,experimentalParseClassName:r}=e,n=1===t.length,o=t[0],i=t.length,a=e=>{const r=[];let a,s=0,l=0;for(let A=0;Al?a-l:void 0}};return r?e=>r({className:e,parseClassName:a}):a},ze=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach((e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)})),t.push(...r.sort()),t},Re=/\s+/;function Fe(){let e,t,r=0,n="";for(;r{if("string"==typeof e)return e;let t,r="";for(let n=0;nt(e)),e());return r=(e=>({cache:Ie(e.cacheSize),parseClassName:Le(e),...Ee(e)}))(l),n=r.cache.get,o=r.cache.set,i=a,a(s)};function a(e){const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(Re);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:l,hasImportantModifier:A,baseClassName:c,maybePostfixModifierPosition:u}=r(t);let f=Boolean(u),d=n(f?c.substring(0,u):c);if(!d){if(!f){s=t+(s.length>0?" "+s:s);continue}if(d=n(c),!d){s=t+(s.length>0?" "+s:s);continue}f=!1}const p=ze(l).join(":"),h=A?p+"!":p,m=h+d;if(i.includes(m))continue;i.push(m);const g=o(d,f);for(let e=0;e0?" "+s:s)}return s})(e,r);return o(e,i),i}return function(){return i(Fe.apply(null,arguments))}}const Be=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Xe=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ue=/^\d+\/\d+$/,Ye=new Set(["px","full","screen"]),qe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,He=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ze=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ge=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ke=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qe=e=>_e(e)||Ye.has(e)||Ue.test(e),Je=e=>ut(e,"length",ft),_e=e=>Boolean(e)&&!Number.isNaN(Number(e)),$e=e=>ut(e,"number",_e),et=e=>Boolean(e)&&Number.isInteger(Number(e)),tt=e=>e.endsWith("%")&&_e(e.slice(0,-1)),rt=e=>Xe.test(e),nt=e=>qe.test(e),ot=new Set(["length","size","percentage"]),it=e=>ut(e,ot,dt),at=e=>ut(e,"position",dt),st=new Set(["image","url"]),lt=e=>ut(e,st,ht),At=e=>ut(e,"",pt),ct=()=>!0,ut=(e,t,r)=>{const n=Xe.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},ft=e=>He.test(e)&&!Ze.test(e),dt=()=>!1,pt=e=>Ge.test(e),ht=e=>Ke.test(e),mt=(Symbol.toStringTag,()=>{const e=Be("colors"),t=Be("spacing"),r=Be("blur"),n=Be("brightness"),o=Be("borderColor"),i=Be("borderRadius"),a=Be("borderSpacing"),s=Be("borderWidth"),l=Be("contrast"),A=Be("grayscale"),c=Be("hueRotate"),u=Be("invert"),f=Be("gap"),d=Be("gradientColorStops"),p=Be("gradientColorStopPositions"),h=Be("inset"),m=Be("margin"),g=Be("opacity"),y=Be("padding"),v=Be("saturate"),b=Be("scale"),w=Be("sepia"),x=Be("skew"),C=Be("space"),M=Be("translate"),E=()=>["auto",rt,t],j=()=>[rt,t],O=()=>["",Qe,Je],S=()=>["auto",_e,rt],k=()=>["","0",rt],P=()=>[_e,rt];return{cacheSize:500,separator:":",theme:{colors:[ct],spacing:[Qe,Je],blur:["none","",nt,rt],brightness:P(),borderColor:[e],borderRadius:["none","","full",nt,rt],borderSpacing:j(),borderWidth:O(),contrast:P(),grayscale:k(),hueRotate:P(),invert:k(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[tt,Je],inset:E(),margin:E(),opacity:P(),padding:j(),saturate:P(),scale:P(),sepia:k(),skew:P(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",rt]}],container:["container"],columns:[{columns:[nt]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",rt]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",et,rt]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",rt]}],grow:[{grow:k()}],shrink:[{shrink:k()}],order:[{order:["first","last","none",et,rt]}],"grid-cols":[{"grid-cols":[ct]}],"col-start-end":[{col:["auto",{span:["full",et,rt]},rt]}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":[ct]}],"row-start-end":[{row:["auto",{span:[et,rt]},rt]}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",rt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",rt]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",rt,t]}],"min-w":[{"min-w":[rt,t,"min","max","fit"]}],"max-w":[{"max-w":[rt,t,"none","full","min","max","fit","prose",{screen:[nt]},nt]}],h:[{h:[rt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[rt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[rt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[rt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",nt,Je]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$e]}],"font-family":[{font:[ct]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",rt]}],"line-clamp":[{"line-clamp":["none",_e,$e]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Qe,rt]}],"list-image":[{"list-image":["none",rt]}],"list-style-type":[{list:["none","disc","decimal",rt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Qe,Je]}],"underline-offset":[{"underline-offset":["auto",Qe,rt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",rt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",rt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",at]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",it]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Qe,rt]}],"outline-w":[{outline:[Qe,Je]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Qe,Je]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",nt,At]}],"shadow-color":[{shadow:[ct]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",nt,rt]}],grayscale:[{grayscale:[A]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[u]}],saturate:[{saturate:[v]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",rt]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",rt]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",rt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[et,rt]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[x]}],"skew-y":[{"skew-y":[x]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",rt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",rt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",rt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Qe,Je,$e]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),gt=We(mt);function yt(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;tgt(vt(...e)),xt=e=>{const t={0:"gap-0",xxs:"gap-1",xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-5",xl:"gap-6","2xl":"gap-8"};return t[e]||t.md},Ct={sm:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},md:{1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},lg:{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"}},Mt={sm:{xs:"gap-2",sm:"gap-4",md:"gap-5",lg:"gap-6",xl:"gap-6","2xl":"gap-8"},md:{xs:"md:gap-2",sm:"md:gap-4",md:"md:gap-5",lg:"md:gap-6",xl:"md:gap-6","2xl":"md:gap-8"},lg:{xs:"lg:gap-2",sm:"lg:gap-4",md:"lg:gap-5",lg:"lg:gap-6",xl:"lg:gap-6","2xl":"lg:gap-8"}},Et={sm:{xs:"gap-x-2",sm:"gap-x-4",md:"gap-x-5",lg:"gap-x-6",xl:"gap-x-6","2xl":"gap-x-8"},md:{xs:"md:gap-x-2",sm:"md:gap-x-4",md:"md:gap-x-5",lg:"md:gap-x-6",xl:"md:gap-x-6","2xl":"md:gap-x-8"},lg:{xs:"lg:gap-x-2",sm:"lg:gap-x-4",md:"lg:gap-x-5",lg:"lg:gap-x-6",xl:"lg:gap-x-6","2xl":"lg:gap-x-8"}},jt={sm:{xs:"gap-y-2",sm:"gap-y-4",md:"gap-y-5",lg:"gap-y-6",xl:"gap-y-6","2xl":"gap-y-8"},md:{xs:"md:gap-y-2",sm:"md:gap-y-4",md:"md:gap-y-5",lg:"md:gap-y-6",xl:"md:gap-y-6","2xl":"md:gap-y-8"},lg:{xs:"lg:gap-y-2",sm:"lg:gap-y-4",md:"lg:gap-y-5",lg:"lg:gap-y-6",xl:"lg:gap-y-6","2xl":"lg:gap-y-8"}},Ot={sm:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12"}},St={sm:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12"},md:{1:"md:col-start-1",2:"md:col-start-2",3:"md:col-start-3",4:"md:col-start-4",5:"md:col-start-5",6:"md:col-start-6",7:"md:col-start-7",8:"md:col-start-8",9:"md:col-start-9",10:"md:col-start-10",11:"md:col-start-11",12:"md:col-start-12"},lg:{1:"lg:col-start-1",2:"lg:col-start-2",3:"lg:col-start-3",4:"lg:col-start-4",5:"lg:col-start-5",6:"lg:col-start-6",7:"lg:col-start-7",8:"lg:col-start-8",9:"lg:col-start-9",10:"lg:col-start-10",11:"lg:col-start-11",12:"lg:col-start-12"}},kt={sm:{row:"grid-flow-row",column:"grid-flow-col","row-dense":"grid-flow-row-dense","column-dense":"grid-flow-col-dense"},md:{row:"md:grid-flow-row",column:"md:grid-flow-col","row-dense":"md:grid-flow-row-dense","column-dense":"md:grid-flow-col-dense"},lg:{row:"lg:grid-flow-row",column:"lg:grid-flow-col","row-dense":"lg:grid-flow-row-dense","column-dense":"lg:grid-flow-col-dense"}},Pt={sm:{normal:"justify-normal",start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},md:{normal:"md:justify-normal",start:"md:justify-start",end:"md:justify-end",center:"md:justify-center",between:"md:justify-between",around:"md:justify-around",evenly:"md:justify-evenly",stretch:"md:justify-stretch"},lg:{normal:"lg:justify-normal",start:"lg:justify-start",end:"lg:justify-end",center:"lg:justify-center",between:"lg:justify-between",around:"lg:justify-around",evenly:"lg:justify-evenly",stretch:"lg:justify-stretch"}},Nt={sm:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},md:{start:"md:items-start",end:"md:items-end",center:"md:items-center",baseline:"md:items-baseline",stretch:"md:items-stretch"},lg:{start:"lg:items-start",end:"lg:items-end",center:"lg:items-center",baseline:"lg:items-baseline",stretch:"lg:items-stretch"}},Tt={sm:{start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"},md:{start:"md:self-start",end:"md:self-end",center:"md:self-center",baseline:"md:self-baseline",stretch:"md:self-stretch"},lg:{start:"lg:self-start",end:"lg:self-end",center:"lg:self-center",baseline:"lg:self-baseline",stretch:"lg:self-stretch"}},Dt={sm:{auto:"justify-self-auto",start:"justify-self-start",end:"justify-self-end",center:"justify-self-center",baseline:"justify-self-baseline",stretch:"justify-self-stretch"},md:{auto:"md:justify-self-auto",start:"md:justify-self-start",end:"md:justify-self-end",center:"md:justify-self-center",baseline:"md:justify-self-baseline",stretch:"md:justify-self-stretch"},lg:{auto:"lg:justify-self-auto",start:"lg:justify-self-start",end:"lg:justify-self-end",center:"lg:justify-self-center",baseline:"lg:justify-self-baseline",stretch:"lg:justify-self-stretch"}},It={sm:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},md:{row:"md:flex-row","row-reverse":"md:flex-row-reverse",column:"md:flex-col","column-reverse":"md:flex-col-reverse"},lg:{row:"lg:flex-row","row-reverse":"lg:flex-row-reverse",column:"lg:flex-col","column-reverse":"lg:flex-col-reverse"}},Lt={sm:{wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},md:{wrap:"md:flex-wrap","wrap-reverse":"md:flex-wrap-reverse",nowrap:"md:flex-nowrap"},lg:{wrap:"lg:flex-wrap","wrap-reverse":"lg:flex-wrap-reverse",nowrap:"lg:flex-nowrap"}},zt={sm:{1:"w-full",2:"w-1/2",3:"w-1/3",4:"w-1/4",5:"w-1/5",6:"w-1/6",7:"w-1/7",8:"w-1/8",9:"w-1/9",10:"w-1/10",11:"w-1/11",12:"w-1/12"},md:{1:"md:w-full",2:"md:w-1/2",3:"md:w-1/3",4:"md:w-1/4",5:"md:w-1/5",6:"md:w-1/6",7:"md:w-1/7",8:"md:w-1/8",9:"md:w-1/9",10:"md:w-1/10",11:"md:w-1/11",12:"md:w-1/12"},lg:{1:"lg:w-full",2:"lg:w-1/2",3:"lg:w-1/3",4:"lg:w-1/4",5:"lg:w-1/5",6:"lg:w-1/6",7:"lg:w-1/7",8:"lg:w-1/8",9:"lg:w-1/9",10:"lg:w-1/10",11:"lg:w-1/11",12:"lg:w-1/12"}},Rt={sm:{1:"order-1",2:"order-2",3:"order-3",4:"order-4",5:"order-5",6:"order-6",7:"order-7",8:"order-8",9:"order-9",10:"order-10",11:"order-11",12:"order-12",first:"order-first",last:"order-last",none:"order-none"},md:{1:"md:order-1",2:"md:order-2",3:"md:order-3",4:"md:order-4",5:"md:order-5",6:"md:order-6",7:"md:order-7",8:"md:order-8",9:"md:order-9",10:"md:order-10",11:"md:order-11",12:"md:order-12",first:"md:order-first",last:"md:order-last",none:"md:order-none"},lg:{1:"lg:order-1",2:"lg:order-2",3:"lg:order-3",4:"lg:order-4",5:"lg:order-5",6:"lg:order-6",7:"lg:order-7",8:"lg:order-8",9:"lg:order-9",10:"lg:order-10",11:"lg:order-11",12:"lg:order-12",first:"lg:order-first",last:"lg:order-last",none:"lg:order-none"}},Ft={sm:{0:"grow-0",1:"grow"},md:{0:"md:grow-0",1:"md:grow"},lg:{0:"lg:grow-0",1:"lg:grow"}},Vt={sm:{0:"shrink-0",1:"shrink"},md:{0:"md:shrink-0",1:"md:shrink"},lg:{0:"lg:shrink-0",1:"lg:shrink"}},Wt=(e,t,r,n="sm")=>{const o=[];switch(typeof e){case"object":for(const[n,i]of Object.entries(e))t[n]&&o.push(t?.[n]?.[i]??t?.[n]?.[r?.[n]]??"");break;case"string":case"number":const i=n;o.push(t?.[i]?.[e]??t?.[i]?.[r?.[i]]??"");break;default:if(void 0===e)break;o.push(t?.[n]?.[r]??"")}return o.join(" ")},Bt=({className:e,cols:t,gap:r,gapX:n,gapY:o,align:i,justify:a,gridFlow:s,colsSubGrid:l=!1,rowsSubGrid:A=!1,autoRows:c=!1,autoCols:u=!1,children:f,...d})=>{const p=Wt(t,Ct,1),h=Wt(r,Mt,"sm"),m=Wt(n,Et,""),g=Wt(o,jt,""),y=Wt(i,Nt,""),v=Wt(a,Pt,""),b=Wt(s,kt,"");return(0,Me.jsx)("div",{className:wt("grid",{"grid-cols-subgrid":l,"grid-rows-subgrid":A,"auto-cols-auto":u,"auto-rows-auto":c},p,h,m,g,y,v,b,e),...d,children:f})};Bt.Item=({className:e,children:t,colSpan:r,colStart:n,alignSelf:o,justifySelf:i,...a})=>{const s=Wt(r,Ot,0),l=Wt(n,St,0),A=Wt(o,Tt,""),c=Wt(i,Dt,"");return(0,Me.jsx)("div",{className:wt(s,l,A,c,e),...a,children:t})};const Xt=(0,a.createContext)({}),Ut=({containerType:e="flex",gap:t="sm",gapX:r,gapY:n,direction:o,justify:i,align:a,wrap:s,cols:l,className:A,children:c,...u})=>{if("grid"===e)return(0,Me.jsx)(Xt.Provider,{value:{containerType:e},children:(0,Me.jsx)(Bt,{className:A,gap:t,gapX:r,gapY:n,cols:l,children:c,align:a,justify:i,...u})});const f=Wt(s,Lt,""),d=Wt(t,Mt,"sm"),p=Wt(r,Et,""),h=Wt(n,jt,""),m=Wt(o,It,""),g=Wt(i,Pt,""),y=Wt(a,Nt,""),v=wt("flex",f,d,p,h,m,g,y,A);return(0,Me.jsx)(Xt.Provider,{value:{containerType:e,cols:l},children:"flex"===e?(0,Me.jsx)("div",{className:v,children:c}):(0,Me.jsx)(Bt,{className:A,gap:t,gapX:r,gapY:n,cols:l,children:c,align:a,justify:i,...u})})},Yt=({grow:e,shrink:t,order:r,alignSelf:n,justifySelf:o,className:i,children:s,...l})=>{const{containerType:A,cols:c}=(0,a.useContext)(Xt);if("grid"===A)return(0,Me.jsx)(Bt.Item,{className:i,alignSelf:n,justifySelf:o,children:s,...l});const u=Wt(n,Tt,""),f=Wt(o,Dt,""),d=Wt(e,Ft,0),p=Wt(t,Vt,0),h=Wt(r,Rt,0),m=Wt(c,zt,1);return(0,Me.jsx)("div",{className:wt("box-border",d,p,h,u,f,m,i),children:s})};Ut.Item=Yt,Ut.displayName="Container",Yt.displayName="Container.Item";const qt=({title:e="",description:t="",icon:r=null,iconPosition:n="right",tag:o="h2",size:i="sm",className:a=""})=>{const s={xs:"gap-1 [&>svg]:size-3.5",sm:"gap-1 [&>svg]:size-4",md:"gap-1.5 [&>svg]:size-5",lg:"gap-1.5 [&>svg]:size-5"};if(!e)return null;const l=()=>(0,Me.jsx)(o,{className:wt("font-semibold p-0 m-0",{xs:"text-base [&>*]:text-base gap-1",sm:"text-lg [&>*]:text-lg gap-1",md:"text-xl [&>*]:text-xl gap-1.5",lg:"text-2xl [&>*]:text-2xl gap-1.5"}[i]),children:e});return t?(0,Me.jsxs)("div",{className:a,children:[(0,Me.jsxs)("div",{children:[r&&"left"===n&&(0,Me.jsxs)("div",{className:wt("flex items-center",s[i]),children:[r,l()]}),r&&"right"===n&&(0,Me.jsxs)("div",{className:wt("flex items-center",s[i]),children:[l(),r]}),!r&&l()]}),(0,Me.jsx)("p",{className:wt("text-text-secondary font-normal my-0",{xs:"text-sm",sm:"text-sm",md:"text-base",lg:"text-base"}[i]),children:t})]}):(0,Me.jsxs)("div",{className:a,children:[r&&"left"===n&&(0,Me.jsxs)("div",{className:wt("flex items-center",s[i]),children:[r,l()]}),r&&"right"===n&&(0,Me.jsxs)("div",{className:wt("flex items-center",s[i]),children:[l(),r]}),!r&&l()]})},Ht=(0,a.forwardRef)((({children:e=null,tag:t="label",size:r="sm",className:n="",variant:o="neutral",required:i=!1,...a},s)=>{if(!e)return null;let l="";return i&&(l="after:content-['*'] after:text-field-required after:ml-0.5"),(0,Me.jsx)(t,{ref:s,className:wt("font-medium text-field-label flex items-center gap-0.5",{xs:"text-xs [&>*]:text-xs [&>svg]:h-3 [&>svg]:w-3",sm:"text-sm [&>*]:text-sm [&>svg]:h-4 [&>svg]:w-4",md:"text-base [&>*]:text-base [&>svg]:h-5 [&>svg]:w-5"}[r],{neutral:"text-field-label [&>*]:text-field-label",help:"text-field-helper [&>*]:text-field-helper",error:"text-support-error [&>*]:text-support-error",disabled:"text-field-color-disabled disabled cursor-not-allowed [&>*]:text-field-color-disabled"}[o],l,{neutral:"",help:"font-normal",error:"font-normal",disabled:""}?.[o],n),...a,children:e})}));Ht.displayName="Label";const Zt=(0,a.forwardRef)(((e,t)=>{const{variant:r="primary",size:n="md",type:o="button",tag:i="button",className:s,children:l,disabled:A=!1,destructive:c=!1,icon:u=null,iconPosition:f="left",loading:d=!1,...p}=e,h=c&&"focus:ring-focus-error",m=d?"opacity-50 disabled:cursor-not-allowed":"",g={primary:"text-text-on-color bg-button-primary hover:bg-button-primary-hover outline-button-primary hover:outline-button-primary-hover shadow-xs disabled:shadow-none focus:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",secondary:"text-text-on-color bg-button-secondary hover:bg-button-secondary-hover outline-button-secondary hover:outline-button-secondary-hover shadow-xs focus:shadow-none disabled:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",outline:"text-button-tertiary-color outline-border-subtle bg-button-tertiary shadow-sm focus:shadow-none hover:bg-button-tertiary-hover hover:outline-border-subtle disabled:bg-button-tertiary disabled:outline-border-disabled",ghost:"text-text-primary bg-transparent outline-transparent hover:bg-button-tertiary-hover",link:"outline-none text-link-primary bg-transparent hover:text-link-primary-hover hover:underline p-0 border-0 leading-none"}[r],y=c&&!A?{primary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",secondary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",outline:"text-button-danger outline outline-1 outline-button-danger hover:outline-button-danger bg-button-tertiary hover:bg-field-background-error",ghost:"text-button-danger hover:bg-field-background-error",link:"text-button-danger hover:text-button-danger-secondary"}[r]:"",v={xs:"p-1 rounded [&>svg]:size-4",sm:"p-2 rounded [&>svg]:size-4 gap-0.5",md:"p-2.5 rounded-md text-sm [&>svg]:size-5 gap-1",lg:"p-3 rounded-lg text-base [&>svg]:size-6 gap-1"}[n];let b,w=null,x="";return u&&(x="flex items-center justify-center","left"===f?b=u:w=u),(0,Me.jsxs)(i,{ref:t,type:o,className:wt(x,"outline outline-1 border-none cursor-pointer transition-colors duration-300 ease-in-out text-xs font-semibold focus:ring-2 focus:ring-toggle-on focus:ring-offset-2 disabled:text-text-disabled",v,g,y,h,m,{"cursor-default":A},s),disabled:A,"aria-disabled":A,...p,children:[(0,Me.jsx)(a.Fragment,{children:b},"left-icon"),l?(0,Me.jsx)("span",{className:"px-1",children:l}):null,(0,Me.jsx)(a.Fragment,{children:w},"right-icon")]})}));Zt.displayName="Button";const Gt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Kt=(...e)=>e.filter(((e,t,r)=>Boolean(e)&&""!==e.trim()&&r.indexOf(e)===t)).join(" ").trim();var Qt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Jt=(0,a.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:s,...l},A)=>(0,a.createElement)("svg",{ref:A,...Qt,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:Kt("lucide",o),...l},[...s.map((([e,t])=>(0,a.createElement)(e,t))),...Array.isArray(i)?i:[i]]))),_t=(e,t)=>{const r=(0,a.forwardRef)((({className:r,...n},o)=>(0,a.createElement)(Jt,{ref:o,iconNode:t,className:Kt(`lucide-${Gt(e)}`,r),...n})));return r.displayName=`${e}`,r},$t=_t("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),er=_t("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),tr=function(){return React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M18 13V19C18 19.5304 17.7893 20.0391 17.4142 20.4142C17.0391 20.7893 16.5304 21 16 21H5C4.46957 21 3.96086 20.7893 3.58579 20.4142C3.21071 20.0391 3 19.5304 3 19V8C3 7.46957 3.21071 6.96086 3.58579 6.58579C3.96086 6.21071 4.46957 6 5 6H11",stroke:"#111827",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M15 3H21V9",stroke:"#111827",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M10 14L21 3",stroke:"#111827",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}))};function rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ir=(...e)=>e.filter(((e,t,r)=>Boolean(e)&&r.indexOf(e)===t)).join(" ");var ar={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const sr=(0,a.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:s,...l},A)=>(0,a.createElement)("svg",{ref:A,...ar,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:ir("lucide",o),...l},[...s.map((([e,t])=>(0,a.createElement)(e,t))),...Array.isArray(i)?i:[i]]))),lr=(e,t)=>{const r=(0,a.forwardRef)((({className:r,...n},o)=>(0,a.createElement)(sr,{ref:o,iconNode:t,className:ir(`lucide-${or(e)}`,r),...n})));return r.displayName=`${e}`,r},Ar=lr("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);let cr=1;const ur=new class{#e;#t;constructor(){this.#e=[],this.#t=[]}subscribe(e){return this.#t.push(e),()=>{this.#t=this.#t.filter((t=>t!==e))}}publish(e){this.#t.forEach((t=>t(e)))}add(e){this.#e.push(e),this.publish(e)}remove(e){return this.#e=this.#e.filter((t=>t.id!==e)),e}create(e){const{id:t,message:r="",jsx:n,...o}=e;if(!r&&"function"!=typeof n)return;const i="number"==typeof t?t:cr++;return this.#e.find((e=>e.id===i))&&(this.#e=this.#e.map((e=>e.id===i?(this.publish({...e,title:r,jsx:n,...o}),{...e,title:r,jsx:n,...o}):e))),this.add({id:i,title:r,jsx:n,...o}),i}update(e,t){const{render:r}=t;let n=t;switch(typeof r){case"function":n={jsx:r,...t};break;case"string":n={title:r,...t}}this.#e=this.#e.map((t=>t.id===e?(this.publish({...t,...n}),{...t,...n}):t))}dismiss(e){return e||this.#e.forEach((e=>this.#t.forEach((t=>t({id:e.id,dismiss:!0}))))),this.#t.forEach((t=>t({id:e,dismiss:!0}))),e}history(){return this.#e}default(e="",t={}){return this.create({message:e,type:"neutral",...t})}success(e="",t={}){return this.create({message:e,type:"success",...t})}error(e="",t={}){return this.create({message:e,type:"error",...t})}warning(e="",t={}){return this.create({message:e,type:"warning",...t})}info(e="",t={}){return this.create({message:e,type:"info",...t})}custom(e,t={}){return this.create({jsx:e,type:"custom",...t})}},fr=Object.seal(Object.assign(((e,t)=>ur.default(e,t)),{success:ur.success.bind(ur),error:ur.error.bind(ur),warning:ur.warning.bind(ur),info:ur.info.bind(ur),custom:ur.custom.bind(ur),dismiss:ur.dismiss.bind(ur),update:ur.update.bind(ur)},{getHistory:ur.history.bind(ur)})),dr=lr("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),pr=lr("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),hr=lr("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),mr=lr("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),gr="light",yr="neutral",vr=({icon:e,theme:t=gr,variant:r=yr})=>{const n="[&>svg]:h-5 [&>svg]:w-5",o=(({theme:e=gr,variant:t=yr})=>{let r="light"===e?"text-icon-secondary":"text-icon-inverse";return r={info:"light"===e?"text-support-info":"text-support-info-inverse",success:"light"===e?"text-support-success":"text-support-success-inverse",warning:"light"===e?"text-support-warning":"text-support-warning-inverse",error:"light"===e?"text-support-error":"text-support-error-inverse"}[t]||r,r})({theme:t,variant:r});if(e&&(0,a.isValidElement)(e))return(0,a.cloneElement)(e,{className:wt(n,o,e?.props?.className??"")});const i={neutral:(0,Me.jsx)(dr,{className:wt(n,o)}),info:(0,Me.jsx)(dr,{className:wt(n,o)}),success:(0,Me.jsx)(pr,{className:wt(n,o)}),warning:(0,Me.jsx)(hr,{className:wt(n,o)}),error:(0,Me.jsx)(mr,{className:wt(n,o)})};return i[r]||i.neutral},br=({actionType:e="button",onAction:t=()=>{},actionLabel:r="",theme:n=gr})=>{const o="focus:ring-0 focus:ring-offset-0 ring-offset-0 focus:outline-none";let i="text-button-primary border-button-primary hover:border-button-primary hover:text-button-primary-hover";switch("dark"===n&&(i="text-text-inverse border-text-inverse hover:border-text-inverse hover:text-text-inverse"),e){case"button":return(0,Me.jsx)(Zt,{variant:"outline",size:"xs",onClick:t,className:wt("rounded",o,i,"dark"===n?"bg-transparent hover:bg-transparent":"bg-white hover:bg-white"),children:r});case"link":return(0,Me.jsx)(Zt,{variant:"link",size:"xs",onClick:t,className:wt(o,i),children:r});default:return null}},wr=({theme:e=gr,title:t="",inline:r=!1})=>t?(0,Me.jsx)("span",{className:wt("block",{light:"text-text-primary",dark:"text-text-inverse"}[e],"text-sm leading-5 font-semibold",r?"inline":"block"),children:t}):null,xr=({theme:e=gr,content:t="",inline:r=!1})=>t?(0,Me.jsx)("span",{className:wt({light:"text-text-primary",dark:"text-text-inverse"}[e],"block text-sm [&_*]:text-sm leading-5 [&_*]:leading-5 font-normal [word-break:break-word]",r?"inline":"block"),children:t}):null,Cr=(...e)=>t=>{e.forEach((e=>{"function"==typeof e?e(t):e&&(e.current=t)}))},Mr={"top-left":"top-0 bottom-0 left-0 justify-start items-start","top-right":"top-0 bottom-0 right-0 justify-start items-end","bottom-left":"top-0 bottom-0 left-0 justify-end items-start","bottom-right":"top-0 bottom-0 right-0 justify-end items-end"},Er={neutral:"border-alert-border-neutral bg-alert-background-neutral",custom:"border-alert-border-neutral bg-alert-background-neutral",info:"border-alert-border-info bg-alert-background-info",success:"border-alert-border-green bg-alert-background-green",warning:"border-alert-border-warning bg-alert-background-warning",error:"border-alert-border-danger bg-alert-background-danger"},jr="bg-background-inverse border-background-inverse",Or={light:"text-icon-secondary",dark:"text-icon-inverse"},Sr=(0,a.createContext)({});function kr(e){const t=(0,a.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Pr=(0,a.createContext)(null),Nr=(0,a.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Tr extends a.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Dr({children:e,isPresent:t}){const r=(0,a.useId)(),n=(0,a.useRef)(null),o=(0,a.useRef)({width:0,height:0,top:0,left:0}),{nonce:i}=(0,a.useContext)(Nr);return(0,a.useInsertionEffect)((()=>{const{width:e,height:a,top:s,left:l}=o.current;if(t||!n.current||!e||!a)return;n.current.dataset.motionPopId=r;const A=document.createElement("style");return i&&(A.nonce=i),document.head.appendChild(A),A.sheet&&A.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${a}px !important;\n top: ${s}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(A)}}),[t]),(0,Me.jsx)(Tr,{isPresent:t,childRef:n,sizeRef:o,children:a.cloneElement(e,{ref:n})})}const Ir=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:s})=>{const l=kr(Lr),A=(0,a.useId)(),c=(0,a.useCallback)((e=>{l.set(e,!0);for(const e of l.values())if(!e)return;n&&n()}),[l,n]),u=(0,a.useMemo)((()=>({id:A,initial:t,isPresent:r,custom:o,onExitComplete:c,register:e=>(l.set(e,!1),()=>l.delete(e))})),i?[Math.random(),c]:[r,c]);return(0,a.useMemo)((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[r]),a.useEffect((()=>{!r&&!l.size&&n&&n()}),[r]),"popLayout"===s&&(e=(0,Me.jsx)(Dr,{isPresent:r,children:e})),(0,Me.jsx)(Pr.Provider,{value:u,children:e})};function Lr(){return new Map}function zr(e=!0){const t=(0,a.useContext)(Pr);if(null===t)return[!0,null];const{isPresent:r,onExitComplete:n,register:o}=t,i=(0,a.useId)();(0,a.useEffect)((()=>{e&&o(i)}),[e]);const s=(0,a.useCallback)((()=>e&&n&&n(i)),[i,n,e]);return!r&&n?[!1,s]:[!0]}const Rr=e=>e.key||"";function Fr(e){const t=[];return a.Children.forEach(e,(e=>{(0,a.isValidElement)(e)&&t.push(e)})),t}const Vr="undefined"!=typeof window,Wr=Vr?a.useLayoutEffect:a.useEffect,Br=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1})=>{const[l,A]=zr(s),c=(0,a.useMemo)((()=>Fr(e)),[e]),u=s&&!l?[]:c.map(Rr),f=(0,a.useRef)(!0),d=(0,a.useRef)(c),p=kr((()=>new Map)),[h,m]=(0,a.useState)(c),[g,y]=(0,a.useState)(c);Wr((()=>{f.current=!1,d.current=c;for(let e=0;e{const a=Rr(e),h=!(s&&!l)&&(c===g||u.includes(a));return(0,Me.jsx)(Ir,{isPresent:h,initial:!(f.current&&!r)&&void 0,custom:h?void 0:t,presenceAffectsLayout:o,mode:i,onExitComplete:h?void 0:()=>{if(!p.has(a))return;p.set(a,!0);let e=!0;p.forEach((t=>{t||(e=!1)})),e&&(null==b||b(),y(d.current),s&&(null==A||A()),n&&n())},children:e},a)}))})};function Xr(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(r,n)=>"create"===n?e:(t.has(n)||t.set(n,e(n)),t.get(n))})}function Ur(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const Yr=e=>Array.isArray(e);function qr(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n{t[0][r]=e.get(),t[1][r]=e.getVelocity()})),t}function Gr(e,t,r,n){if("function"==typeof t){const[o,i]=Zr(n);t=t(void 0!==r?r:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=Zr(n);t=t(void 0!==r?r:e.custom,o,i)}return t}function Kr(e,t,r){const n=e.getProps();return Gr(n,t,void 0!==r?r:n.custom,e)}const Qr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Jr=["initial",...Qr];function _r(e){let t;return()=>(void 0===t&&(t=e()),t)}const $r=_r((()=>void 0!==window.ScrollTimeline));class en{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map((e=>"finished"in e?e.finished:e)))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r$r()&&r.attachTimeline?r.attachTimeline(e):"function"==typeof t?t(r):void 0));return()=>{r.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;tt[e]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class tn extends en{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function rn(e,t){return e?e[t]||e.default||e:void 0}const nn=2e4;function on(e){let t=0,r=e.next(t);for(;!r.done&&t=nn?1/0:t}function an(e){return"function"==typeof e}function sn(e,t){e.timeline=t,e.onfinish=null}const ln=e=>Array.isArray(e)&&"number"==typeof e[0],An={linearEasing:void 0};function cn(e,t){const r=_r(e);return()=>{var e;return null!==(e=An[t])&&void 0!==e?e:r()}}const un=cn((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing"),fn=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n},dn=(e,t,r=10)=>{let n="";const o=Math.max(Math.round(t/r),2);for(let t=0;t`cubic-bezier(${e}, ${t}, ${r}, ${n})`,mn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:hn([0,.65,.55,1]),circOut:hn([.55,0,1,.45]),backIn:hn([.31,.01,.66,-.59]),backOut:hn([.33,1.53,.69,.99])};function gn(e,t){return e?"function"==typeof e&&un()?dn(e,t):ln(e)?hn(e):Array.isArray(e)?e.map((e=>gn(e,t)||mn.easeOut)):mn[e]:void 0}const yn={x:!1,y:!1};function vn(){return yn.x||yn.y}function bn(e,t){const r=function(e){if(e instanceof Element)return[e];if("string"==typeof e){let t=document;const r=t.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}(e),n=new AbortController;return[r,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function wn(e){return t=>{"touch"===t.pointerType||vn()||e(t)}}const xn=(e,t)=>!!t&&(e===t||xn(e,t.parentElement)),Cn=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,Mn=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),En=new WeakSet;function jn(e){return t=>{"Enter"===t.key&&e(t)}}function On(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function Sn(e){return Cn(e)&&!vn()}const kn=e=>1e3*e,Pn=e=>e/1e3,Nn=e=>e,Tn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Dn=new Set(Tn),In=new Set(["width","height","top","left","right","bottom",...Tn]),Ln=["read","resolveKeyframes","update","preRender","render","postRender"];function zn(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,a=Ln.reduce(((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}const l={schedule:(e,o=!1,a=!1)=>{const s=a&&n?t:r;return o&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),i.delete(e)},process:e=>{a=e,n?o=!0:(n=!0,[t,r]=[r,t],t.forEach(s),t.clear(),n=!1,o&&(o=!1,l.process(e)))}};return l}(i),e)),{}),{read:s,resolveKeyframes:l,update:A,preRender:c,render:u,postRender:f}=a,d=()=>{const i=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,s.process(o),l.process(o),A.process(o),c.process(o),u.process(o),f.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(d))};return{schedule:Ln.reduce(((t,i)=>{const s=a[i];return t[i]=(t,i=!1,a=!1)=>(r||(r=!0,n=!0,o.isProcessing||e(d)),s.schedule(t,i,a)),t}),{}),cancel:e=>{for(let t=0;t(void 0===Bn&&Un.set(Vn.isProcessing?Vn.timestamp:performance.now()),Bn),set:e=>{Bn=e,queueMicrotask(Xn)}};function Yn(e,t){-1===e.indexOf(t)&&e.push(t)}function qn(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Hn{constructor(){this.subscriptions=[]}add(e){return Yn(this.subscriptions,e),()=>qn(this.subscriptions,e)}notify(e,t,r){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let o=0;o{const r=Un.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Un.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(e=>!isNaN(parseFloat(e)))(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Hn);const r=this.events[e].add(t);return"change"===e?()=>{r(),Rn.read((()=>{this.events.change.getSize()||this.stop()}))}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Gn.current&&Gn.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Un.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Zn(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Qn(e,t){return new Kn(e,t)}function Jn(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Qn(r))}const _n=e=>Boolean(e&&e.getVelocity);function $n(e,t){const r=e.getValue("willChange");if(function(e){return Boolean(_n(e)&&e.add)}(r))return r.add(t)}const eo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),to="data-"+eo("framerAppearId");function ro(e){return e.props[to]}const no=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function oo(e,t,r,n){if(e===t&&r===n)return Nn;return o=>0===o||1===o?o:no(function(e,t,r,n,o){let i,a,s=0;do{a=t+(r-t)/2,i=no(a,n,o)-e,i>0?r=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(o,0,1,e,r),t,n)}const io=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ao=e=>t=>1-e(1-t),so=oo(.33,1.53,.69,.99),lo=ao(so),Ao=io(lo),co=e=>(e*=2)<1?.5*lo(e):.5*(2-Math.pow(2,-10*(e-1))),uo=e=>1-Math.sin(Math.acos(e)),fo=ao(uo),po=io(uo),ho=e=>/^0[^.\s]+$/u.test(e);function mo(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||ho(e)}const go=(e,t,r)=>r>t?t:r"number"==typeof e,parse:parseFloat,transform:e=>e},vo={...yo,transform:e=>go(0,1,e)},bo={...yo,default:1},wo=e=>Math.round(1e5*e)/1e5,xo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Co=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Mo=(e,t)=>r=>Boolean("string"==typeof r&&Co.test(r)&&r.startsWith(e)||t&&!function(e){return null==e}(r)&&Object.prototype.hasOwnProperty.call(r,t)),Eo=(e,t,r)=>n=>{if("string"!=typeof n)return n;const[o,i,a,s]=n.match(xo);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},jo={...yo,transform:e=>Math.round((e=>go(0,255,e))(e))},Oo={test:Mo("rgb","red"),parse:Eo("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+jo.transform(e)+", "+jo.transform(t)+", "+jo.transform(r)+", "+wo(vo.transform(n))+")"},So={test:Mo("#"),parse:function(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}},transform:Oo.transform},ko=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Po=ko("deg"),No=ko("%"),To=ko("px"),Do=ko("vh"),Io=ko("vw"),Lo={...No,parse:e=>No.parse(e)/100,transform:e=>No.transform(100*e)},zo={test:Mo("hsl","hue"),parse:Eo("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+No.transform(wo(t))+", "+No.transform(wo(r))+", "+wo(vo.transform(n))+")"},Ro={test:e=>Oo.test(e)||So.test(e)||zo.test(e),parse:e=>Oo.test(e)?Oo.parse(e):zo.test(e)?zo.parse(e):So.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?Oo.transform(e):zo.transform(e)},Fo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Vo="number",Wo="color",Bo=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Xo(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Bo,(e=>(Ro.test(e)?(n.color.push(i),o.push(Wo),r.push(Ro.parse(e))):e.startsWith("var(")?(n.var.push(i),o.push("var"),r.push(e)):(n.number.push(i),o.push(Vo),r.push(parseFloat(e))),++i,"${}"))).split("${}");return{values:r,split:a,indexes:n,types:o}}function Uo(e){return Xo(e).values}function Yo(e){const{split:t,types:r}=Xo(e),n=t.length;return e=>{let o="";for(let i=0;i"number"==typeof e?0:e,Ho={test:function(e){var t,r;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(xo))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(Fo))||void 0===r?void 0:r.length)||0)>0},parse:Uo,createTransformer:Yo,getAnimatableNone:function(e){const t=Uo(e);return Yo(e)(t.map(qo))}},Zo=new Set(["brightness","contrast","saturate","opacity"]);function Go(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(xo)||[];if(!n)return e;const o=r.replace(n,"");let i=Zo.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const Ko=/\b([a-z-]*)\(.*?\)/gu,Qo={...Ho,getAnimatableNone:e=>{const t=e.match(Ko);return t?t.map(Go).join(" "):e}},Jo={borderWidth:To,borderTopWidth:To,borderRightWidth:To,borderBottomWidth:To,borderLeftWidth:To,borderRadius:To,radius:To,borderTopLeftRadius:To,borderTopRightRadius:To,borderBottomRightRadius:To,borderBottomLeftRadius:To,width:To,maxWidth:To,height:To,maxHeight:To,top:To,right:To,bottom:To,left:To,padding:To,paddingTop:To,paddingRight:To,paddingBottom:To,paddingLeft:To,margin:To,marginTop:To,marginRight:To,marginBottom:To,marginLeft:To,backgroundPositionX:To,backgroundPositionY:To},_o={rotate:Po,rotateX:Po,rotateY:Po,rotateZ:Po,scale:bo,scaleX:bo,scaleY:bo,scaleZ:bo,skew:Po,skewX:Po,skewY:Po,distance:To,translateX:To,translateY:To,translateZ:To,x:To,y:To,z:To,perspective:To,transformPerspective:To,opacity:vo,originX:Lo,originY:Lo,originZ:To},$o={...yo,transform:Math.round},ei={...Jo,..._o,zIndex:$o,size:To,fillOpacity:vo,strokeOpacity:vo,numOctaves:$o},ti={...ei,color:Ro,backgroundColor:Ro,outlineColor:Ro,fill:Ro,stroke:Ro,borderColor:Ro,borderTopColor:Ro,borderRightColor:Ro,borderBottomColor:Ro,borderLeftColor:Ro,filter:Qo,WebkitFilter:Qo},ri=e=>ti[e];function ni(e,t){let r=ri(e);return r!==Qo&&(r=Ho),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const oi=new Set(["auto","none","0"]),ii=e=>e===yo||e===To,ai=(e,t)=>parseFloat(e.split(", ")[t]),si=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/u);if(o)return ai(o[1],t);{const t=n.match(/^matrix\((.+)\)$/u);return t?ai(t[1],e):0}},li=new Set(["x","y","z"]),Ai=Tn.filter((e=>!li.has(e))),ci={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:si(4,13),y:si(5,14)};ci.translateX=ci.x,ci.translateY=ci.y;const ui=new Set;let fi=!1,di=!1;function pi(){if(di){const e=Array.from(ui).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),r=new Map;t.forEach((e=>{const t=function(e){const t=[];return Ai.forEach((r=>{const n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))})),t}(e);t.length&&(r.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=r.get(e);t&&t.forEach((([t,r])=>{var n;null===(n=e.getValue(t))||void 0===n||n.set(r)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}di=!1,fi=!1,ui.forEach((e=>e.complete())),ui.clear()}function hi(){ui.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(di=!0)}))}class mi{constructor(e,t,r,n,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ui.add(this),fi||(fi=!0,Rn.read(hi),Rn.resolveKeyframes(pi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;for(let o=0;o/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),bi=e=>t=>"string"==typeof t&&t.startsWith(e),wi=bi("--"),xi=bi("var(--"),Ci=e=>!!xi(e)&&Mi.test(e.split("/*")[0].trim()),Mi=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ei=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ji(e,t,r=1){yi(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,o]=function(e){const t=Ei.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${null!=r?r:n}`,o]}(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const e=i.trim();return vi(e)?parseFloat(e):e}return Ci(o)?ji(o,t,r+1):o}const Oi=e=>t=>t.test(e),Si=[yo,To,No,Po,Io,Do,{test:e=>"auto"===e,parse:e=>e}],ki=e=>Si.find(Oi(e));class Pi extends mi{constructor(e,t,r,n,o){super(e,t,r,n,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r{t.getValue(e).set(r)})),this.resolveNoneKeyframes()}}const Ni=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!Ho.test(e)&&"0"!==e||e.startsWith("url(")));function Ti(e,t,r,n){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=Ni(o,t),s=Ni(i,t);return gi(a===s,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let r=0;rnull!==e;function Ii(e,{repeat:t,repeatType:r="loop"},n){const o=e.filter(Di),i=t&&"loop"!==r&&t%2==1?0:o.length-1;return i&&void 0!==n?n:o[i]}class Li{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Un.now(),this.options={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:o,repeatType:i,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(hi(),pi()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=Un.now(),this.hasAttemptedResolve=!0;const{name:r,type:n,velocity:o,delay:i,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!Ti(e,r,n,o)){if(!i)return s&&s(Ii(e,this.options,t)),a&&a(),void this.resolveFinishedPromise();this.options.duration=0}const A=this.initPlayback(e,t);!1!==A&&(this._resolved={keyframes:e,finalKeyframe:t,...A},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}const zi=(e,t,r)=>e+(t-e)*r;function Ri(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Fi(e,t){return r=>r>0?t:e}const Vi=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},Wi=[So,Oo,zo];function Bi(e){const t=(r=e,Wi.find((e=>e.test(r))));var r;if(gi(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let n=t.parse(e);return t===zo&&(n=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let o=0,i=0,a=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;o=Ri(s,n,e+1/3),i=Ri(s,n,e),a=Ri(s,n,e-1/3)}else o=i=a=r;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:n}}(n)),n}const Xi=(e,t)=>{const r=Bi(e),n=Bi(t);if(!r||!n)return Fi(e,t);const o={...r};return e=>(o.red=Vi(r.red,n.red,e),o.green=Vi(r.green,n.green,e),o.blue=Vi(r.blue,n.blue,e),o.alpha=zi(r.alpha,n.alpha,e),Oo.transform(o))},Ui=(e,t)=>r=>t(e(r)),Yi=(...e)=>e.reduce(Ui),qi=new Set(["none","hidden"]);function Hi(e,t){return r=>zi(e,t,r)}function Zi(e){return"number"==typeof e?Hi:"string"==typeof e?Ci(e)?Fi:Ro.test(e)?Xi:Qi:Array.isArray(e)?Gi:"object"==typeof e?Ro.test(e)?Xi:Ki:Fi}function Gi(e,t){const r=[...e],n=r.length,o=e.map(((e,r)=>Zi(e)(e,t[r])));return e=>{for(let t=0;t{for(const t in n)r[t]=n[t](e);return r}}const Qi=(e,t)=>{const r=Ho.createTransformer(t),n=Xo(e),o=Xo(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?qi.has(e)&&!o.values.length||qi.has(t)&&!n.values.length?function(e,t){return qi.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):Yi(Gi(function(e,t){var r;const n=[],o={color:0,var:0,number:0};for(let i=0;ivoid 0!==e[t]))}function la(e=.3,t=.3){const r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:o}=r;const i=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:A,mass:c,duration:u,velocity:f,isResolvedFromDuration:d}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!sa(e,aa)&&sa(e,ia))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(1.2*r),o=n*n,i=2*go(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:1,stiffness:o,damping:i}}else{const r=function({duration:e=800,bounce:t=.3,velocity:r=0,mass:n=1}){let o,i;gi(e<=kn(10),"Spring duration must be 10 seconds or less");let a=1-t;a=go(.05,1,a),e=go(.01,10,Pn(e)),a<1?(o=t=>{const n=t*a,o=n*e;return.001-(n-r)/oa(t,a)*Math.exp(-o)},i=t=>{const n=t*a*e,i=n*r+r,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-n),A=oa(Math.pow(t,2),a);return(.001-o(t)>0?-1:1)*((i-s)*l)/A}):(o=t=>Math.exp(-t*e)*((t-r)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let r=1;r{const r=Math.exp(-h*g*t);return a-r*((p+h*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===h)v=e=>a-Math.exp(-g*e)*(m+(p+g*m)*e);else{const e=g*Math.sqrt(h*h-1);v=t=>{const r=Math.exp(-h*g*t),n=Math.min(e*t,300);return a-r*((p+h*g*m)*Math.sinh(n)+e*m*Math.cosh(n))/e}}const b={calculatedDuration:d&&u||null,next:e=>{const t=v(e);if(d)s.done=e>=u;else{let r=0;h<1&&(r=0===e?kn(p):_i(v,e,t));const i=Math.abs(r)<=n,l=Math.abs(a-t)<=o;s.done=i&&l}return s.value=s.done?a:t,s},toString:()=>{const e=Math.min(on(b),nn),t=dn((t=>b.next(e*t).value),e,30);return e+"ms "+t}};return b}function Aa({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:A=.5,restSpeed:c}){const u=e[0],f={done:!1,value:u},d=e=>void 0===s?l:void 0===l||Math.abs(s-e)-p*Math.exp(-e/n),y=e=>m+g(e),v=e=>{const t=g(e),r=y(e);f.done=Math.abs(t)<=A,f.value=f.done?m:r};let b,w;const x=e=>{var t;t=f.value,(void 0!==s&&tl)&&(b=e,w=la({keyframes:[f.value,d(f.value)],velocity:_i(y,e,f.value),damping:o,stiffness:i,restDelta:A,restSpeed:c}))};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==b||(t=!0,v(e),x(e)),void 0!==b&&e>=b?w.next(e-b):(!t&&v(e),f)}}}const ca=oo(.42,0,1,1),ua=oo(0,0,.58,1),fa=oo(.42,0,.58,1),da={linear:Nn,easeIn:ca,easeInOut:fa,easeOut:ua,circIn:uo,circInOut:po,circOut:fo,backIn:lo,backInOut:Ao,backOut:so,anticipate:co},pa=e=>{if(ln(e)){yi(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,o]=e;return oo(t,r,n,o)}return"string"==typeof e?(yi(void 0!==da[e],`Invalid easing type '${e}'`),da[e]):e};function ha({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(n)?n.map(pa):pa(n),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(r&&r.length===t.length?r:function(e){const t=[0];return function(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=fn(0,t,n);e.push(zi(r,1,o))}}(t,e.length-1),t}(t),e),s=function(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;if(yi(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,r){const n=[],o=r||Ji,i=e.length-1;for(let r=0;r{if(a&&r1)for(;nA(go(e[0],e[i-1],t)):A}(a,t,{ease:Array.isArray(o)?o:(l=t,A=o,l.map((()=>A||fa)).splice(0,l.length-1))});var l,A;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}const ma=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Rn.update(t,!0),stop:()=>Fn(t),now:()=>Vn.isProcessing?Vn.timestamp:Un.now()}},ga={decay:Aa,inertia:Aa,tween:ha,keyframes:ha,spring:la},ya=e=>e/100;class va extends Li{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:r,element:n,keyframes:o}=this.options,i=(null==n?void 0:n.KeyframeResolver)||mi;this.resolver=new i(o,((e,t)=>this.onKeyframesResolved(e,t)),t,r,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:o,velocity:i=0}=this.options,a=an(t)?t:ga[t]||ha;let s,l;a!==ha&&"number"!=typeof e[0]&&(s=Yi(ya,Ji(e[0],e[1])),e=[0,100]);const A=a({...this.options,keyframes:e});"mirror"===o&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===A.calculatedDuration&&(A.calculatedDuration=on(A));const{calculatedDuration:c}=A,u=c+n;return{generator:A,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:c,resolvedDuration:u,totalDuration:u*(r+1)-n}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:r}=this;if(!r){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:n,generator:o,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:A,resolvedDuration:c}=r;if(null===this.startTime)return o.next(0);const{delay:u,repeat:f,repeatType:d,repeatDelay:p,onUpdate:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-A/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const m=this.currentTime-u*(this.speed>=0?1:-1),g=this.speed>=0?m<0:m>A;this.currentTime=Math.max(m,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=A);let y=this.currentTime,v=o;if(f){const e=Math.min(this.currentTime,A)/c;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,f+1),Boolean(t%2)&&("reverse"===d?(r=1-r,p&&(r-=p/c)):"mirror"===d&&(v=i)),y=go(0,1,r)*c}const b=g?{done:!1,value:s[0]}:v.next(y);a&&(b.value=a(b.value));let{done:w}=b;g||null===l||(w=this.speed>=0?this.currentTime>=A:this.currentTime<=0);const x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return x&&void 0!==n&&(b.value=Ii(s,this.options,n)),h&&h(b.value),x&&this.finish(),b}get duration(){const{resolved:e}=this;return e?Pn(e.calculatedDuration):0}get time(){return Pn(this.currentTime)}set time(e){e=kn(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Pn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=ma,onPlay:t,startTime:r}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=r?r:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const ba=new Set(["opacity","clipPath","filter","transform"]),wa=_r((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),xa={anticipate:co,backInOut:Ao,circInOut:po};class Ca extends Li{constructor(e){super(e);const{name:t,motionValue:r,element:n,keyframes:o}=this.options;this.resolver=new Pi(o,((e,t)=>this.onKeyframesResolved(e,t)),t,r,n),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:r=300,times:n,ease:o,type:i,motionValue:a,name:s,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;var A;if("string"==typeof o&&un()&&o in xa&&(o=xa[o]),an((A=this.options).type)||"spring"===A.type||!pn(A.ease)){const{onComplete:t,onUpdate:a,motionValue:s,element:l,...A}=this.options,c=function(e,t){const r=new va({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:e[0]};const o=[];let i=0;for(;!n.done&&i<2e4;)n=r.sample(i),o.push(n.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,A);1===(e=c.keyframes).length&&(e[1]=e[0]),r=c.duration,n=c.times,o=c.ease,i="keyframes"}const c=function(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeInOut",times:l}={}){const A={[t]:r};l&&(A.offset=l);const c=gn(s,o);return Array.isArray(c)&&(A.easing=c),e.animate(A,{delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(a.owner.current,s,e,{...this.options,duration:r,times:n,ease:o});return c.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(sn(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:r}=this.options;a.set(Ii(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:n,type:i,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Pn(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Pn(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.currentTime=kn(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return Nn;const{animation:r}=t;sn(r,e)}else this.pendingTimeline=e;return Nn}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:r,duration:n,type:o,ease:i,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,element:l,...A}=this.options,c=new va({...A,keyframes:r,duration:n,type:o,ease:i,times:a,isGenerator:!0}),u=kn(this.time);e.setWithVelocity(c.sample(u-10).value,c.sample(u).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:i,type:a}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:s,transformTemplate:l}=t.owner.getProps();return wa()&&r&&ba.has(r)&&!s&&!l&&!n&&"mirror"!==o&&0!==i&&"inertia"!==a}}const Ma={type:"spring",stiffness:500,damping:25,restSpeed:10},Ea={type:"keyframes",duration:.8},ja={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Oa=(e,{keyframes:t})=>t.length>2?Ea:Dn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Ma:ja,Sa=(e,t,r,n={},o,i)=>a=>{const s=rn(n,e)||{},l=s.delay||n.delay||0;let{elapsed:A=0}=n;A-=kn(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-A,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:A,...c}){return!!Object.keys(c).length})(s)||(c={...c,...Oa(e,c)}),c.duration&&(c.duration=kn(c.duration)),c.repeatDelay&&(c.repeatDelay=kn(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let u=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(u=!0)),u&&!i&&void 0!==t.get()){const e=Ii(c.keyframes,s);if(void 0!==e)return Rn.update((()=>{c.onUpdate(e),c.onComplete()})),new tn([])}return!i&&Ca.supports(c)?new Ca(c):new va(c)};function ka({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}function Pa(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;n&&(a=n);const A=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const n=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||c&&ka(c,t))continue;const s={delay:r,...rn(a||{},t)};let u=!1;if(window.MotionHandoffAnimation){const r=ro(e);if(r){const e=window.MotionHandoffAnimation(r,t,Rn);null!==e&&(s.startTime=e,u=!0)}}$n(e,t),n.start(Sa(t,n,o,e.shouldReduceMotion&&In.has(t)?{type:!1}:s,e,u));const f=n.animation;f&&A.push(f)}return s&&Promise.all(A).then((()=>{Rn.update((()=>{s&&function(e,t){const r=Kr(e,t);let{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(const t in i)Jn(e,t,(a=i[t],Yr(a)?a[a.length-1]||0:a));var a}(e,s)}))})),A}function Na(e,t,r={}){var n;const o=Kr(e,t,"exit"===r.type?null===(n=e.presenceContext)||void 0===n?void 0:n.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(i=r.transitionOverride);const a=o?()=>Promise.all(Pa(e,o,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(n=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,r=0,n=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*n,l=1===o?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(Ta).forEach(((e,n)=>{e.notify("AnimationStart",t),a.push(Na(e,t,{...i,delay:r+l(n)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,o+n,a,s,r)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then((()=>t()))}return Promise.all([a(),s(r.delay)])}function Ta(e,t){return e.sortNodePosition(t)}const Da=Jr.length;function Ia(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&Ia(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let r=0;rPromise.all(t.map((({animation:t,options:r})=>function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>Na(e,t,r)));n=Promise.all(o)}else if("string"==typeof t)n=Na(e,t,r);else{const o="function"==typeof t?Kr(e,t,r.custom):t;n=Promise.all(Pa(e,o,r))}return n.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,r))))}(e),r=Va(),n=!0;const o=t=>(r,n)=>{var o;const i=Kr(e,n,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...n}=i;r={...r,...n,...t}}return r};function i(i){const{props:a}=e,s=Ia(e.parent)||{},l=[],A=new Set;let c={},u=1/0;for(let t=0;tu&&g,x=!1;const C=Array.isArray(m)?m:[m];let M=C.reduce(o(p),{});!1===y&&(M={});const{prevResolvedValues:E={}}=h,j={...E,...M},O=t=>{w=!0,A.has(t)&&(x=!0,A.delete(t)),h.needsAnimating[t]=!0;const r=e.getValue(t);r&&(r.liveStyle=!1)};for(const e in j){const t=M[e],r=E[e];if(c.hasOwnProperty(e))continue;let n=!1;n=Yr(t)&&Yr(r)?!qr(t,r):t!==r,n?null!=t?O(e):A.add(e):void 0!==t&&A.has(e)?O(e):h.protectedKeys[e]=!0}h.prevProp=m,h.prevResolvedValues=M,h.isActive&&(c={...c,...M}),n&&e.blockInitialAnimation&&(w=!1),w&&(!v||!b||x)&&l.push(...C.map((e=>({animation:e,options:{type:p}}))))}var f,d;if(A.size){const t={};A.forEach((r=>{const n=e.getBaseTarget(r),o=e.getValue(r);o&&(o.liveStyle=!0),t[r]=null!=n?n:null})),l.push({animation:t})}let p=Boolean(l.length);return!n||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(p=!1),n=!1,p?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,n){var o;if(r[t].isActive===n)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n;const a=i(t);for(const e in r)r[e].protectedKeys={};return a},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=Va(),n=!0}}}function Fa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Va(){return{animate:Fa(!0),whileInView:Fa(),whileHover:Fa(),whileTap:Fa(),whileDrag:Fa(),whileFocus:Fa(),exit:Fa()}}class Wa{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Ba=0;const Xa={animation:{Feature:class extends Wa{constructor(e){super(e),e.animationState||(e.animationState=Ra(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Ur(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Wa{constructor(){super(...arguments),this.id=Ba++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function Ua(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Ya(e){return{point:{x:e.pageX,y:e.pageY}}}function qa(e,t,r,n){return Ua(e,t,(e=>t=>Cn(t)&&e(t,Ya(t)))(r),n)}const Ha=(e,t)=>Math.abs(e-t);class Za{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Qa(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=Ha(e.x,t.x),n=Ha(e.y,t.y);return Math.sqrt(r**2+n**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;const{point:n}=e,{timestamp:o}=Vn;this.history.push({...n,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Ga(t,this.transformPagePoint),Rn.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:r,onSessionEnd:n,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Qa("pointercancel"===e.type?this.lastMoveEventInfo:Ga(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},!Cn(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;const i=Ga(Ya(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=Vn;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Qa(i,this.history)),this.removeListeners=Yi(qa(this.contextWindow,"pointermove",this.handlePointerMove),qa(this.contextWindow,"pointerup",this.handlePointerUp),qa(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Fn(this.updatePoint)}}function Ga(e,t){return t?{point:t(e.point)}:e}function Ka(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Qa({point:e},t){return{point:e,delta:Ka(e,_a(t)),offset:Ka(e,Ja(t)),velocity:$a(t,.1)}}function Ja(e){return e[0]}function _a(e){return e[e.length-1]}function $a(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=_a(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>kn(t)));)r--;if(!n)return{x:0,y:0};const i=Pn(o.timestamp-n.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function es(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ts(e){return e.max-e.min}function rs(e,t,r,n=.5){e.origin=n,e.originPoint=zi(t.min,t.max,e.origin),e.scale=ts(r)/ts(t),e.translate=zi(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function ns(e,t,r,n){rs(e.x,t.x,r.x,n?n.originX:void 0),rs(e.y,t.y,r.y,n?n.originY:void 0)}function os(e,t,r){e.min=r.min+t.min,e.max=e.min+ts(t)}function is(e,t,r){e.min=t.min-r.min,e.max=e.min+ts(t)}function as(e,t,r){is(e.x,t.x,r.x),is(e.y,t.y,r.y)}function ss(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function ls(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min({x:{min:0,max:0},y:{min:0,max:0}});function ds(e){return[e("x"),e("y")]}function ps({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function hs(e){return void 0===e||1===e}function ms({scale:e,scaleX:t,scaleY:r}){return!hs(e)||!hs(t)||!hs(r)}function gs(e){return ms(e)||ys(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ys(e){return vs(e.x)||vs(e.y)}function vs(e){return e&&"0%"!==e}function bs(e,t,r){return r+t*(e-r)}function ws(e,t,r,n,o){return void 0!==o&&(e=bs(e,o,n)),bs(e,r,n)+t}function xs(e,t=0,r=1,n,o){e.min=ws(e.min,t,r,n,o),e.max=ws(e.max,t,r,n,o)}function Cs(e,{x:t,y:r}){xs(e.x,t.translate,t.scale,t.originPoint),xs(e.y,r.translate,r.scale,r.originPoint)}const Ms=.999999999999,Es=1.0000000000001;function js(e,t){e.min=e.min+t,e.max=e.max+t}function Os(e,t,r,n,o=.5){xs(e,t,r,zi(e.min,e.max,o),n)}function Ss(e,t){Os(e.x,t.x,t.scaleX,t.scale,t.originX),Os(e.y,t.y,t.scaleY,t.scale,t.originY)}function ks(e,t){return ps(function(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}const Ps=({current:e})=>e?e.ownerDocument.defaultView:null,Ns=new WeakMap;class Ts{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:n}=this.getProps();this.panSession=new Za(e,{onSessionStart:e=>{const{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Ya(e).point)},onStart:(e,t)=>{const{drag:r,dragPropagation:n,onDragStart:o}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=r)||"y"===i?yn[i]?null:(yn[i]=!0,()=>{yn[i]=!1}):yn.x||yn.y?null:(yn.x=yn.y=!0,()=>{yn.x=yn.y=!1}),!this.openDragLock))return;var i;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ds((e=>{let t=this.getAxisMotionValue(e).get()||0;if(No.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const n=r.layout.layoutBox[e];n&&(t=ts(n)*(parseFloat(t)/100))}}this.originPoint[e]=t})),o&&Rn.postRender((()=>o(e,t))),$n(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:r,dragDirectionLock:n,onDirectionLock:o,onDrag:i}=this.getProps();if(!r&&!this.openDragLock)return;const{offset:a}=t;if(n&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>ds((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:Ps(this.visualElement)})}stop(e,t){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:n}=t;this.startAnimation(n);const{onDragEnd:o}=this.getProps();o&&Rn.postRender((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){const{drag:n}=this.getProps();if(!r||!Ds(e,n,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:r},n){return void 0!==t&&er&&(e=n?zi(r,e,n.max):Math.min(e,r)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&es(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(e,{top:t,left:r,bottom:n,right:o}){return{x:ss(e.x,r,o),y:ss(e.y,t,n)}}(n.layoutBox,t),this.elastic=function(e=As){return!1===e?e=0:!0===e&&(e=As),{x:cs(e,"left","right"),y:cs(e,"top","bottom")}}(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ds((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!es(e))return!1;const r=e.current;yi(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const o=function(e,t,r){const n=ks(e,r),{scroll:o}=t;return o&&(js(n.x,o.offset.x),js(n.y,o.offset.y)),n}(r,n.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:ls(e.x,t.x),y:ls(e.y,t.y)}}(n.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=ps(e))}return i}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:n,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=ds((a=>{if(!Ds(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const A=n?200:1e6,c=n?40:1e7,u={type:"inertia",velocity:r?e[a]:0,bounceStiffness:A,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,u)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return $n(this.visualElement,e),r.start(Sa(e,r,0,t,this.visualElement,!1))}stopAnimation(){ds((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){ds((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){ds((t=>{const{drag:r}=this.getProps();if(!Ds(t,r,this.currentDirection))return;const{projection:n}=this.visualElement,o=this.getAxisMotionValue(t);if(n&&n.layout){const{min:r,max:i}=n.layout.layoutBox[t];o.set(e[t]-zi(r,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!es(t)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};ds((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const r=t.get();n[e]=function(e,t){let r=.5;const n=ts(e),o=ts(t);return o>n?r=fn(t.min,t.max-n,e.min):n>o&&(r=fn(e.min,e.max-o,t.min)),go(0,1,r)}({min:r,max:r},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ds((t=>{if(!Ds(t,e,null))return;const r=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];r.set(zi(o,i,n[t]))}))}addListeners(){if(!this.visualElement.current)return;Ns.set(this.visualElement,this);const e=qa(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();es(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Rn.read(t);const o=Ua(window,"resize",(()=>this.scalePositionWithinConstraints())),i=r.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ds((t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),n(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:i=As,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Ds(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}const Is=e=>(t,r)=>{e&&Rn.postRender((()=>e(t,r)))},Ls=(0,a.createContext)({}),zs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Rs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Fs={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!To.test(e))return e;e=parseFloat(e)}return`${Rs(e,t.target.x)}% ${Rs(e,t.target.y)}%`}},Vs={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=Ho.parse(e);if(o.length>5)return n;const i=Ho.createTransformer(e),a="number"!=typeof o[0]?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const A=zi(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=A),"number"==typeof o[3+a]&&(o[3+a]/=A),i(o)}},Ws={},{schedule:Bs,cancel:Xs}=zn(queueMicrotask,!1);class Us extends a.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:o}=e;var i;i=qs,Object.assign(Ws,i),o&&(t.group&&t.group.add(o),r&&r.register&&n&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),zs.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:n,isPresent:o}=this.props,i=r.projection;return i?(i.isPresent=o,n||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Rn.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Bs.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ys(e){const[t,r]=zr(),n=(0,a.useContext)(Sr);return(0,Me.jsx)(Us,{...e,layoutGroup:n,switchLayoutGroup:(0,a.useContext)(Ls),isPresent:t,safeToRemove:r})}const qs={borderRadius:{...Fs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fs,borderTopRightRadius:Fs,borderBottomLeftRadius:Fs,borderBottomRightRadius:Fs,boxShadow:Vs},Hs=(e,t)=>e.depth-t.depth;class Zs{constructor(){this.children=[],this.isDirty=!1}add(e){Yn(this.children,e),this.isDirty=!0}remove(e){qn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Hs),this.isDirty=!1,this.children.forEach(e)}}function Gs(e){const t=_n(e)?e.get():e;return r=t,Boolean(r&&"object"==typeof r&&r.mix&&r.toValue)?t.toValue():t;var r}const Ks=["TopLeft","TopRight","BottomLeft","BottomRight"],Qs=Ks.length,Js=e=>"string"==typeof e?parseFloat(e):e,_s=e=>"number"==typeof e||To.test(e);function $s(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const el=rl(0,.5,fo),tl=rl(.5,.95,Nn);function rl(e,t,r){return n=>nt?1:r(fn(e,t,n))}function nl(e,t){e.min=t.min,e.max=t.max}function ol(e,t){nl(e.x,t.x),nl(e.y,t.y)}function il(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function al(e,t,r,n,o){return e=bs(e-=t,1/r,n),void 0!==o&&(e=bs(e,1/o,n)),e}function sl(e,t,[r,n,o],i,a){!function(e,t=0,r=1,n=.5,o,i=e,a=e){if(No.test(t)&&(t=parseFloat(t),t=zi(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=zi(i.min,i.max,n);e===i&&(s-=t),e.min=al(e.min,t,r,s,o),e.max=al(e.max,t,r,s,o)}(e,t[r],t[n],t[o],t.scale,i,a)}const ll=["x","scaleX","originX"],Al=["y","scaleY","originY"];function cl(e,t,r,n){sl(e.x,t,ll,r?r.x:void 0,n?n.x:void 0),sl(e.y,t,Al,r?r.y:void 0,n?n.y:void 0)}function ul(e){return 0===e.translate&&1===e.scale}function fl(e){return ul(e.x)&&ul(e.y)}function dl(e,t){return e.min===t.min&&e.max===t.max}function pl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function hl(e,t){return pl(e.x,t.x)&&pl(e.y,t.y)}function ml(e){return ts(e.x)/ts(e.y)}function gl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class yl{constructor(){this.members=[]}add(e){Yn(this.members,e),e.scheduleRender()}remove(e){if(qn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let r;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){r=t;break}}return!!r&&(this.promote(r),!0)}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const vl={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},bl="undefined"!=typeof window&&void 0!==window.MotionDebug,wl=["","X","Y","Z"],xl={visibility:"hidden"};let Cl=0;function Ml(e,t,r,n){const{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function El(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=ro(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:t,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Rn,!(t||n))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&El(n)}function jl({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(e={},r=(null==t?void 0:t())){this.id=Cl++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,bl&&(vl.totalNodes=vl.resolvedTargetDeltas=vl.recalculatedProjection=0),this.nodes.forEach(kl),this.nodes.forEach(zl),this.nodes.forEach(Rl),this.nodes.forEach(Pl),bl&&window.MotionDebug.record(vl)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){const r=Un.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(Fn(n),e(i-t))};return Rn.read(n,!0),()=>Fn(n)}(n,250),zs.hasAnimatedSinceResize&&(zs.hasAnimatedSinceResize=!1,this.nodes.forEach(Ll))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||Ul,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!hl(this.targetLayout,n)||r,A=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||A||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,A);const t={...rn(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Ll(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Fn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Fl),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&El(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;eMs&&(t.x=1),t.yMs&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,r),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(il(this.prevProjectionDelta.x,this.projectionDelta.x),il(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ns(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&gl(this.projectionDelta.x,this.prevProjectionDelta.x)&&gl(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),bl&&vl.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const r=this.snapshot,n=r?r.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),A=!l||l.members.length<=1,c=Boolean(s&&!A&&!0===this.options.crossfade&&!this.path.some(Xl));let u;this.animationProgress=0,this.mixTargetDelta=t=>{const r=t/1e3;Wl(i.x,e.x,r),Wl(i.y,e.y,r),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(as(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,r,n){Bl(e.x,t.x,r.x,n),Bl(e.y,t.y,r.y,n)}(this.relativeTarget,this.relativeTargetOrigin,a,r),u&&function(e,t){return dl(e.x,t.x)&&dl(e.y,t.y)}(this.relativeTarget,u)&&(this.isProjectionDirty=!1),u||(u={x:{min:0,max:0},y:{min:0,max:0}}),ol(u,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,r,n,o,i){o?(e.opacity=zi(0,void 0!==r.opacity?r.opacity:1,el(n)),e.opacityExit=zi(void 0!==t.opacity?t.opacity:1,0,tl(n))):i&&(e.opacity=zi(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let o=0;o{zs.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){const n=_n(0)?0:Qn(0);return n.start(Sa("",n,1e3,r)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:r,layout:n,latestValues:o}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&Zl(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=ts(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const n=ts(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}ol(t,r),Ss(t,o),ns(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new yl),this.sharedNodes.get(e).add(t);const r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){const n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;const n={};r.z&&Ml("z",e,n,this.animationValues);for(let t=0;t{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Tl),this.root.sharedNodes.clear()}}}function Ol(e){e.updateLayout()}function Sl(e){var t;const r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:o}=e.options,i=r.source!==e.layout.source;"size"===o?ds((e=>{const n=i?r.measuredBox[e]:r.layoutBox[e],o=ts(n);n.min=t[e].min,n.max=n.min+o})):Zl(o,r.layoutBox,t)&&ds((n=>{const o=i?r.measuredBox[n]:r.layoutBox[n],a=ts(t[n]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)}));const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};ns(a,t,r.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?ns(s,e.applyTransform(n,!0),r.measuredBox):ns(s,t,r.layoutBox);const l=!fl(a);let A=!1;if(!e.resumeFrom){const n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:o,layout:i}=n;if(o&&i){const a={x:{min:0,max:0},y:{min:0,max:0}};as(a,r.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};as(s,t,i.layoutBox),hl(a,s)||(A=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:A})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function kl(e){bl&&vl.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Pl(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Nl(e){e.clearSnapshot()}function Tl(e){e.clearMeasurements()}function Dl(e){e.isLayoutDirty=!1}function Il(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ll(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function zl(e){e.resolveTargetDelta()}function Rl(e){e.calcProjection()}function Fl(e){e.resetSkewAndRotation()}function Vl(e){e.removeLeadSnapshot()}function Wl(e,t,r){e.translate=zi(t.translate,0,r),e.scale=zi(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Bl(e,t,r,n){e.min=zi(t.min,r.min,n),e.max=zi(t.max,r.max,n)}function Xl(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Ul={duration:.45,ease:[.4,0,.1,1]},Yl=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ql=Yl("applewebkit/")&&!Yl("chrome/")?Math.round:Nn;function Hl(e){e.min=ql(e.min),e.max=ql(e.max)}function Zl(e,t,r){return"position"===e||"preserve-aspect"===e&&!function(e,t){return Math.abs(e-t)<=.2}(ml(t),ml(r))}function Gl(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const Kl=jl({attachResizeListener:(e,t)=>Ua(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ql={current:void 0},Jl=jl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ql.current){const e=new Kl({});e.mount(window),e.setOptions({layoutScroll:!0}),Ql.current=e}return Ql.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),_l={pan:{Feature:class extends Wa{constructor(){super(...arguments),this.removePointerDownListener=Nn}onPointerDown(e){this.session=new Za(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ps(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:Is(e),onStart:Is(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&Rn.postRender((()=>n(e,t)))}}}mount(){this.removePointerDownListener=qa(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Wa{constructor(e){super(e),this.removeGroupControls=Nn,this.removeListeners=Nn,this.controls=new Ts(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nn}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Jl,MeasureLayout:Ys}};function $l(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);const o=n["onHover"+r];o&&Rn.postRender((()=>o(t,Ya(t))))}function eA(e,t,r){const{props:n}=e;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===r);const o=n["onTap"+("End"===r?"":r)];o&&Rn.postRender((()=>o(t,Ya(t))))}const tA=new WeakMap,rA=new WeakMap,nA=e=>{const t=tA.get(e.target);t&&t(e)},oA=e=>{e.forEach(nA)};const iA={some:0,all:1},aA={inView:{Feature:class extends Wa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:iA[n]};return function(e,t,r){const n=function({root:e,...t}){const r=e||document;rA.has(r)||rA.set(r,{});const n=rA.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(oA,{root:e,...t})),n[o]}(t);return tA.set(e,r),n.observe(e),()=>{tA.delete(e),n.unobserve(e)}}(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Wa{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){const[n,o,i]=bn(e,r),a=e=>{const n=e.currentTarget;if(!Sn(e)||En.has(n))return;En.add(n);const i=t(e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),Sn(e)&&En.has(n)&&(En.delete(n),"function"==typeof i&&i(e,{success:t}))},s=e=>{a(e,r.useGlobalTarget||xn(n,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",l,o)};return n.forEach((e=>{(function(e){return Mn.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(r.useGlobalTarget?window:e).addEventListener("pointerdown",a,o),e.addEventListener("focus",(e=>((e,t)=>{const r=e.currentTarget;if(!r)return;const n=jn((()=>{if(En.has(r))return;On(r,"down");const e=jn((()=>{On(r,"up")}));r.addEventListener("keyup",e,t),r.addEventListener("blur",(()=>On(r,"cancel")),t)}));r.addEventListener("keydown",n,t),r.addEventListener("blur",(()=>r.removeEventListener("keydown",n)),t)})(e,o)),o)})),i}(e,(e=>(eA(this.node,e,"Start"),(e,{success:t})=>eA(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Wa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Yi(Ua(this.node.current,"focus",(()=>this.onFocus())),Ua(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Wa{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){const[n,o,i]=bn(e,r),a=wn((e=>{const{target:r}=e,n=t(e);if("function"!=typeof n||!r)return;const i=wn((e=>{n(e),r.removeEventListener("pointerleave",i)}));r.addEventListener("pointerleave",i,o)}));return n.forEach((e=>{e.addEventListener("pointerenter",a,o)})),i}(e,(e=>($l(this.node,e,"Start"),e=>$l(this.node,e,"End")))))}unmount(){}}}},sA={layout:{ProjectionNode:Jl,MeasureLayout:Ys}},lA=(0,a.createContext)({strict:!1}),AA=(0,a.createContext)({});function cA(e){return Ur(e.animate)||Jr.some((t=>Hr(e[t])))}function uA(e){return Boolean(cA(e)||e.variants)}function fA(e){return Array.isArray(e)?e.join(" "):e}const dA={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},pA={};for(const e in dA)pA[e]={isEnabled:t=>dA[e].some((e=>!!t[e]))};const hA=Symbol.for("motionComponentSymbol");function mA(e,t,r){return(0,a.useCallback)((n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),r&&("function"==typeof r?r(n):es(r)&&(r.current=n))}),[t])}function gA(e,t,r,n,o){var i,s;const{visualElement:l}=(0,a.useContext)(AA),A=(0,a.useContext)(lA),c=(0,a.useContext)(Pr),u=(0,a.useContext)(Nr).reducedMotion,f=(0,a.useRef)(null);n=n||A.renderer,!f.current&&n&&(f.current=n(e,{visualState:t,parent:l,props:r,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:u}));const d=f.current,p=(0,a.useContext)(Ls);!d||d.projection||!o||"html"!==d.type&&"svg"!==d.type||function(e,t,r,n){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:A}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:yA(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&es(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:A})}(f.current,r,o,p);const h=(0,a.useRef)(!1);(0,a.useInsertionEffect)((()=>{d&&h.current&&d.update(r,c)}));const m=r[to],g=(0,a.useRef)(Boolean(m)&&!(null===(i=window.MotionHandoffIsComplete)||void 0===i?void 0:i.call(window,m))&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,m)));return Wr((()=>{d&&(h.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Bs.render(d.render),g.current&&d.animationState&&d.animationState.animateChanges())})),(0,a.useEffect)((()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,m)})),g.current=!1))})),d}function yA(e){if(e)return!1!==e.options.allowProjection?e.projection:yA(e.parent)}function vA({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){var i,s;function l(e,i){let s;const l={...(0,a.useContext)(Nr),...e,layoutId:bA(e)},{isStatic:A}=l,c=function(e){const{initial:t,animate:r}=function(e,t){if(cA(e)){const{initial:t,animate:r}=e;return{initial:!1===t||Hr(t)?t:void 0,animate:Hr(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(AA));return(0,a.useMemo)((()=>({initial:t,animate:r})),[fA(t),fA(r)])}(e),u=n(e,A);if(!A&&Vr){(0,a.useContext)(lA).strict;const e=function(e){const{drag:t,layout:r}=pA;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(l);s=e.MeasureLayout,c.visualElement=gA(o,u,l,t,e.ProjectionNode)}return(0,Me.jsxs)(AA.Provider,{value:c,children:[s&&c.visualElement?(0,Me.jsx)(s,{visualElement:c.visualElement,...l}):null,r(o,e,mA(u,c.visualElement,i),u,A,c.visualElement)]})}e&&function(e){for(const t in e)pA[t]={...pA[t],...e[t]}}(e),l.displayName=`motion.${"string"==typeof o?o:`create(${null!==(s=null!==(i=o.displayName)&&void 0!==i?i:o.name)&&void 0!==s?s:""})`}`;const A=(0,a.forwardRef)(l);return A[hA]=o,A}function bA({layoutId:e}){const t=(0,a.useContext)(Sr).id;return t&&void 0!==e?t+"-"+e:e}const wA=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function xA(e){return"string"==typeof e&&!e.includes("-")&&!!(wA.indexOf(e)>-1||/[A-Z]/u.test(e))}const CA=e=>(t,r)=>{const n=(0,a.useContext)(AA),o=(0,a.useContext)(Pr),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:r},n,o,i){const a={latestValues:MA(n,o,i,e),renderState:t()};return r&&(a.onMount=e=>r({props:n,current:e,...a}),a.onUpdate=e=>r(e)),a}(e,t,n,o);return r?i():kr(i)};function MA(e,t,r,n){const o={},i=n(e,{});for(const e in i)o[e]=Gs(i[e]);let{initial:a,animate:s}=e;const l=cA(e),A=uA(e);t&&A&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial;c=c||!1===a;const u=c?s:a;if(u&&"boolean"!=typeof u&&!Ur(u)){const t=Array.isArray(u)?u:[u];for(let r=0;rt&&"number"==typeof e?t.transform(e):e,jA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},OA=Tn.length;function SA(e,t,r){const{style:n,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const e in t){const r=t[e];if(Dn.has(e))a=!0;else if(wi(e))o[e]=r;else{const t=EA(r,ei[e]);e.startsWith("origin")?(s=!0,i[e]=t):n[e]=t}}if(t.transform||(a||r?n.transform=function(e,t,r){let n="",o=!0;for(let i=0;i"string"==typeof e&&"svg"===e.toLowerCase();function IA(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const t in r)e.style.setProperty(t,r[t])}const LA=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function zA(e,t,r,n){IA(e,t,void 0,n);for(const r in t.attrs)e.setAttribute(LA.has(r)?r:eo(r),t.attrs[r])}function RA(e,{layout:t,layoutId:r}){return Dn.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!Ws[e]||"opacity"===e)}function FA(e,t,r){var n;const{style:o}=e,i={};for(const a in o)(_n(o[a])||t.style&&_n(t.style[a])||RA(a,e)||void 0!==(null===(n=null==r?void 0:r.getValue(a))||void 0===n?void 0:n.liveStyle))&&(i[a]=o[a]);return i}function VA(e,t,r){const n=FA(e,t,r);for(const r in e)(_n(e[r])||_n(t[r]))&&(n[-1!==Tn.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}const WA=["x","y","width","height","cx","cy","r"],BA={useVisualState:CA({scrapeMotionValuesFromProps:VA,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onUpdate:({props:e,prevProps:t,current:r,renderState:n,latestValues:o})=>{if(!r)return;let i=!!e.drag;if(!i)for(const e in o)if(Dn.has(e)){i=!0;break}if(!i)return;let a=!t;if(t)for(let r=0;r{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(r,n),Rn.render((()=>{TA(n,o,DA(r.tagName),e.transformTemplate),zA(r,n)}))}))}})},XA={useVisualState:CA({scrapeMotionValuesFromProps:FA,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function UA(e,t,r){for(const n in t)_n(t[n])||RA(n,r)||(e[n]=t[n])}function YA(e,t){const r={},n=function(e,t){const r={};return UA(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t){return(0,a.useMemo)((()=>{const r={style:{},transform:{},transformOrigin:{},vars:{}};return SA(r,t,e),Object.assign({},r.vars,r.style)}),[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const qA=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function HA(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||qA.has(e)}let ZA=e=>!HA(e);try{(GA=require("@emotion/is-prop-valid").default)&&(ZA=e=>e.startsWith("on")?!HA(e):GA(e))}catch(e){}var GA;function KA(e,t,r,n){const o=(0,a.useMemo)((()=>{const r={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return TA(r,t,DA(n),e.transformTemplate),{...r.attrs,style:{...r.style}}}),[t]);if(e.style){const t={};UA(t,e.style,e),o.style={...t,...o.style}}return o}function QA(e=!1){return(t,r,n,{latestValues:o},i)=>{const s=(xA(t)?KA:YA)(r,o,i,t),l=function(e,t,r){const n={};for(const o in e)"values"===o&&"object"==typeof e.values||(ZA(o)||!0===r&&HA(o)||!t&&!HA(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}(r,"string"==typeof t,e),A=t!==a.Fragment?{...l,...s,ref:n}:{},{children:c}=r,u=(0,a.useMemo)((()=>_n(c)?c.get():c),[c]);return(0,a.createElement)(t,{...A,children:u})}}function JA(e,t){return function(r,{forwardMotionProps:n}={forwardMotionProps:!1}){return vA({...xA(r)?BA:XA,preloadedFeatures:e,useRender:QA(n),createVisualElement:t,Component:r})}}const _A={current:null},$A={current:!1},ec=[...Si,Ro,Ho],tc=new WeakMap,rc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class nc{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=mi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=Un.now();this.renderScheduledAtthis.bindToMotionValue(t,e))),$A.current||function(){if($A.current=!0,Vr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_A.current=e.matches;e.addListener(t),t()}else _A.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||_A.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){tc.delete(this.current),this.projection&&this.projection.unmount(),Fn(this.notifyUpdate),Fn(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Dn.has(e),n=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Rn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{n(),o(),i&&i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in pA){const t=pA[e];if(!t)continue;const{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){const r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=Qn(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){var r;let n=void 0===this.latestValues[e]&&this.current?null!==(r=this.getBaseTargetFromProps(this.props,e))&&void 0!==r?r:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(vi(n)||ho(n))?n=parseFloat(n):(o=n,!ec.find(Oi(o))&&Ho.test(t)&&(n=ni(e,t))),this.setBaseTarget(e,_n(n)?n.get():n)),_n(n)?n.get():n;var o}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:r}=this.props;let n;if("string"==typeof r||"object"==typeof r){const o=Gr(this.props,r,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(n=o[e])}if(r&&void 0!==n)return n;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||_n(o)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Hn),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class oc extends nc{constructor(){super(...arguments),this.KeyframeResolver=Pi}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;_n(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class ic extends oc{constructor(){super(...arguments),this.type="html",this.renderInstance=IA}readValueFromInstance(e,t){if(Dn.has(t)){const e=ri(t);return e&&e.default||0}{const n=(r=e,window.getComputedStyle(r)),o=(wi(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof o?o.trim():o}var r}measureInstanceViewportBox(e,{transformPagePoint:t}){return ks(e,t)}build(e,t,r){SA(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return FA(e,t,r)}}class ac extends oc{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=fs}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Dn.has(t)){const e=ri(t);return e&&e.default||0}return t=LA.has(t)?t:eo(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return VA(e,t,r)}build(e,t,r){TA(e,t,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,r,n){zA(e,t,0,n)}mount(e){this.isSVGTag=DA(e.tagName),super.mount(e)}}const sc=Xr(JA({...Xa,...aA,..._l,...sA},((e,t)=>xA(e)?new ac(t):new ic(t,{allowProjection:e!==a.Fragment}))));let lc=!1;const Ac=({toastItem:e,title:t="",content:r="",autoDismiss:n=!0,dismissAfter:o=5e3,theme:i="light",design:s="stack",icon:l,variant:A="neutral",removeToast:c})=>{const u=(0,a.useRef)(0),f=(0,a.useRef)(0),d=(0,a.useRef)(),p=(e,t=o)=>{if(n&&!(o<0))return u.current=(new Date).getTime(),setTimeout((()=>{"function"==typeof c&&c(e.id)}),t)};(0,a.useEffect)((()=>{const t=o;return d.current=p(e,t),()=>{clearTimeout(d.current)}}),[]),(0,a.useEffect)((()=>{!e?.dismiss||"function"!=typeof c||c(e.id)}),[e]);const h=()=>{"function"==typeof c&&e?.action?.onClick?.((()=>c(e.id)))};let m=null;return"stack"===s&&(m=(0,Me.jsx)("div",{className:wt("flex items-center justify-start p-4 gap-2 relative border border-solid rounded-md shadow-lg","dark"===i?jr:Er?.[A],"w-[22.5rem]"),onMouseEnter:()=>{clearTimeout(d.current),f.current=(new Date).getTime()},onMouseLeave:()=>{d.current=p(e,o-(f.current-u.current))},children:"custom"!==e.type?(0,Me.jsxs)(Me.Fragment,{children:[(0,Me.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:vr({variant:A,icon:l,theme:i})}),(0,Me.jsxs)("div",{className:"flex flex-col items-start justify-start gap-0.5 mr-6",children:[wr({title:t,theme:i}),xr({content:r,theme:i}),e?.action?.label&&"function"==typeof e?.action?.onClick&&(0,Me.jsx)("div",{className:"mt-2.5",children:br({actionLabel:e?.action?.label,actionType:e?.action?.type??"button",onAction:h,theme:i})})]}),(0,Me.jsx)("div",{className:"absolute right-4 top-4 [&_svg]:size-5",children:(0,Me.jsx)("button",{className:wt("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",Or[i]??Or.light),onClick:t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof c&&c(e.id)},children:(0,Me.jsx)(Ar,{})})})]}):e?.jsx?.({close:()=>c(e.id),action:e?.action?{...e?.action,onClick:h}:null})})),"inline"===s&&(m=(0,Me.jsxs)("div",{className:wt("flex items-center justify-start p-3 gap-2 relative border border-solid rounded-md shadow-lg","dark"===i?jr:Er?.[A],"lg:w-[47.5rem] w-full"),children:[(0,Me.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:vr({variant:A,icon:l,theme:i})}),(0,Me.jsxs)("div",{className:"flex items-start justify-start gap-1 mr-10 [&>span:first-child]:shrink-0",children:[wr({title:t,theme:i}),xr({content:r,theme:i})]}),(0,Me.jsx)("div",{className:"absolute right-3 top-3 [&_svg]:size-5",children:(0,Me.jsx)("button",{className:wt("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",Or[i]??Or.light),onClick:()=>c(e.id),children:(0,Me.jsx)(Ar,{})})})]})),m},cc=(e=>(0,a.memo)((t=>{const r=t.singleTon;return lc&&r?null:(lc=!0,(0,Me.jsx)(e,{...t}))})))((({position:e="top-right",design:t="stack",theme:r="light",className:n="",autoDismiss:o=!0,dismissAfter:i=5e3})=>{const[s,l]=(0,a.useState)([]);(0,a.useEffect)((()=>{ur.subscribe((e=>{e?.dismiss?l((t=>t.map((t=>t.id===e.id?{...t,dismiss:!0}:t)))):setTimeout((()=>{(0,A.flushSync)((()=>l((t=>-1!==t.findIndex((t=>t.id===e.id))?t.map((t=>t.id===e.id?{...t,...e}:t)):[...t,e]))))}))}))}),[]);const c=e=>{l((t=>t.filter((t=>t.id!==e))))};return(0,Me.jsx)("ul",{className:wt("fui-toast-container fixed flex flex-col list-none z-20 p-10 pointer-events-none [&>li]:pointer-events-auto gap-3",Mr[e]??Mr["top-right"],n),children:(0,Me.jsx)(Br,{initial:!1,children:s.map((e=>(0,Me.jsx)(sc.li,{initial:{opacity:0,y:50,scale:.7},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.6,transition:{duration:.15}},layoutId:`toast-${e.id}`,children:(0,Me.jsx)(Ac,{toastItem:e,title:e.title,content:e?.description,icon:e?.icon??void 0,design:e?.design??t,autoDismiss:e?.autoDismiss??o,dismissAfter:e?.dismissAfter??i,removeToast:c,variant:e.type,theme:e?.theme??r})},e.id)))})})})),uc=window.wp.apiFetch;var fc=o.n(uc);let dc={data:""},pc=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,hc=/\/\*[^]*?\*\/| +/g,mc=/\n+/g,gc=(e,t)=>{let r="",n="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?r=i+" "+a+";":n+="f"==i[1]?gc(a,i):i+"{"+gc(a,"k"==i[1]?"":t)+"}":"object"==typeof a?n+=gc(a,t?t.replace(/([^,])+/g,(e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=gc.p?gc.p(i,a):i+":"+a+";")}return r+(t&&o?t+"{"+o+"}":o)+n},yc={},vc=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+vc(e[r]);return t}return e};function bc(e){let t=this||{},r=e.call?e(t.p):e;return((e,t,r,n,o)=>{let i=vc(e),a=yc[i]||(yc[i]=(e=>{let t=0,r=11;for(;t>>0;return"go"+r})(i));if(!yc[a]){let t=i!==e?e:(e=>{let t,r,n=[{}];for(;t=pc.exec(e.replace(hc,""));)t[4]?n.shift():t[3]?(r=t[3].replace(mc," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(mc," ").trim();return n[0]})(e);yc[a]=gc(o?{["@keyframes "+a]:t}:t,r?"":"."+a)}let s=r&&yc.g?yc.g:null;return r&&(yc.g=yc[a]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(yc[a],t,n,s),a})(r.unshift?r.raw?((e,t,r)=>e.reduce(((e,n,o)=>{let i=t[o];if(i&&i.call){let e=i(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":gc(e,""):!1===e?"":e}return e+n+(null==i?"":i)}),""))(r,[].slice.call(arguments,1),t.p):r.reduce(((e,r)=>Object.assign(e,r&&r.call?r(t.p):r)),{}):r,(e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||dc)(t.target),t.g,t.o,t.k)}bc.bind({g:1});let wc,xc,Cc,Mc=bc.bind({k:1});function Ec(e,t){let r=this||{};return function(){let n=arguments;function o(i,a){let s=Object.assign({},i),l=s.className||o.className;r.p=Object.assign({theme:xc&&xc()},s),r.o=/ *go\d+/.test(l),s.className=bc.apply(r,n)+(l?" "+l:""),t&&(s.ref=a);let A=e;return e[0]&&(A=s.as||e,delete s.as),Cc&&A[0]&&Cc(s),wc(A,s)}return t?t(o):o}}var jc=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,Oc=(()=>{let e=0;return()=>(++e).toString()})(),Sc=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),kc=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:r}=t;return kc(e,{type:e.toasts.find((e=>e.id===r.id))?1:0,toast:r});case 3:let{toastId:n}=t;return{...e,toasts:e.toasts.map((e=>e.id===n||void 0===n?{...e,dismissed:!0,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},Pc=[],Nc={toasts:[],pausedAt:void 0},Tc=e=>{Nc=kc(Nc,e),Pc.forEach((e=>{e(Nc)}))},Dc=e=>(t,r)=>{let n=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||Oc()}))(t,e,r);return Tc({type:2,toast:n}),n.id},Ic=(e,t)=>Dc("blank")(e,t);Ic.error=Dc("error"),Ic.success=Dc("success"),Ic.loading=Dc("loading"),Ic.custom=Dc("custom"),Ic.dismiss=e=>{Tc({type:3,toastId:e})},Ic.remove=e=>Tc({type:4,toastId:e}),Ic.promise=(e,t,r)=>{let n=Ic.loading(t.loading,{...r,...null==r?void 0:r.loading});return"function"==typeof e&&(e=e()),e.then((e=>{let o=t.success?jc(t.success,e):void 0;return o?Ic.success(o,{id:n,...r,...null==r?void 0:r.success}):Ic.dismiss(n),e})).catch((e=>{let o=t.error?jc(t.error,e):void 0;o?Ic.error(o,{id:n,...r,...null==r?void 0:r.error}):Ic.dismiss(n)})),e},new Map;var Lc=Mc` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,zc=Mc` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,Rc=Mc` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,Fc=Ec("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${Lc} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${zc} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${e=>e.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${Rc} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,Vc=Mc` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,Wc=Ec("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; animation: ${Vc} 1s linear infinite; `,Bc=Mc` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,Xc=Mc` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,Uc=Ec("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${Bc} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${Xc} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${e=>e.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,Yc=Ec("div")` position: absolute; `,qc=Ec("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,Hc=Mc` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,Zc=Ec("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${Hc} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,Gc=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return void 0!==t?"string"==typeof t?a.createElement(Zc,null,t):t:"blank"===r?null:a.createElement(qc,null,a.createElement(Wc,{...n}),"loading"!==r&&a.createElement(Yc,null,"error"===r?a.createElement(Fc,{...n}):a.createElement(Uc,{...n})))},Kc=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,Qc=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,Jc=Ec("div")` display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; `,_c=Ec("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `;a.memo((({toast:e,position:t,style:r,children:n})=>{let o=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[n,o]=Sc()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Kc(r),Qc(r)];return{animation:t?`${Mc(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Mc(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},i=a.createElement(Gc,{toast:e}),s=a.createElement(_c,{...e.ariaProps},jc(e.message,e));return a.createElement(Jc,{className:e.className,style:{...o,...r,...e.style}},"function"==typeof n?n({icon:i,message:s}):a.createElement(a.Fragment,null,i,s))})),function(e){gc.p=void 0,wc=e,xc=void 0,Cc=void 0}(a.createElement),bc` z-index: 9999; > * { pointer-events: auto; } `,window.wp.editor,window.wp.data,window.wp.url;const $c=e=>{const t=nu(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),eu(r,t)||ru(e)},getConflictingClassGroupIds:(e,t)=>{const o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}},eu=(e,t)=>{if(0===e.length)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?eu(e.slice(1),n):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId},tu=/^\[(.+)\]$/,ru=e=>{if(tu.test(e)){const t=tu.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},nu=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const e in r)ou(r[e],n,e,t);return n},ou=(e,t,r,n)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return au(e)?void ou(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach((([e,o])=>{ou(o,iu(t,e),r,n)}))}else(""===e?t:iu(t,e)).classGroupId=r}))},iu=(e,t)=>{let r=e;return t.split("-").forEach((e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)})),r},au=e=>e.isThemeGetter,su=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}},lu=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,i=0;for(let a=0;ai?r-i:void 0}};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},Au=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,cu=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map((e=>[e,!0])));return e=>{if(e.length<=1)return e;const r=[];let n=[];return e.forEach((e=>{"["===e[0]||t[e]?(r.push(...n.sort(),e),n=[]):n.push(e)})),r.push(...n.sort()),r}},uu=/\s+/;function fu(){let e,t,r=0,n="";for(;r{if("string"==typeof e)return e;let t,r="";for(let n=0;nt(e)),e());return r=(e=>({cache:su(e.cacheSize),parseClassName:lu(e),sortModifiers:cu(e),...$c(e)}))(l),n=r.cache.get,o=r.cache.set,i=a,a(s)};function a(e){const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(uu);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:A,modifiers:c,hasImportantModifier:u,baseClassName:f,maybePostfixModifierPosition:d}=r(t);if(A){l=t+(l.length>0?" "+l:l);continue}let p=!!d,h=n(p?f.substring(0,d):f);if(!h){if(!p){l=t+(l.length>0?" "+l:l);continue}if(h=n(f),!h){l=t+(l.length>0?" "+l:l);continue}p=!1}const m=i(c).join(":"),g=u?m+"!":m,y=g+h;if(a.includes(y))continue;a.push(y);const v=o(h,p);for(let e=0;e0?" "+l:l)}return l})(e,r);return o(e,i),i}return function(){return i(fu.apply(null,arguments))}}const hu=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},mu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,gu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,yu=/^\d+\/\d+$/,vu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,wu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Cu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mu=e=>yu.test(e),Eu=e=>!!e&&!Number.isNaN(Number(e)),ju=e=>!!e&&Number.isInteger(Number(e)),Ou=e=>e.endsWith("%")&&Eu(e.slice(0,-1)),Su=e=>vu.test(e),ku=()=>!0,Pu=e=>bu.test(e)&&!wu.test(e),Nu=()=>!1,Tu=e=>xu.test(e),Du=e=>Cu.test(e),Iu=e=>!zu(e)&&!Xu(e),Lu=e=>Ku(e,$u,Nu),zu=e=>mu.test(e),Ru=e=>Ku(e,ef,Pu),Fu=e=>Ku(e,tf,Eu),Vu=e=>Ku(e,Ju,Nu),Wu=e=>Ku(e,_u,Du),Bu=e=>Ku(e,nf,Tu),Xu=e=>gu.test(e),Uu=e=>Qu(e,ef),Yu=e=>Qu(e,rf),qu=e=>Qu(e,Ju),Hu=e=>Qu(e,$u),Zu=e=>Qu(e,_u),Gu=e=>Qu(e,nf,!0),Ku=(e,t,r)=>{const n=mu.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Qu=(e,t,r=!1)=>{const n=gu.exec(e);return!!n&&(n[1]?t(n[1]):r)},Ju=e=>"position"===e||"percentage"===e,_u=e=>"image"===e||"url"===e,$u=e=>"length"===e||"size"===e||"bg-size"===e,ef=e=>"length"===e,tf=e=>"number"===e,rf=e=>"family-name"===e,nf=e=>"shadow"===e,of=pu((Symbol.toStringTag,()=>{const e=hu("color"),t=hu("font"),r=hu("text"),n=hu("font-weight"),o=hu("tracking"),i=hu("leading"),a=hu("breakpoint"),s=hu("container"),l=hu("spacing"),A=hu("radius"),c=hu("shadow"),u=hu("inset-shadow"),f=hu("text-shadow"),d=hu("drop-shadow"),p=hu("blur"),h=hu("perspective"),m=hu("aspect"),g=hu("ease"),y=hu("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Xu,zu],b=()=>[Xu,zu,l],w=()=>[Mu,"full","auto",...b()],x=()=>[ju,"none","subgrid",Xu,zu],C=()=>["auto",{span:["full",ju,Xu,zu]},ju,Xu,zu],M=()=>[ju,"auto",Xu,zu],E=()=>["auto","min","max","fr",Xu,zu],j=()=>["auto",...b()],O=()=>[Mu,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],S=()=>[e,Xu,zu],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",qu,Vu,{position:[Xu,zu]}],P=()=>["auto","cover","contain",Hu,Lu,{size:[Xu,zu]}],N=()=>[Ou,Uu,Ru],T=()=>["","none","full",A,Xu,zu],D=()=>["",Eu,Uu,Ru],I=()=>[Eu,Ou,qu,Vu],L=()=>["","none",p,Xu,zu],z=()=>["none",Eu,Xu,zu],R=()=>["none",Eu,Xu,zu],F=()=>[Eu,Xu,zu],V=()=>[Mu,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Su],breakpoint:[Su],color:[ku],container:[Su],"drop-shadow":[Su],ease:["in","out","in-out"],font:[Iu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Su],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Su],shadow:[Su],spacing:["px",Eu],text:[Su],"text-shadow":[Su],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Mu,zu,Xu,m]}],container:["container"],columns:[{columns:[Eu,zu,Xu,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[ju,"auto",Xu,zu]}],basis:[{basis:[Mu,"full","auto",s,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Eu,Mu,"auto","initial","none",zu]}],grow:[{grow:["",Eu,Xu,zu]}],shrink:[{shrink:["",Eu,Xu,zu]}],order:[{order:[ju,"first","last","none",Xu,zu]}],"grid-cols":[{"grid-cols":x()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":x()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[s,"screen",...O()]}],"min-w":[{"min-w":[s,"screen","none",...O()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",r,Uu,Ru]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Xu,Fu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ou,zu]}],"font-family":[{font:[Yu,zu,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Xu,zu]}],"line-clamp":[{"line-clamp":[Eu,"none",Xu,Fu]}],leading:[{leading:[i,...b()]}],"list-image":[{"list-image":["none",Xu,zu]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Xu,zu]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Eu,"from-font","auto",Xu,Ru]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[Eu,"auto",Xu,zu]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Xu,zu]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Xu,zu]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:k()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ju,Xu,zu],radial:["",Xu,zu],conic:[ju,Xu,zu]},Zu,Wu]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:N()}],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Eu,Xu,zu]}],"outline-w":[{outline:["",Eu,Uu,Ru]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",c,Gu,Bu]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",u,Gu,Bu]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[Eu,Ru]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",f,Gu,Bu]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[Eu,Xu,zu]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Eu]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[Xu,zu]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Eu]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:k()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Xu,zu]}],filter:[{filter:["","none",Xu,zu]}],blur:[{blur:L()}],brightness:[{brightness:[Eu,Xu,zu]}],contrast:[{contrast:[Eu,Xu,zu]}],"drop-shadow":[{"drop-shadow":["","none",d,Gu,Bu]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",Eu,Xu,zu]}],"hue-rotate":[{"hue-rotate":[Eu,Xu,zu]}],invert:[{invert:["",Eu,Xu,zu]}],saturate:[{saturate:[Eu,Xu,zu]}],sepia:[{sepia:["",Eu,Xu,zu]}],"backdrop-filter":[{"backdrop-filter":["","none",Xu,zu]}],"backdrop-blur":[{"backdrop-blur":L()}],"backdrop-brightness":[{"backdrop-brightness":[Eu,Xu,zu]}],"backdrop-contrast":[{"backdrop-contrast":[Eu,Xu,zu]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Eu,Xu,zu]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Eu,Xu,zu]}],"backdrop-invert":[{"backdrop-invert":["",Eu,Xu,zu]}],"backdrop-opacity":[{"backdrop-opacity":[Eu,Xu,zu]}],"backdrop-saturate":[{"backdrop-saturate":[Eu,Xu,zu]}],"backdrop-sepia":[{"backdrop-sepia":["",Eu,Xu,zu]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Xu,zu]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Eu,"initial",Xu,zu]}],ease:[{ease:["linear","initial",g,Xu,zu]}],delay:[{delay:[Eu,Xu,zu]}],animate:[{animate:["none",y,Xu,zu]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,Xu,zu]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:z()}],"rotate-x":[{"rotate-x":z()}],"rotate-y":[{"rotate-y":z()}],"rotate-z":[{"rotate-z":z()}],scale:[{scale:R()}],"scale-x":[{"scale-x":R()}],"scale-y":[{"scale-y":R()}],"scale-z":[{"scale-z":R()}],"scale-3d":["scale-3d"],skew:[{skew:F()}],"skew-x":[{"skew-x":F()}],"skew-y":[{"skew-y":F()}],transform:[{transform:[Xu,zu,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Xu,zu]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Xu,zu]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[Eu,Uu,Ru,Fu]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}})),af={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function sf(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const lf={date:sf({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:sf({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:sf({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Af={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function cf(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=r?.width?String(r.width):t;n=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=r?.width?String(r.width):e.defaultWidth;n=e.values[o]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const uf={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:cf({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:cf({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:cf({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:cf({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:cf({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function ff(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e){for(let t=0;tparseInt(e,10)},(e,t={})=>{const r=e.match(pf.matchPattern);if(!r)return null;const n=r[0],o=e.match(pf.parsePattern);if(!o)return null;let i=pf.valueCallback?pf.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(n.length)}}),era:ff({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ff({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:ff({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ff({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ff({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var pf;const hf={code:"en-US",formatDistance:(e,t,r)=>{let n;const o=af[e];return n="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:lf,formatRelative:(e,t,r,n)=>Af[e],localize:uf,match:df,options:{weekStartsOn:0,firstWeekContainsDate:1}};let mf={};function gf(){return mf}Math.pow(10,8);const yf=6048e5,vf=Symbol.for("constructDateFrom");function bf(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&vf in e?e[vf](t):e instanceof Date?new e.constructor(t):new Date(t)}function wf(e,t){return bf(t||e,e)}function xf(e){const t=wf(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Cf(e,...t){const r=bf.bind(null,e||t.find((e=>"object"==typeof e)));return t.map(r)}function Mf(e,t){const r=wf(e,t?.in);return r.setHours(0,0,0,0),r}function Ef(e,t,r){const[n,o]=Cf(r?.in,e,t),i=Mf(n),a=Mf(o),s=+i-xf(i),l=+a-xf(a);return Math.round((s-l)/864e5)}function jf(e,t){const r=wf(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Of(e,t){const r=gf(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=wf(e,t?.in),i=o.getDay(),a=(i=i.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function Pf(e,t){const r=wf(e,t?.in),n=+Sf(r)-+function(e,t){const r=kf(e,t),n=bf(t?.in||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Sf(n)}(r);return Math.round(n/yf)+1}function Nf(e,t){const r=wf(e,t?.in),n=r.getFullYear(),o=gf(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=bf(t?.in||e,0);a.setFullYear(n+1,0,i),a.setHours(0,0,0,0);const s=Of(a,t),l=bf(t?.in||e,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);const A=Of(l,t);return+r>=+s?n+1:+r>=+A?n:n-1}function Tf(e,t){const r=wf(e,t?.in),n=+Of(r,t)-+function(e,t){const r=gf(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=Nf(e,t),i=bf(t?.in||e,0);return i.setFullYear(o,0,n),i.setHours(0,0,0,0),Of(i,t)}(r,t);return Math.round(n/yf)+1}function Df(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const If={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Df("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):Df(r+1,2)},d:(e,t)=>Df(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>Df(e.getHours()%12||12,t.length),H:(e,t)=>Df(e.getHours(),t.length),m:(e,t)=>Df(e.getMinutes(),t.length),s:(e,t)=>Df(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return Df(Math.trunc(n*Math.pow(10,r-3)),t.length)}},Lf={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return If.y(e,t)},Y:function(e,t,r,n){const o=Nf(e,n),i=o>0?o:1-o;return"YY"===t?Df(i%100,2):"Yo"===t?r.ordinalNumber(i,{unit:"year"}):Df(i,t.length)},R:function(e,t){return Df(kf(e),t.length)},u:function(e,t){return Df(e.getFullYear(),t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Df(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Df(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return If.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Df(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=Tf(e,n);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):Df(o,t.length)},I:function(e,t,r){const n=Pf(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):Df(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):If.d(e,t)},D:function(e,t,r){const n=function(e,t){const r=wf(e,t?.in);return Ef(r,jf(r))+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):Df(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Df(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Df(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=0===n?7:n;switch(t){case"i":return String(o);case"ii":return Df(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(o=12===n?"noon":0===n?"midnight":n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(o=n>=17?"evening":n>=12?"afternoon":n>=4?"morning":"night",t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return If.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):If.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):Df(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):Df(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):If.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):If.s(e,t)},S:function(e,t){return If.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return Rf(n);case"XXXX":case"XX":return Ff(n);default:return Ff(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Rf(n);case"xxxx":case"xx":return Ff(n);default:return Ff(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+zf(n,":");default:return"GMT"+Ff(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+zf(n,":");default:return"GMT"+Ff(n,":")}},t:function(e,t,r){return Df(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return Df(+e,t.length)}};function zf(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),i=n%60;return 0===i?r+String(o):r+String(o)+t+Df(i,2)}function Rf(e,t){return e%60==0?(e>0?"-":"+")+Df(Math.abs(e)/60,2):Ff(e,t)}function Ff(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+Df(Math.trunc(n/60),2)+t+Df(n%60,2)}const Vf=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Wf=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Bf={p:Wf,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return Vf(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",Vf(n,t)).replace("{{time}}",Wf(o,t))}},Xf=/^D+$/,Uf=/^Y+$/,Yf=["D","DD","YY","YYYY"];function qf(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}const Hf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Zf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Gf=/^'([^]*?)'?$/,Kf=/''/g,Qf=/[a-zA-Z]/;function Jf(e,t,r){const n=gf(),o=r?.locale??n.locale??hf,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=wf(e,r?.in);if(!function(e){return!(!qf(e)&&"number"!=typeof e||isNaN(+wf(e)))}(s))throw new RangeError("Invalid time value");let l=t.match(Zf).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,Bf[t])(e,o.formatLong):e})).join("").match(Hf).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:_f(e)};if(Lf[t])return{isToken:!0,value:e};if(t.match(Qf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const A={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map((n=>{if(!n.isToken)return n.value;const i=n.value;return(!r?.useAdditionalWeekYearTokens&&function(e){return Uf.test(e)}(i)||!r?.useAdditionalDayOfYearTokens&&function(e){return Xf.test(e)}(i))&&function(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),Yf.includes(e))throw new RangeError(n)}(i,t,String(e)),(0,Lf[i[0]])(s,i,o.localize,A)})).join("")}function _f(e){const t=e.match(Gf);return t?t[1].replace(Kf,"'"):e}function $f(e){return $f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$f(e)}function ed(){ed=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function A(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=w(s,n);if(l){if(l===u)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var A=c(t,r,n);if("normal"===A.type){if(o=n.done?4:2,A.arg===u)continue;return{value:A.arg,done:n.done}}"throw"===A.type&&(o=4,n.method="throw",n.arg=A.arg)}}}(t,n,new M(o||[])),!0),a}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=A;var u={};function f(){}function d(){}function p(){}var h={};l(h,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(E([])));g&&g!==r&&n.call(g,i)&&(h=g);var y=p.prototype=f.prototype=Object.create(h);function v(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(o,i,a,s){var l=c(e[o],e,i);if("throw"!==l.type){var A=l.arg,u=A.value;return u&&"object"==$f(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(u).then((function(e){A.value=e,a(A)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function w(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,w(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),u;var i=c(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,u;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,u):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,u)}function x(e){this.tryEntries.push(e)}function C(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function M(e){this.tryEntries=[[-1]],e.forEach(x,this),this.reset(!0)}function E(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],A=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!A)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),u}},t}function td(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function rd(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){td(i,n,o,a,s,"next",e)}function s(e){td(i,n,o,a,s,"throw",e)}a(void 0)}))}}window.wp.hooks,window.wp.blocks;var nd=function(){var e=rd(ed().mark((function e(){var t,r,n=arguments;return ed().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:"default",e.next=3,fc()({path:"/sureforms/v1/initiate-auth?source=".concat(t),headers:{"Content-Type":"application/json","X-WP-Nonce":srfm_admin.template_picker_nonce},method:"GET"});case 3:null!=(r=e.sent)&&r.success&&(window.location.href=r.data);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),od=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utm_medium";try{var n=new URL(e);return n.searchParams.set(r,t),"utm_medium"===r&&(n.searchParams.get("utm_source")||n.searchParams.set("utm_source","sureforms_plugin"),n.searchParams.get("utm_campaign")||n.searchParams.set("utm_campaign","core_plugin")),n.toString()}catch(t){return console.error("Invalid URL:",t),e}},id=function(){return of(bt.apply(void 0,arguments))},ad=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||isNaN(new Date(e).getTime()))return(0,Ce.__)("No Date","sureforms");var r={day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0},n=Object.keys(r).reduce((function(e,n){return!0===t[n]?e[n]=r[n]:!1===t[n]||void 0!==t[n]&&(e[n]=t[n]),e}),{});return new Intl.DateTimeFormat("en-US",n).format(new Date(e))},sd=function(){var e=new Date,t=new Date;t.setDate(e.getDate()-30);var r=ad(t,"MM/dd/yyyy"),n=ad(e,"MM/dd/yyyy");return"".concat(r," - ").concat(n)},ld=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd";try{if(!e||isNaN(new Date(e).getTime()))throw new Error((0,Ce.__)("Invalid Date","sureforms"));return Jf(new Date(e),t)}catch(e){return(0,Ce.__)("No Date","sureforms")}},Ad=function(e){return e.from?e.to?"".concat(ld(e.from,"MM/dd/yyyy")," - ").concat(ld(e.to,"MM/dd/yyyy")):"".concat(ld(e.from,"MM/dd/yyyy")):""},cd=function(e){var t=e.from,r=e.to;if(!t||!r){var n=new Date,o=new Date;return o.setDate(n.getDate()-30),{from:o,to:n}}return{from:new Date(t),to:new Date(r)}};void 0===window._srfmSlugAutoLabels&&(window._srfmSlugAutoLabels=new Map),window._srfmSlugAutoLabels;var ud="sureforms_recommended_plugin_activate",fd="sureforms_recommended_plugin_install",dd=function(){var e=rd(ed().mark((function e(t){var r,n,o,i,a;return ed().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.url,n=t.formData,o=t.successCallback,i=t.errorCallback,e.prev=1,e.next=4,fc()({url:r,method:"POST",body:n});case 4:(a=e.sent).success?o(a):i(a),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("API Error:",e.t0),fr.error((0,Ce.__)("Unable to complete action. Please try again.","sureforms"),{duration:5e3});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}();function pd(e){var t,r=e.plugin,n=e.event,o=new window.FormData;o.append("action",ud),o.append("security",null!==(t=srfm_admin.sfPluginManagerNonce)&&void 0!==t?t:srfm_admin.sf_plugin_manager_nonce),o.append("init",r.path),o.append("slug",r.slug),n.target.innerText=srfm_admin.plugin_activating_text,dd({url:srfm_admin.ajax_url,formData:o,successCallback:function(){var e;if("sureforms_menu"===(null===(e=srfm_admin)||void 0===e?void 0:e.current_screen_id)){var t,r,o=null===(t=(r=n.target).closest)||void 0===t?void 0:t.call(r,"button");o&&(o.style.backgroundColor="#F0FDF4")}n.target.innerText=srfm_admin.plugin_activated_text},errorCallback:function(){fr.error((0,Ce.__)("Plugin activation failed, Please try again later.","sureforms"),{duration:5e3}),n.target.innerText=srfm_admin.plugin_activate_text}})}function hd(e){var t,r=e.plugin,n=e.event,o="Installed"===(t=r.status)?ud:"Activated"===t?"":fd;if(o){var i=new window.FormData;o===fd?(i.append("action",fd),i.append("_ajax_nonce",srfm_admin.plugin_installer_nonce),i.append("slug",r.slug),n.target.innerText=srfm_admin.plugin_installing_text,dd({url:srfm_admin.ajax_url,formData:i,successCallback:function(){n.target.innerText=srfm_admin.plugin_installed_text,pd({plugin:r,event:n})},errorCallback:function(){n.target.innerText=(0,Ce.__)("Install","sureforms"),alert((0,Ce.__)("Plugin Installation failed, Please try again later.","sureforms"))}})):o===ud&&pd({plugin:r,event:n})}}const md=function(){var e,t,r,n=null===(e=srfm_admin)||void 0===e?void 0:e.rotating_plugin_banner,o=null===(t=srfm_admin)||void 0===t?void 0:t.is_rtl,i=o?"bottom-left":"bottom-right";return n?React.createElement(Ut,{className:"w-full bg-background-primary border-0.5 border-solid rounded-xl border-border-subtle p-3 gap-2 shadow-sm-blur-1",direction:"column"},React.createElement(cc,{position:i,design:"stack",theme:"light",autoDismiss:!0,dismissAfter:5e3,className:id("z-[999999]",o?"[&>li>div>div.absolute]:right-auto [&>li>div>div.absolute]:left-[0.75rem!important]":"")}),React.createElement(Ut.Item,null,React.createElement(Ht,{size:"sm",className:"font-semibold p-1"},(0,Ce.__)("Supercharge Your Workflow","sureforms"))),React.createElement(Ut.Item,null,React.createElement(Ut,{containerType:"grid",className:"gap-1 p-1 grid-cols-2 md:grid-cols-1 xl:grid-cols-1 bg-background-secondary rounded-lg p-1 gap-1"},React.createElement(Ut.Item,{className:"flex shadow-sm-blur-2 rounded-md bg-background-primary flex-1 min-w-[calc(50%-0.5rem)]"},React.createElement(Ut,{direction:"column",className:"gap-1 p-2"},React.createElement(Ut.Item,{className:"flex flex-col gap-1 pb-1"},React.createElement(Ut,{align:"start",className:"gap-1.5 p-1"},React.createElement("img",{className:"w-6 h-6",src:n.logo,alt:n.title}),React.createElement(Ht,{size:"md"},n.title)),React.createElement(Ut,{className:"flex flex-col gap-0.5 text-[#141338] p-1"},React.createElement("span",{className:"font-semibold text-base leading-6"},n.singleLineDescription),React.createElement(Ht,{size:"sm",variant:"help",className:"font-normal gap-0.5"},n.subtitle))),React.createElement(Ut.Item,{className:"flex gap-0.5 pt-1 px-1 mt-auto pb-1"},React.createElement(Zt,{className:id("w-fit focus:[box-shadow:none]","Activated"===n.status&&"bg-badge-background-green hover:bg-badge-background-green"),variant:"outline",onClick:function(e){return hd({plugin:n,event:e})},size:"xs"},(r=n,{Installed:srfm_admin.plugin_activate_text,Install:(0,Ce.__)("Install & Activate","sureforms"),Activated:srfm_admin.plugin_activated_text}[r.status]||r.status)))))))):null};var gd=["className"];function yd(){return yd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],A=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!A)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),C(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:E(t),r,n},"next"===this.method&&(this.arg=e),u}},t}function Cd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]\n\t\n\t\t\n\t\n\t',viewAll:{link:"",label:"View All"},triggerButton:{label:"",icon:'',beforeBtn:"",afterBtn:"",className:"",onClick:function(){}},notification:{setLastPostUnixTime:null,getLastPostUnixTime:null},flyout:{title:"What's New?",innerContent:{titleLink:!0,additionalClasses:[]},excerpt:{wordLimit:500,moreSymbol:"…",readMore:{label:"Read More",className:""}},className:"",closeOnEsc:!0,closeOnOverlayClick:!0,closeBtnIcon:'',formatDate:null,onOpen:function(){},onClose:function(){},onReady:function(){}}},Td=function(){function e(e){this.rssFeedURLs=[],this.lastPostUnixTime=0,this.multiLastPostUnixTime={},this.notificationsCount=0,this.multiNotificationCount={},this.hasNewFeeds=!1,this.multiHasNewFeeds={},this.validateArgs(e),this.parseDefaults(e),this.setElement(),this.getElement()?(this.setID(),this.setRSSFeedURLs(),Dd.setInstanceID(this.getID()),this.RSS_Fetch_Instance=new Id(this),this.RSS_View_Instance=new Ld(this),this.setNotificationsCount(),this.setTriggers()):console.warn("WNR: Cannot find element with",this.getArgs().selector)}return e.prototype.validateArgs=function(e){["rssFeedURL","selector","uniqueKey"].forEach((function(t){if(!e[t])throw new Error("".concat(t," is a required argument. It cannot be empty or undefined."));if("rssFeedURL"===t){var r=e[t];Array.isArray(r)&&r.forEach((function(e){if(!(null==e?void 0:e.key))throw new Error('The parameter "key" is required for "'.concat(t,'" parameter in multi-feed mode.'));if(e.key.includes(" "))throw new Error('The parameter "key" cannot have spaces for "'.concat(t,'" parameter in multi-feed mode. Ref Key: "').concat(e.key,'"'))}))}}))},e.prototype.parseDefaults=function(e){var t,r;this.args=Sd(Sd(Sd({},Nd),e),{viewAll:Sd(Sd({},Nd.viewAll),null==e?void 0:e.viewAll),triggerButton:Sd(Sd({},Nd.triggerButton),null==e?void 0:e.triggerButton),flyout:Sd(Sd(Sd({},Nd.flyout),null==e?void 0:e.flyout),{innerContent:Sd(Sd({},Nd.flyout.innerContent),null===(t=null==e?void 0:e.flyout)||void 0===t?void 0:t.innerContent),excerpt:Sd(Sd({},Nd.flyout.excerpt),null===(r=null==e?void 0:e.flyout)||void 0===r?void 0:r.excerpt)})})},e.prototype.getArgs=function(){return this.args},e.prototype.setElement=function(){this.element=document.querySelector(this.args.selector)},e.prototype.getElement=function(){return this.element},e.prototype.setID=function(){var e=[this.getArgs().selector,this.getArgs().uniqueKey],t=this.getArgs().rssFeedURL;Array.isArray(t)?t.forEach((function(t){e.push(t.key)})):e.push(t),this.ID=btoa(e.join("-")).slice(-12).replace(/=/g,"")+"-"+this.getArgs().uniqueKey},e.prototype.isMultiFeedRSS=function(){return"string"!=typeof this.getArgs().rssFeedURL},e.prototype.setRSSFeedURLs=function(){var e=this,t=this.getArgs().rssFeedURL;this.isMultiFeedRSS()?Array.isArray(t)&&t.forEach((function(t){e.rssFeedURLs.push(t)})):this.rssFeedURLs.push({key:null,label:"",url:t.toString()})},e.prototype.getRSSFeedURLs=function(){return this.rssFeedURLs},e.prototype.getID=function(){return this.ID},e.prototype.setNotificationsCount=function(){return kd(this,void 0,void 0,(function(){var e=this;return Pd(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.getRSSFeedURLs().map((function(t){return kd(e,[t],void 0,(function(e){var t,r=e.key;return Pd(this,(function(e){switch(e.label){case 0:return t=0,"function"!=typeof this.getArgs().notification.getLastPostUnixTime?[3,2]:[4,this.getArgs().notification.getLastPostUnixTime(r,this)];case 1:return t=e.sent(),[3,3];case 2:t=Dd.getLastPostUnixTime(r),e.label=3;case 3:return this.isMultiFeedRSS()?this.multiLastPostUnixTime[r]=+t:this.lastPostUnixTime=+t,[2]}}))}))})))];case 1:return t.sent(),[4,this.RSS_Fetch_Instance.fetchData().then((function(t){Object.keys(t).forEach((function(r){var n=t[r];if(n.length){e.multiNotificationCount[r]=0;var o=+n[0].date,i=e.isMultiFeedRSS()?e.multiLastPostUnixTime[r]:e.lastPostUnixTime;o>i&&(n.forEach((function(t){t.date>i&&(e.isMultiFeedRSS()&&(e.multiNotificationCount[r]++,e.multiHasNewFeeds[r]=!0),e.notificationsCount++,e.hasNewFeeds=!0)})),e.RSS_View_Instance.setNotification(e.notificationsCount))}}))})).catch(console.error)];case 2:return t.sent(),[2]}}))}))},e.prototype.getNotificationsCount=function(){return this.notificationsCount},e.prototype.setTriggers=function(){var e=this,t=document.getElementById(this.RSS_View_Instance.getTriggerButtonID()),r=document.getElementById(this.RSS_View_Instance.getFlyoutID()),n=r.querySelector(".whats-new-rss-flyout-inner-content"),o=document.getElementById(this.RSS_View_Instance.getFlyoutCloseBtnID()),i=document.getElementById(this.RSS_View_Instance.getFlyoutMultiFeedNavID()),a=function(t){e.RSS_Fetch_Instance.fetchData().then((function(o){n.innerHTML="";var i=o[t];if(i.length){var a=+i[0].date,s=e.isMultiFeedRSS()?e.multiLastPostUnixTime[t]:e.lastPostUnixTime;i.forEach((function(r){var o=!!s&&r.date>s,i=e.getArgs().flyout.innerContent.titleLink?'\n\t\t\t\t\t\t\t\t

').concat(r.title,"

\n\t\t\t\t\t\t\t
"):"

".concat(r.title,"

"),a='\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t

'.concat(e.RSS_View_Instance.formatDate(new Date(r.date)),"

\n\t\t\t\t\t\t\t\t\t").concat(i,"\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t").concat(e.RSS_View_Instance.createExcerpt(r.description,r.postLink,e.getArgs().flyout.excerpt),"\n\t\t\t\t\t\t\t\t").concat(e.RSS_View_Instance.listChildrenPosts(r.children),"\n\t\t\t\t\t\t\t"),l=e.getArgs().flyout.innerContent.additionalClasses;t&&l.push("`inner-content-item-feed-key-${key}`"),n.innerHTML+=e.RSS_View_Instance.innerContentWrapper(a,o,l.join(" "))})),e.getArgs().viewAll.link&&(n.innerHTML+=e.RSS_View_Instance.innerContentWrapper('\n\t\t\t\t\t\t\t').concat(e.getArgs().viewAll.label,"\n\t\t\t\t\t\t\t"))),e.RSS_View_Instance.setIsLoading(!1),r.classList.add("ready"),e.getArgs().flyout.onReady(e),r.focus(),e.isMultiFeedRSS()||(e.lastPostUnixTime=a,e.hasNewFeeds&&("function"==typeof e.getArgs().notification.setLastPostUnixTime?e.getArgs().notification.setLastPostUnixTime(a,t):Dd.setLastPostUnixTime(a,t)))}})).catch(console.error)};t.addEventListener("click",(function(t){if(t.preventDefault(),e.getArgs().triggerButton.onClick(e),e.RSS_View_Instance.setIsLoading(!0),r.classList.remove("closed"),r.classList.add("open"),r.removeAttribute("style"),document.body.classList.add("whats-new-rss-is-active"),e.getArgs().flyout.onOpen(e),e.isMultiFeedRSS()){var n=i.querySelectorAll("button");n.forEach((function(t){e.RSS_View_Instance.setMultiFeedTabNotificationCount(t.dataset.feedKey,e.multiNotificationCount[t.dataset.feedKey]),t.addEventListener("click",(function(r){r.preventDefault();var o=t.dataset.feedKey;e.multiNotificationCount[o]=0,e.RSS_Fetch_Instance.fetchData().then((function(t){var r=t[o][0].date;e.multiLastPostUnixTime[o]=r,!0===e.multiHasNewFeeds[o]&&("function"==typeof e.getArgs().notification.setLastPostUnixTime?e.getArgs().notification.setLastPostUnixTime(r,o):Dd.setLastPostUnixTime(r,o)),e.multiHasNewFeeds[o]=!1})).catch(console.error),n.forEach((function(e){e.classList.remove("selected");var t=e.dataset.feedKey,r=".inner-content-item-feed-key-".concat(t);document.querySelectorAll(r).forEach((function(e){o!==t?e.classList.add("hidden"):e.classList.remove("hidden")}))})),t.classList.add("selected"),a(o)}))})),n[0].click()}else a(null)}));var s=function(){r.classList.add("closed"),r.classList.remove("open"),r.classList.remove("ready"),document.body.classList.remove("whats-new-rss-is-active"),e.isMultiFeedRSS()?e.RSS_View_Instance.setNotification(Object.values(e.multiNotificationCount).filter(Boolean).length):(e.hasNewFeeds=!1,e.RSS_View_Instance.setNotification(!1)),n.innerHTML="",e.getArgs().flyout.onClose(e),t.focus()};this.getArgs().flyout.closeOnEsc&&document.addEventListener("keydown",(function(e){"Escape"===e.key&&r.classList.contains("open")&&s()})),this.getArgs().flyout.closeOnOverlayClick&&r.querySelector(".whats-new-rss-flyout-overlay").addEventListener("click",s),o.addEventListener("click",s)},e}(),Dd=function(){function e(){}return e.setInstanceID=function(e){this.instanceID||(this.instanceID=e)},e.prefixer=function(e,t){if(void 0===t&&(t=""),!this.instanceID)throw new Error("Instance ID not set.");return t?"".concat(this.keys[e],"-").concat(this.instanceID,"-").concat(t):"".concat(this.keys[e],"-").concat(this.instanceID)},e._setDataExpiry=function(e){void 0===e&&(e="");var t=(new Date).getTime()+864e5;sessionStorage.setItem(this.prefixer("SESSION_DATA_EXPIRY",e),JSON.stringify(t))},e._isDataExpired=function(e){void 0===e&&(e="");var t=this.prefixer("SESSION_DATA_EXPIRY",e),r=window.sessionStorage.getItem(t);if(!r)return!0;var n=JSON.parse(r);return(new Date).getTime()>n&&(window.sessionStorage.removeItem(t),!0)},e.setSessionData=function(e,t){return void 0===t&&(t=""),this._setDataExpiry(t),window.sessionStorage.setItem(this.prefixer("SESSION",t),e)},e.getSessionData=function(e){return void 0===e&&(e=""),this._isDataExpired(e)?"{}":window.sessionStorage.getItem(this.prefixer("SESSION",e))},e.setLastPostUnixTime=function(e,t){return void 0===t&&(t=""),window.localStorage.setItem(this.prefixer("LAST_LATEST_POST",t),e.toString())},e.getLastPostUnixTime=function(e){return void 0===e&&(e=""),+window.localStorage.getItem(this.prefixer("LAST_LATEST_POST",e))},e.keys={SESSION_DATA_EXPIRY:"whats-new-cache-expiry",LAST_LATEST_POST:"whats-new-last-unixtime",SESSION:"whats-new-cache"},e}(),Id=function(){function e(e){var t=this;this.data={},this.RSS=e,this.RSS.getRSSFeedURLs().forEach((function(e){var r=JSON.parse(Dd.getSessionData(e.key));r&&r.length&&(t.data[e.key]=r)}))}return e.prototype.fetchData=function(){return kd(this,void 0,void 0,(function(){var e,t=this;return Pd(this,(function(r){switch(r.label){case 0:return Object.keys(this.data).length?[2,this.data]:(e=this.RSS.getRSSFeedURLs().map((function(e){return kd(t,void 0,void 0,(function(){var t,r,n=this;return Pd(this,(function(o){switch(o.label){case 0:return this.data[e.key]=[],[4,fetch(e.url)];case 1:return[4,o.sent().text()];case 2:return t=(t=o.sent()).replace(/»/g,"&raquo;"),r=new DOMParser,r.parseFromString(t,"text/xml").querySelectorAll("item").forEach((function(t){var r,o=t.querySelector("title").textContent,i=t.querySelector("link").textContent,a=t.querySelector("content\\:encoded, encoded"),s=a?a.textContent:"",l=t.querySelector("pubDate").innerHTML;n.data[e.key].push({title:o,date:l?+new Date(l):null,postLink:i,description:s.replace(/])*)>/g,'').replace(/

\s*<\/p>/g,""),children:JSON.parse((null===(r=t.querySelector("children"))||void 0===r?void 0:r.innerHTML)||"{}")})})),Dd.setSessionData(JSON.stringify(this.data[e.key]),e.key),[2]}}))}))})),[4,Promise.all(e)]);case 1:return r.sent(),[2,this.data]}}))}))},e}(),Ld=function(){function e(e){this.RSS=e,this.createTriggerButton(),this.createFlyOut()}return e.prototype.getTriggerButtonID=function(){return"whats-new-rss-btn-".concat(this.RSS.getID())},e.prototype.getFlyoutID=function(){return"whats-new-rss-flyout-".concat(this.RSS.getID())},e.prototype.getFlyoutCloseBtnID=function(){return"whats-new-rss-flyout-close-".concat(this.RSS.getID())},e.prototype.getFlyoutMultiFeedNavID=function(){return"whats-new-rss-flyout-multi-feed-nav-".concat(this.RSS.getID())},e.prototype.setIsLoading=function(e){void 0===e&&(e=!1);var t=document.getElementById(this.getFlyoutID());e?t.classList.add("is-loading"):t.classList.remove("is-loading")},e.prototype.setNotification=function(e){var t=document.querySelector("#".concat(this.getTriggerButtonID()," .whats-new-rss-notification-badge"));e?(this.RSS.isMultiFeedRSS()?(t.innerHTML="",t.classList.add("is-multi-feed")):t.innerHTML=e>9?"9+":e.toString(),t.classList.remove("hide")):t.classList.add("hide")},e.prototype.createTriggerButton=function(){var e,t=this.RSS.getArgs().triggerButton.label;e=t?"\n\t\t\t".concat(this.RSS.getArgs().triggerButton.beforeBtn,'\n\t\t\t\n\t\t\t\t

\n\t\t\t\t').concat(t,"\n\t\t\t\n\t\t\t").concat(this.RSS.getArgs().triggerButton.afterBtn,"\n\t\t\t"):"\n\t\t\t".concat(this.RSS.getArgs().triggerButton.beforeBtn,'\n\t\t\t\n\t\t\t\t').concat(this.RSS.getArgs().triggerButton.icon,'\n\t\t\t\t
0
\n\t\t\t
\n\t\t\t').concat(this.RSS.getArgs().triggerButton.afterBtn,"\n\t\t\t"),this.RSS.getElement().innerHTML+=e},e.prototype.createFlyOut=function(){var e=["whats-new-rss-flyout","closed"];this.RSS.getArgs().flyout.className&&e.push(this.RSS.getArgs().flyout.className);var t=[];this.RSS.isMultiFeedRSS()&&(t.push('"));var r=document.createElement("div");r.setAttribute("id",this.getFlyoutID()),r.setAttribute("class",e.join(" ")),r.setAttribute("role","dialog"),r.setAttribute("style","visibility: hidden;"),r.innerHTML='\n\t\t
\n\n\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t

'.concat(this.RSS.getArgs().flyout.title,'

\n\n\t\t\t\t\t\n\t\t\t\t\t').concat(this.RSS.getArgs().loaderIcon,'\n\t\t\t\t\t\n\t\t\t\t
\n\n\t\t\t\t\n\t\t\t
\n\n\t\t\t").concat(t.join(""),'\n\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\n\t\t
\n\n\t\t
\n\t\t'),document.body.appendChild(r)},e.prototype.setMultiFeedTabNotificationCount=function(e,t){void 0===t&&(t=0);var r=document.querySelector("#".concat(this.getFlyoutMultiFeedNavID(),' button[data-feed-key="').concat(e,'"]'));if(r){var n=r.querySelector(".new-notification-count");if(t){var o=t>9?"9+":t;n.innerHTML=o.toString()}else n.innerHTML=""}},e.prototype.innerContentWrapper=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r="");var n=["whats-new-rss-flyout-inner-content-item"];return t&&n.push("rss-new-post"),r&&n.push(r),'\n\t\t
\n\t\t\t').concat(t?'New ✨':"","\n\t\t\t").concat(e,"\n\t\t
\n\t\t")},e.prototype.createExcerpt=function(e,t,r){var n=r.wordLimit,o=r.moreSymbol,i=r.readMore;if(!n)return e;var a=e.replace(/<[^>]*>/g,"").split(/\s+/),s=a.slice(0,n).join(" ");return o&&(s+=o),n>a.length?e:t&&(null==i?void 0:i.label)?"

".concat(s,' ').concat(i.label,"

"):"

".concat(s,"

")},e.prototype.listChildrenPosts=function(e){var t=this,r=Object.values(e);if(!r.length)return"";var n=document.createElement("details"),o=document.createElement("summary"),i=document.createElement("div");return r.forEach((function(e){var r=(new DOMParser).parseFromString(e.post_content,"text/html"),n=document.createElement("div");n.classList.add("sub-version-item"),n.innerHTML='\n\t\t\t\t
\n\t\t\t\t\t

'.concat(e.post_title,'

\n\t\t\t\t\t').concat(t.formatDate(new Date(e.post_date)),'\n\t\t\t\t
\n\t\t\t\t
').concat(r.documentElement.textContent,"
\n\t\t\t"),i.appendChild(n)})),o.innerHTML='

See More

See Less

',n.appendChild(o),n.appendChild(i),i.classList.add("sub-version-items-wrapper"),n.classList.add("whats-new-rss-sub-version-details"),n.outerHTML},e.prototype.formatDate=function(e){if("function"==typeof this.RSS.getArgs().flyout.formatDate)return this.RSS.getArgs().flyout.formatDate(e);var t=new Date,r=e.getTime(),n=t.getTime()-r,o=36e5,i=24*o,a=7*i,s=30*i;if(n<6e4)return"Just now";if(n1?"s":""," ago")}if(n1?"s":""," ago")}if(n1?"s":""," ago")}if(n1?"s":""," ago")}var f=Math.floor(n/s);return"".concat(f," month").concat(f>1?"s":""," ago")},e}();function zd(){return Rd.apply(this,arguments)}function Rd(){return(Rd=Od(xd().mark((function e(){return xd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",'.whats-new-rss-is-active{overflow:hidden}.whats-new-rss-trigger-button{display:flex;align-items:center;position:relative;width:auto;padding:5px;cursor:pointer}.whats-new-rss-trigger-button.has-label{align-items:end;gap:10px}.whats-new-rss-trigger-button.has-label .icon-badge{position:relative;line-height:1}.whats-new-rss-trigger-button.has-label .icon-badge .whats-new-rss-notification-badge{top:-12px;right:-10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge{position:absolute;top:-8px;right:-5px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red;transition:transform .2s ease-in-out}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.is-multi-feed{top:-2px;right:-2px;font-size:0;width:10px;height:10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.hide{display:none}.whats-new-rss-trigger-button:hover .whats-new-rss-notification-badge{transform:scale(1.2)}.whats-new-rss-flyout{position:fixed;top:0;right:0;bottom:0;width:100%;z-index:99999;transition:visibility .3s ease-in-out;font-family:Arial,Helvetica,sans-serif}.whats-new-rss-flyout .lightbox-trigger,.whats-new-rss-flyout.hidden{display:none}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon{display:block;margin:auto}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon svg{display:block;background:0 0;width:25px;height:25px}.whats-new-rss-flyout .whats-new-rss-flyout-contents{position:fixed;display:flex;right:0;width:30%;height:100%;flex-direction:column;background-color:#fff;transition:transform .3s ease-in-out;z-index:9999}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 16px 24px;border-bottom:1px solid #ccc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header button{border:none;background:0 0;font-size:30px;cursor:pointer;color:#94a3b8;padding:0;margin:0;box-shadow:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper{display:flex;gap:10px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper h3{margin:0;padding:0;color:#0f172a;font-weight:600;font-size:16px;line-height:24px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav{display:flex;padding:0 30px;border-bottom:1px solid #ccc;gap:2em;overflow:auto;white-space:nowrap}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button{position:relative;background:0 0;color:inherit;padding:15px 0;border-bottom:2px solid transparent}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:focus,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:hover{border-color:inherit}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button.selected{border-color:#5d5d5d}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button .new-notification-count{position:absolute;top:0;right:-10px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content{flex:1;overflow-y:auto}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .skeleton-container{margin:30px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item{border-bottom:1px solid #d8dfe9;padding:30px 24px;color:#475569;font-weight:400;font-size:14px;line-height:20px;display:flex;flex-direction:column;gap:13px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>*{margin:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.skeleton-row{height:25vh;margin:40px 0;background:linear-gradient(90deg,#eee 25%,#ddd 50%,#eee 75%);background-size:200% 100%;animation:shimmer 1.5s infinite}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post{position:relative}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post .new-post-badge{background:#ff3d3d;border-radius:5px;position:absolute;right:45px;padding:0 5px;color:#fff}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header{display:flex;flex-direction:column;gap:15px;padding:0 0 8px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header p{color:#94a3b8;margin:0;padding:0;font-weight:600;font-size:14px;line-height:16px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header h2{margin:0;color:#0f172a;font-weight:700;line-height:28px;font-size:20px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h2{font-weight:700;font-size:18px;line-height:24px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h3{font-weight:700;font-size:16px;line-height:22px;margin-top:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h4{font-weight:700;font-size:15px;line-height:20px;margin-top:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h5{font-weight:700;font-size:14px;line-height:18px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h6{font-weight:700;font-size:13px;line-height:16px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p{padding:0;font-size:14px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p:last-child{margin-bottom:0;padding-bottom:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item a{color:#1170ff;text-decoration:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure{margin:10px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure.wp-block-embed.is-type-video{position:relative;width:100%;height:0;padding-bottom:56.25%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item video{vertical-align:middle;width:100%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item strong{font-weight:600}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{padding-inline-start:20px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol li,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul li{margin-bottom:5px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{list-style-type:disc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol{list-style-type:decimal}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details{line-height:20px;font-size:.9em;margin:10px 0;background:#f9fafb}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary{display:flex;justify-content:space-between;cursor:pointer;padding:20px 15px;height:1em;line-height:20px;font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary::after{content:"⌃";font-size:20px;transform:rotateX(180deg);font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-more{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-less{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary{border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary::after{transform:rotateX(45deg)}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-more{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-less{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item{position:relative;padding:1em;border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-header{display:flex;justify-content:space-between}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-content{margin-top:1em}.whats-new-rss-flyout .whats-new-rss-flyout-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5);transition:all .3s ease-in-out}.whats-new-rss-flyout.closed{visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-overlay{opacity:0;visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-contents{transform:translateX(100%)}.whats-new-rss-flyout .whats-new-rss-flyout-inner-header__loading-icon{display:none}@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}@media screen and (max-width:1024px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:40%}}@media screen and (max-width:768px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:85%}}');case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fd(){return(Fd=Od(xd().mark((function e(){var t,r;return xd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t="whats-new-rss-styles",document.getElementById(t)){e.next=8;break}return(r=document.createElement("style")).id=t,e.next=6,zd();case 6:r.innerHTML=e.sent,document.head.appendChild(r);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const Vd=function(e){var t=e.selector,r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n(0,Me.jsx)("div",{className:wt("w-full box-border flex items-center justify-between bg-background-primary p-5 min-h-16",xt(t),r),...n,children:e});Wd.displayName="Topbar";const Bd=({gap:e="sm",children:t,className:r})=>(0,Me.jsx)("div",{className:wt("flex items-center",xt(e),r),children:t});Bd.displayName="Topbar.Left";const Xd=({gap:e="md",children:t,align:r="center",className:n})=>{const o={left:"justify-start",center:"justify-center",right:"justify-end"}[r];return(0,Me.jsx)("div",{className:wt("flex items-center grow",xt(e),o,n),children:t})};Xd.displayName="Topbar.Middle";const Ud=({gap:e="sm",children:t,className:r})=>(0,Me.jsx)("div",{className:wt("flex items-center",xt(e),r),children:t});Ud.displayName="Topbar.Right";const Yd=({children:e,className:t})=>(0,Me.jsx)("div",{className:wt("flex items-center [&>svg]:block h-full",t),children:e});Yd.displayName="Topbar.Item",Wd.Left=Bd,Wd.Middle=Xd,Wd.Right=Ud,Wd.Item=Yd;const qd=(0,a.createContext)({}),Hd=qd.Provider,Zd=()=>(0,a.useContext)(qd),Gd=(e,t,r)=>{if(!e||!t)return{open:()=>({}),closed:()=>({})};const n=e?.getBoundingClientRect(),o=t?.getBoundingClientRect(),i=r?n?.x-o?.x+n?.width/2:o?.width-(o?.right-n?.x)+n?.width/2,a=n?.y-o?.y+n?.height/2;return{open:(e=1e3)=>({clipPath:`circle(${2*e+200}px at ${i}px ${a}px)`,background:"rgb(255, 255, 255, 1)",transition:{type:"spring",stiffness:20,restDelta:2,background:{duration:0}}}),closed:{clipPath:`circle(${n?.width/2}px at ${i}px ${a}px)`,background:"rgb(255, 255, 255, 0)",transition:{delay:.5,type:"spring",stiffness:400,damping:40,background:{duration:0,delay:1e3}}}}},Kd=e=>(0,Me.jsx)(sc.path,{className:"stroke-icon-primary",fill:"transparent",strokeWidth:"3",strokeLinecap:"round",...e}),Qd=({className:e})=>{const{toggleOpen:t,setTriggerRef:r}=Zd();return(0,Me.jsx)(Zt,{ref:r,className:wt("relative z-[1] rounded-full hover:shadow-sm focus:[box-shadow:none] pointer-events-auto bg-background-primary",e),variant:"ghost",size:"xs",onClick:t,"aria-label":"Toggle menu",icon:(0,Me.jsxs)(sc.svg,{className:"shrink-0 stroke-icon-primary",width:"23",height:"23",variants:{open:{viewBox:"0 0 20 20"},closed:{viewBox:"0 0 23 18"}},children:[(0,Me.jsx)(Kd,{variants:{closed:{d:"M 2 2.5 L 20 2.5"},open:{d:"M 3 16.5 L 17 2.5"}}}),(0,Me.jsx)(Kd,{d:"M 2 9.423 L 20 9.423",variants:{closed:{opacity:1},open:{opacity:0}},transition:{duration:.1}}),(0,Me.jsx)(Kd,{variants:{closed:{d:"M 2 16.346 L 20 16.346"},open:{d:"M 3 2.5 L 17 16.346"}}})]})})},Jd={open:{transition:{staggerChildren:.07,delayChildren:.2}},closed:{transition:{staggerChildren:.05,staggerDirection:-1}}},_d=({tag:e="a",active:t,icon:r,iconPosition:n="left",className:o,children:i,...s})=>{let l=null,A=null;const c=r&&(0,a.isValidElement)(r)?(0,a.cloneElement)(r,{key:"left-icon",className:wt("size-5",t?"text-brand-800":"text-icon-secondary",r.props?.className??"")}):null;switch(n){case"left":l=c;break;case"right":A=c;break;default:l=null,A=null}return(0,Me.jsx)(ep,{children:(0,Me.jsxs)(e,{className:wt("w-full no-underline hover:no-underline text-text-primary text-lg font-medium flex items-center gap-2 px-2.5 py-1.5 rounded-md hover:bg-background-secondary hover:text-text-primary focus:outline-none focus:shadow-none transition ease-in-out duration-150",t?"text-text-primary bg-background-secondary":"text-text-secondary",o),...s,children:[!!l&&l,(0,Me.jsx)("span",{className:"contents",children:i}),!!A&&A]})})},$d={open:{y:0,opacity:1,transition:{y:{stiffness:1e3,velocity:-100}}},closed:{y:50,opacity:0,transition:{y:{stiffness:1e3}}}},ep=({children:e})=>(0,Me.jsx)(sc.li,{className:"m-0 p-0 flex items-center justify-start w-full",variants:$d,whileHover:{scale:1.05},whileTap:{scale:.95},children:e}),tp=({children:e,className:t})=>{const{triggerRef:r,triggerOnRight:n,triggerOnLeft:o}=Zd(),[i,s]=(0,a.useState)(null);return r?(0,Me.jsxs)(sc.div,{ref:s,className:wt("absolute top-0 bottom-0 w-80 h-screen",n?"right-0":"left-0",t),children:[i&&(0,Me.jsx)(sc.div,{className:wt("bg-background-primary shadow-lg absolute top-0 bottom-0 w-80 border-y-0 border-l-0 border-r border-solid border-border-subtle",n?"right-0":"left-0"),variants:Gd(r,i,o??!1)}),(0,Me.jsx)(sc.ul,{variants:Jd,className:wt("relative mt-14 mb-0 w-full px-5 pb-5 pt-2 flex flex-col items-start justify-start gap-0.5",t),children:e})]}):null},rp=({className:e,children:t})=>{const[r,n]=function(...e){const t=(0,a.useRef)(0),[r,n]=(0,a.useState)(e[t.current]);return[r,(0,a.useCallback)((r=>{t.current="number"!=typeof r?((e,t,r)=>{const n=t-0;return((r-0)%n+n)%n+0})(0,e.length,t.current+1):r,n(e[t.current])}),[e.length,...e])]}(!1,!0),[o,i]=(0,a.useState)(null),s=(0,a.useRef)(null),{height:l}=(e=>{const t=(0,a.useRef)({width:0,height:0});return(0,a.useEffect)((()=>{e.current&&(t.current.width=e.current.offsetWidth,t.current.height=e.current.offsetHeight)}),[]),t.current})(s),{isRight:A=!1,isLeft:c=!0}=(e=>{if(!e)return{error:"Element not found."};const t=e.getBoundingClientRect(),r=window.innerWidth,n=r/2,o=t.rightn;return{isLeft:o,isRight:i,isCenter:!o&&!i,elementRect:{left:t.left,right:t.right,width:t.width},viewport:{width:r,center:n}}})(o);return(0,Me.jsx)(Hd,{value:{isOpen:r,toggleOpen:n,setTriggerRef:e=>{(0,a.startTransition)((()=>{i(e)}))},triggerRef:o,triggerOnRight:A,triggerOnLeft:c},children:(0,Me.jsx)("div",{className:wt("size-6 z-[1]",e),children:(0,Me.jsx)(sc.nav,{className:"h-full",initial:!1,animate:r?"open":"closed",custom:l,variants:{open:{pointerEvents:"auto"},closed:{pointerEvents:"none"}},ref:s,children:t})})})};rp.displayName="HamburgerMenu",Qd.displayName="HamburgerMenu.Toggle",tp.displayName="HamburgerMenu.Options",_d.displayName="HamburgerMenu.Option",rp.Options=tp,rp.Option=_d,rp.Toggle=Qd;const np=(0,a.forwardRef)((({label:e="",size:t="sm",className:r="",type:n="pill",variant:o="neutral",icon:i=null,disabled:a=!1,onClose:s=()=>{},closable:l=!1,onMouseDown:A=()=>{},disableHover:c=!1},u)=>{const f={neutral:"bg-badge-background-gray text-badge-color-gray border-badge-border-gray",red:"bg-badge-background-red text-badge-color-red border-badge-border-red",yellow:"bg-badge-background-yellow text-badge-color-yellow border-badge-border-yellow",green:"bg-badge-background-green text-badge-color-green border-badge-border-green",blue:"bg-badge-background-sky text-badge-color-sky border-badge-border-sky",inverse:"bg-background-inverse text-text-inverse border-background-inverse",disabled:"bg-badge-background-disabled text-badge-color-disabled border-badge-border-disabled disabled cursor-not-allowed"};let d="",p="group relative justify-center flex items-center cursor-pointer";const h={xxs:"[&>svg]:size-3",xs:"[&>svg]:size-3",sm:"[&>svg]:size-3",md:"[&>svg]:size-4",lg:"[&>svg]:size-5"};return a?(d=f.disabled,p+=" cursor-not-allowed disabled"):d=f[o],e?(0,Me.jsxs)("span",{className:wt("font-medium border-badge-border-gray flex items-center justify-center border border-solid box-border max-w-full transition-colors duration-150 ease-in-out",{xxs:"py-0.5 px-0.5 text-xs h-4",xs:"py-0.5 px-1 text-xs h-5",sm:"py-1 px-1.5 text-xs h-6",md:"py-1 px-1.5 text-sm h-7",lg:"py-1 px-1.5 text-base h-8"}[t],{pill:"rounded-full",rounded:"rounded"}[n],"gap-0.5",d,!c&&{neutral:"hover:bg-badge-hover-gray",red:"hover:bg-badge-hover-red",yellow:"hover:bg-badge-hover-yellow",green:"hover:bg-badge-hover-green",blue:"hover:bg-badge-hover-sky",inverse:"hover:bg-badge-hover-inverse",disabled:"hover:bg-badge-hover-disabled"}[o],r),ref:u,children:[i?(0,Me.jsx)("span",{className:wt("justify-center flex items-center",h[t]),children:i}):null,(0,Me.jsx)("span",{className:"px-1 truncate inline-block",children:e}),l&&(0,Me.jsxs)("span",{className:wt(p,h[t]),onMouseDown:A,role:"button",tabIndex:0,...!a&&{onClick:s},children:[(0,Me.jsx)("span",{className:"sr-only",children:`Remove ${e}`}),(0,Me.jsx)(Ar,{}),(0,Me.jsx)("span",{className:"absolute -inset-1"})]})]}):null}));np.displayName="Badge";const op=_t("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]),ip=_t("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]),ap=_t("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);function sp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,A=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){A=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(A)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return lp(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lp(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);rspan]:p-0 underline underline-offset-2 font-normal",size:"xs",onClick:function(){var e,t;return window.open(od((null===(e=srfm_admin)||void 0===e?void 0:e.pricing_page_url)||(null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_pricing_page),"dashboard-upgrade-notice-cta"),"_blank","noreferrer")}},(0,Ce.__)("Upgrade now","sureforms"))," ",React.createElement("span",{className:"font-normal text-xs"},(0,Ce.__)("and unlock the full power of SureForms!","sureforms"))),React.createElement(Ut.Item,{className:"absolute right-2 inset-y-0 inline-flex items-center"},React.createElement(Zt,{variant:"ghost",size:"xs",className:"p-1 hover:bg-transparent",icon:React.createElement(er,{className:"size-4"}),onClick:function(){o(!1),function(e){var t=new Date;t.setTime(t.getTime()+864e6),document.cookie="".concat(e,"=").concat("true","; expires=").concat(t.toUTCString(),"; path=/")}(Ap),"function"==typeof t&&t()}}))):null};function up(){return up=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const r=hp[t]||hp.sm;return(0,Me.jsx)(mp.Provider,{value:{sizes:r},children:(0,Me.jsx)("nav",{className:"flex m-0","aria-label":"Breadcrumb",children:(0,Me.jsx)("ul",{className:"m-0 inline-flex items-center space-x-1 md:space-x-1",children:e})})})};gp.displayName="Breadcrumb";const yp=({children:e})=>(0,Me.jsx)(Me.Fragment,{children:e});yp.displayName="Breadcrumb.List";const vp=({children:e})=>(0,Me.jsx)("li",{className:"m-0 inline-flex items-center gap-2",children:e});vp.displayName="Breadcrumb.Item";const bp=({href:e,children:t,className:r,as:n="a",...o})=>{const{sizes:i}=(0,a.useContext)(mp);return(0,Me.jsx)(n,{href:e,className:wt(i.text,"px-1 font-medium no-underline text-text-tertiary hover:text-text-primary hover:underline","focus:outline-none focus:ring-1 focus:ring-border-interactive focus:border-border-interactive focus:rounded-sm","transition-all duration-200",r),...o,children:t})};bp.displayName="Breadcrumb.Link";const wp=({type:e})=>{const{sizes:t}=(0,a.useContext)(mp),r={slash:(0,Me.jsx)("span",{className:wt("mx-1",t.separator),children:"/"}),arrow:(0,Me.jsx)(dp,{size:t.separatorIconSize})};return(0,Me.jsx)("li",{role:"separator",className:"flex items-center text-text-tertiary mx-2 p-0 list-none","aria-hidden":"true",children:r[e]||r.arrow})};wp.displayName="Breadcrumb.Separator";const xp=()=>{const{sizes:e}=(0,a.useContext)(mp);return(0,Me.jsx)(pp,{className:"mt-[2px] cursor-pointer text-text-tertiary hover:text-text-primary",size:e.separatorIconSize+4})};xp.displayName="Breadcrumb.Ellipsis";const Cp=({children:e})=>{const{sizes:t}=(0,a.useContext)(mp);return(0,Me.jsx)("span",{className:wt(t.text,"font-medium text-text-primary"),children:e})};Cp.displayName="Breadcrumb.Page",gp.List=yp,gp.Item=vp,gp.Link=bp,gp.Separator=wp,gp.Ellipsis=xp,gp.Page=Cp;const Mp=function(e){var t=e.options;return React.createElement(gp,null,React.createElement(gp.List,null,t.map((function(e,t){switch(e.type){case"separator":return React.createElement(gp.Separator,{key:t});case"ellipsis":return React.createElement(gp.Item,{key:t},React.createElement(gp.Ellipsis,null));case"page":return React.createElement(gp.Item,{key:t},React.createElement(gp.Page,null,e.text));default:return React.createElement(gp.Item,{key:t},React.createElement(gp.Link,null==e?void 0:e.linkProps,e.text))}}))))};function Ep(){return"undefined"!=typeof window}function jp(e){return kp(e)?(e.nodeName||"").toLowerCase():"#document"}function Op(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Sp(e){var t;return null==(t=(kp(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function kp(e){return!!Ep()&&(e instanceof Node||e instanceof Op(e).Node)}function Pp(e){return!!Ep()&&(e instanceof Element||e instanceof Op(e).Element)}function Np(e){return!!Ep()&&(e instanceof HTMLElement||e instanceof Op(e).HTMLElement)}function Tp(e){return!(!Ep()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Op(e).ShadowRoot)}function Dp(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Vp(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Ip(e){return["table","td","th"].includes(jp(e))}function Lp(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function zp(e){const t=Rp(),r=Pp(e)?Vp(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!r[e]&&"none"!==r[e]))||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function Rp(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Fp(e){return["html","body","#document"].includes(jp(e))}function Vp(e){return Op(e).getComputedStyle(e)}function Wp(e){return Pp(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bp(e){if("html"===jp(e))return e;const t=e.assignedSlot||e.parentNode||Tp(e)&&e.host||Sp(e);return Tp(t)?t.host:t}function Xp(e){const t=Bp(e);return Fp(t)?e.ownerDocument?e.ownerDocument.body:e.body:Np(t)&&Dp(t)?t:Xp(t)}function Up(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=Xp(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=Op(o);if(i){const e=Yp(a);return t.concat(a,a.visualViewport||[],Dp(o)?o:[],e&&r?Up(e):[])}return t.concat(o,Up(o,[],r))}function Yp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qp(e){let t=e.activeElement;for(;null!=(null==(r=t)||null==(r=r.shadowRoot)?void 0:r.activeElement);){var r;t=t.shadowRoot.activeElement}return t}function Hp(e,t){if(!e||!t)return!1;const r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&Tp(r)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Zp(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Gp(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:r}=e;return t+"/"+r})).join(" "):navigator.userAgent}function Kp(e){return!(0!==e.mozInputSource||!e.isTrusted)||(_p()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Qp(e){return!Gp().includes("jsdom/")&&(!_p()&&0===e.width&&0===e.height||_p()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function Jp(){return/apple/i.test(navigator.vendor)}function _p(){const e=/android/i;return e.test(Zp())||e.test(Gp())}function $p(){return Zp().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function eh(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function th(e){return(null==e?void 0:e.ownerDocument)||document}function rh(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return null!=r.target&&t.contains(r.target)}function nh(e){return"composedPath"in e?e.composedPath()[0]:e.target}function oh(e){return Np(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function ih(e){e.preventDefault(),e.stopPropagation()}function ah(e){return!!e&&"combobox"===e.getAttribute("role")&&oh(e)}const sh=Math.min,lh=Math.max,Ah=Math.round,ch=Math.floor,uh=e=>({x:e,y:e}),fh={left:"right",right:"left",bottom:"top",top:"bottom"},dh={start:"end",end:"start"};function ph(e,t,r){return lh(e,sh(t,r))}function hh(e,t){return"function"==typeof e?e(t):e}function mh(e){return e.split("-")[0]}function gh(e){return e.split("-")[1]}function yh(e){return"x"===e?"y":"x"}function vh(e){return"y"===e?"height":"width"}function bh(e){return["top","bottom"].includes(mh(e))?"y":"x"}function wh(e){return yh(bh(e))}function xh(e){return e.replace(/start|end/g,(e=>dh[e]))}function Ch(e){return e.replace(/left|right|bottom|top/g,(e=>fh[e]))}function Mh(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Eh(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}var jh=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),Oh="undefined"==typeof Element,Sh=Oh?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,kh=!Oh&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},Ph=function e(t,r){var n;void 0===r&&(r=!0);var o=null==t||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===o||"true"===o||r&&t&&e(t.parentNode)},Nh=function e(t,r,n){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!Ph(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,n);n.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{Sh.call(a,jh)&&n.filter(a)&&(r||!t.includes(a))&&o.push(a);var A=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),c=!Ph(A,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(A&&c){var u=e(!0===A?a.children:A.children,!0,n);n.flatten?o.push.apply(o,u):o.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}return o},Th=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Dh=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,r=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===r||"true"===r}(e))&&!Th(e)?0:e.tabIndex},Ih=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Lh=function(e){return"INPUT"===e.tagName},zh=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},Rh=function(e,t){return!(t.disabled||Ph(t)||function(e){return Lh(e)&&"hidden"===e.type}(t)||function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=Sh.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Sh.call(o,"details:not([open]) *"))return!0;if(r&&"full"!==r&&"legacy-full"!==r){if("non-zero-area"===r)return zh(e)}else{if("function"==typeof n){for(var i=e;e;){var a=e.parentElement,s=kh(e);if(a&&!a.shadowRoot&&!0===n(a))return zh(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=i}if(function(e){var t,r,n,o,i=e&&kh(e),a=null===(t=i)||void 0===t?void 0:t.host,s=!1;if(i&&i!==e)for(s=!!(null!==(r=a)&&void 0!==r&&null!==(n=r.ownerDocument)&&void 0!==n&&n.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&a;){var l,A,c;s=!(null===(A=a=null===(l=i=kh(a))||void 0===l?void 0:l.host)||void 0===A||null===(c=A.ownerDocument)||void 0===c||!c.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==r)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r=0)},Wh=function e(t){var r=[],n=[];return t.forEach((function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=function(e,t){var r=Dh(e);return r<0&&t&&!Th(e)?0:r}(a,i),l=i?e(t.candidates):a;0===s?i?r.push.apply(r,l):r.push(a):n.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})})),n.sort(Ih).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(r)},Bh=function(e,t){var r;return r=(t=t||{}).getShadowRoot?Nh([e],t.includeContainer,{filter:Fh.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Vh}):function(e,t,r){if(Ph(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(jh));return t&&Sh.call(e,jh)&&n.unshift(e),n.filter(r)}(e,t.includeContainer,Fh.bind(null,t)),Wh(r)};function Xh(e,t,r){let{reference:n,floating:o}=e;const i=bh(t),a=wh(t),s=vh(a),l=mh(t),A="y"===i,c=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let d;switch(l){case"top":d={x:c,y:n.y-o.height};break;case"bottom":d={x:c,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:u};break;case"left":d={x:n.x-o.width,y:u};break;default:d={x:n.x,y:n.y}}switch(gh(t)){case"start":d[a]-=f*(r&&A?-1:1);break;case"end":d[a]+=f*(r&&A?-1:1)}return d}async function Uh(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:A="clippingAncestors",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:f=!1,padding:d=0}=hh(t,e),p=Mh(d),h=s[f?"floating"===u?"reference":"floating":u],m=Eh(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(h)))||r?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:A,rootBoundary:c,strategy:l})),g="floating"===u?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=Eh(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:y,strategy:l}):g);return{top:(m.top-b.top+p.top)/v.y,bottom:(b.bottom-m.bottom+p.bottom)/v.y,left:(m.left-b.left+p.left)/v.x,right:(b.right-m.right+p.right)/v.x}}function Yh(e){const t=Vp(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Np(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=Ah(r)!==i||Ah(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function qh(e){return Pp(e)?e:e.contextElement}function Hh(e){const t=qh(e);if(!Np(t))return uh(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Yh(t);let a=(i?Ah(r.width):r.width)/n,s=(i?Ah(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Zh=uh(0);function Gh(e){const t=Op(e);return Rp()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Zh}function Kh(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=qh(e);let a=uh(1);t&&(n?Pp(n)&&(a=Hh(n)):a=Hh(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Op(e))&&t}(i,r,n)?Gh(i):uh(0);let l=(o.left+s.x)/a.x,A=(o.top+s.y)/a.y,c=o.width/a.x,u=o.height/a.y;if(i){const e=Op(i),t=n&&Pp(n)?Op(n):n;let r=e,o=Yp(r);for(;o&&n&&t!==r;){const e=Hh(o),t=o.getBoundingClientRect(),n=Vp(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,A*=e.y,c*=e.x,u*=e.y,l+=i,A+=a,r=Op(o),o=Yp(r)}}return Eh({width:c,height:u,x:l,y:A})}function Qh(e,t){const r=Wp(e).scrollLeft;return t?t.left+r:Kh(Sp(e)).left+r}function Jh(e,t,r){void 0===r&&(r=!1);const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:Qh(e,n)),y:n.top+t.scrollTop}}function _h(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=Op(e),n=Sp(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Rp();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=Sp(e),r=Wp(e),n=e.ownerDocument.body,o=lh(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=lh(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Qh(e);const s=-r.scrollTop;return"rtl"===Vp(n).direction&&(a+=lh(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Sp(e));else if(Pp(t))n=function(e,t){const r=Kh(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Np(e)?Hh(e):uh(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=Gh(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Eh(n)}function $h(e,t){const r=Bp(e);return!(r===t||!Pp(r)||Fp(r))&&("fixed"===Vp(r).position||$h(r,t))}function em(e,t,r){const n=Np(t),o=Sp(t),i="fixed"===r,a=Kh(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=uh(0);function A(){l.x=Qh(o)}if(n||!n&&!i)if(("body"!==jp(t)||Dp(o))&&(s=Wp(t)),n){const e=Kh(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&A();i&&!n&&o&&A();const c=!o||n||i?uh(0):Jh(o,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function tm(e){return"static"===Vp(e).position}function rm(e,t){if(!Np(e)||"fixed"===Vp(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Sp(e)===r&&(r=r.ownerDocument.body),r}function nm(e,t){const r=Op(e);if(Lp(e))return r;if(!Np(e)){let t=Bp(e);for(;t&&!Fp(t);){if(Pp(t)&&!tm(t))return t;t=Bp(t)}return r}let n=rm(e,t);for(;n&&Ip(n)&&tm(n);)n=rm(n,t);return n&&Fp(n)&&tm(n)&&!zp(n)?r:n||function(e){let t=Bp(e);for(;Np(t)&&!Fp(t);){if(zp(t))return t;if(Lp(t))return null;t=Bp(t)}return null}(e)||r}const om={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=Sp(n),s=!!t&&Lp(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},A=uh(1);const c=uh(0),u=Np(n);if((u||!u&&!i)&&(("body"!==jp(n)||Dp(a))&&(l=Wp(n)),Np(n))){const e=Kh(n);A=Hh(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}const f=!a||u||i?uh(0):Jh(a,l,!0);return{width:r.width*A.x,height:r.height*A.y,x:r.x*A.x-l.scrollLeft*A.x+c.x+f.x,y:r.y*A.y-l.scrollTop*A.y+c.y+f.y}},getDocumentElement:Sp,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?Lp(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=Up(e,[],!1).filter((e=>Pp(e)&&"body"!==jp(e))),o=null;const i="fixed"===Vp(e).position;let a=i?Bp(e):e;for(;Pp(a)&&!Fp(a);){const t=Vp(a),r=zp(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Dp(a)&&!r&&$h(e,a))?n=n.filter((e=>e!==a)):o=t,a=Bp(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=i[0],s=i.reduce(((e,r)=>{const n=_h(t,r,o);return e.top=lh(n.top,e.top),e.right=sh(n.right,e.right),e.bottom=sh(n.bottom,e.bottom),e.left=lh(n.left,e.left),e}),_h(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:nm,getElementRects:async function(e){const t=this.getOffsetParent||nm,r=this.getDimensions,n=await r(e.floating);return{reference:em(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=Yh(e);return{width:t,height:r}},getScale:Hh,isElement:Pp,isRTL:function(e){return"rtl"===Vp(e).direction}};function im(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function am(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,A=qh(e),c=o||i?[...A?Up(A):[],...Up(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)}));const u=A&&s?function(e,t){let r,n=null;const o=Sp(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const A=e.getBoundingClientRect(),{left:c,top:u,width:f,height:d}=A;if(s||t(),!f||!d)return;const p={rootMargin:-ch(u)+"px "+-ch(o.clientWidth-(c+f))+"px "+-ch(o.clientHeight-(u+d))+"px "+-ch(c)+"px",threshold:lh(0,sh(1,l))||1};let h=!0;function m(t){const n=t[0].intersectionRatio;if(n!==l){if(!h)return a();n?a(!1,n):r=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==n||im(A,e.getBoundingClientRect())||a(),h=!1}try{n=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(m,p)}n.observe(e)}(!0),i}(A,r):null;let f,d=-1,p=null;a&&(p=new ResizeObserver((e=>{let[n]=e;n&&n.target===A&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),r()})),A&&!l&&p.observe(A),p.observe(t));let h=l?Kh(e):null;return l&&function t(){const n=Kh(e);h&&!im(h,n)&&r(),h=n,f=requestAnimationFrame(t)}(),r(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)})),null==u||u(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const sm=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),a=mh(r),s=gh(r),l="y"===bh(r),A=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,u=hh(t,e);let{mainAxis:f,crossAxis:d,alignmentAxis:p}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof p&&(d="end"===s?-1*p:p),l?{x:d*c,y:f*A}:{x:f*A,y:d*c}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},lm=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=hh(e,t),A={x:r,y:n},c=await Uh(t,l),u=bh(mh(o)),f=yh(u);let d=A[f],p=A[u];if(i){const e="y"===f?"bottom":"right";d=ph(d+c["y"===f?"top":"left"],d,d-c[e])}if(a){const e="y"===u?"bottom":"right";p=ph(p+c["y"===u?"top":"left"],p,p-c[e])}const h=s.fn({...t,[f]:d,[u]:p});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[f]:i,[u]:a}}}}}},Am=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:A}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...m}=hh(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const g=mh(o),y=bh(s),v=mh(s)===s,b=await(null==l.isRTL?void 0:l.isRTL(A.floating)),w=f||(v||!h?[Ch(s)]:function(e){const t=Ch(e);return[xh(e),t,xh(t)]}(s)),x="none"!==p;!f&&x&&w.push(...function(e,t,r,n){const o=gh(e);let i=function(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}(mh(e),"start"===r,n);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(xh)))),i}(s,h,p,b));const C=[s,...w],M=await Uh(t,m),E=[];let j=(null==(n=i.flip)?void 0:n.overflows)||[];if(c&&E.push(M[g]),u){const e=function(e,t,r){void 0===r&&(r=!1);const n=gh(e),o=wh(e),i=vh(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ch(a)),[a,Ch(a)]}(o,a,b);E.push(M[e[0]],M[e[1]])}if(j=[...j,{placement:o,overflows:E}],!E.every((e=>e<=0))){var O,S;const e=((null==(O=i.flip)?void 0:O.index)||0)+1,t=C[e];if(t){var k;const r="alignment"===u&&y!==bh(t),n=(null==(k=j[0])?void 0:k.overflows[0])>0;if(!r||n)return{data:{index:e,overflows:j},reset:{placement:t}}}let r=null==(S=j.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:S.placement;if(!r)switch(d){case"bestFit":{var P;const e=null==(P=j.filter((e=>{if(x){const t=bh(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},cm=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...A}=hh(e,t),c=await Uh(t,A),u=mh(o),f=gh(o),d="y"===bh(o),{width:p,height:h}=i.floating;let m,g;"top"===u||"bottom"===u?(m=u,g=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,m="end"===f?"top":"bottom");const y=h-c.top-c.bottom,v=p-c.left-c.right,b=sh(h-c[m],y),w=sh(p-c[g],v),x=!t.middlewareData.shift;let C=b,M=w;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(M=v),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(C=y),x&&!f){const e=lh(c.left,0),t=lh(c.right,0),r=lh(c.top,0),n=lh(c.bottom,0);d?M=p-2*(0!==e||0!==t?e+t:lh(c.left,c.right)):C=h-2*(0!==r||0!==n?r+n:lh(c.top,c.bottom))}await l({...t,availableWidth:M,availableHeight:C});const E=await a.getDimensions(s.floating);return p!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}},um=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:A,padding:c=0}=hh(e,t)||{};if(null==A)return{};const u=Mh(c),f={x:r,y:n},d=wh(o),p=vh(d),h=await a.getDimensions(A),m="y"===d,g=m?"top":"left",y=m?"bottom":"right",v=m?"clientHeight":"clientWidth",b=i.reference[p]+i.reference[d]-f[d]-i.floating[p],w=f[d]-i.reference[d],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(A));let C=x?x[v]:0;C&&await(null==a.isElement?void 0:a.isElement(x))||(C=s.floating[v]||i.floating[p]);const M=b/2-w/2,E=C/2-h[p]/2-1,j=sh(u[g],E),O=sh(u[y],E),S=j,k=C-h[p]-O,P=C/2-h[p]/2+M,N=ph(S,P,k),T=!l.arrow&&null!=gh(o)&&P!==N&&i.reference[p]/2-(P{const n=new Map,o={platform:om,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let A=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=Xh(A,n,l),f=n,d={},p=0;for(let r=0;r{t.current=e})),t}const ym=e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&function(e){return{}.hasOwnProperty.call(e,"current")}(r)?null!=r.current?um({element:r.current,padding:n}).fn(t):{}:r?um({element:r,padding:n}).fn(t):{}}}),vm=(e,t)=>({...sm(e),options:[e,t]}),bm=(e,t)=>({...Am(e),options:[e,t]}),wm=(e,t)=>({...ym(e),options:[e,t]}),xm={...s},Cm=xm.useInsertionEffect||(e=>e());function Mm(e){const t=a.useRef((()=>{}));return Cm((()=>{t.current=e})),a.useCallback((function(){for(var e=arguments.length,r=new Array(e),n=0;n=e.current.length}function Nm(e,t){return Dm(e,{disabledIndices:t})}function Tm(e,t){return Dm(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Dm(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t;const a=e.current;let s=r;do{s+=n?-i:i}while(s>=0&&s<=a.length-1&&zm(a,s,o));return s}function Im(e,t,r,n,o){if(-1===e)return-1;const i=r.indexOf(e),a=t[e];switch(o){case"tl":return i;case"tr":return a?i+a.width-1:i;case"bl":return a?i+(a.height-1)*n:i;case"br":return r.lastIndexOf(e)}}function Lm(e,t){return t.flatMap(((t,r)=>e.includes(t)?[r]:[]))}function zm(e,t,r){if(r)return r.includes(t);const n=e[t];return null==n||n.hasAttribute("disabled")||"true"===n.getAttribute("aria-disabled")}var Rm="undefined"!=typeof document?a.useLayoutEffect:a.useEffect;function Fm(){return Fm=Object.assign?Object.assign.bind():function(e){for(var t=1;t"floating-ui-"+Math.random().toString(36).slice(2,6)+Wm++,Xm=xm.useId||function(){const[e,t]=a.useState((()=>Vm?Bm():void 0));return Rm((()=>{null==e&&t(Bm())}),[]),a.useEffect((()=>{Vm=!0}),[]),e},Um=a.forwardRef((function(e,t){const{context:{placement:r,elements:{floating:n},middlewareData:{arrow:o,shift:i}},width:s=14,height:l=7,tipRadius:A=0,strokeWidth:c=0,staticOffset:u,stroke:f,d,style:{transform:p,...h}={},...m}=e,g=Xm(),[y,v]=a.useState(!1);if(Rm((()=>{n&&"rtl"===Vp(n).direction&&v(!0)}),[n]),!n)return null;const[b,w]=r.split("-"),x="top"===b||"bottom"===b;let C=u;(x&&null!=i&&i.x||!x&&null!=i&&i.y)&&(C=null);const M=2*c,E=M/2,j=s/2*(A/-8+1),O=l/2*A/4,S=!!d,k=C&&"end"===w?"bottom":"top";let P=C&&"end"===w?"right":"left";C&&y&&(P="end"===w?"left":"right");const N=null!=(null==o?void 0:o.x)?C||o.x:"",T=null!=(null==o?void 0:o.y)?C||o.y:"",D=d||"M0,0 H"+s+" L"+(s-j)+","+(l-O)+" Q"+s/2+","+l+" "+j+","+(l-O)+" Z",I={top:S?"rotate(180deg)":"",left:S?"rotate(90deg)":"rotate(-90deg)",bottom:S?"":"rotate(180deg)",right:S?"rotate(-90deg)":"rotate(90deg)"}[b];return a.createElement("svg",Fm({},m,{"aria-hidden":!0,ref:t,width:S?s:s+M,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[P]:N,[k]:T,[b]:x||S?"100%":"calc(100% - "+M/2+"px)",transform:[I,p].filter((e=>!!e)).join(" "),...h}}),M>0&&a.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:f,strokeWidth:M+(d?0:1),d:D}),a.createElement("path",{stroke:M&&!d?m.fill:"none",d:D}),a.createElement("clipPath",{id:g},a.createElement("rect",{x:-E,y:E*(S?-1:1),width:s+M,height:s})))}));const Ym=a.createContext(null),qm=a.createContext(null),Hm=()=>{var e;return(null==(e=a.useContext(Ym))?void 0:e.id)||null},Zm=()=>a.useContext(qm);function Gm(e){return"data-floating-ui-"+e}function Km(e){const t=(0,a.useRef)(e);return Rm((()=>{t.current=e})),t}const Qm=Gm("safe-polygon");function Jm(e,t,r){return r&&!eh(r)?0:"number"==typeof e?e:null==e?void 0:e[t]}let _m=0;function $m(e,t){void 0===t&&(t={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=t;n&&cancelAnimationFrame(_m);const i=()=>null==e?void 0:e.focus({preventScroll:r});o?i():_m=requestAnimationFrame(i)}function eg(e,t){let r=e.filter((e=>{var r;return e.parentId===t&&(null==(r=e.context)?void 0:r.open)})),n=r;for(;n.length;)n=e.filter((e=>{var t;return null==(t=n)?void 0:t.some((t=>{var r;return e.parentId===t.id&&(null==(r=e.context)?void 0:r.open)}))})),r=r.concat(n);return r}let tg=new WeakMap,rg=new WeakSet,ng={},og=0;const ig=e=>e&&(e.host||ig(e.parentNode));function ag(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);const n=th(e[0]).body;return function(e,t,r,n){const o="data-floating-ui-inert",i=n?"inert":r?"aria-hidden":null,a=(s=t,e.map((e=>{if(s.contains(e))return e;const t=ig(e);return s.contains(t)?t:null})).filter((e=>null!=e)));var s;const l=new Set,A=new Set(a),c=[];ng[o]||(ng[o]=new WeakMap);const u=ng[o];return a.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!A.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==jp(t))if(l.has(t))e(t);else{const e=i?t.getAttribute(i):null,r=null!==e&&"false"!==e,n=(tg.get(t)||0)+1,a=(u.get(t)||0)+1;tg.set(t,n),u.set(t,a),c.push(t),1===n&&r&&rg.add(t),1===a&&t.setAttribute(o,""),!r&&i&&t.setAttribute(i,"true")}}))}(t),l.clear(),og++,()=>{c.forEach((e=>{const t=(tg.get(e)||0)-1,r=(u.get(e)||0)-1;tg.set(e,t),u.set(e,r),t||(!rg.has(e)&&i&&e.removeAttribute(i),rg.delete(e)),r||e.removeAttribute(o)})),og--,og||(tg=new WeakMap,tg=new WeakMap,rg=new WeakSet,ng={})}}(e.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,t,r)}const sg=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function lg(e,t){const r=Bh(e,sg());"prev"===t&&r.reverse();const n=r.indexOf(qp(th(e)));return r.slice(n+1)[0]}function Ag(){return lg(document.body,"next")}function cg(){return lg(document.body,"prev")}function ug(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!Hp(r,n)}function fg(e){Bh(e,sg()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function dg(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const pg={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function hg(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const mg=a.forwardRef((function(e,t){const[r,n]=a.useState();Rm((()=>(Jp()&&n("button"),document.addEventListener("keydown",hg),()=>{document.removeEventListener("keydown",hg)})),[]);const o={ref:t,tabIndex:0,role:r,"aria-hidden":!r||void 0,[Gm("focus-guard")]:"",style:pg};return a.createElement("span",Fm({},e,o))})),gg=a.createContext(null),yg=Gm("portal");function vg(e){const{children:t,id:r,root:n,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:r}=e,n=Xm(),o=bg(),[i,s]=a.useState(null),l=a.useRef(null);return Rm((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{l.current=null}))}),[i]),Rm((()=>{if(!n)return;if(l.current)return;const e=t?document.getElementById(t):null;if(!e)return;const r=document.createElement("div");r.id=n,r.setAttribute(yg,""),e.appendChild(r),l.current=r,s(r)}),[t,n]),Rm((()=>{if(null===r)return;if(!n)return;if(l.current)return;let e=r||(null==o?void 0:o.portalNode);e&&!Pp(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const a=document.createElement("div");a.id=n,a.setAttribute(yg,""),e=i||e,e.appendChild(a),l.current=a,s(a)}),[t,r,n,o]),i}({id:r,root:n}),[s,l]=a.useState(null),c=a.useRef(null),u=a.useRef(null),f=a.useRef(null),d=a.useRef(null),p=null==s?void 0:s.modal,h=null==s?void 0:s.open,m=!!s&&!s.modal&&s.open&&o&&!(!n&&!i);return a.useEffect((()=>{if(i&&o&&!p)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&ug(e)&&("focusin"===e.type?dg:fg)(i)}}),[i,o,p]),a.useEffect((()=>{i&&(h||dg(i))}),[h,i]),a.createElement(gg.Provider,{value:a.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:f,afterInsideRef:d,portalNode:i,setFocusManagerState:l})),[o,i])},m&&i&&a.createElement(mg,{"data-type":"outside",ref:c,onFocus:e=>{if(ug(e,i)){var t;null==(t=f.current)||t.focus()}else{const e=cg()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),m&&i&&a.createElement("span",{"aria-owns":i.id,style:pg}),i&&A.createPortal(t,i),m&&i&&a.createElement(mg,{"data-type":"outside",ref:u,onFocus:e=>{if(ug(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=Ag()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const bg=()=>a.useContext(gg),wg="data-floating-ui-focusable";function xg(e){return e?e.hasAttribute(wg)?e:e.querySelector("["+wg+"]")||e:null}let Cg=[];function Mg(e){Cg=Cg.filter((e=>e.isConnected));let t=e;if(t&&"body"!==jp(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Sh.call(e,jh)&&Fh(t,e)}(t,sg())){const e=Bh(t,sg())[0];e&&(t=e)}Cg.push(t),Cg.length>20&&(Cg=Cg.slice(-20))}}function Eg(){return Cg.slice().reverse().find((e=>e.isConnected))}const jg=a.forwardRef((function(e,t){return a.createElement("button",Fm({},e,{type:"button",ref:t,tabIndex:-1,style:pg}))}));function Og(e){const{context:t,children:r,disabled:n=!1,order:o=["content"],guards:i=!0,initialFocus:s=0,returnFocus:l=!0,restoreFocus:A=!1,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:f=!0}=e,{open:d,refs:p,nodeId:h,onOpenChange:m,events:g,dataRef:y,floatingId:v,elements:{domReference:b,floating:w}}=t,x="number"==typeof s&&s<0,C=ah(b)&&x,M="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||i,E=Km(o),j=Km(s),O=Km(l),S=Zm(),k=bg(),P=a.useRef(null),N=a.useRef(null),T=a.useRef(!1),D=a.useRef(!1),I=a.useRef(-1),L=null!=k,z=xg(w),R=Mm((function(e){return void 0===e&&(e=z),e?Bh(e,sg()):[]})),F=Mm((e=>{const t=R(e);return E.current.map((e=>b&&"reference"===e?b:z&&"floating"===e?z:t)).filter(Boolean).flat()}));function V(e){return!n&&u&&c?a.createElement(jg,{ref:"start"===e?P:N,onClick:e=>m(!1,e.nativeEvent)},"string"==typeof u?u:"Dismiss"):null}a.useEffect((()=>{if(n)return;if(!c)return;function e(e){if("Tab"===e.key){Hp(z,qp(th(z)))&&0===R().length&&!C&&ih(e);const t=F(),r=nh(e);"reference"===E.current[0]&&r===b&&(ih(e),e.shiftKey?$m(t[t.length-1]):$m(t[1])),"floating"===E.current[1]&&r===z&&e.shiftKey&&(ih(e),$m(t[0]))}}const t=th(z);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[n,b,z,c,E,C,R,F]),a.useEffect((()=>{if(!n&&w)return w.addEventListener("focusin",e),()=>{w.removeEventListener("focusin",e)};function e(e){const t=nh(e),r=R().indexOf(t);-1!==r&&(I.current=r)}}),[n,w,R]),a.useEffect((()=>{if(!n&&f)return w&&Np(b)?(b.addEventListener("focusout",t),b.addEventListener("pointerdown",e),w.addEventListener("focusout",t),()=>{b.removeEventListener("focusout",t),b.removeEventListener("pointerdown",e),w.removeEventListener("focusout",t)}):void 0;function e(){D.current=!0,setTimeout((()=>{D.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const r=!(Hp(b,t)||Hp(w,t)||Hp(t,w)||Hp(null==k?void 0:k.portalNode,t)||null!=t&&t.hasAttribute(Gm("focus-guard"))||S&&(eg(S.nodesRef.current,h).find((e=>{var r,n;return Hp(null==(r=e.context)?void 0:r.elements.floating,t)||Hp(null==(n=e.context)?void 0:n.elements.domReference,t)}))||function(e,t){var r;let n=[],o=null==(r=e.find((e=>e.id===t)))?void 0:r.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(n=n.concat(t))}return n}(S.nodesRef.current,h).find((e=>{var r,n;return(null==(r=e.context)?void 0:r.elements.floating)===t||(null==(n=e.context)?void 0:n.elements.domReference)===t}))));if(A&&r&&qp(th(z))===th(z).body){Np(z)&&z.focus();const e=I.current,t=R(),r=t[e]||t[t.length-1]||z;Np(r)&&r.focus()}!C&&c||!t||!r||D.current||t===Eg()||(T.current=!0,m(!1,e,"focus-out"))}))}}),[n,b,w,z,c,h,S,k,m,f,A,R,C]),a.useEffect((()=>{var e;if(n)return;const t=Array.from((null==k||null==(e=k.portalNode)?void 0:e.querySelectorAll("["+Gm("portal")+"]"))||[]);if(w){const e=[w,...t,P.current,N.current,E.current.includes("reference")||C?b:null].filter((e=>null!=e)),r=c||C?ag(e,M,!M):ag(e);return()=>{r()}}}),[n,b,w,c,E,k,C,M]),Rm((()=>{if(n||!Np(z))return;const e=qp(th(z));queueMicrotask((()=>{const t=F(z),r=j.current,n=("number"==typeof r?t[r]:r.current)||z,o=Hp(z,e);x||o||!d||$m(n,{preventScroll:n===z})}))}),[n,d,z,x,F,j]),Rm((()=>{if(n||!z)return;let e=!1;const t=th(z),r=qp(t);let o=y.current.openEvent;function i(t){let{open:r,reason:n,event:i,nested:a}=t;r&&(o=i),"escape-key"===n&&p.domReference.current&&Mg(p.domReference.current),"hover"===n&&"mouseleave"===i.type&&(T.current=!0),"outside-press"===n&&(a?(T.current=!1,e=!0):T.current=!(Kp(i)||Qp(i)))}Mg(r),g.on("openchange",i);const a=t.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,pg),L&&b&&b.insertAdjacentElement("afterend",a),()=>{g.off("openchange",i);const r=qp(t),n=Hp(w,r)||S&&eg(S.nodesRef.current,h).some((e=>{var t;return Hp(null==(t=e.context)?void 0:t.elements.floating,r)}));(n||o&&["click","mousedown"].includes(o.type))&&p.domReference.current&&Mg(p.domReference.current);const s="boolean"==typeof O.current?Eg()||a:O.current.current||a;queueMicrotask((()=>{O.current&&!T.current&&Np(s)&&(s===r||r===t.body||n)&&s.focus({preventScroll:e}),a.remove()}))}}),[n,w,z,O,y,p,g,S,h,L,b]),a.useEffect((()=>{queueMicrotask((()=>{T.current=!1}))}),[n]),Rm((()=>{if(!n&&k)return k.setFocusManagerState({modal:c,closeOnFocusOut:f,open:d,onOpenChange:m,refs:p}),()=>{k.setFocusManagerState(null)}}),[n,k,c,d,m,p,f]),Rm((()=>{if(n)return;if(!z)return;if("function"!=typeof MutationObserver)return;if(x)return;const e=()=>{const e=z.getAttribute("tabindex"),t=R(),r=qp(th(w)),n=t.indexOf(r);-1!==n&&(I.current=n),E.current.includes("floating")||r!==p.domReference.current&&0===t.length?"0"!==e&&z.setAttribute("tabindex","0"):"-1"!==e&&z.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(z,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[n,w,z,p,E,R,x]);const W=!n&&M&&(!c||!C)&&(L||c);return a.createElement(a.Fragment,null,W&&a.createElement(mg,{"data-type":"inside",ref:null==k?void 0:k.beforeInsideRef,onFocus:e=>{if(c){const e=F();$m("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=k&&k.preserveTabOrder&&k.portalNode)if(T.current=!1,ug(e,k.portalNode)){const e=Ag()||b;null==e||e.focus()}else{var t;null==(t=k.beforeOutsideRef.current)||t.focus()}}}),!C&&V("start"),r,V("end"),W&&a.createElement(mg,{"data-type":"inside",ref:null==k?void 0:k.afterInsideRef,onFocus:e=>{if(c)$m(F()[0]);else if(null!=k&&k.preserveTabOrder&&k.portalNode)if(f&&(T.current=!0),ug(e,k.portalNode)){const e=cg()||b;null==e||e.focus()}else{var t;null==(t=k.afterOutsideRef.current)||t.focus()}}}))}function Sg(e){return Np(e.target)&&"BUTTON"===e.target.tagName}function kg(e){return oh(e)}function Pg(e,t){void 0===t&&(t={});const{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=e,{enabled:s=!0,event:l="click",toggle:A=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:f=!0}=t,d=a.useRef(),p=a.useRef(!1),h=a.useMemo((()=>({onPointerDown(e){d.current=e.pointerType},onMouseDown(e){const t=d.current;0===e.button&&"click"!==l&&(eh(t,!0)&&c||(!r||!A||o.current.openEvent&&f&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),n(!0,e.nativeEvent,"click")):n(!1,e.nativeEvent,"click")))},onClick(e){const t=d.current;"mousedown"===l&&d.current?d.current=void 0:eh(t,!0)&&c||(!r||!A||o.current.openEvent&&f&&"click"!==o.current.openEvent.type?n(!0,e.nativeEvent,"click"):n(!1,e.nativeEvent,"click"))},onKeyDown(e){d.current=void 0,e.defaultPrevented||!u||Sg(e)||(" "!==e.key||kg(i)||(e.preventDefault(),p.current=!0),"Enter"===e.key&&n(!r||!A,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||Sg(e)||kg(i)||" "===e.key&&p.current&&(p.current=!1,n(!r||!A,e.nativeEvent,"click"))}})),[o,i,l,c,u,n,r,f,A]);return a.useMemo((()=>s?{reference:h}:{}),[s,h])}const Ng={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Tg={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Dg=e=>{var t,r;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(r=null==e?void 0:e.outsidePress)||r}};function Ig(e,t){void 0===t&&(t={});const{open:r,onOpenChange:n,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:l=!0,outsidePress:A=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:f="pointerdown",ancestorScroll:d=!1,bubbles:p,capture:h}=t,m=Zm(),g=Mm("function"==typeof A?A:()=>!1),y="function"==typeof A?g:A,v=a.useRef(!1),b=a.useRef(!1),{escapeKey:w,outsidePress:x}=Dg(p),{escapeKey:C,outsidePress:M}=Dg(h),E=a.useRef(!1),j=Mm((e=>{var t;if(!r||!s||!l||"Escape"!==e.key)return;if(E.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,a=m?eg(m.nodesRef.current,o):[];if(!w&&(e.stopPropagation(),a.length>0)){let e=!0;if(a.forEach((t=>{var r;null==(r=t.context)||!r.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}n(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),O=Mm((e=>{var t;const r=()=>{var t;j(e),null==(t=nh(e))||t.removeEventListener("keydown",r)};null==(t=nh(e))||t.addEventListener("keydown",r)})),S=Mm((e=>{var t;const r=v.current;v.current=!1;const a=b.current;if(b.current=!1,"click"===c&&a)return;if(r)return;if("function"==typeof y&&!y(e))return;const s=nh(e),l="["+Gm("inert")+"]",A=th(o.floating).querySelectorAll(l);let u=Pp(s)?s:null;for(;u&&!Fp(u);){const e=Bp(u);if(Fp(e)||!Pp(e))break;u=e}if(A.length&&Pp(s)&&!s.matches("html,body")&&!Hp(s,o.floating)&&Array.from(A).every((e=>!Hp(u,e))))return;if(Np(s)&&N){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,r=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let n=r&&e.offsetX>s.clientWidth;if(r&&"rtl"===Vp(s).direction&&(n=e.offsetX<=s.offsetWidth-s.clientWidth),n||t&&e.offsetY>s.clientHeight)return}const f=null==(t=i.current.floatingContext)?void 0:t.nodeId,d=m&&eg(m.nodesRef.current,f).some((t=>{var r;return rh(e,null==(r=t.context)?void 0:r.elements.floating)}));if(rh(e,o.floating)||rh(e,o.domReference)||d)return;const p=m?eg(m.nodesRef.current,f):[];if(p.length>0){let e=!0;if(p.forEach((t=>{var r;null==(r=t.context)||!r.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}n(!1,e,"outside-press")})),k=Mm((e=>{var t;const r=()=>{var t;S(e),null==(t=nh(e))||t.removeEventListener(c,r)};null==(t=nh(e))||t.addEventListener(c,r)}));a.useEffect((()=>{if(!r||!s)return;i.current.__escapeKeyBubbles=w,i.current.__outsidePressBubbles=x;let e=-1;function t(e){n(!1,e,"ancestor-scroll")}function a(){window.clearTimeout(e),E.current=!0}function A(){e=window.setTimeout((()=>{E.current=!1}),Rp()?5:0)}const u=th(o.floating);l&&(u.addEventListener("keydown",C?O:j,C),u.addEventListener("compositionstart",a),u.addEventListener("compositionend",A)),y&&u.addEventListener(c,M?k:S,M);let f=[];return d&&(Pp(o.domReference)&&(f=Up(o.domReference)),Pp(o.floating)&&(f=f.concat(Up(o.floating))),!Pp(o.reference)&&o.reference&&o.reference.contextElement&&(f=f.concat(Up(o.reference.contextElement)))),f=f.filter((e=>{var t;return e!==(null==(t=u.defaultView)?void 0:t.visualViewport)})),f.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{l&&(u.removeEventListener("keydown",C?O:j,C),u.removeEventListener("compositionstart",a),u.removeEventListener("compositionend",A)),y&&u.removeEventListener(c,M?k:S,M),f.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,l,y,c,r,n,d,s,w,x,j,C,O,S,M,k]),a.useEffect((()=>{v.current=!1}),[y,c]);const P=a.useMemo((()=>({onKeyDown:j,[Ng[f]]:e=>{u&&n(!1,e.nativeEvent,"reference-press")}})),[j,n,u,f]),N=a.useMemo((()=>({onKeyDown:j,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[Tg[c]]:()=>{v.current=!0}})),[j,c]);return a.useMemo((()=>s?{reference:P,floating:N}:{}),[s,P,N])}function Lg(e){void 0===e&&(e={});const{nodeId:t}=e,r=function(e){const{open:t=!1,onOpenChange:r,elements:n}=e,o=Xm(),i=a.useRef({}),[s]=a.useState((()=>function(){const e=new Map;return{emit(t,r){var n;null==(n=e.get(t))||n.forEach((e=>e(r)))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter((e=>e!==r)))||[])}}}())),l=null!=Hm(),[A,c]=a.useState(n.reference),u=Mm(((e,t,n)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:n,nested:l}),null==r||r(e,t,n)})),f=a.useMemo((()=>({setPositionReference:c})),[]),d=a.useMemo((()=>({reference:A||n.reference||null,floating:n.floating||null,domReference:n.reference})),[A,n.reference,n.floating]);return a.useMemo((()=>({dataRef:i,open:t,onOpenChange:u,elements:d,events:s,floatingId:o,refs:f})),[t,u,d,s,o,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,o=n.elements,[i,s]=a.useState(null),[l,c]=a.useState(null),u=(null==o?void 0:o.domReference)||i,f=a.useRef(null),d=Zm();Rm((()=>{u&&(f.current=u)}),[u]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[f,d]=a.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=a.useState(n);pm(p,n)||h(n);const[m,g]=a.useState(null),[y,v]=a.useState(null),b=a.useCallback((e=>{e!==M.current&&(M.current=e,g(e))}),[]),w=a.useCallback((e=>{e!==E.current&&(E.current=e,v(e))}),[]),x=i||m,C=s||y,M=a.useRef(null),E=a.useRef(null),j=a.useRef(f),O=null!=c,S=gm(c),k=gm(o),P=gm(u),N=a.useCallback((()=>{if(!M.current||!E.current)return;const e={placement:t,strategy:r,middleware:p};k.current&&(e.platform=k.current),fm(M.current,E.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};T.current&&!pm(j.current,t)&&(j.current=t,A.flushSync((()=>{d(t)})))}))}),[p,t,r,k,P]);dm((()=>{!1===u&&j.current.isPositioned&&(j.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[u]);const T=a.useRef(!1);dm((()=>(T.current=!0,()=>{T.current=!1})),[]),dm((()=>{if(x&&(M.current=x),C&&(E.current=C),x&&C){if(S.current)return S.current(x,C,N);N()}}),[x,C,N,S,O]);const D=a.useMemo((()=>({reference:M,floating:E,setReference:b,setFloating:w})),[b,w]),I=a.useMemo((()=>({reference:x,floating:C})),[x,C]),L=a.useMemo((()=>{const e={position:r,left:0,top:0};if(!I.floating)return e;const t=mm(I.floating,f.x),n=mm(I.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...hm(I.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,l,I.floating,f.x,f.y]);return a.useMemo((()=>({...f,update:N,refs:D,elements:I,floatingStyles:L})),[f,N,D,I,L])}({...e,elements:{...o,...l&&{reference:l}}}),h=a.useCallback((e=>{const t=Pp(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),p.refs.setReference(t)}),[p.refs]),m=a.useCallback((e=>{(Pp(e)||null===e)&&(f.current=e,s(e)),(Pp(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Pp(e))&&p.refs.setReference(e)}),[p.refs]),g=a.useMemo((()=>({...p.refs,setReference:m,setPositionReference:h,domReference:f})),[p.refs,m,h]),y=a.useMemo((()=>({...p.elements,domReference:u})),[p.elements,u]),v=a.useMemo((()=>({...p,...n,refs:g,elements:y,nodeId:t})),[p,g,y,t,n]);return Rm((()=>{n.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),a.useMemo((()=>({...p,context:v,refs:g,elements:y})),[p,g,y,v])}const zg="active",Rg="selected";function Fg(e,t,r){const n=new Map,o="item"===r;let i=e;if(o&&e){const{[zg]:t,[Rg]:r,...n}=e;i=n}return{..."floating"===r&&{tabIndex:-1,[wg]:""},...i,...t.map((t=>{const n=t?t[r]:null;return"function"==typeof n?e?n(e):null:n})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[r,i]=t;var a;o&&[zg,Rg].includes(r)||(0===r.indexOf("on")?(n.has(r)||n.set(r,[]),"function"==typeof i&&(null==(a=n.get(r))||a.push(i),e[r]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;ie(...o))).find((e=>void 0!==e))})):e[r]=i)})),e):e),{})}}function Vg(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),r=e.map((e=>null==e?void 0:e.floating)),n=e.map((e=>null==e?void 0:e.item)),o=a.useCallback((t=>Fg(t,e,"reference")),t),i=a.useCallback((t=>Fg(t,e,"floating")),r),s=a.useCallback((t=>Fg(t,e,"item")),n);return a.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s})),[o,i,s])}let Wg=!1;function Bg(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function Xg(e,t){return Bg(t,e===Em||e===jm,e===Om||e===Sm)}function Ug(e,t,r){return Bg(t,e===jm,r?e===Om:e===Sm)||"Enter"===e||" "===e||""===e}function Yg(e,t,r){return Bg(t,r?e===Sm:e===Om,e===Em)}function qg(e,t){const{open:r,onOpenChange:n,elements:o}=e,{listRef:i,activeIndex:s,onNavigate:l=()=>{},enabled:A=!0,selectedIndex:c=null,allowEscape:u=!1,loop:f=!1,nested:d=!1,rtl:p=!1,virtual:h=!1,focusItemOnOpen:m="auto",focusItemOnHover:g=!0,openOnArrowKeyDown:y=!0,disabledIndices:v,orientation:b="vertical",cols:w=1,scrollItemIntoView:x=!0,virtualItemRef:C,itemSizes:M,dense:E=!1}=t,j=Km(xg(o.floating)),O=Hm(),S=Zm(),k=Mm(l),P=ah(o.domReference),N=a.useRef(m),T=a.useRef(null!=c?c:-1),D=a.useRef(null),I=a.useRef(!0),L=a.useRef(k),z=a.useRef(!!o.floating),R=a.useRef(r),F=a.useRef(!1),V=a.useRef(!1),W=Km(v),B=Km(r),X=Km(x),U=Km(c),[Y,q]=a.useState(),[H,Z]=a.useState(),G=Mm((function(e,t,r){function n(e){h?(q(e.id),null==S||S.events.emit("virtualfocus",e),C&&(C.current=e)):$m(e,{preventScroll:!0,sync:!(!$p()||!Jp())&&(Wg||F.current)})}void 0===r&&(r=!1);const o=e.current[t.current];o&&n(o),requestAnimationFrame((()=>{const i=e.current[t.current]||o;if(!i)return;o||n(i);const a=X.current;a&&Q&&(r||!I.current)&&(null==i.scrollIntoView||i.scrollIntoView("boolean"==typeof a?{block:"nearest",inline:"nearest"}:a))}))}));Rm((()=>{document.createElement("div").focus({get preventScroll(){return Wg=!0,!1}})}),[]),Rm((()=>{A&&(r&&o.floating?N.current&&null!=c&&(V.current=!0,T.current=c,k(c)):z.current&&(T.current=-1,L.current(null)))}),[A,r,o.floating,c,k]),Rm((()=>{if(A&&r&&o.floating)if(null==s){if(F.current=!1,null!=U.current)return;if(z.current&&(T.current=-1,G(i,T)),(!R.current||!z.current)&&N.current&&(null!=D.current||!0===N.current&&null==D.current)){let e=0;const t=()=>{null==i.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(T.current=null==D.current||Ug(D.current,b,p)||d?Nm(i,W.current):Tm(i,W.current),D.current=null,k(T.current))};t()}}else Pm(i,s)||(T.current=s,G(i,T,V.current),V.current=!1)}),[A,r,o.floating,s,U,d,i,b,p,k,G,W]),Rm((()=>{var e;if(!A||o.floating||!S||h||!z.current)return;const t=S.nodesRef.current,r=null==(e=t.find((e=>e.id===O)))||null==(e=e.context)?void 0:e.elements.floating,n=qp(th(o.floating)),i=t.some((e=>e.context&&Hp(e.context.elements.floating,n)));r&&!i&&I.current&&r.focus({preventScroll:!0})}),[A,o.floating,S,O,h]),Rm((()=>{if(A&&S&&h&&!O)return S.events.on("virtualfocus",e),()=>{S.events.off("virtualfocus",e)};function e(e){Z(e.id),C&&(C.current=e)}}),[A,S,h,O,C]),Rm((()=>{L.current=k,z.current=!!o.floating})),Rm((()=>{r||(D.current=null)}),[r]),Rm((()=>{R.current=r}),[r]);const K=null!=s,Q=a.useMemo((()=>{function e(e){if(!r)return;const t=i.current.indexOf(e);-1!==t&&k(t)}return{onFocus(t){let{currentTarget:r}=t;e(r)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...g&&{onMouseMove(t){let{currentTarget:r}=t;e(r)},onPointerLeave(e){let{pointerType:t}=e;I.current&&"touch"!==t&&(T.current=-1,G(i,T),k(null),h||$m(j.current,{preventScroll:!0}))}}}}),[r,j,G,g,i,k,h]),J=Mm((e=>{if(I.current=!1,F.current=!0,229===e.which)return;if(!B.current&&e.currentTarget===j.current)return;if(d&&Yg(e.key,b,p))return ih(e),n(!1,e.nativeEvent,"list-navigation"),void(Np(o.domReference)&&(h?null==S||S.events.emit("virtualfocus",o.domReference):o.domReference.focus()));const t=T.current,a=Nm(i,v),s=Tm(i,v);if(P||("Home"===e.key&&(ih(e),T.current=a,k(T.current)),"End"===e.key&&(ih(e),T.current=s,k(T.current))),w>1){const t=M||Array.from({length:i.current.length},(()=>({width:1,height:1}))),r=function(e,t,r){const n=[];let o=0;return e.forEach(((e,i)=>{let{width:a,height:s}=e,l=!1;for(r&&(o=0);!l;){const e=[];for(let r=0;rnull==n[e]))?(e.forEach((e=>{n[e]=i})),l=!0):o++}})),[...n]}(t,w,E),n=r.findIndex((e=>null!=e&&!zm(i.current,e,v))),o=r.reduce(((e,t,r)=>null==t||zm(i.current,t,v)?e:r),-1),l=r[function(e,t){let{event:r,orientation:n,loop:o,rtl:i,cols:a,disabledIndices:s,minIndex:l,maxIndex:A,prevIndex:c,stopEvent:u=!1}=t,f=c;if(r.key===Em){if(u&&ih(r),-1===c)f=A;else if(f=Dm(e,{startingIndex:f,amount:a,decrement:!0,disabledIndices:s}),o&&(c-ae?r:r-a}Pm(e,f)&&(f=c)}if(r.key===jm&&(u&&ih(r),-1===c?f=l:(f=Dm(e,{startingIndex:c,amount:a,disabledIndices:s}),o&&c+a>A&&(f=Dm(e,{startingIndex:c%a-a,amount:a,disabledIndices:s}))),Pm(e,f)&&(f=c)),"both"===n){const t=ch(c/a);r.key===(i?Om:Sm)&&(u&&ih(r),c%a!=a-1?(f=Dm(e,{startingIndex:c,disabledIndices:s}),o&&km(f,a,t)&&(f=Dm(e,{startingIndex:c-c%a-1,disabledIndices:s}))):o&&(f=Dm(e,{startingIndex:c-c%a-1,disabledIndices:s})),km(f,a,t)&&(f=c)),r.key===(i?Sm:Om)&&(u&&ih(r),c%a!=0?(f=Dm(e,{startingIndex:c,decrement:!0,disabledIndices:s}),o&&km(f,a,t)&&(f=Dm(e,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:s}))):o&&(f=Dm(e,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:s})),km(f,a,t)&&(f=c));const n=ch(A/a)===t;Pm(e,f)&&(f=o&&n?r.key===(i?Sm:Om)?A:Dm(e,{startingIndex:c-c%a-1,disabledIndices:s}):c)}return f}({current:r.map((e=>null!=e?i.current[e]:null))},{event:e,orientation:b,loop:f,rtl:p,cols:w,disabledIndices:Lm([...v||i.current.map(((e,t)=>zm(i.current,t)?t:void 0)),void 0],r),minIndex:n,maxIndex:o,prevIndex:Im(T.current>s?a:T.current,t,r,w,e.key===jm?"bl":e.key===(p?Om:Sm)?"tr":"tl"),stopEvent:!0})];if(null!=l&&(T.current=l,k(T.current)),"both"===b)return}if(Xg(e.key,b)){if(ih(e),r&&!h&&qp(e.currentTarget.ownerDocument)===e.currentTarget)return T.current=Ug(e.key,b,p)?a:s,void k(T.current);Ug(e.key,b,p)?T.current=f?t>=s?u&&t!==i.current.length?-1:a:Dm(i,{startingIndex:t,disabledIndices:v}):Math.min(s,Dm(i,{startingIndex:t,disabledIndices:v})):T.current=f?t<=a?u&&-1!==t?i.current.length:s:Dm(i,{startingIndex:t,decrement:!0,disabledIndices:v}):Math.max(a,Dm(i,{startingIndex:t,decrement:!0,disabledIndices:v})),Pm(i,T.current)?k(null):k(T.current)}})),_=a.useMemo((()=>h&&r&&K&&{"aria-activedescendant":H||Y}),[h,r,K,H,Y]),$=a.useMemo((()=>({"aria-orientation":"both"===b?void 0:b,...!ah(o.domReference)&&_,onKeyDown:J,onPointerMove(){I.current=!0}})),[_,J,o.domReference,b]),ee=a.useMemo((()=>{function e(e){"auto"===m&&Kp(e.nativeEvent)&&(N.current=!0)}return{..._,onKeyDown(e){I.current=!1;const t=e.key.startsWith("Arrow"),o=["Home","End"].includes(e.key),a=t||o,s=function(e,t,r){return Bg(t,r?e===Om:e===Sm,e===jm)}(e.key,b,p),l=Yg(e.key,b,p),A=Xg(e.key,b),u=(d?s:A)||"Enter"===e.key||""===e.key.trim();if(h&&r){const t=null==S?void 0:S.nodesRef.current.find((e=>null==e.parentId)),r=S&&t?function(e,t){let r,n=-1;return function t(o,i){i>n&&(r=o,n=i),eg(e,o).forEach((e=>{t(e.id,i+1)}))}(t,0),e.find((e=>e.id===r))}(S.nodesRef.current,t.id):null;if(a&&r&&C){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(s||l){var f,m;const n=(null==(f=r.context)?void 0:f.elements.domReference)===e.currentTarget,o=l&&!n?null==(m=r.context)?void 0:m.elements.domReference:s?i.current.find((e=>(null==e?void 0:e.id)===Y)):null;o&&(ih(e),o.dispatchEvent(t),Z(void 0))}var g;if((A||o)&&r.context&&r.context.open&&r.parentId&&e.currentTarget!==r.context.elements.domReference)return ih(e),void(null==(g=r.context.elements.domReference)||g.dispatchEvent(t))}return J(e)}(r||y||!t)&&(u&&(D.current=d&&A?null:e.key),d?s&&(ih(e),r?(T.current=Nm(i,W.current),k(T.current)):n(!0,e.nativeEvent,"list-navigation")):A&&(null!=c&&(T.current=c),ih(e),!r&&y?n(!0,e.nativeEvent,"list-navigation"):J(e),r&&k(T.current)))},onFocus(){r&&!h&&k(null)},onPointerDown:function(e){N.current=m,"auto"===m&&Qp(e.nativeEvent)&&(N.current=!0)},onMouseDown:e,onClick:e}}),[Y,_,J,W,m,i,d,k,n,r,y,b,p,c,S,h,C]);return a.useMemo((()=>A?{reference:ee,floating:$,item:Q}:{}),[A,ee,$,Q])}const Hg=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Zg(e,t){var r;void 0===t&&(t={});const{open:n,floatingId:o}=e,{enabled:i=!0,role:s="dialog"}=t,l=null!=(r=Hg.get(s))?r:s,A=Xm(),c=null!=Hm(),u=a.useMemo((()=>"tooltip"===l||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:n?o:void 0}:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":n?o:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:A},..."menu"===l&&c&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}}),[l,o,c,n,A,s]),f=a.useMemo((()=>{const e={id:o,...l&&{role:l}};return"tooltip"===l||"label"===s?e:{...e,..."menu"===l&&{"aria-labelledby":A}}}),[l,o,A,s]),d=a.useCallback((e=>{let{active:t,selected:r}=e;const n={role:"option",...t&&{id:o+"-option"}};switch(s){case"select":return{...n,"aria-selected":t&&r};case"combobox":return{...n,...t&&{"aria-selected":!0}}}return{}}),[o,s]);return a.useMemo((()=>i?{reference:u,floating:f,item:d}:{}),[i,u,f,d])}const Gg=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function Kg(e,t){return"function"==typeof e?e(t):e}function Qg(e,t){const[r,n]=e;let o=!1;const i=t.length;for(let e=0,a=i-1;e=n!=A>=n&&r<=(l-i)*(n-s)/(A-s)+i&&(o=!o)}return o}function Jg(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:r=!1,requireIntent:n=!0}=e;let o,i=!1,a=null,s=null,l=performance.now();const A=e=>{let{x:r,y:A,placement:c,elements:u,onClose:f,nodeId:d,tree:p}=e;return function(e){function h(){clearTimeout(o),f()}if(clearTimeout(o),!u.domReference||!u.floating||null==c||null==r||null==A)return;const{clientX:m,clientY:g}=e,y=[m,g],v=nh(e),b="mouseleave"===e.type,w=Hp(u.floating,v),x=Hp(u.domReference,v),C=u.domReference.getBoundingClientRect(),M=u.floating.getBoundingClientRect(),E=c.split("-")[0],j=r>M.right-M.width/2,O=A>M.bottom-M.height/2,S=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,C),k=M.width>C.width,P=M.height>C.height,N=(k?C:M).left,T=(k?C:M).right,D=(P?C:M).top,I=(P?C:M).bottom;if(w&&(i=!0,!b))return;if(x&&(i=!1),x&&!b)return void(i=!0);if(b&&Pp(e.relatedTarget)&&Hp(u.floating,e.relatedTarget))return;if(p&&eg(p.nodesRef.current,d).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===E&&A>=C.bottom-1||"bottom"===E&&A<=C.top+1||"left"===E&&r>=C.right-1||"right"===E&&r<=C.left+1)return h();let L=[];switch(E){case"top":L=[[N,C.top+1],[N,M.bottom-1],[T,M.bottom-1],[T,C.top+1]];break;case"bottom":L=[[N,M.top+1],[N,C.bottom-1],[T,C.bottom-1],[T,M.top+1]];break;case"left":L=[[M.right-1,I],[M.right-1,D],[C.left+1,D],[C.left+1,I]];break;case"right":L=[[C.right-1,I],[C.right-1,D],[M.left+1,D],[M.left+1,I]]}if(!Qg([m,g],L)){if(i&&!S)return h();if(!b&&n){const t=function(e,t){const r=performance.now(),n=r-l;if(null===a||null===s||0===n)return a=e,s=t,l=r,null;const o=e-a,i=t-s,A=Math.sqrt(o*o+i*i);return a=e,s=t,l=r,A/n}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}Qg([m,g],function(e){let[r,n]=e;switch(E){case"top":return[[k?r+t/2:j?r+4*t:r-4*t,n+t+1],[k?r-t/2:j?r+4*t:r-4*t,n+t+1],[M.left,j||k?M.bottom-t:M.top],[M.right,j?k?M.bottom-t:M.top:M.bottom-t]];case"bottom":return[[k?r+t/2:j?r+4*t:r-4*t,n-t],[k?r-t/2:j?r+4*t:r-4*t,n-t],[M.left,j||k?M.top+t:M.bottom],[M.right,j?k?M.top+t:M.bottom:M.top+t]];case"left":{const e=[r+t+1,P?n+t/2:O?n+4*t:n-4*t],o=[r+t+1,P?n-t/2:O?n+4*t:n-4*t];return[[O||P?M.right-t:M.left,M.top],[O?P?M.right-t:M.left:M.right-t,M.bottom],e,o]}case"right":return[[r-t,P?n+t/2:O?n+4*t:n-4*t],[r-t,P?n-t/2:O?n+4*t:n-4*t],[O||P?M.left+t:M.right,M.top],[O?P?M.left+t:M.right:M.left+t,M.bottom]]}}([r,A]))?!i&&n&&(o=window.setTimeout(h,40)):h()}}};return A.__options={blockPointerEvents:r},A}const _g=({variant:e="dark",placement:t="bottom",title:r="",content:n,arrow:o=!1,open:i,setOpen:s,children:l,className:A,tooltipPortalRoot:c,tooltipPortalId:u,boundary:f="clippingAncestors",strategy:d="fixed",offset:p=8,triggers:h=["hover","focus"],interactive:m=!1})=>{const g=(0,a.useMemo)((()=>"boolean"==typeof i&&"function"==typeof s),[i,s]),[y,v]=(0,a.useState)(!1),b=(0,a.useRef)(null),{refs:w,floatingStyles:x,context:C}=Lg({open:g?i:y,onOpenChange:g?s:v,placement:t,strategy:d,middleware:[vm(p),bm({boundary:f}),(L={boundary:f},{...lm(L),options:[L,undefined]}),wm({element:b})],whileElementsMounted:am}),M=Pg(C,{enabled:!g&&h.includes("click")}),E=function(e,t){void 0===t&&(t={});const{open:r,onOpenChange:n,dataRef:o,events:i,elements:s}=e,{enabled:l=!0,delay:A=0,handleClose:c=null,mouseOnly:u=!1,restMs:f=0,move:d=!0}=t,p=Zm(),h=Hm(),m=Km(c),g=Km(A),y=Km(r),v=a.useRef(),b=a.useRef(-1),w=a.useRef(),x=a.useRef(-1),C=a.useRef(!0),M=a.useRef(!1),E=a.useRef((()=>{})),j=a.useRef(!1),O=a.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);a.useEffect((()=>{if(l)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(b.current),clearTimeout(x.current),C.current=!0,j.current=!1)}}),[l,i]),a.useEffect((()=>{if(!l)return;if(!m.current)return;if(!r)return;function e(e){O()&&n(!1,e,"hover")}const t=th(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[s.floating,r,n,l,m,O]);const S=a.useCallback((function(e,t,r){void 0===t&&(t=!0),void 0===r&&(r="hover");const o=Jm(g.current,"close",v.current);o&&!w.current?(clearTimeout(b.current),b.current=window.setTimeout((()=>n(!1,e,r)),o)):t&&(clearTimeout(b.current),n(!1,e,r))}),[g,n]),k=Mm((()=>{E.current(),w.current=void 0})),P=Mm((()=>{if(M.current){const e=th(s.floating).body;e.style.pointerEvents="",e.removeAttribute(Qm),M.current=!1}})),N=Mm((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));a.useEffect((()=>{if(l&&Pp(s.domReference)){var e;const n=s.domReference;return r&&n.addEventListener("mouseleave",a),null==(e=s.floating)||e.addEventListener("mouseleave",a),d&&n.addEventListener("mousemove",t,{once:!0}),n.addEventListener("mouseenter",t),n.addEventListener("mouseleave",i),()=>{var e;r&&n.removeEventListener("mouseleave",a),null==(e=s.floating)||e.removeEventListener("mouseleave",a),d&&n.removeEventListener("mousemove",t),n.removeEventListener("mouseenter",t),n.removeEventListener("mouseleave",i)}}function t(e){if(clearTimeout(b.current),C.current=!1,u&&!eh(v.current)||f>0&&!Jm(g.current,"open"))return;const t=Jm(g.current,"open",v.current);t?b.current=window.setTimeout((()=>{y.current||n(!0,e,"hover")}),t):r||n(!0,e,"hover")}function i(e){if(N())return;E.current();const t=th(s.floating);if(clearTimeout(x.current),j.current=!1,m.current&&o.current.floatingContext){r||clearTimeout(b.current),w.current=m.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){P(),k(),N()||S(e,!0,"safe-polygon")}});const n=w.current;return t.addEventListener("mousemove",n),void(E.current=()=>{t.removeEventListener("mousemove",n)})}("touch"!==v.current||!Hp(s.floating,e.relatedTarget))&&S(e)}function a(e){N()||o.current.floatingContext&&(null==m.current||m.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){P(),k(),N()||S(e)}})(e))}}),[s,l,e,u,f,d,S,k,P,n,r,y,p,g,m,o,N]),Rm((()=>{var e;if(l&&r&&null!=(e=m.current)&&e.__options.blockPointerEvents&&O()){M.current=!0;const e=s.floating;if(Pp(s.domReference)&&e){var t;const r=th(s.floating).body;r.setAttribute(Qm,"");const n=s.domReference,o=null==p||null==(t=p.nodesRef.current.find((e=>e.id===h)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),r.style.pointerEvents="none",n.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{r.style.pointerEvents="",n.style.pointerEvents="",e.style.pointerEvents=""}}}}),[l,r,h,s,p,m,O]),Rm((()=>{r||(v.current=void 0,j.current=!1,k(),P())}),[r,k,P]),a.useEffect((()=>()=>{k(),clearTimeout(b.current),clearTimeout(x.current),P()}),[l,s.domReference,k,P]);const T=a.useMemo((()=>{function e(e){v.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){C.current||y.current||n(!0,t,"hover")}u&&!eh(v.current)||r||0===f||j.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(x.current),"touch"===v.current?o():(j.current=!0,x.current=window.setTimeout(o,f)))}}}),[u,n,r,y,f]),D=a.useMemo((()=>({onMouseEnter(){clearTimeout(b.current)},onMouseLeave(e){N()||S(e.nativeEvent,!1)}})),[S,N]);return a.useMemo((()=>l?{reference:T,floating:D}:{}),[l,T,D])}(C,{move:!1,enabled:!g&&h.includes("hover"),...m&&{handleClose:Jg()}}),j=function(e,t){void 0===t&&(t={});const{open:r,onOpenChange:n,events:o,dataRef:i,elements:s}=e,{enabled:l=!0,visibleOnly:A=!0}=t,c=a.useRef(!1),u=a.useRef(),f=a.useRef(!0);a.useEffect((()=>{if(!l)return;const e=Op(s.domReference);function t(){!r&&Np(s.domReference)&&s.domReference===qp(th(s.domReference))&&(c.current=!0)}function n(){f.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",n,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",n,!0)}}),[s.domReference,r,l]),a.useEffect((()=>{if(l)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(c.current=!0)}}),[o,l]),a.useEffect((()=>()=>{clearTimeout(u.current)}),[]);const d=a.useMemo((()=>({onPointerDown(e){Qp(e.nativeEvent)||(f.current=!1)},onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=nh(e.nativeEvent);if(A&&Pp(t))try{if(Jp()&&$p())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!f.current&&!oh(t))return}n(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,r=e.nativeEvent,o=Pp(t)&&t.hasAttribute(Gm("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout((()=>{var e;const a=qp(s.domReference?s.domReference.ownerDocument:document);(t||a!==s.domReference)&&(Hp(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,a)||Hp(s.domReference,a)||o||n(!1,r,"focus"))}))}})),[i,s.domReference,n,A]);return a.useMemo((()=>l?{reference:d}:{}),[l,d])}(C,{enabled:!g&&h.includes("focus")}),O=Ig(C),S=Zg(C,{role:"tooltip"}),{getReferenceProps:k,getFloatingProps:P}=Vg([M,E,j,O,S]),{isMounted:N,styles:T}=function(e,t){void 0===t&&(t={});const{initial:r={opacity:0},open:n,close:o,common:i,duration:s=250}=t,l=e.placement,A=l.split("-")[0],c=a.useMemo((()=>({side:A,placement:l})),[A,l]),u="number"==typeof s,f=(u?s:s.open)||0,d=(u?s:s.close)||0,[p,h]=a.useState((()=>({...Kg(i,c),...Kg(r,c)}))),{isMounted:m,status:g}=function(e,t){void 0===t&&(t={});const{open:r,elements:{floating:n}}=e,{duration:o=250}=t,i=("number"==typeof o?o:o.close)||0,[s,l]=a.useState("unmounted"),A=function(e,t){const[r,n]=a.useState(e);return e&&!r&&n(!0),a.useEffect((()=>{if(!e&&r){const e=setTimeout((()=>n(!1)),t);return()=>clearTimeout(e)}}),[e,r,t]),r}(r,i);return A||"close"!==s||l("unmounted"),Rm((()=>{if(n){if(r){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}l("close")}}),[r,n]),{isMounted:A,status:s}}(e,{duration:s}),y=Km(r),v=Km(n),b=Km(o),w=Km(i);return Rm((()=>{const e=Kg(y.current,c),t=Kg(b.current,c),r=Kg(w.current,c),n=Kg(v.current,c)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===g&&h((t=>({transitionProperty:t.transitionProperty,...r,...e}))),"open"===g&&h({transitionProperty:Object.keys(n).map(Gg).join(","),transitionDuration:f+"ms",...r,...n}),"close"===g){const n=t||e;h({transitionProperty:Object.keys(n).map(Gg).join(","),transitionDuration:d+"ms",...r,...n})}}),[d,b,y,v,w,f,g,c]),{isMounted:m,styles:p}}(C,{duration:150,initial:{opacity:0},open:{opacity:1},close:{opacity:0}}),D={light:"bg-tooltip-background-light text-text-primary",dark:"bg-tooltip-background-dark text-text-on-color"}[e],I="dark"===e?"text-tooltip-background-dark":"text-tooltip-background-light";var L;return(0,Me.jsxs)(a.Fragment,{children:[(0,a.isValidElement)(l)&&(0,Me.jsx)(a.Fragment,{children:(0,a.cloneElement)(l,{ref:Cr(l.ref,w.setReference),className:wt(l.props.className),...k()})},"tooltip-reference"),(0,Me.jsx)(vg,{id:u,root:c,children:N&&(0,Me.jsxs)("div",{className:wt("absolute z-20 py-2 px-3 rounded-md text-xs leading-4 shadow-soft-shadow-lg",D,"max-w-80 w-fit",A),ref:w.setFloating,style:{...x,...T},...P(),children:[(0,Me.jsxs)("div",{children:[!!r&&(0,Me.jsx)("span",{className:"font-semibold",children:r},"tooltip-title"),!!n&&(0,Me.jsx)("div",{className:"font-normal",children:n},"tooltip-content")]}),o&&(0,Me.jsx)(Um,{ref:b,context:C,className:wt("fill-current",I)})]})})]})};_g.displayName="Tooltip";var $g=["title","content","placement","arrow","interactive","portalId","children"];function ey(){return ey=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r