(()=>{var e,t,n,r,s={4080:(e,t,n)=>{"use strict";n.d(t,{c:()=>u});var r=n(8496),s=n(3268),i=n.n(s),o=n(3396);class a extends r.Component{constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null,copied:!1},this.resetError=this.resetError.bind(this),this.copyError=this.copyError.bind(this)}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){this.setState({error:e,errorInfo:t})}resetError(){this.setState({hasError:!1,error:null,errorInfo:null})}copyError(){navigator.clipboard.writeText(`${this.state.error&&this.state.error.toString()}\nStack trace: ${this.state.errorInfo&&this.state.errorInfo.componentStack}`),this.setState({copied:!0})}render(){return this.state.hasError?(0,r.createElement)("div",{className:"burst-error-boundary"},(0,r.createElement)("h3",null,(0,o.__)("Uh-oh! We stumbled upon an error.","burst-statistics")),(0,r.createElement)("div",{className:"burst-error-boundary__copy-error"},(0,r.createElement)("p",{className:"burst-error-boundary__error-code"},this.state.error&&this.state.error.toString()),(0,r.createElement)("p",{className:"burst-error-boundary__error-stack"},"Stack trace: ",this.state.errorInfo&&this.state.errorInfo.componentStack),(0,r.createElement)("button",{className:"burst-button burst-button--secondary",onClick:this.copyError},this.state.copied?(0,o.__)("Copied","burst-statistics"):(0,o.__)("Copy Error","burst-statistics"))),burst_settings.is_pro?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,(0,o.__)("We apologize for the inconvenience. As a valued Burst Pro user, we are here to assist you. Please follow the steps below to report this issue:","burst-statistics")),(0,r.createElement)("ol",null,(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("Copy the error details by clicking the %s button above.","burst-statistics"),'"Copy Error"')),(0,r.createElement)("li",null,(0,r.createElement)("a",{href:"https://burst-statistics.com/support/"},(0,o.__)("Visit our support page.","burst-statistics"))),(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("Under %s, provide your Name, Email, Website, and License details.","burst-statistics"),'"Log a Support Ticket"')),(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("In the %s field, paste the copied error details and describe what you were doing when the error occurred.","burst-statistics"),'"What\'s the problem?"')),(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("If possible, attach any relevant files.","burst-statistics"))),(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("Click %s to send your support request. We strive to reply to all support tickets within 24 hours, and within 48 hours during weekends.","burst-statistics"),'"Submit"')))):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,(0,o.__)("We're sorry for the trouble. Please take a moment to report this issue on the WordPress forums so we can work on fixing it. Here’s how you can report the issue:","burst-statistics")),(0,r.createElement)("ol",null,(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("Copy the error details by clicking the %s button above.","burst-statistics"),'"Copy Error"')),(0,r.createElement)("li",null,(0,r.createElement)("a",{href:"https://wordpress.org/support/plugin/burst-statistics/#new-topic-0"},(0,o.__)("Navigate to the Support Forum.","burst-statistics"))),(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("If you haven’t already, log in to your WordPress.org account or create a new account.","burst-statistics"))),(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("Once logged in, click on %s under the Burst Statistics forum.","burst-statistics"),'"Create Topic"')),(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("Title: Mention %s along with a brief hint of the error.","burst-statistics"),"'Error Encountered'")),(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("Description: Paste the copied error details and explain what you were doing when the error occurred.","burst-statistics"))),(0,r.createElement)("li",null,(0,o.sprintf)((0,o.__)("Click %s to post your topic. Our team will look into the issue and provide assistance.","burst-statistics"),'"Submit"'))))):this.props.children}}a.propTypes={children:i().node,fallback:i().node};const u=a},6064:(e,t,n)=>{"use strict";n.d(t,{ac:()=>o,yI:()=>u});var r=n(809),s=n(524),i=n(1744);const o=(0,r.Su)(((e,t)=>({fieldsLoaded:!1,fields:[],changedFields:[],progress:[],nextButtonDisabled:!1,highLightField:"",setHighLightField:t=>e((e=>({highLightField:t}))),setChangedField:async(n,r)=>{e((0,s.Ut)((e=>{const t=e.changedFields.findIndex((e=>e.id===n));-1!==t&&e.changedFields.splice(t,1);let s={};s.id=n,s.value=r,e.changedFields.push(s)})));let i=u(t().fields);e((e=>({fields:i})))},getFieldValue:e=>{let n=t().fields;for(const t of n)if(t.id===e)return t.value;return!1},updateField:(t,n)=>{e((0,s.Ut)((e=>{let r=!1;e.fields.forEach((function(e,n){e.id===t&&(r=n)})),e.fields[r].value=n})))},addHelpNotice:(t,n,r,i,o)=>{let a={};a.label=n,a.text=r,o&&(a.url=o),i&&(a.title=i),e((0,s.Ut)((e=>{const n=e.fields.findIndex((e=>e.id===t));-1!==n&&(e.fields[n].help=a)})))},saveFields:async()=>{try{let n=t().fields,r=t().changedFields,s=t().progress,o=[];for(const e of n)0<r.filter((t=>t.id===e.id)).length&&o.push(e);if(0===o.length)return Promise.resolve();const a=await i.k1(o);return s=a.progress,n=u(a.fields),e((e=>({changedFields:[],fields:n,progress:s}))),Promise.resolve(a)}catch(e){return console.error(e),Promise.reject(e)}},updateFieldsData:async n=>{let r=t().fields;r=u(r);const i=a(r,n);e((0,s.Ut)((e=>{e.fields=r,e.nextButtonDisabled=i})))},fetchFieldsData:async t=>{const{fields:n,progress:r}=await i.W6().then((e=>({fields:e.fields,progress:e.progress}))).catch((e=>{console.error(e)}));if(burst_settings.is_pro)for(const e of n)e.pro&&(e.pro.default&&(e.default=e.pro.default),e.pro.label&&(e.label=e.pro.label),e.pro.comment&&(e.comment=e.pro.comment),e.pro.tooltip&&(e.tooltip=e.pro.tooltip),e.pro.react_conditions&&(e.react_conditions=e.pro.react_conditions));let s=u(n),o=s.filter((e=>e.menu_id===t));e((e=>({fieldsLoaded:!0,fields:s,selectedFields:o,progress:r})))}}))),a=(e,t)=>{let n=[];for(const r of e)r.menu_id===t&&n.push(r);return 0<n.filter((e=>e.required&&!e.conditionallyDisabled&&(0==e.value.length||!e.value))).length},u=e=>e.map((t=>{const n=!(t.hasOwnProperty("react_conditions")&&!c(t.react_conditions,e,t.id)),r={...t};return"disable"===r.condition_action?r.disabled=!n:r.conditionallyDisabled=!n,r})),c=(e,t,n,r)=>{let s="OR"===e.relation?"OR":"AND",i="AND"===s;for(const r in e)if(e.hasOwnProperty(r)){let o="AND"===s,a=e[r];a.hasOwnProperty("relation")&&(o=1===c(a,t,n,!0),i="AND"===s?i&&o:i||o);for(let e in a){if("hidden"===e){o=!1;continue}let n=0===e.indexOf("!");if(a.hasOwnProperty(e)){let n=a[e];e=e.replace("!","");let r=t.filter((t=>t.id===e));if(r.hasOwnProperty(0)){let e=r[0],t=e.value;if("text_checkbox"===e.type)o=t.hasOwnProperty("show")&&t.show==n;else if("checkbox"===e.type)o=t==n;else if("multicheckbox"===e.type){o=!1;let e=t;if(Array.isArray(e)||(e=""!==e?[]:[e]),0===e.length)o=!1;else for(const t of Object.keys(e))if(Array.isArray(n)||(n=[n]),n.includes(e[t])){o=!0;break}}else o="radio"===e.type||"document"===e.type?Array.isArray(n)?n.includes(t):n===t:!0===n?1===t||"1"===t||!0===t:!1===n?0===t||"0"===t||!1===t:-1!==n.indexOf("EMPTY")?0===t.length:Array.isArray(n)?n.includes(t):String(t).toLowerCase()===n.toLowerCase()}}n&&(o=!o),i="AND"===s?i&&o:i||o}i="AND"===s?i&&o:i||o}return i?1:0}},664:(e,t,n)=>{"use strict";n.d(t,{Y:()=>c});var r=n(809),s=(n(1744),n(4096));const i=()=>burst_settings.menu,o=(e,t)=>(t.forEach((t=>{t.visible&&(e.push(t.id),t.hasOwnProperty("menu_items")&&o(e,t.menu_items))})),e),a=(e,t,n)=>{const r=e;for(const[s,i]of e.entries())0!==t.filter((e=>e.menu_id===i.id&&e.visible&&!e.conditionallyDisabled)).length||i.hasOwnProperty("menu_items")?(r[s].visible=!0,i.hasOwnProperty("menu_items")&&(r[s].menu_items=a(i.menu_items,t,n))):r[s].visible=!1;return r},u=(e,t)=>{for(const n in t){let r=t[n];if(r.id===e)return r;if(r.menu_items){let t=u(e,r.menu_items);if(t)return t}}return!1},c=(0,r.Su)(((e,t)=>({menuLoaded:!1,subMenuLoaded:!1,menu:[],previousMenuItem:!1,nextMenuItem:!1,selectedMainMenuItem:!1,selectedSubMenuItem:!1,hasProItems:!1,subMenu:[],setSelectedSidebarMenuItem:t=>e((e=>({selectedSubMenuItem:t}))),setSelectedMainMenuItem:t=>e((e=>({selectedMainMenuItem:t}))),fetchSelectedMainMenuItem:()=>{let t=(0,s.c)("main")||"dashboard";e((e=>({selectedMainMenuItem:t})))},fetchSelectedSubMenuItem:async()=>{let t=(0,s.c)("menu")||"general";e((e=>({selectedSubMenuItem:t})))},fetchMainMenuData:async()=>{let n=t().menu;const r=t().menuLoaded;n=r?n:await i();const o=(0,s.c)("main")||"dashboard";e((e=>({menuLoaded:!0,menu:n,selectedMainMenuItem:o})))},fetchSubMenuData:async n=>{let r=t().menu;const c=t().menuLoaded;r=c?r:await i();const d=(0,s.c)("main")||"dashboard";let h=((e,t)=>{let n=[];for(const r in e)e.hasOwnProperty(r)&&e[r].id===t&&(n=e[r]);return n=l(n),n})(r,d);const f=((e,t)=>{let n,r=e&&e.menu_items.hasOwnProperty(0)?e.menu_items[0].id:"general",i=o([],e.menu_items),a=(0,s.c)("menu");n=i.filter((e=>e===a)),n||(a=!1);let c=a||r;if(0===t.filter((e=>e.menu_id===c)).length){let t=u(c,e.menu_items);t&&t.menu_items&&t.menu_items.hasOwnProperty(0)&&(c=t.menu_items[0].id)}return c})(h,n),{nextMenuItem:p,previousMenuItem:m}=((e,t)=>{let n,r;const s=[];o(s,e);const i=s.findIndex((e=>e===t));return-1!==i&&(n=s[0===i?"":i-1],r=s[i===s.length-1?"":i+1],n=n||s[0],r=r||s[s.length-1]),{nextMenuItem:r,previousMenuItem:n}})(r,f);h.menu_items=a(h.menu_items,n,f);const y=0<h.menu_items.filter((e=>!0===e.pro)).length;e((e=>({subMenuLoaded:!0,menuLoaded:!0,menu:r,nextMenuItem:p,previousMenuItem:m,selectedMainMenuItem:d,selectedSubMenuItem:f,subMenu:h,hasProItems:y})))}}))),l=e=>{let t=e.menu_items;for(let[n,r]of e.menu_items.entries())r.visible=!0,r.hasOwnProperty("menu_items")&&(r=l(r)),t[n]=r;return e.menu_items=t,e.visible=!0,e}},1744:(e,t,n)=>{"use strict";n.d(t,{Wu:()=>w,_i:()=>O,AH:()=>E,UN:()=>_,KE:()=>P,W6:()=>y,Gs:()=>g,iA:()=>C,Q1:()=>S,k1:()=>v,kr:()=>b,kV:()=>T,y9:()=>m});var r=n(8496);const s=window.wp.apiFetch;var i=n.n(s),o=n(3396),a=n(1432);const u=()=>-1!==burst_settings.site_url.indexOf("?")?"&":"?",c=()=>"nonce="+burst_settings.burst_nonce+"&token="+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),l=(e,t=!1)=>{let n=(0,o.__)("Server error","burst-statistics");if(e=e.replace(/(<([^>]+)>)/gi,""),t){const e=t.split("?")[0].split("/"),r=e.indexOf("v1")+1;n=(0,o.__)("Server error in","burst-statistics")+" "+e[r]+"/"+e[r+1]}n+=": "+e;const s=(0,r.createElement)("div",{title:(0,o.__)("Click to copy","burst-statistics"),onClick:()=>{navigator.clipboard.writeText(n),a.toast.success((0,o.__)("Error copied to clipboard","burst-statistics"))}},n);a.toast.error(s,{autoClose:15e3})},d=async(e,t="GET",n={})=>{let r={path:e,method:t};return"POST"===t&&(n.nonce=burst_settings.burst_nonce,r.data=n),i()(r).then((e=>{if(!e.request_success)throw new Error("invalid data error");if(e.code)throw new Error(e.message);return delete e.request_success,e})).catch((s=>(console.log(s),h(t,e,n).catch((()=>{throw l(s.message,r.path),s})))))},h=async(e,t,n=null)=>{const r="GET"===e?`${p("ajax")}&rest_action=${t.replace("?","&")}`:p("ajax"),s={method:e,headers:{"Content-Type":"application/json; charset=UTF-8"}};"POST"===e&&(s.body=JSON.stringify({path:t,data:n},f));try{const e=await fetch(r,s);if(!e.ok)throw l(!1,e.statusText),new Error(e.statusText);const t=await e.json();if(!t.data||!t.data.hasOwnProperty("request_success"))throw new Error("Invalid data error");return delete t.data.request_success,Promise.resolve(t.data)}catch(e){return Promise.reject(new Error("AJAX request failed"))}},f=(e,t)=>e?e&&e.includes("Control")?void 0:"object"==typeof t?JSON.parse(JSON.stringify(t,f)):t:t,p=e=>{let t;return t=void 0===e?burst_settings.site_url:burst_settings.admin_ajax_url,"https:"===window.location.protocol&&-1===t.indexOf("https://")?t.replace("http://","https://"):t},m=(e,t)=>d("burst/v1/options/set"+u()+c(),"POST",{option:{option:e,value:t}}),y=()=>d("burst/v1/fields/get"+u()+c()),v=e=>d("burst/v1/fields/set"+u(),"POST",{fields:e}),b=e=>d("burst/v1/goals/set"+u()+c(),"POST",e),g=()=>d("burst/v1/goals/get"+u()+c()),E=e=>d("burst/v1/goals/delete"+u()+c(),"POST",{id:e}),w=()=>d("burst/v1/goals/add"+u()+c(),"POST",{}),O=e=>d("burst/v1/goals/add_predefined"+u()+c(),"POST",{id:e}),_=(e,t={})=>d(`burst/v1/do_action/${e}`,"POST",{action_data:t}).then((e=>e.hasOwnProperty("data")?e.data:[])),P=async(e,t,n,r,s)=>await d(`burst/v1/data/${e}${u()+c()}&date_start=${t}&date_end=${n}&date_range=${r}`,"POST",s),S=e=>d(`burst/v1/posts/${u()}${c()}&search=${e}`).then((e=>e.hasOwnProperty("posts")?e.posts:[])),C=(e,t)=>{if("undefined"!=typeof Storage){const t=localStorage.getItem("burst_"+e);if(t&&0<t.length)return JSON.parse(t)}return t},T=(e,t)=>{"undefined"!=typeof Storage&&localStorage.setItem("burst_"+e,JSON.stringify(t))}},4096:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=e=>{let t=window.location.href;if(-1===t.indexOf("#"))return!1;let n=t.split("#");if(1===n.length)return!1;let r=n[1];if("menu"===e){if(-1===r.indexOf("/"))return!1;{let e=r.split("/");return!(1>=e.length)&&e[1]}}return-1===r.indexOf("/")?r:r.split("/")[0]}},9776:(e,t,n)=>{"use strict";var r=n(9143);function s(){}function i(){}i.resetWarningCache=s,e.exports=function(){function e(e,t,n,s,i,o){if(o!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:s};return n.PropTypes=n,n}},3268:(e,t,n)=>{e.exports=n(9776)()},9143:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},200:(e,t,n)=>{"use strict";var r=n(1280),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,o=r.useEffect,a=r.useLayoutEffect,u=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!s(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),s=r[0].inst,l=r[1];return a((function(){s.value=n,s.getSnapshot=t,c(s)&&l({inst:s})}),[e,n,t]),o((function(){return c(s)&&l({inst:s}),e((function(){c(s)&&l({inst:s})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},7008:(e,t,n)=>{"use strict";var r=n(1280),s=n(4),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=s.useSyncExternalStore,a=r.useRef,u=r.useEffect,c=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,s){var d=a(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=c((function(){function e(e){if(!u){if(u=!0,o=e,e=r(e),void 0!==s&&h.hasValue){var t=h.value;if(s(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==s&&s(t,n)?t:(o=e,a=n)}var o,a,u=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,s]);var f=o(e,d[0],d[1]);return u((function(){h.hasValue=!0,h.value=f}),[f]),l(f),f}},4:(e,t,n)=>{"use strict";e.exports=n(200)},5060:(e,t,n)=>{"use strict";e.exports=n(7008)},1280:e=>{"use strict";e.exports=window.React},1034:e=>{"use strict";e.exports=window.ReactDOM},7287:e=>{"use strict";e.exports=window.wp.components},3824:e=>{"use strict";e.exports=window.wp.date},8496:e=>{"use strict";e.exports=window.wp.element},3396:e=>{"use strict";e.exports=window.wp.i18n},8200:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});var r=n(7860),s=n(1040);class i extends r.Q{constructor(){super(),this.setup=e=>{if(!s.oj&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}const o=new i},2552:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});var r=n(1040);const s=function(){let e=[],t=0,n=e=>{e()},s=e=>{e()};const i=s=>{t?e.push(s):(0,r._8)((()=>{n(s)}))};return{batch:i=>{let o;t++;try{o=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&(0,r._8)((()=>{s((()=>{t.forEach((e=>{n(e)}))}))}))})()}return o},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{s=e}}}()},7940:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var r=n(7860),s=n(1040);const i=["online","offline"];class o extends r.Q{constructor(){super(),this.setup=e=>{if(!s.oj&&window.addEventListener){const t=()=>e();return i.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{i.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}const a=new o},4244:(e,t,n)=>{"use strict";n.d(t,{ot:()=>a,qu:()=>c,uI:()=>l});var r=n(8200),s=n(7940),i=n(1040);function o(e){return Math.min(1e3*2**e,3e4)}function a(e){return"online"!==(null!=e?e:"online")||s.q.isOnline()}class u{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function c(e){return e instanceof u}function l(e){let t,n,c,l=!1,d=0,h=!1;const f=new Promise(((e,t)=>{n=e,c=t})),p=()=>!r.m.isFocused()||"always"!==e.networkMode&&!s.q.isOnline(),m=r=>{h||(h=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},y=n=>{h||(h=!0,null==e.onError||e.onError(n),null==t||t(),c(n))},v=()=>new Promise((n=>{t=e=>{const t=h||!p();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,h||null==e.onContinue||e.onContinue()})),b=()=>{if(h)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch((t=>{var n,r;if(h)return;const s=null!=(n=e.retry)?n:3,a=null!=(r=e.retryDelay)?r:o,u="function"==typeof a?a(d,t):a,c=!0===s||"number"==typeof s&&d<s||"function"==typeof s&&s(d,t);!l&&c?(d++,null==e.onFail||e.onFail(d,t),(0,i.W_)(u).then((()=>{if(p())return v()})).then((()=>{l?y(t):b()}))):y(t)}))};return a(e.networkMode)?b():v().then(b),{promise:f,cancel:t=>{h||(y(new u(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?f:Promise.resolve(),cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1}}}},7860:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});class r{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},1040:(e,t,n)=>{"use strict";n.d(t,{A7:()=>d,AT:()=>o,Cs:()=>T,GS:()=>y,Kw:()=>s,O2:()=>l,W_:()=>P,Yn:()=>f,_8:()=>S,_W:()=>h,_k:()=>C,aw:()=>m,iY:()=>i,o1:()=>a,oX:()=>p,ob:()=>c,oj:()=>r,uA:()=>u,wL:()=>g});const r="undefined"==typeof window||"Deno"in window;function s(){}function i(e,t){return"function"==typeof e?e(t):e}function o(e){return"number"==typeof e&&e>=0&&e!==1/0}function a(e,t){return e.filter((e=>!t.includes(e)))}function u(e,t,n){const r=e.slice(0);return r[t]=n,r}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,n){return _(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function d(e,t,n){return _(e)?[{...t,queryKey:e},n]:[e||{},t]}function h(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(_(o))if(r){if(t.queryHash!==p(o,t.options))return!1}else if(!y(t.queryKey,o))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof a&&t.isStale()!==a||void 0!==s&&s!==t.state.fetchStatus||i&&!i(t))}function f(e,t){const{exact:n,fetching:r,predicate:s,mutationKey:i}=e;if(_(i)){if(!t.options.mutationKey)return!1;if(n){if(m(t.options.mutationKey)!==m(i))return!1}else if(!y(t.options.mutationKey,i))return!1}return!("boolean"==typeof r&&"loading"===t.state.status!==r||s&&!s(t))}function p(e,t){return((null==t?void 0:t.queryKeyHashFn)||m)(e)}function m(e){return JSON.stringify(e,((e,t)=>w(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function y(e,t){return v(e,t)}function v(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!v(e[n],t[n])))}function b(e,t){if(e===t)return e;const n=E(e)&&E(t);if(n||w(e)&&w(t)){const r=n?e.length:Object.keys(e).length,s=n?t:Object.keys(t),i=s.length,o=n?[]:{};let a=0;for(let r=0;r<i;r++){const i=n?r:s[r];o[i]=b(e[i],t[i]),o[i]===e[i]&&a++}return r===i&&a===r?e:o}return t}function g(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function E(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function w(e){if(!O(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!O(n)&&!!n.hasOwnProperty("isPrototypeOf")}function O(e){return"[object Object]"===Object.prototype.toString.call(e)}function _(e){return Array.isArray(e)}function P(e){return new Promise((t=>{setTimeout(t,e)}))}function S(e){P(0).then(e)}function C(){if("function"==typeof AbortController)return new AbortController}function T(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?b(e,t):t}},6524:(e,t,n)=>{"use strict";n.d(t,{K6:()=>u,q$:()=>a});var r=n(1280);const s=r.createContext(void 0),i=r.createContext(!1);function o(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=s),window.ReactQueryClientContext):s)}const a=({context:e}={})=>{const t=r.useContext(o(e,r.useContext(i)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},u=({client:e,children:t,context:n,contextSharing:s=!1})=>{r.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]);const a=o(n,s);return r.createElement(i.Provider,{value:!n&&s},r.createElement(a.Provider,{value:e},t))}},524:(e,t,n)=>{"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function s(e){return!!e&&!!e[$]}function i(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===B}(e)||Array.isArray(e)||!!e[U]||!!(null===(t=e.constructor)||void 0===t?void 0:t[U])||l(e)||d(e))}function o(e,t,n){void 0===n&&(n=!1),0===a(e)?(n?Object.keys:W)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function a(e){var t=e[$];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:l(e)?2:d(e)?3:0}function u(e,t){return 2===a(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t,n){var r=a(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function l(e){return L&&e instanceof Map}function d(e){return j&&e instanceof Set}function h(e){return e.o||e.t}function f(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=H(e);delete t[$];for(var n=W(t),r=0;r<n.length;r++){var s=n[r],i=t[s];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),t)}function p(e,t){return void 0===t&&(t=!1),y(e)||s(e)||!i(e)||(a(e)>1&&(e.set=e.add=e.clear=e.delete=m),Object.freeze(e),t&&o(e,(function(e,t){return p(t,!0)}),!0)),e}function m(){r(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function v(e){var t=z[e];return t||r(18,e),t}function b(){return N}function g(e,t){t&&(v("Patches"),e.u=[],e.s=[],e.v=t)}function E(e){w(e),e.p.forEach(_),e.p=null}function w(e){e===N&&(N=e.l)}function O(e){return N={p:[],l:N,h:e,m:!0,_:0}}function _(e){var t=e[$];0===t.i||1===t.i?t.j():t.g=!0}function P(e,t){t._=t.p.length;var n=t.p[0],s=void 0!==e&&e!==n;return t.h.O||v("ES5").S(t,e,s),s?(n[$].P&&(E(t),r(4)),i(e)&&(e=S(t,e),t.l||T(t,e)),t.u&&v("Patches").M(n[$].t,e,t.u,t.s)):e=S(t,n,[]),E(t),t.u&&t.v(t.u,t.s),e!==Q?e:void 0}function S(e,t,n){if(y(t))return t;var r=t[$];if(!r)return o(t,(function(s,i){return C(e,r,t,s,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return T(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var s=4===r.i||5===r.i?r.o=f(r.k):r.o,i=s,a=!1;3===r.i&&(i=new Set(s),s.clear(),a=!0),o(i,(function(t,i){return C(e,r,s,t,i,n,a)})),T(e,s,!1),n&&e.u&&v("Patches").N(r,n,e.u,e.s)}return r.o}function C(e,t,n,r,o,a,l){if(s(o)){var d=S(e,o,a&&t&&3!==t.i&&!u(t.R,r)?a.concat(r):void 0);if(c(n,r,d),!s(d))return;e.m=!1}else l&&n.add(o);if(i(o)&&!y(o)){if(!e.h.D&&e._<1)return;S(e,o),t&&t.A.l||T(e,o)}}function T(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&p(t,n)}function x(e,t){var n=e[$];return(n?h(n):e)[t]}function I(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function M(e){e.P||(e.P=!0,e.l&&M(e.l))}function q(e){e.o||(e.o=f(e.t))}function A(e,t,n){var r=l(t)?v("MapSet").F(t,n):d(t)?v("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:b(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},s=r,i=G;n&&(s=[r],i=Y);var o=Proxy.revocable(s,i),a=o.revoke,u=o.proxy;return r.k=u,r.j=a,u}(t,n):v("ES5").J(t,n);return(n?n.A:b()).p.push(r),r}function D(e){return s(e)||r(22,e),function e(t){if(!i(t))return t;var n,r=t[$],s=a(t);if(r){if(!r.P&&(r.i<4||!v("ES5").K(r)))return r.t;r.I=!0,n=F(t,s),r.I=!1}else n=F(t,s);return o(n,(function(t,s){r&&function(e,t){return 2===a(e)?e.get(t):e[t]}(r.t,t)===s||c(n,t,e(s))})),3===s?new Set(n):n}(e)}function F(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return f(e)}n.d(t,{Ut:()=>X});var k,N,R="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),L="undefined"!=typeof Map,j="undefined"!=typeof Set,K="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Q=R?Symbol.for("immer-nothing"):((k={})["immer-nothing"]=!0,k),U=R?Symbol.for("immer-draftable"):"__$immer_draftable",$=R?Symbol.for("immer-state"):"__$immer_state",B=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),W="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,H=Object.getOwnPropertyDescriptors||function(e){var t={};return W(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},z={},G={get:function(e,t){if(t===$)return e;var n=h(e);if(!u(n,t))return function(e,t,n){var r,s=I(t,n);return s?"value"in s?s.value:null===(r=s.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!i(r)?r:r===x(e.t,t)?(q(e),e.o[t]=A(e.A.h,r,e)):r},has:function(e,t){return t in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,t,n){var r=I(h(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var s=x(h(e),t),i=null==s?void 0:s[$];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,s)&&(void 0!==n||u(e.t,t)))return!0;q(e),M(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==x(e.t,t)||t in e.t?(e.R[t]=!1,q(e),M(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=h(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},Y={};o(G,(function(e,t){Y[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Y.deleteProperty=function(e,t){return Y.set.call(this,e,t,void 0)},Y.set=function(e,t,n){return G.set.call(this,e[0],t,n,e[0])};var V=function(){function e(e){var t=this;this.O=K,this.D=!0,this.produce=function(e,n,s){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var a=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,s=Array(r>1?r-1:0),i=1;i<r;i++)s[i-1]=arguments[i];return a.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(s))}))}}var u;if("function"!=typeof n&&r(6),void 0!==s&&"function"!=typeof s&&r(7),i(e)){var c=O(t),l=A(t,e,void 0),d=!0;try{u=n(l),d=!1}finally{d?E(c):w(c)}return"undefined"!=typeof Promise&&u instanceof Promise?u.then((function(e){return g(c,s),P(e,c)}),(function(e){throw E(c),e})):(g(c,s),P(u,c))}if(!e||"object"!=typeof e){if(void 0===(u=n(e))&&(u=e),u===Q&&(u=void 0),t.D&&p(u,!0),s){var h=[],f=[];v("Patches").M(e,u,h,f),s(h,f)}return u}r(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,s=Array(r>1?r-1:0),i=1;i<r;i++)s[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(s))}))};var r,s,i=t.produce(e,n,(function(e,t){r=e,s=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,s]})):[i,r,s]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){i(e)||r(8),s(e)&&(e=D(e));var t=O(this),n=A(this,e,void 0);return n[$].C=!0,w(t),n},t.finishDraft=function(e,t){var n=(e&&e[$]).A;return g(n,t),P(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!K&&r(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=v("Patches").$;return s(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),J=new V,X=J.produce;J.produceWithPatches.bind(J),J.setAutoFreeze.bind(J),J.setUseProxies.bind(J),J.applyPatches.bind(J),J.createDraft.bind(J),J.finishDraft.bind(J)},1432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Bounce:()=>S,Flip:()=>x,Icons:()=>y,Slide:()=>C,ToastContainer:()=>I,Zoom:()=>T,collapseToast:()=>d,cssTransition:()=>h,toast:()=>j,useToast:()=>E,useToastContainer:()=>v});var r=n(1280);function s(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=s(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const i=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=s(e))&&(r&&(r+=" "),r+=t);return r},o=e=>"number"==typeof e&&!isNaN(e),a=e=>"string"==typeof e,u=e=>"function"==typeof e,c=e=>a(e)||u(e)?e:null,l=e=>(0,r.isValidElement)(e)||a(e)||u(e)||o(e);function d(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:s}=e;requestAnimationFrame((()=>{s.minHeight="initial",s.height=r+"px",s.transition=`all ${n}ms`,requestAnimationFrame((()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(t,n)}))}))}function h(e){let{enter:t,exit:n,appendPosition:s=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(e){let{children:a,position:u,preventExitTransition:c,done:l,nodeRef:h,isIn:f}=e;const p=s?`${t}--${u}`:t,m=s?`${n}--${u}`:n,y=(0,r.useRef)(0);return(0,r.useLayoutEffect)((()=>{const e=h.current,t=p.split(" "),n=r=>{r.target===h.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===y.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,r.useEffect)((()=>{const e=h.current,t=()=>{e.removeEventListener("animationend",t),i?d(e,l,o):l()};f||(c?t():(y.current=1,e.className+=` ${m}`,e.addEventListener("animationend",t)))}),[f]),r.createElement(r.Fragment,null,a)}}function f(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const p={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter((e=>e!==t));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const n=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)}))}},m=e=>{let{theme:t,type:n,...s}=e;return r.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...s})},y={info:function(e){return r.createElement(m,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return r.createElement(m,{...e},r.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return r.createElement(m,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return r.createElement(m,{...e},r.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return r.createElement("div",{className:"Toastify__spinner"})}};function v(e){const[,t]=(0,r.useReducer)((e=>e+1),0),[n,s]=(0,r.useState)([]),i=(0,r.useRef)(null),d=(0,r.useRef)(new Map).current,h=e=>-1!==n.indexOf(e),m=(0,r.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:h,getToast:e=>d.get(e)}).current;function v(e){let{containerId:t}=e;const{limit:n}=m.props;!n||t&&m.containerId!==t||(m.count-=m.queue.length,m.queue=[])}function b(e){s((t=>null==e?[]:t.filter((t=>t!==e))))}function g(){const{toastContent:e,toastProps:t,staleId:n}=m.queue.shift();w(e,t,n)}function E(e,n){let{delay:s,staleId:h,...v}=n;if(!l(e)||function(e){return!i.current||m.props.enableMultiContainer&&e.containerId!==m.props.containerId||d.has(e.toastId)&&null==e.updateId}(v))return;const{toastId:E,updateId:O,data:_}=v,{props:P}=m,S=()=>b(E),C=null==O;C&&m.count++;const T={...P,style:P.toastStyle,key:m.toastKey++,...Object.fromEntries(Object.entries(v).filter((e=>{let[t,n]=e;return null!=n}))),toastId:E,updateId:O,data:_,closeToast:S,isIn:!1,className:c(v.className||P.toastClassName),bodyClassName:c(v.bodyClassName||P.bodyClassName),progressClassName:c(v.progressClassName||P.progressClassName),autoClose:!v.isLoading&&(x=v.autoClose,I=P.autoClose,!1===x||o(x)&&x>0?x:I),deleteToast(){const e=f(d.get(E),"removed");d.delete(E),p.emit(4,e);const n=m.queue.length;if(m.count=null==E?m.count-m.displayedToast:m.count-1,m.count<0&&(m.count=0),n>0){const e=null==E?m.props.limit:1;if(1===n||1===e)m.displayedToast++,g();else{const t=e>n?n:e;m.displayedToast=t;for(let e=0;e<t;e++)g()}}else t()}};var x,I;T.iconOut=function(e){let{theme:t,type:n,isLoading:s,icon:i}=e,c=null;const l={theme:t,type:n};return!1===i||(u(i)?c=i(l):(0,r.isValidElement)(i)?c=(0,r.cloneElement)(i,l):a(i)||o(i)?c=i:s?c=y.spinner():(e=>e in y)(n)&&(c=y[n](l))),c}(T),u(v.onOpen)&&(T.onOpen=v.onOpen),u(v.onClose)&&(T.onClose=v.onClose),T.closeButton=P.closeButton,!1===v.closeButton||l(v.closeButton)?T.closeButton=v.closeButton:!0===v.closeButton&&(T.closeButton=!l(P.closeButton)||P.closeButton);let M=e;(0,r.isValidElement)(e)&&!a(e.type)?M=(0,r.cloneElement)(e,{closeToast:S,toastProps:T,data:_}):u(e)&&(M=e({closeToast:S,toastProps:T,data:_})),P.limit&&P.limit>0&&m.count>P.limit&&C?m.queue.push({toastContent:M,toastProps:T,staleId:h}):o(s)?setTimeout((()=>{w(M,T,h)}),s):w(M,T,h)}function w(e,t,n){const{toastId:r}=t;n&&d.delete(n);const i={content:e,props:t};d.set(r,i),s((e=>[...e,r].filter((e=>e!==n)))),p.emit(4,f(i,null==i.props.updateId?"added":"updated"))}return(0,r.useEffect)((()=>(m.containerId=e.containerId,p.cancelEmit(3).on(0,E).on(1,(e=>i.current&&b(e))).on(5,v).emit(2,m),()=>{d.clear(),p.emit(3,m)})),[]),(0,r.useEffect)((()=>{m.props=e,m.isToastActive=h,m.displayedToast=n.length})),{getToastToRender:function(t){const n=new Map,r=Array.from(d.values());return e.newestOnTop&&r.reverse(),r.forEach((e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(e=>t(e[0],e[1])))},containerRef:i,isToastActive:h}}function b(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function g(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function E(e){const[t,n]=(0,r.useState)(!1),[s,i]=(0,r.useState)(!1),o=(0,r.useRef)(null),a=(0,r.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,r.useRef)(e),{autoClose:l,pauseOnHover:d,closeToast:h,onClick:f,closeOnClick:p}=e;function m(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),a.didMove=!1,document.addEventListener("mousemove",w),document.addEventListener("mouseup",O),document.addEventListener("touchmove",w),document.addEventListener("touchend",O);const n=o.current;a.canCloseOnClick=!0,a.canDrag=!0,a.boundingRect=n.getBoundingClientRect(),n.style.transition="",a.x=b(t.nativeEvent),a.y=g(t.nativeEvent),"x"===e.draggableDirection?(a.start=a.x,a.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(a.start=a.y,a.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function y(t){if(a.boundingRect){const{top:n,bottom:r,left:s,right:i}=a.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&a.x>=s&&a.x<=i&&a.y>=n&&a.y<=r?E():v()}}function v(){n(!0)}function E(){n(!1)}function w(n){const r=o.current;a.canDrag&&r&&(a.didMove=!0,t&&E(),a.x=b(n),a.y=g(n),a.delta="x"===e.draggableDirection?a.x-a.start:a.y-a.start,a.start!==a.x&&(a.canCloseOnClick=!1),r.style.transform=`translate${e.draggableDirection}(${a.delta}px)`,r.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function O(){document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",O),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",O);const t=o.current;if(a.canDrag&&a.didMove&&t){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,r.useEffect)((()=>{c.current=e})),(0,r.useEffect)((()=>(o.current&&o.current.addEventListener("d",v,{once:!0}),u(e.onOpen)&&e.onOpen((0,r.isValidElement)(e.children)&&e.children.props),()=>{const e=c.current;u(e.onClose)&&e.onClose((0,r.isValidElement)(e.children)&&e.children.props)})),[]),(0,r.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||E(),window.addEventListener("focus",v),window.addEventListener("blur",E)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",v),window.removeEventListener("blur",E))})),[e.pauseOnFocusLoss]);const _={onMouseDown:m,onTouchStart:m,onMouseUp:y,onTouchEnd:y};return l&&d&&(_.onMouseEnter=E,_.onMouseLeave=v),p&&(_.onClick=e=>{f&&f(e),a.canCloseOnClick&&h()}),{playToast:v,pauseToast:E,isRunning:t,preventExitTransition:s,toastRef:o,eventHandlers:_}}function w(e){let{closeToast:t,theme:n,ariaLabel:s="close"}=e;return r.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":s},r.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},r.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function O(e){let{delay:t,isRunning:n,closeToast:s,type:o="default",hide:a,className:c,style:l,controlledProgress:d,progress:h,rtl:f,isIn:p,theme:m}=e;const y=a||d&&0===h,v={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:y?0:1};d&&(v.transform=`scaleX(${h})`);const b=i("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":f}),g=u(c)?c({rtl:f,type:o,defaultClassName:b}):i(b,c);return r.createElement("div",{role:"progressbar","aria-hidden":y?"true":"false","aria-label":"notification timer",className:g,style:v,[d&&h>=1?"onTransitionEnd":"onAnimationEnd"]:d&&h<1?null:()=>{p&&s()}})}const _=e=>{const{isRunning:t,preventExitTransition:n,toastRef:s,eventHandlers:o}=E(e),{closeButton:a,children:c,autoClose:l,onClick:d,type:h,hideProgressBar:f,closeToast:p,transition:m,position:y,className:v,style:b,bodyClassName:g,bodyStyle:_,progressClassName:P,progressStyle:S,updateId:C,role:T,progress:x,rtl:I,toastId:M,deleteToast:q,isIn:A,isLoading:D,iconOut:F,closeOnClick:k,theme:N}=e,R=i("Toastify__toast",`Toastify__toast-theme--${N}`,`Toastify__toast--${h}`,{"Toastify__toast--rtl":I},{"Toastify__toast--close-on-click":k}),L=u(v)?v({rtl:I,position:y,type:h,defaultClassName:R}):i(R,v),j=!!x||!l,K={closeToast:p,type:h,theme:N};let Q=null;return!1===a||(Q=u(a)?a(K):(0,r.isValidElement)(a)?(0,r.cloneElement)(a,K):w(K)),r.createElement(m,{isIn:A,done:q,position:y,preventExitTransition:n,nodeRef:s},r.createElement("div",{id:M,onClick:d,className:L,...o,style:b,ref:s},r.createElement("div",{...A&&{role:T},className:u(g)?g({type:h}):i("Toastify__toast-body",g),style:_},null!=F&&r.createElement("div",{className:i("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!D})},F),r.createElement("div",null,c)),Q,r.createElement(O,{...C&&!j?{key:`pb-${C}`}:{},rtl:I,theme:N,delay:l,isRunning:t,isIn:A,closeToast:p,hide:f,type:h,style:S,className:P,controlledProgress:j,progress:x||0})))},P=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},S=h(P("bounce",!0)),C=h(P("slide",!0)),T=h(P("zoom")),x=h(P("flip")),I=(0,r.forwardRef)(((e,t)=>{const{getToastToRender:n,containerRef:s,isToastActive:o}=v(e),{className:a,style:l,rtl:d,containerId:h}=e;function f(e){const t=i("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return u(a)?a({position:e,rtl:d,defaultClassName:t}):i(t,c(a))}return(0,r.useEffect)((()=>{t&&(t.current=s.current)}),[]),r.createElement("div",{ref:s,className:"Toastify",id:h},n(((e,t)=>{const n=t.length?{...l}:{...l,pointerEvents:"none"};return r.createElement("div",{className:f(e),style:n,key:`container-${e}`},t.map(((e,n)=>{let{content:s,props:i}=e;return r.createElement(_,{...i,isIn:o(i.toastId),style:{...i.style,"--nth":n+1,"--len":t.length},key:`toast-${i.key}`},s)})))})))}));I.displayName="ToastContainer",I.defaultProps={position:"top-right",transition:S,autoClose:5e3,closeButton:w,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let M,q=new Map,A=[],D=1;function F(){return""+D++}function k(e){return e&&(a(e.toastId)||o(e.toastId))?e.toastId:F()}function N(e,t){return q.size>0?p.emit(0,e,t):A.push({content:e,options:t}),t.toastId}function R(e,t){return{...t,type:t&&t.type||e,toastId:k(t)}}function L(e){return(t,n)=>N(t,R(e,n))}function j(e,t){return N(e,R("default",t))}j.loading=(e,t)=>N(e,R("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),j.promise=function(e,t,n){let r,{pending:s,error:i,success:o}=t;s&&(r=a(s)?j.loading(s,n):j.loading(s.render,{...n,...s}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,s)=>{if(null==t)return void j.dismiss(r);const i={type:e,...c,...n,data:s},o=a(t)?{render:t}:t;return r?j.update(r,{...i,...o}):j(o.render,{...i,...o}),s},d=u(e)?e():e;return d.then((e=>l("success",o,e))).catch((e=>l("error",i,e))),d},j.success=L("success"),j.info=L("info"),j.error=L("error"),j.warning=L("warning"),j.warn=j.warning,j.dark=(e,t)=>N(e,R("default",{theme:"dark",...t})),j.dismiss=e=>{q.size>0?p.emit(1,e):A=A.filter((t=>null!=e&&t.options.toastId!==e))},j.clearWaitingQueue=function(e){return void 0===e&&(e={}),p.emit(5,e)},j.isActive=e=>{let t=!1;return q.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},j.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const r=q.get(n||M);return r&&r.getToast(e)}(e,t);if(n){const{props:r,content:s}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:F()};i.toastId!==e&&(i.staleId=e);const o=i.render||s;delete i.render,N(o,i)}}),0)},j.done=e=>{j.update(e,{progress:1})},j.onChange=e=>(p.on(4,e),()=>{p.off(4,e)}),j.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},j.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},p.on(2,(e=>{M=e.containerId||e,q.set(M,e),A.forEach((e=>{p.emit(0,e.content,e.options)})),A=[]})).on(3,(e=>{q.delete(e.containerId||e),0===q.size&&p.off(0).off(1).off(5)}))},809:(e,t,n)=>{"use strict";n.d(t,{Su:()=>d});const r=e=>{let t;const n=new Set,r=(e,r)=>{const s="function"==typeof e?e(t):e;if(!Object.is(s,t)){const e=t;t=(null!=r?r:"object"!=typeof s||null===s)?s:Object.assign({},t,s),n.forEach((n=>n(t,e)))}},s=()=>t,i={setState:r,getState:s,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},o=t=e(r,s,i);return i};var s=n(1280),i=n(5060);const{useDebugValue:o}=s,{useSyncExternalStoreWithSelector:a}=i;let u=!1;const c=e=>e,l=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?r(e):r)(e):e,n=(e,n)=>function(e,t=c,n){n&&!u&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),u=!0);const r=a(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return o(r),r}(t,e,n);return Object.assign(n,t),n},d=e=>e?l(e):l}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return s[e].call(n.exports,n,n.exports,o),n.exports}o.m=s,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var s=Object.create(null);o.r(s);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,o.d(s,i),s},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>e+"."+{96:"975acd563a1442a50b62",160:"e51de77672c003595220",204:"8385aa8b3a54fd535321",216:"6ea047b11c89d88d31a1",368:"e4ad631d643430ffe560",456:"8750f67e23a160801f13",524:"c80a26abaca6b08df6b3",556:"e384e18633f77985d0cc",764:"47551e68db0fc3fdc06a",818:"9f7ac1aa556b4d195bf4",856:"f3f700d093c94a67bf1c"}[e]+".js",o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="burst-statistics:",o.l=(e,t,s,i)=>{if(n[e])n[e].push(t);else{var a,u;if(void 0!==s)for(var c=document.getElementsByTagName("script"),l=0;l<c.length;l++){var d=c[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+s){a=d;break}}a||(u=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",r+s),a.src=e),n[e]=[t];var h=(t,r)=>{a.onerror=a.onload=null,clearTimeout(f);var s=n[e];if(delete n[e],a.parentNode&&a.parentNode.removeChild(a),s&&s.forEach((e=>e(r))),t)return t(r)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),u&&document.head.appendChild(a)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!e;)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={656:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var s=new Promise(((n,s)=>r=e[t]=[n,s]));n.push(r[2]=s);var i=o.p+o.u(t),a=new Error;o.l(i,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var s=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+s+": "+i+")",a.name="ChunkLoadError",a.type=s,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,s,[i,a,u]=n,c=0;if(i.some((t=>0!==e[t]))){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);u&&u(o)}for(t&&t(n);c<i.length;c++)s=i[c],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0},n=globalThis.webpackChunkburst_statistics=globalThis.webpackChunkburst_statistics||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),o.nc=void 0,(()=>{"use strict";var e=o(8496),t=o(4096),n=o(3396),r=o(664);const s=()=>{const t=(0,r.Y)((e=>e.menu)),s=(0,r.Y)((e=>e.menuLoaded)),i=(0,r.Y)((e=>e.selectedMainMenuItem)),o=(0,r.Y)((e=>e.fetchMainMenuData)),a=burst_settings.plugin_url,u=burst_settings.is_pro?"https://burst-statistics.com/support/?src=plugin-burst-header":"https://wordpress.org/support/plugin/burst-statistics/",c=(0,e.useRef)(!0);(0,e.useEffect)((()=>{if(c.current)return o(),void(c.current=!1)}),[]);let l=Object.values(t);return l=l.filter((e=>null!==e)),(0,e.createElement)("div",{className:"burst-header-container"},(0,e.createElement)("div",{className:"burst-header"},(0,e.createElement)("img",{className:"burst-logo",src:a+"assets/img/burst-logo.svg",alt:"Burst Statistics Logo"}),(0,e.createElement)("div",{className:"burst-header-left"},(0,e.createElement)("nav",{className:"burst-header-menu"},(0,e.createElement)("ul",null,s&&l.map(((t,n)=>(0,e.createElement)("li",{key:n},(0,e.createElement)("a",{className:i===t.id?"active":"",href:"#"+t.id.toString()},t.title))))))),(0,e.createElement)("div",{className:"burst-header-right"},(0,e.createElement)("a",{href:u,className:"burst-button burst-button--secondary",target:"_blank",rel:"noreferrer"},(0,n.__)("Support","burst-statistics")),!burst_settings.is_pro&&(0,e.createElement)("a",{href:"https://burst-statistics.com/pricing/?src=plugin-burst-header",className:"burst-button burst-button--pro",target:"_blank",rel:"noreferrer"},(0,n.__)("Upgrade to Pro","burst-statistics")))))},i=t=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"burst-content-area burst-grid burst-dashboard burst-page-placeholder"},(0,e.createElement)("div",{className:"burst-grid-item  burst-column-2 burst-row-2 "}),(0,e.createElement)("div",{className:"burst-grid-item burst-row-2"}),(0,e.createElement)("div",{className:"burst-grid-item burst-row-2"}),(0,e.createElement)("div",{className:"burst-grid-item  burst-column-2"})));var a=o(6064),u=o(4080);const c=()=>{const c=(0,r.Y)((e=>e.menuLoaded)),l=(0,r.Y)((e=>e.selectedMainMenuItem)),d=(0,r.Y)((e=>e.fetchSubMenuData)),h=(0,a.ac)((e=>e.fields)),f=(0,a.ac)((e=>e.fieldsLoaded)),p=(0,a.ac)((e=>e.fetchFieldsData)),[m,y]=(0,e.useState)(null),[v,b]=(0,e.useState)(null),[g,E]=(0,e.useState)(null),[w,O]=(0,e.useState)(null),[_,P]=(0,e.useState)(null);return(0,e.useEffect)((()=>{burst_settings.json_translations.forEach((e=>{let t=JSON.parse(e),r=t.locale_data["burst-statistics"]||t.locale_data.messages;r[""].domain="burst-statistics",(0,n.setLocaleData)(r,"burst-statistics")}))}),[]),(0,e.useEffect)((()=>{burst_settings.tour_shown&&("dashboard"!==(0,t.c)()||"tour"!==(0,t.c)("menu")||_)||Promise.all([o.e(96),o.e(160)]).then(o.bind(o,6160)).then((({default:e})=>{P((()=>e))})),"dashboard"!==l||v||Promise.all([o.e(764),o.e(216)]).then(o.bind(o,3216)).then((({default:e})=>{b((()=>e))})),"statistics"!==l||g||Promise.all([o.e(764),o.e(856),o.e(368),o.e(204)]).then(o.bind(o,5204)).then((({default:e})=>{E((()=>e))})),"settings"!==l||w||Promise.all([o.e(764),o.e(856),o.e(456),o.e(818)]).then(o.bind(o,5818)).then((({default:e})=>{O((()=>e))}))}),[l]),(0,e.useEffect)((()=>{f&&d(h),window.addEventListener("hashchange",(()=>{d(h)}))}),[h]),(0,e.useEffect)((()=>{let e=(0,t.c)("menu");p(e)}),[]),(0,e.useEffect)((()=>{Promise.resolve().then(o.bind(o,1432)).then((e=>{const t=e.ToastContainer;y((()=>t))}))}),[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(s,null),c?(0,e.createElement)(e.Fragment,null,_&&(0,e.createElement)(_,null),(0,e.createElement)(u.c,{fallback:"Could not load page"},"dashboard"===l&&v&&(0,e.createElement)(v,null),"dashboard"===l&&!v&&(0,e.createElement)(i,null),"statistics"===l&&g&&(0,e.createElement)(g,null),"statistics"===l&&!g&&(0,e.createElement)(i,null),"settings"===l&&w&&(0,e.createElement)(w,null),"settings"===l&&!w&&(0,e.createElement)(i,null))):(0,e.createElement)(i,null),m&&(0,e.createElement)(m,{position:"bottom-right",autoClose:2e3,limit:5,hideProgressBar:!0,newestOnTop:!0,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,theme:"light"}))};var l=o(1040);const d=console;var h=o(2552),f=o(4244);class p{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,l.AT)(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:l.oj?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class m extends p{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||d,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=(0,l.Cs)(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(l.Kw).catch(l.Kw):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,l.ob)(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var s;return null==(s=this.retryer)||s.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const i=(0,l._k)(),o={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};a(o);const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(o)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var c;a(u),null==(n=this.options.behavior)||n.onFetch(u),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=u.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(c=u.fetchOptions)?void 0:c.meta});const d=e=>{var t,n,r,s;(0,f.qu)(e)&&e.silent||this.dispatch({type:"error",error:e}),(0,f.qu)(e)||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(s=this.cache.config).onSettled)||r.call(s,this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,f.uI)({fn:u.fetchFn,abort:null==i?void 0:i.abort.bind(i),onSuccess:e=>{var t,n,r,s;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(s=this.cache.config).onSettled)||r.call(s,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):d(new Error(this.queryHash+" data is undefined"))},onError:d,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:(0,f.ot)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return(0,f.qu)(s)&&s.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:s,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),h.y.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}var y=o(7860);class v extends y.Q{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const s=t.queryKey,i=null!=(r=t.queryHash)?r:(0,l.oX)(s,t);let o=this.get(i);return o||(o=new m({cache:this,logger:e.getLogger(),queryKey:s,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(s)}),this.add(o)),o}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){h.y.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=(0,l.A7)(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>(0,l._W)(n,e)))}findAll(e,t){const[n]=(0,l.A7)(e,t);return Object.keys(n).length>0?this.queries.filter((e=>(0,l._W)(n,e))):this.queries}notify(e){h.y.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){h.y.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){h.y.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class b extends p{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||d,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=(0,f.uI)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,s,i,o,a,u,c;if(!t){var l,d,h,p;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(d=this.mutationCache.config).onMutate)?void 0:l.call(d,this.state.variables,this));const e=await(null==(h=(p=this.options).onMutate)?void 0:h.call(p,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const f=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,f,this.state.variables,this.state.context,this)),await(null==(s=(i=this.options).onSuccess)?void 0:s.call(i,f,this.state.variables,this.state.context)),await(null==(o=(a=this.mutationCache.config).onSettled)?void 0:o.call(a,f,null,this.state.variables,this.state.context,this)),await(null==(u=(c=this.options).onSettled)?void 0:u.call(c,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(e){try{var m,y,v,b,g,E,w,O;throw await(null==(m=(y=this.mutationCache.config).onError)?void 0:m.call(y,e,this.state.variables,this.state.context,this)),await(null==(v=(b=this.options).onError)?void 0:v.call(b,e,this.state.variables,this.state.context)),await(null==(g=(E=this.mutationCache.config).onSettled)?void 0:g.call(E,void 0,e,this.state.variables,this.state.context,this)),await(null==(w=(O=this.options).onSettled)?void 0:w.call(O,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,f.ot)(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),h.y.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}class g extends y.Q{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new b({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){h.y.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>(0,l.Yn)(e,t)))}findAll(e){return this.mutations.filter((t=>(0,l.Yn)(e,t)))}notify(e){h.y.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return h.y.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(l.Kw)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}var E=o(8200),w=o(7940);function O(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var _=o(6524);const P=function(){return null},S=new v({onError:e=>{}});let C={defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1,retry:!1}}};C={...C,queryCache:S};const T=new class{constructor(e={}){this.queryCache=e.queryCache||new v,this.mutationCache=e.mutationCache||new g,this.logger=e.logger||d,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=E.m.subscribe((()=>{E.m.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=w.q.subscribe((()=>{w.q.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=(0,l.A7)(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=(0,l.O2)(e,t,n),s=this.getQueryData(r.queryKey);return s?Promise.resolve(s):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.queryCache.find(e),s=null==r?void 0:r.state.data,i=(0,l.iY)(t,s);if(void 0===i)return;const o=(0,l.O2)(e),a=this.defaultQueryOptions(o);return this.queryCache.build(this,a).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return h.y.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=(0,l.A7)(e,t),r=this.queryCache;h.y.batch((()=>{r.findAll(n).forEach((e=>{r.remove(e)}))}))}resetQueries(e,t,n){const[r,s]=(0,l.A7)(e,t,n),i=this.queryCache,o={type:"active",...r};return h.y.batch((()=>(i.findAll(r).forEach((e=>{e.reset()})),this.refetchQueries(o,s))))}cancelQueries(e,t,n){const[r,s={}]=(0,l.A7)(e,t,n);void 0===s.revert&&(s.revert=!0);const i=h.y.batch((()=>this.queryCache.findAll(r).map((e=>e.cancel(s)))));return Promise.all(i).then(l.Kw).catch(l.Kw)}invalidateQueries(e,t,n){const[r,s]=(0,l.A7)(e,t,n);return h.y.batch((()=>{var e,t;if(this.queryCache.findAll(r).forEach((e=>{e.invalidate()})),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,s)}))}refetchQueries(e,t,n){const[r,s]=(0,l.A7)(e,t,n),i=h.y.batch((()=>this.queryCache.findAll(r).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...s,cancelRefetch:null==(t=null==s?void 0:s.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}))));let o=Promise.all(i).then(l.Kw);return null!=s&&s.throwOnError||(o=o.catch(l.Kw)),o}fetchQuery(e,t,n){const r=(0,l.O2)(e,t,n),s=this.defaultQueryOptions(r);void 0===s.retry&&(s.retry=!1);const i=this.queryCache.build(this,s);return i.isStaleByTime(s.staleTime)?i.fetch(s):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(l.Kw).catch(l.Kw)}fetchInfiniteQuery(e,t,n){const r=(0,l.O2)(e,t,n);return r.behavior={onFetch:e=>{e.fetchFn=()=>{var t,n,r,s,i,o;const a=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,u=null==(r=e.fetchOptions)||null==(s=r.meta)?void 0:s.fetchMore,c=null==u?void 0:u.pageParam,l="forward"===(null==u?void 0:u.direction),d="backward"===(null==u?void 0:u.direction),h=(null==(i=e.state.data)?void 0:i.pages)||[],f=(null==(o=e.state.data)?void 0:o.pageParams)||[];let p=f,m=!1;const y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(e,t,n,r)=>(p=r?[t,...p]:[...p,t],r?[n,...e]:[...e,n]),b=(t,n,r,s)=>{if(m)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const i={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var o;o=i,Object.defineProperty(o,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{m=!0})),e.signal}});const a=y(i);return Promise.resolve(a).then((e=>v(t,r,e,s)))};let g;if(h.length)if(l){const t=void 0!==c,n=t?c:O(e.options,h);g=b(h,t,n)}else if(d){const t=void 0!==c,n=t?c:(E=e.options,w=h,null==E.getPreviousPageParam?void 0:E.getPreviousPageParam(w[0],w));g=b(h,t,n,!0)}else{p=[];const t=void 0===e.options.getNextPageParam;g=a&&h[0]&&!a(h[0],0,h)?Promise.resolve(v([],f[0],h[0])):b([],t,f[0]);for(let n=1;n<h.length;n++)g=g.then((r=>{if(!a||!h[n]||a(h[n],n,h)){const s=t?f[n]:O(e.options,r);return b(r,t,s)}return Promise.resolve(v(r,f[n],h[n]))}))}else g=b([]);var E,w;return g.then((e=>({pages:e,pageParams:p})))}}},this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(l.Kw).catch(l.Kw)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>(0,l.aw)(e)===(0,l.aw)(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>(0,l.GS)(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>(0,l.aw)(e)===(0,l.aw)(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>(0,l.GS)(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=(0,l.oX)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}(C);document.addEventListener("DOMContentLoaded",(()=>{const t=document.getElementById("burst-statistics");t&&(e.createRoot?(0,e.createRoot)(t).render((0,e.createElement)(React.StrictMode,null,(0,e.createElement)(_.K6,{client:T},(0,e.createElement)("div",{className:"burst-wrapper"},(0,e.createElement)(c,null)),(0,e.createElement)(P,null)))):(0,e.render)((0,e.createElement)(React.StrictMode,null,(0,e.createElement)(_.K6,{client:T},(0,e.createElement)("div",{className:"burst-wrapper"},(0,e.createElement)(c,null)),(0,e.createElement)(P,null))),t))}))})()})();