tabby/ee/tabby-webserver/ui/_next/static/chunks/845-c760f8c52c4fcf50.js

9 lines
37 KiB
JavaScript

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[845],{62601:function(t,e,n){"use strict";var r,u;t.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(u=n.g.process)?void 0:u.env)?n.g.process:n(58960)},58960:function(t){!function(){var e={229:function(t){var e,n,r,u=t.exports={};function o(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function c(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(t){n=i}}();var a=[],s=!1,l=-1;function f(){s&&r&&(s=!1,r.length?a=r.concat(a):l=-1,a.length&&d())}function d(){if(!s){var t=c(f);s=!0;for(var e=a.length;e;){for(r=a,a=[];++l<e;)r&&r[l].run();l=-1,e=a.length}r=null,s=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function v(){}u.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];a.push(new p(t,e)),1!==a.length||s||c(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=v,u.addListener=v,u.once=v,u.off=v,u.removeListener=v,u.removeAllListeners=v,u.emit=v,u.prependListener=v,u.prependOnceListener=v,u.listeners=function(t){return[]},u.binding=function(t){throw Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(t){throw Error("process.chdir is not supported")},u.umask=function(){return 0}}},n={};function r(t){var u=n[t];if(void 0!==u)return u.exports;var o=n[t]={exports:{}},i=!0;try{e[t](o,o.exports,r),i=!1}finally{i&&delete n[t]}return o.exports}r.ab="//";var u=r(229);t.exports=u}()},81853:function(t,e,n){"use strict";/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(2265),u="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=r.useState,i=r.useEffect,c=r.useLayoutEffect,a=r.useDebugValue;function s(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!u(t,n)}catch(t){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=o({inst:{value:n,getSnapshot:e}}),u=r[0].inst,l=r[1];return c(function(){u.value=n,u.getSnapshot=e,s(u)&&l({inst:u})},[t,n,e]),i(function(){return s(u)&&l({inst:u}),t(function(){s(u)&&l({inst:u})})},[t]),a(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},26272:function(t,e,n){"use strict";t.exports=n(81853)},13428:function(t,e,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,{Z:function(){return r}})},85744:function(t,e,n){"use strict";function r(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==t||t(r),!1===n||!r.defaultPrevented)return null==e?void 0:e(r)}}n.d(e,{M:function(){return r}})},42210:function(t,e,n){"use strict";n.d(e,{F:function(){return u},e:function(){return o}});var r=n(2265);function u(...t){return e=>t.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}function o(...t){return(0,r.useCallback)(u(...t),t)}},56989:function(t,e,n){"use strict";n.d(e,{b:function(){return o},k:function(){return u}});var r=n(2265);function u(t,e){let n=(0,r.createContext)(e);function u(t){let{children:e,...u}=t,o=(0,r.useMemo)(()=>u,Object.values(u));return(0,r.createElement)(n.Provider,{value:o},e)}return u.displayName=t+"Provider",[u,function(u){let o=(0,r.useContext)(n);if(o)return o;if(void 0!==e)return e;throw Error(`\`${u}\` must be used within \`${t}\``)}]}function o(t,e=[]){let n=[],u=()=>{let e=n.map(t=>(0,r.createContext)(t));return function(n){let u=(null==n?void 0:n[t])||e;return(0,r.useMemo)(()=>({[`__scope${t}`]:{...n,[t]:u}}),[n,u])}};return u.scopeName=t,[function(e,u){let o=(0,r.createContext)(u),i=n.length;function c(e){let{scope:n,children:u,...c}=e,a=(null==n?void 0:n[t][i])||o,s=(0,r.useMemo)(()=>c,Object.values(c));return(0,r.createElement)(a.Provider,{value:s},u)}return n=[...n,u],c.displayName=e+"Provider",[c,function(n,c){let a=(null==c?void 0:c[t][i])||o,s=(0,r.useContext)(a);if(s)return s;if(void 0!==u)return u;throw Error(`\`${n}\` must be used within \`${e}\``)}]},function(...t){let e=t[0];if(1===t.length)return e;let n=()=>{let n=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let u=n.reduce((e,{useScope:n,scopeName:r})=>{let u=n(t),o=u[`__scope${r}`];return{...e,...o}},{});return(0,r.useMemo)(()=>({[`__scope${e.scopeName}`]:u}),[u])}};return n.scopeName=e.scopeName,n}(u,...e)]}},20966:function(t,e,n){"use strict";n.d(e,{M:function(){return a}});var r,u=n(2265),o=n(51030);let i=(r||(r=n.t(u,2)))["useId".toString()]||(()=>void 0),c=0;function a(t){let[e,n]=u.useState(i());return(0,o.b)(()=>{t||n(t=>null!=t?t:String(c++))},[t]),t||(e?`radix-${e}`:"")}},85606:function(t,e,n){"use strict";n.d(e,{z:function(){return c}});var r=n(2265),u=n(54887),o=n(42210),i=n(51030);let c=t=>{let{present:e,children:n}=t,c=function(t){var e;let[n,o]=(0,r.useState)(),c=(0,r.useRef)({}),s=(0,r.useRef)(t),l=(0,r.useRef)("none"),f=t?"mounted":"unmounted",[d,p]=(e={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((t,n)=>{let r=e[t][n];return null!=r?r:t},f));return(0,r.useEffect)(()=>{let t=a(c.current);l.current="mounted"===d?t:"none"},[d]),(0,i.b)(()=>{let e=c.current,n=s.current,r=n!==t;if(r){let r=l.current,u=a(e);t?p("MOUNT"):"none"===u||(null==e?void 0:e.display)==="none"?p("UNMOUNT"):n&&r!==u?p("ANIMATION_OUT"):p("UNMOUNT"),s.current=t}},[t,p]),(0,i.b)(()=>{if(n){let t=t=>{let e=a(c.current),r=e.includes(t.animationName);t.target===n&&r&&(0,u.flushSync)(()=>p("ANIMATION_END"))},e=t=>{t.target===n&&(l.current=a(c.current))};return n.addEventListener("animationstart",e),n.addEventListener("animationcancel",t),n.addEventListener("animationend",t),()=>{n.removeEventListener("animationstart",e),n.removeEventListener("animationcancel",t),n.removeEventListener("animationend",t)}}p("ANIMATION_END")},[n,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:(0,r.useCallback)(t=>{t&&(c.current=getComputedStyle(t)),o(t)},[])}}(e),s="function"==typeof n?n({present:c.isPresent}):r.Children.only(n),l=(0,o.e)(c.ref,s.ref),f="function"==typeof n;return f||c.isPresent?(0,r.cloneElement)(s,{ref:l}):null};function a(t){return(null==t?void 0:t.animationName)||"none"}c.displayName="Presence"},9381:function(t,e,n){"use strict";n.d(e,{WV:function(){return c},jH:function(){return a}});var r=n(13428),u=n(2265),o=n(54887),i=n(67256);let c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((t,e)=>{let n=(0,u.forwardRef)((t,n)=>{let{asChild:o,...c}=t,a=o?i.g7:e;return(0,u.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,u.createElement)(a,(0,r.Z)({},c,{ref:n}))});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function a(t,e){t&&(0,o.flushSync)(()=>t.dispatchEvent(e))}},67256:function(t,e,n){"use strict";n.d(e,{A4:function(){return a},g7:function(){return i}});var r=n(13428),u=n(2265),o=n(42210);let i=(0,u.forwardRef)((t,e)=>{let{children:n,...o}=t,i=u.Children.toArray(n),a=i.find(s);if(a){let t=a.props.children,n=i.map(e=>e!==a?e:u.Children.count(t)>1?u.Children.only(null):(0,u.isValidElement)(t)?t.props.children:null);return(0,u.createElement)(c,(0,r.Z)({},o,{ref:e}),(0,u.isValidElement)(t)?(0,u.cloneElement)(t,void 0,n):null)}return(0,u.createElement)(c,(0,r.Z)({},o,{ref:e}),n)});i.displayName="Slot";let c=(0,u.forwardRef)((t,e)=>{let{children:n,...r}=t;return(0,u.isValidElement)(n)?(0,u.cloneElement)(n,{...function(t,e){let n={...e};for(let r in e){let u=t[r],o=e[r],i=/^on[A-Z]/.test(r);i?u&&o?n[r]=(...t)=>{o(...t),u(...t)}:u&&(n[r]=u):"style"===r?n[r]={...u,...o}:"className"===r&&(n[r]=[u,o].filter(Boolean).join(" "))}return{...t,...n}}(r,n.props),ref:e?(0,o.F)(e,n.ref):n.ref}):u.Children.count(n)>1?u.Children.only(null):null});c.displayName="SlotClone";let a=({children:t})=>(0,u.createElement)(u.Fragment,null,t);function s(t){return(0,u.isValidElement)(t)&&t.type===a}},16459:function(t,e,n){"use strict";n.d(e,{W:function(){return u}});var r=n(2265);function u(t){let e=(0,r.useRef)(t);return(0,r.useEffect)(()=>{e.current=t}),(0,r.useMemo)(()=>(...t)=>{var n;return null===(n=e.current)||void 0===n?void 0:n.call(e,...t)},[])}},73763:function(t,e,n){"use strict";n.d(e,{T:function(){return o}});var r=n(2265),u=n(16459);function o({prop:t,defaultProp:e,onChange:n=()=>{}}){let[o,i]=function({defaultProp:t,onChange:e}){let n=(0,r.useState)(t),[o]=n,i=(0,r.useRef)(o),c=(0,u.W)(e);return(0,r.useEffect)(()=>{i.current!==o&&(c(o),i.current=o)},[o,i,c]),n}({defaultProp:e,onChange:n}),c=void 0!==t,a=c?t:o,s=(0,u.W)(n),l=(0,r.useCallback)(e=>{if(c){let n="function"==typeof e?e(t):e;n!==t&&s(n)}else i(e)},[c,t,i,s]);return[a,l]}},12488:function(t,e,n){"use strict";n.d(e,{e:function(){return o}});var r=n(2265),u=n(16459);function o(t,e=null==globalThis?void 0:globalThis.document){let n=(0,u.W)(t);(0,r.useEffect)(()=>{let t=t=>{"Escape"===t.key&&n(t)};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)},[n,e])}},51030:function(t,e,n){"use strict";n.d(e,{b:function(){return u}});var r=n(2265);let u=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},97461:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n(26785),u=function(t,e){for(var n=t.length;n--;)if((0,r.Z)(t[n][0],e))return n;return -1},o=Array.prototype.splice;function i(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}i.prototype.clear=function(){this.__data__=[],this.size=0},i.prototype.delete=function(t){var e=this.__data__,n=u(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)},i.prototype.get=function(t){var e=this.__data__,n=u(e,t);return n<0?void 0:e[n][1]},i.prototype.has=function(t){return u(this.__data__,t)>-1},i.prototype.set=function(t,e){var n=this.__data__,r=u(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var c=i},6219:function(t,e,n){"use strict";var r=n(12805),u=n(90440),o=(0,r.Z)(u.Z,"Map");e.Z=o},90728:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var r=(0,n(12805).Z)(Object,"create"),u=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function i(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}i.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},i.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},i.prototype.get=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return u.call(e,t)?e[t]:void 0},i.prototype.has=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)},i.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this};var c=n(97461),a=n(6219),s=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},l=function(t,e){var n=t.__data__;return s(e)?n["string"==typeof e?"string":"hash"]:n.map};function f(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}f.prototype.clear=function(){this.size=0,this.__data__={hash:new i,map:new(a.Z||c.Z),string:new i}},f.prototype.delete=function(t){var e=l(this,t).delete(t);return this.size-=e?1:0,e},f.prototype.get=function(t){return l(this,t).get(t)},f.prototype.has=function(t){return l(this,t).has(t)},f.prototype.set=function(t,e){var n=l(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var d=f},34463:function(t,e,n){"use strict";var r=n(90440).Z.Symbol;e.Z=r},86070:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},u=n(98220),o=n(5541),i=n(55250),c=n(60176),a=n(36773),s=Object.prototype.hasOwnProperty,l=function(t,e){var n=(0,o.Z)(t),l=!n&&(0,u.Z)(t),f=!n&&!l&&(0,i.Z)(t),d=!n&&!l&&!f&&(0,a.Z)(t),p=n||l||f||d,v=p?r(t.length,String):[],h=v.length;for(var y in t)(e||s.call(t,y))&&!(p&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||(0,c.Z)(y,h)))&&v.push(y);return v}},89688:function(t,e){"use strict";e.Z=function(t,e){for(var n=-1,r=null==t?0:t.length,u=Array(r);++n<r;)u[n]=e(t[n],n,t);return u}},35563:function(t,e){"use strict";e.Z=function(t,e){for(var n=-1,r=e.length,u=t.length;++n<r;)t[u+n]=e[n];return t}},89088:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(12805),u=function(){try{var t=(0,r.Z)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),o=function(t,e,n){"__proto__"==e&&u?u(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},95157:function(t,e,n){"use strict";var r=n(12930),u=n(16422);e.Z=function(t,e){e=(0,r.Z)(e,t);for(var n=0,o=e.length;null!=t&&n<o;)t=t[(0,u.Z)(e[n++])];return n&&n==o?t:void 0}},41926:function(t,e,n){"use strict";var r=n(35563),u=n(5541);e.Z=function(t,e,n){var o=e(t);return(0,u.Z)(t)?o:(0,r.Z)(o,n(t))}},87916:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r=n(34463),u=Object.prototype,o=u.hasOwnProperty,i=u.toString,c=r.Z?r.Z.toStringTag:void 0,a=function(t){var e=o.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var u=i.call(t);return r&&(e?t[c]=n:delete t[c]),u},s=Object.prototype.toString,l=r.Z?r.Z.toStringTag:void 0,f=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":l&&l in Object(t)?a(t):s.call(t)}},42824:function(t,e,n){"use strict";n.d(e,{Z:function(){return tv}});var r=n(97461),u=n(6219),o=n(90728);function i(t){var e=this.__data__=new r.Z(t);this.size=e.size}function c(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new o.Z;++e<n;)this.add(t[e])}i.prototype.clear=function(){this.__data__=new r.Z,this.size=0},i.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},i.prototype.get=function(t){return this.__data__.get(t)},i.prototype.has=function(t){return this.__data__.has(t)},i.prototype.set=function(t,e){var n=this.__data__;if(n instanceof r.Z){var i=n.__data__;if(!u.Z||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new o.Z(i)}return n.set(t,e),this.size=n.size,this},c.prototype.add=c.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},c.prototype.has=function(t){return this.__data__.has(t)};var a=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},s=function(t,e,n,r,u,o){var i=1&n,s=t.length,l=e.length;if(s!=l&&!(i&&l>s))return!1;var f=o.get(t),d=o.get(e);if(f&&d)return f==e&&d==t;var p=-1,v=!0,h=2&n?new c:void 0;for(o.set(t,e),o.set(e,t);++p<s;){var y=t[p],b=e[p];if(r)var _=i?r(b,y,p,e,t,o):r(y,b,p,t,e,o);if(void 0!==_){if(_)continue;v=!1;break}if(h){if(!a(e,function(t,e){if(!h.has(e)&&(y===t||u(y,t,n,r,o)))return h.push(e)})){v=!1;break}}else if(!(y===b||u(y,b,n,r,o))){v=!1;break}}return o.delete(t),o.delete(e),v},l=n(34463),f=n(90440),d=f.Z.Uint8Array,p=n(26785),v=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n},h=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n},y=l.Z?l.Z.prototype:void 0,b=y?y.valueOf:void 0,_=function(t,e,n,r,u,o,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!o(new d(t),new d(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,p.Z)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var c=v;case"[object Set]":var a=1&r;if(c||(c=h),t.size!=e.size&&!a)break;var l=i.get(t);if(l)return l==e;r|=2,i.set(t,e);var f=s(c(t),c(e),r,u,o,i);return i.delete(t),f;case"[object Symbol]":if(b)return b.call(t)==b.call(e)}return!1},g=n(41926),m=n(82787),Z=n(35805),w=function(t){return(0,g.Z)(t,Z.Z,m.Z)},E=Object.prototype.hasOwnProperty,j=function(t,e,n,r,u,o){var i=1&n,c=w(t),a=c.length;if(a!=w(e).length&&!i)return!1;for(var s=a;s--;){var l=c[s];if(!(i?l in e:E.call(e,l)))return!1}var f=o.get(t),d=o.get(e);if(f&&d)return f==e&&d==t;var p=!0;o.set(t,e),o.set(e,t);for(var v=i;++s<a;){var h=t[l=c[s]],y=e[l];if(r)var b=i?r(y,h,l,e,t,o):r(h,y,l,t,e,o);if(!(void 0===b?h===y||u(h,y,n,r,o):b)){p=!1;break}v||(v="constructor"==l)}if(p&&!v){var _=t.constructor,g=e.constructor;_!=g&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof g&&g instanceof g)&&(p=!1)}return o.delete(t),o.delete(e),p},O=n(12805),T=(0,O.Z)(f.Z,"DataView"),S=(0,O.Z)(f.Z,"Promise"),N=(0,O.Z)(f.Z,"Set"),A=(0,O.Z)(f.Z,"WeakMap"),R=n(87916),k=n(1355),C="[object Map]",L="[object Promise]",x="[object Set]",P="[object WeakMap]",V="[object DataView]",M=(0,k.Z)(T),I=(0,k.Z)(u.Z),$=(0,k.Z)(S),D=(0,k.Z)(N),z=(0,k.Z)(A),U=R.Z;(T&&U(new T(new ArrayBuffer(1)))!=V||u.Z&&U(new u.Z)!=C||S&&U(S.resolve())!=L||N&&U(new N)!=x||A&&U(new A)!=P)&&(U=function(t){var e=(0,R.Z)(t),n="[object Object]"==e?t.constructor:void 0,r=n?(0,k.Z)(n):"";if(r)switch(r){case M:return V;case I:return C;case $:return L;case D:return x;case z:return P}return e});var F=U,W=n(5541),B=n(55250),q=n(36773),J="[object Arguments]",Y="[object Array]",G="[object Object]",H=Object.prototype.hasOwnProperty,K=function(t,e,n,r,u,o){var c=(0,W.Z)(t),a=(0,W.Z)(e),l=c?Y:F(t),f=a?Y:F(e);l=l==J?G:l,f=f==J?G:f;var d=l==G,p=f==G,v=l==f;if(v&&(0,B.Z)(t)){if(!(0,B.Z)(e))return!1;c=!0,d=!1}if(v&&!d)return o||(o=new i),c||(0,q.Z)(t)?s(t,e,n,r,u,o):_(t,e,l,n,r,u,o);if(!(1&n)){var h=d&&H.call(t,"__wrapped__"),y=p&&H.call(e,"__wrapped__");if(h||y){var b=h?t.value():t,g=y?e.value():e;return o||(o=new i),u(b,g,n,r,o)}}return!!v&&(o||(o=new i),j(t,e,n,r,u,o))},Q=n(92403),X=function t(e,n,r,u,o){return e===n||(null!=e&&null!=n&&((0,Q.Z)(e)||(0,Q.Z)(n))?K(e,n,r,u,t,o):e!=e&&n!=n)},tt=function(t,e,n,r){var u=n.length,o=u,c=!r;if(null==t)return!o;for(t=Object(t);u--;){var a=n[u];if(c&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++u<o;){var s=(a=n[u])[0],l=t[s],f=a[1];if(c&&a[2]){if(void 0===l&&!(s in t))return!1}else{var d=new i;if(r)var p=r(l,f,s,t,e,d);if(!(void 0===p?X(f,l,3,r,d):p))return!1}}return!0},te=n(64164),tn=function(t){return t==t&&!(0,te.Z)(t)},tr=function(t){for(var e=(0,Z.Z)(t),n=e.length;n--;){var r=e[n],u=t[r];e[n]=[r,u,tn(u)]}return e},tu=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}},to=function(t){var e=tr(t);return 1==e.length&&e[0][2]?tu(e[0][0],e[0][1]):function(n){return n===t||tt(n,t,e)}},ti=n(95157),tc=function(t,e,n){var r=null==t?void 0:(0,ti.Z)(t,e);return void 0===r?n:r},ta=function(t,e){return null!=t&&e in Object(t)},ts=n(12494),tl=n(54770),tf=n(16422),td=function(t){return t},tp=function(t){var e;return(0,tl.Z)(t)?(e=(0,tf.Z)(t),function(t){return null==t?void 0:t[e]}):function(e){return(0,ti.Z)(e,t)}},tv=function(t){if("function"==typeof t)return t;if(null==t)return td;if("object"==typeof t){var e,n;return(0,W.Z)(t)?(e=t[0],n=t[1],(0,tl.Z)(e)&&tn(n)?tu((0,tf.Z)(e),n):function(t){var r=tc(t,e);return void 0===r&&r===n?null!=t&&(0,ts.Z)(t,e,ta):X(n,r,3)}):to(t)}return tp(t)}},12930:function(t,e,n){"use strict";n.d(e,{Z:function(){return g}});var r,u,o=n(5541),i=n(54770),c=n(90728);function a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,u=e?e.apply(this,r):r[0],o=n.cache;if(o.has(u))return o.get(u);var i=t.apply(this,r);return n.cache=o.set(u,i)||o,i};return n.cache=new(a.Cache||c.Z),n}a.Cache=c.Z;var s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,f=(u=(r=a(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(s,function(t,n,r,u){e.push(r?u.replace(l,"$1"):n||t)}),e},function(t){return 500===u.size&&u.clear(),t})).cache,r),d=n(34463),p=n(89688),v=n(45856),h=1/0,y=d.Z?d.Z.prototype:void 0,b=y?y.toString:void 0,_=function t(e){if("string"==typeof e)return e;if((0,o.Z)(e))return(0,p.Z)(e,t)+"";if((0,v.Z)(e))return b?b.call(e):"";var n=e+"";return"0"==n&&1/e==-h?"-0":n},g=function(t,e){return(0,o.Z)(t)?t:(0,i.Z)(t,e)?[t]:f(null==t?"":_(t))}},18838:function(t,e){"use strict";var n="object"==typeof global&&global&&global.Object===Object&&global;e.Z=n},12805:function(t,e,n){"use strict";n.d(e,{Z:function(){return v}});var r,u=n(85491),o=n(90440).Z["__core-js_shared__"],i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",c=n(64164),a=n(1355),s=/^\[object .+?Constructor\]$/,l=Object.prototype,f=Function.prototype.toString,d=l.hasOwnProperty,p=RegExp("^"+f.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=function(t,e){var n,r=null==t?void 0:t[e];return(n=r,(0,c.Z)(n)&&(!i||!(i in n))&&((0,u.Z)(n)?p:s).test((0,a.Z)(n)))?r:void 0}},82787:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=function(t,e){for(var n=-1,r=null==t?0:t.length,u=0,o=[];++n<r;){var i=t[n];e(i,n,t)&&(o[u++]=i)}return o},u=n(26772),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,c=i?function(t){return null==t?[]:r(i(t=Object(t)),function(e){return o.call(t,e)})}:u.Z},12494:function(t,e,n){"use strict";var r=n(12930),u=n(98220),o=n(5541),i=n(60176),c=n(1758),a=n(16422);e.Z=function(t,e,n){e=(0,r.Z)(e,t);for(var s=-1,l=e.length,f=!1;++s<l;){var d=(0,a.Z)(e[s]);if(!(f=null!=t&&n(t,d)))break;t=t[d]}return f||++s!=l?f:!!(l=null==t?0:t.length)&&(0,c.Z)(l)&&(0,i.Z)(d,l)&&((0,o.Z)(t)||(0,u.Z)(t))}},60176:function(t,e){"use strict";var n=/^(?:0|[1-9]\d*)$/;e.Z=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},54770:function(t,e,n){"use strict";var r=n(5541),u=n(45856),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.Z=function(t,e){if((0,r.Z)(t))return!1;var n=typeof t;return!!("number"==n||"symbol"==n||"boolean"==n||null==t||(0,u.Z)(t))||i.test(t)||!o.test(t)||null!=e&&t in Object(e)}},26343:function(t,e){"use strict";var n=Object.prototype;e.Z=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},16917:function(t,e){"use strict";e.Z=function(t,e){return function(n){return t(e(n))}}},90440:function(t,e,n){"use strict";var r=n(18838),u="object"==typeof self&&self&&self.Object===Object&&self,o=r.Z||u||Function("return this")();e.Z=o},16422:function(t,e,n){"use strict";var r=n(45856),u=1/0;e.Z=function(t){if("string"==typeof t||(0,r.Z)(t))return t;var e=t+"";return"0"==e&&1/t==-u?"-0":e}},1355:function(t,e){"use strict";var n=Function.prototype.toString;e.Z=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},26785:function(t,e){"use strict";e.Z=function(t,e){return t===e||t!=t&&e!=e}},16630:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=function(t,e,n,r){for(var u=t.length,o=n+(r?1:-1);r?o--:++o<u;)if(e(t[o],o,t))return o;return -1},u=n(42824),o=n(41690),i=Math.max,c=function(t,e,n){var c=null==t?0:t.length;if(!c)return -1;var a=null==n?0:(0,o.Z)(n);return a<0&&(a=i(c+a,0)),r(t,(0,u.Z)(e,3),a)}},98220:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(87916),u=n(92403),o=function(t){return(0,u.Z)(t)&&"[object Arguments]"==(0,r.Z)(t)},i=Object.prototype,c=i.hasOwnProperty,a=i.propertyIsEnumerable,s=o(function(){return arguments}())?o:function(t){return(0,u.Z)(t)&&c.call(t,"callee")&&!a.call(t,"callee")}},5541:function(t,e){"use strict";var n=Array.isArray;e.Z=n},85222:function(t,e,n){"use strict";var r=n(85491),u=n(1758);e.Z=function(t){return null!=t&&(0,u.Z)(t.length)&&!(0,r.Z)(t)}},55250:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n(90440),u="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=u&&"object"==typeof module&&module&&!module.nodeType&&module,i=o&&o.exports===u?r.Z.Buffer:void 0,c=(i?i.isBuffer:void 0)||function(){return!1}},85491:function(t,e,n){"use strict";var r=n(87916),u=n(64164);e.Z=function(t){if(!(0,u.Z)(t))return!1;var e=(0,r.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1758:function(t,e){"use strict";e.Z=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},64164:function(t,e){"use strict";e.Z=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},92403:function(t,e){"use strict";e.Z=function(t){return null!=t&&"object"==typeof t}},45856:function(t,e,n){"use strict";var r=n(87916),u=n(92403);e.Z=function(t){return"symbol"==typeof t||(0,u.Z)(t)&&"[object Symbol]"==(0,r.Z)(t)}},36773:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var r=n(87916),u=n(1758),o=n(92403),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;var c=n(18838),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=a&&"object"==typeof module&&module&&!module.nodeType&&module,l=s&&s.exports===a&&c.Z.process,f=function(){try{var t=s&&s.require&&s.require("util").types;if(t)return t;return l&&l.binding&&l.binding("util")}catch(t){}}(),d=f&&f.isTypedArray,p=d?function(t){return d(t)}:function(t){return(0,o.Z)(t)&&(0,u.Z)(t.length)&&!!i[(0,r.Z)(t)]}},35805:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(86070),u=n(26343),o=(0,n(16917).Z)(Object.keys,Object),i=Object.prototype.hasOwnProperty,c=function(t){if(!(0,u.Z)(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e},a=n(85222),s=function(t){return(0,a.Z)(t)?(0,r.Z)(t):c(t)}},26772:function(t,e){"use strict";e.Z=function(){return[]}},41690:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(4091),u=1/0,o=function(t){var e,n=(e=t)?(e=(0,r.Z)(e))===u||e===-u?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0,o=n%1;return n==n?o?n-o:n:0}},4091:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var r=/\s/,u=function(t){for(var e=t.length;e--&&r.test(t.charAt(e)););return e},o=/^\s+/,i=n(64164),c=n(45856),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,f=/^0o[0-7]+$/i,d=parseInt,p=function(t){if("number"==typeof t)return t;if((0,c.Z)(t))return a;if((0,i.Z)(t)){var e,n="function"==typeof t.valueOf?t.valueOf():t;t=(0,i.Z)(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=(e=t)?e.slice(0,u(e)+1).replace(o,""):e;var r=l.test(t);return r||f.test(t)?d(t.slice(2),r?2:8):s.test(t)?a:+t}},44796:function(t,e,n){"use strict";n.d(e,{$l:function(){return i},BN:function(){return V},DY:function(){return v},J$:function(){return W},JN:function(){return Z},LI:function(){return A},PM:function(){return s},W6:function(){return S},i_:function(){return o},ko:function(){return K},kw:function(){return N},mf:function(){return a},o8:function(){return c},qC:function(){return C},s6:function(){return H},sj:function(){return P},u3:function(){return x},u_:function(){return z},w6:function(){return T},xD:function(){return Q}});var r=n(2265);let u=()=>{},o=u(),i=Object,c=t=>t===o,a=t=>"function"==typeof t,s=(t,e)=>({...t,...e}),l=t=>a(t.then),f=new WeakMap,d=0,p=t=>{let e,n;let r=typeof t,u=t&&t.constructor,o=u==Date;if(i(t)!==t||o||u==RegExp)e=o?t.toJSON():"symbol"==r?t.toString():"string"==r?JSON.stringify(t):""+t;else{if(e=f.get(t))return e;if(e=++d+"~",f.set(t,e),u==Array){for(n=0,e="@";n<t.length;n++)e+=p(t[n])+",";f.set(t,e)}if(u==i){e="#";let r=i.keys(t).sort();for(;!c(n=r.pop());)c(t[n])||(e+=n+":"+p(t[n])+",");f.set(t,e)}}return e},v=new WeakMap,h={},y={},b="undefined",_=typeof window!=b,g=typeof document!=b,m=()=>_&&typeof window.requestAnimationFrame!=b,Z=(t,e)=>{let n=v.get(t);return[()=>!c(e)&&t.get(e)||h,r=>{if(!c(e)){let u=t.get(e);e in y||(y[e]=u),n[5](e,s(u,r),u||h)}},n[6],()=>!c(e)&&e in y?y[e]:!c(e)&&t.get(e)||h]},w=!0,[E,j]=_&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[u,u],O={initFocus:t=>(g&&document.addEventListener("visibilitychange",t),E("focus",t),()=>{g&&document.removeEventListener("visibilitychange",t),j("focus",t)}),initReconnect:t=>{let e=()=>{w=!0,t()},n=()=>{w=!1};return E("online",e),E("offline",n),()=>{j("online",e),j("offline",n)}}},T=!r.useId,S=!_||"Deno"in window,N=t=>m()?window.requestAnimationFrame(t):setTimeout(t,1),A=S?r.useEffect:r.useLayoutEffect,R="undefined"!=typeof navigator&&navigator.connection,k=!S&&R&&(["slow-2g","2g"].includes(R.effectiveType)||R.saveData),C=t=>{if(a(t))try{t=t()}catch(e){t=""}let e=t;return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?p(t):"",e]},L=0,x=()=>++L;var P={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function V(...t){let[e,n,r,u]=t,i=s({populateCache:!0,throwOnError:!0},"boolean"==typeof u?{revalidate:u}:u||{}),f=i.populateCache,d=i.rollbackOnError,p=i.optimisticData,h=!1!==i.revalidate,y=t=>"function"==typeof d?d(t):!1!==d,b=i.throwOnError;if(a(n)){let t=[],r=e.keys();for(let u of r)!/^\$(inf|sub)\$/.test(u)&&n(e.get(u)._k)&&t.push(u);return Promise.all(t.map(_))}return _(n);async function _(n){let u;let[i]=C(n);if(!i)return;let[s,d]=Z(e,i),[_,g,m,w]=v.get(e),E=()=>{let t=_[i];return h&&(delete m[i],delete w[i],t&&t[0])?t[0](2).then(()=>s().data):s().data};if(t.length<3)return E();let j=r,O=x();g[i]=[O,0];let T=!c(p),S=s(),N=S.data,A=S._c,R=c(A)?N:A;if(T&&d({data:p=a(p)?p(R,N):p,_c:R}),a(j))try{j=j(R)}catch(t){u=t}if(j&&l(j)){if(j=await j.catch(t=>{u=t}),O!==g[i][0]){if(u)throw u;return j}u&&T&&y(u)&&(f=!0,d({data:R,_c:o}))}if(f&&!u){if(a(f)){let t=f(j,R);d({data:t,error:o,_c:o})}else d({data:j,error:o,_c:o})}if(g[i][1]=x(),Promise.resolve(E()).then(()=>{d({_c:o})}),u){if(b)throw u;return}return j}}let M=(t,e)=>{for(let n in t)t[n][0]&&t[n][0](e)},I=(t,e)=>{if(!v.has(t)){let n=s(O,e),r={},i=V.bind(o,t),c=u,a={},l=(t,e)=>{let n=a[t]||[];return a[t]=n,n.push(e),()=>n.splice(n.indexOf(e),1)},f=(e,n,r)=>{t.set(e,n);let u=a[e];if(u)for(let t of u)t(n,r)},d=()=>{if(!v.has(t)&&(v.set(t,[r,{},{},{},i,f,l]),!S)){let e=n.initFocus(setTimeout.bind(o,M.bind(o,r,0))),u=n.initReconnect(setTimeout.bind(o,M.bind(o,r,1)));c=()=>{e&&e(),u&&u(),v.delete(t)}}};return d(),[t,i,d,c]}return[t,v.get(t)[4]]},[$,D]=I(new Map),z=s({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(t,e,n,r,u)=>{let o=n.errorRetryCount,i=u.retryCount,a=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;(c(o)||!(i>o))&&setTimeout(r,a,u)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:k?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:k?5e3:3e3,compare:(t,e)=>p(t)==p(e),isPaused:()=>!1,cache:$,mutate:D,fallback:{}},{isOnline:()=>w,isVisible:()=>{let t=g&&document.visibilityState;return c(t)||"hidden"!==t}}),U=(t,e)=>{let n=s(t,e);if(e){let{use:r,fallback:u}=t,{use:o,fallback:i}=e;r&&o&&(n.use=r.concat(o)),u&&i&&(n.fallback=s(u,i))}return n},F=(0,r.createContext)({}),W=t=>{let{value:e}=t,n=(0,r.useContext)(F),u=a(e),i=(0,r.useMemo)(()=>u?e(n):e,[u,n,e]),c=(0,r.useMemo)(()=>u?i:U(n,i),[u,n,i]),l=i&&i.provider,f=(0,r.useRef)(o);l&&!f.current&&(f.current=I(l(c.cache||$),i));let d=f.current;return d&&(c.cache=d[0],c.mutate=d[1]),A(()=>{if(d)return d[2]&&d[2](),d[3]},[]),(0,r.createElement)(F.Provider,s(t,{value:c}))},B=_&&window.__SWR_DEVTOOLS_USE__,q=B?window.__SWR_DEVTOOLS_USE__:[],J=t=>a(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}],Y=()=>s(z,(0,r.useContext)(F)),G=q.concat(t=>(e,n,r)=>{let u=n&&((...t)=>{let[r]=C(e),[,,,u]=v.get($);if(r.startsWith("$inf$"))return n(...t);let o=u[r];return c(o)?n(...t):(delete u[r],o)});return t(e,u,r)}),H=t=>function(...e){let n=Y(),[r,u,o]=J(e),i=U(n,o),c=t,{use:a}=i,s=(a||[]).concat(G);for(let t=s.length;t--;)c=s[t](c);return c(r,u||i.fetcher||null,i)},K=(t,e,n)=>{let r=e[t]||(e[t]=[]);return r.push(n),()=>{let t=r.indexOf(n);t>=0&&(r[t]=r[r.length-1],r.pop())}},Q=(t,e)=>(...n)=>{let[r,u,o]=J(n),i=(o.use||[]).concat(e);return t(r,u,{...o,use:i})};B&&(window.__SWR_DEVTOOLS_REACT__=r)},30713:function(t,e,n){"use strict";n.d(e,{ZP:function(){return a}});var r=n(2265),u=n(26272),o=n(44796);let i=r.use||(t=>{if("pending"===t.status)throw t;if("fulfilled"===t.status)return t.value;if("rejected"===t.status)throw t.reason;throw t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}),t}),c={dedupe:!0};o.$l.defineProperty(o.J$,"defaultValue",{value:o.u_});let a=(0,o.s6)((t,e,n)=>{let{cache:a,compare:s,suspense:l,fallbackData:f,revalidateOnMount:d,revalidateIfStale:p,refreshInterval:v,refreshWhenHidden:h,refreshWhenOffline:y,keepPreviousData:b}=n,[_,g,m,Z]=o.DY.get(a),[w,E]=(0,o.qC)(t),j=(0,r.useRef)(!1),O=(0,r.useRef)(!1),T=(0,r.useRef)(w),S=(0,r.useRef)(e),N=(0,r.useRef)(n),A=()=>N.current,R=()=>A().isVisible()&&A().isOnline(),[k,C,L,x]=(0,o.JN)(a,w),P=(0,r.useRef)({}).current,V=(0,o.o8)(f)?n.fallback[w]:f,M=(t,e)=>{for(let n in P)if("data"===n){if(!s(t[n],e[n])&&(!(0,o.o8)(t[n])||!s(q,e[n])))return!1}else if(e[n]!==t[n])return!1;return!0},I=(0,r.useMemo)(()=>{let t=!!w&&!!e&&((0,o.o8)(d)?!A().isPaused()&&!l&&(!!(0,o.o8)(p)||p):d),n=e=>{let n=(0,o.PM)(e);return(delete n._k,t)?{isValidating:!0,isLoading:!0,...n}:n},r=k(),u=x(),i=n(r),c=r===u?i:n(u),a=i;return[()=>{let t=n(k()),e=M(t,a);return e?(a.data=t.data,a.isLoading=t.isLoading,a.isValidating=t.isValidating,a.error=t.error,a):(a=t,t)},()=>c]},[a,w]),$=(0,u.useSyncExternalStore)((0,r.useCallback)(t=>L(w,(e,n)=>{M(n,e)||t()}),[a,w]),I[0],I[1]),D=!j.current,z=_[w]&&_[w].length>0,U=$.data,F=(0,o.o8)(U)?V:U,W=$.error,B=(0,r.useRef)(F),q=b?(0,o.o8)(U)?B.current:U:F,J=(!z||!!(0,o.o8)(W))&&(D&&!(0,o.o8)(d)?d:!A().isPaused()&&(l?!(0,o.o8)(F)&&p:(0,o.o8)(F)||p)),Y=!!(w&&e&&D&&J),G=(0,o.o8)($.isValidating)?Y:$.isValidating,H=(0,o.o8)($.isLoading)?Y:$.isLoading,K=(0,r.useCallback)(async t=>{let e,r;let u=S.current;if(!w||!u||O.current||A().isPaused())return!1;let i=!0,c=t||{},a=!m[w]||!c.dedupe,l=()=>o.w6?!O.current&&w===T.current&&j.current:w===T.current,f={isValidating:!1,isLoading:!1},d=()=>{C(f)},p=()=>{let t=m[w];t&&t[1]===r&&delete m[w]},v={isValidating:!0};(0,o.o8)(k().data)&&(v.isLoading=!0);try{if(a&&(C(v),n.loadingTimeout&&(0,o.o8)(k().data)&&setTimeout(()=>{i&&l()&&A().onLoadingSlow(w,n)},n.loadingTimeout),m[w]=[u(E),(0,o.u3)()]),[e,r]=m[w],e=await e,a&&setTimeout(p,n.dedupingInterval),!m[w]||m[w][1]!==r)return a&&l()&&A().onDiscarded(w),!1;f.error=o.i_;let t=g[w];if(!(0,o.o8)(t)&&(r<=t[0]||r<=t[1]||0===t[1]))return d(),a&&l()&&A().onDiscarded(w),!1;let c=k().data;f.data=s(c,e)?c:e,a&&l()&&A().onSuccess(e,w,n)}catch(n){p();let t=A(),{shouldRetryOnError:e}=t;!t.isPaused()&&(f.error=n,a&&l()&&(t.onError(n,w,t),(!0===e||(0,o.mf)(e)&&e(n))&&R()&&t.onErrorRetry(n,w,t,t=>{let e=_[w];e&&e[0]&&e[0](o.sj.ERROR_REVALIDATE_EVENT,t)},{retryCount:(c.retryCount||0)+1,dedupe:!0})))}return i=!1,d(),!0},[w,a]),Q=(0,r.useCallback)((...t)=>(0,o.BN)(a,T.current,...t),[]);if((0,o.LI)(()=>{S.current=e,N.current=n,(0,o.o8)(U)||(B.current=U)}),(0,o.LI)(()=>{if(!w)return;let t=K.bind(o.i_,c),e=0,n=(0,o.ko)(w,_,(n,r={})=>{if(n==o.sj.FOCUS_EVENT){let n=Date.now();A().revalidateOnFocus&&n>e&&R()&&(e=n+A().focusThrottleInterval,t())}else if(n==o.sj.RECONNECT_EVENT)A().revalidateOnReconnect&&R()&&t();else if(n==o.sj.MUTATE_EVENT)return K();else if(n==o.sj.ERROR_REVALIDATE_EVENT)return K(r)});return O.current=!1,T.current=w,j.current=!0,C({_k:E}),J&&((0,o.o8)(F)||o.W6?t():(0,o.kw)(t)),()=>{O.current=!0,n()}},[w]),(0,o.LI)(()=>{let t;function e(){let e=(0,o.mf)(v)?v(k().data):v;e&&-1!==t&&(t=setTimeout(n,e))}function n(){!k().error&&(h||A().isVisible())&&(y||A().isOnline())?K(c).then(e):e()}return e(),()=>{t&&(clearTimeout(t),t=-1)}},[v,h,y,w]),(0,r.useDebugValue)(q),l&&(0,o.o8)(F)&&w){if(!o.w6&&o.W6)throw Error("Fallback data is required when using suspense in SSR.");S.current=e,N.current=n,O.current=!1;let t=Z[w];if(!(0,o.o8)(t)){let e=Q(t);i(e)}if((0,o.o8)(W)){let t=K(c);(0,o.o8)(q)||(t.status="fulfilled",t.value=!0),i(t)}else throw W}return{mutate:Q,get data(){return P.data=!0,q},get error(){return P.error=!0,W},get isValidating(){return P.isValidating=!0,G},get isLoading(){return P.isLoading=!0,H}}})}}]);