@flarehr/promoted-benefits-admin 1.4.25839 → 1.4.26245
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
!function(){var e,t,n,r,i,o,s,a,l,u,c,d=Object.create,h=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,m=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,g=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(nx){throw n=[nx],nx}},y=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),b=(e,t)=>{let n={};for(var r in e)h(n,r,{get:e[r],enumerable:!0});return t||h(n,Symbol.toStringTag,{value:"Module"}),n},w=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,o=f(t),s=0,a=o.length;s<a;s++)i=o[s],v.call(e,i)||i===n||h(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=p(t,i))||r.enumerable});return e},x=(e,t,n)=>(n=null!=e?d(m(e)):{},w(!t&&e&&e.__esModule?n:h(n,"default",{value:e,enumerable:!0}),e)),_={},S=[],E=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,P=Array.isArray;function k(e,t){for(var n in t)e[n]=t[n];return e}function T(e){var t=e.parentNode;t&&t.removeChild(e)}function C(t,n,r){var i,o,s,a={};for(s in n)"key"==s?i=n[s]:"ref"==s?o=n[s]:a[s]=n[s];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===a[s]&&(a[s]=t.defaultProps[s]);return A(t,a,i,o,null)}function A(e,r,i,o,s){var a={type:e,props:r,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==s?++n:s,__i:-1,__u:0};return null==s&&null!=t.vnode&&t.vnode(a),a}function R(){return{current:null}}function O(e){return e.children}function F(e,t){this.props=e,this.context=t}function L(e,t){if(null==t)return e.__?L(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?L(e):null}function D(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return D(e)}}function M(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!V.__r++||i!==t.debounceRendering)&&((i=t.debounceRendering)||o)(V)}function V(){var e,n,i,o,a,l,u,c;for(r.sort(s);e=r.shift();)e.__d&&(n=r.length,o=void 0,l=(a=(i=e).__v).__e,u=[],c=[],i.__P&&((o=k({},a)).__v=a.__v+1,t.vnode&&t.vnode(o),W(i.__P,o,a,i.__n,i.__P.namespaceURI,32&a.__u?[l]:null,u,null==l?L(a):l,!!(32&a.__u),c),o.__v=a.__v,o.__.__k[o.__i]=o,z(u,o,c),o.__e!=l&&D(o)),r.length>n&&r.sort(s));V.__r=0}function I(e,t,n,r,i,o,s,a,l,u,c){var d,h,p,f,m,v=r&&r.__k||S,g=t.length;for(n.__d=l,function(e,t,n){var r,i,o,s,a,l=t.length,u=n.length,c=u,d=0;for(e.__k=[],r=0;r<l;r++)s=r+d,null!=(i=e.__k[r]=null==(i=t[r])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?A(null,i,null,null,null):P(i)?A(O,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?A(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,a=N(i,n,s,c),i.__i=a,o=null,-1!==a&&(c--,(o=n[a])&&(o.__u|=131072)),null==o||null===o.__v?(-1==a&&d--,"function"!=typeof i.type&&(i.__u|=65536)):a!==s&&(a==s-1?d--:a==s+1?d++:a>s?c>l-s?d+=a-s:d--:a<s&&(a==s-d?d-=a-s:d++),a!==r+d&&(i.__u|=65536))):(o=n[s])&&null==o.key&&o.__e&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=L(o)),Q(o,o,!1),n[s]=null,c--);if(c)for(r=0;r<u;r++)null!=(o=n[r])&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=L(o)),Q(o,o))}(n,t,v),l=n.__d,d=0;d<g;d++)null!=(p=n.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(h=-1===p.__i?_:v[p.__i]||_,p.__i=d,W(e,p,h,i,o,s,a,l,u,c),f=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&q(h.ref,null,p),c.push(p.ref,p.__c||f,p)),null==m&&null!=f&&(m=f),65536&p.__u||h.__k===p.__k?l=j(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:f&&(l=f.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=m}function j(e,t,n){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=j(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=L(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function B(e,t){return t=t||[],null==e||"boolean"==typeof e||(P(e)?e.some((function(e){B(e,t)})):t.push(e)),t}function N(e,t,n,r){var i=e.key,o=e.type,s=n-1,a=n+1,l=t[n];if(null===l||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if(r>(null==l||131072&l.__u?0:1))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a++}}return-1}function U(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||E.test(t)?n:n+"px"}function H(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||U(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||U(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=a,e.addEventListener(t,o?u:l,o)):e.removeEventListener(t,o?u:l,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function $(e){return function(n){if(this.l){var r=this.l[n.type+e];if(null==n.t)n.t=a++;else if(n.t<r.u)return;return r(t.event?t.event(n):n)}}}function W(n,r,i,o,s,a,l,u,c,d){var h,p,f,m,v,g,y,b,w,x,S,E,C,A,R,D,M=r.type;if(void 0!==r.constructor)return null;128&i.__u&&(c=!!(32&i.__u),a=[u=r.__e=i.__e]),(h=t.__b)&&h(r);e:if("function"==typeof M)try{if(b=r.props,w="prototype"in M&&M.prototype.render,x=(h=M.contextType)&&o[h.__c],S=h?x?x.props.value:h.__:o,i.__c?y=(p=r.__c=i.__c).__=p.__E:(w?r.__c=p=new M(b,S):(r.__c=p=new F(b,S),p.constructor=M,p.render=K),x&&x.sub(p),p.props=b,p.state||(p.state={}),p.context=S,p.__n=o,f=p.__d=!0,p.__h=[],p._sb=[]),w&&null==p.__s&&(p.__s=p.state),w&&null!=M.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=k({},p.__s)),k(p.__s,M.getDerivedStateFromProps(b,p.__s))),m=p.props,v=p.state,p.__v=r,f)w&&null==M.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),w&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(w&&null==M.getDerivedStateFromProps&&b!==m&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(b,S),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(b,p.__s,S)||r.__v===i.__v)){for(r.__v!==i.__v&&(p.props=b,p.state=p.__s,p.__d=!1),r.__e=i.__e,r.__k=i.__k,r.__k.forEach((function(e){e&&(e.__=r)})),E=0;E<p._sb.length;E++)p.__h.push(p._sb[E]);p._sb=[],p.__h.length&&l.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(b,p.__s,S),w&&null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(m,v,g)}))}if(p.context=S,p.props=b,p.__P=n,p.__e=!1,C=t.__r,A=0,w){for(p.state=p.__s,p.__d=!1,C&&C(r),h=p.render(p.props,p.state,p.context),R=0;R<p._sb.length;R++)p.__h.push(p._sb[R]);p._sb=[]}else do{p.__d=!1,C&&C(r),h=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++A<25);p.state=p.__s,null!=p.getChildContext&&(o=k(k({},o),p.getChildContext())),w&&!f&&null!=p.getSnapshotBeforeUpdate&&(g=p.getSnapshotBeforeUpdate(m,v)),I(n,P(D=null!=h&&h.type===O&&null==h.key?h.props.children:h)?D:[D],r,i,o,s,a,l,u,c,d),p.base=r.__e,r.__u&=-161,p.__h.length&&l.push(p),y&&(p.__E=p.__=null)}catch(n){if(r.__v=null,c||null!=a){for(r.__u|=c?160:32;u&&8===u.nodeType&&u.nextSibling;)u=u.nextSibling;a[a.indexOf(u)]=null,r.__e=u}else r.__e=i.__e,r.__k=i.__k;t.__e(n,r,i)}else null==a&&r.__v===i.__v?(r.__k=i.__k,r.__e=i.__e):r.__e=function(t,n,r,i,o,s,a,l,u){var c,d,h,p,f,m,v,g=r.props,y=n.props,b=n.type;if("svg"===b?o="http://www.w3.org/2000/svg":"math"===b?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=s)for(c=0;c<s.length;c++)if((f=s[c])&&"setAttribute"in f==!!b&&(b?f.localName===b:3===f.nodeType)){t=f,s[c]=null;break}if(null==t){if(null===b)return document.createTextNode(y);t=document.createElementNS(o,b,y.is&&y),s=null,l=!1}if(null===b)g===y||l&&t.data===y||(t.data=y);else{if(s=s&&e.call(t.childNodes),g=r.props||_,!l&&null!=s)for(g={},c=0;c<t.attributes.length;c++)g[(f=t.attributes[c]).name]=f.value;for(c in g)if(f=g[c],"children"==c);else if("dangerouslySetInnerHTML"==c)h=f;else if("key"!==c&&!(c in y)){if("value"==c&&"defaultValue"in y||"checked"==c&&"defaultChecked"in y)continue;H(t,c,null,f,o)}for(c in y)f=y[c],"children"==c?p=f:"dangerouslySetInnerHTML"==c?d=f:"value"==c?m=f:"checked"==c?v=f:"key"===c||l&&"function"!=typeof f||g[c]===f||H(t,c,f,g[c],o);if(d)l||h&&(d.__html===h.__html||d.__html===t.innerHTML)||(t.innerHTML=d.__html),n.__k=[];else if(h&&(t.innerHTML=""),I(t,P(p)?p:[p],n,r,i,"foreignObject"===b?"http://www.w3.org/1999/xhtml":o,s,a,s?s[0]:r.__k&&L(r,0),l,u),null!=s)for(c=s.length;c--;)null!=s[c]&&T(s[c]);l||(c="value",void 0!==m&&(m!==t[c]||"progress"===b&&!m||"option"===b&&m!==g[c])&&H(t,c,m,g[c],o),c="checked",void 0!==v&&v!==t[c]&&H(t,c,v,g[c],o))}return t}(i.__e,r,i,o,s,a,l,c,d);(h=t.diffed)&&h(r)}function z(e,n,r){n.__d=void 0;for(var i=0;i<r.length;i++)q(r[i],r[++i],r[++i]);t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function q(e,n,r){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==n||(e.__u=e(n))}else e.current=n}catch(e){t.__e(e,r)}}function Q(e,n,r){var i,o;if(t.unmount&&t.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||q(i,null,n)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){t.__e(e,n)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&Q(i[o],n,r||"function"!=typeof e.type);r||null==e.__e||T(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function K(e,t,n){return this.constructor(e,n)}function G(n,r,i){var o,s,a,l;t.__&&t.__(n,r),s=(o="function"==typeof i)?null:i&&i.__k||r.__k,a=[],l=[],W(r,n=(!o&&i||r).__k=C(O,null,[n]),s||_,_,r.namespaceURI,!o&&i?[i]:s?null:r.firstChild?e.call(r.childNodes):null,a,!o&&i?i:s?s.__e:r.firstChild,o,l),z(a,n,l)}function Y(e,t){G(e,t,Y)}function X(t,n,r){var i,o,s,a,l=k({},t.props);for(s in t.type&&t.type.defaultProps&&(a=t.type.defaultProps),n)"key"==s?i=n[s]:"ref"==s?o=n[s]:l[s]=void 0===n[s]&&void 0!==a?a[s]:n[s];return arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):r),A(t.type,l,i||t.key,o||t.ref,null)}function Z(e,t){var n={__c:t="__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,M(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function J(){return(J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}e=S.slice,t={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(t){e=t}throw e}},n=0,F.prototype.setState=function(e,t){var n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=k({},this.state);"function"==typeof e&&(e=e(k({},n),this.props)),e&&k(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),M(this))},F.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),M(this))},F.prototype.render=O,r=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,s=function(e,t){return e.__v.__b-t.__v.__b},V.__r=0,a=0,l=$(!1),u=$(!0),c=0;var ee=["context","children"];function te(e){return this.getChildContext=function(){return e.context},X(e.children,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,ee))}function ne(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=C(te,J({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],i={},o=0,s=t.attributes,a=t.childNodes;for(o=s.length;o--;)"slot"!==s[o].name&&(i[s[o].name]=s[o].value,i[re(s[o].name)]=s[o].value);for(o=a.length;o--;){var l=e(a[o],null),u=a[o].slot;u?i[u]=C(se,{name:u},l):r[o]=l}var c=n?C(se,null,r):r;return C(n||t.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Y:G)(this._vdom,this._root)}function re(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function ie(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[re(e)]=n,this._vdom=X(this._vdom,r),G(this._vdom,this._root)}}function oe(){G(this._vdom=null,this._root)}function se(e,t){var n=this;return C("slot",J({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}var ae=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;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(nx){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),le="-ms-",ue="-moz-",ce="-webkit-",de="comm",he="rule",pe="decl",fe="@keyframes",me=Math.abs,ve=String.fromCharCode,ge=Object.assign;function ye(e){return e.trim()}function be(e,t,n){return e.replace(t,n)}function we(e,t){return e.indexOf(t)}function xe(e,t){return 0|e.charCodeAt(t)}function _e(e,t,n){return e.slice(t,n)}function Se(e){return e.length}function Ee(e){return e.length}function Pe(e,t){return t.push(e),e}var ke=1,Te=1,Ce=0,Ae=0,Re=0,Oe="";function Fe(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:ke,column:Te,length:s,return:""}}function Le(e,t){return ge(Fe("",null,null,"",null,null,0),e,{length:-e.length},t)}function De(){return Re=Ae>0?xe(Oe,--Ae):0,Te--,10===Re&&(Te=1,ke--),Re}function Me(){return Re=Ae<Ce?xe(Oe,Ae++):0,Te++,10===Re&&(Te=1,ke++),Re}function Ve(){return xe(Oe,Ae)}function Ie(){return Ae}function je(e,t){return _e(Oe,e,t)}function Be(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ne(e){return ke=Te=1,Ce=Se(Oe=e),Ae=0,[]}function Ue(e){return Oe="",e}function He(e){return ye(je(Ae-1,ze(91===e?e+2:40===e?e+1:e)))}function $e(e){for(;(Re=Ve())&&Re<33;)Me();return Be(e)>2||Be(Re)>3?"":" "}function We(e,t){for(;--t&&Me()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return je(e,Ie()+(t<6&&32==Ve()&&32==Me()))}function ze(e){for(;Me();)switch(Re){case e:return Ae;case 34:case 39:34!==e&&39!==e&&ze(Re);break;case 40:41===e&&ze(e);break;case 92:Me()}return Ae}function qe(e,t){for(;Me()&&e+Re!==57&&(e+Re!==84||47!==Ve()););return"/*"+je(t,Ae-1)+"*"+ve(47===e?e:Me())}function Qe(e){for(;!Be(Ve());)Me();return je(e,Ae)}function Ke(e){return Ue(Ge("",null,null,null,[""],e=Ne(e),0,[0],e))}function Ge(e,t,n,r,i,o,s,a,l){for(var u=0,c=0,d=s,h=0,p=0,f=0,m=1,v=1,g=1,y=0,b="",w=i,x=o,_=r,S=b;v;)switch(f=y,y=Me()){case 40:if(108!=f&&58==xe(S,d-1)){-1!=we(S+=be(He(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=He(y);break;case 9:case 10:case 13:case 32:S+=$e(f);break;case 92:S+=We(Ie()-1,7);continue;case 47:switch(Ve()){case 42:case 47:Pe(Xe(qe(Me(),Ie()),t,n),l);break;default:S+="/"}break;case 123*m:a[u++]=Se(S)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:-1==g&&(S=be(S,/\f/g,"")),p>0&&Se(S)-d&&Pe(p>32?Ze(S+";",r,n,d-1):Ze(be(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(Pe(_=Ye(S,t,n,u,c,i,a,b,w=[],x=[],d),o),123===y)if(0===c)Ge(S,t,_,_,w,o,d,a,x);else switch(99===h&&110===xe(S,3)?100:h){case 100:case 108:case 109:case 115:Ge(e,_,_,r&&Pe(Ye(e,_,_,0,0,i,a,b,i,w=[],d),x),i,x,d,a,r?w:x);break;default:Ge(S,_,_,_,[""],x,0,a,x)}}u=c=p=0,m=g=1,b=S="",d=s;break;case 58:d=1+Se(S),p=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==De())continue;switch(S+=ve(y),y*m){case 38:g=c>0?1:(S+="\f",-1);break;case 44:a[u++]=(Se(S)-1)*g,g=1;break;case 64:45===Ve()&&(S+=He(Me())),h=Ve(),c=d=Se(b=S+=Qe(Ie())),y++;break;case 45:45===f&&2==Se(S)&&(m=0)}}return o}function Ye(e,t,n,r,i,o,s,a,l,u,c){for(var d=i-1,h=0===i?o:[""],p=Ee(h),f=0,m=0,v=0;f<r;++f)for(var g=0,y=_e(e,d+1,d=me(m=s[f])),b=e;g<p;++g)(b=ye(m>0?h[g]+" "+y:be(y,/&\f/g,h[g])))&&(l[v++]=b);return Fe(e,t,n,0===i?he:a,l,u,c)}function Xe(e,t,n){return Fe(e,t,n,de,ve(Re),_e(e,2,-2),0)}function Ze(e,t,n,r){return Fe(e,t,n,pe,_e(e,0,r),_e(e,r+1,-1),r)}function Je(e,t){for(var n="",r=Ee(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function et(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case pe:return e.return=e.return||e.value;case de:return"";case fe:return e.return=e.value+"{"+Je(e.children,r)+"}";case he:e.value=e.props.join(",")}return Se(n=Je(e.children,r))?e.return=e.value+"{"+n+"}":""}function tt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var nt=g((()=>{})),rt=function(e,t,n){for(var r=0,i=0;r=i,i=Ve(),38===r&&12===i&&(t[n]=1),!Be(i);)Me();return je(e,Ae)},it=function(e,t){return Ue(function(e,t){var n=-1,r=44;do{switch(Be(r)){case 0:38===r&&12===Ve()&&(t[n]=1),e[n]+=rt(Ae-1,t,n);break;case 2:e[n]+=He(r);break;case 4:if(44===r){e[++n]=58===Ve()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ve(r)}}while(r=Me());return e}(Ne(e),t))},ot=new WeakMap,st=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)||ot.get(n))&&!r){ot.set(e,!0);for(var i=[],o=it(t,i),s=n.props,a=0,l=0;a<o.length;a++)for(var u=0;u<s.length;u++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[u]):s[u]+" "+o[a]}}},at=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function lt(e,t){switch(function(e,t){return 45^xe(e,0)?(((t<<2^xe(e,0))<<2^xe(e,1))<<2^xe(e,2))<<2^xe(e,3):0}(e,t)){case 5103:return ce+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ce+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ce+e+ue+e+le+e+e;case 6828:case 4268:return ce+e+le+e+e;case 6165:return ce+e+le+"flex-"+e+e;case 5187:return ce+e+be(e,/(\w+).+(:[^]+)/,ce+"box-$1$2"+le+"flex-$1$2")+e;case 5443:return ce+e+le+"flex-item-"+be(e,/flex-|-self/,"")+e;case 4675:return ce+e+le+"flex-line-pack"+be(e,/align-content|flex-|-self/,"")+e;case 5548:return ce+e+le+be(e,"shrink","negative")+e;case 5292:return ce+e+le+be(e,"basis","preferred-size")+e;case 6060:return ce+"box-"+be(e,"-grow","")+ce+e+le+be(e,"grow","positive")+e;case 4554:return ce+be(e,/([^-])(transform)/g,"$1"+ce+"$2")+e;case 6187:return be(be(be(e,/(zoom-|grab)/,ce+"$1"),/(image-set)/,ce+"$1"),e,"")+e;case 5495:case 3959:return be(e,/(image-set\([^]*)/,ce+"$1$`$1");case 4968:return be(be(e,/(.+:)(flex-)?(.*)/,ce+"box-pack:$3"+le+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ce+e+e;case 4095:case 3583:case 4068:case 2532:return be(e,/(.+)-inline(.+)/,ce+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Se(e)-1-t>6)switch(xe(e,t+1)){case 109:if(45!==xe(e,t+4))break;case 102:return be(e,/(.+:)(.+)-([^]+)/,"$1"+ce+"$2-$3$1"+ue+(108==xe(e,t+3)?"$3":"$2-$3"))+e;case 115:return~we(e,"stretch")?lt(be(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==xe(e,t+1))break;case 6444:switch(xe(e,Se(e)-3-(~we(e,"!important")&&10))){case 107:return be(e,":",":"+ce)+e;case 101:return be(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ce+(45===xe(e,14)?"inline-":"")+"box$3$1"+ce+"$2$3$1"+le+"$2box$3")+e}break;case 5936:switch(xe(e,t+11)){case 114:return ce+e+le+be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ce+e+le+be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ce+e+le+be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ce+e+le+e+e}return e}var ut,ct,dt,ht,pt=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case pe:e.return=lt(e.value,e.length);break;case fe:return Je([Le(e,{value:be(e.value,"@","@"+ce)})],r);case he:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Je([Le(e,{props:[be(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Je([Le(e,{props:[be(t,/:(plac\w+)/,":"+ce+"input-$1")]}),Le(e,{props:[be(t,/:(plac\w+)/,":-moz-$1")]}),Le(e,{props:[be(t,/:(plac\w+)/,le+"input-$1")]})],r)}return""}))}}],ft=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,i,o=e.stylisPlugins||pt,s={},a=[];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<t.length;n++)s[t[n]]=!0;a.push(e)}));var l,u,c=[et,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=Ee(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}([st,at].concat(o,c));i=function(e,t,n,r){l=n,Je(Ke(e?e+"{"+t.styles+"}":t.styles),d),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new ae({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return h.sheet.hydrate(a),h},mt=0,vt=[],gt=t,yt=gt.__b,bt=gt.__r,wt=gt.diffed,xt=gt.__c,_t=gt.unmount,St=gt.__;function Et(e,t){gt.__h&>.__h(ct,e,mt||t),mt=0;var n=ct.__H||(ct.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Pt(e){return mt=1,kt($t,e)}function kt(e,t,n){var r=Et(ut++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):$t(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=ct,!ct.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var s=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),!(!s&&r.__c.props===e)&&(!o||o.call(this,e,t,n))};ct.u=!0;var o=ct.shouldComponentUpdate,s=ct.componentWillUpdate;ct.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,i(e,t,n),o=r}s&&s.call(this,e,t,n)},ct.shouldComponentUpdate=i}return r.__N||r.__}function Tt(e,t){var n=Et(ut++,3);!gt.__s&&Ht(n.__H,t)&&(n.__=e,n.i=t,ct.__H.__h.push(n))}function Ct(e,t){var n=Et(ut++,4);!gt.__s&&Ht(n.__H,t)&&(n.__=e,n.i=t,ct.__h.push(n))}function At(e){return mt=5,Ot((function(){return{current:e}}),[])}function Rt(e,t,n){mt=6,Ct((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function Ot(e,t){var n=Et(ut++,7);return Ht(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Ft(e,t){return mt=8,Ot((function(){return e}),t)}function Lt(e){var t=ct.context[e.__c],n=Et(ut++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(ct)),t.props.value):e.__}function Dt(e,t){gt.useDebugValue&>.useDebugValue(t?t(e):e)}function Mt(e){var t=Et(ut++,10),n=Pt();return t.__=e,ct.componentDidCatch||(ct.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function Vt(){var e=Et(ut++,11);if(!e.__){for(var t=ct.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function It(){for(var e;e=vt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Nt),e.__H.__h.forEach(Ut),e.__H.__h=[]}catch(Jy){e.__H.__h=[],gt.__e(Jy,e.__v)}}gt.__b=function(e){ct=null,yt&&yt(e)},gt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),St&&St(e,t)},gt.__r=function(e){bt&&bt(e),ut=0;var t=(ct=e.__c).__H;t&&(dt===ct?(t.__h=[],ct.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(Nt),t.__h.forEach(Ut),t.__h=[],ut=0)),dt=ct},gt.diffed=function(e){wt&&wt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==vt.push(t)&&ht===gt.requestAnimationFrame||((ht=gt.requestAnimationFrame)||Bt)(It)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),dt=ct=null},gt.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Nt),e.__h=e.__h.filter((function(e){return!e.__||Ut(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],gt.__e(n,e.__v)}})),xt&&xt(e,t)},gt.unmount=function(e){_t&&_t(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Nt(e)}catch(e){t=e}})),n.__H=void 0,t&>.__e(t,n.__v))};var jt="function"==typeof requestAnimationFrame;function Bt(e){var t,n=function(){clearTimeout(r),jt&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);jt&&(t=requestAnimationFrame(n))}function Nt(e){var t=ct,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),ct=t}function Ut(e){var t=ct;e.__c=e.__(),ct=t}function Ht(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function $t(e,t){return"function"==typeof t?t(e):t}var Wt=b({Children:()=>Jt,Component:()=>F,Fragment:()=>O,PureComponent:()=>Qt,StrictMode:()=>Un,Suspense:()=>on,SuspenseList:()=>ln,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Rn,cloneElement:()=>Vn,createContext:()=>Z,createElement:()=>C,createFactory:()=>Fn,createPortal:()=>hn,createRef:()=>R,default:()=>Gn,findDOMNode:()=>jn,flushSync:()=>Nn,forwardRef:()=>Xt,hydrate:()=>wn,isElement:()=>qn,isFragment:()=>Dn,isMemo:()=>Mn,isValidElement:()=>Ln,lazy:()=>an,memo:()=>Kt,render:()=>bn,startTransition:()=>Hn,unmountComponentAtNode:()=>In,unstable_batchedUpdates:()=>Bn,useCallback:()=>Ft,useContext:()=>Lt,useDebugValue:()=>Dt,useDeferredValue:()=>$n,useEffect:()=>Tt,useErrorBoundary:()=>Mt,useId:()=>Vt,useImperativeHandle:()=>Rt,useInsertionEffect:()=>zn,useLayoutEffect:()=>Ct,useMemo:()=>Ot,useReducer:()=>kt,useRef:()=>At,useState:()=>Pt,useSyncExternalStore:()=>Qn,useTransition:()=>Wn,version:()=>On});function zt(e,t){for(var n in t)e[n]=t[n];return e}function qt(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Qt(e,t){this.props=e,this.context=t}function Kt(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:qt(this.props,e)}function r(t){return this.shouldComponentUpdate=n,C(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Qt.prototype=new F).isPureReactComponent=!0,Qt.prototype.shouldComponentUpdate=function(e,t){return qt(this.props,e)||qt(this.state,t)};var Gt=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Gt&&Gt(e)};var Yt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Xt(e){function t(t){var n=zt({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Yt,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Zt=function(e,t){return null==e?null:B(B(e).map(t))},Jt={map:Zt,forEach:Zt,count:function(e){return e?B(e).length:0},only:function(e){var t=B(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:B},en=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e??(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);en(e,t,n,r)};var tn=t.unmount;function nn(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=zt({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return nn(e,t,n)}))),e}function rn(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return rn(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function on(){this.__u=0,this.t=null,this.__b=null}function sn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function an(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return C(n,i)}return i.displayName="Lazy",i.__f=!0,i}function ln(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),tn&&tn(e)},(on.prototype=new F).__c=function(e,t){var n=t.__c,r=this;r.t??=[],r.t.push(n);var i=sn(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=rn(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},on.prototype.componentWillUnmount=function(){this.t=[]},on.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=nn(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&C(O,null,e.fallback);return i&&(i.__u&=-33),[C(O,null,t.__a?null:e.children),i]};var un=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function cn(e){return this.getChildContext=function(){return e.context},e.children}function dn(e){var t=this,n=e.i;t.componentWillUnmount=function(){G(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),G(C(cn,{context:t.context},e.__v),t.l)}function hn(e,t){var n=C(dn,{__v:e,i:t});return n.containerInfo=t,n}(ln.prototype=new F).__a=function(e){var t=this,n=sn(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),un(t,e,r)):i()};n?n(o):o()}},ln.prototype.render=function(e){this.u=null,this.o=new Map;var t=B(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ln.prototype.componentDidUpdate=ln.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){un(e,n,t)}))};var pn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,fn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,mn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,vn=/[A-Z0-9]/g,gn="undefined"!=typeof document,yn=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function bn(e,t,n){return t.__k??(t.textContent=""),G(e,t),"function"==typeof n&&n(),e?e.__c:null}function wn(e,t,n){return Y(e,t),"function"==typeof n&&n(),e?e.__c:null}F.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(F.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var xn,_n=t.event;function Sn(){}function En(){return this.cancelBubble}function Pn(){return this.defaultPrevented}t.event=function(e){return _n&&(e=_n(e)),e.persist=Sn,e.isPropagationStopped=En,e.isDefaultPrevented=Pn,e.nativeEvent=e};var kn={enumerable:!1,configurable:!0,get:function(){return this.class}},Tn=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},i=-1===n.indexOf("-");for(var o in t){var s=t[o];if(!("value"===o&&"defaultValue"in t&&null==s||gn&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===s?s="":"translate"===a&&"no"===s?s=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||yn(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":mn.test(o)&&(o=a):a=o="oninput":i&&fn.test(o)?o=o.replace(vn,"-$&").toLowerCase():null===s&&(s=void 0),"oninput"===a&&r[o=a]&&(o="oninputCapture"),r[o]=s}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=B(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=B(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",kn)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=pn,Tn&&Tn(e)};var Cn=t.__r;t.__r=function(e){Cn&&Cn(e),xn=e.__c};var An=t.diffed;t.diffed=function(e){An&&An(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),xn=null};var Rn={ReactCurrentDispatcher:{current:{readContext:function(e){return xn.__n[e.__c].props.value},useCallback:Ft,useContext:Lt,useDebugValue:Dt,useDeferredValue:$n,useEffect:Tt,useId:Vt,useImperativeHandle:Rt,useInsertionEffect:zn,useLayoutEffect:Ct,useMemo:Ot,useReducer:kt,useRef:At,useState:Pt,useSyncExternalStore:Qn,useTransition:Wn}}},On="17.0.2";function Fn(e){return C.bind(null,e)}function Ln(e){return!!e&&e.$$typeof===pn}function Dn(e){return Ln(e)&&e.type===O}function Mn(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Vn(e){return Ln(e)?X.apply(null,arguments):e}function In(e){return!!e.__k&&(G(null,e),!0)}function jn(e){return e&&(e.base||1===e.nodeType&&e)||null}var Bn=function(e,t){return e(t)},Nn=function(e,t){return e(t)},Un=O;function Hn(e){e()}function $n(e){return e}function Wn(){return[!1,Hn]}var zn=Ct,qn=Ln;function Qn(e,t){var n=t(),r=Pt({h:{__:n,v:t}}),i=r[0].h,o=r[1];return Ct((function(){i.__=n,i.v=t,Kn(i)&&o({h:i})}),[e,n,t]),Tt((function(){return Kn(i)&&o({h:i}),e((function(){Kn(i)&&o({h:i})}))}),[e]),n}function Kn(e){var t,n,r=e.v,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}var Gn={useState:Pt,useId:Vt,useReducer:kt,useEffect:Tt,useLayoutEffect:Ct,useInsertionEffect:zn,useTransition:Wn,useDeferredValue:$n,useSyncExternalStore:Qn,startTransition:Hn,useRef:At,useImperativeHandle:Rt,useMemo:Ot,useCallback:Ft,useContext:Lt,useDebugValue:Dt,version:"17.0.2",Children:Jt,render:bn,hydrate:wn,unmountComponentAtNode:In,createPortal:hn,createElement:C,createContext:Z,createFactory:Fn,cloneElement:Vn,createRef:R,Fragment:O,isValidElement:Ln,isElement:qn,isFragment:Dn,isMemo:Mn,findDOMNode:jn,Component:F,PureComponent:Qt,memo:Kt,forwardRef:Xt,flushSync:Nn,unstable_batchedUpdates:Bn,StrictMode:Un,Suspense:on,SuspenseList:ln,lazy:an,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Rn};function Yn(){return Yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yn.apply(null,arguments)}var Xn=y((e=>{var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case c:case i:case s:case o:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case m:case f:case a:return e;default:return t}}case r:return t}}}function x(e){return w(e)===c}e.AsyncMode=u,e.ConcurrentMode=c,e.ContextConsumer=l,e.ContextProvider=a,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=m,e.Memo=f,e.Portal=r,e.Profiler=s,e.StrictMode=o,e.Suspense=h,e.isAsyncMode=function(e){return x(e)||w(e)===u},e.isConcurrentMode=x,e.isContextConsumer=function(e){return w(e)===l},e.isContextProvider=function(e){return w(e)===a},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},e.isForwardRef=function(e){return w(e)===d},e.isFragment=function(e){return w(e)===i},e.isLazy=function(e){return w(e)===m},e.isMemo=function(e){return w(e)===f},e.isPortal=function(e){return w(e)===r},e.isProfiler=function(e){return w(e)===s},e.isStrictMode=function(e){return w(e)===o},e.isSuspense=function(e){return w(e)===h},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===c||e===s||e===o||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===y||e.$$typeof===b||e.$$typeof===v)},e.typeOf=w})),Zn=y(((e,t)=>{t.exports=Xn()})),Jn=y(((e,t)=>{var n=Zn(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function a(e){return n.isMemo(e)?o:s[e.$$typeof]||r}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=o;var l=Object.defineProperty,u=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var s=u(n);c&&(s=s.concat(c(n)));for(var f=a(t),m=a(n),v=0;v<s.length;++v){var g=s[v];if(!(i[g]||r&&r[g]||m&&m[g]||f&&f[g])){var y=d(n,g);try{l(t,g,y)}catch(nx){}}}}return t}}));function er(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var tr=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},nr=function(e,t,n){tr(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};function rr(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=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(i){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)}var ir={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};nt();var or=!1,sr=/[A-Z]|^ms/g,ar=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lr=function(e){return 45===e.charCodeAt(1)},ur=function(e){return null!=e&&"boolean"!=typeof e},cr=tt((function(e){return lr(e)?e:e.replace(sr,"-$&").toLowerCase()})),dr=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ar,(function(e,t,n){return fr={name:t,styles:n,next:fr},t}))}return 1===ir[e]||lr(e)||"number"!=typeof t||0===t?t:t+"px"},hr="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function pr(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return fr={name:i.name,styles:i.styles,next:fr},i.name;var o=n;if(void 0!==o.styles){var s=o.next;if(void 0!==s)for(;void 0!==s;)fr={name:s.name,styles:s.styles,next:fr},s=s.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=pr(e,t,n[i])+";";else for(var o in n){var s=n[o];if("object"!=typeof s){var a=s;null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":ur(a)&&(r+=cr(o)+":"+dr(o,a)+";")}else{if("NO_COMPONENT_SELECTOR"===o&&or)throw new Error(hr);if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var l=pr(e,t,s);switch(o){case"animation":case"animationName":r+=cr(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var u=0;u<s.length;u++)ur(s[u])&&(r+=cr(o)+":"+dr(o,s[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=fr,l=n(e);return fr=a,pr(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var fr,mr=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function vr(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";fr=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=pr(n,t,o)):i+=o[0];for(var s=1;s<e.length;s++)i+=pr(n,t,e[s]),r&&(i+=o[s]);mr.lastIndex=0;for(var a,l="";null!==(a=mr.exec(i));)l+="-"+a[1];return{name:rr(i)+l,styles:i,next:fr}}var gr=zn||!1,yr=gr||function(e){return e()},br=gr||Ct,wr=Z("undefined"!=typeof HTMLElement?ft({key:"css"}):null),xr=wr.Provider,_r=function(e){return Xt((function(t,n){return e(t,Lt(wr),n)}))},Sr=Z({}),Er={}.hasOwnProperty,Pr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",kr=function(e,t){var n={};for(var r in t)Er.call(t,r)&&(n[r]=t[r]);return n[Pr]=e,n},Tr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return tr(t,n,r),yr((function(){return nr(t,n,r)})),null},Cr=_r((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Pr],o=[r],s="";"string"==typeof e.className?s=er(t.registered,o,e.className):null!=e.className&&(s=e.className+" ");var a=vr(o,void 0,Lt(Sr));s+=t.key+"-"+a.name;var l={};for(var u in e)Er.call(e,u)&&"css"!==u&&u!==Pr&&(l[u]=e[u]);return l.className=s,n&&(l.ref=n),C(O,null,C(Tr,{cache:t,serialized:a,isStringTag:"string"==typeof i}),C(i,l))})),Ar=(Jn(),_r((function(e,t){var n=vr([e.styles],void 0,Lt(Sr)),r=At();return br((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,s=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==s&&(o=!0,s.setAttribute("data-emotion",e),i.hydrate([s])),r.current=[i,o],function(){i.flush()}}),[t]),br((function(){var e=r.current,i=e[0];e[1]?e[1]=!1:(void 0!==n.next&&nr(t,n.next,!0),i.tags.length&&(i.before=i.tags[i.tags.length-1].nextElementSibling,i.flush()),t.insert("",n,i,!1))}),[t,n.name]),null})));function Rr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return vr(t)}var Or=0;Array.isArray;function Fr(e,n,r,i,o,s){n||(n={});var a,l,u=n;if("ref"in u)for(l in u={},n)"ref"==l?a=n[l]:u[l]=n[l];var c={type:e,props:u,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Or,__i:-1,__u:0,__source:o,__self:s};if("function"==typeof e&&(a=e.defaultProps))for(l in a)void 0===u[l]&&(u[l]=a[l]);return t.vnode&&t.vnode(c),c}var Lr=O;function Dr(e,t,n){return Er.call(t,"css")?Fr(Cr,kr(e,t),n):Fr(e,t,n)}function Mr(e,t,n){return Er.call(t,"css")?Fr(Cr,kr(e,t),n):Fr(e,t,n)}var Vr,Ir=Rr({body:{WebkitTapHighlightColor:"#a855f7",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},":host":{"--fl-color-primary-900":"#000563","--fl-color-primary-800":"#031495","--fl-color-primary-700":"#1033c6","--fl-color-primary-600":"#2e66f7","--fl-color-primary-500":"#5786f8","--fl-color-primary-400":"#88abfa","--fl-color-primary-300":"#b5cbfb","--fl-color-primary-200":"#d6e2fc","--fl-color-primary-100":"#eaf0fe","--fl-color-primary-50":"#f2f6ff","--kit-font-family":"Inter, 'Source Sans Pro', sans-serif",fontFamily:"Inter, 'Source Sans Pro', sans-serif"}}),jr=()=>Mr(O,{children:[Dr(Ar,{styles:Rr`
|
|
2
2
|
${{"*, ::before, ::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"#e5e7eb","--tw-border-spacing-x":"0","--tw-border-spacing-y":"0","--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-scroll-snap-strictness":"proximity","--tw-gradient-from-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-via-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-to-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"rgb(59 130 246 / 0.5)","--tw-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-drop-shadow":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-opacity":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-size":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-layout":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-paint":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-style":"var(--tw-empty,/*!*/ /*!*/)"},"::before, ::after":{"--tw-content":"''"},"html, :host":{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:"4",fontFamily:'Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontFeatureSettings:" normal",fontVariationSettings:" normal",WebkitTapHighlightColor:"transparent"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1, h2, h3, h4, h5, h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontFeatureSettings:" normal",fontVariationSettings:" normal",fontSize:"1em"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button, input, optgroup, select, textarea":{fontFamily:"inherit",fontFeatureSettings:"inherit",fontVariationSettings:"inherit",fontSize:"100%",fontWeight:"inherit",lineHeight:"inherit",letterSpacing:"inherit",color:"inherit",margin:"0",padding:"0"},"button, select":{textTransform:"none"},"button, input:where([type='button']), input:where([type='reset']), input:where([type='submit'])":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button, ::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol, ul, menu":{listStyle:"none",margin:"0",padding:"0"},dialog:{padding:"0"},textarea:{resize:"vertical"},"input::placeholder, textarea::placeholder":{opacity:"1",color:"#9ca3af"},'button, [role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},"img, video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"},"::backdrop":{"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0","--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-scroll-snap-strictness":"proximity","--tw-gradient-from-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-via-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-to-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"rgb(59 130 246 / 0.5)","--tw-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-drop-shadow":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-opacity":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-size":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-layout":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-paint":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-style":"var(--tw-empty,/*!*/ /*!*/)"},"[type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select":{appearance:"none",backgroundColor:"#fff",borderColor:"#6b7280",borderWidth:"1px",borderRadius:"0px",paddingTop:"0.5rem",paddingRight:"0.75rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-shadow":"0 0 #0000"},"[type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"#2563eb","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)",borderColor:"#2563eb"},"input::placeholder,textarea::placeholder":{color:"#6b7280",opacity:"1"},"::-webkit-datetime-edit-fields-wrapper":{padding:"0"},"::-webkit-date-and-time-value":{minHeight:"1.5em",textAlign:"inherit"},"::-webkit-datetime-edit":{display:"inline-flex"},"::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field":{paddingTop:"0",paddingBottom:"0"},select:{backgroundImage:"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\")",backgroundPosition:"right 0.5rem center",backgroundRepeat:"no-repeat",backgroundSize:"1.5em 1.5em",paddingRight:"2.5rem",printColorAdjust:"exact"},'[multiple],[size]:where(select:not([size="1"]))':{backgroundImage:"initial",backgroundPosition:"initial",backgroundRepeat:"unset",backgroundSize:"initial",paddingRight:"0.75rem",printColorAdjust:"unset"},"[type='checkbox'],[type='radio']":{appearance:"none",padding:"0",printColorAdjust:"exact",display:"inline-block",verticalAlign:"middle",backgroundOrigin:"border-box",userSelect:"none",flexShrink:"0",height:"1rem",width:"1rem",color:"#2563eb",backgroundColor:"#fff",borderColor:"#6b7280",borderWidth:"1px","--tw-shadow":"0 0 #0000"},"[type='checkbox']":{borderRadius:"0px"},"[type='radio']":{borderRadius:"100%"},"[type='checkbox']:focus,[type='radio']:focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#fff","--tw-ring-color":"#2563eb","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)"},"[type='checkbox']:checked,[type='radio']:checked":{borderColor:"transparent",backgroundColor:"currentColor",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"[type='checkbox']:checked":{backgroundImage:"url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e\")"},"@media (forced-colors: active)":{"[type='checkbox']:checked":{appearance:"auto"},"[type='radio']:checked":{appearance:"auto"},"[type='checkbox']:indeterminate":{appearance:"auto"}},"[type='radio']:checked":{backgroundImage:"url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e\")"},"[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus":{borderColor:"transparent",backgroundColor:"currentColor"},"[type='checkbox']:indeterminate":{backgroundImage:"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e\")",borderColor:"transparent",backgroundColor:"currentColor",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus":{borderColor:"transparent",backgroundColor:"currentColor"},"[type='file']":{background:"unset",borderColor:"inherit",borderWidth:"0",borderRadius:"0",padding:"0",fontSize:"unset",lineHeight:"inherit"},"[type='file']:focus":{outline:"1px auto -webkit-focus-ring-color"}}}
|
|
3
|
-
`}),Dr(Ar,{styles:Ir})]}),Br=()=>Lt(Vr),Nr=class extends Error{response;constructor(e,t){super(e),this.response=t}},Ur=async(e,t,n,r)=>{await Hr(e,t,n,r,!0)},Hr=async(e,t,n,r,i)=>{const o=await fetch(e,{method:n,body:r?JSON.stringify(r):void 0,headers:{"content-type":"application/json","x-app-version":"1.4.25839",authorization:`Bearer ${t}`},signal:AbortSignal?.timeout&&AbortSignal.timeout(15e3)});if(!o.ok)throw new Nr(`[API Error] Status: ${o.statusText}. Response: ${await o.text()}`,o);return i?{}:await o.json()},$r=()=>{const e=Br();return{getAllPromotions:Ot((()=>{return t=e.backend,async()=>Hr(new URL(`${t.url}/promoted-benefits/admin/v1.0/promotion`),t.accessToken,"GET");var t}),[e.backend]),createPromotion:Ot((()=>{return t=e.backend,async e=>Ur(new URL(`${t.url}/promoted-benefits/admin/v1.0/promotion`),t.accessToken,"POST",e);var t}),[e.backend]),updatePromotion:Ot((()=>{return t=e.backend,e=>async n=>Ur(new URL(`${t.url}/promoted-benefits/admin/v1.0/promotion/${e}`),t.accessToken,"PUT",n);var t}),[e.backend])}},Wr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},zr="undefined"==typeof window||"Deno"in globalThis;function qr(){}function Qr(e){return"number"==typeof e&&e>=0&&e!==1/0}function Kr(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Gr(e,t){return"function"==typeof e?e(t):e}function Yr(e,t){return"function"==typeof e?e(t):e}function Xr(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s)if(r){if(t.queryHash!==Jr(s,t.options))return!1}else if(!ti(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&((!i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function Zr(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(ei(t.options.mutationKey)!==ei(o))return!1}else if(!ti(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&!(i&&!i(t))}function Jr(e,t){return(t?.queryKeyHashFn||ei)(e)}function ei(e){return JSON.stringify(e,((e,t)=>oi(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function ti(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!ti(e[n],t[n]))))}function ni(e,t){if(e===t)return e;const n=ii(e)&&ii(t);if(n||oi(e)&&oi(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,a=n?[]:{};let l=0;for(let u=0;u<s;u++){const i=n?u:o[u];(!n&&r.includes(i)||n)&&void 0===e[i]&&void 0===t[i]?(a[i]=void 0,l++):(a[i]=ni(e[i],t[i]),a[i]===e[i]&&void 0!==e[i]&&l++)}return i===s&&l===i?e:a}return t}function ri(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function ii(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function oi(e){if(!si(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!si(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function si(e){return"[object Object]"===Object.prototype.toString.call(e)}function ai(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?ni(e,t):t}function li(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ui(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ci=Symbol();function di(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==ci?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var hi=new class extends Wr{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!zr&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},pi=new class extends Wr{#r=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!zr&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return this.#r}};function fi(e){return Math.min(1e3*2**e,3e4)}function mi(e){return"online"!==(e??"online")||pi.isOnline()}var vi=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function gi(e){return e instanceof vi}function yi(e){let t,n,r,i=!1,o=0,s=!1;const a=new Promise(((e,t)=>{n=e,r=t})),l=()=>hi.isFocused()&&("always"===e.networkMode||pi.isOnline())&&e.canRun(),u=()=>mi(e.networkMode)&&e.canRun(),c=r=>{s||(s=!0,e.onSuccess?.(r),t?.(),n(r))},d=n=>{s||(s=!0,e.onError?.(n),t?.(),r(n))},h=()=>new Promise((n=>{t=e=>{(s||l())&&n(e)},e.onPause?.()})).then((()=>{t=void 0,s||e.onContinue?.()})),p=()=>{if(s)return;let t;const n=0===o?e.initialPromise:void 0;try{t=n??e.fn()}catch(r){t=Promise.reject(r)}Promise.resolve(t).then(c).catch((t=>{if(s)return;const n=e.retry??(zr?0:3),r=e.retryDelay??fi,a="function"==typeof r?r(o,t):r,u=!0===n||"number"==typeof n&&o<n||"function"==typeof n&&n(o,t);!i&&u?(o++,e.onFail?.(o,t),function(e){return new Promise((t=>{setTimeout(t,e)}))}(a).then((()=>l()?void 0:h())).then((()=>{i?d(t):p()}))):d(t)}))};return{promise:a,cancel:t=>{s||(d(new vi(t)),e.abort?.())},continue:()=>(t?.(),a),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:u,start:()=>(u()?p():h().then(p),a)}}var bi=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0);const o=r=>{t?e.push(r):i((()=>{n(r)}))};return{batch:o=>{let s;t++;try{s=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return s},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}(),wi=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qr(this.gcTime)&&(this.#i=setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zr?1/0:3e5))}clearGcTimeout(){this.#i&&(clearTimeout(this.#i),this.#i=void 0)}},xi=class extends wi{#o;#s;#a;#l;#u;#c;constructor(e){super(),this.#c=!1,this.#u=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#o=function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#o,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(e){this.options={...this.#u,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#a.remove(this)}setData(e,t){const n=ai(this.state.data,e,this.options);return this.#d({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#d({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#l?.promise;return this.#l?.cancel(e),t?t.then(qr).catch(qr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#o)}isActive(){return this.observers.some((e=>!1!==Yr(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!Kr(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find((e=>e.shouldFetchOnWindowFocus()))?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find((e=>e.shouldFetchOnReconnect()))?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#a.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.#l&&(this.#c?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#c=!0,n.signal)})},i={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=di(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return r(n),this.#c=!1,this.options.persister?this.options.persister(e,n,this):e(n)}};r(i),this.options.behavior?.onFetch(i,this),this.#s=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#d({type:"fetch",meta:i.fetchOptions?.meta});const o=e=>{gi(e)&&e.silent||this.#d({type:"error",error:e}),gi(e)||(this.#a.config.onError?.(e,this),this.#a.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#l=yi({initialPromise:t?.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0!==e){try{this.setData(e)}catch(t){return void o(t)}this.#a.config.onSuccess?.(e,this),this.#a.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1}else o(new Error(`${this.queryHash} data is undefined`))},onError:o,onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}),this.#l.start()}#d(e){this.state=(t=>{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,..._i(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return gi(n)&&n.revert&&this.#s?{...this.#s,fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),bi.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),this.#a.notify({query:this,type:"updated",action:e})}))}};function _i(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:mi(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Si=class extends Wr{constructor(e={}){super(),this.config=e,this.#h=new Map}#h;build(e,t,n){const r=t.queryKey,i=t.queryHash??Jr(r,t);let o=this.get(i);return o||(o=new xi({cache:this,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#h.has(e.queryHash)||(this.#h.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#h.get(e.queryHash);t&&(e.destroy(),t===e&&this.#h.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){bi.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return this.#h.get(e)}getAll(){return[...this.#h.values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Xr(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>Xr(e,t))):t}notify(e){bi.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){bi.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){bi.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},Ei=class extends wi{#p;#f;#l;constructor(e){super(),this.mutationId=e.mutationId,this.#f=e.mutationCache,this.#p=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#p.includes(e)||(this.#p.push(e),this.clearGcTimeout(),this.#f.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#p=this.#p.filter((t=>t!==e)),this.scheduleGc(),this.#f.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#p.length||("pending"===this.state.status?this.scheduleGc():this.#f.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(e){this.#l=yi({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#f.canRun(this)});const t="pending"===this.state.status,n=!this.#l.canStart();try{if(!t){this.#d({type:"pending",variables:e,isPaused:n}),await(this.#f.config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&this.#d({type:"pending",context:t,variables:e,isPaused:n})}const r=await this.#l.start();return await(this.#f.config.onSuccess?.(r,e,this.state.context,this)),await(this.options.onSuccess?.(r,e,this.state.context)),await(this.#f.config.onSettled?.(r,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(r,null,e,this.state.context)),this.#d({type:"success",data:r}),r}catch(r){try{throw await(this.#f.config.onError?.(r,e,this.state.context,this)),await(this.options.onError?.(r,e,this.state.context)),await(this.#f.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,r,e,this.state.context)),r}finally{this.#d({type:"error",error:r})}}finally{this.#f.runNext(this)}}#d(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"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};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"}}})(this.state),bi.batch((()=>{this.#p.forEach((t=>{t.onMutationUpdate(e)})),this.#f.notify({mutation:this,type:"updated",action:e})}))}};var Pi=class extends Wr{constructor(e={}){super(),this.config=e,this.#m=new Map,this.#v=Date.now()}#m;#v;build(e,t,n){const r=new Ei({mutationCache:this,mutationId:++this.#v,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=ki(e),n=this.#m.get(t)??[];n.push(e),this.#m.set(t,n),this.notify({type:"added",mutation:e})}remove(e){const t=ki(e);if(this.#m.has(t)){const n=this.#m.get(t)?.filter((t=>t!==e));n&&(0===n.length?this.#m.delete(t):this.#m.set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){const t=this.#m.get(ki(e))?.find((e=>"pending"===e.state.status));return!t||t===e}runNext(e){return(this.#m.get(ki(e))?.find((t=>t!==e&&t.state.isPaused)))?.continue()??Promise.resolve()}clear(){bi.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...this.#m.values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Zr(t,e)))}findAll(e={}){return this.getAll().filter((t=>Zr(e,t)))}notify(e){bi.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return bi.batch((()=>Promise.all(e.map((e=>e.continue().catch(qr))))))}};function ki(e){return e.options.scope?.id??String(e.mutationId)}function Ti(e){return{onFetch:(t,n)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let n=!1;const u=di(t.options,t.fetchOptions),c=async(e,r,i)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const o={queryKey:t.queryKey,pageParam:r,direction:i?"backward":"forward",meta:t.options.meta};var s;s=o,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",(()=>{n=!0})),t.signal)});const a=await u(o),{maxPages:l}=t.options,c=i?ui:li;return{pages:c(e.pages,a,l),pageParams:c(e.pageParams,r,l)}};if(i&&o.length){const e="backward"===i,t=e?Ai:Ci,n={pages:o,pageParams:s};a=await c(n,t(r,n),e)}else{const t=e??o.length;do{const e=0===l?s[0]??r.initialPageParam:Ci(r,a);if(l>0&&null==e)break;a=await c(a,e),l++}while(l<t)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=u}}}function Ci(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Ai(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Ri=class{#g;#f;#u;#y;#b;#w;#x;#_;constructor(e={}){this.#g=e.queryCache||new Si,this.#f=e.mutationCache||new Pi,this.#u=e.defaultOptions||{},this.#y=new Map,this.#b=new Map,this.#w=0}mount(){this.#w++,1===this.#w&&(this.#x=hi.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#g.onFocus())})),this.#_=pi.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#g.onOnline())})))}unmount(){this.#w--,0===this.#w&&(this.#x?.(),this.#x=void 0,this.#_?.(),this.#_=void 0)}isFetching(e){return this.#g.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#f.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#g.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=this.#g.build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Gr(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.#g.findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#g.get(r.queryHash)?.state.data,o=function(e,t){return"function"==typeof e?e(t):e}(t,i);if(void 0!==o)return this.#g.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return bi.batch((()=>this.#g.findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#g.get(t.queryHash)?.state}removeQueries(e){const t=this.#g;bi.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=this.#g,r={type:"active",...e};return bi.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(r,t))))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=bi.batch((()=>this.#g.findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(qr).catch(qr)}invalidateQueries(e={},t={}){return bi.batch((()=>{if(this.#g.findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)}))}refetchQueries(e={},t){const n={...t,cancelRefetch:t?.cancelRefetch??!0},r=bi.batch((()=>this.#g.findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(qr)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(qr)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#g.build(this,t);return n.isStaleByTime(Gr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(qr).catch(qr)}fetchInfiniteQuery(e){return e.behavior=Ti(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(qr).catch(qr)}ensureInfiniteQueryData(e){return e.behavior=Ti(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return pi.isOnline()?this.#f.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#g}getMutationCache(){return this.#f}getDefaultOptions(){return this.#u}setDefaultOptions(e){this.#u=e}setQueryDefaults(e,t){this.#y.set(ei(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#y.values()];let n={};return t.forEach((t=>{ti(e,t.queryKey)&&(n={...n,...t.defaultOptions})})),n}setMutationDefaults(e,t){this.#b.set(ei(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#b.values()];let n={};return t.forEach((t=>{ti(e,t.mutationKey)&&(n={...n,...t.defaultOptions})})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#u.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Jr(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===ci&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#u.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#g.clear(),this.#f.clear()}},Oi=class extends Wr{constructor(e,t){super(),this.options=t,this.#S=e,this.#E=null,this.bindMethods(),this.setOptions(t)}#S;#P=void 0;#k=void 0;#T=void 0;#C;#A;#E;#R;#O;#F;#L;#D;#M;#V=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#P.addObserver(this),Fi(this.#P,this.options)?this.#I():this.updateResult(),this.#j())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Li(this.#P,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Li(this.#P,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#B(),this.#N(),this.#P.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.#P;if(this.options=this.#S.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Yr(this.options.enabled,this.#P))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#U(),this.#P.setOptions(this.options),n._defaulted&&!ri(this.options,n)&&this.#S.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#P,observer:this});const i=this.hasListeners();i&&Di(this.#P,r,this.options,n)&&this.#I(),this.updateResult(t),!i||this.#P===r&&Yr(this.options.enabled,this.#P)===Yr(n.enabled,this.#P)&&Gr(this.options.staleTime,this.#P)===Gr(n.staleTime,this.#P)||this.#H();const o=this.#$();!i||this.#P===r&&Yr(this.options.enabled,this.#P)===Yr(n.enabled,this.#P)&&o===this.#M||this.#W(o)}getOptimisticResult(e){const t=this.#S.getQueryCache().build(this.#S,e),n=this.createResult(t,e);var r;return r=n,ri(this.getCurrentResult(),r)||(this.#T=n,this.#A=this.options,this.#C=this.#P.state),n}getCurrentResult(){return this.#T}trackResult(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})})),n}trackProp(e){this.#V.add(e)}getCurrentQuery(){return this.#P}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#S.defaultQueryOptions(e),n=this.#S.getQueryCache().build(this.#S,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return this.#I({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#T)))}#I(e){this.#U();let t=this.#P.fetch(this.options,e);return e?.throwOnError||(t=t.catch(qr)),t}#H(){this.#B();const e=Gr(this.options.staleTime,this.#P);if(zr||this.#T.isStale||!Qr(e))return;const t=Kr(this.#T.dataUpdatedAt,e)+1;this.#L=setTimeout((()=>{this.#T.isStale||this.updateResult()}),t)}#$(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#P):this.options.refetchInterval)??!1}#W(e){this.#N(),this.#M=e,!zr&&!1!==Yr(this.options.enabled,this.#P)&&Qr(this.#M)&&0!==this.#M&&(this.#D=setInterval((()=>{(this.options.refetchIntervalInBackground||hi.isFocused())&&this.#I()}),this.#M))}#j(){this.#H(),this.#W(this.#$())}#B(){this.#L&&(clearTimeout(this.#L),this.#L=void 0)}#N(){this.#D&&(clearInterval(this.#D),this.#D=void 0)}createResult(e,t){const n=this.#P,r=this.options,i=this.#T,o=this.#C,s=this.#A,a=e!==n?e.state:this.#k,{state:l}=e;let u,c={...l},d=!1;if(t._optimisticResults){const i=this.hasListeners(),o=!i&&Fi(e,t),s=i&&Di(e,n,t,r);(o||s)&&(c={...c,..._i(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(c.fetchStatus="idle")}let{error:h,errorUpdatedAt:p,status:f}=c;if(t.select&&void 0!==c.data)if(i&&c.data===o?.data&&t.select===this.#R)u=this.#O;else try{this.#R=t.select,u=t.select(c.data),u=ai(i?.data,u,t),this.#O=u,this.#E=null}catch(w){this.#E=w}else u=c.data;if(void 0!==t.placeholderData&&void 0===u&&"pending"===f){let e;if(i?.isPlaceholderData&&t.placeholderData===s?.placeholderData)e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#F?.state.data,this.#F):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#E=null}catch(w){this.#E=w}void 0!==e&&(f="success",u=ai(i?.data,e,t),d=!0)}this.#E&&(h=this.#E,u=this.#O,p=Date.now(),f="error");const m="fetching"===c.fetchStatus,v="pending"===f,g="error"===f,y=v&&m,b=void 0!==u;return{status:f,fetchStatus:c.fetchStatus,isPending:v,isSuccess:"success"===f,isError:g,isInitialLoading:y,isLoading:y,data:u,dataUpdatedAt:c.dataUpdatedAt,error:h,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>a.dataUpdateCount||c.errorUpdateCount>a.errorUpdateCount,isFetching:m,isRefetching:m&&!v,isLoadingError:g&&!b,isPaused:"paused"===c.fetchStatus,isPlaceholderData:d,isRefetchError:g&&b,isStale:Mi(e,t),refetch:this.refetch}}updateResult(e){const t=this.#T,n=this.createResult(this.#P,this.options);if(this.#C=this.#P.state,this.#A=this.options,void 0!==this.#C.data&&(this.#F=this.#P),ri(n,t))return;this.#T=n;const r={};!1!==e?.listeners&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#V.size)return!0;const r=new Set(n??this.#V);return this.options.throwOnError&&r.add("error"),Object.keys(this.#T).some((e=>{const n=e;return this.#T[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.#z({...r,...e})}#U(){const e=this.#S.getQueryCache().build(this.#S,this.options);if(e===this.#P)return;const t=this.#P;this.#P=e,this.#k=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#j()}#z(e){bi.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(this.#T)})),this.#S.getQueryCache().notify({query:this.#P,type:"observerResultsUpdated"})}))}};function Fi(e,t){return function(e,t){return!1!==Yr(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Li(e,t,t.refetchOnMount)}function Li(e,t,n){if(!1!==Yr(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&Mi(e,t)}return!1}function Di(e,t,n,r){return(e!==t||!1===Yr(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&Mi(e,n)}function Mi(e,t){return!1!==Yr(t.enabled,e)&&e.isStaleByTime(Gr(t.staleTime,e))}var Vi=class extends Wr{#S;#T=void 0;#q;#Q;constructor(e,t){super(),this.#S=e,this.setOptions(t),this.bindMethods(),this.#K()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#S.defaultMutationOptions(e),ri(this.options,t)||this.#S.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#q,observer:this}),t?.mutationKey&&this.options.mutationKey&&ei(t.mutationKey)!==ei(this.options.mutationKey)?this.reset():"pending"===this.#q?.state.status&&this.#q.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#q?.removeObserver(this)}onMutationUpdate(e){this.#K(),this.#z(e)}getCurrentResult(){return this.#T}reset(){this.#q?.removeObserver(this),this.#q=void 0,this.#K(),this.#z()}mutate(e,t){return this.#Q=t,this.#q?.removeObserver(this),this.#q=this.#S.getMutationCache().build(this.#S,this.options),this.#q.addObserver(this),this.#q.execute(e)}#K(){const e=this.#q?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#T={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#z(e){bi.batch((()=>{if(this.#Q&&this.hasListeners()){const t=this.#T.variables,n=this.#T.context;"success"===e?.type?(this.#Q.onSuccess?.(e.data,t,n),this.#Q.onSettled?.(e.data,null,t,n)):"error"===e?.type&&(this.#Q.onError?.(e.error,t,n),this.#Q.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach((e=>{e(this.#T)}))}))}},Ii=Z(void 0),ji=e=>{const t=Lt(Ii);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Bi=({client:e,children:t})=>(Tt((()=>(e.mount(),()=>{e.unmount()})),[e]),Fr(Ii.Provider,{value:e,children:t})),Ni=Z(!1),Ui=()=>Lt(Ni);Ni.Provider;var Hi=Z(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),$i=()=>Lt(Hi);function Wi(e,t){return"function"==typeof e?e(...t):!!e}function zi(){}var qi=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Qi=e=>{Tt((()=>{e.clearReset()}),[e])},Ki=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Wi(n,[e.error,r]),Gi=e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},Yi=(e,t)=>e?.suspense&&t.isPending,Xi=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}));function Zi(e,t){return function(e,t,n){const r=ji(n),i=Ui(),o=$i(),s=r.defaultQueryOptions(e);r.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=i?"isRestoring":"optimistic",Gi(s),qi(s,o),Qi(o);const[a]=Pt((()=>new t(r,s))),l=a.getOptimisticResult(s);if(Qn(Ft((e=>{const t=i?()=>{}:a.subscribe(bi.batchCalls(e));return a.updateResult(),t}),[a,i]),(()=>a.getCurrentResult())),Tt((()=>{a.setOptions(s,{listeners:!1})}),[s,a]),Yi(s,l))throw Xi(s,a,o);if(Ki({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return r.getDefaultOptions().queries?._experimental_afterQuery?.(s,l),s.notifyOnChangeProps?l:a.trackResult(l)}(e,Oi,t)}var Ji,eo,to=b({default:()=>eo}),no=g((()=>{nt(),Ji=/^((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|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)-.*))$/,eo=tt((function(e){return Ji.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))}));no();var ro=eo,io=function(e){return"theme"!==e},oo=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ro:io},so=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},ao=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return tr(t,n,r),yr((function(){return nr(t,n,r)})),null},lo=function e(t,n){var r,i,o=t.__emotion_real===t,s=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var a=so(t,n,o),l=a||oo(s),u=!l("as");return function(){var c=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var h=c.length,p=1;p<h;p++)d.push(c[p],c[0][p])}var f=_r((function(e,t,n){var r=u&&e.as||s,o="",c=[],h=e;if(null==e.theme){for(var p in h={},e)h[p]=e[p];h.theme=Lt(Sr)}"string"==typeof e.className?o=er(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var f=vr(d.concat(c),t.registered,h);o+=t.key+"-"+f.name,void 0!==i&&(o+=" "+i);var m=u&&void 0===a?oo(r):l,v={};for(var g in e)u&&"as"===g||m(g)&&(v[g]=e[g]);return v.className=o,n&&(v.ref=n),C(O,null,C(ao,{cache:t,serialized:f,isStringTag:"string"==typeof r}),C(r,v))}));return f.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=s,f.__emotion_styles=d,f.__emotion_forwardProp=a,Object.defineProperty(f,"toString",{value:function(){return"."+i}}),f.withComponent=function(t,r){return e(t,Yn({},n,r,{shouldForwardProp:so(f,r,!0)})).apply(void 0,d)},f}}.bind();function uo({title:e,titleId:t,...n},r){return C("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C("title",{id:t},e):null,C("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){lo[e]=lo(e)}));var co=Xt(uo);function ho({title:e,titleId:t,...n},r){return C("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C("title",{id:t},e):null,C("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}var po=Xt(ho),fo=lo.td`
|
|
3
|
+
`}),Dr(Ar,{styles:Ir})]}),Br=()=>Lt(Vr),Nr=class extends Error{response;constructor(e,t){super(e),this.response=t}},Ur=async(e,t,n,r)=>{await Hr(e,t,n,r,!0)},Hr=async(e,t,n,r,i)=>{const o=await fetch(e,{method:n,body:r?JSON.stringify(r):void 0,headers:{"content-type":"application/json","x-app-version":"1.4.26245",authorization:`Bearer ${t}`},signal:AbortSignal?.timeout&&AbortSignal.timeout(15e3)});if(!o.ok)throw new Nr(`[API Error] Status: ${o.statusText}. Response: ${await o.text()}`,o);return i?{}:await o.json()},$r=()=>{const e=Br();return{getAllPromotions:Ot((()=>{return t=e.backend,async()=>Hr(new URL(`${t.url}/promoted-benefits/admin/v1.0/promotion`),t.accessToken,"GET");var t}),[e.backend]),createPromotion:Ot((()=>{return t=e.backend,async e=>Ur(new URL(`${t.url}/promoted-benefits/admin/v1.0/promotion`),t.accessToken,"POST",e);var t}),[e.backend]),updatePromotion:Ot((()=>{return t=e.backend,e=>async n=>Ur(new URL(`${t.url}/promoted-benefits/admin/v1.0/promotion/${e}`),t.accessToken,"PUT",n);var t}),[e.backend])}},Wr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},zr="undefined"==typeof window||"Deno"in globalThis;function qr(){}function Qr(e){return"number"==typeof e&&e>=0&&e!==1/0}function Kr(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Gr(e,t){return"function"==typeof e?e(t):e}function Yr(e,t){return"function"==typeof e?e(t):e}function Xr(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s)if(r){if(t.queryHash!==Jr(s,t.options))return!1}else if(!ti(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&((!i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function Zr(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(ei(t.options.mutationKey)!==ei(o))return!1}else if(!ti(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&!(i&&!i(t))}function Jr(e,t){return(t?.queryKeyHashFn||ei)(e)}function ei(e){return JSON.stringify(e,((e,t)=>oi(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function ti(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!ti(e[n],t[n]))))}function ni(e,t){if(e===t)return e;const n=ii(e)&&ii(t);if(n||oi(e)&&oi(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,a=n?[]:{};let l=0;for(let u=0;u<s;u++){const i=n?u:o[u];(!n&&r.includes(i)||n)&&void 0===e[i]&&void 0===t[i]?(a[i]=void 0,l++):(a[i]=ni(e[i],t[i]),a[i]===e[i]&&void 0!==e[i]&&l++)}return i===s&&l===i?e:a}return t}function ri(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function ii(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function oi(e){if(!si(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!si(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function si(e){return"[object Object]"===Object.prototype.toString.call(e)}function ai(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?ni(e,t):t}function li(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ui(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ci=Symbol();function di(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==ci?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var hi=new class extends Wr{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!zr&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},pi=new class extends Wr{#r=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!zr&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return this.#r}};function fi(e){return Math.min(1e3*2**e,3e4)}function mi(e){return"online"!==(e??"online")||pi.isOnline()}var vi=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function gi(e){return e instanceof vi}function yi(e){let t,n,r,i=!1,o=0,s=!1;const a=new Promise(((e,t)=>{n=e,r=t})),l=()=>hi.isFocused()&&("always"===e.networkMode||pi.isOnline())&&e.canRun(),u=()=>mi(e.networkMode)&&e.canRun(),c=r=>{s||(s=!0,e.onSuccess?.(r),t?.(),n(r))},d=n=>{s||(s=!0,e.onError?.(n),t?.(),r(n))},h=()=>new Promise((n=>{t=e=>{(s||l())&&n(e)},e.onPause?.()})).then((()=>{t=void 0,s||e.onContinue?.()})),p=()=>{if(s)return;let t;const n=0===o?e.initialPromise:void 0;try{t=n??e.fn()}catch(r){t=Promise.reject(r)}Promise.resolve(t).then(c).catch((t=>{if(s)return;const n=e.retry??(zr?0:3),r=e.retryDelay??fi,a="function"==typeof r?r(o,t):r,u=!0===n||"number"==typeof n&&o<n||"function"==typeof n&&n(o,t);!i&&u?(o++,e.onFail?.(o,t),function(e){return new Promise((t=>{setTimeout(t,e)}))}(a).then((()=>l()?void 0:h())).then((()=>{i?d(t):p()}))):d(t)}))};return{promise:a,cancel:t=>{s||(d(new vi(t)),e.abort?.())},continue:()=>(t?.(),a),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:u,start:()=>(u()?p():h().then(p),a)}}var bi=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0);const o=r=>{t?e.push(r):i((()=>{n(r)}))};return{batch:o=>{let s;t++;try{s=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return s},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}(),wi=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qr(this.gcTime)&&(this.#i=setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zr?1/0:3e5))}clearGcTimeout(){this.#i&&(clearTimeout(this.#i),this.#i=void 0)}},xi=class extends wi{#o;#s;#a;#l;#u;#c;constructor(e){super(),this.#c=!1,this.#u=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#o=function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#o,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(e){this.options={...this.#u,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#a.remove(this)}setData(e,t){const n=ai(this.state.data,e,this.options);return this.#d({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#d({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#l?.promise;return this.#l?.cancel(e),t?t.then(qr).catch(qr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#o)}isActive(){return this.observers.some((e=>!1!==Yr(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!Kr(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find((e=>e.shouldFetchOnWindowFocus()))?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find((e=>e.shouldFetchOnReconnect()))?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#a.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.#l&&(this.#c?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#c=!0,n.signal)})},i={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=di(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return r(n),this.#c=!1,this.options.persister?this.options.persister(e,n,this):e(n)}};r(i),this.options.behavior?.onFetch(i,this),this.#s=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#d({type:"fetch",meta:i.fetchOptions?.meta});const o=e=>{gi(e)&&e.silent||this.#d({type:"error",error:e}),gi(e)||(this.#a.config.onError?.(e,this),this.#a.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#l=yi({initialPromise:t?.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0!==e){try{this.setData(e)}catch(t){return void o(t)}this.#a.config.onSuccess?.(e,this),this.#a.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1}else o(new Error(`${this.queryHash} data is undefined`))},onError:o,onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}),this.#l.start()}#d(e){this.state=(t=>{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,..._i(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return gi(n)&&n.revert&&this.#s?{...this.#s,fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),bi.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),this.#a.notify({query:this,type:"updated",action:e})}))}};function _i(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:mi(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Si=class extends Wr{constructor(e={}){super(),this.config=e,this.#h=new Map}#h;build(e,t,n){const r=t.queryKey,i=t.queryHash??Jr(r,t);let o=this.get(i);return o||(o=new xi({cache:this,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#h.has(e.queryHash)||(this.#h.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#h.get(e.queryHash);t&&(e.destroy(),t===e&&this.#h.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){bi.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return this.#h.get(e)}getAll(){return[...this.#h.values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Xr(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>Xr(e,t))):t}notify(e){bi.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){bi.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){bi.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},Ei=class extends wi{#p;#f;#l;constructor(e){super(),this.mutationId=e.mutationId,this.#f=e.mutationCache,this.#p=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#p.includes(e)||(this.#p.push(e),this.clearGcTimeout(),this.#f.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#p=this.#p.filter((t=>t!==e)),this.scheduleGc(),this.#f.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#p.length||("pending"===this.state.status?this.scheduleGc():this.#f.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(e){this.#l=yi({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#f.canRun(this)});const t="pending"===this.state.status,n=!this.#l.canStart();try{if(!t){this.#d({type:"pending",variables:e,isPaused:n}),await(this.#f.config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&this.#d({type:"pending",context:t,variables:e,isPaused:n})}const r=await this.#l.start();return await(this.#f.config.onSuccess?.(r,e,this.state.context,this)),await(this.options.onSuccess?.(r,e,this.state.context)),await(this.#f.config.onSettled?.(r,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(r,null,e,this.state.context)),this.#d({type:"success",data:r}),r}catch(r){try{throw await(this.#f.config.onError?.(r,e,this.state.context,this)),await(this.options.onError?.(r,e,this.state.context)),await(this.#f.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,r,e,this.state.context)),r}finally{this.#d({type:"error",error:r})}}finally{this.#f.runNext(this)}}#d(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"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};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"}}})(this.state),bi.batch((()=>{this.#p.forEach((t=>{t.onMutationUpdate(e)})),this.#f.notify({mutation:this,type:"updated",action:e})}))}};var Pi=class extends Wr{constructor(e={}){super(),this.config=e,this.#m=new Map,this.#v=Date.now()}#m;#v;build(e,t,n){const r=new Ei({mutationCache:this,mutationId:++this.#v,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=ki(e),n=this.#m.get(t)??[];n.push(e),this.#m.set(t,n),this.notify({type:"added",mutation:e})}remove(e){const t=ki(e);if(this.#m.has(t)){const n=this.#m.get(t)?.filter((t=>t!==e));n&&(0===n.length?this.#m.delete(t):this.#m.set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){const t=this.#m.get(ki(e))?.find((e=>"pending"===e.state.status));return!t||t===e}runNext(e){return(this.#m.get(ki(e))?.find((t=>t!==e&&t.state.isPaused)))?.continue()??Promise.resolve()}clear(){bi.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...this.#m.values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Zr(t,e)))}findAll(e={}){return this.getAll().filter((t=>Zr(e,t)))}notify(e){bi.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return bi.batch((()=>Promise.all(e.map((e=>e.continue().catch(qr))))))}};function ki(e){return e.options.scope?.id??String(e.mutationId)}function Ti(e){return{onFetch:(t,n)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let n=!1;const u=di(t.options,t.fetchOptions),c=async(e,r,i)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const o={queryKey:t.queryKey,pageParam:r,direction:i?"backward":"forward",meta:t.options.meta};var s;s=o,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",(()=>{n=!0})),t.signal)});const a=await u(o),{maxPages:l}=t.options,c=i?ui:li;return{pages:c(e.pages,a,l),pageParams:c(e.pageParams,r,l)}};if(i&&o.length){const e="backward"===i,t=e?Ai:Ci,n={pages:o,pageParams:s};a=await c(n,t(r,n),e)}else{const t=e??o.length;do{const e=0===l?s[0]??r.initialPageParam:Ci(r,a);if(l>0&&null==e)break;a=await c(a,e),l++}while(l<t)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=u}}}function Ci(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Ai(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Ri=class{#g;#f;#u;#y;#b;#w;#x;#_;constructor(e={}){this.#g=e.queryCache||new Si,this.#f=e.mutationCache||new Pi,this.#u=e.defaultOptions||{},this.#y=new Map,this.#b=new Map,this.#w=0}mount(){this.#w++,1===this.#w&&(this.#x=hi.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#g.onFocus())})),this.#_=pi.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#g.onOnline())})))}unmount(){this.#w--,0===this.#w&&(this.#x?.(),this.#x=void 0,this.#_?.(),this.#_=void 0)}isFetching(e){return this.#g.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#f.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#g.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=this.#g.build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Gr(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.#g.findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#g.get(r.queryHash)?.state.data,o=function(e,t){return"function"==typeof e?e(t):e}(t,i);if(void 0!==o)return this.#g.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return bi.batch((()=>this.#g.findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#g.get(t.queryHash)?.state}removeQueries(e){const t=this.#g;bi.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=this.#g,r={type:"active",...e};return bi.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(r,t))))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=bi.batch((()=>this.#g.findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(qr).catch(qr)}invalidateQueries(e={},t={}){return bi.batch((()=>{if(this.#g.findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)}))}refetchQueries(e={},t){const n={...t,cancelRefetch:t?.cancelRefetch??!0},r=bi.batch((()=>this.#g.findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(qr)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(qr)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#g.build(this,t);return n.isStaleByTime(Gr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(qr).catch(qr)}fetchInfiniteQuery(e){return e.behavior=Ti(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(qr).catch(qr)}ensureInfiniteQueryData(e){return e.behavior=Ti(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return pi.isOnline()?this.#f.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#g}getMutationCache(){return this.#f}getDefaultOptions(){return this.#u}setDefaultOptions(e){this.#u=e}setQueryDefaults(e,t){this.#y.set(ei(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#y.values()];let n={};return t.forEach((t=>{ti(e,t.queryKey)&&(n={...n,...t.defaultOptions})})),n}setMutationDefaults(e,t){this.#b.set(ei(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#b.values()];let n={};return t.forEach((t=>{ti(e,t.mutationKey)&&(n={...n,...t.defaultOptions})})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#u.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Jr(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===ci&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#u.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#g.clear(),this.#f.clear()}},Oi=class extends Wr{constructor(e,t){super(),this.options=t,this.#S=e,this.#E=null,this.bindMethods(),this.setOptions(t)}#S;#P=void 0;#k=void 0;#T=void 0;#C;#A;#E;#R;#O;#F;#L;#D;#M;#V=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#P.addObserver(this),Fi(this.#P,this.options)?this.#I():this.updateResult(),this.#j())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Li(this.#P,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Li(this.#P,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#B(),this.#N(),this.#P.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.#P;if(this.options=this.#S.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Yr(this.options.enabled,this.#P))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#U(),this.#P.setOptions(this.options),n._defaulted&&!ri(this.options,n)&&this.#S.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#P,observer:this});const i=this.hasListeners();i&&Di(this.#P,r,this.options,n)&&this.#I(),this.updateResult(t),!i||this.#P===r&&Yr(this.options.enabled,this.#P)===Yr(n.enabled,this.#P)&&Gr(this.options.staleTime,this.#P)===Gr(n.staleTime,this.#P)||this.#H();const o=this.#$();!i||this.#P===r&&Yr(this.options.enabled,this.#P)===Yr(n.enabled,this.#P)&&o===this.#M||this.#W(o)}getOptimisticResult(e){const t=this.#S.getQueryCache().build(this.#S,e),n=this.createResult(t,e);var r;return r=n,ri(this.getCurrentResult(),r)||(this.#T=n,this.#A=this.options,this.#C=this.#P.state),n}getCurrentResult(){return this.#T}trackResult(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})})),n}trackProp(e){this.#V.add(e)}getCurrentQuery(){return this.#P}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#S.defaultQueryOptions(e),n=this.#S.getQueryCache().build(this.#S,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return this.#I({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#T)))}#I(e){this.#U();let t=this.#P.fetch(this.options,e);return e?.throwOnError||(t=t.catch(qr)),t}#H(){this.#B();const e=Gr(this.options.staleTime,this.#P);if(zr||this.#T.isStale||!Qr(e))return;const t=Kr(this.#T.dataUpdatedAt,e)+1;this.#L=setTimeout((()=>{this.#T.isStale||this.updateResult()}),t)}#$(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#P):this.options.refetchInterval)??!1}#W(e){this.#N(),this.#M=e,!zr&&!1!==Yr(this.options.enabled,this.#P)&&Qr(this.#M)&&0!==this.#M&&(this.#D=setInterval((()=>{(this.options.refetchIntervalInBackground||hi.isFocused())&&this.#I()}),this.#M))}#j(){this.#H(),this.#W(this.#$())}#B(){this.#L&&(clearTimeout(this.#L),this.#L=void 0)}#N(){this.#D&&(clearInterval(this.#D),this.#D=void 0)}createResult(e,t){const n=this.#P,r=this.options,i=this.#T,o=this.#C,s=this.#A,a=e!==n?e.state:this.#k,{state:l}=e;let u,c={...l},d=!1;if(t._optimisticResults){const i=this.hasListeners(),o=!i&&Fi(e,t),s=i&&Di(e,n,t,r);(o||s)&&(c={...c,..._i(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(c.fetchStatus="idle")}let{error:h,errorUpdatedAt:p,status:f}=c;if(t.select&&void 0!==c.data)if(i&&c.data===o?.data&&t.select===this.#R)u=this.#O;else try{this.#R=t.select,u=t.select(c.data),u=ai(i?.data,u,t),this.#O=u,this.#E=null}catch(w){this.#E=w}else u=c.data;if(void 0!==t.placeholderData&&void 0===u&&"pending"===f){let e;if(i?.isPlaceholderData&&t.placeholderData===s?.placeholderData)e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#F?.state.data,this.#F):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#E=null}catch(w){this.#E=w}void 0!==e&&(f="success",u=ai(i?.data,e,t),d=!0)}this.#E&&(h=this.#E,u=this.#O,p=Date.now(),f="error");const m="fetching"===c.fetchStatus,v="pending"===f,g="error"===f,y=v&&m,b=void 0!==u;return{status:f,fetchStatus:c.fetchStatus,isPending:v,isSuccess:"success"===f,isError:g,isInitialLoading:y,isLoading:y,data:u,dataUpdatedAt:c.dataUpdatedAt,error:h,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>a.dataUpdateCount||c.errorUpdateCount>a.errorUpdateCount,isFetching:m,isRefetching:m&&!v,isLoadingError:g&&!b,isPaused:"paused"===c.fetchStatus,isPlaceholderData:d,isRefetchError:g&&b,isStale:Mi(e,t),refetch:this.refetch}}updateResult(e){const t=this.#T,n=this.createResult(this.#P,this.options);if(this.#C=this.#P.state,this.#A=this.options,void 0!==this.#C.data&&(this.#F=this.#P),ri(n,t))return;this.#T=n;const r={};!1!==e?.listeners&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#V.size)return!0;const r=new Set(n??this.#V);return this.options.throwOnError&&r.add("error"),Object.keys(this.#T).some((e=>{const n=e;return this.#T[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.#z({...r,...e})}#U(){const e=this.#S.getQueryCache().build(this.#S,this.options);if(e===this.#P)return;const t=this.#P;this.#P=e,this.#k=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#j()}#z(e){bi.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(this.#T)})),this.#S.getQueryCache().notify({query:this.#P,type:"observerResultsUpdated"})}))}};function Fi(e,t){return function(e,t){return!1!==Yr(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Li(e,t,t.refetchOnMount)}function Li(e,t,n){if(!1!==Yr(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&Mi(e,t)}return!1}function Di(e,t,n,r){return(e!==t||!1===Yr(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&Mi(e,n)}function Mi(e,t){return!1!==Yr(t.enabled,e)&&e.isStaleByTime(Gr(t.staleTime,e))}var Vi=class extends Wr{#S;#T=void 0;#q;#Q;constructor(e,t){super(),this.#S=e,this.setOptions(t),this.bindMethods(),this.#K()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#S.defaultMutationOptions(e),ri(this.options,t)||this.#S.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#q,observer:this}),t?.mutationKey&&this.options.mutationKey&&ei(t.mutationKey)!==ei(this.options.mutationKey)?this.reset():"pending"===this.#q?.state.status&&this.#q.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#q?.removeObserver(this)}onMutationUpdate(e){this.#K(),this.#z(e)}getCurrentResult(){return this.#T}reset(){this.#q?.removeObserver(this),this.#q=void 0,this.#K(),this.#z()}mutate(e,t){return this.#Q=t,this.#q?.removeObserver(this),this.#q=this.#S.getMutationCache().build(this.#S,this.options),this.#q.addObserver(this),this.#q.execute(e)}#K(){const e=this.#q?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#T={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#z(e){bi.batch((()=>{if(this.#Q&&this.hasListeners()){const t=this.#T.variables,n=this.#T.context;"success"===e?.type?(this.#Q.onSuccess?.(e.data,t,n),this.#Q.onSettled?.(e.data,null,t,n)):"error"===e?.type&&(this.#Q.onError?.(e.error,t,n),this.#Q.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach((e=>{e(this.#T)}))}))}},Ii=Z(void 0),ji=e=>{const t=Lt(Ii);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Bi=({client:e,children:t})=>(Tt((()=>(e.mount(),()=>{e.unmount()})),[e]),Fr(Ii.Provider,{value:e,children:t})),Ni=Z(!1),Ui=()=>Lt(Ni);Ni.Provider;var Hi=Z(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),$i=()=>Lt(Hi);function Wi(e,t){return"function"==typeof e?e(...t):!!e}function zi(){}var qi=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Qi=e=>{Tt((()=>{e.clearReset()}),[e])},Ki=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Wi(n,[e.error,r]),Gi=e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},Yi=(e,t)=>e?.suspense&&t.isPending,Xi=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}));function Zi(e,t){return function(e,t,n){const r=ji(n),i=Ui(),o=$i(),s=r.defaultQueryOptions(e);r.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=i?"isRestoring":"optimistic",Gi(s),qi(s,o),Qi(o);const[a]=Pt((()=>new t(r,s))),l=a.getOptimisticResult(s);if(Qn(Ft((e=>{const t=i?()=>{}:a.subscribe(bi.batchCalls(e));return a.updateResult(),t}),[a,i]),(()=>a.getCurrentResult())),Tt((()=>{a.setOptions(s,{listeners:!1})}),[s,a]),Yi(s,l))throw Xi(s,a,o);if(Ki({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return r.getDefaultOptions().queries?._experimental_afterQuery?.(s,l),s.notifyOnChangeProps?l:a.trackResult(l)}(e,Oi,t)}var Ji,eo,to=b({default:()=>eo}),no=g((()=>{nt(),Ji=/^((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|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)-.*))$/,eo=tt((function(e){return Ji.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))}));no();var ro=eo,io=function(e){return"theme"!==e},oo=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ro:io},so=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},ao=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return tr(t,n,r),yr((function(){return nr(t,n,r)})),null},lo=function e(t,n){var r,i,o=t.__emotion_real===t,s=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var a=so(t,n,o),l=a||oo(s),u=!l("as");return function(){var c=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var h=c.length,p=1;p<h;p++)d.push(c[p],c[0][p])}var f=_r((function(e,t,n){var r=u&&e.as||s,o="",c=[],h=e;if(null==e.theme){for(var p in h={},e)h[p]=e[p];h.theme=Lt(Sr)}"string"==typeof e.className?o=er(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var f=vr(d.concat(c),t.registered,h);o+=t.key+"-"+f.name,void 0!==i&&(o+=" "+i);var m=u&&void 0===a?oo(r):l,v={};for(var g in e)u&&"as"===g||m(g)&&(v[g]=e[g]);return v.className=o,n&&(v.ref=n),C(O,null,C(ao,{cache:t,serialized:f,isStringTag:"string"==typeof r}),C(r,v))}));return f.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=s,f.__emotion_styles=d,f.__emotion_forwardProp=a,Object.defineProperty(f,"toString",{value:function(){return"."+i}}),f.withComponent=function(t,r){return e(t,Yn({},n,r,{shouldForwardProp:so(f,r,!0)})).apply(void 0,d)},f}}.bind();function uo({title:e,titleId:t,...n},r){return C("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C("title",{id:t},e):null,C("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){lo[e]=lo(e)}));var co=Xt(uo);function ho({title:e,titleId:t,...n},r){return C("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C("title",{id:t},e):null,C("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}var po=Xt(ho),fo=lo.td`
|
|
4
4
|
${{whiteSpace:"nowrap",paddingTop:"1rem",paddingBottom:"1rem",paddingLeft:"1rem",paddingRight:"0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}}
|
|
5
5
|
`,mo=lo.td`
|
|
6
6
|
${{whiteSpace:"nowrap",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}}
|