a(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(ua(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(v=!1,x(e),!m)if(null!==r(u))m=!0,z(S);else{var t=r(c);null!==t&&F(w,t.startTime-e)}}function S(e,n){m=!1,v&&(v=!1,y(_),_=-1),h=!0;var a=p;try{for(x(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!O());){var i=f.callback;if("function"==typeof i){f.callback=null,p=f.priorityLevel;var s=i(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(u)&&o(u),x(n)}else o(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&F(w,d.startTime-n),l=!1}return l}finally{f=null,p=a,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,E=!1,C=null,_=-1,P=5,T=-1;function O(){return!(t.unstable_now()-Te||125i?(e.sortIndex=a,n(c,e),null===r(u)&&e===r(c)&&(v?(y(_),_=-1):v=!0,F(w,a-i))):(e.sortIndex=s,n(u,e),m||h||(m=!0,z(S))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},7604:(e,t,n)=>{var r;!function(){"use strict";var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(e){return function(e,t){var n,r,i,s,l,u,c,d,f,p=1,h=e.length,m="";for(r=0;r=0),s.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,s.width?parseInt(s.width):0);break;case"e":n=s.precision?parseFloat(n).toExponential(s.precision):parseFloat(n).toExponential();break;case"f":n=s.precision?parseFloat(n).toFixed(s.precision):parseFloat(n);break;case"g":n=s.precision?String(Number(n.toPrecision(s.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=s.precision?n.substring(0,s.precision):n;break;case"t":n=String(!!n),n=s.precision?n.substring(0,s.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=s.precision?n.substring(0,s.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=s.precision?n.substring(0,s.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}o.json.test(s.type)?m+=n:(!o.number.test(s.type)||d&&!s.sign?f="":(f=d?"+":"-",n=n.toString().replace(o.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",c=s.width-(f+n).length,l=s.width&&c>0?u.repeat(c):"",m+=s.align?f+n+l:"0"===u?f+l+n:l+f+n)}return m}(function(e){if(s[e])return s[e];for(var t,n=e,r=[],a=0;n;){if(null!==(t=o.text.exec(n)))r.push(t[0]);else if(null!==(t=o.modulo.exec(n)))r.push("%");else{if(null===(t=o.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){a|=1;var i=[],l=t[2],u=[];if(null===(u=o.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(i.push(u[1]);""!==(l=l.substring(u[0].length));)if(null!==(u=o.key_access.exec(l)))i.push(u[1]);else{if(null===(u=o.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");i.push(u[1])}t[2]=i}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return s[e]=r}(e),arguments)}function i(e,t){return a.apply(null,[e].concat(t||[]))}var s=Object.create(null);t.sprintf=a,t.vsprintf=i,"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=i,void 0===(r=function(){return{sprintf:a,vsprintf:i}}.call(t,n,t,e))||(e.exports=r))}()},8394:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[a]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[i]=c["[object Map]"]=c["[object Number]"]=c[s]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var d,f,p,h="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,m="object"==typeof self&&self&&self.Object===Object&&self,v=h||m||Function("return this")(),g=t&&!t.nodeType&&t,y=g&&e&&!e.nodeType&&e,b=y&&y.exports===g,x=b&&h.process,w=function(){try{return y&&y.require&&y.require("util").types||x&&x.binding&&x.binding("util")}catch(e){}}(),S=w&&w.isTypedArray,k=Array.prototype,E=Function.prototype,C=Object.prototype,_=v["__core-js_shared__"],P=E.toString,T=C.hasOwnProperty,O=(d=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",A=C.toString,R=P.call(Object),j=RegExp("^"+P.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=b?v.Buffer:void 0,F=v.Symbol,M=v.Uint8Array,N=(z&&z.allocUnsafe,f=Object.getPrototypeOf,p=Object,function(e){return f(p(e))}),I=Object.create,L=C.propertyIsEnumerable,D=k.splice,B=F?F.toStringTag:void 0,$=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),V=z?z.isBuffer:void 0,W=Math.max,U=Date.now,H=se(v,"Map"),q=se(Object,"create"),Q=function(){function e(){}return function(t){if(!be(t))return{};if(I)return I(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function G(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},X.prototype.set=function(e,t){var n=this.__data__,r=ee(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Y.prototype.clear=function(){this.size=0,this.__data__={hash:new G,map:new(H||X),string:new G}},Y.prototype.delete=function(e){var t=ie(this,e).delete(e);return this.size-=t?1:0,t},Y.prototype.get=function(e){return ie(this,e).get(e)},Y.prototype.has=function(e){return ie(this,e).has(e)},Y.prototype.set=function(e,t){var n=ie(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},K.prototype.clear=function(){this.__data__=new X,this.size=0},K.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},K.prototype.get=function(e){return this.__data__.get(e)},K.prototype.has=function(e){return this.__data__.has(e)},K.prototype.set=function(e,t){var n=this.__data__;if(n instanceof X){var r=n.__data__;if(!H||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Y(r)}return n.set(e,t),this.size=n.size,this};function ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?function(e){var t=T.call(e,B),n=e[B];try{e[B]=void 0;var r=!0}catch(e){}var o=A.call(e);return r&&(t?e[B]=n:delete e[B]),o}(e):function(e){return A.call(e)}(e)}function re(e){return xe(e)&&ne(e)==a}function oe(e,t,n,r,o){e!==t&&function(e,t,n){for(var r=-1,o=Object(e),a=n(e),i=a.length;i--;){var s=a[++r];if(!1===t(o[s],s,o))break}}(t,(function(a,i){if(o||(o=new K),be(a))!function(e,t,n,r,o,a,i){var l=ce(e,n),u=ce(t,n),c=i.get(u);if(c)Z(e,n,c);else{var d,f,p,h,m,v=a?a(l,u,n+"",e,t,i):void 0,g=void 0===v;if(g){var y=he(u),b=!y&&ve(u),x=!y&&!b&&we(u);v=u,y||b||x?he(l)?v=l:xe(m=l)&&me(m)?v=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ae);function fe(e,t){return e===t||e!=e&&t!=t}var pe=re(function(){return arguments}())?re:function(e){return xe(e)&&T.call(e,"callee")&&!L.call(e,"callee")},he=Array.isArray;function me(e){return null!=e&&ye(e.length)&&!ge(e)}var ve=V||function(){return!1};function ge(e){if(!be(e))return!1;var t=ne(e);return t==i||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ye(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function xe(e){return null!=e&&"object"==typeof e}var we=S?function(e){return function(t){return e(t)}}(S):function(e){return xe(e)&&ye(e.length)&&!!c[ne(e)]};function Se(e){return me(e)?function(e,t){var n=he(e),r=!n&&pe(e),o=!n&&!r&&ve(e),a=!n&&!r&&!o&&we(e),i=n||r||o||a,s=i?function(e,t){for(var n=-1,r=Array(e);++n1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(o=ke.length>3&&"function"==typeof o?(r--,o):void 0,a&&function(e,t,n){if(!be(n))return!1;var r=typeof t;return!!("number"==r?me(n)&&le(t,n.length):"string"==r&&t in n)&&fe(n[t],e)}(t[0],t[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++n{"use strict";var r=n(6694),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return s((function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,n,t]),i((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},9888:(e,t,n)=>{"use strict";e.exports=n(8493)},9982:(e,t,n)=>{"use strict";e.exports=n(7463)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r](a,a.exports,n),a.loaded=!0,a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.nc=void 0,(()=>{"use strict";var e=n(6694),t=n.n(e),r=n(5338),o=n(7604),a=n.n(o);const i=function(e,t){var n,r,o=0;function a(){var a,i,s=n,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},u=["(","?"],c={")":["("],":":["?","?:"]},d=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var f={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};var p={contextDelimiter:"",onMissingKey:null};function h(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},p)this.options[n]=void 0!==t&&n in t?t[n]:p[n]}h.prototype.getPluralForm=function(e,t){var n,r,o,a,i=this.pluralForms[e];return i||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n=0||l[o]1===e?0:1},v=/^i18n\.(n?gettext|has_translation)(_|$)/,g=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},y=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},b=function(e,t){return function(n,r,o,a=10){const i=e[t];if(!y(n))return;if(!g(r))return;if("function"!=typeof o)return void console.error("The hook callback must be a function.");if("number"!=typeof a)return void console.error("If specified, the hook priority must be a number.");const s={callback:o,priority:a,namespace:r};if(i[n]){const e=i[n].handlers;let t;for(t=e.length;t>0&&!(a>=e[t-1].priority);t--);t===e.length?e[t]=s:e.splice(t,0,s),i.__current.forEach((e=>{e.name===n&&e.currentIndex>=t&&e.currentIndex++}))}else i[n]={handlers:[s],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,o,a)}},x=function(e,t,n=!1){return function(r,o){const a=e[t];if(!y(r))return;if(!n&&!g(o))return;if(!a[r])return 0;let i=0;if(n)i=a[r].handlers.length,a[r]={runs:a[r].runs,handlers:[]};else{const e=a[r].handlers;for(let t=e.length-1;t>=0;t--)e[t].namespace===o&&(e.splice(t,1),i++,a.__current.forEach((e=>{e.name===r&&e.currentIndex>=t&&e.currentIndex--})))}return"hookRemoved"!==r&&e.doAction("hookRemoved",r,o),i}},w=function(e,t){return function(n,r){const o=e[t];return void 0!==r?n in o&&o[n].handlers.some((e=>e.namespace===r)):n in o}},S=function(e,t,n=!1){return function(r,...o){const a=e[t];a[r]||(a[r]={handlers:[],runs:0}),a[r].runs++;const i=a[r].handlers;if(!i||!i.length)return n?o[0]:void 0;const s={name:r,currentIndex:0};for(a.__current.push(s);s.currentIndex{const r=new h({}),o=new Set,a=()=>{o.forEach((e=>e()))},i=(e,t="default")=>{r.data[t]={...r.data[t],...e},r.data[t][""]={...m,...r.data[t]?.[""]},delete r.pluralForms[t]},s=(e,t)=>{i(e,t),a()},l=(e="default",t,n,o,a)=>(r.data[e]||i(void 0,e),r.dcnpgettext(e,t,n,o,a)),u=(e="default")=>e,c=(e,t,r)=>{let o=l(r,t,e);return n?(o=n.applyFilters("i18n.gettext_with_context",o,e,t,r),n.applyFilters("i18n.gettext_with_context_"+u(r),o,e,t,r)):o};if(n){const e=e=>{v.test(e)&&a()};n.addAction("hookAdded","core/i18n",e),n.addAction("hookRemoved","core/i18n",e)}return{getLocaleData:(e="default")=>r.data[e],setLocaleData:s,addLocaleData:(e,t="default")=>{r.data[t]={...r.data[t],...e,"":{...m,...r.data[t]?.[""],...e?.[""]}},delete r.pluralForms[t],a()},resetLocaleData:(e,t)=>{r.data={},r.pluralForms={},s(e,t)},subscribe:e=>(o.add(e),()=>o.delete(e)),__:(e,t)=>{let r=l(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+u(t),r,e,t)):r},_x:c,_n:(e,t,r,o)=>{let a=l(o,void 0,e,t,r);return n?(a=n.applyFilters("i18n.ngettext",a,e,t,r,o),n.applyFilters("i18n.ngettext_"+u(o),a,e,t,r,o)):a},_nx:(e,t,r,o,a)=>{let i=l(a,o,e,t,r);return n?(i=n.applyFilters("i18n.ngettext_with_context",i,e,t,r,o,a),n.applyFilters("i18n.ngettext_with_context_"+u(a),i,e,t,r,o,a)):i},isRTL:()=>"rtl"===c("ltr","text direction"),hasTranslation:(e,t,o)=>{const a=t?t+""+e:e;let i=!!r.data?.[null!=o?o:"default"]?.[a];return n&&(i=n.applyFilters("i18n.has_translation",i,e,t,o),i=n.applyFilters("i18n.has_translation_"+u(o),i,e,t,o)),i}}})(0,0,P),Q=(q.getLocaleData.bind(q),q.setLocaleData.bind(q),q.resetLocaleData.bind(q),q.subscribe.bind(q),q.__.bind(q));q._x.bind(q),q._n.bind(q),q._nx.bind(q),q.isRTL.bind(q),q.hasTranslation.bind(q);var G=(...e)=>e.filter(Boolean).join(" ");function X(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}function Y(e,...t){return K(e)?e(...t):e}var K=e=>"function"==typeof e,Z=e=>e?"":void 0,J=e=>!!e||void 0;function ee(...e){return function(t){e.some((e=>(null==e||e(t),null==t?void 0:t.defaultPrevented)))}}var te=Object.freeze(["base","sm","md","lg","xl","2xl"]);function ne(e,t){return Array.isArray(e)?e.map((e=>null===e?null:t(e))):X(e)?Object.keys(e).reduce(((n,r)=>(n[r]=t(e[r]),n)),{}):null!=e?t(e):null}var re=Boolean(null==globalThis?void 0:globalThis.document)?e.useLayoutEffect:e.useEffect,oe=n(4848),ae=(0,e.createContext)({getDocument:()=>document,getWindow:()=>window});function ie(t){const{children:n,environment:r,disabled:o}=t,a=(0,e.useRef)(null),i=(0,e.useMemo)((()=>r||{getDocument:()=>{var e,t;return null!=(t=null==(e=a.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=a.current)?void 0:e.ownerDocument.defaultView)?t:window}}),[r]),s=!o||!r;return(0,oe.jsxs)(ae.Provider,{value:i,children:[n,s&&(0,oe.jsx)("span",{id:"__chakra_env",hidden:!0,ref:a})]})}ae.displayName="EnvironmentContext",ie.displayName="EnvironmentProvider";var se=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?he(Ee,--Se):0,xe--,10===ke&&(xe=1,be--),ke}function Te(){return ke=Se2||je(ke)>3?"":" "}function Ie(e,t){for(;--t&&Te()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return Re(e,Ae()+(t<6&&32==Oe()&&32==Te()))}function Le(e){for(;Te();)switch(ke){case e:return Se;case 34:case 39:34!==e&&39!==e&&Le(ke);break;case 40:41===e&&Le(e);break;case 92:Te()}return Se}function De(e,t){for(;Te()&&e+ke!==57&&(e+ke!==84||47!==Oe()););return"/*"+Re(t,Se-1)+"*"+ue(47===e?e:Te())}function Be(e){for(;!je(Oe());)Te();return Re(e,Se)}var $e="-ms-",Ve="-moz-",We="-webkit-",Ue="comm",He="rule",qe="decl",Qe="@keyframes";function Ge(e,t){for(var n="",r=ge(e),o=0;o0&&ve(k)-d&&ye(p>32?et(k+";",r,n,d-1):et(fe(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(ye(S=Ze(k,t,n,u,c,o,s,b,x=[],w=[],d),a),123===y)if(0===c)Ke(k,t,S,S,x,a,d,s,w);else switch(99===f&&110===he(k,3)?100:f){case 100:case 108:case 109:case 115:Ke(e,S,S,r&&ye(Ze(e,S,S,0,0,o,s,b,o,x=[],d),w),o,w,d,s,r?x:w);break;default:Ke(k,S,S,S,[""],w,0,s,w)}}u=c=p=0,m=g=1,b=k="",d=i;break;case 58:d=1+ve(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Pe())continue;switch(k+=ue(y),y*m){case 38:g=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(ve(k)-1)*g,g=1;break;case 64:45===Oe()&&(k+=Me(Te())),f=Oe(),c=d=ve(b=k+=Be(Ae())),y++;break;case 45:45===h&&2==ve(k)&&(m=0)}}return a}function Ze(e,t,n,r,o,a,i,s,l,u,c){for(var d=o-1,f=0===o?a:[""],p=ge(f),h=0,m=0,v=0;h0?f[g]+" "+y:fe(y,/&\f/g,f[g])))&&(l[v++]=b);return Ce(e,t,n,0===o?He:s,l,u,c)}function Je(e,t,n){return Ce(e,t,n,Ue,ue(ke),me(e,2,-2),0)}function et(e,t,n,r){return Ce(e,t,n,qe,me(e,0,r),me(e,r+1,-1),r)}var tt=function(e,t,n){for(var r=0,o=0;r=o,o=Oe(),38===r&&12===o&&(t[n]=1),!je(o);)Te();return Re(e,Se)},nt=new WeakMap,rt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||nt.get(n))&&!r){nt.set(e,!0);for(var o=[],a=function(e,t){return Fe(function(e,t){var n=-1,r=44;do{switch(je(r)){case 0:38===r&&12===Oe()&&(t[n]=1),e[n]+=tt(Se-1,t,n);break;case 2:e[n]+=Me(r);break;case 4:if(44===r){e[++n]=58===Oe()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ue(r)}}while(r=Te());return e}(ze(e),t))}(t,o),i=n.props,s=0,l=0;s6)switch(he(e,t+1)){case 109:if(45!==he(e,t+4))break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+Ve+(108==he(e,t+3)?"$3":"$2-$3"))+e;case 115:return~pe(e,"stretch")?at(fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==he(e,t+1))break;case 6444:switch(he(e,ve(e)-3-(~pe(e,"!important")&&10))){case 107:return fe(e,":",":"+We)+e;case 101:return fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+We+(45===he(e,14)?"inline-":"")+"box$3$1"+We+"$2$3$1"+$e+"$2box$3")+e}break;case 5936:switch(he(e,t+11)){case 114:return We+e+$e+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return We+e+$e+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return We+e+$e+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return We+e+$e+e+e}return e}var it=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case qe:e.return=at(e.value,e.length);break;case Qe:return Ge([_e(e,{value:fe(e.value,"@","@"+We)})],r);case He:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ge([_e(e,{props:[fe(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ge([_e(e,{props:[fe(t,/:(plac\w+)/,":"+We+"input-$1")]}),_e(e,{props:[fe(t,/:(plac\w+)/,":-moz-$1")]}),_e(e,{props:[fe(t,/:(plac\w+)/,$e+"input-$1")]})],r)}return""}))}}],st=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||it,i={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:St}}var Ct=!!e.useInsertionEffect&&e.useInsertionEffect,_t=Ct||function(e){return e()},Pt=Ct||e.useLayoutEffect,Tt=e.createContext("undefined"!=typeof HTMLElement?st({key:"css"}):null),Ot=(Tt.Provider,function(t){return(0,e.forwardRef)((function(n,r){var o=(0,e.useContext)(Tt);return t(n,o,r)}))}),At=e.createContext({}),Rt=ut((function(e){return ut((function(t){return function(e,t){return"function"==typeof t?t(e):lt({},e,t)}(e,t)}))})),jt=function(t){var n=e.useContext(At);return t.theme!==n&&(n=Rt(n)(t.theme)),e.createElement(At.Provider,{value:n},t.children)},zt={}.hasOwnProperty,Ft="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Mt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return dt(t,n,r),_t((function(){return ft(t,n,r)})),null},Nt=Ot((function(t,n,r){var o=t.css;"string"==typeof o&&void 0!==n.registered[o]&&(o=n.registered[o]);var a=t[Ft],i=[o],s="";"string"==typeof t.className?s=ct(n.registered,i,t.className):null!=t.className&&(s=t.className+" ");var l=Et(i,void 0,e.useContext(At));s+=n.key+"-"+l.name;var u={};for(var c in t)zt.call(t,c)&&"css"!==c&&c!==Ft&&(u[c]=t[c]);return u.className=s,r&&(u.ref=r),e.createElement(e.Fragment,null,e.createElement(Mt,{cache:n,serialized:l,isStringTag:"string"==typeof a}),e.createElement(a,u))}));function It(){const t=(0,e.useContext)(At);if(!t)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return t}function Lt(t,n){var r;const o=function(t){var n,r;const o=X(t)?t:{fallback:null!=t?t:"base"},a=It().__breakpoints.details.map((({minMaxQuery:e,breakpoint:t})=>({breakpoint:t,query:e.replace("@media screen and ","")}))),i=a.map((e=>e.breakpoint===o.fallback)),s=function(t,n={}){const{ssr:r=!0,fallback:o}=n,{getWindow:a}=function({defer:t}={}){const[,n]=(0,e.useReducer)((e=>e+1),0);return re((()=>{t&&n()}),[t]),(0,e.useContext)(ae)}(),i=Array.isArray(t)?t:[t];let s=Array.isArray(o)?o:[o];s=s.filter((e=>null!=e));const[l,u]=(0,e.useState)((()=>i.map(((e,t)=>({media:e,matches:r?!!s[t]:a().matchMedia(e).matches})))));return(0,e.useEffect)((()=>{const e=a();u(i.map((t=>({media:t,matches:e.matchMedia(t).matches}))));const t=i.map((t=>e.matchMedia(t))),n=e=>{u((t=>t.slice().map((t=>t.media===e.media?{...t,matches:e.matches}:t))))};return t.forEach((e=>{"function"==typeof e.addListener?e.addListener(n):e.addEventListener("change",n)})),()=>{t.forEach((e=>{"function"==typeof e.removeListener?e.removeListener(n):e.removeEventListener("change",n)}))}}),[a]),l.map((e=>e.matches))}(a.map((e=>e.query)),{fallback:i,ssr:o.ssr});return null!=(r=null==(n=a[s.findIndex((e=>1==e))])?void 0:n.breakpoint)?r:o.fallback}(X(n)?n:{fallback:null!=n?n:"base"}),a=It();if(!o)return;const i=Array.from((null==(r=a.__breakpoints)?void 0:r.keys)||[]),s=Array.isArray(t)?Object.fromEntries(Object.entries(function(e,t=te){const n={};return e.forEach(((e,r)=>{const o=t[r];null!=e&&(n[o]=e)})),n}(t,i)).map((([e,t])=>[e,t]))):t;return function(e,t,n=te){let r=Object.keys(e).indexOf(t);if(-1!==r)return e[t];let o=n.indexOf(t);for(;o>=0;){const t=n[o];if(e.hasOwnProperty(t)){r=o;break}o-=1}return-1!==r?e[n[r]]:void 0}(s,o,i)}function Dt(t){return(0,e.forwardRef)(t)}var Bt=n(8394),$t=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e;function Vt(e){const{scale:t,transform:n,compose:r}=e;return(e,o)=>{var a;const i=((e,t)=>n=>{const r=String(t),o=(e=>/!(important)?$/.test(e))(r),a=$t(r),i=e?`${e}.${a}`:a;let s=X(n.__cssMap)&&i in n.__cssMap?n.__cssMap[i].varRef:t;return s=$t(s),o?`${s} !important`:s})(t,e)(o);let s=null!=(a=null==n?void 0:n(i,o))?a:i;return r&&(s=r(s,o)),s}}var Wt=(...e)=>t=>e.reduce(((e,t)=>t(e)),t);function Ut(e,t){return n=>{const r={property:n,scale:e};return r.transform=Vt({scale:e,transform:t}),r}}var Ht=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,qt=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],Qt={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},Gt={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},Xt={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Yt={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},Kt=new Set(Object.values(Yt)),Zt=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Jt=e=>e.trim(),en=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),tn=e=>t=>`${e}(${t})`,nn={filter:e=>"auto"!==e?e:Qt,backdropFilter:e=>"auto"!==e?e:Gt,ring:e=>function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(nn.px(e)),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...qt].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...qt].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;const{unitless:t}=(e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}})(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:100*e+"%",float:(e,t)=>"rtl"===t.direction?{left:"right",right:"left"}[e]:e,degree(e){if(function(e){return/^var\(--.+\)$/.test(e)}(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>function(e,t){if(null==e||Zt.has(e))return e;if(!en(e)&&!Zt.has(e))return`url('${e}')`;const n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),r=null==n?void 0:n[1],o=null==n?void 0:n[2];if(!r||!o)return e;const a=r.includes("-gradient")?r:`${r}-gradient`,[i,...s]=o.split(",").map(Jt).filter(Boolean);if(0===(null==s?void 0:s.length))return e;const l=i in Yt?Yt[i]:i;return s.unshift(l),`${a}(${s.map((e=>{if(Kt.has(e))return e;const n=e.indexOf(" "),[r,o]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],a=en(o)?o:o&&o.split(" "),i=`colors.${r}`,s=i in t.__cssMap?t.__cssMap[i].varRef:r;return a?[s,...Array.isArray(a)?a:[a]].join(" "):s})).join(", ")})`}(e,null!=t?t:{}),blur:tn("blur"),opacity:tn("opacity"),brightness:tn("brightness"),contrast:tn("contrast"),dropShadow:tn("drop-shadow"),grayscale:tn("grayscale"),hueRotate:e=>tn("hue-rotate")(nn.degree(e)),invert:tn("invert"),saturate:tn("saturate"),sepia:tn("sepia"),bgImage:e=>null==e||en(e)||Zt.has(e)?e:`url(${e})`,outline(e){const t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=null!=(t=Xt[e])?t:{},o={flexDirection:e};return n&&(o[n]=1),r&&(o[r]=1),o}},rn={borderWidths:Ut("borderWidths"),borderStyles:Ut("borderStyles"),colors:Ut("colors"),borders:Ut("borders"),gradients:Ut("gradients",nn.gradient),radii:Ut("radii",nn.px),space:Ut("space",Wt(nn.vh,nn.px)),spaceT:Ut("space",Wt(nn.vh,nn.px)),degreeT:e=>({property:e,transform:nn.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:Vt({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:Ut("sizes",Wt(nn.vh,nn.px)),sizesT:Ut("sizes",Wt(nn.vh,nn.fraction)),shadows:Ut("shadows"),logical:function(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:Ht(t),transform:n?Vt({scale:n,compose:r}):r}},blur:Ut("blur",nn.blur)},on={background:rn.colors("background"),backgroundColor:rn.colors("backgroundColor"),backgroundImage:rn.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:nn.bgClip},bgSize:rn.prop("backgroundSize"),bgPosition:rn.prop("backgroundPosition"),bg:rn.colors("background"),bgColor:rn.colors("backgroundColor"),bgPos:rn.prop("backgroundPosition"),bgRepeat:rn.prop("backgroundRepeat"),bgAttachment:rn.prop("backgroundAttachment"),bgGradient:rn.gradients("backgroundImage"),bgClip:{transform:nn.bgClip}};Object.assign(on,{bgImage:on.backgroundImage,bgImg:on.backgroundImage});var an={border:rn.borders("border"),borderWidth:rn.borderWidths("borderWidth"),borderStyle:rn.borderStyles("borderStyle"),borderColor:rn.colors("borderColor"),borderRadius:rn.radii("borderRadius"),borderTop:rn.borders("borderTop"),borderBlockStart:rn.borders("borderBlockStart"),borderTopLeftRadius:rn.radii("borderTopLeftRadius"),borderStartStartRadius:rn.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:rn.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:rn.radii("borderTopRightRadius"),borderStartEndRadius:rn.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:rn.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:rn.borders("borderRight"),borderInlineEnd:rn.borders("borderInlineEnd"),borderBottom:rn.borders("borderBottom"),borderBlockEnd:rn.borders("borderBlockEnd"),borderBottomLeftRadius:rn.radii("borderBottomLeftRadius"),borderBottomRightRadius:rn.radii("borderBottomRightRadius"),borderLeft:rn.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:rn.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:rn.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:rn.borders(["borderLeft","borderRight"]),borderInline:rn.borders("borderInline"),borderY:rn.borders(["borderTop","borderBottom"]),borderBlock:rn.borders("borderBlock"),borderTopWidth:rn.borderWidths("borderTopWidth"),borderBlockStartWidth:rn.borderWidths("borderBlockStartWidth"),borderTopColor:rn.colors("borderTopColor"),borderBlockStartColor:rn.colors("borderBlockStartColor"),borderTopStyle:rn.borderStyles("borderTopStyle"),borderBlockStartStyle:rn.borderStyles("borderBlockStartStyle"),borderBottomWidth:rn.borderWidths("borderBottomWidth"),borderBlockEndWidth:rn.borderWidths("borderBlockEndWidth"),borderBottomColor:rn.colors("borderBottomColor"),borderBlockEndColor:rn.colors("borderBlockEndColor"),borderBottomStyle:rn.borderStyles("borderBottomStyle"),borderBlockEndStyle:rn.borderStyles("borderBlockEndStyle"),borderLeftWidth:rn.borderWidths("borderLeftWidth"),borderInlineStartWidth:rn.borderWidths("borderInlineStartWidth"),borderLeftColor:rn.colors("borderLeftColor"),borderInlineStartColor:rn.colors("borderInlineStartColor"),borderLeftStyle:rn.borderStyles("borderLeftStyle"),borderInlineStartStyle:rn.borderStyles("borderInlineStartStyle"),borderRightWidth:rn.borderWidths("borderRightWidth"),borderInlineEndWidth:rn.borderWidths("borderInlineEndWidth"),borderRightColor:rn.colors("borderRightColor"),borderInlineEndColor:rn.colors("borderInlineEndColor"),borderRightStyle:rn.borderStyles("borderRightStyle"),borderInlineEndStyle:rn.borderStyles("borderInlineEndStyle"),borderTopRadius:rn.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:rn.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:rn.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:rn.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(an,{rounded:an.borderRadius,roundedTop:an.borderTopRadius,roundedTopLeft:an.borderTopLeftRadius,roundedTopRight:an.borderTopRightRadius,roundedTopStart:an.borderStartStartRadius,roundedTopEnd:an.borderStartEndRadius,roundedBottom:an.borderBottomRadius,roundedBottomLeft:an.borderBottomLeftRadius,roundedBottomRight:an.borderBottomRightRadius,roundedBottomStart:an.borderEndStartRadius,roundedBottomEnd:an.borderEndEndRadius,roundedLeft:an.borderLeftRadius,roundedRight:an.borderRightRadius,roundedStart:an.borderInlineStartRadius,roundedEnd:an.borderInlineEndRadius,borderStart:an.borderInlineStart,borderEnd:an.borderInlineEnd,borderTopStartRadius:an.borderStartStartRadius,borderTopEndRadius:an.borderStartEndRadius,borderBottomStartRadius:an.borderEndStartRadius,borderBottomEndRadius:an.borderEndEndRadius,borderStartRadius:an.borderInlineStartRadius,borderEndRadius:an.borderInlineEndRadius,borderStartWidth:an.borderInlineStartWidth,borderEndWidth:an.borderInlineEndWidth,borderStartColor:an.borderInlineStartColor,borderEndColor:an.borderInlineEndColor,borderStartStyle:an.borderInlineStartStyle,borderEndStyle:an.borderInlineEndStyle});var sn={color:rn.colors("color"),textColor:rn.colors("color"),fill:rn.colors("fill"),stroke:rn.colors("stroke")},ln={boxShadow:rn.shadows("boxShadow"),mixBlendMode:!0,blendMode:rn.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:rn.prop("backgroundBlendMode"),opacity:!0};Object.assign(ln,{shadow:ln.boxShadow});var un={filter:{transform:nn.filter},blur:rn.blur("--chakra-blur"),brightness:rn.propT("--chakra-brightness",nn.brightness),contrast:rn.propT("--chakra-contrast",nn.contrast),hueRotate:rn.propT("--chakra-hue-rotate",nn.hueRotate),invert:rn.propT("--chakra-invert",nn.invert),saturate:rn.propT("--chakra-saturate",nn.saturate),dropShadow:rn.propT("--chakra-drop-shadow",nn.dropShadow),backdropFilter:{transform:nn.backdropFilter},backdropBlur:rn.blur("--chakra-backdrop-blur"),backdropBrightness:rn.propT("--chakra-backdrop-brightness",nn.brightness),backdropContrast:rn.propT("--chakra-backdrop-contrast",nn.contrast),backdropHueRotate:rn.propT("--chakra-backdrop-hue-rotate",nn.hueRotate),backdropInvert:rn.propT("--chakra-backdrop-invert",nn.invert),backdropSaturate:rn.propT("--chakra-backdrop-saturate",nn.saturate)},cn={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:nn.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:rn.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:rn.space("gap"),rowGap:rn.space("rowGap"),columnGap:rn.space("columnGap")};Object.assign(cn,{flexDir:cn.flexDirection});var dn={gridGap:rn.space("gridGap"),gridColumnGap:rn.space("gridColumnGap"),gridRowGap:rn.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},fn={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:nn.outline},outlineOffset:!0,outlineColor:rn.colors("outlineColor")},pn={width:rn.sizesT("width"),inlineSize:rn.sizesT("inlineSize"),height:rn.sizes("height"),blockSize:rn.sizes("blockSize"),boxSize:rn.sizes(["width","height"]),minWidth:rn.sizes("minWidth"),minInlineSize:rn.sizes("minInlineSize"),minHeight:rn.sizes("minHeight"),minBlockSize:rn.sizes("minBlockSize"),maxWidth:rn.sizes("maxWidth"),maxInlineSize:rn.sizes("maxInlineSize"),maxHeight:rn.sizes("maxHeight"),maxBlockSize:rn.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;const a=`@media screen and (min-width: ${null!=(o=null==(r=null==(n=t.__breakpoints)?void 0:n.get(e))?void 0:r.minW)?o:e})`;return{[a]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;const a=`@media screen and (max-width: ${null!=(o=null==(r=null==(n=t.__breakpoints)?void 0:n.get(e))?void 0:r._minW)?o:e})`;return{[a]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:rn.propT("float",nn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(pn,{w:pn.width,h:pn.height,minW:pn.minWidth,maxW:pn.maxWidth,minH:pn.minHeight,maxH:pn.maxHeight,overscroll:pn.overscrollBehavior,overscrollX:pn.overscrollBehaviorX,overscrollY:pn.overscrollBehaviorY});var hn={listStyleType:!0,listStylePosition:!0,listStylePos:rn.prop("listStylePosition"),listStyleImage:!0,listStyleImg:rn.prop("listStyleImage")},mn=(e=>{const t=new WeakMap;return(n,r,o,a)=>{if(void 0===n)return e(n,r,o);t.has(n)||t.set(n,new Map);const i=t.get(n);if(i.has(r))return i.get(r);const s=e(n,r,o,a);return i.set(r,s),s}})((function(e,t,n,r){const o="string"==typeof t?t.split("."):[t];for(r=0;r{const r={},o=mn(e,t,{});for(const e in o)e in n&&null!=n[e]||(r[e]=o[e]);return r},bn={srOnly:{transform:e=>!0===e?vn:"focusable"===e?gn:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>yn(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>yn(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>yn(t,e,n)}},xn={position:!0,pos:rn.prop("position"),zIndex:rn.prop("zIndex","zIndices"),inset:rn.spaceT("inset"),insetX:rn.spaceT(["left","right"]),insetInline:rn.spaceT("insetInline"),insetY:rn.spaceT(["top","bottom"]),insetBlock:rn.spaceT("insetBlock"),top:rn.spaceT("top"),insetBlockStart:rn.spaceT("insetBlockStart"),bottom:rn.spaceT("bottom"),insetBlockEnd:rn.spaceT("insetBlockEnd"),left:rn.spaceT("left"),insetInlineStart:rn.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:rn.spaceT("right"),insetInlineEnd:rn.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(xn,{insetStart:xn.insetInlineStart,insetEnd:xn.insetInlineEnd});var wn={ring:{transform:nn.ring},ringColor:rn.colors("--chakra-ring-color"),ringOffset:rn.prop("--chakra-ring-offset-width"),ringOffsetColor:rn.colors("--chakra-ring-offset-color"),ringInset:rn.prop("--chakra-ring-inset")},Sn={margin:rn.spaceT("margin"),marginTop:rn.spaceT("marginTop"),marginBlockStart:rn.spaceT("marginBlockStart"),marginRight:rn.spaceT("marginRight"),marginInlineEnd:rn.spaceT("marginInlineEnd"),marginBottom:rn.spaceT("marginBottom"),marginBlockEnd:rn.spaceT("marginBlockEnd"),marginLeft:rn.spaceT("marginLeft"),marginInlineStart:rn.spaceT("marginInlineStart"),marginX:rn.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:rn.spaceT("marginInline"),marginY:rn.spaceT(["marginTop","marginBottom"]),marginBlock:rn.spaceT("marginBlock"),padding:rn.space("padding"),paddingTop:rn.space("paddingTop"),paddingBlockStart:rn.space("paddingBlockStart"),paddingRight:rn.space("paddingRight"),paddingBottom:rn.space("paddingBottom"),paddingBlockEnd:rn.space("paddingBlockEnd"),paddingLeft:rn.space("paddingLeft"),paddingInlineStart:rn.space("paddingInlineStart"),paddingInlineEnd:rn.space("paddingInlineEnd"),paddingX:rn.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:rn.space("paddingInline"),paddingY:rn.space(["paddingTop","paddingBottom"]),paddingBlock:rn.space("paddingBlock")};Object.assign(Sn,{m:Sn.margin,mt:Sn.marginTop,mr:Sn.marginRight,me:Sn.marginInlineEnd,marginEnd:Sn.marginInlineEnd,mb:Sn.marginBottom,ml:Sn.marginLeft,ms:Sn.marginInlineStart,marginStart:Sn.marginInlineStart,mx:Sn.marginX,my:Sn.marginY,p:Sn.padding,pt:Sn.paddingTop,py:Sn.paddingY,px:Sn.paddingX,pb:Sn.paddingBottom,pl:Sn.paddingLeft,ps:Sn.paddingInlineStart,paddingStart:Sn.paddingInlineStart,pr:Sn.paddingRight,pe:Sn.paddingInlineEnd,paddingEnd:Sn.paddingInlineEnd});var kn={textDecorationColor:rn.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:rn.shadows("textShadow")},En={clipPath:!0,transform:rn.propT("transform",nn.transform),transformOrigin:!0,translateX:rn.spaceT("--chakra-translate-x"),translateY:rn.spaceT("--chakra-translate-y"),skewX:rn.degreeT("--chakra-skew-x"),skewY:rn.degreeT("--chakra-skew-y"),scaleX:rn.prop("--chakra-scale-x"),scaleY:rn.prop("--chakra-scale-y"),scale:rn.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:rn.degreeT("--chakra-rotate")},Cn={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:rn.prop("transitionDuration","transition.duration"),transitionProperty:rn.prop("transitionProperty","transition.property"),transitionTimingFunction:rn.prop("transitionTimingFunction","transition.easing")},_n={fontFamily:rn.prop("fontFamily","fonts"),fontSize:rn.prop("fontSize","fontSizes",nn.px),fontWeight:rn.prop("fontWeight","fontWeights"),lineHeight:rn.prop("lineHeight","lineHeights"),letterSpacing:rn.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},Pn={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:rn.spaceT("scrollMargin"),scrollMarginTop:rn.spaceT("scrollMarginTop"),scrollMarginBottom:rn.spaceT("scrollMarginBottom"),scrollMarginLeft:rn.spaceT("scrollMarginLeft"),scrollMarginRight:rn.spaceT("scrollMarginRight"),scrollMarginX:rn.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:rn.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:rn.spaceT("scrollPadding"),scrollPaddingTop:rn.spaceT("scrollPaddingTop"),scrollPaddingBottom:rn.spaceT("scrollPaddingBottom"),scrollPaddingLeft:rn.spaceT("scrollPaddingLeft"),scrollPaddingRight:rn.spaceT("scrollPaddingRight"),scrollPaddingX:rn.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:rn.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Tn(e){return X(e)&&e.reference?e.reference:String(e)}var On=(e,...t)=>t.map(Tn).join(` ${e} `).replace(/calc/g,""),An=(...e)=>`calc(${On("+",...e)})`,Rn=(...e)=>`calc(${On("-",...e)})`,jn=(...e)=>`calc(${On("*",...e)})`,zn=(...e)=>`calc(${On("/",...e)})`,Fn=e=>{const t=Tn(e);return null==t||Number.isNaN(parseFloat(t))?jn(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Mn=Object.assign((e=>({add:(...t)=>Mn(An(e,...t)),subtract:(...t)=>Mn(Rn(e,...t)),multiply:(...t)=>Mn(jn(e,...t)),divide:(...t)=>Mn(zn(e,...t)),negate:()=>Mn(Fn(e)),toString:()=>e.toString()})),{add:An,subtract:Rn,multiply:jn,divide:zn,negate:Fn});function Nn(e,t){return`var(${e}${t?`, ${t}`:""})`}function In(e,t=""){return function(e){return function(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(function(e){return e.includes("\\.")||Number.isInteger(parseFloat(e.toString()))?e:e.replace(".","\\.")}(function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString())))}(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}function Ln(e,t,n){const r=In(e,n);return{variable:r,reference:Nn(r,t)}}function Dn(e){const t=null==e?0:e.length;return t?e[t-1]:void 0}function Bn(e){if(null==e)return e;const{unitless:t}=function(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||"number"==typeof e?`${e}px`:e}var $n=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Vn=e=>Object.fromEntries(Object.entries(e).sort($n));function Wn(e){const t=Vn(e);return Object.assign(Object.values(t),t)}function Un(e){var t;return e?"number"==typeof(e=null!=(t=Bn(e))?t:e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,(e=>`${parseFloat(e)+-.02}`)):e}function Hn(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Bn(e)})`),t&&n.push("and",`(max-width: ${Bn(t)})`),n.join(" ")}function qn(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";const n=Wn(e),r=Object.entries(e).sort($n).map((([e,t],n,r)=>{var o;let[,a]=null!=(o=r[n+1])?o:[];return a=parseFloat(a)>0?Un(a):void 0,{_minW:Un(t),breakpoint:e,minW:t,maxW:a,maxWQuery:Hn(null,a),minWQuery:Hn(t),minMaxQuery:Hn(t,a)}})),o=function(e){const t=Object.keys(Vn(e));return new Set(t)}(e),a=Array.from(o.values());return{keys:o,normalized:n,isResponsive(e){const t=Object.keys(e);return t.length>0&&t.every((e=>o.has(e)))},asObject:Vn(e),asArray:Wn(e),details:r,get:e=>r.find((t=>t.breakpoint===e)),media:[null,...n.map((e=>Hn(e))).slice(1)],toArrayValue(e){if(!X(e))throw new Error("toArrayValue: value must be an object");const t=a.map((t=>{var n;return null!=(n=e[t])?n:null}));for(;null===Dn(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce(((e,t,n)=>{const r=a[n];return null!=r&&null!=t&&(e[r]=t),e}),{})}}}var Qn=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,Gn=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,Xn=(e,t)=>`${e}:focus-visible ${t}`,Yn=(e,t)=>`${e}:focus-within ${t}`,Kn=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,Zn=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,Jn=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,er=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,tr=e=>rr((t=>e(t,"&")),"[role=group]","[data-group]",".group"),nr=e=>rr((t=>e(t,"~ &")),"[data-peer]",".peer"),rr=(e,...t)=>t.map(e).join(", "),or={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:tr(Qn),_peerHover:nr(Qn),_groupFocus:tr(Gn),_peerFocus:nr(Gn),_groupFocusVisible:tr(Xn),_peerFocusVisible:nr(Xn),_groupActive:tr(Kn),_peerActive:nr(Kn),_groupDisabled:tr(Zn),_peerDisabled:nr(Zn),_groupInvalid:tr(Jn),_peerInvalid:nr(Jn),_groupChecked:tr(er),_peerChecked:nr(er),_groupFocusWithin:tr(Yn),_peerFocusWithin:nr(Yn),_peerPlaceholderShown:nr(((e,t)=>`${e}:placeholder-shown ${t}`)),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},ar=Object.keys(or);function ir(e,t){return Ln(String(e).replace(/\./g,"-"),void 0,t)}function sr(e,t,n={}){const{stop:r,getKey:o}=n;return function e(n,a=[]){var i;if(function(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)}(n)||Array.isArray(n)){const s={};for(const[l,u]of Object.entries(n)){const c=null!=(i=null==o?void 0:o(l))?i:l,d=[...a,c];if(null==r?void 0:r(n,d))return t(n,a);s[c]=e(u,d)}return s}return t(n,a)}(e)}var lr=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"],ur=e=>ar.includes(e)||"default"===e;var cr=Bt({},on,an,sn,cn,pn,un,wn,fn,dn,bn,xn,ln,Sn,Pn,_n,kn,En,hn,Cn),dr=Object.assign({},Sn,pn,cn,dn,xn),fr=(Object.keys(dr),[...Object.keys(cr),...ar]),pr={...cr,...or},hr=e=>e in pr,mr=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),vr=(e,t)=>{var n,r;if(null==t)return t;const o=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.varRef},a=e=>{var t;return null!=(t=o(e))?t:e},[i,s]=function(e){const t=[];let n="",r=!1;for(let o=0;ot=>function(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(e,a=!1)=>{var i,s,l;const u=Y(e,r),c=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,a={};for(const i in e){let s=Y(e[i],t);if(null==s)continue;if(s=X(s)&&n(s)?r(s):s,!Array.isArray(s)){a[i]=s;continue}const l=s.slice(0,o.length).length;for(let e=0;ee,defineMultiStyleConfig:t=>({parts:e,...t})}}function br(e,t){for(let n=t+1;n{const t=new WeakMap;return(n,r,o,a)=>{if(void 0===n)return e(n,r,o);t.has(n)||t.set(n,new Map);const i=t.get(n);if(i.has(r))return i.get(r);const s=e(n,r,o,a);return i.set(r,s),s}})((function(e,t,n,r){const o="string"==typeof t?t.split("."):[t];for(r=0;r{const o=e[r];t(o,r,e)&&(n[r]=o)})),n}var Tr=e=>Pr(e,(e=>null!=e));function Or(e,...t){return"function"==typeof e?e(...t):e}function Ar(...e){return function(t){e.some((e=>(null==e||e(t),null==t?void 0:t.defaultPrevented)))}}var Rr,jr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,zr=ht((function(e){return jr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Fr=function(e){return"theme"!==e},Mr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?zr:Fr},Nr=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Ir=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return dt(t,n,r),_t((function(){return ft(t,n,r)})),null},Lr=function t(n,r){var o,a,i=n.__emotion_real===n,s=i&&n.__emotion_base||n;void 0!==r&&(o=r.label,a=r.target);var l=Nr(n,r,i),u=l||Mr(s),c=!u("as");return function(){var d=arguments,f=i&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&f.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var h=d.length,m=1;mt=>{const{theme:n,css:r,__css:o,sx:a,...i}=t,s=Pr(i,((e,t)=>hr(t))),l=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const e of t)if(null!=e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in n&&delete n[t],n[t]=e[t]);return n}({},o,Or(e,t),Tr(s),a),u=gr(l)(t.theme);return r?[u,r]:u})({baseStyle:r}),i=Dr(t,o)(a);return e.forwardRef((function(t,n){const{colorMode:r,forced:o}=Cr();return e.createElement(i,{ref:n,"data-theme":o?r:void 0,...t})}))}var $r=function(){const e=new Map;return new Proxy(Br,{apply:(e,t,n)=>Br(...n),get:(t,n)=>(e.has(n)||e.set(n,Br(n)),e.get(n))})}(),Vr=Dt((function(e,t){const{direction:n,align:r,justify:o,wrap:a,basis:i,grow:s,shrink:l,...u}=e,c={display:"flex",flexDirection:n,alignItems:r,justifyContent:o,flexWrap:a,flexBasis:i,flexGrow:s,flexShrink:l};return(0,oe.jsx)($r.div,{ref:t,__css:c,...u})}));Vr.displayName="Flex",n(4146);var Wr,Ur,Hr=function(t,n){var r=arguments;if(null==n||!zt.call(n,"css"))return e.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=Nt,a[1]=function(e,t){var n={};for(var r in t)zt.call(t,r)&&(n[r]=t[r]);return n[Ft]=e,n}(t,n);for(var i=2;i{t.includes(r)||(n[r]=e[r])})),n}(a,["children"]))),d=(0,e.useRef)({});if(u){const e=function(e){return t=>{var n;const{variant:r,size:o,theme:a}=t,i=function(e){const t=e.__breakpoints;return function(e,n,r,o){var a,i;if(!t)return;const s={},l=function(e,t){return Array.isArray(e)?e:X(e)?t(e):null!=e?[e]:void 0}(r,t.toArrayValue);if(!l)return s;const u=l.length,c=1===u,d=!!e.parts;for(let r=0;r{Bt(s,{[e]:c?h[e]:{[p]:h[e]}})})):d?s[p]=h:c?Bt(s,h):s[p]=h)}return s}}(a);return Bt({},Y(null!=(n=e.baseStyle)?n:{},t),i(e,"sizes",o,t),i(e,"variants",r,t))}}(u),t=e(c);Xr(d.current,t)||(d.current=t)}return d.current}function Kr(e,t={}){return Yr(e,t)}function Zr(e,t={}){return Yr(e,t)}var Jr=function(){var e=Qr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),eo=Dt(((e,t)=>{const n=Kr("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:a="0.45s",emptyColor:i="transparent",className:s,...l}=xr(e),u=G("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:i,borderLeftColor:i,animation:`${Jr} ${a} linear infinite`,...n};return(0,oe.jsx)($r.div,{ref:t,__css:c,className:u,...l,children:r&&(0,oe.jsx)($r.span,{srOnly:!0,children:r})})}));eo.displayName="Spinner";var to=$r("div");to.displayName="Box";var no=Dt((function(e,t){const{size:n,centerContent:r=!0,...o}=e,a=r?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,oe.jsx)(to,{ref:t,boxSize:n,__css:{...a,flexShrink:0,flexGrow:0},...o})}));no.displayName="Square";var ro=Dt((function(e,t){const{size:n,...r}=e;return(0,oe.jsx)(no,{size:n,ref:t,borderRadius:"9999px",...r})}));function oo(t={}){const{name:n,strict:r=!0,hookName:o="useContext",providerName:a="Provider",errorMessage:i,defaultValue:s}=t,l=(0,e.createContext)(s);return l.displayName=n,[l.Provider,function t(){var n;const s=(0,e.useContext)(l);if(!s&&r){const e=new Error(null!=i?i:`${o} returned \`undefined\`. Seems you forgot to wrap component within ${a}`);throw e.name="ContextError",null==(n=Error.captureStackTrace)||n.call(Error,e,t),e}return s},l]}function ao(t){return e.Children.toArray(t).filter((t=>(0,e.isValidElement)(t)))}function io(e){const t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}ro.displayName="Circle";var[so,lo]=oo({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),uo=Dt((function(t,n){const r=Zr("Input",t),{children:o,className:a,...i}=xr(t),s=G("chakra-input__group",a),l={},u=ao(o),c=r.field;u.forEach((e=>{var t,n;r&&(c&&"InputLeftElement"===e.type.id&&(l.paddingStart=null!=(t=c.height)?t:c.h),c&&"InputRightElement"===e.type.id&&(l.paddingEnd=null!=(n=c.height)?n:c.h),"InputRightAddon"===e.type.id&&(l.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(l.borderStartRadius=0))}));const d=u.map((n=>{var r,o;const a=io({size:(null==(r=n.props)?void 0:r.size)||t.size,variant:(null==(o=n.props)?void 0:o.variant)||t.variant});return"Input"!==n.type.id?(0,e.cloneElement)(n,a):(0,e.cloneElement)(n,Object.assign(a,l,n.props))}));return(0,oe.jsx)($r.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...i,children:(0,oe.jsx)(so,{value:r,children:d})})}));uo.displayName="InputGroup";var co=$r("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),fo=Dt((function(e,t){var n,r;const{placement:o="left",...a}=e,i=lo(),s=i.field,l="left"===o?"insetStart":"insetEnd",u={[l]:"0",width:null!=(n=null==s?void 0:s.height)?n:null==s?void 0:s.h,height:null!=(r=null==s?void 0:s.height)?r:null==s?void 0:s.h,fontSize:null==s?void 0:s.fontSize,...i.element};return(0,oe.jsx)(co,{ref:t,__css:u,...a})}));fo.id="InputElement",fo.displayName="InputElement";var po=Dt((function(e,t){const{className:n,...r}=e,o=G("chakra-input__left-element",n);return(0,oe.jsx)(fo,{ref:t,placement:"left",className:o,...r})}));po.id="InputLeftElement",po.displayName="InputLeftElement";var ho=Dt((function(e,t){const{className:n,...r}=e,o=G("chakra-input__right-element",n);return(0,oe.jsx)(fo,{ref:t,placement:"right",className:o,...r})}));function mo(...e){return t=>{e.forEach((e=>{!function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)}))}}function vo(...t){return(0,e.useMemo)((()=>mo(...t)),t)}ho.id="InputRightElement",ho.displayName="InputRightElement";var[go,yo]=oo({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[bo,xo]=oo({strict:!1,name:"FormControlContext"}),wo=Dt((function(t,n){const r=Zr("Form",t),o=xr(t),{getRootProps:a,htmlProps:i,...s}=function(t){const{id:n,isRequired:r,isInvalid:o,isDisabled:a,isReadOnly:i,...s}=t,l=(0,e.useId)(),u=n||`field-${l}`,c=`${u}-label`,d=`${u}-feedback`,f=`${u}-helptext`,[p,h]=(0,e.useState)(!1),[m,v]=(0,e.useState)(!1),[g,y]=(0,e.useState)(!1),b=(0,e.useCallback)(((e={},t=null)=>({id:f,...e,ref:mo(t,(e=>{e&&v(!0)}))})),[f]),x=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,"data-focus":Z(g),"data-disabled":Z(a),"data-invalid":Z(o),"data-readonly":Z(i),id:void 0!==e.id?e.id:c,htmlFor:void 0!==e.htmlFor?e.htmlFor:u})),[u,a,g,o,i,c]),w=(0,e.useCallback)(((e={},t=null)=>({id:d,...e,ref:mo(t,(e=>{e&&h(!0)})),"aria-live":"polite"})),[d]),S=(0,e.useCallback)(((e={},t=null)=>({...e,...s,ref:t,role:"group","data-focus":Z(g),"data-disabled":Z(a),"data-invalid":Z(o),"data-readonly":Z(i)})),[s,a,g,o,i]),k=(0,e.useCallback)(((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})),[]);return{isRequired:!!r,isInvalid:!!o,isReadOnly:!!i,isDisabled:!!a,isFocused:!!g,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:p,setHasFeedbackText:h,hasHelpText:m,setHasHelpText:v,id:u,labelId:c,feedbackId:d,helpTextId:f,htmlProps:s,getHelpTextProps:b,getErrorMessageProps:w,getRootProps:S,getLabelProps:x,getRequiredIndicatorProps:k}}(o),l=G("chakra-form-control",t.className);return(0,oe.jsx)(bo,{value:s,children:(0,oe.jsx)(go,{value:r,children:(0,oe.jsx)($r.div,{...a({},n),className:l,__css:r.container})})})}));wo.displayName="FormControl";var So=Dt((function(e,t){const n=xo(),r=yo(),o=G("chakra-form__helper-text",e.className);return(0,oe.jsx)($r.div,{...null==n?void 0:n.getHelpTextProps(e,t),__css:r.helperText,className:o})}));So.displayName="FormHelperText";var ko=Dt((function(e,t){const{htmlSize:n,...r}=e,o=Zr("Input",r),a=function(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...a}=function(e){var t,n,r;const o=xo(),{id:a,disabled:i,readOnly:s,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:p,onBlur:h,...m}=e,v=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==o?void 0:o.hasFeedbackText)&&(null==o?void 0:o.isInvalid)&&v.push(o.feedbackId),(null==o?void 0:o.hasHelpText)&&v.push(o.helpTextId),{...m,"aria-describedby":v.join(" ")||void 0,id:null!=a?a:null==o?void 0:o.id,isDisabled:null!=(t=null!=i?i:f)?t:null==o?void 0:o.isDisabled,isReadOnly:null!=(n=null!=s?s:d)?n:null==o?void 0:o.isReadOnly,isRequired:null!=(r=null!=l?l:u)?r:null==o?void 0:o.isRequired,isInvalid:null!=c?c:null==o?void 0:o.isInvalid,onFocus:ee(null==o?void 0:o.onFocus,p),onBlur:ee(null==o?void 0:o.onBlur,h)}}(e);return{...a,disabled:t,readOnly:r,required:o,"aria-invalid":J(n),"aria-required":J(o),"aria-readonly":J(r)}}(xr(r)),i=G("chakra-input",e.className);return(0,oe.jsx)($r.input,{size:n,...a,__css:o.field,ref:t,className:i})}));ko.displayName="Input",ko.id="Input";var Eo=e=>(0,oe.jsx)($r.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});Eo.displayName="StackItem";var Co=Dt(((t,n)=>{const{isInline:r,direction:o,align:a,justify:i,spacing:s="0.5rem",wrap:l,children:u,divider:c,className:d,shouldWrapChildren:f,...p}=t,h=r?"row":null!=o?o:"column",m=(0,e.useMemo)((()=>function(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":ne(n,(e=>r[e]))}}({spacing:s,direction:h})),[s,h]),v=!!c,g=!f&&!v,y=(0,e.useMemo)((()=>{const t=ao(u);return g?t:t.map(((n,r)=>{const o=void 0!==n.key?n.key:r,a=r+1===t.length,i=f?(0,oe.jsx)(Eo,{children:n},o):n;if(!v)return i;const s=(0,e.cloneElement)(c,{__css:m}),l=a?null:s;return(0,oe.jsxs)(e.Fragment,{children:[i,l]},o)}))}),[c,m,v,g,f,u]),b=G("chakra-stack",d);return(0,oe.jsx)($r.div,{ref:n,display:"flex",alignItems:a,justifyContent:i,flexDirection:h,flexWrap:l,gap:v?void 0:s,className:b,...p,children:y})}));Co.displayName="Stack";var _o=Dt(((e,t)=>(0,oe.jsx)(Co,{align:"center",...e,direction:"column",ref:t})));_o.displayName="VStack";var Po=Dt(((e,t)=>(0,oe.jsx)(Co,{align:"center",...e,direction:"row",ref:t})));Po.displayName="HStack";var To=Dt((function(e,t){const n=Kr("Text",e),{className:r,align:o,decoration:a,casing:i,...s}=xr(e),l=io({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,oe.jsx)($r.p,{ref:t,className:G("chakra-text",e.className),...l,...s,__css:n})}));To.displayName="Text";var Oo=Dt((function(e,t){const n=Kr("Badge",e),{className:r,...o}=xr(e);return(0,oe.jsx)($r.span,{ref:t,className:G("chakra-badge",e.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})}));function Ao(t={}){const{strict:n=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=t,a=(0,e.createContext)(void 0);return a.displayName=o,[a.Provider,function t(){var o;const i=(0,e.useContext)(a);if(!i&&n){const e=new Error(r);throw e.name="ContextError",null==(o=Error.captureStackTrace)||o.call(Error,e,t),e}return i},a]}function Ro(t){const{cssVarsRoot:n,theme:r,children:o}=t,a=(0,e.useMemo)((()=>function(e){var t;const n=function(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}(e),r=function(e){return function(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}(e,lr)}(n),o=function(e){return e.semanticTokens}(n),a=function({tokens:e,semanticTokens:t}){const n={};return sr(e,((e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!1,value:e})})),sr(t,((e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!0,value:e})}),{stop:e=>Object.keys(e).every(ur)}),n}({tokens:r,semanticTokens:o}),i=null==(t=n.config)?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=function(e,t){let n={};const r={};for(const[o,a]of Object.entries(e)){const{isSemantic:i,value:s}=a,{variable:l,reference:u}=ir(o,null==t?void 0:t.cssVarPrefix);if(!i){if(o.startsWith("space")){const e=o.split("."),[t,...n]=e,a=`${t}.-${n.join(".")}`,i=Mn.negate(s),c=Mn.negate(u);r[a]={value:i,var:l,varRef:c}}n[l]=s,r[o]={value:s,var:l,varRef:u};continue}const c=n=>{const r=[String(o).split(".")[0],n].join(".");if(!e[r])return n;const{reference:a}=ir(r,null==t?void 0:t.cssVarPrefix);return a},d=X(s)?s:{default:s};n=Bt(n,Object.entries(d).reduce(((e,[t,n])=>{var r,o;if(!n)return e;const a=c(`${n}`);return"default"===t?(e[l]=a,e):(e[null!=(o=null==(r=or)?void 0:r[t])?o:t]={[l]:a},e)}),{})),r[o]={value:u,var:l,varRef:u}}return{cssVars:n,cssMap:r}}(a,{cssVarPrefix:i});return Object.assign(n,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...l},__cssMap:s,__breakpoints:qn(n.breakpoints)}),n}(r)),[r]);return(0,oe.jsxs)(jt,{theme:a,children:[(0,oe.jsx)(jo,{root:n}),o]})}function jo({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return(0,oe.jsx)(qr,{styles:e=>({[t]:e.__cssVars})})}Oo.displayName="Badge";var[zo,Fo]=Ao({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function Mo(){const{colorMode:e}=Cr();return(0,oe.jsx)(qr,{styles:t=>{const n=Or(_r(t,"styles.global"),{theme:t,colorMode:e});if(n)return gr(n)(t)}})}var[No,Io]=Ao({name:"Card"+"StylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "" '}),Lo=Dt((function(e,t){const{className:n,children:r,direction:o="column",justify:a,align:i,...s}=xr(e),l=Zr("Card",e);return(0,oe.jsx)($r.div,{ref:t,className:G("chakra-card",n),__css:{display:"flex",flexDirection:o,justifyContent:a,alignItems:i,position:"relative",minWidth:0,wordWrap:"break-word",...l.container},...s,children:(0,oe.jsx)(No,{value:l,children:r})})})),Do=Dt((function(e,t){const{className:n,...r}=e,o=Io();return(0,oe.jsx)($r.div,{ref:t,className:G("chakra-card__header",n),__css:o.header,...r})})),Bo=Dt((function(e,t){const n=Kr("Heading",e),{className:r,...o}=xr(e);return(0,oe.jsx)($r.h2,{ref:t,className:G("chakra-heading",e.className),...o,__css:n})}));Bo.displayName="Heading";var $o=Dt((function(e,t){const{className:n,justify:r,...o}=e,a=Io();return(0,oe.jsx)($r.div,{ref:t,className:G("chakra-card__footer",n),__css:{display:"flex",justifyContent:r,...a.footer},...o})})),[Vo,Wo]=oo({strict:!1,name:"ButtonGroupContext"});function Uo(t){const{children:n,className:r,...o}=t,a=(0,e.isValidElement)(n)?(0,e.cloneElement)(n,{"aria-hidden":!0,focusable:!1}):n,i=G("chakra-button__icon",r);return(0,oe.jsx)($r.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...o,className:i,children:a})}function Ho(t){const{label:n,placement:r,spacing:o="0.5rem",children:a=(0,oe.jsx)(eo,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...l}=t,u=G("chakra-button__spinner",i),c="start"===r?"marginEnd":"marginStart",d=(0,e.useMemo)((()=>({display:"flex",alignItems:"center",position:n?"relative":"absolute",[c]:n?o:0,fontSize:"1em",lineHeight:"normal",...s})),[s,n,c,o]);return(0,oe.jsx)($r.div,{className:u,...l,__css:d,children:a})}Uo.displayName="ButtonIcon",Ho.displayName="ButtonSpinner";var qo=Dt(((t,n)=>{const r=Wo(),o=Kr("Button",{...r,...t}),{isDisabled:a=(null==r?void 0:r.isDisabled),isLoading:i,isActive:s,children:l,leftIcon:u,rightIcon:c,loadingText:d,iconSpacing:f="0.5rem",type:p,spinner:h,spinnerPlacement:m="start",className:v,as:g,...y}=xr(t),b=(0,e.useMemo)((()=>{const e={...null==o?void 0:o._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...o,...!!r&&{_focus:e}}}),[o,r]),{ref:x,type:w}=function(t){const[n,r]=(0,e.useState)(!t),o=(0,e.useCallback)((e=>{e&&r("BUTTON"===e.tagName)}),[]);return{ref:o,type:n?"button":void 0}}(g),S={rightIcon:c,leftIcon:u,iconSpacing:f,children:l};return(0,oe.jsxs)($r.button,{ref:vo(n,x),as:g,type:null!=p?p:w,"data-active":Z(s),"data-loading":Z(i),__css:b,className:G("chakra-button",v),...y,disabled:a||i,children:[i&&"start"===m&&(0,oe.jsx)(Ho,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:h}),i?d||(0,oe.jsx)($r.span,{opacity:0,children:(0,oe.jsx)(Qo,{...S})}):(0,oe.jsx)(Qo,{...S}),i&&"end"===m&&(0,oe.jsx)(Ho,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:h})]})}));function Qo(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return(0,oe.jsxs)(oe.Fragment,{children:[t&&(0,oe.jsx)(Uo,{marginEnd:o,children:t}),r,n&&(0,oe.jsx)(Uo,{marginStart:o,children:n})]})}qo.displayName="Button";var Go={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Xo=e.createContext&&e.createContext(Go),Yo=["attr","size","title"];function Ko(){return Ko=Object.assign?Object.assign.bind():function(e){for(var t=1;te.createElement(t.tag,Jo({key:n},t.attr),ta(t.child))))}function na(t){return n=>e.createElement(ra,Ko({attr:Jo({},t.attr)},n),ta(t.child))}function ra(t){var n=n=>{var r,{attr:o,size:a,title:i}=t,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Yo),l=a||n.size||"1em";return n.className&&(r=n.className),t.className&&(r=(r?r+" ":"")+t.className),e.createElement("svg",Ko({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,s,{className:r,style:Jo(Jo({color:t.color||n.color},n.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&e.createElement("title",null,i),t.children)};return void 0!==Xo?e.createElement(Xo.Consumer,null,(e=>n(e))):n(Go)}function oa(e){return na({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M112 111v290c0 17.44 17 28.52 31 20.16l247.9-148.37c12.12-7.25 12.12-26.33 0-33.58L143 90.84c-14-8.36-31 2.72-31 20.16z"},child:[]}]})(e)}function aa(e){return na({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M338.29 338.29 448 448"},child:[]}]})(e)}var ia=n(181),sa=n.n(ia);function la(e,t){if(e){if("string"==typeof e)return ua(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ua(e,t):void 0}}function ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0?[d].concat(function(e){return function(e){if(Array.isArray(e))return ua(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||la(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(r.filter((function(e){return"Favorites"!==e.name})))):r;return t().createElement(to,null,t().createElement(uo,{mb:"26px"},t().createElement(po,{pointerEvents:"none",padding:"0px 0px 0px 8px"},t().createElement(aa,{style:{width:"18px",height:"18px"},color:"#737373"})),t().createElement(ko,{placeholder:Q("Search Templates","user-registration"),value:l,onChange:function(e){var t=e.target.value;u(t),c(t)},_focus:{borderColor:"#475bb2",outline:"none",boxShadow:"none"},fontSize:"16px",fontWeight:"400",borderRadius:"8px",borderColor:"#B0B0B0 !important"})),t().createElement(_o,{align:"stretch",gap:"2px"},f.map((function(e){return t().createElement(Po,{key:e.name,p:"12px",_hover:{bg:"#EDEFF7",color:"#475bb2","& > .badge":{bg:(e.name,"#FFFFFF")}},borderRadius:"md",cursor:"pointer",bg:o===e.name?"#EDEFF7":"transparent",onClick:function(){return a(e.name)},justifyContent:"space-between"},t().createElement(To,{color:o===e.name?"#475bb2":"",fontWeight:"500",margin:"0px",fontSize:"16px",lineHeight:"20px",alignItems:"center"},e.name),t().createElement(Oo,{className:"badge",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",padding:"6px",borderRadius:"8px",gap:"10px",color:o===e.name?"#475bb2":"",bg:o===e.name?"white":"#F2F2F2"},e.count))})),t().createElement(Lo,{align:"center",background:"linear-gradient(70deg, #475bb2, #94A7E7B2)",padding:"40px 24px",marginTop:"26px"},t().createElement(Do,{padding:"0px"},t().createElement(Bo,{fontSize:"18px",color:"#ffffff",lineHeight:"28px",padding:"0px 20px",textAlign:"center"},Q("Can't Find The Form Template You Need?","user-registration"))),t().createElement($o,{padding:"0",width:"100%"},t().createElement("a",{href:"https://wpuserregistration.com/request-template",target:"_blank",rel:"noopener noreferrer",style:{width:"inherit"}},t().createElement(qo,{backgroundColor:"#FFFFFF",color:"#475bb2",padding:"12px 10px",borderRadius:"4px",width:"inherit",fontWeight:"500",_hover:{backgroundColor:"#475BB2",color:"white !important"}},Q("Request Template","user-registration")))))))}));const da=ca;var fa={path:(0,oe.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,oe.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,oe.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,oe.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},pa=Dt(((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:a=!1,children:i,className:s,__css:l,...u}=e,c={ref:t,focusable:a,className:G("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...Kr("Icon",e)}},d=null!=r?r:fa.viewBox;if(n&&"string"!=typeof n)return(0,oe.jsx)($r.svg,{as:n,...c,...u});const f=null!=i?i:fa.path;return(0,oe.jsx)($r.svg,{verticalAlign:"middle",viewBox:d,...c,...u,children:f})}));function ha(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}pa.displayName="Icon";var ma=ha()?e.useLayoutEffect:e.useEffect;function va(t,n=[]){const r=(0,e.useRef)(t);return ma((()=>{r.current=t})),(0,e.useCallback)(((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)}),n)}var ga=(e,t)=>e.find((e=>e.id===t));function ya(e,t){const n=ba(e,t);return{position:n,index:n?e[n].findIndex((e=>e.id===t)):-1}}function ba(e,t){for(const[n,r]of Object.entries(e))if(ga(r,t))return n}function xa(e){return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,bottom:e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}}function wa(t,n=[]){const r=(0,e.useRef)(t);return(0,e.useEffect)((()=>{r.current=t})),(0,e.useCallback)(((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)}),n)}function Sa(t,n){const r=(0,e.useRef)(!1),o=(0,e.useRef)(!1);(0,e.useEffect)((()=>{if(r.current&&o.current)return t();o.current=!0}),n),(0,e.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[])}var ka=(0,e.createContext)(null);function Ea(t){var n=(0,e.useRef)(null);return null===n.current&&(n.current=t()),n.current}function Ca(){var t=(0,e.useContext)(ka);if(null===t)return[!0,null];var n=t.isPresent,r=t.onExitComplete,o=t.register,a=Ta();return(0,e.useEffect)((function(){return o(a)}),[]),!n&&r?[!1,function(){return null==r?void 0:r(a)}]:[!0]}var _a=0,Pa=function(){return _a++},Ta=function(){return Ea(Pa)},Oa=function(e,t){return Oa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Oa(e,t)};function Aa(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Oa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ra=function(){return Ra=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Fa(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;operformance.now():()=>Date.now(),ei="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Ja())),Za);let ti=!0,ni=!1,ri=!1;const oi={delta:0,timestamp:0},ai=["read","update","preRender","render","postRender"],ii=ai.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,u=l?t:n;return a&&i.add(e),-1===u.indexOf(e)&&(u.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:l=>{if(o)a=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;nni=!0)),e)),{}),si=ai.reduce(((e,t)=>{const n=ii[t];return e[t]=(e,t=!1,r=!1)=>(ni||fi(),n.schedule(e,t,r)),e}),{}),li=ai.reduce(((e,t)=>(e[t]=ii[t].cancel,e)),{}),ui=ai.reduce(((e,t)=>(e[t]=()=>ii[t].process(oi),e)),{}),ci=e=>ii[e].process(oi),di=e=>{ni=!1,oi.delta=ti?Za:Math.max(Math.min(e-oi.timestamp,40),1),oi.timestamp=e,ri=!0,ai.forEach(ci),ri=!1,ni&&(ti=!1,ei(di))},fi=()=>{ni=!0,ti=!0,ri||ei(di)},pi=()=>oi,hi=si,mi=(e,t,n)=>-n*e+n*t+e;function vi(e,t){return t?e*(1e3/t):0}function gi(e,t){-1===e.indexOf(t)&&e.push(t)}function yi(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var bi=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return gi(this.subscriptions,e),function(){return yi(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;oMath.min(Math.max(n,e),t);const Ei=12;function Ci(e,t){return e*Math.sqrt(1-t*t)}const _i=["duration","bounce"],Pi=["stiffness","damping","mass"];function Ti(e,t){return t.some((t=>void 0!==e[t]))}function Oi(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,a=ja(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Ti(e,Pi)&&Ti(e,_i)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a,i=1-t;i=ki(.05,1,i),e=ki(.01,10,e/1e3),i<1?(o=t=>{const r=t*i,o=r*e;return.001-(r-n)/Ci(t,i)*Math.exp(-o)},a=t=>{const r=t*i*e,a=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=Ci(Math.pow(t,2),i);return(.001-o(t)>0?-1:1)*((a-s)*l)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n{const s=Math.exp(-a*i*o);return n-s*((e+a*i*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},h=n=>{const o=Math.exp(-a*i*n);return a*i*o*(Math.sin(t*n)*(e+a*i*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+a*i*r)-t*r*Math.sin(t*n))}}else if(1===a)p=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(a*a-1);p=o=>{const s=Math.exp(-a*i*o),l=Math.min(t*o,300);return n-s*((e+a*i*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{const t=p(e);if(f)i.done=e>=d;else{const a=1e3*h(e),s=Math.abs(a)<=r,l=Math.abs(n-t)<=o;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}Oi.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Ai=e=>0,Ri=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},ji=(e,t)=>n=>Math.max(Math.min(n,t),e),zi=e=>e%1?Number(e.toFixed(5)):e,Fi=/(-)?([\d]*\.?[\d])+/g,Mi=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Ni=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Ii(e){return"string"==typeof e}const Li={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Di=Object.assign(Object.assign({},Li),{transform:ji(0,1)}),Bi=Object.assign(Object.assign({},Li),{default:1}),$i=(e,t)=>n=>Boolean(Ii(n)&&Ni.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Vi=(e,t,n)=>r=>{if(!Ii(r))return r;const[o,a,i,s]=r.match(Fi);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},Wi=ji(0,255),Ui=Object.assign(Object.assign({},Li),{transform:e=>Math.round(Wi(e))}),Hi={test:$i("rgb","red"),parse:Vi("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ui.transform(e)+", "+Ui.transform(t)+", "+Ui.transform(n)+", "+zi(Di.transform(r))+")"},qi={test:$i("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Hi.transform},Qi=e=>({test:t=>Ii(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Gi=Qi("deg"),Xi=Qi("%"),Yi=Qi("px"),Ki=Qi("vh"),Zi=Qi("vw"),Ji=Object.assign(Object.assign({},Xi),{parse:e=>Xi.parse(e)/100,transform:e=>Xi.transform(100*e)}),es={test:$i("hsl","hue"),parse:Vi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xi.transform(zi(t))+", "+Xi.transform(zi(n))+", "+zi(Di.transform(r))+")"};function ts(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ns({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,a=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=ts(s,r,e+1/3),a=ts(s,r,e),i=ts(s,r,e-1/3)}else o=a=i=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*i),alpha:r}}const rs=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},os=[qi,Hi,es],as=e=>os.find((t=>t.test(e))),is=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,ss=(e,t)=>{let n=as(e),r=as(t);is(e),is(t);let o=n.parse(e),a=r.parse(t);n===es&&(o=ns(o),n=Hi),r===es&&(a=ns(a),r=Hi);const i=Object.assign({},o);return e=>{for(const t in i)"alpha"!==t&&(i[t]=rs(o[t],a[t],e));return i.alpha=mi(o.alpha,a.alpha,e),n.transform(i)}},ls={test:e=>Hi.test(e)||qi.test(e)||es.test(e),parse:e=>Hi.test(e)?Hi.parse(e):es.test(e)?es.parse(e):qi.parse(e),transform:e=>Ii(e)?e:e.hasOwnProperty("red")?Hi.transform(e):es.transform(e)},us="${c}",cs="${n}";function ds(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(Mi);r&&(n=r.length,e=e.replace(Mi,us),t.push(...r.map(ls.parse)));const o=e.match(Fi);return o&&(e=e.replace(Fi,cs),t.push(...o.map(Li.parse))),{values:t,numColors:n,tokenised:e}}function fs(e){return ds(e).values}function ps(e){const{values:t,numColors:n,tokenised:r}=ds(e),o=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,ms={test:function(e){var t,n,r,o;return isNaN(e)&&Ii(e)&&(null!==(n=null===(t=e.match(Fi))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(Mi))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:fs,createTransformer:ps,getAnimatableNone:function(e){const t=fs(e);return ps(e)(t.map(hs))}},vs=e=>"number"==typeof e,gs=(e,t)=>n=>t(e(n)),ys=(...e)=>e.reduce(gs);function bs(e,t){return vs(e)?n=>mi(e,t,n):ls.test(e)?ss(e,t):ks(e,t)}const xs=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>bs(e,t[n])));return e=>{for(let t=0;t{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=bs(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Ss(e){const t=ms.parse(e),n=t.length;let r=0,o=0,a=0;for(let e=0;e{const n=ms.createTransformer(t),r=Ss(e),o=Ss(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?ys(xs(r.parsed,o.parsed),n):n=>`${n>0?t:e}`},Es=(e,t)=>n=>mi(e,t,n);function Cs(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],o=n||("number"==typeof(a=e[0])?Es:"string"==typeof a?ls.test(a)?ss:ks:Array.isArray(a)?xs:"object"==typeof a?ws:void 0);var a;const i=e.length-1;for(let n=0;nn(Ri(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){let t=1;for(;to||t===r);t++);a=t-1}const s=Ri(e[a],e[a+1],o);return t[a](s)}}(e,i);return n?t=>s(ki(e[0],e[a-1],t)):s}const _s=e=>t=>1-e(1-t),Ps=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ts=e=>t=>t*t*((e+1)*t-e),Os=4/11,As=8/11,Rs=e=>e,js=e=>Math.pow(e,2);const zs=_s(js),Fs=Ps(js),Ms=e=>1-Math.sin(Math.acos(e)),Ns=_s(Ms),Is=Ps(Ns),Ls=Ts(1.525),Ds=_s(Ls),Bs=Ps(Ls),$s=(()=>{const e=Ts(1.525);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(),Vs=4356/361,Ws=35442/1805,Us=16061/1805,Hs=e=>{if(1===e||0===e)return e;const t=e*e;return et||Fs)).splice(0,e.length-1)}function Gs({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const a={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(r&&r.length===i.length?r:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(i),o);function l(){return Cs(s,i,{ease:Array.isArray(n)?n:Qs(i,n)})}let u=l();return{next:e=>(a.value=u(e),a.done=e>=o,a),flipTarget:()=>{i.reverse(),u=l()}}}const Xs={keyframes:Gs,spring:Oi,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=n*e;const l=t+s,u=void 0===a?l:a(l);return u!==l&&(s=u-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>o||t<-o),i.value=i.done?u:u+t,i},flipTarget:()=>{}}}},Ys=1/60*1e3,Ks="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Zs="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Ks())),Ys);let Js=!0,el=!1,tl=!1;const nl={delta:0,timestamp:0},rl=["read","update","preRender","render","postRender"],ol=rl.reduce(((e,t)=>(e[t]=function(){let e=[],t=[],n=0,r=!1,o=!1;const a=new WeakSet,i={schedule:(o,i=!1,s=!1)=>{const l=s&&r,u=l?e:t;return i&&a.add(o),-1===u.indexOf(o)&&(u.push(o),l&&r&&(n=e.length)),o},cancel:e=>{const n=t.indexOf(e);-1!==n&&t.splice(n,1),a.delete(e)},process:s=>{if(r)o=!0;else{if(r=!0,[e,t]=[t,e],t.length=0,n=e.length,n)for(let t=0;t{const n=ol[t];return e[t]=(e,t=!1,r=!1)=>(el||ul(),n.schedule(e,t,r)),e}),{}),il=rl.reduce(((e,t)=>(e[t]=ol[t].cancel,e)),{}),sl=(rl.reduce(((e,t)=>(e[t]=()=>ol[t].process(nl),e)),{}),e=>ol[e].process(nl)),ll=e=>{el=!1,nl.delta=Js?Ys:Math.max(Math.min(e-nl.timestamp,40),1),nl.timestamp=e,tl=!0,rl.forEach(sl),tl=!1,el&&(Js=!1,Zs(ll))},ul=()=>{el=!0,Js=!0,tl||Zs(ll)},cl=al;function dl(e,t,n=0){return e-t-n}const fl=e=>{const t=({delta:t})=>e(t);return{start:()=>cl.update(t,!0),stop:()=>il.update(t)}};function pl(e){var t,n,{from:r,autoplay:o=!0,driver:a=fl,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:h}=e,m=ja(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,g,y,{to:b}=m,x=0,w=m.duration,S=!1,k=!0;const E=function(e){if(Array.isArray(e.to))return Gs;if(Xs[e.type])return Xs[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Gs:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Oi:Gs}(m);(null===(n=(t=E).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(y=Cs([0,100],[r,b],{clamp:!1}),r=0,b=100);const C=E(Object.assign(Object.assign({},m),{from:r,to:b}));return o&&(null==c||c(),v=a((function(e){if(k||(e=-e),i+=e,!S){const e=C.next(Math.max(0,i));g=e.value,y&&(g=y(g)),S=k?e.done:i<=0}null==h||h(g),S&&(0===x&&(null!=w||(w=i)),x=t+n:e<=-n}(i,w,u,k)&&(x++,"reverse"===l?(k=x%2==0,i=function(e,t,n=0,r=!0){return r?dl(t+-e,t,n):t-(e-t)+n}(i,w,u,k)):(i=dl(i,w,u),"mirror"===l&&C.flipTarget()),S=!1,p&&p()):(v.stop(),f&&f()))})),v.start()),{stop:()=>{null==d||d(),v.stop()}}}var hl=function(e){return 1e3*e};const ml=(e,t)=>1-3*t+3*e,vl=(e,t)=>3*t-6*e,gl=e=>3*e,yl=(e,t,n)=>((ml(t,n)*e+vl(t,n))*e+gl(t))*e,bl=(e,t,n)=>3*ml(t,n)*e*e+2*vl(t,n)*e+gl(t),xl=.1;function wl(e,t,n,r){if(e===t&&n===r)return Rs;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=yl(t*xl,e,n);return a=>0===a||1===a?a:yl(function(t){let r=0,a=1;for(;10!==a&&o[a]<=t;++a)r+=xl;--a;const i=r+(t-o[a])/(o[a+1]-o[a])*xl,s=bl(i,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=bl(t,n,r);if(0===o)return t;t-=(yl(t,n,r)-e)/o}return t}(t,i,e,n):0===s?i:function(e,t,n,r,o){let a,i,s=0;do{i=t+(n-t)/2,a=yl(i,r,o)-e,a>0?n=i:t=i}while(Math.abs(a)>1e-7&&++s<10);return i}(t,r,r+xl,e,n)}(a),t,r)}var Sl={linear:Rs,easeIn:js,easeInOut:Fs,easeOut:zs,circIn:Ms,circInOut:Is,circOut:Ns,backIn:Ls,backInOut:Bs,backOut:Ds,anticipate:$s,bounceIn:qs,bounceInOut:e=>e<.5?.5*(1-Hs(1-2*e)):.5*Hs(2*e-1)+.5,bounceOut:Hs},kl=function(e){if(Array.isArray(e)){e.length;var t=za(e,4);return wl(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),Sl[e]):e},El=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!ms.test(t)||t.startsWith("url(")))},Cl=function(e){return Array.isArray(e)},_l=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Pl=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Tl=function(){return{type:"keyframes",ease:"linear",duration:.3}},Ol=function(e){return{type:"keyframes",duration:.8,values:e}},Al={x:_l,y:_l,z:_l,rotate:_l,rotateX:_l,rotateY:_l,rotateZ:_l,scaleX:Pl,scaleY:Pl,scale:Pl,opacity:Tl,backgroundColor:Tl,color:Tl,default:Pl};const Rl=new Set(["brightness","contrast","saturate","opacity"]);function jl(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Fi)||[];if(!r)return e;const o=n.replace(r,"");let a=Rl.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const zl=/([a-z-]*)\(.*?\)/g,Fl=Object.assign(Object.assign({},ms),{getAnimatableNone:e=>{const t=e.match(zl);return t?t.map(jl).join(" "):e}});var Ml=Ra(Ra({},Li),{transform:Math.round}),Nl={borderWidth:Yi,borderTopWidth:Yi,borderRightWidth:Yi,borderBottomWidth:Yi,borderLeftWidth:Yi,borderRadius:Yi,radius:Yi,borderTopLeftRadius:Yi,borderTopRightRadius:Yi,borderBottomRightRadius:Yi,borderBottomLeftRadius:Yi,width:Yi,maxWidth:Yi,height:Yi,maxHeight:Yi,size:Yi,top:Yi,right:Yi,bottom:Yi,left:Yi,padding:Yi,paddingTop:Yi,paddingRight:Yi,paddingBottom:Yi,paddingLeft:Yi,margin:Yi,marginTop:Yi,marginRight:Yi,marginBottom:Yi,marginLeft:Yi,rotate:Gi,rotateX:Gi,rotateY:Gi,rotateZ:Gi,scale:Bi,scaleX:Bi,scaleY:Bi,scaleZ:Bi,skew:Gi,skewX:Gi,skewY:Gi,distance:Yi,translateX:Yi,translateY:Yi,translateZ:Yi,x:Yi,y:Yi,z:Yi,perspective:Yi,transformPerspective:Yi,opacity:Di,originX:Ji,originY:Ji,originZ:Yi,zIndex:Ml,fillOpacity:Di,strokeOpacity:Di,numOctaves:Ml},Il=Ra(Ra({},Nl),{color:ls,backgroundColor:ls,outlineColor:ls,fill:ls,stroke:ls,borderColor:ls,borderTopColor:ls,borderRightColor:ls,borderBottomColor:ls,borderLeftColor:ls,filter:Fl,WebkitFilter:Fl}),Ll=function(e){return Il[e]};function Dl(e,t){var n,r=Ll(e);return r!==Fl&&(r=ms),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var Bl=function(e){return Cl(e)?e[e.length-1]||0:e};function $l(e,t,n){var r,o,a,i;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Fa([],za(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=ja(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Ra(Ra({},e),(o=n,a=t.to,i=Cl(a)?Ol:Al[o]||Al.default,Ra({to:a},i(a))))),Ra(Ra({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=ja(e,["ease","times","yoyo","flip","loop"]),s=Ra({},i);return n&&(s.offset=n),i.duration&&(s.duration=hl(i.duration)),i.repeatDelay&&(s.repeatDelay=hl(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(kl):kl(t)),"tween"===i.type&&(s.type="keyframes"),(r||a||o)&&(r?s.repeatType="reverse":a?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=a||r||o||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}function Vl(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Wl(e){return"number"==typeof e?0:Dl("",e)}function Ul(e,t){return e[t]||e.default||e}function Hl(e,t,n,r){return void 0===r&&(r={}),t.start((function(o){var a,i,s=function(e,t,n,r,o){var a,i=Ul(r,e),s=null!==(a=i.from)&&void 0!==a?a:t.get(),l=El(e,n);"none"===s&&l&&"string"==typeof n?s=Dl(e,n):Vl(s)&&"string"==typeof n?s=Wl(n):!Array.isArray(n)&&Vl(n)&&"string"==typeof s&&(n=Wl(s));var u=El(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),u&&l&&!1!==i.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:a=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:p}){let h;function m(e){return void 0!==n&&er}function v(e){return void 0===n?r:void 0===r||Math.abs(n-e){var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function y(e){g(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let r=o*t+e;void 0!==u&&(r=u(r));const i=v(r),s=i===n?-1:1;let c,d;const f=e=>{c=d,d=e,t=vi(e-c,nl.delta),(1===s&&e>i||-1===s&&enull==h?void 0:h.stop()}}(Ra(Ra({},r),i)):pl(Ra(Ra({},$l(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,r,a=Bl(n);return t.set(a),o(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,a),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(Ul(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return i=s()};return l?a=setTimeout(u,hl(l)):u(),function(){clearTimeout(a),null==i||i.stop()}}))}var ql=["TopLeft","TopRight","BottomLeft","BottomRight"],Ql=ql.length,Gl=function(e){return"string"==typeof e?parseFloat(e):e},Xl=function(e){return"number"==typeof e||Yi.test(e)};function Yl(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Kl=Jl(0,.5,Ns),Zl=Jl(.5,.95,Rs);function Jl(e,t,n){return function(r){return rt?1:n(Ri(e,t,r))}}function eu(e,t){e.min=t.min,e.max=t.max}function tu(e,t){eu(e.x,t.x),eu(e.y,t.y)}function nu(e){return void 0===e||1===e}function ru(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!nu(t)||!nu(n)||!nu(r)}function ou(e){return ru(e)||au(e.x)||au(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function au(e){return e&&"0%"!==e}function iu(e,t,n){return n+t*(e-n)}function su(e,t,n,r,o){return void 0!==o&&(e=iu(e,o,r)),iu(e,n,r)+t}function lu(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=su(e.min,t,n,r,o),e.max=su(e.max,t,n,r,o)}function uu(e,t){var n=t.x,r=t.y;lu(e.x,n.translate,n.scale,n.originPoint),lu(e.y,r.translate,r.scale,r.originPoint)}function cu(e,t){e.min=e.min+t,e.max=e.max+t}function du(e,t,n){var r=za(n,3),o=r[0],a=r[1],i=r[2],s=void 0!==t[i]?t[i]:.5,l=mi(e.min,e.max,s);lu(e,t[o],t[a],l,t.scale)}var fu=["x","scaleX","originX"],pu=["y","scaleY","originY"];function hu(e,t){du(e.x,t,fu),du(e.y,t,pu)}const mu=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),vu=e=>mu(e)&&e.hasOwnProperty("z"),gu=(e,t)=>Math.abs(e-t);function yu(e,t){if(vs(e)&&vs(t))return gu(e,t);if(mu(e)&&mu(t)){const n=gu(e.x,t.x),r=gu(e.y,t.y),o=vu(e)&&vu(t)?gu(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}function bu(e){return e.max-e.min}function xu(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),yu(e,t)=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;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.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,o,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===a||a.call(o)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),Mu={};function Nu(e,t,n){var r=e.x.translate/t.x,o=e.y.translate/t.y,a="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(n){var i=n.rotate,s=n.rotateX,l=n.rotateY;i&&(a+="rotate(".concat(i,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),l&&(a+="rotateY(".concat(l,"deg) "))}return"translate3d(0px, 0px, 0) scale(1, 1)"===(a+="scale(".concat(e.x.scale,", ").concat(e.y.scale,")"))?"none":a}function Iu(e){return[e("x"),e("y")]}var Lu=["","X","Y","Z"],Du=["transformPerspective","x","y","z"];function Bu(e,t){return Du.indexOf(e)-Du.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return Lu.forEach((function(t){return Du.push(e+t)}))}));var $u=new Set(Du);function Vu(e){return $u.has(e)}var Wu=new Set(["originX","originY","originZ"]);function Uu(e){return Wu.has(e)}var Hu=function(e,t){return e.depth-t.depth},qu=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){gi(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){yi(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Hu),this.isDirty=!1,this.children.forEach(e)},e}();function Qu(e){var t,n=Si(e)?e.get():e;return t=n,Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?n.toValue():n}var Gu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Xu(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.resetTransform;return function(){function e(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(nc),o.nodes.forEach(rc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?Fa(Fa([],za(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function dc(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function fc(e){dc(e.x),dc(e.y)}var pc=1,hc=(0,e.createContext)({}),mc=(0,e.createContext)({}),vc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Aa(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(e.Component);function gc(t){var n=t.preloadedFeatures,r=t.createVisualElement,o=t.projectionNodeConstructor,a=t.useRender,i=t.useVisualState,s=t.Component;return n&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?Na.projectionNodeConstructor=e[t]:Na[t].Component=e[t])}(n),(0,e.forwardRef)((function(t,n){var l=function(t){var n,r=t.layoutId,o=null===(n=(0,e.useContext)(hc))||void 0===n?void 0:n.id;return o&&void 0!==r?o+"-"+r:r}(t);t=Ra(Ra({},t),{layoutId:l});var u=(0,e.useContext)(Ba),c=null,d=function(t){var n=function(e,t){if(Xa(e)){var n=e.initial,r=e.animate;return{initial:!1===n||qa(n)?n:void 0,animate:qa(r)?r:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)($a)),r=n.initial,o=n.animate;return(0,e.useMemo)((function(){return{initial:r,animate:o}}),[Ka(r),Ka(o)])}(t),f=u.isStatic?void 0:Ea((function(){if(Gu.hasEverUpdated)return pc++})),p=i(t,u.isStatic);return!u.isStatic&&Va&&(d.visualElement=function(t,n,r,o){var a=(0,e.useContext)(Ia),i=(0,e.useContext)($a).visualElement,s=(0,e.useContext)(ka),l=(0,e.useRef)(void 0);o||(o=a.renderer),!l.current&&o&&(l.current=o(t,{visualState:n,parent:i,props:r,presenceId:null==s?void 0:s.id,blockInitialAnimation:!1===(null==s?void 0:s.initial)}));var u=l.current;return Wa((function(){null==u||u.syncRender()})),(0,e.useEffect)((function(){var e;null===(e=null==u?void 0:u.animationState)||void 0===e||e.animateChanges()})),Wa((function(){return function(){return null==u?void 0:u.notifyUnmount()}}),[]),u}(s,p,Ra(Ra({},u),t),r),function(t,n,r,o){var a,i=n.layoutId,s=n.layout,l=n.drag,u=n.dragConstraints,c=n.layoutScroll,d=(0,e.useContext)(mc);o&&r&&!(null==r?void 0:r.projection)&&(r.projection=new o(t,r.getLatestValues(),null===(a=r.parent)||void 0===a?void 0:a.projection),r.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:Boolean(l)||u&&Ua(u),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:d,layoutScroll:c}))}(f,t,d.visualElement,o||Na.projectionNodeConstructor),c=function(t,n){var r=[];if((0,e.useContext)(Ia),!n)return null;for(var o=0;o-1||/[A-Z]/.test(e))}function wc(e,t){var n=t.layout,r=t.layoutId;return Vu(e)||Uu(e)||(n||void 0!==r)&&(!!Mu[e]||"opacity"===e)}var Sc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function kc(e){return e.startsWith("--")}var Ec=function(e,t){return t&&"number"==typeof e?t.transform(e):e};function Cc(e,t,n,r){var o,a=e.style,i=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,d=!1,f=!0;for(var p in t){var h=t[p];if(kc(p))i[p]=h;else{var m=Nl[p],v=Ec(h,m);if(Vu(p)){if(c=!0,s[p]=v,l.push(p),!f)continue;h!==(null!==(o=m.default)&&void 0!==o?o:0)&&(f=!1)}else Uu(p)?(u[p]=v,d=!0):a[p]=v}}c?a.transform=function(e,t,n,r){var o=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,u=void 0===l||l,c="";a.sort(Bu);for(var d=!1,f=a.length,p=0;ph&&g,S=Array.isArray(v)?v:[v],k=S.reduce(a,{});!1===y&&(k={});var E=m.prevResolvedValues,C=void 0===E?{}:E,_=Ra(Ra({},C),k),P=function(e){w=!0,f.delete(e),m.needsAnimating[e]=!0};for(var T in _){var O=k[T],A=C[T];p.hasOwnProperty(T)||(O!==A?Cl(O)&&Cl(A)?!Ad(O,A)||x?P(T):m.protectedKeys[T]=!0:void 0!==O?P(T):f.add(T):void 0!==O&&f.has(T)?P(T):m.protectedKeys[T]=!0)}m.prevProp=v,m.prevResolvedValues=k,m.isActive&&(p=Ra(Ra({},p),k)),o&&e.blockInitialAnimation&&(w=!1),w&&!b&&d.push.apply(d,Fa([],za(S.map((function(e){return{animation:e,options:Ra({type:r},i)}}))),!1))},v=0;v=3;if(t||n){var o=e.point,a=pi().timestamp;r.history.push(Ra(Ra({},o),{timestamp:a}));var i=r.handlers,s=i.onStart,l=i.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=Xd(t,r.transformPagePoint),td(e)&&0===e.buttons?r.handlePointerUp(e,t):hi.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=Kd(Xd(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(nd(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Xd(id(e),this.transformPagePoint),i=a.point,s=pi().timestamp;this.history=[Ra(Ra({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Kd(a,this.history)),this.removeListeners=ys(dd(window,"pointermove",this.handlePointerMove),dd(window,"pointerup",this.handlePointerUp),dd(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),li.update(this.updatePoint)},e}();function Xd(e,t){return t?{point:t(e.point)}:e}function Yd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Kd(e,t){var n=e.point;return{point:n,delta:Yd(n,Jd(t)),offset:Yd(n,Zd(t)),velocity:ef(t,.1)}}function Zd(e){return e[0]}function Jd(e){return e[e.length-1]}function ef(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Jd(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>hl(t)));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function tf(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function nf(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.mint?n="y":Math.abs(e.x)>t&&(n="x"),n}(l),void(null!==n.currentDirection&&(null==i||i(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var o=this.getProps().onDragEnd;null==o||o(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Yc.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&df(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&eo&&(e=n?mi(o,e,n.max):Math.min(e,o)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Ua(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.left,o=t.bottom,a=t.right;return{x:tf(e.x,r,a),y:tf(e.y,n,o)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=rf),!1===e?e=0:!0===e&&(e=rf),{x:of(e,"left","right"),y:of(e,"top","bottom")}}(r),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Iu((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Ua(t))return!1;var r=t.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=function(e,t,n){var r=lf(e,n),o=t.scroll;return o&&(cu(r.x,o.x),cu(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:nf(e.x,t.x),y:nf(e.y,t.y)}}(o.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!s,s&&(i=sf(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=Iu((function(n){var l;if(df(n,r,t.currentDirection)){var c=null!==(l=null==u?void 0:u[n])&&void 0!==l?l:{};s&&(c={min:0,max:0});var d=a?200:1e6,f=a?40:1e7,p=Ra(Ra({type:"inertia",velocity:o?e[n]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},i),c);return t.startAxisValueAnimation(n,p)}}));return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Hl(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Iu((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Iu((function(n){if(df(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n],i=a.min,s=a.max;o.set(e[n]-mi(i,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,a=this.visualElement.projection;if(Ua(o)&&a&&this.constraints){this.stopAnimation();var i={x:0,y:0};Iu((function(e){var n,r,o,a,s,l=t.getAxisMotionValue(e);if(l){var u=l.get();i[e]=(n={min:u,max:u},r=t.constraints[e],o=.5,a=bu(n),(s=bu(r))>a?o=Ri(r.min,r.max-a,n.min):a>s&&(o=Ri(n.min,n.max-s,r.min)),ki(0,1,o))}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),Iu((function(e){if(df(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e],a=o.min,s=o.max;n.set(mi(a,s,i[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;uf.set(this.visualElement,this);var n=dd(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=function(){Ua(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,a=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var i=Jc(window,"resize",(function(){t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Iu((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){i(),n(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,a=e.dragPropagation,i=void 0!==a&&a,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?rf:u,d=e.dragMomentum,f=void 0===d||d;return Ra(Ra({},e),{drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:l,dragElastic:c,dragMomentum:f})},e}();function df(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var ff={pan:Td((function(t){var n=t.onPan,r=t.onPanStart,o=t.onPanEnd,a=t.onPanSessionStart,i=t.visualElement,s=n||r||o||a,l=(0,e.useRef)(null),u=(0,e.useContext)(Ba).transformPagePoint,c={onSessionStart:a,onStart:r,onMove:n,onEnd:function(e,t){l.current=null,o&&o(e,t)}};(0,e.useEffect)((function(){null!==l.current&&l.current.updateHandlers(c)})),fd(i,"pointerdown",s&&function(e){l.current=new Gd(e,c,{transformPagePoint:u})}),xd((function(){return l.current&&l.current.end()}))})),drag:Td((function(t){var n=t.dragControls,r=t.visualElement,o=Ea((function(){return new cf(r)}));(0,e.useEffect)((function(){return n&&n.subscribe(o)}),[o,n]),(0,e.useEffect)((function(){return o.addListeners()}),[o])}))},pf=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"],hf=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.removeValueFromRenderState,c=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,h=e.presenceId,m=e.blockInitialAnimation,v=e.visualState;void 0===t&&(t={});var g,y,b=!1,x=v.latestValues,w=v.renderState,S=function(){var e=pf.map((function(){return new bi})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){pf.forEach((function(r){var o,a="on"+r,i=e[a];null===(o=t[r])||void 0===o||o.call(t),i&&(t[r]=n[a](i))}))}};return e.forEach((function(e,t){n["on"+pf[t]]=function(t){return e.add(t)},n["notify"+pf[t]]=function(){for(var t=[],n=0;n5)return o;var l=ms.createTransformer(e),u="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+u]/=c,s[1+u]/=d;var f=mi(c,d,.5);"number"==typeof s[2+u]&&(s[2+u]/=f),"number"==typeof s[3+u]&&(s[3+u]/=f);var p=l(s);if(a){var h=0;p=p.replace(If,(function(){var e=i[h];return h++,e}))}return p}},Df=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Aa(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,o=n.layoutGroup,a=n.switchLayoutGroup,i=n.layoutId,s=r.projection;e=Bf,Object.assign(Mu,e),s&&((null==o?void 0:o.group)&&o.group.add(s),(null==a?void 0:a.register)&&i&&a.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(Ra(Ra({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),Gu.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.visualElement,a=n.drag,i=n.isPresent,s=o.projection;return s?(s.isPresent=i,a||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?s.promote():s.relegate()||hi.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,o=t.projection;o&&(o.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(o),(null==r?void 0:r.deregister)&&r.deregister(o))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(e.Component),Bf={borderRadius:Ra(Ra({},Nf),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Nf,borderTopRightRadius:Nf,borderBottomLeftRadius:Nf,borderBottomRightRadius:Nf,boxShadow:Lf},$f={measureLayout:function(t){var n=za(Ca(),2),r=n[0],o=n[1],a=(0,e.useContext)(hc);return e.createElement(Df,Ra({},t,{layoutGroup:a,switchLayoutGroup:(0,e.useContext)(mc),isPresent:r,safeToRemove:o}))}},Vf=Xu({attachResizeListener:function(e,t){return e.addEventListener("resize",t,{passive:!0}),function(){return e.removeEventListener("resize",t)}},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}}}),Wf={current:void 0},Uf=Xu({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Wf.current){var e=new Vf(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Wf.current=e}return Wf.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"}}),Hf=Ra(Ra(Ra(Ra({},Qd),Od),ff),$f),qf=yc((function(e,t){return function(e,t,n,r,o){var a=t.forwardMotionProps,i=void 0!==a&&a,s=xc(e)?Kc:Zc;return Ra(Ra({},s),{preloadedFeatures:n,useRender:Lc(i),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,Hf,Ff,Uf)})),Qf={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(r=1),{opacity:0,[n]:24*r}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Gf=(0,e.memo)((t=>{const{id:n,message:r,onCloseComplete:o,onRequestRemove:a,requestClose:i=!1,position:s="bottom",duration:l=5e3,containerStyle:u,motionVariants:c=Qf,toastSpacing:d="0.5rem"}=t,[f,p]=(0,e.useState)(l),h=null===(m=(0,e.useContext)(ka))||m.isPresent;var m;Sa((()=>{h||null==o||o()}),[h]),Sa((()=>{p(l)}),[l]);const v=()=>{h&&a()};(0,e.useEffect)((()=>{h&&i&&a()}),[h,i,a]),function(t,n){const r=wa(t);(0,e.useEffect)((()=>{if(null==n)return;let e=null;return e=window.setTimeout((()=>{r()}),n),()=>{e&&window.clearTimeout(e)}}),[n,r])}(v,f);const g=(0,e.useMemo)((()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...u})),[u,d]),y=(0,e.useMemo)((()=>function(e){let t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(s)),[s]);return(0,oe.jsx)(qf.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>p(null),onHoverEnd:()=>p(l),custom:{position:s},style:y,children:(0,oe.jsx)($r.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:Y(r,{id:n,onClose:v})})})}));function Xf(e,t){var n;const r=null!=e?e:"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return null!=(n=null==o?void 0:o[t])?n:r}function Yf(e){return(0,oe.jsx)(pa,{viewBox:"0 0 24 24",...e,children:(0,oe.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}Gf.displayName="ToastComponent";var[Kf,Zf]=oo({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[Jf,ep]=oo({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),tp={info:{icon:function(e){return(0,oe.jsx)(pa,{viewBox:"0 0 24 24",...e,children:(0,oe.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:Yf,colorScheme:"orange"},success:{icon:function(e){return(0,oe.jsx)(pa,{viewBox:"0 0 24 24",...e,children:(0,oe.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:Yf,colorScheme:"red"},loading:{icon:eo,colorScheme:"blue"}},np=Dt((function(e,t){var n;const{status:r="info",addRole:o=!0,...a}=xr(e),i=null!=(n=e.colorScheme)?n:function(e){return tp[e].colorScheme}(r),s=Zr("Alert",{...e,colorScheme:i}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};return(0,oe.jsx)(Kf,{value:{status:r},children:(0,oe.jsx)(Jf,{value:s,children:(0,oe.jsx)($r.div,{"data-status":r,role:o?"alert":void 0,ref:t,...a,className:G("chakra-alert",e.className),__css:l})})})}));function rp(e){const{status:t}=Zf(),n=function(e){return tp[e].icon}(t),r=ep(),o="loading"===t?r.spinner:r.icon;return(0,oe.jsx)($r.span,{display:"inherit","data-status":t,...e,className:G("chakra-alert__icon",e.className),__css:o,children:e.children||(0,oe.jsx)(n,{h:"100%",w:"100%"})})}np.displayName="Alert",rp.displayName="AlertIcon";var op=Dt((function(e,t){const n=ep(),{status:r}=Zf();return(0,oe.jsx)($r.div,{ref:t,"data-status":r,...e,className:G("chakra-alert__title",e.className),__css:n.title})}));op.displayName="AlertTitle";var ap=Dt((function(e,t){const n=ep(),{status:r}=Zf(),o={display:"inline",...n.description};return(0,oe.jsx)($r.div,{ref:t,"data-status":r,...e,className:G("chakra-alert__desc",e.className),__css:o})}));function ip(e){return(0,oe.jsx)(pa,{focusable:"false","aria-hidden":!0,...e,children:(0,oe.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}ap.displayName="AlertDescription";var sp=Dt((function(e,t){const n=Kr("CloseButton",e),{children:r,isDisabled:o,__css:a,...i}=xr(e);return(0,oe.jsx)($r.button,{type:"button","aria-label":"Close",ref:t,disabled:o,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...a},...i,children:r||(0,oe.jsx)(ip,{width:"1em",height:"1em"})})}));sp.displayName="CloseButton";var lp=function(e){let t=e;const n=new Set,r=e=>{t=e(t),n.forEach((e=>e()))};return{getState:()=>t,subscribe:t=>(n.add(t),()=>{r((()=>e)),n.delete(t)}),removeToast:(e,t)=>{r((n=>({...n,[t]:n[t].filter((t=>t.id!=e))})))},notify:(e,t)=>{const n=function(e,t={}){var n,r;up+=1;const o=null!=(n=t.id)?n:up,a=null!=(r=t.position)?r:"bottom";return{id:o,message:e,position:a,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>lp.removeToast(String(o),a),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:o,id:a}=n;return r((e=>{var t,r;const a=o.includes("top")?[n,...null!=(t=e[o])?t:[]]:[...null!=(r=e[o])?r:[],n];return{...e,[o]:a}})),a},update:(e,t)=>{e&&r((n=>{const r={...n},{position:o,index:a}=ya(r,e);return o&&-1!==a&&(r[o][a]={...r[o][a],...t,message:dp(t)}),r}))},closeAll:({positions:e}={})=>{r((t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce(((e,n)=>(e[n]=t[n].map((e=>({...e,requestClose:!0}))),e)),{...t})))},close:e=>{r((t=>{const n=ba(t,e);return n?{...t,[n]:t[n].map((t=>t.id==e?{...t,requestClose:!0}:t))}:t}))},isActive:e=>Boolean(ya(lp.getState(),e).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),up=0,cp=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:a,onClose:i,description:s,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return(0,oe.jsxs)(np,{addRole:!1,status:t,variant:n,id:null==c?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[(0,oe.jsx)(rp,{children:u}),(0,oe.jsxs)($r.div,{flex:"1",maxWidth:"100%",children:[o&&(0,oe.jsx)(op,{id:null==c?void 0:c.title,children:o}),s&&(0,oe.jsx)(ap,{id:null==c?void 0:c.description,display:"block",children:s})]}),a&&(0,oe.jsx)(sp,{size:"sm",onClick:i,position:"absolute",insetEnd:1,top:1})]})};function dp(e={}){const{render:t,toastComponent:n=cp}=e;return r=>"function"==typeof t?t({...r,...e}):(0,oe.jsx)(n,{...r,...e})}var fp=0;function pp(){var e=fp;return fp++,e}var hp=function(t){var n=t.children,r=t.initial,o=t.isPresent,a=t.onExitComplete,i=t.custom,s=t.presenceAffectsLayout,l=Ea(mp),u=Ea(pp),c=(0,e.useMemo)((function(){return{id:u,initial:r,isPresent:o,custom:i,onExitComplete:function(e){var t,n;l.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(l.values()),o=r.next();!o.done;o=r.next())if(!o.value)return}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}}),s?void 0:[o]);return(0,e.useMemo)((function(){l.forEach((function(e,t){return l.set(t,!1)}))}),[o]),e.useEffect((function(){!o&&!l.size&&(null==a||a())}),[o]),e.createElement(ka.Provider,{value:c},n)};function mp(){return new Map}function vp(e){return e.key||""}var gp=function(t){var n=t.children,r=t.custom,o=t.initial,a=void 0===o||o,i=t.onExitComplete,s=t.exitBeforeEnter,l=t.presenceAffectsLayout,u=void 0===l||l,c=za(function(){var t=(0,e.useRef)(!1),n=za((0,e.useState)(0),2),r=n[0],o=n[1];xd((function(){return t.current=!0}));var a=(0,e.useCallback)((function(){!t.current&&o(r+1)}),[r]);return[(0,e.useCallback)((function(){return hi.postRender(a)}),[a]),r]}(),1),d=c[0],f=(0,e.useContext)(hc).forceRender;f&&(d=f);var p=(0,e.useRef)(!0),h=(0,e.useRef)(!0);(0,e.useEffect)((function(){return function(){h.current=!1}}),[]);var m=function(t){var n=[];return e.Children.forEach(t,(function(t){(0,e.isValidElement)(t)&&n.push(t)})),n}(n),v=(0,e.useRef)(m),g=(0,e.useRef)(new Map).current,y=(0,e.useRef)(new Set).current;if(function(e,t){e.forEach((function(e){var n=vp(e);t.set(n,e)}))}(m,g),p.current)return p.current=!1,e.createElement(e.Fragment,null,m.map((function(t){return e.createElement(hp,{key:vp(t),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:u},t)})));for(var b=Fa([],za(m),!1),x=v.current.map(vp),w=m.map(vp),S=x.length,k=0;k(0,oe.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),_p=t=>{const{appendToParentPortal:n,children:r}=t,[o,a]=(0,e.useState)(null),i=(0,e.useRef)(null),[,s]=(0,e.useState)({});(0,e.useEffect)((()=>s({})),[]);const l=kp(),u=bp();re((()=>{if(!o)return;const e=o.ownerDocument,t=n&&null!=l?l:e.body;if(!t)return;i.current=e.createElement("div"),i.current.className=Ep,t.appendChild(i.current),s({});const r=i.current;return()=>{t.contains(r)&&t.removeChild(r)}}),[o]);const c=(null==u?void 0:u.zIndex)?(0,oe.jsx)(Cp,{zIndex:null==u?void 0:u.zIndex,children:r}):r;return i.current?(0,wp.createPortal)((0,oe.jsx)(Sp,{value:i.current,children:c}),i.current):(0,oe.jsx)("span",{ref:e=>{e&&a(e)}})},Pp=t=>{const{children:n,containerRef:r,appendToParentPortal:o}=t,a=r.current,i=null!=a?a:"undefined"!=typeof window?document.body:void 0,s=(0,e.useMemo)((()=>{const e=null==a?void 0:a.ownerDocument.createElement("div");return e&&(e.className=Ep),e}),[a]),[,l]=(0,e.useState)({});return re((()=>l({})),[]),re((()=>{if(s&&i)return i.appendChild(s),()=>{i.removeChild(s)}}),[s,i]),i&&s?(0,wp.createPortal)((0,oe.jsx)(Sp,{value:o?s:null,children:n}),s):null};function Tp(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?(0,oe.jsx)(Pp,{containerRef:n,...r}):(0,oe.jsx)(_p,{...r})}Tp.className=Ep,Tp.selector=".chakra-portal",Tp.displayName="Portal";var[Op,Ap]=oo({name:"ToastOptionsContext",strict:!1}),Rp=t=>{const n=(0,e.useSyncExternalStore)(lp.subscribe,lp.getState,lp.getState),{motionVariants:r,component:o=Gf,portalProps:a}=t,i=Object.keys(n).map((e=>{const t=n[e];return(0,oe.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:xa(e),children:(0,oe.jsx)(gp,{initial:!1,children:t.map((e=>(0,oe.jsx)(o,{motionVariants:r,...e},e.id)))})},e)}));return(0,oe.jsx)(Tp,{...a,children:i})};function jp(t){const{theme:n}=Gr(),r=Ap();return(0,e.useMemo)((()=>function(e,t){const n=n=>{var r;return{...t,...n,position:Xf(null!=(r=null==n?void 0:n.position)?r:null==t?void 0:t.position,e)}},r=e=>{const t=n(e),r=dp(t);return lp.notify(r,t)};return r.update=(e,t)=>{lp.update(e,n(t))},r.promise=(e,t)=>{const n=r({...t.loading,status:"loading",duration:null});e.then((e=>r.update(n,{status:"success",duration:5e3,...Y(t.success,e)}))).catch((e=>r.update(n,{status:"error",duration:5e3,...Y(t.error,e)})))},r.closeAll=lp.closeAll,r.close=lp.close,r.isActive=lp.isActive,r}(n.direction,{...r,...t})),[t,n.direction,r])}var zp=Dt((function(e,t){const{templateAreas:n,gap:r,rowGap:o,columnGap:a,column:i,row:s,autoFlow:l,autoRows:u,templateRows:c,autoColumns:d,templateColumns:f,...p}=e,h={display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:o,gridColumnGap:a,gridAutoColumns:d,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:u,gridTemplateRows:c,gridTemplateColumns:f};return(0,oe.jsx)($r.div,{ref:t,__css:h,...p})}));zp.displayName="Grid";var Fp=Dt((function(e,t){const{columns:n,spacingX:r,spacingY:o,spacing:a,minChildWidth:i,...s}=e,l=It(),u=i?function(e,t){return ne(e,(e=>{const n=function(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return n=>{const a=o.filter(Boolean),i=r.map(((t,r)=>{var o,i;return"breakpoints"===e?function(e,t,n){var r,o;if(null==t)return t;const a=t=>{var n,r;return null==(r=null==(n=e.__breakpoints)?void 0:n.asArray)?void 0:r[t]};return null!=(o=null!=(r=a(t))?r:a(n))?o:n}(n,t,null!=(o=a[r])?o:t):function(e,t,n){var r,o;if(null==t)return t;const a=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.value};return null!=(o=null!=(r=a(t))?r:a(n))?o:n}(n,`${e}.${t}`,null!=(i=a[r])?i:t)}));return Array.isArray(t)?i:i[0]}}("sizes",e,"number"==typeof(r=e)?`${r}px`:r)(t);var r;return null===e?null:`repeat(auto-fit, minmax(${n}, 1fr))`}))}(i,l):ne(n,(e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`));return(0,oe.jsx)(zp,{ref:t,gap:a,columnGap:r,rowGap:o,templateColumns:u,...s})}));Fp.displayName="SimpleGrid";var Mp=$r("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});Mp.displayName="Center";var Np={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}},Ip=(Dt((function(e,t){const{axis:n="both",...r}=e;return(0,oe.jsx)($r.div,{ref:t,__css:Np[n],...r,position:"absolute"})})),Dt((function(e,t){const{htmlWidth:n,htmlHeight:r,alt:o,...a}=e;return(0,oe.jsx)("img",{width:n,height:r,ref:t,alt:o,...a})})));function Lp(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}Ip.displayName="NativeImage";var Dp=Dt((function(t,n){const{fallbackSrc:r,fallback:o,src:a,srcSet:i,align:s,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:p,...h}=t,m=null!=u||c||!(void 0!==r||void 0!==o),v=function(t){const{loading:n,src:r,srcSet:o,onLoad:a,onError:i,crossOrigin:s,sizes:l,ignoreFallback:u}=t,[c,d]=(0,e.useState)("pending");(0,e.useEffect)((()=>{d(r?"loading":"pending")}),[r]);const f=(0,e.useRef)(),p=(0,e.useCallback)((()=>{if(!r)return;h();const e=new Image;e.src=r,s&&(e.crossOrigin=s),o&&(e.srcset=o),l&&(e.sizes=l),n&&(e.loading=n),e.onload=e=>{h(),d("loaded"),null==a||a(e)},e.onerror=e=>{h(),d("failed"),null==i||i(e)},f.current=e}),[r,s,o,l,a,i,n]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return re((()=>{if(!u)return"loading"===c&&p(),()=>{h()}}),[c,p,u]),u?"loaded":c}({...t,crossOrigin:d,ignoreFallback:m}),g=((e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t)(v,f),y={ref:n,objectFit:l,objectPosition:s,...m?h:Lp(h,["onError","onLoad"])};return g?o||(0,oe.jsx)($r.img,{as:Ip,className:"chakra-image__placeholder",src:r,...y}):(0,oe.jsx)($r.img,{as:Ip,src:a,srcSet:i,crossOrigin:d,loading:u,referrerPolicy:p,className:"chakra-image",...y})}));Dp.displayName="Image";var Bp=Object.defineProperty,$p=new class{constructor(){((e,t,n)=>{((e,t,n)=>{t in e?Bp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n)})(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&this.modals.get(e)===this.modals.size}};function Vp(t,n){const[r,o]=(0,e.useState)(0);return(0,e.useEffect)((()=>{const e=t.current;if(e){if(n){const t=$p.add(e);o(t)}return()=>{$p.remove(e),o(0)}}}),[n,t]),r}var Wp=new WeakMap,Up=new WeakMap,Hp={},qp=0,Qp=function(e){return e&&(e.host||Qp(e.parentNode))},Gp=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Qp(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Hp[n]||(Hp[n]=new WeakMap);var a=Hp[n],i=[],s=new Set,l=new Set(o),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Wp.get(e)||0)+1,u=(a.get(e)||0)+1;Wp.set(e,l),a.set(e,u),i.push(e),1===l&&o&&Up.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return c(t),s.clear(),qp++,function(){i.forEach((function(e){var t=Wp.get(e)-1,o=a.get(e)-1;Wp.set(e,t),a.set(e,o),t||(Up.has(e)||e.removeAttribute(r),Up.delete(e)),o||e.removeAttribute(n)})),--qp||(Wp=new WeakMap,Wp=new WeakMap,Up=new WeakMap,Hp={})}}(r,o,n,"aria-hidden")):function(){return null}};function Xp(t){const{isOpen:n,onClose:r,id:o,closeOnOverlayClick:a=!0,closeOnEsc:i=!0,useInert:s=!0,onOverlayClick:l,onEsc:u}=t,c=(0,e.useRef)(null),d=(0,e.useRef)(null),[f,p,h]=function(t,...n){const r=(0,e.useId)(),o=t||r;return(0,e.useMemo)((()=>n.map((e=>`${e}-${o}`))),[o,n])}(o,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(t,n){const r=t.current;(0,e.useEffect)((()=>{if(t.current&&n)return Gp(t.current)}),[n,t,r])}(c,n&&s);const m=Vp(c,n),v=(0,e.useRef)(null),g=(0,e.useCallback)((e=>{v.current=e.target}),[]),y=(0,e.useCallback)((e=>{"Escape"===e.key&&(e.stopPropagation(),i&&(null==r||r()),null==u||u())}),[i,r,u]),[b,x]=(0,e.useState)(!1),[w,S]=(0,e.useState)(!1),k=(0,e.useCallback)(((e={},t=null)=>({role:"dialog",...e,ref:mo(t,c),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":b?p:void 0,"aria-describedby":w?h:void 0,onClick:ee(e.onClick,(e=>e.stopPropagation()))})),[h,w,f,p,b]),E=(0,e.useCallback)((e=>{e.stopPropagation(),v.current===e.target&&$p.isTopModal(c.current)&&(a&&(null==r||r()),null==l||l())}),[r,a,l]),C=(0,e.useCallback)(((e={},t=null)=>({...e,ref:mo(t,d),onClick:ee(e.onClick,E),onKeyDown:ee(e.onKeyDown,y),onMouseDown:ee(e.onMouseDown,g)})),[y,g,E]);return{isOpen:n,onClose:r,headerId:p,bodyId:h,setBodyMounted:S,setHeaderMounted:x,dialogRef:c,overlayRef:d,getDialogProps:k,getDialogContainerProps:C,index:m}}var[Yp,Kp]=oo({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[Zp,Jp]=oo({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),eh=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:o,trapFocus:a,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p,onCloseComplete:h}=t,m=Zr("Modal",t),v={...Xp(t),autoFocus:o,trapFocus:a,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p};return(0,oe.jsx)(Zp,{value:v,children:(0,oe.jsx)(Yp,{value:m,children:(0,oe.jsx)(gp,{onExitComplete:h,children:v.isOpen&&(0,oe.jsx)(Tp,{...n,children:r})})})})};eh.displayName="Modal";var th={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},nh={enter:{duration:.2,ease:th.easeOut},exit:{duration:.1,ease:th.easeIn}},rh=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),oh=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit}),ah={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:null!=(r=null==e?void 0:e.enter)?r:rh(nh.enter,n),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:null!=(r=null==e?void 0:e.exit)?r:oh(nh.exit,n),transitionEnd:null==t?void 0:t.exit}}},ih={initial:"exit",animate:"enter",exit:"exit",variants:ah},sh=(0,e.forwardRef)((function(e,t){const{unmountOnExit:n,in:r,className:o,transition:a,transitionEnd:i,delay:s,...l}=e,u=r||n?"enter":"exit",c=!n||r&&n,d={transition:a,transitionEnd:i,delay:s};return(0,oe.jsx)(gp,{custom:d,children:c&&(0,oe.jsx)(qf.div,{ref:t,className:G("chakra-fade",o),custom:d,...ih,animate:u,...l})})}));sh.displayName="Fade";var lh=$r(qf.div),uh=Dt(((e,t)=>{const{className:n,transition:r,motionProps:o,...a}=e,i=G("chakra-modal__overlay",n),s={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Kp().overlay},{motionPreset:l}=Jp(),u=o||("none"===l?{}:ih);return(0,oe.jsx)(lh,{...u,__css:s,ref:t,className:i,...a})}));uh.displayName="ModalOverlay";var ch={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>{var a;return{opacity:0,x:e,y:t,transition:null!=(a=null==n?void 0:n.exit)?a:oh(nh.exit,o),transitionEnd:null==r?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:null!=(r=null==e?void 0:e.enter)?r:rh(nh.enter,n),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:a})=>{var i;const s={x:t,y:e};return{opacity:0,transition:null!=(i=null==n?void 0:n.exit)?i:oh(nh.exit,a),...o?{...s,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{...s,...null==r?void 0:r.exit}}}}},dh={initial:"initial",animate:"enter",exit:"exit",variants:ch},fh=(0,e.forwardRef)((function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,className:a,offsetX:i=0,offsetY:s=8,transition:l,transitionEnd:u,delay:c,...d}=e,f=!n||r&&n,p=r||n?"enter":"exit",h={offsetX:i,offsetY:s,reverse:o,transition:l,transitionEnd:u,delay:c};return(0,oe.jsx)(gp,{custom:h,children:f&&(0,oe.jsx)(qf.div,{ref:t,className:G("chakra-offset-slide",a),custom:h,...dh,animate:p,...d})})}));fh.displayName="SlideFade";var ph={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>{var a;return{opacity:0,...e?{scale:t,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{scale:t,...null==r?void 0:r.exit}},transition:null!=(a=null==n?void 0:n.exit)?a:oh(nh.exit,o)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:null!=(r=null==t?void 0:t.enter)?r:rh(nh.enter,n),transitionEnd:null==e?void 0:e.enter}}},hh={initial:"exit",animate:"enter",exit:"exit",variants:ph},mh=(0,e.forwardRef)((function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,initialScale:a=.95,className:i,transition:s,transitionEnd:l,delay:u,...c}=e,d=!n||r&&n,f=r||n?"enter":"exit",p={initialScale:a,reverse:o,transition:s,transitionEnd:l,delay:u};return(0,oe.jsx)(gp,{custom:p,children:d&&(0,oe.jsx)(qf.div,{ref:t,className:G("chakra-offset-slide",i),...hh,animate:f,custom:p,...c})})}));mh.displayName="ScaleFade";var vh={slideInBottom:{...dh,custom:{offsetY:16,reverse:!0}},slideInRight:{...dh,custom:{offsetX:16,reverse:!0}},slideInTop:{...dh,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...dh,custom:{offsetX:-16,reverse:!0}},scale:{...hh,custom:{initialScale:.95,reverse:!0}},none:{}},gh=$r(qf.section),yh=e=>vh[e||"none"],bh=(0,e.forwardRef)(((e,t)=>{const{preset:n,motionProps:r=yh(n),...o}=e;return(0,oe.jsx)(gh,{ref:t,...r,...o})}));bh.displayName="ModalTransition";var xh="data-focus-lock",wh="data-focus-lock-disabled";function Sh(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var kh="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Eh=new WeakMap;function Ch(t,n){var r,o,a,i=(r=n||null,o=function(e){return t.forEach((function(t){return Sh(t,e)}))},(a=(0,e.useState)((function(){return{value:r,callback:o,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=o,a.facade);return kh((function(){var e=Eh.get(i);if(e){var n=new Set(e),r=new Set(t),o=i.current;n.forEach((function(e){r.has(e)||Sh(e,null)})),r.forEach((function(e){n.has(e)||Sh(e,o)}))}Eh.set(i,t)}),[t]),i}var _h={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function Ph(e){return e}function Th(e,t){void 0===t&&(t=Ph);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}};return o}function Oh(e,t){return void 0===t&&(t=Ph),Th(e,t)}function Ah(e){void 0===e&&(e={});var t=Th(null);return t.options=Ra({async:!0,ssr:!1},e),t}var Rh=Oh({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),jh=Oh(),zh=Oh(),Fh=Ah({async:!0,ssr:"undefined"!=typeof document}),Mh=(0,e.createContext)(void 0),Nh=[],Ih=(0,e.forwardRef)((function(n,r){var o,a=(0,e.useState)(),i=a[0],s=a[1],l=(0,e.useRef)(),u=(0,e.useRef)(!1),c=(0,e.useRef)(null),d=(0,e.useState)({})[1],f=n.children,p=n.disabled,h=void 0!==p&&p,m=n.noFocusGuards,v=void 0!==m&&m,g=n.persistentFocus,y=void 0!==g&&g,b=n.crossFrame,x=void 0===b||b,w=n.autoFocus,S=void 0===w||w,k=(n.allowTextSelection,n.group),E=n.className,C=n.whiteList,_=n.hasPositiveIndices,P=n.shards,T=void 0===P?Nh:P,O=n.as,A=void 0===O?"div":O,R=n.lockProps,j=void 0===R?{}:R,z=n.sideCar,F=n.returnFocus,M=void 0!==F&&F,N=n.focusOptions,I=n.onActivation,L=n.onDeactivation,D=(0,e.useState)({})[0],B=(0,e.useCallback)((function(e){var t=e.captureFocusRestore;if(!c.current){var n,r=null==(n=document)?void 0:n.activeElement;c.current=r,r!==document.body&&(c.current=t(r))}l.current&&I&&I(l.current),u.current=!0,d()}),[I]),$=(0,e.useCallback)((function(){u.current=!1,L&&L(l.current),d()}),[L]),V=(0,e.useCallback)((function(e){var t=c.current;if(t){var n=("function"==typeof t?t():t)||document.body,r="function"==typeof M?M(n):M;if(r){var o="object"==typeof r?r:void 0;c.current=null,e?Promise.resolve().then((function(){return n.focus(o)})):n.focus(o)}}}),[M]),W=(0,e.useCallback)((function(e){u.current&&Rh.useMedium(e)}),[]),U=jh.useMedium,H=(0,e.useCallback)((function(e){l.current!==e&&(l.current=e,s(e))}),[]),q=lt(((o={})[wh]=h&&"disabled",o[xh]=k,o),j),Q=!0!==v,G=Q&&"tail"!==v,X=Ch([r,H]),Y=(0,e.useMemo)((function(){return{observed:l,shards:T,enabled:!h,active:u.current}}),[h,u.current,T,i]);return t().createElement(e.Fragment,null,Q&&[t().createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:h?-1:0,style:_h}),_?t().createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:h?-1:1,style:_h}):null],!h&&t().createElement(z,{id:D,sideCar:Fh,observed:i,disabled:h,persistentFocus:y,crossFrame:x,autoFocus:S,whiteList:C,shards:T,onActivation:B,onDeactivation:$,returnFocus:V,focusOptions:N,noFocusGuards:v}),t().createElement(A,lt({ref:X},q,{className:E,onBlur:U,onFocus:W}),t().createElement(Mh.Provider,{value:Y},f)),G&&t().createElement("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:_h}))}));Ih.propTypes={};const Lh=Ih;function Dh(e,t){return Dh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dh(e,t)}function Bh(e){return Bh="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},Bh(e)}var $h=function(e){for(var t=Array(e.length),n=0;n=0})).sort(tm)},rm=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),om="".concat(rm,", [data-focus-guard]"),am=function(e,t){return $h((e.shadowRoot||e).children).reduce((function(e,n){return e.concat(n.matches(t?om:rm)?[n]:[],am(n))}),[])},im=function(e,t){return e.reduce((function(e,n){var r,o=am(n,t),a=(r=[]).concat.apply(r,o.map((function(e){return function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?im([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(a,n.parentNode?$h(n.parentNode.querySelectorAll(rm)).filter((function(e){return e===n})):[])}),[])},sm=function(e,t){return $h(e).filter((function(e){return qh(t,e)})).filter((function(e){return function(e){return!((Xh(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},lm=function(e,t){return void 0===t&&(t=new Map),$h(e).filter((function(e){return Qh(t,e)}))},um=function(e,t,n){return nm(sm(im(e,n),t),!0,n)},cm=function(e,t){return nm(sm(im(e),t),!1)},dm=function(e,t){return e.shadowRoot?dm(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||$h(e.children).some((function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&&dm(r,t)}return dm(e,t)}))},fm=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?fm(t.shadowRoot):t instanceof HTMLIFrameElement&&function(){try{return t.contentWindow.document}catch(e){return}}()?fm(t.contentWindow.document):t}},pm=function(e){return e.parentNode?pm(e.parentNode):e},hm=function(e){return Vh(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(xh);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}($h(pm(t).querySelectorAll("[".concat(xh,'="').concat(n,'"]:not([').concat(wh,'="disabled"])')))):[t]),e}),[])},mm=function(e,t){return void 0===t&&(t=fm(Wh(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&hm(e).some((function(e){return dm(e,t)||function(e,t){return Boolean($h(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},vm=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},gm=function(e,t){return Yh(e)&&e.name?function(e,t){return t.filter(Yh).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},ym=function(e){return e[0]&&e.length>1?gm(e[0],e):e[0]},bm=function(e,t){return e.indexOf(gm(t,e))},xm="NEW_FOCUS",wm=function(e,t,n){var r,o=e.map((function(e){return e.node})),a=lm(o.filter((r=n,function(e){var t,n=null===(t=Gh(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0})));return a&&a.length?ym(a):ym(lm(t))},Sm=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Sm(e.parentNode.host||e.parentNode,t),t},km=function(e,t){for(var n=Sm(e),r=Sm(t),o=0;o=0)return a}return!1},Em=function(e,t,n){var r=Vh(e),o=Vh(t),a=r[0],i=!1;return o.filter(Boolean).forEach((function(e){i=km(i||e,e)||i,n.filter(Boolean).forEach((function(e){var t=km(a,e);t&&(i=!i||dm(t,i)?t:km(t,i))}))})),i},Cm=function(e,t){return e.reduce((function(e,n){return e.concat(function(e,t){return sm((n=e.querySelectorAll("[".concat("data-autofocus-inside","]")),$h(n).map((function(e){return im([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var n}(n,t))}),[])},_m=function(e,t){var n=fm(Vh(e).length>0?document:Wh(e).ownerDocument),r=hm(e).filter(Jh),o=Em(n||e,e,r),a=new Map,i=cm(r,a),s=i.filter((function(e){var t=e.node;return Jh(t)}));if(s[0]){var l,u,c,d=cm([o],a).map((function(e){return e.node})),f=(l=d,u=s,c=new Map,u.forEach((function(e){return c.set(e.node,e)})),l.map((function(e){return c.get(e)})).filter(em)),p=f.map((function(e){return e.node})),h=f.filter((function(e){return e.tabIndex>=0})).map((function(e){return e.node})),m=function(e,t,n,r,o){var a=e.length,i=e[0],s=e[a-1],l=Zh(r);if(!(r&&e.indexOf(r)>=0)){var u=void 0!==r?n.indexOf(r):-1,c=o?n.indexOf(o):u,d=o?e.indexOf(o):-1;if(-1===u)return-1!==d?d:xm;if(-1===d)return xm;var f,p,h=u-c,m=n.indexOf(i),v=n.indexOf(s),g=(f=n,p=new Set,f.forEach((function(e){return p.add(gm(e,f))})),f.filter((function(e){return p.has(e)}))),y=void 0!==r?g.indexOf(r):-1,b=o?g.indexOf(o):y,x=g.filter((function(e){return e.tabIndex>=0})),w=void 0!==r?x.indexOf(r):-1,S=o?x.indexOf(o):w,k=w>=0&&S>=0?S-w:b-y;if(!h&&d>=0)return d;if(0===t.length)return d;var E=bm(e,t[0]),C=bm(e,t[t.length-1]);return u<=m&&l&&Math.abs(h)>1?C:u>=v&&l&&Math.abs(h)>1?E:h&&Math.abs(k)>1?d:u<=m?C:u>v?E:h?Math.abs(h)>1?d:(a+d+h)%a:void 0}}(p,h,d,n,t);if(m===xm){var v=wm(i,h,Cm(r,a))||wm(i,p,Cm(r,a));return v?{node:v}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===m?m:f[m]}},Pm=0,Tm=!1,Om=function(e,t,n){void 0===n&&(n={});var r=_m(e,t);if(!Tm&&r){if(Pm>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Tm=!0,void setTimeout((function(){Tm=!1}),1);Pm++,vm(r.node,n.focusOptions),Pm--}};function Am(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}var Rm=function(e){var t=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Am(n),parent:Am(n.parentElement),left:Am(n.previousElementSibling),right:Am(n.nextElementSibling)}),n=n.parentElement;return{element:Am(e),stack:t,ownerDocument:e.ownerDocument}}(e);return function(){return function(e){var t,n,r,o,a;if(e)for(var i=e.stack,s=e.ownerDocument,l=new Map,u=0,c=i;u=0,guard:Zh(t)}}))),w=x.map((function(e){return e.node})).indexOf(b);w>-1&&(x.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),Um(w,x.length,1,x),Um(w,-1,-1,x))}}}return i},Gm=function(e){Qm()&&e&&(e.stopPropagation(),e.preventDefault())},Xm=function(){return Fm(Qm)},Ym=function(){Vm=!0},Km=function(){Vm=!1,$m="just",Fm((function(){$m="meanwhile"}))},Zm={moveFocusInside:Om,focusInside:mm,focusNextElement:function(e,t){void 0===t&&(t={}),jm(e,t,(function(e,t){var n=e.next,r=e.first;return n||t&&r}))},focusPrevElement:function(e,t){void 0===t&&(t={}),jm(e,t,(function(e,t){var n=e.prev,r=e.last;return n||t&&r}))},focusFirstElement:function(e,t){void 0===t&&(t={}),zm(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),zm(e,t,"last")},captureFocusRestore:Rm};Rh.assignSyncMedium((function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(Bm={observerNode:n,portaledElement:t})})),jh.assignMedium(Xm),zh.assignMedium((function(e){return e(Zm)}));const Jm=(ev=function(e){return e.filter((function(e){return!e.disabled}))},tv=function(e){var t=e.slice(-1)[0];t&&!Im&&(document.addEventListener("focusin",Gm),document.addEventListener("focusout",Xm),window.addEventListener("focus",Ym),window.addEventListener("blur",Km));var n=Im,r=n&&t&&t.id===n.id;Im=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(Lm=null,r&&n.observed===t.observed||t.onActivation(Zm),Qm(),Fm(Qm)):(document.removeEventListener("focusin",Gm),document.removeEventListener("focusout",Xm),window.removeEventListener("focus",Ym),window.removeEventListener("blur",Km),Lm=null)},function(n){var r,o=[];function a(){r=ev(o.map((function(e){return e.props}))),tv(r)}var i=function(e){function i(){return e.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dh(e,t)}(i,e),i.peek=function(){return r};var s=i.prototype;return s.componentDidMount=function(){o.push(this),a()},s.componentDidUpdate=function(){a()},s.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),a()},s.render=function(){return t().createElement(n,this.props)},i}(e.PureComponent);return function(e,t,n){(t=function(e){var t=function(e){if("object"!=Bh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Bh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bh(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(i,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),i})((function(){return null}));var ev,tv,nv=(0,e.forwardRef)((function(e,n){return t().createElement(Lh,lt({sideCar:Jm,ref:n},e))})),rv=Lh.propTypes||{};rv.sideCar,function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}}(rv,["sideCar"]),nv.propTypes={};const ov=nv;function av(e){return!(!e.parentElement||!av(e.parentElement))||e.hidden}function iv(e){if(!function(e){var t;return!!function(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}(e)&&e instanceof(null!=(t=e.ownerDocument.defaultView)?t:window).HTMLElement}(e)||av(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():!!function(e){const t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||(e=>e.hasAttribute("tabindex"))(e)}var sv,lv=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join();var uv=null!=(sv=ov.default)?sv:ov,cv=t=>{const{initialFocusRef:n,finalFocusRef:r,contentRef:o,restoreFocus:a,children:i,isDisabled:s,autoFocus:l,persistentFocus:u,lockFocusAcrossFrames:c}=t,d=(0,e.useCallback)((()=>{(null==n?void 0:n.current)?n.current.focus():(null==o?void 0:o.current)&&0===function(e){const t=Array.from(e.querySelectorAll(lv));return t.unshift(e),t.filter((e=>iv(e)&&(e=>e.offsetWidth>0&&e.offsetHeight>0)(e)))}(o.current).length&&requestAnimationFrame((()=>{var e;null==(e=o.current)||e.focus()}))}),[n,o]),f=(0,e.useCallback)((()=>{var e;null==(e=null==r?void 0:r.current)||e.focus()}),[r]),p=a&&!r;return(0,oe.jsx)(uv,{crossFrame:c,persistentFocus:u,autoFocus:l,disabled:s,onActivation:d,onDeactivation:f,returnFocus:p,children:i})};cv.displayName="FocusLock";var dv="right-scroll-bar-position",fv="width-before-scroll-bar",pv=Ah(),hv=function(){},mv=e.forwardRef((function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:hv,onWheelCapture:hv,onTouchMoveCapture:hv}),a=o[0],i=o[1],s=t.forwardProps,l=t.children,u=t.className,c=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,h=t.noIsolation,m=t.inert,v=t.allowPinchZoom,g=t.as,y=void 0===g?"div":g,b=t.gapMode,x=ja(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,S=Ch([r,n]),k=Ra(Ra({},x),a);return e.createElement(e.Fragment,null,d&&e.createElement(w,{sideCar:pv,removeScrollBar:c,shards:f,noIsolation:h,inert:m,setCallbacks:i,allowPinchZoom:!!v,lockRef:r,gapMode:b}),s?e.cloneElement(e.Children.only(l),Ra(Ra({},k),{ref:S})):e.createElement(y,Ra({},k,{className:u,ref:S}),l))}));mv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},mv.classNames={fullWidth:fv,zeroRight:dv};var vv=function(t){var n=t.sideCar,r=ja(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,Ra({},r))};vv.isSideCarExport=!0;var gv=function(){var e=0,t=null;return{add:function(r){var o;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n.nc;return t&&e.setAttribute("nonce",t),e}())&&(function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,r),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},yv=function(){var t,n=(t=gv(),function(n,r){e.useEffect((function(){return t.add(n),function(){t.remove()}}),[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},bv={left:0,top:0,right:0,gap:0},xv=function(e){return parseInt(e||"",10)||0},wv=yv(),Sv="data-scroll-locked",kv=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(Sv,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(dv," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(fv," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(dv," .").concat(dv," {\n right: 0 ").concat(r,";\n }\n \n .").concat(fv," .").concat(fv," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Sv,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Ev=function(){var e=parseInt(document.body.getAttribute(Sv)||"0",10);return isFinite(e)?e:0},Cv=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,a=void 0===o?"margin":o;e.useEffect((function(){return document.body.setAttribute(Sv,(Ev()+1).toString()),function(){var e=Ev()-1;e<=0?document.body.removeAttribute(Sv):document.body.setAttribute(Sv,e.toString())}}),[]);var i=e.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return bv;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[xv(n),xv(r),xv(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}(a)}),[a]);return e.createElement(wv,{styles:kv(i,!n,a,r?"":"!important")})},_v=!1;if("undefined"!=typeof window)try{var Pv=Object.defineProperty({},"passive",{get:function(){return _v=!0,!0}});window.addEventListener("test",Pv,Pv),window.removeEventListener("test",Pv,Pv)}catch(e){_v=!1}var Tv=!!_v&&{passive:!1},Ov=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Av=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Rv(e,r)){var o=jv(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Rv=function(e,t){return"v"===e?function(e){return Ov(e,"overflowY")}(t):function(e){return Ov(e,"overflowX")}(t)},jv=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},zv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fv=function(e){return[e.deltaX,e.deltaY]},Mv=function(e){return e&&"current"in e?e.current:e},Nv=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Iv=0,Lv=[];function Dv(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Bv=($v=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),a=e.useState(Iv++)[0],i=e.useState(yv)[0],s=e.useRef(t);e.useEffect((function(){s.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(a));var e=Fa([t.lockRef.current],(t.shards||[]).map(Mv),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[t.inert,t.lockRef.current,t.shards]);var l=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,a=zv(e),i=r.current,l="deltaX"in e?e.deltaX:i[0]-a[0],u="deltaY"in e?e.deltaY:i[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=Av(d,c);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=Av(d,c)),!f)return!1;if(!o.current&&"changedTouches"in e&&(l||u)&&(o.current=n),!n)return!0;var p=o.current||n;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,i=n.target,s=t.contains(i),l=!1,u=a>0,c=0,d=0;do{var f=jv(e,i),p=f[0],h=f[1]-f[2]-o*p;(p||h)&&Rv(e,i)&&(c+=h,d+=p),i=i instanceof ShadowRoot?i.host:i.parentNode}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(u&&(Math.abs(c)<1||!1)||!u&&(Math.abs(d)<1||!1))&&(l=!0),l}(p,t,e,"h"===p?l:u)}),[]),u=e.useCallback((function(e){var t=e;if(Lv.length&&Lv[Lv.length-1]===i){var r="deltaY"in t?Fv(t):zv(t),o=n.current.filter((function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o}))[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var a=(s.current.shards||[]).map(Mv).filter(Boolean).filter((function(e){return e.contains(t.target)}));(a.length>0?l(t,a[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),c=e.useCallback((function(e,t,r,o){var a={name:e,delta:t,target:r,should:o,shadowParent:Dv(r)};n.current.push(a),setTimeout((function(){n.current=n.current.filter((function(e){return e!==a}))}),1)}),[]),d=e.useCallback((function(e){r.current=zv(e),o.current=void 0}),[]),f=e.useCallback((function(e){c(e.type,Fv(e),e.target,l(e,t.lockRef.current))}),[]),p=e.useCallback((function(e){c(e.type,zv(e),e.target,l(e,t.lockRef.current))}),[]);e.useEffect((function(){return Lv.push(i),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Tv),document.addEventListener("touchmove",u,Tv),document.addEventListener("touchstart",d,Tv),function(){Lv=Lv.filter((function(e){return e!==i})),document.removeEventListener("wheel",u,Tv),document.removeEventListener("touchmove",u,Tv),document.removeEventListener("touchstart",d,Tv)}}),[]);var h=t.removeScrollBar,m=t.inert;return e.createElement(e.Fragment,null,m?e.createElement(i,{styles:Nv(a)}):null,h?e.createElement(Cv,{gapMode:t.gapMode}):null)},pv.useMedium($v),vv);var $v,Vv=e.forwardRef((function(t,n){return e.createElement(mv,Ra({},t,{ref:n,sideCar:Bv}))}));Vv.classNames=mv.classNames;const Wv=Vv;function Uv(t){const{autoFocus:n,trapFocus:r,dialogRef:o,initialFocusRef:a,blockScrollOnMount:i,allowPinchZoom:s,finalFocusRef:l,returnFocusOnClose:u,preserveScrollBarGap:c,lockFocusAcrossFrames:d,isOpen:f}=Jp(),[p,h]=Ca();(0,e.useEffect)((()=>{!p&&h&&setTimeout(h)}),[p,h]);const m=Vp(o,f);return(0,oe.jsx)(cv,{autoFocus:n,isDisabled:!r,initialFocusRef:a,finalFocusRef:l,restoreFocus:u,contentRef:o,lockFocusAcrossFrames:d,children:(0,oe.jsx)(Wv,{removeScrollBar:!c,allowPinchZoom:s,enabled:1===m&&i,forwardProps:!0,children:t.children})})}var Hv=Dt(((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:a,...i}=e,{getDialogProps:s,getDialogContainerProps:l}=Jp(),u=s(i,t),c=l(o),d=G("chakra-modal__content",n),f=Kp(),p={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},h={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{motionPreset:m}=Jp();return(0,oe.jsx)(Uv,{children:(0,oe.jsx)($r.div,{...c,className:"chakra-modal__content-container",tabIndex:-1,__css:h,children:(0,oe.jsx)(bh,{preset:m,motionProps:a,className:d,...u,__css:p,children:r})})})}));Hv.displayName="ModalContent";var qv=Dt(((t,n)=>{const{className:r,...o}=t,{headerId:a,setHeaderMounted:i}=Jp();(0,e.useEffect)((()=>(i(!0),()=>i(!1))),[i]);const s=G("chakra-modal__header",r),l={flex:0,...Kp().header};return(0,oe.jsx)($r.header,{ref:n,className:s,id:a,...o,__css:l})}));qv.displayName="ModalHeader";var Qv=Dt(((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:a}=Jp(),i=G("chakra-modal__close-btn",r),s=Kp();return(0,oe.jsx)(sp,{ref:t,__css:s.closeButton,className:i,onClick:ee(n,(e=>{e.stopPropagation(),a()})),...o})}));Qv.displayName="ModalCloseButton";var Gv=Dt(((t,n)=>{const{className:r,...o}=t,{bodyId:a,setBodyMounted:i}=Jp();(0,e.useEffect)((()=>(i(!0),()=>i(!1))),[i]);const s=G("chakra-modal__body",r),l=Kp();return(0,oe.jsx)($r.div,{ref:n,className:s,id:a,...o,__css:l.body})}));Gv.displayName="ModalBody";var Xv=Dt(((e,t)=>{const{className:n,...r}=e,o=G("chakra-modal__footer",n),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...Kp().footer};return(0,oe.jsx)($r.footer,{ref:t,...r,__css:a,className:o})}));Xv.displayName="ModalFooter";const Yv=(e,t)=>{let n,r,o=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(n=e.namespace.replace(/^\/|\/$/g,""),r=e.endpoint.replace(/^\//,""),o=r?n+"/"+r:n),delete e.namespace,delete e.endpoint,t({...e,path:o})};function Kv(e){const t=e.split("?"),n=t[1],r=t[0];return n?r+"?"+n.split("&").map((e=>e.split("="))).map((e=>e.map(decodeURIComponent))).sort(((e,t)=>e[0].localeCompare(t[0]))).map((e=>e.map(encodeURIComponent))).map((e=>e.join("="))).join("&"):r}function Zv(e){try{return decodeURIComponent(e)}catch(t){return e}}function Jv(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[n,r=""]=t.split("=").filter(Boolean).map(Zv);return n&&function(e,t,n){const r=t.length,o=r-1;for(let a=0;a{let{path:n,url:r,...o}=e;return{...o,url:r&&tg(r,t),path:n&&tg(n,t)}},rg=e=>e.json?e.json():Promise.reject(e),og=e=>{const{next:t}=(e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}})(e.headers.get("link"));return t},ag=async(e,t)=>{if(!1===e.parse)return t(e);if(!(e=>{const t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),n=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||n})(e))return t(e);const n=await gg({...ng(e,{per_page:100}),parse:!1}),r=await rg(n);if(!Array.isArray(r))return r;let o=og(n);if(!o)return r;let a=[].concat(r);for(;o;){const t=await gg({...e,path:void 0,url:o,parse:!1}),n=await rg(t);a=a.concat(n),o=og(t)}return a},ig=new Set(["PATCH","PUT","DELETE"]),sg="GET";function lg(e,t){return void 0!==eg(e,t)}const ug=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?e:204===e.status?null:e.json?e.json():Promise.reject(e)}(e,t)).catch((e=>cg(e,t)))};function cg(e){if(arguments.length>1&&void 0!==arguments[1]&&!arguments[1])throw e;return(e=>{const t={code:"invalid_json",message:Q("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((()=>{throw t}))})(e).then((e=>{const t={code:"unknown_error",message:Q("An unknown error occurred.")};throw e||t}))}const dg={Accept:"application/json, */*;q=0.1"},fg={credentials:"include"},pg=[(e,t)=>("string"!=typeof e.url||lg(e.url,"_locale")||(e.url=tg(e.url,{_locale:"user"})),"string"!=typeof e.path||lg(e.path,"_locale")||(e.path=tg(e.path,{_locale:"user"})),t(e)),Yv,(e,t)=>{const{method:n=sg}=e;return ig.has(n.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":n,"Content-Type":"application/json"},method:"POST"}),t(e)},ag],hg=e=>{if(e.status>=200&&e.status<300)return e;throw e};let mg=e=>{const{url:t,path:n,data:r,parse:o=!0,...a}=e;let{body:i,headers:s}=e;return s={...dg,...s},r&&(i=JSON.stringify(r),s["Content-Type"]="application/json"),window.fetch(t||n||window.location.href,{...fg,...a,body:i,headers:s}).then((e=>Promise.resolve(e).then(hg).catch((e=>cg(e,o))).then((e=>ug(e,o)))),(e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:Q("You are probably offline.")}}))};function vg(e){const t=pg.reduceRight(((e,t)=>n=>t(n,e)),mg);return t(e).catch((t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(vg.nonceEndpoint).then(hg).then((e=>e.text())).then((t=>(vg.nonceMiddleware.nonce=t,vg(e))))))}vg.use=function(e){pg.unshift(e)},vg.setFetchHandler=function(e){mg=e},vg.createNonceMiddleware=function(e){const t=(e,n)=>{const{headers:r={}}=e;for(const o in r)if("x-wp-nonce"===o.toLowerCase()&&r[o]===t.nonce)return n(e);return n({...e,headers:{...r,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t},vg.createPreloadingMiddleware=function(e){const t=Object.keys(e).reduce(((t,n)=>(t[Kv(n)]=e[n],t)),{});return(e,n)=>{const{parse:r=!0}=e;let o=e.path;if(!o&&e.url){const t=eg(e.url,"rest_route");"string"==typeof t&&(o=t)}if("string"==typeof o){const n=e.method||"GET",a=Kv(o);if("GET"===n&&t[a]){const e=t[a];return delete t[a],Promise.resolve(r?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}if("OPTIONS"===n&&t[n]&&t[n][a]){const e=t[n][a];return delete t[n][a],Promise.resolve(r?e.body:e)}}return n(e)}},vg.createRootURLMiddleware=e=>(t,n)=>Yv(t,(t=>{let r,o=t.url,a=t.path;return"string"==typeof a&&(r=e,-1!==e.indexOf("?")&&(a=a.replace("?","&")),a=a.replace(/^\//,""),"string"==typeof r&&-1!==r.indexOf("?")&&(a=a.replace("?","&")),o=r+a),n({...t,url:o})})),vg.fetchAllMiddleware=ag,vg.mediaUploadMiddleware=(e,t)=>{if(!function(e){const t=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&t}(e))return t(e);let n=0;const r=e=>(n++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((()=>n<5?r(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject()))));return t({...e,parse:!1}).catch((t=>{const n=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&n?r(n).catch((()=>!1!==e.parse?Promise.reject({code:"post_process",message:Q("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t))):cg(t,e.parse)})).then((t=>ug(t,e.parse)))};const gg=vg;var yg=Dt((function(e,t){const{borderLeftWidth:n,borderBottomWidth:r,borderTopWidth:o,borderRightWidth:a,borderWidth:i,borderStyle:s,borderColor:l,...u}=Kr("Divider",e),{className:c,orientation:d="horizontal",__css:f,...p}=xr(e),h={vertical:{borderLeftWidth:n||a||i||"1px",height:"100%"},horizontal:{borderBottomWidth:r||o||i||"1px",width:"100%"}};return(0,oe.jsx)($r.hr,{ref:t,"aria-orientation":d,...p,__css:{...u,border:"0",borderColor:l,borderStyle:s,...h[d],...f},className:G("chakra-divider",c)})}));yg.displayName="Divider";var[bg,xg]=oo({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),wg=Dt(((e,t)=>{const n=Zr("Table",e),{className:r,layout:o,...a}=xr(e);return(0,oe.jsx)(bg,{value:n,children:(0,oe.jsx)($r.table,{ref:t,__css:{tableLayout:o,...n.table},className:G("chakra-table",r),...a})})}));wg.displayName="Table";var Sg=Dt(((e,t)=>{const n=xg();return(0,oe.jsx)($r.tbody,{...e,ref:t,__css:n.tbody})})),kg=Dt(((e,t)=>{const n=xg();return(0,oe.jsx)($r.tr,{...e,ref:t,__css:n.tr})})),Eg=Dt((({isNumeric:e,...t},n)=>{const r=xg();return(0,oe.jsx)($r.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})}));function Cg(t){const{viewBox:n="0 0 24 24",d:r,displayName:o,defaultProps:a={}}=t,i=e.Children.toArray(t.path),s=Dt(((e,t)=>(0,oe.jsx)(pa,{ref:t,viewBox:n,...a,...e,children:i.length?i:(0,oe.jsx)("path",{fill:"currentColor",d:r})})));return s.displayName=o,s}const _g=Cg({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}),Pg=Cg({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"});function Tg(e){return Tg="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},Tg(e)}function Og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ag(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function zg(){zg=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var a=t&&t.prototype instanceof g?t:g,i=Object.create(a.prototype),s=new A(r||[]);return o(i,"_invoke",{value:_(e,n,s)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",v={};function g(){}function y(){}function b(){}var x={};u(x,i,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(R([])));S&&S!==n&&r.call(S,i)&&(x=S);var k=b.prototype=g.prototype=Object.create(x);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,a,i,s){var l=d(e[o],e,a);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==Tg(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function _(t,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=P(s,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(t,n,r);if("normal"===u.type){if(o=r.done?m:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function P(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=d(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function R(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function Fg(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Mg(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Fg(a,r,o,i,s,"next",e)}function s(e){Fg(a,r,o,i,s,"throw",e)}i(void 0)}))}}function Ng(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}(e,t)||Ig(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 Ig(e,t){if(e){if("string"==typeof e)return Lg(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lg(e,t):void 0}}function Lg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&t().createElement(t().Fragment,null,t().createElement(yg,{color:"gray.200",mb:0}),t().createElement(To,{my:0,fontSize:16,color:"gray.700"},"This form template requires the following addons:"),t().createElement(to,{borderWidth:"1px",borderRadius:"md",overflow:"hidden",w:"100%"},t().createElement(wg,{variant:"simple"},t().createElement(Sg,null,r.map((function(e){return t().createElement(kg,{key:e.key},t().createElement(Eg,null,e.value),t().createElement(Eg,{textAlign:"right"},"active"===i[e.key]?t().createElement(pa,{as:_g,color:"green"}):"inactive"===i[e.key]||"not-installed"===i[e.key]?t().createElement(pa,{as:Pg,color:"yellow"}):t().createElement(eo,{size:"sm"})))})))))),b&&t().createElement(qo,{marginLeft:"auto",onClick:k,colorScheme:"blue",size:"md",isLoading:c,isDisabled:p},b))};function Wg(e){return na({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"},child:[]}]})(e)}function Ug(e){return na({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M458.4 64.3C400.6 15.7 311.3 23 256 79.3 200.7 23 111.4 15.6 53.6 64.3-21.6 127.6-10.6 230.8 43 285.5l175.4 178.7c10 10.2 23.4 15.9 37.6 15.9 14.3 0 27.6-5.6 37.6-15.8L469 285.6c53.5-54.7 64.7-157.9-10.6-221.3zm-23.6 187.5L259.4 430.5c-2.4 2.4-4.4 2.4-6.8 0L77.2 251.8c-36.5-37.2-43.9-107.6 7.3-150.7 38.9-32.7 98.9-27.8 136.5 10.5l35 35.7 35-35.7c37.8-38.5 97.8-43.2 136.5-10.6 51.1 43.1 43.5 113.9 7.3 150.8z"},child:[]}]})(e)}const Hg=e.createContext(void 0),qg=e.createContext(!1);function Qg(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Hg),window.ReactQueryClientContext):Hg)}const Gg=({context:t}={})=>{const n=e.useContext(Qg(t,e.useContext(qg)));if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},Xg=({client:t,children:n,context:r,contextSharing:o=!1})=>{e.useEffect((()=>(t.mount(),()=>{t.unmount()})),[t]);const a=Qg(r,o);return e.createElement(qg.Provider,{value:!r&&o},e.createElement(a.Provider,{value:t},n))},Yg="undefined"==typeof window||"Deno"in window;function Kg(){}function Zg(e){return"number"==typeof e&&e>=0&&e!==1/0}function Jg(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ey(e,t,n){return py(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function ty(e,t,n){return py(e)?[{...t,queryKey:e},n]:[e||{},t]}function ny(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(py(i))if(r){if(t.queryHash!==oy(i,t.options))return!1}else if(!iy(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof s&&t.isStale()!==s||void 0!==o&&o!==t.state.fetchStatus||a&&!a(t))}function ry(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:a}=e;if(py(a)){if(!t.options.mutationKey)return!1;if(n){if(ay(t.options.mutationKey)!==ay(a))return!1}else if(!iy(t.options.mutationKey,a))return!1}return!("boolean"==typeof r&&"loading"===t.state.status!==r||o&&!o(t))}function oy(e,t){return((null==t?void 0:t.queryKeyHashFn)||ay)(e)}function ay(e){return JSON.stringify(e,((e,t)=>dy(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function iy(e,t){return sy(e,t)}function sy(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!sy(e[n],t[n])))}function ly(e,t){if(e===t)return e;const n=cy(e)&&cy(t);if(n||dy(e)&&dy(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),a=o.length,i=n?[]:{};let s=0;for(let r=0;r{setTimeout(t,e)}))}function my(e){hy(0).then(e)}function vy(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?ly(e,t):t}const gy=console,yy=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const o=r=>{t?e.push(r):my((()=>{n(r)}))};return{batch:o=>{let a;t++;try{a=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&my((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return a},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class by{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zg(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Yg?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class xy{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const wy=new class extends xy{constructor(){super(),this.setup=e=>{if(!Yg&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},Sy=["online","offline"],ky=new class extends xy{constructor(){super(),this.setup=e=>{if(!Yg&&window.addEventListener){const t=()=>e();return Sy.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{Sy.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function Ey(e){return Math.min(1e3*2**e,3e4)}function Cy(e){return"online"!==(null!=e?e:"online")||ky.isOnline()}class _y{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Py(e){return e instanceof _y}function Ty(e){let t,n,r,o=!1,a=0,i=!1;const s=new Promise(((e,t)=>{n=e,r=t})),l=()=>!wy.isFocused()||"always"!==e.networkMode&&!ky.isOnline(),u=r=>{i||(i=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},c=n=>{i||(i=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},d=()=>new Promise((n=>{t=e=>{const t=i||!l();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,i||null==e.onContinue||e.onContinue()})),f=()=>{if(i)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch((t=>{var n,r;if(i)return;const s=null!=(n=e.retry)?n:3,u=null!=(r=e.retryDelay)?r:Ey,p="function"==typeof u?u(a,t):u,h=!0===s||"number"==typeof s&&a{if(l())return d()})).then((()=>{o?c(t):f()}))):c(t)}))};return Cy(e.networkMode)?f():d().then(f),{promise:s,cancel:t=>{i||(c(new _y(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1}}}class Oy extends by{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||gy,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=Ty({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,o,a,i,s,l,u;if(!t){var c,d,f,p;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(c=(d=this.mutationCache.config).onMutate)?void 0:c.call(d,this.state.variables,this));const e=await(null==(f=(p=this.options).onMutate)?void 0:f.call(p,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const h=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,h,this.state.variables,this.state.context,this)),await(null==(o=(a=this.options).onSuccess)?void 0:o.call(a,h,this.state.variables,this.state.context)),await(null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,h,null,this.state.variables,this.state.context,this)),await(null==(l=(u=this.options).onSettled)?void 0:l.call(u,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(e){try{var h,m,v,g,y,b,x,w;throw await(null==(h=(m=this.mutationCache.config).onError)?void 0:h.call(m,e,this.state.variables,this.state.context,this)),await(null==(v=(g=this.options).onError)?void 0:v.call(g,e,this.state.variables,this.state.context)),await(null==(y=(b=this.mutationCache.config).onSettled)?void 0:y.call(b,void 0,e,this.state.variables,this.state.context,this)),await(null==(x=(w=this.options).onSettled)?void 0:x.call(w,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Cy(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),yy.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}class Ay extends xy{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),uy(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||null==(e=this.currentMutation)||e.removeObserver(this)}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){yy.batch((()=>{var t,n,r,o;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(o=this.mutateOptions).onSettled)||r.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var a,i,s,l;null==(a=(i=this.mutateOptions).onError)||a.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(l=this.mutateOptions).onSettled)||s.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)}))}))}}const Ry=n(9888).useSyncExternalStore;function jy(e,t){return"function"==typeof e?e(...t):!!e}function zy(){}function Fy(e){return na({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M12 6.5a9.77 9.77 0 0 1 8.82 5.5c-1.65 3.37-5.02 5.5-8.82 5.5S4.83 15.37 3.18 12A9.77 9.77 0 0 1 12 6.5m0-2C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zm0 5a2.5 2.5 0 0 1 0 5 2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5s2.02 4.5 4.5 4.5 4.5-2.02 4.5-4.5-2.02-4.5-4.5-4.5z"},child:[]}]})(e)}function My(e){return My="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},My(e)}function Ny(e){return function(e){if(Array.isArray(e))return Vy(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Iy(){Iy=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var a=t&&t.prototype instanceof g?t:g,i=Object.create(a.prototype),s=new A(r||[]);return o(i,"_invoke",{value:_(e,n,s)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",v={};function g(){}function y(){}function b(){}var x={};u(x,i,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(R([])));S&&S!==n&&r.call(S,i)&&(x=S);var k=b.prototype=g.prototype=Object.create(x);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,a,i,s){var l=d(e[o],e,a);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==My(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(c).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function _(t,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=P(s,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(t,n,r);if("normal"===u.type){if(o=r.done?m:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function P(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=d(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function R(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function Ly(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Dy(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Ly(a,r,o,i,s,"next",e)}function s(e){Ly(a,r,o,i,s,"throw",e)}i(void 0)}))}}function By(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}(e,t)||$y(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 $y(e,t){if(e){if("string"==typeof e)return Vy(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vy(e,t):void 0}}function Vy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nt||[n,r].filter(Boolean).join("-")),[t,n,r])}(a,"disclosure"),p=(0,e.useCallback)((()=>{c||u(!1),null==s||s()}),[c,s]),h=(0,e.useCallback)((()=>{c||u(!0),null==i||i()}),[c,i]),m=(0,e.useCallback)((()=>{(d?p:h)()}),[d,h,p]);return{isOpen:!!d,onOpen:h,onClose:p,onToggle:m,isControlled:c,getButtonProps:(e={})=>({...e,"aria-expanded":d,"aria-controls":f,onClick:Ar(e.onClick,m)}),getDisclosureProps:(e={})=>({...e,hidden:!d,id:f})}}(),S=w.isOpen,k=w.onOpen,E=w.onClose,C=By((0,e.useState)(null),2),_=C[0],P=C[1],T=By((0,e.useState)([]),2),O=T[0],A=T[1],R=jp(),j=Gg(),z=By((0,e.useState)(!1),2),F=z[0],M=z[1],N=By((0,e.useState)(!1),2),I=N[0],L=N[1];(0,e.useEffect)((function(){var e=function(){var e=Dy(Iy().mark((function e(){var t,n;return Iy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,gg({path:"".concat(Hy,"user-registration/v1/form-templates/favorite_forms"),method:"GET",headers:{"X-WP-Nonce":qy}});case 3:(t=e.sent)&&t.success&&(n=Object.keys(t.favorites).map((function(e){return t.favorites[e]})),A(n)),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("Error fetching favorites:",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();e();var t=function(){var e=Dy(Iy().mark((function e(){var t;return Iy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,gg({path:"".concat(Hy,"user-registration/v1/plugin/get_plan"),method:"GET",headers:{"X-WP-Nonce":qy}});case 3:(t=e.sent).license_plan&&(h(!0),g(t.license_plan)),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();t()}),[]);var D=function(){var e=Dy(Iy().mark((function e(t){var n,r,o,a;return Iy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.addons?Object.keys(t.addons):[],!t.isPro){e.next=15;break}r=v.toLocaleLowerCase().replace("user registration","").replace("lifetime","").trim(),o={},a=t.plan[0],e.t0=a,e.next="personal"===e.t0?8:"plus"===e.t0?10:12;break;case 8:return o=["personal","plus","professional","themegrill agency"],e.abrupt("break",12);case 10:return o=["plus","professional","themegrill agency"],e.abrupt("break",12);case 12:o.indexOf(r)<0?(L(!0),M(!0)):(L(!1),M(!1)),e.next=16;break;case 15:L(!1);case 16:return e.prev=16,e.next=19,gg({path:"".concat(Hy,"user-registration/v1/plugin/upgrade"),method:"POST",body:JSON.stringify({requiredPlugins:n}),headers:{"Content-Type":"application/json","X-WP-Nonce":qy}});case 19:if(e.sent.plugin_status){e.next=25;break}return d(t.title),M(!0),e.abrupt("return");case 25:x(t.slug),l(t),d(t.title),k(),e.next=35;break;case 31:e.prev=31,e.t1=e.catch(16),console.log(e.t1),R({title:Q("Error","user-registration"),description:Q("An error occurred while checking the plugin status. Please try again.","user-registration"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"});case 35:case"end":return e.stop()}}),e,null,[[16,31]])})));return function(t){return e.apply(this,arguments)}}(),B=function(){var e=Dy(Iy().mark((function e(){var t;return Iy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c){e.next=3;break}return R({title:Q("Form name required","user-registration"),description:Q("Please provide a name for your form.","user-registration"),status:"warning",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"}),e.abrupt("return");case 3:return e.prev=3,e.next=6,gg({path:"".concat(Hy,"user-registration/v1/form-templates/create"),method:"POST",body:JSON.stringify({title:c,slug:b}),headers:{"Content-Type":"application/json","X-WP-Nonce":qy}});case 6:(t=e.sent).success&&t.data?window.location.href=t.data.redirect:R({title:Q("Error","user-registration"),description:t.message||Q("Failed to create form template.","user-registration"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"}),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),R({title:Q("Error","user-registration"),description:Q("An error occurred while creating the form template.","user-registration"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"});case 13:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(){return e.apply(this,arguments)}}(),$=function(t,n,r){const o=function(e,t,n){return py(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(t,n,r),a=Gg({context:o.context}),[i]=e.useState((()=>new Ay(a,o)));e.useEffect((()=>{i.setOptions(o)}),[i,o]);const s=Ry(e.useCallback((e=>i.subscribe(yy.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),l=e.useCallback(((e,t)=>{i.mutate(e,t).catch(zy)}),[i]);if(s.error&&jy(i.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}(function(){var e=Dy(Iy().mark((function e(t){var n;return Iy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=O.includes(t)?O.filter((function(e){return e!==t})):[].concat(Ny(O),[t]),A(n),e.next=4,gg({path:"".concat(Hy,"user-registration/v1/form-templates/favorite"),method:"POST",body:JSON.stringify({action:n.includes(t)?"add_favorite":"remove_favorite",slug:t}),headers:{"Content-Type":"application/json","X-WP-Nonce":qy}});case 4:return e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{onError:function(e){R({title:Q("Error","user-registration"),description:Q("An error occurred while updating favorites.","user-registration"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})},onSuccess:function(e){j.invalidateQueries(["templates"]),A(e),j.invalidateQueries(["favorites"])}}),V=(null!=i&&i.addons?Object.entries(i.addons).map((function(e){var t=By(e,2);return{key:t[0],value:t[1]}})):[]).map((function(e){return{key:e.key,value:e.value}}));return t().createElement(to,null,t().createElement(Bo,{as:"h3",fontSize:"18px",lineHeight:"26px",fontWeight:"semibold",m:"0px 0px 32px",color:"#26262E",borderBottom:"1px solid #CDD0D8",paddingBottom:"12px"},r.toUpperCase()),null!=o&&o.length?t().createElement(Fp,{columns:{base:1,md:2,lg:3,xl:4},spacing:6},o.map((function(e){var n,r,o,a;return t().createElement(to,{key:e.slug,borderWidth:"2px",borderRadius:"8px",borderColor:"#F6F4FA",overflow:"hidden",position:"relative",onMouseOver:function(){return P(e.id)},onMouseLeave:function(){return P(null)},textAlign:"center",bg:"white",p:0,transition:"all .3s",_hover:{boxShadow:"0px 5px 24px rgba(58, 34, 93, 0.12)","::before":{content:'""',position:"absolute",top:0,left:0,width:"100%",height:"207px",bg:"rgba(0, 0, 0, 0.4)",zIndex:1},"& > div > .template-title":{color:"#475bb2"}}},t().createElement(Mp,{mb:0,height:"207px"},t().createElement(to,{position:"relative",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",bg:"#ECECF6",borderRadius:"4px 4px 0px 0px",overflow:"hidden",transition:"all .3s"},t().createElement(Dp,{boxShadow:"blank"==e.slug?"none":"0px 3px 12px rgba(58, 34, 93, 0.12)",src:(r=e.imageUrl,o=r.split("/"),a=o.pop(),"blank.png"===a?r:[].concat(Ny(o),["user-registration-".concat(a)]).join("/")),alt:e.title,objectFit:"contain",height:"100%"}),e.isPro?p?t().createElement(Oo,{bg:"#4BCE61",color:"white",position:"absolute",bottom:"12px",right:"12px",borderRadius:"4px",fontSize:"12px",p:"2px 6px",textTransform:"capitalize",zIndex:"2",fontWeight:"500"},(null===(n=e.plan)||void 0===n?void 0:n[0])||Q("Pro","user-registration")):t().createElement(Oo,{bg:"#4BCE61",color:"white",position:"absolute",bottom:"12px",right:"12px",borderRadius:"4px",fontSize:"12px",p:"2px 6px",textTransform:"capitalize",zIndex:"2",fontWeight:"500"},Q("Pro","user-registration")):null,_===e.id&&t().createElement(_o,{spacing:4,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},t().createElement(qo,{borderRadius:"50px",leftIcon:t().createElement(oa,null),style:{borderColor:"#475bb2",color:"white"},onClick:function(){return D(e)},bg:"#475bb2",_hover:{bg:"#4153A2"},width:"100%"},Q("Get Started","user-registration")),e.preview_link&&t().createElement(qo,{borderRadius:"50px",leftIcon:t().createElement(Fy,null),color:"#4D4D4D",variant:"outline",onClick:function(){return window.open(e.preview_link,"_blank")},_hover:{color:"#4D4D4D",bg:"#EFEFEF"},bg:"#FFFFFF",width:"100%"},Q("Preview","user-registration"))))),_===e.id&&t().createElement(to,{as:"button",onClick:function(){return t=e.slug,void $.mutate(t);var t},"aria-label":"Toggle favorite for ".concat(e.title),position:"absolute",top:2,right:2,zIndex:3,bg:"transparent",border:"none",_hover:{color:"red.600"}},t().createElement(pa,{as:O.includes(e.slug)?Wg:Ug,boxSize:6,color:O.includes(e.slug)?"red":"white"})),t().createElement(_o,{padding:"8px 16px 16px 16px",gap:"10px"},t().createElement(Bo,{className:"template-title",width:"100%",textAlign:"left",fontWeight:"500",fontSize:"16px",margin:"0px",lineHeight:"22px"},e.title),t().createElement(To,{textAlign:"left",margin:"0px",fontSize:"14px",fontWeight:"400",color:"gray.600",lineHeight:"25px"},e.description)))}))):t().createElement(to,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"80vh",width:"100%"},t().createElement(Dp,{src:Qy+"/wp-content/plugins/user-registration/assets/images/empty-table.png",alt:Q("Not Found","user-registration"),boxSize:"300px",objectFit:"cover"}),t().createElement(To,{mt:4,fontSize:"lg",fontWeight:"bold",textAlign:"center"},Q("No Templates Found","user-registration")),t().createElement(To,{margin:0,fontSize:"sm",textAlign:"center",color:"gray.600"},Q("Sorry, we didn't find any templates that match your criteria","user-registration"))),t().createElement(eh,{isCentered:!0,isOpen:F,onClose:function(){return M(!1)},size:"lg"},t().createElement(uh,null),t().createElement(Hv,{borderRadius:"8px",padding:"20px"},t().createElement(qv,{padding:"0px",textAlign:"center",fontSize:"20px",lineHeight:"28px",color:"#26262E"},t().createElement(Gy,{boxSize:10}),t().createElement(Bo,{as:"h2",margin:"10px 0px 0px 0px",fontSize:"20px",lineHeight:"28px",fontWeight:"bold"},s(Q(I?"%s Requires License Upgrade":"%s is a Premium Template","user-registration"),c))),t().createElement(Qv,{top:"12px",right:"12px"}),t().createElement(Gv,{padding:"0px",marginTop:"16px",textAlign:"center"},t().createElement(To,{margin:"0px",fontSize:"16px",lineHeight:"24px",mb:"20px"},Q(I?"This template requires plus and above plan. Please upgrade to the Plus and above to unlock all these awesome templates.":"This template requires premium addons. Please upgrade to the Premium to unlock all these awesome templates.","user-registration"))),t().createElement(Xv,{justifyContent:"flex-end",padding:"0px"},t().createElement(qo,{variant:"ghost",onClick:function(){return M(!1)},border:"1px solid #DFDFDF"},Q("OK","user-registration")),t().createElement("a",{href:"https://wpuserregistration.com/pricing/?utm_source=form-template&utm_medium=premium-form-templates-popup&utm_campaign=lite-version",target:"_blank",rel:"noopener noreferrer",style:{width:"inherit"}},t().createElement(qo,{colorScheme:"blue",ml:3},Q("Upgrade Plan","user-registration")))))),t().createElement(eh,{isCentered:!0,isOpen:S&&!I,onClose:E,size:"xl"},t().createElement(uh,null),t().createElement(Hv,{borderRadius:"8px",padding:"40px"},t().createElement(qv,{padding:"0px",textAlign:"left",fontSize:"20px",lineHeight:"28px",color:"#26262E"},Q("Uplift your form experience to the next level.","user-registration")),t().createElement(Qv,{top:"12px",right:"12px"}),t().createElement(Gv,{padding:"0px",marginTop:"16px"},t().createElement(to,{mb:"20px",padding:"0px"},t().createElement(To,{margin:"0px 0px 6px",fontSize:"16px",lineHeight:"29px"},Q("Give it a name","user-registration")),t().createElement(ko,{width:"full",value:c,onChange:function(e){return d(e.target.value)},placeholder:"Give it a name.",size:"md",_focus:{borderColor:"#475BB2",outline:"none",boxShadow:"none"}})),t().createElement(to,{overflow:"hidden",mb:"0px",padding:"0px"},t().createElement(Vg,{requiredPlugins:V,onActivateAndContinue:B}))))))};class Yy extends xy{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),Ky(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Zy(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Zy(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),uy(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&Jy(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const a=this.computeRefetchInterval();!o||this.currentQuery===r&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){return!n.keepPreviousData&&(void 0!==n.placeholderData?t.isPlaceholderData:!uy(e.getCurrentResult(),t))}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(Kg)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Yg||this.currentResult.isStale||!Zg(this.options.staleTime))return;const e=Jg(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!Yg&&!1!==this.options.enabled&&Zg(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||wy.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,o=this.currentResult,a=this.currentResultState,i=this.currentResultOptions,s=e!==n,l=s?e.state:this.currentQueryInitialState,u=s?this.currentResult:this.previousQueryResult,{state:c}=e;let d,{dataUpdatedAt:f,error:p,errorUpdatedAt:h,fetchStatus:m,status:v}=c,g=!1,y=!1;if(t._optimisticResults){const o=this.hasListeners(),a=!o&&Ky(e,t),i=o&&Jy(e,n,t,r);(a||i)&&(m=Cy(e.options.networkMode)?"fetching":"paused",f||(v="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}if(t.keepPreviousData&&!c.dataUpdatedAt&&null!=u&&u.isSuccess&&"error"!==v)d=u.data,f=u.dataUpdatedAt,v=u.status,g=!0;else if(t.select&&void 0!==c.data)if(o&&c.data===(null==a?void 0:a.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(c.data),d=vy(null==o?void 0:o.data,d,t),this.selectResult=d,this.selectError=null}catch(e){this.selectError=e}else d=c.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===v){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==i?void 0:i.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(v="success",d=vy(null==o?void 0:o.data,e,t),y=!0)}this.selectError&&(p=this.selectError,d=this.selectResult,h=Date.now(),v="error");const b="fetching"===m,x="loading"===v,w="error"===v;return{status:v,fetchStatus:m,isLoading:x,isSuccess:"success"===v,isError:w,isInitialLoading:x&&b,data:d,dataUpdatedAt:f,error:p,errorUpdatedAt:h,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:w&&0===c.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:y,isPreviousData:g,isRefetchError:w&&0!==c.dataUpdatedAt,isStale:eb(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,uy(n,t))return;this.currentResult=n;const r={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||Py(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){yy.batch((()=>{var t,n,r,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(o=this.options).onSettled)||r.call(o,this.currentResult.data,null);else if(e.onError){var a,i,s,l;null==(a=(i=this.options).onError)||a.call(i,this.currentResult.error),null==(s=(l=this.options).onSettled)||s.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function Ky(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&Zy(e,t,t.refetchOnMount)}function Zy(e,t,n){if(!1!==t.enabled){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&eb(e,t)}return!1}function Jy(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&eb(e,n)}function eb(e,t){return e.isStaleByTime(t.staleTime)}const tb=e.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),nb=e.createContext(!1);function rb(e){return rb="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},rb(e)}function ob(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ab(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function cb(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}nb.Provider;var db=ur_templates_script,fb=db.restURL,pb=db.security,hb=function(){var e,t=(e=ub().mark((function e(){var t,n;return ub().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,gg({path:"".concat(fb,"user-registration/v1/form-templates"),method:"GET",headers:{"X-WP-Nonce":pb}});case 2:if(!(t=e.sent)||!Array.isArray(t.templates)){e.next=8;break}return n=t.templates.flatMap((function(e){return e.templates})),e.abrupt("return",n);case 8:throw new Error(Q("Unexpected response format.","user-registration"));case 9:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){cb(a,r,o,i,s,"next",e)}function s(e){cb(a,r,o,i,s,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();const mb=function(n){var r=n.filter,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}(e,t)||sb(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.")}()}((0,e.useState)({selectedCategory:Q("All Forms","user-registration"),searchTerm:""}),2),a=o[0],i=o[1],s=a.selectedCategory,l=a.searchTerm,u=function(t,n){const r=Gg({context:t.context}),o=e.useContext(nb),a=e.useContext(tb),i=r.defaultQueryOptions(t);i._optimisticResults=o?"isRestoring":"optimistic",i.onError&&(i.onError=yy.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=yy.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=yy.batchCalls(i.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(i),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(i,a),(t=>{e.useEffect((()=>{t.clearReset()}),[t])})(a);const[s]=e.useState((()=>new n(r,i))),l=s.getOptimisticResult(i);if(Ry(e.useCallback((e=>{const t=o?()=>{}:s.subscribe(yy.batchCalls(e));return s.updateResult(),t}),[s,o]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),e.useEffect((()=>{s.setOptions(i,{listeners:!1})}),[i,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(i,l,o))throw((e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)})))(i,s,a);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&jy(n,[e.error,r]))({result:l,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:s.getCurrentQuery()}))throw l.error;return i.notifyOnChangeProps?l:s.trackResult(l)}(ey(["templates"],hb,undefined),Yy),c=u.data,d=void 0===c?[]:c,f=u.isLoading,p=u.error,h=(0,e.useMemo)((function(){var e=new Set;return d.forEach((function(t){t.categories.forEach((function(t){return e.add(t)}))})),[{name:Q("All Forms","user-registration"),count:d.length}].concat(function(e){return function(e){if(Array.isArray(e))return lb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sb(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Array.from(e).map((function(e){return{name:e,count:d.filter((function(t){return t.categories.includes(e)})).length}}))))}),[d]),m=(0,e.useMemo)((function(){return d.filter((function(e){return(s===Q("All Forms","user-registration")||e.categories.includes(s))&&e.title.toLowerCase().includes(l.toLowerCase())&&("All"===r||"Free"===r&&!e.isPro||"Premium"===r&&e.isPro)}))}),[s,l,d,r]),v=(0,e.useCallback)((function(e){i((function(t){return ab(ab({},t),{},{selectedCategory:e})}))}),[]),g=(0,e.useCallback)((function(e){i((function(t){return ab(ab({},t),{},{searchTerm:e})}))}),[]),y=Lt({base:"100%",md:"250px"});return f?t().createElement(Vr,{justify:"center",align:"center",height:"100vh"},t().createElement(eo,{size:"xl"})):p?t().createElement("div",null,p.message):t().createElement(to,null,t().createElement(Vr,{direction:{base:"column",md:"row"}},t().createElement(to,{width:y,mr:{base:0,md:4},mb:{base:4,md:0}},t().createElement(da,{categories:h,selectedCategory:a.selectedCategory,onCategorySelect:v,onSearchChange:g})),t().createElement(to,{width:"1px",bg:"linear-gradient(90deg, #CDD0D8 0%, rgba(255, 255, 255, 0) 158.04%)",mx:"4",marginRight:"28px"}),t().createElement(to,{flex:1},t().createElement(Xy,{selectedCategory:s,templates:m}))))};function vb(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==r}function gb(t={}){const{ref:n,isDisabled:r,isFocusable:o,clickOnEnter:a=!0,clickOnSpace:i=!0,onMouseDown:s,onMouseUp:l,onClick:u,onKeyDown:c,onKeyUp:d,tabIndex:f,onMouseOver:p,onMouseLeave:h,...m}=t,[v,g]=(0,e.useState)(!0),[y,b]=(0,e.useState)(!1),x=function(){const t=(0,e.useRef)(new Map),n=t.current,r=(0,e.useCallback)(((e,n,r,o)=>{t.current.set(r,{type:n,el:e,options:o}),e.addEventListener(n,r,o)}),[]),o=(0,e.useCallback)(((e,n,r,o)=>{e.removeEventListener(n,r,o),t.current.delete(r)}),[]);return(0,e.useEffect)((()=>()=>{n.forEach(((e,t)=>{o(e.el,e.type,t,e.options)}))}),[o,n]),{add:r,remove:o}}(),w=v?f:f||0,S=r&&!o,k=(0,e.useCallback)((e=>{if(r)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==u||u(e)}),[r,u]),E=(0,e.useCallback)((e=>{y&&vb(e)&&(e.preventDefault(),e.stopPropagation(),b(!1),x.remove(document,"keyup",E,!1))}),[y,x]),C=(0,e.useCallback)((e=>{if(null==c||c(e),r||e.defaultPrevented||e.metaKey)return;if(!vb(e.nativeEvent)||v)return;const t=a&&"Enter"===e.key;i&&" "===e.key&&(e.preventDefault(),b(!0)),t&&(e.preventDefault(),e.currentTarget.click()),x.add(document,"keyup",E,!1)}),[r,v,c,a,i,x,E]),_=(0,e.useCallback)((e=>{null==d||d(e),r||e.defaultPrevented||e.metaKey||vb(e.nativeEvent)&&!v&&i&&" "===e.key&&(e.preventDefault(),b(!1),e.currentTarget.click())}),[i,v,r,d]),P=(0,e.useCallback)((e=>{0===e.button&&(b(!1),x.remove(document,"mouseup",P,!1))}),[x]),T=(0,e.useCallback)((e=>{if(0===e.button){if(r)return e.stopPropagation(),void e.preventDefault();v||b(!0),e.currentTarget.focus({preventScroll:!0}),x.add(document,"mouseup",P,!1),null==s||s(e)}}),[r,v,s,x,P]),O=(0,e.useCallback)((e=>{0===e.button&&(v||b(!1),null==l||l(e))}),[l,v]),A=(0,e.useCallback)((e=>{r?e.preventDefault():null==p||p(e)}),[r,p]),R=(0,e.useCallback)((e=>{y&&(e.preventDefault(),b(!1)),null==h||h(e)}),[y,h]),j=mo(n,(e=>{e&&"BUTTON"!==e.tagName&&g(!1)}));return v?{...m,ref:j,type:"button","aria-disabled":S?void 0:r,disabled:S,onClick:k,onMouseDown:s,onMouseUp:l,onKeyUp:d,onKeyDown:c,onMouseOver:p,onMouseLeave:h}:{...m,ref:j,role:"button","data-active":Z(y),"aria-disabled":r?"true":void 0,tabIndex:S?void 0:w,onClick:k,onMouseDown:T,onMouseUp:O,onKeyUp:_,onKeyDown:C,onMouseOver:A,onMouseLeave:R}}var yb=Object.defineProperty,bb=(e,t,n)=>(((e,t,n)=>{t in e?yb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);function xb(e){return e.sort(((e,t)=>{const n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0}))}function wb(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function Sb(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var kb="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Eb=class{constructor(){bb(this,"descendants",new Map),bb(this,"register",(e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}})),bb(this,"unregister",(e=>{this.descendants.delete(e);const t=xb(Array.from(this.descendants.keys()));this.assignIndex(t)})),bb(this,"destroy",(()=>{this.descendants.clear()})),bb(this,"assignIndex",(e=>{this.descendants.forEach((t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()}))})),bb(this,"count",(()=>this.descendants.size)),bb(this,"enabledCount",(()=>this.enabledValues().length)),bb(this,"values",(()=>Array.from(this.descendants.values()).sort(((e,t)=>e.index-t.index)))),bb(this,"enabledValues",(()=>this.values().filter((e=>!e.disabled)))),bb(this,"item",(e=>{if(0!==this.count())return this.values()[e]})),bb(this,"enabledItem",(e=>{if(0!==this.enabledCount())return this.enabledValues()[e]})),bb(this,"first",(()=>this.item(0))),bb(this,"firstEnabled",(()=>this.enabledItem(0))),bb(this,"last",(()=>this.item(this.descendants.size-1))),bb(this,"lastEnabled",(()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)})),bb(this,"indexOf",(e=>{var t,n;return e&&null!=(n=null==(t=this.descendants.get(e))?void 0:t.index)?n:-1})),bb(this,"enabledIndexOf",(e=>null==e?-1:this.enabledValues().findIndex((t=>t.node.isSameNode(e))))),bb(this,"next",((e,t=!0)=>{const n=wb(e,this.count(),t);return this.item(n)})),bb(this,"nextEnabled",((e,t=!0)=>{const n=this.item(e);if(!n)return;const r=wb(this.enabledIndexOf(n.node),this.enabledCount(),t);return this.enabledItem(r)})),bb(this,"prev",((e,t=!0)=>{const n=Sb(e,this.count()-1,t);return this.item(n)})),bb(this,"prevEnabled",((e,t=!0)=>{const n=this.item(e);if(!n)return;const r=Sb(this.enabledIndexOf(n.node),this.enabledCount()-1,t);return this.enabledItem(r)})),bb(this,"registerNode",((e,t)=>{if(!e||this.descendants.has(e))return;const n=xb(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);const r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)}))}},[Cb,_b]=oo({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),[Pb,Tb,Ob,Ab]=[Cb,()=>_b(),()=>function(){const t=(0,e.useRef)(new Eb);return kb((()=>()=>t.current.destroy())),t.current}(),t=>function(t){const n=_b(),[r,o]=(0,e.useState)(-1),a=(0,e.useRef)(null);kb((()=>()=>{a.current&&n.unregister(a.current)}),[]),kb((()=>{if(!a.current)return;const e=Number(a.current.dataset.index);r==e||Number.isNaN(e)||o(e)}));const i=t?n.register(t):n.register;return{descendants:n,index:r,enabledIndex:n.enabledIndexOf(a.current),register:mo(i,a)}}(t)];var[Rb,jb]=oo({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "}),[zb,Fb]=oo({});function Mb(e,t){return`${e}--tab-${t}`}function Nb(e,t){return`${e}--tabpanel-${t}`}var[Ib,Lb]=oo({name:"TabsStylesContext",errorMessage:"useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),Db=Dt((function(t,n){const r=Zr("Tabs",t),{children:o,className:a,...i}=xr(t),{htmlProps:s,descendants:l,...u}=function(t){var n;const{defaultIndex:r,onChange:o,index:a,isManual:i,isLazy:s,lazyBehavior:l="unmount",orientation:u="horizontal",direction:c="ltr",...d}=t,[f,p]=(0,e.useState)(null!=r?r:0),[h,m]=function(t){const{value:n,defaultValue:r,onChange:o,shouldUpdate:a=(e,t)=>e!==t}=t,i=wa(o),s=wa(a),[l,u]=(0,e.useState)(r),c=void 0!==n,d=c?n:l,f=wa((e=>{const t="function"==typeof e?e(d):e;s(d,t)&&(c||u(t),i(t))}),[c,i,d,s]);return[d,f]}({defaultValue:null!=r?r:0,value:a,onChange:o});(0,e.useEffect)((()=>{null!=a&&p(a)}),[a]);const v=Ob(),g=(0,e.useId)();return{id:`tabs-${null!=(n=t.id)?n:g}`,selectedIndex:h,focusedIndex:f,setSelectedIndex:m,setFocusedIndex:p,isManual:i,isLazy:s,lazyBehavior:l,orientation:u,descendants:v,direction:c,htmlProps:d}}(i),c=(0,e.useMemo)((()=>u),[u]),{isFitted:d,...f}=s,p={position:"relative",...r.root};return(0,oe.jsx)(Pb,{value:l,children:(0,oe.jsx)(Rb,{value:c,children:(0,oe.jsx)(Ib,{value:r,children:(0,oe.jsx)($r.div,{className:G("chakra-tabs",a),ref:n,...f,__css:p,children:o})})})})}));Db.displayName="Tabs";var Bb=Dt((function(t,n){const r=function(t){const{focusedIndex:n,orientation:r,direction:o}=jb(),a=Tb(),i=(0,e.useCallback)((e=>{const t=()=>{var e;const t=a.nextEnabled(n);t&&(null==(e=t.node)||e.focus())},i=()=>{var e;const t=a.prevEnabled(n);t&&(null==(e=t.node)||e.focus())},s="horizontal"===r,l="vertical"===r,u=e.key,c="ltr"===o?"ArrowLeft":"ArrowRight",d="ltr"===o?"ArrowRight":"ArrowLeft",f={[c]:()=>s&&i(),[d]:()=>s&&t(),ArrowDown:()=>l&&t(),ArrowUp:()=>l&&i(),Home:()=>{var e;const t=a.firstEnabled();t&&(null==(e=t.node)||e.focus())},End:()=>{var e;const t=a.lastEnabled();t&&(null==(e=t.node)||e.focus())}},p=f[u];p&&(e.preventDefault(),p(e))}),[a,n,r,o]);return{...t,role:"tablist","aria-orientation":r,onKeyDown:ee(t.onKeyDown,i)}}({...t,ref:n}),o={display:"flex",...Lb().tablist};return(0,oe.jsx)($r.div,{...r,className:G("chakra-tabs__tablist",t.className),__css:o})}));Bb.displayName="TabList";var $b=Dt((function(e,t){const n=Lb(),r=function(e){const{isDisabled:t=!1,isFocusable:n=!1,...r}=e,{setSelectedIndex:o,isManual:a,id:i,setFocusedIndex:s,selectedIndex:l}=jb(),{index:u,register:c}=Ab({disabled:t&&!n}),d=u===l;return{...gb({...r,ref:mo(c,e.ref),isDisabled:t,isFocusable:n,onClick:ee(e.onClick,(()=>{o(u)}))}),id:Mb(i,u),role:"tab",tabIndex:d?0:-1,type:"button","aria-selected":d,"aria-controls":Nb(i,u),onFocus:t?void 0:ee(e.onFocus,(()=>{s(u),!a&&(!t||!n)&&o(u)}))}}({...e,ref:t}),o={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...n.tab};return(0,oe.jsx)($r.button,{...r,className:G("chakra-tabs__tab",e.className),__css:o})}));$b.displayName="Tab";var Vb,Wb=String.raw,Ub=Wb`
:root,
:host {
--chakra-vh: 100vh;
}
@supports (height: -webkit-fill-available) {
:root,
:host {
--chakra-vh: -webkit-fill-available;
}
}
@supports (height: -moz-fill-available) {
:root,
:host {
--chakra-vh: -moz-fill-available;
}
}
@supports (height: 100dvh) {
:root,
:host {
--chakra-vh: 100dvh;
}
}
`,Hb=()=>(0,oe.jsx)(qr,{styles:Ub}),qb=({scope:e=""})=>(0,oe.jsx)(qr,{styles:Wb`
html {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
font-family: system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
touch-action: manipulation;
}
body {
position: relative;
min-height: 100%;
margin: 0;
font-feature-settings: "kern";
}
${e} :where(*, *::before, *::after) {
border-width: 0;
border-style: solid;
box-sizing: border-box;
word-wrap: break-word;
}
main {
display: block;
}
${e} hr {
border-top-width: 1px;
box-sizing: content-box;
height: 0;
overflow: visible;
}
${e} :where(pre, code, kbd,samp) {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 1em;
}
${e} a {
background-color: transparent;
color: inherit;
text-decoration: inherit;
}
${e} abbr[title] {
border-bottom: none;
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
${e} :where(b, strong) {
font-weight: bold;
}
${e} small {
font-size: 80%;
}
${e} :where(sub,sup) {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
${e} sub {
bottom: -0.25em;
}
${e} sup {
top: -0.5em;
}
${e} img {
border-style: none;
}
${e} :where(button, input, optgroup, select, textarea) {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
${e} :where(button, input) {
overflow: visible;
}
${e} :where(button, select) {
text-transform: none;
}
${e} :where(
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner
) {
border-style: none;
padding: 0;
}
${e} fieldset {
padding: 0.35em 0.75em 0.625em;
}
${e} legend {
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
${e} progress {
vertical-align: baseline;
}
${e} textarea {
overflow: auto;
}
${e} :where([type="checkbox"], [type="radio"]) {
box-sizing: border-box;
padding: 0;
}
${e} input[type="number"]::-webkit-inner-spin-button,
${e} input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none !important;
}
${e} input[type="number"] {
-moz-appearance: textfield;
}
${e} input[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
${e} input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none !important;
}
${e} ::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
${e} details {
display: block;
}
${e} summary {
display: list-item;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
${e} :where(
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre
) {
margin: 0;
}
${e} button {
background: transparent;
padding: 0;
}
${e} fieldset {
margin: 0;
padding: 0;
}
${e} :where(ol, ul) {
margin: 0;
padding: 0;
}
${e} textarea {
resize: vertical;
}
${e} :where(button, [role="button"]) {
cursor: pointer;
}
${e} button::-moz-focus-inner {
border: 0 !important;
}
${e} table {
border-collapse: collapse;
}
${e} :where(h1, h2, h3, h4, h5, h6) {
font-size: inherit;
font-weight: inherit;
}
${e} :where(button, input, optgroup, select, textarea) {
padding: 0;
line-height: inherit;
color: inherit;
}
${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
display: block;
}
${e} :where(img, video) {
max-width: 100%;
height: auto;
}
[data-js-focus-visible]
:focus:not([data-focus-visible-added]):not(
[data-focus-visible-disabled]
) {
outline: none;
box-shadow: none;
}
${e} select::-ms-expand {
display: none;
}
${Ub}
`}),Qb="chakra-ui-light",Gb="chakra-ui-dark",Xb="chakra-ui-color-mode",Yb=(Vb=Xb,{ssr:!1,type:"localStorage",get(e){if(!(null==globalThis?void 0:globalThis.document))return e;let t;try{t=localStorage.getItem(Vb)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(Vb,e)}catch(e){}}});var Kb=()=>{};function Zb(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function Jb(t){const{value:n,children:r,options:{useSystemColorMode:o,initialColorMode:a,disableTransitionOnChange:i}={},colorModeManager:s=Yb}=t,l="dark"===a?"dark":"light",[u,c]=(0,e.useState)((()=>Zb(s,l))),[d,f]=(0,e.useState)((()=>Zb(s))),{getSystemTheme:p,setClassName:h,setDataset:m,addListener:v}=(0,e.useMemo)((()=>function(e={}){const{preventTransition:t=!0}=e,n={setDataset:e=>{const r=t?n.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==r||r()},setClassName(e){document.body.classList.add(e?Gb:Qb),document.body.classList.remove(e?Qb:Gb)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;return(null!=(t=n.query().matches)?t:"dark"===e)?"dark":"light"},addListener(e){const t=n.query(),r=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(r):t.addEventListener("change",r),()=>{"function"==typeof t.removeListener?t.removeListener(r):t.removeEventListener("change",r)}},preventTransition(){const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame((()=>{requestAnimationFrame((()=>{document.head.removeChild(e)}))}))}}};return n}({preventTransition:i})),[i]),g="system"!==a||u?u:d,y=(0,e.useCallback)((e=>{const t="system"===e?p():e;c(t),h("dark"===t),m(t),s.set(t)}),[s,p,h,m]);re((()=>{"system"===a&&f(p())}),[]),(0,e.useEffect)((()=>{const e=s.get();y(e||("system"!==a?l:"system"))}),[s,l,a,y]);const b=(0,e.useCallback)((()=>{y("dark"===g?"light":"dark")}),[g,y]);(0,e.useEffect)((()=>{if(o)return v(y)}),[o,v,y]);const x=(0,e.useMemo)((()=>({colorMode:null!=n?n:g,toggleColorMode:n?Kb:b,setColorMode:n?Kb:y,forced:void 0!==n})),[g,b,y,n]);return(0,oe.jsx)(Er.Provider,{value:x,children:r})}Jb.displayName="ColorModeProvider";var ex=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:a=!0,theme:i={},environment:s,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=(0,oe.jsx)(ie,{environment:s,disabled:u,children:t});return(0,oe.jsx)(Ro,{theme:i,cssVarsRoot:l,children:(0,oe.jsxs)(Jb,{colorModeManager:n,options:i.config,children:[a?(0,oe.jsx)(qb,{scope:o}):(0,oe.jsx)(Hb,{}),!c&&(0,oe.jsx)(Mo,{}),r?(0,oe.jsx)(xp,{zIndex:r,children:d}):d]})})},tx={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},nx={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},rx={...nx,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},ox={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},...tx,sizes:rx,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:nx,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}},{defineMultiStyleConfig:ax,definePartsStyle:ix}=yr(["stepper","step","title","description","indicator","separator","icon","number"]),sx=Ln("stepper-indicator-size"),lx=Ln("stepper-icon-size"),ux=Ln("stepper-title-font-size"),cx=Ln("stepper-description-font-size"),dx=Ln("stepper-accent-color"),fx=ix((({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[dx.variable]:`colors.${e}.500`,_dark:{[dx.variable]:`colors.${e}.200`}},title:{fontSize:ux.reference,fontWeight:"medium"},description:{fontSize:cx.reference,color:"chakra-subtle-text"},number:{fontSize:ux.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:lx.reference,height:lx.reference},indicator:{flexShrink:0,borderRadius:"full",width:sx.reference,height:sx.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:dx.reference},"&[data-status=complete]":{bg:dx.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:dx.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${sx.reference} - 8px)`,top:`calc(${sx.reference} + 4px)`,insetStart:`calc(${sx.reference} / 2 - 1px)`}}}))),px=ax({baseStyle:fx,sizes:{xs:ix({stepper:{[sx.variable]:"sizes.4",[lx.variable]:"sizes.3",[ux.variable]:"fontSizes.xs",[cx.variable]:"fontSizes.xs"}}),sm:ix({stepper:{[sx.variable]:"sizes.6",[lx.variable]:"sizes.4",[ux.variable]:"fontSizes.sm",[cx.variable]:"fontSizes.xs"}}),md:ix({stepper:{[sx.variable]:"sizes.8",[lx.variable]:"sizes.5",[ux.variable]:"fontSizes.md",[cx.variable]:"fontSizes.sm"}}),lg:ix({stepper:{[sx.variable]:"sizes.10",[lx.variable]:"sizes.6",[ux.variable]:"fontSizes.lg",[cx.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function hx(e,t={}){let n=!1;function r(t){const n=`chakra-${(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__")}`;return{className:n,selector:`.${n}`,toString:()=>t}}return{parts:function(...o){!function(){if(n)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");n=!0}();for(const e of o)t[e]=r(e);return hx(e,t)},toPart:r,extend:function(...n){for(const e of n)e in t||(t[e]=r(e));return hx(e,t)},selectors:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.selector])));return e},classnames:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.className])));return e},get keys(){return Object.keys(t)},__type:{}}}var mx=hx("accordion").parts("root","container","button","panel").extend("icon"),vx=hx("alert").parts("title","description","container").extend("icon","spinner"),gx=hx("avatar").parts("label","badge","container").extend("excessLabel","group"),yx=hx("breadcrumb").parts("link","item","container").extend("separator"),bx=(hx("button").parts(),hx("checkbox").parts("control","icon","container").extend("label")),xx=(hx("progress").parts("track","filledTrack").extend("label"),hx("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),wx=hx("editable").parts("preview","input","textarea"),Sx=hx("form").parts("container","requiredIndicator","helperText"),kx=hx("formError").parts("text","icon"),Ex=hx("input").parts("addon","field","element","group"),Cx=hx("list").parts("container","item","icon"),_x=hx("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),Px=hx("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Tx=hx("numberinput").parts("root","field","stepperGroup","stepper"),Ox=(hx("pininput").parts("field"),hx("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),Ax=hx("progress").parts("label","filledTrack","track"),Rx=hx("radio").parts("container","control","label"),jx=hx("select").parts("field","icon"),zx=hx("slider").parts("container","track","thumb","filledTrack","mark"),Fx=hx("stat").parts("container","label","helpText","number","icon"),Mx=hx("switch").parts("container","track","thumb","label"),Nx=hx("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Ix=hx("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Lx=hx("tag").parts("container","label","closeButton"),Dx=hx("card").parts("container","header","body","footer");function Bx(e){const t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function $x(e,t){return`var(${Bx(e)}${t?`, ${t}`:""})`}function Vx(e,t){const n=function(e,t=""){return`--${function(e,t=""){return[t,Bx(e)].filter(Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:n,reference:$x(n,(r=null==t?void 0:t.fallback,"string"==typeof r?r:null==r?void 0:r.reference))};var r}function Wx(e){return X(e)&&e.reference?e.reference:String(e)}hx("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");var Ux=(e,...t)=>t.map(Wx).join(` ${e} `).replace(/calc/g,""),Hx=(...e)=>`calc(${Ux("+",...e)})`,qx=(...e)=>`calc(${Ux("-",...e)})`,Qx=(...e)=>`calc(${Ux("*",...e)})`,Gx=(...e)=>`calc(${Ux("/",...e)})`,Xx=e=>{const t=Wx(e);return null==t||Number.isNaN(parseFloat(t))?Qx(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Yx=Object.assign((e=>({add:(...t)=>Yx(Hx(e,...t)),subtract:(...t)=>Yx(qx(e,...t)),multiply:(...t)=>Yx(Qx(e,...t)),divide:(...t)=>Yx(Gx(e,...t)),negate:()=>Yx(Xx(e)),toString:()=>e.toString()})),{add:Hx,subtract:qx,multiply:Qx,divide:Gx,negate:Xx}),{defineMultiStyleConfig:Kx,definePartsStyle:Zx}=yr(Mx.keys),Jx=Vx("switch-track-width"),ew=Vx("switch-track-height"),tw=Vx("switch-track-diff"),nw=Yx.subtract(Jx,ew),rw=Vx("switch-thumb-x"),ow=Vx("switch-bg"),aw=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Jx.reference],height:[ew.reference],transitionProperty:"common",transitionDuration:"fast",[ow.variable]:"colors.gray.300",_dark:{[ow.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ow.variable]:`colors.${t}.500`,_dark:{[ow.variable]:`colors.${t}.200`}},bg:ow.reference}},iw={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[ew.reference],height:[ew.reference],_checked:{transform:`translateX(${rw.reference})`}},sw=Kx({baseStyle:Zx((e=>({container:{[tw.variable]:nw,[rw.variable]:tw.reference,_rtl:{[rw.variable]:Yx(tw).negate().toString()}},track:aw(e),thumb:iw}))),sizes:{sm:Zx({container:{[Jx.variable]:"1.375rem",[ew.variable]:"sizes.3"}}),md:Zx({container:{[Jx.variable]:"1.875rem",[ew.variable]:"sizes.4"}}),lg:Zx({container:{[Jx.variable]:"2.875rem",[ew.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function lw(e,t){return n=>"dark"===n.colorMode?t:e}function uw(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?"vertical"===t?n:r:{}}var{defineMultiStyleConfig:cw,definePartsStyle:dw}=yr(Nx.keys),fw=dw({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),pw={"&[data-is-numeric=true]":{textAlign:"end"}},hw=dw((e=>{const{colorScheme:t}=e;return{th:{color:lw("gray.600","gray.400")(e),borderBottom:"1px",borderColor:lw(`${t}.100`,`${t}.700`)(e),...pw},td:{borderBottom:"1px",borderColor:lw(`${t}.100`,`${t}.700`)(e),...pw},caption:{color:lw("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),mw=dw((e=>{const{colorScheme:t}=e;return{th:{color:lw("gray.600","gray.400")(e),borderBottom:"1px",borderColor:lw(`${t}.100`,`${t}.700`)(e),...pw},td:{borderBottom:"1px",borderColor:lw(`${t}.100`,`${t}.700`)(e),...pw},caption:{color:lw("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:lw(`${t}.100`,`${t}.700`)(e)},td:{background:lw(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),vw=cw({baseStyle:fw,variants:{simple:hw,striped:mw,unstyled:{}},sizes:{sm:dw({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:dw({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:dw({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});function gw(e,t,n){return Math.min(Math.max(e,n),t)}class yw extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var bw=yw;function xw(e){if("string"!=typeof e)throw new bw(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=Tw.test(e)?function(e){const t=e.toLowerCase().trim(),n=Sw[function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0)%2341}(t)];if(!n)throw new bw(e);return`#${n}`}(e):e;const n=Ew.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map((e=>parseInt(kw(e,2),16))),parseInt(kw(e[3]||"f",2),16)/255]}const r=Cw.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const o=_w.exec(t);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const a=Pw.exec(t);if(a){const[t,n,r,o]=Array.from(a).slice(1).map(parseFloat);if(gw(0,100,n)!==n)throw new bw(e);if(gw(0,100,r)!==r)throw new bw(e);return[...Aw(t,n,r),Number.isNaN(o)?1:o]}throw new bw(e)}const ww=e=>parseInt(e.replace(/_/g,""),36),Sw="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,t)=>{const n=ww(t.substring(0,3)),r=ww(t.substring(3)).toString(16);let o="";for(let e=0;e<6-r.length;e++)o+="0";return e[n]=`${o}${r}`,e}),{}),kw=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),Ew=new RegExp(`^#${kw("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Cw=new RegExp(`^#${kw("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),_w=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${kw(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),Pw=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Tw=/^[a-z]+$/i,Ow=e=>Math.round(255*e),Aw=(e,t,n)=>{let r=n/100;if(0===t)return[r,r,r].map(Ow);const o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*(t/100),i=a*(1-Math.abs(o%2-1));let s=0,l=0,u=0;o>=0&&o<1?(s=a,l=i):o>=1&&o<2?(s=i,l=a):o>=2&&o<3?(l=a,u=i):o>=3&&o<4?(l=i,u=a):o>=4&&o<5?(s=i,u=a):o>=5&&o<6&&(s=a,u=i);const c=r-a/2;return[s+c,l+c,u+c].map(Ow)};function Rw(e,t){const[n,r,o,a]=xw(e);return function(e,t,n,r){return`rgba(${gw(0,255,e).toFixed()}, ${gw(0,255,t).toFixed()}, ${gw(0,255,n).toFixed()}, ${parseFloat(gw(0,1,r).toFixed(3))})`}(n,r,o,a-t)}var jw=(e,t,n)=>{const r=function(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r{const t=gw(0,255,e).toString(16);return 1===t.length?`0${t}`:t};a(t),a(n),a(r),o<1&&a(Math.round(255*o))}(r),r}catch{return null!=n?n:"#000000"}},zw=(e,t)=>n=>Rw(jw(n,e),1-t);function Fw(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(\n 45deg,\n ${t} 25%,\n transparent 25%,\n transparent 50%,\n ${t} 50%,\n ${t} 75%,\n transparent 75%,\n transparent\n )`,backgroundSize:`${e} ${e}`}}var Mw=Ln("tabs-color"),Nw=Ln("tabs-bg"),Iw=Ln("tabs-border-color"),{defineMultiStyleConfig:Lw,definePartsStyle:Dw}=yr(Ix.keys),Bw=e=>{const{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}},$w=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},Vw=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===n?"column":"row"}},Ww={p:4},Uw=Dw((e=>({root:Bw(e),tab:$w(e),tablist:Vw(e),tabpanel:Ww}))),Hw={sm:Dw({tab:{py:1,px:4,fontSize:"sm"}}),md:Dw({tab:{fontSize:"md",py:2,px:4}}),lg:Dw({tab:{fontSize:"lg",py:3,px:4}})},qw=Dw((e=>{const{colorScheme:t,orientation:n}=e,r="vertical"===n,o=r?"borderStart":"borderBottom",a=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[a]:"-2px",_selected:{[Mw.variable]:`colors.${t}.600`,_dark:{[Mw.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Nw.variable]:"colors.gray.200",_dark:{[Nw.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Mw.reference,bg:Nw.reference}}})),Qw=Dw((e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Iw.variable]:"transparent",_selected:{[Mw.variable]:`colors.${t}.600`,[Iw.variable]:"colors.white",_dark:{[Mw.variable]:`colors.${t}.300`,[Iw.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Iw.reference},color:Mw.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),Gw=Dw((e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Nw.variable]:"colors.gray.50",_dark:{[Nw.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Nw.variable]:"colors.white",[Mw.variable]:`colors.${t}.600`,_dark:{[Nw.variable]:"colors.gray.800",[Mw.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Mw.reference,bg:Nw.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),Xw=Dw((e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:jw(n,`${t}.700`),bg:jw(n,`${t}.100`)}}}})),Yw=Dw((e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Mw.variable]:"colors.gray.600",_dark:{[Mw.variable]:"inherit"},_selected:{[Mw.variable]:"colors.white",[Nw.variable]:`colors.${t}.600`,_dark:{[Mw.variable]:"colors.gray.800",[Nw.variable]:`colors.${t}.300`}},color:Mw.reference,bg:Nw.reference}}})),Kw=Lw({baseStyle:Uw,sizes:Hw,variants:{line:qw,enclosed:Qw,"enclosed-colored":Gw,"soft-rounded":Xw,"solid-rounded":Yw,unstyled:Dw({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Zw=function(e){const t={};for(const n of["bg","color","shadow"])if(Array.isArray(n)){const[r,o]=n;t[r]=Ln(`${e}-${r}`,o)}else t[n]=Ln(`${e}-${n}`);return t}("badge"),Jw={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Zw.bg.reference,color:Zw.color.reference,boxShadow:Zw.shadow.reference},variants:{solid:e=>{const{colorScheme:t,theme:n}=e,r=zw(`${t}.500`,.6)(n);return{[Zw.bg.variable]:`colors.${t}.500`,[Zw.color.variable]:"colors.white",_dark:{[Zw.bg.variable]:r,[Zw.color.variable]:"colors.whiteAlpha.800"}}},subtle:e=>{const{colorScheme:t,theme:n}=e,r=zw(`${t}.200`,.16)(n);return{[Zw.bg.variable]:`colors.${t}.100`,[Zw.color.variable]:`colors.${t}.800`,_dark:{[Zw.bg.variable]:r,[Zw.color.variable]:`colors.${t}.200`}}},outline:e=>{const{colorScheme:t,theme:n}=e,r=zw(`${t}.200`,.8)(n);return{[Zw.color.variable]:`colors.${t}.500`,_dark:{[Zw.color.variable]:r},[Zw.shadow.variable]:`inset 0 0 0px 1px ${Zw.color.reference}`}}},defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:eS,definePartsStyle:tS}=yr(Lx.keys),nS=Ln("tag-bg"),rS=Ln("tag-color"),oS=Ln("tag-shadow"),aS=Ln("tag-min-height"),iS=Ln("tag-min-width"),sS=Ln("tag-font-size"),lS=Ln("tag-padding-inline"),uS=tS({container:{fontWeight:"medium",lineHeight:1.2,outline:0,[rS.variable]:Zw.color.reference,[nS.variable]:Zw.bg.reference,[oS.variable]:Zw.shadow.reference,color:rS.reference,bg:nS.reference,boxShadow:oS.reference,borderRadius:"md",minH:aS.reference,minW:iS.reference,fontSize:sS.reference,px:lS.reference,_focusVisible:{[oS.variable]:"shadows.outline"}},label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}}),cS={sm:tS({container:{[aS.variable]:"sizes.5",[iS.variable]:"sizes.5",[sS.variable]:"fontSizes.xs",[lS.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:tS({container:{[aS.variable]:"sizes.6",[iS.variable]:"sizes.6",[sS.variable]:"fontSizes.sm",[lS.variable]:"space.2"}}),lg:tS({container:{[aS.variable]:"sizes.8",[iS.variable]:"sizes.8",[sS.variable]:"fontSizes.md",[lS.variable]:"space.3"}})},dS={subtle:tS((e=>{var t;return{container:null==(t=Jw.variants)?void 0:t.subtle(e)}})),solid:tS((e=>{var t;return{container:null==(t=Jw.variants)?void 0:t.solid(e)}})),outline:tS((e=>{var t;return{container:null==(t=Jw.variants)?void 0:t.outline(e)}}))},fS=eS({variants:dS,baseStyle:uS,sizes:cS,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:pS,defineMultiStyleConfig:hS}=yr(Ex.keys),mS=Ln("input-height"),vS=Ln("input-font-size"),gS=Ln("input-padding"),yS=Ln("input-border-radius"),bS=pS({addon:{height:mS.reference,fontSize:vS.reference,px:gS.reference,borderRadius:yS.reference},field:{width:"100%",height:mS.reference,fontSize:vS.reference,px:gS.reference,borderRadius:yS.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),xS={lg:{[vS.variable]:"fontSizes.lg",[gS.variable]:"space.4",[yS.variable]:"radii.md",[mS.variable]:"sizes.12"},md:{[vS.variable]:"fontSizes.md",[gS.variable]:"space.4",[yS.variable]:"radii.md",[mS.variable]:"sizes.10"},sm:{[vS.variable]:"fontSizes.sm",[gS.variable]:"space.3",[yS.variable]:"radii.sm",[mS.variable]:"sizes.8"},xs:{[vS.variable]:"fontSizes.xs",[gS.variable]:"space.2",[yS.variable]:"radii.sm",[mS.variable]:"sizes.6"}},wS={lg:pS({field:xS.lg,group:xS.lg}),md:pS({field:xS.md,group:xS.md}),sm:pS({field:xS.sm,group:xS.sm}),xs:pS({field:xS.xs,group:xS.xs})};function SS(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||lw("blue.500","blue.300")(e),errorBorderColor:n||lw("red.500","red.300")(e)}}var kS,ES,CS,_S,PS,TS,OS,AS,RS,jS,zS,FS=pS((e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=SS(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:lw("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:jw(t,r),boxShadow:`0 0 0 1px ${jw(t,r)}`},_focusVisible:{zIndex:1,borderColor:jw(t,n),boxShadow:`0 0 0 1px ${jw(t,n)}`}},addon:{border:"1px solid",borderColor:lw("inherit","whiteAlpha.50")(e),bg:lw("gray.100","whiteAlpha.300")(e)}}})),MS=pS((e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=SS(e);return{field:{border:"2px solid",borderColor:"transparent",bg:lw("gray.100","whiteAlpha.50")(e),_hover:{bg:lw("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:jw(t,r)},_focusVisible:{bg:"transparent",borderColor:jw(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:lw("gray.100","whiteAlpha.50")(e)}}})),NS=pS((e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=SS(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:jw(t,r),boxShadow:`0px 1px 0px 0px ${jw(t,r)}`},_focusVisible:{borderColor:jw(t,n),boxShadow:`0px 1px 0px 0px ${jw(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}})),IS=hS({baseStyle:bS,sizes:wS,variants:{outline:FS,filled:MS,flushed:NS,unstyled:pS({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),LS={...null==(kS=IS.baseStyle)?void 0:kS.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},DS={outline:e=>{var t,n;return null!=(n=null==(t=IS.variants)?void 0:t.outline(e).field)?n:{}},flushed:e=>{var t,n;return null!=(n=null==(t=IS.variants)?void 0:t.flushed(e).field)?n:{}},filled:e=>{var t,n;return null!=(n=null==(t=IS.variants)?void 0:t.filled(e).field)?n:{}},unstyled:null!=(CS=null==(ES=IS.variants)?void 0:ES.unstyled.field)?CS:{}},BS={baseStyle:LS,sizes:{xs:null!=(PS=null==(_S=IS.sizes)?void 0:_S.xs.field)?PS:{},sm:null!=(OS=null==(TS=IS.sizes)?void 0:TS.sm.field)?OS:{},md:null!=(RS=null==(AS=IS.sizes)?void 0:AS.md.field)?RS:{},lg:null!=(zS=null==(jS=IS.sizes)?void 0:jS.lg.field)?zS:{}},variants:DS,defaultProps:{size:"md",variant:"outline"}},$S=Vx("tooltip-bg"),VS=Vx("tooltip-fg"),WS=Vx("popper-arrow-bg"),US={baseStyle:{bg:$S.reference,color:VS.reference,[$S.variable]:"colors.gray.700",[VS.variable]:"colors.whiteAlpha.900",_dark:{[$S.variable]:"colors.gray.300",[VS.variable]:"colors.gray.900"},[WS.variable]:$S.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},{defineMultiStyleConfig:HS,definePartsStyle:qS}=yr(Ax.keys),QS=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,a=lw(Fw(),Fw("1rem","rgba(0,0,0,0.1)"))(e),i=lw(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(\n to right,\n transparent 0%,\n ${jw(n,i)} 50%,\n transparent 100%\n )`;return{...!r&&o&&a,...r?{bgImage:s}:{bgColor:i}}},GS={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},XS=e=>({bg:lw("gray.100","whiteAlpha.300")(e)}),YS=e=>({transitionProperty:"common",transitionDuration:"slow",...QS(e)}),KS=qS((e=>({label:GS,filledTrack:YS(e),track:XS(e)}))),ZS=HS({sizes:{xs:qS({track:{h:"1"}}),sm:qS({track:{h:"2"}}),md:qS({track:{h:"3"}}),lg:qS({track:{h:"4"}})},baseStyle:KS,defaultProps:{size:"md",colorScheme:"blue"}});function JS(e,...t){return"function"==typeof e?e(...t):e}var ek,tk,nk,rk,ok,ak,ik,sk,lk,{definePartsStyle:uk,defineMultiStyleConfig:ck}=yr(bx.keys),dk=Ln("checkbox-size"),fk=e=>{const{colorScheme:t}=e;return{w:dk.reference,h:dk.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:lw(`${t}.500`,`${t}.200`)(e),borderColor:lw(`${t}.500`,`${t}.200`)(e),color:lw("white","gray.900")(e),_hover:{bg:lw(`${t}.600`,`${t}.300`)(e),borderColor:lw(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:lw("gray.200","transparent")(e),bg:lw("gray.200","whiteAlpha.300")(e),color:lw("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:lw(`${t}.500`,`${t}.200`)(e),borderColor:lw(`${t}.500`,`${t}.200`)(e),color:lw("white","gray.900")(e)},_disabled:{bg:lw("gray.100","whiteAlpha.100")(e),borderColor:lw("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:lw("red.500","red.300")(e)}}},pk={_disabled:{cursor:"not-allowed"}},hk={userSelect:"none",_disabled:{opacity:.4}},mk={transitionProperty:"transform",transitionDuration:"normal"},vk=ck({baseStyle:uk((e=>({icon:mk,container:pk,control:JS(fk,e),label:hk}))),sizes:{sm:uk({control:{[dk.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:uk({control:{[dk.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:uk({control:{[dk.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:gk,definePartsStyle:yk}=yr(Rx.keys),bk=e=>{var t;const n=null==(t=JS(vk.baseStyle,e))?void 0:t.control;return{...n,borderRadius:"full",_checked:{...null==n?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},xk=yk((e=>{var t,n,r,o;return{label:null==(n=(t=vk).baseStyle)?void 0:n.call(t,e).label,container:null==(o=(r=vk).baseStyle)?void 0:o.call(r,e).container,control:bk(e)}})),wk=gk({baseStyle:xk,sizes:{md:yk({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:yk({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:yk({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Sk,definePartsStyle:kk}=yr(jx.keys),Ek=Ln("select-bg"),Ck={paddingInlineEnd:"8"},_k=Sk({baseStyle:kk({field:{...null==(ek=IS.baseStyle)?void 0:ek.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Ek.reference,[Ek.variable]:"colors.white",_dark:{[Ek.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Ek.reference}},icon:{width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}}),sizes:{lg:{...null==(tk=IS.sizes)?void 0:tk.lg,field:{...null==(nk=IS.sizes)?void 0:nk.lg.field,...Ck}},md:{...null==(rk=IS.sizes)?void 0:rk.md,field:{...null==(ok=IS.sizes)?void 0:ok.md.field,...Ck}},sm:{...null==(ak=IS.sizes)?void 0:ak.sm,field:{...null==(ik=IS.sizes)?void 0:ik.sm.field,...Ck}},xs:{...null==(sk=IS.sizes)?void 0:sk.xs,field:{...null==(lk=IS.sizes)?void 0:lk.xs.field,...Ck},icon:{insetEnd:"1"}}},variants:IS.variants,defaultProps:IS.defaultProps}),Pk=Ln("skeleton-start-color"),Tk=Ln("skeleton-end-color"),Ok={baseStyle:{[Pk.variable]:"colors.gray.100",[Tk.variable]:"colors.gray.400",_dark:{[Pk.variable]:"colors.gray.800",[Tk.variable]:"colors.gray.600"},background:Pk.reference,borderColor:Tk.reference,opacity:.7,borderRadius:"sm"}},Ak=Ln("skip-link-bg"),Rk={baseStyle:{borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Ak.variable]:"colors.white",_dark:{[Ak.variable]:"colors.gray.700"},bg:Ak.reference}}},{defineMultiStyleConfig:jk,definePartsStyle:zk}=yr(zx.keys),Fk=Ln("slider-thumb-size"),Mk=Ln("slider-track-size"),Nk=Ln("slider-bg"),Ik=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...uw({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Lk=e=>({...uw({orientation:e.orientation,horizontal:{h:Mk.reference},vertical:{w:Mk.reference}}),overflow:"hidden",borderRadius:"sm",[Nk.variable]:"colors.gray.200",_dark:{[Nk.variable]:"colors.whiteAlpha.200"},_disabled:{[Nk.variable]:"colors.gray.300",_dark:{[Nk.variable]:"colors.whiteAlpha.300"}},bg:Nk.reference}),Dk=e=>{const{orientation:t}=e;return{...uw({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Fk.reference,h:Fk.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},Bk=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Nk.variable]:`colors.${t}.500`,_dark:{[Nk.variable]:`colors.${t}.200`},bg:Nk.reference}},$k=jk({baseStyle:zk((e=>({container:Ik(e),track:Lk(e),thumb:Dk(e),filledTrack:Bk(e)}))),sizes:{lg:zk({container:{[Fk.variable]:"sizes.4",[Mk.variable]:"sizes.1"}}),md:zk({container:{[Fk.variable]:"sizes.3.5",[Mk.variable]:"sizes.1"}}),sm:zk({container:{[Fk.variable]:"sizes.2.5",[Mk.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),Vk=Vx("spinner-size"),Wk={baseStyle:{width:[Vk.reference],height:[Vk.reference]},sizes:{xs:{[Vk.variable]:"sizes.3"},sm:{[Vk.variable]:"sizes.4"},md:{[Vk.variable]:"sizes.6"},lg:{[Vk.variable]:"sizes.8"},xl:{[Vk.variable]:"sizes.12"}},defaultProps:{size:"md"}},{defineMultiStyleConfig:Uk,definePartsStyle:Hk}=yr(Fx.keys),qk=Uk({baseStyle:Hk({container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:"2"},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}}),sizes:{md:Hk({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),Qk=Ln("kbd-bg"),Gk={baseStyle:{[Qk.variable]:"colors.gray.100",_dark:{[Qk.variable]:"colors.whiteAlpha.100"},bg:Qk.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}},{defineMultiStyleConfig:Xk,definePartsStyle:Yk}=yr(Cx.keys),Kk=Xk({baseStyle:Yk({icon:{marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}})}),{defineMultiStyleConfig:Zk,definePartsStyle:Jk}=yr(_x.keys),eE=Ln("menu-bg"),tE=Ln("menu-shadow"),nE=Zk({baseStyle:Jk({button:{transitionProperty:"common",transitionDuration:"normal"},list:{[eE.variable]:"#fff",[tE.variable]:"shadows.sm",_dark:{[eE.variable]:"colors.gray.700",[tE.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:eE.reference,boxShadow:tE.reference},item:{py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[eE.variable]:"colors.gray.100",_dark:{[eE.variable]:"colors.whiteAlpha.100"}},_active:{[eE.variable]:"colors.gray.200",_dark:{[eE.variable]:"colors.whiteAlpha.200"}},_expanded:{[eE.variable]:"colors.gray.100",_dark:{[eE.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:eE.reference},groupTitle:{mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},icon:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},command:{opacity:.6},divider:{border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}})}),{defineMultiStyleConfig:rE,definePartsStyle:oE}=yr(Px.keys),aE=Ln("modal-bg"),iE=Ln("modal-shadow"),sE={bg:"blackAlpha.600",zIndex:"modal"},lE=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===n?"hidden":"auto",overscrollBehaviorY:"none"}},uE=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===n?"calc(100% - 7.5rem)":void 0,[aE.variable]:"colors.white",[iE.variable]:"shadows.lg",_dark:{[aE.variable]:"colors.gray.700",[iE.variable]:"shadows.dark-lg"},bg:aE.reference,boxShadow:iE.reference}},cE={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},dE={position:"absolute",top:"2",insetEnd:"3"},fE=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}},pE={px:"6",py:"4"};function hE(e){return oE("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var mE=rE({baseStyle:oE((e=>({overlay:sE,dialogContainer:JS(lE,e),dialog:JS(uE,e),header:cE,closeButton:dE,body:JS(fE,e),footer:pE}))),sizes:{xs:hE("xs"),sm:hE("sm"),md:hE("md"),lg:hE("lg"),xl:hE("xl"),"2xl":hE("2xl"),"3xl":hE("3xl"),"4xl":hE("4xl"),"5xl":hE("5xl"),"6xl":hE("6xl"),full:hE("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:vE,definePartsStyle:gE}=yr(Tx.keys),yE=Vx("number-input-stepper-width"),bE=Vx("number-input-input-padding"),xE=Yx(yE).add("0.5rem").toString(),wE=Vx("number-input-bg"),SE=Vx("number-input-color"),kE=Vx("number-input-border-color"),EE={[yE.variable]:"sizes.6",[bE.variable]:xE},CE=e=>{var t,n;return null!=(n=null==(t=JS(IS.baseStyle,e))?void 0:t.field)?n:{}},_E={width:yE.reference},PE={borderStart:"1px solid",borderStartColor:kE.reference,color:SE.reference,bg:wE.reference,[SE.variable]:"colors.chakra-body-text",[kE.variable]:"colors.chakra-border-color",_dark:{[SE.variable]:"colors.whiteAlpha.800",[kE.variable]:"colors.whiteAlpha.300"},_active:{[wE.variable]:"colors.gray.200",_dark:{[wE.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},TE=gE((e=>{var t;return{root:EE,field:null!=(t=JS(CE,e))?t:{},stepperGroup:_E,stepper:PE}}));function OE(e){var t,n,r;const o=null==(t=IS.sizes)?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},i=null!=(r=null==(n=o.field)?void 0:n.fontSize)?r:"md",s=tx.fontSizes[i];return gE({field:{...o.field,paddingInlineEnd:bE.reference,verticalAlign:"top"},stepper:{fontSize:Yx(s).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var AE,RE,jE,zE=vE({baseStyle:TE,sizes:{xs:OE("xs"),sm:OE("sm"),md:OE("md"),lg:OE("lg")},variants:IS.variants,defaultProps:IS.defaultProps}),FE={...null==(AE=IS.baseStyle)?void 0:AE.field,textAlign:"center"},ME={outline:e=>{var t,n,r;return null!=(r=null==(n=JS(null==(t=IS.variants)?void 0:t.outline,e))?void 0:n.field)?r:{}},flushed:e=>{var t,n,r;return null!=(r=null==(n=JS(null==(t=IS.variants)?void 0:t.flushed,e))?void 0:n.field)?r:{}},filled:e=>{var t,n,r;return null!=(r=null==(n=JS(null==(t=IS.variants)?void 0:t.filled,e))?void 0:n.field)?r:{}},unstyled:null!=(jE=null==(RE=IS.variants)?void 0:RE.unstyled.field)?jE:{}},NE={baseStyle:FE,sizes:{lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},variants:ME,defaultProps:IS.defaultProps},{defineMultiStyleConfig:IE,definePartsStyle:LE}=yr(Ox.keys),DE=Vx("popper-bg"),BE=Vx("popper-arrow-bg"),$E=Vx("popper-arrow-shadow-color"),VE=IE({baseStyle:LE({popper:{zIndex:10},content:{[DE.variable]:"colors.white",bg:DE.reference,[BE.variable]:DE.reference,[$E.variable]:"colors.gray.200",_dark:{[DE.variable]:"colors.gray.700",[$E.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},header:{px:3,py:2,borderBottomWidth:"1px"},body:{px:3,py:2},footer:{px:3,py:2,borderTopWidth:"1px"},closeButton:{position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}})}),{definePartsStyle:WE,defineMultiStyleConfig:UE}=yr(xx.keys),HE=Ln("drawer-bg"),qE=Ln("drawer-box-shadow");function QE(e){return WE("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var GE={bg:"blackAlpha.600",zIndex:"modal"},XE={display:"flex",zIndex:"modal",justifyContent:"center"},YE=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[HE.variable]:"colors.white",[qE.variable]:"shadows.lg",_dark:{[HE.variable]:"colors.gray.700",[qE.variable]:"shadows.dark-lg"},bg:HE.reference,boxShadow:qE.reference}},KE={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},ZE={position:"absolute",top:"2",insetEnd:"3"},JE={px:"6",py:"2",flex:"1",overflow:"auto"},eC={px:"6",py:"4"},tC=UE({baseStyle:WE((e=>({overlay:GE,dialogContainer:XE,dialog:JS(YE,e),header:KE,closeButton:ZE,body:JE,footer:eC}))),sizes:{xs:QE("xs"),sm:QE("md"),md:QE("lg"),lg:QE("2xl"),xl:QE("4xl"),full:QE("full")},defaultProps:{size:"xs"}}),{definePartsStyle:nC,defineMultiStyleConfig:rC}=yr(wx.keys),oC=rC({baseStyle:nC({preview:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},textarea:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}})}),{definePartsStyle:aC,defineMultiStyleConfig:iC}=yr(Sx.keys),sC=Ln("form-control-color"),lC=iC({baseStyle:aC({container:{width:"100%",position:"relative"},requiredIndicator:{marginStart:"1",[sC.variable]:"colors.red.500",_dark:{[sC.variable]:"colors.red.300"},color:sC.reference},helperText:{mt:"2",[sC.variable]:"colors.gray.600",_dark:{[sC.variable]:"colors.whiteAlpha.600"},color:sC.reference,lineHeight:"normal",fontSize:"sm"}})}),{definePartsStyle:uC,defineMultiStyleConfig:cC}=yr(kx.keys),dC=Ln("form-error-color"),fC=cC({baseStyle:uC({text:{[dC.variable]:"colors.red.500",_dark:{[dC.variable]:"colors.red.300"},color:dC.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},icon:{marginEnd:"0.5em",[dC.variable]:"colors.red.500",_dark:{[dC.variable]:"colors.red.300"},color:dC.reference}})}),{defineMultiStyleConfig:pC,definePartsStyle:hC}=yr(yx.keys),mC=Ln("breadcrumb-link-decor"),vC=pC({baseStyle:hC({link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:mC.reference,[mC.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[mC.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}}})}),gC=e=>{const{colorScheme:t,theme:n}=e;if("gray"===t)return{color:lw("gray.800","whiteAlpha.900")(e),_hover:{bg:lw("gray.100","whiteAlpha.200")(e)},_active:{bg:lw("gray.200","whiteAlpha.300")(e)}};const r=zw(`${t}.200`,.12)(n),o=zw(`${t}.200`,.24)(n);return{color:lw(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:lw(`${t}.50`,r)(e)},_active:{bg:lw(`${t}.100`,o)(e)}}},yC={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},bC={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:gC,outline:e=>{const{colorScheme:t}=e,n=lw("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...JS(gC,e)}},solid:e=>{var t;const{colorScheme:n}=e;if("gray"===n){const t=lw("gray.100","whiteAlpha.200")(e);return{bg:t,color:lw("gray.800","whiteAlpha.900")(e),_hover:{bg:lw("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:lw("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:o="white",hoverBg:a=`${n}.600`,activeBg:i=`${n}.700`}=null!=(t=yC[n])?t:{},s=lw(r,`${n}.200`)(e);return{bg:s,color:lw(o,"gray.800")(e),_hover:{bg:lw(a,`${n}.300`)(e),_disabled:{bg:s}},_active:{bg:lw(i,`${n}.400`)(e)}}},link:e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:lw(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:lw(`${t}.700`,`${t}.500`)(e)}}},unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}},sizes:{lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:xC,defineMultiStyleConfig:wC}=yr(Dx.keys),SC=Ln("card-bg"),kC=Ln("card-padding"),EC=Ln("card-shadow"),CC=Ln("card-radius"),_C=Ln("card-border-width","0"),PC=Ln("card-border-color"),TC=xC({container:{[SC.variable]:"colors.chakra-body-bg",backgroundColor:SC.reference,boxShadow:EC.reference,borderRadius:CC.reference,color:"chakra-body-text",borderWidth:_C.reference,borderColor:PC.reference},body:{padding:kC.reference,flex:"1 1 0%"},header:{padding:kC.reference},footer:{padding:kC.reference}}),OC={sm:xC({container:{[CC.variable]:"radii.base",[kC.variable]:"space.3"}}),md:xC({container:{[CC.variable]:"radii.md",[kC.variable]:"space.5"}}),lg:xC({container:{[CC.variable]:"radii.xl",[kC.variable]:"space.7"}})},AC=wC({baseStyle:TC,variants:{elevated:xC({container:{[EC.variable]:"shadows.base",_dark:{[SC.variable]:"colors.gray.700"}}}),outline:xC({container:{[_C.variable]:"1px",[PC.variable]:"colors.chakra-border-color"}}),filled:xC({container:{[SC.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[kC.variable]:0},header:{[kC.variable]:0},footer:{[kC.variable]:0}}},sizes:OC,defaultProps:{variant:"elevated",size:"md"}}),RC=Vx("close-button-size"),jC=Vx("close-button-bg"),zC={baseStyle:{w:[RC.reference],h:[RC.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[jC.variable]:"colors.blackAlpha.100",_dark:{[jC.variable]:"colors.whiteAlpha.100"}},_active:{[jC.variable]:"colors.blackAlpha.200",_dark:{[jC.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:jC.reference},sizes:{lg:{[RC.variable]:"sizes.10",fontSize:"md"},md:{[RC.variable]:"sizes.8",fontSize:"xs"},sm:{[RC.variable]:"sizes.6",fontSize:"2xs"}},defaultProps:{size:"md"}},{variants:FC,defaultProps:MC}=Jw,NC={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Zw.bg.reference,color:Zw.color.reference,boxShadow:Zw.shadow.reference},variants:FC,defaultProps:MC},{definePartsStyle:IC,defineMultiStyleConfig:LC}=yr(mx.keys),DC=LC({baseStyle:IC({container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},panel:{pt:"2",px:"4",pb:"5"},icon:{fontSize:"1.25em"}})}),{definePartsStyle:BC,defineMultiStyleConfig:$C}=yr(vx.keys),VC=Ln("alert-fg"),WC=Ln("alert-bg"),UC=BC({container:{bg:WC.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:VC.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:VC.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function HC(e){const{theme:t,colorScheme:n}=e;return{light:`colors.${n}.100`,dark:zw(`${n}.200`,.16)(t)}}var qC=BC((e=>{const{colorScheme:t}=e,n=HC(e);return{container:{[VC.variable]:`colors.${t}.600`,[WC.variable]:n.light,_dark:{[VC.variable]:`colors.${t}.200`,[WC.variable]:n.dark}}}})),QC=BC((e=>{const{colorScheme:t}=e,n=HC(e);return{container:{[VC.variable]:`colors.${t}.600`,[WC.variable]:n.light,_dark:{[VC.variable]:`colors.${t}.200`,[WC.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:VC.reference}}})),GC=BC((e=>{const{colorScheme:t}=e,n=HC(e);return{container:{[VC.variable]:`colors.${t}.600`,[WC.variable]:n.light,_dark:{[VC.variable]:`colors.${t}.200`,[WC.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:VC.reference}}})),XC=BC((e=>{const{colorScheme:t}=e;return{container:{[VC.variable]:"colors.white",[WC.variable]:`colors.${t}.600`,_dark:{[VC.variable]:"colors.gray.900",[WC.variable]:`colors.${t}.200`},color:VC.reference}}})),YC=$C({baseStyle:UC,variants:{subtle:qC,"left-accent":QC,"top-accent":GC,solid:XC},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:KC,defineMultiStyleConfig:ZC}=yr(gx.keys),JC=Ln("avatar-border-color"),e_=Ln("avatar-bg"),t_=Ln("avatar-font-size"),n_=Ln("avatar-size"),r_={borderRadius:"full",border:"0.2em solid",borderColor:JC.reference,[JC.variable]:"white",_dark:{[JC.variable]:"colors.gray.800"}},o_={bg:e_.reference,fontSize:t_.reference,width:n_.reference,height:n_.reference,lineHeight:"1",[e_.variable]:"colors.gray.200",_dark:{[e_.variable]:"colors.whiteAlpha.400"}},a_=e=>{const{name:t,theme:n}=e,r=t?function(e){const t=`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`;return e&&(n=e,0!==Object.keys(n).length)?e.string&&e.colors?function(e,t){let n=0;if(0===e.length)return t[0];for(let t=0;t>8*e&255).toString(16)}`.substr(-2);return n}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):t:t;var n}({string:t}):"colors.gray.400",o=(e=>t=>"dark"===(e=>t=>{const n=(e=>{const[t,n,r]=xw(e);return(299*t+587*n+114*r)/1e3})(jw(t,e));return n<128?"dark":"light"})(e)(t))(r)(n);let a="white";return o||(a="gray.800"),{bg:e_.reference,fontSize:t_.reference,color:a,borderColor:JC.reference,verticalAlign:"top",width:n_.reference,height:n_.reference,"&:not([data-loaded])":{[e_.variable]:r},[JC.variable]:"colors.white",_dark:{[JC.variable]:"colors.gray.800"}}},i_={fontSize:t_.reference,lineHeight:"1"};function s_(e){const t="100%"!==e?rx[e]:void 0;return KC({container:{[n_.variable]:null!=t?t:e,[t_.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[n_.variable]:null!=t?t:e,[t_.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var l_={Accordion:DC,Alert:YC,Avatar:ZC({baseStyle:KC((e=>({badge:JS(r_,e),excessLabel:JS(o_,e),container:JS(a_,e),label:i_}))),sizes:{"2xs":s_(4),xs:s_(6),sm:s_(8),md:s_(12),lg:s_(16),xl:s_(24),"2xl":s_(32),full:s_("100%")},defaultProps:{size:"md"}}),Badge:Jw,Breadcrumb:vC,Button:bC,Checkbox:vk,CloseButton:zC,Code:NC,Container:{baseStyle:{w:"100%",mx:"auto",maxW:"prose",px:"4"}},Divider:{baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},Drawer:tC,Editable:oC,Form:lC,FormError:fC,FormLabel:{baseStyle:{fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},Heading:{baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},Input:IS,Kbd:Gk,Link:{baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},List:Kk,Menu:nE,Modal:mE,NumberInput:zE,PinInput:NE,Popover:VE,Progress:ZS,Radio:wk,Select:_k,Skeleton:Ok,SkipLink:Rk,Slider:$k,Spinner:Wk,Stat:qk,Switch:sw,Table:vw,Tabs:Kw,Tag:fS,Textarea:BS,Tooltip:US,Card:AC,Stepper:px},u_={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},c_={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},d_={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},f_={semanticTokens:u_,direction:"ltr",...ox,components:l_,styles:c_,config:d_},p_={semanticTokens:u_,direction:"ltr",components:{},...ox,styles:c_,config:d_},h_=e=>function({children:t,theme:n=e,toastOptions:r,...o}){return(0,oe.jsxs)(ex,{theme:n,...o,children:[(0,oe.jsx)(Op,{value:null==r?void 0:r.defaultOptions,children:t}),(0,oe.jsx)(Rp,{...r})]})},m_=h_(f_);function v_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Jg(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const a=function(){if("function"==typeof AbortController)return new AbortController}(),i={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(i);const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(i)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;s(l),null==(n=this.options.behavior)||n.onFetch(l),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=l.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(u=l.fetchOptions)?void 0:u.meta});const c=e=>{var t,n,r,o;Py(e)&&e.silent||this.dispatch({type:"error",error:e}),Py(e)||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Ty({fn:l.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,n,r,o;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):c(new Error(this.queryHash+" data is undefined"))},onError:c,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:Cy(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return Py(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),yy.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class w_ extends xy{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const o=t.queryKey,a=null!=(r=t.queryHash)?r:oy(o,t);let i=this.get(a);return i||(i=new x_({cache:this,logger:e.getLogger(),queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(i)),i}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){yy.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=ty(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>ny(n,e)))}findAll(e,t){const[n]=ty(e,t);return Object.keys(n).length>0?this.queries.filter((e=>ny(n,e))):this.queries}notify(e){yy.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){yy.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){yy.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class S_ extends xy{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new Oy({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){yy.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>ry(e,t)))}findAll(e){return this.mutations.filter((t=>ry(e,t)))}notify(e){yy.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return yy.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(Kg)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function k_(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var E_=function(){return null},C_=new class{constructor(e={}){this.queryCache=e.queryCache||new w_,this.mutationCache=e.mutationCache||new S_,this.logger=e.logger||gy,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=wy.subscribe((()=>{wy.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=ky.subscribe((()=>{ky.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=ty(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=ey(e,t,n),o=this.getQueryData(r.queryKey);return o?Promise.resolve(o):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==r?void 0:r.state.data);if(void 0===o)return;const a=ey(e),i=this.defaultQueryOptions(a);return this.queryCache.build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return yy.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=ty(e,t),r=this.queryCache;yy.batch((()=>{r.findAll(n).forEach((e=>{r.remove(e)}))}))}resetQueries(e,t,n){const[r,o]=ty(e,t,n),a=this.queryCache,i={type:"active",...r};return yy.batch((()=>(a.findAll(r).forEach((e=>{e.reset()})),this.refetchQueries(i,o))))}cancelQueries(e,t,n){const[r,o={}]=ty(e,t,n);void 0===o.revert&&(o.revert=!0);const a=yy.batch((()=>this.queryCache.findAll(r).map((e=>e.cancel(o)))));return Promise.all(a).then(Kg).catch(Kg)}invalidateQueries(e,t,n){const[r,o]=ty(e,t,n);return yy.batch((()=>{var e,t;if(this.queryCache.findAll(r).forEach((e=>{e.invalidate()})),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,o)}))}refetchQueries(e,t,n){const[r,o]=ty(e,t,n),a=yy.batch((()=>this.queryCache.findAll(r).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}))));let i=Promise.all(a).then(Kg);return null!=o&&o.throwOnError||(i=i.catch(Kg)),i}fetchQuery(e,t,n){const r=ey(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);const a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Kg).catch(Kg)}fetchInfiniteQuery(e,t,n){const r=ey(e,t,n);return r.behavior={onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,a,i;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,u=null==l?void 0:l.pageParam,c="forward"===(null==l?void 0:l.direction),d="backward"===(null==l?void 0:l.direction),f=(null==(a=e.state.data)?void 0:a.pages)||[],p=(null==(i=e.state.data)?void 0:i.pageParams)||[];let h=p,m=!1;const v=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),g=(e,t,n,r)=>(h=r?[t,...h]:[...h,t],r?[n,...e]:[...e,n]),y=(t,n,r,o)=>{if(m)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const a={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var i;i=a,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{m=!0})),e.signal}});const s=v(a);return Promise.resolve(s).then((e=>g(t,r,e,o)))};let b;if(f.length)if(c){const t=void 0!==u,n=t?u:k_(e.options,f);b=y(f,t,n)}else if(d){const t=void 0!==u,n=t?u:function(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}(e.options,f);b=y(f,t,n,!0)}else{h=[];const t=void 0===e.options.getNextPageParam;b=s&&f[0]&&!s(f[0],0,f)?Promise.resolve(g([],p[0],f[0])):y([],t,p[0]);for(let n=1;n{if(!s||!f[n]||s(f[n],n,f)){const o=t?p[n]:k_(e.options,r);return y(r,t,o)}return Promise.resolve(g(r,p[n],f[n]))}))}else b=y([]);return b.then((e=>({pages:e,pageParams:h})))}}},this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Kg).catch(Kg)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>ay(e)===ay(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>iy(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>ay(e)===ay(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>iy(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=oy(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1}}});(0,r.createRoot)(document.getElementById("user-registration-form-templates")).render(t().createElement(Xg,{client:C_},t().createElement(b_,null),t().createElement(E_,{initialIsOpen:!1})))})()})();