PluginProbe
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / 2.12.8
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz v2.12.8
2.12.8 2.12.7 2.12.6 2.12.5 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.1 2.11.0 2.10.1 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.7.0 2.7.1 2.8.0 trunk 0.0.10 0.0.11 0.0.12 0.0.13 All 98 releases
← All changes | assets/build/dashboard.js +171 -1 0.0.13 → 2.12.8 View file →
@@ -1,2 +1,172 @@
1 1 /*! For license information please see dashboard.js.LICENSE.txt */
2 -(()=>{var t,e,i={706:(t,e,i)=>{"use strict";i.d(e,{F:()=>dt,H:()=>P,a:()=>it,b:()=>ht,c:()=>q,f:()=>st,g:()=>U,h:()=>S,p:()=>f,r:()=>pt});let a,s,r,n=!1,o=!1,l=!1,c=!1,h=null,d=!1;const u="undefined"!=typeof window?window:{},g=u.document||{head:{}},p={$flags$:0,$resourcesUrl$:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,i,a)=>t.addEventListener(e,i,a),rel:(t,e,i,a)=>t.removeEventListener(e,i,a),ce:(t,e)=>new CustomEvent(t,e)},f=t=>Promise.resolve(t),x=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),m=(t,e,i,a)=>{i&&i.map((([i,a,s])=>{const r=v(t,i),n=b(e,s),o=y(i);p.ael(r,a,n,o),(e.$rmListeners$=e.$rmListeners$||[]).push((()=>p.rel(r,a,n,o)))}))},b=(t,e)=>i=>{try{256&t.$flags$?t.$lazyInstance$[e](i):(t.$queuedListeners$=t.$queuedListeners$||[]).push([e,i])}catch(t){mt(t)}},v=(t,e)=>8&e?u:t,y=t=>0!=(2&t),w=new WeakMap,k=(t,e)=>"sc-"+t.$tagName$,A={},C=t=>"object"==(t=typeof t)||"function"===t,S=(t,e,...i)=>{let a=null,s=null,r=null,n=!1,o=!1;const l=[],c=e=>{for(let i=0;i<e.length;i++)a=e[i],Array.isArray(a)?c(a):null!=a&&"boolean"!=typeof a&&((n="function"!=typeof t&&!C(a))&&(a=String(a)),n&&o?l[l.length-1].$text$+=a:l.push(n?L(null,a):a),o=n)};if(c(i),e){e.key&&(s=e.key),e.name&&(r=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,l,I);const h=L(t,null);return h.$attrs$=e,l.length>0&&(h.$children$=l),h.$key$=s,h.$name$=r,h},L=(t,e)=>({$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),P={},I={forEach:(t,e)=>t.map(T).forEach(e),map:(t,e)=>t.map(T).map(e).map(M)},T=t=>({vattrs:t.$attrs$,vchildren:t.$children$,vkey:t.$key$,vname:t.$name$,vtag:t.$tag$,vtext:t.$text$}),M=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),S(t.vtag,e,...t.vchildren||[])}const e=L(t.vtag,t.vtext);return e.$attrs$=t.vattrs,e.$children$=t.vchildren,e.$key$=t.vkey,e.$name$=t.vname,e},E=(t,e,i,a,s,r)=>{if(i!==a){let n=xt(t,e),o=e.toLowerCase();if("class"===e){const e=t.classList,s=O(i),r=O(a);e.remove(...s.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!s.includes(t))))}else if("style"===e){for(const e in i)a&&null!=a[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in a)i&&a[e]===i[e]||(e.includes("-")?t.style.setProperty(e,a[e]):t.style[e]=a[e])}else if("key"===e);else if("ref"===e)a&&a(t);else if(n||"o"!==e[0]||"n"!==e[1]){const o=C(a);if((n||o&&null!==a)&&!s)try{if(t.tagName.includes("-"))t[e]=a;else{const s=null==a?"":a;"list"===e?n=!1:null!=i&&t[e]==s||(t[e]=s)}}catch(t){}null==a||!1===a?!1===a&&""!==t.getAttribute(e)||t.removeAttribute(e):(!n||4&r||s)&&!o&&(a=!0===a?"":a,t.setAttribute(e,a))}else e="-"===e[2]?e.slice(3):xt(u,o)?o.slice(2):o[2]+e.slice(3),i&&p.rel(t,e,i,!1),a&&p.ael(t,e,a,!1)}},z=/\s/,O=t=>t?t.split(z):[],X=(t,e,i,a)=>{const s=11===e.$elm$.nodeType&&e.$elm$.host?e.$elm$.host:e.$elm$,r=t&&t.$attrs$||A,n=e.$attrs$||A;for(a in r)a in n||E(s,a,r[a],void 0,i,e.$flags$);for(a in n)E(s,a,r[a],n[a],i,e.$flags$)},R=(t,e,i,o)=>{const h=e.$children$[i];let d,u,p,f=0;if(n||(l=!0,"slot"===h.$tag$&&(a&&o.classList.add(a+"-s"),h.$flags$|=h.$children$?2:1)),null!==h.$text$)d=h.$elm$=g.createTextNode(h.$text$);else if(1&h.$flags$)d=h.$elm$=g.createTextNode("");else{if(c||(c="svg"===h.$tag$),d=h.$elm$=g.createElementNS(c?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&h.$flags$?"slot-fb":h.$tag$),c&&"foreignObject"===h.$tag$&&(c=!1),X(null,h,c),null!=a&&d["s-si"]!==a&&d.classList.add(d["s-si"]=a),h.$children$)for(f=0;f<h.$children$.length;++f)u=R(t,h,f,d),u&&d.appendChild(u);"svg"===h.$tag$?c=!1:"foreignObject"===d.tagName&&(c=!0)}return d["s-hn"]=r,3&h.$flags$&&(d["s-sr"]=!0,d["s-cr"]=s,d["s-sn"]=h.$name$||"",p=t&&t.$children$&&t.$children$[i],p&&p.$tag$===h.$tag$&&t.$elm$&&F(t.$elm$,!1)),d},F=(t,e)=>{p.$flags$|=1;const i=t.childNodes;for(let t=i.length-1;t>=0;t--){const a=i[t];a["s-hn"]!==r&&a["s-ol"]&&(W(a).insertBefore(a,D(a)),a["s-ol"].remove(),a["s-ol"]=void 0,l=!0),e&&F(a,e)}p.$flags$&=-2},Y=(t,e,i,a,s,n)=>{let o,l=t["s-cr"]&&t["s-cr"].parentNode||t;for(l.shadowRoot&&l.tagName===r&&(l=l.shadowRoot);s<=n;++s)a[s]&&(o=R(null,i,s,t),o&&(a[s].$elm$=o,l.insertBefore(o,D(e))))},H=(t,e,i,a,s)=>{for(;e<=i;++e)(a=t[e])&&(s=a.$elm$,G(a),o=!0,s["s-ol"]?s["s-ol"].remove():F(s,!0),s.remove())},N=(t,e)=>t.$tag$===e.$tag$&&("slot"===t.$tag$?t.$name$===e.$name$:t.$key$===e.$key$),D=t=>t&&t["s-ol"]||t,W=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,B=(t,e)=>{const i=e.$elm$=t.$elm$,a=t.$children$,s=e.$children$,r=e.$tag$,n=e.$text$;let o;null===n?(c="svg"===r||"foreignObject"!==r&&c,"slot"===r||X(t,e,c),null!==a&&null!==s?((t,e,i,a)=>{let s,r,n=0,o=0,l=0,c=0,h=e.length-1,d=e[0],u=e[h],g=a.length-1,p=a[0],f=a[g];for(;n<=h&&o<=g;)if(null==d)d=e[++n];else if(null==u)u=e[--h];else if(null==p)p=a[++o];else if(null==f)f=a[--g];else if(N(d,p))B(d,p),d=e[++n],p=a[++o];else if(N(u,f))B(u,f),u=e[--h],f=a[--g];else if(N(d,f))"slot"!==d.$tag$&&"slot"!==f.$tag$||F(d.$elm$.parentNode,!1),B(d,f),t.insertBefore(d.$elm$,u.$elm$.nextSibling),d=e[++n],f=a[--g];else if(N(u,p))"slot"!==d.$tag$&&"slot"!==f.$tag$||F(u.$elm$.parentNode,!1),B(u,p),t.insertBefore(u.$elm$,d.$elm$),u=e[--h],p=a[++o];else{for(l=-1,c=n;c<=h;++c)if(e[c]&&null!==e[c].$key$&&e[c].$key$===p.$key$){l=c;break}l>=0?(r=e[l],r.$tag$!==p.$tag$?s=R(e&&e[o],i,l,t):(B(r,p),e[l]=void 0,s=r.$elm$),p=a[++o]):(s=R(e&&e[o],i,o,t),p=a[++o]),s&&W(d.$elm$).insertBefore(s,D(d.$elm$))}n>h?Y(t,null==a[g+1]?null:a[g+1].$elm$,i,a,o,g):o>g&&H(e,n,h)})(i,a,e,s):null!==s?(null!==t.$text$&&(i.textContent=""),Y(i,null,e,s,0,s.length-1)):null!==a&&H(a,0,a.length-1),c&&"svg"===r&&(c=!1)):(o=i["s-cr"])?o.parentNode.textContent=n:t.$text$!==n&&(i.data=n)},$=t=>{const e=t.childNodes;let i,a,s,r,n,o;for(a=0,s=e.length;a<s;a++)if(i=e[a],1===i.nodeType){if(i["s-sr"])for(n=i["s-sn"],i.hidden=!1,r=0;r<s;r++)if(o=e[r].nodeType,e[r]["s-hn"]!==i["s-hn"]||""!==n){if(1===o&&n===e[r].getAttribute("slot")){i.hidden=!0;break}}else if(1===o||3===o&&""!==e[r].textContent.trim()){i.hidden=!0;break}$(i)}},j=[],_=t=>{let e,i,a,s,r,n,l=0;const c=t.childNodes,h=c.length;for(;l<h;l++){if(e=c[l],e["s-sr"]&&(i=e["s-cr"])&&i.parentNode)for(a=i.parentNode.childNodes,s=e["s-sn"],n=a.length-1;n>=0;n--)i=a[n],i["s-cn"]||i["s-nr"]||i["s-hn"]===e["s-hn"]||(V(i,s)?(r=j.find((t=>t.$nodeToRelocate$===i)),o=!0,i["s-sn"]=i["s-sn"]||s,r?r.$slotRefNode$=e:j.push({$slotRefNode$:e,$nodeToRelocate$:i}),i["s-sr"]&&j.map((t=>{V(t.$nodeToRelocate$,i["s-sn"])&&(r=j.find((t=>t.$nodeToRelocate$===i)),r&&!t.$slotRefNode$&&(t.$slotRefNode$=r.$slotRefNode$))}))):j.some((t=>t.$nodeToRelocate$===i))||j.push({$nodeToRelocate$:i}));1===e.nodeType&&_(e)}},V=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,G=t=>{t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(G)},U=t=>gt(t).$hostElement$,q=(t,e,i)=>{const a=U(t);return{emit:t=>Z(a,e,{bubbles:!!(4&i),composed:!!(2&i),cancelable:!!(1&i),detail:t})}},Z=(t,e,i)=>{const a=p.ce(e,i);return t.dispatchEvent(a),a},J=(t,e)=>{e&&!t.$onRenderResolve$&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.$onRenderResolve$=e)))},K=(t,e)=>{if(t.$flags$|=16,!(4&t.$flags$))return J(t,t.$ancestorComponent$),Pt((()=>Q(t,e)));t.$flags$|=512},Q=(t,e)=>{const i=(t.$cmpMeta$.$tagName$,()=>{}),a=t.$lazyInstance$;let s;return e&&(t.$flags$|=256,t.$queuedListeners$&&(t.$queuedListeners$.map((([t,e])=>nt(a,t,e))),t.$queuedListeners$=null),s=nt(a,"componentWillLoad")),i(),ot(s,(()=>tt(t,a,e)))},tt=async(t,e,i)=>{const a=t.$hostElement$,s=(t.$cmpMeta$.$tagName$,()=>{}),r=a["s-rc"];i&&(t=>{const e=t.$cmpMeta$,i=t.$hostElement$,a=e.$flags$,s=(e.$tagName$,()=>{}),r=((t,e,i,a)=>{let s=k(e);const r=yt.get(s);if(t=11===t.nodeType?t:g,r)if("string"==typeof r){t=t.head||t;let e,i=w.get(t);i||w.set(t,i=new Set),i.has(s)||(e=g.createElement("style"),e.innerHTML=r,t.insertBefore(e,t.querySelector("link")),i&&i.add(s))}else t.adoptedStyleSheets.includes(r)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,r]);return s})(i.shadowRoot?i.shadowRoot:i.getRootNode(),e);10&a&&(i["s-sc"]=r,i.classList.add(r+"-h")),s()})(t);const n=(t.$cmpMeta$.$tagName$,()=>{});et(t,e),r&&(r.map((t=>t())),a["s-rc"]=void 0),n(),s();{const e=a["s-p"],i=()=>at(t);0===e.length?i():(Promise.all(e).then(i),t.$flags$|=4,e.length=0)}},et=(t,e,i)=>{try{h=e,e=e.render&&e.render(),t.$flags$&=-17,t.$flags$|=2,((t,e)=>{const i=t.$hostElement$,c=t.$cmpMeta$,h=t.$vnode$||L(null,null),d=(u=e)&&u.$tag$===P?e:S(null,null,e);var u;if(r=i.tagName,c.$attrsToReflect$&&(d.$attrs$=d.$attrs$||{},c.$attrsToReflect$.map((([t,e])=>d.$attrs$[e]=i[t]))),d.$tag$=null,d.$flags$|=4,t.$vnode$=d,d.$elm$=h.$elm$=i.shadowRoot||i,a=i["s-sc"],s=i["s-cr"],n=0!=(1&c.$flags$),o=!1,B(h,d),p.$flags$|=1,l){let t,e,i,a,s,r;_(d.$elm$);let n=0;for(;n<j.length;n++)t=j[n],e=t.$nodeToRelocate$,e["s-ol"]||(i=g.createTextNode(""),i["s-nr"]=e,e.parentNode.insertBefore(e["s-ol"]=i,e));for(n=0;n<j.length;n++)if(t=j[n],e=t.$nodeToRelocate$,t.$slotRefNode$){for(a=t.$slotRefNode$.parentNode,s=t.$slotRefNode$.nextSibling,i=e["s-ol"];i=i.previousSibling;)if(r=i["s-nr"],r&&r["s-sn"]===e["s-sn"]&&a===r.parentNode&&(r=r.nextSibling,!r||!r["s-nr"])){s=r;break}(!s&&a!==e.parentNode||e.nextSibling!==s)&&e!==s&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),a.insertBefore(e,s))}else 1===e.nodeType&&(e.hidden=!0)}o&&$(d.$elm$),p.$flags$&=-2,j.length=0})(t,e)}catch(e){mt(e,t.$hostElement$)}return h=null,null},it=()=>h,at=t=>{t.$cmpMeta$.$tagName$;const e=t.$hostElement$,i=t.$lazyInstance$,a=t.$ancestorComponent$;64&t.$flags$||(t.$flags$|=64,lt(e),nt(i,"componentDidLoad"),t.$onReadyResolve$(e),a||rt()),t.$onInstanceResolve$(e),t.$onRenderResolve$&&(t.$onRenderResolve$(),t.$onRenderResolve$=void 0),512&t.$flags$&&Lt((()=>K(t,!1))),t.$flags$&=-517},st=t=>{{const e=gt(t),i=e.$hostElement$.isConnected;return i&&2==(18&e.$flags$)&&K(e,!1),i}},rt=t=>{lt(g.documentElement),Lt((()=>Z(u,"appload",{detail:{namespace:"surecart"}})))},nt=(t,e,i)=>{if(t&&t[e])try{return t[e](i)}catch(t){mt(t)}},ot=(t,e)=>t&&t.then?t.then(e):e(),lt=t=>t.classList.add("hydrated"),ct=(t,e,i)=>{if(e.$members$){t.watchers&&(e.$watchers$=t.watchers);const a=Object.entries(e.$members$),s=t.prototype;if(a.map((([t,[a]])=>{31&a||2&i&&32&a?Object.defineProperty(s,t,{get(){return e=t,gt(this).$instanceValues$.get(e);var e},set(i){((t,e,i,a)=>{const s=gt(t),r=s.$hostElement$,n=s.$instanceValues$.get(e),o=s.$flags$,l=s.$lazyInstance$;var c,h;c=i,h=a.$members$[e][0],i=null==c||C(c)?c:4&h?"false"!==c&&(""===c||!!c):2&h?parseFloat(c):1&h?String(c):c;const d=Number.isNaN(n)&&Number.isNaN(i);if((!(8&o)||void 0===n)&&i!==n&&!d&&(s.$instanceValues$.set(e,i),l)){if(a.$watchers$&&128&o){const t=a.$watchers$[e];t&&t.map((t=>{try{l[t](i,n,e)}catch(t){mt(t,r)}}))}2==(18&o)&&K(s,!1)}})(this,t,i,e)},configurable:!0,enumerable:!0}):1&i&&64&a&&Object.defineProperty(s,t,{value(...e){const i=gt(this);return i.$onInstancePromise$.then((()=>i.$lazyInstance$[t](...e)))}})})),1&i){const i=new Map;s.attributeChangedCallback=function(t,e,a){p.jmp((()=>{const e=i.get(t);if(this.hasOwnProperty(e))a=this[e],delete this[e];else if(s.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==a)return;this[e]=(null!==a||"boolean"!=typeof this[e])&&a}))},t.observedAttributes=a.filter((([t,e])=>15&e[0])).map((([t,a])=>{const s=a[1]||t;return i.set(s,t),512&a[0]&&e.$attrsToReflect$.push([t,s]),s}))}}return t},ht=(t,e={})=>{const i=[],a=e.exclude||[],s=u.customElements,r=g.head,n=r.querySelector("meta[charset]"),o=g.createElement("style"),l=[];let c,h=!0;Object.assign(p,e),p.$resourcesUrl$=new URL(e.resourcesUrl||"./",g.baseURI).href,t.map((t=>{t[1].map((e=>{const r={$flags$:e[0],$tagName$:e[1],$members$:e[2],$listeners$:e[3]};r.$members$=e[2],r.$listeners$=e[3],r.$attrsToReflect$=[],r.$watchers$={};const n=r.$tagName$,o=class extends HTMLElement{constructor(t){super(t),ft(t=this,r),1&r.$flags$&&t.attachShadow({mode:"open"})}connectedCallback(){c&&(clearTimeout(c),c=null),h?l.push(this):p.jmp((()=>(t=>{if(0==(1&p.$flags$)){const e=gt(t),i=e.$cmpMeta$,a=(i.$tagName$,()=>{});if(1&e.$flags$)m(t,e,i.$listeners$);else{e.$flags$|=1,12&i.$flags$&&(t=>{const e=t["s-cr"]=g.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)})(t);{let i=t;for(;i=i.parentNode||i.host;)if(i["s-p"]){J(e,e.$ancestorComponent$=i);break}}i.$members$&&Object.entries(i.$members$).map((([e,[i]])=>{if(31&i&&t.hasOwnProperty(e)){const i=t[e];delete t[e],t[e]=i}})),(async(t,e,i,a,s)=>{if(0==(32&e.$flags$)){{if(e.$flags$|=32,(s=vt(i)).then){const t=()=>{};s=await s,t()}s.isProxied||(i.$watchers$=s.watchers,ct(s,i,2),s.isProxied=!0);const t=(i.$tagName$,()=>{});e.$flags$|=8;try{new s(e)}catch(t){mt(t)}e.$flags$&=-9,e.$flags$|=128,t()}if(s.style){let t=s.style;const e=k(i);if(!yt.has(e)){const a=(i.$tagName$,()=>{});((t,e,i)=>{let a=yt.get(t);x&&i?(a=a||new CSSStyleSheet,"string"==typeof a?a=e:a.replaceSync(e)):a=e,yt.set(t,a)})(e,t,!!(1&i.$flags$)),a()}}}const r=e.$ancestorComponent$,n=()=>K(e,!0);r&&r["s-rc"]?r["s-rc"].push(n):n()})(0,e,i)}a()}})(this)))}disconnectedCallback(){p.jmp((()=>(t=>{if(0==(1&p.$flags$)){const e=gt(t),i=e.$lazyInstance$;e.$rmListeners$&&(e.$rmListeners$.map((t=>t())),e.$rmListeners$=void 0),nt(i,"disconnectedCallback")}})(this)))}componentOnReady(){return gt(this).$onReadyPromise$}};r.$lazyBundleId$=t[0],a.includes(n)||s.get(n)||(i.push(n),s.define(n,ct(o,r,1)))}))})),o.innerHTML=i+"{visibility:hidden}.hydrated{visibility:inherit}",o.setAttribute("data-styles",""),r.insertBefore(o,n?n.nextSibling:r.firstChild),h=!1,l.length?l.map((t=>t.connectedCallback())):p.jmp((()=>c=setTimeout(rt,30)))},dt=(t,e)=>e,ut=new WeakMap,gt=t=>ut.get(t),pt=(t,e)=>ut.set(e.$lazyInstance$=t,e),ft=(t,e)=>{const i={$flags$:0,$hostElement$:t,$cmpMeta$:e,$instanceValues$:new Map};return i.$onInstancePromise$=new Promise((t=>i.$onInstanceResolve$=t)),i.$onReadyPromise$=new Promise((t=>i.$onReadyResolve$=t)),t["s-p"]=[],t["s-rc"]=[],m(t,i,e.$listeners$),ut.set(t,i)},xt=(t,e)=>e in t,mt=(t,e)=>(0,console.error)(t,e),bt=new Map,vt=(t,e,a)=>{const s=t.$tagName$.replace(/-/g,"_"),r=t.$lazyBundleId$,n=bt.get(r);return n?n[s]:i(6617)(`./${r}.entry.js`).then((t=>(bt.set(r,t),t[s])),mt)},yt=new Map,wt=[],kt=[],At=(t,e)=>i=>{t.push(i),d||(d=!0,e&&4&p.$flags$?Lt(St):p.raf(St))},Ct=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){mt(t)}t.length=0},St=()=>{Ct(wt),Ct(kt),(d=wt.length>0)&&p.raf(St)},Lt=t=>f().then(t),Pt=At(kt,!0)},1542:(t,e,i)=>{"use strict";i.d(e,{g:()=>r,r:()=>n});let a=[],s=[];function r(t){return a.filter((e=>e.name===t))[0]}function n(t,e){!function(t){a=a.filter((e=>e.name!==t))}(t),a.push({name:t,resolver:e.resolver,mutator:e.mutator}),s.map((e=>{e.library===t&&e.redraw()}))}window.ceRegisterIconLibrary=n},6617:(t,e,i)=>{var a={"./sc-address_3.entry.js":[9926,536],"./sc-alert_2.entry.js":[3967,536],"./sc-badge-notice.entry.js":[7892,536],"./sc-block-ui_2.entry.js":[2104,536],"./sc-breadcrumb.entry.js":[3013,536],"./sc-breadcrumbs.entry.js":[7014,536],"./sc-button-group.entry.js":[8678,536],"./sc-button.entry.js":[2820,536],"./sc-cancel-dialog_2.entry.js":[8637,536],"./sc-cancel-discount_4.entry.js":[1993,536],"./sc-card_2.entry.js":[8175,536],"./sc-cart-form-submit.entry.js":[9033,536],"./sc-cart-form.entry.js":[5152,536],"./sc-cart-header.entry.js":[3407,536],"./sc-cart-icon_4.entry.js":[4624,536],"./sc-cart-loader.entry.js":[4677,536],"./sc-cart-submit.entry.js":[2741,536],"./sc-cart.entry.js":[2644,536],"./sc-cc-logo_2.entry.js":[1229,536],"./sc-charges-list.entry.js":[7467,536],"./sc-checkbox.entry.js":[9567,536],"./sc-checkout-form-errors.entry.js":[7939,536],"./sc-checkout-mollie-payment.entry.js":[3153,536],"./sc-checkout-unsaved-changes-warning_7.entry.js":[3881,536],"./sc-checkout.entry.js":[3106,536],"./sc-choice.entry.js":[6742,536],"./sc-choices.entry.js":[9369,536],"./sc-column_2.entry.js":[6811,536],"./sc-compact-address_6.entry.js":[1011,536],"./sc-conditional-form.entry.js":[6882,536],"./sc-consumer.entry.js":[8465,536],"./sc-coupon-form.entry.js":[5591,536],"./sc-custom-order-price-input.entry.js":[6022,536],"./sc-customer-details.entry.js":[2912,536],"./sc-customer-edit.entry.js":[5556,536],"./sc-customer-email.entry.js":[5649,536],"./sc-customer-firstname.entry.js":[4389,536],"./sc-customer-lastname.entry.js":[1827,536],"./sc-customer-name.entry.js":[8522,536],"./sc-dashboard-customer-details.entry.js":[7862,536],"./sc-dashboard-downloads-list.entry.js":[5581,536],"./sc-dialog.entry.js":[2607,536],"./sc-divider.entry.js":[8441,536],"./sc-donation-choices.entry.js":[8496,536],"./sc-downloads-list.entry.js":[7145,536],"./sc-dropdown_4.entry.js":[7398,536],"./sc-empty_3.entry.js":[7389,536],"./sc-express-payment.entry.js":[2740,536],"./sc-flex.entry.js":[9793,536],"./sc-form-control_2.entry.js":[267,536],"./sc-form-row.entry.js":[4933,536],"./sc-form.entry.js":[1897,536],"./sc-format-bytes.entry.js":[139,536],"./sc-format-date.entry.js":[8210,536],"./sc-format-interval.entry.js":[5277,536],"./sc-format-number.entry.js":[8329,536],"./sc-heading_2.entry.js":[9935,536],"./sc-invoices-list.entry.js":[1691,536],"./sc-licenses-list.entry.js":[9131,536],"./sc-line-item-bump.entry.js":[7553,536],"./sc-line-item-total.entry.js":[4384,536],"./sc-line-item.entry.js":[3642,536],"./sc-line-items-provider.entry.js":[1379,536],"./sc-line-items.entry.js":[905,536],"./sc-login-form.entry.js":[3390,536],"./sc-menu-divider.entry.js":[3738,536],"./sc-mollie-add-method.entry.js":[410,536],"./sc-order-confirmation-customer.entry.js":[2803,536],"./sc-order-confirmation-details.entry.js":[74,536],"./sc-order-confirmation-line-items_2.entry.js":[5508,536],"./sc-order-confirmation.entry.js":[7059,536],"./sc-order-coupon-form.entry.js":[7183,536],"./sc-order-detail.entry.js":[7089,536],"./sc-order-manual-instructions.entry.js":[6341,536],"./sc-order-password.entry.js":[8176,536],"./sc-order-status-badge.entry.js":[8062,536],"./sc-order-submit.entry.js":[6102,536],"./sc-order-summary.entry.js":[4953,536],"./sc-order.entry.js":[3215,536],"./sc-orders-list.entry.js":[7649,536],"./sc-pagination.entry.js":[8769,536],"./sc-password-nag.entry.js":[331,536],"./sc-payment-method-choice_2.entry.js":[4937,536],"./sc-payment-methods-list.entry.js":[336,536],"./sc-payment.entry.js":[7889,536],"./sc-paypal-add-method.entry.js":[49,536],"./sc-paypal-buttons.entry.js":[773,536],"./sc-premium-tag.entry.js":[2514,536],"./sc-price-choice.entry.js":[1226,536],"./sc-price-choices.entry.js":[3254,536],"./sc-price-input.entry.js":[5653,536],"./sc-price-range.entry.js":[7773,536],"./sc-product-line-item_2.entry.js":[5934,536],"./sc-provider.entry.js":[4194,536],"./sc-purchase-downloads-list_2.entry.js":[1810,536],"./sc-radio-group.entry.js":[3128,536],"./sc-radio.entry.js":[1519,536],"./sc-secure-notice.entry.js":[623,536],"./sc-skeleton.entry.js":[3770,536],"./sc-stripe-add-method.entry.js":[7923,536],"./sc-stripe-element.entry.js":[9545,536],"./sc-stripe-payment-element.entry.js":[3691,536],"./sc-stripe-payment-request.entry.js":[1620,536],"./sc-subscription-ad-hoc-confirm.entry.js":[3169,536],"./sc-subscription-details_2.entry.js":[6737,536],"./sc-subscription-payment-method.entry.js":[5108,536],"./sc-subscription-payment.entry.js":[1422,536],"./sc-subscription-switch.entry.js":[4121,536],"./sc-subscription.entry.js":[8365,536],"./sc-subscriptions-list.entry.js":[8695,536],"./sc-switch.entry.js":[4119,536],"./sc-tab-group.entry.js":[6154,536],"./sc-tab-panel.entry.js":[5205,536],"./sc-tab.entry.js":[4918,536],"./sc-table-head.entry.js":[2894,536],"./sc-table_3.entry.js":[2129,536],"./sc-tag.entry.js":[5583,536],"./sc-text.entry.js":[9395,536],"./sc-toggle.entry.js":[3455,536],"./sc-toggles.entry.js":[8823,536],"./sc-tooltip.entry.js":[2733,536],"./sc-total.entry.js":[1073,536],"./sc-upcoming-invoice.entry.js":[3287,536],"./sc-upgrade-required.entry.js":[3332,536],"./sc-wordpress-password-edit.entry.js":[4604,536],"./sc-wordpress-user-edit.entry.js":[975,536],"./sc-wordpress-user.entry.js":[8321,536]};function s(t){if(!i.o(a,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=a[t],s=e[0];return i.e(e[1]).then((()=>i(s)))}s.keys=()=>Object.keys(a),s.id=6617,t.exports=s},5927:(t,e,i)=>{"use strict";var a;function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function r(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?s(Object(i),!0).forEach((function(e){h(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function c(t,e,i){return e&&l(t.prototype,e),i&&l(t,i),t}function h(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function g(t,e){return g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},g(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,a=u(t);if(e){var s=u(this).constructor;i=Reflect.construct(a,arguments,s)}else i=a.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i)}}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var a,s,r=[],n=!0,o=!1;try{for(i=i.call(t);!(n=(a=i.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,s=t}finally{try{n||null==i.return||i.return()}finally{if(o)throw s}}return r}}(t,e)||m(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){if(t){if("string"==typeof t)return b(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?b(t,e):void 0}}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=new Array(e);i<e;i++)a[i]=t[i];return a}var v=function(){function t(){o(this,t)}return c(t,[{key:"shadeRGBColor",value:function(t,e){var i=e.split(","),a=t<0?0:255,s=t<0?-1*t:t,r=parseInt(i[0].slice(4),10),n=parseInt(i[1],10),o=parseInt(i[2],10);return"rgb("+(Math.round((a-r)*s)+r)+","+(Math.round((a-n)*s)+n)+","+(Math.round((a-o)*s)+o)+")"}},{key:"shadeHexColor",value:function(t,e){var i=parseInt(e.slice(1),16),a=t<0?0:255,s=t<0?-1*t:t,r=i>>16,n=i>>8&255,o=255&i;return"#"+(16777216+65536*(Math.round((a-r)*s)+r)+256*(Math.round((a-n)*s)+n)+(Math.round((a-o)*s)+o)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,i){return t.isColorHex(i)?this.shadeHexColor(e,i):this.shadeRGBColor(e,i)}}],[{key:"bind",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:"isObject",value:function(t){return t&&"object"===n(t)&&!Array.isArray(t)&&null!=t}},{key:"is",value:function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"}},{key:"listToArray",value:function(t){var e,i=[];for(e=0;e<t.length;e++)i[e]=t[e];return i}},{key:"extend",value:function(t,e){var i=this;"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var a=arguments[i];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(e[s]=a[s])}return e});var a=Object.assign({},t);return this.isObject(t)&&this.isObject(e)&&Object.keys(e).forEach((function(s){i.isObject(e[s])&&s in t?a[s]=i.extend(t[s],e[s]):Object.assign(a,h({},s,e[s]))})),a}},{key:"extendArray",value:function(e,i){var a=[];return e.map((function(e){a.push(t.extend(i,e))})),a}},{key:"monthMod",value:function(t){return t%12}},{key:"clone",value:function(e){if(t.is("Array",e)){for(var i=[],a=0;a<e.length;a++)i[a]=this.clone(e[a]);return i}if(t.is("Null",e))return null;if(t.is("Date",e))return e;if("object"===n(e)){var s={};for(var r in e)e.hasOwnProperty(r)&&(s[r]=this.clone(e[r]));return s}return e}},{key:"log10",value:function(t){return Math.log(t)/Math.LN10}},{key:"roundToBase10",value:function(t){return Math.pow(10,Math.floor(Math.log10(t)))}},{key:"roundToBase",value:function(t,e){return Math.pow(e,Math.floor(Math.log(t)/Math.log(e)))}},{key:"parseNumber",value:function(t){return null===t?t:parseFloat(t)}},{key:"stripNumber",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number.isInteger(t)?t:parseFloat(t.toPrecision(e))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(t){var e=String(t).split(/[eE]/);if(1===e.length)return e[0];var i="",a=t<0?"-":"",s=e[0].replace(".",""),r=Number(e[1])+1;if(r<0){for(i=a+"0.";r++;)i+="0";return i+s.replace(/^-/,"")}for(r-=s.length;r--;)i+="0";return s+i}},{key:"getDimensions",value:function(t){var e=getComputedStyle(t,null),i=t.clientHeight,a=t.clientWidth;return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),[a-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),i]}},{key:"getBoundingClientRect",value:function(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:t.clientWidth,height:t.clientHeight,x:e.left,y:e.top}}},{key:"getLargestStringFromArr",value:function(t){return t.reduce((function(t,e){return Array.isArray(e)&&(e=e.reduce((function(t,e){return t.length>e.length?t:e}))),t.length>e.length?t:e}),0)}},{key:"hexToRgba",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==t.substring(0,1)&&(t="#999999");var i=t.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var a=0;a<i.length;a++)i[a]=parseInt(1===i[a].length?i[a]+i[a]:i[a],16);return void 0!==e&&i.push(e),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(t){return parseFloat(t.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(t)}},{key:"getPolygonPos",value:function(t,e){for(var i=[],a=2*Math.PI/e,s=0;s<e;s++){var r={};r.x=t*Math.sin(s*a),r.y=-t*Math.cos(s*a),i.push(r)}return i}},{key:"polarToCartesian",value:function(t,e,i,a){var s=(a-90)*Math.PI/180;return{x:t+i*Math.cos(s),y:e+i*Math.sin(s)}}},{key:"escapeString",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x";return t.toString().slice().replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,e)}},{key:"negToZero",value:function(t){return t<0?0:t}},{key:"moveIndexInArray",value:function(t,e,i){if(i>=t.length)for(var a=i-t.length+1;a--;)t.push(void 0);return t.splice(i,0,t.splice(e,1)[0]),t}},{key:"extractNumber",value:function(t){return parseFloat(t.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}},{key:"setELstyles",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style.key=e[i])}},{key:"isNumber",value:function(t){return!isNaN(t)&&parseFloat(Number(t))===t&&!isNaN(parseInt(t,10))}},{key:"isFloat",value:function(t){return Number(t)===t&&t%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var a=t.indexOf("Edge/");return a>0&&parseInt(t.substring(a+5,t.indexOf(".",a)),10)}}]),t}(),y=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w,this.setEasingFunctions()}return c(t,[{key:"setEasingFunctions",value:function(){var t;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":t="-";break;case"easein":t="<";break;case"easeout":t=">";break;case"easeinout":default:t="<>";break;case"swing":t=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1};break;case"bounce":t=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375};break;case"elastic":t=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=t}}},{key:"animateLine",value:function(t,e,i,a){t.attr(e).animate(a).attr(i)}},{key:"animateMarker",value:function(t,e,i,a,s,r){e||(e=0),t.attr({r:e,width:e,height:e}).animate(a,s).attr({r:i,width:i.width,height:i.height}).afterAll((function(){r()}))}},{key:"animateCircle",value:function(t,e,i,a,s){t.attr({r:e.r,cx:e.cx,cy:e.cy}).animate(a,s).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(t,e,i,a,s){t.attr(e).animate(a).attr(i).afterAll((function(){return s()}))}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=t.realIndex,a=t.j,s=t.fill,r=t.pathFrom,n=t.pathTo,o=t.speed,l=t.delay,c=this.w,h=0;c.config.chart.animations.animateGradually.enabled&&(h=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(h=0),this.morphSVG(e,i,a,"line"!==c.config.chart.type||c.globals.comboCharts?s:"stroke",r,n,o,l*h)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach((function(t){var e=t.el;e.classList.remove("apexcharts-element-hidden"),e.classList.add("apexcharts-hidden-element-shown")}))}},{key:"animationCompleted",value:function(t){var e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof e.config.chart.events.animationEnd&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e}))}},{key:"morphSVG",value:function(t,e,i,a,s,r,n,o){var l=this,c=this.w;s||(s=t.attr("pathFrom")),r||(r=t.attr("pathTo"));var h=function(t){return"radar"===c.config.chart.type&&(n=1),"M 0 ".concat(c.globals.gridHeight)};(!s||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=h()),(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=h()),c.globals.shouldAnimate||(n=1),t.plot(s).animate(1,c.globals.easing,o).plot(s).animate(n,c.globals.easing,o).plot(r).afterAll((function(){v.isNumber(i)?i===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(t):"none"!==a&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&e===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(t),l.showDelayedElements()}))}}]),t}(),w=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"getDefaultFilter",value:function(t,e){var i=this.w;t.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==i.config.states.normal.filter?this.applyFilter(t,e,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addNormalFilter",value:function(t,e){var i=this.w;i.config.chart.dropShadow.enabled&&!t.node.classList.contains("apexcharts-marker")&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addLightenFilter",value:function(t,e,i){var a=this,s=this.w,r=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter((function(t){var i=s.config.chart.dropShadow;(i.enabled?a.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:r}})})),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"addDarkenFilter",value:function(t,e,i){var a=this,s=this.w,r=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter((function(t){var i=s.config.chart.dropShadow;(i.enabled?a.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:r}})})),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"applyFilter",value:function(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(t,e);break;case"lighten":this.addLightenFilter(t,e,{intensity:a});break;case"darken":this.addDarkenFilter(t,e,{intensity:a})}}},{key:"addShadow",value:function(t,e,i){var a=i.blur,s=i.top,r=i.left,n=i.color,o=i.opacity,l=t.flood(Array.isArray(n)?n[e]:n,o).composite(t.sourceAlpha,"in").offset(r,s).gaussianBlur(a).merge(t.source);return t.blend(t.source,l)}},{key:"dropShadow",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=e.top,s=e.left,r=e.blur,n=e.color,o=e.opacity,l=e.noUserSpaceOnUse,c=this.w;return t.unfilter(!0),v.isIE()&&"radialBar"===c.config.chart.type||(n=Array.isArray(n)?n[i]:n,t.filter((function(t){var e;e=v.isSafari()||v.isFirefox()||v.isIE()?t.flood(n,o).composite(t.sourceAlpha,"in").offset(s,a).gaussianBlur(r):t.flood(n,o).composite(t.sourceAlpha,"in").offset(s,a).gaussianBlur(r).merge(t.source),t.blend(t.source,e)})),l||t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)),t}},{key:"setSelectionFilter",value:function(t,e,i){var a=this.w;if(void 0!==a.globals.selectedDataPoints[e]&&a.globals.selectedDataPoints[e].indexOf(i)>-1){t.node.setAttribute("selected",!0);var s=a.config.states.active.filter;"none"!==s&&this.applyFilter(t,e,s.type,s.value)}}},{key:"_scaleFilterSize",value:function(t){!function(e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),t}(),k=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"roundPathCorners",value:function(t,e){function i(t,e,i){var s=e.x-t.x,r=e.y-t.y,n=Math.sqrt(s*s+r*r);return a(t,e,Math.min(1,i/n))}function a(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function s(t,e){t.length>2&&(t[t.length-2]=e.x,t[t.length-1]=e.y)}function r(t){return{x:parseFloat(t[t.length-2]),y:parseFloat(t[t.length-1])}}t.indexOf("NaN")>-1&&(t="");var n=t.split(/[,\s]/).reduce((function(t,e){var i=e.match("([a-zA-Z])(.+)");return i?(t.push(i[1]),t.push(i[2])):t.push(e),t}),[]).reduce((function(t,e){return parseFloat(e)==e&&t.length?t[t.length-1].push(e):t.push([e]),t}),[]),o=[];if(n.length>1){var l=r(n[0]),c=null;"Z"==n[n.length-1][0]&&n[0].length>2&&(c=["L",l.x,l.y],n[n.length-1]=c),o.push(n[0]);for(var h=1;h<n.length;h++){var d=o[o.length-1],u=n[h],g=u==c?n[1]:n[h+1];if(g&&d&&d.length>2&&"L"==u[0]&&g.length>2&&"L"==g[0]){var p,f,x=r(d),m=r(u),b=r(g);p=i(m,x,e),f=i(m,b,e),s(u,p),u.origPoint=m,o.push(u);var v=a(p,m,.5),y=a(m,f,.5),w=["C",v.x,v.y,y.x,y.y,f.x,f.y];w.origPoint=m,o.push(w)}else o.push(u)}if(c){var k=r(o[o.length-1]);o.push(["Z"]),s(o[0],k)}}else o=n;return o.reduce((function(t,e){return t+e.join(" ")+" "}),"")}},{key:"drawLine",value:function(t,e,i,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,n=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:a,stroke:s,"stroke-dasharray":r,"stroke-width":n,"stroke-linecap":o})}},{key:"drawRect",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",n=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,h=this.w.globals.dom.Paper.rect();return h.attr({x:t,y:e,width:i>0?i:0,height:a>0?a:0,rx:s,ry:s,opacity:n,"stroke-width":null!==o?o:0,stroke:null!==l?l:"none","stroke-dasharray":c}),h.node.setAttribute("fill",r),h}},{key:"drawPolygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(t).attr({fill:a,stroke:e,"stroke-width":i})}},{key:"drawCircle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t<0&&(t=0);var i=this.w.globals.dom.Paper.circle(2*t);return null!==e&&i.attr(e),i}},{key:"drawPath",value:function(t){var e=t.d,i=void 0===e?"":e,a=t.stroke,s=void 0===a?"#a8a8a8":a,r=t.strokeWidth,n=void 0===r?1:r,o=t.fill,l=t.fillOpacity,c=void 0===l?1:l,h=t.strokeOpacity,d=void 0===h?1:h,u=t.classes,g=t.strokeLinecap,p=void 0===g?null:g,f=t.strokeDashArray,x=void 0===f?0:f,m=this.w;return null===p&&(p=m.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(m.globals.gridHeight)),m.globals.dom.Paper.path(i).attr({fill:o,"fill-opacity":c,stroke:s,"stroke-opacity":d,"stroke-linecap":p,"stroke-width":n,"stroke-dasharray":x,class:u})}},{key:"group",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w.globals.dom.Paper.group();return null!==t&&e.attr(t),e}},{key:"move",value:function(t,e){return["M",t,e].join(" ")}},{key:"line",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=null;return null===i?a=[" L",t,e].join(" "):"H"===i?a=[" H",t].join(" "):"V"===i&&(a=[" V",e].join(" ")),a}},{key:"curve",value:function(t,e,i,a,s,r){return["C",t,e,i,a,s,r].join(" ")}},{key:"quadraticCurve",value:function(t,e,i,a){return["Q",t,e,i,a].join(" ")}},{key:"arc",value:function(t,e,i,a,s,r,n){var o="A";return arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(o="a"),[o,t,e,i,a,s,r,n].join(" ")}},{key:"renderPaths",value:function(t){var e,i=t.j,a=t.realIndex,s=t.pathFrom,n=t.pathTo,o=t.stroke,l=t.strokeWidth,c=t.strokeLinecap,h=t.fill,d=t.animationDelay,u=t.initialSpeed,g=t.dataChangeSpeed,p=t.className,f=t.shouldClipToGrid,x=void 0===f||f,m=t.bindEventsOnPaths,b=void 0===m||m,v=t.drawShadow,k=void 0===v||v,A=this.w,C=new w(this.ctx),S=new y(this.ctx),L=this.w.config.chart.animations.enabled,P=L&&this.w.config.chart.animations.dynamicAnimation.enabled,I=!!(L&&!A.globals.resized||P&&A.globals.dataChanged&&A.globals.shouldAnimate);I?e=s:(e=n,A.globals.animationEnded=!0);var T,M=A.config.stroke.dashArray;T=Array.isArray(M)?M[a]:A.config.stroke.dashArray;var E=this.drawPath({d:e,stroke:o,strokeWidth:l,fill:h,fillOpacity:1,classes:p,strokeLinecap:c,strokeDashArray:T});if(E.attr("index",a),x&&E.attr({"clip-path":"url(#gridRectMask".concat(A.globals.cuid,")")}),"none"!==A.config.states.normal.filter.type)C.getDefaultFilter(E,a);else if(A.config.chart.dropShadow.enabled&&k&&(!A.config.chart.dropShadow.enabledOnSeries||A.config.chart.dropShadow.enabledOnSeries&&-1!==A.config.chart.dropShadow.enabledOnSeries.indexOf(a))){var z=A.config.chart.dropShadow;C.dropShadow(E,z,a)}b&&(E.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,E)),E.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,E)),E.node.addEventListener("mousedown",this.pathMouseDown.bind(this,E))),E.attr({pathTo:n,pathFrom:s});var O={el:E,j:i,realIndex:a,pathFrom:s,pathTo:n,fill:h,strokeWidth:l,delay:d};return!L||A.globals.resized||A.globals.dataChanged?!A.globals.resized&&A.globals.dataChanged||S.showDelayedElements():S.animatePathsGradually(r(r({},O),{},{speed:u})),A.globals.dataChanged&&P&&I&&S.animatePathsGradually(r(r({},O),{},{speed:g})),E}},{key:"drawPattern",value:function(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(e,i,(function(r){"horizontalLines"===t?r.line(0,0,i,0).stroke({color:a,width:s+1}):"verticalLines"===t?r.line(0,0,0,e).stroke({color:a,width:s+1}):"slantedLines"===t?r.line(0,0,e,i).stroke({color:a,width:s}):"squares"===t?r.rect(e,i).fill("none").stroke({color:a,width:s}):"circles"===t&&r.circle(e).fill("none").stroke({color:a,width:s})}))}},{key:"drawGradient",value:function(t,e,i,a,s){var r,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,h=this.w;e.length<9&&0===e.indexOf("#")&&(e=v.hexToRgba(e,a)),i.length<9&&0===i.indexOf("#")&&(i=v.hexToRgba(i,s));var d=0,u=1,g=1,p=null;null!==o&&(d=void 0!==o[0]?o[0]/100:0,u=void 0!==o[1]?o[1]/100:1,g=void 0!==o[2]?o[2]/100:1,p=void 0!==o[3]?o[3]/100:null);var f=!("donut"!==h.config.chart.type&&"pie"!==h.config.chart.type&&"polarArea"!==h.config.chart.type&&"bubble"!==h.config.chart.type);if(r=null===l||0===l.length?h.globals.dom.Paper.gradient(f?"radial":"linear",(function(t){t.at(d,e,a),t.at(u,i,s),t.at(g,i,s),null!==p&&t.at(p,e,a)})):h.globals.dom.Paper.gradient(f?"radial":"linear",(function(t){(Array.isArray(l[c])?l[c]:l).forEach((function(e){t.at(e.offset/100,e.color,e.opacity)}))})),f){var x=h.globals.gridWidth/2,m=h.globals.gridHeight/2;"bubble"!==h.config.chart.type?r.attr({gradientUnits:"userSpaceOnUse",cx:x,cy:m,r:n}):r.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===t?r.from(0,0).to(0,1):"diagonal"===t?r.from(0,0).to(1,1):"horizontal"===t?r.from(0,1).to(1,1):"diagonal2"===t&&r.from(1,0).to(0,1);return r}},{key:"getTextBasedOnMaxWidth",value:function(t){var e=t.text,i=t.maxWidth,a=t.fontSize,s=t.fontFamily,r=this.getTextRects(e,a,s),n=r.width/e.length,o=Math.floor(i/n);return i<r.width?e.slice(0,o-3)+"...":e}},{key:"drawText",value:function(t){var e=this,i=t.x,a=t.y,s=t.text,n=t.textAnchor,o=t.fontSize,l=t.fontFamily,c=t.fontWeight,h=t.foreColor,d=t.opacity,u=t.maxWidth,g=t.cssClass,p=void 0===g?"":g,f=t.isPlainText,x=void 0===f||f,m=this.w;void 0===s&&(s="");var b=s;n||(n="start"),h&&h.length||(h=m.config.chart.foreColor),l=l||m.config.chart.fontFamily,c=c||"regular";var v,y={maxWidth:u,fontSize:o=o||"11px",fontFamily:l};return Array.isArray(s)?v=m.globals.dom.Paper.text((function(t){for(var i=0;i<s.length;i++)b=s[i],u&&(b=e.getTextBasedOnMaxWidth(r({text:s[i]},y))),0===i?t.tspan(b):t.tspan(b).newLine()})):(u&&(b=this.getTextBasedOnMaxWidth(r({text:s},y))),v=x?m.globals.dom.Paper.plain(s):m.globals.dom.Paper.text((function(t){return t.tspan(b)}))),v.attr({x:i,y:a,"text-anchor":n,"dominant-baseline":"auto","font-size":o,"font-family":l,"font-weight":c,fill:h,class:"apexcharts-text "+p}),v.node.style.fontFamily=l,v.node.style.opacity=d,v}},{key:"drawMarker",value:function(t,e,i){t=t||0;var a=i.pSize||0,s=null;if("square"===i.shape||"rect"===i.shape){var r=void 0===i.pRadius?a/2:i.pRadius;null!==e&&a||(a=0,r=0);var n=1.2*a+r,o=this.drawRect(n,n,n,n,r);o.attr({x:t-n/2,y:e-n/2,cx:t,cy:e,class:i.class?i.class:"",fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,stroke:i.pointStrokeColor,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}),s=o}else"circle"!==i.shape&&i.shape||(v.isNumber(e)||(a=0,e=0),s=this.drawCircle(a,{cx:t,cy:e,class:i.class?i.class:"",stroke:i.pointStrokeColor,fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}));return s}},{key:"pathMouseEnter",value:function(t,e){var i=this.w,a=new w(this.ctx),s=parseInt(t.node.getAttribute("index"),10),r=parseInt(t.node.getAttribute("j"),10);if("function"==typeof i.config.chart.events.dataPointMouseEnter&&i.config.chart.events.dataPointMouseEnter(e,this.ctx,{seriesIndex:s,dataPointIndex:r,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[e,this.ctx,{seriesIndex:s,dataPointIndex:r,w:i}]),("none"===i.config.states.active.filter.type||"true"!==t.node.getAttribute("selected"))&&"none"!==i.config.states.hover.filter.type&&!i.globals.isTouchDevice){var n=i.config.states.hover.filter;a.applyFilter(t,s,n.type,n.value)}}},{key:"pathMouseLeave",value:function(t,e){var i=this.w,a=new w(this.ctx),s=parseInt(t.node.getAttribute("index"),10),r=parseInt(t.node.getAttribute("j"),10);"function"==typeof i.config.chart.events.dataPointMouseLeave&&i.config.chart.events.dataPointMouseLeave(e,this.ctx,{seriesIndex:s,dataPointIndex:r,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[e,this.ctx,{seriesIndex:s,dataPointIndex:r,w:i}]),"none"!==i.config.states.active.filter.type&&"true"===t.node.getAttribute("selected")||"none"!==i.config.states.hover.filter.type&&a.getDefaultFilter(t,s)}},{key:"pathMouseDown",value:function(t,e){var i=this.w,a=new w(this.ctx),s=parseInt(t.node.getAttribute("index"),10),r=parseInt(t.node.getAttribute("j"),10),n="false";if("true"===t.node.getAttribute("selected")){if(t.node.setAttribute("selected","false"),i.globals.selectedDataPoints[s].indexOf(r)>-1){var o=i.globals.selectedDataPoints[s].indexOf(r);i.globals.selectedDataPoints[s].splice(o,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var l=i.globals.dom.Paper.select(".apexcharts-series path").members,c=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,h=function(t){Array.prototype.forEach.call(t,(function(t){t.node.setAttribute("selected","false"),a.getDefaultFilter(t,s)}))};h(l),h(c)}t.node.setAttribute("selected","true"),n="true",void 0===i.globals.selectedDataPoints[s]&&(i.globals.selectedDataPoints[s]=[]),i.globals.selectedDataPoints[s].push(r)}if("true"===n){var d=i.config.states.active.filter;if("none"!==d)a.applyFilter(t,s,d.type,d.value);else if("none"!==i.config.states.hover.filter&&!i.globals.isTouchDevice){var u=i.config.states.hover.filter;a.applyFilter(t,s,u.type,u.value)}}else"none"!==i.config.states.active.filter.type&&("none"===i.config.states.hover.filter.type||i.globals.isTouchDevice?a.getDefaultFilter(t,s):(u=i.config.states.hover.filter,a.applyFilter(t,s,u.type,u.value)));"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:r,w:i}),e&&this.ctx.events.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:r,w:i}])}},{key:"rotateAroundCenter",value:function(t){var e={};return t&&"function"==typeof t.getBBox&&(e=t.getBBox()),{x:e.x+e.width/2,y:e.y+e.height/2}}},{key:"getTextRects",value:function(t,e,i,a){var s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=this.w,n=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:i,foreColor:"#fff",opacity:0});a&&n.attr("transform",a),r.globals.dom.Paper.add(n);var o=n.bbox();return s||(o=n.node.getBoundingClientRect()),n.remove(),{width:o.width,height:o.height}}},{key:"placeTextWithEllipsis",value:function(t,e,i){if("function"==typeof t.getComputedTextLength&&(t.textContent=e,e.length>0&&t.getComputedTextLength()>=i/1.1)){for(var a=e.length-3;a>0;a-=3)if(t.getSubStringLength(0,a)<=i/1.1)return void(t.textContent=e.substring(0,a)+"...");t.textContent="."}}}],[{key:"setAttrs",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}}]),t}(),A=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"getStackedSeriesTotals",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=this.w,i=[];if(0===e.globals.series.length)return i;for(var a=0;a<e.globals.series[e.globals.maxValsInArrayIndex].length;a++){for(var s=0,r=0;r<e.globals.series.length;r++)void 0!==e.globals.series[r][a]&&-1===t.indexOf(r)&&(s+=e.globals.series[r][a]);i.push(s)}return i}},{key:"getSeriesTotalByIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===t?this.w.config.series.reduce((function(t,e){return t+e}),0):this.w.globals.series[t].reduce((function(t,e){return t+e}),0)}},{key:"isSeriesNull",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===t?this.w.config.series.filter((function(t){return null!==t})):this.w.config.series[t].data.filter((function(t){return null!==t}))).length}},{key:"seriesHaveSameValues",value:function(t){return this.w.globals.series[t].every((function(t,e,i){return t===i[0]}))}},{key:"getCategoryLabels",value:function(t){var e=this.w,i=t.slice();return e.config.xaxis.convertedCatToNumeric&&(i=t.map((function(t,i){return e.config.xaxis.labels.formatter(t-e.globals.minX+1)}))),i}},{key:"getLargestSeries",value:function(){var t=this.w;t.globals.maxValsInArrayIndex=t.globals.series.map((function(t){return t.length})).indexOf(Math.max.apply(Math,t.globals.series.map((function(t){return t.length}))))}},{key:"getLargestMarkerSize",value:function(){var t=this.w,e=0;return t.globals.markers.size.forEach((function(t){e=Math.max(e,t)})),t.config.markers.discrete&&t.config.markers.discrete.length&&t.config.markers.discrete.forEach((function(t){e=Math.max(e,t.size)})),e>0&&(e+=t.config.markers.hover.sizeOffset+1),t.globals.markers.largestSize=e,e}},{key:"getSeriesTotals",value:function(){var t=this.w;t.globals.seriesTotals=t.globals.series.map((function(t,e){var i=0;if(Array.isArray(t))for(var a=0;a<t.length;a++)i+=t[a];else i+=t;return i}))}},{key:"getSeriesTotalsXRange",value:function(t,e){var i=this.w;return i.globals.series.map((function(a,s){for(var r=0,n=0;n<a.length;n++)i.globals.seriesX[s][n]>t&&i.globals.seriesX[s][n]<e&&(r+=a[n]);return r}))}},{key:"getPercentSeries",value:function(){var t=this.w;t.globals.seriesPercent=t.globals.series.map((function(e,i){var a=[];if(Array.isArray(e))for(var s=0;s<e.length;s++){var r=t.globals.stackedSeriesTotals[s],n=0;r&&(n=100*e[s]/r),a.push(n)}else{var o=100*e/t.globals.seriesTotals.reduce((function(t,e){return t+e}),0);a.push(o)}return a}))}},{key:"getCalculatedRatios",value:function(){var t,e,i,a,s=this.w.globals,r=[],n=0,o=[],l=.1,c=0;if(s.yRange=[],s.isMultipleYAxis)for(var h=0;h<s.minYArr.length;h++)s.yRange.push(Math.abs(s.minYArr[h]-s.maxYArr[h])),o.push(0);else s.yRange.push(Math.abs(s.minY-s.maxY));s.xRange=Math.abs(s.maxX-s.minX),s.zRange=Math.abs(s.maxZ-s.minZ);for(var d=0;d<s.yRange.length;d++)r.push(s.yRange[d]/s.gridHeight);if(e=s.xRange/s.gridWidth,i=Math.abs(s.initialMaxX-s.initialMinX)/s.gridWidth,t=s.yRange/s.gridWidth,a=s.xRange/s.gridHeight,(n=s.zRange/s.gridHeight*16)||(n=1),s.minY!==Number.MIN_VALUE&&0!==Math.abs(s.minY)&&(s.hasNegs=!0),s.isMultipleYAxis){o=[];for(var u=0;u<r.length;u++)o.push(-s.minYArr[u]/r[u])}else o.push(-s.minY/r[0]),s.minY!==Number.MIN_VALUE&&0!==Math.abs(s.minY)&&(l=-s.minY/t,c=s.minX/e);return{yRatio:r,invertedYRatio:t,zRatio:n,xRatio:e,initialXRatio:i,invertedXRatio:a,baseLineInvertedY:l,baseLineY:o,baseLineX:c}}},{key:"getLogSeries",value:function(t){var e=this,i=this.w;return i.globals.seriesLog=t.map((function(t,a){return i.config.yaxis[a]&&i.config.yaxis[a].logarithmic?t.map((function(t){return null===t?null:e.getLogVal(i.config.yaxis[a].logBase,t,a)})):t})),i.globals.invalidLogScale?t:i.globals.seriesLog}},{key:"getBaseLog",value:function(t,e){return Math.log(e)/Math.log(t)}},{key:"getLogVal",value:function(t,e,i){if(0===e)return 0;var a=this.w,s=0===a.globals.minYArr[i]?-1:this.getBaseLog(t,a.globals.minYArr[i]),r=(0===a.globals.maxYArr[i]?0:this.getBaseLog(t,a.globals.maxYArr[i]))-s;return e<1?e/r:(this.getBaseLog(t,e)-s)/r}},{key:"getLogYRatios",value:function(t){var e=this,i=this.w,a=this.w.globals;return a.yLogRatio=t.slice(),a.logYRange=a.yRange.map((function(t,s){if(i.config.yaxis[s]&&e.w.config.yaxis[s].logarithmic){var r,n=-Number.MAX_VALUE,o=Number.MIN_VALUE;return a.seriesLog.forEach((function(t,e){t.forEach((function(t){i.config.yaxis[e]&&i.config.yaxis[e].logarithmic&&(n=Math.max(t,n),o=Math.min(t,o))}))})),r=Math.pow(a.yRange[s],Math.abs(o-n)/a.yRange[s]),a.yLogRatio[s]=r/a.gridHeight,r}})),a.invalidLogScale?t.slice():a.yLogRatio}}],[{key:"checkComboSeries",value:function(t){var e=!1,i=0,a=0;return t.length&&void 0!==t[0].type&&t.forEach((function(t){"bar"!==t.type&&"column"!==t.type&&"candlestick"!==t.type&&"boxPlot"!==t.type||i++,void 0!==t.type&&a++})),a>0&&(e=!0),{comboBarCount:i,comboCharts:e}}},{key:"extendArrayProps",value:function(t,e,i){return e.yaxis&&(e=t.extendYAxis(e,i)),e.annotations&&(e.annotations.yaxis&&(e=t.extendYAxisAnnotations(e)),e.annotations.xaxis&&(e=t.extendXAxisAnnotations(e)),e.annotations.points&&(e=t.extendPointAnnotations(e))),e}}]),t}(),C=function(){function t(e){o(this,t),this.w=e.w,this.annoCtx=e}return c(t,[{key:"setOrientations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;if("vertical"===t.label.orientation){var a=null!==e?e:0,s=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(a,"']"));if(null!==s){var r=s.getBoundingClientRect();s.setAttribute("x",parseFloat(s.getAttribute("x"))-r.height+4),"top"===t.label.position?s.setAttribute("y",parseFloat(s.getAttribute("y"))+r.width):s.setAttribute("y",parseFloat(s.getAttribute("y"))-r.width);var n=this.annoCtx.graphics.rotateAroundCenter(s),o=n.x,l=n.y;s.setAttribute("transform","rotate(-90 ".concat(o," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(t,e){var i=this.w;if(!t||void 0===e.label.text||void 0!==e.label.text&&!String(e.label.text).trim())return null;var a=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),s=t.getBoundingClientRect(),r=e.label.style.padding.left,n=e.label.style.padding.right,o=e.label.style.padding.top,l=e.label.style.padding.bottom;"vertical"===e.label.orientation&&(o=e.label.style.padding.left,l=e.label.style.padding.right,r=e.label.style.padding.top,n=e.label.style.padding.bottom);var c=s.left-a.left-r,h=s.top-a.top-o,d=this.annoCtx.graphics.drawRect(c-i.globals.barPadForNumericAxis,h,s.width+r+n,s.height+o+l,e.label.borderRadius,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0);return e.id&&d.node.classList.add(e.id),d}},{key:"annotationsBackground",value:function(){var t=this,e=this.w,i=function(i,a,s){var r=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations .apexcharts-").concat(s,"-annotation-label[rel='").concat(a,"']"));if(r){var n=r.parentNode,o=t.addBackgroundToAnno(r,i);o&&(n.insertBefore(o.node,r),i.label.mouseEnter&&o.node.addEventListener("mouseenter",i.label.mouseEnter.bind(t,i)),i.label.mouseLeave&&o.node.addEventListener("mouseleave",i.label.mouseLeave.bind(t,i)),i.label.click&&o.node.addEventListener("click",i.label.click.bind(t,i)))}};e.config.annotations.xaxis.map((function(t,e){i(t,e,"xaxis")})),e.config.annotations.yaxis.map((function(t,e){i(t,e,"yaxis")})),e.config.annotations.points.map((function(t,e){i(t,e,"point")}))}},{key:"getY1Y2",value:function(t,e){var i,a="y1"===t?e.y:e.y2,s=this.w;if(this.annoCtx.invertAxis){var r=s.globals.labels.indexOf(a);s.config.xaxis.convertedCatToNumeric&&(r=s.globals.categoryLabels.indexOf(a));var n=s.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(r+1)+")");n&&(i=parseFloat(n.getAttribute("y")))}else{var o;o=s.config.yaxis[e.yAxisIndex].logarithmic?(a=new A(this.annoCtx.ctx).getLogVal(a,e.yAxisIndex))/s.globals.yLogRatio[e.yAxisIndex]:(a-s.globals.minYArr[e.yAxisIndex])/(s.globals.yRange[e.yAxisIndex]/s.globals.gridHeight),i=s.globals.gridHeight-o,!e.marker||void 0!==e.y&&null!==e.y||(i=0),s.config.yaxis[e.yAxisIndex]&&s.config.yaxis[e.yAxisIndex].reversed&&(i=o)}return"string"==typeof a&&a.indexOf("px")>-1&&(i=parseFloat(a)),i}},{key:"getX1X2",value:function(t,e){var i=this.w,a=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,s=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,r=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,n=(e.x-a)/(r/i.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(n=(s-e.x)/(r/i.globals.gridWidth)),"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(n=this.getStringX(e.x));var o=(e.x2-a)/(r/i.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(o=(s-e.x2)/(r/i.globals.gridWidth)),"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(o=this.getStringX(e.x2)),void 0!==e.x&&null!==e.x||!e.marker||(n=i.globals.gridWidth),"x1"===t&&"string"==typeof e.x&&e.x.indexOf("px")>-1&&(n=parseFloat(e.x)),"x2"===t&&"string"==typeof e.x2&&e.x2.indexOf("px")>-1&&(o=parseFloat(e.x2)),"x1"===t?n:o}},{key:"getStringX",value:function(t){var e=this.w,i=t;e.config.xaxis.convertedCatToNumeric&&e.globals.categoryLabels.length&&(t=e.globals.categoryLabels.indexOf(t)+1);var a=e.globals.labels.indexOf(t),s=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(a+1)+")");return s&&(i=parseFloat(s.getAttribute("x"))),i}}]),t}(),S=function(){function t(e){o(this,t),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new C(this.annoCtx)}return c(t,[{key:"addXaxisAnnotation",value:function(t,e,i){var a,s=this.w,r=this.helpers.getX1X2("x1",t),n=t.label.text,o=t.strokeDashArray;if(v.isNumber(r)){if(null===t.x2||void 0===t.x2){var l=this.annoCtx.graphics.drawLine(r+t.offsetX,0+t.offsetY,r+t.offsetX,s.globals.gridHeight+t.offsetY,t.borderColor,o,t.borderWidth);e.appendChild(l.node),t.id&&l.node.classList.add(t.id)}else{if((a=this.helpers.getX1X2("x2",t))<r){var c=r;r=a,a=c}var h=this.annoCtx.graphics.drawRect(r+t.offsetX,0+t.offsetY,a-r,s.globals.gridHeight+t.offsetY,0,t.fillColor,t.opacity,1,t.borderColor,o);h.node.classList.add("apexcharts-annotation-rect"),h.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),e.appendChild(h.node),t.id&&h.node.classList.add(t.id)}var d=this.annoCtx.graphics.getTextRects(n,parseFloat(t.label.style.fontSize)),u="top"===t.label.position?4:"center"===t.label.position?s.globals.gridHeight/2+("vertical"===t.label.orientation?d.width/2:0):s.globals.gridHeight,g=this.annoCtx.graphics.drawText({x:r+t.label.offsetX,y:u+t.label.offsetY-("vertical"===t.label.orientation?"top"===t.label.position?d.width/2-12:-d.width/2:0),text:n,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});g.attr({rel:i}),e.appendChild(g.node),this.annoCtx.helpers.setOrientations(t,i)}}},{key:"drawXAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return e.config.annotations.xaxis.map((function(e,a){t.addXaxisAnnotation(e,i.node,a)})),i}}]),t}(),L=function(){function t(e){o(this,t),this.w=e.w,this.annoCtx=e,this.helpers=new C(this.annoCtx)}return c(t,[{key:"addYaxisAnnotation",value:function(t,e,i){var a,s=this.w,r=t.strokeDashArray,n=this.helpers.getY1Y2("y1",t),o=t.label.text;if(null===t.y2||void 0===t.y2){var l=this.annoCtx.graphics.drawLine(0+t.offsetX,n+t.offsetY,this._getYAxisAnnotationWidth(t),n+t.offsetY,t.borderColor,r,t.borderWidth);e.appendChild(l.node),t.id&&l.node.classList.add(t.id)}else{if((a=this.helpers.getY1Y2("y2",t))>n){var c=n;n=a,a=c}var h=this.annoCtx.graphics.drawRect(0+t.offsetX,a+t.offsetY,this._getYAxisAnnotationWidth(t),n-a,0,t.fillColor,t.opacity,1,t.borderColor,r);h.node.classList.add("apexcharts-annotation-rect"),h.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),e.appendChild(h.node),t.id&&h.node.classList.add(t.id)}var d="right"===t.label.position?s.globals.gridWidth:"center"===t.label.position?s.globals.gridWidth/2:0,u=this.annoCtx.graphics.drawText({x:d+t.label.offsetX,y:(null!=a?a:n)+t.label.offsetY-3,text:o,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});u.attr({rel:i}),e.appendChild(u.node)}},{key:"_getYAxisAnnotationWidth",value:function(t){var e=this.w;return e.globals.gridWidth,(t.width.indexOf("%")>-1?e.globals.gridWidth*parseInt(t.width,10)/100:parseInt(t.width,10))+t.offsetX}},{key:"drawYAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.map((function(e,a){t.addYaxisAnnotation(e,i.node,a)})),i}}]),t}(),P=function(){function t(e){o(this,t),this.w=e.w,this.annoCtx=e,this.helpers=new C(this.annoCtx)}return c(t,[{key:"addPointAnnotation",value:function(t,e,i){this.w;var a=this.helpers.getX1X2("x1",t),s=this.helpers.getY1Y2("y1",t);if(v.isNumber(a)){var r={pSize:t.marker.size,pointStrokeWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,pRadius:t.marker.radius,class:"apexcharts-point-annotation-marker ".concat(t.marker.cssClass," ").concat(t.id?t.id:"")},n=this.annoCtx.graphics.drawMarker(a+t.marker.offsetX,s+t.marker.offsetY,r);e.appendChild(n.node);var o=t.label.text?t.label.text:"",l=this.annoCtx.graphics.drawText({x:a+t.label.offsetX,y:s+t.label.offsetY-t.marker.size-parseFloat(t.label.style.fontSize)/1.6,text:o,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});if(l.attr({rel:i}),e.appendChild(l.node),t.customSVG.SVG){var c=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass});c.attr({transform:"translate(".concat(a+t.customSVG.offsetX,", ").concat(s+t.customSVG.offsetY,")")}),c.node.innerHTML=t.customSVG.SVG,e.appendChild(c.node)}if(t.image.path){var h=t.image.width?t.image.width:20,d=t.image.height?t.image.height:20;n=this.annoCtx.addImage({x:a+t.image.offsetX-h/2,y:s+t.image.offsetY-d/2,width:h,height:d,path:t.image.path,appendTo:".apexcharts-point-annotations"})}t.mouseEnter&&n.node.addEventListener("mouseenter",t.mouseEnter.bind(this,t)),t.mouseLeave&&n.node.addEventListener("mouseleave",t.mouseLeave.bind(this,t)),t.click&&n.node.addEventListener("click",t.click.bind(this,t))}}},{key:"drawPointAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map((function(e,a){t.addPointAnnotation(e,i.node,a)})),i}}]),t}(),I={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},T=function(){function t(){o(this,t),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return c(t,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[I],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(t){return new Date(t).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(t){return t}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(t){return t+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce((function(t,e){return t+e}),0)/t.globals.series.length+"%"}}}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(t){return t}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(t){return t}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce((function(t,e){return t+e}),0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(t){return null!==t?t:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(t){return t?t+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),t}(),M=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w,this.graphics=new k(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new C(this),this.xAxisAnnotations=new S(this),this.yAxisAnnotations=new L(this),this.pointsAnnotations=new P(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return c(t,[{key:"drawAxesAnnotations",value:function(){var t=this.w;if(t.globals.axisCharts){for(var e=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),a=this.pointsAnnotations.drawPointAnnotations(),s=t.config.chart.animations.enabled,r=[e,i,a],n=[i.node,e.node,a.node],o=0;o<3;o++)t.globals.dom.elGraphical.add(r[o]),!s||t.globals.resized||t.globals.dataChanged||"scatter"!==t.config.chart.type&&"bubble"!==t.config.chart.type&&t.globals.dataPoints>1&&n[o].classList.add("apexcharts-element-hidden"),t.globals.delayedElements.push({el:n[o],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var t=this;this.w.config.annotations.images.map((function(e,i){t.addImage(e,i)}))}},{key:"drawTextAnnos",value:function(){var t=this;this.w.config.annotations.texts.map((function(e,i){t.addText(e,i)}))}},{key:"addXaxisAnnotation",value:function(t,e,i){this.xAxisAnnotations.addXaxisAnnotation(t,e,i)}},{key:"addYaxisAnnotation",value:function(t,e,i){this.yAxisAnnotations.addYaxisAnnotation(t,e,i)}},{key:"addPointAnnotation",value:function(t,e,i){this.pointsAnnotations.addPointAnnotation(t,e,i)}},{key:"addText",value:function(t,e){var i=t.x,a=t.y,s=t.text,r=t.textAnchor,n=t.foreColor,o=t.fontSize,l=t.fontFamily,c=t.fontWeight,h=t.cssClass,d=t.backgroundColor,u=t.borderWidth,g=t.strokeDashArray,p=t.borderRadius,f=t.borderColor,x=t.appendTo,m=void 0===x?".apexcharts-annotations":x,b=t.paddingLeft,v=void 0===b?4:b,y=t.paddingRight,w=void 0===y?4:y,k=t.paddingBottom,A=void 0===k?2:k,C=t.paddingTop,S=void 0===C?2:C,L=this.w,P=this.graphics.drawText({x:i,y:a,text:s,textAnchor:r||"start",fontSize:o||"12px",fontWeight:c||"regular",fontFamily:l||L.config.chart.fontFamily,foreColor:n||L.config.chart.foreColor,cssClass:h}),I=L.globals.dom.baseEl.querySelector(m);I&&I.appendChild(P.node);var T=P.bbox();if(s){var M=this.graphics.drawRect(T.x-v,T.y-S,T.width+v+w,T.height+A+S,p,d||"transparent",1,u,f,g);I.insertBefore(M.node,P.node)}}},{key:"addImage",value:function(t,e){var i=this.w,a=t.path,s=t.x,r=void 0===s?0:s,n=t.y,o=void 0===n?0:n,l=t.width,c=void 0===l?20:l,h=t.height,d=void 0===h?20:h,u=t.appendTo,g=void 0===u?".apexcharts-annotations":u,p=i.globals.dom.Paper.image(a);p.size(c,d).move(r,o);var f=i.globals.dom.baseEl.querySelector(g);return f&&f.appendChild(p.node),p}},{key:"addXaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(t,e,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(t){var e=t.params,i=t.pushToMemory,a=t.context,s=t.type,r=t.contextMethod,n=a,o=n.w,l=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations")),c=l.childNodes.length+1,h=new T,d=Object.assign({},"xaxis"===s?h.xAxisAnnotation:"yaxis"===s?h.yAxisAnnotation:h.pointAnnotation),u=v.extend(d,e);switch(s){case"xaxis":this.addXaxisAnnotation(u,l,c);break;case"yaxis":this.addYaxisAnnotation(u,l,c);break;case"point":this.addPointAnnotation(u,l,c)}var g=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations .apexcharts-").concat(s,"-annotation-label[rel='").concat(c,"']")),p=this.helpers.addBackgroundToAnno(g,u);return p&&l.insertBefore(p.node,g),i&&o.globals.memory.methodsToExec.push({context:n,id:u.id?u.id:v.randomId(),method:r,label:"addAnnotation",params:e}),a}},{key:"clearAnnotations",value:function(t){var e=t.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");e.globals.memory.methodsToExec.map((function(t,i){"addText"!==t.label&&"addAnnotation"!==t.label||e.globals.memory.methodsToExec.splice(i,1)})),i=v.listToArray(i),Array.prototype.forEach.call(i,(function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}))}},{key:"removeAnnotation",value:function(t,e){var i=t.w,a=i.globals.dom.baseEl.querySelectorAll(".".concat(e));a&&(i.globals.memory.methodsToExec.map((function(t,a){t.id===e&&i.globals.memory.methodsToExec.splice(a,1)})),Array.prototype.forEach.call(a,(function(t){t.parentElement.removeChild(t)})))}}]),t}(),E=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return c(t,[{key:"isValidDate",value:function(t){return!isNaN(this.parseDate(t))}},{key:"getTimeStamp",value:function(t){return Date.parse(t)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toISOString().substr(0,25)).getTime():new Date(t).getTime():t}},{key:"getDate",value:function(t){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toUTCString()):new Date(t)}},{key:"parseDate",value:function(t){var e=Date.parse(t);if(!isNaN(e))return this.getTimeStamp(t);var i=Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(t){return Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(t,e){var i=this.w.globals.locale,a=this.w.config.xaxis.labels.datetimeUTC,s=["\0"].concat(x(i.months)),r=[""].concat(x(i.shortMonths)),n=[""].concat(x(i.days)),o=[""].concat(x(i.shortDays));function l(t,e){var i=t+"";for(e=e||2;i.length<e;)i="0"+i;return i}var c=a?t.getUTCFullYear():t.getFullYear();e=(e=(e=e.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);var h=(a?t.getUTCMonth():t.getMonth())+1;e=(e=(e=(e=e.replace(/(^|[^\\])MMMM+/g,"$1"+s[0])).replace(/(^|[^\\])MMM/g,"$1"+r[0])).replace(/(^|[^\\])MM/g,"$1"+l(h))).replace(/(^|[^\\])M/g,"$1"+h);var d=a?t.getUTCDate():t.getDate();e=(e=(e=(e=e.replace(/(^|[^\\])dddd+/g,"$1"+n[0])).replace(/(^|[^\\])ddd/g,"$1"+o[0])).replace(/(^|[^\\])dd/g,"$1"+l(d))).replace(/(^|[^\\])d/g,"$1"+d);var u=a?t.getUTCHours():t.getHours(),g=u>12?u-12:0===u?12:u;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+l(u))).replace(/(^|[^\\])H/g,"$1"+u)).replace(/(^|[^\\])hh+/g,"$1"+l(g))).replace(/(^|[^\\])h/g,"$1"+g);var p=a?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+l(p))).replace(/(^|[^\\])m/g,"$1"+p);var f=a?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+l(f))).replace(/(^|[^\\])s/g,"$1"+f);var m=a?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+l(m,3)),m=Math.round(m/10),e=e.replace(/(^|[^\\])ff/g,"$1"+l(m)),m=Math.round(m/10);var b=u<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+m)).replace(/(^|[^\\])TT+/g,"$1"+b)).replace(/(^|[^\\])T/g,"$1"+b.charAt(0));var v=b.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+v)).replace(/(^|[^\\])t/g,"$1"+v.charAt(0));var y=-t.getTimezoneOffset(),w=a||!y?"Z":y>0?"+":"-";if(!a){var k=(y=Math.abs(y))%60;w+=l(Math.floor(y/60))+":"+l(k)}e=e.replace(/(^|[^\\])K/g,"$1"+w);var A=(a?t.getUTCDay():t.getDay())+1;return(e=(e=(e=(e=e.replace(new RegExp(n[0],"g"),n[A])).replace(new RegExp(o[0],"g"),o[A])).replace(new RegExp(s[0],"g"),s[h])).replace(new RegExp(r[0],"g"),r[h])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e,i){var a=this.w;void 0!==a.config.xaxis.min&&(t=a.config.xaxis.min),void 0!==a.config.xaxis.max&&(e=a.config.xaxis.max);var s=this.getDate(t),r=this.getDate(e),n=this.formatDate(s,"yyyy MM dd HH mm ss fff").split(" "),o=this.formatDate(r,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(n[6],10),maxMillisecond:parseInt(o[6],10),minSecond:parseInt(n[5],10),maxSecond:parseInt(o[5],10),minMinute:parseInt(n[4],10),maxMinute:parseInt(o[4],10),minHour:parseInt(n[3],10),maxHour:parseInt(o[3],10),minDate:parseInt(n[2],10),maxDate:parseInt(o[2],10),minMonth:parseInt(n[1],10)-1,maxMonth:parseInt(o[1],10)-1,minYear:parseInt(n[0],10),maxYear:parseInt(o[0],10)}}},{key:"isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"calculcateLastDaysOfMonth",value:function(t,e,i){return this.determineDaysOfMonths(t,e)-i}},{key:"determineDaysOfYear",value:function(t){var e=365;return this.isLeapYear(t)&&(e=366),e}},{key:"determineRemainingDaysOfYear",value:function(t,e,i){var a=this.daysCntOfYear[e]+i;return e>1&&this.isLeapYear()&&a++,a}},{key:"determineDaysOfMonths",value:function(t,e){var i=30;switch(t=v.monthMod(t),!0){case this.months30.indexOf(t)>-1:2===t&&(i=this.isLeapYear(e)?29:28);break;case this.months31.indexOf(t)>-1:default:i=31}return i}}]),t}(),z=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return c(t,[{key:"xLabelFormat",value:function(t,e,i,a){var s=this.w;if("datetime"===s.config.xaxis.type&&void 0===s.config.xaxis.labels.formatter&&void 0===s.config.tooltip.x.formatter){var r=new E(this.ctx);return r.formatDate(r.getDate(e),s.config.tooltip.x.format)}return t(e,i,a)}},{key:"defaultGeneralFormatter",value:function(t){return Array.isArray(t)?t.map((function(t){return t})):t}},{key:"defaultYFormatter",value:function(t,e,i){var a=this.w;return v.isNumber(t)&&(t=0!==a.globals.yValueDecimal?t.toFixed(void 0!==e.decimalsInFloat?e.decimalsInFloat:a.globals.yValueDecimal):a.globals.maxYArr[i]-a.globals.minYArr[i]<5?t.toFixed(1):t.toFixed(0)),t}},{key:"setLabelFormatters",value:function(){var t=this,e=this.w;return e.globals.xaxisTooltipFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttKeyFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttZFormatter=function(t){return t},e.globals.legendFormatter=function(e){return t.defaultGeneralFormatter(e)},void 0!==e.config.xaxis.labels.formatter?e.globals.xLabelFormatter=e.config.xaxis.labels.formatter:e.globals.xLabelFormatter=function(t){if(v.isNumber(t)){if(!e.config.xaxis.convertedCatToNumeric&&"numeric"===e.config.xaxis.type){if(v.isNumber(e.config.xaxis.decimalsInFloat))return t.toFixed(e.config.xaxis.decimalsInFloat);var i=e.globals.maxX-e.globals.minX;return i>0&&i<100?t.toFixed(1):t.toFixed(0)}return e.globals.isBarHorizontal&&e.globals.maxY-e.globals.minYArr<4?t.toFixed(1):t.toFixed(0)}return t},"function"==typeof e.config.tooltip.x.formatter?e.globals.ttKeyFormatter=e.config.tooltip.x.formatter:e.globals.ttKeyFormatter=e.globals.xLabelFormatter,"function"==typeof e.config.xaxis.tooltip.formatter&&(e.globals.xaxisTooltipFormatter=e.config.xaxis.tooltip.formatter),(Array.isArray(e.config.tooltip.y)||void 0!==e.config.tooltip.y.formatter)&&(e.globals.ttVal=e.config.tooltip.y),void 0!==e.config.tooltip.z.formatter&&(e.globals.ttZFormatter=e.config.tooltip.z.formatter),void 0!==e.config.legend.formatter&&(e.globals.legendFormatter=e.config.legend.formatter),e.config.yaxis.forEach((function(i,a){void 0!==i.labels.formatter?e.globals.yLabelFormatters[a]=i.labels.formatter:e.globals.yLabelFormatters[a]=function(s){return e.globals.xyCharts?Array.isArray(s)?s.map((function(e){return t.defaultYFormatter(e,i,a)})):t.defaultYFormatter(s,i,a):s}})),e.globals}},{key:"heatmapLabelFormatters",value:function(){var t=this.w;if("heatmap"===t.config.chart.type){t.globals.yAxisScale[0].result=t.globals.seriesNames.slice();var e=t.globals.seriesNames.reduce((function(t,e){return t.length>e.length?t:e}),0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e}}}]),t}(),O=function(t){var e,i=t.isTimeline,a=t.ctx,s=t.seriesIndex,r=t.dataPointIndex,n=t.y1,o=t.y2,l=t.w,c=l.globals.seriesRangeStart[s][r],h=l.globals.seriesRangeEnd[s][r],d=l.globals.labels[r],u=l.config.series[s].name?l.config.series[s].name:"",g=l.globals.ttKeyFormatter,p=l.config.tooltip.y.title.formatter,f={w:l,seriesIndex:s,dataPointIndex:r,start:c,end:h};"function"==typeof p&&(u=p(u,f)),null!==(e=l.config.series[s].data[r])&&void 0!==e&&e.x&&(d=l.config.series[s].data[r].x),i||"datetime"===l.config.xaxis.type&&(d=new z(a).xLabelFormat(l.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new E(a).formatDate,w:l})),"function"==typeof g&&(d=g(d,f)),Number.isFinite(n)&&Number.isFinite(o)&&(c=n,h=o);var x="",m="",b=l.globals.colors[s];if(void 0===l.config.tooltip.x.formatter)if("datetime"===l.config.xaxis.type){var v=new E(a);x=v.formatDate(v.getDate(c),l.config.tooltip.x.format),m=v.formatDate(v.getDate(h),l.config.tooltip.x.format)}else x=c,m=h;else x=l.config.tooltip.x.formatter(c),m=l.config.tooltip.x.formatter(h);return{start:c,end:h,startVal:x,endVal:m,ylabel:d,color:b,seriesName:u}},X=function(t){var e=t.color,i=t.seriesName,a=t.ylabel,s=t.start,r=t.end,n=t.seriesIndex,o=t.dataPointIndex,l=t.ctx.tooltip.tooltipLabels.getFormatters(n);s=l.yLbFormatter(s),r=l.yLbFormatter(r);var c=l.yLbFormatter(t.w.globals.series[n][o]),h='<span class="value start-value">\n '.concat(s,'\n </span> <span class="separator">-</span> <span class="value end-value">\n ').concat(r,"\n </span>");return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+e+'">'+(i||"")+'</span></div><div> <span class="category">'+a+": </span> "+(t.w.globals.comboCharts?"rangeArea"===t.w.config.series[n].type||"rangeBar"===t.w.config.series[n].type?h:"<span>".concat(c,"</span>"):h)+" </div></div>"},R=function(){function t(e){o(this,t),this.opts=e}return c(t,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(t){return this.hideYAxis(),v.extend(t,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),r(r({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var t=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,a=e.dataPointIndex,s=e.w;return t._getBoxTooltip(s,i,a,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var t=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,a=e.dataPointIndex,s=e.w;return t._getBoxTooltip(s,i,a,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(t,e){e.ctx;var i=e.seriesIndex,a=e.dataPointIndex,s=e.w,r=function(){var t=s.globals.seriesRangeStart[i][a];return s.globals.seriesRangeEnd[i][a]-t};return s.globals.comboCharts?"rangeBar"===s.config.series[i].type||"rangeArea"===s.config.series[i].type?r():t:r()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(t){return t.w.config.plotOptions&&t.w.config.plotOptions.bar&&t.w.config.plotOptions.bar.horizontal?function(t){var e=O(r(r({},t),{},{isTimeline:!0})),i=e.color,a=e.seriesName,s=e.ylabel,n=e.startVal,o=e.endVal;return X(r(r({},t),{},{color:i,seriesName:a,ylabel:s,start:n,end:o}))}(t):function(t){var e=O(t),i=e.color,a=e.seriesName,s=e.ylabel,n=e.start,o=e.end;return X(r(r({},t),{},{color:i,seriesName:a,ylabel:s,start:n,end:o}))}(t)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(t){var e,i;return null!==(e=t.plotOptions.bar)&&void 0!==e&&e.barHeight||(t.plotOptions.bar.barHeight=2),null!==(i=t.plotOptions.bar)&&void 0!==i&&i.columnWidth||(t.plotOptions.bar.columnWidth=2),t}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(t){return function(t){var e=O(t),i=e.color,a=e.seriesName,s=e.ylabel,n=e.start,o=e.end;return X(r(r({},t),{},{color:i,seriesName:a,ylabel:s,start:n,end:o}))}(t)}}}}},{key:"brush",value:function(t){return v.extend(t,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(t){t.dataLabels=t.dataLabels||{},t.dataLabels.formatter=t.dataLabels.formatter||void 0;var e=t.dataLabels.formatter;return t.yaxis.forEach((function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100})),"bar"===t.chart.type&&(t.dataLabels.formatter=e||function(t){return"number"==typeof t&&t?t.toFixed(0)+"%":t}),t}},{key:"stackedBars",value:function(){var t=this.bar();return r(r({},t),{},{plotOptions:r(r({},t.plotOptions),{},{bar:r(r({},t.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(t){return t.xaxis.convertedCatToNumeric=!0,t}},{key:"convertCatToNumericXaxis",value:function(t,e,i){t.xaxis.type="numeric",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(t){return v.isNumber(t)?Math.floor(t):t};var a=t.xaxis.labels.formatter,s=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return i&&i.length&&(s=i.map((function(t){return Array.isArray(t)?t:String(t)}))),s&&s.length&&(t.xaxis.labels.formatter=function(t){return v.isNumber(t)?a(s[Math.floor(t)-1]):a(t)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",t}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(t){return t},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(t,e,i,a,s){var r=t.globals.seriesCandleO[e][i],n=t.globals.seriesCandleH[e][i],o=t.globals.seriesCandleM[e][i],l=t.globals.seriesCandleL[e][i],c=t.globals.seriesCandleC[e][i];return t.config.series[e].type&&t.config.series[e].type!==s?'<div class="apexcharts-custom-tooltip">\n '.concat(t.config.series[e].name?t.config.series[e].name:"series-"+(e+1),": <strong>").concat(t.globals.series[e][i],"</strong>\n </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(t.config.chart.type,'">')+"<div>".concat(a[0],': <span class="value">')+r+"</span></div>"+"<div>".concat(a[1],': <span class="value">')+n+"</span></div>"+(o?"<div>".concat(a[2],': <span class="value">')+o+"</span></div>":"")+"<div>".concat(a[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(a[4],': <span class="value">')+c+"</span></div></div>"}}]),t}(),F=function(){function t(e){o(this,t),this.opts=e}return c(t,[{key:"init",value:function(t){var e=t.responsiveOverride,i=this.opts,a=new T,s=new R(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var r=a.init(),o={};if(i&&"object"===n(i)){var l,c,h,d,u,g,p,f,x,m,b={};b=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)?s[i.chart.type]():s.line(),null!==(l=i.plotOptions)&&void 0!==l&&null!==(c=l.bar)&&void 0!==c&&c.isFunnel&&(b=s.funnel()),i.chart.stacked&&"bar"===i.chart.type&&(b=s.stackedBars()),null!==(h=i.chart.brush)&&void 0!==h&&h.enabled&&(b=s.brush(b)),i.chart.stacked&&"100%"===i.chart.stackType&&(i=s.stacked100(i)),null!==(d=i.plotOptions)&&void 0!==d&&null!==(u=d.bar)&&void 0!==u&&u.isDumbbell&&(i=s.dumbbell(i)),"monotoneCubic"===(null===(g=i)||void 0===g||null===(p=g.stroke)||void 0===p?void 0:p.curve)&&(i.stroke.curve="smooth"),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},e||(i.xaxis.convertedCatToNumeric=!1),(null!==(f=(i=this.checkForCatToNumericXAxis(this.chartType,b,i)).chart.sparkline)&&void 0!==f&&f.enabled||null!==(x=window.Apex.chart)&&void 0!==x&&null!==(m=x.sparkline)&&void 0!==m&&m.enabled)&&(b=s.sparkline(b)),o=v.extend(r,b)}var y=v.extend(o,window.Apex);return r=v.extend(y,i),this.handleUserInputErrors(r)}},{key:"checkForCatToNumericXAxis",value:function(t,e,i){var a,s,r=new R(i),n=("bar"===t||"boxPlot"===t)&&(null===(a=i.plotOptions)||void 0===a||null===(s=a.bar)||void 0===s?void 0:s.horizontal),o="pie"===t||"polarArea"===t||"donut"===t||"radar"===t||"radialBar"===t||"heatmap"===t,l="datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type,c=i.xaxis.tickPlacement?i.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement;return n||o||!l||"between"===c||(i=r.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(t,e){var i=new T;(void 0===t.yaxis||!t.yaxis||Array.isArray(t.yaxis)&&0===t.yaxis.length)&&(t.yaxis={}),t.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(t.yaxis=v.extend(t.yaxis,window.Apex.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[v.extend(i.yAxis,t.yaxis)]:t.yaxis=v.extendArray(t.yaxis,i.yAxis);var a=!1;t.yaxis.forEach((function(t){t.logarithmic&&(a=!0)}));var s=t.series;return e&&!s&&(s=e.config.series),a&&s.length!==t.yaxis.length&&s.length&&(t.yaxis=s.map((function(e,a){if(e.name||(s[a].name="series-".concat(a+1)),t.yaxis[a])return t.yaxis[a].seriesName=s[a].name,t.yaxis[a];var r=v.extend(i.yAxis,t.yaxis[0]);return r.show=!1,r}))),a&&s.length>1&&s.length!==t.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),t}},{key:"extendAnnotations",value:function(t){return void 0===t.annotations&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),this.extendPointAnnotations(t)}},{key:"extendYAxisAnnotations",value:function(t){var e=new T;return t.annotations.yaxis=v.extendArray(void 0!==t.annotations.yaxis?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var e=new T;return t.annotations.xaxis=v.extendArray(void 0!==t.annotations.xaxis?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var e=new T;return t.annotations.points=v.extendArray(void 0!==t.annotations.points?t.annotations.points:[],e.pointAnnotation),t}},{key:"checkForDarkTheme",value:function(t){t.theme&&"dark"===t.theme.mode&&(t.tooltip||(t.tooltip={}),"light"!==t.tooltip.theme&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.chart.background||(t.chart.background="#424242"),t.theme.palette||(t.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(t){var e=t;if(e.tooltip.shared&&e.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===e.chart.type&&e.plotOptions.bar.horizontal){if(e.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return"bar"!==e.chart.type&&"rangeBar"!==e.chart.type||e.tooltip.shared&&"barWidth"===e.xaxis.crosshairs.width&&e.series.length>1&&(e.xaxis.crosshairs.width="tickWidth"),"candlestick"!==e.chart.type&&"boxPlot"!==e.chart.type||e.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(e.chart.type," chart is not supported.")),e.yaxis[0].reversed=!1),e}}]),t}(),Y=function(){function t(){o(this,t)}return c(t,[{key:"initGlobalVars",value:function(t){t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleM=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRange=[],t.seriesPercent=[],t.seriesGoals=[],t.seriesX=[],t.seriesZ=[],t.seriesNames=[],t.seriesTotals=[],t.seriesLog=[],t.seriesColors=[],t.stackedSeriesTotals=[],t.seriesXvalues=[],t.seriesYvalues=[],t.labels=[],t.hasXaxisGroups=!1,t.groups=[],t.hasSeriesGroups=!1,t.seriesGroups=[],t.categoryLabels=[],t.timescaleLabels=[],t.noLabelsProvided=!1,t.resizeTimer=null,t.selectionResizeTimer=null,t.delayedElements=[],t.pointsArray=[],t.dataLabelsRects=[],t.isXNumeric=!1,t.skipLastTimelinelabel=!1,t.skipFirstTimelinelabel=!1,t.isDataXYZ=!1,t.isMultiLineX=!1,t.isMultipleYAxis=!1,t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE,t.minYArr=[],t.maxYArr=[],t.maxX=-Number.MAX_VALUE,t.minX=Number.MAX_VALUE,t.initialMaxX=-Number.MAX_VALUE,t.initialMinX=Number.MAX_VALUE,t.maxDate=0,t.minDate=Number.MAX_VALUE,t.minZ=Number.MAX_VALUE,t.maxZ=-Number.MAX_VALUE,t.minXDiff=Number.MAX_VALUE,t.yAxisScale=[],t.xAxisScale=null,t.xAxisTicksPositions=[],t.yLabelsCoords=[],t.yTitleCoords=[],t.barPadForNumericAxis=0,t.padHorizontal=0,t.xRange=0,t.yRange=[],t.zRange=0,t.dataPoints=0,t.xTickAmount=0}},{key:"globalVars",value:function(t){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:t.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:"pan"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.pan,selectionEnabled:"selection"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(t){var e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=v.extend({},t),e.initialSeries=v.clone(t.series),e.lastXAxis=v.clone(e.initialConfig.xaxis),e.lastYAxis=v.clone(e.initialConfig.yaxis),e}}]),t}(),H=function(){function t(e){o(this,t),this.opts=e}return c(t,[{key:"init",value:function(){var t=new F(this.opts).init({responsiveOverride:!1});return{config:t,globals:(new Y).init(t)}}}]),t}(),N=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0}return c(t,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,a=parseInt(e.globals.gridWidth,10),s=parseInt(e.globals.gridHeight,10),r=a>s?a:s,n=t.image,o=0,l=0;void 0===t.width&&void 0===t.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(o=i.fill.image.width+1,l=i.fill.image.height):(o=r+1,l=r):(o=t.width,l=t.height);var c=document.createElementNS(e.globals.SVGNS,"pattern");k.setAttrs(c,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:o+"px",height:l+"px"});var h=document.createElementNS(e.globals.SVGNS,"image");c.appendChild(h),h.setAttributeNS(window.SVG.xlink,"href",n),k.setAttrs(h,{x:0,y:0,preserveAspectRatio:"none",width:o+"px",height:l+"px"}),h.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(t){var e=this.w,i=e.config.chart.type;return("bar"===i||"rangeBar"===i)&&e.config.plotOptions.bar.distributed||"heatmap"===i||"treemap"===i?this.seriesIndex=t.seriesNumber:this.seriesIndex=t.seriesNumber%e.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(t){var e=this.w;this.opts=t;var i,a,s,r=this.w.config;this.seriesIndex=this.getSeriesIndex(t);var n=this.getFillColors()[this.seriesIndex];void 0!==e.globals.seriesColors[this.seriesIndex]&&(n=e.globals.seriesColors[this.seriesIndex]),"function"==typeof n&&(n=n({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:e}));var o=t.fillType?t.fillType:this.getFillType(this.seriesIndex),l=Array.isArray(r.fill.opacity)?r.fill.opacity[this.seriesIndex]:r.fill.opacity;t.color&&(n=t.color),n||(n="#fff",console.warn("undefined color - ApexCharts"));var c=n;if(-1===n.indexOf("rgb")?n.length<9&&(c=v.hexToRgba(n,l)):n.indexOf("rgba")>-1&&(l=v.getOpacityFromRGBA(n)),t.opacity&&(l=t.opacity),"pattern"===o&&(a=this.handlePatternFill({fillConfig:t.fillConfig,patternFill:a,fillColor:n,fillOpacity:l,defaultColor:c})),"gradient"===o&&(s=this.handleGradientFill({fillConfig:t.fillConfig,fillColor:n,fillOpacity:l,i:this.seriesIndex})),"image"===o){var h=r.fill.image.src,d=t.patternID?t.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(h)?t.seriesNumber<h.length?h[t.seriesNumber]:h[0]:h,width:t.width?t.width:void 0,height:t.height?t.height:void 0,patternUnits:t.patternUnits,patternID:"pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(d)}),i="url(#pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(d,")")}else i="gradient"===o?s:"pattern"===o?a:c;return t.solid&&(i=c),i}},{key:"getFillType",value:function(t){var e=this.w;return Array.isArray(e.config.fill.type)?e.config.fill.type[t]:e.config.fill.type}},{key:"getFillColors",value:function(){var t=this.w,e=t.config,i=this.opts,a=[];return t.globals.comboCharts?"line"===t.config.series[this.seriesIndex].type?Array.isArray(t.globals.stroke.colors)?a=t.globals.stroke.colors:a.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?a=t.globals.fill.colors:a.push(t.globals.fill.colors):"line"===e.chart.type?Array.isArray(t.globals.stroke.colors)?a=t.globals.stroke.colors:a.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?a=t.globals.fill.colors:a.push(t.globals.fill.colors),void 0!==i.fillColors&&(a=[],Array.isArray(i.fillColors)?a=i.fillColors.slice():a.push(i.fillColors)),a}},{key:"handlePatternFill",value:function(t){var e=t.fillConfig,i=(t.patternFill,t.fillColor),a=t.fillOpacity,s=t.defaultColor,r=this.w.config.fill;e&&(r=e);var n=this.opts,o=new k(this.ctx),l=Array.isArray(r.pattern.strokeWidth)?r.pattern.strokeWidth[this.seriesIndex]:r.pattern.strokeWidth,c=i;return Array.isArray(r.pattern.style)?void 0!==r.pattern.style[n.seriesNumber]?o.drawPattern(r.pattern.style[n.seriesNumber],r.pattern.width,r.pattern.height,c,l,a):s:o.drawPattern(r.pattern.style,r.pattern.width,r.pattern.height,c,l,a)}},{key:"handleGradientFill",value:function(t){var e=t.fillColor,i=t.fillOpacity,a=t.fillConfig,s=t.i,n=this.w.config.fill;a&&(n=r(r({},n),a));var o,l=this.opts,c=new k(this.ctx),h=new v,d=n.gradient.type,u=e,g=void 0===n.gradient.opacityFrom?i:Array.isArray(n.gradient.opacityFrom)?n.gradient.opacityFrom[s]:n.gradient.opacityFrom;u.indexOf("rgba")>-1&&(g=v.getOpacityFromRGBA(u));var p=void 0===n.gradient.opacityTo?i:Array.isArray(n.gradient.opacityTo)?n.gradient.opacityTo[s]:n.gradient.opacityTo;if(void 0===n.gradient.gradientToColors||0===n.gradient.gradientToColors.length)o="dark"===n.gradient.shade?h.shadeColor(-1*parseFloat(n.gradient.shadeIntensity),e.indexOf("rgb")>-1?v.rgb2hex(e):e):h.shadeColor(parseFloat(n.gradient.shadeIntensity),e.indexOf("rgb")>-1?v.rgb2hex(e):e);else if(n.gradient.gradientToColors[l.seriesNumber]){var f=n.gradient.gradientToColors[l.seriesNumber];o=f,f.indexOf("rgba")>-1&&(p=v.getOpacityFromRGBA(f))}else o=e;if(n.gradient.gradientFrom&&(u=n.gradient.gradientFrom),n.gradient.gradientTo&&(o=n.gradient.gradientTo),n.gradient.inverseColors){var x=u;u=o,o=x}return u.indexOf("rgb")>-1&&(u=v.rgb2hex(u)),o.indexOf("rgb")>-1&&(o=v.rgb2hex(o)),c.drawGradient(d,u,o,g,p,l.size,n.gradient.stops,n.gradient.colorStops,s)}}]),t}(),D=function(){function t(e,i){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"setGlobalMarkerSize",value:function(){var t=this.w;if(t.globals.markers.size=Array.isArray(t.config.markers.size)?t.config.markers.size:[t.config.markers.size],t.globals.markers.size.length>0){if(t.globals.markers.size.length<t.globals.series.length+1)for(var e=0;e<=t.globals.series.length;e++)void 0===t.globals.markers.size[e]&&t.globals.markers.size.push(t.globals.markers.size[0])}else t.globals.markers.size=t.config.series.map((function(e){return t.config.markers.size}))}},{key:"plotChartMarkers",value:function(t,e,i,a){var s,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],n=this.w,o=e,l=t,c=null,h=new k(this.ctx),d=n.config.markers.discrete&&n.config.markers.discrete.length;if((n.globals.markers.size[e]>0||r||d)&&(c=h.group({class:r||d?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(n.globals.cuid,")")),Array.isArray(l.x))for(var u=0;u<l.x.length;u++){var g=i;1===i&&0===u&&(g=0),1===i&&1===u&&(g=1);var p="apexcharts-marker";if("line"!==n.config.chart.type&&"area"!==n.config.chart.type||n.globals.comboCharts||n.config.tooltip.intersect||(p+=" no-pointer-events"),(Array.isArray(n.config.markers.size)?n.globals.markers.size[e]>0:n.config.markers.size>0)||r||d){v.isNumber(l.y[u])?p+=" w".concat(v.randomId()):p="apexcharts-nullpoint";var f=this.getMarkerConfig({cssClass:p,seriesIndex:e,dataPointIndex:g});n.config.series[o].data[g]&&(n.config.series[o].data[g].fillColor&&(f.pointFillColor=n.config.series[o].data[g].fillColor),n.config.series[o].data[g].strokeColor&&(f.pointStrokeColor=n.config.series[o].data[g].strokeColor)),a&&(f.pSize=a),(l.x[u]<0||l.x[u]>n.globals.gridWidth||l.y[u]<-n.globals.markers.largestSize||l.y[u]>n.globals.gridHeight+n.globals.markers.largestSize)&&(f.pSize=0),(s=h.drawMarker(l.x[u],l.y[u],f)).attr("rel",g),s.attr("j",g),s.attr("index",e),s.node.setAttribute("default-marker-size",f.pSize),new w(this.ctx).setSelectionFilter(s,e,g),this.addEvents(s),c&&c.add(s)}else void 0===n.globals.pointsArray[e]&&(n.globals.pointsArray[e]=[]),n.globals.pointsArray[e].push([l.x[u],l.y[u]])}return c}},{key:"getMarkerConfig",value:function(t){var e=t.cssClass,i=t.seriesIndex,a=t.dataPointIndex,s=void 0===a?null:a,r=t.finishRadius,n=void 0===r?null:r,o=this.w,l=this.getMarkerStyle(i),c=o.globals.markers.size[i],h=o.config.markers;return null!==s&&h.discrete.length&&h.discrete.map((function(t){t.seriesIndex===i&&t.dataPointIndex===s&&(l.pointStrokeColor=t.strokeColor,l.pointFillColor=t.fillColor,c=t.size,l.pointShape=t.shape)})),{pSize:null===n?c:n,pRadius:h.radius,width:Array.isArray(h.width)?h.width[i]:h.width,height:Array.isArray(h.height)?h.height[i]:h.height,pointStrokeWidth:Array.isArray(h.strokeWidth)?h.strokeWidth[i]:h.strokeWidth,pointStrokeColor:l.pointStrokeColor,pointFillColor:l.pointFillColor,shape:l.pointShape||(Array.isArray(h.shape)?h.shape[i]:h.shape),class:e,pointStrokeOpacity:Array.isArray(h.strokeOpacity)?h.strokeOpacity[i]:h.strokeOpacity,pointStrokeDashArray:Array.isArray(h.strokeDashArray)?h.strokeDashArray[i]:h.strokeDashArray,pointFillOpacity:Array.isArray(h.fillOpacity)?h.fillOpacity[i]:h.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(t){var e=this.w,i=new k(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,t)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,t)),t.node.addEventListener("click",e.config.markers.onClick),t.node.addEventListener("dblclick",e.config.markers.onDblClick),t.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,t),{passive:!0})}},{key:"getMarkerStyle",value:function(t){var e=this.w,i=e.globals.markers.colors,a=e.config.markers.strokeColor||e.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(a)?a[t]:a,pointFillColor:Array.isArray(i)?i[t]:i}}}]),t}(),W=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return c(t,[{key:"draw",value:function(t,e,i){var a=this.w,s=new k(this.ctx),r=i.realIndex,n=i.pointsPos,o=i.zRatio,l=i.elParent,c=s.group({class:"apexcharts-series-markers apexcharts-series-".concat(a.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(a.globals.cuid,")")),Array.isArray(n.x))for(var h=0;h<n.x.length;h++){var d=e+1,u=!0;0===e&&0===h&&(d=0),0===e&&1===h&&(d=1);var g=0,p=a.globals.markers.size[r];if(o!==1/0){var f=a.config.plotOptions.bubble;p=a.globals.seriesZ[r][d],f.zScaling&&(p/=o),f.minBubbleRadius&&p<f.minBubbleRadius&&(p=f.minBubbleRadius),f.maxBubbleRadius&&p>f.maxBubbleRadius&&(p=f.maxBubbleRadius)}a.config.chart.animations.enabled||(g=p);var x=n.x[h],m=n.y[h];if(g=g||0,null!==m&&void 0!==a.globals.series[r][d]||(u=!1),u){var b=this.drawPoint(x,m,g,p,r,d,e);c.add(b)}l.add(c)}}},{key:"drawPoint",value:function(t,e,i,a,s,r,n){var o=this.w,l=s,c=new y(this.ctx),h=new w(this.ctx),d=new N(this.ctx),u=new D(this.ctx),g=new k(this.ctx),p=u.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:r,finishRadius:"bubble"===o.config.chart.type||o.globals.comboCharts&&o.config.series[s]&&"bubble"===o.config.series[s].type?a:null});a=p.pSize;var f,x=d.fillPath({seriesNumber:s,dataPointIndex:r,color:p.pointFillColor,patternUnits:"objectBoundingBox",value:o.globals.series[s][n]});if("circle"===p.shape?f=g.drawCircle(i):"square"!==p.shape&&"rect"!==p.shape||(f=g.drawRect(0,0,p.width-p.pointStrokeWidth/2,p.height-p.pointStrokeWidth/2,p.pRadius)),o.config.series[l].data[r]&&o.config.series[l].data[r].fillColor&&(x=o.config.series[l].data[r].fillColor),f.attr({x:t-p.width/2-p.pointStrokeWidth/2,y:e-p.height/2-p.pointStrokeWidth/2,cx:t,cy:e,fill:x,"fill-opacity":p.pointFillOpacity,stroke:p.pointStrokeColor,r:a,"stroke-width":p.pointStrokeWidth,"stroke-dasharray":p.pointStrokeDashArray,"stroke-opacity":p.pointStrokeOpacity}),o.config.chart.dropShadow.enabled){var m=o.config.chart.dropShadow;h.dropShadow(f,m,s)}if(!this.initialAnim||o.globals.dataChanged||o.globals.resized)o.globals.animationEnded=!0;else{var b=o.config.chart.animations.speed;c.animateMarker(f,0,"circle"===p.shape?a:{width:p.width,height:p.height},b,o.globals.easing,(function(){window.setTimeout((function(){c.animationCompleted(f)}),100)}))}if(o.globals.dataChanged&&"circle"===p.shape)if(this.dynamicAnim){var v,A,C,S,L=o.config.chart.animations.dynamicAnimation.speed;null!=(S=o.globals.previousPaths[s]&&o.globals.previousPaths[s][n])&&(v=S.x,A=S.y,C=void 0!==S.r?S.r:a);for(var P=0;P<o.globals.collapsedSeries.length;P++)o.globals.collapsedSeries[P].index===s&&(L=1,a=0);0===t&&0===e&&(a=0),c.animateCircle(f,{cx:v,cy:A,r:C},{cx:t,cy:e,r:a},L,o.globals.easing)}else f.attr({r:a});return f.attr({rel:r,j:r,index:s,"default-marker-size":a}),h.setSelectionFilter(f,s,r),u.addEvents(f),f.node.classList.add("apexcharts-marker"),f}},{key:"centerTextInBubble",value:function(t){var e=this.w;return{y:t+=parseInt(e.config.dataLabels.style.fontSize,10)/4}}}]),t}(),B=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"dataLabelsCorrection",value:function(t,e,i,a,s,r,n){var o=this.w,l=!1,c=new k(this.ctx).getTextRects(i,n),h=c.width,d=c.height;e<0&&(e=0),e>o.globals.gridHeight+d&&(e=o.globals.gridHeight+d/2),void 0===o.globals.dataLabelsRects[a]&&(o.globals.dataLabelsRects[a]=[]),o.globals.dataLabelsRects[a].push({x:t,y:e,width:h,height:d});var u=o.globals.dataLabelsRects[a].length-2,g=void 0!==o.globals.lastDrawnDataLabelsIndexes[a]?o.globals.lastDrawnDataLabelsIndexes[a][o.globals.lastDrawnDataLabelsIndexes[a].length-1]:0;if(void 0!==o.globals.dataLabelsRects[a][u]){var p=o.globals.dataLabelsRects[a][g];(t>p.x+p.width||e>p.y+p.height||e+d<p.y||t+h<p.x)&&(l=!0)}return(0===s||r)&&(l=!0),{x:t,y:e,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(t){var e=this,i=t.type,a=t.pos,s=t.i,r=t.j,n=t.isRangeStart,o=t.strokeWidth,l=void 0===o?2:o,c=this.w,h=new k(this.ctx),d=c.config.dataLabels,u=0,g=0,p=r,f=null;if(!d.enabled||!Array.isArray(a.x))return f;f=h.group({class:"apexcharts-data-labels"});for(var x=0;x<a.x.length;x++)if(u=a.x[x]+d.offsetX,g=a.y[x]+d.offsetY+l,!isNaN(u)){1===r&&0===x&&(p=0),1===r&&1===x&&(p=1);var m=c.globals.series[s][p];"rangeArea"===i&&(m=n?c.globals.seriesRangeStart[s][p]:c.globals.seriesRangeEnd[s][p]);var b="",v=function(t){return c.config.dataLabels.formatter(t,{ctx:e.ctx,seriesIndex:s,dataPointIndex:p,w:c})};"bubble"===c.config.chart.type?(b=v(m=c.globals.seriesZ[s][p]),g=a.y[x],g=new W(this.ctx).centerTextInBubble(g,s,p).y):void 0!==m&&(b=v(m)),this.plotDataLabelsText({x:u,y:g,text:b,i:s,j:p,parent:f,offsetCorrection:!0,dataLabelsConfig:c.config.dataLabels})}return f}},{key:"plotDataLabelsText",value:function(t){var e=this.w,i=new k(this.ctx),a=t.x,s=t.y,r=t.i,n=t.j,o=t.text,l=t.textAnchor,c=t.fontSize,h=t.parent,d=t.dataLabelsConfig,u=t.color,g=t.alwaysDrawDataLabel,p=t.offsetCorrection;if(!(Array.isArray(e.config.dataLabels.enabledOnSeries)&&e.config.dataLabels.enabledOnSeries.indexOf(r)<0)){var f={x:a,y:s,drawnextLabel:!0,textRects:null};p&&(f=this.dataLabelsCorrection(a,s,o,r,n,g,parseInt(d.style.fontSize,10))),e.globals.zoomed||(a=f.x,s=f.y),f.textRects&&(a<-10-f.textRects.width||a>e.globals.gridWidth+f.textRects.width+10)&&(o="");var x=e.globals.dataLabels.style.colors[r];(("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&e.config.plotOptions.bar.distributed||e.config.dataLabels.distributed)&&(x=e.globals.dataLabels.style.colors[n]),"function"==typeof x&&(x=x({series:e.globals.series,seriesIndex:r,dataPointIndex:n,w:e})),u&&(x=u);var m=d.offsetX,b=d.offsetY;if("bar"!==e.config.chart.type&&"rangeBar"!==e.config.chart.type||(m=0,b=0),f.drawnextLabel){var v=i.drawText({width:100,height:parseInt(d.style.fontSize,10),x:a+m,y:s+b,foreColor:x,textAnchor:l||d.textAnchor,text:o,fontSize:c||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"});if(v.attr({class:"apexcharts-datalabel",cx:a,cy:s}),d.dropShadow.enabled){var y=d.dropShadow;new w(this.ctx).dropShadow(v,y)}h.add(v),void 0===e.globals.lastDrawnDataLabelsIndexes[r]&&(e.globals.lastDrawnDataLabelsIndexes[r]=[]),e.globals.lastDrawnDataLabelsIndexes[r].push(n)}}}},{key:"addBackgroundToDataLabel",value:function(t,e){var i=this.w,a=i.config.dataLabels.background,s=a.padding,r=a.padding/2,n=e.width,o=e.height,l=new k(this.ctx).drawRect(e.x-s,e.y-r/2,n+2*s,o+r,a.borderRadius,"transparent"===i.config.chart.background?"#fff":i.config.chart.background,a.opacity,a.borderWidth,a.borderColor);return a.dropShadow.enabled&&new w(this.ctx).dropShadow(l,a.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var t=this.w;if("bubble"!==t.config.chart.type)for(var e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i<e.length;i++){var a=e[i],s=a.getBBox(),r=null;if(s.width&&s.height&&(r=this.addBackgroundToDataLabel(a,s)),r){a.parentNode.insertBefore(r.node,a);var n=a.getAttribute("fill");!t.config.chart.animations.enabled||t.globals.resized||t.globals.dataChanged?r.attr({fill:n}):r.animate().attr({fill:n}),a.setAttribute("fill",t.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var t=this.w,e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=t.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),a=0;a<e.length;a++)i&&i.insertBefore(e[a],i.nextSibling)}}]),t}(),$=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w,this.legendInactiveClass="legend-mouseover-inactive"}return c(t,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(t){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(v.escapeString(t),"']"))}},{key:"isSeriesHidden",value:function(t){var e=this.getSeriesByName(t),i=parseInt(e.getAttribute("data:realIndex"),10);return{isHidden:e.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(t,e){var i=this.w;function a(i){for(var a=0;a<i.length;a++)i[a].index===e&&t.node.classList.add("apexcharts-series-collapsed")}a(i.globals.collapsedSeries),a(i.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(t){var e=this.isSeriesHidden(t);return this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,e.isHidden),e.isHidden}},{key:"showSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!0)}},{key:"hideSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!1)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=this.w,s=v.clone(a.globals.initialSeries);a.globals.previousPaths=[],i?(a.globals.collapsedSeries=[],a.globals.ancillaryCollapsedSeries=[],a.globals.collapsedSeriesIndices=[],a.globals.ancillaryCollapsedSeriesIndices=[]):s=this.emptyCollapsedSeries(s),a.config.series=s,t&&(e&&(a.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(t){for(var e=this.w,i=0;i<t.length;i++)e.globals.collapsedSeriesIndices.indexOf(i)>-1&&(t[i].data=[]);return t}},{key:"toggleSeriesOnHover",value:function(t,e){var i=this.w;e||(e=t.target);var a=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if("mousemove"===t.type){var s=parseInt(e.getAttribute("rel"),10)-1,r=null,n=null;i.globals.axisCharts||"radialBar"===i.config.chart.type?i.globals.axisCharts?(r=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(s,"']")),n=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(s,"']"))):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"']")):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"'] path"));for(var o=0;o<a.length;o++)a[o].classList.add(this.legendInactiveClass);null!==r&&(i.globals.axisCharts||r.parentNode.classList.remove(this.legendInactiveClass),r.classList.remove(this.legendInactiveClass),null!==n&&n.classList.remove(this.legendInactiveClass))}else if("mouseout"===t.type)for(var l=0;l<a.length;l++)a[l].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(t,e){var i=this,a=this.w,s=a.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),r=function(t){for(var e=0;e<s.length;e++)s[e].classList[t](i.legendInactiveClass)};if("mousemove"===t.type){var n=parseInt(e.getAttribute("rel"),10)-1;r("add"),function(t){for(var e=0;e<s.length;e++){var a=parseInt(s[e].getAttribute("val"),10);a>=t.from&&a<=t.to&&s[e].classList.remove(i.legendInactiveClass)}}(a.config.plotOptions.heatmap.colorScale.ranges[n])}else"mouseout"===t.type&&r("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"asc",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.w,a=0;if(i.config.series.length>1)for(var s=i.config.series.map((function(t,a){return t.data&&t.data.length>0&&-1===i.globals.collapsedSeriesIndices.indexOf(a)&&(!i.globals.comboCharts||0===e.length||e.length&&e.indexOf(i.config.series[a].type)>-1)?a:-1})),r="asc"===t?0:s.length-1;"asc"===t?r<s.length:r>=0;"asc"===t?r++:r--)if(-1!==s[r]){a=s[r];break}return a}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map((function(t,e){return"bar"===t.type||"column"===t.type?e:-1})).filter((function(t){return-1!==t})):this.w.config.series.map((function(t,e){return e}))}},{key:"getPreviousPaths",value:function(){var t=this.w;function e(e,i,a){for(var s=e[i].childNodes,r={type:a,paths:[],realIndex:e[i].getAttribute("data:realIndex")},n=0;n<s.length;n++)if(s[n].hasAttribute("pathTo")){var o=s[n].getAttribute("pathTo");r.paths.push({d:o})}t.globals.previousPaths.push(r)}t.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach((function(i){for(var a,s=(a=i,t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(a,"-series .apexcharts-series"))),r=0;r<s.length;r++)e(s,r,i)})),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series"));if(i.length>0)for(var a=function(e){for(var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(e,"'] rect")),a=[],s=function(t){var e=function(e){return i[t].getAttribute(e)},s={x:parseFloat(e("x")),y:parseFloat(e("y")),width:parseFloat(e("width")),height:parseFloat(e("height"))};a.push({rect:s,color:i[t].getAttribute("color")})},r=0;r<i.length;r++)s(r);t.globals.previousPaths.push(a)},s=0;s<i.length;s++)a(s);t.globals.axisCharts||(t.globals.previousPaths=t.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(t){var e=this.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series"));if(i.length>0)for(var a=0;a<i.length;a++){for(var s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series[data\\:realIndex='").concat(a,"'] circle")),r=[],n=0;n<s.length;n++)r.push({x:s[n].getAttribute("cx"),y:s[n].getAttribute("cy"),r:s[n].getAttribute("r")});e.globals.previousPaths.push(r)}}},{key:"clearPreviousPaths",value:function(){var t=this.w;t.globals.previousPaths=[],t.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var t=this.w,e=t.config.noData,i=new k(this.ctx),a=t.globals.svgWidth/2,s=t.globals.svgHeight/2,r="middle";if(t.globals.noData=!0,t.globals.animationEnded=!0,"left"===e.align?(a=10,r="start"):"right"===e.align&&(a=t.globals.svgWidth-10,r="end"),"top"===e.verticalAlign?s=50:"bottom"===e.verticalAlign&&(s=t.globals.svgHeight-50),a+=e.offsetX,s=s+parseInt(e.style.fontSize,10)+2+e.offsetY,void 0!==e.text&&""!==e.text){var n=i.drawText({x:a,y:s,text:e.text,textAnchor:r,fontSize:e.style.fontSize,fontFamily:e.style.fontFamily,foreColor:e.style.color,opacity:1,class:"apexcharts-text-nodata"});t.globals.dom.Paper.add(n)}}},{key:"setNullSeriesToZeroValues",value:function(t){for(var e=this.w,i=0;i<t.length;i++)if(0===t[i].length)for(var a=0;a<t[e.globals.maxValsInArrayIndex].length;a++)t[i].push(0);return t}},{key:"hasAllSeriesEqualX",value:function(){for(var t=!0,e=this.w,i=this.filteredSeriesX(),a=0;a<i.length-1;a++)if(i[a][0]!==i[a+1][0]){t=!1;break}return e.globals.allSeriesHasEqualX=t,t}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map((function(t){return t.length>0?t:[]}))}}]),t}(),j=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new A(this.ctx)}return c(t,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new $(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&null!==t[this.activeSeriesIndex].data[0]&&void 0!==t[this.activeSeriesIndex].data[0].x&&null!==t[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var t=this.w.config.series.slice(),e=new $(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&void 0!==t[this.activeSeriesIndex].data[0]&&null!==t[this.activeSeriesIndex].data[0]&&t[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(t,e){for(var i=this.w.config,a=this.w.globals,s="boxPlot"===i.chart.type||"boxPlot"===i.series[e].type,r=0;r<t[e].data.length;r++)if(void 0!==t[e].data[r][1]&&(Array.isArray(t[e].data[r][1])&&4===t[e].data[r][1].length&&!s?this.twoDSeries.push(v.parseNumber(t[e].data[r][1][3])):t[e].data[r].length>=5?this.twoDSeries.push(v.parseNumber(t[e].data[r][4])):this.twoDSeries.push(v.parseNumber(t[e].data[r][1])),a.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){var n=new Date(t[e].data[r][0]);n=new Date(n).getTime(),this.twoDSeriesX.push(n)}else this.twoDSeriesX.push(t[e].data[r][0]);for(var o=0;o<t[e].data.length;o++)void 0!==t[e].data[o][2]&&(this.threeDSeries.push(t[e].data[o][2]),a.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(t,e){var i=this.w.config,a=this.w.globals,s=new E(this.ctx),r=e;a.collapsedSeriesIndices.indexOf(e)>-1&&(r=this.activeSeriesIndex);for(var n=0;n<t[e].data.length;n++)void 0!==t[e].data[n].y&&(Array.isArray(t[e].data[n].y)?this.twoDSeries.push(v.parseNumber(t[e].data[n].y[t[e].data[n].y.length-1])):this.twoDSeries.push(v.parseNumber(t[e].data[n].y))),void 0!==t[e].data[n].goals&&Array.isArray(t[e].data[n].goals)?(void 0===this.seriesGoals[e]&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(t[e].data[n].goals)):(void 0===this.seriesGoals[e]&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(null));for(var o=0;o<t[r].data.length;o++){var l="string"==typeof t[r].data[o].x,c=Array.isArray(t[r].data[o].x),h=!c&&!!s.isValidDate(t[r].data[o].x.toString());if(l||h)if(l||i.xaxis.convertedCatToNumeric){var d=a.isBarHorizontal&&a.isRangeData;"datetime"!==i.xaxis.type||d?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[r].data[o].x),isNaN(t[r].data[o].x)||"category"===this.w.config.xaxis.type||"string"==typeof t[r].data[o].x||(a.isXNumeric=!0)):this.twoDSeriesX.push(s.parseDate(t[r].data[o].x))}else"datetime"===i.xaxis.type?this.twoDSeriesX.push(s.parseDate(t[r].data[o].x.toString())):(a.dataFormatXNumeric=!0,a.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(t[r].data[o].x)));else c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[r].data[o].x)):(a.isXNumeric=!0,a.dataFormatXNumeric=!0,this.twoDSeriesX.push(t[r].data[o].x))}if(t[e].data[0]&&void 0!==t[e].data[0].z){for(var u=0;u<t[e].data.length;u++)this.threeDSeries.push(t[e].data[u].z);a.isDataXYZ=!0}}},{key:"handleRangeData",value:function(t,e){var i=this.w.globals,a={};return this.isFormat2DArray()?a=this.handleRangeDataFormat("array",t,e):this.isFormatXY()&&(a=this.handleRangeDataFormat("xy",t,e)),i.seriesRangeStart.push(a.start),i.seriesRangeEnd.push(a.end),i.seriesRange.push(a.rangeUniques),i.seriesRange.forEach((function(t,e){t&&t.forEach((function(t,e){t.y.forEach((function(e,i){for(var a=0;a<t.y.length;a++)if(i!==a){var s=e.y1,r=e.y2,n=t.y[a].y1;s<=t.y[a].y2&&n<=r&&(t.overlaps.indexOf(e.rangeName)<0&&t.overlaps.push(e.rangeName),t.overlaps.indexOf(t.y[a].rangeName)<0&&t.overlaps.push(t.y[a].rangeName))}}))}))})),a}},{key:"handleCandleStickBoxData",value:function(t,e){var i=this.w.globals,a={};return this.isFormat2DArray()?a=this.handleCandleStickBoxDataFormat("array",t,e):this.isFormatXY()&&(a=this.handleCandleStickBoxDataFormat("xy",t,e)),i.seriesCandleO[e]=a.o,i.seriesCandleH[e]=a.h,i.seriesCandleM[e]=a.m,i.seriesCandleL[e]=a.l,i.seriesCandleC[e]=a.c,a}},{key:"handleRangeDataFormat",value:function(t,e,i){var a=[],s=[],r=e[i].data.filter((function(t,e,i){return e===i.findIndex((function(e){return e.x===t.x}))})).map((function(t,e){return{x:t.x,overlaps:[],y:[]}}));if("array"===t)for(var n=0;n<e[i].data.length;n++)Array.isArray(e[i].data[n])?(a.push(e[i].data[n][1][0]),s.push(e[i].data[n][1][1])):(a.push(e[i].data[n]),s.push(e[i].data[n]));else if("xy"===t)for(var o=function(t){var n=Array.isArray(e[i].data[t].y),o=v.randomId(),l=e[i].data[t].x,c={y1:n?e[i].data[t].y[0]:e[i].data[t].y,y2:n?e[i].data[t].y[1]:e[i].data[t].y,rangeName:o};e[i].data[t].rangeName=o;var h=r.findIndex((function(t){return t.x===l}));r[h].y.push(c),a.push(c.y1),s.push(c.y2)},l=0;l<e[i].data.length;l++)o(l);return{start:a,end:s,rangeUniques:r}}},{key:"handleCandleStickBoxDataFormat",value:function(t,e,i){var a=this.w,s="boxPlot"===a.config.chart.type||"boxPlot"===a.config.series[i].type,r=[],n=[],o=[],l=[],c=[];if("array"===t)if(s&&6===e[i].data[0].length||!s&&5===e[i].data[0].length)for(var h=0;h<e[i].data.length;h++)r.push(e[i].data[h][1]),n.push(e[i].data[h][2]),s?(o.push(e[i].data[h][3]),l.push(e[i].data[h][4]),c.push(e[i].data[h][5])):(l.push(e[i].data[h][3]),c.push(e[i].data[h][4]));else for(var d=0;d<e[i].data.length;d++)Array.isArray(e[i].data[d][1])&&(r.push(e[i].data[d][1][0]),n.push(e[i].data[d][1][1]),s?(o.push(e[i].data[d][1][2]),l.push(e[i].data[d][1][3]),c.push(e[i].data[d][1][4])):(l.push(e[i].data[d][1][2]),c.push(e[i].data[d][1][3])));else if("xy"===t)for(var u=0;u<e[i].data.length;u++)Array.isArray(e[i].data[u].y)&&(r.push(e[i].data[u].y[0]),n.push(e[i].data[u].y[1]),s?(o.push(e[i].data[u].y[2]),l.push(e[i].data[u].y[3]),c.push(e[i].data[u].y[4])):(l.push(e[i].data[u].y[2]),c.push(e[i].data[u].y[3])));return{o:r,h:n,m:o,l,c}}},{key:"parseDataAxisCharts",value:function(t){var e,i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,s=this.w.config,r=this.w.globals,n=new E(a),o=s.labels.length>0?s.labels.slice():s.xaxis.categories.slice();if(r.isRangeBar="rangeBar"===s.chart.type&&r.isBarHorizontal,r.hasXaxisGroups="category"===s.xaxis.type&&s.xaxis.group.groups.length>0,r.hasXaxisGroups&&(r.groups=s.xaxis.group.groups),r.hasSeriesGroups=null===(e=t[0])||void 0===e?void 0:e.group,r.hasSeriesGroups){var l=[],c=x(new Set(t.map((function(t){return t.group}))));t.forEach((function(t,e){var i=c.indexOf(t.group);l[i]||(l[i]=[]),l[i].push(t.name)})),r.seriesGroups=l}for(var h=function(){for(var t=0;t<o.length;t++)if("string"==typeof o[t]){if(!n.isValidDate(o[t]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");i.twoDSeriesX.push(n.parseDate(o[t]))}else i.twoDSeriesX.push(o[t])},d=0;d<t.length;d++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===t[d].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");if("rangeBar"!==s.chart.type&&"rangeArea"!==s.chart.type&&"rangeBar"!==t[d].type&&"rangeArea"!==t[d].type||(r.isRangeData=!0,r.isComboCharts?"rangeBar"!==t[d].type&&"rangeArea"!==t[d].type||this.handleRangeData(t,d):"rangeBar"!==s.chart.type&&"rangeArea"!==s.chart.type||this.handleRangeData(t,d)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(t,d):this.isFormatXY()&&this.handleFormatXY(t,d),"candlestick"!==s.chart.type&&"candlestick"!==t[d].type&&"boxPlot"!==s.chart.type&&"boxPlot"!==t[d].type||this.handleCandleStickBoxData(t,d),r.series.push(this.twoDSeries),r.labels.push(this.twoDSeriesX),r.seriesX.push(this.twoDSeriesX),r.seriesGoals=this.seriesGoals,d!==this.activeSeriesIndex||this.fallbackToCategory||(r.isXNumeric=!0);else{"datetime"===s.xaxis.type?(r.isXNumeric=!0,h(),r.seriesX.push(this.twoDSeriesX)):"numeric"===s.xaxis.type&&(r.isXNumeric=!0,o.length>0&&(this.twoDSeriesX=o,r.seriesX.push(this.twoDSeriesX))),r.labels.push(this.twoDSeriesX);var u=t[d].data.map((function(t){return v.parseNumber(t)}));r.series.push(u)}r.seriesZ.push(this.threeDSeries),void 0!==t[d].name?r.seriesNames.push(t[d].name):r.seriesNames.push("series-"+parseInt(d+1,10)),void 0!==t[d].color?r.seriesColors.push(t[d].color):r.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(t){var e=this.w.globals,i=this.w.config;e.series=t.slice(),e.seriesNames=i.labels.slice();for(var a=0;a<e.series.length;a++)void 0===e.seriesNames[a]&&e.seriesNames.push("series-"+(a+1));return this.w}},{key:"handleExternalLabelsData",value:function(t){var e=this.w.config,i=this.w.globals;e.xaxis.categories.length>0?i.labels=e.xaxis.categories:e.labels.length>0?i.labels=e.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRange.length&&(i.seriesRange.map((function(t){t.forEach((function(t){i.labels.indexOf(t.x)<0&&t.x&&i.labels.push(t.x)}))})),i.labels=Array.from(new Set(i.labels.map(JSON.stringify)),JSON.parse)),e.xaxis.convertedCatToNumeric&&(new R(e).convertCatToNumericXaxis(e,this.ctx,i.seriesX[0]),this._generateExternalLabels(t))):this._generateExternalLabels(t)}},{key:"_generateExternalLabels",value:function(t){var e=this.w.globals,i=this.w.config,a=[];if(e.axisCharts){if(e.series.length>0)if(this.isFormatXY())for(var s=i.series.map((function(t,e){return t.data.filter((function(t,e,i){return i.findIndex((function(e){return e.x===t.x}))===e}))})),r=s.reduce((function(t,e,i,a){return a[t].length>e.length?t:i}),0),n=0;n<s[r].length;n++)a.push(n+1);else for(var o=0;o<e.series[e.maxValsInArrayIndex].length;o++)a.push(o+1);e.seriesX=[];for(var l=0;l<t.length;l++)e.seriesX.push(a);this.w.globals.isBarHorizontal||(e.isXNumeric=!0)}if(0===a.length){a=e.axisCharts?[]:e.series.map((function(t,e){return e+1}));for(var c=0;c<t.length;c++)e.seriesX.push(a)}e.labels=a,i.xaxis.convertedCatToNumeric&&(e.categoryLabels=a.map((function(t){return i.xaxis.labels.formatter(t)}))),e.noLabelsProvided=!0}},{key:"parseData",value:function(t){var e=this.w,i=e.config,a=e.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),a.axisCharts?(this.parseDataAxisCharts(t),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(t),i.chart.stacked){var s=new $(this.ctx);a.series=s.setNullSeriesToZeroValues(a.series)}this.coreUtils.getSeriesTotals(),a.axisCharts&&(a.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals()),this.coreUtils.getPercentSeries(),a.dataFormatXNumeric||a.isXNumeric&&("numeric"!==i.xaxis.type||0!==i.labels.length||0!==i.xaxis.categories.length)||this.handleExternalLabelsData(t);for(var r=this.coreUtils.getCategoryLabels(a.labels),n=0;n<r.length;n++)if(Array.isArray(r[n])){a.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var t=this,e=this.w;e.globals.ignoreYAxisIndexes=e.globals.collapsedSeries.map((function(i,a){if(t.w.globals.isMultipleYAxis&&!e.config.chart.stacked)return i.index}))}}]),t}(),_=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"getLabel",value:function(t,e,i,a){var s,r,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],c=this.w,h=void 0===t[a]?"":t[a],d=h,u=c.globals.xLabelFormatter,g=c.config.xaxis.labels.formatter,p=!1,f=new z(this.ctx),x=h;l&&(d=f.xLabelFormat(u,h,x,{i:a,dateFormatter:new E(this.ctx).formatDate,w:c}),void 0!==g&&(d=g(h,t[a],{i:a,dateFormatter:new E(this.ctx).formatDate,w:c}))),e.length>0?(s=e[a].unit,r=null,e.forEach((function(t){"month"===t.unit?r="year":"day"===t.unit?r="month":"hour"===t.unit?r="day":"minute"===t.unit&&(r="hour")})),p=r===s,i=e[a].position,d=e[a].value):"datetime"===c.config.xaxis.type&&void 0===g&&(d=""),void 0===d&&(d=""),d=Array.isArray(d)?d:d.toString();var m,b=new k(this.ctx);m=c.globals.rotateXLabels&&l?b.getTextRects(d,parseInt(o,10),null,"rotate(".concat(c.config.xaxis.labels.rotate," 0 0)"),!1):b.getTextRects(d,parseInt(o,10));var v=!c.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(d)&&(0===d.indexOf("NaN")||0===d.toLowerCase().indexOf("invalid")||d.toLowerCase().indexOf("infinity")>=0||n.indexOf(d)>=0&&v)&&(d=""),{x:i,text:d,textRect:m,isBold:p}}},{key:"checkLabelBasedOnTickamount",value:function(t,e,i){var a=this.w,s=a.config.xaxis.tickAmount;return"dataPoints"===s&&(s=Math.round(a.globals.gridWidth/120)),s>i||t%Math.round(i/(s+1))==0||(e.text=""),e}},{key:"checkForOverflowingLabels",value:function(t,e,i,a,s){var r=this.w;if(0===t&&r.globals.skipFirstTimelinelabel&&(e.text=""),t===i-1&&r.globals.skipLastTimelinelabel&&(e.text=""),r.config.xaxis.labels.hideOverlappingLabels&&a.length>0){var n=s[s.length-1];e.x<n.textRect.width/(r.globals.rotateXLabels?Math.abs(r.config.xaxis.labels.rotate)/12:1.01)+n.x&&(e.text="")}return e}},{key:"checkForReversedLabels",value:function(t,e){var i=this.w;return i.config.yaxis[t]&&i.config.yaxis[t].reversed&&e.reverse(),e}},{key:"isYAxisHidden",value:function(t){var e=this.w,i=new A(this.ctx);return!e.config.yaxis[t].show||!e.config.yaxis[t].showForNullSeries&&i.isSeriesNull(t)&&-1===e.globals.collapsedSeriesIndices.indexOf(t)}},{key:"getYAxisForeColor",value:function(t,e){var i=this.w;return Array.isArray(t)&&i.globals.yAxisScale[e]&&this.ctx.theme.pushExtraColors(t,i.globals.yAxisScale[e].result.length,!1),t}},{key:"drawYAxisTicks",value:function(t,e,i,a,s,r,n){var o=this.w,l=new k(this.ctx),c=o.globals.translateY;if(a.show&&e>0){!0===o.config.yaxis[s].opposite&&(t+=a.width);for(var h=e;h>=0;h--){var d=c+e/10+o.config.yaxis[s].labels.offsetY-1;o.globals.isBarHorizontal&&(d=r*h),"heatmap"===o.config.chart.type&&(d+=r/2);var u=l.drawLine(t+i.offsetX-a.width+a.offsetX,d+a.offsetY,t+i.offsetX+a.offsetX,d+a.offsetY,a.color);n.add(u),c+=r}}}}]),t}(),V=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"scaleSvgNode",value:function(t,e){var i=parseFloat(t.getAttributeNS(null,"width")),a=parseFloat(t.getAttributeNS(null,"height"));t.setAttributeNS(null,"width",i*e),t.setAttributeNS(null,"height",a*e),t.setAttributeNS(null,"viewBox","0 0 "+i+" "+a)}},{key:"fixSvgStringForIe11",value:function(t){if(!v.isIE11())return t.replace(/&nbsp;/g,"&#160;");var e=0,i=t.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,(function(t){return 2==++e?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':t}));return(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(t){null==t&&(t=1);var e=this.w.globals.dom.Paper.svg();if(1!==t){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,t),e=(new XMLSerializer).serializeToString(i)}return this.fixSvgStringForIe11(e)}},{key:"cleanup",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=t.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(a,(function(t){t.setAttribute("width",0)})),e&&e[0]&&(e[0].setAttribute("x",-500),e[0].setAttribute("x1",-500),e[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var t=this.getSvgString(),e=new Blob([t],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(e)}},{key:"dataURI",value:function(t){var e=this;return new Promise((function(i){var a=e.w,s=t?t.scale||t.width/a.globals.svgWidth:1;e.cleanup();var r=document.createElement("canvas");r.width=a.globals.svgWidth*s,r.height=parseInt(a.globals.dom.elWrap.style.height,10)*s;var n="transparent"===a.config.chart.background?"#fff":a.config.chart.background,o=r.getContext("2d");o.fillStyle=n,o.fillRect(0,0,r.width*s,r.height*s);var l=e.getSvgString(s);if(window.canvg&&v.isIE11()){var c=window.canvg.Canvg.fromString(o,l,{ignoreClear:!0,ignoreDimensions:!0});c.start();var h=r.msToBlob();c.stop(),i({blob:h})}else{var d="data:image/svg+xml,"+encodeURIComponent(l),u=new Image;u.crossOrigin="anonymous",u.onload=function(){if(o.drawImage(u,0,0),r.msToBlob){var t=r.msToBlob();i({blob:t})}else{var e=r.toDataURL("image/png");i({imgURI:e})}},u.src=d}}))}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var t=this;this.dataURI().then((function(e){var i=e.imgURI,a=e.blob;a?navigator.msSaveOrOpenBlob(a,t.w.globals.chartID+".png"):t.triggerDownload(i,t.w.config.chart.toolbar.export.png.filename,".png")}))}},{key:"exportToCSV",value:function(t){var e=this,i=t.series,a=t.fileName,s=t.columnDelimiter,r=void 0===s?",":s,n=t.lineDelimiter,o=void 0===n?"\n":n,l=this.w;i||(i=l.config.series);var c=[],h=[],d="",u=l.globals.series.map((function(t,e){return-1===l.globals.collapsedSeriesIndices.indexOf(e)?t:[]})),g=Math.max.apply(Math,x(i.map((function(t){return t.data?t.data.length:0})))),p=new j(this.ctx),f=new _(this.ctx),m=function(t){var i="";if(l.globals.axisCharts){if("category"===l.config.xaxis.type||l.config.xaxis.convertedCatToNumeric)if(l.globals.isBarHorizontal){var a=l.globals.yLabelFormatters[0],s=new $(e.ctx).getActiveConfigSeriesIndex();i=a(l.globals.labels[t],{seriesIndex:s,dataPointIndex:t,w:l})}else i=f.getLabel(l.globals.labels,l.globals.timescaleLabels,0,t).text;"datetime"===l.config.xaxis.type&&(l.config.xaxis.categories.length?i=l.config.xaxis.categories[t]:l.config.labels.length&&(i=l.config.labels[t]))}else i=l.config.labels[t];return Array.isArray(i)&&(i=i.join(" ")),v.isNumber(i)?i:i.split(r).join("")};c.push(l.config.chart.toolbar.export.csv.headerCategory),"boxPlot"===l.config.chart.type?(c.push("minimum"),c.push("q1"),c.push("median"),c.push("q3"),c.push("maximum")):"candlestick"===l.config.chart.type?(c.push("open"),c.push("high"),c.push("low"),c.push("close")):"rangeBar"===l.config.chart.type?(c.push("minimum"),c.push("maximum")):i.map((function(t,e){var i=(t.name?t.name:"series-".concat(e))+"";l.globals.axisCharts&&c.push(i.split(r).join("")?i.split(r).join(""):"series-".concat(e))})),l.globals.axisCharts||(c.push(l.config.chart.toolbar.export.csv.headerValue),h.push(c.join(r))),i.map((function(t,e){l.globals.axisCharts?function(t,e){if(c.length&&0===e&&h.push(c.join(r)),t.data){t.data=t.data.length&&t.data||x(Array(g)).map((function(){return""}));for(var a=0;a<t.data.length;a++){c=[];var s=m(a);if(s||(p.isFormatXY()?s=i[e].data[a].x:p.isFormat2DArray()&&(s=i[e].data[a]?i[e].data[a][0]:"")),0===e){c.push((d=s,"datetime"===l.config.xaxis.type&&String(d).length>=10?l.config.chart.toolbar.export.csv.dateFormatter(s):v.isNumber(s)?s:s.split(r).join("")));for(var n=0;n<l.globals.series.length;n++){var o;p.isFormatXY()?c.push(null===(o=i[n].data[a])||void 0===o?void 0:o.y):c.push(u[n][a])}}("candlestick"===l.config.chart.type||t.type&&"candlestick"===t.type)&&(c.pop(),c.push(l.globals.seriesCandleO[e][a]),c.push(l.globals.seriesCandleH[e][a]),c.push(l.globals.seriesCandleL[e][a]),c.push(l.globals.seriesCandleC[e][a])),("boxPlot"===l.config.chart.type||t.type&&"boxPlot"===t.type)&&(c.pop(),c.push(l.globals.seriesCandleO[e][a]),c.push(l.globals.seriesCandleH[e][a]),c.push(l.globals.seriesCandleM[e][a]),c.push(l.globals.seriesCandleL[e][a]),c.push(l.globals.seriesCandleC[e][a])),"rangeBar"===l.config.chart.type&&(c.pop(),c.push(l.globals.seriesRangeStart[e][a]),c.push(l.globals.seriesRangeEnd[e][a])),c.length&&h.push(c.join(r))}}var d}(t,e):((c=[]).push(l.globals.labels[e].split(r).join("")),c.push(u[e]),h.push(c.join(r)))})),d+=h.join(o),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\ufeff"+d),a||l.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(t,e,i){var a=document.createElement("a");a.href=t,a.download=(e||this.w.globals.chartID)+i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}}]),t}(),G=function(){function t(e,i){o(this,t),this.ctx=e,this.elgrid=i,this.w=e.w;var a=this.w;this.axesUtils=new _(e),this.xaxisLabels=a.globals.labels.slice(),a.globals.timescaleLabels.length>0&&!a.globals.isBarHorizontal&&(this.xaxisLabels=a.globals.timescaleLabels.slice()),a.config.xaxis.overwriteCategories&&(this.xaxisLabels=a.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===a.config.xaxis.position?this.offY=0:this.offY=a.globals.gridHeight+1,this.offY=this.offY+a.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===a.config.chart.type&&a.config.plotOptions.bar.horizontal,this.xaxisFontSize=a.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=a.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=a.config.xaxis.labels.style.colors,this.xaxisBorderWidth=a.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=a.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=a.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=a.config.xaxis.axisBorder.height,this.yaxis=a.config.yaxis[0]}return c(t,[{key:"drawXaxis",value:function(){var t=this.w,e=new k(this.ctx),i=e.group({class:"apexcharts-xaxis",transform:"translate(".concat(t.config.xaxis.offsetX,", ").concat(t.config.xaxis.offsetY,")")}),a=e.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});i.add(a);for(var s=[],r=0;r<this.xaxisLabels.length;r++)s.push(this.xaxisLabels[r]);if(this.drawXAxisLabelAndGroup(!0,e,a,s,t.globals.isXNumeric,(function(t,e){return e})),t.globals.hasXaxisGroups){var n=t.globals.groups;s=[];for(var o=0;o<n.length;o++)s.push(n[o].title);var l={};t.config.xaxis.group.style&&(l.xaxisFontSize=t.config.xaxis.group.style.fontSize,l.xaxisFontFamily=t.config.xaxis.group.style.fontFamily,l.xaxisForeColors=t.config.xaxis.group.style.colors,l.fontWeight=t.config.xaxis.group.style.fontWeight,l.cssClass=t.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,e,a,s,!1,(function(t,e){return n[t].cols*e}),l)}if(void 0!==t.config.xaxis.title.text){var c=e.group({class:"apexcharts-xaxis-title"}),h=e.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+("bottom"===t.config.xaxis.position?t.globals.xAxisLabelsHeight:-t.globals.xAxisLabelsHeight-10)+t.config.xaxis.title.offsetY,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass});c.add(h),i.add(c)}if(t.config.xaxis.axisBorder.show){var d=t.globals.barPadForNumericAxis,u=e.drawLine(t.globals.padHorizontal+t.config.xaxis.axisBorder.offsetX-d,this.offY,this.xaxisBorderWidth+d,this.offY,t.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(u):i.add(u)}return i}},{key:"drawXAxisLabelAndGroup",value:function(t,e,i,a,s,r){var n,o=this,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},c=[],h=[],d=this.w,u=l.xaxisFontSize||this.xaxisFontSize,g=l.xaxisFontFamily||this.xaxisFontFamily,p=l.xaxisForeColors||this.xaxisForeColors,f=l.fontWeight||d.config.xaxis.labels.style.fontWeight,x=l.cssClass||d.config.xaxis.labels.style.cssClass,m=d.globals.padHorizontal,b=a.length,v="category"===d.config.xaxis.type?d.globals.dataPoints:b;if(0===v&&b>v&&(v=b),s){var y=v>1?v-1:v;n=d.globals.gridWidth/Math.min(y,b-1),m=m+r(0,n)/2+d.config.xaxis.labels.offsetX}else n=d.globals.gridWidth/v,m=m+r(0,n)+d.config.xaxis.labels.offsetX;for(var w=function(s){var l=m-r(s,n)/2+d.config.xaxis.labels.offsetX;0===s&&1===b&&n/2===m&&1===v&&(l=d.globals.gridWidth/2);var y=o.axesUtils.getLabel(a,d.globals.timescaleLabels,l,s,c,u,t),w=28;if(d.globals.rotateXLabels&&t&&(w=22),d.config.xaxis.title.text&&"top"===d.config.xaxis.position&&(w+=parseFloat(d.config.xaxis.title.style.fontSize)+2),t||(w=w+parseFloat(u)+(d.globals.xAxisLabelsHeight-d.globals.xAxisGroupLabelsHeight)+(d.globals.rotateXLabels?10:0)),y=void 0!==d.config.xaxis.tickAmount&&"dataPoints"!==d.config.xaxis.tickAmount&&"datetime"!==d.config.xaxis.type?o.axesUtils.checkLabelBasedOnTickamount(s,y,b):o.axesUtils.checkForOverflowingLabels(s,y,b,c,h),d.config.xaxis.labels.show){var k=e.drawText({x:y.x,y:o.offY+d.config.xaxis.labels.offsetY+w-("top"===d.config.xaxis.position?d.globals.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:y.text,textAnchor:"middle",fontWeight:y.isBold?600:f,fontSize:u,fontFamily:g,foreColor:Array.isArray(p)?t&&d.config.xaxis.convertedCatToNumeric?p[d.globals.minX+s-1]:p[s]:p,isPlainText:!1,cssClass:(t?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+x});if(i.add(k),k.on("click",(function(t){if("function"==typeof d.config.chart.events.xAxisLabelClick){var e=Object.assign({},d,{labelIndex:s});d.config.chart.events.xAxisLabelClick(t,o.ctx,e)}})),t){var A=document.createElementNS(d.globals.SVGNS,"title");A.textContent=Array.isArray(y.text)?y.text.join(" "):y.text,k.node.appendChild(A),""!==y.text&&(c.push(y.text),h.push(y))}}s<b-1&&(m+=r(s+1,n))},k=0;k<=b-1;k++)w(k)}},{key:"drawXaxisInversed",value:function(t){var e,i,a=this,s=this.w,r=new k(this.ctx),n=s.config.yaxis[0].opposite?s.globals.translateYAxisX[t]:0,o=r.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:t}),l=r.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+n+", 0)"});o.add(l);var c=[];if(s.config.yaxis[t].show)for(var h=0;h<this.xaxisLabels.length;h++)c.push(this.xaxisLabels[h]);e=s.globals.gridHeight/c.length,i=-e/2.2;var d=s.globals.yLabelFormatters[0],u=s.config.yaxis[0].labels;if(u.show)for(var g=function(n){var o=void 0===c[n]?"":c[n];o=d(o,{seriesIndex:t,dataPointIndex:n,w:s});var h=a.axesUtils.getYAxisForeColor(u.style.colors,t),g=0;Array.isArray(o)&&(g=o.length/2*parseInt(u.style.fontSize,10));var p=u.offsetX-15,f="end";a.yaxis.opposite&&(f="start"),"left"===s.config.yaxis[0].labels.align?(p=u.offsetX,f="start"):"center"===s.config.yaxis[0].labels.align?(p=u.offsetX,f="middle"):"right"===s.config.yaxis[0].labels.align&&(f="end");var x=r.drawText({x:p,y:i+e+u.offsetY-g,text:o,textAnchor:f,foreColor:Array.isArray(h)?h[n]:h,fontSize:u.style.fontSize,fontFamily:u.style.fontFamily,fontWeight:u.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+u.style.cssClass,maxWidth:u.maxWidth});l.add(x),x.on("click",(function(t){if("function"==typeof s.config.chart.events.xAxisLabelClick){var e=Object.assign({},s,{labelIndex:n});s.config.chart.events.xAxisLabelClick(t,a.ctx,e)}}));var m=document.createElementNS(s.globals.SVGNS,"title");if(m.textContent=Array.isArray(o)?o.join(" "):o,x.node.appendChild(m),0!==s.config.yaxis[t].labels.rotate){var b=r.rotateAroundCenter(x.node);x.node.setAttribute("transform","rotate(".concat(s.config.yaxis[t].labels.rotate," 0 ").concat(b.y,")"))}i+=e},p=0;p<=c.length-1;p++)g(p);if(void 0!==s.config.yaxis[0].title.text){var f=r.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+n+", 0)"}),x=r.drawText({x:s.config.yaxis[0].title.offsetX,y:s.globals.gridHeight/2+s.config.yaxis[0].title.offsetY,text:s.config.yaxis[0].title.text,textAnchor:"middle",foreColor:s.config.yaxis[0].title.style.color,fontSize:s.config.yaxis[0].title.style.fontSize,fontWeight:s.config.yaxis[0].title.style.fontWeight,fontFamily:s.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+s.config.yaxis[0].title.style.cssClass});f.add(x),o.add(f)}var m=0;this.isCategoryBarHorizontal&&s.config.yaxis[0].opposite&&(m=s.globals.gridWidth);var b=s.config.xaxis.axisBorder;if(b.show){var v=r.drawLine(s.globals.padHorizontal+b.offsetX+m,1+b.offsetY,s.globals.padHorizontal+b.offsetX+m,s.globals.gridHeight+b.offsetY,b.color,0);this.elgrid&&this.elgrid.elGridBorders&&s.config.grid.show?this.elgrid.elGridBorders.add(v):o.add(v)}return s.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(m,c.length,s.config.yaxis[0].axisBorder,s.config.yaxis[0].axisTicks,0,e,o),o}},{key:"drawXaxisTicks",value:function(t,e,i){var a=this.w,s=t;if(!(t<0||t-2>a.globals.gridWidth)){var r=this.offY+a.config.xaxis.axisTicks.offsetY;if(e=e+r+a.config.xaxis.axisTicks.height,"top"===a.config.xaxis.position&&(e=r-a.config.xaxis.axisTicks.height),a.config.xaxis.axisTicks.show){var n=new k(this.ctx).drawLine(t+a.config.xaxis.axisTicks.offsetX,r+a.config.xaxis.offsetY,s+a.config.xaxis.axisTicks.offsetX,e+a.config.xaxis.offsetY,a.config.xaxis.axisTicks.color);i.add(n),n.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var t=this.w,e=[],i=this.xaxisLabels.length,a=t.globals.padHorizontal;if(t.globals.timescaleLabels.length>0)for(var s=0;s<i;s++)a=this.xaxisLabels[s].position,e.push(a);else for(var r=i,n=0;n<r;n++){var o=r;t.globals.isXNumeric&&"bar"!==t.config.chart.type&&(o-=1),a+=t.globals.gridWidth/o,e.push(a)}return e}},{key:"xAxisLabelCorrections",value:function(){var t=this.w,e=new k(this.ctx),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(t.globals.rotateXLabels||t.config.xaxis.labels.rotateAlways)for(var n=0;n<a.length;n++){var o=e.rotateAroundCenter(a[n]);o.y=o.y-1,o.x=o.x+1,a[n].setAttribute("transform","rotate(".concat(t.config.xaxis.labels.rotate," ").concat(o.x," ").concat(o.y,")")),a[n].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")"));var l=a[n].childNodes;t.config.xaxis.labels.trim&&Array.prototype.forEach.call(l,(function(i){e.placeTextWithEllipsis(i,i.textContent,t.globals.xAxisLabelsHeight-("bottom"===t.config.legend.position?20:10))}))}else!function(){for(var i=t.globals.gridWidth/(t.globals.labels.length+1),s=0;s<a.length;s++){var r=a[s].childNodes;t.config.xaxis.labels.trim&&"datetime"!==t.config.xaxis.type&&Array.prototype.forEach.call(r,(function(t){e.placeTextWithEllipsis(t,t.textContent,i)}))}}();if(s.length>0){var c=s[s.length-1].getBBox(),h=s[0].getBBox();c.x<-20&&s[s.length-1].parentNode.removeChild(s[s.length-1]),h.x+h.width>t.globals.gridWidth&&!t.globals.isBarHorizontal&&s[0].parentNode.removeChild(s[0]);for(var d=0;d<r.length;d++)e.placeTextWithEllipsis(r[d],r[d].textContent,t.config.yaxis[0].labels.maxWidth-(t.config.yaxis[0].title.text?2*parseFloat(t.config.yaxis[0].title.style.fontSize):0)-15)}}}]),t}(),U=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.xaxisLabels=i.globals.labels.slice(),this.axesUtils=new _(e),this.isRangeBar=i.globals.seriesRange.length&&i.globals.isBarHorizontal,i.globals.timescaleLabels.length>0&&(this.xaxisLabels=i.globals.timescaleLabels.slice())}return c(t,[{key:"drawGridArea",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=new k(this.ctx);null===t&&(t=i.group({class:"apexcharts-grid"}));var a=i.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.globals.gridHeight,"transparent"),s=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,"transparent");return t.add(s),t.add(a),t}},{key:"drawGrid",value:function(){var t=null;return this.w.globals.axisCharts&&(t=this.renderGrid(),this.drawGridArea(t.el)),t}},{key:"createGridMask",value:function(){var t=this.w,e=t.globals,i=new k(this.ctx),a=Array.isArray(t.config.stroke.width)?0:t.config.stroke.width;if(Array.isArray(t.config.stroke.width)){var s=0;t.config.stroke.width.forEach((function(t){s=Math.max(s,t)})),a=s}e.dom.elGridRectMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(e.cuid)),e.dom.elGridRectMarkerMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(e.cuid)),e.dom.elForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elForecastMask.setAttribute("id","forecastMask".concat(e.cuid)),e.dom.elNonForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(e.cuid));var r=t.config.chart.type,n=0,o=0;("bar"===r||"rangeBar"===r||"candlestick"===r||"boxPlot"===r||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&(n=t.config.grid.padding.left,o=t.config.grid.padding.right,e.barPadForNumericAxis>n&&(n=e.barPadForNumericAxis,o=e.barPadForNumericAxis)),e.dom.elGridRect=i.drawRect(-a-n-2,2*-a-2,e.gridWidth+a+o+n+4,e.gridHeight+4*a+4,0,"#fff");var l=t.globals.markers.largestSize+1;e.dom.elGridRectMarker=i.drawRect(2*-l,2*-l,e.gridWidth+4*l,e.gridHeight+4*l,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);var c=e.dom.baseEl.querySelector("defs");c.appendChild(e.dom.elGridRectMask),c.appendChild(e.dom.elForecastMask),c.appendChild(e.dom.elNonForecastMask),c.appendChild(e.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(t){var e=t.i,i=t.x1,a=t.y1,s=t.x2,r=t.y2,n=t.xCount,o=t.parent,l=this.w;if(!(0===e&&l.globals.skipFirstTimelinelabel||e===n-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type)){l.config.grid.xaxis.lines.show&&this._drawGridLine({i:e,x1:i,y1:a,x2:s,y2:r,xCount:n,parent:o});var c=0;if(l.globals.hasXaxisGroups&&"between"===l.config.xaxis.tickPlacement){var h=l.globals.groups;if(h){for(var d=0,u=0;d<e&&u<h.length;u++)d+=h[u].cols;d===e&&(c=.6*l.globals.xAxisLabelsHeight)}}new G(this.ctx).drawXaxisTicks(i,c,l.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(t){var e=t.i,i=t.x1,a=t.y1,s=t.x2,r=t.y2,n=t.xCount,o=t.parent,l=this.w,c=!1,h=o.node.classList.contains("apexcharts-gridlines-horizontal"),d=l.config.grid.strokeDashArray,u=l.globals.barPadForNumericAxis;(0===a&&0===r||0===i&&0===s)&&(c=!0),a===l.globals.gridHeight&&r===l.globals.gridHeight&&(c=!0),!l.globals.isBarHorizontal||0!==e&&e!==n-1||(c=!0);var g=new k(this).drawLine(i-(h?u:0),a,s+(h?u:0),r,l.config.grid.borderColor,d);g.node.classList.add("apexcharts-gridline"),c&&l.config.grid.show?this.elGridBorders.add(g):o.add(g)}},{key:"_drawGridBandRect",value:function(t){var e=t.c,i=t.x1,a=t.y1,s=t.x2,r=t.y2,n=t.type,o=this.w,l=new k(this.ctx),c=o.globals.barPadForNumericAxis;if("column"!==n||"datetime"!==o.config.xaxis.type){var h=o.config.grid[n].colors[e],d=l.drawRect(i-("row"===n?c:0),a,s+("row"===n?2*c:0),r,0,h,o.config.grid[n].opacity);this.elg.add(d),d.attr("clip-path","url(#gridRectMask".concat(o.globals.cuid,")")),d.node.classList.add("apexcharts-grid-".concat(n))}}},{key:"_drawXYLines",value:function(t){var e=this,i=t.xCount,a=t.tickAmount,s=this.w;if(s.config.grid.xaxis.lines.show||s.config.xaxis.axisTicks.show){var r,n=s.globals.padHorizontal,o=s.globals.gridHeight;s.globals.timescaleLabels.length?function(t){for(var a=t.xC,s=t.x1,r=t.y1,n=t.x2,o=t.y2,l=0;l<a;l++)s=e.xaxisLabels[l].position,n=e.xaxisLabels[l].position,e._drawGridLines({i:l,x1:s,y1:r,x2:n,y2:o,xCount:i,parent:e.elgridLinesV})}({xC:i,x1:n,y1:0,x2:r,y2:o}):(s.globals.isXNumeric&&(i=s.globals.xAxisScale.result.length),function(t){for(var a=t.xC,r=t.x1,n=t.y1,o=t.x2,l=t.y2,c=0;c<a+(s.globals.isXNumeric?0:1);c++)0===c&&1===a&&1===s.globals.dataPoints&&(o=r=s.globals.gridWidth/2),e._drawGridLines({i:c,x1:r,y1:n,x2:o,y2:l,xCount:i,parent:e.elgridLinesV}),o=r+=s.globals.gridWidth/(s.globals.isXNumeric?a-1:a)}({xC:i,x1:n,y1:0,x2:r,y2:o}))}if(s.config.grid.yaxis.lines.show){var l=0,c=0,h=s.globals.gridWidth,d=a+1;this.isRangeBar&&(d=s.globals.labels.length);for(var u=0;u<d+(this.isRangeBar?1:0);u++)this._drawGridLine({i:u,xCount:d+(this.isRangeBar?1:0),x1:0,y1:l,x2:h,y2:c,parent:this.elgridLinesH}),c=l+=s.globals.gridHeight/(this.isRangeBar?d:a)}}},{key:"_drawInvertedXYLines",value:function(t){var e=t.xCount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show)for(var a,s=i.globals.padHorizontal,r=i.globals.gridHeight,n=0;n<e+1;n++)i.config.grid.xaxis.lines.show&&this._drawGridLine({i:n,xCount:e+1,x1:s,y1:0,x2:a,y2:r,parent:this.elgridLinesV}),new G(this.ctx).drawXaxisTicks(s,0,i.globals.dom.elGraphical),a=s=s+i.globals.gridWidth/e+.3;if(i.config.grid.yaxis.lines.show)for(var o=0,l=0,c=i.globals.gridWidth,h=0;h<i.globals.dataPoints+1;h++)this._drawGridLine({i:h,xCount:i.globals.dataPoints+1,x1:0,y1:o,x2:c,y2:l,parent:this.elgridLinesH}),l=o+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var t=this.w,e=new k(this.ctx);this.elg=e.group({class:"apexcharts-grid"}),this.elgridLinesH=e.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=e.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=e.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),t.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var i,a=t.globals.yAxisScale.length?t.globals.yAxisScale[0].result.length-1:5,s=0;s<t.globals.series.length&&(void 0!==t.globals.yAxisScale[s]&&(a=t.globals.yAxisScale[s].result.length-1),!(a>2));s++);return!t.globals.isBarHorizontal||this.isRangeBar?(i=this.xaxisLabels.length,this.isRangeBar&&(i--,a=t.globals.labels.length,t.config.xaxis.tickAmount&&t.config.xaxis.labels.formatter&&(i=t.config.xaxis.tickAmount)),this._drawXYLines({xCount:i,tickAmount:a})):(i=a,a=t.globals.xTickAmount,this._drawInvertedXYLines({xCount:i,tickAmount:a})),this.drawGridBands(i,a),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:t.globals.gridWidth/i}}},{key:"drawGridBands",value:function(t,e){var i=this.w;if(void 0!==i.config.grid.row.colors&&i.config.grid.row.colors.length>0)for(var a=0,s=i.globals.gridHeight/e,r=i.globals.gridWidth,n=0,o=0;n<e;n++,o++)o>=i.config.grid.row.colors.length&&(o=0),this._drawGridBandRect({c:o,x1:0,y1:a,x2:r,y2:s,type:"row"}),a+=i.globals.gridHeight/e;if(void 0!==i.config.grid.column.colors&&i.config.grid.column.colors.length>0)for(var l=i.globals.isBarHorizontal||"on"!==i.config.xaxis.tickPlacement||"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric?t:t-1,c=i.globals.padHorizontal,h=i.globals.padHorizontal+i.globals.gridWidth/l,d=i.globals.gridHeight,u=0,g=0;u<t;u++,g++)g>=i.config.grid.column.colors.length&&(g=0),this._drawGridBandRect({c:g,x1:c,y1:0,x2:h,y2:d,type:"column"}),c+=i.globals.gridWidth/l}}]),t}(),q=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"niceScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4?arguments[4]:void 0,r=this.w,n=Math.abs(e-t);if("dataPoints"===(i=this._adjustTicksForSmallRange(i,a,n))&&(i=r.globals.dataPoints-1),t===Number.MIN_VALUE&&0===e||!v.isNumber(t)&&!v.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)return t=0,e=i,this.linearScale(t,e,i);t>e?(console.warn("axis.min cannot be greater than axis.max"),e=t+.1):t===e&&(t=0===t?0:t-.5,e=0===e?2:e+.5);var o=[];n<1&&s&&("candlestick"===r.config.chart.type||"candlestick"===r.config.series[a].type||"boxPlot"===r.config.chart.type||"boxPlot"===r.config.series[a].type||r.globals.isRangeData)&&(e*=1.01);var l=i+1;l<2?l=2:l>2&&(l-=2);var c=n/l,h=Math.floor(v.log10(c)),d=Math.pow(10,h),u=Math.round(c/d);u<1&&(u=1);var g=u*d,p=g*Math.floor(t/g),f=g*Math.ceil(e/g),x=p;if(s&&n>2){for(;o.push(v.stripNumber(x,7)),!((x+=g)>f););return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}var m=t;(o=[]).push(v.stripNumber(m,7));for(var b=Math.abs(e-t)/i,y=0;y<=i;y++)m+=b,o.push(m);return o[o.length-2]>=e&&o.pop(),{result:o,niceMin:o[0],niceMax:o[o.length-1]}}},{key:"linearScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,a=arguments.length>3?arguments[3]:void 0,s=Math.abs(e-t);"dataPoints"===(i=this._adjustTicksForSmallRange(i,a,s))&&(i=this.w.globals.dataPoints-1);var r=s/i;i===Number.MAX_VALUE&&(i=10,r=1);for(var n=[],o=t;i>=0;)n.push(o),o+=r,i-=1;return{result:n,niceMin:n[0],niceMax:n[n.length-1]}}},{key:"logarithmicScaleNice",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var a=[],s=Math.ceil(Math.log(e)/Math.log(i)+1),r=Math.floor(Math.log(t)/Math.log(i));r<s;r++)a.push(Math.pow(i,r));return{result:a,niceMin:a[0],niceMax:a[a.length-1]}}},{key:"logarithmicScale",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var a=[],s=Math.log(e)/Math.log(i),r=Math.log(t)/Math.log(i),n=s-r,o=Math.round(n),l=n/o,c=0,h=r;c<o;c++,h+=l)a.push(Math.pow(i,h));return a.push(Math.pow(i,s)),{result:a,niceMin:t,niceMax:e}}},{key:"_adjustTicksForSmallRange",value:function(t,e,i){var a=t;if(void 0!==e&&this.w.config.yaxis[e].labels.formatter&&void 0===this.w.config.yaxis[e].tickAmount){var s=Number(this.w.config.yaxis[e].labels.formatter(1));v.isNumber(s)&&0===this.w.globals.yValueDecimal&&(a=Math.ceil(i))}return a<t?a:t}},{key:"setYScaleForIndex",value:function(t,e,i){var a=this.w.globals,s=this.w.config,r=a.isBarHorizontal?s.xaxis:s.yaxis[t];void 0===a.yAxisScale[t]&&(a.yAxisScale[t]=[]);var n=Math.abs(i-e);if(r.logarithmic&&n<=5&&(a.invalidLogScale=!0),r.logarithmic&&n>5)a.allSeriesCollapsed=!1,a.yAxisScale[t]=this.logarithmicScale(e,i,r.logBase),a.yAxisScale[t]=r.forceNiceScale?this.logarithmicScaleNice(e,i,r.logBase):this.logarithmicScale(e,i,r.logBase);else if(i!==-Number.MAX_VALUE&&v.isNumber(i))if(a.allSeriesCollapsed=!1,void 0===r.min&&void 0===r.max||r.forceNiceScale){var o=void 0===s.yaxis[t].max&&void 0===s.yaxis[t].min||s.yaxis[t].forceNiceScale;a.yAxisScale[t]=this.niceScale(e,i,r.tickAmount?r.tickAmount:n<5&&n>1?n+1:5,t,o)}else a.yAxisScale[t]=this.linearScale(e,i,r.tickAmount,t);else a.yAxisScale[t]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(t,e){var i=this.w,a=i.globals,s=i.config.xaxis,r=Math.abs(e-t);return e!==-Number.MAX_VALUE&&v.isNumber(e)?a.xAxisScale=this.linearScale(t,e,s.tickAmount?s.tickAmount:r<5&&r>1?r+1:5,0):a.xAxisScale=this.linearScale(0,5,5),a.xAxisScale}},{key:"setMultipleYScales",value:function(){var t=this,e=this.w.globals,i=this.w.config,a=e.minYArr.concat([]),s=e.maxYArr.concat([]),r=[];i.yaxis.forEach((function(e,n){var o=n;i.series.forEach((function(t,i){t.name===e.seriesName&&(o=i,n!==i?r.push({index:i,similarIndex:n,alreadyExists:!0}):r.push({index:i}))}));var l=a[o],c=s[o];t.setYScaleForIndex(n,l,c)})),this.sameScaleInMultipleAxes(a,s,r)}},{key:"sameScaleInMultipleAxes",value:function(t,e,i){var a=this,s=this.w.config,r=this.w.globals,n=[];i.forEach((function(t){t.alreadyExists&&(void 0===n[t.index]&&(n[t.index]=[]),n[t.index].push(t.index),n[t.index].push(t.similarIndex))})),r.yAxisSameScaleIndices=n,n.forEach((function(t,e){n.forEach((function(i,a){var s,r;e!==a&&(s=t,r=i,s.filter((function(t){return-1!==r.indexOf(t)}))).length>0&&(n[e]=n[e].concat(n[a]))}))}));var o=n.map((function(t){return t.filter((function(e,i){return t.indexOf(e)===i}))})).map((function(t){return t.sort()}));n=n.filter((function(t){return!!t}));var l=o.slice(),c=l.map((function(t){return JSON.stringify(t)}));l=l.filter((function(t,e){return c.indexOf(JSON.stringify(t))===e}));var h=[],d=[];t.forEach((function(t,i){l.forEach((function(a,s){a.indexOf(i)>-1&&(void 0===h[s]&&(h[s]=[],d[s]=[]),h[s].push({key:i,value:t}),d[s].push({key:i,value:e[i]}))}))}));var u=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),g=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);h.forEach((function(t,e){t.forEach((function(t,i){u[e]=Math.min(t.value,u[e])}))})),d.forEach((function(t,e){t.forEach((function(t,i){g[e]=Math.max(t.value,g[e])}))})),t.forEach((function(t,e){d.forEach((function(t,i){var n=u[i],o=g[i];s.chart.stacked&&(o=0,t.forEach((function(t,e){t.value!==-Number.MAX_VALUE&&(o+=t.value),n!==Number.MIN_VALUE&&(n+=h[i][e].value)}))),t.forEach((function(i,l){t[l].key===e&&(void 0!==s.yaxis[e].min&&(n="function"==typeof s.yaxis[e].min?s.yaxis[e].min(r.minY):s.yaxis[e].min),void 0!==s.yaxis[e].max&&(o="function"==typeof s.yaxis[e].max?s.yaxis[e].max(r.maxY):s.yaxis[e].max),a.setYScaleForIndex(e,n,o))}))}))}))}},{key:"autoScaleY",value:function(t,e,i){t||(t=this);var a=t.w;if(a.globals.isMultipleYAxis||a.globals.collapsedSeries.length)return console.warn("autoScaleYaxis not supported in a multi-yaxis chart."),e;var s=a.globals.seriesX[0],r=a.config.chart.stacked;return e.forEach((function(t,n){for(var o=0,l=0;l<s.length;l++)if(s[l]>=i.xaxis.min){o=l;break}var c,h,d=a.globals.minYArr[n],u=a.globals.maxYArr[n],g=a.globals.stackedSeriesTotals;a.globals.series.forEach((function(n,l){var p=n[o];r?(p=g[o],c=h=p,g.forEach((function(t,e){s[e]<=i.xaxis.max&&s[e]>=i.xaxis.min&&(t>h&&null!==t&&(h=t),n[e]<c&&null!==n[e]&&(c=n[e]))}))):(c=h=p,n.forEach((function(t,e){if(s[e]<=i.xaxis.max&&s[e]>=i.xaxis.min){var r=t,n=t;a.globals.series.forEach((function(i,a){null!==t&&(r=Math.min(i[e],r),n=Math.max(i[e],n))})),n>h&&null!==n&&(h=n),r<c&&null!==r&&(c=r)}}))),void 0===c&&void 0===h&&(c=d,h=u),h*=h<0?.9:1.1,0==(c*=c<0?1.1:.9)&&0===h&&(c=-1,h=1),h<0&&h<u&&(h=u),c<0&&c>d&&(c=d),e.length>1?(e[l].min=void 0===t.min?c:t.min,e[l].max=void 0===t.max?h:t.max):(e[0].min=void 0===t.min?c:t.min,e[0].max=void 0===t.max?h:t.max)}))})),e}}]),t}(),Z=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w,this.scales=new q(e)}return c(t,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=this.w.config,r=this.w.globals,n=-Number.MAX_VALUE,o=Number.MIN_VALUE;null===a&&(a=t+1);var l=r.series,c=l,h=l;"candlestick"===s.chart.type?(c=r.seriesCandleL,h=r.seriesCandleH):"boxPlot"===s.chart.type?(c=r.seriesCandleO,h=r.seriesCandleC):r.isRangeData&&(c=r.seriesRangeStart,h=r.seriesRangeEnd);for(var d=t;d<a;d++){r.dataPoints=Math.max(r.dataPoints,l[d].length),r.categoryLabels.length&&(r.dataPoints=r.categoryLabels.filter((function(t){return void 0!==t})).length),r.labels.length&&"datetime"!==s.xaxis.type&&0!==r.series.reduce((function(t,e){return t+e.length}),0)&&(r.dataPoints=Math.max(r.dataPoints,r.labels.length));for(var u=0;u<r.series[d].length;u++){var g=l[d][u];null!==g&&v.isNumber(g)?(void 0!==h[d][u]&&(n=Math.max(n,h[d][u]),e=Math.min(e,h[d][u])),void 0!==c[d][u]&&(e=Math.min(e,c[d][u]),i=Math.max(i,c[d][u])),"candlestick"!==this.w.config.chart.type&&"boxPlot"!==this.w.config.chart.type&&"rangeArea"===this.w.config.chart.type&&"rangeBar"===this.w.config.chart.type||("candlestick"!==this.w.config.chart.type&&"boxPlot"!==this.w.config.chart.type||void 0!==r.seriesCandleC[d][u]&&(n=Math.max(n,r.seriesCandleO[d][u]),n=Math.max(n,r.seriesCandleH[d][u]),n=Math.max(n,r.seriesCandleL[d][u]),n=Math.max(n,r.seriesCandleC[d][u]),"boxPlot"===this.w.config.chart.type&&(n=Math.max(n,r.seriesCandleM[d][u]))),!s.series[d].type||"candlestick"===s.series[d].type&&"boxPlot"===s.series[d].type&&"rangeArea"===s.series[d].type&&"rangeBar"===s.series[d].type||(n=Math.max(n,r.series[d][u]),e=Math.min(e,r.series[d][u])),i=n),r.seriesGoals[d]&&r.seriesGoals[d][u]&&Array.isArray(r.seriesGoals[d][u])&&r.seriesGoals[d][u].forEach((function(t){o!==Number.MIN_VALUE&&(o=Math.min(o,t.value),e=o),n=Math.max(n,t.value),i=n})),v.isFloat(g)&&(g=v.noExponents(g),r.yValueDecimal=Math.max(r.yValueDecimal,g.toString().split(".")[1].length)),o>c[d][u]&&c[d][u]<0&&(o=c[d][u])):r.hasNullValues=!0}}return"rangeBar"===s.chart.type&&r.seriesRangeStart.length&&r.isBarHorizontal&&(o=e),"bar"===s.chart.type&&(o<0&&n<0&&(n=0),o===Number.MIN_VALUE&&(o=0)),{minY:o,maxY:n,lowestY:e,highestY:i}}},{key:"setYRange",value:function(){var t=this.w.globals,e=this.w.config;t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(t.isMultipleYAxis)for(var a=0;a<t.series.length;a++){var s=this.getMinYMaxY(a,i,null,a+1);t.minYArr.push(s.minY),t.maxYArr.push(s.maxY),i=s.lowestY}var r=this.getMinYMaxY(0,i,null,t.series.length);if(t.minY=r.minY,t.maxY=r.maxY,i=r.lowestY,e.chart.stacked&&this._setStackedMinMax(),("line"===e.chart.type||"area"===e.chart.type||"candlestick"===e.chart.type||"boxPlot"===e.chart.type||"rangeBar"===e.chart.type&&!t.isBarHorizontal)&&t.minY===Number.MIN_VALUE&&i!==-Number.MAX_VALUE&&i!==t.maxY){var n=t.maxY-i;(i>=0&&i<=10||void 0!==e.yaxis[0].min||void 0!==e.yaxis[0].max)&&(n=0),t.minY=i-5*n/100,i>0&&t.minY<0&&(t.minY=0),t.maxY=t.maxY+5*n/100}return e.yaxis.forEach((function(e,i){void 0!==e.max&&("number"==typeof e.max?t.maxYArr[i]=e.max:"function"==typeof e.max&&(t.maxYArr[i]=e.max(t.isMultipleYAxis?t.maxYArr[i]:t.maxY)),t.maxY=t.maxYArr[i]),void 0!==e.min&&("number"==typeof e.min?t.minYArr[i]=e.min:"function"==typeof e.min&&(t.minYArr[i]=e.min(t.isMultipleYAxis?t.minYArr[i]===Number.MIN_VALUE?0:t.minYArr[i]:t.minY)),t.minY=t.minYArr[i])})),t.isBarHorizontal&&["min","max"].forEach((function(i){void 0!==e.xaxis[i]&&"number"==typeof e.xaxis[i]&&("min"===i?t.minY=e.xaxis[i]:t.maxY=e.xaxis[i])})),t.isMultipleYAxis?(this.scales.setMultipleYScales(),t.minY=i,t.yAxisScale.forEach((function(e,i){t.minYArr[i]=e.niceMin,t.maxYArr[i]=e.niceMax}))):(this.scales.setYScaleForIndex(0,t.minY,t.maxY),t.minY=t.yAxisScale[0].niceMin,t.maxY=t.yAxisScale[0].niceMax,t.minYArr[0]=t.yAxisScale[0].niceMin,t.maxYArr[0]=t.yAxisScale[0].niceMax),{minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,yAxisScale:t.yAxisScale}}},{key:"setXRange",value:function(){var t=this.w.globals,e=this.w.config,i="numeric"===e.xaxis.type||"datetime"===e.xaxis.type||"category"===e.xaxis.type&&!t.noLabelsProvided||t.noLabelsProvided||t.isXNumeric;if(t.isXNumeric&&function(){for(var e=0;e<t.series.length;e++)if(t.labels[e])for(var i=0;i<t.labels[e].length;i++)null!==t.labels[e][i]&&v.isNumber(t.labels[e][i])&&(t.maxX=Math.max(t.maxX,t.labels[e][i]),t.initialMaxX=Math.max(t.maxX,t.labels[e][i]),t.minX=Math.min(t.minX,t.labels[e][i]),t.initialMinX=Math.min(t.minX,t.labels[e][i]))}(),t.noLabelsProvided&&0===e.xaxis.categories.length&&(t.maxX=t.labels[t.labels.length-1],t.initialMaxX=t.labels[t.labels.length-1],t.minX=1,t.initialMinX=1),t.isXNumeric||t.noLabelsProvided||t.dataFormatXNumeric){var a;if(void 0===e.xaxis.tickAmount?(a=Math.round(t.svgWidth/150),"numeric"===e.xaxis.type&&t.dataPoints<30&&(a=t.dataPoints-1),a>t.dataPoints&&0!==t.dataPoints&&(a=t.dataPoints-1)):"dataPoints"===e.xaxis.tickAmount?(t.series.length>1&&(a=t.series[t.maxValsInArrayIndex].length-1),t.isXNumeric&&(a=t.maxX-t.minX-1)):a=e.xaxis.tickAmount,t.xTickAmount=a,void 0!==e.xaxis.max&&"number"==typeof e.xaxis.max&&(t.maxX=e.xaxis.max),void 0!==e.xaxis.min&&"number"==typeof e.xaxis.min&&(t.minX=e.xaxis.min),void 0!==e.xaxis.range&&(t.minX=t.maxX-e.xaxis.range),t.minX!==Number.MAX_VALUE&&t.maxX!==-Number.MAX_VALUE)if(e.xaxis.convertedCatToNumeric&&!t.dataFormatXNumeric){for(var s=[],r=t.minX-1;r<t.maxX;r++)s.push(r+1);t.xAxisScale={result:s,niceMin:s[0],niceMax:s[s.length-1]}}else t.xAxisScale=this.scales.setXScale(t.minX,t.maxX);else t.xAxisScale=this.scales.linearScale(0,a,a),t.noLabelsProvided&&t.labels.length>0&&(t.xAxisScale=this.scales.linearScale(1,t.labels.length,a-1),t.seriesX=t.labels.slice());i&&(t.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&t.labels.length&&(t.xTickAmount=t.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.maxX}}},{key:"setZRange",value:function(){var t=this.w.globals;if(t.isDataXYZ)for(var e=0;e<t.series.length;e++)if(void 0!==t.seriesZ[e])for(var i=0;i<t.seriesZ[e].length;i++)null!==t.seriesZ[e][i]&&v.isNumber(t.seriesZ[e][i])&&(t.maxZ=Math.max(t.maxZ,t.seriesZ[e][i]),t.minZ=Math.min(t.minZ,t.seriesZ[e][i]))}},{key:"_handleSingleDataPoint",value:function(){var t=this.w.globals,e=this.w.config;if(t.minX===t.maxX){var i=new E(this.ctx);if("datetime"===e.xaxis.type){var a=i.getDate(t.minX);e.xaxis.labels.datetimeUTC?a.setUTCDate(a.getUTCDate()-2):a.setDate(a.getDate()-2),t.minX=new Date(a).getTime();var s=i.getDate(t.maxX);e.xaxis.labels.datetimeUTC?s.setUTCDate(s.getUTCDate()+2):s.setDate(s.getDate()+2),t.maxX=new Date(s).getTime()}else("numeric"===e.xaxis.type||"category"===e.xaxis.type&&!t.noLabelsProvided)&&(t.minX=t.minX-2,t.initialMinX=t.minX,t.maxX=t.maxX+2,t.initialMaxX=t.maxX)}}},{key:"_getMinXDiff",value:function(){var t=this.w.globals;t.isXNumeric&&t.seriesX.forEach((function(e,i){1===e.length&&e.push(t.seriesX[t.maxValsInArrayIndex][t.seriesX[t.maxValsInArrayIndex].length-1]);var a=e.slice();a.sort((function(t,e){return t-e})),a.forEach((function(e,i){if(i>0){var s=e-a[i-1];s>0&&(t.minXDiff=Math.min(s,t.minXDiff))}})),1!==t.dataPoints&&t.minXDiff!==Number.MAX_VALUE||(t.minXDiff=.5)}))}},{key:"_setStackedMinMax",value:function(){var t=this,e=this.w.globals;if(e.series.length){var i=e.seriesGroups;i.length||(i=[this.w.config.series.map((function(t){return t.name}))]);var a={},s={};i.forEach((function(i){a[i]=[],s[i]=[],t.w.config.series.map((function(t,e){return i.indexOf(t.name)>-1?e:null})).filter((function(t){return null!==t})).forEach((function(t){for(var r=0;r<e.series[e.maxValsInArrayIndex].length;r++)void 0===a[i][r]&&(a[i][r]=0,s[i][r]=0),null!==e.series[t][r]&&v.isNumber(e.series[t][r])&&(e.series[t][r]>0?a[i][r]+=parseFloat(e.series[t][r])+1e-4:s[i][r]+=parseFloat(e.series[t][r]))}))})),Object.entries(a).forEach((function(t){var i=f(t,1)[0];a[i].forEach((function(t,r){e.maxY=Math.max(e.maxY,a[i][r]),e.minY=Math.min(e.minY,s[i][r])}))}))}}}]),t}(),J=function(){function t(e,i){o(this,t),this.ctx=e,this.elgrid=i,this.w=e.w;var a=this.w;this.xaxisFontSize=a.config.xaxis.labels.style.fontSize,this.axisFontFamily=a.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=a.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===a.config.chart.type&&a.config.plotOptions.bar.horizontal,this.xAxisoffX=0,"bottom"===a.config.xaxis.position&&(this.xAxisoffX=a.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new _(e)}return c(t,[{key:"drawYaxis",value:function(t){var e=this,i=this.w,a=new k(this.ctx),s=i.config.yaxis[t].labels.style,r=s.fontSize,n=s.fontFamily,o=s.fontWeight,l=a.group({class:"apexcharts-yaxis",rel:t,transform:"translate("+i.globals.translateYAxisX[t]+", 0)"});if(this.axesUtils.isYAxisHidden(t))return l;var c=a.group({class:"apexcharts-yaxis-texts-g"});l.add(c);var h=i.globals.yAxisScale[t].result.length-1,d=i.globals.gridHeight/h,u=i.globals.translateY,g=i.globals.yLabelFormatters[t],p=i.globals.yAxisScale[t].result.slice();p=this.axesUtils.checkForReversedLabels(t,p);var f="";if(i.config.yaxis[t].labels.show)for(var x=function(l){var x=p[l];x=g(x,l,i);var m=i.config.yaxis[t].labels.padding;i.config.yaxis[t].opposite&&0!==i.config.yaxis.length&&(m*=-1);var b="end";i.config.yaxis[t].opposite&&(b="start"),"left"===i.config.yaxis[t].labels.align?b="start":"center"===i.config.yaxis[t].labels.align?b="middle":"right"===i.config.yaxis[t].labels.align&&(b="end");var v=e.axesUtils.getYAxisForeColor(s.colors,t),y=i.config.yaxis[t].labels.offsetY;"heatmap"===i.config.chart.type&&(y-=(i.globals.gridHeight/i.globals.series.length-1)/2);var w=a.drawText({x:m,y:u+h/10+y+1,text:x,textAnchor:b,fontSize:r,fontFamily:n,fontWeight:o,maxWidth:i.config.yaxis[t].labels.maxWidth,foreColor:Array.isArray(v)?v[l]:v,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+s.cssClass});l===h&&(f=w),c.add(w);var k=document.createElementNS(i.globals.SVGNS,"title");if(k.textContent=Array.isArray(x)?x.join(" "):x,w.node.appendChild(k),0!==i.config.yaxis[t].labels.rotate){var A=a.rotateAroundCenter(f.node),C=a.rotateAroundCenter(w.node);w.node.setAttribute("transform","rotate(".concat(i.config.yaxis[t].labels.rotate," ").concat(A.x," ").concat(C.y,")"))}u+=d},m=h;m>=0;m--)x(m);if(void 0!==i.config.yaxis[t].title.text){var b=a.group({class:"apexcharts-yaxis-title"}),v=0;i.config.yaxis[t].opposite&&(v=i.globals.translateYAxisX[t]);var y=a.drawText({x:v,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[t].title.offsetY,text:i.config.yaxis[t].title.text,textAnchor:"end",foreColor:i.config.yaxis[t].title.style.color,fontSize:i.config.yaxis[t].title.style.fontSize,fontWeight:i.config.yaxis[t].title.style.fontWeight,fontFamily:i.config.yaxis[t].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[t].title.style.cssClass});b.add(y),l.add(b)}var w=i.config.yaxis[t].axisBorder,A=31+w.offsetX;if(i.config.yaxis[t].opposite&&(A=-31-w.offsetX),w.show){var C=a.drawLine(A,i.globals.translateY+w.offsetY-2,A,i.globals.gridHeight+i.globals.translateY+w.offsetY+2,w.color,0,w.width);l.add(C)}return i.config.yaxis[t].axisTicks.show&&this.axesUtils.drawYAxisTicks(A,h,w,i.config.yaxis[t].axisTicks,t,d,l),l}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new k(this.ctx),a=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),s=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});a.add(s);var r=e.globals.yAxisScale[t].result.length-1,n=e.globals.gridWidth/r+.1,o=n+e.config.xaxis.labels.offsetX,l=e.globals.xLabelFormatter,c=e.globals.yAxisScale[t].result.slice(),h=e.globals.timescaleLabels;h.length>0&&(this.xaxisLabels=h.slice(),r=(c=h.slice()).length),c=this.axesUtils.checkForReversedLabels(t,c);var d=h.length;if(e.config.xaxis.labels.show)for(var u=d?0:r;d?u<d:u>=0;d?u++:u--){var g=c[u];g=l(g,u,e);var p=e.globals.gridWidth+e.globals.padHorizontal-(o-n+e.config.xaxis.labels.offsetX);if(h.length){var f=this.axesUtils.getLabel(c,h,p,u,this.drawnLabels,this.xaxisFontSize);p=f.x,g=f.text,this.drawnLabels.push(f.text),0===u&&e.globals.skipFirstTimelinelabel&&(g=""),u===c.length-1&&e.globals.skipLastTimelinelabel&&(g="")}var x=i.drawText({x:p,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30-("top"===e.config.xaxis.position?e.globals.xAxisHeight+e.config.xaxis.axisTicks.height-2:0),text:g,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:e.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+e.config.xaxis.labels.style.cssClass});s.add(x),x.tspan(g);var m=document.createElementNS(e.globals.SVGNS,"title");m.textContent=g,x.node.appendChild(m),o+=n}return this.inversedYAxisTitleText(a),this.inversedYAxisBorder(a),a}},{key:"inversedYAxisBorder",value:function(t){var e=this.w,i=new k(this.ctx),a=e.config.xaxis.axisBorder;if(a.show){var s=0;"bar"===e.config.chart.type&&e.globals.isXNumeric&&(s-=15);var r=i.drawLine(e.globals.padHorizontal+s+a.offsetX,this.xAxisoffX,e.globals.gridWidth,this.xAxisoffX,a.color,0,a.height);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(r):t.add(r)}}},{key:"inversedYAxisTitleText",value:function(t){var e=this.w,i=new k(this.ctx);if(void 0!==e.config.xaxis.title.text){var a=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),s=i.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(e.config.xaxis.title.style.fontSize)+e.config.xaxis.title.offsetY+20,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});a.add(s),t.add(a)}}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,a=new k(this.ctx),s={width:0,height:0},r={width:0,height:0},n=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-texts-g"));null!==n&&(s=n.getBoundingClientRect());var o=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-title text"));if(null!==o&&(r=o.getBoundingClientRect()),null!==o){var l=this.xPaddingForYAxisTitle(t,s,r,e);o.setAttribute("x",l.xPos-(e?10:0))}if(null!==o){var c=a.rotateAroundCenter(o);o.setAttribute("transform","rotate(".concat(e?-1*i.config.yaxis[t].title.rotate:i.config.yaxis[t].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(t,e,i,a){var s=this.w,r=0,n=0,o=10;return void 0===s.config.yaxis[t].title.text||t<0?{xPos:n,padd:0}:(a?(n=e.width+s.config.yaxis[t].title.offsetX+i.width/2+o/2,0===(r+=1)&&(n-=o/2)):(n=-1*e.width+s.config.yaxis[t].title.offsetX+o/2+i.width/2,s.globals.isBarHorizontal&&(o=25,n=-1*e.width-s.config.yaxis[t].title.offsetX-o)),{xPos:n,padd:o})}},{key:"setYAxisXPosition",value:function(t,e){var i=this.w,a=0,s=0,r=18,n=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map((function(o,l){var c=i.globals.ignoreYAxisIndexes.indexOf(l)>-1||!o.show||o.floating||0===t[l].width,h=t[l].width+e[l].width;o.opposite?i.globals.isBarHorizontal?(s=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[l]=s-o.labels.offsetX):(s=i.globals.gridWidth+i.globals.translateX+n,c||(n=n+h+20),i.globals.translateYAxisX[l]=s-o.labels.offsetX+20):(a=i.globals.translateX-r,c||(r=r+h+20),i.globals.translateYAxisX[l]=a+o.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(e=v.listToArray(e)).forEach((function(e,i){var a=t.config.yaxis[i];if(a&&!a.floating&&void 0!==a.labels.align){var s=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-texts-g")),r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-label"));r=v.listToArray(r);var n=s.getBoundingClientRect();"left"===a.labels.align?(r.forEach((function(t,e){t.setAttribute("text-anchor","start")})),a.opposite||s.setAttribute("transform","translate(-".concat(n.width,", 0)"))):"center"===a.labels.align?(r.forEach((function(t,e){t.setAttribute("text-anchor","middle")})),s.setAttribute("transform","translate(".concat(n.width/2*(a.opposite?1:-1),", 0)"))):"right"===a.labels.align&&(r.forEach((function(t,e){t.setAttribute("text-anchor","end")})),a.opposite&&s.setAttribute("transform","translate(".concat(n.width,", 0)")))}}))}}]),t}(),K=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w,this.documentEvent=v.bind(this.documentEvent,this)}return c(t,[{key:"addEventListener",value:function(t,e){var i=this.w;i.globals.events.hasOwnProperty(t)?i.globals.events[t].push(e):i.globals.events[t]=[e]}},{key:"removeEventListener",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){var a=i.globals.events[t].indexOf(e);-1!==a&&i.globals.events[t].splice(a,1)}}},{key:"fireEvent",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){e&&e.length||(e=[]);for(var a=i.globals.events[t],s=a.length,r=0;r<s;r++)a[r].apply(null,e)}}},{key:"setupEventHandlers",value:function(){var t=this,e=this.w,i=this.ctx,a=e.globals.dom.baseEl.querySelector(e.globals.chartClass);this.ctx.eventList.forEach((function(t){a.addEventListener(t,(function(t){var a=Object.assign({},e,{seriesIndex:e.globals.capturedSeriesIndex,dataPointIndex:e.globals.capturedDataPointIndex});"mousemove"===t.type||"touchmove"===t.type?"function"==typeof e.config.chart.events.mouseMove&&e.config.chart.events.mouseMove(t,i,a):"mouseleave"===t.type||"touchleave"===t.type?"function"==typeof e.config.chart.events.mouseLeave&&e.config.chart.events.mouseLeave(t,i,a):("mouseup"===t.type&&1===t.which||"touchend"===t.type)&&("function"==typeof e.config.chart.events.click&&e.config.chart.events.click(t,i,a),i.ctx.events.fireEvent("click",[t,i,a]))}),{capture:!1,passive:!0})})),this.ctx.eventList.forEach((function(i){e.globals.dom.baseEl.addEventListener(i,t.documentEvent,{passive:!0})})),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(t){var e=this.w,i=t.target.className;if("click"===t.type){var a=e.globals.dom.baseEl.querySelector(".apexcharts-menu");a&&a.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==i&&a.classList.remove("apexcharts-menu-open")}e.globals.clientX="touchmove"===t.type?t.touches[0].clientX:t.clientX,e.globals.clientY="touchmove"===t.type?t.touches[0].clientY:t.clientY}}]),t}(),Q=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"setCurrentLocaleValues",value:function(t){var e=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(e=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=e.filter((function(e){return e.name===t}))[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var a=v.extend(I,i);this.w.globals.locale=a.options}}]),t}(),tt=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"drawAxis",value:function(t,e){var i,a,s=this,r=this.w.globals,n=this.w.config,o=new G(this.ctx,e),l=new J(this.ctx,e);r.axisCharts&&"radar"!==t&&(r.isBarHorizontal?(a=l.drawYaxisInversed(0),i=o.drawXaxisInversed(0),r.dom.elGraphical.add(i),r.dom.elGraphical.add(a)):(i=o.drawXaxis(),r.dom.elGraphical.add(i),n.yaxis.map((function(t,e){if(-1===r.ignoreYAxisIndexes.indexOf(e)&&(a=l.drawYaxis(e),r.dom.Paper.add(a),"back"===s.w.config.grid.position)){var i=r.dom.Paper.children()[1];i.remove(),r.dom.Paper.add(i)}}))))}}]),t}(),et=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new k(this.ctx),i=new w(this.ctx),a=t.config.xaxis.crosshairs.fill.gradient,s=t.config.xaxis.crosshairs.dropShadow,r=t.config.xaxis.crosshairs.fill.type,n=a.colorFrom,o=a.colorTo,l=a.opacityFrom,c=a.opacityTo,h=a.stops,d=s.enabled,u=s.left,g=s.top,p=s.blur,f=s.color,x=s.opacity,m=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){"gradient"===r&&(m=e.drawGradient("vertical",n,o,l,c,null,h,null));var b=e.drawRect();1===t.config.xaxis.crosshairs.width&&(b=e.drawLine());var y=t.globals.gridHeight;(!v.isNumber(y)||y<0)&&(y=0);var A=t.config.xaxis.crosshairs.width;(!v.isNumber(A)||A<0)&&(A=0),b.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:y,width:A,height:y,fill:m,filter:"none","fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),d&&(b=i.dropShadow(b,{left:u,top:g,blur:p,color:f,opacity:x})),t.globals.dom.elGraphical.add(b)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new k(this.ctx),i=t.config.yaxis[0].crosshairs,a=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){var s=e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);s.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(s)}var r=e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,0,0);r.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(r)}}]),t}(),it=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"checkResponsiveConfig",value:function(t){var e=this,i=this.w,a=i.config;if(0!==a.responsive.length){var s=a.responsive.slice();s.sort((function(t,e){return t.breakpoint>e.breakpoint?1:e.breakpoint>t.breakpoint?-1:0})).reverse();var r=new F({}),n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s[0].breakpoint,n=window.innerWidth>0?window.innerWidth:screen.width;if(n>a){var o=A.extendArrayProps(r,i.globals.initialConfig,i);t=v.extend(o,t),t=v.extend(i.config,t),e.overrideResponsiveOptions(t)}else for(var l=0;l<s.length;l++)n<s[l].breakpoint&&(t=A.extendArrayProps(r,s[l].options,i),t=v.extend(i.config,t),e.overrideResponsiveOptions(t))};if(t){var o=A.extendArrayProps(r,t,i);o=v.extend(i.config,o),n(o=v.extend(o,t))}else n({})}}},{key:"overrideResponsiveOptions",value:function(t){var e=new F(t).init({responsiveOverride:!0});this.w.config=e}}]),t}(),at=function(){function t(e){o(this,t),this.ctx=e,this.colors=[],this.w=e.w;var i=this.w;this.isColorFn=!1,this.isHeatmapDistributed="treemap"===i.config.chart.type&&i.config.plotOptions.treemap.distributed||"heatmap"===i.config.chart.type&&i.config.plotOptions.heatmap.distributed,this.isBarDistributed=i.config.plotOptions.bar.distributed&&("bar"===i.config.chart.type||"rangeBar"===i.config.chart.type)}return c(t,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var t,e=this,i=this.w,a=new v;if(i.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(i.config.theme.mode)),void 0===i.config.colors||0===(null===(t=i.config.colors)||void 0===t?void 0:t.length)?i.globals.colors=this.predefined():(i.globals.colors=i.config.colors,Array.isArray(i.config.colors)&&i.config.colors.length>0&&"function"==typeof i.config.colors[0]&&(i.globals.colors=i.config.series.map((function(t,a){var s=i.config.colors[a];return s||(s=i.config.colors[0]),"function"==typeof s?(e.isColorFn=!0,s({value:i.globals.axisCharts?i.globals.series[a][0]?i.globals.series[a][0]:0:i.globals.series[a],seriesIndex:a,dataPointIndex:a,w:i})):s})))),i.globals.seriesColors.map((function(t,e){t&&(i.globals.colors[e]=t)})),i.config.theme.monochrome.enabled){var s=[],r=i.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(r=i.globals.series[0].length*i.globals.series.length);for(var n=i.config.theme.monochrome.color,o=1/(r/i.config.theme.monochrome.shadeIntensity),l=i.config.theme.monochrome.shadeTo,c=0,h=0;h<r;h++){var d=void 0;"dark"===l?(d=a.shadeColor(-1*c,n),c+=o):(d=a.shadeColor(c,n),c+=o),s.push(d)}i.globals.colors=s.slice()}var u=i.globals.colors.slice();this.pushExtraColors(i.globals.colors),["fill","stroke"].forEach((function(t){void 0===i.config[t].colors?i.globals[t].colors=e.isColorFn?i.config.colors:u:i.globals[t].colors=i.config[t].colors.slice(),e.pushExtraColors(i.globals[t].colors)})),void 0===i.config.dataLabels.style.colors?i.globals.dataLabels.style.colors=u:i.globals.dataLabels.style.colors=i.config.dataLabels.style.colors.slice(),this.pushExtraColors(i.globals.dataLabels.style.colors,50),void 0===i.config.plotOptions.radar.polygons.fill.colors?i.globals.radarPolygons.fill.colors=["dark"===i.config.theme.mode?"#424242":"none"]:i.globals.radarPolygons.fill.colors=i.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(i.globals.radarPolygons.fill.colors,20),void 0===i.config.markers.colors?i.globals.markers.colors=u:i.globals.markers.colors=i.config.markers.colors.slice(),this.pushExtraColors(i.globals.markers.colors)}},{key:"pushExtraColors",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=this.w,s=e||a.globals.series.length;if(null===i&&(i=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===a.config.chart.type&&a.config.plotOptions.heatmap.colorScale.inverse),i&&a.globals.series.length&&(s=a.globals.series[a.globals.maxValsInArrayIndex].length*a.globals.series.length),t.length<s)for(var r=s-t.length,n=0;n<r;n++)t.push(t[n])}},{key:"updateThemeOptions",value:function(t){t.chart=t.chart||{},t.tooltip=t.tooltip||{};var e=t.theme.mode||"light",i=t.theme.palette?t.theme.palette:"dark"===e?"palette4":"palette1",a=t.chart.foreColor?t.chart.foreColor:"dark"===e?"#f6f7f8":"#373d3f";return t.tooltip.theme=e,t.chart.foreColor=a,t.theme.palette=i,t}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"]}return this.colors}}]),t}(),st=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(t){var e=this.w,i="title"===t?e.config.title:e.config.subtitle,a=e.globals.svgWidth/2,s=i.offsetY,r="middle";if("left"===i.align?(a=10,r="start"):"right"===i.align&&(a=e.globals.svgWidth-10,r="end"),a+=i.offsetX,s=s+parseInt(i.style.fontSize,10)+i.margin/2,void 0!==i.text){var n=new k(this.ctx).drawText({x:a,y:s,text:i.text,textAnchor:r,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});n.node.setAttribute("class","apexcharts-".concat(t,"-text")),e.globals.dom.Paper.add(n)}}}]),t}(),rt=function(){function t(e){o(this,t),this.w=e.w,this.dCtx=e}return c(t,[{key:"getTitleSubtitleCoords",value:function(t){var e=this.w,i=0,a=0,s="title"===t?e.config.title.floating:e.config.subtitle.floating,r=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(t,"-text"));if(null!==r&&!s){var n=r.getBoundingClientRect();i=n.width,a=e.globals.axisCharts?n.height+5:n.height}return{width:i,height:a}}},{key:"getLegendsRect",value:function(){var t=this.w,e=t.globals.dom.elLegendWrap;t.config.legend.height||"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||(e.style.maxHeight=t.globals.svgHeight/2+"px");var i=Object.assign({},v.getBoundingClientRect(e));return null!==e&&!t.config.legend.floating&&t.config.legend.show?this.dCtx.lgRect={x:i.x,y:i.y,height:i.height,width:0===i.height?0:i.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},"left"!==t.config.legend.position&&"right"!==t.config.legend.position||1.5*this.dCtx.lgRect.width>t.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(t,e){var i=t;if(this.w.globals.isMultiLineX){var a=e.map((function(t,e){return Array.isArray(t)?t.length:1})),s=Math.max.apply(Math,x(a));i=e[a.indexOf(s)]}return i}}]),t}(),nt=function(){function t(e){o(this,t),this.w=e.w,this.dCtx=e}return c(t,[{key:"getxAxisLabelsCoords",value:function(){var t,e=this.w,i=e.globals.labels.slice();if(e.config.xaxis.convertedCatToNumeric&&0===i.length&&(i=e.globals.categoryLabels),e.globals.timescaleLabels.length>0){var a=this.getxAxisTimeScaleLabelsCoords();t={width:a.width,height:a.height},e.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==e.config.legend.position&&"right"!==e.config.legend.position||e.config.legend.floating?0:this.dCtx.lgRect.width;var s=e.globals.xLabelFormatter,r=v.getLargestStringFromArr(i),n=this.dCtx.dimHelpers.getLargestStringFromMultiArr(r,i);e.globals.isBarHorizontal&&(n=r=e.globals.yAxisScale[0].result.reduce((function(t,e){return t.length>e.length?t:e}),0));var o=new z(this.dCtx.ctx),l=r;r=o.xLabelFormat(s,r,l,{i:void 0,dateFormatter:new E(this.dCtx.ctx).formatDate,w:e}),n=o.xLabelFormat(s,n,l,{i:void 0,dateFormatter:new E(this.dCtx.ctx).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&void 0===r||""===String(r).trim())&&(n=r="1");var c=new k(this.dCtx.ctx),h=c.getTextRects(r,e.config.xaxis.labels.style.fontSize),d=h;if(r!==n&&(d=c.getTextRects(n,e.config.xaxis.labels.style.fontSize)),(t={width:h.width>=d.width?h.width:d.width,height:h.height>=d.height?h.height:d.height}).width*i.length>e.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==e.config.xaxis.labels.rotate||e.config.xaxis.labels.rotateAlways){if(!e.globals.isBarHorizontal){e.globals.rotateXLabels=!0;var u=function(t){return c.getTextRects(t,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,"rotate(".concat(e.config.xaxis.labels.rotate," 0 0)"),!1)};h=u(r),r!==n&&(d=u(n)),t.height=(h.height>d.height?h.height:d.height)/1.5,t.width=h.width>d.width?h.width:d.width}}else e.globals.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var t,e=this.w;if(!e.globals.hasXaxisGroups)return{width:0,height:0};var i,a=(null===(t=e.config.xaxis.group.style)||void 0===t?void 0:t.fontSize)||e.config.xaxis.labels.style.fontSize,s=e.globals.groups.map((function(t){return t.title})),r=v.getLargestStringFromArr(s),n=this.dCtx.dimHelpers.getLargestStringFromMultiArr(r,s),o=new k(this.dCtx.ctx),l=o.getTextRects(r,a),c=l;return r!==n&&(c=o.getTextRects(n,a)),i={width:l.width>=c.width?l.width:c.width,height:l.height>=c.height?l.height:c.height},e.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;if(void 0!==t.config.xaxis.title.text){var a=new k(this.dCtx.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=a.width,i=a.height}return{width:e,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var t,e=this.w;this.dCtx.timescaleLabels=e.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map((function(t){return t.value})),a=i.reduce((function(t,e){return void 0===t?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):t.length>e.length?t:e}),0);return 1.05*(t=new k(this.dCtx.ctx).getTextRects(a,e.config.xaxis.labels.style.fontSize)).width*i.length>e.globals.gridWidth&&0!==e.config.xaxis.labels.rotate&&(e.globals.overlappingXLabels=!0),t}},{key:"additionalPaddingXLabels",value:function(t){var e=this,i=this.w,a=i.globals,s=i.config,r=s.xaxis.type,n=t.width;a.skipLastTimelinelabel=!1,a.skipFirstTimelinelabel=!1;var o=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,l=function(t,o){s.yaxis.length>1&&function(t){return-1!==a.collapsedSeriesIndices.indexOf(t)}(o)||function(t){if(e.dCtx.timescaleLabels&&e.dCtx.timescaleLabels.length){var o=e.dCtx.timescaleLabels[0],l=e.dCtx.timescaleLabels[e.dCtx.timescaleLabels.length-1].position+n/1.75-e.dCtx.yAxisWidthRight,c=o.position-n/1.75+e.dCtx.yAxisWidthLeft,h="right"===i.config.legend.position&&e.dCtx.lgRect.width>0?e.dCtx.lgRect.width:0;l>a.svgWidth-a.translateX-h&&(a.skipLastTimelinelabel=!0),c<-(t.show&&!t.floating||"bar"!==s.chart.type&&"candlestick"!==s.chart.type&&"rangeBar"!==s.chart.type&&"boxPlot"!==s.chart.type?10:n/1.75)&&(a.skipFirstTimelinelabel=!0)}else"datetime"===r?e.dCtx.gridPad.right<n&&!a.rotateXLabels&&(a.skipLastTimelinelabel=!0):"datetime"!==r&&e.dCtx.gridPad.right<n/2-e.dCtx.yAxisWidthRight&&!a.rotateXLabels&&!i.config.xaxis.labels.trim&&("between"!==i.config.xaxis.tickPlacement||i.globals.isBarHorizontal)&&(e.dCtx.xPadRight=n/2+1)}(t)};s.yaxis.forEach((function(t,i){o?(e.dCtx.gridPad.left<n&&(e.dCtx.xPadLeft=n/2+1),e.dCtx.xPadRight=n/2+1):l(t,i)}))}}]),t}(),ot=function(){function t(e){o(this,t),this.w=e.w,this.dCtx=e}return c(t,[{key:"getyAxisLabelsCoords",value:function(){var t=this,e=this.w,i=[],a=10,s=new _(this.dCtx.ctx);return e.config.yaxis.map((function(r,n){var o={seriesIndex:n,dataPointIndex:-1,w:e},l=e.globals.yAxisScale[n],c=0;if(!s.isYAxisHidden(n)&&r.labels.show&&void 0!==r.labels.minWidth&&(c=r.labels.minWidth),!s.isYAxisHidden(n)&&r.labels.show&&l.result.length){var h=e.globals.yLabelFormatters[n],d=l.niceMin===Number.MIN_VALUE?0:l.niceMin,u=l.result.reduce((function(t,e){var i,a;return(null===(i=String(h(t,o)))||void 0===i?void 0:i.length)>(null===(a=String(h(e,o)))||void 0===a?void 0:a.length)?t:e}),d),g=u=h(u,o);if(void 0!==u&&0!==u.length||(u=l.niceMax),e.globals.isBarHorizontal){a=0;var p=e.globals.labels.slice();u=v.getLargestStringFromArr(p),u=h(u,{seriesIndex:n,dataPointIndex:-1,w:e}),g=t.dCtx.dimHelpers.getLargestStringFromMultiArr(u,p)}var f=new k(t.dCtx.ctx),x="rotate(".concat(r.labels.rotate," 0 0)"),m=f.getTextRects(u,r.labels.style.fontSize,r.labels.style.fontFamily,x,!1),b=m;u!==g&&(b=f.getTextRects(g,r.labels.style.fontSize,r.labels.style.fontFamily,x,!1)),i.push({width:(c>b.width||c>m.width?c:b.width>m.width?b.width:m.width)+a,height:b.height>m.height?b.height:m.height})}else i.push({width:0,height:0})})),i}},{key:"getyAxisTitleCoords",value:function(){var t=this,e=this.w,i=[];return e.config.yaxis.map((function(e,a){if(e.show&&void 0!==e.title.text){var s=new k(t.dCtx.ctx),r="rotate(".concat(e.title.rotate," 0 0)"),n=s.getTextRects(e.title.text,e.title.style.fontSize,e.title.style.fontFamily,r,!1);i.push({width:n.width,height:n.height})}else i.push({width:0,height:0})})),i}},{key:"getTotalYAxisWidth",value:function(){var t=this.w,e=0,i=0,a=0,s=t.globals.yAxisScale.length>1?10:0,r=new _(this.dCtx.ctx),n=function(n,o){var l=t.config.yaxis[o].floating,c=0;n.width>0&&!l?(c=n.width+s,function(e){return t.globals.ignoreYAxisIndexes.indexOf(e)>-1}(o)&&(c=c-n.width-s)):c=l||r.isYAxisHidden(o)?0:5,t.config.yaxis[o].opposite?a+=c:i+=c,e+=c};return t.globals.yLabelsCoords.map((function(t,e){n(t,e)})),t.globals.yTitleCoords.map((function(t,e){n(t,e)})),t.globals.isBarHorizontal&&!t.config.yaxis[0].floating&&(e=t.globals.yLabelsCoords[0].width+t.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=a,e}}]),t}(),lt=function(){function t(e){o(this,t),this.w=e.w,this.dCtx=e}return c(t,[{key:"gridPadForColumnsInNumericAxis",value:function(t){var e=this.w;if(e.globals.noData||e.globals.allSeriesCollapsed)return 0;var i=function(t){return"bar"===t||"rangeBar"===t||"candlestick"===t||"boxPlot"===t},a=e.config.chart.type,s=0,r=i(a)?e.config.series.length:1;if(e.globals.comboBarCount>0&&(r=e.globals.comboBarCount),e.globals.collapsedSeries.forEach((function(t){i(t.type)&&(r-=1)})),e.config.chart.stacked&&(r=1),(i(a)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&r>0){var n,o,l=Math.abs(e.globals.initialMaxX-e.globals.initialMinX);l<=3&&(l=e.globals.dataPoints),n=l/t,e.globals.minXDiff&&e.globals.minXDiff/n>0&&(o=e.globals.minXDiff/n),o>t/2&&(o/=2),(s=o/r*parseInt(e.config.plotOptions.bar.columnWidth,10)/100)<1&&(s=1),s=s/(r>1?1:1.5)+5,e.globals.barPadForNumericAxis=s}return s}},{key:"gridPadFortitleSubtitle",value:function(){var t=this,e=this.w,i=e.globals,a=this.dCtx.isSparkline||!e.globals.axisCharts?0:10;["title","subtitle"].forEach((function(i){void 0!==e.config[i].text?a+=e.config[i].margin:a+=t.dCtx.isSparkline||!e.globals.axisCharts?0:5})),!e.config.legend.show||"bottom"!==e.config.legend.position||e.config.legend.floating||e.globals.axisCharts||(a+=10);var s=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),r=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-s.height-r.height-a,i.translateY=i.translateY+s.height+r.height+a}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w,a=new _(this.dCtx.ctx);i.config.yaxis.map((function(s,r){-1!==i.globals.ignoreYAxisIndexes.indexOf(r)||s.floating||a.isYAxisHidden(r)||(s.opposite&&(i.globals.translateX=i.globals.translateX-(e[r].width+t[r].width)-parseInt(i.config.yaxis[r].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))}))}}]),t}(),ct=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new rt(this),this.dimYAxis=new ot(this),this.dimXAxis=new nt(this),this.dimGrid=new lt(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return c(t,[{key:"plotCoords",value:function(){var t=this,e=this.w,i=e.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&((e.config.markers.discrete.length>0||e.config.markers.size>0)&&Object.entries(this.gridPad).forEach((function(e){var i=f(e,2),a=i[0],s=i[1];t.gridPad[a]=Math.max(s,t.w.globals.markers.largestSize/1.5)})),this.gridPad.top=Math.max(e.config.stroke.width/2,this.gridPad.top),this.gridPad.bottom=Math.max(e.config.stroke.width/2,this.gridPad.bottom)),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var a=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*a,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(a>0?a+4:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var t=this,e=this.w,i=e.globals,a=this.dimYAxis.getyAxisLabelsCoords(),s=this.dimYAxis.getyAxisTitleCoords();e.globals.yLabelsCoords=[],e.globals.yTitleCoords=[],e.config.yaxis.map((function(t,i){e.globals.yLabelsCoords.push({width:a[i].width,index:i}),e.globals.yTitleCoords.push({width:s[i].width,index:i})})),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var r=this.dimXAxis.getxAxisLabelsCoords(),n=this.dimXAxis.getxAxisGroupLabelsCoords(),o=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(r,o,n),i.translateXAxisY=e.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=e.globals.rotateXLabels&&e.globals.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,e.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(e.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+e.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+e.config.xaxis.labels.offsetX;var l=this.yAxisWidth,c=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-o.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-r.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var h=10;("radar"===e.config.chart.type||this.isSparkline)&&(l=0,c=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===e.config.chart.type)&&(l=0,c=0,h=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(r);var d=function(){i.translateX=l,i.gridHeight=i.svgHeight-t.lgRect.height-c-(t.isSparkline||"treemap"===e.config.chart.type?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-l};switch("top"===e.config.xaxis.position&&(h=i.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case"bottom":i.translateY=h,d();break;case"top":i.translateY=this.lgRect.height+h,d();break;case"left":i.translateY=h,i.translateX=this.lgRect.width+l,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-l;break;case"right":i.translateY=h,i.translateX=l,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-l-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(s,a),new J(this.ctx).setYAxisXPosition(a,s)}},{key:"setDimensionsForNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=t.config,a=0;t.config.legend.show&&!t.config.legend.floating&&(a=20);var s="pie"===i.chart.type||"polarArea"===i.chart.type||"donut"===i.chart.type?"pie":"radialBar",r=i.plotOptions[s].offsetY,n=i.plotOptions[s].offsetX;if(!i.legend.show||i.legend.floating)return e.gridHeight=e.svgHeight-i.grid.padding.left+i.grid.padding.right,e.gridWidth=e.gridHeight,e.translateY=r,void(e.translateX=n+(e.svgWidth-e.gridWidth)/2);switch(i.legend.position){case"bottom":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=r-10,e.translateX=n+(e.svgWidth-e.gridWidth)/2;break;case"top":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=this.lgRect.height+r+10,e.translateX=n+(e.svgWidth-e.gridWidth)/2;break;case"left":e.gridWidth=e.svgWidth-this.lgRect.width-a,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=r,e.translateX=n+this.lgRect.width+a;break;case"right":e.gridWidth=e.svgWidth-this.lgRect.width-a-5,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=r,e.translateX=n+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(t,e,i){var a=this.w,s=a.globals.hasXaxisGroups?2:1,r=i.height+t.height+e.height,n=a.globals.isMultiLineX?1.2:a.globals.LINE_HEIGHT_RATIO,o=a.globals.rotateXLabels?22:10,l=a.globals.rotateXLabels&&"bottom"===a.config.legend.position?10:0;this.xAxisHeight=r*n+s*o+l,this.xAxisWidth=t.width,this.xAxisHeight-e.height>a.config.xaxis.labels.maxHeight&&(this.xAxisHeight=a.config.xaxis.labels.maxHeight),a.config.xaxis.labels.minHeight&&this.xAxisHeight<a.config.xaxis.labels.minHeight&&(this.xAxisHeight=a.config.xaxis.labels.minHeight),a.config.xaxis.floating&&(this.xAxisHeight=0);var c=0,h=0;a.config.yaxis.forEach((function(t){c+=t.labels.minWidth,h+=t.labels.maxWidth})),this.yAxisWidth<c&&(this.yAxisWidth=c),this.yAxisWidth>h&&(this.yAxisWidth=h)}}]),t}(),ht=function(){function t(e){o(this,t),this.w=e.w,this.lgCtx=e}return c(t,[{key:"getLegendStyles",value:function(){var t=document.createElement("style");t.setAttribute("type","text/css");var e=document.createTextNode("\t\n \t\n .apexcharts-legend {\t\n display: flex;\t\n overflow: auto;\t\n padding: 0 10px;\t\n }\t\n .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\t\n flex-wrap: wrap\t\n }\t\n .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\t\n flex-direction: column;\t\n bottom: 0;\t\n }\t\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\t\n justify-content: flex-start;\t\n }\t\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\t\n justify-content: center; \t\n }\t\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\t\n justify-content: flex-end;\t\n }\t\n .apexcharts-legend-series {\t\n cursor: pointer;\t\n line-height: normal;\t\n }\t\n .apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{\t\n display: flex;\t\n align-items: center;\t\n }\t\n .apexcharts-legend-text {\t\n position: relative;\t\n font-size: 14px;\t\n }\t\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\t\n pointer-events: none;\t\n }\t\n .apexcharts-legend-marker {\t\n position: relative;\t\n display: inline-block;\t\n cursor: pointer;\t\n margin-right: 3px;\t\n border-style: solid;\n }\t\n \t\n .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{\t\n display: inline-block;\t\n }\t\n .apexcharts-legend-series.apexcharts-no-click {\t\n cursor: auto;\t\n }\t\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\t\n display: none !important;\t\n }\t\n .apexcharts-inactive-legend {\t\n opacity: 0.45;\t\n }");return t.appendChild(e),t}},{key:"getLegendBBox",value:function(){var t=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),e=t.width;return{clwh:t.height,clww:e}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(t,e){var i=this,a=this.w;if(a.globals.axisCharts||"radialBar"===a.config.chart.type){a.globals.resized=!0;var s=null,r=null;a.globals.risingSeries=[],a.globals.axisCharts?(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),r=parseInt(s.getAttribute("data:realIndex"),10)):(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),r=parseInt(s.getAttribute("rel"),10)-1),e?[{cs:a.globals.collapsedSeries,csi:a.globals.collapsedSeriesIndices},{cs:a.globals.ancillaryCollapsedSeries,csi:a.globals.ancillaryCollapsedSeriesIndices}].forEach((function(t){i.riseCollapsedSeries(t.cs,t.csi,r)})):this.hideSeries({seriesEl:s,realIndex:r})}else{var n=a.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(t+1,"'] path")),o=a.config.chart.type;if("pie"===o||"polarArea"===o||"donut"===o){var l=a.config.plotOptions.pie.donut.labels;new k(this.lgCtx.ctx).pathMouseDown(n.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(n.members[0].node,l)}n.fire("click")}}},{key:"hideSeries",value:function(t){var e=t.seriesEl,i=t.realIndex,a=this.w,s=v.clone(a.config.series);if(a.globals.axisCharts){var r=!1;if(a.config.yaxis[i]&&a.config.yaxis[i].show&&a.config.yaxis[i].showAlways&&(r=!0,a.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(a.globals.ancillaryCollapsedSeries.push({index:i,data:s[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),a.globals.ancillaryCollapsedSeriesIndices.push(i))),!r){a.globals.collapsedSeries.push({index:i,data:s[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),a.globals.collapsedSeriesIndices.push(i);var n=a.globals.risingSeries.indexOf(i);a.globals.risingSeries.splice(n,1)}}else a.globals.collapsedSeries.push({index:i,data:s[i]}),a.globals.collapsedSeriesIndices.push(i);for(var o=e.childNodes,l=0;l<o.length;l++)o[l].classList.contains("apexcharts-series-markers-wrap")&&(o[l].classList.contains("apexcharts-hide")?o[l].classList.remove("apexcharts-hide"):o[l].classList.add("apexcharts-hide"));a.globals.allSeriesCollapsed=a.globals.collapsedSeries.length===a.config.series.length,s=this._getSeriesBasedOnCollapsedState(s),this.lgCtx.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(t,e,i){var a=this.w,s=v.clone(a.config.series);if(t.length>0){for(var r=0;r<t.length;r++)t[r].index===i&&(a.globals.axisCharts?(s[i].data=t[r].data.slice(),t.splice(r,1),e.splice(r,1),a.globals.risingSeries.push(i)):(s[i]=t[r].data,t.splice(r,1),e.splice(r,1),a.globals.risingSeries.push(i)));s=this._getSeriesBasedOnCollapsedState(s),this.lgCtx.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(t){var e=this.w;return e.globals.axisCharts?t.forEach((function(i,a){e.globals.collapsedSeriesIndices.indexOf(a)>-1&&(t[a].data=[])})):t.forEach((function(i,a){e.globals.collapsedSeriesIndices.indexOf(a)>-1&&(t[a]=0)})),t}}]),t}(),dt=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new ht(this)}return c(t,[{key:"init",value:function(){var t=this.w,e=t.globals,i=t.config;if((i.legend.showForSingleSeries&&1===e.series.length||this.isBarsDistributed||e.series.length>1||!e.axisCharts)&&i.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(),v.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var t=this,e=this.w,i=e.config.legend.fontFamily,a=e.globals.seriesNames,s=e.globals.colors.slice();if("heatmap"===e.config.chart.type){var r=e.config.plotOptions.heatmap.colorScale.ranges;a=r.map((function(t){return t.name?t.name:t.from+" - "+t.to})),s=r.map((function(t){return t.color}))}else this.isBarsDistributed&&(a=e.globals.labels.slice());e.config.legend.customLegendItems.length&&(a=e.config.legend.customLegendItems);for(var n=e.globals.legendFormatter,o=e.config.legend.inverseOrder,l=o?a.length-1:0;o?l>=0:l<=a.length-1;o?l--:l++){var c,h=n(a[l],{seriesIndex:l,w:e}),d=!1,u=!1;if(e.globals.collapsedSeries.length>0)for(var g=0;g<e.globals.collapsedSeries.length;g++)e.globals.collapsedSeries[g].index===l&&(d=!0);if(e.globals.ancillaryCollapsedSeriesIndices.length>0)for(var p=0;p<e.globals.ancillaryCollapsedSeriesIndices.length;p++)e.globals.ancillaryCollapsedSeriesIndices[p]===l&&(u=!0);var f=document.createElement("span");f.classList.add("apexcharts-legend-marker");var x=e.config.legend.markers.offsetX,m=e.config.legend.markers.offsetY,b=e.config.legend.markers.height,y=e.config.legend.markers.width,w=e.config.legend.markers.strokeWidth,C=e.config.legend.markers.strokeColor,S=e.config.legend.markers.radius,L=f.style;L.background=s[l],L.color=s[l],L.setProperty("background",s[l],"important"),e.config.legend.markers.fillColors&&e.config.legend.markers.fillColors[l]&&(L.background=e.config.legend.markers.fillColors[l]),void 0!==e.globals.seriesColors[l]&&(L.background=e.globals.seriesColors[l],L.color=e.globals.seriesColors[l]),L.height=Array.isArray(b)?parseFloat(b[l])+"px":parseFloat(b)+"px",L.width=Array.isArray(y)?parseFloat(y[l])+"px":parseFloat(y)+"px",L.left=(Array.isArray(x)?parseFloat(x[l]):parseFloat(x))+"px",L.top=(Array.isArray(m)?parseFloat(m[l]):parseFloat(m))+"px",L.borderWidth=Array.isArray(w)?w[l]:w,L.borderColor=Array.isArray(C)?C[l]:C,L.borderRadius=Array.isArray(S)?parseFloat(S[l])+"px":parseFloat(S)+"px",e.config.legend.markers.customHTML&&(Array.isArray(e.config.legend.markers.customHTML)?e.config.legend.markers.customHTML[l]&&(f.innerHTML=e.config.legend.markers.customHTML[l]()):f.innerHTML=e.config.legend.markers.customHTML()),k.setAttrs(f,{rel:l+1,"data:collapsed":d||u}),(d||u)&&f.classList.add("apexcharts-inactive-legend");var P=document.createElement("div"),I=document.createElement("span");I.classList.add("apexcharts-legend-text"),I.innerHTML=Array.isArray(h)?h.join(" "):h;var T=e.config.legend.labels.useSeriesColors?e.globals.colors[l]:Array.isArray(e.config.legend.labels.colors)?null===(c=e.config.legend.labels.colors)||void 0===c?void 0:c[l]:e.config.legend.labels.colors;T||(T=e.config.chart.foreColor),I.style.color=T,I.style.fontSize=parseFloat(e.config.legend.fontSize)+"px",I.style.fontWeight=e.config.legend.fontWeight,I.style.fontFamily=i||e.config.chart.fontFamily,k.setAttrs(I,{rel:l+1,i:l,"data:default-text":encodeURIComponent(h),"data:collapsed":d||u}),P.appendChild(f),P.appendChild(I);var M=new A(this.ctx);e.config.legend.showForZeroSeries||0===M.getSeriesTotalByIndex(l)&&M.seriesHaveSameValues(l)&&!M.isSeriesNull(l)&&-1===e.globals.collapsedSeriesIndices.indexOf(l)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&P.classList.add("apexcharts-hidden-zero-series"),e.config.legend.showForNullSeries||M.isSeriesNull(l)&&-1===e.globals.collapsedSeriesIndices.indexOf(l)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&P.classList.add("apexcharts-hidden-null-series"),e.globals.dom.elLegendWrap.appendChild(P),e.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(e.config.legend.horizontalAlign)),e.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+e.config.legend.position),P.classList.add("apexcharts-legend-series"),P.style.margin="".concat(e.config.legend.itemMargin.vertical,"px ").concat(e.config.legend.itemMargin.horizontal,"px"),e.globals.dom.elLegendWrap.style.width=e.config.legend.width?e.config.legend.width+"px":"",e.globals.dom.elLegendWrap.style.height=e.config.legend.height?e.config.legend.height+"px":"",k.setAttrs(P,{rel:l+1,seriesName:v.escapeString(a[l]),"data:collapsed":d||u}),(d||u)&&P.classList.add("apexcharts-inactive-legend"),e.config.legend.onItemClick.toggleDataSeries||P.classList.add("apexcharts-no-click")}e.globals.dom.elWrap.addEventListener("click",t.onLegendClick,!0),e.config.legend.onItemHover.highlightDataSeries&&0===e.config.legend.customLegendItems.length&&(e.globals.dom.elWrap.addEventListener("mousemove",t.onLegendHovered,!0),e.globals.dom.elWrap.addEventListener("mouseout",t.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(t,e){var i=this.w,a=i.globals.dom.elLegendWrap,s=a.getBoundingClientRect(),r=0,n=0;if("bottom"===i.config.legend.position)n+=i.globals.svgHeight-s.height/2;else if("top"===i.config.legend.position){var o=new ct(this.ctx),l=o.dimHelpers.getTitleSubtitleCoords("title").height,c=o.dimHelpers.getTitleSubtitleCoords("subtitle").height;n=n+(l>0?l-10:0)+(c>0?c-10:0)}a.style.position="absolute",r=r+t+i.config.legend.offsetX,n=n+e+i.config.legend.offsetY,a.style.left=r+"px",a.style.top=n+"px","bottom"===i.config.legend.position?(a.style.top="auto",a.style.bottom=5-i.config.legend.offsetY+"px"):"right"===i.config.legend.position&&(a.style.left="auto",a.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach((function(t){a.style[t]&&(a.style[t]=parseInt(i.config.legend[t],10)+"px")}))}},{key:"legendAlignHorizontal",value:function(){var t=this.w;t.globals.dom.elLegendWrap.style.right=0;var e=this.legendHelpers.getLegendBBox(),i=new ct(this.ctx),a=i.dimHelpers.getTitleSubtitleCoords("title"),s=i.dimHelpers.getTitleSubtitleCoords("subtitle"),r=0;"bottom"===t.config.legend.position?r=-e.clwh/1.8:"top"===t.config.legend.position&&(r=a.height+s.height+t.config.title.margin+t.config.subtitle.margin-10),this.setLegendWrapXY(20,r)}},{key:"legendAlignVertical",value:function(){var t=this.w,e=this.legendHelpers.getLegendBBox(),i=0;"left"===t.config.legend.position&&(i=20),"right"===t.config.legend.position&&(i=t.globals.svgWidth-e.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(t){var e=this.w,i=t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker");if("heatmap"===e.config.chart.type||this.isBarsDistributed){if(i){var a=parseInt(t.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,a,this.w]),new $(this.ctx).highlightRangeInSeries(t,t.target)}}else!t.target.classList.contains("apexcharts-inactive-legend")&&i&&new $(this.ctx).toggleSeriesOnHover(t,t.target)}},{key:"onLegendClick",value:function(t){var e=this.w;if(!e.config.legend.customLegendItems.length&&(t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(t.target.getAttribute("rel"),10)-1,a="true"===t.target.getAttribute("data:collapsed"),s=this.w.config.chart.events.legendClick;"function"==typeof s&&s(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var r=this.w.config.legend.markers.onClick;"function"==typeof r&&t.target.classList.contains("apexcharts-legend-marker")&&(r(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),"treemap"!==e.config.chart.type&&"heatmap"!==e.config.chart.type&&!this.isBarsDistributed&&e.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,a)}}}]),t}(),ut=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=i.globals.minX,this.maxX=i.globals.maxX}return c(t,[{key:"createToolbar",value:function(){var t=this,e=this.w,i=function(){return document.createElement("div")},a=i();if(a.setAttribute("class","apexcharts-toolbar"),a.style.top=e.config.chart.toolbar.offsetY+"px",a.style.right=3-e.config.chart.toolbar.offsetX+"px",e.globals.dom.elWrap.appendChild(a),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=e.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var s=0;s<this.t.customIcons.length;s++)this.elCustomIcons.push(i());var r=[],n=function(i,a,s){var n=i.toLowerCase();t.t[n]&&e.config.chart.zoom.enabled&&r.push({el:a,icon:"string"==typeof t.t[n]?t.t[n]:s,title:t.localeValues[i],class:"apexcharts-".concat(n,"-icon")})};n("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n'),n("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n');var o=function(i){t.t[i]&&e.config.chart[i].enabled&&r.push({el:"zoom"===i?t.elZoom:t.elSelection,icon:"string"==typeof t.t[i]?t.t[i]:"zoom"===i?'<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>\n <path d="M0 0h24v24H0V0z" fill="none"/>\n <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n</svg>':'<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>\n</svg>',title:t.localeValues["zoom"===i?"selectionZoom":"selection"],class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(i,"-icon")})};o("zoom"),o("selection"),this.t.pan&&e.config.chart.zoom.enabled&&r.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <defs>\n <path d="M0 0h24v24H0z" id="a"/>\n </defs>\n <clipPath id="b">\n <use overflow="visible" xlink:href="#a"/>\n </clipPath>\n <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>\n</svg>',title:this.localeValues.pan,class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),n("reset",this.elZoomReset,'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n <path d="M0 0h24v24H0z" fill="none"/>\n</svg>'),this.t.download&&r.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l<this.elCustomIcons.length;l++)r.push({el:this.elCustomIcons[l],icon:this.t.customIcons[l].icon,title:this.t.customIcons[l].title,index:this.t.customIcons[l].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[l].class});r.forEach((function(t,e){t.index&&v.moveIndexInArray(r,e,t.index)}));for(var c=0;c<r.length;c++)k.setAttrs(r[c].el,{class:r[c].class,title:r[c].title}),r[c].el.innerHTML=r[c].icon,a.appendChild(r[c].el);this._createHamburgerMenu(a),e.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):e.globals.panEnabled?this.elPan.classList.add(this.selectedClass):e.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(t){this.elMenuItems=[],t.appendChild(this.elMenu),k.setAttrs(this.elMenu,{class:"apexcharts-menu"});var e=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}];this.w.globals.allSeriesHasEqualX||e.splice(2,1);for(var i=0;i<e.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=e[i].title,k.setAttrs(this.elMenuItems[i],{class:"apexcharts-menu-item ".concat(e[i].name),title:e[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{key:"addToolbarEventListeners",value:function(){var t=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach((function(e){e.classList.contains("exportSVG")?e.addEventListener("click",t.handleDownload.bind(t,"svg")):e.classList.contains("exportPNG")?e.addEventListener("click",t.handleDownload.bind(t,"png")):e.classList.contains("exportCSV")&&e.addEventListener("click",t.handleDownload.bind(t,"csv"))}));for(var e=0;e<this.t.customIcons.length;e++)this.elCustomIcons[e].addEventListener("click",this.t.customIcons[e].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(t){this.ctx.getSyncedCharts().forEach((function(e){e.ctx.toolbar.toggleOtherControls();var i="selection"===t?e.ctx.toolbar.elSelection:e.ctx.toolbar.elZoom,a="selection"===t?"selectionEnabled":"zoomEnabled";e.w.globals[a]=!e.w.globals[a],i.classList.contains(e.ctx.toolbar.selectedClass)?i.classList.remove(e.ctx.toolbar.selectedClass):i.classList.add(e.ctx.toolbar.selectedClass)}))}},{key:"getToolbarIconsReference",value:function(){var t=this.w;this.elZoom||(this.elZoom=t.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=t.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=t.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(t){this.toggleOtherControls(),"pan"===t?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var e="pan"===t?this.elPan:this.elZoom,i="pan"===t?this.elZoom:this.elPan;e&&e.classList.add(this.selectedClass),i&&i.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach((function(t){t.ctx.toolbar.toggleOtherControls(),t.w.globals.panEnabled=!t.w.globals.panEnabled,t.ctx.toolbar.elPan.classList.contains(t.ctx.toolbar.selectedClass)?t.ctx.toolbar.elPan.classList.remove(t.ctx.toolbar.selectedClass):t.ctx.toolbar.elPan.classList.add(t.ctx.toolbar.selectedClass)}))}},{key:"toggleOtherControls",value:function(){var t=this,e=this.w;e.globals.panEnabled=!1,e.globals.zoomEnabled=!1,e.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach((function(e){e&&e.classList.remove(t.selectedClass)}))}},{key:"handleZoomIn",value:function(){var t=this.w;t.globals.isRangeBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY);var e=(this.minX+this.maxX)/2,i=(this.minX+e)/2,a=(this.maxX+e)/2,s=this._getNewMinXMaxX(i,a);t.globals.disableZoomIn||this.zoomUpdateOptions(s.minX,s.maxX)}},{key:"handleZoomOut",value:function(){var t=this.w;if(t.globals.isRangeBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY),!("datetime"===t.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3)){var e=(this.minX+this.maxX)/2,i=this.minX-(e-this.minX),a=this.maxX-(e-this.maxX),s=this._getNewMinXMaxX(i,a);t.globals.disableZoomOut||this.zoomUpdateOptions(s.minX,s.maxX)}}},{key:"_getNewMinXMaxX",value:function(t,e){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(t):t,maxX:i?Math.floor(e):e}}},{key:"zoomUpdateOptions",value:function(t,e){var i=this.w;if(void 0!==t||void 0!==e){if(!(i.config.xaxis.convertedCatToNumeric&&(t<1&&(t=1,e=i.globals.dataPoints),e-t<2))){var a={min:t,max:e},s=this.getBeforeZoomRange(a);s&&(a=s.xaxis);var r={xaxis:a},n=v.clone(i.globals.initialConfig.yaxis);i.config.chart.zoom.autoScaleYaxis&&(n=new q(this.ctx).autoScaleY(this.ctx,n,{xaxis:a})),i.config.chart.group||(r.yaxis=n),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(r,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(a,n)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(t,e){"function"==typeof this.ev.zoomed&&this.ev.zoomed(this.ctx,{xaxis:t,yaxis:e})}},{key:"getBeforeZoomRange",value:function(t,e){var i=null;return"function"==typeof this.ev.beforeZoom&&(i=this.ev.beforeZoom(this,{xaxis:t,yaxis:e})),i}},{key:"toggleMenu",value:function(){var t=this;window.setTimeout((function(){t.elMenu.classList.contains("apexcharts-menu-open")?t.elMenu.classList.remove("apexcharts-menu-open"):t.elMenu.classList.add("apexcharts-menu-open")}),0)}},{key:"handleDownload",value:function(t){var e=this.w,i=new V(this.ctx);switch(t){case"svg":i.exportToSVG(this.ctx);break;case"png":i.exportToPng(this.ctx);break;case"csv":i.exportToCSV({series:e.config.series,columnDelimiter:e.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(t){this.ctx.getSyncedCharts().forEach((function(t){var e=t.w;if(e.globals.lastXAxis.min=e.globals.initialConfig.xaxis.min,e.globals.lastXAxis.max=e.globals.initialConfig.xaxis.max,t.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof e.config.chart.events.beforeResetZoom){var i=e.config.chart.events.beforeResetZoom(t,e);i&&t.updateHelpers.revertDefaultAxisMinMax(i)}"function"==typeof e.config.chart.events.zoomed&&t.ctx.toolbar.zoomCallback({min:e.config.xaxis.min,max:e.config.xaxis.max}),e.globals.zoomed=!1;var a=t.ctx.series.emptyCollapsedSeries(v.clone(e.globals.initialSeries));t.updateHelpers._updateSeries(a,e.config.chart.animations.dynamicAnimation.enabled)}))}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),t}(),gt=function(t){d(i,ut);var e=p(i);function i(t){var a;return o(this,i),(a=e.call(this,t)).ctx=t,a.w=t.w,a.dragged=!1,a.graphics=new k(a.ctx),a.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],a.clientX=0,a.clientY=0,a.startX=0,a.endX=0,a.dragX=0,a.startY=0,a.endY=0,a.dragY=0,a.moveDirection="none",a}return c(i,[{key:"init",value:function(t){var e=this,i=t.xyRatios,a=this.w,s=this;this.xyRatios=i,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=a.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),a.globals.dom.elGraphical.add(this.zoomRect),a.globals.dom.elGraphical.add(this.selectionRect),"x"===a.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:a.globals.gridWidth,maxY:a.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):"y"===a.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:a.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=a.globals.dom.baseEl.querySelector("".concat(a.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach((function(t){e.hoverArea.addEventListener(t,s.svgMouseEvents.bind(s,i),{capture:!1,passive:!0})}))}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(t,e){var i=this.w,a=this,s=this.ctx.toolbar,r=i.globals.zoomEnabled?i.config.chart.zoom.type:i.config.chart.selection.type,n=i.config.chart.toolbar.autoSelected;if(e.shiftKey?(this.shiftWasPressed=!0,s.enableZoomPanFromToolbar("pan"===n?"zoom":"pan")):this.shiftWasPressed&&(s.enableZoomPanFromToolbar(n),this.shiftWasPressed=!1),e.target){var o,l=e.target.classList;if(e.target.parentNode&&null!==e.target.parentNode&&(o=e.target.parentNode.classList),!(l.contains("apexcharts-selection-rect")||l.contains("apexcharts-legend-marker")||l.contains("apexcharts-legend-text")||o&&o.contains("apexcharts-toolbar"))){if(a.clientX="touchmove"===e.type||"touchstart"===e.type?e.touches[0].clientX:"touchend"===e.type?e.changedTouches[0].clientX:e.clientX,a.clientY="touchmove"===e.type||"touchstart"===e.type?e.touches[0].clientY:"touchend"===e.type?e.changedTouches[0].clientY:e.clientY,"mousedown"===e.type&&1===e.which){var c=a.gridRect.getBoundingClientRect();a.startX=a.clientX-c.left,a.startY=a.clientY-c.top,a.dragged=!1,a.w.globals.mousedown=!0}if(("mousemove"===e.type&&1===e.which||"touchmove"===e.type)&&(a.dragged=!0,i.globals.panEnabled?(i.globals.selection=null,a.w.globals.mousedown&&a.panDragging({context:a,zoomtype:r,xyRatios:t})):(a.w.globals.mousedown&&i.globals.zoomEnabled||a.w.globals.mousedown&&i.globals.selectionEnabled)&&(a.selection=a.selectionDrawing({context:a,zoomtype:r}))),"mouseup"===e.type||"touchend"===e.type||"mouseleave"===e.type){var h=a.gridRect.getBoundingClientRect();a.w.globals.mousedown&&(a.endX=a.clientX-h.left,a.endY=a.clientY-h.top,a.dragX=Math.abs(a.endX-a.startX),a.dragY=Math.abs(a.endY-a.startY),(i.globals.zoomEnabled||i.globals.selectionEnabled)&&a.selectionDrawn({context:a,zoomtype:r}),i.globals.panEnabled&&i.config.xaxis.convertedCatToNumeric&&a.delayedPanScrolled()),i.globals.zoomEnabled&&a.hideSelectionRect(this.selectionRect),a.dragged=!1,a.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"makeSelectionRectDraggable",value:function(){var t=this.w;if(this.selectionRect){var e=this.selectionRect.node.getBoundingClientRect();e.width>0&&e.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:t.globals.gridWidth,maxY:t.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var t=this.w,e=this.xyRatios;if(!t.globals.zoomEnabled)if(void 0!==t.globals.selection&&null!==t.globals.selection)this.drawSelectionRect(t.globals.selection);else if(void 0!==t.config.chart.selection.xaxis.min&&void 0!==t.config.chart.selection.xaxis.max){var i=(t.config.chart.selection.xaxis.min-t.globals.minX)/e.xRatio,a={x:i,y:0,width:t.globals.gridWidth-(t.globals.maxX-t.config.chart.selection.xaxis.max)/e.xRatio-i,height:t.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(a),this.makeSelectionRectDraggable(),"function"==typeof t.config.chart.events.selection&&t.config.chart.events.selection(this.ctx,{xaxis:{min:t.config.chart.selection.xaxis.min,max:t.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(t){var e=t.x,i=t.y,a=t.width,s=t.height,r=t.translateX,n=void 0===r?0:r,o=t.translateY,l=void 0===o?0:o,c=this.w,h=this.zoomRect,d=this.selectionRect;if(this.dragged||null!==c.globals.selection){var u={transform:"translate("+n+", "+l+")"};c.globals.zoomEnabled&&this.dragged&&(a<0&&(a=1),h.attr({x:e,y:i,width:a,height:s,fill:c.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":c.config.chart.zoom.zoomedArea.fill.opacity,stroke:c.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":c.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":c.config.chart.zoom.zoomedArea.stroke.opacity}),k.setAttrs(h.node,u)),c.globals.selectionEnabled&&(d.attr({x:e,y:i,width:a>0?a:0,height:s>0?s:0,fill:c.config.chart.selection.fill.color,"fill-opacity":c.config.chart.selection.fill.opacity,stroke:c.config.chart.selection.stroke.color,"stroke-width":c.config.chart.selection.stroke.width,"stroke-dasharray":c.config.chart.selection.stroke.dashArray,"stroke-opacity":c.config.chart.selection.stroke.opacity}),k.setAttrs(d.node,u))}}},{key:"hideSelectionRect",value:function(t){t&&t.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(t){var e,i=t.context,a=t.zoomtype,s=this.w,r=i,n=this.gridRect.getBoundingClientRect(),o=r.startX-1,l=r.startY,c=!1,h=!1,d=r.clientX-n.left-o,u=r.clientY-n.top-l;return Math.abs(d+o)>s.globals.gridWidth?d=s.globals.gridWidth-o:r.clientX-n.left<0&&(d=o),o>r.clientX-n.left&&(c=!0,d=Math.abs(d)),l>r.clientY-n.top&&(h=!0,u=Math.abs(u)),e="x"===a?{x:c?o-d:o,y:0,width:d,height:s.globals.gridHeight}:"y"===a?{x:0,y:h?l-u:l,width:s.globals.gridWidth,height:u}:{x:c?o-d:o,y:h?l-u:l,width:d,height:u},r.drawSelectionRect(e),r.selectionDragging("resizing"),e}},{key:"selectionDragging",value:function(t,e){var i=this,a=this.w,s=this.xyRatios,r=this.selectionRect,n=0;"resizing"===t&&(n=30);var o=function(t){return parseFloat(r.node.getAttribute(t))},l={x:o("x"),y:o("y"),width:o("width"),height:o("height")};a.globals.selection=l,"function"==typeof a.config.chart.events.selection&&a.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout((function(){var t=i.gridRect.getBoundingClientRect(),e=r.node.getBoundingClientRect(),n={xaxis:{min:a.globals.xAxisScale.niceMin+(e.left-t.left)*s.xRatio,max:a.globals.xAxisScale.niceMin+(e.right-t.left)*s.xRatio},yaxis:{min:a.globals.yAxisScale[0].niceMin+(t.bottom-e.bottom)*s.yRatio[0],max:a.globals.yAxisScale[0].niceMax-(e.top-t.top)*s.yRatio[0]}};a.config.chart.events.selection(i.ctx,n),a.config.chart.brush.enabled&&void 0!==a.config.chart.events.brushScrolled&&a.config.chart.events.brushScrolled(i.ctx,n)}),n))}},{key:"selectionDrawn",value:function(t){var e=t.context,i=t.zoomtype,a=this.w,s=e,r=this.xyRatios,n=this.ctx.toolbar;if(s.startX>s.endX){var o=s.startX;s.startX=s.endX,s.endX=o}if(s.startY>s.endY){var l=s.startY;s.startY=s.endY,s.endY=l}var c=void 0,h=void 0;a.globals.isRangeBar?(c=a.globals.yAxisScale[0].niceMin+s.startX*r.invertedYRatio,h=a.globals.yAxisScale[0].niceMin+s.endX*r.invertedYRatio):(c=a.globals.xAxisScale.niceMin+s.startX*r.xRatio,h=a.globals.xAxisScale.niceMin+s.endX*r.xRatio);var d=[],u=[];if(a.config.yaxis.forEach((function(t,e){d.push(a.globals.yAxisScale[e].niceMax-r.yRatio[e]*s.startY),u.push(a.globals.yAxisScale[e].niceMax-r.yRatio[e]*s.endY)})),s.dragged&&(s.dragX>10||s.dragY>10)&&c!==h)if(a.globals.zoomEnabled){var g=v.clone(a.globals.initialConfig.yaxis),p=v.clone(a.globals.initialConfig.xaxis);if(a.globals.zoomed=!0,a.config.xaxis.convertedCatToNumeric&&(c=Math.floor(c),h=Math.floor(h),c<1&&(c=1,h=a.globals.dataPoints),h-c<2&&(h=c+1)),"xy"!==i&&"x"!==i||(p={min:c,max:h}),"xy"!==i&&"y"!==i||g.forEach((function(t,e){g[e].min=u[e],g[e].max=d[e]})),a.config.chart.zoom.autoScaleYaxis){var f=new q(s.ctx);g=f.autoScaleY(s.ctx,g,{xaxis:p})}if(n){var x=n.getBeforeZoomRange(p,g);x&&(p=x.xaxis?x.xaxis:p,g=x.yaxis?x.yaxis:g)}var m={xaxis:p};a.config.chart.group||(m.yaxis=g),s.ctx.updateHelpers._updateOptions(m,!1,s.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof a.config.chart.events.zoomed&&n.zoomCallback(p,g)}else if(a.globals.selectionEnabled){var b,y=null;b={min:c,max:h},"xy"!==i&&"y"!==i||(y=v.clone(a.config.yaxis)).forEach((function(t,e){y[e].min=u[e],y[e].max=d[e]})),a.globals.selection=s.selection,"function"==typeof a.config.chart.events.selection&&a.config.chart.events.selection(s.ctx,{xaxis:b,yaxis:y})}}},{key:"panDragging",value:function(t){var e=t.context,i=this.w,a=e;if(void 0!==i.globals.lastClientPosition.x){var s=i.globals.lastClientPosition.x-a.clientX,r=i.globals.lastClientPosition.y-a.clientY;Math.abs(s)>Math.abs(r)&&s>0?this.moveDirection="left":Math.abs(s)>Math.abs(r)&&s<0?this.moveDirection="right":Math.abs(r)>Math.abs(s)&&r>0?this.moveDirection="up":Math.abs(r)>Math.abs(s)&&r<0&&(this.moveDirection="down")}i.globals.lastClientPosition={x:a.clientX,y:a.clientY};var n=i.globals.isRangeBar?i.globals.minY:i.globals.minX,o=i.globals.isRangeBar?i.globals.maxY:i.globals.maxX;i.config.xaxis.convertedCatToNumeric||a.panScrolled(n,o)}},{key:"delayedPanScrolled",value:function(){var t=this.w,e=t.globals.minX,i=t.globals.maxX,a=(t.globals.maxX-t.globals.minX)/2;"left"===this.moveDirection?(e=t.globals.minX+a,i=t.globals.maxX+a):"right"===this.moveDirection&&(e=t.globals.minX-a,i=t.globals.maxX-a),e=Math.floor(e),i=Math.floor(i),this.updateScrolledChart({xaxis:{min:e,max:i}},e,i)}},{key:"panScrolled",value:function(t,e){var i=this.w,a=this.xyRatios,s=v.clone(i.globals.initialConfig.yaxis),r=a.xRatio,n=i.globals.minX,o=i.globals.maxX;i.globals.isRangeBar&&(r=a.invertedYRatio,n=i.globals.minY,o=i.globals.maxY),"left"===this.moveDirection?(t=n+i.globals.gridWidth/15*r,e=o+i.globals.gridWidth/15*r):"right"===this.moveDirection&&(t=n-i.globals.gridWidth/15*r,e=o-i.globals.gridWidth/15*r),i.globals.isRangeBar||(t<i.globals.initialMinX||e>i.globals.initialMaxX)&&(t=n,e=o);var l={min:t,max:e};i.config.chart.zoom.autoScaleYaxis&&(s=new q(this.ctx).autoScaleY(this.ctx,s,{xaxis:l}));var c={xaxis:{min:t,max:e}};i.config.chart.group||(c.yaxis=s),this.updateScrolledChart(c,t,e)}},{key:"updateScrolledChart",value:function(t,e,i){var a=this.w;this.ctx.updateHelpers._updateOptions(t,!1,!1),"function"==typeof a.config.chart.events.scrolled&&a.config.chart.events.scrolled(this.ctx,{xaxis:{min:e,max:i}})}}]),i}(),pt=function(){function t(e){o(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return c(t,[{key:"getNearestValues",value:function(t){var e=t.hoverArea,i=t.elGrid,a=t.clientX,s=t.clientY,r=this.w,n=i.getBoundingClientRect(),o=n.width,l=n.height,c=o/(r.globals.dataPoints-1),h=l/r.globals.dataPoints,d=this.hasBars();!r.globals.comboCharts&&!d||r.config.xaxis.convertedCatToNumeric||(c=o/r.globals.dataPoints);var u=a-n.left-r.globals.barPadForNumericAxis,g=s-n.top;u<0||g<0||u>o||g>l?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):r.globals.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):r.globals.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));var p=Math.round(u/c),f=Math.floor(g/h);d&&!r.config.xaxis.convertedCatToNumeric&&(p=Math.ceil(u/c),p-=1);var x=null,m=null,b=r.globals.seriesXvalues.map((function(t){return t.filter((function(t){return v.isNumber(t)}))})),y=r.globals.seriesYvalues.map((function(t){return t.filter((function(t){return v.isNumber(t)}))}));if(r.globals.isXNumeric){var w=this.ttCtx.getElGrid().getBoundingClientRect(),k=u*(w.width/o),A=g*(w.height/l);x=(m=this.closestInMultiArray(k,A,b,y)).index,p=m.j,null!==x&&(b=r.globals.seriesXvalues[x],p=(m=this.closestInArray(k,b)).index)}return r.globals.capturedSeriesIndex=null===x?-1:x,(!p||p<1)&&(p=0),r.globals.isBarHorizontal?r.globals.capturedDataPointIndex=f:r.globals.capturedDataPointIndex=p,{capturedSeries:x,j:r.globals.isBarHorizontal?f:p,hoverX:u,hoverY:g}}},{key:"closestInMultiArray",value:function(t,e,i,a){var s=this.w,r=0,n=null,o=-1;s.globals.series.length>1?r=this.getFirstActiveXArray(i):n=0;var l=i[r][0],c=Math.abs(t-l);if(i.forEach((function(e){e.forEach((function(e,i){var a=Math.abs(t-e);a<=c&&(c=a,o=i)}))})),-1!==o){var h=a[r][o],d=Math.abs(e-h);n=r,a.forEach((function(t,i){var a=Math.abs(e-t[o]);a<=d&&(d=a,n=i)}))}return{index:n,j:o}}},{key:"getFirstActiveXArray",value:function(t){for(var e=this.w,i=0,a=t.map((function(t,e){return t.length>0?e:-1})),s=0;s<a.length;s++)if(-1!==a[s]&&-1===e.globals.collapsedSeriesIndices.indexOf(s)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(s)){i=a[s];break}return i}},{key:"closestInArray",value:function(t,e){for(var i=e[0],a=null,s=Math.abs(t-i),r=0;r<e.length;r++){var n=Math.abs(t-e[r]);n<s&&(s=n,a=r)}return{index:a}}},{key:"isXoverlap",value:function(t){var e=[],i=this.w.globals.seriesX.filter((function(t){return void 0!==t[0]}));if(i.length>0)for(var a=0;a<i.length-1;a++)void 0!==i[a][t]&&void 0!==i[a+1][t]&&i[a][t]!==i[a+1][t]&&e.push("unEqual");return 0===e.length}},{key:"isInitialSeriesSameLen",value:function(){for(var t=!0,e=this.w.globals.initialSeries,i=0;i<e.length-1;i++)if(e[i].data.length!==e[i+1].data.length){t=!1;break}return t}},{key:"getBarsHeight",value:function(t){return x(t).reduce((function(t,e){return t+e.getBBox().height}),0)}},{key:"getElMarkers",value:function(t){return"number"==typeof t?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(t=x(t)).sort((function(t,e){var i=Number(t.getAttribute("data:realIndex")),a=Number(e.getAttribute("data:realIndex"));return a<i?1:a>i?-1:0}));var e=[];return t.forEach((function(t){e.push(t.querySelector(".apexcharts-marker"))})),e}},{key:"hasMarkers",value:function(t){return this.getElMarkers(t).length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(t){var e=this.w,i=e.config.markers.hover.size;return void 0===i&&(i=e.globals.markers.size[t]+e.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(t){var e=this.w,i=this.ttCtx;0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=e.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var a=i.allTooltipSeriesGroups,s=0;s<a.length;s++)"enable"===t?(a[s].classList.add("apexcharts-active"),a[s].style.display=e.config.tooltip.items.display):(a[s].classList.remove("apexcharts-active"),a[s].style.display="none")}}]),t}(),ft=function(){function t(e){o(this,t),this.w=e.w,this.ctx=e.ctx,this.ttCtx=e,this.tooltipUtil=new pt(e)}return c(t,[{key:"drawSeriesTexts",value:function(t){var e=t.shared,i=void 0===e||e,a=t.ttItems,s=t.i,r=void 0===s?0:s,n=t.j,o=void 0===n?null:n,l=t.y1,c=t.y2,h=t.e,d=this.w;void 0!==d.config.tooltip.custom?this.handleCustomTooltip({i:r,j:o,y1:l,y2:c,w:d}):this.toggleActiveInactiveSeries(i);var u=this.getValuesToPrint({i:r,j:o});this.printLabels({i:r,j:o,values:u,ttItems:a,shared:i,e:h});var g=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=g.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=g.getBoundingClientRect().height}},{key:"printLabels",value:function(t){var e,i=this,a=t.i,s=t.j,n=t.values,o=t.ttItems,l=t.shared,c=t.e,h=this.w,d=[],u=function(t){return h.globals.seriesGoals[t]&&h.globals.seriesGoals[t][s]&&Array.isArray(h.globals.seriesGoals[t][s])},g=n.xVal,p=n.zVal,f=n.xAxisTTVal,x="",m=h.globals.colors[a];null!==s&&h.config.plotOptions.bar.distributed&&(m=h.globals.colors[s]);for(var b=function(t,n){var b=i.getFormatters(a);x=i.getSeriesName({fn:b.yLbTitleFormatter,index:a,seriesIndex:a,j:s}),"treemap"===h.config.chart.type&&(x=b.yLbTitleFormatter(String(h.config.series[a].data[s].x),{series:h.globals.series,seriesIndex:a,dataPointIndex:s,w:h}));var v=h.config.tooltip.inverseOrder?n:t;if(h.globals.axisCharts){var y=function(t){var e,i,a,r;return h.globals.isRangeData?b.yLbFormatter(null===(e=h.globals.seriesRangeStart)||void 0===e||null===(i=e[t])||void 0===i?void 0:i[s],{series:h.globals.seriesRangeStart,seriesIndex:t,dataPointIndex:s,w:h})+" - "+b.yLbFormatter(null===(a=h.globals.seriesRangeEnd)||void 0===a||null===(r=a[t])||void 0===r?void 0:r[s],{series:h.globals.seriesRangeEnd,seriesIndex:t,dataPointIndex:s,w:h}):b.yLbFormatter(h.globals.series[t][s],{series:h.globals.series,seriesIndex:t,dataPointIndex:s,w:h})};if(l)b=i.getFormatters(v),x=i.getSeriesName({fn:b.yLbTitleFormatter,index:v,seriesIndex:a,j:s}),m=h.globals.colors[v],e=y(v),u(v)&&(d=h.globals.seriesGoals[v][s].map((function(t){return{attrs:t,val:b.yLbFormatter(t.value,{seriesIndex:v,dataPointIndex:s,w:h})}})));else{var w,k=null==c||null===(w=c.target)||void 0===w?void 0:w.getAttribute("fill");k&&(m=-1!==k.indexOf("url")?document.querySelector(k.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):k),e=y(a),u(a)&&Array.isArray(h.globals.seriesGoals[a][s])&&(d=h.globals.seriesGoals[a][s].map((function(t){return{attrs:t,val:b.yLbFormatter(t.value,{seriesIndex:a,dataPointIndex:s,w:h})}})))}}null===s&&(e=b.yLbFormatter(h.globals.series[a],r(r({},h),{},{seriesIndex:a,dataPointIndex:a}))),i.DOMHandling({i:a,t:v,j:s,ttItems:o,values:{val:e,goalVals:d,xVal:g,xAxisTTVal:f,zVal:p},seriesName:x,shared:l,pColor:m})},v=0,y=h.globals.series.length-1;v<h.globals.series.length;v++,y--)b(v,y)}},{key:"getFormatters",value:function(t){var e,i=this.w,a=i.globals.yLabelFormatters[t];return void 0!==i.globals.ttVal?Array.isArray(i.globals.ttVal)?(a=i.globals.ttVal[t]&&i.globals.ttVal[t].formatter,e=i.globals.ttVal[t]&&i.globals.ttVal[t].title&&i.globals.ttVal[t].title.formatter):(a=i.globals.ttVal.formatter,"function"==typeof i.globals.ttVal.title.formatter&&(e=i.globals.ttVal.title.formatter)):e=i.config.tooltip.y.title.formatter,"function"!=typeof a&&(a=i.globals.yLabelFormatters[0]?i.globals.yLabelFormatters[0]:function(t){return t}),"function"!=typeof e&&(e=function(t){return t}),{yLbFormatter:a,yLbTitleFormatter:e}}},{key:"getSeriesName",value:function(t){var e=t.fn,i=t.index,a=t.seriesIndex,s=t.j,r=this.w;return e(String(r.globals.seriesNames[i]),{series:r.globals.series,seriesIndex:a,dataPointIndex:s,w:r})}},{key:"DOMHandling",value:function(t){t.i;var e=t.t,i=t.j,a=t.ttItems,s=t.values,r=t.seriesName,n=t.shared,o=t.pColor,l=this.w,c=this.ttCtx,h=s.val,d=s.goalVals,u=s.xVal,g=s.xAxisTTVal,p=s.zVal,f=null;f=a[e].children,l.config.tooltip.fillSeriesColor&&(a[e].style.backgroundColor=o,f[0].style.display="none"),c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=u),c.isXAxisTooltipEnabled&&(c.xaxisTooltipText.innerHTML=""!==g?g:u);var x=a[e].querySelector(".apexcharts-tooltip-text-y-label");x&&(x.innerHTML=r||"");var m=a[e].querySelector(".apexcharts-tooltip-text-y-value");m&&(m.innerHTML=void 0!==h?h:""),f[0]&&f[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(o=l.config.tooltip.marker.fillColors[e]),f[0].style.backgroundColor=o),l.config.tooltip.marker.show||(f[0].style.display="none");var b=a[e].querySelector(".apexcharts-tooltip-text-goals-label"),v=a[e].querySelector(".apexcharts-tooltip-text-goals-value");if(d.length&&l.globals.seriesGoals[e]){var y=function(){var t="<div >",e="<div>";d.forEach((function(i,a){t+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(i.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(i.attrs.name,"</div>"),e+="<div>".concat(i.val,"</div>")})),b.innerHTML=t+"</div>",v.innerHTML=e+"</div>"};n?l.globals.seriesGoals[e][i]&&Array.isArray(l.globals.seriesGoals[e][i])?y():(b.innerHTML="",v.innerHTML=""):y()}else b.innerHTML="",v.innerHTML="";null!==p&&(a[e].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,a[e].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==p?p:""),n&&f[0]&&(null==h||l.globals.ancillaryCollapsedSeriesIndices.indexOf(e)>-1||l.globals.collapsedSeriesIndices.indexOf(e)>-1?f[0].parentNode.style.display="none":f[0].parentNode.style.display=l.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(t){var e=this.w;if(t)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=e.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=e.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(t){var e=t.i,i=t.j,a=this.w,s=this.ctx.series.filteredSeriesX(),r="",n="",o=null,l=null,c={series:a.globals.series,seriesIndex:e,dataPointIndex:i,w:a},h=a.globals.ttZFormatter;null===i?l=a.globals.series[e]:a.globals.isXNumeric&&"treemap"!==a.config.chart.type?(r=s[e][i],0===s[e].length&&(r=s[this.tooltipUtil.getFirstActiveXArray(s)][i])):r=void 0!==a.globals.labels[i]?a.globals.labels[i]:"";var d=r;return r=a.globals.isXNumeric&&"datetime"===a.config.xaxis.type?new z(this.ctx).xLabelFormat(a.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new E(this.ctx).formatDate,w:this.w}):a.globals.isBarHorizontal?a.globals.yLabelFormatters[0](d,c):a.globals.xLabelFormatter(d,c),void 0!==a.config.tooltip.x.formatter&&(r=a.globals.ttKeyFormatter(d,c)),a.globals.seriesZ.length>0&&a.globals.seriesZ[e].length>0&&(o=h(a.globals.seriesZ[e][i],a)),n="function"==typeof a.config.xaxis.tooltip.formatter?a.globals.xaxisTooltipFormatter(d,c):r,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(r)?r.join(" "):r,xAxisTTVal:Array.isArray(n)?n.join(" "):n,zVal:o}}},{key:"handleCustomTooltip",value:function(t){var e=t.i,i=t.j,a=t.y1,s=t.y2,r=t.w,n=this.ttCtx.getElTooltip(),o=r.config.tooltip.custom;Array.isArray(o)&&o[e]&&(o=o[e]),n.innerHTML=o({ctx:this.ctx,series:r.globals.series,seriesIndex:e,dataPointIndex:i,y1:a,y2:s,w:r})}}]),t}(),xt=function(){function t(e){o(this,t),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return c(t,[{key:"moveXCrosshairs",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,a=this.w,s=i.getElXCrosshairs(),r=t-i.xcrosshairsWidth/2,n=a.globals.labels.slice().length;if(null!==e&&(r=a.globals.gridWidth/n*e),null===s||a.globals.isBarHorizontal||(s.setAttribute("x",r),s.setAttribute("x1",r),s.setAttribute("x2",r),s.setAttribute("y2",a.globals.gridHeight),s.classList.add("apexcharts-active")),r<0&&(r=0),r>a.globals.gridWidth&&(r=a.globals.gridWidth),i.isXAxisTooltipEnabled){var o=r;"tickWidth"!==a.config.xaxis.crosshairs.width&&"barWidth"!==a.config.xaxis.crosshairs.width||(o=r+i.xcrosshairsWidth/2),this.moveXAxisTooltip(o)}}},{key:"moveYCrosshairs",value:function(t){var e=this.ttCtx;null!==e.ycrosshairs&&k.setAttrs(e.ycrosshairs,{y1:t,y2:t}),null!==e.ycrosshairsHidden&&k.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}},{key:"moveXAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;if(null!==i.xaxisTooltip&&0!==i.xcrosshairsWidth){i.xaxisTooltip.classList.add("apexcharts-active");var a,s=i.xaxisOffY+e.config.xaxis.tooltip.offsetY+e.globals.translateY+1+e.config.xaxis.offsetY;t-=i.xaxisTooltip.getBoundingClientRect().width/2,isNaN(t)||(t+=e.globals.translateX,a=new k(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=a.width+"px",i.xaxisTooltip.style.left=t+"px",i.xaxisTooltip.style.top=s+"px")}}},{key:"moveYAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;null===i.yaxisTTEls&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var a=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),s=e.globals.translateY+a,r=i.yaxisTTEls[t].getBoundingClientRect().height,n=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(n-=26),s-=r/2,-1===e.globals.ignoreYAxisIndexes.indexOf(t)?(i.yaxisTTEls[t].classList.add("apexcharts-active"),i.yaxisTTEls[t].style.top=s+"px",i.yaxisTTEls[t].style.left=n+e.config.yaxis[t].tooltip.offsetX+"px"):i.yaxisTTEls[t].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=this.w,s=this.ttCtx,r=s.getElTooltip(),n=s.tooltipRect,o=null!==i?parseFloat(i):1,l=parseFloat(t)+o+5,c=parseFloat(e)+o/2;if(l>a.globals.gridWidth/2&&(l=l-n.ttWidth-o-10),l>a.globals.gridWidth-n.ttWidth-10&&(l=a.globals.gridWidth-n.ttWidth),l<-20&&(l=-20),a.config.tooltip.followCursor){var h=s.getElGrid().getBoundingClientRect();(l=s.e.clientX-h.left)>a.globals.gridWidth/2&&(l-=s.tooltipRect.ttWidth),(c=s.e.clientY+a.globals.translateY-h.top)>a.globals.gridHeight/2&&(c-=s.tooltipRect.ttHeight)}else a.globals.isBarHorizontal||n.ttHeight/2+c>a.globals.gridHeight&&(c=a.globals.gridHeight-n.ttHeight+a.globals.translateY);isNaN(l)||(l+=a.globals.translateX,r.style.left=l+"px",r.style.top=c+"px")}},{key:"moveMarkers",value:function(t,e){var i=this.w,a=this.ttCtx;if(i.globals.markers.size[t]>0)for(var s=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-marker")),r=0;r<s.length;r++)parseInt(s[r].getAttribute("rel"),10)===e&&(a.marker.resetPointsSize(),a.marker.enlargeCurrentPoint(e,s[r]));else a.marker.resetPointsSize(),this.moveDynamicPointOnHover(e,t)}},{key:"moveDynamicPointOnHover",value:function(t,e){var i,a,s=this.w,r=this.ttCtx,n=s.globals.pointsArray,o=r.tooltipUtil.getHoverMarkerSize(e),l=s.config.series[e].type;if(!l||"column"!==l&&"candlestick"!==l&&"boxPlot"!==l){i=n[e][t][0],a=n[e][t][1]?n[e][t][1]:0;var c=s.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers circle"));c&&a<s.globals.gridHeight&&a>0&&(c.setAttribute("r",o),c.setAttribute("cx",i),c.setAttribute("cy",a)),this.moveXCrosshairs(i),r.fixedTooltip||this.moveTooltip(i,a,o)}}},{key:"moveDynamicPointsOnHover",value:function(t){var e,i=this.ttCtx,a=i.w,s=0,r=0,n=a.globals.pointsArray;e=new $(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var o=i.tooltipUtil.getHoverMarkerSize(e);n[e]&&(s=n[e][t][0],r=n[e][t][1]);var l=i.tooltipUtil.getAllMarkers();if(null!==l)for(var c=0;c<a.globals.series.length;c++){var h=n[c];if(a.globals.comboCharts&&void 0===h&&l.splice(c,0,null),h&&h.length){var d=n[c][t][1],u=void 0;if(l[c].setAttribute("cx",s),"rangeArea"===a.config.chart.type&&!a.globals.comboCharts){var g=t+a.globals.series[c].length;u=n[c][g][1],d-=Math.abs(d-u)/2}null!==d&&!isNaN(d)&&d<a.globals.gridHeight+o&&d+o>0?(l[c]&&l[c].setAttribute("r",o),l[c]&&l[c].setAttribute("cy",d)):l[c]&&l[c].setAttribute("r",0)}}this.moveXCrosshairs(s),i.fixedTooltip||this.moveTooltip(s,r||a.globals.gridHeight,o)}},{key:"moveStickyTooltipOverBars",value:function(t,e){var i=this.w,a=this.ttCtx,s=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length,r=s>=2&&s%2==0?Math.floor(s/2):Math.floor(s/2)+1;i.globals.isBarHorizontal&&(r=new $(this.ctx).getActiveConfigSeriesIndex("desc")+1);var n=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(r,"'] path[j='").concat(t,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"']"));n||"number"!=typeof e||(n=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"']")));var o=n?parseFloat(n.getAttribute("cx")):0,l=n?parseFloat(n.getAttribute("cy")):0,c=n?parseFloat(n.getAttribute("barWidth")):0,h=a.getElGrid().getBoundingClientRect(),d=n&&(n.classList.contains("apexcharts-candlestick-area")||n.classList.contains("apexcharts-boxPlot-area"));i.globals.isXNumeric?(n&&!d&&(o-=s%2!=0?c/2:0),n&&d&&i.globals.comboCharts&&(o-=c/2)):i.globals.isBarHorizontal||(o=a.xAxisTicksPositions[t-1]+a.dataPointsDividedWidth/2,isNaN(o)&&(o=a.xAxisTicksPositions[t]-a.dataPointsDividedWidth/2)),i.globals.isBarHorizontal?l-=a.tooltipRect.ttHeight:i.config.tooltip.followCursor?l=a.e.clientY-h.top-a.tooltipRect.ttHeight/2:l+a.tooltipRect.ttHeight+15>i.globals.gridHeight&&(l=i.globals.gridHeight),i.globals.isBarHorizontal||this.moveXCrosshairs(o),a.fixedTooltip||this.moveTooltip(o,l||i.globals.gridHeight)}}]),t}(),mt=function(){function t(e){o(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new xt(e)}return c(t,[{key:"drawDynamicPoints",value:function(){var t=this.w,e=new k(this.ctx),i=new D(this.ctx),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");a=x(a),t.config.chart.stacked&&a.sort((function(t,e){return parseFloat(t.getAttribute("data:realIndex"))-parseFloat(e.getAttribute("data:realIndex"))}));for(var s=0;s<a.length;s++){var r=a[s].querySelector(".apexcharts-series-markers-wrap");if(null!==r){var n=void 0,o="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));"line"!==t.config.chart.type&&"area"!==t.config.chart.type||t.globals.comboCharts||t.config.tooltip.intersect||(o+=" no-pointer-events");var l=i.getMarkerConfig({cssClass:o,seriesIndex:Number(r.getAttribute("data:realIndex"))});(n=e.drawMarker(0,0,l)).node.setAttribute("default-marker-size",0);var c=document.createElementNS(t.globals.SVGNS,"g");c.classList.add("apexcharts-series-markers"),c.appendChild(n.node),r.appendChild(c)}}}},{key:"enlargeCurrentPoint",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=this.w;"bubble"!==s.config.chart.type&&this.newPointSize(t,e);var r=e.getAttribute("cx"),n=e.getAttribute("cy");if(null!==i&&null!==a&&(r=i,n=a),this.tooltipPosition.moveXCrosshairs(r),!this.fixedTooltip){if("radar"===s.config.chart.type){var o=this.ttCtx.getElGrid().getBoundingClientRect();r=this.ttCtx.e.clientX-o.left}this.tooltipPosition.moveTooltip(r,n,s.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var e=this.w,i=this,a=this.ttCtx,s=t,r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),n=e.config.markers.hover.size,o=0;o<r.length;o++){var l=r[o].getAttribute("rel"),c=r[o].getAttribute("index");if(void 0===n&&(n=e.globals.markers.size[c]+e.config.markers.hover.sizeOffset),s===parseInt(l,10)){i.newPointSize(s,r[o]);var h=r[o].getAttribute("cx"),d=r[o].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(h),a.fixedTooltip||i.tooltipPosition.moveTooltip(h,d,n)}else i.oldPointSize(r[o])}}},{key:"newPointSize",value:function(t,e){var i=this.w,a=i.config.markers.hover.size,s=0===t?e.parentNode.firstChild:e.parentNode.lastChild;if("0"!==s.getAttribute("default-marker-size")){var r=parseInt(s.getAttribute("index"),10);void 0===a&&(a=i.globals.markers.size[r]+i.config.markers.hover.sizeOffset),a<0&&(a=0),s.setAttribute("r",a)}}},{key:"oldPointSize",value:function(t){var e=parseFloat(t.getAttribute("default-marker-size"));t.setAttribute("r",e)}},{key:"resetPointsSize",value:function(){for(var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),e=0;e<t.length;e++){var i=parseFloat(t[e].getAttribute("default-marker-size"));v.isNumber(i)&&i>=0?t[e].setAttribute("r",i):t[e].setAttribute("r",0)}}}]),t}(),bt=function(){function t(e){o(this,t),this.w=e.w;var i=this.w;this.ttCtx=e,this.isVerticalGroupedRangeBar=!i.globals.isBarHorizontal&&"rangeBar"===i.config.chart.type&&i.config.plotOptions.bar.rangeBarGroupRows}return c(t,[{key:"getAttr",value:function(t,e){return parseFloat(t.target.getAttribute(e))}},{key:"handleHeatTreeTooltip",value:function(t){var e=t.e,i=t.opt,a=t.x,s=t.y,r=t.type,n=this.ttCtx,o=this.w;if(e.target.classList.contains("apexcharts-".concat(r,"-rect"))){var l=this.getAttr(e,"i"),c=this.getAttr(e,"j"),h=this.getAttr(e,"cx"),d=this.getAttr(e,"cy"),u=this.getAttr(e,"width"),g=this.getAttr(e,"height");if(n.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:l,j:c,shared:!1,e}),o.globals.capturedSeriesIndex=l,o.globals.capturedDataPointIndex=c,a=h+n.tooltipRect.ttWidth/2+u,s=d+n.tooltipRect.ttHeight/2-g/2,n.tooltipPosition.moveXCrosshairs(h+u/2),a>o.globals.gridWidth/2&&(a=h-n.tooltipRect.ttWidth/2+u),n.w.config.tooltip.followCursor){var p=o.globals.dom.elWrap.getBoundingClientRect();a=o.globals.clientX-p.left-(a>o.globals.gridWidth/2?n.tooltipRect.ttWidth:0),s=o.globals.clientY-p.top-(s>o.globals.gridHeight/2?n.tooltipRect.ttHeight:0)}}return{x:a,y:s}}},{key:"handleMarkerTooltip",value:function(t){var e,i,a=t.e,s=t.opt,r=t.x,n=t.y,o=this.w,l=this.ttCtx;if(a.target.classList.contains("apexcharts-marker")){var c=parseInt(s.paths.getAttribute("cx"),10),h=parseInt(s.paths.getAttribute("cy"),10),d=parseFloat(s.paths.getAttribute("val"));if(i=parseInt(s.paths.getAttribute("rel"),10),e=parseInt(s.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var u=v.findAncestor(s.paths,"apexcharts-series");u&&(e=parseInt(u.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:e,j:i,shared:!l.showOnIntersect&&o.config.tooltip.shared,e:a}),"mouseup"===a.type&&l.markerClick(a,e,i),o.globals.capturedSeriesIndex=e,o.globals.capturedDataPointIndex=i,r=c,n=h+o.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var g=l.getElGrid().getBoundingClientRect();n=l.e.clientY+o.globals.translateY-g.top}d<0&&(n=h),l.marker.enlargeCurrentPoint(i,s.paths,r,n)}return{x:r,y:n}}},{key:"handleBarTooltip",value:function(t){var e,i,a=t.e,s=t.opt,r=this.w,n=this.ttCtx,o=n.getElTooltip(),l=0,c=0,h=0,d=this.getBarTooltipXY({e:a,opt:s});e=d.i;var u=d.barHeight,g=d.j;r.globals.capturedSeriesIndex=e,r.globals.capturedDataPointIndex=g,r.globals.isBarHorizontal&&n.tooltipUtil.hasBars()||!r.config.tooltip.shared?(c=d.x,h=d.y,i=Array.isArray(r.config.stroke.width)?r.config.stroke.width[e]:r.config.stroke.width,l=c):r.globals.comboCharts||r.config.tooltip.shared||(l/=2),isNaN(h)&&(h=r.globals.svgHeight-n.tooltipRect.ttHeight);var p=parseInt(s.paths.parentNode.getAttribute("data:realIndex"),10),f=r.globals.isMultipleYAxis?r.config.yaxis[p]&&r.config.yaxis[p].reversed:r.config.yaxis[0].reversed;if(c+n.tooltipRect.ttWidth>r.globals.gridWidth&&!f?c-=n.tooltipRect.ttWidth:c<0&&(c=0),n.w.config.tooltip.followCursor){var x=n.getElGrid().getBoundingClientRect();h=n.e.clientY-x.top}null===n.tooltip&&(n.tooltip=r.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),r.config.tooltip.shared||(r.globals.comboBarCount>0?n.tooltipPosition.moveXCrosshairs(l+i/2):n.tooltipPosition.moveXCrosshairs(l)),!n.fixedTooltip&&(!r.config.tooltip.shared||r.globals.isBarHorizontal&&n.tooltipUtil.hasBars())&&(f&&(c-=n.tooltipRect.ttWidth)<0&&(c=0),!f||r.globals.isBarHorizontal&&n.tooltipUtil.hasBars()||(h=h+u-2*(r.globals.series[e][g]<0?u:0)),h=h+r.globals.translateY-n.tooltipRect.ttHeight/2,o.style.left=c+r.globals.translateX+"px",o.style.top=h+"px")}},{key:"getBarTooltipXY",value:function(t){var e=this,i=t.e,a=t.opt,s=this.w,r=null,n=this.ttCtx,o=0,l=0,c=0,h=0,d=0,u=i.target.classList;if(u.contains("apexcharts-bar-area")||u.contains("apexcharts-candlestick-area")||u.contains("apexcharts-boxPlot-area")||u.contains("apexcharts-rangebar-area")){var g=i.target,p=g.getBoundingClientRect(),f=a.elGrid.getBoundingClientRect(),x=p.height;d=p.height;var m=p.width,b=parseInt(g.getAttribute("cx"),10),v=parseInt(g.getAttribute("cy"),10);h=parseFloat(g.getAttribute("barWidth"));var y="touchmove"===i.type?i.touches[0].clientX:i.clientX;r=parseInt(g.getAttribute("j"),10),o=parseInt(g.parentNode.getAttribute("rel"),10)-1;var w=g.getAttribute("data-range-y1"),k=g.getAttribute("data-range-y2");s.globals.comboCharts&&(o=parseInt(g.parentNode.getAttribute("data:realIndex"),10));var A=function(t){return s.globals.isXNumeric?b-m/2:e.isVerticalGroupedRangeBar?b+m/2:b-n.dataPointsDividedWidth+m/2},C=function(){return v-n.dataPointsDividedHeight+x/2-n.tooltipRect.ttHeight/2};n.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:o,j:r,y1:w?parseInt(w,10):null,y2:k?parseInt(k,10):null,shared:!n.showOnIntersect&&s.config.tooltip.shared,e:i}),s.config.tooltip.followCursor?s.globals.isBarHorizontal?(l=y-f.left+15,c=C()):(l=A(),c=i.clientY-f.top-n.tooltipRect.ttHeight/2-15):s.globals.isBarHorizontal?((l=b)<n.xyRatios.baseLineInvertedY&&(l=b-n.tooltipRect.ttWidth),c=C()):(l=A(),c=v)}return{x:l,y:c,barHeight:d,barWidth:h,i:o,j:r}}}]),t}(),vt=function(){function t(e){o(this,t),this.w=e.w,this.ttCtx=e}return c(t,[{key:"drawXaxisTooltip",value:function(){var t=this.w,e=this.ttCtx,i="bottom"===t.config.xaxis.position;e.xaxisOffY=i?t.globals.gridHeight+1:-t.globals.xAxisHeight-t.config.xaxis.axisTicks.height+3;var a=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",s=t.globals.dom.elWrap;e.isXAxisTooltipEnabled&&null===t.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(e.xaxisTooltip=document.createElement("div"),e.xaxisTooltip.setAttribute("class",a+" apexcharts-theme-"+t.config.tooltip.theme),s.appendChild(e.xaxisTooltip),e.xaxisTooltipText=document.createElement("div"),e.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),e.xaxisTooltipText.style.fontFamily=t.config.xaxis.tooltip.style.fontFamily||t.config.chart.fontFamily,e.xaxisTooltipText.style.fontSize=t.config.xaxis.tooltip.style.fontSize,e.xaxisTooltip.appendChild(e.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var t=this.w,e=this.ttCtx,i=function(i){var a=t.config.yaxis[i].opposite||t.config.yaxis[i].crosshairs.opposite;e.yaxisOffX=a?t.globals.gridWidth+1:1;var s="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i,a?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");t.globals.yAxisSameScaleIndices.map((function(e,a){e.map((function(e,a){a===i&&(s+=t.config.yaxis[a].show?" ":" apexcharts-yaxistooltip-hidden")}))}));var r=t.globals.dom.elWrap;null===t.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i))&&(e.yaxisTooltip=document.createElement("div"),e.yaxisTooltip.setAttribute("class",s+" apexcharts-theme-"+t.config.tooltip.theme),r.appendChild(e.yaxisTooltip),0===i&&(e.yaxisTooltipText=[]),e.yaxisTooltipText[i]=document.createElement("div"),e.yaxisTooltipText[i].classList.add("apexcharts-yaxistooltip-text"),e.yaxisTooltip.appendChild(e.yaxisTooltipText[i]))},a=0;a<t.config.yaxis.length;a++)i(a)}},{key:"setXCrosshairWidth",value:function(){var t=this.w,e=this.ttCtx,i=e.getElXCrosshairs();if(e.xcrosshairsWidth=parseInt(t.config.xaxis.crosshairs.width,10),t.globals.comboCharts){var a=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==a&&"barWidth"===t.config.xaxis.crosshairs.width){var s=parseFloat(a.getAttribute("barWidth"));e.xcrosshairsWidth=s}else if("tickWidth"===t.config.xaxis.crosshairs.width){var r=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/r}}else if("tickWidth"===t.config.xaxis.crosshairs.width){var n=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/n}else if("barWidth"===t.config.xaxis.crosshairs.width){var o=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==o){var l=parseFloat(o.getAttribute("barWidth"));e.xcrosshairsWidth=l}else e.xcrosshairsWidth=1}t.globals.isBarHorizontal&&(e.xcrosshairsWidth=0),null!==i&&e.xcrosshairsWidth>0&&i.setAttribute("width",e.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var t=this.w,e=this.ttCtx;e.ycrosshairs=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(t,e,i){var a=this.ttCtx,s=this.w,r=s.globals.yLabelFormatters[t];if(a.yaxisTooltips[t]){var n=a.getElGrid().getBoundingClientRect(),o=(e-n.top)*i.yRatio[t],l=s.globals.maxYArr[t]-s.globals.minYArr[t],c=s.globals.minYArr[t]+(l-o);a.tooltipPosition.moveYCrosshairs(e-n.top),a.yaxisTooltipText[t].innerHTML=r(c),a.tooltipPosition.moveYAxisTooltip(t)}}}]),t}(),yt=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.tConfig=i.config.tooltip,this.tooltipUtil=new pt(this),this.tooltipLabels=new ft(this),this.tooltipPosition=new xt(this),this.marker=new mt(this),this.intersect=new bt(this),this.axesTooltip=new vt(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!i.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return c(t,[{key:"getElTooltip",value:function(t){return t||(t=this),t.w.globals.dom.baseEl?t.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(t){var e=this.w;this.xyRatios=t,this.isXAxisTooltipEnabled=e.config.xaxis.tooltip.enabled&&e.globals.axisCharts,this.yaxisTooltips=e.config.yaxis.map((function(t,i){return!!(t.show&&t.tooltip.enabled&&e.globals.axisCharts)})),this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),e.config.tooltip.cssClass&&i.classList.add(e.config.tooltip.cssClass),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),e.globals.dom.elWrap.appendChild(i),e.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var a=new G(this.ctx);this.xAxisTicksPositions=a.getXAxisTicksPositions()}if(!e.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==e.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==e.config.markers.size&&0!==e.globals.markers.largestSize||this.marker.drawDynamicPoints(this),e.globals.collapsedSeries.length!==e.globals.series.length){this.dataPointsDividedHeight=e.globals.gridHeight/e.globals.dataPoints,this.dataPointsDividedWidth=e.globals.gridWidth/e.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var s=e.globals.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(s=this.showOnIntersect?1:e.globals.series.length),this.legendLabels=e.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(s),this.addSVGEvents()}}},{key:"createTTElements",value:function(t){for(var e=this,i=this.w,a=[],s=this.getElTooltip(),r=function(r){var n=document.createElement("div");n.classList.add("apexcharts-tooltip-series-group"),n.style.order=i.config.tooltip.inverseOrder?t-r:r+1,e.tConfig.shared&&e.tConfig.enabledOnSeries&&Array.isArray(e.tConfig.enabledOnSeries)&&e.tConfig.enabledOnSeries.indexOf(r)<0&&n.classList.add("apexcharts-tooltip-series-group-hidden");var o=document.createElement("span");o.classList.add("apexcharts-tooltip-marker"),o.style.backgroundColor=i.globals.colors[r],n.appendChild(o);var l=document.createElement("div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=e.tConfig.style.fontFamily||i.config.chart.fontFamily,l.style.fontSize=e.tConfig.style.fontSize,["y","goals","z"].forEach((function(t){var e=document.createElement("div");e.classList.add("apexcharts-tooltip-".concat(t,"-group"));var i=document.createElement("span");i.classList.add("apexcharts-tooltip-text-".concat(t,"-label")),e.appendChild(i);var a=document.createElement("span");a.classList.add("apexcharts-tooltip-text-".concat(t,"-value")),e.appendChild(a),l.appendChild(e)})),n.appendChild(l),s.appendChild(n),a.push(n)},n=0;n<t;n++)r(n);return a}},{key:"addSVGEvents",value:function(){var t=this.w,e=t.config.chart.type,i=this.getElTooltip(),a=!("bar"!==e&&"candlestick"!==e&&"boxPlot"!==e&&"rangeBar"!==e),s="area"===e||"line"===e||"scatter"===e||"bubble"===e||"radar"===e,r=t.globals.dom.Paper.node,n=this.getElGrid();n&&(this.seriesBound=n.getBoundingClientRect());var o,l=[],c=[],h={hoverArea:r,elGrid:n,tooltipEl:i,tooltipY:l,tooltipX:c,ttItems:this.ttItems};if(t.globals.axisCharts&&(s?o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):a?o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==e&&"treemap"!==e||(o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),o&&o.length))for(var d=0;d<o.length;d++)l.push(o[d].getAttribute("cy")),c.push(o[d].getAttribute("cx"));if(t.globals.xyCharts&&!this.showOnIntersect||t.globals.comboCharts&&!this.showOnIntersect||a&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([r],h);else if(a&&!t.globals.comboCharts||s&&this.showOnIntersect)this.addDatapointEventsListeners(h);else if(!t.globals.axisCharts||"heatmap"===e||"treemap"===e){var u=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(u,h)}if(this.showOnIntersect){var g=t.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");g.length>0&&this.addPathsEventListeners(g,h),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(h)}}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=this.getElTooltip(),i=e.getBoundingClientRect(),a=i.width+10,s=i.height+10,r=this.tConfig.fixed.offsetX,n=this.tConfig.fixed.offsetY,o=this.tConfig.fixed.position.toLowerCase();return o.indexOf("right")>-1&&(r=r+t.globals.svgWidth-a+10),o.indexOf("bottom")>-1&&(n=n+t.globals.svgHeight-s-10),e.style.left=r+"px",e.style.top=n+"px",{x:r,y:n,ttWidth:a,ttHeight:s}}},{key:"addDatapointEventsListeners",value:function(t){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(e,t)}},{key:"addPathsEventListeners",value:function(t,e){for(var i=this,a=function(a){var s={paths:t[a],tooltipEl:e.tooltipEl,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:e.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map((function(e){return t[a].addEventListener(e,i.onSeriesHover.bind(i,s),{capture:!1,passive:!0})}))},s=0;s<t.length;s++)a(s)}},{key:"onSeriesHover",value:function(t,e){var i=this,a=Date.now()-this.lastHoverTime;a>=100?this.seriesHover(t,e):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout((function(){i.seriesHover(t,e)}),100-a))}},{key:"seriesHover",value:function(t,e){var i=this;this.lastHoverTime=Date.now();var a=[],s=this.w;s.config.chart.group&&(a=this.ctx.getGroupedCharts()),s.globals.axisCharts&&(s.globals.minX===-1/0&&s.globals.maxX===1/0||0===s.globals.dataPoints)||(a.length?a.forEach((function(a){var s=i.getElTooltip(a),r={paths:t.paths,tooltipEl:s,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:a.w.globals.tooltip.ttItems};a.w.globals.minX===i.w.globals.minX&&a.w.globals.maxX===i.w.globals.maxX&&a.w.globals.tooltip.seriesHoverByContext({chartCtx:a,ttCtx:a.w.globals.tooltip,opt:r,e})})):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:t,e}))}},{key:"seriesHoverByContext",value:function(t){var e=t.chartCtx,i=t.ttCtx,a=t.opt,s=t.e,r=e.w,n=this.getElTooltip();n&&(i.tooltipRect={x:0,y:0,ttWidth:n.getBoundingClientRect().width,ttHeight:n.getBoundingClientRect().height},i.e=s,!i.tooltipUtil.hasBars()||r.globals.comboCharts||i.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new $(e).toggleSeriesOnHover(s,s.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),r.globals.axisCharts?i.axisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(t){var e,i,a=t.e,s=t.opt,r=this.w,n=s.elGrid.getBoundingClientRect(),o="touchmove"===a.type?a.touches[0].clientX:a.clientX,l="touchmove"===a.type?a.touches[0].clientY:a.clientY;if(this.clientY=l,this.clientX=o,r.globals.capturedSeriesIndex=-1,r.globals.capturedDataPointIndex=-1,l<n.top||l>n.top+n.height)this.handleMouseOut(s);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!r.config.tooltip.shared){var c=parseInt(s.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(s)}var h=this.getElTooltip(),d=this.getElXCrosshairs(),u=r.globals.xyCharts||"bar"===r.config.chart.type&&!r.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||r.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===a.type||"touchmove"===a.type||"mouseup"===a.type){if(r.globals.collapsedSeries.length+r.globals.ancillaryCollapsedSeries.length===r.globals.series.length)return;null!==d&&d.classList.add("apexcharts-active");var g=this.yaxisTooltips.filter((function(t){return!0===t}));if(null!==this.ycrosshairs&&g.length&&this.ycrosshairs.classList.add("apexcharts-active"),u&&!this.showOnIntersect)this.handleStickyTooltip(a,o,l,s);else if("heatmap"===r.config.chart.type||"treemap"===r.config.chart.type){var p=this.intersect.handleHeatTreeTooltip({e:a,opt:s,x:e,y:i,type:r.config.chart.type});e=p.x,i=p.y,h.style.left=e+"px",h.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:a,opt:s}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:a,opt:s,x:e,y:i});if(this.yaxisTooltips.length)for(var f=0;f<r.config.yaxis.length;f++)this.axesTooltip.drawYaxisTooltipText(f,l,this.xyRatios);s.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==a.type&&"touchend"!==a.type||this.handleMouseOut(s)}}},{key:"nonAxisChartsTooltips",value:function(t){var e=t.e,i=t.opt,a=t.tooltipRect,s=this.w,r=i.paths.getAttribute("rel"),n=this.getElTooltip(),o=s.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===e.type||"touchmove"===e.type){n.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(r,10)-1,shared:!1});var l=s.globals.clientX-o.left-a.ttWidth/2,c=s.globals.clientY-o.top-a.ttHeight-10;if(n.style.left=l+"px",n.style.top=c+"px",s.config.legend.tooltipHoverFormatter){var h=r-1,d=(0,s.config.legend.tooltipHoverFormatter)(this.legendLabels[h].getAttribute("data:default-text"),{seriesIndex:h,dataPointIndex:h,w:s});this.legendLabels[h].innerHTML=d}}else"mouseout"!==e.type&&"touchend"!==e.type||(n.classList.remove("apexcharts-active"),s.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)})))}},{key:"handleStickyTooltip",value:function(t,e,i,a){var s=this.w,r=this.tooltipUtil.getNearestValues({context:this,hoverArea:a.hoverArea,elGrid:a.elGrid,clientX:e,clientY:i}),n=r.j,o=r.capturedSeries;s.globals.collapsedSeriesIndices.includes(o)&&(o=null);var l=a.elGrid.getBoundingClientRect();if(r.hoverX<0||r.hoverX>l.width)this.handleMouseOut(a);else if(null!==o)this.handleStickyCapturedSeries(t,o,a,n);else if(this.tooltipUtil.isXoverlap(n)||s.globals.isBarHorizontal){var c=s.globals.series.findIndex((function(t,e){return!s.globals.collapsedSeriesIndices.includes(e)}));this.create(t,this,c,n,a.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(t,e,i,a){var s=this.w;if(this.tConfig.shared||null!==s.globals.series[e][a]){if(void 0!==s.globals.series[e][a])this.tConfig.shared&&this.tooltipUtil.isXoverlap(a)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,a,i.ttItems):this.create(t,this,e,a,i.ttItems,!1);else if(this.tooltipUtil.isXoverlap(a)){var r=s.globals.series.findIndex((function(t,e){return!s.globals.collapsedSeriesIndices.includes(e)}));this.create(t,this,r,a,i.ttItems)}}else this.handleMouseOut(i)}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new k(this.ctx),i=t.globals.dom.Paper.select(".apexcharts-bar-area"),a=0;a<i.length;a++)e.pathMouseLeave(i[a])}},{key:"handleMouseOut",value:function(t){var e=this.w,i=this.getElXCrosshairs();if(t.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==e.config.chart.type&&this.marker.resetPointsSize(),null!==i&&i.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var a=0;a<this.yaxisTTEls.length;a++)this.yaxisTTEls[a].classList.remove("apexcharts-active")}e.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}))}},{key:"markerClick",value:function(t,e,i){var a=this.w;"function"==typeof a.config.chart.events.markerClick&&a.config.chart.events.markerClick(t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:a}),this.ctx.events.fireEvent("markerClick",[t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:a}])}},{key:"create",value:function(t,e,i,a,s){var n,o,l,c,h,d,u,g,p,f,x,m,b,v,y,w,A=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,C=this.w,S=e;"mouseup"===t.type&&this.markerClick(t,i,a),null===A&&(A=this.tConfig.shared);var L=this.tooltipUtil.hasMarkers(i),P=this.tooltipUtil.getElBars();if(C.config.legend.tooltipHoverFormatter){var I=C.config.legend.tooltipHoverFormatter,T=Array.from(this.legendLabels);T.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}));for(var M=0;M<T.length;M++){var E=T[M],z=parseInt(E.getAttribute("i"),10),O=decodeURIComponent(E.getAttribute("data:default-text")),X=I(O,{seriesIndex:A?z:i,dataPointIndex:a,w:C});if(A)E.innerHTML=C.globals.collapsedSeriesIndices.indexOf(z)<0?X:O;else if(E.innerHTML=z===i?X:O,i===z)break}}var R=r(r({ttItems:s,i,j:a},void 0!==(null===(n=C.globals.seriesRange)||void 0===n||null===(o=n[i])||void 0===o||null===(l=o[a])||void 0===l||null===(c=l.y[0])||void 0===c?void 0:c.y1)&&{y1:null===(h=C.globals.seriesRange)||void 0===h||null===(d=h[i])||void 0===d||null===(u=d[a])||void 0===u||null===(g=u.y[0])||void 0===g?void 0:g.y1}),void 0!==(null===(p=C.globals.seriesRange)||void 0===p||null===(f=p[i])||void 0===f||null===(x=f[a])||void 0===x||null===(m=x.y[0])||void 0===m?void 0:m.y2)&&{y2:null===(b=C.globals.seriesRange)||void 0===b||null===(v=b[i])||void 0===v||null===(y=v[a])||void 0===y||null===(w=y.y[0])||void 0===w?void 0:w.y2});if(A){if(S.tooltipLabels.drawSeriesTexts(r(r({},R),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),L)C.globals.markers.largestSize>0?S.marker.enlargePoints(a):S.tooltipPosition.moveDynamicPointsOnHover(a);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(P),this.barSeriesHeight>0)){var F=new k(this.ctx),Y=C.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(a,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(a,i);for(var H=0;H<Y.length;H++)F.pathMouseEnter(Y[H])}}else S.tooltipLabels.drawSeriesTexts(r({shared:!1},R)),this.tooltipUtil.hasBars()&&S.tooltipPosition.moveStickyTooltipOverBars(a,i),L&&S.tooltipPosition.moveMarkers(i,a)}}]),t}(),wt=function(){function t(e){o(this,t),this.w=e.w,this.barCtx=e,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return c(t,[{key:"handleBarDataLabels",value:function(t){var e=t.x,i=t.y,a=t.y1,s=t.y2,r=t.i,n=t.j,o=t.realIndex,l=t.groupIndex,c=t.series,h=t.barHeight,d=t.barWidth,u=t.barXPosition,g=t.barYPosition,p=t.visibleSeries,f=t.renderedPath,x=this.w,m=new k(this.barCtx.ctx),b=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[o]:this.barCtx.strokeWidth,v=e+parseFloat(d*p),y=i+parseFloat(h*p);x.globals.isXNumeric&&!x.globals.isBarHorizontal&&(v=e+parseFloat(d*(p+1)),y=i+parseFloat(h*(p+1))-b);var w,A,C=null,S=e,L=i,P=x.config.dataLabels,I=this.barCtx.barOptions.dataLabels,T=this.barCtx.barOptions.dataLabels.total;void 0!==g&&this.barCtx.isRangeBar&&(y=g,L=g),void 0!==u&&this.barCtx.isVerticalGroupedRangeBar&&(v=u,S=u);var M=P.offsetX,E=P.offsetY,z={width:0,height:0};if(x.config.dataLabels.enabled){var O=this.barCtx.series[r][n];z=m.getTextRects(x.globals.yLabelFormatters[0](O),parseFloat(P.style.fontSize))}var X={x:e,y:i,i:r,j:n,realIndex:o,groupIndex:l||-1,renderedPath:f,bcx:v,bcy:y,barHeight:h,barWidth:d,textRects:z,strokeWidth:b,dataLabelsX:S,dataLabelsY:L,dataLabelsConfig:P,barDataLabelsConfig:I,barTotalDataLabelsConfig:T,offX:M,offY:E};return A=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(X):this.calculateColumnsDataLabelsPosition(X),f.attr({cy:A.bcy,cx:A.bcx,j:n,val:c[r][n],barHeight:h,barWidth:d}),w=this.drawCalculatedDataLabels({x:A.dataLabelsX,y:A.dataLabelsY,val:this.barCtx.isRangeBar?[a,s]:c[r][n],i:o,j:n,barWidth:d,barHeight:h,textRects:z,dataLabelsConfig:P}),x.config.chart.stacked&&T.enabled&&(C=this.drawTotalDataLabels({x:A.totalDataLabelsX,y:A.totalDataLabelsY,realIndex:o,textAnchor:A.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:o,j:n}),dataLabelsConfig:P,barTotalDataLabelsConfig:T})),{dataLabels:w,totalDataLabels:C}}},{key:"getStackedTotalDataLabel",value:function(t){var e=t.realIndex,i=t.j,a=this.w,s=this.barCtx.stackedSeriesTotals[i];return this.totalFormatter&&(s=this.totalFormatter(s,r(r({},a),{},{seriesIndex:e,dataPointIndex:i,w:a}))),s}},{key:"calculateColumnsDataLabelsPosition",value:function(t){var e,i,a=this.w,s=t.i,r=t.j,n=t.realIndex,o=t.groupIndex,l=t.y,c=t.bcx,h=t.barWidth,d=t.barHeight,u=t.textRects,g=t.dataLabelsX,p=t.dataLabelsY,f=t.dataLabelsConfig,x=t.barDataLabelsConfig,m=t.barTotalDataLabelsConfig,b=t.strokeWidth,v=t.offX,y=t.offY;d=Math.abs(d);var w="vertical"===a.config.plotOptions.bar.dataLabels.orientation,A=this.barCtx.barHelpers.getZeroValueEncounters({i:s,j:r}).zeroEncounters;c=c-b/2+(-1!==o?o*h:0);var C=a.globals.gridWidth/a.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?g+=h/2:(g=a.globals.isXNumeric?c-h/2+v:c-C+h/2+v,A>0&&a.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(g-=h*A)),w&&(g=g+u.height/2-b/2-2);var S=this.barCtx.series[s][r]<0,L=l;switch(this.barCtx.isReversed&&(L=l-d+(S?2*d:0),l-=d),x.position){case"center":p=w?S?L-d/2+y:L+d/2-y:S?L-d/2+u.height/2+y:L+d/2+u.height/2-y;break;case"bottom":p=w?S?L-d+y:L+d-y:S?L-d+u.height+b+y:L+d-u.height/2+b-y;break;case"top":p=w?S?L+y:L-y:S?L-u.height/2-y:L+u.height+y}if(this.barCtx.lastActiveBarSerieIndex===n&&m.enabled){var P=new k(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:n,j:r}),f.fontSize);e=S?L-P.height/2-y-m.offsetY+18:L+P.height+y+m.offsetY-18,i=g+m.offsetX}return a.config.chart.stacked||(p<0?p=0+b:p+u.height/3>a.globals.gridHeight&&(p=a.globals.gridHeight-b)),{bcx:c,bcy:l,dataLabelsX:g,dataLabelsY:p,totalDataLabelsX:i,totalDataLabelsY:e,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(t){var e=this.w,i=t.x,a=t.i,s=t.j,r=t.realIndex,n=t.groupIndex,o=t.bcy,l=t.barHeight,c=t.barWidth,h=t.textRects,d=t.dataLabelsX,u=t.strokeWidth,g=t.dataLabelsConfig,p=t.barDataLabelsConfig,f=t.barTotalDataLabelsConfig,x=t.offX,m=t.offY,b=e.globals.gridHeight/e.globals.dataPoints;c=Math.abs(c);var v,y,w=(o+=-1!==n?n*l:0)-(this.barCtx.isRangeBar?0:b)+l/2+h.height/2+m-3,A="start",C=this.barCtx.series[a][s]<0,S=i;switch(this.barCtx.isReversed&&(S=i+c-(C?2*c:0),i=e.globals.gridWidth-c),p.position){case"center":d=C?S+c/2-x:Math.max(h.width/2,S-c/2)+x;break;case"bottom":d=C?S+c-u-Math.round(h.width/2)-x:S-c+u+Math.round(h.width/2)+x;break;case"top":d=C?S-u+Math.round(h.width/2)-x:S-u-Math.round(h.width/2)+x}if(this.barCtx.lastActiveBarSerieIndex===r&&f.enabled){var L=new k(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:r,j:s}),g.fontSize);C?(v=S-u+Math.round(L.width/2)-x-f.offsetX-15,A="end"):v=S-u-Math.round(L.width/2)+x+f.offsetX+15,y=w+f.offsetY}return e.config.chart.stacked||(d<0?d=d+h.width+u:d+h.width/2>e.globals.gridWidth&&(d=e.globals.gridWidth-h.width-u)),{bcx:i,bcy:o,dataLabelsX:d,dataLabelsY:w,totalDataLabelsX:v,totalDataLabelsY:y,totalDataLabelsAnchor:A}}},{key:"drawCalculatedDataLabels",value:function(t){var e=t.x,i=t.y,a=t.val,s=t.i,n=t.j,o=t.textRects,l=t.barHeight,c=t.barWidth,h=t.dataLabelsConfig,d=this.w,u="rotate(0)";"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&(u="rotate(-90, ".concat(e,", ").concat(i,")"));var g=new B(this.barCtx.ctx),p=new k(this.barCtx.ctx),f=h.formatter,x=null,m=d.globals.collapsedSeriesIndices.indexOf(s)>-1;if(h.enabled&&!m){x=p.group({class:"apexcharts-data-labels",transform:u});var b="";void 0!==a&&(b=f(a,r(r({},d),{},{seriesIndex:s,dataPointIndex:n,w:d}))),!a&&d.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(b="");var v=d.globals.series[s][n]<0,y=d.config.plotOptions.bar.dataLabels.position;"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&("top"===y&&(h.textAnchor=v?"end":"start"),"center"===y&&(h.textAnchor="middle"),"bottom"===y&&(h.textAnchor=v?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&c<p.getTextRects(b,parseFloat(h.style.fontSize)).width&&(b=""),d.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?o.width/1.6>Math.abs(c)&&(b=""):o.height/1.6>Math.abs(l)&&(b=""));var w=r({},h);this.barCtx.isHorizontal&&a<0&&("start"===h.textAnchor?w.textAnchor="end":"end"===h.textAnchor&&(w.textAnchor="start")),g.plotDataLabelsText({x:e,y:i,text:b,i:s,j:n,parent:x,dataLabelsConfig:w,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return x}},{key:"drawTotalDataLabels",value:function(t){var e,i=t.x,a=t.y,s=t.val,r=t.realIndex,n=t.textAnchor,o=t.barTotalDataLabelsConfig,l=new k(this.barCtx.ctx);return o.enabled&&void 0!==i&&void 0!==a&&this.barCtx.lastActiveBarSerieIndex===r&&(e=l.drawText({x:i,y:a,foreColor:o.style.color,text:s,textAnchor:n,fontFamily:o.style.fontFamily,fontSize:o.style.fontSize,fontWeight:o.style.fontWeight})),e}}]),t}(),kt=function(){function t(e){o(this,t),this.w=e.w,this.barCtx=e}return c(t,[{key:"initVariables",value:function(t){var e=this.w;this.barCtx.series=t,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i<t.length;i++)if(t[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=t[i].length),e.globals.isXNumeric)for(var a=0;a<t[i].length;a++)e.globals.seriesX[i][a]>e.globals.minX&&e.globals.seriesX[i][a]<e.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=e.globals.dataPoints;0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],e.globals.comboCharts||this.checkZeroSeries({series:t})}},{key:"initialPositions",value:function(){var t,e,i,a,s,r,n,o,l=this.w,c=l.globals.dataPoints;this.barCtx.isRangeBar&&(c=l.globals.labels.length);var h=this.barCtx.seriesLen;if(l.config.plotOptions.bar.rangeBarGroupRows&&(h=1),this.barCtx.isHorizontal)s=(i=l.globals.gridHeight/c)/h,l.globals.isXNumeric&&(s=(i=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),s=s*parseInt(this.barCtx.barOptions.barHeight,10)/100,-1===String(this.barCtx.barOptions.barHeight).indexOf("%")&&(s=parseInt(this.barCtx.barOptions.barHeight,10)),o=this.barCtx.baseLineInvertedY+l.globals.padHorizontal+(this.barCtx.isReversed?l.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(o=l.globals.gridWidth/2),e=(i-s*this.barCtx.seriesLen)/2;else{if(a=l.globals.gridWidth/this.barCtx.visibleItems,l.config.xaxis.convertedCatToNumeric&&(a=l.globals.gridWidth/l.globals.dataPoints),r=a/h*parseInt(this.barCtx.barOptions.columnWidth,10)/100,l.globals.isXNumeric){var d=this.barCtx.xRatio;l.config.xaxis.convertedCatToNumeric&&(d=this.barCtx.initialXRatio),l.globals.minXDiff&&.5!==l.globals.minXDiff&&l.globals.minXDiff/d>0&&(a=l.globals.minXDiff/d),(r=a/h*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(r=1)}-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(r=parseInt(this.barCtx.barOptions.columnWidth,10)),n=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),t=l.globals.padHorizontal+(a-r*this.barCtx.seriesLen)/2}return{x:t,y:e,yDivision:i,xDivision:a,barHeight:s,barWidth:r,zeroH:n,zeroW:o}}},{key:"initializeStackedPrevVars",value:function(t){var e=t.w;e.globals.hasSeriesGroups?e.globals.seriesGroups.forEach((function(e){t[e]||(t[e]={}),t[e].prevY=[],t[e].prevX=[],t[e].prevYF=[],t[e].prevXF=[],t[e].prevYVal=[],t[e].prevXVal=[]})):(t.prevY=[],t.prevX=[],t.prevYF=[],t.prevXF=[],t.prevYVal=[],t.prevXVal=[])}},{key:"initializeStackedXYVars",value:function(t){var e=t.w;e.globals.hasSeriesGroups?e.globals.seriesGroups.forEach((function(e){t[e]||(t[e]={}),t[e].xArrj=[],t[e].xArrjF=[],t[e].xArrjVal=[],t[e].yArrj=[],t[e].yArrjF=[],t[e].yArrjVal=[]})):(t.xArrj=[],t.xArrjF=[],t.xArrjVal=[],t.yArrj=[],t.yArrjF=[],t.yArrjVal=[])}},{key:"getPathFillColor",value:function(t,e,i,a){var s,r,n,o,l=this.w,c=new N(this.barCtx.ctx),h=null,d=this.barCtx.barOptions.distributed?i:e;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map((function(a){t[e][i]>=a.from&&t[e][i]<=a.to&&(h=a.color)})),l.config.series[e].data[i]&&l.config.series[e].data[i].fillColor&&(h=l.config.series[e].data[i].fillColor),c.fillPath({seriesNumber:this.barCtx.barOptions.distributed?d:a,dataPointIndex:i,color:h,value:t[e][i],fillConfig:null===(s=l.config.series[e].data[i])||void 0===s?void 0:s.fill,fillType:null!==(r=l.config.series[e].data[i])&&void 0!==r&&null!==(n=r.fill)&&void 0!==n&&n.type?null===(o=l.config.series[e].data[i])||void 0===o?void 0:o.fill.type:l.config.fill.type})}},{key:"getStrokeWidth",value:function(t,e,i){var a=0,s=this.w;return this.barCtx.series[t][e]?this.barCtx.isNullValue=!1:this.barCtx.isNullValue=!0,s.config.stroke.show&&(this.barCtx.isNullValue||(a=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),a}},{key:"shouldApplyRadius",value:function(t){var e=this.w,i=!1;return e.config.plotOptions.bar.borderRadius>0&&(e.config.chart.stacked&&"last"===e.config.plotOptions.bar.borderRadiusWhenStacked?this.barCtx.lastActiveBarSerieIndex===t&&(i=!0):i=!0),i}},{key:"barBackground",value:function(t){var e=t.j,i=t.i,a=t.x1,s=t.x2,r=t.y1,n=t.y2,o=t.elSeries,l=this.w,c=new k(this.barCtx.ctx),h=new $(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&h===i){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e%=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[e],u=c.drawRect(void 0!==a?a:0,void 0!==r?r:0,void 0!==s?s:l.globals.gridWidth,void 0!==n?n:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);o.add(u),u.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(t){var e,i=t.barWidth,a=t.barXPosition,s=t.y1,r=t.y2,n=t.strokeWidth,o=t.seriesGroup,l=t.realIndex,c=t.i,h=t.j,d=t.w,u=new k(this.barCtx.ctx);(n=Array.isArray(n)?n[l]:n)||(n=0);var g=i,p=a;null!==(e=d.config.series[l].data[h])&&void 0!==e&&e.columnWidthOffset&&(p=a-d.config.series[l].data[h].columnWidthOffset/2,g=i+d.config.series[l].data[h].columnWidthOffset);var f=p,x=p+g;s+=.001,r+=.001;var m=u.move(f,s),b=u.move(f,s),v=u.line(x-n,s);if(d.globals.previousPaths.length>0&&(b=this.barCtx.getPreviousPath(l,h,!1)),m=m+u.line(f,r)+u.line(x-n,r)+u.line(x-n,s)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),b=b+u.line(f,s)+v+v+v+v+v+u.line(f,s)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(m=u.roundPathCorners(m,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked){var y=this.barCtx;d.globals.hasSeriesGroups&&o&&(y=this.barCtx[o]),y.yArrj.push(r),y.yArrjF.push(Math.abs(s-r)),y.yArrjVal.push(this.barCtx.series[c][h])}return{pathTo:m,pathFrom:b}}},{key:"getBarpaths",value:function(t){var e,i=t.barYPosition,a=t.barHeight,s=t.x1,r=t.x2,n=t.strokeWidth,o=t.seriesGroup,l=t.realIndex,c=t.i,h=t.j,d=t.w,u=new k(this.barCtx.ctx);(n=Array.isArray(n)?n[l]:n)||(n=0);var g=i,p=a;null!==(e=d.config.series[l].data[h])&&void 0!==e&&e.barHeightOffset&&(g=i-d.config.series[l].data[h].barHeightOffset/2,p=a+d.config.series[l].data[h].barHeightOffset);var f=g,x=g+p;s+=.001,r+=.001;var m=u.move(s,f),b=u.move(s,f);d.globals.previousPaths.length>0&&(b=this.barCtx.getPreviousPath(l,h,!1));var v=u.line(s,x-n);if(m=m+u.line(r,f)+u.line(r,x-n)+v+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),b=b+u.line(s,f)+v+v+v+v+v+u.line(s,f)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(m=u.roundPathCorners(m,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked){var y=this.barCtx;d.globals.hasSeriesGroups&&o&&(y=this.barCtx[o]),y.xArrj.push(r),y.xArrjF.push(Math.abs(s-r)),y.xArrjVal.push(this.barCtx.series[c][h])}return{pathTo:m,pathFrom:b}}},{key:"checkZeroSeries",value:function(t){for(var e=t.series,i=this.w,a=0;a<e.length;a++){for(var s=0,r=0;r<e[i.globals.maxValsInArrayIndex].length;r++)s+=e[a][r];0===s&&this.barCtx.zeroSerieses.push(a)}}},{key:"getXForValue",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?null:e;return null!=t&&(i=e+t/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?t/this.barCtx.invertedYRatio:0)),i}},{key:"getYForValue",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?null:e;return null!=t&&(i=e-t/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?t/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),i}},{key:"getGoalValues",value:function(t,e,i,a,s){var n=this,o=this.w,l=[],c=function(a,s){var r;l.push((h(r={},t,"x"===t?n.getXForValue(a,e,!1):n.getYForValue(a,i,!1)),h(r,"attrs",s),r))};if(o.globals.seriesGoals[a]&&o.globals.seriesGoals[a][s]&&Array.isArray(o.globals.seriesGoals[a][s])&&o.globals.seriesGoals[a][s].forEach((function(t){c(t.value,t)})),this.barCtx.barOptions.isDumbbell&&o.globals.seriesRange.length){var d=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:o.globals.colors,u={strokeHeight:"x"===t?0:o.globals.markers.size[a],strokeWidth:"x"===t?o.globals.markers.size[a]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(d[a])?d[a][0]:d[a]};c(o.globals.seriesRangeStart[a][s],u),c(o.globals.seriesRangeEnd[a][s],r(r({},u),{},{strokeColor:Array.isArray(d[a])?d[a][1]:d[a]}))}return l}},{key:"drawGoalLine",value:function(t){var e=t.barXPosition,i=t.barYPosition,a=t.goalX,s=t.goalY,r=t.barWidth,n=t.barHeight,o=new k(this.barCtx.ctx),l=o.group({className:"apexcharts-bar-goals-groups"});l.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:l.node}),l.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var c=null;return this.barCtx.isHorizontal?Array.isArray(a)&&a.forEach((function(t){var e=void 0!==t.attrs.strokeHeight?t.attrs.strokeHeight:n/2,a=i+e+n/2;c=o.drawLine(t.x,a-2*e,t.x,a,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeWidth?t.attrs.strokeWidth:2,t.attrs.strokeLineCap),l.add(c)})):Array.isArray(s)&&s.forEach((function(t){var i=void 0!==t.attrs.strokeWidth?t.attrs.strokeWidth:r/2,a=e+i+r/2;c=o.drawLine(a-2*i,t.y,a,t.y,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeHeight?t.attrs.strokeHeight:2,t.attrs.strokeLineCap),l.add(c)})),l}},{key:"drawBarShadow",value:function(t){var e=t.prevPaths,i=t.currPaths,a=t.color,s=this.w,r=e.x,n=e.x1,o=e.barYPosition,l=i.x,c=i.x1,h=i.barYPosition,d=o+i.barHeight,u=new k(this.barCtx.ctx),g=new v,p=u.move(n,d)+u.line(r,d)+u.line(l,h)+u.line(c,h)+u.line(n,d)+("around"===s.config.plotOptions.bar.borderRadiusApplication?" Z":" z");return u.drawPath({d:p,fill:g.shadeColor(.5,v.rgb2hex(a)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(t){var e=t.i,i=t.j,a=this.w,s=0,r=0;return a.globals.seriesPercent.forEach((function(t,a){t[i]&&s++,a<e&&0===t[i]&&r++})),{nonZeroColumns:s,zeroEncounters:r}}}]),t}(),At=function(){function t(e,i){o(this,t),this.ctx=e,this.w=e.w;var a=this.w;this.barOptions=a.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=a.config.stroke.width,this.isNullValue=!1,this.isRangeBar=a.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!a.globals.isBarHorizontal&&a.globals.seriesRange.length&&a.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=i,null!==this.xyRatios&&(this.xRatio=i.xRatio,this.initialXRatio=i.initialXRatio,this.yRatio=i.yRatio,this.invertedXRatio=i.invertedXRatio,this.invertedYRatio=i.invertedYRatio,this.baseLineY=i.baseLineY,this.baseLineInvertedY=i.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.pathArr=[];var s=new $(this.ctx);this.lastActiveBarSerieIndex=s.getActiveConfigSeriesIndex("desc",["bar","column"]);var r=s.getBarSeriesIndices(),n=new A(this.ctx);this.stackedSeriesTotals=n.getStackedSeriesTotals(this.w.config.series.map((function(t,e){return-1===r.indexOf(e)?e:-1})).filter((function(t){return-1!==t}))),this.barHelpers=new kt(this)}return c(t,[{key:"draw",value:function(t,e){var i=this.w,a=new k(this.ctx),s=new A(this.ctx,i);t=s.getLogSeries(t),this.series=t,this.yRatio=s.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);var n=a.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var o=0,l=0;o<t.length;o++,l++){var c,h,d,u,g=void 0,p=void 0,f=[],x=[],m=i.globals.comboCharts?e[o]:o,b=a.group({class:"apexcharts-series",rel:o+1,seriesName:v.escapeString(i.globals.seriesNames[m]),"data:realIndex":m});this.ctx.series.addCollapsedClassToSeries(b,m),t[o].length>0&&(this.visibleI=this.visibleI+1);var y=0,w=0;this.yRatio.length>1&&(this.yaxisIndex=m),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var C=this.barHelpers.initialPositions();p=C.y,y=C.barHeight,h=C.yDivision,u=C.zeroW,g=C.x,w=C.barWidth,c=C.xDivision,d=C.zeroH,this.horizontal||x.push(g+w/2);var S=a.group({class:"apexcharts-datalabels","data:realIndex":m});i.globals.delayedElements.push({el:S.node}),S.node.classList.add("apexcharts-element-hidden");var L=a.group({class:"apexcharts-bar-goals-markers"}),P=a.group({class:"apexcharts-bar-shadows"});i.globals.delayedElements.push({el:P.node}),P.node.classList.add("apexcharts-element-hidden");for(var I=0;I<i.globals.dataPoints;I++){var T=this.barHelpers.getStrokeWidth(o,I,m),M=null,E={indexes:{i:o,j:I,realIndex:m,bc:l},x:g,y:p,strokeWidth:T,elSeries:b};this.isHorizontal?(M=this.drawBarPaths(r(r({},E),{},{barHeight:y,zeroW:u,yDivision:h})),w=this.series[o][I]/this.invertedYRatio):(M=this.drawColumnPaths(r(r({},E),{},{xDivision:c,barWidth:w,zeroH:d})),y=this.series[o][I]/this.yRatio[this.yaxisIndex]);var z=this.barHelpers.getPathFillColor(t,o,I,m);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&I>0){var O=this.barHelpers.drawBarShadow({color:"string"==typeof z&&-1===(null==z?void 0:z.indexOf("url"))?z:v.hexToRgba(i.globals.colors[o]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:M});O&&P.add(O)}this.pathArr.push(M);var X=this.barHelpers.drawGoalLine({barXPosition:M.barXPosition,barYPosition:M.barYPosition,goalX:M.goalX,goalY:M.goalY,barHeight:y,barWidth:w});X&&L.add(X),p=M.y,g=M.x,I>0&&x.push(g+w/2),f.push(p),this.renderSeries({realIndex:m,pathFill:z,j:I,i:o,pathFrom:M.pathFrom,pathTo:M.pathTo,strokeWidth:T,elSeries:b,x:g,y:p,series:t,barHeight:M.barHeight?M.barHeight:y,barWidth:M.barWidth?M.barWidth:w,elDataLabelsWrap:S,elGoalsMarkers:L,elBarShadows:P,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[m]=x,i.globals.seriesYvalues[m]=f,n.add(b)}return n}},{key:"renderSeries",value:function(t){var e=t.realIndex,i=t.pathFill,a=t.lineFill,s=t.j,r=t.i,n=t.groupIndex,o=t.pathFrom,l=t.pathTo,c=t.strokeWidth,h=t.elSeries,d=t.x,u=t.y,g=t.y1,p=t.y2,f=t.series,x=t.barHeight,m=t.barWidth,b=t.barXPosition,v=t.barYPosition,y=t.elDataLabelsWrap,A=t.elGoalsMarkers,C=t.elBarShadows,S=t.visibleSeries,L=t.type,P=this.w,I=new k(this.ctx);a||(a=this.barOptions.distributed?P.globals.stroke.colors[s]:P.globals.stroke.colors[e]),P.config.series[r].data[s]&&P.config.series[r].data[s].strokeColor&&(a=P.config.series[r].data[s].strokeColor),this.isNullValue&&(i="none");var T=s/P.config.chart.animations.animateGradually.delay*(P.config.chart.animations.speed/P.globals.dataPoints)/2.4,M=I.renderPaths({i:r,j:s,realIndex:e,pathFrom:o,pathTo:l,stroke:a,strokeWidth:c,strokeLineCap:P.config.stroke.lineCap,fill:i,animationDelay:T,initialSpeed:P.config.chart.animations.speed,dataChangeSpeed:P.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(L,"-area")});M.attr("clip-path","url(#gridRectMask".concat(P.globals.cuid,")"));var E=P.config.forecastDataPoints;E.count>0&&s>=P.globals.dataPoints-E.count&&(M.node.setAttribute("stroke-dasharray",E.dashArray),M.node.setAttribute("stroke-width",E.strokeWidth),M.node.setAttribute("fill-opacity",E.fillOpacity)),void 0!==g&&void 0!==p&&(M.attr("data-range-y1",g),M.attr("data-range-y2",p)),new w(this.ctx).setSelectionFilter(M,e,s),h.add(M);var z=new wt(this).handleBarDataLabels({x:d,y:u,y1:g,y2:p,i:r,j:s,series:f,realIndex:e,groupIndex:n,barHeight:x,barWidth:m,barXPosition:b,barYPosition:v,renderedPath:M,visibleSeries:S});return null!==z.dataLabels&&y.add(z.dataLabels),z.totalDataLabels&&y.add(z.totalDataLabels),h.add(y),A&&h.add(A),C&&h.add(C),h}},{key:"drawBarPaths",value:function(t){var e,i=t.indexes,a=t.barHeight,s=t.strokeWidth,r=t.zeroW,n=t.x,o=t.y,l=t.yDivision,c=t.elSeries,h=this.w,d=i.i,u=i.j;if(h.globals.isXNumeric)e=(o=(h.globals.seriesX[d][u]-h.globals.minX)/this.invertedXRatio-a)+a*this.visibleI;else if(h.config.plotOptions.bar.hideZeroBarsWhenGrouped){var g=0,p=0;h.globals.seriesPercent.forEach((function(t,e){t[u]&&g++,e<d&&0===t[u]&&p++})),g>0&&(a=this.seriesLen*a/g),e=o+a*this.visibleI,e-=a*p}else e=o+a*this.visibleI;this.isFunnel&&(r-=(this.barHelpers.getXForValue(this.series[d][u],r)-r)/2),n=this.barHelpers.getXForValue(this.series[d][u],r);var f=this.barHelpers.getBarpaths({barYPosition:e,barHeight:a,x1:r,x2:n,strokeWidth:s,series:this.series,realIndex:i.realIndex,i:d,j:u,w:h});return h.globals.isXNumeric||(o+=l),this.barHelpers.barBackground({j:u,i:d,y1:e-a*this.visibleI,y2:a*this.seriesLen,elSeries:c}),{pathTo:f.pathTo,pathFrom:f.pathFrom,x1:r,x:n,y:o,goalX:this.barHelpers.getGoalValues("x",r,null,d,u),barYPosition:e,barHeight:a}}},{key:"drawColumnPaths",value:function(t){var e,i=t.indexes,a=t.x,s=t.y,r=t.xDivision,n=t.barWidth,o=t.zeroH,l=t.strokeWidth,c=t.elSeries,h=this.w,d=i.realIndex,u=i.i,g=i.j,p=i.bc;if(h.globals.isXNumeric){var f=this.getBarXForNumericXAxis({x:a,j:g,realIndex:d,barWidth:n});a=f.x,e=f.barXPosition}else if(h.config.plotOptions.bar.hideZeroBarsWhenGrouped){var x=this.barHelpers.getZeroValueEncounters({i:u,j:g}),m=x.nonZeroColumns,b=x.zeroEncounters;m>0&&(n=this.seriesLen*n/m),e=a+n*this.visibleI,e-=n*b}else e=a+n*this.visibleI;s=this.barHelpers.getYForValue(this.series[u][g],o);var v=this.barHelpers.getColumnPaths({barXPosition:e,barWidth:n,y1:o,y2:s,strokeWidth:l,series:this.series,realIndex:i.realIndex,i:u,j:g,w:h});return h.globals.isXNumeric||(a+=r),this.barHelpers.barBackground({bc:p,j:g,i:u,x1:e-l/2-n*this.visibleI,x2:n*this.seriesLen+l/2,elSeries:c}),{pathTo:v.pathTo,pathFrom:v.pathFrom,x:a,y:s,goalY:this.barHelpers.getGoalValues("y",null,o,u,g),barXPosition:e,barWidth:n}}},{key:"getBarXForNumericXAxis",value:function(t){var e=t.x,i=t.barWidth,a=t.realIndex,s=t.j,r=this.w,n=a;return r.globals.seriesX[a].length||(n=r.globals.maxValsInArrayIndex),r.globals.seriesX[n][s]&&(e=(r.globals.seriesX[n][s]-r.globals.minX)/this.xRatio-i*this.seriesLen/2),{barXPosition:e+i*this.visibleI,x:e}}},{key:"getPreviousPath",value:function(t,e){for(var i,a=this.w,s=0;s<a.globals.previousPaths.length;s++){var r=a.globals.previousPaths[s];r.paths&&r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(t,10)&&void 0!==a.globals.previousPaths[s].paths[e]&&(i=a.globals.previousPaths[s].paths[e].d)}return i}}]),t}(),Ct=function(t){d(i,At);var e=p(i);function i(){return o(this,i),e.apply(this,arguments)}return c(i,[{key:"draw",value:function(t,e){var i=this,a=this.w;this.graphics=new k(this.ctx),this.bar=new At(this.ctx,this.xyRatios);var s=new A(this.ctx,a);t=s.getLogSeries(t),this.yRatio=s.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t),"100%"===a.config.chart.stackType&&(t=a.globals.seriesPercent.slice()),this.series=t,this.barHelpers.initializeStackedPrevVars(this);for(var n=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),o=0,l=0,c=function(s,c){var h=void 0,d=void 0,u=void 0,g=void 0,p=-1;i.groupCtx=i,a.globals.seriesGroups.forEach((function(t,e){t.indexOf(a.config.series[s].name)>-1&&(p=e)})),-1!==p&&(i.groupCtx=i[a.globals.seriesGroups[p]]);var f=[],x=[],m=a.globals.comboCharts?e[s]:s;i.yRatio.length>1&&(i.yaxisIndex=m),i.isReversed=a.config.yaxis[i.yaxisIndex]&&a.config.yaxis[i.yaxisIndex].reversed;var b=i.graphics.group({class:"apexcharts-series",seriesName:v.escapeString(a.globals.seriesNames[m]),rel:s+1,"data:realIndex":m});i.ctx.series.addCollapsedClassToSeries(b,m);var y=i.graphics.group({class:"apexcharts-datalabels","data:realIndex":m}),w=i.graphics.group({class:"apexcharts-bar-goals-markers"}),k=0,A=0,C=i.initialPositions(o,l,h,d,u,g);l=C.y,k=C.barHeight,d=C.yDivision,g=C.zeroW,o=C.x,A=C.barWidth,h=C.xDivision,u=C.zeroH,i.barHelpers.initializeStackedXYVars(i),1===i.groupCtx.prevY.length&&i.groupCtx.prevY[0].every((function(t){return isNaN(t)}))&&(i.groupCtx.prevY[0]=i.groupCtx.prevY[0].map((function(t){return u})),i.groupCtx.prevYF[0]=i.groupCtx.prevYF[0].map((function(t){return 0})));for(var S=0;S<a.globals.dataPoints;S++){var L=i.barHelpers.getStrokeWidth(s,S,m),P={indexes:{i:s,j:S,realIndex:m,bc:c},strokeWidth:L,x:o,y:l,elSeries:b,groupIndex:p,seriesGroup:a.globals.seriesGroups[p]},I=null;i.isHorizontal?(I=i.drawStackedBarPaths(r(r({},P),{},{zeroW:g,barHeight:k,yDivision:d})),A=i.series[s][S]/i.invertedYRatio):(I=i.drawStackedColumnPaths(r(r({},P),{},{xDivision:h,barWidth:A,zeroH:u})),k=i.series[s][S]/i.yRatio[i.yaxisIndex]);var T=i.barHelpers.drawGoalLine({barXPosition:I.barXPosition,barYPosition:I.barYPosition,goalX:I.goalX,goalY:I.goalY,barHeight:k,barWidth:A});T&&w.add(T),l=I.y,o=I.x,f.push(o),x.push(l);var M=i.barHelpers.getPathFillColor(t,s,S,m);b=i.renderSeries({realIndex:m,pathFill:M,j:S,i:s,groupIndex:p,pathFrom:I.pathFrom,pathTo:I.pathTo,strokeWidth:L,elSeries:b,x:o,y:l,series:t,barHeight:k,barWidth:A,elDataLabelsWrap:y,elGoalsMarkers:w,type:"bar",visibleSeries:0})}a.globals.seriesXvalues[m]=f,a.globals.seriesYvalues[m]=x,i.groupCtx.prevY.push(i.groupCtx.yArrj),i.groupCtx.prevYF.push(i.groupCtx.yArrjF),i.groupCtx.prevYVal.push(i.groupCtx.yArrjVal),i.groupCtx.prevX.push(i.groupCtx.xArrj),i.groupCtx.prevXF.push(i.groupCtx.xArrjF),i.groupCtx.prevXVal.push(i.groupCtx.xArrjVal),n.add(b)},h=0,d=0;h<t.length;h++,d++)c(h,d);return n}},{key:"initialPositions",value:function(t,e,i,a,s,r){var n,o,l,c,h=this.w;return this.isHorizontal?(l=(l=a=h.globals.gridHeight/h.globals.dataPoints)*parseInt(h.config.plotOptions.bar.barHeight,10)/100,-1===String(h.config.plotOptions.bar.barHeight).indexOf("%")&&(l=parseInt(h.config.plotOptions.bar.barHeight,10)),r=this.baseLineInvertedY+h.globals.padHorizontal+(this.isReversed?h.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),e=(a-l)/2):(c=i=h.globals.gridWidth/h.globals.dataPoints,c=h.globals.isXNumeric&&h.globals.dataPoints>1?(i=h.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:c*parseInt(h.config.plotOptions.bar.columnWidth,10)/100,-1===String(h.config.plotOptions.bar.columnWidth).indexOf("%")&&(c=parseInt(h.config.plotOptions.bar.columnWidth,10)),s=h.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?h.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),t=h.globals.padHorizontal+(i-c)/2),{x:t,y:e,yDivision:a,xDivision:i,barHeight:null!==(n=h.globals.seriesGroups)&&void 0!==n&&n.length?l/h.globals.seriesGroups.length:l,barWidth:null!==(o=h.globals.seriesGroups)&&void 0!==o&&o.length?c/h.globals.seriesGroups.length:c,zeroH:s,zeroW:r}}},{key:"drawStackedBarPaths",value:function(t){for(var e,i=t.indexes,a=t.barHeight,s=t.strokeWidth,r=t.zeroW,n=t.x,o=t.y,l=t.groupIndex,c=t.seriesGroup,h=t.yDivision,d=t.elSeries,u=this.w,g=o+(-1!==l?l*a:0),p=i.i,f=i.j,x=0,m=0;m<this.groupCtx.prevXF.length;m++)x+=this.groupCtx.prevXF[m][f];var b=p;if(c&&(b=c.indexOf(u.config.series[p].name)),b>0){var v=r;this.groupCtx.prevXVal[b-1][f]<0?v=this.series[p][f]>=0?this.groupCtx.prevX[b-1][f]+x-2*(this.isReversed?x:0):this.groupCtx.prevX[b-1][f]:this.groupCtx.prevXVal[b-1][f]>=0&&(v=this.series[p][f]>=0?this.groupCtx.prevX[b-1][f]:this.groupCtx.prevX[b-1][f]-x+2*(this.isReversed?x:0)),e=v}else e=r;n=null===this.series[p][f]?e:e+this.series[p][f]/this.invertedYRatio-2*(this.isReversed?this.series[p][f]/this.invertedYRatio:0);var y=this.barHelpers.getBarpaths({barYPosition:g,barHeight:a,x1:e,x2:n,strokeWidth:s,series:this.series,realIndex:i.realIndex,seriesGroup:c,i:p,j:f,w:u});return this.barHelpers.barBackground({j:f,i:p,y1:g,y2:a,elSeries:d}),o+=h,{pathTo:y.pathTo,pathFrom:y.pathFrom,goalX:this.barHelpers.getGoalValues("x",r,null,p,f),barYPosition:g,x:n,y:o}}},{key:"drawStackedColumnPaths",value:function(t){var e=t.indexes,i=t.x,a=t.y,s=t.xDivision,r=t.barWidth,n=t.zeroH,o=t.groupIndex,l=t.seriesGroup,c=t.elSeries,h=this.w,d=e.i,u=e.j,g=e.bc;if(h.globals.isXNumeric){var p=h.globals.seriesX[d][u];p||(p=0),i=(p-h.globals.minX)/this.xRatio-r/2,h.globals.seriesGroups.length&&(i=(p-h.globals.minX)/this.xRatio-r/2*h.globals.seriesGroups.length)}for(var f,x=i+(-1!==o?o*r:0),m=0,b=0;b<this.groupCtx.prevYF.length;b++)m+=isNaN(this.groupCtx.prevYF[b][u])?0:this.groupCtx.prevYF[b][u];var v=d;if(l&&(v=l.indexOf(h.config.series[d].name)),v>0&&!h.globals.isXNumeric||v>0&&h.globals.isXNumeric&&h.globals.seriesX[d-1][u]===h.globals.seriesX[d][u]){var y,w,k,A=Math.min(this.yRatio.length+1,d+1);if(void 0!==this.groupCtx.prevY[v-1]&&this.groupCtx.prevY[v-1].length)for(var C=1;C<A;C++){var S;if(!isNaN(null===(S=this.groupCtx.prevY[v-C])||void 0===S?void 0:S[u])){k=this.groupCtx.prevY[v-C][u];break}}for(var L=1;L<A;L++){var P,I;if((null===(P=this.groupCtx.prevYVal[v-L])||void 0===P?void 0:P[u])<0){w=this.series[d][u]>=0?k-m+2*(this.isReversed?m:0):k;break}if((null===(I=this.groupCtx.prevYVal[v-L])||void 0===I?void 0:I[u])>=0){w=this.series[d][u]>=0?k:k+m-2*(this.isReversed?m:0);break}}void 0===w&&(w=h.globals.gridHeight),f=null!==(y=this.groupCtx.prevYF[0])&&void 0!==y&&y.every((function(t){return 0===t}))&&this.groupCtx.prevYF.slice(1,v).every((function(t){return t.every((function(t){return isNaN(t)}))}))?n:w}else f=n;a=this.series[d][u]?f-this.series[d][u]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[d][u]/this.yRatio[this.yaxisIndex]:0):f;var T=this.barHelpers.getColumnPaths({barXPosition:x,barWidth:r,y1:f,y2:a,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:l,realIndex:e.realIndex,i:d,j:u,w:h});return this.barHelpers.barBackground({bc:g,j:u,i:d,x1:x,x2:r,elSeries:c}),i+=s,{pathTo:T.pathTo,pathFrom:T.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,n,d,u),barXPosition:x,x:h.globals.isXNumeric?i-s:i,y:a}}}]),i}(),St=function(t){d(i,At);var e=p(i);function i(){return o(this,i),e.apply(this,arguments)}return c(i,[{key:"draw",value:function(t,e,i){var a=this,s=this.w,n=new k(this.ctx),o=s.globals.comboCharts?e:s.config.chart.type,l=new N(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=s.config.plotOptions.bar.horizontal;var c=new A(this.ctx,s);t=c.getLogSeries(t),this.series=t,this.yRatio=c.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);for(var h=n.group({class:"apexcharts-".concat(o,"-series apexcharts-plot-series")}),d=function(e){a.isBoxPlot="boxPlot"===s.config.chart.type||"boxPlot"===s.config.series[e].type;var o,c,d,u,g,p,f=void 0,x=void 0,m=[],b=[],y=s.globals.comboCharts?i[e]:e,w=n.group({class:"apexcharts-series",seriesName:v.escapeString(s.globals.seriesNames[y]),rel:e+1,"data:realIndex":y});a.ctx.series.addCollapsedClassToSeries(w,y),t[e].length>0&&(a.visibleI=a.visibleI+1),a.yRatio.length>1&&(a.yaxisIndex=y);var k=a.barHelpers.initialPositions();x=k.y,g=k.barHeight,c=k.yDivision,u=k.zeroW,f=k.x,p=k.barWidth,o=k.xDivision,d=k.zeroH,b.push(f+p/2);for(var A=n.group({class:"apexcharts-datalabels","data:realIndex":y}),C=function(i){var n=a.barHelpers.getStrokeWidth(e,i,y),h=null,v={indexes:{i:e,j:i,realIndex:y},x:f,y:x,strokeWidth:n,elSeries:w};h=a.isHorizontal?a.drawHorizontalBoxPaths(r(r({},v),{},{yDivision:c,barHeight:g,zeroW:u})):a.drawVerticalBoxPaths(r(r({},v),{},{xDivision:o,barWidth:p,zeroH:d})),x=h.y,f=h.x,i>0&&b.push(f+p/2),m.push(x),h.pathTo.forEach((function(r,o){var c=!a.isBoxPlot&&a.candlestickOptions.wick.useFillColor?h.color[o]:s.globals.stroke.colors[e],d=l.fillPath({seriesNumber:y,dataPointIndex:i,color:h.color[o],value:t[e][i]});a.renderSeries({realIndex:y,pathFill:d,lineFill:c,j:i,i:e,pathFrom:h.pathFrom,pathTo:r,strokeWidth:n,elSeries:w,x:f,y:x,series:t,barHeight:g,barWidth:p,elDataLabelsWrap:A,visibleSeries:a.visibleI,type:s.config.chart.type})}))},S=0;S<s.globals.dataPoints;S++)C(S);s.globals.seriesXvalues[y]=b,s.globals.seriesYvalues[y]=m,h.add(w)},u=0;u<t.length;u++)d(u);return h}},{key:"drawVerticalBoxPaths",value:function(t){var e=t.indexes,i=t.x;t.y;var a=t.xDivision,s=t.barWidth,r=t.zeroH,n=t.strokeWidth,o=this.w,l=new k(this.ctx),c=e.i,h=e.j,d=!0,u=o.config.plotOptions.candlestick.colors.upward,g=o.config.plotOptions.candlestick.colors.downward,p="";this.isBoxPlot&&(p=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var f=this.yRatio[this.yaxisIndex],x=e.realIndex,m=this.getOHLCValue(x,h),b=r,v=r;m.o>m.c&&(d=!1);var y=Math.min(m.o,m.c),w=Math.max(m.o,m.c),A=m.m;o.globals.isXNumeric&&(i=(o.globals.seriesX[x][h]-o.globals.minX)/this.xRatio-s/2);var C=i+s*this.visibleI;void 0===this.series[c][h]||null===this.series[c][h]?(y=r,w=r):(y=r-y/f,w=r-w/f,b=r-m.h/f,v=r-m.l/f,A=r-m.m/f);var S=l.move(C,r),L=l.move(C+s/2,y);return o.globals.previousPaths.length>0&&(L=this.getPreviousPath(x,h,!0)),S=this.isBoxPlot?[l.move(C,y)+l.line(C+s/2,y)+l.line(C+s/2,b)+l.line(C+s/4,b)+l.line(C+s-s/4,b)+l.line(C+s/2,b)+l.line(C+s/2,y)+l.line(C+s,y)+l.line(C+s,A)+l.line(C,A)+l.line(C,y+n/2),l.move(C,A)+l.line(C+s,A)+l.line(C+s,w)+l.line(C+s/2,w)+l.line(C+s/2,v)+l.line(C+s-s/4,v)+l.line(C+s/4,v)+l.line(C+s/2,v)+l.line(C+s/2,w)+l.line(C,w)+l.line(C,A)+"z"]:[l.move(C,w)+l.line(C+s/2,w)+l.line(C+s/2,b)+l.line(C+s/2,w)+l.line(C+s,w)+l.line(C+s,y)+l.line(C+s/2,y)+l.line(C+s/2,v)+l.line(C+s/2,y)+l.line(C,y)+l.line(C,w-n/2)],L+=l.move(C,y),o.globals.isXNumeric||(i+=a),{pathTo:S,pathFrom:L,x:i,y:w,barXPosition:C,color:this.isBoxPlot?p:d?[u]:[g]}}},{key:"drawHorizontalBoxPaths",value:function(t){var e=t.indexes;t.x;var i=t.y,a=t.yDivision,s=t.barHeight,r=t.zeroW,n=t.strokeWidth,o=this.w,l=new k(this.ctx),c=e.i,h=e.j,d=this.boxOptions.colors.lower;this.isBoxPlot&&(d=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var u=this.invertedYRatio,g=e.realIndex,p=this.getOHLCValue(g,h),f=r,x=r,m=Math.min(p.o,p.c),b=Math.max(p.o,p.c),v=p.m;o.globals.isXNumeric&&(i=(o.globals.seriesX[g][h]-o.globals.minX)/this.invertedXRatio-s/2);var y=i+s*this.visibleI;void 0===this.series[c][h]||null===this.series[c][h]?(m=r,b=r):(m=r+m/u,b=r+b/u,f=r+p.h/u,x=r+p.l/u,v=r+p.m/u);var w=l.move(r,y),A=l.move(m,y+s/2);return o.globals.previousPaths.length>0&&(A=this.getPreviousPath(g,h,!0)),w=[l.move(m,y)+l.line(m,y+s/2)+l.line(f,y+s/2)+l.line(f,y+s/2-s/4)+l.line(f,y+s/2+s/4)+l.line(f,y+s/2)+l.line(m,y+s/2)+l.line(m,y+s)+l.line(v,y+s)+l.line(v,y)+l.line(m+n/2,y),l.move(v,y)+l.line(v,y+s)+l.line(b,y+s)+l.line(b,y+s/2)+l.line(x,y+s/2)+l.line(x,y+s-s/4)+l.line(x,y+s/4)+l.line(x,y+s/2)+l.line(b,y+s/2)+l.line(b,y)+l.line(v,y)+"z"],A+=l.move(m,y),o.globals.isXNumeric||(i+=a),{pathTo:w,pathFrom:A,x:b,y:i,barYPosition:y,color:d}}},{key:"getOHLCValue",value:function(t,e){var i=this.w;return{o:this.isBoxPlot?i.globals.seriesCandleH[t][e]:i.globals.seriesCandleO[t][e],h:this.isBoxPlot?i.globals.seriesCandleO[t][e]:i.globals.seriesCandleH[t][e],m:i.globals.seriesCandleM[t][e],l:this.isBoxPlot?i.globals.seriesCandleC[t][e]:i.globals.seriesCandleL[t][e],c:this.isBoxPlot?i.globals.seriesCandleL[t][e]:i.globals.seriesCandleC[t][e]}}}]),i}(),Lt=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"checkColorRange",value:function(){var t=this.w,e=!1,i=t.config.plotOptions[t.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map((function(t,i){t.from<=0&&(e=!0)})),e}},{key:"getShadeColor",value:function(t,e,i,a){var s=this.w,r=1,n=s.config.plotOptions[t].shadeIntensity,o=this.determineColor(t,e,i);s.globals.hasNegs||a?r=s.config.plotOptions[t].reverseNegativeShade?o.percent<0?o.percent/100*(1.25*n):(1-o.percent/100)*(1.25*n):o.percent<=0?1-(1+o.percent/100)*n:(1-o.percent/100)*n:(r=1-o.percent/100,"treemap"===t&&(r=(1-o.percent/100)*(1.25*n)));var l=o.color,c=new v;return s.config.plotOptions[t].enableShades&&(l="dark"===this.w.config.theme.mode?v.hexToRgba(c.shadeColor(-1*r,o.color),s.config.fill.opacity):v.hexToRgba(c.shadeColor(r,o.color),s.config.fill.opacity)),{color:l,colorProps:o}}},{key:"determineColor",value:function(t,e,i){var a=this.w,s=a.globals.series[e][i],r=a.config.plotOptions[t],n=r.colorScale.inverse?i:e;r.distributed&&"treemap"===a.config.chart.type&&(n=i);var o=a.globals.colors[n],l=null,c=Math.min.apply(Math,x(a.globals.series[e])),h=Math.max.apply(Math,x(a.globals.series[e]));r.distributed||"heatmap"!==t||(c=a.globals.minY,h=a.globals.maxY),void 0!==r.colorScale.min&&(c=r.colorScale.min<a.globals.minY?r.colorScale.min:a.globals.minY,h=r.colorScale.max>a.globals.maxY?r.colorScale.max:a.globals.maxY);var d=Math.abs(h)+Math.abs(c),u=100*s/(0===d?d-1e-6:d);return r.colorScale.ranges.length>0&&r.colorScale.ranges.map((function(t,e){if(s>=t.from&&s<=t.to){o=t.color,l=t.foreColor?t.foreColor:null,c=t.from,h=t.to;var i=Math.abs(h)+Math.abs(c);u=100*s/(0===i?i-1e-6:i)}})),{color:o,foreColor:l,percent:u}}},{key:"calculateDataLabels",value:function(t){var e=t.text,i=t.x,a=t.y,s=t.i,r=t.j,n=t.colorProps,o=t.fontSize,l=this.w.config.dataLabels,c=new k(this.ctx),h=new B(this.ctx),d=null;if(l.enabled){d=c.group({class:"apexcharts-data-labels"});var u=l.offsetX,g=l.offsetY,p=i+u,f=a+parseFloat(l.style.fontSize)/3+g;h.plotDataLabelsText({x:p,y:f,text:e,i:s,j:r,color:n.foreColor,parent:d,fontSize:o,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(t){var e=new k(this.ctx);t.node.addEventListener("mouseenter",e.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",e.pathMouseLeave.bind(this,t)),t.node.addEventListener("mousedown",e.pathMouseDown.bind(this,t))}}]),t}(),Pt=function(){function t(e,i){o(this,t),this.ctx=e,this.w=e.w,this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new Lt(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return c(t,[{key:"draw",value:function(t){var e=this.w,i=new k(this.ctx),a=i.group({class:"apexcharts-heatmap"});a.attr("clip-path","url(#gridRectMask".concat(e.globals.cuid,")"));var s=e.globals.gridWidth/e.globals.dataPoints,r=e.globals.gridHeight/e.globals.series.length,n=0,o=!1;this.negRange=this.helpers.checkColorRange();var l=t.slice();e.config.yaxis[0].reversed&&(o=!0,l.reverse());for(var c=o?0:l.length-1;o?c<l.length:c>=0;o?c++:c--){var h=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:v.escapeString(e.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(h,c),e.config.chart.dropShadow.enabled){var d=e.config.chart.dropShadow;new w(this.ctx).dropShadow(h,d,c)}for(var u=0,g=e.config.plotOptions.heatmap.shadeIntensity,p=0;p<l[c].length;p++){var f=this.helpers.getShadeColor(e.config.chart.type,c,p,this.negRange),x=f.color,m=f.colorProps;"image"===e.config.fill.type&&(x=new N(this.ctx).fillPath({seriesNumber:c,dataPointIndex:p,opacity:e.globals.hasNegs?m.percent<0?1-(1+m.percent/100):g+m.percent/100:m.percent/100,patternID:v.randomId(),width:e.config.fill.image.width?e.config.fill.image.width:s,height:e.config.fill.image.height?e.config.fill.image.height:r}));var b=this.rectRadius,y=i.drawRect(u,n,s,r,b);if(y.attr({cx:u,cy:n}),y.node.classList.add("apexcharts-heatmap-rect"),h.add(y),y.attr({fill:x,i:c,index:c,j:p,val:l[c][p],"stroke-width":this.strokeWidth,stroke:e.config.plotOptions.heatmap.useFillColorAsStroke?x:e.globals.stroke.colors[0],color:x}),this.helpers.addListeners(y),e.config.chart.animations.enabled&&!e.globals.dataChanged){var A=1;e.globals.resized||(A=e.config.chart.animations.speed),this.animateHeatMap(y,u,n,s,r,A)}if(e.globals.dataChanged){var C=1;if(this.dynamicAnim.enabled&&e.globals.shouldAnimate){C=this.dynamicAnim.speed;var S=e.globals.previousPaths[c]&&e.globals.previousPaths[c][p]&&e.globals.previousPaths[c][p].color;S||(S="rgba(255, 255, 255, 0)"),this.animateHeatColor(y,v.isColorHex(S)?S:v.rgb2hex(S),v.isColorHex(x)?x:v.rgb2hex(x),C)}}var L=(0,e.config.dataLabels.formatter)(e.globals.series[c][p],{value:e.globals.series[c][p],seriesIndex:c,dataPointIndex:p,w:e}),P=this.helpers.calculateDataLabels({text:L,x:u+s/2,y:n+r/2,i:c,j:p,colorProps:m,series:l});null!==P&&h.add(P),u+=s}n+=r,a.add(h)}var I=e.globals.yAxisScale[0].result.slice();return e.config.yaxis[0].reversed?I.unshift(""):I.push(""),e.globals.yAxisScale[0].result=I,a}},{key:"animateHeatMap",value:function(t,e,i,a,s,r){var n=new y(this.ctx);n.animateRect(t,{x:e+a/2,y:i+s/2,width:0,height:0},{x:e,y:i,width:a,height:s},r,(function(){n.animationCompleted(t)}))}},{key:"animateHeatColor",value:function(t,e,i,a){t.attr({fill:e}).animate(a).attr({fill:i})}}]),t}(),It=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"drawYAxisTexts",value:function(t,e,i,a){var s=this.w,r=s.config.yaxis[0],n=s.globals.yLabelFormatters[0];return new k(this.ctx).drawText({x:t+r.labels.offsetX,y:e+r.labels.offsetY,text:n(a,i),textAnchor:"middle",fontSize:r.labels.style.fontSize,fontFamily:r.labels.style.fontFamily,foreColor:Array.isArray(r.labels.style.colors)?r.labels.style.colors[i]:r.labels.style.colors})}}]),t}(),Tt=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=Math.min(i.globals.gridWidth,i.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=i.globals.gridWidth/2,"radialBar"===i.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(i.config.plotOptions.pie.endAngle-i.config.plotOptions.pie.startAngle),this.initialAngle=i.config.plotOptions.pie.startAngle%this.fullAngle,i.globals.radialSize=this.defaultSize/2.05-i.config.stroke.width-(i.config.chart.sparkline.enabled?0:i.config.chart.dropShadow.blur),this.donutSize=i.globals.radialSize*parseInt(i.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return c(t,[{key:"draw",value:function(t){var e=this,i=this.w,a=new k(this.ctx);if(this.ret=a.group({class:"apexcharts-pie"}),i.globals.noData)return this.ret;for(var s=0,r=0;r<t.length;r++)s+=v.negToZero(t[r]);var n=[],o=a.group();0===s&&(s=1e-5),t.forEach((function(t){e.maxY=Math.max(e.maxY,t)})),i.config.yaxis[0].max&&(this.maxY=i.config.yaxis[0].max),"back"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret);for(var l=0;l<t.length;l++){var c=this.fullAngle*v.negToZero(t[l])/s;n.push(c),"polarArea"===this.chartType?(n[l]=this.fullAngle/t.length,this.sliceSizes.push(i.globals.radialSize*t[l]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var h,d=0,u=0;u<i.globals.previousPaths.length;u++)d+=v.negToZero(i.globals.previousPaths[u]);for(var g=0;g<i.globals.previousPaths.length;g++)h=this.fullAngle*v.negToZero(i.globals.previousPaths[g])/d,this.prevSectorAngleArr.push(h)}this.donutSize<0&&(this.donutSize=0);var p=i.config.plotOptions.pie.customScale,f=i.globals.gridWidth/2,x=i.globals.gridHeight/2,m=f-i.globals.gridWidth/2*p,b=x-i.globals.gridHeight/2*p;if("donut"===this.chartType){var y=a.drawCircle(this.donutSize);y.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),o.add(y)}var w=this.drawArcs(n,t);if(this.sliceLabels.forEach((function(t){w.add(t)})),o.attr({transform:"translate(".concat(m,", ").concat(b,") scale(").concat(p,")")}),o.add(w),this.ret.add(o),this.donutDataLabels.show){var A=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:m,translateY:b});this.ret.add(A)}return"front"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(t,e){var i=this.w,a=new w(this.ctx),s=new k(this.ctx),r=new N(this.ctx),n=s.group({class:"apexcharts-slices"}),o=this.initialAngle,l=this.initialAngle,c=this.initialAngle,h=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var d=0;d<t.length;d++){var u=s.group({class:"apexcharts-series apexcharts-pie-series",seriesName:v.escapeString(i.globals.seriesNames[d]),rel:d+1,"data:realIndex":d});n.add(u),l=h,c=(o=c)+t[d],h=l+this.prevSectorAngleArr[d];var g=c<o?this.fullAngle+c-o:c-o,p=r.fillPath({seriesNumber:d,size:this.sliceSizes[d],value:e[d]}),f=this.getChangedPath(l,h),x=s.drawPath({d:f,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[d]:this.lineColorArr,strokeWidth:0,fill:p,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(d)});if(x.attr({index:0,j:d}),a.setSelectionFilter(x,0,d),i.config.chart.dropShadow.enabled){var m=i.config.chart.dropShadow;a.dropShadow(x,m,d)}this.addListeners(x,this.donutDataLabels),k.setAttrs(x.node,{"data:angle":g,"data:startAngle":o,"data:strokeWidth":this.strokeWidth,"data:value":e[d]});var b={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?b=v.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(o+g/2)%this.fullAngle):"donut"===this.chartType&&(b=v.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(o+g/2)%this.fullAngle)),u.add(x);var y=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):(0==(y=g/this.fullAngle*i.config.chart.animations.speed)&&(y=1),this.animDur=y+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(x,{size:this.sliceSizes[d],endAngle:c,startAngle:o,prevStartAngle:l,prevEndAngle:h,animateStartingPos:!0,i:d,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(x,{size:this.sliceSizes[d],endAngle:c,startAngle:o,i:d,totalItems:t.length-1,animBeginArr:this.animBeginArr,dur:y}),i.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&x.click(this.pieClicked.bind(this,d)),void 0!==i.globals.selectedDataPoints[0]&&i.globals.selectedDataPoints[0].indexOf(d)>-1&&this.pieClicked(d),i.config.dataLabels.enabled){var A=b.x,C=b.y,S=100*g/this.fullAngle+"%";if(0!==g&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<t[d]){var L=i.config.dataLabels.formatter;void 0!==L&&(S=L(i.globals.seriesPercent[d][0],{seriesIndex:d,w:i}));var P=i.globals.dataLabels.style.colors[d],I=s.group({class:"apexcharts-datalabels"}),T=s.drawText({x:A,y:C,text:S,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:P});if(I.add(T),i.config.dataLabels.dropShadow.enabled){var M=i.config.dataLabels.dropShadow;a.dropShadow(T,M)}T.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&!1===i.globals.resized&&(T.node.classList.add("apexcharts-pie-label-delay"),T.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(I)}}}return n}},{key:"addListeners",value:function(t,e){var i=new k(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,t)),t.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this,t)),this.donutDataLabels.total.showAlways||(t.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,t.node,e)))}},{key:"animatePaths",value:function(t,e){var i=this.w,a=e.endAngle<e.startAngle?this.fullAngle+e.endAngle-e.startAngle:e.endAngle-e.startAngle,s=a,r=e.startAngle,n=e.startAngle;void 0!==e.prevStartAngle&&void 0!==e.prevEndAngle&&(r=e.prevEndAngle,s=e.prevEndAngle<e.prevStartAngle?this.fullAngle+e.prevEndAngle-e.prevStartAngle:e.prevEndAngle-e.prevStartAngle),e.i===i.config.series.length-1&&(a+n>this.fullAngle?e.endAngle=e.endAngle-(a+n):a+n<this.fullAngle&&(e.endAngle=e.endAngle+(this.fullAngle-(a+n)))),a===this.fullAngle&&(a=this.fullAngle-.01),this.animateArc(t,r,n,a,s,e)}},{key:"animateArc",value:function(t,e,i,a,s,r){var n,o=this,l=this.w,c=new y(this.ctx),h=r.size;(isNaN(e)||isNaN(s))&&(e=i,s=a,r.dur=0);var d=a,u=i,g=e<i?this.fullAngle+e-i:e-i;l.globals.dataChanged&&r.shouldSetPrevPaths&&r.prevEndAngle&&(n=o.getPiePath({me:o,startAngle:r.prevStartAngle,angle:r.prevEndAngle<r.prevStartAngle?this.fullAngle+r.prevEndAngle-r.prevStartAngle:r.prevEndAngle-r.prevStartAngle,size:h}),t.attr({d:n})),0!==r.dur?t.animate(r.dur,l.globals.easing,r.animBeginArr[r.i]).afterAll((function(){"pie"!==o.chartType&&"donut"!==o.chartType&&"polarArea"!==o.chartType||this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":o.strokeWidth}),r.i===l.config.series.length-1&&c.animationCompleted(t)})).during((function(l){d=g+(a-g)*l,r.animateStartingPos&&(d=s+(a-s)*l,u=e-s+(i-(e-s))*l),n=o.getPiePath({me:o,startAngle:u,angle:d,size:h}),t.node.setAttribute("data:pathOrig",n),t.attr({d:n})})):(n=o.getPiePath({me:o,startAngle:u,angle:a,size:h}),r.isTrack||(l.globals.animationEnded=!0),t.node.setAttribute("data:pathOrig",n),t.attr({d:n,"stroke-width":o.strokeWidth}))}},{key:"pieClicked",value:function(t){var e,i=this.w,a=this,s=a.sliceSizes[t]+(i.config.plotOptions.pie.expandOnClick?4:0),r=i.globals.dom.Paper.select(".apexcharts-".concat(a.chartType.toLowerCase(),"-slice-").concat(t)).members[0];if("true"!==r.attr("data:pieClicked")){var n=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(n,(function(t){t.setAttribute("data:pieClicked","false");var e=t.getAttribute("data:pathOrig");e&&t.setAttribute("d",e)})),r.attr("data:pieClicked","true");var o=parseInt(r.attr("data:startAngle"),10),l=parseInt(r.attr("data:angle"),10);e=a.getPiePath({me:a,startAngle:o,angle:l,size:s}),360!==l&&r.plot(e)}else{r.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(r.node,this.donutDataLabels);var c=r.attr("data:pathOrig");r.attr({d:c})}}},{key:"getChangedPath",value:function(t,e){var i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:t,angle:e-t,size:this.size})),i}},{key:"getPiePath",value:function(t){var e=t.me,i=t.startAngle,a=t.angle,s=t.size,r=i,n=Math.PI*(r-90)/180,o=a+i;Math.ceil(o)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(o=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(o)>this.fullAngle&&(o-=this.fullAngle);var l=Math.PI*(o-90)/180,c=e.centerX+s*Math.cos(n),h=e.centerY+s*Math.sin(n),d=e.centerX+s*Math.cos(l),u=e.centerY+s*Math.sin(l),g=v.polarToCartesian(e.centerX,e.centerY,e.donutSize,o),p=v.polarToCartesian(e.centerX,e.centerY,e.donutSize,r),f=a>180?1:0,x=["M",c,h,"A",s,s,0,f,1,d,u];return"donut"===e.chartType?[].concat(x,["L",g.x,g.y,"A",e.donutSize,e.donutSize,0,f,0,p.x,p.y,"L",c,h,"z"]).join(" "):"pie"===e.chartType||"polarArea"===e.chartType?[].concat(x,["L",e.centerX,e.centerY,"L",c,h]).join(" "):[].concat(x).join(" ")}},{key:"drawPolarElements",value:function(t){var e=this.w,i=new q(this.ctx),a=new k(this.ctx),s=new It(this.ctx),r=a.group(),n=a.group(),o=i.niceScale(0,Math.ceil(this.maxY),e.config.yaxis[0].tickAmount,0,!0),l=o.result.reverse(),c=o.result.length;this.maxY=o.niceMax;for(var h=e.globals.radialSize,d=h/(c-1),u=0;u<c-1;u++){var g=a.drawCircle(h);if(g.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":e.config.plotOptions.polarArea.rings.strokeWidth,stroke:e.config.plotOptions.polarArea.rings.strokeColor}),e.config.yaxis[0].show){var p=s.drawYAxisTexts(this.centerX,this.centerY-h+parseInt(e.config.yaxis[0].labels.style.fontSize,10)/2,u,l[u]);n.add(p)}r.add(g),h-=d}this.drawSpokes(t),t.add(r),t.add(n)}},{key:"renderInnerDataLabels",value:function(t,e){var i=this.w,a=new k(this.ctx),s=a.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(e.translateX?e.translateX:0,", ").concat(e.translateY?e.translateY:0,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),r=t.total.show;s.node.style.opacity=e.opacity;var n,o,l=e.centerX,c=e.centerY;n=void 0===t.name.color?i.globals.colors[0]:t.name.color;var h=t.name.fontSize,d=t.name.fontFamily,u=t.name.fontWeight;o=void 0===t.value.color?i.config.chart.foreColor:t.value.color;var g=t.value.formatter,p="",f="";if(r?(n=t.total.color,h=t.total.fontSize,d=t.total.fontFamily,u=t.total.fontWeight,f=t.total.label,p=t.total.formatter(i)):1===i.globals.series.length&&(p=g(i.globals.series[0],i),f=i.globals.seriesNames[0]),f&&(f=t.name.formatter(f,t.total.show,i)),t.name.show){var x=a.drawText({x:l,y:c+parseFloat(t.name.offsetY),text:f,textAnchor:"middle",foreColor:n,fontSize:h,fontWeight:u,fontFamily:d});x.node.classList.add("apexcharts-datalabel-label"),s.add(x)}if(t.value.show){var m=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,b=a.drawText({x:l,y:c+m,text:p,textAnchor:"middle",foreColor:o,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});b.node.classList.add("apexcharts-datalabel-value"),s.add(b)}return s}},{key:"printInnerLabels",value:function(t,e,i,a){var s,r=this.w;a?s=void 0===t.name.color?r.globals.colors[parseInt(a.parentNode.getAttribute("rel"),10)-1]:t.name.color:r.globals.series.length>1&&t.total.show&&(s=t.total.color);var n=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),o=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,t.value.formatter)(i,r),a||"function"!=typeof t.total.formatter||(i=t.total.formatter(r));var l=e===t.total.label;e=t.name.formatter(e,l,r),null!==n&&(n.textContent=e),null!==o&&(o.textContent=i),null!==n&&(n.style.fill=s)}},{key:"printDataLabelsInner",value:function(t,e){var i=this.w,a=t.getAttribute("data:value"),s=i.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(e,s,a,t);var r=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==r&&(r.style.opacity=1)}},{key:"drawSpokes",value:function(t){var e=this,i=this.w,a=new k(this.ctx),s=i.config.plotOptions.polarArea.spokes;if(0!==s.strokeWidth){for(var r=[],n=360/i.globals.series.length,o=0;o<i.globals.series.length;o++)r.push(v.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+n*o));r.forEach((function(i,r){var n=a.drawLine(i.x,i.y,e.centerX,e.centerY,Array.isArray(s.connectorColors)?s.connectorColors[r]:s.connectorColors);t.add(n)}))}}},{key:"revertDataLabelsInner",value:function(t,e,i){var a=this,s=this.w,r=s.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),n=!1,o=s.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),l=function(t){var i=t.makeSliceOut,s=t.printLabel;Array.prototype.forEach.call(o,(function(t){"true"===t.getAttribute("data:pieClicked")&&(i&&(n=!0),s&&a.printDataLabelsInner(t,e))}))};if(l({makeSliceOut:!0,printLabel:!1}),e.total.show&&s.globals.series.length>1)n&&!e.total.showAlways?l({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(e,e.total.label,e.total.formatter(s));else if(l({makeSliceOut:!1,printLabel:!0}),!n)if(s.globals.selectedDataPoints.length&&s.globals.series.length>1)if(s.globals.selectedDataPoints[0].length>0){var c=s.globals.selectedDataPoints[0],h=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(c));this.printDataLabelsInner(h,e)}else r&&s.globals.selectedDataPoints.length&&0===s.globals.selectedDataPoints[0].length&&(r.style.opacity=0);else r&&s.globals.series.length>1&&(r.style.opacity=0)}}]),t}(),Mt=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var i=this.w;this.graphics=new k(this.ctx),this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=i.globals.svgHeight<i.globals.svgWidth?i.globals.gridHeight+1.5*i.globals.goldenPadding:i.globals.gridWidth,this.isLog=i.config.yaxis[0].logarithmic,this.coreUtils=new A(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(i.globals.maxY,0):i.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):i.globals.minY,this.polygons=i.config.plotOptions.radar.polygons,this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-i.config.chart.dropShadow.blur,i.config.xaxis.labels.show&&(this.size=this.size-i.globals.xAxisLabelsWidth/1.75),void 0!==i.config.plotOptions.radar.size&&(this.size=i.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return c(t,[{key:"draw",value:function(t){var e=this,i=this.w,a=new N(this.ctx),s=[],n=new B(this.ctx);t.length&&(this.dataPointsLen=t[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var o=i.globals.gridWidth/2,l=i.globals.gridHeight/2,c=o+i.config.plotOptions.radar.offsetX,h=l+i.config.plotOptions.radar.offsetY,d=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(c||0,", ").concat(h||0,")")}),u=[],g=null,p=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),t.forEach((function(t,o){var l=t.length===i.globals.dataPoints,c=e.graphics.group().attr({class:"apexcharts-series","data:longestSeries":l,seriesName:v.escapeString(i.globals.seriesNames[o]),rel:o+1,"data:realIndex":o});e.dataRadiusOfPercent[o]=[],e.dataRadius[o]=[],e.angleArr[o]=[],t.forEach((function(t,i){var a=Math.abs(e.maxValue-e.minValue);t+=Math.abs(e.minValue),e.isLog&&(t=e.coreUtils.getLogVal(t,0)),e.dataRadiusOfPercent[o][i]=t/a,e.dataRadius[o][i]=e.dataRadiusOfPercent[o][i]*e.size,e.angleArr[o][i]=i*e.disAngle})),u=e.getDataPointsPos(e.dataRadius[o],e.angleArr[o]);var h=e.createPaths(u,{x:0,y:0});g=e.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),p=e.graphics.group({class:"apexcharts-datalabels","data:realIndex":o}),i.globals.delayedElements.push({el:g.node,index:o});var d={i:o,realIndex:o,animationDelay:o,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:i.globals.stroke.colors[o],strokeLineCap:i.config.stroke.lineCap},f=null;i.globals.previousPaths.length>0&&(f=e.getPreviousPath(o));for(var x=0;x<h.linePathsTo.length;x++){var m=e.graphics.renderPaths(r(r({},d),{},{pathFrom:null===f?h.linePathsFrom[x]:f,pathTo:h.linePathsTo[x],strokeWidth:Array.isArray(e.strokeWidth)?e.strokeWidth[o]:e.strokeWidth,fill:"none",drawShadow:!1}));c.add(m);var b=a.fillPath({seriesNumber:o}),y=e.graphics.renderPaths(r(r({},d),{},{pathFrom:null===f?h.areaPathsFrom[x]:f,pathTo:h.areaPathsTo[x],strokeWidth:0,fill:b,drawShadow:!1}));if(i.config.chart.dropShadow.enabled){var k=new w(e.ctx),A=i.config.chart.dropShadow;k.dropShadow(y,Object.assign({},A,{noUserSpaceOnUse:!0}),o)}c.add(y)}t.forEach((function(t,a){var s=new D(e.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:o,dataPointIndex:a}),l=e.graphics.drawMarker(u[a].x,u[a].y,s);l.attr("rel",a),l.attr("j",a),l.attr("index",o),l.node.setAttribute("default-marker-size",s.pSize);var h=e.graphics.group({class:"apexcharts-series-markers"});h&&h.add(l),g.add(h),c.add(g);var d=i.config.dataLabels;if(d.enabled){var f=d.formatter(i.globals.series[o][a],{seriesIndex:o,dataPointIndex:a,w:i});n.plotDataLabelsText({x:u[a].x,y:u[a].y,text:f,textAnchor:"middle",i:o,j:o,parent:p,offsetCorrection:!1,dataLabelsConfig:r({},d)})}c.add(p)})),s.push(c)})),this.drawPolygons({parent:d}),i.config.xaxis.labels.show){var f=this.drawXAxisTexts();d.add(f)}return s.forEach((function(t){d.add(t)})),d.add(this.yaxisLabels),d}},{key:"drawPolygons",value:function(t){for(var e=this,i=this.w,a=t.parent,s=new It(this.ctx),r=i.globals.yAxisScale[0].result.reverse(),n=r.length,o=[],l=this.size/(n-1),c=0;c<n;c++)o[c]=l*c;o.reverse();var h=[],d=[];o.forEach((function(t,i){var a=v.getPolygonPos(t,e.dataPointsLen),s="";a.forEach((function(t,a){if(0===i){var r=e.graphics.drawLine(t.x,t.y,0,0,Array.isArray(e.polygons.connectorColors)?e.polygons.connectorColors[a]:e.polygons.connectorColors);d.push(r)}0===a&&e.yaxisLabelsTextsPos.push({x:t.x,y:t.y}),s+=t.x+","+t.y+" "})),h.push(s)})),h.forEach((function(t,s){var r=e.polygons.strokeColors,n=e.polygons.strokeWidth,o=e.graphics.drawPolygon(t,Array.isArray(r)?r[s]:r,Array.isArray(n)?n[s]:n,i.globals.radarPolygons.fill.colors[s]);a.add(o)})),d.forEach((function(t){a.add(t)})),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach((function(t,i){var a=s.drawYAxisTexts(t.x,t.y,i,r[i]);e.yaxisLabels.add(a)}))}},{key:"drawXAxisTexts",value:function(){var t=this,e=this.w,i=e.config.xaxis.labels,a=this.graphics.group({class:"apexcharts-xaxis"}),s=v.getPolygonPos(this.size,this.dataPointsLen);return e.globals.labels.forEach((function(n,o){var l=e.config.xaxis.labels.formatter,c=new B(t.ctx);if(s[o]){var h=t.getTextPos(s[o],t.size),d=l(n,{seriesIndex:-1,dataPointIndex:o,w:e});c.plotDataLabelsText({x:h.newX,y:h.newY,text:d,textAnchor:h.textAnchor,i:o,j:o,parent:a,color:Array.isArray(i.style.colors)&&i.style.colors[o]?i.style.colors[o]:"#a8a8a8",dataLabelsConfig:r({textAnchor:h.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1})}})),a}},{key:"createPaths",value:function(t,e){var i=this,a=[],s=[],r=[],n=[];if(t.length){s=[this.graphics.move(e.x,e.y)],n=[this.graphics.move(e.x,e.y)];var o=this.graphics.move(t[0].x,t[0].y),l=this.graphics.move(t[0].x,t[0].y);t.forEach((function(e,a){o+=i.graphics.line(e.x,e.y),l+=i.graphics.line(e.x,e.y),a===t.length-1&&(o+="Z",l+="Z")})),a.push(o),r.push(l)}return{linePathsFrom:s,linePathsTo:a,areaPathsFrom:n,areaPathsTo:r}}},{key:"getTextPos",value:function(t,e){var i="middle",a=t.x,s=t.y;return Math.abs(t.x)>=10?t.x>0?(i="start",a+=10):t.x<0&&(i="end",a-=10):i="middle",Math.abs(t.y)>=e-10&&(t.y<0?s-=10:t.y>0&&(s+=10)),{textAnchor:i,newX:a,newY:s}}},{key:"getPreviousPath",value:function(t){for(var e=this.w,i=null,a=0;a<e.globals.previousPaths.length;a++){var s=e.globals.previousPaths[a];s.paths.length>0&&parseInt(s.realIndex,10)===parseInt(t,10)&&void 0!==e.globals.previousPaths[a].paths[0]&&(i=e.globals.previousPaths[a].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;t=t||[],e=e||[];for(var a=[],s=0;s<i;s++){var r={};r.x=t[s]*Math.sin(e[s]),r.y=-t[s]*Math.cos(e[s]),a.push(r)}return a}}]),t}(),Et=function(t){d(i,Tt);var e=p(i);function i(t){var a;o(this,i),(a=e.call(this,t)).ctx=t,a.w=t.w,a.animBeginArr=[0],a.animDur=0;var s=a.w;return a.startAngle=s.config.plotOptions.radialBar.startAngle,a.endAngle=s.config.plotOptions.radialBar.endAngle,a.totalAngle=Math.abs(s.config.plotOptions.radialBar.endAngle-s.config.plotOptions.radialBar.startAngle),a.trackStartAngle=s.config.plotOptions.radialBar.track.startAngle,a.trackEndAngle=s.config.plotOptions.radialBar.track.endAngle,a.donutDataLabels=a.w.config.plotOptions.radialBar.dataLabels,a.radialDataLabels=a.donutDataLabels,a.trackStartAngle||(a.trackStartAngle=a.startAngle),a.trackEndAngle||(a.trackEndAngle=a.endAngle),360===a.endAngle&&(a.endAngle=359.99),a.margin=parseInt(s.config.plotOptions.radialBar.track.margin,10),a}return c(i,[{key:"draw",value:function(t){var e=this.w,i=new k(this.ctx),a=i.group({class:"apexcharts-radialbar"});if(e.globals.noData)return a;var s=i.group(),r=this.defaultSize/2,n=e.globals.gridWidth/2,o=this.defaultSize/2.05;e.config.chart.sparkline.enabled||(o=o-e.config.stroke.width-e.config.chart.dropShadow.blur);var l=e.globals.fill.colors;if(e.config.plotOptions.radialBar.track.show){var c=this.drawTracks({size:o,centerX:n,centerY:r,colorArr:l,series:t});s.add(c)}var h=this.drawArcs({size:o,centerX:n,centerY:r,colorArr:l,series:t}),d=360;e.config.plotOptions.radialBar.startAngle<0&&(d=this.totalAngle);var u=(360-d)/360;if(e.globals.radialSize=o-o*u,this.radialDataLabels.value.show){var g=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);e.globals.radialSize+=g*u}return s.add(h.g),"front"===e.config.plotOptions.radialBar.hollow.position&&(h.g.add(h.elHollow),h.dataLabels&&h.g.add(h.dataLabels)),a.add(s),a}},{key:"drawTracks",value:function(t){var e=this.w,i=new k(this.ctx),a=i.group({class:"apexcharts-tracks"}),s=new w(this.ctx),r=new N(this.ctx),n=this.getStrokeWidth(t);t.size=t.size-n/2;for(var o=0;o<t.series.length;o++){var l=i.group({class:"apexcharts-radialbar-track apexcharts-track"});a.add(l),l.attr({rel:o+1}),t.size=t.size-n-this.margin;var c=e.config.plotOptions.radialBar.track,h=r.fillPath({seriesNumber:0,size:t.size,fillColors:Array.isArray(c.background)?c.background[o]:c.background,solid:!0}),d=this.trackStartAngle,u=this.trackEndAngle;Math.abs(u)+Math.abs(d)>=360&&(u=360-Math.abs(this.startAngle)-.1);var g=i.drawPath({d:"",stroke:h,strokeWidth:n*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var p=c.dropShadow;s.dropShadow(g,p)}l.add(g),g.attr("id","apexcharts-radialbarTrack-"+o),this.animatePaths(g,{centerX:t.centerX,centerY:t.centerY,endAngle:u,startAngle:d,size:t.size,i:o,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:e.globals.easing})}return a}},{key:"drawArcs",value:function(t){var e=this.w,i=new k(this.ctx),a=new N(this.ctx),s=new w(this.ctx),r=i.group(),n=this.getStrokeWidth(t);t.size=t.size-n/2;var o=e.config.plotOptions.radialBar.hollow.background,l=t.size-n*t.series.length-this.margin*t.series.length-n*parseInt(e.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,c=l-e.config.plotOptions.radialBar.hollow.margin;void 0!==e.config.plotOptions.radialBar.hollow.image&&(o=this.drawHollowImage(t,r,l,o));var h=this.drawHollow({size:c,centerX:t.centerX,centerY:t.centerY,fill:o||"transparent"});if(e.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=e.config.plotOptions.radialBar.hollow.dropShadow;s.dropShadow(h,d)}var u=1;!this.radialDataLabels.total.show&&e.globals.series.length>1&&(u=0);var g=null;this.radialDataLabels.show&&(g=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:t.centerX,centerY:t.centerY,opacity:u})),"back"===e.config.plotOptions.radialBar.hollow.position&&(r.add(h),g&&r.add(g));var p=!1;e.config.plotOptions.radialBar.inverseOrder&&(p=!0);for(var f=p?t.series.length-1:0;p?f>=0:f<t.series.length;p?f--:f++){var x=i.group({class:"apexcharts-series apexcharts-radial-series",seriesName:v.escapeString(e.globals.seriesNames[f])});r.add(x),x.attr({rel:f+1,"data:realIndex":f}),this.ctx.series.addCollapsedClassToSeries(x,f),t.size=t.size-n-this.margin;var m=a.fillPath({seriesNumber:f,size:t.size,value:t.series[f]}),b=this.startAngle,y=void 0,A=v.negToZero(t.series[f]>100?100:t.series[f])/100,C=Math.round(this.totalAngle*A)+this.startAngle,S=void 0;e.globals.dataChanged&&(y=this.startAngle,S=Math.round(this.totalAngle*v.negToZero(e.globals.previousPaths[f])/100)+y),Math.abs(C)+Math.abs(b)>=360&&(C-=.01),Math.abs(S)+Math.abs(y)>=360&&(S-=.01);var L=C-b,P=Array.isArray(e.config.stroke.dashArray)?e.config.stroke.dashArray[f]:e.config.stroke.dashArray,I=i.drawPath({d:"",stroke:m,strokeWidth:n,fill:"none",fillOpacity:e.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+f,strokeDashArray:P});if(k.setAttrs(I.node,{"data:angle":L,"data:value":t.series[f]}),e.config.chart.dropShadow.enabled){var T=e.config.chart.dropShadow;s.dropShadow(I,T,f)}s.setSelectionFilter(I,0,f),this.addListeners(I,this.radialDataLabels),x.add(I),I.attr({index:0,j:f});var M=0;!this.initialAnim||e.globals.resized||e.globals.dataChanged||(M=e.config.chart.animations.speed),e.globals.dataChanged&&(M=e.config.chart.animations.dynamicAnimation.speed),this.animDur=M/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(I,{centerX:t.centerX,centerY:t.centerY,endAngle:C,startAngle:b,prevEndAngle:S,prevStartAngle:y,size:t.size,i:f,totalItems:2,animBeginArr:this.animBeginArr,dur:M,shouldSetPrevPaths:!0,easing:e.globals.easing})}return{g:r,elHollow:h,dataLabels:g}}},{key:"drawHollow",value:function(t){var e=new k(this.ctx).drawCircle(2*t.size);return e.attr({class:"apexcharts-radialbar-hollow",cx:t.centerX,cy:t.centerY,r:t.size,fill:t.fill}),e}},{key:"drawHollowImage",value:function(t,e,i,a){var s=this.w,r=new N(this.ctx),n=v.randomId(),o=s.config.plotOptions.radialBar.hollow.image;if(s.config.plotOptions.radialBar.hollow.imageClipped)r.clippedImgArea({width:i,height:i,image:o,patternID:"pattern".concat(s.globals.cuid).concat(n)}),a="url(#pattern".concat(s.globals.cuid).concat(n,")");else{var l=s.config.plotOptions.radialBar.hollow.imageWidth,c=s.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===c){var h=s.globals.dom.Paper.image(o).loaded((function(e){this.move(t.centerX-e.width/2+s.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-e.height/2+s.config.plotOptions.radialBar.hollow.imageOffsetY)}));e.add(h)}else{var d=s.globals.dom.Paper.image(o).loaded((function(e){this.move(t.centerX-l/2+s.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-c/2+s.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,c)}));e.add(d)}}return a}},{key:"getStrokeWidth",value:function(t){var e=this.w;return t.size*(100-parseInt(e.config.plotOptions.radialBar.hollow.size,10))/100/(t.series.length+1)-this.margin}}]),i}(),zt=function(t){d(i,At);var e=p(i);function i(){return o(this,i),e.apply(this,arguments)}return c(i,[{key:"draw",value:function(t,e){var i=this.w,a=new k(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=t,this.seriesRangeStart=i.globals.seriesRangeStart,this.seriesRangeEnd=i.globals.seriesRangeEnd,this.barHelpers.initVariables(t);for(var s=a.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),n=0;n<t.length;n++){var o,l,c,d,u=void 0,g=void 0,p=i.globals.comboCharts?e[n]:n,f=a.group({class:"apexcharts-series",seriesName:v.escapeString(i.globals.seriesNames[p]),rel:n+1,"data:realIndex":p});this.ctx.series.addCollapsedClassToSeries(f,p),t[n].length>0&&(this.visibleI=this.visibleI+1);var x=0,m=0;this.yRatio.length>1&&(this.yaxisIndex=p);var b=this.barHelpers.initialPositions();g=b.y,d=b.zeroW,u=b.x,m=b.barWidth,x=b.barHeight,o=b.xDivision,l=b.yDivision,c=b.zeroH;for(var y=a.group({class:"apexcharts-datalabels","data:realIndex":p}),w=a.group({class:"apexcharts-rangebar-goals-markers"}),A=0;A<i.globals.dataPoints;A++){var C,S=this.barHelpers.getStrokeWidth(n,A,p),L=this.seriesRangeStart[n][A],P=this.seriesRangeEnd[n][A],I=null,T=null,M=null,E={x:u,y:g,strokeWidth:S,elSeries:f},z=this.seriesLen;if(i.config.plotOptions.bar.rangeBarGroupRows&&(z=1),void 0===i.config.series[n].data[A])break;if(this.isHorizontal){M=g+x*this.visibleI;var O=(l-x*z)/2;if(i.config.series[n].data[A].x){var X=this.detectOverlappingBars({i:n,j:A,barYPosition:M,srty:O,barHeight:x,yDivision:l,initPositions:b});x=X.barHeight,M=X.barYPosition}m=(I=this.drawRangeBarPaths(r({indexes:{i:n,j:A,realIndex:p},barHeight:x,barYPosition:M,zeroW:d,yDivision:l,y1:L,y2:P},E))).barWidth}else{i.globals.isXNumeric&&(u=(i.globals.seriesX[n][A]-i.globals.minX)/this.xRatio-m/2),T=u+m*this.visibleI;var R=(o-m*z)/2;if(i.config.series[n].data[A].x){var F=this.detectOverlappingBars({i:n,j:A,barXPosition:T,srtx:R,barWidth:m,xDivision:o,initPositions:b});m=F.barWidth,T=F.barXPosition}x=(I=this.drawRangeColumnPaths(r({indexes:{i:n,j:A,realIndex:p},barWidth:m,barXPosition:T,zeroH:c,xDivision:o},E))).barHeight}var Y=this.barHelpers.drawGoalLine({barXPosition:I.barXPosition,barYPosition:M,goalX:I.goalX,goalY:I.goalY,barHeight:x,barWidth:m});Y&&w.add(Y),g=I.y,u=I.x;var H=this.barHelpers.getPathFillColor(t,n,A,p),N=i.globals.stroke.colors[p];this.renderSeries((h(C={realIndex:p,pathFill:H,lineFill:N,j:A,i:n,x:u,y:g,y1:L,y2:P,pathFrom:I.pathFrom,pathTo:I.pathTo,strokeWidth:S,elSeries:f,series:t,barHeight:x,barWidth:m,barXPosition:T,barYPosition:M},"barWidth",m),h(C,"elDataLabelsWrap",y),h(C,"elGoalsMarkers",w),h(C,"visibleSeries",this.visibleI),h(C,"type","rangebar"),C))}s.add(f)}return s}},{key:"detectOverlappingBars",value:function(t){var e=t.i,i=t.j,a=t.barYPosition,s=t.barXPosition,r=t.srty,n=t.srtx,o=t.barHeight,l=t.barWidth,c=t.yDivision,h=t.xDivision,d=t.initPositions,u=this.w,g=[],p=u.config.series[e].data[i].rangeName,f=u.config.series[e].data[i].x,x=Array.isArray(f)?f.join(" "):f,m=u.globals.labels.map((function(t){return Array.isArray(t)?t.join(" "):t})).indexOf(x),b=u.globals.seriesRange[e].findIndex((function(t){return t.x===x&&t.overlaps.length>0}));return this.isHorizontal?(a=u.config.plotOptions.bar.rangeBarGroupRows?r+c*m:r+o*this.visibleI+c*m,b>-1&&!u.config.plotOptions.bar.rangeBarOverlap&&(g=u.globals.seriesRange[e][b].overlaps).indexOf(p)>-1&&(a=(o=d.barHeight/g.length)*this.visibleI+c*(100-parseInt(this.barOptions.barHeight,10))/100/2+o*(this.visibleI+g.indexOf(p))+c*m)):(m>-1&&(s=u.config.plotOptions.bar.rangeBarGroupRows?n+h*m:n+l*this.visibleI+h*m),b>-1&&!u.config.plotOptions.bar.rangeBarOverlap&&(g=u.globals.seriesRange[e][b].overlaps).indexOf(p)>-1&&(s=(l=d.barWidth/g.length)*this.visibleI+h*(100-parseInt(this.barOptions.barWidth,10))/100/2+l*(this.visibleI+g.indexOf(p))+h*m)),{barYPosition:a,barXPosition:s,barHeight:o,barWidth:l}}},{key:"drawRangeColumnPaths",value:function(t){var e=t.indexes,i=t.x,a=t.xDivision,s=t.barWidth,r=t.barXPosition,n=t.zeroH,o=this.w,l=e.i,c=e.j,h=this.yRatio[this.yaxisIndex],d=e.realIndex,u=this.getRangeValue(d,c),g=Math.min(u.start,u.end),p=Math.max(u.start,u.end);void 0===this.series[l][c]||null===this.series[l][c]?g=n:(g=n-g/h,p=n-p/h);var f=Math.abs(p-g),x=this.barHelpers.getColumnPaths({barXPosition:r,barWidth:s,y1:g,y2:p,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:e.realIndex,i:d,j:c,w:o});if(o.globals.isXNumeric){var m=this.getBarXForNumericXAxis({x:i,j:c,realIndex:d,barWidth:s});i=m.x,r=m.barXPosition}else i+=a;return{pathTo:x.pathTo,pathFrom:x.pathFrom,barHeight:f,x:i,y:p,goalY:this.barHelpers.getGoalValues("y",null,n,l,c),barXPosition:r}}},{key:"drawRangeBarPaths",value:function(t){var e=t.indexes,i=t.y,a=t.y1,s=t.y2,r=t.yDivision,n=t.barHeight,o=t.barYPosition,l=t.zeroW,c=this.w,h=l+a/this.invertedYRatio,d=l+s/this.invertedYRatio,u=Math.abs(d-h),g=this.barHelpers.getBarpaths({barYPosition:o,barHeight:n,x1:h,x2:d,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:e.realIndex,realIndex:e.realIndex,j:e.j,w:c});return c.globals.isXNumeric||(i+=r),{pathTo:g.pathTo,pathFrom:g.pathFrom,barWidth:u,x:d,goalX:this.barHelpers.getGoalValues("x",l,null,e.realIndex,e.j),y:i}}},{key:"getRangeValue",value:function(t,e){var i=this.w;return{start:i.globals.seriesRangeStart[t][e],end:i.globals.seriesRangeEnd[t][e]}}}]),i}(),Ot=function(){function t(e){o(this,t),this.w=e.w,this.lineCtx=e}return c(t,[{key:"sameValueSeriesFix",value:function(t,e){var i=this.w;if(("gradient"===i.config.fill.type||"gradient"===i.config.fill.type[t])&&new A(this.lineCtx.ctx,i).seriesHaveSameValues(t)){var a=e[t].slice();a[a.length-1]=a[a.length-1]+1e-6,e[t]=a}return e}},{key:"calculatePoints",value:function(t){var e=t.series,i=t.realIndex,a=t.x,s=t.y,r=t.i,n=t.j,o=t.prevY,l=this.w,c=[],h=[];if(0===n){var d=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(d=(l.globals.seriesX[i][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),c.push(d),h.push(v.isNumber(e[r][0])?o+l.config.markers.offsetY:null),c.push(a+l.config.markers.offsetX),h.push(v.isNumber(e[r][n+1])?s+l.config.markers.offsetY:null)}else c.push(a+l.config.markers.offsetX),h.push(v.isNumber(e[r][n+1])?s+l.config.markers.offsetY:null);return{x:c,y:h}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,a=t.realIndex,s=this.w,r=0;r<s.globals.previousPaths.length;r++){var n=s.globals.previousPaths[r];("line"===n.type||"area"===n.type)&&n.paths.length>0&&parseInt(n.realIndex,10)===parseInt(a,10)&&("line"===n.type?(this.lineCtx.appendPathFrom=!1,e=s.globals.previousPaths[r].paths[0].d):"area"===n.type&&(this.lineCtx.appendPathFrom=!1,i=s.globals.previousPaths[r].paths[0].d,s.config.stroke.show&&s.globals.previousPaths[r].paths[1]&&(e=s.globals.previousPaths[r].paths[1].d)))}return{pathFromLine:e,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(t){var e,i=t.i,a=t.series,s=t.prevY,r=t.lineYPosition,n=this.w;if(void 0!==(null===(e=a[i])||void 0===e?void 0:e[0]))s=(r=n.config.chart.stacked&&i>0?this.lineCtx.prevSeriesY[i-1][0]:this.lineCtx.zeroY)-a[i][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?a[i][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(n.config.chart.stacked&&i>0&&void 0===a[i][0])for(var o=i-1;o>=0;o--)if(null!==a[o][0]&&void 0!==a[o][0]){s=r=this.lineCtx.prevSeriesY[o][0];break}return{prevY:s,lineYPosition:r}}}]),t}(),Xt=function(t){for(var e="",i=0;i<t.length;i++){var a=t[i],s=t[i-1],r=a.length,n=null==s?void 0:s.length;i>1&&Math.abs(a[r-2]-s[n-2])<30?(e+="Q".concat(a[0],", ").concat(a[1]),e+=", ".concat(a[2],", ").concat(a[3])):r>4?(e+="C".concat(a[0],", ").concat(a[1]),e+=", ".concat(a[2],", ").concat(a[3]),e+=", ".concat(a[4],", ").concat(a[5])):r>2&&(e+="S".concat(a[0],", ").concat(a[1]),e+=", ".concat(a[2],", ").concat(a[3]))}return e},Rt=function(t){var e=function(t){for(var e,i,a,s,r=function(t){for(var e=[],i=t[0],a=t[1],s=e[0]=Ft(i,a),r=1,n=t.length-1;r<n;r++)i=a,a=t[r+1],e[r]=.5*(s+(s=Ft(i,a)));return e[r]=s,e}(t),n=t.length-1,o=[],l=0;l<n;l++)a=Ft(t[l],t[l+1]),Math.abs(a)<1e-6?r[l]=r[l+1]=0:(s=(e=r[l]/a)*e+(i=r[l+1]/a)*i)>9&&(s=3*a/Math.sqrt(s),r[l]=s*e,r[l+1]=s*i);for(var c=0;c<=n;c++)s=(t[Math.min(n,c+1)][0]-t[Math.max(0,c-1)][0])/(6*(1+r[c]*r[c])),o.push([s||0,r[c]*s||0]);return o}(t),i=t[1],a=t[0],s=[],r=e[1],n=e[0];s.push(a,[a[0]+n[0],a[1]+n[1],i[0]-r[0],i[1]-r[1],i[0],i[1]]);for(var o=2,l=e.length;o<l;o++){var c=t[o],h=e[o];s.push([c[0]-h[0],c[1]-h[1],c[0],c[1]])}return s};function Ft(t,e){return(e[1]-t[1])/(e[0]-t[0])}var Yt=function(){function t(e,i,a){o(this,t),this.ctx=e,this.w=e.w,this.xyRatios=i,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||a,this.scatter=new W(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Ot(this),this.markers=new D(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return c(t,[{key:"draw",value:function(t,e,i,a){var s,n=this.w,o=new k(this.ctx),l=n.globals.comboCharts?e:n.config.chart.type,c=o.group({class:"apexcharts-".concat(l,"-series apexcharts-plot-series")}),h=new A(this.ctx,n);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,t=h.getLogSeries(t),this.yRatio=h.getLogYRatios(this.yRatio);for(var d=[],u=0;u<t.length;u++){t=this.lineHelpers.sameValueSeriesFix(u,t);var g=n.globals.comboCharts?i[u]:u;this._initSerieVariables(t,u,g);var p=[],f=[],x=[],m=n.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,g),n.globals.isXNumeric&&n.globals.seriesX.length>0&&(m=(n.globals.seriesX[g][0]-n.globals.minX)/this.xRatio),x.push(m);var b=m,v=this.zeroY,y=this.zeroY;v=this.lineHelpers.determineFirstPrevY({i:u,series:t,prevY:v,lineYPosition:0}).prevY,"smooth"===n.config.stroke.curve&&null===t[u][0]?p.push(null):p.push(v),"rangeArea"===l&&(y=this.lineHelpers.determineFirstPrevY({i:u,series:a,prevY:y,lineYPosition:0}).prevY,f.push(y));var w={type:l,series:t,realIndex:g,i:u,x:m,y:1,pathsFrom:this._calculatePathsFrom({type:l,series:t,i:u,realIndex:g,prevX:b,prevY:v,prevY2:y}),linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:x,yArrj:p,y2Arrj:f,seriesRangeEnd:a},C=this._iterateOverDataPoints(r(r({},w),{},{iterations:"rangeArea"===l?t[u].length-1:void 0,isRangeStart:!0}));if("rangeArea"===l){var S=this._calculatePathsFrom({series:a,i:u,realIndex:g,prevX:b,prevY:y}),L=this._iterateOverDataPoints(r(r({},w),{},{series:a,pathsFrom:S,iterations:a[u].length-1,isRangeStart:!1}));C.linePaths[0]=L.linePath+C.linePath,C.pathFromLine=L.pathFromLine+C.pathFromLine}this._handlePaths({type:l,realIndex:g,i:u,paths:C}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),d.push(this.elSeries)}if(void 0!==(null===(s=n.config.series[0])||void 0===s?void 0:s.zIndex)&&d.sort((function(t,e){return Number(t.node.getAttribute("zIndex"))-Number(e.node.getAttribute("zIndex"))})),n.config.chart.stacked)for(var P=d.length;P>0;P--)c.add(d[P-1]);else for(var I=0;I<d.length;I++)c.add(d[I]);return c}},{key:"_initSerieVariables",value:function(t,e,i){var a=this.w,s=new k(this.ctx);this.xDivision=a.globals.gridWidth/(a.globals.dataPoints-("on"===a.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(a.config.stroke.width)?a.config.stroke.width[i]:a.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=i),this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed,this.zeroY=a.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?a.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>a.globals.gridHeight||"end"===a.config.plotOptions.area.fillTo)&&(this.areaBottomY=a.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=s.group({class:"apexcharts-series",zIndex:void 0!==a.config.series[i].zIndex?a.config.series[i].zIndex:i,seriesName:v.escapeString(a.globals.seriesNames[i])}),this.elPointsMain=s.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=s.group({class:"apexcharts-datalabels","data:realIndex":i});var r=t[e].length===a.globals.dataPoints;this.elSeries.attr({"data:longestSeries":r,rel:e+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(t){var e,i,a,s,r=t.type,n=t.series,o=t.i,l=t.realIndex,c=t.prevX,h=t.prevY,d=t.prevY2,u=this.w,g=new k(this.ctx);if(null===n[o][0]){for(var p=0;p<n[o].length;p++)if(null!==n[o][p]){c=this.xDivision*p,h=this.zeroY-n[o][p]/this.yRatio[this.yaxisIndex],e=g.move(c,h),i=g.move(c,this.areaBottomY);break}}else e=g.move(c,h),"rangeArea"===r&&(e=g.move(c,d)+g.line(c,h)),i=g.move(c,this.areaBottomY)+g.line(c,h);if(a=g.move(-1,this.zeroY)+g.line(-1,this.zeroY),s=g.move(-1,this.zeroY)+g.line(-1,this.zeroY),u.globals.previousPaths.length>0){var f=this.lineHelpers.checkPreviousPaths({pathFromLine:a,pathFromArea:s,realIndex:l});a=f.pathFromLine,s=f.pathFromArea}return{prevX:c,prevY:h,linePath:e,areaPath:i,pathFromLine:a,pathFromArea:s}}},{key:"_handlePaths",value:function(t){var e=t.type,i=t.realIndex,a=t.i,s=t.paths,n=this.w,o=new k(this.ctx),l=new N(this.ctx);this.prevSeriesY.push(s.yArrj),n.globals.seriesXvalues[i]=s.xArrj,n.globals.seriesYvalues[i]=s.yArrj;var c=n.config.forecastDataPoints;if(c.count>0&&"rangeArea"!==e){var h=n.globals.seriesXvalues[i][n.globals.seriesXvalues[i].length-c.count-1],d=o.drawRect(h,0,n.globals.gridWidth,n.globals.gridHeight,0);n.globals.dom.elForecastMask.appendChild(d.node);var u=o.drawRect(0,0,h,n.globals.gridHeight,0);n.globals.dom.elNonForecastMask.appendChild(u.node)}this.pointsChart||n.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var g={i:a,realIndex:i,animationDelay:a,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(e)};if("area"===e)for(var p=l.fillPath({seriesNumber:i}),f=0;f<s.areaPaths.length;f++){var x=o.renderPaths(r(r({},g),{},{pathFrom:s.pathFromArea,pathTo:s.areaPaths[f],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:p}));this.elSeries.add(x)}if(n.config.stroke.show&&!this.pointsChart){var m=null;if("line"===e)m=l.fillPath({seriesNumber:i,i:a});else if("solid"===n.config.stroke.fill.type)m=n.globals.stroke.colors[i];else{var b=n.config.fill;n.config.fill=n.config.stroke.fill,m=l.fillPath({seriesNumber:i,i:a}),n.config.fill=b}for(var v=0;v<s.linePaths.length;v++){var y=m;"rangeArea"===e&&(y=l.fillPath({seriesNumber:i}));var w=r(r({},g),{},{pathFrom:s.pathFromLine,pathTo:s.linePaths[v],stroke:m,strokeWidth:this.strokeWidth,strokeLineCap:n.config.stroke.lineCap,fill:"rangeArea"===e?y:"none"}),A=o.renderPaths(w);if(this.elSeries.add(A),A.attr("fill-rule","evenodd"),c.count>0&&"rangeArea"!==e){var C=o.renderPaths(w);C.node.setAttribute("stroke-dasharray",c.dashArray),c.strokeWidth&&C.node.setAttribute("stroke-width",c.strokeWidth),this.elSeries.add(C),C.attr("clip-path","url(#forecastMask".concat(n.globals.cuid,")")),A.attr("clip-path","url(#nonForecastMask".concat(n.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(t){var e=this,i=t.type,a=t.series,s=t.iterations,r=t.realIndex,n=t.i,o=t.x,l=t.y,c=t.pathsFrom,h=t.linePaths,d=t.areaPaths,u=t.seriesIndex,g=t.lineYPosition,p=t.xArrj,f=t.yArrj,x=t.y2Arrj,m=t.isRangeStart,b=t.seriesRangeEnd,y=this.w,w=new k(this.ctx),A=this.yRatio,C=c.prevY,S=c.linePath,L=c.areaPath,P=c.pathFromLine,I=c.pathFromArea,T=v.isNumber(y.globals.minYArr[r])?y.globals.minYArr[r]:y.globals.minY;s||(s=y.globals.dataPoints>1?y.globals.dataPoints-1:y.globals.dataPoints);for(var M=function(t,i){return i-t/A[e.yaxisIndex]+2*(e.isReversed?t/A[e.yaxisIndex]:0)},E=l,z=0;z<s;z++){var O=void 0===a[n][z+1]||null===a[n][z+1];if(y.globals.isXNumeric){var X=y.globals.seriesX[r][z+1];void 0===y.globals.seriesX[r][z+1]&&(X=y.globals.seriesX[r][s-1]),o=(X-y.globals.minX)/this.xRatio}else o+=this.xDivision;g=y.config.chart.stacked&&n>0&&y.globals.collapsedSeries.length<y.config.series.length-1?this.prevSeriesY[function(t){for(var e=t,i=0;i<y.globals.series.length;i++)if(y.globals.collapsedSeriesIndices.indexOf(t)>-1){e--;break}return e>=0?e:0}(n-1)][z+1]:this.zeroY,O?l=M(T,g):(l=M(a[n][z+1],g),"rangeArea"===i&&(E=M(b[n][z+1],g))),p.push(o),O&&"smooth"===y.config.stroke.curve?f.push(null):f.push(l),x.push(E);var R=this.lineHelpers.calculatePoints({series:a,x:o,y:l,realIndex:r,i:n,j:z,prevY:C}),F=this._createPaths({type:i,series:a,i:n,realIndex:r,j:z,x:o,y:l,y2:E,xArrj:p,yArrj:f,y2Arrj:x,linePath:S,areaPath:L,linePaths:h,areaPaths:d,seriesIndex:u,isRangeStart:m});d=F.areaPaths,h=F.linePaths,L=F.areaPath,S=F.linePath,!this.appendPathFrom||"smooth"===y.config.stroke.curve&&"rangeArea"===i||(P+=w.line(o,this.zeroY),I+=w.line(o,this.zeroY)),this.handleNullDataPoints(a,R,n,z,r),this._handleMarkersAndLabels({type:i,pointsPos:R,i:n,j:z,realIndex:r,isRangeStart:m})}return{yArrj:f,xArrj:p,pathFromArea:I,areaPaths:d,pathFromLine:P,linePaths:h,linePath:S,areaPath:L}}},{key:"_handleMarkersAndLabels",value:function(t){var e=t.type,i=t.pointsPos,a=t.isRangeStart,s=t.i,r=t.j,n=t.realIndex,o=this.w,l=new B(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,r,{realIndex:n,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain});else{o.globals.series[s].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var c=this.markers.plotChartMarkers(i,n,r+1);null!==c&&this.elPointsMain.add(c)}var h=l.drawDataLabel({type:e,isRangeStart:a,pos:i,i:n,j:r+1});null!==h&&this.elDataLabelsWrap.add(h)}},{key:"_createPaths",value:function(t){var e=t.type,i=t.series,a=t.i,s=t.realIndex,r=t.j,n=t.x,o=t.y,l=t.xArrj,c=t.yArrj,h=t.y2,d=t.y2Arrj,u=t.linePath,g=t.areaPath,p=t.linePaths,f=t.areaPaths,x=t.seriesIndex,m=t.isRangeStart,b=this.w,v=new k(this.ctx),y=b.config.stroke.curve,w=this.areaBottomY;if(Array.isArray(b.config.stroke.curve)&&(y=Array.isArray(x)?b.config.stroke.curve[x[a]]:b.config.stroke.curve[a]),"rangeArea"===e&&(b.globals.hasNullValues||b.config.forecastDataPoints.count>0)&&"smooth"===y&&(y="straight"),"smooth"===y){var A="rangeArea"===e?l.length===b.globals.dataPoints:r===i[a].length-2,C=l.map((function(t,e){return[l[e],c[e]]})).filter((function(t){return null!==t[1]}));if(A&&C.length>1){var S=Rt(C);if(u+=Xt(S),null===i[a][0]?g=u:g+=Xt(S),"rangeArea"===e&&m){u+=v.line(l[l.length-1],d[d.length-1]);var L=l.slice().reverse(),P=d.slice().reverse(),I=L.map((function(t,e){return[L[e],P[e]]})),T=Rt(I);g=u+=Xt(T)}else g+=v.line(C[C.length-1][0],w)+v.line(C[0][0],w)+v.move(C[0][0],C[0][1])+"z";p.push(u),f.push(g)}}else{if(null===i[a][r+1]){u+=v.move(n,o);var M=b.globals.isXNumeric?(b.globals.seriesX[s][r]-b.globals.minX)/this.xRatio:n-this.xDivision;g=g+v.line(M,w)+v.move(n,o)+"z"}null===i[a][r]&&(u+=v.move(n,o),g+=v.move(n,w)),"stepline"===y?(u=u+v.line(n,null,"H")+v.line(null,o,"V"),g=g+v.line(n,null,"H")+v.line(null,o,"V")):"straight"===y&&(u+=v.line(n,o),g+=v.line(n,o)),r===i[a].length-2&&(g=g+v.line(n,w)+v.move(n,o)+"z","rangeArea"===e&&m?u=u+v.line(n,h)+v.move(n,h)+"z":(p.push(u),f.push(g)))}return{linePaths:p,areaPaths:f,linePath:u,areaPath:g}}},{key:"handleNullDataPoints",value:function(t,e,i,a,s){var r=this.w;if(null===t[i][a]&&r.config.markers.showNullDataPoints||1===t[i].length){var n=this.markers.plotChartMarkers(e,s,a+1,this.strokeWidth-r.config.markers.strokeWidth/2,!0);null!==n&&this.elPointsMain.add(n)}}}]),t}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function t(e,i,a,s){this.xoffset=e,this.yoffset=i,this.height=s,this.width=a,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(t){var e,i=[],a=this.xoffset,s=this.yoffset,n=r(t)/this.height,o=r(t)/this.width;if(this.width>=this.height)for(e=0;e<t.length;e++)i.push([a,s,a+n,s+t[e]/n]),s+=t[e]/n;else for(e=0;e<t.length;e++)i.push([a,s,a+t[e]/o,s+o]),a+=t[e]/o;return i},this.cutArea=function(e){var i;if(this.width>=this.height){var a=e/this.height,s=this.width-a;i=new t(this.xoffset+a,this.yoffset,s,this.height)}else{var r=e/this.width,n=this.height-r;i=new t(this.xoffset,this.yoffset+r,this.width,n)}return i}}function e(e,a,s,n,o){n=void 0===n?0:n,o=void 0===o?0:o;var l=i(function(t,e){var i,a=[],s=e/r(t);for(i=0;i<t.length;i++)a[i]=t[i]*s;return a}(e,a*s),[],new t(n,o,a,s),[]);return function(t){var e,i,a=[];for(e=0;e<t.length;e++)for(i=0;i<t[e].length;i++)a.push(t[e][i]);return a}(l)}function i(t,e,s,n){var o,l,c;if(0!==t.length)return o=s.shortestEdge(),function(t,e,i){var s;return 0===t.length||((s=t.slice()).push(e),a(t,i)>=a(s,i))}(e,l=t[0],o)?(e.push(l),i(t.slice(1),e,s,n)):(c=s.cutArea(r(e),n),n.push(s.getCoordinates(e)),i(t,[],c,n)),n;n.push(s.getCoordinates(e))}function a(t,e){var i=Math.min.apply(Math,t),a=Math.max.apply(Math,t),s=r(t);return Math.max(Math.pow(e,2)*a/Math.pow(s,2),Math.pow(s,2)/(Math.pow(e,2)*i))}function s(t){return t&&t.constructor===Array}function r(t){var e,i=0;for(e=0;e<t.length;e++)i+=t[e];return i}function n(t){var e,i=0;if(s(t[0]))for(e=0;e<t.length;e++)i+=n(t[e]);else i=r(t);return i}return function t(i,a,r,o,l){o=void 0===o?0:o,l=void 0===l?0:l;var c,h,d=[],u=[];if(s(i[0])){for(h=0;h<i.length;h++)d[h]=n(i[h]);for(c=e(d,a,r,o,l),h=0;h<i.length;h++)u.push(t(i[h],c[h][2]-c[h][0],c[h][3]-c[h][1],c[h][0],c[h][1]))}else u=e(i,a,r,o,l);return u}}();var Ht,Nt,Dt=function(){function t(e,i){o(this,t),this.ctx=e,this.w=e.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new Lt(e),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return c(t,[{key:"draw",value:function(t){var e=this,i=this.w,a=new k(this.ctx),s=new N(this.ctx),r=a.group({class:"apexcharts-treemap"});if(i.globals.noData)return r;var n=[];return t.forEach((function(t){var e=t.map((function(t){return Math.abs(t)}));n.push(e)})),this.negRange=this.helpers.checkColorRange(),i.config.series.forEach((function(t,i){t.data.forEach((function(t){Array.isArray(e.labels[i])||(e.labels[i]=[]),e.labels[i].push(t.x)}))})),window.TreemapSquared.generate(n,i.globals.gridWidth,i.globals.gridHeight).forEach((function(n,o){var l=a.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:v.escapeString(i.globals.seriesNames[o]),rel:o+1,"data:realIndex":o});if(i.config.chart.dropShadow.enabled){var c=i.config.chart.dropShadow;new w(e.ctx).dropShadow(r,c,o)}var h=a.group({class:"apexcharts-data-labels"});n.forEach((function(r,n){var c=r[0],h=r[1],d=r[2],u=r[3],g=a.drawRect(c,h,d-c,u-h,0,"#fff",1,e.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?f:i.globals.stroke.colors[o]);g.attr({cx:c,cy:h,index:o,i:o,j:n,width:d-c,height:u-h});var p=e.helpers.getShadeColor(i.config.chart.type,o,n,e.negRange),f=p.color;void 0!==i.config.series[o].data[n]&&i.config.series[o].data[n].fillColor&&(f=i.config.series[o].data[n].fillColor);var x=s.fillPath({color:f,seriesNumber:o,dataPointIndex:n});g.node.classList.add("apexcharts-treemap-rect"),g.attr({fill:x}),e.helpers.addListeners(g);var m={x:c+(d-c)/2,y:h+(u-h)/2,width:0,height:0},b={x:c,y:h,width:d-c,height:u-h};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var v=1;i.globals.resized||(v=i.config.chart.animations.speed),e.animateTreemap(g,m,b,v)}if(i.globals.dataChanged){var y=1;e.dynamicAnim.enabled&&i.globals.shouldAnimate&&(y=e.dynamicAnim.speed,i.globals.previousPaths[o]&&i.globals.previousPaths[o][n]&&i.globals.previousPaths[o][n].rect&&(m=i.globals.previousPaths[o][n].rect),e.animateTreemap(g,m,b,y))}var w=e.getFontSize(r),k=i.config.dataLabels.formatter(e.labels[o][n],{value:i.globals.series[o][n],seriesIndex:o,dataPointIndex:n,w:i});"truncate"===i.config.plotOptions.treemap.dataLabels.format&&(w=parseInt(i.config.dataLabels.style.fontSize,10),k=e.truncateLabels(k,w,c,h,d,u));var A=e.helpers.calculateDataLabels({text:k,x:(c+d)/2,y:(h+u)/2+e.strokeWidth/2+w/3,i:o,j:n,colorProps:p,fontSize:w,series:t});i.config.dataLabels.enabled&&A&&e.rotateToFitLabel(A,w,k,c,h,d,u),l.add(g),null!==A&&l.add(A)})),l.add(h),r.add(l)})),r}},{key:"getFontSize",value:function(t){var e,i,a=this.w,s=function t(e){var i,a=0;if(Array.isArray(e[0]))for(i=0;i<e.length;i++)a+=t(e[i]);else for(i=0;i<e.length;i++)a+=e[i].length;return a}(this.labels)/function t(e){var i,a=0;if(Array.isArray(e[0]))for(i=0;i<e.length;i++)a+=t(e[i]);else for(i=0;i<e.length;i++)a+=1;return a}(this.labels);return e=(t[2]-t[0])*(t[3]-t[1]),i=Math.pow(e,.5),Math.min(i/s,parseInt(a.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(t,e,i,a,s,r,n){var o=new k(this.ctx),l=o.getTextRects(i,e);if(l.width+this.w.config.stroke.width+5>r-a&&l.width<=n-s){var c=o.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(-90 ".concat(c.x," ").concat(c.y,") translate(").concat(l.height/3,")"))}}},{key:"truncateLabels",value:function(t,e,i,a,s,r){var n=new k(this.ctx),o=n.getTextRects(t,e).width+this.w.config.stroke.width+5>s-i&&r-a>s-i?r-a:s-i,l=n.getTextBasedOnMaxWidth({text:t,maxWidth:o,fontSize:e});return t.length!==l.length&&o/e<5?"":l}},{key:"animateTreemap",value:function(t,e,i,a){var s=new y(this.ctx);s.animateRect(t,{x:e.x,y:e.y,width:e.width,height:e.height},{x:i.x,y:i.y,width:i.width,height:i.height},a,(function(){s.animationCompleted(t)}))}}]),t}(),Wt=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return c(t,[{key:"calculateTimeScaleTicks",value:function(t,e){var i=this,a=this.w;if(a.globals.allSeriesCollapsed)return a.globals.labels=[],a.globals.timescaleLabels=[],[];var s=new E(this.ctx),n=(e-t)/864e5;this.determineInterval(n),a.globals.disableZoomIn=!1,a.globals.disableZoomOut=!1,n<.00011574074074074075?a.globals.disableZoomIn=!0:n>5e4&&(a.globals.disableZoomOut=!0);var o=s.getTimeUnitsfromTimestamp(t,e,this.utc),l=a.globals.gridWidth/n,c=l/24,h=c/60,d=h/60,u=Math.floor(24*n),g=Math.floor(1440*n),p=Math.floor(86400*n),f=Math.floor(n),x=Math.floor(n/30),m=Math.floor(n/365),b={minMillisecond:o.minMillisecond,minSecond:o.minSecond,minMinute:o.minMinute,minHour:o.minHour,minDate:o.minDate,minMonth:o.minMonth,minYear:o.minYear},v={firstVal:b,currentMillisecond:b.minMillisecond,currentSecond:b.minSecond,currentMinute:b.minMinute,currentHour:b.minHour,currentMonthDate:b.minDate,currentDate:b.minDate,currentMonth:b.minMonth,currentYear:b.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:c,minutesWidthOnXAxis:h,secondsWidthOnXAxis:d,numberOfSeconds:p,numberOfMinutes:g,numberOfHours:u,numberOfDays:f,numberOfMonths:x,numberOfYears:m};switch(this.tickInterval){case"years":this.generateYearScale(v);break;case"months":case"half_year":this.generateMonthScale(v);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(v);break;case"hours":this.generateHourScale(v);break;case"minutes_fives":case"minutes":this.generateMinuteScale(v);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(v)}var y=this.timeScaleArray.map((function(t){var e={position:t.position,unit:t.unit,year:t.year,day:t.day?t.day:1,hour:t.hour?t.hour:0,month:t.month+1};return"month"===t.unit?r(r({},e),{},{day:1,value:t.value+1}):"day"===t.unit||"hour"===t.unit?r(r({},e),{},{value:t.value}):"minute"===t.unit?r(r({},e),{},{value:t.value,minute:t.value}):"second"===t.unit?r(r({},e),{},{value:t.value,minute:t.minute,second:t.second}):t}));return y.filter((function(t){var e=1,s=Math.ceil(a.globals.gridWidth/120),r=t.value;void 0!==a.config.xaxis.tickAmount&&(s=a.config.xaxis.tickAmount),y.length>s&&(e=Math.floor(y.length/s));var n=!1,o=!1;switch(i.tickInterval){case"years":"year"===t.unit&&(n=!0);break;case"half_year":e=7,"year"===t.unit&&(n=!0);break;case"months":e=1,"year"===t.unit&&(n=!0);break;case"months_fortnight":e=15,"year"!==t.unit&&"month"!==t.unit||(n=!0),30===r&&(o=!0);break;case"months_days":e=10,"month"===t.unit&&(n=!0),30===r&&(o=!0);break;case"week_days":e=8,"month"===t.unit&&(n=!0);break;case"days":e=1,"month"===t.unit&&(n=!0);break;case"hours":"day"===t.unit&&(n=!0);break;case"minutes_fives":case"seconds_fives":r%5!=0&&(o=!0);break;case"seconds_tens":r%10!=0&&(o=!0)}if("hours"===i.tickInterval||"minutes_fives"===i.tickInterval||"seconds_tens"===i.tickInterval||"seconds_fives"===i.tickInterval){if(!o)return!0}else if((r%e==0||n)&&!o)return!0}))}},{key:"recalcDimensionsBasedOnFormat",value:function(t,e){var i=this.w,a=this.formatDates(t),s=this.removeOverlappingTS(a);i.globals.timescaleLabels=s.slice(),new ct(this.ctx).plotCoords()}},{key:"determineInterval",value:function(t){var e=24*t,i=60*e;switch(!0){case t/365>5:this.tickInterval="years";break;case t>800:this.tickInterval="half_year";break;case t>180:this.tickInterval="months";break;case t>90:this.tickInterval="months_fortnight";break;case t>60:this.tickInterval="months_days";break;case t>30:this.tickInterval="week_days";break;case t>2:this.tickInterval="days";break;case e>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(t){var e=t.firstVal,i=t.currentMonth,a=t.currentYear,s=t.daysWidthOnXAxis,r=t.numberOfYears,n=e.minYear,o=0,l=new E(this.ctx),c="year";if(e.minDate>1||e.minMonth>0){var h=l.determineRemainingDaysOfYear(e.minYear,e.minMonth,e.minDate);o=(l.determineDaysOfYear(e.minYear)-h+1)*s,n=e.minYear+1,this.timeScaleArray.push({position:o,value:n,unit:c,year:n,month:v.monthMod(i+1)})}else 1===e.minDate&&0===e.minMonth&&this.timeScaleArray.push({position:o,value:n,unit:c,year:a,month:v.monthMod(i+1)});for(var d=n,u=o,g=0;g<r;g++)d++,u=l.determineDaysOfYear(d-1)*s+u,this.timeScaleArray.push({position:u,value:d,unit:c,year:d,month:1})}},{key:"generateMonthScale",value:function(t){var e=t.firstVal,i=t.currentMonthDate,a=t.currentMonth,s=t.currentYear,r=t.daysWidthOnXAxis,n=t.numberOfMonths,o=a,l=0,c=new E(this.ctx),h="month",d=0;if(e.minDate>1){l=(c.determineDaysOfMonths(a+1,e.minYear)-i+1)*r,o=v.monthMod(a+1);var u=s+d,g=v.monthMod(o),p=o;0===o&&(h="year",p=u,g=1,u+=d+=1),this.timeScaleArray.push({position:l,value:p,unit:h,year:u,month:g})}else this.timeScaleArray.push({position:l,value:o,unit:h,year:s,month:v.monthMod(a)});for(var f=o+1,x=l,m=0,b=1;m<n;m++,b++){0===(f=v.monthMod(f))?(h="year",d+=1):h="month";var y=this._getYear(s,f,d);x=c.determineDaysOfMonths(f,y)*r+x;var w=0===f?y:f;this.timeScaleArray.push({position:x,value:w,unit:h,year:y,month:0===f?1:f}),f++}}},{key:"generateDayScale",value:function(t){var e=t.firstVal,i=t.currentMonth,a=t.currentYear,s=t.hoursWidthOnXAxis,r=t.numberOfDays,n=new E(this.ctx),o="day",l=e.minDate+1,c=l,h=function(t,e,i){return t>n.determineDaysOfMonths(e+1,i)?(c=1,o="month",u=e+=1,e):e},d=(24-e.minHour)*s,u=l,g=h(c,i,a);0===e.minHour&&1===e.minDate?(d=0,u=v.monthMod(e.minMonth),o="month",c=e.minDate):1!==e.minDate&&0===e.minHour&&0===e.minMinute&&(d=0,l=e.minDate,u=l,g=h(c=l,i,a)),this.timeScaleArray.push({position:d,value:u,unit:o,year:this._getYear(a,g,0),month:v.monthMod(g),day:c});for(var p=d,f=0;f<r;f++){o="day",g=h(c+=1,g,this._getYear(a,g,0));var x=this._getYear(a,g,0);p=24*s+p;var m=1===c?v.monthMod(g):c;this.timeScaleArray.push({position:p,value:m,unit:o,year:x,month:v.monthMod(g),day:m})}}},{key:"generateHourScale",value:function(t){var e=t.firstVal,i=t.currentDate,a=t.currentMonth,s=t.currentYear,r=t.minutesWidthOnXAxis,n=t.numberOfHours,o=new E(this.ctx),l="hour",c=function(t,e){return t>o.determineDaysOfMonths(e+1,s)&&(f=1,e+=1),{month:e,date:f}},h=function(t,e){return t>o.determineDaysOfMonths(e+1,s)?e+=1:e},d=60-(e.minMinute+e.minSecond/60),u=d*r,g=e.minHour+1,p=g;60===d&&(u=0,p=(g=e.minHour)+1);var f=i;p>=24&&(p=0,f+=1,l="day");var x=c(f,a).month;x=h(f,x),this.timeScaleArray.push({position:u,value:g,unit:l,day:f,hour:p,year:s,month:v.monthMod(x)}),p++;for(var m=u,b=0;b<n;b++){l="hour",p>=24&&(p=0,l="day",x=c(f+=1,x).month,x=h(f,x));var y=this._getYear(s,x,0);m=60*r+m;var w=0===p?f:p;this.timeScaleArray.push({position:m,value:w,unit:l,hour:p,day:f,year:y,month:v.monthMod(x)}),p++}}},{key:"generateMinuteScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,s=t.currentHour,r=t.currentDate,n=t.currentMonth,o=t.currentYear,l=t.minutesWidthOnXAxis,c=t.secondsWidthOnXAxis,h=t.numberOfMinutes,d=a+1,u=r,g=n,p=o,f=s,x=(60-i-e/1e3)*c,m=0;m<h;m++)d>=60&&(d=0,24===(f+=1)&&(f=0)),this.timeScaleArray.push({position:x,value:d,unit:"minute",hour:f,minute:d,day:u,year:this._getYear(p,g,0),month:v.monthMod(g)}),x+=l,d++}},{key:"generateSecondScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,s=t.currentHour,r=t.currentDate,n=t.currentMonth,o=t.currentYear,l=t.secondsWidthOnXAxis,c=t.numberOfSeconds,h=i+1,d=a,u=r,g=n,p=o,f=s,x=(1e3-e)/1e3*l,m=0;m<c;m++)h>=60&&(h=0,++d>=60&&(d=0,24==++f&&(f=0))),this.timeScaleArray.push({position:x,value:h,unit:"second",hour:f,minute:d,second:h,day:u,year:this._getYear(p,g,0),month:v.monthMod(g)}),x+=l,h++}},{key:"createRawDateString",value:function(t,e){var i=t.year;return 0===t.month&&(t.month=1),i+="-"+("0"+t.month.toString()).slice(-2),"day"===t.unit?i+="day"===t.unit?"-"+("0"+e).slice(-2):"-01":i+="-"+("0"+(t.day?t.day:"1")).slice(-2),"hour"===t.unit?i+="hour"===t.unit?"T"+("0"+e).slice(-2):"T00":i+="T"+("0"+(t.hour?t.hour:"0")).slice(-2),"minute"===t.unit?i+=":"+("0"+e).slice(-2):i+=":"+(t.minute?("0"+t.minute).slice(-2):"00"),"second"===t.unit?i+=":"+("0"+e).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(t){var e=this,i=this.w;return t.map((function(t){var a=t.value.toString(),s=new E(e.ctx),r=e.createRawDateString(t,a),n=s.getDate(s.parseDate(r));if(e.utc||(n=s.getDate(s.parseDateWithTimezone(r))),void 0===i.config.xaxis.labels.format){var o="dd MMM",l=i.config.xaxis.labels.datetimeFormatter;"year"===t.unit&&(o=l.year),"month"===t.unit&&(o=l.month),"day"===t.unit&&(o=l.day),"hour"===t.unit&&(o=l.hour),"minute"===t.unit&&(o=l.minute),"second"===t.unit&&(o=l.second),a=s.formatDate(n,o)}else a=s.formatDate(n,i.config.xaxis.labels.format);return{dateString:r,position:t.position,value:a,unit:t.unit,year:t.year,month:t.month}}))}},{key:"removeOverlappingTS",value:function(t){var e,i=this,a=new k(this.ctx),s=!1;t.length>0&&t[0].value&&t.every((function(e){return e.value.length===t[0].value.length}))&&(s=!0,e=a.getTextRects(t[0].value).width);var r=0,n=t.map((function(n,o){if(o>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var l=s?e:a.getTextRects(t[r].value).width,c=t[r].position;return n.position>c+l+10?(r=o,n):null}return n}));return n.filter((function(t){return null!==t}))}},{key:"_getYear",value:function(t,e,i){return t+Math.floor(e/12)+i}}]),t}(),Bt=function(){function t(e,i){o(this,t),this.ctx=i,this.w=i.w,this.el=e}return c(t,[{key:"setupElements",value:function(){var t=this.w.globals,e=this.w.config,i=e.chart.type;t.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,t.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,t.isBarHorizontal=("bar"===e.chart.type||"rangeBar"===e.chart.type||"boxPlot"===e.chart.type)&&e.plotOptions.bar.horizontal,t.chartClass=".apexcharts"+t.chartID,t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),k.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas "+t.chartClass.substring(1)}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=new window.SVG.Doc(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(e.chart.offsetX,", ").concat(e.chart.offsetY,")")}),t.dom.Paper.node.style.background="dark"!==e.theme.mode||e.chart.background?e.chart.background:"rgba(0, 0, 0, 0.8)",this.setSVGDimensions(),t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject"),k.setAttrs(t.dom.elLegendForeign,{x:0,y:0,width:t.svgWidth,height:t.svgHeight}),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.dom.elLegendForeign.appendChild(t.dom.elLegendWrap),t.dom.Paper.node.appendChild(t.dom.elLegendForeign),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(t,e){var i=this.w,a=i.config,s=i.globals,r={series:[],i:[]},n={series:[],i:[]},o={series:[],i:[]},l={series:[],i:[]},c={series:[],i:[]},h={series:[],i:[]},d={series:[],i:[]},u={series:[],i:[]},g={series:[],seriesRangeEnd:[],i:[]};s.series.map((function(e,p){var f=0;void 0!==t[p].type?("column"===t[p].type||"bar"===t[p].type?(s.series.length>1&&a.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),c.series.push(e),c.i.push(p),f++,i.globals.columnSeries=c.series):"area"===t[p].type?(n.series.push(e),n.i.push(p),f++):"line"===t[p].type?(r.series.push(e),r.i.push(p),f++):"scatter"===t[p].type?(o.series.push(e),o.i.push(p)):"bubble"===t[p].type?(l.series.push(e),l.i.push(p),f++):"candlestick"===t[p].type?(h.series.push(e),h.i.push(p),f++):"boxPlot"===t[p].type?(d.series.push(e),d.i.push(p),f++):"rangeBar"===t[p].type?(u.series.push(e),u.i.push(p),f++):"rangeArea"===t[p].type?(g.series.push(s.seriesRangeStart[p]),g.seriesRangeEnd.push(s.seriesRangeEnd[p]),g.i.push(p),f++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble/candlestick/boxPlot/rangeBar/rangeArea"),f>1&&(s.comboCharts=!0)):(r.series.push(e),r.i.push(p))}));var p=new Yt(this.ctx,e),f=new St(this.ctx,e);this.ctx.pie=new Tt(this.ctx);var x=new Et(this.ctx);this.ctx.rangeBar=new zt(this.ctx,e);var m=new Mt(this.ctx),b=[];if(s.comboCharts){if(n.series.length>0&&b.push(p.draw(n.series,"area",n.i)),c.series.length>0)if(i.config.chart.stacked){var v=new Ct(this.ctx,e);b.push(v.draw(c.series,c.i))}else this.ctx.bar=new At(this.ctx,e),b.push(this.ctx.bar.draw(c.series,c.i));if(g.series.length>0&&b.push(p.draw(g.series,"rangeArea",g.i,g.seriesRangeEnd)),r.series.length>0&&b.push(p.draw(r.series,"line",r.i)),h.series.length>0&&b.push(f.draw(h.series,"candlestick",h.i)),d.series.length>0&&b.push(f.draw(d.series,"boxPlot",d.i)),u.series.length>0&&b.push(this.ctx.rangeBar.draw(u.series,u.i)),o.series.length>0){var y=new Yt(this.ctx,e,!0);b.push(y.draw(o.series,"scatter",o.i))}if(l.series.length>0){var w=new Yt(this.ctx,e,!0);b.push(w.draw(l.series,"bubble",l.i))}}else switch(a.chart.type){case"line":b=p.draw(s.series,"line");break;case"area":b=p.draw(s.series,"area");break;case"bar":a.chart.stacked?b=new Ct(this.ctx,e).draw(s.series):(this.ctx.bar=new At(this.ctx,e),b=this.ctx.bar.draw(s.series));break;case"candlestick":b=new St(this.ctx,e).draw(s.series,"candlestick");break;case"boxPlot":b=new St(this.ctx,e).draw(s.series,a.chart.type);break;case"rangeBar":b=this.ctx.rangeBar.draw(s.series);break;case"rangeArea":b=p.draw(s.seriesRangeStart,"rangeArea",void 0,s.seriesRangeEnd);break;case"heatmap":b=new Pt(this.ctx,e).draw(s.series);break;case"treemap":b=new Dt(this.ctx,e).draw(s.series);break;case"pie":case"donut":case"polarArea":b=this.ctx.pie.draw(s.series);break;case"radialBar":b=x.draw(s.series);break;case"radar":b=m.draw(s.series);break;default:b=p.draw(s.series)}return b}},{key:"setSVGDimensions",value:function(){var t=this.w.globals,e=this.w.config;t.svgWidth=e.chart.width,t.svgHeight=e.chart.height;var i=v.getDimensions(this.el),a=e.chart.width.toString().split(/[0-9]+/g).pop();"%"===a?v.isNumber(i[0])&&(0===i[0].width&&(i=v.getDimensions(this.el.parentNode)),t.svgWidth=i[0]*parseInt(e.chart.width,10)/100):"px"!==a&&""!==a||(t.svgWidth=parseInt(e.chart.width,10));var s=e.chart.height.toString().split(/[0-9]+/g).pop();if("auto"!==t.svgHeight&&""!==t.svgHeight)if("%"===s){var r=v.getDimensions(this.el.parentNode);t.svgHeight=r[1]*parseInt(e.chart.height,10)/100}else t.svgHeight=parseInt(e.chart.height,10);else t.axisCharts?t.svgHeight=t.svgWidth/1.61:t.svgHeight=t.svgWidth/1.2;if(t.svgWidth<0&&(t.svgWidth=0),t.svgHeight<0&&(t.svgHeight=0),k.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),"%"!==s){var n=e.chart.sparkline.enabled?0:t.axisCharts?e.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight=t.svgHeight+n+"px"}t.dom.elWrap.style.width=t.svgWidth+"px",t.dom.elWrap.style.height=t.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var t=this.w.globals,e=t.translateY,i={transform:"translate("+t.translateX+", "+e+")"};k.setAttrs(t.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=0,a=t.config.chart.sparkline.enabled?1:15;a+=t.config.grid.padding.bottom,"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||!t.config.legend.show||t.config.legend.floating||(i=new dt(this.ctx).legendHelpers.getLegendBBox().clwh+10);var s=t.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),r=2.05*t.globals.radialSize;if(s&&!t.config.chart.sparkline.enabled&&0!==t.config.plotOptions.radialBar.startAngle){var n=v.getBoundingClientRect(s);r=n.bottom;var o=n.bottom-n.top;r=Math.max(2.05*t.globals.radialSize,o)}var l=r+e.translateY+i+a;e.dom.elLegendForeign&&e.dom.elLegendForeign.setAttribute("height",l),t.config.chart.height&&String(t.config.chart.height).indexOf("%")>0||(e.dom.elWrap.style.height=l+"px",k.setAttrs(e.dom.Paper.node,{height:l}),e.dom.Paper.node.parentNode.parentNode.style.minHeight=l+"px")}},{key:"coreCalculations",value:function(){new Z(this.ctx).init()}},{key:"resetGlobals",value:function(){var t=this,e=function(){return t.w.config.series.map((function(t){return[]}))},i=new Y,a=this.w.globals;i.initGlobalVars(a),a.seriesXvalues=e(),a.seriesYvalues=e()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var t=null,e=this.w;if(e.globals.axisCharts){if("back"===e.config.xaxis.crosshairs.position&&new et(this.ctx).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new et(this.ctx).drawYCrosshairs(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter){this.ctx.timeScale=new Wt(this.ctx);var i=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}t=new A(this.ctx).getCalculatedRatios()}return t}},{key:"updateSourceChart",value:function(t){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:t.w.globals.minX,max:t.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var t=this,e=this.w;if(e.config.chart.brush.enabled&&"function"!=typeof e.config.chart.events.selection){var i=Array.isArray(e.config.chart.brush.targets)||[e.config.chart.brush.target];i.forEach((function(e){var i=ApexCharts.getChartByID(e);i.w.globals.brushSource=t.ctx,"function"!=typeof i.w.config.chart.events.zoomed&&(i.w.config.chart.events.zoomed=function(){t.updateSourceChart(i)}),"function"!=typeof i.w.config.chart.events.scrolled&&(i.w.config.chart.events.scrolled=function(){t.updateSourceChart(i)})})),e.config.chart.events.selection=function(t,a){i.forEach((function(t){var i=ApexCharts.getChartByID(t),s=v.clone(e.config.yaxis);if(e.config.chart.brush.autoScaleYaxis&&1===i.w.globals.series.length){var n=new q(i);s=n.autoScaleY(i,s,a)}var o=i.w.config.yaxis.reduce((function(t,e,a){return[].concat(x(t),[r(r({},i.w.config.yaxis[a]),{},{min:s[0].min,max:s[0].max})])}),[]);i.ctx.updateHelpers._updateOptions({xaxis:{min:a.xaxis.min,max:a.xaxis.max},yaxis:o},!1,!1,!1,!1)}))}}}}]),t}(),$t=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"_updateOptions",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise((function(o){var l=[e.ctx];s&&(l=e.ctx.getSyncedCharts()),e.ctx.w.globals.isExecCalled&&(l=[e.ctx],e.ctx.w.globals.isExecCalled=!1),l.forEach((function(s,c){var h=s.w;if(h.globals.shouldAnimate=a,i||(h.globals.resized=!0,h.globals.dataChanged=!0,a&&s.series.getPreviousPaths()),t&&"object"===n(t)&&(s.config=new F(t),t=A.extendArrayProps(s.config,t,h),s.w.globals.chartID!==e.ctx.w.globals.chartID&&delete t.series,h.config=v.extend(h.config,t),r&&(h.globals.lastXAxis=t.xaxis?v.clone(t.xaxis):[],h.globals.lastYAxis=t.yaxis?v.clone(t.yaxis):[],h.globals.initialConfig=v.extend({},h.config),h.globals.initialSeries=v.clone(h.config.series),t.series))){for(var d=0;d<h.globals.collapsedSeriesIndices.length;d++){var u=h.config.series[h.globals.collapsedSeriesIndices[d]];h.globals.collapsedSeries[d].data=h.globals.axisCharts?u.data.slice():u}for(var g=0;g<h.globals.ancillaryCollapsedSeriesIndices.length;g++){var p=h.config.series[h.globals.ancillaryCollapsedSeriesIndices[g]];h.globals.ancillaryCollapsedSeries[g].data=h.globals.axisCharts?p.data.slice():p}s.series.emptyCollapsedSeries(h.config.series)}return s.update(t).then((function(){c===l.length-1&&o(s)}))}))}))}},{key:"_updateSeries",value:function(t,e){var i=this,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(s){var r,n=i.w;return n.globals.shouldAnimate=e,n.globals.dataChanged=!0,e&&i.ctx.series.getPreviousPaths(),n.globals.axisCharts?(0===(r=t.map((function(t,e){return i._extendSeries(t,e)}))).length&&(r=[{data:[]}]),n.config.series=r):n.config.series=t.slice(),a&&(n.globals.initialConfig.series=v.clone(n.config.series),n.globals.initialSeries=v.clone(n.config.series)),i.ctx.update().then((function(){s(i.ctx)}))}))}},{key:"_extendSeries",value:function(t,e){var i=this.w,a=i.config.series[e];return r(r({},i.config.series[e]),{},{name:t.name?t.name:null==a?void 0:a.name,color:t.color?t.color:null==a?void 0:a.color,type:t.type?t.type:null==a?void 0:a.type,group:t.group?t.group:null==a?void 0:a.group,data:t.data?t.data:null==a?void 0:a.data,zIndex:void 0!==t.zIndex?t.zIndex:e})}},{key:"toggleDataPointSelection",value:function(t,e){var i=this.w,a=null,s=".apexcharts-series[data\\:realIndex='".concat(t,"']");return i.globals.axisCharts?a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(e,"'], ").concat(s," circle[j='").concat(e,"'], ").concat(s," rect[j='").concat(e,"']")).members[0]:void 0===e&&(a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(t,"']")).members[0],"pie"!==i.config.chart.type&&"polarArea"!==i.config.chart.type&&"donut"!==i.config.chart.type||this.ctx.pie.pieClicked(t)),a?(new k(this.ctx).pathMouseDown(a,null),a.node?a.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(t){var e=this.w;if(["min","max"].forEach((function(i){void 0!==t.xaxis[i]&&(e.config.xaxis[i]=t.xaxis[i],e.globals.lastXAxis[i]=t.xaxis[i])})),t.xaxis.categories&&t.xaxis.categories.length&&(e.config.xaxis.categories=t.xaxis.categories),e.config.xaxis.convertedCatToNumeric){var i=new R(t);t=i.convertCatToNumericXaxis(t,this.ctx)}return t}},{key:"forceYAxisUpdate",value:function(t){return t.chart&&t.chart.stacked&&"100%"===t.chart.stackType&&(Array.isArray(t.yaxis)?t.yaxis.forEach((function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100})):(t.yaxis.min=0,t.yaxis.max=100)),t}},{key:"revertDefaultAxisMinMax",value:function(t){var e=this,i=this.w,a=i.globals.lastXAxis,s=i.globals.lastYAxis;t&&t.xaxis&&(a=t.xaxis),t&&t.yaxis&&(s=t.yaxis),i.config.xaxis.min=a.min,i.config.xaxis.max=a.max,i.config.yaxis.map((function(t,a){i.globals.zoomed||void 0!==s[a]?function(t){void 0!==s[t]&&(i.config.yaxis[t].min=s[t].min,i.config.yaxis[t].max=s[t].max)}(a):void 0!==e.ctx.opts.yaxis[a]&&(t.min=e.ctx.opts.yaxis[a].min,t.max=e.ctx.opts.yaxis[a].max)}))}}]),t}();Ht="undefined"!=typeof window?window:void 0,Nt=function(t,e){var i=(void 0!==this?this:t).SVG=function(t){if(i.supported)return t=new i.Doc(t),i.parser.draw||i.prepare(),t};if(i.ns="http://www.w3.org/2000/svg",i.xmlns="http://www.w3.org/2000/xmlns/",i.xlink="http://www.w3.org/1999/xlink",i.svgjs="http://svgjs.dev",i.supported=!0,!i.supported)return!1;i.did=1e3,i.eid=function(t){return"Svgjs"+d(t)+i.did++},i.create=function(t){var i=e.createElementNS(this.ns,t);return i.setAttribute("id",this.eid(t)),i},i.extend=function(){var t,e;e=(t=[].slice.call(arguments)).pop();for(var a=t.length-1;a>=0;a--)if(t[a])for(var s in e)t[a].prototype[s]=e[s];i.Set&&i.Set.inherit&&i.Set.inherit()},i.invent=function(t){var e="function"==typeof t.create?t.create:function(){this.constructor.call(this,i.create(t.create))};return t.inherit&&(e.prototype=new t.inherit),t.extend&&i.extend(e,t.extend),t.construct&&i.extend(t.parent||i.Container,t.construct),e},i.adopt=function(e){return e?e.instance?e.instance:((a="svg"==e.nodeName?e.parentNode instanceof t.SVGElement?new i.Nested:new i.Doc:"linearGradient"==e.nodeName?new i.Gradient("linear"):"radialGradient"==e.nodeName?new i.Gradient("radial"):i[d(e.nodeName)]?new(i[d(e.nodeName)]):new i.Element(e)).type=e.nodeName,a.node=e,e.instance=a,a instanceof i.Doc&&a.namespace().defs(),a.setData(JSON.parse(e.getAttribute("svgjs:data"))||{}),a):null;var a},i.prepare=function(){var t=e.getElementsByTagName("body")[0],a=(t?new i.Doc(t):i.adopt(e.documentElement).nested()).size(2,0);i.parser={body:t||e.documentElement,draw:a.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:a.polyline().node,path:a.path().node,native:i.create("svg")}},i.parser={native:i.create("svg")},e.addEventListener("DOMContentLoaded",(function(){i.parser.draw||i.prepare()}),!1),i.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},i.utils={map:function(t,e){for(var i=t.length,a=[],s=0;s<i;s++)a.push(e(t[s]));return a},filter:function(t,e){for(var i=t.length,a=[],s=0;s<i;s++)e(t[s])&&a.push(t[s]);return a},filterSVGElements:function(e){return this.filter(e,(function(e){return e instanceof t.SVGElement}))}},i.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},i.Color=function(t){var e,a;this.r=0,this.g=0,this.b=0,t&&("string"==typeof t?i.regex.isRgb.test(t)?(e=i.regex.rgb.exec(t.replace(i.regex.whitespace,"")),this.r=parseInt(e[1]),this.g=parseInt(e[2]),this.b=parseInt(e[3])):i.regex.isHex.test(t)&&(e=i.regex.hex.exec(4==(a=t).length?["#",a.substring(1,2),a.substring(1,2),a.substring(2,3),a.substring(2,3),a.substring(3,4),a.substring(3,4)].join(""):a),this.r=parseInt(e[1],16),this.g=parseInt(e[2],16),this.b=parseInt(e[3],16)):"object"===n(t)&&(this.r=t.r,this.g=t.g,this.b=t.b))},i.extend(i.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+u(this.r)+u(this.g)+u(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(t){return this.destination=new i.Color(t),this},at:function(t){return this.destination?(t=t<0?0:t>1?1:t,new i.Color({r:~~(this.r+(this.destination.r-this.r)*t),g:~~(this.g+(this.destination.g-this.g)*t),b:~~(this.b+(this.destination.b-this.b)*t)})):this}}),i.Color.test=function(t){return t+="",i.regex.isHex.test(t)||i.regex.isRgb.test(t)},i.Color.isRgb=function(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b},i.Color.isColor=function(t){return i.Color.isRgb(t)||i.Color.test(t)},i.Array=function(t,e){0==(t=(t||[]).valueOf()).length&&e&&(t=e.valueOf()),this.value=this.parse(t)},i.extend(i.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(t){return t=t.valueOf(),Array.isArray(t)?t:this.split(t)}}),i.PointArray=function(t,e){i.Array.call(this,t,e||[[0,0]])},i.PointArray.prototype=new i.Array,i.PointArray.prototype.constructor=i.PointArray;for(var a={M:function(t,e,i){return e.x=i.x=t[0],e.y=i.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Z:function(t,e,i){return e.x=i.x,e.y=i.y,["Z"]}},s="mlhvqtcsaz".split(""),r=0,o=s.length;r<o;++r)a[s[r]]=function(t){return function(e,i,s){if("H"==t)e[0]=e[0]+i.x;else if("V"==t)e[0]=e[0]+i.y;else if("A"==t)e[5]=e[5]+i.x,e[6]=e[6]+i.y;else for(var r=0,n=e.length;r<n;++r)e[r]=e[r]+(r%2?i.y:i.x);if(a&&"function"==typeof a[t])return a[t](e,i,s)}}(s[r].toUpperCase());i.PathArray=function(t,e){i.Array.call(this,t,e||[["M",0,0]])},i.PathArray.prototype=new i.Array,i.PathArray.prototype.constructor=i.PathArray,i.extend(i.PathArray,{toString:function(){return function(t){for(var e=0,i=t.length,a="";e<i;e++)a+=t[e][0],null!=t[e][1]&&(a+=t[e][1],null!=t[e][2]&&(a+=" ",a+=t[e][2],null!=t[e][3]&&(a+=" ",a+=t[e][3],a+=" ",a+=t[e][4],null!=t[e][5]&&(a+=" ",a+=t[e][5],a+=" ",a+=t[e][6],null!=t[e][7]&&(a+=" ",a+=t[e][7])))));return a+" "}(this.value)},move:function(t,e){var i=this.bbox();return i.x,i.y,this},at:function(t){if(!this.destination)return this;for(var e=this.value,a=this.destination.value,s=[],r=new i.PathArray,n=0,o=e.length;n<o;n++){s[n]=[e[n][0]];for(var l=1,c=e[n].length;l<c;l++)s[n][l]=e[n][l]+(a[n][l]-e[n][l])*t;"A"===s[n][0]&&(s[n][4]=+(0!=s[n][4]),s[n][5]=+(0!=s[n][5]))}return r.value=s,r},parse:function(t){if(t instanceof i.PathArray)return t.valueOf();var e,s={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};t="string"==typeof t?t.replace(i.regex.numbersWithDots,c).replace(i.regex.pathLetters," $& ").replace(i.regex.hyphen,"$1 -").trim().split(i.regex.delimiter):t.reduce((function(t,e){return[].concat.call(t,e)}),[]);var r=[],n=new i.Point,o=new i.Point,l=0,h=t.length;do{i.regex.isPathLetter.test(t[l])?(e=t[l],++l):"M"==e?e="L":"m"==e&&(e="l"),r.push(a[e].call(null,t.slice(l,l+=s[e.toUpperCase()]).map(parseFloat),n,o))}while(h>l);return r},bbox:function(){return i.parser.draw||i.prepare(),i.parser.path.setAttribute("d",this.toString()),i.parser.path.getBBox()}}),i.Number=i.invent({create:function(t,e){this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(i.regex.numberAndUnit))&&(this.value=parseFloat(e[1]),"%"==e[5]?this.value/=100:"s"==e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof i.Number&&(this.value=t.valueOf(),this.unit=t.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(t){return t=new i.Number(t),new i.Number(this+t,this.unit||t.unit)},minus:function(t){return t=new i.Number(t),new i.Number(this-t,this.unit||t.unit)},times:function(t){return t=new i.Number(t),new i.Number(this*t,this.unit||t.unit)},divide:function(t){return t=new i.Number(t),new i.Number(this/t,this.unit||t.unit)},to:function(t){var e=new i.Number(this);return"string"==typeof t&&(e.unit=t),e},morph:function(t){return this.destination=new i.Number(t),t.relative&&(this.destination.value+=this.value),this},at:function(t){return this.destination?new i.Number(this.destination).minus(this).times(t).plus(this):this}}}),i.Element=i.invent({create:function(t){this._stroke=i.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=t)&&(this.type=t.nodeName,this.node.instance=this,this._stroke=t.getAttribute("stroke")||this._stroke)},extend:{x:function(t){return this.attr("x",t)},y:function(t){return this.attr("y",t)},cx:function(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)},cy:function(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)},move:function(t,e){return this.x(t).y(e)},center:function(t,e){return this.cx(t).cy(e)},width:function(t){return this.attr("width",t)},height:function(t){return this.attr("height",t)},size:function(t,e){var a=g(this,t,e);return this.width(new i.Number(a.width)).height(new i.Number(a.height))},clone:function(t){this.writeDataToDom();var e=x(this.node.cloneNode(!0));return t?t.add(e):this.after(e),e},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(t){return this.after(t).remove(),t},addTo:function(t){return t.put(this)},putIn:function(t){return t.add(this)},id:function(t){return this.attr("id",t)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var t=this.attr("class");return null==t?[]:t.trim().split(i.regex.delimiter)},hasClass:function(t){return-1!=this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){var e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(e){return e!=t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)},reference:function(t){return i.get(this.attr(t))},parent:function(e){var a=this;if(!a.node.parentNode)return null;if(a=i.adopt(a.node.parentNode),!e)return a;for(;a&&a.node instanceof t.SVGElement;){if("string"==typeof e?a.matches(e):a instanceof e)return a;if(!a.node.parentNode||"#document"==a.node.parentNode.nodeName)return null;a=i.adopt(a.node.parentNode)}},doc:function(){return this instanceof i.Doc?this:this.parent(i.Doc)},parents:function(t){var e=[],i=this;do{if(!(i=i.parent(t))||!i.node)break;e.push(i)}while(i.parent);return e},matches:function(t){return function(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector).call(t,e)}(this.node,t)},native:function(){return this.node},svg:function(t){var a=e.createElement("svg");if(!(t&&this instanceof i.Parent))return a.appendChild(t=e.createElement("svg")),this.writeDataToDom(),t.appendChild(this.node.cloneNode(!0)),a.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");a.innerHTML="<svg>"+t.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var s=0,r=a.firstChild.childNodes.length;s<r;s++)this.node.appendChild(a.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each((function(){this.writeDataToDom()})),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(t){return this.dom=t,this},is:function(t){return function(t,e){return t instanceof e}(this,t)}}}),i.easing={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)}},i.morph=function(t){return function(e,a){return new i.MorphObj(e,a).at(t)}},i.Situation=i.invent({create:function(t){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new i.Number(t.duration).valueOf(),this.delay=new i.Number(t.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=t.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),i.FX=i.invent({create:function(t){this._target=t,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(t,e,a){"object"===n(t)&&(e=t.ease,a=t.delay,t=t.duration);var s=new i.Situation({duration:t||1e3,delay:a||0,ease:i.easing[e||"-"]||e});return this.queue(s),this},target:function(t){return t&&t instanceof i.Element?(this._target=t,this):this._target},timeToAbsPos:function(t){return(t-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(t){return this.situation.duration/this._speed*t+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=t.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){t.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(t){return("function"==typeof t||t instanceof i.Situation)&&this.situations.push(t),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof i.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var t,e=this.situation;if(e.init)return this;for(var a in e.animations){t=this.target()[a](),Array.isArray(t)||(t=[t]),Array.isArray(e.animations[a])||(e.animations[a]=[e.animations[a]]);for(var s=t.length;s--;)e.animations[a][s]instanceof i.Number&&(t[s]=new i.Number(t[s])),e.animations[a][s]=t[s].morph(e.animations[a][s])}for(var a in e.attrs)e.attrs[a]=new i.MorphObj(this.target().attr(a),e.attrs[a]);for(var a in e.styles)e.styles[a]=new i.MorphObj(this.target().style(a),e.styles[a]);return e.initialTransformation=this.target().matrixify(),e.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(t,e){var i=this.active;return this.active=!1,e&&this.clearQueue(),t&&this.situation&&(!i&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(t){var e=this.last();return this.target().on("finished.fx",(function i(a){a.detail.situation==e&&(t.call(this,e),this.off("finished.fx",i))})),this._callStart()},during:function(t){var e=this.last(),a=function(a){a.detail.situation==e&&t.call(this,a.detail.pos,i.morph(a.detail.pos),a.detail.eased,e)};return this.target().off("during.fx",a).on("during.fx",a),this.after((function(){this.off("during.fx",a)})),this._callStart()},afterAll:function(t){var e=function e(i){t.call(this),this.off("allfinished.fx",e)};return this.target().off("allfinished.fx",e).on("allfinished.fx",e),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(t,e,i){return this.last()[i||"animations"][t]=e,this._callStart()},step:function(t){var e,i,a;t||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(e=Math.max(this.absPos,0),i=Math.floor(e),!0===this.situation.loops||i<this.situation.loops?(this.pos=e-i,a=this.situation.loop,this.situation.loop=i):(this.absPos=this.situation.loops,this.pos=1,a=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=Boolean((this.situation.loop-a)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var s=this.situation.ease(this.pos);for(var r in this.situation.once)r>this.lastPos&&r<=s&&(this.situation.once[r].call(this.target(),this.pos,s),delete this.situation.once[r]);return this.active&&this.target().fire("during",{pos:this.pos,eased:s,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=s,this):this},eachAt:function(){var t,e=this,a=this.target(),s=this.situation;for(var r in s.animations)t=[].concat(s.animations[r]).map((function(t){return"string"!=typeof t&&t.at?t.at(s.ease(e.pos),e.pos):t})),a[r].apply(a,t);for(var r in s.attrs)t=[r].concat(s.attrs[r]).map((function(t){return"string"!=typeof t&&t.at?t.at(s.ease(e.pos),e.pos):t})),a.attr.apply(a,t);for(var r in s.styles)t=[r].concat(s.styles[r]).map((function(t){return"string"!=typeof t&&t.at?t.at(s.ease(e.pos),e.pos):t})),a.style.apply(a,t);if(s.transforms.length){t=s.initialTransformation,r=0;for(var n=s.transforms.length;r<n;r++){var o=s.transforms[r];o instanceof i.Matrix?t=o.relative?t.multiply((new i.Matrix).morph(o).at(s.ease(this.pos))):t.morph(o).at(s.ease(this.pos)):(o.relative||o.undo(t.extract()),t=t.multiply(o.at(s.ease(this.pos))))}a.matrix(t)}return this},once:function(t,e,i){var a=this.last();return i||(t=a.ease(t)),a.once[t]=e,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:i.Element,construct:{animate:function(t,e,a){return(this.fx||(this.fx=new i.FX(this))).animate(t,e,a)},delay:function(t){return(this.fx||(this.fx=new i.FX(this))).delay(t)},stop:function(t,e){return this.fx&&this.fx.stop(t,e),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),i.MorphObj=i.invent({create:function(t,e){return i.Color.isColor(e)?new i.Color(t).morph(e):i.regex.delimiter.test(t)?i.regex.pathLetters.test(t)?new i.PathArray(t).morph(e):new i.Array(t).morph(e):i.regex.numberAndUnit.test(e)?new i.Number(t).morph(e):(this.value=t,void(this.destination=e))},extend:{at:function(t,e){return e<1?this.value:this.destination},valueOf:function(){return this.value}}}),i.extend(i.FX,{attr:function(t,e,i){if("object"===n(t))for(var a in t)this.attr(a,t[a]);else this.add(t,e,"attrs");return this},plot:function(t,e,i,a){return 4==arguments.length?this.plot([t,e,i,a]):this.add("plot",new(this.target().morphArray)(t))}}),i.Box=i.invent({create:function(t,e,a,s){if(!("object"!==n(t)||t instanceof i.Element))return i.Box.call(this,null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height);var r;4==arguments.length&&(this.x=t,this.y=e,this.width=a,this.height=s),null==(r=this).x&&(r.x=0,r.y=0,r.width=0,r.height=0),r.w=r.width,r.h=r.height,r.x2=r.x+r.width,r.y2=r.y+r.height,r.cx=r.x+r.width/2,r.cy=r.y+r.height/2}}),i.BBox=i.invent({create:function(t){if(i.Box.apply(this,[].slice.call(arguments)),t instanceof i.Element){var a;try{if(!e.documentElement.contains){for(var s=t.node;s.parentNode;)s=s.parentNode;if(s!=e)throw new Error("Element not in the dom")}a=t.node.getBBox()}catch(e){if(t instanceof i.Shape){i.parser.draw||i.prepare();var r=t.clone(i.parser.draw.instance).show();r&&r.node&&"function"==typeof r.node.getBBox&&(a=r.node.getBBox()),r&&"function"==typeof r.remove&&r.remove()}else a={x:t.node.clientLeft,y:t.node.clientTop,width:t.node.clientWidth,height:t.node.clientHeight}}i.Box.call(this,a)}},inherit:i.Box,parent:i.Element,construct:{bbox:function(){return new i.BBox(this)}}}),i.BBox.prototype.constructor=i.BBox,i.Matrix=i.invent({create:function(t){var e=f([1,0,0,1,0,0]);t=null===t?e:t instanceof i.Element?t.matrixify():"string"==typeof t?f(t.split(i.regex.delimiter).map(parseFloat)):6==arguments.length?f([].slice.call(arguments)):Array.isArray(t)?f(t):t&&"object"===n(t)?t:e;for(var a=b.length-1;a>=0;--a)this[b[a]]=null!=t[b[a]]?t[b[a]]:e[b[a]]},extend:{extract:function(){var t=p(this,0,1);p(this,1,0);var e=180/Math.PI*Math.atan2(t.y,t.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(e*Math.PI/180)+this.f*Math.sin(e*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(e*Math.PI/180)+this.e*Math.sin(-e*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new i.Matrix(this)}},clone:function(){return new i.Matrix(this)},morph:function(t){return this.destination=new i.Matrix(t),this},multiply:function(t){return new i.Matrix(this.native().multiply(function(t){return t instanceof i.Matrix||(t=new i.Matrix(t)),t}(t).native()))},inverse:function(){return new i.Matrix(this.native().inverse())},translate:function(t,e){return new i.Matrix(this.native().translate(t||0,e||0))},native:function(){for(var t=i.parser.native.createSVGMatrix(),e=b.length-1;e>=0;e--)t[b[e]]=this[b[e]];return t},toString:function(){return"matrix("+m(this.a)+","+m(this.b)+","+m(this.c)+","+m(this.d)+","+m(this.e)+","+m(this.f)+")"}},parent:i.Element,construct:{ctm:function(){return new i.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof i.Nested){var t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new i.Matrix(e)}return new i.Matrix(this.node.getScreenCTM())}}}),i.Point=i.invent({create:function(t,e){var i;i=Array.isArray(t)?{x:t[0],y:t[1]}:"object"===n(t)?{x:t.x,y:t.y}:null!=t?{x:t,y:null!=e?e:t}:{x:0,y:0},this.x=i.x,this.y=i.y},extend:{clone:function(){return new i.Point(this)},morph:function(t,e){return this.destination=new i.Point(t,e),this}}}),i.extend(i.Element,{point:function(t,e){return new i.Point(t,e).transform(this.screenCTM().inverse())}}),i.extend(i.Element,{attr:function(t,e,a){if(null==t){for(t={},a=(e=this.node.attributes).length-1;a>=0;a--)t[e[a].nodeName]=i.regex.isNumber.test(e[a].nodeValue)?parseFloat(e[a].nodeValue):e[a].nodeValue;return t}if("object"===n(t))for(var s in t)this.attr(s,t[s]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?i.defaults.attrs[t]:i.regex.isNumber.test(e)?parseFloat(e):e;"stroke-width"==t?this.attr("stroke",parseFloat(e)>0?this._stroke:null):"stroke"==t&&(this._stroke=e),"fill"!=t&&"stroke"!=t||(i.regex.isImage.test(e)&&(e=this.doc().defs().image(e,0,0)),e instanceof i.Image&&(e=this.doc().defs().pattern(0,0,(function(){this.add(e)})))),"number"==typeof e?e=new i.Number(e):i.Color.isColor(e)?e=new i.Color(e):Array.isArray(e)&&(e=new i.Array(e)),"leading"==t?this.leading&&this.leading(e):"string"==typeof a?this.node.setAttributeNS(a,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!=t&&"x"!=t||this.rebuild(t,e)}return this}}),i.extend(i.Element,{transform:function(t,e){var a;return"object"!==n(t)?(a=new i.Matrix(this).extract(),"string"==typeof t?a[t]:a):(a=new i.Matrix(this),e=!!e||!!t.relative,null!=t.a&&(a=e?a.multiply(new i.Matrix(t)):new i.Matrix(t)),this.attr("transform",a))}}),i.extend(i.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(i.regex.transforms).slice(0,-1).map((function(t){var e=t.trim().split("(");return[e[0],e[1].split(i.regex.delimiter).map((function(t){return parseFloat(t)}))]})).reduce((function(t,e){return"matrix"==e[0]?t.multiply(f(e[1])):t[e[0]].apply(t,e[1])}),new i.Matrix)},toParent:function(t){if(this==t)return this;var e=this.screenCTM(),i=t.screenCTM().inverse();return this.addTo(t).untransform().transform(i.multiply(e)),this},toDoc:function(){return this.toParent(this.doc())}}),i.Transformation=i.invent({create:function(t,e){if(arguments.length>1&&"boolean"!=typeof e)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(t))for(var i=0,a=this.arguments.length;i<a;++i)this[this.arguments[i]]=t[i];else if(t&&"object"===n(t))for(i=0,a=this.arguments.length;i<a;++i)this[this.arguments[i]]=t[this.arguments[i]];this.inversed=!1,!0===e&&(this.inversed=!0)}}),i.Translate=i.invent({parent:i.Matrix,inherit:i.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),i.extend(i.Element,{style:function(t,e){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"===n(t))for(var a in t)this.style(a,t[a]);else{if(!i.regex.isCss.test(t))return this.node.style[h(t)];for(t=t.split(/\s*;\s*/).filter((function(t){return!!t})).map((function(t){return t.split(/\s*:\s*/)}));e=t.pop();)this.style(e[0],e[1])}else this.node.style[h(t)]=null===e||i.regex.isBlank.test(e)?"":e;return this}}),i.Parent=i.invent({create:function(t){this.constructor.call(this,t)},inherit:i.Element,extend:{children:function(){return i.utils.map(i.utils.filterSVGElements(this.node.childNodes),(function(t){return i.adopt(t)}))},add:function(t,e){return null==e?this.node.appendChild(t.node):t.node!=this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this},put:function(t,e){return this.add(t,e),t},has:function(t){return this.index(t)>=0},index:function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)},get:function(t){return i.adopt(this.node.childNodes[t])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(t,e){for(var a=this.children(),s=0,r=a.length;s<r;s++)a[s]instanceof i.Element&&t.apply(a[s],[s,a]),e&&a[s]instanceof i.Container&&a[s].each(t,e);return this},removeElement:function(t){return this.node.removeChild(t.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),i.extend(i.Parent,{ungroup:function(t,e){return 0===e||this instanceof i.Defs||this.node==i.parser.draw||(t=t||(this instanceof i.Doc?this:this.parent(i.Parent)),e=e||1/0,this.each((function(){return this instanceof i.Defs?this:this instanceof i.Parent?this.ungroup(t,e-1):this.toParent(t)})),this.node.firstChild||this.remove()),this},flatten:function(t,e){return this.ungroup(t,e)}}),i.Container=i.invent({create:function(t){this.constructor.call(this,t)},inherit:i.Parent}),i.ViewBox=i.invent({parent:i.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach((function(t){i.Element.prototype[t]=function(e){return i.on(this.node,t,e),this}})),i.listeners=[],i.handlerMap=[],i.listenerId=0,i.on=function(t,e,a,s,r){var n=a.bind(s||t.instance||t),o=(i.handlerMap.indexOf(t)+1||i.handlerMap.push(t))-1,l=e.split(".")[0],c=e.split(".")[1]||"*";i.listeners[o]=i.listeners[o]||{},i.listeners[o][l]=i.listeners[o][l]||{},i.listeners[o][l][c]=i.listeners[o][l][c]||{},a._svgjsListenerId||(a._svgjsListenerId=++i.listenerId),i.listeners[o][l][c][a._svgjsListenerId]=n,t.addEventListener(l,n,r||{passive:!0})},i.off=function(t,e,a){var s=i.handlerMap.indexOf(t),r=e&&e.split(".")[0],n=e&&e.split(".")[1],o="";if(-1!=s)if(a){if("function"==typeof a&&(a=a._svgjsListenerId),!a)return;i.listeners[s][r]&&i.listeners[s][r][n||"*"]&&(t.removeEventListener(r,i.listeners[s][r][n||"*"][a],!1),delete i.listeners[s][r][n||"*"][a])}else if(n&&r){if(i.listeners[s][r]&&i.listeners[s][r][n]){for(var l in i.listeners[s][r][n])i.off(t,[r,n].join("."),l);delete i.listeners[s][r][n]}}else if(n)for(var c in i.listeners[s])for(var o in i.listeners[s][c])n===o&&i.off(t,[c,n].join("."));else if(r){if(i.listeners[s][r]){for(var o in i.listeners[s][r])i.off(t,[r,o].join("."));delete i.listeners[s][r]}}else{for(var c in i.listeners[s])i.off(t,c);delete i.listeners[s],delete i.handlerMap[s]}},i.extend(i.Element,{on:function(t,e,a,s){return i.on(this.node,t,e,a,s),this},off:function(t,e){return i.off(this.node,t,e),this},fire:function(e,a){return e instanceof t.Event?this.node.dispatchEvent(e):this.node.dispatchEvent(e=new i.CustomEvent(e,{detail:a,cancelable:!0})),this._event=e,this},event:function(){return this._event}}),i.Defs=i.invent({create:"defs",inherit:i.Container}),i.G=i.invent({create:"g",inherit:i.Container,extend:{x:function(t){return null==t?this.transform("x"):this.transform({x:t-this.x()},!0)}},construct:{group:function(){return this.put(new i.G)}}}),i.Doc=i.invent({create:function(t){t&&("svg"==(t="string"==typeof t?e.getElementById(t):t).nodeName?this.constructor.call(this,t):(this.constructor.call(this,i.create("svg")),t.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:i.Container,extend:{namespace:function(){return this.attr({xmlns:i.ns,version:"1.1"}).attr("xmlns:xlink",i.xlink,i.xmlns).attr("xmlns:svgjs",i.svgjs,i.xmlns)},defs:function(){var t;return this._defs||((t=this.node.getElementsByTagName("defs")[0])?this._defs=i.adopt(t):this._defs=new i.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,i.parser.draw&&!i.parser.draw.parentNode&&this.node.appendChild(i.parser.draw),this},clone:function(t){this.writeDataToDom();var e=this.node,i=x(e.cloneNode(!0));return t?(t.node||t).appendChild(i.node):e.parentNode.insertBefore(i.node,e.nextSibling),i}}}),i.extend(i.Element,{}),i.Gradient=i.invent({create:function(t){this.constructor.call(this,i.create(t+"Gradient")),this.type=t},inherit:i.Container,extend:{at:function(t,e,a){return this.put(new i.Stop).update(t,e,a)},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(t,e,a){return"transform"==t&&(t="gradientTransform"),i.Container.prototype.attr.call(this,t,e,a)}},construct:{gradient:function(t,e){return this.defs().gradient(t,e)}}}),i.extend(i.Gradient,i.FX,{from:function(t,e){return"radial"==(this._target||this).type?this.attr({fx:new i.Number(t),fy:new i.Number(e)}):this.attr({x1:new i.Number(t),y1:new i.Number(e)})},to:function(t,e){return"radial"==(this._target||this).type?this.attr({cx:new i.Number(t),cy:new i.Number(e)}):this.attr({x2:new i.Number(t),y2:new i.Number(e)})}}),i.extend(i.Defs,{gradient:function(t,e){return this.put(new i.Gradient(t)).update(e)}}),i.Stop=i.invent({create:"stop",inherit:i.Element,extend:{update:function(t){return("number"==typeof t||t instanceof i.Number)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new i.Number(t.offset)),this}}}),i.Pattern=i.invent({create:"pattern",inherit:i.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},toString:function(){return this.fill()},attr:function(t,e,a){return"transform"==t&&(t="patternTransform"),i.Container.prototype.attr.call(this,t,e,a)}},construct:{pattern:function(t,e,i){return this.defs().pattern(t,e,i)}}}),i.extend(i.Defs,{pattern:function(t,e,a){return this.put(new i.Pattern).update(a).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}}),i.Shape=i.invent({create:function(t){this.constructor.call(this,t)},inherit:i.Element}),i.Symbol=i.invent({create:"symbol",inherit:i.Container,construct:{symbol:function(){return this.put(new i.Symbol)}}}),i.Use=i.invent({create:"use",inherit:i.Shape,extend:{element:function(t,e){return this.attr("href",(e||"")+"#"+t,i.xlink)}},construct:{use:function(t,e){return this.put(new i.Use).element(t,e)}}}),i.Rect=i.invent({create:"rect",inherit:i.Shape,construct:{rect:function(t,e){return this.put(new i.Rect).size(t,e)}}}),i.Circle=i.invent({create:"circle",inherit:i.Shape,construct:{circle:function(t){return this.put(new i.Circle).rx(new i.Number(t).divide(2)).move(0,0)}}}),i.extend(i.Circle,i.FX,{rx:function(t){return this.attr("r",t)},ry:function(t){return this.rx(t)}}),i.Ellipse=i.invent({create:"ellipse",inherit:i.Shape,construct:{ellipse:function(t,e){return this.put(new i.Ellipse).size(t,e).move(0,0)}}}),i.extend(i.Ellipse,i.Rect,i.FX,{rx:function(t){return this.attr("rx",t)},ry:function(t){return this.attr("ry",t)}}),i.extend(i.Circle,i.Ellipse,{x:function(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())},y:function(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())},cx:function(t){return null==t?this.attr("cx"):this.attr("cx",t)},cy:function(t){return null==t?this.attr("cy"):this.attr("cy",t)},width:function(t){return null==t?2*this.rx():this.rx(new i.Number(t).divide(2))},height:function(t){return null==t?2*this.ry():this.ry(new i.Number(t).divide(2))},size:function(t,e){var a=g(this,t,e);return this.rx(new i.Number(a.width).divide(2)).ry(new i.Number(a.height).divide(2))}}),i.Line=i.invent({create:"line",inherit:i.Shape,extend:{array:function(){return new i.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(t,e,a,s){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:a,y2:s}:new i.PointArray(t).toLine(),this.attr(t))},move:function(t,e){return this.attr(this.array().move(t,e).toLine())},size:function(t,e){var i=g(this,t,e);return this.attr(this.array().size(i.width,i.height).toLine())}},construct:{line:function(t,e,a,s){return i.Line.prototype.plot.apply(this.put(new i.Line),null!=t?[t,e,a,s]:[0,0,0,0])}}}),i.Polyline=i.invent({create:"polyline",inherit:i.Shape,construct:{polyline:function(t){return this.put(new i.Polyline).plot(t||new i.PointArray)}}}),i.Polygon=i.invent({create:"polygon",inherit:i.Shape,construct:{polygon:function(t){return this.put(new i.Polygon).plot(t||new i.PointArray)}}}),i.extend(i.Polyline,i.Polygon,{array:function(){return this._array||(this._array=new i.PointArray(this.attr("points")))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new i.PointArray(t))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("points",this.array().move(t,e))},size:function(t,e){var i=g(this,t,e);return this.attr("points",this.array().size(i.width,i.height))}}),i.extend(i.Line,i.Polyline,i.Polygon,{morphArray:i.PointArray,x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},width:function(t){var e=this.bbox();return null==t?e.width:this.size(t,e.height)},height:function(t){var e=this.bbox();return null==t?e.height:this.size(e.width,t)}}),i.Path=i.invent({create:"path",inherit:i.Shape,extend:{morphArray:i.PathArray,array:function(){return this._array||(this._array=new i.PathArray(this.attr("d")))},plot:function(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new i.PathArray(t))},clear:function(){return delete this._array,this}},construct:{path:function(t){return this.put(new i.Path).plot(t||new i.PathArray)}}}),i.Image=i.invent({create:"image",inherit:i.Shape,extend:{load:function(e){if(!e)return this;var a=this,s=new t.Image;return i.on(s,"load",(function(){i.off(s);var t=a.parent(i.Pattern);null!==t&&(0==a.width()&&0==a.height()&&a.size(s.width,s.height),t&&0==t.width()&&0==t.height()&&t.size(a.width(),a.height()),"function"==typeof a._loaded&&a._loaded.call(a,{width:s.width,height:s.height,ratio:s.width/s.height,url:e}))})),i.on(s,"error",(function(t){i.off(s),"function"==typeof a._error&&a._error.call(a,t)})),this.attr("href",s.src=this.src=e,i.xlink)},loaded:function(t){return this._loaded=t,this},error:function(t){return this._error=t,this}},construct:{image:function(t,e,a){return this.put(new i.Image).load(t).size(e||0,a||e||0)}}}),i.Text=i.invent({create:function(){this.constructor.call(this,i.create("text")),this.dom.leading=new i.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",i.defaults.attrs["font-family"])},inherit:i.Shape,extend:{x:function(t){return null==t?this.attr("x"):this.attr("x",t)},text:function(t){if(void 0===t){t="";for(var e=this.node.childNodes,a=0,s=e.length;a<s;++a)0!=a&&3!=e[a].nodeType&&1==i.adopt(e[a]).dom.newLined&&(t+="\n"),t+=e[a].textContent;return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else{a=0;for(var r=(t=t.split("\n")).length;a<r;a++)this.tspan(t[a]).newLine()}return this.build(!1).rebuild()},size:function(t){return this.attr("font-size",t).rebuild()},leading:function(t){return null==t?this.dom.leading:(this.dom.leading=new i.Number(t),this.rebuild())},lines:function(){var t=(this.textPath&&this.textPath()||this).node,e=i.utils.map(i.utils.filterSVGElements(t.childNodes),(function(t){return i.adopt(t)}));return new i.Set(e)},rebuild:function(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){var e=this,a=0,s=this.dom.leading*new i.Number(this.attr("font-size"));this.lines().each((function(){this.dom.newLined&&(e.textPath()||this.attr("x",e.attr("x")),"\n"==this.text()?a+=s:(this.attr("dy",s+a),a=0))})),this.fire("rebuild")}return this},build:function(t){return this._build=!!t,this},setData:function(t){return this.dom=t,this.dom.leading=new i.Number(t.leading||1.3),this}},construct:{text:function(t){return this.put(new i.Text).text(t)},plain:function(t){return this.put(new i.Text).plain(t)}}}),i.Tspan=i.invent({create:"tspan",inherit:i.Shape,extend:{text:function(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?t.call(this,this):this.plain(t),this)},dx:function(t){return this.attr("dx",t)},dy:function(t){return this.attr("dy",t)},newLine:function(){var t=this.parent(i.Text);return this.dom.newLined=!0,this.dy(t.dom.leading*t.attr("font-size")).attr("x",t.x())}}}),i.extend(i.Text,i.Tspan,{plain:function(t){return!1===this._build&&this.clear(),this.node.appendChild(e.createTextNode(t)),this},tspan:function(t){var e=(this.textPath&&this.textPath()||this).node,a=new i.Tspan;return!1===this._build&&this.clear(),e.appendChild(a.node),a.text(t)},clear:function(){for(var t=(this.textPath&&this.textPath()||this).node;t.hasChildNodes();)t.removeChild(t.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),i.TextPath=i.invent({create:"textPath",inherit:i.Parent,parent:i.Text,construct:{morphArray:i.PathArray,array:function(){var t=this.track();return t?t.array():null},plot:function(t){var e=this.track(),i=null;return e&&(i=e.plot(t)),null==t?i:this},track:function(){var t=this.textPath();if(t)return t.reference("href")},textPath:function(){if(this.node.firstChild&&"textPath"==this.node.firstChild.nodeName)return i.adopt(this.node.firstChild)}}}),i.Nested=i.invent({create:function(){this.constructor.call(this,i.create("svg")),this.style("overflow","visible")},inherit:i.Container,construct:{nested:function(){return this.put(new i.Nested)}}});var l={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"==e?t:t+"-"+e}};function c(t,e,a,s){return a+s.replace(i.regex.dots," .")}function h(t){return t.toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function d(t){return t.charAt(0).toUpperCase()+t.slice(1)}function u(t){var e=t.toString(16);return 1==e.length?"0"+e:e}function g(t,e,i){if(null==e||null==i){var a=t.bbox();null==e?e=a.width/a.height*i:null==i&&(i=a.height/a.width*e)}return{width:e,height:i}}function p(t,e,i){return{x:e*t.a+i*t.c+0,y:e*t.b+i*t.d+0}}function f(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}function x(e){for(var a=e.childNodes.length-1;a>=0;a--)e.childNodes[a]instanceof t.SVGElement&&x(e.childNodes[a]);return i.adopt(e).id(i.eid(e.nodeName))}function m(t){return Math.abs(t)>1e-37?t:0}["fill","stroke"].forEach((function(t){var e={};e[t]=function(e){if(void 0===e)return this;if("string"==typeof e||i.Color.isRgb(e)||e&&"function"==typeof e.fill)this.attr(t,e);else for(var a=l[t].length-1;a>=0;a--)null!=e[l[t][a]]&&this.attr(l.prefix(t,l[t][a]),e[l[t][a]]);return this},i.extend(i.Element,i.FX,e)})),i.extend(i.Element,i.FX,{translate:function(t,e){return this.transform({x:t,y:e})},matrix:function(t){return this.attr("transform",new i.Matrix(6==arguments.length?[].slice.call(arguments):t))},opacity:function(t){return this.attr("opacity",t)},dx:function(t){return this.x(new i.Number(t).plus(this instanceof i.FX?0:this.x()),!0)},dy:function(t){return this.y(new i.Number(t).plus(this instanceof i.FX?0:this.y()),!0)}}),i.extend(i.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(t){return this.node.getPointAtLength(t)}}),i.Set=i.invent({create:function(t){Array.isArray(t)?this.members=t:this.clear()},extend:{add:function(){for(var t=[].slice.call(arguments),e=0,i=t.length;e<i;e++)this.members.push(t[e]);return this},remove:function(t){var e=this.index(t);return e>-1&&this.members.splice(e,1),this},each:function(t){for(var e=0,i=this.members.length;e<i;e++)t.apply(this.members[e],[e,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(t){return this.index(t)>=0},index:function(t){return this.members.indexOf(t)},get:function(t){return this.members[t]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(t){return new i.Set(t)}}}),i.FX.Set=i.invent({create:function(t){this.set=t}}),i.Set.inherit=function(){var t=[];for(var e in i.Shape.prototype)"function"==typeof i.Shape.prototype[e]&&"function"!=typeof i.Set.prototype[e]&&t.push(e);for(var e in t.forEach((function(t){i.Set.prototype[t]=function(){for(var e=0,a=this.members.length;e<a;e++)this.members[e]&&"function"==typeof this.members[e][t]&&this.members[e][t].apply(this.members[e],arguments);return"animate"==t?this.fx||(this.fx=new i.FX.Set(this)):this}})),t=[],i.FX.prototype)"function"==typeof i.FX.prototype[e]&&"function"!=typeof i.FX.Set.prototype[e]&&t.push(e);t.forEach((function(t){i.FX.Set.prototype[t]=function(){for(var e=0,i=this.set.members.length;e<i;e++)this.set.members[e].fx[t].apply(this.set.members[e].fx,arguments);return this}}))},i.extend(i.Element,{}),i.extend(i.Element,{remember:function(t,e){if("object"===n(arguments[0]))for(var i in t)this.remember(i,t[i]);else{if(1==arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory||(this._memory={})}}),i.get=function(t){var a=e.getElementById(function(t){var e=(t||"").toString().match(i.regex.reference);if(e)return e[1]}(t)||t);return i.adopt(a)},i.select=function(t,a){return new i.Set(i.utils.map((a||e).querySelectorAll(t),(function(t){return i.adopt(t)})))},i.extend(i.Parent,{select:function(t){return i.select(t,this.node)}});var b="abcdef".split("");if("function"!=typeof t.CustomEvent){var v=function(t,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var a=e.createEvent("CustomEvent");return a.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),a};v.prototype=t.Event.prototype,i.CustomEvent=v}else i.CustomEvent=t.CustomEvent;return i},void 0!==(a=function(){return Nt(Ht,Ht.document)}.call(e,i,e,t))&&(t.exports=a),function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(t,e){return this.add(t,e),!t.attr("in")&&this.autoSetIn&&t.attr("in",this.source),t.attr("result")||t.attr("result",t),t},blend:function(t,e,i){return this.put(new SVG.BlendEffect(t,e,i))},colorMatrix:function(t,e){return this.put(new SVG.ColorMatrixEffect(t,e))},convolveMatrix:function(t){return this.put(new SVG.ConvolveMatrixEffect(t))},componentTransfer:function(t){return this.put(new SVG.ComponentTransferEffect(t))},composite:function(t,e,i){return this.put(new SVG.CompositeEffect(t,e,i))},flood:function(t,e){return this.put(new SVG.FloodEffect(t,e))},offset:function(t,e){return this.put(new SVG.OffsetEffect(t,e))},image:function(t){return this.put(new SVG.ImageEffect(t))},merge:function(){var t=[void 0];for(var e in arguments)t.push(arguments[e]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,t)))},gaussianBlur:function(t,e){return this.put(new SVG.GaussianBlurEffect(t,e))},morphology:function(t,e){return this.put(new SVG.MorphologyEffect(t,e))},diffuseLighting:function(t,e,i){return this.put(new SVG.DiffuseLightingEffect(t,e,i))},displacementMap:function(t,e,i,a,s){return this.put(new SVG.DisplacementMapEffect(t,e,i,a,s))},specularLighting:function(t,e,i,a){return this.put(new SVG.SpecularLightingEffect(t,e,i,a))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(t,e,i,a,s){return this.put(new SVG.TurbulenceEffect(t,e,i,a,s))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(t){var e=this.put(new SVG.Filter);return"function"==typeof t&&t.call(e,e),e}}),SVG.extend(SVG.Container,{filter:function(t){return this.defs().filter(t)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(t){return this.filterer=t instanceof SVG.Element?t:this.doc().filter(t),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(t){return this.filterer&&!0===t&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}});var t={blend:function(t,e){return this.parent()&&this.parent().blend(this,t,e)},colorMatrix:function(t,e){return this.parent()&&this.parent().colorMatrix(t,e).in(this)},convolveMatrix:function(t){return this.parent()&&this.parent().convolveMatrix(t).in(this)},componentTransfer:function(t){return this.parent()&&this.parent().componentTransfer(t).in(this)},composite:function(t,e){return this.parent()&&this.parent().composite(this,t,e)},flood:function(t,e){return this.parent()&&this.parent().flood(t,e)},offset:function(t,e){return this.parent()&&this.parent().offset(t,e).in(this)},image:function(t){return this.parent()&&this.parent().image(t)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(t,e){return this.parent()&&this.parent().gaussianBlur(t,e).in(this)},morphology:function(t,e){return this.parent()&&this.parent().morphology(t,e).in(this)},diffuseLighting:function(t,e,i){return this.parent()&&this.parent().diffuseLighting(t,e,i).in(this)},displacementMap:function(t,e,i,a){return this.parent()&&this.parent().displacementMap(this,t,e,i,a)},specularLighting:function(t,e,i,a){return this.parent()&&this.parent().specularLighting(t,e,i,a).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(t,e,i,a,s){return this.parent()&&this.parent().turbulence(t,e,i,a,s).in(this)}};SVG.extend(SVG.Effect,t),SVG.extend(SVG.ParentEffect,t),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(t){this.attr("in",t)}}});var e={blend:function(t,e,i){this.attr({in:t,in2:e,mode:i||"normal"})},colorMatrix:function(t,e){"matrix"==t&&(e=s(e)),this.attr({type:t,values:void 0===e?null:e})},convolveMatrix:function(t){t=s(t),this.attr({order:Math.sqrt(t.split(" ").length),kernelMatrix:t})},composite:function(t,e,i){this.attr({in:t,in2:e,operator:i})},flood:function(t,e){this.attr("flood-color",t),null!=e&&this.attr("flood-opacity",e)},offset:function(t,e){this.attr({dx:t,dy:e})},image:function(t){this.attr("href",t,SVG.xlink)},displacementMap:function(t,e,i,a,s){this.attr({in:t,in2:e,scale:i,xChannelSelector:a,yChannelSelector:s})},gaussianBlur:function(t,e){null!=t||null!=e?this.attr("stdDeviation",function(t){if(!Array.isArray(t))return t;for(var e=0,i=t.length,a=[];e<i;e++)a.push(t[e]);return a.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(t,e){this.attr({operator:t,radius:e})},tile:function(){},turbulence:function(t,e,i,a,s){this.attr({numOctaves:e,seed:i,stitchTiles:a,baseFrequency:t,type:s})}},i={merge:function(){var t;if(arguments[0]instanceof SVG.Set){var e=this;arguments[0].each((function(t){this instanceof SVG.MergeNode?e.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&e.put(new SVG.MergeNode(this))}))}else{t=Array.isArray(arguments[0])?arguments[0]:arguments;for(var i=0;i<t.length;i++)t[i]instanceof SVG.MergeNode?this.put(t[i]):this.put(new SVG.MergeNode(t[i]))}},componentTransfer:function(t){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(t){this[t]=new(SVG["Func"+t.toUpperCase()])("identity"),this.rgb.add(this[t]),this.node.appendChild(this[t].node)}.bind(this)),t)for(var e in t.rgb&&(["r","g","b"].forEach(function(e){this[e].attr(t.rgb)}.bind(this)),delete t.rgb),t)this[e].attr(t[e])},diffuseLighting:function(t,e,i){this.attr({surfaceScale:t,diffuseConstant:e,kernelUnitLength:i})},specularLighting:function(t,e,i,a){this.attr({surfaceScale:t,diffuseConstant:e,specularExponent:i,kernelUnitLength:a})}},a={distantLight:function(t,e){this.attr({azimuth:t,elevation:e})},pointLight:function(t,e,i){this.attr({x:t,y:e,z:i})},spotLight:function(t,e,i,a,s,r){this.attr({x:t,y:e,z:i,pointsAtX:a,pointsAtY:s,pointsAtZ:r})},mergeNode:function(t){this.attr("in",t)}};function s(t){return Array.isArray(t)&&(t=new SVG.Array(t)),t.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function r(){var t=function(){};for(var e in"function"==typeof arguments[arguments.length-1]&&(t=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var i in arguments[e])t(arguments[e][i],i,arguments[e])}["r","g","b","a"].forEach((function(t){a["Func"+t.toUpperCase()]=function(t){switch(this.attr("type",t),t){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}})),r(e,(function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})})),r(i,(function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})})),r(a,(function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})})),SVG.extend(SVG.MergeEffect,{in:function(t){return t instanceof SVG.MergeNode?this.add(t,0):this.add(new SVG.MergeNode(t),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",t)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}.call(void 0),function(){function t(t,s,r,n,o,l,c){for(var h=t.slice(s,r||c),d=n.slice(o,l||c),u=0,g={pos:[0,0],start:[0,0]},p={pos:[0,0],start:[0,0]};h[u]=e.call(g,h[u]),d[u]=e.call(p,d[u]),h[u][0]!=d[u][0]||"M"==h[u][0]||"A"==h[u][0]&&(h[u][4]!=d[u][4]||h[u][5]!=d[u][5])?(Array.prototype.splice.apply(h,[u,1].concat(a.call(g,h[u]))),Array.prototype.splice.apply(d,[u,1].concat(a.call(p,d[u])))):(h[u]=i.call(g,h[u]),d[u]=i.call(p,d[u])),++u!=h.length||u!=d.length;)u==h.length&&h.push(["C",g.pos[0],g.pos[1],g.pos[0],g.pos[1],g.pos[0],g.pos[1]]),u==d.length&&d.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]);return{start:h,dest:d}}function e(t){switch(t[0]){case"z":case"Z":t[0]="L",t[1]=this.start[0],t[2]=this.start[1];break;case"H":t[0]="L",t[2]=this.pos[1];break;case"V":t[0]="L",t[2]=t[1],t[1]=this.pos[0];break;case"T":t[0]="Q",t[3]=t[1],t[4]=t[2],t[1]=this.reflection[1],t[2]=this.reflection[0];break;case"S":t[0]="C",t[6]=t[4],t[5]=t[3],t[4]=t[2],t[3]=t[1],t[2]=this.reflection[1],t[1]=this.reflection[0]}return t}function i(t){var e=t.length;return this.pos=[t[e-2],t[e-1]],-1!="SCQT".indexOf(t[0])&&(this.reflection=[2*this.pos[0]-t[e-4],2*this.pos[1]-t[e-3]]),t}function a(t){var e=[t];switch(t[0]){case"M":return this.pos=this.start=[t[1],t[2]],e;case"L":t[5]=t[3]=t[1],t[6]=t[4]=t[2],t[1]=this.pos[0],t[2]=this.pos[1];break;case"Q":t[6]=t[4],t[5]=t[3],t[4]=1*t[4]/3+2*t[2]/3,t[3]=1*t[3]/3+2*t[1]/3,t[2]=1*this.pos[1]/3+2*t[2]/3,t[1]=1*this.pos[0]/3+2*t[1]/3;break;case"A":e=function(t,e){var i,a,s,r,n,o,l,c,h,d,u,g,p,f,x,m,b,v,y,w,k,A,C,S,L,P,I=Math.abs(e[1]),T=Math.abs(e[2]),M=e[3]%360,E=e[4],z=e[5],O=e[6],X=e[7],R=new SVG.Point(t),F=new SVG.Point(O,X),Y=[];if(0===I||0===T||R.x===F.x&&R.y===F.y)return[["C",R.x,R.y,F.x,F.y,F.x,F.y]];for((a=(i=new SVG.Point((R.x-F.x)/2,(R.y-F.y)/2).transform((new SVG.Matrix).rotate(M))).x*i.x/(I*I)+i.y*i.y/(T*T))>1&&(I*=a=Math.sqrt(a),T*=a),s=(new SVG.Matrix).rotate(M).scale(1/I,1/T).rotate(-M),R=R.transform(s),o=(r=[(F=F.transform(s)).x-R.x,F.y-R.y])[0]*r[0]+r[1]*r[1],n=Math.sqrt(o),r[0]/=n,r[1]/=n,l=o<4?Math.sqrt(1-o/4):0,E===z&&(l*=-1),c=new SVG.Point((F.x+R.x)/2+l*-r[1],(F.y+R.y)/2+l*r[0]),h=new SVG.Point(R.x-c.x,R.y-c.y),d=new SVG.Point(F.x-c.x,F.y-c.y),u=Math.acos(h.x/Math.sqrt(h.x*h.x+h.y*h.y)),h.y<0&&(u*=-1),g=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(g*=-1),z&&u>g&&(g+=2*Math.PI),!z&&u<g&&(g-=2*Math.PI),m=[],b=u,p=(g-u)/(f=Math.ceil(2*Math.abs(u-g)/Math.PI)),x=4*Math.tan(p/4)/3,k=0;k<=f;k++)y=Math.cos(b),v=Math.sin(b),w=new SVG.Point(c.x+y,c.y+v),m[k]=[new SVG.Point(w.x+x*v,w.y-x*y),w,new SVG.Point(w.x-x*v,w.y+x*y)],b+=p;for(m[0][0]=m[0][1].clone(),m[m.length-1][2]=m[m.length-1][1].clone(),s=(new SVG.Matrix).rotate(M).scale(I,T).rotate(-M),k=0,A=m.length;k<A;k++)m[k][0]=m[k][0].transform(s),m[k][1]=m[k][1].transform(s),m[k][2]=m[k][2].transform(s);for(k=1,A=m.length;k<A;k++)C=(w=m[k-1][2]).x,S=w.y,L=(w=m[k][0]).x,P=w.y,O=(w=m[k][1]).x,X=w.y,Y.push(["C",C,S,L,P,O,X]);return Y}(this.pos,t),t=e[0]}return t[0]="C",this.pos=[t[5],t[6]],this.reflection=[2*t[5]-t[3],2*t[6]-t[4]],e}function s(t,e){if(!1===e)return!1;for(var i=e,a=t.length;i<a;++i)if("M"==t[i][0])return i;return!1}SVG.extend(SVG.PathArray,{morph:function(e){for(var i=this.value,a=this.parse(e),r=0,n=0,o=!1,l=!1;!1!==r||!1!==n;){var c;o=s(i,!1!==r&&r+1),l=s(a,!1!==n&&n+1),!1===r&&(r=0==(c=new SVG.PathArray(h.start).bbox()).height||0==c.width?i.push(i[0])-1:i.push(["M",c.x+c.width/2,c.y+c.height/2])-1),!1===n&&(n=0==(c=new SVG.PathArray(h.dest).bbox()).height||0==c.width?a.push(a[0])-1:a.push(["M",c.x+c.width/2,c.y+c.height/2])-1);var h=t(i,r,o,a,n,l);i=i.slice(0,r).concat(h.start,!1===o?[]:i.slice(o)),a=a.slice(0,n).concat(h.dest,!1===l?[]:a.slice(l)),r=!1!==o&&r+h.start.length,n=!1!==l&&n+h.dest.length}return this.value=i,this.destination=new SVG.PathArray,this.destination.value=a,this}})}(),function(){function t(t){t.remember("_draggable",this),this.el=t}t.prototype.init=function(t,e){var i=this;this.constraint=t,this.value=e,this.el.on("mousedown.drag",(function(t){i.start(t)})),this.el.on("touchstart.drag",(function(t){i.start(t)}))},t.prototype.transformPoint=function(t,e){var i=(t=t||window.event).changedTouches&&t.changedTouches[0]||t;return this.p.x=i.clientX-(e||0),this.p.y=i.clientY,this.p.matrixTransform(this.m)},t.prototype.getBBox=function(){var t=this.el.bbox();return this.el instanceof SVG.Nested&&(t=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(t.x=this.el.x(),t.y=this.el.y()),t},t.prototype.start=function(t){if("click"!=t.type&&"mousedown"!=t.type&&"mousemove"!=t.type||1==(t.which||t.buttons)){var e=this;if(this.el.fire("beforedrag",{event:t,handler:this}),!this.el.event().defaultPrevented){t.preventDefault(),t.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var i,a=this.getBBox();if(this.el instanceof SVG.Text)switch(i=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":i/=2;break;case"start":i=0}this.startPoints={point:this.transformPoint(t,i),box:a,transform:this.el.transform()},SVG.on(window,"mousemove.drag",(function(t){e.drag(t)})),SVG.on(window,"touchmove.drag",(function(t){e.drag(t)})),SVG.on(window,"mouseup.drag",(function(t){e.end(t)})),SVG.on(window,"touchend.drag",(function(t){e.end(t)})),this.el.fire("dragstart",{event:t,p:this.startPoints.point,m:this.m,handler:this})}}},t.prototype.drag=function(t){var e=this.getBBox(),i=this.transformPoint(t),a=this.startPoints.box.x+i.x-this.startPoints.point.x,s=this.startPoints.box.y+i.y-this.startPoints.point.y,r=this.constraint,n=i.x-this.startPoints.point.x,o=i.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:t,p:i,m:this.m,handler:this}),this.el.event().defaultPrevented)return i;if("function"==typeof r){var l=r.call(this.el,a,s,this.m);"boolean"==typeof l&&(l={x:l,y:l}),!0===l.x?this.el.x(a):!1!==l.x&&this.el.x(l.x),!0===l.y?this.el.y(s):!1!==l.y&&this.el.y(l.y)}else"object"==typeof r&&(null!=r.minX&&a<r.minX?n=(a=r.minX)-this.startPoints.box.x:null!=r.maxX&&a>r.maxX-e.width&&(n=(a=r.maxX-e.width)-this.startPoints.box.x),null!=r.minY&&s<r.minY?o=(s=r.minY)-this.startPoints.box.y:null!=r.maxY&&s>r.maxY-e.height&&(o=(s=r.maxY-e.height)-this.startPoints.box.y),null!=r.snapToGrid&&(a-=a%r.snapToGrid,s-=s%r.snapToGrid,n-=n%r.snapToGrid,o-=o%r.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:n,y:o},!0):this.el.move(a,s));return i},t.prototype.end=function(t){var e=this.drag(t);this.el.fire("dragend",{event:t,p:e,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(e,i){"function"!=typeof e&&"object"!=typeof e||(i=e,e=!0);var a=this.remember("_draggable")||new t(this);return(e=void 0===e||e)?a.init(i||{},e):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function t(t){this.el=t,t.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(t,e,i){var a="string"!=typeof t?t:e[t];return i?a/2:a},this.pointCoords=function(t,e){var i=this.pointsList[t];return{x:this.pointCoord(i[0],e,"t"===t||"b"===t),y:this.pointCoord(i[1],e,"r"===t||"l"===t)}}}t.prototype.init=function(t,e){var i=this.el.bbox();this.options={};var a=this.el.selectize.defaults.points;for(var s in this.el.selectize.defaults)this.options[s]=this.el.selectize.defaults[s],void 0!==e[s]&&(this.options[s]=e[s]);var r=["points","pointsExclude"];for(var s in r){var n=this.options[r[s]];"string"==typeof n?n=n.length>0?n.split(/\s*,\s*/i):[]:"boolean"==typeof n&&"points"===r[s]&&(n=n?a:[]),this.options[r[s]]=n}this.options.points=[a,this.options.points].reduce((function(t,e){return t.filter((function(t){return e.indexOf(t)>-1}))})),this.options.points=[this.options.points,this.options.pointsExclude].reduce((function(t,e){return t.filter((function(t){return e.indexOf(t)<0}))})),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(t):this.selectRect(t),this.observe(),this.cleanup()},t.prototype.selectPoints=function(t){return this.pointSelection.isSelected=t,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},t.prototype.getPointArray=function(){var t=this.el.bbox();return this.el.array().valueOf().map((function(e){return[e[0]-t.x,e[1]-t.y]}))},t.prototype.drawPoints=function(){for(var t=this,e=this.getPointArray(),i=0,a=e.length;i<a;++i){var s=function(e){return function(i){(i=i||window.event).preventDefault?i.preventDefault():i.returnValue=!1,i.stopPropagation();var a=i.pageX||i.touches[0].pageX,s=i.pageY||i.touches[0].pageY;t.el.fire("point",{x:a,y:s,i:e,event:i})}}(i),r=this.drawPoint(e[i][0],e[i][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",s).on("mousedown",s);this.pointSelection.set.add(r)}},t.prototype.drawPoint=function(t,e){var i=this.options.pointType;switch(i){case"circle":return this.drawCircle(t,e);case"rect":return this.drawRect(t,e);default:if("function"==typeof i)return i.call(this,t,e);throw new Error("Unknown "+i+" point type!")}},t.prototype.drawCircle=function(t,e){return this.nested.circle(this.options.pointSize).center(t,e)},t.prototype.drawRect=function(t,e){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(t,e)},t.prototype.updatePointSelection=function(){var t=this.getPointArray();this.pointSelection.set.each((function(e){this.cx()===t[e][0]&&this.cy()===t[e][1]||this.center(t[e][0],t[e][1])}))},t.prototype.updateRectSelection=function(){var t=this,e=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:e.width,height:e.height}),this.options.points.length&&this.options.points.map((function(i,a){var s=t.pointCoords(i,e);t.rectSelection.set.get(a+1).center(s.x,s.y)})),this.options.rotationPoint){var i=this.rectSelection.set.length();this.rectSelection.set.get(i-1).center(e.width/2,20)}},t.prototype.selectRect=function(t){var e=this,i=this.el.bbox();function a(t){return function(i){(i=i||window.event).preventDefault?i.preventDefault():i.returnValue=!1,i.stopPropagation();var a=i.pageX||i.touches[0].pageX,s=i.pageY||i.touches[0].pageY;e.el.fire(t,{x:a,y:s,event:i})}}if(this.rectSelection.isSelected=t,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(i.width,i.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map((function(t,s){var r=e.pointCoords(t,i),n=e.drawPoint(r.x,r.y).attr("class",e.options.classPoints+"_"+t).on("mousedown",a(t)).on("touchstart",a(t));e.rectSelection.set.add(n)})),this.rectSelection.set.each((function(){this.addClass(e.options.classPoints)}))),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var s=function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation();var i=t.pageX||t.touches[0].pageX,a=t.pageY||t.touches[0].pageY;e.el.fire("rot",{x:i,y:a,event:t})},r=this.drawPoint(i.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",s).on("mousedown",s);this.rectSelection.set.add(r)}},t.prototype.handler=function(){var t=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(t.x,t.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},t.prototype.observe=function(){var t=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver((function(){t.handler()})),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch(t){}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",(function(){t.handler()}))},t.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each((function(){this.remove()})),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each((function(){this.remove()})),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(e,i){return"object"==typeof e&&(i=e,e=!0),(this.remember("_selectHandler")||new t(this)).init(void 0===e||e,i||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function t(t){t.remember("_resizeHandler",this),this.el=t,this.parameters={},this.lastUpdateCall=null,this.p=t.doc().node.createSVGPoint()}t.prototype.transformPoint=function(t,e,i){return this.p.x=t-(this.offset.x-window.pageXOffset),this.p.y=e-(this.offset.y-window.pageYOffset),this.p.matrixTransform(i||this.m)},t.prototype._extractPosition=function(t){return{x:null!=t.clientX?t.clientX:t.touches[0].clientX,y:null!=t.clientY?t.clientY:t.touches[0].clientY}},t.prototype.init=function(t){var e=this;if(this.stop(),"stop"!==t){for(var i in this.options={},this.el.resize.defaults)this.options[i]=this.el.resize.defaults[i],void 0!==t[i]&&(this.options[i]=t[i]);this.el.on("lt.resize",(function(t){e.resize(t||window.event)})),this.el.on("rt.resize",(function(t){e.resize(t||window.event)})),this.el.on("rb.resize",(function(t){e.resize(t||window.event)})),this.el.on("lb.resize",(function(t){e.resize(t||window.event)})),this.el.on("t.resize",(function(t){e.resize(t||window.event)})),this.el.on("r.resize",(function(t){e.resize(t||window.event)})),this.el.on("b.resize",(function(t){e.resize(t||window.event)})),this.el.on("l.resize",(function(t){e.resize(t||window.event)})),this.el.on("rot.resize",(function(t){e.resize(t||window.event)})),this.el.on("point.resize",(function(t){e.resize(t||window.event)})),this.update()}},t.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},t.prototype.resize=function(t){var e=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var i=this._extractPosition(t.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(i.x,i.y),x:t.detail.x,y:t.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},"text"===this.el.type&&(this.parameters.fontSize=this.el.attr()["font-size"]),void 0!==t.detail.i){var a=this.el.array().valueOf();this.parameters.i=t.detail.i,this.parameters.pointCoords=[a[t.detail.i][0],a[t.detail.i][1]]}switch(t.type){case"lt":this.calc=function(t,e){var i=this.snapToGrid(t,e);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y+i[1]).size(this.parameters.box.width-i[0],this.parameters.box.height-i[1])}};break;case"rt":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).size(this.parameters.box.width+i[0],this.parameters.box.height-i[1])}};break;case"rb":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+i[0],this.parameters.box.height+i[1])}};break;case"lb":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i,!0),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).size(this.parameters.box.width-i[0],this.parameters.box.height+i[1])}};break;case"t":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).height(this.parameters.box.height-i[1])}};break;case"r":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+i[0])}};break;case"b":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+i[1])}};break;case"l":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).width(this.parameters.box.width-i[0])}};break;case"rot":this.calc=function(t,e){var i=t+this.parameters.p.x,a=e+this.parameters.p.y,s=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),r=Math.atan2(a-this.parameters.box.y-this.parameters.box.height/2,i-this.parameters.box.x-this.parameters.box.width/2),n=this.parameters.rotation+180*(r-s)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(n-n%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(t,e){var i=this.snapToGrid(t,e,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),a=this.el.array().valueOf();a[this.parameters.i][0]=this.parameters.pointCoords[0]+i[0],a[this.parameters.i][1]=this.parameters.pointCoords[1]+i[1],this.el.plot(a)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:t}),SVG.on(window,"touchmove.resize",(function(t){e.update(t||window.event)})),SVG.on(window,"touchend.resize",(function(){e.done()})),SVG.on(window,"mousemove.resize",(function(t){e.update(t||window.event)})),SVG.on(window,"mouseup.resize",(function(){e.done()}))},t.prototype.update=function(t){if(t){var e=this._extractPosition(t),i=this.transformPoint(e.x,e.y),a=i.x-this.parameters.p.x,s=i.y-this.parameters.p.y;this.lastUpdateCall=[a,s],this.calc(a,s),this.el.fire("resizing",{dx:a,dy:s,event:t})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},t.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},t.prototype.snapToGrid=function(t,e,i,a){var s;return void 0!==a?s=[(i+t)%this.options.snapToGrid,(a+e)%this.options.snapToGrid]:(i=null==i?3:i,s=[(this.parameters.box.x+t+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+e+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),t<0&&(s[0]-=this.options.snapToGrid),e<0&&(s[1]-=this.options.snapToGrid),t-=Math.abs(s[0])<this.options.snapToGrid/2?s[0]:s[0]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),e-=Math.abs(s[1])<this.options.snapToGrid/2?s[1]:s[1]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(t,e,i,a)},t.prototype.constraintToBox=function(t,e,i,a){var s,r,n=this.options.constraint||{};return void 0!==a?(s=i,r=a):(s=this.parameters.box.x+(1&i?0:this.parameters.box.width),r=this.parameters.box.y+(2&i?0:this.parameters.box.height)),void 0!==n.minX&&s+t<n.minX&&(t=n.minX-s),void 0!==n.maxX&&s+t>n.maxX&&(t=n.maxX-s),void 0!==n.minY&&r+e<n.minY&&(e=n.minY-r),void 0!==n.maxY&&r+e>n.maxY&&(e=n.maxY-r),[t,e]},t.prototype.checkAspectRatio=function(t,e){if(!this.options.saveAspectRatio)return t;var i=t.slice(),a=this.parameters.box.width/this.parameters.box.height,s=this.parameters.box.width+t[0],r=this.parameters.box.height-t[1],n=s/r;return n<a?(i[1]=s/a-this.parameters.box.height,e&&(i[1]=-i[1])):n>a&&(i[0]=this.parameters.box.width-r*a,e&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(e){return(this.remember("_resizeHandler")||new t(this)).init(e||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),void 0===window.Apex&&(window.Apex={});var jt=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new y(this.ctx),this.ctx.axes=new tt(this.ctx),this.ctx.core=new Bt(this.ctx.el,this.ctx),this.ctx.config=new F({}),this.ctx.data=new j(this.ctx),this.ctx.grid=new U(this.ctx),this.ctx.graphics=new k(this.ctx),this.ctx.coreUtils=new A(this.ctx),this.ctx.crosshairs=new et(this.ctx),this.ctx.events=new K(this.ctx),this.ctx.exports=new V(this.ctx),this.ctx.localization=new Q(this.ctx),this.ctx.options=new T,this.ctx.responsive=new it(this.ctx),this.ctx.series=new $(this.ctx),this.ctx.theme=new at(this.ctx),this.ctx.formatters=new z(this.ctx),this.ctx.titleSubtitle=new st(this.ctx),this.ctx.legend=new dt(this.ctx),this.ctx.toolbar=new ut(this.ctx),this.ctx.tooltip=new yt(this.ctx),this.ctx.dimensions=new ct(this.ctx),this.ctx.updateHelpers=new $t(this.ctx),this.ctx.zoomPanSelection=new gt(this.ctx),this.ctx.w.globals.tooltip=new yt(this.ctx)}}]),t}(),_t=function(){function t(e){o(this,t),this.ctx=e,this.w=e.w}return c(t,[{key:"clear",value:function(t){var e=t.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:e})}},{key:"killSVG",value:function(t){t.each((function(t,e){this.removeClass("*"),this.off(),this.stop()}),!0),t.ungroup(),t.clear()}},{key:"clearDomElements",value:function(t){var e=this,i=t.isUpdating,a=this.w.globals.dom.Paper.node;a.parentNode&&a.parentNode.parentNode&&!i&&(a.parentNode.parentNode.style.minHeight="unset");var s=this.w.globals.dom.baseEl;s&&this.ctx.eventList.forEach((function(t){s.removeEventListener(t,e.ctx.events.documentEvent)}));var r=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(r.Paper),r.Paper.remove(),r.elWrap=null,r.elGraphical=null,r.elLegendWrap=null,r.elLegendForeign=null,r.baseEl=null,r.elGridRect=null,r.elGridRectMask=null,r.elGridRectMarkerMask=null,r.elForecastMask=null,r.elNonForecastMask=null,r.elDefs=null}}]),t}(),Vt=new WeakMap,Gt=function(){function t(e,i){o(this,t),this.opts=i,this.ctx=this,this.w=new H(i).init(),this.el=e,this.w.globals.cuid=v.randomId(),this.w.globals.chartID=this.w.config.chart.id?v.escapeString(this.w.config.chart.id):this.w.globals.cuid,new jt(this).initModules(),this.create=v.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return c(t,[{key:"render",value:function(){var t=this;return new Promise((function(e,i){if(null!==t.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),t.w.config.chart.id&&Apex._chartInstances.push({id:t.w.globals.chartID,group:t.w.config.chart.group,chart:t}),t.setLocale(t.w.config.chart.defaultLocale);var a=t.w.config.chart.events.beforeMount;if("function"==typeof a&&a(t,t.w),t.events.fireEvent("beforeMount",[t,t.w]),window.addEventListener("resize",t.windowResizeHandler),function(t,e){var i=!1;if(t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var a=t.getBoundingClientRect();"none"!==t.style.display&&0!==a.width||(i=!0)}var s=new ResizeObserver((function(a){i&&e.call(t,a),i=!0}));t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(t.children).forEach((function(t){return s.observe(t)})):s.observe(t),Vt.set(e,s)}(t.el.parentNode,t.parentResizeHandler),!t.css){var s=t.el.getRootNode&&t.el.getRootNode(),r=v.is("ShadowRoot",s),n=t.el.ownerDocument,o=n.getElementById("apexcharts-css");!r&&o||(t.css=document.createElement("style"),t.css.id="apexcharts-css",t.css.textContent='@keyframes opaque {\n 0% {\n opacity: 0\n }\n\n to {\n opacity: 1\n }\n}\n\n@keyframes resizeanim {\n 0%,to {\n opacity: 0\n }\n}\n\n.apexcharts-canvas {\n position: relative;\n user-select: none\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0,0,0,.5);\n box-shadow: 0 0 1px rgba(255,255,255,.5);\n -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5)\n}\n\n.apexcharts-inner {\n position: relative\n}\n\n.apexcharts-text tspan {\n font-family: inherit\n}\n\n.legend-mouseover-inactive {\n transition: .15s ease all;\n opacity: .2\n}\n\n.apexcharts-legend-text {\n padding-left: 15px;\n margin-left: -15px;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n border: 1px solid #e3e3e3;\n background: rgba(255,255,255,.96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n color: #fff;\n background: rgba(30,30,30,.8)\n}\n\n.apexcharts-tooltip * {\n font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n background: #eceff1;\n border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: rgba(0,0,0,.7);\n border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value {\n display: inline-block;\n margin-left: 5px;\n font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty {\n display: none\n}\n\n.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {\n display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0;\n margin-right: 10px;\n border-radius: 50%\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px\n}\n\n.apexcharts-tooltip-series-group-hidden {\n opacity: 0;\n height: 0;\n line-height: 0;\n padding: 0!important\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,.apexcharts-tooltip-box {\n padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: 700;\n display: block;\n margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,.apexcharts-yaxistooltip {\n opacity: 0;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #eceff1;\n border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n padding: 9px 10px;\n transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n background: rgba(0,0,0,.7);\n border: 1px solid rgba(0,0,0,.5);\n color: #fff\n}\n\n.apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before {\n top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n border-bottom-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n border-top-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n background: rgba(0,0,0,.7);\n border: 1px solid rgba(0,0,0,.5);\n color: #fff\n}\n\n.apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before {\n left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before {\n right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n border-left-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n border-right-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none\n}\n\n.apexcharts-xcrosshairs,.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0\n}\n\n.apexcharts-selection-rect {\n cursor: move\n}\n\n.svg_select_boundingRect,.svg_select_points_rot {\n pointer-events: none;\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot {\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible\n}\n\n.svg_select_points {\n fill: #efefef;\n stroke: #333;\n rx: 2\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6e8192;\n text-align: center\n}\n\n.apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg {\n fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n fill: #333\n}\n\n.apexcharts-menu-icon,.apexcharts-selection-icon {\n position: relative\n}\n\n.apexcharts-reset-icon {\n margin-left: 5px\n}\n\n.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon {\n transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {\n transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n transform: scale(.62);\n position: relative;\n left: 1px;\n top: 0\n}\n\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6e8192;\n stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n stroke: #333\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0 6px 2px;\n display: flex;\n justify-content: space-between;\n align-items: center\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: .15s ease all;\n pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n pointer-events: all;\n transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(0,0,0,.7);\n color: #fff\n}\n\n@media screen and (min-width:768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1\n }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points {\n opacity: 0\n}\n\n.apexcharts-hidden-element-shown {\n opacity: 1;\n transition: 0.25s ease all;\n}\n.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label {\n cursor: default;\n pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: .3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease\n}\n\n.apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect {\n pointer-events: none\n}\n\n.apexcharts-marker {\n transition: .15s ease all\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n height: 100%;\n width: 100%;\n overflow: hidden\n}\n\n.contract-trigger:before,.resize-triggers,.resize-triggers>div {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0\n}\n\n.resize-triggers>div {\n height: 100%;\n width: 100%;\n background: #eee;\n overflow: auto\n}\n\n.contract-trigger:before {\n overflow: hidden;\n width: 200%;\n height: 200%\n}\n\n.apexcharts-bar-goals-markers{\n pointer-events: none\n}\n\n.apexcharts-bar-shadows{\n pointer-events: none\n}\n\n.apexcharts-rangebar-goals-markers{\n pointer-events: none\n}',r?s.prepend(t.css):n.head.appendChild(t.css))}var l=t.create(t.w.config.series,{});if(!l)return e(t);t.mount(l).then((function(){"function"==typeof t.w.config.chart.events.mounted&&t.w.config.chart.events.mounted(t,t.w),t.events.fireEvent("mounted",[t,t.w]),e(l)})).catch((function(t){i(t)}))}else i(new Error("Element not found"))}))}},{key:"create",value:function(t,e){var i=this.w;new jt(this).initModules();var a=this.w.globals;if(a.noData=!1,a.animationEnded=!1,this.responsive.checkResponsiveConfig(e),i.config.xaxis.convertedCatToNumeric&&new R(i.config).convertCatToNumericXaxis(i.config,this.ctx),null===this.el)return a.animationEnded=!0,null;if(this.core.setupElements(),"treemap"===i.config.chart.type&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),0===a.svgWidth)return a.animationEnded=!0,null;var s=A.checkComboSeries(t);a.comboCharts=s.comboCharts,a.comboBarCount=s.comboBarCount;var r=t.every((function(t){return t.data&&0===t.data.length}));(0===t.length||r)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(t),this.theme.init(),new D(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),a.noData&&a.collapsedSeries.length!==a.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),a.axisCharts&&(this.core.coreCalculations(),"category"!==i.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),new A(this).getLargestMarkerSize(),this.dimensions.plotCoords();var n=this.core.xySettings();this.grid.createGridMask();var o=this.core.plotChartType(t,n),l=new B(this);return l.bringForward(),i.config.dataLabels.background.enabled&&l.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:o,xyRatios:n,dimensions:{plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}}}}},{key:"mount",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=this,a=i.w;return new Promise((function(s,r){if(null===i.el)return r(new Error("Not enough data to display or target element not found"));(null===e||a.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new U(i);var n,o,l=i.grid.drawGrid();if(i.annotations=new M(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),"back"===a.config.grid.position&&(l&&a.globals.dom.elGraphical.add(l.el),null!=l&&null!==(n=l.elGridBorders)&&void 0!==n&&n.node&&a.globals.dom.elGraphical.add(l.elGridBorders)),Array.isArray(e.elGraph))for(var c=0;c<e.elGraph.length;c++)a.globals.dom.elGraphical.add(e.elGraph[c]);else a.globals.dom.elGraphical.add(e.elGraph);"front"===a.config.grid.position&&(l&&a.globals.dom.elGraphical.add(l.el),null!=l&&null!==(o=l.elGridBorders)&&void 0!==o&&o.node&&a.globals.dom.elGraphical.add(l.elGridBorders)),"front"===a.config.xaxis.crosshairs.position&&i.crosshairs.drawXCrosshairs(),"front"===a.config.yaxis[0].crosshairs.position&&i.crosshairs.drawYCrosshairs(),"treemap"!==a.config.chart.type&&i.axes.drawAxis(a.config.chart.type,l);var h=new G(t.ctx,l),d=new J(t.ctx,l);if(null!==l&&(h.xAxisLabelCorrections(l.xAxisTickWidth),d.setYAxisTextAlignments(),a.config.yaxis.map((function(t,e){-1===a.globals.ignoreYAxisIndexes.indexOf(e)&&d.yAxisTitleRotate(e,t.opposite)}))),i.annotations.drawAxesAnnotations(),!a.globals.noData){if(a.config.tooltip.enabled&&!a.globals.noData&&i.w.globals.tooltip.drawTooltip(e.xyRatios),a.globals.axisCharts&&(a.globals.isXNumeric||a.config.xaxis.convertedCatToNumeric||a.globals.isRangeBar))(a.config.chart.zoom.enabled||a.config.chart.selection&&a.config.chart.selection.enabled||a.config.chart.pan&&a.config.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:e.xyRatios});else{var u=a.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach((function(t){u[t]=!1}))}a.config.chart.toolbar.show&&!a.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}a.globals.memory.methodsToExec.length>0&&a.globals.memory.methodsToExec.forEach((function(t){t.method(t.params,!1,t.context)})),a.globals.axisCharts||a.globals.noData||i.core.resizeNonAxisCharts(),s(i)}))}},{key:"destroy",value:function(){var t,e;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,t=this.parentResizeHandler,(e=Vt.get(t))&&(e.disconnect(),Vt.delete(t));var i=this.w.config.chart.id;i&&Apex._chartInstances.forEach((function(t,e){t.id===v.escapeString(i)&&Apex._chartInstances.splice(e,1)})),new _t(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=this.w;return n.globals.selection=void 0,t.series&&(this.series.resetSeries(!1,!0,!1),t.series.length&&t.series[0].data&&(t.series=t.series.map((function(t,i){return e.updateHelpers._extendSeries(t,i)}))),this.updateHelpers.revertDefaultAxisMinMax()),t.xaxis&&(t=this.updateHelpers.forceXAxisUpdate(t)),t.yaxis&&(t=this.updateHelpers.forceYAxisUpdate(t)),n.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),t.theme&&(t=this.theme.updateThemeOptions(t)),this.updateHelpers._updateOptions(t,i,a,s,r)}},{key:"updateSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(t,e,i)}},{key:"appendSeries",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=this.w.config.series.slice();return a.push(t),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(a,e,i)}},{key:"appendData",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var a=i.w.config.series.slice(),s=0;s<a.length;s++)if(null!==t[s]&&void 0!==t[s])for(var r=0;r<t[s].data.length;r++)a[s].data.push(t[s].data[r]);return i.w.config.series=a,e&&(i.w.globals.initialSeries=v.clone(i.w.config.series)),this.update()}},{key:"update",value:function(t){var e=this;return new Promise((function(i,a){new _t(e.ctx).clear({isUpdating:!0});var s=e.create(e.w.config.series,t);if(!s)return i(e);e.mount(s).then((function(){"function"==typeof e.w.config.chart.events.updated&&e.w.config.chart.events.updated(e,e.w),e.events.fireEvent("updated",[e,e.w]),e.w.globals.isDirty=!0,i(e)})).catch((function(t){a(t)}))}))}},{key:"getSyncedCharts",value:function(){var t=this.getGroupedCharts(),e=[this];return t.length&&(e=[],t.forEach((function(t){e.push(t)}))),e}},{key:"getGroupedCharts",value:function(){var t=this;return Apex._chartInstances.filter((function(t){if(t.group)return!0})).map((function(e){return t.w.config.chart.group===e.group?e.chart:t}))}},{key:"toggleSeries",value:function(t){return this.series.toggleSeries(t)}},{key:"highlightSeriesOnLegendHover",value:function(t,e){return this.series.toggleSeriesOnHover(t,e)}},{key:"showSeries",value:function(t){this.series.showSeries(t)}},{key:"hideSeries",value:function(t){this.series.hideSeries(t)}},{key:"isSeriesHidden",value:function(t){this.series.isSeriesHidden(t)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(t,e)}},{key:"addEventListener",value:function(t,e){this.events.addEventListener(t,e)}},{key:"removeEventListener",value:function(t,e){this.events.removeEventListener(t,e)}},{key:"addXaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addXaxisAnnotationExternal(t,e,a)}},{key:"addYaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addYaxisAnnotationExternal(t,e,a)}},{key:"addPointAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addPointAnnotationExternal(t,e,a)}},{key:"clearAnnotations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this;t&&(e=t),e.annotations.clearAnnotations(e)}},{key:"removeAnnotation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=this;e&&(i=e),i.annotations.removeAnnotation(i,t)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(t,e){return this.coreUtils.getSeriesTotalsXRange(t,e)}},{key:"getHighestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Z(this.ctx).getMinYMaxY(t).highestY}},{key:"getLowestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Z(this.ctx).getMinYMaxY(t).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(t,e){return this.updateHelpers.toggleDataPointSelection(t,e)}},{key:"zoomX",value:function(t,e){this.ctx.toolbar.zoomUpdateOptions(t,e)}},{key:"setLocale",value:function(t){this.localization.setCurrentLocaleValues(t)}},{key:"dataURI",value:function(t){return new V(this.ctx).dataURI(t)}},{key:"exportToCSV",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new V(this.ctx).exportToCSV(t)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var t=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout((function(){t.w.globals.resized=!0,t.w.globals.dataChanged=!1,t.ctx.update()}),150)}},{key:"_windowResizeHandler",value:function(){var t=this.w.config.chart.redrawOnWindowResize;"function"==typeof t&&(t=t()),t&&this._windowResize()}}],[{key:"getChartByID",value:function(t){var e=v.escapeString(t);if(Apex._chartInstances){var i=Apex._chartInstances.filter((function(t){return t.id===e}))[0];return i&&i.chart}}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),i=0;i<e.length;i++)new t(e[i],JSON.parse(e[i].getAttribute("data-options"))).render()}},{key:"exec",value:function(t,e){var i=this.getChartByID(t);if(i){i.w.globals.isExecCalled=!0;var a=null;if(-1!==i.publicMethods.indexOf(e)){for(var s=arguments.length,r=new Array(s>2?s-2:0),n=2;n<s;n++)r[n-2]=arguments[n];a=i[e].apply(i,r)}return a}}},{key:"merge",value:function(t,e){return v.extend(t,e)}}]),t}();t.exports=Gt},8679:(t,e,i)=>{"use strict";var a=i(1296),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(t){return a.isMemo(t)?n:o[t.$$typeof]||s}o[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[a.Memo]=n;var c=Object.defineProperty,h=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,i,a){if("string"!=typeof i){if(p){var s=g(i);s&&s!==p&&t(e,s,a)}var n=h(i);d&&(n=n.concat(d(i)));for(var o=l(e),f=l(i),x=0;x<n.length;++x){var m=n[x];if(!(r[m]||a&&a[m]||f&&f[m]||o&&o[m])){var b=u(i,m);try{c(e,m,b)}catch(t){}}}}return e}},6103:(t,e)=>{"use strict";var i="function"==typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103,s=i?Symbol.for("react.portal"):60106,r=i?Symbol.for("react.fragment"):60107,n=i?Symbol.for("react.strict_mode"):60108,o=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,c=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.async_mode"):60111,d=i?Symbol.for("react.concurrent_mode"):60111,u=i?Symbol.for("react.forward_ref"):60112,g=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.suspense_list"):60120,f=i?Symbol.for("react.memo"):60115,x=i?Symbol.for("react.lazy"):60116,m=i?Symbol.for("react.block"):60121,b=i?Symbol.for("react.fundamental"):60117,v=i?Symbol.for("react.responder"):60118,y=i?Symbol.for("react.scope"):60119;function w(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case a:switch(t=t.type){case h:case d:case r:case o:case n:case g:return t;default:switch(t=t&&t.$$typeof){case c:case u:case x:case f:case l:return t;default:return e}}case s:return e}}}function k(t){return w(t)===d}e.AsyncMode=h,e.ConcurrentMode=d,e.ContextConsumer=c,e.ContextProvider=l,e.Element=a,e.ForwardRef=u,e.Fragment=r,e.Lazy=x,e.Memo=f,e.Portal=s,e.Profiler=o,e.StrictMode=n,e.Suspense=g,e.isAsyncMode=function(t){return k(t)||w(t)===h},e.isConcurrentMode=k,e.isContextConsumer=function(t){return w(t)===c},e.isContextProvider=function(t){return w(t)===l},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===a},e.isForwardRef=function(t){return w(t)===u},e.isFragment=function(t){return w(t)===r},e.isLazy=function(t){return w(t)===x},e.isMemo=function(t){return w(t)===f},e.isPortal=function(t){return w(t)===s},e.isProfiler=function(t){return w(t)===o},e.isStrictMode=function(t){return w(t)===n},e.isSuspense=function(t){return w(t)===g},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===d||t===o||t===n||t===g||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===x||t.$$typeof===f||t.$$typeof===l||t.$$typeof===c||t.$$typeof===u||t.$$typeof===b||t.$$typeof===v||t.$$typeof===y||t.$$typeof===m)},e.typeOf=w},1296:(t,e,i)=>{"use strict";t.exports=i(6103)},2703:(t,e,i)=>{"use strict";var a=i(414);function s(){}function r(){}r.resetWarningCache=s,t.exports=function(){function t(t,e,i,s,r,n){if(n!==a){var o=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 o.name="Invariant Violation",o}}function e(){return t}t.isRequired=t;var i={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:r,resetWarningCache:s};return i.PropTypes=i,i}},5697:(t,e,i)=>{t.exports=i(2703)()},414:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7229:(t,e,i)=>{"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i,a=arguments[e];for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},r=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),n=h(i(5927)),o=i(9196),l=h(o),c=h(i(5697));function h(t){return t&&t.__esModule?t:{default:t}}window.ApexCharts=n.default;var d=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return l.default.createRef?i.chartRef=l.default.createRef():i.setRef=function(t){return i.chartRef=t},i.chart=null,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,o.Component),r(t,[{key:"render",value:function(){var t=function(t,e){var i,a={};for(i in t)0<=e.indexOf(i)||Object.prototype.hasOwnProperty.call(t,i)&&(a[i]=t[i]);return a}(this.props,[]);return l.default.createElement("div",s({ref:l.default.createRef?this.chartRef:this.setRef},t))}},{key:"componentDidMount",value:function(){var t=l.default.createRef?this.chartRef.current:this.chartRef;this.chart=new n.default(t,this.getConfig()),this.chart.render()}},{key:"getConfig",value:function(){var t=(s=this.props).type,e=s.height,i=s.width,a=s.series,s=s.options;return this.extend(s,{chart:{type:t,height:e,width:i},series:a})}},{key:"isObject",value:function(t){return t&&"object"===(void 0===t?"undefined":a(t))&&!Array.isArray(t)&&null!=t}},{key:"extend",value:function(t,e){var i=this,a=("function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var a=arguments[i];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(e[s]=a[s])}return e}),Object.assign({},t));return this.isObject(t)&&this.isObject(e)&&Object.keys(e).forEach((function(s){i.isObject(e[s])&&s in t?a[s]=i.extend(t[s],e[s]):Object.assign(a,function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}({},s,e[s]))})),a}},{key:"componentDidUpdate",value:function(t){if(!this.chart)return null;var e=(s=this.props).options,i=s.series,a=s.height,s=s.width,r=JSON.stringify(t.options),n=JSON.stringify(t.series),o=(e=JSON.stringify(e),JSON.stringify(i));r===e&&n===o&&a===t.height&&s===t.width||(n!==o&&r===e&&a===t.height&&s===t.width?this.chart.updateSeries(i):this.chart.updateOptions(this.getConfig()))}},{key:"componentWillUnmount",value:function(){this.chart&&"function"==typeof this.chart.destroy&&this.chart.destroy()}}]),t}();(e.Z=d).propTypes={type:c.default.string.isRequired,width:c.default.oneOfType([c.default.string,c.default.number]),height:c.default.oneOfType([c.default.string,c.default.number]),series:c.default.array.isRequired,options:c.default.object.isRequired},d.defaultProps={type:"line",width:"100%",height:"auto"}},9196:t=>{"use strict";t.exports=window.React}},a={};function s(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={exports:{}};return i[t](r,r.exports,s),r.exports}s.m=i,s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce(((e,i)=>(s.f[i](t,e),e)),[])),s.u=t=>t+".js",s.miniCssF=t=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="sureforms:",s.l=(i,a,r,n)=>{if(t[i])t[i].push(a);else{var o,l;if(void 0!==r)for(var c=document.getElementsByTagName("script"),h=0;h<c.length;h++){var d=c[h];if(d.getAttribute("src")==i||d.getAttribute("data-webpack")==e+r){o=d;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-webpack",e+r),o.src=i),t[i]=[a];var u=(e,a)=>{o.onerror=o.onload=null,clearTimeout(g);var s=t[i];if(delete t[i],o.parentNode&&o.parentNode.removeChild(o),s&&s.forEach((t=>t(a))),e)return e(a)},g=setTimeout(u.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=u.bind(null,o.onerror),o.onload=u.bind(null,o.onload),l&&document.head.appendChild(o)}},s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;s.g.importScripts&&(t=s.g.location+"");var e=s.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");if(i.length)for(var a=i.length-1;a>-1&&!t;)t=i[a--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t})(),(()=>{var t={966:0};s.f.j=(e,i)=>{var a=s.o(t,e)?t[e]:void 0;if(0!==a)if(a)i.push(a[2]);else{var r=new Promise(((i,s)=>a=t[e]=[i,s]));i.push(a[2]=r);var n=s.p+s.u(e),o=new Error;s.l(n,(i=>{if(s.o(t,e)&&(0!==(a=t[e])&&(t[e]=void 0),a)){var r=i&&("load"===i.type?"missing":i.type),n=i&&i.target&&i.target.src;o.message="Loading chunk "+e+" failed.\n("+r+": "+n+")",o.name="ChunkLoadError",o.type=r,o.request=n,a[1](o)}}),"chunk-"+e,e)}};var e=(e,i)=>{var a,r,[n,o,l]=i,c=0;if(n.some((e=>0!==t[e]))){for(a in o)s.o(o,a)&&(s.m[a]=o[a]);l&&l(s)}for(e&&e(i);c<n.length;c++)r=n[c],s.o(t,r)&&t[r]&&t[r][0](),t[r]=0},i=globalThis.webpackChunksureforms=globalThis.webpackChunksureforms||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})(),(()=>{"use strict";const t=window.wp.element;var e=s(9196),i=s.n(e),a=function(){function t(t){var e=this;this._insertTag=function(t){var i;i=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,i),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(e);try{i.insertRule(t,i.cssRules.length)}catch(t){}}else e.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),this.tags=[],this.ctr=0},t}(),r=Math.abs,n=String.fromCharCode,o=Object.assign;function l(t){return t.trim()}function c(t,e,i){return t.replace(e,i)}function h(t,e){return t.indexOf(e)}function d(t,e){return 0|t.charCodeAt(e)}function u(t,e,i){return t.slice(e,i)}function g(t){return t.length}function p(t){return t.length}function f(t,e){return e.push(t),t}var x=1,m=1,b=0,v=0,y=0,w="";function k(t,e,i,a,s,r,n){return{value:t,root:e,parent:i,type:a,props:s,children:r,line:x,column:m,length:n,return:""}}function A(t,e){return o(k("",null,null,"",null,null,0),t,{length:-t.length},e)}function C(){return y=v>0?d(w,--v):0,m--,10===y&&(m=1,x--),y}function S(){return y=v<b?d(w,v++):0,m++,10===y&&(m=1,x++),y}function L(){return d(w,v)}function P(){return v}function I(t,e){return u(w,t,e)}function T(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function M(t){return x=m=1,b=g(w=t),v=0,[]}function E(t){return w="",t}function z(t){return l(I(v-1,R(91===t?t+2:40===t?t+1:t)))}function O(t){for(;(y=L())&&y<33;)S();return T(t)>2||T(y)>3?"":" "}function X(t,e){for(;--e&&S()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return I(t,P()+(e<6&&32==L()&&32==S()))}function R(t){for(;S();)switch(y){case t:return v;case 34:case 39:34!==t&&39!==t&&R(y);break;case 40:41===t&&R(t);break;case 92:S()}return v}function F(t,e){for(;S()&&t+y!==57&&(t+y!==84||47!==L()););return"/*"+I(e,v-1)+"*"+n(47===t?t:S())}function Y(t){for(;!T(L());)S();return I(t,v)}var H="-ms-",N="-moz-",D="-webkit-",W="comm",B="rule",$="decl",j="@keyframes";function _(t,e){for(var i="",a=p(t),s=0;s<a;s++)i+=e(t[s],s,t,e)||"";return i}function V(t,e,i,a){switch(t.type){case"@import":case $:return t.return=t.return||t.value;case W:return"";case j:return t.return=t.value+"{"+_(t.children,a)+"}";case B:t.value=t.props.join(",")}return g(i=_(t.children,a))?t.return=t.value+"{"+i+"}":""}function G(t){return E(U("",null,null,null,[""],t=M(t),0,[0],t))}function U(t,e,i,a,s,r,o,l,u){for(var p=0,x=0,m=o,b=0,v=0,y=0,w=1,k=1,A=1,I=0,T="",M=s,E=r,R=a,H=T;k;)switch(y=I,I=S()){case 40:if(108!=y&&58==d(H,m-1)){-1!=h(H+=c(z(I),"&","&\f"),"&\f")&&(A=-1);break}case 34:case 39:case 91:H+=z(I);break;case 9:case 10:case 13:case 32:H+=O(y);break;case 92:H+=X(P()-1,7);continue;case 47:switch(L()){case 42:case 47:f(Z(F(S(),P()),e,i),u);break;default:H+="/"}break;case 123*w:l[p++]=g(H)*A;case 125*w:case 59:case 0:switch(I){case 0:case 125:k=0;case 59+x:-1==A&&(H=c(H,/\f/g,"")),v>0&&g(H)-m&&f(v>32?J(H+";",a,i,m-1):J(c(H," ","")+";",a,i,m-2),u);break;case 59:H+=";";default:if(f(R=q(H,e,i,p,x,s,l,T,M=[],E=[],m),r),123===I)if(0===x)U(H,e,R,R,M,r,m,l,E);else switch(99===b&&110===d(H,3)?100:b){case 100:case 109:case 115:U(t,R,R,a&&f(q(t,R,R,0,0,s,l,T,s,M=[],m),E),s,E,m,l,a?M:E);break;default:U(H,R,R,R,[""],E,0,l,E)}}p=x=v=0,w=A=1,T=H="",m=o;break;case 58:m=1+g(H),v=y;default:if(w<1)if(123==I)--w;else if(125==I&&0==w++&&125==C())continue;switch(H+=n(I),I*w){case 38:A=x>0?1:(H+="\f",-1);break;case 44:l[p++]=(g(H)-1)*A,A=1;break;case 64:45===L()&&(H+=z(S())),b=L(),x=m=g(T=H+=Y(P())),I++;break;case 45:45===y&&2==g(H)&&(w=0)}}return r}function q(t,e,i,a,s,n,o,h,d,g,f){for(var x=s-1,m=0===s?n:[""],b=p(m),v=0,y=0,w=0;v<a;++v)for(var A=0,C=u(t,x+1,x=r(y=o[v])),S=t;A<b;++A)(S=l(y>0?m[A]+" "+C:c(C,/&\f/g,m[A])))&&(d[w++]=S);return k(t,e,i,0===s?B:h,d,g,f)}function Z(t,e,i){return k(t,e,i,W,n(y),u(t,2,-2),0)}function J(t,e,i,a){return k(t,e,i,$,u(t,0,a),u(t,a+1,-1),a)}var K=function(t,e,i){for(var a=0,s=0;a=s,s=L(),38===a&&12===s&&(e[i]=1),!T(s);)S();return I(t,v)},Q=new WeakMap,tt=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,i=t.parent,a=t.column===i.column&&t.line===i.line;"rule"!==i.type;)if(!(i=i.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||Q.get(i))&&!a){Q.set(t,!0);for(var s=[],r=function(t,e){return E(function(t,e){var i=-1,a=44;do{switch(T(a)){case 0:38===a&&12===L()&&(e[i]=1),t[i]+=K(v-1,e,i);break;case 2:t[i]+=z(a);break;case 4:if(44===a){t[++i]=58===L()?"&\f":"",e[i]=t[i].length;break}default:t[i]+=n(a)}}while(a=S());return t}(M(t),e))}(e,s),o=i.props,l=0,c=0;l<r.length;l++)for(var h=0;h<o.length;h++,c++)t.props[c]=s[l]?r[l].replace(/&\f/g,o[h]):o[h]+" "+r[l]}}},et=function(t){if("decl"===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return="",t.value="")}};function it(t,e){switch(function(t,e){return 45^d(t,0)?(((e<<2^d(t,0))<<2^d(t,1))<<2^d(t,2))<<2^d(t,3):0}(t,e)){case 5103:return D+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return D+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return D+t+N+t+H+t+t;case 6828:case 4268:return D+t+H+t+t;case 6165:return D+t+H+"flex-"+t+t;case 5187:return D+t+c(t,/(\w+).+(:[^]+)/,D+"box-$1$2"+H+"flex-$1$2")+t;case 5443:return D+t+H+"flex-item-"+c(t,/flex-|-self/,"")+t;case 4675:return D+t+H+"flex-line-pack"+c(t,/align-content|flex-|-self/,"")+t;case 5548:return D+t+H+c(t,"shrink","negative")+t;case 5292:return D+t+H+c(t,"basis","preferred-size")+t;case 6060:return D+"box-"+c(t,"-grow","")+D+t+H+c(t,"grow","positive")+t;case 4554:return D+c(t,/([^-])(transform)/g,"$1"+D+"$2")+t;case 6187:return c(c(c(t,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),t,"")+t;case 5495:case 3959:return c(t,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return c(c(t,/(.+:)(flex-)?(.*)/,D+"box-pack:$3"+H+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+t+t;case 4095:case 3583:case 4068:case 2532:return c(t,/(.+)-inline(.+)/,D+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(g(t)-1-e>6)switch(d(t,e+1)){case 109:if(45!==d(t,e+4))break;case 102:return c(t,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+N+(108==d(t,e+3)?"$3":"$2-$3"))+t;case 115:return~h(t,"stretch")?it(c(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==d(t,e+1))break;case 6444:switch(d(t,g(t)-3-(~h(t,"!important")&&10))){case 107:return c(t,":",":"+D)+t;case 101:return c(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(45===d(t,14)?"inline-":"")+"box$3$1"+D+"$2$3$1"+H+"$2box$3")+t}break;case 5936:switch(d(t,e+11)){case 114:return D+t+H+c(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return D+t+H+c(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return D+t+H+c(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return D+t+H+t+t}return t}var at=[function(t,e,i,a){if(t.length>-1&&!t.return)switch(t.type){case $:t.return=it(t.value,t.length);break;case j:return _([A(t,{value:c(t.value,"@","@"+D)})],a);case B:if(t.length)return function(t,e){return t.map(e).join("")}(t.props,(function(e){switch(function(t,e){return(t=/(::plac\w+|:read-\w+)/.exec(t))?t[0]:t}(e)){case":read-only":case":read-write":return _([A(t,{props:[c(e,/:(read-\w+)/,":"+N+"$1")]})],a);case"::placeholder":return _([A(t,{props:[c(e,/:(plac\w+)/,":"+D+"input-$1")]}),A(t,{props:[c(e,/:(plac\w+)/,":"+N+"$1")]}),A(t,{props:[c(e,/:(plac\w+)/,H+"input-$1")]})],a)}return""}))}}];const st=function(t){var e=t.key;if("css"===e){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,(function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))}))}var s,r,n=t.stylisPlugins||at,o={},l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),(function(t){for(var e=t.getAttribute("data-emotion").split(" "),i=1;i<e.length;i++)o[e[i]]=!0;l.push(t)}));var c,h,d,u,g=[V,(u=function(t){c.insert(t)},function(t){t.root||(t=t.return)&&u(t)})],f=(h=[tt,et].concat(n,g),d=p(h),function(t,e,i,a){for(var s="",r=0;r<d;r++)s+=h[r](t,e,i,a)||"";return s});r=function(t,e,i,a){c=i,_(G(t?t+"{"+e.styles+"}":e.styles),f),a&&(x.inserted[e.name]=!0)};var x={key:e,sheet:new a({key:e,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:r};return x.sheet.hydrate(l),x};var rt=function(t,e,i){var a=t.key+"-"+e.name;!1===i&&void 0===t.registered[a]&&(t.registered[a]=e.styles)},nt=function(t,e,i){rt(t,e,i);var a=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var s=e;do{t.insert(e===s?"."+a:"",s,t.sheet,!0),s=s.next}while(void 0!==s)}};const ot=function(t){for(var e,i=0,a=0,s=t.length;s>=4;++a,s-=4)e=1540483477*(65535&(e=255&t.charCodeAt(a)|(255&t.charCodeAt(++a))<<8|(255&t.charCodeAt(++a))<<16|(255&t.charCodeAt(++a))<<24))+(59797*(e>>>16)<<16),i=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&i)+(59797*(i>>>16)<<16);switch(s){case 3:i^=(255&t.charCodeAt(a+2))<<16;case 2:i^=(255&t.charCodeAt(a+1))<<8;case 1:i=1540483477*(65535&(i^=255&t.charCodeAt(a)))+(59797*(i>>>16)<<16)}return(((i=1540483477*(65535&(i^=i>>>13))+(59797*(i>>>16)<<16))^i>>>15)>>>0).toString(36)},lt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ct=/[A-Z]|^ms/g,ht=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dt=function(t){return 45===t.charCodeAt(1)},ut=function(t){return null!=t&&"boolean"!=typeof t},gt=function(t){var e=Object.create(null);return function(t){return void 0===e[t]&&(e[t]=dt(i=t)?i:i.replace(ct,"-$&").toLowerCase()),e[t];var i}}(),pt=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(ht,(function(t,e,i){return xt={name:e,styles:i,next:xt},e}))}return 1===lt[t]||dt(t)||"number"!=typeof e||0===e?e:e+"px"};function ft(t,e,i){if(null==i)return"";if(void 0!==i.__emotion_styles)return i;switch(typeof i){case"boolean":return"";case"object":if(1===i.anim)return xt={name:i.name,styles:i.styles,next:xt},i.name;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)xt={name:a.name,styles:a.styles,next:xt},a=a.next;return i.styles+";"}return function(t,e,i){var a="";if(Array.isArray(i))for(var s=0;s<i.length;s++)a+=ft(t,e,i[s])+";";else for(var r in i){var n=i[r];if("object"!=typeof n)null!=e&&void 0!==e[n]?a+=r+"{"+e[n]+"}":ut(n)&&(a+=gt(r)+":"+pt(r,n)+";");else if(!Array.isArray(n)||"string"!=typeof n[0]||null!=e&&void 0!==e[n[0]]){var o=ft(t,e,n);switch(r){case"animation":case"animationName":a+=gt(r)+":"+o+";";break;default:a+=r+"{"+o+"}"}}else for(var l=0;l<n.length;l++)ut(n[l])&&(a+=gt(r)+":"+pt(r,n[l])+";")}return a}(t,e,i);case"function":if(void 0!==t){var s=xt,r=i(t);return xt=s,ft(t,e,r)}}if(null==e)return i;var n=e[i];return void 0!==n?n:i}var xt,mt=/label:\s*([^\s;\n{]+)\s*(;|$)/g,bt=function(t,e,i){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var a=!0,s="";xt=void 0;var r=t[0];null==r||void 0===r.raw?(a=!1,s+=ft(i,e,r)):s+=r[0];for(var n=1;n<t.length;n++)s+=ft(i,e,t[n]),a&&(s+=r[n]);mt.lastIndex=0;for(var o,l="";null!==(o=mt.exec(s));)l+="-"+o[1];return{name:ot(s)+l,styles:s,next:xt}},vt=!!e.useInsertionEffect&&e.useInsertionEffect,yt=vt||function(t){return t()},wt=vt||e.useLayoutEffect,kt={}.hasOwnProperty,At=(0,e.createContext)("undefined"!=typeof HTMLElement?st({key:"css"}):null);At.Provider;var Ct=function(t){return(0,e.forwardRef)((function(i,a){var s=(0,e.useContext)(At);return t(i,s,a)}))},St=(0,e.createContext)({}),Lt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Pt=function(t){var e=t.cache,i=t.serialized,a=t.isStringTag;return rt(e,i,a),yt((function(){return nt(e,i,a)})),null},It=Ct((function(t,i,a){var s=t.css;"string"==typeof s&&void 0!==i.registered[s]&&(s=i.registered[s]);var r=t[Lt],n=[s],o="";"string"==typeof t.className?o=function(t,e,i){var a="";return i.split(" ").forEach((function(i){void 0!==t[i]?e.push(t[i]+";"):a+=i+" "})),a}(i.registered,n,t.className):null!=t.className&&(o=t.className+" ");var l=bt(n,void 0,(0,e.useContext)(St));o+=i.key+"-"+l.name;var c={};for(var h in t)kt.call(t,h)&&"css"!==h&&h!==Lt&&(c[h]=t[h]);return c.ref=a,c.className=o,(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Pt,{cache:i,serialized:l,isStringTag:"string"==typeof r}),(0,e.createElement)(r,c))}));s(8679);var Tt=function(t,i){var a=arguments;if(null==i||!kt.call(i,"css"))return e.createElement.apply(void 0,a);var s=a.length,r=new Array(s);r[0]=It,r[1]=function(t,e){var i={};for(var a in e)kt.call(e,a)&&(i[a]=e[a]);return i[Lt]=t,i}(t,i);for(var n=2;n<s;n++)r[n]=a[n];return e.createElement.apply(null,r)},Mt=Ct((function(t,i){var a=t.styles,s=bt([a],void 0,(0,e.useContext)(St)),r=(0,e.useRef)();return wt((function(){var t=i.key+"-global",e=new i.sheet.constructor({key:t,nonce:i.sheet.nonce,container:i.sheet.container,speedy:i.sheet.isSpeedy}),a=!1,n=document.querySelector('style[data-emotion="'+t+" "+s.name+'"]');return i.sheet.tags.length&&(e.before=i.sheet.tags[0]),null!==n&&(a=!0,n.setAttribute("data-emotion",t),e.hydrate([n])),r.current=[e,a],function(){e.flush()}}),[i]),wt((function(){var t=r.current,e=t[0];if(t[1])t[1]=!1;else{if(void 0!==s.next&&nt(i,s.next,!0),e.tags.length){var a=e.tags[e.tags.length-1].nextElementSibling;e.before=a,e.flush()}i.insert("",s,e,!1)}}),[i,s.name]),null}));function Et(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return bt(e)}const zt=t=>t.replace(/([A-Z])/g,(t=>`-${t[0].toLowerCase()}`)),Ot=t=>{if("undefined"==typeof document)return!0;{const e="on"+t;let i=e in document;if(!i){const t=document.createElement("div");t.setAttribute(e,"return;"),i="function"==typeof t[e]}return i}},Xt=(t,e,i)=>{const a=t.__events||(t.__events={}),s=a[e];s&&t.removeEventListener(e,s),t.addEventListener(e,a[e]=function(t){i&&i.call(this,t)})},Rt=t=>{const e=new Map;return t.forEach((t=>e.set(t,t))),e},Ft=(...t)=>e=>{t.forEach((t=>{((t,e)=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})(t,e)}))};const Yt=(t,a,s,r)=>{void 0!==r&&r();const n=t.toLowerCase().split("-").map((t=>t.charAt(0).toUpperCase()+t.slice(1))).join(""),o=class extends i().Component{constructor(t){super(t),this.setComponentElRef=t=>{this.componentEl=t}}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(t){((t,e,i={})=>{if(t instanceof Element){const a=((t,e,i)=>{const a=e.className||e.class,s=i.className||i.class,r=Rt(t),n=Rt(a?a.split(" "):[]),o=Rt(s?s.split(" "):[]),l=[];return r.forEach((t=>{n.has(t)?(l.push(t),n.delete(t)):o.has(t)||l.push(t)})),n.forEach((t=>l.push(t))),l.join(" ")})(t.classList,e,i);""!==a&&(t.className=a),Object.keys(e).forEach((i=>{if("children"!==i&&"style"!==i&&"ref"!==i&&"class"!==i&&"className"!==i&&"forwardedRef"!==i)if(0===i.indexOf("on")&&i[2]===i[2].toUpperCase()){const a=i.substring(2),s=a[0].toLowerCase()+a.substring(1);Ot(s)||Xt(t,s,e[i])}else t[i]=e[i],"string"==typeof e[i]&&t.setAttribute(zt(i),e[i])}))}})(this.componentEl,this.props,t)}render(){const i=this.props,{children:a,forwardedRef:r,style:n,className:o,ref:l}=i,c=function(t,e){var i={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(i[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(t);s<a.length;s++)e.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(t,a[s])&&(i[a[s]]=t[a[s]])}return i}(i,["children","forwardedRef","style","className","ref"]);let h=Object.keys(c).reduce(((t,e)=>{const i=c[e];if(0===e.indexOf("on")&&e[2]===e[2].toUpperCase()){const a=e.substring(2).toLowerCase();"undefined"!=typeof document&&Ot(a)&&(t[e]=i)}else{const a=typeof i;"string"!==a&&"boolean"!==a&&"number"!==a||(t[zt(e)]=i)}return t}),{});s&&(h=s(this.props,h));const d=Object.assign(Object.assign({},h),{ref:Ft(r,this.setComponentElRef),style:n});return(0,e.createElement)(t,d,a)}static get displayName(){return n}};return a&&(o.contextType=a),((t,e)=>{const a=(e,a)=>i().createElement(t,Object.assign({},e,{forwardedRef:a}));return a.displayName=e,i().forwardRef(a)})(o,n)};var Ht=s(706),Nt=s(1542);const Dt=(t="")=>{var e;if(t||(null===(e=null===window||void 0===window?void 0:window.scIcons)||void 0===e?void 0:e.path))return(0,Nt.r)("default",{resolver:function(e){var i;const a=t||(null===(i=null===window||void 0===window?void 0:window.scIcons)||void 0===i?void 0:i.path);return`${null==a?void 0:a.replace(/\/$/,"")}/${e}.svg`},mutator:function(t){return t.setAttribute("fill","none")}})};window.registerSureCartIconPath=Dt,window.registerSureCartIconLibrary=Nt.r,Dt(),function(){if("undefined"!=typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}(),"undefined"==typeof window?Promise.resolve():(0,Ht.p)().then((()=>(0,Ht.b)(JSON.parse('[["sc-checkout",[[4,"sc-checkout",{"prices":[16],"mode":[1],"formId":[2,"form-id"],"modified":[1],"currencyCode":[1,"currency-code"],"persistSession":[4,"persist-session"],"successUrl":[1,"success-url"],"customer":[1040],"alignment":[1],"taxProtocol":[16],"loggedIn":[1028,"logged-in"],"disableComponentsValidation":[4,"disable-components-validation"],"processors":[1040],"manualPaymentMethods":[16],"editLineItems":[4,"edit-line-items"],"removeLineItems":[4,"remove-line-items"],"abandonedCheckoutReturnUrl":[1,"abandoned-checkout-return-url"],"stripePaymentElement":[4,"stripe-payment-element"],"loadingText":[16],"successText":[16],"pricesEntities":[32],"productsEntities":[32],"checkoutState":[32],"error":[32],"processor":[32],"method":[32],"isManualProcessor":[32],"paymentIntents":[32],"isDuplicate":[32],"submit":[64],"validate":[64]},[[0,"scSetPaymentIntent","handleSetPaymentIntent"],[0,"scUpdateOrderState","handleOrderStateUpdate"],[0,"scSetMethod","handleMethodChange"],[0,"scAddEntities","handleAddEntities"]]]]],["sc-subscription",[[1,"sc-subscription",{"subscriptionId":[1,"subscription-id"],"showCancel":[4,"show-cancel"],"heading":[1],"query":[16],"protocol":[16],"subscription":[1040],"loading":[32],"cancelModal":[32],"busy":[32],"error":[32]}]]],["sc-order",[[1,"sc-order",{"orderId":[1,"order-id"],"customerIds":[16],"heading":[1],"order":[32],"purchases":[32],"loading":[32],"busy":[32],"error":[32]}]]],["sc-upcoming-invoice",[[1,"sc-upcoming-invoice",{"heading":[1],"successUrl":[1,"success-url"],"subscriptionId":[1,"subscription-id"],"priceId":[1,"price-id"],"quantity":[2],"discount":[1040],"payment_method":[1040],"quantityUpdatesEnabled":[4,"quantity-updates-enabled"],"adHocAmount":[2,"ad-hoc-amount"],"loading":[32],"busy":[32],"error":[32],"price":[32],"invoice":[32],"couponError":[32]}]]],["sc-payment-methods-list",[[1,"sc-payment-methods-list",{"query":[16],"heading":[1],"isCustomer":[4,"is-customer"],"paymentMethods":[32],"loading":[32],"busy":[32],"error":[32],"hasTitleSlot":[32],"editPaymentMethod":[32],"deletePaymentMethod":[32],"cascadeDefaultPaymentMethod":[32]}]]],["sc-customer-edit",[[1,"sc-customer-edit",{"heading":[1],"customer":[1040],"successUrl":[1,"success-url"],"loading":[32],"error":[32]}]]],["sc-subscription-payment-method",[[1,"sc-subscription-payment-method",{"heading":[1],"subscription":[16],"paymentMethods":[32],"error":[32],"loading":[32],"busy":[32],"method":[32]}]]],["sc-subscriptions-list",[[1,"sc-subscriptions-list",{"query":[1040],"allLink":[1,"all-link"],"heading":[1],"isCustomer":[4,"is-customer"],"cancelBehavior":[1,"cancel-behavior"],"subscriptions":[32],"loading":[32],"busy":[32],"error":[32],"pagination":[32]}]]],["sc-invoices-list",[[1,"sc-invoices-list",{"query":[1040],"allLink":[1,"all-link"],"heading":[1],"invoices":[32],"loading":[32],"busy":[32],"error":[32],"pagination":[32]}]]],["sc-orders-list",[[1,"sc-orders-list",{"query":[1040],"allLink":[1,"all-link"],"heading":[1],"isCustomer":[4,"is-customer"],"orders":[32],"loading":[32],"busy":[32],"error":[32],"pagination":[32]}]]],["sc-subscription-payment",[[1,"sc-subscription-payment",{"subscriptionId":[1,"subscription-id"],"backUrl":[1,"back-url"],"successUrl":[1,"success-url"],"subscription":[1040],"paymentMethods":[16],"customerIds":[16],"loading":[32],"busy":[32],"error":[32]}]]],["sc-dashboard-downloads-list",[[1,"sc-dashboard-downloads-list",{"query":[1032],"allLink":[1,"all-link"],"heading":[1],"isCustomer":[4,"is-customer"],"requestNonce":[1,"request-nonce"],"purchases":[32],"loading":[32],"busy":[32],"error":[32],"pagination":[32]}]]],["sc-charges-list",[[1,"sc-charges-list",{"query":[1040],"heading":[1],"showPagination":[4,"show-pagination"],"allLink":[1,"all-link"],"charges":[32],"loading":[32],"loaded":[32],"error":[32],"pagination":[32]}]]],["sc-order-confirmation-details",[[1,"sc-order-confirmation-details",{"order":[16],"loading":[4]}]]],["sc-subscription-switch",[[1,"sc-subscription-switch",{"query":[16],"heading":[1],"productGroupId":[16],"productId":[1,"product-id"],"subscription":[16],"filterAbove":[2,"filter-above"],"selectedPrice":[32],"products":[32],"prices":[32],"filter":[32],"hasFilters":[32],"showFilters":[32],"loading":[32],"busy":[32],"error":[32]}]]],["sc-dashboard-customer-details",[[1,"sc-dashboard-customer-details",{"customerId":[1,"customer-id"],"heading":[1],"customer":[32],"loading":[32],"error":[32]}]]],["sc-licenses-list",[[1,"sc-licenses-list",{"licenses":[16],"activations":[16],"heading":[1],"copied":[4]}]]],["sc-order-confirmation-customer",[[1,"sc-order-confirmation-customer",{"order":[16],"heading":[1],"customer":[16],"error":[1],"loading":[4]}]]],["sc-order-coupon-form",[[1,"sc-order-coupon-form",{"label":[1],"loading":[4],"busy":[4],"error":[8],"order":[16],"forceOpen":[4,"force-open"],"open":[32],"value":[32],"errorMessage":[32]}]]],["sc-payment",[[1,"sc-payment",{"stripePaymentElement":[4,"stripe-payment-element"],"disabledProcessorTypes":[16],"secureNotice":[1,"secure-notice"],"label":[1],"hideTestModeBadge":[4,"hide-test-mode-badge"]}]]],["sc-wordpress-user-edit",[[1,"sc-wordpress-user-edit",{"heading":[1],"successUrl":[1,"success-url"],"user":[16],"loading":[32],"error":[32]}]]],["sc-login-form",[[1,"sc-login-form",{"step":[32],"email":[32],"password":[32],"verifyCode":[32],"loading":[32],"error":[32]}]]],["sc-password-nag",[[1,"sc-password-nag",{"open":[1028],"type":[513],"successUrl":[1,"success-url"],"set":[32],"loading":[32],"error":[32],"success":[32]}]]],["sc-subscription-ad-hoc-confirm",[[0,"sc-subscription-ad-hoc-confirm",{"heading":[1],"price":[16],"busy":[32]}]]],["sc-downloads-list",[[1,"sc-downloads-list",{"downloads":[16],"customerId":[1,"customer-id"],"heading":[1],"busy":[32],"error":[32]}]]],["sc-mollie-add-method",[[1,"sc-mollie-add-method",{"country":[1],"successUrl":[1,"success-url"],"processorId":[1,"processor-id"],"currency":[1],"liveMode":[4,"live-mode"],"customerId":[1,"customer-id"],"methods":[32],"loading":[32],"error":[32],"selectedMethodId":[32],"paymentIntent":[32]}]]],["sc-wordpress-password-edit",[[1,"sc-wordpress-password-edit",{"heading":[1],"successUrl":[1,"success-url"],"user":[16],"loading":[32],"error":[32]}]]],["sc-cart",[[1,"sc-cart",{"formId":[513,"form-id"],"header":[1],"checkoutLink":[1,"checkout-link"],"cartTemplate":[1,"cart-template"],"mode":[1],"checkoutUrl":[1,"checkout-url"],"alwaysShow":[4,"always-show"],"open":[32],"uiState":[32],"error":[32]},[[0,"scSetState","handleSetState"],[0,"scError","handleErrorEvent"],[0,"scCloseCart","handleCloseCart"]]]]],["sc-custom-order-price-input",[[0,"sc-custom-order-price-input",{"priceId":[513,"price-id"],"price":[1040],"loading":[4],"busy":[4],"label":[1],"placeholder":[1],"required":[4],"help":[1],"showCode":[516,"show-code"],"lineItems":[16],"fetching":[32],"lineItem":[32]},[[0,"scBlur","handleBlur"]]]]],["sc-donation-choices",[[1,"sc-donation-choices",{"priceId":[513,"price-id"],"defaultAmount":[1,"default-amount"],"currencyCode":[1,"currency-code"],"lineItems":[16],"loading":[4],"busy":[4],"removeInvalid":[4,"remove-invalid"],"label":[1],"lineItem":[32],"error":[32],"showCustomAmount":[32],"reportValidity":[64]},[[0,"scChange","handleChange"]]]]],["sc-price-choice",[[0,"sc-price-choice",{"priceId":[513,"price-id"],"price":[1040],"loading":[1028],"label":[1],"showLabel":[4,"show-label"],"showPrice":[4,"show-price"],"showControl":[4,"show-control"],"description":[1],"prices":[16],"products":[16],"order":[16],"quantity":[2],"type":[1],"checked":[1540],"error":[16],"isAdHoc":[1040],"errorMessage":[32],"adHocErrorMessage":[32],"product":[32]}]]],["sc-wordpress-user",[[1,"sc-wordpress-user",{"heading":[1],"user":[16]}]]],["sc-order-submit",[[4,"sc-order-submit",{"busy":[4],"loading":[4],"paying":[4],"type":[513],"size":[513],"full":[4],"icon":[1],"showTotal":[4,"show-total"],"mode":[1],"processors":[16],"order":[16],"currencyCode":[1,"currency-code"],"processor":[1]}]]],["sc-express-payment",[[0,"sc-express-payment",{"processor":[1],"formId":[8,"form-id"],"busy":[4],"order":[16],"dividerText":[1,"divider-text"],"debug":[4],"hasPaymentOptions":[1028,"has-payment-options"]},[[0,"scPaymentRequestLoaded","onPaymentRequestLoaded"]]]]],["sc-line-items",[[1,"sc-line-items",{"order":[16],"busy":[4],"prices":[16],"editable":[4],"removable":[4],"editLineItems":[4,"edit-line-items"],"removeLineItems":[4,"remove-line-items"],"lockedChoices":[16]}]]],["sc-stripe-add-method",[[0,"sc-stripe-add-method",{"liveMode":[4,"live-mode"],"customerId":[1,"customer-id"],"successUrl":[1,"success-url"],"loading":[32],"loaded":[32],"error":[32],"paymentIntent":[32]}]]],["sc-order-confirmation",[[1,"sc-order-confirmation",{"order":[1040],"loading":[32],"error":[32]}]]],["sc-order-summary",[[1,"sc-order-summary",{"order":[16],"busy":[4],"empty":[4],"closedText":[1,"closed-text"],"openText":[1,"open-text"],"collapsible":[4],"collapsedOnMobile":[4,"collapsed-on-mobile"],"collapsed":[1028]}]]],["sc-upgrade-required",[[1,"sc-upgrade-required",{"size":[513],"required":[516],"open":[32]}]]],["sc-cart-form",[[4,"sc-cart-form",{"quantity":[1026],"priceId":[1,"price-id"],"mode":[1],"formId":[513,"form-id"],"order":[32],"busy":[32],"error":[32]}]]],["sc-cart-form-submit",[[4,"sc-cart-form-submit",{"busy":[4],"type":[513],"size":[513],"full":[4],"icon":[1]}]]],["sc-cart-submit",[[4,"sc-cart-submit",{"busy":[4],"type":[513],"size":[513],"full":[4],"checkoutLink":[1,"checkout-link"],"icon":[1]}]]],["sc-customer-email",[[1,"sc-customer-email",{"loggedIn":[4,"logged-in"],"order":[16],"trackingConfirmationMessage":[1,"tracking-confirmation-message"],"customer":[16],"size":[513],"value":[1025],"pill":[516],"label":[1],"showLabel":[4,"show-label"],"help":[1],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"invalid":[1540],"autofocus":[4],"hasFocus":[1540,"has-focus"],"abandonedCheckoutEnabled":[4,"abandoned-checkout-enabled"],"reportValidity":[64]}]]],["sc-customer-firstname",[[1,"sc-customer-firstname",{"loggedIn":[4,"logged-in"],"order":[16],"customer":[16],"size":[513],"value":[1025],"pill":[516],"label":[1],"showLabel":[4,"show-label"],"help":[1],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"invalid":[1540],"autofocus":[4],"hasFocus":[1540,"has-focus"],"reportValidity":[64]}]]],["sc-customer-lastname",[[1,"sc-customer-lastname",{"loggedIn":[4,"logged-in"],"order":[16],"customer":[16],"size":[513],"value":[1025],"pill":[516],"label":[1],"showLabel":[4,"show-label"],"help":[1],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"invalid":[1540],"autofocus":[4],"hasFocus":[1540,"has-focus"],"reportValidity":[64]}]]],["sc-customer-name",[[1,"sc-customer-name",{"loggedIn":[4,"logged-in"],"order":[16],"customer":[16],"size":[513],"value":[1025],"pill":[516],"label":[1],"showLabel":[4,"show-label"],"help":[1],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"invalid":[1540],"autofocus":[4],"hasFocus":[1540,"has-focus"],"reportValidity":[64]}]]],["sc-order-password",[[1,"sc-order-password",{"loggedIn":[4,"logged-in"],"size":[513],"value":[1025],"pill":[516],"label":[1],"showLabel":[4,"show-label"],"help":[1],"placeholder":[1],"disabled":[516],"readonly":[516],"required":[516],"autofocus":[4],"emailExists":[4,"email-exists"],"confirmation":[516],"confirmationLabel":[1,"confirmation-label"],"confirmationPlaceholder":[1,"confirmation-placeholder"],"confirmationHelp":[1,"confirmation-help"],"reportValidity":[64]}]]],["sc-price-choices",[[4,"sc-price-choices",{"label":[1],"columns":[2],"required":[4],"order":[16]},[[0,"scChange","handleChange"]]]]],["sc-stripe-element",[[0,"sc-stripe-element",{"disabled":[4],"order":[16],"accountId":[1,"account-id"],"publishableKey":[1,"publishable-key"],"mode":[1],"size":[513],"label":[1],"secureText":[1,"secure-text"],"showLabel":[4,"show-label"],"hasFocus":[1540,"has-focus"],"selectedProcessorId":[1,"selected-processor-id"],"formState":[1,"form-state"],"error":[32],"confirming":[32],"confirmCardPayment":[64],"confirmCardSetup":[64]}]]],["sc-button-group",[[1,"sc-button-group",{"label":[1],"separate":[4]}]]],["sc-cart-header",[[1,"sc-cart-header",{"lineItems":[16]}]]],["sc-line-item-bump",[[1,"sc-line-item-bump",{"order":[16],"label":[1],"loading":[4]}]]],["sc-order-detail",[[1,"sc-order-detail",{"order":[16],"value":[1],"fallback":[1],"metaKey":[1,"meta-key"],"loading":[4],"label":[1]}]]],["sc-paypal-add-method",[[0,"sc-paypal-add-method",{"liveMode":[4,"live-mode"],"customerId":[1,"customer-id"],"successUrl":[1,"success-url"],"currency":[1],"loading":[32],"loaded":[32],"error":[32],"paymentIntent":[32]}]]],["sc-stripe-payment-element",[[0,"sc-stripe-payment-element",{"stripePaymentIntent":[16],"order":[16],"address":[4],"successUrl":[1,"success-url"],"formState":[1,"form-state"],"selectedProcessorId":[1,"selected-processor-id"],"error":[32],"loaded":[32],"confirming":[32],"confirm":[64]}]]],["sc-badge-notice",[[1,"sc-badge-notice",{"type":[1],"label":[1],"size":[1]}]]],["sc-breadcrumb",[[1,"sc-breadcrumb",{"href":[1],"target":[1],"rel":[1],"hasPrefix":[32],"hasSuffix":[32]}]]],["sc-breadcrumbs",[[1,"sc-breadcrumbs",{"label":[1]}]]],["sc-premium-tag",[[1,"sc-premium-tag",{"size":[513]}]]],["sc-price-range",[[1,"sc-price-range",{"prices":[16],"minPrice":[32],"maxPrice":[32]}]]],["sc-cart-loader",[[1,"sc-cart-loader",{"formId":[513,"form-id"],"mode":[1],"template":[1]}]]],["sc-checkbox",[[1,"sc-checkbox",{"name":[1],"value":[1],"disabled":[516],"edit":[516],"required":[516],"checked":[1540],"indeterminate":[1540],"invalid":[1540],"hasFocus":[32],"triggerClick":[64],"triggerFocus":[64],"triggerBlur":[64],"reportValidity":[64]}]]],["sc-conditional-form",[[1,"sc-conditional-form",{"rule_groups":[16]}]]],["sc-consumer",[[0,"sc-consumer",{"renderer":[8],"context":[32],"promise":[32],"resolvePromise":[32]}]]],["sc-form-row",[[1,"sc-form-row",{"width":[32]}]]],["sc-format-interval",[[0,"sc-format-interval",{"value":[2],"interval":[1],"every":[1],"fallback":[1]}]]],["sc-menu-divider",[[1,"sc-menu-divider"]]],["sc-provider",[[4,"sc-provider",{"STENCIL_CONTEXT":[16],"consumers":[32]},[[0,"mountConsumer","mountConsumer"]]]]],["sc-radio",[[1,"sc-radio",{"name":[1],"value":[1],"disabled":[1540],"checked":[1540],"required":[516],"invalid":[1540],"edit":[4],"hasFocus":[32],"ceClick":[64],"reportValidity":[64]}]]],["sc-radio-group",[[1,"sc-radio-group",{"label":[1],"invalid":[1540],"value":[1537],"required":[4],"reportValidity":[64]},[[0,"click","handleRadioClick"]]]]],["sc-secure-notice",[[1,"sc-secure-notice"]]],["sc-tab",[[1,"sc-tab",{"panel":[513],"href":[513],"active":[516],"disabled":[516],"count":[1],"hasPrefix":[32],"hasSuffix":[32],"triggerFocus":[64],"triggerBlur":[64]}]]],["sc-tab-group",[[1,"sc-tab-group",{"activeTab":[32]}]]],["sc-tab-panel",[[1,"sc-tab-panel",{"name":[513],"active":[516]}]]],["sc-table-head",[[1,"sc-table-head"]]],["sc-checkout-mollie-payment",[[1,"sc-checkout-mollie-payment",{"processorId":[1,"processor-id"],"method":[1],"error":[32],"methods":[32]}]]],["sc-stripe-payment-request",[[4,"sc-stripe-payment-request",{"stripeAccountId":[1,"stripe-account-id"],"publishableKey":[1,"publishable-key"],"country":[1],"currencyCode":[1,"currency-code"],"order":[16],"prices":[16],"label":[1],"amount":[2],"theme":[1],"error":[16],"paymentMethod":[1,"payment-method"],"debug":[4],"formId":[8,"form-id"],"loaded":[32],"debugError":[32]}]]],["sc-paypal-buttons",[[1,"sc-paypal-buttons",{"clientId":[1,"client-id"],"busy":[4],"merchantId":[1,"merchant-id"],"merchantInitiated":[4,"merchant-initiated"],"mode":[1],"order":[1040],"buttons":[16],"label":[1],"color":[1],"loaded":[32]}]]],["sc-toggles",[[1,"sc-toggles",{"accordion":[4],"collapsible":[4],"theme":[1]},[[0,"scShow","handleShowChange"]]]]],["sc-tooltip",[[1,"sc-tooltip",{"open":[1028],"width":[1],"text":[1],"freeze":[4],"padding":[2],"type":[513],"top":[32],"left":[32]},[[9,"scroll","handleWindowScroll"],[9,"resize","handleWindowScroll"]]]]],["sc-cancel-dialog_2",[[1,"sc-subscription-next-payment",{"subscription":[16],"period":[32],"loading":[32],"error":[32],"details":[32]}],[1,"sc-cancel-dialog",{"open":[4],"protocol":[16],"subscription":[16],"reasons":[32],"reason":[32],"step":[32],"comment":[32]}]]],["sc-order-confirmation-line-items_2",[[1,"sc-order-confirmation-totals",{"order":[16]}],[1,"sc-order-confirmation-line-items",{"order":[16],"loading":[4]}]]],["sc-coupon-form",[[1,"sc-coupon-form",{"label":[1],"loading":[4],"busy":[4],"error":[1025],"forceOpen":[4,"force-open"],"discount":[16],"currency":[1],"discountAmount":[2,"discount-amount"],"open":[1028],"value":[32]}]]],["sc-customer-details",[[1,"sc-customer-details",{"heading":[1],"editLink":[1,"edit-link"],"customer":[16],"loading":[4],"error":[1]}]]],["sc-line-item-total",[[1,"sc-line-item-total",{"total":[1],"loading":[4],"order":[16],"size":[1]}]]],["sc-heading_2",[[1,"sc-order-confirm-components-validator",{"checkout":[16],"hasManualInstructions":[32]}],[1,"sc-heading",{"size":[1]}]]],["sc-checkout-form-errors",[[1,"sc-checkout-form-errors",{"checkoutState":[1,"checkout-state"],"error":[16]}]]],["sc-switch",[[1,"sc-switch",{"name":[513],"value":[1],"disabled":[516],"required":[516],"checked":[1540],"invalid":[1540],"reversed":[4],"edit":[4],"hasFocus":[32],"reportValidity":[64]}]]],["sc-order-manual-instructions",[[1,"sc-order-manual-instructions",{"manualPaymentTitle":[1,"manual-payment-title"],"manualPaymentInstructions":[1,"manual-payment-instructions"]}]]],["sc-toggle",[[1,"sc-toggle",{"open":[516],"summary":[1],"disabled":[516],"borderless":[516],"shady":[516],"showControl":[4,"show-control"],"showIcon":[4,"show-icon"],"collapsible":[4]}]]],["sc-table_3",[[1,"sc-table"],[1,"sc-table-cell"],[1,"sc-table-row",{"href":[1]}]]],["sc-cart-icon_4",[[1,"sc-error",{"error":[16]},[[0,"scError","handleErrorEvent"]]],[1,"sc-cart-icon",{"icon":[1],"count":[2]}],[1,"sc-cart-session-provider",{"order":[16],"session":[32]},[[0,"scUpdateOrder","handleUpdateSession"],[0,"scApplyCoupon","handleCouponApply"]]],[1,"sc-drawer",{"open":[516],"label":[513],"placement":[513],"contained":[516],"noHeader":[516,"no-header"]}]]],["sc-format-number",[[0,"sc-format-number",{"value":[2],"locale":[1025],"type":[1],"noGrouping":[4,"no-grouping"],"currency":[1],"currencyDisplay":[1,"currency-display"],"minimumIntegerDigits":[2,"minimum-integer-digits"],"minimumFractionDigits":[2,"minimum-fraction-digits"],"maximumFractionDigits":[2,"maximum-fraction-digits"],"minimumSignificantDigits":[2,"minimum-significant-digits"],"maximumSignificantDigits":[2,"maximum-significant-digits"],"noConvert":[4,"no-convert"]}]]],["sc-tag",[[1,"sc-tag",{"type":[513],"size":[513],"pill":[516],"clearable":[4]}]]],["sc-skeleton",[[1,"sc-skeleton",{"effect":[1]}]]],["sc-form-control_2",[[1,"sc-input",{"squared":[4],"squaredBottom":[4,"squared-bottom"],"squaredTop":[4,"squared-top"],"squaredLeft":[4,"squared-left"],"squaredRight":[4,"squared-right"],"hidden":[4],"type":[513],"size":[513],"name":[513],"value":[1537],"pill":[516],"label":[1],"showLabel":[4,"show-label"],"help":[1],"clearable":[4],"togglePassword":[4,"toggle-password"],"placeholder":[1],"disabled":[1540],"readonly":[516],"minlength":[2],"maxlength":[2],"min":[8],"max":[8],"step":[2],"pattern":[1],"required":[516],"invalid":[1540],"autocorrect":[1],"autocomplete":[1],"autofocus":[4],"spellcheck":[4],"inputmode":[1],"hasFocus":[1540,"has-focus"],"isPasswordVisible":[32],"reportValidity":[64],"triggerFocus":[64],"setCustomValidity":[64],"triggerBlur":[64]}],[1,"sc-form-control",{"size":[513],"name":[1],"errors":[8],"showLabel":[4,"show-label"],"label":[1],"labelId":[1,"label-id"],"inputId":[1,"input-id"],"required":[4],"help":[1],"helpId":[1,"help-id"],"errorMessage":[1025,"error-message"]}]]],["sc-price-input",[[1,"sc-price-input",{"size":[513],"name":[1],"value":[1025],"pill":[516],"label":[1],"showLabel":[4,"show-label"],"help":[1],"clearable":[4],"placeholder":[1],"disabled":[516],"readonly":[516],"minlength":[2],"maxlength":[2],"max":[514],"min":[514],"required":[516],"invalid":[1540],"autofocus":[4],"hasFocus":[1540,"has-focus"],"currencyCode":[513,"currency-code"],"showCode":[4,"show-code"],"reportValidity":[64],"triggerFocus":[64],"setCustomValidity":[64],"triggerBlur":[64]}]]],["sc-order-status-badge",[[1,"sc-order-status-badge",{"status":[1],"size":[513],"pill":[516],"clearable":[4]}]]],["sc-column_2",[[1,"sc-column"],[4,"sc-columns",{"verticalAlignment":[1,"vertical-alignment"],"isStackedOnMobile":[4,"is-stacked-on-mobile"],"isFullHeight":[4,"is-full-height"],"isReversedOnMobile":[4,"is-reversed-on-mobile"]}]]],["sc-format-bytes",[[1,"sc-format-bytes",{"locale":[1],"value":[2],"unit":[1],"display":[1]}]]],["sc-line-items-provider",[[1,"sc-line-items-provider",{"order":[16],"syncItems":[32]},[[0,"scToggleLineItem","handleLineItemToggle"],[0,"scRemoveLineItem","handleLineItemRemove"],[0,"scAddLineItem","handleLineItemAdd"],[0,"scUpdateLineItem","handleLineItemUpdate"]]]]],["sc-purchase-downloads-list_2",[[1,"sc-purchase-downloads-list",{"allLink":[1,"all-link"],"heading":[1],"busy":[4],"loading":[4],"requestNonce":[1,"request-nonce"],"error":[1],"purchases":[16]}],[1,"sc-spacing"]]],["sc-flex",[[1,"sc-flex",{"alignItems":[1,"align-items"],"justifyContent":[1,"justify-content"],"flexDirection":[1,"flex-direction"],"columnGap":[1,"column-gap"],"flexWrap":[1,"flex-wrap"],"stack":[1]}]]],["sc-pagination",[[1,"sc-pagination",{"page":[2],"perPage":[2,"per-page"],"total":[2],"totalShowing":[2,"total-showing"],"totalPages":[2,"total-pages"],"hasNextPage":[32],"hasPreviousPage":[32],"from":[32],"to":[32]}]]],["sc-payment-method-choice_2",[[1,"sc-payment-method-choice",{"methodId":[513,"method-id"],"processorId":[1,"processor-id"],"isManual":[4,"is-manual"],"card":[4]}],[1,"sc-payment-selected",{"iconName":[1,"icon-name"],"label":[1]}]]],["sc-total",[[0,"sc-total",{"total":[1],"order":[16]}]]],["sc-choice",[[1,"sc-choice",{"name":[1],"size":[1],"value":[513],"type":[1],"disabled":[1540],"checked":[1540],"required":[516],"invalid":[1540],"showLabel":[4,"show-label"],"showPrice":[4,"show-price"],"showControl":[4,"show-control"],"hasFocus":[32],"isStacked":[32],"hasDefaultSlot":[32],"hasPrice":[32],"hasPer":[32],"hasDescription":[32],"triggerClick":[64],"triggerFocus":[64],"reportValidity":[64],"setCustomValidity":[64]}]]],["sc-text",[[1,"sc-text",{"tag":[1],"truncate":[4]}]]],["sc-line-item",[[1,"sc-line-item",{"price":[1],"currency":[1],"hasImageSlot":[32],"hasTitleSlot":[32],"hasDescriptionSlot":[32],"hasPriceSlot":[32],"hasPriceDescriptionSlot":[32],"hasCurrencySlot":[32]}]]],["sc-divider",[[1,"sc-divider"]]],["sc-dropdown_4",[[1,"sc-menu-label"],[1,"sc-dropdown",{"clickEl":[16],"disabled":[4],"open":[1540],"position":[1],"placement":[513],"distance":[2],"skidding":[2],"hoist":[4],"closeOnSelect":[516,"close-on-select"],"isVisible":[32]}],[1,"sc-menu",{"setCurrentItem":[64]}],[1,"sc-menu-item",{"href":[1],"checked":[516],"value":[513],"disabled":[516],"hasFocus":[32],"setFocus":[64],"setBlur":[64]}]]],["sc-alert_2",[[1,"sc-alert",{"open":[1540],"title":[1],"closable":[516],"type":[513],"duration":[2],"scrollOnOpen":[4,"scroll-on-open"],"scrollMargin":[1,"scroll-margin"],"noIcon":[4,"no-icon"],"autoHideTimeout":[32],"show":[64],"hide":[64]}],[1,"sc-icon",{"name":[513],"src":[1],"label":[1],"library":[1],"svg":[32]}]]],["sc-address_3",[[1,"sc-address",{"address":[1040],"names":[16],"placeholders":[16],"loading":[4],"disabled":[4],"label":[1],"showName":[4,"show-name"],"showLine2":[4,"show-line-2"],"required":[516],"showCity":[32],"showPostal":[32],"regions":[32],"countryChoices":[32],"reportValidity":[64]}],[1,"sc-tax-id-input",{"country":[1],"show":[4],"type":[1025],"number":[1],"status":[1],"loading":[4],"help":[1],"otherLabel":[1,"other-label"],"caGstLabel":[1,"ca-gst-label"],"auAbnLabel":[1,"au-abn-label"],"gbVatLabel":[1,"gb-vat-label"],"euVatLabel":[1,"eu-vat-label"]}],[1,"sc-select",{"autocomplete":[1],"placeholder":[1],"searchPlaceholder":[1,"search-placeholder"],"value":[1537],"choices":[1040],"unselect":[4],"required":[516],"loading":[4],"search":[4],"name":[513],"help":[1],"label":[1],"size":[513],"position":[1],"invalid":[1540],"open":[1028],"disabled":[4],"showParentLabel":[4,"show-parent-label"],"hoist":[4],"squared":[4],"squaredBottom":[4,"squared-bottom"],"squaredTop":[4,"squared-top"],"squaredLeft":[4,"squared-left"],"squaredRight":[4,"squared-right"],"hasFocus":[32],"searchTerm":[32],"filteredChoices":[32],"setCustomValidity":[64],"reportValidity":[64]},[[0,"keydown","handleKeyDown"]]]]],["sc-checkout-unsaved-changes-warning_7",[[1,"sc-form-components-validator",{"disabled":[4],"order":[16],"taxProtocol":[16],"hasAddress":[32],"hasTaxIDField":[32],"hasBumpsField":[32],"hasTaxLine":[32],"hasBumpLine":[32]}],[1,"sc-login-provider",{"loggedIn":[4,"logged-in"],"order":[16],"notice":[32],"open":[32],"loading":[32],"error":[32]},[[0,"scLoginPrompt","handleLoginPrompt"]]],[1,"sc-order-confirm-provider",{"successUrl":[1,"success-url"],"successText":[16],"showSuccessModal":[32],"confirmedCheckout":[32]},[[0,"scPaid","handlePaidEvent"]]],[1,"sc-form-error-provider",{"checkoutState":[1,"checkout-state"],"error":[32]},[[0,"scError","handleErrorEvent"],[0,"scPayError","handlePayError"]]],[1,"sc-form-state-provider",{"checkoutState":[32]},[[0,"scSetState","handleSetStateEvent"],[0,"scPaid","handlePaid"]]],[1,"sc-session-provider",{"groupId":[1,"group-id"],"mode":[1],"formId":[2,"form-id"],"modified":[1],"prices":[16],"currencyCode":[1,"currency-code"],"persist":[4],"setState":[16],"processor":[1],"method":[1],"isManualProcessor":[4,"is-manual-processor"],"successUrl":[1,"success-url"],"paymentIntents":[16],"stripePaymentElement":[4,"stripe-payment-element"],"abandonedCheckoutReturnUrl":[1,"abandoned-checkout-return-url"],"finalize":[64]},[[0,"scUpdateOrder","handleUpdateSession"],[0,"scFormSubmit","handleFormSubmit"],[0,"scPaid","handlePaid"],[0,"scPayError","handlePayError"],[0,"scUpdateAbandonedCart","handleAbandonedCartUpdate"],[0,"scApplyCoupon","handleCouponApply"]]],[1,"sc-checkout-unsaved-changes-warning",{"state":[1]}]]],["sc-subscription-details_2",[[1,"sc-subscription-details",{"subscription":[16],"pendingPrice":[16],"hideRenewalText":[4,"hide-renewal-text"],"activationsModal":[32],"loading":[32],"hasPendingUpdate":[32]}],[1,"sc-subscription-status-badge",{"status":[1],"subscription":[16],"size":[513],"pill":[516],"clearable":[4]}]]],["sc-choices",[[1,"sc-choices",{"label":[1],"size":[513],"autoWidth":[4,"auto-width"],"required":[4],"showLabel":[4,"show-label"],"help":[1],"hideLabel":[4,"hide-label"],"columns":[2],"errorMessage":[1,"error-message"],"width":[32],"triggerFocus":[64]}]]],["sc-format-date",[[0,"sc-format-date",{"locale":[1],"date":[8],"weekday":[1],"era":[1],"year":[1],"month":[1],"day":[1],"hour":[1],"minute":[1],"second":[1],"timeZoneName":[1,"time-zone-name"],"timeZone":[1,"time-zone"],"hourFormat":[1,"hour-format"],"type":[1]}]]],["sc-form",[[1,"sc-form",{"novalidate":[1540],"getFormData":[64],"getFormJson":[64],"submit":[64],"validate":[64]},[[0,"scChange","handleChange"]]]]],["sc-block-ui_2",[[1,"sc-block-ui",{"zIndex":[2,"z-index"],"transparent":[4],"spinner":[4]}],[1,"sc-spinner"]]],["sc-button",[[1,"sc-button",{"type":[513],"size":[513],"caret":[516],"full":[516],"disabled":[516],"loading":[516],"outline":[516],"busy":[516],"pill":[516],"circle":[516],"submit":[516],"name":[1],"value":[1],"href":[513],"target":[1],"download":[1],"hasFocus":[32],"hasLabel":[32],"hasPrefix":[32],"hasSuffix":[32]}]]],["sc-cancel-discount_4",[[1,"sc-cancel-survey",{"protocol":[16],"reasons":[1040],"loading":[32],"selectedReason":[32],"comment":[32],"error":[32]}],[1,"sc-subscription-cancel",{"heading":[1],"backUrl":[1,"back-url"],"successUrl":[1,"success-url"],"subscription":[16],"protocol":[16],"reason":[16],"comment":[1],"loading":[32],"busy":[32],"error":[32]}],[1,"sc-cancel-discount",{"subscription":[16],"reason":[16],"comment":[1],"protocol":[16],"loading":[32],"error":[32]}],[1,"sc-textarea",{"size":[513],"name":[1],"value":[1],"filled":[516],"label":[1],"showLabel":[4,"show-label"],"help":[1],"placeholder":[1],"rows":[2],"resize":[1],"disabled":[516],"readonly":[516],"minlength":[2],"maxlength":[2],"required":[516],"invalid":[516],"autocapitalize":[1],"autocorrect":[1],"autocomplete":[1],"autofocus":[4],"enterkeyhint":[1],"spellcheck":[4],"inputmode":[1],"hasFocus":[32],"showCharLimit":[32],"triggerFocus":[64],"reportValidity":[64]}]]],["sc-dialog",[[1,"sc-dialog",{"open":[516],"label":[513],"noHeader":[516,"no-header"],"hasFooter":[32]}]]],["sc-compact-address_6",[[1,"sc-order-shipping-address",{"label":[1],"required":[1028],"loading":[4],"shippingAddress":[16],"taxStatus":[1,"tax-status"],"taxEnabled":[4,"tax-enabled"],"shippingEnabled":[4,"shipping-enabled"],"full":[4],"showName":[4,"show-name"],"namePlaceholder":[1,"name-placeholder"],"countryPlaceholder":[1,"country-placeholder"],"cityPlaceholder":[1,"city-placeholder"],"line1Placeholder":[1,"line-1-placeholder"],"line2Placeholder":[1,"line-2-placeholder"],"postalCodePlaceholder":[1,"postal-code-placeholder"],"statePlaceholder":[1,"state-placeholder"],"defaultCountry":[1,"default-country"],"placeholders":[16],"address":[32],"reportValidity":[64]}],[1,"sc-order-tax-id-input",{"order":[16],"show":[4],"taxIdentifier":[16],"taxProtocol":[16],"busy":[4],"otherLabel":[1,"other-label"],"caGstLabel":[1,"ca-gst-label"],"auAbnLabel":[1,"au-abn-label"],"gbVatLabel":[1,"gb-vat-label"],"euVatLabel":[1,"eu-vat-label"]}],[1,"sc-order-bumps",{"label":[1],"showControl":[4,"show-control"],"help":[1],"bumps":[16],"checkout":[16]}],[1,"sc-line-item-tax",{"order":[16],"loading":[4]}],[1,"sc-compact-address",{"address":[1040],"names":[16],"label":[1],"required":[4],"loading":[4],"countryChoices":[32],"regions":[32],"showState":[32],"showPostal":[32],"reportValidity":[64]}],[1,"sc-order-bump",{"bump":[16],"checkout":[16],"showControl":[516,"show-control"]}]]],["sc-cc-logo_2",[[1,"sc-payment-method",{"paymentMethod":[16],"full":[4],"externalLink":[1,"external-link"],"externalLinkTooltipText":[1,"external-link-tooltip-text"]}],[1,"sc-cc-logo",{"brand":[1]}]]],["sc-product-line-item_2",[[1,"sc-product-line-item",{"imageUrl":[1,"image-url"],"name":[1],"quantity":[2],"amount":[2],"fees":[16],"scratchAmount":[2,"scratch-amount"],"currency":[1],"interval":[1],"trialDurationDays":[2,"trial-duration-days"],"removable":[4],"editable":[4],"max":[2]}],[1,"sc-quantity-select",{"clickEl":[16],"disabled":[4],"max":[2],"min":[2],"quantity":[1538],"hasFocus":[1540,"has-focus"]}]]],["sc-empty_3",[[1,"sc-empty",{"icon":[1]}],[1,"sc-stacked-list"],[1,"sc-stacked-list-row",{"href":[1],"target":[1],"mobileSize":[2,"mobile-size"],"width":[32],"hasPrefix":[32],"hasSuffix":[32]}]]],["sc-card_2",[[1,"sc-dashboard-module",{"heading":[1],"error":[1],"loading":[4]}],[1,"sc-card",{"noDivider":[4,"no-divider"],"borderless":[4],"noPadding":[4,"no-padding"],"href":[1],"loading":[4],"hasTitleSlot":[32]}]]]]'),undefined)));const Wt=Yt("sc-block-ui"),Bt=Yt("sc-breadcrumb"),$t=Yt("sc-breadcrumbs"),jt=Yt("sc-button"),_t=Yt("sc-card"),Vt=Yt("sc-dashboard-module"),Gt=Yt("sc-drawer"),Ut=Yt("sc-empty"),qt=Yt("sc-flex"),Zt=Yt("sc-stacked-list"),Jt=Yt("sc-stacked-list-row"),Kt=Yt("sc-tag"),Qt=window.wp.i18n;var te,ee,ie;function ae(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const se=function(t){var e=t.infoType,i=t.infoText,a=t.title,s=t.description,r=t.buttonLabel,n=t.buttonUrl,o=t.btnFilled;return Tt("div",{className:"sc-col-33",css:Et(te||(te=ae(["\n\t\t\t\tmax-width: 341px;\n\n\t\t\t\tsc-button {\n\t\t\t\t\tmargin-top: auto;\n\t\t\t\t}\n\n\t\t\t\t@media screen and ( max-width: 480px ) {\n\t\t\t\t\tmargin-bottom: 20px;\n\t\t\t\t}\n\t\t\t"])))},Tt("div",{className:"sc-top-section"},Tt(Kt,{type:e,style:{"--sc-tag-primary-background-color":"#f3e8ff","--sc-tag-primary-color":"#6b21a8"}},i),Tt("p",{css:Et(ee||(ee=ae(["\n\t\t\t\t\t\tfont-weight: 600;\n\t\t\t\t\t\tfont-size: 20px;\n\t\t\t\t\t\tline-height: 28px;\n\t\t\t\t\t\tcolor: #334155;\n\t\t\t\t\t\tmargin: 0.8em 0 0.4em 0;\n\t\t\t\t\t"])))},a),Tt("p",{css:Et(ie||(ie=ae(["\n\t\t\t\t\t\tfont-weight: 400;\n\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\tline-height: 28px;\n\t\t\t\t\t\tcolor: #334155;\n\t\t\t\t\t\tmargin: 0.4em 0 1em 0;\n\t\t\t\t\t"])))},s)),Tt(jt,{type:"primary",href:n,style:{"--primary-background":o?"#D54407":"#FFFFFF","--primary-color":o?"#fff":"#D54407","--sc-focus-ring-color-primary":"#D54407",border:o?"none":"1px solid #D54407",borderRadius:"var(--button-border-radius, var(--sc-input-border-radius-medium))"}},r," →"))};var re;const ne=function(){var t,e,i=srfm_admin.site_url;return Tt(_t,{css:Et(re||(t=["\n\t\t\t\tposition: relative;\n\t\t\t\t.sc-getstarted-inner-wrap {\n\t\t\t\t\tpadding: 20px;\n\t\t\t\t}\n\t\t\t\t@media screen and ( max-width: 480px ) {\n\t\t\t\t\t.sc-getstarted-inner-wrap {\n\t\t\t\t\t\tpadding: 5px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t.sc-get-started-main-title {\n\t\t\t\t\tfont-size: 24px;\n\t\t\t\t\tfont-weight: 600;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\ttext-align: left;\n\t\t\t\t\tmargin: 0px 0px 1.2em 0px;\n\t\t\t\t}\n\n\t\t\t\t.sc-getstarted-close-icon {\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tright: 30px;\n\t\t\t\t\ttop: 30px;\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t}\n\n\t\t\t\t.sc-col-33 {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tflex-wrap: wrap;\n\t\t\t\t\twidth: 33%;\n\t\t\t\t}\n\n\t\t\t\t@media screen and ( max-width: 480px ) {\n\t\t\t\t\t.sc-col-33 {\n\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t"],e||(e=t.slice(0)),re=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))))},Tt("div",{className:"sc-getstarted-inner-wrap"},Tt("h3",{className:"sc-get-started-main-title"},(0,Qt.__)("Get started with SureForms","sureforms")),Tt(qt,{stack:"mobile"},Tt(se,{infoType:"info",infoText:(0,Qt.__)("Setup","sureforms"),title:(0,Qt.__)("Create a Form","sureforms"),description:(0,Qt.__)("Effortlessly design visually stunning forms with our user-friendly form builder.","sureforms"),buttonLabel:(0,Qt.__)("Create New Form","sureforms"),buttonUrl:"".concat(i,"/wp-admin/admin.php?page=add-new-form"),btnFilled:!0}),Tt(se,{infoType:"success",infoText:(0,Qt.__)("Form","sureforms"),title:(0,Qt.__)("All Forms","sureforms"),description:(0,Qt.__)("Check out your created forms, and easily edit and customize the settings as needed.","sureforms"),buttonLabel:(0,Qt.__)("View All Forms","sureforms"),buttonUrl:"".concat(i,"/wp-admin/edit.php?post_type=sureforms_form"),btnFilled:!1}),Tt(se,{infoType:"primary",infoText:(0,Qt.__)("Entries","sureforms"),title:(0,Qt.__)("View Entries","sureforms"),description:(0,Qt.__)("Explore your entire form submission list and effortlessly manage each entry.","sureforms"),buttonLabel:(0,Qt.__)("View All Entries","sureforms"),buttonUrl:"".concat(i,"/wp-admin/admin.php?page=sureforms_entries"),btnFilled:!1}))))},oe=window.wp.apiFetch;var le,ce,he,de=s.n(oe),ue=s(7229);function ge(t){return ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ge(t)}function pe(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function fe(){fe=function(){return t};var t={},e=Object.prototype,i=e.hasOwnProperty,a=Object.defineProperty||function(t,e,i){t[e]=i.value},s="function"==typeof Symbol?Symbol:{},r=s.iterator||"@@iterator",n=s.asyncIterator||"@@asyncIterator",o=s.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,s){var r=e&&e.prototype instanceof u?e:u,n=Object.create(r.prototype),o=new S(s||[]);return a(n,"_invoke",{value:w(t,i,o)}),n}function h(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d={};function u(){}function g(){}function p(){}var f={};l(f,r,(function(){return this}));var x=Object.getPrototypeOf,m=x&&x(x(L([])));m&&m!==e&&i.call(m,r)&&(f=m);var b=p.prototype=u.prototype=Object.create(f);function v(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){function s(a,r,n,o){var l=h(t[a],t,r);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==ge(d)&&i.call(d,"__await")?e.resolve(d.__await).then((function(t){s("next",t,n,o)}),(function(t){s("throw",t,n,o)})):e.resolve(d).then((function(t){c.value=t,n(c)}),(function(t){return s("throw",t,n,o)}))}o(l.arg)}var r;a(this,"_invoke",{value:function(t,i){function a(){return new e((function(e,a){s(t,i,e,a)}))}return r=r?r.then(a,a):a()}})}function w(t,e,i){var a="suspendedStart";return function(s,r){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===s)throw r;return{value:void 0,done:!0}}for(i.method=s,i.arg=r;;){var n=i.delegate;if(n){var o=k(n,i);if(o){if(o===d)continue;return o}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===a)throw a="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a="executing";var l=h(t,e,i);if("normal"===l.type){if(a=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(a="completed",i.method="throw",i.arg=l.arg)}}}function k(t,e){var i=e.method,a=t.iterator[i];if(void 0===a)return e.delegate=null,"throw"===i&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),d;var s=h(a,t.iterator,e.arg);if("throw"===s.type)return e.method="throw",e.arg=s.arg,e.delegate=null,d;var r=s.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,s=function e(){for(;++a<t.length;)if(i.call(t,a))return e.value=t[a],e.done=!1,e;return e.value=void 0,e.done=!0,e};return s.next=s}}return{next:P}}function P(){return{value:void 0,done:!0}}return g.prototype=p,a(b,"constructor",{value:p,configurable:!0}),a(p,"constructor",{value:g,configurable:!0}),g.displayName=l(p,o,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,l(t,o,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},v(y.prototype),l(y.prototype,n,(function(){return this})),t.AsyncIterator=y,t.async=function(e,i,a,s,r){void 0===r&&(r=Promise);var n=new y(c(e,i,a,s),r);return t.isGeneratorFunction(i)?n:n.next().then((function(t){return t.done?t.value:n.next()}))},v(b),l(b,o,"Generator"),l(b,r,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),i=[];for(var a in e)i.push(a);return i.reverse(),function t(){for(;i.length;){var a=i.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},t.values=L,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function a(i,a){return n.type="throw",n.arg=t,e.next=i,a&&(e.method="next",e.arg=void 0),!!a}for(var s=this.tryEntries.length-1;s>=0;--s){var r=this.tryEntries[s],n=r.completion;if("root"===r.tryLoc)return a("end");if(r.tryLoc<=this.prev){var o=i.call(r,"catchLoc"),l=i.call(r,"finallyLoc");if(o&&l){if(this.prev<r.catchLoc)return a(r.catchLoc,!0);if(this.prev<r.finallyLoc)return a(r.finallyLoc)}else if(o){if(this.prev<r.catchLoc)return a(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return a(r.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;a>=0;--a){var s=this.tryEntries[a];if(s.tryLoc<=this.prev&&i.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var r=s;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var n=r?r.completion:{};return n.type=t,n.arg=e,r?(this.method="next",this.next=r.finallyLoc,d):this.complete(n)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),C(i),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var a=i.completion;if("throw"===a.type){var s=a.arg;C(i)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:L(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},t}function xe(t,e,i,a,s,r,n){try{var o=t[r](n),l=o.value}catch(t){return void i(t)}o.done?e(l):Promise.resolve(l).then(a,s)}function me(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var a,s,r,n,o=[],l=!0,c=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(a=r.call(i)).done)&&(o.push(a.value),o.length!==e);l=!0);}catch(t){c=!0,s=t}finally{try{if(!l&&null!=i.return&&(n=i.return(),Object(n)!==n))return}finally{if(c)throw s}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return be(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?be(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function be(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=new Array(e);i<e;i++)a[i]=t[i];return a}const ve=function(e){var i=e.loading,a=e.className,s=me((0,t.useState)({}),2),r=s[0],n=s[1];return(0,t.useEffect)((function(){var t=function(){var t,e=(t=fe().mark((function t(){var e,i,a,s,r,o;return fe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,(e=new Date).setMonth(e.getMonth()-1),i=e.toISOString(),a="/wp/v2/sureforms_entry?per_page=-1&after=".concat(i),t.next=7,de()({path:a});case 7:s=t.sent,r={},s.forEach((function(t){var e=new Date(t.date).toLocaleDateString();r[e]?r[e]++:r[e]=1})),o=Object.fromEntries(Object.entries(r).sort((function(t,e){var i=me(t,1)[0],a=me(e,1)[0];return new Date(i)-new Date(a)}))),n(o),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(0),console.error("Error fetching data:",t.t0);case 17:case"end":return t.stop()}}),t,null,[[0,14]])})),function(){var e=this,i=arguments;return new Promise((function(a,s){var r=t.apply(e,i);function n(t){xe(r,a,s,n,o,"next",t)}function o(t){xe(r,a,s,n,o,"throw",t)}n(void 0)}))});return function(){return e.apply(this,arguments)}}();t()}),[]),i?Tt("div",{css:Et(le||(le=pe(["\n\t\t\t\t\theight: 295px;\n\t\t\t\t"])))},Tt(Wt,{spinner:!0})):Tt(React.Fragment,null,0!==Object.keys(r).length?Tt(ue.Z,{style:{minHeight:"295px"},className:a,options:{chart:{toolbar:{show:!1},width:"100%",type:"area",events:{mounted:function(t){t.windowResizeHandler()}}},dataLabels:{enabled:!1},stroke:{curve:"smooth"},xaxis:{categories:Object.keys(r)},yaxis:{labels:{formatter:function(t){return parseInt(t)}}},colors:["#F06434","#999999"],tooltip:{x:{format:"dd/MM/yy HH:mm"}},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}},markers:{size:[4,7]}},series:[{name:(0,Qt.__)("Entries","sureforms"),data:Object.values(r)}],type:"area",height:295}):Tt(Ut,null,Tt("span",null,Tt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 20 20",fill:"none"},Tt("path",{d:"M16.25 11.875V9.6875C16.25 8.1342 14.9908 6.875 13.4375 6.875H12.1875C11.6697 6.875 11.25 6.45527 11.25 5.9375V4.6875C11.25 3.1342 9.9908 1.875 8.4375 1.875H6.875M7.5 13.75V14.375M10 11.875V14.375M12.5 10V14.375M8.75 1.875H4.6875C4.16973 1.875 3.75 2.29473 3.75 2.8125V17.1875C3.75 17.7053 4.16973 18.125 4.6875 18.125H15.3125C15.8303 18.125 16.25 17.7053 16.25 17.1875V9.375C16.25 5.23286 12.8921 1.875 8.75 1.875Z",stroke:"#475569",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),Tt("span",{css:Et(ce||(ce=pe(["\n\t\t\t\t\t\t\tcolor: #1e293b;\n\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\t\tline-height: 20px;\n\t\t\t\t\t\t"])))},(0,Qt.__)("There is no data on this view","sureforms")),Tt("span",{css:Et(he||(he=pe(["\n\t\t\t\t\t\t\tcolor: #64748b;\n\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\t\tline-height: 20px;\n\t\t\t\t\t\t"])))},(0,Qt.__)("This is where your form views will appear","sureforms"))))};var ye,we,ke;function Ae(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const Ce=function(t){return function(t){if(null==t)throw new TypeError("Cannot destructure "+t)}(t),Tt(Vt,{css:Et(ye||(ye=Ae(["\n\t\t\t\twidth: calc(65% - 2em );\n\t\t\t\tmargin-top:2em;\n\t\t\t\t@media screen and ( max-width: 1260px ) {\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t\t.dashboard-module{\n\t\t\t\t\tdisplay:none;\n\t\t\t\t}\n\t\t\t"]))),style:{"--sc-flex-column-gap":"1em"}},Tt(_t,{style:{"--sc-card-padding":"var(--sc-spacing-xx-large)"}},Tt("article",{css:Et(we||(we=Ae(["\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items:center;\n\t\t\t\t"])))},"Entries",Tt("span",{css:Et(ke||(ke=Ae(["\n\t\t\t\twidth: 16px;\n\t\t\t\theight: 3px;\n\t\t\t\tborder-radius: 2px;\n\t\t\t\tbackground: #F06434;\n\t\t\t\tmargin-left: 8px;\n\t\t\t\tmargin-right:20px;\n\t\t\t\t"])))})),Tt(ve,{loading:!1,className:""})))};var Se,Le,Pe;function Ie(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const Te=function(t){var e=t.icon,i=t.title,a=t.descriptions,s=t.statusText,r=t.statusColor,n=t.handlePluginActionTrigger,o=t.dataSlug,l=t.init,c=t.redirectURL,h=t.action;return Tt(Jt,{style:{"--columns":"1",overflow:"hidden",padding:"3px"}},Tt(qt,{"justify-content":"space-between",style:{"--sc-flex-column-gap":"1em"}},Tt(qt,{alignItems:"center"},Tt("span",null,Tt("img",{width:"40px",src:e,alt:"logo"})),Tt("div",null,Tt("p",{css:Et(Se||(Se=Ie(["\n\t\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\t\tline-height: 22px;\n\t\t\t\t\t\t\tcolor: #1E293B;\n\t\t\t\t\t\t\tmargin: 0 0 4px 0;\n\t\t\t\t\t\t"])))},i),Tt("p",{css:Et(Le||(Le=Ie(["\n\t\t\t\t\t\t\tfont-weight: 400;\n\t\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\t\tline-height: 1.6em;\n\t\t\t\t\t\t\tcolor: #AAA;\n\t\t\t\t\t\t\twidth: 95%;\n\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t\t@media screen and ( max-width: 480px ) {\n\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t"])))},a)),Tt("button",{css:Et(Pe||(Pe=Ie(["\n\t\t\t\t\t\twebkit-appearance: button;\n\t\t\t\t\t\tbackground-color: transparent;\n\t\t\t\t\t\tborder:none;\n\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\tline-height: 20px;\n\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\tcolor: ",";\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t"])),r),onClick:n,"data-slug":o,"data-init":l,"data-redirection":c,"data-action":h},s))))};var Me,Ee,ze,Oe,Xe,Re;function Fe(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const Ye=function(t){var e=t.title,i=t.description,a=t.urlText;return Tt(_t,{css:Et(Me||(Me=Fe(["\n\t\t\t\tmargin-top: 1.5em;\n\t\t\t"])))},Tt("div",{css:Et(Ee||(Ee=Fe(["\n\t\t\t\t\tpadding: var( --sc-spacing-large );\n\t\t\t\t"])))},Tt("h3",{css:Et(ze||(ze=Fe(["\n\t\t\t\t\t\tcolor: #0f172a;\n\t\t\t\t\t\tfont-size: 18px;\n\t\t\t\t\t\tfont-weight: 600;\n\t\t\t\t\t\tline-height: 28px;\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\tmargin-bottom: 8px;\n\t\t\t\t\t"])))},e),Tt("article",{css:Et(Oe||(Oe=Fe(["\n\t\t\t\t\t\tcolor: 364748B;\n\t\t\t\t\t"])))},i),Tt("article",{css:Et(Xe||(Xe=Fe(["\n\t\t\t\t\t\tcolor: #d54407;\n\t\t\t\t\t\tmargin-top: 15px;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t"])))},Tt("a",{href:"https://wordpress.org/support/plugin/sureforms/reviews/?rate=5#new-post",target:"_blank",css:Et(Re||(Re=Fe(["\n\t\t\t\t\t\t\ttext-decoration: none;\n\t\t\t\t\t\t\tcolor: #d54407;\n\n\t\t\t\t\t\t\t&:hover {\n\t\t\t\t\t\t\t\tcolor: #d54407;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t"]))),rel:"noreferrer"},a,"   ",Tt("span",null,Tt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},Tt("path",{d:"M6.66406 3.9974H3.9974C3.26102 3.9974 2.66406 4.59435 2.66406 5.33073V11.9974C2.66406 12.7338 3.26102 13.3307 3.9974 13.3307H10.6641C11.4004 13.3307 11.9974 12.7338 11.9974 11.9974V9.33073M9.33073 2.66406H13.3307M13.3307 2.66406V6.66406M13.3307 2.66406L6.66406 9.33073",stroke:"#d54407",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})))))))};var He,Ne,De;function We(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const Be=function(){var t,e,i=function(t){var e=t.target.dataset.action,i=new window.FormData;switch(e){case"sureforms_recommended_plugin_activate":a(t);break;case"sureforms_recommended_plugin_install":i.append("action","sureforms_recommended_plugin_install"),i.append("_ajax_nonce",srfm_admin.plugin_installer_nonce),i.append("slug",t.target.dataset.slug),t.target.innerText=srfm_admin.plugin_installing_text,de()({url:srfm_admin.ajax_url,method:"POST",body:i}).then((function(e){e.success?(t.target.innerText=srfm_admin.plugin_installed_text,a(t)):(t.target.innerText=(0,Qt.__)("Install","sureforms"),alert((0,Qt.__)("Plugin Installation failed, Please try again later.","sureforms")))}))}},a=function(t){var e=new window.FormData;e.append("action","sureforms_recommended_plugin_activate"),e.append("security",srfm_admin.sfPluginManagerNonce),e.append("init",t.target.dataset.init),t.target.innerText=srfm_admin.plugin_activating_text,de()({url:srfm_admin.ajax_url,method:"POST",body:e}).then((function(e){e.success?(t.target.style.color="#16A34A",t.target.innerText=srfm_admin.plugin_activated_text,window.location=t.target.dataset.redirection):(alert((0,Qt.__)("Plugin activation failed, Please try again later.","sureforms")),t.target.innerText=srfm_admin.plugin_activate_text)}))};return Tt(Vt,{css:Et(He||(He=We(["\n\t\t\t\twidth: 35%;\n\t\t\t\tmargin-top: 2em;\n\t\t\t\t@media screen and ( max-width: 782px ) {\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t\t@media screen and ( max-width: 1260px ) {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\tmax-width: 450px;\n\t\t\t\t}\n\t\t\t\t.dashboard-module {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t"]))),style:{"--sc-flex-column-gap":"1em"}},Tt(_t,{noPadding:!0},Tt(Zt,null,Tt(Jt,{style:{"--columns":"1",overflow:"hidden","--sc-flex-column-gap":"1em"},css:Et(Ne||(Ne=We(["\n\t\t\t\t\t\t\tpadding: 8px;\n\t\t\t\t\t\t"])))},Tt("p",{css:Et(De||(De=We(["\n\t\t\t\t\t\t\t\tcolor: #0f172a;\n\t\t\t\t\t\t\t\tfont-size: 18px;\n\t\t\t\t\t\t\t\tfont-weight: 600;\n\t\t\t\t\t\t\t\tline-height: 28px;\n\t\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t\t"])))},(0,Qt.__)("Integrations","sureforms"))),null===(t=srfm_admin)||void 0===t||null===(e=t.integrations)||void 0===e?void 0:e.map((function(t,e){return Tt(Te,{key:e,icon:t.logo,title:t.title,descriptions:t.subtitle,statusText:"Installed"===t.status?srfm_admin.plugin_activate_text:t.status,statusColor:"Installed"===t.status||"Activated"===t.status?"#16A34A":"#D54407",dataSlug:t.slug,init:t.path,redirectURL:t.redirection,action:(a=t.status,"Activated"===a?"":"Installed"===a?"sureforms_recommended_plugin_activate":"sureforms_recommended_plugin_install"),handlePluginActionTrigger:i});var a})))),Tt(Ye,{title:(0,Qt.__)("Rate Us","sureforms"),description:(0,Qt.__)("We love to hear from you, we would appreciate every single review.","sureforms"),urlText:(0,Qt.__)("Submit a Review","sureforms")}))};var $e,je,_e;function Ve(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const Ge=function(t){!function(t){if(null==t)throw new TypeError("Cannot destructure "+t)}(t);var e=srfm_admin.site_url;return Tt("div",{css:Et($e||($e=Ve(["\n\t\t\t\twidth: 100%;\n\t\t\t"])))},Tt("div",{css:Et(je||(je=Ve(["\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\talign-items: center;\n\t\t\t\t\tjustify-content: space-between;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t"])))},Tt("h2",{css:Et(_e||(_e=Ve(["\n\t\t\t\t\t\tcolor: #1e293b;\n\t\t\t\t\t\tfont-size: 30px;\n\t\t\t\t\t\tfont-weight: 600;\n\t\t\t\t\t\tline-height: 36px;\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t"])))},"Overview"),Tt(jt,{type:"primary",href:"".concat(e,"/wp-admin/admin.php?page=add-new-form"),style:{"--primary-background":"#D54407","--sc-focus-ring-color-primary":"#D54407"}},(0,Qt.__)("Create New Form","sureforms")," →")),Tt(qt,{style:{"--sc-flex-column-gap":"2em"},stack:"tablet",flexWrap:"wrap"},Tt(Ce,null),Tt(Be,null)))},Ue=function(t){var e,i=t.display;return React.createElement("a",{href:null===(e=srfm_admin)||void 0===e?void 0:e.sureforms_dashboard_url},React.createElement("svg",{style:{display:i},xmlns:"http://www.w3.org/2000/svg",width:"142",height:"24",viewBox:"0 0 142 24",fill:"none"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29 16.6032L29.9925 15.1445C30.448 15.6702 31.0539 16.1125 31.8101 16.4717C32.5664 16.8309 33.3613 17.0105 34.1949 17.0105C35.1488 17.0105 35.8922 16.8046 36.4249 16.3928C36.9664 15.9811 37.2371 15.4424 37.2371 14.7766C37.2371 14.3561 37.091 14.0013 36.7988 13.7122C36.5066 13.4231 36.1285 13.1997 35.6644 13.042C35.2003 12.8844 34.689 12.7398 34.1305 12.6084C33.5718 12.477 33.009 12.3237 32.4418 12.1485C31.8832 11.9733 31.3719 11.7586 30.9078 11.5046C30.4437 11.2505 30.0656 10.8913 29.7734 10.4271C29.4812 9.95398 29.3352 9.39335 29.3352 8.74508C29.3352 7.67627 29.7562 6.78712 30.5984 6.07753C31.4406 5.35917 32.5965 5 34.066 5C36.0082 5 37.5808 5.63075 38.7839 6.89224L37.8687 8.28518C37.4734 7.79455 36.9406 7.40035 36.2703 7.10249C35.6085 6.79588 34.8738 6.64257 34.066 6.64257C33.2152 6.64257 32.532 6.83968 32.0164 7.2339C31.5008 7.61936 31.2429 8.10552 31.2429 8.69249C31.2429 9.06922 31.389 9.38896 31.6813 9.65179C31.9734 9.90585 32.3472 10.1073 32.8027 10.2562C33.2668 10.3964 33.7781 10.5322 34.3367 10.6636C34.9039 10.7862 35.4667 10.9396 36.0253 11.1235C36.5925 11.3075 37.1038 11.5352 37.5593 11.8068C38.0234 12.0696 38.4015 12.4507 38.6937 12.95C38.9859 13.4494 39.132 14.0407 39.132 14.724C39.132 15.8629 38.6937 16.8046 37.8171 17.5492C36.9492 18.2851 35.7246 18.6531 34.1433 18.6531C32.0035 18.6531 30.2891 17.9698 29 16.6032ZM41.2986 14.5006V5.32852H43.2709V13.883C43.2709 14.9693 43.5158 15.7359 44.0057 16.1826C44.4955 16.6206 45.2088 16.8397 46.1455 16.8397C46.8845 16.8397 47.5978 16.6513 48.2853 16.2746C48.9728 15.8979 49.5099 15.4336 49.8966 14.8817V5.32852H51.8818V18.3246H49.8966V16.498C49.3638 17.1113 48.6978 17.6237 47.8986 18.0355C47.0993 18.4472 46.2529 18.6531 45.3591 18.6531C42.6521 18.6531 41.2986 17.2689 41.2986 14.5006ZM54.7831 18.3246H56.7554V9.12613C57.0476 8.59176 57.5503 8.1143 58.2636 7.69382C58.9769 7.26456 59.6386 7.04993 60.2488 7.04993C60.4464 7.04993 60.6999 7.06745 61.0093 7.10249V5.02628C60.1843 5.02628 59.4066 5.24529 58.6761 5.68331C57.9456 6.11257 57.3054 6.68638 56.7554 7.40473V5.32852H54.7831V18.3246ZM61.6935 11.8068C61.6935 10.5628 61.9599 9.424 62.4927 8.3903C63.0342 7.34778 63.7861 6.52431 64.7486 5.91984C65.7111 5.30661 66.7896 5 67.9841 5C69.2388 5 70.3345 5.311 71.2712 5.93298C72.2077 6.55497 72.9127 7.39158 73.3855 8.44282C73.8663 9.4853 74.1071 10.6636 74.1071 11.9776V12.4901H63.8076C63.8849 13.7691 64.3318 14.8379 65.1482 15.6964C65.9732 16.5549 67.0474 16.9842 68.3708 16.9842C69.1185 16.9842 69.8361 16.8397 70.5236 16.5506C71.2197 16.2615 71.8255 15.8498 72.3413 15.3153L73.2821 16.6294C71.9329 17.9785 70.2443 18.6531 68.2161 18.6531C66.3083 18.6531 64.7443 18.0179 63.524 16.7477C62.3036 15.4774 61.6935 13.8305 61.6935 11.8068ZM63.7818 10.979H72.148C72.1394 10.4796 72.0488 9.98463 71.8771 9.49408C71.7138 9.00353 71.4689 8.54355 71.1423 8.1143C70.8158 7.68505 70.3774 7.33902 69.8275 7.07621C69.2775 6.80464 68.6544 6.66885 67.9583 6.66885C67.3052 6.66885 66.7123 6.80026 66.1795 7.06307C65.6466 7.32588 65.2126 7.67195 64.8775 8.1012C64.5509 8.52168 64.2931 8.98158 64.104 9.48091C63.915 9.97154 63.8076 10.4709 63.7818 10.979Z",fill:"#002E33"}),React.createElement("path",{d:"M78.8791 18.7626H76.1199V5.56776H85.2914V8.04056H78.8791V10.8101H85.1554V13.2829H78.8791V18.7626Z",fill:"#002E33"}),React.createElement("path",{d:"M93.3803 19C89.4553 19 86.5989 16.1513 86.5989 12.1751C86.5989 8.19882 89.4553 5.35016 93.3803 5.35016C97.286 5.35016 100.142 8.19882 100.142 12.1751C100.142 16.1513 97.286 19 93.3803 19ZM93.3803 16.5074C95.7704 16.5074 97.3054 14.6281 97.3054 12.1751C97.3054 9.70228 95.7704 7.84274 93.3803 7.84274C90.9709 7.84274 89.4358 9.70228 89.4358 12.1751C89.4358 14.6281 90.9709 16.5074 93.3803 16.5074Z",fill:"#002E33"}),React.createElement("path",{d:"M112.591 18.7626H109.404L106.859 14.0742H104.838V18.7626H102.079V5.56776H108.141C110.842 5.56776 112.513 7.36796 112.513 9.82098C112.513 12.1355 111.056 13.4016 109.657 13.7379L112.591 18.7626ZM107.753 11.6014C108.841 11.6014 109.676 10.9288 109.676 9.80119C109.676 8.71316 108.841 8.04056 107.753 8.04056H104.838V11.6014H107.753Z",fill:"#002E33"}),React.createElement("path",{d:"M128.613 18.7626H125.835V9.24729L122.182 18.7626H120.977L117.324 9.24729V18.7626H114.565V5.56776H118.431L121.579 13.817L124.727 5.56776H128.613V18.7626Z",fill:"#002E33"}),React.createElement("path",{d:"M135.812 19C133.305 19 131.518 18.1494 130.293 16.9031L131.809 14.7072C132.722 15.6766 134.141 16.5074 135.928 16.5074C137.464 16.5074 138.183 15.815 138.183 15.0435C138.183 12.7488 130.721 14.3511 130.721 9.38576C130.721 7.18992 132.586 5.36994 135.637 5.36994C137.697 5.36994 139.407 6.00298 140.689 7.2097L139.154 9.30664C138.105 8.31752 136.706 7.86252 135.384 7.86252C134.219 7.86252 133.558 8.37686 133.558 9.16816C133.558 11.2453 141 9.84076 141 14.7666C141 17.18 139.29 19 135.812 19Z",fill:"#002E33"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0078 24C18.6352 24 24.0078 18.6274 24.0078 12C24.0078 5.37259 18.6352 0 12.0078 0C5.3804 0 0.0078125 5.37259 0.0078125 12C0.0078125 18.6274 5.3804 24 12.0078 24ZM12.0595 6C11.0959 6 9.76255 6.55103 9.08115 7.23077L7.2307 9.07692H16.4543L19.5384 6H12.0595ZM14.9189 16.7692C14.2376 17.449 12.9041 18 11.9406 18H4.46169L7.54585 14.9231H16.7694L14.9189 16.7692ZM17.9166 10.6154H5.69197L5.11453 11.1923C3.74722 12.4231 4.15274 13.3846 6.0676 13.3846H18.3253L18.903 12.8077C20.257 11.5841 19.8315 10.6154 17.9166 10.6154Z",fill:"#D54407"})))};var qe,Ze,Je,Ke,Qe,ti,ei,ii,ai,si,ri,ni,oi,li,ci,hi,di,ui,gi,pi;function fi(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function xi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var a,s,r,n,o=[],l=!0,c=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(a=r.call(i)).done)&&(o.push(a.value),o.length!==e);l=!0);}catch(t){c=!0,s=t}finally{try{if(!l&&null!=i.return&&(n=i.return(),Object(n)!==n))return}finally{if(c)throw s}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return mi(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?mi(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mi(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=new Array(e);i<e;i++)a[i]=t[i];return a}const bi=function(){var e,i,a,s,r,n=xi((0,t.useState)(!1),2),o=n[0],l=n[1],c=xi((0,t.useState)((null===(e=srfm_admin)||void 0===e?void 0:e.is_license_active)||!1),2),h=c[0],d=c[1],u=new URL(window.location.href).searchParams.get("page");return(0,t.useEffect)((function(){window.addEventListener("srfm_license_status_updated",(function(t){null!=t&&t.detail&&d(t.detail.is_license_active)}))}),[]),Tt(React.Fragment,null,Tt("div",{css:Et(qe||(qe=fi(["\n\t\t\t\t\tposition: sticky;\n\t\t\t\t\tbackground-color: rgba( 255, 255, 255, 0.75 );\n\t\t\t\t\tbackdrop-filter: blur( 5px );\n\t\t\t\t\ttop: ",";\n\t\t\t\t\twidth: 100%;\n\t\t\t\t\tz-index: 4;\n\t\t\t\t\t@media screen and ( max-width: 782px ) {\n\t\t\t\t\t\ttop: 46px;\n\t\t\t\t\t}\n\t\t\t\t\t@media screen and ( max-width: 460px ) {\n\t\t\t\t\t\ttop: 0px;\n\t\t\t\t\t}\n\t\t\t\t\tborder-bottom: 1px solid rgb( 229, 231, 235 );\n\t\t\t\t"])),o&&"toplevel_page_sureforms_menu"!==srfm_admin.current_screen_id?"0":"32px")},Tt("div",{css:Et(Ze||(Ze=fi(["\n\t\t\t\t\t\tpadding: 20px;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\tjustify-content: space-between;\n\t\t\t\t\t"])))},Tt("div",{css:Et(Je||(Je=fi(["\n\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t\tcolumn-gap: 1em;\n\t\t\t\t\t\t"])))},Tt("h1",{css:Et(Ke||(Ke=fi(["\n\t\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t\t\tfont-size: var( --sc-font-size-large );\n\t\t\t\t\t\t\t\tmin-height: 24px;\n\t\t\t\t\t\t\t"])))},Tt($t,null,Tt(Bt,null,Tt(Ue,{display:"block"})),(null===(i=srfm_admin)||void 0===i?void 0:i.breadcrumbs)&&srfm_admin.breadcrumbs.length>0&&srfm_admin.breadcrumbs.map((function(t,e){return Tt(Bt,{key:e,href:t.link},t.title)}))))),Tt("div",{css:Et(Qe||(Qe=fi(["\n\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t\tgap: 15px;\n\t\t\t\t\t\t"])))},Tt("article",{css:Et(ti||(ti=fi(["\n\t\t\t\t\t\t\t\tcolor: #94a3b8;\n\t\t\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\t\t\tfont-weight: 400;\n\t\t\t\t\t\t\t\tline-height: 20px;\n\t\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t\t"])))}," ",null===(a=srfm_admin)||void 0===a?void 0:a.plugin_version,Tt("span",{css:Et(ei||(ei=fi(["\n\t\t\t\t\t\t\t\t\tpadding: 2px 5px 3px 6px;\n\t\t\t\t\t\t\t\t\tborder-radius: 4px;\n\t\t\t\t\t\t\t\t\tborder: 1px solid #e2e8f0;\n\t\t\t\t\t\t\t\t\tmargin-left: 12px;\n\t\t\t\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\t\t\t\tline-height: 11px;\n\t\t\t\t\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\t\t\t\t"])))},(0,Qt.__)("Core","sureforms"))),(null===(s=srfm_admin)||void 0===s?void 0:s.is_pro_active)&&Tt(React.Fragment,null,Tt("div",{css:Et(ii||(ii=fi(["\n\t\t\t\t\t\t\t\t\t\twidth: 1px;\n\t\t\t\t\t\t\t\t\t\tbackground: #e2e8f0;\n\t\t\t\t\t\t\t\t\t\theight: 20px;\n\t\t\t\t\t\t\t\t\t"])))}),Tt("article",{css:Et(ai||(ai=fi(["\n\t\t\t\t\t\t\t\t\t\tcolor: #94a3b8;\n\t\t\t\t\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\t\t\t\t\tline-height: 20px;\n\t\t\t\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t\t\t\t"])))}," ",null===(r=srfm_admin)||void 0===r?void 0:r.pro_plugin_version,Tt("span",{css:Et(si||(si=fi(["\n\t\t\t\t\t\t\t\t\t\t\tbackground-color: #0F172A;\n\t\t\t\t\t\t\t\t\t\t\tcolor: #ffffff;\n\t\t\t\t\t\t\t\t\t\t\tpadding: 2px 5px 3px 6px;\n\t\t\t\t\t\t\t\t\t\t\tborder-radius: 4px;\n\t\t\t\t\t\t\t\t\t\t\tborder: 1px solid #0F172A;\n\t\t\t\t\t\t\t\t\t\t\tmargin-left: 12px;\n\t\t\t\t\t\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\t\t\t\t\t\tline-height: 11px;\n\t\t\t\t\t\t\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\t\t\t\t\t\t"])))},(0,Qt.__)("Pro","sureforms"))),Tt("div",{css:Et(ri||(ri=fi(["\n\t\t\t\t\t\t\t\t\t\twidth: 1px;\n\t\t\t\t\t\t\t\t\t\tbackground: #e2e8f0;\n\t\t\t\t\t\t\t\t\t\theight: 20px;\n\t\t\t\t\t\t\t\t\t"])))}),Tt("article",{css:Et(ni||(ni=fi(["\n\t\t\t\t\t\t\t\t\t\tcolor: ",";\n\t\t\t\t\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\t\t\t\t\tfont-weight: 400;\n\t\t\t\t\t\t\t\t\t\tline-height: 20px;\n\t\t\t\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t\t\t\t"])),h?"#16A34A":"#DC2626")}," ",h?(0,Qt.__)("Licensed","sureforms"):Tt(React.Fragment,null,Tt("span",{css:Et(oi||(oi=fi(["\n\t\t\t\t\t\t\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t\t\t\t\t\t\t"]))),onClick:function(){var t;"sureforms_form_settings"===u?null===(t=document.querySelector('a[href*="tab=account-settings"].srfm-settings-sidebar-category'))||void 0===t||t.click():window.location.href="".concat(srfm_admin.site_url,"/wp-admin/admin.php?page=sureforms_form_settings&tab=account-settings")}},(0,Qt.__)("Unlicensed","sureforms"))))),Tt("div",{css:Et(li||(li=fi(["\n\t\t\t\t\t\t\t\twidth: 1px;\n\t\t\t\t\t\t\t\tbackground: #e2e8f0;\n\t\t\t\t\t\t\t\theight: 20px;\n\t\t\t\t\t\t\t"])))}),Tt("span",{onClick:function(){return l(!o)},css:Et(ci||(ci=fi(["\n\t\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t\t"])))},Tt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},Tt("path",{d:"M9.16667 4.90182V16.0335C9.16667 16.8434 8.51008 17.5 7.70015 17.5C7.08038 17.5 6.52752 17.1104 6.31907 16.5267L4.53039 11.4024M15 10.8333C16.3807 10.8333 17.5 9.71404 17.5 8.33333C17.5 6.95262 16.3807 5.83333 15 5.83333M4.53039 11.4024C3.33691 10.8951 2.5 9.71194 2.5 8.33333C2.5 6.49238 3.99238 5 5.83333 5H7.36007C10.7773 5 13.7141 3.97159 15 2.5L15 14.1667C13.7141 12.6951 10.7773 11.6667 7.36007 11.6667L5.83331 11.6667C5.37098 11.6667 4.93064 11.5725 4.53039 11.4024Z",stroke:"#475569",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})))))),Tt(Gt,{noHeader:!0,style:{"--sc-drawer-size":"500px"},open:o,onScHide:function(){return l(!1)}},Tt("div",null,Tt("span",{onClick:function(){return l(!o)},css:Et(hi||(hi=fi(["\n\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\tright: 15px;\n\t\t\t\t\t\t\ttop: 15px;\n\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t"]))),className:"sc-drawer-close-button"},Tt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 10 10",fill:"none"},Tt("g",{clipPath:"url(#clip0_251_2118)"},Tt("path",{d:"M7.91683 2.5875L7.32933 2L5.00016 4.32917L2.671 2L2.0835 2.5875L4.41266 4.91667L2.0835 7.24583L2.671 7.83333L5.00016 5.50417L7.32933 7.83333L7.91683 7.24583L5.58766 4.91667L7.91683 2.5875Z",fill:"#555D66"})),Tt("defs",null,Tt("clipPath",{id:"clip0_251_2118"},Tt("rect",{width:"10",height:"10",fill:"white"}))))),Tt("article",{css:Et(di||(di=fi(["\n\t\t\t\t\t\t\tfont-size: 18px;\n\t\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\t\tline-height: 20px;\n\t\t\t\t\t\t\tcolor: #000;\n\t\t\t\t\t\t\tmargin-bottom: 40px;\n\t\t\t\t\t\t\tpadding: 20px;\n\t\t\t\t\t\t\tpadding-bottom: 30px;\n\t\t\t\t\t\t\tborder-bottom: 1px solid rgb( 229, 231, 235 );\n\t\t\t\t\t\t"])))},(0,Qt.__)("Notifications","sureforms")),Tt("div",{css:Et(ui||(ui=fi(["\n\t\t\t\t\t\t\tpadding: 0 20px;\n\t\t\t\t\t\t\tborder-bottom: 1px solid rgb( 229, 231, 235 );\n\t\t\t\t\t\t"])))},Tt("article",{css:Et(gi||(gi=fi(["\n\t\t\t\t\t\t\t\tline-height: 20px;\n\t\t\t\t\t\t\t\tfont-style: italic;\n\t\t\t\t\t\t\t\tmargin-top: 20px;\n\t\t\t\t\t\t\t"])))},(0,Qt.__)("All caught up!! Check back for new notifications later.","sureforms")),Tt("article",{css:Et(pi||(pi=fi(["\n\t\t\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\t\t\tline-height: 20px;\n\t\t\t\t\t\t\t\tcolor: rgb( 100, 116, 139 );\n\t\t\t\t\t\t\t\tpadding-bottom: 30px;\n\t\t\t\t\t\t\t"])))})))))};var vi,yi,wi,ki;function Ai(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const Ci=function(e){var i=e.children;return Tt(t.Fragment,null,Tt(Mt,{styles:Et(vi||(vi=Ai(["\n\t\t\t\t\t:root {\n\t\t\t\t\t\t--sc-color-primary-500: var( --sc-color-brand-primary );\n\t\t\t\t\t\t--sc-focus-ring-color-primary: var(\n\t\t\t\t\t\t\t--sc-color-brand-primary\n\t\t\t\t\t\t);\n\t\t\t\t\t\t--sc-input-border-color-focus: var(\n\t\t\t\t\t\t\t--sc-color-brand-primary\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\t#wpwrap {\n\t\t\t\t\t\tbackground-color: #f1f5f9;\n\t\t\t\t\t}\n\t\t\t\t\t@media screen and ( max-width: 782px ) {\n\t\t\t\t\t\t.auto-fold #wpcontent {\n\t\t\t\t\t\t\tpadding-left: 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t"])))}),Tt(React.Fragment,null,Tt(bi,null),Tt("div",{css:Et(yi||(yi=Ai(["\n\t\t\t\t\t\tpadding: 0 20px;\n\t\t\t\t\t\tdisplay: grid;\n\t\t\t\t\t\tmargin: auto;\n\t\t\t\t\t\tmax-width: 95%;\n\t\t\t\t\t\tmargin-top: var( --sc-spacing-xx-large );\n\t\t\t\t\t"])))},Tt("div",{css:Et(wi||(wi=Ai(["\n\t\t\t\t\t\t\tmargin-bottom: 3em;\n\t\t\t\t\t\t\t> * ~ * {\n\t\t\t\t\t\t\t\tmargin-top: var( --sc-spacing-xxx-large );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t"])))},i),Tt("div",null,Tt("div",{css:Et(ki||(ki=Ai(["\n\t\t\t\t\t\t\t\tmargin-bottom: 3em;\n\t\t\t\t\t\t\t\t> * ~ * {\n\t\t\t\t\t\t\t\t\tmargin-top: 1em;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t"])))})))))},Si=function(){return Tt(React.Fragment,null,Tt(Ci,null,Tt(t.Fragment,null,Tt(ne,null),Tt(qt,{style:{"--sc-flex-column-gap":"2em"},stack:"tablet"},Tt(Ge,null)))))};var Li,Pi=function(){return React.createElement(Si,null)};Li=document.getElementById("srfm-dashboard-container"),document.addEventListener("DOMContentLoaded",(function(){null!==Li&&(0,t.createRoot)(Li).render(React.createElement(Pi,null))}))})()})();
2 +(()=>{var e,t,n={659:(e,t,n)=>{var r=n(51873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},1882:(e,t,n)=>{var r=n(72552),o=n(23805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},2404:(e,t,n)=>{var r=n(60270);e.exports=function(e,t){return r(e,t)}},2523:e=>{e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},3335:e=>{e.exports=function(e,t){return e>t}},3650:(e,t,n)=>{var r=n(74335)(Object.keys,Object);e.exports=r},3656:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=n(89935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},4509:(e,t,n)=>{var r=n(12651);e.exports=function(e){return r(this,e).has(e)}},4664:(e,t,n)=>{var r=n(79770),o=n(63345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},4901:(e,t,n)=>{var r=n(72552),o=n(30294),i=n(40346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},5128:(e,t,n)=>{var r=n(80909),o=n(64894);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},5556:(e,t,n)=>{e.exports=n(2694)()},5861:(e,t,n)=>{var r=n(55580),o=n(68223),i=n(32804),a=n(76545),s=n(28303),l=n(72552),c=n(47473),u="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",m=c(r),y=c(o),g=c(i),v=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=u||i&&w(i.resolve())!=f||a&&w(new a)!=d||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return h;case y:return u;case g:return f;case v:return d;case b:return p}return t}),e.exports=w},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7309:(e,t,n)=>{var r=n(62006)(n(24713));e.exports=r},7350:(e,t,n)=>{var r=n(38221),o=n(23805);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},9325:(e,t,n)=>{var r=n(34840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},10124:(e,t,n)=>{var r=n(9325);e.exports=function(){return r.Date.now()}},10308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){void 0===n&&(n={});for(var r=[],o="function"==typeof n.replace,c=n.transform||a.returnFirstArg,u=n.library||s,f=u.cloneElement,d=u.createElement,p=u.isValidElement,h=t.length,m=0;m<h;m++){var y=t[m];if(o){var g=n.replace(y,m);if(p(g)){h>1&&(g=f(g,{key:g.key||m})),r.push(c(g,y,m));continue}}if("text"!==y.type){var v=y,b={};l(v)?((0,a.setStyleProp)(v.attribs.style,v.attribs),b=v.attribs):v.attribs&&(b=(0,i.default)(v.attribs,v.name));var w=void 0;switch(y.type){case"script":case"style":y.children[0]&&(b.dangerouslySetInnerHTML={__html:y.children[0].data});break;case"tag":"textarea"===y.name&&y.children[0]?b.defaultValue=y.children[0].data:y.children&&y.children.length&&(w=e(y.children,n));break;default:continue}h>1&&(b.key=m),r.push(c(d(y.name,b,w),y,m))}else{var x=!y.data.trim().length;if(x&&y.parent&&!(0,a.canTextBeChildOfNode)(y.parent))continue;if(n.trim&&x)continue;r.push(c(y.data,y,m))}}return 1===r.length?r[0]:r};var o=n(51609),i=r(n(20840)),a=n(74958),s={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function l(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,a.isCustomComponent)(e.name,e.attribs)}},10392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},10776:(e,t,n)=>{var r=n(30756),o=n(95950);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},11331:(e,t,n)=>{var r=n(72552),o=n(28879),i=n(40346),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},11741:(e,t,n)=>{var r=n(98023);e.exports=function(e){return r(e)&&e!=+e}},12507:(e,t,n)=>{var r=n(28754),o=n(49698),i=n(63912),a=n(13222);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},12651:(e,t,n)=>{var r=n(74218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},12749:(e,t,n)=>{var r=n(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},13222:(e,t,n)=>{var r=n(77556);e.exports=function(e){return null==e?"":r(e)}},14210:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{o[e]=new r(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{o[e]=new r(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{o[e]=new r(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{o[e]=new r(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{o[e]=new r(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,a);o[t]=new r(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,a);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,a);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)})),o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:s,SAME:l,possibleStandardNames:c}=n(96811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),f=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===l?e[t]=t:n===s?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=f},14248:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},14528:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},15270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},15325:(e,t,n)=>{var r=n(96131);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},15389:(e,t,n)=>{var r=n(93663),o=n(87978),i=n(83488),a=n(56449),s=n(50583);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},17255:(e,t,n)=>{var r=n(47422);e.exports=function(e){return function(t){return r(t,e)}}},17277:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}},17400:(e,t,n)=>{var r=n(99374),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},17670:(e,t,n)=>{var r=n(12651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},19219:e=>{e.exports=function(e,t){return e.has(t)}},19570:(e,t,n)=>{var r=n(37334),o=n(93243),i=n(83488),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},19747:(e,t,n)=>{var r=n(17277),o=n(23777),i=n(15389),a=n(56449),s=n(36800);e.exports=function(e,t,n){var l=a(e)?r:o;return n&&s(e,t,n)&&(t=void 0),l(e,i(t,3))}},19788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var f=1,d=1;function p(e){var t=e.match(n);t&&(f+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function h(){var e={line:f,column:d};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:f,column:d},this.source=l.source}m.prototype.content=e;var y=[];function g(t){var n=new Error(l.source+":"+f+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=f,n.column=d,n.source=e,!l.silent)throw n;y.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){v(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function M(){var e=h(),n=v(o);if(n){if(x(),!v(i))return g("property missing ':'");var r=v(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return v(s),l}}return b(),function(){var e,t=[];for(w(t);e=M();)!1!==e&&(t.push(e),w(t));return t}()}},20317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},20840:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&s[e.type]);for(var u in e){var f=e[u];if((0,r.isCustomAttribute)(u))n[u]=f;else{var d=u.toLowerCase(),p=l(d);if(p){var h=(0,r.getPropertyInfo)(p);switch(i.includes(p)&&a.includes(t)&&!c&&(p=l("default"+d)),n[p]=f,h&&h.type){case r.BOOLEAN:n[p]=!0;break;case r.OVERLOADED_BOOLEAN:""===f&&(n[p]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=f)}}return(0,o.setStyleProp)(e.style,n),n};var r=n(14210),o=n(74958),i=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}},21020:(e,t,n)=>{"use strict";var r=n(51609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},21549:(e,t,n)=>{var r=n(22032),o=n(63862),i=n(66721),a=n(12749),s=n(35749);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},21986:(e,t,n)=>{var r=n(51873),o=n(37828),i=n(75288),a=n(25911),s=n(20317),l=n(84247),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var y=a(p(e),p(t),r,c,f,d);return d.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},22032:(e,t,n)=>{var r=n(81042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},23181:(e,t,n)=>{var r=n(85508)();e.exports=r},23777:(e,t,n)=>{var r=n(80909);e.exports=function(e,t){var n=!0;return r(e,(function(e,r,o){return n=!!t(e,r,o)})),n}},23805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},24128:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,a),!0}for(c=1,l=new Array(f-1);c<f;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var d,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),f){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,o);break;default:if(!l)for(d=1,l=new Array(f-1);d<f;d++)l[d-1]=arguments[d];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||o&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},24713:(e,t,n)=>{var r=n(2523),o=n(15389),i=n(83870),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:i(n);return l<0&&(l=a(s+l,0)),r(e,o(t,3),l)}},24739:(e,t,n)=>{var r=n(26025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},25160:e=>{e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},25911:(e,t,n)=>{var r=n(38859),o=n(14248),i=n(19219);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,f=t.length;if(u!=f&&!(c&&f>u))return!1;var d=l.get(e),p=l.get(t);if(d&&p)return d==t&&p==e;var h=-1,m=!0,y=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var g=e[h],v=t[h];if(a)var b=c?a(v,g,h,t,e,l):a(g,v,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(y){if(!o(t,(function(e,t){if(!i(y,t)&&(g===e||s(g,e,n,a,l)))return y.push(t)}))){m=!1;break}}else if(g!==v&&!s(g,v,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},26025:(e,t,n)=>{var r=n(75288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},27301:e=>{e.exports=function(e){return function(t){return e(t)}}},27534:(e,t,n)=>{var r=n(72552),o=n(40346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},28077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},28303:(e,t,n)=>{var r=n(56110)(n(9325),"WeakMap");e.exports=r},28586:(e,t,n)=>{var r=n(56449),o=n(44394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},28754:(e,t,n)=>{var r=n(25160);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},28879:(e,t,n)=>{var r=n(74335)(Object.getPrototypeOf,Object);e.exports=r},29817:e=>{e.exports=function(e){return this.__data__.has(e)}},29905:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},30294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},30361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},30641:(e,t,n)=>{var r=n(86649),o=n(95950);e.exports=function(e,t){return e&&r(e,t,o)}},30756:(e,t,n)=>{var r=n(23805);e.exports=function(e){return e==e&&!r(e)}},31175:(e,t,n)=>{var r=n(26025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},31380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},31684:(e,t,n)=>{var r=n(93599),o=n(56176),i=n(83488);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},31769:(e,t,n)=>{var r=n(56449),o=n(28586),i=n(61802),a=n(13222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},31800:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},32804:(e,t,n)=>{var r=n(56110)(n(9325),"Promise");e.exports=r},32865:(e,t,n)=>{var r=n(19570),o=n(51811)(r);e.exports=o},33031:(e,t,n)=>{var r=n(83120),o=n(46155),i=n(69302),a=n(36800),s=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=s},34840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},34932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},35229:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(51133)),o=n(98917);function i(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)})),n):n}i.default=i,e.exports=i},35749:(e,t,n)=>{var r=n(81042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},36800:(e,t,n)=>{var r=n(75288),o=n(64894),i=n(30361),a=n(23805);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},36957:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n(45413),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),M(this,e)},e}();t.Node=s;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=u;var f=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=a.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=f;var d=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=d;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(d);t.CDATA=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(d);t.Document=h;var m=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(d);function y(e){return(0,a.isTag)(e)}function g(e){return e.type===a.ElementType.CDATA}function v(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function x(e){return e.type===a.ElementType.Root}function M(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(y(e)){var r=t?j(e.children):[],o=new m(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(g(e)){r=t?j(e.children):[];var a=new p(r);r.forEach((function(e){return e.parent=a})),n=a}else if(x(e)){r=t?j(e.children):[];var s=new h(r);r.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new f(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function j(e){for(var t=e.map((function(e){return M(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=y,t.isCDATA=g,t.isText=v,t.isComment=b,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=M},37167:(e,t,n)=>{var r=n(4901),o=n(27301),i=n(86009),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},37217:(e,t,n)=>{var r=n(80079),o=n(51420),i=n(90938),a=n(63605),s=n(29817),l=n(80945);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},37334:e=>{e.exports=function(e){return function(){return e}}},37828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},38221:(e,t,n)=>{var r=n(23805),o=n(10124),i=n(99374),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,f,d,p,h=0,m=!1,y=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,r=c;return l=c=void 0,h=t,f=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||y&&e-h>=u}function w(){var e=o();if(b(e))return x(e);d=setTimeout(w,function(e){var n=t-(e-p);return y?s(n,u-(e-h)):n}(e))}function x(e){return d=void 0,g&&l?v(e):(l=c=void 0,f)}function M(){var e=o(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===d)return function(e){return h=e,d=setTimeout(w,t),m?v(e):f}(p);if(y)return clearTimeout(d),d=setTimeout(w,t),v(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(y="maxWait"in n)?a(i(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),M.cancel=function(){void 0!==d&&clearTimeout(d),h=0,l=p=c=d=void 0},M.flush=function(){return void 0===d?f:x(o())},M}},38329:(e,t,n)=>{var r=n(64894);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},38351:function(e,t,n){var r;!function(){"use strict";var o,i=1e9,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},s=!0,l="[DecimalError] ",c=l+"Invalid argument: ",u=l+"Exponent out of range: ",f=Math.floor,d=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h=1e7,m=f(1286742750677284.5),y={};function g(e,t){var n,r,o,i,a,l,c,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),s?S(t,d):t;if(c=e.d,u=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,l=u.length):(r=u,o=a,l=c.length),i>(l=(a=Math.ceil(d/7))>l?a+1:l+1)&&(i=l,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((l=c.length)-(i=u.length)<0&&(i=l,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/h|0,c[i]%=h;for(n&&(c.unshift(n),++o),l=c.length;0==c[--l];)c.pop();return t.d=c,t.e=o,s?S(t,d):t}function v(e,t,n){if(e!==~~e||e<t||e>n)throw Error(c+e)}function b(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)(n=7-(r=e[t]+"").length)&&(i+=E(n)),i+=r;(n=7-(r=(a=e[t])+"").length)&&(i+=E(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}y.absoluteValue=y.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},y.comparedTo=y.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},y.decimalPlaces=y.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},y.dividedBy=y.div=function(e){return w(this,new this.constructor(e))},y.dividedToIntegerBy=y.idiv=function(e){var t=this.constructor;return S(w(this,new t(e),0,1),t.precision)},y.equals=y.eq=function(e){return!this.cmp(e)},y.exponent=function(){return M(this)},y.greaterThan=y.gt=function(e){return this.cmp(e)>0},y.greaterThanOrEqualTo=y.gte=function(e){return this.cmp(e)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(e){return this.cmp(e)<0},y.lessThanOrEqualTo=y.lte=function(e){return this.cmp(e)<1},y.logarithm=y.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(o))throw Error(l+"NaN");if(n.s<1)throw Error(l+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(s=!1,t=w(O(n,a),O(e,a),a),s=!0,S(t,i))},y.minus=y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?N(t,e):g(t,(e.s=-e.s,e))},y.modulo=y.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(l+"NaN");return n.s?(s=!1,t=w(n,e,0,1).times(e),s=!0,n.minus(t)):S(new r(n),o)},y.naturalExponential=y.exp=function(){return x(this)},y.naturalLogarithm=y.ln=function(){return O(this)},y.negated=y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},y.plus=y.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?g(t,e):N(t,(e.s=-e.s,e))},y.precision=y.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(c+e);if(t=M(o)+1,n=7*(r=o.d.length-1)+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},y.squareRoot=y.sqrt=function(){var e,t,n,r,o,i,a,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(l+"NaN")}for(e=M(c),s=!1,0==(o=Math.sqrt(+c))||o==1/0?(((t=b(c.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),r=new u(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new u(o.toString()),o=a=(n=u.precision)+3;;)if(r=(i=r).plus(w(c,i,a+2)).times(.5),b(i.d).slice(0,a)===(t=b(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(S(i,n+1,0),i.times(i).eq(c)){r=i;break}}else if("9999"!=t)break;a+=4}return s=!0,S(r,n)},y.times=y.mul=function(e){var t,n,r,o,i,a,l,c,u,f=this,d=f.constructor,p=f.d,m=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,(c=p.length)<(u=m.length)&&(i=p,p=m,m=i,a=c,c=u,u=a),i=[],r=a=c+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)l=i[o]+m[r]*p[o-r-1]+t,i[o--]=l%h|0,t=l/h|0;i[o]=(i[o]+t)%h|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,s?S(e,d.precision):e},y.toDecimalPlaces=y.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(v(e,0,i),void 0===t?t=r.rounding:v(t,0,8),S(n,e+M(n)+1,t))},y.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=T(r,!0):(v(e,0,i),void 0===t?t=o.rounding:v(t,0,8),n=T(r=S(new o(r),e+1,t),!0,e+1)),n},y.toFixed=function(e,t){var n,r,o=this,a=o.constructor;return void 0===e?T(o):(v(e,0,i),void 0===t?t=a.rounding:v(t,0,8),n=T((r=S(new a(o),e+M(o)+1,t)).abs(),!1,e+M(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},y.toInteger=y.toint=function(){var e=this,t=e.constructor;return S(new t(e),M(e)+1,t.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(e){var t,n,r,i,a,c,u=this,d=u.constructor,p=+(e=new d(e));if(!e.s)return new d(o);if(!(u=new d(u)).s){if(e.s<1)throw Error(l+"Infinity");return u}if(u.eq(o))return u;if(r=d.precision,e.eq(o))return S(u,r);if(c=(t=e.e)>=(n=e.d.length-1),a=u.s,c){if((n=p<0?-p:p)<=9007199254740991){for(i=new d(o),t=Math.ceil(r/7+4),s=!1;n%2&&A((i=i.times(u)).d,t),0!==(n=f(n/2));)A((u=u.times(u)).d,t);return s=!0,e.s<0?new d(o).div(i):S(i,r)}}else if(a<0)throw Error(l+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,s=!1,i=e.times(O(u,r+12)),s=!0,(i=x(i)).s=a,i},y.toPrecision=function(e,t){var n,r,o=this,a=o.constructor;return void 0===e?r=T(o,(n=M(o))<=a.toExpNeg||n>=a.toExpPos):(v(e,1,i),void 0===t?t=a.rounding:v(t,0,8),r=T(o=S(new a(o),e,t),e<=(n=M(o))||n<=a.toExpNeg,e)),r},y.toSignificantDigits=y.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(v(e,1,i),void 0===t?t=n.rounding:v(t,0,8)),S(new n(this),e,t)},y.toString=y.valueOf=y.val=y.toJSON=function(){var e=this,t=M(e),n=e.constructor;return T(e,t<=n.toExpNeg||t>=n.toExpPos)};var w=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%h|0,r=n/h|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*h+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,c,u,f,d,p,m,y,g,v,b,w,x,j,E,O,k,N,T=r.constructor,A=r.s==o.s?1:-1,D=r.d,C=o.d;if(!r.s)return new T(r);if(!o.s)throw Error(l+"Division by zero");for(c=r.e-o.e,k=C.length,E=D.length,y=(m=new T(A)).d=[],u=0;C[u]==(D[u]||0);)++u;if(C[u]>(D[u]||0)&&--c,(w=null==i?i=T.precision:a?i+(M(r)-M(o))+1:i)<0)return new T(0);if(w=w/7+2|0,u=0,1==k)for(f=0,C=C[0],w++;(u<E||f)&&w--;u++)x=f*h+(D[u]||0),y[u]=x/C|0,f=x%C|0;else{for((f=h/(C[0]+1)|0)>1&&(C=e(C,f),D=e(D,f),k=C.length,E=D.length),j=k,v=(g=D.slice(0,k)).length;v<k;)g[v++]=0;(N=C.slice()).unshift(0),O=C[0],C[1]>=h/2&&++O;do{f=0,(s=t(C,g,k,v))<0?(b=g[0],k!=v&&(b=b*h+(g[1]||0)),(f=b/O|0)>1?(f>=h&&(f=h-1),1==(s=t(d=e(C,f),g,p=d.length,v=g.length))&&(f--,n(d,k<p?N:C,p))):(0==f&&(s=f=1),d=C.slice()),(p=d.length)<v&&d.unshift(0),n(g,d,v),-1==s&&(s=t(C,g,k,v=g.length))<1&&(f++,n(g,k<v?N:C,v)),v=g.length):0===s&&(f++,g=[0]),y[u++]=f,s&&g[0]?g[v++]=D[j]||0:(g=[D[j]],v=1)}while((j++<E||void 0!==g[0])&&w--)}return y[0]||y.shift(),m.e=c,S(m,a?i+M(m)+1:i)}}();function x(e,t){var n,r,i,a,l,c=0,f=0,p=e.constructor,h=p.precision;if(M(e)>16)throw Error(u+M(e));if(!e.s)return new p(o);for(null==t?(s=!1,l=h):l=t,a=new p(.03125);e.abs().gte(.1);)e=e.times(a),f+=5;for(l+=Math.log(d(2,f))/Math.LN10*2+5|0,n=r=i=new p(o),p.precision=l;;){if(r=S(r.times(e),l),n=n.times(++c),b((a=i.plus(w(r,n,l))).d).slice(0,l)===b(i.d).slice(0,l)){for(;f--;)i=S(i.times(i),l);return p.precision=h,null==t?(s=!0,S(i,h)):i}i=a}}function M(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function j(e,t,n){if(t>e.LN10.sd())throw s=!0,n&&(e.precision=n),Error(l+"LN10 precision limit exceeded");return S(new e(e.LN10),t)}function E(e){for(var t="";e--;)t+="0";return t}function O(e,t){var n,r,i,a,c,u,f,d,p,h=1,m=e,y=m.d,g=m.constructor,v=g.precision;if(m.s<1)throw Error(l+(m.s?"NaN":"-Infinity"));if(m.eq(o))return new g(0);if(null==t?(s=!1,d=v):d=t,m.eq(10))return null==t&&(s=!0),j(g,d);if(d+=10,g.precision=d,r=(n=b(y)).charAt(0),a=M(m),!(Math.abs(a)<15e14))return f=j(g,d+2,v).times(a+""),m=O(new g(r+"."+n.slice(1)),d-10).plus(f),g.precision=v,null==t?(s=!0,S(m,v)):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=b((m=m.times(e)).d)).charAt(0),h++;for(a=M(m),r>1?(m=new g("0."+n),a++):m=new g(r+"."+n.slice(1)),u=c=m=w(m.minus(o),m.plus(o),d),p=S(m.times(m),d),i=3;;){if(c=S(c.times(p),d),b((f=u.plus(w(c,new g(i),d))).d).slice(0,d)===b(u.d).slice(0,d))return u=u.times(2),0!==a&&(u=u.plus(j(g,d+2,v).times(a+""))),u=w(u,new g(h),d),g.precision=v,null==t?(s=!0,S(u,v)):u;u=f,i+=2}}function k(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=f(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=7;r<o;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),s&&(e.e>m||e.e<-m))throw Error(u+n)}else e.s=0,e.e=0,e.d=[0];return e}function S(e,t,n){var r,o,i,a,l,c,p,y,g=e.d;for(a=1,i=g[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=7,o=t,p=g[y=0];else{if((y=Math.ceil((r+1)/7))>=(i=g.length))return e;for(p=i=g[y],a=1;i>=10;i/=10)a++;o=(r%=7)-7+a}if(void 0!==n&&(l=p/(i=d(10,a-o-1))%10|0,c=t<0||void 0!==g[y+1]||p%i,c=n<4?(l||c)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||c||6==n&&(r>0?o>0?p/d(10,a-o):0:g[y-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return c?(i=M(e),g.length=1,t=t-i-1,g[0]=d(10,(7-t%7)%7),e.e=f(-t/7)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==r?(g.length=y,i=1,y--):(g.length=y+1,i=d(10,7-r),g[y]=o>0?(p/d(10,a-o)%d(10,o)|0)*i:0),c)for(;;){if(0==y){(g[0]+=i)==h&&(g[0]=1,++e.e);break}if(g[y]+=i,g[y]!=h)break;g[y--]=0,i=1}for(r=g.length;0===g[--r];)g.pop();if(s&&(e.e>m||e.e<-m))throw Error(u+M(e));return e}function N(e,t){var n,r,o,i,a,l,c,u,f,d,p=e.constructor,m=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),s?S(t,m):t;if(c=e.d,d=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r){for((f=a<0)?(n=c,a=-a,l=d.length):(n=d,r=u,l=c.length),a>(o=Math.max(Math.ceil(m/7),l)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((f=(o=c.length)<(l=d.length))&&(l=o),o=0;o<l;o++)if(c[o]!=d[o]){f=c[o]<d[o];break}a=0}for(f&&(n=c,c=d,d=n,t.s=-t.s),l=c.length,o=d.length-l;o>0;--o)c[l++]=0;for(o=d.length;o>a;){if(c[--o]<d[o]){for(i=o;i&&0===c[--i];)c[i]=h-1;--c[i],c[o]+=h}c[o]-=d[o]}for(;0===c[--l];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,s?S(t,m):t):new p(0)}function T(e,t,n){var r,o=M(e),i=b(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+E(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+E(-o-1)+i,n&&(r=n-a)>0&&(i+=E(r))):o>=a?(i+=E(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+E(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=E(r))),e.s<0?"-"+i:i}function A(e,t){if(e.length>t)return e.length=t,!0}function D(e){if(!e||"object"!=typeof e)throw Error(l+"Object expected");var t,n,r,o=["precision",1,i,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(f(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(c+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(c+n+": "+r);this[n]=new this(r)}return this}(a=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(c+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):k(t,e.toString())}if("string"!=typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!p.test(e))throw Error(c+e);k(t,e)}if(i.prototype=y,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=D,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}(a)).default=a.Decimal=a,o=new a(1),void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},38859:(e,t,n)=>{var r=n(53661),o=n(31380),i=n(51459);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},40346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},41141:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(45413),a=n(36957);o(n(36957),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},41799:(e,t,n)=>{var r=n(37217),o=n(60270);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],f=e[u],d=c[1];if(l&&c[2]){if(void 0===f&&!(u in e))return!1}else{var p=new r;if(i)var h=i(f,d,u,e,t,p);if(!(void 0===h?o(d,f,3,i,p):h))return!1}}return!0}},42054:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",u=c+l+"(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+l+")*",f="(?:"+[i+r+"?",r,a,s,n].join("|")+")",d=RegExp(o+"(?="+o+")|"+f+u,"g");e.exports=function(e){return e.match(d)||[]}},42426:(e,t,n)=>{var r=n(14248),o=n(15389),i=n(90916),a=n(56449),s=n(36800);e.exports=function(e,t,n){var l=a(e)?r:i;return n&&s(e,t,n)&&(t=void 0),l(e,o(t,3))}},43360:(e,t,n)=>{var r=n(93243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},43714:(e,t,n)=>{var r=n(53730);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,s=i.length,l=n.length;++o<s;){var c=r(i[o],a[o]);if(c)return o>=l?c:c*("desc"==n[o]?-1:1)}return e.index-t.index}},44394:(e,t,n)=>{var r=n(72552),o=n(40346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},44517:(e,t,n)=>{var r=n(76545),o=n(63950),i=n(84247),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},45083:(e,t,n)=>{var r=n(1882),o=n(87296),i=n(23805),a=n(47473),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,d=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:s).test(a(e))}},45413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},45891:(e,t,n)=>{var r=n(51873),o=n(72428),i=n(56449),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},46155:(e,t,n)=>{var r=n(34932),o=n(47422),i=n(15389),a=n(5128),s=n(73937),l=n(27301),c=n(43714),u=n(83488),f=n(56449);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return f(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[u];var d=-1;t=r(t,l(i));var p=a(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++d,value:e}}));return s(p,(function(e,t){return c(e,t,n)}))}},47237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},47307:(e,t,n)=>{var r=n(83120),o=n(55378);e.exports=function(e,t){return r(o(e,t),1)}},47422:(e,t,n)=>{var r=n(31769),o=n(77797);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},47473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},48655:(e,t,n)=>{var r=n(26025);e.exports=function(e){return r(this.__data__,e)>-1}},49326:(e,t,n)=>{var r=n(31769),o=n(72428),i=n(56449),a=n(30361),s=n(30294),l=n(77797);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,f=!1;++c<u;){var d=l(t[c]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++c!=u?f:!!(u=null==e?0:e.length)&&s(u)&&a(d,u)&&(i(e)||o(e))}},49698:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},50002:(e,t,n)=>{var r=n(82199),o=n(4664),i=n(95950);e.exports=function(e){return r(e,i,o)}},50014:(e,t,n)=>{var r=n(15389),o=n(55765);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},50104:(e,t,n)=>{var r=n(53661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},50442:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,a.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||l),t):[]};var o=r(n(92471));t.htmlToDOM=o.default;var i=r(n(20840));t.attributesToProps=i.default;var a=r(n(10308));t.domToReact=a.default;var s=n(41141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return s.Text}});var l={lowerCaseAttributeNames:!1}},50583:(e,t,n)=>{var r=n(47237),o=n(17255),i=n(28586),a=n(77797);e.exports=function(e){return i(e)?r(a(e)):o(e)}},50689:(e,t,n)=>{var r=n(50002),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var f=u;f--;){var d=c[f];if(!(l?d in t:o.call(t,d)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var y=l;++f<u;){var g=e[d=c[f]],v=t[d];if(i)var b=l?i(v,g,d,t,e,s):i(g,v,d,e,t,s);if(!(void 0===b?g===v||a(g,v,n,i,s):b)){m=!1;break}y||(y="constructor"==d)}if(m&&!y){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},51133:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}})),n};var o=r(n(19788))},51420:(e,t,n)=>{var r=n(80079);e.exports=function(){this.__data__=new r,this.size=0}},51459:e=>{e.exports=function(e){return this.__data__.has(e)}},51609:e=>{"use strict";e.exports=window.React},51811:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},51873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},52199:(e,t,n)=>{"use strict";e.exports=n(78867)},53661:(e,t,n)=>{var r=n(63040),o=n(17670),i=n(90289),a=n(4509),s=n(72949);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},53730:(e,t,n)=>{var r=n(44394);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),s=void 0!==t,l=null===t,c=t==t,u=r(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||o&&s&&c||!n&&c||!i)return 1;if(!o&&!a&&!u&&e<t||u&&n&&i&&!o&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}},53812:(e,t,n)=>{var r=n(72552),o=n(40346);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},54128:(e,t,n)=>{var r=n(31800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},55378:(e,t,n)=>{var r=n(34932),o=n(15389),i=n(5128),a=n(56449);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},55481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},55527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},55580:(e,t,n)=>{var r=n(56110)(n(9325),"DataView");e.exports=r},55765:(e,t,n)=>{var r=n(38859),o=n(15325),i=n(29905),a=n(19219),s=n(44517),l=n(84247);e.exports=function(e,t,n){var c=-1,u=o,f=e.length,d=!0,p=[],h=p;if(n)d=!1,u=i;else if(f>=200){var m=t?null:s(e);if(m)return l(m);d=!1,u=a,h=new r}else h=t?[]:p;e:for(;++c<f;){var y=e[c],g=t?t(y):y;if(y=n||0!==y?y:0,d&&g==g){for(var v=h.length;v--;)if(h[v]===g)continue e;t&&h.push(g),p.push(y)}else u(h,g,n)||(h!==p&&h.push(g),p.push(y))}return p}},55808:(e,t,n)=>{var r=n(12507)("toUpperCase");e.exports=r},56110:(e,t,n)=>{var r=n(45083),o=n(10392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},56176:e=>{e.exports=function(e,t){return e<t}},56449:e=>{var t=Array.isArray;e.exports=t},56757:(e,t,n)=>{var r=n(91033),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(l),r(e,this,c)}}},58156:(e,t,n)=>{var r=n(47422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},59350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60270:(e,t,n)=>{var r=n(87068),o=n(40346);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},61074:e=>{e.exports=function(e){return e.split("")}},61802:(e,t,n)=>{var r=n(62224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},62006:(e,t,n)=>{var r=n(15389),o=n(64894),i=n(95950);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!o(t)){var l=r(n,3);t=i(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,a);return c>-1?s[l?t[c]:c]:void 0}}},62224:(e,t,n)=>{var r=n(50104);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},63040:(e,t,n)=>{var r=n(21549),o=n(80079),i=n(68223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},63345:e=>{e.exports=function(){return[]}},63605:e=>{e.exports=function(e){return this.__data__.get(e)}},63702:e=>{e.exports=function(){this.__data__=[],this.size=0}},63862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},63912:(e,t,n)=>{var r=n(61074),o=n(49698),i=n(42054);e.exports=function(e){return o(e)?i(e):r(e)}},63950:e=>{e.exports=function(){}},64894:(e,t,n)=>{var r=n(1882),o=n(30294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},65496:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,d=(e=(0,r.escapeSpecialCharacters)(e)).match(s),p=d&&d[1]?d[1].toLowerCase():"";switch(p){case o:var h=f(e);return l.test(e)||null===(t=null==(g=h.querySelector(i))?void 0:g.parentNode)||void 0===t||t.removeChild(g),c.test(e)||null===(n=null==(g=h.querySelector(a))?void 0:g.parentNode)||void 0===n||n.removeChild(g),h.querySelectorAll(o);case i:case a:var y=u(e).querySelectorAll(p);return c.test(e)&&l.test(e)?y[0].parentNode.childNodes:y;default:return m?m(e):(g=u(e,a).querySelector(a)).childNodes;var g}};var r=n(67731),o="html",i="head",a="body",s=/<([a-zA-Z]+[0-9]?)/,l=/<head[^]*>/i,c=/<body[^]*>/i,u=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},f=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},d="object"==typeof window&&window.DOMParser;if("function"==typeof d){var p=new d;u=f=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),p.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var h=document.implementation.createHTMLDocument();u=function(e,t){if(t){var n=h.documentElement.querySelector(t);return n&&(n.innerHTML=e),h}return h.documentElement.innerHTML=e,h}}var m,y="object"==typeof document&&document.createElement("template");y&&y.content&&(m=function(e){return y.innerHTML=e,y.content.childNodes})},66721:(e,t,n)=>{var r=n(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},67197:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},67731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=i,t.escapeSpecialCharacters=function(e){return e.replace(o.CARRIAGE_RETURN_REGEX,o.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=s,t.formatDOM=function e(t,n,o){void 0===n&&(n=null);for(var l,c=[],u=0,f=t.length;u<f;u++){var d=t[u];switch(d.nodeType){case 1:var p=a(d.nodeName);(l=new r.Element(p,i(d.attributes))).children=e("template"===p?d.content.childNodes:d.childNodes,l);break;case 3:l=new r.Text(s(d.nodeValue));break;case 8:l=new r.Comment(d.nodeValue);break;default:continue}var h=c[u-1]||null;h&&(h.next=l),l.parent=n,l.prev=h,l.next=null,c.push(l)}return o&&((l=new r.ProcessingInstruction(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=c[0]||null,l.parent=n,c.unshift(l),c[1]&&(c[1].prev=c[0])),c};var r=n(41141),o=n(15270);function i(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}function a(e){return function(e){return o.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase())||e}function s(e){return e.replace(o.CARRIAGE_RETURN_PLACEHOLDER_REGEX,o.CARRIAGE_RETURN)}},68090:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},68223:(e,t,n)=>{var r=n(56110)(n(9325),"Map");e.exports=r},69302:(e,t,n)=>{var r=n(83488),o=n(56757),i=n(32865);e.exports=function(e,t){return i(o(e,t,r),e+"")}},69843:e=>{e.exports=function(e){return null==e}},70080:(e,t,n)=>{var r=n(26025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},70695:(e,t,n)=>{var r=n(78096),o=n(72428),i=n(56449),a=n(3656),s=n(30361),l=n(37167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),f=!n&&!u&&a(e),d=!n&&!u&&!f&&l(e),p=n||u||f||d,h=p?r(e.length,String):[],m=h.length;for(var y in e)!t&&!c.call(e,y)||p&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,m))||h.push(y);return h}},72428:(e,t,n)=>{var r=n(27534),o=n(40346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},72552:(e,t,n)=>{var r=n(51873),o=n(659),i=n(59350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},72949:(e,t,n)=>{var r=n(12651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},73916:(e,t,n)=>{var r=n(43360),o=n(30641),i=n(15389);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,o,t(e,o,i))})),n}},73937:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},74218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},74335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},74848:(e,t,n)=>{"use strict";e.exports=n(21020)},74958:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,s)}catch(e){t.style={}}else t.style={}};var o=n(51609),i=r(n(35229)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),s={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},75288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},76545:(e,t,n)=>{var r=n(56110)(n(9325),"Set");e.exports=r},76959:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},77556:(e,t,n)=>{var r=n(51873),o=n(34932),i=n(56449),a=n(44394),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},77797:(e,t,n)=>{var r=n(44394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},78096:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},78867:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isFragment=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case f:case d:return e;default:switch(e=e&&e.$$typeof){case c:case l:case u:case h:case p:case s:return e;default:return t}}case r:return t}}}(e)===o}},79770:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},80079:(e,t,n)=>{var r=n(63702),o=n(70080),i=n(24739),a=n(48655),s=n(31175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},80631:(e,t,n)=>{var r=n(28077),o=n(49326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},80909:(e,t,n)=>{var r=n(30641),o=n(38329)(r);e.exports=o},80945:(e,t,n)=>{var r=n(80079),o=n(68223),i=n(53661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},81042:(e,t,n)=>{var r=n(56110)(Object,"create");e.exports=r},82199:(e,t,n)=>{var r=n(14528),o=n(56449);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},83120:(e,t,n)=>{var r=n(14528),o=n(45891);e.exports=function e(t,n,i,a,s){var l=-1,c=t.length;for(i||(i=o),s||(s=[]);++l<c;){var u=t[l];n>0&&i(u)?n>1?e(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},83221:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},83488:e=>{e.exports=function(e){return e}},83870:(e,t,n)=>{var r=n(17400);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},84247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},85015:(e,t,n)=>{var r=n(72552),o=n(56449),i=n(40346);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},85463:e=>{e.exports=function(e){return e!=e}},85508:(e,t,n)=>{var r=n(86151),o=n(36800),i=n(17400);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},86009:(e,t,n)=>{e=n.nmd(e);var r=n(34840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},86151:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,s=n(t((r-e)/(o||1)),0),l=Array(s);s--;)l[i?s:++a]=e,e+=o;return l}},86649:(e,t,n)=>{var r=n(83221)();e.exports=r},87068:(e,t,n)=>{var r=n(37217),o=n(25911),i=n(21986),a=n(50689),s=n(5861),l=n(56449),c=n(3656),u=n(37167),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,y,g){var v=l(e),b=l(t),w=v?d:s(e),x=b?d:s(t),M=(w=w==f?p:w)==p,j=(x=x==f?p:x)==p,E=w==x;if(E&&c(e)){if(!c(t))return!1;v=!0,M=!1}if(E&&!M)return g||(g=new r),v||u(e)?o(e,t,n,m,y,g):i(e,t,w,n,m,y,g);if(!(1&n)){var O=M&&h.call(e,"__wrapped__"),k=j&&h.call(t,"__wrapped__");if(O||k){var S=O?e.value():e,N=k?t.value():t;return g||(g=new r),y(S,N,n,m,g)}}return!!E&&(g||(g=new r),a(e,t,n,m,y,g))}},87296:(e,t,n)=>{var r,o=n(55481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},87978:(e,t,n)=>{var r=n(60270),o=n(58156),i=n(80631),a=n(28586),s=n(30756),l=n(67197),c=n(77797);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},88984:(e,t,n)=>{var r=n(55527),o=n(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},89935:e=>{e.exports=function(){return!1}},90289:(e,t,n)=>{var r=n(12651);e.exports=function(e){return r(this,e).get(e)}},90916:(e,t,n)=>{var r=n(80909);e.exports=function(e,t){var n;return r(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}},90938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},91033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},92471:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(a),n=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,n)};var o=r(n(65496)),i=n(67731),a=/<(![a-zA-Z\s]+)>/},93243:(e,t,n)=>{var r=n(56110),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},93599:(e,t,n)=>{var r=n(44394);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o<i;){var a=e[o],s=t(a);if(null!=s&&(void 0===l?s==s&&!r(s):n(s,l)))var l=s,c=a}return c}},93663:(e,t,n)=>{var r=n(41799),o=n(10776),i=n(67197);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},94506:(e,t,n)=>{var r=n(93599),o=n(3335),i=n(83488);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},95950:(e,t,n)=>{var r=n(70695),o=n(88984),i=n(64894);e.exports=function(e){return i(e)?r(e):o(e)}},96131:(e,t,n)=>{var r=n(2523),o=n(85463),i=n(76959);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},96811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},98023:(e,t,n)=>{var r=n(72552),o=n(40346);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},98917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(i,l)).replace(r,s))}},99374:(e,t,n)=>{var r=n(54128),o=n(23805),i=n(44394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{"use strict";var e={};o.r(e),o.d(e,{Button:()=>Yb,CaptionLabel:()=>Wb,Chevron:()=>Hb,Day:()=>Gb,DayButton:()=>Qb,Dropdown:()=>$b,DropdownNav:()=>qb,Footer:()=>Zb,Month:()=>Xb,MonthCaption:()=>Kb,MonthGrid:()=>Jb,Months:()=>ew,MonthsDropdown:()=>tw,Nav:()=>nw,NextMonthButton:()=>rw,Option:()=>ow,PreviousMonthButton:()=>iw,Root:()=>aw,Select:()=>sw,Week:()=>lw,WeekNumber:()=>fw,WeekNumberHeader:()=>dw,Weekday:()=>cw,Weekdays:()=>uw,Weeks:()=>pw,YearsDropdown:()=>hw});var t={};o.r(t),o.d(t,{formatCaption:()=>yw,formatDay:()=>vw,formatMonthCaption:()=>gw,formatMonthDropdown:()=>bw,formatWeekNumber:()=>ww,formatWeekNumberHeader:()=>xw,formatWeekdayName:()=>Mw,formatYearCaption:()=>Ew,formatYearDropdown:()=>jw});var n={};o.r(n),o.d(n,{labelCaption:()=>kw,labelDay:()=>Tw,labelDayButton:()=>Nw,labelGrid:()=>Ow,labelGridcell:()=>Sw,labelMonthDropdown:()=>Dw,labelNav:()=>Aw,labelNext:()=>Cw,labelPrevious:()=>Iw,labelWeekNumber:()=>_w,labelWeekNumberHeader:()=>Rw,labelWeekday:()=>Pw,labelYearDropdown:()=>zw});var r={};o.r(r),o.d(r,{scaleBand:()=>gk,scaleDiverging:()=>FD,scaleDivergingLog:()=>BD,scaleDivergingPow:()=>YD,scaleDivergingSqrt:()=>WD,scaleDivergingSymlog:()=>VD,scaleIdentity:()=>zN,scaleImplicit:()=>mk,scaleLinear:()=>RN,scaleLog:()=>GN,scaleOrdinal:()=>yk,scalePoint:()=>bk,scalePow:()=>tT,scaleQuantile:()=>fT,scaleQuantize:()=>dT,scaleRadial:()=>oT,scaleSequential:()=>ID,scaleSequentialLog:()=>PD,scaleSequentialPow:()=>RD,scaleSequentialQuantile:()=>LD,scaleSequentialSqrt:()=>zD,scaleSequentialSymlog:()=>_D,scaleSqrt:()=>nT,scaleSymlog:()=>ZN,scaleThreshold:()=>pT,scaleTime:()=>TD,scaleUtc:()=>AD,tickFormat:()=>PN});const i=window.wp.element;var a,s=o(51609),l=o.t(s,2),c=o.n(s);function u(){return u=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},u.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));const f="popstate";function d(e,t){if(!1===e||null==e)throw new Error(t)}function p(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function h(e,t){return{usr:e.state,key:e.key,idx:t}}function m(e,t,n,r){return void 0===n&&(n=null),u({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?g(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function y(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function g(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var v;function b(e,t,n){return void 0===n&&(n="/"),function(e,t,n,r){let o=I(("string"==typeof t?g(t):t).pathname||"/",n);if(null==o)return null;let i=w(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=C(o);a=A(i[e],t,r)}return a}(e,t,n,!1)}function w(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(d(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=U([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(d(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),w(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:T(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of x(e.path))o(e,t,n);else o(e,t)})),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=x(r.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(v||(v={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const M=/^:[\w-]+$/,j=3,E=2,O=1,k=10,S=-2,N=e=>"*"===e;function T(e,t){let n=e.split("/"),r=n.length;return n.some(N)&&(r+=S),t&&(r+=E),n.filter((e=>!N(e))).reduce(((e,t)=>e+(M.test(t)?j:""===t?O:k)),r)}function A(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e<r.length;++e){let s=r[e],l=e===r.length-1,c="/"===i?t:t.slice(i.length)||"/",u=D({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c),f=s.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=D({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:U([i,u.pathname]),pathnameBase:F(U([i,u.pathnameBase])),route:f}),"/"!==u.pathnameBase&&(i=U([i,u.pathnameBase]))}return a}function D(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),p("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1),l=r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:i,pathnameBase:a,pattern:e}}function C(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return p(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function I(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}const P=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function _(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function R(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function z(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function L(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=g(e):(o=u({},e),d(!o.pathname||!o.pathname.includes("?"),R("?","pathname","search",o)),d(!o.pathname||!o.pathname.includes("#"),R("#","pathname","hash",o)),d(!o.search||!o.search.includes("#"),R("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let n,{pathname:r,search:o="",hash:i=""}="string"==typeof e?g(e):e;if(r)if(a=r,P.test(a))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),p(!1,"Pathnames cannot have embedded double slashes - normalizing "+e+" -> "+r)}n=r.startsWith("/")?_(r.substring(1),"/"):_(r,t)}else n=t;var a;return{pathname:n,search:B(o),hash:V(i)}}(o,i),c=s&&"/"!==s&&s.endsWith("/"),f=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!f||(l.pathname+="/"),l}const U=e=>e.join("/").replace(/\/\/+/g,"/"),F=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",V=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const Y=["post","put","patch","delete"],W=(new Set(Y),["get",...Y]);function H(){return H=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},H.apply(this,arguments)}new Set(W),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const G=s.createContext(null),Q=s.createContext(null),$=s.createContext(null),q=s.createContext(null),Z=s.createContext({outlet:null,matches:[],isDataRoute:!1}),X=s.createContext(null);function K(){return null!=s.useContext(q)}function J(){return K()||d(!1),s.useContext(q).location}function ee(e){s.useContext($).static||s.useLayoutEffect(e)}function te(){let{isDataRoute:e}=s.useContext(Z);return e?function(){let{router:e}=function(){let e=s.useContext(G);return e||d(!1),e}(le.UseNavigateStable),t=ue(ce.UseNavigateStable),n=s.useRef(!1);return ee((()=>{n.current=!0})),s.useCallback((function(r,o){void 0===o&&(o={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,H({fromRouteId:t},o)))}),[e,t])}():function(){K()||d(!1);let e=s.useContext(G),{basename:t,future:n,navigator:r}=s.useContext($),{matches:o}=s.useContext(Z),{pathname:i}=J(),a=JSON.stringify(z(o,n.v7_relativeSplatPath)),l=s.useRef(!1);return ee((()=>{l.current=!0})),s.useCallback((function(n,o){if(void 0===o&&(o={}),!l.current)return;if("number"==typeof n)return void r.go(n);let s=L(n,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:U([t,s.pathname])),(o.replace?r.replace:r.push)(s,o.state,o)}),[t,r,a,i,e])}()}const ne=s.createContext(null);function re(e,t,n,r){K()||d(!1);let{navigator:o}=s.useContext($),{matches:i}=s.useContext(Z),l=i[i.length-1],c=l?l.params:{},u=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let f,p=J();if(t){var h;let e="string"==typeof t?g(t):t;"/"===u||(null==(h=e.pathname)?void 0:h.startsWith(u))||d(!1),f=e}else f=p;let m=f.pathname||"/",y=m;if("/"!==u){let e=u.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=b(e,{pathname:y}),w=function(e,t,n,r){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var i;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(i=r)&&i.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let a=e,l=null==(o=n)?void 0:o.errors;if(null!=l){let e=a.findIndex((e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id])));e>=0||d(!1),a=a.slice(0,Math.min(a.length,e+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){c=!0,a=u>=0?a.slice(0,u+1):[a[0]];break}}}return a.reduceRight(((e,r,o)=>{let i,f=!1,d=null,p=null;var h;n&&(i=l&&r.route.id?l[r.route.id]:void 0,d=r.route.errorElement||ie,c&&(u<0&&0===o?(fe[h="route-fallback"]||(fe[h]=!0),f=!0,p=null):u===o&&(f=!0,p=r.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,o+1)),y=()=>{let t;return t=i?d:f?p:r.route.Component?s.createElement(r.route.Component,null):r.route.element?r.route.element:e,s.createElement(se,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?s.createElement(ae,{location:n.location,revalidation:n.revalidation,component:d,error:i,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):y()}),null)}(v&&v.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:U([u,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:U([u,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,n,r);return t&&w?s.createElement(q.Provider,{value:{location:H({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:a.Pop}},w):w}function oe(){let e=function(){var e;let t=s.useContext(X),n=function(){let e=s.useContext(Q);return e||d(!1),e}(ce.UseRouteError),r=ue(ce.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[r]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return s.createElement(s.Fragment,null,s.createElement("h2",null,"Unexpected Application Error!"),s.createElement("h3",{style:{fontStyle:"italic"}},t),n?s.createElement("pre",{style:r},n):null,null)}const ie=s.createElement(oe,null);class ae extends s.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?s.createElement(Z.Provider,{value:this.props.routeContext},s.createElement(X.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function se(e){let{routeContext:t,match:n,children:r}=e,o=s.useContext(G);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),s.createElement(Z.Provider,{value:t},r)}var le=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(le||{}),ce=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ce||{});function ue(e){let t=function(){let e=s.useContext(Z);return e||d(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||d(!1),n.route.id}const fe={};function de(e){let{to:t,replace:n,state:r,relative:o}=e;K()||d(!1);let{future:i,static:a}=s.useContext($),{matches:l}=s.useContext(Z),{pathname:c}=J(),u=te(),f=L(t,z(l,i.v7_relativeSplatPath),c,"path"===o),p=JSON.stringify(f);return s.useEffect((()=>u(JSON.parse(p),{replace:n,state:r,relative:o})),[u,p,o,n,r]),null}function pe(e){return function(e){let t=s.useContext(Z).outlet;return t?s.createElement(ne.Provider,{value:e},t):t}(e.context)}function he(e){d(!1)}function me(e){let{basename:t="/",children:n=null,location:r,navigationType:o=a.Pop,navigator:i,static:l=!1,future:c}=e;K()&&d(!1);let u=t.replace(/^\/*/,"/"),f=s.useMemo((()=>({basename:u,navigator:i,static:l,future:H({v7_relativeSplatPath:!1},c)})),[u,c,i,l]);"string"==typeof r&&(r=g(r));let{pathname:p="/",search:h="",hash:m="",state:y=null,key:v="default"}=r,b=s.useMemo((()=>{let e=I(p,u);return null==e?null:{location:{pathname:e,search:h,hash:m,state:y,key:v},navigationType:o}}),[u,p,h,m,y,v,o]);return null==b?null:s.createElement($.Provider,{value:f},s.createElement(q.Provider,{children:n,value:b}))}function ye(e){let{children:t,location:n}=e;return re(ge(t),n)}function ge(e,t){void 0===t&&(t=[]);let n=[];return s.Children.forEach(e,((e,r)=>{if(!s.isValidElement(e))return;let o=[...t,r];if(e.type===s.Fragment)return void n.push.apply(n,ge(e.props.children,o));e.type!==he&&d(!1),e.props.index&&e.props.children&&d(!1);let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=ge(e.props.children,o)),n.push(i)})),n}s.startTransition,new Promise((()=>{})),s.Component;const ve=window.ReactDOM;new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(lu){}new Map;const be=s.startTransition;function we(e){let{basename:t,children:n,future:r,window:o}=e,i=s.useRef();var l;null==i.current&&(i.current=(void 0===(l={window:o,v5Compat:!0})&&(l={}),function(e,t,n,r){void 0===r&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=a.Pop,c=null,p=g();function g(){return(s.state||{idx:null}).idx}function v(){l=a.Pop;let e=g(),t=null==e?null:e-p;p=e,c&&c({action:l,location:w.location,delta:t})}function b(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:y(e);return n=n.replace(/ $/,"%20"),d(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==p&&(p=0,s.replaceState(u({},s.state,{idx:p}),""));let w={get action(){return l},get location(){return e(o,s)},listen(e){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(f,v),c=e,()=>{o.removeEventListener(f,v),c=null}},createHref:e=>t(o,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=a.Push;let r=m(w.location,e,t);n&&n(r,e),p=g()+1;let u=h(r,p),f=w.createHref(r);try{s.pushState(u,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}i&&c&&c({action:l,location:w.location,delta:1})},replace:function(e,t){l=a.Replace;let r=m(w.location,e,t);n&&n(r,e),p=g();let o=h(r,p),u=w.createHref(r);s.replaceState(o,"",u),i&&c&&c({action:l,location:w.location,delta:0})},go:e=>s.go(e)};return w}((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=g(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),m("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:y(t))}),(function(e,t){p("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),l)));let c=i.current,[v,b]=s.useState({action:c.action,location:c.location}),{v7_startTransition:w}=r||{},x=s.useCallback((e=>{w&&be?be((()=>b(e))):b(e)}),[b,w]);return s.useLayoutEffect((()=>c.listen(x)),[c,x]),s.useEffect((()=>{return null==(e=r)||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),void(t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation));var e,t}),[r]),s.createElement(me,{basename:t,children:n,location:v.location,navigationType:v.action,navigator:c,future:r})}var xe,Me;ve.flushSync,s.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(xe||(xe={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Me||(Me={}));const je=window.wp.i18n;var Ee=o(74848);const Oe=e=>{const t=Te(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),ke(n,t)||Ne(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},ke=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?ke(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId},Se=/^\[(.+)\]$/,Ne=e=>{if(Se.test(e)){const t=Se.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Te=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Ie(Object.entries(e.classGroups),n).forEach((([e,n])=>{Ae(n,r,e,t)})),r},Ae=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return Ce(e)?void Ae(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{Ae(o,De(t,e),n,r)}))}else(""===e?t:De(t,e)).classGroupId=n}))},De=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},Ce=e=>e.isThemeGetter,Ie=(e,t)=>t?e.map((([e,n])=>{const r=n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e));return[e,r]})):e,Pe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},_e=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,a=e=>{const n=[];let a,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(l,c)),l=c+i;continue}if("/"===u){a=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}};return n?e=>n({className:e,parseClassName:a}):a},Re=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},ze=/\s+/;function Le(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Ue(e))&&(r&&(r+=" "),r+=t);return r}const Ue=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ue(e[r]))&&(n&&(n+=" "),n+=t);return n};function Fe(e,...t){let n,r,o,i=function(s){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:Pe(e.cacheSize),parseClassName:_e(e),...Oe(e)}))(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(ze);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:f}=n(t);let d=Boolean(f),p=r(d?u.substring(0,f):u);if(!p){if(!d){s=t+(s.length>0?" "+s:s);continue}if(p=r(u),!p){s=t+(s.length>0?" "+s:s);continue}d=!1}const h=Re(l).join(":"),m=c?h+"!":h,y=m+p;if(i.includes(y))continue;i.push(y);const g=o(p,d);for(let e=0;e<g.length;++e){const t=g[e];i.push(m+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,i),i}return function(){return i(Le.apply(null,arguments))}}const Be=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Ve=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ye=/^\d+\/\d+$/,We=new Set(["px","full","screen"]),He=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ge=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Qe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$e=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ze=e=>Ke(e)||We.has(e)||Ye.test(e),Xe=e=>ft(e,"length",dt),Ke=e=>Boolean(e)&&!Number.isNaN(Number(e)),Je=e=>ft(e,"number",Ke),et=e=>Boolean(e)&&Number.isInteger(Number(e)),tt=e=>e.endsWith("%")&&Ke(e.slice(0,-1)),nt=e=>Ve.test(e),rt=e=>He.test(e),ot=new Set(["length","size","percentage"]),it=e=>ft(e,ot,pt),at=e=>ft(e,"position",pt),st=new Set(["image","url"]),lt=e=>ft(e,st,mt),ct=e=>ft(e,"",ht),ut=()=>!0,ft=(e,t,n)=>{const r=Ve.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},dt=e=>Ge.test(e)&&!Qe.test(e),pt=()=>!1,ht=e=>$e.test(e),mt=e=>qe.test(e),yt=(Symbol.toStringTag,()=>{const e=Be("colors"),t=Be("spacing"),n=Be("blur"),r=Be("brightness"),o=Be("borderColor"),i=Be("borderRadius"),a=Be("borderSpacing"),s=Be("borderWidth"),l=Be("contrast"),c=Be("grayscale"),u=Be("hueRotate"),f=Be("invert"),d=Be("gap"),p=Be("gradientColorStops"),h=Be("gradientColorStopPositions"),m=Be("inset"),y=Be("margin"),g=Be("opacity"),v=Be("padding"),b=Be("saturate"),w=Be("scale"),x=Be("sepia"),M=Be("skew"),j=Be("space"),E=Be("translate"),O=()=>["auto",nt,t],k=()=>[nt,t],S=()=>["",Ze,Xe],N=()=>["auto",Ke,nt],T=()=>["","0",nt],A=()=>[Ke,nt];return{cacheSize:500,separator:":",theme:{colors:[ut],spacing:[Ze,Xe],blur:["none","",rt,nt],brightness:A(),borderColor:[e],borderRadius:["none","","full",rt,nt],borderSpacing:k(),borderWidth:S(),contrast:A(),grayscale:T(),hueRotate:A(),invert:T(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[tt,Xe],inset:O(),margin:O(),opacity:A(),padding:k(),saturate:A(),scale:A(),sepia:T(),skew:A(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",nt]}],container:["container"],columns:[{columns:[rt]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",nt]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",et,nt]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",nt]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",et,nt]}],"grid-cols":[{"grid-cols":[ut]}],"col-start-end":[{col:["auto",{span:["full",et,nt]},nt]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[ut]}],"row-start-end":[{row:["auto",{span:[et,nt]},nt]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",nt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",nt]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",nt,t]}],"min-w":[{"min-w":[nt,t,"min","max","fit"]}],"max-w":[{"max-w":[nt,t,"none","full","min","max","fit","prose",{screen:[rt]},rt]}],h:[{h:[nt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[nt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[nt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[nt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",rt,Xe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Je]}],"font-family":[{font:[ut]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",nt]}],"line-clamp":[{"line-clamp":["none",Ke,Je]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ze,nt]}],"list-image":[{"list-image":["none",nt]}],"list-style-type":[{list:["none","disc","decimal",nt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ze,Xe]}],"underline-offset":[{"underline-offset":["auto",Ze,nt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",nt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",nt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",at]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",it]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Ze,nt]}],"outline-w":[{outline:[Ze,Xe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Ze,Xe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",rt,ct]}],"shadow-color":[{shadow:[ut]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",rt,nt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",nt]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",nt]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",nt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[et,nt]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",nt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",nt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",nt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ze,Xe,Je]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),gt=Fe(yt);function vt(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=vt(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function bt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=vt(e))&&(r&&(r+=" "),r+=t);return r}const wt=bt,xt=(...e)=>gt(bt(...e)),Mt=e=>{const t={0:"gap-0",xxs:"gap-1",xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-5",xl:"gap-6","2xl":"gap-8"};return t[e]||t.md},jt={sm:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},md:{1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},lg:{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"}},Et={sm:{xs:"gap-2",sm:"gap-4",md:"gap-5",lg:"gap-6",xl:"gap-6","2xl":"gap-8"},md:{xs:"md:gap-2",sm:"md:gap-4",md:"md:gap-5",lg:"md:gap-6",xl:"md:gap-6","2xl":"md:gap-8"},lg:{xs:"lg:gap-2",sm:"lg:gap-4",md:"lg:gap-5",lg:"lg:gap-6",xl:"lg:gap-6","2xl":"lg:gap-8"}},Ot={sm:{xs:"gap-x-2",sm:"gap-x-4",md:"gap-x-5",lg:"gap-x-6",xl:"gap-x-6","2xl":"gap-x-8"},md:{xs:"md:gap-x-2",sm:"md:gap-x-4",md:"md:gap-x-5",lg:"md:gap-x-6",xl:"md:gap-x-6","2xl":"md:gap-x-8"},lg:{xs:"lg:gap-x-2",sm:"lg:gap-x-4",md:"lg:gap-x-5",lg:"lg:gap-x-6",xl:"lg:gap-x-6","2xl":"lg:gap-x-8"}},kt={sm:{xs:"gap-y-2",sm:"gap-y-4",md:"gap-y-5",lg:"gap-y-6",xl:"gap-y-6","2xl":"gap-y-8"},md:{xs:"md:gap-y-2",sm:"md:gap-y-4",md:"md:gap-y-5",lg:"md:gap-y-6",xl:"md:gap-y-6","2xl":"md:gap-y-8"},lg:{xs:"lg:gap-y-2",sm:"lg:gap-y-4",md:"lg:gap-y-5",lg:"lg:gap-y-6",xl:"lg:gap-y-6","2xl":"lg:gap-y-8"}},St={sm:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12"}},Nt={sm:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12"},md:{1:"md:col-start-1",2:"md:col-start-2",3:"md:col-start-3",4:"md:col-start-4",5:"md:col-start-5",6:"md:col-start-6",7:"md:col-start-7",8:"md:col-start-8",9:"md:col-start-9",10:"md:col-start-10",11:"md:col-start-11",12:"md:col-start-12"},lg:{1:"lg:col-start-1",2:"lg:col-start-2",3:"lg:col-start-3",4:"lg:col-start-4",5:"lg:col-start-5",6:"lg:col-start-6",7:"lg:col-start-7",8:"lg:col-start-8",9:"lg:col-start-9",10:"lg:col-start-10",11:"lg:col-start-11",12:"lg:col-start-12"}},Tt={sm:{row:"grid-flow-row",column:"grid-flow-col","row-dense":"grid-flow-row-dense","column-dense":"grid-flow-col-dense"},md:{row:"md:grid-flow-row",column:"md:grid-flow-col","row-dense":"md:grid-flow-row-dense","column-dense":"md:grid-flow-col-dense"},lg:{row:"lg:grid-flow-row",column:"lg:grid-flow-col","row-dense":"lg:grid-flow-row-dense","column-dense":"lg:grid-flow-col-dense"}},At={sm:{normal:"justify-normal",start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},md:{normal:"md:justify-normal",start:"md:justify-start",end:"md:justify-end",center:"md:justify-center",between:"md:justify-between",around:"md:justify-around",evenly:"md:justify-evenly",stretch:"md:justify-stretch"},lg:{normal:"lg:justify-normal",start:"lg:justify-start",end:"lg:justify-end",center:"lg:justify-center",between:"lg:justify-between",around:"lg:justify-around",evenly:"lg:justify-evenly",stretch:"lg:justify-stretch"}},Dt={sm:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},md:{start:"md:items-start",end:"md:items-end",center:"md:items-center",baseline:"md:items-baseline",stretch:"md:items-stretch"},lg:{start:"lg:items-start",end:"lg:items-end",center:"lg:items-center",baseline:"lg:items-baseline",stretch:"lg:items-stretch"}},Ct={sm:{start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"},md:{start:"md:self-start",end:"md:self-end",center:"md:self-center",baseline:"md:self-baseline",stretch:"md:self-stretch"},lg:{start:"lg:self-start",end:"lg:self-end",center:"lg:self-center",baseline:"lg:self-baseline",stretch:"lg:self-stretch"}},It={sm:{auto:"justify-self-auto",start:"justify-self-start",end:"justify-self-end",center:"justify-self-center",baseline:"justify-self-baseline",stretch:"justify-self-stretch"},md:{auto:"md:justify-self-auto",start:"md:justify-self-start",end:"md:justify-self-end",center:"md:justify-self-center",baseline:"md:justify-self-baseline",stretch:"md:justify-self-stretch"},lg:{auto:"lg:justify-self-auto",start:"lg:justify-self-start",end:"lg:justify-self-end",center:"lg:justify-self-center",baseline:"lg:justify-self-baseline",stretch:"lg:justify-self-stretch"}},Pt={sm:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},md:{row:"md:flex-row","row-reverse":"md:flex-row-reverse",column:"md:flex-col","column-reverse":"md:flex-col-reverse"},lg:{row:"lg:flex-row","row-reverse":"lg:flex-row-reverse",column:"lg:flex-col","column-reverse":"lg:flex-col-reverse"}},_t={sm:{wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},md:{wrap:"md:flex-wrap","wrap-reverse":"md:flex-wrap-reverse",nowrap:"md:flex-nowrap"},lg:{wrap:"lg:flex-wrap","wrap-reverse":"lg:flex-wrap-reverse",nowrap:"lg:flex-nowrap"}},Rt={sm:{1:"w-full",2:"w-1/2",3:"w-1/3",4:"w-1/4",5:"w-1/5",6:"w-1/6",7:"w-1/7",8:"w-1/8",9:"w-1/9",10:"w-1/10",11:"w-1/11",12:"w-1/12"},md:{1:"md:w-full",2:"md:w-1/2",3:"md:w-1/3",4:"md:w-1/4",5:"md:w-1/5",6:"md:w-1/6",7:"md:w-1/7",8:"md:w-1/8",9:"md:w-1/9",10:"md:w-1/10",11:"md:w-1/11",12:"md:w-1/12"},lg:{1:"lg:w-full",2:"lg:w-1/2",3:"lg:w-1/3",4:"lg:w-1/4",5:"lg:w-1/5",6:"lg:w-1/6",7:"lg:w-1/7",8:"lg:w-1/8",9:"lg:w-1/9",10:"lg:w-1/10",11:"lg:w-1/11",12:"lg:w-1/12"}},zt={sm:{1:"order-1",2:"order-2",3:"order-3",4:"order-4",5:"order-5",6:"order-6",7:"order-7",8:"order-8",9:"order-9",10:"order-10",11:"order-11",12:"order-12",first:"order-first",last:"order-last",none:"order-none"},md:{1:"md:order-1",2:"md:order-2",3:"md:order-3",4:"md:order-4",5:"md:order-5",6:"md:order-6",7:"md:order-7",8:"md:order-8",9:"md:order-9",10:"md:order-10",11:"md:order-11",12:"md:order-12",first:"md:order-first",last:"md:order-last",none:"md:order-none"},lg:{1:"lg:order-1",2:"lg:order-2",3:"lg:order-3",4:"lg:order-4",5:"lg:order-5",6:"lg:order-6",7:"lg:order-7",8:"lg:order-8",9:"lg:order-9",10:"lg:order-10",11:"lg:order-11",12:"lg:order-12",first:"lg:order-first",last:"lg:order-last",none:"lg:order-none"}},Lt={sm:{0:"grow-0",1:"grow"},md:{0:"md:grow-0",1:"md:grow"},lg:{0:"lg:grow-0",1:"lg:grow"}},Ut={sm:{0:"shrink-0",1:"shrink"},md:{0:"md:shrink-0",1:"md:shrink"},lg:{0:"lg:shrink-0",1:"lg:shrink"}},Ft=(e,t,n,r="sm")=>{const o=[];switch(typeof e){case"object":for(const[r,i]of Object.entries(e))t[r]&&o.push(t?.[r]?.[i]??t?.[r]?.[n?.[r]]??"");break;case"string":case"number":const i=r;o.push(t?.[i]?.[e]??t?.[i]?.[n?.[i]]??"");break;default:if(void 0===e)break;o.push(t?.[r]?.[n]??"")}return o.join(" ")},Bt=({className:e,cols:t,gap:n,gapX:r,gapY:o,align:i,justify:a,gridFlow:s,colsSubGrid:l=!1,rowsSubGrid:c=!1,autoRows:u=!1,autoCols:f=!1,children:d,...p})=>{const h=Ft(t,jt,1),m=Ft(n,Et,"sm"),y=Ft(r,Ot,""),g=Ft(o,kt,""),v=Ft(i,Dt,""),b=Ft(a,At,""),w=Ft(s,Tt,"");return(0,Ee.jsx)("div",{className:xt("grid",{"grid-cols-subgrid":l,"grid-rows-subgrid":c,"auto-cols-auto":f,"auto-rows-auto":u},h,m,y,g,v,b,w,e),...p,children:d})};Bt.Item=({className:e,children:t,colSpan:n,colStart:r,alignSelf:o,justifySelf:i,...a})=>{const s=Ft(n,St,0),l=Ft(r,Nt,0),c=Ft(o,Ct,""),u=Ft(i,It,"");return(0,Ee.jsx)("div",{className:xt(s,l,c,u,e),...a,children:t})};const Vt=(0,s.createContext)({}),Yt=({containerType:e="flex",gap:t="sm",gapX:n,gapY:r,direction:o,justify:i,align:a,wrap:s,cols:l,className:c,children:u,...f})=>{if("grid"===e)return(0,Ee.jsx)(Vt.Provider,{value:{containerType:e},children:(0,Ee.jsx)(Bt,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:u,align:a,justify:i,...f})});const d=Ft(s,_t,""),p=Ft(t,Et,"sm"),h=Ft(n,Ot,""),m=Ft(r,kt,""),y=Ft(o,Pt,""),g=Ft(i,At,""),v=Ft(a,Dt,""),b=xt("flex",d,p,h,m,y,g,v,c);return(0,Ee.jsx)(Vt.Provider,{value:{containerType:e,cols:l},children:"flex"===e?(0,Ee.jsx)("div",{className:b,children:u}):(0,Ee.jsx)(Bt,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:u,align:a,justify:i,...f})})},Wt=({grow:e,shrink:t,order:n,alignSelf:r,justifySelf:o,className:i,children:a,...l})=>{const{containerType:c,cols:u}=(0,s.useContext)(Vt);if("grid"===c)return(0,Ee.jsx)(Bt.Item,{className:i,alignSelf:r,justifySelf:o,children:a,...l});const f=Ft(r,Ct,""),d=Ft(o,It,""),p=Ft(e,Lt,0),h=Ft(t,Ut,0),m=Ft(n,zt,0),y=Ft(u,Rt,1);return(0,Ee.jsx)("div",{className:xt("box-border",p,h,m,f,d,y,i),children:a})};Yt.Item=Wt,Yt.displayName="Container",Wt.displayName="Container.Item";const Ht=({title:e="",description:t="",icon:n=null,iconPosition:r="right",tag:o="h2",size:i="sm",className:a=""})=>{const s={xs:"gap-1 [&>svg]:size-3.5",sm:"gap-1 [&>svg]:size-4",md:"gap-1.5 [&>svg]:size-5",lg:"gap-1.5 [&>svg]:size-5"};if(!e)return null;const l=()=>(0,Ee.jsx)(o,{className:xt("font-semibold p-0 m-0",{xs:"text-base [&>*]:text-base gap-1",sm:"text-lg [&>*]:text-lg gap-1",md:"text-xl [&>*]:text-xl gap-1.5",lg:"text-2xl [&>*]:text-2xl gap-1.5"}[i]),children:e});return t?(0,Ee.jsxs)("div",{className:a,children:[(0,Ee.jsxs)("div",{children:[n&&"left"===r&&(0,Ee.jsxs)("div",{className:xt("flex items-center",s[i]),children:[n,l()]}),n&&"right"===r&&(0,Ee.jsxs)("div",{className:xt("flex items-center",s[i]),children:[l(),n]}),!n&&l()]}),(0,Ee.jsx)("p",{className:xt("text-text-secondary font-normal my-0",{xs:"text-sm",sm:"text-sm",md:"text-base",lg:"text-base"}[i]),children:t})]}):(0,Ee.jsxs)("div",{className:a,children:[n&&"left"===r&&(0,Ee.jsxs)("div",{className:xt("flex items-center",s[i]),children:[n,l()]}),n&&"right"===r&&(0,Ee.jsxs)("div",{className:xt("flex items-center",s[i]),children:[l(),n]}),!n&&l()]})},Gt=(0,s.forwardRef)((({children:e=null,tag:t="label",size:n="sm",className:r="",variant:o="neutral",required:i=!1,...a},s)=>{if(!e)return null;let l="";return i&&(l="after:content-['*'] after:text-field-required after:ml-0.5"),(0,Ee.jsx)(t,{ref:s,className:xt("font-medium text-field-label flex items-center gap-0.5",{xs:"text-xs [&>*]:text-xs [&>svg]:h-3 [&>svg]:w-3",sm:"text-sm [&>*]:text-sm [&>svg]:h-4 [&>svg]:w-4",md:"text-base [&>*]:text-base [&>svg]:h-5 [&>svg]:w-5"}[n],{neutral:"text-field-label [&>*]:text-field-label",help:"text-field-helper [&>*]:text-field-helper",error:"text-support-error [&>*]:text-support-error",disabled:"text-field-color-disabled disabled cursor-not-allowed [&>*]:text-field-color-disabled"}[o],l,{neutral:"",help:"font-normal",error:"font-normal",disabled:""}?.[o],r),...a,children:e})}));Gt.displayName="Label";const Qt=(0,s.forwardRef)(((e,t)=>{const{variant:n="primary",size:r="md",type:o="button",tag:i="button",className:a,children:l,disabled:c=!1,destructive:u=!1,icon:f=null,iconPosition:d="left",loading:p=!1,...h}=e,m=u&&"focus:ring-focus-error",y=p?"opacity-50 disabled:cursor-not-allowed":"",g={primary:"text-text-on-color bg-button-primary hover:bg-button-primary-hover outline-button-primary hover:outline-button-primary-hover shadow-xs disabled:shadow-none focus:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",secondary:"text-text-on-color bg-button-secondary hover:bg-button-secondary-hover outline-button-secondary hover:outline-button-secondary-hover shadow-xs focus:shadow-none disabled:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",outline:"text-button-tertiary-color outline-border-subtle bg-button-tertiary shadow-sm focus:shadow-none hover:bg-button-tertiary-hover hover:outline-border-subtle disabled:bg-button-tertiary disabled:outline-border-disabled",ghost:"text-text-primary bg-transparent outline-transparent hover:bg-button-tertiary-hover",link:"outline-none text-link-primary bg-transparent hover:text-link-primary-hover hover:underline p-0 border-0 leading-none"}[n],v=u&&!c?{primary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",secondary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",outline:"text-button-danger outline outline-1 outline-button-danger hover:outline-button-danger bg-button-tertiary hover:bg-field-background-error",ghost:"text-button-danger hover:bg-field-background-error",link:"text-button-danger hover:text-button-danger-secondary"}[n]:"",b={xs:"p-1 rounded [&>svg]:size-4",sm:"p-2 rounded [&>svg]:size-4 gap-0.5",md:"p-2.5 rounded-md text-sm [&>svg]:size-5 gap-1",lg:"p-3 rounded-lg text-base [&>svg]:size-6 gap-1"}[r];let w,x=null,M="";return f&&(M="flex items-center justify-center","left"===d?w=f:x=f),(0,Ee.jsxs)(i,{ref:t,type:o,className:xt(M,"outline outline-1 border-none cursor-pointer transition-colors duration-300 ease-in-out text-xs font-semibold focus:ring-2 focus:ring-toggle-on focus:ring-offset-2 disabled:text-text-disabled",b,g,v,m,y,{"cursor-default":c},a),disabled:c,"aria-disabled":c,...h,children:[(0,Ee.jsx)(s.Fragment,{children:w},"left-icon"),l?(0,Ee.jsx)("span",{className:"px-1",children:l}):null,(0,Ee.jsx)(s.Fragment,{children:x},"right-icon")]})}));Qt.displayName="Button";const $t=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qt=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t)).join(" ").trim();var Zt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Xt=(0,s.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...l},c)=>(0,s.createElement)("svg",{ref:c,...Zt,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:qt("lucide",o),...l},[...a.map((([e,t])=>(0,s.createElement)(e,t))),...Array.isArray(i)?i:[i]]))),Kt=(e,t)=>{const n=(0,s.forwardRef)((({className:n,...r},o)=>(0,s.createElement)(Xt,{ref:o,iconNode:t,className:qt(`lucide-${$t(e)}`,n),...r})));return n.displayName=`${e}`,n},Jt=Kt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),en=Kt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),tn=function(){return React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M18 13V19C18 19.5304 17.7893 20.0391 17.4142 20.4142C17.0391 20.7893 16.5304 21 16 21H5C4.46957 21 3.96086 20.7893 3.58579 20.4142C3.21071 20.0391 3 19.5304 3 19V8C3 7.46957 3.21071 6.96086 3.58579 6.58579C3.96086 6.21071 4.46957 6 5 6H11",stroke:"#111827",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M15 3H21V9",stroke:"#111827",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M10 14L21 3",stroke:"#111827",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}))};function nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const rn=function(){var e=srfm_admin.site_url,t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,i.useState)(null),2),n=t[0],r=t[1];return(0,i.useEffect)((function(){var e=function(e){"Escape"===e.key&&r(null)};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}),[]),React.createElement(Yt,{className:"w-full bg-background-primary p-4 gap-8 shadow-sm-blur-1 rounded-xl border-0.5 border-solid border-border-subtle",containerType:"grid",cols:12,align:"start"},React.createElement(Yt.Item,{className:"flex flex-col gap-6 p-2 col-span-12 md:col-span-7 lg:col-span-7"},React.createElement(Yt,{direction:"column",className:"gap-1"},React.createElement(Ht,{size:"md",tag:"h3",title:(0,je.__)("Welcome to SureForms!","sureforms")}),React.createElement(Gt,{size:"md",variant:"neutral",className:"font-normal text-text-secondary"},(0,je.__)("SureForms is a WordPress plugin that enables users to create beautiful looking forms through a drag-and-drop interface, without needing to code. It integrates with the WordPress block editor.","sureforms"))),React.createElement(Yt,{className:"flex-wrap gap-3"},React.createElement(Qt,{className:"shadow-sm-blur-1 gap-1",icon:React.createElement(Jt,{"aria-label":(0,je.__)("Create New Form","sureforms")}),iconPosition:"right",size:"md",variant:"primary",onClick:function(){window.location.href="".concat(e,"/wp-admin/admin.php?page=add-new-form")}},(0,je.__)("Create New Form","sureforms")),React.createElement(Qt,{className:"gap-1",icon:React.createElement(tn,{"aria-label":(0,je.__)("Read Full Guide","sureforms")}),iconPosition:"right",size:"md",variant:"ghost",onClick:function(){return window.open("https://sureforms.com/docs/","_blank")}},(0,je.__)("Read Full Guide","sureforms")))),React.createElement(Yt.Item,{className:"col-span-12 md:col-span-5 lg:col-span-5 p-2"},React.createElement("div",{className:"relative aspect-video cursor-pointer group md:max-w-sm md:ml-auto",onClick:function(){r("https://www.youtube.com/embed/it16jGnZBus?showinfo=0&rel=0&autoplay=1")}},React.createElement("img",{src:"https://img.youtube.com/vi/it16jGnZBus/hqdefault.jpg",alt:(0,je.__)("SureForms Video Thumbnail","sureforms"),className:"w-full h-full rounded border border-solid border-border-subtle object-cover"}),React.createElement("div",{className:"absolute inset-0 flex items-center justify-center"},React.createElement("div",{className:"w-14 h-14 flex items-center justify-center bg-black bg-opacity-50 group-hover:bg-opacity-80 transition-all duration-300 rounded-full"},React.createElement("svg",{className:"w-8 h-8 text-white",viewBox:"0 0 24 24",fill:"currentColor"},React.createElement("path",{d:"M8 5v14l11-7L8 5z"})))))),n&&React.createElement("div",{className:"fixed inset-0 flex items-center justify-center bg-misc-overlay cursor-pointer z-[9999] w-full",onClick:function(){return r(null)}},React.createElement("div",{className:"absolute top-10 right-8 text-white cursor-pointer"},React.createElement(en,{size:24,onClick:function(e){e.stopPropagation(),r(null)}})),React.createElement("div",{className:"relative rounded-lg shadow-lg cursor-default w-full max-w-[80%] h-[760px]",onClick:function(e){return e.stopPropagation()}},React.createElement("iframe",{className:"w-full h-full aspect-video rounded-lg",src:n,title:(0,je.__)("SureForms: Custom WordPress Forms MADE SIMPLE","sureforms"),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}))))},on=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),an=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&n.indexOf(e)===t)).join(" ");var sn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ln=(0,s.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...l},c)=>(0,s.createElement)("svg",{ref:c,...sn,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:an("lucide",o),...l},[...a.map((([e,t])=>(0,s.createElement)(e,t))),...Array.isArray(i)?i:[i]]))),cn=(e,t)=>{const n=(0,s.forwardRef)((({className:n,...r},o)=>(0,s.createElement)(ln,{ref:o,iconNode:t,className:an(`lucide-${on(e)}`,n),...r})));return n.displayName=`${e}`,n},un=cn("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);let fn=1;const dn=new class{#e;#t;constructor(){this.#e=[],this.#t=[]}subscribe(e){return this.#t.push(e),()=>{this.#t=this.#t.filter((t=>t!==e))}}publish(e){this.#t.forEach((t=>t(e)))}add(e){this.#e.push(e),this.publish(e)}remove(e){return this.#e=this.#e.filter((t=>t.id!==e)),e}create(e){const{id:t,message:n="",jsx:r,...o}=e;if(!n&&"function"!=typeof r)return;const i="number"==typeof t?t:fn++;return this.#e.find((e=>e.id===i))&&(this.#e=this.#e.map((e=>e.id===i?(this.publish({...e,title:n,jsx:r,...o}),{...e,title:n,jsx:r,...o}):e))),this.add({id:i,title:n,jsx:r,...o}),i}update(e,t){const{render:n}=t;let r=t;switch(typeof n){case"function":r={jsx:n,...t};break;case"string":r={title:n,...t}}this.#e=this.#e.map((t=>t.id===e?(this.publish({...t,...r}),{...t,...r}):t))}dismiss(e){return e||this.#e.forEach((e=>this.#t.forEach((t=>t({id:e.id,dismiss:!0}))))),this.#t.forEach((t=>t({id:e,dismiss:!0}))),e}history(){return this.#e}default(e="",t={}){return this.create({message:e,type:"neutral",...t})}success(e="",t={}){return this.create({message:e,type:"success",...t})}error(e="",t={}){return this.create({message:e,type:"error",...t})}warning(e="",t={}){return this.create({message:e,type:"warning",...t})}info(e="",t={}){return this.create({message:e,type:"info",...t})}custom(e,t={}){return this.create({jsx:e,type:"custom",...t})}},pn=Object.seal(Object.assign(((e,t)=>dn.default(e,t)),{success:dn.success.bind(dn),error:dn.error.bind(dn),warning:dn.warning.bind(dn),info:dn.info.bind(dn),custom:dn.custom.bind(dn),dismiss:dn.dismiss.bind(dn),update:dn.update.bind(dn)},{getHistory:dn.history.bind(dn)})),hn=cn("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),mn=cn("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),yn=cn("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),gn=cn("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),vn="light",bn="neutral",wn=({icon:e,theme:t=vn,variant:n=bn})=>{const r="[&>svg]:h-5 [&>svg]:w-5",o=(({theme:e=vn,variant:t=bn})=>{let n="light"===e?"text-icon-secondary":"text-icon-inverse";return n={info:"light"===e?"text-support-info":"text-support-info-inverse",success:"light"===e?"text-support-success":"text-support-success-inverse",warning:"light"===e?"text-support-warning":"text-support-warning-inverse",error:"light"===e?"text-support-error":"text-support-error-inverse"}[t]||n,n})({theme:t,variant:n});if(e&&(0,s.isValidElement)(e))return(0,s.cloneElement)(e,{className:xt(r,o,e?.props?.className??"")});const i={neutral:(0,Ee.jsx)(hn,{className:xt(r,o)}),info:(0,Ee.jsx)(hn,{className:xt(r,o)}),success:(0,Ee.jsx)(mn,{className:xt(r,o)}),warning:(0,Ee.jsx)(yn,{className:xt(r,o)}),error:(0,Ee.jsx)(gn,{className:xt(r,o)})};return i[n]||i.neutral},xn=({actionType:e="button",onAction:t=()=>{},actionLabel:n="",theme:r=vn})=>{const o="focus:ring-0 focus:ring-offset-0 ring-offset-0 focus:outline-none";let i="text-button-primary border-button-primary hover:border-button-primary hover:text-button-primary-hover";switch("dark"===r&&(i="text-text-inverse border-text-inverse hover:border-text-inverse hover:text-text-inverse"),e){case"button":return(0,Ee.jsx)(Qt,{variant:"outline",size:"xs",onClick:t,className:xt("rounded",o,i,"dark"===r?"bg-transparent hover:bg-transparent":"bg-white hover:bg-white"),children:n});case"link":return(0,Ee.jsx)(Qt,{variant:"link",size:"xs",onClick:t,className:xt(o,i),children:n});default:return null}},Mn=({theme:e=vn,title:t="",inline:n=!1})=>t?(0,Ee.jsx)("span",{className:xt("block",{light:"text-text-primary",dark:"text-text-inverse"}[e],"text-sm leading-5 font-semibold",n?"inline":"block"),children:t}):null,jn=({theme:e=vn,content:t="",inline:n=!1})=>t?(0,Ee.jsx)("span",{className:xt({light:"text-text-primary",dark:"text-text-inverse"}[e],"block text-sm [&_*]:text-sm leading-5 [&_*]:leading-5 font-normal [word-break:break-word]",n?"inline":"block"),children:t}):null,En=(...e)=>t=>{e.forEach((e=>{"function"==typeof e?e(t):e&&(e.current=t)}))},On={"top-left":"top-0 bottom-0 left-0 justify-start items-start","top-right":"top-0 bottom-0 right-0 justify-start items-end","bottom-left":"top-0 bottom-0 left-0 justify-end items-start","bottom-right":"top-0 bottom-0 right-0 justify-end items-end"},kn={neutral:"border-alert-border-neutral bg-alert-background-neutral",custom:"border-alert-border-neutral bg-alert-background-neutral",info:"border-alert-border-info bg-alert-background-info",success:"border-alert-border-green bg-alert-background-green",warning:"border-alert-border-warning bg-alert-background-warning",error:"border-alert-border-danger bg-alert-background-danger"},Sn="bg-background-inverse border-background-inverse",Nn={light:"text-icon-secondary",dark:"text-icon-inverse"},Tn=(0,s.createContext)({});function An(e){const t=(0,s.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Dn=(0,s.createContext)(null),Cn=(0,s.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class In extends s.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Pn({children:e,isPresent:t}){const n=(0,s.useId)(),r=(0,s.useRef)(null),o=(0,s.useRef)({width:0,height:0,top:0,left:0}),{nonce:i}=(0,s.useContext)(Cn);return(0,s.useInsertionEffect)((()=>{const{width:e,height:a,top:s,left:l}=o.current;if(t||!r.current||!e||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${a}px !important;\n top: ${s}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),(0,Ee.jsx)(In,{isPresent:t,childRef:r,sizeRef:o,children:s.cloneElement(e,{ref:r})})}const _n=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const l=An(Rn),c=(0,s.useId)(),u=(0,s.useCallback)((e=>{l.set(e,!0);for(const e of l.values())if(!e)return;r&&r()}),[l,r]),f=(0,s.useMemo)((()=>({id:c,initial:t,isPresent:n,custom:o,onExitComplete:u,register:e=>(l.set(e,!1),()=>l.delete(e))})),i?[Math.random(),u]:[n,u]);return(0,s.useMemo)((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[n]),s.useEffect((()=>{!n&&!l.size&&r&&r()}),[n]),"popLayout"===a&&(e=(0,Ee.jsx)(Pn,{isPresent:n,children:e})),(0,Ee.jsx)(Dn.Provider,{value:f,children:e})};function Rn(){return new Map}function zn(e=!0){const t=(0,s.useContext)(Dn);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=(0,s.useId)();(0,s.useEffect)((()=>{e&&o(i)}),[e]);const a=(0,s.useCallback)((()=>e&&r&&r(i)),[i,r,e]);return!n&&r?[!1,a]:[!0]}const Ln=e=>e.key||"";function Un(e){const t=[];return s.Children.forEach(e,(e=>{(0,s.isValidElement)(e)&&t.push(e)})),t}const Fn="undefined"!=typeof window,Bn=Fn?s.useLayoutEffect:s.useEffect,Vn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:a=!1})=>{const[l,c]=zn(a),u=(0,s.useMemo)((()=>Un(e)),[e]),f=a&&!l?[]:u.map(Ln),d=(0,s.useRef)(!0),p=(0,s.useRef)(u),h=An((()=>new Map)),[m,y]=(0,s.useState)(u),[g,v]=(0,s.useState)(u);Bn((()=>{d.current=!1,p.current=u;for(let e=0;e<g.length;e++){const t=Ln(g[e]);f.includes(t)?h.delete(t):!0!==h.get(t)&&h.set(t,!1)}}),[g,f.length,f.join("-")]);const b=[];if(u!==m){let e=[...u];for(let t=0;t<g.length;t++){const n=g[t],r=Ln(n);f.includes(r)||(e.splice(t,0,n),b.push(n))}return"wait"===i&&b.length&&(e=b),v(Un(e)),void y(u)}const{forceRender:w}=(0,s.useContext)(Tn);return(0,Ee.jsx)(Ee.Fragment,{children:g.map((e=>{const s=Ln(e),m=!(a&&!l)&&(u===g||f.includes(s));return(0,Ee.jsx)(_n,{isPresent:m,initial:!(d.current&&!n)&&void 0,custom:m?void 0:t,presenceAffectsLayout:o,mode:i,onExitComplete:m?void 0:()=>{if(!h.has(s))return;h.set(s,!0);let e=!0;h.forEach((t=>{t||(e=!1)})),e&&(null==w||w(),v(p.current),a&&(null==c||c()),r&&r())},children:e},s)}))})};function Yn(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function Wn(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const Hn=e=>Array.isArray(e);function Gn(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Qn(e){return"string"==typeof e||Array.isArray(e)}function $n(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function qn(e,t,n,r){if("function"==typeof t){const[o,i]=$n(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=$n(r);t=t(void 0!==n?n:e.custom,o,i)}return t}function Zn(e,t,n){const r=e.getProps();return qn(r,t,void 0!==n?n:r.custom,e)}const Xn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Kn=["initial",...Xn];function Jn(e){let t;return()=>(void 0===t&&(t=e()),t)}const er=Jn((()=>void 0!==window.ScrollTimeline));class tr{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map((e=>"finished"in e?e.finished:e)))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map((n=>er()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0));return()=>{n.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class nr extends tr{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function rr(e,t){return e?e[t]||e.default||e:void 0}const or=2e4;function ir(e){let t=0,n=e.next(t);for(;!n.done&&t<or;)t+=50,n=e.next(t);return t>=or?1/0:t}function ar(e){return"function"==typeof e}function sr(e,t){e.timeline=t,e.onfinish=null}const lr=e=>Array.isArray(e)&&"number"==typeof e[0],cr={linearEasing:void 0};function ur(e,t){const n=Jn(e);return()=>{var e;return null!==(e=cr[t])&&void 0!==e?e:n()}}const fr=ur((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing"),dr=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},pr=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=e(dr(0,o-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function hr(e){return Boolean("function"==typeof e&&fr()||!e||"string"==typeof e&&(e in yr||fr())||lr(e)||Array.isArray(e)&&e.every(hr))}const mr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,yr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:mr([0,.65,.55,1]),circOut:mr([.55,0,1,.45]),backIn:mr([.31,.01,.66,-.59]),backOut:mr([.33,1.53,.69,.99])};function gr(e,t){return e?"function"==typeof e&&fr()?pr(e,t):lr(e)?mr(e):Array.isArray(e)?e.map((e=>gr(e,t)||yr.easeOut)):yr[e]:void 0}const vr={x:!1,y:!1};function br(){return vr.x||vr.y}function wr(e,t){const n=function(e){if(e instanceof Element)return[e];if("string"==typeof e){let t=document;const n=t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function xr(e){return t=>{"touch"===t.pointerType||br()||e(t)}}const Mr=(e,t)=>!!t&&(e===t||Mr(e,t.parentElement)),jr=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,Er=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),Or=new WeakSet;function kr(e){return t=>{"Enter"===t.key&&e(t)}}function Sr(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function Nr(e){return jr(e)&&!br()}const Tr=e=>1e3*e,Ar=e=>e/1e3,Dr=e=>e,Cr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ir=new Set(Cr),Pr=new Set(["width","height","top","left","right","bottom",...Cr]),_r=["read","resolveKeyframes","update","preRender","render","postRender"];function Rr(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=_r.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}const l={schedule:(e,o=!1,a=!1)=>{const s=a&&r?t:n;return o&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{a=e,r?o=!0:(r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,o&&(o=!1,l.process(e)))}};return l}(i),e)),{}),{read:s,resolveKeyframes:l,update:c,preRender:u,render:f,postRender:d}=a,p=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,s.process(o),l.process(o),c.process(o),u.process(o),f.process(o),d.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))};return{schedule:_r.reduce(((t,i)=>{const s=a[i];return t[i]=(t,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(p)),s.schedule(t,i,a)),t}),{}),cancel:e=>{for(let t=0;t<_r.length;t++)a[_r[t]].cancel(e)},state:o,steps:a}}const{schedule:zr,cancel:Lr,state:Ur,steps:Fr}=Rr("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Dr,!0);let Br;function Vr(){Br=void 0}const Yr={now:()=>(void 0===Br&&Yr.set(Ur.isProcessing?Ur.timestamp:performance.now()),Br),set:e=>{Br=e,queueMicrotask(Vr)}};function Wr(e,t){-1===e.indexOf(t)&&e.push(t)}function Hr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Gr{constructor(){this.subscriptions=[]}add(e){return Wr(this.subscriptions,e),()=>Hr(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Qr(e,t){return t?e*(1e3/t):0}const $r={current:void 0};class qr{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=Yr.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Yr.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(e=>!isNaN(parseFloat(e)))(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Gr);const n=this.events[e].add(t);return"change"===e?()=>{n(),zr.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return $r.current&&$r.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Yr.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Qr(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Zr(e,t){return new qr(e,t)}function Xr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Zr(n))}const Kr=e=>Boolean(e&&e.getVelocity);function Jr(e,t){const n=e.getValue("willChange");if(function(e){return Boolean(Kr(e)&&e.add)}(n))return n.add(t)}const eo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),to="data-"+eo("framerAppearId");function no(e){return e.props[to]}const ro=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function oo(e,t,n,r){if(e===t&&n===r)return Dr;return o=>0===o||1===o?o:ro(function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=ro(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(o,0,1,e,n),t,r)}const io=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ao=e=>t=>1-e(1-t),so=oo(.33,1.53,.69,.99),lo=ao(so),co=io(lo),uo=e=>(e*=2)<1?.5*lo(e):.5*(2-Math.pow(2,-10*(e-1))),fo=e=>1-Math.sin(Math.acos(e)),po=ao(fo),ho=io(fo),mo=e=>/^0[^.\s]+$/u.test(e);function yo(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||mo(e)}const go=(e,t,n)=>n>t?t:n<e?e:n,vo={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},bo={...vo,transform:e=>go(0,1,e)},wo={...vo,default:1},xo=e=>Math.round(1e5*e)/1e5,Mo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,jo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Eo=(e,t)=>n=>Boolean("string"==typeof n&&jo.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),Oo=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,i,a,s]=r.match(Mo);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},ko={...vo,transform:e=>Math.round((e=>go(0,255,e))(e))},So={test:Eo("rgb","red"),parse:Oo("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ko.transform(e)+", "+ko.transform(t)+", "+ko.transform(n)+", "+xo(bo.transform(r))+")"},No={test:Eo("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:So.transform},To=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Ao=To("deg"),Do=To("%"),Co=To("px"),Io=To("vh"),Po=To("vw"),_o={...Do,parse:e=>Do.parse(e)/100,transform:e=>Do.transform(100*e)},Ro={test:Eo("hsl","hue"),parse:Oo("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Do.transform(xo(t))+", "+Do.transform(xo(n))+", "+xo(bo.transform(r))+")"},zo={test:e=>So.test(e)||No.test(e)||Ro.test(e),parse:e=>So.test(e)?So.parse(e):Ro.test(e)?Ro.parse(e):No.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?So.transform(e):Ro.transform(e)},Lo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Uo="number",Fo="color",Bo=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Vo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Bo,(e=>(zo.test(e)?(r.color.push(i),o.push(Fo),n.push(zo.parse(e))):e.startsWith("var(")?(r.var.push(i),o.push("var"),n.push(e)):(r.number.push(i),o.push(Uo),n.push(parseFloat(e))),++i,"${}"))).split("${}");return{values:n,split:a,indexes:r,types:o}}function Yo(e){return Vo(e).values}function Wo(e){const{split:t,types:n}=Vo(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===Uo?xo(e[i]):t===Fo?zo.transform(e[i]):e[i]}return o}}const Ho=e=>"number"==typeof e?0:e,Go={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(Mo))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Lo))||void 0===n?void 0:n.length)||0)>0},parse:Yo,createTransformer:Wo,getAnimatableNone:function(e){const t=Yo(e);return Wo(e)(t.map(Ho))}},Qo=new Set(["brightness","contrast","saturate","opacity"]);function $o(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Mo)||[];if(!r)return e;const o=n.replace(r,"");let i=Qo.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const qo=/\b([a-z-]*)\(.*?\)/gu,Zo={...Go,getAnimatableNone:e=>{const t=e.match(qo);return t?t.map($o).join(" "):e}},Xo={borderWidth:Co,borderTopWidth:Co,borderRightWidth:Co,borderBottomWidth:Co,borderLeftWidth:Co,borderRadius:Co,radius:Co,borderTopLeftRadius:Co,borderTopRightRadius:Co,borderBottomRightRadius:Co,borderBottomLeftRadius:Co,width:Co,maxWidth:Co,height:Co,maxHeight:Co,top:Co,right:Co,bottom:Co,left:Co,padding:Co,paddingTop:Co,paddingRight:Co,paddingBottom:Co,paddingLeft:Co,margin:Co,marginTop:Co,marginRight:Co,marginBottom:Co,marginLeft:Co,backgroundPositionX:Co,backgroundPositionY:Co},Ko={rotate:Ao,rotateX:Ao,rotateY:Ao,rotateZ:Ao,scale:wo,scaleX:wo,scaleY:wo,scaleZ:wo,skew:Ao,skewX:Ao,skewY:Ao,distance:Co,translateX:Co,translateY:Co,translateZ:Co,x:Co,y:Co,z:Co,perspective:Co,transformPerspective:Co,opacity:bo,originX:_o,originY:_o,originZ:Co},Jo={...vo,transform:Math.round},ei={...Xo,...Ko,zIndex:Jo,size:Co,fillOpacity:bo,strokeOpacity:bo,numOctaves:Jo},ti={...ei,color:zo,backgroundColor:zo,outlineColor:zo,fill:zo,stroke:zo,borderColor:zo,borderTopColor:zo,borderRightColor:zo,borderBottomColor:zo,borderLeftColor:zo,filter:Zo,WebkitFilter:Zo},ni=e=>ti[e];function ri(e,t){let n=ni(e);return n!==Zo&&(n=Go),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const oi=new Set(["auto","none","0"]),ii=e=>e===vo||e===Co,ai=(e,t)=>parseFloat(e.split(", ")[t]),si=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return ai(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?ai(t[1],e):0}},li=new Set(["x","y","z"]),ci=Cr.filter((e=>!li.has(e))),ui={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:si(4,13),y:si(5,14)};ui.translateX=ui.x,ui.translateY=ui.y;const fi=new Set;let di=!1,pi=!1;function hi(){if(pi){const e=Array.from(fi).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return ci.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}pi=!1,di=!1,fi.forEach((e=>e.complete())),fi.clear()}function mi(){fi.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(pi=!0)}))}class yi{constructor(e,t,n,r,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(fi.add(this),di||(di=!0,zr.read(mi),zr.resolveKeyframes(hi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),fi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let gi=Dr,vi=Dr;const bi=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),wi=e=>t=>"string"==typeof t&&t.startsWith(e),xi=wi("--"),Mi=wi("var(--"),ji=e=>!!Mi(e)&&Ei.test(e.split("/*")[0].trim()),Ei=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Oi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ki(e,t,n=1){vi(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Oi.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return bi(e)?parseFloat(e):e}return ji(o)?ki(o,t,n+1):o}const Si=e=>t=>t.test(e),Ni=[vo,Co,Do,Ao,Po,Io,{test:e=>"auto"===e,parse:e=>e}],Ti=e=>Ni.find(Si(e));class Ai extends yi{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),ji(r))){const o=ki(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Pr.has(n)||2!==e.length)return;const[r,o]=e,i=Ti(r),a=Ti(o);if(i!==a)if(ii(i)&&ii(a))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)yo(e[t])&&n.push(t);n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!oi.has(t)&&Vo(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=ri(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ui[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,a=r[i];r[i]=ui[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}const Di=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!Go.test(e)&&"0"!==e||e.startsWith("url(")));function Ci(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=Di(o,t),s=Di(i,t);return gi(a===s,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||ar(n))&&r)}const Ii=e=>null!==e;function Pi(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Ii),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}class _i{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Yr.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(mi(),hi()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=Yr.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:i,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!Ci(e,n,r,o)){if(!i)return s&&s(Pi(e,this.options,t)),a&&a(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}const Ri=(e,t,n)=>e+(t-e)*n;function zi(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Li(e,t){return n=>n>0?t:e}const Ui=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Fi=[No,So,Ro];function Bi(e){const t=(n=e,Fi.find((e=>e.test(n))));var n;if(gi(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let r=t.parse(e);return t===Ro&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=zi(s,r,e+1/3),i=zi(s,r,e),a=zi(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const Vi=(e,t)=>{const n=Bi(e),r=Bi(t);if(!n||!r)return Li(e,t);const o={...n};return e=>(o.red=Ui(n.red,r.red,e),o.green=Ui(n.green,r.green,e),o.blue=Ui(n.blue,r.blue,e),o.alpha=Ri(n.alpha,r.alpha,e),So.transform(o))},Yi=(e,t)=>n=>t(e(n)),Wi=(...e)=>e.reduce(Yi),Hi=new Set(["none","hidden"]);function Gi(e,t){return n=>Ri(e,t,n)}function Qi(e){return"number"==typeof e?Gi:"string"==typeof e?ji(e)?Li:zo.test(e)?Vi:Zi:Array.isArray(e)?$i:"object"==typeof e?zo.test(e)?Vi:qi:Li}function $i(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>Qi(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function qi(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Qi(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const Zi=(e,t)=>{const n=Go.createTransformer(t),r=Vo(e),o=Vo(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Hi.has(e)&&!o.values.length||Hi.has(t)&&!r.values.length?function(e,t){return Hi.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Wi($i(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[i]=l,o[a]++}return r}(r,o),o.values),n):(gi(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Li(e,t))};function Xi(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?Ri(e,t,n):Qi(e)(e,t)}function Ki(e,t,n){const r=Math.max(t-5,0);return Qr(n-e(r),t-r)}const Ji=.01,ea=2,ta=.005,na=.5;const ra=12;function oa(e,t){return e*Math.sqrt(1-t*t)}const ia=["duration","bounce"],aa=["stiffness","damping","mass"];function sa(e,t){return t.some((t=>void 0!==e[t]))}function la(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:f,velocity:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!sa(e,aa)&&sa(e,ia))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,i=2*go(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:1,stiffness:o,damping:i}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let o,i;gi(e<=Tr(10),"Spring duration must be 10 seconds or less");let a=1-t;a=go(.05,1,a),e=go(.01,10,Ar(e)),a<1?(o=t=>{const r=t*a,o=r*e;return.001-(r-n)/oa(t,a)*Math.exp(-o)},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=oa(Math.pow(t,2),a);return(.001-o(t)>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<ra;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Tr(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Ar(n.velocity||0)}),h=d||0,m=c/(2*Math.sqrt(l*u)),y=a-i,g=Ar(Math.sqrt(l/u)),v=Math.abs(y)<5;let b;if(r||(r=v?Ji:ea),o||(o=v?ta:na),m<1){const e=oa(g,m);b=t=>{const n=Math.exp(-m*g*t);return a-n*((h+m*g*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}}else if(1===m)b=e=>a-Math.exp(-g*e)*(y+(h+g*y)*e);else{const e=g*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*g*t),r=Math.min(e*t,300);return a-n*((h+m*g*y)*Math.sinh(r)+e*y*Math.cosh(r))/e}}const w={calculatedDuration:p&&f||null,next:e=>{const t=b(e);if(p)s.done=e>=f;else{let n=0;m<1&&(n=0===e?Tr(h):Ki(b,e,t));const i=Math.abs(n)<=r,l=Math.abs(a-t)<=o;s.done=i&&l}return s.value=s.done?a:t,s},toString:()=>{const e=Math.min(ir(w),or),t=pr((t=>w.next(e*t).value),e,30);return e+"ms "+t}};return w}function ca({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const f=e[0],d={done:!1,value:f},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=n*t;const m=f+h,y=void 0===a?m:a(m);y!==m&&(h=y-f);const g=e=>-h*Math.exp(-e/r),v=e=>y+g(e),b=e=>{const t=g(e),n=v(e);d.done=Math.abs(t)<=c,d.value=d.done?y:n};let w,x;const M=e=>{var t;t=d.value,(void 0!==s&&t<s||void 0!==l&&t>l)&&(w=e,x=la({keyframes:[d.value,p(d.value)],velocity:Ki(v,e,d.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return M(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,b(e),M(e)),void 0!==w&&e>=w?x.next(e-w):(!t&&b(e),d)}}}const ua=oo(.42,0,1,1),fa=oo(0,0,.58,1),da=oo(.42,0,.58,1),pa={linear:Dr,easeIn:ua,easeInOut:da,easeOut:fa,circIn:fo,circInOut:ho,circOut:po,backIn:lo,backInOut:co,backOut:so,anticipate:uo},ha=e=>{if(lr(e)){vi(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return oo(t,n,r,o)}return"string"==typeof e?(vi(void 0!==pa[e],`Invalid easing type '${e}'`),pa[e]):e};function ma({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(ha):ha(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=dr(0,t,r);e.push(Ri(n,1,o))}}(t,e.length-1),t}(t),e),s=function(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(vi(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],o=n||Xi,i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Dr:t;i=Wi(e,i)}r.push(i)}return r}(t,r,o),l=s.length,c=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=dr(e[r],e[r+1],n);return s[r](o)};return n?t=>c(go(e[0],e[i-1],t)):c}(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||da)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}const ya=e=>{const t=({timestamp:t})=>e(t);return{start:()=>zr.update(t,!0),stop:()=>Lr(t),now:()=>Ur.isProcessing?Ur.timestamp:Yr.now()}},ga={decay:ca,inertia:ca,tween:ma,keyframes:ma,spring:la},va=e=>e/100;class ba extends _i{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:o}=this.options,i=(null==r?void 0:r.KeyframeResolver)||yi;this.resolver=new i(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=this.options,a=ar(t)?t:ga[t]||ma;let s,l;a!==ma&&"number"!=typeof e[0]&&(s=Wi(va,Xi(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});"mirror"===o&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===c.calculatedDuration&&(c.calculatedDuration=ir(c));const{calculatedDuration:u}=c,f=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:f,totalDuration:f*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:f,repeat:d,repeatType:p,repeatDelay:h,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const y=this.currentTime-f*(this.speed>=0?1:-1),g=this.speed>=0?y<0:y>c;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let v=this.currentTime,b=o;if(d){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,d+1),Boolean(t%2)&&("reverse"===p?(n=1-n,h&&(n-=h/u)):"mirror"===p&&(b=i)),v=go(0,1,n)*u}const w=g?{done:!1,value:s[0]}:b.next(v);a&&(w.value=a(w.value));let{done:x}=w;g||null===l||(x=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const M=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return M&&void 0!==r&&(w.value=Pi(s,this.options,r)),m&&m(w.value),M&&this.finish(),w}get duration(){const{resolved:e}=this;return e?Ar(e.calculatedDuration):0}get time(){return Ar(this.currentTime)}set time(e){e=Tr(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Ar(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=ya,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const wa=new Set(["opacity","clipPath","filter","transform"]),xa=Jn((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Ma={anticipate:uo,backInOut:co,circInOut:ho};class ja extends _i{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new Ai(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:o,type:i,motionValue:a,name:s,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;var c;if("string"==typeof o&&fr()&&o in Ma&&(o=Ma[o]),ar((c=this.options).type)||"spring"===c.type||!hr(c.ease)){const{onComplete:t,onUpdate:a,motionValue:s,element:l,...c}=this.options,u=function(e,t){const n=new ba({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),n=u.duration,r=u.times,o=u.ease,i="keyframes"}const u=function(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=gr(s,o);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(a.owner.current,s,e,{...this.options,duration:n,times:r,ease:o});return u.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(sr(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;a.set(Pi(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:r,type:i,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Ar(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Ar(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=Tr(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return Dr;const{animation:n}=t;sr(n,e)}else this.pendingTimeline=e;return Dr}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:i,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,element:l,...c}=this.options,u=new ba({...c,keyframes:n,duration:r,type:o,ease:i,times:a,isGenerator:!0}),f=Tr(this.time);e.setWithVelocity(u.sample(f-10).value,u.sample(f).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:a}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:s,transformTemplate:l}=t.owner.getProps();return xa()&&n&&wa.has(n)&&!s&&!l&&!r&&"mirror"!==o&&0!==i&&"inertia"!==a}}const Ea={type:"spring",stiffness:500,damping:25,restSpeed:10},Oa={type:"keyframes",duration:.8},ka={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Sa=(e,{keyframes:t})=>t.length>2?Oa:Ir.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Ea:ka,Na=(e,t,n,r={},o,i)=>a=>{const s=rr(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c-=Tr(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(s)||(u={...u,...Sa(e,u)}),u.duration&&(u.duration=Tr(u.duration)),u.repeatDelay&&(u.repeatDelay=Tr(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let f=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(f=!0)),f&&!i&&void 0!==t.get()){const e=Pi(u.keyframes,s);if(void 0!==e)return zr.update((()=>{u.onUpdate(e),u.onComplete()})),new nr([])}return!i&&ja.supports(u)?new ja(u):new ba(u)};function Ta({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Aa(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;r&&(a=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||u&&Ta(u,t))continue;const s={delay:n,...rr(a||{},t)};let f=!1;if(window.MotionHandoffAnimation){const n=no(e);if(n){const e=window.MotionHandoffAnimation(n,t,zr);null!==e&&(s.startTime=e,f=!0)}}Jr(e,t),r.start(Na(t,r,o,e.shouldReduceMotion&&Pr.has(t)?{type:!1}:s,e,f));const d=r.animation;d&&c.push(d)}return s&&Promise.all(c).then((()=>{zr.update((()=>{s&&function(e,t){const n=Zn(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)Xr(e,t,(a=i[t],Hn(a)?a[a.length-1]||0:a));var a}(e,s)}))})),c}function Da(e,t,n={}){var r;const o=Zn(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(Aa(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(Ca).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(Da(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,o+r,a,s,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then((()=>t()))}return Promise.all([a(),s(n.delay)])}function Ca(e,t){return e.sortNodePosition(t)}const Ia=Kn.length;function Pa(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&Pa(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<Ia;n++){const r=Kn[n],o=e.props[r];(Qn(o)||!1===o)&&(t[r]=o)}return t}const _a=[...Xn].reverse(),Ra=Xn.length;function za(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>Da(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=Da(e,t,n);else{const o="function"==typeof t?Zn(e,t,n.custom):t;r=Promise.all(Aa(e,o,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}(e),n=Ua(),r=!0;const o=t=>(n,r)=>{var o;const i=Zn(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function i(i){const{props:a}=e,s=Pa(e.parent)||{},l=[],c=new Set;let u={},f=1/0;for(let t=0;t<Ra;t++){const h=_a[t],m=n[h],y=void 0!==a[h]?a[h]:s[h],g=Qn(y),v=h===i?m.isActive:null;!1===v&&(f=t);let b=y===s[h]&&y!==a[h]&&g;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys={...u},!m.isActive&&null===v||!y&&!m.prevProp||Wn(y)||"boolean"==typeof y)continue;const w=(d=m.prevProp,"string"==typeof(p=y)?p!==d:!!Array.isArray(p)&&!Gn(p,d));let x=w||h===i&&m.isActive&&!b&&g||t>f&&g,M=!1;const j=Array.isArray(y)?y:[y];let E=j.reduce(o(h),{});!1===v&&(E={});const{prevResolvedValues:O={}}=m,k={...O,...E},S=t=>{x=!0,c.has(t)&&(M=!0,c.delete(t)),m.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in k){const t=E[e],n=O[e];if(u.hasOwnProperty(e))continue;let r=!1;r=Hn(t)&&Hn(n)?!Gn(t,n):t!==n,r?null!=t?S(e):c.add(e):void 0!==t&&c.has(e)?S(e):m.protectedKeys[e]=!0}m.prevProp=y,m.prevResolvedValues=E,m.isActive&&(u={...u,...E}),r&&e.blockInitialAnimation&&(x=!1),x&&(!b||!w||M)&&l.push(...j.map((e=>({animation:e,options:{type:h}}))))}var d,p;if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let h=Boolean(l.length);return!r||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(h=!1),r=!1,h?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const a=i(t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Ua(),r=!0}}}function La(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ua(){return{animate:La(!0),whileInView:La(),whileHover:La(),whileTap:La(),whileDrag:La(),whileFocus:La(),exit:La()}}class Fa{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Ba=0;const Va={animation:{Feature:class extends Fa{constructor(e){super(e),e.animationState||(e.animationState=za(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Wn(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Fa{constructor(){super(...arguments),this.id=Ba++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function Ya(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Wa(e){return{point:{x:e.pageX,y:e.pageY}}}function Ha(e,t,n,r){return Ya(e,t,(e=>t=>jr(t)&&e(t,Wa(t)))(n),r)}const Ga=(e,t)=>Math.abs(e-t);class Qa{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Za(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ga(e.x,t.x),r=Ga(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Ur;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=$a(t,this.transformPagePoint),zr.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Za("pointercancel"===e.type?this.lastMoveEventInfo:$a(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!jr(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=$a(Wa(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=Ur;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Za(i,this.history)),this.removeListeners=Wi(Ha(this.contextWindow,"pointermove",this.handlePointerMove),Ha(this.contextWindow,"pointerup",this.handlePointerUp),Ha(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Lr(this.updatePoint)}}function $a(e,t){return t?{point:t(e.point)}:e}function qa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Za({point:e},t){return{point:e,delta:qa(e,Ka(t)),offset:qa(e,Xa(t)),velocity:Ja(t,.1)}}function Xa(e){return e[0]}function Ka(e){return e[e.length-1]}function Ja(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Ka(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Tr(t)));)n--;if(!r)return{x:0,y:0};const i=Ar(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function es(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ts(e){return e.max-e.min}function ns(e,t,n,r=.5){e.origin=r,e.originPoint=Ri(t.min,t.max,e.origin),e.scale=ts(n)/ts(t),e.translate=Ri(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rs(e,t,n,r){ns(e.x,t.x,n.x,r?r.originX:void 0),ns(e.y,t.y,n.y,r?r.originY:void 0)}function os(e,t,n){e.min=n.min+t.min,e.max=e.min+ts(t)}function is(e,t,n){e.min=t.min-n.min,e.max=e.min+ts(t)}function as(e,t,n){is(e.x,t.x,n.x),is(e.y,t.y,n.y)}function ss(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ls(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const cs=.35;function us(e,t,n){return{min:fs(e,t),max:fs(e,n)}}function fs(e,t){return"number"==typeof e?e:e[t]||0}const ds=()=>({x:{min:0,max:0},y:{min:0,max:0}});function ps(e){return[e("x"),e("y")]}function hs({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ms(e){return void 0===e||1===e}function ys({scale:e,scaleX:t,scaleY:n}){return!ms(e)||!ms(t)||!ms(n)}function gs(e){return ys(e)||vs(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vs(e){return bs(e.x)||bs(e.y)}function bs(e){return e&&"0%"!==e}function ws(e,t,n){return n+t*(e-n)}function xs(e,t,n,r,o){return void 0!==o&&(e=ws(e,o,r)),ws(e,n,r)+t}function Ms(e,t=0,n=1,r,o){e.min=xs(e.min,t,n,r,o),e.max=xs(e.max,t,n,r,o)}function js(e,{x:t,y:n}){Ms(e.x,t.translate,t.scale,t.originPoint),Ms(e.y,n.translate,n.scale,n.originPoint)}const Es=.999999999999,Os=1.0000000000001;function ks(e,t){e.min=e.min+t,e.max=e.max+t}function Ss(e,t,n,r,o=.5){Ms(e,t,n,Ri(e.min,e.max,o),r)}function Ns(e,t){Ss(e.x,t.x,t.scaleX,t.scale,t.originX),Ss(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ts(e,t){return hs(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const As=({current:e})=>e?e.ownerDocument.defaultView:null,Ds=new WeakMap;class Cs{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new Qa(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Wa(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=n)||"y"===i?vr[i]?null:(vr[i]=!0,()=>{vr[i]=!1}):vr.x||vr.y?null:(vr.x=vr.y=!0,()=>{vr.x=vr.y=!1}),!this.openDragLock))return;var i;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ps((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Do.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=ts(r)*(parseFloat(t)/100))}}this.originPoint[e]=t})),o&&zr.postRender((()=>o(e,t))),Jr(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>ps((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:As(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&zr.postRender((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Is(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?Ri(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Ri(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&es(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:ss(e.x,n,o),y:ss(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=cs){return!1===e?e=0:!0===e&&(e=cs),{x:us(e,"left","right"),y:us(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ps((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!es(e))return!1;const n=e.current;vi(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Ts(e,n),{scroll:o}=t;return o&&(ks(r.x,o.offset.x),ks(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:ls(e.x,t.x),y:ls(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=hs(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=ps((a=>{if(!Is(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,f={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,f)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return Jr(this.visualElement,e),n.start(Na(e,n,0,t,this.visualElement,!1))}stopAnimation(){ps((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){ps((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){ps((t=>{const{drag:n}=this.getProps();if(!Is(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-Ri(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!es(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};ps((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=ts(e),o=ts(t);return o>r?n=dr(t.min,t.max-r,e.min):r>o&&(n=dr(e.min,e.max-o,t.min)),go(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ps((t=>{if(!Is(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Ri(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;Ds.set(this.visualElement,this);const e=Ha(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();es(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),zr.read(t);const o=Ya(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ps((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=cs,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Is(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Ps=e=>(t,n)=>{e&&zr.postRender((()=>e(t,n)))},_s=(0,s.createContext)({}),Rs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ls={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Co.test(e))return e;e=parseFloat(e)}return`${zs(e,t.target.x)}% ${zs(e,t.target.y)}%`}},Us={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Go.parse(e);if(o.length>5)return r;const i=Go.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=Ri(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}},Fs={},{schedule:Bs,cancel:Vs}=Rr(queueMicrotask,!1);class Ys extends s.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Hs,Object.assign(Fs,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Rs.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||zr.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Bs.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ws(e){const[t,n]=zn(),r=(0,s.useContext)(Tn);return(0,Ee.jsx)(Ys,{...e,layoutGroup:r,switchLayoutGroup:(0,s.useContext)(_s),isPresent:t,safeToRemove:n})}const Hs={borderRadius:{...Ls,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ls,borderTopRightRadius:Ls,borderBottomLeftRadius:Ls,borderBottomRightRadius:Ls,boxShadow:Us},Gs=(e,t)=>e.depth-t.depth;class Qs{constructor(){this.children=[],this.isDirty=!1}add(e){Wr(this.children,e),this.isDirty=!0}remove(e){Hr(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Gs),this.isDirty=!1,this.children.forEach(e)}}function $s(e){const t=Kr(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const qs=["TopLeft","TopRight","BottomLeft","BottomRight"],Zs=qs.length,Xs=e=>"string"==typeof e?parseFloat(e):e,Ks=e=>"number"==typeof e||Co.test(e);function Js(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const el=nl(0,.5,po),tl=nl(.5,.95,Dr);function nl(e,t,n){return r=>r<e?0:r>t?1:n(dr(e,t,r))}function rl(e,t){e.min=t.min,e.max=t.max}function ol(e,t){rl(e.x,t.x),rl(e.y,t.y)}function il(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function al(e,t,n,r,o){return e=ws(e-=t,1/n,r),void 0!==o&&(e=ws(e,1/o,r)),e}function sl(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){if(Do.test(t)&&(t=parseFloat(t),t=Ri(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=Ri(i.min,i.max,r);e===i&&(s-=t),e.min=al(e.min,t,n,s,o),e.max=al(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const ll=["x","scaleX","originX"],cl=["y","scaleY","originY"];function ul(e,t,n,r){sl(e.x,t,ll,n?n.x:void 0,r?r.x:void 0),sl(e.y,t,cl,n?n.y:void 0,r?r.y:void 0)}function fl(e){return 0===e.translate&&1===e.scale}function dl(e){return fl(e.x)&&fl(e.y)}function pl(e,t){return e.min===t.min&&e.max===t.max}function hl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ml(e,t){return hl(e.x,t.x)&&hl(e.y,t.y)}function yl(e){return ts(e.x)/ts(e.y)}function gl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class vl{constructor(){this.members=[]}add(e){Wr(this.members,e),e.scheduleRender()}remove(e){if(Hr(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const bl={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},wl="undefined"!=typeof window&&void 0!==window.MotionDebug,xl=["","X","Y","Z"],Ml={visibility:"hidden"};let jl=0;function El(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ol(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=no(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",zr,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ol(r)}function kl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=jl++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,wl&&(bl.totalNodes=bl.resolvedTargetDeltas=bl.recalculatedProjection=0),this.nodes.forEach(Tl),this.nodes.forEach(Rl),this.nodes.forEach(zl),this.nodes.forEach(Al),wl&&window.MotionDebug.record(bl)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Qs)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Gr),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=Yr.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Lr(r),e(i-t))};return zr.read(r,!0),()=>Lr(r)}(r,250),Rs.hasAnimatedSinceResize&&(Rs.hasAnimatedSinceResize=!1,this.nodes.forEach(_l))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||Yl,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!ml(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...rr(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||_l(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Lr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ll),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ol(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Cl);this.isUpdating||this.nodes.forEach(Il),this.isUpdating=!1,this.nodes.forEach(Pl),this.nodes.forEach(Sl),this.nodes.forEach(Nl),this.clearAllSnapshots();const e=Yr.now();Ur.delta=go(0,1e3/60,e-Ur.timestamp),Ur.timestamp=e,Ur.isProcessing=!0,Fr.update.process(Ur),Fr.preRender.process(Ur),Fr.render.process(Ur),Ur.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Bs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Dl),this.sharedNodes.forEach(Ul)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zr.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!dl(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||gs(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Gl((r=n).x),Gl(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!(null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)&&!this.path.some($l)){const{scroll:e}=this.root;e&&(ks(n.x,e.offset.x),ks(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(ol(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const r=this.path[t],{scroll:o,options:i}=r;r!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&ol(n,e),ks(n.x,o.offset.x),ks(n.y,o.offset.y))}return n}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};ol(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Ns(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),gs(r.latestValues)&&Ns(n,r.latestValues)}return gs(this.latestValues)&&Ns(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};ol(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!gs(n.latestValues))continue;ys(n.latestValues)&&n.updateSnapshot();const r={x:{min:0,max:0},y:{min:0,max:0}};ol(r,n.measurePageBox()),ul(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return gs(this.latestValues)&&ul(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ur.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=Ur.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},as(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),ol(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,os(a.x,s.x,l.x),os(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):ol(this.target,this.layout.layoutBox),js(this.target,this.targetDelta)):ol(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},as(this.relativeTargetOrigin,this.target,e.target),ol(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}wl&&bl.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!ys(this.parent.latestValues)&&!vs(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Ur.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;ol(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Ns(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,js(e,a)),r&&gs(i.latestValues)&&Ns(e,i.latestValues))}t.x<Os&&t.x>Es&&(t.x=1),t.y<Os&&t.y>Es&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(il(this.prevProjectionDelta.x,this.projectionDelta.x),il(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rs(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&gl(this.projectionDelta.x,this.prevProjectionDelta.x)&&gl(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),wl&&bl.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(Vl));let f;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;Fl(i.x,e.x,n),Fl(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(as(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Bl(e.x,t.x,n.x,r),Bl(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),f&&function(e,t){return pl(e.x,t.x)&&pl(e.y,t.y)}(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||(f={x:{min:0,max:0},y:{min:0,max:0}}),ol(f,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=Ri(0,void 0!==n.opacity?n.opacity:1,el(r)),e.opacityExit=Ri(void 0!==t.opacity?t.opacity:1,0,tl(r))):i&&(e.opacity=Ri(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Zs;o++){const i=`border${qs[o]}Radius`;let a=Js(t,i),s=Js(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Ks(a)===Ks(s)?(e[i]=Math.max(Ri(Xs(a),Xs(s),r),0),(Do.test(s)||Do.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=Ri(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Lr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=zr.update((()=>{Rs.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Kr(0)?0:Zr(0);return r.start(Na("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Ql(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=ts(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=ts(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}ol(t,n),Ns(t,o),rs(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new vl),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&El("z",e,r,this.animationValues);for(let t=0;t<xl.length;t++)El(`rotate${xl[t]}`,e,r,this.animationValues),El(`skew${xl[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ml;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=$s(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=$s(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!gs(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(null==n?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),i&&(r+=`rotateY(${i}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in Fs){if(void 0===a[e])continue;const{correct:t,applyTo:n}=Fs[e],o="none"===r.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?$s(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Cl),this.root.sharedNodes.clear()}}}function Sl(e){e.updateLayout()}function Nl(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?ps((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=ts(r);r.min=t[e].min,r.max=r.min+o})):Ql(o,n.layoutBox,t)&&ps((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=ts(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};rs(a,t,n.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?rs(s,e.applyTransform(r,!0),n.measuredBox):rs(s,t,n.layoutBox);const l=!dl(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a={x:{min:0,max:0},y:{min:0,max:0}};as(a,n.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};as(s,t,i.layoutBox),ml(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Tl(e){wl&&bl.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Al(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Dl(e){e.clearSnapshot()}function Cl(e){e.clearMeasurements()}function Il(e){e.isLayoutDirty=!1}function Pl(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function _l(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Rl(e){e.resolveTargetDelta()}function zl(e){e.calcProjection()}function Ll(e){e.resetSkewAndRotation()}function Ul(e){e.removeLeadSnapshot()}function Fl(e,t,n){e.translate=Ri(t.translate,0,n),e.scale=Ri(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Bl(e,t,n,r){e.min=Ri(t.min,n.min,r),e.max=Ri(t.max,n.max,r)}function Vl(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Yl={duration:.45,ease:[.4,0,.1,1]},Wl=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Hl=Wl("applewebkit/")&&!Wl("chrome/")?Math.round:Dr;function Gl(e){e.min=Hl(e.min),e.max=Hl(e.max)}function Ql(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t){return Math.abs(e-t)<=.2}(yl(t),yl(n))}function $l(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const ql=kl({attachResizeListener:(e,t)=>Ya(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Zl={current:void 0},Xl=kl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Zl.current){const e=new ql({});e.mount(window),e.setOptions({layoutScroll:!0}),Zl.current=e}return Zl.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Kl={pan:{Feature:class extends Fa{constructor(){super(...arguments),this.removePointerDownListener=Dr}onPointerDown(e){this.session=new Qa(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:As(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ps(e),onStart:Ps(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&zr.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Ha(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Fa{constructor(e){super(e),this.removeGroupControls=Dr,this.removeListeners=Dr,this.controls=new Cs(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Dr}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Xl,MeasureLayout:Ws}};function Jl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&zr.postRender((()=>o(t,Wa(t))))}function ec(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&zr.postRender((()=>o(t,Wa(t))))}const tc=new WeakMap,nc=new WeakMap,rc=e=>{const t=tc.get(e.target);t&&t(e)},oc=e=>{e.forEach(rc)};const ic={some:0,all:1},ac={inView:{Feature:class extends Fa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ic[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;nc.has(n)||nc.set(n,{});const r=nc.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(oc,{root:e,...t})),r[o]}(t);return tc.set(e,n),r.observe(e),()=>{tc.delete(e),r.unobserve(e)}}(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Fa{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=wr(e,n),a=e=>{const r=e.currentTarget;if(!Nr(e)||Or.has(r))return;Or.add(r);const i=t(e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),Nr(e)&&Or.has(r)&&(Or.delete(r),"function"==typeof i&&i(e,{success:t}))},s=e=>{a(e,n.useGlobalTarget||Mr(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",l,o)};return r.forEach((e=>{(function(e){return Er.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,o),e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=kr((()=>{if(Or.has(n))return;Sr(n,"down");const e=kr((()=>{Sr(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>Sr(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,o)),o)})),i}(e,(e=>(ec(this.node,e,"Start"),(e,{success:t})=>ec(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Fa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Wi(Ya(this.node.current,"focus",(()=>this.onFocus())),Ya(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Fa{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=wr(e,n),a=xr((e=>{const{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;const i=xr((e=>{r(e),n.removeEventListener("pointerleave",i)}));n.addEventListener("pointerleave",i,o)}));return r.forEach((e=>{e.addEventListener("pointerenter",a,o)})),i}(e,(e=>(Jl(this.node,e,"Start"),e=>Jl(this.node,e,"End")))))}unmount(){}}}},sc={layout:{ProjectionNode:Xl,MeasureLayout:Ws}},lc=(0,s.createContext)({strict:!1}),cc=(0,s.createContext)({});function uc(e){return Wn(e.animate)||Kn.some((t=>Qn(e[t])))}function fc(e){return Boolean(uc(e)||e.variants)}function dc(e){return Array.isArray(e)?e.join(" "):e}const pc={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},hc={};for(const e in pc)hc[e]={isEnabled:t=>pc[e].some((e=>!!t[e]))};const mc=Symbol.for("motionComponentSymbol");function yc(e,t,n){return(0,s.useCallback)((r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):es(n)&&(n.current=r))}),[t])}function gc(e,t,n,r,o){var i,a;const{visualElement:l}=(0,s.useContext)(cc),c=(0,s.useContext)(lc),u=(0,s.useContext)(Dn),f=(0,s.useContext)(Cn).reducedMotion,d=(0,s.useRef)(null);r=r||c.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:f}));const p=d.current,h=(0,s.useContext)(_s);!p||p.projection||!o||"html"!==p.type&&"svg"!==p.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:vc(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&es(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(d.current,n,o,h);const m=(0,s.useRef)(!1);(0,s.useInsertionEffect)((()=>{p&&m.current&&p.update(n,u)}));const y=n[to],g=(0,s.useRef)(Boolean(y)&&!(null===(i=window.MotionHandoffIsComplete)||void 0===i?void 0:i.call(window,y))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,y)));return Bn((()=>{p&&(m.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Bs.render(p.render),g.current&&p.animationState&&p.animationState.animateChanges())})),(0,s.useEffect)((()=>{p&&(!g.current&&p.animationState&&p.animationState.animateChanges(),g.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,y)})),g.current=!1))})),p}function vc(e){if(e)return!1!==e.options.allowProjection?e.projection:vc(e.parent)}function bc({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var i,a;function l(e,i){let a;const l={...(0,s.useContext)(Cn),...e,layoutId:wc(e)},{isStatic:c}=l,u=function(e){const{initial:t,animate:n}=function(e,t){if(uc(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Qn(t)?t:void 0,animate:Qn(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(cc));return(0,s.useMemo)((()=>({initial:t,animate:n})),[dc(t),dc(n)])}(e),f=r(e,c);if(!c&&Fn){(0,s.useContext)(lc).strict;const e=function(e){const{drag:t,layout:n}=hc;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);a=e.MeasureLayout,u.visualElement=gc(o,f,l,t,e.ProjectionNode)}return(0,Ee.jsxs)(cc.Provider,{value:u,children:[a&&u.visualElement?(0,Ee.jsx)(a,{visualElement:u.visualElement,...l}):null,n(o,e,yc(f,u.visualElement,i),f,c,u.visualElement)]})}e&&function(e){for(const t in e)hc[t]={...hc[t],...e[t]}}(e),l.displayName=`motion.${"string"==typeof o?o:`create(${null!==(a=null!==(i=o.displayName)&&void 0!==i?i:o.name)&&void 0!==a?a:""})`}`;const c=(0,s.forwardRef)(l);return c[mc]=o,c}function wc({layoutId:e}){const t=(0,s.useContext)(Tn).id;return t&&void 0!==e?t+"-"+e:e}const xc=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Mc(e){return"string"==typeof e&&!e.includes("-")&&!!(xc.indexOf(e)>-1||/[A-Z]/u.test(e))}const jc=e=>(t,n)=>{const r=(0,s.useContext)(cc),o=(0,s.useContext)(Dn),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,i){const a={latestValues:Ec(r,o,i,e),renderState:t()};return n&&(a.onMount=e=>n({props:r,current:e,...a}),a.onUpdate=e=>n(e)),a}(e,t,r,o);return n?i():An(i)};function Ec(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=$s(i[e]);let{initial:a,animate:s}=e;const l=uc(e),c=fc(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const f=u?s:a;if(f&&"boolean"!=typeof f&&!Wn(f)){const t=Array.isArray(f)?f:[f];for(let n=0;n<t.length;n++){const r=qn(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const Oc=(e,t)=>t&&"number"==typeof e?t.transform(e):e,kc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Sc=Cr.length;function Nc(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const e in t){const n=t[e];if(Ir.has(e))a=!0;else if(xi(e))o[e]=n;else{const t=Oc(n,ei[e]);e.startsWith("origin")?(s=!0,i[e]=t):r[e]=t}}if(t.transform||(a||n?r.transform=function(e,t,n){let r="",o=!0;for(let i=0;i<Sc;i++){const a=Cr[i],s=e[a];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=Oc(s,ei[a]);l||(o=!1,r+=`${kc[a]||a}(${e}) `),n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}const Tc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ac={offset:"strokeDashoffset",array:"strokeDasharray"};function Dc(e,t,n){return"string"==typeof e?e:Co.transform(t+n*e)}function Cc(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,f){if(Nc(e,c,f),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:d,style:p,dimensions:h}=e;d.transform&&(h&&(p.transform=d.transform),delete d.transform),h&&(void 0!==o||void 0!==i||p.transform)&&(p.transformOrigin=function(e,t,n){return`${Dc(t,e.x,e.width)} ${Dc(n,e.y,e.height)}`}(h,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==a&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Tc:Ac;e[i.offset]=Co.transform(-r);const a=Co.transform(t),s=Co.transform(n);e[i.array]=`${a} ${s}`}(d,a,s,l,!1)}const Ic=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Pc(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const _c=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Rc(e,t,n,r){Pc(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(_c.has(n)?n:eo(n),t.attrs[n])}function zc(e,{layout:t,layoutId:n}){return Ir.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Fs[e]||"opacity"===e)}function Lc(e,t,n){var r;const{style:o}=e,i={};for(const a in o)(Kr(o[a])||t.style&&Kr(t.style[a])||zc(a,e)||void 0!==(null===(r=null==n?void 0:n.getValue(a))||void 0===r?void 0:r.liveStyle))&&(i[a]=o[a]);return i}function Uc(e,t,n){const r=Lc(e,t,n);for(const n in e)(Kr(e[n])||Kr(t[n]))&&(r[-1!==Cr.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}const Fc=["x","y","width","height","cx","cy","r"],Bc={useVisualState:jc({scrapeMotionValuesFromProps:Uc,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let i=!!e.drag;if(!i)for(const e in o)if(Ir.has(e)){i=!0;break}if(!i)return;let a=!t;if(t)for(let n=0;n<Fc.length;n++){const r=Fc[n];e[r]!==t[r]&&(a=!0)}a&&zr.read((()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(n,r),zr.render((()=>{Cc(r,o,Ic(n.tagName),e.transformTemplate),Rc(n,r)}))}))}})},Vc={useVisualState:jc({scrapeMotionValuesFromProps:Lc,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function Yc(e,t,n){for(const r in t)Kr(t[r])||zc(r,n)||(e[r]=t[r])}function Wc(e,t){const n={},r=function(e,t){const n={};return Yc(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,s.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return Nc(n,t,e),Object.assign({},n.vars,n.style)}),[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Hc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Gc(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Hc.has(e)}let Qc=e=>!Gc(e);try{($c=require("@emotion/is-prop-valid").default)&&(Qc=e=>e.startsWith("on")?!Gc(e):$c(e))}catch(e){}var $c;function qc(e,t,n,r){const o=(0,s.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Cc(n,t,Ic(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};Yc(t,e.style,e),o.style={...t,...o.style}}return o}function Zc(e=!1){return(t,n,r,{latestValues:o},i)=>{const a=(Mc(t)?qc:Wc)(n,o,i,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Qc(o)||!0===n&&Gc(o)||!t&&!Gc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c=t!==s.Fragment?{...l,...a,ref:r}:{},{children:u}=n,f=(0,s.useMemo)((()=>Kr(u)?u.get():u),[u]);return(0,s.createElement)(t,{...c,children:f})}}function Xc(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return bc({...Mc(n)?Bc:Vc,preloadedFeatures:e,useRender:Zc(r),createVisualElement:t,Component:n})}}const Kc={current:null},Jc={current:!1},eu=[...Ni,zo,Go],tu=new WeakMap,nu=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ru{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=yi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=Yr.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,zr.render(this.render,!1,!0))};const{latestValues:s,renderState:l,onUpdate:c}=i;this.onUpdate=c,this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=uc(t),this.isVariantNode=fc(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in f){const t=f[e];void 0!==s[e]&&Kr(t)&&t.set(s[e],!1)}}mount(e){this.current=e,tu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Jc.current||function(){if(Jc.current=!0,Fn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Kc.current=e.matches;e.addListener(t),t()}else Kc.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Kc.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){tu.delete(this.current),this.projection&&this.projection.unmount(),Lr(this.notifyUpdate),Lr(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=Ir.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&zr.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),o(),i&&i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in hc){const t=hc[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<nu.length;t++){const n=nu[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Kr(o))e.addValue(r,o);else if(Kr(i))e.addValue(r,Zr(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,Zr(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Zr(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(bi(r)||mo(r))?r=parseFloat(r):(o=r,!eu.find(Si(o))&&Go.test(t)&&(r=ri(e,t))),this.setBaseTarget(e,Kr(r)?r.get():r)),Kr(r)?r.get():r;var o}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=qn(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Kr(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Gr),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class ou extends ru{constructor(){super(...arguments),this.KeyframeResolver=Ai}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Kr(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class iu extends ou{constructor(){super(...arguments),this.type="html",this.renderInstance=Pc}readValueFromInstance(e,t){if(Ir.has(t)){const e=ni(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(xi(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ts(e,t)}build(e,t,n){Nc(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Lc(e,t,n)}}class au extends ou{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ds}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Ir.has(t)){const e=ni(t);return e&&e.default||0}return t=_c.has(t)?t:eo(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Uc(e,t,n)}build(e,t,n){Cc(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){Rc(e,t,0,r)}mount(e){this.isSVGTag=Ic(e.tagName),super.mount(e)}}const su=Yn(Xc({...Va,...ac,...Kl,...sc},((e,t)=>Mc(e)?new au(t):new iu(t,{allowProjection:e!==s.Fragment}))));let lu=!1;const cu=({toastItem:e,title:t="",content:n="",autoDismiss:r=!0,dismissAfter:o=5e3,theme:i="light",design:a="stack",icon:l,variant:c="neutral",removeToast:u})=>{const f=(0,s.useRef)(0),d=(0,s.useRef)(0),p=(0,s.useRef)(),h=(e,t=o)=>{if(r&&!(o<0))return f.current=(new Date).getTime(),setTimeout((()=>{"function"==typeof u&&u(e.id)}),t)};(0,s.useEffect)((()=>{const t=o;return p.current=h(e,t),()=>{clearTimeout(p.current)}}),[]),(0,s.useEffect)((()=>{!e?.dismiss||"function"!=typeof u||u(e.id)}),[e]);const m=()=>{"function"==typeof u&&e?.action?.onClick?.((()=>u(e.id)))};let y=null;return"stack"===a&&(y=(0,Ee.jsx)("div",{className:xt("flex items-center justify-start p-4 gap-2 relative border border-solid rounded-md shadow-lg","dark"===i?Sn:kn?.[c],"w-[22.5rem]"),onMouseEnter:()=>{clearTimeout(p.current),d.current=(new Date).getTime()},onMouseLeave:()=>{p.current=h(e,o-(d.current-f.current))},children:"custom"!==e.type?(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:wn({variant:c,icon:l,theme:i})}),(0,Ee.jsxs)("div",{className:"flex flex-col items-start justify-start gap-0.5 mr-6",children:[Mn({title:t,theme:i}),jn({content:n,theme:i}),e?.action?.label&&"function"==typeof e?.action?.onClick&&(0,Ee.jsx)("div",{className:"mt-2.5",children:xn({actionLabel:e?.action?.label,actionType:e?.action?.type??"button",onAction:m,theme:i})})]}),(0,Ee.jsx)("div",{className:"absolute right-4 top-4 [&_svg]:size-5",children:(0,Ee.jsx)("button",{className:xt("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",Nn[i]??Nn.light),onClick:t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof u&&u(e.id)},children:(0,Ee.jsx)(un,{})})})]}):e?.jsx?.({close:()=>u(e.id),action:e?.action?{...e?.action,onClick:m}:null})})),"inline"===a&&(y=(0,Ee.jsxs)("div",{className:xt("flex items-center justify-start p-3 gap-2 relative border border-solid rounded-md shadow-lg","dark"===i?Sn:kn?.[c],"lg:w-[47.5rem] w-full"),children:[(0,Ee.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:wn({variant:c,icon:l,theme:i})}),(0,Ee.jsxs)("div",{className:"flex items-start justify-start gap-1 mr-10 [&>span:first-child]:shrink-0",children:[Mn({title:t,theme:i}),jn({content:n,theme:i})]}),(0,Ee.jsx)("div",{className:"absolute right-3 top-3 [&_svg]:size-5",children:(0,Ee.jsx)("button",{className:xt("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",Nn[i]??Nn.light),onClick:()=>u(e.id),children:(0,Ee.jsx)(un,{})})})]})),y},uu=(e=>(0,s.memo)((t=>{const n=t.singleTon;return lu&&n?null:(lu=!0,(0,Ee.jsx)(e,{...t}))})))((({position:e="top-right",design:t="stack",theme:n="light",className:r="",autoDismiss:o=!0,dismissAfter:i=5e3})=>{const[a,l]=(0,s.useState)([]);(0,s.useEffect)((()=>{dn.subscribe((e=>{e?.dismiss?l((t=>t.map((t=>t.id===e.id?{...t,dismiss:!0}:t)))):setTimeout((()=>{(0,ve.flushSync)((()=>l((t=>-1!==t.findIndex((t=>t.id===e.id))?t.map((t=>t.id===e.id?{...t,...e}:t)):[...t,e]))))}))}))}),[]);const c=e=>{l((t=>t.filter((t=>t.id!==e))))};return(0,Ee.jsx)("ul",{className:xt("fui-toast-container fixed flex flex-col list-none z-20 p-10 pointer-events-none [&>li]:pointer-events-auto gap-3",On[e]??On["top-right"],r),children:(0,Ee.jsx)(Vn,{initial:!1,children:a.map((e=>(0,Ee.jsx)(su.li,{initial:{opacity:0,y:50,scale:.7},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.6,transition:{duration:.15}},layoutId:`toast-${e.id}`,children:(0,Ee.jsx)(cu,{toastItem:e,title:e.title,content:e?.description,icon:e?.icon??void 0,design:e?.design??t,autoDismiss:e?.autoDismiss??o,dismissAfter:e?.dismissAfter??i,removeToast:c,variant:e.type,theme:e?.theme??n})},e.id)))})})})),fu=window.wp.apiFetch;var du=o.n(fu);let pu={data:""},hu=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,mu=/\/\*[^]*?\*\/| +/g,yu=/\n+/g,gu=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?gu(a,i):i+"{"+gu(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=gu(a,t?t.replace(/([^,])+/g,(e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=gu.p?gu.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},vu={},bu=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+bu(e[n]);return t}return e};function wu(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,o)=>{let i=bu(e),a=vu[i]||(vu[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!vu[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=hu.exec(e.replace(mu,""));)t[4]?r.shift():t[3]?(n=t[3].replace(yu," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(yu," ").trim();return r[0]})(e);vu[a]=gu(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&vu.g?vu.g:null;return n&&(vu.g=vu[a]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(vu[a],t,r,s),a})(n.unshift?n.raw?((e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":gu(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),""))(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,(e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||pu)(t.target),t.g,t.o,t.k)}wu.bind({g:1});let xu,Mu,ju,Eu=wu.bind({k:1});function Ou(e,t){let n=this||{};return function(){let r=arguments;function o(i,a){let s=Object.assign({},i),l=s.className||o.className;n.p=Object.assign({theme:Mu&&Mu()},s),n.o=/ *go\d+/.test(l),s.className=wu.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let c=e;return e[0]&&(c=s.as||e,delete s.as),ju&&c[0]&&ju(s),xu(c,s)}return t?t(o):o}}var ku=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,Su=(()=>{let e=0;return()=>(++e).toString()})(),Nu=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Tu=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return Tu(e,{type:e.toasts.find((e=>e.id===n.id))?1:0,toast:n});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,dismissed:!0,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},Au=[],Du={toasts:[],pausedAt:void 0},Cu=e=>{Du=Tu(Du,e),Au.forEach((e=>{e(Du)}))},Iu=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||Su()}))(t,e,n);return Cu({type:2,toast:r}),r.id},Pu=(e,t)=>Iu("blank")(e,t);Pu.error=Iu("error"),Pu.success=Iu("success"),Pu.loading=Iu("loading"),Pu.custom=Iu("custom"),Pu.dismiss=e=>{Cu({type:3,toastId:e})},Pu.remove=e=>Cu({type:4,toastId:e}),Pu.promise=(e,t,n)=>{let r=Pu.loading(t.loading,{...n,...null==n?void 0:n.loading});return"function"==typeof e&&(e=e()),e.then((e=>{let o=t.success?ku(t.success,e):void 0;return o?Pu.success(o,{id:r,...n,...null==n?void 0:n.success}):Pu.dismiss(r),e})).catch((e=>{let o=t.error?ku(t.error,e):void 0;o?Pu.error(o,{id:r,...n,...null==n?void 0:n.error}):Pu.dismiss(r)})),e},new Map;var _u=Eu`
3 +from {
4 + transform: scale(0) rotate(45deg);
5 + opacity: 0;
6 +}
7 +to {
8 + transform: scale(1) rotate(45deg);
9 + opacity: 1;
10 +}`,Ru=Eu`
11 +from {
12 + transform: scale(0);
13 + opacity: 0;
14 +}
15 +to {
16 + transform: scale(1);
17 + opacity: 1;
18 +}`,zu=Eu`
19 +from {
20 + transform: scale(0) rotate(90deg);
21 + opacity: 0;
22 +}
23 +to {
24 + transform: scale(1) rotate(90deg);
25 + opacity: 1;
26 +}`,Lu=Ou("div")`
27 + width: 20px;
28 + opacity: 0;
29 + height: 20px;
30 + border-radius: 10px;
31 + background: ${e=>e.primary||"#ff4b4b"};
32 + position: relative;
33 + transform: rotate(45deg);
34 +
35 + animation: ${_u} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
36 + forwards;
37 + animation-delay: 100ms;
38 +
39 + &:after,
40 + &:before {
41 + content: '';
42 + animation: ${Ru} 0.15s ease-out forwards;
43 + animation-delay: 150ms;
44 + position: absolute;
45 + border-radius: 3px;
46 + opacity: 0;
47 + background: ${e=>e.secondary||"#fff"};
48 + bottom: 9px;
49 + left: 4px;
50 + height: 2px;
51 + width: 12px;
52 + }
53 +
54 + &:before {
55 + animation: ${zu} 0.15s ease-out forwards;
56 + animation-delay: 180ms;
57 + transform: rotate(90deg);
58 + }
59 +`,Uu=Eu`
60 + from {
61 + transform: rotate(0deg);
62 + }
63 + to {
64 + transform: rotate(360deg);
65 + }
66 +`,Fu=Ou("div")`
67 + width: 12px;
68 + height: 12px;
69 + box-sizing: border-box;
70 + border: 2px solid;
71 + border-radius: 100%;
72 + border-color: ${e=>e.secondary||"#e0e0e0"};
73 + border-right-color: ${e=>e.primary||"#616161"};
74 + animation: ${Uu} 1s linear infinite;
75 +`,Bu=Eu`
76 +from {
77 + transform: scale(0) rotate(45deg);
78 + opacity: 0;
79 +}
80 +to {
81 + transform: scale(1) rotate(45deg);
82 + opacity: 1;
83 +}`,Vu=Eu`
84 +0% {
85 + height: 0;
86 + width: 0;
87 + opacity: 0;
88 +}
89 +40% {
90 + height: 0;
91 + width: 6px;
92 + opacity: 1;
93 +}
94 +100% {
95 + opacity: 1;
96 + height: 10px;
97 +}`,Yu=Ou("div")`
98 + width: 20px;
99 + opacity: 0;
100 + height: 20px;
101 + border-radius: 10px;
102 + background: ${e=>e.primary||"#61d345"};
103 + position: relative;
104 + transform: rotate(45deg);
105 +
106 + animation: ${Bu} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
107 + forwards;
108 + animation-delay: 100ms;
109 + &:after {
110 + content: '';
111 + box-sizing: border-box;
112 + animation: ${Vu} 0.2s ease-out forwards;
113 + opacity: 0;
114 + animation-delay: 200ms;
115 + position: absolute;
116 + border-right: 2px solid;
117 + border-bottom: 2px solid;
118 + border-color: ${e=>e.secondary||"#fff"};
119 + bottom: 6px;
120 + left: 6px;
121 + height: 10px;
122 + width: 6px;
123 + }
124 +`,Wu=Ou("div")`
125 + position: absolute;
126 +`,Hu=Ou("div")`
127 + position: relative;
128 + display: flex;
129 + justify-content: center;
130 + align-items: center;
131 + min-width: 20px;
132 + min-height: 20px;
133 +`,Gu=Eu`
134 +from {
135 + transform: scale(0.6);
136 + opacity: 0.4;
137 +}
138 +to {
139 + transform: scale(1);
140 + opacity: 1;
141 +}`,Qu=Ou("div")`
142 + position: relative;
143 + transform: scale(0.6);
144 + opacity: 0.4;
145 + min-width: 20px;
146 + animation: ${Gu} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
147 + forwards;
148 +`,$u=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return void 0!==t?"string"==typeof t?s.createElement(Qu,null,t):t:"blank"===n?null:s.createElement(Hu,null,s.createElement(Fu,{...r}),"loading"!==n&&s.createElement(Wu,null,"error"===n?s.createElement(Lu,{...r}):s.createElement(Yu,{...r})))},qu=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,Zu=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,Xu=Ou("div")`
149 + display: flex;
150 + align-items: center;
151 + background: #fff;
152 + color: #363636;
153 + line-height: 1.3;
154 + will-change: transform;
155 + box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
156 + max-width: 350px;
157 + pointer-events: auto;
158 + padding: 8px 10px;
159 + border-radius: 8px;
160 +`,Ku=Ou("div")`
161 + display: flex;
162 + justify-content: center;
163 + margin: 4px 10px;
164 + color: inherit;
165 + flex: 1 1 auto;
166 + white-space: pre-line;
167 +`;s.memo((({toast:e,position:t,style:n,children:r})=>{let o=e.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,o]=Nu()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[qu(n),Zu(n)];return{animation:t?`${Eu(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Eu(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},i=s.createElement($u,{toast:e}),a=s.createElement(Ku,{...e.ariaProps},ku(e.message,e));return s.createElement(Xu,{className:e.className,style:{...o,...n,...e.style}},"function"==typeof r?r({icon:i,message:a}):s.createElement(s.Fragment,null,i,a))})),function(e){gu.p=void 0,xu=e,Mu=void 0,ju=void 0}(s.createElement),wu`
168 + z-index: 9999;
169 + > * {
170 + pointer-events: auto;
171 + }
172 +`,window.wp.editor,window.wp.blockEditor,window.wp.data,window.wp.url;const Ju=e=>{const t=rf(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),ef(n,t)||nf(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},ef=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?ef(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId},tf=/^\[(.+)\]$/,nf=e=>{if(tf.test(e)){const t=tf.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},rf=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)of(n[e],r,e,t);return r},of=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return sf(e)?void of(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{of(o,af(t,e),n,r)}))}else(""===e?t:af(t,e)).classGroupId=n}))},af=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},sf=e=>e.isThemeGetter,lf=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},cf=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,i=0;for(let a=0;a<e.length;a++){let s=e[a];if(0===r&&0===o){if(":"===s){t.push(e.slice(i,a)),i=a+1;continue}if("/"===s){n=a;continue}}"["===s?r++:"]"===s?r--:"("===s?o++:")"===s&&o--}const a=0===t.length?e:e.substring(i),s=uf(a);return{modifiers:t,hasImportantModifier:s!==a,baseClassName:s,maybePostfixModifierPosition:n&&n>i?n-i:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},uf=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,ff=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map((e=>[e,!0])));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach((e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)})),n.push(...r.sort()),n}},df=/\s+/;function pf(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=hf(e))&&(r&&(r+=" "),r+=t);return r}const hf=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=hf(e[r]))&&(n&&(n+=" "),n+=t);return n};function mf(e,...t){let n,r,o,i=function(s){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:lf(e.cacheSize),parseClassName:cf(e),sortModifiers:ff(e),...Ju(e)}))(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(df);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:c,modifiers:u,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:p}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let h=!!p,m=r(h?d.substring(0,p):d);if(!m){if(!h){l=t+(l.length>0?" "+l:l);continue}if(m=r(d),!m){l=t+(l.length>0?" "+l:l);continue}h=!1}const y=i(u).join(":"),g=f?y+"!":y,v=g+m;if(a.includes(v))continue;a.push(v);const b=o(m,h);for(let e=0;e<b.length;++e){const t=b[e];a.push(g+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i}return function(){return i(pf.apply(null,arguments))}}const yf=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},gf=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,vf=/^\((?:(\w[\w-]*):)?(.+)\)$/i,bf=/^\d+\/\d+$/,wf=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xf=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Mf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ef=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Of=e=>bf.test(e),kf=e=>!!e&&!Number.isNaN(Number(e)),Sf=e=>!!e&&Number.isInteger(Number(e)),Nf=e=>e.endsWith("%")&&kf(e.slice(0,-1)),Tf=e=>wf.test(e),Af=()=>!0,Df=e=>xf.test(e)&&!Mf.test(e),Cf=()=>!1,If=e=>jf.test(e),Pf=e=>Ef.test(e),_f=e=>!zf(e)&&!Yf(e),Rf=e=>Zf(e,ed,Cf),zf=e=>gf.test(e),Lf=e=>Zf(e,td,Df),Uf=e=>Zf(e,nd,kf),Ff=e=>Zf(e,Kf,Cf),Bf=e=>Zf(e,Jf,Pf),Vf=e=>Zf(e,od,If),Yf=e=>vf.test(e),Wf=e=>Xf(e,td),Hf=e=>Xf(e,rd),Gf=e=>Xf(e,Kf),Qf=e=>Xf(e,ed),$f=e=>Xf(e,Jf),qf=e=>Xf(e,od,!0),Zf=(e,t,n)=>{const r=gf.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},Xf=(e,t,n=!1)=>{const r=vf.exec(e);return!!r&&(r[1]?t(r[1]):n)},Kf=e=>"position"===e||"percentage"===e,Jf=e=>"image"===e||"url"===e,ed=e=>"length"===e||"size"===e||"bg-size"===e,td=e=>"length"===e,nd=e=>"number"===e,rd=e=>"family-name"===e,od=e=>"shadow"===e,id=mf((Symbol.toStringTag,()=>{const e=yf("color"),t=yf("font"),n=yf("text"),r=yf("font-weight"),o=yf("tracking"),i=yf("leading"),a=yf("breakpoint"),s=yf("container"),l=yf("spacing"),c=yf("radius"),u=yf("shadow"),f=yf("inset-shadow"),d=yf("text-shadow"),p=yf("drop-shadow"),h=yf("blur"),m=yf("perspective"),y=yf("aspect"),g=yf("ease"),v=yf("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Yf,zf],w=()=>[Yf,zf,l],x=()=>[Of,"full","auto",...w()],M=()=>[Sf,"none","subgrid",Yf,zf],j=()=>["auto",{span:["full",Sf,Yf,zf]},Sf,Yf,zf],E=()=>[Sf,"auto",Yf,zf],O=()=>["auto","min","max","fr",Yf,zf],k=()=>["auto",...w()],S=()=>[Of,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],N=()=>[e,Yf,zf],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Gf,Ff,{position:[Yf,zf]}],A=()=>["auto","cover","contain",Qf,Rf,{size:[Yf,zf]}],D=()=>[Nf,Wf,Lf],C=()=>["","none","full",c,Yf,zf],I=()=>["",kf,Wf,Lf],P=()=>[kf,Nf,Gf,Ff],_=()=>["","none",h,Yf,zf],R=()=>["none",kf,Yf,zf],z=()=>["none",kf,Yf,zf],L=()=>[kf,Yf,zf],U=()=>[Of,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Tf],breakpoint:[Tf],color:[Af],container:[Tf],"drop-shadow":[Tf],ease:["in","out","in-out"],font:[_f],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Tf],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Tf],shadow:[Tf],spacing:["px",kf],text:[Tf],"text-shadow":[Tf],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Of,zf,Yf,y]}],container:["container"],columns:[{columns:[kf,zf,Yf,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[Sf,"auto",Yf,zf]}],basis:[{basis:[Of,"full","auto",s,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[kf,Of,"auto","initial","none",zf]}],grow:[{grow:["",kf,Yf,zf]}],shrink:[{shrink:["",kf,Yf,zf]}],order:[{order:[Sf,"first","last","none",Yf,zf]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:S()}],w:[{w:[s,"screen",...S()]}],"min-w":[{"min-w":[s,"screen","none",...S()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...S()]}],h:[{h:["screen","lh",...S()]}],"min-h":[{"min-h":["screen","lh","none",...S()]}],"max-h":[{"max-h":["screen","lh",...S()]}],"font-size":[{text:["base",n,Wf,Lf]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Yf,Uf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Nf,zf]}],"font-family":[{font:[Hf,zf,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Yf,zf]}],"line-clamp":[{"line-clamp":[kf,"none",Yf,Uf]}],leading:[{leading:[i,...w()]}],"list-image":[{"list-image":["none",Yf,zf]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Yf,zf]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[kf,"from-font","auto",Yf,Lf]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[kf,"auto",Yf,zf]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Yf,zf]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Yf,zf]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Sf,Yf,zf],radial:["",Yf,zf],conic:[Sf,Yf,zf]},$f,Bf]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:C()}],"rounded-s":[{"rounded-s":C()}],"rounded-e":[{"rounded-e":C()}],"rounded-t":[{"rounded-t":C()}],"rounded-r":[{"rounded-r":C()}],"rounded-b":[{"rounded-b":C()}],"rounded-l":[{"rounded-l":C()}],"rounded-ss":[{"rounded-ss":C()}],"rounded-se":[{"rounded-se":C()}],"rounded-ee":[{"rounded-ee":C()}],"rounded-es":[{"rounded-es":C()}],"rounded-tl":[{"rounded-tl":C()}],"rounded-tr":[{"rounded-tr":C()}],"rounded-br":[{"rounded-br":C()}],"rounded-bl":[{"rounded-bl":C()}],"border-w":[{border:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":I()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[kf,Yf,zf]}],"outline-w":[{outline:["",kf,Wf,Lf]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",u,qf,Vf]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",f,qf,Vf]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[kf,Lf]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",d,qf,Vf]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[kf,Yf,zf]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[kf]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[Yf,zf]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[kf]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Yf,zf]}],filter:[{filter:["","none",Yf,zf]}],blur:[{blur:_()}],brightness:[{brightness:[kf,Yf,zf]}],contrast:[{contrast:[kf,Yf,zf]}],"drop-shadow":[{"drop-shadow":["","none",p,qf,Vf]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",kf,Yf,zf]}],"hue-rotate":[{"hue-rotate":[kf,Yf,zf]}],invert:[{invert:["",kf,Yf,zf]}],saturate:[{saturate:[kf,Yf,zf]}],sepia:[{sepia:["",kf,Yf,zf]}],"backdrop-filter":[{"backdrop-filter":["","none",Yf,zf]}],"backdrop-blur":[{"backdrop-blur":_()}],"backdrop-brightness":[{"backdrop-brightness":[kf,Yf,zf]}],"backdrop-contrast":[{"backdrop-contrast":[kf,Yf,zf]}],"backdrop-grayscale":[{"backdrop-grayscale":["",kf,Yf,zf]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[kf,Yf,zf]}],"backdrop-invert":[{"backdrop-invert":["",kf,Yf,zf]}],"backdrop-opacity":[{"backdrop-opacity":[kf,Yf,zf]}],"backdrop-saturate":[{"backdrop-saturate":[kf,Yf,zf]}],"backdrop-sepia":[{"backdrop-sepia":["",kf,Yf,zf]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Yf,zf]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[kf,"initial",Yf,zf]}],ease:[{ease:["linear","initial",g,Yf,zf]}],delay:[{delay:[kf,Yf,zf]}],animate:[{animate:["none",v,Yf,zf]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Yf,zf]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:z()}],"scale-x":[{"scale-x":z()}],"scale-y":[{"scale-y":z()}],"scale-z":[{"scale-z":z()}],"scale-3d":["scale-3d"],skew:[{skew:L()}],"skew-x":[{"skew-x":L()}],"skew-y":[{"skew-y":L()}],transform:[{transform:[Yf,zf,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:U()}],"translate-x":[{"translate-x":U()}],"translate-y":[{"translate-y":U()}],"translate-z":[{"translate-z":U()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Yf,zf]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Yf,zf]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[kf,Wf,Lf,Uf]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}})),ad={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 sd(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ld={date:sd({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:sd({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:sd({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},cd={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ud(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const fd={ordinalNumber:(e,t)=>{const 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:ud({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ud({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:ud({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:ud({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:ud({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 dd(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e){for(let t=0;t<e.length;t++)if(e[t].test(a))return t}(s):function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(a))return t}(s);let c;return c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(a.length)}}}const pd={ordinalNumber:(hd={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(hd.matchPattern);if(!n)return null;const r=n[0],o=e.match(hd.parsePattern);if(!o)return null;let i=hd.valueCallback?hd.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(r.length)}}),era:dd({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:dd({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:e=>e+1}),month:dd({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:dd({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:dd({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"})};var hd;const md={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=ad[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:ld,formatRelative:(e,t,n,r)=>cd[e],localize:fd,match:pd,options:{weekStartsOn:0,firstWeekContainsDate:1}};let yd={};function gd(){return yd}Math.pow(10,8);const vd=6048e5,bd=Symbol.for("constructDateFrom");function wd(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&bd in e?e[bd](t):e instanceof Date?new e.constructor(t):new Date(t)}function xd(e,t){return wd(t||e,e)}function Md(e){const t=xd(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function jd(e,...t){const n=wd.bind(null,e||t.find((e=>"object"==typeof e)));return t.map(n)}function Ed(e,t){const n=xd(e,t?.in);return n.setHours(0,0,0,0),n}function Od(e,t,n){const[r,o]=jd(n?.in,e,t),i=Ed(r),a=Ed(o),s=+i-Md(i),l=+a-Md(a);return Math.round((s-l)/864e5)}function kd(e,t){const n=xd(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Sd(e,t){const n=gd(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=xd(e,t?.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function Nd(e,t){return Sd(e,{...t,weekStartsOn:1})}function Td(e,t){const n=xd(e,t?.in),r=n.getFullYear(),o=wd(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=Nd(o),a=wd(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=Nd(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Ad(e,t){const n=xd(e,t?.in),r=+Nd(n)-+function(e,t){const n=Td(e,t),r=wd(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Nd(r)}(n);return Math.round(r/vd)+1}function Dd(e,t){const n=xd(e,t?.in),r=n.getFullYear(),o=gd(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=wd(t?.in||e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=Sd(a,t),l=wd(t?.in||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const c=Sd(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function Cd(e,t){const n=xd(e,t?.in),r=+Sd(n,t)-+function(e,t){const n=gd(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Dd(e,t),i=wd(t?.in||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),Sd(i,t)}(n,t);return Math.round(r/vd)+1}function Id(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Pd={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Id("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):Id(n+1,2)},d:(e,t)=>Id(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>Id(e.getHours()%12||12,t.length),H:(e,t)=>Id(e.getHours(),t.length),m:(e,t)=>Id(e.getMinutes(),t.length),s:(e,t)=>Id(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return Id(Math.trunc(r*Math.pow(10,n-3)),t.length)}},_d={G:function(e,t,n){const r=e.getFullYear()>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){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return Pd.y(e,t)},Y:function(e,t,n,r){const o=Dd(e,r),i=o>0?o:1-o;return"YY"===t?Id(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):Id(i,t.length)},R:function(e,t){return Id(Td(e),t.length)},u:function(e,t){return Id(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Id(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){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Id(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){const r=e.getMonth();switch(t){case"M":case"MM":return Pd.M(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){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Id(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){const o=Cd(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):Id(o,t.length)},I:function(e,t,n){const r=Ad(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Id(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Pd.d(e,t)},D:function(e,t,n){const r=function(e,t){const n=xd(e,t?.in);return Od(n,kd(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Id(r,t.length)},E:function(e,t,n){const r=e.getDay();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){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Id(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Id(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return Id(o,t.length);case"io":return n.ordinalNumber(o,{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){const r=e.getHours()/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){const r=e.getHours();let o;switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return Pd.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Pd.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Id(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Id(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Pd.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Pd.s(e,t)},S:function(e,t){return Pd.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return zd(r);case"XXXX":case"XX":return Ld(r);default:return Ld(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return zd(r);case"xxxx":case"xx":return Ld(r);default:return Ld(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Rd(r,":");default:return"GMT"+Ld(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Rd(r,":");default:return"GMT"+Ld(r,":")}},t:function(e,t,n){return Id(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return Id(+e,t.length)}};function Rd(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+Id(i,2)}function zd(e,t){return e%60==0?(e>0?"-":"+")+Id(Math.abs(e)/60,2):Ld(e,t)}function Ld(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+Id(Math.trunc(r/60),2)+t+Id(r%60,2)}const Ud=(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"})}},Fd=(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"})}},Bd={p:Fd,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Ud(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",Ud(r,t)).replace("{{time}}",Fd(o,t))}},Vd=/^D+$/,Yd=/^Y+$/,Wd=["D","DD","YY","YYYY"];function Hd(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}const Gd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Qd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$d=/^'([^]*?)'?$/,qd=/''/g,Zd=/[a-zA-Z]/;function Xd(e,t,n){const r=gd(),o=n?.locale??r.locale??md,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=xd(e,n?.in);if(!function(e){return!(!Hd(e)&&"number"!=typeof e||isNaN(+xd(e)))}(s))throw new RangeError("Invalid time value");let l=t.match(Qd).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,Bd[t])(e,o.formatLong):e})).join("").match(Gd).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Kd(e)};if(_d[t])return{isToken:!0,value:e};if(t.match(Zd))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map((r=>{if(!r.isToken)return r.value;const i=r.value;return(!n?.useAdditionalWeekYearTokens&&function(e){return Yd.test(e)}(i)||!n?.useAdditionalDayOfYearTokens&&function(e){return Vd.test(e)}(i))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),Wd.includes(e))throw new RangeError(r)}(i,t,String(e)),(0,_d[i[0]])(s,i,o.localize,c)})).join("")}function Kd(e){const t=e.match($d);return t?t[1].replace(qd,"'"):e}function Jd(e){return Jd="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},Jd(e)}function ep(){ep=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof d?n:d,a=Object.create(i.prototype);return l(a,"_invoke",function(t,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=x(s,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new E(o||[])),!0),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f={};function d(){}function p(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(O([])));g&&g!==n&&r.call(g,i)&&(m=g);var v=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==Jd(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[t.r]=a.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function M(e){this.tryEntries.push(e)}function j(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function E(e){this.tryEntries=[[-1]],e.forEach(M,this),this.reset(!0)}function O(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(Jd(t)+" is not iterable")}return p.prototype=h,l(v,"constructor",h),l(h,"constructor",p),p.displayName=l(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),l(v,s,"Generator"),l(v,i,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){a.type="throw",a.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,r(l),!0;if(s<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:O(t),r:n,n:r},"next"===this.method&&(this.arg=e),f}},t}function tp(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function np(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){tp(i,r,o,a,s,"next",e)}function s(e){tp(i,r,o,a,s,"throw",e)}a(void 0)}))}}window.wp.hooks,window.wp.blocks;var rp=function(){var e=np(ep().mark((function e(){var t,n,r=arguments;return ep().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:"default",e.next=3,du()({path:"/sureforms/v1/initiate-auth?source=".concat(t),method:"GET"});case 3:null!=(n=e.sent)&&n.success&&(window.location.href=n.data);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),op=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utm_medium";try{var r=new URL(e);return r.searchParams.set(n,t),"utm_medium"===n&&(r.searchParams.get("utm_source")||r.searchParams.set("utm_source","sureforms_plugin"),r.searchParams.get("utm_campaign")||r.searchParams.set("utm_campaign","core_plugin")),r.toString()}catch(t){return console.error("Invalid URL:",t),e}},ip=function(){return id(wt.apply(void 0,arguments))},ap=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||isNaN(new Date(e).getTime()))return(0,je.__)("No Date","sureforms");var n={day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0},r=Object.keys(n).reduce((function(e,r){return!0===t[r]?e[r]=n[r]:!1===t[r]||void 0!==t[r]&&(e[r]=t[r]),e}),{});return new Intl.DateTimeFormat("en-US",r).format(new Date(e))},sp=function(){var e=new Date,t=new Date;t.setDate(e.getDate()-30);var n=ap(t,"MM/dd/yyyy"),r=ap(e,"MM/dd/yyyy");return"".concat(n," - ").concat(r)},lp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd";try{if(!e||isNaN(new Date(e).getTime()))throw new Error((0,je.__)("Invalid Date","sureforms"));return Xd(new Date(e),t)}catch(e){return(0,je.__)("No Date","sureforms")}},cp=function(e){return e.from?e.to?"".concat(lp(e.from,"MM/dd/yyyy")," - ").concat(lp(e.to,"MM/dd/yyyy")):"".concat(lp(e.from,"MM/dd/yyyy")):""},up=function(e){var t=e.from,n=e.to;if(!t||!n){var r=new Date,o=new Date;return o.setDate(r.getDate()-30),{from:o,to:r}}return{from:new Date(t),to:new Date(n)}};void 0===window._srfmSlugAutoLabels&&(window._srfmSlugAutoLabels=new Map),window._srfmSlugAutoLabels;var fp="sureforms_recommended_plugin_activate",dp="sureforms_recommended_plugin_install",pp=function(e){return{Installed:srfm_admin.plugin_activate_text,Install:(0,je.__)("Install & Activate","sureforms"),Activated:srfm_admin.plugin_activated_text}[e.status]||e.status},hp=function(e){return"Installed"===e?fp:"Activated"===e?"":dp},mp=function(){var e=np(ep().mark((function e(t){var n,r,o,i,a;return ep().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.url,r=t.formData,o=t.successCallback,i=t.errorCallback,e.prev=1,e.next=4,du()({url:n,method:"POST",body:r});case 4:(a=e.sent).success?o(a):i(a),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("API Error:",e.t0),pn.error((0,je.__)("Unable to complete action. Please try again.","sureforms"),{duration:5e3});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}();function yp(e){var t,n=e.plugin,r=e.event,o=new window.FormData;o.append("action",fp),o.append("security",null!==(t=srfm_admin.sfPluginManagerNonce)&&void 0!==t?t:srfm_admin.sf_plugin_manager_nonce),o.append("init",n.path),o.append("slug",n.slug),r.target.innerText=srfm_admin.plugin_activating_text,mp({url:srfm_admin.ajax_url,formData:o,successCallback:function(){var e;if("sureforms_menu"===(null===(e=srfm_admin)||void 0===e?void 0:e.current_screen_id)){var t,n,o=null===(t=(n=r.target).closest)||void 0===t?void 0:t.call(n,"button");o&&(o.style.backgroundColor="#F0FDF4")}r.target.innerText=srfm_admin.plugin_activated_text},errorCallback:function(){pn.error((0,je.__)("Plugin activation failed, Please try again later.","sureforms"),{duration:5e3}),r.target.innerText=srfm_admin.plugin_activate_text}})}var gp=function(){var e=np(ep().mark((function e(t){var n,r,o,i,a,s=arguments;return ep().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=s.length>1&&void 0!==s[1]?s[1]:function(){},"Activated"!==(null==t?void 0:t.status)){e.next=3;break}return e.abrupt("return");case 3:if(o=function(){var e=np(ep().mark((function e(t){var n,r,o;return ep().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,du()({url:srfm_admin.ajax_url,method:"POST",body:t});case 2:if(null!=(n=e.sent)&&n.success){e.next=5;break}throw new Error((null==n||null===(r=n.data)||void 0===r?void 0:r.errorMessage)||(null==n||null===(o=n.data)||void 0===o?void 0:o.message)||"");case 5:return e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),hp(null==t?void 0:t.status)!==dp){e.next=12;break}return r("installing"),(i=new window.FormData).append("action",dp),i.append("_ajax_nonce",srfm_admin.plugin_installer_nonce),i.append("slug",t.slug),e.next=12,o(i);case 12:return r("activating"),(a=new window.FormData).append("action",fp),a.append("security",null!==(n=srfm_admin.sfPluginManagerNonce)&&void 0!==n?n:srfm_admin.sf_plugin_manager_nonce),a.append("init",t.path),a.append("slug",t.slug),e.next=20,o(a);case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();const vp=function(){var e,t,n=null===(e=srfm_admin)||void 0===e?void 0:e.rotating_plugin_banner,r=null===(t=srfm_admin)||void 0===t?void 0:t.is_rtl,o=r?"bottom-left":"bottom-right";return n?React.createElement(Yt,{className:"w-full bg-background-primary border-0.5 border-solid rounded-xl border-border-subtle p-3 gap-2 shadow-sm-blur-1",direction:"column"},React.createElement(uu,{position:o,design:"stack",theme:"light",autoDismiss:!0,dismissAfter:5e3,className:ip("z-[999999]",r?"[&>li>div>div.absolute]:right-auto [&>li>div>div.absolute]:left-[0.75rem!important]":"")}),React.createElement(Yt.Item,null,React.createElement(Gt,{size:"sm",className:"font-semibold p-1"},(0,je.__)("Supercharge Your Workflow","sureforms"))),React.createElement(Yt.Item,null,React.createElement(Yt,{containerType:"grid",className:"gap-1 p-1 grid-cols-2 md:grid-cols-1 xl:grid-cols-1 bg-background-secondary rounded-lg p-1 gap-1"},React.createElement(Yt.Item,{className:"flex shadow-sm-blur-2 rounded-md bg-background-primary flex-1 min-w-[calc(50%-0.5rem)]"},React.createElement(Yt,{direction:"column",className:"gap-1 p-2"},React.createElement(Yt.Item,{className:"flex flex-col gap-1 pb-1"},React.createElement(Yt,{align:"start",className:"gap-1.5 p-1"},React.createElement("img",{className:"w-6 h-6",src:n.logo,alt:n.title}),React.createElement(Gt,{size:"md"},n.title)),React.createElement(Yt,{className:"flex flex-col gap-0.5 text-[#141338] p-1"},React.createElement("span",{className:"font-semibold text-base leading-6"},n.singleLineDescription),React.createElement(Gt,{size:"sm",variant:"help",className:"font-normal gap-0.5"},n.subtitle))),React.createElement(Yt.Item,{className:"flex gap-0.5 pt-1 px-1 mt-auto pb-1"},React.createElement(Qt,{className:ip("w-fit focus:[box-shadow:none]","Activated"===n.status&&"bg-badge-background-green hover:bg-badge-background-green"),variant:"outline",onClick:function(e){return function(e){var t=e.plugin,n=e.event,r=hp(t.status);if(r){var o=new window.FormData;r===dp?(o.append("action",dp),o.append("_ajax_nonce",srfm_admin.plugin_installer_nonce),o.append("slug",t.slug),n.target.innerText=srfm_admin.plugin_installing_text,mp({url:srfm_admin.ajax_url,formData:o,successCallback:function(){n.target.innerText=srfm_admin.plugin_installed_text,yp({plugin:t,event:n})},errorCallback:function(){n.target.innerText=(0,je.__)("Install","sureforms"),alert((0,je.__)("Plugin Installation failed, Please try again later.","sureforms"))}})):r===fp&&yp({plugin:t,event:n})}}({plugin:n,event:e})},size:"xs"},pp(n)))))))):null},bp=Kt("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),wp=Kt("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),xp=Kt("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Mp=Kt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),jp=function(e){if("string"==typeof e&&""!==e){var t=e.replace(/^[\u0000-\u0020\u007f]+|[\u0000-\u0020\u007f]+$/g,"").replace(/[\t\n\r]/g,"");if(""!==t&&!/^[/\\]{2}/.test(t))return/^[a-z][a-z0-9+.-]*:/i.test(t)?/^(?:https?|mailto):/i.test(t)?t:void 0:t}};function Ep(e){return Ep="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},Ep(e)}function Op(){return Op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Op.apply(null,arguments)}function kp(e){return function(e){if(Array.isArray(e))return Cp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Dp(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Np(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sp(Object(n),!0).forEach((function(t){Tp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tp(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ep(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ep(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ep(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ap(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Dp(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dp(e,t){if(e){if("string"==typeof e)return Cp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cp(e,t):void 0}}function Cp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ip={error:React.createElement(bp,{className:"size-4 text-badge-color-red shrink-0"}),warning:React.createElement(bp,{className:"size-4 text-amber-500 shrink-0"}),success:React.createElement(wp,{className:"size-4 text-badge-color-green shrink-0"})};const Pp=function(){var e=Ap((0,i.useState)([]),2),t=e[0],n=e[1],r=Ap((0,i.useState)(!0),2),o=r[0],a=r[1],s=(0,i.useMemo)((function(){var e;return("undefined"==typeof srfm_admin?[]:(null===(e=srfm_admin)||void 0===e?void 0:e.action_items)||[]).filter((function(e){return!t.includes(e.id)}))}),[t]);if(!s.length)return null;var l=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return fetch((null===(n=srfm_admin)||void 0===n?void 0:n.ajax_url)||"",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(Np({action:e,nonce:t||""},r))}).catch((function(){}))},c=function(e){return function(){var t;l("srfm_dismiss_action_item",null===(t=srfm_admin)||void 0===t?void 0:t.dismiss_action_item_nonce,{item_id:e.id}),n((function(t){return[].concat(kp(t),[e.id])}))}},u=function(e){return[].concat(kp(e.guide_label&&e.guide_url?[{name:e.guide_action,label:e.guide_label,url:jp(e.guide_url),external:!0}]:[]),kp(e.cta_label&&e.cta_url?[{name:e.cta_action,label:e.cta_label,url:jp(e.cta_url),external:!/^mailto:/i.test(e.cta_url)}]:[]))},f=function(e,t){return function(){var n;return l("srfm_notice_response",null===(n=srfm_admin)||void 0===n?void 0:n.notice_response_nonce,{notice_id:e.id,button:t})}};return React.createElement("div",{className:"w-full bg-background-primary border-0.5 border-solid rounded-xl border-border-subtle p-3 gap-2 shadow-sm-blur-1"},React.createElement("div",{className:"flex items-center justify-between p-1"},React.createElement(Gt,{size:"sm",className:"font-semibold"},(0,je.__)("Form Checks","sureforms")),React.createElement("button",{type:"button",onClick:function(){return a((function(e){return!e}))},"aria-expanded":o,"aria-label":o?(0,je.__)("Collapse form checks","sureforms"):(0,je.__)("Expand form checks","sureforms"),className:"flex items-center bg-transparent border-0 p-0.5 cursor-pointer text-icon-secondary hover:text-icon-primary"},o?React.createElement(xp,{className:"size-4"}):React.createElement(Mp,{className:"size-4"}))),o&&React.createElement("div",{className:"flex flex-col bg-background-secondary gap-1 p-1 rounded-lg"},s.map((function(e){var t;return React.createElement("div",{key:e.id,className:"relative flex flex-col gap-1 p-3 rounded-md bg-background-primary shadow-sm-blur-1"},React.createElement("div",{className:"w-full flex items-start gap-2"},null!==(t=Ip[e.status])&&void 0!==t?t:Ip.warning,React.createElement("div",{className:"flex-1"},React.createElement(Gt,{size:"sm",className:"font-medium block"},e.title),!!e.message&&React.createElement(Gt,{size:"xs",variant:"help",className:"font-normal block pt-0.5"},e.message)),!!e.dismissible&&React.createElement(Qt,{variant:"link",size:"xs",onClick:c(e),className:"font-medium no-underline hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-1 focus:[box-shadow:none] [&>span]:px-0 text-text-secondary shrink-0"},(0,je.__)("Ignore","sureforms"))),!!u(e).length&&React.createElement("div",{className:"pl-6 flex items-center gap-4"},u(e).map((function(t,n){return React.createElement(Qt,Op({key:t.name||"".concat(e.id,"-").concat(n),variant:"link",size:"xs",tag:"a",href:t.url},t.external&&{target:"_blank",rel:"noopener noreferrer"},t.name&&{onClick:f(e,t.name)},{className:"font-medium no-underline hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-1 focus:[box-shadow:none] [&>span]:px-0".concat(n>0?" text-text-secondary":"")}),t.label)}))))}))))};var _p=["className"];function Rp(){return Rp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rp.apply(null,arguments)}const zp=function(e){var t,n=e.className,r=void 0===n?"block":n,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,_p);return React.createElement("a",{href:null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_dashboard_url},React.createElement("svg",Rp({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r},o),React.createElement("path",{d:"M24 0H0V24H24V0Z",fill:"#D54407"}),React.createElement("path",{d:"M6.8501 5.14209H17.1358V8.57068H8.56439L6.8501 10.285V8.57068V5.14209Z",fill:"white"}),React.createElement("path",{d:"M6.8501 10.2866H15.4215V13.7152H8.56439L6.8501 15.4294V13.7152V10.2866Z",fill:"white"}),React.createElement("path",{d:"M6.8501 15.4272H11.9929V18.8558H6.8501V15.4272Z",fill:"white"})))};function Lp(e){return Lp="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},Lp(e)}var Up=["selector"];function Fp(){Fp=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof d?n:d,a=Object.create(i.prototype);return l(a,"_invoke",function(t,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=x(s,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new E(o||[])),!0),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f={};function d(){}function p(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(O([])));g&&g!==n&&r.call(g,i)&&(m=g);var v=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==Lp(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[t.r]=a.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function M(e){this.tryEntries.push(e)}function j(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function E(e){this.tryEntries=[[-1]],e.forEach(M,this),this.reset(!0)}function O(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(Lp(t)+" is not iterable")}return p.prototype=h,l(v,"constructor",h),l(h,"constructor",p),p.displayName=l(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),l(v,s,"Generator"),l(v,i,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){a.type="throw",a.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,r(l),!0;if(s<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:O(t),r:n,n:r},"next"===this.method&&(this.arg=e),f}},t}function Bp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Vp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yp(e,t,n){return(t=function(e){var t=function(e){if("object"!=Lp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wp(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Hp(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Wp(i,r,o,a,s,"next",e)}function s(e){Wp(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Gp=function(){return Gp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gp.apply(this,arguments)},Qp=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},$p=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},qp={rssFeedURL:"",selector:"",uniqueKey:"",loaderIcon:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">\n\t<circle cx="50" cy="50" fill="none" stroke="#9f9f9f" stroke-width="10" r="35" stroke-dasharray="164.93361431346415 56.97787143782138">\n\t\t<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"></animateTransform>\n\t</circle>\n\t</svg>',viewAll:{link:"",label:"View All"},triggerButton:{label:"",icon:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.61703 13.1998C8.04294 13.1503 7.46192 13.125 6.875 13.125H6.25C4.17893 13.125 2.5 11.4461 2.5 9.375C2.5 7.30393 4.17893 5.625 6.25 5.625H6.875C7.46192 5.625 8.04294 5.59972 8.61703 5.55018M8.61703 13.1998C8.82774 14.0012 9.1031 14.7764 9.43719 15.5195C9.64341 15.9782 9.48685 16.5273 9.05134 16.7787L8.50441 17.0945C8.04492 17.3598 7.45466 17.1921 7.23201 16.7106C6.70983 15.5811 6.30451 14.3866 6.03155 13.1425M8.61703 13.1998C8.29598 11.9787 8.125 10.6968 8.125 9.375C8.125 8.05316 8.29598 6.77125 8.61703 5.55018M8.61703 13.1998C11.25 13.427 13.737 14.1643 15.9789 15.3124M8.61703 5.55018C11.25 5.323 13.737 4.58569 15.9789 3.43757M15.9789 3.43757C15.8808 3.12162 15.7751 2.80903 15.662 2.5M15.9789 3.43757C16.4247 4.87356 16.7131 6.37885 16.8238 7.93326M15.9789 15.3124C15.8808 15.6284 15.7751 15.941 15.662 16.25M15.9789 15.3124C16.4247 13.8764 16.7131 12.3711 16.8238 10.8167M16.8238 7.93326C17.237 8.2772 17.5 8.79539 17.5 9.375C17.5 9.95461 17.237 10.4728 16.8238 10.8167M16.8238 7.93326C16.8578 8.40942 16.875 8.8902 16.875 9.375C16.875 9.8598 16.8578 10.3406 16.8238 10.8167" stroke="#94A3B8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',beforeBtn:"",afterBtn:"",className:"",onClick:function(){}},notification:{setLastPostUnixTime:null,getLastPostUnixTime:null},flyout:{title:"What's New?",innerContent:{titleLink:!0,additionalClasses:[]},excerpt:{wordLimit:500,moreSymbol:"&hellip;",readMore:{label:"Read More",className:""}},className:"",closeOnEsc:!0,closeOnOverlayClick:!0,closeBtnIcon:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 18L18 6M6 6L18 18" stroke="#94A3B8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',formatDate:null,onOpen:function(){},onClose:function(){},onReady:function(){}}},Zp=function(){function e(e){this.rssFeedURLs=[],this.lastPostUnixTime=0,this.multiLastPostUnixTime={},this.notificationsCount=0,this.multiNotificationCount={},this.hasNewFeeds=!1,this.multiHasNewFeeds={},this.validateArgs(e),this.parseDefaults(e),this.setElement(),this.getElement()?(this.setID(),this.setRSSFeedURLs(),Xp.setInstanceID(this.getID()),this.RSS_Fetch_Instance=new Kp(this),this.RSS_View_Instance=new Jp(this),this.setNotificationsCount(),this.setTriggers()):console.warn("WNR: Cannot find element with",this.getArgs().selector)}return e.prototype.validateArgs=function(e){["rssFeedURL","selector","uniqueKey"].forEach((function(t){if(!e[t])throw new Error("".concat(t," is a required argument. It cannot be empty or undefined."));if("rssFeedURL"===t){var n=e[t];Array.isArray(n)&&n.forEach((function(e){if(!(null==e?void 0:e.key))throw new Error('The parameter "key" is required for "'.concat(t,'" parameter in multi-feed mode.'));if(e.key.includes(" "))throw new Error('The parameter "key" cannot have spaces for "'.concat(t,'" parameter in multi-feed mode. Ref Key: "').concat(e.key,'"'))}))}}))},e.prototype.parseDefaults=function(e){var t,n;this.args=Gp(Gp(Gp({},qp),e),{viewAll:Gp(Gp({},qp.viewAll),null==e?void 0:e.viewAll),triggerButton:Gp(Gp({},qp.triggerButton),null==e?void 0:e.triggerButton),flyout:Gp(Gp(Gp({},qp.flyout),null==e?void 0:e.flyout),{innerContent:Gp(Gp({},qp.flyout.innerContent),null===(t=null==e?void 0:e.flyout)||void 0===t?void 0:t.innerContent),excerpt:Gp(Gp({},qp.flyout.excerpt),null===(n=null==e?void 0:e.flyout)||void 0===n?void 0:n.excerpt)})})},e.prototype.getArgs=function(){return this.args},e.prototype.setElement=function(){this.element=document.querySelector(this.args.selector)},e.prototype.getElement=function(){return this.element},e.prototype.setID=function(){var e=[this.getArgs().selector,this.getArgs().uniqueKey],t=this.getArgs().rssFeedURL;Array.isArray(t)?t.forEach((function(t){e.push(t.key)})):e.push(t),this.ID=btoa(e.join("-")).slice(-12).replace(/=/g,"")+"-"+this.getArgs().uniqueKey},e.prototype.isMultiFeedRSS=function(){return"string"!=typeof this.getArgs().rssFeedURL},e.prototype.setRSSFeedURLs=function(){var e=this,t=this.getArgs().rssFeedURL;this.isMultiFeedRSS()?Array.isArray(t)&&t.forEach((function(t){e.rssFeedURLs.push(t)})):this.rssFeedURLs.push({key:null,label:"",url:t.toString()})},e.prototype.getRSSFeedURLs=function(){return this.rssFeedURLs},e.prototype.getID=function(){return this.ID},e.prototype.setNotificationsCount=function(){return Qp(this,void 0,void 0,(function(){var e=this;return $p(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.getRSSFeedURLs().map((function(t){return Qp(e,[t],void 0,(function(e){var t,n=e.key;return $p(this,(function(e){switch(e.label){case 0:return t=0,"function"!=typeof this.getArgs().notification.getLastPostUnixTime?[3,2]:[4,this.getArgs().notification.getLastPostUnixTime(n,this)];case 1:return t=e.sent(),[3,3];case 2:t=Xp.getLastPostUnixTime(n),e.label=3;case 3:return this.isMultiFeedRSS()?this.multiLastPostUnixTime[n]=+t:this.lastPostUnixTime=+t,[2]}}))}))})))];case 1:return t.sent(),[4,this.RSS_Fetch_Instance.fetchData().then((function(t){Object.keys(t).forEach((function(n){var r=t[n];if(r.length){e.multiNotificationCount[n]=0;var o=+r[0].date,i=e.isMultiFeedRSS()?e.multiLastPostUnixTime[n]:e.lastPostUnixTime;o>i&&(r.forEach((function(t){t.date>i&&(e.isMultiFeedRSS()&&(e.multiNotificationCount[n]++,e.multiHasNewFeeds[n]=!0),e.notificationsCount++,e.hasNewFeeds=!0)})),e.RSS_View_Instance.setNotification(e.notificationsCount))}}))})).catch(console.error)];case 2:return t.sent(),[2]}}))}))},e.prototype.getNotificationsCount=function(){return this.notificationsCount},e.prototype.setTriggers=function(){var e=this,t=document.getElementById(this.RSS_View_Instance.getTriggerButtonID()),n=document.getElementById(this.RSS_View_Instance.getFlyoutID()),r=n.querySelector(".whats-new-rss-flyout-inner-content"),o=document.getElementById(this.RSS_View_Instance.getFlyoutCloseBtnID()),i=document.getElementById(this.RSS_View_Instance.getFlyoutMultiFeedNavID()),a=function(t){e.RSS_Fetch_Instance.fetchData().then((function(o){r.innerHTML="";var i=o[t];if(i.length){var a=+i[0].date,s=e.isMultiFeedRSS()?e.multiLastPostUnixTime[t]:e.lastPostUnixTime;i.forEach((function(n){var o=!!s&&n.date>s,i=e.getArgs().flyout.innerContent.titleLink?'<a href="'.concat(n.postLink,'" target="_blank">\n\t\t\t\t\t\t\t\t<h2>').concat(n.title,"</h2>\n\t\t\t\t\t\t\t</a>"):"<h2>".concat(n.title,"</h2>"),a='\n\t\t\t\t\t\t\t\t<div class="rss-content-header">\n\t\t\t\t\t\t\t\t\t<p>'.concat(e.RSS_View_Instance.formatDate(new Date(n.date)),"</p>\n\t\t\t\t\t\t\t\t\t").concat(i,"\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t").concat(e.RSS_View_Instance.createExcerpt(n.description,n.postLink,e.getArgs().flyout.excerpt),"\n\t\t\t\t\t\t\t\t").concat(e.RSS_View_Instance.listChildrenPosts(n.children),"\n\t\t\t\t\t\t\t"),l=e.getArgs().flyout.innerContent.additionalClasses;t&&l.push("`inner-content-item-feed-key-${key}`"),r.innerHTML+=e.RSS_View_Instance.innerContentWrapper(a,o,l.join(" "))})),e.getArgs().viewAll.link&&(r.innerHTML+=e.RSS_View_Instance.innerContentWrapper('\n\t\t\t\t\t\t\t<a href="'.concat(e.getArgs().viewAll.link,'" class="button view-all">').concat(e.getArgs().viewAll.label,"</a>\n\t\t\t\t\t\t\t"))),e.RSS_View_Instance.setIsLoading(!1),n.classList.add("ready"),e.getArgs().flyout.onReady(e),n.focus(),e.isMultiFeedRSS()||(e.lastPostUnixTime=a,e.hasNewFeeds&&("function"==typeof e.getArgs().notification.setLastPostUnixTime?e.getArgs().notification.setLastPostUnixTime(a,t):Xp.setLastPostUnixTime(a,t)))}})).catch(console.error)};t.addEventListener("click",(function(t){if(t.preventDefault(),e.getArgs().triggerButton.onClick(e),e.RSS_View_Instance.setIsLoading(!0),n.classList.remove("closed"),n.classList.add("open"),n.removeAttribute("style"),document.body.classList.add("whats-new-rss-is-active"),e.getArgs().flyout.onOpen(e),e.isMultiFeedRSS()){var r=i.querySelectorAll("button");r.forEach((function(t){e.RSS_View_Instance.setMultiFeedTabNotificationCount(t.dataset.feedKey,e.multiNotificationCount[t.dataset.feedKey]),t.addEventListener("click",(function(n){n.preventDefault();var o=t.dataset.feedKey;e.multiNotificationCount[o]=0,e.RSS_Fetch_Instance.fetchData().then((function(t){var n=t[o][0].date;e.multiLastPostUnixTime[o]=n,!0===e.multiHasNewFeeds[o]&&("function"==typeof e.getArgs().notification.setLastPostUnixTime?e.getArgs().notification.setLastPostUnixTime(n,o):Xp.setLastPostUnixTime(n,o)),e.multiHasNewFeeds[o]=!1})).catch(console.error),r.forEach((function(e){e.classList.remove("selected");var t=e.dataset.feedKey,n=".inner-content-item-feed-key-".concat(t);document.querySelectorAll(n).forEach((function(e){o!==t?e.classList.add("hidden"):e.classList.remove("hidden")}))})),t.classList.add("selected"),a(o)}))})),r[0].click()}else a(null)}));var s=function(){n.classList.add("closed"),n.classList.remove("open"),n.classList.remove("ready"),document.body.classList.remove("whats-new-rss-is-active"),e.isMultiFeedRSS()?e.RSS_View_Instance.setNotification(Object.values(e.multiNotificationCount).filter(Boolean).length):(e.hasNewFeeds=!1,e.RSS_View_Instance.setNotification(!1)),r.innerHTML="",e.getArgs().flyout.onClose(e),t.focus()};this.getArgs().flyout.closeOnEsc&&document.addEventListener("keydown",(function(e){"Escape"===e.key&&n.classList.contains("open")&&s()})),this.getArgs().flyout.closeOnOverlayClick&&n.querySelector(".whats-new-rss-flyout-overlay").addEventListener("click",s),o.addEventListener("click",s)},e}(),Xp=function(){function e(){}return e.setInstanceID=function(e){this.instanceID||(this.instanceID=e)},e.prefixer=function(e,t){if(void 0===t&&(t=""),!this.instanceID)throw new Error("Instance ID not set.");return t?"".concat(this.keys[e],"-").concat(this.instanceID,"-").concat(t):"".concat(this.keys[e],"-").concat(this.instanceID)},e._setDataExpiry=function(e){void 0===e&&(e="");var t=(new Date).getTime()+864e5;sessionStorage.setItem(this.prefixer("SESSION_DATA_EXPIRY",e),JSON.stringify(t))},e._isDataExpired=function(e){void 0===e&&(e="");var t=this.prefixer("SESSION_DATA_EXPIRY",e),n=window.sessionStorage.getItem(t);if(!n)return!0;var r=JSON.parse(n);return(new Date).getTime()>r&&(window.sessionStorage.removeItem(t),!0)},e.setSessionData=function(e,t){return void 0===t&&(t=""),this._setDataExpiry(t),window.sessionStorage.setItem(this.prefixer("SESSION",t),e)},e.getSessionData=function(e){return void 0===e&&(e=""),this._isDataExpired(e)?"{}":window.sessionStorage.getItem(this.prefixer("SESSION",e))},e.setLastPostUnixTime=function(e,t){return void 0===t&&(t=""),window.localStorage.setItem(this.prefixer("LAST_LATEST_POST",t),e.toString())},e.getLastPostUnixTime=function(e){return void 0===e&&(e=""),+window.localStorage.getItem(this.prefixer("LAST_LATEST_POST",e))},e.keys={SESSION_DATA_EXPIRY:"whats-new-cache-expiry",LAST_LATEST_POST:"whats-new-last-unixtime",SESSION:"whats-new-cache"},e}(),Kp=function(){function e(e){var t=this;this.data={},this.RSS=e,this.RSS.getRSSFeedURLs().forEach((function(e){var n=JSON.parse(Xp.getSessionData(e.key));n&&n.length&&(t.data[e.key]=n)}))}return e.prototype.fetchData=function(){return Qp(this,void 0,void 0,(function(){var e,t=this;return $p(this,(function(n){switch(n.label){case 0:return Object.keys(this.data).length?[2,this.data]:(e=this.RSS.getRSSFeedURLs().map((function(e){return Qp(t,void 0,void 0,(function(){var t,n,r=this;return $p(this,(function(o){switch(o.label){case 0:return this.data[e.key]=[],[4,fetch(e.url)];case 1:return[4,o.sent().text()];case 2:return t=(t=o.sent()).replace(/&raquo;/g,"&amp;raquo;"),n=new DOMParser,n.parseFromString(t,"text/xml").querySelectorAll("item").forEach((function(t){var n,o=t.querySelector("title").textContent,i=t.querySelector("link").textContent,a=t.querySelector("content\\:encoded, encoded"),s=a?a.textContent:"",l=t.querySelector("pubDate").innerHTML;r.data[e.key].push({title:o,date:l?+new Date(l):null,postLink:i,description:s.replace(/<a\b((?:(?!target=)[^>])*)>/g,'<a$1 target="_blank">').replace(/<p>\s*<\/p>/g,""),children:JSON.parse((null===(n=t.querySelector("children"))||void 0===n?void 0:n.innerHTML)||"{}")})})),Xp.setSessionData(JSON.stringify(this.data[e.key]),e.key),[2]}}))}))})),[4,Promise.all(e)]);case 1:return n.sent(),[2,this.data]}}))}))},e}(),Jp=function(){function e(e){this.RSS=e,this.createTriggerButton(),this.createFlyOut()}return e.prototype.getTriggerButtonID=function(){return"whats-new-rss-btn-".concat(this.RSS.getID())},e.prototype.getFlyoutID=function(){return"whats-new-rss-flyout-".concat(this.RSS.getID())},e.prototype.getFlyoutCloseBtnID=function(){return"whats-new-rss-flyout-close-".concat(this.RSS.getID())},e.prototype.getFlyoutMultiFeedNavID=function(){return"whats-new-rss-flyout-multi-feed-nav-".concat(this.RSS.getID())},e.prototype.setIsLoading=function(e){void 0===e&&(e=!1);var t=document.getElementById(this.getFlyoutID());e?t.classList.add("is-loading"):t.classList.remove("is-loading")},e.prototype.setNotification=function(e){var t=document.querySelector("#".concat(this.getTriggerButtonID()," .whats-new-rss-notification-badge"));e?(this.RSS.isMultiFeedRSS()?(t.innerHTML="",t.classList.add("is-multi-feed")):t.innerHTML=e>9?"9+":e.toString(),t.classList.remove("hide")):t.classList.add("hide")},e.prototype.createTriggerButton=function(){var e,t=this.RSS.getArgs().triggerButton.label;e=t?"\n\t\t\t".concat(this.RSS.getArgs().triggerButton.beforeBtn,'\n\t\t\t<a class="whats-new-rss-trigger-button has-label" id="').concat(this.getTriggerButtonID(),'">\n\t\t\t\t<div class="icon-badge">\n\t\t\t\t\t').concat(this.RSS.getArgs().triggerButton.icon,'\n\t\t\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t\t\t</div>\n\t\t\t\t').concat(t,"\n\t\t\t</a>\n\t\t\t").concat(this.RSS.getArgs().triggerButton.afterBtn,"\n\t\t\t"):"\n\t\t\t".concat(this.RSS.getArgs().triggerButton.beforeBtn,'\n\t\t\t<a class="whats-new-rss-trigger-button" id="').concat(this.getTriggerButtonID(),'">\n\t\t\t\t').concat(this.RSS.getArgs().triggerButton.icon,'\n\t\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t\t</a>\n\t\t\t').concat(this.RSS.getArgs().triggerButton.afterBtn,"\n\t\t\t"),this.RSS.getElement().innerHTML+=e},e.prototype.createFlyOut=function(){var e=["whats-new-rss-flyout","closed"];this.RSS.getArgs().flyout.className&&e.push(this.RSS.getArgs().flyout.className);var t=[];this.RSS.isMultiFeedRSS()&&(t.push('<nav id="'.concat(this.getFlyoutMultiFeedNavID(),'" class="whats-new-rss-multi-feed-nav">')),this.RSS.getRSSFeedURLs().forEach((function(e){t.push('<button type="button" data-feed-key="'.concat(e.key,'">\n\t\t\t\t\t\t').concat(e.label,'\n\t\t\t\t\t\t<div class="new-notification-count"></div>\n\t\t\t\t\t</button>\n\t\t\t\t\t'))})),t.push("</nav>"));var n=document.createElement("div");n.setAttribute("id",this.getFlyoutID()),n.setAttribute("class",e.join(" ")),n.setAttribute("role","dialog"),n.setAttribute("style","visibility: hidden;"),n.innerHTML='\n\t\t<div class="whats-new-rss-flyout-contents">\n\n\t\t\t<div class="whats-new-rss-flyout-inner-header">\n\n\t\t\t\t<div class="whats-new-rss-flyout-inner-header__title-icon-wrapper">\n\t\t\t\t\t<h3>'.concat(this.RSS.getArgs().flyout.title,'</h3>\n\n\t\t\t\t\t<span class="whats-new-rss-flyout-inner-header__loading-icon">\n\t\t\t\t\t').concat(this.RSS.getArgs().loaderIcon,'\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\n\t\t\t\t<button type="button" id="').concat(this.getFlyoutCloseBtnID(),'">').concat(this.RSS.getArgs().flyout.closeBtnIcon,"</button>\n\t\t\t</div>\n\n\t\t\t").concat(t.join(""),'\n\n\t\t\t<div class="whats-new-rss-flyout-inner-content">\n\t\t\t\t<div class="skeleton-container">\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t</div>\n\n\t\t<div class="whats-new-rss-flyout-overlay"></div>\n\t\t'),document.body.appendChild(n)},e.prototype.setMultiFeedTabNotificationCount=function(e,t){void 0===t&&(t=0);var n=document.querySelector("#".concat(this.getFlyoutMultiFeedNavID(),' button[data-feed-key="').concat(e,'"]'));if(n){var r=n.querySelector(".new-notification-count");if(t){var o=t>9?"9+":t;r.innerHTML=o.toString()}else r.innerHTML=""}},e.prototype.innerContentWrapper=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n="");var r=["whats-new-rss-flyout-inner-content-item"];return t&&r.push("rss-new-post"),n&&r.push(n),'\n\t\t<div class="'.concat(r.join(" "),'">\n\t\t\t').concat(t?'<small class="new-post-badge">New ✨</small>':"","\n\t\t\t").concat(e,"\n\t\t</div>\n\t\t")},e.prototype.createExcerpt=function(e,t,n){var r=n.wordLimit,o=n.moreSymbol,i=n.readMore;if(!r)return e;var a=e.replace(/<[^>]*>/g,"").split(/\s+/),s=a.slice(0,r).join(" ");return o&&(s+=o),r>a.length?e:t&&(null==i?void 0:i.label)?"<p>".concat(s,' <a href="').concat(t,'" target="_blank" class="').concat(i.className,'">').concat(i.label,"</a></p>"):"<p>".concat(s,"</p>")},e.prototype.listChildrenPosts=function(e){var t=this,n=Object.values(e);if(!n.length)return"";var r=document.createElement("details"),o=document.createElement("summary"),i=document.createElement("div");return n.forEach((function(e){var n=(new DOMParser).parseFromString(e.post_content,"text/html"),r=document.createElement("div");r.classList.add("sub-version-item"),r.innerHTML='\n\t\t\t\t<div class="sub-version-header">\n\t\t\t\t\t<h4 class="sub-version-title">'.concat(e.post_title,'</h4>\n\t\t\t\t\t<span class="sub-version-date">').concat(t.formatDate(new Date(e.post_date)),'</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="sub-version-content">').concat(n.documentElement.textContent,"</div>\n\t\t\t"),i.appendChild(r)})),o.innerHTML='<p class="text-see-more">See More</p><p class="text-see-less">See Less</p>',r.appendChild(o),r.appendChild(i),i.classList.add("sub-version-items-wrapper"),r.classList.add("whats-new-rss-sub-version-details"),r.outerHTML},e.prototype.formatDate=function(e){if("function"==typeof this.RSS.getArgs().flyout.formatDate)return this.RSS.getArgs().flyout.formatDate(e);var t=new Date,n=e.getTime(),r=t.getTime()-n,o=36e5,i=24*o,a=7*i,s=30*i;if(r<6e4)return"Just now";if(r<o){var l=Math.floor(r/6e4);return"".concat(l," minute").concat(l>1?"s":""," ago")}if(r<i){var c=Math.floor(r/o);return"".concat(c," hour").concat(c>1?"s":""," ago")}if(r<a){var u=Math.floor(r/i);return"".concat(u," day").concat(u>1?"s":""," ago")}if(r<s){var f=Math.floor(r/a);return"".concat(f," week").concat(f>1?"s":""," ago")}var d=Math.floor(r/s);return"".concat(d," month").concat(d>1?"s":""," ago")},e}();function eh(){return th.apply(this,arguments)}function th(){return(th=Hp(Fp().mark((function e(){return Fp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",'.whats-new-rss-is-active{overflow:hidden}.whats-new-rss-trigger-button{display:flex;align-items:center;position:relative;width:auto;padding:5px;cursor:pointer}.whats-new-rss-trigger-button.has-label{align-items:end;gap:10px}.whats-new-rss-trigger-button.has-label .icon-badge{position:relative;line-height:1}.whats-new-rss-trigger-button.has-label .icon-badge .whats-new-rss-notification-badge{top:-12px;right:-10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge{position:absolute;top:-8px;right:-5px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red;transition:transform .2s ease-in-out}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.is-multi-feed{top:-2px;right:-2px;font-size:0;width:10px;height:10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.hide{display:none}.whats-new-rss-trigger-button:hover .whats-new-rss-notification-badge{transform:scale(1.2)}.whats-new-rss-flyout{position:fixed;top:0;right:0;bottom:0;width:100%;z-index:99999;transition:visibility .3s ease-in-out;font-family:Arial,Helvetica,sans-serif}.whats-new-rss-flyout .lightbox-trigger,.whats-new-rss-flyout.hidden{display:none}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon{display:block;margin:auto}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon svg{display:block;background:0 0;width:25px;height:25px}.whats-new-rss-flyout .whats-new-rss-flyout-contents{position:fixed;display:flex;right:0;width:30%;height:100%;flex-direction:column;background-color:#fff;transition:transform .3s ease-in-out;z-index:9999}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 16px 24px;border-bottom:1px solid #ccc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header button{border:none;background:0 0;font-size:30px;cursor:pointer;color:#94a3b8;padding:0;margin:0;box-shadow:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper{display:flex;gap:10px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper h3{margin:0;padding:0;color:#0f172a;font-weight:600;font-size:16px;line-height:24px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav{display:flex;padding:0 30px;border-bottom:1px solid #ccc;gap:2em;overflow:auto;white-space:nowrap}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button{position:relative;background:0 0;color:inherit;padding:15px 0;border-bottom:2px solid transparent}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:focus,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:hover{border-color:inherit}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button.selected{border-color:#5d5d5d}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button .new-notification-count{position:absolute;top:0;right:-10px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content{flex:1;overflow-y:auto}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .skeleton-container{margin:30px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item{border-bottom:1px solid #d8dfe9;padding:30px 24px;color:#475569;font-weight:400;font-size:14px;line-height:20px;display:flex;flex-direction:column;gap:13px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>*{margin:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.skeleton-row{height:25vh;margin:40px 0;background:linear-gradient(90deg,#eee 25%,#ddd 50%,#eee 75%);background-size:200% 100%;animation:shimmer 1.5s infinite}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post{position:relative}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post .new-post-badge{background:#ff3d3d;border-radius:5px;position:absolute;right:45px;padding:0 5px;color:#fff}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header{display:flex;flex-direction:column;gap:15px;padding:0 0 8px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header p{color:#94a3b8;margin:0;padding:0;font-weight:600;font-size:14px;line-height:16px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header h2{margin:0;color:#0f172a;font-weight:700;line-height:28px;font-size:20px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h2{font-weight:700;font-size:18px;line-height:24px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h3{font-weight:700;font-size:16px;line-height:22px;margin-top:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h4{font-weight:700;font-size:15px;line-height:20px;margin-top:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h5{font-weight:700;font-size:14px;line-height:18px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h6{font-weight:700;font-size:13px;line-height:16px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p{padding:0;font-size:14px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p:last-child{margin-bottom:0;padding-bottom:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item a{color:#1170ff;text-decoration:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure{margin:10px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure.wp-block-embed.is-type-video{position:relative;width:100%;height:0;padding-bottom:56.25%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item video{vertical-align:middle;width:100%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item strong{font-weight:600}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{padding-inline-start:20px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol li,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul li{margin-bottom:5px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{list-style-type:disc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol{list-style-type:decimal}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details{line-height:20px;font-size:.9em;margin:10px 0;background:#f9fafb}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary{display:flex;justify-content:space-between;cursor:pointer;padding:20px 15px;height:1em;line-height:20px;font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary::after{content:"⌃";font-size:20px;transform:rotateX(180deg);font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-more{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-less{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary{border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary::after{transform:rotateX(45deg)}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-more{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-less{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item{position:relative;padding:1em;border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-header{display:flex;justify-content:space-between}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-content{margin-top:1em}.whats-new-rss-flyout .whats-new-rss-flyout-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5);transition:all .3s ease-in-out}.whats-new-rss-flyout.closed{visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-overlay{opacity:0;visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-contents{transform:translateX(100%)}.whats-new-rss-flyout .whats-new-rss-flyout-inner-header__loading-icon{display:none}@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}@media screen and (max-width:1024px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:40%}}@media screen and (max-width:768px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:85%}}');case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function nh(){return(nh=Hp(Fp().mark((function e(){var t,n;return Fp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t="whats-new-rss-styles",document.getElementById(t)){e.next=8;break}return(n=document.createElement("style")).id=t,e.next=6,eh();case 6:n.innerHTML=e.sent,document.head.appendChild(n);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const rh=function(e){var t=e.selector,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Up),r=(0,s.useRef)(null);return(0,s.useEffect)((function(){return function(){nh.apply(this,arguments)}(),r.current||(r.current=function(e){return new Zp(e)}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vp(Object(n),!0).forEach((function(t){Yp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({selector:t},n))),function(){r.current&&"function"==typeof r.current.destroy&&r.current.destroy()}}),[t].concat(function(e){return function(e){if(Array.isArray(e))return Bp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Bp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bp(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object.values(n)))),r.current},oh=({children:e,gap:t="lg",className:n,...r})=>(0,Ee.jsx)("div",{className:xt("w-full box-border flex items-center justify-between bg-background-primary p-5 min-h-16",Mt(t),n),...r,children:e});oh.displayName="Topbar";const ih=({gap:e="sm",children:t,className:n})=>(0,Ee.jsx)("div",{className:xt("flex items-center",Mt(e),n),children:t});ih.displayName="Topbar.Left";const ah=({gap:e="md",children:t,align:n="center",className:r})=>{const o={left:"justify-start",center:"justify-center",right:"justify-end"}[n];return(0,Ee.jsx)("div",{className:xt("flex items-center grow",Mt(e),o,r),children:t})};ah.displayName="Topbar.Middle";const sh=({gap:e="sm",children:t,className:n})=>(0,Ee.jsx)("div",{className:xt("flex items-center",Mt(e),n),children:t});sh.displayName="Topbar.Right";const lh=({children:e,className:t})=>(0,Ee.jsx)("div",{className:xt("flex items-center [&>svg]:block h-full",t),children:e});lh.displayName="Topbar.Item",oh.Left=ih,oh.Middle=ah,oh.Right=sh,oh.Item=lh;const ch=(0,s.createContext)({}),uh=ch.Provider,fh=()=>(0,s.useContext)(ch),dh=(e,t,n)=>{if(!e||!t)return{open:()=>({}),closed:()=>({})};const r=e?.getBoundingClientRect(),o=t?.getBoundingClientRect(),i=n?r?.x-o?.x+r?.width/2:o?.width-(o?.right-r?.x)+r?.width/2,a=r?.y-o?.y+r?.height/2;return{open:(e=1e3)=>({clipPath:`circle(${2*e+200}px at ${i}px ${a}px)`,background:"rgb(255, 255, 255, 1)",transition:{type:"spring",stiffness:20,restDelta:2,background:{duration:0}}}),closed:{clipPath:`circle(${r?.width/2}px at ${i}px ${a}px)`,background:"rgb(255, 255, 255, 0)",transition:{delay:.5,type:"spring",stiffness:400,damping:40,background:{duration:0,delay:1e3}}}}},ph=e=>(0,Ee.jsx)(su.path,{className:"stroke-icon-primary",fill:"transparent",strokeWidth:"3",strokeLinecap:"round",...e}),hh=({className:e})=>{const{toggleOpen:t,setTriggerRef:n}=fh();return(0,Ee.jsx)(Qt,{ref:n,className:xt("relative z-[1] rounded-full hover:shadow-sm focus:[box-shadow:none] pointer-events-auto bg-background-primary",e),variant:"ghost",size:"xs",onClick:t,"aria-label":"Toggle menu",icon:(0,Ee.jsxs)(su.svg,{className:"shrink-0 stroke-icon-primary",width:"23",height:"23",variants:{open:{viewBox:"0 0 20 20"},closed:{viewBox:"0 0 23 18"}},children:[(0,Ee.jsx)(ph,{variants:{closed:{d:"M 2 2.5 L 20 2.5"},open:{d:"M 3 16.5 L 17 2.5"}}}),(0,Ee.jsx)(ph,{d:"M 2 9.423 L 20 9.423",variants:{closed:{opacity:1},open:{opacity:0}},transition:{duration:.1}}),(0,Ee.jsx)(ph,{variants:{closed:{d:"M 2 16.346 L 20 16.346"},open:{d:"M 3 2.5 L 17 16.346"}}})]})})},mh={open:{transition:{staggerChildren:.07,delayChildren:.2}},closed:{transition:{staggerChildren:.05,staggerDirection:-1}}},yh=({tag:e="a",active:t,icon:n,iconPosition:r="left",className:o,children:i,...a})=>{let l=null,c=null;const u=n&&(0,s.isValidElement)(n)?(0,s.cloneElement)(n,{key:"left-icon",className:xt("size-5",t?"text-brand-800":"text-icon-secondary",n.props?.className??"")}):null;switch(r){case"left":l=u;break;case"right":c=u;break;default:l=null,c=null}return(0,Ee.jsx)(vh,{children:(0,Ee.jsxs)(e,{className:xt("w-full no-underline hover:no-underline text-text-primary text-lg font-medium flex items-center gap-2 px-2.5 py-1.5 rounded-md hover:bg-background-secondary hover:text-text-primary focus:outline-none focus:shadow-none transition ease-in-out duration-150",t?"text-text-primary bg-background-secondary":"text-text-secondary",o),...a,children:[!!l&&l,(0,Ee.jsx)("span",{className:"contents",children:i}),!!c&&c]})})},gh={open:{y:0,opacity:1,transition:{y:{stiffness:1e3,velocity:-100}}},closed:{y:50,opacity:0,transition:{y:{stiffness:1e3}}}},vh=({children:e})=>(0,Ee.jsx)(su.li,{className:"m-0 p-0 flex items-center justify-start w-full",variants:gh,whileHover:{scale:1.05},whileTap:{scale:.95},children:e}),bh=({children:e,className:t})=>{const{triggerRef:n,triggerOnRight:r,triggerOnLeft:o}=fh(),[i,a]=(0,s.useState)(null);return n?(0,Ee.jsxs)(su.div,{ref:a,className:xt("absolute top-0 bottom-0 w-80 h-screen",r?"right-0":"left-0",t),children:[i&&(0,Ee.jsx)(su.div,{className:xt("bg-background-primary shadow-lg absolute top-0 bottom-0 w-80 border-y-0 border-l-0 border-r border-solid border-border-subtle",r?"right-0":"left-0"),variants:dh(n,i,o??!1)}),(0,Ee.jsx)(su.ul,{variants:mh,className:xt("relative mt-14 mb-0 w-full px-5 pb-5 pt-2 flex flex-col items-start justify-start gap-0.5",t),children:e})]}):null},wh=({className:e,children:t})=>{const[n,r]=function(...e){const t=(0,s.useRef)(0),[n,r]=(0,s.useState)(e[t.current]);return[n,(0,s.useCallback)((n=>{t.current="number"!=typeof n?((e,t,n)=>{const r=t-0;return((n-0)%r+r)%r+0})(0,e.length,t.current+1):n,r(e[t.current])}),[e.length,...e])]}(!1,!0),[o,i]=(0,s.useState)(null),a=(0,s.useRef)(null),{height:l}=(e=>{const t=(0,s.useRef)({width:0,height:0});return(0,s.useEffect)((()=>{e.current&&(t.current.width=e.current.offsetWidth,t.current.height=e.current.offsetHeight)}),[]),t.current})(a),{isRight:c=!1,isLeft:u=!0}=(e=>{if(!e)return{error:"Element not found."};const t=e.getBoundingClientRect(),n=window.innerWidth,r=n/2,o=t.right<r,i=t.left>r;return{isLeft:o,isRight:i,isCenter:!o&&!i,elementRect:{left:t.left,right:t.right,width:t.width},viewport:{width:n,center:r}}})(o);return(0,Ee.jsx)(uh,{value:{isOpen:n,toggleOpen:r,setTriggerRef:e=>{(0,s.startTransition)((()=>{i(e)}))},triggerRef:o,triggerOnRight:c,triggerOnLeft:u},children:(0,Ee.jsx)("div",{className:xt("size-6 z-[1]",e),children:(0,Ee.jsx)(su.nav,{className:"h-full",initial:!1,animate:n?"open":"closed",custom:l,variants:{open:{pointerEvents:"auto"},closed:{pointerEvents:"none"}},ref:a,children:t})})})};wh.displayName="HamburgerMenu",hh.displayName="HamburgerMenu.Toggle",bh.displayName="HamburgerMenu.Options",yh.displayName="HamburgerMenu.Option",wh.Options=bh,wh.Option=yh,wh.Toggle=hh;const xh=(0,s.forwardRef)((({label:e="",size:t="sm",className:n="",type:r="pill",variant:o="neutral",icon:i=null,disabled:a=!1,onClose:s=()=>{},closable:l=!1,onMouseDown:c=()=>{},disableHover:u=!1},f)=>{const d={neutral:"bg-badge-background-gray text-badge-color-gray border-badge-border-gray",red:"bg-badge-background-red text-badge-color-red border-badge-border-red",yellow:"bg-badge-background-yellow text-badge-color-yellow border-badge-border-yellow",green:"bg-badge-background-green text-badge-color-green border-badge-border-green",blue:"bg-badge-background-sky text-badge-color-sky border-badge-border-sky",inverse:"bg-background-inverse text-text-inverse border-background-inverse",disabled:"bg-badge-background-disabled text-badge-color-disabled border-badge-border-disabled disabled cursor-not-allowed"};let p="",h="group relative justify-center flex items-center cursor-pointer";const m={xxs:"[&>svg]:size-3",xs:"[&>svg]:size-3",sm:"[&>svg]:size-3",md:"[&>svg]:size-4",lg:"[&>svg]:size-5"};return a?(p=d.disabled,h+=" cursor-not-allowed disabled"):p=d[o],e?(0,Ee.jsxs)("span",{className:xt("font-medium border-badge-border-gray flex items-center justify-center border border-solid box-border max-w-full transition-colors duration-150 ease-in-out",{xxs:"py-0.5 px-0.5 text-xs h-4",xs:"py-0.5 px-1 text-xs h-5",sm:"py-1 px-1.5 text-xs h-6",md:"py-1 px-1.5 text-sm h-7",lg:"py-1 px-1.5 text-base h-8"}[t],{pill:"rounded-full",rounded:"rounded"}[r],"gap-0.5",p,!u&&{neutral:"hover:bg-badge-hover-gray",red:"hover:bg-badge-hover-red",yellow:"hover:bg-badge-hover-yellow",green:"hover:bg-badge-hover-green",blue:"hover:bg-badge-hover-sky",inverse:"hover:bg-badge-hover-inverse",disabled:"hover:bg-badge-hover-disabled"}[o],n),ref:f,children:[i?(0,Ee.jsx)("span",{className:xt("justify-center flex items-center",m[t]),children:i}):null,(0,Ee.jsx)("span",{className:"px-1 truncate inline-block",children:e}),l&&(0,Ee.jsxs)("span",{className:xt(h,m[t]),onMouseDown:c,role:"button",tabIndex:0,...!a&&{onClick:s},children:[(0,Ee.jsx)("span",{className:"sr-only",children:`Remove ${e}`}),(0,Ee.jsx)(un,{}),(0,Ee.jsx)("span",{className:"absolute -inset-1"})]})]}):null}));xh.displayName="Badge";const Mh=Kt("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]),jh=Kt("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]),Eh=Kt("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);function Oh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kh(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Sh="srfm_upgrade_notice_seen";const Nh=function(e){var t=e.onClose,n=Oh((0,i.useState)(!0),2),r=n[0],o=n[1],a=Oh((0,i.useState)(!1),2),s=a[0],l=a[1];return(0,i.useEffect)((function(){var e,t;e=Sh,2===(t="; ".concat(document.cookie).split("; ".concat(e,"="))).length&&t.pop().split(";").shift()||l(!0)}),[]),s&&r?React.createElement(Yt,{className:"relative bg-brand-background-hover-100 p-2 text-xs text-center w-full gap-1",align:"center"},React.createElement("p",{className:"text-text-primary w-full mx-7 lg:mx-0"},React.createElement("span",{className:" font-semibold text-xs"},(0,je.__)("Ready to go beyond free plan?","sureforms"))," ",React.createElement(Qt,{tag:"a",variant:"link",className:"p-0 [&>span]:p-0 underline underline-offset-2 font-normal",size:"xs",onClick:function(){var e,t;return window.open(op((null===(e=srfm_admin)||void 0===e?void 0:e.pricing_page_url)||(null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_pricing_page),"dashboard-upgrade-notice-cta"),"_blank","noreferrer")}},(0,je.__)("Upgrade now","sureforms"))," ",React.createElement("span",{className:"font-normal text-xs"},(0,je.__)("and unlock the full power of SureForms!","sureforms"))),React.createElement(Yt.Item,{className:"absolute right-2 inset-y-0 inline-flex items-center"},React.createElement(Qt,{variant:"ghost",size:"xs",className:"p-1 hover:bg-transparent",icon:React.createElement(en,{className:"size-4"}),onClick:function(){o(!1),function(e){var t=new Date;t.setTime(t.getTime()+864e6),document.cookie="".concat(e,"=").concat("true","; expires=").concat(t.toUTCString(),"; path=/")}(Sh),"function"==typeof t&&t()}}))):null};function Th(){return Th=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Th.apply(null,arguments)}const Ah=function(e){var t;return React.createElement("a",{href:null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_dashboard_url,className:"inline-flex"},React.createElement("svg",Th({width:"120",height:"20",viewBox:"0 0 120 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),React.createElement("g",{clipPath:"url(#clip0_22722_181577)"},React.createElement("mask",{id:"mask0_22722_181577",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"120",height:"20"},React.createElement("path",{d:"M120 0H0V20H120V0Z",fill:"white"})),React.createElement("g",{mask:"url(#mask0_22722_181577)"},React.createElement("path",{d:"M20 0H0V20H20V0Z",fill:"#D54407"}),React.createElement("path",{d:"M5.71436 4.2854H14.2858V7.14256H7.14294L5.71436 8.57112V7.14256V4.2854Z",fill:"white"}),React.createElement("path",{d:"M5.71436 4.2854H14.2858V7.14256H7.14294L5.71436 8.57112V7.14256V4.2854Z",fill:"white"}),React.createElement("path",{d:"M5.71436 8.57129H12.8572V11.4284H7.14294L5.71436 12.857V11.4284V8.57129Z",fill:"white"}),React.createElement("path",{d:"M5.71436 8.57129H12.8572V11.4284H7.14294L5.71436 12.857V11.4284V8.57129Z",fill:"white"}),React.createElement("path",{d:"M5.71436 12.8572H10.0001V15.7143H5.71436V12.8572Z",fill:"white"}),React.createElement("path",{d:"M5.71436 12.8572H10.0001V15.7143H5.71436V12.8572Z",fill:"white"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.6665 13.8361L27.4936 12.6205C27.8732 13.0586 28.3781 13.4272 29.0083 13.7265C29.6384 14.0258 30.3009 14.1754 30.9956 14.1754C31.7905 14.1754 32.41 14.0039 32.8539 13.6608C33.3051 13.3177 33.5308 12.8688 33.5308 12.3139C33.5308 11.9635 33.409 11.6678 33.1655 11.4269C32.922 11.186 32.6069 10.9998 32.2202 10.8684C31.8334 10.7371 31.4073 10.6166 30.9419 10.5071C30.4764 10.3976 30.0073 10.2698 29.5347 10.1238C29.0692 9.97782 28.6431 9.79894 28.2564 9.58725C27.8696 9.3755 27.5545 9.07619 27.311 8.68932C27.0675 8.29507 26.9458 7.82788 26.9458 7.28763C26.9458 6.39694 27.2967 5.65602 27.9986 5.06469C28.7004 4.46606 29.6636 4.16675 30.8882 4.16675C32.5066 4.16675 33.8172 4.69237 34.8198 5.74362L34.0571 6.90438C33.7276 6.49557 33.2836 6.16704 32.7251 5.91882C32.1736 5.66332 31.5613 5.53556 30.8882 5.53556C30.1792 5.53556 29.6098 5.69982 29.1801 6.02833C28.7505 6.34957 28.5356 6.75469 28.5356 7.24382C28.5356 7.55775 28.6574 7.82419 28.9009 8.04325C29.1443 8.25494 29.4559 8.42282 29.8354 8.54694C30.2221 8.66375 30.6483 8.77688 31.1138 8.88644C31.5864 8.98863 32.0554 9.11638 32.5209 9.26969C32.9936 9.42301 33.4197 9.61275 33.7993 9.83913C34.186 10.0581 34.5011 10.3757 34.7446 10.7918C34.9881 11.2079 35.1098 11.7007 35.1098 12.2701C35.1098 13.2191 34.7446 14.0039 34.0141 14.6244C33.2908 15.2377 32.2703 15.5443 30.9526 15.5443C29.1694 15.5443 27.7408 14.9749 26.6665 13.8361ZM36.9153 12.0839V4.44051H38.5589V11.5693C38.5589 12.4745 38.763 13.1133 39.1712 13.4856C39.5794 13.8506 40.1738 14.0331 40.9544 14.0331C41.5703 14.0331 42.1647 13.8761 42.7376 13.5623C43.3104 13.2483 43.7581 12.8614 44.0803 12.4015V4.44051H45.7346V15.2706H44.0803V13.7484C43.6363 14.2594 43.0813 14.6865 42.4153 15.0296C41.7493 15.3727 41.0439 15.5443 40.2991 15.5443C38.0433 15.5443 36.9153 14.3908 36.9153 12.0839ZM48.1524 15.2706H49.796V7.60519C50.0395 7.15988 50.4584 6.762 51.0529 6.41163C51.6473 6.05388 52.1987 5.87502 52.7071 5.87502C52.8718 5.87502 53.0831 5.88962 53.3409 5.91882V4.18865C52.6534 4.18865 52.0053 4.37116 51.3966 4.73617C50.7878 5.09389 50.2544 5.57206 49.796 6.17069V4.44051H48.1524V15.2706ZM53.9111 9.83913C53.9111 8.80244 54.1331 7.85344 54.5771 6.992C55.0283 6.12324 55.6549 5.437 56.457 4.93329C57.2591 4.42226 58.1578 4.16675 59.1533 4.16675C60.1988 4.16675 61.1119 4.42591 61.8925 4.94424C62.6731 5.46255 63.2606 6.15974 63.6543 7.03575C64.0549 7.9045 64.2556 8.88638 64.2556 9.98144V10.4085H55.6728C55.7373 11.4744 56.1096 12.365 56.79 13.0804C57.4775 13.7959 58.3726 14.1536 59.4755 14.1536C60.0986 14.1536 60.6966 14.0331 61.2694 13.7922C61.8496 13.5513 62.3544 13.2083 62.7843 12.7629L63.5681 13.8579C62.4439 14.9821 61.0368 15.5443 59.3466 15.5443C57.7568 15.5443 56.4534 15.015 55.4365 13.9565C54.4196 12.8979 53.9111 11.5255 53.9111 9.83913ZM55.6513 9.14925H62.6231C62.6162 8.73313 62.5406 8.32063 62.3974 7.91182C62.2613 7.503 62.0573 7.11969 61.7851 6.762C61.5129 6.40432 61.1477 6.11594 60.6894 5.89693C60.2311 5.67062 59.7118 5.55746 59.1318 5.55746C58.5875 5.55746 58.0934 5.66696 57.6494 5.88597C57.2054 6.10498 56.8437 6.39338 56.5644 6.75107C56.2923 7.1015 56.0774 7.48475 55.9199 7.90082C55.7623 8.30969 55.6728 8.72582 55.6513 9.14925Z",fill:"#030712"}),React.createElement("path",{d:"M68.2325 15.6356H65.9331V4.63989H73.5762V6.70057H68.2325V9.00851H73.4625V11.0692H68.2325V15.6356Z",fill:"#030712"}),React.createElement("path",{d:"M80.3168 15.8336C77.0462 15.8336 74.6655 13.4597 74.6655 10.1462C74.6655 6.83263 77.0462 4.45874 80.3168 4.45874C83.5712 4.45874 85.9518 6.83263 85.9518 10.1462C85.9518 13.4597 83.5712 15.8336 80.3168 15.8336ZM80.3168 13.7564C82.3087 13.7564 83.5874 12.1904 83.5874 10.1462C83.5874 8.08551 82.3087 6.53588 80.3168 6.53588C78.3087 6.53588 77.0299 8.08551 77.0299 10.1462C77.0299 12.1904 78.3087 13.7564 80.3168 13.7564Z",fill:"#030712"}),React.createElement("path",{d:"M96.3254 15.6356H93.6698L91.5486 11.7286H89.8648V15.6356H87.5654V4.63989H92.6173C94.8679 4.63989 96.2604 6.14006 96.2604 8.18426C96.2604 10.113 95.0461 11.1681 93.8804 11.4483L96.3254 15.6356ZM92.2936 9.66789C93.2004 9.66789 93.8967 9.10739 93.8967 8.16776C93.8967 7.26107 93.2004 6.70057 92.2936 6.70057H89.8648V9.66789H92.2936Z",fill:"#030712"}),React.createElement("path",{d:"M109.678 15.6356H107.362V7.70614L104.318 15.6356H103.314L100.27 7.70614V15.6356H97.9707V4.63989H101.193L103.816 11.5143L106.439 4.63989H109.678V15.6356Z",fill:"#030712"}),React.createElement("path",{d:"M115.676 15.8335C113.588 15.8335 112.098 15.1246 111.078 14.086L112.341 12.2562C113.102 13.0639 114.284 13.7563 115.774 13.7563C117.053 13.7563 117.652 13.1793 117.652 12.5364C117.652 10.6241 111.434 11.9594 111.434 7.82163C111.434 5.99175 112.989 4.4751 115.531 4.4751C117.247 4.4751 118.672 5.00263 119.741 6.00823L118.462 7.75569C117.588 6.93138 116.421 6.55225 115.32 6.55225C114.349 6.55225 113.798 6.98088 113.798 7.64025C113.798 9.37125 120 8.20075 120 12.3056C120 14.3168 118.575 15.8335 115.676 15.8335Z",fill:"#030712"}))),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_22722_181577"},React.createElement("rect",{width:"120",height:"20",fill:"white"})))))},Dh=cn("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Ch=cn("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),Ih={sm:{text:"text-sm",separator:"text-sm",separatorIconSize:16},md:{text:"text-base",separator:"text-base",separatorIconSize:18}},Ph=(0,s.createContext)({sizes:Ih.sm}),_h=({children:e,size:t="sm"})=>{const n=Ih[t]||Ih.sm;return(0,Ee.jsx)(Ph.Provider,{value:{sizes:n},children:(0,Ee.jsx)("nav",{className:"flex m-0","aria-label":"Breadcrumb",children:(0,Ee.jsx)("ul",{className:"m-0 inline-flex items-center space-x-1 md:space-x-1",children:e})})})};_h.displayName="Breadcrumb";const Rh=({children:e})=>(0,Ee.jsx)(Ee.Fragment,{children:e});Rh.displayName="Breadcrumb.List";const zh=({children:e})=>(0,Ee.jsx)("li",{className:"m-0 inline-flex items-center gap-2",children:e});zh.displayName="Breadcrumb.Item";const Lh=({href:e,children:t,className:n,as:r="a",...o})=>{const{sizes:i}=(0,s.useContext)(Ph);return(0,Ee.jsx)(r,{href:e,className:xt(i.text,"px-1 font-medium no-underline text-text-tertiary hover:text-text-primary hover:underline","focus:outline-none focus:ring-1 focus:ring-border-interactive focus:border-border-interactive focus:rounded-sm","transition-all duration-200",n),...o,children:t})};Lh.displayName="Breadcrumb.Link";const Uh=({type:e})=>{const{sizes:t}=(0,s.useContext)(Ph),n={slash:(0,Ee.jsx)("span",{className:xt("mx-1",t.separator),children:"/"}),arrow:(0,Ee.jsx)(Dh,{size:t.separatorIconSize})};return(0,Ee.jsx)("li",{role:"separator",className:"flex items-center text-text-tertiary mx-2 p-0 list-none","aria-hidden":"true",children:n[e]||n.arrow})};Uh.displayName="Breadcrumb.Separator";const Fh=()=>{const{sizes:e}=(0,s.useContext)(Ph);return(0,Ee.jsx)(Ch,{className:"mt-[2px] cursor-pointer text-text-tertiary hover:text-text-primary",size:e.separatorIconSize+4})};Fh.displayName="Breadcrumb.Ellipsis";const Bh=({children:e})=>{const{sizes:t}=(0,s.useContext)(Ph);return(0,Ee.jsx)("span",{className:xt(t.text,"font-medium text-text-primary"),children:e})};Bh.displayName="Breadcrumb.Page",_h.List=Rh,_h.Item=zh,_h.Link=Lh,_h.Separator=Uh,_h.Ellipsis=Fh,_h.Page=Bh;const Vh=function(e){var t=e.options;return React.createElement(_h,null,React.createElement(_h.List,null,t.map((function(e,t){switch(e.type){case"separator":return React.createElement(_h.Separator,{key:t});case"ellipsis":return React.createElement(_h.Item,{key:t},React.createElement(_h.Ellipsis,null));case"page":return React.createElement(_h.Item,{key:t},React.createElement(_h.Page,null,e.text));default:return React.createElement(_h.Item,{key:t},React.createElement(_h.Link,null==e?void 0:e.linkProps,e.text))}}))))};function Yh(){return"undefined"!=typeof window}function Wh(e){return Qh(e)?(e.nodeName||"").toLowerCase():"#document"}function Hh(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Gh(e){var t;return null==(t=(Qh(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Qh(e){return!!Yh()&&(e instanceof Node||e instanceof Hh(e).Node)}function $h(e){return!!Yh()&&(e instanceof Element||e instanceof Hh(e).Element)}function qh(e){return!!Yh()&&(e instanceof HTMLElement||e instanceof Hh(e).HTMLElement)}function Zh(e){return!(!Yh()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Hh(e).ShadowRoot)}function Xh(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=rm(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Kh(e){return["table","td","th"].includes(Wh(e))}function Jh(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function em(e){const t=tm(),n=$h(e)?rm(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function tm(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function nm(e){return["html","body","#document"].includes(Wh(e))}function rm(e){return Hh(e).getComputedStyle(e)}function om(e){return $h(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function im(e){if("html"===Wh(e))return e;const t=e.assignedSlot||e.parentNode||Zh(e)&&e.host||Gh(e);return Zh(t)?t.host:t}function am(e){const t=im(e);return nm(t)?e.ownerDocument?e.ownerDocument.body:e.body:qh(t)&&Xh(t)?t:am(t)}function sm(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=am(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Hh(o);if(i){const e=lm(a);return t.concat(a,a.visualViewport||[],Xh(o)?o:[],e&&n?sm(e):[])}return t.concat(o,sm(o,[],n))}function lm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cm(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function um(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Zh(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function fm(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function dm(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function pm(e){return!(0!==e.mozInputSource||!e.isTrusted)||(ym()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function hm(e){return!dm().includes("jsdom/")&&(!ym()&&0===e.width&&0===e.height||ym()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function mm(){return/apple/i.test(navigator.vendor)}function ym(){const e=/android/i;return e.test(fm())||e.test(dm())}function gm(){return fm().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function vm(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function bm(e){return(null==e?void 0:e.ownerDocument)||document}function wm(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function xm(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Mm(e){return qh(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function jm(e){e.preventDefault(),e.stopPropagation()}function Em(e){return!!e&&"combobox"===e.getAttribute("role")&&Mm(e)}const Om=Math.min,km=Math.max,Sm=Math.round,Nm=Math.floor,Tm=e=>({x:e,y:e}),Am={left:"right",right:"left",bottom:"top",top:"bottom"},Dm={start:"end",end:"start"};function Cm(e,t,n){return km(e,Om(t,n))}function Im(e,t){return"function"==typeof e?e(t):e}function Pm(e){return e.split("-")[0]}function _m(e){return e.split("-")[1]}function Rm(e){return"x"===e?"y":"x"}function zm(e){return"y"===e?"height":"width"}function Lm(e){return["top","bottom"].includes(Pm(e))?"y":"x"}function Um(e){return Rm(Lm(e))}function Fm(e){return e.replace(/start|end/g,(e=>Dm[e]))}function Bm(e){return e.replace(/left|right|bottom|top/g,(e=>Am[e]))}function Vm(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 Ym(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var Wm=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),Hm="undefined"==typeof Element,Gm=Hm?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Qm=!Hm&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},$m=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},qm=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!$m(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{Gm.call(a,Wm)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),u=!$m(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(c&&u){var f=e(!0===c?a.children:c.children,!0,r);r.flatten?o.push.apply(o,f):o.push({scopeParent:a,candidates:f})}else i.unshift.apply(i,a.children)}}return o},Zm=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Xm=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Zm(e)?0:e.tabIndex},Km=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Jm=function(e){return"INPUT"===e.tagName},ey=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},ty=function(e,t){return!(t.disabled||$m(t)||function(e){return Jm(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=Gm.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Gm.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return ey(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,s=Qm(e);if(a&&!a.shadowRoot&&!0===r(a))return ey(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=i}if(function(e){var t,n,r,o,i=e&&Qm(e),a=null===(t=i)||void 0===t?void 0:t.host,s=!1;if(i&&i!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&a;){var l,c,u;s=!(null===(c=a=null===(l=i=Qm(a))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Gm.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},ny=function(e,t){return!(function(e){return function(e){return Jm(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Qm(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||Xm(t)<0||!ty(e,t))},ry=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},oy=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=function(e,t){var n=Xm(e);return n<0&&t&&!Zm(e)?0:n}(a,i),l=i?e(t.candidates):a;0===s?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})})),r.sort(Km).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},iy=function(e,t){var n;return n=(t=t||{}).getShadowRoot?qm([e],t.includeContainer,{filter:ny.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ry}):function(e,t,n){if($m(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Wm));return t&&Gm.call(e,Wm)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,ny.bind(null,t)),oy(n)};function ay(e,t,n){let{reference:r,floating:o}=e;const i=Lm(t),a=Um(t),s=zm(a),l=Pm(t),c="y"===i,u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(_m(t)){case"start":p[a]-=d*(n&&c?-1:1);break;case"end":p[a]+=d*(n&&c?-1:1)}return p}async function sy(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=Im(t,e),h=Vm(p),m=s[d?"floating"===f?"reference":"floating":f],y=Ym(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),g="floating"===f?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=Ym(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:l}):g);return{top:(y.top-w.top+h.top)/b.y,bottom:(w.bottom-y.bottom+h.bottom)/b.y,left:(y.left-w.left+h.left)/b.x,right:(w.right-y.right+h.right)/b.x}}function ly(e){const t=rm(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=qh(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Sm(n)!==i||Sm(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function cy(e){return $h(e)?e:e.contextElement}function uy(e){const t=cy(e);if(!qh(t))return Tm(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ly(t);let a=(i?Sm(n.width):n.width)/r,s=(i?Sm(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const fy=Tm(0);function dy(e){const t=Hh(e);return tm()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:fy}function py(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=cy(e);let a=Tm(1);t&&(r?$h(r)&&(a=uy(r)):a=uy(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Hh(e))&&t}(i,n,r)?dy(i):Tm(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(i){const e=Hh(i),t=r&&$h(r)?Hh(r):r;let n=e,o=lm(n);for(;o&&r&&t!==n;){const e=uy(o),t=o.getBoundingClientRect(),r=rm(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,f*=e.y,l+=i,c+=a,n=Hh(o),o=lm(n)}}return Ym({width:u,height:f,x:l,y:c})}function hy(e,t){const n=om(e).scrollLeft;return t?t.left+n:py(Gh(e)).left+n}function my(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:hy(e,r)),y:r.top+t.scrollTop}}function yy(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Hh(e),r=Gh(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=tm();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Gh(e),n=om(e),r=e.ownerDocument.body,o=km(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=km(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+hy(e);const s=-n.scrollTop;return"rtl"===rm(r).direction&&(a+=km(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Gh(e));else if($h(t))r=function(e,t){const n=py(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=qh(e)?uy(e):Tm(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=dy(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ym(r)}function gy(e,t){const n=im(e);return!(n===t||!$h(n)||nm(n))&&("fixed"===rm(n).position||gy(n,t))}function vy(e,t,n){const r=qh(t),o=Gh(t),i="fixed"===n,a=py(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Tm(0);function c(){l.x=hy(o)}if(r||!r&&!i)if(("body"!==Wh(t)||Xh(o))&&(s=om(t)),r){const e=py(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?Tm(0):my(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function by(e){return"static"===rm(e).position}function wy(e,t){if(!qh(e)||"fixed"===rm(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Gh(e)===n&&(n=n.ownerDocument.body),n}function xy(e,t){const n=Hh(e);if(Jh(e))return n;if(!qh(e)){let t=im(e);for(;t&&!nm(t);){if($h(t)&&!by(t))return t;t=im(t)}return n}let r=wy(e,t);for(;r&&Kh(r)&&by(r);)r=wy(r,t);return r&&nm(r)&&by(r)&&!em(r)?n:r||function(e){let t=im(e);for(;qh(t)&&!nm(t);){if(em(t))return t;if(Jh(t))return null;t=im(t)}return null}(e)||n}const My={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Gh(r),s=!!t&&Jh(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Tm(1);const u=Tm(0),f=qh(r);if((f||!f&&!i)&&(("body"!==Wh(r)||Xh(a))&&(l=om(r)),qh(r))){const e=py(r);c=uy(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const d=!a||f||i?Tm(0):my(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-l.scrollTop*c.y+u.y+d.y}},getDocumentElement:Gh,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Jh(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=sm(e,[],!1).filter((e=>$h(e)&&"body"!==Wh(e))),o=null;const i="fixed"===rm(e).position;let a=i?im(e):e;for(;$h(a)&&!nm(a);){const t=rm(a),n=em(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Xh(a)&&!n&&gy(e,a))?r=r.filter((e=>e!==a)):o=t,a=im(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=yy(t,n,o);return e.top=km(r.top,e.top),e.right=Om(r.right,e.right),e.bottom=Om(r.bottom,e.bottom),e.left=km(r.left,e.left),e}),yy(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:xy,getElementRects:async function(e){const t=this.getOffsetParent||xy,n=this.getDimensions,r=await n(e.floating);return{reference:vy(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ly(e);return{width:t,height:n}},getScale:uy,isElement:$h,isRTL:function(e){return"rtl"===rm(e).direction}};function jy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ey(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=cy(e),u=o||i?[...c?sm(c):[],...sm(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const f=c&&s?function(e,t){let n,r=null;const o=Gh(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=c;if(s||t(),!d||!p)return;const h={rootMargin:-Nm(f)+"px "+-Nm(o.clientWidth-(u+d))+"px "+-Nm(o.clientHeight-(f+p))+"px "+-Nm(u)+"px",threshold:km(0,Om(1,l))||1};let m=!0;function y(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||jy(c,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(y,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,h)}r.observe(e)}(!0),i}(c,n):null;let d,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?py(e):null;return l&&function t(){const r=py(e);m&&!jy(m,r)&&n(),m=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(d)}}const Oy=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Pm(n),s=_m(n),l="y"===Lm(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,f=Im(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*u,y:d*c}:{x:d*c,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},ky=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Im(e,t),c={x:n,y:r},u=await sy(t,l),f=Lm(Pm(o)),d=Rm(f);let p=c[d],h=c[f];if(i){const e="y"===d?"bottom":"right";p=Cm(p+u["y"===d?"top":"left"],p,p-u[e])}if(a){const e="y"===f?"bottom":"right";h=Cm(h+u["y"===f?"top":"left"],h,h-u[e])}const m=s.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[d]:i,[f]:a}}}}}},Sy=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...y}=Im(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=Pm(o),v=Lm(s),b=Pm(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=d||(b||!m?[Bm(s)]:function(e){const t=Bm(e);return[Fm(e),t,Fm(t)]}(s)),M="none"!==h;!d&&M&&x.push(...function(e,t,n,r){const o=_m(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Pm(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Fm)))),i}(s,m,h,w));const j=[s,...x],E=await sy(t,y),O=[];let k=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&O.push(E[g]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=_m(e),o=Um(e),i=zm(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Bm(a)),[a,Bm(a)]}(o,a,w);O.push(E[e[0]],E[e[1]])}if(k=[...k,{placement:o,overflows:O}],!O.every((e=>e<=0))){var S,N;const e=((null==(S=i.flip)?void 0:S.index)||0)+1,t=j[e];if(t){var T;const n="alignment"===f&&v!==Lm(t),r=(null==(T=k[0])?void 0:T.overflows[0])>0;if(!n||r)return{data:{index:e,overflows:k},reset:{placement:t}}}let n=null==(N=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:N.placement;if(!n)switch(p){case"bestFit":{var A;const e=null==(A=k.filter((e=>{if(M){const t=Lm(e.placement);return t===v||"y"===t}return!0})).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:A[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Ny=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Im(e,t),u=await sy(t,c),f=Pm(o),d=_m(o),p="y"===Lm(o),{width:h,height:m}=i.floating;let y,g;"top"===f||"bottom"===f?(y=f,g=d===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,y="end"===d?"top":"bottom");const v=m-u.top-u.bottom,b=h-u.left-u.right,w=Om(m-u[y],v),x=Om(h-u[g],b),M=!t.middlewareData.shift;let j=w,E=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(j=v),M&&!d){const e=km(u.left,0),t=km(u.right,0),n=km(u.top,0),r=km(u.bottom,0);p?E=h-2*(0!==e||0!==t?e+t:km(u.left,u.right)):j=m-2*(0!==n||0!==r?n+r:km(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:j});const O=await a.getDimensions(s.floating);return h!==O.width||m!==O.height?{reset:{rects:!0}}:{}}}},Ty=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Im(e,t)||{};if(null==c)return{};const f=Vm(u),d={x:n,y:r},p=Um(o),h=zm(p),m=await a.getDimensions(c),y="y"===p,g=y?"top":"left",v=y?"bottom":"right",b=y?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-d[p]-i.floating[h],x=d[p]-i.reference[p],M=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let j=M?M[b]:0;j&&await(null==a.isElement?void 0:a.isElement(M))||(j=s.floating[b]||i.floating[h]);const E=w/2-x/2,O=j/2-m[h]/2-1,k=Om(f[g],O),S=Om(f[v],O),N=k,T=j-m[h]-S,A=j/2-m[h]/2+E,D=Cm(N,A,T),C=!l.arrow&&null!=_m(o)&&A!==D&&i.reference[h]/2-(A<N?k:S)-m[h]/2<0,I=C?A<N?A-N:A-T:0;return{[p]:d[p]+I,data:{[p]:D,centerOffset:A-D-I,...C&&{alignmentOffset:I}},reset:C}}}),Ay=(e,t,n)=>{const r=new Map,o={platform:My,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=ay(c,r,l),d=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:y,y:g,data:v,reset:b}=await m({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=y?y:u,f=null!=g?g:f,p={...p,[i]:{...p[i],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:f}=ay(c,d,l))),n=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var Dy="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function Cy(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,o;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(!Cy(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||Cy(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Iy(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Py(e,t){const n=Iy(e);return Math.round(t*n)/n}function _y(e){const t=s.useRef(e);return Dy((()=>{t.current=e})),t}const Ry=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?Ty({element:n.current,padding:r}).fn(t):{}:n?Ty({element:n,padding:r}).fn(t):{}}}),zy=(e,t)=>({...Oy(e),options:[e,t]}),Ly=(e,t)=>({...Sy(e),options:[e,t]}),Uy=(e,t)=>({...Ry(e),options:[e,t]}),Fy={...l},By=Fy.useInsertionEffect||(e=>e());function Vy(e){const t=s.useRef((()=>{}));return By((()=>{t.current=e})),s.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const Yy="ArrowUp",Wy="ArrowDown",Hy="ArrowLeft",Gy="ArrowRight";function Qy(e,t,n){return Math.floor(e/t)!==n}function $y(e,t){return t<0||t>=e.current.length}function qy(e,t){return Xy(e,{disabledIndices:t})}function Zy(e,t){return Xy(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Xy(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t;const a=e.current;let s=n;do{s+=r?-i:i}while(s>=0&&s<=a.length-1&&eg(a,s,o));return s}function Ky(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e),a=t[e];switch(o){case"tl":return i;case"tr":return a?i+a.width-1:i;case"bl":return a?i+(a.height-1)*r:i;case"br":return n.lastIndexOf(e)}}function Jy(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function eg(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}var tg="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function ng(){return ng=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},ng.apply(this,arguments)}let rg=!1,og=0;const ig=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+og++,ag=Fy.useId||function(){const[e,t]=s.useState((()=>rg?ig():void 0));return tg((()=>{null==e&&t(ig())}),[]),s.useEffect((()=>{rg=!0}),[]),e},sg=s.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:i}},width:a=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:f,stroke:d,d:p,style:{transform:h,...m}={},...y}=e,g=ag(),[v,b]=s.useState(!1);if(tg((()=>{r&&"rtl"===rm(r).direction&&b(!0)}),[r]),!r)return null;const[w,x]=n.split("-"),M="top"===w||"bottom"===w;let j=f;(M&&null!=i&&i.x||!M&&null!=i&&i.y)&&(j=null);const E=2*u,O=E/2,k=a/2*(c/-8+1),S=l/2*c/4,N=!!p,T=j&&"end"===x?"bottom":"top";let A=j&&"end"===x?"right":"left";j&&v&&(A="end"===x?"left":"right");const D=null!=(null==o?void 0:o.x)?j||o.x:"",C=null!=(null==o?void 0:o.y)?j||o.y:"",I=p||"M0,0 H"+a+" L"+(a-k)+","+(l-S)+" Q"+a/2+","+l+" "+k+","+(l-S)+" Z",P={top:N?"rotate(180deg)":"",left:N?"rotate(90deg)":"rotate(-90deg)",bottom:N?"":"rotate(180deg)",right:N?"rotate(-90deg)":"rotate(90deg)"}[w];return s.createElement("svg",ng({},y,{"aria-hidden":!0,ref:t,width:N?a:a+E,height:a,viewBox:"0 0 "+a+" "+(l>a?l:a),style:{position:"absolute",pointerEvents:"none",[A]:D,[T]:C,[w]:M||N?"100%":"calc(100% - "+E/2+"px)",transform:[P,h].filter((e=>!!e)).join(" "),...m}}),E>0&&s.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:E+(p?0:1),d:I}),s.createElement("path",{stroke:E&&!p?y.fill:"none",d:I}),s.createElement("clipPath",{id:g},s.createElement("rect",{x:-O,y:O*(N?-1:1),width:a+E,height:a})))}));const lg=s.createContext(null),cg=s.createContext(null),ug=()=>{var e;return(null==(e=s.useContext(lg))?void 0:e.id)||null},fg=()=>s.useContext(cg);function dg(e){return"data-floating-ui-"+e}function pg(e){const t=(0,s.useRef)(e);return tg((()=>{t.current=e})),t}const hg=dg("safe-polygon");function mg(e,t,n){return n&&!vm(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let yg=0;function gg(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(yg);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():yg=requestAnimationFrame(i)}function vg(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let bg=new WeakMap,wg=new WeakSet,xg={},Mg=0;const jg=e=>e&&(e.host||jg(e.parentNode));function Eg(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=bm(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,a=(s=t,e.map((e=>{if(s.contains(e))return e;const t=jg(e);return s.contains(t)?t:null})).filter((e=>null!=e)));var s;const l=new Set,c=new Set(a),u=[];xg[o]||(xg[o]=new WeakMap);const f=xg[o];return a.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!c.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==Wh(t))if(l.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(bg.get(t)||0)+1,a=(f.get(t)||0)+1;bg.set(t,r),f.set(t,a),u.push(t),1===r&&n&&wg.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),l.clear(),Mg++,()=>{u.forEach((e=>{const t=(bg.get(e)||0)-1,n=(f.get(e)||0)-1;bg.set(e,t),f.set(e,n),t||(!wg.has(e)&&i&&e.removeAttribute(i),wg.delete(e)),n||e.removeAttribute(o)})),Mg--,Mg||(bg=new WeakMap,bg=new WeakMap,wg=new WeakSet,xg={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Og=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function kg(e,t){const n=iy(e,Og());"prev"===t&&n.reverse();const r=n.indexOf(cm(bm(e)));return n.slice(r+1)[0]}function Sg(){return kg(document.body,"next")}function Ng(){return kg(document.body,"prev")}function Tg(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!um(n,r)}function Ag(e){iy(e,Og()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Dg(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Cg={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Ig(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const Pg=s.forwardRef((function(e,t){const[n,r]=s.useState();tg((()=>(mm()&&r("button"),document.addEventListener("keydown",Ig),()=>{document.removeEventListener("keydown",Ig)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[dg("focus-guard")]:"",style:Cg};return s.createElement("span",ng({},e,o))})),_g=s.createContext(null),Rg=dg("portal");function zg(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=ag(),o=Lg(),[i,a]=s.useState(null),l=s.useRef(null);return tg((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{l.current=null}))}),[i]),tg((()=>{if(!r)return;if(l.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Rg,""),e.appendChild(n),l.current=n,a(n)}),[t,r]),tg((()=>{if(null===n)return;if(!r)return;if(l.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!$h(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const s=document.createElement("div");s.id=r,s.setAttribute(Rg,""),e=i||e,e.appendChild(s),l.current=s,a(s)}),[t,n,r,o]),i}({id:n,root:r}),[a,l]=s.useState(null),c=s.useRef(null),u=s.useRef(null),f=s.useRef(null),d=s.useRef(null),p=null==a?void 0:a.modal,h=null==a?void 0:a.open,m=!!a&&!a.modal&&a.open&&o&&!(!r&&!i);return s.useEffect((()=>{if(i&&o&&!p)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&Tg(e)&&("focusin"===e.type?Dg:Ag)(i)}}),[i,o,p]),s.useEffect((()=>{i&&(h||Dg(i))}),[h,i]),s.createElement(_g.Provider,{value:s.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:f,afterInsideRef:d,portalNode:i,setFocusManagerState:l})),[o,i])},m&&i&&s.createElement(Pg,{"data-type":"outside",ref:c,onFocus:e=>{if(Tg(e,i)){var t;null==(t=f.current)||t.focus()}else{const e=Ng()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),m&&i&&s.createElement("span",{"aria-owns":i.id,style:Cg}),i&&ve.createPortal(t,i),m&&i&&s.createElement(Pg,{"data-type":"outside",ref:u,onFocus:e=>{if(Tg(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=Sg()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Lg=()=>s.useContext(_g),Ug="data-floating-ui-focusable";function Fg(e){return e?e.hasAttribute(Ug)?e:e.querySelector("["+Ug+"]")||e:null}let Bg=[];function Vg(e){Bg=Bg.filter((e=>e.isConnected));let t=e;if(t&&"body"!==Wh(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Gm.call(e,Wm)&&ny(t,e)}(t,Og())){const e=iy(t,Og())[0];e&&(t=e)}Bg.push(t),Bg.length>20&&(Bg=Bg.slice(-20))}}function Yg(){return Bg.slice().reverse().find((e=>e.isConnected))}const Wg=s.forwardRef((function(e,t){return s.createElement("button",ng({},e,{type:"button",ref:t,tabIndex:-1,style:Cg}))}));function Hg(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:a=0,returnFocus:l=!0,restoreFocus:c=!1,modal:u=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:d=!0}=e,{open:p,refs:h,nodeId:m,onOpenChange:y,events:g,dataRef:v,floatingId:b,elements:{domReference:w,floating:x}}=t,M="number"==typeof a&&a<0,j=Em(w)&&M,E="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||i,O=pg(o),k=pg(a),S=pg(l),N=fg(),T=Lg(),A=s.useRef(null),D=s.useRef(null),C=s.useRef(!1),I=s.useRef(!1),P=s.useRef(-1),_=null!=T,R=Fg(x),z=Vy((function(e){return void 0===e&&(e=R),e?iy(e,Og()):[]})),L=Vy((e=>{const t=z(e);return O.current.map((e=>w&&"reference"===e?w:R&&"floating"===e?R:t)).filter(Boolean).flat()}));function U(e){return!r&&f&&u?s.createElement(Wg,{ref:"start"===e?A:D,onClick:e=>y(!1,e.nativeEvent)},"string"==typeof f?f:"Dismiss"):null}s.useEffect((()=>{if(r)return;if(!u)return;function e(e){if("Tab"===e.key){um(R,cm(bm(R)))&&0===z().length&&!j&&jm(e);const t=L(),n=xm(e);"reference"===O.current[0]&&n===w&&(jm(e),e.shiftKey?gg(t[t.length-1]):gg(t[1])),"floating"===O.current[1]&&n===R&&e.shiftKey&&(jm(e),gg(t[0]))}}const t=bm(R);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,w,R,u,O,j,z,L]),s.useEffect((()=>{if(!r&&x)return x.addEventListener("focusin",e),()=>{x.removeEventListener("focusin",e)};function e(e){const t=xm(e),n=z().indexOf(t);-1!==n&&(P.current=n)}}),[r,x,z]),s.useEffect((()=>{if(!r&&d)return x&&qh(w)?(w.addEventListener("focusout",t),w.addEventListener("pointerdown",e),x.addEventListener("focusout",t),()=>{w.removeEventListener("focusout",t),w.removeEventListener("pointerdown",e),x.removeEventListener("focusout",t)}):void 0;function e(){I.current=!0,setTimeout((()=>{I.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(um(w,t)||um(x,t)||um(t,x)||um(null==T?void 0:T.portalNode,t)||null!=t&&t.hasAttribute(dg("focus-guard"))||N&&(vg(N.nodesRef.current,m).find((e=>{var n,r;return um(null==(n=e.context)?void 0:n.elements.floating,t)||um(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(N.nodesRef.current,m).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));if(c&&n&&cm(bm(R))===bm(R).body){qh(R)&&R.focus();const e=P.current,t=z(),n=t[e]||t[t.length-1]||R;qh(n)&&n.focus()}!j&&u||!t||!n||I.current||t===Yg()||(C.current=!0,y(!1,e,"focus-out"))}))}}),[r,w,x,R,u,m,N,T,y,d,c,z,j]),s.useEffect((()=>{var e;if(r)return;const t=Array.from((null==T||null==(e=T.portalNode)?void 0:e.querySelectorAll("["+dg("portal")+"]"))||[]);if(x){const e=[x,...t,A.current,D.current,O.current.includes("reference")||j?w:null].filter((e=>null!=e)),n=u||j?Eg(e,E,!E):Eg(e);return()=>{n()}}}),[r,w,x,u,O,T,j,E]),tg((()=>{if(r||!qh(R))return;const e=cm(bm(R));queueMicrotask((()=>{const t=L(R),n=k.current,r=("number"==typeof n?t[n]:n.current)||R,o=um(R,e);M||o||!p||gg(r,{preventScroll:r===R})}))}),[r,p,R,M,L,k]),tg((()=>{if(r||!R)return;let e=!1;const t=bm(R),n=cm(t);let o=v.current.openEvent;function i(t){let{open:n,reason:r,event:i,nested:a}=t;n&&(o=i),"escape-key"===r&&h.domReference.current&&Vg(h.domReference.current),"hover"===r&&"mouseleave"===i.type&&(C.current=!0),"outside-press"===r&&(a?(C.current=!1,e=!0):C.current=!(pm(i)||hm(i)))}Vg(n),g.on("openchange",i);const a=t.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,Cg),_&&w&&w.insertAdjacentElement("afterend",a),()=>{g.off("openchange",i);const n=cm(t),r=um(x,n)||N&&vg(N.nodesRef.current,m).some((e=>{var t;return um(null==(t=e.context)?void 0:t.elements.floating,n)}));(r||o&&["click","mousedown"].includes(o.type))&&h.domReference.current&&Vg(h.domReference.current);const s="boolean"==typeof S.current?Yg()||a:S.current.current||a;queueMicrotask((()=>{S.current&&!C.current&&qh(s)&&(s===n||n===t.body||r)&&s.focus({preventScroll:e}),a.remove()}))}}),[r,x,R,S,v,h,g,N,m,_,w]),s.useEffect((()=>{queueMicrotask((()=>{C.current=!1}))}),[r]),tg((()=>{if(!r&&T)return T.setFocusManagerState({modal:u,closeOnFocusOut:d,open:p,onOpenChange:y,refs:h}),()=>{T.setFocusManagerState(null)}}),[r,T,u,p,y,h,d]),tg((()=>{if(r)return;if(!R)return;if("function"!=typeof MutationObserver)return;if(M)return;const e=()=>{const e=R.getAttribute("tabindex"),t=z(),n=cm(bm(x)),r=t.indexOf(n);-1!==r&&(P.current=r),O.current.includes("floating")||n!==h.domReference.current&&0===t.length?"0"!==e&&R.setAttribute("tabindex","0"):"-1"!==e&&R.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(R,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[r,x,R,h,O,z,M]);const F=!r&&E&&(!u||!j)&&(_||u);return s.createElement(s.Fragment,null,F&&s.createElement(Pg,{"data-type":"inside",ref:null==T?void 0:T.beforeInsideRef,onFocus:e=>{if(u){const e=L();gg("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=T&&T.preserveTabOrder&&T.portalNode)if(C.current=!1,Tg(e,T.portalNode)){const e=Sg()||w;null==e||e.focus()}else{var t;null==(t=T.beforeOutsideRef.current)||t.focus()}}}),!j&&U("start"),n,U("end"),F&&s.createElement(Pg,{"data-type":"inside",ref:null==T?void 0:T.afterInsideRef,onFocus:e=>{if(u)gg(L()[0]);else if(null!=T&&T.preserveTabOrder&&T.portalNode)if(d&&(C.current=!0),Tg(e,T.portalNode)){const e=Ng()||w;null==e||e.focus()}else{var t;null==(t=T.afterOutsideRef.current)||t.focus()}}}))}function Gg(e){return qh(e.target)&&"BUTTON"===e.target.tagName}function Qg(e){return Mm(e)}function $g(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:f=!0,stickIfOpen:d=!0}=t,p=s.useRef(),h=s.useRef(!1),m=s.useMemo((()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==l&&(vm(t,!0)&&u||(!n||!c||o.current.openEvent&&d&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=p.current;"mousedown"===l&&p.current?p.current=void 0:vm(t,!0)&&u||(!n||!c||o.current.openEvent&&d&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!f||Gg(e)||(" "!==e.key||Qg(i)||(e.preventDefault(),h.current=!0),"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!f||Gg(e)||Qg(i)||" "===e.key&&h.current&&(h.current=!1,r(!n||!c,e.nativeEvent,"click"))}})),[o,i,l,u,f,r,n,d,c]);return s.useMemo((()=>a?{reference:m}:{}),[a,m])}const qg={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Zg={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Xg=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Kg(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:a=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:f=!1,referencePressEvent:d="pointerdown",ancestorScroll:p=!1,bubbles:h,capture:m}=t,y=fg(),g=Vy("function"==typeof c?c:()=>!1),v="function"==typeof c?g:c,b=s.useRef(!1),w=s.useRef(!1),{escapeKey:x,outsidePress:M}=Xg(h),{escapeKey:j,outsidePress:E}=Xg(m),O=s.useRef(!1),k=Vy((e=>{var t;if(!n||!a||!l||"Escape"!==e.key)return;if(O.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,s=y?vg(y.nodesRef.current,o):[];if(!x&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),S=Vy((e=>{var t;const n=()=>{var t;k(e),null==(t=xm(e))||t.removeEventListener("keydown",n)};null==(t=xm(e))||t.addEventListener("keydown",n)})),N=Vy((e=>{var t;const n=b.current;b.current=!1;const a=w.current;if(w.current=!1,"click"===u&&a)return;if(n)return;if("function"==typeof v&&!v(e))return;const s=xm(e),l="["+dg("inert")+"]",c=bm(o.floating).querySelectorAll(l);let f=$h(s)?s:null;for(;f&&!nm(f);){const e=im(f);if(nm(e)||!$h(e))break;f=e}if(c.length&&$h(s)&&!s.matches("html,body")&&!um(s,o.floating)&&Array.from(c).every((e=>!um(f,e))))return;if(qh(s)&&D){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===rm(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth),r||t&&e.offsetY>s.clientHeight)return}const d=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=y&&vg(y.nodesRef.current,d).some((t=>{var n;return wm(e,null==(n=t.context)?void 0:n.elements.floating)}));if(wm(e,o.floating)||wm(e,o.domReference)||p)return;const h=y?vg(y.nodesRef.current,d):[];if(h.length>0){let e=!0;if(h.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),T=Vy((e=>{var t;const n=()=>{var t;N(e),null==(t=xm(e))||t.removeEventListener(u,n)};null==(t=xm(e))||t.addEventListener(u,n)}));s.useEffect((()=>{if(!n||!a)return;i.current.__escapeKeyBubbles=x,i.current.__outsidePressBubbles=M;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function s(){window.clearTimeout(e),O.current=!0}function c(){e=window.setTimeout((()=>{O.current=!1}),tm()?5:0)}const f=bm(o.floating);l&&(f.addEventListener("keydown",j?S:k,j),f.addEventListener("compositionstart",s),f.addEventListener("compositionend",c)),v&&f.addEventListener(u,E?T:N,E);let d=[];return p&&($h(o.domReference)&&(d=sm(o.domReference)),$h(o.floating)&&(d=d.concat(sm(o.floating))),!$h(o.reference)&&o.reference&&o.reference.contextElement&&(d=d.concat(sm(o.reference.contextElement)))),d=d.filter((e=>{var t;return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)})),d.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{l&&(f.removeEventListener("keydown",j?S:k,j),f.removeEventListener("compositionstart",s),f.removeEventListener("compositionend",c)),v&&f.removeEventListener(u,E?T:N,E),d.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,l,v,u,n,r,p,a,x,M,k,j,S,N,E,T]),s.useEffect((()=>{b.current=!1}),[v,u]);const A=s.useMemo((()=>({onKeyDown:k,[qg[d]]:e=>{f&&r(!1,e.nativeEvent,"reference-press")}})),[k,r,f,d]),D=s.useMemo((()=>({onKeyDown:k,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[Zg[u]]:()=>{b.current=!0}})),[k,u]);return s.useMemo((()=>a?{reference:A,floating:D}:{}),[a,A,D])}function Jg(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=ag(),i=s.useRef({}),[a]=s.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),l=null!=ug(),[c,u]=s.useState(r.reference),f=Vy(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),d=s.useMemo((()=>({setPositionReference:u})),[]),p=s.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return s.useMemo((()=>({dataRef:i,open:t,onOpenChange:f,elements:p,events:a,floatingId:o,refs:d})),[t,f,p,a,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=s.useState(null),[l,c]=s.useState(null),u=(null==o?void 0:o.domReference)||i,f=s.useRef(null),d=fg();tg((()=>{u&&(f.current=u)}),[u]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[f,d]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=s.useState(r);Cy(p,r)||h(r);const[m,y]=s.useState(null),[g,v]=s.useState(null),b=s.useCallback((e=>{e!==j.current&&(j.current=e,y(e))}),[]),w=s.useCallback((e=>{e!==E.current&&(E.current=e,v(e))}),[]),x=i||m,M=a||g,j=s.useRef(null),E=s.useRef(null),O=s.useRef(f),k=null!=c,S=_y(c),N=_y(o),T=_y(u),A=s.useCallback((()=>{if(!j.current||!E.current)return;const e={placement:t,strategy:n,middleware:p};N.current&&(e.platform=N.current),Ay(j.current,E.current,e).then((e=>{const t={...e,isPositioned:!1!==T.current};D.current&&!Cy(O.current,t)&&(O.current=t,ve.flushSync((()=>{d(t)})))}))}),[p,t,n,N,T]);Dy((()=>{!1===u&&O.current.isPositioned&&(O.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[u]);const D=s.useRef(!1);Dy((()=>(D.current=!0,()=>{D.current=!1})),[]),Dy((()=>{if(x&&(j.current=x),M&&(E.current=M),x&&M){if(S.current)return S.current(x,M,A);A()}}),[x,M,A,S,k]);const C=s.useMemo((()=>({reference:j,floating:E,setReference:b,setFloating:w})),[b,w]),I=s.useMemo((()=>({reference:x,floating:M})),[x,M]),P=s.useMemo((()=>{const e={position:n,left:0,top:0};if(!I.floating)return e;const t=Py(I.floating,f.x),r=Py(I.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...Iy(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,I.floating,f.x,f.y]);return s.useMemo((()=>({...f,update:A,refs:C,elements:I,floatingStyles:P})),[f,A,C,I,P])}({...e,elements:{...o,...l&&{reference:l}}}),h=s.useCallback((e=>{const t=$h(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),p.refs.setReference(t)}),[p.refs]),m=s.useCallback((e=>{($h(e)||null===e)&&(f.current=e,a(e)),($h(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!$h(e))&&p.refs.setReference(e)}),[p.refs]),y=s.useMemo((()=>({...p.refs,setReference:m,setPositionReference:h,domReference:f})),[p.refs,m,h]),g=s.useMemo((()=>({...p.elements,domReference:u})),[p.elements,u]),v=s.useMemo((()=>({...p,...r,refs:y,elements:g,nodeId:t})),[p,y,g,t,r]);return tg((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),s.useMemo((()=>({...p,context:v,refs:y,elements:g})),[p,y,g,v])}const ev="active",tv="selected";function nv(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[ev]:t,[tv]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[Ug]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[ev,tv].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function rv(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=s.useCallback((t=>nv(t,e,"reference")),t),i=s.useCallback((t=>nv(t,e,"floating")),n),a=s.useCallback((t=>nv(t,e,"item")),r);return s.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}let ov=!1;function iv(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function av(e,t){return iv(t,e===Yy||e===Wy,e===Hy||e===Gy)}function sv(e,t,n){return iv(t,e===Wy,n?e===Hy:e===Gy)||"Enter"===e||" "===e||""===e}function lv(e,t,n){return iv(t,n?e===Gy:e===Hy,e===Yy)}function cv(e,t){const{open:n,onOpenChange:r,elements:o}=e,{listRef:i,activeIndex:a,onNavigate:l=()=>{},enabled:c=!0,selectedIndex:u=null,allowEscape:f=!1,loop:d=!1,nested:p=!1,rtl:h=!1,virtual:m=!1,focusItemOnOpen:y="auto",focusItemOnHover:g=!0,openOnArrowKeyDown:v=!0,disabledIndices:b,orientation:w="vertical",cols:x=1,scrollItemIntoView:M=!0,virtualItemRef:j,itemSizes:E,dense:O=!1}=t,k=pg(Fg(o.floating)),S=ug(),N=fg(),T=Vy(l),A=Em(o.domReference),D=s.useRef(y),C=s.useRef(null!=u?u:-1),I=s.useRef(null),P=s.useRef(!0),_=s.useRef(T),R=s.useRef(!!o.floating),z=s.useRef(n),L=s.useRef(!1),U=s.useRef(!1),F=pg(b),B=pg(n),V=pg(M),Y=pg(u),[W,H]=s.useState(),[G,Q]=s.useState(),$=Vy((function(e,t,n){function r(e){m?(H(e.id),null==N||N.events.emit("virtualfocus",e),j&&(j.current=e)):gg(e,{preventScroll:!0,sync:!(!gm()||!mm())&&(ov||L.current)})}void 0===n&&(n=!1);const o=e.current[t.current];o&&r(o),requestAnimationFrame((()=>{const i=e.current[t.current]||o;if(!i)return;o||r(i);const a=V.current;a&&Z&&(n||!P.current)&&(null==i.scrollIntoView||i.scrollIntoView("boolean"==typeof a?{block:"nearest",inline:"nearest"}:a))}))}));tg((()=>{document.createElement("div").focus({get preventScroll(){return ov=!0,!1}})}),[]),tg((()=>{c&&(n&&o.floating?D.current&&null!=u&&(U.current=!0,C.current=u,T(u)):R.current&&(C.current=-1,_.current(null)))}),[c,n,o.floating,u,T]),tg((()=>{if(c&&n&&o.floating)if(null==a){if(L.current=!1,null!=Y.current)return;if(R.current&&(C.current=-1,$(i,C)),(!z.current||!R.current)&&D.current&&(null!=I.current||!0===D.current&&null==I.current)){let e=0;const t=()=>{null==i.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(C.current=null==I.current||sv(I.current,w,h)||p?qy(i,F.current):Zy(i,F.current),I.current=null,T(C.current))};t()}}else $y(i,a)||(C.current=a,$(i,C,U.current),U.current=!1)}),[c,n,o.floating,a,Y,p,i,w,h,T,$,F]),tg((()=>{var e;if(!c||o.floating||!N||m||!R.current)return;const t=N.nodesRef.current,n=null==(e=t.find((e=>e.id===S)))||null==(e=e.context)?void 0:e.elements.floating,r=cm(bm(o.floating)),i=t.some((e=>e.context&&um(e.context.elements.floating,r)));n&&!i&&P.current&&n.focus({preventScroll:!0})}),[c,o.floating,N,S,m]),tg((()=>{if(c&&N&&m&&!S)return N.events.on("virtualfocus",e),()=>{N.events.off("virtualfocus",e)};function e(e){Q(e.id),j&&(j.current=e)}}),[c,N,m,S,j]),tg((()=>{_.current=T,R.current=!!o.floating})),tg((()=>{n||(I.current=null)}),[n]),tg((()=>{z.current=n}),[n]);const q=null!=a,Z=s.useMemo((()=>{function e(e){if(!n)return;const t=i.current.indexOf(e);-1!==t&&T(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...g&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;P.current&&"touch"!==t&&(C.current=-1,$(i,C),T(null),m||gg(k.current,{preventScroll:!0}))}}}}),[n,k,$,g,i,T,m]),X=Vy((e=>{if(P.current=!1,L.current=!0,229===e.which)return;if(!B.current&&e.currentTarget===k.current)return;if(p&&lv(e.key,w,h))return jm(e),r(!1,e.nativeEvent,"list-navigation"),void(qh(o.domReference)&&(m?null==N||N.events.emit("virtualfocus",o.domReference):o.domReference.focus()));const t=C.current,a=qy(i,b),s=Zy(i,b);if(A||("Home"===e.key&&(jm(e),C.current=a,T(C.current)),"End"===e.key&&(jm(e),C.current=s,T(C.current))),x>1){const t=E||Array.from({length:i.current.length},(()=>({width:1,height:1}))),n=function(e,t,n){const r=[];let o=0;return e.forEach(((e,i)=>{let{width:a,height:s}=e,l=!1;for(n&&(o=0);!l;){const e=[];for(let n=0;n<a;n++)for(let r=0;r<s;r++)e.push(o+n+r*t);o%t+a<=t&&e.every((e=>null==r[e]))?(e.forEach((e=>{r[e]=i})),l=!0):o++}})),[...r]}(t,x,O),r=n.findIndex((e=>null!=e&&!eg(i.current,e,b))),o=n.reduce(((e,t,n)=>null==t||eg(i.current,t,b)?e:n),-1),l=n[function(e,t){let{event:n,orientation:r,loop:o,rtl:i,cols:a,disabledIndices:s,minIndex:l,maxIndex:c,prevIndex:u,stopEvent:f=!1}=t,d=u;if(n.key===Yy){if(f&&jm(n),-1===u)d=c;else if(d=Xy(e,{startingIndex:d,amount:a,decrement:!0,disabledIndices:s}),o&&(u-a<l||d<0)){const e=u%a,t=c%a,n=c-(t-e);d=t===e?c:t>e?n:n-a}$y(e,d)&&(d=u)}if(n.key===Wy&&(f&&jm(n),-1===u?d=l:(d=Xy(e,{startingIndex:u,amount:a,disabledIndices:s}),o&&u+a>c&&(d=Xy(e,{startingIndex:u%a-a,amount:a,disabledIndices:s}))),$y(e,d)&&(d=u)),"both"===r){const t=Nm(u/a);n.key===(i?Hy:Gy)&&(f&&jm(n),u%a!=a-1?(d=Xy(e,{startingIndex:u,disabledIndices:s}),o&&Qy(d,a,t)&&(d=Xy(e,{startingIndex:u-u%a-1,disabledIndices:s}))):o&&(d=Xy(e,{startingIndex:u-u%a-1,disabledIndices:s})),Qy(d,a,t)&&(d=u)),n.key===(i?Gy:Hy)&&(f&&jm(n),u%a!=0?(d=Xy(e,{startingIndex:u,decrement:!0,disabledIndices:s}),o&&Qy(d,a,t)&&(d=Xy(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s}))):o&&(d=Xy(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s})),Qy(d,a,t)&&(d=u));const r=Nm(c/a)===t;$y(e,d)&&(d=o&&r?n.key===(i?Gy:Hy)?c:Xy(e,{startingIndex:u-u%a-1,disabledIndices:s}):u)}return d}({current:n.map((e=>null!=e?i.current[e]:null))},{event:e,orientation:w,loop:d,rtl:h,cols:x,disabledIndices:Jy([...b||i.current.map(((e,t)=>eg(i.current,t)?t:void 0)),void 0],n),minIndex:r,maxIndex:o,prevIndex:Ky(C.current>s?a:C.current,t,n,x,e.key===Wy?"bl":e.key===(h?Hy:Gy)?"tr":"tl"),stopEvent:!0})];if(null!=l&&(C.current=l,T(C.current)),"both"===w)return}if(av(e.key,w)){if(jm(e),n&&!m&&cm(e.currentTarget.ownerDocument)===e.currentTarget)return C.current=sv(e.key,w,h)?a:s,void T(C.current);sv(e.key,w,h)?C.current=d?t>=s?f&&t!==i.current.length?-1:a:Xy(i,{startingIndex:t,disabledIndices:b}):Math.min(s,Xy(i,{startingIndex:t,disabledIndices:b})):C.current=d?t<=a?f&&-1!==t?i.current.length:s:Xy(i,{startingIndex:t,decrement:!0,disabledIndices:b}):Math.max(a,Xy(i,{startingIndex:t,decrement:!0,disabledIndices:b})),$y(i,C.current)?T(null):T(C.current)}})),K=s.useMemo((()=>m&&n&&q&&{"aria-activedescendant":G||W}),[m,n,q,G,W]),J=s.useMemo((()=>({"aria-orientation":"both"===w?void 0:w,...!Em(o.domReference)&&K,onKeyDown:X,onPointerMove(){P.current=!0}})),[K,X,o.domReference,w]),ee=s.useMemo((()=>{function e(e){"auto"===y&&pm(e.nativeEvent)&&(D.current=!0)}return{...K,onKeyDown(e){P.current=!1;const t=e.key.startsWith("Arrow"),o=["Home","End"].includes(e.key),a=t||o,s=function(e,t,n){return iv(t,n?e===Hy:e===Gy,e===Wy)}(e.key,w,h),l=lv(e.key,w,h),c=av(e.key,w),f=(p?s:c)||"Enter"===e.key||""===e.key.trim();if(m&&n){const t=null==N?void 0:N.nodesRef.current.find((e=>null==e.parentId)),n=N&&t?function(e,t){let n,r=-1;return function t(o,i){i>r&&(n=o,r=i),vg(e,o).forEach((e=>{t(e.id,i+1)}))}(t,0),e.find((e=>e.id===n))}(N.nodesRef.current,t.id):null;if(a&&n&&j){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(s||l){var d,y;const r=(null==(d=n.context)?void 0:d.elements.domReference)===e.currentTarget,o=l&&!r?null==(y=n.context)?void 0:y.elements.domReference:s?i.current.find((e=>(null==e?void 0:e.id)===W)):null;o&&(jm(e),o.dispatchEvent(t),Q(void 0))}var g;if((c||o)&&n.context&&n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return jm(e),void(null==(g=n.context.elements.domReference)||g.dispatchEvent(t))}return X(e)}(n||v||!t)&&(f&&(I.current=p&&c?null:e.key),p?s&&(jm(e),n?(C.current=qy(i,F.current),T(C.current)):r(!0,e.nativeEvent,"list-navigation")):c&&(null!=u&&(C.current=u),jm(e),!n&&v?r(!0,e.nativeEvent,"list-navigation"):X(e),n&&T(C.current)))},onFocus(){n&&!m&&T(null)},onPointerDown:function(e){D.current=y,"auto"===y&&hm(e.nativeEvent)&&(D.current=!0)},onMouseDown:e,onClick:e}}),[W,K,X,F,y,i,p,T,r,n,v,w,h,u,N,m,j]);return s.useMemo((()=>c?{reference:ee,floating:J,item:Z}:{}),[c,ee,J,Z])}const uv=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function fv(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:a="dialog"}=t,l=null!=(n=uv.get(a))?n:a,c=ag(),u=null!=ug(),f=s.useMemo((()=>"tooltip"===l||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":r?o:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&u&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}}),[l,o,u,r,c,a]),d=s.useMemo((()=>{const e={id:o,...l&&{role:l}};return"tooltip"===l||"label"===a?e:{...e,..."menu"===l&&{"aria-labelledby":c}}}),[l,o,c,a]),p=s.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[o,a]);return s.useMemo((()=>i?{reference:f,floating:d,item:p}:{}),[i,f,d,p])}const dv=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function pv(e,t){return"function"==typeof e?e(t):e}function hv(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,a=i-1;e<i;a=e++){const[i,s]=t[e]||[0,0],[l,c]=t[a]||[0,0];s>=r!=c>=r&&n<=(l-i)*(r-s)/(c-s)+i&&(o=!o)}return o}function mv(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,s=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:f,onClose:d,nodeId:p,tree:h}=e;return function(e){function m(){clearTimeout(o),d()}if(clearTimeout(o),!f.domReference||!f.floating||null==u||null==n||null==c)return;const{clientX:y,clientY:g}=e,v=[y,g],b=xm(e),w="mouseleave"===e.type,x=um(f.floating,b),M=um(f.domReference,b),j=f.domReference.getBoundingClientRect(),E=f.floating.getBoundingClientRect(),O=u.split("-")[0],k=n>E.right-E.width/2,S=c>E.bottom-E.height/2,N=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(v,j),T=E.width>j.width,A=E.height>j.height,D=(T?j:E).left,C=(T?j:E).right,I=(A?j:E).top,P=(A?j:E).bottom;if(x&&(i=!0,!w))return;if(M&&(i=!1),M&&!w)return void(i=!0);if(w&&$h(e.relatedTarget)&&um(f.floating,e.relatedTarget))return;if(h&&vg(h.nodesRef.current,p).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===O&&c>=j.bottom-1||"bottom"===O&&c<=j.top+1||"left"===O&&n>=j.right-1||"right"===O&&n<=j.left+1)return m();let _=[];switch(O){case"top":_=[[D,j.top+1],[D,E.bottom-1],[C,E.bottom-1],[C,j.top+1]];break;case"bottom":_=[[D,E.top+1],[D,j.bottom-1],[C,j.bottom-1],[C,E.top+1]];break;case"left":_=[[E.right-1,P],[E.right-1,I],[j.left+1,I],[j.left+1,P]];break;case"right":_=[[j.right-1,P],[j.right-1,I],[E.left+1,I],[E.left+1,P]]}if(!hv([y,g],_)){if(i&&!N)return m();if(!w&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===a||null===s||0===r)return a=e,s=t,l=n,null;const o=e-a,i=t-s,c=Math.sqrt(o*o+i*i);return a=e,s=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return m()}hv([y,g],function(e){let[n,r]=e;switch(O){case"top":return[[T?n+t/2:k?n+4*t:n-4*t,r+t+1],[T?n-t/2:k?n+4*t:n-4*t,r+t+1],[E.left,k||T?E.bottom-t:E.top],[E.right,k?T?E.bottom-t:E.top:E.bottom-t]];case"bottom":return[[T?n+t/2:k?n+4*t:n-4*t,r-t],[T?n-t/2:k?n+4*t:n-4*t,r-t],[E.left,k||T?E.top+t:E.bottom],[E.right,k?T?E.top+t:E.bottom:E.top+t]];case"left":{const e=[n+t+1,A?r+t/2:S?r+4*t:r-4*t],o=[n+t+1,A?r-t/2:S?r+4*t:r-4*t];return[[S||A?E.right-t:E.left,E.top],[S?A?E.right-t:E.left:E.right-t,E.bottom],e,o]}case"right":return[[n-t,A?r+t/2:S?r+4*t:r-4*t],[n-t,A?r-t/2:S?r+4*t:r-4*t],[S||A?E.left+t:E.right,E.top],[S?A?E.left+t:E.right:E.left+t,E.bottom]]}}([n,c]))?!i&&r&&(o=window.setTimeout(m,40)):m()}}};return c.__options={blockPointerEvents:n},c}const yv=({variant:e="dark",placement:t="bottom",title:n="",content:r,arrow:o=!1,open:i,setOpen:a,children:l,className:c,tooltipPortalRoot:u,tooltipPortalId:f,boundary:d="clippingAncestors",strategy:p="fixed",offset:h=8,triggers:m=["hover","focus"],interactive:y=!1})=>{const g=(0,s.useMemo)((()=>"boolean"==typeof i&&"function"==typeof a),[i,a]),[v,b]=(0,s.useState)(!1),w=(0,s.useRef)(null),{refs:x,floatingStyles:M,context:j}=Jg({open:g?i:v,onOpenChange:g?a:b,placement:t,strategy:p,middleware:[zy(h),Ly({boundary:d}),(_={boundary:d},{...ky(_),options:[_,undefined]}),Uy({element:w})],whileElementsMounted:Ey}),E=$g(j,{enabled:!g&&m.includes("click")}),O=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:a}=e,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:f=!1,restMs:d=0,move:p=!0}=t,h=fg(),m=ug(),y=pg(u),g=pg(c),v=pg(n),b=s.useRef(),w=s.useRef(-1),x=s.useRef(),M=s.useRef(-1),j=s.useRef(!0),E=s.useRef(!1),O=s.useRef((()=>{})),k=s.useRef(!1),S=s.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);s.useEffect((()=>{if(l)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(M.current),j.current=!0,k.current=!1)}}),[l,i]),s.useEffect((()=>{if(!l)return;if(!y.current)return;if(!n)return;function e(e){S()&&r(!1,e,"hover")}const t=bm(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,l,y,S]);const N=s.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=mg(g.current,"close",b.current);o&&!x.current?(clearTimeout(w.current),w.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(w.current),r(!1,e,n))}),[g,r]),T=Vy((()=>{O.current(),x.current=void 0})),A=Vy((()=>{if(E.current){const e=bm(a.floating).body;e.style.pointerEvents="",e.removeAttribute(hg),E.current=!1}})),D=Vy((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));s.useEffect((()=>{if(l&&$h(a.domReference)){var e;const r=a.domReference;return n&&r.addEventListener("mouseleave",s),null==(e=a.floating)||e.addEventListener("mouseleave",s),p&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",i),()=>{var e;n&&r.removeEventListener("mouseleave",s),null==(e=a.floating)||e.removeEventListener("mouseleave",s),p&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",i)}}function t(e){if(clearTimeout(w.current),j.current=!1,f&&!vm(b.current)||d>0&&!mg(g.current,"open"))return;const t=mg(g.current,"open",b.current);t?w.current=window.setTimeout((()=>{v.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function i(e){if(D())return;O.current();const t=bm(a.floating);if(clearTimeout(M.current),k.current=!1,y.current&&o.current.floatingContext){n||clearTimeout(w.current),x.current=y.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){A(),T(),D()||N(e,!0,"safe-polygon")}});const r=x.current;return t.addEventListener("mousemove",r),void(O.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==b.current||!um(a.floating,e.relatedTarget))&&N(e)}function s(e){D()||o.current.floatingContext&&(null==y.current||y.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){A(),T(),D()||N(e)}})(e))}}),[a,l,e,f,d,p,N,T,A,r,n,v,h,g,y,o,D]),tg((()=>{var e;if(l&&n&&null!=(e=y.current)&&e.__options.blockPointerEvents&&S()){E.current=!0;const e=a.floating;if($h(a.domReference)&&e){var t;const n=bm(a.floating).body;n.setAttribute(hg,"");const r=a.domReference,o=null==h||null==(t=h.nodesRef.current.find((e=>e.id===m)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[l,n,m,a,h,y,S]),tg((()=>{n||(b.current=void 0,k.current=!1,T(),A())}),[n,T,A]),s.useEffect((()=>()=>{T(),clearTimeout(w.current),clearTimeout(M.current),A()}),[l,a.domReference,T,A]);const C=s.useMemo((()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){j.current||v.current||r(!0,t,"hover")}f&&!vm(b.current)||n||0===d||k.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(M.current),"touch"===b.current?o():(k.current=!0,M.current=window.setTimeout(o,d)))}}}),[f,r,n,v,d]),I=s.useMemo((()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){D()||N(e.nativeEvent,!1)}})),[N,D]);return s.useMemo((()=>l?{reference:C,floating:I}:{}),[l,C,I])}(j,{move:!1,enabled:!g&&m.includes("hover"),...y&&{handleClose:mv()}}),k=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:a}=e,{enabled:l=!0,visibleOnly:c=!0}=t,u=s.useRef(!1),f=s.useRef(),d=s.useRef(!0);s.useEffect((()=>{if(!l)return;const e=Hh(a.domReference);function t(){!n&&qh(a.domReference)&&a.domReference===cm(bm(a.domReference))&&(u.current=!0)}function r(){d.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[a.domReference,n,l]),s.useEffect((()=>{if(l)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(u.current=!0)}}),[o,l]),s.useEffect((()=>()=>{clearTimeout(f.current)}),[]);const p=s.useMemo((()=>({onPointerDown(e){hm(e.nativeEvent)||(d.current=!1)},onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;const t=xm(e.nativeEvent);if(c&&$h(t))try{if(mm()&&gm())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!d.current&&!Mm(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=$h(t)&&t.hasAttribute(dg("focus-guard"))&&"outside"===t.getAttribute("data-type");f.current=window.setTimeout((()=>{var e;const s=cm(a.domReference?a.domReference.ownerDocument:document);(t||s!==a.domReference)&&(um(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,s)||um(a.domReference,s)||o||r(!1,n,"focus"))}))}})),[i,a.domReference,r,c]);return s.useMemo((()=>l?{reference:p}:{}),[l,p])}(j,{enabled:!g&&m.includes("focus")}),S=Kg(j),N=fv(j,{role:"tooltip"}),{getReferenceProps:T,getFloatingProps:A}=rv([E,O,k,S,N]),{isMounted:D,styles:C}=function(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:o,common:i,duration:a=250}=t,l=e.placement,c=l.split("-")[0],u=s.useMemo((()=>({side:c,placement:l})),[c,l]),f="number"==typeof a,d=(f?a:a.open)||0,p=(f?a:a.close)||0,[h,m]=s.useState((()=>({...pv(i,u),...pv(n,u)}))),{isMounted:y,status:g}=function(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,i=("number"==typeof o?o:o.close)||0,[a,l]=s.useState("unmounted"),c=function(e,t){const[n,r]=s.useState(e);return e&&!n&&r(!0),s.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>r(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,i);return c||"close"!==a||l("unmounted"),tg((()=>{if(r){if(n){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}l("close")}}),[n,r]),{isMounted:c,status:a}}(e,{duration:a}),v=pg(n),b=pg(r),w=pg(o),x=pg(i);return tg((()=>{const e=pv(v.current,u),t=pv(w.current,u),n=pv(x.current,u),r=pv(b.current,u)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===g&&m((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===g&&m({transitionProperty:Object.keys(r).map(dv).join(","),transitionDuration:d+"ms",...n,...r}),"close"===g){const r=t||e;m({transitionProperty:Object.keys(r).map(dv).join(","),transitionDuration:p+"ms",...n,...r})}}),[p,w,v,b,x,d,g,u]),{isMounted:y,styles:h}}(j,{duration:150,initial:{opacity:0},open:{opacity:1},close:{opacity:0}}),I={light:"bg-tooltip-background-light text-text-primary",dark:"bg-tooltip-background-dark text-text-on-color"}[e],P="dark"===e?"text-tooltip-background-dark":"text-tooltip-background-light";var _;return(0,Ee.jsxs)(s.Fragment,{children:[(0,s.isValidElement)(l)&&(0,Ee.jsx)(s.Fragment,{children:(0,s.cloneElement)(l,{ref:En(l.ref,x.setReference),className:xt(l.props.className),...T()})},"tooltip-reference"),(0,Ee.jsx)(zg,{id:f,root:u,children:D&&(0,Ee.jsxs)("div",{className:xt("absolute z-20 py-2 px-3 rounded-md text-xs leading-4 shadow-soft-shadow-lg",I,"max-w-80 w-fit",c),ref:x.setFloating,style:{...M,...C},...A(),children:[(0,Ee.jsxs)("div",{children:[!!n&&(0,Ee.jsx)("span",{className:"font-semibold",children:n},"tooltip-title"),!!r&&(0,Ee.jsx)("div",{className:"font-normal",children:r},"tooltip-content")]}),o&&(0,Ee.jsx)(sg,{ref:w,context:j,className:xt("fill-current",P)})]})})]})};yv.displayName="Tooltip";var gv=["title","content","placement","arrow","interactive","portalId","children"];function vv(){return vv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vv.apply(null,arguments)}const bv=function(e){var t=e.title,n=e.content,r=e.placement,o=void 0===r?"bottom":r,i=e.arrow,a=void 0===i||i,s=e.interactive,l=void 0!==s&&s,c=e.portalId,u=void 0===c?"srfm-settings-container":c,f=e.children,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,gv);return f?React.createElement(yv,vv({title:t,content:n,placement:o,arrow:a,interactive:l,tooltipPortalId:u},d),f):null};function wv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||xv(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xv(e,t){if(e){if("string"==typeof e)return Mv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mv(e,t):void 0}}function Mv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var jv=srfm_admin,Ev=jv.site_url,Ov=void 0===Ev?"":Ev,kv=jv.is_pro_active,Sv=void 0!==kv&&kv,Nv=jv.hide_promotions,Tv=void 0!==Nv&&Nv,Av=jv.additional_header_nav_items,Dv=void 0===Av?[]:Av,Cv=[{slug:"sureforms_menu",text:(0,je.__)("Dashboard","sureforms"),link:"".concat(Ov,"/wp-admin/admin.php?page=sureforms_menu")},{slug:"sureforms_forms",text:(0,je.__)("Forms","sureforms"),link:"".concat(Ov,"/wp-admin/admin.php?page=sureforms_forms")},{slug:"sureforms_entries",text:(0,je.__)("Entries","sureforms"),link:"".concat(Ov,"/wp-admin/admin.php?page=sureforms_entries")},{slug:"sureforms_payments",text:(0,je.__)("Payments","sureforms"),link:"".concat(Ov,"/wp-admin/admin.php?page=sureforms_payments")}].concat(function(e){return function(e){if(Array.isArray(e))return Mv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xv(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Dv),[{slug:"sureforms_form_settings",text:(0,je.__)("Settings","sureforms"),link:"".concat(Ov,"/wp-admin/admin.php?page=sureforms_form_settings&tab=general-settings")},{slug:"sureforms_learn",text:(0,je.__)("Learn","sureforms"),link:"".concat(Ov,"/wp-admin/admin.php?page=sureforms_learn")}]),Iv=function(e){var t=e.title,n=e.icon,r=e.onClick,o=e.children;return React.createElement(oh.Item,{className:"p-1 gap-2"},React.createElement(bv,{title:t,placement:"bottom",className:"z-999999",portalId:"srfm-dashboard-container-tooltip",variant:"dark"},o||React.createElement(Qt,{size:"xs",variant:"ghost",className:"p-0 focus:[box-shadow:none] [box-shadow:none] text-text-primary",onClick:r,icon:n})))},Pv=function(){return rh({uniqueKey:"sureforms",rssFeedURL:"https://sureforms.com/whats-new/feed/",selector:"#srfm_whats_new",icon:(0,i.renderToString)(React.createElement(Mh,{className:"size-4 m-1"})),flyout:{title:(0,je.__)("What's New?","sureforms")},triggerButton:{icon:(0,i.renderToString)(React.createElement(Mh,{className:"size-4 m-1 text-text-primary"}))}}),React.createElement(Iv,{title:(0,je.__)("What’s New","sureforms")},React.createElement("div",{id:"srfm_whats_new",className:"[&>a]:p-0.5 [&>a]:pl-0"}))};const _v=function(e){var t,n,r,o,a,s,l=e.breadCrumb,c=wv((0,i.useState)(null),2),u=c[0],f=c[1],d=wv((0,i.useState)((null===(t=srfm_admin)||void 0===t?void 0:t.is_license_active)||!1),2),p=d[0],h=d[1],m=(null===(n=srfm_admin)||void 0===n?void 0:n.is_first_form_created)||!1;return(0,i.useEffect)((function(){var e=new URLSearchParams(window.location.search),t=e.get("page");t||(t=e.get("post_type")),f(Cv.find((function(e){return e.slug===t})))}),[]),(0,i.useEffect)((function(){var e=function(e){null!=e&&e.detail&&h(e.detail.is_license_active)};return window.addEventListener("srfm_license_status_updated",e),function(){window.removeEventListener("srfm_license_status_updated",e)}}),[]),React.createElement("div",{className:"top-8 z-[1]"},!Sv&&!p&&"sureforms_menu"===(null==u?void 0:u.slug)&&m&&(null===(r=srfm_admin)||void 0===r?void 0:r.check_three_days_threshold)&&React.createElement(Nh,null),React.createElement(oh,{className:"py-0 px-4 min-h-0 h-14 gap-4 shadow-sm bg-background-primary/75 backdrop-blur-[5px]"},React.createElement(oh.Left,{className:"gap-3"},React.createElement(oh.Item,{className:"w-auto h-auto lg:hidden"},React.createElement(wh,null,React.createElement(wh.Toggle,{className:"size-6"}),React.createElement(wh.Options,null,Cv.map((function(e){return React.createElement(wh.Option,{key:e.slug,active:(null==u?void 0:u.slug)===e.slug,href:e.link,iconPosition:"left",rel:"noopener noreferrer",tag:"a",target:"_self"},e.text)})),!Sv&&!p&&React.createElement(wh.Option,{href:Cv[0].link,iconPosition:"left",rel:"noopener noreferrer",tag:"a",target:"_blank",className:"text-link-primary gap-1"},(0,je.__)("Upgrade SureForms","sureforms")," ",React.createElement(jh,{className:"!size-5"}))))),React.createElement(oh.Item,null,l?React.createElement(Ah,null):React.createElement(zp,null)),l&&!(null==l||!l.length)&&React.createElement(oh.Item,{className:"[&_li]:m-0 -ml-1"},React.createElement(Vh,{options:l}))),React.createElement(oh.Middle,{align:"left",className:"h-full hidden lg:flex"},React.createElement(oh.Item,null,!l&&React.createElement("nav",{className:"flex items-center gap-4 h-full"},Cv.map((function(e){return React.createElement("a",{className:ip("h-full text-text-secondary text-sm font-medium no-underline px-1 content-center relative focus:outline-none hover:text-text-primary focus:[box-shadow:none]",(null==u?void 0:u.slug)===(null==e?void 0:e.slug)&&'text-text-primary before:content-[""] before:absolute before:h-px before:bg-border-interactive before:bottom-0 before:inset-x-0'),href:e.link,key:e.slug},e.text)})))),!Sv&&!p&&React.createElement(oh.Item,null,React.createElement(Qt,{icon:React.createElement(jh,{className:"!size-5"}),iconPosition:"right",variant:"link",size:"sm",className:"h-full text-link-primary text-sm font-semibold no-underline hover:no-underline hover:text-link-primary-hover px-1 content-center [box-shadow:none] focus:[box-shadow:none] focus:outline-none",onClick:function(){var e,t;return window.open(op((null===(e=srfm_admin)||void 0===e?void 0:e.pricing_page_url)||(null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_pricing_page),"dashboard-header-cta"),"_blank","noreferrer")}},(0,je.__)("Upgrade SureForms","sureforms")))),React.createElement(oh.Right,null,React.createElement(oh.Item,{className:"flex gap-3 items-center"},React.createElement(Gt,{size:"xs",variant:"neutral",className:"text-text-tertiary"},null===(o=srfm_admin)||void 0===o?void 0:o.plugin_version),React.createElement(xh,{label:(0,je.__)("Core","sureforms"),className:"text-text-tertiary",size:"xs",type:"rounded",variant:"neutral"}),Sv&&React.createElement(React.Fragment,null,React.createElement("span",{className:"text-text-tertiary"},"|"),React.createElement(Gt,{size:"xs",variant:"neutral",className:"text-text-tertiary"},null===(a=srfm_admin)||void 0===a?void 0:a.pro_plugin_version),React.createElement(xh,{label:null===(s=srfm_admin)||void 0===s?void 0:s.pro_plugin_name.split(" ")[1],size:"xs",variant:"inverse",type:"rounded"}))),(Sv||p)&&React.createElement(oh.Item,null,React.createElement(Qt,{variant:"ghost",className:"p-0 hover:bg-transparent focus:[box-shadow:none] [box-shadow:none]",onClick:function(){p||window.open("".concat(Ov,"/wp-admin/admin.php?page=sureforms_form_settings&tab=account-settings"),"_self","noopener noreferrer")},icon:React.createElement(xh,{label:p?(0,je.__)("Activated","sureforms"):(0,je.__)("Unlicensed","sureforms"),size:"xs",variant:p?"green":"red"})})),React.createElement(Iv,{title:(0,je.__)("Knowledge Base","sureforms"),icon:React.createElement(Eh,{className:"size-4"}),onClick:function(){return window.open("https://sureforms.com/docs/","_blank","noopener noreferrer")}}),!Tv&&React.createElement(Pv,null))))},Rv=Kt("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),zv=Kt("Ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]),Lv=Kt("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Uv=Kt("MessagesSquare",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]]),Fv=Kt("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),Bv=function(){var e=[{key:"onboarding",label:(0,je.__)("Guided Setup","sureforms"),icon:React.createElement(Rv,{size:16}),link:"".concat(srfm_admin.sureforms_dashboard_url,"&srfm-activation-redirect=1")},{key:"support-ticket",label:(0,je.__)("Open Support Ticket","sureforms"),icon:React.createElement(zv,{size:16}),link:"https://sureforms.com/contact/"},{key:"help-center",label:(0,je.__)("Help Center","sureforms"),icon:React.createElement(Lv,{size:16}),link:"https://sureforms.com/docs/"},{key:"join-community",label:(0,je.__)("Join our Community on Facebook","sureforms"),icon:React.createElement(Uv,{size:16}),link:"https://www.facebook.com/groups/surecrafted"},{key:"rate-us",label:(0,je.__)("Leave Us a Review","sureforms"),icon:React.createElement(Fv,{size:16}),link:"https://wordpress.org/support/plugin/sureforms/reviews/?rate=5#new-post"}],t=function(){return e.map((function(e){var t=e.key,n=e.label,r=e.icon,o=e.link;return React.createElement(Yt,{key:t,align:"center",className:"gap-1 p-3 rounded-md bg-background-primary shadow-sm-blur-1"},React.createElement(Yt,{align:"center",className:"gap-1"},React.createElement(Yt.Item,{className:"flex"},r),React.createElement(Yt.Item,{className:"flex px-1 gap-2"},React.createElement("a",{className:"no-underline hover:underline",href:o,target:"onboarding"!==t?"_blank":"_self",rel:"noreferrer","aria-label":n},React.createElement(Gt,{size:"sm",className:"cursor-pointer"},n)))))}))};return React.createElement(Yt,{className:"w-full bg-background-primary border-0.5 border-solid rounded-xl border-border-subtle p-3 gap-2 shadow-sm",direction:"column"},React.createElement(Yt.Item,{className:"p-1 gap-2"},React.createElement(Gt,{size:"sm",className:"font-semibold"},(0,je.__)("Quick Access","sureforms"))),React.createElement(Yt.Item,{className:"flex flex-col bg-background-secondary gap-1 p-1 rounded-lg"},React.createElement(t,null)))},Vv=Kt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Yv=JSON.parse('{"rocket":"<svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 16 16\\" fill=\\"none\\" xmlns=\\"http://www.w3.org/2000/svg\\"><path d=\\"M3.00033 11C2.00033 11.84 1.66699 14.3333 1.66699 14.3333C1.66699 14.3333 4.16033 14 5.00033 13C5.47366 12.44 5.46699 11.58 4.94033 11.06C4.6812 10.8126 4.33985 10.6697 3.98181 10.6587C3.62376 10.6476 3.27424 10.7691 3.00033 11Z\\" stroke=\\"#D54407\\" stroke-width=\\"1.25\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\"/><path d=\\"M8 10.0001L6 8.00008C6.35476 7.0797 6.80147 6.19746 7.33333 5.36675C8.11012 4.12474 9.19175 3.10212 10.4753 2.39614C11.7589 1.69017 13.2018 1.32433 14.6667 1.33342C14.6667 3.14675 14.1467 6.33342 10.6667 8.66675C9.82459 9.19923 8.93123 9.64591 8 10.0001Z\\" stroke=\\"#D54407\\" stroke-width=\\"1.25\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\"/><path d=\\"M6.00033 8.00009H2.66699C2.66699 8.00009 3.03366 5.98009 4.00033 5.33343C5.08033 4.61343 7.33366 5.33343 7.33366 5.33343\\" stroke=\\"#D54407\\" stroke-width=\\"1.25\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\"/><path d=\\"M8 10.0001V13.3334C8 13.3334 10.02 12.9667 10.6667 12.0001C11.3867 10.9201 10.6667 8.66675 10.6667 8.66675\\" stroke=\\"#D54407\\" stroke-width=\\"1.25\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\"/></svg>"}');var Wv=o(50442);const Hv=Wv.default||Wv,Gv=function(){var e=[[(0,je.__)("Conversational Forms","sureforms"),(0,je.__)("File Uploads","sureforms")],[(0,je.__)("Conditional Logic","sureforms"),(0,je.__)("Signature & Rating","sureforms")],[(0,je.__)("Calculation Forms","sureforms"),(0,je.__)("And Much More…","sureforms")]];return React.createElement(Yt,{direction:"column",className:"bg-white p-3 rounded-xl shadow-sm-blur-1 border-0.5 border-solid border-border-subtle gap-2"},React.createElement(Yt.Item,{className:"flex justify-center p-2"},React.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzg0IiBoZWlnaHQ9IjIzMCIgdmlld0JveD0iMCAwIDM4NCAyMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik00Ny4yMzIzIDEwNS4wOTNMMzYuOTQxMSAxNDAuMTE0QzM2Ljk0MTEgMTQwLjExNCAzMC43MjAzIDE2MC4zODkgMzAuNzIwMyAxNjYuMDcyQzMwLjcyMDMgMTcxLjc1NSAzMy4xMDExIDE4NC45NjUgMzMuMTAxMSAxODQuOTY1TDE1LjEyOTkgMjIwLjc1NEg4MS43OTIzTDg4Ljg1NzkgMTk0LjI1OEM4OC44NTc5IDE5NC4yNTggMTA1LjYgMTc5LjU4OSAxMDYuODI5IDE3My4xMzhINzIuMTkyM0M3Mi4xOTIzIDE3My4xMzggNzIuODA2NyAxNDUuMjU5IDYwLjc0OTEgMTM1LjE5OUM2MC43NDkxIDEzNS4xOTkgNjkuNTA0MyAxMTIuMjM1IDYzLjI4MzUgMTAyLjk0M0M1Ny4wNjI3IDkzLjY0OTggNDguNDYxMSA5Ny4wMjkgNDcuMjMyMyAxMDUuMDkzWiIgZmlsbD0iI0ZGQzJBNyIvPgo8cGF0aCBkPSJNNzEuNTAxMSAxODUuMzQ5QzcxLjQyNDMgMTg1LjM0OSA3MS4yNzA3IDE4NS4zNDkgNzEuMTkzOSAxODUuMjcyQzcwLjY1NjMgMTg1LjExOCA3MC4zNDkxIDE4NC41ODEgNzAuNTAyNyAxODQuMDQzQzcxLjM0NzUgMTgxLjEyNSA3MS4xOTM5IDE3My4yOTEgNzEuMTkzOSAxNzMuMjE0QzcxLjE5MzkgMTcyLjY3NyA3MS42NTQ3IDE3Mi4xMzkgNzIuMTkyMyAxNzIuMTM5QzcyLjcyOTkgMTcyLjEzOSA3My4yNjc1IDE3Mi42IDczLjI2NzUgMTczLjEzOEM3My4yNjc1IDE3My40NDUgNzMuNDIxMSAxODEuMzU1IDcyLjQ5OTUgMTg0LjU4MUM3Mi4zNDU5IDE4NS4wNDIgNzEuOTYxOSAxODUuMzQ5IDcxLjUwMTEgMTg1LjM0OVoiIGZpbGw9IiNEODgyNjAiLz4KPHBhdGggZD0iTTc2LjcyMzUgMjAyLjAxNEM3Ni4xMDkxIDIwMi4wMTQgNzUuNzI1MSAyMDEuNTU0IDc1LjcyNTEgMjAwLjkzOUM3NS43MjUxIDIwMC40NzggNzYuMDMyMyAyMDAuMDk0IDc2LjQxNjMgMTk5Ljk0MUM4Mi40MDY3IDE5OC4xNzQgODguMDEzMSAxOTMuNDEzIDg4LjA4OTkgMTkzLjQxM0M4OC40NzM5IDE5My4wMjkgODkuMTY1MSAxOTMuMDI5IDg5LjU0OTEgMTkzLjQ5Qzg5LjkzMzEgMTkzLjg3NCA4OS45MzMxIDE5NC41NjUgODkuNDcyMyAxOTQuOTQ5TDg5LjM5NTUgMTk1LjAyNkM4OS4xNjUxIDE5NS4yNTYgODMuNDA1MSAyMDAuMDE4IDc2Ljk1MzkgMjAxLjkzOEM3Ni45NTM5IDIwMi4wMTQgNzYuODAwMyAyMDIuMDE0IDc2LjcyMzUgMjAyLjAxNFoiIGZpbGw9IiNEODgyNjAiLz4KPHBhdGggZD0iTTM1LjMyODEgMTkzLjI1OUMzNC45NDQxIDE5My4yNTkgMzQuNTYwMSAxOTMuMDI5IDM0LjQwNjUgMTkyLjcyMkMzNC4wOTkzIDE5MS45NTQgMzMuODY4OSAxOTEuMTA5IDMzLjcxNTMgMTkwLjI2NEMzMy4zMzEzIDE4OC42NTEgMzIuNzkzNyAxODYuMjcgMzIuMjU2MSAxODUuNTAyQzMxLjk0ODkgMTg1LjA0MiAzMi4wMjU3IDE4NC40MjcgMzIuNDg2NSAxODQuMDQzQzMyLjk0NzMgMTgzLjczNiAzMy41NjE3IDE4My44MTMgMzMuOTQ1NyAxODQuMjc0QzMzLjk0NTcgMTg0LjI3NCAzMy45NDU3IDE4NC4yNzQgMzMuOTQ1NyAxODQuMzVDMzQuNjM2OSAxODUuMzQ5IDM1LjA5NzcgMTg3LjM0NiAzNS43MTIxIDE4OS43MjZDMzUuODY1NyAxOTAuNDk0IDM2LjE3MjkgMTkxLjQ5MyAzNi4yNDk3IDE5MS43MjNDMzYuNDgwMSAxOTIuMjYxIDM2LjI0OTcgMTkyLjg3NSAzNS43ODg5IDE5My4xMDZDMzUuNjM1MyAxOTMuMTgyIDM1LjQ4MTcgMTkzLjI1OSAzNS4zMjgxIDE5My4yNTlaIiBmaWxsPSIjRDg4MjYwIi8+CjxwYXRoIGQ9Ik02MC43NDkgMTM2LjI3NEM2MC4zNjUgMTM2LjI3NCA2MC4wNTc4IDEzNi4wNDMgNTkuOTA0MiAxMzUuNzM2QzU4LjI5MTQgMTMzLjIwMiA1Ni4wNjQyIDEzMC4yMDYgNTUuMjk2MiAxMjkuODk5QzU0Ljc1ODYgMTI5Ljc0NiA1NC40NTE0IDEyOS4xMzEgNTQuNjA1IDEyOC41OTRDNTQuNzU4NiAxMjguMDU2IDU1LjM3MyAxMjcuNzQ5IDU1LjkxMDYgMTI3LjkwMkM1NS45ODc0IDEyNy45MDIgNTUuOTg3NCAxMjcuOTAyIDU2LjA2NDIgMTI3Ljk3OUM1Ny45MDc0IDEyOC42NyA2MC45MDI2IDEzMy4yNzggNjEuNzQ3NCAxMzQuNjYxQzYyLjA1NDYgMTM1LjEyMiA2MS45MDEgMTM1LjgxMyA2MS40NDAyIDEzNi4xMkM2MS4yMDk4IDEzNi4xOTcgNjAuOTc5NCAxMzYuMjc0IDYwLjc0OSAxMzYuMjc0WiIgZmlsbD0iI0Q4ODI2MCIvPgo8cGF0aCBkPSJNMTM1LjI0NSAxNzQuMjEzSDc2LjQxNkM3NS44Nzg0IDE3NC4yMTMgNzUuMzQwOCAxNzMuNzUyIDc1LjM0MDggMTczLjEzOEM3NS4zNDA4IDE3Mi41MjMgNzUuODAxNiAxNzIuMDYyIDc2LjQxNiAxNzIuMDYySDEzNS4yNDVDMTQwLjIzNyAxNzIuMDYyIDE0NC4zMDcgMTY3Ljk5MiAxNDQuMzA3IDE2M1Y1NC4wMjA4QzE0NC4zMDcgNDkuMDI4OCAxNDAuMjM3IDQ0Ljk1ODQgMTM1LjI0NSA0NC45NTg0SDYzLjY2NzJDNTguNjc1MyA0NC45NTg0IDU0LjYwNDggNDkuMDI4OCA1NC42MDQ4IDU0LjAyMDhWOTcuMzM2QzU0LjYwNDggOTcuODczNiA1NC4xNDQgOTguMzM0NCA1My41Mjk2IDk4LjMzNDRDNTIuOTkyIDk4LjMzNDQgNTIuNTMxMiA5Ny44NzM2IDUyLjUzMTIgOTcuMzM2VjU0LjAyMDhDNTIuNTMxMiA0Ny44NzY4IDU3LjUyMzMgNDIuODg0OCA2My42NjcyIDQyLjg4NDhIMTM1LjI0NUMxNDEuMzg5IDQyLjg4NDggMTQ2LjM4MSA0Ny44NzY4IDE0Ni4zODEgNTQuMDIwOFYxNjNDMTQ2LjM4MSAxNjkuMjIxIDE0MS4zODkgMTc0LjIxMyAxMzUuMjQ1IDE3NC4yMTNaIiBmaWxsPSIjMDAwMTExIi8+CjxwYXRoIGQ9Ik02MC45MDIzIDkzLjQxOTNWNTIuNDg0OUg4Mi4xNzU5QzgzLjQwNDcgNTIuNDg0OSA4NC40MDMxIDUzLjQ4MzMgODQuNDAzMSA1NC43MTIxVjU1Ljg2NDFDODQuNDAzMSA1Ny4wOTI5IDg1LjQwMTUgNTguMDkxMyA4Ni42MzAzIDU4LjA5MTNDODYuNjMwMyA1OC4wOTEzIDg2LjYzMDMgNTguMDkxMyA4Ni43MDcxIDU4LjA5MTNIMTE0LjEyNUMxMTUuMzU0IDU4LjA5MTMgMTE2LjM1MiA1Ny4wOTI5IDExNi4zNTIgNTUuODY0MUMxMTYuMzUyIDU0LjYzNTMgMTE3LjM1IDUzLjYzNjkgMTE4LjU3OSA1My42MzY5SDEzNS42MjlWMTYyLjM4Nkg3NS45NTUxQzc1Ljk1NTEgMTYyLjM4NiA3My44ODE1IDEzNi44MTEgNjUuNDMzNSAxMzAuNDM3QzY1LjQzMzUgMTMwLjQzNyA3Ny4yNjA3IDEwMi42MzUgNjAuOTAyMyA5My40MTkzWiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzEzODUzXzQ0MDQ5KSIvPgo8cGF0aCBkPSJNOTUuNjE2IDU0Ljk0MjRDOTcuMTAwNSA1NC45NDI0IDk4LjMwNCA1My43Mzg5IDk4LjMwNCA1Mi4yNTQ0Qzk4LjMwNCA1MC43Njk5IDk3LjEwMDUgNDkuNTY2NCA5NS42MTYgNDkuNTY2NEM5NC4xMzE0IDQ5LjU2NjQgOTIuOTI4IDUwLjc2OTkgOTIuOTI4IDUyLjI1NDRDOTIuOTI4IDUzLjczODkgOTQuMTMxNCA1NC45NDI0IDk1LjYxNiA1NC45NDI0WiIgZmlsbD0iIzAwMDExMSIvPgo8cGF0aCBkPSJNMTAyLjkxMiA1My42MzY5QzEwMy42NzUgNTMuNjM2OSAxMDQuMjk0IDUzLjAxOCAxMDQuMjk0IDUyLjI1NDVDMTA0LjI5NCA1MS40OTEgMTAzLjY3NSA1MC44NzIxIDEwMi45MTIgNTAuODcyMUMxMDIuMTQ4IDUwLjg3MjEgMTAxLjUzIDUxLjQ5MSAxMDEuNTMgNTIuMjU0NUMxMDEuNTMgNTMuMDE4IDEwMi4xNDggNTMuNjM2OSAxMDIuOTEyIDUzLjYzNjlaIiBmaWxsPSIjMDAwMTExIi8+CjxwYXRoIGQ9Ik0zMDIuODIyIDE3Mi4zN0gxNTEuNjhDMTUxLjE0MiAxNzIuMzcgMTUwLjYwNSAxNzEuOTA5IDE1MC42MDUgMTcxLjI5NEMxNTAuNjA1IDE3MC42OCAxNTEuMDY2IDE3MC4yMTkgMTUxLjY4IDE3MC4yMTlIMzAyLjgyMkMzMDYuNTg2IDE3MC4yMTkgMzA5LjY1OCAxNjcuMTQ3IDMwOS41ODEgMTYzLjM4NEMzMDkuNTgxIDE2MS4yMzQgMzA4LjU4MiAxNTkuMjM3IDMwNi44MTYgMTU3LjkzMUwyNjUuODA1IDEyNy45MDJDMjY1LjU3NCAxMjcuNjcyIDI2NS40MjEgMTI3LjM2NSAyNjUuNDIxIDEyNy4wNThWMTguNjkyN0MyNjUuNDIxIDE0LjA4NDcgMjYxLjY1OCAxMC4zMjE1IDI1Ni45NzMgMTAuMzIxNUgxMDQuMDY0Qzk5LjQ1NTkgMTAuMzIxNSA5NS42OTI3IDE0LjA4NDcgOTUuNjkyNyAxOC42OTI3VjQyLjY1NDNDOTUuNjkyNyA0My4xOTE5IDk1LjIzMTkgNDMuNzI5NSA5NC42OTQzIDQzLjcyOTVDOTQuMTU2NyA0My43Mjk1IDkzLjYxOTEgNDMuMjY4NyA5My42MTkxIDQyLjczMTFWMTguNzY5NUM5My42MTkxIDEzLjAwOTUgOTguMzAzOSA4LjMyNDcxIDEwNC4wNjQgOC4zMjQ3MUgyNTcuMDVDMjYyLjgxIDguMzI0NzEgMjY3LjQ5NCAxMy4wMDk1IDI2Ny40OTQgMTguODQ2M1YxMjYuNTJMMzA4LjEyMiAxNTYuMjQyQzMxMi4xMTUgMTU5LjE2IDMxMi45NiAxNjQuNjkgMzEwLjA0MiAxNjguNjgzQzMwOC4zNTIgMTcwLjk4NyAzMDUuNjY0IDE3Mi4zNyAzMDIuODIyIDE3Mi4zN1oiIGZpbGw9IiMwMDAxMTEiLz4KPHBhdGggZD0iTTI2Ni40MTkgMTI4LjEzM0gxNDUuODQzQzE0NS4zMDYgMTI4LjEzMyAxNDQuNzY4IDEyNy42NzIgMTQ0Ljc2OCAxMjcuMDU4QzE0NC43NjggMTI2LjQ0MyAxNDUuMjI5IDEyNS45ODIgMTQ1Ljg0MyAxMjUuOTgySDI2Ni40OTZDMjY3LjAzNCAxMjUuOTgyIDI2Ny41NzEgMTI2LjQ0MyAyNjcuNTcxIDEyNy4wNThDMjY3LjU3MSAxMjcuNjcyIDI2Ny4wMzQgMTI4LjEzMyAyNjYuNDE5IDEyOC4xMzNaIiBmaWxsPSIjMDAwMTExIi8+CjxwYXRoIGQ9Ik0yNTYuNjY1IDExOC43NjNIMTQ2LjE1QzE0NS42MTMgMTE4Ljc2MyAxNDUuMTUyIDExOC4zMDIgMTQ1LjE1MiAxMTcuNjg4QzE0NS4xNTIgMTE3LjE1IDE0NS42MTMgMTE2LjY4OSAxNDYuMTUgMTE2LjY4OUgyNTUuNjY3VjE4Ljk5OTdIMTAyLjI5N1Y0MS43MzI1QzEwMi4yOTcgNDIuMjcwMSAxMDEuODM3IDQyLjczMDkgMTAxLjIyMiA0Mi43MzA5QzEwMC42ODUgNDIuNzMwOSAxMDAuMjI0IDQyLjI3MDEgMTAwLjIyNCA0MS43MzI1VjE4LjAwMTNDMTAwLjIyNCAxNy40NjM3IDEwMC42ODUgMTcuMDAyOSAxMDEuMjIyIDE3LjAwMjlIMjU2LjU4OUMyNTcuMTI2IDE3LjAwMjkgMjU3LjY2NCAxNy40NjM3IDI1Ny42NjQgMTguMDAxM1YxMTcuNzY1QzI1Ny43NDEgMTE4LjMwMiAyNTcuMjggMTE4Ljc2MyAyNTYuNjY1IDExOC43NjNaIiBmaWxsPSIjMDAwMTExIi8+CjxwYXRoIGQ9Ik0xMTQuNTA5IDMzLjc0NTNDMTE2LjQ2IDMzLjc0NTMgMTE4LjA0MSAzMi4xNjM2IDExOC4wNDEgMzAuMjEyNUMxMTguMDQxIDI4LjI2MTQgMTE2LjQ2IDI2LjY3OTcgMTE0LjUwOSAyNi42Nzk3QzExMi41NTggMjYuNjc5NyAxMTAuOTc2IDI4LjI2MTQgMTEwLjk3NiAzMC4yMTI1QzExMC45NzYgMzIuMTYzNiAxMTIuNTU4IDMzLjc0NTMgMTE0LjUwOSAzMy43NDUzWiIgZmlsbD0idXJsKCNwYWludDFfbGluZWFyXzEzODUzXzQ0MDQ5KSIvPgo8cGF0aCBkPSJNMTI0LjQxNiAzMy43NDUzQzEyNi4zNjcgMzMuNzQ1MyAxMjcuOTQ5IDMyLjE2MzYgMTI3Ljk0OSAzMC4yMTI1QzEyNy45NDkgMjguMjYxNCAxMjYuMzY3IDI2LjY3OTcgMTI0LjQxNiAyNi42Nzk3QzEyMi40NjUgMjYuNjc5NyAxMjAuODgzIDI4LjI2MTQgMTIwLjg4MyAzMC4yMTI1QzEyMC44ODMgMzIuMTYzNiAxMjIuNDY1IDMzLjc0NTMgMTI0LjQxNiAzMy43NDUzWiIgZmlsbD0idXJsKCNwYWludDJfbGluZWFyXzEzODUzXzQ0MDQ5KSIvPgo8cGF0aCBkPSJNMTM0LjQgMzMuNzQ1M0MxMzYuMzUxIDMzLjc0NTMgMTM3LjkzMyAzMi4xNjM2IDEzNy45MzMgMzAuMjEyNUMxMzcuOTMzIDI4LjI2MTQgMTM2LjM1MSAyNi42Nzk3IDEzNC40IDI2LjY3OTdDMTMyLjQ0OSAyNi42Nzk3IDEzMC44NjcgMjguMjYxNCAxMzAuODY3IDMwLjIxMjVDMTMwLjg2NyAzMi4xNjM2IDEzMi40NDkgMzMuNzQ1MyAxMzQuNCAzMy43NDUzWiIgZmlsbD0idXJsKCNwYWludDNfbGluZWFyXzEzODUzXzQ0MDQ5KSIvPgo8cGF0aCBkPSJNMzA4LjM1MiAxNTkuODUxSDIyNS4xMDFDMjI0LjcxNyAxNTkuODUxIDIyNC40MDkgMTU5LjYyMSAyMjQuMTc5IDE1OS4zMTNMMjE4LjExMiAxNDguNzkySDE1OS41MTNMMTUzLjIxNiAxNTguODUzQzE1Mi45ODUgMTU5LjE2IDE1Mi42NzggMTU5LjMxMyAxNTIuMzcxIDE1OS4zMTNIMTQ1LjE1MkMxNDQuNjE0IDE1OS4zMTMgMTQ0LjA3NyAxNTguODUzIDE0NC4wNzcgMTU4LjIzOEMxNDQuMDc3IDE1Ny42MjQgMTQ0LjUzNyAxNTcuMTYzIDE0NS4xNTIgMTU3LjE2M0gxNTEuNzU3TDE1OC4wNTQgMTQ3LjE3OUMxNTguMjA4IDE0Ni44NzIgMTU4LjU5MiAxNDYuNzE4IDE1OC44OTkgMTQ2LjcxOEgyMTguNjQ5QzIxOS4wMzMgMTQ2LjcxOCAyMTkuMzQxIDE0Ni45NDkgMjE5LjU3MSAxNDcuMjU2TDIyNS42MzggMTU3Ljc3N0gzMDguMjc1QzMwOC44MTMgMTU3LjcwMSAzMDkuMzUgMTU4LjE2MSAzMDkuNDI3IDE1OC42OTlDMzA5LjUwNCAxNTkuMjM3IDMwOS4wNDMgMTU5Ljc3NCAzMDguNTA1IDE1OS44NTFDMzA4LjQyOSAxNTkuOTI4IDMwOC40MjkgMTU5LjkyOCAzMDguMzUyIDE1OS44NTFaIiBmaWxsPSIjMDAwMTExIi8+CjxwYXRoIGQ9Ik0yMjUuMTAxIDE1OS4zMTNIMTUyLjI5NEMxNTEuNzU3IDE1OS4zMTMgMTUxLjIxOSAxNTguODUzIDE1MS4yMTkgMTU4LjIzOEMxNTEuMjE5IDE1Ny42MjQgMTUxLjY4IDE1Ny4xNjMgMTUyLjI5NCAxNTcuMTYzSDIyNS4xMDFDMjI1LjYzOCAxNTcuMTYzIDIyNi4xNzYgMTU3LjYyNCAyMjYuMTc2IDE1OC4yMzhDMjI2LjE3NiAxNTguODUzIDIyNS42MzggMTU5LjMxMyAyMjUuMTAxIDE1OS4zMTNaIiBmaWxsPSIjMDAwMTExIi8+CjxwYXRoIGQ9Ik0yMTcuNTc0IDc0LjA2NTRIMTM0Ljg2MVYxMTcuNDU3SDIxNy41NzRWNzQuMDY1NFoiIGZpbGw9InVybCgjcGFpbnQ0X2xpbmVhcl8xMzg1M180NDA0OSkiLz4KPHBhdGggZD0iTTE2MC43NDIgNzQuMDY1NkMxNzIuMzIyIDc0LjA2NTYgMTgxLjcwOSA2NC42Nzg2IDE4MS43MDkgNTMuMDk5MkMxODEuNzA5IDQxLjUxOTggMTcyLjMyMiAzMi4xMzI4IDE2MC43NDIgMzIuMTMyOEMxNDkuMTYzIDMyLjEzMjggMTM5Ljc3NiA0MS41MTk4IDEzOS43NzYgNTMuMDk5MkMxMzkuNzc2IDY0LjY3ODYgMTQ5LjE2MyA3NC4wNjU2IDE2MC43NDIgNzQuMDY1NloiIGZpbGw9IiNGRUQ0OTAiLz4KPHBhdGggZD0iTTE1NS42NzQgNTQuNzg4OEMxNTEuMzczIDU0Ljc4ODggMTQ3LjkxNyA1My44NjcyIDE0Ni45OTUgNTEuMTc5MkMxNDUuNzY2IDQ3LjY0NjQgMTQ4LjE0NyA0My4xOTIgMTUzLjk4NCAzNy44MTZDMTU2Ljc0OSAzNS4zNTg0IDE1OS42NjcgMzMuMDU0NCAxNjIuNzM5IDMwLjk4MDhDMTYzLjIgMzAuNjczNiAxNjMuODkxIDMwLjgyNzIgMTY0LjE5OCAzMS4zNjQ4QzE2NC41MDYgMzEuODI1NiAxNjQuMzUyIDMyLjQ0IDE2My44OTEgMzIuNzQ3MkMxNTkuMTMgMzUuODE5MiAxNDcuMDcyIDQ1LjAzNTIgMTQ4Ljk5MiA1MC40ODhDMTUwLjUyOCA1NC45NDI0IDE2Ny44ODUgNTEuNzE2OCAxNzkuNjM1IDQ3Ljg3NjhDMTgwLjE3MyA0Ny43MjMyIDE4MC43ODcgNDguMDMwNCAxODAuOTQxIDQ4LjU2OEMxODEuMDk0IDQ5LjEwNTYgMTgwLjc4NyA0OS43MiAxODAuMjUgNDkuODczNkMxNzYuODcgNTAuOTQ4OCAxNjQuNDI5IDU0Ljc4ODggMTU1LjY3NCA1NC43ODg4WiIgZmlsbD0iIzAwMDExMSIvPgo8cGF0aCBkPSJNMTcwLjU3MyA3Mi4yOTkzQzE3MC4zNDIgNzIuMjk5MyAxNzAuMTg5IDcyLjIyMjUgMTY5Ljk1OCA3Mi4xNDU3QzE2OS40OTggNzEuODM4NSAxNjkuMzQ0IDcxLjE0NzMgMTY5LjcyOCA3MC42ODY1QzE2OS43MjggNzAuNjg2NSAxNzEuNTcxIDY3Ljk5ODUgMTcwLjk1NyA2NS42OTQ1QzE3MC40OTYgNjQuNDY1NyAxNjkuNDk4IDYzLjQ2NzMgMTY4LjI2OSA2My4wODMzQzE2My40MyA2MS4wMDk3IDE1Mi4yOTQgNjcuMjMwNSAxNDguMzc4IDY5Ljg0MTdDMTQ3LjkxNyA3MC4xNDg5IDE0Ny4yMjYgNjkuOTk1MyAxNDYuOTE4IDY5LjUzNDVDMTQ2LjYxMSA2OS4wNzM3IDE0Ni43NjUgNjguNDU5MyAxNDcuMjI2IDY4LjE1MjFDMTQ3Ljg0IDY3Ljc2ODEgMTYyLjI3OCA1OC4yNDQ5IDE2OS4xMTQgNjEuMjQwMUMxNzEuMTg3IDYyLjE2MTcgMTcyLjQ5MyA2My40NjczIDE3Mi45NTQgNjUuMjMzN0MxNzMuODc1IDY4LjQ1OTMgMTcxLjU3MSA3MS44Mzg1IDE3MS40OTQgNzEuOTkyMUMxNzEuMjY0IDcyLjE0NTcgMTcwLjk1NyA3Mi4yOTkzIDE3MC41NzMgNzIuMjk5M1oiIGZpbGw9IiMwMDAxMTEiLz4KPHBhdGggZD0iTTIwMS4yOTMgMTE4LjMwMkMyMDAuNzU1IDExOC4zMDIgMjAwLjI5NCAxMTcuODQxIDIwMC4yMTggMTE3LjMwNFY3NC44MzM1QzIwMC4yMTggNzQuMjk1OSAyMDAuNjc4IDczLjc1ODMgMjAxLjI5MyA3My43NTgzQzIwMS45MDcgNzMuNzU4MyAyMDIuMzY4IDc0LjIxOTEgMjAyLjM2OCA3NC44MzM1VjExNy4zMDRDMjAyLjI5MSAxMTcuODQxIDIwMS44MyAxMTguMzAyIDIwMS4yOTMgMTE4LjMwMloiIGZpbGw9IiMwMDAxMTEiLz4KPHBhdGggZD0iTTkxLjAwOCAxMTAuNTQ1QzgxLjU2MTYgMTEwLjU0NSA3My44ODE2IDEwMi44NjUgNzMuODgxNiA5My40MTg5QzczLjg4MTYgODMuOTcyNSA4MS41NjE2IDc2LjI5MjUgOTEuMDA4IDc2LjI5MjVDMTAwLjQ1NCA3Ni4yOTI1IDEwOC4xMzQgODMuOTcyNSAxMDguMTM0IDkzLjQxODlDMTA4LjA1OCAxMDIuODY1IDEwMC40NTQgMTEwLjU0NSA5MS4wMDggMTEwLjU0NVpNOTEuMDA4IDc4LjM2NjFDODIuNzEzNiA3OC4zNjYxIDc1Ljk1NTIgODUuMDQ3NyA3NS45NTUyIDkzLjM0MjFDNzUuOTU1MiAxMDEuNjM2IDgyLjYzNjggMTA4LjM5NSA5MC45MzEyIDEwOC4zOTVDOTkuMjI1NiAxMDguMzk1IDEwNS45ODQgMTAxLjcxMyAxMDUuOTg0IDkzLjQxODlDMTA1Ljk4NCA4NS4xMjQ1IDk5LjMwMjQgNzguNDQyOSA5MS4wMDggNzguMzY2MVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xMzQuODYxIDExOC4xNDlIODkuMDg3OUM4OC41NTAzIDExOC4xNDkgODguMDEyNyAxMTcuNjg4IDg4LjAxMjcgMTE3LjE1Qzg4LjAxMjcgMTE2Ljg0MyA4OC4xNjYzIDExNi41MzYgODguNDczNSAxMTYuMzA2TDEzNC4yNDYgODIuNDM2OEMxMzQuNzA3IDgyLjEyOTYgMTM1LjMyMSA4Mi4yMDY0IDEzNS43MDUgODIuNjY3MkMxMzUuODU5IDgyLjgyMDggMTM1LjkzNiA4My4wNTEyIDEzNS45MzYgODMuMjgxNlYxMTcuMTVDMTM1LjkzNiAxMTcuNjExIDEzNS40NzUgMTE4LjA3MiAxMzQuODYxIDExOC4xNDlaTTkyLjIzNjcgMTE2LjA3NUgxMzMuNzg1Vjg1LjI3ODRMOTIuMjM2NyAxMTYuMDc1WiIgZmlsbD0iIzAwMDExMSIvPgo8cGF0aCBkPSJNMjM1LjAwOCAxMTQuNjkzQzI0OC4xNTcgMTE0LjY5MyAyNTguODE2IDEwNC4wMzMgMjU4LjgxNiA5MC44ODQ3QzI1OC44MTYgNzcuNzM1OSAyNDguMTU3IDY3LjA3NjcgMjM1LjAwOCA2Ny4wNzY3QzIyMS44NTkgNjcuMDc2NyAyMTEuMiA3Ny43MzU5IDIxMS4yIDkwLjg4NDdDMjExLjIgMTA0LjAzMyAyMjEuODU5IDExNC42OTMgMjM1LjAwOCAxMTQuNjkzWiIgZmlsbD0idXJsKCNwYWludDVfbGluZWFyXzEzODUzXzQ0MDQ5KSIvPgo8cGF0aCBkPSJNMjAxLjc1NCA3NC4zNzI3QzIwMS4yMTYgNzQuMzcyNyAyMDAuNjc4IDczLjkxMTkgMjAwLjY3OCA3My4zNzQzQzIwMC42NzggNzMuMjk3NSAyMDAuNjc4IDczLjE0MzkgMjAwLjc1NSA3My4wNjcxTDIxMy44MTEgMjYuOTg3MUMyMTMuOTY1IDI2LjQ0OTUgMjE0LjUwMiAyNi4xNDIzIDIxNS4xMTcgMjYuMjk1OUMyMTUuMjcgMjYuMzcyNyAyMTUuNTAxIDI2LjQ0OTUgMjE1LjU3OCAyNi42MDMxTDI0Ny4yOTYgNjIuMDg0N0MyNDcuNjggNjIuNTQ1NSAyNDcuNjAzIDYzLjE1OTkgMjQ3LjIxOSA2My41NDM5QzI0Ny4wNjYgNjMuNjIwNyAyNDYuOTEyIDYzLjc3NDMgMjQ2Ljc1OCA2My43NzQzTDIwMS45ODQgNzQuMzcyN0MyMDEuOTA3IDc0LjM3MjcgMjAxLjgzIDc0LjM3MjcgMjAxLjc1NCA3NC4zNzI3Wk0yMTUuMjcgMjkuMzY3OUwyMDMuMjEzIDcxLjkxNTFMMjQ0LjYwOCA2Mi4xNjE1TDIxNS4yNyAyOS4zNjc5WiIgZmlsbD0iIzAwMDExMSIvPgo8cGF0aCBkPSJNMzEzLjM0NCAxMjguOTAxQzMxMS44ODUgMTI3LjI4OCAzMTAuMzQ5IDEyNS42NzUgMzA4Ljk2NiAxMjMuOTg2QzMwNC45NzMgMTE5LjUzMSAzMDEuMzYzIDExNC42OTMgMjk4LjEzOCAxMDkuNjI0QzI5NS4yOTYgMTA0Ljc4NiAyOTIuNjg1IDk5Ljc5MzcgMjkwLjM4MSA5NC43MjQ5QzI4Ni4zODcgODUuOTY5NyAyODIuNzAxIDc2LjEzOTMgMjgyLjc3OCA2Ni4zMDg5QzI4OC40NjEgNjcuNDYwOSAyOTUuNjggNzUuMzcxMyAyOTUuNjggNzUuMzcxM0MyOTUuNjggNzUuMzcxMyAyOTUuMTQyIDYxLjQ3MDUgMjkzLjQ1MyA1My43MTM3QzI4OS45OTcgMzcuMjc4NSAzMDMuOTc0IDI5LjgyODkgMzA5LjczNCAzNy41ODU3QzMwOS43MzQgMzcuNTg1NyAzMTQuNTczIDU3LjcwNzMgMzE3LjE4NCA2NS42OTQ1QzMxOS43OTUgNzMuNjgxNyAzMTguMTA2IDk5LjEwMjUgMzE0Ljg4IDExNS44NDVDMzE0LjAzNSAxMjAuMTQ2IDMxMy41NzQgMTI0LjUyMyAzMTMuMzQ0IDEyOC45MDFaIiBmaWxsPSIjRDg4MjYwIi8+CjxwYXRoIGQ9Ik0yNjkuMjYxIDEyMy40NDhDMjgwLjMyIDEyNS4wNjEgMjg3LjAwMiAxMTEuMTYgMjc4LjQ3NyAxMDMuODY0TDI3OC4yNDYgMTAzLjYzNEMyNzAuMzM2IDk3LjEwNTcgMjU2Ljg5NiA5MC42NTQ1IDI1Ni44OTYgOTAuNjU0NUMyNDEuMzA2IDk2LjAzMDUgMjI3LjAyMSA4Mi41OTA1IDIzNi45MjggNzYuNDQ2NUMyMzYuOTI4IDc2LjQ0NjUgMjU0Ljc0NiA3My45ODg5IDI2NC4xOTIgNzMuNjA0OUMyNzAuMDI5IDczLjM3NDUgMjgxLjcwMiA4MS42Njg5IDI4MS43MDIgODEuNjY4OUMyODEuNzAyIDgxLjY2ODkgMjc1LjQ4MiA2OS4yMjczIDI3MC43OTcgNjIuNzc2MUMyNjAuODkgNDkuMjU5MyAyNzAuNDkgMzYuNjY0MSAyNzkuMDE0IDQxLjM0ODlDMjc5LjAxNCA0MS4zNDg5IDI5MS42ODYgNTcuNzA3MyAyOTcuMzcgNjMuOTI4MUMzMDMuMDUzIDcwLjE0ODkgMzA5Ljg4OCA5NC41NzEzIDMxNS44NzggMTEwLjYyM0MzMjIuODY3IDEyOS4yODUgMzU5LjgwOCAyMTQuNzYzIDM2Mi4yNjYgMjIwLjgzMUwyNzguNzg0IDIyMC4zN0MyNzguNzg0IDIyMC4zNyAyNzEuMzM0IDE4Mi4yNzcgMjYyLjI3MiAxNzAuNjhDMjUzLjIxIDE1OS4wODMgMjMyLjkzNCAxNDEuNDk2IDIzMS45MzYgMTMwLjgyMUMyMjkuOTM5IDEyMS4yOTggMjMyLjkzNCAxMDcuMTY3IDI0Ni45MTIgMTE1Ljg0NUMyNTMuNTk0IDEyMC4yMjMgMjYyLjU3OSAxMjIuMzczIDI2OS4yNjEgMTIzLjQ0OFoiIGZpbGw9IiNGRkMyQTciLz4KPHBhdGggZD0iTTMwMy4wNTMgMTA2LjkzNkMzMDIuNTkyIDEwNi45MzYgMzAyLjIwOCAxMDYuNjI5IDMwMi4wNTQgMTA2LjE2OEMzMDAuOTc5IDEwMi43ODkgMjk5LjQ0MyA5OS42NDAxIDI5Ny40NDYgOTYuNzIxN0MyOTQuMzc0IDkyLjQyMDkgMjgxLjE2NSA4Mi41MTM3IDI4MS4wMTEgODIuNDM2OUMyODAuNTUgODIuMTI5NyAyODAuNDc0IDgxLjQzODUgMjgwLjc4MSA4MC45Nzc3QzI4MS4wODggODAuNTE2OSAyODEuNzc5IDgwLjQ0MDEgMjgyLjI0IDgwLjc0NzNDMjgyLjc3OCA4MS4xMzEzIDI5NS45MSA5MC44ODQ5IDI5OS4xMzYgOTUuNDkyOUMzMDEuMjEgOTguNTY0OSAzMDIuODk5IDEwMS45NDQgMzA0LjA1MSAxMDUuNTU0QzMwNC4yMDUgMTA2LjA5MSAzMDMuODk4IDEwNi43MDYgMzAzLjM2IDEwNi44NTlDMzAzLjIwNiAxMDYuOTM2IDMwMy4xMyAxMDYuOTM2IDMwMy4wNTMgMTA2LjkzNloiIGZpbGw9IiNEODgyNjAiLz4KPHBhdGggZD0iTTI4My43NzYgMTgxLjA0OEgyODMuNjk5QzI3Ni4wMTkgMTgwLjM1NyAyNjkuMTA3IDE3Ni4wNTYgMjY1LjAzNyAxNzMuNTIyQzI2NC4wMzggMTcyLjgzIDI2Mi45NjMgMTcyLjIxNiAyNjEuODg4IDE3MS42NzhDMjYxLjM1IDE3MS40NDggMjYxLjEyIDE3MC44MzQgMjYxLjM1IDE3MC4yOTZDMjYxLjU4MSAxNjkuNzU4IDI2Mi4xOTUgMTY5LjUyOCAyNjIuNzMzIDE2OS43NThDMjYzLjg4NSAxNzAuMzczIDI2NS4wMzcgMTcwLjk4NyAyNjYuMTg5IDE3MS43NTVDMjcwLjQxMyAxNzQuMzY2IDI3Ni43MSAxNzguMzYgMjgzLjkzIDE3OC45NzRDMjg0LjQ2NyAxNzkuMDUxIDI4NC45MjggMTc5LjU4OSAyODQuODUxIDE4MC4xMjZDMjg0LjY5OCAxODAuNjY0IDI4NC4zMTQgMTgxLjA0OCAyODMuNzc2IDE4MS4wNDhaIiBmaWxsPSIjRDg4MjYwIi8+CjxwYXRoIGQ9Ik0zMzAuNDcgMTYxLjU0MUMzMzAuMzE3IDE2MS41NDEgMzMwLjE2MyAxNjEuNTQxIDMzMC4wMSAxNjEuNDY0QzMyOS40NzIgMTYxLjIzNCAzMjkuMzE4IDE2MC42MTkgMzI5LjU0OSAxNjAuMDgyQzMzMi41NDQgMTU0LjAxNSAzMzAuMjQgMTUwLjg2NiAzMzAuMDg2IDE1MC43ODlDMzI5LjcwMiAxNTAuMzI4IDMyOS44NTYgMTQ5LjcxNCAzMzAuMjQgMTQ5LjMzQzMzMC43MDEgMTQ4Ljk0NiAzMzEuMzE1IDE0OS4wMjMgMzMxLjY5OSAxNDkuNDgzQzMzMS44NTMgMTQ5LjYzNyAzMzUuMDAyIDE1My43MDcgMzMxLjM5MiAxNjEuMDAzQzMzMS4yMzggMTYxLjMxMSAzMzAuODU0IDE2MS41NDEgMzMwLjQ3IDE2MS41NDFaIiBmaWxsPSIjRDg4MjYwIi8+CjxwYXRoIGQ9Ik0zNzUuMjQ1IDIyMS43NTJIOC43NTQ4OUM4LjIxNzI5IDIyMS43NTIgNy42Nzk2OSAyMjEuMjkxIDcuNjc5NjkgMjIwLjY3N0M3LjY3OTY5IDIyMC4wNjIgOC4xNDA0OSAyMTkuNjAyIDguNzU0ODkgMjE5LjYwMkgzNzUuMzIxQzM3NS44NTkgMjE5LjYwMiAzNzYuMzk2IDIyMC4wNjIgMzc2LjM5NiAyMjAuNjc3QzM3Ni4zOTYgMjIxLjI5MSAzNzUuODU5IDIyMS43NTIgMzc1LjI0NSAyMjEuNzUyWiIgZmlsbD0iIzAwMDExMSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzEzODUzXzQ0MDQ5IiB4MT0iMTQxLjE5MiIgeTE9IjEuNDk1NjUiIHgyPSI3NS45ODExIiB5Mj0iMTYyLjQ2OCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjRjM4Mzc0Ii8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0M2NDIzNCIvPgo8L2xpbmVhckdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MV9saW5lYXJfMTM4NTNfNDQwNDkiIHgxPSIxMDcuNjc4IiB5MT0iMTkuMDEyNSIgeDI9IjExOC43ODMiIHkyPSIzNy4xMjk2IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiNGMzgzNzQiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQzY0MjM0Ii8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQyX2xpbmVhcl8xMzg1M180NDA0OSIgeDE9IjExNy42MDIiIHkxPSIxOS4wMTU5IiB4Mj0iMTI4LjcwOCIgeTI9IjM3LjEzMzEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0YzODM3NCIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNDNjQyMzQiLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDNfbGluZWFyXzEzODUzXzQ0MDQ5IiB4MT0iMTI3LjUzMyIgeTE9IjE5LjAxNTkiIHgyPSIxMzguNjM4IiB5Mj0iMzcuMTMzMSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjRjM4Mzc0Ii8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0M2NDIzNCIvPgo8L2xpbmVhckdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50NF9saW5lYXJfMTM4NTNfNDQwNDkiIHgxPSIyMDQuMDA0IiB5MT0iMTcuMjI1NyIgeDI9IjE2My45NzYiIHkyPSIxMzAuNTIxIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiMwQTZCNUIiLz4KPHN0b3Agb2Zmc2V0PSIwLjc4IiBzdG9wLWNvbG9yPSIjMDA1MTQ2Ii8+CjxzdG9wIG9mZnNldD0iMC45MSIgc3RvcC1jb2xvcj0iIzAwNTA0NSIvPgo8L2xpbmVhckdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50NV9saW5lYXJfMTM4NTNfNDQwNDkiIHgxPSIyNTQuMDQ2IiB5MT0iMjUuMzY2NSIgeDI9IjIyNi4zNTIiIHkyPSIxMjAuNDkxIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiNGMzgzNzQiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQzY0MjM0Ii8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cgo=",alt:(0,je.__)("Upgrade to Pro","sureforms"),className:"w-60 h-auto"})),React.createElement(Yt,{className:"gap-1 p-2 w-full",direction:"column"},React.createElement(Yt.Item,{className:"gap-2 text-brand-800 capitalize font-semibold text-xs flex items-center"},Hv(Yv.rocket),(0,je.__)("Unlock Premium Features","sureforms")),React.createElement(Gt,{as:"h2",size:"lg",className:"text-[#141338] font-semibold text-lg"},(0,je.__)("Build Better Forms with SureForms","sureforms")),React.createElement(Gt,{size:"sm",className:"text-[#4F4E7C] text-sm font-normal leading-relaxed w-full"},(0,je.__)("Add advanced fields, conversational layouts, and smart logic to create forms that engage users and capture better data.","sureforms"))),React.createElement(Yt,{containerType:"grid",className:"grid-cols-2 gap-y-3 gap-x-6 w-full p-2"},e.flat().map((function(e,t){return React.createElement(Yt.Item,{key:t,className:"flex items-start gap-2 text-base text-[#141338]"},React.createElement(Vv,{className:"w-4 h-4 text-brand-800 mt-0.5"}),React.createElement(Gt,{size:"sm",className:"font-normal"},e))}))),React.createElement(Yt,{className:"pt-1.5 w-full p-2"},React.createElement(Qt,{className:"shadow-sm-blur-1 gap-1 w-full",size:"md",variant:"primary",onClick:function(){var e,t;return window.open(op((null===(e=srfm_admin)||void 0===e?void 0:e.pricing_page_url)||(null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_pricing_page),"dashboard-upgrade-to-pro-banner-cta"),"_blank","noreferrer")}},(0,je.__)("Upgrade Now","sureforms"))))},Qv=cn("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),$v=cn("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),qv=cn("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);let Zv=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};const Xv={sm:{icon:"[&>svg]:size-4",searchIcon:"[&>svg]:size-4",selectButton:"px-2.5 py-2 rounded text-xs font-medium leading-4 min-h-[2rem]",multiSelect:"pl-2 pr-2 py-1.5",displaySelected:"text-xs font-normal",dropdown:"rounded-md",dropdownItemsWrapper:"p-1.5",searchbarWrapper:"p-3 flex items-center gap-0.5",searchbar:"font-medium text-sm",searchbarIcon:"size-4",label:"text-sm font-medium"},md:{icon:"[&>svg]:size-5",searchIcon:"[&>svg]:size-5",selectButton:"px-3.5 py-2.5 rounded-md text-sm font-medium leading-4 min-h-[2.5rem]",multiSelect:"pl-2 pr-2.5 py-2",displaySelected:"text-sm font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"size-5",label:"text-sm font-medium"},lg:{icon:"[&>svg]:size-6",searchIcon:"[&>svg]:size-5",selectButton:"px-4 py-3 rounded-lg text-sm font-medium leading-5 min-h-[3rem]",multiSelect:"pl-2.5 pr-3 py-2.5",displaySelected:"text-base font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"size-5",label:"text-base font-medium"}},Kv="group-disabled:text-field-color-disabled",Jv={sm:"w-[calc(100%+0.75rem)] translate-x-[-0.375rem]",md:"w-[calc(100%+1rem)] translate-x-[-0.5rem]",lg:"w-[calc(100%+1rem)] translate-x-[-0.5rem]"},eb={sm:"py-1.5 px-2 text-xs font-normal",md:"p-2 text-sm font-normal",lg:"p-2 text-base font-normal"},tb=e=>null===e||"boolean"==typeof e?"":"string"==typeof e||"number"==typeof e?e.toString():Array.isArray(e)?e.map(tb).join(" ").trim():(0,s.isValidElement)(e)?e.props&&e.props.children?tb(e.props.children):"":"object"==typeof e&&"textContent"in e?e.textContent?.toString().toLowerCase()||"":"object"==typeof e&&"children"in e?tb(e.children):"",nb=cn("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),rb=({variant:e="primary",size:t="md",icon:n=null,className:r=""})=>{const o={primary:"text-brand-primary-600",secondary:"text-background-primary"}[e],i={sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6",xl:"[&>svg]:size-8"}[t];return(0,Ee.jsx)("span",{className:xt("flex",i,o,r),children:n||(0,Ee.jsx)(nb,{className:"animate-spin shrink-0"})})},ob=(0,s.createContext)({}),ib=()=>(0,s.useContext)(ob),ab=(0,s.forwardRef)((({children:e,icon:t=null,placeholder:n="Select an option",optionIcon:r=null,render:o,label:i,className:a,...l},c)=>{const{sizeValue:u,getReferenceProps:f,getValues:d,selectId:p,refs:h,isOpen:m,multiple:y,combobox:g,setSelected:v,onChange:b,isControlled:w,disabled:x,by:M}=ib(),j={sm:"xs",md:"sm",lg:"md"}[u],E=(0,s.useCallback)((()=>{if(t)return t;const e="text-field-placeholder group-disabled:text-icon-disabled";return g?(0,Ee.jsx)(Qv,{className:e}):(0,Ee.jsx)($v,{className:e})}),[t]),O=(0,s.useCallback)((()=>{const t=d();if(!t)return null;if(y)return t.map(((e,t)=>(0,Ee.jsx)(xh,{className:"cursor-default",icon:r,type:"rounded",size:j,onMouseDown:k(e),label:"function"==typeof o?o(e):e.toString(),closable:!0,disabled:x},t)));let n="string"==typeof t?t:"";if("function"==typeof o&&(n=o(t)),"function"==typeof e&&"function"!=typeof o){const r={value:t,...y?{onClose:k(t)}:{}};n=e(r)}return((0,s.isValidElement)(e)||"string"==typeof e)&&"function"!=typeof o&&(n=e),(0,Ee.jsx)("span",{className:xt("truncate",Xv[u].displaySelected,Kv),children:n})}),[d,x]),k=e=>t=>{t?.preventDefault(),t?.stopPropagation();const n=[...d()??[]],r=n.findIndex((t=>null!==t&&null!==e&&"object"==typeof t?t[M]===e[M]:t===e));-1!==r&&(n.splice(r,1),w||v(n),"function"==typeof b&&b(n))};return(0,Ee.jsxs)("div",{className:"w-full flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[!!i&&(0,Ee.jsx)("label",{className:xt(Xv[u]?.label,"text-field-label"),htmlFor:p,children:i}),(0,Ee.jsxs)("button",{id:p,ref:En(h.setReference,c),className:xt("flex items-center justify-between w-full box-border transition-[outline,background-color,color,box-shadow] duration-200 bg-white","outline outline-1 outline-field-border border-none cursor-pointer",!m&&"focus:ring-2 focus:ring-offset-2 focus:outline-focus-border focus:ring-focus [&:hover:not(:focus):not(:disabled)]:outline-border-strong",Xv[u].selectButton,y&&Xv[u].multiSelect,"group disabled:outline-field-border-disabled [&:hover:has(:disabled)]:outline-field-border-disabled disabled:cursor-default",a),tabIndex:0,disabled:x,...l,...f(),children:[(0,Ee.jsxs)("div",{className:xt("flex-1 grid items-center justify-start gap-1.5 overflow-hidden",d()&&"flex flex-wrap"),children:[O(),(y?!d()?.length:!d())&&(0,Ee.jsx)("div",{className:xt("[grid-area:1/1/2/3] text-field-input px-1",Xv[u].displaySelected,Kv),children:n})]}),(0,Ee.jsx)("div",{className:xt("flex items-center [&>svg]:shrink-0",Xv[u].icon),children:E()})]})]})}));function sb({label:e,children:t,className:n,...r}){const{index:o,totalGroups:i}=r,{sizeValue:a}=ib();return(0,Ee.jsxs)(s.Fragment,{children:[(0,Ee.jsxs)("div",{className:"flex flex-col",role:"group","aria-label":e,children:[(0,Ee.jsx)("div",{className:xt("p-2 font-normal text-text-tertiary",{sm:"text-xs",md:"text-xs",lg:"text-sm"}[a],n),id:`group-${e?.toLowerCase().replace(/\s+/g,"-")}`,children:e}),(0,Ee.jsx)("div",{className:"flex flex-col",role:"presentation","aria-labelledby":`group-${e?.toLowerCase().replace(/\s+/g,"-")}`,children:t})]}),o<i&&!!(t&&s.Children.count(t)>0)&&(0,Ee.jsx)("hr",{className:xt("h-px my-2 w-full border-border-subtle border-b border-t-0 border-solid",Jv[a])})]})}function lb({children:e,className:t}){const{isOpen:n,context:r,refs:o,combobox:i,floatingStyles:a,getFloatingProps:l,sizeValue:c,setSearchKeyword:u,setActiveIndex:f,setSelectedIndex:d,value:p,selected:h,getValues:m,searchKeyword:y,listContentRef:g,by:v,searchPlaceholder:b,activeIndex:w,searchFn:x,debounceDelay:M}=ib(),j=(0,s.useMemo)((()=>{const t=m();let n=-1;if(t){let r=s.Children.toArray(e);r.length>0&&(0,s.isValidElement)(r[0])&&r[0].type===sb&&(r=s.Children.toArray(e).map((e=>(0,s.isValidElement)(e)?s.Children.toArray(e.props.children):[])).flat()),n=r.findIndex((e=>{if(!(0,s.isValidElement)(e))return!1;const n=e.props.value;return"object"==typeof n&&"object"==typeof t?n[v]===t[v]:n===t}))}return n}),[p,h,e,v]);(0,s.useLayoutEffect)((()=>{n||(f(j),d(j))}),[j,n]),(0,s.useLayoutEffect)((()=>{n&&(i&&[-1,null].includes(w)||f(-1))}),[y,n]);const E=(0,s.useMemo)((()=>{let t=0,n=0;s.Children.forEach(e,(e=>{if((0,s.isValidElement)(e)&&e.type===sb){let n=!1;if(y&&!x){const t=y.toLowerCase(),r=(e.props.label?.toLowerCase()||"").includes(t),o=s.Children.toArray(e.props.children).some((e=>!!(0,s.isValidElement)(e)&&(tb(e.props.children)?.toLowerCase()).includes(t)));n=r||o}else n=!0;n&&t++}})),n=Math.max(0,t-1);let r=0,o=0;return s.Children.map(e,(e=>{if(!(0,s.isValidElement)(e))return null;if(e.type===sb){let t=!1;if(y&&!x){const n=y.toLowerCase();t=(e.props.label?.toLowerCase()||"").includes(n)}const i=s.Children.map(e.props.children,(e=>{if(!(0,s.isValidElement)(e))return null;if(t){const t={...e.props,index:r++};return(0,s.cloneElement)(e,t)}if(y&&!x){const t=tb(e.props.children)?.toLowerCase(),n=y.toLowerCase();if(!t?.includes(n))return null}const n={...e.props,index:r++};return(0,s.cloneElement)(e,n)}));if(!i?.some((e=>null!==e)))return null;const a={...e.props,children:i,index:o,totalGroups:n};return o++,(0,s.cloneElement)(e,a)}if(y&&!x){const t=tb(e.props?.children)?.toLowerCase(),n=y.toLowerCase();if(!t?.includes(n))return null}return(0,s.cloneElement)(e,{...e.props,index:r++})}))}),[y,p,h,e,x]),O=s.Children.count(E);(0,s.useEffect)((()=>{g.current=[];let t=s.Children.toArray(e);t&&(0,s.isValidElement)(t[0])&&t[0].type===sb&&(t=s.Children.toArray(t).map((e=>(0,s.isValidElement)(e)?e.props.children:null)).filter(Boolean)),s.Children.forEach(t,(e=>{if(!(0,s.isValidElement)(e))return;const t=tb(e.props?.children)?.toLowerCase();if(y&&!x){const e=y.toLowerCase();if(!t?.includes(e))return}g.current.push(t)}))}),[y,x]);const[k,S]=(0,s.useState)(!1),N=(0,s.useCallback)((async()=>{if(x&&"function"==typeof x&&!k){S(!0);try{await x(y)}catch(e){console.error(e)}finally{S(!1)}}}),[y]),T=((e,t=500)=>{const n=(0,s.useRef)(null);return(0,s.useCallback)(((...r)=>{n.current&&clearTimeout(n.current),n.current=setTimeout((()=>e(...r)),t)}),[e,t])})(N,M);return(0,s.useEffect)((()=>{"function"==typeof x&&T()}),[T]),(0,Ee.jsx)(Ee.Fragment,{children:n&&(0,Ee.jsx)(Ee.Fragment,{children:(0,Ee.jsx)(Hg,{context:r,modal:!1,visuallyHiddenDismiss:!0,children:(0,Ee.jsxs)("div",{ref:o.setFloating,className:xt("box-border [&_*]:box-border w-full bg-white outline-none shadow-lg outline outline-1 outline-border-subtle",i&&"grid grid-cols-1 grid-rows-[auto_1fr] divide-y divide-x-0 divide-solid divide-border-subtle",Xv[c].dropdown,!i&&"h-auto",i?"overflow-hidden":"overflow-y-auto overflow-x-hidden",t),style:{...a,zIndex:1},...l(),children:[i&&(0,Ee.jsxs)("div",{className:xt(Xv[c].searchbarWrapper),children:[k?(0,Ee.jsx)(rb,{className:Xv[c].searchbarIcon}):(0,Ee.jsx)(qv,{className:xt("text-icon-secondary shrink-0",Xv[c].searchbarIcon)}),(0,Ee.jsx)("input",{className:xt("px-1 w-full placeholder:text-field-placeholder border-0 focus:outline-none focus:shadow-none",Xv[c].searchbar),type:"search",name:"keyword",placeholder:b,onChange:e=>u(e.target.value),value:y,autoComplete:"off"})]}),(0,Ee.jsxs)("div",{className:xt("overflow-y-auto overflow-x-hidden",!i&&"w-full h-full",Xv[c].dropdownItemsWrapper),children:[!!O&&E,!O&&(0,Ee.jsx)("div",{className:xt("p-2 text-center font-medium text-field-placeholder",eb[c]),children:"No items found"})]})]})})})})}function cb({children:e,root:t,id:n}){return(0,Ee.jsx)(zg,{id:n,root:t,children:e})}function ub({value:e,selected:t,children:n,className:r,...o}){const{sizeValue:i,getItemProps:a,onKeyDownItem:l,onClickItem:c,activeIndex:u,selectedIndex:f,updateListRef:d,getValues:p,by:h,multiple:m}=ib(),{index:y}=o,g=(0,s.useRef)(y),v=(0,s.useMemo)((()=>{if(!m)return!1;const t=p();return!!t&&t.some((t=>null!==t&&null!==e&&"object"==typeof t?t[h]===e[h]:t===e))}),[e,p]),b=(0,s.useMemo)((()=>"boolean"==typeof t?t:m?v:y===f),[v,f,t]);return(0,Ee.jsxs)("div",{className:xt("w-full flex items-center justify-between text-text-primary hover:bg-button-tertiary-hover rounded-md transition-all duration-150 cursor-pointer focus:outline-none focus-within:outline-none outline-none",eb[i],y===u&&"bg-button-tertiary-hover",r),ref:e=>{d(y,e)},role:"option",tabIndex:y===u?0:-1,"aria-selected":b&&y===u,...a({onClick(){c(g.current,e)},onKeyDown(t){l(t,g.current,e)}}),children:[(0,Ee.jsx)("span",{className:"w-full truncate",children:n}),b&&(0,Ee.jsx)(mn,{className:xt("text-icon-on-color-disabled",{sm:"size-4",md:"size-4",lg:"size-5"}[i])})]})}const fb=({id:e,size:t="md",value:n,defaultValue:r,onChange:o,by:i="id",children:a,multiple:l=!1,combobox:c=!1,disabled:u=!1,searchPlaceholder:f="Search...",searchFn:d,debounceDelay:p=500})=>{const h=(0,s.useMemo)((()=>e||`select-${Zv()}`),[e]),m=(0,s.useMemo)((()=>typeof n<"u"),[n]),[y,g]=(0,s.useState)(r),[v,b]=(0,s.useState)(""),w=(0,s.useCallback)((()=>m?n:y),[m,n,y]),[x,M]=(0,s.useState)(!1),[j,E]=(0,s.useState)(null),[O,k]=(0,s.useState)(null),S={sm:c?256:172,md:c?256:216,lg:c?256:216},{refs:N,floatingStyles:T,context:A}=Jg({strategy:"fixed",placement:"bottom-start",open:x,onOpenChange:M,whileElementsMounted:Ey,middleware:[zy(5),Ly({padding:10}),(W={apply({rects:e,elements:n,availableHeight:r}){Object.assign(n.floating.style,{maxHeight:`min(${r}px, ${S[t]}px)`,maxWidth:`${e.reference.width}px`})},padding:10},{...Ny(W),options:[W,undefined]})]}),D=(0,s.useRef)([]),C=(0,s.useRef)([]),I=(0,s.useRef)(!1),P=$g(A,{event:"mousedown"}),_=Kg(A),R=fv(A,{role:"listbox"}),z=cv(A,{listRef:D,activeIndex:j,selectedIndex:O,onNavigate:E,loop:!0}),L=function(e,t){var n;const{open:r,dataRef:o}=e,{listRef:i,activeIndex:a,onMatch:l,onTypingChange:c,enabled:u=!0,findMatch:f=null,resetMs:d=750,ignoreKeys:p=[],selectedIndex:h=null}=t,m=s.useRef(),y=s.useRef(""),g=s.useRef(null!=(n=null!=h?h:a)?n:-1),v=s.useRef(null),b=Vy(l),w=Vy(c),x=pg(f),M=pg(p);tg((()=>{r&&(clearTimeout(m.current),v.current=null,y.current="")}),[r]),tg((()=>{var e;r&&""===y.current&&(g.current=null!=(e=null!=h?h:a)?e:-1)}),[r,h,a]);const j=Vy((e=>{e?o.current.typing||(o.current.typing=e,w(e)):o.current.typing&&(o.current.typing=e,w(e))})),E=Vy((e=>{function t(e,t,n){const r=x.current?x.current(t,n):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));return r?e.indexOf(r):-1}const n=i.current;if(y.current.length>0&&" "!==y.current[0]&&(-1===t(n,n,y.current)?j(!1):" "===e.key&&jm(e)),null==n||M.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;r&&" "!==e.key&&(jm(e),j(!0)),n.every((e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())}))&&y.current===e.key&&(y.current="",g.current=v.current),y.current+=e.key,clearTimeout(m.current),m.current=setTimeout((()=>{y.current="",g.current=v.current,j(!1)}),d);const o=g.current,a=t(n,[...n.slice((o||0)+1),...n.slice(0,(o||0)+1)],y.current);-1!==a?(b(a),v.current=a):" "!==e.key&&(y.current="",j(!1))})),O=s.useMemo((()=>({onKeyDown:E})),[E]),k=s.useMemo((()=>({onKeyDown:E,onKeyUp(e){" "===e.key&&j(!1)}})),[E,j]);return s.useMemo((()=>u?{reference:O,floating:k}:{}),[u,O,k])}(A,{listRef:C,activeIndex:j,selectedIndex:O,onMatch:x?E:k,onTypingChange(e){I.current=e}}),{getReferenceProps:U,getFloatingProps:F,getItemProps:B}=rv([_,R,z,P,...c?[]:[L]]),V=(e,t)=>{if(l)return((e,t)=>{const n=[...w()??[]];-1===n.findIndex((e=>null!==e&&null!==t&&"object"==typeof e?e[i]===t[i]:e===t))&&(n.push(t),m||g(n),k(e),N.reference.current.focus(),M(!1),b(""),"function"==typeof o&&o(n))})(e,t);k(e),m||g(t),N.reference.current.focus(),M(!1),b(""),"function"==typeof o&&o(t)},Y=(0,s.useCallback)(((e,t)=>{D.current[e]=t}),[]);var W;return(0,Ee.jsx)(ob.Provider,{value:{selectedIndex:O,setSelectedIndex:k,activeIndex:j,setActiveIndex:E,selected:y,setSelected:g,handleSelect:V,combobox:c,sizeValue:t,multiple:l,onChange:o,isTypingRef:I,getItemProps:B,onClickItem:(e,t)=>{V(e,t)},onKeyDownItem:(e,t,n)=>{"Enter"===e.key&&(e.preventDefault(),V(t,n))," "===e.key&&!I.current&&(e.preventDefault(),V(t,n))},getValues:w,selectId:h,getReferenceProps:U,isOpen:x,value:n,updateListRef:Y,refs:N,listContentRef:C,by:i,getFloatingProps:F,floatingStyles:T,context:A,searchKeyword:v,setSearchKeyword:b,disabled:u,isControlled:m,searchPlaceholder:f,searchFn:d,debounceDelay:p},children:a})};fb.displayName="Select";const db=Object.assign(fb,{Portal:cb,Button:ab,Options:lb,Option:ub,OptionGroup:sb});cb.displayName="Select.Portal",ab.displayName="Select.Button",lb.displayName="Select.Options",ub.displayName="Select.Option",sb.displayName="Select.OptionGroup";const pb=cn("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),hb=(0,s.forwardRef)((({id:e,type:t="text",defaultValue:n="",value:r,size:o="sm",className:i="",disabled:a=!1,onChange:l=()=>{},error:c=!1,onError:u=()=>{},prefix:f=null,suffix:d=null,label:p="",...h},m)=>{const y=(0,s.useRef)(null),g=(0,s.useMemo)((()=>e||`input-${t}-${Zv()}`),[e]),v=(0,s.useMemo)((()=>typeof r<"u"),[r]),[b,w]=(0,s.useState)(n),[x,M]=(0,s.useState)(null),j=(0,s.useCallback)((()=>v?r:b),[v,r,b]),E=e=>{if(a)return;let n;"file"===t?(n=e.target.files,n&&n.length>0?M(n[0].name):M(null)):n=e.target.value,!v&&"file"!==t&&w(n),"function"==typeof l&&l(n)},O=()=>{M(null),y.current&&(y.current.value=""),l(null)},k="bg-field-secondary-background font-normal placeholder-text-tertiary text-text-primary w-full outline outline-1 outline-border-subtle border-none transition-[color,box-shadow,outline] duration-200",S={xs:"px-2 py-1 rounded",sm:"p-3 py-2 rounded",md:"p-3.5 py-2.5 rounded-md",lg:"p-4 py-3 rounded-lg"},N={xs:"text-xs font-medium",sm:"text-sm font-medium",md:"text-sm font-medium",lg:"text-base font-medium"},T={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-base"},A={sm:f?"pl-8":"",md:f?"pl-9":"",lg:f?"pl-10":""},D={sm:d?"pr-8":"",md:d?"pr-9":"",lg:d?"pr-10":""},C=a?"hover:outline-border-disabled":"hover:outline-border-strong",I="focus:outline-focus-border focus:ring-2 focus:ring-toggle-on focus:ring-offset-2",P=c?"focus:outline-focus-error-border focus:ring-field-color-error outline-focus-error-border":"",_=c?"focus:outline-focus-error-border focus:ring-field-color-error outline-focus-error-border":"",R=a?"outline-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled":"",z=a?"outline-border-disabled cursor-not-allowed text-text-disabled file:text-text-tertiary":"",L="font-normal placeholder-text-tertiary text-text-primary pointer-events-none absolute inset-y-0 flex flex-1 items-center [&>svg]:h-4 [&>svg]:w-4",U=a?"font-normal placeholder-text-tertiary text-icon-disabled pointer-events-none absolute inset-y-0 flex flex-1 items-center":"font-normal placeholder-text-tertiary text-field-placeholder pointer-events-none absolute inset-y-0 flex flex-1 items-center",F={xs:"[&>svg]:size-4",sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6"},B=(0,s.useMemo)((()=>p?(0,Ee.jsx)(Gt,{className:xt(N[o]),htmlFor:g,...h?.required&&{required:!0},children:p}):null),[p,o,g]),V=x?"file:border-0 file:bg-transparent pr-10":"text-text-tertiary file:border-0 file:bg-transparent pr-10";return"file"===t?(0,Ee.jsxs)("div",{className:"flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[B,(0,Ee.jsxs)("div",{className:xt("w-full relative flex focus-within:z-10",i),children:[(0,Ee.jsx)("input",{ref:En(y,m),id:g,type:"file",className:xt(k,z,S[o],T[o],I,C,_,V),disabled:a,onChange:E,onInvalid:u,...h}),(0,Ee.jsx)("div",{className:xt(U,"right-0 pr-3",F[o]),children:(0,Ee.jsx)(pb,{})})]})]}):(0,Ee.jsxs)("div",{className:"flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[B,(0,Ee.jsxs)("div",{className:xt("w-full relative flex focus-within:z-10",i),children:[f?(0,Ee.jsx)("div",{className:xt(L,"left-0 pl-3",T[o]),children:f}):null,(0,Ee.jsx)("input",{ref:En(y,m),id:g,type:t,className:xt(k,R,S[o],T[o],A[o],D[o],I,C,P),disabled:a,onChange:E,onInvalid:u,value:j(),...h}),"file"===t?x?(0,Ee.jsx)("div",{className:xt(U,"right-0 pr-3 cursor-pointer z-20 pointer-events-auto",F[o]),onClick:O,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&O()},children:(0,Ee.jsx)(un,{})}):(0,Ee.jsx)("div",{className:xt(U,"right-0 pr-3",F[o]),children:(0,Ee.jsx)(pb,{})}):d?(0,Ee.jsx)("div",{className:xt(L,"right-0 pr-3",T[o]),children:d}):null]})]})}));hb.displayName="Input";const mb=cn("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),yb=(0,s.createContext)(void 0);function gb(){const e=(0,s.useContext)(yb);if(void 0===e)throw new Error("useDayPicker() must be used within a custom component.");return e}var vb,bb,wb,xb;!function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"}(vb||(vb={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(bb||(bb={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}(wb||(wb={})),function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"}(xb||(xb={})),Symbol.for("constructDateFrom");const Mb={},jb={};function Eb(e,t){try{const n=(Mb[e]||=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format)(t).split("GMT")[1]||"";return n in jb?jb[n]:kb(n,n.split(":"))}catch{if(e in jb)return jb[e];const t=e?.match(Ob);return t?kb(e,t.slice(1)):NaN}}const Ob=/([+-]\d\d):?(\d\d)?/;function kb(e,t){const n=+t[0],r=+(t[1]||0);return jb[e]=n>0?60*n+r:60*n-r}class Sb extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(Eb(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),Ab(this),Tb(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new Sb(...t,e):new Sb(Date.now(),e)}withTimeZone(e){return new Sb(+this,e)}getTimezoneOffset(){return-Eb(this.timeZone,this)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Tb(this),+this}[Symbol.for("constructDateFrom")](e){return new Sb(+new Date(e),this.timeZone)}}const Nb=/^(get|set)(?!UTC)/;function Tb(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function Ab(e){const t=Eb(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const r=-new Date(+e).getTimezoneOffset(),o=r- -new Date(+n).getTimezoneOffset(),i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();o&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+o);const a=r-t;a&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+a);const s=Eb(e.timeZone,e),l=-new Date(+e).getTimezoneOffset()-s-a;if(s!==t&&l){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const t=s-Eb(e.timeZone,e);t&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+t),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+t))}}Object.getOwnPropertyNames(Date.prototype).forEach((e=>{if(!Nb.test(e))return;const t=e.replace(Nb,"$1UTC");Sb.prototype[t]&&(e.startsWith("get")?Sb.prototype[e]=function(){return this.internal[t]()}:(Sb.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),function(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Ab(e)}(this),+this},Sb.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Tb(this),+this}))}));class Db extends Sb{static tz(e,...t){return t.length?new Db(...t,e):new Db(Date.now(),e)}toISOString(){const[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,t,n,r]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${function(e,t){return new Intl.DateTimeFormat("en-GB",{timeZone:e,timeZoneName:"long"}).format(t).slice(12)}(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(e){return new Db(+this,e)}[Symbol.for("constructDateFrom")](e){return new Db(+new Date(e),this.timeZone)}}function Cb(e,t,n){const r=xd(e,n?.in);return isNaN(t)?wd(n?.in||e,NaN):t?(r.setDate(r.getDate()+t),r):r}function Ib(e,t,n){const r=xd(e,n?.in);if(isNaN(t))return wd(n?.in||e,NaN);if(!t)return r;const o=r.getDate(),i=wd(n?.in||e,r.getTime());return i.setMonth(r.getMonth()+t+1,0),o>=i.getDate()?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}function Pb(e,t){const n=gd(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=xd(e,t?.in),i=o.getDay(),a=6+(i<r?-7:0)-(i-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function _b(e,t){const n=xd(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Rb(e,t){return+xd(e)>+xd(t)}function zb(e,t){return+xd(e)<+xd(t)}function Lb(e,t,n){const r=xd(e,n?.in),o=r.getFullYear(),i=r.getDate(),a=wd(n?.in||e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const s=function(e,t){const n=xd(e,t?.in),r=n.getFullYear(),o=n.getMonth(),i=wd(n,0);return i.setFullYear(r,o+1,0),i.setHours(0,0,0,0),i.getDate()}(a);return r.setMonth(t,Math.min(i,s)),r}function Ub(e,t){const n=xd(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Fb(e,t){const n=t.startOfMonth(e),r=n.getDay();return 1===r?n:0===r?t.addDays(n,-6):t.addDays(n,-1*(r-1))}class Bb{constructor(e,t){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Db.tz(this.options.timeZone):new this.Date,this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new Db(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):Cb(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):Ib(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):function(e,t,n){return Cb(e,7*t,n)}(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):function(e,t,n){return Ib(e,12*t,n)}(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):Od(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):function(e,t,n){const[r,o]=jd(n?.in,e,t);return 12*(r.getFullYear()-o.getFullYear())+(r.getMonth()-o.getMonth())}(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):function(e,t){const{start:n,end:r}=function(e,t){const[n,r]=jd(e,t.start,t.end);return{start:n,end:r}}(t?.in,e);let o=+n>+r;const i=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,o=!o);const l=[];for(;+a<=i;)l.push(wd(n,a)),a.setMonth(a.getMonth()+s);return o?l.reverse():l}(e),this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e,this):function(e,t){const n=Fb(e,t),r=function(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,1-r),i=t.addDays(o,34);return t.getMonth(e)===t.getMonth(i)?5:4}(e,t);return t.addDays(n,7*r-1)}(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):function(e,t){return Pb(e,{...t,weekStartsOn:1})}(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):_b(e),this.endOfWeek=e=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,this.options):Pb(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):function(e,t){const n=xd(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}(e),this.format=(e,t)=>{const n=this.overrides?.format?this.overrides.format(e,t,this.options):Xd(e,t,this.options);return this.options.numerals&&"latn"!==this.options.numerals?this.replaceDigits(n):n},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):Ad(e),this.getMonth=e=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):function(e,t){return xd(e,t?.in).getMonth()}(e,this.options),this.getYear=e=>this.overrides?.getYear?this.overrides.getYear(e,this.options):function(e,t){return xd(e,t?.in).getFullYear()}(e,this.options),this.getWeek=e=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):Cd(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):Rb(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):zb(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):Hd(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):function(e,t,n){const[r,o]=jd(n?.in,e,t);return+Ed(r)==+Ed(o)}(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):function(e,t,n){const[r,o]=jd(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):function(e,t,n){const[r,o]=jd(n?.in,e,t);return r.getFullYear()===o.getFullYear()}(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):function(e,t){let n,r=t?.in;return e.forEach((e=>{r||"object"!=typeof e||(r=wd.bind(null,e));const t=xd(e,r);(!n||n<t||isNaN(+t))&&(n=t)})),wd(r,n||NaN)}(e),this.min=e=>this.overrides?.min?this.overrides.min(e):function(e,t){let n,r=t?.in;return e.forEach((e=>{r||"object"!=typeof e||(r=wd.bind(null,e));const t=xd(e,r);(!n||n>t||isNaN(+t))&&(n=t)})),wd(r,n||NaN)}(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):Lb(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):function(e,t,n){const r=xd(e,n?.in);return isNaN(+r)?wd(n?.in||e,NaN):(r.setFullYear(t),r)}(e,t),this.startOfBroadcastWeek=e=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):Fb(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):Ed(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):Nd(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):Ub(e),this.startOfWeek=e=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):Sd(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):kd(e),this.options={locale:md,...e},this.overrides=t}getDigitMap(){const{numerals:e="latn"}=this.options,t=new Intl.NumberFormat("en-US",{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){const t=this.getDigitMap();return e.replace(/\d/g,(e=>t[e]||e))}formatNumber(e){return this.replaceDigits(e.toString())}}const Vb=new Bb;function Yb(e){return s.createElement("button",{...e})}function Wb(e){return s.createElement("span",{...e})}function Hb(e){const{size:t=24,orientation:n="left",className:r}=e;return s.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},"up"===n&&s.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===n&&s.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===n&&s.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===n&&s.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function Gb(e){const{day:t,modifiers:n,...r}=e;return s.createElement("td",{...r})}function Qb(e){const{day:t,modifiers:n,...r}=e,o=s.useRef(null);return s.useEffect((()=>{n.focused&&o.current?.focus()}),[n.focused]),s.createElement("button",{ref:o,...r})}function $b(e){const{options:t,className:n,components:r,classNames:o,...i}=e,a=[o[vb.Dropdown],n].join(" "),l=t?.find((({value:e})=>e===i.value));return s.createElement("span",{"data-disabled":i.disabled,className:o[vb.DropdownRoot]},s.createElement(r.Select,{className:a,...i},t?.map((({value:e,label:t,disabled:n})=>s.createElement(r.Option,{key:e,value:e,disabled:n},t)))),s.createElement("span",{className:o[vb.CaptionLabel],"aria-hidden":!0},l?.label,s.createElement(r.Chevron,{orientation:"down",size:18,className:o[vb.Chevron]})))}function qb(e){return s.createElement("div",{...e})}function Zb(e){return s.createElement("div",{...e})}function Xb(e){const{calendarMonth:t,displayIndex:n,...r}=e;return s.createElement("div",{...r},e.children)}function Kb(e){const{calendarMonth:t,displayIndex:n,...r}=e;return s.createElement("div",{...r})}function Jb(e){return s.createElement("table",{...e})}function ew(e){return s.createElement("div",{...e})}function tw(e){const{components:t}=gb();return s.createElement(t.Dropdown,{...e})}function nw(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...i}=e,{components:a,classNames:l,labels:{labelPrevious:c,labelNext:u}}=gb(),f=(0,s.useCallback)((e=>{o&&n?.(e)}),[o,n]),d=(0,s.useCallback)((e=>{r&&t?.(e)}),[r,t]);return s.createElement("nav",{...i},s.createElement(a.PreviousMonthButton,{type:"button",className:l[vb.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":c(r),onClick:d},s.createElement(a.Chevron,{disabled:!r||void 0,className:l[vb.Chevron],orientation:"left"})),s.createElement(a.NextMonthButton,{type:"button",className:l[vb.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":!o||void 0,"aria-label":u(o),onClick:f},s.createElement(a.Chevron,{disabled:!o||void 0,orientation:"right",className:l[vb.Chevron]})))}function rw(e){const{components:t}=gb();return s.createElement(t.Button,{...e})}function ow(e){return s.createElement("option",{...e})}function iw(e){const{components:t}=gb();return s.createElement(t.Button,{...e})}function aw(e){const{rootRef:t,...n}=e;return s.createElement("div",{...n,ref:t})}function sw(e){return s.createElement("select",{...e})}function lw(e){const{week:t,...n}=e;return s.createElement("tr",{...n})}function cw(e){return s.createElement("th",{...e})}function uw(e){return s.createElement("thead",{"aria-hidden":!0},s.createElement("tr",{...e}))}function fw(e){const{week:t,...n}=e;return s.createElement("th",{...n})}function dw(e){return s.createElement("th",{...e})}function pw(e){return s.createElement("tbody",{...e})}function hw(e){const{components:t}=gb();return s.createElement(t.Dropdown,{...e})}function mw(){const e={};for(const t in vb)e[vb[t]]=`rdp-${vb[t]}`;for(const t in bb)e[bb[t]]=`rdp-${bb[t]}`;for(const t in wb)e[wb[t]]=`rdp-${wb[t]}`;for(const t in xb)e[xb[t]]=`rdp-${xb[t]}`;return e}function yw(e,t,n){return(n??new Bb(t)).format(e,"LLLL y")}const gw=yw;function vw(e,t,n){return(n??new Bb(t)).format(e,"d")}function bw(e,t=Vb){return t.format(e,"LLLL")}function ww(e){return e<10?`0${e.toLocaleString()}`:`${e.toLocaleString()}`}function xw(){return""}function Mw(e,t,n){return(n??new Bb(t)).format(e,"cccccc")}function jw(e,t=Vb){return t.format(e,"yyyy")}const Ew=jw;function Ow(e,t,n){return(n??new Bb(t)).format(e,"LLLL y")}const kw=Ow;function Sw(e,t,n,r){let o=(r??new Bb(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function Nw(e,t,n,r){let o=(r??new Bb(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const Tw=Nw;function Aw(){return""}function Dw(e){return"Choose the Month"}function Cw(e){return"Go to the Next Month"}function Iw(e){return"Go to the Previous Month"}function Pw(e,t,n){return(n??new Bb(t)).format(e,"cccc")}function _w(e,t){return`Week ${e}`}function Rw(e){return"Week Number"}function zw(e){return"Choose the Year"}const Lw=e=>e instanceof HTMLElement?e:null,Uw=e=>[...e.querySelectorAll("[data-animated-month]")??[]],Fw=e=>Lw(e.querySelector("[data-animated-caption]")),Bw=e=>Lw(e.querySelector("[data-animated-weeks]"));function Vw(e,t){const{month:n,defaultMonth:r,today:o=t.today(),numberOfMonths:i=1,endMonth:a,startMonth:s,timeZone:l}=e;let c=n||r||o;const{differenceInCalendarMonths:u,addMonths:f,startOfMonth:d}=t;return a&&u(a,c)<0&&(c=f(a,-1*(i-1))),s&&u(c,s)<0&&(c=s),c=l?new Db(c,l):c,d(c)}class Yw{constructor(e,t,n=Vb){this.date=e,this.displayMonth=t,this.outside=Boolean(t&&!n.isSameMonth(e,t)),this.dateLib=n}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class Ww{constructor(e,t){this.days=t,this.weekNumber=e}}class Hw{constructor(e,t){this.date=e,this.weeks=t}}function Gw(e,t){const[n,r]=(0,s.useState)(e);return[void 0===t?n:t,r]}var Qw;function $w(e){return!e[bb.disabled]&&!e[bb.hidden]&&!e[bb.outside]}function qw(e,t,n=!1,r=Vb){let{from:o,to:i}=e;const{differenceInCalendarDays:a,isSameDay:s}=r;return o&&i?(a(i,o)<0&&([o,i]=[i,o]),a(t,o)>=(n?1:0)&&a(i,t)>=(n?1:0)):!n&&i?s(i,t):!(n||!o)&&s(o,t)}function Zw(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}function Xw(e){return Boolean(e&&"object"==typeof e&&"from"in e)}function Kw(e){return Boolean(e&&"object"==typeof e&&"after"in e)}function Jw(e){return Boolean(e&&"object"==typeof e&&"before"in e)}function ex(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}function tx(e,t){return Array.isArray(e)&&e.every(t.isDate)}function nx(e,t,n=Vb){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:i,isAfter:a}=n;return r.some((t=>{if("boolean"==typeof t)return t;if(n.isDate(t))return o(e,t);if(tx(t,n))return t.includes(e);if(Xw(t))return qw(t,e,!1,n);if(ex(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(Zw(t)){const n=i(t.before,e)>0,r=i(t.after,e)<0;return a(t.before,t.after)?r&&n:n||r}return Kw(t)?i(e,t.after)>0:Jw(t)?i(t.before,e)>0:"function"==typeof t&&t(e)}))}function rx(e,t,n,r,o,i,a,s=0){if(s>365)return;const l=function(e,t,n,r,o,i,a){const{ISOWeek:s,broadcastCalendar:l}=i,{addDays:c,addMonths:u,addWeeks:f,addYears:d,endOfBroadcastWeek:p,endOfISOWeek:h,endOfWeek:m,max:y,min:g,startOfBroadcastWeek:v,startOfISOWeek:b,startOfWeek:w}=a,x={day:c,week:f,month:u,year:d,startOfWeek:e=>l?v(e,a):s?b(e):w(e),endOfWeek:e=>l?p(e,a):s?h(e):m(e)};let M=x[e](n,"after"===t?1:-1);return"before"===t&&r?M=y([r,M]):"after"===t&&o&&(M=g([o,M])),M}(e,t,n.date,r,o,i,a),c=Boolean(i.disabled&&nx(l,i.disabled,a)),u=Boolean(i.hidden&&nx(l,i.hidden,a)),f=new Yw(l,l,a);return c||u?rx(e,t,f,r,o,i,a,s+1):f}function ox(e,t,n,r,o){const{autoFocus:i}=e,[a,l]=(0,s.useState)(),c=function(e,t,n,r){let o,i=-1;for(const a of e){const e=t(a);$w(e)&&(e[bb.focused]&&i<Qw.FocusedModifier?(o=a,i=Qw.FocusedModifier):r?.isEqualTo(a)&&i<Qw.LastFocused?(o=a,i=Qw.LastFocused):n(a.date)&&i<Qw.Selected?(o=a,i=Qw.Selected):e[bb.today]&&i<Qw.Today&&(o=a,i=Qw.Today))}return o||(o=e.find((e=>$w(t(e))))),o}(t.days,n,r||(()=>!1),a),[u,f]=(0,s.useState)(i?c:void 0);return{isFocusTarget:e=>Boolean(c?.isEqualTo(e)),setFocused:f,focused:u,blur:()=>{l(u),f(void 0)},moveFocus:(n,r)=>{if(!u)return;const i=rx(n,r,u,t.navStart,t.navEnd,e,o);i&&(t.goToDay(i),f(i))}}}function ix(e,t,n=Vb){return qw(e,t.from,!1,n)||qw(e,t.to,!1,n)||qw(t,e.from,!1,n)||qw(t,e.to,!1,n)}function ax(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:i,onSelect:a}=e,[s,l]=Gw(o,a?o:void 0),c=a?o:s;return{selected:c,select:(o,s,u)=>{const{min:f,max:d}=e,p=o?function(e,t,n=0,r=0,o=!1,i=Vb){const{from:a,to:s}=t||{},{isSameDay:l,isAfter:c,isBefore:u}=i;let f;if(a||s){if(a&&!s)f=l(a,e)?o?{from:a,to:void 0}:void 0:u(e,a)?{from:e,to:a}:{from:a,to:e};else if(a&&s)if(l(a,e)&&l(s,e))f=o?{from:a,to:s}:void 0;else if(l(a,e))f={from:a,to:n>0?void 0:e};else if(l(s,e))f={from:e,to:n>0?void 0:e};else if(u(e,a))f={from:e,to:s};else if(c(e,a))f={from:a,to:e};else{if(!c(e,s))throw new Error("Invalid range");f={from:a,to:e}}}else f={from:e,to:n>0?void 0:e};if(f?.from&&f?.to){const t=i.differenceInCalendarDays(f.to,f.from);(r>0&&t>r||n>1&&t<n)&&(f={from:e,to:void 0})}return f}(o,c,f,d,i,t):void 0;return r&&n&&p?.from&&p.to&&function(e,t,n=Vb){const r=Array.isArray(t)?t:[t],o=r.filter((e=>"function"!=typeof e)).some((t=>"boolean"==typeof t?t:n.isDate(t)?qw(e,t,!1,n):tx(t,n)?t.some((t=>qw(e,t,!1,n))):Xw(t)?!(!t.from||!t.to)&&ix(e,{from:t.from,to:t.to},n):ex(t)?function(e,t,n=Vb){const r=Array.isArray(t)?t:[t];let o=e.from;const i=n.differenceInCalendarDays(e.to,e.from),a=Math.min(i,6);for(let e=0;e<=a;e++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}(e,t.dayOfWeek,n):Zw(t)?n.isAfter(t.before,t.after)?ix(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):nx(e.from,t,n)||nx(e.to,t,n):!(!Kw(t)&&!Jw(t))&&(nx(e.from,t,n)||nx(e.to,t,n))));if(o)return!0;const i=r.filter((e=>"function"==typeof e));if(i.length){let t=e.from;const r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some((e=>e(t))))return!0;t=n.addDays(t,1)}}return!1}({from:p.from,to:p.to},n,t)&&(p.from=o,p.to=void 0),a||l(p),a?.(p,o,s,u),p},isSelected:e=>c&&qw(c,e,!1,t)}}function sx(r){const{components:o,formatters:i,labels:a,dateLib:l,locale:c,classNames:u}=(0,s.useMemo)((()=>{const o={...md,...r.locale};return{dateLib:new Bb({locale:o,weekStartsOn:r.broadcastCalendar?1:r.weekStartsOn,firstWeekContainsDate:r.firstWeekContainsDate,useAdditionalWeekYearTokens:r.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:r.useAdditionalDayOfYearTokens,timeZone:r.timeZone,numerals:r.numerals},r.dateLib),components:(a=r.components,{...e,...a}),formatters:(i=r.formatters,i?.formatMonthCaption&&!i.formatCaption&&(i.formatCaption=i.formatMonthCaption),i?.formatYearCaption&&!i.formatYearDropdown&&(i.formatYearDropdown=i.formatYearCaption),{...t,...i}),labels:{...n,...r.labels},locale:o,classNames:{...mw(),...r.classNames}};var i,a}),[r.locale,r.broadcastCalendar,r.weekStartsOn,r.firstWeekContainsDate,r.useAdditionalWeekYearTokens,r.useAdditionalDayOfYearTokens,r.timeZone,r.numerals,r.dateLib,r.components,r.formatters,r.labels,r.classNames]),{captionLayout:f,mode:d,onDayBlur:p,onDayClick:h,onDayFocus:m,onDayKeyDown:y,onDayMouseEnter:g,onDayMouseLeave:v,onNextClick:b,onPrevClick:w,showWeekNumber:x,styles:M}=r,{formatCaption:j,formatDay:E,formatMonthDropdown:O,formatWeekNumber:k,formatWeekNumberHeader:S,formatWeekdayName:N,formatYearDropdown:T}=i,A=function(e,t){const[n,r]=function(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:i,startOfMonth:a,endOfMonth:s,addYears:l,endOfYear:c,newDate:u,today:f}=t,{fromYear:d,toYear:p,fromMonth:h,toMonth:m}=e;!n&&h&&(n=h),!n&&d&&(n=t.newDate(d,0,1)),!r&&m&&(r=m),!r&&p&&(r=u(p,11,31));const y="dropdown"===e.captionLayout||"dropdown-years"===e.captionLayout;return n?n=a(n):d?n=u(d,0,1):!n&&y&&(n=o(l(e.today??f(),-100))),r?r=s(r):p?r=u(p,11,31):!r&&y&&(r=c(e.today??f())),[n?i(n):n,r?i(r):r]}(e,t),{startOfMonth:o,endOfMonth:i}=t,a=Vw(e,t),[l,c]=Gw(a,e.month?a:void 0);(0,s.useEffect)((()=>{const n=Vw(e,t);c(n)}),[e.timeZone]);const u=function(e,t,n,r){const{numberOfMonths:o=1}=n,i=[];for(let n=0;n<o;n++){const o=r.addMonths(e,n);if(t&&o>t)break;i.push(o)}return i}(l,r,e,t),f=function(e,t,n,r){const o=e[0],i=e[e.length-1],{ISOWeek:a,fixedWeeks:s,broadcastCalendar:l}=n??{},{addDays:c,differenceInCalendarDays:u,differenceInCalendarMonths:f,endOfBroadcastWeek:d,endOfISOWeek:p,endOfMonth:h,endOfWeek:m,isAfter:y,startOfBroadcastWeek:g,startOfISOWeek:v,startOfWeek:b}=r,w=l?g(o,r):a?v(o):b(o),x=u(l?d(i,r):a?p(h(i)):m(h(i)),w),M=f(i,o)+1,j=[];for(let e=0;e<=x;e++){const n=c(w,e);if(t&&y(n,t))break;j.push(n)}const E=(l?35:42)*M;if(s&&j.length<E){const e=E-j.length;for(let t=0;t<e;t++){const e=c(j[j.length-1],1);j.push(e)}}return j}(u,e.endMonth?i(e.endMonth):void 0,e,t),d=function(e,t,n,r){const{addDays:o,endOfBroadcastWeek:i,endOfISOWeek:a,endOfMonth:s,endOfWeek:l,getISOWeek:c,getWeek:u,startOfBroadcastWeek:f,startOfISOWeek:d,startOfWeek:p}=r,h=e.reduce(((e,h)=>{const m=n.broadcastCalendar?f(h,r):n.ISOWeek?d(h):p(h),y=n.broadcastCalendar?i(h,r):n.ISOWeek?a(s(h)):l(s(h)),g=t.filter((e=>e>=m&&e<=y)),v=n.broadcastCalendar?35:42;if(n.fixedWeeks&&g.length<v){const e=t.filter((e=>{const t=v-g.length;return e>y&&e<=o(y,t)}));g.push(...e)}const b=g.reduce(((e,t)=>{const o=n.ISOWeek?c(t):u(t),i=e.find((e=>e.weekNumber===o)),a=new Yw(t,h,r);return i?i.days.push(a):e.push(new Ww(o,[a])),e}),[]),w=new Hw(h,b);return e.push(w),e}),[]);return n.reverseMonths?h.reverse():h}(u,f,e,t),p=function(e){return e.reduce(((e,t)=>[...e,...t.weeks]),[])}(d),h=d.reduce(((e,t)=>[...e,...t.weeks.reduce(((e,t)=>[...e,...t.days]),[])]),[]),m=function(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i}=n,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:l}=r,c=o?i??1:1,u=a(e);return t&&l(u,t)<=0?void 0:s(u,-c)}(l,n,e,t),y=function(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i=1}=n,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:l}=r,c=o?i:1,u=a(e);return t&&l(t,e)<i?void 0:s(u,c)}(l,r,e,t),{disableNavigation:g,onMonthChange:v}=e,b=e=>{if(g)return;let t=o(e);n&&t<o(n)&&(t=o(n)),r&&t>o(r)&&(t=o(r)),c(t),v?.(t)};return{months:d,weeks:p,days:h,navStart:n,navEnd:r,previousMonth:m,nextMonth:y,goToMonth:b,goToDay:e=>{(e=>p.some((t=>t.days.some((t=>t.isEqualTo(e))))))(e)||b(e.date)}}}(r,l),{days:D,months:C,navStart:I,navEnd:P,previousMonth:_,nextMonth:R,goToMonth:z}=A,L=function(e,t,n){const{disabled:r,hidden:o,modifiers:i,showOutsideDays:a,broadcastCalendar:s,today:l}=t,{isSameDay:c,isSameMonth:u,startOfMonth:f,isBefore:d,endOfMonth:p,isAfter:h}=n,m=t.startMonth&&f(t.startMonth),y=t.endMonth&&p(t.endMonth),g={[bb.focused]:[],[bb.outside]:[],[bb.disabled]:[],[bb.hidden]:[],[bb.today]:[]},v={};for(const t of e){const{date:e,displayMonth:f}=t,p=Boolean(f&&!u(e,f)),b=Boolean(m&&d(e,m)),w=Boolean(y&&h(e,y)),x=Boolean(r&&nx(e,r,n)),M=Boolean(o&&nx(e,o,n))||b||w||!s&&!a&&p||s&&!1===a&&p,j=c(e,l??n.today());p&&g.outside.push(t),x&&g.disabled.push(t),M&&g.hidden.push(t),j&&g.today.push(t),i&&Object.keys(i).forEach((r=>{const o=i?.[r];o&&nx(e,o,n)&&(v[r]?v[r].push(t):v[r]=[t])}))}return e=>{const t={[bb.focused]:!1,[bb.disabled]:!1,[bb.hidden]:!1,[bb.outside]:!1,[bb.today]:!1},n={};for(const n in g){const r=g[n];t[n]=r.some((t=>t===e))}for(const t in v)n[t]=v[t].some((t=>t===e));return{...t,...n}}}(D,r,l),{isSelected:U,select:F,selected:B}=function(e,t){const n=function(e,t){const{selected:n,required:r,onSelect:o}=e,[i,a]=Gw(n,o?n:void 0),s=o?n:i,{isSameDay:l}=t;return{selected:s,select:(e,t,n)=>{let i=e;return!r&&s&&s&&l(e,s)&&(i=void 0),o||a(i),o?.(i,e,t,n),i},isSelected:e=>!!s&&l(s,e)}}(e,t),r=function(e,t){const{selected:n,required:r,onSelect:o}=e,[i,a]=Gw(n,o?n:void 0),s=o?n:i,{isSameDay:l}=t,c=e=>s?.some((t=>l(t,e)))??!1,{min:u,max:f}=e;return{selected:s,select:(e,t,n)=>{let i=[...s??[]];if(c(e)){if(s?.length===u)return;if(r&&1===s?.length)return;i=s?.filter((t=>!l(t,e)))}else i=s?.length===f?[e]:[...i,e];return o||a(i),o?.(i,e,t,n),i},isSelected:c}}(e,t),o=ax(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}(r,l)??{},{blur:V,focused:Y,isFocusTarget:W,moveFocus:H,setFocused:G}=ox(r,A,L,U??(()=>!1),l),{labelDayButton:Q,labelGridcell:$,labelGrid:q,labelMonthDropdown:Z,labelNav:X,labelWeekday:K,labelWeekNumber:J,labelWeekNumberHeader:ee,labelYearDropdown:te}=a,ne=(0,s.useMemo)((()=>function(e,t){const n=e.today(),r=t?e.startOfISOWeek(n):e.startOfWeek(n),o=[];for(let t=0;t<7;t++){const n=e.addDays(r,t);o.push(n)}return o}(l,r.ISOWeek)),[l,r.ISOWeek]),re=void 0!==d||void 0!==h,oe=(0,s.useCallback)((()=>{_&&(z(_),w?.(_))}),[_,z,w]),ie=(0,s.useCallback)((()=>{R&&(z(R),b?.(R))}),[z,R,b]),ae=(0,s.useCallback)(((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),G(e),F?.(e.date,t,n),h?.(e.date,t,n)}),[F,h,G]),se=(0,s.useCallback)(((e,t)=>n=>{G(e),m?.(e.date,t,n)}),[m,G]),le=(0,s.useCallback)(((e,t)=>n=>{V(),p?.(e.date,t,n)}),[V,p]),ce=(0,s.useCallback)(((e,t)=>n=>{const o={ArrowLeft:["day","rtl"===r.dir?"after":"before"],ArrowRight:["day","rtl"===r.dir?"before":"after"],ArrowDown:["week","after"],ArrowUp:["week","before"],PageUp:[n.shiftKey?"year":"month","before"],PageDown:[n.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(o[n.key]){n.preventDefault(),n.stopPropagation();const[e,t]=o[n.key];H(e,t)}y?.(e.date,t,n)}),[H,y,r.dir]),ue=(0,s.useCallback)(((e,t)=>n=>{g?.(e.date,t,n)}),[g]),fe=(0,s.useCallback)(((e,t)=>n=>{v?.(e.date,t,n)}),[v]),de=(0,s.useCallback)((e=>t=>{const n=Number(t.target.value),r=l.setMonth(l.startOfMonth(e),n);z(r)}),[l,z]),pe=(0,s.useCallback)((e=>t=>{const n=Number(t.target.value),r=l.setYear(l.startOfMonth(e),n);z(r)}),[l,z]),{className:he,style:me}=(0,s.useMemo)((()=>({className:[u[vb.Root],r.className].filter(Boolean).join(" "),style:{...M?.[vb.Root],...r.style}})),[u,r.className,r.style,M]),ye=function(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0};return Object.entries(e).forEach((([e,n])=>{e.startsWith("data-")&&(t[e]=n)})),t}(r),ge=(0,s.useRef)(null);!function(e,t,{classNames:n,months:r,focused:o,dateLib:i}){const a=(0,s.useRef)(null),l=(0,s.useRef)(r),c=(0,s.useRef)(!1);(0,s.useLayoutEffect)((()=>{const s=l.current;if(l.current=r,!(t&&e.current&&e.current instanceof HTMLElement&&0!==r.length&&0!==s.length&&r.length===s.length))return;const u=i.isSameMonth(r[0].date,s[0].date),f=i.isAfter(r[0].date,s[0].date),d=f?n[xb.caption_after_enter]:n[xb.caption_before_enter],p=f?n[xb.weeks_after_enter]:n[xb.weeks_before_enter],h=a.current,m=e.current.cloneNode(!0);if(m instanceof HTMLElement?(Uw(m).forEach((e=>{if(!(e instanceof HTMLElement))return;const t=Lw(e.querySelector("[data-animated-month]"));t&&e.contains(t)&&e.removeChild(t);const n=Fw(e);n&&n.classList.remove(d);const r=Bw(e);r&&r.classList.remove(p)})),a.current=m):a.current=null,c.current||u||o)return;const y=h instanceof HTMLElement?Uw(h):[],g=Uw(e.current);if(g&&g.every((e=>e instanceof HTMLElement))&&y&&y.every((e=>e instanceof HTMLElement))){c.current=!0;const t=[];e.current.style.isolation="isolate";const r=(v=e.current,Lw(v.querySelector("[data-animated-nav]")));r&&(r.style.zIndex="1"),g.forEach(((o,i)=>{const a=y[i];if(!a)return;o.style.position="relative",o.style.overflow="hidden";const s=Fw(o);s&&s.classList.add(d);const l=Bw(o);l&&l.classList.add(p);const u=()=>{c.current=!1,e.current&&(e.current.style.isolation=""),r&&(r.style.zIndex=""),s&&s.classList.remove(d),l&&l.classList.remove(p),o.style.position="",o.style.overflow="",o.contains(a)&&o.removeChild(a)};t.push(u),a.style.pointerEvents="none",a.style.position="absolute",a.style.overflow="hidden",a.setAttribute("aria-hidden","true");const h=(e=>Lw(e.querySelector("[data-animated-weekdays]")))(a);h&&(h.style.opacity="0");const m=Fw(a);m&&(m.classList.add(f?n[xb.caption_before_exit]:n[xb.caption_after_exit]),m.addEventListener("animationend",u));const g=Bw(a);g&&g.classList.add(f?n[xb.weeks_before_exit]:n[xb.weeks_after_exit]),o.insertBefore(a,o.firstChild)}))}var v}))}(ge,Boolean(r.animate),{classNames:u,months:C,focused:Y,dateLib:l});const ve={dayPickerProps:r,selected:B,select:F,isSelected:U,months:C,nextMonth:R,previousMonth:_,goToMonth:z,getModifiers:L,components:o,classNames:u,styles:M,labels:a,formatters:i};return s.createElement(yb.Provider,{value:ve},s.createElement(o.Root,{rootRef:r.animate?ge:void 0,className:he,style:me,dir:r.dir,id:r.id,lang:r.lang,nonce:r.nonce,title:r.title,role:r.role,"aria-label":r["aria-label"],...ye},s.createElement(o.Months,{className:u[vb.Months],style:M?.[vb.Months]},!r.hideNavigation&&s.createElement(o.Nav,{"data-animated-nav":r.animate?"true":void 0,className:u[vb.Nav],style:M?.[vb.Nav],"aria-label":X(),onPreviousClick:oe,onNextClick:ie,previousMonth:_,nextMonth:R}),C.map(((e,t)=>{const n=function(e,t,n,r,o){const{startOfMonth:i,startOfYear:a,endOfYear:s,eachMonthOfInterval:l,getMonth:c}=o;return l({start:a(e),end:s(e)}).map((e=>{const a=r.formatMonthDropdown(e,o);return{value:c(e),label:a,disabled:t&&e<i(t)||n&&e>i(n)||!1}}))}(e.date,I,P,i,l),a=function(e,t,n,r){if(!e)return;if(!t)return;const{startOfYear:o,endOfYear:i,addYears:a,getYear:s,isBefore:l,isSameYear:c}=r,u=o(e),f=i(t),d=[];let p=u;for(;l(p,f)||c(p,f);)d.push(p),p=a(p,1);return d.map((e=>{const t=n.formatYearDropdown(e,r);return{value:s(e),label:t,disabled:!1}}))}(I,P,i,l);return s.createElement(o.Month,{"data-animated-month":r.animate?"true":void 0,className:u[vb.Month],style:M?.[vb.Month],key:t,displayIndex:t,calendarMonth:e},s.createElement(o.MonthCaption,{"data-animated-caption":r.animate?"true":void 0,className:u[vb.MonthCaption],style:M?.[vb.MonthCaption],calendarMonth:e,displayIndex:t},f?.startsWith("dropdown")?s.createElement(o.DropdownNav,{className:u[vb.Dropdowns],style:M?.[vb.Dropdowns]},"dropdown"===f||"dropdown-months"===f?s.createElement(o.MonthsDropdown,{className:u[vb.MonthsDropdown],"aria-label":Z(),classNames:u,components:o,disabled:Boolean(r.disableNavigation),onChange:de(e.date),options:n,style:M?.[vb.Dropdown],value:l.getMonth(e.date)}):s.createElement("span",null,O(e.date,l)),"dropdown"===f||"dropdown-years"===f?s.createElement(o.YearsDropdown,{className:u[vb.YearsDropdown],"aria-label":te(l.options),classNames:u,components:o,disabled:Boolean(r.disableNavigation),onChange:pe(e.date),options:a,style:M?.[vb.Dropdown],value:l.getYear(e.date)}):s.createElement("span",null,T(e.date,l)),s.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},j(e.date,l.options,l))):s.createElement(o.CaptionLabel,{className:u[vb.CaptionLabel],role:"status","aria-live":"polite"},j(e.date,l.options,l))),s.createElement(o.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===d||"range"===d,"aria-label":q(e.date,l.options,l)||void 0,className:u[vb.MonthGrid],style:M?.[vb.MonthGrid]},!r.hideWeekdays&&s.createElement(o.Weekdays,{"data-animated-weekdays":r.animate?"true":void 0,className:u[vb.Weekdays],style:M?.[vb.Weekdays]},x&&s.createElement(o.WeekNumberHeader,{"aria-label":ee(l.options),className:u[vb.WeekNumberHeader],style:M?.[vb.WeekNumberHeader],scope:"col"},S()),ne.map(((e,t)=>s.createElement(o.Weekday,{"aria-label":K(e,l.options,l),className:u[vb.Weekday],key:t,style:M?.[vb.Weekday],scope:"col"},N(e,l.options,l))))),s.createElement(o.Weeks,{"data-animated-weeks":r.animate?"true":void 0,className:u[vb.Weeks],style:M?.[vb.Weeks]},e.weeks.map(((e,t)=>s.createElement(o.Week,{className:u[vb.Week],key:e.weekNumber,style:M?.[vb.Week],week:e},x&&s.createElement(o.WeekNumber,{week:e,style:M?.[vb.WeekNumber],"aria-label":J(e.weekNumber,{locale:c}),className:u[vb.WeekNumber],scope:"row",role:"rowheader"},k(e.weekNumber)),e.days.map((e=>{const{date:t}=e,n=L(e);if(n[bb.focused]=!n.hidden&&Boolean(Y?.isEqualTo(e)),n[wb.selected]=U?.(t)||n.selected,Xw(B)){const{from:e,to:r}=B;n[wb.range_start]=Boolean(e&&r&&l.isSameDay(t,e)),n[wb.range_end]=Boolean(e&&r&&l.isSameDay(t,r)),n[wb.range_middle]=qw(B,t,!0,l)}const i=function(e,t={},n={}){let r={...t?.[vb.Day]};return Object.entries(e).filter((([,e])=>!0===e)).forEach((([e])=>{r={...r,...n?.[e]}})),r}(n,M,r.modifiersStyles),a=function(e,t,n={}){return Object.entries(e).filter((([,e])=>!0===e)).reduce(((e,[r])=>(n[r]?e.push(n[r]):t[bb[r]]?e.push(t[bb[r]]):t[wb[r]]&&e.push(t[wb[r]]),e)),[t[vb.Day]])}(n,u,r.modifiersClassNames),c=re||n.hidden?void 0:$(t,n,l.options,l);return s.createElement(o.Day,{key:`${l.format(t,"yyyy-MM-dd")}_${l.format(e.displayMonth,"yyyy-MM")}`,day:e,modifiers:n,className:a.join(" "),style:i,role:"gridcell","aria-selected":n.selected||void 0,"aria-label":c,"data-day":l.format(t,"yyyy-MM-dd"),"data-month":e.outside?l.format(t,"yyyy-MM"):void 0,"data-selected":n.selected||void 0,"data-disabled":n.disabled||void 0,"data-hidden":n.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":n.focused||void 0,"data-today":n.today||void 0},!n.hidden&&re?s.createElement(o.DayButton,{className:u[vb.DayButton],style:M?.[vb.DayButton],type:"button",day:e,modifiers:n,disabled:n.disabled||void 0,tabIndex:W(e)?0:-1,"aria-label":Q(t,n,l.options,l),onClick:ae(e,n),onBlur:le(e,n),onFocus:se(e,n),onKeyDown:ce(e,n),onMouseEnter:ue(e,n),onMouseLeave:fe(e,n)},E(t,l.options,l)):!n.hidden&&E(e.date,l.options,l))}))))))))}))),r.footer&&s.createElement(o.Footer,{className:u[vb.Footer],style:M?.[vb.Footer],role:"status","aria-live":"polite"},r.footer)))}function lx(e,t){return+xd(e)==+xd(t)}!function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"}(Qw||(Qw={}));const cx=()=>(0,Ee.jsx)("span",{className:"bg-icon-interactive h-1 w-1 absolute rounded-full inline-block bottom-0 left-1/2 right-1/2"}),ux=e=>Xd(e,"E").slice(0,1),fx=(e,t=24)=>Array.from({length:t},((t,n)=>e+n)),dx=e=>"multiple"===e?[]:"range"===e?{from:void 0,to:void 0}:void 0,px=({width:e,className:t,classNames:n,selectedDates:r,setSelectedDates:o,showOutsideDays:i=!0,mode:a="single",variant:l="normal",alignment:c="horizontal",numberOfMonths:u,disabled:f,...d})=>{const p=s.isValidElement(d.footer)||"function"==typeof d.footer,[h,m]=(0,s.useState)(!1),[y,g]=(0,s.useState)(!1),[v,b]=(0,s.useState)((new Date).getFullYear()),[w,x]=(0,s.useState)(v-v%24);void 0===r&&(r="multiple"===a?[]:"range"===a?{from:void 0,to:void 0}:void 0);const M=({weekdays:e})=>(0,Ee.jsx)("div",{className:"flex justify-between",children:e.map(((e,t)=>(0,Ee.jsx)("button",{className:"h-10 w-10 px-1.5 py-2 text-center text-text-secondary text-sm font-normal content-center bg-transparent border-none shrink-0",children:e},t)))}),j=e=>(0,Ee.jsx)("div",{className:"flex flex-col bsf-force-ui-month-weeks",children:e.children[1].props.children.map(((e,t)=>(0,Ee.jsx)("div",{className:"flex flex-row justify-between",children:e},t)))}),E=xt("relative bg-background-primary shadow-datepicker-wrapper",e,"vertical"===c?"flex flex-col":"flex flex-row gap-3","normal"===l?"rounded-tr-md rounded-tl-md border border-solid border-border-subtle":"","presets"===l?"rounded-tr-md border border-solid border-border-subtle":"","dualdate"===l?"rounded-tr-md rounded-tl-md border border-solid border-border-subtle":"",p?"rounded-b-none":"rounded-bl-md rounded-br-md");return(0,Ee.jsx)(Ee.Fragment,{children:(0,Ee.jsx)(sx,{mode:a,selected:r,onSelect:(e,t)=>{if("range"===a){const n=r;if(!n?.from&&!n?.to||n?.from&&n?.to)return n.from&&lx(t,n?.from)||n.to&&lx(t,n?.to)?void o({from:void 0,to:void 0}):void o({from:t,to:void 0});if(n?.from&&!n?.to)return t<n.from?void o({from:t,to:n.from}):void o({from:n.from,to:t});o(e)}else"multiple"===a?r.some((e=>Xd(e,"yyyy-MM-dd")===Xd(t,"yyyy-MM-dd")))?o(r.filter((e=>Xd(e,"yyyy-MM-dd")!==Xd(t,"yyyy-MM-dd")))):o([...r,t]):"single"===a&&o(e)},hideNavigation:!0,captionLayout:"label",className:xt(t),formatters:{formatWeekdayName:ux},classNames:{months:E,month:"flex flex-col p-2 gap-1 text-center w-full",caption:"relative flex justify-center items-center",table:"w-full border-separate border-spacing-0",head_row:"flex mb-1",head_cell:"text-muted-foreground rounded-md w-10 font-normal text-sm",row:"flex w-full mt-2",cell:"h-10 w-10 text-center text-sm p-0 relative",...n},numberOfMonths:u,showOutsideDays:!0,components:{MonthCaption:function(e){const{goToMonth:t,nextMonth:n,previousMonth:r}=gb(),o=Xd(e.calendarMonth.date,"yyyy"),i=Xd(e.calendarMonth.date,"MMMM"),a=new Date(e.calendarMonth.date);a.setDate(a.getDate()-a.getDay());const s=Array.from({length:7},((e,t)=>{const n=new Date(a);return n.setDate(a.getDate()+t),ux(n)}));let l;return l=y?`${w} - ${w+23}`:h?o:`${i} ${o}`,(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsxs)("div",{className:"flex justify-between",children:[(0,Ee.jsx)(Qt,{variant:"ghost",onClick:()=>{if(y)x(w-24);else if(h){const n=new Date(v-1,e.calendarMonth.date.getMonth());b(n.getFullYear()),t(n)}else t(r)},className:"bg-background-primary border-none cursor-pointer","aria-label":"Previous Button",icon:(0,Ee.jsx)(mb,{className:"h-4 w-4 text-button-tertiary-color"})}),(0,Ee.jsx)(Qt,{variant:"ghost",onClick:()=>{u>1||(h?(g(!0),m(!1)):y?g(!1):m(!h))},children:l}),(0,Ee.jsx)(Qt,{variant:"ghost",onClick:()=>{if(y)x(w+24);else if(h){const n=new Date(v+1,e.calendarMonth.date.getMonth());b(n.getFullYear()),t(n)}else t(n)},className:"bg-background-primary border-none cursor-pointer","aria-label":"Next Button",icon:(0,Ee.jsx)(Dh,{className:"h-4 w-4 text-button-tertiary-color"})})]}),y&&(0,Ee.jsx)("div",{className:"grid grid-cols-4 w-full",children:fx(w).map((n=>(0,Ee.jsxs)(Qt,{variant:"ghost",onClick:()=>(n=>{b(n),g(!1),m(!0),t(new Date(n,e.calendarMonth.date.getMonth()))})(n),className:xt("h-10 w-full text-center font-normal relative",n===v&&n!==(new Date).getFullYear()&&"bg-background-brand text-text-on-color hover:bg-background-brand hover:text-black",n===(new Date).getFullYear()&&"font-semibold"),children:[n,n===(new Date).getFullYear()&&cx()]},n)))}),h&&!y&&(0,Ee.jsx)("div",{className:"grid grid-cols-4 gap-2 my-12",children:Array.from({length:12},((n,r)=>(0,Ee.jsxs)(Qt,{variant:"ghost",onClick:()=>{m(!1),t(new Date(v,r))},className:xt("px-1.5 py-2 h-10 w-[4.375rem] text-center font-normal relative",r===e.calendarMonth.date.getMonth()&&r!==(new Date).getMonth()&&v===e.calendarMonth.date.getFullYear()&&e.calendarMonth.date.getFullYear()!==(new Date).getFullYear()&&"bg-background-brand text-text-on-color hover:bg-background-brand hover:text-black",r===(new Date).getMonth()&&(new Date).getFullYear()===v&&"font-semibold"),children:[Xd(new Date(0,r),"MMM"),(new Date).getMonth()===r&&(new Date).getFullYear()===v&&cx()]},r)))}),!h&&!y&&(0,Ee.jsx)(M,{weekdays:s})]})},DayButton:({day:e,modifiers:t,...n})=>{const{selected:o,today:a,disabled:s,outside:l,range_middle:c,range_start:u,range_end:f}=t,d=u||f||c,p=new Date,h=r?.to,m=Xd(e.displayMonth,"yyyy-MM")===Xd(p,"yyyy-MM"),y=h&&Xd(h,"yyyy-MM")===Xd(e.date,"yyyy-MM"),g=function(e,t,n){return Ib(e,-t,n)}(p,1),v=Xd(e.date,"yyyy-MM")===Xd(g,"yyyy-MM"),b=m||y||d,w=!i&&l,x=xt("h-10 w-10 flex items-center justify-center transition text-text-secondary relative text-sm","border-none rounded",!o&&!d||l?"bg-transparent hover:bg-button-tertiary-hover":"bg-background-brand text-text-on-color",c&&b&&!l?"bg-brand-background-50 text-text-secondary rounded-none":"",s?"opacity-50 cursor-not-allowed text-text-disabled":"cursor-pointer",l&&!d||!b&&l||l&&!v||l?"bg-transparent opacity-50 text-text-disabled cursor-auto":"");return(0,Ee.jsxs)("button",{className:xt(x,a&&"font-semibold",w&&"opacity-0",u&&"fui-range-start",f&&"fui-range-end",c&&"fui-range-middle",{"[&:is([data-hover=true])]:bg-brand-background-50 [&:is([data-hover=true])]:rounded-none":!d&&!o}),disabled:s||l,onClick:e=>{"function"==typeof n.onClick&&n.onClick(e)},onMouseEnter:e=>{"function"==typeof n.onMouseEnter&&n.onMouseEnter(e),e.currentTarget.setAttribute("data-hover","true")},onMouseLeave:e=>{"function"==typeof n.onMouseLeave&&n.onMouseLeave(e),e.currentTarget.setAttribute("data-hover","false")},"aria-label":Xd(e.date,"EEEE, MMMM do, yyyy"),"data-selected":o,"data-day":Xd(e.date,"yyyy-MM-dd"),children:[n.children,a&&b&&(0,Ee.jsx)("span",{className:"absolute h-1 w-1 bg-background-brand rounded-full bottom-1"})]})},Day:e=>{const t=Object.entries(e).reduce(((e,[t,n])=>(t.startsWith("data-")&&(e[t]=n),e)),{});return(0,Ee.jsx)("div",{...t,className:xt(e.className,"inline-flex"),children:e.children})},Weekdays:()=>(0,Ee.jsx)(Ee.Fragment,{}),Week:e=>(0,Ee.jsx)("div",{className:xt("bsf-force-ui-month-week flex flex-row",e.className),children:e.children}),Months:e=>(0,Ee.jsx)(Ee.Fragment,{children:(0,Ee.jsx)("div",{className:xt("bsf-force-ui-date-picker-month",E),children:e?.children?.map(((e,t)=>e?(0,Ee.jsx)(s.Fragment,{children:e.map(((e,t)=>(0,Ee.jsxs)(s.Fragment,{children:[t>0&&(0,Ee.jsx)("div",{className:"border border-solid border-border-subtle border-l-0"}),e]},t)))},t):null))})}),MonthGrid:e=>h||y?(0,Ee.jsx)(Ee.Fragment,{}):(0,Ee.jsx)(j,{...e})},..."range"===a?{required:!1}:{},...d,onDayMouseEnter:(e,t,n)=>{if("range"!==a)return;const o=r;if(o?.from&&o?.to||!o?.from&&!o?.to)return void Array.from(document.querySelectorAll("[data-hover]")).forEach((e=>{e.setAttribute("data-hover","false")}));const i=n.target,s=new Date(i.dataset.day),c=zb(s,o.from),u=Rb(s,o.to);let f;switch(l){case"dualdate":case"presets":f=i.closest(".bsf-force-ui-date-picker-month");break;default:f=i.closest(".bsf-force-ui-month-weeks")}const d=Array.from(f.querySelectorAll("button"));u&&d.sort(((e,t)=>Rb(new Date(e.dataset.day),new Date(t.dataset.day))?-1:1)),c&&d.sort(((e,t)=>zb(new Date(e.dataset.day),new Date(t.dataset.day))?1:-1));const p=d.indexOf(i),h=d.findIndex((e=>"true"===e.getAttribute("data-selected"))),m=[],y=Math.min(p,h),g=Math.max(p,h);for(let e=y;e<=g;e++)d[e]?.disabled||m.push(d[e]);d.forEach((e=>{e.setAttribute("data-hover",m.includes(e)?"true":"false")}))},disabled:f})})};function hx(e){return Ed(Date.now(),e)}function mx(e){return wd(e,Date.now())}function yx(e){const t=mx(e?.in),n=t.getFullYear(),r=t.getMonth(),o=t.getDate(),i=mx(e?.in);return i.setFullYear(n,r,o-1),i.setHours(0,0,0,0),i}function gx(e,t,n){return Cb(e,-t,n)}const vx=({selectionType:e="single",variant:t="normal",presets:n=[],onCancel:r,onApply:o,onDateSelect:i,applyButtonText:a="Apply",cancelButtonText:l="Cancel",showOutsideDays:c=!0,isFooter:u=!0,selected:f,disabled:d,...p})=>{const[h,m]=(0,s.useState)((()=>{if(!f)return dx(e);const t="multiple"===e&&Array.isArray(f),n="single"===e&&f instanceof Date;return t||"range"===e&&"from"in f&&"to"in f||n?f:dx(e)})),y=e=>{m(e),i&&i(e)},g=[{label:"Today",range:{from:hx(),to:hx()}},{label:"Yesterday",range:{from:yx(),to:yx()}},{label:"This Week",range:{from:Sd(new Date,{weekStartsOn:1}),to:Pb(new Date,{weekStartsOn:1})}},{label:"Last 7 Days",range:{from:Ed(gx(new Date,6)),to:Ed(new Date)}},{label:"This Month",range:{from:Ub(new Date),to:_b(new Date)}},{label:"Last 30 Days",range:{from:Ed(gx(new Date,29)),to:Ed(new Date)}}],v=n.length>0?n:g,b=()=>{m("multiple"===e?[]:{from:void 0,to:void 0}),r&&r()},w=()=>{o&&o(h)};return"normal"===t?(0,Ee.jsx)(px,{...p,mode:e,variant:t,width:"w-[18.5rem]",selectedDates:h,showOutsideDays:c,setSelectedDates:y,footer:u&&(0,Ee.jsxs)("div",{className:"flex bg-background-primary justify-end p-2 gap-3 border border-solid border-border-subtle border-t-0 rounded-md rounded-tl-none rounded-tr-none",children:[(0,Ee.jsx)(Qt,{variant:"outline",onClick:b,children:l}),(0,Ee.jsx)(Qt,{onClick:w,children:a})]}),disabled:d}):"dualdate"===t?(0,Ee.jsx)(px,{mode:e,numberOfMonths:2,alignment:"horizontal",selectedDates:h,setSelectedDates:y,showOutsideDays:c,variant:t,width:"w-auto",footer:(0,Ee.jsxs)("div",{className:"flex bg-background-primary justify-end p-2 gap-3 border border-solid border-border-subtle border-t-0 rounded-md rounded-tl-none rounded-tr-none",children:[(0,Ee.jsx)(Qt,{variant:"outline",onClick:b,children:l}),(0,Ee.jsx)(Qt,{onClick:w,children:a})]}),disabled:d,...p}):"presets"===t?(0,Ee.jsxs)("div",{className:"flex flex-row shadow-datepicker-wrapper",children:[(0,Ee.jsx)("div",{className:"flex flex-col gap-1 p-3 items-start border border-solid border-border-subtle border-r-0 rounded-tl-md rounded-bl-md bg-background-primary",children:v.map(((e,t)=>{const n=h&&"from"in h&&"to"in h&&h.from?.getTime()===e.range.from.getTime()&&h.to?.getTime()===e.range.to.getTime();return(0,Ee.jsx)(Qt,{onClick:()=>(e=>{m(e)})(e.range),variant:"ghost",className:xt("text-left font-medium text-sm text-nowrap w-full",n&&"bg-brand-background-50"),children:e.label},t)}))}),(0,Ee.jsx)(px,{...p,mode:e,selectedDates:h,setSelectedDates:y,variant:t,showOutsideDays:c,width:"w-auto",numberOfMonths:2,footer:(0,Ee.jsxs)("div",{className:"flex justify-end p-2 gap-3 border-l border-r border-t-0 border-b border-solid border-border-subtle bg-background-primary rounded-br-md",children:[(0,Ee.jsx)(Qt,{variant:"outline",onClick:b,children:l}),(0,Ee.jsx)(Qt,{onClick:w,children:a})]}),disabled:d})]}):void 0};var bx=o(7350),wx=o.n(bx),xx=o(85015),Mx=o.n(xx),jx=o(11741),Ex=o.n(jx),Ox=o(58156),kx=o.n(Ox),Sx=o(98023),Nx=o.n(Sx),Tx=function(e){return 0===e?0:e>0?1:-1},Ax=function(e){return Mx()(e)&&e.indexOf("%")===e.length-1},Dx=function(e){return Nx()(e)&&!Ex()(e)},Cx=function(e){return Dx(e)||Mx()(e)},Ix=0,Px=function(e){var t=++Ix;return"".concat(e||"").concat(t)},_x=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Dx(e)&&!Mx()(e))return r;if(Ax(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return Ex()(n)&&(n=r),o&&n>t&&(n=t),n},Rx=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},zx=function(e,t){return Dx(e)&&Dx(t)?function(n){return e+n*(t-e)}:function(){return t}};function Lx(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):kx()(e,t))===n})):null}var Ux=function(e,t){return Dx(e)&&Dx(t)?e-t:Mx()(e)&&Mx()(t)?e.localeCompare(t):e instanceof Date&&t instanceof Date?e.getTime()-t.getTime():String(e).localeCompare(String(t))},Fx=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o]},Bx=o(69843),Vx=o.n(Bx),Yx=o(1882),Wx=o.n(Yx),Hx=o(23805),Gx=o.n(Hx),Qx=o(52199);function $x(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function qx(e){return qx="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},qx(e)}var Zx=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Xx=["points","pathLength"],Kx={svg:["viewBox","children"],polygon:Xx,polyline:Xx},Jx=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],eM=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,s.isValidElement)(e)&&(n=e.props),!Gx()(n))return null;var r={};return Object.keys(n).forEach((function(e){Jx.includes(e)&&(r[e]=t||function(t){return n[e](n,t)})})),r},tM=function(e,t,n){if(!Gx()(e)||"object"!==qx(e))return null;var r=null;return Object.keys(e).forEach((function(o){var i=e[o];Jx.includes(o)&&"function"==typeof i&&(r||(r={}),r[o]=function(e,t,n){return function(r){return e(t,n,r),null}}(i,t,n))})),r},nM=["children"],rM=["children"];function oM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function iM(e){return iM="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},iM(e)}var aM={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},sM=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},lM=null,cM=null,uM=function e(t){if(t===lM&&Array.isArray(cM))return cM;var n=[];return s.Children.forEach(t,(function(t){Vx()(t)||((0,Qx.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))})),cM=n,lM=t,n};function fM(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map((function(e){return sM(e)})):[sM(t)],uM(e).forEach((function(e){var t=kx()(e,"type.displayName")||kx()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n}function dM(e,t){var n=fM(e,t);return n&&n[0]}var pM=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Dx(n)||n<=0||!Dx(r)||r<=0)},hM=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],mM=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,s.isValidElement)(e)&&(r=e.props),!Gx()(r))return null;var o={};return Object.keys(r).forEach((function(e){var i;(function(e,t,n,r){var o,i=null!==(o=null==Kx?void 0:Kx[r])&&void 0!==o?o:[];return t.startsWith("data-")||!Wx()(e)&&(r&&i.includes(t)||Zx.includes(t))||n&&Jx.includes(t)})(null===(i=r)||void 0===i?void 0:i[e],e,t,n)&&(o[e]=r[e])})),o},yM=function e(t,n){if(t===n)return!0;var r=s.Children.count(t);if(r!==s.Children.count(n))return!1;if(0===r)return!0;if(1===r)return gM(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var i=t[o],a=n[o];if(Array.isArray(i)||Array.isArray(a)){if(!e(i,a))return!1}else if(!gM(i,a))return!1}return!0},gM=function(e,t){if(Vx()(e)&&Vx()(t))return!0;if(!Vx()(e)&&!Vx()(t)){var n=e.props||{},r=n.children,o=oM(n,nM),i=t.props||{},a=i.children,s=oM(i,rM);return r&&a?$x(o,s)&&yM(r,a):!r&&!a&&$x(o,s)}return!1},vM=function(e,t){var n=[],r={};return uM(e).forEach((function(e,o){if(function(e){return e&&e.type&&Mx()(e.type)&&hM.indexOf(e.type)>=0}(e))n.push(e);else if(e){var i=sM(e.type),a=t[i]||{},s=a.handler,l=a.once;if(s&&(!l||!r[i])){var c=s(e,i,o);n.push(c),r[i]=!0}}})),n};function bM(e){return bM="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},bM(e)}function wM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wM(Object(n),!0).forEach((function(t){MM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MM(e,t,n){return t=function(e){var t=function(e){if("object"!=bM(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bM(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var EM=(0,s.forwardRef)((function(e,t){var n=e.aspect,r=e.initialDimension,o=void 0===r?{width:-1,height:-1}:r,i=e.width,a=void 0===i?"100%":i,l=e.height,u=void 0===l?"100%":l,f=e.minWidth,d=void 0===f?0:f,p=e.minHeight,h=e.maxHeight,m=e.children,y=e.debounce,g=void 0===y?0:y,v=e.id,b=e.className,w=e.onResize,x=e.style,M=void 0===x?{}:x,j=(0,s.useRef)(null),E=(0,s.useRef)();E.current=w,(0,s.useImperativeHandle)(t,(function(){return Object.defineProperty(j.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),j.current},configurable:!0})}));var O,k,S=(O=(0,s.useState)({containerWidth:o.width,containerHeight:o.height}),k=2,function(e){if(Array.isArray(e))return e}(O)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(O,k)||function(e,t){if(e){if("string"==typeof e)return jM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jM(e,t):void 0}}(O,k)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),N=S[0],T=S[1],A=(0,s.useCallback)((function(e,t){T((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);(0,s.useEffect)((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;A(r,o),null===(t=E.current)||void 0===t||t.call(E,r,o)};g>0&&(e=wx()(e,g,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=j.current.getBoundingClientRect(),r=n.width,o=n.height;return A(r,o),t.observe(j.current),function(){t.disconnect()}}),[A,g]);var D=(0,s.useMemo)((function(){var e=N.containerWidth,t=N.containerHeight;if(e<0||t<0)return null;Fx(Ax(a)||Ax(u),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,u),Fx(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=Ax(a)?e:a,o=Ax(u)?t:u;n&&n>0&&(r?o=r/n:o&&(r=o*n),h&&o>h&&(o=h)),Fx(r>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,o,a,u,d,p,n);var i=!Array.isArray(m)&&sM(m.type).endsWith("Chart");return c().Children.map(m,(function(e){return c().isValidElement(e)?(0,s.cloneElement)(e,xM({width:r,height:o},i?{style:xM({height:"100%",width:"100%",maxHeight:o,maxWidth:r},e.props.style)}:{})):e}))}),[n,m,u,h,p,d,N,a]);return c().createElement("div",{id:v?"".concat(v):void 0,className:wt("recharts-responsive-container",b),style:xM(xM({},M),{},{width:a,height:u,minWidth:d,minHeight:p,maxHeight:h}),ref:j},D)})),OM=o(23181),kM=o.n(OM),SM=o(33031),NM=o.n(SM);function TM(e,t){if(!e)throw new Error("Invariant failed")}var AM=["children","width","height","viewBox","className","style","title","desc"];function DM(){return DM=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},DM.apply(this,arguments)}function CM(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,i=e.className,a=e.style,s=e.title,l=e.desc,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,AM),f=o||{width:n,height:r,x:0,y:0},d=wt("recharts-surface",i);return c().createElement("svg",DM({},mM(u,!0,"svg"),{className:d,width:n,height:r,style:a,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),c().createElement("title",null,s),c().createElement("desc",null,l),t)}var IM=["children","className"];function PM(){return PM=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},PM.apply(this,arguments)}var _M=c().forwardRef((function(e,t){var n=e.children,r=e.className,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,IM),i=wt("recharts-layer",r);return c().createElement("g",PM({className:i},mM(o,!0),{ref:t}),n)}));function RM(e){return RM="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},RM(e)}function zM(){return zM=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},zM.apply(this,arguments)}function LM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function UM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UM(Object(n),!0).forEach((function(t){BM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BM(e,t,n){return t=function(e){var t=function(e){if("object"!=RM(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=RM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==RM(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VM(e){return Array.isArray(e)&&Cx(e[0])&&Cx(e[1])?e.join(" ~ "):e}var YM=function(e){var t=e.separator,n=void 0===t?" : ":t,r=e.contentStyle,o=void 0===r?{}:r,i=e.itemStyle,a=void 0===i?{}:i,s=e.labelStyle,l=void 0===s?{}:s,u=e.payload,f=e.formatter,d=e.itemSorter,p=e.wrapperClassName,h=e.labelClassName,m=e.label,y=e.labelFormatter,g=e.accessibilityLayer,v=void 0!==g&&g,b=FM({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),w=FM({margin:0},l),x=!Vx()(m),M=x?m:"",j=wt("recharts-default-tooltip",p),E=wt("recharts-tooltip-label",h);x&&y&&null!=u&&(M=y(m,u));var O=v?{role:"status","aria-live":"assertive"}:{};return c().createElement("div",zM({className:j,style:b},O),c().createElement("p",{className:E,style:w},c().isValidElement(M)?M:"".concat(M)),function(){if(u&&u.length){var e=(d?NM()(u,d):u).map((function(e,t){if("none"===e.type)return null;var r=FM({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},a),o=e.formatter||f||VM,i=e.value,s=e.name,l=i,d=s;if(o&&null!=l&&null!=d){var p=o(i,s,e,t,u);if(Array.isArray(p)){var h=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return LM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?LM(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(p,2);l=h[0],d=h[1]}else l=p}return c().createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:r},Cx(d)?c().createElement("span",{className:"recharts-tooltip-item-name"},d):null,Cx(d)?c().createElement("span",{className:"recharts-tooltip-item-separator"},n):null,c().createElement("span",{className:"recharts-tooltip-item-value"},l),c().createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return c().createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function WM(e){return WM="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},WM(e)}function HM(e,t,n){return t=function(e){var t=function(e){if("object"!=WM(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=WM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==WM(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var GM="recharts-tooltip-wrapper",QM={visibility:"hidden"};function $M(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return wt(GM,HM(HM(HM(HM({},"".concat(GM,"-right"),Dx(n)&&t&&Dx(t.x)&&n>=t.x),"".concat(GM,"-left"),Dx(n)&&t&&Dx(t.x)&&n<t.x),"".concat(GM,"-bottom"),Dx(r)&&t&&Dx(t.y)&&r>=t.y),"".concat(GM,"-top"),Dx(r)&&t&&Dx(t.y)&&r<t.y))}function qM(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(i&&Dx(i[r]))return i[r];var u=n[r]-s-o,f=n[r]+o;return t[r]?a[r]?u:f:a[r]?u<l[r]?Math.max(f,l[r]):Math.max(u,l[r]):f+s>l[r]+c?Math.max(u,l[r]):Math.max(f,l[r])}function ZM(e){return ZM="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},ZM(e)}function XM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XM(Object(n),!0).forEach((function(t){rj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oj(r.key),r)}}function ej(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ej=function(){return!!e})()}function tj(e){return tj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tj(e)}function nj(e,t){return nj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nj(e,t)}function rj(e,t,n){return(t=oj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oj(e){var t=function(e){if("object"!=ZM(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ZM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ZM(t)?t:t+""}var ij=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return rj(e=function(e,t,n){return t=tj(t),function(e,t){if(t&&("object"===ZM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ej()?Reflect.construct(t,n||[],tj(e).constructor):t.apply(e,n))}(this,t,[].concat(r)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),rj(e,"handleKeyDown",(function(t){var n,r,o,i;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=e.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null===(i=e.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nj(e,t)}(t,e),n=t,(r=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.state.lastBoundingBox.width)>1||Math.abs(e.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,o=t.animationDuration,i=t.animationEasing,a=t.children,s=t.coordinate,l=t.hasPayload,u=t.isAnimationActive,f=t.offset,d=t.position,p=t.reverseDirection,h=t.useTranslate3d,m=t.viewBox,y=t.wrapperStyle,g=function(e){var t,n,r=e.allowEscapeViewBox,o=e.coordinate,i=e.offsetTopLeft,a=e.position,s=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,u=e.viewBox;return{cssProperties:l.height>0&&l.width>0&&o?function(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:t=qM({allowEscapeViewBox:r,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:s,tooltipDimension:l.width,viewBox:u,viewBoxDimension:u.width}),translateY:n=qM({allowEscapeViewBox:r,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:s,tooltipDimension:l.height,viewBox:u,viewBoxDimension:u.height}),useTranslate3d:c}):QM,cssClasses:$M({translateX:t,translateY:n,coordinate:o})}}({allowEscapeViewBox:r,coordinate:s,offsetTopLeft:f,position:d,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:m}),v=g.cssClasses,b=g.cssProperties,w=KM(KM({transition:u&&n?"transform ".concat(o,"ms ").concat(i):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&l?"visible":"hidden",position:"absolute",top:0,left:0},y);return c().createElement("div",{tabIndex:-1,className:v,style:w,ref:function(t){e.wrapperNode=t}},a)}}])&&JM(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s.PureComponent),aj={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return aj[e]},set:function(e,t){if("string"==typeof e)aj[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach((function(t){aj[t]=e[t]}))}}},sj=o(50014),lj=o.n(sj);function cj(e,t,n){return!0===t?lj()(e,n):Wx()(t)?lj()(e,t):e}function uj(e){return uj="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},uj(e)}function fj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fj(Object(n),!0).forEach((function(t){gj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vj(r.key),r)}}function hj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hj=function(){return!!e})()}function mj(e){return mj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mj(e)}function yj(e,t){return yj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yj(e,t)}function gj(e,t,n){return(t=vj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vj(e){var t=function(e){if("object"!=uj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=uj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==uj(t)?t:t+""}function bj(e){return e.dataKey}var wj=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=mj(t),function(e,t){if(t&&("object"===uj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,hj()?Reflect.construct(t,n||[],mj(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yj(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,o=t.animationDuration,i=t.animationEasing,a=t.content,s=t.coordinate,l=t.filterNull,u=t.isAnimationActive,f=t.offset,d=t.payload,p=t.payloadUniqBy,h=t.position,m=t.reverseDirection,y=t.useTranslate3d,g=t.viewBox,v=t.wrapperStyle,b=null!=d?d:[];l&&b.length&&(b=cj(d.filter((function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)})),p,bj));var w=b.length>0;return c().createElement(ij,{allowEscapeViewBox:r,animationDuration:o,animationEasing:i,isAnimationActive:u,active:n,coordinate:s,hasPayload:w,offset:f,position:h,reverseDirection:m,useTranslate3d:y,viewBox:g,wrapperStyle:v},function(e,t){return c().isValidElement(e)?c().cloneElement(e,t):"function"==typeof e?c().createElement(e,t):c().createElement(YM,t)}(a,dj(dj({},this.props),{},{payload:b})))}}])&&pj(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s.PureComponent);gj(wj,"displayName","Tooltip"),gj(wj,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!aj.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var xj=o(55808),Mj=o.n(xj);Math.abs,Math.atan2;const jj=Math.cos,Ej=(Math.max,Math.min,Math.sin),Oj=Math.sqrt,kj=Math.PI,Sj=2*kj,Nj={draw(e,t){const n=Oj(t/kj);e.moveTo(n,0),e.arc(0,0,n,0,Sj)}},Tj={draw(e,t){const n=Oj(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Aj=Oj(1/3),Dj=2*Aj,Cj={draw(e,t){const n=Oj(t/Dj),r=n*Aj;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Ij={draw(e,t){const n=Oj(t),r=-n/2;e.rect(r,r,n,n)}},Pj=Ej(kj/10)/Ej(7*kj/10),_j=Ej(Sj/10)*Pj,Rj=-jj(Sj/10)*Pj,zj={draw(e,t){const n=Oj(.8908130915292852*t),r=_j*n,o=Rj*n;e.moveTo(0,-n),e.lineTo(r,o);for(let t=1;t<5;++t){const i=Sj*t/5,a=jj(i),s=Ej(i);e.lineTo(s*n,-a*n),e.lineTo(a*r-s*o,s*r+a*o)}e.closePath()}},Lj=Oj(3),Uj={draw(e,t){const n=-Oj(t/(3*Lj));e.moveTo(0,2*n),e.lineTo(-Lj*n,-n),e.lineTo(Lj*n,-n),e.closePath()}},Fj=-.5,Bj=Oj(3)/2,Vj=1/Oj(12),Yj=3*(Vj/2+1),Wj={draw(e,t){const n=Oj(t/Yj),r=n/2,o=n*Vj,i=r,a=n*Vj+n,s=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(Fj*r-Bj*o,Bj*r+Fj*o),e.lineTo(Fj*i-Bj*a,Bj*i+Fj*a),e.lineTo(Fj*s-Bj*l,Bj*s+Fj*l),e.lineTo(Fj*r+Bj*o,Fj*o-Bj*r),e.lineTo(Fj*i+Bj*a,Fj*a-Bj*i),e.lineTo(Fj*s+Bj*l,Fj*l-Bj*s),e.closePath()}};function Hj(e){return function(){return e}}const Gj=Math.PI,Qj=2*Gj,$j=1e-6,qj=Qj-$j;function Zj(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class Xj{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Zj:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Zj;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,i){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,s=n-e,l=r-t,c=i-e,u=a-t,f=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>$j)if(Math.abs(u*s-l*c)>$j&&o){let d=n-i,p=r-a,h=s*s+l*l,m=d*d+p*p,y=Math.sqrt(h),g=Math.sqrt(f),v=o*Math.tan((Gj-Math.acos((h+f-m)/(2*y*g)))/2),b=v/g,w=v/y;Math.abs(b-1)>$j&&this._append`L${e+b*c},${t+b*u}`,this._append`A${o},${o},0,0,${+(u*d>c*p)},${this._x1=e+w*s},${this._y1=t+w*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,o,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^i,f=i?r-o:o-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>$j||Math.abs(this._y1-c)>$j)&&this._append`L${l},${c}`,n&&(f<0&&(f=f%Qj+Qj),f>qj?this._append`A${n},${n},0,1,${u},${e-a},${t-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:f>$j&&this._append`A${n},${n},0,${+(f>=Gj)},${u},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function Kj(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Xj(t)}function Jj(e){return Jj="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},Jj(e)}Oj(3),Oj(3);var eE=["type","size","sizeType"];function tE(){return tE=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},tE.apply(this,arguments)}function nE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nE(Object(n),!0).forEach((function(t){oE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oE(e,t,n){return t=function(e){var t=function(e){if("object"!=Jj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Jj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jj(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iE={symbolCircle:Nj,symbolCross:Tj,symbolDiamond:Cj,symbolSquare:Ij,symbolStar:zj,symbolTriangle:Uj,symbolWye:Wj},aE=Math.PI/180,sE=function(e){var t,n,r=e.type,o=void 0===r?"circle":r,i=e.size,a=void 0===i?64:i,s=e.sizeType,l=void 0===s?"area":s,u=rE(rE({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,eE)),{},{type:o,size:a,sizeType:l}),f=u.className,d=u.cx,p=u.cy,h=mM(u,!0);return d===+d&&p===+p&&a===+a?c().createElement("path",tE({},h,{className:wt("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:(t=function(e){var t="symbol".concat(Mj()(e));return iE[t]||Nj}(o),n=function(e,t){let n=null,r=Kj(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:Hj(e||Nj),t="function"==typeof t?t:Hj(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:Hj(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:Hj(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o}().type(t).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*aE;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(a,l,o)),n())})):null};function lE(e){return lE="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},lE(e)}function cE(){return cE=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},cE.apply(this,arguments)}function uE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yE(r.key),r)}}function dE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dE=function(){return!!e})()}function pE(e){return pE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pE(e)}function hE(e,t){return hE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hE(e,t)}function mE(e,t,n){return(t=yE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yE(e){var t=function(e){if("object"!=lE(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lE(t)?t:t+""}sE.registerSymbol=function(e,t){iE["symbol".concat(Mj()(e))]=t};var gE=32,vE=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=pE(t),function(e,t){if(t&&("object"===lE(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dE()?Reflect.construct(t,n||[],pE(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hE(e,t)}(t,e),n=t,r=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,n=16,r=gE/6,o=gE/3,i=e.inactive?t:e.color;if("plainline"===e.type)return c().createElement("line",{strokeWidth:4,fill:"none",stroke:i,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:gE,y2:n,className:"recharts-legend-icon"});if("line"===e.type)return c().createElement("path",{strokeWidth:4,fill:"none",stroke:i,d:"M0,".concat(n,"h").concat(o,"\n A").concat(r,",").concat(r,",0,1,1,").concat(2*o,",").concat(n,"\n H").concat(gE,"M").concat(2*o,",").concat(n,"\n A").concat(r,",").concat(r,",0,1,1,").concat(o,",").concat(n),className:"recharts-legend-icon"});if("rect"===e.type)return c().createElement("path",{stroke:"none",fill:i,d:"M0,".concat(4,"h").concat(gE,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(c().isValidElement(e.legendIcon)){var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uE(Object(n),!0).forEach((function(t){mE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return delete a.legendIcon,c().cloneElement(e.legendIcon,a)}return c().createElement(sE,{fill:i,cx:n,cy:n,size:gE,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,o=t.layout,i=t.formatter,a=t.inactiveColor,s={x:0,y:0,width:gE,height:gE},l={display:"horizontal"===o?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(t,n){var o=t.formatter||i,f=wt(mE(mE({"recharts-legend-item":!0},"legend-item-".concat(n),!0),"inactive",t.inactive));if("none"===t.type)return null;var d=Wx()(t.value)?null:t.value;Fx(!Wx()(t.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var p=t.inactive?a:t.color;return c().createElement("li",cE({className:f,style:l,key:"legend-item-".concat(n)},tM(e.props,t,n)),c().createElement(CM,{width:r,height:r,viewBox:s,style:u},e.renderIcon(t)),c().createElement("span",{className:"recharts-legend-item-text",style:{color:p}},o?o(d,t,n):d))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return c().createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}],r&&fE(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s.PureComponent);function bE(e){return bE="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},bE(e)}mE(vE,"displayName","Legend"),mE(vE,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var wE=["ref"];function xE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ME(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xE(Object(n),!0).forEach((function(t){SE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,NE(r.key),r)}}function EE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(EE=function(){return!!e})()}function OE(e){return OE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},OE(e)}function kE(e,t){return kE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kE(e,t)}function SE(e,t,n){return(t=NE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NE(e){var t=function(e){if("object"!=bE(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bE(t)?t:t+""}function TE(e){return e.value}var AE=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return SE(e=function(e,t,n){return t=OE(t),function(e,t){if(t&&("object"===bE(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,EE()?Reflect.construct(t,n||[],OE(e).constructor):t.apply(e,n))}(this,t,[].concat(r)),"lastBoundingBox",{width:-1,height:-1}),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kE(e,t)}(t,e),n=t,r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ME({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,s=r.margin,l=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((l||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:s&&s.right||0}:{left:s&&s.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),ME(ME({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,i=t.wrapperStyle,a=t.payloadUniqBy,s=t.payload,l=ME(ME({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(i)),i);return c().createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,t){if(c().isValidElement(e))return c().cloneElement(e,t);if("function"==typeof e)return c().createElement(e,t);t.ref;var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,wE);return c().createElement(vE,n)}(n,ME(ME({},this.props),{},{payload:cj(s,a,TE)})))}}],o=[{key:"getWithHeight",value:function(e,t){var n=ME(ME({},this.defaultProps),e.props).layout;return"vertical"===n&&Dx(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],r&&jE(n.prototype,r),o&&jE(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(s.PureComponent);function DE(){return DE=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},DE.apply(this,arguments)}SE(AE,"displayName","Legend"),SE(AE,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var CE=function(e){var t=e.cx,n=e.cy,r=e.r,o=e.className,i=wt("recharts-dot",o);return t===+t&&n===+n&&r===+r?c().createElement("circle",DE({},mM(e,!1),eM(e),{className:i,cx:t,cy:n,r})):null},IE=o(5556),PE=o.n(IE),_E=Object.getOwnPropertyNames,RE=Object.getOwnPropertySymbols,zE=Object.prototype.hasOwnProperty;function LE(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function UE(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);var o=r.cache,i=o.get(t),a=o.get(n);if(i&&a)return i===n&&a===t;o.set(t,n),o.set(n,t);var s=e(t,n,r);return o.delete(t),o.delete(n),s}}function FE(e){return _E(e).concat(RE(e))}var BE=Object.hasOwn||function(e,t){return zE.call(e,t)};function VE(e,t){return e===t||!e&&!t&&e!=e&&t!=t}var YE=Object.getOwnPropertyDescriptor,WE=Object.keys;function HE(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function GE(e,t){return VE(e.getTime(),t.getTime())}function QE(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function $E(e,t){return e===t}function qE(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var o,i,a=new Array(r),s=e.entries(),l=0;(o=s.next())&&!o.done;){for(var c=t.entries(),u=!1,f=0;(i=c.next())&&!i.done;)if(a[f])f++;else{var d=o.value,p=i.value;if(n.equals(d[0],p[0],l,f,e,t,n)&&n.equals(d[1],p[1],d[0],p[0],e,t,n)){u=a[f]=!0;break}f++}if(!u)return!1;l++}return!0}var ZE=VE;function XE(e,t,n){var r=WE(e),o=r.length;if(WE(t).length!==o)return!1;for(;o-- >0;)if(!oO(e,t,n,r[o]))return!1;return!0}function KE(e,t,n){var r,o,i,a=FE(e),s=a.length;if(FE(t).length!==s)return!1;for(;s-- >0;){if(!oO(e,t,n,r=a[s]))return!1;if(o=YE(e,r),i=YE(t,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function JE(e,t){return VE(e.valueOf(),t.valueOf())}function eO(e,t){return e.source===t.source&&e.flags===t.flags}function tO(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var o,i,a=new Array(r),s=e.values();(o=s.next())&&!o.done;){for(var l=t.values(),c=!1,u=0;(i=l.next())&&!i.done;){if(!a[u]&&n.equals(o.value,i.value,o.value,i.value,e,t,n)){c=a[u]=!0;break}u++}if(!c)return!1}return!0}function nO(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function rO(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function oO(e,t,n,r){return!("_owner"!==r&&"__o"!==r&&"__v"!==r||!e.$$typeof&&!t.$$typeof)||BE(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var iO=Array.isArray,aO="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,sO=Object.assign,lO=Object.prototype.toString.call.bind(Object.prototype.toString),cO=uO();function uO(e){void 0===e&&(e={});var t,n=e.circular,r=void 0!==n&&n,o=e.createInternalComparator,i=e.createState,a=e.strict,s=void 0!==a&&a,l=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?KE:HE,areDatesEqual:GE,areErrorsEqual:QE,areFunctionsEqual:$E,areMapsEqual:r?LE(qE,KE):qE,areNumbersEqual:ZE,areObjectsEqual:r?KE:XE,arePrimitiveWrappersEqual:JE,areRegExpsEqual:eO,areSetsEqual:r?LE(tO,KE):tO,areTypedArraysEqual:r?KE:nO,areUrlsEqual:rO};if(n&&(o=sO({},o,n(o))),t){var i=UE(o.areArraysEqual),a=UE(o.areMapsEqual),s=UE(o.areObjectsEqual),l=UE(o.areSetsEqual);o=sO({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return o}(e),c=function(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,o=e.areFunctionsEqual,i=e.areMapsEqual,a=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,u=e.areSetsEqual,f=e.areTypedArraysEqual,d=e.areUrlsEqual;return function(e,p,h){if(e===p)return!0;if(null==e||null==p)return!1;var m=typeof e;if(m!==typeof p)return!1;if("object"!==m)return"number"===m?a(e,p,h):"function"===m&&o(e,p,h);var y=e.constructor;if(y!==p.constructor)return!1;if(y===Object)return s(e,p,h);if(iO(e))return t(e,p,h);if(null!=aO&&aO(e))return f(e,p,h);if(y===Date)return n(e,p,h);if(y===RegExp)return c(e,p,h);if(y===Map)return i(e,p,h);if(y===Set)return u(e,p,h);var g=lO(e);return"[object Date]"===g?n(e,p,h):"[object RegExp]"===g?c(e,p,h):"[object Map]"===g?i(e,p,h):"[object Set]"===g?u(e,p,h):"[object Object]"===g?"function"!=typeof e.then&&"function"!=typeof p.then&&s(e,p,h):"[object URL]"===g?d(e,p,h):"[object Error]"===g?r(e,p,h):"[object Arguments]"===g?s(e,p,h):("[object Boolean]"===g||"[object Number]"===g||"[object String]"===g)&&l(e,p,h)}}(l),u=o?o(c):(t=c,function(e,n,r,o,i,a,s){return t(e,n,s)});return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(e,a){var s=r(),l=s.cache,c=void 0===l?t?new WeakMap:void 0:l,u=s.meta;return n(e,a,{cache:c,equals:o,meta:u,strict:i})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(e,t){return n(e,t,a)}}({circular:r,comparator:c,createState:i,equals:u,strict:s})}function fO(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame((function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(r)}))}function dO(e){return dO="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},dO(e)}function pO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hO(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=function(e){if(Array.isArray(e))return e}(s=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return pO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pO(e,t):void 0}}(s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o.slice(1);return"number"==typeof i?void fO(n.bind(null,a),i):(n(i),void fO(n.bind(null,a)))}"object"===dO(r)&&e(r),"function"==typeof r&&r()}var s};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function mO(e){return mO="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},mO(e)}function yO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yO(Object(n),!0).forEach((function(t){vO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vO(e,t,n){return(t=function(e){var t=function(e){if("object"!==mO(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==mO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===mO(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}uO({strict:!0}),uO({circular:!0}),uO({circular:!0,strict:!0}),uO({createInternalComparator:function(){return VE}}),uO({strict:!0,createInternalComparator:function(){return VE}}),uO({circular:!0,createInternalComparator:function(){return VE}}),uO({circular:!0,createInternalComparator:function(){return VE},strict:!0});var bO=function(e){return e},wO=function(e,t){return Object.keys(t).reduce((function(n,r){return gO(gO({},n),{},vO({},r,e(r,t[r])))}),{})},xO=function(e,t,n){return e.map((function(e){return"".concat((r=e,r.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(n);var r})).join(",")};function MO(e,t){if(e){if("string"==typeof e)return jO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jO(e,t):void 0}}function jO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var EO=1e-4,OO=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},kO=function(e,t){return e.map((function(e,n){return e*Math.pow(t,n)})).reduce((function(e,t){return e+t}))},SO=function(e,t){return function(n){var r=OO(e,t);return kO(r,n)}},NO=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,i=t[0],a=t[1],s=t[2],l=t[3];if(1===t.length)switch(t[0]){case"linear":i=0,a=0,s=1,l=1;break;case"ease":i=.25,a=.1,s=.25,l=1;break;case"ease-in":i=.42,a=0,s=1,l=1;break;case"ease-out":i=.42,a=0,s=.58,l=1;break;case"ease-in-out":i=0,a=0,s=.58,l=1;break;default:var c=t[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=c[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),f=(o=4,function(e){if(Array.isArray(e))return e}(r=u)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(r,o)||MO(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());i=f[0],a=f[1],s=f[2],l=f[3]}}[i,s,a,l].every((function(e){return"number"==typeof e&&e>=0&&e<=1}));var d,p,h=SO(i,s),m=SO(a,l),y=(d=i,p=s,function(e){var t=OO(d,p),n=[].concat(function(e){return function(e){if(Array.isArray(e))return jO(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||MO(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.map((function(e,t){return e*t})).slice(1)),[0]);return kO(n,e)}),g=function(e){return e>1?1:e<0?0:e},v=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o=h(n)-t,i=y(n);if(Math.abs(o-t)<EO||i<EO)return m(n);n=g(n-o/i)}return m(n)};return v.isStepper=!1,v};function TO(e){return TO="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},TO(e)}function AO(e){return function(e){if(Array.isArray(e))return _O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||PO(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DO(Object(n),!0).forEach((function(t){IO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IO(e,t,n){return(t=function(e){var t=function(e){if("object"!==TO(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==TO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===TO(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PO(e,t){if(e){if("string"==typeof e)return _O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_O(e,t):void 0}}function _O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var RO=function(e,t,n){return e+(t-e)*n},zO=function(e){return e.from!==e.to},LO=function e(t,n,r){var o=wO((function(e,n){if(zO(n)){var r=(a=t(n.from,n.to,n.velocity),s=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(a,s)||PO(a,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],i=r[1];return CO(CO({},n),{},{from:o,velocity:i})}var a,s;return n}),n);return r<1?wO((function(e,t){return zO(t)?CO(CO({},t),{},{velocity:RO(t.velocity,o[e].velocity,r),from:RO(t.from,o[e].from,r)}):t}),n):e(t,o,r-1)};function UO(e){return UO="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},UO(e)}var FO=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function BO(e){return function(e){if(Array.isArray(e))return VO(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return VO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?VO(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function VO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YO(Object(n),!0).forEach((function(t){HO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HO(e,t,n){return(t=QO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QO(r.key),r)}}function QO(e){var t=function(e){if("object"!==UO(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==UO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===UO(t)?t:String(t)}function $O(e,t){return $O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$O(e,t)}function qO(e,t){if(t&&("object"===UO(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ZO(e)}function ZO(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XO(e){return XO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XO(e)}var KO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$O(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=XO(r);if(o){var n=XO(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return qO(this,e)});function a(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=(n=i.call(this,e,t)).props,o=r.isActive,s=r.attributeName,l=r.from,c=r.to,u=r.steps,f=r.children,d=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind(ZO(n)),n.changeStyle=n.changeStyle.bind(ZO(n)),!o||d<=0)return n.state={style:{}},"function"==typeof f&&(n.state={style:c}),qO(n);if(u&&u.length)n.state={style:u[0].style};else if(l){if("function"==typeof f)return n.state={style:l},qO(n);n.state={style:s?HO({},s,l):l}}else n.state={style:{}};return n}return t=a,n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,o=t.attributeName,i=t.shouldReAnimate,a=t.to,s=t.from,l=this.state.style;if(r)if(n){if(!(cO(e.to,a)&&e.canBegin&&e.isActive)){var c=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=c||i?s:e.to;if(this.state&&l){var f={style:o?HO({},o,u):u};(o&&l[o]!==u||!o&&l!==u)&&this.setState(f)}this.runAnimation(WO(WO({},this.props),{},{from:u,begin:0}))}}else{var d={style:o?HO({},o,a):a};this.state&&l&&(o&&l[o]!==a||!o&&l!==a)&&this.setState(d)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,o=e.duration,i=e.easing,a=e.begin,s=e.onAnimationEnd,l=e.onAnimationStart,c=function(e,t,n,r,o){var i,a,s,l,c=(i=e,a=t,[Object.keys(i),Object.keys(a)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),u=c.reduce((function(n,r){return CO(CO({},n),{},IO({},r,[e[r],t[r]]))}),{}),f=c.reduce((function(n,r){return CO(CO({},n),{},IO({},r,{from:e[r],velocity:0,to:t[r]}))}),{}),d=-1,p=function(){return null};return p=n.isStepper?function(r){s||(s=r);var i=(r-s)/n.dt;f=LO(n,f,i),o(CO(CO(CO({},e),t),wO((function(e,t){return t.from}),f))),s=r,Object.values(f).filter(zO).length&&(d=requestAnimationFrame(p))}:function(i){l||(l=i);var a=(i-l)/r,s=wO((function(e,t){return RO.apply(void 0,AO(t).concat([n(a)]))}),u);if(o(CO(CO(CO({},e),t),s)),a<1)d=requestAnimationFrame(p);else{var c=wO((function(e,t){return RO.apply(void 0,AO(t).concat([n(1)]))}),u);o(CO(CO(CO({},e),t),c))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(d)}}}(n,r,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return NO(r);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,s=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,s=r*a/1e3+e;return Math.abs(s-t)<EO&&Math.abs(i)<EO?[t,0]:[s,i]};return s.isStepper=!0,s.dt=a,s}();default:if("cubic-bezier"===r.split("(")[0])return NO(r)}return"function"==typeof r?r:null}(i),o,this.changeStyle);this.manager.start([l,a,function(){t.stopJSAnimation=c()},o,s])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,o=e.onAnimationStart,i=n[0],a=i.style,s=i.duration,l=void 0===s?0:s;return this.manager.start([o].concat(BO(n.reduce((function(e,r,o){if(0===o)return e;var i=r.duration,a=r.easing,s=void 0===a?"ease":a,l=r.style,c=r.properties,u=r.onAnimationEnd,f=o>0?n[o-1]:r,d=c||Object.keys(l);if("function"==typeof s||"spring"===s)return[].concat(BO(e),[t.runJSAnimation.bind(t,{from:f.style,to:l,duration:i,easing:s}),i]);var p=xO(d,i,s),h=WO(WO(WO({},f.style),l),{},{transition:p});return[].concat(BO(e),[h,i,u]).filter(bO)}),[a,Math.max(l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=hO());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,s=e.onAnimationEnd,l=e.steps,c=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof c&&"spring"!==i)if(l.length>1)this.runStepAnimation(e);else{var f=r?HO({},r,o):o,d=xO(Object.keys(f),n,i);u.start([a,t,WO(WO({},f),{},{transition:d}),n,s])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration),r=(e.attributeName,e.easing,e.isActive),o=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,FO)),i=s.Children.count(t),a=this.state.style;if("function"==typeof t)return t(a);if(!r||0===i||n<=0)return t;var l=function(e){var t=e.props,n=t.style,r=void 0===n?{}:n,i=t.className;return(0,s.cloneElement)(e,WO(WO({},o),{},{style:WO(WO({},r),a),className:i}))};return 1===i?l(s.Children.only(t)):c().createElement("div",null,s.Children.map(t,(function(e){return l(e)})))}}],n&&GO(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.PureComponent);KO.displayName="Animate",KO.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},KO.propTypes={from:PE().oneOfType([PE().object,PE().string]),to:PE().oneOfType([PE().object,PE().string]),attributeName:PE().string,duration:PE().number,begin:PE().number,easing:PE().oneOfType([PE().string,PE().func]),steps:PE().arrayOf(PE().shape({duration:PE().number.isRequired,style:PE().object.isRequired,easing:PE().oneOfType([PE().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),PE().func]),properties:PE().arrayOf("string"),onAnimationEnd:PE().func})),children:PE().oneOfType([PE().node,PE().func]),isActive:PE().bool,canBegin:PE().bool,onAnimationEnd:PE().func,shouldReAnimate:PE().bool,onAnimationStart:PE().func,onAnimationReStart:PE().func};const JO=KO;function ek(e){return ek="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},ek(e)}function tk(){return tk=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},tk.apply(this,arguments)}function nk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ok(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rk(Object(n),!0).forEach((function(t){ik(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ik(e,t,n){return t=function(e){var t=function(e){if("object"!=ek(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ek(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ek(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ak=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,l=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var u=[0,0,0,0],f=0;f<4;f++)u[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+s*u[0]),u[0]>0&&(i+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+l*u[0],",").concat(t)),i+="L ".concat(e+n-l*u[1],",").concat(t),u[1]>0&&(i+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n ").concat(e+n,",").concat(t+s*u[1])),i+="L ".concat(e+n,",").concat(t+r-s*u[2]),u[2]>0&&(i+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n ").concat(e+n-l*u[2],",").concat(t+r)),i+="L ".concat(e+l*u[3],",").concat(t+r),u[3]>0&&(i+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n ").concat(e,",").concat(t+r-s*u[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var d=Math.min(a,o);i="M ".concat(e,",").concat(t+s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e+l*d,",").concat(t,"\n L ").concat(e+n-l*d,",").concat(t,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e+n,",").concat(t+s*d,"\n L ").concat(e+n,",").concat(t+r-s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e+n-l*d,",").concat(t+r,"\n L ").concat(e+l*d,",").concat(t+r,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e,",").concat(t+r-s*d," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},sk=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var l=Math.min(o,o+a),c=Math.max(o,o+a),u=Math.min(i,i+s),f=Math.max(i,i+s);return n>=l&&n<=c&&r>=u&&r<=f}return!1},lk={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ck=function(e){var t,n,r=ok(ok({},lk),e),o=(0,s.useRef)(),i=(t=(0,s.useState)(-1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,n)||function(e,t){if(e){if("string"==typeof e)return nk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nk(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],l=i[1];(0,s.useEffect)((function(){if(o.current&&o.current.getTotalLength)try{var e=o.current.getTotalLength();e&&l(e)}catch(e){}}),[]);var u=r.x,f=r.y,d=r.width,p=r.height,h=r.radius,m=r.className,y=r.animationEasing,g=r.animationDuration,v=r.animationBegin,b=r.isAnimationActive,w=r.isUpdateAnimationActive;if(u!==+u||f!==+f||d!==+d||p!==+p||0===d||0===p)return null;var x=wt("recharts-rectangle",m);return w?c().createElement(JO,{canBegin:a>0,from:{width:d,height:p,x:u,y:f},to:{width:d,height:p,x:u,y:f},duration:g,animationEasing:y,isActive:w},(function(e){var t=e.width,n=e.height,i=e.x,s=e.y;return c().createElement(JO,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:g,isActive:b,easing:y},c().createElement("path",tk({},mM(r,!0),{className:x,d:ak(i,s,t,n,h),ref:o})))})):c().createElement("path",tk({},mM(r,!0),{className:x,d:ak(u,f,d,p,h)}))};function uk(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function fk(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}class dk extends Map{constructor(e,t=hk){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(pk(this,e))}has(e){return super.has(pk(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function pk({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function hk(e){return null!==e&&"object"==typeof e?e.valueOf():e}Set;const mk=Symbol("implicit");function yk(){var e=new dk,t=[],n=[],r=mk;function o(o){let i=e.get(o);if(void 0===i){if(r!==mk)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new dk;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return yk(t,n).unknown(r)},uk.apply(o,arguments),o}function gk(){var e,t,n=yk().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,l=0,c=0,u=.5;function f(){var n=r().length,f=a<i,d=f?a:i,p=f?i:a;e=(p-d)/Math.max(1,n-l+2*c),s&&(e=Math.floor(e)),d+=(p-d-e*(n-l))*u,t=e*(1-l),s&&(d=Math.round(d),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return d+e*t}));return o(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,s=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,f()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),f()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),f()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,f()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),f()):u},n.copy=function(){return gk(r(),[i,a]).round(s).paddingInner(l).paddingOuter(c).align(u)},uk.apply(f(),arguments)}function vk(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return vk(t())},e}function bk(){return vk(gk.apply(null,arguments).paddingInner(1))}function wk(e){return wk="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},wk(e)}function xk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xk(Object(n),!0).forEach((function(t){jk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jk(e,t,n){return t=function(e){var t=function(e){if("object"!=wk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wk(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ek={widthCache:{},cacheCount:0},Ok={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},kk="recharts_measurement_span",Sk=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||aj.isSsr)return{width:0,height:0};var n,r=(n=Mk({},t),Object.keys(n).forEach((function(e){n[e]||delete n[e]})),n),o=JSON.stringify({text:e,copyStyle:r});if(Ek.widthCache[o])return Ek.widthCache[o];try{var i=document.getElementById(kk);i||((i=document.createElement("span")).setAttribute("id",kk),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=Mk(Mk({},Ok),r);Object.assign(i.style,a),i.textContent="".concat(e);var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return Ek.widthCache[o]=l,++Ek.cacheCount>2e3&&(Ek.cacheCount=0,Ek.widthCache={}),l}catch(e){return{width:0,height:0}}};function Nk(e){return Nk="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},Nk(e)}function Tk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ak(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ak(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ak(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ck(r.key),r)}}function Ck(e){var t=function(e){if("object"!=Nk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nk(t)?t:t+""}var Ik=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Pk=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,_k=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Rk=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,zk={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Lk=Object.keys(zk),Uk="NaN",Fk=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),""===n||_k.test(n)||(this.num=NaN,this.unit=""),Lk.includes(n)&&(this.num=function(e,t){return e*zk[t]}(t,n),this.unit="px")}return t=e,r=[{key:"parse",value:function(t){var n,r=Tk(null!==(n=Rk.exec(t))&&void 0!==n?n:[],3),o=r[1],i=r[2];return new e(parseFloat(o),null!=i?i:"")}}],(n=[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&Dk(t.prototype,n),r&&Dk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Bk(e){if(e.includes(Uk))return Uk;for(var t=e;t.includes("*")||t.includes("/");){var n,r=Tk(null!==(n=Ik.exec(t))&&void 0!==n?n:[],4),o=r[1],i=r[2],a=r[3],s=Fk.parse(null!=o?o:""),l=Fk.parse(null!=a?a:""),c="*"===i?s.multiply(l):s.divide(l);if(c.isNaN())return Uk;t=t.replace(Ik,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,f=Tk(null!==(u=Pk.exec(t))&&void 0!==u?u:[],4),d=f[1],p=f[2],h=f[3],m=Fk.parse(null!=d?d:""),y=Fk.parse(null!=h?h:""),g="+"===p?m.add(y):m.subtract(y);if(g.isNaN())return Uk;t=t.replace(Pk,g.toString())}return t}var Vk=/\(([^()]*)\)/;function Yk(e){var t=function(e){try{return function(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var n=Tk(Vk.exec(t),2)[1];t=t.replace(Vk,Bk(n))}return t}(t),Bk(t)}(e)}catch(e){return Uk}}(e.slice(5,-1));return t===Uk?"":t}var Wk=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Hk=["dx","dy","angle","className","breakAll"];function Gk(){return Gk=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},Gk.apply(this,arguments)}function Qk(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qk(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Zk=/[ \f\n\r\t\v\u2028\u2029]+/,Xk=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var o=[];return Vx()(t)||(o=n?t.toString().split(""):t.toString().split(Zk)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:Sk(e,r).width}})),spaceWidth:n?0:Sk(" ",r).width}}catch(e){return null}},Kk=function(e){return[{words:Vx()(e)?[]:e.toString().split(Zk)}]},Jk="#808080",eS=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,o=void 0===r?0:r,i=e.lineHeight,a=void 0===i?"1em":i,l=e.capHeight,u=void 0===l?"0.71em":l,f=e.scaleToFit,d=void 0!==f&&f,p=e.textAnchor,h=void 0===p?"start":p,m=e.verticalAnchor,y=void 0===m?"end":m,g=e.fill,v=void 0===g?Jk:g,b=Qk(e,Wk),w=(0,s.useMemo)((function(){return function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||n)&&!aj.isSsr){var s=Xk({breakAll:i,children:r,style:o});return s?function(e,t,n,r,o){var i=e.maxLines,a=e.children,s=e.style,l=e.breakAll,c=Dx(i),u=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+a+n<Number(r)))s.words.push(i),s.width+=a+n;else{var l={words:[i],width:a};e.push(l)}return e}),[])},d=f(t);if(!c)return d;for(var p,h=function(e){var t=u.slice(0,e),n=Xk({breakAll:l,style:s,children:t+"…"}).wordsWithComputedWidth,o=f(n),a=o.length>i||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>Number(r);return[a,o]},m=0,y=u.length-1,g=0;m<=y&&g<=u.length-1;){var v=Math.floor((m+y)/2),b=$k(h(v-1),2),w=b[0],x=b[1],M=$k(h(v),1)[0];if(w||M||(m=v+1),w&&M&&(y=v-1),!w&&M){p=x;break}g++}return p||d}({breakAll:i,children:r,maxLines:a,style:o},s.wordsWithComputedWidth,s.spaceWidth,t,n):Kk(r)}return Kk(r)}({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:d,style:b.style,width:b.width})}),[b.breakAll,b.children,b.maxLines,d,b.style,b.width]),x=b.dx,M=b.dy,j=b.angle,E=b.className,O=b.breakAll,k=Qk(b,Hk);if(!Cx(n)||!Cx(o))return null;var S,N=n+(Dx(x)?x:0),T=o+(Dx(M)?M:0);switch(y){case"start":S=Yk("calc(".concat(u,")"));break;case"middle":S=Yk("calc(".concat((w.length-1)/2," * -").concat(a," + (").concat(u," / 2))"));break;default:S=Yk("calc(".concat(w.length-1," * -").concat(a,")"))}var A=[];if(d){var D=w[0].width,C=b.width;A.push("scale(".concat((Dx(C)?C/D:1)/D,")"))}return j&&A.push("rotate(".concat(j,", ").concat(N,", ").concat(T,")")),A.length&&(k.transform=A.join(" ")),c().createElement("text",Gk({},mM(k,!0),{x:N,y:T,className:wt("recharts-text",E),textAnchor:h,fill:v.includes("url")?Jk:v}),w.map((function(e,t){var n=e.words.join(O?"":" ");return c().createElement("tspan",{x:N,dy:0===t?S:a,key:"".concat(n,"-").concat(t)},n)})))};const tS=Math.sqrt(50),nS=Math.sqrt(10),rS=Math.sqrt(2);function oS(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=tS?10:i>=nS?5:i>=rS?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?oS(e,t,2*n):[s,l,c]}function iS(e,t,n){if(!((n=+n)>0))return[];if((e=+e)==(t=+t))return[e];const r=t<e,[o,i,a]=r?oS(t,e,n):oS(e,t,n);if(!(i>=o))return[];const s=i-o+1,l=new Array(s);if(r)if(a<0)for(let e=0;e<s;++e)l[e]=(i-e)/-a;else for(let e=0;e<s;++e)l[e]=(i-e)*a;else if(a<0)for(let e=0;e<s;++e)l[e]=(o+e)/-a;else for(let e=0;e<s;++e)l[e]=(o+e)*a;return l}function aS(e,t,n){return oS(e=+e,t=+t,n=+n)[2]}function sS(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?aS(t,e,n):aS(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function lS(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function cS(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function uS(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=lS,n=(t,n)=>lS(e(t),n),r=(t,n)=>e(t)-n):(t=e===lS||e===cS?e:fS,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function fS(){return 0}function dS(e){return null===e?NaN:+e}const pS=uS(lS),hS=pS.right,mS=(pS.left,uS(dS).center,hS);function yS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function gS(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function vS(){}var bS=.7,wS=1/bS,xS="\\s*([+-]?\\d+)\\s*",MS="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",jS="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ES=/^#([0-9a-f]{3,8})$/,OS=new RegExp(`^rgb\\(${xS},${xS},${xS}\\)$`),kS=new RegExp(`^rgb\\(${jS},${jS},${jS}\\)$`),SS=new RegExp(`^rgba\\(${xS},${xS},${xS},${MS}\\)$`),NS=new RegExp(`^rgba\\(${jS},${jS},${jS},${MS}\\)$`),TS=new RegExp(`^hsl\\(${MS},${jS},${jS}\\)$`),AS=new RegExp(`^hsla\\(${MS},${jS},${jS},${MS}\\)$`),DS={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function CS(){return this.rgb().formatHex()}function IS(){return this.rgb().formatRgb()}function PS(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ES.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_S(t):3===n?new LS(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?RS(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?RS(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=OS.exec(e))?new LS(t[1],t[2],t[3],1):(t=kS.exec(e))?new LS(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=SS.exec(e))?RS(t[1],t[2],t[3],t[4]):(t=NS.exec(e))?RS(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=TS.exec(e))?WS(t[1],t[2]/100,t[3]/100,1):(t=AS.exec(e))?WS(t[1],t[2]/100,t[3]/100,t[4]):DS.hasOwnProperty(e)?_S(DS[e]):"transparent"===e?new LS(NaN,NaN,NaN,0):null}function _S(e){return new LS(e>>16&255,e>>8&255,255&e,1)}function RS(e,t,n,r){return r<=0&&(e=t=n=NaN),new LS(e,t,n,r)}function zS(e,t,n,r){return 1===arguments.length?function(e){return e instanceof vS||(e=PS(e)),e?new LS((e=e.rgb()).r,e.g,e.b,e.opacity):new LS}(e):new LS(e,t,n,null==r?1:r)}function LS(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function US(){return`#${YS(this.r)}${YS(this.g)}${YS(this.b)}`}function FS(){const e=BS(this.opacity);return`${1===e?"rgb(":"rgba("}${VS(this.r)}, ${VS(this.g)}, ${VS(this.b)}${1===e?")":`, ${e})`}`}function BS(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function VS(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function YS(e){return((e=VS(e))<16?"0":"")+e.toString(16)}function WS(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new GS(e,t,n,r)}function HS(e){if(e instanceof GS)return new GS(e.h,e.s,e.l,e.opacity);if(e instanceof vS||(e=PS(e)),!e)return new GS;if(e instanceof GS)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new GS(a,s,l,e.opacity)}function GS(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function QS(e){return(e=(e||0)%360)<0?e+360:e}function $S(e){return Math.max(0,Math.min(1,e||0))}function qS(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function ZS(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}yS(vS,PS,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:CS,formatHex:CS,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return HS(this).formatHsl()},formatRgb:IS,toString:IS}),yS(LS,zS,gS(vS,{brighter(e){return e=null==e?wS:Math.pow(wS,e),new LS(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?bS:Math.pow(bS,e),new LS(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new LS(VS(this.r),VS(this.g),VS(this.b),BS(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:US,formatHex:US,formatHex8:function(){return`#${YS(this.r)}${YS(this.g)}${YS(this.b)}${YS(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:FS,toString:FS})),yS(GS,(function(e,t,n,r){return 1===arguments.length?HS(e):new GS(e,t,n,null==r?1:r)}),gS(vS,{brighter(e){return e=null==e?wS:Math.pow(wS,e),new GS(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?bS:Math.pow(bS,e),new GS(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new LS(qS(e>=240?e-240:e+120,o,r),qS(e,o,r),qS(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new GS(QS(this.h),$S(this.s),$S(this.l),BS(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=BS(this.opacity);return`${1===e?"hsl(":"hsla("}${QS(this.h)}, ${100*$S(this.s)}%, ${100*$S(this.l)}%${1===e?")":`, ${e})`}`}}));const XS=e=>()=>e;function KS(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):XS(isNaN(e)?t:e)}const JS=function e(t){var n=function(e){return 1==(e=+e)?KS:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):XS(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=zS(e)).r,(t=zS(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=KS(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function eN(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;n<o;++n)r=zS(t[n]),i[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return i=e(i),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=i(e),r.g=a(e),r.b=s(e),r+""}}}function tN(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=cN(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function nN(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function rN(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function oN(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=cN(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}eN((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=r<t-1?e[r+2]:2*i-o;return ZS((n-r/t)*t,a,o,i,s)}})),eN((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return ZS((n-r/t)*t,o,i,a,s)}}));var iN=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,aN=new RegExp(iN.source,"g");function sN(e,t){var n,r,o,i=iN.lastIndex=aN.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=iN.exec(e))&&(r=aN.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:rN(n,r)})),i=aN.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function lN(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function cN(e,t){var n,r=typeof t;return null==t||"boolean"===r?XS(t):("number"===r?rN:"string"===r?(n=PS(t))?(t=n,JS):sN:t instanceof PS?JS:t instanceof Date?nN:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?lN:Array.isArray(t)?tN:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?oN:rN)(e,t)}function uN(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function fN(e){return+e}var dN=[0,1];function pN(e){return e}function hN(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function mN(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=hN(o,r),i=n(a,i)):(r=hN(r,o),i=n(i,a)),function(e){return i(r(e))}}function yN(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=hN(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=mS(e,t,1,r)-1;return i[n](o[n](t))}}function gN(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function vN(){var e,t,n,r,o,i,a=dN,s=dN,l=cN,c=pN;function u(){var e=Math.min(a.length,s.length);return c!==pN&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?yN:mN,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(c(t)))}return f.invert=function(n){return c(t((i||(i=r(s,a.map(e),rN)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,fN),u()):a.slice()},f.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},f.rangeRound=function(e){return s=Array.from(e),l=uN,u()},f.clamp=function(e){return arguments.length?(c=!!e||pN,u()):c!==pN},f.interpolate=function(e){return arguments.length?(l=e,u()):l},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,u()}}function bN(){return vN()(pN,pN)}var wN,xN=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function MN(e){if(!(t=xN.exec(e)))throw new Error("invalid format: "+e);var t;return new jN({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function jN(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function EN(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ON(e){return(e=EN(Math.abs(e)))?e[1]:NaN}function kN(e,t){var n=EN(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}MN.prototype=jN.prototype,jN.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const SN={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>kN(100*e,t),r:kN,s:function(e,t){var n=EN(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(wN=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+EN(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function NN(e){return e}var TN,AN,DN,CN=Array.prototype.map,IN=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function PN(e,t,n,r){var o,i=sS(e,t,n);switch((r=MN(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ON(t)/3)))-ON(Math.abs(e)))}(i,a))||(r.precision=o),DN(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ON(t)-ON(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-ON(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return AN(r)}function _N(e){var t=e.domain;return e.ticks=function(e){var n=t();return iS(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return PN(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,s=i.length-1,l=i[a],c=i[s],u=10;for(c<l&&(o=l,l=c,c=o,o=a,a=s,s=o);u-- >0;){if((o=aS(l,c,n))===r)return i[a]=l,i[s]=c,t(i);if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}r=o}return e},e}function RN(){var e=bN();return e.copy=function(){return gN(e,RN())},uk.apply(e,arguments),_N(e)}function zN(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,fN),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return zN(e).unknown(t)},e=arguments.length?Array.from(e,fN):[0,1],_N(n)}function LN(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function UN(e){return Math.log(e)}function FN(e){return Math.exp(e)}function BN(e){return-Math.log(-e)}function VN(e){return-Math.exp(-e)}function YN(e){return isFinite(e)?+("1e"+e):e<0?0:e}function WN(e){return(t,n)=>-e(-t,n)}function HN(e){const t=e(UN,FN),n=t.domain;let r,o,i=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?YN:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=WN(r),o=WN(o),e(BN,VN)):e(UN,FN),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],s=t[t.length-1];const l=s<a;l&&([a,s]=[s,a]);let c,u,f=r(a),d=r(s);const p=null==e?10:+e;let h=[];if(!(i%1)&&d-f<p){if(f=Math.floor(f),d=Math.ceil(d),a>0){for(;f<=d;++f)for(c=1;c<i;++c)if(u=f<0?c/o(-f):c*o(f),!(u<a)){if(u>s)break;h.push(u)}}else for(;f<=d;++f)for(c=i-1;c>=1;--c)if(u=f>0?c/o(-f):c*o(f),!(u<a)){if(u>s)break;h.push(u)}2*h.length<p&&(h=iS(a,s,p))}else h=iS(f,d,Math.min(d-f,p)).map(o);return l?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=MN(n)).precision||(n.trim=!0),n=AN(n)),e===1/0)return n;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*i<i-.5&&(t*=i),t<=a?n(e):""}},t.nice=()=>n(LN(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function GN(){const e=HN(vN()).domain([1,10]);return e.copy=()=>gN(e,GN()).base(e.base()),uk.apply(e,arguments),e}function QN(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function $N(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function qN(e){var t=1,n=e(QN(t),$N(t));return n.constant=function(n){return arguments.length?e(QN(t=+n),$N(t)):t},_N(n)}function ZN(){var e=qN(vN());return e.copy=function(){return gN(e,ZN()).constant(e.constant())},uk.apply(e,arguments)}function XN(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function KN(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function JN(e){return e<0?-e*e:e*e}function eT(e){var t=e(pN,pN),n=1;return t.exponent=function(t){return arguments.length?1==(n=+t)?e(pN,pN):.5===n?e(KN,JN):e(XN(n),XN(1/n)):n},_N(t)}function tT(){var e=eT(vN());return e.copy=function(){return gN(e,tT()).exponent(e.exponent())},uk.apply(e,arguments),e}function nT(){return tT.apply(null,arguments).exponent(.5)}function rT(e){return Math.sign(e)*e*e}function oT(){var e,t=bN(),n=[0,1],r=!1;function o(n){var o=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(n));return isNaN(o)?e:r?Math.round(o):o}return o.invert=function(e){return t.invert(rT(e))},o.domain=function(e){return arguments.length?(t.domain(e),o):t.domain()},o.range=function(e){return arguments.length?(t.range((n=Array.from(e,fN)).map(rT)),o):n.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(r=!!e,o):r},o.clamp=function(e){return arguments.length?(t.clamp(e),o):t.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return oT(t.domain(),n).round(r).clamp(t.clamp()).unknown(e)},uk.apply(o,arguments),_N(o)}function iT(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function aT(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function sT(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function lT(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?sT:function(e=lS){if(e===lS)return sT;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,s=Math.log(i),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(i-l)/i)*(a-i/2<0?-1:1);lT(e,t,Math.max(n,Math.floor(t-a*l/i+c)),Math.min(r,Math.floor(t+(i-a)*l/i+c)),o)}const i=e[t];let a=n,s=r;for(cT(e,n,t),o(e[r],i)>0&&cT(e,n,r);a<s;){for(cT(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?cT(e,n,s):(++s,cT(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function cT(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function uT(e,t,n=dS){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function fT(){var e,t=[],n=[],r=[];function o(){var e=0,o=Math.max(1,n.length);for(r=new Array(o-1);++e<o;)r[e-1]=uT(t,e/o);return i}function i(t){return null==t||isNaN(t=+t)?e:n[mS(r,t)]}return i.invertExtent=function(e){var o=n.indexOf(e);return o<0?[NaN,NaN]:[o>0?r[o-1]:t[0],o<r.length?r[o]:t[t.length-1]]},i.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(lS),o()},i.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.quantiles=function(){return r.slice()},i.copy=function(){return fT().domain(t).range(n).unknown(e)},uk.apply(i,arguments)}function dT(){var e,t=0,n=1,r=1,o=[.5],i=[0,1];function a(t){return null!=t&&t<=t?i[mS(o,t,0,r)]:e}function s(){var e=-1;for(o=new Array(r);++e<r;)o[e]=((e+1)*n-(e-r)*t)/(r+1);return a}return a.domain=function(e){return arguments.length?([t,n]=e,t=+t,n=+n,s()):[t,n]},a.range=function(e){return arguments.length?(r=(i=Array.from(e)).length-1,s()):i.slice()},a.invertExtent=function(e){var a=i.indexOf(e);return a<0?[NaN,NaN]:a<1?[t,o[0]]:a>=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return dT().domain([t,n]).range(i).unknown(e)},uk.apply(_N(a),arguments)}function pT(){var e,t=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[mS(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return pT().domain(t).range(n).unknown(e)},uk.apply(o,arguments)}TN=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?NN:(t=CN.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?NN:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(CN.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=MN(e)).fill,n=e.align,f=e.sign,d=e.symbol,p=e.zero,h=e.width,m=e.comma,y=e.precision,g=e.trim,v=e.type;"n"===v?(m=!0,v="g"):SN[v]||(void 0===y&&(y=12),g=!0,v="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===d?o:"#"===d&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",w="$"===d?i:/[%p]/.test(v)?l:"",x=SN[v],M=/[defgprs%]/.test(v);function j(e){var o,i,l,d=b,j=w;if("c"===v)j=x(e)+j,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:x(Math.abs(e),y),g&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==f&&(E=!1),d=(E?"("===f?f:c:"-"===f||"("===f?"":f)+d,j=("s"===v?IN[8+wN/3]:"")+j+(E&&"("===f?")":""),M)for(o=-1,i=e.length;++o<i;)if(48>(l=e.charCodeAt(o))||l>57){j=(46===l?a+e.slice(o+1):e.slice(o))+j,e=e.slice(0,o);break}}m&&!p&&(e=r(e,1/0));var O=d.length+e.length+j.length,k=O<h?new Array(h-O+1).join(t):"";switch(m&&p&&(e=r(k+e,k.length?h-j.length:1/0),k=""),n){case"<":e=d+e+j+k;break;case"=":e=d+k+e+j;break;case"^":e=k.slice(0,O=k.length>>1)+d+e+j+k.slice(O);break;default:e=k+d+e+j}return s(e)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),j.toString=function(){return e+""},j}return{format:f,formatPrefix:function(e,t){var n=f(((e=MN(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(ON(t)/3))),o=Math.pow(10,-r),i=IN[8+r/3];return function(e){return n(o*e)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),AN=TN.format,DN=TN.formatPrefix;const hT=1e3,mT=6e4,yT=36e5,gT=864e5,vT=6048e5,bT=31536e6,wT=new Date,xT=new Date;function MT(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>MT((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(wT.setTime(+t),xT.setTime(+r),e(wT),e(xT),Math.floor(n(wT,xT))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const jT=MT((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));jT.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?MT((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):jT:null),jT.range;const ET=MT((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*hT)}),((e,t)=>(t-e)/hT),(e=>e.getUTCSeconds())),OT=(ET.range,MT((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hT)}),((e,t)=>{e.setTime(+e+t*mT)}),((e,t)=>(t-e)/mT),(e=>e.getMinutes()))),kT=(OT.range,MT((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*mT)}),((e,t)=>(t-e)/mT),(e=>e.getUTCMinutes()))),ST=(kT.range,MT((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hT-e.getMinutes()*mT)}),((e,t)=>{e.setTime(+e+t*yT)}),((e,t)=>(t-e)/yT),(e=>e.getHours()))),NT=(ST.range,MT((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*yT)}),((e,t)=>(t-e)/yT),(e=>e.getUTCHours()))),TT=(NT.range,MT((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*mT)/gT),(e=>e.getDate()-1))),AT=(TT.range,MT((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/gT),(e=>e.getUTCDate()-1))),DT=(AT.range,MT((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/gT),(e=>Math.floor(e/gT))));function CT(e){return MT((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*mT)/vT))}DT.range;const IT=CT(0),PT=CT(1),_T=CT(2),RT=CT(3),zT=CT(4),LT=CT(5),UT=CT(6);function FT(e){return MT((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/vT))}IT.range,PT.range,_T.range,RT.range,zT.range,LT.range,UT.range;const BT=FT(0),VT=FT(1),YT=FT(2),WT=FT(3),HT=FT(4),GT=FT(5),QT=FT(6),$T=(BT.range,VT.range,YT.range,WT.range,HT.range,GT.range,QT.range,MT((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()))),qT=($T.range,MT((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()))),ZT=(qT.range,MT((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear())));ZT.every=e=>isFinite(e=Math.floor(e))&&e>0?MT((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,ZT.range;const XT=MT((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function KT(e,t,n,r,o,i){const a=[[ET,1,hT],[ET,5,5e3],[ET,15,15e3],[ET,30,3e4],[i,1,mT],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,yT],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,gT],[r,2,1728e5],[n,1,vT],[t,1,2592e6],[t,3,7776e6],[e,1,bT]];function s(t,n,r){const o=Math.abs(n-t)/r,i=uS((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(sS(t/bT,n/bT,r));if(0===i)return jT.every(Math.max(sS(t,n,r),1));const[s,l]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:s(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},s]}XT.every=e=>isFinite(e=Math.floor(e))&&e>0?MT((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,XT.range;const[JT,eA]=KT(XT,qT,BT,DT,NT,kT),[tA,nA]=KT(ZT,$T,IT,TT,ST,OT);function rA(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function oA(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function iA(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var aA,sA,lA,cA={"-":"",_:" ",0:"0"},uA=/^\s*\d+/,fA=/^%/,dA=/[\\^$*+?|[\]().{}]/g;function pA(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function hA(e){return e.replace(dA,"\\$&")}function mA(e){return new RegExp("^(?:"+e.map(hA).join("|")+")","i")}function yA(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function gA(e,t,n){var r=uA.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function vA(e,t,n){var r=uA.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function bA(e,t,n){var r=uA.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function wA(e,t,n){var r=uA.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function xA(e,t,n){var r=uA.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function MA(e,t,n){var r=uA.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function jA(e,t,n){var r=uA.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function EA(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function OA(e,t,n){var r=uA.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function kA(e,t,n){var r=uA.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function SA(e,t,n){var r=uA.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function NA(e,t,n){var r=uA.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function TA(e,t,n){var r=uA.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function AA(e,t,n){var r=uA.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function DA(e,t,n){var r=uA.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function CA(e,t,n){var r=uA.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function IA(e,t,n){var r=uA.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function PA(e,t,n){var r=fA.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function _A(e,t,n){var r=uA.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function RA(e,t,n){var r=uA.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function zA(e,t){return pA(e.getDate(),t,2)}function LA(e,t){return pA(e.getHours(),t,2)}function UA(e,t){return pA(e.getHours()%12||12,t,2)}function FA(e,t){return pA(1+TT.count(ZT(e),e),t,3)}function BA(e,t){return pA(e.getMilliseconds(),t,3)}function VA(e,t){return BA(e,t)+"000"}function YA(e,t){return pA(e.getMonth()+1,t,2)}function WA(e,t){return pA(e.getMinutes(),t,2)}function HA(e,t){return pA(e.getSeconds(),t,2)}function GA(e){var t=e.getDay();return 0===t?7:t}function QA(e,t){return pA(IT.count(ZT(e)-1,e),t,2)}function $A(e){var t=e.getDay();return t>=4||0===t?zT(e):zT.ceil(e)}function qA(e,t){return e=$A(e),pA(zT.count(ZT(e),e)+(4===ZT(e).getDay()),t,2)}function ZA(e){return e.getDay()}function XA(e,t){return pA(PT.count(ZT(e)-1,e),t,2)}function KA(e,t){return pA(e.getFullYear()%100,t,2)}function JA(e,t){return pA((e=$A(e)).getFullYear()%100,t,2)}function eD(e,t){return pA(e.getFullYear()%1e4,t,4)}function tD(e,t){var n=e.getDay();return pA((e=n>=4||0===n?zT(e):zT.ceil(e)).getFullYear()%1e4,t,4)}function nD(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pA(t/60|0,"0",2)+pA(t%60,"0",2)}function rD(e,t){return pA(e.getUTCDate(),t,2)}function oD(e,t){return pA(e.getUTCHours(),t,2)}function iD(e,t){return pA(e.getUTCHours()%12||12,t,2)}function aD(e,t){return pA(1+AT.count(XT(e),e),t,3)}function sD(e,t){return pA(e.getUTCMilliseconds(),t,3)}function lD(e,t){return sD(e,t)+"000"}function cD(e,t){return pA(e.getUTCMonth()+1,t,2)}function uD(e,t){return pA(e.getUTCMinutes(),t,2)}function fD(e,t){return pA(e.getUTCSeconds(),t,2)}function dD(e){var t=e.getUTCDay();return 0===t?7:t}function pD(e,t){return pA(BT.count(XT(e)-1,e),t,2)}function hD(e){var t=e.getUTCDay();return t>=4||0===t?HT(e):HT.ceil(e)}function mD(e,t){return e=hD(e),pA(HT.count(XT(e),e)+(4===XT(e).getUTCDay()),t,2)}function yD(e){return e.getUTCDay()}function gD(e,t){return pA(VT.count(XT(e)-1,e),t,2)}function vD(e,t){return pA(e.getUTCFullYear()%100,t,2)}function bD(e,t){return pA((e=hD(e)).getUTCFullYear()%100,t,2)}function wD(e,t){return pA(e.getUTCFullYear()%1e4,t,4)}function xD(e,t){var n=e.getUTCDay();return pA((e=n>=4||0===n?HT(e):HT.ceil(e)).getUTCFullYear()%1e4,t,4)}function MD(){return"+0000"}function jD(){return"%"}function ED(e){return+e}function OD(e){return Math.floor(+e/1e3)}function kD(e){return new Date(e)}function SD(e){return e instanceof Date?+e:+new Date(+e)}function ND(e,t,n,r,o,i,a,s,l,c){var u=bN(),f=u.invert,d=u.domain,p=c(".%L"),h=c(":%S"),m=c("%I:%M"),y=c("%I %p"),g=c("%a %d"),v=c("%b %d"),b=c("%B"),w=c("%Y");function x(e){return(l(e)<e?p:s(e)<e?h:a(e)<e?m:i(e)<e?y:r(e)<e?o(e)<e?g:v:n(e)<e?b:w)(e)}return u.invert=function(e){return new Date(f(e))},u.domain=function(e){return arguments.length?d(Array.from(e,SD)):d().map(kD)},u.ticks=function(t){var n=d();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?x:c(t)},u.nice=function(e){var n=d();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?d(LN(n,e)):u},u.copy=function(){return gN(u,ND(e,t,n,r,o,i,a,s,l,c))},u}function TD(){return uk.apply(ND(tA,nA,ZT,$T,IT,TT,ST,OT,ET,sA).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function AD(){return uk.apply(ND(JT,eA,XT,qT,BT,AT,NT,kT,ET,lA).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function DD(){var e,t,n,r,o,i=0,a=1,s=pN,l=!1;function c(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),c):[s(0),s(1)]}}return c.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),c):[i,a]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(s=e,c):s},c.range=u(cN),c.rangeRound=u(uN),c.unknown=function(e){return arguments.length?(o=e,c):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),c}}function CD(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function ID(){var e=_N(DD()(pN));return e.copy=function(){return CD(e,ID())},fk.apply(e,arguments)}function PD(){var e=HN(DD()).domain([1,10]);return e.copy=function(){return CD(e,PD()).base(e.base())},fk.apply(e,arguments)}function _D(){var e=qN(DD());return e.copy=function(){return CD(e,_D()).constant(e.constant())},fk.apply(e,arguments)}function RD(){var e=eT(DD());return e.copy=function(){return CD(e,RD()).exponent(e.exponent())},fk.apply(e,arguments)}function zD(){return RD.apply(null,arguments).exponent(.5)}function LD(){var e=[],t=pN;function n(n){if(null!=n&&!isNaN(n=+n))return t((mS(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(lS),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map(((n,r)=>t(r/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return aT(e);if(t>=1)return iT(e);var r,o=(r-1)*t,i=Math.floor(o),a=iT(lT(e,i).subarray(0,i+1));return a+(aT(e.subarray(i+1))-a)*(o-i)}}(e,r/t)))},n.copy=function(){return LD(t).domain(e)},fk.apply(n,arguments)}function UD(){var e,t,n,r,o,i,a,s=0,l=.5,c=1,u=1,f=pN,d=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(u*e<u*t?r:o),f(d?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,f=function(e,t){void 0===t&&(t=e,e=cN);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}(e,[n,r,o]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([s,l,c]=a,e=i(s=+s),t=i(l=+l),n=i(c=+c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p):[s,l,c]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(f=e,p):f},p.range=h(cN),p.rangeRound=h(uN),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(s),t=a(l),n=a(c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p}}function FD(){var e=_N(UD()(pN));return e.copy=function(){return CD(e,FD())},fk.apply(e,arguments)}function BD(){var e=HN(UD()).domain([.1,1,10]);return e.copy=function(){return CD(e,BD()).base(e.base())},fk.apply(e,arguments)}function VD(){var e=qN(UD());return e.copy=function(){return CD(e,VD()).constant(e.constant())},fk.apply(e,arguments)}function YD(){var e=eT(UD());return e.copy=function(){return CD(e,YD()).exponent(e.exponent())},fk.apply(e,arguments)}function WD(){return YD.apply(null,arguments).exponent(.5)}function HD(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function GD(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function QD(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function $D(e,t){return e[t]}function qD(e){const t=[];return t.key=e,t}aA=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=mA(o),u=yA(o),f=mA(i),d=yA(i),p=mA(a),h=yA(a),m=mA(s),y=yA(s),g=mA(l),v=yA(l),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:zA,e:zA,f:VA,g:JA,G:tD,H:LA,I:UA,j:FA,L:BA,m:YA,M:WA,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ED,s:OD,S:HA,u:GA,U:QA,V:qA,w:ZA,W:XA,x:null,X:null,y:KA,Y:eD,Z:nD,"%":jD},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:rD,e:rD,f:lD,g:bD,G:xD,H:oD,I:iD,j:aD,L:sD,m:cD,M:uD,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ED,s:OD,S:fD,u:dD,U:pD,V:mD,w:yD,W:gD,x:null,X:null,y:vD,Y:wD,Z:MD,"%":jD},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:SA,e:SA,f:IA,g:jA,G:MA,H:TA,I:TA,j:NA,L:CA,m:kA,M:AA,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:OA,Q:_A,s:RA,S:DA,u:vA,U:bA,V:wA,w:gA,W:xA,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:jA,Y:MA,Z:EA,"%":PA};function M(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=cA[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function j(e,t){return function(n){var r,o,i=iA(1900,void 0,1);if(E(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=oA(iA(i.y,0,1))).getUTCDay(),r=o>4||0===o?VT.ceil(r):VT(r),r=AT.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=rA(iA(i.y,0,1))).getDay(),r=o>4||0===o?PT.ceil(r):PT(r),r=TT.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?oA(iA(i.y,0,1)).getUTCDay():rA(iA(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,oA(i)):rA(i)}}function E(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in cA?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=M(n,b),b.X=M(r,b),b.c=M(t,b),w.x=M(n,w),w.X=M(r,w),w.c=M(t,w),{format:function(e){var t=M(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=j(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=M(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=j(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),sA=aA.format,aA.parse,lA=aA.utcFormat,aA.utcParse,Array.prototype.slice;var ZD=o(94506),XD=o.n(ZD),KD=o(31684),JD=o.n(KD),eC=o(47307),tC=o.n(eC),nC=o(2404),rC=o.n(nC),oC=o(38351),iC=o.n(oC);function aC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sC=function(e){return e},lC={"@@functional/placeholder":!0},cC=function(e){return e===lC},uC=function(e){return function t(){return 0===arguments.length||1===arguments.length&&cC(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},fC=function e(t,n){return 1===t?n:uC((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==lC})).length;return a>=t?n.apply(void 0,o):e(t-a,uC((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,a=o.map((function(e){return cC(e)?t.shift():e}));return n.apply(void 0,(i=a,function(e){if(Array.isArray(e))return aC(e)}(i)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return aC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aC(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(t))})))}))},dC=function(e){return fC(e.length,e)},pC=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},hC=dC((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),mC=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return sC;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}},yC=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},gC=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};dC((function(e,t,n){var r=+e;return r+n*(+t-r)})),dC((function(e,t,n){var r=t-+e;return(n-e)/(r||1/0)})),dC((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))}));const vC=function(e,t,n){for(var r=new(iC())(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},bC=function(e){return 0===e?1:Math.floor(new(iC())(e).abs().log(10).toNumber())+1};function wC(e){return function(e){if(Array.isArray(e))return jC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||MC(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||MC(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MC(e,t){if(e){if("string"==typeof e)return jC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jC(e,t):void 0}}function jC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function EC(e){var t=xC(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function OC(e,t,n){if(e.lte(0))return new(iC())(0);var r=bC(e.toNumber()),o=new(iC())(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new(iC())(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new(iC())(Math.ceil(s))}function kC(e,t,n){var r=1,o=new(iC())(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new(iC())(10).pow(bC(e)-1),o=new(iC())(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new(iC())(Math.floor(e)))}else 0===e?o=new(iC())(Math.floor((t-1)/2)):n||(o=new(iC())(Math.floor(e)));var a=Math.floor((t-1)/2),s=mC(hC((function(e){return o.add(new(iC())(e-a).mul(r)).toNumber()})),pC);return s(0,t)}function SC(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new(iC())(0),tickMin:new(iC())(0),tickMax:new(iC())(0)};var i,a=OC(new(iC())(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new(iC())(0):(i=new(iC())(e).add(t).div(2)).sub(new(iC())(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),l=Math.ceil(new(iC())(t).sub(i).div(a).toNumber()),c=s+l+1;return c>n?SC(e,t,n,r,o+1):(c<n&&(l=t>0?l+(n-c):l,s=t>0?s:s+(n-c)),{step:a,tickMin:i.sub(new(iC())(s).mul(a)),tickMax:i.add(new(iC())(l).mul(a))})}var NC=gC((function(e){var t=xC(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=xC(EC([n,r]),2),l=s[0],c=s[1];if(l===-1/0||c===1/0){var u=c===1/0?[l].concat(wC(pC(0,o-1).map((function(){return 1/0})))):[].concat(wC(pC(0,o-1).map((function(){return-1/0}))),[c]);return n>r?yC(u):u}if(l===c)return kC(l,o,i);var f=SC(l,c,a,i),d=f.step,p=f.tickMin,h=f.tickMax,m=vC(p,h.add(new(iC())(.1).mul(d)),d);return n>r?yC(m):m})),TC=(gC((function(e){var t=xC(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=xC(EC([n,r]),2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[n,r];if(l===c)return kC(l,o,i);var u=OC(new(iC())(c).sub(l).div(a-1),i,0),f=mC(hC((function(e){return new(iC())(l).add(new(iC())(e).mul(u)).toNumber()})),pC),d=f(0,a).filter((function(e){return e>=l&&e<=c}));return n>r?yC(d):d})),gC((function(e,t){var n=xC(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=xC(EC([r,o]),2),s=a[0],l=a[1];if(s===-1/0||l===1/0)return[r,o];if(s===l)return[s];var c=Math.max(t,2),u=OC(new(iC())(l).sub(s).div(c-1),i,0),f=[].concat(wC(vC(new(iC())(s),new(iC())(l).sub(new(iC())(.99).mul(u)),u)),[l]);return r>o?yC(f):f}))),AC=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function DC(e){return DC="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},DC(e)}function CC(){return CC=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},CC.apply(this,arguments)}function IC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function PC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,UC(r.key),r)}}function _C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_C=function(){return!!e})()}function RC(e){return RC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},RC(e)}function zC(e,t){return zC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zC(e,t)}function LC(e,t,n){return(t=UC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UC(e){var t=function(e){if("object"!=DC(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=DC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==DC(t)?t:t+""}var FC=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=RC(t),function(e,t){if(t&&("object"===DC(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_C()?Reflect.construct(t,n||[],RC(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zC(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e=this.props,t=e.offset,n=e.layout,r=e.width,o=e.dataKey,i=e.data,a=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,AC),f=mM(u,!1);"x"===this.props.direction&&"number"!==s.type&&TM(!1);var d=i.map((function(e){var i=a(e,o),u=i.x,d=i.y,p=i.value,h=i.errorVal;if(!h)return null;var m,y,g,v,b=[];if(Array.isArray(h)){var w=(v=2,function(e){if(Array.isArray(e))return e}(g=h)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(g,v)||function(e,t){if(e){if("string"==typeof e)return IC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IC(e,t):void 0}}(g,v)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());m=w[0],y=w[1]}else m=y=h;if("vertical"===n){var x=s.scale,M=d+t,j=M+r,E=M-r,O=x(p-m),k=x(p+y);b.push({x1:k,y1:j,x2:k,y2:E}),b.push({x1:O,y1:M,x2:k,y2:M}),b.push({x1:O,y1:j,x2:O,y2:E})}else if("horizontal"===n){var S=l.scale,N=u+t,T=N-r,A=N+r,D=S(p-m),C=S(p+y);b.push({x1:T,y1:C,x2:A,y2:C}),b.push({x1:N,y1:D,x2:N,y2:C}),b.push({x1:T,y1:D,x2:A,y2:D})}return c().createElement(_M,CC({className:"recharts-errorBar",key:"bar-".concat(b.map((function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)})))},f),b.map((function(e){return c().createElement("line",CC({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return c().createElement(_M,{className:"recharts-errorBars"},d)}}],r&&PC(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(c().Component);function BC(e){return BC="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},BC(e)}function VC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VC(Object(n),!0).forEach((function(t){WC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WC(e,t,n){return t=function(e){var t=function(e){if("object"!=BC(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=BC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==BC(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}LC(FC,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),LC(FC,"displayName","ErrorBar");var HC=function(e){var t=e.children,n=e.formattedGraphicalItems,r=e.legendWidth,o=e.legendContent,i=dM(t,AE);if(!i)return null;var a,s=AE.defaultProps,l=void 0!==s?YC(YC({},s),i.props):{};return a=i.props&&i.props.payload?i.props&&i.props.payload:"children"===o?(n||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:i.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(n||[]).map((function(e){var t=e.item,n=t.type.defaultProps,r=void 0!==n?YC(YC({},n),t.props):{},o=r.dataKey,i=r.name,a=r.legendType;return{inactive:r.hide,dataKey:o,type:l.iconType||a||"square",color:eI(t),value:i||o,payload:r}})),YC(YC(YC({},l),AE.getWithHeight(i,r)),{},{payload:a,item:i})};function GC(e){return GC="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},GC(e)}function QC(e){return function(e){if(Array.isArray(e))return $C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return $C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$C(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qC(Object(n),!0).forEach((function(t){XC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XC(e,t,n){return t=function(e){var t=function(e){if("object"!=GC(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=GC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==GC(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KC(e,t,n){return Vx()(e)||Vx()(t)?n:Cx(t)?kx()(e,t,n):Wx()(t)?t(e):n}function JC(e,t,n,r){var o=tC()(e,(function(e){return KC(e,t)}));if("number"===n){var i=o.filter((function(e){return Dx(e)||parseFloat(e)}));return i.length?[JD()(i),XD()(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!Vx()(e)})):o).map((function(e){return Cx(e)||e instanceof Date?e:""}))}var eI=function(e){var t,n,r=e.type.displayName,o=null!==(t=e.type)&&void 0!==t&&t.defaultProps?ZC(ZC({},e.type.defaultProps),e.props):e.props,i=o.stroke,a=o.fill;switch(r){case"Line":n=i;break;case"Area":case"Radar":n=i&&"none"!==i?i:a;break;default:n=a}return n},tI=function(e,t,n,r,o){var i=fM(t.props.children,FC).filter((function(e){return function(e,t,n){return!!Vx()(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=KC(t,n);if(Vx()(r))return e;var o=Array.isArray(r)?[JD()(r),XD()(r)]:[r,r],i=a.reduce((function(e,n){var r=KC(t,n,0),i=o[0]-Math.abs(Array.isArray(r)?r[0]:r),a=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},nI=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&tI(e,t,i,r)||JC(e,i,n,o)}));if("number"===n)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},rI=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},oI=function(e,t,n,r){if(r)return e.map((function(e){return e.coordinate}));var o,i,a=e.map((function(e){return e.coordinate===t&&(o=!0),e.coordinate===n&&(i=!0),e.coordinate}));return o||a.push(t),i||a.push(n),a},iI=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,l=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/s:0;return l="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*Tx(a[0]-a[1])*l:l,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+l,value:e,offset:l}})).filter((function(e){return!Ex()(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+l,value:e,index:t,offset:l}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+l,value:e,offset:l}})):r.domain().map((function(e,t){return{coordinate:r(e)+l,value:o?o[e]:e,index:t,offset:l}}))},aI=new WeakMap,sI=function(e,t){if("function"!=typeof t)return e;aI.has(e)||aI.set(e,new WeakMap);var n=aI.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},lI=1e-4,cI={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var s=Ex()(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}HD(e,t)}},none:HD,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}HD(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,l=0,c=0;s<o;++s){for(var u=e[t[s]],f=u[a][1]||0,d=(f-(u[a-1][1]||0))/2,p=0;p<s;++p){var h=e[t[p]];d+=(h[a][1]||0)-(h[a-1][1]||0)}l+=f,c+=d*f}n[a-1][1]+=n[a-1][0]=i,l&&(i-=c/l)}n[a-1][1]+=n[a-1][0]=i,HD(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var a=Ex()(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},uI=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=cI[n],i=function(){var e=Hj([]),t=QD,n=HD,r=$D;function o(o){var i,a,s=Array.from(e.apply(this,arguments),qD),l=s.length,c=-1;for(const e of o)for(i=0,++c;i<l;++i)(s[i][c]=[0,+r(e,s[i].key,c,o)]).data=e;for(i=0,a=GD(t(s));i<l;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:Hj(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:Hj(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?QD:"function"==typeof e?e:Hj(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?HD:e,o):n},o}().keys(r).value((function(e,t){return+KC(e,t,0)})).order(QD).offset(o);return i(e)};function fI(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Vx()(o[t.dataKey])){var s=Lx(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var l=KC(o,Vx()(a)?t.dataKey:a);return Vx()(l)?null:t.scale(l)}var dI=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=KC(i,t.dataKey,t.domain[a]);return Vx()(s)?null:t.scale(s)-o/2+r},pI=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[JD()(t.concat([e[0]]).filter(Dx)),XD()(t.concat([e[1]]).filter(Dx))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},hI=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mI=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,yI=function(e,t,n){if(Wx()(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(Dx(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(hI.test(e[0])){var o=+hI.exec(e[0])[1];r[0]=t[0]-o}else Wx()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Dx(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(mI.test(e[1])){var i=+mI.exec(e[1])[1];r[1]=t[1]+i}else Wx()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},gI=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=NM()(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var l=o[a],c=o[a-1];i=Math.min((l.coordinate||0)-(c.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},vI=function(e,t,n){return e&&e.length?rC()(e,kx()(n,"type.defaultProps.domain"))?t:e:t},bI=function(e,t){var n=e.type.defaultProps?ZC(ZC({},e.type.defaultProps),e.props):e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,s=n.tooltipType,l=n.chartType,c=n.hide;return ZC(ZC({},mM(e,!1)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:eI(e),value:KC(t,r),type:s,payload:t,chartType:l,hide:c})};function wI(e){return wI="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},wI(e)}function xI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xI(Object(n),!0).forEach((function(t){jI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jI(e,t,n){return t=function(e){var t=function(e){if("object"!=wI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wI(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EI=["Webkit","Moz","O","ms"];function OI(e){return OI="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},OI(e)}function kI(){return kI=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},kI.apply(this,arguments)}function SI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SI(Object(n),!0).forEach((function(t){II(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,PI(r.key),r)}}function AI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(AI=function(){return!!e})()}function DI(e){return DI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},DI(e)}function CI(e,t){return CI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},CI(e,t)}function II(e,t,n){return(t=PI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PI(e){var t=function(e){if("object"!=OI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=OI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==OI(t)?t:t+""}var _I=function(e){return e.changedTouches&&!!e.changedTouches.length},RI=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),II(n=function(e,t,n){return t=DI(t),function(e,t){if(t&&("object"===OI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,AI()?Reflect.construct(t,n||[],DI(e).constructor):t.apply(e,n))}(this,t,[e]),"handleDrag",(function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)})),II(n,"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])})),II(n,"handleDragEnd",(function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var e=n.props,t=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:t,startIndex:o})})),n.detachDragEndListener()})),II(n,"handleLeaveWrapper",(function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))})),II(n,"handleEnterSlideOrTraveller",(function(){n.setState({isTextActive:!0})})),II(n,"handleLeaveSlideOrTraveller",(function(){n.setState({isTextActive:!1})})),II(n,"handleSlideDragStart",(function(e){var t=_I(e)?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX}),n.attachDragEndListener()})),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&CI(e,t)}(t,e),n=t,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var n=e.startX,r=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,s=i.data.length-1,l=Math.min(n,r),c=Math.max(n,r),u=t.getIndexInRange(o,l),f=t.getIndexInRange(o,c);return{startIndex:u-u%a,endIndex:f===s?s:f-f%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=KC(n[e],o,e);return Wx()(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,l=i.travellerWidth,c=i.startIndex,u=i.endIndex,f=i.onChange,d=e.pageX-n;d>0?d=Math.min(d,a+s-l-o,a+s-l-r):d<0&&(d=Math.max(d,a-r,a-o));var p=this.getIndex({startX:r+d,endX:o+d});p.startIndex===c&&p.endIndex===u||!f||f(p),this.setState({startX:r+d,endX:o+d,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=_I(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,o=t.endX,i=t.startX,a=this.state[r],s=this.props,l=s.x,c=s.width,u=s.travellerWidth,f=s.onChange,d=s.gap,p=s.data,h={startX:this.state.startX,endX:this.state.endX},m=e.pageX-n;m>0?m=Math.min(m,l+c-u-a):m<0&&(m=Math.max(m,l-a)),h[r]=a+m;var y=this.getIndex(h),g=y.startIndex,v=y.endIndex;this.setState(II(II({},r,a+m),"brushMoveStartX",e.pageX),(function(){var e;f&&(e=p.length-1,("startX"===r&&(o>i?g%d==0:v%d==0)||o<i&&v===e||"endX"===r&&(o>i?v%d==0:g%d==0)||o>i&&v===e)&&f(y))}))}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,i=r.startX,a=r.endX,s=this.state[t],l=o.indexOf(s);if(-1!==l){var c=l+e;if(!(-1===c||c>=o.length)){var u=o[c];"startX"===t&&u>=a||"endX"===t&&u<=i||this.setState(II({},t,u),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.fill,a=e.stroke;return c().createElement("rect",{stroke:a,fill:i,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.data,a=e.children,l=e.padding,u=s.Children.only(a);return u?c().cloneElement(u,{x:t,y:n,width:r,height:o,margin:l,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(e,n){var r,o,i=this,a=this.props,s=a.y,l=a.travellerWidth,u=a.height,f=a.traveller,d=a.ariaLabel,p=a.data,h=a.startIndex,m=a.endIndex,y=Math.max(e,this.props.x),g=NI(NI({},mM(this.props,!1)),{},{x:y,y:s,width:l,height:u}),v=d||"Min value: ".concat(null===(r=p[h])||void 0===r?void 0:r.name,", Max value: ").concat(null===(o=p[m])||void 0===o?void 0:o.name);return c().createElement(_M,{tabIndex:0,role:"slider","aria-label":v,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),i.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,n))},onFocus:function(){i.setState({isTravellerFocused:!0})},onBlur:function(){i.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(f,g))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,i=n.stroke,a=n.travellerWidth,s=Math.min(e,t)+a,l=Math.max(Math.abs(t-e)-a,0);return c().createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:s,y:r,width:l,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,i=e.travellerWidth,a=e.stroke,s=this.state,l=s.startX,u=s.endX,f={pointerEvents:"none",fill:a};return c().createElement(_M,{className:"recharts-brush-texts"},c().createElement(eS,kI({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:r+o/2},f),this.getTextOfTick(t)),c().createElement(eS,kI({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+i+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,i=e.y,a=e.width,s=e.height,l=e.alwaysShowText,u=this.state,f=u.startX,d=u.endX,p=u.isTextActive,h=u.isSlideMoving,m=u.isTravellerMoving,y=u.isTravellerFocused;if(!t||!t.length||!Dx(o)||!Dx(i)||!Dx(a)||!Dx(s)||a<=0||s<=0)return null;var g=wt("recharts-brush",n),v=1===c().Children.count(r),b=function(e,t){var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=EI.reduce((function(e,r){return MI(MI({},e),{},jI({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return c().createElement(_M,{className:g,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(f,d),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(d,"endX"),(p||h||m||y||l)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=e.stroke,a=Math.floor(n+o/2)-1;return c().createElement(c().Fragment,null,c().createElement("rect",{x:t,y:n,width:r,height:o,fill:i,stroke:"none"}),c().createElement("line",{x1:t+1,y1:a,x2:t+r-1,y2:a,fill:"none",stroke:"#fff"}),c().createElement("line",{x1:t+1,y1:a+2,x2:t+r-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,n){return c().isValidElement(e)?c().cloneElement(e,n):Wx()(e)?e(n):t.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,s=e.startIndex,l=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return NI({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,l=bk().domain(kM()(0,s)).range([o,o+i-a]),c=l.domain().map((function(e){return l(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(r),scale:l,scaleValues:c}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:l}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var c=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],r&&TI(n.prototype,r),o&&TI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(s.PureComponent);function zI(e){return zI="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},zI(e)}function LI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LI(Object(n),!0).forEach((function(t){FI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FI(e,t,n){return t=function(e){var t=function(e){if("object"!=zI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zI(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}II(RI,"displayName","Brush"),II(RI,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var BI=Math.PI/180,VI=function(e){return 180*e/Math.PI},YI=function(e,t,n,r){return{x:e+Math.cos(-BI*r)*n,y:t+Math.sin(-BI*r)*n}},WI=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},HI=function(e,t){var n=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var s=(n-o)/a,l=Math.acos(s);return r>i&&(l=2*Math.PI-l),{radius:a,angle:VI(l),angleInRadian:l}}({x:e.x,y:e.y},t),r=n.radius,o=n.angle,i=t.innerRadius,a=t.outerRadius;if(r<i||r>a)return!1;if(0===r)return!0;var s,l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),c=l.startAngle,u=l.endAngle,f=o;if(c<=u){for(;f>u;)f-=360;for(;f<c;)f+=360;s=f>=c&&f<=u}else{for(;f>c;)f-=360;for(;f<u;)f+=360;s=f>=u&&f<=c}return s?UI(UI({},t),{},{radius:r,angle:WI(f,t)}):null};function GI(e){return GI="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},GI(e)}var QI=["offset"];function $I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qI(Object(n),!0).forEach((function(t){XI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XI(e,t,n){return t=function(e){var t=function(e){if("object"!=GI(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=GI(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==GI(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KI(){return KI=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},KI.apply(this,arguments)}function JI(e){var t,n=e.offset,r=ZI({offset:void 0===n?5:n},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,QI)),o=r.viewBox,i=r.position,a=r.value,l=r.children,u=r.content,f=r.className,d=void 0===f?"":f,p=r.textBreakAll;if(!o||Vx()(a)&&Vx()(l)&&!(0,s.isValidElement)(u)&&!Wx()(u))return null;if((0,s.isValidElement)(u))return(0,s.cloneElement)(u,r);if(Wx()(u)){if(t=(0,s.createElement)(u,r),(0,s.isValidElement)(t))return t}else t=function(e){var t=e.value,n=e.formatter,r=Vx()(e.children)?t:e.children;return Wx()(n)?n(r):r}(r);var h=function(e){return"cx"in e&&Dx(e.cx)}(o),m=mM(r,!0);if(h&&("insideStart"===i||"insideEnd"===i||"end"===i))return function(e,t,n){var r,o,i=e.position,a=e.viewBox,s=e.offset,l=e.className,u=a,f=u.cx,d=u.cy,p=u.innerRadius,h=u.outerRadius,m=u.startAngle,y=u.endAngle,g=u.clockWise,v=(p+h)/2,b=function(e,t){return Tx(t-e)*Math.min(Math.abs(t-e),360)}(m,y),w=b>=0?1:-1;"insideStart"===i?(r=m+w*s,o=g):"insideEnd"===i?(r=y-w*s,o=!g):"end"===i&&(r=y+w*s,o=g),o=b<=0?o:!o;var x=YI(f,d,v,r),M=YI(f,d,v,r+359*(o?1:-1)),j="M".concat(x.x,",").concat(x.y,"\n A").concat(v,",").concat(v,",0,1,").concat(o?0:1,",\n ").concat(M.x,",").concat(M.y),E=Vx()(e.id)?Px("recharts-radial-line-"):e.id;return c().createElement("text",KI({},n,{dominantBaseline:"central",className:wt("recharts-radial-bar-label",l)}),c().createElement("defs",null,c().createElement("path",{id:E,d:j})),c().createElement("textPath",{xlinkHref:"#".concat(E)},t))}(r,t,m);var y=h?function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,s=o.innerRadius,l=o.outerRadius,c=(o.startAngle+o.endAngle)/2;if("outside"===r){var u=YI(i,a,l+n,c),f=u.x;return{x:f,y:u.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=YI(i,a,(s+l)/2,c);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}}(r):function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,s=i.y,l=i.width,c=i.height,u=c>=0?1:-1,f=u*r,d=u>0?"end":"start",p=u>0?"start":"end",h=l>=0?1:-1,m=h*r,y=h>0?"end":"start",g=h>0?"start":"end";if("top"===o)return ZI(ZI({},{x:a+l/2,y:s-u*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(s-n.y,0),width:l}:{});if("bottom"===o)return ZI(ZI({},{x:a+l/2,y:s+c+f,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+c),0),width:l}:{});if("left"===o){var v={x:a-m,y:s+c/2,textAnchor:y,verticalAnchor:"middle"};return ZI(ZI({},v),n?{width:Math.max(v.x-n.x,0),height:c}:{})}if("right"===o){var b={x:a+l+m,y:s+c/2,textAnchor:g,verticalAnchor:"middle"};return ZI(ZI({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:c}:{})}var w=n?{width:l,height:c}:{};return"insideLeft"===o?ZI({x:a+m,y:s+c/2,textAnchor:g,verticalAnchor:"middle"},w):"insideRight"===o?ZI({x:a+l-m,y:s+c/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===o?ZI({x:a+l/2,y:s+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?ZI({x:a+l/2,y:s+c-f,textAnchor:"middle",verticalAnchor:d},w):"insideTopLeft"===o?ZI({x:a+m,y:s+f,textAnchor:g,verticalAnchor:p},w):"insideTopRight"===o?ZI({x:a+l-m,y:s+f,textAnchor:y,verticalAnchor:p},w):"insideBottomLeft"===o?ZI({x:a+m,y:s+c-f,textAnchor:g,verticalAnchor:d},w):"insideBottomRight"===o?ZI({x:a+l-m,y:s+c-f,textAnchor:y,verticalAnchor:d},w):Gx()(o)&&(Dx(o.x)||Ax(o.x))&&(Dx(o.y)||Ax(o.y))?ZI({x:a+_x(o.x,l),y:s+_x(o.y,c),textAnchor:"end",verticalAnchor:"end"},w):ZI({x:a+l/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(r);return c().createElement(eS,KI({className:wt("recharts-label",d)},m,y,{breakAll:p}),t)}JI.displayName="Label";var eP=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,s=e.radius,l=e.innerRadius,c=e.outerRadius,u=e.x,f=e.y,d=e.top,p=e.left,h=e.width,m=e.height,y=e.clockWise,g=e.labelViewBox;if(g)return g;if(Dx(h)&&Dx(m)){if(Dx(u)&&Dx(f))return{x:u,y:f,width:h,height:m};if(Dx(d)&&Dx(p))return{x:d,y:p,width:h,height:m}}return Dx(u)&&Dx(f)?{x:u,y:f,width:0,height:0}:Dx(t)&&Dx(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:l||0,outerRadius:c||s||a||0,clockWise:y}:e.viewBox?e.viewBox:{}};JI.parseViewBox=eP,JI.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=eP(e),i=fM(r,JI).map((function(e,n){return(0,s.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})}));if(!n)return i;var a,l=function(e,t){return e?!0===e?c().createElement(JI,{key:"label-implicit",viewBox:t}):Cx(e)?c().createElement(JI,{key:"label-implicit",viewBox:t,value:e}):(0,s.isValidElement)(e)?e.type===JI?(0,s.cloneElement)(e,{key:"label-implicit",viewBox:t}):c().createElement(JI,{key:"label-implicit",content:e,viewBox:t}):Wx()(e)?c().createElement(JI,{key:"label-implicit",content:e,viewBox:t}):Gx()(e)?c().createElement(JI,KI({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||o);return[l].concat(function(e){if(Array.isArray(e))return $I(e)}(a=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return $I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$I(e,t):void 0}}(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())};var tP=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},nP=o(73916),rP=o.n(nP),oP=o(19747),iP=o.n(oP),aP=function(e){return null};aP.displayName="Cell";var sP=o(68090),lP=o.n(sP);function cP(e){return cP="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},cP(e)}var uP=["valueAccessor"],fP=["data","dataKey","clockWise","id","textBreakAll"];function dP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pP(){return pP=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},pP.apply(this,arguments)}function hP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hP(Object(n),!0).forEach((function(t){yP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yP(e,t,n){return t=function(e){var t=function(e){if("object"!=cP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cP(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var vP=function(e){return Array.isArray(e.value)?lP()(e.value):e.value};function bP(e){var t=e.valueAccessor,n=void 0===t?vP:t,r=gP(e,uP),o=r.data,i=r.dataKey,a=r.clockWise,s=r.id,l=r.textBreakAll,u=gP(r,fP);return o&&o.length?c().createElement(_M,{className:"recharts-label-list"},o.map((function(e,t){var r=Vx()(i)?n(e,t):KC(e&&e.payload,i),o=Vx()(s)?{}:{id:"".concat(s,"-").concat(t)};return c().createElement(JI,pP({},mM(e,!0),u,o,{parentViewBox:e.parentViewBox,value:r,textBreakAll:l,viewBox:JI.parseViewBox(Vx()(a)?e:mP(mP({},e),{},{clockWise:a})),key:"label-".concat(t),index:t}))}))):null}bP.displayName="LabelList",bP.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=fM(e.children,bP).map((function(e,n){return(0,s.cloneElement)(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return r;var o,i=function(e,t){return e?!0===e?c().createElement(bP,{key:"labelList-implicit",data:t}):c().isValidElement(e)||Wx()(e)?c().createElement(bP,{key:"labelList-implicit",data:t,content:e}):Gx()(e)?c().createElement(bP,pP({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t);return[i].concat(function(e){if(Array.isArray(e))return dP(e)}(o=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return dP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dP(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())};var wP=o(11331),xP=o.n(wP),MP=o(53812),jP=o.n(MP);function EP(e){return EP="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},EP(e)}function OP(){return OP=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},OP.apply(this,arguments)}function kP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function SP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SP(Object(n),!0).forEach((function(t){TP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TP(e,t,n){return t=function(e){var t=function(e){if("object"!=EP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=EP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==EP(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AP=function(e,t,n,r,o){var i,a=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-a/2,",").concat(t+o),(i+="L ".concat(e+n-a/2-r,",").concat(t+o))+"L ".concat(e,",").concat(t," Z")},DP={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},CP=function(e){var t,n,r=NP(NP({},DP),e),o=(0,s.useRef)(),i=(t=(0,s.useState)(-1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,n)||function(e,t){if(e){if("string"==typeof e)return kP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kP(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],l=i[1];(0,s.useEffect)((function(){if(o.current&&o.current.getTotalLength)try{var e=o.current.getTotalLength();e&&l(e)}catch(e){}}),[]);var u=r.x,f=r.y,d=r.upperWidth,p=r.lowerWidth,h=r.height,m=r.className,y=r.animationEasing,g=r.animationDuration,v=r.animationBegin,b=r.isUpdateAnimationActive;if(u!==+u||f!==+f||d!==+d||p!==+p||h!==+h||0===d&&0===p||0===h)return null;var w=wt("recharts-trapezoid",m);return b?c().createElement(JO,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:h,x:u,y:f},to:{upperWidth:d,lowerWidth:p,height:h,x:u,y:f},duration:g,animationEasing:y,isActive:b},(function(e){var t=e.upperWidth,n=e.lowerWidth,i=e.height,s=e.x,l=e.y;return c().createElement(JO,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:g,easing:y},c().createElement("path",OP({},mM(r,!0),{className:w,d:AP(s,l,t,n,i),ref:o})))})):c().createElement("g",null,c().createElement("path",OP({},mM(r,!0),{className:w,d:AP(u,f,d,p,h)})))};function IP(e){return IP="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},IP(e)}function PP(){return PP=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},PP.apply(this,arguments)}function _P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_P(Object(n),!0).forEach((function(t){zP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zP(e,t,n){return t=function(e){var t=function(e){if("object"!=IP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=IP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==IP(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var LP=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,s=e.cornerRadius,l=e.cornerIsExternal,c=s*(a?1:-1)+r,u=Math.asin(s/c)/BI,f=l?o:o+i*u,d=l?o-i*u:o;return{center:YI(t,n,c,f),circleTangency:YI(t,n,r,f),lineTangency:YI(t,n,c*Math.cos(u*BI),d),theta:u}},UP=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return Tx(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,l=YI(t,n,o,i),c=YI(t,n,o,s),u="M ".concat(l.x,",").concat(l.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>s),",\n ").concat(c.x,",").concat(c.y,"\n ");if(r>0){var f=YI(t,n,r,i),d=YI(t,n,r,s);u+="L ".concat(d.x,",").concat(d.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},FP={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},BP=function(e){var t=RP(RP({},FP),e),n=t.cx,r=t.cy,o=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,d=t.className;if(i<o||u===f)return null;var p,h=wt("recharts-sector",d),m=i-o,y=_x(a,m,0,!0);return p=y>0&&Math.abs(u-f)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,l=e.startAngle,c=e.endAngle,u=Tx(c-l),f=LP({cx:t,cy:n,radius:o,angle:l,sign:u,cornerRadius:i,cornerIsExternal:s}),d=f.circleTangency,p=f.lineTangency,h=f.theta,m=LP({cx:t,cy:n,radius:o,angle:c,sign:-u,cornerRadius:i,cornerIsExternal:s}),y=m.circleTangency,g=m.lineTangency,v=m.theta,b=s?Math.abs(l-c):Math.abs(l-c)-h-v;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):UP({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:l,endAngle:c});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(g.x,",").concat(g.y,"\n ");if(r>0){var x=LP({cx:t,cy:n,radius:r,angle:l,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),M=x.circleTangency,j=x.lineTangency,E=x.theta,O=LP({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=O.circleTangency,S=O.lineTangency,N=O.theta,T=s?Math.abs(l-c):Math.abs(l-c)-E-N;if(T<0&&0===i)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(S.x,",").concat(S.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(T>180),",").concat(+(u>0),",").concat(M.x,",").concat(M.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(j.x,",").concat(j.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:n,cy:r,innerRadius:o,outerRadius:i,cornerRadius:Math.min(y,m/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:u,endAngle:f}):UP({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:u,endAngle:f}),c().createElement("path",PP({},mM(t,!0),{className:h,d:p,role:"img"}))},VP=["option","shapeType","propTransformer","activeClassName","isActive"];function YP(e){return YP="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},YP(e)}function WP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function HP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WP(Object(n),!0).forEach((function(t){GP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GP(e,t,n){return t=function(e){var t=function(e){if("object"!=YP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=YP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==YP(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QP(e,t){return HP(HP({},t),e)}function $P(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return c().createElement(ck,n);case"trapezoid":return c().createElement(CP,n);case"sector":return c().createElement(BP,n);case"symbols":if(function(e){return"symbols"===e}(t))return c().createElement(sE,n);break;default:return null}}function qP(e){var t,n=e.option,r=e.shapeType,o=e.propTransformer,i=void 0===o?QP:o,a=e.activeClassName,l=void 0===a?"recharts-active-shape":a,u=e.isActive,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,VP);if((0,s.isValidElement)(n))t=(0,s.cloneElement)(n,HP(HP({},f),function(e){return(0,s.isValidElement)(e)?e.props:e}(n)));else if(Wx()(n))t=n(f);else if(xP()(n)&&!jP()(n)){var d=i(n,f);t=c().createElement($P,{shapeType:r,elementProps:d})}else{var p=f;t=c().createElement($P,{shapeType:r,elementProps:p})}return u?c().createElement(_M,{className:l},t):t}function ZP(e,t){return null!=t&&"trapezoids"in e.props}function XP(e,t){return null!=t&&"sectors"in e.props}function KP(e,t){return null!=t&&"points"in e.props}function JP(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,i=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&i}function e_(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function t_(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function n_(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=function(e,t){var n;return ZP(e,t)?n="trapezoids":XP(e,t)?n="sectors":KP(e,t)&&(n="points"),n}(n,t),i=function(e,t){var n,r;return ZP(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:XP(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:KP(e,t)?t.payload:{}}(n,t),a=r.filter((function(e,r){var a=rC()(i,e),s=n.props[o].filter((function(e){var r=function(e,t){var n;return ZP(e,t)?n=JP:XP(e,t)?n=e_:KP(e,t)&&(n=t_),n}(n,t);return r(e,t)})),l=n.props[o].indexOf(s[s.length-1]);return a&&r===l}));return r.indexOf(a[a.length-1])}var r_=["x","y"];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 i_(){return i_=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},i_.apply(this,arguments)}function a_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a_(Object(n),!0).forEach((function(t){l_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l_(e,t,n){return t=function(e){var t=function(e){if("object"!=o_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o_(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c_(e,t){var n=e.x,r=e.y,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,r_),i="".concat(n),a=parseInt(i,10),s="".concat(r),l=parseInt(s,10),c="".concat(t.height||o.height),u=parseInt(c,10),f="".concat(t.width||o.width),d=parseInt(f,10);return s_(s_(s_(s_(s_({},t),o),a?{x:a}:{}),l?{y:l}:{}),{},{height:u,width:d,name:t.name,radius:t.radius})}function u_(e){return c().createElement(qP,i_({shapeType:"rectangle",propTransformer:c_,activeClassName:"recharts-active-bar"},e))}var f_,d_=["value","background"];function p_(e){return p_="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},p_(e)}function h_(){return h_=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},h_.apply(this,arguments)}function m_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m_(Object(n),!0).forEach((function(t){x_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M_(r.key),r)}}function v_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v_=function(){return!!e})()}function b_(e){return b_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b_(e)}function w_(e,t){return w_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w_(e,t)}function x_(e,t,n){return(t=M_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M_(e){var t=function(e){if("object"!=p_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p_(t)?t:t+""}var j_=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return x_(e=function(e,t,n){return t=b_(t),function(e,t){if(t&&("object"===p_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v_()?Reflect.construct(t,n||[],b_(e).constructor):t.apply(e,n))}(this,t,[].concat(r)),"state",{isAnimationFinished:!1}),x_(e,"id",Px("recharts-bar-")),x_(e,"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),x_(e,"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w_(e,t)}(t,e),n=t,r=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.dataKey,i=n.activeIndex,a=n.activeBar,s=mM(this.props,!1);return e&&e.map((function(e,n){var l=n===i,u=l?a:r,f=y_(y_(y_({},s),e),{},{isActive:l,option:u,index:n,dataKey:o,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return c().createElement(_M,h_({className:"recharts-bar-rectangle"},tM(t.props,e,n),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value,"-").concat(n)}),c().createElement(u_,f))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,o=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,s=t.animationEasing,l=t.animationId,u=this.state.prevData;return c().createElement(JO,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t,i=n.map((function(e,t){var n=u&&u[t];if(n){var i=zx(n.x,e.x),a=zx(n.y,e.y),s=zx(n.width,e.width),l=zx(n.height,e.height);return y_(y_({},e),{},{x:i(o),y:a(o),width:s(o),height:l(o)})}if("horizontal"===r){var c=zx(0,e.height)(o);return y_(y_({},e),{},{y:e.y+e.height-c,height:c})}var f=zx(0,e.width)(o);return y_(y_({},e),{},{width:f})}));return c().createElement(_M,null,e.renderRectanglesStatically(i))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&rC()(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props,n=t.data,r=t.dataKey,o=t.activeIndex,i=mM(this.props.background,!1);return n.map((function(t,n){t.value;var a=t.background,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,d_);if(!a)return null;var l=y_(y_(y_(y_(y_({},s),{},{fill:"#eee"},a),i),tM(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,className:"recharts-bar-background-rectangle"});return c().createElement(u_,h_({key:"background-bar-".concat(n),option:e.props.background,isActive:n===o},l))}))}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,o=n.xAxis,i=n.yAxis,a=n.layout,s=fM(n.children,FC);if(!s)return null;var l="vertical"===a?r[0].height/2:r[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:KC(e,t)}},f={clipPath:e?"url(#clipPath-".concat(t,")"):null};return c().createElement(_M,f,s.map((function(e){return c().cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:r,xAxis:o,yAxis:i,layout:a,offset:l,dataPointFormatter:u})})))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.xAxis,i=e.yAxis,a=e.left,s=e.top,l=e.width,u=e.height,f=e.isAnimationActive,d=e.background,p=e.id;if(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,m=wt("recharts-bar",r),y=o&&o.allowDataOverflow,g=i&&i.allowDataOverflow,v=y||g,b=Vx()(p)?this.id:p;return c().createElement(_M,{className:m},y||g?c().createElement("defs",null,c().createElement("clipPath",{id:"clipPath-".concat(b)},c().createElement("rect",{x:y?a:a-l/2,y:g?s:s-u/2,width:y?l:2*l,height:g?u:2*u}))):null,c().createElement(_M,{className:"recharts-bar-rectangles",clipPath:v?"url(#clipPath-".concat(b,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(v,b),(!f||h)&&bP.renderCallByParent(this.props,n))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],r&&g_(n.prototype,r),o&&g_(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(s.PureComponent);function E_(e){return E_="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},E_(e)}function O_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,T_(r.key),r)}}function k_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k_(Object(n),!0).forEach((function(t){N_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N_(e,t,n){return(t=T_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T_(e){var t=function(e){if("object"!=E_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=E_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E_(t)?t:t+""}f_=j_,x_(j_,"displayName","Bar"),x_(j_,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!aj.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),x_(j_,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,u=e.dataStartIndex,f=e.displayedData,d=e.offset,p=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!p)return null;var h=t.layout,m=n.type.defaultProps,y=void 0!==m?y_(y_({},m),n.props):n.props,g=y.dataKey,v=y.children,b=y.minPointSize,w="horizontal"===h?a:i,x=c?w.scale.domain():null,M=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]}({numericAxis:w}),j=fM(v,aP),E=f.map((function(e,t){var r,f,d,m,y,v;c?r=function(e,t){if(!t||2!==t.length||!Dx(t[0])||!Dx(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!Dx(e[0])||e[0]<n)&&(o[0]=n),(!Dx(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(c[u+t],x):(r=KC(e,g),Array.isArray(r)||(r=[M,r]));var w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof e)return e;var o="number"==typeof n;return o?e(n,r):(o||TM(!1),t)}}(b,f_.defaultProps.minPointSize)(r[1],t);if("horizontal"===h){var E,O=[a.scale(r[0]),a.scale(r[1])],k=O[0],S=O[1];f=dI({axis:i,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),d=null!==(E=null!=S?S:k)&&void 0!==E?E:void 0,m=p.size;var N=k-S;if(y=Number.isNaN(N)?0:N,v={x:f,y:a.y,width:m,height:a.height},Math.abs(w)>0&&Math.abs(y)<Math.abs(w)){var T=Tx(y||w)*(Math.abs(w)-Math.abs(y));d-=T,y+=T}}else{var A=[i.scale(r[0]),i.scale(r[1])],D=A[0],C=A[1];f=D,d=dI({axis:a,ticks:l,bandSize:o,offset:p.offset,entry:e,index:t}),m=C-D,y=p.size,v={x:i.x,y:d,width:i.width,height:y},Math.abs(w)>0&&Math.abs(m)<Math.abs(w)&&(m+=Tx(m||w)*(Math.abs(w)-Math.abs(m)))}return y_(y_(y_({},e),{},{x:f,y:d,width:m,height:y,value:c?r:r[1],payload:e,background:v},j&&j[t]&&j[t].props),{},{tooltipPayload:[bI(n,e)],tooltipPosition:{x:f+m/2,y:d+y/2}})}));return y_({data:E,layout:h},d)}));var A_=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},D_=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&O_(t.prototype,n),r&&O_(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();N_(D_,"EPS",1e-4);var C_=function(e){var t=Object.keys(e).reduce((function(t,n){return S_(S_({},t),{},N_({},n,D_.create(e[n])))}),{});return S_(S_({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return rP()(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return iP()(e,(function(e,n){return t[n].isInRange(e)}))}})};function I_(){return I_=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},I_.apply(this,arguments)}function P_(e){return P_="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},P_(e)}function __(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?__(Object(n),!0).forEach((function(t){B_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):__(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function z_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,V_(r.key),r)}}function L_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(L_=function(){return!!e})()}function U_(e){return U_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U_(e)}function F_(e,t){return F_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F_(e,t)}function B_(e,t,n){return(t=V_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V_(e){var t=function(e){if("object"!=P_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=P_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==P_(t)?t:t+""}var Y_=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=U_(t),function(e,t){if(t&&("object"===P_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,L_()?Reflect.construct(t,n||[],U_(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F_(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e=this.props,n=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,s=Cx(n),l=Cx(r);if(Fx(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!l)return null;var u=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=C_({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return tP(e,"discard")&&!i.isInRange(a)?null:a}(this.props);if(!u)return null;var f=u.x,d=u.y,p=this.props,h=p.shape,m=p.className,y=R_(R_({clipPath:tP(this.props,"hidden")?"url(#".concat(a,")"):void 0},mM(this.props,!0)),{},{cx:f,cy:d});return c().createElement(_M,{className:wt("recharts-reference-dot",m)},t.renderDot(h,y),JI.renderCallByParent(this.props,{x:f-o,y:d-o,width:2*o,height:2*o}))}}],r&&z_(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(c().Component);B_(Y_,"displayName","ReferenceDot"),B_(Y_,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),B_(Y_,"renderDot",(function(e,t){return c().isValidElement(e)?c().cloneElement(e,t):Wx()(e)?e(t):c().createElement(CE,I_({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))}));var W_=o(42426),H_=o.n(W_),G_=o(7309),Q_=o.n(G_),$_=o(50104),q_=o.n($_)()((function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}}),(function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")})),Z_=(0,s.createContext)(void 0),X_=(0,s.createContext)(void 0),K_=(0,s.createContext)(void 0),J_=(0,s.createContext)({}),eR=(0,s.createContext)(void 0),tR=(0,s.createContext)(0),nR=(0,s.createContext)(0),rR=function(e){var t=e.state,n=t.xAxisMap,r=t.yAxisMap,o=t.offset,i=e.clipPathId,a=e.children,s=e.width,l=e.height,u=q_(o);return c().createElement(Z_.Provider,{value:n},c().createElement(X_.Provider,{value:r},c().createElement(J_.Provider,{value:o},c().createElement(K_.Provider,{value:u},c().createElement(eR.Provider,{value:i},c().createElement(tR.Provider,{value:l},c().createElement(nR.Provider,{value:s},a)))))))},oR=function(e){var t=(0,s.useContext)(Z_);null==t&&TM(!1);var n=t[e];return null==n&&TM(!1),n},iR=function(e){var t=(0,s.useContext)(X_);null==t&&TM(!1);var n=t[e];return null==n&&TM(!1),n},aR=function(){return(0,s.useContext)(nR)},sR=function(){return(0,s.useContext)(tR)};function lR(e){return lR="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},lR(e)}function cR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yR(r.key),r)}}function uR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uR=function(){return!!e})()}function fR(e){return fR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fR(e)}function dR(e,t){return dR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dR(e,t)}function pR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pR(Object(n),!0).forEach((function(t){mR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mR(e,t,n){return(t=yR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yR(e){var t=function(e){if("object"!=lR(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lR(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lR(t)?t:t+""}function gR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vR(){return vR=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},vR.apply(this,arguments)}function bR(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxisId,i=e.yAxisId,a=e.shape,l=e.className,u=e.alwaysShow,f=(0,s.useContext)(eR),d=oR(o),p=iR(i),h=(0,s.useContext)(K_);if(!f||!h)return null;Fx(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=function(e,t,n,r,o,i,a,s,l){var c=o.x,u=o.y,f=o.width,d=o.height;if(n){var p=l.y,h=e.y.apply(p,{position:i});if(tP(l,"discard")&&!e.y.isInRange(h))return null;var m=[{x:c+f,y:h},{x:c,y:h}];return"left"===s?m.reverse():m}if(t){var y=l.x,g=e.x.apply(y,{position:i});if(tP(l,"discard")&&!e.x.isInRange(g))return null;var v=[{x:g,y:u+d},{x:g,y:u}];return"top"===a?v.reverse():v}if(r){var b=l.segment.map((function(t){return e.apply(t,{position:i})}));return tP(l,"discard")&&H_()(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(C_({x:d.scale,y:p.scale}),Cx(t),Cx(n),r&&2===r.length,h,e.position,d.orientation,p.orientation,e);if(!m)return null;var y,g,v,b=(g=2,function(e){if(Array.isArray(e))return e}(y=m)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(y,g)||function(e,t){if(e){if("string"==typeof e)return gR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gR(e,t):void 0}}(y,g)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=b[0],x=w.x,M=w.y,j=b[1],E=j.x,O=j.y,k=hR(hR({clipPath:tP(e,"hidden")?"url(#".concat(f,")"):void 0},mM(e,!0)),{},{x1:x,y1:M,x2:E,y2:O});return c().createElement(_M,{className:wt("recharts-reference-line",l)},function(e,t){return c().isValidElement(e)?c().cloneElement(e,t):Wx()(e)?e(t):c().createElement("line",vR({},t,{className:"recharts-reference-line-line"}))}(a,k),JI.renderCallByParent(e,A_({x:(v={x1:x,y1:M,x2:E,y2:O}).x1,y:v.y1},{x:v.x2,y:v.y2})))}var wR=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=fR(t),function(e,t){if(t&&("object"===lR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,uR()?Reflect.construct(t,n||[],fR(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dR(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return c().createElement(bR,this.props)}}])&&cR(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(c().Component);function xR(){return xR=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},xR.apply(this,arguments)}function MR(e){return MR="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},MR(e)}function jR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ER(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jR(Object(n),!0).forEach((function(t){TR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AR(r.key),r)}}function kR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kR=function(){return!!e})()}function SR(e){return SR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},SR(e)}function NR(e,t){return NR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NR(e,t)}function TR(e,t,n){return(t=AR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AR(e){var t=function(e){if("object"!=MR(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=MR(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==MR(t)?t:t+""}mR(wR,"displayName","ReferenceLine"),mR(wR,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var DR=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=SR(t),function(e,t){if(t&&("object"===MR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,kR()?Reflect.construct(t,n||[],SR(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NR(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,n=e.x1,r=e.x2,o=e.y1,i=e.y2,a=e.className,s=e.alwaysShow,l=e.clipPathId;Fx(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=Cx(n),f=Cx(r),d=Cx(o),p=Cx(i),h=this.props.shape;if(!(u||f||d||p||h))return null;var m=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,l=o.y2,c=o.xAxis,u=o.yAxis;if(!c||!u)return null;var f=C_({x:c.scale,y:u.scale}),d={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},p={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(l,{position:"end"}):f.y.rangeMax};return!tP(o,"discard")||f.isInRange(d)&&f.isInRange(p)?A_(d,p):null}(u,f,d,p,this.props);if(!m&&!h)return null;var y=tP(this.props,"hidden")?"url(#".concat(l,")"):void 0;return c().createElement(_M,{className:wt("recharts-reference-area",a)},t.renderRect(h,ER(ER({clipPath:y},mM(this.props,!0)),m)),JI.renderCallByParent(this.props,m))}}])&&OR(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(c().Component);function CR(e){return function(e){if(Array.isArray(e))return IR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return IR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IR(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function IR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}TR(DR,"displayName","ReferenceArea"),TR(DR,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),TR(DR,"renderRect",(function(e,t){return c().isValidElement(e)?c().cloneElement(e,t):Wx()(e)?e(t):c().createElement(ck,xR({},t,{className:"recharts-reference-area-rect"}))}));var PR=function(e,t,n,r,o){var i=fM(e,wR),a=fM(e,Y_),s=[].concat(CR(i),CR(a)),l=fM(e,DR),c="".concat(r,"Id"),u=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[c]===n&&tP(t.props,"extendDomain")&&Dx(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),l.length){var d="".concat(u,"1"),p="".concat(u,"2");f=l.reduce((function(e,t){if(t.props[c]===n&&tP(t.props,"extendDomain")&&Dx(t.props[d])&&Dx(t.props[p])){var r=t.props[d],o=t.props[p];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return Dx(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},_R=o(24128),RR=new(o.n(_R)()),zR="recharts.syncMouseEvents";function LR(e){return LR="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},LR(e)}function UR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BR(r.key),r)}}function FR(e,t,n){return(t=BR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BR(e){var t=function(e){if("object"!=LR(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=LR(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==LR(t)?t:t+""}var VR=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),FR(this,"activeIndex",0),FR(this,"coordinateList",[]),FR(this,"layout","horizontal")},t=[{key:"setDetails",value:function(e){var t,n=e.coordinateList,r=void 0===n?null:n,o=e.container,i=void 0===o?null:o,a=e.layout,s=void 0===a?null:a,l=e.offset,c=void 0===l?null:l,u=e.mouseHandlerCallback,f=void 0===u?null:u;this.coordinateList=null!==(t=null!=r?r:this.coordinateList)&&void 0!==t?t:[],this.container=null!=i?i:this.container,this.layout=null!=s?s:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,o=n.y,i=n.height,a=this.coordinateList[this.activeIndex].coordinate,s=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,l=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,c=r+a+s,u=o+this.offset.top+i/2+l;this.mouseHandlerCallback({pageX:c,pageY:u})}}}],t&&UR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function YR(){}function WR(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function HR(e){this._context=e}function GR(e){this._context=e}function QR(e){this._context=e}HR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:WR(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:WR(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},GR.prototype={areaStart:YR,areaEnd:YR,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:WR(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},QR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:WR(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class $R{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function qR(e){this._context=e}function ZR(e){this._context=e}function XR(e){return new ZR(e)}function KR(e){return e<0?-1:1}function JR(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(KR(i)+KR(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function ez(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function tz(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function nz(e){this._context=e}function rz(e){this._context=new oz(e)}function oz(e){this._context=e}function iz(e){this._context=e}function az(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function sz(e,t){this._context=e,this._t=t}function lz(e){return e[0]}function cz(e){return e[1]}function uz(e,t){var n=Hj(!0),r=null,o=XR,i=null,a=Kj(s);function s(s){var l,c,u,f=(s=GD(s)).length,d=!1;for(null==r&&(i=o(u=a())),l=0;l<=f;++l)!(l<f&&n(c=s[l],l,s))===d&&((d=!d)?i.lineStart():i.lineEnd()),d&&i.point(+e(c,l,s),+t(c,l,s));if(u)return i=null,u+""||null}return e="function"==typeof e?e:void 0===e?lz:Hj(e),t="function"==typeof t?t:void 0===t?cz:Hj(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:Hj(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:Hj(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:Hj(!!e),s):n},s.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),s):o},s.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),s):r},s}function fz(e,t,n){var r=null,o=Hj(!0),i=null,a=XR,s=null,l=Kj(c);function c(c){var u,f,d,p,h,m=(c=GD(c)).length,y=!1,g=new Array(m),v=new Array(m);for(null==i&&(s=a(h=l())),u=0;u<=m;++u){if(!(u<m&&o(p=c[u],u,c))===y)if(y=!y)f=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=f;--d)s.point(g[d],v[d]);s.lineEnd(),s.areaEnd()}y&&(g[u]=+e(p,u,c),v[u]=+t(p,u,c),s.point(r?+r(p,u,c):g[u],n?+n(p,u,c):v[u]))}if(h)return s=null,h+""||null}function u(){return uz().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?lz:Hj(+e),t="function"==typeof t?t:Hj(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?cz:Hj(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:Hj(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:Hj(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Hj(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:Hj(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:Hj(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Hj(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:Hj(!!e),c):o},c.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),c):a},c.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),c):i},c}function dz(e){return dz="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},dz(e)}function pz(){return pz=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},pz.apply(this,arguments)}function hz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hz(Object(n),!0).forEach((function(t){yz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yz(e,t,n){return t=function(e){var t=function(e){if("object"!=dz(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dz(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dz(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}qR.prototype={areaStart:YR,areaEnd:YR,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},ZR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},nz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:tz(this,this._t0,ez(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,tz(this,ez(this,n=JR(this,e,t)),n);break;default:tz(this,this._t0,n=JR(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(rz.prototype=Object.create(nz.prototype)).point=function(e,t){nz.prototype.point.call(this,t,e)},oz.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},iz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=az(e),o=az(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},sz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var gz={curveBasisClosed:function(e){return new GR(e)},curveBasisOpen:function(e){return new QR(e)},curveBasis:function(e){return new HR(e)},curveBumpX:function(e){return new $R(e,!0)},curveBumpY:function(e){return new $R(e,!1)},curveLinearClosed:function(e){return new qR(e)},curveLinear:XR,curveMonotoneX:function(e){return new nz(e)},curveMonotoneY:function(e){return new rz(e)},curveNatural:function(e){return new iz(e)},curveStep:function(e){return new sz(e,.5)},curveStepAfter:function(e){return new sz(e,1)},curveStepBefore:function(e){return new sz(e,0)}},vz=function(e){return e.x===+e.x&&e.y===+e.y},bz=function(e){return e.x},wz=function(e){return e.y},xz=function(e){var t=e.className,n=e.points,r=e.path,o=e.pathRef;if(!(n&&n.length||r))return null;var i=n&&n.length?function(e){var t,n=e.type,r=void 0===n?"linear":n,o=e.points,i=void 0===o?[]:o,a=e.baseLine,s=e.layout,l=e.connectNulls,c=void 0!==l&&l,u=function(e,t){if(Wx()(e))return e;var n="curve".concat(Mj()(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?gz[n]||XR:gz["".concat(n).concat("vertical"===t?"Y":"X")]}(r,s),f=c?i.filter((function(e){return vz(e)})):i;if(Array.isArray(a)){var d=c?a.filter((function(e){return vz(e)})):a,p=f.map((function(e,t){return mz(mz({},e),{},{base:d[t]})}));return(t="vertical"===s?fz().y(wz).x1(bz).x0((function(e){return e.base.x})):fz().x(bz).y1(wz).y0((function(e){return e.base.y}))).defined(vz).curve(u),t(p)}return(t="vertical"===s&&Dx(a)?fz().y(wz).x1(bz).x0(a):Dx(a)?fz().x(bz).y1(wz).y0(a):uz().x(bz).y(wz)).defined(vz).curve(u),t(f)}(e):r;return c().createElement("path",pz({},mM(e,!1),eM(e),{className:wt("recharts-curve",t),d:i,ref:o}))};function Mz(e){return Mz="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},Mz(e)}var jz=["x","y","top","left","width","height","className"];function Ez(){return Ez=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},Ez.apply(this,arguments)}function Oz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kz(e,t,n){return t=function(e){var t=function(e){if("object"!=Mz(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mz(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mz(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sz=function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},Nz=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,o=void 0===r?0:r,i=e.top,a=void 0===i?0:i,s=e.left,l=void 0===s?0:s,u=e.width,f=void 0===u?0:u,d=e.height,p=void 0===d?0:d,h=e.className,m=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oz(Object(n),!0).forEach((function(t){kz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({x:n,y:o,top:a,left:l,width:f,height:p},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,jz));return Dx(n)&&Dx(o)&&Dx(f)&&Dx(p)&&Dx(a)&&Dx(l)?c().createElement("path",Ez({},mM(m,!0),{className:wt("recharts-cross",h),d:Sz(n,o,f,p,a,l)})):null};function Tz(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,i=e.endAngle;return{points:[YI(t,n,r,o),YI(t,n,r,i)],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}function Az(e,t,n){var r,o,i,a;if("horizontal"===e)i=r=t.x,o=n.top,a=n.top+n.height;else if("vertical"===e)a=o=t.y,r=n.left,i=n.left+n.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return Tz(t);var s=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,f=t.angle,d=YI(s,l,c,f),p=YI(s,l,u,f);r=d.x,o=d.y,i=p.x,a=p.y}return[{x:r,y:o},{x:i,y:a}]}function Dz(e){return Dz="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},Dz(e)}function Cz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Iz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cz(Object(n),!0).forEach((function(t){Pz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pz(e,t,n){return t=function(e){var t=function(e){if("object"!=Dz(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Dz(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dz(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _z(e){var t,n,r,o=e.element,i=e.tooltipEventType,a=e.isActive,l=e.activeCoordinate,c=e.activePayload,u=e.offset,f=e.activeTooltipIndex,d=e.tooltipAxisBandSize,p=e.layout,h=e.chartName,m=null!==(t=o.props.cursor)&&void 0!==t?t:null===(n=o.type.defaultProps)||void 0===n?void 0:n.cursor;if(!o||!m||!a||!l||"ScatterChart"!==h&&"axis"!==i)return null;var y=xz;if("ScatterChart"===h)r=l,y=Nz;else if("BarChart"===h)r=function(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-o:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-o,width:"horizontal"===e?r:n.width-1,height:"horizontal"===e?n.height-1:r}}(p,l,u,d),y=ck;else if("radial"===p){var g=Tz(l),v=g.cx,b=g.cy,w=g.radius;r={cx:v,cy:b,startAngle:g.startAngle,endAngle:g.endAngle,innerRadius:w,outerRadius:w},y=BP}else r={points:Az(p,l,u)},y=xz;var x=Iz(Iz(Iz(Iz({stroke:"#ccc",pointerEvents:"none"},u),r),mM(m,!1)),{},{payload:c,payloadIndex:f,className:wt("recharts-tooltip-cursor",m.className)});return(0,s.isValidElement)(m)?(0,s.cloneElement)(m,x):(0,s.createElement)(y,x)}var Rz=["item"],zz=["children","className","width","height","style","compact","title","desc"];function Lz(e){return Lz="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},Lz(e)}function Uz(){return Uz=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},Uz.apply(this,arguments)}function Fz(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Qz(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bz(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Vz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kz(r.key),r)}}function Yz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yz=function(){return!!e})()}function Wz(e){return Wz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wz(e)}function Hz(e,t){return Hz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hz(e,t)}function Gz(e){return function(e){if(Array.isArray(e))return $z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qz(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qz(e,t){if(e){if("string"==typeof e)return $z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$z(e,t):void 0}}function $z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qz(Object(n),!0).forEach((function(t){Xz(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xz(e,t,n){return(t=Kz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kz(e){var t=function(e){if("object"!=Lz(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lz(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lz(t)?t:t+""}var Jz={xAxis:["bottom","top"],yAxis:["left","right"]},eL={width:"100%",height:"100%"},tL={x:0,y:0};function nL(e){return e}var rL=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,o=t.dataEndIndex,i=(null!=n?n:[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(Gz(e),Gz(n)):e}),[]);return i.length>0?i:e&&e.length&&Dx(r)&&Dx(o)?e.slice(r,o+1):[]};function oL(e){return"number"===e?[0,"auto"]:void 0}var iL,aL=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=rL(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(o,s){var l,c,u=null!==(l=s.props.data)&&void 0!==l?l:t;return u&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),(c=i.dataKey&&!i.allowDuplicatedCategory?Lx(void 0===u?a:u,i.dataKey,r):u&&u[n]||a[n])?[].concat(Gz(o),[bI(s,c)]):o}),[])},sL=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,l=e.tooltipTicks,c=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,l=0;l<a;l++){var c=l>0?r[l-1].coordinate:r[a-1].coordinate,u=r[l].coordinate,f=l>=a-1?r[0].coordinate:r[l+1].coordinate,d=void 0;if(Tx(u-c)!==Tx(f-u)){var p=[];if(Tx(f-u)===Tx(s[1]-s[0])){d=f;var h=u+s[1]-s[0];p[0]=Math.min(h,(h+c)/2),p[1]=Math.max(h,(h+c)/2)}else{d=c;var m=f+s[1]-s[0];p[0]=Math.min(u,(m+u)/2),p[1]=Math.max(u,(m+u)/2)}var y=[Math.min(u,(d+u)/2),Math.max(u,(d+u)/2)];if(e>y[0]&&e<=y[1]||e>=p[0]&&e<=p[1]){i=r[l].index;break}}else{var g=Math.min(c,f),v=Math.max(c,f);if(e>(g+u)/2&&e<=(v+u)/2){i=r[l].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i}(i,a,l,s);if(c>=0&&l){var u=l[c]&&l[c].value,f=aL(e,t,c,u),d=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return Zz(Zz(Zz({},r),YI(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,l=r.angle;return Zz(Zz(Zz({},r),YI(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return tL}(n,a,c,o);return{activeTooltipIndex:c,activeLabel:u,activePayload:f,activeCoordinate:d}}return null},lL=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),f=fM(c,o),d={};return f&&f.length?d=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,f=e.stackOffset,d=rI(c,o);return n.reduce((function(t,n){var p,h=void 0!==n.type.defaultProps?Zz(Zz({},n.type.defaultProps),n.props):n.props,m=h.type,y=h.dataKey,g=h.allowDataOverflow,v=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,M=h[i];if(t[M])return t;var j,E,O,k=rL(e.data,{graphicalItems:r.filter((function(e){var t;return(i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i])===M})),dataStartIndex:s,dataEndIndex:l}),S=k.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&Dx(r)&&Dx(o))return!0}return!1})(h.domain,g,m)&&(j=yI(h.domain,null,g),!d||"number"!==m&&"auto"===b||(O=JC(k,y,"category")));var N=oL(m);if(!j||0===j.length){var T,A=null!==(T=h.domain)&&void 0!==T?T:N;if(y){if(j=JC(k,y,m),"category"===m&&d){var D=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(j);v&&D?(E=j,j=kM()(0,S)):v||(j=vI(A,j,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(Gz(e),[t])}),[]))}else if("category"===m)j=v?j.filter((function(e){return""!==e&&!Vx()(e)})):vI(A,j,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Vx()(t)?e:[].concat(Gz(e),[t])}),[]);else if("number"===m){var C=function(e,t,n,r,o){var i=t.map((function(t){return tI(e,t,n,o,r)})).filter((function(e){return!Vx()(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(k,r.filter((function(e){var t,n,r=i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i],o="hide"in e.props?e.props.hide:null===(n=e.type.defaultProps)||void 0===n?void 0:n.hide;return r===M&&(x||!o)})),y,o,c);C&&(j=C)}!d||"number"!==m&&"auto"===b||(O=JC(k,y,"category"))}else j=d?kM()(0,S):a&&a[M]&&a[M].hasStack&&"number"===m?"expand"===f?[0,1]:pI(a[M].stackGroups,s,l):nI(k,r.filter((function(e){var t=i in e.props?e.props[i]:e.type.defaultProps[i],n="hide"in e.props?e.props.hide:e.type.defaultProps.hide;return t===M&&(x||!n)})),m,c,!0);if("number"===m)j=PR(u,j,M,o,w),A&&(j=yI(A,j,g));else if("category"===m&&A){var I=A;j.every((function(e){return I.indexOf(e)>=0}))&&(j=I)}}return Zz(Zz({},t),{},Xz({},M,Zz(Zz({},h),{},{axisType:o,domain:j,categoricalDomain:O,duplicateDomain:E,originalDomain:null!==(p=h.domain)&&void 0!==p?p:N,isCategorical:d,layout:c})))}),{})}(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:l}):i&&i.length&&(d=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,f=rL(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),d=f.length,p=rI(c,o),h=-1;return n.reduce((function(e,t){var m,y=(void 0!==t.type.defaultProps?Zz(Zz({},t.type.defaultProps),t.props):t.props)[i],g=oL("number");return e[y]?e:(h++,p?m=kM()(0,d):a&&a[y]&&a[y].hasStack?(m=pI(a[y].stackGroups,s,l),m=PR(u,m,y,o)):(m=yI(g,nI(f,n.filter((function(e){var t,n,r=i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i],o="hide"in e.props?e.props.hide:null===(n=e.type.defaultProps)||void 0===n?void 0:n.hide;return r===y&&!o})),"number",c),r.defaultProps.allowDataOverflow),m=PR(u,m,y,o)),Zz(Zz({},e),{},Xz({},y,Zz(Zz({axisType:o},r.defaultProps),{},{hide:!0,orientation:kx()(Jz,"".concat(o,".").concat(h%2),null),domain:m,originalDomain:g,isCategorical:p,layout:c}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:l})),d},cL=function(e){var t=e.children,n=e.defaultShowTooltip,r=dM(t,RI),o=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(i=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},uL=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},fL=function(e,t){return"xAxis"===t?e[t].width:"yAxis"===t?e[t].height:void 0},dL=["layout","type","stroke","connectNulls","isRange","ref"],pL=["key"];function hL(e){return hL="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},hL(e)}function mL(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function yL(){return yL=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},yL.apply(this,arguments)}function gL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gL(Object(n),!0).forEach((function(t){jL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,EL(r.key),r)}}function wL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wL=function(){return!!e})()}function xL(e){return xL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xL(e)}function ML(e,t){return ML=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ML(e,t)}function jL(e,t,n){return(t=EL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EL(e){var t=function(e){if("object"!=hL(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hL(t)?t:t+""}var OL=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return jL(e=function(e,t,n){return t=xL(t),function(e,t){if(t&&("object"===hL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,wL()?Reflect.construct(t,n||[],xL(e).constructor):t.apply(e,n))}(this,t,[].concat(r)),"state",{isAnimationFinished:!0}),jL(e,"id",Px("recharts-area-")),jL(e,"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Wx()(t)&&t()})),jL(e,"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Wx()(t)&&t()})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ML(e,t)}(t,e),n=t,r=[{key:"renderDots",value:function(e,n,r){var o=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(o&&!i)return null;var a=this.props,s=a.dot,l=a.points,u=a.dataKey,f=mM(this.props,!1),d=mM(s,!0),p=l.map((function(e,n){var r=vL(vL(vL({key:"dot-".concat(n),r:3},f),d),{},{index:n,cx:e.x,cy:e.y,dataKey:u,value:e.value,payload:e.payload,points:l});return t.renderDotItem(s,r)})),h={clipPath:e?"url(#clipPath-".concat(n?"":"dots-").concat(r,")"):null};return c().createElement(_M,yL({className:"recharts-area-dots"},h),p)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,o=t.strokeWidth,i=r[0].x,a=r[r.length-1].x,s=e*Math.abs(i-a),l=XD()(r.map((function(e){return e.y||0})));return Dx(n)&&"number"==typeof n?l=Math.max(n,l):n&&Array.isArray(n)&&n.length&&(l=Math.max(XD()(n.map((function(e){return e.y||0}))),l)),Dx(l)?c().createElement("rect",{x:i<a?i:i-s,y:0,width:s,height:Math.floor(l+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,o=t.strokeWidth,i=r[0].y,a=r[r.length-1].y,s=e*Math.abs(i-a),l=XD()(r.map((function(e){return e.x||0})));return Dx(n)&&"number"==typeof n?l=Math.max(n,l):n&&Array.isArray(n)&&n.length&&(l=Math.max(XD()(n.map((function(e){return e.x||0}))),l)),Dx(l)?c().createElement("rect",{x:0,y:i<a?i:i-s,width:l+(o?parseInt("".concat(o),10):1),height:Math.floor(s)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,t,n,r){var o=this.props,i=o.layout,a=o.type,s=o.stroke,l=o.connectNulls,u=o.isRange,f=(o.ref,mL(o,dL));return c().createElement(_M,{clipPath:n?"url(#clipPath-".concat(r,")"):null},c().createElement(xz,yL({},mM(f,!0),{points:e,connectNulls:l,type:a,baseLine:t,layout:i,stroke:"none",className:"recharts-area-area"})),"none"!==s&&c().createElement(xz,yL({},mM(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:l,fill:"none",points:e})),"none"!==s&&u&&c().createElement(xz,yL({},mM(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:l,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,i=r.baseLine,a=r.isAnimationActive,s=r.animationBegin,l=r.animationDuration,u=r.animationEasing,f=r.animationId,d=this.state,p=d.prevPoints,h=d.prevBaseLine;return c().createElement(JO,{begin:s,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var a=r.t;if(p){var s,l=p.length/o.length,u=o.map((function(e,t){var n=Math.floor(t*l);if(p[n]){var r=p[n],o=zx(r.x,e.x),i=zx(r.y,e.y);return vL(vL({},e),{},{x:o(a),y:i(a)})}return e}));return s=Dx(i)&&"number"==typeof i?zx(h,i)(a):Vx()(i)||Ex()(i)?zx(h,0)(a):i.map((function(e,t){var n=Math.floor(t*l);if(h[n]){var r=h[n],o=zx(r.x,e.x),i=zx(r.y,e.y);return vL(vL({},e),{},{x:o(a),y:i(a)})}return e})),n.renderAreaStatically(u,s,e,t)}return c().createElement(_M,null,c().createElement("defs",null,c().createElement("clipPath",{id:"animationClipPath-".concat(t)},n.renderClipRect(a))),c().createElement(_M,{clipPath:"url(#animationClipPath-".concat(t,")")},n.renderAreaStatically(o,i,e,t)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,o=n.baseLine,i=n.isAnimationActive,a=this.state,s=a.prevPoints,l=a.prevBaseLine,c=a.totalLength;return i&&r&&r.length&&(!s&&c>0||!rC()(s,r)||!rC()(l,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,r=t.dot,o=t.points,i=t.className,a=t.top,s=t.left,l=t.xAxis,u=t.yAxis,f=t.width,d=t.height,p=t.isAnimationActive,h=t.id;if(n||!o||!o.length)return null;var m=this.state.isAnimationFinished,y=1===o.length,g=wt("recharts-area",i),v=l&&l.allowDataOverflow,b=u&&u.allowDataOverflow,w=v||b,x=Vx()(h)?this.id:h,M=null!==(e=mM(r,!1))&&void 0!==e?e:{r:3,strokeWidth:2},j=M.r,E=void 0===j?3:j,O=M.strokeWidth,k=void 0===O?2:O,S=(function(e){return e&&"object"===iM(e)&&"clipDot"in e}(r)?r:{}).clipDot,N=void 0===S||S,T=2*E+k;return c().createElement(_M,{className:g},v||b?c().createElement("defs",null,c().createElement("clipPath",{id:"clipPath-".concat(x)},c().createElement("rect",{x:v?s:s-f/2,y:b?a:a-d/2,width:v?f:2*f,height:b?d:2*d})),!N&&c().createElement("clipPath",{id:"clipPath-dots-".concat(x)},c().createElement("rect",{x:s-T/2,y:a-T/2,width:f+T,height:d+T}))):null,y?null:this.renderArea(w,x),(r||y)&&this.renderDots(w,N,x),(!p||m)&&bP.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],r&&bL(n.prototype,r),o&&bL(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(s.PureComponent);function kL(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;o<e.length;o+=t){if(void 0!==n&&!0!==n(e[o]))return;r.push(e[o])}return r}function SL(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function NL(e){return NL="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},NL(e)}function TL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function AL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TL(Object(n),!0).forEach((function(t){DL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DL(e,t,n){return t=function(e){var t=function(e){if("object"!=NL(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=NL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==NL(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CL(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,u=e.unit,f=e.angle;if(!o||!o.length||!r)return[];if(Dx(l)||aj.isSsr)return function(e,t){return kL(e,t+1)}(o,"number"==typeof l&&Dx(l)?l:0);var d=[],p="top"===s||"bottom"===s?"width":"height",h=u&&"width"===p?Sk(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},m=function(e,r){var o=Wx()(c)?c(e.value,r):e.value;return"width"===p?function(e,t,n){return function(e){var t=e.width,n=e.height,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=r*Math.PI/180,i=Math.atan(n/t),a=o>i&&o<Math.PI-i?n/Math.sin(o):t/Math.cos(o);return Math.abs(a)}({width:e.width+t.width,height:e.height+t.height},n)}(Sk(o,{fontSize:t,letterSpacing:n}),h,f):Sk(o,{fontSize:t,letterSpacing:n})[p]},y=o.length>=2?Tx(o[1].coordinate-o[0].coordinate):1,g=function(e,t,n){var r="width"===n,o=e.x,i=e.y,a=e.width,s=e.height;return 1===t?{start:r?o:i,end:r?o+a:i+s}:{start:r?o+a:i+s,end:r?o:i}}(i,y,p);return"equidistantPreserveStart"===l?function(e,t,n,r,o){for(var i,a=(r||[]).slice(),s=t.start,l=t.end,c=0,u=1,f=s,d=function(){var t=null==r?void 0:r[c];if(void 0===t)return{v:kL(r,u)};var i,a=c,d=function(){return void 0===i&&(i=n(t,a)),i},p=t.coordinate,h=0===c||SL(e,p,d,f,l);h||(c=0,f=s,u+=1),h&&(f=p+e*(d()/2+o),c+=u)};u<=a.length;)if(i=d())return i.v;return[]}(y,g,m,o,a):(d="preserveStart"===l||"preserveStartEnd"===l?function(e,t,n,r,o,i){var a=(r||[]).slice(),s=a.length,l=t.start,c=t.end;if(i){var u=r[s-1],f=n(u,s-1),d=e*(u.coordinate+e*f/2-c);a[s-1]=u=AL(AL({},u),{},{tickCoord:d>0?u.coordinate-d*e:u.coordinate}),SL(e,u.tickCoord,(function(){return f}),l,c)&&(c=u.tickCoord-e*(f/2+o),a[s-1]=AL(AL({},u),{},{isShow:!0}))}for(var p=i?s-1:s,h=function(t){var r,i=a[t],s=function(){return void 0===r&&(r=n(i,t)),r};if(0===t){var u=e*(i.coordinate-e*s()/2-l);a[t]=i=AL(AL({},i),{},{tickCoord:u<0?i.coordinate-u*e:i.coordinate})}else a[t]=i=AL(AL({},i),{},{tickCoord:i.coordinate});SL(e,i.tickCoord,s,l,c)&&(l=i.tickCoord+e*(s()/2+o),a[t]=AL(AL({},i),{},{isShow:!0}))},m=0;m<p;m++)h(m);return a}(y,g,m,o,a,"preserveStartEnd"===l):function(e,t,n,r,o){for(var i=(r||[]).slice(),a=i.length,s=t.start,l=t.end,c=function(t){var r,c=i[t],u=function(){return void 0===r&&(r=n(c,t)),r};if(t===a-1){var f=e*(c.coordinate+e*u()/2-l);i[t]=c=AL(AL({},c),{},{tickCoord:f>0?c.coordinate-f*e:c.coordinate})}else i[t]=c=AL(AL({},c),{},{tickCoord:c.coordinate});SL(e,c.tickCoord,u,s,l)&&(l=c.tickCoord-e*(u()/2+o),i[t]=AL(AL({},c),{},{isShow:!0}))},u=a-1;u>=0;u--)c(u);return i}(y,g,m,o,a),d.filter((function(e){return e.isShow})))}iL=OL,jL(OL,"displayName","Area"),jL(OL,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!aj.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),jL(OL,"getBaseValue",(function(e,t,n,r){var o=e.layout,i=e.baseValue,a=t.props.baseValue,s=null!=a?a:i;if(Dx(s)&&"number"==typeof s)return s;var l="horizontal"===o?r:n,c=l.scale.domain();if("number"===l.type){var u=Math.max(c[0],c[1]),f=Math.min(c[0],c[1]);return"dataMin"===s?f:"dataMax"===s||u<0?u:Math.max(Math.min(c[0],c[1]),0)}return"dataMin"===s?c[0]:"dataMax"===s?c[1]:c[0]})),jL(OL,"getComposedData",(function(e){var t,n=e.props,r=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,l=e.bandSize,c=e.dataKey,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,h=n.layout,m=u&&u.length,y=iL.getBaseValue(n,r,o,i),g="horizontal"===h,v=!1,b=d.map((function(e,t){var n;m?n=u[f+t]:(n=KC(e,c),Array.isArray(n)?v=!0:n=[y,n]);var r=null==n[1]||m&&null==KC(e,c);return g?{x:fI({axis:o,ticks:a,bandSize:l,entry:e,index:t}),y:r?null:i.scale(n[1]),value:n,payload:e}:{x:r?null:o.scale(n[1]),y:fI({axis:i,ticks:s,bandSize:l,entry:e,index:t}),value:n,payload:e}}));return t=m||v?b.map((function(e){var t=Array.isArray(e.value)?e.value[0]:null;return g?{x:e.x,y:null!=t&&null!=e.y?i.scale(t):null}:{x:null!=t?o.scale(t):null,y:e.y}})):g?i.scale(y):o.scale(y),vL({points:b,baseLine:t,layout:h,isRange:v},p)})),jL(OL,"renderDotItem",(function(e,t){var n;if(c().isValidElement(e))n=c().cloneElement(e,t);else if(Wx()(e))n=e(t);else{var r=wt("recharts-area-dot","boolean"!=typeof e?e.className:""),o=t.key,i=mL(t,pL);n=c().createElement(CE,yL({},i,{key:o,className:r}))}return n}));var IL=["viewBox"],PL=["viewBox"],_L=["ticks"];function RL(e){return RL="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},RL(e)}function zL(){return zL=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},zL.apply(this,arguments)}function LL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LL(Object(n),!0).forEach((function(t){HL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FL(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function BL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,GL(r.key),r)}}function VL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(VL=function(){return!!e})()}function YL(e){return YL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YL(e)}function WL(e,t){return WL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},WL(e,t)}function HL(e,t,n){return(t=GL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GL(e){var t=function(e){if("object"!=RL(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=RL(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==RL(t)?t:t+""}var QL=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=YL(t),function(e,t){if(t&&("object"===RL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,VL()?Reflect.construct(t,n||[],YL(e).constructor):t.apply(e,n))}(this,t,[e])).state={fontSize:"",letterSpacing:""},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WL(e,t)}(t,e),n=t,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=FL(e,IL),o=this.props,i=o.viewBox,a=FL(o,PL);return!$x(n,i)||!$x(r,a)||!$x(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,s=this.props,l=s.x,c=s.y,u=s.width,f=s.height,d=s.orientation,p=s.tickSize,h=s.mirror,m=s.tickMargin,y=h?-1:1,g=e.tickSize||p,v=Dx(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,a=(r=(o=c+ +!h*f)-y*g)-y*m,i=v;break;case"left":r=o=e.coordinate,i=(t=(n=l+ +!h*u)-y*g)-y*m,a=v;break;case"right":r=o=e.coordinate,i=(t=(n=l+ +h*u)+y*g)+y*m,a=v;break;default:t=n=e.coordinate,a=(r=(o=c+ +h*f)+y*g)+y*m,i=v}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.orientation,a=e.mirror,s=e.axisLine,l=UL(UL(UL({},mM(this.props,!1)),mM(s,!1)),{},{fill:"none"});if("top"===i||"bottom"===i){var u=+("top"===i&&!a||"bottom"===i&&a);l=UL(UL({},l),{},{x1:t,y1:n+u*o,x2:t+r,y2:n+u*o})}else{var f=+("left"===i&&!a||"right"===i&&a);l=UL(UL({},l),{},{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return c().createElement("line",zL({},l,{className:wt("recharts-cartesian-axis-line",kx()(s,"className"))}))}},{key:"renderTicks",value:function(e,n,r){var o=this,i=this.props,a=i.tickLine,s=i.stroke,l=i.tick,u=i.tickFormatter,f=i.unit,d=CL(UL(UL({},this.props),{},{ticks:e}),n,r),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),m=mM(this.props,!1),y=mM(l,!1),g=UL(UL({},m),{},{fill:"none"},mM(a,!1)),v=d.map((function(e,n){var r=o.getTickLineCoord(e),i=r.line,v=r.tick,b=UL(UL(UL(UL({textAnchor:p,verticalAnchor:h},m),{},{stroke:"none",fill:s},y),v),{},{index:n,payload:e,visibleTicksCount:d.length,tickFormatter:u});return c().createElement(_M,zL({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},tM(o.props,e,n)),a&&c().createElement("line",zL({},g,i,{className:wt("recharts-cartesian-axis-tick-line",kx()(a,"className"))})),l&&t.renderTickItem(l,b,"".concat(Wx()(u)?u(e.value,n):e.value).concat(f||"")))}));return c().createElement("g",{className:"recharts-cartesian-axis-ticks"},v)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,o=t.height,i=t.ticksGenerator,a=t.className;if(t.hide)return null;var s=this.props,l=s.ticks,u=FL(s,_L),f=l;return Wx()(i)&&(f=l&&l.length>0?i(this.props):i(u)),r<=0||o<=0||!f||!f.length?null:c().createElement(_M,{className:wt("recharts-cartesian-axis",a),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),JI.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(e,t,n){return c().isValidElement(e)?c().cloneElement(e,t):Wx()(e)?e(t):c().createElement(eS,zL({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],r&&BL(n.prototype,r),o&&BL(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(s.Component);function $L(e){return $L="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},$L(e)}function qL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eU(r.key),r)}}function ZL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ZL=function(){return!!e})()}function XL(e){return XL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XL(e)}function KL(e,t){return KL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KL(e,t)}function JL(e,t,n){return(t=eU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eU(e){var t=function(e){if("object"!=$L(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$L(t)?t:t+""}function tU(){return tU=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},tU.apply(this,arguments)}function nU(e){var t=e.xAxisId,n=aR(),r=sR(),o=oR(t);return null==o?null:c().createElement(QL,tU({},o,{className:wt("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return iI(e,!0)}}))}HL(QL,"displayName","CartesianAxis"),HL(QL,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var rU=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=XL(t),function(e,t){if(t&&("object"===$L(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ZL()?Reflect.construct(t,n||[],XL(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KL(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return c().createElement(nU,this.props)}}])&&qL(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(c().Component);function oU(e){return oU="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},oU(e)}function iU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uU(r.key),r)}}function aU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aU=function(){return!!e})()}function sU(e){return sU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sU(e)}function lU(e,t){return lU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lU(e,t)}function cU(e,t,n){return(t=uU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uU(e){var t=function(e){if("object"!=oU(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oU(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oU(t)?t:t+""}function fU(){return fU=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},fU.apply(this,arguments)}JL(rU,"displayName","XAxis"),JL(rU,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});var dU=function(e){var t=e.yAxisId,n=aR(),r=sR(),o=iR(t);return null==o?null:c().createElement(QL,fU({},o,{className:wt("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return iI(e,!0)}}))},pU=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=sU(t),function(e,t){if(t&&("object"===oU(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,aU()?Reflect.construct(t,n||[],sU(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lU(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return c().createElement(dU,this.props)}}])&&iU(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(c().Component);cU(pU,"displayName","YAxis"),cU(pU,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});var hU=function(e){var t=e.chartName,n=e.GraphicalChild,r=e.defaultTooltipEventType,o=void 0===r?"axis":r,i=e.validateTooltipEventTypes,a=void 0===i?["axis"]:i,l=e.axisComponents,u=e.legendContent,f=e.formatAxisMap,d=e.defaultProps,p=function(e,r){var o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!pM({props:o}))return null;var c=o.children,u=o.layout,d=o.stackOffset,p=o.data,h=o.reverseStackOrder,m=uL(u),y=m.numericAxisName,g=m.cateAxisName,v=fM(c,n),b=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o,i=null!==(o=t.type)&&void 0!==o&&o.defaultProps?ZC(ZC({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(i.hide)return e;var s=i[n],l=e[s]||{hasStack:!1,stackGroups:{}};if(Cx(a)){var c=l.stackGroups[a]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),l.hasStack=!0,l.stackGroups[a]=c}else l.stackGroups[Px("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return ZC(ZC({},e),{},XC({},s,l))}),{});return Object.keys(a).reduce((function(t,i){var s=a[i];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,i){var a=s.stackGroups[i];return ZC(ZC({},t),{},XC({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:uI(e,a.items,o)}))}),{})),ZC(ZC({},t),{},XC({},i,s))}),{})}(p,v,"".concat(y,"Id"),"".concat(g,"Id"),d,h),w=l.reduce((function(e,t){var n="".concat(t.axisType,"Map");return Zz(Zz({},e),{},Xz({},n,lL(o,Zz(Zz({},t),{},{graphicalItems:v,stackGroups:t.axisType===y&&b,dataStartIndex:i,dataEndIndex:a}))))}),{}),x=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,s=n.width,l=n.height,c=n.children,u=n.margin||{},f=dM(c,RI),d=dM(c,AE),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:Zz(Zz({},e),{},Xz({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:Zz(Zz({},e),{},Xz({},r,kx()(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),m=Zz(Zz({},h),p),y=m.bottom;f&&(m.bottom+=f.props.height||RI.defaultProps.height),d&&t&&(m=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,s=i-(a.left||0)-(a.right||0),l=HC({children:o,legendWidth:s});if(l){var c=r||{},u=c.width,f=c.height,d=l.align,p=l.verticalAlign,h=l.layout;if(("vertical"===h||"horizontal"===h&&"middle"===p)&&"center"!==d&&Dx(e[d]))return ZC(ZC({},e),{},XC({},d,e[d]+(u||0)));if(("horizontal"===h||"vertical"===h&&"center"===d)&&"middle"!==p&&Dx(e[p]))return ZC(ZC({},e),{},XC({},p,e[p]+(f||0)))}return e}(m,0,n,t));var g=s-m.left-m.right,v=l-m.top-m.bottom;return Zz(Zz({brushBottom:y},m),{},{width:Math.max(g,0),height:Math.max(v,0)})}(Zz(Zz({},w),{},{props:o,graphicalItems:v}),null==r?void 0:r.legendBBox);Object.keys(w).forEach((function(e){w[e]=f(o,w[e],x,e.replace("Map",""),t)}));var M,j,E=w["".concat(g,"Map")],O=(M=Rx(E),{tooltipTicks:j=iI(M,!1,!0),orderedTooltipTicks:NM()(j,(function(e){return e.coordinate})),tooltipAxis:M,tooltipAxisBandSize:gI(M,j)}),k=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,c=e.barSize,u=e.layout,f=e.barGap,d=e.barCategoryGap,p=e.maxBarSize,h=uL(u),m=h.numericAxisName,y=h.cateAxisName,g=function(e){return!(!e||!e.length)&&e.some((function(e){var t=sM(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),v=[];return n.forEach((function(n,h){var b=rL(e.data,{graphicalItems:[n],dataStartIndex:a,dataEndIndex:s}),w=void 0!==n.type.defaultProps?Zz(Zz({},n.type.defaultProps),n.props):n.props,x=w.dataKey,M=w.maxBarSize,j=w["".concat(m,"Id")],E=w["".concat(y,"Id")],O=l.reduce((function(e,n){var r=t["".concat(n.axisType,"Map")],o=w["".concat(n.axisType,"Id")];r&&r[o]||"zAxis"===n.axisType||TM(!1);var i=r[o];return Zz(Zz({},e),{},Xz(Xz({},n.axisType,i),"".concat(n.axisType,"Ticks"),iI(i)))}),{}),k=O[y],S=O["".concat(y,"Ticks")],N=r&&r[j]&&r[j].hasStack&&function(e,t){var n,r=(null!==(n=e.type)&&void 0!==n&&n.defaultProps?ZC(ZC({},e.type.defaultProps),e.props):e.props).stackId;if(Cx(r)){var o=t[r];if(o){var i=o.items.indexOf(e);return i>=0?o.stackedData[i]:null}}return null}(n,r[j].stackGroups),T=sM(n.type).indexOf("Bar")>=0,A=gI(k,S),D=[],C=g&&function(e){var t=e.barSize,n=e.totalSize,r=e.stackGroups,o=void 0===r?{}:r;if(!o)return{};for(var i={},a=Object.keys(o),s=0,l=a.length;s<l;s++)for(var c=o[a[s]].stackGroups,u=Object.keys(c),f=0,d=u.length;f<d;f++){var p=c[u[f]],h=p.items,m=p.cateAxisId,y=h.filter((function(e){return sM(e.type).indexOf("Bar")>=0}));if(y&&y.length){var g=y[0].type.defaultProps,v=void 0!==g?ZC(ZC({},g),y[0].props):y[0].props,b=v.barSize,w=v[m];i[w]||(i[w]=[]);var x=Vx()(b)?t:b;i[w].push({item:y[0],stackList:y.slice(1),barSize:Vx()(x)?void 0:_x(x,n,0)})}}return i}({barSize:c,stackGroups:r,totalSize:fL(O,y)});if(T){var I,P,_=Vx()(M)?p:M,R=null!==(I=null!==(P=gI(k,S,!0))&&void 0!==P?P:_)&&void 0!==I?I:0;D=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,s=i.length;if(s<1)return null;var l,c=_x(t,r,0,!0),u=[];if(i[0].barSize===+i[0].barSize){var f=!1,d=r/s,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*c)>=r&&(p-=(s-1)*c,c=0),p>=r&&d>0&&(f=!0,p=s*(d*=.9));var h={offset:((r-p)/2|0)-c,size:0};l=i.reduce((function(e,t){var n={item:t.item,position:{offset:h.offset+h.size+c,size:f?d:t.barSize}},r=[].concat(QC(e),[n]);return h=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:h})})),r}),u)}else{var m=_x(n,r,0,!0);r-2*m-(s-1)*c<=0&&(c=0);var y=(r-2*m-(s-1)*c)/s;y>1&&(y>>=0);var g=a===+a?Math.min(y,a):y;l=i.reduce((function(e,t,n){var r=[].concat(QC(e),[{item:t.item,position:{offset:m+(y+c)*n+(y-g)/2,size:g}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),u)}return l}({barGap:f,barCategoryGap:d,bandSize:R!==A?R:A,sizeList:C[E],maxBarSize:_}),R!==A&&(D=D.map((function(e){return Zz(Zz({},e),{},{position:Zz(Zz({},e.position),{},{offset:e.position.offset-R/2})})})))}var z,L,U=n&&n.type&&n.type.getComposedData;U&&v.push({props:Zz(Zz({},U(Zz(Zz({},O),{},{displayedData:b,props:e,dataKey:x,item:n,bandSize:A,barPosition:D,offset:o,stackedData:N,layout:u,dataStartIndex:a,dataEndIndex:s}))),{},Xz(Xz(Xz({key:n.key||"item-".concat(h)},m,O[m]),y,O[y]),"animationId",i)),childIndex:(z=n,L=e.children,uM(L).indexOf(z)),item:n})})),v}(o,Zz(Zz({},w),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:v,stackGroups:b,offset:x}));return Zz(Zz({formattedGraphicalItems:k,graphicalItems:v,offset:x,stackGroups:b},O),w)},h=function(e){function n(e){var r,o,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Xz(i=function(e,t,n){return t=Wz(t),function(e,t){if(t&&("object"===Lz(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yz()?Reflect.construct(t,n||[],Wz(e).constructor):t.apply(e,n))}(this,n,[e]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Xz(i,"accessibilityManager",new VR),Xz(i,"handleLegendBBoxUpdate",(function(e){if(e){var t=i.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.updateId;i.setState(Zz({legendBBox:e},p({props:i.props,dataStartIndex:n,dataEndIndex:r,updateId:o},Zz(Zz({},i.state),{},{legendBBox:e}))))}})),Xz(i,"handleReceiveSyncEvent",(function(e,t,n){if(i.props.syncId===e){if(n===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(t)}})),Xz(i,"handleBrushChange",(function(e){var t=e.startIndex,n=e.endIndex;if(t!==i.state.dataStartIndex||n!==i.state.dataEndIndex){var r=i.state.updateId;i.setState((function(){return Zz({dataStartIndex:t,dataEndIndex:n},p({props:i.props,dataStartIndex:t,dataEndIndex:n,updateId:r},i.state))})),i.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}})),Xz(i,"handleMouseEnter",(function(e){var t=i.getMouseInfo(e);if(t){var n=Zz(Zz({},t),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseEnter;Wx()(r)&&r(n,e)}})),Xz(i,"triggeredAfterMouseMove",(function(e){var t=i.getMouseInfo(e),n=t?Zz(Zz({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseMove;Wx()(r)&&r(n,e)})),Xz(i,"handleItemMouseEnter",(function(e){i.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),Xz(i,"handleItemMouseLeave",(function(){i.setState((function(){return{isTooltipActive:!1}}))})),Xz(i,"handleMouseMove",(function(e){e.persist(),i.throttleTriggeredAfterMouseMove(e)})),Xz(i,"handleMouseLeave",(function(e){i.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};i.setState(t),i.triggerSyncEvent(t);var n=i.props.onMouseLeave;Wx()(n)&&n(t,e)})),Xz(i,"handleOuterEvent",(function(e){var t,n=function(e){var t=e&&e.type;return t&&aM[t]?aM[t]:null}(e),r=kx()(i.props,"".concat(n));n&&Wx()(r)&&r(null!==(t=/.*touch.*/i.test(n)?i.getMouseInfo(e.changedTouches[0]):i.getMouseInfo(e))&&void 0!==t?t:{},e)})),Xz(i,"handleClick",(function(e){var t=i.getMouseInfo(e);if(t){var n=Zz(Zz({},t),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onClick;Wx()(r)&&r(n,e)}})),Xz(i,"handleMouseDown",(function(e){var t=i.props.onMouseDown;Wx()(t)&&t(i.getMouseInfo(e),e)})),Xz(i,"handleMouseUp",(function(e){var t=i.props.onMouseUp;Wx()(t)&&t(i.getMouseInfo(e),e)})),Xz(i,"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(e.changedTouches[0])})),Xz(i,"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.handleMouseDown(e.changedTouches[0])})),Xz(i,"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&i.handleMouseUp(e.changedTouches[0])})),Xz(i,"handleDoubleClick",(function(e){var t=i.props.onDoubleClick;Wx()(t)&&t(i.getMouseInfo(e),e)})),Xz(i,"handleContextMenu",(function(e){var t=i.props.onContextMenu;Wx()(t)&&t(i.getMouseInfo(e),e)})),Xz(i,"triggerSyncEvent",(function(e){void 0!==i.props.syncId&&RR.emit(zR,i.props.syncId,e,i.eventEmitterSymbol)})),Xz(i,"applySyncEvent",(function(e){var t=i.props,n=t.layout,r=t.syncMethod,o=i.state.updateId,a=e.dataStartIndex,s=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)i.setState(Zz({dataStartIndex:a,dataEndIndex:s},p({props:i.props,dataStartIndex:a,dataEndIndex:s,updateId:o},i.state)));else if(void 0!==e.activeTooltipIndex){var l=e.chartX,c=e.chartY,u=e.activeTooltipIndex,f=i.state,d=f.offset,h=f.tooltipTicks;if(!d)return;if("function"==typeof r)u=r(h,e);else if("value"===r){u=-1;for(var m=0;m<h.length;m++)if(h[m].value===e.activeLabel){u=m;break}}var y=Zz(Zz({},d),{},{x:d.left,y:d.top}),g=Math.min(l,y.x+y.width),v=Math.min(c,y.y+y.height),b=h[u]&&h[u].value,w=aL(i.state,i.props.data,u),x=h[u]?{x:"horizontal"===n?h[u].coordinate:g,y:"horizontal"===n?v:h[u].coordinate}:tL;i.setState(Zz(Zz({},e),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:u}))}else i.setState(e)})),Xz(i,"renderCursor",(function(e){var n,r=i.state,o=r.isTooltipActive,a=r.activeCoordinate,s=r.activePayload,l=r.offset,u=r.activeTooltipIndex,f=r.tooltipAxisBandSize,d=i.getTooltipEventType(),p=null!==(n=e.props.active)&&void 0!==n?n:o,h=i.props.layout,m=e.key||"_recharts-cursor";return c().createElement(_z,{key:m,activeCoordinate:a,activePayload:s,activeTooltipIndex:u,chartName:t,element:e,isActive:p,layout:h,offset:l,tooltipAxisBandSize:f,tooltipEventType:d})})),Xz(i,"renderPolarAxis",(function(e,t,n){var r=kx()(e,"type.axisType"),o=kx()(i.state,"".concat(r,"Map")),a=e.type.defaultProps,l=void 0!==a?Zz(Zz({},a),e.props):e.props,c=o&&o[l["".concat(r,"Id")]];return(0,s.cloneElement)(e,Zz(Zz({},c),{},{className:wt(r,c.className),key:e.key||"".concat(t,"-").concat(n),ticks:iI(c,!0)}))})),Xz(i,"renderPolarGrid",(function(e){var t=e.props,n=t.radialLines,r=t.polarAngles,o=t.polarRadius,a=i.state,l=a.radiusAxisMap,c=a.angleAxisMap,u=Rx(l),f=Rx(c),d=f.cx,p=f.cy,h=f.innerRadius,m=f.outerRadius;return(0,s.cloneElement)(e,{polarAngles:Array.isArray(r)?r:iI(f,!0).map((function(e){return e.coordinate})),polarRadius:Array.isArray(o)?o:iI(u,!0).map((function(e){return e.coordinate})),cx:d,cy:p,innerRadius:h,outerRadius:m,key:e.key||"polar-grid",radialLines:n})})),Xz(i,"renderLegend",(function(){var e=i.state.formattedGraphicalItems,t=i.props,n=t.children,r=t.width,o=t.height,a=i.props.margin||{},l=r-(a.left||0)-(a.right||0),c=HC({children:n,formattedGraphicalItems:e,legendWidth:l,legendContent:u});if(!c)return null;var f=c.item,d=Bz(c,Rz);return(0,s.cloneElement)(f,Zz(Zz({},d),{},{chartWidth:r,chartHeight:o,margin:a,onBBoxUpdate:i.handleLegendBBoxUpdate}))})),Xz(i,"renderTooltip",(function(){var e,t=i.props,n=t.children,r=t.accessibilityLayer,o=dM(n,wj);if(!o)return null;var a=i.state,l=a.isTooltipActive,c=a.activeCoordinate,u=a.activePayload,f=a.activeLabel,d=a.offset,p=null!==(e=o.props.active)&&void 0!==e?e:l;return(0,s.cloneElement)(o,{viewBox:Zz(Zz({},d),{},{x:d.left,y:d.top}),active:p,label:f,payload:p?u:[],coordinate:c,accessibilityLayer:r})})),Xz(i,"renderBrush",(function(e){var t=i.props,n=t.margin,r=t.data,o=i.state,a=o.offset,l=o.dataStartIndex,c=o.dataEndIndex,u=o.updateId;return(0,s.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:sI(i.handleBrushChange,e.props.onChange),data:r,x:Dx(e.props.x)?e.props.x:a.left,y:Dx(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(n.bottom||0),width:Dx(e.props.width)?e.props.width:a.width,startIndex:l,endIndex:c,updateId:"brush-".concat(u)})})),Xz(i,"renderReferenceElement",(function(e,t,n){if(!e)return null;var r=i.clipPathId,o=i.state,a=o.xAxisMap,l=o.yAxisMap,c=o.offset,u=e.type.defaultProps||{},f=e.props,d=f.xAxisId,p=void 0===d?u.xAxisId:d,h=f.yAxisId,m=void 0===h?u.yAxisId:h;return(0,s.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(n),xAxis:a[p],yAxis:l[m],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:r})})),Xz(i,"renderActivePoints",(function(e){var t=e.item,r=e.activePoint,o=e.basePoint,i=e.childIndex,a=e.isRange,s=[],l=t.props.key,c=void 0!==t.item.type.defaultProps?Zz(Zz({},t.item.type.defaultProps),t.item.props):t.item.props,u=c.activeDot,f=Zz(Zz({index:i,dataKey:c.dataKey,cx:r.x,cy:r.y,r:4,fill:eI(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value},mM(u,!1)),eM(u));return s.push(n.renderActiveDot(u,f,"".concat(l,"-activePoint-").concat(i))),o?s.push(n.renderActiveDot(u,Zz(Zz({},f),{},{cx:o.x,cy:o.y}),"".concat(l,"-basePoint-").concat(i))):a&&s.push(null),s})),Xz(i,"renderGraphicChild",(function(e,t,n){var r=i.filterFormatItem(e,t,n);if(!r)return null;var o=i.getTooltipEventType(),a=i.state,l=a.isTooltipActive,c=a.tooltipAxis,u=a.activeTooltipIndex,f=a.activeLabel,d=dM(i.props.children,wj),p=r.props,h=p.points,m=p.isRange,y=p.baseLine,g=void 0!==r.item.type.defaultProps?Zz(Zz({},r.item.type.defaultProps),r.item.props):r.item.props,v=g.activeDot,b=g.hide,w=g.activeBar,x=g.activeShape,M=Boolean(!b&&l&&d&&(v||w||x)),j={};"axis"!==o&&d&&"click"===d.props.trigger?j={onClick:sI(i.handleItemMouseEnter,e.props.onClick)}:"axis"!==o&&(j={onMouseLeave:sI(i.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:sI(i.handleItemMouseEnter,e.props.onMouseEnter)});var E=(0,s.cloneElement)(e,Zz(Zz({},r.props),j));if(M){if(!(u>=0)){var O,k=(null!==(O=i.getItemByXY(i.state.activeCoordinate))&&void 0!==O?O:{graphicalItem:E}).graphicalItem,S=k.item,N=void 0===S?e:S,T=k.childIndex,A=Zz(Zz(Zz({},r.props),j),{},{activeIndex:T});return[(0,s.cloneElement)(N,A),null,null]}var D,C;if(c.dataKey&&!c.allowDuplicatedCategory){var I="function"==typeof c.dataKey?function(e){return"function"==typeof c.dataKey?c.dataKey(e.payload):null}:"payload.".concat(c.dataKey.toString());D=Lx(h,I,f),C=m&&y&&Lx(y,I,f)}else D=null==h?void 0:h[u],C=m&&y&&y[u];if(x||w){var P=void 0!==e.props.activeIndex?e.props.activeIndex:u;return[(0,s.cloneElement)(e,Zz(Zz(Zz({},r.props),j),{},{activeIndex:P})),null,null]}if(!Vx()(D))return[E].concat(Gz(i.renderActivePoints({item:r,activePoint:D,basePoint:C,childIndex:u,isRange:m})))}return m?[E,null,null]:[E,null]})),Xz(i,"renderCustomized",(function(e,t,n){return(0,s.cloneElement)(e,Zz(Zz({key:"recharts-customized-".concat(n)},i.props),i.state))})),Xz(i,"renderMap",{CartesianGrid:{handler:nL,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:nL},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:nL},YAxis:{handler:nL},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(r=e.id)&&void 0!==r?r:Px("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=wx()(i.triggeredAfterMouseMove,null!==(o=e.throttleDelay)&&void 0!==o?o:1e3/60),i.state={},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hz(e,t)}(n,e),r=n,i=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,i=dM(t,wj);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var s=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,l=aL(this.state,n,a,s),c=this.state.tooltipTicks[a].coordinate,u=(this.state.offset.top+r)/2,f="horizontal"===o?{x:c,y:u}:{y:c,x:u},d=this.state.formattedGraphicalItems.find((function(e){return"Scatter"===e.item.type.name}));d&&(f=Zz(Zz({},f),d.props.points[a].tooltipPosition),l=d.props.points[a].tooltipPayload);var p={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:s,activePayload:l,activeCoordinate:f};this.setState(p),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(e){yM([dM(e.children,wj)],[dM(this.props.children,wj)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=dM(this.props.children,wj);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return a.indexOf(t)>=0?t:o}return o}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n=this.container,r=n.getBoundingClientRect(),o=(t=r).top+window.scrollY-document.documentElement.clientTop,i=t.left+window.scrollX-document.documentElement.clientLeft,a={chartX:Math.round(e.pageX-i),chartY:Math.round(e.pageY-o)},s=r.width/n.offsetWidth||1,l=this.inRange(a.chartX,a.chartY,s);if(!l)return null;var c=this.state,u=c.xAxisMap,f=c.yAxisMap,d=this.getTooltipEventType(),p=sL(this.state,this.props.data,this.props.layout,l);if("axis"!==d&&u&&f){var h=Rx(u).scale,m=Rx(f).scale,y=h&&h.invert?h.invert(a.chartX):null,g=m&&m.invert?m.invert(a.chartY):null;return Zz(Zz({},a),{},{xValue:y,yValue:g},p)}return p?Zz(Zz({},a),p):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,i=t/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var s=this.state,l=s.angleAxisMap,c=s.radiusAxisMap;if(l&&c){var u=Rx(l);return HI({x:o,y:i},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=dM(e,wj),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),Zz(Zz({},eM(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){RR.on(zR,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){RR.removeListener(zR,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===sM(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,o=t.height,i=t.width;return c().createElement("defs",null,c().createElement("clipPath",{id:e},c().createElement("rect",{x:n,y:r,height:o,width:i})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=Fz(t,2),r=n[0],o=n[1];return Zz(Zz({},e),{},Xz({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=Fz(t,2),r=n[0],o=n[1];return Zz(Zz({},e),{},Xz({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var o=0,i=n.length;o<i;o++){var a=n[o],s=a.props,l=a.item,c=void 0!==l.type.defaultProps?Zz(Zz({},l.type.defaultProps),l.props):l.props,u=sM(l.type);if("Bar"===u){var f=(s.data||[]).find((function(t){return sk(e,t)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===u){var d=(s.data||[]).find((function(t){return HI(e,t)}));if(d)return{graphicalItem:a,payload:d}}else if(ZP(a,r)||XP(a,r)||KP(a,r)){var p=n_({graphicalItem:a,activeTooltipItem:r,itemData:c.data}),h=void 0===c.activeIndex?p:c.activeIndex;return{graphicalItem:Zz(Zz({},a),{},{childIndex:h}),payload:KP(a,r)?c.data[p]:a.props.data[p]}}}return null}},{key:"render",value:function(){var e=this;if(!pM(this))return null;var t,n,r=this.props,o=r.children,i=r.className,a=r.width,s=r.height,l=r.style,u=r.compact,f=r.title,d=r.desc,p=Bz(r,zz),h=mM(p,!1);if(u)return c().createElement(rR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},c().createElement(CM,Uz({},h,{width:a,height:s,title:f,desc:d}),this.renderClipPath(),vM(o,this.renderMap)));this.props.accessibilityLayer&&(h.tabIndex=null!==(t=this.props.tabIndex)&&void 0!==t?t:0,h.role=null!==(n=this.props.role)&&void 0!==n?n:"application",h.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},h.onFocus=function(){e.accessibilityManager.focus()});var m=this.parseEventsOfWrapper();return c().createElement(rR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},c().createElement("div",Uz({className:wt("recharts-wrapper",i),style:Zz({position:"relative",cursor:"default",width:a,height:s},l)},m,{ref:function(t){e.container=t}}),c().createElement(CM,Uz({},h,{width:a,height:s,title:f,desc:d,style:eL}),this.renderClipPath(),vM(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&Vz(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(s.Component);Xz(h,"displayName",t),Xz(h,"defaultProps",Zz({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),Xz(h,"getDerivedStateFromProps",(function(e,t){var n=e.dataKey,r=e.data,o=e.children,i=e.width,a=e.height,s=e.layout,l=e.stackOffset,c=e.margin,u=t.dataStartIndex,f=t.dataEndIndex;if(void 0===t.updateId){var d=cL(e);return Zz(Zz(Zz({},d),{},{updateId:0},p(Zz(Zz({props:e},d),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:s,prevStackOffset:l,prevMargin:c,prevChildren:o})}if(n!==t.prevDataKey||r!==t.prevData||i!==t.prevWidth||a!==t.prevHeight||s!==t.prevLayout||l!==t.prevStackOffset||!$x(c,t.prevMargin)){var h=cL(e),m={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},y=Zz(Zz({},sL(t,r,s)),{},{updateId:t.updateId+1}),g=Zz(Zz(Zz({},h),m),y);return Zz(Zz(Zz({},g),p(Zz({props:e},g),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:s,prevStackOffset:l,prevMargin:c,prevChildren:o})}if(!yM(o,t.prevChildren)){var v,b,w,x,M=dM(o,RI),j=M&&null!==(v=null===(b=M.props)||void 0===b?void 0:b.startIndex)&&void 0!==v?v:u,E=M&&null!==(w=null===(x=M.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,O=j!==u||E!==f,k=Vx()(r)||O?t.updateId+1:t.updateId;return Zz(Zz({updateId:k},p(Zz(Zz({props:e},t),{},{updateId:k,dataStartIndex:j,dataEndIndex:E}),t)),{},{prevChildren:o,dataStartIndex:j,dataEndIndex:E})}return null})),Xz(h,"renderActiveDot",(function(e,t,n){var r;return r=(0,s.isValidElement)(e)?(0,s.cloneElement)(e,t):Wx()(e)?e(t):c().createElement(CE,t),c().createElement(_M,{className:"recharts-active-dot",key:n},r)}));var m=(0,s.forwardRef)((function(e,t){return c().createElement(h,Uz({},e,{ref:t}))}));return m.displayName=h.displayName,m}({chartName:"AreaChart",GraphicalChild:OL,axisComponents:[{axisType:"xAxis",AxisComp:rU},{axisType:"yAxis",AxisComp:pU}],formatAxisMap:function(e,t,n,o,i){var a=e.width,s=e.height,l=e.layout,c=e.children,u=Object.keys(t),f={left:n.left,leftMirror:n.left,right:a-n.right,rightMirror:a-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},d=!!dM(c,j_);return u.reduce((function(a,s){var c,u,p,h,m,y=t[s],g=y.orientation,v=y.domain,b=y.padding,w=void 0===b?{}:b,x=y.mirror,M=y.reversed,j="".concat(g).concat(x?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var E=v[1]-v[0],O=1/0,k=y.categoricalDomain.sort(Ux);if(k.forEach((function(e,t){t>0&&(O=Math.min((e||0)-(k[t-1]||0),O))})),Number.isFinite(O)){var S=O/E,N="vertical"===y.layout?n.height:n.width;if("gap"===y.padding&&(c=S*N/2),"no-gap"===y.padding){var T=_x(e.barCategoryGap,S*N),A=S*N/2;c=A-T-(A-T)/N*T}}}u="xAxis"===o?[n.left+(w.left||0)+(c||0),n.left+n.width-(w.right||0)-(c||0)]:"yAxis"===o?"horizontal"===l?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(c||0),n.top+n.height-(w.bottom||0)-(c||0)]:y.range,M&&(u=[u[1],u[0]]);var D=function(e,t,n){var o=e.scale,i=e.type,a=e.layout,s=e.axisType;if("auto"===o)return"radial"===a&&"radiusAxis"===s?{scale:gk(),realScaleType:"band"}:"radial"===a&&"angleAxis"===s?{scale:RN(),realScaleType:"linear"}:"category"===i&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:bk(),realScaleType:"point"}:"category"===i?{scale:gk(),realScaleType:"band"}:{scale:RN(),realScaleType:"linear"};if(Mx()(o)){var l="scale".concat(Mj()(o));return{scale:(r[l]||bk)(),realScaleType:r[l]?l:"point"}}return Wx()(o)?{scale:o}:{scale:bk(),realScaleType:"point"}}(y,i,d),C=D.scale,I=D.realScaleType;C.domain(v).range(u),function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-lI,i=Math.max(r[0],r[1])+lI,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}}(C);var P=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var l=e.domain();if(!l.length)return null;var c=NC(l,o,a);return e.domain([JD()(c),XD()(c)]),{niceTicks:c}}if(o&&"number"===r){var u=e.domain();return{niceTicks:TC(u,o,a)}}return null}(C,S_(S_({},y),{},{realScaleType:I}));"xAxis"===o?(m="top"===g&&!x||"bottom"===g&&x,p=n.left,h=f[j]-m*y.height):"yAxis"===o&&(m="left"===g&&!x||"right"===g&&x,p=f[j]-m*y.width,h=n.top);var _=S_(S_(S_({},y),P),{},{realScaleType:I,x:p,y:h,scale:C,width:"xAxis"===o?n.width:y.width,height:"yAxis"===o?n.height:y.height});return _.bandSize=gI(_,P),y.hide||"xAxis"!==o?y.hide||(f[j]+=(m?-1:1)*_.width):f[j]+=(m?-1:1)*_.height,S_(S_({},a),{},N_({},s,_))}),{})}}),mU=["x1","y1","x2","y2","key"],yU=["offset"];function gU(e){return gU="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},gU(e)}function vU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vU(Object(n),!0).forEach((function(t){wU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wU(e,t,n){return t=function(e){var t=function(e){if("object"!=gU(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gU(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gU(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xU(){return xU=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},xU.apply(this,arguments)}function MU(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var jU=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,r=e.x,o=e.y,i=e.width,a=e.height,s=e.ry;return c().createElement("rect",{x:r,y:o,ry:s,width:i,height:a,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function EU(e,t){var n;if(c().isValidElement(e))n=c().cloneElement(e,t);else if(Wx()(e))n=e(t);else{var r=t.x1,o=t.y1,i=t.x2,a=t.y2,s=t.key,l=MU(t,mU),u=mM(l,!1),f=(u.offset,MU(u,yU));n=c().createElement("line",xU({},f,{x1:r,y1:o,x2:i,y2:a,fill:"none",key:s}))}return n}function OU(e){var t=e.x,n=e.width,r=e.horizontal,o=void 0===r||r,i=e.horizontalPoints;if(!o||!i||!i.length)return null;var a=i.map((function(r,i){var a=bU(bU({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(i),index:i});return EU(o,a)}));return c().createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function kU(e){var t=e.y,n=e.height,r=e.vertical,o=void 0===r||r,i=e.verticalPoints;if(!o||!i||!i.length)return null;var a=i.map((function(r,i){var a=bU(bU({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(i),index:i});return EU(o,a)}));return c().createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function SU(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,i=e.width,a=e.height,s=e.horizontalPoints,l=e.horizontal;if(void 0!==l&&!l||!t||!t.length)return null;var u=s.map((function(e){return Math.round(e+o-o)})).sort((function(e,t){return e-t}));o!==u[0]&&u.unshift(0);var f=u.map((function(e,s){var l=u[s+1]?u[s+1]-e:o+a-e;if(l<=0)return null;var f=s%t.length;return c().createElement("rect",{key:"react-".concat(s),y:e,x:r,height:l,width:i,stroke:"none",fill:t[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return c().createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function NU(e){var t=e.vertical,n=void 0===t||t,r=e.verticalFill,o=e.fillOpacity,i=e.x,a=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var f=u.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==f[0]&&f.unshift(0);var d=f.map((function(e,t){var n=f[t+1]?f[t+1]-e:i+s-e;if(n<=0)return null;var u=t%r.length;return c().createElement("rect",{key:"react-".concat(t),x:e,y:a,width:n,height:l,stroke:"none",fill:r[u],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return c().createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var TU=function(e,t){var n=e.xAxis,r=e.width,o=e.height,i=e.offset;return oI(CL(bU(bU(bU({},QL.defaultProps),n),{},{ticks:iI(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,t)},AU=function(e,t){var n=e.yAxis,r=e.width,o=e.height,i=e.offset;return oI(CL(bU(bU(bU({},QL.defaultProps),n),{},{ticks:iI(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,t)},DU={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function CU(e){var t,n,r,o,i,a,l,u,f=aR(),d=sR(),p=(0,s.useContext)(J_),h=bU(bU({},e),{},{stroke:null!==(t=e.stroke)&&void 0!==t?t:DU.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:DU.fill,horizontal:null!==(r=e.horizontal)&&void 0!==r?r:DU.horizontal,horizontalFill:null!==(o=e.horizontalFill)&&void 0!==o?o:DU.horizontalFill,vertical:null!==(i=e.vertical)&&void 0!==i?i:DU.vertical,verticalFill:null!==(a=e.verticalFill)&&void 0!==a?a:DU.verticalFill,x:Dx(e.x)?e.x:p.left,y:Dx(e.y)?e.y:p.top,width:Dx(e.width)?e.width:p.width,height:Dx(e.height)?e.height:p.height}),m=h.x,y=h.y,g=h.width,v=h.height,b=h.syncWithTicks,w=h.horizontalValues,x=h.verticalValues,M=(l=(0,s.useContext)(Z_),Rx(l)),j=(u=(0,s.useContext)(X_),Q_()(u,(function(e){return iP()(e.domain,Number.isFinite)}))||Rx(u));if(!Dx(g)||g<=0||!Dx(v)||v<=0||!Dx(m)||m!==+m||!Dx(y)||y!==+y)return null;var E=h.verticalCoordinatesGenerator||TU,O=h.horizontalCoordinatesGenerator||AU,k=h.horizontalPoints,S=h.verticalPoints;if((!k||!k.length)&&Wx()(O)){var N=w&&w.length,T=O({yAxis:j?bU(bU({},j),{},{ticks:N?w:j.ticks}):void 0,width:f,height:d,offset:p},!!N||b);Fx(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(gU(T),"]")),Array.isArray(T)&&(k=T)}if((!S||!S.length)&&Wx()(E)){var A=x&&x.length,D=E({xAxis:M?bU(bU({},M),{},{ticks:A?x:M.ticks}):void 0,width:f,height:d,offset:p},!!A||b);Fx(Array.isArray(D),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(gU(D),"]")),Array.isArray(D)&&(S=D)}return c().createElement("g",{className:"recharts-cartesian-grid"},c().createElement(jU,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),c().createElement(OU,xU({},h,{offset:p,horizontalPoints:k,xAxis:M,yAxis:j})),c().createElement(kU,xU({},h,{offset:p,verticalPoints:S,xAxis:M,yAxis:j})),c().createElement(SU,xU({},h,{horizontalPoints:k})),c().createElement(NU,xU({},h,{verticalPoints:S})))}CU.displayName="CartesianGrid";const IU=s.forwardRef((({className:e,hideIcon:t=!1,payload:n=[],verticalAlign:r="bottom",nameKey:o="value",fontSizeVariant:i},a)=>n.length?(0,Ee.jsx)("div",{ref:a,className:xt("flex items-center justify-center gap-4","top"===r?"pb-3":"pt-3",e),children:n.map((e=>(0,Ee.jsxs)("div",{className:"flex items-center gap-1.5",children:[!t&&(0,Ee.jsx)("div",{className:"size-2 shrink-0 rounded-sm",style:{backgroundColor:e.color}}),(0,Ee.jsx)("span",{className:"capitalize",style:{fontSize:i},children:e[o]})]},e.value)))}):null));IU.displayName="ChartLegendContent";const PU=(0,s.forwardRef)((({active:e,payload:t,className:n,indicator:r,hideLabel:o=!1,hideIndicator:i=!1,label:a,labelFormatter:l,labelClassName:c,formatter:u,color:f,nameKey:d="name",labelKey:p},h)=>{const m=(0,s.useMemo)((()=>{if(o||!t?.length)return null;const[e]=t,n=l?l(a||""):e[p]||a;return n?(0,Ee.jsx)("div",{className:xt("font-medium",c),children:n}):null}),[a,l,t,o,c,p]);if(!e||!t?.length)return null;const y=1===t.length&&"dot"!==r;return(0,Ee.jsxs)("div",{ref:h,className:xt("grid min-w-[8rem] items-start gap-1.5 rounded-lg border bg-tooltip-background-light px-3 py-2 text-xs shadow-xl",n),children:[y?null:m,(0,Ee.jsx)("div",{className:"grid gap-1.5",children:t.map(((e,t)=>{const n=f||e.color||"#000";return(0,Ee.jsxs)("div",{className:xt("flex w-full items-stretch gap-2","dot"===r&&"items-center"),children:[!i&&(0,Ee.jsx)("div",{className:xt({"size-2.5":"dot"===r,"w-1 h-full":"line"===r,"w-0 border-[0.5px] border-dashed":"dashed"===r}),style:{backgroundColor:"dot"===r||"line"===r?n:"",borderColor:"dashed"===r?n:""}}),(0,Ee.jsxs)("div",{className:"flex-1 flex justify-between items-center gap-2",children:[(0,Ee.jsx)("span",{children:e[d]||e.dataKey}),(0,Ee.jsx)("span",{className:"font-mono font-medium",children:u?u(e.value??""):e.value??""})]})]},e.dataKey||t)}))})]})}));PU.displayName="ChartTooltipContent";const _U=[{stroke:"#2563EB",fill:"#BFDBFE"},{stroke:"#38BDF8",fill:"#BAE6FD"}],RU=({data:e,dataKeys:t,colors:n=[],variant:r="solid",showXAxis:o=!0,showYAxis:i=!0,showTooltip:a=!0,tooltipIndicator:l="dot",tooltipLabelKey:c,showLegend:u=!0,showCartesianGrid:f=!0,xAxisTickFormatter:d,tickFormatter:p,yAxisTickFormatter:h,xAxisDataKey:m,yAxisDataKey:y,xAxisFontSize:g="sm",xAxisFontColor:v="#6B7280",chartWidth:b=350,chartHeight:w=200,areaChartWrapperProps:x={margin:{left:14,right:14,top:6,bottom:6}},noDataComponent:M})=>{const[j,E]=(0,s.useState)(b),[O,k]=(0,s.useState)(w),S=n.length>0?n:_U;(0,s.useEffect)((()=>{E(b),k(w)}),[b,w]);const N={sm:"12px",md:"14px",lg:"16px"},T=N[g]||N.sm;return e&&0!==e.length?(0,Ee.jsx)(EM,{width:j,height:O,children:(0,Ee.jsxs)(hU,{...x,data:e,children:[f&&(0,Ee.jsx)(CU,{vertical:!1}),(0,Ee.jsx)(rU,{dataKey:m,tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:d||p,tick:{fontSize:T,fill:v},hide:!o,interval:"preserveStartEnd"}),(0,Ee.jsx)(pU,{dataKey:y,tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:h,tick:{fontSize:T,fill:v},hide:!i}),a&&(0,Ee.jsx)(wj,{content:(0,Ee.jsx)(PU,{indicator:l,labelKey:c})}),u&&(0,Ee.jsx)(AE,{content:(0,Ee.jsx)(IU,{fontSizeVariant:T})}),"gradient"===r&&(0,Ee.jsx)("defs",{children:S.map(((e,t)=>(0,Ee.jsxs)("linearGradient",{id:`fill${t}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,Ee.jsx)("stop",{offset:"5%",stopColor:e.fill,stopOpacity:.8}),(0,Ee.jsx)("stop",{offset:"95%",stopColor:e.fill,stopOpacity:.1})]},`gradient${t}`)))}),t.map(((e,t)=>(0,Ee.jsx)(OL,{type:"monotone",dataKey:e,stroke:S[t%S.length].stroke,fill:"gradient"===r?`url(#fill${t})`:S[t%S.length].fill,stackId:"1"},e)))]})}):M||(0,Ee.jsx)(Gt,{size:"sm",variant:"help",children:"No data available"})},zU=Kt("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),LU=Kt("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);function UU(e){return UU="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},UU(e)}function FU(){FU=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof d?n:d,a=Object.create(i.prototype);return l(a,"_invoke",function(t,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=x(s,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new E(o||[])),!0),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f={};function d(){}function p(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(O([])));g&&g!==n&&r.call(g,i)&&(m=g);var v=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==UU(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[t.r]=a.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function M(e){this.tryEntries.push(e)}function j(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function E(e){this.tryEntries=[[-1]],e.forEach(M,this),this.reset(!0)}function O(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(UU(t)+" is not iterable")}return p.prototype=h,l(v,"constructor",h),l(h,"constructor",p),p.displayName=l(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),l(v,s,"Generator"),l(v,i,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){a.type="throw",a.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,r(l),!0;if(s<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:O(t),r:n,n:r},"next"===this.method&&(this.arg=e),f}},t}function BU(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function VU(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){BU(i,r,o,a,s,"next",e)}function s(e){BU(i,r,o,a,s,"throw",e)}a(void 0)}))}}function YU(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return WU(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?WU(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function WU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var HU=function(e){var t=e.text,n=e.color,r=void 0===n?"":n,o=e.weight,i=void 0===o?"":o,a=e.size,s=void 0===a?"md":a;return React.createElement(Gt,{tag:"p",size:s,className:ip("text-center max-w-sm mx-auto font-semibold",r,i)},t||(0,je.__)("This is where your form views will appear","sureforms"))},GU=function(e){var t=e.onClick,n=e.ariaLabel;return React.createElement(Qt,{variant:"link",size:"xs",icon:React.createElement(en,null),iconPosition:"left",onClick:t,"aria-label":n},(0,je.__)("Clear Filters","sureforms"))};const QU=function(){var e=YU((0,i.useState)({from:null,to:null}),2),t=e[0],n=e[1],r=YU((0,i.useState)(!1),2),o=r[0],a=r[1],s=YU((0,i.useState)([]),2),l=s[0],c=s[1],u=YU((0,i.useState)([]),2),f=u[0],d=u[1],p=(0,i.useRef)(null),h=YU((0,i.useState)(""),2),m=h[0],y=h[1],g=YU((0,i.useState)(!1),2),v=g[0],b=g[1],w=function(e){y(e)},x=function(e){var t=f.find((function(t){return t.id===e}));return t?t.name.length>0?t.name:(0,je.__)("Unnamed Form","sureforms"):""};return(0,i.useEffect)((function(){var e=function(){var e=VU(FU().mark((function e(){var n,r,o,i,a,s,l,u,f;return FU().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,b(!0),n=t.from,r=t.to,o=m||"",i=n?new Date(n).toISOString():new Date((new Date).setMonth((new Date).getMonth()-1)).toISOString(),a=r?new Date(r).toISOString():(new Date).toISOString(),s="sureforms/v1/entries-chart-data?after=".concat(i,"&before=").concat(a,"&form=").concat(o),e.next=9,du()({path:s});case 9:l=e.sent,u={},l.forEach((function(e){var t=new Date(e.created_at).toLocaleDateString();u[t]?u[t]++:u[t]=1})),f=Object.entries(u).sort((function(e,t){var n=YU(e,1)[0],r=YU(t,1)[0];return new Date(n)-new Date(r)})).map((function(e){var t=YU(e,2),n=t[0],r=t[1];return{month:lp(new Date(n),"MMM dd, yyyy"),entries:r}})),c(f),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(0),console.error("Error fetching data:",e.t0);case 19:return e.prev=19,b(!1),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[0,16,19,22]])})));return function(){return e.apply(this,arguments)}}();e()}),[t,m]),(0,i.useEffect)((function(){var e=function(){var e=VU(FU().mark((function e(){var t,n,r;return FU().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=4,du()({path:"sureforms/v1/form-data"});case 4:t=e.sent,(n=Object.entries(t)).length>0&&(r=n.map((function(e){return{name:e[1],id:e[0]}})),d(r)),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.error("Error fetching data:",e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}();e()}),[t]),(0,i.useEffect)((function(){function e(e){o&&p.current&&!p.current.contains(e.target)&&a(!1)}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[o]),React.createElement(Yt,{direction:"column",className:"w-full p-4 gap-2 rounded-xl bg-background-primary border-0.5 border-solid border-border-subtle shadow-sm-blur-2"},React.createElement(Yt.Item,{className:"flex flex-wrap items-center justify-between p-1 gap-6 sm:flex-row sm:gap-2"},React.createElement(Ht,{title:(0,je.__)("Forms Overview","sureforms"),size:"xs"}),React.createElement(Yt,{align:"center",className:"flex-wrap gap-3 sm:flex-row"},React.createElement(Yt,{align:"center",className:"gap-2"},m?React.createElement(GU,{onClick:function(){return w("")},ariaLabel:(0,je.__)("Clear Form Filters","sureforms")}):null,React.createElement("div",{className:"min-w-[200px]"},React.createElement(db,{value:m,onChange:function(e){return w(e)},size:"sm"},React.createElement(db.Button,{placeholder:(0,je.__)("Select Form","sureforms")},x(m)),React.createElement(db.Options,{className:"z-999999"},f.map((function(e){return React.createElement(db.Option,{key:e.id,value:e.id},React.createElement("span",null,e.name.length>0?e.name:(0,je.__)("Unnamed Form","sureforms")))})))))),React.createElement(Yt,{align:"center",className:"gap-2"},t.from||t.to?React.createElement(GU,{onClick:function(){n({from:null,to:null})},ariaLabel:(0,je.__)("Clear Date Filters","sureforms")}):null,React.createElement("div",{className:"relative flex gap-1",ref:p},React.createElement(hb,{type:"text",size:"sm",value:cp(t),suffix:React.createElement(zU,{className:"text-icon-secondary"}),onClick:function(){return a((function(e){return!e}))},placeholder:sp(),className:"min-w-[200px]",readOnly:!0,"aria-label":(0,je.__)("Select Date Range","sureforms")}),o&&React.createElement("div",{className:"absolute z-10 mt-2 rounded-lg shadow-lg right-0 bg-background-primary"},React.createElement(vx,{applyButtonText:(0,je.__)("Apply","sureforms"),cancelButtonText:(0,je.__)("Cancel","sureforms"),selectionType:"range",showOutsideDays:!1,variant:"presets",onApply:function(e){var t=e.from,r=e.to;if(t&&r){var o=new Date(t),i=new Date(r);n(o>i?{from:r,to:t}:e)}else n(t&&!r?{from:t,to:t}:{from:null,to:null});a(!1)},onCancel:function(){a(!1)},selected:up(t)})))))),!v&&(""!==m||0!==l.length)&&React.createElement(Yt.Item,{className:"flex justify-between p-1 gap-2"},React.createElement(Gt,{size:"sm",variant:"help",className:"font-semibold"},x(m)||(0,je.__)("All Forms","sureforms")),React.createElement(Yt,{align:"center",className:"gap-2 p-1"},React.createElement("div",{className:"w-2 h-2 bg-chart-purple-500 rounded-sm"}),React.createElement(Gt,{size:"xs",variant:"help",className:"font-medium"},(0,je.__)("Entries","sureforms")))),React.createElement(Yt.Item,{className:"w-full flex flex-col flex-1 items-stretch justify-between rounded-md mt-2"},v?React.createElement(Yt,{direction:"column",justify:"center",align:"center",className:"min-h-[256px] gap-4"},React.createElement(rb,{size:"xl",variant:"primary"}),React.createElement(Yt,{direction:"column",align:"center",className:"gap-1"},React.createElement(HU,{text:(0,je.__)("Please wait for the data to load","sureforms")}),React.createElement(HU,{color:"text-text-secondary",weight:"font-normal",size:"sm"}))):!v&&l.length>0?React.createElement("div",{className:"flex-1 min-h-[248px]"},React.createElement(RU,{data:l,dataKeys:["entries"],chartWidth:"100%",chartHeight:"100%",variant:"gradient",showTooltip:!0,showYAxis:!1,showLegend:!1,showCartesianGrid:!0,colors:[{fill:"#A855F7",stroke:"#A855F7"}],showXAxis:!0,tooltipIndicator:"dot",tickFormatter:function(){return""},xAxisDataKey:"month",tooltipLabelKey:"month"})):React.createElement(Yt,{direction:"column",align:"center",justify:"center",className:"min-h-[256px] gap-4"},React.createElement(LU,null),React.createElement(Yt,{direction:"column",align:"center",className:"gap-1"},React.createElement(HU,{text:(0,je.__)("No entries to display","sureforms")}),React.createElement(HU,{color:"text-text-secondary",weight:"font-normal",size:"sm",text:(0,je.__)("Once you create a form and start receiving submissions, the data will appear here.","sureforms")})))))},$U=({design:e="inline",theme:t="light",variant:n="neutral",className:r="",title:o="",content:i="",icon:a=null,onClose:s,action:l={label:"",onClick:()=>{},type:"link"}})=>{const c=()=>{"function"==typeof s&&s()},u={neutral:"ring-alert-border-neutral bg-alert-background-neutral",custom:"ring-alert-border-neutral bg-alert-background-neutral",info:"ring-alert-border-info bg-alert-background-info",success:"ring-alert-border-green bg-alert-background-green",warning:"ring-alert-border-warning bg-alert-background-warning",error:"ring-alert-border-danger bg-alert-background-danger"},f="bg-background-inverse ring-background-inverse",d={light:"text-icon-secondary",dark:"text-icon-inverse"},p=()=>{l?.onClick?.(c)};return"stack"===e?(0,Ee.jsx)("div",{className:xt("flex items-center justify-start p-4 gap-2 relative ring-1 rounded-md shadow-lg","dark"===t?f:u?.[n],r),children:(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:wn({variant:n,icon:a,theme:t})}),(0,Ee.jsxs)("div",{className:"flex flex-col items-start justify-start gap-0.5 mr-7",children:[Mn({title:o,theme:t}),jn({content:i,theme:t}),l?.label&&"function"==typeof l?.onClick&&(0,Ee.jsx)("div",{className:"mt-2.5",children:xn({actionLabel:l?.label,actionType:l?.type??"button",onAction:p,theme:t})})]}),(0,Ee.jsx)("div",{className:"absolute right-4 top-4 [&_svg]:size-5",children:(0,Ee.jsx)("button",{className:xt("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",d[t]??d.light),onClick:()=>c(),"aria-label":"Close alert",children:(0,Ee.jsx)(un,{})})})]})}):(0,Ee.jsxs)("div",{className:xt("flex items-center justify-between p-3 gap-2 relative ring-1 rounded-lg shadow-lg","dark"===t?f:u?.[n],r),children:[(0,Ee.jsxs)("div",{className:"flex items-center justify-start gap-2",children:[(0,Ee.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:wn({variant:n,icon:a,theme:t})}),(0,Ee.jsxs)("p",{className:"content-start space-x-1 my-0 mr-10 px-1",children:[Mn({title:o,theme:t,inline:!0}),jn({content:i,theme:t,inline:!0})]})]}),(0,Ee.jsxs)("div",{className:"flex h-full justify-start gap-4 [&_svg]:size-4",children:[l?.label&&"function"==typeof l?.onClick&&(0,Ee.jsx)("div",{className:"self-center flex h-5",children:xn({actionLabel:l?.label,actionType:l?.type??"button",onAction:p,theme:t})}),"function"==typeof s&&(0,Ee.jsx)("button",{className:xt("self-start bg-transparent m-0 border-none p-0.5 focus:outline-none active:outline-none cursor-pointer size-5",d[t]??d.light),onClick:()=>c(),"aria-label":"Close alert",children:(0,Ee.jsx)(un,{})})]})]})},qU=Kt("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),ZU=Kt("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),XU=Kt("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);function KU(e){return KU="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},KU(e)}function JU(){JU=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof d?n:d,a=Object.create(i.prototype);return l(a,"_invoke",function(t,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=x(s,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new E(o||[])),!0),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f={};function d(){}function p(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(O([])));g&&g!==n&&r.call(g,i)&&(m=g);var v=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==KU(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[t.r]=a.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function M(e){this.tryEntries.push(e)}function j(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function E(e){this.tryEntries=[[-1]],e.forEach(M,this),this.reset(!0)}function O(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(KU(t)+" is not iterable")}return p.prototype=h,l(v,"constructor",h),l(h,"constructor",p),p.displayName=l(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),l(v,s,"Generator"),l(v,i,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){a.type="throw",a.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,r(l),!0;if(s<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:O(t),r:n,n:r},"next"===this.method&&(this.arg=e),f}},t}function eF(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function tF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var nF={"repair-entries-table":function(){return du()({path:"/sureforms/v1/database/repair-entries-table",method:"POST"})}},rF=function(e){switch(e){case"error":return React.createElement(qU,{className:"!size-6"});case"warning":return React.createElement(bp,{className:"!size-6"});case"success":return React.createElement(ZU,{className:"!size-6"});default:return React.createElement(XU,{className:"!size-6"})}},oF=function(e){switch(e){case"error":return"shadow-none bg-alert-background-danger";case"warning":return"shadow-none bg-alert-background-warning";case"success":return"shadow-none bg-alert-background-success";default:return"shadow-none bg-alert-background-info"}},iF=function(e){var t=e.variant,n=void 0===t?"info":t,r=e.message,o=e.title,a=e.actions,s=void 0===a?[]:a,l=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tF(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,i.useState)({busy:!1,error:""}),2),c=l[0],u=l[1],f=(0,i.useRef)(!1),d=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){eF(i,r,o,a,s,"next",e)}function s(e){eF(i,r,o,a,s,"throw",e)}a(void 0)}))}}(JU().mark((function e(t){var n,r;return JU().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=nF[t.action]){e.next=4;break}return t.url&&("_blank"===t.target?window.open(t.url,"_blank","noopener,noreferrer"):window.location.href=t.url),e.abrupt("return");case 4:if(!f.current){e.next=6;break}return e.abrupt("return");case 6:return f.current=!0,u({busy:!0,error:""}),e.prev=8,e.next=11,n();case 11:(r=new URL(window.location.href)).searchParams.set("srfm_db_repair","done"),window.location.assign(r.toString()),e.next=20;break;case 16:e.prev=16,e.t0=e.catch(8),f.current=!1,u({busy:!1,error:(null===e.t0||void 0===e.t0?void 0:e.t0.message)||(0,je.__)("Something went wrong. Please try again.","sureforms")});case 20:case"end":return e.stop()}}),e,null,[[8,16]])})));return function(t){return e.apply(this,arguments)}}(),p=React.createElement("span",{className:"flex flex-col gap-3.5"},React.createElement("span",null,r,s.length>0&&s.map((function(e,t){return React.createElement("span",{key:t}," ",React.createElement(Qt,{onClick:function(){return d(e)},disabled:c.busy,"aria-busy":c.busy,variant:"link",size:"xs",className:"inline-flex text-link-primary p-0 [&>span]:p-0"},c.busy&&e.action?(0,je.__)("Working…","sureforms"):e.label))}))),React.createElement("span",{role:"status","aria-live":"polite",className:"sr-only"},c.busy?(0,je.__)("Working…","sureforms"):""),c.error&&React.createElement("span",{role:"alert",className:"text-text-error"},c.error));return React.createElement($U,{content:p,icon:rF(n),title:o||null,variant:n,className:oF(n)})};const aF=function(e){var t,n=e.currentPage,r=void 0===n?"all":n,o=(null===(t=window.srfm_admin)||void 0===t?void 0:t.notices)||[];if(!o||0===o.length)return null;var i=o.filter((function(e){return!(e.pages&&!e.pages.includes("all"))||e.pages.includes(r)}));return 0===i.length?null:React.createElement("div",{className:"flex flex-col gap-4"},i.map((function(e){return React.createElement(iF,{key:e.id,variant:e.variant||"info",message:e.message,title:e.title,actions:e.actions||[]})})))},sF=function(){var e,t,n,r,o,i=React.createElement(_v,null),a=(null===(e=srfm_admin)||void 0===e?void 0:e.is_first_form_created)||!1,s=(null===(t=srfm_admin)||void 0===t?void 0:t.is_pro_active)||!1,l=(null===(n=srfm_admin)||void 0===n?void 0:n.hide_promotions)||!1,c=React.createElement(React.Fragment,null,React.createElement(rn,null),React.createElement(QU,null),!s&&a&&React.createElement(vp,null)),u=React.createElement(React.Fragment,null,React.createElement(Pp,null),s||!a?React.createElement(vp,null):null,!s&&a&&React.createElement(Gv,null),React.createElement(Bv,null));return React.createElement(Yt,{className:"h-full",direction:"column",gap:0},i,React.createElement(Yt.Item,{className:"px-5 pb-8 xl:px-8 w-full bg-background-secondary"},(null===(r=window.srfm_admin)||void 0===r||null===(r=r.notices)||void 0===r?void 0:r.length)>0&&React.createElement("div",{className:"py-4"},React.createElement(aF,{currentPage:"sureforms_menu"})),React.createElement(Yt,{className:ip(!(null!==(o=window.srfm_admin)&&void 0!==o&&null!==(o=o.notices)&&void 0!==o&&o.length)&&"pt-5 xl:pt-8"),containerType:"grid",cols:12,gap:"2xl"},l?React.createElement(Yt.Item,{className:"flex flex-col gap-8 col-span-12"},React.createElement(Pp,null),c):React.createElement(React.Fragment,null,React.createElement(Yt.Item,{className:"flex flex-col gap-8 col-span-12 xl:col-span-8"},c),React.createElement(Yt.Item,{className:"flex flex-col gap-8 col-span-12 xl:col-span-4"},u)))))},lF=cn("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),cF=(e,t)=>xt("rounded-full text-brand-primary-600 transition-colors duration-300",e[t].dot,e[t].ring),uF={sm:{dot:"size-2.5",ring:"size-5",numberIcon:"size-5 text-tiny",icon:"size-5",label:"text-xs"},md:{dot:"size-3",ring:"size-6",numberIcon:"size-6 text-sm",icon:"size-6",label:"text-sm"},lg:{dot:"size-3.5",ring:"size-7",numberIcon:"size-7 text-md",icon:"size-7",label:"text-sm"}},fF=({variant:e="dot",size:t="sm",type:n="inline",currentStep:r=1,children:o,className:i,lineClassName:a="min-w-10",completedVariant:l="icon",completedIcon:c=(0,Ee.jsx)(mn,{}),...u})=>{const f=s.Children.count(o);-1===r&&(r=f+1);const d=s.Children.map(o,((o,i)=>{const u={isCompleted:i+1<r,isCurrent:i+1===r,sizeClasses:uF,size:t,variant:e,type:n,isLast:i+1===f,index:i,lineClassName:a,completedVariant:l,completedIcon:c};return(0,Ee.jsx)(s.Fragment,{children:s.isValidElement(o)?s.cloneElement(o,u):o},i)}));return(0,Ee.jsx)("div",{className:xt("flex w-full",i,"inline"===n?"items-center justify-between":""),...u,children:d})},dF=({labelText:e="",icon:t=(0,Ee.jsx)(lF,{}),isCurrent:n,isCompleted:r,className:o,type:i,variant:a,sizeClasses:s,size:l,isLast:c,index:u,lineClassName:f,completedVariant:d="icon",completedIcon:p=(0,Ee.jsx)(mn,{}),...h})=>{const m=pF(a,r,n,s,l,t,u,d,p),y={lg:"left-[calc(50%+14px)] right-[calc(-50%+14px)]",md:"left-[calc(50%+12px)] right-[calc(-50%+12px)]",sm:"left-[calc(50%+10px)] right-[calc(-50%+10px)]"},g={lg:"top-3.5",md:"top-3",sm:"top-2.5"},v=()=>{if(e){const t=xt(s[l].label,"text-text-tertiary",n?"text-brand-primary-600":"","break-word","stack"===i?"mt-2 transform max-w-xs":"mx-2 max-w-32");return(0,Ee.jsx)("span",{className:t,children:e})}return null},b=()=>{if(!c){const t=xt("block",r?"border-brand-primary-600":"border-border-subtle",f);return"stack"===i?(0,Ee.jsx)("div",{className:xt("relative","flex","border-solid","border-y","absolute",r?"border-brand-primary-600":"border-border-subtle",g[l],y[l]),children:(0,Ee.jsx)("span",{className:"block"})}):(0,Ee.jsx)("div",{className:"flex-1",children:(0,Ee.jsx)("span",{className:xt("mr-2 border-y border-solid",!e&&"ml-2",t)})})}return null};return"stack"===i?(0,Ee.jsxs)("div",{className:"relative flex-1 justify-center",children:[(0,Ee.jsxs)("div",{className:xt("flex items-center flex-col",o),...h,children:[m,v()]}),b()]}):(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsxs)("div",{className:xt("flex items-center",o),...h,children:[m,v()]}),b()]})};dF.displayName="ProgressSteps.Step";const pF=(e,t,n,r,o,i,a,s="icon",l=(0,Ee.jsx)(mn,{}))=>{if(t)return"number"===s?(0,Ee.jsx)("span",{className:xt(cF(r,o),"flex items-center justify-center bg-brand-primary-600 text-text-on-color rounded-full"),children:a+1}):(0,Ee.jsx)("span",{className:cF(r,o),children:l});const c=((e,t,n)=>xt("relative flex items-center rounded-full justify-center transition-colors z-10 duration-500 ring-1",e?"ring-brand-primary-600":"ring-border-subtle",t[n].ring))(!!n,r,o),u=((e,t,n,r)=>{const o=`absolute rounded-full transition-colors duration-500 ${n[r].dot}`;return"dot"===e?xt(o,n[r].dot,t?"bg-brand-primary-600":"bg-text-tertiary"):"number"===e?xt(o,n[r].dot,t?"text-brand-primary-600":"text-text-tertiary","flex items-center justify-center"):"icon"===e?xt(o,t?"text-brand-primary-600":"text-text-tertiary","flex items-center justify-center"):""})(e,n,r,o);let f=null;return"number"===e?f=a+1:"icon"===e&&i&&(f=i),(0,Ee.jsx)("span",{className:c,children:(0,Ee.jsx)("span",{className:u,children:f})})};fF.Step=dF;const hF=[{url:"/onboarding/welcome",index:!0},{url:"/onboarding/connect"},{url:"/onboarding/email-delivery"},{url:"/onboarding/premium-features"},{url:"/onboarding/import-forms"},{url:"/onboarding/cache-conflict"},{url:"/onboarding/user-details"},{url:"/onboarding/done"}];function mF(e){return mF="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},mF(e)}var yF;function gF(e){return function(e){if(Array.isArray(e))return bF(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vF(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vF(e,t){if(e){if("string"==typeof e)return bF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bF(e,t):void 0}}function bF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wF(Object(n),!0).forEach((function(t){MF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MF(e,t,n){return(t=function(e){var t=function(e){if("object"!=mF(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mF(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jF=(null===(yF=srfm_admin)||void 0===yF?void 0:yF.website_lead_details)||{},EF=["srfm_suremail_installation_started"],OF={emailDeliveryConfigured:!1,userDetails:{firstName:jF.first_name||"",lastName:jF.last_name||"",email:jF.email||"",consent:!0},migrationSources:[],migrationDetectionLoaded:!1,analytics:{onboardingV2:!0,skippedSteps:[],premiumFeatures:{viewedTabs:[],upgradeClicked:null},suremailInstalled:!1,accountConnected:!1,cacheConflictAcknowledged:null,completed:!1,exitedEarly:!1,migrationSourceKey:null,migrationResult:null}},kF="SET_EMAIL_DELIVERY_CONFIGURED",SF="MARK_STEP_SKIPPED",NF="UNMARK_STEP_SKIPPED",TF="SET_SUREMAIL_INSTALLED",AF="MARK_PREMIUM_TAB_VIEWED",DF="SET_PREMIUM_UPGRADE_CLICKED",CF="SET_CACHE_CONFLICT_ACKNOWLEDGED",IF="SET_ACCOUNT_CONNECTED",PF="SET_USER_DETAILS",_F="SET_COMPLETED",RF="SET_EXITED_EARLY",zF="SET_MIGRATION_SOURCES",LF="SET_MIGRATION_RESULT",UF="RESET_STATE",FF=function(e,t){var n,r,o,i;switch(t.type){case kF:return xF(xF({},e),{},{emailDeliveryConfigured:t.payload});case SF:return e.analytics.skippedSteps.includes(t.payload)?e:xF(xF({},e),{},{analytics:xF(xF({},e.analytics),{},{skippedSteps:[].concat(gF(e.analytics.skippedSteps),[t.payload])})});case NF:return xF(xF({},e),{},{analytics:xF(xF({},e.analytics),{},{skippedSteps:e.analytics.skippedSteps.filter((function(e){return e!==t.payload}))})});case TF:return xF(xF({},e),{},{analytics:xF(xF({},e.analytics),{},{suremailInstalled:t.payload,skippedSteps:t.payload?e.analytics.skippedSteps.filter((function(e){return"emailDelivery"!==e})):e.analytics.skippedSteps})});case AF:return e.analytics.premiumFeatures.viewedTabs.includes(t.payload)?e:xF(xF({},e),{},{analytics:xF(xF({},e.analytics),{},{premiumFeatures:xF(xF({},e.analytics.premiumFeatures),{},{viewedTabs:[].concat(gF(e.analytics.premiumFeatures.viewedTabs),[t.payload])})})});case DF:return xF(xF({},e),{},{analytics:xF(xF({},e.analytics),{},{premiumFeatures:xF(xF({},e.analytics.premiumFeatures),{},{upgradeClicked:t.payload})})});case CF:return xF(xF({},e),{},{analytics:xF(xF({},e.analytics),{},{cacheConflictAcknowledged:t.payload})});case IF:return xF(xF({},e),{},{analytics:xF(xF({},e.analytics),{},{accountConnected:t.payload})});case PF:return xF(xF({},e),{},{userDetails:xF(xF({},e.userDetails),t.payload)});case _F:return xF(xF({},e),{},{analytics:xF(xF({},e.analytics),{},{completed:t.payload,exitedEarly:!1})});case RF:return xF(xF({},e),{},{analytics:xF(xF({},e.analytics),{},{exitedEarly:t.payload,completed:!1})});case zF:return xF(xF({},e),{},{migrationSources:Array.isArray(t.payload)?t.payload:[],migrationDetectionLoaded:!0});case LF:return xF(xF({},e),{},{analytics:xF(xF({},e.analytics),{},{migrationSourceKey:null!==(n=null===(r=t.payload)||void 0===r?void 0:r.sourceKey)&&void 0!==n?n:null,migrationResult:null!==(o=null===(i=t.payload)||void 0===i?void 0:i.result)&&void 0!==o?o:null})});case UF:return OF;default:return e}},BF=function(){EF.forEach((function(e){try{localStorage.removeItem(e)}catch(t){console.error("Error clearing localStorage key ".concat(e,":"),t)}}))},VF=(0,i.createContext)(),YF=function(e){var t=e.children,n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||vF(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,i.useReducer)(FF,OF),2),r=n[0],o=n[1],a={setEmailDeliveryConfigured:function(e){return o({type:kF,payload:e})},markStepSkipped:function(e){return o({type:SF,payload:e})},unmarkStepSkipped:function(e){return o({type:NF,payload:e})},setSuremailInstalled:function(e){return o({type:TF,payload:e})},markPremiumTabViewed:function(e){return o({type:AF,payload:e})},setPremiumUpgradeClicked:function(e){return o({type:DF,payload:e})},setCacheConflictAcknowledged:function(e){return o({type:CF,payload:e})},setAccountConnected:function(e){return o({type:IF,payload:e})},setUserDetails:function(e){return o({type:PF,payload:e})},setCompleted:function(e){return o({type:_F,payload:e})},setExitedEarly:function(e){return o({type:RF,payload:e})},setMigrationSources:function(e){return o({type:zF,payload:e})},setMigrationResult:function(e,t){return o({type:LF,payload:{sourceKey:e,result:t}})},resetState:function(){return o({type:UF})},clearStorage:BF};return React.createElement(VF.Provider,{value:[r,a]},t)},WF=function(){var e=(0,i.useContext)(VF);if(!e)throw new Error("useOnboardingState must be used within OnboardingProvider");return e};function HF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var GF=function(){var e=te(),t=J(),n=t.pathname,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return HF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?HF(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(WF(),1)[0],o=function(){var e,t;return"non-registered"!==(null===(e=srfm_admin)||void 0===e||null===(e=e.srfm_ai_details)||void 0===e?void 0:e.type)||(null==r||null===(t=r.analytics)||void 0===t?void 0:t.accountConnected)},a=function(){var e=o();return hF.filter((function(t){var n,o;if("/onboarding/connect"===t.url&&e)return!1;if("/onboarding/premium-features"===t.url&&null!==(n=srfm_admin)&&void 0!==n&&n.is_pro_active)return!1;if("/onboarding/user-details"===t.url&&e)return!1;if("/onboarding/cache-conflict"===t.url&&(null===(o=srfm_admin)||void 0===o||!o.caching_plugin))return!1;if("/onboarding/import-forms"===t.url&&(null==r?void 0:r.migrationDetectionLoaded)){var i=((null==r?void 0:r.migrationSources)||[]).some((function(e){var t,n,r;return!(null==e||!e.installed)&&Number(null!==(t=null==e?void 0:e.pending_count)&&void 0!==t?t:Number(null!==(n=null==e?void 0:e.form_count)&&void 0!==n?n:0)-Number(null!==(r=null==e?void 0:e.imported_count)&&void 0!==r?r:0))>0}));if(!i)return!1}return!0}))},s=function(e,t){return t.findIndex((function(t){return t.url===e}))},l=function(e,t){var n,r=a(),o=s(e,hF);if(-1===o)return(null===(n=r[0])||void 0===n?void 0:n.url)||"/onboarding/welcome";for(var i,l="next"===t?1:-1,c=function(){var e,t=null===(e=hF[u])||void 0===e?void 0:e.url;if(r.some((function(e){return e.url===t})))return{v:t}},u=o+l;u>=0&&u<hF.length;u+=l)if(i=c())return i.v;var f="next"===t?r[r.length-1]:r[0];return(null==f?void 0:f.url)||"/onboarding/welcome"},c=function(e){var t,n,r=a(),o=s(e,r);return-1!==o?(null===(t=r[o+1])||void 0===t?void 0:t.url)||(null===(n=r[o])||void 0===n?void 0:n.url)||"/onboarding/welcome":l(e,"next")},u=function(e){var t,n,r=a(),o=s(e,r);return-1!==o?(null===(t=r[o-1])||void 0===t?void 0:t.url)||(null===(n=r[o])||void 0===n?void 0:n.url)||"/onboarding/welcome":l(e,"previous")},f=(0,i.useCallback)((function(){var e=a(),t=s(n,e);if(-1===t)return l(n,"next");if(s(n,hF)<=0)return"";for(var o=0;o<=t;o++){var i,c,u=e[o];if(null!=u&&null!==(i=u.requires)&&void 0!==i&&i.stateKeys&&0!==(null==u||null===(c=u.requires)||void 0===c||null===(c=c.stateKeys)||void 0===c?void 0:c.length)&&u.requires.stateKeys.find((function(e){return!r[e]})))return u.requires.redirectUrl}return""}),[t.pathname,r]);return{getVisibleRoutes:a,getNextRoute:c,getPreviousRoute:u,navigateToNextRoute:function(){var t=c(n);e(t)},navigateToPreviousRoute:function(){var t=u(n);e(t)},getCurrentStepNumber:function(){var e=a(),t=s(n,e);if(-1===t)return 1;var r=Math.max(e.length-1,1);return Math.min(t+1,r)},checkRequiredStep:f,isUserConnected:o}};const QF={logo:React.createElement("svg",{width:"144",height:"24",viewBox:"0 0 144 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{clipPath:"url(#clip0_15961_16932)"},React.createElement("rect",{width:"24",height:"24",fill:"#D54407"}),React.createElement("path",{d:"M6.85742 5.14258H17.1431V8.57115H8.57171L6.85742 10.2854V8.57115V5.14258Z",fill:"white"}),React.createElement("path",{d:"M6.85742 5.14258H17.1431V8.57115H8.57171L6.85742 10.2854V8.57115V5.14258Z",fill:"white"}),React.createElement("path",{d:"M6.85742 10.2852H15.4288V13.7137H8.57171L6.85742 15.428V13.7137V10.2852Z",fill:"white"}),React.createElement("path",{d:"M6.85742 10.2852H15.4288V13.7137H8.57171L6.85742 15.428V13.7137V10.2852Z",fill:"white"}),React.createElement("path",{d:"M6.85742 15.4287H12.0003V18.8573H6.85742V15.4287Z",fill:"white"}),React.createElement("path",{d:"M6.85742 15.4287H12.0003V18.8573H6.85742V15.4287Z",fill:"white"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 16.6032L32.9925 15.1445C33.448 15.6702 34.0539 16.1125 34.8101 16.4717C35.5664 16.8309 36.3613 17.0105 37.1949 17.0105C38.1488 17.0105 38.8922 16.8046 39.4249 16.3928C39.9664 15.9811 40.2371 15.4424 40.2371 14.7766C40.2371 14.3561 40.091 14.0013 39.7988 13.7122C39.5066 13.4231 39.1285 13.1997 38.6644 13.042C38.2003 12.8844 37.689 12.7398 37.1305 12.6084C36.5718 12.477 36.009 12.3237 35.4418 12.1485C34.8832 11.9733 34.3719 11.7586 33.9078 11.5046C33.4437 11.2505 33.0656 10.8913 32.7734 10.4271C32.4812 9.95398 32.3352 9.39335 32.3352 8.74508C32.3352 7.67627 32.7562 6.78712 33.5984 6.07753C34.4406 5.35917 35.5965 5 37.066 5C39.0082 5 40.5808 5.63075 41.7839 6.89224L40.8687 8.28518C40.4734 7.79455 39.9406 7.40035 39.2703 7.10249C38.6085 6.79588 37.8738 6.64257 37.066 6.64257C36.2152 6.64257 35.532 6.83968 35.0164 7.2339C34.5008 7.61936 34.2429 8.10552 34.2429 8.69249C34.2429 9.06922 34.389 9.38896 34.6813 9.65179C34.9734 9.90585 35.3472 10.1073 35.8027 10.2562C36.2668 10.3964 36.7781 10.5322 37.3367 10.6636C37.9039 10.7862 38.4667 10.9396 39.0253 11.1235C39.5925 11.3075 40.1038 11.5352 40.5593 11.8068C41.0234 12.0696 41.4015 12.4507 41.6937 12.95C41.9859 13.4494 42.132 14.0407 42.132 14.724C42.132 15.8629 41.6937 16.8046 40.8171 17.5492C39.9492 18.2851 38.7246 18.6531 37.1433 18.6531C35.0035 18.6531 33.2891 17.9698 32 16.6032ZM44.2986 14.5006V5.32852H46.2709V13.883C46.2709 14.9693 46.5158 15.7359 47.0057 16.1826C47.4955 16.6206 48.2088 16.8397 49.1455 16.8397C49.8845 16.8397 50.5978 16.6513 51.2853 16.2746C51.9728 15.8979 52.5099 15.4336 52.8966 14.8817V5.32852H54.8818V18.3246H52.8966V16.498C52.3638 17.1113 51.6978 17.6237 50.8986 18.0355C50.0993 18.4472 49.2529 18.6531 48.3591 18.6531C45.6521 18.6531 44.2986 17.2689 44.2986 14.5006ZM57.7831 18.3246H59.7554V9.12613C60.0476 8.59176 60.5503 8.1143 61.2636 7.69382C61.9769 7.26456 62.6386 7.04993 63.2488 7.04993C63.4464 7.04993 63.7 7.06745 64.0093 7.10249V5.02628C63.1843 5.02628 62.4066 5.24529 61.6761 5.68331C60.9456 6.11257 60.3054 6.68637 59.7554 7.40473V5.32852H57.7831V18.3246ZM64.6935 11.8068C64.6935 10.5628 64.9599 9.424 65.4927 8.3903C66.0342 7.34778 66.7861 6.52431 67.7486 5.91984C68.7111 5.30661 69.7896 5 70.9841 5C72.2388 5 73.3345 5.311 74.2712 5.93298C75.2077 6.55497 75.9127 7.39158 76.3855 8.44282C76.8663 9.4853 77.1071 10.6636 77.1071 11.9776V12.4901H66.8076C66.8849 13.7691 67.3318 14.8379 68.1482 15.6964C68.9732 16.5549 70.0474 16.9842 71.3708 16.9842C72.1185 16.9842 72.8361 16.8397 73.5236 16.5506C74.2196 16.2615 74.8255 15.8498 75.3413 15.3153L76.2821 16.6294C74.9329 17.9785 73.2443 18.6531 71.2161 18.6531C69.3083 18.6531 67.7443 18.0179 66.524 16.7477C65.3036 15.4774 64.6935 13.8305 64.6935 11.8068ZM66.7818 10.979H75.148C75.1394 10.4796 75.0488 9.98463 74.8771 9.49408C74.7138 9.00353 74.4689 8.54355 74.1423 8.1143C73.8158 7.68505 73.3774 7.33902 72.8275 7.07621C72.2775 6.80464 71.6544 6.66885 70.9583 6.66885C70.3052 6.66885 69.7123 6.80026 69.1795 7.06307C68.6466 7.32588 68.2126 7.67195 67.8775 8.1012C67.5509 8.52168 67.2931 8.98158 67.104 9.48091C66.915 9.97154 66.8076 10.4709 66.7818 10.979Z",fill:"#030712"}),React.createElement("path",{d:"M81.8791 18.7626H79.1199V5.56776H88.2914V8.04056H81.8791V10.8101H88.1554V13.2829H81.8791V18.7626Z",fill:"#030712"}),React.createElement("path",{d:"M96.3803 19C92.4553 19 89.5989 16.1513 89.5989 12.1751C89.5989 8.19882 92.4553 5.35016 96.3803 5.35016C100.286 5.35016 103.142 8.19882 103.142 12.1751C103.142 16.1513 100.286 19 96.3803 19ZM96.3803 16.5074C98.7704 16.5074 100.305 14.6281 100.305 12.1751C100.305 9.70228 98.7704 7.84274 96.3803 7.84274C93.9709 7.84274 92.4358 9.70228 92.4358 12.1751C92.4358 14.6281 93.9709 16.5074 96.3803 16.5074Z",fill:"#030712"}),React.createElement("path",{d:"M115.591 18.7626H112.404L109.859 14.0742H107.838V18.7626H105.079V5.56776H111.141C113.842 5.56776 115.513 7.36796 115.513 9.82098C115.513 12.1355 114.056 13.4016 112.657 13.7379L115.591 18.7626ZM110.753 11.6014C111.841 11.6014 112.676 10.9288 112.676 9.80119C112.676 8.71316 111.841 8.04056 110.753 8.04056H107.838V11.6014H110.753Z",fill:"#030712"}),React.createElement("path",{d:"M131.613 18.7626H128.835V9.24729L125.182 18.7626H123.977L120.324 9.24729V18.7626H117.565V5.56776H121.431L124.579 13.817L127.727 5.56776H131.613V18.7626Z",fill:"#030712"}),React.createElement("path",{d:"M138.812 19C136.305 19 134.518 18.1494 133.293 16.9031L134.809 14.7072C135.722 15.6766 137.141 16.5074 138.928 16.5074C140.464 16.5074 141.183 15.815 141.183 15.0435C141.183 12.7488 133.721 14.3511 133.721 9.38576C133.721 7.18992 135.586 5.36994 138.637 5.36994C140.697 5.36994 142.407 6.00298 143.689 7.2097L142.154 9.30664C141.105 8.31752 139.706 7.86252 138.384 7.86252C137.219 7.86252 136.558 8.37686 136.558 9.16816C136.558 11.2453 144 9.84076 144 14.7666C144 17.18 142.29 19 138.812 19Z",fill:"#030712"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_15961_16932"},React.createElement("rect",{width:"144",height:"24",fill:"white"})))),close:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},React.createElement("path",{d:"M6 18L18 6M6 6L18 18",stroke:"#475569",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),template:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none"},React.createElement("path",{d:"M12 13.7561V12C12 9.51472 14.0147 7.5 16.5 7.5H31.5C33.9853 7.5 36 9.51472 36 12V13.7561M12 13.7561C12.4692 13.5902 12.974 13.5 13.5 13.5H34.5C35.026 13.5 35.5308 13.5902 36 13.7561M12 13.7561C10.2522 14.3738 9 16.0407 9 18V19.7561M36 13.7561C37.7478 14.3738 39 16.0407 39 18V19.7561M39 19.7561C38.5308 19.5902 38.026 19.5 37.5 19.5H10.5C9.97405 19.5 9.46917 19.5902 9 19.7561M39 19.7561C40.7478 20.3738 42 22.0407 42 24V36C42 38.4853 39.9853 40.5 37.5 40.5H10.5C8.01472 40.5 6 38.4853 6 36V24C6 22.0407 7.25221 20.3738 9 19.7561",stroke:"url(#paint0_linear_4036_26187)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"paint0_linear_4036_26187",x1:"24",y1:"7.5",x2:"24",y2:"40.5",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#A8CC18"}),React.createElement("stop",{offset:"1",stopColor:"#139969"})))),plus:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",className:"srfm-ts-preview-blank-form"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 6.25C20.6904 6.25 21.25 6.80964 21.25 7.5V18.75H32.5C33.1904 18.75 33.75 19.3096 33.75 20C33.75 20.6904 33.1904 21.25 32.5 21.25H21.25V32.5C21.25 33.1904 20.6904 33.75 20 33.75C19.3096 33.75 18.75 33.1904 18.75 32.5V21.25H7.5C6.80964 21.25 6.25 20.6904 6.25 20C6.25 19.3096 6.80964 18.75 7.5 18.75H18.75V7.5C18.75 6.80964 19.3096 6.25 20 6.25Z",fill:"#555D66"})),eye:React.createElement("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M4.04472 11.8528L3.97078 12.0503L4.06071 12.2412C4.81322 13.8378 6.01061 15.1834 7.50911 16.1162C9.00523 17.0476 10.738 17.528 12.5 17.5001C14.262 17.528 15.9948 17.0476 17.4909 16.1162C18.9894 15.1834 20.1868 13.8378 20.9393 12.2412L21.0292 12.0503L20.9553 11.8528C20.8333 11.5267 20.5079 11.0373 20.0674 10.5119C19.6142 9.97137 19.0026 9.34967 18.2654 8.75984C16.7988 7.58644 14.7848 6.5 12.5 6.5C10.2152 6.5 8.20118 7.58644 6.73463 8.75984C5.99743 9.34967 5.38585 9.97137 4.93262 10.5119C4.49207 11.0373 4.16673 11.5267 4.04472 11.8528ZM12.5 15.5C11.8078 15.5 11.1311 15.2947 10.5555 14.9101C9.97993 14.5256 9.53133 13.9789 9.26642 13.3394C9.00151 12.6999 8.9322 11.9961 9.06725 11.3172C9.2023 10.6383 9.53564 10.0146 10.0251 9.52513C10.5146 9.03564 11.1383 8.7023 11.8172 8.56725C12.4961 8.4322 13.1999 8.50151 13.8394 8.76642C14.4789 9.03133 15.0256 9.47993 15.4101 10.0555C15.7947 10.6311 16 11.3078 16 12C16 12.9283 15.6313 13.8185 14.9749 14.4749C14.3185 15.1313 13.4283 15.5 12.5 15.5ZM12.5 9.5C12.0055 9.5 11.5222 9.64662 11.1111 9.92133C10.7 10.196 10.3795 10.5865 10.1903 11.0433C10.0011 11.5001 9.95157 12.0028 10.048 12.4877C10.1445 12.9727 10.3826 13.4181 10.7322 13.7678C11.0819 14.1174 11.5273 14.3555 12.0123 14.452C12.4972 14.5484 12.9999 14.4989 13.4567 14.3097C13.9135 14.1205 14.304 13.8 14.5787 13.3889C14.8534 12.9778 15 12.4945 15 12C15 11.337 14.7366 10.7011 14.2678 10.2322C13.7989 9.76339 13.163 9.5 12.5 9.5ZM12.5 18.5C9.4172 18.5 7.03273 17.2462 5.41524 15.7825C4.60531 15.0496 3.99296 14.2684 3.58607 13.5755C3.16858 12.8645 3 12.3025 3 12C3 11.8937 3.04086 11.7031 3.16504 11.4258C3.28537 11.157 3.46876 10.8402 3.71375 10.4919C4.20345 9.79588 4.91842 9.00404 5.80204 8.25805C7.57719 6.75941 9.96653 5.5 12.5 5.5C15.0335 5.5 17.4228 6.75941 19.198 8.25805C20.0816 9.00404 20.7965 9.79588 21.2862 10.4919C21.5312 10.8402 21.7146 11.157 21.835 11.4258C21.9591 11.7031 22 11.8937 22 12C22 12.3025 21.8314 12.8645 21.4139 13.5755C21.007 14.2684 20.3947 15.0496 19.5848 15.7825C17.9673 17.2462 15.5828 18.5 12.5 18.5Z",fill:"#1F2A37",stroke:"#046BD2"})),message:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},React.createElement("path",{d:"M5.75 6.5C5.75 6.63807 5.63807 6.75 5.5 6.75C5.36193 6.75 5.25 6.63807 5.25 6.5C5.25 6.36193 5.36193 6.25 5.5 6.25C5.63807 6.25 5.75 6.36193 5.75 6.5ZM5.75 6.5H5.5M8.25 6.5C8.25 6.63807 8.13807 6.75 8 6.75C7.86193 6.75 7.75 6.63807 7.75 6.5C7.75 6.36193 7.86193 6.25 8 6.25C8.13807 6.25 8.25 6.36193 8.25 6.5ZM8.25 6.5H8M10.75 6.5C10.75 6.63807 10.6381 6.75 10.5 6.75C10.3619 6.75 10.25 6.63807 10.25 6.5C10.25 6.36193 10.3619 6.25 10.5 6.25C10.6381 6.25 10.75 6.36193 10.75 6.5ZM10.75 6.5H10.5M1.5 8.50623C1.5 9.57362 2.24894 10.5027 3.30497 10.658C4.02905 10.7644 4.761 10.8467 5.5 10.9038V14L8.28899 11.211C8.42681 11.0732 8.61289 10.9948 8.80774 10.99C10.1248 10.9574 11.4221 10.8452 12.695 10.6581C13.751 10.5028 14.5 9.5737 14.5 8.5063V4.4937C14.5 3.42631 13.751 2.49722 12.695 2.34196C11.1627 2.11668 9.59507 2 8.00019 2C6.40517 2 4.83741 2.1167 3.30498 2.34202C2.24894 2.49729 1.5 3.42637 1.5 4.49376V8.50623Z",stroke:"#94A3B8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),back:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 10C17 10.4142 16.6642 10.75 16.25 10.75L5.61208 10.75L9.76983 14.7094C10.0684 14.9965 10.0777 15.4713 9.79062 15.7698C9.50353 16.0684 9.02875 16.0777 8.73017 15.7906L3.23017 10.5406C3.08311 10.3992 3 10.204 3 10C3 9.79599 3.08311 9.60078 3.23017 9.45938L8.73017 4.20938C9.02875 3.92228 9.50353 3.93159 9.79062 4.23017C10.0777 4.52875 10.0684 5.00353 9.76983 5.29063L5.61208 9.25L16.25 9.25C16.6642 9.25 17 9.58579 17 10Z",fill:"#475569"})),breadcrumb:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},React.createElement("path",{d:"M5.4375 10.2734L8.70703 7.0039L5.4375 3.73438",stroke:"#4B5563",strokeWidth:"1.08984",strokeLinecap:"round",strokeLinejoin:"round"})),warning:React.createElement("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M10.9983 7.9975V11.7475M1.69506 15.1231C0.829677 16.6231 1.91225 18.4975 3.64398 18.4975H18.3526C20.0844 18.4975 21.1669 16.6231 20.3016 15.1231L12.9472 2.37562C12.0814 0.874792 9.91525 0.874792 9.04939 2.37562L1.69506 15.1231ZM10.9983 14.7475H11.0058V14.755H10.9983V14.7475Z",stroke:"#EF4444",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),filePlus:React.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M26 19V15.5C26 13.0147 23.9853 11 21.5 11H19.5C18.6716 11 18 10.3284 18 9.5V7.5C18 5.01472 15.9853 3 13.5 3H11M16 15V23M20 19H12M14 3H7.5C6.67157 3 6 3.67157 6 4.5V27.5C6 28.3284 6.67157 29 7.5 29H24.5C25.3284 29 26 28.3284 26 27.5V15C26 8.37258 20.6274 3 14 3Z",stroke:"url(#paint0_linear_13850_36637)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"paint0_linear_13850_36637",x1:"16",y1:"3",x2:"16",y2:"29",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#18C1CC"}),React.createElement("stop",{offset:"1",stopColor:"#135A99"})))),wandSparkles:React.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M17 5L21 9M5 25L25 5L21 1L1 21L5 25ZM9 1C9 1.70724 9.28095 2.38552 9.78105 2.88562C10.2811 3.38572 10.9594 3.66667 11.6667 3.66667C10.9594 3.66667 10.2811 3.94762 9.78105 4.44772C9.28095 4.94781 9 5.62609 9 6.33333C9 5.62609 8.71905 4.94781 8.21895 4.44772C7.71885 3.94762 7.04058 3.66667 6.33333 3.66667C7.04058 3.66667 7.71885 3.38572 8.21895 2.88562C8.71905 2.38552 9 1.70724 9 1ZM22.3333 14.3333C22.3333 15.0406 22.6143 15.7189 23.1144 16.219C23.6145 16.719 24.2928 17 25 17C24.2928 17 23.6145 17.281 23.1144 17.781C22.6143 18.2811 22.3333 18.9594 22.3333 19.6667C22.3333 18.9594 22.0524 18.2811 21.5523 17.781C21.0522 17.281 20.3739 17 19.6667 17C20.3739 17 21.0522 16.719 21.5523 16.219C22.0524 15.7189 22.3333 15.0406 22.3333 14.3333Z",stroke:"url(#paint0_linear_13850_36650)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"paint0_linear_13850_36650",x1:"13",y1:"1",x2:"13",y2:"25",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#F437ED"}),React.createElement("stop",{offset:"1",stopColor:"#5E1399"}))))};var $F="/sureforms/v1/migrator",qF=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"draft",i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return du()({path:"".concat($F,"/sources/").concat(encodeURIComponent(e),"/import"),method:"POST",data:{form_ids:t,dry_run:n,behavior:r,post_status:o,skip_existing:i}})};function ZF(e){return ZF="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},ZF(e)}function XF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XF(Object(n),!0).forEach((function(t){JF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JF(e,t,n){return(t=function(e){var t=function(e){if("object"!=ZF(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ZF(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ZF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tB(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var nB=function(){var e=GF(),t=e.getCurrentStepNumber,n=e.getVisibleRoutes,r=J().pathname,o=eB(WF(),2),a=o[0],s=o[1],l=eB((0,i.useState)(!1),2),c=l[0],u=l[1],f=Math.max(n().length-1,1),d="/onboarding/done"!==r;return React.createElement(oh,{className:"p-5 bg-background-secondary"},React.createElement(oh.Left,null,React.createElement(oh.Item,null,QF.logo)),React.createElement(oh.Middle,{align:"center"},d&&React.createElement(oh.Item,{className:"md:block hidden"},React.createElement(fF,{completedVariant:"number",currentStep:t(),size:"md",type:"inline",variant:"number",lineClassName:"w-[128px]"},Array.from({length:f},(function(e,t){return React.createElement(fF.Step,{key:t,size:"md"})}))))),React.createElement(oh.Right,null,React.createElement(oh.Item,null,React.createElement(Qt,{className:"no-underline",onClick:function(){var e,t;c||(u(!0),s.setExitedEarly(!0),s.clearStorage(),du()({url:null===(e=srfm_admin)||void 0===e?void 0:e.ajax_url,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:new URLSearchParams({action:"sureforms_dismiss_pointer",pointer_nonce:null===(t=srfm_admin)||void 0===t?void 0:t.pointer_nonce}).toString()}),setTimeout((function(){du()({path:"/sureforms/v1/onboarding/set-status",method:"POST",data:{completed:"yes",analyticsData:KF(KF({},a.analytics),{},{exitedEarly:!0,completed:!1})}}).then((function(){window.location.href=srfm_admin.sureforms_dashboard_url}))}),100))},icon:React.createElement(en,null),size:"xs",variant:"ghost",iconPosition:"right",disabled:c},(0,je.__)("Exit Guided Setup","sureforms")))))},rB=function(){var e=J(),t=te(),n=GF().checkRequiredStep;return(0,i.useLayoutEffect)((function(){var e=n();e&&t(e,{replace:!0})}),[e.pathname,n,t]),null},oB=function(){var e=J(),t=eB(WF(),2)[1];return(0,i.useEffect)((function(){return document.body.classList.add("sureforms-onboarding-page"),function(){document.body.classList.remove("sureforms-onboarding-page")}}),[]),(0,i.useEffect)((function(){var e=!1;return du()({path:"".concat($F,"/sources")}).then((function(n){if(!e){var r=Array.isArray(null==n?void 0:n.sources)?n.sources:[];t.setMigrationSources(r)}})).catch((function(){e||t.setMigrationSources([])})),function(){e=!0}}),[]),(0,i.useEffect)((function(){"/onboarding/done"===e.pathname&&t.clearStorage()}),[e.pathname,t]),React.createElement("div",{className:"bg-background-secondary h-full space-y-7 pb-10"},React.createElement(nB,null),React.createElement("div",{className:"p-7 w-full h-full"},React.createElement("div",{className:"w-full h-full max-w-2xl border-0.5 border-solid border-border-subtle bg-background-primary shadow-sm rounded-xl mx-auto p-6"},React.createElement(pe,null))))};const iB=function(){return(0,i.useEffect)((function(){return function(){BF()}}),[]),React.createElement(YF,null,React.createElement(rB,null),React.createElement(oB,null))},aB={400:"font-normal",500:"font-medium",600:"font-semibold",700:"font-bold"},sB={36:"text-4xl",30:"text-3xl",24:"text-2xl",20:"text-xl",18:"text-lg",16:"text-base",14:"text-sm",12:"text-xs"},lB={44:"leading-11",38:"leading-9.5",32:"leading-8",30:"leading-7.5",28:"leading-7",24:"leading-6",20:"leading-5",16:"leading-4"},cB={2:"tracking-2"},uB={brand600:"text-brand-primary-600",link:"text-link-primary",primary:"text-text-primary",secondary:"text-text-secondary",tertiary:"text-text-tertiary",disabled:"text-text-disabled",help:"text-field-helper",label:"text-field-label",info:"text-support-info",success:"text-support-success",warning:"text-support-warning",error:"text-support-error",inverse:"text-text-on-color"},fB=(0,s.forwardRef)((function({as:e,children:t,weight:n,size:r,lineHeight:o,letterSpacing:i,color:a="primary",className:s,...l},c){return(0,Ee.jsx)(e||"p",{ref:c,className:xt("m-0 p-0",n?aB[n]:"",r?sB[r]:"",o?lB[o]:"",i?cB[i]:"",a?uB[a]:"",s),...l,children:t})})),dB=function(e){var t=e.title,n=e.description,r=e.tag,o=void 0===r?"h3":r,i=e.align,a=void 0===i?"left":i,s=e.className;return React.createElement("div",{className:ip("space-y-2","center"===a&&"text-center",s)},"h2"===o?React.createElement(fB,{as:"h2",size:30,lineHeight:38,weight:600,color:"primary"},t):React.createElement(Ht,{tag:"h3",title:t,size:"lg"}),n&&React.createElement(fB,{as:"p",size:14,color:"secondary"},n))},pB=function(e){var t=e.className;return React.createElement("hr",{className:ip("w-full border-t border-b-0 border-x-0 border-solid border-border-subtle",t)})},hB=function(e){var t=e.heading,n=e.items,r=void 0===n?[]:n,o=e.icon,i=void 0===o?Vv:o,a=e.inline,s=void 0!==a&&a,l=e.size,c=void 0===l?14:l,u=e.className;return React.createElement("div",{className:ip("space-y-2",u)},t&&React.createElement(fB,{size:14,weight:500,color:"primary"},t),React.createElement("ul",{className:ip("m-0 p-0 list-none",s?"flex flex-wrap items-center justify-center gap-x-6 gap-y-2":"space-y-1.5")},r.map((function(e,t){return React.createElement("li",{key:t,className:"m-0 flex items-center gap-1.5"},React.createElement(i,{className:"size-4 shrink-0 text-icon-interactive"}),React.createElement(fB,{size:c,weight:400,color:"label"},e))}))))};function mB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yB(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const gB=function(e){var t=e.slides,n=void 0===t?[]:t,r=mB((0,i.useState)(0),2),o=r[0],a=r[1],s=mB((0,i.useState)(!1),2),l=s[0],c=s[1],u=n.length;(0,i.useEffect)((function(){var e,t,n=null===(e=(t=window).matchMedia)||void 0===e||null===(e=e.call(t,"(prefers-reduced-motion: reduce)"))||void 0===e?void 0:e.matches;if(!(l||n||u<2)){var r=setInterval((function(){return a((function(e){return(e+1)%u}))}),2e3);return function(){return clearInterval(r)}}}),[l,u]);var f=n[o];return f?React.createElement("div",{className:"space-y-3",onMouseEnter:function(){return c(!0)},onMouseLeave:function(){return c(!1)}},React.createElement("div",{className:"grid justify-items-center"},n.map((function(e,t){return React.createElement("div",{key:t,"aria-hidden":t!==o,className:ip("col-start-1 row-start-1 transition-opacity duration-500 ease-in-out",t===o?"opacity-100":"pointer-events-none opacity-0")},e.illustration)}))),u>1&&React.createElement("div",{className:"flex items-center justify-center gap-1"},n.map((function(e,t){return React.createElement("button",{key:t,type:"button","aria-current":t===o,"aria-label":e.title,onClick:function(){return a(t)},className:ip("h-1.5 cursor-pointer rounded-full border-0 p-0 transition-all focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-button-primary",t===o?"w-4 bg-button-primary":"w-1.5 bg-border-subtle")})}))),React.createElement(fB,{key:o,as:"p",size:12,weight:500,className:"srfm-onboarding-fade-in text-center text-button-primary"},f.title)):null},vB=Kt("ChevronsLeftRight",[["path",{d:"m9 7-5 5 5 5",key:"j5w590"}],["path",{d:"m15 7 5 5-5 5",key:"1bl6da"}]]);function bB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const wB=function(e){var t=e.before,n=e.after,r=e.width,o=void 0===r?283:r,a=e.height,s=void 0===a?246:a,l=e.initial,c=void 0===l?50:l,u=e.label,f=void 0===u?(0,je.__)("Compare free and premium","sureforms"):u,d=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bB(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,i.useState)(c),2),p=d[0],h=d[1],m=(0,i.useRef)(null);return React.createElement("div",{style:{width:o}},React.createElement("div",{ref:m,onPointerMove:function(e){var t,n=null===(t=m.current)||void 0===t?void 0:t.getBoundingClientRect();if(null!=n&&n.width){var r=(e.clientX-n.left)/n.width*100;h(Math.min(100,Math.max(0,Math.round(r))))}},className:"relative cursor-ew-resize select-none overflow-hidden rounded-[13px] has-[:focus-visible]:outline has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-button-primary",style:{width:o,height:s}},React.createElement("div",{className:"absolute inset-0"},t),React.createElement("div",{className:"absolute inset-y-0 right-0 overflow-hidden",style:{width:"".concat(100-p,"%")}},React.createElement("div",{className:"absolute right-0 top-0",style:{width:o}},n)),React.createElement("div",{className:"pointer-events-none absolute inset-y-0 w-0.5 -translate-x-1/2 bg-button-primary",style:{left:"".concat(p,"%")}},React.createElement("span",{className:"absolute left-1/2 top-1/2 flex size-6 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-button-primary text-white shadow-md"},React.createElement(vB,{className:"size-3.5"}))),React.createElement("input",{type:"range",min:0,max:100,value:p,onChange:function(e){return h(Number(e.target.value))},"aria-label":f,"aria-valuetext":(0,je.sprintf)((0,je.__)("%s of the free version shown","sureforms"),"".concat(p,"%")),className:"pointer-events-none absolute inset-0 m-0 h-full w-full appearance-none bg-transparent opacity-0"})))};var xB="flex h-[277px] w-full items-center justify-center overflow-hidden rounded-lg bg-[#fdf1e2]";const MB=Kt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);function jB(e){return jB="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},jB(e)}var EB=["onClick","disabled","text","icon"];function OB(){return OB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OB.apply(null,arguments)}function kB(){kB=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof d?n:d,a=Object.create(i.prototype);return l(a,"_invoke",function(t,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=x(s,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new E(o||[])),!0),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f={};function d(){}function p(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(O([])));g&&g!==n&&r.call(g,i)&&(m=g);var v=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==jB(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[t.r]=a.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function M(e){this.tryEntries.push(e)}function j(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function E(e){this.tryEntries=[[-1]],e.forEach(M,this),this.reset(!0)}function O(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(jB(t)+" is not iterable")}return p.prototype=h,l(v,"constructor",h),l(h,"constructor",p),p.displayName=l(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),l(v,s,"Generator"),l(v,i,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){a.type="throw",a.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,r(l),!0;if(s<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:O(t),r:n,n:r},"next"===this.method&&(this.arg=e),f}},t}function SB(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function NB(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){SB(i,r,o,a,s,"next",e)}function s(e){SB(i,r,o,a,s,"throw",e)}a(void 0)}))}}function TB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function AB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TB(Object(n),!0).forEach((function(t){DB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DB(e,t,n){return(t=function(e){var t=function(e){if("object"!=jB(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jB(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jB(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var IB={back:{key:"back",defaultProps:{type:"button",variant:"outline",icon:React.createElement(MB,{className:"rotate-180"}),text:(0,je.__)("Back","sureforms")},loaderProps:{variant:"primary"}},continue:{key:"continue",defaultProps:{type:"button",variant:"primary",icon:React.createElement(MB,null),iconPosition:"right",text:(0,je.__)("Next","sureforms")},loaderProps:{variant:"secondary"}},skip:{key:"skip",defaultProps:{type:"button",className:"text-text-tertiary",size:"md",variant:"ghost",icon:null,text:(0,je.__)("Skip","sureforms")},loaderProps:{variant:"primary"}}};const PB=function(e){var t=e.backProps,n=void 0===t?{}:t,r=e.continueProps,o=void 0===r?{}:r,a=e.skipProps,s=void 0===a?{}:a,l=e.containerProps,c=void 0===l?{}:l,u=e.buttonGroupProps,f=void 0===u?{}:u,d=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return CB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?CB(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,i.useState)({back:!1,continue:!1,skip:!1}),2),p=d[0],h=d[1],m=function(e,t){h((function(n){return AB(AB({},n),{},DB({},e,t))}))},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.onClick,r=t.disabled,o=t.text,i=t.icon,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,EB),s=IB[e];if("function"!=typeof n)return null;var l,c,u=(l=e,c=n,NB(kB().mark((function e(){var t=arguments;return kB().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"==typeof c){e.next=2;break}return e.abrupt("return");case 2:if(!p[l]){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,m(l,!0),e.next=8,c.apply(void 0,t);case 8:e.next=12;break;case 10:e.prev=10,e.t0=e.catch(4);case 12:return e.prev=12,m(l,!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[4,10,12,15]])})))),f=p[e]?React.createElement(rb,{variant:s.loaderProps.variant}):i||s.defaultProps.icon;return AB(AB(AB({},s.defaultProps),a),{},{onClick:u,disabled:r,icon:f,children:o||s.defaultProps.text})},g=y("back",n),v=y("continue",o),b=y("skip",s);return g||v||b?React.createElement(Yt,OB({justify:"between"},c),g&&React.createElement(Qt,g),React.createElement(Yt,OB({className:"gap-3"},f),b&&React.createElement(Qt,b),v&&React.createElement(Qt,v))):null},_B=o.p+"images/welcome-ai-form-builder.7382c88c.svg",RB=o.p+"images/welcome-drag-drop-fields.a1f34ceb.svg",zB=o.p+"images/welcome-payment-forms.4335b2c9.svg",LB=o.p+"images/welcome-entries.667026ad.svg",UB=o.p+"images/welcome-conditional-logic.b3f806e6.svg",FB=o.p+"images/welcome-conversational-forms.a1aea1f5.svg",BB=o.p+"images/welcome-calculator-forms.fbe8d65c.svg",VB=o.p+"images/welcome-pdf-generation.5c8fcc8f.svg",YB=o.p+"images/welcome-connect-your-apps.46ef8f1e.svg";var WB=function(e){var t=e.src;return React.createElement("img",{src:t,alt:"",width:460,height:360,className:"block h-auto w-[400px] max-w-full"})},HB=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{title:e,illustration:React.createElement(WB,{src:t}),pro:n}},GB=[HB((0,je.__)("AI Form Builder","sureforms"),_B),HB((0,je.__)("Drag & Drop Fields","sureforms"),RB),HB((0,je.__)("Payment Forms","sureforms"),zB),HB((0,je.__)("Manage Form Entries","sureforms"),LB),HB((0,je.__)("Conditional Logic","sureforms"),UB,!0),HB((0,je.__)("Conversational Forms","sureforms"),FB,!0),HB((0,je.__)("Calculator Forms","sureforms"),BB,!0),HB((0,je.__)("PDF Generation","sureforms"),VB,!0),HB((0,je.__)("Connect Your Apps","sureforms"),YB,!0)],QB=function(){var e;return null!==(e=srfm_admin)&&void 0!==e&&e.is_pro_active?GB:GB.filter((function(e){return!e.pro}))},$B=[(0,je.__)("Built for WordPress","sureforms"),(0,je.__)("No Coding Required","sureforms"),(0,je.__)("Works With Any Theme","sureforms")];const qB=function(){var e=GF().navigateToNextRoute;return React.createElement("div",{className:"space-y-6"},React.createElement("div",{className:"space-y-2 text-center"},React.createElement(fB,{as:"h2",size:30,lineHeight:38,weight:600,color:"primary"},(0,i.createInterpolateElement)((0,je.__)("Welcome to <brand>SureForms</brand>! <wave>👋</wave>","sureforms"),{brand:React.createElement("span",{className:"text-button-primary"}),wave:React.createElement("span",{className:"srfm-onboarding-wave"})})),React.createElement(fB,{as:"p",size:16,color:"secondary"},(0,je.__)("Create beautiful WordPress forms that convert.","sureforms"),React.createElement("br",null),(0,je.__)("Get started in less than a minute.","sureforms"))),React.createElement(gB,{slides:QB()}),React.createElement(PB,{containerProps:{justify:"center"},continueProps:{onClick:e,text:(0,je.__)("Get Started","sureforms")}}),React.createElement(pB,null),React.createElement(hB,{inline:!0,size:12,items:$B}))},ZB=o.p+"images/connect-describe-form.389adb81.gif";function XB(e){return XB="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},XB(e)}function KB(){KB=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof d?n:d,a=Object.create(i.prototype);return l(a,"_invoke",function(t,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=x(s,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new E(o||[])),!0),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f={};function d(){}function p(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(O([])));g&&g!==n&&r.call(g,i)&&(m=g);var v=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==XB(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[t.r]=a.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function M(e){this.tryEntries.push(e)}function j(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function E(e){this.tryEntries=[[-1]],e.forEach(M,this),this.reset(!0)}function O(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(XB(t)+" is not iterable")}return p.prototype=h,l(v,"constructor",h),l(h,"constructor",p),p.displayName=l(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),l(v,s,"Generator"),l(v,i,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){a.type="throw",a.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,r(l),!0;if(s<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:O(t),r:n,n:r},"next"===this.method&&(this.arg=e),f}},t}function JB(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function eV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var tV=[(0,je.__)("Create complete forms from a simple description","sureforms"),(0,je.__)("Get the right fields, labels, and layout added for you","sureforms"),(0,je.__)("Get 10 AI form generations for free","sureforms")];const nV=function(){var e,t=GF().navigateToNextRoute,n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eV(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eV(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(WF(),2)[1],r="non-registered"!==(null===(e=srfm_admin)||void 0===e||null===(e=e.srfm_ai_details)||void 0===e?void 0:e.type),o=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){JB(i,r,o,a,s,"next",e)}function s(e){JB(i,r,o,a,s,"throw",e)}a(void 0)}))}}(KB().mark((function e(){return KB().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!r){e.next=4;break}return t(),e.abrupt("return");case 4:return e.next=6,rp("onboarding");case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.error("Error during authentication:",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();return React.createElement("div",{className:"space-y-4"},React.createElement("div",{className:xB},React.createElement("img",{src:ZB,alt:"",width:616,height:277,className:"block h-auto w-full"})),React.createElement(dB,{title:(0,je.__)("From Idea to a Ready-to-Publish Form in Seconds","sureforms"),description:(0,je.__)("Describe the form you need, and SureForms will create the fields, labels, and layout for you.","sureforms")}),React.createElement(hB,{heading:(0,je.__)("Connect this website to your free SureForms account to activate AI form creation and get 10 free AI generations.","sureforms"),items:tV}),React.createElement(pB,null),React.createElement(PB,{containerProps:{justify:"end"},continueProps:{onClick:o,text:r?(0,je.__)("Continue","sureforms"):(0,je.__)("Connect and Activate AI","sureforms")},skipProps:{onClick:function(){n.markStepSkipped("connect"),t()}}}))},rV=o.p+"images/email-delivery.9d18c6f7.svg";function oV(e){return oV="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},oV(e)}function iV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iV(Object(n),!0).forEach((function(t){sV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sV(e,t,n){return(t=function(e){var t=function(e){if("object"!=oV(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oV(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oV(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lV(){lV=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof d?n:d,a=Object.create(i.prototype);return l(a,"_invoke",function(t,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=x(s,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new E(o||[])),!0),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f={};function d(){}function p(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(O([])));g&&g!==n&&r.call(g,i)&&(m=g);var v=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==oV(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[t.r]=a.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function M(e){this.tryEntries.push(e)}function j(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function E(e){this.tryEntries=[[-1]],e.forEach(M,this),this.reset(!0)}function O(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(oV(t)+" is not iterable")}return p.prototype=h,l(v,"constructor",h),l(h,"constructor",p),p.displayName=l(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),l(v,s,"Generator"),l(v,i,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){a.type="throw",a.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,r(l),!0;if(s<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:O(t),r:n,n:r},"next"===this.method&&(this.arg=e),f}},t}function cV(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function uV(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){cV(i,r,o,a,s,"next",e)}function s(e){cV(i,r,o,a,s,"throw",e)}a(void 0)}))}}function fV(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dV(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dV(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var pV=[(0,je.__)("Form submission emails land in the inbox, not spam","sureforms"),(0,je.__)("Set up any SMTP provider in under 2 minutes","sureforms"),(0,je.__)("Works automatically with every SureForms form","sureforms")];const hV=function(){var e,t,n=fV(WF(),2)[1],r=GF(),o=r.navigateToNextRoute,a=r.navigateToPreviousRoute,s=Object.entries(null!==(e=null===(t=srfm_admin)||void 0===t?void 0:t.integrations)&&void 0!==e?e:{}).find((function(e){return"sure_mails"===e[0]})),l=s?s[1]:null;l&&l.hasOwnProperty("redirection")&&delete l.redirection,(0,i.useEffect)((function(){var e=new URLSearchParams(window.location.search).get("access_key");if(e){var t=function(){var t=uV(lV().mark((function t(){var r,o,i;return lV().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,du()({path:"/sureforms/v1/handle-access-key",method:"POST",data:{accessKey:e}});case 3:null!=(r=t.sent)&&r.success?(n.setAccountConnected(!0),(o=new URL(window.location.href)).searchParams.delete("access_key"),i="".concat(o.pathname,"?").concat(o.searchParams.toString()).concat(o.hash),window.history.replaceState({},document.title,i)):console.error("Error handling access key:",null==r?void 0:r.message),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error("Error handling access key:",t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}();t()}}),[]);var c=fV((0,i.useState)(l),2),u=c[0],f=c[1],d=fV((0,i.useState)(!1),2),p=d[0],h=d[1],m=fV((0,i.useState)(""),2),y=m[0],g=m[1],v=fV((0,i.useState)(""),2),b=v[0],w=v[1],x=function(){var e=uV(lV().mark((function e(){var t;return lV().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,du()({path:"/sureforms/v1/plugin-status?plugin=sure_mails",method:"GET"});case 5:return(t=e.sent)&&t.hasOwnProperty("redirection")&&delete t.redirection,f(t),e.abrupt("return",t);case 11:return e.prev=11,e.t0=e.catch(2),console.error("Failed to refresh plugin status:",e.t0),e.abrupt("return",null);case 15:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(){return e.apply(this,arguments)}}();(0,i.useEffect)((function(){x().then((function(e){"Activated"===(null==e?void 0:e.status)&&h(!0)}))}),[]);var M="Activated"===(null==u?void 0:u.status),j=function(){var e=uV(lV().mark((function e(){return lV().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u&&!M){e.next=4;break}return M&&!p&&(n.setSuremailInstalled(!0),n.unmarkStepSkipped("emailDelivery")),E("install"),e.abrupt("return");case 4:return w(""),e.prev=5,e.next=8,gp(u,g);case 8:f(aV(aV({},u),{},{status:"Activated"})),n.setSuremailInstalled(!0),n.unmarkStepSkipped("emailDelivery"),E("install"),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(5),w((null===e.t0||void 0===e.t0?void 0:e.t0.message)||(0,je.__)("SureMail could not be installed. Please try again, or skip this step.","sureforms")),x();case 18:return e.prev=18,g(""),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[5,14,18,21]])})));return function(){return e.apply(this,arguments)}}(),E=function(){"install"!==(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")&&n.markStepSkipped("emailDelivery"),n.setEmailDeliveryConfigured(!0),o()};return React.createElement("div",{className:"space-y-4"},React.createElement("div",{className:xB},React.createElement("object",{type:"image/svg+xml",data:rV,className:"pointer-events-none block h-auto w-full","aria-label":(0,je.__)("Illustration of a form submission travelling to an inbox","sureforms")})),React.createElement(dB,{title:(0,je.__)("Make Sure Your Emails Get Delivered","sureforms"),description:(0,je.__)("WordPress can lose form emails to spam or failed delivery. SureMail routes them through a proper SMTP connection so every submission actually arrives.","sureforms")}),React.createElement(hB,{heading:(0,je.__)("Connect your free account to get started.","sureforms"),items:pV}),b&&React.createElement(fB,{size:14,color:"error",role:"alert"},b),React.createElement(pB,null),React.createElement(PB,{backProps:{onClick:function(){a()}},continueProps:{onClick:j,text:"installing"===y?(0,je.__)("Installing SureMail…","sureforms"):"activating"===y?(0,je.__)("Activating SureMail…","sureforms"):!u||M?(0,je.__)("Continue","sureforms"):pp(u)},skipProps:{onClick:E}}))},mV=(0,s.createContext)(null);const yV=e=>!e.isLayoutDirty&&e.willUpdate(!1);function gV(){const e=new Set,t=new WeakMap,n=()=>e.forEach(yV);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);const o=t.get(r);o&&(o(),t.delete(r)),n()},dirty:n}}const vV=e=>!0===e,bV=({children:e,id:t,inherit:n=!0})=>{const r=(0,s.useContext)(Tn),o=(0,s.useContext)(mV),[i,a]=function(){const e=function(){const e=(0,s.useRef)(!1);return Bn((()=>(e.current=!0,()=>{e.current=!1})),[]),e}(),[t,n]=(0,s.useState)(0),r=(0,s.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,s.useCallback)((()=>zr.postRender(r)),[r]),t]}(),l=(0,s.useRef)(null),c=r.id||o;null===l.current&&((e=>vV(!0===e)||"id"===e)(n)&&c&&(t=t?c+"-"+t:c),l.current={id:t,group:vV(n)&&r.group||gV()});const u=(0,s.useMemo)((()=>({...l.current,forceRender:i})),[a]);return(0,Ee.jsx)(Tn.Provider,{value:u,children:e})},wV=(0,s.createContext)({}),xV=()=>(0,s.useContext)(wV),MV=(0,s.createContext)(null),jV=({children:e,activeItem:t=null,onChange:n,className:r,size:o="sm",orientation:i="horizontal",variant:a="pill",iconPosition:l="left",width:c="full"})=>{const u=Zv(),f=xV()?.activeItem||t,d=(0,s.useCallback)(((e,t)=>{n&&n({event:e,value:t})}),[n]);let p,h="rounded-full",m="p-1",y="ring-1 ring-tab-border";"vertical"===i?p="gap-0.5":("rounded"===a||"pill"===a)&&("xs"===o||"sm"===o?p="gap-0.5":("md"===o||"lg"===o)&&(p="gap-1")),"rounded"===a||"vertical"===i?h="rounded-md":"underline"===a&&(h="rounded-none",m="p-0",y="border-t-0 border-r-0 border-l-0 border-b border-solid border-tab-border","xs"===o?p="gap-0":"sm"===o?p="gap-2.5":("md"===o||"lg"===o)&&(p="gap-3"));const g=xt(`box-border [&>*]:box-border flex items-center ${"full"===c?"w-full":""} ${"vertical"===i?"flex-col":""}`,h,m,p,y,"underline"!==a?"bg-tab-background":"",r);return(0,Ee.jsx)("div",{className:g,children:(0,Ee.jsx)(MV.Provider,{value:{activeItem:f,onChange:d,size:o,variant:a,orientation:i,iconPosition:l,width:c},children:(0,Ee.jsx)(bV,{id:u,children:s.Children.map(e,(e=>(0,s.isValidElement)(e)?s.cloneElement(e):null))})})})};jV.displayName="Tabs.Group";const EV=(0,s.forwardRef)((({slug:e,text:t,icon:n,className:r,disabled:o=!1,badge:i=null,...a},l)=>{const c=(0,s.useContext)(MV);if(!c)throw new Error("Tab should be used inside Tabs Group");const{activeItem:u,onChange:f,size:d,variant:p,orientation:h,iconPosition:m,width:y}=c,g={xs:"px-1.5 py-0.5 text-xs [&_svg]:size-3",sm:"underline"===p?"py-1.5 text-sm [&_svg]:size-4":"px-3 py-1.5 text-sm [&_svg]:size-4",md:"underline"===p?"py-2 text-base [&_svg]:size-5":"px-3.5 py-1.5 text-base [&_svg]:size-5",lg:"underline"===p?"p-2.5 text-lg [&_svg]:size-6":"px-3.5 py-1.5 text-lg [&_svg]:size-6"}[d],v=xt("relative border-none bg-transparent text-text-secondary cursor-pointer flex items-center justify-center transition-[box-shadow,color,background-color] duration-200","full"===y?"flex-1":"","vertical"===h?"w-full justify-between":"");let b="rounded-full";"rounded"===p?b="rounded-md":"underline"===p&&(b="rounded-none");const w=xt(v,"border-none",b,"hover:text-text-primary","focus:outline-none",g,u===e?"bg-background-primary text-text-primary shadow-sm":"",o?"text-text-disabled cursor-not-allowed hover:text-text-disabled":"",r),x=xt("flex items-center gap-1");return(0,Ee.jsxs)(su.button,{ref:l,className:w,disabled:o,onClick:n=>{f(n,{slug:e,text:t})},...a,layoutRoot:!0,children:[u===e&&"underline"===p&&(0,Ee.jsx)(su.span,{layoutId:"underline",layoutDependency:u,className:"absolute right-0 left-0 -bottom-px h-px bg-border-interactive"}),(0,Ee.jsxs)("span",{className:x,children:["left"===m&&n&&(0,Ee.jsx)("span",{className:"mr-1 contents center-center transition duration-150",children:n}),t,"right"===m&&n&&(0,Ee.jsx)("span",{className:"ml-1 contents center-center transition duration-150",children:n})]}),i&&(0,s.isValidElement)(i)&&i]})}));EV.displayName="Tabs.Tab";const OV=({activeItem:e,children:t})=>(0,Ee.jsx)(wV.Provider,{value:{activeItem:e},children:t}),kV=({slug:e,children:t})=>{const n=xV();if(!n)throw new Error("TabPanel should be used inside Tabs");return e===n.activeItem?(0,Ee.jsx)(Ee.Fragment,{children:t}):null};kV.displayName="Tabs.Panel",OV.Group=jV,OV.Tab=EV,OV.Panel=kV;const SV=Kt("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),NV=o.p+"images/addon-multistep-free.d161daf4.svg",TV=o.p+"images/addon-multistep-pro.507441b4.svg",AV=o.p+"images/addon-conditional-free.dda34947.svg",DV=o.p+"images/addon-conditional-pro.87174257.svg",CV=o.p+"images/addon-calculation-free.c2671392.svg",IV=o.p+"images/addon-calculation-pro.814ab97f.svg",PV=o.p+"images/addon-conversational-free.78ca09e9.svg",_V=o.p+"images/addon-conversational-pro.a93a9cd6.svg";var RV=function(e){var t=e.src;return React.createElement("img",{src:t,alt:"",width:283,height:246,className:"block h-[246px] w-[283px]"})};const zV={multistep:{free:React.createElement(RV,{src:NV}),pro:React.createElement(RV,{src:TV})},conditional:{free:React.createElement(RV,{src:AV}),pro:React.createElement(RV,{src:DV})},calculation:{free:React.createElement(RV,{src:CV}),pro:React.createElement(RV,{src:IV})},conversational:{free:React.createElement(RV,{src:PV}),pro:React.createElement(RV,{src:_V})}};function LV(e){return LV="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},LV(e)}function UV(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return FV(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?FV(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function FV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function BV(){BV=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof d?n:d,a=Object.create(i.prototype);return l(a,"_invoke",function(t,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=x(s,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new E(o||[])),!0),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f={};function d(){}function p(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(O([])));g&&g!==n&&r.call(g,i)&&(m=g);var v=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==LV(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[t.r]=a.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function M(e){this.tryEntries.push(e)}function j(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function E(e){this.tryEntries=[[-1]],e.forEach(M,this),this.reset(!0)}function O(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(LV(t)+" is not iterable")}return p.prototype=h,l(v,"constructor",h),l(h,"constructor",p),p.displayName=l(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),l(v,s,"Generator"),l(v,i,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){a.type="throw",a.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,r(l),!0;if(s<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:O(t),r:n,n:r},"next"===this.method&&(this.arg=e),f}},t}function VV(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function YV(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){VV(i,r,o,a,s,"next",e)}function s(e){VV(i,r,o,a,s,"throw",e)}a(void 0)}))}}var WV="ONB10",HV=[{slug:"multistep",tab:(0,je.__)("Multistep","sureforms"),title:(0,je.__)("Multistep Forms","sureforms"),description:(0,je.__)("Break long forms into short steps. Fewer drop-offs, more completions.","sureforms")},{slug:"conditional",tab:(0,je.__)("Conditional","sureforms"),title:(0,je.__)("Conditional Fields","sureforms"),description:(0,je.__)("Show fields only when they're relevant. Cleaner forms, better answers.","sureforms")},{slug:"calculation",tab:(0,je.__)("Calculation","sureforms"),title:(0,je.__)("Calculation Forms","sureforms"),description:(0,je.__)("Give instant estimates, quotes, and totals as users fill things in.","sureforms")},{slug:"conversational",tab:(0,je.__)("Conversational","sureforms"),title:(0,je.__)("Conversational Forms","sureforms"),description:(0,je.__)("One question at a time. Feels like a chat — completes like one too.","sureforms")}],GV=function(){var e=YV(BV().mark((function e(t){var n;return BV().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.clipboard.writeText(t);case 3:return e.abrupt("return",!0);case 6:return e.prev=6,e.t0=e.catch(0),e.prev=8,(n=document.createElement("textarea")).value=t,n.style.position="fixed",n.style.opacity="0",document.body.appendChild(n),n.focus(),n.select(),document.execCommand("copy"),document.body.removeChild(n),e.abrupt("return",!0);case 21:return e.prev=21,e.t1=e.catch(8),e.abrupt("return",!1);case 24:case"end":return e.stop()}}),e,null,[[0,6],[8,21]])})));return function(t){return e.apply(this,arguments)}}();const QV=function(){var e,t,n=UV(WF(),2)[1],r=GF(),o=r.navigateToPreviousRoute,a=r.navigateToNextRoute,s=UV((0,i.useState)(HV[0].slug),2),l=s[0],c=s[1],u=UV((0,i.useState)(!1),2),f=u[0],d=u[1],p=UV((0,i.useState)(!1),2),h=p[0],m=p[1],y=UV((0,i.useState)(!1),2),g=y[0],v=y[1];(0,i.useEffect)((function(){var e,t,n=null===(e=(t=window).matchMedia)||void 0===e||null===(e=e.call(t,"(prefers-reduced-motion: reduce)"))||void 0===e?void 0:e.matches;if(!(h||g||n)){var r=setInterval((function(){c((function(e){var t=HV.findIndex((function(t){return t.slug===e}));return HV[(t+1)%HV.length].slug}))}),3e3);return function(){return clearInterval(r)}}}),[h,g]);var b=HV.find((function(e){return e.slug===l}))||HV[0],w=null!==(e=zV[b.slug])&&void 0!==e?e:{};(0,i.useEffect)((function(){n.markPremiumTabViewed(HV[0].slug),n.setPremiumUpgradeClicked(!1)}),[]);var x=op(null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_pricing_page,"onboarding_premium_features"),M=(0,i.useRef)(null);(0,i.useEffect)((function(){return function(){return clearTimeout(M.current)}}),[]);var j=function(){var e=YV(BV().mark((function e(){return BV().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GV(WV);case 2:if(!e.sent){e.next=6;break}d(!0),clearTimeout(M.current),M.current=setTimeout((function(){return d(!1)}),1500);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return React.createElement("div",{className:"space-y-7"},React.createElement(dB,{tag:"h2",align:"center",title:(0,je.__)("Add more to your forms","sureforms"),description:(0,je.__)("Small additions that make a big difference","sureforms")}),React.createElement("div",{className:"flex flex-col items-center gap-8",onMouseEnter:function(){return m(!0)},onMouseLeave:function(){return m(!1)},onFocusCapture:function(){return m(!0)},onBlurCapture:function(){return m(!1)}},React.createElement(OV.Group,{activeItem:l,onChange:function(e){var t,r=e.value;return t="string"==typeof r?r:null==r?void 0:r.slug,c(t),v(!0),void n.markPremiumTabViewed(t)},size:"sm",variant:"rounded",width:"auto",className:"[&_.bg-background-primary]:bg-button-primary [&_.bg-background-primary]:text-text-on-color [&_.bg-background-primary:hover]:text-text-on-color"},HV.map((function(e){return React.createElement(OV.Tab,{key:e.slug,slug:e.slug,text:e.tab})}))),React.createElement("div",{className:"flex items-center justify-center gap-7"},React.createElement(wB,{key:b.slug,before:w.free,after:w.pro,initial:20,label:(0,je.sprintf)((0,je.__)("Compare %s: free versus premium","sureforms"),b.title)}),React.createElement("div",{className:"w-[304px] space-y-1.5 rounded-lg bg-background-primary p-2"},React.createElement("div",{className:"flex items-center gap-2"},React.createElement(fB,{size:16,weight:500,color:"primary"},b.title),React.createElement(xh,{label:(0,je.__)("Premium","sureforms"),size:"xs",variant:"inverse"})),React.createElement(fB,{size:14,weight:400,color:"tertiary"},b.description),React.createElement("a",{href:x,target:"_blank",rel:"noopener noreferrer",onClick:function(){return n.setPremiumUpgradeClicked(!0)},className:"inline-block text-xs font-semibold text-button-primary no-underline hover:text-button-primary-hover hover:underline"},(0,je.__)("Upgrade Now","sureforms"))))),React.createElement(pB,null),React.createElement("div",{className:"flex items-center justify-between gap-2 rounded-lg p-3 ring-1 ring-alert-border-neutral bg-[#F9FAFB]"},React.createElement(fB,{size:12,weight:400,color:"primary",className:"px-1"},(0,i.createInterpolateElement)((0,je.sprintf)((0,je.__)("Use code <code>%1$s</code> for 10%% off any SureForms Business plan.","sureforms"),WV),{code:React.createElement("strong",{className:"font-semibold"})})),React.createElement(Qt,{variant:"link",size:"xs",onClick:j},f?(0,je.__)("Copied","sureforms"):(0,je.__)("Copy","sureforms"))),React.createElement(PB,{backProps:{onClick:o},skipProps:{onClick:function(){n.markStepSkipped("premiumFeatures"),a()}},continueProps:{onClick:function(){n.setPremiumUpgradeClicked(!0),window.open(x,"_blank","noopener"),a()},text:(0,je.__)("Upgrade","sureforms"),icon:React.createElement(SV,null),className:"[&>svg]:size-4"}}))},$V=cn("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),qV=(0,s.forwardRef)((({id:e,label:t,defaultChecked:n=!1,checked:r,onChange:o,indeterminate:i,disabled:a,size:l="md",className:c,...u},f)=>{const d=(0,s.useMemo)((()=>e||`checkbox-${Zv()}`),[e]),p=(0,s.useMemo)((()=>typeof r<"u"),[r]),[h,m]=(0,s.useState)(n||!1),y="primary",g={sm:{checkbox:"size-4 rounded gap-1",icon:"size-3",text:"text-sm",description:"text-sm",gap:"gap-0.5"},md:{checkbox:"size-5 rounded gap-1",icon:"size-4",text:"text-base",description:"text-sm",gap:"gap-1"}},v={primary:{checkbox:"border-border-strong hover:border-border-interactive checked:border-border-interactive bg-white checked:bg-toggle-on checked:hover:bg-toggle-on-hover checked:hover:border-toggle-on-hover focus:ring-2 focus:ring-offset-2 focus:ring-focus",icon:"text-white"}},b=(0,s.useCallback)((()=>p?r:h),[p,r,h]),w=(0,s.useCallback)((()=>(0,s.isValidElement)(t)?t:t?.heading||t?.description?(0,Ee.jsxs)("div",{className:g[l].gap,children:[t?.heading&&(0,Ee.jsx)(Gt,{className:xt("text-text-primary font-medium leading-4 m-0",g[l].text,g[l].gap,a&&"text-text-disabled"),htmlFor:d,children:t?.heading}),t?.description&&(0,Ee.jsx)(Gt,{tag:"p",className:xt("font-normal leading-5 m-0",g[l].description,a&&"text-text-disabled"),variant:"help",children:t?.description})]}):null),[t,l,a]);return(0,Ee.jsxs)("div",{className:xt("inline-flex items-center justify-center gap-2",!!t&&"items-start",a&&"cursor-not-allowed"),children:[(0,Ee.jsxs)("label",{className:xt("relative flex items-center justify-center rounded-full p-0.5",!a&&"cursor-pointer"),htmlFor:d,children:[(0,Ee.jsx)("input",{ref:f,id:d,type:"checkbox",className:xt("peer relative cursor-pointer appearance-none transition-all m-0 before:content-[''] checked:before:content-[''] checked:before:hidden before:hidden !border-1.5 border-solid",v[y].checkbox,g[l].checkbox,a&&"cursor-not-allowed disabled:bg-white checked:disabled:bg-white disabled:border-border-disabled checked:disabled:border-border-disabled",c),checked:b(),onChange:e=>{if(a)return;const t=e.target.checked;p||m(t),"function"==typeof o&&o(t)},disabled:a,...u}),(0,Ee.jsx)("span",{className:xt("pointer-events-none inline-flex items-center absolute top-2/4 not-rtl:left-2/4 rtl:right-2/4 -translate-y-2/4 -translate-x-2/4 text-white opacity-0 transition-opacity peer-checked:opacity-100",v[y].icon,a&&"cursor-not-allowed peer-disabled:text-border-disabled"),children:i?(0,Ee.jsx)($V,{className:xt(g[l]?.icon)}):(0,Ee.jsx)(mn,{className:xt(g[l]?.icon)})})]}),!!t&&w()]})}));function ZV(e){return ZV="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},ZV(e)}function XV(){XV=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof d?n:d,a=Object.create(i.prototype);return l(a,"_invoke",function(t,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=x(s,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new E(o||[])),!0),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f={};function d(){}function p(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(O([])));g&&g!==n&&r.call(g,i)&&(m=g);var v=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==ZV(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[t.r]=a.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function M(e){this.tryEntries.push(e)}function j(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function E(e){this.tryEntries=[[-1]],e.forEach(M,this),this.reset(!0)}function O(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(ZV(t)+" is not iterable")}return p.prototype=h,l(v,"constructor",h),l(h,"constructor",p),p.displayName=l(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),l(v,s,"Generator"),l(v,i,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){a.type="throw",a.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,r(l),!0;if(s<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:O(t),r:n,n:r},"next"===this.method&&(this.arg=e),f}},t}function KV(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function JV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JV(Object(n),!0).forEach((function(t){tY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tY(e,t,n){return(t=function(e){var t=function(e){if("object"!=ZV(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ZV(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ZV(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rY(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rY(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}qV.displayName="Checkbox";var oY={firstName:"",lastName:"",email:""},iY=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;const aY=function(){var e,t=nY(WF(),2),n=t[0],r=t[1],o=GF(),a=o.navigateToNextRoute,s=o.navigateToPreviousRoute,l=nY((0,i.useState)(eY(eY({},oY),null==n?void 0:n.userDetails)),2),c=l[0],u=l[1],f=nY((0,i.useState)({}),2),d=f[0],p=f[1],h=(null===(e=srfm_admin)||void 0===e?void 0:e.privacy_policy_url)||"https://sureforms.com/privacy-policy/",m=function(e){return function(t){u((function(n){return eY(eY({},n),{},tY({},e,t))})),p((function(t){return eY(eY({},t),{},tY({},e,""))}))}},y=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){KV(i,r,o,a,s,"next",e)}function s(e){KV(i,r,o,a,s,"throw",e)}a(void 0)}))}}(XV().mark((function e(){var t,n;return XV().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=void 0,i=void 0,s=void 0,void 0,void 0,s={},l=(null===(o=c.firstName)||void 0===o?void 0:o.trim())||"",u=(null===(i=c.email)||void 0===i?void 0:i.trim())||"",l||(s.firstName=(0,je.__)("Please enter your first name.","sureforms")),u?iY.test(u)||(s.email=(0,je.__)("Please enter a valid email address.","sureforms")):s.email=(0,je.__)("Please enter your email address.","sureforms"),c.consent||(s.consent=(0,je.__)("Please check this box to continue.","sureforms")),p(s),0===Object.keys(s).length){e.next=2;break}return e.abrupt("return");case 2:return n={first_name:c.firstName.trim(),last_name:(null===(t=c.lastName)||void 0===t?void 0:t.trim())||"",email:c.email.trim()},r.setUserDetails(c),r.unmarkStepSkipped("userDetails"),e.prev=5,e.next=8,du()({path:"/sureforms/v1/onboarding/user-details",method:"POST",data:n});case 8:e.next=12;break;case 10:e.prev=10,e.t0=e.catch(5);case 12:a();case 13:case"end":return e.stop()}var o,i,s,l,u}),e,null,[[5,10]])})));return function(){return e.apply(this,arguments)}}();return React.createElement("div",{className:"space-y-4"},React.createElement(dB,{title:(0,je.__)("Okay, just one last step…","sureforms"),description:(0,je.__)("Help us tailor your SureForms experience by sharing a bit about yourself.","sureforms")}),React.createElement("div",{className:"space-y-4"},React.createElement("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4"},React.createElement("div",{className:"space-y-1.5"},React.createElement(hb,{id:"srfm-onboarding-first-name",size:"md",label:(0,je.__)("First Name","sureforms"),required:!0,placeholder:(0,je.__)("Enter your first name","sureforms"),value:c.firstName,onChange:m("firstName"),error:d.firstName}),d.firstName&&React.createElement(fB,{size:14,color:"error"},d.firstName)),React.createElement("div",{className:"space-y-1.5"},React.createElement(hb,{id:"srfm-onboarding-last-name",size:"md",label:(0,je.__)("Last Name (optional)","sureforms"),placeholder:(0,je.__)("Enter your last name","sureforms"),value:c.lastName,onChange:m("lastName")}))),React.createElement("div",{className:"space-y-1.5"},React.createElement(hb,{id:"srfm-onboarding-email",size:"md",type:"email",label:(0,je.__)("Email Address","sureforms"),required:!0,placeholder:(0,je.__)("Enter your email address","sureforms"),value:c.email,onChange:m("email"),error:d.email}),d.email&&React.createElement(fB,{size:14,color:"error"},d.email)),React.createElement("div",{className:"space-y-1.5"},React.createElement(qV,{checked:c.consent,onChange:m("consent"),size:"sm",label:{heading:React.createElement("span",null,(0,i.createInterpolateElement)((0,je.__)("Stay in the loop and help shape SureForms! Get feature updates, and help us in betterment of SureForms by sharing how you use the plugin. <a>Privacy Policy</a>.","sureforms"),{a:React.createElement("a",{href:h,target:"_blank",rel:"noopener noreferrer",className:"underline text-button-primary hover:text-button-primary-hover"},(0,je.__)("Privacy Policy","sureforms"))}))}}),d.consent&&React.createElement(fB,{size:14,color:"error"},d.consent))),React.createElement(pB,null),React.createElement(PB,{backProps:{onClick:s},continueProps:{onClick:y,text:(0,je.__)("Finish","sureforms")},skipProps:{onClick:function(){r.setUserDetails(c),r.markStepSkipped("userDetails"),a()}}}))},sY=function(e){var t,n,r,o=e.source,i=e.selected,a=e.onSelect,s=e.disabled,l=Number(null!==(t=null==o?void 0:o.form_count)&&void 0!==t?t:0),c=Number(null!==(n=null==o?void 0:o.imported_count)&&void 0!==n?n:0),u=Math.max(0,Number(null!==(r=null==o?void 0:o.pending_count)&&void 0!==r?r:l-c)),f=0===u&&c>0,d=Boolean(s)||f,p="srfm-onboarding-source-".concat(null==o?void 0:o.key),h=(0,je.sprintf)((0,je._n)("%d form ready","%d forms ready",u,"sureforms"),u),m=c>0?(0,je.sprintf)((0,je._n)("%d already imported","%d already imported",c,"sureforms"),c):"";return React.createElement("label",{htmlFor:p,className:"flex items-center justify-between gap-3 rounded-md border border-solid p-4 transition-colors focus-within:ring-2 focus-within:ring-focus focus-within:ring-offset-1 ".concat(f?"cursor-not-allowed bg-background-secondary":d?"cursor-not-allowed":"cursor-pointer"," ").concat(i?"border-border-interactive bg-background-interactive-subtle":"border-border-subtle hover:border-border-strong").trim()},React.createElement("div",{className:"flex items-center gap-3"},React.createElement("input",{id:p,type:"radio",name:"srfm-onboarding-source",value:null==o?void 0:o.key,checked:!!i,disabled:d,onChange:function(){return null==a?void 0:a(o)},className:"sr-only"}),f?React.createElement(wp,{"aria-hidden":"true",className:"size-4 shrink-0 text-icon-interactive"}):React.createElement("span",{"aria-hidden":"true",className:"flex size-4 shrink-0 items-center justify-center rounded-full border border-solid transition-colors ".concat(i?"border-icon-interactive bg-icon-interactive":"border-border-strong bg-background-primary")},i&&React.createElement("span",{className:"size-1.5 rounded-full bg-background-primary"})),React.createElement(fB,{size:14,weight:500,color:d&&!i?"secondary":"primary"},(null==o?void 0:o.title)||(0,je.__)("(unnamed source)","sureforms"))),React.createElement("div",{className:"flex items-center gap-1.5"},f?React.createElement(fB,{size:13,color:"secondary"},(0,je.__)("All forms already imported","sureforms")):React.createElement(React.Fragment,null,i&&React.createElement(Vv,{className:"size-4 text-icon-interactive"}),React.createElement(fB,{size:13,color:"secondary"},h,m&&React.createElement(React.Fragment,null," · ",m)))))};function lY(e){return lY="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},lY(e)}function cY(){cY=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof d?n:d,a=Object.create(i.prototype);return l(a,"_invoke",function(t,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=x(s,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new E(o||[])),!0),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f={};function d(){}function p(){}function h(){}var m={};l(m,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(O([])));g&&g!==n&&r.call(g,i)&&(m=g);var v=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==lY(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[t.r]=a.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function M(e){this.tryEntries.push(e)}function j(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function E(e){this.tryEntries=[[-1]],e.forEach(M,this),this.reset(!0)}function O(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(lY(t)+" is not iterable")}return p.prototype=h,l(v,"constructor",h),l(h,"constructor",p),p.displayName=l(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},t.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),l(v,s,"Generator"),l(v,i,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){a.type="throw",a.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,r(l),!0;if(s<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:O(t),r:n,n:r},"next"===this.method&&(this.arg=e),f}},t}function uY(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function fY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||dY(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dY(e,t){if(e){if("string"==typeof e)return pY(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pY(e,t):void 0}}function pY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const hY=function(){var e,t,n,r=fY(WF(),2),o=r[0],a=r[1],s=GF(),l=s.navigateToPreviousRoute,c=s.navigateToNextRoute,u=(0,i.useMemo)((function(){return((null==o?void 0:o.migrationSources)||[]).filter((function(e){var t,n;return(null==e?void 0:e.installed)&&(Number(null!==(t=null==e?void 0:e.form_count)&&void 0!==t?t:0)>0||Number(null!==(n=null==e?void 0:e.imported_count)&&void 0!==n?n:0)>0)}))}),[null==o?void 0:o.migrationSources]),f=(0,i.useMemo)((function(){return u.filter((function(e){var t,n,r;return Number(null!==(t=null==e?void 0:e.pending_count)&&void 0!==t?t:Number(null!==(n=null==e?void 0:e.form_count)&&void 0!==n?n:0)-Number(null!==(r=null==e?void 0:e.imported_count)&&void 0!==r?r:0))>0}))}),[u]),d=(0,i.useMemo)((function(){var e,t;if(0===f.length)return null;var n=function(e){return function(e){if(Array.isArray(e))return pY(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||dY(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(f).sort((function(e,t){var n,r;return Number(null!==(n=null==t?void 0:t.pending_count)&&void 0!==n?n:0)-Number(null!==(r=null==e?void 0:e.pending_count)&&void 0!==r?r:0)}));return null!==(e=null===(t=n[0])||void 0===t?void 0:t.key)&&void 0!==e?e:null}),[f]),p=fY((0,i.useState)(d),2),h=p[0],m=p[1],y=fY((0,i.useState)("idle"),2),g=y[0],v=y[1],b=fY((0,i.useState)(null),2),w=b[0],x=b[1],M=fY((0,i.useState)(""),2),j=M[0],E=M[1];(0,i.useEffect)((function(){var e=f.some((function(e){return(null==e?void 0:e.key)===h}));!e&&d&&m(d)}),[d,h,f]);var O=(0,i.useMemo)((function(){var e;return null!==(e=u.find((function(e){return(null==e?void 0:e.key)===h})))&&void 0!==e?e:null}),[u,h]),k=Number(null!==(e=null==O?void 0:O.pending_count)&&void 0!==e?e:Number(null!==(t=null==O?void 0:O.form_count)&&void 0!==t?t:0)-Number(null!==(n=null==O?void 0:O.imported_count)&&void 0!==n?n:0)),S=(0,i.useMemo)((function(){return O?(0,je.sprintf)((0,je._n)("Import %d form","Import %d forms",k,"sureforms"),k):(0,je.__)("Import forms","sureforms")}),[O,k]),N=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){uY(i,r,o,a,s,"next",e)}function s(e){uY(i,r,o,a,s,"throw",e)}a(void 0)}))}}(cY().mark((function e(){var t;return cY().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(O&&"importing"!==g){e.next=2;break}return e.abrupt("return");case 2:return v("importing"),E(""),e.prev=4,e.next=7,qF(O.key,[],!1,{},"draft",!0);case 7:t=e.sent,x(t),v("success"),a.setMigrationResult(O.key,{imported:((null==t?void 0:t.imported)||[]).length,failed:((null==t?void 0:t.failed)||[]).length,unsupported:((null==t?void 0:t.unsupported_fields)||[]).length}),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(4),E((null===e.t0||void 0===e.t0?void 0:e.t0.message)||(0,je.__)("Something went wrong while importing. You can retry, skip, or open Settings → Migration.","sureforms")),v("error");case 17:case"end":return e.stop()}}),e,null,[[4,13]])})));return function(){return e.apply(this,arguments)}}(),T=function(){c()};if(null==o||!o.migrationDetectionLoaded)return React.createElement("div",{className:"space-y-6"},React.createElement(Yt,{justify:"center",className:"srfm-py-10"},React.createElement(rb,{variant:"secondary"})));if(0===f.length)return React.createElement("div",{className:"space-y-6"},React.createElement(Yt,{gap:"sm",align:"center"},React.createElement(fB,{size:14,color:"secondary"},(0,je.__)("No other form plugins detected. You can import any time from Settings → Migration.","sureforms"))),React.createElement(pB,null),React.createElement(PB,{backProps:{onClick:l},continueProps:{onClick:T,text:(0,je.__)("Continue","sureforms")}}));if("success"===g){var A=((null==w?void 0:w.imported)||[]).length,D=((null==w?void 0:w.failed)||[]).length,C=((null==w?void 0:w.unsupported_fields)||[]).length;return React.createElement("div",{className:"space-y-4"},React.createElement(dB,{title:(0,je.__)("Forms imported","sureforms"),description:(0,je.sprintf)((0,je._n)("%1$d form from %2$s is now in SureForms, ready to publish, style, and connect.","%1$d forms from %2$s are now in SureForms, ready to publish, style, and connect.",A,"sureforms"),A,(null==O?void 0:O.title)||"")}),React.createElement("div",{className:"space-y-2"},React.createElement(Yt,{className:"flex items-center gap-1.5"},React.createElement(wp,{className:"size-4 text-icon-interactive"}),React.createElement(fB,{size:14,weight:500,color:"label"},(0,je.sprintf)((0,je._n)("%d form imported","%d forms imported",A,"sureforms"),A))),D>0&&React.createElement(Yt,{className:"flex items-center gap-1.5"},React.createElement(fB,{size:14,weight:500,color:"secondary"},(0,je.sprintf)((0,je._n)("%d form could not be imported","%d forms could not be imported",D,"sureforms"),D))),C>0&&React.createElement(Yt,{className:"flex items-center gap-1.5"},React.createElement(fB,{size:14,weight:500,color:"secondary"},(0,je.sprintf)((0,je._n)("%d field type was unsupported. You can rebuild it manually inside SureForms.","%d field types were unsupported. You can rebuild them manually inside SureForms.",C,"sureforms"),C)))),React.createElement(pB,null),React.createElement(PB,{continueProps:{onClick:T,text:(0,je.__)("Continue","sureforms")}}))}return React.createElement("div",{className:"space-y-4"},React.createElement(dB,{title:(0,je.__)("Bring your existing forms with you","sureforms"),description:(0,je.__)("We detected forms in another plugin. Pick one to import into SureForms.","sureforms")}),React.createElement("div",{role:"radiogroup","aria-label":(0,je.__)("Choose a form plugin to import from","sureforms"),className:"space-y-2"},u.map((function(e){return React.createElement(sY,{key:e.key,source:e,selected:e.key===h,onSelect:function(e){return m(e.key)},disabled:"importing"===g})}))),React.createElement(fB,{size:13,color:"secondary"},(0,je.__)("Importing more than one plugin? You can import additional sources later from Settings → Migration.","sureforms")),"error"===g&&React.createElement($U,{variant:"warning",title:(0,je.__)("Import did not complete","sureforms"),content:j}),React.createElement(pB,null),React.createElement(PB,{backProps:{onClick:l},skipProps:{onClick:function(){a.markStepSkipped("importForms"),c()},text:(0,je.__)("I'll do this later","sureforms")},continueProps:{onClick:"error"===g?function(){v("idle"),E("")}:N,text:"importing"===g?(0,je.__)("Importing…","sureforms"):"error"===g?(0,je.__)("Retry","sureforms"):S,disabled:!O||"importing"===g,icon:"importing"===g?React.createElement(rb,{variant:"secondary"}):void 0}}))},mY=o.p+"images/cache-conflict.d708b4e3.svg";function yY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var gY=[(0,je.__)("Exclude SureForms pages from the cache completely","sureforms"),(0,je.__)("Clear your browser cache after changing plugin settings","sureforms"),(0,je.__)("Prevent failed form submissions and unexpected caching errors","sureforms")];const vY=function(){var e,t,n,r,o=GF(),a=o.navigateToNextRoute,s=o.navigateToPreviousRoute,l=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yY(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yY(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(WF(),2),c=l[0],u=l[1],f=null!==(e=null==c||null===(t=c.analytics)||void 0===t?void 0:t.cacheConflictAcknowledged)&&void 0!==e?e:null;(0,i.useEffect)((function(){null===f&&u.setCacheConflictAcknowledged(!1)}),[]);var d=(null===(n=srfm_admin)||void 0===n?void 0:n.caching_plugin)||"",p=(null===(r=srfm_admin)||void 0===r?void 0:r.caching_plugin_doc_url)||"";return React.createElement("div",{className:"space-y-4"},React.createElement("div",{className:xB},React.createElement("object",{type:"image/svg+xml",data:mY,className:"pointer-events-none block h-auto w-full","aria-label":(0,je.__)("Illustration comparing a form with and without a cache exclusion","sureforms")})),React.createElement(dB,{title:(0,je.sprintf)((0,je.__)("%s might be blocking your forms","sureforms"),d),description:(0,je.__)("Without an exclusion, visitors may see outdated pages or submissions that don't go through as expected, leading to failed form entries and frustrated users.","sureforms")}),React.createElement(hB,{heading:(0,je.__)("Keep Your Forms Working","sureforms"),items:gY}),React.createElement(Qt,{variant:"outline",size:"sm",icon:React.createElement(SV,null),iconPosition:"right",className:"[&>svg]:size-4",onClick:function(){p&&window.open(p,"_blank","noopener")},disabled:!p},(0,je.__)("View full guide","sureforms")),React.createElement(pB,null),React.createElement(PB,{backProps:{onClick:s},continueProps:{onClick:function(){u.setCacheConflictAcknowledged(!0),a()},text:(0,je.__)("I've fixed this, continue setup","sureforms")}}))};function bY(e){return bY="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},bY(e)}function wY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wY(Object(n),!0).forEach((function(t){MY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MY(e,t,n){return(t=function(e){var t=function(e){if("object"!=bY(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bY(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bY(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return EY(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?EY(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var OY=[(0,je.__)("Style your form to better match your site's design","sureforms"),(0,je.__)("Set up confirmation messages and email notifications for each submission","sureforms"),(0,je.__)("Add spam protection to block common bot submissions","sureforms"),(0,je.__)("Get weekly email reports with a summary of form activity","sureforms")];const kY=function(){var e=jY(WF(),2),t=e[0],n=e[1],r=jY((0,i.useState)(!1),2),o=r[0],a=r[1];return React.createElement("div",{className:"space-y-4"},React.createElement(dB,{title:(0,je.__)("You're All Set! 🚀","sureforms"),description:(0,je.__)("Try AI if you want a quick head start or start from scratch if you have a clear idea in mind. Forms are ready to be created, shared, and connected to your audience.","sureforms")}),React.createElement(hB,{heading:(0,je.__)("Final Touches That Make a Difference:","sureforms"),items:OY}),React.createElement(pB,null),React.createElement(PB,{containerProps:{justify:"start"},continueProps:{onClick:function(){o||(a(!0),n.setCompleted(!0),n.clearStorage(),du()({url:srfm_admin.ajax_url,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:new URLSearchParams({action:"sureforms_accept_cta",pointer_nonce:srfm_admin.pointer_nonce}).toString()}),setTimeout((function(){du()({path:"/sureforms/v1/onboarding/set-status",method:"POST",data:{completed:"yes",analyticsData:xY(xY({},t.analytics),{},{completed:!0,exitedEarly:!1})}}).then((function(){window.location.href="".concat(srfm_admin.site_url,"/wp-admin/admin.php?page=add-new-form")}))}),100))},text:(0,je.__)("Build Your First Form","sureforms"),disabled:o}}))};function SY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var NY,TY=[["welcome",React.createElement(qB,{key:"welcome"})],["connect",React.createElement(nV,{key:"connect"})],["email-delivery",React.createElement(hV,{key:"email-delivery"})],["premium-features",React.createElement(QV,{key:"premium-features"})],["import-forms",React.createElement(hY,{key:"import-forms"})],["cache-conflict",React.createElement(vY,{key:"cache-conflict"})],["user-details",React.createElement(aY,{key:"user-details"})],["done",React.createElement(kY,{key:"done"})]],AY=function(){return React.createElement(he,{path:"/onboarding",element:React.createElement(iB,null)},TY.map((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return SY(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?SY(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),n=t[0],r=t[1];return React.createElement(he,{key:n,path:n,element:r})})))},DY=function(){var e=srfm_admin||{},t=e.onboarding_completed,n=e.onboarding_redirect;return!t||n?React.createElement(we,null,React.createElement(ye,null,AY(),React.createElement(he,{path:"*",element:React.createElement(de,{to:"/onboarding/welcome",replace:!0})}))):React.createElement(we,null,React.createElement(ye,null,React.createElement(he,{path:"/",element:React.createElement(sF,null)}),AY(),React.createElement(he,{path:"*",element:React.createElement(sF,null)})))};NY=document.getElementById("srfm-dashboard-container"),document.addEventListener("DOMContentLoaded",(function(){null!==NY&&(0,i.createRoot)(NY).render(React.createElement(DY,null))}))})()})();