@tokenflight/swap 0.3.0 → 0.3.1
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/ReceiveComponent-CG4ZOm4X.js +1 -0
- package/dist/SwapComponent-r6gFMQDK.js +1 -0
- package/dist/{bridge-BufC2_tK.js → bridge-BaH05V0t.js} +1 -1
- package/dist/bridge.js +1 -1
- package/dist/{dist-CsBuWseE.js → dist-7BXv_hiJ.js} +1 -1
- package/dist/en-US-CA6Sa-oZ.js +1 -0
- package/dist/{errors-DeB4WVzG.js → errors-BH9xS7WI.js} +1 -1
- package/dist/iframe-entry.js +2 -2
- package/dist/iframe.d.ts +1 -1
- package/dist/iframe.js +2 -1
- package/dist/ja-JP-dq1hxi1o.js +1 -0
- package/dist/ko-KR-ixklPQrK.js +1 -0
- package/dist/rank-offers-C1sqecwN.js +1 -0
- package/dist/{register-widget-D6m_f_gp.js → register-widget-BNCrsb0V.js} +1 -1
- package/dist/{shared.module-Bs-BN_nM.js → shared.module-BORGC5lt.js} +1 -1
- package/dist/swap.css +1 -1
- package/dist/tokenflight-swap.d.ts +7 -1
- package/dist/tokenflight-swap.js +1 -1
- package/dist/tokenflight-swap.umd.cjs +10 -10
- package/dist/usePageRouter-C9px48pG.js +1 -0
- package/dist/widget-DKrK3hCc.js +2 -0
- package/dist/widget.d.ts +7 -1
- package/dist/widget.js +1 -1
- package/dist/zh-CN-Qnc6ozkb.js +1 -0
- package/dist/zh-TW-CG-ua9cn.js +1 -0
- package/package.json +2 -2
- package/dist/ReceiveComponent-YtkLLaLd.js +0 -1
- package/dist/SwapComponent-CBJpgat4.js +0 -1
- package/dist/en-US-BsEBXsff.js +0 -1
- package/dist/ja-JP-DckpHLDh.js +0 -1
- package/dist/ko-KR-jzHfArkK.js +0 -1
- package/dist/rank-offers-4N4cmoQy.js +0 -1
- package/dist/usePageRouter-BI7v3BwA.js +0 -1
- package/dist/widget-B0OLriHf.js +0 -2
- package/dist/zh-CN-Cm_ni5eM.js +0 -1
- package/dist/zh-TW-BnoGGI9_.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as e,_ as t,m as n,u as r,v as i}from"./solid-DqvEpdeb.js";import{S as a,a as o,b as s,c,d as l,f as u,g as d,h as f,i as p,l as m,m as h,n as g,o as _,p as v,r as y,s as
|
|
1
|
+
import{S as e,_ as t,m as n,u as r,v as i}from"./solid-DqvEpdeb.js";import{S as a,a as o,b as s,c,d as l,f as u,g as d,h as f,i as p,l as m,m as h,n as g,o as _,p as v,r as y,s as b,t as x,u as S,v as C,y as ee}from"./register-defaults-BOb3wgfD.js";import{s as w}from"./dist-7BXv_hiJ.js";import{a as T,i as E,n as D,r as O,t as k}from"./classPrivateFieldSet2-DmR3eaHe.js";import{t as A}from"./errors-BH9xS7WI.js";import{d as j,f as te,g as M,i as N,l as P,r as F}from"./shared.module-BORGC5lt.js";import{a as I,n as L,o as R,r as z,t as B}from"./theme-B6YtpkRW.js";import{n as V,t as H}from"./widget-DKrK3hCc.js";function ne(e){if(typeof e==`string`){let t=document.querySelector(e);if(!t)throw new w(A.ELEMENT_NOT_FOUND,`Element not found: ${e}`);return t}return e}function re(e,t){var n,i,a,o,s,c,l,u;return n=new WeakMap,i=new WeakMap,a=new WeakMap,o=new WeakMap,s=new WeakMap,c=new WeakMap,l=new WeakMap,u=new WeakSet,class{constructor(e){T(this,u),E(this,n,null),E(this,i,null),E(this,a,void 0),E(this,o,null),E(this,s,void 0),E(this,c,void 0),E(this,l,void 0),k(a,this,ne(e.container)),k(s,this,e.config),k(c,this,e.walletAdapter),k(l,this,e.callbacks)}initialize(){D(n,this)&&this.destroy();let t=document.createElement(`div`);D(a,this).appendChild(t);let i=t.attachShadow({mode:`open`});k(o,this,i);let p=document.createElement(`style`),m=D(s,this).theme??`light`;O(u,this,d).call(this,p,m),i.appendChild(p),O(u,this,f).call(this,p);let h=document.createElement(`div`);i.appendChild(h),D(s,this).customColors&&B(t,D(s,this).customColors);let g=D(s,this),_=D(c,this),v=D(l,this);k(n,this,j(()=>r(N,{client:F,get children(){return e(g,_,v)}}),h))}destroy(){D(i,this)&&(D(i,this).call(this),k(i,this,null)),D(n,this)&&(D(n,this).call(this),k(n,this,null)),k(o,this,null),D(a,this).innerHTML=``}setTheme(e){k(s,this,{...D(s,this),theme:e});let t=D(o,this);if(t){let n=t.querySelector(`style`);n&&(O(u,this,d).call(this,n,e),O(u,this,f).call(this,n))}}setCustomColors(e){let t=D(o,this)?.host;t&&B(t,e)}};function d(e,n){let r=(n===`auto`?typeof window<`u`&&window.matchMedia?.(`(prefers-color-scheme: dark)`).matches===!0:n===`dark`)?z:I;e.textContent=`${t()}\n:host { ${L(r)} }`}function f(e){D(i,this)&&(D(i,this).call(this),k(i,this,null)),D(s,this).theme===`auto`&&k(i,this,R(n=>{e.textContent=`${t()}\n:host { ${L(n)} }`}))}}var U=re((e,t,n)=>r(V,{config:e,walletAdapter:t,callbacks:n}),()=>H);function W(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return t[n]=Object.assign({},r),X(r.value)&&!ae(r.value)&&!Array.isArray(r.value)&&(t[n].value=Object.assign({},r.value)),Array.isArray(r.value)&&(t[n].value=r.value.slice(0)),t},{})}function G(e){return e?Object.keys(e).reduce((t,n)=>{let r=e[n];return t[n]=X(r)&&`value`in r?r:{value:r},t[n].attribute||(t[n].attribute=ie(n)),t[n].parse=`parse`in t[n]?t[n].parse:typeof t[n].value!=`string`,t},{}):{}}function K(e){return Object.keys(e).reduce((t,n)=>(t[n]=e[n].value,t),{})}function q(e,t){let n=W(t);return Object.keys(t).forEach(t=>{let r=n[t],i=e.getAttribute(r.attribute),a=e[t];i!=null&&(r.value=r.parse?J(i):i),a!=null&&(r.value=Array.isArray(a)?a.slice(0):a),r.reflect&&Y(e,r.attribute,r.value,!!r.parse),Object.defineProperty(e,t,{get(){return r.value},set(e){let n=r.value;r.value=e,r.reflect&&Y(this,r.attribute,r.value,!!r.parse);for(let r=0,i=this.__propertyChangedCallbacks.length;r<i;r++)this.__propertyChangedCallbacks[r](t,e,n)},enumerable:!0,configurable:!0})}),n}function J(e){if(e)try{return JSON.parse(e)}catch{return e}}function Y(e,t,n,r){if(n==null||n===!1)return e.removeAttribute(t);let i=r?JSON.stringify(n):n;e.__updating[t]=!0,i===`true`&&(i=``),e.setAttribute(t,i),Promise.resolve().then(()=>delete e.__updating[t])}function ie(e){return e.replace(/\.?([A-Z]+)/g,(e,t)=>`-`+t.toLowerCase()).replace(`_`,`-`).replace(/^-/,``)}function X(e){return e!=null&&(typeof e==`object`||typeof e==`function`)}function ae(e){return Object.prototype.toString.call(e)===`[object Function]`}function oe(e){return typeof e==`function`&&e.toString().indexOf(`class`)===0}var Z;function se(e,t){let n=Object.keys(t);return class extends e{static get observedAttributes(){return n.map(e=>t[e].attribute)}constructor(){super(),this.__initialized=!1,this.__released=!1,this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props={};for(let e of n)this[e]=void 0}connectedCallback(){if(this.__initialized)return;this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props=q(this,t);let e=K(this.props),n=this.Component,r=Z;try{Z=this,this.__initialized=!0,oe(n)?new n(e,{element:this}):n(e,{element:this})}finally{Z=r}}async disconnectedCallback(){if(await Promise.resolve(),this.isConnected)return;this.__propertyChangedCallbacks.length=0;let e=null;for(;e=this.__releaseCallbacks.pop();)e(this);delete this.__initialized,this.__released=!0}attributeChangedCallback(e,n,r){if(this.__initialized&&!this.__updating[e]&&(e=this.lookupProp(e),e in t)){if(r==null&&!this[e])return;this[e]=t[e].parse?J(r):r}}lookupProp(e){if(t)return n.find(n=>e===n||e===t[n].attribute)}get renderRoot(){return this.shadowRoot||this.attachShadow({mode:`open`})}addReleaseCallback(e){this.__releaseCallbacks.push(e)}addPropertyChangedCallback(e){this.__propertyChangedCallbacks.push(e)}}}function ce(e,t={},n={}){let{BaseElement:r=HTMLElement,extension:i,customElements:a=window.customElements}=n;return n=>{if(!e)throw Error(`tag is required to register a Component`);let o=a.get(e);return o?(o.prototype.Component=n,o):(o=se(r,G(t)),o.prototype.Component=n,o.prototype.registeredTag=e,a.define(e,o,i),o)}}function le(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let[a,o]=i(e[t[r]]);Object.defineProperty(n,t[r],{get:a,set(e){o(()=>e)}})}return n}function Q(e){if(e.assignedSlot&&e.assignedSlot._$owner)return e.assignedSlot._$owner;let t=e.parentNode;for(;t&&!t._$owner&&!(t.assignedSlot&&t.assignedSlot._$owner);)t=t.parentNode;return t&&t.assignedSlot?t.assignedSlot._$owner:e._$owner}function ue(e){return(n,r)=>{let{element:i}=r;return t(t=>{let a=le(n);i.addPropertyChangedCallback((e,t)=>a[e]=t),i.addReleaseCallback(()=>{i.renderRoot.textContent=``,t()});let o=e(a,r);return P(i.renderRoot,o)},Q(i))}}function de(e,t,n){return arguments.length===2&&(n=t,t={}),ce(e,t)(ue(n))}var fe=M(`<style>`);function pe(e){if(!e)return``;let t=e.trim();if(t.startsWith(`[`))try{let e=JSON.parse(t);if(Array.isArray(e))return e}catch{}return t}function $(e){if(e)try{let t=JSON.parse(e.trim());if(Array.isArray(t))return t}catch{}}function me(e){if(e)try{let t=JSON.parse(e.trim());if(Array.isArray(t))return t}catch{}}function he(e){if(e)try{let t=JSON.parse(e.trim());if(typeof t==`object`&&t&&!Array.isArray(t)&&Object.values(t).every(e=>typeof e==`string`))return t}catch{}}function ge(e){return e===`hidden`||e===`visible`?e:void 0}function _e(t){t&&x(t),!(typeof customElements>`u`)&&(customElements.get(`tokenflight-widget`)||de(`tokenflight-widget`,{"api-endpoint":``,"fiat-api-endpoint":``,"to-token":``,"from-token":``,"trade-type":``,amount:``,recipient:``,icon:``,"lock-from-token":!1,"lock-to-token":!1,"fiat-currency":``,methods:``,"default-pay-method":``,"from-tokens":``,"to-tokens":``,"title-text":``,"title-image":``,theme:``,locale:``,"csp-nonce":``,"hide-title":!1,"hide-powered-by":!1,"hide-provider":!1,"quote-card":``,"no-background":!1,"no-border":!1,"recipient-editable":!1,"refund-to":``,"rpc-overrides":``,referrer:``,"referrer-fee-bps":``},(t,{element:x})=>{let w={get apiEndpoint(){return t[`api-endpoint`]||y()||void 0},get fiatApiEndpoint(){return t[`fiat-api-endpoint`]||_()||void 0},get toToken(){return pe(t[`to-token`])},get fromToken(){return t[`from-token`]||void 0},get tradeType(){return t[`trade-type`]||void 0},get amount(){return t.amount||void 0},get recipient(){return t.recipient||void 0},get recipientEditable(){return s(t[`recipient-editable`])},get refundTo(){return t[`refund-to`]||void 0},get icon(){return t.icon||void 0},get lockFromToken(){return s(t[`lock-from-token`])},get lockToToken(){return s(t[`lock-to-token`])},get fiatCurrency(){return t[`fiat-currency`]||void 0},get methods(){return me(t.methods)??l()},get defaultPayMethod(){return t[`default-pay-method`]||void 0},get fromTokens(){return $(t[`from-tokens`])},get toTokens(){return $(t[`to-tokens`])},get titleText(){return t[`title-text`]||void 0},get titleImageUrl(){return t[`title-image`]||void 0},get theme(){return t.theme||C()||`light`},get locale(){return t.locale||S()||`en-US`},get hideTitle(){return g(x,t[`hide-title`],`hide-title`)?s(t[`hide-title`])??!1:m()},get hidePoweredBy(){return g(x,t[`hide-powered-by`],`hide-powered-by`)?s(t[`hide-powered-by`])??!1:b()},get hideProvider(){return g(x,t[`hide-provider`],`hide-provider`)?s(t[`hide-provider`])??!1:c()},get quoteCard(){return ge(t[`quote-card`])},get noBackground(){return g(x,t[`no-background`],`no-background`)?s(t[`no-background`])??!1:u()},get noBorder(){return g(x,t[`no-border`],`no-border`)?s(t[`no-border`])??!1:v()},get rpcOverrides(){return he(t[`rpc-overrides`])??d()},get referrer(){return T().referrer},get referrerFeeBps(){return T().referrerFeeBps}},T=()=>a(t.referrer||h(),t[`referrer-fee-bps`]===``?f():Number(t[`referrer-fee-bps`]),x),E=t[`csp-nonce`]||void 0,[D,O]=i(typeof window<`u`&&window.matchMedia?.(`(prefers-color-scheme: dark)`).matches===!0);e(R(e=>{O(e===z)}));let k=x.__customColors,A=n(()=>{let e=t.theme||C()||`light`,n=(e===`auto`?D():e===`dark`)?z:I,r=o();return`${H}\n:host { ${L(r||k?{...n,...r,...k}:n)} }`}),j=x.__walletAdapter,M=x.__callbacks;return[(()=>{var e=fe();return te(e,`nonce`,E),P(e,A),e})(),r(N,{client:F,get children(){return r(V,{config:w,get walletAdapter(){return j??ee()},get callbacks(){return M?{...p(),...M}:p()}})}})]}))}export{U as n,_e as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,E as t,S as n,T as r,_ as i,d as a,f as o,g as s,h as c,l,m as u,n as d,t as f,u as p,v as m,w as h,x as ee,y as g}from"./solid-DqvEpdeb.js";import{a as _,i as v,n as y,r as b,t as x}from"./classPrivateFieldSet2-DmR3eaHe.js";var S=new Set([`className`,`value`,`readOnly`,`noValidate`,`formNoValidate`,`isMap`,`noModule`,`playsInline`,`adAuctionHeaders`,`allowFullscreen`,`browsingTopics`,`defaultChecked`,`defaultMuted`,`defaultSelected`,`disablePictureInPicture`,`disableRemotePlayback`,`preservesPitch`,`shadowRootClonable`,`shadowRootCustomElementRegistry`,`shadowRootDelegatesFocus`,`shadowRootSerializable`,`sharedStorageWritable`,...`allowfullscreen.async.alpha.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.hidden.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.adauctionheaders.browsingtopics.credentialless.defaultchecked.defaultmuted.defaultselected.defer.disablepictureinpicture.disableremoteplayback.preservespitch.shadowrootclonable.shadowrootcustomelementregistry.shadowrootdelegatesfocus.shadowrootserializable.sharedstoragewritable`.split(`.`)]),te=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),ne=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),re=Object.assign(Object.create(null),{class:`className`,novalidate:{$:`noValidate`,FORM:1},formnovalidate:{$:`formNoValidate`,BUTTON:1,INPUT:1},ismap:{$:`isMap`,IMG:1},nomodule:{$:`noModule`,SCRIPT:1},playsinline:{$:`playsInline`,VIDEO:1},readonly:{$:`readOnly`,INPUT:1,TEXTAREA:1},adauctionheaders:{$:`adAuctionHeaders`,IFRAME:1},allowfullscreen:{$:`allowFullscreen`,IFRAME:1},browsingtopics:{$:`browsingTopics`,IMG:1},defaultchecked:{$:`defaultChecked`,INPUT:1},defaultmuted:{$:`defaultMuted`,AUDIO:1,VIDEO:1},defaultselected:{$:`defaultSelected`,OPTION:1},disablepictureinpicture:{$:`disablePictureInPicture`,VIDEO:1},disableremoteplayback:{$:`disableRemotePlayback`,AUDIO:1,VIDEO:1},preservespitch:{$:`preservesPitch`,AUDIO:1,VIDEO:1},shadowrootclonable:{$:`shadowRootClonable`,TEMPLATE:1},shadowrootdelegatesfocus:{$:`shadowRootDelegatesFocus`,TEMPLATE:1},shadowrootserializable:{$:`shadowRootSerializable`,TEMPLATE:1},sharedstoragewritable:{$:`sharedStorageWritable`,IFRAME:1,IMG:1}});function ie(e,t){let n=re[e];return typeof n==`object`?n[t]?n.$:void 0:n}var ae=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),oe=new Set(`altGlyph.altGlyphDef.altGlyphItem.animate.animateColor.animateMotion.animateTransform.circle.clipPath.color-profile.cursor.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.font.font-face.font-face-format.font-face-name.font-face-src.font-face-uri.foreignObject.g.glyph.glyphRef.hkern.image.line.linearGradient.marker.mask.metadata.missing-glyph.mpath.path.pattern.polygon.polyline.radialGradient.rect.set.stop.svg.switch.symbol.text.textPath.tref.tspan.use.view.vkern`.split(`.`)),se={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},ce=e=>u(()=>e());function le(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null)if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&!((d=l.get(t[c]))==null||d!==r+u);)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++;else t[o++].remove()}}}var ue=`_$DX_DELEGATE`;function de(e,t,n,r={}){let a;return i(r=>{a=r,t===document?e():we(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{a(),t.textContent=``}}function fe(e,n,r,i){let a,o=()=>{let t=i?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,r?t.content.firstChild.firstChild:i?t.firstChild:t.content.firstChild},s=n?()=>t(()=>document.importNode(a||(a=o()),!0)):()=>(a||(a=o())).cloneNode(!0);return s.cloneNode=s,s}function pe(e,t=window.document){let n=t[ue]||(t[ue]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,Ae))}}function me(e,t,n){C(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function he(e,t,n,r){C(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function ge(e,t,n){C(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function _e(e,t){C(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function ve(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function ye(e,t,n={}){let r=Object.keys(t||{}),i=Object.keys(n),a,o;for(a=0,o=i.length;a<o;a++){let r=i[a];!r||r===`undefined`||t[r]||(Oe(e,r,!1),delete n[r])}for(a=0,o=r.length;a<o;a++){let i=r[a],o=!!t[i];!i||i===`undefined`||n[i]===o||!o||(Oe(e,i,!0),n[i]=o)}return n}function be(e,t,n){if(!t)return n?me(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||(n={}),t||(t={});let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function xe(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function Se(e,t={},n,r){let i={};return r||c(()=>i.children=je(e,t.children,i.children)),c(()=>typeof t.ref==`function`&&Ce(t.ref,e)),c(()=>Te(e,t,n,!0,i,!0)),i}function Ce(e,n,r){return t(()=>e(n,r))}function we(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return je(e,t,r,n);c(r=>je(e,t(),r,n),r)}function Te(e,t,n,r,i={},a=!1){t||(t={});for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=ke(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||je(e,t.children);continue}let s=t[o];i[o]=ke(e,o,s,i[o],n,a,t)}}function Ee(e){let t,n;return!C()||!(t=h.registry.get(n=Fe()))?e():(h.completed&&h.completed.add(t),h.registry.delete(n),t)}function C(e){return!!h.context&&!h.done&&(!e||e.isConnected)}function De(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function Oe(e,t,n){let r=t.trim().split(/\s+/);for(let t=0,i=r.length;t<i;t++)e.classList.toggle(r[t],n)}function ke(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return be(e,n,r);if(t===`classList`)return ye(e,n,r);if(n===r)return r;if(t===`ref`)a||n(e);else if(t.slice(0,3)===`on:`){let i=t.slice(3);r&&e.removeEventListener(i,r,typeof r!=`function`&&r),n&&e.addEventListener(i,n,typeof n!=`function`&&n)}else if(t.slice(0,10)===`oncapture:`){let i=t.slice(10);r&&e.removeEventListener(i,r,!0),n&&e.addEventListener(i,n,!0)}else if(t.slice(0,2)===`on`){let i=t.slice(2).toLowerCase(),a=ae.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(ve(e,i,n,a),a&&pe([i]))}else if(t.slice(0,5)===`attr:`)me(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)ge(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=te.has(t))||!i&&((u=ie(t,e.tagName))||(c=S.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(C(e))return n;t===`class`||t===`className`?_e(e,n):s&&!c&&!l?e[De(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&se[t.split(`:`)[0]];r?he(e,r,t,n):me(e,ne[t]||t,n)}return n}function Ae(e){if(h.registry&&h.events&&h.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,a=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),o=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&a(t.host),!0},s=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),h.registry&&!h.done&&(h.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();a(n[0]);for(let e=0;e<n.length-2&&(t=n[e],o());e++){if(t._$host){t=t._$host,s();break}if(t.parentNode===i)break}}else s();a(r)}function je(e,t,n,r,i){let a=C(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=Pe(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||o===`boolean`){if(a)return n;n=Pe(e,n,r)}else if(o===`function`)return c(()=>{let i=t();for(;typeof i==`function`;)i=i();n=je(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],l=n&&Array.isArray(n);if(Me(o,t,n,i))return c(()=>n=je(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=Pe(e,n,r),s)return n}else l?n.length===0?Ne(e,o,r):le(e,n,o):(n&&Pe(e),Ne(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=Pe(e,n,r,t);Pe(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function Me(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(!(o==null||o===!0||o===!1))if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=Me(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=Me(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0;else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return i}function Ne(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function Pe(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}function Fe(){return h.getNextContextId()}var Ie=`http://www.w3.org/2000/svg`;function Le(e,t=!1,n=void 0){return t?document.createElementNS(Ie,e):document.createElement(e,{is:n})}function Re(e,n){let r=u(e);return u(()=>{let e=r();switch(typeof e){case`function`:return t(()=>e(n));case`string`:let r=oe.has(e),i=h.context?Ee():Le(e,r,t(()=>n.is));return Se(i,n,r),i}})}function ze(e){let[,t]=r(e,[`component`]);return Re(()=>e.component,t)}var Be=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(){}},w,Ve,He={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ue=new(w=new WeakMap,Ve=new WeakMap,class{constructor(){v(this,w,He),v(this,Ve,!1)}setTimeoutProvider(e){process.env.NODE_ENV!==`production`&&y(Ve,this)&&y(w,this),x(w,this,e),process.env.NODE_ENV!==`production`&&x(Ve,this,!1)}setTimeout(e,t){return process.env.NODE_ENV!==`production`&&x(Ve,this,!0),y(w,this).setTimeout(e,t)}clearTimeout(e){y(w,this).clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!==`production`&&x(Ve,this,!0),y(w,this).setInterval(e,t)}clearInterval(e){y(w,this).clearInterval(e)}});function We(e){setTimeout(e,0)}var Ge=typeof window>`u`||`Deno`in globalThis;function T(){}function Ke(e,t){return typeof e==`function`?e(t):e}function qe(e){return typeof e==`number`&&e>=0&&e!==1/0}function Je(e,t){return Math.max(e+(t||0)-Date.now(),0)}function E(e,t){return typeof e==`function`?e(t):e}function D(e,t){return typeof e==`function`?e(t):e}function Ye(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Ze(o,t.options))return!1}else if(!$e(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Xe(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Qe(t.options.mutationKey)!==Qe(a))return!1}else if(!$e(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ze(e,t){return(t?.queryKeyHashFn||Qe)(e)}function Qe(e){return JSON.stringify(e,(e,t)=>it(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function $e(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>$e(e[n],t[n])):!1}var et=Object.prototype.hasOwnProperty;function tt(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=rt(e)&&rt(t);if(!r&&!(it(e)&&it(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:et.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=tt(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function nt(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function rt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function it(e){if(!at(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!at(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function at(e){return Object.prototype.toString.call(e)===`[object Object]`}function ot(e){return new Promise(t=>{Ue.setTimeout(t,e)})}function st(e,t,n){if(typeof n.structuralSharing==`function`)return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!==`production`)try{return tt(e,t)}catch(e){throw e}return tt(e,t)}return t}function ct(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function lt(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ut=Symbol();function dt(e,t){return process.env.NODE_ENV!==`production`&&e.queryFn,!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ut?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ft(e,t){return typeof e==`function`?e(...t):!!e}function pt(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??(i=t()),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var mt,O,ht,gt=new(mt=new WeakMap,O=new WeakMap,ht=new WeakMap,class extends Be{constructor(){super(),v(this,mt,void 0),v(this,O,void 0),v(this,ht,void 0),x(ht,this,e=>{if(!Ge&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}})}onSubscribe(){y(O,this)||this.setEventListener(y(ht,this))}onUnsubscribe(){this.hasListeners()||(y(O,this)?.call(this),x(O,this,void 0))}setEventListener(e){x(ht,this,e),y(O,this)?.call(this),x(O,this,e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()}))}setFocused(e){y(mt,this)!==e&&(x(mt,this,e),this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof y(mt,this)==`boolean`?y(mt,this):globalThis.document?.visibilityState!==`hidden`}});function _t(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}function vt(e){let t;if(e.then(e=>(t=e,e),T)?.catch(T),t!==void 0)return{data:t}}function yt(e){return e}function bt(e,t,n){if(typeof t!=`object`||!t)return;let r=e.getMutationCache(),i=e.getQueryCache(),a=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??yt,o=t.mutations||[],s=t.queries||[];o.forEach(({state:t,...i})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...i},t)}),s.forEach(({queryKey:t,state:r,queryHash:o,meta:s,promise:c,dehydratedAt:l})=>{let u=c?vt(c):void 0,d=r.data===void 0?u?.data:r.data,f=d===void 0?d:a(d),p=i.get(o),m=p?.state.status===`pending`,h=p?.state.fetchStatus===`fetching`;if(p){let e=u&&l!==void 0&&l>p.state.dataUpdatedAt;if(r.dataUpdatedAt>p.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=r;p.setState({...t,data:f})}}else p=i.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:t,queryHash:o,meta:s},{...r,data:f,fetchStatus:`idle`,status:f===void 0?r.status:`success`});c&&!m&&!h&&(l===void 0||l>p.state.dataUpdatedAt)&&p.fetch(void 0,{initialPromise:Promise.resolve(c).then(a)}).catch(T)})}var xt=We;function St(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=xt,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var k=St(),Ct,A,wt,Tt=new(Ct=new WeakMap,A=new WeakMap,wt=new WeakMap,class extends Be{constructor(){super(),v(this,Ct,!0),v(this,A,void 0),v(this,wt,void 0),x(wt,this,e=>{if(!Ge&&window.addEventListener){let 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(){y(A,this)||this.setEventListener(y(wt,this))}onUnsubscribe(){this.hasListeners()||(y(A,this)?.call(this),x(A,this,void 0))}setEventListener(e){x(wt,this,e),y(A,this)?.call(this),x(A,this,e(this.setOnline.bind(this)))}setOnline(e){y(Ct,this)!==e&&(x(Ct,this,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return y(Ct,this)}});function Et(e){return Math.min(1e3*2**e,3e4)}function Dt(e){return(e??`online`)===`online`?Tt.isOnline():!0}var Ot=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function kt(e){let t=!1,n=0,r,i=_t(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Ot(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>gt.isFocused()&&(e.networkMode===`always`||Tt.isOnline())&&e.canRun(),u=()=>Dt(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Ge?0:3),o=e.retryDelay??Et,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),ot(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var At,jt=(At=new WeakMap,class{constructor(){v(this,At,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qe(this.gcTime)&&x(At,this,Ue.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ge?1/0:300*1e3))}clearGcTimeout(){y(At,this)&&(Ue.clearTimeout(y(At,this)),x(At,this,void 0))}}),Mt,Nt,j,Pt,M,Ft,It,N,Lt=(Mt=new WeakMap,Nt=new WeakMap,j=new WeakMap,Pt=new WeakMap,M=new WeakMap,Ft=new WeakMap,It=new WeakMap,N=new WeakSet,class extends jt{constructor(e){super(),_(this,N),v(this,Mt,void 0),v(this,Nt,void 0),v(this,j,void 0),v(this,Pt,void 0),v(this,M,void 0),v(this,Ft,void 0),v(this,It,void 0),x(It,this,!1),x(Ft,this,e.defaultOptions),this.setOptions(e.options),this.observers=[],x(Pt,this,e.client),x(j,this,y(Pt,this).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,x(Mt,this,Bt(this.options)),this.state=e.state??y(Mt,this),this.scheduleGc()}get meta(){return this.options.meta}get promise(){return y(M,this)?.promise}setOptions(e){if(this.options={...y(Ft,this),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Bt(this.options);e.data!==void 0&&(this.setState(zt(e.data,e.dataUpdatedAt)),x(Mt,this,e))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&y(j,this).remove(this)}setData(e,t){let n=st(this.state.data,e,this.options);return b(N,this,P).call(this,{data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){b(N,this,P).call(this,{type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=y(M,this)?.promise;return y(M,this)?.cancel(e),t?t.then(T).catch(T):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(Mt,this))}isActive(){return this.observers.some(e=>D(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ut||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>E(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Je(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),y(M,this)?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),y(M,this)?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),y(j,this).notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(y(M,this)&&(y(It,this)?y(M,this).cancel({revert:!0}):y(M,this).cancelRetry()),this.scheduleGc()),y(j,this).notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||b(N,this,P).call(this,{type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&y(M,this)?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(y(M,this))return y(M,this).continueRetry(),y(M,this).promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}process.env.NODE_ENV!==`production`&&Array.isArray(this.options.queryKey);let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(x(It,this,!0),n.signal)})},i=()=>{let e=dt(this.options,t),n=(()=>{let e={client:y(Pt,this),queryKey:this.queryKey,meta:this.meta};return r(e),e})();return x(It,this,!1),this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:y(Pt,this),state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),x(Nt,this,this.state),(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&b(N,this,P).call(this,{type:`fetch`,meta:a.fetchOptions?.meta}),x(M,this,kt({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Ot&&e.revert&&this.setState({...y(Nt,this),fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{b(N,this,P).call(this,{type:`failed`,failureCount:e,error:t})},onPause:()=>{b(N,this,P).call(this,{type:`pause`})},onContinue:()=>{b(N,this,P).call(this,{type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{let e=await y(M,this).start();if(e===void 0)throw process.env.NODE_ENV,Error(`${this.queryHash} data is undefined`);return this.setData(e),y(j,this).config.onSuccess?.(e,this),y(j,this).config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Ot){if(e.silent)return y(M,this).promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw b(N,this,P).call(this,{type:`error`,error:e}),y(j,this).config.onError?.(e,this),y(j,this).config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}});function P(e){let t=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,...Rt(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...zt(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return x(Nt,this,e.manual?n:void 0),n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),k.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),y(j,this).notify({query:this,type:`updated`,action:e})})}function Rt(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Dt(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function zt(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Bt(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?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`}}var F,I,Vt,L,Ht,Ut,R,z,Wt,Gt,Kt,qt,Jt,B,Yt,V,Xt=(F=new WeakMap,I=new WeakMap,Vt=new WeakMap,L=new WeakMap,Ht=new WeakMap,Ut=new WeakMap,R=new WeakMap,z=new WeakMap,Wt=new WeakMap,Gt=new WeakMap,Kt=new WeakMap,qt=new WeakMap,Jt=new WeakMap,B=new WeakMap,Yt=new WeakMap,V=new WeakSet,class extends Be{constructor(e,t){super(),_(this,V),v(this,F,void 0),v(this,I,void 0),v(this,Vt,void 0),v(this,L,void 0),v(this,Ht,void 0),v(this,Ut,void 0),v(this,R,void 0),v(this,z,void 0),v(this,Wt,void 0),v(this,Gt,void 0),v(this,Kt,void 0),v(this,qt,void 0),v(this,Jt,void 0),v(this,B,void 0),v(this,Yt,new Set),this.options=t,x(F,this,e),x(z,this,null),x(R,this,_t()),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(I,this).addObserver(this),cn(y(I,this),this.options)?b(V,this,Zt).call(this):this.updateResult(),b(V,this,tn).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ln(y(I,this),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ln(y(I,this),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,b(V,this,nn).call(this),b(V,this,rn).call(this),y(I,this).removeObserver(this)}setOptions(e){let t=this.options,n=y(I,this);if(this.options=y(F,this).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof D(this.options.enabled,y(I,this))!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);b(V,this,an).call(this),y(I,this).setOptions(this.options),t._defaulted&&!nt(this.options,t)&&y(F,this).getQueryCache().notify({type:`observerOptionsUpdated`,query:y(I,this),observer:this});let r=this.hasListeners();r&&un(y(I,this),n,this.options,t)&&b(V,this,Zt).call(this),this.updateResult(),r&&(y(I,this)!==n||D(this.options.enabled,y(I,this))!==D(t.enabled,y(I,this))||E(this.options.staleTime,y(I,this))!==E(t.staleTime,y(I,this)))&&b(V,this,Qt).call(this);let i=b(V,this,$t).call(this);r&&(y(I,this)!==n||D(this.options.enabled,y(I,this))!==D(t.enabled,y(I,this))||i!==y(B,this))&&b(V,this,en).call(this,i)}getOptimisticResult(e){let t=y(F,this).getQueryCache().build(y(F,this),e),n=this.createResult(t,e);return fn(this,n)&&(x(L,this,n),x(Ut,this,this.options),x(Ht,this,y(I,this).state)),n}getCurrentResult(){return y(L,this)}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&y(R,this).status===`pending`&&y(R,this).reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){y(Yt,this).add(e)}getCurrentQuery(){return y(I,this)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=y(F,this).defaultQueryOptions(e),n=y(F,this).getQueryCache().build(y(F,this),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return b(V,this,Zt).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),y(L,this)))}createResult(e,t){let n=y(I,this),r=this.options,i=y(L,this),a=y(Ht,this),o=y(Ut,this),s=e===n?y(Vt,this):e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&cn(e,t),o=i&&un(e,n,t,r);(a||o)&&(l={...l,...Rt(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(y(Kt,this)?.state.data,y(Kt,this)):t.placeholderData,e!==void 0&&(m=`success`,d=st(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===y(Wt,this))d=y(Gt,this);else try{x(Wt,this,t.select),d=t.select(d),d=st(i?.data,d,t),x(Gt,this,d),x(z,this,null)}catch(e){x(z,this,e)}y(z,this)&&(f=y(z,this),d=y(Gt,this),p=Date.now(),m=`error`);let ee=l.fetchStatus===`fetching`,g=m===`pending`,_=m===`error`,v=g&&ee,b=d!==void 0,S={status:m,fetchStatus:l.fetchStatus,isPending:g,isSuccess:m===`success`,isError:_,isInitialLoading:v,isLoading:v,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:ee,isRefetching:ee&&!g,isLoadingError:_&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:_&&b,isStale:dn(e,t),refetch:this.refetch,promise:y(R,this),isEnabled:D(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=S.data!==void 0,r=S.status===`error`&&!t,i=e=>{r?e.reject(S.error):t&&e.resolve(S.data)},a=()=>{i(x(R,this,S.promise=_t()))},o=y(R,this);switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||S.data!==o.value)&&a();break;case`rejected`:(!r||S.error!==o.reason)&&a();break}}return S}updateResult(){let e=y(L,this),t=this.createResult(y(I,this),this.options);x(Ht,this,y(I,this).state),x(Ut,this,this.options),y(Ht,this).data!==void 0&&x(Kt,this,y(I,this)),!nt(t,e)&&(x(L,this,t),b(V,this,on).call(this,{listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!y(Yt,this).size)return!0;let r=new Set(n??y(Yt,this));return this.options.throwOnError&&r.add(`error`),Object.keys(y(L,this)).some(t=>{let n=t;return y(L,this)[n]!==e[n]&&r.has(n)})})()}))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&b(V,this,tn).call(this)}});function Zt(e){b(V,this,an).call(this);let t=y(I,this).fetch(this.options,e);return e?.throwOnError||(t=t.catch(T)),t}function Qt(){b(V,this,nn).call(this);let e=E(this.options.staleTime,y(I,this));if(Ge||y(L,this).isStale||!qe(e))return;let t=Je(y(L,this).dataUpdatedAt,e)+1;x(qt,this,Ue.setTimeout(()=>{y(L,this).isStale||this.updateResult()},t))}function $t(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(y(I,this)):this.options.refetchInterval)??!1}function en(e){b(V,this,rn).call(this),x(B,this,e),!(Ge||D(this.options.enabled,y(I,this))===!1||!qe(y(B,this))||y(B,this)===0)&&x(Jt,this,Ue.setInterval(()=>{(this.options.refetchIntervalInBackground||gt.isFocused())&&b(V,this,Zt).call(this)},y(B,this)))}function tn(){b(V,this,Qt).call(this),b(V,this,en).call(this,b(V,this,$t).call(this))}function nn(){y(qt,this)&&(Ue.clearTimeout(y(qt,this)),x(qt,this,void 0))}function rn(){y(Jt,this)&&(Ue.clearInterval(y(Jt,this)),x(Jt,this,void 0))}function an(){let e=y(F,this).getQueryCache().build(y(F,this),this.options);if(e===y(I,this))return;let t=y(I,this);x(I,this,e),x(Vt,this,e.state),this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}function on(e){k.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(y(L,this))}),y(F,this).getQueryCache().notify({query:y(I,this),type:`observerResultsUpdated`})})}function sn(e,t){return D(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&t.retryOnMount===!1)}function cn(e,t){return sn(e,t)||e.state.data!==void 0&&ln(e,t,t.refetchOnMount)}function ln(e,t,n){if(D(t.enabled,e)!==!1&&E(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&dn(e,t)}return!1}function un(e,t,n,r){return(e!==t||D(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&dn(e,n)}function dn(e,t){return D(t.enabled,e)!==!1&&e.isStaleByTime(E(t.staleTime,e))}function fn(e,t){return!nt(e.getCurrentResult(),t)}function pn(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{pt(e,()=>t.signal,()=>n=!0)},u=dt(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?lt:ct;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?hn:mn,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:mn(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function mn(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function hn(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var gn,H,U,_n,W,vn=(gn=new WeakMap,H=new WeakMap,U=new WeakMap,_n=new WeakMap,W=new WeakSet,class extends jt{constructor(e){super(),_(this,W),v(this,gn,void 0),v(this,H,void 0),v(this,U,void 0),v(this,_n,void 0),x(gn,this,e.client),this.mutationId=e.mutationId,x(U,this,e.mutationCache),x(H,this,[]),this.state=e.state||yn(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){y(H,this).includes(e)||(y(H,this).push(e),this.clearGcTimeout(),y(U,this).notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){x(H,this,y(H,this).filter(t=>t!==e)),this.scheduleGc(),y(U,this).notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){y(H,this).length||(this.state.status===`pending`?this.scheduleGc():y(U,this).remove(this))}continue(){return y(_n,this)?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{b(W,this,G).call(this,{type:`continue`})},n={client:y(gn,this),meta:this.options.meta,mutationKey:this.options.mutationKey};x(_n,this,kt({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{b(W,this,G).call(this,{type:`failed`,failureCount:e,error:t})},onPause:()=>{b(W,this,G).call(this,{type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(U,this).canRun(this)}));let r=this.state.status===`pending`,i=!y(_n,this).canStart();try{if(r)t();else{b(W,this,G).call(this,{type:`pending`,variables:e,isPaused:i}),y(U,this).config.onMutate&&await y(U,this).config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&b(W,this,G).call(this,{type:`pending`,context:t,variables:e,isPaused:i})}let a=await y(_n,this).start();return await y(U,this).config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await y(U,this).config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),b(W,this,G).call(this,{type:`success`,data:a}),a}catch(t){try{await y(U,this).config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await y(U,this).config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw b(W,this,G).call(this,{type:`error`,error:t}),t}finally{y(U,this).runNext(this)}}});function G(e){let t=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=t(this.state),k.batch(()=>{y(H,this).forEach(t=>{t.onMutationUpdate(e)}),y(U,this).notify({mutation:this,type:`updated`,action:e})})}function yn(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var K,q,bn,xn=(K=new WeakMap,q=new WeakMap,bn=new WeakMap,class extends Be{constructor(e={}){super(),v(this,K,void 0),v(this,q,void 0),v(this,bn,void 0),this.config=e,x(K,this,new Set),x(q,this,new Map),x(bn,this,0)}build(e,t,n){var r;let i=new vn({client:e,mutationCache:this,mutationId:x(bn,this,(r=y(bn,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){y(K,this).add(e);let t=Sn(e);if(typeof t==`string`){let n=y(q,this).get(t);n?n.push(e):y(q,this).set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(y(K,this).delete(e)){let t=Sn(e);if(typeof t==`string`){let n=y(q,this).get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&y(q,this).delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Sn(e);if(typeof t==`string`){let n=y(q,this).get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Sn(e);return typeof t==`string`?(y(q,this).get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){k.batch(()=>{y(K,this).forEach(e=>{this.notify({type:`removed`,mutation:e})}),y(K,this).clear(),y(q,this).clear()})}getAll(){return Array.from(y(K,this))}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Xe(t,e))}findAll(e={}){return this.getAll().filter(t=>Xe(e,t))}notify(e){k.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return k.batch(()=>Promise.all(e.map(e=>e.continue().catch(T))))}});function Sn(e){return e.options.scope?.id}var J,Cn=(J=new WeakMap,class extends Be{constructor(e={}){super(),v(this,J,void 0),this.config=e,x(J,this,new Map)}build(e,t,n){let r=t.queryKey,i=t.queryHash??Ze(r,t),a=this.get(i);return a||(a=new Lt({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){y(J,this).has(e.queryHash)||(y(J,this).set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=y(J,this).get(e.queryHash);t&&(e.destroy(),t===e&&y(J,this).delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){k.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return y(J,this).get(e)}getAll(){return[...y(J,this).values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Ye(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Ye(e,t)):t}notify(e){k.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){k.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){k.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}),Y,wn,Tn,En,Dn,X,On,kn,An=(Y=new WeakMap,wn=new WeakMap,Tn=new WeakMap,En=new WeakMap,Dn=new WeakMap,X=new WeakMap,On=new WeakMap,kn=new WeakMap,class{constructor(e={}){v(this,Y,void 0),v(this,wn,void 0),v(this,Tn,void 0),v(this,En,void 0),v(this,Dn,void 0),v(this,X,void 0),v(this,On,void 0),v(this,kn,void 0),x(Y,this,e.queryCache||new Cn),x(wn,this,e.mutationCache||new xn),x(Tn,this,e.defaultOptions||{}),x(En,this,new Map),x(Dn,this,new Map),x(X,this,0)}mount(){var e;x(X,this,(e=y(X,this),e++,e)),y(X,this)===1&&(x(On,this,gt.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(Y,this).onFocus())})),x(kn,this,Tt.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(Y,this).onOnline())})))}unmount(){var e;x(X,this,(e=y(X,this),e--,e)),y(X,this)===0&&(y(On,this)?.call(this),x(On,this,void 0),y(kn,this)?.call(this),x(kn,this,void 0))}isFetching(e){return y(Y,this).findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return y(wn,this).findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return y(Y,this).get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=y(Y,this).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(E(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return y(Y,this).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=y(Y,this).get(r.queryHash)?.state.data,a=Ke(t,i);if(a!==void 0)return y(Y,this).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return k.batch(()=>y(Y,this).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return y(Y,this).get(t.queryHash)?.state}removeQueries(e){let t=y(Y,this);k.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=y(Y,this);return k.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=k.batch(()=>y(Y,this).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(T).catch(T)}invalidateQueries(e,t={}){return k.batch(()=>(y(Y,this).findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=k.batch(()=>y(Y,this).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(T)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(T)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=y(Y,this).build(this,t);return n.isStaleByTime(E(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(T).catch(T)}fetchInfiniteQuery(e){return e.behavior=pn(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(T).catch(T)}ensureInfiniteQueryData(e){return e.behavior=pn(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Tt.isOnline()?y(wn,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(Y,this)}getMutationCache(){return y(wn,this)}getDefaultOptions(){return y(Tn,this)}setDefaultOptions(e){x(Tn,this,e)}setQueryDefaults(e,t){y(En,this).set(Qe(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...y(En,this).values()],n={};return t.forEach(t=>{$e(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){y(Dn,this).set(Qe(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...y(Dn,this).values()],n={};return t.forEach(t=>{$e(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...y(Tn,this).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ze(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ut&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...y(Tn,this).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(Y,this).clear(),y(wn,this).clear()}}),jn=Symbol(`store-raw`),Mn=Symbol(`store-node`),Z=Symbol(`store-has`),Nn=Symbol(`store-self`);function Pn(e){let t=e[f];if(!t&&(Object.defineProperty(e,f,{value:t=new Proxy(e,Vn)}),!Array.isArray(e))){let n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let i=0,a=n.length;i<a;i++){let a=n[i];r[a].get&&Object.defineProperty(e,a,{enumerable:r[a].enumerable,get:r[a].get.bind(t)})}}return t}function Q(e){let t;return typeof e==`object`&&!!e&&(e[f]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Fn(e,t=new Set){let n,r,i,a;if(n=e!=null&&e[jn])return n;if(!Q(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,a=e.length;n<a;n++)i=e[n],(r=Fn(i,t))!==i&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);let n=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let s=0,c=n.length;s<c;s++)a=n[s],!o[a].get&&(i=e[a],(r=Fn(i,t))!==i&&(e[a]=r))}return e}function In(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function Ln(e,t,n){if(e[t])return e[t];let[r,i]=m(n,{equals:!1,internal:!0});return r.$=i,e[t]=r}function Rn(e,t){let n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===f||t===Mn?n:(delete n.value,delete n.writable,n.get=()=>e[f][t],n)}function zn(e){g()&&Ln(In(e,Mn),Nn)()}function Bn(e){return zn(e),Reflect.ownKeys(e)}var Vn={get(e,t,n){if(t===jn)return e;if(t===f)return n;if(t===d)return zn(e),n;let r=In(e,Mn),i=r[t],a=i?i():e[t];if(t===Mn||t===Z||t===`__proto__`)return a;if(!i){let n=Object.getOwnPropertyDescriptor(e,t);g()&&(typeof a!=`function`||e.hasOwnProperty(t))&&!(n&&n.get)&&(a=Ln(r,t,a)())}return Q(a)?Pn(a):a},has(e,t){return t===jn||t===f||t===d||t===Mn||t===Z||t===`__proto__`?!0:(g()&&Ln(In(e,Z),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:Bn,getOwnPropertyDescriptor:Rn};function $(e,t,n,r=!1){if(!r&&e[t]===n)return;let i=e[t],a=e.length;n===void 0?(delete e[t],e[Z]&&e[Z][t]&&i!==void 0&&e[Z][t].$()):(e[t]=n,e[Z]&&e[Z][t]&&i===void 0&&e[Z][t].$());let o=In(e,Mn),s;if((s=Ln(o,t,i))&&s.$(()=>n),Array.isArray(e)&&e.length!==a){for(let t=e.length;t<a;t++)(s=o[t])&&s.$();(s=Ln(o,`length`,a))&&s.$(e.length)}(s=o[Nn])&&s.$()}function Hn(e,t){let n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];$(e,i,t[i])}}function Un(e,t){if(typeof t==`function`&&(t=t(e)),t=Fn(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){let r=t[n];e[n]!==r&&$(e,n,r)}$(e,`length`,r)}else Hn(e,t)}function Wn(e,t,n=[]){let r,i=e;if(t.length>1){r=t.shift();let a=typeof r,o=Array.isArray(e);if(Array.isArray(r)){for(let i=0;i<r.length;i++)Wn(e,[r[i]].concat(t),n);return}else if(o&&a===`function`){for(let i=0;i<e.length;i++)r(e[i],i)&&Wn(e,[i].concat(t),n);return}else if(o&&a===`object`){let{from:i=0,to:a=e.length-1,by:o=1}=r;for(let r=i;r<=a;r+=o)Wn(e,[r].concat(t),n);return}else if(t.length>1){Wn(e[r],t,[r].concat(n));return}i=e[r],n=[r].concat(n)}let a=t[0];typeof a==`function`&&(a=a(i,n),a===i)||r===void 0&&a==null||(a=Fn(a),r===void 0||Q(i)&&Q(a)&&!Array.isArray(a)?Hn(i,a):$(e,r,a))}function Gn(...[e,t]){let n=Fn(e||{}),r=Array.isArray(n),i=Pn(n);function a(...e){l(()=>{r&&e.length===1?Un(n,e[0]):Wn(n,e)})}return[i,a]}var Kn=Symbol(`store-root`);function qn(e,t,n,r,i){let a=t[n];if(e===a)return;let o=Array.isArray(e);if(n!==Kn&&(!Q(e)||!Q(a)||o!==Array.isArray(a)||i&&e[i]!==a[i])){$(t,n,e);return}if(o){if(e.length&&a.length&&(!r||i&&e[0]&&e[0][i]!=null)){let t,n,o,s,c,l,u,d;for(o=0,s=Math.min(a.length,e.length);o<s&&(a[o]===e[o]||i&&a[o]&&e[o]&&a[o][i]&&a[o][i]===e[o][i]);o++)qn(e[o],a,o,r,i);let f=Array(e.length),p=new Map;for(s=a.length-1,c=e.length-1;s>=o&&c>=o&&(a[s]===e[c]||i&&a[s]&&e[c]&&a[s][i]&&a[s][i]===e[c][i]);s--,c--)f[c]=a[s];if(o>c||o>s){for(n=o;n<=c;n++)$(a,n,e[n]);for(;n<e.length;n++)$(a,n,f[n]),qn(e[n],a,n,r,i);a.length>e.length&&$(a,`length`,e.length);return}for(u=Array(c+1),n=c;n>=o;n--)l=e[n],d=i&&l?l[i]:l,t=p.get(d),u[n]=t===void 0?-1:t,p.set(d,n);for(t=o;t<=s;t++)l=a[t],d=i&&l?l[i]:l,n=p.get(d),n!==void 0&&n!==-1&&(f[n]=a[t],n=u[n],p.set(d,n));for(n=o;n<e.length;n++)n in f?($(a,n,f[n]),qn(e[n],a,n,r,i)):$(a,n,e[n])}else for(let t=0,n=e.length;t<n;t++)qn(e[t],a,t,r,i);a.length>e.length&&$(a,`length`,e.length);return}let s=Object.keys(e);for(let t=0,n=s.length;t<n;t++)qn(e[s[t]],a,s[t],r,i);let c=Object.keys(a);for(let t=0,n=c.length;t<n;t++)e[c[t]]===void 0&&$(a,c[t],void 0)}function Jn(e,t={}){let{merge:n,key:r=`id`}=t,i=Fn(e);return e=>{if(!Q(e)||!Q(i))return i;let t=qn(i,{[Kn]:e},Kn,n,r);return t===void 0?e:t}}var Yn=o(void 0),Xn=t=>{if(t)return t;let n=e(Yn);if(!n)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return n()},Zn=e=>(c(t=>(t?.(),e.client.mount(),e.client.unmount.bind(e.client))),n(()=>e.client.unmount()),p(Yn.Provider,{value:()=>e.client,get children(){return e.children}})),Qn=o(()=>!1),$n=()=>e(Qn);Qn.Provider;function er(e,t,n,r){if(n===!1)return t;if(typeof n==`function`){let r=n(e.data,t.data);return{...t,data:r}}let i=t.data;if(e.data===void 0)try{i=structuredClone(i)}catch{}let a=Jn(i,{key:n})(e.data);return{...t,data:a}}var tr=(e,t)=>t;function nr(e,t,r){let i=u(()=>Xn(r?.())),o=$n(),c=u(()=>{let t=i().defaultQueryOptions(e());return t._optimisticResults=o()?`isRestoring`:`optimistic`,t.structuralSharing=!1,t}),l=c(),[d,f]=m(new t(i(),c())),p=d().getOptimisticResult(c()),[h,g]=Gn(p),_=()=>d().subscribe(e=>{p=e,queueMicrotask(()=>{b&&te()})});function v(e){let t=d().options,n=t.reconcile;g(r=>er(r,e,n===void 0?!1:n,t.queryHash))}function y(){return[()=>h,e=>{let t=Fn(h);if(typeof e==`function`&&(e=e(t)),e?.hydrationData){let{hydrationData:t,...n}=e;e=n}v(e)}]}let b=null,x=null,[S,{refetch:te}]=s(()=>{let e=d();return new Promise((t,n)=>{if(x=t,!b&&!o()&&(b=_()),e.updateResult(),p.isError&&!p.isFetching&&!o()&&ft(e.options.throwOnError,[p.error,e.getCurrentQuery()]))return v(p),n(p.error);if(!p.isLoading)return x=null,t(tr(e.getCurrentQuery(),p));v(p)})},{storage:y,get deferStream(){return e().deferStream},onHydrated(e,t){if(t.value&&`hydrationData`in t.value&&bt(i(),{queries:[{...t.value.hydrationData}]}),b)return;let n={...l};(l.staleTime||!l.initialData)&&t.value&&(n.refetchOnMount=!1),d().setOptions(n),v(d().getOptimisticResult(n)),b=_()}});return a(ee(i,e=>{b&&b();let n=new t(e,c());b=_(),f(n)},{defer:!0})),a(ee(o,e=>{e||te()},{defer:!0})),n(()=>{b&&(b(),b=null),x&&(x(p),x=null)}),a(ee([d,c],([e,t])=>{e.setOptions(t),v(e.getOptimisticResult(t)),te()},{defer:!0})),new Proxy(h,{get(e,t){return t===`data`?h.data===void 0?S()?.data:S.latest?.data:Reflect.get(e,t)}})}function rr(e,t){return nr(u(()=>e()),Xt,t)}var ir=new class extends An{constructor(e={}){super(e)}}({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1}}}),ar={skeleton:`tf-1ac2ef`,pulse:`tf-90e981`,selectorOverlay:`tf-68a980`,"tf-overlay-bg-in":`tf-415358`,selectorOverlayDismissing:`tf-0c7f16`,"tf-overlay-bg-out":`tf-4145fd`,container:`tf-e7b9c7`,backButton:`tf-affc9b`,backButtonExiting:`tf-013ec9`,receiveMethodStableContainer:`tf-dc1cc1`,noBg:`tf-b4f391`,noBorder:`tf-118b57`,accentLine:`tf-07225e`,ctaWrapper:`tf-d01dff`,"tf-fade-in":`tf-ed0355`,ctaWrapperReceive:`tf-5bb68c`,footerSlot:`tf-37ddcc`,footerSpacer:`tf-d256dd`,noOffer:`tf-04e1e2`,"tf-slide-up":`tf-b61e63`,noOfferIcon:`tf-d01908`,noOfferText:`tf-1cc72b`,explorerLink:`tf-480f1a`,explorerLinkReceive:`tf-bc7950`,recipientBadge:`tf-d9b7b4`,recipientBadgeEmpty:`tf-9398ea`,recipientBadgeText:`tf-2d9323`,recipientBadgeLocked:`tf-4567e1`,recipientPlaceholder:`tf-58881e`,flexCenter:`tf-c7b4d2`,flexCol:`tf-771a48`,flexRow:`tf-e2b7ba`,flexBetween:`tf-6f7fab`,fadeIn:`tf-b15cde`,idleCard:`tf-52678c`,idleIcon:`tf-25f74d`,idleTitle:`tf-b385cd`,idleSub:`tf-dc46f6`,disabledOpacity:`tf-55c652`,monoAmount:`tf-2ad189`,dividerLine:`tf-192a37`,providerIconInline:`tf-44389f`,payMethodTabs:`tf-58158c`,payMethodTab:`tf-6f8fbb`,payMethodTabActive:`tf-2a2ad5`};export{ze as a,we as c,me as d,xe as f,Ce as g,fe as h,rr as i,ce as l,be as m,ir as n,ve as o,Se as p,Zn as r,_e as s,ar as t,de as u};
|
|
1
|
+
import{D as e,E as t,S as n,T as r,_ as i,d as a,f as o,g as s,h as c,l,m as u,n as d,t as f,u as p,v as m,w as h,x as ee,y as g}from"./solid-DqvEpdeb.js";import{a as _,i as v,n as y,r as b,t as x}from"./classPrivateFieldSet2-DmR3eaHe.js";var S=new Set([`className`,`value`,`readOnly`,`noValidate`,`formNoValidate`,`isMap`,`noModule`,`playsInline`,`adAuctionHeaders`,`allowFullscreen`,`browsingTopics`,`defaultChecked`,`defaultMuted`,`defaultSelected`,`disablePictureInPicture`,`disableRemotePlayback`,`preservesPitch`,`shadowRootClonable`,`shadowRootCustomElementRegistry`,`shadowRootDelegatesFocus`,`shadowRootSerializable`,`sharedStorageWritable`,...`allowfullscreen.async.alpha.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.hidden.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.adauctionheaders.browsingtopics.credentialless.defaultchecked.defaultmuted.defaultselected.defer.disablepictureinpicture.disableremoteplayback.preservespitch.shadowrootclonable.shadowrootcustomelementregistry.shadowrootdelegatesfocus.shadowrootserializable.sharedstoragewritable`.split(`.`)]),te=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),ne=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),re=Object.assign(Object.create(null),{class:`className`,novalidate:{$:`noValidate`,FORM:1},formnovalidate:{$:`formNoValidate`,BUTTON:1,INPUT:1},ismap:{$:`isMap`,IMG:1},nomodule:{$:`noModule`,SCRIPT:1},playsinline:{$:`playsInline`,VIDEO:1},readonly:{$:`readOnly`,INPUT:1,TEXTAREA:1},adauctionheaders:{$:`adAuctionHeaders`,IFRAME:1},allowfullscreen:{$:`allowFullscreen`,IFRAME:1},browsingtopics:{$:`browsingTopics`,IMG:1},defaultchecked:{$:`defaultChecked`,INPUT:1},defaultmuted:{$:`defaultMuted`,AUDIO:1,VIDEO:1},defaultselected:{$:`defaultSelected`,OPTION:1},disablepictureinpicture:{$:`disablePictureInPicture`,VIDEO:1},disableremoteplayback:{$:`disableRemotePlayback`,AUDIO:1,VIDEO:1},preservespitch:{$:`preservesPitch`,AUDIO:1,VIDEO:1},shadowrootclonable:{$:`shadowRootClonable`,TEMPLATE:1},shadowrootdelegatesfocus:{$:`shadowRootDelegatesFocus`,TEMPLATE:1},shadowrootserializable:{$:`shadowRootSerializable`,TEMPLATE:1},sharedstoragewritable:{$:`sharedStorageWritable`,IFRAME:1,IMG:1}});function ie(e,t){let n=re[e];return typeof n==`object`?n[t]?n.$:void 0:n}var ae=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),oe=new Set(`altGlyph.altGlyphDef.altGlyphItem.animate.animateColor.animateMotion.animateTransform.circle.clipPath.color-profile.cursor.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.font.font-face.font-face-format.font-face-name.font-face-src.font-face-uri.foreignObject.g.glyph.glyphRef.hkern.image.line.linearGradient.marker.mask.metadata.missing-glyph.mpath.path.pattern.polygon.polyline.radialGradient.rect.set.stop.svg.switch.symbol.text.textPath.tref.tspan.use.view.vkern`.split(`.`)),se={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},ce=e=>u(()=>e());function le(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null)if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&!((d=l.get(t[c]))==null||d!==r+u);)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++;else t[o++].remove()}}}var ue=`_$DX_DELEGATE`;function de(e,t,n,r={}){let a;return i(r=>{a=r,t===document?e():we(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{a(),t.textContent=``}}function fe(e,n,r,i){let a,o=()=>{let t=i?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,r?t.content.firstChild.firstChild:i?t.firstChild:t.content.firstChild},s=n?()=>t(()=>document.importNode(a||(a=o()),!0)):()=>(a||(a=o())).cloneNode(!0);return s.cloneNode=s,s}function pe(e,t=window.document){let n=t[ue]||(t[ue]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,Ae))}}function me(e,t,n){C(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function he(e,t,n,r){C(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function ge(e,t,n){C(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function _e(e,t){C(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function ve(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function ye(e,t,n={}){let r=Object.keys(t||{}),i=Object.keys(n),a,o;for(a=0,o=i.length;a<o;a++){let r=i[a];!r||r===`undefined`||t[r]||(Oe(e,r,!1),delete n[r])}for(a=0,o=r.length;a<o;a++){let i=r[a],o=!!t[i];!i||i===`undefined`||n[i]===o||!o||(Oe(e,i,!0),n[i]=o)}return n}function be(e,t,n){if(!t)return n?me(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||(n={}),t||(t={});let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function xe(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function Se(e,t={},n,r){let i={};return r||c(()=>i.children=je(e,t.children,i.children)),c(()=>typeof t.ref==`function`&&Ce(t.ref,e)),c(()=>Te(e,t,n,!0,i,!0)),i}function Ce(e,n,r){return t(()=>e(n,r))}function we(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return je(e,t,r,n);c(r=>je(e,t(),r,n),r)}function Te(e,t,n,r,i={},a=!1){t||(t={});for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=ke(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||je(e,t.children);continue}let s=t[o];i[o]=ke(e,o,s,i[o],n,a,t)}}function Ee(e){let t,n;return!C()||!(t=h.registry.get(n=Fe()))?e():(h.completed&&h.completed.add(t),h.registry.delete(n),t)}function C(e){return!!h.context&&!h.done&&(!e||e.isConnected)}function De(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function Oe(e,t,n){let r=t.trim().split(/\s+/);for(let t=0,i=r.length;t<i;t++)e.classList.toggle(r[t],n)}function ke(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return be(e,n,r);if(t===`classList`)return ye(e,n,r);if(n===r)return r;if(t===`ref`)a||n(e);else if(t.slice(0,3)===`on:`){let i=t.slice(3);r&&e.removeEventListener(i,r,typeof r!=`function`&&r),n&&e.addEventListener(i,n,typeof n!=`function`&&n)}else if(t.slice(0,10)===`oncapture:`){let i=t.slice(10);r&&e.removeEventListener(i,r,!0),n&&e.addEventListener(i,n,!0)}else if(t.slice(0,2)===`on`){let i=t.slice(2).toLowerCase(),a=ae.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(ve(e,i,n,a),a&&pe([i]))}else if(t.slice(0,5)===`attr:`)me(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)ge(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=te.has(t))||!i&&((u=ie(t,e.tagName))||(c=S.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(C(e))return n;t===`class`||t===`className`?_e(e,n):s&&!c&&!l?e[De(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&se[t.split(`:`)[0]];r?he(e,r,t,n):me(e,ne[t]||t,n)}return n}function Ae(e){if(h.registry&&h.events&&h.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,a=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),o=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&a(t.host),!0},s=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),h.registry&&!h.done&&(h.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();a(n[0]);for(let e=0;e<n.length-2&&(t=n[e],o());e++){if(t._$host){t=t._$host,s();break}if(t.parentNode===i)break}}else s();a(r)}function je(e,t,n,r,i){let a=C(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=Pe(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||o===`boolean`){if(a)return n;n=Pe(e,n,r)}else if(o===`function`)return c(()=>{let i=t();for(;typeof i==`function`;)i=i();n=je(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],l=n&&Array.isArray(n);if(Me(o,t,n,i))return c(()=>n=je(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=Pe(e,n,r),s)return n}else l?n.length===0?Ne(e,o,r):le(e,n,o):(n&&Pe(e),Ne(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=Pe(e,n,r,t);Pe(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function Me(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(!(o==null||o===!0||o===!1))if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=Me(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=Me(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0;else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return i}function Ne(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function Pe(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}function Fe(){return h.getNextContextId()}var Ie=`http://www.w3.org/2000/svg`;function Le(e,t=!1,n=void 0){return t?document.createElementNS(Ie,e):document.createElement(e,{is:n})}function Re(e,n){let r=u(e);return u(()=>{let e=r();switch(typeof e){case`function`:return t(()=>e(n));case`string`:let r=oe.has(e),i=h.context?Ee():Le(e,r,t(()=>n.is));return Se(i,n,r),i}})}function ze(e){let[,t]=r(e,[`component`]);return Re(()=>e.component,t)}var Be=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(){}},w,Ve,He={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ue=new(w=new WeakMap,Ve=new WeakMap,class{constructor(){v(this,w,He),v(this,Ve,!1)}setTimeoutProvider(e){process.env.NODE_ENV!==`production`&&y(Ve,this)&&y(w,this),x(w,this,e),process.env.NODE_ENV!==`production`&&x(Ve,this,!1)}setTimeout(e,t){return process.env.NODE_ENV!==`production`&&x(Ve,this,!0),y(w,this).setTimeout(e,t)}clearTimeout(e){y(w,this).clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!==`production`&&x(Ve,this,!0),y(w,this).setInterval(e,t)}clearInterval(e){y(w,this).clearInterval(e)}});function We(e){setTimeout(e,0)}var Ge=typeof window>`u`||`Deno`in globalThis;function T(){}function Ke(e,t){return typeof e==`function`?e(t):e}function qe(e){return typeof e==`number`&&e>=0&&e!==1/0}function Je(e,t){return Math.max(e+(t||0)-Date.now(),0)}function E(e,t){return typeof e==`function`?e(t):e}function D(e,t){return typeof e==`function`?e(t):e}function Ye(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Ze(o,t.options))return!1}else if(!$e(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Xe(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Qe(t.options.mutationKey)!==Qe(a))return!1}else if(!$e(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ze(e,t){return(t?.queryKeyHashFn||Qe)(e)}function Qe(e){return JSON.stringify(e,(e,t)=>it(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function $e(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>$e(e[n],t[n])):!1}var et=Object.prototype.hasOwnProperty;function tt(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=rt(e)&&rt(t);if(!r&&!(it(e)&&it(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:et.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=tt(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function nt(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function rt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function it(e){if(!at(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!at(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function at(e){return Object.prototype.toString.call(e)===`[object Object]`}function ot(e){return new Promise(t=>{Ue.setTimeout(t,e)})}function st(e,t,n){if(typeof n.structuralSharing==`function`)return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!==`production`)try{return tt(e,t)}catch(e){throw e}return tt(e,t)}return t}function ct(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function lt(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ut=Symbol();function dt(e,t){return process.env.NODE_ENV!==`production`&&e.queryFn,!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ut?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ft(e,t){return typeof e==`function`?e(...t):!!e}function pt(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??(i=t()),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var mt,O,ht,gt=new(mt=new WeakMap,O=new WeakMap,ht=new WeakMap,class extends Be{constructor(){super(),v(this,mt,void 0),v(this,O,void 0),v(this,ht,void 0),x(ht,this,e=>{if(!Ge&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}})}onSubscribe(){y(O,this)||this.setEventListener(y(ht,this))}onUnsubscribe(){this.hasListeners()||(y(O,this)?.call(this),x(O,this,void 0))}setEventListener(e){x(ht,this,e),y(O,this)?.call(this),x(O,this,e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()}))}setFocused(e){y(mt,this)!==e&&(x(mt,this,e),this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof y(mt,this)==`boolean`?y(mt,this):globalThis.document?.visibilityState!==`hidden`}});function _t(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}function vt(e){let t;if(e.then(e=>(t=e,e),T)?.catch(T),t!==void 0)return{data:t}}function yt(e){return e}function bt(e,t,n){if(typeof t!=`object`||!t)return;let r=e.getMutationCache(),i=e.getQueryCache(),a=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??yt,o=t.mutations||[],s=t.queries||[];o.forEach(({state:t,...i})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...i},t)}),s.forEach(({queryKey:t,state:r,queryHash:o,meta:s,promise:c,dehydratedAt:l})=>{let u=c?vt(c):void 0,d=r.data===void 0?u?.data:r.data,f=d===void 0?d:a(d),p=i.get(o),m=p?.state.status===`pending`,h=p?.state.fetchStatus===`fetching`;if(p){let e=u&&l!==void 0&&l>p.state.dataUpdatedAt;if(r.dataUpdatedAt>p.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=r;p.setState({...t,data:f})}}else p=i.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:t,queryHash:o,meta:s},{...r,data:f,fetchStatus:`idle`,status:f===void 0?r.status:`success`});c&&!m&&!h&&(l===void 0||l>p.state.dataUpdatedAt)&&p.fetch(void 0,{initialPromise:Promise.resolve(c).then(a)}).catch(T)})}var xt=We;function St(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=xt,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var k=St(),Ct,A,wt,Tt=new(Ct=new WeakMap,A=new WeakMap,wt=new WeakMap,class extends Be{constructor(){super(),v(this,Ct,!0),v(this,A,void 0),v(this,wt,void 0),x(wt,this,e=>{if(!Ge&&window.addEventListener){let 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(){y(A,this)||this.setEventListener(y(wt,this))}onUnsubscribe(){this.hasListeners()||(y(A,this)?.call(this),x(A,this,void 0))}setEventListener(e){x(wt,this,e),y(A,this)?.call(this),x(A,this,e(this.setOnline.bind(this)))}setOnline(e){y(Ct,this)!==e&&(x(Ct,this,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return y(Ct,this)}});function Et(e){return Math.min(1e3*2**e,3e4)}function Dt(e){return(e??`online`)===`online`?Tt.isOnline():!0}var Ot=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function kt(e){let t=!1,n=0,r,i=_t(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Ot(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>gt.isFocused()&&(e.networkMode===`always`||Tt.isOnline())&&e.canRun(),u=()=>Dt(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Ge?0:3),o=e.retryDelay??Et,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),ot(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var At,jt=(At=new WeakMap,class{constructor(){v(this,At,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qe(this.gcTime)&&x(At,this,Ue.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ge?1/0:300*1e3))}clearGcTimeout(){y(At,this)&&(Ue.clearTimeout(y(At,this)),x(At,this,void 0))}}),Mt,Nt,j,Pt,M,Ft,It,N,Lt=(Mt=new WeakMap,Nt=new WeakMap,j=new WeakMap,Pt=new WeakMap,M=new WeakMap,Ft=new WeakMap,It=new WeakMap,N=new WeakSet,class extends jt{constructor(e){super(),_(this,N),v(this,Mt,void 0),v(this,Nt,void 0),v(this,j,void 0),v(this,Pt,void 0),v(this,M,void 0),v(this,Ft,void 0),v(this,It,void 0),x(It,this,!1),x(Ft,this,e.defaultOptions),this.setOptions(e.options),this.observers=[],x(Pt,this,e.client),x(j,this,y(Pt,this).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,x(Mt,this,Bt(this.options)),this.state=e.state??y(Mt,this),this.scheduleGc()}get meta(){return this.options.meta}get promise(){return y(M,this)?.promise}setOptions(e){if(this.options={...y(Ft,this),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Bt(this.options);e.data!==void 0&&(this.setState(zt(e.data,e.dataUpdatedAt)),x(Mt,this,e))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&y(j,this).remove(this)}setData(e,t){let n=st(this.state.data,e,this.options);return b(N,this,P).call(this,{data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){b(N,this,P).call(this,{type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=y(M,this)?.promise;return y(M,this)?.cancel(e),t?t.then(T).catch(T):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(Mt,this))}isActive(){return this.observers.some(e=>D(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ut||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>E(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Je(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),y(M,this)?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),y(M,this)?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),y(j,this).notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(y(M,this)&&(y(It,this)?y(M,this).cancel({revert:!0}):y(M,this).cancelRetry()),this.scheduleGc()),y(j,this).notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||b(N,this,P).call(this,{type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&y(M,this)?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(y(M,this))return y(M,this).continueRetry(),y(M,this).promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}process.env.NODE_ENV!==`production`&&Array.isArray(this.options.queryKey);let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(x(It,this,!0),n.signal)})},i=()=>{let e=dt(this.options,t),n=(()=>{let e={client:y(Pt,this),queryKey:this.queryKey,meta:this.meta};return r(e),e})();return x(It,this,!1),this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:y(Pt,this),state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),x(Nt,this,this.state),(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&b(N,this,P).call(this,{type:`fetch`,meta:a.fetchOptions?.meta}),x(M,this,kt({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Ot&&e.revert&&this.setState({...y(Nt,this),fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{b(N,this,P).call(this,{type:`failed`,failureCount:e,error:t})},onPause:()=>{b(N,this,P).call(this,{type:`pause`})},onContinue:()=>{b(N,this,P).call(this,{type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{let e=await y(M,this).start();if(e===void 0)throw process.env.NODE_ENV,Error(`${this.queryHash} data is undefined`);return this.setData(e),y(j,this).config.onSuccess?.(e,this),y(j,this).config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Ot){if(e.silent)return y(M,this).promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw b(N,this,P).call(this,{type:`error`,error:e}),y(j,this).config.onError?.(e,this),y(j,this).config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}});function P(e){let t=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,...Rt(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...zt(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return x(Nt,this,e.manual?n:void 0),n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),k.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),y(j,this).notify({query:this,type:`updated`,action:e})})}function Rt(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Dt(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function zt(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Bt(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?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`}}var F,I,Vt,L,Ht,Ut,R,z,Wt,Gt,Kt,qt,Jt,B,Yt,V,Xt=(F=new WeakMap,I=new WeakMap,Vt=new WeakMap,L=new WeakMap,Ht=new WeakMap,Ut=new WeakMap,R=new WeakMap,z=new WeakMap,Wt=new WeakMap,Gt=new WeakMap,Kt=new WeakMap,qt=new WeakMap,Jt=new WeakMap,B=new WeakMap,Yt=new WeakMap,V=new WeakSet,class extends Be{constructor(e,t){super(),_(this,V),v(this,F,void 0),v(this,I,void 0),v(this,Vt,void 0),v(this,L,void 0),v(this,Ht,void 0),v(this,Ut,void 0),v(this,R,void 0),v(this,z,void 0),v(this,Wt,void 0),v(this,Gt,void 0),v(this,Kt,void 0),v(this,qt,void 0),v(this,Jt,void 0),v(this,B,void 0),v(this,Yt,new Set),this.options=t,x(F,this,e),x(z,this,null),x(R,this,_t()),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(I,this).addObserver(this),cn(y(I,this),this.options)?b(V,this,Zt).call(this):this.updateResult(),b(V,this,tn).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ln(y(I,this),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ln(y(I,this),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,b(V,this,nn).call(this),b(V,this,rn).call(this),y(I,this).removeObserver(this)}setOptions(e){let t=this.options,n=y(I,this);if(this.options=y(F,this).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof D(this.options.enabled,y(I,this))!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);b(V,this,an).call(this),y(I,this).setOptions(this.options),t._defaulted&&!nt(this.options,t)&&y(F,this).getQueryCache().notify({type:`observerOptionsUpdated`,query:y(I,this),observer:this});let r=this.hasListeners();r&&un(y(I,this),n,this.options,t)&&b(V,this,Zt).call(this),this.updateResult(),r&&(y(I,this)!==n||D(this.options.enabled,y(I,this))!==D(t.enabled,y(I,this))||E(this.options.staleTime,y(I,this))!==E(t.staleTime,y(I,this)))&&b(V,this,Qt).call(this);let i=b(V,this,$t).call(this);r&&(y(I,this)!==n||D(this.options.enabled,y(I,this))!==D(t.enabled,y(I,this))||i!==y(B,this))&&b(V,this,en).call(this,i)}getOptimisticResult(e){let t=y(F,this).getQueryCache().build(y(F,this),e),n=this.createResult(t,e);return fn(this,n)&&(x(L,this,n),x(Ut,this,this.options),x(Ht,this,y(I,this).state)),n}getCurrentResult(){return y(L,this)}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&y(R,this).status===`pending`&&y(R,this).reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){y(Yt,this).add(e)}getCurrentQuery(){return y(I,this)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=y(F,this).defaultQueryOptions(e),n=y(F,this).getQueryCache().build(y(F,this),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return b(V,this,Zt).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),y(L,this)))}createResult(e,t){let n=y(I,this),r=this.options,i=y(L,this),a=y(Ht,this),o=y(Ut,this),s=e===n?y(Vt,this):e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&cn(e,t),o=i&&un(e,n,t,r);(a||o)&&(l={...l,...Rt(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(y(Kt,this)?.state.data,y(Kt,this)):t.placeholderData,e!==void 0&&(m=`success`,d=st(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===y(Wt,this))d=y(Gt,this);else try{x(Wt,this,t.select),d=t.select(d),d=st(i?.data,d,t),x(Gt,this,d),x(z,this,null)}catch(e){x(z,this,e)}y(z,this)&&(f=y(z,this),d=y(Gt,this),p=Date.now(),m=`error`);let ee=l.fetchStatus===`fetching`,g=m===`pending`,_=m===`error`,v=g&&ee,b=d!==void 0,S={status:m,fetchStatus:l.fetchStatus,isPending:g,isSuccess:m===`success`,isError:_,isInitialLoading:v,isLoading:v,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:ee,isRefetching:ee&&!g,isLoadingError:_&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:_&&b,isStale:dn(e,t),refetch:this.refetch,promise:y(R,this),isEnabled:D(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=S.data!==void 0,r=S.status===`error`&&!t,i=e=>{r?e.reject(S.error):t&&e.resolve(S.data)},a=()=>{i(x(R,this,S.promise=_t()))},o=y(R,this);switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||S.data!==o.value)&&a();break;case`rejected`:(!r||S.error!==o.reason)&&a();break}}return S}updateResult(){let e=y(L,this),t=this.createResult(y(I,this),this.options);x(Ht,this,y(I,this).state),x(Ut,this,this.options),y(Ht,this).data!==void 0&&x(Kt,this,y(I,this)),!nt(t,e)&&(x(L,this,t),b(V,this,on).call(this,{listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!y(Yt,this).size)return!0;let r=new Set(n??y(Yt,this));return this.options.throwOnError&&r.add(`error`),Object.keys(y(L,this)).some(t=>{let n=t;return y(L,this)[n]!==e[n]&&r.has(n)})})()}))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&b(V,this,tn).call(this)}});function Zt(e){b(V,this,an).call(this);let t=y(I,this).fetch(this.options,e);return e?.throwOnError||(t=t.catch(T)),t}function Qt(){b(V,this,nn).call(this);let e=E(this.options.staleTime,y(I,this));if(Ge||y(L,this).isStale||!qe(e))return;let t=Je(y(L,this).dataUpdatedAt,e)+1;x(qt,this,Ue.setTimeout(()=>{y(L,this).isStale||this.updateResult()},t))}function $t(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(y(I,this)):this.options.refetchInterval)??!1}function en(e){b(V,this,rn).call(this),x(B,this,e),!(Ge||D(this.options.enabled,y(I,this))===!1||!qe(y(B,this))||y(B,this)===0)&&x(Jt,this,Ue.setInterval(()=>{(this.options.refetchIntervalInBackground||gt.isFocused())&&b(V,this,Zt).call(this)},y(B,this)))}function tn(){b(V,this,Qt).call(this),b(V,this,en).call(this,b(V,this,$t).call(this))}function nn(){y(qt,this)&&(Ue.clearTimeout(y(qt,this)),x(qt,this,void 0))}function rn(){y(Jt,this)&&(Ue.clearInterval(y(Jt,this)),x(Jt,this,void 0))}function an(){let e=y(F,this).getQueryCache().build(y(F,this),this.options);if(e===y(I,this))return;let t=y(I,this);x(I,this,e),x(Vt,this,e.state),this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}function on(e){k.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(y(L,this))}),y(F,this).getQueryCache().notify({query:y(I,this),type:`observerResultsUpdated`})})}function sn(e,t){return D(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&t.retryOnMount===!1)}function cn(e,t){return sn(e,t)||e.state.data!==void 0&&ln(e,t,t.refetchOnMount)}function ln(e,t,n){if(D(t.enabled,e)!==!1&&E(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&dn(e,t)}return!1}function un(e,t,n,r){return(e!==t||D(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&dn(e,n)}function dn(e,t){return D(t.enabled,e)!==!1&&e.isStaleByTime(E(t.staleTime,e))}function fn(e,t){return!nt(e.getCurrentResult(),t)}function pn(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{pt(e,()=>t.signal,()=>n=!0)},u=dt(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?lt:ct;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?hn:mn,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:mn(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function mn(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function hn(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var gn,H,U,_n,W,vn=(gn=new WeakMap,H=new WeakMap,U=new WeakMap,_n=new WeakMap,W=new WeakSet,class extends jt{constructor(e){super(),_(this,W),v(this,gn,void 0),v(this,H,void 0),v(this,U,void 0),v(this,_n,void 0),x(gn,this,e.client),this.mutationId=e.mutationId,x(U,this,e.mutationCache),x(H,this,[]),this.state=e.state||yn(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){y(H,this).includes(e)||(y(H,this).push(e),this.clearGcTimeout(),y(U,this).notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){x(H,this,y(H,this).filter(t=>t!==e)),this.scheduleGc(),y(U,this).notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){y(H,this).length||(this.state.status===`pending`?this.scheduleGc():y(U,this).remove(this))}continue(){return y(_n,this)?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{b(W,this,G).call(this,{type:`continue`})},n={client:y(gn,this),meta:this.options.meta,mutationKey:this.options.mutationKey};x(_n,this,kt({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{b(W,this,G).call(this,{type:`failed`,failureCount:e,error:t})},onPause:()=>{b(W,this,G).call(this,{type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(U,this).canRun(this)}));let r=this.state.status===`pending`,i=!y(_n,this).canStart();try{if(r)t();else{b(W,this,G).call(this,{type:`pending`,variables:e,isPaused:i}),y(U,this).config.onMutate&&await y(U,this).config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&b(W,this,G).call(this,{type:`pending`,context:t,variables:e,isPaused:i})}let a=await y(_n,this).start();return await y(U,this).config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await y(U,this).config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),b(W,this,G).call(this,{type:`success`,data:a}),a}catch(t){try{await y(U,this).config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await y(U,this).config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw b(W,this,G).call(this,{type:`error`,error:t}),t}finally{y(U,this).runNext(this)}}});function G(e){let t=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=t(this.state),k.batch(()=>{y(H,this).forEach(t=>{t.onMutationUpdate(e)}),y(U,this).notify({mutation:this,type:`updated`,action:e})})}function yn(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var K,q,bn,xn=(K=new WeakMap,q=new WeakMap,bn=new WeakMap,class extends Be{constructor(e={}){super(),v(this,K,void 0),v(this,q,void 0),v(this,bn,void 0),this.config=e,x(K,this,new Set),x(q,this,new Map),x(bn,this,0)}build(e,t,n){var r;let i=new vn({client:e,mutationCache:this,mutationId:x(bn,this,(r=y(bn,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){y(K,this).add(e);let t=Sn(e);if(typeof t==`string`){let n=y(q,this).get(t);n?n.push(e):y(q,this).set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(y(K,this).delete(e)){let t=Sn(e);if(typeof t==`string`){let n=y(q,this).get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&y(q,this).delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Sn(e);if(typeof t==`string`){let n=y(q,this).get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Sn(e);return typeof t==`string`?(y(q,this).get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){k.batch(()=>{y(K,this).forEach(e=>{this.notify({type:`removed`,mutation:e})}),y(K,this).clear(),y(q,this).clear()})}getAll(){return Array.from(y(K,this))}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Xe(t,e))}findAll(e={}){return this.getAll().filter(t=>Xe(e,t))}notify(e){k.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return k.batch(()=>Promise.all(e.map(e=>e.continue().catch(T))))}});function Sn(e){return e.options.scope?.id}var J,Cn=(J=new WeakMap,class extends Be{constructor(e={}){super(),v(this,J,void 0),this.config=e,x(J,this,new Map)}build(e,t,n){let r=t.queryKey,i=t.queryHash??Ze(r,t),a=this.get(i);return a||(a=new Lt({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){y(J,this).has(e.queryHash)||(y(J,this).set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=y(J,this).get(e.queryHash);t&&(e.destroy(),t===e&&y(J,this).delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){k.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return y(J,this).get(e)}getAll(){return[...y(J,this).values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Ye(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Ye(e,t)):t}notify(e){k.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){k.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){k.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}),Y,wn,Tn,En,Dn,X,On,kn,An=(Y=new WeakMap,wn=new WeakMap,Tn=new WeakMap,En=new WeakMap,Dn=new WeakMap,X=new WeakMap,On=new WeakMap,kn=new WeakMap,class{constructor(e={}){v(this,Y,void 0),v(this,wn,void 0),v(this,Tn,void 0),v(this,En,void 0),v(this,Dn,void 0),v(this,X,void 0),v(this,On,void 0),v(this,kn,void 0),x(Y,this,e.queryCache||new Cn),x(wn,this,e.mutationCache||new xn),x(Tn,this,e.defaultOptions||{}),x(En,this,new Map),x(Dn,this,new Map),x(X,this,0)}mount(){var e;x(X,this,(e=y(X,this),e++,e)),y(X,this)===1&&(x(On,this,gt.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(Y,this).onFocus())})),x(kn,this,Tt.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(Y,this).onOnline())})))}unmount(){var e;x(X,this,(e=y(X,this),e--,e)),y(X,this)===0&&(y(On,this)?.call(this),x(On,this,void 0),y(kn,this)?.call(this),x(kn,this,void 0))}isFetching(e){return y(Y,this).findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return y(wn,this).findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return y(Y,this).get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=y(Y,this).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(E(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return y(Y,this).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=y(Y,this).get(r.queryHash)?.state.data,a=Ke(t,i);if(a!==void 0)return y(Y,this).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return k.batch(()=>y(Y,this).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return y(Y,this).get(t.queryHash)?.state}removeQueries(e){let t=y(Y,this);k.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=y(Y,this);return k.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=k.batch(()=>y(Y,this).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(T).catch(T)}invalidateQueries(e,t={}){return k.batch(()=>(y(Y,this).findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=k.batch(()=>y(Y,this).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(T)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(T)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=y(Y,this).build(this,t);return n.isStaleByTime(E(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(T).catch(T)}fetchInfiniteQuery(e){return e.behavior=pn(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(T).catch(T)}ensureInfiniteQueryData(e){return e.behavior=pn(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Tt.isOnline()?y(wn,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(Y,this)}getMutationCache(){return y(wn,this)}getDefaultOptions(){return y(Tn,this)}setDefaultOptions(e){x(Tn,this,e)}setQueryDefaults(e,t){y(En,this).set(Qe(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...y(En,this).values()],n={};return t.forEach(t=>{$e(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){y(Dn,this).set(Qe(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...y(Dn,this).values()],n={};return t.forEach(t=>{$e(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...y(Tn,this).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ze(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ut&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...y(Tn,this).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(Y,this).clear(),y(wn,this).clear()}}),jn=Symbol(`store-raw`),Mn=Symbol(`store-node`),Z=Symbol(`store-has`),Nn=Symbol(`store-self`);function Pn(e){let t=e[f];if(!t&&(Object.defineProperty(e,f,{value:t=new Proxy(e,Vn)}),!Array.isArray(e))){let n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let i=0,a=n.length;i<a;i++){let a=n[i];r[a].get&&Object.defineProperty(e,a,{enumerable:r[a].enumerable,get:r[a].get.bind(t)})}}return t}function Q(e){let t;return typeof e==`object`&&!!e&&(e[f]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Fn(e,t=new Set){let n,r,i,a;if(n=e!=null&&e[jn])return n;if(!Q(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,a=e.length;n<a;n++)i=e[n],(r=Fn(i,t))!==i&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);let n=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let s=0,c=n.length;s<c;s++)a=n[s],!o[a].get&&(i=e[a],(r=Fn(i,t))!==i&&(e[a]=r))}return e}function In(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function Ln(e,t,n){if(e[t])return e[t];let[r,i]=m(n,{equals:!1,internal:!0});return r.$=i,e[t]=r}function Rn(e,t){let n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===f||t===Mn?n:(delete n.value,delete n.writable,n.get=()=>e[f][t],n)}function zn(e){g()&&Ln(In(e,Mn),Nn)()}function Bn(e){return zn(e),Reflect.ownKeys(e)}var Vn={get(e,t,n){if(t===jn)return e;if(t===f)return n;if(t===d)return zn(e),n;let r=In(e,Mn),i=r[t],a=i?i():e[t];if(t===Mn||t===Z||t===`__proto__`)return a;if(!i){let n=Object.getOwnPropertyDescriptor(e,t);g()&&(typeof a!=`function`||e.hasOwnProperty(t))&&!(n&&n.get)&&(a=Ln(r,t,a)())}return Q(a)?Pn(a):a},has(e,t){return t===jn||t===f||t===d||t===Mn||t===Z||t===`__proto__`?!0:(g()&&Ln(In(e,Z),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:Bn,getOwnPropertyDescriptor:Rn};function $(e,t,n,r=!1){if(!r&&e[t]===n)return;let i=e[t],a=e.length;n===void 0?(delete e[t],e[Z]&&e[Z][t]&&i!==void 0&&e[Z][t].$()):(e[t]=n,e[Z]&&e[Z][t]&&i===void 0&&e[Z][t].$());let o=In(e,Mn),s;if((s=Ln(o,t,i))&&s.$(()=>n),Array.isArray(e)&&e.length!==a){for(let t=e.length;t<a;t++)(s=o[t])&&s.$();(s=Ln(o,`length`,a))&&s.$(e.length)}(s=o[Nn])&&s.$()}function Hn(e,t){let n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];$(e,i,t[i])}}function Un(e,t){if(typeof t==`function`&&(t=t(e)),t=Fn(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){let r=t[n];e[n]!==r&&$(e,n,r)}$(e,`length`,r)}else Hn(e,t)}function Wn(e,t,n=[]){let r,i=e;if(t.length>1){r=t.shift();let a=typeof r,o=Array.isArray(e);if(Array.isArray(r)){for(let i=0;i<r.length;i++)Wn(e,[r[i]].concat(t),n);return}else if(o&&a===`function`){for(let i=0;i<e.length;i++)r(e[i],i)&&Wn(e,[i].concat(t),n);return}else if(o&&a===`object`){let{from:i=0,to:a=e.length-1,by:o=1}=r;for(let r=i;r<=a;r+=o)Wn(e,[r].concat(t),n);return}else if(t.length>1){Wn(e[r],t,[r].concat(n));return}i=e[r],n=[r].concat(n)}let a=t[0];typeof a==`function`&&(a=a(i,n),a===i)||r===void 0&&a==null||(a=Fn(a),r===void 0||Q(i)&&Q(a)&&!Array.isArray(a)?Hn(i,a):$(e,r,a))}function Gn(...[e,t]){let n=Fn(e||{}),r=Array.isArray(n),i=Pn(n);function a(...e){l(()=>{r&&e.length===1?Un(n,e[0]):Wn(n,e)})}return[i,a]}var Kn=Symbol(`store-root`);function qn(e,t,n,r,i){let a=t[n];if(e===a)return;let o=Array.isArray(e);if(n!==Kn&&(!Q(e)||!Q(a)||o!==Array.isArray(a)||i&&e[i]!==a[i])){$(t,n,e);return}if(o){if(e.length&&a.length&&(!r||i&&e[0]&&e[0][i]!=null)){let t,n,o,s,c,l,u,d;for(o=0,s=Math.min(a.length,e.length);o<s&&(a[o]===e[o]||i&&a[o]&&e[o]&&a[o][i]&&a[o][i]===e[o][i]);o++)qn(e[o],a,o,r,i);let f=Array(e.length),p=new Map;for(s=a.length-1,c=e.length-1;s>=o&&c>=o&&(a[s]===e[c]||i&&a[s]&&e[c]&&a[s][i]&&a[s][i]===e[c][i]);s--,c--)f[c]=a[s];if(o>c||o>s){for(n=o;n<=c;n++)$(a,n,e[n]);for(;n<e.length;n++)$(a,n,f[n]),qn(e[n],a,n,r,i);a.length>e.length&&$(a,`length`,e.length);return}for(u=Array(c+1),n=c;n>=o;n--)l=e[n],d=i&&l?l[i]:l,t=p.get(d),u[n]=t===void 0?-1:t,p.set(d,n);for(t=o;t<=s;t++)l=a[t],d=i&&l?l[i]:l,n=p.get(d),n!==void 0&&n!==-1&&(f[n]=a[t],n=u[n],p.set(d,n));for(n=o;n<e.length;n++)n in f?($(a,n,f[n]),qn(e[n],a,n,r,i)):$(a,n,e[n])}else for(let t=0,n=e.length;t<n;t++)qn(e[t],a,t,r,i);a.length>e.length&&$(a,`length`,e.length);return}let s=Object.keys(e);for(let t=0,n=s.length;t<n;t++)qn(e[s[t]],a,s[t],r,i);let c=Object.keys(a);for(let t=0,n=c.length;t<n;t++)e[c[t]]===void 0&&$(a,c[t],void 0)}function Jn(e,t={}){let{merge:n,key:r=`id`}=t,i=Fn(e);return e=>{if(!Q(e)||!Q(i))return i;let t=qn(i,{[Kn]:e},Kn,n,r);return t===void 0?e:t}}var Yn=o(void 0),Xn=t=>{if(t)return t;let n=e(Yn);if(!n)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return n()},Zn=e=>(c(t=>(t?.(),e.client.mount(),e.client.unmount.bind(e.client))),n(()=>e.client.unmount()),p(Yn.Provider,{value:()=>e.client,get children(){return e.children}})),Qn=o(()=>!1),$n=()=>e(Qn);Qn.Provider;function er(e,t,n,r){if(n===!1)return t;if(typeof n==`function`){let r=n(e.data,t.data);return{...t,data:r}}let i=t.data;if(e.data===void 0)try{i=structuredClone(i)}catch{}let a=Jn(i,{key:n})(e.data);return{...t,data:a}}var tr=(e,t)=>t;function nr(e,t,r){let i=u(()=>Xn(r?.())),o=$n(),c=u(()=>{let t=i().defaultQueryOptions(e());return t._optimisticResults=o()?`isRestoring`:`optimistic`,t.structuralSharing=!1,t}),l=c(),[d,f]=m(new t(i(),c())),p=d().getOptimisticResult(c()),[h,g]=Gn(p),_=()=>d().subscribe(e=>{p=e,queueMicrotask(()=>{b&&te()})});function v(e){let t=d().options,n=t.reconcile;g(r=>er(r,e,n===void 0?!1:n,t.queryHash))}function y(){return[()=>h,e=>{let t=Fn(h);if(typeof e==`function`&&(e=e(t)),e?.hydrationData){let{hydrationData:t,...n}=e;e=n}v(e)}]}let b=null,x=null,[S,{refetch:te}]=s(()=>{let e=d();return new Promise((t,n)=>{if(x=t,!b&&!o()&&(b=_()),e.updateResult(),p.isError&&!p.isFetching&&!o()&&ft(e.options.throwOnError,[p.error,e.getCurrentQuery()]))return v(p),n(p.error);if(!p.isLoading)return x=null,t(tr(e.getCurrentQuery(),p));v(p)})},{storage:y,get deferStream(){return e().deferStream},onHydrated(e,t){if(t.value&&`hydrationData`in t.value&&bt(i(),{queries:[{...t.value.hydrationData}]}),b)return;let n={...l};(l.staleTime||!l.initialData)&&t.value&&(n.refetchOnMount=!1),d().setOptions(n),v(d().getOptimisticResult(n)),b=_()}});return a(ee(i,e=>{b&&b();let n=new t(e,c());b=_(),f(n)},{defer:!0})),a(ee(o,e=>{e||te()},{defer:!0})),n(()=>{b&&(b(),b=null),x&&(x(p),x=null)}),a(ee([d,c],([e,t])=>{e.setOptions(t),v(e.getOptimisticResult(t)),te()},{defer:!0})),new Proxy(h,{get(e,t){return t===`data`?h.data===void 0?S()?.data:S.latest?.data:Reflect.get(e,t)}})}function rr(e,t){return nr(u(()=>e()),Xt,t)}var ir=new class extends An{constructor(e={}){super(e)}}({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1}}});function ar(...e){let t=[];for(let n of e)or(t,n);return t.join(` `)}function or(e,t){if(!(!t||typeof t==`boolean`)){if(typeof t==`string`||typeof t==`number`){e.push(String(t));return}if(Array.isArray(t)){for(let n of t)or(e,n);return}for(let n of Object.keys(t))t[n]&&e.push(n)}}var sr={skeleton:`tf-1ac2ef`,pulse:`tf-90e981`,container:`tf-e7b9c7`,containerAnimating:`tf-f90944`,backButton:`tf-affc9b`,backButtonExiting:`tf-013ec9`,receiveMethodStableContainer:`tf-dc1cc1`,noBg:`tf-b4f391`,noBorder:`tf-118b57`,noBgNoBorder:`tf-969193`,accentLine:`tf-07225e`,ctaWrapper:`tf-d01dff`,"tf-fade-in":`tf-ed0355`,ctaWrapperReceive:`tf-5bb68c`,footerSlot:`tf-37ddcc`,footerSpacer:`tf-d256dd`,noOffer:`tf-04e1e2`,"tf-slide-up":`tf-b61e63`,noOfferIcon:`tf-d01908`,noOfferText:`tf-1cc72b`,explorerLink:`tf-480f1a`,explorerLinkReceive:`tf-bc7950`,recipientBadge:`tf-d9b7b4`,recipientBadgeEmpty:`tf-9398ea`,recipientBadgeText:`tf-2d9323`,recipientBadgeLocked:`tf-4567e1`,recipientPlaceholder:`tf-58881e`,flexCenter:`tf-c7b4d2`,flexCol:`tf-771a48`,flexRow:`tf-e2b7ba`,flexBetween:`tf-6f7fab`,fadeIn:`tf-b15cde`,idleCard:`tf-52678c`,idleIcon:`tf-25f74d`,idleTitle:`tf-b385cd`,idleSub:`tf-dc46f6`,disabledOpacity:`tf-55c652`,monoAmount:`tf-2ad189`,dividerLine:`tf-192a37`,providerIconInline:`tf-44389f`,payMethodTabs:`tf-58158c`,payMethodTab:`tf-6f8fbb`,payMethodTabActive:`tf-2a2ad5`};export{Ce as _,rr as a,_e as c,de as d,me as f,fe as g,be as h,Zn as i,we as l,Se as m,ar as n,ze as o,xe as p,ir as r,ve as s,sr as t,ce as u};
|