File "index.js"

Full path: /home/satkhirabarta/public_html/wp-content/plugins/burst-statistics/dashboard-widget/build/index.js
File size: 176.28 B (176.28 KB bytes)
MIME-type: text/plain
Charset: utf-8

Download   Open   Edit   Advanced Editor &nnbsp; Back

!function(){var e,t,n={250:function(e,t,n){"use strict";var r=n(196),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return a((function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})}),[e,n,t]),s((function(){return c(i)&&u({inst:i}),e((function(){c(i)&&u({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},688:function(e,t,n){"use strict";e.exports=n(250)},545:function(e,t,n){"use strict";var r=n(825);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==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:o,resetWarningCache:i};return n.PropTypes=n,n}},317:function(e,t,n){e.exports=n(545)()},825:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},196:function(e){"use strict";e.exports=window.React}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,i),o.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.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 o=Object.create(null);i.r(o);var s={};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((function(e){s[e]=function(){return n[e]}}));return s.default=function(){return n},i.d(o,s),o},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=i(196),t=i.t(e,2),n=window.wp.element,r=window.wp.i18n;function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function a(e){s(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===o(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function l(e){s(1,arguments);var t=a(e);return t.setHours(0,0,0,0),t}function c(e){s(1,arguments);var t=a(e);return t.setHours(23,59,59,999),t}function u(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function d(e,t){s(2,arguments);var n=a(e),r=u(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function h(e){s(1,arguments);var t=a(e);return t.setDate(1),t.setHours(0,0,0,0),t}function f(e,t){s(2,arguments);var n=a(e),r=u(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());return o.setMonth(n.getMonth()+r+1,0),i>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function m(e){s(1,arguments);var t=a(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function p(e){s(1,arguments);var t=a(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function g(e,t){return s(2,arguments),f(e,12*u(t))}function v(e){s(1,arguments);var t=a(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function y(e=0){let t=Number(e);isNaN(t)&&(t=0);const n=Math.floor(t/1e3),r=Math.floor(n/3600),i=Math.floor((n-3600*r)/60);return[r,i,n-3600*r-60*i].map((e=>isNaN(e)?"00":String(e).padStart(2,"0"))).join(":")}function w(e,t=1){return e=Number(e),isNaN(e)&&(e=0),new Intl.NumberFormat(void 0,{style:"decimal",notation:"compact",compactDisplay:"short",maximumFractionDigits:t}).format(e)}window.wp.date;const b=function(e=new Date){const t=-60*e.getTimezoneOffset(),n=Math.floor(e.getTime()/1e3)+3600*burst_settings.gmt_offset-t;return new Date(1e3*n)}(),C={today:{label:(0,r.__)("Today","burst-statistics"),range:()=>({startDate:l(b),endDate:c(b)})},yesterday:{label:(0,r.__)("Yesterday","burst-statistics"),range:()=>({startDate:l(d(b,-1)),endDate:c(d(b,-1))})},"last-7-days":{label:(0,r.__)("Last 7 days","burst-statistics"),range:()=>({startDate:l(d(b,-7)),endDate:c(d(b,-1))})},"last-30-days":{label:(0,r.__)("Last 30 days","burst-statistics"),range:()=>({startDate:l(d(b,-30)),endDate:c(d(b,-1))})},"last-90-days":{label:(0,r.__)("Last 90 days","burst-statistics"),range:()=>({startDate:l(d(b,-90)),endDate:c(d(b,-1))})},"last-month":{label:(0,r.__)("Last month","burst-statistics"),range:()=>({startDate:h(f(b,-1)),endDate:m(f(b,-1))})},"week-to-date":{label:(0,r.__)("Week to date","burst-statistics"),range:()=>({startDate:l(d(b,-b.getDay())),endDate:c(b)})},"month-to-date":{label:(0,r.__)("Month to date","burst-statistics"),range:()=>({startDate:h(b),endDate:c(b)})},"year-to-date":{label:(0,r.__)("Year to date","burst-statistics"),range:()=>({startDate:p(b),endDate:c(b)})},"last-year":{label:(0,r.__)("Last year","burst-statistics"),range:()=>({startDate:p(g(b,-1)),endDate:v(g(b,-1))})}},E=e=>{let t={};return Object.keys(C).filter((t=>e.includes(t))).forEach((e=>{t[e]={...C[e]}})),t};var x=window.wp.apiFetch,M=i.n(x);function T(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=T(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}var S=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=T(e))&&(r&&(r+=" "),r+=t);return r};const O=e=>"number"==typeof e&&!isNaN(e),L=e=>"string"==typeof e,P=e=>"function"==typeof e,D=e=>L(e)||P(e)?e:null,R=t=>(0,e.isValidElement)(t)||L(t)||P(t)||O(t);function z(t){let{enter:n,exit:r,appendPosition:i=!1,collapse:o=!0,collapseDuration:s=300}=t;return function(t){let{children:a,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:h}=t;const f=i?`${n}--${l}`:n,m=i?`${r}--${l}`:r,p=(0,e.useRef)(0);return(0,e.useLayoutEffect)((()=>{const e=d.current,t=f.split(" "),n=r=>{r.target===d.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===p.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,e.useEffect)((()=>{const e=d.current,t=()=>{e.removeEventListener("animationend",t),o?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame((()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame((()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)}))}))}(e,u,s):u()};h||(c?t():(p.current=1,e.className+=` ${m}`,e.addEventListener("animationend",t)))}),[h]),e.createElement(e.Fragment,null,a)}}function _(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 H={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)}))}},k=t=>{let{theme:n,type:r,...i}=t;return e.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===n?"currentColor":`var(--toastify-icon-color-${r})`,...i})},N={info:function(t){return e.createElement(k,{...t},e.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(t){return e.createElement(k,{...t},e.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(t){return e.createElement(k,{...t},e.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(t){return e.createElement(k,{...t},e.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 e.createElement("div",{className:"Toastify__spinner"})}};function q(t){const[,n]=(0,e.useReducer)((e=>e+1),0),[r,i]=(0,e.useState)([]),o=(0,e.useRef)(null),s=(0,e.useRef)(new Map).current,a=e=>-1!==r.indexOf(e),l=(0,e.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:t,containerId:null,isToastActive:a,getToast:e=>s.get(e)}).current;function c(e){let{containerId:t}=e;const{limit:n}=l.props;!n||t&&l.containerId!==t||(l.count-=l.queue.length,l.queue=[])}function u(e){i((t=>null==e?[]:t.filter((t=>t!==e))))}function d(){const{toastContent:e,toastProps:t,staleId:n}=l.queue.shift();f(e,t,n)}function h(t,r){let{delay:i,staleId:a,...c}=r;if(!R(t)||function(e){return!o.current||l.props.enableMultiContainer&&e.containerId!==l.props.containerId||s.has(e.toastId)&&null==e.updateId}(c))return;const{toastId:h,updateId:m,data:p}=c,{props:g}=l,v=()=>u(h),y=null==m;y&&l.count++;const w={...g,style:g.toastStyle,key:l.toastKey++,...Object.fromEntries(Object.entries(c).filter((e=>{let[t,n]=e;return null!=n}))),toastId:h,updateId:m,data:p,closeToast:v,isIn:!1,className:D(c.className||g.toastClassName),bodyClassName:D(c.bodyClassName||g.bodyClassName),progressClassName:D(c.progressClassName||g.progressClassName),autoClose:!c.isLoading&&(b=c.autoClose,C=g.autoClose,!1===b||O(b)&&b>0?b:C),deleteToast(){const e=_(s.get(h),"removed");s.delete(h),H.emit(4,e);const t=l.queue.length;if(l.count=null==h?l.count-l.displayedToast:l.count-1,l.count<0&&(l.count=0),t>0){const e=null==h?l.props.limit:1;if(1===t||1===e)l.displayedToast++,d();else{const n=e>t?t:e;l.displayedToast=n;for(let e=0;e<n;e++)d()}}else n()}};var b,C;w.iconOut=function(t){let{theme:n,type:r,isLoading:i,icon:o}=t,s=null;const a={theme:n,type:r};return!1===o||(P(o)?s=o(a):(0,e.isValidElement)(o)?s=(0,e.cloneElement)(o,a):L(o)||O(o)?s=o:i?s=N.spinner():(e=>e in N)(r)&&(s=N[r](a))),s}(w),P(c.onOpen)&&(w.onOpen=c.onOpen),P(c.onClose)&&(w.onClose=c.onClose),w.closeButton=g.closeButton,!1===c.closeButton||R(c.closeButton)?w.closeButton=c.closeButton:!0===c.closeButton&&(w.closeButton=!R(g.closeButton)||g.closeButton);let E=t;(0,e.isValidElement)(t)&&!L(t.type)?E=(0,e.cloneElement)(t,{closeToast:v,toastProps:w,data:p}):P(t)&&(E=t({closeToast:v,toastProps:w,data:p})),g.limit&&g.limit>0&&l.count>g.limit&&y?l.queue.push({toastContent:E,toastProps:w,staleId:a}):O(i)?setTimeout((()=>{f(E,w,a)}),i):f(E,w,a)}function f(e,t,n){const{toastId:r}=t;n&&s.delete(n);const o={content:e,props:t};s.set(r,o),i((e=>[...e,r].filter((e=>e!==n)))),H.emit(4,_(o,null==o.props.updateId?"added":"updated"))}return(0,e.useEffect)((()=>(l.containerId=t.containerId,H.cancelEmit(3).on(0,h).on(1,(e=>o.current&&u(e))).on(5,c).emit(2,l),()=>{s.clear(),H.emit(3,l)})),[]),(0,e.useEffect)((()=>{l.props=t,l.isToastActive=a,l.displayedToast=r.length})),{getToastToRender:function(e){const n=new Map,r=Array.from(s.values());return t.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,(t=>e(t[0],t[1])))},containerRef:o,isToastActive:a}}function F(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function A(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function I(t){const[n,r]=(0,e.useState)(!1),[i,o]=(0,e.useState)(!1),s=(0,e.useRef)(null),a=(0,e.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=(0,e.useRef)(t),{autoClose:c,pauseOnHover:u,closeToast:d,onClick:h,closeOnClick:f}=t;function m(e){if(t.draggable){"touchstart"===e.nativeEvent.type&&e.nativeEvent.preventDefault(),a.didMove=!1,document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),document.addEventListener("touchmove",y),document.addEventListener("touchend",w);const n=s.current;a.canCloseOnClick=!0,a.canDrag=!0,a.boundingRect=n.getBoundingClientRect(),n.style.transition="",a.x=F(e.nativeEvent),a.y=A(e.nativeEvent),"x"===t.draggableDirection?(a.start=a.x,a.removalDistance=n.offsetWidth*(t.draggablePercent/100)):(a.start=a.y,a.removalDistance=n.offsetHeight*(80===t.draggablePercent?1.5*t.draggablePercent:t.draggablePercent/100))}}function p(e){if(a.boundingRect){const{top:n,bottom:r,left:i,right:o}=a.boundingRect;"touchend"!==e.nativeEvent.type&&t.pauseOnHover&&a.x>=i&&a.x<=o&&a.y>=n&&a.y<=r?v():g()}}function g(){r(!0)}function v(){r(!1)}function y(e){const r=s.current;a.canDrag&&r&&(a.didMove=!0,n&&v(),a.x=F(e),a.y=A(e),a.delta="x"===t.draggableDirection?a.x-a.start:a.y-a.start,a.start!==a.x&&(a.canCloseOnClick=!1),r.style.transform=`translate${t.draggableDirection}(${a.delta}px)`,r.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function w(){document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",w),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",w);const e=s.current;if(a.canDrag&&a.didMove&&e){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return o(!0),void t.closeToast();e.style.transition="transform 0.2s, opacity 0.2s",e.style.transform=`translate${t.draggableDirection}(0)`,e.style.opacity="1"}}(0,e.useEffect)((()=>{l.current=t})),(0,e.useEffect)((()=>(s.current&&s.current.addEventListener("d",g,{once:!0}),P(t.onOpen)&&t.onOpen((0,e.isValidElement)(t.children)&&t.children.props),()=>{const t=l.current;P(t.onClose)&&t.onClose((0,e.isValidElement)(t.children)&&t.children.props)})),[]),(0,e.useEffect)((()=>(t.pauseOnFocusLoss&&(document.hasFocus()||v(),window.addEventListener("focus",g),window.addEventListener("blur",v)),()=>{t.pauseOnFocusLoss&&(window.removeEventListener("focus",g),window.removeEventListener("blur",v))})),[t.pauseOnFocusLoss]);const b={onMouseDown:m,onTouchStart:m,onMouseUp:p,onTouchEnd:p};return c&&u&&(b.onMouseEnter=v,b.onMouseLeave=g),f&&(b.onClick=e=>{h&&h(e),a.canCloseOnClick&&d()}),{playToast:g,pauseToast:v,isRunning:n,preventExitTransition:i,toastRef:s,eventHandlers:b}}function V(t){let{closeToast:n,theme:r,ariaLabel:i="close"}=t;return e.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:e=>{e.stopPropagation(),n(e)},"aria-label":i},e.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},e.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 B(t){let{delay:n,isRunning:r,closeToast:i,type:o="default",hide:s,className:a,style:l,controlledProgress:c,progress:u,rtl:d,isIn:h,theme:f}=t;const m=s||c&&0===u,p={...l,animationDuration:`${n}ms`,animationPlayState:r?"running":"paused",opacity:m?0:1};c&&(p.transform=`scaleX(${u})`);const g=S("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":d}),v=P(a)?a({rtl:d,type:o,defaultClassName:g}):S(g,a);return e.createElement("div",{role:"progressbar","aria-hidden":m?"true":"false","aria-label":"notification timer",className:v,style:p,[c&&u>=1?"onTransitionEnd":"onAnimationEnd"]:c&&u<1?null:()=>{h&&i()}})}const U=t=>{const{isRunning:n,preventExitTransition:r,toastRef:i,eventHandlers:o}=I(t),{closeButton:s,children:a,autoClose:l,onClick:c,type:u,hideProgressBar:d,closeToast:h,transition:f,position:m,className:p,style:g,bodyClassName:v,bodyStyle:y,progressClassName:w,progressStyle:b,updateId:C,role:E,progress:x,rtl:M,toastId:T,deleteToast:O,isIn:L,isLoading:D,iconOut:R,closeOnClick:z,theme:_}=t,H=S("Toastify__toast",`Toastify__toast-theme--${_}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":M},{"Toastify__toast--close-on-click":z}),k=P(p)?p({rtl:M,position:m,type:u,defaultClassName:H}):S(H,p),N=!!x||!l,q={closeToast:h,type:u,theme:_};let F=null;return!1===s||(F=P(s)?s(q):(0,e.isValidElement)(s)?(0,e.cloneElement)(s,q):V(q)),e.createElement(f,{isIn:L,done:O,position:m,preventExitTransition:r,nodeRef:i},e.createElement("div",{id:T,onClick:c,className:k,...o,style:g,ref:i},e.createElement("div",{...L&&{role:E},className:P(v)?v({type:u}):S("Toastify__toast-body",v),style:y},null!=R&&e.createElement("div",{className:S("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!D})},R),e.createElement("div",null,a)),F,e.createElement(B,{...C&&!N?{key:`pb-${C}`}:{},rtl:M,theme:_,delay:l,isRunning:n,isIn:L,closeToast:h,hide:d,type:u,style:b,className:w,controlledProgress:N,progress:x||0})))},Q=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},W=z(Q("bounce",!0)),j=(z(Q("slide",!0)),z(Q("zoom")),z(Q("flip")),(0,e.forwardRef)(((t,n)=>{const{getToastToRender:r,containerRef:i,isToastActive:o}=q(t),{className:s,style:a,rtl:l,containerId:c}=t;function u(e){const t=S("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":l});return P(s)?s({position:e,rtl:l,defaultClassName:t}):S(t,D(s))}return(0,e.useEffect)((()=>{n&&(n.current=i.current)}),[]),e.createElement("div",{ref:i,className:"Toastify",id:c},r(((t,n)=>{const r=n.length?{...a}:{...a,pointerEvents:"none"};return e.createElement("div",{className:u(t),style:r,key:`container-${t}`},n.map(((t,r)=>{let{content:i,props:s}=t;return e.createElement(U,{...s,isIn:o(s.toastId),style:{...s.style,"--nth":r+1,"--len":n.length},key:`toast-${s.key}`},i)})))})))})));j.displayName="ToastContainer",j.defaultProps={position:"top-right",transition:W,autoClose:5e3,closeButton:V,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let Y,$=new Map,K=[],G=1;function X(){return""+G++}function J(e){return e&&(L(e.toastId)||O(e.toastId))?e.toastId:X()}function Z(e,t){return $.size>0?H.emit(0,e,t):K.push({content:e,options:t}),t.toastId}function ee(e,t){return{...t,type:t&&t.type||e,toastId:J(t)}}function te(e){return(t,n)=>Z(t,ee(e,n))}function ne(e,t){return Z(e,ee("default",t))}ne.loading=(e,t)=>Z(e,ee("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ne.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=L(i)?ne.loading(i,n):ne.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,i)=>{if(null==t)return void ne.dismiss(r);const o={type:e,...a,...n,data:i},s=L(t)?{render:t}:t;return r?ne.update(r,{...o,...s}):ne(s.render,{...o,...s}),i},c=P(e)?e():e;return c.then((e=>l("success",s,e))).catch((e=>l("error",o,e))),c},ne.success=te("success"),ne.info=te("info"),ne.error=te("error"),ne.warning=te("warning"),ne.warn=ne.warning,ne.dark=(e,t)=>Z(e,ee("default",{theme:"dark",...t})),ne.dismiss=e=>{$.size>0?H.emit(1,e):K=K.filter((t=>null!=e&&t.options.toastId!==e))},ne.clearWaitingQueue=function(e){return void 0===e&&(e={}),H.emit(5,e)},ne.isActive=e=>{let t=!1;return $.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},ne.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const r=$.get(n||Y);return r&&r.getToast(e)}(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:X()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,Z(s,o)}}),0)},ne.done=e=>{ne.update(e,{progress:1})},ne.onChange=e=>(H.on(4,e),()=>{H.off(4,e)}),ne.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"},ne.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},H.on(2,(e=>{Y=e.containerId||e,$.set(Y,e),K.forEach((e=>{H.emit(0,e.content,e.options)})),K=[]})).on(3,(e=>{$.delete(e.containerId||e),0===$.size&&H.off(0).off(1).off(5)}));const re=(t,n=!1)=>{let i=(0,r.__)("Server error","burst-statistics");if(t=t.replace(/(<([^>]+)>)/gi,""),n){const e=n.split("?")[0].split("/"),t=e.indexOf("v1")+1;i=(0,r.__)("Server error in","burst-statistics")+" "+e[t]+"/"+e[t+1]}i+=": "+t;const o=(0,e.createElement)("div",{title:(0,r.__)("Click to copy","burst-statistics"),onClick:()=>{navigator.clipboard.writeText(i),ne.success((0,r.__)("Error copied to clipboard","burst-statistics"))}},i);ne.error(o,{autoClose:15e3})},ie=async(e,t,n=null)=>{const r="GET"===e?`${se("ajax")}&rest_action=${t.replace("?","&")}`:se("ajax"),i={method:e,headers:{"Content-Type":"application/json; charset=UTF-8"}};"POST"===e&&(i.body=JSON.stringify({path:t,data:n},oe));try{const e=await fetch(r,i);if(!e.ok)throw re(!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"))}},oe=(e,t)=>e?e&&e.includes("Control")?void 0:"object"==typeof t?JSON.parse(JSON.stringify(t,oe)):t:t,se=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},ae=async(e,t,n,r,i)=>await(async(e,t="GET",n={})=>{let r={path:e,method:t};return"POST"===t&&(n.nonce=burst_settings.burst_nonce,r.data=n),M()(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((i=>(console.log(i),ie(t,e,n).catch((()=>{throw re(i.message,r.path),i})))))})(`burst/v1/data/${e}${(-1!==burst_settings.site_url.indexOf("?")?"&":"?")+"nonce="+burst_settings.burst_nonce+"&token="+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}&date_start=${t}&date_end=${n}&date_range=${r}`,"POST",i);var le=async e=>{const{startDate:t,endDate:n,range:r,filters:i}=e,{data:o}=await ae("live-visitors",t,n,r,{filters:i});return w(o)},ce=i(317),ue=i.n(ce);class de extends n.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,e.createElement)("div",{className:"burst-error-boundary"},(0,e.createElement)("h3",null,(0,r.__)("Uh-oh! We stumbled upon an error.","burst-statistics")),(0,e.createElement)("div",{className:"burst-error-boundary__copy-error"},(0,e.createElement)("p",{className:"burst-error-boundary__error-code"},this.state.error&&this.state.error.toString()),(0,e.createElement)("p",{className:"burst-error-boundary__error-stack"},"Stack trace: ",this.state.errorInfo&&this.state.errorInfo.componentStack),(0,e.createElement)("button",{className:"burst-button burst-button--secondary",onClick:this.copyError},this.state.copied?(0,r.__)("Copied","burst-statistics"):(0,r.__)("Copy Error","burst-statistics"))),burst_settings.is_pro?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",null,(0,r.__)("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,e.createElement)("ol",null,(0,e.createElement)("li",null,(0,r.sprintf)((0,r.__)("Copy the error details by clicking the %s button above.","burst-statistics"),'"Copy Error"')),(0,e.createElement)("li",null,(0,e.createElement)("a",{href:"https://burst-statistics.com/support/"},(0,r.__)("Visit our support page.","burst-statistics"))),(0,e.createElement)("li",null,(0,r.sprintf)((0,r.__)("Under %s, provide your Name, Email, Website, and License details.","burst-statistics"),'"Log a Support Ticket"')),(0,e.createElement)("li",null,(0,r.sprintf)((0,r.__)("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,e.createElement)("li",null,(0,r.sprintf)((0,r.__)("If possible, attach any relevant files.","burst-statistics"))),(0,e.createElement)("li",null,(0,r.sprintf)((0,r.__)("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,e.createElement)(e.Fragment,null,(0,e.createElement)("p",null,(0,r.__)("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,e.createElement)("ol",null,(0,e.createElement)("li",null,(0,r.sprintf)((0,r.__)("Copy the error details by clicking the %s button above.","burst-statistics"),'"Copy Error"')),(0,e.createElement)("li",null,(0,e.createElement)("a",{href:"https://wordpress.org/support/plugin/burst-statistics/#new-topic-0"},(0,r.__)("Navigate to the Support Forum.","burst-statistics"))),(0,e.createElement)("li",null,(0,r.sprintf)((0,r.__)("If you haven’t already, log in to your WordPress.org account or create a new account.","burst-statistics"))),(0,e.createElement)("li",null,(0,r.sprintf)((0,r.__)("Once logged in, click on %s under the Burst Statistics forum.","burst-statistics"),'"Create Topic"')),(0,e.createElement)("li",null,(0,r.sprintf)((0,r.__)("Title: Mention %s along with a brief hint of the error.","burst-statistics"),"'Error Encountered'")),(0,e.createElement)("li",null,(0,r.sprintf)((0,r.__)("Description: Paste the copied error details and explain what you were doing when the error occurred.","burst-statistics"))),(0,e.createElement)("li",null,(0,r.sprintf)((0,r.__)("Click %s to post your topic. Our team will look into the issue and provide assistance.","burst-statistics"),'"Submit"'))))):this.props.children}}de.propTypes={children:ue().node,fallback:ue().node};var he=de,fe=({className:t,title:n,controls:r,children:i,footer:o})=>(0,e.createElement)(he,{fallback:"Could not load page"},(0,e.createElement)("div",{className:"burst-grid-item "+t},(0,e.createElement)("div",{className:"burst-grid-item-header"},(0,e.createElement)("h3",{className:"burst-grid-title burst-h4"},n),(0,e.createElement)("div",{className:"burst-grid-item-controls"},r)),(0,e.createElement)("div",{className:"burst-grid-item-content"},i),(0,e.createElement)("div",{className:"burst-grid-item-footer"},o)));function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},me.apply(this,arguments)}function pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function ge(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function ve(...t){return(0,e.useCallback)(ge(...t),t)}function ye(t,n=[]){let r=[];const i=()=>{const n=r.map((t=>(0,e.createContext)(t)));return function(r){const i=(null==r?void 0:r[t])||n;return(0,e.useMemo)((()=>({[`__scope${t}`]:{...r,[t]:i}})),[r,i])}};return i.scopeName=t,[function(n,i){const o=(0,e.createContext)(i),s=r.length;function a(n){const{scope:r,children:i,...a}=n,l=(null==r?void 0:r[t][s])||o,c=(0,e.useMemo)((()=>a),Object.values(a));return(0,e.createElement)(l.Provider,{value:c},i)}return r=[...r,i],a.displayName=n+"Provider",[a,function(r,a){const l=(null==a?void 0:a[t][s])||o,c=(0,e.useContext)(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},we(i,...n)]}function we(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const i=r.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return(0,e.useMemo)((()=>({[`__scope${n.scopeName}`]:i})),[i])}};return r.scopeName=n.scopeName,r}var be=window.ReactDOM;const Ce=(0,e.forwardRef)(((t,n)=>{const{children:r,...i}=t,o=e.Children.toArray(r),s=o.find(Me);if(s){const t=s.props.children,r=o.map((n=>n===s?e.Children.count(t)>1?e.Children.only(null):(0,e.isValidElement)(t)?t.props.children:null:n));return(0,e.createElement)(Ee,me({},i,{ref:n}),(0,e.isValidElement)(t)?(0,e.cloneElement)(t,void 0,r):null)}return(0,e.createElement)(Ee,me({},i,{ref:n}),r)}));Ce.displayName="Slot";const Ee=(0,e.forwardRef)(((t,n)=>{const{children:r,...i}=t;return(0,e.isValidElement)(r)?(0,e.cloneElement)(r,{...Te(i,r.props),ref:n?ge(n,r.ref):r.ref}):e.Children.count(r)>1?e.Children.only(null):null}));Ee.displayName="SlotClone";const xe=({children:t})=>(0,e.createElement)(e.Fragment,null,t);function Me(t){return(0,e.isValidElement)(t)&&t.type===xe}function Te(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}const Se=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=(0,e.forwardRef)(((t,r)=>{const{asChild:i,...o}=t,s=i?Ce:n;return(0,e.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,e.createElement)(s,me({},o,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{});function Oe(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t})),(0,e.useMemo)((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}const Le="dismissableLayer.update";let Pe;const De=(0,e.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Re=(0,e.forwardRef)(((t,n)=>{var r;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=t,d=(0,e.useContext)(De),[h,f]=(0,e.useState)(null),m=null!==(r=null==h?void 0:h.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,p]=(0,e.useState)({}),g=ve(n,(e=>f(e))),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(y),b=h?v.indexOf(h):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,E=b>=w,x=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Oe(t),i=(0,e.useRef)(!1),o=(0,e.useRef)((()=>{}));return(0,e.useEffect)((()=>{const e=e=>{if(e.target&&!i.current){const t={originalEvent:e};function s(){_e("dismissableLayer.pointerDownOutside",r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=s,n.addEventListener("click",o.current,{once:!0})):s()}else n.removeEventListener("click",o.current);i.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}}),[n,r]),{onPointerDownCapture:()=>i.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));E&&!n&&(null==s||s(e),null==l||l(e),e.defaultPrevented||null==c||c())}),m),M=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Oe(t),i=(0,e.useRef)(!1);return(0,e.useEffect)((()=>{const e=e=>{e.target&&!i.current&&_e("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==c||c())}),m);return function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=Oe(t);(0,e.useEffect)((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{b===d.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),m),(0,e.useEffect)((()=>{if(h)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Pe=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(h)),d.layers.add(h),ze(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=Pe)}}),[h,m,i,d]),(0,e.useEffect)((()=>()=>{h&&(d.layers.delete(h),d.layersWithOutsidePointerEventsDisabled.delete(h),ze())}),[h,d]),(0,e.useEffect)((()=>{const e=()=>p({});return document.addEventListener(Le,e),()=>document.removeEventListener(Le,e)}),[]),(0,e.createElement)(Se.div,me({},u,{ref:g,style:{pointerEvents:C?E?"auto":"none":void 0,...t.style},onFocusCapture:pe(t.onFocusCapture,M.onFocusCapture),onBlurCapture:pe(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:pe(t.onPointerDownCapture,x.onPointerDownCapture)}))}));function ze(){const e=new CustomEvent(Le);document.dispatchEvent(e)}function _e(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?function(e,t){e&&(0,be.flushSync)((()=>e.dispatchEvent(t)))}(i,o):i.dispatchEvent(o)}const He=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?e.useLayoutEffect:()=>{},ke=t["useId".toString()]||(()=>{});let Ne=0;const qe=["top","right","bottom","left"],Fe=Math.min,Ae=Math.max,Ie=Math.round,Ve=Math.floor,Be=e=>({x:e,y:e}),Ue={left:"right",right:"left",bottom:"top",top:"bottom"},Qe={start:"end",end:"start"};function We(e,t,n){return Ae(e,Fe(t,n))}function je(e,t){return"function"==typeof e?e(t):e}function Ye(e){return e.split("-")[0]}function $e(e){return e.split("-")[1]}function Ke(e){return"x"===e?"y":"x"}function Ge(e){return"y"===e?"height":"width"}function Xe(e){return["top","bottom"].includes(Ye(e))?"y":"x"}function Je(e){return Ke(Xe(e))}function Ze(e){return e.replace(/start|end/g,(e=>Qe[e]))}function et(e){return e.replace(/left|right|bottom|top/g,(e=>Ue[e]))}function tt(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function nt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function rt(e,t,n){let{reference:r,floating:i}=e;const o=Xe(t),s=Je(t),a=Ge(s),l=Ye(t),c="y"===o,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let f;switch(l){case"top":f={x:u,y:r.y-i.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-i.width,y:d};break;default:f={x:r.x,y:r.y}}switch($e(t)){case"start":f[s]-=h*(n&&c?-1:1);break;case"end":f[s]+=h*(n&&c?-1:1)}return f}async function it(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=je(t,e),m=tt(f),p=a[h?"floating"===d?"reference":"floating":d],g=nt(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(p)))||n?p:p.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{...s.floating,x:r,y:i}:s.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),w=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},b=nt(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-b.top+m.top)/w.y,bottom:(b.bottom-g.bottom+m.bottom)/w.y,left:(g.left-b.left+m.left)/w.x,right:(b.right-g.right+m.right)/w.x}}const ot=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=je(e,t)||{};if(null==c)return{};const d=tt(u),h={x:n,y:r},f=Je(i),m=Ge(f),p=await s.getDimensions(c),g="y"===f,v=g?"top":"left",y=g?"bottom":"right",w=g?"clientHeight":"clientWidth",b=o.reference[m]+o.reference[f]-h[f]-o.floating[m],C=h[f]-o.reference[f],E=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let x=E?E[w]:0;x&&await(null==s.isElement?void 0:s.isElement(E))||(x=a.floating[w]||o.floating[m]);const M=b/2-C/2,T=x/2-p[m]/2-1,S=Fe(d[v],T),O=Fe(d[y],T),L=S,P=x-p[m]-O,D=x/2-p[m]/2+M,R=We(L,D,P),z=!l.arrow&&null!=$e(i)&&D!=R&&o.reference[m]/2-(D<L?S:O)-p[m]/2<0,_=z?D<L?D-L:D-P:0;return{[f]:h[f]+_,data:{[f]:R,centerOffset:D-R-_,...z&&{alignmentOffset:_}},reset:z}}}),st=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...g}=je(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=Ye(i),y=Ye(a)===a,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=h||(y||!p?[et(a)]:function(e){const t=et(e);return[Ze(e),t,Ze(t)]}(a));h||"none"===m||b.push(...function(e,t,n,r){const i=$e(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}(Ye(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(Ze)))),o}(a,p,m,w));const C=[a,...b],E=await it(t,g),x=[];let M=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&x.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=$e(e),i=Je(e),o=Ge(i);let s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=et(s)),[s,et(s)]}(i,s,w);x.push(E[e[0]],E[e[1]])}if(M=[...M,{placement:i,overflows:x}],!x.every((e=>e<=0))){var T,S;const e=((null==(T=o.flip)?void 0:T.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(S=M.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:S.placement;if(!n)switch(f){case"bestFit":{var O;const e=null==(O=M.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=a}if(i!==n)return{reset:{placement:n}}}return{}}}};function at(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function lt(e){return qe.some((t=>e[t]>=0))}const ct=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=je(e,t);switch(r){case"referenceHidden":{const e=at(await it(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:lt(e)}}}case"escaped":{const e=at(await it(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:lt(e)}}}default:return{}}}}},ut=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),s=Ye(n),a=$e(n),l="y"===Xe(n),c=["left","top"].includes(s)?-1:1,u=o&&l?-1:1,d=je(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof m&&(f="end"===a?-1*m:m),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}},dt=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=je(e,t),c={x:n,y:r},u=await it(t,l),d=Xe(Ye(i)),h=Ke(d);let f=c[h],m=c[d];if(o){const e="y"===h?"bottom":"right";f=We(f+u["y"===h?"top":"left"],f,f-u[e])}if(s){const e="y"===d?"bottom":"right";m=We(m+u["y"===d?"top":"left"],m,m-u[e])}const p=a.fn({...t,[h]:f,[d]:m});return{...p,data:{x:p.x-n,y:p.y-r}}}}},ht=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:s=(()=>{}),...a}=je(e,t),l=await it(t,a),c=Ye(n),u=$e(n),d="y"===Xe(n),{width:h,height:f}=r.floating;let m,p;"top"===c||"bottom"===c?(m=c,p=u===(await(null==i.isRTL?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(p=c,m="end"===u?"top":"bottom");const g=f-l[m],v=h-l[p],y=!t.middlewareData.shift;let w=g,b=v;if(d){const e=h-l.left-l.right;b=u||y?Fe(v,e):e}else{const e=f-l.top-l.bottom;w=u||y?Fe(g,e):e}if(y&&!u){const e=Ae(l.left,0),t=Ae(l.right,0),n=Ae(l.top,0),r=Ae(l.bottom,0);d?b=h-2*(0!==e||0!==t?e+t:Ae(l.left,l.right)):w=f-2*(0!==n||0!==r?n+r:Ae(l.top,l.bottom))}await s({...t,availableWidth:b,availableHeight:w});const C=await i.getDimensions(o.floating);return h!==C.width||f!==C.height?{reset:{rects:!0}}:{}}}};function ft(e){return gt(e)?(e.nodeName||"").toLowerCase():"#document"}function mt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function pt(e){var t;return null==(t=(gt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function gt(e){return e instanceof Node||e instanceof mt(e).Node}function vt(e){return e instanceof Element||e instanceof mt(e).Element}function yt(e){return e instanceof HTMLElement||e instanceof mt(e).HTMLElement}function wt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof mt(e).ShadowRoot)}function bt(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Tt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Ct(e){return["table","td","th"].includes(ft(e))}function Et(e){const t=xt(),n=Tt(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function xt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Mt(e){return["html","body","#document"].includes(ft(e))}function Tt(e){return mt(e).getComputedStyle(e)}function St(e){return vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ot(e){if("html"===ft(e))return e;const t=e.assignedSlot||e.parentNode||wt(e)&&e.host||pt(e);return wt(t)?t.host:t}function Lt(e){const t=Ot(e);return Mt(t)?e.ownerDocument?e.ownerDocument.body:e.body:yt(t)&&bt(t)?t:Lt(t)}function Pt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Lt(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=mt(i);return o?t.concat(s,s.visualViewport||[],bt(i)?i:[],s.frameElement&&n?Pt(s.frameElement):[]):t.concat(i,Pt(i,[],n))}function Dt(e){const t=Tt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=yt(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Ie(n)!==o||Ie(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Rt(e){return vt(e)?e:e.contextElement}function zt(e){const t=Rt(e);if(!yt(t))return Be(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Dt(t);let s=(o?Ie(n.width):n.width)/r,a=(o?Ie(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const _t=Be(0);function Ht(e){const t=mt(e);return xt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:_t}function kt(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Rt(e);let s=Be(1);t&&(r?vt(r)&&(s=zt(r)):s=zt(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==mt(e))&&t}(o,n,r)?Ht(o):Be(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const e=mt(o),t=r&&vt(r)?mt(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=zt(n),t=n.getBoundingClientRect(),r=Tt(n),i=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=o,n=mt(n).frameElement}}return nt({width:u,height:d,x:l,y:c})}function Nt(e){return kt(pt(e)).left+St(e).scrollLeft}function qt(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=mt(e),r=pt(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const e=xt();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=pt(e),n=St(e),r=e.ownerDocument.body,i=Ae(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Ae(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Nt(e);const a=-n.scrollTop;return"rtl"===Tt(r).direction&&(s+=Ae(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}(pt(e));else if(vt(t))r=function(e,t){const n=kt(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=yt(e)?zt(e):Be(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=Ht(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return nt(r)}function Ft(e,t){const n=Ot(e);return!(n===t||!vt(n)||Mt(n))&&("fixed"===Tt(n).position||Ft(n,t))}function At(e,t,n){const r=yt(t),i=pt(t),o="fixed"===n,s=kt(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=Be(0);if(r||!r&&!o)if(("body"!==ft(t)||bt(i))&&(a=St(t)),r){const e=kt(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=Nt(i));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function It(e,t){return yt(e)&&"fixed"!==Tt(e).position?t?t(e):e.offsetParent:null}function Vt(e,t){const n=mt(e);if(!yt(e))return n;let r=It(e,t);for(;r&&Ct(r)&&"static"===Tt(r).position;)r=It(r,t);return r&&("html"===ft(r)||"body"===ft(r)&&"static"===Tt(r).position&&!Et(r))?n:r||function(e){let t=Ot(e);for(;yt(t)&&!Mt(t);){if(Et(t))return t;t=Ot(t)}return null}(e)||n}const Bt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=yt(n),o=pt(n);if(n===o)return t;let s={scrollLeft:0,scrollTop:0},a=Be(1);const l=Be(0);if((i||!i&&"fixed"!==r)&&(("body"!==ft(n)||bt(o))&&(s=St(n)),yt(n))){const e=kt(n);a=zt(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}},getDocumentElement:pt,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Pt(e,[],!1).filter((e=>vt(e)&&"body"!==ft(e))),i=null;const o="fixed"===Tt(e).position;let s=o?Ot(e):e;for(;vt(s)&&!Mt(s);){const t=Tt(s),n=Et(s);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||bt(s)&&!n&&Ft(e,s))?r=r.filter((e=>e!==s)):i=t,s=Ot(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=o[0],a=o.reduce(((e,n)=>{const r=qt(t,n,i);return e.top=Ae(r.top,e.top),e.right=Fe(r.right,e.right),e.bottom=Fe(r.bottom,e.bottom),e.left=Ae(r.left,e.left),e}),qt(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Vt,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||Vt,o=this.getDimensions;return{reference:At(t,await i(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return Dt(e)},getScale:zt,isElement:vt,isRTL:function(e){return"rtl"===Tt(e).direction}};const Ut=(e,t,n)=>{const r=new Map,i={platform:Bt,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=rt(c,r,l),h=r,f={},m=0;for(let n=0;n<a.length;n++){const{name:o,fn:p}=a[n],{x:g,y:v,data:y,reset:w}=await p({x:u,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,f={...f,[o]:{...f[o],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(c=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),({x:u,y:d}=rt(c,h,l))),n=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:f}})(e,t,{...i,platform:o})},Qt=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?ot({element:n.current,padding:r}).fn(t):{}:n?ot({element:n,padding:r}).fn(t):{};var i}});var Wt="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function jt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!jt(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(!("_owner"===n&&e.$$typeof||jt(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Yt(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $t(e,t){const n=Yt(e);return Math.round(t*n)/n}function Kt(t){const n=e.useRef(t);return Wt((()=>{n.current=t})),n}const Gt=(0,e.forwardRef)(((t,n)=>{const{children:r,width:i=10,height:o=5,...s}=t;return(0,e.createElement)(Se.svg,me({},s,{ref:n,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?r:(0,e.createElement)("polygon",{points:"0,0 30,0 15,10"}))})),Xt="Popper",[Jt,Zt]=ye(Xt),[en,tn]=Jt(Xt),nn=(0,e.forwardRef)(((t,n)=>{const{__scopePopper:r,virtualRef:i,...o}=t,s=tn("PopperAnchor",r),a=(0,e.useRef)(null),l=ve(n,a);return(0,e.useEffect)((()=>{s.onAnchorChange((null==i?void 0:i.current)||a.current)})),i?null:(0,e.createElement)(Se.div,me({},o,{ref:l}))})),rn="PopperContent",[on,sn]=Jt(rn),an=(0,e.forwardRef)(((t,n)=>{var r,i,o,s,a,l,c,u;const{__scopePopper:d,side:h="bottom",sideOffset:f=0,align:m="center",alignOffset:p=0,arrowPadding:g=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:w=0,sticky:b="partial",hideWhenDetached:C=!1,updatePositionStrategy:E="optimized",onPlaced:x,...M}=t,T=tn(rn,d),[S,O]=(0,e.useState)(null),L=ve(n,(e=>O(e))),[P,D]=(0,e.useState)(null),R=function(t){const[n,r]=(0,e.useState)(void 0);return He((()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let i,o;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,o=t.blockSize}else i=t.offsetWidth,o=t.offsetHeight;r({width:i,height:o})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)}),[t]),n}(P),z=null!==(r=null==R?void 0:R.width)&&void 0!==r?r:0,_=null!==(i=null==R?void 0:R.height)&&void 0!==i?i:0,H=h+("center"!==m?"-"+m:""),k="number"==typeof w?w:{top:0,right:0,bottom:0,left:0,...w},N=Array.isArray(y)?y:[y],q=N.length>0,F={padding:k,boundary:N.filter(cn),altBoundary:q},{refs:A,floatingStyles:I,placement:V,isPositioned:B,middlewareData:U}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=t,[d,h]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[f,m]=e.useState(i);jt(f,i)||m(i);const[p,g]=e.useState(null),[v,y]=e.useState(null),w=e.useCallback((e=>{e!=x.current&&(x.current=e,g(e))}),[g]),b=e.useCallback((e=>{e!==M.current&&(M.current=e,y(e))}),[y]),C=s||p,E=a||v,x=e.useRef(null),M=e.useRef(null),T=e.useRef(d),S=Kt(c),O=Kt(o),L=e.useCallback((()=>{if(!x.current||!M.current)return;const e={placement:n,strategy:r,middleware:f};O.current&&(e.platform=O.current),Ut(x.current,M.current,e).then((e=>{const t={...e,isPositioned:!0};P.current&&!jt(T.current,t)&&(T.current=t,be.flushSync((()=>{h(t)})))}))}),[f,n,r,O]);Wt((()=>{!1===u&&T.current.isPositioned&&(T.current.isPositioned=!1,h((e=>({...e,isPositioned:!1}))))}),[u]);const P=e.useRef(!1);Wt((()=>(P.current=!0,()=>{P.current=!1})),[]),Wt((()=>{if(C&&(x.current=C),E&&(M.current=E),C&&E){if(S.current)return S.current(C,E,L);L()}}),[C,E,L,S]);const D=e.useMemo((()=>({reference:x,floating:M,setReference:w,setFloating:b})),[w,b]),R=e.useMemo((()=>({reference:C,floating:E})),[C,E]),z=e.useMemo((()=>{const e={position:r,left:0,top:0};if(!R.floating)return e;const t=$t(R.floating,d.x),n=$t(R.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...Yt(R.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,l,R.floating,d.x,d.y]);return e.useMemo((()=>({...d,update:L,refs:D,elements:R,floatingStyles:z})),[d,L,D,R,z])}({strategy:"fixed",placement:H,whileElementsMounted:(...e)=>function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Rt(e),u=i||o?[...c?Pt(c):[],...Pt(t)]:[];u.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&a?function(e,t){let n,r=null;const i=pt(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),o();const{left:c,top:u,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const f={rootMargin:-Ve(u)+"px "+-Ve(i.clientWidth-(c+d))+"px "+-Ve(i.clientHeight-(u+h))+"px "+-Ve(c)+"px",threshold:Ae(0,Fe(1,l))||1};let m=!0;function p(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(p,{...f,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(p,f)}r.observe(e)}(!0),o}(c,n):null;let h,f=-1,m=null;s&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{m&&m.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let p=l?kt(e):null;return l&&function t(){const r=kt(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,h=requestAnimationFrame(t)}(),n(),()=>{u.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),d&&d(),m&&m.disconnect(),m=null,l&&cancelAnimationFrame(h)}}(...e,{animationFrame:"always"===E}),elements:{reference:T.anchor},middleware:[ut({mainAxis:f+_,alignmentAxis:p}),v&&dt({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?(void 0===Q&&(Q={}),{options:Q,fn(e){const{x:t,y:n,placement:r,rects:i,middlewareData:o}=e,{offset:s=0,mainAxis:a=!0,crossAxis:l=!0}=je(Q,e),c={x:t,y:n},u=Xe(r),d=Ke(u);let h=c[d],f=c[u];const m=je(s,e),p="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(a){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+p.mainAxis,n=i.reference[d]+i.reference[e]-p.mainAxis;h<t?h=t:h>n&&(h=n)}if(l){var g,v;const e="y"===d?"width":"height",t=["top","left"].includes(Ye(r)),n=i.reference[u]-i.floating[e]+(t&&(null==(g=o.offset)?void 0:g[u])||0)+(t?0:p.crossAxis),s=i.reference[u]+i.reference[e]+(t?0:(null==(v=o.offset)?void 0:v[u])||0)-(t?p.crossAxis:0);f<n?f=n:f>s&&(f=s)}return{[d]:h,[u]:f}}}):void 0,...F}),v&&st({...F}),ht({...F,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:o}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${i}px`),s.setProperty("--radix-popper-anchor-height",`${o}px`)}}),P&&Qt({element:P,padding:g}),un({arrowWidth:z,arrowHeight:_}),C&&ct({strategy:"referenceHidden",...F})]});var Q;const[W,j]=dn(V),Y=Oe(x);He((()=>{B&&(null==Y||Y())}),[B,Y]);const $=null===(o=U.arrow)||void 0===o?void 0:o.x,K=null===(s=U.arrow)||void 0===s?void 0:s.y,G=0!==(null===(a=U.arrow)||void 0===a?void 0:a.centerOffset),[X,J]=(0,e.useState)();return He((()=>{S&&J(window.getComputedStyle(S).zIndex)}),[S]),(0,e.createElement)("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:B?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[null===(l=U.transformOrigin)||void 0===l?void 0:l.x,null===(c=U.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:t.dir},(0,e.createElement)(on,{scope:d,placedSide:W,onArrowChange:D,arrowX:$,arrowY:K,shouldHideArrow:G},(0,e.createElement)(Se.div,me({"data-side":W,"data-align":j},M,{ref:L,style:{...M.style,animation:B?void 0:"none",opacity:null!==(u=U.hide)&&void 0!==u&&u.referenceHidden?0:void 0}}))))})),ln={top:"bottom",right:"left",bottom:"top",left:"right"};function cn(e){return null!==e}const un=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,s;const{placement:a,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[f,m]=dn(a),p={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(r=null===(i=c.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,v=(null!==(o=null===(s=c.arrow)||void 0===s?void 0:s.y)&&void 0!==o?o:0)+h/2;let y="",w="";return"bottom"===f?(y=u?p:`${g}px`,w=-h+"px"):"top"===f?(y=u?p:`${g}px`,w=`${l.floating.height+h}px`):"right"===f?(y=-h+"px",w=u?p:`${v}px`):"left"===f&&(y=`${l.floating.width+h}px`,w=u?p:`${v}px`),{data:{x:y,y:w}}}});function dn(e){const[t,n="center"]=e.split("-");return[t,n]}const hn=t=>{const{__scopePopper:n,children:r}=t,[i,o]=(0,e.useState)(null);return(0,e.createElement)(en,{scope:n,anchor:i,onAnchorChange:o},r)},fn=nn,mn=an,pn=(0,e.forwardRef)((function(t,n){const{__scopePopper:r,...i}=t,o=sn("PopperArrow",r),s=ln[o.placedSide];return(0,e.createElement)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},(0,e.createElement)(Gt,me({},i,{ref:n,style:{...i.style,display:"block"}})))})),gn=(0,e.forwardRef)(((t,n)=>{var r;const{container:i=(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body),...o}=t;return i?be.createPortal((0,e.createElement)(Se.div,me({},o,{ref:n})),i):null})),vn=t=>{const{present:n,children:r}=t,i=function(t){const[n,r]=(0,e.useState)(),i=(0,e.useRef)({}),o=(0,e.useRef)(t),s=(0,e.useRef)("none"),a=t?"mounted":"unmounted",[l,c]=function(t,n){return(0,e.useReducer)(((e,t)=>{const r=n[e][t];return null!=r?r:e}),t)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,e.useEffect)((()=>{const e=yn(i.current);s.current="mounted"===l?e:"none"}),[l]),He((()=>{const e=i.current,n=o.current;if(n!==t){const r=s.current,i=yn(e);t?c("MOUNT"):"none"===i||"none"===(null==e?void 0:e.display)?c("UNMOUNT"):c(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),o.current=t}}),[t,c]),He((()=>{if(n){const e=e=>{const t=yn(i.current).includes(e.animationName);e.target===n&&t&&(0,be.flushSync)((()=>c("ANIMATION_END")))},t=e=>{e.target===n&&(s.current=yn(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[n,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,e.useCallback)((e=>{e&&(i.current=getComputedStyle(e)),r(e)}),[])}}(n),o="function"==typeof r?r({present:i.isPresent}):e.Children.only(r),s=ve(i.ref,o.ref);return"function"==typeof r||i.isPresent?(0,e.cloneElement)(o,{ref:s}):null};function yn(e){return(null==e?void 0:e.animationName)||"none"}vn.displayName="Presence";const wn=(0,e.forwardRef)(((t,n)=>(0,e.createElement)(Se.span,me({},t,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}})))),[bn,Cn]=ye("Tooltip",[Zt]),En=Zt(),xn=700,Mn="tooltip.open",[Tn,Sn]=bn("TooltipProvider"),On="Tooltip",[Ln,Pn]=bn(On),Dn="TooltipTrigger",Rn=(0,e.forwardRef)(((t,n)=>{const{__scopeTooltip:r,...i}=t,o=Pn(Dn,r),s=Sn(Dn,r),a=En(r),l=ve(n,(0,e.useRef)(null),o.onTriggerChange),c=(0,e.useRef)(!1),u=(0,e.useRef)(!1),d=(0,e.useCallback)((()=>c.current=!1),[]);return(0,e.useEffect)((()=>()=>document.removeEventListener("pointerup",d)),[d]),(0,e.createElement)(fn,me({asChild:!0},a),(0,e.createElement)(Se.button,me({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},i,{ref:l,onPointerMove:pe(t.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||s.isPointerInTransitRef.current||(o.onTriggerEnter(),u.current=!0))})),onPointerLeave:pe(t.onPointerLeave,(()=>{o.onTriggerLeave(),u.current=!1})),onPointerDown:pe(t.onPointerDown,(()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:pe(t.onFocus,(()=>{c.current||o.onOpen()})),onBlur:pe(t.onBlur,o.onClose),onClick:pe(t.onClick,o.onClose)})))})),zn="TooltipPortal",[Hn,kn]=bn(zn,{forceMount:void 0}),Nn="TooltipContent",qn=(0,e.forwardRef)(((t,n)=>{const r=kn(Nn,t.__scopeTooltip),{forceMount:i=r.forceMount,side:o="top",...s}=t,a=Pn(Nn,t.__scopeTooltip);return(0,e.createElement)(vn,{present:i||a.open},a.disableHoverableContent?(0,e.createElement)(Vn,me({side:o},s,{ref:n})):(0,e.createElement)(Fn,me({side:o},s,{ref:n})))})),Fn=(0,e.forwardRef)(((t,n)=>{const r=Pn(Nn,t.__scopeTooltip),i=Sn(Nn,t.__scopeTooltip),o=(0,e.useRef)(null),s=ve(n,o),[a,l]=(0,e.useState)(null),{trigger:c,onClose:u}=r,d=o.current,{onPointerInTransitChange:h}=i,f=(0,e.useCallback)((()=>{l(null),h(!1)}),[h]),m=(0,e.useCallback)(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),o=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())]);l(o),h(!0)}),[h]);return(0,e.useEffect)((()=>()=>f()),[f]),(0,e.useEffect)((()=>{if(c&&d){const e=e=>m(e,d),t=e=>m(e,c);return c.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[c,d,m,f]),(0,e.useEffect)((()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==d?void 0:d.contains(t)),i=!function(e,t){const{x:n,y:r}=e;let i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){const s=t[e].x,a=t[e].y,l=t[o].x,c=t[o].y;a>r!=c>r&&n<(l-s)*(r-a)/(c-a)+s&&(i=!i)}return i}(n,a);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[c,d,a,u,f]),(0,e.createElement)(Vn,me({},t,{ref:s}))})),[An,In]=bn(On,{isInside:!1}),Vn=(0,e.forwardRef)(((t,n)=>{const{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...l}=t,c=Pn(Nn,r),u=En(r),{onClose:d}=c;return(0,e.useEffect)((()=>(document.addEventListener(Mn,d),()=>document.removeEventListener(Mn,d))),[d]),(0,e.useEffect)((()=>{if(c.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(c.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[c.trigger,d]),(0,e.createElement)(Re,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:d},(0,e.createElement)(mn,me({"data-state":c.stateAttribute},u,l,{ref:n,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),(0,e.createElement)(xe,null,i),(0,e.createElement)(An,{scope:r,isInside:!0},(0,e.createElement)(wn,{id:c.contentId,role:"tooltip"},o||i))))})),Bn=t=>{const{__scopeTooltip:n,delayDuration:r=xn,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:s}=t,[a,l]=(0,e.useState)(!0),c=(0,e.useRef)(!1),u=(0,e.useRef)(0);return(0,e.useEffect)((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),(0,e.createElement)(Tn,{scope:n,isOpenDelayed:a,delayDuration:r,onOpen:(0,e.useCallback)((()=>{window.clearTimeout(u.current),l(!1)}),[]),onClose:(0,e.useCallback)((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>l(!0)),i)}),[i]),isPointerInTransitRef:c,onPointerInTransitChange:(0,e.useCallback)((e=>{c.current=e}),[]),disableHoverableContent:o},s)},Un=t=>{const{__scopeTooltip:n,children:r,open:i,defaultOpen:o=!1,onOpenChange:s,disableHoverableContent:a,delayDuration:l}=t,c=Sn(On,t.__scopeTooltip),u=En(n),[d,h]=(0,e.useState)(null),f=function(t){const[n,r]=e.useState(ke());return He((()=>{r((e=>null!=e?e:String(Ne++)))}),[t]),n?`radix-${n}`:""}(),m=(0,e.useRef)(0),p=null!=a?a:c.disableHoverableContent,g=null!=l?l:c.delayDuration,v=(0,e.useRef)(!1),[y=!1,w]=function({prop:t,defaultProp:n,onChange:r=(()=>{})}){const[i,o]=function({defaultProp:t,onChange:n}){const r=(0,e.useState)(t),[i]=r,o=(0,e.useRef)(i),s=Oe(n);return(0,e.useEffect)((()=>{o.current!==i&&(s(i),o.current=i)}),[i,o,s]),r}({defaultProp:n,onChange:r}),s=void 0!==t,a=s?t:i,l=Oe(r);return[a,(0,e.useCallback)((e=>{if(s){const n="function"==typeof e?e(t):e;n!==t&&l(n)}else o(e)}),[s,t,o,l])]}({prop:i,defaultProp:o,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Mn))):c.onClose(),null==s||s(e)}}),b=(0,e.useMemo)((()=>y?v.current?"delayed-open":"instant-open":"closed"),[y]),C=(0,e.useCallback)((()=>{window.clearTimeout(m.current),v.current=!1,w(!0)}),[w]),E=(0,e.useCallback)((()=>{window.clearTimeout(m.current),w(!1)}),[w]),x=(0,e.useCallback)((()=>{window.clearTimeout(m.current),m.current=window.setTimeout((()=>{v.current=!0,w(!0)}),g)}),[g,w]);return(0,e.useEffect)((()=>()=>window.clearTimeout(m.current)),[]),(0,e.createElement)(hn,u,(0,e.createElement)(Ln,{scope:n,contentId:f,open:y,stateAttribute:b,trigger:d,onTriggerChange:h,onTriggerEnter:(0,e.useCallback)((()=>{c.isOpenDelayed?x():C()}),[c.isOpenDelayed,x,C]),onTriggerLeave:(0,e.useCallback)((()=>{p?E():window.clearTimeout(m.current)}),[E,p]),onOpen:C,onClose:E,disableHoverableContent:p},r))},Qn=Rn,Wn=t=>{const{__scopeTooltip:n,forceMount:r,children:i,container:o}=t,s=Pn(zn,n);return(0,e.createElement)(Hn,{scope:n,forceMount:r},(0,e.createElement)(vn,{present:r||s.open},(0,e.createElement)(gn,{asChild:!0,container:o},i)))},jn=qn,Yn=(0,e.forwardRef)(((t,n)=>{const{__scopeTooltip:r,...i}=t,o=En(r);return In("TooltipArrow",r).isInside?null:(0,e.createElement)(pn,me({},o,i,{ref:n}))}));var $n=({children:t,content:n})=>n?(0,e.createElement)(Bn,null,(0,e.createElement)(Un,{delayDuration:400},(0,e.createElement)(Qn,{asChild:!0},t),(0,e.createElement)(Wn,null,(0,e.createElement)(jn,{className:"burst-tooltip-content",sideOffset:5},n,(0,e.createElement)(Yn,{className:"burst-tooltip-arrow"}))))):(0,e.createElement)(e.Fragment,null,t);const Kn={black:"var(--rsp-black)",green:"var(--rsp-green)",yellow:"var(--rsp-yellow)",red:"var(--rsp-red)","green-faded":"var(--rsp-green-faded)","yellow-faded":"var(--rsp-yellow-faded)","red-faded":"var(--rsp-red-faded)",grey:"var(--rsp-grey-400)",white:"var(--rsp-white)"},Gn=(0,n.memo)((({name:t="bullet",color:n="black",size:r=15})=>{const i=Kn[n]||n;let o="";return"bullet"!==t&&"dot"!==t||(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"}))}),"circle"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"}))}),"period"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 512",height:r},(0,e.createElement)("path",{fill:i,d:"M64 352c-35.35 0-64 28.65-64 64c0 35.35 28.65 64 64 64s64-28.65 64-64C128 380.7 99.35 352 64 352zM64 448c-17.64 0-32-14.36-32-32s14.36-32 32-32s32 14.36 32 32S81.64 448 64 448z"}))}),"check"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:r},(0,e.createElement)("path",{fill:i,d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"}))}),"warning"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"}))}),"error"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"}))}),"times"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:r},(0,e.createElement)("path",{fill:i,d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"}))}),"circle-check"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z"}))}),"circle-times"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z"}))}),"chevron-up"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:r},(0,e.createElement)("path",{fill:i,d:"M416 352c-8.188 0-16.38-3.125-22.62-9.375L224 173.3l-169.4 169.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25C432.4 348.9 424.2 352 416 352z"}))}),"chevron-down"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:r},(0,e.createElement)("path",{fill:i,d:"M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"}))}),"chevron-right"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:r},(0,e.createElement)("path",{fill:i,d:"M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"}))}),"chevron-left"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:r},(0,e.createElement)("path",{fill:i,d:"M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"}))}),"plus"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"}))}),"minus"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M400 288h-352c-17.69 0-32-14.32-32-32.01s14.31-31.99 32-31.99h352c17.69 0 32 14.3 32 31.99S417.7 288 400 288z"}))}),"sync"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M483.515 28.485L431.35 80.65C386.475 35.767 324.485 8 256 8 123.228 8 14.824 112.338 8.31 243.493 7.971 250.311 13.475 256 20.301 256h28.045c6.353 0 11.613-4.952 11.973-11.294C66.161 141.649 151.453 60 256 60c54.163 0 103.157 21.923 138.614 57.386l-54.128 54.129c-7.56 7.56-2.206 20.485 8.485 20.485H492c6.627 0 12-5.373 12-12V36.971c0-10.691-12.926-16.045-20.485-8.486zM491.699 256h-28.045c-6.353 0-11.613 4.952-11.973 11.294C445.839 370.351 360.547 452 256 452c-54.163 0-103.157-21.923-138.614-57.386l54.128-54.129c7.56-7.56 2.206-20.485-8.485-20.485H20c-6.627 0-12 5.373-12 12v143.029c0 10.691 12.926 16.045 20.485 8.485L80.65 431.35C125.525 476.233 187.516 504 256 504c132.773 0 241.176-104.338 247.69-235.493.339-6.818-5.165-12.507-11.991-12.507z"}))}),"sync-error"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M256 79.1C178.5 79.1 112.7 130.1 89.2 199.7C84.96 212.2 71.34 218.1 58.79 214.7C46.23 210.5 39.48 196.9 43.72 184.3C73.6 95.8 157.3 32 256 32C337.5 32 408.8 75.53 448 140.6V104C448 90.75 458.7 80 472 80C485.3 80 496 90.75 496 104V200C496 213.3 485.3 224 472 224H376C362.7 224 352 213.3 352 200C352 186.7 362.7 176 376 176H412.8C383.7 118.1 324.4 80 256 80V79.1zM280 263.1C280 277.3 269.3 287.1 256 287.1C242.7 287.1 232 277.3 232 263.1V151.1C232 138.7 242.7 127.1 256 127.1C269.3 127.1 280 138.7 280 151.1V263.1zM224 352C224 334.3 238.3 319.1 256 319.1C273.7 319.1 288 334.3 288 352C288 369.7 273.7 384 256 384C238.3 384 224 369.7 224 352zM40 432C26.75 432 16 421.3 16 408V311.1C16 298.7 26.75 287.1 40 287.1H136C149.3 287.1 160 298.7 160 311.1C160 325.3 149.3 336 136 336H99.19C128.3 393 187.6 432 256 432C333.5 432 399.3 381.9 422.8 312.3C427 299.8 440.7 293 453.2 297.3C465.8 301.5 472.5 315.1 468.3 327.7C438.4 416.2 354.7 480 256 480C174.5 480 103.2 436.5 64 371.4V408C64 421.3 53.25 432 40 432V432z"}))}),"shortcode"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:r},(0,e.createElement)("path",{fill:i,d:"M128 32H32C14.4 32 0 46.4 0 64v384c0 17.6 14.4 32 32 32h96C145.7 480 160 465.7 160 448S145.7 416 128 416H64V96h64C145.7 96 160 81.67 160 64S145.7 32 128 32zM416 32h-96C302.3 32 288 46.33 288 63.1S302.3 96 319.1 96H384v320h-64C302.3 416 288 430.3 288 447.1S302.3 480 319.1 480H416c17.6 0 32-14.4 32-32V64C448 46.4 433.6 32 416 32z"}))}),"file"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:r},(0,e.createElement)("path",{fill:i,d:"M0 64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V64zM336 448V160H256C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V448C48 456.8 55.16 464 64 464H320C328.8 464 336 456.8 336 448z"}))}),"file-disabled"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",height:r},(0,e.createElement)("path",{fill:i,d:"M639.1 487.1c0-7.119-3.153-14.16-9.191-18.89l-118.8-93.12l.0013-237.3c0-16.97-6.742-33.26-18.74-45.26l-74.63-74.64C406.6 6.742 390.3 0 373.4 0H192C156.7 0 128 28.65 128 64L128 75.01L38.82 5.11C34.41 1.672 29.19 0 24.04 0C10.19 0-.0002 11.3-.0002 23.1c0 7.12 3.153 14.16 9.192 18.89l591.1 463.1C605.6 510.3 610.8 512 615.1 512C629.8 512 639.1 500.6 639.1 487.1zM464 338.4l-287.1-225.7l-.002-48.51c0-8.836 7.164-16 15.1-16h160l-.0065 79.87c0 17.67 14.33 31.1 31.1 31.1L464 159.1V338.4zM448 463.1H192c-8.834 0-15.1-7.164-15.1-16L176 234.6L128 197L128 447.1c0 35.34 28.65 64 63.1 64H448c20.4 0 38.45-9.851 50.19-24.84l-37.72-29.56C457.5 461.4 453.2 463.1 448 463.1z"}))}),"file-download"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:r},(0,e.createElement)("path",{fill:i,d:"M216 342.1V240c0-13.25-10.75-24-24-24S168 226.8 168 240v102.1L128.1 303C124.3 298.3 118.2 296 112 296S99.72 298.3 95.03 303c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0L216 342.1zM365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6C384 121.7 377.3 105.4 365.3 93.38zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1V448z"}))}),"calendar"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:r},(0,e.createElement)("path",{fill:i,d:"M112 0C120.8 0 128 7.164 128 16V64H320V16C320 7.164 327.2 0 336 0C344.8 0 352 7.164 352 16V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H96V16C96 7.164 103.2 0 112 0zM416 192H32V448C32 465.7 46.33 480 64 480H384C401.7 480 416 465.7 416 448V192zM384 96H64C46.33 96 32 110.3 32 128V160H416V128C416 110.3 401.7 96 384 96z"}))}),"calendar-error"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:r},(0,e.createElement)("path",{fill:i,d:"M151.1 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V192H47.1V448C47.1 456.8 55.16 464 63.1 464H284.5C296.7 482.8 312.5 499.1 330.8 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24L151.1 64zM576 368C576 447.5 511.5 512 432 512C352.5 512 287.1 447.5 287.1 368C287.1 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368zM432 416C418.7 416 408 426.7 408 440C408 453.3 418.7 464 432 464C445.3 464 456 453.3 456 440C456 426.7 445.3 416 432 416zM447.1 288C447.1 279.2 440.8 272 431.1 272C423.2 272 415.1 279.2 415.1 288V368C415.1 376.8 423.2 384 431.1 384C440.8 384 447.1 376.8 447.1 368V288z"}))}),"website"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M0 96C0 60.65 28.65 32 64 32H448C483.3 32 512 60.65 512 96V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96zM160 128H480V96C480 78.33 465.7 64 448 64H160V128zM128 64H64C46.33 64 32 78.33 32 96V128H128V64zM32 160V416C32 433.7 46.33 448 64 448H448C465.7 448 480 433.7 480 416V160H32z"}))}),"help"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 400c-18 0-32-14-32-32s13.1-32 32-32c17.1 0 32 14 32 32S273.1 400 256 400zM325.1 258L280 286V288c0 13-11 24-24 24S232 301 232 288V272c0-8 4-16 12-21l57-34C308 213 312 206 312 198C312 186 301.1 176 289.1 176h-51.1C225.1 176 216 186 216 198c0 13-11 24-24 24s-24-11-24-24C168 159 199 128 237.1 128h51.1C329 128 360 159 360 198C360 222 347 245 325.1 258z"}))}),"copy"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"}))}),"trash"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:r},(0,e.createElement)("path",{fill:i,d:"M432 64C440.8 64 448 71.16 448 80C448 88.84 440.8 96 432 96H413.7L388.2 452.6C385.9 486.1 357.1 512 324.4 512H123.6C90.01 512 62.15 486.1 59.75 452.6L34.29 96H16C7.164 96 0 88.84 0 80C0 71.16 7.164 64 16 64H111.1L137 22.56C145.8 8.526 161.2 0 177.7 0H270.3C286.8 0 302.2 8.526 310.1 22.56L336.9 64H432zM177.7 32C172.2 32 167.1 34.84 164.2 39.52L148.9 64H299.1L283.8 39.52C280.9 34.84 275.8 32 270.3 32H177.7zM381.6 96H66.37L91.67 450.3C92.87 467 106.8 480 123.6 480H324.4C341.2 480 355.1 467 356.3 450.3L381.6 96z"}))}),"visitor"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:r},(0,e.createElement)("path",{fill:i,d:"M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM224 32c52.94 0 96 43.06 96 96c0 52.93-43.06 96-96 96S128 180.9 128 128C128 75.06 171.1 32 224 32zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304zM413.3 480H34.66C33.2 480 32 478.8 32 477.3C32 399.4 95.4 336 173.3 336h101.3C352.6 336 416 399.4 416 477.3C416 478.8 414.8 480 413.3 480z"}))}),"visitors"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",height:r},(0,e.createElement)("path",{fill:i,d:"M274.7 304H173.3c-95.73 0-173.3 77.6-173.3 173.3C0 496.5 15.52 512 34.66 512H413.3C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304zM413.3 480H34.66C33.2 480 32 478.8 32 477.3C32 399.4 95.4 336 173.3 336H274.7C352.6 336 416 399.4 416 477.3C416 478.8 414.8 480 413.3 480zM224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM224 32c52.94 0 96 43.06 96 96c0 52.93-43.06 96-96 96S128 180.9 128 128C128 75.06 171.1 32 224 32zM375.1 241C392.9 250.8 412.3 256 432 256C493.8 256 544 205.8 544 144S493.8 32 432 32c-12.83 0-25.39 2.156-37.34 6.391c-8.328 2.953-12.69 12.09-9.734 20.42c2.953 8.344 12.12 12.66 20.42 9.734C413.9 65.53 422.8 64 432 64C476.1 64 512 99.89 512 144S476.1 224 432 224c-14.08 0-27.91-3.703-39.98-10.69c-7.656-4.453-17.44-1.828-21.86 5.828C365.7 226.8 368.3 236.6 375.1 241zM490.7 320H448c-8.844 0-16 7.156-16 16S439.2 352 448 352h42.67C555.4 352 608 404.6 608 469.3C608 475.2 603.2 480 597.3 480H496c-8.844 0-16 7.156-16 16s7.156 16 16 16h101.3C620.9 512 640 492.9 640 469.3C640 386.1 573 320 490.7 320z"}))}),"visitors-crowd"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",height:r},(0,e.createElement)("path",{d:"M319.9 320c57.41 0 103.1-46.56 103.1-104c0-57.44-46.54-104-103.1-104c-57.41 0-103.1 46.56-103.1 104C215.9 273.4 262.5 320 319.9 320zM319.9 144c39.68 0 71.96 32.3 71.96 72S359.5 288 319.9 288S247.9 255.7 247.9 216S280.2 144 319.9 144zM369.9 352H270.1C191.6 352 128 411.7 128 485.3C128 500.1 140.7 512 156.4 512h327.2C499.3 512 512 500.1 512 485.3C512 411.7 448.4 352 369.9 352zM160.2 480c3.021-53.41 51.19-96 109.1-96H369.9c58.78 0 106.9 42.59 109.1 96H160.2zM512 160c44.18 0 80-35.82 80-80S556.2 0 512 0c-44.18 0-80 35.82-80 80S467.8 160 512 160zM512 32c26.47 0 48 21.53 48 48S538.5 128 512 128s-48-21.53-48-48S485.5 32 512 32zM128 160c44.18 0 80-35.82 80-80S172.2 0 128 0C83.82 0 48 35.82 48 80S83.82 160 128 160zM128 32c26.47 0 48 21.53 48 48S154.5 128 128 128S80 106.5 80 80S101.5 32 128 32zM561.1 192H496c-11.16 0-22.08 2.5-32.47 7.438c-7.984 3.797-11.39 13.34-7.594 21.31s13.38 11.39 21.31 7.594C483.3 225.5 489.6 224 496 224h65.08C586.1 224 608 246.7 608 274.7V288c0 8.844 7.156 16 16 16S640 296.8 640 288V274.7C640 229.1 604.6 192 561.1 192zM162.8 228.3c7.938 3.797 17.53 .375 21.31-7.594c3.797-7.969 .3906-17.52-7.594-21.31C166.1 194.5 155.2 192 144 192H78.92C35.41 192 0 229.1 0 274.7V288c0 8.844 7.156 16 16 16S32 296.8 32 288V274.7C32 246.7 53.05 224 78.92 224H144C150.4 224 156.7 225.5 162.8 228.3z"}))}),"time"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 202.7 16.28 153.2 44.15 112.2C49.12 104.9 59.07 103 66.37 108C73.68 112.1 75.58 122.9 70.61 130.2C46.24 166.1 32 209.4 32 256C32 379.7 132.3 480 256 480C379.7 480 480 379.7 480 256C480 137.7 388.2 40.77 272 32.56V112C272 120.8 264.8 128 256 128C247.2 128 240 120.8 240 112V16C240 7.164 247.2 0 256 0C397.4 0 512 114.6 512 256V256zM267.3 244.7C273.6 250.9 273.6 261.1 267.3 267.3C261.1 273.6 250.9 273.6 244.7 267.3L148.7 171.3C142.4 165.1 142.4 154.9 148.7 148.7C154.9 142.4 165.1 142.4 171.3 148.7L267.3 244.7z"}))}),"pageviews"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:r},(0,e.createElement)("path",{fill:i,d:"M416 256C416 326.7 358.7 384 288 384C217.3 384 160 326.7 160 256C160 185.3 217.3 128 288 128C358.7 128 416 185.3 416 256zM288 160C234.1 160 192 202.1 192 256C192 309 234.1 352 288 352C341 352 384 309 384 256C384 202.1 341 160 288 160zM480.6 112.6C527.4 156 558.7 207.1 573.5 243.7C576.8 251.6 576.8 260.4 573.5 268.3C558.7 304 527.4 355.1 480.6 399.4C433.5 443.2 368.8 480 288 480C207.2 480 142.5 443.2 95.42 399.4C48.62 355.1 17.34 304 2.461 268.3C-.8205 260.4-.8205 251.6 2.461 243.7C17.34 207.1 48.62 156 95.42 112.6C142.5 68.84 207.2 32 288 32C368.8 32 433.5 68.84 480.6 112.6V112.6zM32 256C45.33 288 74.13 336 117.2 376C160.3 416 217.6 448 288 448C358.4 448 415.7 416 458.8 376C501.9 336 530.7 288 544 256C530.7 223.1 501.9 175.1 458.8 136C415.7 95.99 358.4 64 288 64C217.6 64 160.3 95.99 117.2 136C74.13 175.1 45.33 223.1 32 256V256z"}))}),"referrer"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",height:r},(0,e.createElement)("path",{fill:i,d:"M0 256C0 167.6 71.63 96 160 96H272C280.8 96 288 103.2 288 112C288 120.8 280.8 128 272 128H160C89.31 128 32 185.3 32 256C32 326.7 89.31 384 160 384H272C280.8 384 288 391.2 288 400C288 408.8 280.8 416 272 416H160C71.63 416 0 344.4 0 256zM480 416H368C359.2 416 352 408.8 352 400C352 391.2 359.2 384 368 384H480C550.7 384 608 326.7 608 256C608 185.3 550.7 128 480 128H368C359.2 128 352 120.8 352 112C352 103.2 359.2 96 368 96H480C568.4 96 640 167.6 640 256C640 344.4 568.4 416 480 416zM448 240C456.8 240 464 247.2 464 256C464 264.8 456.8 272 448 272H192C183.2 272 176 264.8 176 256C176 247.2 183.2 240 192 240H448z"}))}),"sessions"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:r},(0,e.createElement)("path",{fill:i,d:"M464 448H96c-35.35 0-64-28.65-64-64V112C32 103.2 24.84 96 16 96S0 103.2 0 112V384c0 53.02 42.98 96 96 96h368c8.836 0 16-7.164 16-16S472.8 448 464 448zM512 32H160C124.7 32 96 60.65 96 96v224c0 35.35 28.65 64 64 64h352c35.35 0 64-28.65 64-64V96C576 60.65 547.3 32 512 32zM416 352H256v-16C256 309.5 277.5 288 304 288h64c26.51 0 48 21.49 48 48V352zM544 320c0 17.64-14.36 32-32 32h-64v-16C448 291.8 412.2 256 368 256h-64C259.8 256 224 291.8 224 336V352H160c-17.64 0-32-14.36-32-32V96c0-17.64 14.36-32 32-32h352c17.64 0 32 14.36 32 32V320zM336 96c-35.35 0-64 28.65-64 64s28.65 64 64 64s64-28.65 64-64S371.4 96 336 96zM336 192c-17.64 0-32-14.36-32-32s14.36-32 32-32s32 14.36 32 32S353.6 192 336 192z"}))}),"bounces"!==t&&"bounced_sessions"!==t||(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:r},(0,e.createElement)("path",{fill:i,d:"M560 448h-40.81l-109.9-123.6l131.5-71.91C562.5 240.8 576 218.3 576 193.6c0-26.84-15.94-51-40.56-61.53c-30.63-13.12-59.45-22.2-88.24-28.06C443.1 63.63 409.4 32 368 32c-38.95 0-71.32 27.86-78.46 64.73C128.7 104.4 0 237.3 0 400C0 444.1 35.88 480 80 480h288c8.844 0 16-7.156 16-16S376.8 448 368 448h-288C53.53 448 32 426.5 32 400c0-145.2 114.5-263.8 257.8-271.3C297.5 164.9 329.6 192 368 192c35.81 0 65.76-23.68 75.96-56.12c25.68 5.471 51.47 13.86 78.88 25.62C535.7 167 544 179.6 544 193.6c0 12.84-7.031 24.62-18.47 30.78l-149.2 81.59c-4.25 2.344-7.25 6.5-8.062 11.28c-.8438 4.812 .5625 9.75 3.781 13.38l128 144C503.1 478 507.4 480 512 480h48c8.844 0 16-7.156 16-16S568.8 448 560 448zM368 128c15.06 0 29.67 1.078 44.15 2.801C404.8 147.9 387.8 160 368 160C341.5 160 320 138.5 320 112S341.5 64 368 64c21.82 0 40.08 14.73 45.89 34.71C398.9 97 383.7 96 368 96c-8.844 0-16 7.156-16 16S359.2 128 368 128zM281.3 365.5l-34.16 22.75c-7.344 4.906-9.344 14.81-4.438 22.19C245.8 415.1 250.8 417.6 256 417.6c3.062 0 6.156-.875 8.875-2.688l34.16-22.75c18.44-12.31 31-31.06 35.34-52.81s-.0313-43.91-12.34-62.34s-31.06-31-52.78-35.34C247.3 237.3 225.3 241.7 206.9 253.1L175.8 274.7C168.5 279.6 166.5 289.5 171.4 296.9s14.88 9.281 22.19 4.438l31.09-20.72C236 273 249.6 270.3 262.1 273c13.34 2.656 24.88 10.38 32.44 21.72s10.28 24.97 7.594 38.34C300.3 346.4 292.6 357.9 281.3 365.5z"}))}),"winner"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:r},(0,e.createElement)("path",{fill:i,d:"M572.2 76.72C570.7 69.31 564.1 64 556.6 64h-108.7c-.0137-6.172-.0496-12.01-.1804-17.34C447.1 20.5 425.1 0 399.7 0H176.3c-26.24 0-47.33 20.5-47.99 46.66C128.1 51.99 128.1 57.83 128.1 64H19.43C11.87 64 5.336 69.31 3.774 76.72C2.899 80.91-17.19 180.8 45.04 272.8c41.67 61.64 109.9 104 202.5 126.7c14.29 3.498 24.43 16.23 24.43 30.95L272 480H176c-8.834 0-16.02 7.163-16.02 16S167.2 512 176 512h223.1c8.834 0 15.1-7.163 15.1-16S408.8 480 399.1 480h-95.97l.0006-49.51c.0002-14.72 10.13-27.45 24.43-30.95c92.66-22.68 160.9-65.05 202.5-126.7C593.2 180.8 573.1 80.91 572.2 76.72zM160.3 47.47C160.5 38.78 167.5 32 176.3 32h223.5c8.747 0 15.78 6.781 15.1 15.47C417.7 128.4 409.1 320.2 288 374.6C166.9 320.2 158.3 128.4 160.3 47.47zM71.78 255.3C29.2 192.6 30.55 123.8 33.33 96h95.39c3.017 77.71 19.29 188.6 81.19 258.1C148.4 332.9 101.9 299.6 71.78 255.3zM504.2 255.3c-30.12 44.37-76.61 77.59-138.1 99.7C427.1 284.6 444.3 173.7 447.3 96h95.39C545.5 123.8 546.8 192.6 504.2 255.3z"}))}),"live"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M256 160C202.9 160 160 202.9 160 256s42.92 96 96 96s96-42.92 96-96S309.1 160 256 160zM256 280C242.8 280 232 269.3 232 256S242.8 232 256 232S280 242.8 280 256S269.3 280 256 280zM256 0c-141.4 0-256 114.6-256 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464z"}))}),"total"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",height:r},(0,e.createElement)("path",{fill:i,d:"M488.9 96C406.3 96 346.3 178.5 320 222.5C293.8 178.5 233.8 96 151.1 96C67.75 96 0 167.8 0 256s67.75 160 151.1 160C233.6 416 293.8 333.5 320 289.5C346.3 333.5 406.3 416 488.9 416C572.3 416 640 344.3 640 256S572.3 96 488.9 96zM151.1 384C85.5 384 32 326.6 32 256s53.5-128 119.1-128c78 0 136.5 100.6 150.9 128C287.6 283.4 229.1 384 151.1 384zM488.9 384c-78 0-136.5-100.6-150.9-128c14.38-27.38 72.88-128 150.9-128C554.5 128 608 185.4 608 256S554.5 384 488.9 384z"}))}),"graph"!==t&&"conversion_rate"!==t||(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M32 400C32 426.5 53.49 448 80 448H496C504.8 448 512 455.2 512 464C512 472.8 504.8 480 496 480H80C35.82 480 0 444.2 0 400V48C0 39.16 7.164 32 16 32C24.84 32 32 39.16 32 48V400zM331.3 299.3C325.1 305.6 314.9 305.6 308.7 299.3L223.1 214.6L123.3 315.3C117.1 321.6 106.9 321.6 100.7 315.3C94.44 309.1 94.44 298.9 100.7 292.7L212.7 180.7C218.9 174.4 229.1 174.4 235.3 180.7L320 265.4L452.7 132.7C458.9 126.4 469.1 126.4 475.3 132.7C481.6 138.9 481.6 149.1 475.3 155.3L331.3 299.3z"}))}),"goals"!==t&&"conversions"!==t||(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M300.9 32.58C299.8 33.64 298.6 34.73 297.5 35.84C284.1 33.32 270.2 32 256 32C132.3 32 32 132.3 32 256C32 379.7 132.3 480 256 480C379.7 480 480 379.7 480 256C480 241.8 478.7 227.9 476.2 214.5C477.3 213.4 478.4 212.2 479.4 211.1L502.2 185.7C508.6 208 512 231.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C280.4 0 303.1 3.406 326.3 9.768L300.9 32.58zM275.5 105.2L279.7 130.2C272 128.8 264.1 127.1 255.1 127.1C185.3 127.1 127.1 185.3 127.1 255.1C127.1 326.7 185.3 384 255.1 384C326.7 384 384 326.7 384 255.1C384 247.9 383.2 239.1 381.8 232.3L406.8 236.5C409.5 236.9 412.2 237.2 414.9 237.4C415.6 243.5 416 249.7 416 255.1C416 344.4 344.4 416 256 416C167.6 416 96 344.4 96 255.1C96 167.6 167.6 95.1 256 95.1C262.3 95.1 268.5 96.36 274.6 97.07C274.8 99.78 275.1 102.5 275.5 105.2H275.5zM341.5 193.1L267.3 267.3C261.1 273.6 250.9 273.6 244.7 267.3C238.4 261.1 238.4 250.9 244.7 244.7L318.9 170.5L307.1 100.1C304.4 83.79 310.2 67.26 322.6 56.3L371.1 12.37C385.1 .7184 405.9 6.611 410.9 23.42L428.8 83.15L488.6 101.1C505.4 106.1 511.3 126.9 499.6 140L455.7 189.4C444.7 201.8 428.2 207.6 411.9 204.9L341.5 193.1zM369.3 165.3L417.2 173.3C422.6 174.2 428.1 172.3 431.8 168.2L467.4 128.1L420.6 114.1L369.3 165.3zM397.9 91.44L383.9 44.62L343.8 80.22C339.7 83.87 337.8 89.38 338.7 94.8L346.7 142.7L397.9 91.44z"}))}),"goals-empty"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M192 256C192 220.7 220.7 192 256 192C291.3 192 320 220.7 320 256C320 291.3 291.3 320 256 320C220.7 320 192 291.3 192 256zM256 288C273.7 288 288 273.7 288 256C288 238.3 273.7 224 256 224C238.3 224 224 238.3 224 256C224 273.7 238.3 288 256 288zM96 256C96 167.6 167.6 96 256 96C344.4 96 416 167.6 416 256C416 344.4 344.4 416 256 416C167.6 416 96 344.4 96 256zM256 384C326.7 384 384 326.7 384 256C384 185.3 326.7 128 256 128C185.3 128 128 185.3 128 256C128 326.7 185.3 384 256 384zM512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 32C132.3 32 32 132.3 32 256C32 379.7 132.3 480 256 480C379.7 480 480 379.7 480 256C480 132.3 379.7 32 256 32z"}))}),"filter"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:r},(0,e.createElement)("path",{fill:i,d:"M0 80C0 71.16 7.164 64 16 64H432C440.8 64 448 71.16 448 80C448 88.84 440.8 96 432 96H16C7.164 96 0 88.84 0 80zM64 240C64 231.2 71.16 224 80 224H368C376.8 224 384 231.2 384 240C384 248.8 376.8 256 368 256H80C71.16 256 64 248.8 64 240zM272 416H176C167.2 416 160 408.8 160 400C160 391.2 167.2 384 176 384H272C280.8 384 288 391.2 288 400C288 408.8 280.8 416 272 416z"}))}),"loading"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M207.4 20.36C209.8 28.88 204.8 37.69 196.3 40.04C101.5 66.19 32 152.1 32 255.1C32 379.7 132.3 479.1 256 479.1C379.7 479.1 480 379.7 480 255.1C480 152.1 410.5 66.19 315.7 40.04C307.2 37.69 302.2 28.88 304.6 20.36C306.9 11.85 315.7 6.847 324.3 9.198C432.5 39.07 512 138.2 512 255.1C512 397.4 397.4 511.1 256 511.1C114.6 511.1 0 397.4 0 255.1C0 138.2 79.51 39.07 187.7 9.198C196.3 6.847 205.1 11.85 207.4 20.36V20.36z"}))}),"desktop"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:r},(0,e.createElement)("path",{fill:i,d:"M512 0H64C28.65 0 0 28.65 0 64v288c0 35.35 28.65 64 64 64h149.7l-19.2 64H144C135.2 480 128 487.2 128 496S135.2 512 144 512h288c8.836 0 16-7.164 16-16S440.8 480 432 480h-50.49l-19.2-64H512c35.35 0 64-28.65 64-64V64C576 28.65 547.3 0 512 0zM227.9 480l19.2-64h81.79l19.2 64H227.9zM544 352c0 17.64-14.36 32-32 32H64c-17.64 0-32-14.36-32-32V288h512V352zM544 256H32V64c0-17.64 14.36-32 32-32h448c17.64 0 32 14.36 32 32V256z"}))}),"tablet"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:r},(0,e.createElement)("path",{fill:i,d:"M384 0H64C28.65 0 0 28.65 0 64v384c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V64C448 28.65 419.3 0 384 0zM416 448c0 17.64-14.36 32-32 32H64c-17.64 0-32-14.36-32-32V64c0-17.64 14.36-32 32-32h320c17.64 0 32 14.36 32 32V448zM256 400H192c-8.836 0-16 7.162-16 16c0 8.836 7.164 16 16 16h64c8.836 0 16-7.164 16-16C272 407.2 264.8 400 256 400z"}))}),"mobile"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:r},(0,e.createElement)("path",{fill:i,d:"M288 0H96C60.65 0 32 28.65 32 64v384c0 35.35 28.65 64 64 64h192c35.35 0 64-28.65 64-64V64C352 28.65 323.3 0 288 0zM320 448c0 17.64-14.36 32-32 32H96c-17.64 0-32-14.36-32-32V64c0-17.64 14.36-32 32-32h192c17.64 0 32 14.36 32 32V448zM224 400H160c-8.836 0-16 7.162-16 16c0 8.836 7.164 16 16 16h64c8.836 0 16-7.164 16-16C240 407.2 232.8 400 224 400z"}))}),"other"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:r},(0,e.createElement)("path",{fill:i,d:"M232 384c13.25 0 24-10.75 24-24s-10.75-24-24-24s-24 10.75-24 24S218.8 384 232 384zM296 336c13.25 0 24-10.75 24-24s-10.75-24-24-24s-24 10.75-24 24S282.8 336 296 336zM320 0H64C28.8 0 0 28.8 0 64l.0001 352c0 52.8 43.2 96 96 96h192c53.02 0 96-42.98 96-96L384 63.1C384 28.8 355.2 0 320 0zM352 416c0 35.35-28.65 64-64 64H96c-35.35 0-64-28.65-64-64V224h320V416zM352 192H32V64c0-17.67 14.33-32 32-32h256c17.67 0 32 14.33 32 32V192zM80 352h15.1l0 16C96 376.8 103.2 384 112 384s15.1-7.201 15.1-16V352h16c8.801 0 16-7.201 16-16c0-8.801-7.199-16-16-16h-16V304c0-8.801-7.199-16-15.1-16S96 295.2 96 303.1L96 320H80c-8.801 0-15.1 7.199-15.1 16C64 344.8 71.2 352 80 352z"}))}),"mouse"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:r},(0,e.createElement)("path",{fill:i,d:"M224 0H160c-88.38 0-160 71.63-160 160v192c0 88.38 71.63 160 160 160h64c88.38 0 160-71.63 160-160V160C384 71.62 312.4 0 224 0zM352 352c-.125 70.63-57.38 127.9-128 128H160c-70.63-.125-127.9-57.38-128-128V160c.125-70.63 57.38-127.9 128-128h64c70.63 .125 127.9 57.38 128 128V352zM192 95.1c-8.844 0-16 7.156-16 16v64C176 184.8 183.2 192 192 192s16-7.156 16-16v-64C208 103.2 200.8 95.1 192 95.1z"}))}),"eye"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:r},(0,e.createElement)("path",{fill:i,d:"M416 256C416 326.7 358.7 384 288 384C217.3 384 160 326.7 160 256C160 185.3 217.3 128 288 128C358.7 128 416 185.3 416 256zM288 160C234.1 160 192 202.1 192 256C192 309 234.1 352 288 352C341 352 384 309 384 256C384 202.1 341 160 288 160zM480.6 112.6C527.4 156 558.7 207.1 573.5 243.7C576.8 251.6 576.8 260.4 573.5 268.3C558.7 304 527.4 355.1 480.6 399.4C433.5 443.2 368.8 480 288 480C207.2 480 142.5 443.2 95.42 399.4C48.62 355.1 17.34 304 2.461 268.3C-.8205 260.4-.8205 251.6 2.461 243.7C17.34 207.1 48.62 156 95.42 112.6C142.5 68.84 207.2 32 288 32C368.8 32 433.5 68.84 480.6 112.6V112.6zM32 256C45.33 288 74.13 336 117.2 376C160.3 416 217.6 448 288 448C358.4 448 415.7 416 458.8 376C501.9 336 530.7 288 544 256C530.7 223.1 501.9 175.1 458.8 136C415.7 95.99 358.4 64 288 64C217.6 64 160.3 95.99 117.2 136C74.13 175.1 45.33 223.1 32 256V256z"}))}),"page"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:r},(0,e.createElement)("path",{fill:i,d:"M320 512H64C28.65 512 0 483.3 0 448V64C0 28.65 28.65 0 64 0H245.5C262.5 0 278.7 6.743 290.7 18.75L365.3 93.26C377.3 105.3 384 121.5 384 138.5V448C384 483.3 355.3 512 320 512zM64 480H320C337.7 480 352 465.7 352 448V138.5C352 130 348.6 121.9 342.6 115.9L268.1 41.37C262.1 35.37 253.1 32 245.5 32H64C46.33 32 32 46.33 32 64V448C32 465.7 46.33 480 64 480V480z"}))}),"hashtag"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:r},(0,e.createElement)("path",{fill:i,d:"M432 144h-85.73l21.32-92.4c1.969-8.609-3.375-17.2-12-19.19c-8.688-2.031-17.19 3.39-19.19 11.1l-22.98 99.59H186.3l21.32-92.4c1.969-8.609-3.375-17.2-12-19.19c-8.719-2.031-17.19 3.39-19.19 11.1L153.4 144H48c-8.844 0-16 7.144-16 15.99C32 168.8 39.16 176 48 176h98.04L109.1 336H16c-8.844 0-16 7.151-16 15.99s7.156 16 16 16h85.73L80.41 460.4c-1.969 8.609 3.375 17.2 12 19.19C93.63 479.9 94.81 480 96 480c7.281 0 13.88-4.1 15.59-12.41l22.98-99.59h127.2l-21.32 92.4c-1.969 8.609 3.375 17.2 12 19.19C253.6 479.9 254.8 480 256 480c7.281 0 13.88-4.1 15.59-12.41l22.98-99.59H400c8.844 0 16-7.161 16-16s-7.156-15.99-16-15.99h-98.04l36.92-159.1H432c8.844 0 16-7.168 16-16.01C448 151.2 440.8 144 432 144zM269.1 336H141.1L178.9 176h127.2L269.1 336z"}))}),"sun"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M256 0c8.8 0 16 7.2 16 16V96c0 8.8-7.2 16-16 16s-16-7.2-16-16V16c0-8.8 7.2-16 16-16zM0 256c0-8.8 7.2-16 16-16H96c8.8 0 16 7.2 16 16s-7.2 16-16 16H16c-8.8 0-16-7.2-16-16zm400 0c0-8.8 7.2-16 16-16h80c8.8 0 16 7.2 16 16s-7.2 16-16 16H416c-8.8 0-16-7.2-16-16zM256 400c8.8 0 16 7.2 16 16v80c0 8.8-7.2 16-16 16s-16-7.2-16-16V416c0-8.8 7.2-16 16-16zM75 75c6.2-6.2 16.4-6.2 22.6 0l56.6 56.6c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L75 97.6c-6.2-6.2-6.2-16.4 0-22.6zm0 362c-6.2-6.2-6.2-16.4 0-22.6l56.6-56.6c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6L97.6 437c-6.2 6.2-16.4 6.2-22.6 0zM357.8 154.2c-6.2-6.2-6.2-16.4 0-22.6L414.4 75c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6l-56.6 56.6c-6.2 6.2-16.4 6.2-22.6 0zm0 203.6c6.2-6.2 16.4-6.2 22.6 0L437 414.4c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0l-56.6-56.6c-6.2-6.2-6.2-16.4 0-22.6zM336 256a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zm-192 0a112 112 0 1 1 224 0 112 112 0 1 1 -224 0z"}))}),"world"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M256 480C132.3 480 32 379.7 32 256c0-11.8 .9-23.3 2.7-34.6l3 6.7c9.3 21 27.3 37 49.2 43.9l63 19.7c15.5 4.9 26.1 19.2 26.1 35.5v15c0 17 9.6 32.6 24.8 40.2c4.4 2.2 7.2 6.7 7.2 11.6v22.7c0 26.2 21.2 47.4 47.4 47.4c21.8 0 40.7-14.8 46-35.9l4.4-17.6c2.6-10.2 9.2-19 18.3-24.2l11.6-6.6c19.9-11.4 32.2-32.6 32.2-55.6v-8.3c0-17-6.7-33.3-18.7-45.3l-3.9-3.9c-12-12-28.3-18.7-45.3-18.7H251.3c-5 0-9.9-1.2-14.3-3.4l-45.9-22.9c-2.1-1-3.8-2.7-4.8-4.8l-.7-1.4c-2.3-4.6-.4-10.2 4.2-12.5c2.2-1.1 4.8-1.3 7.1-.5l24.2 8.1c15 5 31.5-.7 40.3-13.8c8.6-12.9 7.7-30-2.2-41.9l-17.9-21.5c-2.5-3-2.5-7.4 .1-10.3l20.1-23.5c13.2-15.4 15.3-37.4 5.2-55.1L259.6 32C337.1 33.2 405 73.8 444.3 134.6l-38.2 15.3c-23.6 9.4-35.7 35.6-27.7 59.7l16.9 50.7c5.2 15.6 18 27.4 33.9 31.4L475 303.2C453.3 404.3 363.5 480 256 480zM48 172.7C77.3 99.7 143.8 45.7 224 34.3l14.9 26.1c3.4 5.9 2.7 13.2-1.7 18.4l-20.1 23.5c-12.7 14.8-12.9 36.6-.4 51.6l17.9 21.5c.9 1.1 1 2.6 .2 3.7c-.8 1.2-2.2 1.7-3.6 1.2L207 172.1c-10.4-3.5-21.7-2.7-31.5 2.2c-20.4 10.2-28.7 35-18.5 55.4l.7 1.4c4.1 8.3 10.9 15 19.2 19.2l45.9 22.9c8.9 4.4 18.7 6.8 28.6 6.8h48.8c8.5 0 16.6 3.4 22.6 9.4l3.9 3.9c6 6 9.4 14.1 9.4 22.6v8.3c0 11.5-6.2 22.1-16.1 27.8l-11.6 6.6c-16.7 9.6-28.8 25.5-33.5 44.2l-4.4 17.6c-1.7 6.9-7.9 11.7-15 11.7c-8.5 0-15.4-6.9-15.4-15.4V393.9c0-17-9.6-32.6-24.8-40.2c-4.4-2.2-7.2-6.7-7.2-11.6v-15c0-30.3-19.7-57-48.6-66.1l-63-19.7c-13.2-4.1-23.9-13.7-29.5-26.3L48 172.7zM480 256c0 5.2-.2 10.3-.5 15.4l-42.6-10.6c-5.3-1.3-9.6-5.3-11.3-10.5l-16.9-50.7c-2.7-8 1.4-16.8 9.2-19.9l41.8-16.7c13 28.3 20.2 59.9 20.2 93.1zM256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"}))}),"filters"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:r},(0,e.createElement)("path",{fill:i,d:"M0 71.5C0 49.7 17.7 32 39.5 32H472.5C494.3 32 512 49.7 512 71.5c0 9.2-3.2 18.1-9.1 25.2L320 317.8V446.1c0 18.7-15.2 33.9-33.9 33.9c-7.5 0-14.8-2.5-20.8-7.1l-61-47.4c-7.8-6.1-12.4-15.4-12.4-25.3V317.8L9.1 96.7C3.2 89.6 0 80.7 0 71.5zM39.5 64c-4.2 0-7.5 3.4-7.5 7.5c0 1.8 .6 3.4 1.7 4.8L220.3 301.8c2.4 2.9 3.7 6.5 3.7 10.2v88.2l61 47.4c.3 .3 .7 .4 1.1 .4c1 0 1.9-.8 1.9-1.9V312c0-3.7 1.3-7.3 3.7-10.2L478.3 76.3c1.1-1.3 1.7-3 1.7-4.8c0-4.2-3.4-7.5-7.5-7.5H39.5z"}))}),"referrers"===t&&(o={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",height:r},(0,e.createElement)("path",{fill:i,d:"M43.3 20.7c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6L105.4 128H48c-8.8 0-16 7.2-16 16s7.2 16 16 16h96c8.8 0 16-7.2 16-16V48c0-8.8-7.2-16-16-16s-16 7.2-16 16v57.4L43.3 20.7zm553.4 0L512 105.4V48c0-8.8-7.2-16-16-16s-16 7.2-16 16v96c0 8.8 7.2 16 16 16h96c8.8 0 16-7.2 16-16s-7.2-16-16-16H534.6l84.7-84.7c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0zM320 368c-77.3 0-132.6-65-156.7-112c24.1-47 79.4-112 156.7-112s132.6 65 156.7 112C452.6 303 397.3 368 320 368zm0-256c-97.3 0-161.4 81.6-186.5 131.9c-3.8 7.6-3.8 16.5 0 24.2C158.6 318.4 222.7 400 320 400s161.4-81.6 186.5-131.9c3.8-7.6 3.8-16.5 0-24.2C481.4 193.6 417.3 112 320 112zM596.7 491.3c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L534.6 384H592c8.8 0 16-7.2 16-16s-7.2-16-16-16H496c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16s16-7.2 16-16V406.6l84.7 84.7zm-576-22.6c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L128 406.6V464c0 8.8 7.2 16 16 16s16-7.2 16-16V368c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16s7.2 16 16 16h57.4L20.7 468.7zM272 256a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm128 0a80 80 0 1 0 -160 0 80 80 0 1 0 160 0z"}))}),void 0===o.html?"":(0,e.createElement)(e.Fragment,null,o.html)}));var Xn=({name:t,color:n,size:r,tooltip:i,onClick:o})=>{const s=t||"bullet",a=n||"black";let l=r||15,c=i?"tooltip-":"",u=Math.floor(1e9*Math.random());return i?(0,e.createElement)($n,{content:i},(0,e.createElement)("div",{className:"burst-icon burst-"+c+"icon burst-icon-"+s+" burst-"+a},(0,e.createElement)(Gn,{"data-for":".burst-"+u,name:s,color:a,size:l,id:u,className:"burst-"+u}))):(0,e.createElement)("div",{onClick:e=>{o&&o()},className:"burst-icon burst-"+c+"icon burst-icon-"+s+" burst-"+a},(0,e.createElement)(Gn,{name:s,color:a,size:l}))};function Jn(e){return Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jn(e)}function Zn(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function er(e){Zn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Jn(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function tr(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function nr(e){Zn(1,arguments);var t=er(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function rr(e){Zn(1,arguments);var t=er(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=nr(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=nr(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}var ir={};function or(){return ir}function sr(e,t){var n,r,i,o,s,a,l,c;Zn(1,arguments);var u=or(),d=tr(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(s=t.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==i?i:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=er(e),f=h.getUTCDay(),m=(f<d?7:0)+f-d;return h.setUTCDate(h.getUTCDate()-m),h.setUTCHours(0,0,0,0),h}function ar(e,t){var n,r,i,o,s,a,l,c;Zn(1,arguments);var u=er(e),d=u.getUTCFullYear(),h=or(),f=tr(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(s=t.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==i?i:h.firstWeekContainsDate)&&void 0!==r?r:null===(l=h.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,f),m.setUTCHours(0,0,0,0);var p=sr(m,t),g=new Date(0);g.setUTCFullYear(d,0,f),g.setUTCHours(0,0,0,0);var v=sr(g,t);return u.getTime()>=p.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function lr(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var cr=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return lr("yy"===t?r%100:r,t.length)},ur=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):lr(n+1,2)},dr=function(e,t){return lr(e.getUTCDate(),t.length)},hr=function(e,t){return lr(e.getUTCHours()%12||12,t.length)},fr=function(e,t){return lr(e.getUTCHours(),t.length)},mr=function(e,t){return lr(e.getUTCMinutes(),t.length)},pr=function(e,t){return lr(e.getUTCSeconds(),t.length)},gr=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return lr(Math.floor(r*Math.pow(10,n-3)),t.length)},vr={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return cr(e,t)},Y:function(e,t,n,r){var i=ar(e,r),o=i>0?i:1-i;return"YY"===t?lr(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):lr(o,t.length)},R:function(e,t){return lr(rr(e),t.length)},u:function(e,t){return lr(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return lr(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return lr(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return ur(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return lr(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=function(e,t){Zn(1,arguments);var n=er(e),r=sr(n,t).getTime()-function(e,t){var n,r,i,o,s,a,l,c;Zn(1,arguments);var u=or(),d=tr(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(s=t.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==i?i:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),h=ar(e,t),f=new Date(0);return f.setUTCFullYear(h,0,d),f.setUTCHours(0,0,0,0),sr(f,t)}(n,t).getTime();return Math.round(r/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):lr(i,t.length)},I:function(e,t,n){var r=function(e){Zn(1,arguments);var t=er(e),n=nr(t).getTime()-function(e){Zn(1,arguments);var t=rr(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),nr(n)}(t).getTime();return Math.round(n/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):lr(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):dr(e,t)},D:function(e,t,n){var r=function(e){Zn(1,arguments);var t=er(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):lr(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return lr(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return lr(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return lr(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?"noon":0===i?"midnight":i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return hr(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):fr(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):lr(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):lr(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):mr(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):pr(e,t)},S:function(e,t){return gr(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return wr(i);case"XXXX":case"XX":return br(i);default:return br(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return wr(i);case"xxxx":case"xx":return br(i);default:return br(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+yr(i,":");default:return"GMT"+br(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+yr(i,":");default:return"GMT"+br(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return lr(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return lr((r._originalDate||e).getTime(),t.length)}};function yr(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var s=t||"";return n+String(i)+s+lr(o,2)}function wr(e,t){return e%60==0?(e>0?"-":"+")+lr(Math.abs(e)/60,2):br(e,t)}function br(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+lr(Math.floor(i/60),2)+n+lr(i%60,2)}var Cr=vr,Er=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},xr=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Mr={p:xr,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Er(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Er(i,t)).replace("{{time}}",xr(o,t))}},Tr=["D","DD"],Sr=["YY","YYYY"];function Or(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Lr={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Pr(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var Dr={date:Pr({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Pr({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Pr({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Rr={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function zr(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,a=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[a]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var _r={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:zr({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:zr({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:zr({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:zr({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:zr({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Hr(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s,a=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].test(a))return n}(l):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n].test(a))return n}(l);return s=e.valueCallback?e.valueCallback(c):c,{value:s=n.valueCallback?n.valueCallback(s):s,rest:t.slice(a.length)}}}var kr,Nr={ordinalNumber:(kr={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(kr.matchPattern);if(!n)return null;var r=n[0],i=e.match(kr.parsePattern);if(!i)return null;var o=kr.valueCallback?kr.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:Hr({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Hr({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Hr({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Hr({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Hr({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},qr={code:"en-US",formatDistance:function(e,t,n){var r,i=Lr[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:Dr,formatRelative:function(e,t,n,r){return Rr[e]},localize:_r,match:Nr,options:{weekStartsOn:0,firstWeekContainsDate:1}},Fr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ar=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ir=/^'([^]*?)'?$/,Vr=/''/g,Br=/[a-zA-Z]/;function Ur(e,t,n){var r,i,o,s,a,l,c,u,d,h,f,m,p,g,v,y,w,b;Zn(2,arguments);var C=String(t),E=or(),x=null!==(r=null!==(i=null==n?void 0:n.locale)&&void 0!==i?i:E.locale)&&void 0!==r?r:qr,M=tr(null!==(o=null!==(s=null!==(a=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==a?a:E.firstWeekContainsDate)&&void 0!==s?s:null===(d=E.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==o?o:1);if(!(M>=1&&M<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=tr(null!==(f=null!==(m=null!==(p=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==p?p:E.weekStartsOn)&&void 0!==m?m:null===(w=E.locale)||void 0===w||null===(b=w.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==f?f:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var S=er(e);if(!function(e){if(Zn(1,arguments),!function(e){return Zn(1,arguments),e instanceof Date||"object"===Jn(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=er(e);return!isNaN(Number(t))}(S))throw new RangeError("Invalid time value");var O=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(S),L=function(e,t){return Zn(2,arguments),function(e,t){Zn(2,arguments);var n=er(e).getTime(),r=tr(t);return new Date(n+r)}(e,-tr(t))}(S,O),P={firstWeekContainsDate:M,weekStartsOn:T,locale:x,_originalDate:S};return C.match(Ar).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Mr[t])(e,x.formatLong):e})).join("").match(Fr).map((function(r){if("''"===r)return"'";var i,o,s=r[0];if("'"===s)return(o=(i=r).match(Ir))?o[1].replace(Vr,"'"):i;var a,l=Cr[s];if(l)return null!=n&&n.useAdditionalWeekYearTokens||(a=r,-1===Sr.indexOf(a))||Or(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==Tr.indexOf(e)}(r)||Or(r,t,String(e)),l(L,r,x.localize,P);if(s.match(Br))throw new RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");return r})).join("")}const Qr="undefined"==typeof window||"Deno"in window;function Wr(){}function jr(e){return"number"==typeof e&&e>=0&&e!==1/0}function Yr(e,t){return e.filter((e=>!t.includes(e)))}function $r(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Kr(e,t,n){return li(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Gr(e,t,n){return li(e)?[{...t,queryKey:e},n]:[e||{},t]}function Xr(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(li(s))if(r){if(t.queryHash!==Zr(s,t.options))return!1}else if(!ti(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof a&&t.isStale()!==a||void 0!==i&&i!==t.state.fetchStatus||o&&!o(t))}function Jr(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(li(o)){if(!t.options.mutationKey)return!1;if(n){if(ei(t.options.mutationKey)!==ei(o))return!1}else if(!ti(t.options.mutationKey,o))return!1}return!("boolean"==typeof r&&"loading"===t.state.status!==r||i&&!i(t))}function Zr(e,t){return((null==t?void 0:t.queryKeyHashFn)||ei)(e)}function ei(e){return JSON.stringify(e,((e,t)=>si(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function ti(e,t){return ni(e,t)}function ni(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!ni(e[n],t[n])))}function ri(e,t){if(e===t)return e;const n=oi(e)&&oi(t);if(n||si(e)&&si(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{};let a=0;for(let r=0;r<o;r++){const o=n?r:i[r];s[o]=ri(e[o],t[o]),s[o]===e[o]&&a++}return r===o&&a===r?e:s}return t}function ii(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function oi(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function si(e){if(!ai(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!ai(n)&&!!n.hasOwnProperty("isPrototypeOf")}function ai(e){return"[object Object]"===Object.prototype.toString.call(e)}function li(e){return Array.isArray(e)}function ci(e){return new Promise((t=>{setTimeout(t,e)}))}function ui(e){ci(0).then(e)}function di(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?ri(e,t):t}const hi=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const i=r=>{t?e.push(r):ui((()=>{n(r)}))};return{batch:i=>{let o;t++;try{o=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&ui((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return o},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class fi{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const mi=new class extends fi{constructor(){super(),this.setup=e=>{if(!Qr&&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)}},pi=["online","offline"],gi=new class extends fi{constructor(){super(),this.setup=e=>{if(!Qr&&window.addEventListener){const t=()=>e();return pi.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{pi.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function vi(e){return Math.min(1e3*2**e,3e4)}function yi(e){return"online"!==(null!=e?e:"online")||gi.isOnline()}class wi{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function bi(e){return e instanceof wi}function Ci(e){let t,n,r,i=!1,o=0,s=!1;const a=new Promise(((e,t)=>{n=e,r=t})),l=()=>!mi.isFocused()||"always"!==e.networkMode&&!gi.isOnline(),c=r=>{s||(s=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},u=n=>{s||(s=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},d=()=>new Promise((n=>{t=e=>{const t=s||!l();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,s||null==e.onContinue||e.onContinue()})),h=()=>{if(s)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(c).catch((t=>{var n,r;if(s)return;const a=null!=(n=e.retry)?n:3,c=null!=(r=e.retryDelay)?r:vi,f="function"==typeof c?c(o,t):c,m=!0===a||"number"==typeof a&&o<a||"function"==typeof a&&a(o,t);!i&&m?(o++,null==e.onFail||e.onFail(o,t),ci(f).then((()=>{if(l())return d()})).then((()=>{i?u(t):h()}))):u(t)}))};return yi(e.networkMode)?h():d().then(h),{promise:a,cancel:t=>{s||(u(new wi(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?a:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}class Ei extends fi{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),xi(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Mi(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Mi(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),ii(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&Ti(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const o=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){return!n.keepPreviousData&&(void 0!==n.placeholderData?t.isPlaceholderData:!ii(e.getCurrentResult(),t))}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(Wr)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),Qr||this.currentResult.isStale||!jr(this.options.staleTime))return;const e=$r(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!Qr&&!1!==this.options.enabled&&jr(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||mi.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,i=this.currentResult,o=this.currentResultState,s=this.currentResultOptions,a=e!==n,l=a?e.state:this.currentQueryInitialState,c=a?this.currentResult:this.previousQueryResult,{state:u}=e;let d,{dataUpdatedAt:h,error:f,errorUpdatedAt:m,fetchStatus:p,status:g}=u,v=!1,y=!1;if(t._optimisticResults){const i=this.hasListeners(),o=!i&&xi(e,t),s=i&&Ti(e,n,t,r);(o||s)&&(p=yi(e.options.networkMode)?"fetching":"paused",h||(g="loading")),"isRestoring"===t._optimisticResults&&(p="idle")}if(t.keepPreviousData&&!u.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==g)d=c.data,h=c.dataUpdatedAt,g=c.status,v=!0;else if(t.select&&void 0!==u.data)if(i&&u.data===(null==o?void 0:o.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(u.data),d=di(null==i?void 0:i.data,d,t),this.selectResult=d,this.selectError=null}catch(e){this.selectError=e}else d=u.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===g){let e;if(null!=i&&i.isPlaceholderData&&t.placeholderData===(null==s?void 0:s.placeholderData))e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(g="success",d=di(null==i?void 0:i.data,e,t),y=!0)}this.selectError&&(f=this.selectError,d=this.selectResult,m=Date.now(),g="error");const w="fetching"===p,b="loading"===g,C="error"===g;return{status:g,fetchStatus:p,isLoading:b,isSuccess:"success"===g,isError:C,isInitialLoading:b&&w,data:d,dataUpdatedAt:h,error:f,errorUpdatedAt:m,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:w,isRefetching:w&&!b,isLoadingError:C&&0===u.dataUpdatedAt,isPaused:"paused"===p,isPlaceholderData:y,isPreviousData:v,isRefetchError:C&&0!==u.dataUpdatedAt,isStale:Si(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,ii(n,t))return;this.currentResult=n;const r={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||bi(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){hi.batch((()=>{var t,n,r,i;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(i=this.options).onSettled)||r.call(i,this.currentResult.data,null);else if(e.onError){var o,s,a,l;null==(o=(s=this.options).onError)||o.call(s,this.currentResult.error),null==(a=(l=this.options).onSettled)||a.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function xi(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&Mi(e,t,t.refetchOnMount)}function Mi(e,t,n){if(!1!==t.enabled){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&Si(e,t)}return!1}function Ti(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&Si(e,n)}function Si(e,t){return e.isStaleByTime(t.staleTime)}class Oi extends fi{constructor(e,t){super(),this.client=e,this.queries=[],this.result=[],this.observers=[],this.observersMap={},t&&this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.observers.forEach((e=>{e.subscribe((t=>{this.onUpdate(e,t)}))}))}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach((e=>{e.destroy()}))}setQueries(e,t){this.queries=e,hi.batch((()=>{const e=this.observers,n=this.findMatchingObservers(this.queries);n.forEach((e=>e.observer.setOptions(e.defaultedQueryOptions,t)));const r=n.map((e=>e.observer)),i=Object.fromEntries(r.map((e=>[e.options.queryHash,e]))),o=r.map((e=>e.getCurrentResult())),s=r.some(((t,n)=>t!==e[n]));(e.length!==r.length||s)&&(this.observers=r,this.observersMap=i,this.result=o,this.hasListeners()&&(Yr(e,r).forEach((e=>{e.destroy()})),Yr(r,e).forEach((e=>{e.subscribe((t=>{this.onUpdate(e,t)}))})),this.notify()))}))}getCurrentResult(){return this.result}getQueries(){return this.observers.map((e=>e.getCurrentQuery()))}getObservers(){return this.observers}getOptimisticResult(e){return this.findMatchingObservers(e).map((e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)))}findMatchingObservers(e){const t=this.observers,n=new Map(t.map((e=>[e.options.queryHash,e]))),r=e.map((e=>this.client.defaultQueryOptions(e))),i=r.flatMap((e=>{const t=n.get(e.queryHash);return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]})),o=new Set(i.map((e=>e.defaultedQueryOptions.queryHash))),s=r.filter((e=>!o.has(e.queryHash))),a=new Set(i.map((e=>e.observer))),l=t.filter((e=>!a.has(e))),c=e=>{const t=this.client.defaultQueryOptions(e),n=this.observersMap[t.queryHash];return null!=n?n:new Ei(this.client,t)},u=s.map(((e,t)=>{if(e.keepPreviousData){const n=l[t];if(void 0!==n)return{defaultedQueryOptions:e,observer:n}}return{defaultedQueryOptions:e,observer:c(e)}}));return i.concat(u).sort(((e,t)=>r.indexOf(e.defaultedQueryOptions)-r.indexOf(t.defaultedQueryOptions)))}onUpdate(e,t){const n=this.observers.indexOf(e);-1!==n&&(this.result=function(e,t,n){const r=e.slice(0);return r[t]=n,r}(this.result,n,t),this.notify())}notify(){hi.batch((()=>{this.listeners.forEach((({listener:e})=>{e(this.result)}))}))}}const Li=i(688).useSyncExternalStore,Pi=e.createContext(void 0),Di=e.createContext(!1);function Ri(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Pi),window.ReactQueryClientContext):Pi)}const zi=({client:t,children:n,context:r,contextSharing:i=!1})=>{e.useEffect((()=>(t.mount(),()=>{t.unmount()})),[t]);const o=Ri(r,i);return e.createElement(Di.Provider,{value:!r&&i},e.createElement(o.Provider,{value:t},n))},_i=e.createContext(!1);_i.Provider;const Hi=e.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),ki=(e,t)=>e.isLoading&&e.isFetching&&!t,Ni=(e,t,n)=>(null==e?void 0:e.suspense)&&ki(t,n),qi=(e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}));function Fi(e){return(e=parseInt(e))>100?"visitors-crowd":e>10?"visitors":"visitor"}var Ai=()=>{const[t,i]=(0,n.useState)(((e,t)=>{if("undefined"!=typeof Storage){const e=localStorage.getItem("burst_widget_date_range");if(e&&e.length>0)return JSON.parse(e)}return"last-7-days"})());(0,n.useEffect)((()=>{burst_settings.json_translations.forEach((e=>{let t=JSON.parse(e),n=t.locale_data["burst-statistics"]||t.locale_data.messages;n[""].domain="burst-statistics",(0,r.setLocaleData)(n,"burst-statistics")}))}),[]);const o=E(["today","yesterday","last-7-days","last-30-days","last-90-days"]),s=o[t]?o[t].range():o["last-7-days"].range(),a=Ur(s.startDate,"yyyy-MM-dd"),l=Ur(s.endDate,"yyyy-MM-dd"),[c,u]=(0,n.useState)(5e3),d={live:{title:(0,r.__)("Live","burst-statistics"),icon:"visitor"},today:{title:(0,r.__)("Total","burst-statistics"),value:"-",icon:"visitor"},mostViewed:{title:"-",value:"-"},pageviews:{title:"-",value:"-"},referrer:{title:"-",value:"-"},timeOnPage:{title:"-",value:"-"}},h=function({queries:t,context:n}){const r=(({context:t}={})=>{const n=e.useContext(Ri(t,e.useContext(Di)));if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n})({context:n}),i=e.useContext(_i),o=e.useContext(Hi),s=e.useMemo((()=>t.map((e=>{const t=r.defaultQueryOptions(e);return t._optimisticResults=i?"isRestoring":"optimistic",t}))),[t,r,i]);s.forEach((e=>{var t;(t=e).suspense&&"number"!=typeof t.staleTime&&(t.staleTime=1e3),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(e,o)})),(t=>{e.useEffect((()=>{t.clearReset()}),[t])})(o);const[a]=e.useState((()=>new Oi(r,s))),l=a.getOptimisticResult(s);Li(e.useCallback((e=>i?()=>{}:a.subscribe(hi.batchCalls(e))),[a,i]),(()=>a.getCurrentResult()),(()=>a.getCurrentResult())),e.useEffect((()=>{a.setQueries(s,{listeners:!1})}),[s,a]);const c=l.some(((e,t)=>Ni(s[t],e,i))),u=c?l.flatMap(((e,t)=>{const n=s[t],r=a.getObservers()[t];if(n&&r){if(Ni(n,e,i))return qi(n,r,o);ki(e,i)&&qi(n,r,o)}return[]})):[];if(u.length>0)throw Promise.all(u);const d=a.getQueries(),h=l.find(((e,t)=>{var n,r;return(({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>{return e.isError&&!t.isReset()&&!e.isFetching&&(i=n,o=[e.error,r],"function"==typeof i?i(...o):!!i);var i,o})({result:e,errorResetBoundary:o,useErrorBoundary:null!=(n=null==(r=s[t])?void 0:r.useErrorBoundary)&&n,query:d[t]})}));if(null!=h&&h.error)throw h.error;return l}({queries:[{queryKey:["live-visitors"],queryFn:le,refetchInterval:c,placeholderData:"-",onError:()=>{u(0)}},{queryKey:[t,a,l],queryFn:()=>(async e=>{const{startDate:t,endDate:n,range:r,filters:i}=e,{data:o}=await ae("today",t,n,r,{filters:i});return(e=>{for(let t in e)e.hasOwnProperty(t)&&(e[t].value="timeOnPage"===t?y(e[t].value):w(e[t].value));return e})(o)})({startDate:a,endDate:l}),refetchInterval:2*c,placeholderData:d,onError:()=>{u(0)}}]}),f=h[0].data;let m=h[1].data;h.some((e=>e.isError))&&(m=d);let p=Fi(f||0),g="loading";return m&&m.today&&(g=Fi(m.today.value?m.today.value:0)),(0,e.createElement)(fe,{className:"border-to-border burst-today",title:(0,r.__)("Today","burst-statistics"),controls:(0,e.createElement)(e.Fragment,null,h[0].isFetching?(0,e.createElement)(Xn,{name:"loading"}):null),footer:(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",{className:"burst-button burst-button--secondary",href:burst_settings.dashboard_url+"#statistics"},(0,r.__)("View all statistics","burst-statistics")),(0,e.createElement)("select",{onChange:e=>{return t=e.target.value,n=t,"undefined"!=typeof Storage&&localStorage.setItem("burst_widget_date_range",JSON.stringify(n)),void i(t);var t,n},value:t},Object.keys(o).map((t=>(0,e.createElement)("option",{key:t,value:t},o[t].label)))))},(0,e.createElement)("div",{className:"burst-today"},(0,e.createElement)("div",{className:"burst-today-select"},(0,e.createElement)("div",{className:"burst-today-select-item"},(0,e.createElement)(Xn,{name:p,size:"23"}),(0,e.createElement)("h2",null,f),(0,e.createElement)("span",null,(0,e.createElement)(Xn,{name:"live",size:"12",color:"red"})," ",(0,r.__)("Live","burst-statistics"))),(0,e.createElement)("div",{className:"burst-today-select-item"},(0,e.createElement)(Xn,{name:g,size:"23"}),(0,e.createElement)("h2",null,m.today.value),(0,e.createElement)("span",null,(0,e.createElement)(Xn,{name:"total",size:"13",color:"green"})," ",(0,r.__)("Total","burst-statistics")))),(0,e.createElement)("div",{className:"burst-today-list"},(0,e.createElement)("div",{className:"burst-today-list-item"},(0,e.createElement)(Xn,{name:"winner"}),(0,e.createElement)("p",{className:"burst-today-list-item-text"},decodeURI(m.mostViewed.title)),(0,e.createElement)("p",{className:"burst-today-list-item-number"},m.mostViewed.value)),(0,e.createElement)("div",{className:"burst-today-list-item"},(0,e.createElement)(Xn,{name:"referrer"}),(0,e.createElement)("p",{className:"burst-today-list-item-text"},decodeURI(m.referrer.title)),(0,e.createElement)("p",{className:"burst-today-list-item-number"},m.referrer.value)),(0,e.createElement)("div",{className:"burst-today-list-item"},(0,e.createElement)(Xn,{name:"pageviews"}),(0,e.createElement)("p",{className:"burst-today-list-item-text"},m.pageviews.title),(0,e.createElement)("p",{className:"burst-today-list-item-number"},m.pageviews.value)),(0,e.createElement)("div",{className:"burst-today-list-item"},(0,e.createElement)(Xn,{name:"time"}),(0,e.createElement)("p",{className:"burst-today-list-item-text"},m.timeOnPage.title),(0,e.createElement)("p",{className:"burst-today-list-item-number"},m.timeOnPage.value)))))};const Ii=console;class Vi{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jr(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Qr?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Bi extends Vi{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Ii,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=di(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(Wr).catch(Wr):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||!$r(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 i;return null==(i=this.retryer)||i.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 o=function(){if("function"==typeof AbortController)return new AbortController}(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};a(s);const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var c;a(l),null==(n=this.options.behavior)||n.onFetch(l),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=l.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(c=l.fetchOptions)?void 0:c.meta});const u=e=>{var t,n,r,i;bi(e)&&e.silent||this.dispatch({type:"error",error:e}),bi(e)||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Ci({fn:l.fetchFn,abort:null==o?void 0:o.abort.bind(o),onSuccess:e=>{var t,n,r,i;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):u(new Error(this.queryHash+" data is undefined"))},onError:u,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:yi(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 i=e.error;return bi(i)&&i.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),hi.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class Ui extends fi{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const i=t.queryKey,o=null!=(r=t.queryHash)?r:Zr(i,t);let s=this.get(o);return s||(s=new Bi({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}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(){hi.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Gr(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>Xr(n,e)))}findAll(e,t){const[n]=Gr(e,t);return Object.keys(n).length>0?this.queries.filter((e=>Xr(n,e))):this.queries}notify(e){hi.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){hi.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){hi.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class Qi extends Vi{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Ii,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=Ci({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,i,o,s,a,l,c;if(!t){var u,d,h,f;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(u=(d=this.mutationCache.config).onMutate)?void 0:u.call(d,this.state.variables,this));const e=await(null==(h=(f=this.options).onMutate)?void 0:h.call(f,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const m=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,m,this.state.variables,this.state.context,this)),await(null==(i=(o=this.options).onSuccess)?void 0:i.call(o,m,this.state.variables,this.state.context)),await(null==(s=(a=this.mutationCache.config).onSettled)?void 0:s.call(a,m,null,this.state.variables,this.state.context,this)),await(null==(l=(c=this.options).onSettled)?void 0:l.call(c,m,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:m}),m}catch(e){try{var m,p,g,v,y,w,b,C;throw await(null==(m=(p=this.mutationCache.config).onError)?void 0:m.call(p,e,this.state.variables,this.state.context,this)),await(null==(g=(v=this.options).onError)?void 0:g.call(v,e,this.state.variables,this.state.context)),await(null==(y=(w=this.mutationCache.config).onSettled)?void 0:y.call(w,void 0,e,this.state.variables,this.state.context,this)),await(null==(b=(C=this.options).onSettled)?void 0:b.call(C,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:!yi(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),hi.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}class Wi extends fi{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new Qi({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(){hi.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=>Jr(e,t)))}findAll(e){return this.mutations.filter((t=>Jr(e,t)))}notify(e){hi.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 hi.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(Wr)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function ji(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}const Yi=new Ui({onError:e=>{}});let $i={defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1,retry:!1}}};$i={...$i,queryCache:Yi};const Ki=new class{constructor(e={}){this.queryCache=e.queryCache||new Ui,this.mutationCache=e.mutationCache||new Wi,this.logger=e.logger||Ii,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=mi.subscribe((()=>{mi.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=gi.subscribe((()=>{gi.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]=Gr(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=Kr(e,t,n),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):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),i=function(e,t){return"function"==typeof e?e(t):e}(t,null==r?void 0:r.state.data);if(void 0===i)return;const o=Kr(e),s=this.defaultQueryOptions(o);return this.queryCache.build(this,s).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return hi.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]=Gr(e,t),r=this.queryCache;hi.batch((()=>{r.findAll(n).forEach((e=>{r.remove(e)}))}))}resetQueries(e,t,n){const[r,i]=Gr(e,t,n),o=this.queryCache,s={type:"active",...r};return hi.batch((()=>(o.findAll(r).forEach((e=>{e.reset()})),this.refetchQueries(s,i))))}cancelQueries(e,t,n){const[r,i={}]=Gr(e,t,n);void 0===i.revert&&(i.revert=!0);const o=hi.batch((()=>this.queryCache.findAll(r).map((e=>e.cancel(i)))));return Promise.all(o).then(Wr).catch(Wr)}invalidateQueries(e,t,n){const[r,i]=Gr(e,t,n);return hi.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,i)}))}refetchQueries(e,t,n){const[r,i]=Gr(e,t,n),o=hi.batch((()=>this.queryCache.findAll(r).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}))));let s=Promise.all(o).then(Wr);return null!=i&&i.throwOnError||(s=s.catch(Wr)),s}fetchQuery(e,t,n){const r=Kr(e,t,n),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(Wr).catch(Wr)}fetchInfiniteQuery(e,t,n){const r=Kr(e,t,n);return r.behavior={onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,o,s;const a=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,c=null==l?void 0:l.pageParam,u="forward"===(null==l?void 0:l.direction),d="backward"===(null==l?void 0:l.direction),h=(null==(o=e.state.data)?void 0:o.pages)||[],f=(null==(s=e.state.data)?void 0:s.pageParams)||[];let m=f,p=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(e,t,n,r)=>(m=r?[t,...m]:[...m,t],r?[n,...e]:[...e,n]),y=(t,n,r,i)=>{if(p)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const o={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var s;s=o,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?p=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{p=!0})),e.signal}});const a=g(o);return Promise.resolve(a).then((e=>v(t,r,e,i)))};let w;if(h.length)if(u){const t=void 0!==c,n=t?c:ji(e.options,h);w=y(h,t,n)}else if(d){const t=void 0!==c,n=t?c:(b=e.options,C=h,null==b.getPreviousPageParam?void 0:b.getPreviousPageParam(C[0],C));w=y(h,t,n,!0)}else{m=[];const t=void 0===e.options.getNextPageParam;w=a&&h[0]&&!a(h[0],0,h)?Promise.resolve(v([],f[0],h[0])):y([],t,f[0]);for(let n=1;n<h.length;n++)w=w.then((r=>{if(!a||!h[n]||a(h[n],n,h)){const i=t?f[n]:ji(e.options,r);return y(r,t,i)}return Promise.resolve(v(r,f[n],h[n]))}))}else w=y([]);var b,C;return w.then((e=>({pages:e,pageParams:m})))}}},this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(Wr).catch(Wr)}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=>ei(e)===ei(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>ti(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>ei(e)===ei(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>ti(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=Zr(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()}}($i);document.addEventListener("DOMContentLoaded",(()=>{const t=document.getElementById("burst-widget-root");t&&(0,n.render)((0,e.createElement)(zi,{client:Ki},(0,e.createElement)(Ai,null)),t)}))}()}();