@zydon/common 1.0.28 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Common/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/snackbar/SnackbarProvider.d.ts +7 -0
- package/dist/components/snackbar/SnackbarProvider.d.ts.map +1 -0
- package/dist/components/snackbar/index.d.ts +3 -0
- package/dist/components/snackbar/index.d.ts.map +1 -0
- package/dist/components/snackbar/styles.d.ts +4 -0
- package/dist/components/snackbar/styles.d.ts.map +1 -0
- package/dist/{features-9ef7c9f9.js → features-d3f778dc.js} +2 -2
- package/dist/{index-d3d64aa6.js → index-bcad5e47.js} +14203 -13085
- package/dist/index.js +73 -66
- package/dist/index.umd.cjs +48 -44
- package/package.json +2 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(N,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react"),require("@mui/material"),require("@emotion/react"),require("@mui/x-date-pickers-pro"),require("@mui/x-data-grid-premium"),require("react-dom"),require("@emotion/styled"),require("react-hook-form"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","@emotion/react","@mui/x-date-pickers-pro","@mui/x-data-grid-premium","react-dom","@emotion/styled","react-hook-form","react-router-dom"],g):(N=typeof globalThis<"u"?globalThis:N||self,g(N.common={},N.React,N.material,N.react,N.xDatePickersPro,N.xDataGridPremium,N.require$$1,N.emStyled,N.reactHookForm,N.reactRouterDom))})(this,function(N,g,P,Nl,co,Xn,Rd,m2,yt,Fr){"use strict";function v2(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const xe=v2(g),Bd={duration:2,ease:[.43,.13,.23,.96]},y2={animate:{fillOpacity:[0,0,1],pathLength:[1,.4,0],transition:Bd}},b2=e=>{const t=(e==null?void 0:e.duration)||.32,r=(e==null?void 0:e.ease)||[.43,.13,.23,.96];return{duration:t,ease:r}},Pe=e=>{const t=(e==null?void 0:e.durationIn)||.64,r=(e==null?void 0:e.easeIn)||[.43,.13,.23,.96];return{duration:t,ease:r}},$e=e=>{const t=(e==null?void 0:e.durationOut)||.48,r=(e==null?void 0:e.easeOut)||[.43,.13,.23,.96];return{duration:t,ease:r}},fo=e=>{const t=(e==null?void 0:e.distance)||120,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{in:{initial:{opacity:0},animate:{opacity:1,transition:Pe},exit:{opacity:0,transition:$e}},inUp:{initial:{y:t,opacity:0},animate:{y:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{y:t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inDown:{initial:{y:-t,opacity:0},animate:{y:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{y:-t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inLeft:{initial:{x:-t,opacity:0},animate:{x:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{x:-t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inRight:{initial:{x:t,opacity:0},animate:{x:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{x:t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},out:{initial:{opacity:1},animate:{opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{opacity:1,transition:$e({durationOut:n,easeOut:o})}},outUp:{initial:{y:0,opacity:1},animate:{y:-t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}},outDown:{initial:{y:0,opacity:1},animate:{y:t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}},outLeft:{initial:{x:0,opacity:1},animate:{x:-t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}},outRight:{initial:{x:0,opacity:1},animate:{x:t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}}}},x2=e=>{const t=(e==null?void 0:e.distance)||720,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{in:{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inUp:{initial:{scale:0,opacity:0,translateY:t},animate:{scale:1,opacity:1,translateY:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateY:t,transition:$e({durationOut:n,easeOut:o})}},inDown:{initial:{scale:0,opacity:0,translateY:-t},animate:{scale:1,opacity:1,translateY:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateY:-t,transition:$e({durationOut:n,easeOut:o})}},inLeft:{initial:{scale:0,opacity:0,translateX:-t},animate:{scale:1,opacity:1,translateX:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateX:-t,transition:$e({durationOut:n,easeOut:o})}},inRight:{initial:{scale:0,opacity:0,translateX:t},animate:{scale:1,opacity:1,translateX:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateX:t,transition:$e({durationOut:n,easeOut:o})}},out:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,transition:Pe({durationIn:r,easeIn:i})}},outUp:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:-t,transition:Pe({durationIn:r,easeIn:i})}},outDown:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:t,transition:Pe({durationIn:r,easeIn:i})}},outLeft:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:-t,transition:Pe({durationIn:r,easeIn:i})}},outRight:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:t,transition:Pe({durationIn:r,easeIn:i})}}}},w2=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{inX:{initial:{rotateX:-180,opacity:0},animate:{rotateX:0,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{rotateX:-180,opacity:0,transition:$e({durationOut:r,easeOut:i})}},inY:{initial:{rotateY:-180,opacity:0},animate:{rotateY:0,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{rotateY:-180,opacity:0,transition:$e({durationOut:r,easeOut:i})}},outX:{initial:{rotateX:0,opacity:1},animate:{rotateX:70,opacity:0,transition:$e({durationOut:r,easeOut:i})}},outY:{initial:{rotateY:0,opacity:1},animate:{rotateY:70,opacity:0,transition:$e({durationOut:r,easeOut:i})}}}},C2=e=>{const t=(e==null?void 0:e.distance)||160,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{inUp:{initial:{y:t},animate:{y:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:t,transition:$e({durationOut:n,easeOut:o})}},inDown:{initial:{y:-t},animate:{y:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:-t,transition:$e({durationOut:n,easeOut:o})}},inLeft:{initial:{x:-t},animate:{x:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:-t,transition:$e({durationOut:n,easeOut:o})}},inRight:{initial:{x:t},animate:{x:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:t,transition:$e({durationOut:n,easeOut:o})}},outUp:{initial:{y:0},animate:{y:-t,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,transition:$e({durationOut:n,easeOut:o})}},outDown:{initial:{y:0},animate:{y:t,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,transition:$e({durationOut:n,easeOut:o})}},outLeft:{initial:{x:0},animate:{x:-t,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,transition:$e({durationOut:n,easeOut:o})}},outRight:{initial:{x:0},animate:{x:t,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,transition:$e({durationOut:n,easeOut:o})}}}},S2=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{inX:{initial:{scaleX:0,opacity:0},animate:{scaleX:1,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{scaleX:0,opacity:0,transition:$e({durationOut:r,easeOut:i})}},inY:{initial:{scaleY:0,opacity:0},animate:{scaleY:1,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{scaleY:0,opacity:0,transition:$e({durationOut:r,easeOut:i})}},outX:{initial:{scaleX:1,opacity:1},animate:{scaleX:0,opacity:0,transition:Pe({durationIn:t,easeIn:n})}},outY:{initial:{scaleY:1,opacity:1},animate:{scaleY:0,opacity:0,transition:Pe({durationIn:t,easeIn:n})}}}},E2=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{in:{initial:{},animate:{scale:[.3,1.1,.9,1.03,.97,1],opacity:[0,1,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{scale:[.9,1.1,.3],opacity:[1,1,0]}},inUp:{initial:{},animate:{y:[720,-24,12,-4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:{...Pe({durationIn:t,easeIn:n})}},exit:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},inDown:{initial:{},animate:{y:[-720,24,-12,4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},inLeft:{initial:{},animate:{x:[-720,24,-12,4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},inRight:{initial:{},animate:{x:[720,-24,12,-4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},out:{animate:{scale:[.9,1.1,.3],opacity:[1,1,0]}},outUp:{animate:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outDown:{animate:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outLeft:{animate:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0]}},outRight:{animate:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0]}}}},T2=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{in:{initial:{opacity:0,rotate:-360},animate:{opacity:1,rotate:0,transition:Pe({durationIn:t,easeIn:n})},exit:{opacity:0,rotate:-360,transition:$e({durationOut:r,easeOut:i})}},out:{initial:{opacity:1,rotate:0},animate:{opacity:0,rotate:-360,transition:$e({durationOut:r,easeOut:i})}}}},_2=e=>({hover:{scale:e||1.1}}),Ea=e=>{const t=(e==null?void 0:e.staggerIn)||.05,r=(e==null?void 0:e.staggerIn)||.05,n=(e==null?void 0:e.staggerIn)||.05;return{animate:{transition:{staggerChildren:t,delayChildren:r}},exit:{transition:{staggerChildren:n,staggerDirection:-1}}}},O2=e=>{const t=(e==null?void 0:e.colors)||["#19dcea","#b22cff"],r=(e==null?void 0:e.duration)||5,n=(e==null?void 0:e.ease)||"linear";return{animate:{background:t,transition:{duration:r,ease:n}}}},k2=e=>{const t=(e==null?void 0:e.duration)||5,r=(e==null?void 0:e.ease)||"easeOut";return{top:{animate:{scale:[1,1.25],y:[0,-15],transformOrigin:["50% 16%","top"],transition:{duration:t,ease:r}}},right:{animate:{scale:[1,1.25],x:[0,20],y:[0,-15],transformOrigin:["84% 50%","right"],transition:{duration:t,ease:r}}},bottom:{animate:{scale:[1,1.25],y:[0,15],transformOrigin:["50% 84%","bottom"],transition:{duration:t,ease:r}}},left:{animate:{scale:[1,1.25],x:[0,-20],y:[0,15],transformOrigin:["16% 50%","left"],transition:{duration:t,ease:r}}}}},M2=e=>{const t=(e==null?void 0:e.colors)||["#ee7752","#e73c7e","#23a6d5","#23d5ab"],r=(e==null?void 0:e.duration)||5,n=(e==null?void 0:e.ease)||"linear",i=o=>`linear-gradient(${o}deg, ${t})`;return{top:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 99%","center 1%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:r,ease:n}}},right:{animate:{backgroundPosition:["1% center","99% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:r,ease:n}}},bottom:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 1%","center 99%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:r,ease:n}}},left:{animate:{backgroundPosition:["99% center","1% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:r,ease:n}}}}};var ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zl={exports:{}},po={};/**
|
|
1
|
+
(function(R,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react"),require("@mui/material"),require("@emotion/react"),require("react-dom"),require("@mui/x-date-pickers-pro"),require("@mui/x-data-grid-premium"),require("@emotion/styled"),require("react-hook-form"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","@emotion/react","react-dom","@mui/x-date-pickers-pro","@mui/x-data-grid-premium","@emotion/styled","react-hook-form","react-router-dom"],g):(R=typeof globalThis<"u"?globalThis:R||self,g(R.common={},R.React,R.material,R.react,R.require$$1,R.xDatePickersPro,R.xDataGridPremium,R.emStyled,R.reactHookForm,R.reactRouterDom))})(this,function(R,g,P,pu,gu,So,ii,Ox,bt,jr){"use strict";function Mx(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const xe=Mx(g),Eh={duration:2,ease:[.43,.13,.23,.96]},Px={animate:{fillOpacity:[0,0,1],pathLength:[1,.4,0],transition:Eh}},Ax=e=>{const t=(e==null?void 0:e.duration)||.32,r=(e==null?void 0:e.ease)||[.43,.13,.23,.96];return{duration:t,ease:r}},Pe=e=>{const t=(e==null?void 0:e.durationIn)||.64,r=(e==null?void 0:e.easeIn)||[.43,.13,.23,.96];return{duration:t,ease:r}},$e=e=>{const t=(e==null?void 0:e.durationOut)||.48,r=(e==null?void 0:e.easeOut)||[.43,.13,.23,.96];return{duration:t,ease:r}},Eo=e=>{const t=(e==null?void 0:e.distance)||120,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{in:{initial:{opacity:0},animate:{opacity:1,transition:Pe},exit:{opacity:0,transition:$e}},inUp:{initial:{y:t,opacity:0},animate:{y:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{y:t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inDown:{initial:{y:-t,opacity:0},animate:{y:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{y:-t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inLeft:{initial:{x:-t,opacity:0},animate:{x:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{x:-t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inRight:{initial:{x:t,opacity:0},animate:{x:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{x:t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},out:{initial:{opacity:1},animate:{opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{opacity:1,transition:$e({durationOut:n,easeOut:o})}},outUp:{initial:{y:0,opacity:1},animate:{y:-t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}},outDown:{initial:{y:0,opacity:1},animate:{y:t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}},outLeft:{initial:{x:0,opacity:1},animate:{x:-t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}},outRight:{initial:{x:0,opacity:1},animate:{x:t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}}}},Dx=e=>{const t=(e==null?void 0:e.distance)||720,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{in:{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inUp:{initial:{scale:0,opacity:0,translateY:t},animate:{scale:1,opacity:1,translateY:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateY:t,transition:$e({durationOut:n,easeOut:o})}},inDown:{initial:{scale:0,opacity:0,translateY:-t},animate:{scale:1,opacity:1,translateY:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateY:-t,transition:$e({durationOut:n,easeOut:o})}},inLeft:{initial:{scale:0,opacity:0,translateX:-t},animate:{scale:1,opacity:1,translateX:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateX:-t,transition:$e({durationOut:n,easeOut:o})}},inRight:{initial:{scale:0,opacity:0,translateX:t},animate:{scale:1,opacity:1,translateX:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateX:t,transition:$e({durationOut:n,easeOut:o})}},out:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,transition:Pe({durationIn:r,easeIn:i})}},outUp:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:-t,transition:Pe({durationIn:r,easeIn:i})}},outDown:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:t,transition:Pe({durationIn:r,easeIn:i})}},outLeft:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:-t,transition:Pe({durationIn:r,easeIn:i})}},outRight:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:t,transition:Pe({durationIn:r,easeIn:i})}}}},$x=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{inX:{initial:{rotateX:-180,opacity:0},animate:{rotateX:0,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{rotateX:-180,opacity:0,transition:$e({durationOut:r,easeOut:i})}},inY:{initial:{rotateY:-180,opacity:0},animate:{rotateY:0,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{rotateY:-180,opacity:0,transition:$e({durationOut:r,easeOut:i})}},outX:{initial:{rotateX:0,opacity:1},animate:{rotateX:70,opacity:0,transition:$e({durationOut:r,easeOut:i})}},outY:{initial:{rotateY:0,opacity:1},animate:{rotateY:70,opacity:0,transition:$e({durationOut:r,easeOut:i})}}}},Ix=e=>{const t=(e==null?void 0:e.distance)||160,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{inUp:{initial:{y:t},animate:{y:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:t,transition:$e({durationOut:n,easeOut:o})}},inDown:{initial:{y:-t},animate:{y:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:-t,transition:$e({durationOut:n,easeOut:o})}},inLeft:{initial:{x:-t},animate:{x:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:-t,transition:$e({durationOut:n,easeOut:o})}},inRight:{initial:{x:t},animate:{x:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:t,transition:$e({durationOut:n,easeOut:o})}},outUp:{initial:{y:0},animate:{y:-t,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,transition:$e({durationOut:n,easeOut:o})}},outDown:{initial:{y:0},animate:{y:t,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,transition:$e({durationOut:n,easeOut:o})}},outLeft:{initial:{x:0},animate:{x:-t,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,transition:$e({durationOut:n,easeOut:o})}},outRight:{initial:{x:0},animate:{x:t,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,transition:$e({durationOut:n,easeOut:o})}}}},Fx=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{inX:{initial:{scaleX:0,opacity:0},animate:{scaleX:1,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{scaleX:0,opacity:0,transition:$e({durationOut:r,easeOut:i})}},inY:{initial:{scaleY:0,opacity:0},animate:{scaleY:1,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{scaleY:0,opacity:0,transition:$e({durationOut:r,easeOut:i})}},outX:{initial:{scaleX:1,opacity:1},animate:{scaleX:0,opacity:0,transition:Pe({durationIn:t,easeIn:n})}},outY:{initial:{scaleY:1,opacity:1},animate:{scaleY:0,opacity:0,transition:Pe({durationIn:t,easeIn:n})}}}},jx=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{in:{initial:{},animate:{scale:[.3,1.1,.9,1.03,.97,1],opacity:[0,1,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{scale:[.9,1.1,.3],opacity:[1,1,0]}},inUp:{initial:{},animate:{y:[720,-24,12,-4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:{...Pe({durationIn:t,easeIn:n})}},exit:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},inDown:{initial:{},animate:{y:[-720,24,-12,4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},inLeft:{initial:{},animate:{x:[-720,24,-12,4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},inRight:{initial:{},animate:{x:[720,-24,12,-4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},out:{animate:{scale:[.9,1.1,.3],opacity:[1,1,0]}},outUp:{animate:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outDown:{animate:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outLeft:{animate:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0]}},outRight:{animate:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0]}}}},Lx=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{in:{initial:{opacity:0,rotate:-360},animate:{opacity:1,rotate:0,transition:Pe({durationIn:t,easeIn:n})},exit:{opacity:0,rotate:-360,transition:$e({durationOut:r,easeOut:i})}},out:{initial:{opacity:1,rotate:0},animate:{opacity:0,rotate:-360,transition:$e({durationOut:r,easeOut:i})}}}},Rx=e=>({hover:{scale:e||1.1}}),Va=e=>{const t=(e==null?void 0:e.staggerIn)||.05,r=(e==null?void 0:e.staggerIn)||.05,n=(e==null?void 0:e.staggerIn)||.05;return{animate:{transition:{staggerChildren:t,delayChildren:r}},exit:{transition:{staggerChildren:n,staggerDirection:-1}}}},Nx=e=>{const t=(e==null?void 0:e.colors)||["#19dcea","#b22cff"],r=(e==null?void 0:e.duration)||5,n=(e==null?void 0:e.ease)||"linear";return{animate:{background:t,transition:{duration:r,ease:n}}}},Bx=e=>{const t=(e==null?void 0:e.duration)||5,r=(e==null?void 0:e.ease)||"easeOut";return{top:{animate:{scale:[1,1.25],y:[0,-15],transformOrigin:["50% 16%","top"],transition:{duration:t,ease:r}}},right:{animate:{scale:[1,1.25],x:[0,20],y:[0,-15],transformOrigin:["84% 50%","right"],transition:{duration:t,ease:r}}},bottom:{animate:{scale:[1,1.25],y:[0,15],transformOrigin:["50% 84%","bottom"],transition:{duration:t,ease:r}}},left:{animate:{scale:[1,1.25],x:[0,-20],y:[0,15],transformOrigin:["16% 50%","left"],transition:{duration:t,ease:r}}}}},zx=e=>{const t=(e==null?void 0:e.colors)||["#ee7752","#e73c7e","#23a6d5","#23d5ab"],r=(e==null?void 0:e.duration)||5,n=(e==null?void 0:e.ease)||"linear",i=o=>`linear-gradient(${o}deg, ${t})`;return{top:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 99%","center 1%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:r,ease:n}}},right:{animate:{backgroundPosition:["1% center","99% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:r,ease:n}}},bottom:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 1%","center 99%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:r,ease:n}}},left:{animate:{backgroundPosition:["99% center","1% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:r,ease:n}}}}};var To=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mu={exports:{}},ko={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Th;function Vx(){if(Th)return ko;Th=1;var e=g,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,u,l){var c,f={},d=null,h=null;l!==void 0&&(d=""+l),u.key!==void 0&&(d=""+u.key),u.ref!==void 0&&(h=u.ref);for(c in u)n.call(u,c)&&!o.hasOwnProperty(c)&&(f[c]=u[c]);if(s&&s.defaultProps)for(c in u=s.defaultProps,u)f[c]===void 0&&(f[c]=u[c]);return{$$typeof:t,type:s,key:d,ref:h,props:f,_owner:i.current}}return ko.Fragment=r,ko.jsx=a,ko.jsxs=a,ko}var _o={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+ge+S}}var
|
|
19
|
-
`),
|
|
20
|
-
`),Ot=Fe.length-1,
|
|
21
|
-
`+Fe[Ot].replace(" at new "," at ");return S.displayName&&
|
|
17
|
+
*/var kh;function Wx(){return kh||(kh=1,process.env.NODE_ENV!=="production"&&function(){var e=g,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,p="@@iterator";function v(S){if(S===null||typeof S!="object")return null;var V=m&&S[m]||S[p];return typeof V=="function"?V:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(S){{for(var V=arguments.length,ee=new Array(V>1?V-1:0),Te=1;Te<V;Te++)ee[Te-1]=arguments[Te];C("error",S,ee)}}function C(S,V,ee){{var Te=x.ReactDebugCurrentFrame,qe=Te.getStackAddendum();qe!==""&&(V+="%s",ee=ee.concat([qe]));var ot=ee.map(function(ze){return String(ze)});ot.unshift("Warning: "+V),Function.prototype.apply.call(console[S],console,ot)}}var E=!1,w=!1,k=!1,T=!1,O=!1,A;A=Symbol.for("react.module.reference");function L(S){return!!(typeof S=="string"||typeof S=="function"||S===n||S===o||O||S===i||S===l||S===c||T||S===h||E||w||k||typeof S=="object"&&S!==null&&(S.$$typeof===d||S.$$typeof===f||S.$$typeof===a||S.$$typeof===s||S.$$typeof===u||S.$$typeof===A||S.getModuleId!==void 0))}function Z(S,V,ee){var Te=S.displayName;if(Te)return Te;var qe=V.displayName||V.name||"";return qe!==""?ee+"("+qe+")":ee}function pe(S){return S.displayName||"Context"}function se(S){if(S==null)return null;if(typeof S.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case c:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case s:var V=S;return pe(V)+".Consumer";case a:var ee=S;return pe(ee._context)+".Provider";case u:return Z(S,S.render,"ForwardRef");case f:var Te=S.displayName||null;return Te!==null?Te:se(S.type)||"Memo";case d:{var qe=S,ot=qe._payload,ze=qe._init;try{return se(ze(ot))}catch{return null}}}return null}var q=Object.assign,G=0,me,Ee,Ie,_e,$,j,X;function te(){}te.__reactDisabledLog=!0;function H(){{if(G===0){me=console.log,Ee=console.info,Ie=console.warn,_e=console.error,$=console.group,j=console.groupCollapsed,X=console.groupEnd;var S={configurable:!0,enumerable:!0,value:te,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}G++}}function fe(){{if(G--,G===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},S,{value:me}),info:q({},S,{value:Ee}),warn:q({},S,{value:Ie}),error:q({},S,{value:_e}),group:q({},S,{value:$}),groupCollapsed:q({},S,{value:j}),groupEnd:q({},S,{value:X})})}G<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=x.ReactCurrentDispatcher,ge;function Q(S,V,ee){{if(ge===void 0)try{throw Error()}catch(qe){var Te=qe.stack.trim().match(/\n( *(at )?)/);ge=Te&&Te[1]||""}return`
|
|
18
|
+
`+ge+S}}var J=!1,ne;{var be=typeof WeakMap=="function"?WeakMap:Map;ne=new be}function N(S,V){if(!S||J)return"";{var ee=ne.get(S);if(ee!==void 0)return ee}var Te;J=!0;var qe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ot;ot=ue.current,ue.current=null,H();try{if(V){var ze=function(){throw Error()};if(Object.defineProperty(ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ze,[])}catch(tn){Te=tn}Reflect.construct(S,[],ze)}else{try{ze.call()}catch(tn){Te=tn}S.call(ze.prototype)}}else{try{throw Error()}catch(tn){Te=tn}S()}}catch(tn){if(tn&&Te&&typeof tn.stack=="string"){for(var Fe=tn.stack.split(`
|
|
19
|
+
`),Ht=Te.stack.split(`
|
|
20
|
+
`),Ot=Fe.length-1,At=Ht.length-1;Ot>=1&&At>=0&&Fe[Ot]!==Ht[At];)At--;for(;Ot>=1&&At>=0;Ot--,At--)if(Fe[Ot]!==Ht[At]){if(Ot!==1||At!==1)do if(Ot--,At--,At<0||Fe[Ot]!==Ht[At]){var pr=`
|
|
21
|
+
`+Fe[Ot].replace(" at new "," at ");return S.displayName&&pr.includes("<anonymous>")&&(pr=pr.replace("<anonymous>",S.displayName)),typeof S=="function"&&ne.set(S,pr),pr}while(Ot>=1&&At>=0);break}}}finally{J=!1,ue.current=ot,fe(),Error.prepareStackTrace=qe}var Co=S?S.displayName||S.name:"",_x=Co?Q(Co):"";return typeof S=="function"&&ne.set(S,_x),_x}function Ne(S,V,ee){return N(S,!1)}function le(S){var V=S.prototype;return!!(V&&V.isReactComponent)}function pt(S,V,ee){if(S==null)return"";if(typeof S=="function")return N(S,le(S));if(typeof S=="string")return Q(S);switch(S){case l:return Q("Suspense");case c:return Q("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case u:return Ne(S.render);case f:return pt(S.type,V,ee);case d:{var Te=S,qe=Te._payload,ot=Te._init;try{return pt(ot(qe),V,ee)}catch{}}}return""}var Qt=Object.prototype.hasOwnProperty,Wt={},Qr=x.ReactDebugCurrentFrame;function Cr(S){if(S){var V=S._owner,ee=pt(S.type,S._source,V?V.type:null);Qr.setExtraStackFrame(ee)}else Qr.setExtraStackFrame(null)}function Sr(S,V,ee,Te,qe){{var ot=Function.call.bind(Qt);for(var ze in S)if(ot(S,ze)){var Fe=void 0;try{if(typeof S[ze]!="function"){var Ht=Error((Te||"React class")+": "+ee+" type `"+ze+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[ze]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ht.name="Invariant Violation",Ht}Fe=S[ze](V,ze,Te,ee,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ot){Fe=Ot}Fe&&!(Fe instanceof Error)&&(Cr(qe),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Te||"React class",ee,ze,typeof Fe),Cr(null)),Fe instanceof Error&&!(Fe.message in Wt)&&(Wt[Fe.message]=!0,Cr(qe),b("Failed %s type: %s",ee,Fe.message),Cr(null))}}}var Ba=Array.isArray;function Cn(S){return Ba(S)}function ri(S){{var V=typeof Symbol=="function"&&Symbol.toStringTag,ee=V&&S[Symbol.toStringTag]||S.constructor.name||"Object";return ee}}function K(S){try{return ve(S),!1}catch{return!0}}function ve(S){return""+S}function ft(S){if(K(S))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ri(S)),ve(S)}var I=x.ReactCurrentOwner,M={key:!0,ref:!0,__self:!0,__source:!0},B,z,Ce;Ce={};function Oe(S){if(Qt.call(S,"ref")){var V=Object.getOwnPropertyDescriptor(S,"ref").get;if(V&&V.isReactWarning)return!1}return S.ref!==void 0}function Be(S){if(Qt.call(S,"key")){var V=Object.getOwnPropertyDescriptor(S,"key").get;if(V&&V.isReactWarning)return!1}return S.key!==void 0}function D(S,V){if(typeof S.ref=="string"&&I.current&&V&&I.current.stateNode!==V){var ee=se(I.current.type);Ce[ee]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',se(I.current.type),S.ref),Ce[ee]=!0)}}function F(S,V){{var ee=function(){B||(B=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};ee.isReactWarning=!0,Object.defineProperty(S,"key",{get:ee,configurable:!0})}}function ce(S,V){{var ee=function(){z||(z=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};ee.isReactWarning=!0,Object.defineProperty(S,"ref",{get:ee,configurable:!0})}}var oe=function(S,V,ee,Te,qe,ot,ze){var Fe={$$typeof:t,type:S,key:V,ref:ee,props:ze,_owner:ot};return Fe._store={},Object.defineProperty(Fe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Fe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Te}),Object.defineProperty(Fe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:qe}),Object.freeze&&(Object.freeze(Fe.props),Object.freeze(Fe)),Fe};function ie(S,V,ee,Te,qe){{var ot,ze={},Fe=null,Ht=null;ee!==void 0&&(ft(ee),Fe=""+ee),Be(V)&&(ft(V.key),Fe=""+V.key),Oe(V)&&(Ht=V.ref,D(V,qe));for(ot in V)Qt.call(V,ot)&&!M.hasOwnProperty(ot)&&(ze[ot]=V[ot]);if(S&&S.defaultProps){var Ot=S.defaultProps;for(ot in Ot)ze[ot]===void 0&&(ze[ot]=Ot[ot])}if(Fe||Ht){var At=typeof S=="function"?S.displayName||S.name||"Unknown":S;Fe&&F(ze,At),Ht&&ce(ze,At)}return oe(S,Fe,Ht,qe,Te,I.current,ze)}}var Me=x.ReactCurrentOwner,lt=x.ReactDebugCurrentFrame;function et(S){if(S){var V=S._owner,ee=pt(S.type,S._source,V?V.type:null);lt.setExtraStackFrame(ee)}else lt.setExtraStackFrame(null)}var tt;tt=!1;function _t(S){return typeof S=="object"&&S!==null&&S.$$typeof===t}function yt(){{if(Me.current){var S=se(Me.current.type);if(S)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+S+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+S+"`."}return""}}function Lt(S){{if(S!==void 0){var V=S.fileName.replace(/^.*[\\\/]/,""),ee=S.lineNumber;return`
|
|
24
24
|
|
|
25
|
-
Check your code at `+V+":"+
|
|
25
|
+
Check your code at `+V+":"+ee+"."}return""}}var Jr={};function en(S){{var V=yt();if(!V){var ee=typeof S=="string"?S:S.displayName||S.name;ee&&(V=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+J+">.")}return V}}function Kn(S,V){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var J=Zr(V);if(Xr[J])return;Xr[J]=!0;var Te="";S&&S._owner&&S._owner!==Me.current&&(Te=" It was passed a child from "+se(S._owner.type)+"."),et(S),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',J,Te),et(null)}}function Sa(S,V){{if(typeof S!="object")return;if(bn(S))for(var J=0;J<S.length;J++){var Te=S[J];_t(Te)&&Kn(Te,V)}else if(_t(S))S._store&&(S._store.validated=!0);else if(S){var qe=v(S);if(typeof qe=="function"&&qe!==S.entries)for(var it=qe.call(S),ze;!(ze=it.next()).done;)_t(ze.value)&&Kn(ze.value,V)}}}function Bl(S){{var V=S.type;if(V==null||typeof V=="string")return;var J;if(typeof V=="function")J=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===u||V.$$typeof===f))J=V.propTypes;else return;if(J){var Te=se(V);Cr(J,S.props,"prop",Te,S)}else if(V.PropTypes!==void 0&&!tt){tt=!0;var qe=se(V);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",qe||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wX(S){{for(var V=Object.keys(S.props),J=0;J<V.length;J++){var Te=V[J];if(Te!=="children"&&Te!=="key"){et(S),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),et(null);break}}S.ref!==null&&(et(S),b("Invalid attribute `ref` supplied to `React.Fragment`."),et(null))}}function p2(S,V,J,Te,qe,it){{var ze=L(S);if(!ze){var Fe="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(Fe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Wt=Ft(qe);Wt?Fe+=Wt:Fe+=vt();var Ot;S===null?Ot="null":bn(S)?Ot="array":S!==void 0&&S.$$typeof===t?(Ot="<"+(se(S.type)||"Unknown")+" />",Fe=" Did you accidentally export a JSX literal instead of a component?"):Ot=typeof S,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ot,Fe)}var Pt=ie(S,V,J,qe,it);if(Pt==null)return Pt;if(ze){var hr=V.children;if(hr!==void 0)if(Te)if(bn(hr)){for(var uo=0;uo<hr.length;uo++)Sa(hr[uo],S);Object.freeze&&Object.freeze(hr)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Sa(hr,S)}return S===n?wX(Pt):Bl(Pt),Pt}}function CX(S,V,J){return p2(S,V,J,!0)}function SX(S,V,J){return p2(S,V,J,!1)}var EX=SX,TX=CX;go.Fragment=n,go.jsx=EX,go.jsxs=TX}()),go}process.env.NODE_ENV==="production"?zl.exports=P2():zl.exports=A2();var y=zl.exports;const Vd=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ta=g.createContext({}),_a=g.createContext(null),Oa=typeof document<"u",Vl=Oa?g.useLayoutEffect:g.useEffect,Wl=g.createContext({strict:!1});function D2(e,t,r,n){const{visualElement:i}=g.useContext(Ta),o=g.useContext(Wl),a=g.useContext(_a),s=g.useContext(Vd).reducedMotion,u=g.useRef();n=n||o.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const l=u.current;g.useInsertionEffect(()=>{l&&l.update(r,a)});const c=g.useRef(!!window.HandoffAppearAnimations);return Vl(()=>{l&&(l.render(),c.current&&l.animationState&&l.animationState.animateChanges())}),g.useEffect(()=>{l&&(l.updateFeatures(),!c.current&&l.animationState&&l.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),l}function Zn(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $2(e,t,r){return g.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Zn(r)&&(r.current=n))},[t])}function mo(e){return typeof e=="string"||Array.isArray(e)}function ka(e){return typeof e=="object"&&typeof e.start=="function"}const Hl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ul=["initial",...Hl];function Ma(e){return ka(e.animate)||Ul.some(t=>mo(e[t]))}function Wd(e){return!!(Ma(e)||e.variants)}function I2(e,t){if(Ma(e)){const{initial:r,animate:n}=e;return{initial:r===!1||mo(r)?r:void 0,animate:mo(n)?n:void 0}}return e.inherit!==!1?t:{}}function F2(e){const{initial:t,animate:r}=I2(e,g.useContext(Ta));return g.useMemo(()=>({initial:t,animate:r}),[Hd(t),Hd(r)])}function Hd(e){return Array.isArray(e)?e.join(" "):e}const Ud={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"]},vo={};for(const e in Ud)vo[e]={isEnabled:t=>Ud[e].some(r=>!!t[r])};function Yl(e){for(const t in e)vo[t]={...vo[t],...e[t]}}const Gl=g.createContext({}),Yd=g.createContext({}),j2=Symbol.for("motionComponentSymbol");function L2({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&Yl(e);function o(s,u){let l;const c={...g.useContext(Vd),...s,layoutId:R2(s)},{isStatic:f}=c,d=F2(s),h=n(s,f);if(!f&&Oa){d.visualElement=D2(i,h,c,t);const m=g.useContext(Yd),p=g.useContext(Wl).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,p,e,m))}return xe.createElement(Ta.Provider,{value:d},l&&d.visualElement?xe.createElement(l,{visualElement:d.visualElement,...c}):null,r(i,s,$2(h,d.visualElement,u),h,f,d.visualElement))}const a=g.forwardRef(o);return a[j2]=i,a}function R2({layoutId:e}){const t=g.useContext(Gl).id;return t&&e!==void 0?t+"-"+e:e}function B2(e){function t(n,i={}){return L2(e(n,i))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}const N2=["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 ql(e){return typeof e!="string"||e.includes("-")?!1:!!(N2.indexOf(e)>-1||/[A-Z]/.test(e))}const Pa={};function z2(e){Object.assign(Pa,e)}const yo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wn=new Set(yo);function Gd(e,{layout:t,layoutId:r}){return wn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Pa[e]||e==="opacity")}const Ht=e=>!!(e&&e.getVelocity),V2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},W2=yo.length;function H2(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let a=0;a<W2;a++){const s=yo[a];if(e[s]!==void 0){const u=V2[s]||s;o+=`${u}(${e[s]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,n?"":o):r&&n&&(o="none"),o}const qd=e=>t=>typeof t=="string"&&t.startsWith(e),Kd=qd("--"),Kl=qd("var(--"),U2=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Y2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Jr=(e,t,r)=>Math.min(Math.max(r,e),t),Cn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},bo={...Cn,transform:e=>Jr(0,1,e)},Aa={...Cn,default:1},xo=e=>Math.round(e*1e5)/1e5,Da=/(-)?([\d]*\.?[\d])+/g,Xd=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,G2=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function wo(e){return typeof e=="string"}const Co=e=>({test:t=>wo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),en=Co("deg"),Sr=Co("%"),we=Co("px"),q2=Co("vh"),K2=Co("vw"),Zd={...Sr,parse:e=>Sr.parse(e)/100,transform:e=>Sr.transform(e*100)},Qd={...Cn,transform:Math.round},Jd={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,size:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,rotate:en,rotateX:en,rotateY:en,rotateZ:en,scale:Aa,scaleX:Aa,scaleY:Aa,scaleZ:Aa,skew:en,skewX:en,skewY:en,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:bo,originX:Zd,originY:Zd,originZ:we,zIndex:Qd,fillOpacity:bo,strokeOpacity:bo,numOctaves:Qd};function Xl(e,t,r,n){const{style:i,vars:o,transform:a,transformOrigin:s}=e;let u=!1,l=!1,c=!0;for(const f in t){const d=t[f];if(Kd(f)){o[f]=d;continue}const h=Jd[f],m=Y2(d,h);if(wn.has(f)){if(u=!0,a[f]=m,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(l=!0,s[f]=m):i[f]=m}if(t.transform||(u||n?i.transform=H2(e.transform,r,c,n):i.transform&&(i.transform="none")),l){const{originX:f="50%",originY:d="50%",originZ:h=0}=s;i.transformOrigin=`${f} ${d} ${h}`}}const Zl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eh(e,t,r){for(const n in t)!Ht(t[n])&&!Gd(n,r)&&(e[n]=t[n])}function X2({transformTemplate:e},t,r){return g.useMemo(()=>{const n=Zl();return Xl(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function Z2(e,t,r){const n=e.style||{},i={};return eh(i,n,e),Object.assign(i,X2(e,t,r)),e.transformValues?e.transformValues(i):i}function Q2(e,t,r){const n={},i=Z2(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const J2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function $a(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||J2.has(e)}let th=e=>!$a(e);function ex(e){e&&(th=t=>t.startsWith("on")?!$a(t):e(t))}try{ex(require("@emotion/is-prop-valid").default)}catch{}function tx(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(th(i)||r===!0&&$a(i)||!t&&!$a(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function rh(e,t,r){return typeof e=="string"?e:we.transform(t+r*e)}function rx(e,t,r){const n=rh(t,e.x,e.width),i=rh(r,e.y,e.height);return`${n} ${i}`}const nx={offset:"stroke-dashoffset",array:"stroke-dasharray"},ix={offset:"strokeDashoffset",array:"strokeDasharray"};function ox(e,t,r=1,n=0,i=!0){e.pathLength=1;const o=i?nx:ix;e[o.offset]=we.transform(-n);const a=we.transform(t),s=we.transform(r);e[o.array]=`${a} ${s}`}function Ql(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:u=0,...l},c,f,d){if(Xl(e,l,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:p}=e;h.transform&&(p&&(m.transform=h.transform),delete h.transform),p&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=rx(p,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),a!==void 0&&ox(h,a,s,u,!1)}const nh=()=>({...Zl(),attrs:{}}),Jl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ax(e,t,r,n){const i=g.useMemo(()=>{const o=nh();return Ql(o,t,{enableHardwareAcceleration:!1},Jl(n),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};eh(o,e.style,e),i.style={...o,...i.style}}return i}function sx(e=!1){return(r,n,i,{latestValues:o},a)=>{const u=(ql(r)?ax:Q2)(n,o,a,r),c={...tx(n,typeof r=="string",e),...u,ref:i},{children:f}=n,d=g.useMemo(()=>Ht(f)?f.get():f,[f]);return g.createElement(r,{...c,children:d})}}const eu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ih(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const o in r)e.style.setProperty(o,r[o])}const oh=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 ah(e,t,r,n){ih(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(oh.has(i)?i:eu(i),t.attrs[i])}function tu(e,t){const{style:r}=e,n={};for(const i in r)(Ht(r[i])||t.style&&Ht(t.style[i])||Gd(i,e))&&(n[i]=r[i]);return n}function sh(e,t){const r=tu(e,t);for(const n in e)if(Ht(e[n])||Ht(t[n])){const i=yo.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function ru(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}function lh(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ia=e=>Array.isArray(e),lx=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),ux=e=>Ia(e)?e[e.length-1]||0:e;function Fa(e){const t=Ht(e)?e.get():e;return lx(t)?t.toValue():t}function cx({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){const a={latestValues:fx(n,i,o,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}const uh=e=>(t,r)=>{const n=g.useContext(Ta),i=g.useContext(_a),o=()=>cx(e,t,n,i);return r?o():lh(o)};function fx(e,t,r,n){const i={},o=n(e,{});for(const d in o)i[d]=Fa(o[d]);let{initial:a,animate:s}=e;const u=Ma(e),l=Wd(e);t&&l&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!ka(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const m=ru(e,h);if(!m)return;const{transitionEnd:p,transition:v,...x}=m;for(const b in x){let C=x[b];if(Array.isArray(C)){const E=c?C.length-1:0;C=C[E]}C!==null&&(i[b]=C)}for(const b in p)i[b]=p[b]}),i}const bt=e=>e;class ch{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function dx(e){let t=new ch,r=new ch,n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,d=f?t:r;return l&&a.add(u),d.add(u)&&f&&i&&(n=t.order.length),u},cancel:u=>{r.remove(u),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let l=0;l<n;l++){const c=t.order[l];c(u),a.has(c)&&(s.schedule(c),e())}i=!1,o&&(o=!1,s.process(u))}};return s}const ja=["prepare","read","update","preRender","render","postRender"],hx=40;function px(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=ja.reduce((f,d)=>(f[d]=dx(()=>r=!0),f),{}),a=f=>o[f].process(i),s=()=>{const f=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(f-i.timestamp,hx),1),i.timestamp=f,i.isProcessing=!0,ja.forEach(a),i.isProcessing=!1,r&&t&&(n=!1,e(s))},u=()=>{r=!0,n=!0,i.isProcessing||e(s)};return{schedule:ja.reduce((f,d)=>{const h=o[d];return f[d]=(m,p=!1,v=!1)=>(r||u(),h.schedule(m,p,v)),f},{}),cancel:f=>ja.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:ot,cancel:jr,state:Dt,steps:nu}=px(typeof requestAnimationFrame<"u"?requestAnimationFrame:bt,!0),gx={useVisualState:uh({scrapeMotionValuesFromProps:sh,createRenderState:nh,onMount:(e,t,{renderState:r,latestValues:n})=>{ot.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),ot.render(()=>{Ql(r,n,{enableHardwareAcceleration:!1},Jl(t.tagName),e.transformTemplate),ah(t,r)})}})},mx={useVisualState:uh({scrapeMotionValuesFromProps:tu,createRenderState:Zl})};function vx(e,{forwardMotionProps:t=!1},r,n){return{...ql(e)?gx:mx,preloadedFeatures:r,useRender:sx(t),createVisualElement:n,Component:e}}function Lr(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const fh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function La(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const yx=e=>t=>fh(t)&&e(t,La(t));function Rr(e,t,r,n){return Lr(e,t,yx(r),n)}const bx=(e,t)=>r=>t(e(r)),tn=(...e)=>e.reduce(bx);function dh(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const hh=dh("dragHorizontal"),ph=dh("dragVertical");function gh(e){let t=!1;if(e==="y")t=ph();else if(e==="x")t=hh();else{const r=hh(),n=ph();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function mh(){const e=gh(!0);return e?(e(),!1):!0}class rn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function vh(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),i=(o,a)=>{if(o.type==="touch"||mh())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&ot.update(()=>s[n](o,a))};return Rr(e.current,r,i,{passive:!e.getProps()[n]})}class xx extends rn{mount(){this.unmount=tn(vh(this.node,!0),vh(this.node,!1))}unmount(){}}class wx extends rn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=tn(Lr(this.node.current,"focus",()=>this.onFocus()),Lr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const yh=(e,t)=>t?e===t?!0:yh(e,t.parentElement):!1;function iu(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,La(r))}class Cx extends rn{constructor(){super(...arguments),this.removeStartListeners=bt,this.removeEndListeners=bt,this.removeAccessibleListeners=bt,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),o=Rr(window,"pointerup",(s,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c}=this.node.getProps();ot.update(()=>{yh(this.node.current,s.target)?l&&l(s,u):c&&c(s,u)})},{passive:!(n.onTap||n.onPointerUp)}),a=Rr(window,"pointercancel",(s,u)=>this.cancelPress(s,u),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=tn(o,a),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||iu("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&ot.update(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=Lr(this.node.current,"keyup",a),iu("down",(s,u)=>{this.startPress(s,u)})},r=Lr(this.node.current,"keydown",t),n=()=>{this.isPressing&&iu("cancel",(o,a)=>this.cancelPress(o,a))},i=Lr(this.node.current,"blur",n);this.removeAccessibleListeners=tn(r,i)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ot.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!mh()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ot.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Rr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Lr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tn(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ou=new WeakMap,au=new WeakMap,Sx=e=>{const t=ou.get(e.target);t&&t(e)},Ex=e=>{e.forEach(Sx)};function Tx({root:e,...t}){const r=e||document;au.has(r)||au.set(r,{});const n=au.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(Ex,{root:e,...t})),n[i]}function _x(e,t,r){const n=Tx(t);return ou.set(e,r),n.observe(e),()=>{ou.delete(e),n.unobserve(e)}}const Ox={some:0,all:1};class kx extends rn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:o}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:Ox[i]},s=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=l?c:f;d&&d(u)};return _x(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(Mx(t,r))&&this.startObserver()}unmount(){}}function Mx({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const Px={inView:{Feature:kx},tap:{Feature:Cx},focus:{Feature:wx},hover:{Feature:xx}};function bh(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Ax(e){const t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function Dx(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Ra(e,t,r){const n=e.getProps();return ru(n,t,r!==void 0?r:n.custom,Ax(e),Dx(e))}const $x="data-"+eu("framerAppearId");let So=bt,pr=bt;process.env.NODE_ENV!=="production"&&(So=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},pr=(e,t)=>{if(!e)throw new Error(t)});const nn=e=>e*1e3,Br=e=>e/1e3,Ix={current:!1},xh=e=>Array.isArray(e)&&typeof e[0]=="number";function wh(e){return!!(!e||typeof e=="string"&&Ch[e]||xh(e)||Array.isArray(e)&&e.every(wh))}const Eo=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Ch={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Eo([0,.65,.55,1]),circOut:Eo([.55,0,1,.45]),backIn:Eo([.31,.01,.66,-.59]),backOut:Eo([.33,1.53,.69,.99])};function Sh(e){if(e)return xh(e)?Eo(e):Array.isArray(e)?e.map(Sh):Ch[e]}function Fx(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:u}={}){const l={[t]:r};u&&(l.offset=u);const c=Sh(s);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function jx(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const Eh=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Lx=1e-7,Rx=12;function Bx(e,t,r,n,i){let o,a,s=0;do a=t+(r-t)/2,o=Eh(a,n,i)-e,o>0?r=a:t=a;while(Math.abs(o)>Lx&&++s<Rx);return a}function To(e,t,r,n){if(e===t&&r===n)return bt;const i=o=>Bx(o,0,1,e,r);return o=>o===0||o===1?o:Eh(i(o),t,n)}const Nx=To(.42,0,1,1),zx=To(0,0,.58,1),Th=To(.42,0,.58,1),Vx=e=>Array.isArray(e)&&typeof e[0]!="number",_h=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Oh=e=>t=>1-e(1-t),kh=e=>1-Math.sin(Math.acos(e)),su=Oh(kh),Wx=_h(su),Mh=To(.33,1.53,.69,.99),lu=Oh(Mh),Hx=_h(lu),Ph={linear:bt,easeIn:Nx,easeInOut:Th,easeOut:zx,circIn:kh,circInOut:Wx,circOut:su,backIn:lu,backInOut:Hx,backOut:Mh,anticipate:e=>(e*=2)<1?.5*lu(e):.5*(2-Math.pow(2,-10*(e-1)))},Ah=e=>{if(Array.isArray(e)){pr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,i]=e;return To(t,r,n,i)}else if(typeof e=="string")return pr(Ph[e]!==void 0,`Invalid easing type '${e}'`),Ph[e];return e},uu=(e,t)=>r=>!!(wo(r)&&G2.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Dh=(e,t,r)=>n=>{if(!wo(n))return n;const[i,o,a,s]=n.match(Da);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Ux=e=>Jr(0,255,e),cu={...Cn,transform:e=>Math.round(Ux(e))},Sn={test:uu("rgb","red"),parse:Dh("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+cu.transform(e)+", "+cu.transform(t)+", "+cu.transform(r)+", "+xo(bo.transform(n))+")"};function Yx(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const fu={test:uu("#"),parse:Yx,transform:Sn.transform},Qn={test:uu("hsl","hue"),parse:Dh("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Sr.transform(xo(t))+", "+Sr.transform(xo(r))+", "+xo(bo.transform(n))+")"},zt={test:e=>Sn.test(e)||fu.test(e)||Qn.test(e),parse:e=>Sn.test(e)?Sn.parse(e):Qn.test(e)?Qn.parse(e):fu.parse(e),transform:e=>wo(e)?e:e.hasOwnProperty("red")?Sn.transform(e):Qn.transform(e)},pt=(e,t,r)=>-r*e+r*t+e;function du(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Gx({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=du(u,s,e+1/3),o=du(u,s,e),a=du(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const hu=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},qx=[fu,Sn,Qn],Kx=e=>qx.find(t=>t.test(e));function $h(e){const t=Kx(e);pr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Qn&&(r=Gx(r)),r}const Ih=(e,t)=>{const r=$h(e),n=$h(t),i={...r};return o=>(i.red=hu(r.red,n.red,o),i.green=hu(r.green,n.green,o),i.blue=hu(r.blue,n.blue,o),i.alpha=pt(r.alpha,n.alpha,o),Sn.transform(i))};function Xx(e){var t,r;return isNaN(e)&&wo(e)&&(((t=e.match(Da))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Xd))===null||r===void 0?void 0:r.length)||0)>0}const Fh={regex:U2,countKey:"Vars",token:"${v}",parse:bt},jh={regex:Xd,countKey:"Colors",token:"${c}",parse:zt.parse},Lh={regex:Da,countKey:"Numbers",token:"${n}",parse:Cn.parse};function pu(e,{regex:t,countKey:r,token:n,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function Ba(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&pu(r,Fh),pu(r,jh),pu(r,Lh),r}function Rh(e){return Ba(e).values}function Bh(e){const{values:t,numColors:r,numVars:n,tokenised:i}=Ba(e),o=t.length;return a=>{let s=i;for(let u=0;u<o;u++)u<n?s=s.replace(Fh.token,a[u]):u<n+r?s=s.replace(jh.token,zt.transform(a[u])):s=s.replace(Lh.token,xo(a[u]));return s}}const Zx=e=>typeof e=="number"?0:e;function Qx(e){const t=Rh(e);return Bh(e)(t.map(Zx))}const on={test:Xx,parse:Rh,createTransformer:Bh,getAnimatableNone:Qx},Nh=(e,t)=>r=>`${r>0?t:e}`;function zh(e,t){return typeof e=="number"?r=>pt(e,t,r):zt.test(e)?Ih(e,t):e.startsWith("var(")?Nh(e,t):Wh(e,t)}const Vh=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>zh(o,t[a]));return o=>{for(let a=0;a<n;a++)r[a]=i[a](o);return r}},Jx=(e,t)=>{const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=zh(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}},Wh=(e,t)=>{const r=on.createTransformer(t),n=Ba(e),i=Ba(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?tn(Vh(n.values,i.values),r):(So(!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.`),Nh(e,t))},_o=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Hh=(e,t)=>r=>pt(e,t,r);function ew(e){return typeof e=="number"?Hh:typeof e=="string"?zt.test(e)?Ih:Wh:Array.isArray(e)?Vh:typeof e=="object"?Jx:Hh}function tw(e,t,r){const n=[],i=r||ew(e[0]),o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||bt:t;s=tn(u,s)}n.push(s)}return n}function Uh(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;if(pr(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=tw(t,n,i),s=a.length,u=l=>{let c=0;if(s>1)for(;c<e.length-2&&!(l<e[c+1]);c++);const f=_o(e[c],e[c+1],l);return a[c](f)};return r?l=>u(Jr(e[0],e[o-1],l)):u}function rw(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=_o(0,t,n);e.push(pt(r,1,i))}}function nw(e){const t=[0];return rw(t,e.length-1),t}function iw(e,t){return e.map(r=>r*t)}function ow(e,t){return e.map(()=>t||Th).splice(0,e.length-1)}function Na({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=Vx(n)?n.map(Ah):Ah(n),o={done:!1,value:t[0]},a=iw(r&&r.length===t.length?r:nw(t),e),s=Uh(a,t,{ease:Array.isArray(i)?i:ow(t,i)});return{calculatedDuration:e,next:u=>(o.value=s(u),o.done=u>=e,o)}}function Yh(e,t){return t?e*(1e3/t):0}const aw=5;function Gh(e,t,r){const n=Math.max(t-aw,0);return Yh(r-e(n),t-n)}const gu=.001,sw=.01,qh=10,lw=.05,uw=1;function cw({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;So(e<=nn(qh),"Spring duration must be 10 seconds or less");let a=1-t;a=Jr(lw,uw,a),e=Jr(sw,qh,Br(e)),a<1?(i=l=>{const c=l*a,f=c*e,d=c-r,h=mu(l,a),m=Math.exp(-f);return gu-d/h*m},o=l=>{const f=l*a*e,d=f*r+r,h=Math.pow(a,2)*Math.pow(l,2)*e,m=Math.exp(-f),p=mu(Math.pow(l,2),a);return(-i(l)+gu>0?-1:1)*((d-h)*m)/p}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-gu+c*f},o=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=dw(i,o,s);if(e=nn(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const fw=12;function dw(e,t,r){let n=r;for(let i=1;i<fw;i++)n=n-e(n)/t(n);return n}function mu(e,t){return e*Math.sqrt(1-t*t)}const hw=["duration","bounce"],pw=["stiffness","damping","mass"];function Kh(e,t){return t.some(r=>e[r]!==void 0)}function gw(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Kh(e,pw)&&Kh(e,hw)){const r=cw(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Xh({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:d}=gw(n),h=c?-Br(c):0,m=u/(2*Math.sqrt(s*l)),p=o-i,v=Br(Math.sqrt(s/l)),x=Math.abs(p)<5;r||(r=x?.01:2),t||(t=x?.005:.5);let b;if(m<1){const C=mu(v,m);b=E=>{const w=Math.exp(-m*v*E);return o-w*((h+m*v*p)/C*Math.sin(C*E)+p*Math.cos(C*E))}}else if(m===1)b=C=>o-Math.exp(-v*C)*(p+(h+v*p)*C);else{const C=v*Math.sqrt(m*m-1);b=E=>{const w=Math.exp(-m*v*E),_=Math.min(C*E,300);return o-w*((h+m*v*p)*Math.sinh(_)+C*p*Math.cosh(_))/C}}return{calculatedDuration:d&&f||null,next:C=>{const E=b(C);if(d)a.done=C>=f;else{let w=h;C!==0&&(m<1?w=Gh(b,C,E):w=0);const _=Math.abs(w)<=r,O=Math.abs(o-E)<=t;a.done=_&&O}return a.value=a.done?o:E,a}}}function Zh({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=k=>s!==void 0&&k<s||u!==void 0&&k>u,m=k=>s===void 0?u:u===void 0||Math.abs(s-k)<Math.abs(u-k)?s:u;let p=r*t;const v=f+p,x=a===void 0?v:a(v);x!==v&&(p=x-f);const b=k=>-p*Math.exp(-k/n),C=k=>x+b(k),E=k=>{const D=b(k),L=C(k);d.done=Math.abs(D)<=l,d.value=d.done?x:L};let w,_;const O=k=>{h(d.value)&&(w=k,_=Xh({keyframes:[d.value,m(d.value)],velocity:Gh(C,k,d.value),damping:i,stiffness:o,restDelta:l,restSpeed:c}))};return O(0),{calculatedDuration:null,next:k=>{let D=!1;return!_&&w===void 0&&(D=!0,E(k),O(k)),w!==void 0&&k>w?_.next(k-w):(!D&&E(k),d)}}}const mw=e=>{const t=({timestamp:r})=>e(r);return{start:()=>ot.update(t,!0),stop:()=>jr(t),now:()=>Dt.isProcessing?Dt.timestamp:performance.now()}},Qh=2e4;function Jh(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<Qh;)t+=r,n=e.next(t);return t>=Qh?1/0:t}const vw={decay:Zh,inertia:Zh,tween:Na,keyframes:Na,spring:Xh};function za({autoplay:e=!0,delay:t=0,driver:r=mw,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:u,onStop:l,onComplete:c,onUpdate:f,...d}){let h=1,m=!1,p,v;const x=()=>{v=new Promise(j=>{p=j})};x();let b;const C=vw[i]||Na;let E;C!==Na&&typeof n[0]!="number"&&(E=Uh([0,100],n,{clamp:!1}),n=[0,100]);const w=C({...d,keyframes:n});let _;s==="mirror"&&(_=C({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let O="idle",k=null,D=null,L=null;w.calculatedDuration===null&&o&&(w.calculatedDuration=Jh(w));const{calculatedDuration:re}=w;let pe=1/0,se=1/0;re!==null&&(pe=re+a,se=pe*(o+1)-a);let q=0;const G=j=>{if(D===null)return;h>0&&(D=Math.min(D,j)),h<0&&(D=Math.min(j-se/h,D)),k!==null?q=k:q=Math.round(j-D)*h;const X=q-t*(h>=0?1:-1),ee=h>=0?X<0:X>se;q=Math.max(X,0),O==="finished"&&k===null&&(q=se);let H=q,fe=w;if(o){const Q=q/pe;let ne=Math.floor(Q),be=Q%1;!be&&Q>=1&&(be=1),be===1&&ne--,ne=Math.min(ne,o+1);const R=!!(ne%2);R&&(s==="reverse"?(be=1-be,a&&(be-=a/pe)):s==="mirror"&&(fe=_));let Be=Jr(0,1,be);q>se&&(Be=s==="reverse"&&R?1:0),H=Be*pe}const ue=ee?{done:!1,value:n[0]}:fe.next(H);E&&(ue.value=E(ue.value));let{done:ge}=ue;!ee&&re!==null&&(ge=h>=0?q>=se:q<=0);const Z=k===null&&(O==="finished"||O==="running"&&ge);return f&&f(ue.value),Z&&Ie(),ue},me=()=>{b&&b.stop(),b=void 0},Ee=()=>{O="idle",me(),p(),x(),D=L=null},Ie=()=>{O="finished",c&&c(),me(),p()},Oe=()=>{if(m)return;b||(b=r(G));const j=b.now();u&&u(),k!==null?D=j-k:(!D||O==="finished")&&(D=j),O==="finished"&&x(),L=D,k=null,O="running",b.start()};e&&Oe();const $={then(j,X){return v.then(j,X)},get time(){return Br(q)},set time(j){j=nn(j),q=j,k!==null||!b||h===0?k=j:D=b.now()-j/h},get duration(){const j=w.calculatedDuration===null?Jh(w):w.calculatedDuration;return Br(j)},get speed(){return h},set speed(j){j===h||!b||(h=j,$.time=Br(q))},get state(){return O},play:Oe,pause:()=>{O="paused",k=q},stop:()=>{m=!0,O!=="idle"&&(O="idle",l&&l(),Ee())},cancel:()=>{L!==null&&G(L),Ee()},complete:()=>{O="finished"},sample:j=>(D=0,G(j))};return $}function yw(e){let t;return()=>(t===void 0&&(t=e()),t)}const bw=yw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),xw=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Va=10,ww=2e4,Cw=(e,t)=>t.type==="spring"||e==="backgroundColor"||!wh(t.ease);function Sw(e,t,{onUpdate:r,onComplete:n,...i}){if(!(bw()&&xw.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let a=!1,s,u;const l=()=>{u=new Promise(b=>{s=b})};l();let{keyframes:c,duration:f=300,ease:d,times:h}=i;if(Cw(t,i)){const b=za({...i,repeat:0,delay:0});let C={done:!1,value:c[0]};const E=[];let w=0;for(;!C.done&&w<ww;)C=b.sample(w),E.push(C.value),w+=Va;h=void 0,c=E,f=w-Va,d="linear"}const m=Fx(e.owner.current,t,c,{...i,duration:f,ease:d,times:h});i.syncStart&&(m.startTime=Dt.isProcessing?Dt.timestamp:performance.now());const p=()=>m.cancel(),v=()=>{ot.update(p),s(),l()};return m.onfinish=()=>{e.set(jx(c,i)),n&&n(),v()},{then(b,C){return u.then(b,C)},attachTimeline(b){return m.timeline=b,m.onfinish=null,bt},get time(){return Br(m.currentTime||0)},set time(b){m.currentTime=nn(b)},get speed(){return m.playbackRate},set speed(b){m.playbackRate=b},get duration(){return Br(f)},play:()=>{a||(m.play(),jr(p))},pause:()=>m.pause(),stop:()=>{if(a=!0,m.playState==="idle")return;const{currentTime:b}=m;if(b){const C=za({...i,autoplay:!1});e.setWithVelocity(C.sample(b-Va).value,C.sample(b).value,Va)}v()},complete:()=>m.finish(),cancel:v}}function Ew({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:bt,pause:bt,stop:bt,then:o=>(o(),Promise.resolve()),cancel:bt,complete:bt});return t?za({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const Tw={type:"spring",stiffness:500,damping:25,restSpeed:10},_w=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ow={type:"keyframes",duration:.8},kw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Mw=(e,{keyframes:t})=>t.length>2?Ow:wn.has(e)?e.startsWith("scale")?_w(t[1]):Tw:kw,vu=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(on.test(t)||t==="0")&&!t.startsWith("url(")),Pw=new Set(["brightness","contrast","saturate","opacity"]);function Aw(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Da)||[];if(!n)return e;const i=r.replace(n,"");let o=Pw.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const Dw=/([a-z-]*)\(.*?\)/g,yu={...on,getAnimatableNone:e=>{const t=e.match(Dw);return t?t.map(Aw).join(" "):e}},$w={...Jd,color:zt,backgroundColor:zt,outlineColor:zt,fill:zt,stroke:zt,borderColor:zt,borderTopColor:zt,borderRightColor:zt,borderBottomColor:zt,borderLeftColor:zt,filter:yu,WebkitFilter:yu},bu=e=>$w[e];function ep(e,t){let r=bu(e);return r!==yu&&(r=on),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const tp=e=>/^0[^.\s]+$/.test(e);function Iw(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||tp(e)}function Fw(e,t,r,n){const i=vu(t,r);let o;Array.isArray(r)?o=[...r]:o=[null,r];const a=n.from!==void 0?n.from:e.get();let s;const u=[];for(let l=0;l<o.length;l++)o[l]===null&&(o[l]=l===0?a:o[l-1]),Iw(o[l])&&u.push(l),typeof o[l]=="string"&&o[l]!=="none"&&o[l]!=="0"&&(s=o[l]);if(i&&u.length&&s)for(let l=0;l<u.length;l++){const c=u[l];o[c]=ep(t,s)}return o}function jw({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:u,elapsed:l,...c}){return!!Object.keys(c).length}function rp(e,t){return e[t]||e.default||e}const xu=(e,t,r,n={})=>i=>{const o=rp(n,e)||{},a=o.delay||n.delay||0;let{elapsed:s=0}=n;s=s-nn(a);const u=Fw(t,e,r,o),l=u[0],c=u[u.length-1],f=vu(e,l),d=vu(e,c);So(f===d,`You are trying to animate ${e} from "${l}" to "${c}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${c} via the \`style\` property.`);let h={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-s,onUpdate:m=>{t.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(jw(o)||(h={...h,...Mw(e,h)}),h.duration&&(h.duration=nn(h.duration)),h.repeatDelay&&(h.repeatDelay=nn(h.repeatDelay)),!f||!d||Ix.current||o.type===!1)return Ew(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=Sw(t,e,h);if(m)return m}return za(h)};function Wa(e){return!!(Ht(e)&&e.add)}const np=e=>/^\-?\d*\.?\d+$/.test(e);function wu(e,t){e.indexOf(t)===-1&&e.push(t)}function Cu(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Su{constructor(){this.subscriptions=[]}add(t){return wu(this.subscriptions,t),()=>Cu(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ip=new Set;function Eu(e,t,r){e||ip.has(t)||(console.warn(t),r&&console.warn(r),ip.add(t))}const Lw=e=>!isNaN(parseFloat(e));class Rw{constructor(t,r={}){this.version="10.16.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:a}=Dt;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,ot.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ot.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Lw(this.current),this.owner=r.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Eu(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Su);const n=this.events[t].add(r);return t==="change"?()=>{n(),ot.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Yh(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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 Jn(e,t){return new Rw(e,t)}const op=e=>t=>t.test(e),ap=[Cn,we,Sr,en,K2,q2,{test:e=>e==="auto",parse:e=>e}],Oo=e=>ap.find(op(e)),Bw=[...ap,zt,on],Nw=e=>Bw.find(op(e));function zw(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Jn(r))}function Vw(e,t){const r=Ra(e,t);let{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};o={...o,...n};for(const a in o){const s=ux(o[a]);zw(e,a,s)}}function Ww(e,t,r){var n,i;const o=Object.keys(t).filter(s=>!e.hasValue(s)),a=o.length;if(a)for(let s=0;s<a;s++){const u=o[s],l=t[u];let c=null;Array.isArray(l)&&(c=l[0]),c===null&&(c=(i=(n=r[u])!==null&&n!==void 0?n:e.readValue(u))!==null&&i!==void 0?i:t[u]),c!=null&&(typeof c=="string"&&(np(c)||tp(c))?c=parseFloat(c):!Nw(c)&&on.test(l)&&(c=ep(u,l)),e.addValue(u,Jn(c,{owner:e})),r[u]===void 0&&(r[u]=c),c!==null&&e.setBaseTarget(u,c))}}function Hw(e,t){return t?(t[e]||t.default||t).from:void 0}function Uw(e,t,r){const n={};for(const i in e){const o=Hw(i,t);if(o!==void 0)n[i]=o;else{const a=r.getValue(i);a&&(n[i]=a.get())}}return n}function Yw({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function sp(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const u=e.getValue("willChange");n&&(o=n);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in s){const d=e.getValue(f),h=s[f];if(!d||h===void 0||c&&Yw(c,f))continue;const m={delay:r,elapsed:0,...o};if(window.HandoffAppearAnimations&&!d.hasAnimated){const v=e.getProps()[$x];v&&(m.elapsed=window.HandoffAppearAnimations(v,f,d,ot),m.syncStart=!0)}d.start(xu(f,d,h,e.shouldReduceMotion&&wn.has(f)?{type:!1}:m));const p=d.animation;Wa(u)&&(u.add(f),p.then(()=>u.remove(f))),l.push(p)}return a&&Promise.all(l).then(()=>{a&&Vw(e,a)}),l}function Tu(e,t,r={}){const n=Ra(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const o=n?()=>Promise.all(sp(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:f}=i;return Gw(e,t,l+u,c,f,r)}:()=>Promise.resolve(),{when:s}=i;if(s){const[u,l]=s==="beforeChildren"?[o,a]:[a,o];return u().then(()=>l())}else return Promise.all([o(),a(r.delay)])}function Gw(e,t,r=0,n=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*n,u=i===1?(l=0)=>l*n:(l=0)=>s-l*n;return Array.from(e.variantChildren).sort(qw).forEach((l,c)=>{l.notify("AnimationStart",t),a.push(Tu(l,t,{...o,delay:r+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(a)}function qw(e,t){return e.sortNodePosition(t)}function Kw(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(o=>Tu(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=Tu(e,t,r);else{const i=typeof t=="function"?Ra(e,t,r.custom):t;n=Promise.all(sp(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}const Xw=[...Hl].reverse(),Zw=Hl.length;function Qw(e){return t=>Promise.all(t.map(({animation:r,options:n})=>Kw(e,r,n)))}function Jw(e){let t=Qw(e);const r=t5();let n=!0;const i=(u,l)=>{const c=Ra(e,l);if(c){const{transition:f,transitionEnd:d,...h}=c;u={...u,...h,...d}}return u};function o(u){t=u(e)}function a(u,l){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let m={},p=1/0;for(let x=0;x<Zw;x++){const b=Xw[x],C=r[b],E=c[b]!==void 0?c[b]:f[b],w=mo(E),_=b===l?C.isActive:null;_===!1&&(p=x);let O=E===f[b]&&E!==c[b]&&w;if(O&&n&&e.manuallyAnimateOnMount&&(O=!1),C.protectedKeys={...m},!C.isActive&&_===null||!E&&!C.prevProp||ka(E)||typeof E=="boolean")continue;const k=e5(C.prevProp,E);let D=k||b===l&&C.isActive&&!O&&w||x>p&&w;const L=Array.isArray(E)?E:[E];let re=L.reduce(i,{});_===!1&&(re={});const{prevResolvedValues:pe={}}=C,se={...pe,...re},q=G=>{D=!0,h.delete(G),C.needsAnimating[G]=!0};for(const G in se){const me=re[G],Ee=pe[G];m.hasOwnProperty(G)||(me!==Ee?Ia(me)&&Ia(Ee)?!bh(me,Ee)||k?q(G):C.protectedKeys[G]=!0:me!==void 0?q(G):h.add(G):me!==void 0&&h.has(G)?q(G):C.protectedKeys[G]=!0)}C.prevProp=E,C.prevResolvedValues=re,C.isActive&&(m={...m,...re}),n&&e.blockInitialAnimation&&(D=!1),D&&!O&&d.push(...L.map(G=>({animation:G,options:{type:b,...u}})))}if(h.size){const x={};h.forEach(b=>{const C=e.getBaseTarget(b);C!==void 0&&(x[b]=C)}),d.push({animation:x})}let v=!!d.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(v=!1),n=!1,v?t(d):Promise.resolve()}function s(u,l,c){var f;if(r[u].isActive===l)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var m;return(m=h.animationState)===null||m===void 0?void 0:m.setActive(u,l)}),r[u].isActive=l;const d=a(c,u);for(const h in r)r[h].protectedKeys={};return d}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>r}}function e5(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!bh(t,e):!1}function En(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t5(){return{animate:En(!0),whileInView:En(),whileHover:En(),whileTap:En(),whileDrag:En(),whileFocus:En(),exit:En()}}class r5 extends rn{constructor(t){super(t),t.animationState||(t.animationState=Jw(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ka(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let n5=0;class i5 extends rn{constructor(){super(...arguments),this.id=n5++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&o.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const o5={animation:{Feature:r5},exit:{Feature:i5}},lp=(e,t)=>Math.abs(e-t);function a5(e,t){const r=lp(e.x,t.x),n=lp(e.y,t.y);return Math.sqrt(r**2+n**2)}class up{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=Ou(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=a5(l.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=l,{timestamp:h}=Dt;this.history.push({...d,timestamp:h});const{onStart:m,onMove:p}=this.handlers;c||(m&&m(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,l)},this.handlePointerMove=(l,c)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=_u(c,this.transformPagePoint),ot.update(this.updatePoint,!0)},this.handlePointerUp=(l,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=Ou(l.type==="pointercancel"?this.lastMoveEventInfo:_u(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(l,h),d&&d(l,h)},!fh(t))return;this.handlers=r,this.transformPagePoint=n;const i=La(t),o=_u(i,this.transformPagePoint),{point:a}=o,{timestamp:s}=Dt;this.history=[{...a,timestamp:s}];const{onSessionStart:u}=r;u&&u(t,Ou(o,this.history)),this.removeListeners=tn(Rr(window,"pointermove",this.handlePointerMove),Rr(window,"pointerup",this.handlePointerUp),Rr(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),jr(this.updatePoint)}}function _u(e,t){return t?{point:t(e.point)}:e}function cp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ou({point:e},t){return{point:e,delta:cp(e,fp(t)),offset:cp(e,s5(t)),velocity:l5(t,.1)}}function s5(e){return e[0]}function fp(e){return e[e.length-1]}function l5(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=fp(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>nn(t)));)r--;if(!n)return{x:0,y:0};const o=Br(i.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Qt(e){return e.max-e.min}function ku(e,t=0,r=.01){return Math.abs(e-t)<=r}function dp(e,t,r,n=.5){e.origin=n,e.originPoint=pt(t.min,t.max,e.origin),e.scale=Qt(r)/Qt(t),(ku(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=pt(r.min,r.max,e.origin)-e.originPoint,(ku(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ko(e,t,r,n){dp(e.x,t.x,r.x,n?n.originX:void 0),dp(e.y,t.y,r.y,n?n.originY:void 0)}function hp(e,t,r){e.min=r.min+t.min,e.max=e.min+Qt(t)}function u5(e,t,r){hp(e.x,t.x,r.x),hp(e.y,t.y,r.y)}function pp(e,t,r){e.min=t.min-r.min,e.max=e.min+Qt(t)}function Mo(e,t,r){pp(e.x,t.x,r.x),pp(e.y,t.y,r.y)}function c5(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?pt(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?pt(r,e,n.max):Math.min(e,r)),e}function gp(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function f5(e,{top:t,left:r,bottom:n,right:i}){return{x:gp(e.x,r,i),y:gp(e.y,t,n)}}function mp(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function d5(e,t){return{x:mp(e.x,t.x),y:mp(e.y,t.y)}}function h5(e,t){let r=.5;const n=Qt(e),i=Qt(t);return i>n?r=_o(t.min,t.max-n,e.min):n>i&&(r=_o(e.min,e.max-i,t.min)),Jr(0,1,r)}function p5(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Mu=.35;function g5(e=Mu){return e===!1?e=0:e===!0&&(e=Mu),{x:vp(e,"left","right"),y:vp(e,"top","bottom")}}function vp(e,t,r){return{min:yp(e,t),max:yp(e,r)}}function yp(e,t){return typeof e=="number"?e:e[t]||0}const bp=()=>({translate:0,scale:1,origin:0,originPoint:0}),ei=()=>({x:bp(),y:bp()}),xp=()=>({min:0,max:0}),kt=()=>({x:xp(),y:xp()});function Er(e){return[e("x"),e("y")]}function wp({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function m5({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function v5(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Pu(e){return e===void 0||e===1}function Au({scale:e,scaleX:t,scaleY:r}){return!Pu(e)||!Pu(t)||!Pu(r)}function Tn(e){return Au(e)||Cp(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Cp(e){return Sp(e.x)||Sp(e.y)}function Sp(e){return e&&e!=="0%"}function Ha(e,t,r){const n=e-r,i=t*n;return r+i}function Ep(e,t,r,n,i){return i!==void 0&&(e=Ha(e,i,n)),Ha(e,r,n)+t}function Du(e,t=0,r=1,n,i){e.min=Ep(e.min,t,r,n,i),e.max=Ep(e.max,t,r,n,i)}function Tp(e,{x:t,y:r}){Du(e.x,t.translate,t.scale,t.originPoint),Du(e.y,r.translate,r.scale,r.originPoint)}function y5(e,t,r,n=!1){const i=r.length;if(!i)return;t.x=t.y=1;let o,a;for(let s=0;s<i;s++){o=r[s],a=o.projectionDelta;const u=o.instance;u&&u.style&&u.style.display==="contents"||(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ti(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Tp(e,a)),n&&Tn(o.latestValues)&&ti(e,o.latestValues))}t.x=_p(t.x),t.y=_p(t.y)}function _p(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function an(e,t){e.min=e.min+t,e.max=e.max+t}function Op(e,t,[r,n,i]){const o=t[i]!==void 0?t[i]:.5,a=pt(e.min,e.max,o);Du(e,t[r],t[n],a,t.scale)}const b5=["x","scaleX","originX"],x5=["y","scaleY","originY"];function ti(e,t){Op(e.x,t,b5),Op(e.y,t,x5)}function kp(e,t){return wp(v5(e.getBoundingClientRect(),t))}function w5(e,t,r){const n=kp(e,r),{scroll:i}=t;return i&&(an(n.x,i.offset.x),an(n.y,i.offset.y)),n}const C5=new WeakMap;class S5{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=kt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=u=>{this.stopAnimation(),r&&this.snapToCursor(La(u,"page").point)},o=(u,l)=>{const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();if(c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=gh(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Er(m=>{let p=this.getAxisMotionValue(m).get()||0;if(Sr.test(p)){const{projection:v}=this.visualElement;if(v&&v.layout){const x=v.layout.layoutBox[m];x&&(p=Qt(x)*(parseFloat(p)/100))}}this.originPoint[m]=p}),d&&ot.update(()=>d(u,l),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},a=(u,l)=>{const{dragPropagation:c,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:m}=l;if(f&&this.currentDirection===null){this.currentDirection=E5(m),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",l.point,m),this.updateAxis("y",l.point,m),this.visualElement.render(),h&&h(u,l)},s=(u,l)=>this.stop(u,l);this.panSession=new up(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&ot.update(()=>o(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!Ua(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=c5(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&Zn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=f5(n.layoutBox,t):this.constraints=!1,this.elastic=g5(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Er(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=p5(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Zn(t))return!1;const n=t.current;pr(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=w5(n,i.root,this.visualElement.getTransformPagePoint());let a=d5(i.layout.layoutBox,o);if(r){const s=r(m5(a));this.hasMutatedConstraints=!!s,s&&(a=wp(s))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),u=this.constraints||{},l=Er(c=>{if(!Ua(c,r,this.currentDirection))return;let f=u&&u[c]||{};a&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,m={type:"inertia",velocity:n?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,m)});return Promise.all(l).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(xu(t,n,0,r))}stopAnimation(){Er(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Er(r=>{const{drag:n}=this.getProps();if(!Ua(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(r);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[r];o.set(t[r]-pt(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Zn(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Er(a=>{const s=this.getAxisMotionValue(a);if(s){const u=s.get();i[a]=h5({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Er(a=>{if(!Ua(a,t,null))return;const s=this.getAxisMotionValue(a),{min:u,max:l}=this.constraints[a];s.set(pt(u,l,i[a]))})}addListeners(){if(!this.visualElement.current)return;C5.set(this.visualElement,this);const t=this.visualElement.current,r=Rr(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),n=()=>{const{dragConstraints:u}=this.getProps();Zn(u)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const a=Lr(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(Er(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=u[c].translate,f.set(f.get()+u[c].translate))}),this.visualElement.render())});return()=>{a(),r(),o(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Mu,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function Ua(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function E5(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class T5 extends rn{constructor(t){super(t),this.removeGroupControls=bt,this.removeListeners=bt,this.controls=new S5(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Mp=e=>(t,r)=>{e&&ot.update(()=>e(t,r))};class _5 extends rn{constructor(){super(...arguments),this.removePointerDownListener=bt}onPointerDown(t){this.session=new up(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Mp(t),onStart:Mp(r),onMove:n,onEnd:(o,a)=>{delete this.session,i&&ot.update(()=>i(o,a))}}}mount(){this.removePointerDownListener=Rr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function O5(){const e=g.useContext(_a);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,i=g.useId();return g.useEffect(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}const Ya={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Pp(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Po={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const r=Pp(e,t.target.x),n=Pp(e,t.target.y);return`${r}% ${n}%`}},k5={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=on.parse(e);if(i.length>5)return n;const o=on.createTransformer(e),a=typeof i[0]!="number"?1:0,s=r.x.scale*t.x,u=r.y.scale*t.y;i[0+a]/=s,i[1+a]/=u;const l=pt(s,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=l),typeof i[3+a]=="number"&&(i[3+a]/=l),o(i)}};class M5 extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;z2(P5),o&&(r.group&&r.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ya.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:o}=this.props,a=n.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||ot.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ap(e){const[t,r]=O5(),n=g.useContext(Gl);return g.createElement(M5,{...e,layoutGroup:n,switchLayoutGroup:g.useContext(Yd),isPresent:t,safeToRemove:r})}const P5={borderRadius:{...Po,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Po,borderTopRightRadius:Po,borderBottomLeftRadius:Po,borderBottomRightRadius:Po,boxShadow:k5},Dp=["TopLeft","TopRight","BottomLeft","BottomRight"],A5=Dp.length,$p=e=>typeof e=="string"?parseFloat(e):e,Ip=e=>typeof e=="number"||we.test(e);function D5(e,t,r,n,i,o){i?(e.opacity=pt(0,r.opacity!==void 0?r.opacity:1,$5(n)),e.opacityExit=pt(t.opacity!==void 0?t.opacity:1,0,I5(n))):o&&(e.opacity=pt(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;a<A5;a++){const s=`border${Dp[a]}Radius`;let u=Fp(t,s),l=Fp(r,s);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||Ip(u)===Ip(l)?(e[s]=Math.max(pt($p(u),$p(l),n),0),(Sr.test(l)||Sr.test(u))&&(e[s]+="%")):e[s]=l}(t.rotate||r.rotate)&&(e.rotate=pt(t.rotate||0,r.rotate||0,n))}function Fp(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const $5=jp(0,.5,su),I5=jp(.5,.95,bt);function jp(e,t,r){return n=>n<e?0:n>t?1:r(_o(e,t,n))}function Lp(e,t){e.min=t.min,e.max=t.max}function ur(e,t){Lp(e.x,t.x),Lp(e.y,t.y)}function Rp(e,t,r,n,i){return e-=t,e=Ha(e,1/r,n),i!==void 0&&(e=Ha(e,1/i,n)),e}function F5(e,t=0,r=1,n=.5,i,o=e,a=e){if(Sr.test(t)&&(t=parseFloat(t),t=pt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=pt(o.min,o.max,n);e===o&&(s-=t),e.min=Rp(e.min,t,r,s,i),e.max=Rp(e.max,t,r,s,i)}function Bp(e,t,[r,n,i],o,a){F5(e,t[r],t[n],t[i],t.scale,o,a)}const j5=["x","scaleX","originX"],L5=["y","scaleY","originY"];function Np(e,t,r,n){Bp(e.x,t,j5,r?r.x:void 0,n?n.x:void 0),Bp(e.y,t,L5,r?r.y:void 0,n?n.y:void 0)}function zp(e){return e.translate===0&&e.scale===1}function Vp(e){return zp(e.x)&&zp(e.y)}function R5(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Wp(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Hp(e){return Qt(e.x)/Qt(e.y)}class B5{constructor(){this.members=[]}add(t){wu(this.members,t),t.scheduleRender()}remove(t){if(Cu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Up(e,t,r){let n="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:u,rotateX:l,rotateY:c}=r;u&&(n+=`rotate(${u}deg) `),l&&(n+=`rotateX(${l}deg) `),c&&(n+=`rotateY(${c}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(n+=`scale(${a}, ${s})`),n||"none"}const N5=(e,t)=>e.depth-t.depth;class z5{constructor(){this.children=[],this.isDirty=!1}add(t){wu(this.children,t),this.isDirty=!0}remove(t){Cu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(N5),this.isDirty=!1,this.children.forEach(t)}}function V5(e,t){const r=performance.now(),n=({timestamp:i})=>{const o=i-r;o>=t&&(jr(n),e(o-t))};return ot.read(n,!0),()=>jr(n)}function W5(e){window.MotionDebug&&window.MotionDebug.record(e)}function H5(e){return e instanceof SVGElement&&e.tagName!=="svg"}function U5(e,t,r){const n=Ht(e)?e:Jn(e);return n.start(xu("",n,t,r)),n.animation}const Yp=["","X","Y","Z"],Gp=1e3;let Y5=0;const _n={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function qp({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=Y5++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{_n.totalNodes=_n.resolvedTargetDeltas=_n.recalculatedProjection=0,this.nodes.forEach(K5),this.nodes.forEach(e3),this.nodes.forEach(t3),this.nodes.forEach(X5),W5(_n)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new z5)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Su),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const u=this.eventHandlers.get(a);u&&u.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=H5(a),this.instance=a;const{layoutId:u,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(l||u)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=V5(d,250),Ya.hasAnimatedSinceResize&&(Ya.hasAnimatedSinceResize=!1,this.nodes.forEach(Xp))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||a3,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=c.getProps(),b=!this.targetLayout||!Wp(this.targetLayout,m)||h,C=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,C);const E={...rp(p,"layout"),onPlay:v,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else d||Xp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,jr(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(r3),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:u}=this.options;if(s===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Kp);return}this.isUpdating||this.nodes.forEach(Q5),this.isUpdating=!1,this.nodes.forEach(J5),this.nodes.forEach(G5),this.nodes.forEach(q5),this.clearAllSnapshots();const s=performance.now();Dt.delta=Jr(0,1e3/60,s-Dt.timestamp),Dt.timestamp=s,Dt.isProcessing=!0,nu.update.process(Dt),nu.preRender.process(Dt),nu.render.process(Dt),Dt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Z5),this.sharedNodes.forEach(n3)}scheduleUpdateProjection(){ot.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){ot.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=kt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!Vp(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;a&&(s||Tn(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let u=this.removeElementScroll(s);return a&&(u=this.removeTransform(u)),s3(u),{animationId:this.root.animationId,measuredBox:s,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return kt();const s=a.measureViewportBox(),{scroll:u}=this.root;return u&&(an(s.x,u.offset.x),an(s.y,u.offset.y)),s}removeElementScroll(a){const s=kt();ur(s,a);for(let u=0;u<this.path.length;u++){const l=this.path[u],{scroll:c,options:f}=l;if(l!==this.root&&c&&f.layoutScroll){if(c.isRoot){ur(s,a);const{scroll:d}=this.root;d&&(an(s.x,-d.offset.x),an(s.y,-d.offset.y))}an(s.x,c.offset.x),an(s.y,c.offset.y)}}return s}applyTransform(a,s=!1){const u=kt();ur(u,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ti(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Tn(c.latestValues)&&ti(u,c.latestValues)}return Tn(this.latestValues)&&ti(u,this.latestValues),u}removeTransform(a){const s=kt();ur(s,a);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!Tn(l.latestValues))continue;Au(l.latestValues)&&l.updateSnapshot();const c=kt(),f=l.measurePageBox();ur(c,f),Np(s,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return Tn(this.latestValues)&&Np(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}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!==Dt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==u;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=Dt.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),Mo(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ur(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=kt(),this.targetWithTransforms=kt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),u5(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ur(this.target,this.layout.layoutBox),Tp(this.target,this.targetDelta)):ur(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),Mo(this.relativeTargetOrigin,this.target,h.target),ur(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}_n.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Au(this.parent.latestValues)||Cp(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const s=this.getLead(),u=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(l=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Dt.timestamp&&(l=!1),l)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;ur(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;y5(this.layoutCorrected,this.treeScale,this.path,u),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox);const{target:m}=s;if(!m){this.projectionTransform&&(this.projectionDelta=ei(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=ei(),this.projectionDeltaWithTransform=ei());const p=this.projectionTransform;ko(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=Up(this.projectionDelta,this.treeScale),(this.projectionTransform!==p||this.treeScale.x!==d||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),_n.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,s=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},f=ei();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const d=kt(),h=u?u.source:void 0,m=this.layout?this.layout.source:void 0,p=h!==m,v=this.getStack(),x=!v||v.members.length<=1,b=!!(p&&!x&&this.options.crossfade===!0&&!this.path.some(o3));this.animationProgress=0;let C;this.mixTargetDelta=E=>{const w=E/1e3;Zp(f.x,a.x,w),Zp(f.y,a.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mo(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),i3(this.relativeTarget,this.relativeTargetOrigin,d,w),C&&R5(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=kt()),ur(C,this.relativeTarget)),p&&(this.animationValues=c,D5(c,l,this.latestValues,w,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(jr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ot.update(()=>{Ya.hasAnimatedSinceResize=!0,this.currentAnimation=U5(0,Gp,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Gp),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:u,layout:l,latestValues:c}=a;if(!(!s||!u||!l)){if(this!==a&&this.layout&&l&&r0(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||kt();const f=Qt(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+f;const d=Qt(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+d}ur(s,u),ti(s,c),ko(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new B5),this.sharedNodes.get(a).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:u}=a;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(s=!0),!s)return;const l={};for(let c=0;c<Yp.length;c++){const f="rotate"+Yp[c];u[f]&&(l[f]=u[f],a.setStaticValue(f,0))}a.render();for(const c in l)a.setStaticValue(c,l[c]);a.scheduleRender()}getProjectionStyles(a={}){var s,u;const l={};if(!this.instance||this.isSVG)return l;if(this.isVisible)l.visibility="";else return{visibility:"hidden"};const c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Fa(a.pointerEvents)||"",l.transform=c?c(this.latestValues,""):"none",l;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=Fa(a.pointerEvents)||""),this.hasProjected&&!Tn(this.latestValues)&&(p.transform=c?c({},""):"none",this.hasProjected=!1),p}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),l.transform=Up(this.projectionDeltaWithTransform,this.treeScale,d),c&&(l.transform=c(d,l.transform));const{x:h,y:m}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,f.animationValues?l.opacity=f===this?(u=(s=d.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:l.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const p in Pa){if(d[p]===void 0)continue;const{correct:v,applyTo:x}=Pa[p],b=l.transform==="none"?d[p]:v(d[p],f);if(x){const C=x.length;for(let E=0;E<C;E++)l[x[E]]=b}else l[p]=b}return this.options.layoutId&&(l.pointerEvents=f===this?Fa(a.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(Kp),this.root.sharedNodes.clear()}}}function G5(e){e.updateLayout()}function q5(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:o}=e.options,a=r.source!==e.layout.source;o==="size"?Er(f=>{const d=a?r.measuredBox[f]:r.layoutBox[f],h=Qt(d);d.min=n[f].min,d.max=d.min+h}):r0(o,r.layoutBox,n)&&Er(f=>{const d=a?r.measuredBox[f]:r.layoutBox[f],h=Qt(n[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=ei();ko(s,n,r.layoutBox);const u=ei();a?ko(u,e.applyTransform(i,!0),r.measuredBox):ko(u,n,r.layoutBox);const l=!Vp(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const m=kt();Mo(m,r.layoutBox,d.layoutBox);const p=kt();Mo(p,n,h.layoutBox),Wp(m,p)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:u,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function K5(e){_n.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function X5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Z5(e){e.clearSnapshot()}function Kp(e){e.clearMeasurements()}function Q5(e){e.isLayoutDirty=!1}function J5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Xp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function e3(e){e.resolveTargetDelta()}function t3(e){e.calcProjection()}function r3(e){e.resetRotation()}function n3(e){e.removeLeadSnapshot()}function Zp(e,t,r){e.translate=pt(t.translate,0,r),e.scale=pt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Qp(e,t,r,n){e.min=pt(t.min,r.min,n),e.max=pt(t.max,r.max,n)}function i3(e,t,r,n){Qp(e.x,t.x,r.x,n),Qp(e.y,t.y,r.y,n)}function o3(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const a3={duration:.45,ease:[.4,0,.1,1]},Jp=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),e0=Jp("applewebkit/")&&!Jp("chrome/")?Math.round:bt;function t0(e){e.min=e0(e.min),e.max=e0(e.max)}function s3(e){t0(e.x),t0(e.y)}function r0(e,t,r){return e==="position"||e==="preserve-aspect"&&!ku(Hp(t),Hp(r),.2)}const l3=qp({attachResizeListener:(e,t)=>Lr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),$u={current:void 0},n0=qp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$u.current){const e=new l3({});e.mount(window),e.setOptions({layoutScroll:!0}),$u.current=e}return $u.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),u3={pan:{Feature:_5},drag:{Feature:T5,ProjectionNode:n0,MeasureLayout:Ap}},c3=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function f3(e){const t=c3.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}const d3=4;function Iu(e,t,r=1){pr(r<=d3,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,i]=f3(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const a=o.trim();return np(a)?parseFloat(a):a}else return Kl(i)?Iu(i,t,r+1):i}function h3(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(i=>{const o=i.get();if(!Kl(o))return;const a=Iu(o,n);a&&i.set(a)});for(const i in t){const o=t[i];if(!Kl(o))continue;const a=Iu(o,n);a&&(t[i]=a,r||(r={}),r[i]===void 0&&(r[i]=o))}return{target:t,transitionEnd:r}}const p3=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),i0=e=>p3.has(e),g3=e=>Object.keys(e).some(i0),Ga=e=>e===Cn||e===we,o0=(e,t)=>parseFloat(e.split(", ")[t]),a0=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return o0(i[1],t);{const o=n.match(/^matrix\((.+)\)$/);return o?o0(o[1],e):0}},m3=new Set(["x","y","z"]),v3=yo.filter(e=>!m3.has(e));function y3(e){const t=[];return v3.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ri={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:a0(4,13),y:a0(5,14)};ri.translateX=ri.x,ri.translateY=ri.y;const b3=(e,t,r)=>{const n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(l=>{s[l]=ri[l](n,o)}),t.render();const u=t.measureViewportBox();return r.forEach(l=>{const c=t.getValue(l);c&&c.jump(s[l]),e[l]=ri[l](u,o)}),e},x3=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(i0);let o=[],a=!1;const s=[];if(i.forEach(u=>{const l=e.getValue(u);if(!e.hasValue(u))return;let c=r[u],f=Oo(c);const d=t[u];let h;if(Ia(d)){const m=d.length,p=d[0]===null?1:0;c=d[p],f=Oo(c);for(let v=p;v<m&&d[v]!==null;v++)h?pr(Oo(d[v])===h,"All keyframes must be of the same type"):(h=Oo(d[v]),pr(h===f||Ga(f)&&Ga(h),"Keyframes must be of the same dimension as the current value"))}else h=Oo(d);if(f!==h)if(Ga(f)&&Ga(h)){const m=l.get();typeof m=="string"&&l.set(parseFloat(m)),typeof d=="string"?t[u]=parseFloat(d):Array.isArray(d)&&h===we&&(t[u]=d.map(parseFloat))}else f!=null&&f.transform&&(h!=null&&h.transform)&&(c===0||d===0)?c===0?l.set(h.transform(c)):t[u]=f.transform(d):(a||(o=y3(e),a=!0),s.push(u),n[u]=n[u]!==void 0?n[u]:t[u],l.jump(d))}),s.length){const u=s.indexOf("height")>=0?window.pageYOffset:null,l=b3(t,e,s);return o.length&&o.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),Oa&&u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function w3(e,t,r,n){return g3(t)?x3(e,t,r,n):{target:t,transitionEnd:n}}const C3=(e,t,r,n)=>{const i=h3(e,t,n);return t=i.target,n=i.transitionEnd,w3(e,t,r,n)},Fu={current:null},s0={current:!1};function S3(){if(s0.current=!0,!!Oa)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Fu.current=e.matches;e.addListener(t),t()}else Fu.current=!1}function E3(e,t,r){const{willChange:n}=t;for(const i in t){const o=t[i],a=r[i];if(Ht(o))e.addValue(i,o),Wa(n)&&n.add(i),process.env.NODE_ENV==="development"&&Eu(o.version==="10.16.3",`Attempting to mix Framer Motion versions ${o.version} with 10.16.3 may not work as expected.`);else if(Ht(a))e.addValue(i,Jn(o,{owner:e})),Wa(n)&&n.remove(i);else if(a!==o)if(e.hasValue(i)){const s=e.getValue(i);!s.hasAnimated&&s.set(o)}else{const s=e.getStaticValue(i);e.addValue(i,Jn(s!==void 0?s:o,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}const l0=new WeakMap,u0=Object.keys(vo),T3=u0.length,c0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],_3=Ul.length;class O3{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>ot.render(this.render,!1,!0);const{latestValues:s,renderState:u}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.isControllingVariants=Ma(r),this.isVariantNode=Wd(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(r,{});for(const f in c){const d=c[f];s[f]!==void 0&&Ht(d)&&(d.set(s[f],!1),Wa(l)&&l.add(f))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,l0.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),s0.current||S3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Fu.current,process.env.NODE_ENV!=="production"&&Eu(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){l0.delete(this.current),this.projection&&this.projection.unmount(),jr(this.notifyUpdate),jr(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=wn.has(t),i=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ot.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,i,o){let a,s;if(process.env.NODE_ENV!=="production"&&i&&n){const u="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";r.ignoreStrict?So(!1,u):pr(!1,u)}for(let u=0;u<T3;u++){const l=u0[u],{isEnabled:c,Feature:f,ProjectionNode:d,MeasureLayout:h}=vo[l];d&&(a=d),c(r)&&(!this.features[l]&&f&&(this.features[l]=new f(this)),h&&(s=h))}if(!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:u,layout:l,drag:c,dragConstraints:f,layoutScroll:d,layoutRoot:h}=r;this.projection.setOptions({layoutId:u,layout:l,alwaysMeasureLayout:!!c||f&&Zn(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):kt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<c0.length;n++){const i=c0[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=E3(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}const r={};for(let n=0;n<_3;n++){const i=Ul[n],o=this.props[i];(mo(o)||o===!1)&&(r[i]=o)}return r}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Jn(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=ru(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ht(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Su),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class f0 extends O3{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:i},o){let a=Uw(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),a&&(a=i(a))),o){Ww(this,n,a);const s=C3(this,n,a,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function k3(e){return window.getComputedStyle(e)}class M3 extends f0{readValueFromInstance(t,r){if(wn.has(r)){const n=bu(r);return n&&n.default||0}else{const n=k3(t),i=(Kd(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return kp(t,r)}build(t,r,n,i){Xl(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,r){return tu(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ht(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,i){ih(t,r,n,i)}}class P3 extends f0{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(wn.has(r)){const n=bu(r);return n&&n.default||0}return r=oh.has(r)?r:eu(r),t.getAttribute(r)}measureInstanceViewportBox(){return kt()}scrapeMotionValuesFromProps(t,r){return sh(t,r)}build(t,r,n,i){Ql(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){ah(t,r,n,i)}mount(t){this.isSVGTag=Jl(t.tagName),super.mount(t)}}const A3=(e,t)=>ql(e)?new P3(t,{enableHardwareAcceleration:!1}):new M3(t,{enableHardwareAcceleration:!0}),D3={layout:{ProjectionNode:n0,MeasureLayout:Ap}},gr=B2(vx);function d0(){const e=g.useRef(!1);return Vl(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function $3(){const e=d0(),[t,r]=g.useState(0),n=g.useCallback(()=>{e.current&&r(t+1)},[t]);return[g.useCallback(()=>ot.postRender(n),[n]),t]}class I3 extends xe.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function F3({children:e,isPresent:t}){const r=g.useId(),n=g.useRef(null),i=g.useRef({width:0,height:0,top:0,left:0});return g.useInsertionEffect(()=>{const{width:o,height:a,top:s,left:u}=i.current;if(t||!n.current||!o||!a)return;n.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
|
|
27
|
+
Check the top-level render call using <`+ee+">.")}return V}}function ni(S,V){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var ee=en(V);if(Jr[ee])return;Jr[ee]=!0;var Te="";S&&S._owner&&S._owner!==Me.current&&(Te=" It was passed a child from "+se(S._owner.type)+"."),et(S),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ee,Te),et(null)}}function za(S,V){{if(typeof S!="object")return;if(Cn(S))for(var ee=0;ee<S.length;ee++){var Te=S[ee];_t(Te)&&ni(Te,V)}else if(_t(S))S._store&&(S._store.validated=!0);else if(S){var qe=v(S);if(typeof qe=="function"&&qe!==S.entries)for(var ot=qe.call(S),ze;!(ze=ot.next()).done;)_t(ze.value)&&ni(ze.value,V)}}}function hu(S){{var V=S.type;if(V==null||typeof V=="string")return;var ee;if(typeof V=="function")ee=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===u||V.$$typeof===f))ee=V.propTypes;else return;if(ee){var Te=se(V);Sr(ee,S.props,"prop",Te,S)}else if(V.PropTypes!==void 0&&!tt){tt=!0;var qe=se(V);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",qe||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function dQ(S){{for(var V=Object.keys(S.props),ee=0;ee<V.length;ee++){var Te=V[ee];if(Te!=="children"&&Te!=="key"){et(S),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),et(null);break}}S.ref!==null&&(et(S),b("Invalid attribute `ref` supplied to `React.Fragment`."),et(null))}}function kx(S,V,ee,Te,qe,ot){{var ze=L(S);if(!ze){var Fe="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(Fe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ht=Lt(qe);Ht?Fe+=Ht:Fe+=yt();var Ot;S===null?Ot="null":Cn(S)?Ot="array":S!==void 0&&S.$$typeof===t?(Ot="<"+(se(S.type)||"Unknown")+" />",Fe=" Did you accidentally export a JSX literal instead of a component?"):Ot=typeof S,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ot,Fe)}var At=ie(S,V,ee,qe,ot);if(At==null)return At;if(ze){var pr=V.children;if(pr!==void 0)if(Te)if(Cn(pr)){for(var Co=0;Co<pr.length;Co++)za(pr[Co],S);Object.freeze&&Object.freeze(pr)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else za(pr,S)}return S===n?dQ(At):hu(At),At}}function hQ(S,V,ee){return kx(S,V,ee,!0)}function pQ(S,V,ee){return kx(S,V,ee,!1)}var gQ=pQ,mQ=hQ;_o.Fragment=n,_o.jsx=gQ,_o.jsxs=mQ}()),_o}process.env.NODE_ENV==="production"?mu.exports=Vx():mu.exports=Wx();var y=mu.exports;const _h=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Wa=g.createContext({}),Ha=g.createContext(null),Ua=typeof document<"u",vu=Ua?g.useLayoutEffect:g.useEffect,yu=g.createContext({strict:!1});function Hx(e,t,r,n){const{visualElement:i}=g.useContext(Wa),o=g.useContext(yu),a=g.useContext(Ha),s=g.useContext(_h).reducedMotion,u=g.useRef();n=n||o.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const l=u.current;g.useInsertionEffect(()=>{l&&l.update(r,a)});const c=g.useRef(!!window.HandoffAppearAnimations);return vu(()=>{l&&(l.render(),c.current&&l.animationState&&l.animationState.animateChanges())}),g.useEffect(()=>{l&&(l.updateFeatures(),!c.current&&l.animationState&&l.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),l}function oi(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Ux(e,t,r){return g.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):oi(r)&&(r.current=n))},[t])}function Oo(e){return typeof e=="string"||Array.isArray(e)}function Ya(e){return typeof e=="object"&&typeof e.start=="function"}const bu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xu=["initial",...bu];function Ga(e){return Ya(e.animate)||xu.some(t=>Oo(e[t]))}function Oh(e){return!!(Ga(e)||e.variants)}function Yx(e,t){if(Ga(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Oo(r)?r:void 0,animate:Oo(n)?n:void 0}}return e.inherit!==!1?t:{}}function Gx(e){const{initial:t,animate:r}=Yx(e,g.useContext(Wa));return g.useMemo(()=>({initial:t,animate:r}),[Mh(t),Mh(r)])}function Mh(e){return Array.isArray(e)?e.join(" "):e}const Ph={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"]},Mo={};for(const e in Ph)Mo[e]={isEnabled:t=>Ph[e].some(r=>!!t[r])};function wu(e){for(const t in e)Mo[t]={...Mo[t],...e[t]}}const Cu=g.createContext({}),Ah=g.createContext({}),qx=Symbol.for("motionComponentSymbol");function Kx({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&wu(e);function o(s,u){let l;const c={...g.useContext(_h),...s,layoutId:Xx(s)},{isStatic:f}=c,d=Gx(s),h=n(s,f);if(!f&&Ua){d.visualElement=Hx(i,h,c,t);const m=g.useContext(Ah),p=g.useContext(yu).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,p,e,m))}return xe.createElement(Wa.Provider,{value:d},l&&d.visualElement?xe.createElement(l,{visualElement:d.visualElement,...c}):null,r(i,s,Ux(h,d.visualElement,u),h,f,d.visualElement))}const a=g.forwardRef(o);return a[qx]=i,a}function Xx({layoutId:e}){const t=g.useContext(Cu).id;return t&&e!==void 0?t+"-"+e:e}function Zx(e){function t(n,i={}){return Kx(e(n,i))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}const Qx=["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 Su(e){return typeof e!="string"||e.includes("-")?!1:!!(Qx.indexOf(e)>-1||/[A-Z]/.test(e))}const qa={};function Jx(e){Object.assign(qa,e)}const Po=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],En=new Set(Po);function Dh(e,{layout:t,layoutId:r}){return En.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!qa[e]||e==="opacity")}const Ut=e=>!!(e&&e.getVelocity),ew={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tw=Po.length;function rw(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let a=0;a<tw;a++){const s=Po[a];if(e[s]!==void 0){const u=ew[s]||s;o+=`${u}(${e[s]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,n?"":o):r&&n&&(o="none"),o}const $h=e=>t=>typeof t=="string"&&t.startsWith(e),Ih=$h("--"),Eu=$h("var(--"),nw=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,iw=(e,t)=>t&&typeof e=="number"?t.transform(e):e,rn=(e,t,r)=>Math.min(Math.max(r,e),t),Tn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ao={...Tn,transform:e=>rn(0,1,e)},Ka={...Tn,default:1},Do=e=>Math.round(e*1e5)/1e5,Xa=/(-)?([\d]*\.?[\d])+/g,Fh=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,ow=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function $o(e){return typeof e=="string"}const Io=e=>({test:t=>$o(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),nn=Io("deg"),Er=Io("%"),we=Io("px"),aw=Io("vh"),sw=Io("vw"),jh={...Er,parse:e=>Er.parse(e)/100,transform:e=>Er.transform(e*100)},Lh={...Tn,transform:Math.round},Rh={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,size:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,rotate:nn,rotateX:nn,rotateY:nn,rotateZ:nn,scale:Ka,scaleX:Ka,scaleY:Ka,scaleZ:Ka,skew:nn,skewX:nn,skewY:nn,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:Ao,originX:jh,originY:jh,originZ:we,zIndex:Lh,fillOpacity:Ao,strokeOpacity:Ao,numOctaves:Lh};function Tu(e,t,r,n){const{style:i,vars:o,transform:a,transformOrigin:s}=e;let u=!1,l=!1,c=!0;for(const f in t){const d=t[f];if(Ih(f)){o[f]=d;continue}const h=Rh[f],m=iw(d,h);if(En.has(f)){if(u=!0,a[f]=m,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(l=!0,s[f]=m):i[f]=m}if(t.transform||(u||n?i.transform=rw(e.transform,r,c,n):i.transform&&(i.transform="none")),l){const{originX:f="50%",originY:d="50%",originZ:h=0}=s;i.transformOrigin=`${f} ${d} ${h}`}}const ku=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Nh(e,t,r){for(const n in t)!Ut(t[n])&&!Dh(n,r)&&(e[n]=t[n])}function lw({transformTemplate:e},t,r){return g.useMemo(()=>{const n=ku();return Tu(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function uw(e,t,r){const n=e.style||{},i={};return Nh(i,n,e),Object.assign(i,lw(e,t,r)),e.transformValues?e.transformValues(i):i}function cw(e,t,r){const n={},i=uw(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const fw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Za(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||fw.has(e)}let Bh=e=>!Za(e);function dw(e){e&&(Bh=t=>t.startsWith("on")?!Za(t):e(t))}try{dw(require("@emotion/is-prop-valid").default)}catch{}function hw(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(Bh(i)||r===!0&&Za(i)||!t&&!Za(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function zh(e,t,r){return typeof e=="string"?e:we.transform(t+r*e)}function pw(e,t,r){const n=zh(t,e.x,e.width),i=zh(r,e.y,e.height);return`${n} ${i}`}const gw={offset:"stroke-dashoffset",array:"stroke-dasharray"},mw={offset:"strokeDashoffset",array:"strokeDasharray"};function vw(e,t,r=1,n=0,i=!0){e.pathLength=1;const o=i?gw:mw;e[o.offset]=we.transform(-n);const a=we.transform(t),s=we.transform(r);e[o.array]=`${a} ${s}`}function _u(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:u=0,...l},c,f,d){if(Tu(e,l,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:p}=e;h.transform&&(p&&(m.transform=h.transform),delete h.transform),p&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=pw(p,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),a!==void 0&&vw(h,a,s,u,!1)}const Vh=()=>({...ku(),attrs:{}}),Ou=e=>typeof e=="string"&&e.toLowerCase()==="svg";function yw(e,t,r,n){const i=g.useMemo(()=>{const o=Vh();return _u(o,t,{enableHardwareAcceleration:!1},Ou(n),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Nh(o,e.style,e),i.style={...o,...i.style}}return i}function bw(e=!1){return(r,n,i,{latestValues:o},a)=>{const u=(Su(r)?yw:cw)(n,o,a,r),c={...hw(n,typeof r=="string",e),...u,ref:i},{children:f}=n,d=g.useMemo(()=>Ut(f)?f.get():f,[f]);return g.createElement(r,{...c,children:d})}}const Mu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Wh(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const o in r)e.style.setProperty(o,r[o])}const Hh=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 Uh(e,t,r,n){Wh(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(Hh.has(i)?i:Mu(i),t.attrs[i])}function Pu(e,t){const{style:r}=e,n={};for(const i in r)(Ut(r[i])||t.style&&Ut(t.style[i])||Dh(i,e))&&(n[i]=r[i]);return n}function Yh(e,t){const r=Pu(e,t);for(const n in e)if(Ut(e[n])||Ut(t[n])){const i=Po.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function Au(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}function Gh(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qa=e=>Array.isArray(e),xw=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),ww=e=>Qa(e)?e[e.length-1]||0:e;function Ja(e){const t=Ut(e)?e.get():e;return xw(t)?t.toValue():t}function Cw({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){const a={latestValues:Sw(n,i,o,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}const qh=e=>(t,r)=>{const n=g.useContext(Wa),i=g.useContext(Ha),o=()=>Cw(e,t,n,i);return r?o():Gh(o)};function Sw(e,t,r,n){const i={},o=n(e,{});for(const d in o)i[d]=Ja(o[d]);let{initial:a,animate:s}=e;const u=Ga(e),l=Oh(e);t&&l&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!Ya(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const m=Au(e,h);if(!m)return;const{transitionEnd:p,transition:v,...x}=m;for(const b in x){let C=x[b];if(Array.isArray(C)){const E=c?C.length-1:0;C=C[E]}C!==null&&(i[b]=C)}for(const b in p)i[b]=p[b]}),i}const xt=e=>e;class Kh{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Ew(e){let t=new Kh,r=new Kh,n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,d=f?t:r;return l&&a.add(u),d.add(u)&&f&&i&&(n=t.order.length),u},cancel:u=>{r.remove(u),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let l=0;l<n;l++){const c=t.order[l];c(u),a.has(c)&&(s.schedule(c),e())}i=!1,o&&(o=!1,s.process(u))}};return s}const es=["prepare","read","update","preRender","render","postRender"],Tw=40;function kw(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=es.reduce((f,d)=>(f[d]=Ew(()=>r=!0),f),{}),a=f=>o[f].process(i),s=()=>{const f=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(f-i.timestamp,Tw),1),i.timestamp=f,i.isProcessing=!0,es.forEach(a),i.isProcessing=!1,r&&t&&(n=!1,e(s))},u=()=>{r=!0,n=!0,i.isProcessing||e(s)};return{schedule:es.reduce((f,d)=>{const h=o[d];return f[d]=(m,p=!1,v=!1)=>(r||u(),h.schedule(m,p,v)),f},{}),cancel:f=>es.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:at,cancel:Lr,state:$t,steps:Du}=kw(typeof requestAnimationFrame<"u"?requestAnimationFrame:xt,!0),_w={useVisualState:qh({scrapeMotionValuesFromProps:Yh,createRenderState:Vh,onMount:(e,t,{renderState:r,latestValues:n})=>{at.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),at.render(()=>{_u(r,n,{enableHardwareAcceleration:!1},Ou(t.tagName),e.transformTemplate),Uh(t,r)})}})},Ow={useVisualState:qh({scrapeMotionValuesFromProps:Pu,createRenderState:ku})};function Mw(e,{forwardMotionProps:t=!1},r,n){return{...Su(e)?_w:Ow,preloadedFeatures:r,useRender:bw(t),createVisualElement:n,Component:e}}function Rr(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const Xh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ts(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Pw=e=>t=>Xh(t)&&e(t,ts(t));function Nr(e,t,r,n){return Rr(e,t,Pw(r),n)}const Aw=(e,t)=>r=>t(e(r)),on=(...e)=>e.reduce(Aw);function Zh(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Qh=Zh("dragHorizontal"),Jh=Zh("dragVertical");function ep(e){let t=!1;if(e==="y")t=Jh();else if(e==="x")t=Qh();else{const r=Qh(),n=Jh();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function tp(){const e=ep(!0);return e?(e(),!1):!0}class an{constructor(t){this.isMounted=!1,this.node=t}update(){}}function rp(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),i=(o,a)=>{if(o.type==="touch"||tp())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&at.update(()=>s[n](o,a))};return Nr(e.current,r,i,{passive:!e.getProps()[n]})}class Dw extends an{mount(){this.unmount=on(rp(this.node,!0),rp(this.node,!1))}unmount(){}}class $w extends an{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=on(Rr(this.node.current,"focus",()=>this.onFocus()),Rr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const np=(e,t)=>t?e===t?!0:np(e,t.parentElement):!1;function $u(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,ts(r))}class Iw extends an{constructor(){super(...arguments),this.removeStartListeners=xt,this.removeEndListeners=xt,this.removeAccessibleListeners=xt,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),o=Nr(window,"pointerup",(s,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c}=this.node.getProps();at.update(()=>{np(this.node.current,s.target)?l&&l(s,u):c&&c(s,u)})},{passive:!(n.onTap||n.onPointerUp)}),a=Nr(window,"pointercancel",(s,u)=>this.cancelPress(s,u),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=on(o,a),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||$u("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&at.update(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=Rr(this.node.current,"keyup",a),$u("down",(s,u)=>{this.startPress(s,u)})},r=Rr(this.node.current,"keydown",t),n=()=>{this.isPressing&&$u("cancel",(o,a)=>this.cancelPress(o,a))},i=Rr(this.node.current,"blur",n);this.removeAccessibleListeners=on(r,i)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&at.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tp()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&at.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Nr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Rr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=on(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Iu=new WeakMap,Fu=new WeakMap,Fw=e=>{const t=Iu.get(e.target);t&&t(e)},jw=e=>{e.forEach(Fw)};function Lw({root:e,...t}){const r=e||document;Fu.has(r)||Fu.set(r,{});const n=Fu.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(jw,{root:e,...t})),n[i]}function Rw(e,t,r){const n=Lw(t);return Iu.set(e,r),n.observe(e),()=>{Iu.delete(e),n.unobserve(e)}}const Nw={some:0,all:1};class Bw extends an{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:o}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:Nw[i]},s=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=l?c:f;d&&d(u)};return Rw(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(zw(t,r))&&this.startObserver()}unmount(){}}function zw({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const Vw={inView:{Feature:Bw},tap:{Feature:Iw},focus:{Feature:$w},hover:{Feature:Dw}};function ip(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Ww(e){const t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function Hw(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function rs(e,t,r){const n=e.getProps();return Au(n,t,r!==void 0?r:n.custom,Ww(e),Hw(e))}const Uw="data-"+Mu("framerAppearId");let Fo=xt,gr=xt;process.env.NODE_ENV!=="production"&&(Fo=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},gr=(e,t)=>{if(!e)throw new Error(t)});const sn=e=>e*1e3,Br=e=>e/1e3,Yw={current:!1},op=e=>Array.isArray(e)&&typeof e[0]=="number";function ap(e){return!!(!e||typeof e=="string"&&sp[e]||op(e)||Array.isArray(e)&&e.every(ap))}const jo=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,sp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jo([0,.65,.55,1]),circOut:jo([.55,0,1,.45]),backIn:jo([.31,.01,.66,-.59]),backOut:jo([.33,1.53,.69,.99])};function lp(e){if(e)return op(e)?jo(e):Array.isArray(e)?e.map(lp):sp[e]}function Gw(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:u}={}){const l={[t]:r};u&&(l.offset=u);const c=lp(s);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function qw(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const up=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Kw=1e-7,Xw=12;function Zw(e,t,r,n,i){let o,a,s=0;do a=t+(r-t)/2,o=up(a,n,i)-e,o>0?r=a:t=a;while(Math.abs(o)>Kw&&++s<Xw);return a}function Lo(e,t,r,n){if(e===t&&r===n)return xt;const i=o=>Zw(o,0,1,e,r);return o=>o===0||o===1?o:up(i(o),t,n)}const Qw=Lo(.42,0,1,1),Jw=Lo(0,0,.58,1),cp=Lo(.42,0,.58,1),e5=e=>Array.isArray(e)&&typeof e[0]!="number",fp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,dp=e=>t=>1-e(1-t),hp=e=>1-Math.sin(Math.acos(e)),ju=dp(hp),t5=fp(ju),pp=Lo(.33,1.53,.69,.99),Lu=dp(pp),r5=fp(Lu),gp={linear:xt,easeIn:Qw,easeInOut:cp,easeOut:Jw,circIn:hp,circInOut:t5,circOut:ju,backIn:Lu,backInOut:r5,backOut:pp,anticipate:e=>(e*=2)<1?.5*Lu(e):.5*(2-Math.pow(2,-10*(e-1)))},mp=e=>{if(Array.isArray(e)){gr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,i]=e;return Lo(t,r,n,i)}else if(typeof e=="string")return gr(gp[e]!==void 0,`Invalid easing type '${e}'`),gp[e];return e},Ru=(e,t)=>r=>!!($o(r)&&ow.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),vp=(e,t,r)=>n=>{if(!$o(n))return n;const[i,o,a,s]=n.match(Xa);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},n5=e=>rn(0,255,e),Nu={...Tn,transform:e=>Math.round(n5(e))},kn={test:Ru("rgb","red"),parse:vp("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Nu.transform(e)+", "+Nu.transform(t)+", "+Nu.transform(r)+", "+Do(Ao.transform(n))+")"};function i5(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Bu={test:Ru("#"),parse:i5,transform:kn.transform},ai={test:Ru("hsl","hue"),parse:vp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Er.transform(Do(t))+", "+Er.transform(Do(r))+", "+Do(Ao.transform(n))+")"},Vt={test:e=>kn.test(e)||Bu.test(e)||ai.test(e),parse:e=>kn.test(e)?kn.parse(e):ai.test(e)?ai.parse(e):Bu.parse(e),transform:e=>$o(e)?e:e.hasOwnProperty("red")?kn.transform(e):ai.transform(e)},gt=(e,t,r)=>-r*e+r*t+e;function zu(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function o5({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=zu(u,s,e+1/3),o=zu(u,s,e),a=zu(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const Vu=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},a5=[Bu,kn,ai],s5=e=>a5.find(t=>t.test(e));function yp(e){const t=s5(e);gr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===ai&&(r=o5(r)),r}const bp=(e,t)=>{const r=yp(e),n=yp(t),i={...r};return o=>(i.red=Vu(r.red,n.red,o),i.green=Vu(r.green,n.green,o),i.blue=Vu(r.blue,n.blue,o),i.alpha=gt(r.alpha,n.alpha,o),kn.transform(i))};function l5(e){var t,r;return isNaN(e)&&$o(e)&&(((t=e.match(Xa))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Fh))===null||r===void 0?void 0:r.length)||0)>0}const xp={regex:nw,countKey:"Vars",token:"${v}",parse:xt},wp={regex:Fh,countKey:"Colors",token:"${c}",parse:Vt.parse},Cp={regex:Xa,countKey:"Numbers",token:"${n}",parse:Tn.parse};function Wu(e,{regex:t,countKey:r,token:n,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function ns(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&Wu(r,xp),Wu(r,wp),Wu(r,Cp),r}function Sp(e){return ns(e).values}function Ep(e){const{values:t,numColors:r,numVars:n,tokenised:i}=ns(e),o=t.length;return a=>{let s=i;for(let u=0;u<o;u++)u<n?s=s.replace(xp.token,a[u]):u<n+r?s=s.replace(wp.token,Vt.transform(a[u])):s=s.replace(Cp.token,Do(a[u]));return s}}const u5=e=>typeof e=="number"?0:e;function c5(e){const t=Sp(e);return Ep(e)(t.map(u5))}const ln={test:l5,parse:Sp,createTransformer:Ep,getAnimatableNone:c5},Tp=(e,t)=>r=>`${r>0?t:e}`;function kp(e,t){return typeof e=="number"?r=>gt(e,t,r):Vt.test(e)?bp(e,t):e.startsWith("var(")?Tp(e,t):Op(e,t)}const _p=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>kp(o,t[a]));return o=>{for(let a=0;a<n;a++)r[a]=i[a](o);return r}},f5=(e,t)=>{const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=kp(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}},Op=(e,t)=>{const r=ln.createTransformer(t),n=ns(e),i=ns(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?on(_p(n.values,i.values),r):(Fo(!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.`),Tp(e,t))},Ro=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Mp=(e,t)=>r=>gt(e,t,r);function d5(e){return typeof e=="number"?Mp:typeof e=="string"?Vt.test(e)?bp:Op:Array.isArray(e)?_p:typeof e=="object"?f5:Mp}function h5(e,t,r){const n=[],i=r||d5(e[0]),o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||xt:t;s=on(u,s)}n.push(s)}return n}function Pp(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;if(gr(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=h5(t,n,i),s=a.length,u=l=>{let c=0;if(s>1)for(;c<e.length-2&&!(l<e[c+1]);c++);const f=Ro(e[c],e[c+1],l);return a[c](f)};return r?l=>u(rn(e[0],e[o-1],l)):u}function p5(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=Ro(0,t,n);e.push(gt(r,1,i))}}function g5(e){const t=[0];return p5(t,e.length-1),t}function m5(e,t){return e.map(r=>r*t)}function v5(e,t){return e.map(()=>t||cp).splice(0,e.length-1)}function is({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=e5(n)?n.map(mp):mp(n),o={done:!1,value:t[0]},a=m5(r&&r.length===t.length?r:g5(t),e),s=Pp(a,t,{ease:Array.isArray(i)?i:v5(t,i)});return{calculatedDuration:e,next:u=>(o.value=s(u),o.done=u>=e,o)}}function Ap(e,t){return t?e*(1e3/t):0}const y5=5;function Dp(e,t,r){const n=Math.max(t-y5,0);return Ap(r-e(n),t-n)}const Hu=.001,b5=.01,$p=10,x5=.05,w5=1;function C5({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;Fo(e<=sn($p),"Spring duration must be 10 seconds or less");let a=1-t;a=rn(x5,w5,a),e=rn(b5,$p,Br(e)),a<1?(i=l=>{const c=l*a,f=c*e,d=c-r,h=Uu(l,a),m=Math.exp(-f);return Hu-d/h*m},o=l=>{const f=l*a*e,d=f*r+r,h=Math.pow(a,2)*Math.pow(l,2)*e,m=Math.exp(-f),p=Uu(Math.pow(l,2),a);return(-i(l)+Hu>0?-1:1)*((d-h)*m)/p}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-Hu+c*f},o=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=E5(i,o,s);if(e=sn(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const S5=12;function E5(e,t,r){let n=r;for(let i=1;i<S5;i++)n=n-e(n)/t(n);return n}function Uu(e,t){return e*Math.sqrt(1-t*t)}const T5=["duration","bounce"],k5=["stiffness","damping","mass"];function Ip(e,t){return t.some(r=>e[r]!==void 0)}function _5(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ip(e,k5)&&Ip(e,T5)){const r=C5(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Fp({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:d}=_5(n),h=c?-Br(c):0,m=u/(2*Math.sqrt(s*l)),p=o-i,v=Br(Math.sqrt(s/l)),x=Math.abs(p)<5;r||(r=x?.01:2),t||(t=x?.005:.5);let b;if(m<1){const C=Uu(v,m);b=E=>{const w=Math.exp(-m*v*E);return o-w*((h+m*v*p)/C*Math.sin(C*E)+p*Math.cos(C*E))}}else if(m===1)b=C=>o-Math.exp(-v*C)*(p+(h+v*p)*C);else{const C=v*Math.sqrt(m*m-1);b=E=>{const w=Math.exp(-m*v*E),k=Math.min(C*E,300);return o-w*((h+m*v*p)*Math.sinh(k)+C*p*Math.cosh(k))/C}}return{calculatedDuration:d&&f||null,next:C=>{const E=b(C);if(d)a.done=C>=f;else{let w=h;C!==0&&(m<1?w=Dp(b,C,E):w=0);const k=Math.abs(w)<=r,T=Math.abs(o-E)<=t;a.done=k&&T}return a.value=a.done?o:E,a}}}function jp({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=O=>s!==void 0&&O<s||u!==void 0&&O>u,m=O=>s===void 0?u:u===void 0||Math.abs(s-O)<Math.abs(u-O)?s:u;let p=r*t;const v=f+p,x=a===void 0?v:a(v);x!==v&&(p=x-f);const b=O=>-p*Math.exp(-O/n),C=O=>x+b(O),E=O=>{const A=b(O),L=C(O);d.done=Math.abs(A)<=l,d.value=d.done?x:L};let w,k;const T=O=>{h(d.value)&&(w=O,k=Fp({keyframes:[d.value,m(d.value)],velocity:Dp(C,O,d.value),damping:i,stiffness:o,restDelta:l,restSpeed:c}))};return T(0),{calculatedDuration:null,next:O=>{let A=!1;return!k&&w===void 0&&(A=!0,E(O),T(O)),w!==void 0&&O>w?k.next(O-w):(!A&&E(O),d)}}}const O5=e=>{const t=({timestamp:r})=>e(r);return{start:()=>at.update(t,!0),stop:()=>Lr(t),now:()=>$t.isProcessing?$t.timestamp:performance.now()}},Lp=2e4;function Rp(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<Lp;)t+=r,n=e.next(t);return t>=Lp?1/0:t}const M5={decay:jp,inertia:jp,tween:is,keyframes:is,spring:Fp};function os({autoplay:e=!0,delay:t=0,driver:r=O5,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:u,onStop:l,onComplete:c,onUpdate:f,...d}){let h=1,m=!1,p,v;const x=()=>{v=new Promise(j=>{p=j})};x();let b;const C=M5[i]||is;let E;C!==is&&typeof n[0]!="number"&&(E=Pp([0,100],n,{clamp:!1}),n=[0,100]);const w=C({...d,keyframes:n});let k;s==="mirror"&&(k=C({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let T="idle",O=null,A=null,L=null;w.calculatedDuration===null&&o&&(w.calculatedDuration=Rp(w));const{calculatedDuration:Z}=w;let pe=1/0,se=1/0;Z!==null&&(pe=Z+a,se=pe*(o+1)-a);let q=0;const G=j=>{if(A===null)return;h>0&&(A=Math.min(A,j)),h<0&&(A=Math.min(j-se/h,A)),O!==null?q=O:q=Math.round(j-A)*h;const X=q-t*(h>=0?1:-1),te=h>=0?X<0:X>se;q=Math.max(X,0),T==="finished"&&O===null&&(q=se);let H=q,fe=w;if(o){const J=q/pe;let ne=Math.floor(J),be=J%1;!be&&J>=1&&(be=1),be===1&&ne--,ne=Math.min(ne,o+1);const N=!!(ne%2);N&&(s==="reverse"?(be=1-be,a&&(be-=a/pe)):s==="mirror"&&(fe=k));let Ne=rn(0,1,be);q>se&&(Ne=s==="reverse"&&N?1:0),H=Ne*pe}const ue=te?{done:!1,value:n[0]}:fe.next(H);E&&(ue.value=E(ue.value));let{done:ge}=ue;!te&&Z!==null&&(ge=h>=0?q>=se:q<=0);const Q=O===null&&(T==="finished"||T==="running"&&ge);return f&&f(ue.value),Q&&Ie(),ue},me=()=>{b&&b.stop(),b=void 0},Ee=()=>{T="idle",me(),p(),x(),A=L=null},Ie=()=>{T="finished",c&&c(),me(),p()},_e=()=>{if(m)return;b||(b=r(G));const j=b.now();u&&u(),O!==null?A=j-O:(!A||T==="finished")&&(A=j),T==="finished"&&x(),L=A,O=null,T="running",b.start()};e&&_e();const $={then(j,X){return v.then(j,X)},get time(){return Br(q)},set time(j){j=sn(j),q=j,O!==null||!b||h===0?O=j:A=b.now()-j/h},get duration(){const j=w.calculatedDuration===null?Rp(w):w.calculatedDuration;return Br(j)},get speed(){return h},set speed(j){j===h||!b||(h=j,$.time=Br(q))},get state(){return T},play:_e,pause:()=>{T="paused",O=q},stop:()=>{m=!0,T!=="idle"&&(T="idle",l&&l(),Ee())},cancel:()=>{L!==null&&G(L),Ee()},complete:()=>{T="finished"},sample:j=>(A=0,G(j))};return $}function P5(e){let t;return()=>(t===void 0&&(t=e()),t)}const A5=P5(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),D5=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),as=10,$5=2e4,I5=(e,t)=>t.type==="spring"||e==="backgroundColor"||!ap(t.ease);function F5(e,t,{onUpdate:r,onComplete:n,...i}){if(!(A5()&&D5.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let a=!1,s,u;const l=()=>{u=new Promise(b=>{s=b})};l();let{keyframes:c,duration:f=300,ease:d,times:h}=i;if(I5(t,i)){const b=os({...i,repeat:0,delay:0});let C={done:!1,value:c[0]};const E=[];let w=0;for(;!C.done&&w<$5;)C=b.sample(w),E.push(C.value),w+=as;h=void 0,c=E,f=w-as,d="linear"}const m=Gw(e.owner.current,t,c,{...i,duration:f,ease:d,times:h});i.syncStart&&(m.startTime=$t.isProcessing?$t.timestamp:performance.now());const p=()=>m.cancel(),v=()=>{at.update(p),s(),l()};return m.onfinish=()=>{e.set(qw(c,i)),n&&n(),v()},{then(b,C){return u.then(b,C)},attachTimeline(b){return m.timeline=b,m.onfinish=null,xt},get time(){return Br(m.currentTime||0)},set time(b){m.currentTime=sn(b)},get speed(){return m.playbackRate},set speed(b){m.playbackRate=b},get duration(){return Br(f)},play:()=>{a||(m.play(),Lr(p))},pause:()=>m.pause(),stop:()=>{if(a=!0,m.playState==="idle")return;const{currentTime:b}=m;if(b){const C=os({...i,autoplay:!1});e.setWithVelocity(C.sample(b-as).value,C.sample(b).value,as)}v()},complete:()=>m.finish(),cancel:v}}function j5({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:xt,pause:xt,stop:xt,then:o=>(o(),Promise.resolve()),cancel:xt,complete:xt});return t?os({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const L5={type:"spring",stiffness:500,damping:25,restSpeed:10},R5=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),N5={type:"keyframes",duration:.8},B5={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},z5=(e,{keyframes:t})=>t.length>2?N5:En.has(e)?e.startsWith("scale")?R5(t[1]):L5:B5,Yu=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ln.test(t)||t==="0")&&!t.startsWith("url(")),V5=new Set(["brightness","contrast","saturate","opacity"]);function W5(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Xa)||[];if(!n)return e;const i=r.replace(n,"");let o=V5.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const H5=/([a-z-]*)\(.*?\)/g,Gu={...ln,getAnimatableNone:e=>{const t=e.match(H5);return t?t.map(W5).join(" "):e}},U5={...Rh,color:Vt,backgroundColor:Vt,outlineColor:Vt,fill:Vt,stroke:Vt,borderColor:Vt,borderTopColor:Vt,borderRightColor:Vt,borderBottomColor:Vt,borderLeftColor:Vt,filter:Gu,WebkitFilter:Gu},qu=e=>U5[e];function Np(e,t){let r=qu(e);return r!==Gu&&(r=ln),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Bp=e=>/^0[^.\s]+$/.test(e);function Y5(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Bp(e)}function G5(e,t,r,n){const i=Yu(t,r);let o;Array.isArray(r)?o=[...r]:o=[null,r];const a=n.from!==void 0?n.from:e.get();let s;const u=[];for(let l=0;l<o.length;l++)o[l]===null&&(o[l]=l===0?a:o[l-1]),Y5(o[l])&&u.push(l),typeof o[l]=="string"&&o[l]!=="none"&&o[l]!=="0"&&(s=o[l]);if(i&&u.length&&s)for(let l=0;l<u.length;l++){const c=u[l];o[c]=Np(t,s)}return o}function q5({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:u,elapsed:l,...c}){return!!Object.keys(c).length}function zp(e,t){return e[t]||e.default||e}const Ku=(e,t,r,n={})=>i=>{const o=zp(n,e)||{},a=o.delay||n.delay||0;let{elapsed:s=0}=n;s=s-sn(a);const u=G5(t,e,r,o),l=u[0],c=u[u.length-1],f=Yu(e,l),d=Yu(e,c);Fo(f===d,`You are trying to animate ${e} from "${l}" to "${c}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${c} via the \`style\` property.`);let h={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-s,onUpdate:m=>{t.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(q5(o)||(h={...h,...z5(e,h)}),h.duration&&(h.duration=sn(h.duration)),h.repeatDelay&&(h.repeatDelay=sn(h.repeatDelay)),!f||!d||Yw.current||o.type===!1)return j5(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=F5(t,e,h);if(m)return m}return os(h)};function ss(e){return!!(Ut(e)&&e.add)}const Vp=e=>/^\-?\d*\.?\d+$/.test(e);function Xu(e,t){e.indexOf(t)===-1&&e.push(t)}function Zu(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Qu{constructor(){this.subscriptions=[]}add(t){return Xu(this.subscriptions,t),()=>Zu(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Wp=new Set;function Ju(e,t,r){e||Wp.has(t)||(console.warn(t),r&&console.warn(r),Wp.add(t))}const K5=e=>!isNaN(parseFloat(e));class X5{constructor(t,r={}){this.version="10.16.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:a}=$t;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,at.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>at.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=K5(this.current),this.owner=r.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Ju(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Qu);const n=this.events[t].add(r);return t==="change"?()=>{n(),at.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Ap(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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 si(e,t){return new X5(e,t)}const Hp=e=>t=>t.test(e),Up=[Tn,we,Er,nn,sw,aw,{test:e=>e==="auto",parse:e=>e}],No=e=>Up.find(Hp(e)),Z5=[...Up,Vt,ln],Q5=e=>Z5.find(Hp(e));function J5(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,si(r))}function e3(e,t){const r=rs(e,t);let{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};o={...o,...n};for(const a in o){const s=ww(o[a]);J5(e,a,s)}}function t3(e,t,r){var n,i;const o=Object.keys(t).filter(s=>!e.hasValue(s)),a=o.length;if(a)for(let s=0;s<a;s++){const u=o[s],l=t[u];let c=null;Array.isArray(l)&&(c=l[0]),c===null&&(c=(i=(n=r[u])!==null&&n!==void 0?n:e.readValue(u))!==null&&i!==void 0?i:t[u]),c!=null&&(typeof c=="string"&&(Vp(c)||Bp(c))?c=parseFloat(c):!Q5(c)&&ln.test(l)&&(c=Np(u,l)),e.addValue(u,si(c,{owner:e})),r[u]===void 0&&(r[u]=c),c!==null&&e.setBaseTarget(u,c))}}function r3(e,t){return t?(t[e]||t.default||t).from:void 0}function n3(e,t,r){const n={};for(const i in e){const o=r3(i,t);if(o!==void 0)n[i]=o;else{const a=r.getValue(i);a&&(n[i]=a.get())}}return n}function i3({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function Yp(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const u=e.getValue("willChange");n&&(o=n);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in s){const d=e.getValue(f),h=s[f];if(!d||h===void 0||c&&i3(c,f))continue;const m={delay:r,elapsed:0,...o};if(window.HandoffAppearAnimations&&!d.hasAnimated){const v=e.getProps()[Uw];v&&(m.elapsed=window.HandoffAppearAnimations(v,f,d,at),m.syncStart=!0)}d.start(Ku(f,d,h,e.shouldReduceMotion&&En.has(f)?{type:!1}:m));const p=d.animation;ss(u)&&(u.add(f),p.then(()=>u.remove(f))),l.push(p)}return a&&Promise.all(l).then(()=>{a&&e3(e,a)}),l}function ec(e,t,r={}){const n=rs(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const o=n?()=>Promise.all(Yp(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:f}=i;return o3(e,t,l+u,c,f,r)}:()=>Promise.resolve(),{when:s}=i;if(s){const[u,l]=s==="beforeChildren"?[o,a]:[a,o];return u().then(()=>l())}else return Promise.all([o(),a(r.delay)])}function o3(e,t,r=0,n=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*n,u=i===1?(l=0)=>l*n:(l=0)=>s-l*n;return Array.from(e.variantChildren).sort(a3).forEach((l,c)=>{l.notify("AnimationStart",t),a.push(ec(l,t,{...o,delay:r+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(a)}function a3(e,t){return e.sortNodePosition(t)}function s3(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(o=>ec(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=ec(e,t,r);else{const i=typeof t=="function"?rs(e,t,r.custom):t;n=Promise.all(Yp(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}const l3=[...bu].reverse(),u3=bu.length;function c3(e){return t=>Promise.all(t.map(({animation:r,options:n})=>s3(e,r,n)))}function f3(e){let t=c3(e);const r=h3();let n=!0;const i=(u,l)=>{const c=rs(e,l);if(c){const{transition:f,transitionEnd:d,...h}=c;u={...u,...h,...d}}return u};function o(u){t=u(e)}function a(u,l){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let m={},p=1/0;for(let x=0;x<u3;x++){const b=l3[x],C=r[b],E=c[b]!==void 0?c[b]:f[b],w=Oo(E),k=b===l?C.isActive:null;k===!1&&(p=x);let T=E===f[b]&&E!==c[b]&&w;if(T&&n&&e.manuallyAnimateOnMount&&(T=!1),C.protectedKeys={...m},!C.isActive&&k===null||!E&&!C.prevProp||Ya(E)||typeof E=="boolean")continue;const O=d3(C.prevProp,E);let A=O||b===l&&C.isActive&&!T&&w||x>p&&w;const L=Array.isArray(E)?E:[E];let Z=L.reduce(i,{});k===!1&&(Z={});const{prevResolvedValues:pe={}}=C,se={...pe,...Z},q=G=>{A=!0,h.delete(G),C.needsAnimating[G]=!0};for(const G in se){const me=Z[G],Ee=pe[G];m.hasOwnProperty(G)||(me!==Ee?Qa(me)&&Qa(Ee)?!ip(me,Ee)||O?q(G):C.protectedKeys[G]=!0:me!==void 0?q(G):h.add(G):me!==void 0&&h.has(G)?q(G):C.protectedKeys[G]=!0)}C.prevProp=E,C.prevResolvedValues=Z,C.isActive&&(m={...m,...Z}),n&&e.blockInitialAnimation&&(A=!1),A&&!T&&d.push(...L.map(G=>({animation:G,options:{type:b,...u}})))}if(h.size){const x={};h.forEach(b=>{const C=e.getBaseTarget(b);C!==void 0&&(x[b]=C)}),d.push({animation:x})}let v=!!d.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(v=!1),n=!1,v?t(d):Promise.resolve()}function s(u,l,c){var f;if(r[u].isActive===l)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var m;return(m=h.animationState)===null||m===void 0?void 0:m.setActive(u,l)}),r[u].isActive=l;const d=a(c,u);for(const h in r)r[h].protectedKeys={};return d}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>r}}function d3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ip(t,e):!1}function _n(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function h3(){return{animate:_n(!0),whileInView:_n(),whileHover:_n(),whileTap:_n(),whileDrag:_n(),whileFocus:_n(),exit:_n()}}class p3 extends an{constructor(t){super(t),t.animationState||(t.animationState=f3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Ya(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let g3=0;class m3 extends an{constructor(){super(...arguments),this.id=g3++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&o.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const v3={animation:{Feature:p3},exit:{Feature:m3}},Gp=(e,t)=>Math.abs(e-t);function y3(e,t){const r=Gp(e.x,t.x),n=Gp(e.y,t.y);return Math.sqrt(r**2+n**2)}class qp{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=rc(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=y3(l.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=l,{timestamp:h}=$t;this.history.push({...d,timestamp:h});const{onStart:m,onMove:p}=this.handlers;c||(m&&m(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,l)},this.handlePointerMove=(l,c)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=tc(c,this.transformPagePoint),at.update(this.updatePoint,!0)},this.handlePointerUp=(l,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=rc(l.type==="pointercancel"?this.lastMoveEventInfo:tc(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(l,h),d&&d(l,h)},!Xh(t))return;this.handlers=r,this.transformPagePoint=n;const i=ts(t),o=tc(i,this.transformPagePoint),{point:a}=o,{timestamp:s}=$t;this.history=[{...a,timestamp:s}];const{onSessionStart:u}=r;u&&u(t,rc(o,this.history)),this.removeListeners=on(Nr(window,"pointermove",this.handlePointerMove),Nr(window,"pointerup",this.handlePointerUp),Nr(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Lr(this.updatePoint)}}function tc(e,t){return t?{point:t(e.point)}:e}function Kp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rc({point:e},t){return{point:e,delta:Kp(e,Xp(t)),offset:Kp(e,b3(t)),velocity:x3(t,.1)}}function b3(e){return e[0]}function Xp(e){return e[e.length-1]}function x3(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=Xp(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>sn(t)));)r--;if(!n)return{x:0,y:0};const o=Br(i.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Jt(e){return e.max-e.min}function nc(e,t=0,r=.01){return Math.abs(e-t)<=r}function Zp(e,t,r,n=.5){e.origin=n,e.originPoint=gt(t.min,t.max,e.origin),e.scale=Jt(r)/Jt(t),(nc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=gt(r.min,r.max,e.origin)-e.originPoint,(nc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Bo(e,t,r,n){Zp(e.x,t.x,r.x,n?n.originX:void 0),Zp(e.y,t.y,r.y,n?n.originY:void 0)}function Qp(e,t,r){e.min=r.min+t.min,e.max=e.min+Jt(t)}function w3(e,t,r){Qp(e.x,t.x,r.x),Qp(e.y,t.y,r.y)}function Jp(e,t,r){e.min=t.min-r.min,e.max=e.min+Jt(t)}function zo(e,t,r){Jp(e.x,t.x,r.x),Jp(e.y,t.y,r.y)}function C3(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?gt(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?gt(r,e,n.max):Math.min(e,r)),e}function e0(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function S3(e,{top:t,left:r,bottom:n,right:i}){return{x:e0(e.x,r,i),y:e0(e.y,t,n)}}function t0(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function E3(e,t){return{x:t0(e.x,t.x),y:t0(e.y,t.y)}}function T3(e,t){let r=.5;const n=Jt(e),i=Jt(t);return i>n?r=Ro(t.min,t.max-n,e.min):n>i&&(r=Ro(e.min,e.max-i,t.min)),rn(0,1,r)}function k3(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const ic=.35;function _3(e=ic){return e===!1?e=0:e===!0&&(e=ic),{x:r0(e,"left","right"),y:r0(e,"top","bottom")}}function r0(e,t,r){return{min:n0(e,t),max:n0(e,r)}}function n0(e,t){return typeof e=="number"?e:e[t]||0}const i0=()=>({translate:0,scale:1,origin:0,originPoint:0}),li=()=>({x:i0(),y:i0()}),o0=()=>({min:0,max:0}),Mt=()=>({x:o0(),y:o0()});function Tr(e){return[e("x"),e("y")]}function a0({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function O3({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function M3(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function oc(e){return e===void 0||e===1}function ac({scale:e,scaleX:t,scaleY:r}){return!oc(e)||!oc(t)||!oc(r)}function On(e){return ac(e)||s0(e)||e.z||e.rotate||e.rotateX||e.rotateY}function s0(e){return l0(e.x)||l0(e.y)}function l0(e){return e&&e!=="0%"}function ls(e,t,r){const n=e-r,i=t*n;return r+i}function u0(e,t,r,n,i){return i!==void 0&&(e=ls(e,i,n)),ls(e,r,n)+t}function sc(e,t=0,r=1,n,i){e.min=u0(e.min,t,r,n,i),e.max=u0(e.max,t,r,n,i)}function c0(e,{x:t,y:r}){sc(e.x,t.translate,t.scale,t.originPoint),sc(e.y,r.translate,r.scale,r.originPoint)}function P3(e,t,r,n=!1){const i=r.length;if(!i)return;t.x=t.y=1;let o,a;for(let s=0;s<i;s++){o=r[s],a=o.projectionDelta;const u=o.instance;u&&u.style&&u.style.display==="contents"||(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ui(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,c0(e,a)),n&&On(o.latestValues)&&ui(e,o.latestValues))}t.x=f0(t.x),t.y=f0(t.y)}function f0(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function un(e,t){e.min=e.min+t,e.max=e.max+t}function d0(e,t,[r,n,i]){const o=t[i]!==void 0?t[i]:.5,a=gt(e.min,e.max,o);sc(e,t[r],t[n],a,t.scale)}const A3=["x","scaleX","originX"],D3=["y","scaleY","originY"];function ui(e,t){d0(e.x,t,A3),d0(e.y,t,D3)}function h0(e,t){return a0(M3(e.getBoundingClientRect(),t))}function $3(e,t,r){const n=h0(e,r),{scroll:i}=t;return i&&(un(n.x,i.offset.x),un(n.y,i.offset.y)),n}const I3=new WeakMap;class F3{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Mt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=u=>{this.stopAnimation(),r&&this.snapToCursor(ts(u,"page").point)},o=(u,l)=>{const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();if(c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ep(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Tr(m=>{let p=this.getAxisMotionValue(m).get()||0;if(Er.test(p)){const{projection:v}=this.visualElement;if(v&&v.layout){const x=v.layout.layoutBox[m];x&&(p=Jt(x)*(parseFloat(p)/100))}}this.originPoint[m]=p}),d&&at.update(()=>d(u,l),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},a=(u,l)=>{const{dragPropagation:c,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:m}=l;if(f&&this.currentDirection===null){this.currentDirection=j3(m),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",l.point,m),this.updateAxis("y",l.point,m),this.visualElement.render(),h&&h(u,l)},s=(u,l)=>this.stop(u,l);this.panSession=new qp(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&at.update(()=>o(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!us(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=C3(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&oi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=S3(n.layoutBox,t):this.constraints=!1,this.elastic=_3(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Tr(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=k3(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!oi(t))return!1;const n=t.current;gr(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=$3(n,i.root,this.visualElement.getTransformPagePoint());let a=E3(i.layout.layoutBox,o);if(r){const s=r(O3(a));this.hasMutatedConstraints=!!s,s&&(a=a0(s))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),u=this.constraints||{},l=Tr(c=>{if(!us(c,r,this.currentDirection))return;let f=u&&u[c]||{};a&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,m={type:"inertia",velocity:n?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,m)});return Promise.all(l).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(Ku(t,n,0,r))}stopAnimation(){Tr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Tr(r=>{const{drag:n}=this.getProps();if(!us(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(r);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[r];o.set(t[r]-gt(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!oi(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Tr(a=>{const s=this.getAxisMotionValue(a);if(s){const u=s.get();i[a]=T3({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Tr(a=>{if(!us(a,t,null))return;const s=this.getAxisMotionValue(a),{min:u,max:l}=this.constraints[a];s.set(gt(u,l,i[a]))})}addListeners(){if(!this.visualElement.current)return;I3.set(this.visualElement,this);const t=this.visualElement.current,r=Nr(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),n=()=>{const{dragConstraints:u}=this.getProps();oi(u)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const a=Rr(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(Tr(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=u[c].translate,f.set(f.get()+u[c].translate))}),this.visualElement.render())});return()=>{a(),r(),o(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=ic,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function us(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function j3(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class L3 extends an{constructor(t){super(t),this.removeGroupControls=xt,this.removeListeners=xt,this.controls=new F3(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xt}unmount(){this.removeGroupControls(),this.removeListeners()}}const p0=e=>(t,r)=>{e&&at.update(()=>e(t,r))};class R3 extends an{constructor(){super(...arguments),this.removePointerDownListener=xt}onPointerDown(t){this.session=new qp(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:p0(t),onStart:p0(r),onMove:n,onEnd:(o,a)=>{delete this.session,i&&at.update(()=>i(o,a))}}}mount(){this.removePointerDownListener=Nr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function N3(){const e=g.useContext(Ha);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,i=g.useId();return g.useEffect(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}const cs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function g0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const r=g0(e,t.target.x),n=g0(e,t.target.y);return`${r}% ${n}%`}},B3={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=ln.parse(e);if(i.length>5)return n;const o=ln.createTransformer(e),a=typeof i[0]!="number"?1:0,s=r.x.scale*t.x,u=r.y.scale*t.y;i[0+a]/=s,i[1+a]/=u;const l=gt(s,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=l),typeof i[3+a]=="number"&&(i[3+a]/=l),o(i)}};class z3 extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;Jx(V3),o&&(r.group&&r.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),cs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:o}=this.props,a=n.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||at.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function m0(e){const[t,r]=N3(),n=g.useContext(Cu);return g.createElement(z3,{...e,layoutGroup:n,switchLayoutGroup:g.useContext(Ah),isPresent:t,safeToRemove:r})}const V3={borderRadius:{...Vo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vo,borderTopRightRadius:Vo,borderBottomLeftRadius:Vo,borderBottomRightRadius:Vo,boxShadow:B3},v0=["TopLeft","TopRight","BottomLeft","BottomRight"],W3=v0.length,y0=e=>typeof e=="string"?parseFloat(e):e,b0=e=>typeof e=="number"||we.test(e);function H3(e,t,r,n,i,o){i?(e.opacity=gt(0,r.opacity!==void 0?r.opacity:1,U3(n)),e.opacityExit=gt(t.opacity!==void 0?t.opacity:1,0,Y3(n))):o&&(e.opacity=gt(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;a<W3;a++){const s=`border${v0[a]}Radius`;let u=x0(t,s),l=x0(r,s);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||b0(u)===b0(l)?(e[s]=Math.max(gt(y0(u),y0(l),n),0),(Er.test(l)||Er.test(u))&&(e[s]+="%")):e[s]=l}(t.rotate||r.rotate)&&(e.rotate=gt(t.rotate||0,r.rotate||0,n))}function x0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const U3=w0(0,.5,ju),Y3=w0(.5,.95,xt);function w0(e,t,r){return n=>n<e?0:n>t?1:r(Ro(e,t,n))}function C0(e,t){e.min=t.min,e.max=t.max}function cr(e,t){C0(e.x,t.x),C0(e.y,t.y)}function S0(e,t,r,n,i){return e-=t,e=ls(e,1/r,n),i!==void 0&&(e=ls(e,1/i,n)),e}function G3(e,t=0,r=1,n=.5,i,o=e,a=e){if(Er.test(t)&&(t=parseFloat(t),t=gt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=gt(o.min,o.max,n);e===o&&(s-=t),e.min=S0(e.min,t,r,s,i),e.max=S0(e.max,t,r,s,i)}function E0(e,t,[r,n,i],o,a){G3(e,t[r],t[n],t[i],t.scale,o,a)}const q3=["x","scaleX","originX"],K3=["y","scaleY","originY"];function T0(e,t,r,n){E0(e.x,t,q3,r?r.x:void 0,n?n.x:void 0),E0(e.y,t,K3,r?r.y:void 0,n?n.y:void 0)}function k0(e){return e.translate===0&&e.scale===1}function _0(e){return k0(e.x)&&k0(e.y)}function X3(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function O0(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function M0(e){return Jt(e.x)/Jt(e.y)}class Z3{constructor(){this.members=[]}add(t){Xu(this.members,t),t.scheduleRender()}remove(t){if(Zu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function P0(e,t,r){let n="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:u,rotateX:l,rotateY:c}=r;u&&(n+=`rotate(${u}deg) `),l&&(n+=`rotateX(${l}deg) `),c&&(n+=`rotateY(${c}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(n+=`scale(${a}, ${s})`),n||"none"}const Q3=(e,t)=>e.depth-t.depth;class J3{constructor(){this.children=[],this.isDirty=!1}add(t){Xu(this.children,t),this.isDirty=!0}remove(t){Zu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Q3),this.isDirty=!1,this.children.forEach(t)}}function eC(e,t){const r=performance.now(),n=({timestamp:i})=>{const o=i-r;o>=t&&(Lr(n),e(o-t))};return at.read(n,!0),()=>Lr(n)}function tC(e){window.MotionDebug&&window.MotionDebug.record(e)}function rC(e){return e instanceof SVGElement&&e.tagName!=="svg"}function nC(e,t,r){const n=Ut(e)?e:si(e);return n.start(Ku("",n,t,r)),n.animation}const A0=["","X","Y","Z"],D0=1e3;let iC=0;const Mn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function $0({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=iC++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Mn.totalNodes=Mn.resolvedTargetDeltas=Mn.recalculatedProjection=0,this.nodes.forEach(sC),this.nodes.forEach(dC),this.nodes.forEach(hC),this.nodes.forEach(lC),tC(Mn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new J3)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Qu),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const u=this.eventHandlers.get(a);u&&u.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=rC(a),this.instance=a;const{layoutId:u,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(l||u)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=eC(d,250),cs.hasAnimatedSinceResize&&(cs.hasAnimatedSinceResize=!1,this.nodes.forEach(F0))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||yC,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=c.getProps(),b=!this.targetLayout||!O0(this.targetLayout,m)||h,C=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,C);const E={...zp(p,"layout"),onPlay:v,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else d||F0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.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(pC),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:u}=this.options;if(s===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(I0);return}this.isUpdating||this.nodes.forEach(cC),this.isUpdating=!1,this.nodes.forEach(fC),this.nodes.forEach(oC),this.nodes.forEach(aC),this.clearAllSnapshots();const s=performance.now();$t.delta=rn(0,1e3/60,s-$t.timestamp),$t.timestamp=s,$t.isProcessing=!0,Du.update.process($t),Du.preRender.process($t),Du.render.process($t),$t.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(uC),this.sharedNodes.forEach(gC)}scheduleUpdateProjection(){at.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){at.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Mt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!_0(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;a&&(s||On(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let u=this.removeElementScroll(s);return a&&(u=this.removeTransform(u)),bC(u),{animationId:this.root.animationId,measuredBox:s,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Mt();const s=a.measureViewportBox(),{scroll:u}=this.root;return u&&(un(s.x,u.offset.x),un(s.y,u.offset.y)),s}removeElementScroll(a){const s=Mt();cr(s,a);for(let u=0;u<this.path.length;u++){const l=this.path[u],{scroll:c,options:f}=l;if(l!==this.root&&c&&f.layoutScroll){if(c.isRoot){cr(s,a);const{scroll:d}=this.root;d&&(un(s.x,-d.offset.x),un(s.y,-d.offset.y))}un(s.x,c.offset.x),un(s.y,c.offset.y)}}return s}applyTransform(a,s=!1){const u=Mt();cr(u,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ui(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),On(c.latestValues)&&ui(u,c.latestValues)}return On(this.latestValues)&&ui(u,this.latestValues),u}removeTransform(a){const s=Mt();cr(s,a);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!On(l.latestValues))continue;ac(l.latestValues)&&l.updateSnapshot();const c=Mt(),f=l.measurePageBox();cr(c,f),T0(s,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return On(this.latestValues)&&T0(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}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!==$t.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==u;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=$t.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Mt(),this.relativeTargetOrigin=Mt(),zo(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),cr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Mt(),this.targetWithTransforms=Mt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),w3(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):cr(this.target,this.layout.layoutBox),c0(this.target,this.targetDelta)):cr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Mt(),this.relativeTargetOrigin=Mt(),zo(this.relativeTargetOrigin,this.target,h.target),cr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Mn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||ac(this.parent.latestValues)||s0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const s=this.getLead(),u=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(l=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===$t.timestamp&&(l=!1),l)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;cr(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;P3(this.layoutCorrected,this.treeScale,this.path,u),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox);const{target:m}=s;if(!m){this.projectionTransform&&(this.projectionDelta=li(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=li(),this.projectionDeltaWithTransform=li());const p=this.projectionTransform;Bo(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=P0(this.projectionDelta,this.treeScale),(this.projectionTransform!==p||this.treeScale.x!==d||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Mn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,s=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},f=li();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const d=Mt(),h=u?u.source:void 0,m=this.layout?this.layout.source:void 0,p=h!==m,v=this.getStack(),x=!v||v.members.length<=1,b=!!(p&&!x&&this.options.crossfade===!0&&!this.path.some(vC));this.animationProgress=0;let C;this.mixTargetDelta=E=>{const w=E/1e3;j0(f.x,a.x,w),j0(f.y,a.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zo(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mC(this.relativeTarget,this.relativeTargetOrigin,d,w),C&&X3(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Mt()),cr(C,this.relativeTarget)),p&&(this.animationValues=c,H3(c,l,this.latestValues,w,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){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=at.update(()=>{cs.hasAnimatedSinceResize=!0,this.currentAnimation=nC(0,D0,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(D0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:u,layout:l,latestValues:c}=a;if(!(!s||!u||!l)){if(this!==a&&this.layout&&l&&z0(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||Mt();const f=Jt(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+f;const d=Jt(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+d}cr(s,u),ui(s,c),Bo(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Z3),this.sharedNodes.get(a).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:u}=a;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(s=!0),!s)return;const l={};for(let c=0;c<A0.length;c++){const f="rotate"+A0[c];u[f]&&(l[f]=u[f],a.setStaticValue(f,0))}a.render();for(const c in l)a.setStaticValue(c,l[c]);a.scheduleRender()}getProjectionStyles(a={}){var s,u;const l={};if(!this.instance||this.isSVG)return l;if(this.isVisible)l.visibility="";else return{visibility:"hidden"};const c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Ja(a.pointerEvents)||"",l.transform=c?c(this.latestValues,""):"none",l;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=Ja(a.pointerEvents)||""),this.hasProjected&&!On(this.latestValues)&&(p.transform=c?c({},""):"none",this.hasProjected=!1),p}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),l.transform=P0(this.projectionDeltaWithTransform,this.treeScale,d),c&&(l.transform=c(d,l.transform));const{x:h,y:m}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,f.animationValues?l.opacity=f===this?(u=(s=d.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:l.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const p in qa){if(d[p]===void 0)continue;const{correct:v,applyTo:x}=qa[p],b=l.transform==="none"?d[p]:v(d[p],f);if(x){const C=x.length;for(let E=0;E<C;E++)l[x[E]]=b}else l[p]=b}return this.options.layoutId&&(l.pointerEvents=f===this?Ja(a.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(I0),this.root.sharedNodes.clear()}}}function oC(e){e.updateLayout()}function aC(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:o}=e.options,a=r.source!==e.layout.source;o==="size"?Tr(f=>{const d=a?r.measuredBox[f]:r.layoutBox[f],h=Jt(d);d.min=n[f].min,d.max=d.min+h}):z0(o,r.layoutBox,n)&&Tr(f=>{const d=a?r.measuredBox[f]:r.layoutBox[f],h=Jt(n[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=li();Bo(s,n,r.layoutBox);const u=li();a?Bo(u,e.applyTransform(i,!0),r.measuredBox):Bo(u,n,r.layoutBox);const l=!_0(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const m=Mt();zo(m,r.layoutBox,d.layoutBox);const p=Mt();zo(p,n,h.layoutBox),O0(m,p)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:u,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function sC(e){Mn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function lC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function uC(e){e.clearSnapshot()}function I0(e){e.clearMeasurements()}function cC(e){e.isLayoutDirty=!1}function fC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function F0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function dC(e){e.resolveTargetDelta()}function hC(e){e.calcProjection()}function pC(e){e.resetRotation()}function gC(e){e.removeLeadSnapshot()}function j0(e,t,r){e.translate=gt(t.translate,0,r),e.scale=gt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function L0(e,t,r,n){e.min=gt(t.min,r.min,n),e.max=gt(t.max,r.max,n)}function mC(e,t,r,n){L0(e.x,t.x,r.x,n),L0(e.y,t.y,r.y,n)}function vC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const yC={duration:.45,ease:[.4,0,.1,1]},R0=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),N0=R0("applewebkit/")&&!R0("chrome/")?Math.round:xt;function B0(e){e.min=N0(e.min),e.max=N0(e.max)}function bC(e){B0(e.x),B0(e.y)}function z0(e,t,r){return e==="position"||e==="preserve-aspect"&&!nc(M0(t),M0(r),.2)}const xC=$0({attachResizeListener:(e,t)=>Rr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lc={current:void 0},V0=$0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lc.current){const e=new xC({});e.mount(window),e.setOptions({layoutScroll:!0}),lc.current=e}return lc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),wC={pan:{Feature:R3},drag:{Feature:L3,ProjectionNode:V0,MeasureLayout:m0}},CC=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function SC(e){const t=CC.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}const EC=4;function uc(e,t,r=1){gr(r<=EC,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,i]=SC(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const a=o.trim();return Vp(a)?parseFloat(a):a}else return Eu(i)?uc(i,t,r+1):i}function TC(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(i=>{const o=i.get();if(!Eu(o))return;const a=uc(o,n);a&&i.set(a)});for(const i in t){const o=t[i];if(!Eu(o))continue;const a=uc(o,n);a&&(t[i]=a,r||(r={}),r[i]===void 0&&(r[i]=o))}return{target:t,transitionEnd:r}}const kC=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),W0=e=>kC.has(e),_C=e=>Object.keys(e).some(W0),fs=e=>e===Tn||e===we,H0=(e,t)=>parseFloat(e.split(", ")[t]),U0=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return H0(i[1],t);{const o=n.match(/^matrix\((.+)\)$/);return o?H0(o[1],e):0}},OC=new Set(["x","y","z"]),MC=Po.filter(e=>!OC.has(e));function PC(e){const t=[];return MC.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ci={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:U0(4,13),y:U0(5,14)};ci.translateX=ci.x,ci.translateY=ci.y;const AC=(e,t,r)=>{const n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(l=>{s[l]=ci[l](n,o)}),t.render();const u=t.measureViewportBox();return r.forEach(l=>{const c=t.getValue(l);c&&c.jump(s[l]),e[l]=ci[l](u,o)}),e},DC=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(W0);let o=[],a=!1;const s=[];if(i.forEach(u=>{const l=e.getValue(u);if(!e.hasValue(u))return;let c=r[u],f=No(c);const d=t[u];let h;if(Qa(d)){const m=d.length,p=d[0]===null?1:0;c=d[p],f=No(c);for(let v=p;v<m&&d[v]!==null;v++)h?gr(No(d[v])===h,"All keyframes must be of the same type"):(h=No(d[v]),gr(h===f||fs(f)&&fs(h),"Keyframes must be of the same dimension as the current value"))}else h=No(d);if(f!==h)if(fs(f)&&fs(h)){const m=l.get();typeof m=="string"&&l.set(parseFloat(m)),typeof d=="string"?t[u]=parseFloat(d):Array.isArray(d)&&h===we&&(t[u]=d.map(parseFloat))}else f!=null&&f.transform&&(h!=null&&h.transform)&&(c===0||d===0)?c===0?l.set(h.transform(c)):t[u]=f.transform(d):(a||(o=PC(e),a=!0),s.push(u),n[u]=n[u]!==void 0?n[u]:t[u],l.jump(d))}),s.length){const u=s.indexOf("height")>=0?window.pageYOffset:null,l=AC(t,e,s);return o.length&&o.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),Ua&&u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function $C(e,t,r,n){return _C(t)?DC(e,t,r,n):{target:t,transitionEnd:n}}const IC=(e,t,r,n)=>{const i=TC(e,t,n);return t=i.target,n=i.transitionEnd,$C(e,t,r,n)},cc={current:null},Y0={current:!1};function FC(){if(Y0.current=!0,!!Ua)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cc.current=e.matches;e.addListener(t),t()}else cc.current=!1}function jC(e,t,r){const{willChange:n}=t;for(const i in t){const o=t[i],a=r[i];if(Ut(o))e.addValue(i,o),ss(n)&&n.add(i),process.env.NODE_ENV==="development"&&Ju(o.version==="10.16.3",`Attempting to mix Framer Motion versions ${o.version} with 10.16.3 may not work as expected.`);else if(Ut(a))e.addValue(i,si(o,{owner:e})),ss(n)&&n.remove(i);else if(a!==o)if(e.hasValue(i)){const s=e.getValue(i);!s.hasAnimated&&s.set(o)}else{const s=e.getStaticValue(i);e.addValue(i,si(s!==void 0?s:o,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}const G0=new WeakMap,q0=Object.keys(Mo),LC=q0.length,K0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],RC=xu.length;class NC{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>at.render(this.render,!1,!0);const{latestValues:s,renderState:u}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.isControllingVariants=Ga(r),this.isVariantNode=Oh(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(r,{});for(const f in c){const d=c[f];s[f]!==void 0&&Ut(d)&&(d.set(s[f],!1),ss(l)&&l.add(f))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,G0.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),Y0.current||FC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:cc.current,process.env.NODE_ENV!=="production"&&Ju(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){G0.delete(this.current),this.projection&&this.projection.unmount(),Lr(this.notifyUpdate),Lr(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=En.has(t),i=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&at.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,i,o){let a,s;if(process.env.NODE_ENV!=="production"&&i&&n){const u="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";r.ignoreStrict?Fo(!1,u):gr(!1,u)}for(let u=0;u<LC;u++){const l=q0[u],{isEnabled:c,Feature:f,ProjectionNode:d,MeasureLayout:h}=Mo[l];d&&(a=d),c(r)&&(!this.features[l]&&f&&(this.features[l]=new f(this)),h&&(s=h))}if(!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:u,layout:l,drag:c,dragConstraints:f,layoutScroll:d,layoutRoot:h}=r;this.projection.setOptions({layoutId:u,layout:l,alwaysMeasureLayout:!!c||f&&oi(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Mt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<K0.length;n++){const i=K0[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=jC(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}const r={};for(let n=0;n<RC;n++){const i=xu[n],o=this.props[i];(Oo(o)||o===!1)&&(r[i]=o)}return r}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=si(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=Au(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ut(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Qu),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class X0 extends NC{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:i},o){let a=n3(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),a&&(a=i(a))),o){t3(this,n,a);const s=IC(this,n,a,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function BC(e){return window.getComputedStyle(e)}class zC extends X0{readValueFromInstance(t,r){if(En.has(r)){const n=qu(r);return n&&n.default||0}else{const n=BC(t),i=(Ih(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return h0(t,r)}build(t,r,n,i){Tu(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,r){return Pu(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ut(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,i){Wh(t,r,n,i)}}class VC extends X0{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(En.has(r)){const n=qu(r);return n&&n.default||0}return r=Hh.has(r)?r:Mu(r),t.getAttribute(r)}measureInstanceViewportBox(){return Mt()}scrapeMotionValuesFromProps(t,r){return Yh(t,r)}build(t,r,n,i){_u(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){Uh(t,r,n,i)}mount(t){this.isSVGTag=Ou(t.tagName),super.mount(t)}}const WC=(e,t)=>Su(e)?new VC(t,{enableHardwareAcceleration:!1}):new zC(t,{enableHardwareAcceleration:!0}),HC={layout:{ProjectionNode:V0,MeasureLayout:m0}},mr=Zx(Mw);function Z0(){const e=g.useRef(!1);return vu(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function UC(){const e=Z0(),[t,r]=g.useState(0),n=g.useCallback(()=>{e.current&&r(t+1)},[t]);return[g.useCallback(()=>at.postRender(n),[n]),t]}class YC extends xe.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function GC({children:e,isPresent:t}){const r=g.useId(),n=g.useRef(null),i=g.useRef({width:0,height:0,top:0,left:0});return g.useInsertionEffect(()=>{const{width:o,height:a,top:s,left:u}=i.current;if(t||!n.current||!o||!a)return;n.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
|
|
28
28
|
[data-motion-pop-id="${r}"] {
|
|
29
29
|
position: absolute !important;
|
|
30
30
|
width: ${o}px !important;
|
|
@@ -32,26 +32,26 @@ Check the top-level render call using <`+J+">.")}return V}}function Kn(S,V){{if(
|
|
|
32
32
|
top: ${s}px !important;
|
|
33
33
|
left: ${u}px !important;
|
|
34
34
|
}
|
|
35
|
-
`),()=>{document.head.removeChild(l)}},[t]),xe.createElement(
|
|
35
|
+
`),()=>{document.head.removeChild(l)}},[t]),xe.createElement(YC,{isPresent:t,childRef:n,sizeRef:i},xe.cloneElement(e,{ref:n}))}const fc=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=Gh(qC),u=g.useId(),l=g.useMemo(()=>({id:u,initial:t,isPresent:r,custom:i,onExitComplete:c=>{s.set(c,!0);for(const f of s.values())if(!f)return;n&&n()},register:c=>(s.set(c,!1),()=>s.delete(c))}),o?void 0:[r]);return g.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[r]),xe.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),a==="popLayout"&&(e=xe.createElement(GC,{isPresent:r},e)),xe.createElement(Ha.Provider,{value:l},e)};function qC(){return new Map}function KC(e){return g.useEffect(()=>()=>e(),[])}const fi=e=>e.key||"";function XC(e,t){e.forEach(r=>{const n=fi(r);t.set(n,r)})}function ZC(e){const t=[];return g.Children.forEach(e,r=>{g.isValidElement(r)&&t.push(r)}),t}const Q0=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{gr(!i,"Replace exitBeforeEnter with mode='wait'");const s=g.useContext(Cu).forceRender||UC()[0],u=Z0(),l=ZC(e);let c=l;const f=g.useRef(new Map).current,d=g.useRef(c),h=g.useRef(new Map).current,m=g.useRef(!0);if(vu(()=>{m.current=!1,XC(l,h),d.current=c}),KC(()=>{m.current=!0,h.clear(),f.clear()}),m.current)return xe.createElement(xe.Fragment,null,c.map(b=>xe.createElement(fc,{key:fi(b),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:o,mode:a},b)));c=[...c];const p=d.current.map(fi),v=l.map(fi),x=p.length;for(let b=0;b<x;b++){const C=p[b];v.indexOf(C)===-1&&!f.has(C)&&f.set(C,void 0)}return a==="wait"&&f.size&&(c=[]),f.forEach((b,C)=>{if(v.indexOf(C)!==-1)return;const E=h.get(C);if(!E)return;const w=p.indexOf(C);let k=b;if(!k){const T=()=>{h.delete(C),f.delete(C);const O=d.current.findIndex(A=>A.key===C);if(d.current.splice(O,1),!f.size){if(d.current=l,u.current===!1)return;s(),n&&n()}};k=xe.createElement(fc,{key:fi(E),isPresent:!1,onExitComplete:T,custom:t,presenceAffectsLayout:o,mode:a},E),f.set(C,k)}c.splice(w,0,k)}),c=c.map(b=>{const C=b.key;return f.has(C)?b:xe.createElement(fc,{key:fi(b),isPresent:!0,presenceAffectsLayout:o,mode:a},b)}),process.env.NODE_ENV!=="production"&&a==="wait"&&c.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),xe.createElement(xe.Fragment,null,f.size?c:c.map(b=>g.cloneElement(b)))};function QC({children:e,features:t,strict:r=!1}){const[,n]=g.useState(!dc(t)),i=g.useRef(void 0);if(!dc(t)){const{renderer:o,...a}=t;i.current=o,wu(a)}return g.useEffect(()=>{dc(t)&&t().then(({renderer:o,...a})=>{wu(a),i.current=o,n(!0)})},[]),xe.createElement(yu.Provider,{value:{renderer:i.current,strict:r}},e)}function dc(e){return typeof e=="function"}const JC={...{renderer:WC,...v3,...Vw},...wC,...HC},eS=({open:e=!1,variants:t,onClose:r,children:n,sx:i,...o})=>y.jsx(Q0,{children:e&&y.jsx(P.Dialog,{fullWidth:!0,maxWidth:"xs",open:e,onClose:r,PaperComponent:a=>y.jsxs(P.Box,{component:mr.div,...t||Eo({distance:120,durationIn:.32,durationOut:.24,easeIn:"easeInOut"}).inUp,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:[y.jsx(P.Box,{onClick:r,sx:{width:"100%",height:"100%",position:"fixed"}}),y.jsx(P.Paper,{sx:i,...a,children:a.children})]}),...o,children:n})}),tS=({text:e,variants:t,sx:r,...n})=>y.jsx(P.Box,{component:mr.div,sx:{m:0,typography:"h1",overflow:"hidden",display:"inline-flex",...r},...n,children:e.split("").map((i,o)=>y.jsx(mr.span,{variants:t||Eo().inUp,children:i},o))}),J0=g.forwardRef(({size:e="large",children:t,sx:r,sxWrap:n,...i},o)=>y.jsx(oS,{size:e,sxWrap:n,children:y.jsx(P.Fab,{ref:o,size:e,sx:r,...i,children:t})}));J0.displayName="FabButtonAnimate";const rS={hover:{scale:1.07},tap:{scale:.97}},nS={hover:{scale:1.06},tap:{scale:.98}},iS={hover:{scale:1.05},tap:{scale:.99}},oS=({size:e,children:t,sxWrap:r})=>{const n=e==="small",i=e==="large";return y.jsx(P.Box,{component:mr.div,whileTap:"tap",whileHover:"hover",variants:n&&rS||i&&iS||nS,sx:{display:"inline-flex",...r},children:t})},aS={hover:{scale:1.1},tap:{scale:.95}},sS={hover:{scale:1.09},tap:{scale:.97}},lS={hover:{scale:1.08},tap:{scale:.99}},uS=({size:e,children:t})=>{const r=e==="small",n=e==="large";return y.jsx(P.Box,{component:mr.div,whileTap:"tap",whileHover:"hover",variants:r&&aS||n&&lS||sS,sx:{display:"inline-flex"},children:t})},eg=g.forwardRef(({children:e,size:t="medium",...r},n)=>y.jsx(uS,{size:t,children:y.jsx(P.IconButton,{size:t,ref:n,...r,children:e})}));eg.displayName="IconButtonAnimate";function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ae.apply(this,arguments)}function di(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function tg(e){if(!di(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=tg(e[r])}),t}function zr(e,t,r={clone:!0}){const n=r.clone?Ae({},e):e;return di(e)&&di(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(di(t[i])&&i in e&&di(e[i])?n[i]=zr(e[i],t[i],r):r.clone?n[i]=di(t[i])?tg(t[i]):t[i]:n[i]=t[i])}),n}var hc={exports:{}},ds={exports:{}},Ke={};/** @license React v16.13.1
|
|
36
36
|
* react-is.production.min.js
|
|
37
37
|
*
|
|
38
38
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var
|
|
42
|
+
*/var rg;function cS(){if(rg)return Ke;rg=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function C(w){if(typeof w=="object"&&w!==null){var k=w.$$typeof;switch(k){case t:switch(w=w.type,w){case u:case l:case n:case o:case i:case f:return w;default:switch(w=w&&w.$$typeof,w){case s:case c:case m:case h:case a:return w;default:return k}}case r:return k}}}function E(w){return C(w)===l}return Ke.AsyncMode=u,Ke.ConcurrentMode=l,Ke.ContextConsumer=s,Ke.ContextProvider=a,Ke.Element=t,Ke.ForwardRef=c,Ke.Fragment=n,Ke.Lazy=m,Ke.Memo=h,Ke.Portal=r,Ke.Profiler=o,Ke.StrictMode=i,Ke.Suspense=f,Ke.isAsyncMode=function(w){return E(w)||C(w)===u},Ke.isConcurrentMode=E,Ke.isContextConsumer=function(w){return C(w)===s},Ke.isContextProvider=function(w){return C(w)===a},Ke.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ke.isForwardRef=function(w){return C(w)===c},Ke.isFragment=function(w){return C(w)===n},Ke.isLazy=function(w){return C(w)===m},Ke.isMemo=function(w){return C(w)===h},Ke.isPortal=function(w){return C(w)===r},Ke.isProfiler=function(w){return C(w)===o},Ke.isStrictMode=function(w){return C(w)===i},Ke.isSuspense=function(w){return C(w)===f},Ke.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===l||w===o||w===i||w===f||w===d||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===h||w.$$typeof===a||w.$$typeof===s||w.$$typeof===c||w.$$typeof===v||w.$$typeof===x||w.$$typeof===b||w.$$typeof===p)},Ke.typeOf=C,Ke}var Xe={};/** @license React v16.13.1
|
|
43
43
|
* react-is.development.js
|
|
44
44
|
*
|
|
45
45
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
46
46
|
*
|
|
47
47
|
* This source code is licensed under the MIT license found in the
|
|
48
48
|
* LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/var
|
|
49
|
+
*/var ng;function fS(){return ng||(ng=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function C(N){return typeof N=="string"||typeof N=="function"||N===n||N===l||N===o||N===i||N===f||N===d||typeof N=="object"&&N!==null&&(N.$$typeof===m||N.$$typeof===h||N.$$typeof===a||N.$$typeof===s||N.$$typeof===c||N.$$typeof===v||N.$$typeof===x||N.$$typeof===b||N.$$typeof===p)}function E(N){if(typeof N=="object"&&N!==null){var Ne=N.$$typeof;switch(Ne){case t:var le=N.type;switch(le){case u:case l:case n:case o:case i:case f:return le;default:var pt=le&&le.$$typeof;switch(pt){case s:case c:case m:case h:case a:return pt;default:return Ne}}case r:return Ne}}}var w=u,k=l,T=s,O=a,A=t,L=c,Z=n,pe=m,se=h,q=r,G=o,me=i,Ee=f,Ie=!1;function _e(N){return Ie||(Ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(N)||E(N)===u}function $(N){return E(N)===l}function j(N){return E(N)===s}function X(N){return E(N)===a}function te(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function H(N){return E(N)===c}function fe(N){return E(N)===n}function ue(N){return E(N)===m}function ge(N){return E(N)===h}function Q(N){return E(N)===r}function J(N){return E(N)===o}function ne(N){return E(N)===i}function be(N){return E(N)===f}Xe.AsyncMode=w,Xe.ConcurrentMode=k,Xe.ContextConsumer=T,Xe.ContextProvider=O,Xe.Element=A,Xe.ForwardRef=L,Xe.Fragment=Z,Xe.Lazy=pe,Xe.Memo=se,Xe.Portal=q,Xe.Profiler=G,Xe.StrictMode=me,Xe.Suspense=Ee,Xe.isAsyncMode=_e,Xe.isConcurrentMode=$,Xe.isContextConsumer=j,Xe.isContextProvider=X,Xe.isElement=te,Xe.isForwardRef=H,Xe.isFragment=fe,Xe.isLazy=ue,Xe.isMemo=ge,Xe.isPortal=Q,Xe.isProfiler=J,Xe.isStrictMode=ne,Xe.isSuspense=be,Xe.isValidElementType=C,Xe.typeOf=E}()),Xe}var ig;function og(){return ig||(ig=1,process.env.NODE_ENV==="production"?ds.exports=cS():ds.exports=fS()),ds.exports}/*
|
|
50
50
|
object-assign
|
|
51
51
|
(c) Sindre Sorhus
|
|
52
52
|
@license MIT
|
|
53
|
-
*/var
|
|
54
|
-
Valid keys: `+JSON.stringify(Object.keys($),null," "));var
|
|
53
|
+
*/var pc,ag;function dS(){if(ag)return pc;ag=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(c){l[c]=c}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return pc=i()?Object.assign:function(o,a){for(var s,u=n(o),l,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(u[f]=s[f]);if(e){l=e(s);for(var d=0;d<l.length;d++)r.call(s,l[d])&&(u[l[d]]=s[l[d]])}}return u},pc}var gc,sg;function mc(){if(sg)return gc;sg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return gc=e,gc}var vc,lg;function ug(){return lg||(lg=1,vc=Function.call.bind(Object.prototype.hasOwnProperty)),vc}var yc,cg;function hS(){if(cg)return yc;cg=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=mc(),r={},n=ug();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,u,l){if(process.env.NODE_ENV!=="production"){for(var c in o)if(n(o,c)){var f;try{if(typeof o[c]!="function"){var d=Error((u||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=o[c](a,c,u,s,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var h=l?l():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},yc=i,yc}var bc,fg;function pS(){if(fg)return bc;fg=1;var e=og(),t=dS(),r=mc(),n=ug(),i=hS(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return bc=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f($){var j=$&&(l&&$[l]||$[c]);if(typeof j=="function")return j}var d="<<anonymous>>",h={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:b(),arrayOf:C,element:E(),elementType:w(),instanceOf:k,node:L(),objectOf:O,oneOf:T,oneOfType:A,shape:pe,exact:se};function m($,j){return $===j?$!==0||1/$===1/j:$!==$&&j!==j}function p($,j){this.message=$,this.data=j&&typeof j=="object"?j:{},this.stack=""}p.prototype=Error.prototype;function v($){if(process.env.NODE_ENV!=="production")var j={},X=0;function te(fe,ue,ge,Q,J,ne,be){if(Q=Q||d,ne=ne||ge,be!==r){if(u){var N=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 N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ne=Q+":"+ge;!j[Ne]&&X<3&&(o("You are manually calling a React.PropTypes validation function for the `"+ne+"` prop on `"+Q+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),j[Ne]=!0,X++)}}return ue[ge]==null?fe?ue[ge]===null?new p("The "+J+" `"+ne+"` is marked as required "+("in `"+Q+"`, but its value is `null`.")):new p("The "+J+" `"+ne+"` is marked as required in "+("`"+Q+"`, but its value is `undefined`.")):null:$(ue,ge,Q,J,ne)}var H=te.bind(null,!1);return H.isRequired=te.bind(null,!0),H}function x($){function j(X,te,H,fe,ue,ge){var Q=X[te],J=me(Q);if(J!==$){var ne=Ee(Q);return new p("Invalid "+fe+" `"+ue+"` of type "+("`"+ne+"` supplied to `"+H+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return v(j)}function b(){return v(a)}function C($){function j(X,te,H,fe,ue){if(typeof $!="function")return new p("Property `"+ue+"` of component `"+H+"` has invalid PropType notation inside arrayOf.");var ge=X[te];if(!Array.isArray(ge)){var Q=me(ge);return new p("Invalid "+fe+" `"+ue+"` of type "+("`"+Q+"` supplied to `"+H+"`, expected an array."))}for(var J=0;J<ge.length;J++){var ne=$(ge,J,H,fe,ue+"["+J+"]",r);if(ne instanceof Error)return ne}return null}return v(j)}function E(){function $(j,X,te,H,fe){var ue=j[X];if(!s(ue)){var ge=me(ue);return new p("Invalid "+H+" `"+fe+"` of type "+("`"+ge+"` supplied to `"+te+"`, expected a single ReactElement."))}return null}return v($)}function w(){function $(j,X,te,H,fe){var ue=j[X];if(!e.isValidElementType(ue)){var ge=me(ue);return new p("Invalid "+H+" `"+fe+"` of type "+("`"+ge+"` supplied to `"+te+"`, expected a single ReactElement type."))}return null}return v($)}function k($){function j(X,te,H,fe,ue){if(!(X[te]instanceof $)){var ge=$.name||d,Q=_e(X[te]);return new p("Invalid "+fe+" `"+ue+"` of type "+("`"+Q+"` supplied to `"+H+"`, expected ")+("instance of `"+ge+"`."))}return null}return v(j)}function T($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function j(X,te,H,fe,ue){for(var ge=X[te],Q=0;Q<$.length;Q++)if(m(ge,$[Q]))return null;var J=JSON.stringify($,function(be,N){var Ne=Ee(N);return Ne==="symbol"?String(N):N});return new p("Invalid "+fe+" `"+ue+"` of value `"+String(ge)+"` "+("supplied to `"+H+"`, expected one of "+J+"."))}return v(j)}function O($){function j(X,te,H,fe,ue){if(typeof $!="function")return new p("Property `"+ue+"` of component `"+H+"` has invalid PropType notation inside objectOf.");var ge=X[te],Q=me(ge);if(Q!=="object")return new p("Invalid "+fe+" `"+ue+"` of type "+("`"+Q+"` supplied to `"+H+"`, expected an object."));for(var J in ge)if(n(ge,J)){var ne=$(ge,J,H,fe,ue+"."+J,r);if(ne instanceof Error)return ne}return null}return v(j)}function A($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var j=0;j<$.length;j++){var X=$[j];if(typeof X!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ie(X)+" at index "+j+"."),a}function te(H,fe,ue,ge,Q){for(var J=[],ne=0;ne<$.length;ne++){var be=$[ne],N=be(H,fe,ue,ge,Q,r);if(N==null)return null;N.data&&n(N.data,"expectedType")&&J.push(N.data.expectedType)}var Ne=J.length>0?", expected one of type ["+J.join(", ")+"]":"";return new p("Invalid "+ge+" `"+Q+"` supplied to "+("`"+ue+"`"+Ne+"."))}return v(te)}function L(){function $(j,X,te,H,fe){return q(j[X])?null:new p("Invalid "+H+" `"+fe+"` supplied to "+("`"+te+"`, expected a ReactNode."))}return v($)}function Z($,j,X,te,H){return new p(($||"React class")+": "+j+" type `"+X+"."+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+H+"`.")}function pe($){function j(X,te,H,fe,ue){var ge=X[te],Q=me(ge);if(Q!=="object")return new p("Invalid "+fe+" `"+ue+"` of type `"+Q+"` "+("supplied to `"+H+"`, expected `object`."));for(var J in $){var ne=$[J];if(typeof ne!="function")return Z(H,fe,ue,J,Ee(ne));var be=ne(ge,J,H,fe,ue+"."+J,r);if(be)return be}return null}return v(j)}function se($){function j(X,te,H,fe,ue){var ge=X[te],Q=me(ge);if(Q!=="object")return new p("Invalid "+fe+" `"+ue+"` of type `"+Q+"` "+("supplied to `"+H+"`, expected `object`."));var J=t({},X[te],$);for(var ne in J){var be=$[ne];if(n($,ne)&&typeof be!="function")return Z(H,fe,ue,ne,Ee(be));if(!be)return new p("Invalid "+fe+" `"+ue+"` key `"+ne+"` supplied to `"+H+"`.\nBad object: "+JSON.stringify(X[te],null," ")+`
|
|
54
|
+
Valid keys: `+JSON.stringify(Object.keys($),null," "));var N=be(ge,ne,H,fe,ue+"."+ne,r);if(N)return N}return null}return v(j)}function q($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(q);if($===null||s($))return!0;var j=f($);if(j){var X=j.call($),te;if(j!==$.entries){for(;!(te=X.next()).done;)if(!q(te.value))return!1}else for(;!(te=X.next()).done;){var H=te.value;if(H&&!q(H[1]))return!1}}else return!1;return!0;default:return!1}}function G($,j){return $==="symbol"?!0:j?j["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&j instanceof Symbol:!1}function me($){var j=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":G(j,$)?"symbol":j}function Ee($){if(typeof $>"u"||$===null)return""+$;var j=me($);if(j==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return j}function Ie($){var j=Ee($);switch(j){case"array":case"object":return"an "+j;case"boolean":case"date":case"regexp":return"a "+j;default:return j}}function _e($){return!$.constructor||!$.constructor.name?d:$.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},bc}var xc,dg;function gS(){if(dg)return xc;dg=1;var e=mc();function t(){}function r(){}return r.resetWarningCache=t,xc=function(){function n(a,s,u,l,c,f){if(f!==e){var d=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 d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},xc}if(process.env.NODE_ENV!=="production"){var mS=og(),vS=!0;hc.exports=pS()(mS.isElement,vS)}else hc.exports=gS()();var yS=hc.exports;const _=Sn(yS),bS="exact-prop: ";function hg(e){return process.env.NODE_ENV==="production"?e:Ae({},e,{[bS]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}})}function hi(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var wc={exports:{}},Ze={};/**
|
|
55
55
|
* @license React
|
|
56
56
|
* react-is.production.min.js
|
|
57
57
|
*
|
|
@@ -59,7 +59,7 @@ Valid keys: `+JSON.stringify(Object.keys($),null," "));var R=be(ge,ne,H,fe,ue+"
|
|
|
59
59
|
*
|
|
60
60
|
* This source code is licensed under the MIT license found in the
|
|
61
61
|
* LICENSE file in the root directory of this source tree.
|
|
62
|
-
*/var
|
|
62
|
+
*/var pg;function xS(){if(pg)return Ze;pg=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function p(v){if(typeof v=="object"&&v!==null){var x=v.$$typeof;switch(x){case e:switch(v=v.type,v){case r:case i:case n:case l:case c:return v;default:switch(v=v&&v.$$typeof,v){case s:case a:case u:case d:case f:case o:return v;default:return x}}case t:return x}}}return Ze.ContextConsumer=a,Ze.ContextProvider=o,Ze.Element=e,Ze.ForwardRef=u,Ze.Fragment=r,Ze.Lazy=d,Ze.Memo=f,Ze.Portal=t,Ze.Profiler=i,Ze.StrictMode=n,Ze.Suspense=l,Ze.SuspenseList=c,Ze.isAsyncMode=function(){return!1},Ze.isConcurrentMode=function(){return!1},Ze.isContextConsumer=function(v){return p(v)===a},Ze.isContextProvider=function(v){return p(v)===o},Ze.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Ze.isForwardRef=function(v){return p(v)===u},Ze.isFragment=function(v){return p(v)===r},Ze.isLazy=function(v){return p(v)===d},Ze.isMemo=function(v){return p(v)===f},Ze.isPortal=function(v){return p(v)===t},Ze.isProfiler=function(v){return p(v)===i},Ze.isStrictMode=function(v){return p(v)===n},Ze.isSuspense=function(v){return p(v)===l},Ze.isSuspenseList=function(v){return p(v)===c},Ze.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===l||v===c||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===d||v.$$typeof===f||v.$$typeof===o||v.$$typeof===a||v.$$typeof===u||v.$$typeof===m||v.getModuleId!==void 0)},Ze.typeOf=p,Ze}var Qe={};/**
|
|
63
63
|
* @license React
|
|
64
64
|
* react-is.development.js
|
|
65
65
|
*
|
|
@@ -67,26 +67,26 @@ Valid keys: `+JSON.stringify(Object.keys($),null," "));var R=be(ge,ne,H,fe,ue+"
|
|
|
67
67
|
*
|
|
68
68
|
* This source code is licensed under the MIT license found in the
|
|
69
69
|
* LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/var
|
|
71
|
-
`+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var a=v4(i);try{a.insertRule(n,a.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',s)}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Lt="-ms-",Xa="-moz-",Ue="-webkit-",Gu="comm",qu="rule",Ku="decl",x4="@import",j0="@keyframes",w4="@layer",C4=Math.abs,Za=String.fromCharCode,S4=Object.assign;function E4(e,t){return jt(e,0)^45?(((t<<2^jt(e,0))<<2^jt(e,1))<<2^jt(e,2))<<2^jt(e,3):0}function L0(e){return e.trim()}function T4(e,t){return(e=t.exec(e))?e[0]:e}function Ye(e,t,r){return e.replace(t,r)}function Xu(e,t){return e.indexOf(t)}function jt(e,t){return e.charCodeAt(t)|0}function Ao(e,t,r){return e.slice(t,r)}function Tr(e){return e.length}function Zu(e){return e.length}function Qa(e,t){return t.push(e),e}function _4(e,t){return e.map(t).join("")}var Ja=1,si=1,R0=0,Ut=0,Mt=0,li="";function es(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ja,column:si,length:a,return:""}}function Do(e,t){return S4(es("",null,null,"",null,null,0),e,{length:-e.length},t)}function O4(){return Mt}function k4(){return Mt=Ut>0?jt(li,--Ut):0,si--,Mt===10&&(si=1,Ja--),Mt}function Jt(){return Mt=Ut<R0?jt(li,Ut++):0,si++,Mt===10&&(si=1,Ja++),Mt}function _r(){return jt(li,Ut)}function ts(){return Ut}function $o(e,t){return Ao(li,e,t)}function Io(e){switch(e){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 B0(e){return Ja=si=1,R0=Tr(li=e),Ut=0,[]}function N0(e){return li="",e}function rs(e){return L0($o(Ut-1,Qu(e===91?e+2:e===40?e+1:e)))}function M4(e){for(;(Mt=_r())&&Mt<33;)Jt();return Io(e)>2||Io(Mt)>3?"":" "}function P4(e,t){for(;--t&&Jt()&&!(Mt<48||Mt>102||Mt>57&&Mt<65||Mt>70&&Mt<97););return $o(e,ts()+(t<6&&_r()==32&&Jt()==32))}function Qu(e){for(;Jt();)switch(Mt){case e:return Ut;case 34:case 39:e!==34&&e!==39&&Qu(Mt);break;case 40:e===41&&Qu(e);break;case 92:Jt();break}return Ut}function A4(e,t){for(;Jt()&&e+Mt!==47+10;)if(e+Mt===42+42&&_r()===47)break;return"/*"+$o(t,Ut-1)+"*"+Za(e===47?e:Jt())}function D4(e){for(;!Io(_r());)Jt();return $o(e,Ut)}function $4(e){return N0(ns("",null,null,null,[""],e=B0(e),0,[0],e))}function ns(e,t,r,n,i,o,a,s,u){for(var l=0,c=0,f=a,d=0,h=0,m=0,p=1,v=1,x=1,b=0,C="",E=i,w=o,_=n,O=C;v;)switch(m=b,b=Jt()){case 40:if(m!=108&&jt(O,f-1)==58){Xu(O+=Ye(rs(b),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:O+=rs(b);break;case 9:case 10:case 13:case 32:O+=M4(m);break;case 92:O+=P4(ts()-1,7);continue;case 47:switch(_r()){case 42:case 47:Qa(I4(A4(Jt(),ts()),t,r),u);break;default:O+="/"}break;case 123*p:s[l++]=Tr(O)*x;case 125*p:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+c:x==-1&&(O=Ye(O,/\f/g,"")),h>0&&Tr(O)-f&&Qa(h>32?V0(O+";",n,r,f-1):V0(Ye(O," ","")+";",n,r,f-2),u);break;case 59:O+=";";default:if(Qa(_=z0(O,t,r,l,c,i,s,C,E=[],w=[],f),o),b===123)if(c===0)ns(O,t,_,_,E,o,f,s,w);else switch(d===99&&jt(O,3)===110?100:d){case 100:case 108:case 109:case 115:ns(e,_,_,n&&Qa(z0(e,_,_,0,0,i,s,C,i,E=[],f),w),i,w,f,s,n?E:w);break;default:ns(O,_,_,_,[""],w,0,s,w)}}l=c=h=0,p=x=1,C=O="",f=a;break;case 58:f=1+Tr(O),h=m;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&k4()==125)continue}switch(O+=Za(b),b*p){case 38:x=c>0?1:(O+="\f",-1);break;case 44:s[l++]=(Tr(O)-1)*x,x=1;break;case 64:_r()===45&&(O+=rs(Jt())),d=_r(),c=f=Tr(C=O+=D4(ts())),b++;break;case 45:m===45&&Tr(O)==2&&(p=0)}}return o}function z0(e,t,r,n,i,o,a,s,u,l,c){for(var f=i-1,d=i===0?o:[""],h=Zu(d),m=0,p=0,v=0;m<n;++m)for(var x=0,b=Ao(e,f+1,f=C4(p=a[m])),C=e;x<h;++x)(C=L0(p>0?d[x]+" "+b:Ye(b,/&\f/g,d[x])))&&(u[v++]=C);return es(e,t,r,i===0?qu:s,u,l,c)}function I4(e,t,r){return es(e,t,r,Gu,Za(O4()),Ao(e,2,-2),0)}function V0(e,t,r,n){return es(e,t,r,Ku,Ao(e,0,n),Ao(e,n+1,-1),n)}function ui(e,t){for(var r="",n=Zu(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function F4(e,t,r,n){switch(e.type){case w4:if(e.children.length)break;case x4:case Ku:return e.return=e.return||e.value;case Gu:return"";case j0:return e.return=e.value+"{"+ui(e.children,n)+"}";case qu:e.value=e.props.join(",")}return Tr(r=ui(e.children,n))?e.return=e.value+"{"+r+"}":""}function j4(e){var t=Zu(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function L4(e){return function(t){t.root||(t=t.return)&&e(t)}}var R4=function(t,r,n){for(var i=0,o=0;i=o,o=_r(),i===38&&o===12&&(r[n]=1),!Io(o);)Jt();return $o(t,Ut)},B4=function(t,r){var n=-1,i=44;do switch(Io(i)){case 0:i===38&&_r()===12&&(r[n]=1),t[n]+=R4(Ut-1,r,n);break;case 2:t[n]+=rs(i);break;case 4:if(i===44){t[++n]=_r()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Za(i)}while(i=Jt());return t},N4=function(t,r){return N0(B4(B0(t),r))},W0=new WeakMap,z4=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!W0.get(n))&&!i){W0.set(t,!0);for(var o=[],a=N4(r,o),s=n.props,u=0,l=0;u<a.length;u++)for(var c=0;c<s.length;c++,l++)t.props[l]=o[u]?a[u].replace(/&\f/g,s[c]):s[c]+" "+a[u]}}},V4=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},W4="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",H4=function(t){return t.type==="comm"&&t.children.indexOf(W4)>-1},U4=function(t){return function(r,n,i){if(!(r.type!=="rule"||t.compat)){var o=r.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=!!r.parent,s=a?r.parent.children:i,u=s.length-1;u>=0;u--){var l=s[u];if(l.line<r.line)break;if(l.column<r.column){if(H4(l))return;break}}o.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},H0=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},Y4=function(t,r){for(var n=t-1;n>=0;n--)if(!H0(r[n]))return!0;return!1},U0=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},G4=function(t,r,n){H0(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),U0(t)):Y4(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),U0(t)))};function Y0(e,t){switch(E4(e,t)){case 5103:return Ue+"print-"+e+e;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 Ue+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ue+e+Xa+e+Lt+e+e;case 6828:case 4268:return Ue+e+Lt+e+e;case 6165:return Ue+e+Lt+"flex-"+e+e;case 5187:return Ue+e+Ye(e,/(\w+).+(:[^]+)/,Ue+"box-$1$2"+Lt+"flex-$1$2")+e;case 5443:return Ue+e+Lt+"flex-item-"+Ye(e,/flex-|-self/,"")+e;case 4675:return Ue+e+Lt+"flex-line-pack"+Ye(e,/align-content|flex-|-self/,"")+e;case 5548:return Ue+e+Lt+Ye(e,"shrink","negative")+e;case 5292:return Ue+e+Lt+Ye(e,"basis","preferred-size")+e;case 6060:return Ue+"box-"+Ye(e,"-grow","")+Ue+e+Lt+Ye(e,"grow","positive")+e;case 4554:return Ue+Ye(e,/([^-])(transform)/g,"$1"+Ue+"$2")+e;case 6187:return Ye(Ye(Ye(e,/(zoom-|grab)/,Ue+"$1"),/(image-set)/,Ue+"$1"),e,"")+e;case 5495:case 3959:return Ye(e,/(image-set\([^]*)/,Ue+"$1$`$1");case 4968:return Ye(Ye(e,/(.+:)(flex-)?(.*)/,Ue+"box-pack:$3"+Lt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ue+e+e;case 4095:case 3583:case 4068:case 2532:return Ye(e,/(.+)-inline(.+)/,Ue+"$1$2")+e;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(Tr(e)-1-t>6)switch(jt(e,t+1)){case 109:if(jt(e,t+4)!==45)break;case 102:return Ye(e,/(.+:)(.+)-([^]+)/,"$1"+Ue+"$2-$3$1"+Xa+(jt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xu(e,"stretch")?Y0(Ye(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(jt(e,t+1)!==115)break;case 6444:switch(jt(e,Tr(e)-3-(~Xu(e,"!important")&&10))){case 107:return Ye(e,":",":"+Ue)+e;case 101:return Ye(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ue+(jt(e,14)===45?"inline-":"")+"box$3$1"+Ue+"$2$3$1"+Lt+"$2box$3")+e}break;case 5936:switch(jt(e,t+11)){case 114:return Ue+e+Lt+Ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ue+e+Lt+Ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ue+e+Lt+Ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ue+e+Lt+e+e}return e}var q4=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Ku:t.return=Y0(t.value,t.length);break;case j0:return ui([Do(t,{value:Ye(t.value,"@","@"+Ue)})],i);case qu:if(t.length)return _4(t.props,function(o){switch(T4(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ui([Do(t,{props:[Ye(o,/:(read-\w+)/,":"+Xa+"$1")]})],i);case"::placeholder":return ui([Do(t,{props:[Ye(o,/:(plac\w+)/,":"+Ue+"input-$1")]}),Do(t,{props:[Ye(o,/:(plac\w+)/,":"+Xa+"$1")]}),Do(t,{props:[Ye(o,/:(plac\w+)/,Lt+"input-$1")]})],i)}return""})}},K4=[q4],X4=function(t){var r=t.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
72
|
-
If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var v=p.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||
|
|
70
|
+
*/var gg;function wS(){return gg||(gg=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=!1,p=!1,v=!1,x=!1,b=!1,C;C=Symbol.for("react.module.reference");function E(le){return!!(typeof le=="string"||typeof le=="function"||le===r||le===i||b||le===n||le===l||le===c||x||le===h||m||p||v||typeof le=="object"&&le!==null&&(le.$$typeof===d||le.$$typeof===f||le.$$typeof===o||le.$$typeof===a||le.$$typeof===u||le.$$typeof===C||le.getModuleId!==void 0))}function w(le){if(typeof le=="object"&&le!==null){var pt=le.$$typeof;switch(pt){case e:var Qt=le.type;switch(Qt){case r:case i:case n:case l:case c:return Qt;default:var Wt=Qt&&Qt.$$typeof;switch(Wt){case s:case a:case u:case d:case f:case o:return Wt;default:return pt}}case t:return pt}}}var k=a,T=o,O=e,A=u,L=r,Z=d,pe=f,se=t,q=i,G=n,me=l,Ee=c,Ie=!1,_e=!1;function $(le){return Ie||(Ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function j(le){return _e||(_e=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function X(le){return w(le)===a}function te(le){return w(le)===o}function H(le){return typeof le=="object"&&le!==null&&le.$$typeof===e}function fe(le){return w(le)===u}function ue(le){return w(le)===r}function ge(le){return w(le)===d}function Q(le){return w(le)===f}function J(le){return w(le)===t}function ne(le){return w(le)===i}function be(le){return w(le)===n}function N(le){return w(le)===l}function Ne(le){return w(le)===c}Qe.ContextConsumer=k,Qe.ContextProvider=T,Qe.Element=O,Qe.ForwardRef=A,Qe.Fragment=L,Qe.Lazy=Z,Qe.Memo=pe,Qe.Portal=se,Qe.Profiler=q,Qe.StrictMode=G,Qe.Suspense=me,Qe.SuspenseList=Ee,Qe.isAsyncMode=$,Qe.isConcurrentMode=j,Qe.isContextConsumer=X,Qe.isContextProvider=te,Qe.isElement=H,Qe.isForwardRef=fe,Qe.isFragment=ue,Qe.isLazy=ge,Qe.isMemo=Q,Qe.isPortal=J,Qe.isProfiler=ne,Qe.isStrictMode=be,Qe.isSuspense=N,Qe.isSuspenseList=Ne,Qe.isValidElementType=E,Qe.typeOf=w}()),Qe}process.env.NODE_ENV==="production"?wc.exports=xS():wc.exports=wS();var mg=wc.exports;const CS=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function SS(e){const t=`${e}`.match(CS);return t&&t[1]||""}function vg(e,t=""){return e.displayName||e.name||SS(e)||t}function yg(e,t,r){const n=vg(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function ES(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return vg(e,"Component");if(typeof e=="object")switch(e.$$typeof){case mg.ForwardRef:return yg(e,e.render,"ForwardRef");case mg.Memo:return yg(e,e.type,"memo");default:return}}}function pi(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":hi(7));return e.charAt(0).toUpperCase()+e.slice(1)}const TS=typeof window<"u"?xe.useLayoutEffect:xe.useEffect;function bg(e,t){const r=Ae({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Ae({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=i:!i||!Object.keys(i)?r[n]=o:(r[n]=Ae({},o),Object.keys(i).forEach(a=>{r[n][a]=bg(i[a],o[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}const xg=e=>e,kS=(()=>{let e=xg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=xg}}})(),_S={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function OS(e,t,r="Mui"){const n=_S[t];return n?`${r}-${n}`:`${kS.generate(e)}-${t}`}const hs="$$material";function Vr(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function MS(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function PS(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var AS=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(PS(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
71
|
+
`+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var a=MS(i);try{a.insertRule(n,a.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',s)}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Nt="-ms-",ps="-moz-",Ue="-webkit-",Cc="comm",Sc="rule",Ec="decl",DS="@import",wg="@keyframes",$S="@layer",IS=Math.abs,gs=String.fromCharCode,FS=Object.assign;function jS(e,t){return Rt(e,0)^45?(((t<<2^Rt(e,0))<<2^Rt(e,1))<<2^Rt(e,2))<<2^Rt(e,3):0}function Cg(e){return e.trim()}function LS(e,t){return(e=t.exec(e))?e[0]:e}function Ye(e,t,r){return e.replace(t,r)}function Tc(e,t){return e.indexOf(t)}function Rt(e,t){return e.charCodeAt(t)|0}function Wo(e,t,r){return e.slice(t,r)}function kr(e){return e.length}function kc(e){return e.length}function ms(e,t){return t.push(e),e}function RS(e,t){return e.map(t).join("")}var vs=1,gi=1,Sg=0,Yt=0,Pt=0,mi="";function ys(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:vs,column:gi,length:a,return:""}}function Ho(e,t){return FS(ys("",null,null,"",null,null,0),e,{length:-e.length},t)}function NS(){return Pt}function BS(){return Pt=Yt>0?Rt(mi,--Yt):0,gi--,Pt===10&&(gi=1,vs--),Pt}function er(){return Pt=Yt<Sg?Rt(mi,Yt++):0,gi++,Pt===10&&(gi=1,vs++),Pt}function _r(){return Rt(mi,Yt)}function bs(){return Yt}function Uo(e,t){return Wo(mi,e,t)}function Yo(e){switch(e){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 Eg(e){return vs=gi=1,Sg=kr(mi=e),Yt=0,[]}function Tg(e){return mi="",e}function xs(e){return Cg(Uo(Yt-1,_c(e===91?e+2:e===40?e+1:e)))}function zS(e){for(;(Pt=_r())&&Pt<33;)er();return Yo(e)>2||Yo(Pt)>3?"":" "}function VS(e,t){for(;--t&&er()&&!(Pt<48||Pt>102||Pt>57&&Pt<65||Pt>70&&Pt<97););return Uo(e,bs()+(t<6&&_r()==32&&er()==32))}function _c(e){for(;er();)switch(Pt){case e:return Yt;case 34:case 39:e!==34&&e!==39&&_c(Pt);break;case 40:e===41&&_c(e);break;case 92:er();break}return Yt}function WS(e,t){for(;er()&&e+Pt!==47+10;)if(e+Pt===42+42&&_r()===47)break;return"/*"+Uo(t,Yt-1)+"*"+gs(e===47?e:er())}function HS(e){for(;!Yo(_r());)er();return Uo(e,Yt)}function US(e){return Tg(ws("",null,null,null,[""],e=Eg(e),0,[0],e))}function ws(e,t,r,n,i,o,a,s,u){for(var l=0,c=0,f=a,d=0,h=0,m=0,p=1,v=1,x=1,b=0,C="",E=i,w=o,k=n,T=C;v;)switch(m=b,b=er()){case 40:if(m!=108&&Rt(T,f-1)==58){Tc(T+=Ye(xs(b),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:T+=xs(b);break;case 9:case 10:case 13:case 32:T+=zS(m);break;case 92:T+=VS(bs()-1,7);continue;case 47:switch(_r()){case 42:case 47:ms(YS(WS(er(),bs()),t,r),u);break;default:T+="/"}break;case 123*p:s[l++]=kr(T)*x;case 125*p:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+c:x==-1&&(T=Ye(T,/\f/g,"")),h>0&&kr(T)-f&&ms(h>32?_g(T+";",n,r,f-1):_g(Ye(T," ","")+";",n,r,f-2),u);break;case 59:T+=";";default:if(ms(k=kg(T,t,r,l,c,i,s,C,E=[],w=[],f),o),b===123)if(c===0)ws(T,t,k,k,E,o,f,s,w);else switch(d===99&&Rt(T,3)===110?100:d){case 100:case 108:case 109:case 115:ws(e,k,k,n&&ms(kg(e,k,k,0,0,i,s,C,i,E=[],f),w),i,w,f,s,n?E:w);break;default:ws(T,k,k,k,[""],w,0,s,w)}}l=c=h=0,p=x=1,C=T="",f=a;break;case 58:f=1+kr(T),h=m;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&BS()==125)continue}switch(T+=gs(b),b*p){case 38:x=c>0?1:(T+="\f",-1);break;case 44:s[l++]=(kr(T)-1)*x,x=1;break;case 64:_r()===45&&(T+=xs(er())),d=_r(),c=f=kr(C=T+=HS(bs())),b++;break;case 45:m===45&&kr(T)==2&&(p=0)}}return o}function kg(e,t,r,n,i,o,a,s,u,l,c){for(var f=i-1,d=i===0?o:[""],h=kc(d),m=0,p=0,v=0;m<n;++m)for(var x=0,b=Wo(e,f+1,f=IS(p=a[m])),C=e;x<h;++x)(C=Cg(p>0?d[x]+" "+b:Ye(b,/&\f/g,d[x])))&&(u[v++]=C);return ys(e,t,r,i===0?Sc:s,u,l,c)}function YS(e,t,r){return ys(e,t,r,Cc,gs(NS()),Wo(e,2,-2),0)}function _g(e,t,r,n){return ys(e,t,r,Ec,Wo(e,0,n),Wo(e,n+1,-1),n)}function vi(e,t){for(var r="",n=kc(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function GS(e,t,r,n){switch(e.type){case $S:if(e.children.length)break;case DS:case Ec:return e.return=e.return||e.value;case Cc:return"";case wg:return e.return=e.value+"{"+vi(e.children,n)+"}";case Sc:e.value=e.props.join(",")}return kr(r=vi(e.children,n))?e.return=e.value+"{"+r+"}":""}function qS(e){var t=kc(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function KS(e){return function(t){t.root||(t=t.return)&&e(t)}}var XS=function(t,r,n){for(var i=0,o=0;i=o,o=_r(),i===38&&o===12&&(r[n]=1),!Yo(o);)er();return Uo(t,Yt)},ZS=function(t,r){var n=-1,i=44;do switch(Yo(i)){case 0:i===38&&_r()===12&&(r[n]=1),t[n]+=XS(Yt-1,r,n);break;case 2:t[n]+=xs(i);break;case 4:if(i===44){t[++n]=_r()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=gs(i)}while(i=er());return t},QS=function(t,r){return Tg(ZS(Eg(t),r))},Og=new WeakMap,JS=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Og.get(n))&&!i){Og.set(t,!0);for(var o=[],a=QS(r,o),s=n.props,u=0,l=0;u<a.length;u++)for(var c=0;c<s.length;c++,l++)t.props[l]=o[u]?a[u].replace(/&\f/g,s[c]):s[c]+" "+a[u]}}},eE=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},tE="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",rE=function(t){return t.type==="comm"&&t.children.indexOf(tE)>-1},nE=function(t){return function(r,n,i){if(!(r.type!=="rule"||t.compat)){var o=r.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=!!r.parent,s=a?r.parent.children:i,u=s.length-1;u>=0;u--){var l=s[u];if(l.line<r.line)break;if(l.column<r.column){if(rE(l))return;break}}o.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Mg=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},iE=function(t,r){for(var n=t-1;n>=0;n--)if(!Mg(r[n]))return!0;return!1},Pg=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},oE=function(t,r,n){Mg(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Pg(t)):iE(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Pg(t)))};function Ag(e,t){switch(jS(e,t)){case 5103:return Ue+"print-"+e+e;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 Ue+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ue+e+ps+e+Nt+e+e;case 6828:case 4268:return Ue+e+Nt+e+e;case 6165:return Ue+e+Nt+"flex-"+e+e;case 5187:return Ue+e+Ye(e,/(\w+).+(:[^]+)/,Ue+"box-$1$2"+Nt+"flex-$1$2")+e;case 5443:return Ue+e+Nt+"flex-item-"+Ye(e,/flex-|-self/,"")+e;case 4675:return Ue+e+Nt+"flex-line-pack"+Ye(e,/align-content|flex-|-self/,"")+e;case 5548:return Ue+e+Nt+Ye(e,"shrink","negative")+e;case 5292:return Ue+e+Nt+Ye(e,"basis","preferred-size")+e;case 6060:return Ue+"box-"+Ye(e,"-grow","")+Ue+e+Nt+Ye(e,"grow","positive")+e;case 4554:return Ue+Ye(e,/([^-])(transform)/g,"$1"+Ue+"$2")+e;case 6187:return Ye(Ye(Ye(e,/(zoom-|grab)/,Ue+"$1"),/(image-set)/,Ue+"$1"),e,"")+e;case 5495:case 3959:return Ye(e,/(image-set\([^]*)/,Ue+"$1$`$1");case 4968:return Ye(Ye(e,/(.+:)(flex-)?(.*)/,Ue+"box-pack:$3"+Nt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ue+e+e;case 4095:case 3583:case 4068:case 2532:return Ye(e,/(.+)-inline(.+)/,Ue+"$1$2")+e;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(kr(e)-1-t>6)switch(Rt(e,t+1)){case 109:if(Rt(e,t+4)!==45)break;case 102:return Ye(e,/(.+:)(.+)-([^]+)/,"$1"+Ue+"$2-$3$1"+ps+(Rt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Tc(e,"stretch")?Ag(Ye(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Rt(e,t+1)!==115)break;case 6444:switch(Rt(e,kr(e)-3-(~Tc(e,"!important")&&10))){case 107:return Ye(e,":",":"+Ue)+e;case 101:return Ye(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ue+(Rt(e,14)===45?"inline-":"")+"box$3$1"+Ue+"$2$3$1"+Nt+"$2box$3")+e}break;case 5936:switch(Rt(e,t+11)){case 114:return Ue+e+Nt+Ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ue+e+Nt+Ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ue+e+Nt+Ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ue+e+Nt+e+e}return e}var aE=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Ec:t.return=Ag(t.value,t.length);break;case wg:return vi([Ho(t,{value:Ye(t.value,"@","@"+Ue)})],i);case Sc:if(t.length)return RS(t.props,function(o){switch(LS(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vi([Ho(t,{props:[Ye(o,/:(read-\w+)/,":"+ps+"$1")]})],i);case"::placeholder":return vi([Ho(t,{props:[Ye(o,/:(plac\w+)/,":"+Ue+"input-$1")]}),Ho(t,{props:[Ye(o,/:(plac\w+)/,":"+ps+"$1")]}),Ho(t,{props:[Ye(o,/:(plac\w+)/,Nt+"input-$1")]})],i)}return""})}},sE=[aE],lE=function(t){var r=t.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
72
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var v=p.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||sE;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var v=p.getAttribute("data-emotion").split(" "),x=1;x<v.length;x++)o[v[x]]=!0;s.push(p)});var u,l=[JS,eE];process.env.NODE_ENV!=="production"&&l.push(nE({get compat(){return m.compat}}),oE);{var c,f=[GS,process.env.NODE_ENV!=="production"?function(p){p.root||(p.return?c.insert(p.return):p.value&&p.type!==Cc&&c.insert(p.value+"{}"))}:KS(function(p){c.insert(p)})],d=qS(l.concat(i,f)),h=function(v){return vi(US(v),d)};u=function(v,x,b,C){c=b,process.env.NODE_ENV!=="production"&&x.map!==void 0&&(c={insert:function(w){b.insert(w+x.map)}}),h(v?v+"{"+x.styles+"}":x.styles),C&&(m.inserted[x.name]=!0)}}var m={key:r,sheet:new AS({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:u};return m.sheet.hydrate(s),m};let Oc;typeof document=="object"&&(Oc=lE({key:"css",prepend:!0}));function Dg(e){const{injectFirst:t,children:r}=e;return t&&Oc?y.jsx(pu.CacheProvider,{value:Oc,children:r}):r}process.env.NODE_ENV!=="production"&&(Dg.propTypes={children:_.node,injectFirst:_.bool});/**
|
|
73
73
|
* @mui/styled-engine v5.13.2
|
|
74
74
|
*
|
|
75
75
|
* @license MIT
|
|
76
76
|
* This source code is licensed under the MIT license found in the
|
|
77
77
|
* LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/function
|
|
79
|
-
`)):n.some(o=>o===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}const
|
|
78
|
+
*/function uE(e,t){const r=Ox(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const i=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
79
|
+
`)):n.some(o=>o===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}const cE=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},fE=["values","unit","step"],dE=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>Ae({},r,{[n.key]:n.val}),{})};function hE(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=Vr(e,fE),o=dE(t),a=Object.keys(o);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function u(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function l(d,h){const m=a.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:h)-n/100}${r})`}function c(d){return a.indexOf(d)+1<a.length?l(d,a[a.indexOf(d)+1]):s(d)}function f(d){const h=a.indexOf(d);return h===0?s(a[1]):h===a.length-1?u(a[h]):l(d,a[a.indexOf(d)+1]).replace("@media","@media not all and")}return Ae({keys:a,values:o,up:s,down:u,between:l,only:c,not:f,unit:r},i)}const pE={borderRadius:4},cn=process.env.NODE_ENV!=="production"?_.oneOfType([_.number,_.string,_.object,_.array]):{};function Go(e,t){return t?zr(e,t,{clone:!1}):e}const Mc={xs:0,sm:600,md:900,lg:1200,xl:1536},$g={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Mc[e]}px)`};function Wr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||$g;return t.reduce((a,s,u)=>(a[o.up(o.keys[u])]=r(t[u]),a),{})}if(typeof t=="object"){const o=n.breakpoints||$g;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||Mc).indexOf(s)!==-1){const u=o.up(s);a[u]=r(t[s],s)}else{const u=s;a[u]=t[u]}return a},{})}return r(t)}function gE(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const o=e.up(i);return n[o]={},n},{}))||{}}function mE(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function Cs(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Ss(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=Cs(e,r)||n,t&&(i=t(i,n,e)),i}function Je(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],u=a.theme,l=Cs(u,n)||{};return Wr(a,s,f=>{let d=Ss(l,i,f);return f===d&&typeof f=="string"&&(d=Ss(l,i,`${t}${f==="default"?"":pi(f)}`,f)),r===!1?d:{[r]:d}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:cn}:{},o.filterProps=[t],o}function vE(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const yE={m:"margin",p:"padding"},bE={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ig={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xE=vE(e=>{if(e.length>2)if(Ig[e])e=Ig[e];else return[e];const[t,r]=e.split(""),n=yE[t],i=bE[r]||"";return Array.isArray(i)?i.map(o=>n+o):[n+i]}),Es=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ts=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],wE=[...Es,...Ts];function qo(e,t,r,n){var i;const o=(i=Cs(e,t,!1))!=null?i:r;return typeof o=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`),o*a):Array.isArray(o)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
80
80
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
81
81
|
`))),o[a]):typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
82
|
-
`)),()=>{})}function X0(e){return jo(e,"spacing",8,"spacing")}function Lo(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function cC(e,t){return r=>e.reduce((n,i)=>(n[i]=Lo(t,r),n),{})}function fC(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=lC(r),o=cC(i,n),a=e[r];return Vr(e,a,o)}function Z0(e,t){const r=X0(e.theme);return Object.keys(e).map(n=>fC(e,t,n,r)).reduce(Fo,{})}function xt(e){return Z0(e,as)}xt.propTypes=process.env.NODE_ENV!=="production"?as.reduce((e,t)=>(e[t]=sn,e),{}):{},xt.filterProps=as;function wt(e){return Z0(e,ss)}wt.propTypes=process.env.NODE_ENV!=="production"?ss.reduce((e,t)=>(e[t]=sn,e),{}):{},wt.filterProps=ss,process.env.NODE_ENV!=="production"&&uC.reduce((e,t)=>(e[t]=sn,e),{});function dC(e=8){if(e.mui)return e;const t=X0({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function ls(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(o=>{n[o]=i}),n),{}),r=n=>Object.keys(n).reduce((i,o)=>t[o]?Fo(i,t[o](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function Or(e){return typeof e!="number"?e:`${e}px solid`}const hC=Je({prop:"border",themeKey:"borders",transform:Or}),pC=Je({prop:"borderTop",themeKey:"borders",transform:Or}),gC=Je({prop:"borderRight",themeKey:"borders",transform:Or}),mC=Je({prop:"borderBottom",themeKey:"borders",transform:Or}),vC=Je({prop:"borderLeft",themeKey:"borders",transform:Or}),yC=Je({prop:"borderColor",themeKey:"palette"}),bC=Je({prop:"borderTopColor",themeKey:"palette"}),xC=Je({prop:"borderRightColor",themeKey:"palette"}),wC=Je({prop:"borderBottomColor",themeKey:"palette"}),CC=Je({prop:"borderLeftColor",themeKey:"palette"}),us=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=jo(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Lo(t,n)});return Vr(e,e.borderRadius,r)}return null};us.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:sn}:{},us.filterProps=["borderRadius"],ls(hC,pC,gC,mC,vC,yC,bC,xC,wC,CC,us);const cs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=jo(e.theme,"spacing",8,"gap"),r=n=>({gap:Lo(t,n)});return Vr(e,e.gap,r)}return null};cs.propTypes=process.env.NODE_ENV!=="production"?{gap:sn}:{},cs.filterProps=["gap"];const fs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=jo(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Lo(t,n)});return Vr(e,e.columnGap,r)}return null};fs.propTypes=process.env.NODE_ENV!=="production"?{columnGap:sn}:{},fs.filterProps=["columnGap"];const ds=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=jo(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Lo(t,n)});return Vr(e,e.rowGap,r)}return null};ds.propTypes=process.env.NODE_ENV!=="production"?{rowGap:sn}:{},ds.filterProps=["rowGap"];const SC=Je({prop:"gridColumn"}),EC=Je({prop:"gridRow"}),TC=Je({prop:"gridAutoFlow"}),_C=Je({prop:"gridAutoColumns"}),OC=Je({prop:"gridAutoRows"}),kC=Je({prop:"gridTemplateColumns"}),MC=Je({prop:"gridTemplateRows"}),PC=Je({prop:"gridTemplateAreas"}),AC=Je({prop:"gridArea"});ls(cs,fs,ds,SC,EC,TC,_C,OC,kC,MC,PC,AC);function ci(e,t){return t==="grey"?t:e}const DC=Je({prop:"color",themeKey:"palette",transform:ci}),$C=Je({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ci}),IC=Je({prop:"backgroundColor",themeKey:"palette",transform:ci});ls(DC,$C,IC);function er(e){return e<=1&&e!==0?`${e*100}%`:e}const FC=Je({prop:"width",transform:er}),tc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n;return{maxWidth:((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||ec[r]||er(r)}};return Vr(e,e.maxWidth,t)}return null};tc.filterProps=["maxWidth"];const jC=Je({prop:"minWidth",transform:er}),LC=Je({prop:"height",transform:er}),RC=Je({prop:"maxHeight",transform:er}),BC=Je({prop:"minHeight",transform:er});Je({prop:"size",cssProperty:"width",transform:er}),Je({prop:"size",cssProperty:"height",transform:er});const NC=Je({prop:"boxSizing"});ls(FC,tc,jC,LC,RC,BC,NC);const rc={border:{themeKey:"borders",transform:Or},borderTop:{themeKey:"borders",transform:Or},borderRight:{themeKey:"borders",transform:Or},borderBottom:{themeKey:"borders",transform:Or},borderLeft:{themeKey:"borders",transform:Or},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:us},color:{themeKey:"palette",transform:ci},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ci},backgroundColor:{themeKey:"palette",transform:ci},p:{style:wt},pt:{style:wt},pr:{style:wt},pb:{style:wt},pl:{style:wt},px:{style:wt},py:{style:wt},padding:{style:wt},paddingTop:{style:wt},paddingRight:{style:wt},paddingBottom:{style:wt},paddingLeft:{style:wt},paddingX:{style:wt},paddingY:{style:wt},paddingInline:{style:wt},paddingInlineStart:{style:wt},paddingInlineEnd:{style:wt},paddingBlock:{style:wt},paddingBlockStart:{style:wt},paddingBlockEnd:{style:wt},m:{style:xt},mt:{style:xt},mr:{style:xt},mb:{style:xt},ml:{style:xt},mx:{style:xt},my:{style:xt},margin:{style:xt},marginTop:{style:xt},marginRight:{style:xt},marginBottom:{style:xt},marginLeft:{style:xt},marginX:{style:xt},marginY:{style:xt},marginInline:{style:xt},marginInlineStart:{style:xt},marginInlineEnd:{style:xt},marginBlock:{style:xt},marginBlockStart:{style:xt},marginBlockEnd:{style:xt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:cs},rowGap:{style:ds},columnGap:{style:fs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:er},maxWidth:{style:tc},minWidth:{transform:er},height:{transform:er},maxHeight:{transform:er},minHeight:{transform:er},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function zC(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function VC(e,t){return typeof e=="function"?e(t):e}function WC(){function e(r,n,i,o){const a={[r]:n,theme:i},s=o[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:f}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const d=is(i,l)||{};return f?f(a):Vr(a,n,m=>{let p=os(d,c,m);return m===p&&typeof m=="string"&&(p=os(d,c,`${r}${m==="default"?"":ai(m)}`,m)),u===!1?p:{[u]:p}})}function t(r){var n;const{sx:i,theme:o={}}=r||{};if(!i)return null;const a=(n=o.unstable_sxConfig)!=null?n:rc;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=nC(o.breakpoints),f=Object.keys(c);let d=c;return Object.keys(l).forEach(h=>{const m=VC(l[h],o);if(m!=null)if(typeof m=="object")if(a[h])d=Fo(d,e(h,m,o,a));else{const p=Vr({theme:o},m,v=>({[h]:v}));zC(p,m)?d[h]=t({sx:m,theme:o}):d=Fo(d,p)}else d=Fo(d,e(h,m,o,a))}),iC(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const Q0=WC();Q0.filterProps=["sx"];const nc=Q0,HC=["breakpoints","palette","spacing","shape"];function ic(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={}}=e,a=zr(e,HC),s=tC(r),u=dC(i);let l=Nr({breakpoints:s,direction:"ltr",components:{},palette:Ae({mode:"light"},n),spacing:u,shape:Ae({},rC,o)},a);return l=t.reduce((c,f)=>Nr(c,f),l),l.unstable_sxConfig=Ae({},rc,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(f){return nc({sx:f,theme:this})},l}function UC(e){return Object.keys(e).length===0}function oc(e=null){const t=xe.useContext(Nl.ThemeContext);return!t||UC(t)?e:t}const YC=ic();function GC(e=YC){return oc(e)}const qC=["variant"];function J0(e){return e.length===0}function eg(e){const{variant:t}=e,r=zr(e,qC);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=J0(n)?e[i]:ai(e[i]):n+=`${J0(n)?i:ai(i)}${ai(e[i].toString())}`}),n}const KC=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function XC(e){return Object.keys(e).length===0}function ZC(e){return typeof e=="string"&&e.charCodeAt(0)>96}const QC=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,JC=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(i=>{const o=eg(i.props);n[o]=i.style}),n},eS=(e,t,r,n)=>{var i;const{ownerState:o={}}=e,a=[],s=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return s&&s.forEach(u=>{let l=!0;Object.keys(u.props).forEach(c=>{o[c]!==u.props[c]&&e[c]!==u.props[c]&&(l=!1)}),l&&a.push(t[eg(u.props)])}),a};function hs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const tS=ic(),tg=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ro({defaultTheme:e,theme:t,themeId:r}){return XC(t)?e:t[r]||t}function rS(e){return e?(t,r)=>r[e]:null}function nS(e={}){const{themeId:t,defaultTheme:r=tS,rootShouldForwardProp:n=hs,slotShouldForwardProp:i=hs}=e,o=a=>nc(Ae({},a,{theme:Ro(Ae({},a,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{Q4(a,E=>E.filter(w=>!(w!=null&&w.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:d=rS(tg(l))}=s,h=zr(s,KC),m=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,p=f||!1;let v;process.env.NODE_ENV!=="production"&&u&&(v=`${u}-${tg(l||"Root")}`);let x=hs;l==="Root"||l==="root"?x=n:l?x=i:ZC(a)&&(x=void 0);const b=Z4(a,Ae({shouldForwardProp:x,label:v},h)),C=(E,...w)=>{const _=w?w.map(L=>typeof L=="function"&&L.__emotion_real!==L?re=>L(Ae({},re,{theme:Ro(Ae({},re,{defaultTheme:r,themeId:t}))})):L):[];let O=E;u&&d&&_.push(L=>{const re=Ro(Ae({},L,{defaultTheme:r,themeId:t})),pe=QC(u,re);if(pe){const se={};return Object.entries(pe).forEach(([q,G])=>{se[q]=typeof G=="function"?G(Ae({},L,{theme:re})):G}),d(L,se)}return null}),u&&!m&&_.push(L=>{const re=Ro(Ae({},L,{defaultTheme:r,themeId:t}));return eS(L,JC(u,re),re,u)}),p||_.push(o);const k=_.length-w.length;if(Array.isArray(E)&&k>0){const L=new Array(k).fill("");O=[...E,...L],O.raw=[...E.raw,...L]}else typeof E=="function"&&E.__emotion_real!==E&&(O=L=>E(Ae({},L,{theme:Ro(Ae({},L,{defaultTheme:r,themeId:t}))})));const D=b(O,..._);if(process.env.NODE_ENV!=="production"){let L;u&&(L=`${u}${ai(l||"")}`),L===void 0&&(L=`Styled(${d4(a)})`),D.displayName=L}return a.muiName&&(D.muiName=a.muiName),D};return b.withConfig&&(C.withConfig=b.withConfig),C}}function iS(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:I0(t.components[r].defaultProps,n)}function ac(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Math.min(Math.max(t,e),r)}function oS(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function On(e){if(e.type)return e;if(e.charAt(0)==="#")return On(oS(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
83
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:
|
|
84
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:
|
|
85
|
-
`))),r}return Ae({},e,t)}function
|
|
86
|
-
`));const i=xe.useMemo(()=>{const o=n===null?r:
|
|
87
|
-
`));const a=
|
|
82
|
+
`)),()=>{})}function Fg(e){return qo(e,"spacing",8,"spacing")}function Ko(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function CE(e,t){return r=>e.reduce((n,i)=>(n[i]=Ko(t,r),n),{})}function SE(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=xE(r),o=CE(i,n),a=e[r];return Wr(e,a,o)}function jg(e,t){const r=Fg(e.theme);return Object.keys(e).map(n=>SE(e,t,n,r)).reduce(Go,{})}function wt(e){return jg(e,Es)}wt.propTypes=process.env.NODE_ENV!=="production"?Es.reduce((e,t)=>(e[t]=cn,e),{}):{},wt.filterProps=Es;function Ct(e){return jg(e,Ts)}Ct.propTypes=process.env.NODE_ENV!=="production"?Ts.reduce((e,t)=>(e[t]=cn,e),{}):{},Ct.filterProps=Ts,process.env.NODE_ENV!=="production"&&wE.reduce((e,t)=>(e[t]=cn,e),{});function EE(e=8){if(e.mui)return e;const t=Fg({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function ks(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(o=>{n[o]=i}),n),{}),r=n=>Object.keys(n).reduce((i,o)=>t[o]?Go(i,t[o](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function Or(e){return typeof e!="number"?e:`${e}px solid`}const TE=Je({prop:"border",themeKey:"borders",transform:Or}),kE=Je({prop:"borderTop",themeKey:"borders",transform:Or}),_E=Je({prop:"borderRight",themeKey:"borders",transform:Or}),OE=Je({prop:"borderBottom",themeKey:"borders",transform:Or}),ME=Je({prop:"borderLeft",themeKey:"borders",transform:Or}),PE=Je({prop:"borderColor",themeKey:"palette"}),AE=Je({prop:"borderTopColor",themeKey:"palette"}),DE=Je({prop:"borderRightColor",themeKey:"palette"}),$E=Je({prop:"borderBottomColor",themeKey:"palette"}),IE=Je({prop:"borderLeftColor",themeKey:"palette"}),_s=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=qo(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Ko(t,n)});return Wr(e,e.borderRadius,r)}return null};_s.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:cn}:{},_s.filterProps=["borderRadius"],ks(TE,kE,_E,OE,ME,PE,AE,DE,$E,IE,_s);const Os=e=>{if(e.gap!==void 0&&e.gap!==null){const t=qo(e.theme,"spacing",8,"gap"),r=n=>({gap:Ko(t,n)});return Wr(e,e.gap,r)}return null};Os.propTypes=process.env.NODE_ENV!=="production"?{gap:cn}:{},Os.filterProps=["gap"];const Ms=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=qo(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Ko(t,n)});return Wr(e,e.columnGap,r)}return null};Ms.propTypes=process.env.NODE_ENV!=="production"?{columnGap:cn}:{},Ms.filterProps=["columnGap"];const Ps=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=qo(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Ko(t,n)});return Wr(e,e.rowGap,r)}return null};Ps.propTypes=process.env.NODE_ENV!=="production"?{rowGap:cn}:{},Ps.filterProps=["rowGap"];const FE=Je({prop:"gridColumn"}),jE=Je({prop:"gridRow"}),LE=Je({prop:"gridAutoFlow"}),RE=Je({prop:"gridAutoColumns"}),NE=Je({prop:"gridAutoRows"}),BE=Je({prop:"gridTemplateColumns"}),zE=Je({prop:"gridTemplateRows"}),VE=Je({prop:"gridTemplateAreas"}),WE=Je({prop:"gridArea"});ks(Os,Ms,Ps,FE,jE,LE,RE,NE,BE,zE,VE,WE);function yi(e,t){return t==="grey"?t:e}const HE=Je({prop:"color",themeKey:"palette",transform:yi}),UE=Je({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:yi}),YE=Je({prop:"backgroundColor",themeKey:"palette",transform:yi});ks(HE,UE,YE);function tr(e){return e<=1&&e!==0?`${e*100}%`:e}const GE=Je({prop:"width",transform:tr}),Pc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n;return{maxWidth:((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Mc[r]||tr(r)}};return Wr(e,e.maxWidth,t)}return null};Pc.filterProps=["maxWidth"];const qE=Je({prop:"minWidth",transform:tr}),KE=Je({prop:"height",transform:tr}),XE=Je({prop:"maxHeight",transform:tr}),ZE=Je({prop:"minHeight",transform:tr});Je({prop:"size",cssProperty:"width",transform:tr}),Je({prop:"size",cssProperty:"height",transform:tr});const QE=Je({prop:"boxSizing"});ks(GE,Pc,qE,KE,XE,ZE,QE);const Ac={border:{themeKey:"borders",transform:Or},borderTop:{themeKey:"borders",transform:Or},borderRight:{themeKey:"borders",transform:Or},borderBottom:{themeKey:"borders",transform:Or},borderLeft:{themeKey:"borders",transform:Or},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_s},color:{themeKey:"palette",transform:yi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:yi},backgroundColor:{themeKey:"palette",transform:yi},p:{style:Ct},pt:{style:Ct},pr:{style:Ct},pb:{style:Ct},pl:{style:Ct},px:{style:Ct},py:{style:Ct},padding:{style:Ct},paddingTop:{style:Ct},paddingRight:{style:Ct},paddingBottom:{style:Ct},paddingLeft:{style:Ct},paddingX:{style:Ct},paddingY:{style:Ct},paddingInline:{style:Ct},paddingInlineStart:{style:Ct},paddingInlineEnd:{style:Ct},paddingBlock:{style:Ct},paddingBlockStart:{style:Ct},paddingBlockEnd:{style:Ct},m:{style:wt},mt:{style:wt},mr:{style:wt},mb:{style:wt},ml:{style:wt},mx:{style:wt},my:{style:wt},margin:{style:wt},marginTop:{style:wt},marginRight:{style:wt},marginBottom:{style:wt},marginLeft:{style:wt},marginX:{style:wt},marginY:{style:wt},marginInline:{style:wt},marginInlineStart:{style:wt},marginInlineEnd:{style:wt},marginBlock:{style:wt},marginBlockStart:{style:wt},marginBlockEnd:{style:wt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Os},rowGap:{style:Ps},columnGap:{style:Ms},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:tr},maxWidth:{style:Pc},minWidth:{transform:tr},height:{transform:tr},maxHeight:{transform:tr},minHeight:{transform:tr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function JE(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function e4(e,t){return typeof e=="function"?e(t):e}function t4(){function e(r,n,i,o){const a={[r]:n,theme:i},s=o[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:f}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const d=Cs(i,l)||{};return f?f(a):Wr(a,n,m=>{let p=Ss(d,c,m);return m===p&&typeof m=="string"&&(p=Ss(d,c,`${r}${m==="default"?"":pi(m)}`,m)),u===!1?p:{[u]:p}})}function t(r){var n;const{sx:i,theme:o={}}=r||{};if(!i)return null;const a=(n=o.unstable_sxConfig)!=null?n:Ac;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=gE(o.breakpoints),f=Object.keys(c);let d=c;return Object.keys(l).forEach(h=>{const m=e4(l[h],o);if(m!=null)if(typeof m=="object")if(a[h])d=Go(d,e(h,m,o,a));else{const p=Wr({theme:o},m,v=>({[h]:v}));JE(p,m)?d[h]=t({sx:m,theme:o}):d=Go(d,p)}else d=Go(d,e(h,m,o,a))}),mE(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const Lg=t4();Lg.filterProps=["sx"];const Dc=Lg,r4=["breakpoints","palette","spacing","shape"];function $c(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={}}=e,a=Vr(e,r4),s=hE(r),u=EE(i);let l=zr({breakpoints:s,direction:"ltr",components:{},palette:Ae({mode:"light"},n),spacing:u,shape:Ae({},pE,o)},a);return l=t.reduce((c,f)=>zr(c,f),l),l.unstable_sxConfig=Ae({},Ac,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(f){return Dc({sx:f,theme:this})},l}function n4(e){return Object.keys(e).length===0}function Ic(e=null){const t=xe.useContext(pu.ThemeContext);return!t||n4(t)?e:t}const i4=$c();function o4(e=i4){return Ic(e)}const a4=["variant"];function Rg(e){return e.length===0}function Ng(e){const{variant:t}=e,r=Vr(e,a4);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=Rg(n)?e[i]:pi(e[i]):n+=`${Rg(n)?i:pi(i)}${pi(e[i].toString())}`}),n}const s4=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function l4(e){return Object.keys(e).length===0}function u4(e){return typeof e=="string"&&e.charCodeAt(0)>96}const c4=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,f4=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(i=>{const o=Ng(i.props);n[o]=i.style}),n},d4=(e,t,r,n)=>{var i;const{ownerState:o={}}=e,a=[],s=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return s&&s.forEach(u=>{let l=!0;Object.keys(u.props).forEach(c=>{o[c]!==u.props[c]&&e[c]!==u.props[c]&&(l=!1)}),l&&a.push(t[Ng(u.props)])}),a};function As(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const h4=$c(),Bg=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Xo({defaultTheme:e,theme:t,themeId:r}){return l4(t)?e:t[r]||t}function p4(e){return e?(t,r)=>r[e]:null}function g4(e={}){const{themeId:t,defaultTheme:r=h4,rootShouldForwardProp:n=As,slotShouldForwardProp:i=As}=e,o=a=>Dc(Ae({},a,{theme:Xo(Ae({},a,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{cE(a,E=>E.filter(w=>!(w!=null&&w.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:d=p4(Bg(l))}=s,h=Vr(s,s4),m=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,p=f||!1;let v;process.env.NODE_ENV!=="production"&&u&&(v=`${u}-${Bg(l||"Root")}`);let x=As;l==="Root"||l==="root"?x=n:l?x=i:u4(a)&&(x=void 0);const b=uE(a,Ae({shouldForwardProp:x,label:v},h)),C=(E,...w)=>{const k=w?w.map(L=>typeof L=="function"&&L.__emotion_real!==L?Z=>L(Ae({},Z,{theme:Xo(Ae({},Z,{defaultTheme:r,themeId:t}))})):L):[];let T=E;u&&d&&k.push(L=>{const Z=Xo(Ae({},L,{defaultTheme:r,themeId:t})),pe=c4(u,Z);if(pe){const se={};return Object.entries(pe).forEach(([q,G])=>{se[q]=typeof G=="function"?G(Ae({},L,{theme:Z})):G}),d(L,se)}return null}),u&&!m&&k.push(L=>{const Z=Xo(Ae({},L,{defaultTheme:r,themeId:t}));return d4(L,f4(u,Z),Z,u)}),p||k.push(o);const O=k.length-w.length;if(Array.isArray(E)&&O>0){const L=new Array(O).fill("");T=[...E,...L],T.raw=[...E.raw,...L]}else typeof E=="function"&&E.__emotion_real!==E&&(T=L=>E(Ae({},L,{theme:Xo(Ae({},L,{defaultTheme:r,themeId:t}))})));const A=b(T,...k);if(process.env.NODE_ENV!=="production"){let L;u&&(L=`${u}${pi(l||"")}`),L===void 0&&(L=`Styled(${ES(a)})`),A.displayName=L}return a.muiName&&(A.muiName=a.muiName),A};return b.withConfig&&(C.withConfig=b.withConfig),C}}function m4(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:bg(t.components[r].defaultProps,n)}function Fc(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Math.min(Math.max(t,e),r)}function v4(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Pn(e){if(e.type)return e;if(e.charAt(0)==="#")return Pn(v4(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
83
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:hi(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
|
|
84
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:hi(10,i))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:i}}function Ds(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function y4(e){e=Pn(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,o=n*Math.min(i,1-i),a=(l,c=(l+r/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Ds({type:s,values:u})}function zg(e){e=Pn(e);let t=e.type==="hsl"||e.type==="hsla"?Pn(y4(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Vg(e,t){const r=zg(e),n=zg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function W(e,t){return e=Pn(e),t=Fc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ds(e)}function jc(e,t){if(e=Pn(e),t=Fc(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Ds(e)}function Lc(e,t){if(e=Pn(e),t=Fc(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Ds(e)}const Wg=xe.createContext(null);process.env.NODE_ENV!=="production"&&(Wg.displayName="ThemeContext");const Hg=Wg;function Ug(){const e=xe.useContext(Hg);return process.env.NODE_ENV!=="production"&&xe.useDebugValue(e),e}const b4=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function x4(e,t){if(typeof t=="function"){const r=t(e);return process.env.NODE_ENV!=="production"&&(r||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
|
|
85
|
+
`))),r}return Ae({},e,t)}function $s(e){const{children:t,theme:r}=e,n=Ug();process.env.NODE_ENV!=="production"&&n===null&&typeof r=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
86
|
+
`));const i=xe.useMemo(()=>{const o=n===null?r:x4(n,r);return o!=null&&(o[b4]=n!==null),o},[r,n]);return y.jsx(Hg.Provider,{value:i,children:t})}process.env.NODE_ENV!=="production"&&($s.propTypes={children:_.node,theme:_.oneOfType([_.object,_.func]).isRequired}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&($s.propTypes=hg($s.propTypes));const Yg={};function Gg(e,t,r,n=!1){return xe.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const o=r(i),a=e?Ae({},t,{[e]:o}):o;return n?()=>a:a}return e?Ae({},t,{[e]:r}):Ae({},t,r)},[e,t,r,n])}function Is(e){const{children:t,theme:r,themeId:n}=e,i=Ic(Yg),o=Ug()||Yg;process.env.NODE_ENV!=="production"&&(i===null&&typeof r=="function"||n&&i&&!i[n]&&typeof r=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
87
|
+
`));const a=Gg(n,i,r),s=Gg(n,o,r,!0);return y.jsx($s,{theme:s,children:y.jsx(pu.ThemeContext.Provider,{value:a,children:t})})}process.env.NODE_ENV!=="production"&&(Is.propTypes={children:_.node,theme:_.oneOfType([_.func,_.object]).isRequired,themeId:_.string}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Is.propTypes=hg(Is.propTypes));function w4(e,t){return Ae({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Zo={black:"#000",white:"#fff"},C4={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},bi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},xi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Qo={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},wi={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ci={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Si={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},S4=["mode","contrastThreshold","tonalOffset"],qg={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Zo.white,default:Zo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Rc={text:{primary:Zo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Zo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Kg(e,t,r,n){const i=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Lc(e.main,i):t==="dark"&&(e.dark=jc(e.main,o)))}function E4(e="light"){return e==="dark"?{main:wi[200],light:wi[50],dark:wi[400]}:{main:wi[700],light:wi[400],dark:wi[800]}}function T4(e="light"){return e==="dark"?{main:bi[200],light:bi[50],dark:bi[400]}:{main:bi[500],light:bi[300],dark:bi[700]}}function k4(e="light"){return e==="dark"?{main:xi[500],light:xi[300],dark:xi[700]}:{main:xi[700],light:xi[400],dark:xi[800]}}function _4(e="light"){return e==="dark"?{main:Ci[400],light:Ci[300],dark:Ci[700]}:{main:Ci[700],light:Ci[500],dark:Ci[900]}}function O4(e="light"){return e==="dark"?{main:Si[400],light:Si[300],dark:Si[700]}:{main:Si[800],light:Si[500],dark:Si[900]}}function M4(e="light"){return e==="dark"?{main:Qo[400],light:Qo[300],dark:Qo[700]}:{main:"#ed6c02",light:Qo[500],dark:Qo[900]}}function P4(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=Vr(e,S4),o=e.primary||E4(t),a=e.secondary||T4(t),s=e.error||k4(t),u=e.info||_4(t),l=e.success||O4(t),c=e.warning||M4(t);function f(p){const v=Vg(p,Rc.text.primary)>=r?Rc.text.primary:qg.text.primary;if(process.env.NODE_ENV!=="production"){const x=Vg(p,v);x<3&&console.error([`MUI: The contrast ratio of ${x}:1 for ${v} on ${p}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
88
88
|
`))}return v}const d=({color:p,name:v,mainShade:x=500,lightShade:b=300,darkShade:C=700})=>{if(p=Ae({},p),!p.main&&p[x]&&(p.main=p[x]),!p.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
89
|
-
The color object needs to have a \`main\` property or a \`${x}\` property.`:
|
|
89
|
+
The color object needs to have a \`main\` property or a \`${x}\` property.`:hi(11,v?` (${v})`:"",x));if(typeof p.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
90
90
|
\`color.main\` should be a string, but \`${JSON.stringify(p.main)}\` was provided instead.
|
|
91
91
|
|
|
92
92
|
Did you intend to use one of the following approaches?
|
|
@@ -99,12 +99,16 @@ const theme1 = createTheme({ palette: {
|
|
|
99
99
|
|
|
100
100
|
const theme2 = createTheme({ palette: {
|
|
101
101
|
primary: { main: green[500] },
|
|
102
|
-
} });`:
|
|
103
|
-
`)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof a=="string"?a:
|
|
104
|
-
`))}d[m]={}}}};Object.keys(l.components).forEach(d=>{const h=l.components[d].styleOverrides;h&&d.indexOf("Mui")===0&&f(h,d)})}return l.unstable_sxConfig=Ae({},
|
|
105
|
-
`));let u=typeof e=="function"?e(r):e;u=u.replace(/^@media( ?)/m,"");const c=(vg!==void 0?FS:IS)(u,i,o,a,s);return process.env.NODE_ENV!=="production"&&xe.useDebugValue({query:u,match:c}),c}const yg=(e,t,r)=>{const n=mi(),i=vs(n.breakpoints.up(t)),o=vs(n.breakpoints.down(t)),a=vs(n.breakpoints.between(t,r)),s=vs(n.breakpoints.only(t));return e==="up"?i:e==="down"?o:e==="between"?a:s},jS=({children:e,disableAnimatedMobile:t=!0,...r})=>yg("down","sm")&&t?y.jsx(P.Box,{...r,children:e}):y.jsx(P.Box,{component:gr.div,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.3},variants:Ea(),...r,children:e}),LS=({animate:e,action:t=!1,children:r,...n})=>t?y.jsx(P.Box,{component:gr.div,initial:!1,animate:e?"animate":"exit",variants:Ea(),...n,children:r}):y.jsx(P.Box,{component:gr.div,initial:"initial",animate:"animate",exit:"exit",variants:Ea(),...n,children:r}),RS=()=>Promise.resolve().then(()=>xX).then(e=>e.default),BS=({children:e})=>y.jsx(N3,{strict:!0,features:RS,children:y.jsxs(gr.div,{style:{height:"100%"},children:[" ",e," "]})}),cc=(e=!1)=>{const[t,r]=g.useState(e),n=g.useCallback(()=>r(i=>!i),[]);return[t,n,r]};function fc(){return fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fc.apply(this,arguments)}function bg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dc(e,t){return dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dc(e,t)}function NS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dc(e,t)}var xg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function zS(e,t){return!!(e===t||xg(e)&&xg(t))}function VS(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!zS(e[r],t[r]))return!1;return!0}function hc(e,t){t===void 0&&(t=VS);var r,n=[],i,o=!1;function a(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return o&&r===this&&t(s,n)||(i=e.apply(this,s),o=!0,r=this,n=s),i}return a}var WS=typeof performance=="object"&&typeof performance.now=="function",wg=WS?function(){return performance.now()}:function(){return Date.now()};function Cg(e){cancelAnimationFrame(e.id)}function HS(e,t){var r=wg();function n(){wg()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var pc=-1;function Sg(e){if(e===void 0&&(e=!1),pc===-1||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),pc=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return pc}var vi=null;function Eg(e){if(e===void 0&&(e=!1),vi===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?vi="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?vi="negative":vi="positive-ascending"),document.body.removeChild(t),vi}return vi}process.env.NODE_ENV;var US=150,YS=function(t,r){return t},ys=null,bs=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(ys=new WeakSet,bs=new WeakSet);function GS(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,l=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(f){NS(d,f);function d(m){var p;return p=f.call(this,m)||this,p._instanceProps=u(p.props,bg(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:bg(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=hc(function(v,x,b,C){return p.props.onItemsRendered({overscanStartIndex:v,overscanStopIndex:x,visibleStartIndex:b,visibleStopIndex:C})}),p._callOnScroll=void 0,p._callOnScroll=hc(function(v,x,b){return p.props.onScroll({scrollDirection:v,scrollOffset:x,scrollUpdateWasRequested:b})}),p._getItemStyle=void 0,p._getItemStyle=function(v){var x=p.props,b=x.direction,C=x.itemSize,E=x.layout,w=p._getItemStyleCache(l&&C,l&&E,l&&b),_;if(w.hasOwnProperty(v))_=w[v];else{var O=r(p.props,v,p._instanceProps),k=i(p.props,v,p._instanceProps),D=b==="horizontal"||E==="horizontal",L=b==="rtl",re=D?O:0;w[v]=_={position:"absolute",left:L?void 0:re,right:L?re:void 0,top:D?0:O,height:D?"100%":k,width:D?k:"100%"}}return _},p._getItemStyleCache=void 0,p._getItemStyleCache=hc(function(v,x,b){return{}}),p._onScrollHorizontal=function(v){var x=v.currentTarget,b=x.clientWidth,C=x.scrollLeft,E=x.scrollWidth;p.setState(function(w){if(w.scrollOffset===C)return null;var _=p.props.direction,O=C;if(_==="rtl")switch(Eg()){case"negative":O=-C;break;case"positive-descending":O=E-b-C;break}return O=Math.max(0,Math.min(O,E-b)),{isScrolling:!0,scrollDirection:w.scrollOffset<C?"forward":"backward",scrollOffset:O,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(v){var x=v.currentTarget,b=x.clientHeight,C=x.scrollHeight,E=x.scrollTop;p.setState(function(w){if(w.scrollOffset===E)return null;var _=Math.max(0,Math.min(E,C-b));return{isScrolling:!0,scrollDirection:w.scrollOffset<_?"forward":"backward",scrollOffset:_,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(v){var x=p.props.outerRef;p._outerRef=v,typeof x=="function"?x(v):x!=null&&typeof x=="object"&&x.hasOwnProperty("current")&&(x.current=v)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&Cg(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=HS(p._resetIsScrolling,US)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}d.getDerivedStateFromProps=function(p,v){return qS(p,v),c(p),null};var h=d.prototype;return h.scrollTo=function(p){p=Math.max(0,p),this.setState(function(v){return v.scrollOffset===p?null:{scrollDirection:v.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},h.scrollToItem=function(p,v){v===void 0&&(v="auto");var x=this.props,b=x.itemCount,C=x.layout,E=this.state.scrollOffset;p=Math.max(0,Math.min(p,b-1));var w=0;if(this._outerRef){var _=this._outerRef;C==="vertical"?w=_.scrollWidth>_.clientWidth?Sg():0:w=_.scrollHeight>_.clientHeight?Sg():0}this.scrollTo(o(this.props,p,v,E,this._instanceProps,w))},h.componentDidMount=function(){var p=this.props,v=p.direction,x=p.initialScrollOffset,b=p.layout;if(typeof x=="number"&&this._outerRef!=null){var C=this._outerRef;v==="horizontal"||b==="horizontal"?C.scrollLeft=x:C.scrollTop=x}this._callPropsCallbacks()},h.componentDidUpdate=function(){var p=this.props,v=p.direction,x=p.layout,b=this.state,C=b.scrollOffset,E=b.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var w=this._outerRef;if(v==="horizontal"||x==="horizontal")if(v==="rtl")switch(Eg()){case"negative":w.scrollLeft=-C;break;case"positive-ascending":w.scrollLeft=C;break;default:var _=w.clientWidth,O=w.scrollWidth;w.scrollLeft=O-_-C;break}else w.scrollLeft=C;else w.scrollTop=C}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Cg(this._resetIsScrollingTimeoutId)},h.render=function(){var p=this.props,v=p.children,x=p.className,b=p.direction,C=p.height,E=p.innerRef,w=p.innerElementType,_=p.innerTagName,O=p.itemCount,k=p.itemData,D=p.itemKey,L=D===void 0?YS:D,re=p.layout,pe=p.outerElementType,se=p.outerTagName,q=p.style,G=p.useIsScrolling,me=p.width,Ee=this.state.isScrolling,Ie=b==="horizontal"||re==="horizontal",Oe=Ie?this._onScrollHorizontal:this._onScrollVertical,$=this._getRangeToRender(),j=$[0],X=$[1],ee=[];if(O>0)for(var H=j;H<=X;H++)ee.push(g.createElement(v,{data:k,key:L(H,k),index:H,isScrolling:G?Ee:void 0,style:this._getItemStyle(H)}));var fe=n(this.props,this._instanceProps);return g.createElement(pe||se||"div",{className:x,onScroll:Oe,ref:this._outerRefSetter,style:fc({position:"relative",height:C,width:me,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},q)},g.createElement(w||_||"div",{children:ee,ref:E,style:{height:Ie?"100%":fe,pointerEvents:Ee?"none":void 0,width:Ie?fe:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var v=this._getRangeToRender(),x=v[0],b=v[1],C=v[2],E=v[3];this._callOnItemsRendered(x,b,C,E)}}if(typeof this.props.onScroll=="function"){var w=this.state,_=w.scrollDirection,O=w.scrollOffset,k=w.scrollUpdateWasRequested;this._callOnScroll(_,O,k)}},h._getRangeToRender=function(){var p=this.props,v=p.itemCount,x=p.overscanCount,b=this.state,C=b.isScrolling,E=b.scrollDirection,w=b.scrollOffset;if(v===0)return[0,0,0,0];var _=a(this.props,w,this._instanceProps),O=s(this.props,_,w,this._instanceProps),k=!C||E==="backward"?Math.max(1,x):1,D=!C||E==="forward"?Math.max(1,x):1;return[Math.max(0,_-k),Math.max(0,Math.min(v-1,O+D)),_,O]},d}(g.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var qS=function(t,r){var n=t.children,i=t.direction,o=t.height,a=t.layout,s=t.innerTagName,u=t.outerTagName,l=t.width,c=r.instance;if(process.env.NODE_ENV!=="production"){(s!=null||u!=null)&&bs&&!bs.has(c)&&(bs.add(c),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var f=i==="horizontal"||a==="horizontal";switch(i){case"horizontal":case"vertical":ys&&!ys.has(c)&&(ys.add(c),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(a){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+a+'" was specified.'))}if(n==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(n===null?"null":typeof n)+'" was specified.'));if(f&&typeof l!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(l===null?"null":typeof l)+'" was specified.'));if(!f&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},KS=50,yi=function(t,r,n){var i=t,o=i.itemSize,a=n.itemMetadataMap,s=n.lastMeasuredIndex;if(r>s){var u=0;if(s>=0){var l=a[s];u=l.offset+l.size}for(var c=s+1;c<=r;c++){var f=o(c);a[c]={offset:u,size:f},u+=f}n.lastMeasuredIndex=r}return a[r]},XS=function(t,r,n){var i=r.itemMetadataMap,o=r.lastMeasuredIndex,a=o>0?i[o].offset:0;return a>=n?Tg(t,r,o,0,n):ZS(t,r,Math.max(0,o),n)},Tg=function(t,r,n,i,o){for(;i<=n;){var a=i+Math.floor((n-i)/2),s=yi(t,a,r).offset;if(s===o)return a;s<o?i=a+1:s>o&&(n=a-1)}return i>0?i-1:0},ZS=function(t,r,n,i){for(var o=t.itemCount,a=1;n<o&&yi(t,n,r).offset<i;)n+=a,a*=2;return Tg(t,r,Math.min(n,o-1),Math.floor(n/2),i)},_g=function(t,r){var n=t.itemCount,i=r.itemMetadataMap,o=r.estimatedItemSize,a=r.lastMeasuredIndex,s=0;if(a>=n&&(a=n-1),a>=0){var u=i[a];s=u.offset+u.size}var l=n-a-1,c=l*o;return s+c},QS=GS({getItemOffset:function(t,r,n){return yi(t,r,n).offset},getItemSize:function(t,r,n){return n.itemMetadataMap[r].size},getEstimatedTotalSize:_g,getOffsetForIndexAndAlignment:function(t,r,n,i,o,a){var s=t.direction,u=t.height,l=t.layout,c=t.width,f=s==="horizontal"||l==="horizontal",d=f?c:u,h=yi(t,r,o),m=_g(t,o),p=Math.max(0,Math.min(m-d,h.offset)),v=Math.max(0,h.offset-d+h.size+a);switch(n==="smart"&&(i>=v-d&&i<=p+d?n="auto":n="center"),n){case"start":return p;case"end":return v;case"center":return Math.round(v+(p-v)/2);case"auto":default:return i>=v&&i<=p?i:i<v?v:p}},getStartIndexForOffset:function(t,r,n){return XS(t,n,r)},getStopIndexForStartIndex:function(t,r,n,i){for(var o=t.direction,a=t.height,s=t.itemCount,u=t.layout,l=t.width,c=o==="horizontal"||u==="horizontal",f=c?l:a,d=yi(t,r,i),h=n+f,m=d.offset+d.size,p=r;p<s-1&&m<h;)p++,m+=yi(t,p,i).size;return p},initInstanceProps:function(t,r){var n=t,i=n.estimatedItemSize,o={itemMetadataMap:{},estimatedItemSize:i||KS,lastMeasuredIndex:-1};return r.resetAfterIndex=function(a,s){s===void 0&&(s=!0),o.lastMeasuredIndex=Math.min(o.lastMeasuredIndex,a-1),r._getItemStyleCache(-1),s&&r.forceUpdate()},o},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var r=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof r!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(r===null?"null":typeof r)+'" was specified.'))}});const Og=8,JS=e=>{const{data:t,index:r,style:n}=e,i=t[r],{showValueInLabel:o,...a}=i[0],s={...n,top:n.top+Og,paddingTop:8};return Object.prototype.hasOwnProperty.call(i,"group")?y.jsx(P.ListSubheader,{component:"div",style:s,children:i.group},i.key):y.jsx(P.Typography,{component:"li",...a,noWrap:!0,style:s,children:y.jsxs(P.Stack,{component:"div",direction:"row",flex:1,justifyContent:"space-between",children:[i[1].label,o&&y.jsxs(P.Typography,{variant:"inherit",color:"grey.400",children:["(",i[1].value,")"]})]})})},kg=g.createContext({}),Mg=g.forwardRef((e,t)=>{const r=g.useContext(kg);return y.jsx("div",{ref:t,...e,...r})});Mg.displayName="OuterElementType";const eE=e=>{const t=g.useRef(null);return g.useEffect(()=>{t.current!=null&&t.current.resetAfterIndex(0,!0)},[e]),t},tE=g.forwardRef(function(t,r){const{children:n,...i}=t,o=[];n.forEach(h=>{o.push(h),o.push(...h.children||[])});const a=P.useTheme(),s=P.useMediaQuery(a.breakpoints.up("sm")),u=o.length,l=s?36:48,c=h=>Object.prototype.hasOwnProperty.call(h,"group")?48:l,f=()=>u>8?8*l:o.map(c).reduce((h,m)=>h+m,0),d=eE(u);return y.jsx("div",{ref:r,children:y.jsx(kg.Provider,{value:i,children:y.jsx(QS,{itemData:o,height:f()+2*Og,width:"100%",ref:d,outerElementType:Mg,innerElementType:"ul",itemSize:h=>c(o[h]),overscanCount:5,itemCount:u,children:JS})})})}),rE=P.styled(P.Popper)({[`& .${P.autocompleteClasses.listbox}`]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}}),gc=g.forwardRef(({label:e,value:t,options:r=[],loading:n,noOptionsText:i="Nenhuma opção disponível",loadingText:o="Carregando opções...",error:a,helperText:s,placeholder:u,onChange:l,groupBy:c,showValueInLabel:f,disabled:d,multiple:h,required:m,renderOption:p,...v},x)=>{const b=k=>k&&typeof k=="object"?k.value.toString():k.toString(),[C,E,w]=cc(),_=k=>{k.type!=="change"&&E()},O=g.useMemo(()=>h?(Array.isArray(t)?t:[]).reduce((L,re)=>{const pe=r.find(se=>se.value.toString()===re.toString());return pe?[...L,pe]:[...L]},[]):r.find(D=>D.value.toString()===(t==null?void 0:t.toString()))||null,[r,t,h]);return y.jsx(P.Autocomplete,{ref:x,value:O,open:C,onClose:E,onOpen:_,onInputChange:(k,D,L)=>{L==="input"&&w(!0),!n&&!O&&l(h?[]:null)},options:r,loading:n,noOptionsText:i,loadingText:o,disabled:n||d,disableListWrap:!0,PopperComponent:rE,ListboxComponent:p?void 0:tE,filterOptions:(k,D)=>k.filter(L=>`${L.value} ${L.label}`.toLocaleUpperCase().includes(D.inputValue.toLocaleUpperCase())),onChange:(k,D)=>{if(!D){l(h?[]:null);return}if(Array.isArray(D)){l(D.map(b));return}l(typeof D=="string"?D.toString():D.value.toString())},renderOption:(k,D,L,re)=>p?p(k,D,L,re):[{...k,showValueInLabel:f},D],renderGroup:k=>k,groupBy:c,multiple:h,renderInput:k=>y.jsx(P.TextField,{...k,placeholder:u,fullWidth:!0,error:!!a,helperText:s,label:e,required:m,InputProps:{...k.InputProps,endAdornment:y.jsxs(y.Fragment,{children:[n?y.jsx(P.CircularProgress,{color:"primary",size:20}):null,k.InputProps.endAdornment]})}}),...v})});gc.displayName="Autocomplete";var cr={},zo={},nE=typeof ho=="object"&&ho&&ho.Object===Object&&ho,Pg=nE,iE=Pg,oE=typeof self=="object"&&self&&self.Object===Object&&self,aE=iE||oE||Function("return this")(),kr=aE,sE=kr,lE=sE.Symbol,Vo=lE,Ag=Vo,Dg=Object.prototype,uE=Dg.hasOwnProperty,cE=Dg.toString,Wo=Ag?Ag.toStringTag:void 0;function fE(e){var t=uE.call(e,Wo),r=e[Wo];try{e[Wo]=void 0;var n=!0}catch{}var i=cE.call(e);return n&&(t?e[Wo]=r:delete e[Wo]),i}var dE=fE,hE=Object.prototype,pE=hE.toString;function gE(e){return pE.call(e)}var mE=gE,$g=Vo,vE=dE,yE=mE,bE="[object Null]",xE="[object Undefined]",Ig=$g?$g.toStringTag:void 0;function wE(e){return e==null?e===void 0?xE:bE:Ig&&Ig in Object(e)?vE(e):yE(e)}var kn=wE,CE=Array.isArray,mr=CE;function SE(e){return e!=null&&typeof e=="object"}var Wr=SE,EE=kn,TE=mr,_E=Wr,OE="[object String]";function kE(e){return typeof e=="string"||!TE(e)&&_E(e)&&EE(e)==OE}var ME=kE;function PE(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var u=a[e?s:++i];if(r(o[u],u,o)===!1)break}return t}}var AE=PE,DE=AE,$E=DE(),IE=$E;function FE(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var jE=FE,LE=kn,RE=Wr,BE="[object Arguments]";function NE(e){return RE(e)&&LE(e)==BE}var zE=NE,Fg=zE,VE=Wr,jg=Object.prototype,WE=jg.hasOwnProperty,HE=jg.propertyIsEnumerable,UE=Fg(function(){return arguments}())?Fg:function(e){return VE(e)&&WE.call(e,"callee")&&!HE.call(e,"callee")},Lg=UE,xs={exports:{}};function YE(){return!1}var GE=YE;xs.exports,function(e,t){var r=kr,n=GE,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;e.exports=l}(xs,xs.exports);var mc=xs.exports,qE=9007199254740991,KE=/^(?:0|[1-9]\d*)$/;function XE(e,t){var r=typeof e;return t=t??qE,!!t&&(r=="number"||r!="symbol"&&KE.test(e))&&e>-1&&e%1==0&&e<t}var Rg=XE,ZE=9007199254740991;function QE(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ZE}var vc=QE,JE=kn,eT=vc,tT=Wr,rT="[object Arguments]",nT="[object Array]",iT="[object Boolean]",oT="[object Date]",aT="[object Error]",sT="[object Function]",lT="[object Map]",uT="[object Number]",cT="[object Object]",fT="[object RegExp]",dT="[object Set]",hT="[object String]",pT="[object WeakMap]",gT="[object ArrayBuffer]",mT="[object DataView]",vT="[object Float32Array]",yT="[object Float64Array]",bT="[object Int8Array]",xT="[object Int16Array]",wT="[object Int32Array]",CT="[object Uint8Array]",ST="[object Uint8ClampedArray]",ET="[object Uint16Array]",TT="[object Uint32Array]",lt={};lt[vT]=lt[yT]=lt[bT]=lt[xT]=lt[wT]=lt[CT]=lt[ST]=lt[ET]=lt[TT]=!0,lt[rT]=lt[nT]=lt[gT]=lt[iT]=lt[mT]=lt[oT]=lt[aT]=lt[sT]=lt[lT]=lt[uT]=lt[cT]=lt[fT]=lt[dT]=lt[hT]=lt[pT]=!1;function _T(e){return tT(e)&&eT(e.length)&&!!lt[JE(e)]}var OT=_T;function kT(e){return function(t){return e(t)}}var yc=kT,ws={exports:{}};ws.exports,function(e,t){var r=Pg,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(ws,ws.exports);var bc=ws.exports,MT=OT,PT=yc,Bg=bc,Ng=Bg&&Bg.isTypedArray,AT=Ng?PT(Ng):MT,zg=AT,DT=jE,$T=Lg,IT=mr,FT=mc,jT=Rg,LT=zg,RT=Object.prototype,BT=RT.hasOwnProperty;function NT(e,t){var r=IT(e),n=!r&&$T(e),i=!r&&!n&&FT(e),o=!r&&!n&&!i&<(e),a=r||n||i||o,s=a?DT(e.length,String):[],u=s.length;for(var l in e)(t||BT.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||jT(l,u)))&&s.push(l);return s}var Vg=NT,zT=Object.prototype;function VT(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||zT;return e===r}var xc=VT;function WT(e,t){return function(r){return e(t(r))}}var Wg=WT,HT=Wg,UT=HT(Object.keys,Object),YT=UT,GT=xc,qT=YT,KT=Object.prototype,XT=KT.hasOwnProperty;function ZT(e){if(!GT(e))return qT(e);var t=[];for(var r in Object(e))XT.call(e,r)&&r!="constructor"&&t.push(r);return t}var QT=ZT;function JT(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var bi=JT,e_=kn,t_=bi,r_="[object AsyncFunction]",n_="[object Function]",i_="[object GeneratorFunction]",o_="[object Proxy]";function a_(e){if(!t_(e))return!1;var t=e_(e);return t==n_||t==i_||t==r_||t==o_}var Hg=a_,s_=Hg,l_=vc;function u_(e){return e!=null&&l_(e.length)&&!s_(e)}var Cs=u_,c_=Vg,f_=QT,d_=Cs;function h_(e){return d_(e)?c_(e):f_(e)}var Ho=h_,p_=IE,g_=Ho;function m_(e,t){return e&&p_(e,t,g_)}var Ug=m_;function v_(e){return e}var Yg=v_,y_=Yg;function b_(e){return typeof e=="function"?e:y_}var x_=b_,w_=Ug,C_=x_;function S_(e,t){return e&&w_(e,C_(t))}var wc=S_,E_=Wg,T_=E_(Object.getPrototypeOf,Object),Cc=T_,__=kn,O_=Cc,k_=Wr,M_="[object Object]",P_=Function.prototype,A_=Object.prototype,Gg=P_.toString,D_=A_.hasOwnProperty,$_=Gg.call(Object);function I_(e){if(!k_(e)||__(e)!=M_)return!1;var t=O_(e);if(t===null)return!0;var r=D_.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Gg.call(r)==$_}var F_=I_;function j_(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var qg=j_;function L_(){this.__data__=[],this.size=0}var R_=L_;function B_(e,t){return e===t||e!==e&&t!==t}var Sc=B_,N_=Sc;function z_(e,t){for(var r=e.length;r--;)if(N_(e[r][0],t))return r;return-1}var Ss=z_,V_=Ss,W_=Array.prototype,H_=W_.splice;function U_(e){var t=this.__data__,r=V_(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():H_.call(t,r,1),--this.size,!0}var Y_=U_,G_=Ss;function q_(e){var t=this.__data__,r=G_(t,e);return r<0?void 0:t[r][1]}var K_=q_,X_=Ss;function Z_(e){return X_(this.__data__,e)>-1}var Q_=Z_,J_=Ss;function eO(e,t){var r=this.__data__,n=J_(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var tO=eO,rO=R_,nO=Y_,iO=K_,oO=Q_,aO=tO;function xi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xi.prototype.clear=rO,xi.prototype.delete=nO,xi.prototype.get=iO,xi.prototype.has=oO,xi.prototype.set=aO;var Es=xi,sO=Es;function lO(){this.__data__=new sO,this.size=0}var uO=lO;function cO(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var fO=cO;function dO(e){return this.__data__.get(e)}var hO=dO;function pO(e){return this.__data__.has(e)}var gO=pO,mO=kr,vO=mO["__core-js_shared__"],yO=vO,Ec=yO,Kg=function(){var e=/[^.]+$/.exec(Ec&&Ec.keys&&Ec.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bO(e){return!!Kg&&Kg in e}var xO=bO,wO=Function.prototype,CO=wO.toString;function SO(e){if(e!=null){try{return CO.call(e)}catch{}try{return e+""}catch{}}return""}var Xg=SO,EO=Hg,TO=xO,_O=bi,OO=Xg,kO=/[\\^$.*+?()[\]{}|]/g,MO=/^\[object .+?Constructor\]$/,PO=Function.prototype,AO=Object.prototype,DO=PO.toString,$O=AO.hasOwnProperty,IO=RegExp("^"+DO.call($O).replace(kO,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function FO(e){if(!_O(e)||TO(e))return!1;var t=EO(e)?IO:MO;return t.test(OO(e))}var jO=FO;function LO(e,t){return e==null?void 0:e[t]}var RO=LO,BO=jO,NO=RO;function zO(e,t){var r=NO(e,t);return BO(r)?r:void 0}var Mn=zO,VO=Mn,WO=kr,HO=VO(WO,"Map"),Tc=HO,UO=Mn,YO=UO(Object,"create"),Ts=YO,Zg=Ts;function GO(){this.__data__=Zg?Zg(null):{},this.size=0}var qO=GO;function KO(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var XO=KO,ZO=Ts,QO="__lodash_hash_undefined__",JO=Object.prototype,e6=JO.hasOwnProperty;function t6(e){var t=this.__data__;if(ZO){var r=t[e];return r===QO?void 0:r}return e6.call(t,e)?t[e]:void 0}var r6=t6,n6=Ts,i6=Object.prototype,o6=i6.hasOwnProperty;function a6(e){var t=this.__data__;return n6?t[e]!==void 0:o6.call(t,e)}var s6=a6,l6=Ts,u6="__lodash_hash_undefined__";function c6(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=l6&&t===void 0?u6:t,this}var f6=c6,d6=qO,h6=XO,p6=r6,g6=s6,m6=f6;function wi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wi.prototype.clear=d6,wi.prototype.delete=h6,wi.prototype.get=p6,wi.prototype.has=g6,wi.prototype.set=m6;var v6=wi,Qg=v6,y6=Es,b6=Tc;function x6(){this.size=0,this.__data__={hash:new Qg,map:new(b6||y6),string:new Qg}}var w6=x6;function C6(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var S6=C6,E6=S6;function T6(e,t){var r=e.__data__;return E6(t)?r[typeof t=="string"?"string":"hash"]:r.map}var _s=T6,_6=_s;function O6(e){var t=_6(this,e).delete(e);return this.size-=t?1:0,t}var k6=O6,M6=_s;function P6(e){return M6(this,e).get(e)}var A6=P6,D6=_s;function $6(e){return D6(this,e).has(e)}var I6=$6,F6=_s;function j6(e,t){var r=F6(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var L6=j6,R6=w6,B6=k6,N6=A6,z6=I6,V6=L6;function Ci(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ci.prototype.clear=R6,Ci.prototype.delete=B6,Ci.prototype.get=N6,Ci.prototype.has=z6,Ci.prototype.set=V6;var _c=Ci,W6=Es,H6=Tc,U6=_c,Y6=200;function G6(e,t){var r=this.__data__;if(r instanceof W6){var n=r.__data__;if(!H6||n.length<Y6-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new U6(n)}return r.set(e,t),this.size=r.size,this}var q6=G6,K6=Es,X6=uO,Z6=fO,Q6=hO,J6=gO,e7=q6;function Si(e){var t=this.__data__=new K6(e);this.size=t.size}Si.prototype.clear=X6,Si.prototype.delete=Z6,Si.prototype.get=Q6,Si.prototype.has=J6,Si.prototype.set=e7;var Oc=Si,t7="__lodash_hash_undefined__";function r7(e){return this.__data__.set(e,t7),this}var n7=r7;function i7(e){return this.__data__.has(e)}var o7=i7,a7=_c,s7=n7,l7=o7;function Os(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new a7;++t<r;)this.add(e[t])}Os.prototype.add=Os.prototype.push=s7,Os.prototype.has=l7;var u7=Os;function c7(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var f7=c7;function d7(e,t){return e.has(t)}var h7=d7,p7=u7,g7=f7,m7=h7,v7=1,y7=2;function b7(e,t,r,n,i,o){var a=r&v7,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,h=r&y7?new p7:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var m=e[f],p=t[f];if(n)var v=a?n(p,m,f,t,e,o):n(m,p,f,e,t,o);if(v!==void 0){if(v)continue;d=!1;break}if(h){if(!g7(t,function(x,b){if(!m7(h,b)&&(m===x||i(m,x,r,n,o)))return h.push(b)})){d=!1;break}}else if(!(m===p||i(m,p,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}var Jg=b7,x7=kr,w7=x7.Uint8Array,em=w7;function C7(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var S7=C7;function E7(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var T7=E7,tm=Vo,rm=em,_7=Sc,O7=Jg,k7=S7,M7=T7,P7=1,A7=2,D7="[object Boolean]",$7="[object Date]",I7="[object Error]",F7="[object Map]",j7="[object Number]",L7="[object RegExp]",R7="[object Set]",B7="[object String]",N7="[object Symbol]",z7="[object ArrayBuffer]",V7="[object DataView]",nm=tm?tm.prototype:void 0,kc=nm?nm.valueOf:void 0;function W7(e,t,r,n,i,o,a){switch(r){case V7:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case z7:return!(e.byteLength!=t.byteLength||!o(new rm(e),new rm(t)));case D7:case $7:case j7:return _7(+e,+t);case I7:return e.name==t.name&&e.message==t.message;case L7:case B7:return e==t+"";case F7:var s=k7;case R7:var u=n&P7;if(s||(s=M7),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;n|=A7,a.set(e,t);var c=O7(s(e),s(t),n,i,o,a);return a.delete(e),c;case N7:if(kc)return kc.call(e)==kc.call(t)}return!1}var H7=W7;function U7(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var im=U7,Y7=im,G7=mr;function q7(e,t,r){var n=t(e);return G7(e)?n:Y7(n,r(e))}var om=q7;function K7(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}var X7=K7;function Z7(){return[]}var am=Z7,Q7=X7,J7=am,ek=Object.prototype,tk=ek.propertyIsEnumerable,sm=Object.getOwnPropertySymbols,rk=sm?function(e){return e==null?[]:(e=Object(e),Q7(sm(e),function(t){return tk.call(e,t)}))}:J7,Mc=rk,nk=om,ik=Mc,ok=Ho;function ak(e){return nk(e,ok,ik)}var lm=ak,um=lm,sk=1,lk=Object.prototype,uk=lk.hasOwnProperty;function ck(e,t,r,n,i,o){var a=r&sk,s=um(e),u=s.length,l=um(t),c=l.length;if(u!=c&&!a)return!1;for(var f=u;f--;){var d=s[f];if(!(a?d in t:uk.call(t,d)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var p=!0;o.set(e,t),o.set(t,e);for(var v=a;++f<u;){d=s[f];var x=e[d],b=t[d];if(n)var C=a?n(b,x,d,t,e,o):n(x,b,d,e,t,o);if(!(C===void 0?x===b||i(x,b,r,n,o):C)){p=!1;break}v||(v=d=="constructor")}if(p&&!v){var E=e.constructor,w=t.constructor;E!=w&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof w=="function"&&w instanceof w)&&(p=!1)}return o.delete(e),o.delete(t),p}var fk=ck,dk=Mn,hk=kr,pk=dk(hk,"DataView"),gk=pk,mk=Mn,vk=kr,yk=mk(vk,"Promise"),bk=yk,xk=Mn,wk=kr,Ck=xk(wk,"Set"),Sk=Ck,Ek=Mn,Tk=kr,_k=Ek(Tk,"WeakMap"),Ok=_k,Pc=gk,Ac=Tc,Dc=bk,$c=Sk,Ic=Ok,cm=kn,Ei=Xg,fm="[object Map]",kk="[object Object]",dm="[object Promise]",hm="[object Set]",pm="[object WeakMap]",gm="[object DataView]",Mk=Ei(Pc),Pk=Ei(Ac),Ak=Ei(Dc),Dk=Ei($c),$k=Ei(Ic),Pn=cm;(Pc&&Pn(new Pc(new ArrayBuffer(1)))!=gm||Ac&&Pn(new Ac)!=fm||Dc&&Pn(Dc.resolve())!=dm||$c&&Pn(new $c)!=hm||Ic&&Pn(new Ic)!=pm)&&(Pn=function(e){var t=cm(e),r=t==kk?e.constructor:void 0,n=r?Ei(r):"";if(n)switch(n){case Mk:return gm;case Pk:return fm;case Ak:return dm;case Dk:return hm;case $k:return pm}return t});var ks=Pn,Fc=Oc,Ik=Jg,Fk=H7,jk=fk,mm=ks,vm=mr,ym=mc,Lk=zg,Rk=1,bm="[object Arguments]",xm="[object Array]",Ms="[object Object]",Bk=Object.prototype,wm=Bk.hasOwnProperty;function Nk(e,t,r,n,i,o){var a=vm(e),s=vm(t),u=a?xm:mm(e),l=s?xm:mm(t);u=u==bm?Ms:u,l=l==bm?Ms:l;var c=u==Ms,f=l==Ms,d=u==l;if(d&&ym(e)){if(!ym(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Fc),a||Lk(e)?Ik(e,t,r,n,i,o):Fk(e,t,u,r,n,i,o);if(!(r&Rk)){var h=c&&wm.call(e,"__wrapped__"),m=f&&wm.call(t,"__wrapped__");if(h||m){var p=h?e.value():e,v=m?t.value():t;return o||(o=new Fc),i(p,v,r,n,o)}}return d?(o||(o=new Fc),jk(e,t,r,n,i,o)):!1}var zk=Nk,Vk=zk,Cm=Wr;function Sm(e,t,r,n,i){return e===t?!0:e==null||t==null||!Cm(e)&&!Cm(t)?e!==e&&t!==t:Vk(e,t,r,n,Sm,i)}var jc=Sm,Wk=Oc,Hk=jc,Uk=1,Yk=2;function Gk(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=r[i];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===void 0&&!(u in e))return!1}else{var f=new Wk;if(n)var d=n(l,c,u,e,t,f);if(!(d===void 0?Hk(c,l,Uk|Yk,n,f):d))return!1}}return!0}var qk=Gk,Kk=bi;function Xk(e){return e===e&&!Kk(e)}var Em=Xk,Zk=Em,Qk=Ho;function Jk(e){for(var t=Qk(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Zk(i)]}return t}var eM=Jk;function tM(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Tm=tM,rM=qk,nM=eM,iM=Tm;function oM(e){var t=nM(e);return t.length==1&&t[0][2]?iM(t[0][0],t[0][1]):function(r){return r===e||rM(r,e,t)}}var aM=oM,sM=kn,lM=Wr,uM="[object Symbol]";function cM(e){return typeof e=="symbol"||lM(e)&&sM(e)==uM}var Lc=cM,fM=mr,dM=Lc,hM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pM=/^\w*$/;function gM(e,t){if(fM(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||dM(e)?!0:pM.test(e)||!hM.test(e)||t!=null&&e in Object(t)}var Rc=gM,_m=_c,mM="Expected a function";function Bc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(mM);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Bc.Cache||_m),r}Bc.Cache=_m;var vM=Bc,yM=vM,bM=500;function xM(e){var t=yM(e,function(n){return r.size===bM&&r.clear(),n}),r=t.cache;return t}var wM=xM,CM=wM,SM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,EM=/\\(\\)?/g,TM=CM(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(SM,function(r,n,i,o){t.push(i?o.replace(EM,"$1"):n||r)}),t}),_M=TM,Om=Vo,OM=qg,kM=mr,MM=Lc,PM=1/0,km=Om?Om.prototype:void 0,Mm=km?km.toString:void 0;function Pm(e){if(typeof e=="string")return e;if(kM(e))return OM(e,Pm)+"";if(MM(e))return Mm?Mm.call(e):"";var t=e+"";return t=="0"&&1/e==-PM?"-0":t}var AM=Pm,DM=AM;function $M(e){return e==null?"":DM(e)}var IM=$M,FM=mr,jM=Rc,LM=_M,RM=IM;function BM(e,t){return FM(e)?e:jM(e,t)?[e]:LM(RM(e))}var Am=BM,NM=Lc,zM=1/0;function VM(e){if(typeof e=="string"||NM(e))return e;var t=e+"";return t=="0"&&1/e==-zM?"-0":t}var Ps=VM,WM=Am,HM=Ps;function UM(e,t){t=WM(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[HM(t[r++])];return r&&r==n?e:void 0}var Dm=UM,YM=Dm;function GM(e,t,r){var n=e==null?void 0:YM(e,t);return n===void 0?r:n}var qM=GM;function KM(e,t){return e!=null&&t in Object(e)}var XM=KM,ZM=Am,QM=Lg,JM=mr,e9=Rg,t9=vc,r9=Ps;function n9(e,t,r){t=ZM(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=r9(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&t9(i)&&e9(a,i)&&(JM(e)||QM(e)))}var i9=n9,o9=XM,a9=i9;function s9(e,t){return e!=null&&a9(e,t,o9)}var l9=s9,u9=jc,c9=qM,f9=l9,d9=Rc,h9=Em,p9=Tm,g9=Ps,m9=1,v9=2;function y9(e,t){return d9(e)&&h9(t)?p9(g9(e),t):function(r){var n=c9(r,e);return n===void 0&&n===t?f9(r,e):u9(t,n,m9|v9)}}var b9=y9;function x9(e){return function(t){return t==null?void 0:t[e]}}var w9=x9,C9=Dm;function S9(e){return function(t){return C9(t,e)}}var E9=S9,T9=w9,_9=E9,O9=Rc,k9=Ps;function M9(e){return O9(e)?T9(k9(e)):_9(e)}var P9=M9,A9=aM,D9=b9,$9=Yg,I9=mr,F9=P9;function j9(e){return typeof e=="function"?e:e==null?$9:typeof e=="object"?I9(e)?D9(e[0],e[1]):A9(e):F9(e)}var L9=j9,R9=Cs;function B9(e,t){return function(r,n){if(r==null)return r;if(!R9(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}var N9=B9,z9=Ug,V9=N9,W9=V9(z9),H9=W9,U9=H9,Y9=Cs;function G9(e,t){var r=-1,n=Y9(e)?Array(e.length):[];return U9(e,function(i,o,a){n[++r]=t(i,o,a)}),n}var q9=G9,K9=qg,X9=L9,Z9=q9,Q9=mr;function J9(e,t){var r=Q9(e)?K9:Z9;return r(e,X9(t))}var e8=J9;Object.defineProperty(zo,"__esModule",{value:!0}),zo.flattenNames=void 0;var t8=ME,r8=As(t8),n8=wc,i8=As(n8),o8=F_,a8=As(o8),s8=e8,l8=As(s8);function As(e){return e&&e.__esModule?e:{default:e}}var u8=zo.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,l8.default)(t,function(n){Array.isArray(n)?e(n).map(function(i){return r.push(i)}):(0,a8.default)(n)?(0,i8.default)(n,function(i,o){i===!0&&r.push(o),r.push(o+"-"+i)}):(0,r8.default)(n)&&r.push(n)}),r};zo.default=u8;var Uo={};function c8(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var f8=c8,d8=Mn,h8=function(){try{var e=d8(Object,"defineProperty");return e({},"",{}),e}catch{}}(),p8=h8,$m=p8;function g8(e,t,r){t=="__proto__"&&$m?$m(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Im=g8,m8=Im,v8=Sc,y8=Object.prototype,b8=y8.hasOwnProperty;function x8(e,t,r){var n=e[t];(!(b8.call(e,t)&&v8(n,r))||r===void 0&&!(t in e))&&m8(e,t,r)}var Fm=x8,w8=Fm,C8=Im;function S8(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),i?C8(r,s,u):w8(r,s,u)}return r}var Ds=S8,E8=Ds,T8=Ho;function _8(e,t){return e&&E8(t,T8(t),e)}var O8=_8;function k8(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var M8=k8,P8=bi,A8=xc,D8=M8,$8=Object.prototype,I8=$8.hasOwnProperty;function F8(e){if(!P8(e))return D8(e);var t=A8(e),r=[];for(var n in e)n=="constructor"&&(t||!I8.call(e,n))||r.push(n);return r}var j8=F8,L8=Vg,R8=j8,B8=Cs;function N8(e){return B8(e)?L8(e,!0):R8(e)}var Nc=N8,z8=Ds,V8=Nc;function W8(e,t){return e&&z8(t,V8(t),e)}var H8=W8,$s={exports:{}};$s.exports,function(e,t){var r=kr,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,d=s?s(f):new l.constructor(f);return l.copy(d),d}e.exports=u}($s,$s.exports);var U8=$s.exports;function Y8(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var G8=Y8,q8=Ds,K8=Mc;function X8(e,t){return q8(e,K8(e),t)}var Z8=X8,Q8=im,J8=Cc,eP=Mc,tP=am,rP=Object.getOwnPropertySymbols,nP=rP?function(e){for(var t=[];e;)Q8(t,eP(e)),e=J8(e);return t}:tP,jm=nP,iP=Ds,oP=jm;function aP(e,t){return iP(e,oP(e),t)}var sP=aP,lP=om,uP=jm,cP=Nc;function fP(e){return lP(e,cP,uP)}var dP=fP,hP=Object.prototype,pP=hP.hasOwnProperty;function gP(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&pP.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var mP=gP,Lm=em;function vP(e){var t=new e.constructor(e.byteLength);return new Lm(t).set(new Lm(e)),t}var zc=vP,yP=zc;function bP(e,t){var r=t?yP(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var xP=bP,wP=/\w*$/;function CP(e){var t=new e.constructor(e.source,wP.exec(e));return t.lastIndex=e.lastIndex,t}var SP=CP,Rm=Vo,Bm=Rm?Rm.prototype:void 0,Nm=Bm?Bm.valueOf:void 0;function EP(e){return Nm?Object(Nm.call(e)):{}}var TP=EP,_P=zc;function OP(e,t){var r=t?_P(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var kP=OP,MP=zc,PP=xP,AP=SP,DP=TP,$P=kP,IP="[object Boolean]",FP="[object Date]",jP="[object Map]",LP="[object Number]",RP="[object RegExp]",BP="[object Set]",NP="[object String]",zP="[object Symbol]",VP="[object ArrayBuffer]",WP="[object DataView]",HP="[object Float32Array]",UP="[object Float64Array]",YP="[object Int8Array]",GP="[object Int16Array]",qP="[object Int32Array]",KP="[object Uint8Array]",XP="[object Uint8ClampedArray]",ZP="[object Uint16Array]",QP="[object Uint32Array]";function JP(e,t,r){var n=e.constructor;switch(t){case VP:return MP(e);case IP:case FP:return new n(+e);case WP:return PP(e,r);case HP:case UP:case YP:case GP:case qP:case KP:case XP:case ZP:case QP:return $P(e,r);case jP:return new n;case LP:case NP:return new n(e);case RP:return AP(e);case BP:return new n;case zP:return DP(e)}}var eA=JP,tA=bi,zm=Object.create,rA=function(){function e(){}return function(t){if(!tA(t))return{};if(zm)return zm(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),nA=rA,iA=nA,oA=Cc,aA=xc;function sA(e){return typeof e.constructor=="function"&&!aA(e)?iA(oA(e)):{}}var lA=sA,uA=ks,cA=Wr,fA="[object Map]";function dA(e){return cA(e)&&uA(e)==fA}var hA=dA,pA=hA,gA=yc,Vm=bc,Wm=Vm&&Vm.isMap,mA=Wm?gA(Wm):pA,vA=mA,yA=ks,bA=Wr,xA="[object Set]";function wA(e){return bA(e)&&yA(e)==xA}var CA=wA,SA=CA,EA=yc,Hm=bc,Um=Hm&&Hm.isSet,TA=Um?EA(Um):SA,_A=TA,OA=Oc,kA=f8,MA=Fm,PA=O8,AA=H8,DA=U8,$A=G8,IA=Z8,FA=sP,jA=lm,LA=dP,RA=ks,BA=mP,NA=eA,zA=lA,VA=mr,WA=mc,HA=vA,UA=bi,YA=_A,GA=Ho,qA=Nc,KA=1,XA=2,ZA=4,Ym="[object Arguments]",QA="[object Array]",JA="[object Boolean]",eD="[object Date]",tD="[object Error]",Gm="[object Function]",rD="[object GeneratorFunction]",nD="[object Map]",iD="[object Number]",qm="[object Object]",oD="[object RegExp]",aD="[object Set]",sD="[object String]",lD="[object Symbol]",uD="[object WeakMap]",cD="[object ArrayBuffer]",fD="[object DataView]",dD="[object Float32Array]",hD="[object Float64Array]",pD="[object Int8Array]",gD="[object Int16Array]",mD="[object Int32Array]",vD="[object Uint8Array]",yD="[object Uint8ClampedArray]",bD="[object Uint16Array]",xD="[object Uint32Array]",at={};at[Ym]=at[QA]=at[cD]=at[fD]=at[JA]=at[eD]=at[dD]=at[hD]=at[pD]=at[gD]=at[mD]=at[nD]=at[iD]=at[qm]=at[oD]=at[aD]=at[sD]=at[lD]=at[vD]=at[yD]=at[bD]=at[xD]=!0,at[tD]=at[Gm]=at[uD]=!1;function Is(e,t,r,n,i,o){var a,s=t&KA,u=t&XA,l=t&ZA;if(r&&(a=i?r(e,n,i,o):r(e)),a!==void 0)return a;if(!UA(e))return e;var c=VA(e);if(c){if(a=BA(e),!s)return $A(e,a)}else{var f=RA(e),d=f==Gm||f==rD;if(WA(e))return DA(e,s);if(f==qm||f==Ym||d&&!i){if(a=u||d?{}:zA(e),!s)return u?FA(e,AA(a,e)):IA(e,PA(a,e))}else{if(!at[f])return i?e:{};a=NA(e,f,s)}}o||(o=new OA);var h=o.get(e);if(h)return h;o.set(e,a),YA(e)?e.forEach(function(v){a.add(Is(v,t,r,v,e,o))}):HA(e)&&e.forEach(function(v,x){a.set(x,Is(v,t,r,x,e,o))});var m=l?u?LA:jA:u?qA:GA,p=c?void 0:m(e);return kA(p||e,function(v,x){p&&(x=v,v=e[x]),MA(a,x,Is(v,t,r,x,e,o))}),a}var wD=Is,CD=wD,SD=1,ED=4;function TD(e){return CD(e,SD|ED)}var _D=TD;Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.mergeClasses=void 0;var OD=wc,kD=Km(OD),MD=_D,PD=Km(MD),AD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function Km(e){return e&&e.__esModule?e:{default:e}}var DD=Uo.mergeClasses=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.default&&(0,PD.default)(t.default)||{};return r.map(function(i){var o=t[i];return o&&(0,kD.default)(o,function(a,s){n[s]||(n[s]={}),n[s]=AD({},n[s],o[s])}),i}),n};Uo.default=DD;var Yo={};Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.autoprefix=void 0;var $D=wc,Xm=FD($D),ID=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function FD(e){return e&&e.__esModule?e:{default:e}}var jD={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var r=t&&t.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function(t,r){var n=r[t];return n||{extend:t}}},LD=Yo.autoprefix=function(t){var r={};return(0,Xm.default)(t,function(n,i){var o={};(0,Xm.default)(n,function(a,s){var u=jD[s];u?o=ID({},o,u(a)):o[s]=a}),r[i]=o}),r};Yo.default=LD;var Go={};Object.defineProperty(Go,"__esModule",{value:!0}),Go.hover=void 0;var RD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},BD=g,Vc=ND(BD);function ND(e){return e&&e.__esModule?e:{default:e}}function zD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zm(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function VD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var WD=Go.hover=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){VD(i,n);function i(){var o,a,s,u;zD(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(a=(s=Zm(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(c))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return Vc.default.createElement(r,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},Vc.default.createElement(t,RD({},s.props,s.state)))},a),Zm(s,u)}return i}(Vc.default.Component)};Go.default=WD;var qo={};Object.defineProperty(qo,"__esModule",{value:!0}),qo.active=void 0;var HD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},UD=g,Wc=YD(UD);function YD(e){return e&&e.__esModule?e:{default:e}}function GD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qm(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function qD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var KD=qo.active=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){qD(i,n);function i(){var o,a,s,u;GD(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(a=(s=Qm(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(c))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return Wc.default.createElement(r,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},Wc.default.createElement(t,HD({},s.props,s.state)))},a),Qm(s,u)}return i}(Wc.default.Component)};qo.default=KD;var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});var XD=function(t,r){var n={},i=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n[a]=s};return t===0&&i("first-child"),t===r-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),n};Hc.default=XD,Object.defineProperty(cr,"__esModule",{value:!0}),cr.ReactCSS=cr.loop=cr.handleActive=Uc=cr.handleHover=cr.hover=void 0;var ZD=zo,QD=Ti(ZD),JD=Uo,e$=Ti(JD),t$=Yo,r$=Ti(t$),n$=Go,Jm=Ti(n$),i$=qo,o$=Ti(i$),a$=Hc,s$=Ti(a$);function Ti(e){return e&&e.__esModule?e:{default:e}}cr.hover=Jm.default;var Uc=cr.handleHover=Jm.default;cr.handleActive=o$.default,cr.loop=s$.default;var l$=cr.ReactCSS=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=(0,QD.default)(n),a=(0,e$.default)(t,o);return(0,r$.default)(a)},Se=cr.default=l$,u$=function(t,r,n,i,o){var a=o.clientWidth,s=o.clientHeight,u=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=u-(o.getBoundingClientRect().left+window.pageXOffset),f=l-(o.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var d=void 0;if(f<0?d=0:f>s?d=1:d=Math.round(f*100/s)/100,r.a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}else{var h=void 0;if(c<0?h=0:c>a?h=1:h=Math.round(c*100/a)/100,i!==h)return{h:r.h,s:r.s,l:r.l,a:h,source:"rgb"}}return null},Yc={},c$=function(t,r,n,i){if(typeof document>"u"&&!i)return null;var o=i?new i:document.createElement("canvas");o.width=n*2,o.height=n*2;var a=o.getContext("2d");return a?(a.fillStyle=t,a.fillRect(0,0,o.width,o.height),a.fillStyle=r,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),o.toDataURL()):null},f$=function(t,r,n,i){var o=t+"-"+r+"-"+n+(i?"-server":"");if(Yc[o])return Yc[o];var a=c$(t,r,n,i);return Yc[o]=a,a},ev=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_i=function(t){var r=t.white,n=t.grey,i=t.size,o=t.renderers,a=t.borderRadius,s=t.boxShadow,u=t.children,l=Se({default:{grid:{borderRadius:a,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+f$(r,n,i,o.canvas)+") center left"}}});return g.isValidElement(u)?g.cloneElement(u,ev({},u.props,{style:ev({},u.props.style,l.grid)})):g.createElement("div",{style:l.grid})};_i.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var d$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h$=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function p$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tv(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function g$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Gc=function(e){g$(t,e);function t(){var r,n,i,o;p$(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return o=(n=(i=tv(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),i),i.handleChange=function(l){var c=u$(l,i.props.hsl,i.props.direction,i.props.a,i.container);c&&typeof i.props.onChange=="function"&&i.props.onChange(c,l)},i.handleMouseDown=function(l){i.handleChange(l),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleChange),window.removeEventListener("mouseup",i.handleMouseUp)},n),tv(i,o)}return h$(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,i=this.props.rgb,o=Se({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
|
|
102
|
+
} });`:hi(12,v?` (${v})`:"",JSON.stringify(p.main)));return Kg(p,"light",b,n),Kg(p,"dark",C,n),p.contrastText||(p.contrastText=f(p.main)),p},h={dark:Rc,light:qg};return process.env.NODE_ENV!=="production"&&(h[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),zr(Ae({common:Ae({},Zo),mode:t,primary:d({color:o,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:u,name:"info"}),success:d({color:l,name:"success"}),grey:C4,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const A4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function D4(e){return Math.round(e*1e5)/1e5}const Xg={textTransform:"uppercase"},Zg='"Roboto", "Helvetica", "Arial", sans-serif';function $4(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Zg,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=r,d=Vr(r,A4);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=i/14,m=f||(x=>`${x/l*h}rem`),p=(x,b,C,E,w)=>Ae({fontFamily:n,fontWeight:x,fontSize:m(b),lineHeight:C},n===Zg?{letterSpacing:`${D4(E/b)}em`}:{},w,c),v={h1:p(o,96,1.167,-1.5),h2:p(o,60,1.2,-.5),h3:p(a,48,1.167,0),h4:p(a,34,1.235,.25),h5:p(a,24,1.334,0),h6:p(s,20,1.6,.15),subtitle1:p(a,16,1.75,.15),subtitle2:p(s,14,1.57,.1),body1:p(a,16,1.5,.15),body2:p(a,14,1.43,.15),button:p(s,14,1.75,.4,Xg),caption:p(a,12,1.66,.4),overline:p(a,12,2.66,1,Xg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return zr(Ae({htmlFontSize:l,pxToRem:m,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},v),d,{clone:!1})}const I4=.2,F4=.14,j4=.12;function dt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${I4})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${F4})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${j4})`].join(",")}const L4=["none",dt(0,2,1,-1,0,1,1,0,0,1,3,0),dt(0,3,1,-2,0,2,2,0,0,1,5,0),dt(0,3,3,-2,0,3,4,0,0,1,8,0),dt(0,2,4,-1,0,4,5,0,0,1,10,0),dt(0,3,5,-1,0,5,8,0,0,1,14,0),dt(0,3,5,-1,0,6,10,0,0,1,18,0),dt(0,4,5,-2,0,7,10,1,0,2,16,1),dt(0,5,5,-3,0,8,10,1,0,3,14,2),dt(0,5,6,-3,0,9,12,1,0,3,16,2),dt(0,6,6,-3,0,10,14,1,0,4,18,3),dt(0,6,7,-4,0,11,15,1,0,4,20,3),dt(0,7,8,-4,0,12,17,2,0,5,22,4),dt(0,7,8,-4,0,13,19,2,0,5,24,4),dt(0,7,9,-4,0,14,21,2,0,5,26,4),dt(0,8,9,-5,0,15,22,2,0,6,28,5),dt(0,8,10,-5,0,16,24,2,0,6,30,5),dt(0,8,11,-5,0,17,26,2,0,6,32,5),dt(0,9,11,-5,0,18,28,2,0,7,34,6),dt(0,9,12,-6,0,19,29,2,0,7,36,6),dt(0,10,13,-6,0,20,31,3,0,8,38,7),dt(0,10,13,-6,0,21,33,3,0,8,40,7),dt(0,10,14,-6,0,22,35,3,0,8,42,7),dt(0,11,14,-7,0,23,36,3,0,9,44,8),dt(0,11,15,-7,0,24,38,3,0,9,46,8)],R4=["duration","easing","delay"],N4={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},B4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Qg(e){return`${Math.round(e)}ms`}function z4(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function V4(e){const t=Ae({},N4,e.easing),r=Ae({},B4,e.duration);return Ae({getAutoHeightDuration:z4,create:(i=["all"],o={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:u=0}=o,l=Vr(o,R4);if(process.env.NODE_ENV!=="production"){const c=d=>typeof d=="string",f=d=>!isNaN(parseFloat(d));!c(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!c(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),c(s)||console.error('MUI: Argument "easing" must be a string.'),!f(u)&&!c(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
103
|
+
`)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof a=="string"?a:Qg(a)} ${s} ${typeof u=="string"?u:Qg(u)}`).join(",")}},e,{easing:t,duration:r})}const W4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},H4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Jg(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:o={}}=e,a=Vr(e,H4);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":hi(18));const s=P4(n),u=$c(e);let l=zr(u,{mixins:w4(u.breakpoints,r),palette:s,shadows:L4.slice(),typography:$4(s,o),transitions:V4(i),zIndex:Ae({},W4)});if(l=zr(l,a),l=t.reduce((c,f)=>zr(c,f),l),process.env.NODE_ENV!=="production"){const c=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(d,h)=>{let m;for(m in d){const p=d[m];if(c.indexOf(m)!==-1&&Object.keys(p).length>0){if(process.env.NODE_ENV!=="production"){const v=OS("",m);console.error([`MUI: The \`${h}\` component increases the CSS specificity of the \`${m}\` internal state.`,"You can not override it like this: ",JSON.stringify(d,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:p}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
104
|
+
`))}d[m]={}}}};Object.keys(l.components).forEach(d=>{const h=l.components[d].styleOverrides;h&&d.indexOf("Mui")===0&&f(h,d)})}return l.unstable_sxConfig=Ae({},Ac,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(f){return Dc({sx:f,theme:this})},l}const em=Jg();function An(){const e=o4(em);return process.env.NODE_ENV!=="production"&&xe.useDebugValue(e),e[hs]||e}const It=g4({themeId:hs,defaultTheme:em,rootShouldForwardProp:e=>As(e)&&e!=="classes"}),U4=["theme"];function tm(e){let{theme:t}=e,r=Vr(e,U4);const n=t[hs];return y.jsx(Is,Ae({},r,{themeId:n?hs:void 0,theme:n||t}))}process.env.NODE_ENV!=="production"&&(tm.propTypes={children:_.node,theme:_.oneOfType([_.object,_.func]).isRequired});function Y4(e,t,r,n,i){const[o,a]=xe.useState(()=>i&&r?r(e).matches:n?n(e).matches:t);return TS(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&a(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),o}const rm=xe["useSyncExternalStore"];function G4(e,t,r,n,i){const o=xe.useCallback(()=>t,[t]),a=xe.useMemo(()=>{if(i&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return o},[o,e,n,i,r]),[s,u]=xe.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const c=r(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[o,r,e]);return rm(u,s,a)}function Fs(e,t={}){const r=Ic(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=m4({name:"MuiUseMediaQuery",props:t,theme:r});process.env.NODE_ENV!=="production"&&typeof e=="function"&&r===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
105
|
+
`));let u=typeof e=="function"?e(r):e;u=u.replace(/^@media( ?)/m,"");const c=(rm!==void 0?G4:Y4)(u,i,o,a,s);return process.env.NODE_ENV!=="production"&&xe.useDebugValue({query:u,match:c}),c}const nm=(e,t,r)=>{const n=An(),i=Fs(n.breakpoints.up(t)),o=Fs(n.breakpoints.down(t)),a=Fs(n.breakpoints.between(t,r)),s=Fs(n.breakpoints.only(t));return e==="up"?i:e==="down"?o:e==="between"?a:s},q4=({children:e,disableAnimatedMobile:t=!0,...r})=>nm("down","sm")&&t?y.jsx(P.Box,{...r,children:e}):y.jsx(P.Box,{component:mr.div,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.3},variants:Va(),...r,children:e}),K4=({animate:e,action:t=!1,children:r,...n})=>t?y.jsx(P.Box,{component:mr.div,initial:!1,animate:e?"animate":"exit",variants:Va(),...n,children:r}):y.jsx(P.Box,{component:mr.div,initial:"initial",animate:"animate",exit:"exit",variants:Va(),...n,children:r}),X4=()=>Promise.resolve().then(()=>fQ).then(e=>e.default),Z4=({children:e})=>y.jsx(QC,{strict:!0,features:X4,children:y.jsxs(mr.div,{style:{height:"100%"},children:[" ",e," "]})});function im(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=im(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Dn(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=im(e))&&(n&&(n+=" "),n+=t);return n}let Q4={data:""},J4=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Q4,eT=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,tT=/\/\*[^]*?\*\/| +/g,om=/\n+/g,$n=(e,t)=>{let r="",n="",i="";for(let o in e){let a=e[o];o[0]=="@"?o[1]=="i"?r=o+" "+a+";":n+=o[1]=="f"?$n(a,o):o+"{"+$n(a,o[1]=="k"?"":t)+"}":typeof a=="object"?n+=$n(a,t?t.replace(/([^,])+/g,s=>o.replace(/(^:.*)|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,s):s?s+" "+u:u)):o):a!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=$n.p?$n.p(o,a):o+":"+a+";")}return r+(t&&i?t+"{"+i+"}":i)+n},Hr={},am=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+am(e[r]);return t}return e},rT=(e,t,r,n,i)=>{let o=am(e),a=Hr[o]||(Hr[o]=(u=>{let l=0,c=11;for(;l<u.length;)c=101*c+u.charCodeAt(l++)>>>0;return"go"+c})(o));if(!Hr[a]){let u=o!==e?e:(l=>{let c,f,d=[{}];for(;c=eT.exec(l.replace(tT,""));)c[4]?d.shift():c[3]?(f=c[3].replace(om," ").trim(),d.unshift(d[0][f]=d[0][f]||{})):d[0][c[1]]=c[2].replace(om," ").trim();return d[0]})(e);Hr[a]=$n(i?{["@keyframes "+a]:u}:u,r?"":"."+a)}let s=r&&Hr.g?Hr.g:null;return r&&(Hr.g=Hr[a]),((u,l,c,f)=>{f?l.data=l.data.replace(f,u):l.data.indexOf(u)===-1&&(l.data=c?u+l.data:l.data+u)})(Hr[a],t,n,s),a},nT=(e,t,r)=>e.reduce((n,i,o)=>{let a=t[o];if(a&&a.call){let s=a(r),u=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=u?"."+u:s&&typeof s=="object"?s.props?"":$n(s,""):s===!1?"":s}return n+i+(a??"")},"");function Nc(e){let t=this||{},r=e.call?e(t.p):e;return rT(r.unshift?r.raw?nT(r,[].slice.call(arguments,1),t.p):r.reduce((n,i)=>Object.assign(n,i&&i.call?i(t.p):i),{}):r,J4(t.target),t.g,t.o,t.k)}Nc.bind({g:1}),Nc.bind({k:1});function sm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lm(e,t,r){return t&&sm(e.prototype,t),r&&sm(e,r),e}function rt(){return rt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rt.apply(this,arguments)}function um(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Jo(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function cm(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var fm=function(){return""},dm=g.createContext({enqueueSnackbar:fm,closeSnackbar:fm}),In={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},hm=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Bc=function(t){return""+hm(t.vertical)+hm(t.horizontal)},js=function(t){return!!t||t===0},Ls="unmounted",Ei="exited",Ti="entering",ea="entered",pm="exiting",Rs=function(e){um(t,e);function t(n){var i;i=e.call(this,n)||this;var o=n.appear,a;return i.appearStatus=null,n.in?o?(a=Ei,i.appearStatus=Ti):a=ea:n.unmountOnExit||n.mountOnEnter?a=Ls:a=Ei,i.state={status:a},i.nextCallback=null,i}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Ls?{status:Ei}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Ti&&a!==ea&&(o=Ti):(a===Ti||a===ea)&&(o=pm)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,o=i,a=i;return i!=null&&typeof i!="number"&&typeof i!="string"&&(a=i.exit,o=i.enter),{exit:a,enter:o}},r.updateStatus=function(i,o){i===void 0&&(i=!1),o!==null?(this.cancelNextCallback(),o===Ti?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===Ei&&this.setState({status:Ls})},r.performEnter=function(i){var o=this,a=this.props.enter,s=i,u=this.getTimeouts();if(!i&&!a){this.safeSetState({status:ea},function(){o.props.onEntered&&o.props.onEntered(o.node,s)});return}this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:Ti},function(){o.props.onEntering&&o.props.onEntering(o.node,s),o.onTransitionEnd(u.enter,function(){o.safeSetState({status:ea},function(){o.props.onEntered&&o.props.onEntered(o.node,s)})})})},r.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts();if(!o){this.safeSetState({status:Ei},function(){i.props.onExited&&i.props.onExited(i.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:pm},function(){i.props.onExiting&&i.props.onExiting(i.node),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Ei},function(){i.props.onExited&&i.props.onExited(i.node)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},r.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(){a&&(a=!1,o.nextCallback=null,i())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=i==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Ls)return null;var o=this.props,a=o.children,s=Jo(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(i,s)},lm(t,[{key:"node",get:function(){var i,o=(i=this.props.nodeRef)===null||i===void 0?void 0:i.current;if(!o)throw new Error("notistack - Custom snackbar is not refForwarding");return o}}]),t}(g.Component);function ki(){}Rs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ki,onEntering:ki,onEntered:ki,onExit:ki,onExiting:ki,onExited:ki};function gm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function zc(e,t){return g.useMemo(function(){return e==null&&t==null?null:function(r){gm(e,r),gm(t,r)}},[e,t])}function Ns(e){var t=e.timeout,r=e.style,n=r===void 0?{}:r,i=e.mode;return{duration:typeof t=="object"?t[i]||0:t,easing:n.transitionTimingFunction,delay:n.transitionDelay}}var Vc={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},mm=function(t){t.scrollTop=t.scrollTop},vm=function(t){return Math.round(t)+"ms"};function _i(e,t){e===void 0&&(e=["all"]);var r=t||{},n=r.duration,i=n===void 0?300:n,o=r.easing,a=o===void 0?Vc.easeInOut:o,s=r.delay,u=s===void 0?0:s,l=Array.isArray(e)?e:[e];return l.map(function(c){var f=typeof i=="string"?i:vm(i),d=typeof u=="string"?u:vm(u);return c+" "+f+" "+a+" "+d}).join(",")}function iT(e){return e&&e.ownerDocument||document}function ym(e){var t=iT(e);return t.defaultView||window}function oT(e,t){t===void 0&&(t=166);var r;function n(){for(var i=this,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var u=function(){e.apply(i,a)};clearTimeout(r),r=setTimeout(u,t)}return n.clear=function(){clearTimeout(r)},n}function aT(e,t){var r=t.getBoundingClientRect(),n=ym(t),i;if(t.fakeTransform)i=t.fakeTransform;else{var o=n.getComputedStyle(t);i=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var a=0,s=0;if(i&&i!=="none"&&typeof i=="string"){var u=i.split("(")[1].split(")")[0].split(",");a=parseInt(u[4],10),s=parseInt(u[5],10)}switch(e){case"left":return"translateX("+(n.innerWidth+a-r.left)+"px)";case"right":return"translateX(-"+(r.left+r.width-a)+"px)";case"up":return"translateY("+(n.innerHeight+s-r.top)+"px)";default:return"translateY(-"+(r.top+r.height-s)+"px)"}}function Bs(e,t){if(t){var r=aT(e,t);r&&(t.style.webkitTransform=r,t.style.transform=r)}}var bm=g.forwardRef(function(e,t){var r=e.children,n=e.direction,i=n===void 0?"down":n,o=e.in,a=e.style,s=e.timeout,u=s===void 0?0:s,l=e.onEnter,c=e.onEntered,f=e.onExit,d=e.onExited,h=Jo(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),m=g.useRef(null),p=zc(r.ref,m),v=zc(p,t),x=function(T,O){Bs(i,T),mm(T),l&&l(T,O)},b=function(T){var O=(a==null?void 0:a.transitionTimingFunction)||Vc.easeOut,A=Ns({timeout:u,mode:"enter",style:rt({},a,{transitionTimingFunction:O})});T.style.webkitTransition=_i("-webkit-transform",A),T.style.transition=_i("transform",A),T.style.webkitTransform="none",T.style.transform="none"},C=function(T){var O=(a==null?void 0:a.transitionTimingFunction)||Vc.sharp,A=Ns({timeout:u,mode:"exit",style:rt({},a,{transitionTimingFunction:O})});T.style.webkitTransition=_i("-webkit-transform",A),T.style.transition=_i("transform",A),Bs(i,T),f&&f(T)},E=function(T){T.style.webkitTransition="",T.style.transition="",d&&d(T)},w=g.useCallback(function(){m.current&&Bs(i,m.current)},[i]);return g.useEffect(function(){if(!(o||i==="down"||i==="right")){var k=oT(function(){m.current&&Bs(i,m.current)}),T=ym(m.current);return T.addEventListener("resize",k),function(){k.clear(),T.removeEventListener("resize",k)}}},[i,o]),g.useEffect(function(){o||w()},[o,w]),g.createElement(Rs,Object.assign({appear:!0,nodeRef:m,onEnter:x,onEntered:c,onEntering:b,onExit:C,onExited:E,in:o,timeout:u},h),function(k,T){return g.cloneElement(r,rt({ref:v,style:rt({visibility:k==="exited"&&!o?"hidden":void 0},a,{},r.props.style)},T))})});bm.displayName="Slide";var zs=function(t){return g.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},sT=function(){return g.createElement(zs,null,g.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
106
|
+
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},lT=function(){return g.createElement(zs,null,g.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},uT=function(){return g.createElement(zs,null,g.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
|
|
107
|
+
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
108
|
+
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},cT=function(){return g.createElement(zs,null,g.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
109
|
+
0 22,12A10,10 0 0,0 12,2Z`}))},fT={default:void 0,success:g.createElement(sT,null),warning:g.createElement(lT,null),error:g.createElement(uT,null),info:g.createElement(cT,null)},Fn={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:fT,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:bm,transitionDuration:{enter:225,exit:195}},dT=function(t,r){var n=function(o){return typeof o=="number"||o===null};return n(t)?t:n(r)?r:Fn.autoHideDuration},hT=function(t,r){var n=function(o,a){return a.some(function(s){return typeof o===s})};return n(t,["string","number"])?t:n(t,["object"])?rt({},Fn.transitionDuration,{},n(r,["object"])&&r,{},t):n(r,["string","number"])?r:n(r,["object"])?rt({},Fn.transitionDuration,{},r):Fn.transitionDuration},pT=function(t,r){return function(n,i){return i===void 0&&(i=!1),i?rt({},Fn[n],{},r[n],{},t[n]):n==="autoHideDuration"?dT(t.autoHideDuration,r.autoHideDuration):n==="transitionDuration"?hT(t.transitionDuration,r.transitionDuration):t[n]||r[n]||Fn[n]}};function ta(e){return Object.entries(e).reduce(function(t,r){var n,i=r[0],o=r[1];return rt({},t,(n={},n[i]=Nc(o),n))},{})}var Oi={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},xm=ta({root:{height:0},entered:{height:"auto"}}),Wc="0px",Hc=175,wm=g.forwardRef(function(e,t){var r=e.children,n=e.in,i=e.onExited,o=g.useRef(null),a=g.useRef(null),s=zc(t,a),u=function(){return o.current?o.current.clientHeight:0},l=function(p){p.style.height=Wc},c=function(p){var v=u(),x=Ns({timeout:Hc,mode:"enter"}),b=x.duration,C=x.easing;p.style.transitionDuration=typeof b=="string"?b:b+"ms",p.style.height=v+"px",p.style.transitionTimingFunction=C||""},f=function(p){p.style.height="auto"},d=function(p){p.style.height=u()+"px"},h=function(p){mm(p);var v=Ns({timeout:Hc,mode:"exit"}),x=v.duration,b=v.easing;p.style.transitionDuration=typeof x=="string"?x:x+"ms",p.style.height=Wc,p.style.transitionTimingFunction=b||""};return g.createElement(Rs,{in:n,unmountOnExit:!0,onEnter:l,onEntered:f,onEntering:c,onExit:d,onExited:i,onExiting:h,nodeRef:a,timeout:Hc},function(m,p){return g.createElement("div",Object.assign({ref:s,className:Dn(xm.root,m==="entered"&&xm.entered),style:rt({pointerEvents:"all",overflow:"hidden",minHeight:Wc,transition:_i("height")},m==="entered"&&{overflow:"visible"},{},m==="exited"&&!n&&{visibility:"hidden"})},p),g.createElement("div",{ref:o,className:Oi.CollapseWrapper,style:{display:"flex",width:"100%"}},r))})});wm.displayName="Collapse";var Cm={right:"left",left:"right",bottom:"up",top:"down"},gT=function(t){return t.horizontal!=="center"?Cm[t.horizontal]:Cm[t.vertical]},mT=function(t){return"anchorOrigin"+Bc(t)},vT=function(t){t===void 0&&(t={});var r={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(t).filter(function(n){return!r[n]}).reduce(function(n,i){var o;return rt({},n,(o={},o[i]=t[i],o))},{})},yT=function(){};function ra(e,t){return e.reduce(function(r,n){return n==null?r:function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var u=[].concat(a);t&&u.indexOf(t)===-1&&u.push(t),r.apply(this,u),n.apply(this,u)}},yT)}var bT=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Sm(e){var t=g.useRef(e);return bT(function(){t.current=e}),g.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var Em=g.forwardRef(function(e,t){var r=e.children,n=e.className,i=e.autoHideDuration,o=e.disableWindowBlurListener,a=o===void 0?!1:o,s=e.onClose,u=e.id,l=e.open,c=e.SnackbarProps,f=c===void 0?{}:c,d=g.useRef(),h=Sm(function(){s&&s.apply(void 0,arguments)}),m=Sm(function(C){!s||C==null||(d.current&&clearTimeout(d.current),d.current=setTimeout(function(){h(null,"timeout",u)},C))});g.useEffect(function(){return l&&m(i),function(){d.current&&clearTimeout(d.current)}},[l,i,m]);var p=function(){d.current&&clearTimeout(d.current)},v=g.useCallback(function(){i!=null&&m(i*.5)},[i,m]),x=function(E){f.onMouseEnter&&f.onMouseEnter(E),p()},b=function(E){f.onMouseLeave&&f.onMouseLeave(E),v()};return g.useEffect(function(){if(!a&&l)return window.addEventListener("focus",v),window.addEventListener("blur",p),function(){window.removeEventListener("focus",v),window.removeEventListener("blur",p)}},[a,v,l]),g.createElement("div",Object.assign({ref:t},f,{className:Dn(Oi.Snackbar,n),onMouseEnter:x,onMouseLeave:b}),r)});Em.displayName="Snackbar";var Uc,xT=ta({root:(Uc={display:"flex",flexWrap:"wrap",flexGrow:1},Uc[In.upSm]={flexGrow:"initial",minWidth:"288px"},Uc)}),Yc=g.forwardRef(function(e,t){var r=e.className,n=Jo(e,["className"]);return g.createElement("div",Object.assign({ref:t,className:Dn(xT.root,r)},n))});Yc.displayName="SnackbarContent";var na=ta({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),Tm="notistack-snackbar",km=g.forwardRef(function(e,t){var r=e.id,n=e.message,i=e.action,o=e.iconVariant,a=e.variant,s=e.hideIconVariant,u=e.style,l=e.className,c=o[a],f=i;return typeof f=="function"&&(f=f(r)),g.createElement(Yc,{ref:t,role:"alert","aria-describedby":Tm,style:u,className:Dn(Oi.MuiContent,Oi.MuiContentVariant(a),na.root,na[a],l,!s&&c&&na.lessPadding)},g.createElement("div",{id:Tm,className:na.message},s?null:c,n),f&&g.createElement("div",{className:na.action},f))});km.displayName="MaterialDesignContent";var _m=g.memo(km),wT=ta({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),CT=function(t){var r=g.useRef(),n=g.useState(!0),i=n[0],o=n[1],a=ra([t.snack.onClose,t.onClose]),s=function(){t.snack.requestClose&&a(null,"instructed",t.snack.id)},u=g.useCallback(function(){r.current=setTimeout(function(){o(function(A){return!A})},125)},[]);g.useEffect(function(){return function(){r.current&&clearTimeout(r.current)}},[]);var l=t.snack,c=t.classes,f=t.Component,d=f===void 0?_m:f,h=g.useMemo(function(){return vT(c)},[c]),m=l.open,p=l.SnackbarProps,v=l.TransitionComponent,x=l.TransitionProps,b=l.transitionDuration,C=l.disableWindowBlurListener,E=l.content,w=Jo(l,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),k=rt({direction:gT(w.anchorOrigin),timeout:b},x),T=E;typeof T=="function"&&(T=T(w.id,w.message));var O=["onEnter","onEntered","onExit","onExited"].reduce(function(A,L){var Z;return rt({},A,(Z={},Z[L]=ra([t.snack[L],t[L]],w.id),Z))},{});return g.createElement(wm,{in:i,onExited:O.onExited},g.createElement(Em,{open:m,id:w.id,disableWindowBlurListener:C,autoHideDuration:w.autoHideDuration,className:Dn(wT.wrappedRoot,h.root,h[mT(w.anchorOrigin)]),SnackbarProps:p,onClose:a},g.createElement(v,Object.assign({},k,{appear:!0,in:m,onExit:O.onExit,onExited:u,onEnter:O.onEnter,onEntered:ra([O.onEntered,s],w.id)}),T||g.createElement(d,Object.assign({},w)))))},ia,Gc,Vs,Ws,qc,Ur={view:{default:20,dense:4},snackbar:{default:6,dense:2}},Om="."+Oi.CollapseWrapper,Kc=16,Hs=ta({root:(ia={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:_i(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},ia[Om]={padding:Ur.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},ia.maxWidth="calc(100% - "+Ur.view.default*2+"px)",ia[In.downXs]={width:"100%",maxWidth:"calc(100% - "+Kc*2+"px)"},ia),rootDense:(Gc={},Gc[Om]={padding:Ur.snackbar.dense+"px 0px"},Gc),top:{top:Ur.view.default-Ur.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:Ur.view.default-Ur.snackbar.default+"px",flexDirection:"column-reverse"},left:(Vs={left:Ur.view.default+"px"},Vs[In.upSm]={alignItems:"flex-start"},Vs[In.downXs]={left:Kc+"px"},Vs),right:(Ws={right:Ur.view.default+"px"},Ws[In.upSm]={alignItems:"flex-end"},Ws[In.downXs]={right:Kc+"px"},Ws),center:(qc={left:"50%",transform:"translateX(-50%)"},qc[In.upSm]={alignItems:"center"},qc)}),ST=function(t){var r=t.classes,n=r===void 0?{}:r,i=t.anchorOrigin,o=t.dense,a=t.children,s=Dn(Oi.SnackbarContainer,Hs[i.vertical],Hs[i.horizontal],Hs.root,n.containerRoot,n["containerAnchorOrigin"+Bc(i)],o&&Hs.rootDense);return g.createElement("div",{className:s},a)},ET=g.memo(ST),TT=process.env.NODE_ENV!=="production",kT={NO_PERSIST_ALL:"Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."},_T=function(e){if(TT){var t=kT[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}},Mm=function(t){var r=typeof t=="string"||g.isValidElement(t);return!r};R.enqueueSnackbar=void 0,R.closeSnackbar=void 0;var Pm=function(e){um(t,e);function t(n){var i;return i=e.call(this,n)||this,i.enqueueSnackbar=function(o,a){if(a===void 0&&(a={}),o==null)throw new Error("enqueueSnackbar called with invalid argument");var s=Mm(o)?o:a,u=Mm(o)?o.message:o,l=s.key,c=s.preventDuplicate,f=Jo(s,["key","preventDuplicate"]),d=js(l),h=d?l:new Date().getTime()+Math.random(),m=pT(f,i.props),p=rt({id:h},f,{message:u,open:!0,entered:!1,requestClose:!1,persist:m("persist"),action:m("action"),content:m("content"),variant:m("variant"),anchorOrigin:m("anchorOrigin"),disableWindowBlurListener:m("disableWindowBlurListener"),autoHideDuration:m("autoHideDuration"),hideIconVariant:m("hideIconVariant"),TransitionComponent:m("TransitionComponent"),transitionDuration:m("transitionDuration"),TransitionProps:m("TransitionProps",!0),iconVariant:m("iconVariant",!0),style:m("style",!0),SnackbarProps:m("SnackbarProps",!0),className:Dn(i.props.className,f.className)});return p.persist&&(p.autoHideDuration=void 0),i.setState(function(v){if(c===void 0&&i.props.preventDuplicate||c){var x=function(w){return d?w.id===h:w.message===u},b=v.queue.findIndex(x)>-1,C=v.snacks.findIndex(x)>-1;if(b||C)return v}return i.handleDisplaySnack(rt({},v,{queue:[].concat(v.queue,[p])}))}),h},i.handleDisplaySnack=function(o){var a=o.snacks;return a.length>=i.maxSnack?i.handleDismissOldest(o):i.processQueue(o)},i.processQueue=function(o){var a=o.queue,s=o.snacks;return a.length>0?rt({},o,{snacks:[].concat(s,[a[0]]),queue:a.slice(1,a.length)}):o},i.handleDismissOldest=function(o){if(o.snacks.some(function(c){return!c.open||c.requestClose}))return o;var a=!1,s=!1,u=o.snacks.reduce(function(c,f){return c+(f.open&&f.persist?1:0)},0);u===i.maxSnack&&(process.env.NODE_ENV!=="production"&&_T("NO_PERSIST_ALL"),s=!0);var l=o.snacks.map(function(c){return!a&&(!c.persist||s)?(a=!0,c.entered?(c.onClose&&c.onClose(null,"maxsnack",c.id),i.props.onClose&&i.props.onClose(null,"maxsnack",c.id),rt({},c,{open:!1})):rt({},c,{requestClose:!0})):rt({},c)});return rt({},o,{snacks:l})},i.handleEnteredSnack=function(o,a,s){if(!js(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(u){var l=u.snacks;return{snacks:l.map(function(c){return c.id===s?rt({},c,{entered:!0}):rt({},c)})}})},i.handleCloseSnack=function(o,a,s){i.props.onClose&&i.props.onClose(o,a,s);var u=s===void 0;i.setState(function(l){var c=l.snacks,f=l.queue;return{snacks:c.map(function(d){return!u&&d.id!==s?rt({},d):d.entered?rt({},d,{open:!1}):rt({},d,{requestClose:!0})}),queue:f.filter(function(d){return d.id!==s})}})},i.closeSnackbar=function(o){var a=i.state.snacks.find(function(s){return s.id===o});js(o)&&a&&a.onClose&&a.onClose(null,"instructed",o),i.handleCloseSnack(null,"instructed",o)},i.handleExitedSnack=function(o,a){if(!js(a))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(s){var u=i.processQueue(rt({},s,{snacks:s.snacks.filter(function(l){return l.id!==a})}));return u.queue.length===0?u:i.handleDismissOldest(u)})},R.enqueueSnackbar=i.enqueueSnackbar,R.closeSnackbar=i.closeSnackbar,i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(cm(i)),closeSnackbar:i.closeSnackbar.bind(cm(i))}},i}var r=t.prototype;return r.render=function(){var i=this,o=this.state.contextValue,a=this.props,s=a.domRoot,u=a.children,l=a.dense,c=l===void 0?!1:l,f=a.Components,d=f===void 0?{}:f,h=a.classes,m=this.state.snacks.reduce(function(v,x){var b,C=Bc(x.anchorOrigin),E=v[C]||[];return rt({},v,(b={},b[C]=[].concat(E,[x]),b))},{}),p=Object.keys(m).map(function(v){var x=m[v],b=x[0];return g.createElement(ET,{key:v,dense:c,anchorOrigin:b.anchorOrigin,classes:h},x.map(function(C){return g.createElement(CT,{key:C.id,snack:C,classes:h,Component:d[C.variant],onClose:i.handleCloseSnack,onEnter:i.props.onEnter,onExit:i.props.onExit,onExited:ra([i.handleExitedSnack,i.props.onExited],C.id),onEntered:ra([i.handleEnteredSnack,i.props.onEntered],C.id)})}))});return g.createElement(dm.Provider,{value:o},u,s?gu.createPortal(p,s):p)},lm(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Fn.maxSnack}}]),t}(g.Component),OT=function(){return g.useContext(dm)};const oa=/^[a-z0-9]+(-[a-z0-9]+)*$/,Us=(e,t,r,n="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const s=i.pop(),u=i.pop(),l={provider:i.length>0?i[0]:n,prefix:u,name:s};return t&&!Ys(l)?null:l}const o=i[0],a=o.split("-");if(a.length>1){const s={provider:n,prefix:a.shift(),name:a.join("-")};return t&&!Ys(s)?null:s}if(r&&n===""){const s={provider:n,prefix:"",name:o};return t&&!Ys(s,r)?null:s}return null},Ys=(e,t)=>e?!!((e.provider===""||e.provider.match(oa))&&(t&&e.prefix===""||e.prefix.match(oa))&&e.name.match(oa)):!1,Am=Object.freeze({left:0,top:0,width:16,height:16}),Gs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Xc=Object.freeze({...Am,...Gs}),Zc=Object.freeze({...Xc,body:"",hidden:!1});function MT(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function Dm(e,t){const r=MT(e,t);for(const n in Zc)n in Gs?n in e&&!(n in r)&&(r[n]=Gs[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function PT(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function o(a){if(r[a])return i[a]=[];if(!(a in i)){i[a]=null;const s=n[a]&&n[a].parent,u=s&&o(s);u&&(i[a]=[s].concat(u))}return i[a]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(o),i}function AT(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function a(s){o=Dm(n[s]||i[s],o)}return a(t),r.forEach(a),Dm(e,o)}function $m(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),r.push(i)});const n=PT(e);for(const i in n){const o=n[i];o&&(t(i,AT(e,i,o)),r.push(i))}return r}const DT={provider:"",aliases:{},not_found:{},...Am};function Qc(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function Im(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Qc(e,DT))return null;const r=t.icons;for(const i in r){const o=r[i];if(!i.match(oa)||typeof o.body!="string"||!Qc(o,Zc))return null}const n=t.aliases||Object.create(null);for(const i in n){const o=n[i],a=o.parent;if(!i.match(oa)||typeof a!="string"||!r[a]&&!n[a]||!Qc(o,Zc))return null}return t}const Fm=Object.create(null);function $T(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function jn(e,t){const r=Fm[e]||(Fm[e]=Object.create(null));return r[t]||(r[t]=$T(e,t))}function Jc(e,t){return Im(t)?$m(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function IT(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let aa=!1;function jm(e){return typeof e=="boolean"&&(aa=e),aa}function FT(e){const t=typeof e=="string"?Us(e,!0,aa):e;if(t){const r=jn(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function jT(e,t){const r=Us(e,!0,aa);if(!r)return!1;const n=jn(r.provider,r.prefix);return IT(n,r.name,t)}function LT(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),aa&&!t&&!e.prefix){let i=!1;return Im(e)&&(e.prefix="",$m(e,(o,a)=>{a&&jT(o,a)&&(i=!0)})),i}const r=e.prefix;if(!Ys({provider:t,prefix:r,name:"a"}))return!1;const n=jn(t,r);return!!Jc(n,e)}const Lm=Object.freeze({width:null,height:null}),Rm=Object.freeze({...Lm,...Gs}),RT=/(-?[0-9.]*[0-9]+[0-9.]*)/g,NT=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Nm(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(RT);if(n===null||!n.length)return e;const i=[];let o=n.shift(),a=NT.test(o);for(;;){if(a){const s=parseFloat(o);isNaN(s)?i.push(o):i.push(Math.ceil(s*t*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");a=!a}}const BT=e=>e==="unset"||e==="undefined"||e==="none";function zT(e,t){const r={...Xc,...e},n={...Rm,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(m=>{const p=[],v=m.hFlip,x=m.vFlip;let b=m.rotate;v?x?b+=2:(p.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),p.push("scale(-1 1)"),i.top=i.left=0):x&&(p.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),p.push("scale(1 -1)"),i.top=i.left=0);let C;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:C=i.height/2+i.top,p.unshift("rotate(90 "+C.toString()+" "+C.toString()+")");break;case 2:p.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:C=i.width/2+i.left,p.unshift("rotate(-90 "+C.toString()+" "+C.toString()+")");break}b%2===1&&(i.left!==i.top&&(C=i.left,i.left=i.top,i.top=C),i.width!==i.height&&(C=i.width,i.width=i.height,i.height=C)),p.length&&(o='<g transform="'+p.join(" ")+'">'+o+"</g>")});const a=n.width,s=n.height,u=i.width,l=i.height;let c,f;a===null?(f=s===null?"1em":s==="auto"?l:s,c=Nm(f,u/l)):(c=a==="auto"?u:a,f=s===null?Nm(c,l/u):s==="auto"?l:s);const d={},h=(m,p)=>{BT(p)||(d[m]=p.toString())};return h("width",c),h("height",f),d.viewBox=i.left.toString()+" "+i.top.toString()+" "+u.toString()+" "+l.toString(),{attributes:d,body:o}}const VT=/\sid="(\S+)"/g,WT="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let HT=0;function UT(e,t=WT){const r=[];let n;for(;n=VT.exec(e);)r.push(n[1]);if(!r.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(o=>{const a=typeof t=="function"?t(o):t+(HT++).toString(),s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const ef=Object.create(null);function YT(e,t){ef[e]=t}function tf(e){return ef[e]||ef[""]}function rf(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const nf=Object.create(null),sa=["https://api.simplesvg.com","https://api.unisvg.com"],qs=[];for(;sa.length>0;)sa.length===1||Math.random()>.5?qs.push(sa.shift()):qs.push(sa.pop());nf[""]=rf({resources:["https://api.iconify.design"].concat(qs)});function GT(e,t){const r=rf(t);return r===null?!1:(nf[e]=r,!0)}function of(e){return nf[e]}let Bm=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function qT(e,t){const r=of(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let i=0;r.resources.forEach(a=>{i=Math.max(i,a.length)});const o=t+".json?icons=";n=r.maxURL-i-r.path.length-o.length}return n}function KT(e){return e===404}const XT=(e,t,r)=>{const n=[],i=qT(e,t),o="icons";let a={type:o,provider:e,prefix:t,icons:[]},s=0;return r.forEach((u,l)=>{s+=u.length+1,s>=i&&l>0&&(n.push(a),a={type:o,provider:e,prefix:t,icons:[]},s=u.length),a.icons.push(u)}),n.push(a),n};function ZT(e){if(typeof e=="string"){const t=of(e);if(t)return t.path}return"/"}const QT={prepare:XT,send:(e,t,r)=>{if(!Bm){r("abort",424);return}let n=ZT(t.provider);switch(t.type){case"icons":{const o=t.prefix,s=t.icons.join(","),u=new URLSearchParams({icons:s});n+=o+".json?"+u.toString();break}case"custom":{const o=t.uri;n+=o.slice(0,1)==="/"?o.slice(1):o;break}default:r("abort",400);return}let i=503;Bm(e+n).then(o=>{const a=o.status;if(a!==200){setTimeout(()=>{r(KT(a)?"abort":"next",a)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?r("abort",o):r("next",i)});return}setTimeout(()=>{r("success",o)})}).catch(()=>{r("next",i)})}};function JT(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let n={provider:"",prefix:"",name:""};return e.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const o=i.provider,a=i.prefix,s=i.name,u=r[o]||(r[o]=Object.create(null)),l=u[a]||(u[a]=jn(o,a));let c;s in l.icons?c=t.loaded:a===""||l.missing.has(s)?c=t.missing:c=t.pending;const f={provider:o,prefix:a,name:s};c.push(f)}),t}function zm(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function ek(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,i=e.prefix;t.forEach(o=>{const a=o.icons,s=a.pending.length;a.pending=a.pending.filter(u=>{if(u.prefix!==i)return!0;const l=u.name;if(e.icons[l])a.loaded.push({provider:n,prefix:i,name:l});else if(e.missing.has(l))a.missing.push({provider:n,prefix:i,name:l});else return r=!0,!0;return!1}),a.pending.length!==s&&(r||zm([e],o.id),o.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),o.abort))})}))}let tk=0;function rk(e,t,r){const n=tk++,i=zm.bind(null,r,n);if(!t.pending.length)return i;const o={id:n,icons:t,callback:e,abort:i};return r.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(o)}),i}function nk(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const o=typeof i=="string"?Us(i,t,r):i;o&&n.push(o)}),n}var ik={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ok(e,t,r,n){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let k=e.resources.slice(0);for(a=[];k.length>1;){const T=Math.floor(Math.random()*k.length);a.push(k[T]),k=k.slice(0,T).concat(k.slice(T+1))}a=a.concat(k)}else a=e.resources.slice(o).concat(e.resources.slice(0,o));const s=Date.now();let u="pending",l=0,c,f=null,d=[],h=[];typeof n=="function"&&h.push(n);function m(){f&&(clearTimeout(f),f=null)}function p(){u==="pending"&&(u="aborted"),m(),d.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),d=[]}function v(k,T){T&&(h=[]),typeof k=="function"&&h.push(k)}function x(){return{startTime:s,payload:t,status:u,queriesSent:l,queriesPending:d.length,subscribe:v,abort:p}}function b(){u="failed",h.forEach(k=>{k(void 0,c)})}function C(){d.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),d=[]}function E(k,T,O){const A=T!=="success";switch(d=d.filter(L=>L!==k),u){case"pending":break;case"failed":if(A||!e.dataAfterTimeout)return;break;default:return}if(T==="abort"){c=O,b();return}if(A){c=O,d.length||(a.length?w():b());return}if(m(),C(),!e.random){const L=e.resources.indexOf(k.resource);L!==-1&&L!==e.index&&(e.index=L)}u="completed",h.forEach(L=>{L(O)})}function w(){if(u!=="pending")return;m();const k=a.shift();if(k===void 0){if(d.length){f=setTimeout(()=>{m(),u==="pending"&&(C(),b())},e.timeout);return}b();return}const T={status:"pending",resource:k,callback:(O,A)=>{E(T,O,A)}};d.push(T),l++,f=setTimeout(w,e.rotate),r(k,t,T.callback)}return setTimeout(w),x}function Vm(e){const t={...ik,...e};let r=[];function n(){r=r.filter(s=>s().status==="pending")}function i(s,u,l){const c=ok(t,s,u,(f,d)=>{n(),l&&l(f,d)});return r.push(c),c}function o(s){return r.find(u=>s(u))||null}return{query:i,find:o,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:n}}function Wm(){}const af=Object.create(null);function ak(e){if(!af[e]){const t=of(e);if(!t)return;const r=Vm(t),n={config:t,redundancy:r};af[e]=n}return af[e]}function sk(e,t,r){let n,i;if(typeof e=="string"){const o=tf(e);if(!o)return r(void 0,424),Wm;i=o.send;const a=ak(e);a&&(n=a.redundancy)}else{const o=rf(e);if(o){n=Vm(o);const a=e.resources?e.resources[0]:"",s=tf(a);s&&(i=s.send)}}return!n||!i?(r(void 0,424),Wm):n.query(t,i,r)().abort}const Hm="iconify2",la="iconify",Um=la+"-count",Ym=la+"-version",Gm=36e5,lk=168;function sf(e,t){try{return e.getItem(t)}catch{}}function lf(e,t,r){try{return e.setItem(t,r),!0}catch{}}function qm(e,t){try{e.removeItem(t)}catch{}}function uf(e,t){return lf(e,Um,t.toString())}function cf(e){return parseInt(sf(e,Um))||0}const Ks={local:!0,session:!0},Km={local:new Set,session:new Set};let ff=!1;function uk(e){ff=e}let Xs=typeof window>"u"?{}:window;function Xm(e){const t=e+"Storage";try{if(Xs&&Xs[t]&&typeof Xs[t].length=="number")return Xs[t]}catch{}Ks[e]=!1}function Zm(e,t){const r=Xm(e);if(!r)return;const n=sf(r,Ym);if(n!==Hm){if(n){const s=cf(r);for(let u=0;u<s;u++)qm(r,la+u.toString())}lf(r,Ym,Hm),uf(r,0);return}const i=Math.floor(Date.now()/Gm)-lk,o=s=>{const u=la+s.toString(),l=sf(r,u);if(typeof l=="string"){try{const c=JSON.parse(l);if(typeof c=="object"&&typeof c.cached=="number"&&c.cached>i&&typeof c.provider=="string"&&typeof c.data=="object"&&typeof c.data.prefix=="string"&&t(c,s))return!0}catch{}qm(r,u)}};let a=cf(r);for(let s=a-1;s>=0;s--)o(s)||(s===a-1?(a--,uf(r,a)):Km[e].add(s))}function Qm(){if(!ff){uk(!0);for(const e in Ks)Zm(e,t=>{const r=t.data,n=t.provider,i=r.prefix,o=jn(n,i);if(!Jc(o,r).length)return!1;const a=r.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,a):a,!0})}}function ck(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Ks)Zm(n,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function fk(e,t){ff||Qm();function r(n){let i;if(!Ks[n]||!(i=Xm(n)))return;const o=Km[n];let a;if(o.size)o.delete(a=Array.from(o).shift());else if(a=cf(i),!uf(i,a+1))return;const s={cached:Math.floor(Date.now()/Gm),provider:e.provider,data:t};return lf(i,la+a.toString(),JSON.stringify(s))}t.lastModified&&!ck(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function Jm(){}function dk(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ek(e)}))}function hk(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,i=e.iconsToLoad;delete e.iconsToLoad;let o;if(!i||!(o=tf(r)))return;o.prepare(r,n,i).forEach(s=>{sk(r,s,u=>{if(typeof u!="object")s.icons.forEach(l=>{e.missing.add(l)});else try{const l=Jc(e,u);if(!l.length)return;const c=e.pendingIcons;c&&l.forEach(f=>{c.delete(f)}),fk(e,u)}catch(l){console.error(l)}dk(e)})})}))}const pk=(e,t)=>{const r=nk(e,!0,jm()),n=JT(r);if(!n.pending.length){let u=!0;return t&&setTimeout(()=>{u&&t(n.loaded,n.missing,n.pending,Jm)}),()=>{u=!1}}const i=Object.create(null),o=[];let a,s;return n.pending.forEach(u=>{const{provider:l,prefix:c}=u;if(c===s&&l===a)return;a=l,s=c,o.push(jn(l,c));const f=i[l]||(i[l]=Object.create(null));f[c]||(f[c]=[])}),n.pending.forEach(u=>{const{provider:l,prefix:c,name:f}=u,d=jn(l,c),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),i[l][c].push(f))}),o.forEach(u=>{const{provider:l,prefix:c}=u;i[l][c].length&&hk(u,i[l][c])}),t?rk(t,n,o):Jm};function gk(e,t){const r={...e};for(const n in t){const i=t[n],o=typeof i;n in Lm?(i===null||i&&(o==="string"||o==="number"))&&(r[n]=i):o===typeof r[n]&&(r[n]=n==="rotate"?i%4:i)}return r}const mk=/[\s,]+/;function vk(e,t){t.split(mk).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function yk(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(r===""){const i=parseInt(e);return isNaN(i)?0:n(i)}else if(r!==e){let i=0;switch(r){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(e.slice(0,e.length-r.length));return isNaN(o)?0:(o=o/i,o%1===0?n(o):0)}}return t}function bk(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function xk(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function wk(e){return"data:image/svg+xml,"+xk(e)}function Ck(e){return'url("'+wk(e)+'")'}let ua;function Sk(){try{ua=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{ua=null}}function Ek(e){return ua===void 0&&Sk(),ua?ua.createHTML(e):e}const ev={...Rm,inline:!1},Tk={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},kk={display:"inline-block"},df={backgroundColor:"currentColor"},tv={backgroundColor:"transparent"},rv={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},nv={WebkitMask:df,mask:df,background:tv};for(const e in nv){const t=nv[e];for(const r in rv)t[e+r]=rv[r]}const _k={...ev,inline:!0};function iv(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ok=(e,t,r,n)=>{const i=r?_k:ev,o=gk(i,t),a=t.mode||"svg",s={},u=t.style||{},l={...a==="svg"?Tk:{},ref:n};for(let x in t){const b=t[x];if(b!==void 0)switch(x){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":o[x]=b===!0||b==="true"||b===1;break;case"flip":typeof b=="string"&&vk(o,b);break;case"color":s.color=b;break;case"rotate":typeof b=="string"?o[x]=yk(b):typeof b=="number"&&(o[x]=b);break;case"ariaHidden":case"aria-hidden":b!==!0&&b!=="true"&&delete l["aria-hidden"];break;default:i[x]===void 0&&(l[x]=b)}}const c=zT(e,o),f=c.attributes;if(o.inline&&(s.verticalAlign="-0.125em"),a==="svg"){l.style={...s,...u},Object.assign(l,f);let x=0,b=t.id;return typeof b=="string"&&(b=b.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:Ek(UT(c.body,b?()=>b+"ID"+x++:"iconifyReact"))},g.createElement("svg",l)}const{body:d,width:h,height:m}=e,p=a==="mask"||(a==="bg"?!1:d.indexOf("currentColor")!==-1),v=bk(d,{...f,width:h+"",height:m+""});return l.style={...s,"--svg":Ck(v),width:iv(f.width),height:iv(f.height),...kk,...p?df:tv,...u},g.createElement("span",l)};if(jm(!0),YT("",QT),typeof document<"u"&&typeof window<"u"){Qm();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!LT(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const i=t[r];if(typeof i!="object"||!i||i.resources===void 0)continue;GT(r,i)||console.error(n)}catch{console.error(n)}}}}class ov extends g.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const r=this.state,n=this.props.icon;if(typeof n=="object"&&n!==null&&typeof n.body=="string"){this._icon="",this._abortLoading(),(t||r.icon===null)&&this._setData({data:n});return}let i;if(typeof n!="string"||(i=Us(n,!1,!0))===null){this._abortLoading(),this._setData(null);return}const o=FT(i);if(!o){(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),o!==null&&(this._loading={name:n,abort:pk([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==n||r.icon===null){this._abortLoading(),this._icon=n;const a=["iconify"];i.prefix!==""&&a.push("iconify--"+i.prefix),i.provider!==""&&a.push("iconify--"+i.provider),this._setData({data:o,classes:a}),this.props.onLoad&&this.props.onLoad(n)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,r=this.state.icon;if(r===null)return t.children?t.children:g.createElement("span",{});let n=t;return r.classes&&(n={...t,className:(typeof t.className=="string"?t.className+" ":"")+r.classes.join(" ")}),Ok({...Xc,...r.data},n,t._inline,t._ref)}}const Mk=g.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!1};return g.createElement(ov,n)});g.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!0};return g.createElement(ov,n)});const Ft=g.forwardRef(({icon:e,width:t=20,sx:r,...n},i)=>y.jsx(P.Box,{ref:i,component:Mk,icon:e,sx:{width:t,height:t,...r},...n}));Ft.displayName="Iconify";const Pk=()=>{const e=An(),t=e.palette.mode==="light";return y.jsx(P.GlobalStyles,{styles:{"#root":{".SnackbarContent-root":{width:"100%",padding:e.spacing(1),margin:e.spacing(.25,0),boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,color:t?e.palette.common.white:e.palette.grey[800],backgroundColor:t?e.palette.grey[900]:e.palette.common.white,"&.SnackbarItem-variantSuccess, &.SnackbarItem-variantError, &.SnackbarItem-variantWarning, &.SnackbarItem-variantInfo":{color:e.palette.text.primary,backgroundColor:e.palette.background.paper},[e.breakpoints.up("md")]:{minWidth:240}},".SnackbarItem-message":{padding:"0 !important",fontWeight:e.typography.fontWeightMedium},".SnackbarItem-action":{marginRight:0,color:e.palette.action.active,"& svg":{width:20,height:20}}}}})},Zs=({icon:e,color:t})=>y.jsx(P.Box,{component:"span",sx:{mr:1.5,width:40,height:40,display:"flex",borderRadius:1.5,alignItems:"center",justifyContent:"center",color:`${t}.main`,bgcolor:r=>W(r.palette[t].main,.16)},children:y.jsx(Ft,{icon:e,width:24})}),Ak=({children:e})=>{const t=g.useRef(null),r=n=>()=>{t.current.closeSnackbar(n)};return y.jsxs(y.Fragment,{children:[y.jsx(Pk,{}),y.jsx(Pm,{ref:t,dense:!0,maxSnack:5,preventDuplicate:!0,autoHideDuration:3e3,variant:"success",anchorOrigin:{vertical:"top",horizontal:"right"},iconVariant:{info:y.jsx(Zs,{icon:"eva:info-fill",color:"info"}),success:y.jsx(Zs,{icon:"eva:checkmark-circle-2-fill",color:"success"}),warning:y.jsx(Zs,{icon:"eva:alert-triangle-fill",color:"warning"}),error:y.jsx(Zs,{icon:"eva:alert-circle-fill",color:"error"})},action:n=>y.jsx(P.IconButton,{size:"small",onClick:r(n),sx:{p:.5},children:y.jsx(Ft,{icon:"eva:close-fill"})}),children:e})]})},hf=(e=!1)=>{const[t,r]=g.useState(e),n=g.useCallback(()=>r(i=>!i),[]);return[t,n,r]};function pf(){return pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pf.apply(this,arguments)}function av(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gf(e,t){return gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gf(e,t)}function Dk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gf(e,t)}var sv=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function $k(e,t){return!!(e===t||sv(e)&&sv(t))}function Ik(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!$k(e[r],t[r]))return!1;return!0}function mf(e,t){t===void 0&&(t=Ik);var r,n=[],i,o=!1;function a(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return o&&r===this&&t(s,n)||(i=e.apply(this,s),o=!0,r=this,n=s),i}return a}var Fk=typeof performance=="object"&&typeof performance.now=="function",lv=Fk?function(){return performance.now()}:function(){return Date.now()};function uv(e){cancelAnimationFrame(e.id)}function jk(e,t){var r=lv();function n(){lv()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var vf=-1;function cv(e){if(e===void 0&&(e=!1),vf===-1||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),vf=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return vf}var Mi=null;function fv(e){if(e===void 0&&(e=!1),Mi===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?Mi="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Mi="negative":Mi="positive-ascending"),document.body.removeChild(t),Mi}return Mi}process.env.NODE_ENV;var Lk=150,Rk=function(t,r){return t},Qs=null,Js=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(Qs=new WeakSet,Js=new WeakSet);function Nk(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,l=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(f){Dk(d,f);function d(m){var p;return p=f.call(this,m)||this,p._instanceProps=u(p.props,av(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:av(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=mf(function(v,x,b,C){return p.props.onItemsRendered({overscanStartIndex:v,overscanStopIndex:x,visibleStartIndex:b,visibleStopIndex:C})}),p._callOnScroll=void 0,p._callOnScroll=mf(function(v,x,b){return p.props.onScroll({scrollDirection:v,scrollOffset:x,scrollUpdateWasRequested:b})}),p._getItemStyle=void 0,p._getItemStyle=function(v){var x=p.props,b=x.direction,C=x.itemSize,E=x.layout,w=p._getItemStyleCache(l&&C,l&&E,l&&b),k;if(w.hasOwnProperty(v))k=w[v];else{var T=r(p.props,v,p._instanceProps),O=i(p.props,v,p._instanceProps),A=b==="horizontal"||E==="horizontal",L=b==="rtl",Z=A?T:0;w[v]=k={position:"absolute",left:L?void 0:Z,right:L?Z:void 0,top:A?0:T,height:A?"100%":O,width:A?O:"100%"}}return k},p._getItemStyleCache=void 0,p._getItemStyleCache=mf(function(v,x,b){return{}}),p._onScrollHorizontal=function(v){var x=v.currentTarget,b=x.clientWidth,C=x.scrollLeft,E=x.scrollWidth;p.setState(function(w){if(w.scrollOffset===C)return null;var k=p.props.direction,T=C;if(k==="rtl")switch(fv()){case"negative":T=-C;break;case"positive-descending":T=E-b-C;break}return T=Math.max(0,Math.min(T,E-b)),{isScrolling:!0,scrollDirection:w.scrollOffset<C?"forward":"backward",scrollOffset:T,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(v){var x=v.currentTarget,b=x.clientHeight,C=x.scrollHeight,E=x.scrollTop;p.setState(function(w){if(w.scrollOffset===E)return null;var k=Math.max(0,Math.min(E,C-b));return{isScrolling:!0,scrollDirection:w.scrollOffset<k?"forward":"backward",scrollOffset:k,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(v){var x=p.props.outerRef;p._outerRef=v,typeof x=="function"?x(v):x!=null&&typeof x=="object"&&x.hasOwnProperty("current")&&(x.current=v)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&uv(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=jk(p._resetIsScrolling,Lk)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}d.getDerivedStateFromProps=function(p,v){return Bk(p,v),c(p),null};var h=d.prototype;return h.scrollTo=function(p){p=Math.max(0,p),this.setState(function(v){return v.scrollOffset===p?null:{scrollDirection:v.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},h.scrollToItem=function(p,v){v===void 0&&(v="auto");var x=this.props,b=x.itemCount,C=x.layout,E=this.state.scrollOffset;p=Math.max(0,Math.min(p,b-1));var w=0;if(this._outerRef){var k=this._outerRef;C==="vertical"?w=k.scrollWidth>k.clientWidth?cv():0:w=k.scrollHeight>k.clientHeight?cv():0}this.scrollTo(o(this.props,p,v,E,this._instanceProps,w))},h.componentDidMount=function(){var p=this.props,v=p.direction,x=p.initialScrollOffset,b=p.layout;if(typeof x=="number"&&this._outerRef!=null){var C=this._outerRef;v==="horizontal"||b==="horizontal"?C.scrollLeft=x:C.scrollTop=x}this._callPropsCallbacks()},h.componentDidUpdate=function(){var p=this.props,v=p.direction,x=p.layout,b=this.state,C=b.scrollOffset,E=b.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var w=this._outerRef;if(v==="horizontal"||x==="horizontal")if(v==="rtl")switch(fv()){case"negative":w.scrollLeft=-C;break;case"positive-ascending":w.scrollLeft=C;break;default:var k=w.clientWidth,T=w.scrollWidth;w.scrollLeft=T-k-C;break}else w.scrollLeft=C;else w.scrollTop=C}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&uv(this._resetIsScrollingTimeoutId)},h.render=function(){var p=this.props,v=p.children,x=p.className,b=p.direction,C=p.height,E=p.innerRef,w=p.innerElementType,k=p.innerTagName,T=p.itemCount,O=p.itemData,A=p.itemKey,L=A===void 0?Rk:A,Z=p.layout,pe=p.outerElementType,se=p.outerTagName,q=p.style,G=p.useIsScrolling,me=p.width,Ee=this.state.isScrolling,Ie=b==="horizontal"||Z==="horizontal",_e=Ie?this._onScrollHorizontal:this._onScrollVertical,$=this._getRangeToRender(),j=$[0],X=$[1],te=[];if(T>0)for(var H=j;H<=X;H++)te.push(g.createElement(v,{data:O,key:L(H,O),index:H,isScrolling:G?Ee:void 0,style:this._getItemStyle(H)}));var fe=n(this.props,this._instanceProps);return g.createElement(pe||se||"div",{className:x,onScroll:_e,ref:this._outerRefSetter,style:pf({position:"relative",height:C,width:me,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},q)},g.createElement(w||k||"div",{children:te,ref:E,style:{height:Ie?"100%":fe,pointerEvents:Ee?"none":void 0,width:Ie?fe:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var v=this._getRangeToRender(),x=v[0],b=v[1],C=v[2],E=v[3];this._callOnItemsRendered(x,b,C,E)}}if(typeof this.props.onScroll=="function"){var w=this.state,k=w.scrollDirection,T=w.scrollOffset,O=w.scrollUpdateWasRequested;this._callOnScroll(k,T,O)}},h._getRangeToRender=function(){var p=this.props,v=p.itemCount,x=p.overscanCount,b=this.state,C=b.isScrolling,E=b.scrollDirection,w=b.scrollOffset;if(v===0)return[0,0,0,0];var k=a(this.props,w,this._instanceProps),T=s(this.props,k,w,this._instanceProps),O=!C||E==="backward"?Math.max(1,x):1,A=!C||E==="forward"?Math.max(1,x):1;return[Math.max(0,k-O),Math.max(0,Math.min(v-1,T+A)),k,T]},d}(g.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Bk=function(t,r){var n=t.children,i=t.direction,o=t.height,a=t.layout,s=t.innerTagName,u=t.outerTagName,l=t.width,c=r.instance;if(process.env.NODE_ENV!=="production"){(s!=null||u!=null)&&Js&&!Js.has(c)&&(Js.add(c),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var f=i==="horizontal"||a==="horizontal";switch(i){case"horizontal":case"vertical":Qs&&!Qs.has(c)&&(Qs.add(c),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(a){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+a+'" was specified.'))}if(n==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(n===null?"null":typeof n)+'" was specified.'));if(f&&typeof l!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(l===null?"null":typeof l)+'" was specified.'));if(!f&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},zk=50,Pi=function(t,r,n){var i=t,o=i.itemSize,a=n.itemMetadataMap,s=n.lastMeasuredIndex;if(r>s){var u=0;if(s>=0){var l=a[s];u=l.offset+l.size}for(var c=s+1;c<=r;c++){var f=o(c);a[c]={offset:u,size:f},u+=f}n.lastMeasuredIndex=r}return a[r]},Vk=function(t,r,n){var i=r.itemMetadataMap,o=r.lastMeasuredIndex,a=o>0?i[o].offset:0;return a>=n?dv(t,r,o,0,n):Wk(t,r,Math.max(0,o),n)},dv=function(t,r,n,i,o){for(;i<=n;){var a=i+Math.floor((n-i)/2),s=Pi(t,a,r).offset;if(s===o)return a;s<o?i=a+1:s>o&&(n=a-1)}return i>0?i-1:0},Wk=function(t,r,n,i){for(var o=t.itemCount,a=1;n<o&&Pi(t,n,r).offset<i;)n+=a,a*=2;return dv(t,r,Math.min(n,o-1),Math.floor(n/2),i)},hv=function(t,r){var n=t.itemCount,i=r.itemMetadataMap,o=r.estimatedItemSize,a=r.lastMeasuredIndex,s=0;if(a>=n&&(a=n-1),a>=0){var u=i[a];s=u.offset+u.size}var l=n-a-1,c=l*o;return s+c},Hk=Nk({getItemOffset:function(t,r,n){return Pi(t,r,n).offset},getItemSize:function(t,r,n){return n.itemMetadataMap[r].size},getEstimatedTotalSize:hv,getOffsetForIndexAndAlignment:function(t,r,n,i,o,a){var s=t.direction,u=t.height,l=t.layout,c=t.width,f=s==="horizontal"||l==="horizontal",d=f?c:u,h=Pi(t,r,o),m=hv(t,o),p=Math.max(0,Math.min(m-d,h.offset)),v=Math.max(0,h.offset-d+h.size+a);switch(n==="smart"&&(i>=v-d&&i<=p+d?n="auto":n="center"),n){case"start":return p;case"end":return v;case"center":return Math.round(v+(p-v)/2);case"auto":default:return i>=v&&i<=p?i:i<v?v:p}},getStartIndexForOffset:function(t,r,n){return Vk(t,n,r)},getStopIndexForStartIndex:function(t,r,n,i){for(var o=t.direction,a=t.height,s=t.itemCount,u=t.layout,l=t.width,c=o==="horizontal"||u==="horizontal",f=c?l:a,d=Pi(t,r,i),h=n+f,m=d.offset+d.size,p=r;p<s-1&&m<h;)p++,m+=Pi(t,p,i).size;return p},initInstanceProps:function(t,r){var n=t,i=n.estimatedItemSize,o={itemMetadataMap:{},estimatedItemSize:i||zk,lastMeasuredIndex:-1};return r.resetAfterIndex=function(a,s){s===void 0&&(s=!0),o.lastMeasuredIndex=Math.min(o.lastMeasuredIndex,a-1),r._getItemStyleCache(-1),s&&r.forceUpdate()},o},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var r=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof r!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(r===null?"null":typeof r)+'" was specified.'))}});const pv=8,Uk=e=>{const{data:t,index:r,style:n}=e,i=t[r],{showValueInLabel:o,...a}=i[0],s={...n,top:n.top+pv,paddingTop:8};return Object.prototype.hasOwnProperty.call(i,"group")?y.jsx(P.ListSubheader,{component:"div",style:s,children:i.group},i.key):y.jsx(P.Typography,{component:"li",...a,noWrap:!0,style:s,children:y.jsxs(P.Stack,{component:"div",direction:"row",flex:1,justifyContent:"space-between",children:[i[1].label,o&&y.jsxs(P.Typography,{variant:"inherit",color:"grey.400",children:["(",i[1].value,")"]})]})})},gv=g.createContext({}),mv=g.forwardRef((e,t)=>{const r=g.useContext(gv);return y.jsx("div",{ref:t,...e,...r})});mv.displayName="OuterElementType";const Yk=e=>{const t=g.useRef(null);return g.useEffect(()=>{t.current!=null&&t.current.resetAfterIndex(0,!0)},[e]),t},Gk=g.forwardRef(function(t,r){const{children:n,...i}=t,o=[];n.forEach(h=>{o.push(h),o.push(...h.children||[])});const a=P.useTheme(),s=P.useMediaQuery(a.breakpoints.up("sm")),u=o.length,l=s?36:48,c=h=>Object.prototype.hasOwnProperty.call(h,"group")?48:l,f=()=>u>8?8*l:o.map(c).reduce((h,m)=>h+m,0),d=Yk(u);return y.jsx("div",{ref:r,children:y.jsx(gv.Provider,{value:i,children:y.jsx(Hk,{itemData:o,height:f()+2*pv,width:"100%",ref:d,outerElementType:mv,innerElementType:"ul",itemSize:h=>c(o[h]),overscanCount:5,itemCount:u,children:Uk})})})}),qk=P.styled(P.Popper)({[`& .${P.autocompleteClasses.listbox}`]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}}),yf=g.forwardRef(({label:e,value:t,options:r=[],loading:n,noOptionsText:i="Nenhuma opção disponível",loadingText:o="Carregando opções...",error:a,helperText:s,placeholder:u,onChange:l,groupBy:c,showValueInLabel:f,disabled:d,multiple:h,required:m,renderOption:p,...v},x)=>{const b=O=>O&&typeof O=="object"?O.value.toString():O.toString(),[C,E,w]=hf(),k=O=>{O.type!=="change"&&E()},T=g.useMemo(()=>h?(Array.isArray(t)?t:[]).reduce((L,Z)=>{const pe=r.find(se=>se.value.toString()===Z.toString());return pe?[...L,pe]:[...L]},[]):r.find(A=>A.value.toString()===(t==null?void 0:t.toString()))||null,[r,t,h]);return y.jsx(P.Autocomplete,{ref:x,value:T,open:C,onClose:E,onOpen:k,onInputChange:(O,A,L)=>{L==="input"&&w(!0),!n&&!T&&l(h?[]:null)},options:r,loading:n,noOptionsText:i,loadingText:o,disabled:n||d,disableListWrap:!0,PopperComponent:qk,ListboxComponent:p?void 0:Gk,filterOptions:(O,A)=>O.filter(L=>`${L.value} ${L.label}`.toLocaleUpperCase().includes(A.inputValue.toLocaleUpperCase())),onChange:(O,A)=>{if(!A){l(h?[]:null);return}if(Array.isArray(A)){l(A.map(b));return}l(typeof A=="string"?A.toString():A.value.toString())},renderOption:(O,A,L,Z)=>p?p(O,A,L,Z):[{...O,showValueInLabel:f},A],renderGroup:O=>O,groupBy:c,multiple:h,renderInput:O=>y.jsx(P.TextField,{...O,placeholder:u,fullWidth:!0,error:!!a,helperText:s,label:e,required:m,InputProps:{...O.InputProps,endAdornment:y.jsxs(y.Fragment,{children:[n?y.jsx(P.CircularProgress,{color:"primary",size:20}):null,O.InputProps.endAdornment]})}}),...v})});yf.displayName="Autocomplete";var fr={},ca={},Kk=typeof To=="object"&&To&&To.Object===Object&&To,vv=Kk,Xk=vv,Zk=typeof self=="object"&&self&&self.Object===Object&&self,Qk=Xk||Zk||Function("return this")(),Mr=Qk,Jk=Mr,e_=Jk.Symbol,fa=e_,yv=fa,bv=Object.prototype,t_=bv.hasOwnProperty,r_=bv.toString,da=yv?yv.toStringTag:void 0;function n_(e){var t=t_.call(e,da),r=e[da];try{e[da]=void 0;var n=!0}catch{}var i=r_.call(e);return n&&(t?e[da]=r:delete e[da]),i}var i_=n_,o_=Object.prototype,a_=o_.toString;function s_(e){return a_.call(e)}var l_=s_,xv=fa,u_=i_,c_=l_,f_="[object Null]",d_="[object Undefined]",wv=xv?xv.toStringTag:void 0;function h_(e){return e==null?e===void 0?d_:f_:wv&&wv in Object(e)?u_(e):c_(e)}var Ln=h_,p_=Array.isArray,vr=p_;function g_(e){return e!=null&&typeof e=="object"}var Yr=g_,m_=Ln,v_=vr,y_=Yr,b_="[object String]";function x_(e){return typeof e=="string"||!v_(e)&&y_(e)&&m_(e)==b_}var w_=x_;function C_(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var u=a[e?s:++i];if(r(o[u],u,o)===!1)break}return t}}var S_=C_,E_=S_,T_=E_(),k_=T_;function __(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var O_=__,M_=Ln,P_=Yr,A_="[object Arguments]";function D_(e){return P_(e)&&M_(e)==A_}var $_=D_,Cv=$_,I_=Yr,Sv=Object.prototype,F_=Sv.hasOwnProperty,j_=Sv.propertyIsEnumerable,L_=Cv(function(){return arguments}())?Cv:function(e){return I_(e)&&F_.call(e,"callee")&&!j_.call(e,"callee")},Ev=L_,el={exports:{}};function R_(){return!1}var N_=R_;el.exports,function(e,t){var r=Mr,n=N_,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;e.exports=l}(el,el.exports);var bf=el.exports,B_=9007199254740991,z_=/^(?:0|[1-9]\d*)$/;function V_(e,t){var r=typeof e;return t=t??B_,!!t&&(r=="number"||r!="symbol"&&z_.test(e))&&e>-1&&e%1==0&&e<t}var Tv=V_,W_=9007199254740991;function H_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=W_}var xf=H_,U_=Ln,Y_=xf,G_=Yr,q_="[object Arguments]",K_="[object Array]",X_="[object Boolean]",Z_="[object Date]",Q_="[object Error]",J_="[object Function]",eO="[object Map]",tO="[object Number]",rO="[object Object]",nO="[object RegExp]",iO="[object Set]",oO="[object String]",aO="[object WeakMap]",sO="[object ArrayBuffer]",lO="[object DataView]",uO="[object Float32Array]",cO="[object Float64Array]",fO="[object Int8Array]",dO="[object Int16Array]",hO="[object Int32Array]",pO="[object Uint8Array]",gO="[object Uint8ClampedArray]",mO="[object Uint16Array]",vO="[object Uint32Array]",ut={};ut[uO]=ut[cO]=ut[fO]=ut[dO]=ut[hO]=ut[pO]=ut[gO]=ut[mO]=ut[vO]=!0,ut[q_]=ut[K_]=ut[sO]=ut[X_]=ut[lO]=ut[Z_]=ut[Q_]=ut[J_]=ut[eO]=ut[tO]=ut[rO]=ut[nO]=ut[iO]=ut[oO]=ut[aO]=!1;function yO(e){return G_(e)&&Y_(e.length)&&!!ut[U_(e)]}var bO=yO;function xO(e){return function(t){return e(t)}}var wf=xO,tl={exports:{}};tl.exports,function(e,t){var r=vv,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(tl,tl.exports);var Cf=tl.exports,wO=bO,CO=wf,kv=Cf,_v=kv&&kv.isTypedArray,SO=_v?CO(_v):wO,Ov=SO,EO=O_,TO=Ev,kO=vr,_O=bf,OO=Tv,MO=Ov,PO=Object.prototype,AO=PO.hasOwnProperty;function DO(e,t){var r=kO(e),n=!r&&TO(e),i=!r&&!n&&_O(e),o=!r&&!n&&!i&&MO(e),a=r||n||i||o,s=a?EO(e.length,String):[],u=s.length;for(var l in e)(t||AO.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||OO(l,u)))&&s.push(l);return s}var Mv=DO,$O=Object.prototype;function IO(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||$O;return e===r}var Sf=IO;function FO(e,t){return function(r){return e(t(r))}}var Pv=FO,jO=Pv,LO=jO(Object.keys,Object),RO=LO,NO=Sf,BO=RO,zO=Object.prototype,VO=zO.hasOwnProperty;function WO(e){if(!NO(e))return BO(e);var t=[];for(var r in Object(e))VO.call(e,r)&&r!="constructor"&&t.push(r);return t}var HO=WO;function UO(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ai=UO,YO=Ln,GO=Ai,qO="[object AsyncFunction]",KO="[object Function]",XO="[object GeneratorFunction]",ZO="[object Proxy]";function QO(e){if(!GO(e))return!1;var t=YO(e);return t==KO||t==XO||t==qO||t==ZO}var Av=QO,JO=Av,e7=xf;function t7(e){return e!=null&&e7(e.length)&&!JO(e)}var rl=t7,r7=Mv,n7=HO,i7=rl;function o7(e){return i7(e)?r7(e):n7(e)}var ha=o7,a7=k_,s7=ha;function l7(e,t){return e&&a7(e,t,s7)}var Dv=l7;function u7(e){return e}var $v=u7,c7=$v;function f7(e){return typeof e=="function"?e:c7}var d7=f7,h7=Dv,p7=d7;function g7(e,t){return e&&h7(e,p7(t))}var Ef=g7,m7=Pv,v7=m7(Object.getPrototypeOf,Object),Tf=v7,y7=Ln,b7=Tf,x7=Yr,w7="[object Object]",C7=Function.prototype,S7=Object.prototype,Iv=C7.toString,E7=S7.hasOwnProperty,T7=Iv.call(Object);function k7(e){if(!x7(e)||y7(e)!=w7)return!1;var t=b7(e);if(t===null)return!0;var r=E7.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Iv.call(r)==T7}var _7=k7;function O7(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Fv=O7;function M7(){this.__data__=[],this.size=0}var P7=M7;function A7(e,t){return e===t||e!==e&&t!==t}var kf=A7,D7=kf;function $7(e,t){for(var r=e.length;r--;)if(D7(e[r][0],t))return r;return-1}var nl=$7,I7=nl,F7=Array.prototype,j7=F7.splice;function L7(e){var t=this.__data__,r=I7(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():j7.call(t,r,1),--this.size,!0}var R7=L7,N7=nl;function B7(e){var t=this.__data__,r=N7(t,e);return r<0?void 0:t[r][1]}var z7=B7,V7=nl;function W7(e){return V7(this.__data__,e)>-1}var H7=W7,U7=nl;function Y7(e,t){var r=this.__data__,n=U7(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var G7=Y7,q7=P7,K7=R7,X7=z7,Z7=H7,Q7=G7;function Di(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Di.prototype.clear=q7,Di.prototype.delete=K7,Di.prototype.get=X7,Di.prototype.has=Z7,Di.prototype.set=Q7;var il=Di,J7=il;function e6(){this.__data__=new J7,this.size=0}var t6=e6;function r6(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var n6=r6;function i6(e){return this.__data__.get(e)}var o6=i6;function a6(e){return this.__data__.has(e)}var s6=a6,l6=Mr,u6=l6["__core-js_shared__"],c6=u6,_f=c6,jv=function(){var e=/[^.]+$/.exec(_f&&_f.keys&&_f.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function f6(e){return!!jv&&jv in e}var d6=f6,h6=Function.prototype,p6=h6.toString;function g6(e){if(e!=null){try{return p6.call(e)}catch{}try{return e+""}catch{}}return""}var Lv=g6,m6=Av,v6=d6,y6=Ai,b6=Lv,x6=/[\\^$.*+?()[\]{}|]/g,w6=/^\[object .+?Constructor\]$/,C6=Function.prototype,S6=Object.prototype,E6=C6.toString,T6=S6.hasOwnProperty,k6=RegExp("^"+E6.call(T6).replace(x6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _6(e){if(!y6(e)||v6(e))return!1;var t=m6(e)?k6:w6;return t.test(b6(e))}var O6=_6;function M6(e,t){return e==null?void 0:e[t]}var P6=M6,A6=O6,D6=P6;function $6(e,t){var r=D6(e,t);return A6(r)?r:void 0}var Rn=$6,I6=Rn,F6=Mr,j6=I6(F6,"Map"),Of=j6,L6=Rn,R6=L6(Object,"create"),ol=R6,Rv=ol;function N6(){this.__data__=Rv?Rv(null):{},this.size=0}var B6=N6;function z6(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var V6=z6,W6=ol,H6="__lodash_hash_undefined__",U6=Object.prototype,Y6=U6.hasOwnProperty;function G6(e){var t=this.__data__;if(W6){var r=t[e];return r===H6?void 0:r}return Y6.call(t,e)?t[e]:void 0}var q6=G6,K6=ol,X6=Object.prototype,Z6=X6.hasOwnProperty;function Q6(e){var t=this.__data__;return K6?t[e]!==void 0:Z6.call(t,e)}var J6=Q6,eM=ol,tM="__lodash_hash_undefined__";function rM(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eM&&t===void 0?tM:t,this}var nM=rM,iM=B6,oM=V6,aM=q6,sM=J6,lM=nM;function $i(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$i.prototype.clear=iM,$i.prototype.delete=oM,$i.prototype.get=aM,$i.prototype.has=sM,$i.prototype.set=lM;var uM=$i,Nv=uM,cM=il,fM=Of;function dM(){this.size=0,this.__data__={hash:new Nv,map:new(fM||cM),string:new Nv}}var hM=dM;function pM(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var gM=pM,mM=gM;function vM(e,t){var r=e.__data__;return mM(t)?r[typeof t=="string"?"string":"hash"]:r.map}var al=vM,yM=al;function bM(e){var t=yM(this,e).delete(e);return this.size-=t?1:0,t}var xM=bM,wM=al;function CM(e){return wM(this,e).get(e)}var SM=CM,EM=al;function TM(e){return EM(this,e).has(e)}var kM=TM,_M=al;function OM(e,t){var r=_M(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var MM=OM,PM=hM,AM=xM,DM=SM,$M=kM,IM=MM;function Ii(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ii.prototype.clear=PM,Ii.prototype.delete=AM,Ii.prototype.get=DM,Ii.prototype.has=$M,Ii.prototype.set=IM;var Mf=Ii,FM=il,jM=Of,LM=Mf,RM=200;function NM(e,t){var r=this.__data__;if(r instanceof FM){var n=r.__data__;if(!jM||n.length<RM-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new LM(n)}return r.set(e,t),this.size=r.size,this}var BM=NM,zM=il,VM=t6,WM=n6,HM=o6,UM=s6,YM=BM;function Fi(e){var t=this.__data__=new zM(e);this.size=t.size}Fi.prototype.clear=VM,Fi.prototype.delete=WM,Fi.prototype.get=HM,Fi.prototype.has=UM,Fi.prototype.set=YM;var Pf=Fi,GM="__lodash_hash_undefined__";function qM(e){return this.__data__.set(e,GM),this}var KM=qM;function XM(e){return this.__data__.has(e)}var ZM=XM,QM=Mf,JM=KM,e9=ZM;function sl(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new QM;++t<r;)this.add(e[t])}sl.prototype.add=sl.prototype.push=JM,sl.prototype.has=e9;var t9=sl;function r9(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var n9=r9;function i9(e,t){return e.has(t)}var o9=i9,a9=t9,s9=n9,l9=o9,u9=1,c9=2;function f9(e,t,r,n,i,o){var a=r&u9,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,h=r&c9?new a9:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var m=e[f],p=t[f];if(n)var v=a?n(p,m,f,t,e,o):n(m,p,f,e,t,o);if(v!==void 0){if(v)continue;d=!1;break}if(h){if(!s9(t,function(x,b){if(!l9(h,b)&&(m===x||i(m,x,r,n,o)))return h.push(b)})){d=!1;break}}else if(!(m===p||i(m,p,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}var Bv=f9,d9=Mr,h9=d9.Uint8Array,zv=h9;function p9(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var g9=p9;function m9(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var v9=m9,Vv=fa,Wv=zv,y9=kf,b9=Bv,x9=g9,w9=v9,C9=1,S9=2,E9="[object Boolean]",T9="[object Date]",k9="[object Error]",_9="[object Map]",O9="[object Number]",M9="[object RegExp]",P9="[object Set]",A9="[object String]",D9="[object Symbol]",$9="[object ArrayBuffer]",I9="[object DataView]",Hv=Vv?Vv.prototype:void 0,Af=Hv?Hv.valueOf:void 0;function F9(e,t,r,n,i,o,a){switch(r){case I9:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case $9:return!(e.byteLength!=t.byteLength||!o(new Wv(e),new Wv(t)));case E9:case T9:case O9:return y9(+e,+t);case k9:return e.name==t.name&&e.message==t.message;case M9:case A9:return e==t+"";case _9:var s=x9;case P9:var u=n&C9;if(s||(s=w9),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;n|=S9,a.set(e,t);var c=b9(s(e),s(t),n,i,o,a);return a.delete(e),c;case D9:if(Af)return Af.call(e)==Af.call(t)}return!1}var j9=F9;function L9(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Uv=L9,R9=Uv,N9=vr;function B9(e,t,r){var n=t(e);return N9(e)?n:R9(n,r(e))}var Yv=B9;function z9(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}var V9=z9;function W9(){return[]}var Gv=W9,H9=V9,U9=Gv,Y9=Object.prototype,G9=Y9.propertyIsEnumerable,qv=Object.getOwnPropertySymbols,q9=qv?function(e){return e==null?[]:(e=Object(e),H9(qv(e),function(t){return G9.call(e,t)}))}:U9,Df=q9,K9=Yv,X9=Df,Z9=ha;function Q9(e){return K9(e,Z9,X9)}var Kv=Q9,Xv=Kv,J9=1,e8=Object.prototype,t8=e8.hasOwnProperty;function r8(e,t,r,n,i,o){var a=r&J9,s=Xv(e),u=s.length,l=Xv(t),c=l.length;if(u!=c&&!a)return!1;for(var f=u;f--;){var d=s[f];if(!(a?d in t:t8.call(t,d)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var p=!0;o.set(e,t),o.set(t,e);for(var v=a;++f<u;){d=s[f];var x=e[d],b=t[d];if(n)var C=a?n(b,x,d,t,e,o):n(x,b,d,e,t,o);if(!(C===void 0?x===b||i(x,b,r,n,o):C)){p=!1;break}v||(v=d=="constructor")}if(p&&!v){var E=e.constructor,w=t.constructor;E!=w&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof w=="function"&&w instanceof w)&&(p=!1)}return o.delete(e),o.delete(t),p}var n8=r8,i8=Rn,o8=Mr,a8=i8(o8,"DataView"),s8=a8,l8=Rn,u8=Mr,c8=l8(u8,"Promise"),f8=c8,d8=Rn,h8=Mr,p8=d8(h8,"Set"),g8=p8,m8=Rn,v8=Mr,y8=m8(v8,"WeakMap"),b8=y8,$f=s8,If=Of,Ff=f8,jf=g8,Lf=b8,Zv=Ln,ji=Lv,Qv="[object Map]",x8="[object Object]",Jv="[object Promise]",e1="[object Set]",t1="[object WeakMap]",r1="[object DataView]",w8=ji($f),C8=ji(If),S8=ji(Ff),E8=ji(jf),T8=ji(Lf),Nn=Zv;($f&&Nn(new $f(new ArrayBuffer(1)))!=r1||If&&Nn(new If)!=Qv||Ff&&Nn(Ff.resolve())!=Jv||jf&&Nn(new jf)!=e1||Lf&&Nn(new Lf)!=t1)&&(Nn=function(e){var t=Zv(e),r=t==x8?e.constructor:void 0,n=r?ji(r):"";if(n)switch(n){case w8:return r1;case C8:return Qv;case S8:return Jv;case E8:return e1;case T8:return t1}return t});var ll=Nn,Rf=Pf,k8=Bv,_8=j9,O8=n8,n1=ll,i1=vr,o1=bf,M8=Ov,P8=1,a1="[object Arguments]",s1="[object Array]",ul="[object Object]",A8=Object.prototype,l1=A8.hasOwnProperty;function D8(e,t,r,n,i,o){var a=i1(e),s=i1(t),u=a?s1:n1(e),l=s?s1:n1(t);u=u==a1?ul:u,l=l==a1?ul:l;var c=u==ul,f=l==ul,d=u==l;if(d&&o1(e)){if(!o1(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Rf),a||M8(e)?k8(e,t,r,n,i,o):_8(e,t,u,r,n,i,o);if(!(r&P8)){var h=c&&l1.call(e,"__wrapped__"),m=f&&l1.call(t,"__wrapped__");if(h||m){var p=h?e.value():e,v=m?t.value():t;return o||(o=new Rf),i(p,v,r,n,o)}}return d?(o||(o=new Rf),O8(e,t,r,n,i,o)):!1}var $8=D8,I8=$8,u1=Yr;function c1(e,t,r,n,i){return e===t?!0:e==null||t==null||!u1(e)&&!u1(t)?e!==e&&t!==t:I8(e,t,r,n,c1,i)}var Nf=c1,F8=Pf,j8=Nf,L8=1,R8=2;function N8(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=r[i];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===void 0&&!(u in e))return!1}else{var f=new F8;if(n)var d=n(l,c,u,e,t,f);if(!(d===void 0?j8(c,l,L8|R8,n,f):d))return!1}}return!0}var B8=N8,z8=Ai;function V8(e){return e===e&&!z8(e)}var f1=V8,W8=f1,H8=ha;function U8(e){for(var t=H8(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,W8(i)]}return t}var Y8=U8;function G8(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var d1=G8,q8=B8,K8=Y8,X8=d1;function Z8(e){var t=K8(e);return t.length==1&&t[0][2]?X8(t[0][0],t[0][1]):function(r){return r===e||q8(r,e,t)}}var Q8=Z8,J8=Ln,eP=Yr,tP="[object Symbol]";function rP(e){return typeof e=="symbol"||eP(e)&&J8(e)==tP}var Bf=rP,nP=vr,iP=Bf,oP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aP=/^\w*$/;function sP(e,t){if(nP(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||iP(e)?!0:aP.test(e)||!oP.test(e)||t!=null&&e in Object(t)}var zf=sP,h1=Mf,lP="Expected a function";function Vf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(lP);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Vf.Cache||h1),r}Vf.Cache=h1;var uP=Vf,cP=uP,fP=500;function dP(e){var t=cP(e,function(n){return r.size===fP&&r.clear(),n}),r=t.cache;return t}var hP=dP,pP=hP,gP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mP=/\\(\\)?/g,vP=pP(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(gP,function(r,n,i,o){t.push(i?o.replace(mP,"$1"):n||r)}),t}),yP=vP,p1=fa,bP=Fv,xP=vr,wP=Bf,CP=1/0,g1=p1?p1.prototype:void 0,m1=g1?g1.toString:void 0;function v1(e){if(typeof e=="string")return e;if(xP(e))return bP(e,v1)+"";if(wP(e))return m1?m1.call(e):"";var t=e+"";return t=="0"&&1/e==-CP?"-0":t}var SP=v1,EP=SP;function TP(e){return e==null?"":EP(e)}var kP=TP,_P=vr,OP=zf,MP=yP,PP=kP;function AP(e,t){return _P(e)?e:OP(e,t)?[e]:MP(PP(e))}var y1=AP,DP=Bf,$P=1/0;function IP(e){if(typeof e=="string"||DP(e))return e;var t=e+"";return t=="0"&&1/e==-$P?"-0":t}var cl=IP,FP=y1,jP=cl;function LP(e,t){t=FP(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[jP(t[r++])];return r&&r==n?e:void 0}var b1=LP,RP=b1;function NP(e,t,r){var n=e==null?void 0:RP(e,t);return n===void 0?r:n}var BP=NP;function zP(e,t){return e!=null&&t in Object(e)}var VP=zP,WP=y1,HP=Ev,UP=vr,YP=Tv,GP=xf,qP=cl;function KP(e,t,r){t=WP(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=qP(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&GP(i)&&YP(a,i)&&(UP(e)||HP(e)))}var XP=KP,ZP=VP,QP=XP;function JP(e,t){return e!=null&&QP(e,t,ZP)}var eA=JP,tA=Nf,rA=BP,nA=eA,iA=zf,oA=f1,aA=d1,sA=cl,lA=1,uA=2;function cA(e,t){return iA(e)&&oA(t)?aA(sA(e),t):function(r){var n=rA(r,e);return n===void 0&&n===t?nA(r,e):tA(t,n,lA|uA)}}var fA=cA;function dA(e){return function(t){return t==null?void 0:t[e]}}var hA=dA,pA=b1;function gA(e){return function(t){return pA(t,e)}}var mA=gA,vA=hA,yA=mA,bA=zf,xA=cl;function wA(e){return bA(e)?vA(xA(e)):yA(e)}var CA=wA,SA=Q8,EA=fA,TA=$v,kA=vr,_A=CA;function OA(e){return typeof e=="function"?e:e==null?TA:typeof e=="object"?kA(e)?EA(e[0],e[1]):SA(e):_A(e)}var MA=OA,PA=rl;function AA(e,t){return function(r,n){if(r==null)return r;if(!PA(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}var DA=AA,$A=Dv,IA=DA,FA=IA($A),jA=FA,LA=jA,RA=rl;function NA(e,t){var r=-1,n=RA(e)?Array(e.length):[];return LA(e,function(i,o,a){n[++r]=t(i,o,a)}),n}var BA=NA,zA=Fv,VA=MA,WA=BA,HA=vr;function UA(e,t){var r=HA(e)?zA:WA;return r(e,VA(t))}var YA=UA;Object.defineProperty(ca,"__esModule",{value:!0}),ca.flattenNames=void 0;var GA=w_,qA=fl(GA),KA=Ef,XA=fl(KA),ZA=_7,QA=fl(ZA),JA=YA,eD=fl(JA);function fl(e){return e&&e.__esModule?e:{default:e}}var tD=ca.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,eD.default)(t,function(n){Array.isArray(n)?e(n).map(function(i){return r.push(i)}):(0,QA.default)(n)?(0,XA.default)(n,function(i,o){i===!0&&r.push(o),r.push(o+"-"+i)}):(0,qA.default)(n)&&r.push(n)}),r};ca.default=tD;var pa={};function rD(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var nD=rD,iD=Rn,oD=function(){try{var e=iD(Object,"defineProperty");return e({},"",{}),e}catch{}}(),aD=oD,x1=aD;function sD(e,t,r){t=="__proto__"&&x1?x1(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var w1=sD,lD=w1,uD=kf,cD=Object.prototype,fD=cD.hasOwnProperty;function dD(e,t,r){var n=e[t];(!(fD.call(e,t)&&uD(n,r))||r===void 0&&!(t in e))&&lD(e,t,r)}var C1=dD,hD=C1,pD=w1;function gD(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),i?pD(r,s,u):hD(r,s,u)}return r}var dl=gD,mD=dl,vD=ha;function yD(e,t){return e&&mD(t,vD(t),e)}var bD=yD;function xD(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var wD=xD,CD=Ai,SD=Sf,ED=wD,TD=Object.prototype,kD=TD.hasOwnProperty;function _D(e){if(!CD(e))return ED(e);var t=SD(e),r=[];for(var n in e)n=="constructor"&&(t||!kD.call(e,n))||r.push(n);return r}var OD=_D,MD=Mv,PD=OD,AD=rl;function DD(e){return AD(e)?MD(e,!0):PD(e)}var Wf=DD,$D=dl,ID=Wf;function FD(e,t){return e&&$D(t,ID(t),e)}var jD=FD,hl={exports:{}};hl.exports,function(e,t){var r=Mr,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,d=s?s(f):new l.constructor(f);return l.copy(d),d}e.exports=u}(hl,hl.exports);var LD=hl.exports;function RD(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var ND=RD,BD=dl,zD=Df;function VD(e,t){return BD(e,zD(e),t)}var WD=VD,HD=Uv,UD=Tf,YD=Df,GD=Gv,qD=Object.getOwnPropertySymbols,KD=qD?function(e){for(var t=[];e;)HD(t,YD(e)),e=UD(e);return t}:GD,S1=KD,XD=dl,ZD=S1;function QD(e,t){return XD(e,ZD(e),t)}var JD=QD,e$=Yv,t$=S1,r$=Wf;function n$(e){return e$(e,r$,t$)}var i$=n$,o$=Object.prototype,a$=o$.hasOwnProperty;function s$(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&a$.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var l$=s$,E1=zv;function u$(e){var t=new e.constructor(e.byteLength);return new E1(t).set(new E1(e)),t}var Hf=u$,c$=Hf;function f$(e,t){var r=t?c$(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var d$=f$,h$=/\w*$/;function p$(e){var t=new e.constructor(e.source,h$.exec(e));return t.lastIndex=e.lastIndex,t}var g$=p$,T1=fa,k1=T1?T1.prototype:void 0,_1=k1?k1.valueOf:void 0;function m$(e){return _1?Object(_1.call(e)):{}}var v$=m$,y$=Hf;function b$(e,t){var r=t?y$(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var x$=b$,w$=Hf,C$=d$,S$=g$,E$=v$,T$=x$,k$="[object Boolean]",_$="[object Date]",O$="[object Map]",M$="[object Number]",P$="[object RegExp]",A$="[object Set]",D$="[object String]",$$="[object Symbol]",I$="[object ArrayBuffer]",F$="[object DataView]",j$="[object Float32Array]",L$="[object Float64Array]",R$="[object Int8Array]",N$="[object Int16Array]",B$="[object Int32Array]",z$="[object Uint8Array]",V$="[object Uint8ClampedArray]",W$="[object Uint16Array]",H$="[object Uint32Array]";function U$(e,t,r){var n=e.constructor;switch(t){case I$:return w$(e);case k$:case _$:return new n(+e);case F$:return C$(e,r);case j$:case L$:case R$:case N$:case B$:case z$:case V$:case W$:case H$:return T$(e,r);case O$:return new n;case M$:case D$:return new n(e);case P$:return S$(e);case A$:return new n;case $$:return E$(e)}}var Y$=U$,G$=Ai,O1=Object.create,q$=function(){function e(){}return function(t){if(!G$(t))return{};if(O1)return O1(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),K$=q$,X$=K$,Z$=Tf,Q$=Sf;function J$(e){return typeof e.constructor=="function"&&!Q$(e)?X$(Z$(e)):{}}var eI=J$,tI=ll,rI=Yr,nI="[object Map]";function iI(e){return rI(e)&&tI(e)==nI}var oI=iI,aI=oI,sI=wf,M1=Cf,P1=M1&&M1.isMap,lI=P1?sI(P1):aI,uI=lI,cI=ll,fI=Yr,dI="[object Set]";function hI(e){return fI(e)&&cI(e)==dI}var pI=hI,gI=pI,mI=wf,A1=Cf,D1=A1&&A1.isSet,vI=D1?mI(D1):gI,yI=vI,bI=Pf,xI=nD,wI=C1,CI=bD,SI=jD,EI=LD,TI=ND,kI=WD,_I=JD,OI=Kv,MI=i$,PI=ll,AI=l$,DI=Y$,$I=eI,II=vr,FI=bf,jI=uI,LI=Ai,RI=yI,NI=ha,BI=Wf,zI=1,VI=2,WI=4,$1="[object Arguments]",HI="[object Array]",UI="[object Boolean]",YI="[object Date]",GI="[object Error]",I1="[object Function]",qI="[object GeneratorFunction]",KI="[object Map]",XI="[object Number]",F1="[object Object]",ZI="[object RegExp]",QI="[object Set]",JI="[object String]",eF="[object Symbol]",tF="[object WeakMap]",rF="[object ArrayBuffer]",nF="[object DataView]",iF="[object Float32Array]",oF="[object Float64Array]",aF="[object Int8Array]",sF="[object Int16Array]",lF="[object Int32Array]",uF="[object Uint8Array]",cF="[object Uint8ClampedArray]",fF="[object Uint16Array]",dF="[object Uint32Array]",st={};st[$1]=st[HI]=st[rF]=st[nF]=st[UI]=st[YI]=st[iF]=st[oF]=st[aF]=st[sF]=st[lF]=st[KI]=st[XI]=st[F1]=st[ZI]=st[QI]=st[JI]=st[eF]=st[uF]=st[cF]=st[fF]=st[dF]=!0,st[GI]=st[I1]=st[tF]=!1;function pl(e,t,r,n,i,o){var a,s=t&zI,u=t&VI,l=t&WI;if(r&&(a=i?r(e,n,i,o):r(e)),a!==void 0)return a;if(!LI(e))return e;var c=II(e);if(c){if(a=AI(e),!s)return TI(e,a)}else{var f=PI(e),d=f==I1||f==qI;if(FI(e))return EI(e,s);if(f==F1||f==$1||d&&!i){if(a=u||d?{}:$I(e),!s)return u?_I(e,SI(a,e)):kI(e,CI(a,e))}else{if(!st[f])return i?e:{};a=DI(e,f,s)}}o||(o=new bI);var h=o.get(e);if(h)return h;o.set(e,a),RI(e)?e.forEach(function(v){a.add(pl(v,t,r,v,e,o))}):jI(e)&&e.forEach(function(v,x){a.set(x,pl(v,t,r,x,e,o))});var m=l?u?MI:OI:u?BI:NI,p=c?void 0:m(e);return xI(p||e,function(v,x){p&&(x=v,v=e[x]),wI(a,x,pl(v,t,r,x,e,o))}),a}var hF=pl,pF=hF,gF=1,mF=4;function vF(e){return pF(e,gF|mF)}var yF=vF;Object.defineProperty(pa,"__esModule",{value:!0}),pa.mergeClasses=void 0;var bF=Ef,xF=j1(bF),wF=yF,CF=j1(wF),SF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function j1(e){return e&&e.__esModule?e:{default:e}}var EF=pa.mergeClasses=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.default&&(0,CF.default)(t.default)||{};return r.map(function(i){var o=t[i];return o&&(0,xF.default)(o,function(a,s){n[s]||(n[s]={}),n[s]=SF({},n[s],o[s])}),i}),n};pa.default=EF;var ga={};Object.defineProperty(ga,"__esModule",{value:!0}),ga.autoprefix=void 0;var TF=Ef,L1=_F(TF),kF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function _F(e){return e&&e.__esModule?e:{default:e}}var OF={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var r=t&&t.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function(t,r){var n=r[t];return n||{extend:t}}},MF=ga.autoprefix=function(t){var r={};return(0,L1.default)(t,function(n,i){var o={};(0,L1.default)(n,function(a,s){var u=OF[s];u?o=kF({},o,u(a)):o[s]=a}),r[i]=o}),r};ga.default=MF;var ma={};Object.defineProperty(ma,"__esModule",{value:!0}),ma.hover=void 0;var PF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},AF=g,Uf=DF(AF);function DF(e){return e&&e.__esModule?e:{default:e}}function $F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R1(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function IF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var FF=ma.hover=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){IF(i,n);function i(){var o,a,s,u;$F(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(a=(s=R1(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(c))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return Uf.default.createElement(r,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},Uf.default.createElement(t,PF({},s.props,s.state)))},a),R1(s,u)}return i}(Uf.default.Component)};ma.default=FF;var va={};Object.defineProperty(va,"__esModule",{value:!0}),va.active=void 0;var jF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},LF=g,Yf=RF(LF);function RF(e){return e&&e.__esModule?e:{default:e}}function NF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N1(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function BF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var zF=va.active=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){BF(i,n);function i(){var o,a,s,u;NF(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(a=(s=N1(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(c))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return Yf.default.createElement(r,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},Yf.default.createElement(t,jF({},s.props,s.state)))},a),N1(s,u)}return i}(Yf.default.Component)};va.default=zF;var Gf={};Object.defineProperty(Gf,"__esModule",{value:!0});var VF=function(t,r){var n={},i=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n[a]=s};return t===0&&i("first-child"),t===r-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),n};Gf.default=VF,Object.defineProperty(fr,"__esModule",{value:!0}),fr.ReactCSS=fr.loop=fr.handleActive=qf=fr.handleHover=fr.hover=void 0;var WF=ca,HF=Li(WF),UF=pa,YF=Li(UF),GF=ga,qF=Li(GF),KF=ma,B1=Li(KF),XF=va,ZF=Li(XF),QF=Gf,JF=Li(QF);function Li(e){return e&&e.__esModule?e:{default:e}}fr.hover=B1.default;var qf=fr.handleHover=B1.default;fr.handleActive=ZF.default,fr.loop=JF.default;var ej=fr.ReactCSS=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=(0,HF.default)(n),a=(0,YF.default)(t,o);return(0,qF.default)(a)},Se=fr.default=ej,tj=function(t,r,n,i,o){var a=o.clientWidth,s=o.clientHeight,u=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=u-(o.getBoundingClientRect().left+window.pageXOffset),f=l-(o.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var d=void 0;if(f<0?d=0:f>s?d=1:d=Math.round(f*100/s)/100,r.a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}else{var h=void 0;if(c<0?h=0:c>a?h=1:h=Math.round(c*100/a)/100,i!==h)return{h:r.h,s:r.s,l:r.l,a:h,source:"rgb"}}return null},Kf={},rj=function(t,r,n,i){if(typeof document>"u"&&!i)return null;var o=i?new i:document.createElement("canvas");o.width=n*2,o.height=n*2;var a=o.getContext("2d");return a?(a.fillStyle=t,a.fillRect(0,0,o.width,o.height),a.fillStyle=r,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),o.toDataURL()):null},nj=function(t,r,n,i){var o=t+"-"+r+"-"+n+(i?"-server":"");if(Kf[o])return Kf[o];var a=rj(t,r,n,i);return Kf[o]=a,a},z1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ri=function(t){var r=t.white,n=t.grey,i=t.size,o=t.renderers,a=t.borderRadius,s=t.boxShadow,u=t.children,l=Se({default:{grid:{borderRadius:a,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+nj(r,n,i,o.canvas)+") center left"}}});return g.isValidElement(u)?g.cloneElement(u,z1({},u.props,{style:z1({},u.props.style,l.grid)})):g.createElement("div",{style:l.grid})};Ri.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var ij=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oj=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function aj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V1(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function sj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Xf=function(e){sj(t,e);function t(){var r,n,i,o;aj(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return o=(n=(i=V1(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),i),i.handleChange=function(l){var c=tj(l,i.props.hsl,i.props.direction,i.props.a,i.container);c&&typeof i.props.onChange=="function"&&i.props.onChange(c,l)},i.handleMouseDown=function(l){i.handleChange(l),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleChange),window.removeEventListener("mouseup",i.handleMouseUp)},n),V1(i,o)}return oj(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,i=this.props.rgb,o=Se({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
|
|
106
110
|
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:i.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
|
|
107
|
-
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)"},pointer:{left:0,top:i.a*100+"%"}},overwrite:
|
|
111
|
+
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)"},pointer:{left:0,top:i.a*100+"%"}},overwrite:ij({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return g.createElement("div",{style:o.alpha},g.createElement("div",{style:o.checkboard},g.createElement(Ri,{renderers:this.props.renderers})),g.createElement("div",{style:o.gradient}),g.createElement("div",{style:o.container,ref:function(s){return n.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},g.createElement("div",{style:o.pointer},this.props.pointer?g.createElement(this.props.pointer,this.props):g.createElement("div",{style:o.slider}))))}}]),t}(g.PureComponent||g.Component),lj=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function uj(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fj(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function dj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var hj=1,W1=38,pj=40,gj=[W1,pj],mj=function(t){return gj.indexOf(t)>-1},vj=function(t){return Number(String(t).replace(/%/g,""))},yj=1,je=function(e){dj(t,e);function t(r){cj(this,t);var n=fj(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(i){n.setUpdatedValue(i.target.value,i)},n.handleKeyDown=function(i){var o=vj(i.target.value);if(!isNaN(o)&&mj(i.keyCode)){var a=n.getArrowOffset(),s=i.keyCode===W1?o+a:o-a;n.setUpdatedValue(s,i)}},n.handleDrag=function(i){if(n.props.dragLabel){var o=Math.round(n.props.value+i.movementX);o>=0&&o<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(o),i)}},n.handleMouseDown=function(i){n.props.dragLabel&&(i.preventDefault(),n.handleDrag(i),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+yj++,n}return lj(t,[{key:"componentDidUpdate",value:function(n,i){this.props.value!==this.state.value&&(n.value!==this.props.value||i.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return uj({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||hj}},{key:"setUpdatedValue",value:function(n,i){var o=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(o,i),this.setState({value:n})}},{key:"render",value:function(){var n=this,i=Se({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return g.createElement("div",{style:i.wrap},g.createElement("input",{id:this.inputId,style:i.input,ref:function(a){return n.input=a},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?g.createElement("label",{htmlFor:this.inputId,style:i.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(g.PureComponent||g.Component),bj=function(t,r,n,i){var o=i.clientWidth,a=i.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,u=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,l=s-(i.getBoundingClientRect().left+window.pageXOffset),c=u-(i.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var f=void 0;if(c<0)f=359;else if(c>a)f=0;else{var d=-(c*100/a)+100;f=360*d/100}if(n.h!==f)return{h:f,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var h=void 0;if(l<0)h=0;else if(l>o)h=359;else{var m=l*100/o;h=360*m/100}if(n.h!==h)return{h,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},xj=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function wj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H1(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Cj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Ni=function(e){Cj(t,e);function t(){var r,n,i,o;wj(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return o=(n=(i=H1(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),i),i.handleChange=function(l){var c=bj(l,i.props.direction,i.props.hsl,i.container);c&&typeof i.props.onChange=="function"&&i.props.onChange(c,l)},i.handleMouseDown=function(l){i.handleChange(l),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},n),H1(i,o)}return xj(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,i=this.props.direction,o=i===void 0?"horizontal":i,a=Se({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:o==="vertical"});return g.createElement("div",{style:a.hue},g.createElement("div",{className:"hue-"+o,style:a.container,ref:function(u){return n.container=u},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},g.createElement("style",null,`
|
|
108
112
|
.hue-horizontal {
|
|
109
113
|
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
|
110
114
|
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
@@ -118,7 +122,7 @@ const theme2 = createTheme({ palette: {
|
|
|
118
122
|
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
|
|
119
123
|
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
120
124
|
}
|
|
121
|
-
`),g.createElement("div",{style:a.pointer},this.props.pointer?g.createElement(this.props.pointer,this.props):g.createElement("div",{style:a.slider}))))}}]),t}(g.PureComponent||g.Component);function A$(){this.__data__=[],this.size=0}function Ko(e,t){return e===t||e!==e&&t!==t}function Fs(e,t){for(var r=e.length;r--;)if(Ko(e[r][0],t))return r;return-1}var D$=Array.prototype,$$=D$.splice;function I$(e){var t=this.__data__,r=Fs(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():$$.call(t,r,1),--this.size,!0}function F$(e){var t=this.__data__,r=Fs(t,e);return r<0?void 0:t[r][1]}function j$(e){return Fs(this.__data__,e)>-1}function L$(e,t){var r=this.__data__,n=Fs(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Hr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Hr.prototype.clear=A$,Hr.prototype.delete=I$,Hr.prototype.get=F$,Hr.prototype.has=j$,Hr.prototype.set=L$;function R$(){this.__data__=new Hr,this.size=0}function B$(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function N$(e){return this.__data__.get(e)}function z$(e){return this.__data__.has(e)}var V$=typeof global=="object"&&global&&global.Object===Object&&global;const iv=V$;var W$=typeof self=="object"&&self&&self.Object===Object&&self,H$=iv||W$||Function("return this")();const vr=H$;var U$=vr.Symbol;const ln=U$;var ov=Object.prototype,Y$=ov.hasOwnProperty,G$=ov.toString,Xo=ln?ln.toStringTag:void 0;function q$(e){var t=Y$.call(e,Xo),r=e[Xo];try{e[Xo]=void 0;var n=!0}catch{}var i=G$.call(e);return n&&(t?e[Xo]=r:delete e[Xo]),i}var K$=Object.prototype,X$=K$.toString;function Z$(e){return X$.call(e)}var Q$="[object Null]",J$="[object Undefined]",av=ln?ln.toStringTag:void 0;function An(e){return e==null?e===void 0?J$:Q$:av&&av in Object(e)?q$(e):Z$(e)}function fr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var eI="[object AsyncFunction]",tI="[object Function]",rI="[object GeneratorFunction]",nI="[object Proxy]";function qc(e){if(!fr(e))return!1;var t=An(e);return t==tI||t==rI||t==eI||t==nI}var iI=vr["__core-js_shared__"];const Kc=iI;var sv=function(){var e=/[^.]+$/.exec(Kc&&Kc.keys&&Kc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function oI(e){return!!sv&&sv in e}var aI=Function.prototype,sI=aI.toString;function Dn(e){if(e!=null){try{return sI.call(e)}catch{}try{return e+""}catch{}}return""}var lI=/[\\^$.*+?()[\]{}|]/g,uI=/^\[object .+?Constructor\]$/,cI=Function.prototype,fI=Object.prototype,dI=cI.toString,hI=fI.hasOwnProperty,pI=RegExp("^"+dI.call(hI).replace(lI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gI(e){if(!fr(e)||oI(e))return!1;var t=qc(e)?pI:uI;return t.test(Dn(e))}function mI(e,t){return e==null?void 0:e[t]}function $n(e,t){var r=mI(e,t);return gI(r)?r:void 0}var vI=$n(vr,"Map");const Zo=vI;var yI=$n(Object,"create");const Qo=yI;function bI(){this.__data__=Qo?Qo(null):{},this.size=0}function xI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wI="__lodash_hash_undefined__",CI=Object.prototype,SI=CI.hasOwnProperty;function EI(e){var t=this.__data__;if(Qo){var r=t[e];return r===wI?void 0:r}return SI.call(t,e)?t[e]:void 0}var TI=Object.prototype,_I=TI.hasOwnProperty;function OI(e){var t=this.__data__;return Qo?t[e]!==void 0:_I.call(t,e)}var kI="__lodash_hash_undefined__";function MI(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Qo&&t===void 0?kI:t,this}function In(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}In.prototype.clear=bI,In.prototype.delete=xI,In.prototype.get=EI,In.prototype.has=OI,In.prototype.set=MI;function PI(){this.size=0,this.__data__={hash:new In,map:new(Zo||Hr),string:new In}}function AI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function js(e,t){var r=e.__data__;return AI(t)?r[typeof t=="string"?"string":"hash"]:r.map}function DI(e){var t=js(this,e).delete(e);return this.size-=t?1:0,t}function $I(e){return js(this,e).get(e)}function II(e){return js(this,e).has(e)}function FI(e,t){var r=js(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ur(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ur.prototype.clear=PI,Ur.prototype.delete=DI,Ur.prototype.get=$I,Ur.prototype.has=II,Ur.prototype.set=FI;var jI=200;function LI(e,t){var r=this.__data__;if(r instanceof Hr){var n=r.__data__;if(!Zo||n.length<jI-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ur(n)}return r.set(e,t),this.size=r.size,this}function Mr(e){var t=this.__data__=new Hr(e);this.size=t.size}Mr.prototype.clear=R$,Mr.prototype.delete=B$,Mr.prototype.get=N$,Mr.prototype.has=z$,Mr.prototype.set=LI;var RI=function(){try{var e=$n(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ls=RI;function Xc(e,t,r){t=="__proto__"&&Ls?Ls(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Zc(e,t,r){(r!==void 0&&!Ko(e[t],r)||r===void 0&&!(t in e))&&Xc(e,t,r)}function BI(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var u=a[e?s:++i];if(r(o[u],u,o)===!1)break}return t}}var NI=BI();const lv=NI;var uv=typeof N=="object"&&N&&!N.nodeType&&N,cv=uv&&typeof module=="object"&&module&&!module.nodeType&&module,zI=cv&&cv.exports===uv,fv=zI?vr.Buffer:void 0,dv=fv?fv.allocUnsafe:void 0;function VI(e,t){if(t)return e.slice();var r=e.length,n=dv?dv(r):new e.constructor(r);return e.copy(n),n}var WI=vr.Uint8Array;const Rs=WI;function HI(e){var t=new e.constructor(e.byteLength);return new Rs(t).set(new Rs(e)),t}function UI(e,t){var r=t?HI(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function YI(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var hv=Object.create,GI=function(){function e(){}return function(t){if(!fr(t))return{};if(hv)return hv(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const qI=GI;function pv(e,t){return function(r){return e(t(r))}}var KI=pv(Object.getPrototypeOf,Object);const gv=KI;var XI=Object.prototype;function Qc(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||XI;return e===r}function ZI(e){return typeof e.constructor=="function"&&!Qc(e)?qI(gv(e)):{}}function un(e){return e!=null&&typeof e=="object"}var QI="[object Arguments]";function mv(e){return un(e)&&An(e)==QI}var vv=Object.prototype,JI=vv.hasOwnProperty,eF=vv.propertyIsEnumerable,tF=mv(function(){return arguments}())?mv:function(e){return un(e)&&JI.call(e,"callee")&&!eF.call(e,"callee")};const Bs=tF;var rF=Array.isArray;const tr=rF;var nF=9007199254740991;function Jc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=nF}function ki(e){return e!=null&&Jc(e.length)&&!qc(e)}function iF(e){return un(e)&&ki(e)}function oF(){return!1}var yv=typeof N=="object"&&N&&!N.nodeType&&N,bv=yv&&typeof module=="object"&&module&&!module.nodeType&&module,aF=bv&&bv.exports===yv,xv=aF?vr.Buffer:void 0,sF=xv?xv.isBuffer:void 0,lF=sF||oF;const Ns=lF;var uF="[object Object]",cF=Function.prototype,fF=Object.prototype,wv=cF.toString,dF=fF.hasOwnProperty,hF=wv.call(Object);function pF(e){if(!un(e)||An(e)!=uF)return!1;var t=gv(e);if(t===null)return!0;var r=dF.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&wv.call(r)==hF}var gF="[object Arguments]",mF="[object Array]",vF="[object Boolean]",yF="[object Date]",bF="[object Error]",xF="[object Function]",wF="[object Map]",CF="[object Number]",SF="[object Object]",EF="[object RegExp]",TF="[object Set]",_F="[object String]",OF="[object WeakMap]",kF="[object ArrayBuffer]",MF="[object DataView]",PF="[object Float32Array]",AF="[object Float64Array]",DF="[object Int8Array]",$F="[object Int16Array]",IF="[object Int32Array]",FF="[object Uint8Array]",jF="[object Uint8ClampedArray]",LF="[object Uint16Array]",RF="[object Uint32Array]",ut={};ut[PF]=ut[AF]=ut[DF]=ut[$F]=ut[IF]=ut[FF]=ut[jF]=ut[LF]=ut[RF]=!0,ut[gF]=ut[mF]=ut[kF]=ut[vF]=ut[MF]=ut[yF]=ut[bF]=ut[xF]=ut[wF]=ut[CF]=ut[SF]=ut[EF]=ut[TF]=ut[_F]=ut[OF]=!1;function BF(e){return un(e)&&Jc(e.length)&&!!ut[An(e)]}function NF(e){return function(t){return e(t)}}var Cv=typeof N=="object"&&N&&!N.nodeType&&N,Jo=Cv&&typeof module=="object"&&module&&!module.nodeType&&module,zF=Jo&&Jo.exports===Cv,ef=zF&&iv.process,VF=function(){try{var e=Jo&&Jo.require&&Jo.require("util").types;return e||ef&&ef.binding&&ef.binding("util")}catch{}}();const Sv=VF;var Ev=Sv&&Sv.isTypedArray,WF=Ev?NF(Ev):BF;const tf=WF;function rf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var HF=Object.prototype,UF=HF.hasOwnProperty;function YF(e,t,r){var n=e[t];(!(UF.call(e,t)&&Ko(n,r))||r===void 0&&!(t in e))&&Xc(e,t,r)}function GF(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),i?Xc(r,s,u):YF(r,s,u)}return r}function qF(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var KF=9007199254740991,XF=/^(?:0|[1-9]\d*)$/;function nf(e,t){var r=typeof e;return t=t??KF,!!t&&(r=="number"||r!="symbol"&&XF.test(e))&&e>-1&&e%1==0&&e<t}var ZF=Object.prototype,QF=ZF.hasOwnProperty;function Tv(e,t){var r=tr(e),n=!r&&Bs(e),i=!r&&!n&&Ns(e),o=!r&&!n&&!i&&tf(e),a=r||n||i||o,s=a?qF(e.length,String):[],u=s.length;for(var l in e)(t||QF.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||nf(l,u)))&&s.push(l);return s}function JF(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ej=Object.prototype,tj=ej.hasOwnProperty;function rj(e){if(!fr(e))return JF(e);var t=Qc(e),r=[];for(var n in e)n=="constructor"&&(t||!tj.call(e,n))||r.push(n);return r}function _v(e){return ki(e)?Tv(e,!0):rj(e)}function nj(e){return GF(e,_v(e))}function ij(e,t,r,n,i,o,a){var s=rf(e,r),u=rf(t,r),l=a.get(u);if(l){Zc(e,r,l);return}var c=o?o(s,u,r+"",e,t,a):void 0,f=c===void 0;if(f){var d=tr(u),h=!d&&Ns(u),m=!d&&!h&&tf(u);c=u,d||h||m?tr(s)?c=s:iF(s)?c=YI(s):h?(f=!1,c=VI(u,!0)):m?(f=!1,c=UI(u,!0)):c=[]:pF(u)||Bs(u)?(c=s,Bs(s)?c=nj(s):(!fr(s)||qc(s))&&(c=ZI(u))):f=!1}f&&(a.set(u,c),i(c,u,n,o,a),a.delete(u)),Zc(e,r,c)}function Ov(e,t,r,n,i){e!==t&&lv(t,function(o,a){if(i||(i=new Mr),fr(o))ij(e,t,a,r,Ov,n,i);else{var s=n?n(rf(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),Zc(e,a,s)}},_v)}function zs(e){return e}function oj(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var kv=Math.max;function aj(e,t,r){return t=kv(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=kv(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),oj(e,this,s)}}function sj(e){return function(){return e}}var lj=Ls?function(e,t){return Ls(e,"toString",{configurable:!0,enumerable:!1,value:sj(t),writable:!0})}:zs;const uj=lj;var cj=800,fj=16,dj=Date.now;function hj(e){var t=0,r=0;return function(){var n=dj(),i=fj-(n-r);if(r=n,i>0){if(++t>=cj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pj=hj(uj);const gj=pj;function mj(e,t){return gj(aj(e,t,zs),e+"")}function vj(e,t,r){if(!fr(r))return!1;var n=typeof t;return(n=="number"?ki(r)&&nf(t,r.length):n=="string"&&t in r)?Ko(r[t],e):!1}function yj(e){return mj(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&vj(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,o)}return t})}var bj=yj(function(e,t,r){Ov(e,t,r)});const Yt=bj;var ea=function(t){var r=t.zDepth,n=t.radius,i=t.background,o=t.children,a=t.styles,s=a===void 0?{}:a,u=Se(Yt({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+r+"px "+r*4+"px rgba(0,0,0,.24)",borderRadius:n,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":r===1});return g.createElement("div",{style:u.wrap},g.createElement("div",{style:u.bg}),g.createElement("div",{style:u.content},o))};ea.propTypes={background:T.string,zDepth:T.oneOf([0,1,2,3,4,5]),radius:T.number,styles:T.object},ea.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var xj=function(){return vr.Date.now()};const of=xj;var wj=/\s/;function Cj(e){for(var t=e.length;t--&&wj.test(e.charAt(t)););return t}var Sj=/^\s+/;function Ej(e){return e&&e.slice(0,Cj(e)+1).replace(Sj,"")}var Tj="[object Symbol]";function Vs(e){return typeof e=="symbol"||un(e)&&An(e)==Tj}var Mv=0/0,_j=/^[-+]0x[0-9a-f]+$/i,Oj=/^0b[01]+$/i,kj=/^0o[0-7]+$/i,Mj=parseInt;function Pv(e){if(typeof e=="number")return e;if(Vs(e))return Mv;if(fr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ej(e);var r=Oj.test(e);return r||kj.test(e)?Mj(e.slice(2),r?2:8):_j.test(e)?Mv:+e}var Pj="Expected a function",Aj=Math.max,Dj=Math.min;function ta(e,t,r){var n,i,o,a,s,u,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Pj);t=Pv(t)||0,fr(r)&&(c=!!r.leading,f="maxWait"in r,o=f?Aj(Pv(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function h(_){var O=n,k=i;return n=i=void 0,l=_,a=e.apply(k,O),a}function m(_){return l=_,s=setTimeout(x,t),c?h(_):a}function p(_){var O=_-u,k=_-l,D=t-O;return f?Dj(D,o-k):D}function v(_){var O=_-u,k=_-l;return u===void 0||O>=t||O<0||f&&k>=o}function x(){var _=of();if(v(_))return b(_);s=setTimeout(x,p(_))}function b(_){return s=void 0,d&&n?h(_):(n=i=void 0,a)}function C(){s!==void 0&&clearTimeout(s),l=0,n=u=i=s=void 0}function E(){return s===void 0?a:b(of())}function w(){var _=of(),O=v(_);if(n=arguments,i=this,u=_,O){if(s===void 0)return m(u);if(f)return clearTimeout(s),s=setTimeout(x,t),h(u)}return s===void 0&&(s=setTimeout(x,t)),a}return w.cancel=C,w.flush=E,w}var $j="Expected a function";function Av(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError($j);return fr(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ta(e,t,{leading:n,maxWait:t,trailing:i})}var Ij=function(t,r,n){var i=n.getBoundingClientRect(),o=i.width,a=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,u=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,l=s-(n.getBoundingClientRect().left+window.pageXOffset),c=u-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>o&&(l=o),c<0?c=0:c>a&&(c=a);var f=l/o,d=1-c/a;return{h:r.h,s:f,v:d,a:r.a,source:"hsv"}},Fj=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function jj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lj(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Rj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Ws=function(e){Rj(t,e);function t(r){jj(this,t);var n=Lj(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(i){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,Ij(i,n.props.hsl,n.container),i)},n.handleMouseDown=function(i){n.handleChange(i);var o=n.getContainerRenderWindow();o.addEventListener("mousemove",n.handleChange),o.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=Av(function(i,o,a){i(o,a)},50),n}return Fj(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,i=window;!i.document.contains(n)&&i.parent!==i;)i=i.parent;return i}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,i=this.props.style||{},o=i.color,a=i.white,s=i.black,u=i.pointer,l=i.circle,c=Se({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
|
125
|
+
`),g.createElement("div",{style:a.pointer},this.props.pointer?g.createElement(this.props.pointer,this.props):g.createElement("div",{style:a.slider}))))}}]),t}(g.PureComponent||g.Component);function Sj(){this.__data__=[],this.size=0}function ya(e,t){return e===t||e!==e&&t!==t}function gl(e,t){for(var r=e.length;r--;)if(ya(e[r][0],t))return r;return-1}var Ej=Array.prototype,Tj=Ej.splice;function kj(e){var t=this.__data__,r=gl(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Tj.call(t,r,1),--this.size,!0}function _j(e){var t=this.__data__,r=gl(t,e);return r<0?void 0:t[r][1]}function Oj(e){return gl(this.__data__,e)>-1}function Mj(e,t){var r=this.__data__,n=gl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Gr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Gr.prototype.clear=Sj,Gr.prototype.delete=kj,Gr.prototype.get=_j,Gr.prototype.has=Oj,Gr.prototype.set=Mj;function Pj(){this.__data__=new Gr,this.size=0}function Aj(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Dj(e){return this.__data__.get(e)}function $j(e){return this.__data__.has(e)}var Ij=typeof global=="object"&&global&&global.Object===Object&&global;const U1=Ij;var Fj=typeof self=="object"&&self&&self.Object===Object&&self,jj=U1||Fj||Function("return this")();const yr=jj;var Lj=yr.Symbol;const fn=Lj;var Y1=Object.prototype,Rj=Y1.hasOwnProperty,Nj=Y1.toString,ba=fn?fn.toStringTag:void 0;function Bj(e){var t=Rj.call(e,ba),r=e[ba];try{e[ba]=void 0;var n=!0}catch{}var i=Nj.call(e);return n&&(t?e[ba]=r:delete e[ba]),i}var zj=Object.prototype,Vj=zj.toString;function Wj(e){return Vj.call(e)}var Hj="[object Null]",Uj="[object Undefined]",G1=fn?fn.toStringTag:void 0;function Bn(e){return e==null?e===void 0?Uj:Hj:G1&&G1 in Object(e)?Bj(e):Wj(e)}function dr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Yj="[object AsyncFunction]",Gj="[object Function]",qj="[object GeneratorFunction]",Kj="[object Proxy]";function Zf(e){if(!dr(e))return!1;var t=Bn(e);return t==Gj||t==qj||t==Yj||t==Kj}var Xj=yr["__core-js_shared__"];const Qf=Xj;var q1=function(){var e=/[^.]+$/.exec(Qf&&Qf.keys&&Qf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Zj(e){return!!q1&&q1 in e}var Qj=Function.prototype,Jj=Qj.toString;function zn(e){if(e!=null){try{return Jj.call(e)}catch{}try{return e+""}catch{}}return""}var eL=/[\\^$.*+?()[\]{}|]/g,tL=/^\[object .+?Constructor\]$/,rL=Function.prototype,nL=Object.prototype,iL=rL.toString,oL=nL.hasOwnProperty,aL=RegExp("^"+iL.call(oL).replace(eL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sL(e){if(!dr(e)||Zj(e))return!1;var t=Zf(e)?aL:tL;return t.test(zn(e))}function lL(e,t){return e==null?void 0:e[t]}function Vn(e,t){var r=lL(e,t);return sL(r)?r:void 0}var uL=Vn(yr,"Map");const xa=uL;var cL=Vn(Object,"create");const wa=cL;function fL(){this.__data__=wa?wa(null):{},this.size=0}function dL(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var hL="__lodash_hash_undefined__",pL=Object.prototype,gL=pL.hasOwnProperty;function mL(e){var t=this.__data__;if(wa){var r=t[e];return r===hL?void 0:r}return gL.call(t,e)?t[e]:void 0}var vL=Object.prototype,yL=vL.hasOwnProperty;function bL(e){var t=this.__data__;return wa?t[e]!==void 0:yL.call(t,e)}var xL="__lodash_hash_undefined__";function wL(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=wa&&t===void 0?xL:t,this}function Wn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Wn.prototype.clear=fL,Wn.prototype.delete=dL,Wn.prototype.get=mL,Wn.prototype.has=bL,Wn.prototype.set=wL;function CL(){this.size=0,this.__data__={hash:new Wn,map:new(xa||Gr),string:new Wn}}function SL(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ml(e,t){var r=e.__data__;return SL(t)?r[typeof t=="string"?"string":"hash"]:r.map}function EL(e){var t=ml(this,e).delete(e);return this.size-=t?1:0,t}function TL(e){return ml(this,e).get(e)}function kL(e){return ml(this,e).has(e)}function _L(e,t){var r=ml(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function qr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}qr.prototype.clear=CL,qr.prototype.delete=EL,qr.prototype.get=TL,qr.prototype.has=kL,qr.prototype.set=_L;var OL=200;function ML(e,t){var r=this.__data__;if(r instanceof Gr){var n=r.__data__;if(!xa||n.length<OL-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new qr(n)}return r.set(e,t),this.size=r.size,this}function Pr(e){var t=this.__data__=new Gr(e);this.size=t.size}Pr.prototype.clear=Pj,Pr.prototype.delete=Aj,Pr.prototype.get=Dj,Pr.prototype.has=$j,Pr.prototype.set=ML;var PL=function(){try{var e=Vn(Object,"defineProperty");return e({},"",{}),e}catch{}}();const vl=PL;function Jf(e,t,r){t=="__proto__"&&vl?vl(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ed(e,t,r){(r!==void 0&&!ya(e[t],r)||r===void 0&&!(t in e))&&Jf(e,t,r)}function AL(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var u=a[e?s:++i];if(r(o[u],u,o)===!1)break}return t}}var DL=AL();const K1=DL;var X1=typeof R=="object"&&R&&!R.nodeType&&R,Z1=X1&&typeof module=="object"&&module&&!module.nodeType&&module,$L=Z1&&Z1.exports===X1,Q1=$L?yr.Buffer:void 0,J1=Q1?Q1.allocUnsafe:void 0;function IL(e,t){if(t)return e.slice();var r=e.length,n=J1?J1(r):new e.constructor(r);return e.copy(n),n}var FL=yr.Uint8Array;const yl=FL;function jL(e){var t=new e.constructor(e.byteLength);return new yl(t).set(new yl(e)),t}function LL(e,t){var r=t?jL(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function RL(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var ey=Object.create,NL=function(){function e(){}return function(t){if(!dr(t))return{};if(ey)return ey(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const BL=NL;function ty(e,t){return function(r){return e(t(r))}}var zL=ty(Object.getPrototypeOf,Object);const ry=zL;var VL=Object.prototype;function td(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||VL;return e===r}function WL(e){return typeof e.constructor=="function"&&!td(e)?BL(ry(e)):{}}function dn(e){return e!=null&&typeof e=="object"}var HL="[object Arguments]";function ny(e){return dn(e)&&Bn(e)==HL}var iy=Object.prototype,UL=iy.hasOwnProperty,YL=iy.propertyIsEnumerable,GL=ny(function(){return arguments}())?ny:function(e){return dn(e)&&UL.call(e,"callee")&&!YL.call(e,"callee")};const bl=GL;var qL=Array.isArray;const rr=qL;var KL=9007199254740991;function rd(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=KL}function Bi(e){return e!=null&&rd(e.length)&&!Zf(e)}function XL(e){return dn(e)&&Bi(e)}function ZL(){return!1}var oy=typeof R=="object"&&R&&!R.nodeType&&R,ay=oy&&typeof module=="object"&&module&&!module.nodeType&&module,QL=ay&&ay.exports===oy,sy=QL?yr.Buffer:void 0,JL=sy?sy.isBuffer:void 0,eR=JL||ZL;const xl=eR;var tR="[object Object]",rR=Function.prototype,nR=Object.prototype,ly=rR.toString,iR=nR.hasOwnProperty,oR=ly.call(Object);function aR(e){if(!dn(e)||Bn(e)!=tR)return!1;var t=ry(e);if(t===null)return!0;var r=iR.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ly.call(r)==oR}var sR="[object Arguments]",lR="[object Array]",uR="[object Boolean]",cR="[object Date]",fR="[object Error]",dR="[object Function]",hR="[object Map]",pR="[object Number]",gR="[object Object]",mR="[object RegExp]",vR="[object Set]",yR="[object String]",bR="[object WeakMap]",xR="[object ArrayBuffer]",wR="[object DataView]",CR="[object Float32Array]",SR="[object Float64Array]",ER="[object Int8Array]",TR="[object Int16Array]",kR="[object Int32Array]",_R="[object Uint8Array]",OR="[object Uint8ClampedArray]",MR="[object Uint16Array]",PR="[object Uint32Array]",ct={};ct[CR]=ct[SR]=ct[ER]=ct[TR]=ct[kR]=ct[_R]=ct[OR]=ct[MR]=ct[PR]=!0,ct[sR]=ct[lR]=ct[xR]=ct[uR]=ct[wR]=ct[cR]=ct[fR]=ct[dR]=ct[hR]=ct[pR]=ct[gR]=ct[mR]=ct[vR]=ct[yR]=ct[bR]=!1;function AR(e){return dn(e)&&rd(e.length)&&!!ct[Bn(e)]}function DR(e){return function(t){return e(t)}}var uy=typeof R=="object"&&R&&!R.nodeType&&R,Ca=uy&&typeof module=="object"&&module&&!module.nodeType&&module,$R=Ca&&Ca.exports===uy,nd=$R&&U1.process,IR=function(){try{var e=Ca&&Ca.require&&Ca.require("util").types;return e||nd&&nd.binding&&nd.binding("util")}catch{}}();const cy=IR;var fy=cy&&cy.isTypedArray,FR=fy?DR(fy):AR;const id=FR;function od(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var jR=Object.prototype,LR=jR.hasOwnProperty;function RR(e,t,r){var n=e[t];(!(LR.call(e,t)&&ya(n,r))||r===void 0&&!(t in e))&&Jf(e,t,r)}function NR(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),i?Jf(r,s,u):RR(r,s,u)}return r}function BR(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var zR=9007199254740991,VR=/^(?:0|[1-9]\d*)$/;function ad(e,t){var r=typeof e;return t=t??zR,!!t&&(r=="number"||r!="symbol"&&VR.test(e))&&e>-1&&e%1==0&&e<t}var WR=Object.prototype,HR=WR.hasOwnProperty;function dy(e,t){var r=rr(e),n=!r&&bl(e),i=!r&&!n&&xl(e),o=!r&&!n&&!i&&id(e),a=r||n||i||o,s=a?BR(e.length,String):[],u=s.length;for(var l in e)(t||HR.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||ad(l,u)))&&s.push(l);return s}function UR(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var YR=Object.prototype,GR=YR.hasOwnProperty;function qR(e){if(!dr(e))return UR(e);var t=td(e),r=[];for(var n in e)n=="constructor"&&(t||!GR.call(e,n))||r.push(n);return r}function hy(e){return Bi(e)?dy(e,!0):qR(e)}function KR(e){return NR(e,hy(e))}function XR(e,t,r,n,i,o,a){var s=od(e,r),u=od(t,r),l=a.get(u);if(l){ed(e,r,l);return}var c=o?o(s,u,r+"",e,t,a):void 0,f=c===void 0;if(f){var d=rr(u),h=!d&&xl(u),m=!d&&!h&&id(u);c=u,d||h||m?rr(s)?c=s:XL(s)?c=RL(s):h?(f=!1,c=IL(u,!0)):m?(f=!1,c=LL(u,!0)):c=[]:aR(u)||bl(u)?(c=s,bl(s)?c=KR(s):(!dr(s)||Zf(s))&&(c=WL(u))):f=!1}f&&(a.set(u,c),i(c,u,n,o,a),a.delete(u)),ed(e,r,c)}function py(e,t,r,n,i){e!==t&&K1(t,function(o,a){if(i||(i=new Pr),dr(o))XR(e,t,a,r,py,n,i);else{var s=n?n(od(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),ed(e,a,s)}},hy)}function wl(e){return e}function ZR(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var gy=Math.max;function QR(e,t,r){return t=gy(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=gy(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),ZR(e,this,s)}}function JR(e){return function(){return e}}var eN=vl?function(e,t){return vl(e,"toString",{configurable:!0,enumerable:!1,value:JR(t),writable:!0})}:wl;const tN=eN;var rN=800,nN=16,iN=Date.now;function oN(e){var t=0,r=0;return function(){var n=iN(),i=nN-(n-r);if(r=n,i>0){if(++t>=rN)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var aN=oN(tN);const sN=aN;function lN(e,t){return sN(QR(e,t,wl),e+"")}function uN(e,t,r){if(!dr(r))return!1;var n=typeof t;return(n=="number"?Bi(r)&&ad(t,r.length):n=="string"&&t in r)?ya(r[t],e):!1}function cN(e){return lN(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&uN(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,o)}return t})}var fN=cN(function(e,t,r){py(e,t,r)});const Gt=fN;var Sa=function(t){var r=t.zDepth,n=t.radius,i=t.background,o=t.children,a=t.styles,s=a===void 0?{}:a,u=Se(Gt({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+r+"px "+r*4+"px rgba(0,0,0,.24)",borderRadius:n,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":r===1});return g.createElement("div",{style:u.wrap},g.createElement("div",{style:u.bg}),g.createElement("div",{style:u.content},o))};Sa.propTypes={background:_.string,zDepth:_.oneOf([0,1,2,3,4,5]),radius:_.number,styles:_.object},Sa.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var dN=function(){return yr.Date.now()};const sd=dN;var hN=/\s/;function pN(e){for(var t=e.length;t--&&hN.test(e.charAt(t)););return t}var gN=/^\s+/;function mN(e){return e&&e.slice(0,pN(e)+1).replace(gN,"")}var vN="[object Symbol]";function Cl(e){return typeof e=="symbol"||dn(e)&&Bn(e)==vN}var my=0/0,yN=/^[-+]0x[0-9a-f]+$/i,bN=/^0b[01]+$/i,xN=/^0o[0-7]+$/i,wN=parseInt;function vy(e){if(typeof e=="number")return e;if(Cl(e))return my;if(dr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=dr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=mN(e);var r=bN.test(e);return r||xN.test(e)?wN(e.slice(2),r?2:8):yN.test(e)?my:+e}var CN="Expected a function",SN=Math.max,EN=Math.min;function Ea(e,t,r){var n,i,o,a,s,u,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(CN);t=vy(t)||0,dr(r)&&(c=!!r.leading,f="maxWait"in r,o=f?SN(vy(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function h(k){var T=n,O=i;return n=i=void 0,l=k,a=e.apply(O,T),a}function m(k){return l=k,s=setTimeout(x,t),c?h(k):a}function p(k){var T=k-u,O=k-l,A=t-T;return f?EN(A,o-O):A}function v(k){var T=k-u,O=k-l;return u===void 0||T>=t||T<0||f&&O>=o}function x(){var k=sd();if(v(k))return b(k);s=setTimeout(x,p(k))}function b(k){return s=void 0,d&&n?h(k):(n=i=void 0,a)}function C(){s!==void 0&&clearTimeout(s),l=0,n=u=i=s=void 0}function E(){return s===void 0?a:b(sd())}function w(){var k=sd(),T=v(k);if(n=arguments,i=this,u=k,T){if(s===void 0)return m(u);if(f)return clearTimeout(s),s=setTimeout(x,t),h(u)}return s===void 0&&(s=setTimeout(x,t)),a}return w.cancel=C,w.flush=E,w}var TN="Expected a function";function yy(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(TN);return dr(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Ea(e,t,{leading:n,maxWait:t,trailing:i})}var kN=function(t,r,n){var i=n.getBoundingClientRect(),o=i.width,a=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,u=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,l=s-(n.getBoundingClientRect().left+window.pageXOffset),c=u-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>o&&(l=o),c<0?c=0:c>a&&(c=a);var f=l/o,d=1-c/a;return{h:r.h,s:f,v:d,a:r.a,source:"hsv"}},_N=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function ON(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MN(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function PN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Sl=function(e){PN(t,e);function t(r){ON(this,t);var n=MN(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(i){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,kN(i,n.props.hsl,n.container),i)},n.handleMouseDown=function(i){n.handleChange(i);var o=n.getContainerRenderWindow();o.addEventListener("mousemove",n.handleChange),o.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=yy(function(i,o,a){i(o,a)},50),n}return _N(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,i=window;!i.document.contains(n)&&i.parent!==i;)i=i.parent;return i}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,i=this.props.style||{},o=i.color,a=i.white,s=i.black,u=i.pointer,l=i.circle,c=Se({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
|
122
126
|
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:o,white:a,black:s,pointer:u,circle:l}},{custom:!!this.props.style});return g.createElement("div",{style:c.color,ref:function(d){return n.container=d},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},g.createElement("style",null,`
|
|
123
127
|
.saturation-white {
|
|
124
128
|
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
@@ -128,8 +132,8 @@ const theme2 = createTheme({ palette: {
|
|
|
128
132
|
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
129
133
|
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
130
134
|
}
|
|
131
|
-
`),g.createElement("div",{style:c.white,className:"saturation-white"},g.createElement("div",{style:c.black,className:"saturation-black"}),g.createElement("div",{style:c.pointer},this.props.pointer?g.createElement(this.props.pointer,this.props):g.createElement("div",{style:c.circle}))))}}]),t}(g.PureComponent||g.Component);function Bj(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Nj=pv(Object.keys,Object);const zj=Nj;var Vj=Object.prototype,Wj=Vj.hasOwnProperty;function Hj(e){if(!Qc(e))return zj(e);var t=[];for(var r in Object(e))Wj.call(e,r)&&r!="constructor"&&t.push(r);return t}function af(e){return ki(e)?Tv(e):Hj(e)}function Uj(e,t){return e&&lv(e,t,af)}function Yj(e,t){return function(r,n){if(r==null)return r;if(!ki(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}var Gj=Yj(Uj);const Dv=Gj;function qj(e){return typeof e=="function"?e:zs}function Kj(e,t){var r=tr(e)?Bj:Dv;return r(e,qj(t))}function Hs(e){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hs(e)}var Xj=/^\s+/,Zj=/\s+$/;function he(e,t){if(e=e||"",t=t||{},e instanceof he)return e;if(!(this instanceof he))return new he(e,t);var r=Qj(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}he.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,i,o,a,s;return r=t.r/255,n=t.g/255,i=t.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*a+.0722*s},setAlpha:function(t){return this._a=Rv(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Iv(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Iv(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+i+"%)":"hsva("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=$v(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=$v(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+i+"%)":"hsla("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return Fv(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return rL(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(dt(this._r,255)*100)+"%",g:Math.round(dt(this._g,255)*100)+"%",b:Math.round(dt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(dt(this._r,255)*100)+"%, "+Math.round(dt(this._g,255)*100)+"%, "+Math.round(dt(this._b,255)*100)+"%)":"rgba("+Math.round(dt(this._r,255)*100)+"%, "+Math.round(dt(this._g,255)*100)+"%, "+Math.round(dt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:pL[Fv(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+jv(this._r,this._g,this._b,this._a),n=r,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=he(t);n="#"+jv(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,i=this._a<1&&this._a>=0,o=!r&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return he(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(aL,arguments)},brighten:function(){return this._applyModification(sL,arguments)},darken:function(){return this._applyModification(lL,arguments)},desaturate:function(){return this._applyModification(nL,arguments)},saturate:function(){return this._applyModification(iL,arguments)},greyscale:function(){return this._applyModification(oL,arguments)},spin:function(){return this._applyModification(uL,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(dL,arguments)},complement:function(){return this._applyCombination(cL,arguments)},monochromatic:function(){return this._applyCombination(hL,arguments)},splitcomplement:function(){return this._applyCombination(fL,arguments)},triad:function(){return this._applyCombination(Lv,[3])},tetrad:function(){return this._applyCombination(Lv,[4])}},he.fromRatio=function(e,t){if(Hs(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=ra(e[n]));e=r}return he(e,t)};function Qj(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=yL(e)),Hs(e)=="object"&&(Yr(e.r)&&Yr(e.g)&&Yr(e.b)?(t=Jj(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Yr(e.h)&&Yr(e.s)&&Yr(e.v)?(n=ra(e.s),i=ra(e.v),t=tL(e.h,n,i),a=!0,s="hsv"):Yr(e.h)&&Yr(e.s)&&Yr(e.l)&&(n=ra(e.s),o=ra(e.l),t=eL(e.h,n,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Rv(r),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function Jj(e,t,r){return{r:dt(e,255)*255,g:dt(t,255)*255,b:dt(r,255)*255}}function $v(e,t,r){e=dt(e,255),t=dt(t,255),r=dt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,a,s=(n+i)/2;if(n==i)o=a=0;else{var u=n-i;switch(a=s>.5?u/(2-n-i):u/(n+i),n){case e:o=(t-r)/u+(t<r?6:0);break;case t:o=(r-e)/u+2;break;case r:o=(e-t)/u+4;break}o/=6}return{h:o,s:a,l:s}}function eL(e,t,r){var n,i,o;e=dt(e,360),t=dt(t,100),r=dt(r,100);function a(l,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?l+(c-l)*6*f:f<1/2?c:f<2/3?l+(c-l)*(2/3-f)*6:l}if(t===0)n=i=o=r;else{var s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;n=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function Iv(e,t,r){e=dt(e,255),t=dt(t,255),r=dt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,a,s=n,u=n-i;if(a=n===0?0:u/n,n==i)o=0;else{switch(n){case e:o=(t-r)/u+(t<r?6:0);break;case t:o=(r-e)/u+2;break;case r:o=(e-t)/u+4;break}o/=6}return{h:o,s:a,v:s}}function tL(e,t,r){e=dt(e,360)*6,t=dt(t,100),r=dt(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),a=r*(1-i*t),s=r*(1-(1-i)*t),u=n%6,l=[r,a,o,o,s,r][u],c=[s,r,r,a,o,o][u],f=[o,o,s,r,r,a][u];return{r:l*255,g:c*255,b:f*255}}function Fv(e,t,r,n){var i=[yr(Math.round(e).toString(16)),yr(Math.round(t).toString(16)),yr(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function rL(e,t,r,n,i){var o=[yr(Math.round(e).toString(16)),yr(Math.round(t).toString(16)),yr(Math.round(r).toString(16)),yr(Bv(n))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function jv(e,t,r,n){var i=[yr(Bv(n)),yr(Math.round(e).toString(16)),yr(Math.round(t).toString(16)),yr(Math.round(r).toString(16))];return i.join("")}he.equals=function(e,t){return!e||!t?!1:he(e).toRgbString()==he(t).toRgbString()},he.random=function(){return he.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function nL(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.s-=t/100,r.s=Us(r.s),he(r)}function iL(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.s+=t/100,r.s=Us(r.s),he(r)}function oL(e){return he(e).desaturate(100)}function aL(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.l+=t/100,r.l=Us(r.l),he(r)}function sL(e,t){t=t===0?0:t||10;var r=he(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),he(r)}function lL(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.l-=t/100,r.l=Us(r.l),he(r)}function uL(e,t){var r=he(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,he(r)}function cL(e){var t=he(e).toHsl();return t.h=(t.h+180)%360,he(t)}function Lv(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=he(e).toHsl(),n=[he(e)],i=360/t,o=1;o<t;o++)n.push(he({h:(r.h+o*i)%360,s:r.s,l:r.l}));return n}function fL(e){var t=he(e).toHsl(),r=t.h;return[he(e),he({h:(r+72)%360,s:t.s,l:t.l}),he({h:(r+216)%360,s:t.s,l:t.l})]}function dL(e,t,r){t=t||6,r=r||30;var n=he(e).toHsl(),i=360/r,o=[he(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(he(n));return o}function hL(e,t){t=t||6;for(var r=he(e).toHsv(),n=r.h,i=r.s,o=r.v,a=[],s=1/t;t--;)a.push(he({h:n,s:i,v:o})),o=(o+s)%1;return a}he.mix=function(e,t,r){r=r===0?0:r||50;var n=he(e).toRgb(),i=he(t).toRgb(),o=r/100,a={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return he(a)},he.readability=function(e,t){var r=he(e),n=he(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},he.isReadable=function(e,t,r){var n=he.readability(e,t),i,o;switch(o=!1,i=bL(r),i.level+i.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o},he.mostReadable=function(e,t,r){var n=null,i=0,o,a,s,u;r=r||{},a=r.includeFallbackColors,s=r.level,u=r.size;for(var l=0;l<t.length;l++)o=he.readability(e,t[l]),o>i&&(i=o,n=he(t[l]));return he.isReadable(e,n,{level:s,size:u})||!a?n:(r.includeFallbackColors=!1,he.mostReadable(e,["#fff","#000"],r))};var sf=he.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},pL=he.hexNames=gL(sf);function gL(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Rv(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function dt(e,t){mL(e)&&(e="100%");var r=vL(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Us(e){return Math.min(1,Math.max(0,e))}function rr(e){return parseInt(e,16)}function mL(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function vL(e){return typeof e=="string"&&e.indexOf("%")!=-1}function yr(e){return e.length==1?"0"+e:""+e}function ra(e){return e<=1&&(e=e*100+"%"),e}function Bv(e){return Math.round(parseFloat(e)*255).toString(16)}function Nv(e){return rr(e)/255}var br=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Yr(e){return!!br.CSS_UNIT.exec(e)}function yL(e){e=e.replace(Xj,"").replace(Zj,"").toLowerCase();var t=!1;if(sf[e])e=sf[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=br.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=br.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=br.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=br.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=br.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=br.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=br.hex8.exec(e))?{r:rr(r[1]),g:rr(r[2]),b:rr(r[3]),a:Nv(r[4]),format:t?"name":"hex8"}:(r=br.hex6.exec(e))?{r:rr(r[1]),g:rr(r[2]),b:rr(r[3]),format:t?"name":"hex"}:(r=br.hex4.exec(e))?{r:rr(r[1]+""+r[1]),g:rr(r[2]+""+r[2]),b:rr(r[3]+""+r[3]),a:Nv(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=br.hex3.exec(e))?{r:rr(r[1]+""+r[1]),g:rr(r[2]+""+r[2]),b:rr(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function bL(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var zv=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,i=0;return Kj(r,function(o){if(t[o]&&(n+=1,isNaN(t[o])||(i+=1),o==="s"||o==="l")){var a=/^\d+%$/;a.test(t[o])&&(i+=1)}}),n===i?t:!1},na=function(t,r){var n=t.hex?he(t.hex):he(t),i=n.toHsl(),o=n.toHsv(),a=n.toRgb(),s=n.toHex();i.s===0&&(i.h=r||0,o.h=r||0);var u=s==="000000"&&a.a===0;return{hsl:i,hex:u?"transparent":"#"+s,rgb:a,hsv:o,oldHue:t.h||r||i.h,source:t.source}},cn=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&he(t).isValid()},lf=function(t){if(!t)return"#fff";var r=na(t);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},uf=function(t,r){var n=t.replace("°","");return he(r+" ("+n+")")._ok},ia=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xL=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function wL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CL(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function SL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Gt=function(t){var r=function(n){SL(i,n);function i(o){wL(this,i);var a=CL(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return a.handleChange=function(s,u){var l=zv(s);if(l){var c=na(s,s.h||a.state.oldHue);a.setState(c),a.props.onChangeComplete&&a.debounce(a.props.onChangeComplete,c,u),a.props.onChange&&a.props.onChange(c,u)}},a.handleSwatchHover=function(s,u){var l=zv(s);if(l){var c=na(s,s.h||a.state.oldHue);a.props.onSwatchHover&&a.props.onSwatchHover(c,u)}},a.state=ia({},na(o.color,0)),a.debounce=ta(function(s,u,l){s(u,l)},100),a}return xL(i,[{key:"render",value:function(){var a={};return this.props.onSwatchHover&&(a.onSwatchHover=this.handleSwatchHover),g.createElement(t,ia({},this.props,this.state,{onChange:this.handleChange},a))}}],[{key:"getDerivedStateFromProps",value:function(a,s){return ia({},na(a.color,s.oldHue))}}]),i}(g.PureComponent||g.Component);return r.propTypes=ia({},t.propTypes),r.defaultProps=ia({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},EL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},TL=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function _L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vv(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function OL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var kL=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){OL(i,n);function i(){var o,a,s,u;_L(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(a=(s=Vv(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(c))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},a),Vv(s,u)}return TL(i,[{key:"render",value:function(){return g.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},g.createElement(t,EL({},this.props,this.state)))}}]),i}(g.Component)},Wv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ML=13,PL=function(t){var r=t.color,n=t.style,i=t.onClick,o=i===void 0?function(){}:i,a=t.onHover,s=t.title,u=s===void 0?r:s,l=t.children,c=t.focus,f=t.focusStyle,d=f===void 0?{}:f,h=r==="transparent",m=Se({default:{swatch:Wv({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,c?d:{})}}),p=function(E){return o(r,E)},v=function(E){return E.keyCode===ML&&o(r,E)},x=function(E){return a(r,E)},b={};return a&&(b.onMouseOver=x),g.createElement("div",Wv({style:m.swatch,onClick:p,title:u,tabIndex:0,onKeyDown:v},b),l,h&&g.createElement(_i,{borderRadius:m.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const Fn=kL(PL);var AL=function(t){var r=t.direction,n=Se({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return g.createElement("div",{style:n.picker})},DL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hv=function(t){var r=t.rgb,n=t.hsl,i=t.width,o=t.height,a=t.onChange,s=t.direction,u=t.style,l=t.renderers,c=t.pointer,f=t.className,d=f===void 0?"":f,h=Se({default:{picker:{position:"relative",width:i,height:o},alpha:{radius:"2px",style:u}}});return g.createElement("div",{style:h.picker,className:"alpha-picker "+d},g.createElement(Gc,DL({},h.alpha,{rgb:r,hsl:n,pointer:c,renderers:l,onChange:a,direction:s})))};Hv.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:AL},Gt(Hv);function Uv(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var $L="__lodash_hash_undefined__";function IL(e){return this.__data__.set(e,$L),this}function FL(e){return this.__data__.has(e)}function Ys(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ur;++t<r;)this.add(e[t])}Ys.prototype.add=Ys.prototype.push=IL,Ys.prototype.has=FL;function jL(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function LL(e,t){return e.has(t)}var RL=1,BL=2;function Yv(e,t,r,n,i,o){var a=r&RL,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,h=r&BL?new Ys:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var m=e[f],p=t[f];if(n)var v=a?n(p,m,f,t,e,o):n(m,p,f,e,t,o);if(v!==void 0){if(v)continue;d=!1;break}if(h){if(!jL(t,function(x,b){if(!LL(h,b)&&(m===x||i(m,x,r,n,o)))return h.push(b)})){d=!1;break}}else if(!(m===p||i(m,p,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function NL(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function zL(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var VL=1,WL=2,HL="[object Boolean]",UL="[object Date]",YL="[object Error]",GL="[object Map]",qL="[object Number]",KL="[object RegExp]",XL="[object Set]",ZL="[object String]",QL="[object Symbol]",JL="[object ArrayBuffer]",eR="[object DataView]",Gv=ln?ln.prototype:void 0,cf=Gv?Gv.valueOf:void 0;function tR(e,t,r,n,i,o,a){switch(r){case eR:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case JL:return!(e.byteLength!=t.byteLength||!o(new Rs(e),new Rs(t)));case HL:case UL:case qL:return Ko(+e,+t);case YL:return e.name==t.name&&e.message==t.message;case KL:case ZL:return e==t+"";case GL:var s=NL;case XL:var u=n&VL;if(s||(s=zL),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;n|=WL,a.set(e,t);var c=Yv(s(e),s(t),n,i,o,a);return a.delete(e),c;case QL:if(cf)return cf.call(e)==cf.call(t)}return!1}function rR(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function nR(e,t,r){var n=t(e);return tr(e)?n:rR(n,r(e))}function iR(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function oR(){return[]}var aR=Object.prototype,sR=aR.propertyIsEnumerable,qv=Object.getOwnPropertySymbols,lR=qv?function(e){return e==null?[]:(e=Object(e),iR(qv(e),function(t){return sR.call(e,t)}))}:oR;const uR=lR;function Kv(e){return nR(e,af,uR)}var cR=1,fR=Object.prototype,dR=fR.hasOwnProperty;function hR(e,t,r,n,i,o){var a=r&cR,s=Kv(e),u=s.length,l=Kv(t),c=l.length;if(u!=c&&!a)return!1;for(var f=u;f--;){var d=s[f];if(!(a?d in t:dR.call(t,d)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var p=!0;o.set(e,t),o.set(t,e);for(var v=a;++f<u;){d=s[f];var x=e[d],b=t[d];if(n)var C=a?n(b,x,d,t,e,o):n(x,b,d,e,t,o);if(!(C===void 0?x===b||i(x,b,r,n,o):C)){p=!1;break}v||(v=d=="constructor")}if(p&&!v){var E=e.constructor,w=t.constructor;E!=w&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof w=="function"&&w instanceof w)&&(p=!1)}return o.delete(e),o.delete(t),p}var pR=$n(vr,"DataView");const ff=pR;var gR=$n(vr,"Promise");const df=gR;var mR=$n(vr,"Set");const hf=mR;var vR=$n(vr,"WeakMap");const pf=vR;var Xv="[object Map]",yR="[object Object]",Zv="[object Promise]",Qv="[object Set]",Jv="[object WeakMap]",e1="[object DataView]",bR=Dn(ff),xR=Dn(Zo),wR=Dn(df),CR=Dn(hf),SR=Dn(pf),jn=An;(ff&&jn(new ff(new ArrayBuffer(1)))!=e1||Zo&&jn(new Zo)!=Xv||df&&jn(df.resolve())!=Zv||hf&&jn(new hf)!=Qv||pf&&jn(new pf)!=Jv)&&(jn=function(e){var t=An(e),r=t==yR?e.constructor:void 0,n=r?Dn(r):"";if(n)switch(n){case bR:return e1;case xR:return Xv;case wR:return Zv;case CR:return Qv;case SR:return Jv}return t});const t1=jn;var ER=1,r1="[object Arguments]",n1="[object Array]",Gs="[object Object]",TR=Object.prototype,i1=TR.hasOwnProperty;function _R(e,t,r,n,i,o){var a=tr(e),s=tr(t),u=a?n1:t1(e),l=s?n1:t1(t);u=u==r1?Gs:u,l=l==r1?Gs:l;var c=u==Gs,f=l==Gs,d=u==l;if(d&&Ns(e)){if(!Ns(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Mr),a||tf(e)?Yv(e,t,r,n,i,o):tR(e,t,u,r,n,i,o);if(!(r&ER)){var h=c&&i1.call(e,"__wrapped__"),m=f&&i1.call(t,"__wrapped__");if(h||m){var p=h?e.value():e,v=m?t.value():t;return o||(o=new Mr),i(p,v,r,n,o)}}return d?(o||(o=new Mr),hR(e,t,r,n,i,o)):!1}function gf(e,t,r,n,i){return e===t?!0:e==null||t==null||!un(e)&&!un(t)?e!==e&&t!==t:_R(e,t,r,n,gf,i)}var OR=1,kR=2;function MR(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=r[i];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===void 0&&!(u in e))return!1}else{var f=new Mr;if(n)var d=n(l,c,u,e,t,f);if(!(d===void 0?gf(c,l,OR|kR,n,f):d))return!1}}return!0}function o1(e){return e===e&&!fr(e)}function PR(e){for(var t=af(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,o1(i)]}return t}function a1(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function AR(e){var t=PR(e);return t.length==1&&t[0][2]?a1(t[0][0],t[0][1]):function(r){return r===e||MR(r,e,t)}}var DR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$R=/^\w*$/;function mf(e,t){if(tr(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Vs(e)?!0:$R.test(e)||!DR.test(e)||t!=null&&e in Object(t)}var IR="Expected a function";function vf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(IR);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(vf.Cache||Ur),r}vf.Cache=Ur;var FR=500;function jR(e){var t=vf(e,function(n){return r.size===FR&&r.clear(),n}),r=t.cache;return t}var LR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,RR=/\\(\\)?/g,BR=jR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(LR,function(r,n,i,o){t.push(i?o.replace(RR,"$1"):n||r)}),t});const NR=BR;var zR=1/0,s1=ln?ln.prototype:void 0,l1=s1?s1.toString:void 0;function u1(e){if(typeof e=="string")return e;if(tr(e))return Uv(e,u1)+"";if(Vs(e))return l1?l1.call(e):"";var t=e+"";return t=="0"&&1/e==-zR?"-0":t}function VR(e){return e==null?"":u1(e)}function c1(e,t){return tr(e)?e:mf(e,t)?[e]:NR(VR(e))}var WR=1/0;function qs(e){if(typeof e=="string"||Vs(e))return e;var t=e+"";return t=="0"&&1/e==-WR?"-0":t}function f1(e,t){t=c1(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[qs(t[r++])];return r&&r==n?e:void 0}function HR(e,t,r){var n=e==null?void 0:f1(e,t);return n===void 0?r:n}function UR(e,t){return e!=null&&t in Object(e)}function YR(e,t,r){t=c1(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=qs(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&Jc(i)&&nf(a,i)&&(tr(e)||Bs(e)))}function GR(e,t){return e!=null&&YR(e,t,UR)}var qR=1,KR=2;function XR(e,t){return mf(e)&&o1(t)?a1(qs(e),t):function(r){var n=HR(r,e);return n===void 0&&n===t?GR(r,e):gf(t,n,qR|KR)}}function ZR(e){return function(t){return t==null?void 0:t[e]}}function QR(e){return function(t){return f1(t,e)}}function JR(e){return mf(e)?ZR(qs(e)):QR(e)}function eB(e){return typeof e=="function"?e:e==null?zs:typeof e=="object"?tr(e)?XR(e[0],e[1]):AR(e):JR(e)}function tB(e,t){var r=-1,n=ki(e)?Array(e.length):[];return Dv(e,function(i,o,a){n[++r]=t(i,o,a)}),n}function Ln(e,t){var r=tr(e)?Uv:tB;return r(e,eB(t))}var rB=function(t){var r=t.colors,n=t.onClick,i=t.onSwatchHover,o=Se({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return g.createElement("div",{style:o.swatches},Ln(r,function(a){return g.createElement(Fn,{key:a,color:a,style:o.swatch,onClick:n,onHover:i,focusStyle:{boxShadow:"0 0 4px "+a}})}),g.createElement("div",{style:o.clear}))},yf=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.hex,o=t.colors,a=t.width,s=t.triangle,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=i==="transparent",h=function(v,x){cn(v)&&r({hex:v,source:"hex"},x)},m=Se(Yt({default:{card:{width:a,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:i,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:lf(i),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+i+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},l),{"hide-triangle":s==="hide"});return g.createElement("div",{style:m.card,className:"block-picker "+f},g.createElement("div",{style:m.triangle}),g.createElement("div",{style:m.head},d&&g.createElement(_i,{borderRadius:"6px 6px 0 0"}),g.createElement("div",{style:m.label},i)),g.createElement("div",{style:m.body},g.createElement(rB,{colors:o,onClick:h,onSwatchHover:n}),g.createElement(je,{style:{input:m.input},value:i,onChange:h})))};yf.propTypes={width:T.oneOfType([T.string,T.number]),colors:T.arrayOf(T.string),triangle:T.oneOf(["top","hide"]),styles:T.object},yf.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},Gt(yf);var Mi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},Pi={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},Ai={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},Di={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},$i={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},Ii={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},Fi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},ji={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},Li={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},oa={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},Ri={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Bi={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Ni={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},zi={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},Vi={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},Wi={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},Hi={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},Ui={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},d1=function(t){var r=t.color,n=t.onClick,i=t.onSwatchHover,o=t.hover,a=t.active,s=t.circleSize,u=t.circleSpacing,l=Se({default:{swatch:{width:s,height:s,marginRight:u,marginBottom:u,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+r,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+r}}},{hover:o,active:a});return g.createElement("div",{style:l.swatch},g.createElement(Fn,{style:l.Swatch,color:r,onClick:n,onHover:i,focusStyle:{boxShadow:l.Swatch.boxShadow+", 0 0 5px "+r}}))};d1.defaultProps={circleSize:28,circleSpacing:14};const nB=Uc(d1);var bf=function(t){var r=t.width,n=t.onChange,i=t.onSwatchHover,o=t.colors,a=t.hex,s=t.circleSize,u=t.styles,l=u===void 0?{}:u,c=t.circleSpacing,f=t.className,d=f===void 0?"":f,h=Se(Yt({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},l)),m=function(v,x){return n({hex:v,source:"hex"},x)};return g.createElement("div",{style:h.card,className:"circle-picker "+d},Ln(o,function(p){return g.createElement(nB,{key:p,color:p,onClick:m,onSwatchHover:i,active:a===p.toLowerCase(),circleSize:s,circleSpacing:c})}))};bf.propTypes={width:T.oneOfType([T.string,T.number]),circleSize:T.number,circleSpacing:T.number,styles:T.object},bf.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Mi[500],Pi[500],Ai[500],Di[500],$i[500],Ii[500],Fi[500],ji[500],Li[500],oa[500],Ri[500],Bi[500],Ni[500],zi[500],Vi[500],Wi[500],Hi[500],Ui[500]],styles:{}},Gt(bf);function h1(e){return e===void 0}var p1={};Object.defineProperty(p1,"__esModule",{value:!0});var g1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iB=g,m1=oB(iB);function oB(e){return e&&e.__esModule?e:{default:e}}function aB(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Ks=24,sB=p1.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,i=n===void 0?Ks:n,o=e.height,a=o===void 0?Ks:o,s=e.style,u=s===void 0?{}:s,l=aB(e,["fill","width","height","style"]);return m1.default.createElement("svg",g1({viewBox:"0 0 "+Ks+" "+Ks,style:g1({fill:r,width:i,height:a},u)},l),m1.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},lB=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function uB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function fB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v1=function(e){fB(t,e);function t(r){uB(this,t);var n=cB(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){n.state.view==="hex"?n.setState({view:"rgb"}):n.state.view==="rgb"?n.setState({view:"hsl"}):n.state.view==="hsl"&&(n.props.hsl.a===1?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(i,o){i.hex?cn(i.hex)&&n.props.onChange({hex:i.hex,source:"hex"},o):i.r||i.g||i.b?n.props.onChange({r:i.r||n.props.rgb.r,g:i.g||n.props.rgb.g,b:i.b||n.props.rgb.b,source:"rgb"},o):i.a?(i.a<0?i.a=0:i.a>1&&(i.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(i.a*100)/100,source:"rgb"},o)):(i.h||i.s||i.l)&&(typeof i.s=="string"&&i.s.includes("%")&&(i.s=i.s.replace("%","")),typeof i.l=="string"&&i.l.includes("%")&&(i.l=i.l.replace("%","")),i.s==1?i.s=.01:i.l==1&&(i.l=.01),n.props.onChange({h:i.h||n.props.hsl.h,s:Number(h1(i.s)?n.props.hsl.s:i.s),l:Number(h1(i.l)?n.props.hsl.l:i.l),source:"hsl"},o))},n.showHighlight=function(i){i.currentTarget.style.background="#eee"},n.hideHighlight=function(i){i.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return lB(t,[{key:"render",value:function(){var n=this,i=Se({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),o=void 0;return this.state.view==="hex"?o=g.createElement("div",{style:i.fields,className:"flexbox-fix"},g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?o=g.createElement("div",{style:i.fields,className:"flexbox-fix"},g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),g.createElement("div",{style:i.alpha},g.createElement(je,{style:{input:i.input,label:i.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(o=g.createElement("div",{style:i.fields,className:"flexbox-fix"},g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),g.createElement("div",{style:i.alpha},g.createElement(je,{style:{input:i.input,label:i.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),g.createElement("div",{style:i.wrap,className:"flexbox-fix"},o,g.createElement("div",{style:i.toggle},g.createElement("div",{style:i.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},g.createElement(sB,{style:i.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.hsl.a!==1&&i.view==="hex"?{view:"rgb"}:null}}]),t}(g.Component);v1.defaultProps={view:"hex"};var y1=function(){var t=Se({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return g.createElement("div",{style:t.picker})},dB=function(){var t=Se({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return g.createElement("div",{style:t.picker})},xf=function(t){var r=t.width,n=t.onChange,i=t.disableAlpha,o=t.rgb,a=t.hsl,s=t.hsv,u=t.hex,l=t.renderers,c=t.styles,f=c===void 0?{}:c,d=t.className,h=d===void 0?"":d,m=t.defaultView,p=Se(Yt({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},f),{disableAlpha:i});return g.createElement("div",{style:p.picker,className:"chrome-picker "+h},g.createElement("div",{style:p.saturation},g.createElement(Ws,{style:p.Saturation,hsl:a,hsv:s,pointer:dB,onChange:n})),g.createElement("div",{style:p.body},g.createElement("div",{style:p.controls,className:"flexbox-fix"},g.createElement("div",{style:p.color},g.createElement("div",{style:p.swatch},g.createElement("div",{style:p.active}),g.createElement(_i,{renderers:l}))),g.createElement("div",{style:p.toggles},g.createElement("div",{style:p.hue},g.createElement(Oi,{style:p.Hue,hsl:a,pointer:y1,onChange:n})),g.createElement("div",{style:p.alpha},g.createElement(Gc,{style:p.Alpha,rgb:o,hsl:a,pointer:y1,renderers:l,onChange:n})))),g.createElement(v1,{rgb:o,hsl:a,hex:u,view:m,onChange:n,disableAlpha:i})))};xf.propTypes={width:T.oneOfType([T.string,T.number]),disableAlpha:T.bool,styles:T.object,defaultView:T.oneOf(["hex","rgb","hsl"])},xf.defaultProps={width:225,disableAlpha:!1,styles:{}};const hB=Gt(xf);var pB=function(t){var r=t.color,n=t.onClick,i=n===void 0?function(){}:n,o=t.onSwatchHover,a=t.active,s=Se({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:lf(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:a,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return g.createElement(Fn,{style:s.color,color:r,onClick:i,onHover:o,focusStyle:{boxShadow:"0 0 4px "+r}},g.createElement("div",{style:s.dot}))},gB=function(t){var r=t.hex,n=t.rgb,i=t.onChange,o=Se({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),a=function(u,l){u.r||u.g||u.b?i({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},l):i({hex:u.hex,source:"hex"},l)};return g.createElement("div",{style:o.fields,className:"flexbox-fix"},g.createElement("div",{style:o.active}),g.createElement(je,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"hex",value:r,onChange:a}),g.createElement(je,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:a}),g.createElement(je,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:a}),g.createElement(je,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:a}))},wf=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.colors,o=t.hex,a=t.rgb,s=t.styles,u=s===void 0?{}:s,l=t.className,c=l===void 0?"":l,f=Se(Yt({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),d=function(m,p){m.hex?cn(m.hex)&&r({hex:m.hex,source:"hex"},p):r(m,p)};return g.createElement(ea,{style:f.Compact,styles:u},g.createElement("div",{style:f.compact,className:"compact-picker "+c},g.createElement("div",null,Ln(i,function(h){return g.createElement(pB,{key:h,color:h,active:h.toLowerCase()===o,onClick:d,onSwatchHover:n})}),g.createElement("div",{style:f.clear})),g.createElement(gB,{hex:o,rgb:a,onChange:d})))};wf.propTypes={colors:T.arrayOf(T.string),styles:T.object},wf.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},Gt(wf);var mB=function(t){var r=t.hover,n=t.color,i=t.onClick,o=t.onSwatchHover,a={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=Se({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:a}},{hover:r});return g.createElement("div",{style:s.swatch},g.createElement(Fn,{color:n,onClick:i,onHover:o,focusStyle:a}))};const vB=Uc(mB);var Cf=function(t){var r=t.width,n=t.colors,i=t.onChange,o=t.onSwatchHover,a=t.triangle,s=t.styles,u=s===void 0?{}:s,l=t.className,c=l===void 0?"":l,f=Se(Yt({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},u),{"hide-triangle":a==="hide","top-left-triangle":a==="top-left","top-right-triangle":a==="top-right","bottom-left-triangle":a==="bottom-left","bottom-right-triangle":a==="bottom-right"}),d=function(m,p){return i({hex:m,source:"hex"},p)};return g.createElement("div",{style:f.card,className:"github-picker "+c},g.createElement("div",{style:f.triangleShadow}),g.createElement("div",{style:f.triangle}),Ln(n,function(h){return g.createElement(vB,{color:h,key:h,onClick:d,onSwatchHover:o})}))};Cf.propTypes={width:T.oneOfType([T.string,T.number]),colors:T.arrayOf(T.string),triangle:T.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:T.object},Cf.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},Gt(Cf);var yB=function(t){var r=t.direction,n=Se({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return g.createElement("div",{style:n.picker})},bB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sf=function(t){var r=t.width,n=t.height,i=t.onChange,o=t.hsl,a=t.direction,s=t.pointer,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=Se(Yt({default:{picker:{position:"relative",width:r,height:n},hue:{radius:"2px"}}},l)),h=function(p){return i({a:1,h:p.h,l:.5,s:1})};return g.createElement("div",{style:d.picker,className:"hue-picker "+f},g.createElement(Oi,bB({},d.hue,{hsl:o,pointer:s,onChange:h,direction:a})))};Sf.propTypes={styles:T.object},Sf.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:yB,styles:{}},Gt(Sf);var xB=function(t){var r=t.onChange,n=t.hex,i=t.rgb,o=t.styles,a=o===void 0?{}:o,s=t.className,u=s===void 0?"":s,l=Se(Yt({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},a)),c=function(d,h){d.hex?cn(d.hex)&&r({hex:d.hex,source:"hex"},h):(d.r||d.g||d.b)&&r({r:d.r||i.r,g:d.g||i.g,b:d.b||i.b,source:"rgb"},h)};return g.createElement(ea,{styles:a},g.createElement("div",{style:l.material,className:"material-picker "+u},g.createElement(je,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:n,onChange:c}),g.createElement("div",{style:l.split,className:"flexbox-fix"},g.createElement("div",{style:l.third},g.createElement(je,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:i.r,onChange:c})),g.createElement("div",{style:l.third},g.createElement(je,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:i.g,onChange:c})),g.createElement("div",{style:l.third},g.createElement(je,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:i.b,onChange:c})))))};Gt(xB);var wB=function(t){var r=t.onChange,n=t.rgb,i=t.hsv,o=t.hex,a=Se({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(l,c){l["#"]?cn(l["#"])&&r({hex:l["#"],source:"hex"},c):l.r||l.g||l.b?r({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},c):(l.h||l.s||l.v)&&r({h:l.h||i.h,s:l.s||i.s,v:l.v||i.v,source:"hsv"},c)};return g.createElement("div",{style:a.fields},g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"h",value:Math.round(i.h),onChange:s}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"s",value:Math.round(i.s*100),onChange:s}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"v",value:Math.round(i.v*100),onChange:s}),g.createElement("div",{style:a.divider}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:s}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:s}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:s}),g.createElement("div",{style:a.divider}),g.createElement(je,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"#",value:o.replace("#",""),onChange:s}),g.createElement("div",{style:a.fieldSymbols},g.createElement("div",{style:a.symbol},"°"),g.createElement("div",{style:a.symbol},"%"),g.createElement("div",{style:a.symbol},"%")))},CB=function(t){var r=t.hsl,n=Se({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":r.l>.5});return g.createElement("div",{style:n.picker})},SB=function(){var t=Se({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return g.createElement("div",{style:t.pointer},g.createElement("div",{style:t.left},g.createElement("div",{style:t.leftInside})),g.createElement("div",{style:t.right},g.createElement("div",{style:t.rightInside})))},b1=function(t){var r=t.onClick,n=t.label,i=t.children,o=t.active,a=Se({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:o});return g.createElement("div",{style:a.button,onClick:r},n||i)},EB=function(t){var r=t.rgb,n=t.currentColor,i=Se({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return g.createElement("div",null,g.createElement("div",{style:i.label},"new"),g.createElement("div",{style:i.swatches},g.createElement("div",{style:i.new}),g.createElement("div",{style:i.current})),g.createElement("div",{style:i.label},"current"))},TB=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function _B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function kB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Ef=function(e){kB(t,e);function t(r){_B(this,t);var n=OB(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return TB(t,[{key:"render",value:function(){var n=this.props,i=n.styles,o=i===void 0?{}:i,a=n.className,s=a===void 0?"":a,u=Se(Yt({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},o));return g.createElement("div",{style:u.picker,className:"photoshop-picker "+s},g.createElement("div",{style:u.head},this.props.header),g.createElement("div",{style:u.body,className:"flexbox-fix"},g.createElement("div",{style:u.saturation},g.createElement(Ws,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:CB,onChange:this.props.onChange})),g.createElement("div",{style:u.hue},g.createElement(Oi,{direction:"vertical",hsl:this.props.hsl,pointer:SB,onChange:this.props.onChange})),g.createElement("div",{style:u.controls},g.createElement("div",{style:u.top,className:"flexbox-fix"},g.createElement("div",{style:u.previews},g.createElement(EB,{rgb:this.props.rgb,currentColor:this.state.currentColor})),g.createElement("div",{style:u.actions},g.createElement(b1,{label:"OK",onClick:this.props.onAccept,active:!0}),g.createElement(b1,{label:"Cancel",onClick:this.props.onCancel}),g.createElement(wB,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(g.Component);Ef.propTypes={header:T.string,styles:T.object},Ef.defaultProps={header:"Color Picker",styles:{}},Gt(Ef);var MB=function(t){var r=t.onChange,n=t.rgb,i=t.hsl,o=t.hex,a=t.disableAlpha,s=Se({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),u=function(c,f){c.hex?cn(c.hex)&&r({hex:c.hex,source:"hex"},f):c.r||c.g||c.b?r({r:c.r||n.r,g:c.g||n.g,b:c.b||n.b,a:n.a,source:"rgb"},f):c.a&&(c.a<0?c.a=0:c.a>100&&(c.a=100),c.a/=100,r({h:i.h,s:i.s,l:i.l,a:c.a,source:"rgb"},f))};return g.createElement("div",{style:s.fields,className:"flexbox-fix"},g.createElement("div",{style:s.double},g.createElement(je,{style:{input:s.input,label:s.label},label:"hex",value:o.replace("#",""),onChange:u})),g.createElement("div",{style:s.single},g.createElement(je,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),g.createElement("div",{style:s.single},g.createElement(je,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),g.createElement("div",{style:s.single},g.createElement(je,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),g.createElement("div",{style:s.alpha},g.createElement(je,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:u,dragLabel:"true",dragMax:"100"})))},PB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},x1=function(t){var r=t.colors,n=t.onClick,i=n===void 0?function(){}:n,o=t.onSwatchHover,a=Se({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!r||!r.length}),s=function(l,c){i({hex:l,source:"hex"},c)};return g.createElement("div",{style:a.colors,className:"flexbox-fix"},r.map(function(u){var l=typeof u=="string"?{color:u}:u,c=""+l.color+(l.title||"");return g.createElement("div",{key:c,style:a.swatchWrap},g.createElement(Fn,PB({},l,{style:a.swatch,onClick:s,onHover:o,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+l.color}})))}))};x1.propTypes={colors:T.arrayOf(T.oneOfType([T.string,T.shape({color:T.string,title:T.string})])).isRequired};var AB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tf=function(t){var r=t.width,n=t.rgb,i=t.hex,o=t.hsv,a=t.hsl,s=t.onChange,u=t.onSwatchHover,l=t.disableAlpha,c=t.presetColors,f=t.renderers,d=t.styles,h=d===void 0?{}:d,m=t.className,p=m===void 0?"":m,v=Se(Yt({default:AB({picker:{width:r,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},h),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},h),{disableAlpha:l});return g.createElement("div",{style:v.picker,className:"sketch-picker "+p},g.createElement("div",{style:v.saturation},g.createElement(Ws,{style:v.Saturation,hsl:a,hsv:o,onChange:s})),g.createElement("div",{style:v.controls,className:"flexbox-fix"},g.createElement("div",{style:v.sliders},g.createElement("div",{style:v.hue},g.createElement(Oi,{style:v.Hue,hsl:a,onChange:s})),g.createElement("div",{style:v.alpha},g.createElement(Gc,{style:v.Alpha,rgb:n,hsl:a,renderers:f,onChange:s}))),g.createElement("div",{style:v.color},g.createElement(_i,null),g.createElement("div",{style:v.activeColor}))),g.createElement(MB,{rgb:n,hsl:a,hex:i,onChange:s,disableAlpha:l}),g.createElement(x1,{colors:c,onClick:s,onSwatchHover:u}))};Tf.propTypes={disableAlpha:T.bool,width:T.oneOfType([T.string,T.number]),styles:T.object},Tf.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},Gt(Tf);var aa=function(t){var r=t.hsl,n=t.offset,i=t.onClick,o=i===void 0?function(){}:i,a=t.active,s=t.first,u=t.last,l=Se({default:{swatch:{height:"12px",background:"hsl("+r.h+", 50%, "+n*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:a,first:s,last:u}),c=function(d){return o({h:r.h,s:.5,l:n,source:"hsl"},d)};return g.createElement("div",{style:l.swatch,onClick:c})},DB=function(t){var r=t.onClick,n=t.hsl,i=Se({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),o=.1;return g.createElement("div",{style:i.swatches},g.createElement("div",{style:i.swatch},g.createElement(aa,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<o&&Math.abs(n.s-.5)<o,onClick:r,first:!0})),g.createElement("div",{style:i.swatch},g.createElement(aa,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<o&&Math.abs(n.s-.5)<o,onClick:r})),g.createElement("div",{style:i.swatch},g.createElement(aa,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<o&&Math.abs(n.s-.5)<o,onClick:r})),g.createElement("div",{style:i.swatch},g.createElement(aa,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<o&&Math.abs(n.s-.5)<o,onClick:r})),g.createElement("div",{style:i.swatch},g.createElement(aa,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<o&&Math.abs(n.s-.5)<o,onClick:r,last:!0})),g.createElement("div",{style:i.clear}))},$B=function(){var t=Se({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return g.createElement("div",{style:t.picker})},_f=function(t){var r=t.hsl,n=t.onChange,i=t.pointer,o=t.styles,a=o===void 0?{}:o,s=t.className,u=s===void 0?"":s,l=Se(Yt({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},a));return g.createElement("div",{style:l.wrap||{},className:"slider-picker "+u},g.createElement("div",{style:l.hue},g.createElement(Oi,{style:l.Hue,hsl:r,pointer:i,onChange:n})),g.createElement("div",{style:l.swatches},g.createElement(DB,{hsl:r,onClick:n})))};_f.propTypes={styles:T.object},_f.defaultProps={pointer:$B,styles:{}},Gt(_f);var w1={};Object.defineProperty(w1,"__esModule",{value:!0});var C1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IB=g,S1=FB(IB);function FB(e){return e&&e.__esModule?e:{default:e}}function jB(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Xs=24,LB=w1.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,i=n===void 0?Xs:n,o=e.height,a=o===void 0?Xs:o,s=e.style,u=s===void 0?{}:s,l=jB(e,["fill","width","height","style"]);return S1.default.createElement("svg",C1({viewBox:"0 0 "+Xs+" "+Xs,style:C1({fill:r,width:i,height:a},u)},l),S1.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},RB=function(t){var r=t.color,n=t.onClick,i=n===void 0?function(){}:n,o=t.onSwatchHover,a=t.first,s=t.last,u=t.active,l=Se({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:lf(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:a,last:s,active:u,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return g.createElement(Fn,{color:r,style:l.color,onClick:i,onHover:o,focusStyle:{boxShadow:"0 0 4px "+r}},g.createElement("div",{style:l.check},g.createElement(LB,null)))},BB=function(t){var r=t.onClick,n=t.onSwatchHover,i=t.group,o=t.active,a=Se({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return g.createElement("div",{style:a.group},Ln(i,function(s,u){return g.createElement(RB,{key:s,color:s,active:s.toLowerCase()===o,first:u===0,last:u===i.length-1,onClick:r,onSwatchHover:n})}))},Of=function(t){var r=t.width,n=t.height,i=t.onChange,o=t.onSwatchHover,a=t.colors,s=t.hex,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=Se(Yt({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},l)),h=function(p,v){return i({hex:p,source:"hex"},v)};return g.createElement("div",{style:d.picker,className:"swatches-picker "+f},g.createElement(ea,null,g.createElement("div",{style:d.overflow},g.createElement("div",{style:d.body},Ln(a,function(m){return g.createElement(BB,{key:m.toString(),group:m,active:s,onClick:h,onSwatchHover:o})}),g.createElement("div",{style:d.clear})))))};Of.propTypes={width:T.oneOfType([T.string,T.number]),height:T.oneOfType([T.string,T.number]),colors:T.arrayOf(T.arrayOf(T.string)),styles:T.object},Of.defaultProps={width:320,height:240,colors:[[Mi[900],Mi[700],Mi[500],Mi[300],Mi[100]],[Pi[900],Pi[700],Pi[500],Pi[300],Pi[100]],[Ai[900],Ai[700],Ai[500],Ai[300],Ai[100]],[Di[900],Di[700],Di[500],Di[300],Di[100]],[$i[900],$i[700],$i[500],$i[300],$i[100]],[Ii[900],Ii[700],Ii[500],Ii[300],Ii[100]],[Fi[900],Fi[700],Fi[500],Fi[300],Fi[100]],[ji[900],ji[700],ji[500],ji[300],ji[100]],[Li[900],Li[700],Li[500],Li[300],Li[100]],["#194D33",oa[700],oa[500],oa[300],oa[100]],[Ri[900],Ri[700],Ri[500],Ri[300],Ri[100]],[Bi[900],Bi[700],Bi[500],Bi[300],Bi[100]],[Ni[900],Ni[700],Ni[500],Ni[300],Ni[100]],[zi[900],zi[700],zi[500],zi[300],zi[100]],[Vi[900],Vi[700],Vi[500],Vi[300],Vi[100]],[Wi[900],Wi[700],Wi[500],Wi[300],Wi[100]],[Hi[900],Hi[700],Hi[500],Hi[300],Hi[100]],[Ui[900],Ui[700],Ui[500],Ui[300],Ui[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},Gt(Of);var kf=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.hex,o=t.colors,a=t.width,s=t.triangle,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=Se(Yt({default:{card:{width:a,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},l),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),h=function(p,v){cn(p)&&r({hex:p,source:"hex"},v)};return g.createElement("div",{style:d.card,className:"twitter-picker "+f},g.createElement("div",{style:d.triangleShadow}),g.createElement("div",{style:d.triangle}),g.createElement("div",{style:d.body},Ln(o,function(m,p){return g.createElement(Fn,{key:p,color:m,hex:m,style:d.swatch,onClick:h,onHover:n,focusStyle:{boxShadow:"0 0 4px "+m}})}),g.createElement("div",{style:d.hash},"#"),g.createElement(je,{label:null,style:{input:d.input},value:i.replace("#",""),onChange:h}),g.createElement("div",{style:d.clear})))};kf.propTypes={width:T.oneOfType([T.string,T.number]),triangle:T.oneOf(["hide","top-left","top-right"]),colors:T.arrayOf(T.string),styles:T.object},kf.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},Gt(kf);var Mf=function(t){var r=Se({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return g.createElement("div",{style:r.picker})};Mf.propTypes={hsl:T.shape({h:T.number,s:T.number,l:T.number,a:T.number})},Mf.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Pf=function(t){var r=Se({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return g.createElement("div",{style:r.picker})};Pf.propTypes={hsl:T.shape({h:T.number,s:T.number,l:T.number,a:T.number})},Pf.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var NB=function(t){var r=t.onChange,n=t.rgb,i=t.hsl,o=t.hex,a=t.hsv,s=function(h,m){if(h.hex)cn(h.hex)&&r({hex:h.hex,source:"hex"},m);else if(h.rgb){var p=h.rgb.split(",");uf(h.rgb,"rgb")&&r({r:p[0],g:p[1],b:p[2],a:1,source:"rgb"},m)}else if(h.hsv){var v=h.hsv.split(",");uf(h.hsv,"hsv")&&(v[2]=v[2].replace("%",""),v[1]=v[1].replace("%",""),v[0]=v[0].replace("°",""),v[1]==1?v[1]=.01:v[2]==1&&(v[2]=.01),r({h:Number(v[0]),s:Number(v[1]),v:Number(v[2]),source:"hsv"},m))}else if(h.hsl){var x=h.hsl.split(",");uf(h.hsl,"hsl")&&(x[2]=x[2].replace("%",""),x[1]=x[1].replace("%",""),x[0]=x[0].replace("°",""),f[1]==1?f[1]=.01:f[2]==1&&(f[2]=.01),r({h:Number(x[0]),s:Number(x[1]),v:Number(x[2]),source:"hsl"},m))}},u=Se({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),l=n.r+", "+n.g+", "+n.b,c=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.l*100)+"%",f=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.v*100)+"%";return g.createElement("div",{style:u.wrap,className:"flexbox-fix"},g.createElement("div",{style:u.fields},g.createElement("div",{style:u.double},g.createElement(je,{style:{input:u.input,label:u.label},label:"hex",value:o,onChange:s})),g.createElement("div",{style:u.column},g.createElement("div",{style:u.single},g.createElement(je,{style:{input:u.input2,label:u.label2},label:"rgb",value:l,onChange:s})),g.createElement("div",{style:u.single},g.createElement(je,{style:{input:u.input2,label:u.label2},label:"hsv",value:f,onChange:s})),g.createElement("div",{style:u.single},g.createElement(je,{style:{input:u.input2,label:u.label2},label:"hsl",value:c,onChange:s})))))},Af=function(t){var r=t.width,n=t.onChange,i=t.rgb,o=t.hsl,a=t.hsv,s=t.hex,u=t.header,l=t.styles,c=l===void 0?{}:l,f=t.className,d=f===void 0?"":f,h=Se(Yt({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+i.r+", "+i.g+", "+i.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},c));return g.createElement("div",{style:h.picker,className:"google-picker "+d},g.createElement("div",{style:h.head},u),g.createElement("div",{style:h.swatch}),g.createElement("div",{style:h.saturation},g.createElement(Ws,{hsl:o,hsv:a,pointer:Mf,onChange:n})),g.createElement("div",{style:h.body},g.createElement("div",{style:h.controls,className:"flexbox-fix"},g.createElement("div",{style:h.hue},g.createElement(Oi,{style:h.Hue,hsl:o,radius:"4px",pointer:Pf,onChange:n}))),g.createElement(NB,{rgb:i,hsl:o,hex:s,hsv:a,onChange:n})))};Af.propTypes={width:T.oneOfType([T.string,T.number]),styles:T.object,header:T.string},Af.defaultProps={width:652,styles:{},header:"Color picker"},Gt(Af);const sa=/^[a-z0-9]+(-[a-z0-9]+)*$/,Zs=(e,t,r,n="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const s=i.pop(),u=i.pop(),l={provider:i.length>0?i[0]:n,prefix:u,name:s};return t&&!Qs(l)?null:l}const o=i[0],a=o.split("-");if(a.length>1){const s={provider:n,prefix:a.shift(),name:a.join("-")};return t&&!Qs(s)?null:s}if(r&&n===""){const s={provider:n,prefix:"",name:o};return t&&!Qs(s,r)?null:s}return null},Qs=(e,t)=>e?!!((e.provider===""||e.provider.match(sa))&&(t&&e.prefix===""||e.prefix.match(sa))&&e.name.match(sa)):!1,E1=Object.freeze({left:0,top:0,width:16,height:16}),Js=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Df=Object.freeze({...E1,...Js}),$f=Object.freeze({...Df,body:"",hidden:!1});function zB(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function T1(e,t){const r=zB(e,t);for(const n in $f)n in Js?n in e&&!(n in r)&&(r[n]=Js[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function VB(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function o(a){if(r[a])return i[a]=[];if(!(a in i)){i[a]=null;const s=n[a]&&n[a].parent,u=s&&o(s);u&&(i[a]=[s].concat(u))}return i[a]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(o),i}function WB(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function a(s){o=T1(n[s]||i[s],o)}return a(t),r.forEach(a),T1(e,o)}function _1(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),r.push(i)});const n=VB(e);for(const i in n){const o=n[i];o&&(t(i,WB(e,i,o)),r.push(i))}return r}const HB={provider:"",aliases:{},not_found:{},...E1};function If(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function O1(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!If(e,HB))return null;const r=t.icons;for(const i in r){const o=r[i];if(!i.match(sa)||typeof o.body!="string"||!If(o,$f))return null}const n=t.aliases||Object.create(null);for(const i in n){const o=n[i],a=o.parent;if(!i.match(sa)||typeof a!="string"||!r[a]&&!n[a]||!If(o,$f))return null}return t}const k1=Object.create(null);function UB(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Rn(e,t){const r=k1[e]||(k1[e]=Object.create(null));return r[t]||(r[t]=UB(e,t))}function Ff(e,t){return O1(t)?_1(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function YB(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let la=!1;function M1(e){return typeof e=="boolean"&&(la=e),la}function GB(e){const t=typeof e=="string"?Zs(e,!0,la):e;if(t){const r=Rn(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function qB(e,t){const r=Zs(e,!0,la);if(!r)return!1;const n=Rn(r.provider,r.prefix);return YB(n,r.name,t)}function KB(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),la&&!t&&!e.prefix){let i=!1;return O1(e)&&(e.prefix="",_1(e,(o,a)=>{a&&qB(o,a)&&(i=!0)})),i}const r=e.prefix;if(!Qs({provider:t,prefix:r,name:"a"}))return!1;const n=Rn(t,r);return!!Ff(n,e)}const P1=Object.freeze({width:null,height:null}),A1=Object.freeze({...P1,...Js}),XB=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ZB=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function D1(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(XB);if(n===null||!n.length)return e;const i=[];let o=n.shift(),a=ZB.test(o);for(;;){if(a){const s=parseFloat(o);isNaN(s)?i.push(o):i.push(Math.ceil(s*t*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");a=!a}}const QB=e=>e==="unset"||e==="undefined"||e==="none";function JB(e,t){const r={...Df,...e},n={...A1,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(m=>{const p=[],v=m.hFlip,x=m.vFlip;let b=m.rotate;v?x?b+=2:(p.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),p.push("scale(-1 1)"),i.top=i.left=0):x&&(p.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),p.push("scale(1 -1)"),i.top=i.left=0);let C;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:C=i.height/2+i.top,p.unshift("rotate(90 "+C.toString()+" "+C.toString()+")");break;case 2:p.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:C=i.width/2+i.left,p.unshift("rotate(-90 "+C.toString()+" "+C.toString()+")");break}b%2===1&&(i.left!==i.top&&(C=i.left,i.left=i.top,i.top=C),i.width!==i.height&&(C=i.width,i.width=i.height,i.height=C)),p.length&&(o='<g transform="'+p.join(" ")+'">'+o+"</g>")});const a=n.width,s=n.height,u=i.width,l=i.height;let c,f;a===null?(f=s===null?"1em":s==="auto"?l:s,c=D1(f,u/l)):(c=a==="auto"?u:a,f=s===null?D1(c,l/u):s==="auto"?l:s);const d={},h=(m,p)=>{QB(p)||(d[m]=p.toString())};return h("width",c),h("height",f),d.viewBox=i.left.toString()+" "+i.top.toString()+" "+u.toString()+" "+l.toString(),{attributes:d,body:o}}const eN=/\sid="(\S+)"/g,tN="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let rN=0;function nN(e,t=tN){const r=[];let n;for(;n=eN.exec(e);)r.push(n[1]);if(!r.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(o=>{const a=typeof t=="function"?t(o):t+(rN++).toString(),s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const jf=Object.create(null);function iN(e,t){jf[e]=t}function Lf(e){return jf[e]||jf[""]}function Rf(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Bf=Object.create(null),ua=["https://api.simplesvg.com","https://api.unisvg.com"],el=[];for(;ua.length>0;)ua.length===1||Math.random()>.5?el.push(ua.shift()):el.push(ua.pop());Bf[""]=Rf({resources:["https://api.iconify.design"].concat(el)});function oN(e,t){const r=Rf(t);return r===null?!1:(Bf[e]=r,!0)}function Nf(e){return Bf[e]}let $1=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function aN(e,t){const r=Nf(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let i=0;r.resources.forEach(a=>{i=Math.max(i,a.length)});const o=t+".json?icons=";n=r.maxURL-i-r.path.length-o.length}return n}function sN(e){return e===404}const lN=(e,t,r)=>{const n=[],i=aN(e,t),o="icons";let a={type:o,provider:e,prefix:t,icons:[]},s=0;return r.forEach((u,l)=>{s+=u.length+1,s>=i&&l>0&&(n.push(a),a={type:o,provider:e,prefix:t,icons:[]},s=u.length),a.icons.push(u)}),n.push(a),n};function uN(e){if(typeof e=="string"){const t=Nf(e);if(t)return t.path}return"/"}const cN={prepare:lN,send:(e,t,r)=>{if(!$1){r("abort",424);return}let n=uN(t.provider);switch(t.type){case"icons":{const o=t.prefix,s=t.icons.join(","),u=new URLSearchParams({icons:s});n+=o+".json?"+u.toString();break}case"custom":{const o=t.uri;n+=o.slice(0,1)==="/"?o.slice(1):o;break}default:r("abort",400);return}let i=503;$1(e+n).then(o=>{const a=o.status;if(a!==200){setTimeout(()=>{r(sN(a)?"abort":"next",a)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?r("abort",o):r("next",i)});return}setTimeout(()=>{r("success",o)})}).catch(()=>{r("next",i)})}};function fN(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let n={provider:"",prefix:"",name:""};return e.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const o=i.provider,a=i.prefix,s=i.name,u=r[o]||(r[o]=Object.create(null)),l=u[a]||(u[a]=Rn(o,a));let c;s in l.icons?c=t.loaded:a===""||l.missing.has(s)?c=t.missing:c=t.pending;const f={provider:o,prefix:a,name:s};c.push(f)}),t}function I1(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function dN(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,i=e.prefix;t.forEach(o=>{const a=o.icons,s=a.pending.length;a.pending=a.pending.filter(u=>{if(u.prefix!==i)return!0;const l=u.name;if(e.icons[l])a.loaded.push({provider:n,prefix:i,name:l});else if(e.missing.has(l))a.missing.push({provider:n,prefix:i,name:l});else return r=!0,!0;return!1}),a.pending.length!==s&&(r||I1([e],o.id),o.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),o.abort))})}))}let hN=0;function pN(e,t,r){const n=hN++,i=I1.bind(null,r,n);if(!t.pending.length)return i;const o={id:n,icons:t,callback:e,abort:i};return r.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(o)}),i}function gN(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const o=typeof i=="string"?Zs(i,t,r):i;o&&n.push(o)}),n}var mN={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function vN(e,t,r,n){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let _=e.resources.slice(0);for(a=[];_.length>1;){const O=Math.floor(Math.random()*_.length);a.push(_[O]),_=_.slice(0,O).concat(_.slice(O+1))}a=a.concat(_)}else a=e.resources.slice(o).concat(e.resources.slice(0,o));const s=Date.now();let u="pending",l=0,c,f=null,d=[],h=[];typeof n=="function"&&h.push(n);function m(){f&&(clearTimeout(f),f=null)}function p(){u==="pending"&&(u="aborted"),m(),d.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),d=[]}function v(_,O){O&&(h=[]),typeof _=="function"&&h.push(_)}function x(){return{startTime:s,payload:t,status:u,queriesSent:l,queriesPending:d.length,subscribe:v,abort:p}}function b(){u="failed",h.forEach(_=>{_(void 0,c)})}function C(){d.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),d=[]}function E(_,O,k){const D=O!=="success";switch(d=d.filter(L=>L!==_),u){case"pending":break;case"failed":if(D||!e.dataAfterTimeout)return;break;default:return}if(O==="abort"){c=k,b();return}if(D){c=k,d.length||(a.length?w():b());return}if(m(),C(),!e.random){const L=e.resources.indexOf(_.resource);L!==-1&&L!==e.index&&(e.index=L)}u="completed",h.forEach(L=>{L(k)})}function w(){if(u!=="pending")return;m();const _=a.shift();if(_===void 0){if(d.length){f=setTimeout(()=>{m(),u==="pending"&&(C(),b())},e.timeout);return}b();return}const O={status:"pending",resource:_,callback:(k,D)=>{E(O,k,D)}};d.push(O),l++,f=setTimeout(w,e.rotate),r(_,t,O.callback)}return setTimeout(w),x}function F1(e){const t={...mN,...e};let r=[];function n(){r=r.filter(s=>s().status==="pending")}function i(s,u,l){const c=vN(t,s,u,(f,d)=>{n(),l&&l(f,d)});return r.push(c),c}function o(s){return r.find(u=>s(u))||null}return{query:i,find:o,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:n}}function j1(){}const zf=Object.create(null);function yN(e){if(!zf[e]){const t=Nf(e);if(!t)return;const r=F1(t),n={config:t,redundancy:r};zf[e]=n}return zf[e]}function bN(e,t,r){let n,i;if(typeof e=="string"){const o=Lf(e);if(!o)return r(void 0,424),j1;i=o.send;const a=yN(e);a&&(n=a.redundancy)}else{const o=Rf(e);if(o){n=F1(o);const a=e.resources?e.resources[0]:"",s=Lf(a);s&&(i=s.send)}}return!n||!i?(r(void 0,424),j1):n.query(t,i,r)().abort}const L1="iconify2",ca="iconify",R1=ca+"-count",B1=ca+"-version",N1=36e5,xN=168;function Vf(e,t){try{return e.getItem(t)}catch{}}function Wf(e,t,r){try{return e.setItem(t,r),!0}catch{}}function z1(e,t){try{e.removeItem(t)}catch{}}function Hf(e,t){return Wf(e,R1,t.toString())}function Uf(e){return parseInt(Vf(e,R1))||0}const tl={local:!0,session:!0},V1={local:new Set,session:new Set};let Yf=!1;function wN(e){Yf=e}let rl=typeof window>"u"?{}:window;function W1(e){const t=e+"Storage";try{if(rl&&rl[t]&&typeof rl[t].length=="number")return rl[t]}catch{}tl[e]=!1}function H1(e,t){const r=W1(e);if(!r)return;const n=Vf(r,B1);if(n!==L1){if(n){const s=Uf(r);for(let u=0;u<s;u++)z1(r,ca+u.toString())}Wf(r,B1,L1),Hf(r,0);return}const i=Math.floor(Date.now()/N1)-xN,o=s=>{const u=ca+s.toString(),l=Vf(r,u);if(typeof l=="string"){try{const c=JSON.parse(l);if(typeof c=="object"&&typeof c.cached=="number"&&c.cached>i&&typeof c.provider=="string"&&typeof c.data=="object"&&typeof c.data.prefix=="string"&&t(c,s))return!0}catch{}z1(r,u)}};let a=Uf(r);for(let s=a-1;s>=0;s--)o(s)||(s===a-1?(a--,Hf(r,a)):V1[e].add(s))}function U1(){if(!Yf){wN(!0);for(const e in tl)H1(e,t=>{const r=t.data,n=t.provider,i=r.prefix,o=Rn(n,i);if(!Ff(o,r).length)return!1;const a=r.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,a):a,!0})}}function CN(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in tl)H1(n,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function SN(e,t){Yf||U1();function r(n){let i;if(!tl[n]||!(i=W1(n)))return;const o=V1[n];let a;if(o.size)o.delete(a=Array.from(o).shift());else if(a=Uf(i),!Hf(i,a+1))return;const s={cached:Math.floor(Date.now()/N1),provider:e.provider,data:t};return Wf(i,ca+a.toString(),JSON.stringify(s))}t.lastModified&&!CN(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function Y1(){}function EN(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,dN(e)}))}function TN(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,i=e.iconsToLoad;delete e.iconsToLoad;let o;if(!i||!(o=Lf(r)))return;o.prepare(r,n,i).forEach(s=>{bN(r,s,u=>{if(typeof u!="object")s.icons.forEach(l=>{e.missing.add(l)});else try{const l=Ff(e,u);if(!l.length)return;const c=e.pendingIcons;c&&l.forEach(f=>{c.delete(f)}),SN(e,u)}catch(l){console.error(l)}EN(e)})})}))}const _N=(e,t)=>{const r=gN(e,!0,M1()),n=fN(r);if(!n.pending.length){let u=!0;return t&&setTimeout(()=>{u&&t(n.loaded,n.missing,n.pending,Y1)}),()=>{u=!1}}const i=Object.create(null),o=[];let a,s;return n.pending.forEach(u=>{const{provider:l,prefix:c}=u;if(c===s&&l===a)return;a=l,s=c,o.push(Rn(l,c));const f=i[l]||(i[l]=Object.create(null));f[c]||(f[c]=[])}),n.pending.forEach(u=>{const{provider:l,prefix:c,name:f}=u,d=Rn(l,c),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),i[l][c].push(f))}),o.forEach(u=>{const{provider:l,prefix:c}=u;i[l][c].length&&TN(u,i[l][c])}),t?pN(t,n,o):Y1};function ON(e,t){const r={...e};for(const n in t){const i=t[n],o=typeof i;n in P1?(i===null||i&&(o==="string"||o==="number"))&&(r[n]=i):o===typeof r[n]&&(r[n]=n==="rotate"?i%4:i)}return r}const kN=/[\s,]+/;function MN(e,t){t.split(kN).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function PN(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(r===""){const i=parseInt(e);return isNaN(i)?0:n(i)}else if(r!==e){let i=0;switch(r){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(e.slice(0,e.length-r.length));return isNaN(o)?0:(o=o/i,o%1===0?n(o):0)}}return t}function AN(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function DN(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function $N(e){return"data:image/svg+xml,"+DN(e)}function IN(e){return'url("'+$N(e)+'")'}let fa;function FN(){try{fa=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{fa=null}}function jN(e){return fa===void 0&&FN(),fa?fa.createHTML(e):e}const G1={...A1,inline:!1},LN={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},RN={display:"inline-block"},Gf={backgroundColor:"currentColor"},q1={backgroundColor:"transparent"},K1={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},X1={WebkitMask:Gf,mask:Gf,background:q1};for(const e in X1){const t=X1[e];for(const r in K1)t[e+r]=K1[r]}const BN={...G1,inline:!0};function Z1(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const NN=(e,t,r,n)=>{const i=r?BN:G1,o=ON(i,t),a=t.mode||"svg",s={},u=t.style||{},l={...a==="svg"?LN:{},ref:n};for(let x in t){const b=t[x];if(b!==void 0)switch(x){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":o[x]=b===!0||b==="true"||b===1;break;case"flip":typeof b=="string"&&MN(o,b);break;case"color":s.color=b;break;case"rotate":typeof b=="string"?o[x]=PN(b):typeof b=="number"&&(o[x]=b);break;case"ariaHidden":case"aria-hidden":b!==!0&&b!=="true"&&delete l["aria-hidden"];break;default:i[x]===void 0&&(l[x]=b)}}const c=JB(e,o),f=c.attributes;if(o.inline&&(s.verticalAlign="-0.125em"),a==="svg"){l.style={...s,...u},Object.assign(l,f);let x=0,b=t.id;return typeof b=="string"&&(b=b.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:jN(nN(c.body,b?()=>b+"ID"+x++:"iconifyReact"))},g.createElement("svg",l)}const{body:d,width:h,height:m}=e,p=a==="mask"||(a==="bg"?!1:d.indexOf("currentColor")!==-1),v=AN(d,{...f,width:h+"",height:m+""});return l.style={...s,"--svg":IN(v),width:Z1(f.width),height:Z1(f.height),...RN,...p?Gf:q1,...u},g.createElement("span",l)};if(M1(!0),iN("",cN),typeof document<"u"&&typeof window<"u"){U1();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!KB(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const i=t[r];if(typeof i!="object"||!i||i.resources===void 0)continue;oN(r,i)||console.error(n)}catch{console.error(n)}}}}class Q1 extends g.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const r=this.state,n=this.props.icon;if(typeof n=="object"&&n!==null&&typeof n.body=="string"){this._icon="",this._abortLoading(),(t||r.icon===null)&&this._setData({data:n});return}let i;if(typeof n!="string"||(i=Zs(n,!1,!0))===null){this._abortLoading(),this._setData(null);return}const o=GB(i);if(!o){(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),o!==null&&(this._loading={name:n,abort:_N([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==n||r.icon===null){this._abortLoading(),this._icon=n;const a=["iconify"];i.prefix!==""&&a.push("iconify--"+i.prefix),i.provider!==""&&a.push("iconify--"+i.provider),this._setData({data:o,classes:a}),this.props.onLoad&&this.props.onLoad(n)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,r=this.state.icon;if(r===null)return t.children?t.children:g.createElement("span",{});let n=t;return r.classes&&(n={...t,className:(typeof t.className=="string"?t.className+" ":"")+r.classes.join(" ")}),NN({...Df,...r.data},n,t._inline,t._ref)}}const zN=g.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!1};return g.createElement(Q1,n)});g.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!0};return g.createElement(Q1,n)});const Rt=g.forwardRef(({icon:e,width:t=20,sx:r,...n},i)=>y.jsx(P.Box,{ref:i,component:zN,icon:e,sx:{width:t,height:t,...r},...n}));Rt.displayName="Iconify";const J1=({value:e,onChangeColor:t,...r})=>{const[n,i]=g.useState(null),o=s=>{i(s.currentTarget)},a=()=>i(null);return y.jsxs(y.Fragment,{children:[y.jsx(P.TextField,{...r,value:e,onChange:s=>t(s.target.value),InputProps:{inputProps:{...r.inputProps,maxLength:7},startAdornment:y.jsx(P.InputAdornment,{position:"start",sx:{ml:2},children:y.jsx(P.IconButton,{edge:"start","aria-label":"Escolher cor",onClick:o,children:y.jsx(Rt,{icon:"bi:square-fill",color:e,width:25,height:23})})})}}),y.jsx(P.Popover,{open:!!n,anchorEl:n,onClose:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:y.jsx(hB,{color:e,onChange:s=>t(s.hex),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}},disableAlpha:!0})})]})};function Ve(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Gr(e){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gr(e)}function U(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Y(e){U(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Gr(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function qf(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function nl(e,t){U(2,arguments);var r=Y(e).getTime(),n=Ve(t);return new Date(r+n)}function VN(e,t){U(2,arguments);var r=Ve(t);return nl(e,r*1e3)}var WN=6e4;function HN(e,t){U(2,arguments);var r=Ve(t);return nl(e,r*WN)}var UN=36e5;function YN(e,t){U(2,arguments);var r=Ve(t);return nl(e,r*UN)}function GN(e,t){U(2,arguments);var r=Ve(t),n=r*7;return qf(e,n)}function il(e,t){U(2,arguments);var r=Y(e),n=Ve(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+n+1,0);var a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}function ey(e,t){U(2,arguments);var r=Ve(t);return il(e,r*12)}function qN(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getFullYear()-n.getFullYear()}function Yi(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function KN(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=Yi(r,n),o=Math.abs(qN(r,n));r.setFullYear(1584),n.setFullYear(1584);var a=Yi(r,n)===-i,s=i*(o-Number(a));return s===0?0:s}function XN(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return i*12+o}function Kf(e){U(1,arguments);var t=Y(e);return t.setHours(23,59,59,999),t}function Xf(e){U(1,arguments);var t=Y(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function ZN(e){U(1,arguments);var t=Y(e);return Kf(t).getTime()===Xf(t).getTime()}function Zf(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=Yi(r,n),o=Math.abs(XN(r,n)),a;if(o<1)a=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*o);var s=Yi(r,n)===-i;ZN(Y(e))&&o===1&&Yi(e,n)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}var ty={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},QN="trunc";function da(e){return e?ty[e]:ty[QN]}function JN(e,t,r){U(2,arguments);var n=Zf(e,t)/3;return da(r==null?void 0:r.roundingMethod)(n)}function Gi(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function qi(e){U(1,arguments);var t=Y(e);return t.setHours(0,0,0,0),t}var ez=864e5;function tz(e,t){U(2,arguments);var r=qi(e),n=qi(t),i=r.getTime()-Gi(r),o=n.getTime()-Gi(n);return Math.round((i-o)/ez)}function ry(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function ny(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=ry(r,n),o=Math.abs(tz(r,n));r.setDate(r.getDate()-i*o);var a=+(ry(r,n)===-i),s=i*(o-a);return s===0?0:s}function rz(e,t,r){U(2,arguments);var n=ny(e,t)/7;return da(r==null?void 0:r.roundingMethod)(n)}var ol=6e4,al=36e5,nz=1e3;function sl(e,t){return U(2,arguments),Y(e).getTime()-Y(t).getTime()}function iz(e,t,r){U(2,arguments);var n=sl(e,t)/al;return da(r==null?void 0:r.roundingMethod)(n)}function oz(e,t,r){U(2,arguments);var n=sl(e,t)/ol;return da(r==null?void 0:r.roundingMethod)(n)}function iy(e,t,r){U(2,arguments);var n=sl(e,t)/1e3;return da(r==null?void 0:r.roundingMethod)(n)}function az(e,t){var r;U(1,arguments);var n=e||{},i=Y(n.start),o=Y(n.end),a=o.getTime();if(!(i.getTime()<=a))throw new RangeError("Invalid interval");var s=[],u=i;u.setHours(0,0,0,0);var l=Number((r=t==null?void 0:t.step)!==null&&r!==void 0?r:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=a;)s.push(Y(u)),u.setDate(u.getDate()+l),u.setHours(0,0,0,0);return s}var sz={};function xr(){return sz}function Qf(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=xr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Y(e),h=d.getDay(),m=(h<f?-7:0)+6-(h-f);return d.setDate(d.getDate()+m),d.setHours(23,59,59,999),d}function Jf(e){U(1,arguments);var t=Y(e),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}function lz(e){return U(1,arguments),e instanceof Date||Gr(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function oy(e){if(U(1,arguments),!lz(e)&&typeof e!="number")return!1;var t=Y(e);return!isNaN(Number(t))}function ay(e,t){U(2,arguments);var r=Ve(t);return nl(e,-r)}var uz=864e5;function cz(e){U(1,arguments);var t=Y(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),i=r-n;return Math.floor(i/uz)+1}function Ki(e){U(1,arguments);var t=1,r=Y(e),n=r.getUTCDay(),i=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function sy(e){U(1,arguments);var t=Y(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=Ki(n),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var a=Ki(o);return t.getTime()>=i.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function fz(e){U(1,arguments);var t=sy(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=Ki(r);return n}var dz=6048e5;function ly(e){U(1,arguments);var t=Y(e),r=Ki(t).getTime()-fz(t).getTime();return Math.round(r/dz)+1}function Bn(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=xr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Y(e),h=d.getUTCDay(),m=(h<f?7:0)+h-f;return d.setUTCDate(d.getUTCDate()-m),d.setUTCHours(0,0,0,0),d}function ed(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=Y(e),f=c.getUTCFullYear(),d=xr(),h=Ve((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(f+1,0,h),m.setUTCHours(0,0,0,0);var p=Bn(m,t),v=new Date(0);v.setUTCFullYear(f,0,h),v.setUTCHours(0,0,0,0);var x=Bn(v,t);return c.getTime()>=p.getTime()?f+1:c.getTime()>=x.getTime()?f:f-1}function hz(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=xr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=ed(e,t),h=new Date(0);h.setUTCFullYear(d,0,f),h.setUTCHours(0,0,0,0);var m=Bn(h,t);return m}var pz=6048e5;function uy(e,t){U(1,arguments);var r=Y(e),n=Bn(r,t).getTime()-hz(r,t).getTime();return Math.round(n/pz)+1}function De(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var gz={y:function(t,r){var n=t.getUTCFullYear(),i=n>0?n:1-n;return De(r==="yy"?i%100:i,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):De(n+1,2)},d:function(t,r){return De(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return De(t.getUTCHours()%12||12,r.length)},H:function(t,r){return De(t.getUTCHours(),r.length)},m:function(t,r){return De(t.getUTCMinutes(),r.length)},s:function(t,r){return De(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,n-3));return De(o,r.length)}};const fn=gz;var Xi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},mz={G:function(t,r,n){var i=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return n.ordinalNumber(o,{unit:"year"})}return fn.y(t,r)},Y:function(t,r,n,i){var o=ed(t,i),a=o>0?o:1-o;if(r==="YY"){var s=a%100;return De(s,2)}return r==="Yo"?n.ordinalNumber(a,{unit:"year"}):De(a,r.length)},R:function(t,r){var n=sy(t);return De(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return De(n,r.length)},Q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return De(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return De(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,r,n){var i=t.getUTCMonth();switch(r){case"M":case"MM":return fn.M(t,r);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,r,n){var i=t.getUTCMonth();switch(r){case"L":return String(i+1);case"LL":return De(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,r,n,i){var o=uy(t,i);return r==="wo"?n.ordinalNumber(o,{unit:"week"}):De(o,r.length)},I:function(t,r,n){var i=ly(t);return r==="Io"?n.ordinalNumber(i,{unit:"week"}):De(i,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):fn.d(t,r)},D:function(t,r,n){var i=cz(t);return r==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):De(i,r.length)},E:function(t,r,n){var i=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,r,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return De(a,2);case"eo":return n.ordinalNumber(a,{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"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return De(a,r.length);case"co":return n.ordinalNumber(a,{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"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,n){var i=t.getUTCDay(),o=i===0?7:i;switch(r){case"i":return String(o);case"ii":return De(o,r.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,r,n){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,n){var i=t.getUTCHours(),o;switch(i===12?o=Xi.noon:i===0?o=Xi.midnight:o=i/12>=1?"pm":"am",r){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"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,n){var i=t.getUTCHours(),o;switch(i>=17?o=Xi.evening:i>=12?o=Xi.afternoon:i>=4?o=Xi.morning:o=Xi.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return fn.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):fn.H(t,r)},K:function(t,r,n){var i=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(i,{unit:"hour"}):De(i,r.length)},k:function(t,r,n){var i=t.getUTCHours();return i===0&&(i=24),r==="ko"?n.ordinalNumber(i,{unit:"hour"}):De(i,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):fn.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):fn.s(t,r)},S:function(t,r){return fn.S(t,r)},X:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return fy(a);case"XXXX":case"XX":return Nn(a);case"XXXXX":case"XXX":default:return Nn(a,":")}},x:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"x":return fy(a);case"xxxx":case"xx":return Nn(a);case"xxxxx":case"xxx":default:return Nn(a,":")}},O:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+cy(a,":");case"OOOO":default:return"GMT"+Nn(a,":")}},z:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+cy(a,":");case"zzzz":default:return"GMT"+Nn(a,":")}},t:function(t,r,n,i){var o=i._originalDate||t,a=Math.floor(o.getTime()/1e3);return De(a,r.length)},T:function(t,r,n,i){var o=i._originalDate||t,a=o.getTime();return De(a,r.length)}};function cy(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(o===0)return r+String(i);var a=t||"";return r+String(i)+a+De(o,2)}function fy(e,t){if(e%60===0){var r=e>0?"-":"+";return r+De(Math.abs(e)/60,2)}return Nn(e,t)}function Nn(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),o=De(Math.floor(i/60),2),a=De(i%60,2);return n+o+r+a}const vz=mz;var dy=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},hy=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},yz=function(t,r){var n=t.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return dy(t,r);var a;switch(i){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",dy(i,r)).replace("{{time}}",hy(o,r))},bz={p:hy,P:yz};const td=bz;var xz=["D","DD"],wz=["YY","YYYY"];function py(e){return xz.indexOf(e)!==-1}function gy(e){return wz.indexOf(e)!==-1}function ll(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Cz={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"}},Sz=function(t,r,n){var i,o=Cz[t];return typeof o=="string"?i=o:r===1?i=o.one:i=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};const Ez=Sz;function Zi(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var Tz={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_z={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Oz={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kz={date:Zi({formats:Tz,defaultWidth:"full"}),time:Zi({formats:_z,defaultWidth:"full"}),dateTime:Zi({formats:Oz,defaultWidth:"full"})};const Mz=kz;var Pz={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Az=function(t,r,n,i){return Pz[t]};const Dz=Az;function Pr(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var $z={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Iz={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Fz={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"]},jz={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"]},Lz={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"}},Rz={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"}},Bz=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Nz={ordinalNumber:Bz,era:Pr({values:$z,defaultWidth:"wide"}),quarter:Pr({values:Iz,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Pr({values:Fz,defaultWidth:"wide"}),day:Pr({values:jz,defaultWidth:"wide"}),dayPeriod:Pr({values:Lz,defaultWidth:"wide",formattingValues:Rz,defaultFormattingWidth:"wide"})};const zz=Nz;function Ar(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?Wz(s,function(f){return f.test(a)}):Vz(s,function(f){return f.test(a)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var c=t.slice(a.length);return{value:l,rest:c}}}function Vz(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Wz(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function my(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var Hz=/^(\d+)(th|st|nd|rd)?/i,Uz=/\d+/i,Yz={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},Gz={any:[/^b/i,/^(a|c)/i]},qz={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Kz={any:[/1/i,/2/i,/3/i,/4/i]},Xz={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},Zz={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]},Qz={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},Jz={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]},eV={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},tV={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}},rV={ordinalNumber:my({matchPattern:Hz,parsePattern:Uz,valueCallback:function(t){return parseInt(t,10)}}),era:Ar({matchPatterns:Yz,defaultMatchWidth:"wide",parsePatterns:Gz,defaultParseWidth:"any"}),quarter:Ar({matchPatterns:qz,defaultMatchWidth:"wide",parsePatterns:Kz,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ar({matchPatterns:Xz,defaultMatchWidth:"wide",parsePatterns:Zz,defaultParseWidth:"any"}),day:Ar({matchPatterns:Qz,defaultMatchWidth:"wide",parsePatterns:Jz,defaultParseWidth:"any"}),dayPeriod:Ar({matchPatterns:eV,defaultMatchWidth:"any",parsePatterns:tV,defaultParseWidth:"any"})},nV={code:"en-US",formatDistance:Ez,formatLong:Mz,formatRelative:Dz,localize:zz,match:rV,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ul=nV;var iV=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oV=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,aV=/^'([^]*?)'?$/,sV=/''/g,lV=/[a-zA-Z]/;function rd(e,t,r){var n,i,o,a,s,u,l,c,f,d,h,m,p,v,x,b,C,E;U(2,arguments);var w=String(t),_=xr(),O=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:_.locale)!==null&&n!==void 0?n:ul,k=Ve((o=(a=(s=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(l=r.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:_.firstWeekContainsDate)!==null&&a!==void 0?a:(f=_.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=Ve((h=(m=(p=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(x=r.locale)===null||x===void 0||(b=x.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&p!==void 0?p:_.weekStartsOn)!==null&&m!==void 0?m:(C=_.locale)===null||C===void 0||(E=C.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&h!==void 0?h:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw new RangeError("locale must contain localize property");if(!O.formatLong)throw new RangeError("locale must contain formatLong property");var L=Y(e);if(!oy(L))throw new RangeError("Invalid time value");var re=Gi(L),pe=ay(L,re),se={firstWeekContainsDate:k,weekStartsOn:D,locale:O,_originalDate:L},q=w.match(oV).map(function(G){var me=G[0];if(me==="p"||me==="P"){var Ee=td[me];return Ee(G,O.formatLong)}return G}).join("").match(iV).map(function(G){if(G==="''")return"'";var me=G[0];if(me==="'")return uV(G);var Ee=vz[me];if(Ee)return!(r!=null&&r.useAdditionalWeekYearTokens)&&gy(G)&&ll(G,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&py(G)&&ll(G,t,String(e)),Ee(pe,G,O.localize,se);if(me.match(lV))throw new RangeError("Format string contains an unescaped latin alphabet character `"+me+"`");return G}).join("");return q}function uV(e){var t=e.match(aV);return t?t[1].replace(sV,"'"):e}function cV(e){U(1,arguments);var t=Y(e),r=t.getDate();return r}function vy(e){U(1,arguments);var t=Y(e),r=t.getFullYear(),n=t.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function fV(e){U(1,arguments);var t=Y(e),r=t.getHours();return r}function dV(e){U(1,arguments);var t=Y(e),r=t.getMinutes();return r}function hV(e){U(1,arguments);var t=Y(e),r=t.getMonth();return r}function pV(e){U(1,arguments);var t=Y(e),r=t.getSeconds();return r}function gV(e){U(1,arguments);var t=Y(e),r=t.getMilliseconds();return r}function zn(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=xr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Y(e),h=d.getDay(),m=(h<f?7:0)+h-f;return d.setDate(d.getDate()-m),d.setHours(0,0,0,0),d}function mV(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=Y(e),f=c.getFullYear(),d=xr(),h=Ve((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setFullYear(f+1,0,h),m.setHours(0,0,0,0);var p=zn(m,t),v=new Date(0);v.setFullYear(f,0,h),v.setHours(0,0,0,0);var x=zn(v,t);return c.getTime()>=p.getTime()?f+1:c.getTime()>=x.getTime()?f:f-1}function vV(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=xr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=mV(e,t),h=new Date(0);h.setFullYear(d,0,f),h.setHours(0,0,0,0);var m=zn(h,t);return m}var yV=6048e5;function bV(e,t){U(1,arguments);var r=Y(e),n=zn(r,t).getTime()-vV(r,t).getTime();return Math.round(n/yV)+1}function xV(e){return U(1,arguments),Y(e).getFullYear()}function nd(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getTime()>n.getTime()}function ha(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getTime()<n.getTime()}function wV(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getTime()===n.getTime()}function CV(e,t){U(2,arguments);var r=qi(e),n=qi(t);return r.getTime()===n.getTime()}function SV(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getFullYear()===n.getFullYear()}function EV(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function yy(e){U(1,arguments);var t=Y(e);return t.setMinutes(0,0,0),t}function TV(e,t){U(2,arguments);var r=yy(e),n=yy(t);return r.getTime()===n.getTime()}function by(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _V(e,t){if(e){if(typeof e=="string")return by(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return by(e,t)}}function xy(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_V(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
132
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return o=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function id(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function ae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function od(e,t){return od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},od(e,t)}function We(e,t){if(typeof t!="function"&&t!==null)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&&od(e,t)}function cl(e){return cl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cl(e)}function OV(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kV(e,t){if(t&&(Gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ae(e)}function He(e){var t=OV();return function(){var n=cl(e),i;if(t){var o=cl(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return kV(this,i)}}function Le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MV(e,t){if(Gr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wy(e){var t=MV(e,"string");return Gr(t)==="symbol"?t:String(t)}function Cy(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wy(n.key),n)}}function Re(e,t,r){return t&&Cy(e.prototype,t),r&&Cy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function te(e,t,r){return t=wy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var PV=10,Sy=function(){function e(){Le(this,e),te(this,"priority",void 0),te(this,"subPriority",0)}return Re(e,[{key:"validate",value:function(r,n){return!0}}]),e}(),AV=function(e){We(r,e);var t=He(r);function r(n,i,o,a,s){var u;return Le(this,r),u=t.call(this),u.value=n,u.validateValue=i,u.setValue=o,u.priority=a,s&&(u.subPriority=s),u}return Re(r,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,a){return this.setValue(i,o,this.value,a)}}]),r}(Sy),DV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",PV),te(ae(n),"subPriority",-1),n}return Re(r,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}}]),r}(Sy),Ge=function(){function e(){Le(this,e),te(this,"incompatibleTokens",void 0),te(this,"priority",void 0),te(this,"subPriority",void 0)}return Re(e,[{key:"run",value:function(r,n,i,o){var a=this.parse(r,n,i,o);return a?{setter:new AV(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(r,n,i){return!0}}]),e}(),$V=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",140),te(ae(n),"incompatibleTokens",["R","u","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"});case"GGGGG":return a.era(i,{width:"narrow"});case"GGGG":default:return a.era(i,{width:"wide"})||a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,a){return o.era=a,i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),Et={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Dr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Tt(e,t){return e&&{value:t(e.value),rest:e.rest}}function gt(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function $r(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,i=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,a=r[5]?parseInt(r[5],10):0;return{value:n*(i*al+o*ol+a*nz),rest:t.slice(r[0].length)}}function Ey(e){return gt(Et.anyDigitsSigned,e)}function Ct(e,t){switch(e){case 1:return gt(Et.singleDigit,t);case 2:return gt(Et.twoDigits,t);case 3:return gt(Et.threeDigits,t);case 4:return gt(Et.fourDigits,t);default:return gt(new RegExp("^\\d{1,"+e+"}"),t)}}function fl(e,t){switch(e){case 1:return gt(Et.singleDigitSigned,t);case 2:return gt(Et.twoDigitsSigned,t);case 3:return gt(Et.threeDigitsSigned,t);case 4:return gt(Et.fourDigitsSigned,t);default:return gt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ad(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Ty(e,t){var r=t>0,n=r?t:1-t,i;if(n<=50)i=e||100;else{var o=n+50,a=Math.floor(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return r?i:1-i}function _y(e){return e%400===0||e%4===0&&e%100!==0}var IV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return{year:l,isTwoDigitYear:o==="yy"}};switch(o){case"y":return Tt(Ct(4,i),s);case"yo":return Tt(a.ordinalNumber(i,{unit:"year"}),s);default:return Tt(Ct(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a){var s=i.getUTCFullYear();if(a.isTwoDigitYear){var u=Ty(a.year,s);return i.setUTCFullYear(u,0,1),i.setUTCHours(0,0,0,0),i}var l=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),FV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return{year:l,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return Tt(Ct(4,i),s);case"Yo":return Tt(a.ordinalNumber(i,{unit:"year"}),s);default:return Tt(Ct(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a,s){var u=ed(i,s);if(a.isTwoDigitYear){var l=Ty(a.year,u);return i.setUTCFullYear(l,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Bn(i,s)}var c=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Bn(i,s)}}]),r}(Ge),jV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o){return fl(o==="R"?4:o.length,i)}},{key:"set",value:function(i,o,a){var s=new Date(0);return s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0),Ki(s)}}]),r}(Ge),LV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o){return fl(o==="u"?4:o.length,i)}},{key:"set",value:function(i,o,a){return i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),RV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",120),te(ae(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"Q":case"QQ":return Ct(o.length,i);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(i,{width:"wide",context:"formatting"})||a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),BV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",120),te(ae(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"q":case"qq":return Ct(o.length,i);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(i,{width:"wide",context:"standalone"})||a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),NV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),te(ae(n),"priority",110),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l-1};switch(o){case"M":return Tt(gt(Et.month,i),s);case"MM":return Tt(Ct(2,i),s);case"Mo":return Tt(a.ordinalNumber(i,{unit:"month"}),s);case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(i,{width:"wide",context:"formatting"})||a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),zV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",110),te(ae(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l-1};switch(o){case"L":return Tt(gt(Et.month,i),s);case"LL":return Tt(Ct(2,i),s);case"Lo":return Tt(a.ordinalNumber(i,{unit:"month"}),s);case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(i,{width:"wide",context:"standalone"})||a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge);function VV(e,t,r){U(2,arguments);var n=Y(e),i=Ve(t),o=uy(n,r)-i;return n.setUTCDate(n.getUTCDate()-o*7),n}var WV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",100),te(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"w":return gt(Et.week,i);case"wo":return a.ordinalNumber(i,{unit:"week"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a,s){return Bn(VV(i,a,s),s)}}]),r}(Ge);function HV(e,t){U(2,arguments);var r=Y(e),n=Ve(t),i=ly(r)-n;return r.setUTCDate(r.getUTCDate()-i*7),r}var UV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",100),te(ae(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"I":return gt(Et.week,i);case"Io":return a.ordinalNumber(i,{unit:"week"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a){return Ki(HV(i,a))}}]),r}(Ge),YV=[31,28,31,30,31,30,31,31,30,31,30,31],GV=[31,29,31,30,31,30,31,31,30,31,30,31],qV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"subPriority",1),te(ae(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"d":return gt(Et.date,i);case"do":return a.ordinalNumber(i,{unit:"date"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=_y(a),u=i.getUTCMonth();return s?o>=1&&o<=GV[u]:o>=1&&o<=YV[u]}},{key:"set",value:function(i,o,a){return i.setUTCDate(a),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),KV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"subpriority",1),te(ae(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"D":case"DD":return gt(Et.dayOfYear,i);case"Do":return a.ordinalNumber(i,{unit:"date"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=_y(a);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,a){return i.setUTCMonth(0,a),i.setUTCHours(0,0,0,0),i}}]),r}(Ge);function sd(e,t,r){var n,i,o,a,s,u,l,c;U(2,arguments);var f=xr(),d=Ve((n=(i=(o=(a=r==null?void 0:r.weekStartsOn)!==null&&a!==void 0?a:r==null||(s=r.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&i!==void 0?i:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Y(e),m=Ve(t),p=h.getUTCDay(),v=m%7,x=(v+7)%7,b=(x<d?7:0)+m-p;return h.setUTCDate(h.getUTCDate()+b),h}var XV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=sd(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),ZV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a,s){var u=function(c){var f=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+f};switch(o){case"e":case"ee":return Tt(Ct(o.length,i),u);case"eo":return Tt(a.ordinalNumber(i,{unit:"day"}),u);case"eee":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=sd(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),QV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a,s){var u=function(c){var f=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+f};switch(o){case"c":case"cc":return Tt(Ct(o.length,i),u);case"co":return Tt(a.ordinalNumber(i,{unit:"day"}),u);case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})||a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=sd(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ge);function JV(e,t){U(2,arguments);var r=Ve(t);r%7===0&&(r=r-7);var n=1,i=Y(e),o=i.getUTCDay(),a=r%7,s=(a+7)%7,u=(s<n?7:0)+r-o;return i.setUTCDate(i.getUTCDate()+u),i}var eW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l===0?7:l};switch(o){case"i":case"ii":return Ct(o.length,i);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return Tt(a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return Tt(a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Tt(a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Tt(a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,a){return i=JV(i,a),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),tW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",80),te(ae(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"a":case"aa":case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(ad(a),0,0,0),i}}]),r}(Ge),rW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",80),te(ae(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"b":case"bb":case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(ad(a),0,0,0),i}}]),r}(Ge),nW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",80),te(ae(n),"incompatibleTokens",["a","b","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(ad(a),0,0,0),i}}]),r}(Ge),iW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["H","K","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"h":return gt(Et.hour12h,i);case"ho":return a.ordinalNumber(i,{unit:"hour"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):!s&&a===12?i.setUTCHours(0,0,0,0):i.setUTCHours(a,0,0,0),i}}]),r}(Ge),oW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"H":return gt(Et.hour23h,i);case"Ho":return a.ordinalNumber(i,{unit:"hour"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,a){return i.setUTCHours(a,0,0,0),i}}]),r}(Ge),aW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["h","H","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"K":return gt(Et.hour11h,i);case"Ko":return a.ordinalNumber(i,{unit:"hour"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):i.setUTCHours(a,0,0,0),i}}]),r}(Ge),sW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"k":return gt(Et.hour24h,i);case"ko":return a.ordinalNumber(i,{unit:"hour"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,a){var s=a<=24?a%24:a;return i.setUTCHours(s,0,0,0),i}}]),r}(Ge),lW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",60),te(ae(n),"incompatibleTokens",["t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"m":return gt(Et.minute,i);case"mo":return a.ordinalNumber(i,{unit:"minute"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCMinutes(a,0,0),i}}]),r}(Ge),uW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",50),te(ae(n),"incompatibleTokens",["t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"s":return gt(Et.second,i);case"so":return a.ordinalNumber(i,{unit:"second"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCSeconds(a,0),i}}]),r}(Ge),cW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",30),te(ae(n),"incompatibleTokens",["t","T"]),n}return Re(r,[{key:"parse",value:function(i,o){var a=function(u){return Math.floor(u*Math.pow(10,-o.length+3))};return Tt(Ct(o.length,i),a)}},{key:"set",value:function(i,o,a){return i.setUTCMilliseconds(a),i}}]),r}(Ge),fW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",10),te(ae(n),"incompatibleTokens",["t","T","x"]),n}return Re(r,[{key:"parse",value:function(i,o){switch(o){case"X":return $r(Dr.basicOptionalMinutes,i);case"XX":return $r(Dr.basic,i);case"XXXX":return $r(Dr.basicOptionalSeconds,i);case"XXXXX":return $r(Dr.extendedOptionalSeconds,i);case"XXX":default:return $r(Dr.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),r}(Ge),dW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",10),te(ae(n),"incompatibleTokens",["t","T","X"]),n}return Re(r,[{key:"parse",value:function(i,o){switch(o){case"x":return $r(Dr.basicOptionalMinutes,i);case"xx":return $r(Dr.basic,i);case"xxxx":return $r(Dr.basicOptionalSeconds,i);case"xxxxx":return $r(Dr.extendedOptionalSeconds,i);case"xxx":default:return $r(Dr.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),r}(Ge),hW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",40),te(ae(n),"incompatibleTokens","*"),n}return Re(r,[{key:"parse",value:function(i){return Ey(i)}},{key:"set",value:function(i,o,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),r}(Ge),pW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",20),te(ae(n),"incompatibleTokens","*"),n}return Re(r,[{key:"parse",value:function(i){return Ey(i)}},{key:"set",value:function(i,o,a){return[new Date(a),{timestampIsSet:!0}]}}]),r}(Ge),gW={G:new $V,y:new IV,Y:new FV,R:new jV,u:new LV,Q:new RV,q:new BV,M:new NV,L:new zV,w:new WV,I:new UV,d:new qV,D:new KV,E:new XV,e:new ZV,c:new QV,i:new eW,a:new tW,b:new rW,B:new nW,h:new iW,H:new oW,K:new aW,k:new sW,m:new lW,s:new uW,S:new cW,X:new fW,x:new dW,t:new hW,T:new pW},mW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vW=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yW=/^'([^]*?)'?$/,bW=/''/g,xW=/\S/,wW=/[a-zA-Z]/;function CW(e,t,r,n){var i,o,a,s,u,l,c,f,d,h,m,p,v,x,b,C,E,w;U(3,arguments);var _=String(e),O=String(t),k=xr(),D=(i=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:k.locale)!==null&&i!==void 0?i:ul;if(!D.match)throw new RangeError("locale must contain match property");var L=Ve((a=(s=(u=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&u!==void 0?u:k.firstWeekContainsDate)!==null&&s!==void 0?s:(d=k.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var re=Ve((m=(p=(v=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(b=n.locale)===null||b===void 0||(C=b.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&v!==void 0?v:k.weekStartsOn)!==null&&p!==void 0?p:(E=k.locale)===null||E===void 0||(w=E.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&m!==void 0?m:0);if(!(re>=0&&re<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(O==="")return _===""?Y(r):new Date(NaN);var pe={firstWeekContainsDate:L,weekStartsOn:re,locale:D},se=[new DV],q=O.match(vW).map(function(Z){var Q=Z[0];if(Q in td){var ne=td[Q];return ne(Z,D.formatLong)}return Z}).join("").match(mW),G=[],me=xy(q),Ee;try{var Ie=function(){var Q=Ee.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&gy(Q)&&ll(Q,O,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&py(Q)&&ll(Q,O,e);var ne=Q[0],be=gW[ne];if(be){var R=be.incompatibleTokens;if(Array.isArray(R)){var Be=G.find(function(ht){return R.includes(ht.token)||ht.token===ne});if(Be)throw new RangeError("The format string mustn't contain `".concat(Be.fullToken,"` and `").concat(Q,"` at the same time"))}else if(be.incompatibleTokens==="*"&&G.length>0)throw new RangeError("The format string mustn't contain `".concat(Q,"` and any other token at the same time"));G.push({token:ne,fullToken:Q});var le=be.run(_,Q,D.match,pe);if(!le)return{v:new Date(NaN)};se.push(le.setter),_=le.rest}else{if(ne.match(wW))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ne+"`");if(Q==="''"?Q="'":ne==="'"&&(Q=SW(Q)),_.indexOf(Q)===0)_=_.slice(Q.length);else return{v:new Date(NaN)}}};for(me.s();!(Ee=me.n()).done;){var Oe=Ie();if(Gr(Oe)==="object")return Oe.v}}catch(Z){me.e(Z)}finally{me.f()}if(_.length>0&&xW.test(_))return new Date(NaN);var $=se.map(function(Z){return Z.priority}).sort(function(Z,Q){return Q-Z}).filter(function(Z,Q,ne){return ne.indexOf(Z)===Q}).map(function(Z){return se.filter(function(Q){return Q.priority===Z}).sort(function(Q,ne){return ne.subPriority-Q.subPriority})}).map(function(Z){return Z[0]}),j=Y(r);if(isNaN(j.getTime()))return new Date(NaN);var X=ay(j,Gi(j)),ee={},H=xy($),fe;try{for(H.s();!(fe=H.n()).done;){var ue=fe.value;if(!ue.validate(X,pe))return new Date(NaN);var ge=ue.set(X,ee,pe);Array.isArray(ge)?(X=ge[0],id(ee,ge[1])):X=ge}}catch(Z){H.e(Z)}finally{H.f()}return X}function SW(e){return e.match(yW)[1].replace(bW,"'")}function EW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setDate(n),r}function TW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setHours(n),r}function _W(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setMinutes(n),r}function OW(e,t){U(2,arguments);var r=Y(e),n=Ve(t),i=r.getFullYear(),o=r.getDate(),a=new Date(0);a.setFullYear(i,n,15),a.setHours(0,0,0,0);var s=vy(a);return r.setMonth(n,Math.min(o,s)),r}function kW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setSeconds(n),r}function MW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setMilliseconds(n),r}function PW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function Oy(e){U(1,arguments);var t=Y(e);return t.setDate(1),t.setHours(0,0,0,0),t}function dl(e){U(1,arguments);var t=Y(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function AW(e,t){var r;U(1,arguments);var n=Ve((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=FW(e),o;if(i.date){var a=jW(i.date,n);o=LW(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),u=0,l;if(i.time&&(u=RW(i.time),isNaN(u)))return new Date(NaN);if(i.timezone){if(l=BW(i.timezone),isNaN(l))return new Date(NaN)}else{var c=new Date(s+u),f=new Date(0);return f.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),f.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),f}return new Date(s+u+l)}var hl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},DW=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,$W=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,IW=/^([+-])(\d{2})(?::?(\d{2}))?$/;function FW(e){var t={},r=e.split(hl.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],hl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(hl.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var i=hl.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function jW(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((n[1]||n[2]).length)}}function LW(e,t){if(t===null)return new Date(NaN);var r=e.match(DW);if(!r)return new Date(NaN);var n=!!r[4],i=pa(r[1]),o=pa(r[2])-1,a=pa(r[3]),s=pa(r[4]),u=pa(r[5])-1;if(n)return HW(t,s,u)?NW(t,s,u):new Date(NaN);var l=new Date(0);return!VW(t,o,a)||!WW(t,i)?new Date(NaN):(l.setUTCFullYear(t,o,Math.max(i,a)),l)}function pa(e){return e?parseInt(e):1}function RW(e){var t=e.match($W);if(!t)return NaN;var r=ld(t[1]),n=ld(t[2]),i=ld(t[3]);return UW(r,n,i)?r*al+n*ol+i*1e3:NaN}function ld(e){return e&&parseFloat(e.replace(",","."))||0}function BW(e){if(e==="Z")return 0;var t=e.match(IW);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return YW(n,i)?r*(n*al+i*ol):NaN}function NW(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,o=(t-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+o),n}var zW=[31,null,31,30,31,30,31,31,30,31,30,31];function ky(e){return e%400===0||e%4===0&&e%100!==0}function VW(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(zW[t]||(ky(e)?29:28))}function WW(e,t){return t>=1&&t<=(ky(e)?366:365)}function HW(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function UW(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function YW(e,t){return t>=0&&t<=59}function GW(e,t){var r,n;U(1,arguments);var i=Y(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var o=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),a=String((n=t==null?void 0:t.representation)!==null&&n!==void 0?n:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",u="",l=o==="extended"?"-":"",c=o==="extended"?":":"";if(a!=="time"){var f=De(i.getDate(),2),d=De(i.getMonth()+1,2),h=De(i.getFullYear(),4);s="".concat(h).concat(l).concat(d).concat(l).concat(f)}if(a!=="date"){var m=i.getTimezoneOffset();if(m!==0){var p=Math.abs(m),v=De(Math.floor(p/60),2),x=De(p%60,2),b=m<0?"+":"-";u="".concat(b).concat(v,":").concat(x)}else u="Z";var C=De(i.getHours(),2),E=De(i.getMinutes(),2),w=De(i.getSeconds(),2),_=s===""?"":"T",O=[C,E,w].join(c);s="".concat(s).concat(_).concat(O).concat(u)}return s}function qW(e,t){U(2,arguments);var r=Y(e).getTime(),n=Y(t.start).getTime(),i=Y(t.end).getTime();if(!(n<=i))throw new RangeError("Invalid interval");return r>=n&&r<=i}var ud={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(u,l){switch(u){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}},n=function(u,l){switch(u){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}},i=function(u,l){var c=u.match(/(P+)(p+)?/)||[],f=c[1],d=c[2];if(!d)return r(u,l);var h;switch(f){case"P":h=l.dateTime({width:"short"});break;case"PP":h=l.dateTime({width:"medium"});break;case"PPP":h=l.dateTime({width:"long"});break;case"PPPP":default:h=l.dateTime({width:"full"});break}return h.replace("{{date}}",r(f,l)).replace("{{time}}",n(d,l))},o={p:n,P:i},a=o;t.default=a,e.exports=t.default})(ud,ud.exports);var KW=ud.exports;const XW=xn(KW),ZW={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},QW={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",weekday:"EEEE",weekdayShort:"EEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",fullDateWithWeekday:"PPPP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",monthAndYear:"LLLL yyyy",monthAndDate:"MMMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aa",fullDateTime24h:"PP HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class JW{constructor({locale:t,formats:r}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib="date-fns",this.locale=void 0,this.formats=void 0,this.formatTokenMap=ZW,this.escapedCharacters={start:"'",end:"'"},this.date=n=>typeof n>"u"?new Date:n===null?null:new Date(n),this.dateWithTimezone=n=>this.date(n),this.getTimezone=()=>"default",this.setTimezone=n=>n,this.toJsDate=n=>n,this.parseISO=n=>AW(n),this.toISO=n=>GW(n,{format:"extended"}),this.parse=(n,i)=>n===""?null:CW(n,i,new Date,{locale:this.locale}),this.getCurrentLocaleCode=()=>{var n;return((n=this.locale)==null?void 0:n.code)||"en-US"},this.is12HourCycleInCurrentLocale=()=>this.locale?/a/.test(this.locale.formatLong.time()):!0,this.expandFormat=n=>{const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(i).map(o=>{const a=o[0];if(a==="p"||a==="P"){const s=XW[a],u=this.locale||ul;return s(o,u.formatLong,{})}return o}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase(),this.isNull=n=>n===null,this.isValid=n=>oy(this.date(n)),this.format=(n,i)=>this.formatByString(n,this.formats[i]),this.formatByString=(n,i)=>rd(n,i,{locale:this.locale}),this.formatNumber=n=>n,this.getDiff=(n,i,o)=>{switch(o){case"years":return KN(n,this.date(i));case"quarters":return JN(n,this.date(i));case"months":return Zf(n,this.date(i));case"weeks":return rz(n,this.date(i));case"days":return ny(n,this.date(i));case"hours":return iz(n,this.date(i));case"minutes":return oz(n,this.date(i));case"seconds":return iy(n,this.date(i));default:return sl(n,this.date(i))}},this.isEqual=(n,i)=>n===null&&i===null?!0:wV(n,i),this.isSameYear=(n,i)=>SV(n,i),this.isSameMonth=(n,i)=>EV(n,i),this.isSameDay=(n,i)=>CV(n,i),this.isSameHour=(n,i)=>TV(n,i),this.isAfter=(n,i)=>nd(n,i),this.isAfterYear=(n,i)=>nd(n,Jf(i)),this.isAfterDay=(n,i)=>nd(n,Kf(i)),this.isBefore=(n,i)=>ha(n,i),this.isBeforeYear=(n,i)=>ha(n,dl(i)),this.isBeforeDay=(n,i)=>ha(n,qi(i)),this.isWithinRange=(n,[i,o])=>qW(n,{start:i,end:o}),this.startOfYear=n=>dl(n),this.startOfMonth=n=>Oy(n),this.startOfWeek=n=>zn(n,{locale:this.locale}),this.startOfDay=n=>qi(n),this.endOfYear=n=>Jf(n),this.endOfMonth=n=>Xf(n),this.endOfWeek=n=>Qf(n,{locale:this.locale}),this.endOfDay=n=>Kf(n),this.addYears=(n,i)=>ey(n,i),this.addMonths=(n,i)=>il(n,i),this.addWeeks=(n,i)=>GN(n,i),this.addDays=(n,i)=>qf(n,i),this.addHours=(n,i)=>YN(n,i),this.addMinutes=(n,i)=>HN(n,i),this.addSeconds=(n,i)=>VN(n,i),this.getYear=n=>xV(n),this.getMonth=n=>hV(n),this.getDate=n=>cV(n),this.getHours=n=>fV(n),this.getMinutes=n=>dV(n),this.getSeconds=n=>pV(n),this.getMilliseconds=n=>gV(n),this.setYear=(n,i)=>PW(n,i),this.setMonth=(n,i)=>OW(n,i),this.setDate=(n,i)=>EW(n,i),this.setHours=(n,i)=>TW(n,i),this.setMinutes=(n,i)=>_W(n,i),this.setSeconds=(n,i)=>kW(n,i),this.setMilliseconds=(n,i)=>MW(n,i),this.getDaysInMonth=n=>vy(n),this.getNextMonth=n=>il(n,1),this.getPreviousMonth=n=>il(n,-1),this.getMonthArray=n=>{const o=[dl(n)];for(;o.length<12;){const a=o[o.length-1];o.push(this.getNextMonth(a))}return o},this.mergeDateAndTime=(n,i)=>this.setSeconds(this.setMinutes(this.setHours(n,this.getHours(i)),this.getMinutes(i)),this.getSeconds(i)),this.getWeekdays=()=>{const n=new Date;return az({start:zn(n,{locale:this.locale}),end:Qf(n,{locale:this.locale})}).map(i=>this.formatByString(i,"EEEEEE"))},this.getWeekArray=n=>{const i=zn(Oy(n),{locale:this.locale}),o=Qf(Xf(n),{locale:this.locale});let a=0,s=i;const u=[];for(;ha(s,o);){const l=Math.floor(a/7);u[l]=u[l]||[],u[l].push(s),s=qf(s,1),a+=1}return u},this.getWeekNumber=n=>bV(n,{locale:this.locale}),this.getYearRange=(n,i)=>{const o=dl(n),a=Jf(i),s=[];let u=o;for(;ha(u,a);)s.push(u),u=ey(u,1);return s},this.getMeridiemText=n=>n==="am"?"AM":"PM",this.locale=t,this.formats=Ae({},QW,r)}}var eH={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},tH=function(t,r,n){var i,o=eH[t];return typeof o=="string"?i=o:r===1?i=o.one:i=o.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"em "+i:"há "+i:i};const rH=tH;var nH={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},iH={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},oH={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},aH={date:Zi({formats:nH,defaultWidth:"full"}),time:Zi({formats:iH,defaultWidth:"full"}),dateTime:Zi({formats:oH,defaultWidth:"full"})};const sH=aH;var lH={lastWeek:function(t){var r=t.getUTCDay(),n=r===0||r===6?"último":"última";return"'"+n+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},uH=function(t,r,n,i){var o=lH[t];return typeof o=="function"?o(r):o};const cH=uH;var fH={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},dH={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},hH={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},pH={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},gH={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},mH={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},vH=function(t,r){var n=Number(t);return(r==null?void 0:r.unit)==="week"?n+"ª":n+"º"},yH={ordinalNumber:vH,era:Pr({values:fH,defaultWidth:"wide"}),quarter:Pr({values:dH,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Pr({values:hH,defaultWidth:"wide"}),day:Pr({values:pH,defaultWidth:"wide"}),dayPeriod:Pr({values:gH,defaultWidth:"wide",formattingValues:mH,defaultFormattingWidth:"wide"})};const bH=yH;var xH=/^(\d+)[ºªo]?/i,wH=/\d+/i,CH={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},SH={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},EH={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},TH={any:[/1/i,/2/i,/3/i,/4/i]},_H={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},OH={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,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},kH={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},MH={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},PH={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},AH={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},DH={ordinalNumber:my({matchPattern:xH,parsePattern:wH,valueCallback:function(t){return parseInt(t,10)}}),era:Ar({matchPatterns:CH,defaultMatchWidth:"wide",parsePatterns:SH,defaultParseWidth:"any"}),quarter:Ar({matchPatterns:EH,defaultMatchWidth:"wide",parsePatterns:TH,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ar({matchPatterns:_H,defaultMatchWidth:"wide",parsePatterns:OH,defaultParseWidth:"any"}),day:Ar({matchPatterns:kH,defaultMatchWidth:"wide",parsePatterns:MH,defaultParseWidth:"any"}),dayPeriod:Ar({matchPatterns:PH,defaultMatchWidth:"any",parsePatterns:AH,defaultParseWidth:"any"})},$H={code:"pt-BR",formatDistance:rH,formatLong:sH,formatRelative:cH,localize:bH,match:DH,options:{weekStartsOn:0,firstWeekContainsDate:1}};const IH=$H;var My={exports:{}},Py={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Ay={exports:{}},FH=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},jH=FH,LH=Array.prototype.concat,RH=Array.prototype.slice,Dy=Ay.exports=function(t){for(var r=[],n=0,i=t.length;n<i;n++){var o=t[n];jH(o)?r=LH.call(r,RH.call(o)):r.push(o)}return r};Dy.wrap=function(e){return function(){return e(Dy(arguments))}};var BH=Ay.exports,ga=Py,ma=BH,$y=Object.hasOwnProperty,Iy=Object.create(null);for(var cd in ga)$y.call(ga,cd)&&(Iy[ga[cd]]=cd);var nr=My.exports={to:{},get:{}};nr.get=function(e){var t=e.substring(0,3).toLowerCase(),r,n;switch(t){case"hsl":r=nr.get.hsl(e),n="hsl";break;case"hwb":r=nr.get.hwb(e),n="hwb";break;default:r=nr.get.rgb(e),n="rgb";break}return r?{model:n,value:r}:null},nr.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^(\w+)$/,a=[0,0,0,1],s,u,l;if(s=e.match(r)){for(l=s[2],s=s[1],u=0;u<3;u++){var c=u*2;a[u]=parseInt(s.slice(c,c+2),16)}l&&(a[3]=parseInt(l,16)/255)}else if(s=e.match(t)){for(s=s[1],l=s[3],u=0;u<3;u++)a[u]=parseInt(s[u]+s[u],16);l&&(a[3]=parseInt(l+l,16)/255)}else if(s=e.match(n)){for(u=0;u<3;u++)a[u]=parseInt(s[u+1],0);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else if(s=e.match(i)){for(u=0;u<3;u++)a[u]=Math.round(parseFloat(s[u+1])*2.55);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else return(s=e.match(o))?s[1]==="transparent"?[0,0,0,0]:$y.call(ga,s[1])?(a=ga[s[1]],a[3]=1,a):null:null;for(u=0;u<3;u++)a[u]=dn(a[u],0,255);return a[3]=dn(a[3],0,1),a},nr.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,o=dn(parseFloat(r[2]),0,100),a=dn(parseFloat(r[3]),0,100),s=dn(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null},nr.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,o=dn(parseFloat(r[2]),0,100),a=dn(parseFloat(r[3]),0,100),s=dn(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null},nr.to.hex=function(){var e=ma(arguments);return"#"+pl(e[0])+pl(e[1])+pl(e[2])+(e[3]<1?pl(Math.round(e[3]*255)):"")},nr.to.rgb=function(){var e=ma(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},nr.to.rgb.percent=function(){var e=ma(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},nr.to.hsl=function(){var e=ma(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},nr.to.hwb=function(){var e=ma(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},nr.to.keyword=function(e){return Iy[e.slice(0,3)]};function dn(e,t,r){return Math.min(Math.max(t,e),r)}function pl(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var NH=My.exports;const va=Py,Fy={};for(const e of Object.keys(va))Fy[va[e]]=e;const de={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var jy=de;for(const e of Object.keys(de)){if(!("channels"in de[e]))throw new Error("missing channels property: "+e);if(!("labels"in de[e]))throw new Error("missing channel labels property: "+e);if(de[e].labels.length!==de[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=de[e];delete de[e].channels,delete de[e].labels,Object.defineProperty(de[e],"channels",{value:t}),Object.defineProperty(de[e],"labels",{value:r})}de.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=o-i;let s,u;o===i?s=0:t===o?s=(r-n)/a:r===o?s=2+(n-t)/a:n===o&&(s=4+(t-r)/a),s=Math.min(s*60,360),s<0&&(s+=360);const l=(i+o)/2;return o===i?u=0:l<=.5?u=a/(o+i):u=a/(2-o-i),[s,u*100,l*100]},de.rgb.hsv=function(e){let t,r,n,i,o;const a=e[0]/255,s=e[1]/255,u=e[2]/255,l=Math.max(a,s,u),c=l-Math.min(a,s,u),f=function(d){return(l-d)/6/c+1/2};return c===0?(i=0,o=0):(o=c/l,t=f(a),r=f(s),n=f(u),a===l?i=n-r:s===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,l*100]},de.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=de.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,o*100,n*100]},de.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),o=(1-t-i)/(1-i)||0,a=(1-r-i)/(1-i)||0,s=(1-n-i)/(1-i)||0;return[o*100,a*100,s*100,i*100]};function zH(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}de.rgb.keyword=function(e){const t=Fy[e];if(t)return t;let r=1/0,n;for(const i of Object.keys(va)){const o=va[i],a=zH(e,o);a<r&&(r=a,n=i)}return n},de.keyword.rgb=function(e){return va[e]},de.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,a=t*.0193+r*.1192+n*.9505;return[i*100,o*100,a*100]},de.rgb.lab=function(e){const t=de.rgb.xyz(e);let r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*n-16,a=500*(r-n),s=200*(n-i);return[o,a,s]},de.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let i,o,a;if(r===0)return a=n*255,[a,a,a];n<.5?i=n*(1+r):i=n+r-n*r;const s=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)o=t+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?a=s+(i-s)*6*o:2*o<1?a=i:3*o<2?a=s+(i-s)*(2/3-o)*6:a=s,u[l]=a*255;return u},de.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,i=r;const o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;const a=(n+r)/2,s=n===0?2*i/(o+i):2*r/(n+r);return[t,s*100,a*100]},de.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*n*(1-r),s=255*n*(1-r*o),u=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,u,a];case 1:return[s,n,a];case 2:return[a,n,u];case 3:return[a,s,n];case 4:return[u,a,n];case 5:return[n,a,s]}},de.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01);let o,a;a=(2-r)*n;const s=(2-r)*i;return o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]},de.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let o;i>1&&(r/=i,n/=i);const a=Math.floor(6*t),s=1-n;o=6*t-a,a&1&&(o=1-o);const u=r+o*(s-r);let l,c,f;switch(a){default:case 6:case 0:l=s,c=u,f=r;break;case 1:l=u,c=s,f=r;break;case 2:l=r,c=s,f=u;break;case 3:l=r,c=u,f=s;break;case 4:l=u,c=r,f=s;break;case 5:l=s,c=r,f=u;break}return[l*255,c*255,f*255]},de.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),s=1-Math.min(1,n*(1-i)+i);return[o*255,a*255,s*255]},de.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,o,a;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,a=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]},de.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*r-16,o=500*(t-r),a=200*(r-n);return[i,o,a]},de.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let i,o,a;o=(t+16)/116,i=r/500+o,a=o-n/200;const s=o**3,u=i**3,l=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]},de.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);const a=Math.sqrt(r*r+n*n);return[t,a,i]},de.lch.lab=function(e){const t=e[0],r=e[1],i=e[2]/360*2*Math.PI,o=r*Math.cos(i),a=r*Math.sin(i);return[t,o,a]},de.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let o=t===null?de.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(a+=60),a},de.hsv.ansi16=function(e){return de.rgb.ansi16(de.hsv.rgb(e),e[2])},de.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},de.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,i,o]},de.ansi256.rgb=function(e){if(e>=232){const o=(e-232)*10+8;return[o,o,o]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]},de.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r},de.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(s=>s+s).join(""));const n=parseInt(r,16),i=n>>16&255,o=n>>8&255,a=n&255;return[i,o,a]},de.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),a=i-o;let s,u;return a<1?s=o/(1-a):s=0,a<=0?u=0:i===t?u=(r-n)/a%6:i===r?u=2+(n-t)/a:u=4+(t-r)/a,u/=6,u%=1,[u*360,a*100,s*100]},de.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]},de.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]},de.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];const i=[0,0,0],o=t%1*6,a=o%1,s=1-a;let u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]},de.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]},de.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]},de.hcg.hwb=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]},de.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,i=n-t;let o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]},de.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},de.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},de.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},de.gray.hsl=function(e){return[0,0,e[0]]},de.gray.hsv=de.gray.hsl,de.gray.hwb=function(e){return[0,100,e[0]]},de.gray.cmyk=function(e){return[0,0,0,e[0]]},de.gray.lab=function(e){return[e[0],0,0]},de.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},de.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const gl=jy;function VH(){const e={},t=Object.keys(gl);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function WH(e){const t=VH(),r=[e];for(t[e].distance=0;r.length;){const n=r.pop(),i=Object.keys(gl[n]);for(let o=i.length,a=0;a<o;a++){const s=i[a],u=t[s];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(s))}}return t}function HH(e,t){return function(r){return t(e(r))}}function UH(e,t){const r=[t[e].parent,e];let n=gl[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=HH(gl[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var YH=function(e){const t=WH(e),r={},n=Object.keys(t);for(let i=n.length,o=0;o<i;o++){const a=n[o];t[a].parent!==null&&(r[a]=UH(a,t))}return r};const fd=jy,GH=YH,Qi={},qH=Object.keys(fd);function KH(e){const t=function(...r){const n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function XH(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const i=e(r);if(typeof i=="object")for(let o=i.length,a=0;a<o;a++)i[a]=Math.round(i[a]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}qH.forEach(e=>{Qi[e]={},Object.defineProperty(Qi[e],"channels",{value:fd[e].channels}),Object.defineProperty(Qi[e],"labels",{value:fd[e].labels});const t=GH(e);Object.keys(t).forEach(n=>{const i=t[n];Qi[e][n]=XH(i),Qi[e][n].raw=KH(i)})});var ZH=Qi;const Ji=NH,ir=ZH,Ly=["keyword","gray","hex"],dd={};for(const e of Object.keys(ir))dd[[...ir[e].labels].sort().join("")]=e;const ml={};function It(e,t){if(!(this instanceof It))return new It(e,t);if(t&&t in Ly&&(t=null),t&&!(t in ir))throw new Error("Unknown model: "+t);let r,n;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof It)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=Ji.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,n=ir[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(e.length>0){this.model=t||"rgb",n=ir[this.model].channels;const i=Array.prototype.slice.call(e,0,n);this.color=hd(i,n),this.valpha=typeof e[n]=="number"?e[n]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const o=i.sort().join("");if(!(o in dd))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=dd[o];const{labels:a}=ir[this.model],s=[];for(r=0;r<a.length;r++)s.push(e[a[r]]);this.color=hd(s)}if(ml[this.model])for(n=ir[this.model].channels,r=0;r<n;r++){const i=ml[this.model][r];i&&(this.color[r]=i(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}It.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Ji.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const r=t.valpha===1?t.color:[...t.color,this.valpha];return Ji.to[t.model](r)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),r=t.valpha===1?t.color:[...t.color,this.valpha];return Ji.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=ir[this.model],{labels:r}=ir[this.model];for(let n=0;n<t;n++)e[r[n]]=this.color[n];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new It([...this.color.map(JH(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new It([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:St("rgb",0,At(255)),green:St("rgb",1,At(255)),blue:St("rgb",2,At(255)),hue:St(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:St("hsl",1,At(100)),lightness:St("hsl",2,At(100)),saturationv:St("hsv",1,At(100)),value:St("hsv",2,At(100)),chroma:St("hcg",1,At(100)),gray:St("hcg",2,At(100)),white:St("hwb",1,At(100)),wblack:St("hwb",2,At(100)),cyan:St("cmyk",0,At(100)),magenta:St("cmyk",1,At(100)),yellow:St("cmyk",2,At(100)),black:St("cmyk",3,At(100)),x:St("xyz",0,At(95.047)),y:St("xyz",1,At(100)),z:St("xyz",2,At(108.833)),l:St("lab",0,At(100)),a:St("lab",1),b:St("lab",2),keyword(e){return e!==void 0?new It(e):ir[this.model].keyword(this.color)},hex(e){return e!==void 0?new It(e):Ji.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new It(e);const t=this.rgb().round().color;let r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),Ji.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const i=n/255;t[r]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return It.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),i=t===void 0?.5:t,o=2*i-1,a=r.alpha()-n.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,u=1-s;return It.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(const e of Object.keys(ir)){if(Ly.includes(e))continue;const{channels:t}=ir[e];It.prototype[e]=function(...r){return this.model===e?new It(this):r.length>0?new It(r,e):new It([...eU(ir[this.model][e].raw(this.color)),this.valpha],e)},It[e]=function(...r){let n=r[0];return typeof n=="number"&&(n=hd(r,t)),new It(n,e)}}function QH(e,t){return Number(e.toFixed(t))}function JH(e){return function(t){return QH(t,e)}}function St(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(ml[n]||(ml[n]=[]))[t]=r;return e=e[0],function(n){let i;return n!==void 0?(r&&(n=r(n)),i=this[e](),i.color[t]=n,i):(i=this[e]().color[t],r&&(i=r(i)),i)}}function At(e){return function(t){return Math.max(0,Math.min(e,t))}}function eU(e){return Array.isArray(e)?e:[e]}function hd(e,t){for(let r=0;r<t;r++)typeof e[r]!="number"&&(e[r]=0);return e}var tU=It;const rU=xn(tU),nt={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},nU={lighter:"#3aa4f2",light:"#7bc2f6",main:"#0E82D8",dark:"#0b61a2",darker:"#07416c",contrastText:"#fff"},iU={lighter:"#D6E4FF",light:"#84A9FF",main:"#3366FF",dark:"#1939B7",darker:"#091A7A",contrastText:"#fff"},oU={lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#fff"},aU={lighter:"#D8FBDE",light:"#86E8AB",main:"#36B37E",dark:"#1B806A",darker:"#0A5554",contrastText:"#fff"},sU={lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:nt[800]},eo={common:{black:"#000",white:"#fff"},primary:nU,secondary:iU,info:oU,success:aU,warning:sU,error:{lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#fff"},grey:nt,divider:W(nt[500],.24),action:{hover:W(nt[500],.08),selected:W(nt[500],.16),disabled:W(nt[500],.8),disabledBackground:W(nt[500],.24),focus:W(nt[500],.24),hoverOpacity:.08,disabledOpacity:.48}},hn=e=>{const t={...eo,mode:"light",text:{primary:nt[800],secondary:nt[600],disabled:nt[500]},background:{paper:"#fff",default:nt[100],neutral:nt[200]},action:{...eo.action,active:nt[600]}},r={...eo,mode:"dark",text:{primary:"#fff",secondary:nt[500],disabled:nt[600]},background:{paper:nt[800],default:nt[900],neutral:W(nt[500],.16)},action:{...eo.action,active:nt[500]}};return e==="light"?t:r},lU=e=>({lighter:lc(e,.815),light:lc(e,.225),main:e,dark:sc(e,.15),darker:sc(e,.35)}),uU=e=>rU(e).luminosity()<=.55?"#fff":nt[900],cU=e=>{const t=lU(e);return{...eo,primary:{...t,contrastText:uU(t.main)},mode:"light",text:{primary:nt[800],secondary:nt[600],disabled:nt[500]},background:{paper:"#fff",default:nt[100],neutral:nt[200]},action:{active:nt[600],...eo.action}}},Ry=hn("light"),fU=Ry.grey[500],dU=Ry.common.black;function By(e,t){const r=W(e,.16);return{z1:`0 1px 2px 0 ${r}`,z4:`0 4px 8px 0 ${r}`,z8:`0 8px 16px 0 ${r}`,z12:`0 12px 24px -4px ${r}`,z16:`0 16px 32px -4px ${r}`,z20:`0 20px 40px -4px ${r}`,z24:`0 24px 48px 0 ${r}`,primary:`0 8px 16px 0 ${W(t||hn("light").primary.main,.24)}`,info:`0 8px 16px 0 ${W(hn("light").info.main,.24)}`,secondary:`0 8px 16px 0 ${W(hn("light").secondary.main,.24)}`,success:`0 8px 16px 0 ${W(hn("light").success.main,.24)}`,warning:`0 8px 16px 0 ${W(hn("light").warning.main,.24)}`,error:`0 8px 16px 0 ${W(hn("light").error.main,.24)}`,card:`0 0 2px 0 ${W(e,.2)}, 0 12px 24px -4px ${W(e,.12)}`,dialog:`-40px 40px 80px -8px ${W(e,.24)}`,dropdown:`0 0 2px 0 ${W(e,.24)}, -20px 20px 40px -4px ${W(e,.24)}`}}const hU=(e,t)=>By(e==="light"?fU:dU,t),pU=()=>y.jsx(P.GlobalStyles,{styles:{"*":{boxSizing:"border-box"},html:{margin:0,padding:0,width:"100%",height:"100%",WebkitOverflowScrolling:"touch"},body:{margin:0,padding:0,width:"100%",height:"100%",backgroundColor:"#fff"},"#root":{width:"100%",height:"100%"},input:{"&[type=number]":{MozAppearance:"textfield","&::-webkit-outer-spin-button":{margin:0,WebkitAppearance:"none"},"&::-webkit-inner-spin-button":{margin:0,WebkitAppearance:"none"}},"&[type=search]":{"&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{WebkitAppearance:"none"}}},img:{display:"block",maxWidth:"100%"},ul:{margin:0,padding:0},".SnackbarContainer-root":{transform:"scale(1)",zIndex:"9999 !important",maxHeight:"0 !important","& .MuiCollapse-wrapper":{maxHeight:"0 !important"}}}}),gU=["primary","secondary","info","success","warning","error"];function mU(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="default",o=n.color==="inherit",a=n.variant==="circular",s=n.variant==="extended",u=n.variant==="outlined",l=n.variant==="outlinedExtended",c=n.variant==="soft",f=n.variant==="softExtended",d={"&:hover, &:active":{boxShadow:"none"},...(a||s)&&{...(i||o)&&{color:e.palette.grey[800],boxShadow:e.customShadows.z8,"&:hover":{backgroundColor:e.palette.grey[400]}},...o&&{...!t&&{color:"inherit",backgroundColor:e.palette.grey[800],"&:hover":{backgroundColor:e.palette.grey[700]}}}},...(u||l)&&{boxShadow:"none",backgroundColor:"transparent",...(i||o)&&{border:`solid 1px ${W(e.palette.grey[500],.32)}`,"&:hover":{backgroundColor:e.palette.action.hover}},...i&&{...!t&&{color:e.palette.text.secondary}}},...(c||f)&&{boxShadow:"none",...i&&{color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey[400]}},...o&&{backgroundColor:W(e.palette.grey[500],.08),"&:hover":{backgroundColor:W(e.palette.grey[500],.24)}}}},h=gU.map(v=>({...n.color===v&&{...(a||s)&&{boxShadow:e.customShadows[v],"&:hover":{backgroundColor:e.palette[v].dark}},...(u||l)&&{color:e.palette[v].main,border:`solid 1px ${W(e.palette[v].main,.48)}`,"&:hover":{backgroundColor:W(e.palette[v].main,.08),border:`solid 1px ${e.palette[v].main}`}},...(c||f)&&{color:e.palette[v][t?"dark":"light"],backgroundColor:W(e.palette[v].main,.16),"&:hover":{backgroundColor:W(e.palette[v].main,.32)}}}})),m={"&.Mui-disabled":{...(u||l)&&{backgroundColor:"transparent",border:`solid 1px ${e.palette.action.disabledBackground}`}}},p={...(s||l||f)&&{width:"auto","& svg":{marginRight:e.spacing(1)},...n.size==="small"&&{height:34,minHeight:34,borderRadius:17,padding:e.spacing(0,1)},...n.size==="medium"&&{height:40,minHeight:40,borderRadius:20,padding:e.spacing(0,2)},...n.size==="large"&&{height:48,minHeight:48,borderRadius:24,padding:e.spacing(0,2)}}};return[...h,d,m,p]};return{MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function vU(e){return{MuiCard:{styleOverrides:{root:{position:"relative",boxShadow:e.customShadows.card,borderRadius:Number(e.shape.borderRadius)*2,zIndex:0}}},MuiCardHeader:{defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:e.spacing(.5)}},styleOverrides:{root:{padding:e.spacing(3,3,0)}}},MuiCardContent:{styleOverrides:{root:{padding:e.spacing(3)}}}}}function yU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L12,10.59 L13.29,9.29 C13.6821222,8.89787783 14.3178778,8.89787783 14.71,9.29 C15.1021222,9.68212217 15.1021222,10.3178778 14.71,10.71 L13.41,12 L14.71,13.29 Z"})})}function Ny(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"})})}function bU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M13,16 C13,16.5522847 12.5522847,17 12,17 C11.4477153,17 11,16.5522847 11,16 L11,11 C11,10.4477153 11.4477153,10 12,10 C12.5522847,10 13,10.4477153 13,11 L13,16 Z M12,9 C11.4477153,9 11,8.55228475 11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 C13,8.55228475 12.5522847,9 12,9 Z"})})}function xU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M22.56,16.3 L14.89,3.58 C14.2597186,2.59400001 13.1702353,1.99737652 12,1.99737652 C10.8297647,1.99737652 9.74028139,2.59400001 9.11,3.58 L1.44,16.3 C0.888546003,17.2192471 0.869485343,18.3628867 1.39,19.3 C1.99197363,20.3551378 3.11522982,21.0046397 4.33,21 L19.67,21 C20.8765042,21.0128744 21.9978314,20.3797441 22.61,19.34 C23.146086,18.3926382 23.1269508,17.2292197 22.56,16.3 L22.56,16.3 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,9 C11,8.44771525 11.4477153,8 12,8 C12.5522847,8 13,8.44771525 13,9 L13,13 Z"})})}function wU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M16.3,9.61 L11.73,15.61 C11.5412074,15.855247 11.2494966,15.9992561 10.94,16.0000145 C10.6322197,16.001658 10.3408221,15.861492 10.15,15.62 L7.71,12.51 C7.49028166,12.2277602 7.43782669,11.8497415 7.57239438,11.5183399 C7.70696206,11.1869384 8.00810836,10.9525017 8.36239438,10.9033399 C8.7166804,10.8541782 9.07028166,10.9977602 9.29,11.28 L10.92,13.36 L14.7,8.36 C14.917932,8.07418751 15.2717886,7.92635122 15.6282755,7.97217964 C15.9847624,8.01800806 16.2897207,8.25053875 16.4282755,8.58217966 C16.5668304,8.91382056 16.517932,9.29418753 16.3,9.58 L16.3,9.61 Z"})})}function CU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 L13,13 Z"})})}function SU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})})}function EU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})})}function TU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})})}function _U(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Z"})})}function OU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"})})}function kU(e){return y.jsx(P.SvgIcon,{...e,sx:{right:12,fontSize:16,position:"absolute",pointerEvents:"none"},children:y.jsx("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})})}function MU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M12,8 C12.5522847,8 13,8.44771525 13,9 L13,9 L13,11 L15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L13,13 L13,15 C13,15.5522847 12.5522847,16 12,16 C11.4477153,16 11,15.5522847 11,15 L11,15 L11,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 L11,11 L11,9 C11,8.44771525 11.4477153,8 12,8 Z"})})}function PU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 Z"})})}function AU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M14,8.99420168 C14.2666375,8.99420168 14.5222334,9.10068735 14.71,9.29 C14.8993127,9.4777666 15.0057983,9.73336246 15.0057983,10 C15.0057983,10.2666375 14.8993127,10.5222334 14.71,10.71 L14.71,10.71 L13.41,12 L14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L10.71,9.29 L12,10.59 L13.29,9.29 C13.4777666,9.10068735 13.7333625,8.99420168 14,8.99420168 Z"})})}const DU=["primary","secondary","info","success","warning","error"];function $U(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="default",o=n.variant==="filled",a=n.variant==="outlined",s=n.variant==="soft",u={...i&&{"& .MuiChip-avatar":{color:e.palette.text[t?"secondary":"primary"],backgroundColor:W(e.palette.grey[500],.48)},...a&&{border:`solid 1px ${W(e.palette.grey[500],.32)}`},...s&&{color:e.palette.text.primary,backgroundColor:W(e.palette.grey[500],.16),"&:hover":{backgroundColor:W(e.palette.grey[500],.32)}}}};return[...DU.map(c=>({...n.color===c&&{"& .MuiChip-avatar":{color:e.palette[c].lighter,backgroundColor:e.palette[c].dark},...o&&{"& .MuiChip-deleteIcon":{color:W(e.palette[c].contrastText,.56),"&:hover":{color:e.palette[c].contrastText}}},...s&&{color:e.palette[c][t?"dark":"light"],backgroundColor:W(e.palette[c].main,.16),"&:hover":{backgroundColor:W(e.palette[c].main,.32)},"& .MuiChip-deleteIcon":{color:W(e.palette[c][t?"dark":"light"],.48),"&:hover":{color:e.palette[c].dark}}}}})),u]};return{MuiChip:{defaultProps:{deleteIcon:y.jsx(yU,{})},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function IU(e){return{MuiTabs:{defaultProps:{textColor:"inherit",allowScrollButtonsMobile:!0,variant:"scrollable"},styleOverrides:{scrollButtons:{width:48,borderRadius:"50%"}}},MuiTab:{defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:({ownerState:t})=>({padding:0,opacity:1,minWidth:48,fontWeight:e.typography.fontWeightMedium,"&:not(:last-of-type)":{marginRight:e.spacing(3),[e.breakpoints.up("sm")]:{marginRight:e.spacing(5)}},"&:not(.Mui-selected)":{color:e.palette.text.secondary},...(t.iconPosition==="start"||t.iconPosition==="end")&&{minHeight:48}})}}}}function FU(e){return{MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}}}}function jU(e){return{MuiLink:{defaultProps:{underline:"hover"}}}}function LU(e){return{MuiListItemIcon:{styleOverrides:{root:{color:"inherit",minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemAvatar:{styleOverrides:{root:{minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemText:{styleOverrides:{root:{marginTop:0,marginBottom:0},multiline:{marginTop:0,marginBottom:0}}}}}function RU(e){return{MuiTableContainer:{styleOverrides:{root:{position:"relative"}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}},MuiTableCell:{styleOverrides:{root:{borderBottom:"none"},head:{color:e.palette.text.secondary,backgroundColor:e.palette.background.neutral},stickyHeader:{backgroundColor:e.palette.background.paper,backgroundImage:`linear-gradient(to bottom, ${e.palette.background.neutral} 0%, ${e.palette.background.neutral} 100%)`},paddingCheckbox:{paddingLeft:e.spacing(1)}}},MuiTablePagination:{defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"},SelectProps:{MenuProps:{MenuListProps:{sx:{"& .MuiMenuItem-root":{...e.typography.body2}}}}}},styleOverrides:{root:{borderTop:`solid 1px ${e.palette.divider}`},toolbar:{height:64},actions:{marginRight:e.spacing(1)},select:{"&:focus":{borderRadius:e.shape.borderRadius}}}}}}const BU=["info","success","warning","error"];function NU(e){const t=e.palette.mode==="light",r=n=>{const i=n.variant==="standard",o=n.variant==="filled",a=n.variant==="outlined";return[...BU.map(u=>({...n.severity===u&&{...i&&{color:e.palette[u][t?"darker":"lighter"],backgroundColor:e.palette[u][t?"lighter":"darker"],"& .MuiAlert-icon":{color:e.palette[u][t?"main":"light"]}},...o&&{color:e.palette[u].contrastText,backgroundColor:e.palette[u].main},...a&&{color:e.palette[u][t?"dark":"light"],border:`solid 1px ${e.palette[u].main}`,"& .MuiAlert-icon":{color:e.palette[u].main}}}}))]};return{MuiAlert:{defaultProps:{iconMapping:{info:y.jsx(bU,{}),success:y.jsx(wU,{}),warning:y.jsx(xU,{}),error:y.jsx(CU,{})}},styleOverrides:{root:({ownerState:n})=>r(n),icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5)}}}}}function zU(e){return{MuiBadge:{styleOverrides:{dot:{width:10,height:10,borderRadius:"50%"}}}}}function VU(e){return{MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"}}}}}function WU(e){return{MuiInputBase:{styleOverrides:{root:{"&.Mui-disabled":{"& svg":{color:e.palette.text.disabled}}},input:{"&::placeholder":{opacity:1,color:e.palette.text.disabled}}}},MuiInput:{styleOverrides:{underline:{"&:before":{borderBottomColor:W(e.palette.grey[500],.56)},"&:after":{borderBottomColor:e.palette.text.primary}}}},MuiTextField:{styleOverrides:{root:{"& .MuiInputLabel-root.Mui-focused":{color:e.palette.text.primary}}}},MuiFilledInput:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:W(e.palette.grey[500],.08),"&:hover":{backgroundColor:W(e.palette.grey[500],.16)},"&.Mui-focused":{backgroundColor:W(e.palette.grey[500],.16)},"&.Mui-disabled":{backgroundColor:e.palette.action.disabledBackground}},underline:{"&:before, :after":{display:"none"}}}},MuiOutlinedInput:{styleOverrides:{root:{"& .MuiOutlinedInput-notchedOutline":{borderColor:W(e.palette.grey[500],.32)},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderWidth:1,borderColor:e.palette.text.primary}},"&.Mui-disabled":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.action.disabledBackground}}}}}}}function HU(e){return{MuiRadio:{defaultProps:{icon:y.jsx(_U,{}),checkedIcon:y.jsx(OU,{})},styleOverrides:{root:({ownerState:t})=>({padding:e.spacing(1),...t.size==="small"&&{"& svg":{width:20,height:20}},...t.size==="medium"&&{"& svg":{width:24,height:24}}})}}}}function UU(e){const t=e.palette.mode==="light";return{MuiDrawer:{styleOverrides:{root:({ownerState:r})=>({...r.variant==="temporary"&&{"& .MuiDrawer-paper":{boxShadow:`-40px 40px 80px -8px ${W(t?e.palette.grey[500]:e.palette.common.black,.24)}`}}})}}}}function YU(e){return{MuiDialog:{styleOverrides:{paper:{boxShadow:e.customShadows.dialog,"&.MuiPaper-rounded":{borderRadius:Number(e.shape.borderRadius)*2},"&.MuiDialog-paperFullScreen":{borderRadius:0},"&.MuiDialog-paper .MuiDialogActions-root":{padding:e.spacing(3)},"@media (max-width: 600px)":{margin:e.spacing(2)},"@media (max-width: 663.95px)":{"&.MuiDialog-paperWidthSm.MuiDialog-paperScrollBody":{maxWidth:"100%"}}},paperFullWidth:{width:"100%"}}},MuiDialogTitle:{styleOverrides:{root:{padding:e.spacing(3)}}},MuiDialogContent:{styleOverrides:{root:{padding:e.spacing(0,3)},dividers:{borderTop:0,borderBottomStyle:"dashed",paddingBottom:e.spacing(3)}}},MuiDialogActions:{styleOverrides:{root:{"& > :not(:first-of-type)":{marginLeft:e.spacing(1.5)}}}}}}function GU(e){return{MuiAvatar:{styleOverrides:{colorDefault:{color:e.palette.text.secondary,backgroundColor:W(e.palette.grey[500],.24)}}},MuiAvatarGroup:{defaultProps:{max:4},styleOverrides:{root:{justifyContent:"flex-end"},avatar:{fontSize:16,fontWeight:e.typography.fontWeightMedium,"&:first-of-type":{fontSize:12,color:e.palette.primary.main,backgroundColor:e.palette.primary.lighter}}}}}}function qU(e){return{MuiRating:{defaultProps:{emptyIcon:y.jsx(Ny,{}),icon:y.jsx(Ny,{})},styleOverrides:{root:{"&.Mui-disabled":{opacity:.48}},iconEmpty:{color:W(e.palette.grey[500],.48)},sizeSmall:{"& svg":{width:20,height:20}},sizeLarge:{"& svg":{width:28,height:28}}}}}}function KU(e){const t=e.palette.mode==="light";return{MuiSlider:{defaultProps:{size:"small"},styleOverrides:{root:{"&.Mui-disabled":{color:e.palette.action.disabled}},rail:{opacity:.32},markLabel:{fontSize:13,color:e.palette.text.disabled},valueLabel:{borderRadius:8,backgroundColor:e.palette.grey[t?800:700]}}}}}const XU=["primary","secondary","info","success","warning","error"];function ZU(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="inherit",o=n.variant==="contained",a=n.variant==="outlined",s=n.variant==="text",u=n.variant==="soft",l=n.size==="small",c=n.size==="large",f={textTransform:"none",...i&&{...o&&{color:e.palette.grey[800],"&:hover":{boxShadow:e.customShadows.z8,backgroundColor:e.palette.grey[400]}},...a&&{borderColor:W(e.palette.grey[500],.32),"&:hover":{borderColor:e.palette.text.primary,backgroundColor:e.palette.action.hover}},...s&&{"&:hover":{backgroundColor:e.palette.action.hover}},...u&&{color:e.palette.text.primary,backgroundColor:W(e.palette.grey[500],.08),"&:hover":{backgroundColor:W(e.palette.grey[500],.24)}}}},d=XU.map(p=>({...n.color===p&&{...o&&{"&:hover":{boxShadow:e.customShadows[p]}},...u&&{color:e.palette[p][t?"dark":"light"],backgroundColor:W(e.palette[p].main,.16),"&:hover":{backgroundColor:W(e.palette[p].main,.32)}}}})),h={"&.Mui-disabled":{...u&&{backgroundColor:e.palette.action.disabledBackground}}},m={...l&&{height:30,fontSize:13,...u&&{padding:"4px 10px"}},...c&&{height:48,fontSize:15,...u&&{padding:"8px 22px"}}};return[...d,f,h,m]};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function QU(e){const t=e.palette.mode==="light",r=n=>({padding:"9px 13px 9px 12px",width:58,height:38,...n.size==="small"&&{padding:"4px 8px 4px 7px",width:40,height:24},"& .MuiSwitch-thumb":{width:14,height:14,boxShadow:"none",color:`${e.palette.common.white} !important`,...n.size==="small"&&{width:10,height:10}},"& .MuiSwitch-track":{opacity:1,borderRadius:14,backgroundColor:W(e.palette.grey[500],.48)},"& .MuiSwitch-switchBase":{left:3,padding:12,...n.size==="small"&&{padding:7},"&.Mui-checked":{transform:"translateX(13px)","&+.MuiSwitch-track":{opacity:1},...n.size==="small"&&{transform:"translateX(9px)"}},"&.Mui-disabled":{"& .MuiSwitch-thumb":{opacity:t?1:.48},"&+.MuiSwitch-track":{opacity:.48}}}});return{MuiSwitch:{styleOverrides:{root:({ownerState:n})=>r(n)}}}}function JU(e){return{MuiSelect:{defaultProps:{IconComponent:kU}}}}function eY(e){return{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}}}function tY(e){const t=e.palette.mode==="light";return{MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.palette.grey[t?800:700]},arrow:{color:e.palette.grey[t?800:700]}}}}}function rY(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5}}}}}function nY(e){return{MuiStepConnector:{styleOverrides:{line:{borderColor:e.palette.divider}}}}}function iY(e){return{MuiDataGrid:{styleOverrides:{root:{borderRadius:0,border:"none","& .clickable-row":{cursor:"pointer"},"& .no-clickable-row .clickable-row":{cursor:"initial"},"& .no-clickable-row .clickable-row:hover":{backgroundColor:"initial"},"&.simple":{"& .MuiDataGrid-columnHeaders":{color:e.palette.text.secondary,backgroundColor:"#fff",borderBottom:"none",borderRadius:0},"& .MuiDataGrid-columnHeaderTitle":{fontWeight:700,fontSize:11}},"& .MuiTablePagination-root":{borderTop:0},"& .MuiDataGrid-columnHeader, & .MuiDataGrid-cell":{padding:"0 16px"},"& .MuiDataGrid-columnHeaders":{color:e.palette.text.secondary,backgroundColor:e.palette.background.neutral,borderRadius:0},"& .MuiDataGrid-pinnedColumnHeaders":{backgroundColor:"inherit",boxShadow:"none"},"& .MuiDataGrid-pinnedColumns--right":{backgroundColor:"#fff",boxShadow:"-2px 0px 4px -2px rgba(0, 0, 0, 0.075)"},"& .MuiDataGrid-pinnedColumns--left":{backgroundColor:"#fff",boxShadow:"2px 0px 4px -2px rgba(0, 0, 0, 0.071)"},"& .MuiDataGrid-columnHeader--moving":{backgroundColor:e.palette.background.neutral},"& .MuiDataGrid-columnHeaderCheckbox":{width:"64px !important",minWidth:"64px !important",maxWidth:"64px !important"},"& .MuiDataGrid-cellCheckbox":{width:"64px !important",minWidth:"64px !important",maxWidth:"64px !important"},"& .MuiDataGrid-pinnedRows":{boxShadow:"none",fontWeight:"bold"},"& .hide-checkbox-select-all div":{display:"none !important"},"& .MuiDataGrid-cell, .MuiDataGrid-columnsContainer":{border:"none"},"& .MuiDataGrid-columnSeparator":{color:e.palette.divider},"& .MuiDataGrid-columnSeparator:hover":{color:e.palette.primary.main},'& .MuiDataGrid-cell[data-field="__check__"]':{padding:0},'& .MuiDataGrid-columnHeader[data-field="__check__"]':{padding:0},"& .MuiDataGrid-columnHeader:focus, .MuiDataGrid-cell:focus, .MuiDataGrid-columnHeader:focus-within, .MuiDataGrid-cell:focus-within":{outline:"none"}},toolbarContainer:{padding:e.spacing(2),backgroundColor:e.palette.background.paper,borderTop:`solid 1px ${e.palette.divider}`,"& .MuiButton-root":{marginRight:e.spacing(1.5),color:e.palette.text.secondary,"&:hover":{backgroundColor:e.palette.action.hover}}},paper:{boxShadow:e.customShadows.dropdown},menu:{"& .MuiPaper-root":{boxShadow:e.customShadows.dropdown,padding:8,borderRadius:12},"& .MuiMenuItem-root":{borderRadius:8,...e.typography.body2,"& .MuiListItemIcon-root":{minWidth:"auto",color:e.palette.primary.main},"& .MuiListItemText-primary":{fontSize:14}}},panelFooter:{padding:e.spacing(2),justifyContent:"flex-end",borderTop:`1px solid ${e.palette.divider}`,"& .MuiButton-root":{"&:first-of-type":{marginRight:e.spacing(1.5),color:e.palette.text.primary,"&:hover":{backgroundColor:e.palette.action.hover}},"&:last-of-type":{color:e.palette.common.white,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark}}}},filterForm:{padding:e.spacing(1.5,0),"& .MuiFormControl-root":{margin:e.spacing(0,.5)},"& .MuiInput-root":{marginTop:e.spacing(3),"&::before, &::after":{display:"none"},"& .MuiNativeSelect-select, .MuiInput-input":{...e.typography.body2,padding:e.spacing(.75,1),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.neutral},"& .MuiSvgIcon-root":{right:4}}}}}}}function oY(e){return{MuiSkeleton:{defaultProps:{animation:"wave"},styleOverrides:{root:{backgroundColor:e.palette.background.neutral}}}}}function aY(e){return{MuiBackdrop:{styleOverrides:{root:{backgroundColor:W(e.palette.grey[800],.8)},invisible:{background:"transparent"}}}}}const sY=["primary","secondary","info","success","warning","error"];function lY(e){const t=r=>{const n=r.variant==="buffer",i={borderRadius:4,"& .MuiLinearProgress-bar":{borderRadius:4},...n&&{backgroundColor:"transparent"}};return[...sY.map(a=>({...r.color===a&&{backgroundColor:P.alpha(e.palette[a].main,.24)}})),i]};return{MuiLinearProgress:{styleOverrides:{root:({ownerState:r})=>t(r)}}}}function uY(e){return{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:e.palette.divider}}}}}function cY(e){return{MuiTreeView:{defaultProps:{defaultCollapseIcon:y.jsx(MU,{sx:{width:20,height:20}}),defaultExpandIcon:y.jsx(PU,{sx:{width:20,height:20}}),defaultEndIcon:y.jsx(AU,{sx:{color:"text.secondary",width:20,height:20}})}},MuiTreeItem:{styleOverrides:{label:{...e.typography.body2},iconContainer:{width:"auto"}}}}}function fY(e){return{MuiCheckbox:{defaultProps:{icon:y.jsx(SU,{}),checkedIcon:y.jsx(EU,{}),indeterminateIcon:y.jsx(TU,{})},styleOverrides:{root:({ownerState:t})=>({padding:e.spacing(1),...t.size==="small"&&{"& svg":{width:20,height:20}},...t.size==="medium"&&{"& svg":{width:24,height:24}}})}}}}function dY(e){return{MuiAccordion:{styleOverrides:{root:{backgroundColor:"transparent","&.Mui-expanded":{boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper},"&.Mui-disabled":{backgroundColor:"transparent"}}}},MuiAccordionSummary:{styleOverrides:{root:{paddingLeft:e.spacing(2),paddingRight:e.spacing(1),"&.Mui-disabled":{opacity:1,color:e.palette.action.disabled,"& .MuiTypography-root":{color:"inherit"}}},expandIconWrapper:{color:"inherit"}}}}}function hY(e){return{MuiTypography:{styleOverrides:{paragraph:{marginBottom:e.spacing(2)},gutterBottom:{marginBottom:e.spacing(1)}}}}}const pY=["primary","secondary","info","success","warning","error"];function gY(e){const t=e.palette.mode==="light",r=n=>{const i=n.variant==="outlined",o=n.variant==="soft",a={"& .MuiPaginationItem-root":{...i&&{borderColor:W(e.palette.grey[500],.32)},"&.Mui-selected":{fontWeight:e.typography.fontWeightMedium}}};return[...pY.map(u=>({...n.color===u&&{...o&&{"& .MuiPaginationItem-root":{"&.Mui-selected":{color:e.palette[u][t?"dark":"light"],backgroundColor:W(e.palette[u].main,.16),"&:hover":{backgroundColor:W(e.palette[u].main,.32)}}}}}})),a]};return{MuiPagination:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function mY(e){return{MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},li:{display:"inline-flex",margin:e.spacing(.25,0),"& > *":{...e.typography.body2}}}}}}const vY=["primary","secondary","info","success","warning","error"];function yY(e){const t=r=>{const n=r.color==="inherit",i=r.variant==="contained",o=r.variant==="outlined",a=r.variant==="text",s=r.variant==="soft",u=r.orientation==="horizontal",l=r.orientation==="vertical",c={"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!o&&{borderStyle:"solid",...n&&{borderColor:W(e.palette.grey[500],.32)},...u&&{borderWidth:"0px 1px 0px 0px"},...l&&{borderWidth:"0px 0px 1px 0px"}}}}},f=vY.map(h=>({"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!o&&{...r.color===h&&{...i&&{borderColor:W(e.palette[h].dark,.48)},...a&&{borderColor:W(e.palette[h].main,.48)},...s&&{borderColor:W(e.palette[h].dark,.24)}}}}}})),d={"& .MuiButtonGroup-grouped.Mui-disabled":{"&:not(:last-of-type)":{borderColor:e.palette.action.disabledBackground}}};return[...f,c,d]};return{MuiButtonGroup:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:r})=>t(r)}}}}function bY(e){return{MuiAutocomplete:{styleOverrides:{root:{"& span.MuiAutocomplete-tag":{...e.typography.body2,width:24,height:24,lineHeight:"24px",textAlign:"center",borderRadius:e.shape.borderRadius,backgroundColor:W(e.palette.grey[500],.16)}},paper:{boxShadow:e.customShadows.dropdown},listbox:{padding:e.spacing(0,1)},option:{...e.typography.body2,padding:e.spacing(1),margin:e.spacing(.75,0),borderRadius:e.shape.borderRadius}}}}}const xY=["primary","secondary","info","success","warning","error"];function wY(e){const t=r=>{const i={...r.color==="standard"&&{"&.Mui-selected":{borderColor:"inherit"}}},o=xY.map(s=>({...r.color===s&&{"&:hover":{borderColor:W(e.palette[s].main,.48),backgroundColor:W(e.palette[s].main,e.palette.action.hoverOpacity)},"&.Mui-selected":{borderColor:e.palette[s].main}}})),a={"&.Mui-disabled":{"&.Mui-selected":{color:e.palette.action.disabled,backgroundColor:e.palette.action.selected,borderColor:e.palette.action.disabledBackground}}};return[...o,i,a]};return{MuiToggleButton:{styleOverrides:{root:({ownerState:r})=>t(r)}},MuiToggleButtonGroup:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:`solid 1px ${W(e.palette.grey[500],.16)}`},grouped:{margin:4,borderColor:"transparent !important",borderRadius:`${e.shape.borderRadius}px !important`}}}}}function CY(e){return{MuiFormControlLabel:{styleOverrides:{label:{...e.typography.body2}}},MuiFormHelperText:{defaultProps:{component:"div"},styleOverrides:{root:{marginTop:e.spacing(1)}}},MuiFormLabel:{styleOverrides:{root:{color:e.palette.text.disabled}}}}}function SY(e){return{MuiLoadingButton:{variants:[{props:{loading:!0,loadingPosition:"start",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorStart":{left:10}}},{props:{loading:!0,loadingPosition:"end",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorEnd":{right:10}}}],styleOverrides:{loadingIndicatorStart:{left:14},loadingIndicatorEnd:{right:14}}}}}function EY(e){return Object.assign(mU(e),IU(e),$U(e),vU(e),FU(e),jU(),WU(e),HU(e),zU(),LU(e),RU(e),VU(),NU(e),QU(e),JU(),ZU(e),qU(e),YU(e),GU(e),KU(e),UU(e),nY(e),tY(e),rY(e),eY(),fY(e),iY(e),oY(e),uY(e),cY(e),aY(e),lY(e),dY(e),hY(e),gY(e),yY(e),mY(e),bY(e),CY(e),wY(e),SY())}const zy=hn("light"),TY=zy.grey[500],_Y=zy.common.black;function Vy(e){const t=W(e,.2),r=W(e,.14),n=W(e,.12);return["none",`0px 2px 1px -1px ${t},0px 1px 1px 0px ${r},0px 1px 3px 0px ${n}`,`0px 3px 1px -2px ${t},0px 2px 2px 0px ${r},0px 1px 5px 0px ${n}`,`0px 3px 3px -2px ${t},0px 3px 4px 0px ${r},0px 1px 8px 0px ${n}`,`0px 2px 4px -1px ${t},0px 4px 5px 0px ${r},0px 1px 10px 0px ${n}`,`0px 3px 5px -1px ${t},0px 5px 8px 0px ${r},0px 1px 14px 0px ${n}`,`0px 3px 5px -1px ${t},0px 6px 10px 0px ${r},0px 1px 18px 0px ${n}`,`0px 4px 5px -2px ${t},0px 7px 10px 1px ${r},0px 2px 16px 1px ${n}`,`0px 5px 5px -3px ${t},0px 8px 10px 1px ${r},0px 3px 14px 2px ${n}`,`0px 5px 6px -3px ${t},0px 9px 12px 1px ${r},0px 3px 16px 2px ${n}`,`0px 6px 6px -3px ${t},0px 10px 14px 1px ${r},0px 4px 18px 3px ${n}`,`0px 6px 7px -4px ${t},0px 11px 15px 1px ${r},0px 4px 20px 3px ${n}`,`0px 7px 8px -4px ${t},0px 12px 17px 2px ${r},0px 5px 22px 4px ${n}`,`0px 7px 8px -4px ${t},0px 13px 19px 2px ${r},0px 5px 24px 4px ${n}`,`0px 7px 9px -4px ${t},0px 14px 21px 2px ${r},0px 5px 26px 4px ${n}`,`0px 8px 9px -5px ${t},0px 15px 22px 2px ${r},0px 6px 28px 5px ${n}`,`0px 8px 10px -5px ${t},0px 16px 24px 2px ${r},0px 6px 30px 5px ${n}`,`0px 8px 11px -5px ${t},0px 17px 26px 2px ${r},0px 6px 32px 5px ${n}`,`0px 9px 11px -5px ${t},0px 18px 28px 2px ${r},0px 7px 34px 6px ${n}`,`0px 9px 12px -6px ${t},0px 19px 29px 2px ${r},0px 7px 36px 6px ${n}`,`0px 10px 13px -6px ${t},0px 20px 31px 3px ${r},0px 8px 38px 7px ${n}`,`0px 10px 13px -6px ${t},0px 21px 33px 3px ${r},0px 8px 40px 7px ${n}`,`0px 10px 14px -6px ${t},0px 22px 35px 3px ${r},0px 8px 42px 7px ${n}`,`0px 11px 14px -7px ${t},0px 23px 36px 3px ${r},0px 9px 44px 8px ${n}`,`0px 11px 15px -7px ${t},0px 24px 38px 3px ${r},0px 9px 46px 8px ${n}`]}const OY=e=>Vy(e==="light"?TY:_Y);function Bt(e){return`${e/16}rem`}function to({sm:e,md:t,lg:r}){return{"@media (min-width:600px)":{fontSize:Bt(e)},"@media (min-width:900px)":{fontSize:Bt(t)},"@media (min-width:1200px)":{fontSize:Bt(r)}}}const kY={fontFamily:"Public Sans, sans-serif",fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,h1:{fontWeight:800,lineHeight:80/64,fontSize:Bt(40),...to({sm:52,md:58,lg:64})},h2:{fontWeight:800,lineHeight:64/48,fontSize:Bt(32),...to({sm:40,md:44,lg:48})},h3:{fontWeight:700,lineHeight:1.5,fontSize:Bt(24),...to({sm:26,md:30,lg:32})},h4:{fontWeight:700,lineHeight:1.5,fontSize:Bt(20),...to({sm:20,md:24,lg:24})},h5:{fontWeight:700,lineHeight:1.5,fontSize:Bt(18),...to({sm:19,md:20,lg:20})},h6:{fontWeight:700,lineHeight:28/18,fontSize:Bt(17),...to({sm:18,md:18,lg:18})},subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:Bt(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:Bt(14)},body1:{lineHeight:1.5,fontSize:Bt(16)},body2:{lineHeight:22/14,fontSize:Bt(14)},caption:{lineHeight:1.5,fontSize:Bt(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:Bt(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:Bt(14),textTransform:"capitalize"}},Wy=({children:e,color:t,direction:r="ltr",themeMode:n="light"})=>{const i=g.useMemo(()=>({palette:cU(t),typography:kY,shape:{borderRadius:8},direction:r,shadows:OY(n),customShadows:hU(n,t)}),[t,r,n]),o=pg(i);return o.components=EY(o),y.jsx(G0,{injectFirst:!0,children:y.jsxs(mg,{theme:o,children:[y.jsx(P.CssBaseline,{}),y.jsx(pU,{}),e]})})},rZ="",nZ="",MY=({themeColor:e,children:t})=>y.jsx(co.LocalizationProvider,{dateAdapter:JW,adapterLocale:IH,children:y.jsx(Wy,{color:e,children:t})}),ro=e=>e&&e.charAt(0).toUpperCase(),PY=e=>["A","N","H","L","Q"].includes(ro(e))?"primary":["F","G","T","I","J"].includes(ro(e))?"info":["K","D","Y","B","O"].includes(ro(e))?"success":["P","E","R","S","U"].includes(ro(e))?"warning":["V","W","X","M","Z"].includes(ro(e))?"error":"default",Hy=g.forwardRef(({color:e,name:t="",BadgeProps:r,children:n,sx:i,...o},a)=>{var d,h;const s=mi(),u=ro(t),l=PY(t),c=e||l,f=c==="default"?y.jsxs(P.Avatar,{ref:a,sx:i,...o,children:[t&&u,n]}):y.jsxs(P.Avatar,{ref:a,sx:{color:(d=s.palette[c])==null?void 0:d.contrastText,backgroundColor:(h=s.palette[c])==null?void 0:h.main,fontWeight:s.typography.fontWeightMedium,...i},...o,children:[t&&u,n]});return r?y.jsx(P.Badge,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},...r,children:f}):f});Hy.displayName="CustomAvatar";const pn={tiny:24,small:32,medium:40,large:56},Uy=g.forwardRef(({size:e="small",compact:t,max:r,children:n,sx:i,...o},a)=>{const s=e==="tiny",u=e==="small",l=e==="medium",c=e==="large",f={width:40,height:40,position:"relative","& .MuiAvatarGroup-avatar":{m:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}};return y.jsx(P.AvatarGroup,{ref:a,max:t?3:r,spacing:(s||u)&&"medium"||"small",sx:{"& .MuiAvatar-root":{...c&&{width:pn.large,height:pn.large,"&:first-of-type":{fontSize:16}},...l&&{width:pn.medium,height:pn.medium},...u&&{width:pn.small,height:pn.small},...s&&{width:pn.tiny,height:pn.tiny}},...t&&{...f},...i},...o,children:n})});Uy.displayName="CustomAvatarGroup";const Yy=P.styled(P.Box)({display:"flex",flexDirection:"row",alignItems:"center",padding:"0 16px"}),AY=()=>{const e=Xn.useGridApiContext(),{rowHeight:t,paginationModel:r}=Xn.useGridRootProps(),n=(r==null?void 0:r.pageSize)||12,i=Xn.gridColumnsTotalWidthSelector(e),o=Xn.gridColumnPositionsSelector(e),a=g.useMemo(()=>o.filter(l=>l<=i).length,[i,o]),s=e.current.getVisibleColumns().slice(0,a),u=g.useMemo(()=>{const l=[];for(let c=0;c<n;c+=1){for(const f of s)l.push(y.jsx(Yy,{sx:{justifyContent:f.align,minWidth:f.cellClassName==="MuiDataGrid-cellCheckbox"?64:void 0},children:y.jsx(P.Skeleton,{width:"100%"})},`column-${c}-${f.field}`));l.push(y.jsx(Yy,{},`fill-${c}`))}return l},[n,s]);return y.jsx("div",{style:{display:"grid",gridTemplateColumns:`${s.map(({computedWidth:l})=>`${l}px`).join(" ")} 1fr`,gridAutoRows:t},children:u})},DY=({columns:e,...t})=>{const r=[{...Xn.GRID_CHECKBOX_SELECTION_COL_DEF,width:71},...e],n=g.useCallback(i=>({bottom:i.isLastVisible?0:8}),[]);return y.jsx(Xn.DataGridPremium,{columns:r,autoHeight:!0,rowHeight:72,getRowSpacing:n,slots:{loadingOverlay:AY},localeText:{actionsCellMore:"Ações",aggregationFunctionLabelAvg:"Média",aggregationFunctionLabelMax:"Máx",aggregationFunctionLabelMin:"Mín",aggregationFunctionLabelSize:"Quantidade",aggregationFunctionLabelSum:"Soma",aggregationMenuItemHeader:"Agregação",booleanCellFalseLabel:"Ativos",booleanCellTrueLabel:"Inativos",checkboxSelectionHeaderName:"Coluna se Seleção",columnHeaderFiltersLabel:"Filtro",columnMenuFilter:"Filtrar",columnMenuHideColumn:"Ocultar coluna",columnMenuLabel:"Colunas",columnMenuManageColumns:"Gerenciar colunas",columnsPanelHideAllButton:"Ocultar todas",columnsPanelShowAllButton:"Mostar todas",columnsPanelTextFieldLabel:"Buscar coluna",columnsPanelTextFieldPlaceholder:"Digite o nome da coluna",filterPanelAddFilter:"Adicionar filtro",filterPanelColumns:"Colunas",filterPanelDeleteIconLabel:"Remover",filterPanelInputLabel:"Filtro",filterPanelInputPlaceholder:"Valor do filtro",filterPanelLogicOperator:"Condição",filterPanelOperator:"Condição",filterPanelOperatorAnd:"e",filterPanelOperatorOr:"ou",filterPanelRemoveAll:"Remover todos",groupColumn:i=>`Agrupar por ${i}`,groupingColumnHeaderName:"Grupo",pinToLeft:"Fixar na esquerda",pinToRight:"Fixar na direita",toolbarColumns:"Colunas",toolbarDensity:"Densidade",toolbarDensityComfortable:"Confortável",toolbarDensityCompact:"Compacto",toolbarDensityStandard:"Padrão",toolbarExport:"Exportar",toolbarExportCSV:"Exportar como CSV",toolbarExportExcel:"Exportar como Excel",toolbarExportLabel:"Exportar",toolbarExportPrint:"Imprimir",toolbarFilters:"Filtros",unGroupColumn:i=>`Parar de agrupar por ${i}`,unpin:"Desafixar",footerRowSelected:i=>`${i} ${i===1?"linha selecionada":"linhas selecionadas"}`,MuiTablePagination:{labelRowsPerPage:"N° de linhas",labelDisplayedRows:i=>`${i.from}-${i.to} de ${i.count}`}},...t})},$Y=({children:e,waitBeforeShow:t=500})=>{const[r,n]=g.useState(!1);return g.useEffect(()=>{const i=setTimeout(()=>n(!0),t);return()=>clearTimeout(i)},[t]),r?e:null};var Gy={exports:{}};(()=>{var e={296:(i,o,a)=>{var s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,d=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,h=typeof self=="object"&&self&&self.Object===Object&&self,m=d||h||Function("return this")(),p=Object.prototype.toString,v=Math.max,x=Math.min,b=function(){return m.Date.now()};function C(w){var _=typeof w;return!!w&&(_=="object"||_=="function")}function E(w){if(typeof w=="number")return w;if(function(k){return typeof k=="symbol"||function(D){return!!D&&typeof D=="object"}(k)&&p.call(k)=="[object Symbol]"}(w))return NaN;if(C(w)){var _=typeof w.valueOf=="function"?w.valueOf():w;w=C(_)?_+"":_}if(typeof w!="string")return w===0?w:+w;w=w.replace(s,"");var O=l.test(w);return O||c.test(w)?f(w.slice(2),O?2:8):u.test(w)?NaN:+w}i.exports=function(w,_,O){var k,D,L,re,pe,se,q=0,G=!1,me=!1,Ee=!0;if(typeof w!="function")throw new TypeError("Expected a function");function Ie(ee){var H=k,fe=D;return k=D=void 0,q=ee,re=w.apply(fe,H)}function Oe(ee){var H=ee-se;return se===void 0||H>=_||H<0||me&&ee-q>=L}function $(){var ee=b();if(Oe(ee))return j(ee);pe=setTimeout($,function(H){var fe=_-(H-se);return me?x(fe,L-(H-q)):fe}(ee))}function j(ee){return pe=void 0,Ee&&k?Ie(ee):(k=D=void 0,re)}function X(){var ee=b(),H=Oe(ee);if(k=arguments,D=this,se=ee,H){if(pe===void 0)return function(fe){return q=fe,pe=setTimeout($,_),G?Ie(fe):re}(se);if(me)return pe=setTimeout($,_),Ie(se)}return pe===void 0&&(pe=setTimeout($,_)),re}return _=E(_)||0,C(O)&&(G=!!O.leading,L=(me="maxWait"in O)?v(E(O.maxWait)||0,_):L,Ee="trailing"in O?!!O.trailing:Ee),X.cancel=function(){pe!==void 0&&clearTimeout(pe),q=0,k=se=D=pe=void 0},X.flush=function(){return pe===void 0?re:j(b())},X}},96:(i,o,a)=>{var s="Expected a function",u=NaN,l="[object Symbol]",c=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,h=/^0o[0-7]+$/i,m=parseInt,p=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,v=typeof self=="object"&&self&&self.Object===Object&&self,x=p||v||Function("return this")(),b=Object.prototype.toString,C=Math.max,E=Math.min,w=function(){return x.Date.now()};function _(k){var D=typeof k;return!!k&&(D=="object"||D=="function")}function O(k){if(typeof k=="number")return k;if(function(re){return typeof re=="symbol"||function(pe){return!!pe&&typeof pe=="object"}(re)&&b.call(re)==l}(k))return u;if(_(k)){var D=typeof k.valueOf=="function"?k.valueOf():k;k=_(D)?D+"":D}if(typeof k!="string")return k===0?k:+k;k=k.replace(c,"");var L=d.test(k);return L||h.test(k)?m(k.slice(2),L?2:8):f.test(k)?u:+k}i.exports=function(k,D,L){var re=!0,pe=!0;if(typeof k!="function")throw new TypeError(s);return _(L)&&(re="leading"in L?!!L.leading:re,pe="trailing"in L?!!L.trailing:pe),function(se,q,G){var me,Ee,Ie,Oe,$,j,X=0,ee=!1,H=!1,fe=!0;if(typeof se!="function")throw new TypeError(s);function ue(be){var R=me,Be=Ee;return me=Ee=void 0,X=be,Oe=se.apply(Be,R)}function ge(be){var R=be-j;return j===void 0||R>=q||R<0||H&&be-X>=Ie}function Z(){var be=w();if(ge(be))return Q(be);$=setTimeout(Z,function(R){var Be=q-(R-j);return H?E(Be,Ie-(R-X)):Be}(be))}function Q(be){return $=void 0,fe&&me?ue(be):(me=Ee=void 0,Oe)}function ne(){var be=w(),R=ge(be);if(me=arguments,Ee=this,j=be,R){if($===void 0)return function(Be){return X=Be,$=setTimeout(Z,q),ee?ue(Be):Oe}(j);if(H)return $=setTimeout(Z,q),ue(j)}return $===void 0&&($=setTimeout(Z,q)),Oe}return q=O(q)||0,_(G)&&(ee=!!G.leading,Ie=(H="maxWait"in G)?C(O(G.maxWait)||0,q):Ie,fe="trailing"in G?!!G.trailing:fe),ne.cancel=function(){$!==void 0&&clearTimeout($),X=0,me=j=Ee=$=void 0},ne.flush=function(){return $===void 0?Oe:Q(w())},ne}(k,D,{leading:re,maxWait:D,trailing:pe})}},703:(i,o,a)=>{var s=a(414);function u(){}function l(){}l.resetWarningCache=u,i.exports=function(){function c(h,m,p,v,x,b){if(b!==s){var C=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 C.name="Invariant Violation",C}}function f(){return c}c.isRequired=c;var d={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:f,element:c,elementType:c,instanceOf:f,node:c,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:l,resetWarningCache:u};return d.PropTypes=d,d}},697:(i,o,a)=>{i.exports=a(703)()},414:i=>{i.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function r(i){var o=t[i];if(o!==void 0)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,r),a.exports}r.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return r.d(o,{a:o}),o},r.d=(i,o)=>{for(var a in o)r.o(o,a)&&!r.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:o[a]})},r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),r.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),r.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{LazyLoadComponent:()=>le,LazyLoadImage:()=>ct,trackWindowScroll:()=>j});const i=g;var o=r.n(i),a=r(697);const s=Rd;var u=r.n(s);function l(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(I){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},c(I)}function f(I,M){var B=Object.keys(I);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(I);M&&(z=z.filter(function(Ce){return Object.getOwnPropertyDescriptor(I,Ce).enumerable})),B.push.apply(B,z)}return B}function d(I,M,B){return(M=m(M))in I?Object.defineProperty(I,M,{value:B,enumerable:!0,configurable:!0,writable:!0}):I[M]=B,I}function h(I,M){for(var B=0;B<M.length;B++){var z=M[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,m(z.key),z)}}function m(I){var M=function(B,z){if(c(B)!=="object"||B===null)return B;var Ce=B[Symbol.toPrimitive];if(Ce!==void 0){var ke=Ce.call(B,"string");if(c(ke)!=="object")return ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(I);return c(M)==="symbol"?M:String(M)}function p(I,M){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,z){return B.__proto__=z,B},p(I,M)}function v(I){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},v(I)}var x=function(I){I.forEach(function(M){M.isIntersecting&&M.target.onVisible()})},b={},C=function(I){(function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&p(A,F)})(Ne,I);var M,B,z,Ce,ke=(z=Ne,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,F=v(z);if(Ce){var ce=v(this).constructor;A=Reflect.construct(F,arguments,ce)}else A=F.apply(this,arguments);return function(oe,ie){if(ie&&(c(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Me){if(Me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me}(oe)}(this,A)});function Ne(A){var F;if(function(oe,ie){if(!(oe instanceof ie))throw new TypeError("Cannot call a class as a function")}(this,Ne),(F=ke.call(this,A)).supportsObserver=!A.scrollPosition&&A.useIntersectionObserver&&l(),F.supportsObserver){var ce=A.threshold;F.observer=function(oe){return b[oe]=b[oe]||new IntersectionObserver(x,{rootMargin:oe+"px"}),b[oe]}(ce)}return F}return M=Ne,B=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,F=this.placeholder.getBoundingClientRect(),ce=u().findDOMNode(this.placeholder).style,oe=parseInt(ce.getPropertyValue("margin-left"),10)||0,ie=parseInt(ce.getPropertyValue("margin-top"),10)||0;return{bottom:A.y+F.bottom+ie,left:A.x+F.left+oe,right:A.x+F.right+oe,top:A.y+F.top+ie}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var A=this.props,F=A.scrollPosition,ce=A.threshold,oe=this.getPlaceholderBoundingBox(F),ie=F.y+window.innerHeight,Me=F.x,st=F.x+window.innerWidth,et=F.y;return et-ce<=oe.bottom&&ie+ce>=oe.top&&Me-ce<=oe.right&&st+ce>=oe.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var A=this,F=this.props,ce=F.className,oe=F.height,ie=F.placeholder,Me=F.style,st=F.width;if(ie&&typeof ie.type!="function")return o().cloneElement(ie,{ref:function(tt){return A.placeholder=tt}});var et=function(tt){for(var _t=1;_t<arguments.length;_t++){var vt=arguments[_t]!=null?arguments[_t]:{};_t%2?f(Object(vt),!0).forEach(function(Ft){d(tt,Ft,vt[Ft])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(vt)):f(Object(vt)).forEach(function(Ft){Object.defineProperty(tt,Ft,Object.getOwnPropertyDescriptor(vt,Ft))})}return tt}({display:"inline-block"},Me);return st!==void 0&&(et.width=st),oe!==void 0&&(et.height=oe),o().createElement("span",{className:ce,ref:function(tt){return A.placeholder=tt},style:et},ie)}}],B&&h(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Ne}(o().Component);C.propTypes={onVisible:a.PropTypes.func.isRequired,className:a.PropTypes.string,height:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string]),placeholder:a.PropTypes.element,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,scrollPosition:a.PropTypes.shape({x:a.PropTypes.number.isRequired,y:a.PropTypes.number.isRequired}),width:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string])},C.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const E=C;var w=r(296),_=r.n(w),O=r(96),k=r.n(O),D=function(I){var M=getComputedStyle(I,null);return M.getPropertyValue("overflow")+M.getPropertyValue("overflow-y")+M.getPropertyValue("overflow-x")};const L=function(I){if(!(I instanceof HTMLElement))return window;for(var M=I;M&&M instanceof HTMLElement;){if(/(scroll|auto)/.test(D(M)))return M;M=M.parentNode}return window};function re(I){return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},re(I)}var pe=["delayMethod","delayTime"];function se(){return se=Object.assign?Object.assign.bind():function(I){for(var M=1;M<arguments.length;M++){var B=arguments[M];for(var z in B)Object.prototype.hasOwnProperty.call(B,z)&&(I[z]=B[z])}return I},se.apply(this,arguments)}function q(I,M){for(var B=0;B<M.length;B++){var z=M[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,(Ce=function(ke,Ne){if(re(ke)!=="object"||ke===null)return ke;var A=ke[Symbol.toPrimitive];if(A!==void 0){var F=A.call(ke,"string");if(re(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ke)}(z.key),re(Ce)==="symbol"?Ce:String(Ce)),z)}var Ce}function G(I,M){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,z){return B.__proto__=z,B},G(I,M)}function me(I,M){if(M&&(re(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ee(I)}function Ee(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function Ie(I){return Ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},Ie(I)}var Oe=function(){return typeof window>"u"?0:window.scrollX||window.pageXOffset},$=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const j=function(I){var M=function(B){(function(ce,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function");ce.prototype=Object.create(oe&&oe.prototype,{constructor:{value:ce,writable:!0,configurable:!0}}),Object.defineProperty(ce,"prototype",{writable:!1}),oe&&G(ce,oe)})(F,B);var z,Ce,ke,Ne,A=(ke=F,Ne=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var ce,oe=Ie(ke);if(Ne){var ie=Ie(this).constructor;ce=Reflect.construct(oe,arguments,ie)}else ce=oe.apply(this,arguments);return me(this,ce)});function F(ce){var oe;if(function(Me,st){if(!(Me instanceof st))throw new TypeError("Cannot call a class as a function")}(this,F),(oe=A.call(this,ce)).useIntersectionObserver=ce.useIntersectionObserver&&l(),oe.useIntersectionObserver)return me(oe);var ie=oe.onChangeScroll.bind(Ee(oe));return ce.delayMethod==="debounce"?oe.delayedScroll=_()(ie,ce.delayTime):ce.delayMethod==="throttle"&&(oe.delayedScroll=k()(ie,ce.delayTime)),oe.state={scrollPosition:{x:Oe(),y:$()}},oe.baseComponentRef=o().createRef(),oe}return z=F,(Ce=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||L(u().findDOMNode(this.baseComponentRef.current))!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=L(u().findDOMNode(this.baseComponentRef.current)),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:Oe(),y:$()}})}},{key:"render",value:function(){var ce=this.props,oe=(ce.delayMethod,ce.delayTime,function(Me,st){if(Me==null)return{};var et,tt,_t=function(Ft,Xr){if(Ft==null)return{};var Zr,Kn,Sa={},Bl=Object.keys(Ft);for(Kn=0;Kn<Bl.length;Kn++)Zr=Bl[Kn],Xr.indexOf(Zr)>=0||(Sa[Zr]=Ft[Zr]);return Sa}(Me,st);if(Object.getOwnPropertySymbols){var vt=Object.getOwnPropertySymbols(Me);for(tt=0;tt<vt.length;tt++)et=vt[tt],st.indexOf(et)>=0||Object.prototype.propertyIsEnumerable.call(Me,et)&&(_t[et]=Me[et])}return _t}(ce,pe)),ie=this.useIntersectionObserver?null:this.state.scrollPosition;return o().createElement(I,se({forwardRef:this.baseComponentRef,scrollPosition:ie},oe))}}])&&q(z.prototype,Ce),Object.defineProperty(z,"prototype",{writable:!1}),F}(o().Component);return M.propTypes={delayMethod:a.PropTypes.oneOf(["debounce","throttle"]),delayTime:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool},M.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},M};function X(I){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},X(I)}function ee(I,M){for(var B=0;B<M.length;B++){var z=M[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,(Ce=function(ke,Ne){if(X(ke)!=="object"||ke===null)return ke;var A=ke[Symbol.toPrimitive];if(A!==void 0){var F=A.call(ke,"string");if(X(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ke)}(z.key),X(Ce)==="symbol"?Ce:String(Ce)),z)}var Ce}function H(I,M){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,z){return B.__proto__=z,B},H(I,M)}function fe(I){return fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},fe(I)}var ue=function(I){(function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&H(A,F)})(Ne,I);var M,B,z,Ce,ke=(z=Ne,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,F=fe(z);if(Ce){var ce=fe(this).constructor;A=Reflect.construct(F,arguments,ce)}else A=F.apply(this,arguments);return function(oe,ie){if(ie&&(X(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Me){if(Me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me}(oe)}(this,A)});function Ne(A){return function(F,ce){if(!(F instanceof ce))throw new TypeError("Cannot call a class as a function")}(this,Ne),ke.call(this,A)}return M=Ne,(B=[{key:"render",value:function(){return o().createElement(E,this.props)}}])&&ee(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Ne}(o().Component);const ge=j(ue);function Z(I){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},Z(I)}function Q(I,M){for(var B=0;B<M.length;B++){var z=M[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,(Ce=function(ke,Ne){if(Z(ke)!=="object"||ke===null)return ke;var A=ke[Symbol.toPrimitive];if(A!==void 0){var F=A.call(ke,"string");if(Z(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ke)}(z.key),Z(Ce)==="symbol"?Ce:String(Ce)),z)}var Ce}function ne(I,M){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,z){return B.__proto__=z,B},ne(I,M)}function be(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function R(I){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},R(I)}var Be=function(I){(function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&ne(A,F)})(Ne,I);var M,B,z,Ce,ke=(z=Ne,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,F=R(z);if(Ce){var ce=R(this).constructor;A=Reflect.construct(F,arguments,ce)}else A=F.apply(this,arguments);return function(oe,ie){if(ie&&(Z(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return be(oe)}(this,A)});function Ne(A){var F;(function(st,et){if(!(st instanceof et))throw new TypeError("Cannot call a class as a function")})(this,Ne),F=ke.call(this,A);var ce=A.afterLoad,oe=A.beforeLoad,ie=A.scrollPosition,Me=A.visibleByDefault;return F.state={visible:Me},Me&&(oe(),ce()),F.onVisible=F.onVisible.bind(be(F)),F.isScrollTracked=!!(ie&&Number.isFinite(ie.x)&&ie.x>=0&&Number.isFinite(ie.y)&&ie.y>=0),F}return M=Ne,(B=[{key:"componentDidUpdate",value:function(A,F){F.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var A=this.props,F=A.className,ce=A.delayMethod,oe=A.delayTime,ie=A.height,Me=A.placeholder,st=A.scrollPosition,et=A.style,tt=A.threshold,_t=A.useIntersectionObserver,vt=A.width;return this.isScrollTracked||_t&&l()?o().createElement(E,{className:F,height:ie,onVisible:this.onVisible,placeholder:Me,scrollPosition:st,style:et,threshold:tt,useIntersectionObserver:_t,width:vt}):o().createElement(ge,{className:F,delayMethod:ce,delayTime:oe,height:ie,onVisible:this.onVisible,placeholder:Me,style:et,threshold:tt,width:vt})}}])&&Q(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Ne}(o().Component);Be.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool},Be.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const le=Be;function ht(I){return ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},ht(I)}var Zt=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Vt(I,M){var B=Object.keys(I);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(I);M&&(z=z.filter(function(Ce){return Object.getOwnPropertyDescriptor(I,Ce).enumerable})),B.push.apply(B,z)}return B}function Kr(I){for(var M=1;M<arguments.length;M++){var B=arguments[M]!=null?arguments[M]:{};M%2?Vt(Object(B),!0).forEach(function(z){wr(I,z,B[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(B)):Vt(Object(B)).forEach(function(z){Object.defineProperty(I,z,Object.getOwnPropertyDescriptor(B,z))})}return I}function wr(I,M,B){return(M=bn(M))in I?Object.defineProperty(I,M,{value:B,enumerable:!0,configurable:!0,writable:!0}):I[M]=B,I}function Cr(){return Cr=Object.assign?Object.assign.bind():function(I){for(var M=1;M<arguments.length;M++){var B=arguments[M];for(var z in B)Object.prototype.hasOwnProperty.call(B,z)&&(I[z]=B[z])}return I},Cr.apply(this,arguments)}function Ca(I,M){for(var B=0;B<M.length;B++){var z=M[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,bn(z.key),z)}}function bn(I){var M=function(B,z){if(ht(B)!=="object"||B===null)return B;var Ce=B[Symbol.toPrimitive];if(Ce!==void 0){var ke=Ce.call(B,"string");if(ht(ke)!=="object")return ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(I);return ht(M)==="symbol"?M:String(M)}function qn(I,M){return qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,z){return B.__proto__=z,B},qn(I,M)}function K(I){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},K(I)}var ve=function(I){(function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&qn(A,F)})(Ne,I);var M,B,z,Ce,ke=(z=Ne,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,F=K(z);if(Ce){var ce=K(this).constructor;A=Reflect.construct(F,arguments,ce)}else A=F.apply(this,arguments);return function(oe,ie){if(ie&&(ht(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Me){if(Me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me}(oe)}(this,A)});function Ne(A){var F;return function(ce,oe){if(!(ce instanceof oe))throw new TypeError("Cannot call a class as a function")}(this,Ne),(F=ke.call(this,A)).state={loaded:!1},F}return M=Ne,(B=[{key:"onImageLoad",value:function(){var A=this;return this.state.loaded?null:function(F){A.props.onLoad(F),A.props.afterLoad(),A.setState({loaded:!0})}}},{key:"getImg",value:function(){var A=this.props,F=(A.afterLoad,A.beforeLoad,A.delayMethod,A.delayTime,A.effect,A.placeholder,A.placeholderSrc,A.scrollPosition,A.threshold,A.useIntersectionObserver,A.visibleByDefault,A.wrapperClassName,A.wrapperProps,function(ce,oe){if(ce==null)return{};var ie,Me,st=function(tt,_t){if(tt==null)return{};var vt,Ft,Xr={},Zr=Object.keys(tt);for(Ft=0;Ft<Zr.length;Ft++)vt=Zr[Ft],_t.indexOf(vt)>=0||(Xr[vt]=tt[vt]);return Xr}(ce,oe);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(ce);for(Me=0;Me<et.length;Me++)ie=et[Me],oe.indexOf(ie)>=0||Object.prototype.propertyIsEnumerable.call(ce,ie)&&(st[ie]=ce[ie])}return st}(A,Zt));return o().createElement("img",Cr({},F,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var A=this.props,F=A.beforeLoad,ce=A.className,oe=A.delayMethod,ie=A.delayTime,Me=A.height,st=A.placeholder,et=A.scrollPosition,tt=A.style,_t=A.threshold,vt=A.useIntersectionObserver,Ft=A.visibleByDefault,Xr=A.width;return o().createElement(le,{beforeLoad:F,className:ce,delayMethod:oe,delayTime:ie,height:Me,placeholder:st,scrollPosition:et,style:tt,threshold:_t,useIntersectionObserver:vt,visibleByDefault:Ft,width:Xr},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(A){var F=this.props,ce=F.effect,oe=F.height,ie=F.placeholderSrc,Me=F.width,st=F.wrapperClassName,et=F.wrapperProps,tt=this.state.loaded,_t=tt?" lazy-load-image-loaded":"",vt=tt||!ie?{}:{backgroundImage:"url(".concat(ie,")"),backgroundSize:"100% 100%"};return o().createElement("span",Cr({className:st+" lazy-load-image-background "+ce+_t,style:Kr(Kr({},vt),{},{color:"transparent",display:"inline-block",height:oe,width:Me})},et),A)}},{key:"render",value:function(){var A=this.props,F=A.effect,ce=A.placeholderSrc,oe=A.visibleByDefault,ie=A.wrapperClassName,Me=A.wrapperProps,st=this.getLazyLoadImage();return(F||ce)&&!oe||ie||Me?this.getWrappedLazyLoadImage(st):st}}])&&Ca(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Ne}(o().Component);ve.propTypes={onLoad:a.PropTypes.func,afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,delayMethod:a.PropTypes.string,delayTime:a.PropTypes.number,effect:a.PropTypes.string,placeholderSrc:a.PropTypes.string,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool,wrapperClassName:a.PropTypes.string,wrapperProps:a.PropTypes.object},ve.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const ct=ve})(),Gy.exports=n})();var IY=Gy.exports;const FY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACAQMAAACjTyRkAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjAAIAAAQAASDSLW8AAAAASUVORK5CYII=",jY="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxyYWRpYWxHcmFkaWVudCBpZD0iYSIgY3g9IjUwJSIgY3k9IjQ2LjgwMTEwMiUiIHI9Ijk1LjQ5NzExMiUiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjOTE5ZWFiIiBzdG9wLW9wYWNpdHk9Ii40OCIvPjwvcmFkaWFsR3JhZGllbnQ+PHBhdGggZD0ibTg4IDg2aDUxMnY1MTJoLTUxMnoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTg4IC04NikiLz48L3N2Zz4=";function LY(e="1/1"){return{"4/3":"calc(100% / 4 * 3)","3/4":"calc(100% / 3 * 4)","6/4":"calc(100% / 6 * 4)","4/6":"calc(100% / 4 * 6)","16/9":"calc(100% / 16 * 9)","9/16":"calc(100% / 9 * 16)","21/9":"calc(100% / 21 * 9)","9/21":"calc(100% / 9 * 21)","1/1":"100%"}[e]}const vl=g.forwardRef(({ratio:e,disabledEffect:t=!1,effect:r="blur",sx:n,...i},o)=>{const a=y.jsx(P.Box,{component:IY.LazyLoadImage,wrapperClassName:"wrapper",effect:t?void 0:r,placeholderSrc:t?FY:jY,sx:{width:1,height:1,objectFit:"cover"},...i});return e?y.jsx(P.Box,{ref:o,component:"span",sx:{width:1,lineHeight:1,display:"block",overflow:"hidden",position:"relative",pt:LY(e),"& .wrapper":{top:0,left:0,width:1,height:1,position:"absolute",backgroundSize:"cover !important"},...n},children:a}):y.jsx(P.Box,{ref:o,component:"span",sx:{lineHeight:1,display:"block",overflow:"hidden",position:"relative","& .wrapper":{width:1,height:1,backgroundSize:"cover !important"},...n},children:a})});vl.displayName="Image";/*! *****************************************************************************
|
|
135
|
+
`),g.createElement("div",{style:c.white,className:"saturation-white"},g.createElement("div",{style:c.black,className:"saturation-black"}),g.createElement("div",{style:c.pointer},this.props.pointer?g.createElement(this.props.pointer,this.props):g.createElement("div",{style:c.circle}))))}}]),t}(g.PureComponent||g.Component);function AN(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var DN=ty(Object.keys,Object);const $N=DN;var IN=Object.prototype,FN=IN.hasOwnProperty;function jN(e){if(!td(e))return $N(e);var t=[];for(var r in Object(e))FN.call(e,r)&&r!="constructor"&&t.push(r);return t}function ld(e){return Bi(e)?dy(e):jN(e)}function LN(e,t){return e&&K1(e,t,ld)}function RN(e,t){return function(r,n){if(r==null)return r;if(!Bi(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}var NN=RN(LN);const by=NN;function BN(e){return typeof e=="function"?e:wl}function zN(e,t){var r=rr(e)?AN:by;return r(e,BN(t))}function El(e){"@babel/helpers - typeof";return El=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},El(e)}var VN=/^\s+/,WN=/\s+$/;function he(e,t){if(e=e||"",t=t||{},e instanceof he)return e;if(!(this instanceof he))return new he(e,t);var r=HN(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}he.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,i,o,a,s;return r=t.r/255,n=t.g/255,i=t.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*a+.0722*s},setAlpha:function(t){return this._a=Ty(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=wy(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=wy(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+i+"%)":"hsva("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=xy(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=xy(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+i+"%)":"hsla("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return Cy(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return qN(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ht(this._r,255)*100)+"%",g:Math.round(ht(this._g,255)*100)+"%",b:Math.round(ht(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ht(this._r,255)*100)+"%, "+Math.round(ht(this._g,255)*100)+"%, "+Math.round(ht(this._b,255)*100)+"%)":"rgba("+Math.round(ht(this._r,255)*100)+"%, "+Math.round(ht(this._g,255)*100)+"%, "+Math.round(ht(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:aB[Cy(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+Sy(this._r,this._g,this._b,this._a),n=r,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=he(t);n="#"+Sy(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,i=this._a<1&&this._a>=0,o=!r&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return he(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(QN,arguments)},brighten:function(){return this._applyModification(JN,arguments)},darken:function(){return this._applyModification(eB,arguments)},desaturate:function(){return this._applyModification(KN,arguments)},saturate:function(){return this._applyModification(XN,arguments)},greyscale:function(){return this._applyModification(ZN,arguments)},spin:function(){return this._applyModification(tB,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(iB,arguments)},complement:function(){return this._applyCombination(rB,arguments)},monochromatic:function(){return this._applyCombination(oB,arguments)},splitcomplement:function(){return this._applyCombination(nB,arguments)},triad:function(){return this._applyCombination(Ey,[3])},tetrad:function(){return this._applyCombination(Ey,[4])}},he.fromRatio=function(e,t){if(El(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Ta(e[n]));e=r}return he(e,t)};function HN(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=cB(e)),El(e)=="object"&&(Kr(e.r)&&Kr(e.g)&&Kr(e.b)?(t=UN(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Kr(e.h)&&Kr(e.s)&&Kr(e.v)?(n=Ta(e.s),i=Ta(e.v),t=GN(e.h,n,i),a=!0,s="hsv"):Kr(e.h)&&Kr(e.s)&&Kr(e.l)&&(n=Ta(e.s),o=Ta(e.l),t=YN(e.h,n,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Ty(r),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function UN(e,t,r){return{r:ht(e,255)*255,g:ht(t,255)*255,b:ht(r,255)*255}}function xy(e,t,r){e=ht(e,255),t=ht(t,255),r=ht(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,a,s=(n+i)/2;if(n==i)o=a=0;else{var u=n-i;switch(a=s>.5?u/(2-n-i):u/(n+i),n){case e:o=(t-r)/u+(t<r?6:0);break;case t:o=(r-e)/u+2;break;case r:o=(e-t)/u+4;break}o/=6}return{h:o,s:a,l:s}}function YN(e,t,r){var n,i,o;e=ht(e,360),t=ht(t,100),r=ht(r,100);function a(l,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?l+(c-l)*6*f:f<1/2?c:f<2/3?l+(c-l)*(2/3-f)*6:l}if(t===0)n=i=o=r;else{var s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;n=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function wy(e,t,r){e=ht(e,255),t=ht(t,255),r=ht(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,a,s=n,u=n-i;if(a=n===0?0:u/n,n==i)o=0;else{switch(n){case e:o=(t-r)/u+(t<r?6:0);break;case t:o=(r-e)/u+2;break;case r:o=(e-t)/u+4;break}o/=6}return{h:o,s:a,v:s}}function GN(e,t,r){e=ht(e,360)*6,t=ht(t,100),r=ht(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),a=r*(1-i*t),s=r*(1-(1-i)*t),u=n%6,l=[r,a,o,o,s,r][u],c=[s,r,r,a,o,o][u],f=[o,o,s,r,r,a][u];return{r:l*255,g:c*255,b:f*255}}function Cy(e,t,r,n){var i=[br(Math.round(e).toString(16)),br(Math.round(t).toString(16)),br(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function qN(e,t,r,n,i){var o=[br(Math.round(e).toString(16)),br(Math.round(t).toString(16)),br(Math.round(r).toString(16)),br(ky(n))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Sy(e,t,r,n){var i=[br(ky(n)),br(Math.round(e).toString(16)),br(Math.round(t).toString(16)),br(Math.round(r).toString(16))];return i.join("")}he.equals=function(e,t){return!e||!t?!1:he(e).toRgbString()==he(t).toRgbString()},he.random=function(){return he.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function KN(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.s-=t/100,r.s=Tl(r.s),he(r)}function XN(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.s+=t/100,r.s=Tl(r.s),he(r)}function ZN(e){return he(e).desaturate(100)}function QN(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.l+=t/100,r.l=Tl(r.l),he(r)}function JN(e,t){t=t===0?0:t||10;var r=he(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),he(r)}function eB(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.l-=t/100,r.l=Tl(r.l),he(r)}function tB(e,t){var r=he(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,he(r)}function rB(e){var t=he(e).toHsl();return t.h=(t.h+180)%360,he(t)}function Ey(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=he(e).toHsl(),n=[he(e)],i=360/t,o=1;o<t;o++)n.push(he({h:(r.h+o*i)%360,s:r.s,l:r.l}));return n}function nB(e){var t=he(e).toHsl(),r=t.h;return[he(e),he({h:(r+72)%360,s:t.s,l:t.l}),he({h:(r+216)%360,s:t.s,l:t.l})]}function iB(e,t,r){t=t||6,r=r||30;var n=he(e).toHsl(),i=360/r,o=[he(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(he(n));return o}function oB(e,t){t=t||6;for(var r=he(e).toHsv(),n=r.h,i=r.s,o=r.v,a=[],s=1/t;t--;)a.push(he({h:n,s:i,v:o})),o=(o+s)%1;return a}he.mix=function(e,t,r){r=r===0?0:r||50;var n=he(e).toRgb(),i=he(t).toRgb(),o=r/100,a={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return he(a)},he.readability=function(e,t){var r=he(e),n=he(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},he.isReadable=function(e,t,r){var n=he.readability(e,t),i,o;switch(o=!1,i=fB(r),i.level+i.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o},he.mostReadable=function(e,t,r){var n=null,i=0,o,a,s,u;r=r||{},a=r.includeFallbackColors,s=r.level,u=r.size;for(var l=0;l<t.length;l++)o=he.readability(e,t[l]),o>i&&(i=o,n=he(t[l]));return he.isReadable(e,n,{level:s,size:u})||!a?n:(r.includeFallbackColors=!1,he.mostReadable(e,["#fff","#000"],r))};var ud=he.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},aB=he.hexNames=sB(ud);function sB(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Ty(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ht(e,t){lB(e)&&(e="100%");var r=uB(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Tl(e){return Math.min(1,Math.max(0,e))}function nr(e){return parseInt(e,16)}function lB(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function uB(e){return typeof e=="string"&&e.indexOf("%")!=-1}function br(e){return e.length==1?"0"+e:""+e}function Ta(e){return e<=1&&(e=e*100+"%"),e}function ky(e){return Math.round(parseFloat(e)*255).toString(16)}function _y(e){return nr(e)/255}var xr=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Kr(e){return!!xr.CSS_UNIT.exec(e)}function cB(e){e=e.replace(VN,"").replace(WN,"").toLowerCase();var t=!1;if(ud[e])e=ud[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=xr.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=xr.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=xr.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=xr.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=xr.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=xr.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=xr.hex8.exec(e))?{r:nr(r[1]),g:nr(r[2]),b:nr(r[3]),a:_y(r[4]),format:t?"name":"hex8"}:(r=xr.hex6.exec(e))?{r:nr(r[1]),g:nr(r[2]),b:nr(r[3]),format:t?"name":"hex"}:(r=xr.hex4.exec(e))?{r:nr(r[1]+""+r[1]),g:nr(r[2]+""+r[2]),b:nr(r[3]+""+r[3]),a:_y(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=xr.hex3.exec(e))?{r:nr(r[1]+""+r[1]),g:nr(r[2]+""+r[2]),b:nr(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function fB(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var Oy=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,i=0;return zN(r,function(o){if(t[o]&&(n+=1,isNaN(t[o])||(i+=1),o==="s"||o==="l")){var a=/^\d+%$/;a.test(t[o])&&(i+=1)}}),n===i?t:!1},ka=function(t,r){var n=t.hex?he(t.hex):he(t),i=n.toHsl(),o=n.toHsv(),a=n.toRgb(),s=n.toHex();i.s===0&&(i.h=r||0,o.h=r||0);var u=s==="000000"&&a.a===0;return{hsl:i,hex:u?"transparent":"#"+s,rgb:a,hsv:o,oldHue:t.h||r||i.h,source:t.source}},hn=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&he(t).isValid()},cd=function(t){if(!t)return"#fff";var r=ka(t);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},fd=function(t,r){var n=t.replace("°","");return he(r+" ("+n+")")._ok},_a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dB=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function hB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function gB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var qt=function(t){var r=function(n){gB(i,n);function i(o){hB(this,i);var a=pB(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return a.handleChange=function(s,u){var l=Oy(s);if(l){var c=ka(s,s.h||a.state.oldHue);a.setState(c),a.props.onChangeComplete&&a.debounce(a.props.onChangeComplete,c,u),a.props.onChange&&a.props.onChange(c,u)}},a.handleSwatchHover=function(s,u){var l=Oy(s);if(l){var c=ka(s,s.h||a.state.oldHue);a.props.onSwatchHover&&a.props.onSwatchHover(c,u)}},a.state=_a({},ka(o.color,0)),a.debounce=Ea(function(s,u,l){s(u,l)},100),a}return dB(i,[{key:"render",value:function(){var a={};return this.props.onSwatchHover&&(a.onSwatchHover=this.handleSwatchHover),g.createElement(t,_a({},this.props,this.state,{onChange:this.handleChange},a))}}],[{key:"getDerivedStateFromProps",value:function(a,s){return _a({},ka(a.color,s.oldHue))}}]),i}(g.PureComponent||g.Component);return r.propTypes=_a({},t.propTypes),r.defaultProps=_a({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},mB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vB=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function yB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function My(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function bB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var xB=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){bB(i,n);function i(){var o,a,s,u;yB(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(a=(s=My(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(c))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},a),My(s,u)}return vB(i,[{key:"render",value:function(){return g.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},g.createElement(t,mB({},this.props,this.state)))}}]),i}(g.Component)},Py=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wB=13,CB=function(t){var r=t.color,n=t.style,i=t.onClick,o=i===void 0?function(){}:i,a=t.onHover,s=t.title,u=s===void 0?r:s,l=t.children,c=t.focus,f=t.focusStyle,d=f===void 0?{}:f,h=r==="transparent",m=Se({default:{swatch:Py({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,c?d:{})}}),p=function(E){return o(r,E)},v=function(E){return E.keyCode===wB&&o(r,E)},x=function(E){return a(r,E)},b={};return a&&(b.onMouseOver=x),g.createElement("div",Py({style:m.swatch,onClick:p,title:u,tabIndex:0,onKeyDown:v},b),l,h&&g.createElement(Ri,{borderRadius:m.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const Hn=xB(CB);var SB=function(t){var r=t.direction,n=Se({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return g.createElement("div",{style:n.picker})},EB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ay=function(t){var r=t.rgb,n=t.hsl,i=t.width,o=t.height,a=t.onChange,s=t.direction,u=t.style,l=t.renderers,c=t.pointer,f=t.className,d=f===void 0?"":f,h=Se({default:{picker:{position:"relative",width:i,height:o},alpha:{radius:"2px",style:u}}});return g.createElement("div",{style:h.picker,className:"alpha-picker "+d},g.createElement(Xf,EB({},h.alpha,{rgb:r,hsl:n,pointer:c,renderers:l,onChange:a,direction:s})))};Ay.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:SB},qt(Ay);function Dy(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var TB="__lodash_hash_undefined__";function kB(e){return this.__data__.set(e,TB),this}function _B(e){return this.__data__.has(e)}function kl(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new qr;++t<r;)this.add(e[t])}kl.prototype.add=kl.prototype.push=kB,kl.prototype.has=_B;function OB(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function MB(e,t){return e.has(t)}var PB=1,AB=2;function $y(e,t,r,n,i,o){var a=r&PB,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,h=r&AB?new kl:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var m=e[f],p=t[f];if(n)var v=a?n(p,m,f,t,e,o):n(m,p,f,e,t,o);if(v!==void 0){if(v)continue;d=!1;break}if(h){if(!OB(t,function(x,b){if(!MB(h,b)&&(m===x||i(m,x,r,n,o)))return h.push(b)})){d=!1;break}}else if(!(m===p||i(m,p,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function DB(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function $B(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var IB=1,FB=2,jB="[object Boolean]",LB="[object Date]",RB="[object Error]",NB="[object Map]",BB="[object Number]",zB="[object RegExp]",VB="[object Set]",WB="[object String]",HB="[object Symbol]",UB="[object ArrayBuffer]",YB="[object DataView]",Iy=fn?fn.prototype:void 0,dd=Iy?Iy.valueOf:void 0;function GB(e,t,r,n,i,o,a){switch(r){case YB:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case UB:return!(e.byteLength!=t.byteLength||!o(new yl(e),new yl(t)));case jB:case LB:case BB:return ya(+e,+t);case RB:return e.name==t.name&&e.message==t.message;case zB:case WB:return e==t+"";case NB:var s=DB;case VB:var u=n&IB;if(s||(s=$B),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;n|=FB,a.set(e,t);var c=$y(s(e),s(t),n,i,o,a);return a.delete(e),c;case HB:if(dd)return dd.call(e)==dd.call(t)}return!1}function qB(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function KB(e,t,r){var n=t(e);return rr(e)?n:qB(n,r(e))}function XB(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function ZB(){return[]}var QB=Object.prototype,JB=QB.propertyIsEnumerable,Fy=Object.getOwnPropertySymbols,ez=Fy?function(e){return e==null?[]:(e=Object(e),XB(Fy(e),function(t){return JB.call(e,t)}))}:ZB;const tz=ez;function jy(e){return KB(e,ld,tz)}var rz=1,nz=Object.prototype,iz=nz.hasOwnProperty;function oz(e,t,r,n,i,o){var a=r&rz,s=jy(e),u=s.length,l=jy(t),c=l.length;if(u!=c&&!a)return!1;for(var f=u;f--;){var d=s[f];if(!(a?d in t:iz.call(t,d)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var p=!0;o.set(e,t),o.set(t,e);for(var v=a;++f<u;){d=s[f];var x=e[d],b=t[d];if(n)var C=a?n(b,x,d,t,e,o):n(x,b,d,e,t,o);if(!(C===void 0?x===b||i(x,b,r,n,o):C)){p=!1;break}v||(v=d=="constructor")}if(p&&!v){var E=e.constructor,w=t.constructor;E!=w&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof w=="function"&&w instanceof w)&&(p=!1)}return o.delete(e),o.delete(t),p}var az=Vn(yr,"DataView");const hd=az;var sz=Vn(yr,"Promise");const pd=sz;var lz=Vn(yr,"Set");const gd=lz;var uz=Vn(yr,"WeakMap");const md=uz;var Ly="[object Map]",cz="[object Object]",Ry="[object Promise]",Ny="[object Set]",By="[object WeakMap]",zy="[object DataView]",fz=zn(hd),dz=zn(xa),hz=zn(pd),pz=zn(gd),gz=zn(md),Un=Bn;(hd&&Un(new hd(new ArrayBuffer(1)))!=zy||xa&&Un(new xa)!=Ly||pd&&Un(pd.resolve())!=Ry||gd&&Un(new gd)!=Ny||md&&Un(new md)!=By)&&(Un=function(e){var t=Bn(e),r=t==cz?e.constructor:void 0,n=r?zn(r):"";if(n)switch(n){case fz:return zy;case dz:return Ly;case hz:return Ry;case pz:return Ny;case gz:return By}return t});const Vy=Un;var mz=1,Wy="[object Arguments]",Hy="[object Array]",_l="[object Object]",vz=Object.prototype,Uy=vz.hasOwnProperty;function yz(e,t,r,n,i,o){var a=rr(e),s=rr(t),u=a?Hy:Vy(e),l=s?Hy:Vy(t);u=u==Wy?_l:u,l=l==Wy?_l:l;var c=u==_l,f=l==_l,d=u==l;if(d&&xl(e)){if(!xl(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Pr),a||id(e)?$y(e,t,r,n,i,o):GB(e,t,u,r,n,i,o);if(!(r&mz)){var h=c&&Uy.call(e,"__wrapped__"),m=f&&Uy.call(t,"__wrapped__");if(h||m){var p=h?e.value():e,v=m?t.value():t;return o||(o=new Pr),i(p,v,r,n,o)}}return d?(o||(o=new Pr),oz(e,t,r,n,i,o)):!1}function vd(e,t,r,n,i){return e===t?!0:e==null||t==null||!dn(e)&&!dn(t)?e!==e&&t!==t:yz(e,t,r,n,vd,i)}var bz=1,xz=2;function wz(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=r[i];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===void 0&&!(u in e))return!1}else{var f=new Pr;if(n)var d=n(l,c,u,e,t,f);if(!(d===void 0?vd(c,l,bz|xz,n,f):d))return!1}}return!0}function Yy(e){return e===e&&!dr(e)}function Cz(e){for(var t=ld(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Yy(i)]}return t}function Gy(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Sz(e){var t=Cz(e);return t.length==1&&t[0][2]?Gy(t[0][0],t[0][1]):function(r){return r===e||wz(r,e,t)}}var Ez=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tz=/^\w*$/;function yd(e,t){if(rr(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Cl(e)?!0:Tz.test(e)||!Ez.test(e)||t!=null&&e in Object(t)}var kz="Expected a function";function bd(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(kz);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(bd.Cache||qr),r}bd.Cache=qr;var _z=500;function Oz(e){var t=bd(e,function(n){return r.size===_z&&r.clear(),n}),r=t.cache;return t}var Mz=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pz=/\\(\\)?/g,Az=Oz(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Mz,function(r,n,i,o){t.push(i?o.replace(Pz,"$1"):n||r)}),t});const Dz=Az;var $z=1/0,qy=fn?fn.prototype:void 0,Ky=qy?qy.toString:void 0;function Xy(e){if(typeof e=="string")return e;if(rr(e))return Dy(e,Xy)+"";if(Cl(e))return Ky?Ky.call(e):"";var t=e+"";return t=="0"&&1/e==-$z?"-0":t}function Iz(e){return e==null?"":Xy(e)}function Zy(e,t){return rr(e)?e:yd(e,t)?[e]:Dz(Iz(e))}var Fz=1/0;function Ol(e){if(typeof e=="string"||Cl(e))return e;var t=e+"";return t=="0"&&1/e==-Fz?"-0":t}function Qy(e,t){t=Zy(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Ol(t[r++])];return r&&r==n?e:void 0}function jz(e,t,r){var n=e==null?void 0:Qy(e,t);return n===void 0?r:n}function Lz(e,t){return e!=null&&t in Object(e)}function Rz(e,t,r){t=Zy(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=Ol(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&rd(i)&&ad(a,i)&&(rr(e)||bl(e)))}function Nz(e,t){return e!=null&&Rz(e,t,Lz)}var Bz=1,zz=2;function Vz(e,t){return yd(e)&&Yy(t)?Gy(Ol(e),t):function(r){var n=jz(r,e);return n===void 0&&n===t?Nz(r,e):vd(t,n,Bz|zz)}}function Wz(e){return function(t){return t==null?void 0:t[e]}}function Hz(e){return function(t){return Qy(t,e)}}function Uz(e){return yd(e)?Wz(Ol(e)):Hz(e)}function Yz(e){return typeof e=="function"?e:e==null?wl:typeof e=="object"?rr(e)?Vz(e[0],e[1]):Sz(e):Uz(e)}function Gz(e,t){var r=-1,n=Bi(e)?Array(e.length):[];return by(e,function(i,o,a){n[++r]=t(i,o,a)}),n}function Yn(e,t){var r=rr(e)?Dy:Gz;return r(e,Yz(t))}var qz=function(t){var r=t.colors,n=t.onClick,i=t.onSwatchHover,o=Se({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return g.createElement("div",{style:o.swatches},Yn(r,function(a){return g.createElement(Hn,{key:a,color:a,style:o.swatch,onClick:n,onHover:i,focusStyle:{boxShadow:"0 0 4px "+a}})}),g.createElement("div",{style:o.clear}))},xd=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.hex,o=t.colors,a=t.width,s=t.triangle,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=i==="transparent",h=function(v,x){hn(v)&&r({hex:v,source:"hex"},x)},m=Se(Gt({default:{card:{width:a,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:i,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:cd(i),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+i+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},l),{"hide-triangle":s==="hide"});return g.createElement("div",{style:m.card,className:"block-picker "+f},g.createElement("div",{style:m.triangle}),g.createElement("div",{style:m.head},d&&g.createElement(Ri,{borderRadius:"6px 6px 0 0"}),g.createElement("div",{style:m.label},i)),g.createElement("div",{style:m.body},g.createElement(qz,{colors:o,onClick:h,onSwatchHover:n}),g.createElement(je,{style:{input:m.input},value:i,onChange:h})))};xd.propTypes={width:_.oneOfType([_.string,_.number]),colors:_.arrayOf(_.string),triangle:_.oneOf(["top","hide"]),styles:_.object},xd.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},qt(xd);var zi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},Vi={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},Wi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},Hi={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},Ui={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},Yi={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},Gi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},qi={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},Ki={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},Oa={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},Xi={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Zi={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Qi={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},Ji={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},eo={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},to={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},ro={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},no={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},Jy=function(t){var r=t.color,n=t.onClick,i=t.onSwatchHover,o=t.hover,a=t.active,s=t.circleSize,u=t.circleSpacing,l=Se({default:{swatch:{width:s,height:s,marginRight:u,marginBottom:u,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+r,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+r}}},{hover:o,active:a});return g.createElement("div",{style:l.swatch},g.createElement(Hn,{style:l.Swatch,color:r,onClick:n,onHover:i,focusStyle:{boxShadow:l.Swatch.boxShadow+", 0 0 5px "+r}}))};Jy.defaultProps={circleSize:28,circleSpacing:14};const Kz=qf(Jy);var wd=function(t){var r=t.width,n=t.onChange,i=t.onSwatchHover,o=t.colors,a=t.hex,s=t.circleSize,u=t.styles,l=u===void 0?{}:u,c=t.circleSpacing,f=t.className,d=f===void 0?"":f,h=Se(Gt({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},l)),m=function(v,x){return n({hex:v,source:"hex"},x)};return g.createElement("div",{style:h.card,className:"circle-picker "+d},Yn(o,function(p){return g.createElement(Kz,{key:p,color:p,onClick:m,onSwatchHover:i,active:a===p.toLowerCase(),circleSize:s,circleSpacing:c})}))};wd.propTypes={width:_.oneOfType([_.string,_.number]),circleSize:_.number,circleSpacing:_.number,styles:_.object},wd.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[zi[500],Vi[500],Wi[500],Hi[500],Ui[500],Yi[500],Gi[500],qi[500],Ki[500],Oa[500],Xi[500],Zi[500],Qi[500],Ji[500],eo[500],to[500],ro[500],no[500]],styles:{}},qt(wd);function eb(e){return e===void 0}var tb={};Object.defineProperty(tb,"__esModule",{value:!0});var rb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xz=g,nb=Zz(Xz);function Zz(e){return e&&e.__esModule?e:{default:e}}function Qz(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Ml=24,Jz=tb.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,i=n===void 0?Ml:n,o=e.height,a=o===void 0?Ml:o,s=e.style,u=s===void 0?{}:s,l=Qz(e,["fill","width","height","style"]);return nb.default.createElement("svg",rb({viewBox:"0 0 "+Ml+" "+Ml,style:rb({fill:r,width:i,height:a},u)},l),nb.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},eV=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function tV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rV(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function nV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ib=function(e){nV(t,e);function t(r){tV(this,t);var n=rV(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){n.state.view==="hex"?n.setState({view:"rgb"}):n.state.view==="rgb"?n.setState({view:"hsl"}):n.state.view==="hsl"&&(n.props.hsl.a===1?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(i,o){i.hex?hn(i.hex)&&n.props.onChange({hex:i.hex,source:"hex"},o):i.r||i.g||i.b?n.props.onChange({r:i.r||n.props.rgb.r,g:i.g||n.props.rgb.g,b:i.b||n.props.rgb.b,source:"rgb"},o):i.a?(i.a<0?i.a=0:i.a>1&&(i.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(i.a*100)/100,source:"rgb"},o)):(i.h||i.s||i.l)&&(typeof i.s=="string"&&i.s.includes("%")&&(i.s=i.s.replace("%","")),typeof i.l=="string"&&i.l.includes("%")&&(i.l=i.l.replace("%","")),i.s==1?i.s=.01:i.l==1&&(i.l=.01),n.props.onChange({h:i.h||n.props.hsl.h,s:Number(eb(i.s)?n.props.hsl.s:i.s),l:Number(eb(i.l)?n.props.hsl.l:i.l),source:"hsl"},o))},n.showHighlight=function(i){i.currentTarget.style.background="#eee"},n.hideHighlight=function(i){i.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return eV(t,[{key:"render",value:function(){var n=this,i=Se({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),o=void 0;return this.state.view==="hex"?o=g.createElement("div",{style:i.fields,className:"flexbox-fix"},g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?o=g.createElement("div",{style:i.fields,className:"flexbox-fix"},g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),g.createElement("div",{style:i.alpha},g.createElement(je,{style:{input:i.input,label:i.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(o=g.createElement("div",{style:i.fields,className:"flexbox-fix"},g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),g.createElement("div",{style:i.alpha},g.createElement(je,{style:{input:i.input,label:i.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),g.createElement("div",{style:i.wrap,className:"flexbox-fix"},o,g.createElement("div",{style:i.toggle},g.createElement("div",{style:i.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},g.createElement(Jz,{style:i.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.hsl.a!==1&&i.view==="hex"?{view:"rgb"}:null}}]),t}(g.Component);ib.defaultProps={view:"hex"};var ob=function(){var t=Se({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return g.createElement("div",{style:t.picker})},iV=function(){var t=Se({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return g.createElement("div",{style:t.picker})},Cd=function(t){var r=t.width,n=t.onChange,i=t.disableAlpha,o=t.rgb,a=t.hsl,s=t.hsv,u=t.hex,l=t.renderers,c=t.styles,f=c===void 0?{}:c,d=t.className,h=d===void 0?"":d,m=t.defaultView,p=Se(Gt({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},f),{disableAlpha:i});return g.createElement("div",{style:p.picker,className:"chrome-picker "+h},g.createElement("div",{style:p.saturation},g.createElement(Sl,{style:p.Saturation,hsl:a,hsv:s,pointer:iV,onChange:n})),g.createElement("div",{style:p.body},g.createElement("div",{style:p.controls,className:"flexbox-fix"},g.createElement("div",{style:p.color},g.createElement("div",{style:p.swatch},g.createElement("div",{style:p.active}),g.createElement(Ri,{renderers:l}))),g.createElement("div",{style:p.toggles},g.createElement("div",{style:p.hue},g.createElement(Ni,{style:p.Hue,hsl:a,pointer:ob,onChange:n})),g.createElement("div",{style:p.alpha},g.createElement(Xf,{style:p.Alpha,rgb:o,hsl:a,pointer:ob,renderers:l,onChange:n})))),g.createElement(ib,{rgb:o,hsl:a,hex:u,view:m,onChange:n,disableAlpha:i})))};Cd.propTypes={width:_.oneOfType([_.string,_.number]),disableAlpha:_.bool,styles:_.object,defaultView:_.oneOf(["hex","rgb","hsl"])},Cd.defaultProps={width:225,disableAlpha:!1,styles:{}};const oV=qt(Cd);var aV=function(t){var r=t.color,n=t.onClick,i=n===void 0?function(){}:n,o=t.onSwatchHover,a=t.active,s=Se({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:cd(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:a,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return g.createElement(Hn,{style:s.color,color:r,onClick:i,onHover:o,focusStyle:{boxShadow:"0 0 4px "+r}},g.createElement("div",{style:s.dot}))},sV=function(t){var r=t.hex,n=t.rgb,i=t.onChange,o=Se({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),a=function(u,l){u.r||u.g||u.b?i({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},l):i({hex:u.hex,source:"hex"},l)};return g.createElement("div",{style:o.fields,className:"flexbox-fix"},g.createElement("div",{style:o.active}),g.createElement(je,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"hex",value:r,onChange:a}),g.createElement(je,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:a}),g.createElement(je,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:a}),g.createElement(je,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:a}))},Sd=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.colors,o=t.hex,a=t.rgb,s=t.styles,u=s===void 0?{}:s,l=t.className,c=l===void 0?"":l,f=Se(Gt({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),d=function(m,p){m.hex?hn(m.hex)&&r({hex:m.hex,source:"hex"},p):r(m,p)};return g.createElement(Sa,{style:f.Compact,styles:u},g.createElement("div",{style:f.compact,className:"compact-picker "+c},g.createElement("div",null,Yn(i,function(h){return g.createElement(aV,{key:h,color:h,active:h.toLowerCase()===o,onClick:d,onSwatchHover:n})}),g.createElement("div",{style:f.clear})),g.createElement(sV,{hex:o,rgb:a,onChange:d})))};Sd.propTypes={colors:_.arrayOf(_.string),styles:_.object},Sd.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},qt(Sd);var lV=function(t){var r=t.hover,n=t.color,i=t.onClick,o=t.onSwatchHover,a={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=Se({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:a}},{hover:r});return g.createElement("div",{style:s.swatch},g.createElement(Hn,{color:n,onClick:i,onHover:o,focusStyle:a}))};const uV=qf(lV);var Ed=function(t){var r=t.width,n=t.colors,i=t.onChange,o=t.onSwatchHover,a=t.triangle,s=t.styles,u=s===void 0?{}:s,l=t.className,c=l===void 0?"":l,f=Se(Gt({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},u),{"hide-triangle":a==="hide","top-left-triangle":a==="top-left","top-right-triangle":a==="top-right","bottom-left-triangle":a==="bottom-left","bottom-right-triangle":a==="bottom-right"}),d=function(m,p){return i({hex:m,source:"hex"},p)};return g.createElement("div",{style:f.card,className:"github-picker "+c},g.createElement("div",{style:f.triangleShadow}),g.createElement("div",{style:f.triangle}),Yn(n,function(h){return g.createElement(uV,{color:h,key:h,onClick:d,onSwatchHover:o})}))};Ed.propTypes={width:_.oneOfType([_.string,_.number]),colors:_.arrayOf(_.string),triangle:_.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:_.object},Ed.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},qt(Ed);var cV=function(t){var r=t.direction,n=Se({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return g.createElement("div",{style:n.picker})},fV=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Td=function(t){var r=t.width,n=t.height,i=t.onChange,o=t.hsl,a=t.direction,s=t.pointer,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=Se(Gt({default:{picker:{position:"relative",width:r,height:n},hue:{radius:"2px"}}},l)),h=function(p){return i({a:1,h:p.h,l:.5,s:1})};return g.createElement("div",{style:d.picker,className:"hue-picker "+f},g.createElement(Ni,fV({},d.hue,{hsl:o,pointer:s,onChange:h,direction:a})))};Td.propTypes={styles:_.object},Td.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:cV,styles:{}},qt(Td);var dV=function(t){var r=t.onChange,n=t.hex,i=t.rgb,o=t.styles,a=o===void 0?{}:o,s=t.className,u=s===void 0?"":s,l=Se(Gt({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},a)),c=function(d,h){d.hex?hn(d.hex)&&r({hex:d.hex,source:"hex"},h):(d.r||d.g||d.b)&&r({r:d.r||i.r,g:d.g||i.g,b:d.b||i.b,source:"rgb"},h)};return g.createElement(Sa,{styles:a},g.createElement("div",{style:l.material,className:"material-picker "+u},g.createElement(je,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:n,onChange:c}),g.createElement("div",{style:l.split,className:"flexbox-fix"},g.createElement("div",{style:l.third},g.createElement(je,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:i.r,onChange:c})),g.createElement("div",{style:l.third},g.createElement(je,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:i.g,onChange:c})),g.createElement("div",{style:l.third},g.createElement(je,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:i.b,onChange:c})))))};qt(dV);var hV=function(t){var r=t.onChange,n=t.rgb,i=t.hsv,o=t.hex,a=Se({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(l,c){l["#"]?hn(l["#"])&&r({hex:l["#"],source:"hex"},c):l.r||l.g||l.b?r({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},c):(l.h||l.s||l.v)&&r({h:l.h||i.h,s:l.s||i.s,v:l.v||i.v,source:"hsv"},c)};return g.createElement("div",{style:a.fields},g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"h",value:Math.round(i.h),onChange:s}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"s",value:Math.round(i.s*100),onChange:s}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"v",value:Math.round(i.v*100),onChange:s}),g.createElement("div",{style:a.divider}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:s}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:s}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:s}),g.createElement("div",{style:a.divider}),g.createElement(je,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"#",value:o.replace("#",""),onChange:s}),g.createElement("div",{style:a.fieldSymbols},g.createElement("div",{style:a.symbol},"°"),g.createElement("div",{style:a.symbol},"%"),g.createElement("div",{style:a.symbol},"%")))},pV=function(t){var r=t.hsl,n=Se({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":r.l>.5});return g.createElement("div",{style:n.picker})},gV=function(){var t=Se({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return g.createElement("div",{style:t.pointer},g.createElement("div",{style:t.left},g.createElement("div",{style:t.leftInside})),g.createElement("div",{style:t.right},g.createElement("div",{style:t.rightInside})))},ab=function(t){var r=t.onClick,n=t.label,i=t.children,o=t.active,a=Se({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:o});return g.createElement("div",{style:a.button,onClick:r},n||i)},mV=function(t){var r=t.rgb,n=t.currentColor,i=Se({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return g.createElement("div",null,g.createElement("div",{style:i.label},"new"),g.createElement("div",{style:i.swatches},g.createElement("div",{style:i.new}),g.createElement("div",{style:i.current})),g.createElement("div",{style:i.label},"current"))},vV=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function yV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bV(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function xV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var kd=function(e){xV(t,e);function t(r){yV(this,t);var n=bV(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return vV(t,[{key:"render",value:function(){var n=this.props,i=n.styles,o=i===void 0?{}:i,a=n.className,s=a===void 0?"":a,u=Se(Gt({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},o));return g.createElement("div",{style:u.picker,className:"photoshop-picker "+s},g.createElement("div",{style:u.head},this.props.header),g.createElement("div",{style:u.body,className:"flexbox-fix"},g.createElement("div",{style:u.saturation},g.createElement(Sl,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:pV,onChange:this.props.onChange})),g.createElement("div",{style:u.hue},g.createElement(Ni,{direction:"vertical",hsl:this.props.hsl,pointer:gV,onChange:this.props.onChange})),g.createElement("div",{style:u.controls},g.createElement("div",{style:u.top,className:"flexbox-fix"},g.createElement("div",{style:u.previews},g.createElement(mV,{rgb:this.props.rgb,currentColor:this.state.currentColor})),g.createElement("div",{style:u.actions},g.createElement(ab,{label:"OK",onClick:this.props.onAccept,active:!0}),g.createElement(ab,{label:"Cancel",onClick:this.props.onCancel}),g.createElement(hV,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(g.Component);kd.propTypes={header:_.string,styles:_.object},kd.defaultProps={header:"Color Picker",styles:{}},qt(kd);var wV=function(t){var r=t.onChange,n=t.rgb,i=t.hsl,o=t.hex,a=t.disableAlpha,s=Se({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),u=function(c,f){c.hex?hn(c.hex)&&r({hex:c.hex,source:"hex"},f):c.r||c.g||c.b?r({r:c.r||n.r,g:c.g||n.g,b:c.b||n.b,a:n.a,source:"rgb"},f):c.a&&(c.a<0?c.a=0:c.a>100&&(c.a=100),c.a/=100,r({h:i.h,s:i.s,l:i.l,a:c.a,source:"rgb"},f))};return g.createElement("div",{style:s.fields,className:"flexbox-fix"},g.createElement("div",{style:s.double},g.createElement(je,{style:{input:s.input,label:s.label},label:"hex",value:o.replace("#",""),onChange:u})),g.createElement("div",{style:s.single},g.createElement(je,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),g.createElement("div",{style:s.single},g.createElement(je,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),g.createElement("div",{style:s.single},g.createElement(je,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),g.createElement("div",{style:s.alpha},g.createElement(je,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:u,dragLabel:"true",dragMax:"100"})))},CV=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sb=function(t){var r=t.colors,n=t.onClick,i=n===void 0?function(){}:n,o=t.onSwatchHover,a=Se({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!r||!r.length}),s=function(l,c){i({hex:l,source:"hex"},c)};return g.createElement("div",{style:a.colors,className:"flexbox-fix"},r.map(function(u){var l=typeof u=="string"?{color:u}:u,c=""+l.color+(l.title||"");return g.createElement("div",{key:c,style:a.swatchWrap},g.createElement(Hn,CV({},l,{style:a.swatch,onClick:s,onHover:o,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+l.color}})))}))};sb.propTypes={colors:_.arrayOf(_.oneOfType([_.string,_.shape({color:_.string,title:_.string})])).isRequired};var SV=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_d=function(t){var r=t.width,n=t.rgb,i=t.hex,o=t.hsv,a=t.hsl,s=t.onChange,u=t.onSwatchHover,l=t.disableAlpha,c=t.presetColors,f=t.renderers,d=t.styles,h=d===void 0?{}:d,m=t.className,p=m===void 0?"":m,v=Se(Gt({default:SV({picker:{width:r,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},h),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},h),{disableAlpha:l});return g.createElement("div",{style:v.picker,className:"sketch-picker "+p},g.createElement("div",{style:v.saturation},g.createElement(Sl,{style:v.Saturation,hsl:a,hsv:o,onChange:s})),g.createElement("div",{style:v.controls,className:"flexbox-fix"},g.createElement("div",{style:v.sliders},g.createElement("div",{style:v.hue},g.createElement(Ni,{style:v.Hue,hsl:a,onChange:s})),g.createElement("div",{style:v.alpha},g.createElement(Xf,{style:v.Alpha,rgb:n,hsl:a,renderers:f,onChange:s}))),g.createElement("div",{style:v.color},g.createElement(Ri,null),g.createElement("div",{style:v.activeColor}))),g.createElement(wV,{rgb:n,hsl:a,hex:i,onChange:s,disableAlpha:l}),g.createElement(sb,{colors:c,onClick:s,onSwatchHover:u}))};_d.propTypes={disableAlpha:_.bool,width:_.oneOfType([_.string,_.number]),styles:_.object},_d.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},qt(_d);var Ma=function(t){var r=t.hsl,n=t.offset,i=t.onClick,o=i===void 0?function(){}:i,a=t.active,s=t.first,u=t.last,l=Se({default:{swatch:{height:"12px",background:"hsl("+r.h+", 50%, "+n*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:a,first:s,last:u}),c=function(d){return o({h:r.h,s:.5,l:n,source:"hsl"},d)};return g.createElement("div",{style:l.swatch,onClick:c})},EV=function(t){var r=t.onClick,n=t.hsl,i=Se({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),o=.1;return g.createElement("div",{style:i.swatches},g.createElement("div",{style:i.swatch},g.createElement(Ma,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<o&&Math.abs(n.s-.5)<o,onClick:r,first:!0})),g.createElement("div",{style:i.swatch},g.createElement(Ma,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<o&&Math.abs(n.s-.5)<o,onClick:r})),g.createElement("div",{style:i.swatch},g.createElement(Ma,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<o&&Math.abs(n.s-.5)<o,onClick:r})),g.createElement("div",{style:i.swatch},g.createElement(Ma,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<o&&Math.abs(n.s-.5)<o,onClick:r})),g.createElement("div",{style:i.swatch},g.createElement(Ma,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<o&&Math.abs(n.s-.5)<o,onClick:r,last:!0})),g.createElement("div",{style:i.clear}))},TV=function(){var t=Se({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return g.createElement("div",{style:t.picker})},Od=function(t){var r=t.hsl,n=t.onChange,i=t.pointer,o=t.styles,a=o===void 0?{}:o,s=t.className,u=s===void 0?"":s,l=Se(Gt({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},a));return g.createElement("div",{style:l.wrap||{},className:"slider-picker "+u},g.createElement("div",{style:l.hue},g.createElement(Ni,{style:l.Hue,hsl:r,pointer:i,onChange:n})),g.createElement("div",{style:l.swatches},g.createElement(EV,{hsl:r,onClick:n})))};Od.propTypes={styles:_.object},Od.defaultProps={pointer:TV,styles:{}},qt(Od);var lb={};Object.defineProperty(lb,"__esModule",{value:!0});var ub=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kV=g,cb=_V(kV);function _V(e){return e&&e.__esModule?e:{default:e}}function OV(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Pl=24,MV=lb.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,i=n===void 0?Pl:n,o=e.height,a=o===void 0?Pl:o,s=e.style,u=s===void 0?{}:s,l=OV(e,["fill","width","height","style"]);return cb.default.createElement("svg",ub({viewBox:"0 0 "+Pl+" "+Pl,style:ub({fill:r,width:i,height:a},u)},l),cb.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},PV=function(t){var r=t.color,n=t.onClick,i=n===void 0?function(){}:n,o=t.onSwatchHover,a=t.first,s=t.last,u=t.active,l=Se({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:cd(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:a,last:s,active:u,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return g.createElement(Hn,{color:r,style:l.color,onClick:i,onHover:o,focusStyle:{boxShadow:"0 0 4px "+r}},g.createElement("div",{style:l.check},g.createElement(MV,null)))},AV=function(t){var r=t.onClick,n=t.onSwatchHover,i=t.group,o=t.active,a=Se({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return g.createElement("div",{style:a.group},Yn(i,function(s,u){return g.createElement(PV,{key:s,color:s,active:s.toLowerCase()===o,first:u===0,last:u===i.length-1,onClick:r,onSwatchHover:n})}))},Md=function(t){var r=t.width,n=t.height,i=t.onChange,o=t.onSwatchHover,a=t.colors,s=t.hex,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=Se(Gt({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},l)),h=function(p,v){return i({hex:p,source:"hex"},v)};return g.createElement("div",{style:d.picker,className:"swatches-picker "+f},g.createElement(Sa,null,g.createElement("div",{style:d.overflow},g.createElement("div",{style:d.body},Yn(a,function(m){return g.createElement(AV,{key:m.toString(),group:m,active:s,onClick:h,onSwatchHover:o})}),g.createElement("div",{style:d.clear})))))};Md.propTypes={width:_.oneOfType([_.string,_.number]),height:_.oneOfType([_.string,_.number]),colors:_.arrayOf(_.arrayOf(_.string)),styles:_.object},Md.defaultProps={width:320,height:240,colors:[[zi[900],zi[700],zi[500],zi[300],zi[100]],[Vi[900],Vi[700],Vi[500],Vi[300],Vi[100]],[Wi[900],Wi[700],Wi[500],Wi[300],Wi[100]],[Hi[900],Hi[700],Hi[500],Hi[300],Hi[100]],[Ui[900],Ui[700],Ui[500],Ui[300],Ui[100]],[Yi[900],Yi[700],Yi[500],Yi[300],Yi[100]],[Gi[900],Gi[700],Gi[500],Gi[300],Gi[100]],[qi[900],qi[700],qi[500],qi[300],qi[100]],[Ki[900],Ki[700],Ki[500],Ki[300],Ki[100]],["#194D33",Oa[700],Oa[500],Oa[300],Oa[100]],[Xi[900],Xi[700],Xi[500],Xi[300],Xi[100]],[Zi[900],Zi[700],Zi[500],Zi[300],Zi[100]],[Qi[900],Qi[700],Qi[500],Qi[300],Qi[100]],[Ji[900],Ji[700],Ji[500],Ji[300],Ji[100]],[eo[900],eo[700],eo[500],eo[300],eo[100]],[to[900],to[700],to[500],to[300],to[100]],[ro[900],ro[700],ro[500],ro[300],ro[100]],[no[900],no[700],no[500],no[300],no[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},qt(Md);var Pd=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.hex,o=t.colors,a=t.width,s=t.triangle,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=Se(Gt({default:{card:{width:a,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},l),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),h=function(p,v){hn(p)&&r({hex:p,source:"hex"},v)};return g.createElement("div",{style:d.card,className:"twitter-picker "+f},g.createElement("div",{style:d.triangleShadow}),g.createElement("div",{style:d.triangle}),g.createElement("div",{style:d.body},Yn(o,function(m,p){return g.createElement(Hn,{key:p,color:m,hex:m,style:d.swatch,onClick:h,onHover:n,focusStyle:{boxShadow:"0 0 4px "+m}})}),g.createElement("div",{style:d.hash},"#"),g.createElement(je,{label:null,style:{input:d.input},value:i.replace("#",""),onChange:h}),g.createElement("div",{style:d.clear})))};Pd.propTypes={width:_.oneOfType([_.string,_.number]),triangle:_.oneOf(["hide","top-left","top-right"]),colors:_.arrayOf(_.string),styles:_.object},Pd.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},qt(Pd);var Ad=function(t){var r=Se({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return g.createElement("div",{style:r.picker})};Ad.propTypes={hsl:_.shape({h:_.number,s:_.number,l:_.number,a:_.number})},Ad.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Dd=function(t){var r=Se({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return g.createElement("div",{style:r.picker})};Dd.propTypes={hsl:_.shape({h:_.number,s:_.number,l:_.number,a:_.number})},Dd.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var DV=function(t){var r=t.onChange,n=t.rgb,i=t.hsl,o=t.hex,a=t.hsv,s=function(h,m){if(h.hex)hn(h.hex)&&r({hex:h.hex,source:"hex"},m);else if(h.rgb){var p=h.rgb.split(",");fd(h.rgb,"rgb")&&r({r:p[0],g:p[1],b:p[2],a:1,source:"rgb"},m)}else if(h.hsv){var v=h.hsv.split(",");fd(h.hsv,"hsv")&&(v[2]=v[2].replace("%",""),v[1]=v[1].replace("%",""),v[0]=v[0].replace("°",""),v[1]==1?v[1]=.01:v[2]==1&&(v[2]=.01),r({h:Number(v[0]),s:Number(v[1]),v:Number(v[2]),source:"hsv"},m))}else if(h.hsl){var x=h.hsl.split(",");fd(h.hsl,"hsl")&&(x[2]=x[2].replace("%",""),x[1]=x[1].replace("%",""),x[0]=x[0].replace("°",""),f[1]==1?f[1]=.01:f[2]==1&&(f[2]=.01),r({h:Number(x[0]),s:Number(x[1]),v:Number(x[2]),source:"hsl"},m))}},u=Se({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),l=n.r+", "+n.g+", "+n.b,c=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.l*100)+"%",f=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.v*100)+"%";return g.createElement("div",{style:u.wrap,className:"flexbox-fix"},g.createElement("div",{style:u.fields},g.createElement("div",{style:u.double},g.createElement(je,{style:{input:u.input,label:u.label},label:"hex",value:o,onChange:s})),g.createElement("div",{style:u.column},g.createElement("div",{style:u.single},g.createElement(je,{style:{input:u.input2,label:u.label2},label:"rgb",value:l,onChange:s})),g.createElement("div",{style:u.single},g.createElement(je,{style:{input:u.input2,label:u.label2},label:"hsv",value:f,onChange:s})),g.createElement("div",{style:u.single},g.createElement(je,{style:{input:u.input2,label:u.label2},label:"hsl",value:c,onChange:s})))))},$d=function(t){var r=t.width,n=t.onChange,i=t.rgb,o=t.hsl,a=t.hsv,s=t.hex,u=t.header,l=t.styles,c=l===void 0?{}:l,f=t.className,d=f===void 0?"":f,h=Se(Gt({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+i.r+", "+i.g+", "+i.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},c));return g.createElement("div",{style:h.picker,className:"google-picker "+d},g.createElement("div",{style:h.head},u),g.createElement("div",{style:h.swatch}),g.createElement("div",{style:h.saturation},g.createElement(Sl,{hsl:o,hsv:a,pointer:Ad,onChange:n})),g.createElement("div",{style:h.body},g.createElement("div",{style:h.controls,className:"flexbox-fix"},g.createElement("div",{style:h.hue},g.createElement(Ni,{style:h.Hue,hsl:o,radius:"4px",pointer:Dd,onChange:n}))),g.createElement(DV,{rgb:i,hsl:o,hex:s,hsv:a,onChange:n})))};$d.propTypes={width:_.oneOfType([_.string,_.number]),styles:_.object,header:_.string},$d.defaultProps={width:652,styles:{},header:"Color picker"},qt($d);const fb=({value:e,onChangeColor:t,...r})=>{const[n,i]=g.useState(null),o=s=>{i(s.currentTarget)},a=()=>i(null);return y.jsxs(y.Fragment,{children:[y.jsx(P.TextField,{...r,value:e,onChange:s=>t(s.target.value),InputProps:{inputProps:{...r.inputProps,maxLength:7},startAdornment:y.jsx(P.InputAdornment,{position:"start",sx:{ml:2},children:y.jsx(P.IconButton,{edge:"start","aria-label":"Escolher cor",onClick:o,children:y.jsx(Ft,{icon:"bi:square-fill",color:e,width:25,height:23})})})}}),y.jsx(P.Popover,{open:!!n,anchorEl:n,onClose:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:y.jsx(oV,{color:e,onChange:s=>t(s.hex),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}},disableAlpha:!0})})]})};function Ve(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Xr(e){"@babel/helpers - typeof";return Xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xr(e)}function U(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Y(e){U(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Xr(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Id(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function Al(e,t){U(2,arguments);var r=Y(e).getTime(),n=Ve(t);return new Date(r+n)}function $V(e,t){U(2,arguments);var r=Ve(t);return Al(e,r*1e3)}var IV=6e4;function FV(e,t){U(2,arguments);var r=Ve(t);return Al(e,r*IV)}var jV=36e5;function LV(e,t){U(2,arguments);var r=Ve(t);return Al(e,r*jV)}function RV(e,t){U(2,arguments);var r=Ve(t),n=r*7;return Id(e,n)}function Dl(e,t){U(2,arguments);var r=Y(e),n=Ve(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+n+1,0);var a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}function db(e,t){U(2,arguments);var r=Ve(t);return Dl(e,r*12)}function NV(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getFullYear()-n.getFullYear()}function io(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function BV(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=io(r,n),o=Math.abs(NV(r,n));r.setFullYear(1584),n.setFullYear(1584);var a=io(r,n)===-i,s=i*(o-Number(a));return s===0?0:s}function zV(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return i*12+o}function Fd(e){U(1,arguments);var t=Y(e);return t.setHours(23,59,59,999),t}function jd(e){U(1,arguments);var t=Y(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function VV(e){U(1,arguments);var t=Y(e);return Fd(t).getTime()===jd(t).getTime()}function Ld(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=io(r,n),o=Math.abs(zV(r,n)),a;if(o<1)a=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*o);var s=io(r,n)===-i;VV(Y(e))&&o===1&&io(e,n)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}var hb={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},WV="trunc";function Pa(e){return e?hb[e]:hb[WV]}function HV(e,t,r){U(2,arguments);var n=Ld(e,t)/3;return Pa(r==null?void 0:r.roundingMethod)(n)}function oo(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function ao(e){U(1,arguments);var t=Y(e);return t.setHours(0,0,0,0),t}var UV=864e5;function YV(e,t){U(2,arguments);var r=ao(e),n=ao(t),i=r.getTime()-oo(r),o=n.getTime()-oo(n);return Math.round((i-o)/UV)}function pb(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function gb(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=pb(r,n),o=Math.abs(YV(r,n));r.setDate(r.getDate()-i*o);var a=+(pb(r,n)===-i),s=i*(o-a);return s===0?0:s}function GV(e,t,r){U(2,arguments);var n=gb(e,t)/7;return Pa(r==null?void 0:r.roundingMethod)(n)}var $l=6e4,Il=36e5,qV=1e3;function Fl(e,t){return U(2,arguments),Y(e).getTime()-Y(t).getTime()}function KV(e,t,r){U(2,arguments);var n=Fl(e,t)/Il;return Pa(r==null?void 0:r.roundingMethod)(n)}function XV(e,t,r){U(2,arguments);var n=Fl(e,t)/$l;return Pa(r==null?void 0:r.roundingMethod)(n)}function mb(e,t,r){U(2,arguments);var n=Fl(e,t)/1e3;return Pa(r==null?void 0:r.roundingMethod)(n)}function ZV(e,t){var r;U(1,arguments);var n=e||{},i=Y(n.start),o=Y(n.end),a=o.getTime();if(!(i.getTime()<=a))throw new RangeError("Invalid interval");var s=[],u=i;u.setHours(0,0,0,0);var l=Number((r=t==null?void 0:t.step)!==null&&r!==void 0?r:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=a;)s.push(Y(u)),u.setDate(u.getDate()+l),u.setHours(0,0,0,0);return s}var QV={};function wr(){return QV}function Rd(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=wr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Y(e),h=d.getDay(),m=(h<f?-7:0)+6-(h-f);return d.setDate(d.getDate()+m),d.setHours(23,59,59,999),d}function Nd(e){U(1,arguments);var t=Y(e),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}function JV(e){return U(1,arguments),e instanceof Date||Xr(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function vb(e){if(U(1,arguments),!JV(e)&&typeof e!="number")return!1;var t=Y(e);return!isNaN(Number(t))}function yb(e,t){U(2,arguments);var r=Ve(t);return Al(e,-r)}var eW=864e5;function tW(e){U(1,arguments);var t=Y(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),i=r-n;return Math.floor(i/eW)+1}function so(e){U(1,arguments);var t=1,r=Y(e),n=r.getUTCDay(),i=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function bb(e){U(1,arguments);var t=Y(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=so(n),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var a=so(o);return t.getTime()>=i.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function rW(e){U(1,arguments);var t=bb(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=so(r);return n}var nW=6048e5;function xb(e){U(1,arguments);var t=Y(e),r=so(t).getTime()-rW(t).getTime();return Math.round(r/nW)+1}function Gn(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=wr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Y(e),h=d.getUTCDay(),m=(h<f?7:0)+h-f;return d.setUTCDate(d.getUTCDate()-m),d.setUTCHours(0,0,0,0),d}function Bd(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=Y(e),f=c.getUTCFullYear(),d=wr(),h=Ve((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(f+1,0,h),m.setUTCHours(0,0,0,0);var p=Gn(m,t),v=new Date(0);v.setUTCFullYear(f,0,h),v.setUTCHours(0,0,0,0);var x=Gn(v,t);return c.getTime()>=p.getTime()?f+1:c.getTime()>=x.getTime()?f:f-1}function iW(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=wr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=Bd(e,t),h=new Date(0);h.setUTCFullYear(d,0,f),h.setUTCHours(0,0,0,0);var m=Gn(h,t);return m}var oW=6048e5;function wb(e,t){U(1,arguments);var r=Y(e),n=Gn(r,t).getTime()-iW(r,t).getTime();return Math.round(n/oW)+1}function De(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var aW={y:function(t,r){var n=t.getUTCFullYear(),i=n>0?n:1-n;return De(r==="yy"?i%100:i,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):De(n+1,2)},d:function(t,r){return De(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return De(t.getUTCHours()%12||12,r.length)},H:function(t,r){return De(t.getUTCHours(),r.length)},m:function(t,r){return De(t.getUTCMinutes(),r.length)},s:function(t,r){return De(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,n-3));return De(o,r.length)}};const pn=aW;var lo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},sW={G:function(t,r,n){var i=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return n.ordinalNumber(o,{unit:"year"})}return pn.y(t,r)},Y:function(t,r,n,i){var o=Bd(t,i),a=o>0?o:1-o;if(r==="YY"){var s=a%100;return De(s,2)}return r==="Yo"?n.ordinalNumber(a,{unit:"year"}):De(a,r.length)},R:function(t,r){var n=bb(t);return De(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return De(n,r.length)},Q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return De(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return De(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,r,n){var i=t.getUTCMonth();switch(r){case"M":case"MM":return pn.M(t,r);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,r,n){var i=t.getUTCMonth();switch(r){case"L":return String(i+1);case"LL":return De(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,r,n,i){var o=wb(t,i);return r==="wo"?n.ordinalNumber(o,{unit:"week"}):De(o,r.length)},I:function(t,r,n){var i=xb(t);return r==="Io"?n.ordinalNumber(i,{unit:"week"}):De(i,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):pn.d(t,r)},D:function(t,r,n){var i=tW(t);return r==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):De(i,r.length)},E:function(t,r,n){var i=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,r,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return De(a,2);case"eo":return n.ordinalNumber(a,{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"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return De(a,r.length);case"co":return n.ordinalNumber(a,{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"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,n){var i=t.getUTCDay(),o=i===0?7:i;switch(r){case"i":return String(o);case"ii":return De(o,r.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,r,n){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,n){var i=t.getUTCHours(),o;switch(i===12?o=lo.noon:i===0?o=lo.midnight:o=i/12>=1?"pm":"am",r){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"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,n){var i=t.getUTCHours(),o;switch(i>=17?o=lo.evening:i>=12?o=lo.afternoon:i>=4?o=lo.morning:o=lo.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return pn.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):pn.H(t,r)},K:function(t,r,n){var i=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(i,{unit:"hour"}):De(i,r.length)},k:function(t,r,n){var i=t.getUTCHours();return i===0&&(i=24),r==="ko"?n.ordinalNumber(i,{unit:"hour"}):De(i,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):pn.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):pn.s(t,r)},S:function(t,r){return pn.S(t,r)},X:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return Sb(a);case"XXXX":case"XX":return qn(a);case"XXXXX":case"XXX":default:return qn(a,":")}},x:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"x":return Sb(a);case"xxxx":case"xx":return qn(a);case"xxxxx":case"xxx":default:return qn(a,":")}},O:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Cb(a,":");case"OOOO":default:return"GMT"+qn(a,":")}},z:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Cb(a,":");case"zzzz":default:return"GMT"+qn(a,":")}},t:function(t,r,n,i){var o=i._originalDate||t,a=Math.floor(o.getTime()/1e3);return De(a,r.length)},T:function(t,r,n,i){var o=i._originalDate||t,a=o.getTime();return De(a,r.length)}};function Cb(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(o===0)return r+String(i);var a=t||"";return r+String(i)+a+De(o,2)}function Sb(e,t){if(e%60===0){var r=e>0?"-":"+";return r+De(Math.abs(e)/60,2)}return qn(e,t)}function qn(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),o=De(Math.floor(i/60),2),a=De(i%60,2);return n+o+r+a}const lW=sW;var Eb=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Tb=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},uW=function(t,r){var n=t.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return Eb(t,r);var a;switch(i){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",Eb(i,r)).replace("{{time}}",Tb(o,r))},cW={p:Tb,P:uW};const zd=cW;var fW=["D","DD"],dW=["YY","YYYY"];function kb(e){return fW.indexOf(e)!==-1}function _b(e){return dW.indexOf(e)!==-1}function jl(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var hW={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"}},pW=function(t,r,n){var i,o=hW[t];return typeof o=="string"?i=o:r===1?i=o.one:i=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};const gW=pW;function uo(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var mW={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},vW={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},yW={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},bW={date:uo({formats:mW,defaultWidth:"full"}),time:uo({formats:vW,defaultWidth:"full"}),dateTime:uo({formats:yW,defaultWidth:"full"})};const xW=bW;var wW={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},CW=function(t,r,n,i){return wW[t]};const SW=CW;function Ar(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var EW={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},TW={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},kW={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"]},_W={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"]},OW={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"}},MW={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"}},PW=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},AW={ordinalNumber:PW,era:Ar({values:EW,defaultWidth:"wide"}),quarter:Ar({values:TW,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ar({values:kW,defaultWidth:"wide"}),day:Ar({values:_W,defaultWidth:"wide"}),dayPeriod:Ar({values:OW,defaultWidth:"wide",formattingValues:MW,defaultFormattingWidth:"wide"})};const DW=AW;function Dr(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?IW(s,function(f){return f.test(a)}):$W(s,function(f){return f.test(a)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var c=t.slice(a.length);return{value:l,rest:c}}}function $W(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function IW(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function Ob(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var FW=/^(\d+)(th|st|nd|rd)?/i,jW=/\d+/i,LW={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},RW={any:[/^b/i,/^(a|c)/i]},NW={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},BW={any:[/1/i,/2/i,/3/i,/4/i]},zW={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},VW={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]},WW={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},HW={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]},UW={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},YW={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}},GW={ordinalNumber:Ob({matchPattern:FW,parsePattern:jW,valueCallback:function(t){return parseInt(t,10)}}),era:Dr({matchPatterns:LW,defaultMatchWidth:"wide",parsePatterns:RW,defaultParseWidth:"any"}),quarter:Dr({matchPatterns:NW,defaultMatchWidth:"wide",parsePatterns:BW,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Dr({matchPatterns:zW,defaultMatchWidth:"wide",parsePatterns:VW,defaultParseWidth:"any"}),day:Dr({matchPatterns:WW,defaultMatchWidth:"wide",parsePatterns:HW,defaultParseWidth:"any"}),dayPeriod:Dr({matchPatterns:UW,defaultMatchWidth:"any",parsePatterns:YW,defaultParseWidth:"any"})},qW={code:"en-US",formatDistance:gW,formatLong:xW,formatRelative:SW,localize:DW,match:GW,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ll=qW;var KW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,XW=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ZW=/^'([^]*?)'?$/,QW=/''/g,JW=/[a-zA-Z]/;function Vd(e,t,r){var n,i,o,a,s,u,l,c,f,d,h,m,p,v,x,b,C,E;U(2,arguments);var w=String(t),k=wr(),T=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:k.locale)!==null&&n!==void 0?n:Ll,O=Ve((o=(a=(s=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(l=r.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:k.firstWeekContainsDate)!==null&&a!==void 0?a:(f=k.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=Ve((h=(m=(p=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(x=r.locale)===null||x===void 0||(b=x.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&p!==void 0?p:k.weekStartsOn)!==null&&m!==void 0?m:(C=k.locale)===null||C===void 0||(E=C.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&h!==void 0?h:0);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var L=Y(e);if(!vb(L))throw new RangeError("Invalid time value");var Z=oo(L),pe=yb(L,Z),se={firstWeekContainsDate:O,weekStartsOn:A,locale:T,_originalDate:L},q=w.match(XW).map(function(G){var me=G[0];if(me==="p"||me==="P"){var Ee=zd[me];return Ee(G,T.formatLong)}return G}).join("").match(KW).map(function(G){if(G==="''")return"'";var me=G[0];if(me==="'")return eH(G);var Ee=lW[me];if(Ee)return!(r!=null&&r.useAdditionalWeekYearTokens)&&_b(G)&&jl(G,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&kb(G)&&jl(G,t,String(e)),Ee(pe,G,T.localize,se);if(me.match(JW))throw new RangeError("Format string contains an unescaped latin alphabet character `"+me+"`");return G}).join("");return q}function eH(e){var t=e.match(ZW);return t?t[1].replace(QW,"'"):e}function tH(e){U(1,arguments);var t=Y(e),r=t.getDate();return r}function Mb(e){U(1,arguments);var t=Y(e),r=t.getFullYear(),n=t.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function rH(e){U(1,arguments);var t=Y(e),r=t.getHours();return r}function nH(e){U(1,arguments);var t=Y(e),r=t.getMinutes();return r}function iH(e){U(1,arguments);var t=Y(e),r=t.getMonth();return r}function oH(e){U(1,arguments);var t=Y(e),r=t.getSeconds();return r}function aH(e){U(1,arguments);var t=Y(e),r=t.getMilliseconds();return r}function Kn(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=wr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Y(e),h=d.getDay(),m=(h<f?7:0)+h-f;return d.setDate(d.getDate()-m),d.setHours(0,0,0,0),d}function sH(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=Y(e),f=c.getFullYear(),d=wr(),h=Ve((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setFullYear(f+1,0,h),m.setHours(0,0,0,0);var p=Kn(m,t),v=new Date(0);v.setFullYear(f,0,h),v.setHours(0,0,0,0);var x=Kn(v,t);return c.getTime()>=p.getTime()?f+1:c.getTime()>=x.getTime()?f:f-1}function lH(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=wr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=sH(e,t),h=new Date(0);h.setFullYear(d,0,f),h.setHours(0,0,0,0);var m=Kn(h,t);return m}var uH=6048e5;function cH(e,t){U(1,arguments);var r=Y(e),n=Kn(r,t).getTime()-lH(r,t).getTime();return Math.round(n/uH)+1}function fH(e){return U(1,arguments),Y(e).getFullYear()}function Wd(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getTime()>n.getTime()}function Aa(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getTime()<n.getTime()}function dH(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getTime()===n.getTime()}function hH(e,t){U(2,arguments);var r=ao(e),n=ao(t);return r.getTime()===n.getTime()}function pH(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getFullYear()===n.getFullYear()}function gH(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function Pb(e){U(1,arguments);var t=Y(e);return t.setMinutes(0,0,0),t}function mH(e,t){U(2,arguments);var r=Pb(e),n=Pb(t);return r.getTime()===n.getTime()}function Ab(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vH(e,t){if(e){if(typeof e=="string")return Ab(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ab(e,t)}}function Db(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=vH(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
136
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return o=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function Hd(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function ae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ud(e,t){return Ud=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ud(e,t)}function We(e,t){if(typeof t!="function"&&t!==null)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&&Ud(e,t)}function Rl(e){return Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rl(e)}function yH(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bH(e,t){if(t&&(Xr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ae(e)}function He(e){var t=yH();return function(){var n=Rl(e),i;if(t){var o=Rl(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return bH(this,i)}}function Le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xH(e,t){if(Xr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $b(e){var t=xH(e,"string");return Xr(t)==="symbol"?t:String(t)}function Ib(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$b(n.key),n)}}function Re(e,t,r){return t&&Ib(e.prototype,t),r&&Ib(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function re(e,t,r){return t=$b(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wH=10,Fb=function(){function e(){Le(this,e),re(this,"priority",void 0),re(this,"subPriority",0)}return Re(e,[{key:"validate",value:function(r,n){return!0}}]),e}(),CH=function(e){We(r,e);var t=He(r);function r(n,i,o,a,s){var u;return Le(this,r),u=t.call(this),u.value=n,u.validateValue=i,u.setValue=o,u.priority=a,s&&(u.subPriority=s),u}return Re(r,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,a){return this.setValue(i,o,this.value,a)}}]),r}(Fb),SH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",wH),re(ae(n),"subPriority",-1),n}return Re(r,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}}]),r}(Fb),Ge=function(){function e(){Le(this,e),re(this,"incompatibleTokens",void 0),re(this,"priority",void 0),re(this,"subPriority",void 0)}return Re(e,[{key:"run",value:function(r,n,i,o){var a=this.parse(r,n,i,o);return a?{setter:new CH(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(r,n,i){return!0}}]),e}(),EH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",140),re(ae(n),"incompatibleTokens",["R","u","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"});case"GGGGG":return a.era(i,{width:"narrow"});case"GGGG":default:return a.era(i,{width:"wide"})||a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,a){return o.era=a,i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),Tt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},$r={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function kt(e,t){return e&&{value:t(e.value),rest:e.rest}}function mt(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Ir(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,i=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,a=r[5]?parseInt(r[5],10):0;return{value:n*(i*Il+o*$l+a*qV),rest:t.slice(r[0].length)}}function jb(e){return mt(Tt.anyDigitsSigned,e)}function St(e,t){switch(e){case 1:return mt(Tt.singleDigit,t);case 2:return mt(Tt.twoDigits,t);case 3:return mt(Tt.threeDigits,t);case 4:return mt(Tt.fourDigits,t);default:return mt(new RegExp("^\\d{1,"+e+"}"),t)}}function Nl(e,t){switch(e){case 1:return mt(Tt.singleDigitSigned,t);case 2:return mt(Tt.twoDigitsSigned,t);case 3:return mt(Tt.threeDigitsSigned,t);case 4:return mt(Tt.fourDigitsSigned,t);default:return mt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Yd(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Lb(e,t){var r=t>0,n=r?t:1-t,i;if(n<=50)i=e||100;else{var o=n+50,a=Math.floor(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return r?i:1-i}function Rb(e){return e%400===0||e%4===0&&e%100!==0}var TH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",130),re(ae(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return{year:l,isTwoDigitYear:o==="yy"}};switch(o){case"y":return kt(St(4,i),s);case"yo":return kt(a.ordinalNumber(i,{unit:"year"}),s);default:return kt(St(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a){var s=i.getUTCFullYear();if(a.isTwoDigitYear){var u=Lb(a.year,s);return i.setUTCFullYear(u,0,1),i.setUTCHours(0,0,0,0),i}var l=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),kH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",130),re(ae(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return{year:l,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return kt(St(4,i),s);case"Yo":return kt(a.ordinalNumber(i,{unit:"year"}),s);default:return kt(St(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a,s){var u=Bd(i,s);if(a.isTwoDigitYear){var l=Lb(a.year,u);return i.setUTCFullYear(l,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Gn(i,s)}var c=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Gn(i,s)}}]),r}(Ge),_H=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",130),re(ae(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o){return Nl(o==="R"?4:o.length,i)}},{key:"set",value:function(i,o,a){var s=new Date(0);return s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0),so(s)}}]),r}(Ge),OH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",130),re(ae(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o){return Nl(o==="u"?4:o.length,i)}},{key:"set",value:function(i,o,a){return i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),MH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",120),re(ae(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"Q":case"QQ":return St(o.length,i);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(i,{width:"wide",context:"formatting"})||a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),PH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",120),re(ae(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"q":case"qq":return St(o.length,i);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(i,{width:"wide",context:"standalone"})||a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),AH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),re(ae(n),"priority",110),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l-1};switch(o){case"M":return kt(mt(Tt.month,i),s);case"MM":return kt(St(2,i),s);case"Mo":return kt(a.ordinalNumber(i,{unit:"month"}),s);case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(i,{width:"wide",context:"formatting"})||a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),DH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",110),re(ae(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l-1};switch(o){case"L":return kt(mt(Tt.month,i),s);case"LL":return kt(St(2,i),s);case"Lo":return kt(a.ordinalNumber(i,{unit:"month"}),s);case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(i,{width:"wide",context:"standalone"})||a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge);function $H(e,t,r){U(2,arguments);var n=Y(e),i=Ve(t),o=wb(n,r)-i;return n.setUTCDate(n.getUTCDate()-o*7),n}var IH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",100),re(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"w":return mt(Tt.week,i);case"wo":return a.ordinalNumber(i,{unit:"week"});default:return St(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a,s){return Gn($H(i,a,s),s)}}]),r}(Ge);function FH(e,t){U(2,arguments);var r=Y(e),n=Ve(t),i=xb(r)-n;return r.setUTCDate(r.getUTCDate()-i*7),r}var jH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",100),re(ae(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"I":return mt(Tt.week,i);case"Io":return a.ordinalNumber(i,{unit:"week"});default:return St(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a){return so(FH(i,a))}}]),r}(Ge),LH=[31,28,31,30,31,30,31,31,30,31,30,31],RH=[31,29,31,30,31,30,31,31,30,31,30,31],NH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",90),re(ae(n),"subPriority",1),re(ae(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"d":return mt(Tt.date,i);case"do":return a.ordinalNumber(i,{unit:"date"});default:return St(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=Rb(a),u=i.getUTCMonth();return s?o>=1&&o<=RH[u]:o>=1&&o<=LH[u]}},{key:"set",value:function(i,o,a){return i.setUTCDate(a),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),BH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",90),re(ae(n),"subpriority",1),re(ae(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"D":case"DD":return mt(Tt.dayOfYear,i);case"Do":return a.ordinalNumber(i,{unit:"date"});default:return St(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=Rb(a);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,a){return i.setUTCMonth(0,a),i.setUTCHours(0,0,0,0),i}}]),r}(Ge);function Gd(e,t,r){var n,i,o,a,s,u,l,c;U(2,arguments);var f=wr(),d=Ve((n=(i=(o=(a=r==null?void 0:r.weekStartsOn)!==null&&a!==void 0?a:r==null||(s=r.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&i!==void 0?i:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Y(e),m=Ve(t),p=h.getUTCDay(),v=m%7,x=(v+7)%7,b=(x<d?7:0)+m-p;return h.setUTCDate(h.getUTCDate()+b),h}var zH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",90),re(ae(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=Gd(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),VH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",90),re(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a,s){var u=function(c){var f=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+f};switch(o){case"e":case"ee":return kt(St(o.length,i),u);case"eo":return kt(a.ordinalNumber(i,{unit:"day"}),u);case"eee":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=Gd(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),WH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",90),re(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a,s){var u=function(c){var f=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+f};switch(o){case"c":case"cc":return kt(St(o.length,i),u);case"co":return kt(a.ordinalNumber(i,{unit:"day"}),u);case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})||a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=Gd(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ge);function HH(e,t){U(2,arguments);var r=Ve(t);r%7===0&&(r=r-7);var n=1,i=Y(e),o=i.getUTCDay(),a=r%7,s=(a+7)%7,u=(s<n?7:0)+r-o;return i.setUTCDate(i.getUTCDate()+u),i}var UH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",90),re(ae(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l===0?7:l};switch(o){case"i":case"ii":return St(o.length,i);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return kt(a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return kt(a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return kt(a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return kt(a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,a){return i=HH(i,a),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),YH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",80),re(ae(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"a":case"aa":case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(Yd(a),0,0,0),i}}]),r}(Ge),GH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",80),re(ae(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"b":case"bb":case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(Yd(a),0,0,0),i}}]),r}(Ge),qH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",80),re(ae(n),"incompatibleTokens",["a","b","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(Yd(a),0,0,0),i}}]),r}(Ge),KH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",70),re(ae(n),"incompatibleTokens",["H","K","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"h":return mt(Tt.hour12h,i);case"ho":return a.ordinalNumber(i,{unit:"hour"});default:return St(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):!s&&a===12?i.setUTCHours(0,0,0,0):i.setUTCHours(a,0,0,0),i}}]),r}(Ge),XH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",70),re(ae(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"H":return mt(Tt.hour23h,i);case"Ho":return a.ordinalNumber(i,{unit:"hour"});default:return St(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,a){return i.setUTCHours(a,0,0,0),i}}]),r}(Ge),ZH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",70),re(ae(n),"incompatibleTokens",["h","H","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"K":return mt(Tt.hour11h,i);case"Ko":return a.ordinalNumber(i,{unit:"hour"});default:return St(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):i.setUTCHours(a,0,0,0),i}}]),r}(Ge),QH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",70),re(ae(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"k":return mt(Tt.hour24h,i);case"ko":return a.ordinalNumber(i,{unit:"hour"});default:return St(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,a){var s=a<=24?a%24:a;return i.setUTCHours(s,0,0,0),i}}]),r}(Ge),JH=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",60),re(ae(n),"incompatibleTokens",["t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"m":return mt(Tt.minute,i);case"mo":return a.ordinalNumber(i,{unit:"minute"});default:return St(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCMinutes(a,0,0),i}}]),r}(Ge),eU=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",50),re(ae(n),"incompatibleTokens",["t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"s":return mt(Tt.second,i);case"so":return a.ordinalNumber(i,{unit:"second"});default:return St(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCSeconds(a,0),i}}]),r}(Ge),tU=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",30),re(ae(n),"incompatibleTokens",["t","T"]),n}return Re(r,[{key:"parse",value:function(i,o){var a=function(u){return Math.floor(u*Math.pow(10,-o.length+3))};return kt(St(o.length,i),a)}},{key:"set",value:function(i,o,a){return i.setUTCMilliseconds(a),i}}]),r}(Ge),rU=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",10),re(ae(n),"incompatibleTokens",["t","T","x"]),n}return Re(r,[{key:"parse",value:function(i,o){switch(o){case"X":return Ir($r.basicOptionalMinutes,i);case"XX":return Ir($r.basic,i);case"XXXX":return Ir($r.basicOptionalSeconds,i);case"XXXXX":return Ir($r.extendedOptionalSeconds,i);case"XXX":default:return Ir($r.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),r}(Ge),nU=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",10),re(ae(n),"incompatibleTokens",["t","T","X"]),n}return Re(r,[{key:"parse",value:function(i,o){switch(o){case"x":return Ir($r.basicOptionalMinutes,i);case"xx":return Ir($r.basic,i);case"xxxx":return Ir($r.basicOptionalSeconds,i);case"xxxxx":return Ir($r.extendedOptionalSeconds,i);case"xxx":default:return Ir($r.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),r}(Ge),iU=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",40),re(ae(n),"incompatibleTokens","*"),n}return Re(r,[{key:"parse",value:function(i){return jb(i)}},{key:"set",value:function(i,o,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),r}(Ge),oU=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),re(ae(n),"priority",20),re(ae(n),"incompatibleTokens","*"),n}return Re(r,[{key:"parse",value:function(i){return jb(i)}},{key:"set",value:function(i,o,a){return[new Date(a),{timestampIsSet:!0}]}}]),r}(Ge),aU={G:new EH,y:new TH,Y:new kH,R:new _H,u:new OH,Q:new MH,q:new PH,M:new AH,L:new DH,w:new IH,I:new jH,d:new NH,D:new BH,E:new zH,e:new VH,c:new WH,i:new UH,a:new YH,b:new GH,B:new qH,h:new KH,H:new XH,K:new ZH,k:new QH,m:new JH,s:new eU,S:new tU,X:new rU,x:new nU,t:new iU,T:new oU},sU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,lU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,uU=/^'([^]*?)'?$/,cU=/''/g,fU=/\S/,dU=/[a-zA-Z]/;function hU(e,t,r,n){var i,o,a,s,u,l,c,f,d,h,m,p,v,x,b,C,E,w;U(3,arguments);var k=String(e),T=String(t),O=wr(),A=(i=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:O.locale)!==null&&i!==void 0?i:Ll;if(!A.match)throw new RangeError("locale must contain match property");var L=Ve((a=(s=(u=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&u!==void 0?u:O.firstWeekContainsDate)!==null&&s!==void 0?s:(d=O.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Z=Ve((m=(p=(v=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(b=n.locale)===null||b===void 0||(C=b.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&v!==void 0?v:O.weekStartsOn)!==null&&p!==void 0?p:(E=O.locale)===null||E===void 0||(w=E.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&m!==void 0?m:0);if(!(Z>=0&&Z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return k===""?Y(r):new Date(NaN);var pe={firstWeekContainsDate:L,weekStartsOn:Z,locale:A},se=[new SH],q=T.match(lU).map(function(Q){var J=Q[0];if(J in zd){var ne=zd[J];return ne(Q,A.formatLong)}return Q}).join("").match(sU),G=[],me=Db(q),Ee;try{var Ie=function(){var J=Ee.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&_b(J)&&jl(J,T,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&kb(J)&&jl(J,T,e);var ne=J[0],be=aU[ne];if(be){var N=be.incompatibleTokens;if(Array.isArray(N)){var Ne=G.find(function(pt){return N.includes(pt.token)||pt.token===ne});if(Ne)throw new RangeError("The format string mustn't contain `".concat(Ne.fullToken,"` and `").concat(J,"` at the same time"))}else if(be.incompatibleTokens==="*"&&G.length>0)throw new RangeError("The format string mustn't contain `".concat(J,"` and any other token at the same time"));G.push({token:ne,fullToken:J});var le=be.run(k,J,A.match,pe);if(!le)return{v:new Date(NaN)};se.push(le.setter),k=le.rest}else{if(ne.match(dU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ne+"`");if(J==="''"?J="'":ne==="'"&&(J=pU(J)),k.indexOf(J)===0)k=k.slice(J.length);else return{v:new Date(NaN)}}};for(me.s();!(Ee=me.n()).done;){var _e=Ie();if(Xr(_e)==="object")return _e.v}}catch(Q){me.e(Q)}finally{me.f()}if(k.length>0&&fU.test(k))return new Date(NaN);var $=se.map(function(Q){return Q.priority}).sort(function(Q,J){return J-Q}).filter(function(Q,J,ne){return ne.indexOf(Q)===J}).map(function(Q){return se.filter(function(J){return J.priority===Q}).sort(function(J,ne){return ne.subPriority-J.subPriority})}).map(function(Q){return Q[0]}),j=Y(r);if(isNaN(j.getTime()))return new Date(NaN);var X=yb(j,oo(j)),te={},H=Db($),fe;try{for(H.s();!(fe=H.n()).done;){var ue=fe.value;if(!ue.validate(X,pe))return new Date(NaN);var ge=ue.set(X,te,pe);Array.isArray(ge)?(X=ge[0],Hd(te,ge[1])):X=ge}}catch(Q){H.e(Q)}finally{H.f()}return X}function pU(e){return e.match(uU)[1].replace(cU,"'")}function gU(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setDate(n),r}function mU(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setHours(n),r}function vU(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setMinutes(n),r}function yU(e,t){U(2,arguments);var r=Y(e),n=Ve(t),i=r.getFullYear(),o=r.getDate(),a=new Date(0);a.setFullYear(i,n,15),a.setHours(0,0,0,0);var s=Mb(a);return r.setMonth(n,Math.min(o,s)),r}function bU(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setSeconds(n),r}function xU(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setMilliseconds(n),r}function wU(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function Nb(e){U(1,arguments);var t=Y(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Bl(e){U(1,arguments);var t=Y(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function CU(e,t){var r;U(1,arguments);var n=Ve((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=kU(e),o;if(i.date){var a=_U(i.date,n);o=OU(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),u=0,l;if(i.time&&(u=MU(i.time),isNaN(u)))return new Date(NaN);if(i.timezone){if(l=PU(i.timezone),isNaN(l))return new Date(NaN)}else{var c=new Date(s+u),f=new Date(0);return f.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),f.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),f}return new Date(s+u+l)}var zl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},SU=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,EU=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,TU=/^([+-])(\d{2})(?::?(\d{2}))?$/;function kU(e){var t={},r=e.split(zl.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],zl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(zl.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var i=zl.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function _U(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((n[1]||n[2]).length)}}function OU(e,t){if(t===null)return new Date(NaN);var r=e.match(SU);if(!r)return new Date(NaN);var n=!!r[4],i=Da(r[1]),o=Da(r[2])-1,a=Da(r[3]),s=Da(r[4]),u=Da(r[5])-1;if(n)return FU(t,s,u)?AU(t,s,u):new Date(NaN);var l=new Date(0);return!$U(t,o,a)||!IU(t,i)?new Date(NaN):(l.setUTCFullYear(t,o,Math.max(i,a)),l)}function Da(e){return e?parseInt(e):1}function MU(e){var t=e.match(EU);if(!t)return NaN;var r=qd(t[1]),n=qd(t[2]),i=qd(t[3]);return jU(r,n,i)?r*Il+n*$l+i*1e3:NaN}function qd(e){return e&&parseFloat(e.replace(",","."))||0}function PU(e){if(e==="Z")return 0;var t=e.match(TU);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return LU(n,i)?r*(n*Il+i*$l):NaN}function AU(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,o=(t-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+o),n}var DU=[31,null,31,30,31,30,31,31,30,31,30,31];function Bb(e){return e%400===0||e%4===0&&e%100!==0}function $U(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(DU[t]||(Bb(e)?29:28))}function IU(e,t){return t>=1&&t<=(Bb(e)?366:365)}function FU(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function jU(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function LU(e,t){return t>=0&&t<=59}function RU(e,t){var r,n;U(1,arguments);var i=Y(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var o=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),a=String((n=t==null?void 0:t.representation)!==null&&n!==void 0?n:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",u="",l=o==="extended"?"-":"",c=o==="extended"?":":"";if(a!=="time"){var f=De(i.getDate(),2),d=De(i.getMonth()+1,2),h=De(i.getFullYear(),4);s="".concat(h).concat(l).concat(d).concat(l).concat(f)}if(a!=="date"){var m=i.getTimezoneOffset();if(m!==0){var p=Math.abs(m),v=De(Math.floor(p/60),2),x=De(p%60,2),b=m<0?"+":"-";u="".concat(b).concat(v,":").concat(x)}else u="Z";var C=De(i.getHours(),2),E=De(i.getMinutes(),2),w=De(i.getSeconds(),2),k=s===""?"":"T",T=[C,E,w].join(c);s="".concat(s).concat(k).concat(T).concat(u)}return s}function NU(e,t){U(2,arguments);var r=Y(e).getTime(),n=Y(t.start).getTime(),i=Y(t.end).getTime();if(!(n<=i))throw new RangeError("Invalid interval");return r>=n&&r<=i}var Kd={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(u,l){switch(u){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}},n=function(u,l){switch(u){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}},i=function(u,l){var c=u.match(/(P+)(p+)?/)||[],f=c[1],d=c[2];if(!d)return r(u,l);var h;switch(f){case"P":h=l.dateTime({width:"short"});break;case"PP":h=l.dateTime({width:"medium"});break;case"PPP":h=l.dateTime({width:"long"});break;case"PPPP":default:h=l.dateTime({width:"full"});break}return h.replace("{{date}}",r(f,l)).replace("{{time}}",n(d,l))},o={p:n,P:i},a=o;t.default=a,e.exports=t.default})(Kd,Kd.exports);var BU=Kd.exports;const zU=Sn(BU),VU={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},WU={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",weekday:"EEEE",weekdayShort:"EEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",fullDateWithWeekday:"PPPP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",monthAndYear:"LLLL yyyy",monthAndDate:"MMMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aa",fullDateTime24h:"PP HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class HU{constructor({locale:t,formats:r}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib="date-fns",this.locale=void 0,this.formats=void 0,this.formatTokenMap=VU,this.escapedCharacters={start:"'",end:"'"},this.date=n=>typeof n>"u"?new Date:n===null?null:new Date(n),this.dateWithTimezone=n=>this.date(n),this.getTimezone=()=>"default",this.setTimezone=n=>n,this.toJsDate=n=>n,this.parseISO=n=>CU(n),this.toISO=n=>RU(n,{format:"extended"}),this.parse=(n,i)=>n===""?null:hU(n,i,new Date,{locale:this.locale}),this.getCurrentLocaleCode=()=>{var n;return((n=this.locale)==null?void 0:n.code)||"en-US"},this.is12HourCycleInCurrentLocale=()=>this.locale?/a/.test(this.locale.formatLong.time()):!0,this.expandFormat=n=>{const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(i).map(o=>{const a=o[0];if(a==="p"||a==="P"){const s=zU[a],u=this.locale||Ll;return s(o,u.formatLong,{})}return o}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase(),this.isNull=n=>n===null,this.isValid=n=>vb(this.date(n)),this.format=(n,i)=>this.formatByString(n,this.formats[i]),this.formatByString=(n,i)=>Vd(n,i,{locale:this.locale}),this.formatNumber=n=>n,this.getDiff=(n,i,o)=>{switch(o){case"years":return BV(n,this.date(i));case"quarters":return HV(n,this.date(i));case"months":return Ld(n,this.date(i));case"weeks":return GV(n,this.date(i));case"days":return gb(n,this.date(i));case"hours":return KV(n,this.date(i));case"minutes":return XV(n,this.date(i));case"seconds":return mb(n,this.date(i));default:return Fl(n,this.date(i))}},this.isEqual=(n,i)=>n===null&&i===null?!0:dH(n,i),this.isSameYear=(n,i)=>pH(n,i),this.isSameMonth=(n,i)=>gH(n,i),this.isSameDay=(n,i)=>hH(n,i),this.isSameHour=(n,i)=>mH(n,i),this.isAfter=(n,i)=>Wd(n,i),this.isAfterYear=(n,i)=>Wd(n,Nd(i)),this.isAfterDay=(n,i)=>Wd(n,Fd(i)),this.isBefore=(n,i)=>Aa(n,i),this.isBeforeYear=(n,i)=>Aa(n,Bl(i)),this.isBeforeDay=(n,i)=>Aa(n,ao(i)),this.isWithinRange=(n,[i,o])=>NU(n,{start:i,end:o}),this.startOfYear=n=>Bl(n),this.startOfMonth=n=>Nb(n),this.startOfWeek=n=>Kn(n,{locale:this.locale}),this.startOfDay=n=>ao(n),this.endOfYear=n=>Nd(n),this.endOfMonth=n=>jd(n),this.endOfWeek=n=>Rd(n,{locale:this.locale}),this.endOfDay=n=>Fd(n),this.addYears=(n,i)=>db(n,i),this.addMonths=(n,i)=>Dl(n,i),this.addWeeks=(n,i)=>RV(n,i),this.addDays=(n,i)=>Id(n,i),this.addHours=(n,i)=>LV(n,i),this.addMinutes=(n,i)=>FV(n,i),this.addSeconds=(n,i)=>$V(n,i),this.getYear=n=>fH(n),this.getMonth=n=>iH(n),this.getDate=n=>tH(n),this.getHours=n=>rH(n),this.getMinutes=n=>nH(n),this.getSeconds=n=>oH(n),this.getMilliseconds=n=>aH(n),this.setYear=(n,i)=>wU(n,i),this.setMonth=(n,i)=>yU(n,i),this.setDate=(n,i)=>gU(n,i),this.setHours=(n,i)=>mU(n,i),this.setMinutes=(n,i)=>vU(n,i),this.setSeconds=(n,i)=>bU(n,i),this.setMilliseconds=(n,i)=>xU(n,i),this.getDaysInMonth=n=>Mb(n),this.getNextMonth=n=>Dl(n,1),this.getPreviousMonth=n=>Dl(n,-1),this.getMonthArray=n=>{const o=[Bl(n)];for(;o.length<12;){const a=o[o.length-1];o.push(this.getNextMonth(a))}return o},this.mergeDateAndTime=(n,i)=>this.setSeconds(this.setMinutes(this.setHours(n,this.getHours(i)),this.getMinutes(i)),this.getSeconds(i)),this.getWeekdays=()=>{const n=new Date;return ZV({start:Kn(n,{locale:this.locale}),end:Rd(n,{locale:this.locale})}).map(i=>this.formatByString(i,"EEEEEE"))},this.getWeekArray=n=>{const i=Kn(Nb(n),{locale:this.locale}),o=Rd(jd(n),{locale:this.locale});let a=0,s=i;const u=[];for(;Aa(s,o);){const l=Math.floor(a/7);u[l]=u[l]||[],u[l].push(s),s=Id(s,1),a+=1}return u},this.getWeekNumber=n=>cH(n,{locale:this.locale}),this.getYearRange=(n,i)=>{const o=Bl(n),a=Nd(i),s=[];let u=o;for(;Aa(u,a);)s.push(u),u=db(u,1);return s},this.getMeridiemText=n=>n==="am"?"AM":"PM",this.locale=t,this.formats=Ae({},WU,r)}}var UU={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},YU=function(t,r,n){var i,o=UU[t];return typeof o=="string"?i=o:r===1?i=o.one:i=o.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"em "+i:"há "+i:i};const GU=YU;var qU={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},KU={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},XU={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ZU={date:uo({formats:qU,defaultWidth:"full"}),time:uo({formats:KU,defaultWidth:"full"}),dateTime:uo({formats:XU,defaultWidth:"full"})};const QU=ZU;var JU={lastWeek:function(t){var r=t.getUTCDay(),n=r===0||r===6?"último":"última";return"'"+n+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},eY=function(t,r,n,i){var o=JU[t];return typeof o=="function"?o(r):o};const tY=eY;var rY={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},nY={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},iY={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},oY={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},aY={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},sY={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},lY=function(t,r){var n=Number(t);return(r==null?void 0:r.unit)==="week"?n+"ª":n+"º"},uY={ordinalNumber:lY,era:Ar({values:rY,defaultWidth:"wide"}),quarter:Ar({values:nY,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ar({values:iY,defaultWidth:"wide"}),day:Ar({values:oY,defaultWidth:"wide"}),dayPeriod:Ar({values:aY,defaultWidth:"wide",formattingValues:sY,defaultFormattingWidth:"wide"})};const cY=uY;var fY=/^(\d+)[ºªo]?/i,dY=/\d+/i,hY={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},pY={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},gY={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},mY={any:[/1/i,/2/i,/3/i,/4/i]},vY={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},yY={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,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},bY={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},xY={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},wY={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},CY={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},SY={ordinalNumber:Ob({matchPattern:fY,parsePattern:dY,valueCallback:function(t){return parseInt(t,10)}}),era:Dr({matchPatterns:hY,defaultMatchWidth:"wide",parsePatterns:pY,defaultParseWidth:"any"}),quarter:Dr({matchPatterns:gY,defaultMatchWidth:"wide",parsePatterns:mY,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Dr({matchPatterns:vY,defaultMatchWidth:"wide",parsePatterns:yY,defaultParseWidth:"any"}),day:Dr({matchPatterns:bY,defaultMatchWidth:"wide",parsePatterns:xY,defaultParseWidth:"any"}),dayPeriod:Dr({matchPatterns:wY,defaultMatchWidth:"any",parsePatterns:CY,defaultParseWidth:"any"})},EY={code:"pt-BR",formatDistance:GU,formatLong:QU,formatRelative:tY,localize:cY,match:SY,options:{weekStartsOn:0,firstWeekContainsDate:1}};const TY=EY;var zb={exports:{}},Vb={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Wb={exports:{}},kY=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},_Y=kY,OY=Array.prototype.concat,MY=Array.prototype.slice,Hb=Wb.exports=function(t){for(var r=[],n=0,i=t.length;n<i;n++){var o=t[n];_Y(o)?r=OY.call(r,MY.call(o)):r.push(o)}return r};Hb.wrap=function(e){return function(){return e(Hb(arguments))}};var PY=Wb.exports,$a=Vb,Ia=PY,Ub=Object.hasOwnProperty,Yb=Object.create(null);for(var Xd in $a)Ub.call($a,Xd)&&(Yb[$a[Xd]]=Xd);var ir=zb.exports={to:{},get:{}};ir.get=function(e){var t=e.substring(0,3).toLowerCase(),r,n;switch(t){case"hsl":r=ir.get.hsl(e),n="hsl";break;case"hwb":r=ir.get.hwb(e),n="hwb";break;default:r=ir.get.rgb(e),n="rgb";break}return r?{model:n,value:r}:null},ir.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^(\w+)$/,a=[0,0,0,1],s,u,l;if(s=e.match(r)){for(l=s[2],s=s[1],u=0;u<3;u++){var c=u*2;a[u]=parseInt(s.slice(c,c+2),16)}l&&(a[3]=parseInt(l,16)/255)}else if(s=e.match(t)){for(s=s[1],l=s[3],u=0;u<3;u++)a[u]=parseInt(s[u]+s[u],16);l&&(a[3]=parseInt(l+l,16)/255)}else if(s=e.match(n)){for(u=0;u<3;u++)a[u]=parseInt(s[u+1],0);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else if(s=e.match(i)){for(u=0;u<3;u++)a[u]=Math.round(parseFloat(s[u+1])*2.55);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else return(s=e.match(o))?s[1]==="transparent"?[0,0,0,0]:Ub.call($a,s[1])?(a=$a[s[1]],a[3]=1,a):null:null;for(u=0;u<3;u++)a[u]=gn(a[u],0,255);return a[3]=gn(a[3],0,1),a},ir.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,o=gn(parseFloat(r[2]),0,100),a=gn(parseFloat(r[3]),0,100),s=gn(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null},ir.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,o=gn(parseFloat(r[2]),0,100),a=gn(parseFloat(r[3]),0,100),s=gn(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null},ir.to.hex=function(){var e=Ia(arguments);return"#"+Vl(e[0])+Vl(e[1])+Vl(e[2])+(e[3]<1?Vl(Math.round(e[3]*255)):"")},ir.to.rgb=function(){var e=Ia(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},ir.to.rgb.percent=function(){var e=Ia(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},ir.to.hsl=function(){var e=Ia(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},ir.to.hwb=function(){var e=Ia(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},ir.to.keyword=function(e){return Yb[e.slice(0,3)]};function gn(e,t,r){return Math.min(Math.max(t,e),r)}function Vl(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var AY=zb.exports;const Fa=Vb,Gb={};for(const e of Object.keys(Fa))Gb[Fa[e]]=e;const de={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var qb=de;for(const e of Object.keys(de)){if(!("channels"in de[e]))throw new Error("missing channels property: "+e);if(!("labels"in de[e]))throw new Error("missing channel labels property: "+e);if(de[e].labels.length!==de[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=de[e];delete de[e].channels,delete de[e].labels,Object.defineProperty(de[e],"channels",{value:t}),Object.defineProperty(de[e],"labels",{value:r})}de.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=o-i;let s,u;o===i?s=0:t===o?s=(r-n)/a:r===o?s=2+(n-t)/a:n===o&&(s=4+(t-r)/a),s=Math.min(s*60,360),s<0&&(s+=360);const l=(i+o)/2;return o===i?u=0:l<=.5?u=a/(o+i):u=a/(2-o-i),[s,u*100,l*100]},de.rgb.hsv=function(e){let t,r,n,i,o;const a=e[0]/255,s=e[1]/255,u=e[2]/255,l=Math.max(a,s,u),c=l-Math.min(a,s,u),f=function(d){return(l-d)/6/c+1/2};return c===0?(i=0,o=0):(o=c/l,t=f(a),r=f(s),n=f(u),a===l?i=n-r:s===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,l*100]},de.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=de.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,o*100,n*100]},de.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),o=(1-t-i)/(1-i)||0,a=(1-r-i)/(1-i)||0,s=(1-n-i)/(1-i)||0;return[o*100,a*100,s*100,i*100]};function DY(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}de.rgb.keyword=function(e){const t=Gb[e];if(t)return t;let r=1/0,n;for(const i of Object.keys(Fa)){const o=Fa[i],a=DY(e,o);a<r&&(r=a,n=i)}return n},de.keyword.rgb=function(e){return Fa[e]},de.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,a=t*.0193+r*.1192+n*.9505;return[i*100,o*100,a*100]},de.rgb.lab=function(e){const t=de.rgb.xyz(e);let r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*n-16,a=500*(r-n),s=200*(n-i);return[o,a,s]},de.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let i,o,a;if(r===0)return a=n*255,[a,a,a];n<.5?i=n*(1+r):i=n+r-n*r;const s=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)o=t+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?a=s+(i-s)*6*o:2*o<1?a=i:3*o<2?a=s+(i-s)*(2/3-o)*6:a=s,u[l]=a*255;return u},de.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,i=r;const o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;const a=(n+r)/2,s=n===0?2*i/(o+i):2*r/(n+r);return[t,s*100,a*100]},de.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*n*(1-r),s=255*n*(1-r*o),u=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,u,a];case 1:return[s,n,a];case 2:return[a,n,u];case 3:return[a,s,n];case 4:return[u,a,n];case 5:return[n,a,s]}},de.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01);let o,a;a=(2-r)*n;const s=(2-r)*i;return o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]},de.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let o;i>1&&(r/=i,n/=i);const a=Math.floor(6*t),s=1-n;o=6*t-a,a&1&&(o=1-o);const u=r+o*(s-r);let l,c,f;switch(a){default:case 6:case 0:l=s,c=u,f=r;break;case 1:l=u,c=s,f=r;break;case 2:l=r,c=s,f=u;break;case 3:l=r,c=u,f=s;break;case 4:l=u,c=r,f=s;break;case 5:l=s,c=r,f=u;break}return[l*255,c*255,f*255]},de.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),s=1-Math.min(1,n*(1-i)+i);return[o*255,a*255,s*255]},de.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,o,a;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,a=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]},de.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*r-16,o=500*(t-r),a=200*(r-n);return[i,o,a]},de.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let i,o,a;o=(t+16)/116,i=r/500+o,a=o-n/200;const s=o**3,u=i**3,l=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]},de.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);const a=Math.sqrt(r*r+n*n);return[t,a,i]},de.lch.lab=function(e){const t=e[0],r=e[1],i=e[2]/360*2*Math.PI,o=r*Math.cos(i),a=r*Math.sin(i);return[t,o,a]},de.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let o=t===null?de.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(a+=60),a},de.hsv.ansi16=function(e){return de.rgb.ansi16(de.hsv.rgb(e),e[2])},de.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},de.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,i,o]},de.ansi256.rgb=function(e){if(e>=232){const o=(e-232)*10+8;return[o,o,o]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]},de.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r},de.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(s=>s+s).join(""));const n=parseInt(r,16),i=n>>16&255,o=n>>8&255,a=n&255;return[i,o,a]},de.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),a=i-o;let s,u;return a<1?s=o/(1-a):s=0,a<=0?u=0:i===t?u=(r-n)/a%6:i===r?u=2+(n-t)/a:u=4+(t-r)/a,u/=6,u%=1,[u*360,a*100,s*100]},de.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]},de.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]},de.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];const i=[0,0,0],o=t%1*6,a=o%1,s=1-a;let u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]},de.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]},de.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]},de.hcg.hwb=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]},de.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,i=n-t;let o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]},de.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},de.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},de.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},de.gray.hsl=function(e){return[0,0,e[0]]},de.gray.hsv=de.gray.hsl,de.gray.hwb=function(e){return[0,100,e[0]]},de.gray.cmyk=function(e){return[0,0,0,e[0]]},de.gray.lab=function(e){return[e[0],0,0]},de.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},de.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Wl=qb;function $Y(){const e={},t=Object.keys(Wl);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function IY(e){const t=$Y(),r=[e];for(t[e].distance=0;r.length;){const n=r.pop(),i=Object.keys(Wl[n]);for(let o=i.length,a=0;a<o;a++){const s=i[a],u=t[s];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(s))}}return t}function FY(e,t){return function(r){return t(e(r))}}function jY(e,t){const r=[t[e].parent,e];let n=Wl[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=FY(Wl[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var LY=function(e){const t=IY(e),r={},n=Object.keys(t);for(let i=n.length,o=0;o<i;o++){const a=n[o];t[a].parent!==null&&(r[a]=jY(a,t))}return r};const Zd=qb,RY=LY,co={},NY=Object.keys(Zd);function BY(e){const t=function(...r){const n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function zY(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const i=e(r);if(typeof i=="object")for(let o=i.length,a=0;a<o;a++)i[a]=Math.round(i[a]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}NY.forEach(e=>{co[e]={},Object.defineProperty(co[e],"channels",{value:Zd[e].channels}),Object.defineProperty(co[e],"labels",{value:Zd[e].labels});const t=RY(e);Object.keys(t).forEach(n=>{const i=t[n];co[e][n]=zY(i),co[e][n].raw=BY(i)})});var VY=co;const fo=AY,or=VY,Kb=["keyword","gray","hex"],Qd={};for(const e of Object.keys(or))Qd[[...or[e].labels].sort().join("")]=e;const Hl={};function jt(e,t){if(!(this instanceof jt))return new jt(e,t);if(t&&t in Kb&&(t=null),t&&!(t in or))throw new Error("Unknown model: "+t);let r,n;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof jt)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=fo.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,n=or[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(e.length>0){this.model=t||"rgb",n=or[this.model].channels;const i=Array.prototype.slice.call(e,0,n);this.color=Jd(i,n),this.valpha=typeof e[n]=="number"?e[n]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const o=i.sort().join("");if(!(o in Qd))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Qd[o];const{labels:a}=or[this.model],s=[];for(r=0;r<a.length;r++)s.push(e[a[r]]);this.color=Jd(s)}if(Hl[this.model])for(n=or[this.model].channels,r=0;r<n;r++){const i=Hl[this.model][r];i&&(this.color[r]=i(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}jt.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in fo.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const r=t.valpha===1?t.color:[...t.color,this.valpha];return fo.to[t.model](r)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),r=t.valpha===1?t.color:[...t.color,this.valpha];return fo.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=or[this.model],{labels:r}=or[this.model];for(let n=0;n<t;n++)e[r[n]]=this.color[n];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new jt([...this.color.map(HY(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new jt([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:Et("rgb",0,Dt(255)),green:Et("rgb",1,Dt(255)),blue:Et("rgb",2,Dt(255)),hue:Et(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:Et("hsl",1,Dt(100)),lightness:Et("hsl",2,Dt(100)),saturationv:Et("hsv",1,Dt(100)),value:Et("hsv",2,Dt(100)),chroma:Et("hcg",1,Dt(100)),gray:Et("hcg",2,Dt(100)),white:Et("hwb",1,Dt(100)),wblack:Et("hwb",2,Dt(100)),cyan:Et("cmyk",0,Dt(100)),magenta:Et("cmyk",1,Dt(100)),yellow:Et("cmyk",2,Dt(100)),black:Et("cmyk",3,Dt(100)),x:Et("xyz",0,Dt(95.047)),y:Et("xyz",1,Dt(100)),z:Et("xyz",2,Dt(108.833)),l:Et("lab",0,Dt(100)),a:Et("lab",1),b:Et("lab",2),keyword(e){return e!==void 0?new jt(e):or[this.model].keyword(this.color)},hex(e){return e!==void 0?new jt(e):fo.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new jt(e);const t=this.rgb().round().color;let r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),fo.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const i=n/255;t[r]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return jt.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),i=t===void 0?.5:t,o=2*i-1,a=r.alpha()-n.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,u=1-s;return jt.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(const e of Object.keys(or)){if(Kb.includes(e))continue;const{channels:t}=or[e];jt.prototype[e]=function(...r){return this.model===e?new jt(this):r.length>0?new jt(r,e):new jt([...UY(or[this.model][e].raw(this.color)),this.valpha],e)},jt[e]=function(...r){let n=r[0];return typeof n=="number"&&(n=Jd(r,t)),new jt(n,e)}}function WY(e,t){return Number(e.toFixed(t))}function HY(e){return function(t){return WY(t,e)}}function Et(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(Hl[n]||(Hl[n]=[]))[t]=r;return e=e[0],function(n){let i;return n!==void 0?(r&&(n=r(n)),i=this[e](),i.color[t]=n,i):(i=this[e]().color[t],r&&(i=r(i)),i)}}function Dt(e){return function(t){return Math.max(0,Math.min(e,t))}}function UY(e){return Array.isArray(e)?e:[e]}function Jd(e,t){for(let r=0;r<t;r++)typeof e[r]!="number"&&(e[r]=0);return e}var YY=jt;const GY=Sn(YY),it={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},qY={lighter:"#3aa4f2",light:"#7bc2f6",main:"#0E82D8",dark:"#0b61a2",darker:"#07416c",contrastText:"#fff"},KY={lighter:"#D6E4FF",light:"#84A9FF",main:"#3366FF",dark:"#1939B7",darker:"#091A7A",contrastText:"#fff"},XY={lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#fff"},ZY={lighter:"#D8FBDE",light:"#86E8AB",main:"#36B37E",dark:"#1B806A",darker:"#0A5554",contrastText:"#fff"},QY={lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:it[800]},ho={common:{black:"#000",white:"#fff"},primary:qY,secondary:KY,info:XY,success:ZY,warning:QY,error:{lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#fff"},grey:it,divider:W(it[500],.24),action:{hover:W(it[500],.08),selected:W(it[500],.16),disabled:W(it[500],.8),disabledBackground:W(it[500],.24),focus:W(it[500],.24),hoverOpacity:.08,disabledOpacity:.48}},mn=e=>{const t={...ho,mode:"light",text:{primary:it[800],secondary:it[600],disabled:it[500]},background:{paper:"#fff",default:it[100],neutral:it[200]},action:{...ho.action,active:it[600]}},r={...ho,mode:"dark",text:{primary:"#fff",secondary:it[500],disabled:it[600]},background:{paper:it[800],default:it[900],neutral:W(it[500],.16)},action:{...ho.action,active:it[500]}};return e==="light"?t:r},JY=e=>({lighter:Lc(e,.815),light:Lc(e,.225),main:e,dark:jc(e,.15),darker:jc(e,.35)}),eG=e=>GY(e).luminosity()<=.55?"#fff":it[900],tG=e=>{const t=JY(e);return{...ho,primary:{...t,contrastText:eG(t.main)},mode:"light",text:{primary:it[800],secondary:it[600],disabled:it[500]},background:{paper:"#fff",default:it[100],neutral:it[200]},action:{active:it[600],...ho.action}}},Xb=mn("light"),rG=Xb.grey[500],nG=Xb.common.black;function Zb(e,t){const r=W(e,.16);return{z1:`0 1px 2px 0 ${r}`,z4:`0 4px 8px 0 ${r}`,z8:`0 8px 16px 0 ${r}`,z12:`0 12px 24px -4px ${r}`,z16:`0 16px 32px -4px ${r}`,z20:`0 20px 40px -4px ${r}`,z24:`0 24px 48px 0 ${r}`,primary:`0 8px 16px 0 ${W(t||mn("light").primary.main,.24)}`,info:`0 8px 16px 0 ${W(mn("light").info.main,.24)}`,secondary:`0 8px 16px 0 ${W(mn("light").secondary.main,.24)}`,success:`0 8px 16px 0 ${W(mn("light").success.main,.24)}`,warning:`0 8px 16px 0 ${W(mn("light").warning.main,.24)}`,error:`0 8px 16px 0 ${W(mn("light").error.main,.24)}`,card:`0 0 2px 0 ${W(e,.2)}, 0 12px 24px -4px ${W(e,.12)}`,dialog:`-40px 40px 80px -8px ${W(e,.24)}`,dropdown:`0 0 2px 0 ${W(e,.24)}, -20px 20px 40px -4px ${W(e,.24)}`}}const iG=(e,t)=>Zb(e==="light"?rG:nG,t),oG=()=>y.jsx(P.GlobalStyles,{styles:{"*":{boxSizing:"border-box"},html:{margin:0,padding:0,width:"100%",height:"100%",WebkitOverflowScrolling:"touch"},body:{margin:0,padding:0,width:"100%",height:"100%",backgroundColor:"#fff"},"#root":{width:"100%",height:"100%"},input:{"&[type=number]":{MozAppearance:"textfield","&::-webkit-outer-spin-button":{margin:0,WebkitAppearance:"none"},"&::-webkit-inner-spin-button":{margin:0,WebkitAppearance:"none"}},"&[type=search]":{"&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{WebkitAppearance:"none"}}},img:{display:"block",maxWidth:"100%"},ul:{margin:0,padding:0},".SnackbarContainer-root":{transform:"scale(1)",zIndex:"9999 !important",maxHeight:"0 !important","& .MuiCollapse-wrapper":{maxHeight:"0 !important"}}}}),aG=["primary","secondary","info","success","warning","error"];function sG(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="default",o=n.color==="inherit",a=n.variant==="circular",s=n.variant==="extended",u=n.variant==="outlined",l=n.variant==="outlinedExtended",c=n.variant==="soft",f=n.variant==="softExtended",d={"&:hover, &:active":{boxShadow:"none"},...(a||s)&&{...(i||o)&&{color:e.palette.grey[800],boxShadow:e.customShadows.z8,"&:hover":{backgroundColor:e.palette.grey[400]}},...o&&{...!t&&{color:"inherit",backgroundColor:e.palette.grey[800],"&:hover":{backgroundColor:e.palette.grey[700]}}}},...(u||l)&&{boxShadow:"none",backgroundColor:"transparent",...(i||o)&&{border:`solid 1px ${W(e.palette.grey[500],.32)}`,"&:hover":{backgroundColor:e.palette.action.hover}},...i&&{...!t&&{color:e.palette.text.secondary}}},...(c||f)&&{boxShadow:"none",...i&&{color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey[400]}},...o&&{backgroundColor:W(e.palette.grey[500],.08),"&:hover":{backgroundColor:W(e.palette.grey[500],.24)}}}},h=aG.map(v=>({...n.color===v&&{...(a||s)&&{boxShadow:e.customShadows[v],"&:hover":{backgroundColor:e.palette[v].dark}},...(u||l)&&{color:e.palette[v].main,border:`solid 1px ${W(e.palette[v].main,.48)}`,"&:hover":{backgroundColor:W(e.palette[v].main,.08),border:`solid 1px ${e.palette[v].main}`}},...(c||f)&&{color:e.palette[v][t?"dark":"light"],backgroundColor:W(e.palette[v].main,.16),"&:hover":{backgroundColor:W(e.palette[v].main,.32)}}}})),m={"&.Mui-disabled":{...(u||l)&&{backgroundColor:"transparent",border:`solid 1px ${e.palette.action.disabledBackground}`}}},p={...(s||l||f)&&{width:"auto","& svg":{marginRight:e.spacing(1)},...n.size==="small"&&{height:34,minHeight:34,borderRadius:17,padding:e.spacing(0,1)},...n.size==="medium"&&{height:40,minHeight:40,borderRadius:20,padding:e.spacing(0,2)},...n.size==="large"&&{height:48,minHeight:48,borderRadius:24,padding:e.spacing(0,2)}}};return[...h,d,m,p]};return{MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function lG(e){return{MuiCard:{styleOverrides:{root:{position:"relative",boxShadow:e.customShadows.card,borderRadius:Number(e.shape.borderRadius)*2,zIndex:0}}},MuiCardHeader:{defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:e.spacing(.5)}},styleOverrides:{root:{padding:e.spacing(3,3,0)}}},MuiCardContent:{styleOverrides:{root:{padding:e.spacing(3)}}}}}function uG(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L12,10.59 L13.29,9.29 C13.6821222,8.89787783 14.3178778,8.89787783 14.71,9.29 C15.1021222,9.68212217 15.1021222,10.3178778 14.71,10.71 L13.41,12 L14.71,13.29 Z"})})}function Qb(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"})})}function cG(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M13,16 C13,16.5522847 12.5522847,17 12,17 C11.4477153,17 11,16.5522847 11,16 L11,11 C11,10.4477153 11.4477153,10 12,10 C12.5522847,10 13,10.4477153 13,11 L13,16 Z M12,9 C11.4477153,9 11,8.55228475 11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 C13,8.55228475 12.5522847,9 12,9 Z"})})}function fG(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M22.56,16.3 L14.89,3.58 C14.2597186,2.59400001 13.1702353,1.99737652 12,1.99737652 C10.8297647,1.99737652 9.74028139,2.59400001 9.11,3.58 L1.44,16.3 C0.888546003,17.2192471 0.869485343,18.3628867 1.39,19.3 C1.99197363,20.3551378 3.11522982,21.0046397 4.33,21 L19.67,21 C20.8765042,21.0128744 21.9978314,20.3797441 22.61,19.34 C23.146086,18.3926382 23.1269508,17.2292197 22.56,16.3 L22.56,16.3 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,9 C11,8.44771525 11.4477153,8 12,8 C12.5522847,8 13,8.44771525 13,9 L13,13 Z"})})}function dG(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M16.3,9.61 L11.73,15.61 C11.5412074,15.855247 11.2494966,15.9992561 10.94,16.0000145 C10.6322197,16.001658 10.3408221,15.861492 10.15,15.62 L7.71,12.51 C7.49028166,12.2277602 7.43782669,11.8497415 7.57239438,11.5183399 C7.70696206,11.1869384 8.00810836,10.9525017 8.36239438,10.9033399 C8.7166804,10.8541782 9.07028166,10.9977602 9.29,11.28 L10.92,13.36 L14.7,8.36 C14.917932,8.07418751 15.2717886,7.92635122 15.6282755,7.97217964 C15.9847624,8.01800806 16.2897207,8.25053875 16.4282755,8.58217966 C16.5668304,8.91382056 16.517932,9.29418753 16.3,9.58 L16.3,9.61 Z"})})}function hG(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 L13,13 Z"})})}function pG(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})})}function gG(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})})}function mG(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})})}function vG(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Z"})})}function yG(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"})})}function bG(e){return y.jsx(P.SvgIcon,{...e,sx:{right:12,fontSize:16,position:"absolute",pointerEvents:"none"},children:y.jsx("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})})}function xG(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M12,8 C12.5522847,8 13,8.44771525 13,9 L13,9 L13,11 L15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L13,13 L13,15 C13,15.5522847 12.5522847,16 12,16 C11.4477153,16 11,15.5522847 11,15 L11,15 L11,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 L11,11 L11,9 C11,8.44771525 11.4477153,8 12,8 Z"})})}function wG(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 Z"})})}function CG(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M14,8.99420168 C14.2666375,8.99420168 14.5222334,9.10068735 14.71,9.29 C14.8993127,9.4777666 15.0057983,9.73336246 15.0057983,10 C15.0057983,10.2666375 14.8993127,10.5222334 14.71,10.71 L14.71,10.71 L13.41,12 L14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L10.71,9.29 L12,10.59 L13.29,9.29 C13.4777666,9.10068735 13.7333625,8.99420168 14,8.99420168 Z"})})}const SG=["primary","secondary","info","success","warning","error"];function EG(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="default",o=n.variant==="filled",a=n.variant==="outlined",s=n.variant==="soft",u={...i&&{"& .MuiChip-avatar":{color:e.palette.text[t?"secondary":"primary"],backgroundColor:W(e.palette.grey[500],.48)},...a&&{border:`solid 1px ${W(e.palette.grey[500],.32)}`},...s&&{color:e.palette.text.primary,backgroundColor:W(e.palette.grey[500],.16),"&:hover":{backgroundColor:W(e.palette.grey[500],.32)}}}};return[...SG.map(c=>({...n.color===c&&{"& .MuiChip-avatar":{color:e.palette[c].lighter,backgroundColor:e.palette[c].dark},...o&&{"& .MuiChip-deleteIcon":{color:W(e.palette[c].contrastText,.56),"&:hover":{color:e.palette[c].contrastText}}},...s&&{color:e.palette[c][t?"dark":"light"],backgroundColor:W(e.palette[c].main,.16),"&:hover":{backgroundColor:W(e.palette[c].main,.32)},"& .MuiChip-deleteIcon":{color:W(e.palette[c][t?"dark":"light"],.48),"&:hover":{color:e.palette[c].dark}}}}})),u]};return{MuiChip:{defaultProps:{deleteIcon:y.jsx(uG,{})},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function TG(e){return{MuiTabs:{defaultProps:{textColor:"inherit",allowScrollButtonsMobile:!0,variant:"scrollable"},styleOverrides:{scrollButtons:{width:48,borderRadius:"50%"}}},MuiTab:{defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:({ownerState:t})=>({padding:0,opacity:1,minWidth:48,fontWeight:e.typography.fontWeightMedium,"&:not(:last-of-type)":{marginRight:e.spacing(3),[e.breakpoints.up("sm")]:{marginRight:e.spacing(5)}},"&:not(.Mui-selected)":{color:e.palette.text.secondary},...(t.iconPosition==="start"||t.iconPosition==="end")&&{minHeight:48}})}}}}function kG(e){return{MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}}}}function _G(e){return{MuiLink:{defaultProps:{underline:"hover"}}}}function OG(e){return{MuiListItemIcon:{styleOverrides:{root:{color:"inherit",minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemAvatar:{styleOverrides:{root:{minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemText:{styleOverrides:{root:{marginTop:0,marginBottom:0},multiline:{marginTop:0,marginBottom:0}}}}}function MG(e){return{MuiTableContainer:{styleOverrides:{root:{position:"relative"}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}},MuiTableCell:{styleOverrides:{root:{borderBottom:"none"},head:{color:e.palette.text.secondary,backgroundColor:e.palette.background.neutral},stickyHeader:{backgroundColor:e.palette.background.paper,backgroundImage:`linear-gradient(to bottom, ${e.palette.background.neutral} 0%, ${e.palette.background.neutral} 100%)`},paddingCheckbox:{paddingLeft:e.spacing(1)}}},MuiTablePagination:{defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"},SelectProps:{MenuProps:{MenuListProps:{sx:{"& .MuiMenuItem-root":{...e.typography.body2}}}}}},styleOverrides:{root:{borderTop:`solid 1px ${e.palette.divider}`},toolbar:{height:64},actions:{marginRight:e.spacing(1)},select:{"&:focus":{borderRadius:e.shape.borderRadius}}}}}}const PG=["info","success","warning","error"];function AG(e){const t=e.palette.mode==="light",r=n=>{const i=n.variant==="standard",o=n.variant==="filled",a=n.variant==="outlined";return[...PG.map(u=>({...n.severity===u&&{...i&&{color:e.palette[u][t?"darker":"lighter"],backgroundColor:e.palette[u][t?"lighter":"darker"],"& .MuiAlert-icon":{color:e.palette[u][t?"main":"light"]}},...o&&{color:e.palette[u].contrastText,backgroundColor:e.palette[u].main},...a&&{color:e.palette[u][t?"dark":"light"],border:`solid 1px ${e.palette[u].main}`,"& .MuiAlert-icon":{color:e.palette[u].main}}}}))]};return{MuiAlert:{defaultProps:{iconMapping:{info:y.jsx(cG,{}),success:y.jsx(dG,{}),warning:y.jsx(fG,{}),error:y.jsx(hG,{})}},styleOverrides:{root:({ownerState:n})=>r(n),icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5)}}}}}function DG(e){return{MuiBadge:{styleOverrides:{dot:{width:10,height:10,borderRadius:"50%"}}}}}function $G(e){return{MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"}}}}}function IG(e){return{MuiInputBase:{styleOverrides:{root:{"&.Mui-disabled":{"& svg":{color:e.palette.text.disabled}}},input:{"&::placeholder":{opacity:1,color:e.palette.text.disabled}}}},MuiInput:{styleOverrides:{underline:{"&:before":{borderBottomColor:W(e.palette.grey[500],.56)},"&:after":{borderBottomColor:e.palette.text.primary}}}},MuiTextField:{styleOverrides:{root:{"& .MuiInputLabel-root.Mui-focused":{color:e.palette.text.primary}}}},MuiFilledInput:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:W(e.palette.grey[500],.08),"&:hover":{backgroundColor:W(e.palette.grey[500],.16)},"&.Mui-focused":{backgroundColor:W(e.palette.grey[500],.16)},"&.Mui-disabled":{backgroundColor:e.palette.action.disabledBackground}},underline:{"&:before, :after":{display:"none"}}}},MuiOutlinedInput:{styleOverrides:{root:{"& .MuiOutlinedInput-notchedOutline":{borderColor:W(e.palette.grey[500],.32)},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderWidth:1,borderColor:e.palette.text.primary}},"&.Mui-disabled":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.action.disabledBackground}}}}}}}function FG(e){return{MuiRadio:{defaultProps:{icon:y.jsx(vG,{}),checkedIcon:y.jsx(yG,{})},styleOverrides:{root:({ownerState:t})=>({padding:e.spacing(1),...t.size==="small"&&{"& svg":{width:20,height:20}},...t.size==="medium"&&{"& svg":{width:24,height:24}}})}}}}function jG(e){const t=e.palette.mode==="light";return{MuiDrawer:{styleOverrides:{root:({ownerState:r})=>({...r.variant==="temporary"&&{"& .MuiDrawer-paper":{boxShadow:`-40px 40px 80px -8px ${W(t?e.palette.grey[500]:e.palette.common.black,.24)}`}}})}}}}function LG(e){return{MuiDialog:{styleOverrides:{paper:{boxShadow:e.customShadows.dialog,"&.MuiPaper-rounded":{borderRadius:Number(e.shape.borderRadius)*2},"&.MuiDialog-paperFullScreen":{borderRadius:0},"&.MuiDialog-paper .MuiDialogActions-root":{padding:e.spacing(3)},"@media (max-width: 600px)":{margin:e.spacing(2)},"@media (max-width: 663.95px)":{"&.MuiDialog-paperWidthSm.MuiDialog-paperScrollBody":{maxWidth:"100%"}}},paperFullWidth:{width:"100%"}}},MuiDialogTitle:{styleOverrides:{root:{padding:e.spacing(3)}}},MuiDialogContent:{styleOverrides:{root:{padding:e.spacing(0,3)},dividers:{borderTop:0,borderBottomStyle:"dashed",paddingBottom:e.spacing(3)}}},MuiDialogActions:{styleOverrides:{root:{"& > :not(:first-of-type)":{marginLeft:e.spacing(1.5)}}}}}}function RG(e){return{MuiAvatar:{styleOverrides:{colorDefault:{color:e.palette.text.secondary,backgroundColor:W(e.palette.grey[500],.24)}}},MuiAvatarGroup:{defaultProps:{max:4},styleOverrides:{root:{justifyContent:"flex-end"},avatar:{fontSize:16,fontWeight:e.typography.fontWeightMedium,"&:first-of-type":{fontSize:12,color:e.palette.primary.main,backgroundColor:e.palette.primary.lighter}}}}}}function NG(e){return{MuiRating:{defaultProps:{emptyIcon:y.jsx(Qb,{}),icon:y.jsx(Qb,{})},styleOverrides:{root:{"&.Mui-disabled":{opacity:.48}},iconEmpty:{color:W(e.palette.grey[500],.48)},sizeSmall:{"& svg":{width:20,height:20}},sizeLarge:{"& svg":{width:28,height:28}}}}}}function BG(e){const t=e.palette.mode==="light";return{MuiSlider:{defaultProps:{size:"small"},styleOverrides:{root:{"&.Mui-disabled":{color:e.palette.action.disabled}},rail:{opacity:.32},markLabel:{fontSize:13,color:e.palette.text.disabled},valueLabel:{borderRadius:8,backgroundColor:e.palette.grey[t?800:700]}}}}}const zG=["primary","secondary","info","success","warning","error"];function VG(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="inherit",o=n.variant==="contained",a=n.variant==="outlined",s=n.variant==="text",u=n.variant==="soft",l=n.size==="small",c=n.size==="large",f={textTransform:"none",...i&&{...o&&{color:e.palette.grey[800],"&:hover":{boxShadow:e.customShadows.z8,backgroundColor:e.palette.grey[400]}},...a&&{borderColor:W(e.palette.grey[500],.32),"&:hover":{borderColor:e.palette.text.primary,backgroundColor:e.palette.action.hover}},...s&&{"&:hover":{backgroundColor:e.palette.action.hover}},...u&&{color:e.palette.text.primary,backgroundColor:W(e.palette.grey[500],.08),"&:hover":{backgroundColor:W(e.palette.grey[500],.24)}}}},d=zG.map(p=>({...n.color===p&&{...o&&{"&:hover":{boxShadow:e.customShadows[p]}},...u&&{color:e.palette[p][t?"dark":"light"],backgroundColor:W(e.palette[p].main,.16),"&:hover":{backgroundColor:W(e.palette[p].main,.32)}}}})),h={"&.Mui-disabled":{...u&&{backgroundColor:e.palette.action.disabledBackground}}},m={...l&&{height:30,fontSize:13,...u&&{padding:"4px 10px"}},...c&&{height:48,fontSize:15,...u&&{padding:"8px 22px"}}};return[...d,f,h,m]};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function WG(e){const t=e.palette.mode==="light",r=n=>({padding:"9px 13px 9px 12px",width:58,height:38,...n.size==="small"&&{padding:"4px 8px 4px 7px",width:40,height:24},"& .MuiSwitch-thumb":{width:14,height:14,boxShadow:"none",color:`${e.palette.common.white} !important`,...n.size==="small"&&{width:10,height:10}},"& .MuiSwitch-track":{opacity:1,borderRadius:14,backgroundColor:W(e.palette.grey[500],.48)},"& .MuiSwitch-switchBase":{left:3,padding:12,...n.size==="small"&&{padding:7},"&.Mui-checked":{transform:"translateX(13px)","&+.MuiSwitch-track":{opacity:1},...n.size==="small"&&{transform:"translateX(9px)"}},"&.Mui-disabled":{"& .MuiSwitch-thumb":{opacity:t?1:.48},"&+.MuiSwitch-track":{opacity:.48}}}});return{MuiSwitch:{styleOverrides:{root:({ownerState:n})=>r(n)}}}}function HG(e){return{MuiSelect:{defaultProps:{IconComponent:bG}}}}function UG(e){return{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}}}function YG(e){const t=e.palette.mode==="light";return{MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.palette.grey[t?800:700]},arrow:{color:e.palette.grey[t?800:700]}}}}}function GG(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5}}}}}function qG(e){return{MuiStepConnector:{styleOverrides:{line:{borderColor:e.palette.divider}}}}}function KG(e){return{MuiDataGrid:{styleOverrides:{root:{borderRadius:0,border:"none","& .clickable-row":{cursor:"pointer"},"& .no-clickable-row .clickable-row":{cursor:"initial"},"& .no-clickable-row .clickable-row:hover":{backgroundColor:"initial"},"&.simple":{"& .MuiDataGrid-columnHeaders":{color:e.palette.text.secondary,backgroundColor:"#fff",borderBottom:"none",borderRadius:0},"& .MuiDataGrid-columnHeaderTitle":{fontWeight:700,fontSize:11}},"& .MuiTablePagination-root":{borderTop:0},"& .MuiDataGrid-columnHeader, & .MuiDataGrid-cell":{padding:"0 16px"},"& .MuiDataGrid-columnHeaders":{color:e.palette.text.secondary,backgroundColor:e.palette.background.neutral,borderRadius:0},"& .MuiDataGrid-pinnedColumnHeaders":{backgroundColor:"inherit",boxShadow:"none"},"& .MuiDataGrid-pinnedColumns--right":{backgroundColor:"#fff",boxShadow:"-2px 0px 4px -2px rgba(0, 0, 0, 0.075)"},"& .MuiDataGrid-pinnedColumns--left":{backgroundColor:"#fff",boxShadow:"2px 0px 4px -2px rgba(0, 0, 0, 0.071)"},"& .MuiDataGrid-columnHeader--moving":{backgroundColor:e.palette.background.neutral},"& .MuiDataGrid-columnHeaderCheckbox":{width:"64px !important",minWidth:"64px !important",maxWidth:"64px !important"},"& .MuiDataGrid-cellCheckbox":{width:"64px !important",minWidth:"64px !important",maxWidth:"64px !important"},"& .MuiDataGrid-pinnedRows":{boxShadow:"none",fontWeight:"bold"},"& .hide-checkbox-select-all div":{display:"none !important"},"& .MuiDataGrid-cell, .MuiDataGrid-columnsContainer":{border:"none"},"& .MuiDataGrid-columnSeparator":{color:e.palette.divider},"& .MuiDataGrid-columnSeparator:hover":{color:e.palette.primary.main},'& .MuiDataGrid-cell[data-field="__check__"]':{padding:0},'& .MuiDataGrid-columnHeader[data-field="__check__"]':{padding:0},"& .MuiDataGrid-columnHeader:focus, .MuiDataGrid-cell:focus, .MuiDataGrid-columnHeader:focus-within, .MuiDataGrid-cell:focus-within":{outline:"none"}},toolbarContainer:{padding:e.spacing(2),backgroundColor:e.palette.background.paper,borderTop:`solid 1px ${e.palette.divider}`,"& .MuiButton-root":{marginRight:e.spacing(1.5),color:e.palette.text.secondary,"&:hover":{backgroundColor:e.palette.action.hover}}},paper:{boxShadow:e.customShadows.dropdown},menu:{"& .MuiPaper-root":{boxShadow:e.customShadows.dropdown,padding:8,borderRadius:12},"& .MuiMenuItem-root":{borderRadius:8,...e.typography.body2,"& .MuiListItemIcon-root":{minWidth:"auto",color:e.palette.primary.main},"& .MuiListItemText-primary":{fontSize:14}}},panelFooter:{padding:e.spacing(2),justifyContent:"flex-end",borderTop:`1px solid ${e.palette.divider}`,"& .MuiButton-root":{"&:first-of-type":{marginRight:e.spacing(1.5),color:e.palette.text.primary,"&:hover":{backgroundColor:e.palette.action.hover}},"&:last-of-type":{color:e.palette.common.white,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark}}}},filterForm:{padding:e.spacing(1.5,0),"& .MuiFormControl-root":{margin:e.spacing(0,.5)},"& .MuiInput-root":{marginTop:e.spacing(3),"&::before, &::after":{display:"none"},"& .MuiNativeSelect-select, .MuiInput-input":{...e.typography.body2,padding:e.spacing(.75,1),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.neutral},"& .MuiSvgIcon-root":{right:4}}}}}}}function XG(e){return{MuiSkeleton:{defaultProps:{animation:"wave"},styleOverrides:{root:{backgroundColor:e.palette.background.neutral}}}}}function ZG(e){return{MuiBackdrop:{styleOverrides:{root:{backgroundColor:W(e.palette.grey[800],.8)},invisible:{background:"transparent"}}}}}const QG=["primary","secondary","info","success","warning","error"];function JG(e){const t=r=>{const n=r.variant==="buffer",i={borderRadius:4,"& .MuiLinearProgress-bar":{borderRadius:4},...n&&{backgroundColor:"transparent"}};return[...QG.map(a=>({...r.color===a&&{backgroundColor:P.alpha(e.palette[a].main,.24)}})),i]};return{MuiLinearProgress:{styleOverrides:{root:({ownerState:r})=>t(r)}}}}function eq(e){return{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:e.palette.divider}}}}}function tq(e){return{MuiTreeView:{defaultProps:{defaultCollapseIcon:y.jsx(xG,{sx:{width:20,height:20}}),defaultExpandIcon:y.jsx(wG,{sx:{width:20,height:20}}),defaultEndIcon:y.jsx(CG,{sx:{color:"text.secondary",width:20,height:20}})}},MuiTreeItem:{styleOverrides:{label:{...e.typography.body2},iconContainer:{width:"auto"}}}}}function rq(e){return{MuiCheckbox:{defaultProps:{icon:y.jsx(pG,{}),checkedIcon:y.jsx(gG,{}),indeterminateIcon:y.jsx(mG,{})},styleOverrides:{root:({ownerState:t})=>({padding:e.spacing(1),...t.size==="small"&&{"& svg":{width:20,height:20}},...t.size==="medium"&&{"& svg":{width:24,height:24}}})}}}}function nq(e){return{MuiAccordion:{styleOverrides:{root:{backgroundColor:"transparent","&.Mui-expanded":{boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper},"&.Mui-disabled":{backgroundColor:"transparent"}}}},MuiAccordionSummary:{styleOverrides:{root:{paddingLeft:e.spacing(2),paddingRight:e.spacing(1),"&.Mui-disabled":{opacity:1,color:e.palette.action.disabled,"& .MuiTypography-root":{color:"inherit"}}},expandIconWrapper:{color:"inherit"}}}}}function iq(e){return{MuiTypography:{styleOverrides:{paragraph:{marginBottom:e.spacing(2)},gutterBottom:{marginBottom:e.spacing(1)}}}}}const oq=["primary","secondary","info","success","warning","error"];function aq(e){const t=e.palette.mode==="light",r=n=>{const i=n.variant==="outlined",o=n.variant==="soft",a={"& .MuiPaginationItem-root":{...i&&{borderColor:W(e.palette.grey[500],.32)},"&.Mui-selected":{fontWeight:e.typography.fontWeightMedium}}};return[...oq.map(u=>({...n.color===u&&{...o&&{"& .MuiPaginationItem-root":{"&.Mui-selected":{color:e.palette[u][t?"dark":"light"],backgroundColor:W(e.palette[u].main,.16),"&:hover":{backgroundColor:W(e.palette[u].main,.32)}}}}}})),a]};return{MuiPagination:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function sq(e){return{MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},li:{display:"inline-flex",margin:e.spacing(.25,0),"& > *":{...e.typography.body2}}}}}}const lq=["primary","secondary","info","success","warning","error"];function uq(e){const t=r=>{const n=r.color==="inherit",i=r.variant==="contained",o=r.variant==="outlined",a=r.variant==="text",s=r.variant==="soft",u=r.orientation==="horizontal",l=r.orientation==="vertical",c={"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!o&&{borderStyle:"solid",...n&&{borderColor:W(e.palette.grey[500],.32)},...u&&{borderWidth:"0px 1px 0px 0px"},...l&&{borderWidth:"0px 0px 1px 0px"}}}}},f=lq.map(h=>({"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!o&&{...r.color===h&&{...i&&{borderColor:W(e.palette[h].dark,.48)},...a&&{borderColor:W(e.palette[h].main,.48)},...s&&{borderColor:W(e.palette[h].dark,.24)}}}}}})),d={"& .MuiButtonGroup-grouped.Mui-disabled":{"&:not(:last-of-type)":{borderColor:e.palette.action.disabledBackground}}};return[...f,c,d]};return{MuiButtonGroup:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:r})=>t(r)}}}}function cq(e){return{MuiAutocomplete:{styleOverrides:{root:{"& span.MuiAutocomplete-tag":{...e.typography.body2,width:24,height:24,lineHeight:"24px",textAlign:"center",borderRadius:e.shape.borderRadius,backgroundColor:W(e.palette.grey[500],.16)}},paper:{boxShadow:e.customShadows.dropdown},listbox:{padding:e.spacing(0,1)},option:{...e.typography.body2,padding:e.spacing(1),margin:e.spacing(.75,0),borderRadius:e.shape.borderRadius}}}}}const fq=["primary","secondary","info","success","warning","error"];function dq(e){const t=r=>{const i={...r.color==="standard"&&{"&.Mui-selected":{borderColor:"inherit"}}},o=fq.map(s=>({...r.color===s&&{"&:hover":{borderColor:W(e.palette[s].main,.48),backgroundColor:W(e.palette[s].main,e.palette.action.hoverOpacity)},"&.Mui-selected":{borderColor:e.palette[s].main}}})),a={"&.Mui-disabled":{"&.Mui-selected":{color:e.palette.action.disabled,backgroundColor:e.palette.action.selected,borderColor:e.palette.action.disabledBackground}}};return[...o,i,a]};return{MuiToggleButton:{styleOverrides:{root:({ownerState:r})=>t(r)}},MuiToggleButtonGroup:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:`solid 1px ${W(e.palette.grey[500],.16)}`},grouped:{margin:4,borderColor:"transparent !important",borderRadius:`${e.shape.borderRadius}px !important`}}}}}function hq(e){return{MuiFormControlLabel:{styleOverrides:{label:{...e.typography.body2}}},MuiFormHelperText:{defaultProps:{component:"div"},styleOverrides:{root:{marginTop:e.spacing(1)}}},MuiFormLabel:{styleOverrides:{root:{color:e.palette.text.disabled}}}}}function pq(e){return{MuiLoadingButton:{variants:[{props:{loading:!0,loadingPosition:"start",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorStart":{left:10}}},{props:{loading:!0,loadingPosition:"end",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorEnd":{right:10}}}],styleOverrides:{loadingIndicatorStart:{left:14},loadingIndicatorEnd:{right:14}}}}}function gq(e){return Object.assign(sG(e),TG(e),EG(e),lG(e),kG(e),_G(),IG(e),FG(e),DG(),OG(e),MG(e),$G(),AG(e),WG(e),HG(),VG(e),NG(e),LG(e),RG(e),BG(e),jG(e),qG(e),YG(e),GG(e),UG(),rq(e),KG(e),XG(e),eq(e),tq(e),ZG(e),JG(e),nq(e),iq(e),aq(e),uq(e),sq(e),cq(e),hq(e),dq(e),pq())}const Jb=mn("light"),mq=Jb.grey[500],vq=Jb.common.black;function e2(e){const t=W(e,.2),r=W(e,.14),n=W(e,.12);return["none",`0px 2px 1px -1px ${t},0px 1px 1px 0px ${r},0px 1px 3px 0px ${n}`,`0px 3px 1px -2px ${t},0px 2px 2px 0px ${r},0px 1px 5px 0px ${n}`,`0px 3px 3px -2px ${t},0px 3px 4px 0px ${r},0px 1px 8px 0px ${n}`,`0px 2px 4px -1px ${t},0px 4px 5px 0px ${r},0px 1px 10px 0px ${n}`,`0px 3px 5px -1px ${t},0px 5px 8px 0px ${r},0px 1px 14px 0px ${n}`,`0px 3px 5px -1px ${t},0px 6px 10px 0px ${r},0px 1px 18px 0px ${n}`,`0px 4px 5px -2px ${t},0px 7px 10px 1px ${r},0px 2px 16px 1px ${n}`,`0px 5px 5px -3px ${t},0px 8px 10px 1px ${r},0px 3px 14px 2px ${n}`,`0px 5px 6px -3px ${t},0px 9px 12px 1px ${r},0px 3px 16px 2px ${n}`,`0px 6px 6px -3px ${t},0px 10px 14px 1px ${r},0px 4px 18px 3px ${n}`,`0px 6px 7px -4px ${t},0px 11px 15px 1px ${r},0px 4px 20px 3px ${n}`,`0px 7px 8px -4px ${t},0px 12px 17px 2px ${r},0px 5px 22px 4px ${n}`,`0px 7px 8px -4px ${t},0px 13px 19px 2px ${r},0px 5px 24px 4px ${n}`,`0px 7px 9px -4px ${t},0px 14px 21px 2px ${r},0px 5px 26px 4px ${n}`,`0px 8px 9px -5px ${t},0px 15px 22px 2px ${r},0px 6px 28px 5px ${n}`,`0px 8px 10px -5px ${t},0px 16px 24px 2px ${r},0px 6px 30px 5px ${n}`,`0px 8px 11px -5px ${t},0px 17px 26px 2px ${r},0px 6px 32px 5px ${n}`,`0px 9px 11px -5px ${t},0px 18px 28px 2px ${r},0px 7px 34px 6px ${n}`,`0px 9px 12px -6px ${t},0px 19px 29px 2px ${r},0px 7px 36px 6px ${n}`,`0px 10px 13px -6px ${t},0px 20px 31px 3px ${r},0px 8px 38px 7px ${n}`,`0px 10px 13px -6px ${t},0px 21px 33px 3px ${r},0px 8px 40px 7px ${n}`,`0px 10px 14px -6px ${t},0px 22px 35px 3px ${r},0px 8px 42px 7px ${n}`,`0px 11px 14px -7px ${t},0px 23px 36px 3px ${r},0px 9px 44px 8px ${n}`,`0px 11px 15px -7px ${t},0px 24px 38px 3px ${r},0px 9px 46px 8px ${n}`]}const yq=e=>e2(e==="light"?mq:vq);function Bt(e){return`${e/16}rem`}function po({sm:e,md:t,lg:r}){return{"@media (min-width:600px)":{fontSize:Bt(e)},"@media (min-width:900px)":{fontSize:Bt(t)},"@media (min-width:1200px)":{fontSize:Bt(r)}}}const bq={fontFamily:"Public Sans, sans-serif",fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,h1:{fontWeight:800,lineHeight:80/64,fontSize:Bt(40),...po({sm:52,md:58,lg:64})},h2:{fontWeight:800,lineHeight:64/48,fontSize:Bt(32),...po({sm:40,md:44,lg:48})},h3:{fontWeight:700,lineHeight:1.5,fontSize:Bt(24),...po({sm:26,md:30,lg:32})},h4:{fontWeight:700,lineHeight:1.5,fontSize:Bt(20),...po({sm:20,md:24,lg:24})},h5:{fontWeight:700,lineHeight:1.5,fontSize:Bt(18),...po({sm:19,md:20,lg:20})},h6:{fontWeight:700,lineHeight:28/18,fontSize:Bt(17),...po({sm:18,md:18,lg:18})},subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:Bt(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:Bt(14)},body1:{lineHeight:1.5,fontSize:Bt(16)},body2:{lineHeight:22/14,fontSize:Bt(14)},caption:{lineHeight:1.5,fontSize:Bt(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:Bt(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:Bt(14),textTransform:"capitalize"}},t2=({children:e,color:t,direction:r="ltr",themeMode:n="light"})=>{const i=g.useMemo(()=>({palette:tG(t),typography:bq,shape:{borderRadius:8},direction:r,shadows:yq(n),customShadows:iG(n,t)}),[t,r,n]),o=Jg(i);return o.components=gq(o),y.jsx(Dg,{injectFirst:!0,children:y.jsxs(tm,{theme:o,children:[y.jsx(P.CssBaseline,{}),y.jsx(oG,{}),e]})})},GQ="",qQ="",xq=({themeColor:e,children:t})=>y.jsx(So.LocalizationProvider,{dateAdapter:HU,adapterLocale:TY,children:y.jsx(t2,{color:e,children:y.jsx(Ak,{children:t})})}),go=e=>e&&e.charAt(0).toUpperCase(),wq=e=>["A","N","H","L","Q"].includes(go(e))?"primary":["F","G","T","I","J"].includes(go(e))?"info":["K","D","Y","B","O"].includes(go(e))?"success":["P","E","R","S","U"].includes(go(e))?"warning":["V","W","X","M","Z"].includes(go(e))?"error":"default",r2=g.forwardRef(({color:e,name:t="",BadgeProps:r,children:n,sx:i,...o},a)=>{var d,h;const s=An(),u=go(t),l=wq(t),c=e||l,f=c==="default"?y.jsxs(P.Avatar,{ref:a,sx:i,...o,children:[t&&u,n]}):y.jsxs(P.Avatar,{ref:a,sx:{color:(d=s.palette[c])==null?void 0:d.contrastText,backgroundColor:(h=s.palette[c])==null?void 0:h.main,fontWeight:s.typography.fontWeightMedium,...i},...o,children:[t&&u,n]});return r?y.jsx(P.Badge,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},...r,children:f}):f});r2.displayName="CustomAvatar";const vn={tiny:24,small:32,medium:40,large:56},n2=g.forwardRef(({size:e="small",compact:t,max:r,children:n,sx:i,...o},a)=>{const s=e==="tiny",u=e==="small",l=e==="medium",c=e==="large",f={width:40,height:40,position:"relative","& .MuiAvatarGroup-avatar":{m:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}};return y.jsx(P.AvatarGroup,{ref:a,max:t?3:r,spacing:(s||u)&&"medium"||"small",sx:{"& .MuiAvatar-root":{...c&&{width:vn.large,height:vn.large,"&:first-of-type":{fontSize:16}},...l&&{width:vn.medium,height:vn.medium},...u&&{width:vn.small,height:vn.small},...s&&{width:vn.tiny,height:vn.tiny}},...t&&{...f},...i},...o,children:n})});n2.displayName="CustomAvatarGroup";const i2=P.styled(P.Box)({display:"flex",flexDirection:"row",alignItems:"center",padding:"0 16px"}),Cq=()=>{const e=ii.useGridApiContext(),{rowHeight:t,paginationModel:r}=ii.useGridRootProps(),n=(r==null?void 0:r.pageSize)||12,i=ii.gridColumnsTotalWidthSelector(e),o=ii.gridColumnPositionsSelector(e),a=g.useMemo(()=>o.filter(l=>l<=i).length,[i,o]),s=e.current.getVisibleColumns().slice(0,a),u=g.useMemo(()=>{const l=[];for(let c=0;c<n;c+=1){for(const f of s)l.push(y.jsx(i2,{sx:{justifyContent:f.align,minWidth:f.cellClassName==="MuiDataGrid-cellCheckbox"?64:void 0},children:y.jsx(P.Skeleton,{width:"100%"})},`column-${c}-${f.field}`));l.push(y.jsx(i2,{},`fill-${c}`))}return l},[n,s]);return y.jsx("div",{style:{display:"grid",gridTemplateColumns:`${s.map(({computedWidth:l})=>`${l}px`).join(" ")} 1fr`,gridAutoRows:t},children:u})},Sq=({columns:e,...t})=>{const r=[{...ii.GRID_CHECKBOX_SELECTION_COL_DEF,width:71},...e],n=g.useCallback(i=>({bottom:i.isLastVisible?0:8}),[]);return y.jsx(ii.DataGridPremium,{columns:r,autoHeight:!0,rowHeight:72,getRowSpacing:n,slots:{loadingOverlay:Cq},localeText:{actionsCellMore:"Ações",aggregationFunctionLabelAvg:"Média",aggregationFunctionLabelMax:"Máx",aggregationFunctionLabelMin:"Mín",aggregationFunctionLabelSize:"Quantidade",aggregationFunctionLabelSum:"Soma",aggregationMenuItemHeader:"Agregação",booleanCellFalseLabel:"Ativos",booleanCellTrueLabel:"Inativos",checkboxSelectionHeaderName:"Coluna se Seleção",columnHeaderFiltersLabel:"Filtro",columnMenuFilter:"Filtrar",columnMenuHideColumn:"Ocultar coluna",columnMenuLabel:"Colunas",columnMenuManageColumns:"Gerenciar colunas",columnsPanelHideAllButton:"Ocultar todas",columnsPanelShowAllButton:"Mostar todas",columnsPanelTextFieldLabel:"Buscar coluna",columnsPanelTextFieldPlaceholder:"Digite o nome da coluna",filterPanelAddFilter:"Adicionar filtro",filterPanelColumns:"Colunas",filterPanelDeleteIconLabel:"Remover",filterPanelInputLabel:"Filtro",filterPanelInputPlaceholder:"Valor do filtro",filterPanelLogicOperator:"Condição",filterPanelOperator:"Condição",filterPanelOperatorAnd:"e",filterPanelOperatorOr:"ou",filterPanelRemoveAll:"Remover todos",groupColumn:i=>`Agrupar por ${i}`,groupingColumnHeaderName:"Grupo",pinToLeft:"Fixar na esquerda",pinToRight:"Fixar na direita",toolbarColumns:"Colunas",toolbarDensity:"Densidade",toolbarDensityComfortable:"Confortável",toolbarDensityCompact:"Compacto",toolbarDensityStandard:"Padrão",toolbarExport:"Exportar",toolbarExportCSV:"Exportar como CSV",toolbarExportExcel:"Exportar como Excel",toolbarExportLabel:"Exportar",toolbarExportPrint:"Imprimir",toolbarFilters:"Filtros",unGroupColumn:i=>`Parar de agrupar por ${i}`,unpin:"Desafixar",footerRowSelected:i=>`${i} ${i===1?"linha selecionada":"linhas selecionadas"}`,MuiTablePagination:{labelRowsPerPage:"N° de linhas",labelDisplayedRows:i=>`${i.from}-${i.to} de ${i.count}`}},...t})},Eq=({children:e,waitBeforeShow:t=500})=>{const[r,n]=g.useState(!1);return g.useEffect(()=>{const i=setTimeout(()=>n(!0),t);return()=>clearTimeout(i)},[t]),r?e:null};var o2={exports:{}};(()=>{var e={296:(i,o,a)=>{var s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,d=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,h=typeof self=="object"&&self&&self.Object===Object&&self,m=d||h||Function("return this")(),p=Object.prototype.toString,v=Math.max,x=Math.min,b=function(){return m.Date.now()};function C(w){var k=typeof w;return!!w&&(k=="object"||k=="function")}function E(w){if(typeof w=="number")return w;if(function(O){return typeof O=="symbol"||function(A){return!!A&&typeof A=="object"}(O)&&p.call(O)=="[object Symbol]"}(w))return NaN;if(C(w)){var k=typeof w.valueOf=="function"?w.valueOf():w;w=C(k)?k+"":k}if(typeof w!="string")return w===0?w:+w;w=w.replace(s,"");var T=l.test(w);return T||c.test(w)?f(w.slice(2),T?2:8):u.test(w)?NaN:+w}i.exports=function(w,k,T){var O,A,L,Z,pe,se,q=0,G=!1,me=!1,Ee=!0;if(typeof w!="function")throw new TypeError("Expected a function");function Ie(te){var H=O,fe=A;return O=A=void 0,q=te,Z=w.apply(fe,H)}function _e(te){var H=te-se;return se===void 0||H>=k||H<0||me&&te-q>=L}function $(){var te=b();if(_e(te))return j(te);pe=setTimeout($,function(H){var fe=k-(H-se);return me?x(fe,L-(H-q)):fe}(te))}function j(te){return pe=void 0,Ee&&O?Ie(te):(O=A=void 0,Z)}function X(){var te=b(),H=_e(te);if(O=arguments,A=this,se=te,H){if(pe===void 0)return function(fe){return q=fe,pe=setTimeout($,k),G?Ie(fe):Z}(se);if(me)return pe=setTimeout($,k),Ie(se)}return pe===void 0&&(pe=setTimeout($,k)),Z}return k=E(k)||0,C(T)&&(G=!!T.leading,L=(me="maxWait"in T)?v(E(T.maxWait)||0,k):L,Ee="trailing"in T?!!T.trailing:Ee),X.cancel=function(){pe!==void 0&&clearTimeout(pe),q=0,O=se=A=pe=void 0},X.flush=function(){return pe===void 0?Z:j(b())},X}},96:(i,o,a)=>{var s="Expected a function",u=NaN,l="[object Symbol]",c=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,h=/^0o[0-7]+$/i,m=parseInt,p=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,v=typeof self=="object"&&self&&self.Object===Object&&self,x=p||v||Function("return this")(),b=Object.prototype.toString,C=Math.max,E=Math.min,w=function(){return x.Date.now()};function k(O){var A=typeof O;return!!O&&(A=="object"||A=="function")}function T(O){if(typeof O=="number")return O;if(function(Z){return typeof Z=="symbol"||function(pe){return!!pe&&typeof pe=="object"}(Z)&&b.call(Z)==l}(O))return u;if(k(O)){var A=typeof O.valueOf=="function"?O.valueOf():O;O=k(A)?A+"":A}if(typeof O!="string")return O===0?O:+O;O=O.replace(c,"");var L=d.test(O);return L||h.test(O)?m(O.slice(2),L?2:8):f.test(O)?u:+O}i.exports=function(O,A,L){var Z=!0,pe=!0;if(typeof O!="function")throw new TypeError(s);return k(L)&&(Z="leading"in L?!!L.leading:Z,pe="trailing"in L?!!L.trailing:pe),function(se,q,G){var me,Ee,Ie,_e,$,j,X=0,te=!1,H=!1,fe=!0;if(typeof se!="function")throw new TypeError(s);function ue(be){var N=me,Ne=Ee;return me=Ee=void 0,X=be,_e=se.apply(Ne,N)}function ge(be){var N=be-j;return j===void 0||N>=q||N<0||H&&be-X>=Ie}function Q(){var be=w();if(ge(be))return J(be);$=setTimeout(Q,function(N){var Ne=q-(N-j);return H?E(Ne,Ie-(N-X)):Ne}(be))}function J(be){return $=void 0,fe&&me?ue(be):(me=Ee=void 0,_e)}function ne(){var be=w(),N=ge(be);if(me=arguments,Ee=this,j=be,N){if($===void 0)return function(Ne){return X=Ne,$=setTimeout(Q,q),te?ue(Ne):_e}(j);if(H)return $=setTimeout(Q,q),ue(j)}return $===void 0&&($=setTimeout(Q,q)),_e}return q=T(q)||0,k(G)&&(te=!!G.leading,Ie=(H="maxWait"in G)?C(T(G.maxWait)||0,q):Ie,fe="trailing"in G?!!G.trailing:fe),ne.cancel=function(){$!==void 0&&clearTimeout($),X=0,me=j=Ee=$=void 0},ne.flush=function(){return $===void 0?_e:J(w())},ne}(O,A,{leading:Z,maxWait:A,trailing:pe})}},703:(i,o,a)=>{var s=a(414);function u(){}function l(){}l.resetWarningCache=u,i.exports=function(){function c(h,m,p,v,x,b){if(b!==s){var C=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 C.name="Invariant Violation",C}}function f(){return c}c.isRequired=c;var d={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:f,element:c,elementType:c,instanceOf:f,node:c,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:l,resetWarningCache:u};return d.PropTypes=d,d}},697:(i,o,a)=>{i.exports=a(703)()},414:i=>{i.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function r(i){var o=t[i];if(o!==void 0)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,r),a.exports}r.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return r.d(o,{a:o}),o},r.d=(i,o)=>{for(var a in o)r.o(o,a)&&!r.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:o[a]})},r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),r.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),r.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{LazyLoadComponent:()=>le,LazyLoadImage:()=>ft,trackWindowScroll:()=>j});const i=g;var o=r.n(i),a=r(697);const s=gu;var u=r.n(s);function l(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(I){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},c(I)}function f(I,M){var B=Object.keys(I);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(I);M&&(z=z.filter(function(Ce){return Object.getOwnPropertyDescriptor(I,Ce).enumerable})),B.push.apply(B,z)}return B}function d(I,M,B){return(M=m(M))in I?Object.defineProperty(I,M,{value:B,enumerable:!0,configurable:!0,writable:!0}):I[M]=B,I}function h(I,M){for(var B=0;B<M.length;B++){var z=M[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,m(z.key),z)}}function m(I){var M=function(B,z){if(c(B)!=="object"||B===null)return B;var Ce=B[Symbol.toPrimitive];if(Ce!==void 0){var Oe=Ce.call(B,"string");if(c(Oe)!=="object")return Oe;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(I);return c(M)==="symbol"?M:String(M)}function p(I,M){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,z){return B.__proto__=z,B},p(I,M)}function v(I){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},v(I)}var x=function(I){I.forEach(function(M){M.isIntersecting&&M.target.onVisible()})},b={},C=function(I){(function(D,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(F&&F.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),F&&p(D,F)})(Be,I);var M,B,z,Ce,Oe=(z=Be,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var D,F=v(z);if(Ce){var ce=v(this).constructor;D=Reflect.construct(F,arguments,ce)}else D=F.apply(this,arguments);return function(oe,ie){if(ie&&(c(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Me){if(Me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me}(oe)}(this,D)});function Be(D){var F;if(function(oe,ie){if(!(oe instanceof ie))throw new TypeError("Cannot call a class as a function")}(this,Be),(F=Oe.call(this,D)).supportsObserver=!D.scrollPosition&&D.useIntersectionObserver&&l(),F.supportsObserver){var ce=D.threshold;F.observer=function(oe){return b[oe]=b[oe]||new IntersectionObserver(x,{rootMargin:oe+"px"}),b[oe]}(ce)}return F}return M=Be,B=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,F=this.placeholder.getBoundingClientRect(),ce=u().findDOMNode(this.placeholder).style,oe=parseInt(ce.getPropertyValue("margin-left"),10)||0,ie=parseInt(ce.getPropertyValue("margin-top"),10)||0;return{bottom:D.y+F.bottom+ie,left:D.x+F.left+oe,right:D.x+F.right+oe,top:D.y+F.top+ie}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var D=this.props,F=D.scrollPosition,ce=D.threshold,oe=this.getPlaceholderBoundingBox(F),ie=F.y+window.innerHeight,Me=F.x,lt=F.x+window.innerWidth,et=F.y;return et-ce<=oe.bottom&&ie+ce>=oe.top&&Me-ce<=oe.right&<+ce>=oe.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var D=this,F=this.props,ce=F.className,oe=F.height,ie=F.placeholder,Me=F.style,lt=F.width;if(ie&&typeof ie.type!="function")return o().cloneElement(ie,{ref:function(tt){return D.placeholder=tt}});var et=function(tt){for(var _t=1;_t<arguments.length;_t++){var yt=arguments[_t]!=null?arguments[_t]:{};_t%2?f(Object(yt),!0).forEach(function(Lt){d(tt,Lt,yt[Lt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(yt)):f(Object(yt)).forEach(function(Lt){Object.defineProperty(tt,Lt,Object.getOwnPropertyDescriptor(yt,Lt))})}return tt}({display:"inline-block"},Me);return lt!==void 0&&(et.width=lt),oe!==void 0&&(et.height=oe),o().createElement("span",{className:ce,ref:function(tt){return D.placeholder=tt},style:et},ie)}}],B&&h(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Be}(o().Component);C.propTypes={onVisible:a.PropTypes.func.isRequired,className:a.PropTypes.string,height:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string]),placeholder:a.PropTypes.element,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,scrollPosition:a.PropTypes.shape({x:a.PropTypes.number.isRequired,y:a.PropTypes.number.isRequired}),width:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string])},C.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const E=C;var w=r(296),k=r.n(w),T=r(96),O=r.n(T),A=function(I){var M=getComputedStyle(I,null);return M.getPropertyValue("overflow")+M.getPropertyValue("overflow-y")+M.getPropertyValue("overflow-x")};const L=function(I){if(!(I instanceof HTMLElement))return window;for(var M=I;M&&M instanceof HTMLElement;){if(/(scroll|auto)/.test(A(M)))return M;M=M.parentNode}return window};function Z(I){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},Z(I)}var pe=["delayMethod","delayTime"];function se(){return se=Object.assign?Object.assign.bind():function(I){for(var M=1;M<arguments.length;M++){var B=arguments[M];for(var z in B)Object.prototype.hasOwnProperty.call(B,z)&&(I[z]=B[z])}return I},se.apply(this,arguments)}function q(I,M){for(var B=0;B<M.length;B++){var z=M[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,(Ce=function(Oe,Be){if(Z(Oe)!=="object"||Oe===null)return Oe;var D=Oe[Symbol.toPrimitive];if(D!==void 0){var F=D.call(Oe,"string");if(Z(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Oe)}(z.key),Z(Ce)==="symbol"?Ce:String(Ce)),z)}var Ce}function G(I,M){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,z){return B.__proto__=z,B},G(I,M)}function me(I,M){if(M&&(Z(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ee(I)}function Ee(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function Ie(I){return Ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},Ie(I)}var _e=function(){return typeof window>"u"?0:window.scrollX||window.pageXOffset},$=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const j=function(I){var M=function(B){(function(ce,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function");ce.prototype=Object.create(oe&&oe.prototype,{constructor:{value:ce,writable:!0,configurable:!0}}),Object.defineProperty(ce,"prototype",{writable:!1}),oe&&G(ce,oe)})(F,B);var z,Ce,Oe,Be,D=(Oe=F,Be=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var ce,oe=Ie(Oe);if(Be){var ie=Ie(this).constructor;ce=Reflect.construct(oe,arguments,ie)}else ce=oe.apply(this,arguments);return me(this,ce)});function F(ce){var oe;if(function(Me,lt){if(!(Me instanceof lt))throw new TypeError("Cannot call a class as a function")}(this,F),(oe=D.call(this,ce)).useIntersectionObserver=ce.useIntersectionObserver&&l(),oe.useIntersectionObserver)return me(oe);var ie=oe.onChangeScroll.bind(Ee(oe));return ce.delayMethod==="debounce"?oe.delayedScroll=k()(ie,ce.delayTime):ce.delayMethod==="throttle"&&(oe.delayedScroll=O()(ie,ce.delayTime)),oe.state={scrollPosition:{x:_e(),y:$()}},oe.baseComponentRef=o().createRef(),oe}return z=F,(Ce=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||L(u().findDOMNode(this.baseComponentRef.current))!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=L(u().findDOMNode(this.baseComponentRef.current)),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:_e(),y:$()}})}},{key:"render",value:function(){var ce=this.props,oe=(ce.delayMethod,ce.delayTime,function(Me,lt){if(Me==null)return{};var et,tt,_t=function(Lt,Jr){if(Lt==null)return{};var en,ni,za={},hu=Object.keys(Lt);for(ni=0;ni<hu.length;ni++)en=hu[ni],Jr.indexOf(en)>=0||(za[en]=Lt[en]);return za}(Me,lt);if(Object.getOwnPropertySymbols){var yt=Object.getOwnPropertySymbols(Me);for(tt=0;tt<yt.length;tt++)et=yt[tt],lt.indexOf(et)>=0||Object.prototype.propertyIsEnumerable.call(Me,et)&&(_t[et]=Me[et])}return _t}(ce,pe)),ie=this.useIntersectionObserver?null:this.state.scrollPosition;return o().createElement(I,se({forwardRef:this.baseComponentRef,scrollPosition:ie},oe))}}])&&q(z.prototype,Ce),Object.defineProperty(z,"prototype",{writable:!1}),F}(o().Component);return M.propTypes={delayMethod:a.PropTypes.oneOf(["debounce","throttle"]),delayTime:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool},M.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},M};function X(I){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},X(I)}function te(I,M){for(var B=0;B<M.length;B++){var z=M[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,(Ce=function(Oe,Be){if(X(Oe)!=="object"||Oe===null)return Oe;var D=Oe[Symbol.toPrimitive];if(D!==void 0){var F=D.call(Oe,"string");if(X(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Oe)}(z.key),X(Ce)==="symbol"?Ce:String(Ce)),z)}var Ce}function H(I,M){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,z){return B.__proto__=z,B},H(I,M)}function fe(I){return fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},fe(I)}var ue=function(I){(function(D,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(F&&F.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),F&&H(D,F)})(Be,I);var M,B,z,Ce,Oe=(z=Be,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var D,F=fe(z);if(Ce){var ce=fe(this).constructor;D=Reflect.construct(F,arguments,ce)}else D=F.apply(this,arguments);return function(oe,ie){if(ie&&(X(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Me){if(Me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me}(oe)}(this,D)});function Be(D){return function(F,ce){if(!(F instanceof ce))throw new TypeError("Cannot call a class as a function")}(this,Be),Oe.call(this,D)}return M=Be,(B=[{key:"render",value:function(){return o().createElement(E,this.props)}}])&&te(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Be}(o().Component);const ge=j(ue);function Q(I){return Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},Q(I)}function J(I,M){for(var B=0;B<M.length;B++){var z=M[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,(Ce=function(Oe,Be){if(Q(Oe)!=="object"||Oe===null)return Oe;var D=Oe[Symbol.toPrimitive];if(D!==void 0){var F=D.call(Oe,"string");if(Q(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Oe)}(z.key),Q(Ce)==="symbol"?Ce:String(Ce)),z)}var Ce}function ne(I,M){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,z){return B.__proto__=z,B},ne(I,M)}function be(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function N(I){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},N(I)}var Ne=function(I){(function(D,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(F&&F.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),F&&ne(D,F)})(Be,I);var M,B,z,Ce,Oe=(z=Be,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var D,F=N(z);if(Ce){var ce=N(this).constructor;D=Reflect.construct(F,arguments,ce)}else D=F.apply(this,arguments);return function(oe,ie){if(ie&&(Q(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return be(oe)}(this,D)});function Be(D){var F;(function(lt,et){if(!(lt instanceof et))throw new TypeError("Cannot call a class as a function")})(this,Be),F=Oe.call(this,D);var ce=D.afterLoad,oe=D.beforeLoad,ie=D.scrollPosition,Me=D.visibleByDefault;return F.state={visible:Me},Me&&(oe(),ce()),F.onVisible=F.onVisible.bind(be(F)),F.isScrollTracked=!!(ie&&Number.isFinite(ie.x)&&ie.x>=0&&Number.isFinite(ie.y)&&ie.y>=0),F}return M=Be,(B=[{key:"componentDidUpdate",value:function(D,F){F.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var D=this.props,F=D.className,ce=D.delayMethod,oe=D.delayTime,ie=D.height,Me=D.placeholder,lt=D.scrollPosition,et=D.style,tt=D.threshold,_t=D.useIntersectionObserver,yt=D.width;return this.isScrollTracked||_t&&l()?o().createElement(E,{className:F,height:ie,onVisible:this.onVisible,placeholder:Me,scrollPosition:lt,style:et,threshold:tt,useIntersectionObserver:_t,width:yt}):o().createElement(ge,{className:F,delayMethod:ce,delayTime:oe,height:ie,onVisible:this.onVisible,placeholder:Me,style:et,threshold:tt,width:yt})}}])&&J(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Be}(o().Component);Ne.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool},Ne.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const le=Ne;function pt(I){return pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},pt(I)}var Qt=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Wt(I,M){var B=Object.keys(I);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(I);M&&(z=z.filter(function(Ce){return Object.getOwnPropertyDescriptor(I,Ce).enumerable})),B.push.apply(B,z)}return B}function Qr(I){for(var M=1;M<arguments.length;M++){var B=arguments[M]!=null?arguments[M]:{};M%2?Wt(Object(B),!0).forEach(function(z){Cr(I,z,B[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(B)):Wt(Object(B)).forEach(function(z){Object.defineProperty(I,z,Object.getOwnPropertyDescriptor(B,z))})}return I}function Cr(I,M,B){return(M=Cn(M))in I?Object.defineProperty(I,M,{value:B,enumerable:!0,configurable:!0,writable:!0}):I[M]=B,I}function Sr(){return Sr=Object.assign?Object.assign.bind():function(I){for(var M=1;M<arguments.length;M++){var B=arguments[M];for(var z in B)Object.prototype.hasOwnProperty.call(B,z)&&(I[z]=B[z])}return I},Sr.apply(this,arguments)}function Ba(I,M){for(var B=0;B<M.length;B++){var z=M[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,Cn(z.key),z)}}function Cn(I){var M=function(B,z){if(pt(B)!=="object"||B===null)return B;var Ce=B[Symbol.toPrimitive];if(Ce!==void 0){var Oe=Ce.call(B,"string");if(pt(Oe)!=="object")return Oe;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(I);return pt(M)==="symbol"?M:String(M)}function ri(I,M){return ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,z){return B.__proto__=z,B},ri(I,M)}function K(I){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},K(I)}var ve=function(I){(function(D,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(F&&F.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),F&&ri(D,F)})(Be,I);var M,B,z,Ce,Oe=(z=Be,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var D,F=K(z);if(Ce){var ce=K(this).constructor;D=Reflect.construct(F,arguments,ce)}else D=F.apply(this,arguments);return function(oe,ie){if(ie&&(pt(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Me){if(Me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me}(oe)}(this,D)});function Be(D){var F;return function(ce,oe){if(!(ce instanceof oe))throw new TypeError("Cannot call a class as a function")}(this,Be),(F=Oe.call(this,D)).state={loaded:!1},F}return M=Be,(B=[{key:"onImageLoad",value:function(){var D=this;return this.state.loaded?null:function(F){D.props.onLoad(F),D.props.afterLoad(),D.setState({loaded:!0})}}},{key:"getImg",value:function(){var D=this.props,F=(D.afterLoad,D.beforeLoad,D.delayMethod,D.delayTime,D.effect,D.placeholder,D.placeholderSrc,D.scrollPosition,D.threshold,D.useIntersectionObserver,D.visibleByDefault,D.wrapperClassName,D.wrapperProps,function(ce,oe){if(ce==null)return{};var ie,Me,lt=function(tt,_t){if(tt==null)return{};var yt,Lt,Jr={},en=Object.keys(tt);for(Lt=0;Lt<en.length;Lt++)yt=en[Lt],_t.indexOf(yt)>=0||(Jr[yt]=tt[yt]);return Jr}(ce,oe);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(ce);for(Me=0;Me<et.length;Me++)ie=et[Me],oe.indexOf(ie)>=0||Object.prototype.propertyIsEnumerable.call(ce,ie)&&(lt[ie]=ce[ie])}return lt}(D,Qt));return o().createElement("img",Sr({},F,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var D=this.props,F=D.beforeLoad,ce=D.className,oe=D.delayMethod,ie=D.delayTime,Me=D.height,lt=D.placeholder,et=D.scrollPosition,tt=D.style,_t=D.threshold,yt=D.useIntersectionObserver,Lt=D.visibleByDefault,Jr=D.width;return o().createElement(le,{beforeLoad:F,className:ce,delayMethod:oe,delayTime:ie,height:Me,placeholder:lt,scrollPosition:et,style:tt,threshold:_t,useIntersectionObserver:yt,visibleByDefault:Lt,width:Jr},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(D){var F=this.props,ce=F.effect,oe=F.height,ie=F.placeholderSrc,Me=F.width,lt=F.wrapperClassName,et=F.wrapperProps,tt=this.state.loaded,_t=tt?" lazy-load-image-loaded":"",yt=tt||!ie?{}:{backgroundImage:"url(".concat(ie,")"),backgroundSize:"100% 100%"};return o().createElement("span",Sr({className:lt+" lazy-load-image-background "+ce+_t,style:Qr(Qr({},yt),{},{color:"transparent",display:"inline-block",height:oe,width:Me})},et),D)}},{key:"render",value:function(){var D=this.props,F=D.effect,ce=D.placeholderSrc,oe=D.visibleByDefault,ie=D.wrapperClassName,Me=D.wrapperProps,lt=this.getLazyLoadImage();return(F||ce)&&!oe||ie||Me?this.getWrappedLazyLoadImage(lt):lt}}])&&Ba(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Be}(o().Component);ve.propTypes={onLoad:a.PropTypes.func,afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,delayMethod:a.PropTypes.string,delayTime:a.PropTypes.number,effect:a.PropTypes.string,placeholderSrc:a.PropTypes.string,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool,wrapperClassName:a.PropTypes.string,wrapperProps:a.PropTypes.object},ve.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const ft=ve})(),o2.exports=n})();var Tq=o2.exports;const kq="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACAQMAAACjTyRkAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjAAIAAAQAASDSLW8AAAAASUVORK5CYII=",_q="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxyYWRpYWxHcmFkaWVudCBpZD0iYSIgY3g9IjUwJSIgY3k9IjQ2LjgwMTEwMiUiIHI9Ijk1LjQ5NzExMiUiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjOTE5ZWFiIiBzdG9wLW9wYWNpdHk9Ii40OCIvPjwvcmFkaWFsR3JhZGllbnQ+PHBhdGggZD0ibTg4IDg2aDUxMnY1MTJoLTUxMnoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTg4IC04NikiLz48L3N2Zz4=";function Oq(e="1/1"){return{"4/3":"calc(100% / 4 * 3)","3/4":"calc(100% / 3 * 4)","6/4":"calc(100% / 6 * 4)","4/6":"calc(100% / 4 * 6)","16/9":"calc(100% / 16 * 9)","9/16":"calc(100% / 9 * 16)","21/9":"calc(100% / 21 * 9)","9/21":"calc(100% / 9 * 21)","1/1":"100%"}[e]}const Ul=g.forwardRef(({ratio:e,disabledEffect:t=!1,effect:r="blur",sx:n,...i},o)=>{const a=y.jsx(P.Box,{component:Tq.LazyLoadImage,wrapperClassName:"wrapper",effect:t?void 0:r,placeholderSrc:t?kq:_q,sx:{width:1,height:1,objectFit:"cover"},...i});return e?y.jsx(P.Box,{ref:o,component:"span",sx:{width:1,lineHeight:1,display:"block",overflow:"hidden",position:"relative",pt:Oq(e),"& .wrapper":{top:0,left:0,width:1,height:1,position:"absolute",backgroundSize:"cover !important"},...n},children:a}):y.jsx(P.Box,{ref:o,component:"span",sx:{lineHeight:1,display:"block",overflow:"hidden",position:"relative","& .wrapper":{width:1,height:1,backgroundSize:"cover !important"},...n},children:a})});Ul.displayName="Image";/*! *****************************************************************************
|
|
133
137
|
Copyright (c) Microsoft Corporation.
|
|
134
138
|
|
|
135
139
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -142,7 +146,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
142
146
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
143
147
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
144
148
|
PERFORMANCE OF THIS SOFTWARE.
|
|
145
|
-
***************************************************************************** */var
|
|
149
|
+
***************************************************************************** */var eh=function(e,t){return eh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},eh(e,t)};function Mq(e,t){eh(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var zt=function(){return zt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},zt.apply(this,arguments)},a2=!1,Xn,th,rh,Yl,Gl,s2,ql,nh,ih,oh,l2,ah,sh,u2,c2;function Kt(){if(!a2){a2=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(ah=/\b(iPhone|iP[ao]d)/.exec(e),sh=/\b(iP[ao]d)/.exec(e),oh=/Android/i.exec(e),u2=/FBAN\/\w+;/i.exec(e),c2=/Mobile/i.exec(e),l2=!!/Win64/.exec(e),t){Xn=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Xn&&document&&document.documentMode&&(Xn=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);s2=n?parseFloat(n[1])+4:Xn,th=t[2]?parseFloat(t[2]):NaN,rh=t[3]?parseFloat(t[3]):NaN,Yl=t[4]?parseFloat(t[4]):NaN,Yl?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Gl=t&&t[1]?parseFloat(t[1]):NaN):Gl=NaN}else Xn=th=rh=Gl=Yl=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);ql=i?parseFloat(i[1].replace("_",".")):!0}else ql=!1;nh=!!r[2],ih=!!r[3]}else ql=nh=ih=!1}}var lh={ie:function(){return Kt()||Xn},ieCompatibilityMode:function(){return Kt()||s2>Xn},ie64:function(){return lh.ie()&&l2},firefox:function(){return Kt()||th},opera:function(){return Kt()||rh},webkit:function(){return Kt()||Yl},safari:function(){return lh.webkit()},chrome:function(){return Kt()||Gl},windows:function(){return Kt()||nh},osx:function(){return Kt()||ql},linux:function(){return Kt()||ih},iphone:function(){return Kt()||ah},mobile:function(){return Kt()||ah||sh||oh||c2},nativeApp:function(){return Kt()||u2},android:function(){return Kt()||oh},ipad:function(){return Kt()||sh}},Pq=lh,Kl=!!(typeof window<"u"&&window.document&&window.document.createElement),Aq={canUseDOM:Kl,canUseWorkers:typeof Worker<"u",canUseEventListeners:Kl&&!!(window.addEventListener||window.attachEvent),canUseViewport:Kl&&!!window.screen,isInWorker:!Kl},Dq=Aq,f2=Dq,d2;f2.canUseDOM&&(d2=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
|
|
146
150
|
* Checks if an event is supported in the current execution environment.
|
|
147
151
|
*
|
|
148
152
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
@@ -155,7 +159,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
155
159
|
* @return {boolean} True if the event is supported.
|
|
156
160
|
* @internal
|
|
157
161
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
158
|
-
*/function
|
|
162
|
+
*/function $q(e,t){if(!f2.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,n=r in document;if(!n){var i=document.createElement("div");i.setAttribute(r,"return;"),n=typeof i[r]=="function"}return!n&&d2&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var Iq=$q,Fq=Pq,jq=Iq,h2=10,p2=40,g2=800;function m2(e){var t=0,r=0,n=0,i=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=t*h2,i=r*h2,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(e.deltaMode==1?(n*=p2,i*=p2):(n*=g2,i*=g2)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}m2.getEventType=function(){return Fq.firefox()?"DOMMouseScroll":jq("wheel")?"wheel":"mousewheel"};var Lq=m2,Rq=Lq;const Nq=Sn(Rq);function Bq(e,t,r,n,i,o){o===void 0&&(o=0);var a=mo(e,t,o),s=a.width,u=a.height,l=Math.min(s,r),c=Math.min(u,n);return l>c*i?{width:c*i,height:c}:{width:l,height:l/i}}function zq(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function Xl(e,t,r,n,i){i===void 0&&(i=0);var o=mo(t.width,t.height,i),a=o.width,s=o.height;return{x:v2(e.x,a,r.width,n),y:v2(e.y,s,r.height,n)}}function v2(e,t,r,n){var i=t*n/2-r/2;return Zl(e,-i,i)}function y2(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function b2(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*180/Math.PI}function Vq(e,t,r,n,i,o,a){o===void 0&&(o=0),a===void 0&&(a=!0);var s=a?Wq:Hq,u=mo(t.width,t.height,o),l=mo(t.naturalWidth,t.naturalHeight,o),c={x:s(100,((u.width-r.width/i)/2-e.x/i)/u.width*100),y:s(100,((u.height-r.height/i)/2-e.y/i)/u.height*100),width:s(100,r.width/u.width*100/i),height:s(100,r.height/u.height*100/i)},f=Math.round(s(l.width,c.width*l.width/100)),d=Math.round(s(l.height,c.height*l.height/100)),h=l.width>=l.height*n,m=h?{width:Math.round(d*n),height:d}:{width:f,height:Math.round(f/n)},p=zt(zt({},m),{x:Math.round(s(l.width-m.width,c.x*l.width/100)),y:Math.round(s(l.height-m.height,c.y*l.height/100))});return{croppedAreaPercentages:c,croppedAreaPixels:p}}function Wq(e,t){return Math.min(e,Math.max(0,t))}function Hq(e,t){return t}function Uq(e,t,r,n,i,o){var a=mo(t.width,t.height,r),s=Zl(n.width/a.width*(100/e.width),i,o),u={x:s*a.width/2-n.width/2-a.width*s*(e.x/100),y:s*a.height/2-n.height/2-a.height*s*(e.y/100)};return{crop:u,zoom:s}}function Yq(e,t,r){var n=zq(t);return r.height>r.width?r.height/(e.height*n):r.width/(e.width*n)}function Gq(e,t,r,n,i,o){r===void 0&&(r=0);var a=mo(t.naturalWidth,t.naturalHeight,r),s=Zl(Yq(e,t,n),i,o),u=n.height>n.width?n.height/e.height:n.width/e.width,l={x:((a.width-e.width)/2-e.x)*u,y:((a.height-e.height)/2-e.y)*u};return{crop:l,zoom:s}}function x2(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function qq(e){return e*Math.PI/180}function mo(e,t,r){var n=qq(r);return{width:Math.abs(Math.cos(n)*e)+Math.abs(Math.sin(n)*t),height:Math.abs(Math.sin(n)*e)+Math.abs(Math.cos(n)*t)}}function Zl(e,t,r){return Math.min(Math.max(e,t),r)}function Ql(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(r){return typeof r=="string"&&r.length>0}).join(" ").trim()}var Kq=`.reactEasyCrop_Container {
|
|
159
163
|
position: absolute;
|
|
160
164
|
top: 0;
|
|
161
165
|
left: 0;
|
|
@@ -235,14 +239,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
235
239
|
border-left: 0;
|
|
236
240
|
border-right: 0;
|
|
237
241
|
}
|
|
238
|
-
`,oG=1,aG=3,sG=function(e){RY(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.imageRef=g.createRef(),r.videoRef=g.createRef(),r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.gestureZoomStart=0,r.gestureRotationStart=0,r.isTouching=!1,r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.currentDoc=typeof document<"u"?document:null,r.currentWindow=typeof window<"u"?window:null,r.resizeObserver=null,r.state={cropSize:null,hasWheelJustStarted:!1},r.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!r.containerRef)){var n=!0;r.resizeObserver=new window.ResizeObserver(function(i){if(n){n=!1;return}r.computeSizes()}),r.resizeObserver.observe(r.containerRef)}},r.preventZoomSafari=function(n){return n.preventDefault()},r.cleanEvents=function(){r.currentDoc&&(r.currentDoc.removeEventListener("mousemove",r.onMouseMove),r.currentDoc.removeEventListener("mouseup",r.onDragStopped),r.currentDoc.removeEventListener("touchmove",r.onTouchMove),r.currentDoc.removeEventListener("touchend",r.onDragStopped),r.currentDoc.removeEventListener("gesturemove",r.onGestureMove),r.currentDoc.removeEventListener("gestureend",r.onGestureEnd))},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){var n=r.computeSizes();n&&(r.emitCropData(),r.setInitialCrop(n)),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(n){if(r.props.initialCroppedAreaPercentages){var i=eG(r.props.initialCroppedAreaPercentages,r.mediaSize,r.props.rotation,n,r.props.minZoom,r.props.maxZoom),o=i.crop,a=i.zoom;r.props.onCropChange(o),r.props.onZoomChange&&r.props.onZoomChange(a)}else if(r.props.initialCroppedAreaPixels){var s=rG(r.props.initialCroppedAreaPixels,r.mediaSize,r.props.rotation,n,r.props.minZoom,r.props.maxZoom),o=s.crop,a=s.zoom;r.props.onCropChange(o),r.props.onZoomChange&&r.props.onZoomChange(a)}},r.computeSizes=function(){var n,i,o,a,s,u,l=r.imageRef.current||r.videoRef.current;if(l&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect();var c=r.containerRect.width/r.containerRect.height,f=((n=r.imageRef.current)===null||n===void 0?void 0:n.naturalWidth)||((i=r.videoRef.current)===null||i===void 0?void 0:i.videoWidth)||0,d=((o=r.imageRef.current)===null||o===void 0?void 0:o.naturalHeight)||((a=r.videoRef.current)===null||a===void 0?void 0:a.videoHeight)||0,h=l.offsetWidth<f||l.offsetHeight<d,m=f/d,p=void 0;if(h){var v=r.getObjectFit();switch(v){default:case"contain":p=c>m?{width:r.containerRect.height*m,height:r.containerRect.height}:{width:r.containerRect.width,height:r.containerRect.width/m};break;case"horizontal-cover":p={width:r.containerRect.width,height:r.containerRect.width/m};break;case"vertical-cover":p={width:r.containerRect.height*m,height:r.containerRect.height};break}}else p={width:l.offsetWidth,height:l.offsetHeight};r.mediaSize=Nt(Nt({},p),{naturalWidth:f,naturalHeight:d}),r.props.setMediaSize&&r.props.setMediaSize(r.mediaSize);var x=r.props.cropSize?r.props.cropSize:KY(r.mediaSize.width,r.mediaSize.height,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);return(((s=r.state.cropSize)===null||s===void 0?void 0:s.height)!==x.height||((u=r.state.cropSize)===null||u===void 0?void 0:u.width)!==x.width)&&r.props.onCropSizeChange&&r.props.onCropSizeChange(x),r.setState({cropSize:x},r.recomputeCropPosition),r.props.setCropSize&&r.props.setCropSize(x),x}},r.onMouseDown=function(n){r.currentDoc&&(n.preventDefault(),r.currentDoc.addEventListener("mousemove",r.onMouseMove),r.currentDoc.addEventListener("mouseup",r.onDragStopped),r.onDragStart(t.getMousePoint(n)))},r.onMouseMove=function(n){return r.onDrag(t.getMousePoint(n))},r.onTouchStart=function(n){r.currentDoc&&(r.isTouching=!0,!(r.props.onTouchRequest&&!r.props.onTouchRequest(n))&&(r.currentDoc.addEventListener("touchmove",r.onTouchMove,{passive:!1}),r.currentDoc.addEventListener("touchend",r.onDragStopped),n.touches.length===2?r.onPinchStart(n):n.touches.length===1&&r.onDragStart(t.getTouchPoint(n.touches[0]))))},r.onTouchMove=function(n){n.preventDefault(),n.touches.length===2?r.onPinchMove(n):n.touches.length===1&&r.onDrag(t.getTouchPoint(n.touches[0]))},r.onGestureStart=function(n){r.currentDoc&&(n.preventDefault(),r.currentDoc.addEventListener("gesturechange",r.onGestureMove),r.currentDoc.addEventListener("gestureend",r.onGestureEnd),r.gestureZoomStart=r.props.zoom,r.gestureRotationStart=r.props.rotation)},r.onGestureMove=function(n){if(n.preventDefault(),!r.isTouching){var i=t.getMousePoint(n),o=r.gestureZoomStart-1+n.scale;if(r.setNewZoom(o,i,{shouldUpdatePosition:!0}),r.props.onRotationChange){var a=r.gestureRotationStart+n.rotation;r.props.onRotationChange(a)}}},r.onGestureEnd=function(n){r.cleanEvents()},r.onDragStart=function(n){var i,o,a=n.x,s=n.y;r.dragStartPosition={x:a,y:s},r.dragStartCrop=Nt({},r.props.crop),(o=(i=r.props).onInteractionStart)===null||o===void 0||o.call(i)},r.onDrag=function(n){var i=n.x,o=n.y;r.currentWindow&&(r.rafDragTimeout&&r.currentWindow.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=r.currentWindow.requestAnimationFrame(function(){if(r.state.cropSize&&!(i===void 0||o===void 0)){var a=i-r.dragStartPosition.x,s=o-r.dragStartPosition.y,u={x:r.dragStartCrop.x+a,y:r.dragStartCrop.y+s},l=r.props.restrictPosition?Cl(u,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):u;r.props.onCropChange(l)}}))},r.onDragStopped=function(){var n,i;r.isTouching=!1,r.cleanEvents(),r.emitCropData(),(i=(n=r.props).onInteractionEnd)===null||i===void 0||i.call(n)},r.onWheel=function(n){if(r.currentWindow&&!(r.props.onWheelRequest&&!r.props.onWheelRequest(n))){n.preventDefault();var i=t.getMousePoint(n),o=qY(n).pixelY,a=r.props.zoom-o*r.props.zoomSpeed/200;r.setNewZoom(a,i,{shouldUpdatePosition:!0}),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},function(){var s,u;return(u=(s=r.props).onInteractionStart)===null||u===void 0?void 0:u.call(s)}),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=r.currentWindow.setTimeout(function(){return r.setState({hasWheelJustStarted:!1},function(){var s,u;return(u=(s=r.props).onInteractionEnd)===null||u===void 0?void 0:u.call(s)})},250)}},r.getPointOnContainer=function(n){var i=n.x,o=n.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(i-r.containerRect.left),y:r.containerRect.height/2-(o-r.containerRect.top)}},r.getPointOnMedia=function(n){var i=n.x,o=n.y,a=r.props,s=a.crop,u=a.zoom;return{x:(i+s.x)/u,y:(o+s.y)/u}},r.setNewZoom=function(n,i,o){var a=o===void 0?{}:o,s=a.shouldUpdatePosition,u=s===void 0?!0:s;if(!(!r.state.cropSize||!r.props.onZoomChange)){var l=Sl(n,r.props.minZoom,r.props.maxZoom);if(u){var c=r.getPointOnContainer(i),f=r.getPointOnMedia(c),d={x:f.x*l-c.x,y:f.y*l-c.y},h=r.props.restrictPosition?Cl(d,r.mediaSize,r.state.cropSize,l,r.props.rotation):d;r.props.onCropChange(h)}r.props.onZoomChange(l)}},r.getCropData=function(){if(!r.state.cropSize)return null;var n=r.props.restrictPosition?Cl(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;return ZY(n,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition)},r.emitCropData=function(){var n=r.getCropData();if(n){var i=n.croppedAreaPercentages,o=n.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(i,o),r.props.onCropAreaChange&&r.props.onCropAreaChange(i,o)}},r.emitCropAreaChange=function(){var n=r.getCropData();if(n){var i=n.croppedAreaPercentages,o=n.croppedAreaPixels;r.props.onCropAreaChange&&r.props.onCropAreaChange(i,o)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var n=r.props.restrictPosition?Cl(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;r.props.onCropChange(n),r.emitCropData()}},r}return t.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=iG,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var r,n;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(r=this.resizeObserver)===null||r===void 0||r.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((n=this.styleRef.parentNode)===null||n===void 0||n.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(r){var n,i,o,a,s,u,l,c,f;r.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):r.aspect!==this.props.aspect?this.computeSizes():r.zoom!==this.props.zoom?this.recomputeCropPosition():((n=r.cropSize)===null||n===void 0?void 0:n.height)!==((i=this.props.cropSize)===null||i===void 0?void 0:i.height)||((o=r.cropSize)===null||o===void 0?void 0:o.width)!==((a=this.props.cropSize)===null||a===void 0?void 0:a.width)?this.computeSizes():(((s=r.crop)===null||s===void 0?void 0:s.x)!==((u=this.props.crop)===null||u===void 0?void 0:u.x)||((l=r.crop)===null||l===void 0?void 0:l.y)!==((c=this.props.crop)===null||c===void 0?void 0:c.y))&&this.emitCropAreaChange(),r.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),r.video!==this.props.video&&((f=this.videoRef.current)===null||f===void 0||f.load())},t.prototype.getAspect=function(){var r=this.props,n=r.cropSize,i=r.aspect;return n?n.width/n.height:i},t.prototype.getObjectFit=function(){var r,n,i,o;if(this.props.objectFit==="cover"){var a=this.imageRef.current||this.videoRef.current;if(a&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var s=this.containerRect.width/this.containerRect.height,u=((r=this.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((n=this.videoRef.current)===null||n===void 0?void 0:n.videoWidth)||0,l=((i=this.imageRef.current)===null||i===void 0?void 0:i.naturalHeight)||((o=this.videoRef.current)===null||o===void 0?void 0:o.videoHeight)||0,c=u/l;return c<s?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(r){var n=t.getTouchPoint(r.touches[0]),i=t.getTouchPoint(r.touches[1]);this.lastPinchDistance=ab(n,i),this.lastPinchRotation=sb(n,i),this.onDragStart(lb(n,i))},t.prototype.onPinchMove=function(r){var n=this;if(!(!this.currentDoc||!this.currentWindow)){var i=t.getTouchPoint(r.touches[0]),o=t.getTouchPoint(r.touches[1]),a=lb(i,o);this.onDrag(a),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var s=ab(i,o),u=n.props.zoom*(s/n.lastPinchDistance);n.setNewZoom(u,a,{shouldUpdatePosition:!1}),n.lastPinchDistance=s;var l=sb(i,o),c=n.props.rotation+(l-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(c),n.lastPinchRotation=l})}},t.prototype.render=function(){var r=this,n=this.props,i=n.image,o=n.video,a=n.mediaProps,s=n.transform,u=n.crop,l=u.x,c=u.y,f=n.rotation,d=n.zoom,h=n.cropShape,m=n.showGrid,p=n.style,v=p.containerStyle,x=p.cropAreaStyle,b=p.mediaStyle,C=n.classes,E=C.containerClassName,w=C.cropAreaClassName,_=C.mediaClassName,O=this.getObjectFit();return g.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(D){return r.containerRef=D},"data-testid":"container",style:v,className:El("reactEasyCrop_Container",E)},i?g.createElement("img",Nt({alt:"",className:El("reactEasyCrop_Image",O==="contain"&&"reactEasyCrop_Contain",O==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",O==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",_)},a,{src:i,ref:this.imageRef,style:Nt(Nt({},b),{transform:s||"translate(".concat(l,"px, ").concat(c,"px) rotate(").concat(f,"deg) scale(").concat(d,")")}),onLoad:this.onMediaLoad})):o&&g.createElement("video",Nt({autoPlay:!0,loop:!0,muted:!0,className:El("reactEasyCrop_Video",O==="contain"&&"reactEasyCrop_Contain",O==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",O==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",_)},a,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:Nt(Nt({},b),{transform:s||"translate(".concat(l,"px, ").concat(c,"px) rotate(").concat(f,"deg) scale(").concat(d,")")}),controls:!1}),(Array.isArray(o)?o:[{src:o}]).map(function(k){return g.createElement("source",Nt({key:k.src},k))})),this.state.cropSize&&g.createElement("div",{style:Nt(Nt({},x),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:El("reactEasyCrop_CropArea",h==="round"&&"reactEasyCrop_CropAreaRound",m&&"reactEasyCrop_CropAreaGrid",w)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:aG,minZoom:oG,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(r){return{x:Number(r.clientX),y:Number(r.clientY)}},t.getTouchPoint=function(r){return{x:Number(r.clientX),y:Number(r.clientY)}},t}(g.Component);const lG=e=>new Promise((t,r)=>{const n=new Image;n.addEventListener("load",()=>t(n)),n.addEventListener("error",i=>r(i)),n.setAttribute("crossOrigin","anonymous"),n.src=e});function ub(e){return e*Math.PI/180}function uG(e,t,r){const n=ub(r);return{width:Math.abs(Math.cos(n)*e)+Math.abs(Math.sin(n)*t),height:Math.abs(Math.sin(n)*e)+Math.abs(Math.cos(n)*t)}}async function cG(e,t,r=0,n={horizontal:!1,vertical:!1}){const i=await lG(e),o=document.createElement("canvas"),a=o.getContext("2d");if(!a)return null;const s=ub(r),{width:u,height:l}=uG(i.width,i.height,r);o.width=u,o.height=l,a.translate(u/2,l/2),a.rotate(s),a.scale(n.horizontal?-1:1,n.vertical?-1:1),a.translate(-i.width/2,-i.height/2),a.drawImage(i,0,0);const c=a.getImageData(t.x,t.y,t.width,t.height);return o.width=t.width,o.height=t.height,a.putImageData(c,0,0),new Promise((f,d)=>{o.toBlob(h=>{f(h)},"image/png")})}const cb=({title:e,open:t,onClose:r,onFileCropped:n,image:{width:i,height:o,aspect:a,imgSrc:s=""}})=>{const[u,l]=g.useState({x:0,y:0}),[c,f]=g.useState(1),d=g.useRef(),h=g.useRef(),m=async(x,b)=>{try{const C=await cG(s,b,0);d.current=new File([C],"image.png",{type:C.type})}catch{n(void 0)}},p=async()=>{n(h.current),r()},v=()=>{n(d.current),h.current=d.current,r()};return y.jsxs(P.Dialog,{open:t,scroll:"body",PaperProps:{sx:{maxWidth:"100%"}},children:[y.jsx(P.DialogTitle,{children:e}),y.jsx(P.DialogContent,{children:y.jsx(P.Stack,{position:"relative",alignItems:"center",justifyContent:"center",style:{position:"relative",width:i*1.1,height:o*1.1,margin:"auto"},children:y.jsx(sG,{image:s,crop:u,zoom:c,minZoom:1,maxZoom:5,cropSize:{width:i,height:o},aspect:a,onCropChange:l,onZoomChange:f,onCropComplete:m,objectFit:"horizontal-cover"})})}),y.jsxs(P.DialogActions,{children:[y.jsxs(P.Stack,{direction:"row",gap:3,flex:1,alignItems:"center",maxWidth:200,mr:"auto",children:[y.jsx(P.Typography,{variant:"body1",children:"Zoom"}),y.jsx(P.Slider,{value:c,onChange:(x,b)=>f(Array.isArray(b)?b[0]:b),min:1,max:5,size:"medium",step:.5})]}),y.jsx(P.Button,{variant:"soft",size:"medium",onClick:p,children:"Descartar"}),y.jsx(P.Button,{variant:"contained",size:"medium",onClick:v,children:"Salvar"})]})]})},fG=$t(P.Box)(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=t.variant==="filled",i=t.variant==="outlined",o=t.variant==="soft",a={...t.color==="default"&&{...i&&{backgroundColor:"transparent",color:e.palette.text.primary,border:`1px solid ${W(e.palette.grey[500],.32)}`},...o&&{color:r?e.palette.text.primary:e.palette.common.white,backgroundColor:W(e.palette.grey[500],.16)}}},s={...t.color!=="default"&&{...n&&{color:e.palette[t.color].contrastText,backgroundColor:e.palette[t.color].main},...i&&{backgroundColor:"transparent",color:e.palette[t.color].main,border:`1px solid ${e.palette[t.color].main}`},...o&&{color:e.palette[t.color][r?"dark":"light"],backgroundColor:W(e.palette[t.color].main,.16)}}};return{height:24,minWidth:22,lineHeight:0,borderRadius:6,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",textTransform:"capitalize",padding:e.spacing(0,1),color:e.palette.grey[800],fontSize:e.typography.pxToRem(12),fontFamily:e.typography.fontFamily,backgroundColor:e.palette.grey[300],fontWeight:e.typography.fontWeightBold,...s,...a}}),fb=g.forwardRef(({children:e,color:t="default",variant:r="soft",startIcon:n,endIcon:i,sx:o,...a},s)=>{const u=mi(),l={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return y.jsxs(fG,{ref:s,component:"span",ownerState:{color:t,variant:r},sx:{...n&&{pl:.75},...i&&{pr:.75},...o},theme:u,...a,children:[n&&y.jsxs(P.Box,{sx:{mr:.75,...l},children:[" ",n," "]}),e,i&&y.jsxs(P.Box,{sx:{ml:.75,...l},children:[" ",i," "]})]})});fb.displayName="Label";function gn(e){return typeof e=="string"||e instanceof String}function db(e){var t;return typeof e=="object"&&e!=null&&(e==null||(t=e.constructor)==null?void 0:t.name)==="Object"}function hb(e,t){return Array.isArray(t)?hb(e,(r,n)=>t.includes(n)):Object.entries(e).reduce((r,n)=>{let[i,o]=n;return t(o,i)&&(r[i]=o),r},{})}const ye={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function dG(e){switch(e){case ye.LEFT:return ye.FORCE_LEFT;case ye.RIGHT:return ye.FORCE_RIGHT;default:return e}}function Sd(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function Tl(e,t){if(t===e)return!0;const r=Array.isArray(t),n=Array.isArray(e);let i;if(r&&n){if(t.length!=e.length)return!1;for(i=0;i<t.length;i++)if(!Tl(t[i],e[i]))return!1;return!0}if(r!=n)return!1;if(t&&e&&typeof t=="object"&&typeof e=="object"){const o=t instanceof Date,a=e instanceof Date;if(o&&a)return t.getTime()==e.getTime();if(o!=a)return!1;const s=t instanceof RegExp,u=e instanceof RegExp;if(s&&u)return t.toString()==e.toString();if(s!=u)return!1;const l=Object.keys(t);for(i=0;i<l.length;i++)if(!Object.prototype.hasOwnProperty.call(e,l[i]))return!1;for(i=0;i<l.length;i++)if(!Tl(e[l[i]],t[l[i]]))return!1;return!0}else if(t&&e&&typeof t=="function"&&typeof e=="function")return t.toString()===e.toString();return!1}class hG{constructor(t){for(Object.assign(this,t);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?ye.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?ye.RIGHT:ye.LEFT}}function _e(e,t){return new _e.InputMask(e,t)}function pb(e){if(e==null)throw new Error("mask property should be defined");return e instanceof RegExp?_e.MaskedRegExp:gn(e)?_e.MaskedPattern:e===Date?_e.MaskedDate:e===Number?_e.MaskedNumber:Array.isArray(e)||e===Array?_e.MaskedDynamic:_e.Masked&&e.prototype instanceof _e.Masked?e:_e.Masked&&e instanceof _e.Masked?e.constructor:e instanceof Function?_e.MaskedFunction:(console.warn("Mask not found for mask",e),_e.Masked)}function _l(e){if(!e)throw new Error("Options in not defined");if(_e.Masked){if(e.prototype instanceof _e.Masked)return{mask:e};const{mask:t=void 0,...r}=e instanceof _e.Masked?{mask:e}:db(e)&&e.mask instanceof _e.Masked?e:{};if(t){const n=t.mask;return{...hb(t,(i,o)=>!o.startsWith("_")),mask:t.constructor,_mask:n,...r}}}return db(e)?{...e}:{mask:e}}function Wn(e){if(_e.Masked&&e instanceof _e.Masked)return e;const t=_l(e),r=pb(t.mask);if(!r)throw new Error("Masked class is not found for provided mask, appropriate module needs to be imported manually before creating mask.");return t.mask===r&&delete t.mask,t._mask&&(t.mask=t._mask,delete t._mask),new r(t)}_e.createMask=Wn;class Ed{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch{}return t??this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch{}return t??this.value.length}select(t,r){if(!(t==null||r==null||t===this.selectionStart&&r===this.selectionEnd))try{this._unsafeSelect(t,r)}catch{}}get isActive(){return!1}}_e.MaskElement=Ed;class Hn extends Ed{constructor(t){super(),this.input=t,this._handlers={}}get rootElement(){var t,r,n;return(t=(r=(n=this.input).getRootNode)==null?void 0:r.call(n))!=null?t:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(t){Object.keys(t).forEach(r=>this._toggleEventHandler(Hn.EVENTS_MAP[r],t[r]))}unbindEvents(){Object.keys(this._handlers).forEach(t=>this._toggleEventHandler(t))}_toggleEventHandler(t,r){this._handlers[t]&&(this.input.removeEventListener(t,this._handlers[t]),delete this._handlers[t]),r&&(this.input.addEventListener(t,r),this._handlers[t]=r)}}Hn.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},_e.HTMLMaskElement=Hn;class pG extends Hn{constructor(t){super(t),this.input=t,this._handlers={}}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,r){this.input.setSelectionRange(t,r)}get value(){return this.input.value}set value(t){this.input.value=t}}_e.HTMLMaskElement=Hn;class gb extends Hn{get _unsafeSelectionStart(){const t=this.rootElement,r=t.getSelection&&t.getSelection(),n=r&&r.anchorOffset,i=r&&r.focusOffset;return i==null||n==null||n<i?n:i}get _unsafeSelectionEnd(){const t=this.rootElement,r=t.getSelection&&t.getSelection(),n=r&&r.anchorOffset,i=r&&r.focusOffset;return i==null||n==null||n>i?n:i}_unsafeSelect(t,r){if(!this.rootElement.createRange)return;const n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,t),n.setEnd(this.input.lastChild||this.input,r);const i=this.rootElement,o=i.getSelection&&i.getSelection();o&&(o.removeAllRanges(),o.addRange(n))}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}}_e.HTMLContenteditableMaskElement=gb;class gG{constructor(t,r){this.el=t instanceof Ed?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new gb(t):new pG(t),this.masked=Wn(r),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(t){var r;return t==null||((r=this.masked)==null?void 0:r.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof _e.Masked)&&this.masked.constructor===pb(t)){this.masked.updateOptions({mask:t});return}const r=t instanceof _e.Masked?t:Wn({mask:t});r.unmaskedValue=this.masked.unmaskedValue,this.masked=r}get value(){return this._value}set value(t){this.value!==t&&(this.masked.value=t,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){this.unmaskedValue!==t&&(this.masked.unmaskedValue=t,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(t){this.masked.typedValueEquals(t)||(this.masked.typedValue=t,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(t,r){const n=this._listeners[t];n&&n.forEach(i=>i(r))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){!this.el||!this.el.isActive||(this.el.select(t,t),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){const t=this.masked.unmaskedValue,r=this.masked.value,n=this.displayValue,i=this.unmaskedValue!==t||this.value!==r;this._unmaskedValue=t,this._value=r,this.el.value!==n&&(this.el.value=n),i&&this._fireChangeEvents()}updateOptions(t){const{mask:r,...n}=t,i=!this.maskEquals(r),o=!Tl(this.masked,n);i&&(this.mask=r),o&&this.masked.updateOptions(n),(i||o)&&this.updateControl()}updateCursor(t){t!=null&&(this.cursorPos=t,this._delayUpdateCursor(t))}_delayUpdateCursor(t){this._abortUpdateCursor(),this._changingCursorPos=t,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,ye.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(t,r){return this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(r),this}off(t,r){if(!this._listeners[t])return this;if(!r)return delete this._listeners[t],this;const n=this._listeners[t].indexOf(r);return n>=0&&this._listeners[t].splice(n,1),this}_onInput(t){if(this._inputEvent=t,this._abortUpdateCursor(),!this._selection)return this.updateValue();const r=new hG({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),n=this.masked.rawInputValue,i=this.masked.splice(r.startChangePos,r.removed.length,r.inserted,r.removeDirection,{input:!0,raw:!0}).offset,o=n===this.masked.rawInputValue?r.removeDirection:ye.NONE;let a=this.masked.nearestInputPos(r.startChangePos+i,o);o!==ye.NONE&&(a=this.masked.nearestInputPos(a,ye.NONE)),this.updateControl(),this.updateCursor(a),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(t){t.preventDefault(),t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}_e.InputMask=gG;class rt{static normalize(t){return Array.isArray(t)?t:[t,new rt]}constructor(t){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},t)}aggregate(t){return this.rawInserted+=t.rawInserted,this.skip=this.skip||t.skip,this.inserted+=t.inserted,this.tailShift+=t.tailShift,this}get offset(){return this.tailShift+this.inserted.length}}_e.ChangeDetails=rt;class qr{constructor(t,r,n){t===void 0&&(t=""),r===void 0&&(r=0),this.value=t,this.from=r,this.stop=n}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";const r=this.value[0];return this.value=this.value.slice(1),r}shift(){if(!this.value.length)return"";const t=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),t}}class or{constructor(t){this._value="",this._update({...or.DEFAULTS,...t}),this._initialized=!0}updateOptions(t){Object.keys(t).length&&this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:!0})}resolve(t,r){r===void 0&&(r={input:!0}),this.reset(),this.append(t,r,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){this.format?this.value=this.format(t,this):this.unmaskedValue=String(t)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(t){this.resolve(t,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(t,r){return t}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),Math.min(this.displayValue.length,r-t)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this.displayValue.slice(t,r)}extractTail(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),new qr(this.extractInput(t,r),t)}appendTail(t){return gn(t)&&(t=new qr(String(t))),t.appendTo(this)}_appendCharRaw(t,r){return t?(this._value+=t,new rt({inserted:t,rawInserted:t})):new rt}_appendChar(t,r,n){r===void 0&&(r={});const i=this.state;let o;if([t,o]=this.doPrepareChar(t,r),o=o.aggregate(this._appendCharRaw(t,r)),o.inserted){let a,s=this.doValidate(r)!==!1;if(s&&n!=null){const u=this.state;this.overwrite===!0&&(a=n.state,n.unshift(this.displayValue.length-o.tailShift));let l=this.appendTail(n);s=l.rawInserted===n.toString(),!(s&&l.inserted)&&this.overwrite==="shift"&&(this.state=u,a=n.state,n.shift(),l=this.appendTail(n),s=l.rawInserted===n.toString()),s&&l.inserted&&(this.state=u)}s||(o=new rt,this.state=i,n&&a&&(n.state=a))}return o}_appendPlaceholder(){return new rt}_appendEager(){return new rt}append(t,r,n){if(!gn(t))throw new Error("value should be string");const i=gn(n)?new qr(String(n)):n;r!=null&&r.tail&&(r._beforeTailState=this.state);let o;[t,o]=this.doPrepare(t,r);for(let a=0;a<t.length;++a){const s=this._appendChar(t[a],r,i);if(!s.rawInserted&&!this.doSkipInvalid(t[a],r,i))break;o.aggregate(s)}return(this.eager===!0||this.eager==="append")&&r!=null&&r.input&&t&&o.aggregate(this._appendEager()),i!=null&&(o.tailShift+=this.appendTail(i).tailShift),o}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this._value=this.displayValue.slice(0,t)+this.displayValue.slice(r),new rt}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=!0;const r=this.rawInputValue,n=this.value,i=t();return this.rawInputValue=r,this.value&&this.value!==n&&n.indexOf(this.value)===0&&this.append(n.slice(this.displayValue.length),{},""),delete this._refreshing,i}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=!0;const r=this.state,n=t(this);return this.state=r,delete this._isolated,n}doSkipInvalid(t,r,n){return!!this.skipInvalid}doPrepare(t,r){return r===void 0&&(r={}),rt.normalize(this.prepare?this.prepare(t,this,r):t)}doPrepareChar(t,r){return r===void 0&&(r={}),rt.normalize(this.prepareChar?this.prepareChar(t,this,r):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){this.commit&&this.commit(this.value,this)}splice(t,r,n,i,o){i===void 0&&(i=ye.NONE),o===void 0&&(o={input:!0});const a=t+r,s=this.extractTail(a),u=this.eager===!0||this.eager==="remove";let l;u&&(i=dG(i),l=this.extractInput(0,a,{raw:!0}));let c=t;const f=new rt;if(i!==ye.NONE&&(c=this.nearestInputPos(t,r>1&&t!==0&&!u?ye.NONE:i),f.tailShift=c-t),f.aggregate(this.remove(c)),u&&i!==ye.NONE&&l===this.rawInputValue)if(i===ye.FORCE_LEFT){let d;for(;l===this.rawInputValue&&(d=this.displayValue.length);)f.aggregate(new rt({tailShift:-1})).aggregate(this.remove(d-1))}else i===ye.FORCE_RIGHT&&s.unshift();return f.aggregate(this.append(n,o,s))}maskEquals(t){return this.mask===t}typedValueEquals(t){const r=this.typedValue;return t===r||or.EMPTY_VALUES.includes(t)&&or.EMPTY_VALUES.includes(r)||(this.format?this.format(t,this)===this.format(this.typedValue,this):!1)}}or.DEFAULTS={skipInvalid:!0},or.EMPTY_VALUES=[void 0,null,""],_e.Masked=or;class Un{constructor(t,r){t===void 0&&(t=[]),r===void 0&&(r=0),this.chunks=t,this.from=r}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=gn(t)?new qr(String(t)):t;const r=this.chunks[this.chunks.length-1],n=r&&(r.stop===t.stop||t.stop==null)&&t.from===r.from+r.toString().length;if(t instanceof qr)n?r.extend(t.toString()):this.chunks.push(t);else if(t instanceof Un){if(t.stop==null){let i;for(;t.chunks.length&&t.chunks[0].stop==null;)i=t.chunks.shift(),i.from+=t.from,this.extend(i)}t.toString()&&(t.stop=t.blockIndex,this.chunks.push(t))}}appendTo(t){if(!(t instanceof _e.MaskedPattern))return new qr(this.toString()).appendTo(t);const r=new rt;for(let n=0;n<this.chunks.length&&!r.skip;++n){const i=this.chunks[n],o=t._mapPosToBlock(t.displayValue.length),a=i.stop;let s;if(a!=null&&(!o||o.index<=a)){if(i instanceof Un||t._stops.indexOf(a)>=0){const u=t._appendPlaceholder(a);r.aggregate(u)}s=i instanceof Un&&t._blocks[a]}if(s){const u=s.appendTail(i);u.skip=!1,r.aggregate(u),t._value+=u.inserted;const l=i.toString().slice(u.rawInserted.length);l&&r.aggregate(t.append(l,{tail:!0}))}else r.aggregate(t.append(i.toString(),{tail:!0}))}return r}get state(){return{chunks:this.chunks.map(t=>t.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){const{chunks:r,...n}=t;Object.assign(this,n),this.chunks=r.map(i=>{const o="chunks"in i?new Un:new qr;return o.state=i,o})}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";const r=t!=null?t-this.from:t;let n=0;for(;n<this.chunks.length;){const i=this.chunks[n],o=i.unshift(r);if(i.toString()){if(!o)break;++n}else this.chunks.splice(n,1);if(o)return o}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;for(;0<=t;){const r=this.chunks[t],n=r.shift();if(r.toString()){if(!n)break;--t}else this.chunks.splice(t,1);if(n)return n}return""}}class mG{constructor(t,r){this.masked=t,this._log=[];const{offset:n,index:i}=t._mapPosToBlock(r)||(r<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=n,this.index=i,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){const t=this._log.pop();return t&&(this.state=t),t}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(t){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((r=this.block)==null?void 0:r.displayValue.length)||0){var r;if(t())return this.ok=!0}return this.ok=!1}_pushRight(t){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(t())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,ye.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,ye.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,ye.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,ye.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,ye.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,ye.NONE),!0})}}class mb{constructor(t){Object.assign(this,t),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._value=this._value.slice(0,t)+this._value.slice(r),this._value||(this._isRawInput=!1),new rt}nearestInputPos(t,r){r===void 0&&(r=ye.NONE);const n=0,i=this._value.length;switch(r){case ye.LEFT:case ye.FORCE_LEFT:return n;case ye.NONE:case ye.RIGHT:case ye.FORCE_RIGHT:default:return i}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._isRawInput?r-t:0}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),n===void 0&&(n={}),n.raw&&this._isRawInput&&this._value.slice(t,r)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(t,r){r===void 0&&(r={});const n=new rt;if(this.isFilled)return n;const i=this.eager===!0||this.eager==="append",a=this.char===t&&(this.isUnmasking||r.input||r.raw)&&(!r.raw||!i)&&!r.tail;return a&&(n.rawInserted=this.char),this._value=n.inserted=this.char,this._isRawInput=a&&(r.raw||r.input),n}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const t=new rt;return this.isFilled||(this._value=t.inserted=this.char),t}extractTail(){return new qr("")}appendTail(t){return gn(t)&&(t=new qr(String(t))),t.appendTo(this)}append(t,r,n){const i=this._appendChar(t[0],r);return n!=null&&(i.tailShift+=this.appendTail(n).tailShift),i}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value,this._isRawInput=!!t._rawInputValue}}class Ol{constructor(t){const{parent:r,isOptional:n,placeholderChar:i,displayChar:o,lazy:a,eager:s,...u}=t;this.masked=Wn(u),Object.assign(this,{parent:r,isOptional:n,placeholderChar:i,displayChar:o,lazy:a,eager:s})}reset(){this.isFilled=!1,this.masked.reset()}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),t===0&&r>=1?(this.isFilled=!1,this.masked.remove(t,r)):new rt}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(t,r){if(r===void 0&&(r={}),this.isFilled)return new rt;const n=this.masked.state,i=this.masked._appendChar(t,this.currentMaskFlags(r));return i.inserted&&this.doValidate(r)===!1&&(i.inserted=i.rawInserted="",this.masked.state=n),!i.inserted&&!this.isOptional&&!this.lazy&&!r.input&&(i.inserted=this.placeholderChar),i.skip=!i.inserted&&!this.isOptional,this.isFilled=!!i.inserted,i}append(t,r,n){return this.masked.append(t,this.currentMaskFlags(r),n)}_appendPlaceholder(){const t=new rt;return this.isFilled||this.isOptional||(this.isFilled=!0,t.inserted=this.placeholderChar),t}_appendEager(){return new rt}extractTail(t,r){return this.masked.extractTail(t,r)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.masked.extractInput(t,r,n)}nearestInputPos(t,r){r===void 0&&(r=ye.NONE);const n=0,i=this.value.length,o=Math.min(Math.max(t,n),i);switch(r){case ye.LEFT:case ye.FORCE_LEFT:return this.isComplete?o:n;case ye.RIGHT:case ye.FORCE_RIGHT:return this.isComplete?o:i;case ye.NONE:default:return o}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.value.slice(t,r).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked,this.isFilled=t.isFilled}currentMaskFlags(t){var r;return{...t,_beforeTailState:(t==null||(r=t._beforeTailState)==null?void 0:r.masked)||(t==null?void 0:t._beforeTailState)}}}Ol.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class vG extends or{updateOptions(t){super.updateOptions(t)}_update(t){const r=t.mask;r&&(t.validate=n=>n.search(r)>=0),super._update(t)}}_e.MaskedRegExp=vG;class ar extends or{constructor(t){super({...ar.DEFAULTS,...t,definitions:Object.assign({},Ol.DEFAULT_DEFINITIONS,t==null?void 0:t.definitions)})}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions),super._update(t),this._rebuildMask()}_rebuildMask(){const t=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const r=this.mask;if(!r||!t)return;let n=!1,i=!1;for(let o=0;o<r.length;++o){if(this.blocks){const l=r.slice(o),c=Object.keys(this.blocks).filter(d=>l.indexOf(d)===0);c.sort((d,h)=>h.length-d.length);const f=c[0];if(f){const{expose:d,...h}=_l(this.blocks[f]),m=Wn({lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,...h,parent:this});m&&(this._blocks.push(m),d&&(this.exposeBlock=m),this._maskedBlocks[f]||(this._maskedBlocks[f]=[]),this._maskedBlocks[f].push(this._blocks.length-1)),o+=f.length-1;continue}}let a=r[o],s=a in t;if(a===ar.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(a==="{"||a==="}"){n=!n;continue}if(a==="["||a==="]"){i=!i;continue}if(a===ar.ESCAPE_CHAR){if(++o,a=r[o],!a)break;s=!1}const u=s?new Ol({isOptional:i,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,..._l(t[a]),parent:this}):new mb({char:a,eager:this.eager,isUnmasking:n});this._blocks.push(u)}}get state(){return{...super.state,_blocks:this._blocks.map(t=>t.state)}}set state(t){const{_blocks:r,...n}=t;this._blocks.forEach((i,o)=>i.state=r[o]),super.state=n}reset(){super.reset(),this._blocks.forEach(t=>t.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(t=>t.isComplete)}get isFilled(){return this._blocks.every(t=>t.isFilled)}get isFixed(){return this._blocks.every(t=>t.isFixed)}get isOptional(){return this._blocks.every(t=>t.isOptional)}doCommit(){this._blocks.forEach(t=>t.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((t,r)=>t+=r.unmaskedValue,"")}set unmaskedValue(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t,this.appendTail(r),this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((t,r)=>t+=r.value,"")}set value(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t,this.appendTail(r),this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t,this.appendTail(r),this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce((t,r)=>t+=r.displayValue,"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;const r=new rt;let n=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(n==null)return r;this._blocks[n].isFilled&&++n;for(let i=n;i<this._blocks.length;++i){const o=this._blocks[i]._appendEager();if(!o.inserted)break;r.aggregate(o)}return r}_appendCharRaw(t,r){r===void 0&&(r={});const n=this._mapPosToBlock(this.displayValue.length),i=new rt;if(!n)return i;for(let a=n.index;;++a){var o;const s=this._blocks[a];if(!s)break;const u=s._appendChar(t,{...r,_beforeTailState:(o=r._beforeTailState)==null||(o=o._blocks)==null?void 0:o[a]}),l=u.skip;if(i.aggregate(u),l||u.rawInserted)break}return i}extractTail(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);const n=new Un;return t===r||this._forEachBlocksInRange(t,r,(i,o,a,s)=>{const u=i.extractTail(a,s);u.stop=this._findStopBefore(o),u.from=this._blockStartPos(o),u instanceof Un&&(u.blockIndex=o),n.extend(u)}),n}extractInput(t,r,n){if(t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),n===void 0&&(n={}),t===r)return"";let i="";return this._forEachBlocksInRange(t,r,(o,a,s,u)=>{i+=o.extractInput(s,u,n)}),i}_findStopBefore(t){let r;for(let n=0;n<this._stops.length;++n){const i=this._stops[n];if(i<=t)r=i;else break}return r}_appendPlaceholder(t){const r=new rt;if(this.lazy&&t==null)return r;const n=this._mapPosToBlock(this.displayValue.length);if(!n)return r;const i=n.index,o=t??this._blocks.length;return this._blocks.slice(i,o).forEach(a=>{if(!a.lazy||t!=null){var s;const u=a._appendPlaceholder((s=a._blocks)==null?void 0:s.length);this._value+=u.inserted,r.aggregate(u)}}),r}_mapPosToBlock(t){let r="";for(let n=0;n<this._blocks.length;++n){const i=this._blocks[n],o=r.length;if(r+=i.displayValue,t<=r.length)return{index:n,offset:t-o}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce((r,n)=>r+=n.displayValue.length,0)}_forEachBlocksInRange(t,r,n){r===void 0&&(r=this.displayValue.length);const i=this._mapPosToBlock(t);if(i){const o=this._mapPosToBlock(r),a=o&&i.index===o.index,s=i.offset,u=o&&a?o.offset:this._blocks[i.index].displayValue.length;if(n(this._blocks[i.index],i.index,s,u),o&&!a){for(let l=i.index+1;l<o.index;++l)n(this._blocks[l],l,0,this._blocks[l].displayValue.length);n(this._blocks[o.index],o.index,0,o.offset)}}}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);const n=super.remove(t,r);return this._forEachBlocksInRange(t,r,(i,o,a,s)=>{n.aggregate(i.remove(a,s))}),n}nearestInputPos(t,r){if(r===void 0&&(r=ye.NONE),!this._blocks.length)return 0;const n=new mG(this,t);if(r===ye.NONE)return n.pushRightBeforeInput()||(n.popState(),n.pushLeftBeforeInput())?n.pos:this.displayValue.length;if(r===ye.LEFT||r===ye.FORCE_LEFT){if(r===ye.LEFT){if(n.pushRightBeforeFilled(),n.ok&&n.pos===t)return t;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),r===ye.LEFT){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&&n.pos<=t||(n.popState(),n.ok&&n.pos<=t))return n.pos;n.popState()}return n.ok?n.pos:r===ye.FORCE_LEFT?0:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:0)}return r===ye.RIGHT||r===ye.FORCE_RIGHT?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:r===ye.FORCE_RIGHT?this.displayValue.length:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:this.nearestInputPos(t,ye.LEFT))):t}totalInputPositions(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let n=0;return this._forEachBlocksInRange(t,r,(i,o,a,s)=>{n+=i.totalInputPositions(a,s)}),n}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){const r=this._maskedBlocks[t];return r?r.map(n=>this._blocks[n]):[]}}ar.DEFAULTS={lazy:!0,placeholderChar:"_"},ar.STOP_CHAR="`",ar.ESCAPE_CHAR="\\",ar.InputDefinition=Ol,ar.FixedDefinition=mb,_e.MaskedPattern=ar;class kl extends ar{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{to:r=this.to||0,from:n=this.from||0,maxLength:i=this.maxLength||0,autofix:o=this.autofix,...a}=t;this.to=r,this.from=n,this.maxLength=Math.max(String(r).length,i),this.autofix=o;const s=String(this.from).padStart(this.maxLength,"0"),u=String(this.to).padStart(this.maxLength,"0");let l=0;for(;l<u.length&&u[l]===s[l];)++l;a.mask=u.slice(0,l).replace(/0/g,"\\0")+"0".repeat(this.maxLength-l),super._update(a)}get isComplete(){return super.isComplete&&!!this.value}boundaries(t){let r="",n="";const[,i,o]=t.match(/^(\D*)(\d*)(\D*)/)||[];return o&&(r="0".repeat(i.length)+o,n="9".repeat(i.length)+o),r=r.padEnd(this.maxLength,"0"),n=n.padEnd(this.maxLength,"9"),[r,n]}doPrepareChar(t,r){r===void 0&&(r={});let n;if([t,n]=super.doPrepareChar(t.replace(/\D/g,""),r),!this.autofix||!t)return[t,n];const i=String(this.from).padStart(this.maxLength,"0"),o=String(this.to).padStart(this.maxLength,"0"),a=this.value+t;if(a.length>this.maxLength)return["",n];const[s,u]=this.boundaries(a);return Number(u)<this.from?[i[a.length-1],n]:Number(s)>this.to?this.autofix==="pad"&&a.length<this.maxLength?["",n.aggregate(this.append(i[a.length-1]+t,r))]:[o[a.length-1],n]:[t,n]}doValidate(t){const r=this.value;if(r.search(/[^0]/)===-1&&r.length<=this._matchFrom)return!0;const[i,o]=this.boundaries(r);return this.from<=Number(o)&&Number(i)<=this.to&&super.doValidate(t)}}_e.MaskedRange=kl;class Yn extends ar{constructor(t){const{mask:r,pattern:n,...i}={...Yn.DEFAULTS,...t};super({...i,mask:gn(r)?r:n})}updateOptions(t){super.updateOptions(t)}_update(t){const{mask:r,pattern:n,blocks:i,...o}={...Yn.DEFAULTS,...t},a=Object.assign({},Yn.GET_DEFAULT_BLOCKS());t.min&&(a.Y.from=t.min.getFullYear()),t.max&&(a.Y.to=t.max.getFullYear()),t.min&&t.max&&a.Y.from===a.Y.to&&(a.m.from=t.min.getMonth()+1,a.m.to=t.max.getMonth()+1,a.m.from===a.m.to&&(a.d.from=t.min.getDate(),a.d.to=t.max.getDate())),Object.assign(a,this.blocks,i),Object.keys(a).forEach(s=>{const u=a[s];!("autofix"in u)&&"autofix"in t&&(u.autofix=t.autofix)}),super._update({...o,mask:gn(r)?r:n,blocks:a})}doValidate(t){const r=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&r!=null&&(this.min==null||this.min<=r)&&(this.max==null||r<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}}Yn.GET_DEFAULT_BLOCKS=()=>({d:{mask:kl,from:1,to:31,maxLength:2},m:{mask:kl,from:1,to:12,maxLength:2},Y:{mask:kl,from:1900,to:9999}}),Yn.DEFAULTS={mask:Date,pattern:"d{.}`m{.}`Y",format:(e,t)=>{if(!e)return"";const r=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),i=e.getFullYear();return[r,n,i].join(".")},parse:(e,t)=>{const[r,n,i]=e.split(".").map(Number);return new Date(i,n-1,r)}},_e.MaskedDate=Yn;class ya extends or{constructor(t){super({...ya.DEFAULTS,...t}),this.currentMask=void 0}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),"mask"in t&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(t.mask)?t.mask.map(r=>{const{expose:n,...i}=_l(r),o=Wn({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...i});return n&&(this.exposeMask=o),o}):[])}_appendCharRaw(t,r){r===void 0&&(r={});const n=this._applyDispatch(t,r);return this.currentMask&&n.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(r))),n}_applyDispatch(t,r,n){t===void 0&&(t=""),r===void 0&&(r={}),n===void 0&&(n="");const i=r.tail&&r._beforeTailState!=null?r._beforeTailState._value:this.value,o=this.rawInputValue,a=r.tail&&r._beforeTailState!=null?r._beforeTailState._rawInputValue:o,s=o.slice(a.length),u=this.currentMask,l=new rt,c=u==null?void 0:u.state;if(this.currentMask=this.doDispatch(t,{...r},n),this.currentMask)if(this.currentMask!==u){if(this.currentMask.reset(),a){const f=this.currentMask.append(a,{raw:!0});l.tailShift=f.inserted.length-i.length}s&&(l.tailShift+=this.currentMask.append(s,{raw:!0,tail:!0}).tailShift)}else c&&(this.currentMask.state=c);return l}_appendPlaceholder(){const t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}_appendEager(){const t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}appendTail(t){const r=new rt;return t&&r.aggregate(this._applyDispatch("",{},t)),r.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var r,n;return{...t,_beforeTailState:((r=t._beforeTailState)==null?void 0:r.currentMaskRef)===this.currentMask&&((n=t._beforeTailState)==null?void 0:n.currentMask)||t._beforeTailState}}doDispatch(t,r,n){return r===void 0&&(r={}),n===void 0&&(n=""),this.dispatch(t,this,r,n)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,r){r===void 0&&(r={});let[n,i]=super.doPrepare(t,r);if(this.currentMask){let o;[n,o]=super.doPrepare(n,this.currentMaskFlags(r)),i=i.aggregate(o)}return[n,i]}doPrepareChar(t,r){r===void 0&&(r={});let[n,i]=super.doPrepareChar(t,r);if(this.currentMask){let o;[n,o]=super.doPrepareChar(n,this.currentMaskFlags(r)),i=i.aggregate(o)}return[n,i]}reset(){var t;(t=this.currentMask)==null||t.reset(),this.compiledMasks.forEach(r=>r.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){this.exposeMask?(this.exposeMask.value=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){this.exposeMask?(this.exposeMask.unmaskedValue=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t,this.currentMask=this.exposeMask,this._applyDispatch();return}let r=String(t);this.currentMask&&(this.currentMask.typedValue=t,r=this.currentMask.unmaskedValue),this.unmaskedValue=r}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return!!((t=this.currentMask)!=null&&t.isComplete)}get isFilled(){var t;return!!((t=this.currentMask)!=null&&t.isFilled)}remove(t,r){const n=new rt;return this.currentMask&&n.aggregate(this.currentMask.remove(t,r)).aggregate(this._applyDispatch()),n}get state(){var t;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(r=>r.state),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state}}set state(t){const{compiledMasks:r,currentMaskRef:n,currentMask:i,...o}=t;r&&this.compiledMasks.forEach((a,s)=>a.state=r[s]),n!=null&&(this.currentMask=n,this.currentMask.state=i),super.state=o}extractInput(t,r,n){return this.currentMask?this.currentMask.extractInput(t,r,n):""}extractTail(t,r){return this.currentMask?this.currentMask.extractTail(t,r):super.extractTail(t,r)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(t,r){return this.currentMask?this.currentMask.nearestInputPos(t,r):super.nearestInputPos(t,r)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every((r,n)=>{if(!t[n])return;const{mask:i,...o}=t[n];return Tl(r,o)&&r.maskEquals(i)}):super.maskEquals(t)}typedValueEquals(t){var r;return!!((r=this.currentMask)!=null&&r.typedValueEquals(t))}}ya.DEFAULTS=void 0,ya.DEFAULTS={dispatch:(e,t,r,n)=>{if(!t.compiledMasks.length)return;const i=t.rawInputValue,o=t.compiledMasks.map((a,s)=>{const u=t.currentMask===a,l=u?a.displayValue.length:a.nearestInputPos(a.displayValue.length,ye.FORCE_LEFT);return a.rawInputValue!==i?(a.reset(),a.append(i,{raw:!0})):u||a.remove(l),a.append(e,t.currentMaskFlags(r)),a.appendTail(n),{index:s,weight:a.rawInputValue.length,totalInputPositions:a.totalInputPositions(0,Math.max(l,a.nearestInputPos(a.displayValue.length,ye.FORCE_LEFT)))}});return o.sort((a,s)=>s.weight-a.weight||s.totalInputPositions-a.totalInputPositions),t.compiledMasks[o[0].index]}},_e.MaskedDynamic=ya;class yG extends ar{constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{enum:r,...n}=t;if(r){const i=r.map(s=>s.length),o=Math.min(...i),a=Math.max(...i)-o;n.mask="*".repeat(o),a&&(n.mask+="["+"*".repeat(a)+"]"),this.enum=r}super._update(n)}doValidate(t){return this.enum.some(r=>r.indexOf(this.unmaskedValue)===0)&&super.doValidate(t)}}_e.MaskedEnum=yG;class bG extends or{updateOptions(t){super.updateOptions(t)}_update(t){super._update({...t,validate:t.mask})}}_e.MaskedFunction=bG;class dr extends or{constructor(t){super({...dr.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),this._updateRegExps()}_updateRegExps(){const t="^"+(this.allowNegative?"[+|\\-]?":""),r="\\d*",n=(this.scale?"("+Sd(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+r+n),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(Sd).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(Sd(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const r=t.split(this.radix);return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),r.join(this.radix)}doPrepareChar(t,r){r===void 0&&(r={});const[n,i]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(r.input&&r.raw||!r.input&&!r.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),r);return t&&!n&&(i.skip=!0),n&&!this.allowPositive&&!this.value&&n!=="-"&&i.aggregate(this._appendChar("-")),[n,i]}_separatorsCount(t,r){r===void 0&&(r=!1);let n=0;for(let i=0;i<t;++i)this._value.indexOf(this.thousandsSeparator,i)===i&&(++n,r&&(t+=this.thousandsSeparator.length));return n}_separatorsCountFromSlice(t){return t===void 0&&(t=this._value),this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r),this._removeThousandsSeparators(super.extractInput(t,r,n))}_appendCharRaw(t,r){if(r===void 0&&(r={}),!this.thousandsSeparator)return super._appendCharRaw(t,r);const n=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,i=this._separatorsCountFromSlice(n);this._value=this._removeThousandsSeparators(this.value);const o=super._appendCharRaw(t,r);this._value=this._insertThousandsSeparators(this._value);const a=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,s=this._separatorsCountFromSlice(a);return o.tailShift+=(s-i)*this.thousandsSeparator.length,o.skip=!o.rawInserted&&t===this.thousandsSeparator,o}_findSeparatorAround(t){if(this.thousandsSeparator){const r=t-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,r);if(n<=t)return n}return-1}_adjustRangeWithSeparators(t,r){const n=this._findSeparatorAround(t);n>=0&&(t=n);const i=this._findSeparatorAround(r);return i>=0&&(r=i+this.thousandsSeparator.length),[t,r]}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r);const n=this.value.slice(0,t),i=this.value.slice(r),o=this._separatorsCount(n.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+i));const a=this._separatorsCountFromSlice(n);return new rt({tailShift:(a-o)*this.thousandsSeparator.length})}nearestInputPos(t,r){if(!this.thousandsSeparator)return t;switch(r){case ye.NONE:case ye.LEFT:case ye.FORCE_LEFT:{const n=this._findSeparatorAround(t-1);if(n>=0){const i=n+this.thousandsSeparator.length;if(t<i||this.value.length<=i||r===ye.FORCE_LEFT)return n}break}case ye.RIGHT:case ye.FORCE_RIGHT:{const n=this._findSeparatorAround(t);if(n>=0)return n+this.thousandsSeparator.length}}return t}doValidate(t){let r=!!this._removeThousandsSeparators(this.value).match(this._numberRegExp);if(r){const n=this.number;r=r&&!isNaN(n)&&(this.min==null||this.min>=0||this.min<=this.number)&&(this.max==null||this.max<=0||this.number<=this.max)}return r&&super.doValidate(t)}doCommit(){if(this.value){const t=this.number;let r=t;this.min!=null&&(r=Math.max(r,this.min)),this.max!=null&&(r=Math.min(r,this.max)),r!==t&&(this.unmaskedValue=this.format(r,this));let n=this.value;this.normalizeZeros&&(n=this._normalizeZeros(n)),this.padFractionalZeros&&this.scale>0&&(n=this._padFractionalZeros(n)),this._value=n}super.doCommit()}_normalizeZeros(t){const r=this._removeThousandsSeparators(t).split(this.radix);return r[0]=r[0].replace(/^(\D*)(0*)(\d*)/,(n,i,o,a)=>i+a),t.length&&!/\d$/.test(r[0])&&(r[0]=r[0]+"0"),r.length>1&&(r[1]=r[1].replace(/0*$/,""),r[1].length||(r.length=1)),this._insertThousandsSeparators(r.join(this.radix))}_padFractionalZeros(t){if(!t)return t;const r=t.split(this.radix);return r.length<2&&r.push(""),r[1]=r[1].padEnd(this.scale,"0"),r.join(this.radix)}doSkipInvalid(t,r,n){r===void 0&&(r={});const i=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===dr.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,r,n)&&!i}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,dr.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(dr.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||dr.EMPTY_VALUES.includes(t)&&dr.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}}dr.UNMASKED_RADIX=".",dr.EMPTY_VALUES=[...or.EMPTY_VALUES,0],dr.DEFAULTS={mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[dr.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},_e.MaskedNumber=dr;const Td={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function vb(e,t,r){t===void 0&&(t=Td.MASKED),r===void 0&&(r=Td.MASKED);const n=Wn(e);return i=>n.runIsolated(o=>(o[t]=i,o[r]))}function xG(e,t,r,n){return vb(t,r,n)(e)}_e.PIPE_TYPE=Td,_e.createPipe=vb,_e.pipe=xG;try{globalThis.IMask=_e}catch{}const yb={mask:T.oneOfType([T.array,T.func,T.string,T.instanceOf(RegExp),T.oneOf([Date,Number,_e.Masked]),T.instanceOf(_e.Masked)]),value:T.any,unmask:T.oneOfType([T.bool,T.oneOf(["typed"])]),prepare:T.func,prepareChar:T.func,validate:T.func,commit:T.func,overwrite:T.oneOfType([T.bool,T.oneOf(["shift"])]),eager:T.oneOfType([T.bool,T.oneOf(["append","remove"])]),skipInvalid:T.bool,onAccept:T.func,onComplete:T.func,placeholderChar:T.string,displayChar:T.string,lazy:T.bool,definitions:T.object,blocks:T.object,enum:T.arrayOf(T.string),maxLength:T.number,from:T.number,to:T.number,pattern:T.string,format:T.func,parse:T.func,autofix:T.oneOfType([T.bool,T.oneOf(["pad"])]),radix:T.string,thousandsSeparator:T.string,mapToRadix:T.arrayOf(T.string),scale:T.number,normalizeZeros:T.bool,padFractionalZeros:T.bool,min:T.oneOfType([T.number,T.instanceOf(Date)]),max:T.oneOfType([T.number,T.instanceOf(Date)]),dispatch:T.func,inputRef:T.oneOfType([T.func,T.shape({current:T.object})])},bb=Object.keys(yb).filter(e=>e!=="value"),wG=["value","unmask","onAccept","onComplete","inputRef"],CG=bb.filter(e=>wG.indexOf(e)<0);function SG(e){var t;const r=(t=class extends g.Component{constructor(o){super(o),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){const o=this.props,a=this._extractMaskOptionsFromProps(o);if(a.mask)this.maskRef?(this.maskRef.updateOptions(a),"value"in o&&o.value!==void 0&&(this.maskValue=o.value)):this.initMask(a);else if(this.destroyMask(),"value"in o&&o.value!==void 0){var s;(s=this.element)!=null&&s.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=o.value:this.element.value=o.value}}componentWillUnmount(){this.destroyMask()}_inputRef(o){this.element=o,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=o:this.props.inputRef(o))}initMask(o){o===void 0&&(o=this._extractMaskOptionsFromProps(this.props)),this.maskRef=_e(this.element,o).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(o){const{...a}=o;return Object.keys(a).filter(s=>CG.indexOf(s)<0).forEach(s=>{delete a[s]}),a}_extractNonMaskProps(o){const{...a}=o;return bb.forEach(s=>{delete a[s]}),"defaultValue"in a||(a.defaultValue=o.mask?"":a.value),delete a.value,a}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(o){this.maskRef&&(o=o==null&&this.props.unmask!=="typed"?"":o,this.props.unmask==="typed"?this.maskRef.typedValue=o:this.props.unmask?this.maskRef.unmaskedValue=o:this.maskRef.value=o)}_onAccept(o){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,o)}_onComplete(o){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,o)}render(){return g.createElement(e,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}},t.displayName=void 0,t.propTypes=void 0,t),n=e.displayName||e.name||"Component";return r.displayName="IMask("+n+")",r.propTypes=yb,g.forwardRef((i,o)=>g.createElement(r,{...i,ref:o}))}const EG=SG(e=>{let{inputRef:t,...r}=e;return g.createElement("input",{...r,ref:t})}),TG=(e,t)=>g.createElement(EG,{...e,ref:t});g.forwardRef(TG);function _G(e,t){let{onAccept:r,onComplete:n}=t===void 0?{}:t;const i=g.useRef(null),o=g.useRef(null),[a,s]=g.useState(!1),[u,l]=g.useState({}),[c,f]=g.useState(""),[d,h]=g.useState(""),[m,p]=g.useState(),v=g.useCallback(()=>{var C;a&&((C=o.current)==null||C.destroy(),o.current=null)},[]),x=g.useCallback(C=>{const E=o.current;E&&(l({value:E.value,unmaskedValue:E.unmaskedValue,typedValue:E.typedValue}),p(E.typedValue),h(E.unmaskedValue),f(E.value),r==null||r(E.value,E,C))},[r]),b=g.useCallback(()=>o.current&&(n==null?void 0:n(o.current.value,o.current)),[n]);return g.useEffect(()=>{const C=i.current;if(!C||!(e!=null&&e.mask))return v();const E=o.current;E?E==null||E.updateOptions(e):C&&e!=null&&e.mask&&(o.current=_e(C,e),x()),s(!!o.current)},[e,v,x]),g.useEffect(()=>{if(!o.current)return;const C=o.current;return C.on("accept",x),C.on("complete",b),()=>{C.off("accept",x),C.off("complete",b)}},[x,b]),g.useEffect(()=>{const{value:C,...E}=u,w=o.current;w&&a&&(C!==c&&(w.value=c),l(E))},[c]),g.useEffect(()=>{const{unmaskedValue:C,...E}=u,w=o.current;w&&a&&(C!==d&&(w.unmaskedValue=d),l(E))},[d]),g.useEffect(()=>{const{typedValue:C,...E}=u,w=o.current;w&&a&&(C!==m&&(w.typedValue=m),l(E))},[m]),g.useEffect(()=>v,[v]),{ref:i,maskRef:o,value:c,setValue:f,unmaskedValue:d,setUnmaskedValue:h,typedValue:m,setTypedValue:p}}const _d=g.forwardRef(({name:e,value:t,mask:r,onChange:n,...i},o)=>{const{ref:a,unmaskedValue:s,value:u,maskRef:l}=_G({mask:r});return g.useEffect(()=>{l.current.value=t||""},[l,t]),g.useEffect(()=>{n({target:{name:e,value:s||t||""}})},[e,s,t]),y.jsx(P.TextField,{inputRef:o,inputProps:{ref:a},name:e,value:u,onChange:()=>n({target:{name:e,value:s}}),...i})});_d.displayName="MaskedInput";function OG(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}const kG=$t("span")(({arrow:e,theme:t})=>{const i=`solid 1px ${W(t.palette.grey[500],.12)}`,o={borderRadius:"0 0 3px 0",top:-6,borderBottom:i,borderRight:i},a={borderRadius:"3px 0 0 0",bottom:-6,borderTop:i,borderLeft:i},s={borderRadius:"0 3px 0 0",left:-6,borderTop:i,borderRight:i},u={borderRadius:"0 0 0 3px",right:-6,borderBottom:i,borderLeft:i};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:'""',display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper},...e==="top-left"&&{...o,left:20},...e==="top-center"&&{...o,left:0,right:0,margin:"auto"},...e==="top-right"&&{...o,right:20},...e==="bottom-left"&&{...a,left:20},...e==="bottom-center"&&{...a,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...a,right:20},...e==="left-top"&&{...s,top:20},...e==="left-center"&&{...s,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...s,bottom:20},...e==="right-top"&&{...u,top:20},...e==="right-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...u,bottom:20}}}),MG=({open:e,children:t,arrow:r="top-right",disabledArrow:n,sx:i,...o})=>{const{style:a,anchorOrigin:s,transformOrigin:u}=OG(r);return y.jsxs(P.Popover,{open:!!e,anchorEl:e,anchorOrigin:s,transformOrigin:u,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...a,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...i}},...o,children:[!n&&y.jsx(kG,{arrow:r}),t]})},PG=({children:e,container:t})=>Rd.createPortal(e,document.getElementById(t)||document.body);var AG=!!(typeof window<"u"&&window.document&&window.document.createElement),DG=AG;const xb=xn(DG);var io=function(){return io=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},io.apply(this,arguments)},oo=null,wb=null;xb&&window.addEventListener("resize",function(){wb!==window.devicePixelRatio&&(wb=window.devicePixelRatio,oo=null)});function Cb(){if(oo===null){if(typeof document>"u")return oo=0,oo;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var r=t.getBoundingClientRect().right;e.removeChild(t),oo=r}return oo}function Sb(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function Eb(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Tb=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var a=o[1].replace(/\W+(.)/g,function(s,u){return u.toUpperCase()});switch(i.value){case"true":n[a]=!0;break;case"false":n[a]=!1;break;case void 0:n[a]=!0;break;default:n[a]=i.value}}return n},t);return r};function _b(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function Ob(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function kb(e){return".".concat(e.split(" ").join("."))}var $G=Object.freeze({__proto__:null,getElementWindow:Sb,getElementDocument:Eb,getOptions:Tb,addClasses:_b,removeClasses:Ob,classNamesToQuery:kb}),mn=Sb,Od=Eb,IG=Tb,vn=_b,yn=Ob,Kt=kb,Ml=function(){function e(t,r){r===void 0&&(r={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=mn(n.el);n.scrollXTicking||(i.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(i.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,vn(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){yn(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(vn(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){yn(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(i){n.mouseX=i.clientX,n.mouseY=i.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var o,a;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(o=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(a=n.isWithinBounds(n.axis.y.track.rect)),(o||a)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(i,"x"):n.onTrackClick(i,"x")),a&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(i,"y"):n.onTrackClick(i,"y"))))}},this.drag=function(i){var o,a,s,u,l,c,f,d,h,m,p;if(!(!n.draggedAxis||!n.contentWrapperEl)){var v,x=n.axis[n.draggedAxis].track,b=(a=(o=x.rect)===null||o===void 0?void 0:o[n.axis[n.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,C=n.axis[n.draggedAxis].scrollbar,E=(u=(s=n.contentWrapperEl)===null||s===void 0?void 0:s[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,w=parseInt((c=(l=n.elStyles)===null||l===void 0?void 0:l[n.axis[n.draggedAxis].sizeAttr])!==null&&c!==void 0?c:"0px",10);i.preventDefault(),i.stopPropagation(),n.draggedAxis==="y"?v=i.pageY:v=i.pageX;var _=v-((d=(f=x.rect)===null||f===void 0?void 0:f[n.axis[n.draggedAxis].offsetAttr])!==null&&d!==void 0?d:0)-n.axis[n.draggedAxis].dragOffset;_=n.draggedAxis==="x"&&n.isRtl?((m=(h=x.rect)===null||h===void 0?void 0:h[n.axis[n.draggedAxis].sizeAttr])!==null&&m!==void 0?m:0)-C.size-_:_;var O=_/(b-C.size),k=O*(E-w);n.draggedAxis==="x"&&n.isRtl&&(k=!((p=e.getRtlHelpers())===null||p===void 0)&&p.isScrollingToNegative?-k:k),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=k}},this.onEndDrag=function(i){var o=Od(n.el),a=mn(n.el);i.preventDefault(),i.stopPropagation(),yn(n.el,n.classNames.dragging),o.removeEventListener("mousemove",n.drag,!0),o.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=a.setTimeout(function(){o.removeEventListener("click",n.preventClick,!0),o.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=io(io({},e.defaultOptions),r),this.classNames=io(io({},e.defaultOptions.classNames),r.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Av(this._onMouseMove,64),this.onWindowResize=ta(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=ta(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=ta(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var r=t.firstElementChild,n=r==null?void 0:r.firstElementChild;if(!n)return null;document.body.appendChild(r),r.scrollLeft=0;var i=e.getOffset(r),o=e.getOffset(n);r.scrollLeft=-999;var a=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==a.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Cb()}catch{return Cb()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=Od(t),i=mn(t);return{top:r.top+(i.pageYOffset||n.documentElement.scrollTop),left:r.left+(i.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){xb&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,r;this.wrapperEl=this.el.querySelector(Kt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Kt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Kt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Kt(this.classNames.offset)),this.maskEl=this.el.querySelector(Kt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Kt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Kt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Kt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Kt(this.classNames.track)).concat(Kt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Kt(this.classNames.track)).concat(Kt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Kt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(Kt(this.classNames.scrollbar)))||null,this.options.autoHide||(vn(this.axis.x.scrollbar.el,this.classNames.visible),vn(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=mn(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(r=this.contentWrapperEl)===null||r===void 0||r.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=n.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=mn(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||r>0,o=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=i?"".concat(r||l,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&l>r,this.axis.y.isOverflowing=u>c,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=s==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var f=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>o-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>c-f,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var r,n;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],o=(n=(r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])!==null&&n!==void 0?n:0,a=o/i,s;return s=Math.max(~~(a*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(s=Math.min(s,this.options.scrollbarMaxSize)),s},e.prototype.positionScrollbar=function(t){var r,n,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var a=this.contentWrapperEl[this.axis[t].scrollSizeAttr],s=((r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),l=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];l=t==="x"&&this.isRtl&&(!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero)?-l:l,t==="x"&&this.isRtl&&(l=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?l:-l);var c=l/(a-u),f=~~((s-o.size)*c);f=t==="x"&&this.isRtl?-f+(s-o.size):f,o.el.style.transform=t==="x"?"translate3d(".concat(f,"px, 0, 0)"):"translate3d(0, ".concat(f,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var r=this.axis[t].track.el,n=this.axis[t].scrollbar.el;!r||!n||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(vn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(yn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var r=this.axis[t];!r.track.el||!r.scrollbar.el||(r.track.rect=r.track.el.getBoundingClientRect(),r.scrollbar.rect=r.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(r.track.rect)?(this.showScrollbar(t),vn(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?vn(r.scrollbar.el,this.classNames.hover):yn(r.scrollbar.el,this.classNames.hover)):(yn(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),yn(this.axis[t].track.el,this.classNames.hover),yn(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,r){var n;r===void 0&&(r="y");var i=Od(this.el),o=mn(this.el),a=this.axis[r].scrollbar,s=r==="y"?t.pageY:t.pageX;this.axis[r].dragOffset=s-(((n=a.rect)===null||n===void 0?void 0:n[this.axis[r].offsetAttr])||0),this.draggedAxis=r,vn(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,i,o,a,s;r===void 0&&(r="y");var u=this.axis[r];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var l=mn(this.el);this.axis[r].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var c=this.axis[r].scrollbar,f=(o=(i=c.rect)===null||i===void 0?void 0:i[this.axis[r].offsetAttr])!==null&&o!==void 0?o:0,d=parseInt((s=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[r].sizeAttr])!==null&&s!==void 0?s:"0px",10),h=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],m=r==="y"?this.mouseY-f:this.mouseX-f,p=m<0?-1:1,v=p===-1?h-d:h+d,x=40,b=function(){n.contentWrapperEl&&(p===-1?h>v&&(h-=x,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=h,l.requestAnimationFrame(b)):h<v&&(h+=x,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=h,l.requestAnimationFrame(b)))};b()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=mn(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,r){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return n.call(i,r)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=IG,e.helpers=$G,e}(),sr=function(){return sr=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},sr.apply(this,arguments)};function FG(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var Mb=xe.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,i=n===void 0?{}:n,o=FG(e,["children","scrollableNodeProps"]),a=xe.useRef(),s=xe.useRef(),u=xe.useRef(),l={},c={};Object.keys(o).forEach(function(h){Object.prototype.hasOwnProperty.call(Ml.defaultOptions,h)?l[h]=o[h]:c[h]=o[h]});var f=sr(sr({},Ml.defaultOptions.classNames),l.classNames),d=sr(sr({},i),{className:"".concat(f.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":l.ariaLabel||Ml.defaultOptions.ariaLabel});return xe.useEffect(function(){var h;return s.current=d.ref?d.ref.current:s.current,a.current&&(h=new Ml(a.current,sr(sr(sr({},l),s.current&&{scrollableNode:s.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(h):t&&(t.current=h)),function(){h==null||h.unMount(),h=null,typeof t=="function"&&t(null)}},[]),xe.createElement("div",sr({"data-simplebar":"init",ref:a},c),xe.createElement("div",{className:f.wrapper},xe.createElement("div",{className:f.heightAutoObserverWrapperEl},xe.createElement("div",{className:f.heightAutoObserverEl})),xe.createElement("div",{className:f.mask},xe.createElement("div",{className:f.offset},typeof r=="function"?r({scrollableNodeRef:s,scrollableNodeProps:sr(sr({},d),{ref:s}),contentNodeRef:u,contentNodeProps:{className:f.contentEl,ref:u}}):xe.createElement("div",sr({},d),xe.createElement("div",{className:f.contentEl},r)))),xe.createElement("div",{className:f.placeholder})),xe.createElement("div",{className:"".concat(f.track," simplebar-horizontal")},xe.createElement("div",{className:f.scrollbar})),xe.createElement("div",{className:"".concat(f.track," simplebar-vertical")},xe.createElement("div",{className:f.scrollbar})))});Mb.displayName="SimpleBar";const jG=$t("div")(()=>({flexGrow:1,height:"100%",overflow:"hidden"})),LG=$t(Mb)(({theme:e})=>({maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:W(e.palette.grey[600],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-mask":{zIndex:"inherit"}})),RG=({children:e,sx:t,...r})=>{const n=typeof navigator>"u"?"SSR":navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n)?y.jsx(P.Box,{sx:{overflowX:"auto",...t},...r,children:e}):y.jsx(jG,{children:y.jsx(LG,{clickOnTrack:!1,sx:t,...r,children:e})})},BG=g.memo(RG),NG=({name:e,helperText:t,rules:r,...n})=>{const{control:i}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:i,rules:r,render:({field:o,fieldState:{error:a}})=>y.jsx(gc,{...o,...n,onChange:s=>o.onChange(s),error:!!a,helperText:(a==null?void 0:a.message)||t})})},zG=({name:e,rules:t,helperText:r,...n})=>{const{control:i}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:i,rules:t,render:({field:{ref:o,onChange:a,...s},fieldState:{error:u}})=>y.jsx(J1,{...s,onChangeColor:a,inputRef:o,fullWidth:!0,error:!!u,helperText:(u==null?void 0:u.message)||r,...n})})},VG=({name:e,...t})=>{const{control:r}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:r,render:({field:{ref:n,...i},fieldState:{error:o}})=>{var a;return y.jsx(co.DatePicker,{inputRef:n,format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...t.localeText},...i,...t,value:i.value?new Date(i.value):null,slotProps:{textField:{...(a=t.slotProps)==null?void 0:a.textField,error:!!o,helperText:o==null?void 0:o.message,autoComplete:"off",spellCheck:"false",fullWidth:!0}}})}})},WG=({name:e,label:t,...r})=>{const{control:n,setError:i}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:n,render:({field:{value:o,onChange:a},fieldState:{error:s}})=>y.jsx(co.DateRangePicker,{format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...r.localeText},value:[(o==null?void 0:o.startDate)||null,(o==null?void 0:o.endDate)||null],onChange:u=>a({startDate:u[0],endDate:u[1]}),onError:u=>{i(e,{message:u[0]||u[1]||void 0})},...r,slotProps:{textField:({position:u})=>{var l;return{...(l=r.slotProps)==null?void 0:l.textField,error:!!s,helperText:s==null?void 0:s.message,autoComplete:"off",spellCheck:"false",fullWidth:!0,label:u==="start"?`${t} (Dt. Início)`:`${t} (Dt. Fim)`}}},sx:{width:1}})})},HG=({name:e,...t})=>{const{control:r}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:r,render:({field:{ref:n,...i},fieldState:{error:o}})=>{var a;return y.jsx(co.DateTimePicker,{format:"dd/MM/yyyy HH:mm",inputRef:n,localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...t.localeText},...i,...t,value:i.value?new Date(i.value):null,slotProps:{textField:{...(a=t.slotProps)==null?void 0:a.textField,error:!!o,helperText:o==null?void 0:o.message,autoComplete:"off",spellCheck:"false",fullWidth:!0}}})}})},Pb=({name:e,helperText:t,rules:r,...n})=>{const{control:i}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:i,rules:r,render:({field:{ref:o,...a},fieldState:{error:s}})=>y.jsx(P.TextField,{...a,inputRef:o,fullWidth:!0,error:!!s,helperText:(s==null?void 0:s.message)||t,...n})})},UG=({id:e,children:t,onSubmit:r,methods:n})=>y.jsx(yt.FormProvider,{...n,children:y.jsx(P.Stack,{component:"form",id:e,onSubmit:r,flex:1,width:1,noValidate:!0,children:t})}),YG=({name:e,helperText:t,rules:r,...n})=>{const{control:i}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:i,rules:r,render:({field:{name:o,onChange:a,value:s,ref:u},fieldState:{error:l}})=>y.jsx(_d,{ref:u,...n,name:o,value:s,error:!!l,helperText:(l==null?void 0:l.message)||t,onChange:({target:{value:c}})=>a(c)})})},GG=e=>{const[t,r]=g.useState(!1);return y.jsx(Pb,{...e,type:t?"text":"password",InputProps:{endAdornment:y.jsx(P.InputAdornment,{position:"end",children:y.jsx(P.IconButton,{onClick:()=>r(!t),edge:"end","aria-label":"Mostrar/Ocultar senha",children:y.jsx(Rt,{icon:t?"eva:eye-off-fill":"eva:eye-fill"})})})}})},qG=({name:e,helperText:t,...r})=>{const{control:n}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:n,render:({field:i,fieldState:{error:o}})=>y.jsxs("div",{children:[y.jsx(P.FormControlLabel,{control:y.jsx(P.Switch,{...i,checked:i.value}),...r}),(!!o||t)&&y.jsx(P.FormHelperText,{error:!!o,children:o?o==null?void 0:o.message:t})]})})},KG=({name:e,...t})=>{const{control:r}=yt.useFormContext();return y.jsx(yt.Controller,{name:e,control:r,render:({field:{ref:n,...i},fieldState:{error:o}})=>{var a;return y.jsx(co.TimePicker,{ampm:!1,format:"HH:mm",inputRef:n,localeText:{fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...t.localeText},...i,...t,value:i.value?new Date(i.value):null,slotProps:{textField:{...(a=t.slotProps)==null?void 0:a.textField,error:!!o,helperText:o==null?void 0:o.message,autoComplete:"off",spellCheck:"false",fullWidth:!0}}})}})};function ao(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(c){try{l(n.next(c))}catch(f){a(f)}}function u(c){try{l(n.throw(c))}catch(f){a(f)}}function l(c){c.done?o(c.value):i(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})}function so(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],i=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Ab(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function Db(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var XG=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function ba(e,t){var r=ZG(e);if(typeof r.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function ZG(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),i=XG.get(n);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var QG=[".DS_Store","Thumbs.db"];function JG(e){return ao(this,void 0,void 0,function(){return so(this,function(t){return Pl(e)&&eq(e.dataTransfer)?[2,iq(e.dataTransfer,e.type)]:tq(e)?[2,rq(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,nq(e)]:[2,[]]})})}function eq(e){return Pl(e)}function tq(e){return Pl(e)&&Pl(e.target)}function Pl(e){return typeof e=="object"&&e!==null}function rq(e){return kd(e.target.files).map(function(t){return ba(t)})}function nq(e){return ao(this,void 0,void 0,function(){var t;return so(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(n){return n.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(n){return ba(n)})]}})})}function iq(e,t){return ao(this,void 0,void 0,function(){var r,n;return so(this,function(i){switch(i.label){case 0:return e.items?(r=kd(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(oq))]):[3,2];case 1:return n=i.sent(),[2,$b(Ib(n))];case 2:return[2,$b(kd(e.files).map(function(o){return ba(o)}))]}})})}function $b(e){return e.filter(function(t){return QG.indexOf(t.name)===-1})}function kd(e){if(e===null)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function oq(e){if(typeof e.webkitGetAsEntry!="function")return Fb(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?jb(t):Fb(e)}function Ib(e){return e.reduce(function(t,r){return Db(Db([],Ab(t),!1),Ab(Array.isArray(r)?Ib(r):[r]),!1)},[])}function Fb(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var r=ba(t);return Promise.resolve(r)}function aq(e){return ao(this,void 0,void 0,function(){return so(this,function(t){return[2,e.isDirectory?jb(e):sq(e)]})})}function jb(e){var t=e.createReader();return new Promise(function(r,n){var i=[];function o(){var a=this;t.readEntries(function(s){return ao(a,void 0,void 0,function(){var u,l,c;return so(this,function(f){switch(f.label){case 0:if(s.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return u=f.sent(),r(u),[3,4];case 3:return l=f.sent(),n(l),[3,4];case 4:return[3,6];case 5:c=Promise.all(s.map(aq)),i.push(c),o(),f.label=6;case 6:return[2]}})})},function(s){n(s)})}o()})}function sq(e){return ao(this,void 0,void 0,function(){return so(this,function(t){return[2,new Promise(function(r,n){e.file(function(i){var o=ba(i,e.fullPath);r(o)},function(i){n(i)})})]})})}var lq=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return r.some(function(a){var s=a.trim().toLowerCase();return s.charAt(0)==="."?n.toLowerCase().endsWith(s):s.endsWith("/*")?o===s.replace(/\/.*$/,""):i===s})}return!0};function Lb(e){return fq(e)||cq(e)||zb(e)||uq()}function uq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
239
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
240
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
241
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
242
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kb(e,t){if(e){if(typeof e=="string")return Ad(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ad(e,t)}}function Ad(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Bq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function Nq(e){if(Array.isArray(e))return e}function Xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xb(Object(r),!0).forEach(function(n){Dd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $l(e,t){if(e==null)return{};var r=zq(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zq(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var $d=g.forwardRef(function(e,t){var r=e.children,n=$l(e,Pq),i=Il(n),o=i.open,a=$l(i,Aq);return g.useImperativeHandle(t,function(){return{open:o}},[o]),g.createElement(g.Fragment,null,r(mt(mt({},a),{},{open:o})))});$d.displayName="Dropzone";var Zb={disabled:!1,getFilesFromEvent:JG,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};$d.defaultProps=Zb,$d.propTypes={children:T.func,accept:T.objectOf(T.arrayOf(T.string)),multiple:T.bool,preventDropOnDocument:T.bool,noClick:T.bool,noKeyboard:T.bool,noDrag:T.bool,noDragEventsBubbling:T.bool,minSize:T.number,maxSize:T.number,maxFiles:T.number,disabled:T.bool,getFilesFromEvent:T.func,onFileDialogCancel:T.func,onFileDialogOpen:T.func,useFsAccessApi:T.bool,autoFocus:T.bool,onDragEnter:T.func,onDragLeave:T.func,onDragOver:T.func,onDrop:T.func,onDropAccepted:T.func,onDropRejected:T.func,onError:T.func,validator:T.func};var Id={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Il(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=mt(mt({},Zb),e),r=t.accept,n=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,u=t.maxFiles,l=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,p=t.onFileDialogCancel,v=t.onFileDialogOpen,x=t.useFsAccessApi,b=t.autoFocus,C=t.preventDropOnDocument,E=t.noClick,w=t.noKeyboard,_=t.noDrag,O=t.noDragEventsBubbling,k=t.onError,D=t.validator,L=g.useMemo(function(){return Oq(r)},[r]),re=g.useMemo(function(){return _q(r)},[r]),pe=g.useMemo(function(){return typeof v=="function"?v:Qb},[v]),se=g.useMemo(function(){return typeof p=="function"?p:Qb},[p]),q=g.useRef(null),G=g.useRef(null),me=g.useReducer(Vq,Id),Ee=Pd(me,2),Ie=Ee[0],Oe=Ee[1],$=Ie.isFocused,j=Ie.isFileDialogActive,X=g.useRef(typeof window<"u"&&window.isSecureContext&&x&&Tq()),ee=function(){!X.current&&j&&setTimeout(function(){if(G.current){var ve=G.current.files;ve.length||(Oe({type:"closeDialog"}),se())}},300)};g.useEffect(function(){return window.addEventListener("focus",ee,!1),function(){window.removeEventListener("focus",ee,!1)}},[G,j,se,X]);var H=g.useRef([]),fe=function(ve){q.current&&q.current.contains(ve.target)||(ve.preventDefault(),H.current=[])};g.useEffect(function(){return C&&(document.addEventListener("dragover",Yb,!1),document.addEventListener("drop",fe,!1)),function(){C&&(document.removeEventListener("dragover",Yb),document.removeEventListener("drop",fe))}},[q,C]),g.useEffect(function(){return!n&&b&&q.current&&q.current.focus(),function(){}},[q,b,n]);var ue=g.useCallback(function(K){k?k(K):console.error(K)},[k]),ge=g.useCallback(function(K){K.preventDefault(),K.persist(),Cr(K),H.current=[].concat(Iq(H.current),[K.target]),Dl(K)&&Promise.resolve(i(K)).then(function(ve){if(!(Al(K)&&!O)){var ct=ve.length,I=ct>0&&wq({files:ve,accept:L,minSize:a,maxSize:o,multiple:s,maxFiles:u,validator:D}),M=ct>0&&!I;Oe({isDragAccept:I,isDragReject:M,isDragActive:!0,type:"setDraggedFiles"}),l&&l(K)}}).catch(function(ve){return ue(ve)})},[i,l,ue,O,L,a,o,s,u,D]),Z=g.useCallback(function(K){K.preventDefault(),K.persist(),Cr(K);var ve=Dl(K);if(ve&&K.dataTransfer)try{K.dataTransfer.dropEffect="copy"}catch{}return ve&&f&&f(K),!1},[f,O]),Q=g.useCallback(function(K){K.preventDefault(),K.persist(),Cr(K);var ve=H.current.filter(function(I){return q.current&&q.current.contains(I)}),ct=ve.indexOf(K.target);ct!==-1&&ve.splice(ct,1),H.current=ve,!(ve.length>0)&&(Oe({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Dl(K)&&c&&c(K))},[q,c,O]),ne=g.useCallback(function(K,ve){var ct=[],I=[];K.forEach(function(M){var B=Hb(M,L),z=Pd(B,2),Ce=z[0],ke=z[1],Ne=Ub(M,a,o),A=Pd(Ne,2),F=A[0],ce=A[1],oe=D?D(M):null;if(Ce&&F&&!oe)ct.push(M);else{var ie=[ke,ce];oe&&(ie=ie.concat(oe)),I.push({file:M,errors:ie.filter(function(Me){return Me})})}}),(!s&&ct.length>1||s&&u>=1&&ct.length>u)&&(ct.forEach(function(M){I.push({file:M,errors:[xq]})}),ct.splice(0)),Oe({acceptedFiles:ct,fileRejections:I,type:"setFiles"}),d&&d(ct,I,ve),I.length>0&&m&&m(I,ve),ct.length>0&&h&&h(ct,ve)},[Oe,s,L,a,o,u,d,h,m,D]),be=g.useCallback(function(K){K.preventDefault(),K.persist(),Cr(K),H.current=[],Dl(K)&&Promise.resolve(i(K)).then(function(ve){Al(K)&&!O||ne(ve,K)}).catch(function(ve){return ue(ve)}),Oe({type:"reset"})},[i,ne,ue,O]),R=g.useCallback(function(){if(X.current){Oe({type:"openDialog"}),pe();var K={multiple:s,types:re};window.showOpenFilePicker(K).then(function(ve){return i(ve)}).then(function(ve){ne(ve,null),Oe({type:"closeDialog"})}).catch(function(ve){kq(ve)?(se(ve),Oe({type:"closeDialog"})):Mq(ve)?(X.current=!1,G.current?(G.current.value=null,G.current.click()):ue(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ue(ve)});return}G.current&&(Oe({type:"openDialog"}),pe(),G.current.value=null,G.current.click())},[Oe,pe,se,x,ne,ue,re,s]),Be=g.useCallback(function(K){!q.current||!q.current.isEqualNode(K.target)||(K.key===" "||K.key==="Enter"||K.keyCode===32||K.keyCode===13)&&(K.preventDefault(),R())},[q,R]),le=g.useCallback(function(){Oe({type:"focus"})},[]),ht=g.useCallback(function(){Oe({type:"blur"})},[]),Zt=g.useCallback(function(){E||(Eq()?setTimeout(R,0):R())},[E,R]),Vt=function(ve){return n?null:ve},Kr=function(ve){return w?null:Vt(ve)},wr=function(ve){return _?null:Vt(ve)},Cr=function(ve){O&&ve.stopPropagation()},Ca=g.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve=K.refKey,ct=ve===void 0?"ref":ve,I=K.role,M=K.onKeyDown,B=K.onFocus,z=K.onBlur,Ce=K.onClick,ke=K.onDragEnter,Ne=K.onDragOver,A=K.onDragLeave,F=K.onDrop,ce=$l(K,Dq);return mt(mt(Dd({onKeyDown:Kr(Ir(M,Be)),onFocus:Kr(Ir(B,le)),onBlur:Kr(Ir(z,ht)),onClick:Vt(Ir(Ce,Zt)),onDragEnter:wr(Ir(ke,ge)),onDragOver:wr(Ir(Ne,Z)),onDragLeave:wr(Ir(A,Q)),onDrop:wr(Ir(F,be)),role:typeof I=="string"&&I!==""?I:"presentation"},ct,q),!n&&!w?{tabIndex:0}:{}),ce)}},[q,Be,le,ht,Zt,ge,Z,Q,be,w,_,n]),bn=g.useCallback(function(K){K.stopPropagation()},[]),qn=g.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve=K.refKey,ct=ve===void 0?"ref":ve,I=K.onChange,M=K.onClick,B=$l(K,$q),z=Dd({accept:L,multiple:s,type:"file",style:{display:"none"},onChange:Vt(Ir(I,be)),onClick:Vt(Ir(M,bn)),tabIndex:-1},ct,G);return mt(mt({},z),B)}},[G,r,s,be,n]);return mt(mt({},Ie),{},{isFocused:$&&!n,getRootProps:Ca,getInputProps:qn,rootRef:q,inputRef:G,open:Vt(R)})}function Vq(e,t){switch(t.type){case"focus":return mt(mt({},e),{},{isFocused:!0});case"blur":return mt(mt({},e),{},{isFocused:!1});case"openDialog":return mt(mt({},Id),{},{isFileDialogActive:!0});case"closeDialog":return mt(mt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return mt(mt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return mt(mt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return mt({},Id);default:return e}}function Qb(){}const Wq=()=>{const t=mi().palette.primary.main;return y.jsxs(y.Fragment,{children:[y.jsx("defs",{children:y.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[y.jsx("stop",{offset:"0%",stopColor:t}),y.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:"0"})]})}),y.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"})]})},Hq=g.memo(Wq),Uq=({...e})=>{const t=mi(),r=t.palette.primary.main,n=t.palette.primary.dark,i=t.palette.primary.darker;return y.jsx(P.Box,{...e,children:y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx(Hq,{}),y.jsx("defs",{children:y.jsxs("linearGradient",{id:"linearGradient-2",x1:"30.113%",x2:"30.113%",y1:"0%",y2:"100%",children:[y.jsx("stop",{offset:"0%",stopOpacity:"0"}),y.jsx("stop",{offset:"100%"})]})}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M293.006 206.192c-2.248 2.672-4.676 2.628-6.123 2.251l.054-1.384s5.979-2.733 5.827-2.159c-.057.215.057.733.242 1.292zM309.393 209.217c-3.818 2.206-6.058-.38-6.578-1.112.32-.84.801-2.204.703-2.592-.144-.577 5.827 2.155 5.827 2.155l.048 1.549zM305.303 187.204s3.632-2.093 4.425-1.151c.792.942-4.425 1.151-4.425 1.151zM307.497 188.355s-.598.299.721.681c1.318.383-.721-.681-.721-.681zM285.532 182.599c-.123.036 3.022 2.123 5.862.395-.012 0-5.154-.61-5.862-.395zM291.239 186.591s-.861 1.692-2.625 1.943c-1.764.251 2.625-1.943 2.625-1.943zM302.785 190.262s4.138 6.578 3.346 8.129c-.793 1.552-3.346-8.129-3.346-8.129zM294.62 216.416c0 .368 0 .712-.036.996-.107 1.33-3.381.828-3.381.828-2.99.416-4.066-1.019-4.422-2.392a5.444 5.444 0 01-.164-1.363 5.606 5.606 0 01.054-.819v-.272a1.998 1.998 0 011.859.379c1.331 1.08 3.095.252 3.095.252s1.294.107 1.793.538c.281.242.745-.341 1.098-.897.021.359.054 1.007.074 1.701.024.356.03.714.03 1.049z",opacity:"0.05"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M289.37 216.339s-.897.879-2.589-.479a5.444 5.444 0 01-.164-1.363c.864.658 2.466 1.842 2.753 1.842zM294.62 216.416a.67.67 0 01-.519.132.672.672 0 01-.452-.287c.348-.266.669-.566.956-.897.009.359.015.717.015 1.052zM301.637 217.032c0 .371 0 .715.033.996.108 1.333 3.382.828 3.382.828 2.989.419 4.066-1.017 4.421-2.392a5.728 5.728 0 00.111-2.182v-.272a2.024 2.024 0 00-1.862.379c-1.331 1.08-3.092.251-3.092.251s-1.294.111-1.794.542c-.281.242-.744-.341-1.094-.897a61.426 61.426 0 00-.078 1.701c-.024.35-.03.708-.027 1.046z",opacity:"0.05"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M306.887 216.949s.897.879 2.587-.479c.112-.444.169-.901.167-1.36-.867.655-2.47 1.839-2.754 1.839zM301.637 217.032a.67.67 0 00.969-.155 6.35 6.35 0 01-.957-.897c-.009.356-.014.714-.012 1.052zM319.614 106.269c.063-.138.123-.275.18-.41.057-.134.077-.209.11-.317-.11.237-.206.48-.29.727z",opacity:"0.05"}),y.jsx("path",{fill:i,fillRule:"nonzero",d:"M157.592 279.461a4.114 4.114 0 01-.917-3.131l13.196-107.979 1.094-8.97a4.142 4.142 0 014.078-3.635l38.654-.257a4.135 4.135 0 004.108-4.249l-.015-.409a4.14 4.14 0 014.135-4.279h40.619a4.134 4.134 0 014.098 4.682 4.137 4.137 0 003.995 4.682l39.01.996a4.13 4.13 0 013.97 4.831l-19.502 113.909-.368 2.152a4.042 4.042 0 01-.598 1.543l-135.557.114z"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M251.256817 123.296578L274.098317 123.296578 274.098317 200.823078 251.256817 200.823078z",transform:"rotate(34.64 262.678 162.06)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M270.624591 129.857671L286.750291 129.857671 286.750291 145.983371 270.624591 145.983371z",transform:"rotate(34.804 278.687 137.92)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M260.275579 145.813111L276.423079 145.813111 276.423079 161.960611 260.275579 161.960611z",opacity:"0.5",transform:"rotate(34.64 268.35 153.887)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M249.191579 161.852111L265.339079 161.852111 265.339079 177.999611 249.191579 177.999611z",opacity:"0.3",transform:"rotate(34.64 257.265 169.926)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M237.472537 121.334214L260.314037 121.334214 260.314037 198.567714 237.472537 198.567714z",transform:"rotate(16.29 248.893 159.951)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M249.053192 123.761554L265.200692 123.761554 265.200692 139.909054 249.053192 139.909054z",transform:"rotate(16.29 257.127 131.835)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M243.584192 142.473554L259.731692 142.473554 259.731692 158.621053 243.584192 158.621053z",opacity:"0.5",transform:"rotate(16.29 251.658 150.547)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M238.116192 161.182554L254.263692 161.182554 254.263692 177.330054 238.116192 177.330054z",opacity:"0.3",transform:"rotate(16.29 246.19 169.256)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M230.099192 121.641542L252.940692 121.641542 252.940692 198.875042 230.099192 198.875042z",transform:"rotate(4.6 241.52 160.258)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M235.800489 122.985499L251.947989 122.985499 251.947989 139.132999 235.800489 139.132999z",transform:"rotate(4.6 243.874 131.06)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M234.234488 142.413498L250.381988 142.413498 250.381988 158.560998 234.234488 158.560998z",opacity:"0.5",transform:"rotate(4.6 242.308 150.487)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M232.672488 161.846499L248.819988 161.846499 248.819988 177.993999 232.672488 177.993999z",opacity:"0.3",transform:"rotate(4.6 240.746 169.92)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M224.736657 123.384871L247.578157 123.384871 247.578157 200.618371 224.736657 200.618371z",transform:"rotate(-2.61 236.157 162.002)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M226.751283 124.659968L242.898783 124.659968 242.898783 140.807468 226.751283 140.807468z",transform:"rotate(-2.61 234.825 132.734)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.305601 143.479224L244.473301 143.479224 244.473301 159.646924 228.305601 159.646924z",opacity:"0.5",transform:"rotate(-2.862 236.39 151.563)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.525282 163.608968L244.672782 163.608968 244.672782 179.756468 228.525282 179.756468z",opacity:"0.3",transform:"rotate(-2.61 236.599 171.683)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851-29.661 11.466c-1.121-2.093-2.771-4.921-4.813-8.297-7.026-11.642-18.65-29.75-29.001-45.665-11.66-17.938-21.696-33.075-21.696-33.075l7.265-2.093 59.346-17.23 38.854 87.043z"}),y.jsx("path",{fill:"#000",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851a152.535 152.535 0 01-34.484 3.169c-7.026-11.642-18.65-29.75-29-45.665l-14.42-35.18 59.343-17.218 38.855 87.043z",opacity:"0.1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M247.777 220.841s-31.526 18.65-78.596 14.432l-37.525-91.486 17.984-3.091 62.168-10.677 35.279 89.043.69 1.779z"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M247.075 219.074c-7.424.365-16.013.329-24.654-.702-9.351-1.101-18.757-3.367-26.82-7.523-6.742-3.471-12.506-7.247-17.532-11.776-13.074-11.759-21.164-28.579-28.429-58.365l62.168-10.677 35.267 89.043z",opacity:"0.1"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M270.203 213.959s-23.239 4.55-46.894 1.749c-9.351-1.1-18.757-3.367-26.82-7.522-6.742-3.471-12.503-7.247-17.532-11.777-16.181-14.557-24.725-36.866-33.536-81.918 0 0 38.633 9.325 76.836-11.101-.012.015 12.865 80.373 47.946 110.569z"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M165.405 131.03s31.416-1.776 40.187-8.548l1.331 4.276s-20.758 9.157-41.518 9.268v-4.996zM165.405 152.137s30.417-1.665 53.399-12.766l.777 1.776s-18.237 10.647-54.176 13.433v-2.443zM167.853 160.362s30.418-1.665 53.397-12.766l.777 1.776s-18.237 10.643-54.174 13.433v-2.443zM170.299 168.599s30.417-1.666 53.399-12.766l.774 1.775s-18.237 10.647-54.173 13.433v-2.442zM172.748 176.835s30.417-1.665 53.396-12.766l.777 1.776s-18.237 10.647-54.173 13.433v-2.443zM175.193 185.075s30.417-1.665 53.399-12.766l.774 1.776s-18.237 10.643-54.173 13.433v-2.443z",opacity:"0.3"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M389.069 287.344s-12.641-.762-11.152 8.097c0 0-.299 1.563 1.124 2.275 0 0 .021-.658 1.295-.434.454.077.916.099 1.375.066a2.832 2.832 0 001.677-.694c.468-.409 3.555-1.468 4.936-7.274 0 0 1.023-1.267.981-1.593l-2.132.897s.73 1.54.156 2.816c0 0-.069-2.759-.479-2.691-.083 0-1.109.533-1.109.533s1.253 2.69.299 4.628c0 0 .359-3.304-.699-4.434l-1.495.876s1.465 2.768.472 5.029c0 0 .254-3.465-.789-4.817l-1.361 1.062s1.379 2.729.539 4.604c0 0-.111-4.036-.835-4.341 0 0-1.195 1.049-1.369 1.494 0 0 .942 1.98.356 3.026 0 0-.359-2.691-.652-2.691 0 0-1.196 1.794-1.309 2.99 0 0 .051-1.818 1.022-3.172a3.593 3.593 0 00-1.818.942s.186-1.262 2.111-1.37c0 0 .981-1.351 1.241-1.435 0 0-1.914-.158-3.074.356 0 0 1.023-1.196 3.427-.649l1.342-1.094s-2.52-.347-3.588.036c0 0 1.229-1.052 3.95-.299l1.462-.873s-2.147-.463-3.426-.299c0 0 1.348-.729 3.856.06l1.044-.47s-1.573-.299-2.033-.358c-.461-.06-.488-.174-.488-.174a5.426 5.426 0 012.957.329s2.222-.813 2.186-.954z"}),y.jsx("ellipse",{cx:"380.363",cy:"298.487",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"8.945",ry:"1.513"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M394.956 258.102s-7.125-.43-6.279 4.565a1.218 1.218 0 00.631 1.283s.015-.371.733-.245c.255.042.515.054.774.036.349-.023.681-.159.945-.389.264-.23 2.003-.828 2.783-4.102 0 0 .577-.714.553-.897l-1.196.511s.41.87.087 1.591c0 0-.039-1.558-.269-1.522-.048 0-.625.299-.625.299s.706 1.495.173 2.61c0 0 .204-1.862-.394-2.502l-.846.496s.825 1.561.266 2.834c0 0 .143-1.955-.446-2.714l-.765.598s.774 1.539.299 2.595c0 0-.063-2.275-.469-2.446a4.75 4.75 0 00-.775.834s.532 1.118.204 1.707c0 0-.204-1.515-.368-1.521 0 0-.67 1.001-.739 1.689a3.671 3.671 0 01.577-1.794 2.007 2.007 0 00-1.025.532s.104-.711 1.196-.771c0 0 .553-.763.699-.81 0 0-1.079-.09-1.734.2 0 0 .577-.67 1.932-.365l.759-.619s-1.423-.194-2.024.021c0 0 .694-.598 2.227-.161l.826-.494a7.445 7.445 0 00-1.935-.164s.763-.413 2.174.033l.598-.263s-.897-.177-1.148-.203c-.252-.027-.275-.099-.275-.099a3.078 3.078 0 011.668.185s1.232-.46 1.208-.538z"}),y.jsx("ellipse",{cx:"390.052",cy:"264.383",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"5.044",ry:"1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M352.896 262.437s-8.604-.52-7.588 5.51a1.47 1.47 0 00.763 1.549s0-.449.897-.299c.309.052.623.067.935.045a1.923 1.923 0 001.142-.473c.318-.279 2.419-.998 3.361-4.951 0 0 .697-.861.667-1.085l-1.468.622s.496 1.046.104 1.916c0 0-.048-1.877-.326-1.835-.056 0-.753.364-.753.364s.852 1.824.209 3.152c0 0 .245-2.249-.475-3.02l-1.023.598s.996 1.886.32 3.423c0 0 .174-2.359-.535-3.289l-.927.724s.939 1.857.365 3.133c0 0-.072-2.747-.565-2.954 0 0-.81.715-.933 1.008 0 0 .64 1.348.242 2.06 0 0-.245-1.83-.445-1.839 0 0-.804 1.214-.897 2.042.04-.768.28-1.512.697-2.159a2.427 2.427 0 00-1.235.643s.125-.858 1.435-.933c0 0 .667-.92.846-.974 0 0-1.303-.111-2.093.239 0 0 .694-.807 2.329-.44l.915-.747s-1.713-.233-2.442.024c0 0 .837-.715 2.69-.191l.996-.598s-1.462-.314-2.335-.201c0 0 .921-.496 2.625.042l.711-.32s-1.07-.209-1.384-.242c-.314-.033-.329-.119-.329-.119a3.69 3.69 0 012.012.221s1.519-.553 1.492-.646z"}),y.jsx("ellipse",{cx:"346.97",cy:"270.022",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"6.09",ry:"1.028"}),y.jsx("rect",{width:"51.026",height:"91.312",x:"303.926",y:"69.211",fill:"#FFF",fillRule:"nonzero",rx:"4.737",transform:"rotate(-71.99 329.44 114.867)"}),y.jsx("circle",{cx:"303.613",cy:"103.507",r:"9.376",fill:r,fillRule:"nonzero",opacity:"0.2"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M344.582495 86.4883769L347.150665 86.4883769 347.150665 127.336977 344.582495 127.336977z",opacity:"0.2",transform:"rotate(-71.99 345.867 106.913)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M333.028401 99.6373982L335.596571 99.6373982 335.596571 120.445898 333.028401 120.445898z",opacity:"0.2",transform:"rotate(-71.99 334.312 110.042)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M337.109071 101.431004L339.677241 101.431004 339.677241 135.086304 337.109071 135.086304z",opacity:"0.2",transform:"rotate(-71.99 338.393 118.259)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M338.505494 105.174377L341.073664 105.174377 341.073664 146.022978 338.505494 146.022978z",opacity:"0.2",transform:"rotate(-71.99 339.79 125.599)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M348.060839 134.648161L353.026769 134.648161 353.026769 145.952261 348.060839 145.952261z",opacity:"0.5",transform:"rotate(-71.99 350.544 140.3)"}),y.jsx("rect",{width:"50.3",height:"78.305",x:"291.549",y:"174.486",fill:"#FFF",fillRule:"nonzero",rx:"4",transform:"rotate(-57.265 316.7 213.638)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M278.038439 203.88874L292.269539 203.88874 292.269539 207.23723 278.038439 207.23723z",transform:"rotate(-57.57 285.154 205.563)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M283.007935 199.201889L314.262535 199.201889 314.262535 202.272339 283.007935 202.272339z",transform:"rotate(-57.57 298.635 200.737)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M288.543935 202.715889L319.798535 202.715889 319.798535 205.786339 288.543935 205.786339z",transform:"rotate(-57.57 304.171 204.251)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M294.078936 206.235889L325.333536 206.235889 325.333536 209.306339 294.078936 209.306339z",transform:"rotate(-57.57 309.706 207.771)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M299.879919 211.40702L331.090719 211.40702 331.090719 214.47316 299.879919 214.47316z",transform:"rotate(-57.265 315.485 212.94)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M305.149936 213.268889L336.404536 213.268889 336.404536 216.339339 305.149936 216.339339z",transform:"rotate(-57.57 320.777 214.804)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M310.685935 216.782889L341.940535 216.782889 341.940535 219.853339 310.685935 219.853339z",transform:"rotate(-57.57 326.313 218.318)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M341.417983 210.406958L349.511163 210.406958 349.511163 218.500138 341.417983 218.500138z",transform:"rotate(-57.57 345.465 214.454)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.243"}),y.jsx("path",{fill:"url(#linearGradient-2)",fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.32"}),y.jsx("ellipse",{cx:"119.593",cy:"258.664",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),y.jsx("ellipse",{cx:"101.03",cy:"260.545",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),y.jsx("ellipse",{cx:"108.459",cy:"265.905",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),y.jsx("ellipse",{cx:"89.193",cy:"265.433",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.925 260.398s6.796-22.279-1.064-31.204c-5.881-6.676-12.557-5.877-15.547-5.052a5.528 5.528 0 00-3.564 2.963c-1.046 2.254-.858 5.913 6.521 10.186 12.35 7.151 13.119 16.96 13.119 16.96l.535 6.147z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M85.382 227.302s20.031 6.278 15.546 33.096M97.083 229.547s-2.76 1.86-1.88 4.655M87.39 231.203s1.687-1.716 3.741-.768M95.31 239.832s2.963-1.495 3.728.379M102.638 242.962s-2.224-.176-2.263.897"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M101.2 260.575s-7.961-16.193-10.147-15.846c-1.037.17-1.516 1.196-1.734 2.218a6.516 6.516 0 00.434 3.941c1.13 2.601 4.165 7.519 11.447 9.687z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M91.113 247.808s8.353 12.115 9.968 12.647"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M90.344 249.701L92.293 249.701"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M92.68 254.132L95.738 254.263"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M94.542 250.586L94.21 252.179"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M97.792 255.432L97.732 256.879"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.964 260.575s7.959-16.193 10.144-15.846c1.041.17 1.519 1.196 1.734 2.218a6.514 6.514 0 01-.433 3.941c-1.13 2.601-4.168 7.519-11.445 9.687z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.051 247.808s-8.371 12.115-9.97 12.647"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.82 249.701L109.871 249.701"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M109.485 254.132L106.426 254.263"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M107.622 250.586L107.954 252.179"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M104.372 255.432L104.432 256.879"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M87.295 264.357a1.375 1.375 0 01-.452-.685.599.599 0 01.317-.697c.3-.11.598.09.837.299.24.21.512.431.81.38a1.237 1.237 0 01-.382-1.16.47.47 0 01.105-.236c.161-.174.454-.099.648.039.598.43.787 1.264.79 2.018.03-.277.03-.555 0-.831a.853.853 0 01.334-.727.938.938 0 01.476-.114.988.988 0 01.774.222.767.767 0 01-.03.947c-.229.257-.5.474-.801.64a1.805 1.805 0 00-.571.547.399.399 0 00-.042.096h-1.74a4.826 4.826 0 01-1.073-.738zM117.626 257.833a1.355 1.355 0 01-.452-.682.599.599 0 01.314-.696c.299-.111.598.089.837.299.239.209.509.436.817.391a1.236 1.236 0 01-.386-1.157.472.472 0 01.107-.236c.162-.173.455-.099.649.036.613.433.787 1.268.79 2.021a4.008 4.008 0 000-.834.852.852 0 01.299-.736.955.955 0 01.475-.11.998.998 0 01.774.218.768.768 0 01-.033.951 2.996 2.996 0 01-.798.64 1.767 1.767 0 00-.571.544.499.499 0 00-.042.098h-1.701a4.78 4.78 0 01-1.079-.747zM107.518 264.357a1.406 1.406 0 01-.455-.685.6.6 0 01.317-.697c.299-.11.598.09.837.299.239.21.505.437.816.395a1.247 1.247 0 01-.385-1.16.472.472 0 01.107-.236c.162-.174.455-.099.649.039.613.43.783 1.264.789 2.018.03-.277.03-.555 0-.832a.855.855 0 01.314-.735.93.93 0 01.476-.114.988.988 0 01.774.222.764.764 0 01-.033.947 3.028 3.028 0 01-.798.64 1.798 1.798 0 00-.571.547.411.411 0 00-.042.096h-1.734c-.385-.2-.742-.45-1.061-.744z"}),y.jsx("circle",{cx:"84.467",cy:"87.003",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"395.425",cy:"138.681",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"279.178",cy:"66.467",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"97.4",cy:"122.68",r:"10.838",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M206.029 209.911c-7.975 0-14.44 6.465-14.44 14.44s6.465 14.44 14.44 14.44 14.44-6.465 14.44-14.44-6.465-14.44-14.44-14.44z"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M206.029 211.59c7.047 0 12.761 5.714 12.761 12.761 0 7.048-5.714 12.761-12.761 12.761-7.048 0-12.761-5.713-12.761-12.761.006-7.045 5.716-12.754 12.761-12.761",opacity:"0.72"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M200.058 225.406l-.699-.681a.721.721 0 010-1.065l6.127-5.984a.753.753 0 01.546-.231c.206 0 .404.083.545.231l6.127 5.978a.733.733 0 010 1.065l-.699.682a.768.768 0 01-1.091 0l-3.622-3.727v8.843a.725.725 0 01-.219.523.76.76 0 01-.534.217h-1.009a.75.75 0 01-.759-.74v-8.832l-3.622 3.726a.768.768 0 01-1.091-.005z"})]})})},Yq=g.memo(Uq),Gq=["pdf"],qq=["txt"],Kq=["psd"],Xq=["doc","docx"],Zq=["xls","xlsx"],Qq=["zip","rar","iso"],Jq=["ai","esp"],eK=["ppt","pptx"],tK=["wav","aif","mp3","aac"],rK=["jpg","jpeg","gif","bmp","png","svg"],nK=["m4v","avi","mpg","mp4","webm"],lr=e=>`/assets/icons/files/${e}.svg`;function Jb(e){let t;switch(e==null?void 0:e.includes(Xt(e))){case qq.includes(Xt(e)):t="txt";break;case Qq.includes(Xt(e)):t="zip";break;case tK.includes(Xt(e)):t="audio";break;case rK.includes(Xt(e)):t="image";break;case nK.includes(Xt(e)):t="video";break;case Xq.includes(Xt(e)):t="word";break;case Zq.includes(Xt(e)):t="excel";break;case eK.includes(Xt(e)):t="powerpoint";break;case Gq.includes(Xt(e)):t="pdf";break;case Kq.includes(Xt(e)):t="photoshop";break;case Jq.includes(Xt(e)):t="illustrator";break;default:t=Xt(e)}return t}function iK(e){let t;switch(Jb(e)){case"folder":t=lr("ic_folder");break;case"txt":t=lr("ic_txt");break;case"zip":t=lr("ic_zip");break;case"audio":t=lr("ic_audio");break;case"video":t=lr("ic_video");break;case"word":t=lr("ic_word");break;case"excel":t=lr("ic_excel");break;case"powerpoint":t=lr("ic_power_point");break;case"pdf":t=lr("ic_pdf");break;case"photoshop":t=lr("ic_pts");break;case"illustrator":t=lr("ic_ai");break;case"image":t=lr("ic_img");break;default:t=lr("ic_file")}return t}function Xt(e=""){return e&&e.split(".").pop()||""}function oK(e){return e.split("/").pop()}function Fd(e){return typeof e=="string"?{key:e,preview:e,name:oK(e),type:Xt(e)}:{key:e.preview,name:e.name,size:e.size,path:e.path,type:e.type,preview:e.preview,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate}}function Fl(e){const t=(e==null?void 0:e.color)||"#000000",r=(e==null?void 0:e.blur)||6,n=(e==null?void 0:e.opacity)||.8,i=e==null?void 0:e.imgUrl;return i?{position:"relative",backgroundImage:`url(${i})`,"&:before":{position:"absolute",top:0,left:0,zIndex:9,content:'""',width:"100%",height:"100%",backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:W(t,n)}}:{backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:W(t,n)}}function aK(e){const t=(e==null?void 0:e.direction)||"to bottom",r=e==null?void 0:e.startColor,n=e==null?void 0:e.endColor,i=e==null?void 0:e.imgUrl,o=e==null?void 0:e.color;return i?{background:`linear-gradient(${t}, ${r||o}, ${n||o}), url(${i})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}:{background:`linear-gradient(${t}, ${r}, ${n})`}}function sK(e){return{background:`-webkit-linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}function lK(e){return{filter:e,WebkitFilter:e,MozFilter:e}}const e2={msOverflowStyle:"none",scrollbarWidth:"none",overflowY:"scroll","&::-webkit-scrollbar":{display:"none"}},uK=Object.freeze(Object.defineProperty({__proto__:null,bgBlur:Fl,bgGradient:aK,filterStyles:lK,hideScrollbarX:{msOverflowStyle:"none",scrollbarWidth:"none",overflowX:"scroll","&::-webkit-scrollbar":{display:"none"}},hideScrollbarY:e2,textGradient:sK},Symbol.toStringTag,{value:"Module"})),t2=({onDownload:e})=>{const t=mi();return y.jsx(P.IconButton,{onClick:e,sx:{p:0,top:0,right:0,width:1,height:1,zIndex:9,opacity:0,position:"absolute",borderRadius:"unset",justifyContent:"center",bgcolor:"grey.800",color:"common.white",transition:t.transitions.create("opacity"),"&:hover":{opacity:1,...Fl({opacity:.64,color:t.palette.grey[900]})}},children:y.jsx(Rt,{icon:"eva:arrow-circle-down-fill",width:24})})},r2=({file:e,tooltip:t,imageView:r,onDownload:n,sx:i,imgSx:o})=>{const{name:a="",path:s="",preview:u=""}=Fd(e),l=Jb(s||u),c=l==="image"&&r?y.jsx(P.Box,{component:"img",src:u,sx:{width:1,height:1,flexShrink:0,objectFit:"cover",...o}}):y.jsx(P.Box,{component:"img",src:iK(l),sx:{width:32,height:32,flexShrink:0,...i}});return t?y.jsx(P.Tooltip,{title:a,children:y.jsxs(P.Stack,{flexShrink:0,component:"span",alignItems:"center",justifyContent:"center",sx:{width:"fit-content",height:"inherit"},children:[c,n&&y.jsx(t2,{onDownload:n})]})}):y.jsxs(y.Fragment,{children:[c,n&&y.jsx(t2,{onDownload:n})]})};var n2={exports:{}};/*! @preserve
|
|
242
|
+
`,Xq=1,Zq=3,Qq=function(e){Mq(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.imageRef=g.createRef(),r.videoRef=g.createRef(),r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.gestureZoomStart=0,r.gestureRotationStart=0,r.isTouching=!1,r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.currentDoc=typeof document<"u"?document:null,r.currentWindow=typeof window<"u"?window:null,r.resizeObserver=null,r.state={cropSize:null,hasWheelJustStarted:!1},r.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!r.containerRef)){var n=!0;r.resizeObserver=new window.ResizeObserver(function(i){if(n){n=!1;return}r.computeSizes()}),r.resizeObserver.observe(r.containerRef)}},r.preventZoomSafari=function(n){return n.preventDefault()},r.cleanEvents=function(){r.currentDoc&&(r.currentDoc.removeEventListener("mousemove",r.onMouseMove),r.currentDoc.removeEventListener("mouseup",r.onDragStopped),r.currentDoc.removeEventListener("touchmove",r.onTouchMove),r.currentDoc.removeEventListener("touchend",r.onDragStopped),r.currentDoc.removeEventListener("gesturemove",r.onGestureMove),r.currentDoc.removeEventListener("gestureend",r.onGestureEnd))},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){var n=r.computeSizes();n&&(r.emitCropData(),r.setInitialCrop(n)),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(n){if(r.props.initialCroppedAreaPercentages){var i=Uq(r.props.initialCroppedAreaPercentages,r.mediaSize,r.props.rotation,n,r.props.minZoom,r.props.maxZoom),o=i.crop,a=i.zoom;r.props.onCropChange(o),r.props.onZoomChange&&r.props.onZoomChange(a)}else if(r.props.initialCroppedAreaPixels){var s=Gq(r.props.initialCroppedAreaPixels,r.mediaSize,r.props.rotation,n,r.props.minZoom,r.props.maxZoom),o=s.crop,a=s.zoom;r.props.onCropChange(o),r.props.onZoomChange&&r.props.onZoomChange(a)}},r.computeSizes=function(){var n,i,o,a,s,u,l=r.imageRef.current||r.videoRef.current;if(l&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect();var c=r.containerRect.width/r.containerRect.height,f=((n=r.imageRef.current)===null||n===void 0?void 0:n.naturalWidth)||((i=r.videoRef.current)===null||i===void 0?void 0:i.videoWidth)||0,d=((o=r.imageRef.current)===null||o===void 0?void 0:o.naturalHeight)||((a=r.videoRef.current)===null||a===void 0?void 0:a.videoHeight)||0,h=l.offsetWidth<f||l.offsetHeight<d,m=f/d,p=void 0;if(h){var v=r.getObjectFit();switch(v){default:case"contain":p=c>m?{width:r.containerRect.height*m,height:r.containerRect.height}:{width:r.containerRect.width,height:r.containerRect.width/m};break;case"horizontal-cover":p={width:r.containerRect.width,height:r.containerRect.width/m};break;case"vertical-cover":p={width:r.containerRect.height*m,height:r.containerRect.height};break}}else p={width:l.offsetWidth,height:l.offsetHeight};r.mediaSize=zt(zt({},p),{naturalWidth:f,naturalHeight:d}),r.props.setMediaSize&&r.props.setMediaSize(r.mediaSize);var x=r.props.cropSize?r.props.cropSize:Bq(r.mediaSize.width,r.mediaSize.height,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);return(((s=r.state.cropSize)===null||s===void 0?void 0:s.height)!==x.height||((u=r.state.cropSize)===null||u===void 0?void 0:u.width)!==x.width)&&r.props.onCropSizeChange&&r.props.onCropSizeChange(x),r.setState({cropSize:x},r.recomputeCropPosition),r.props.setCropSize&&r.props.setCropSize(x),x}},r.onMouseDown=function(n){r.currentDoc&&(n.preventDefault(),r.currentDoc.addEventListener("mousemove",r.onMouseMove),r.currentDoc.addEventListener("mouseup",r.onDragStopped),r.onDragStart(t.getMousePoint(n)))},r.onMouseMove=function(n){return r.onDrag(t.getMousePoint(n))},r.onTouchStart=function(n){r.currentDoc&&(r.isTouching=!0,!(r.props.onTouchRequest&&!r.props.onTouchRequest(n))&&(r.currentDoc.addEventListener("touchmove",r.onTouchMove,{passive:!1}),r.currentDoc.addEventListener("touchend",r.onDragStopped),n.touches.length===2?r.onPinchStart(n):n.touches.length===1&&r.onDragStart(t.getTouchPoint(n.touches[0]))))},r.onTouchMove=function(n){n.preventDefault(),n.touches.length===2?r.onPinchMove(n):n.touches.length===1&&r.onDrag(t.getTouchPoint(n.touches[0]))},r.onGestureStart=function(n){r.currentDoc&&(n.preventDefault(),r.currentDoc.addEventListener("gesturechange",r.onGestureMove),r.currentDoc.addEventListener("gestureend",r.onGestureEnd),r.gestureZoomStart=r.props.zoom,r.gestureRotationStart=r.props.rotation)},r.onGestureMove=function(n){if(n.preventDefault(),!r.isTouching){var i=t.getMousePoint(n),o=r.gestureZoomStart-1+n.scale;if(r.setNewZoom(o,i,{shouldUpdatePosition:!0}),r.props.onRotationChange){var a=r.gestureRotationStart+n.rotation;r.props.onRotationChange(a)}}},r.onGestureEnd=function(n){r.cleanEvents()},r.onDragStart=function(n){var i,o,a=n.x,s=n.y;r.dragStartPosition={x:a,y:s},r.dragStartCrop=zt({},r.props.crop),(o=(i=r.props).onInteractionStart)===null||o===void 0||o.call(i)},r.onDrag=function(n){var i=n.x,o=n.y;r.currentWindow&&(r.rafDragTimeout&&r.currentWindow.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=r.currentWindow.requestAnimationFrame(function(){if(r.state.cropSize&&!(i===void 0||o===void 0)){var a=i-r.dragStartPosition.x,s=o-r.dragStartPosition.y,u={x:r.dragStartCrop.x+a,y:r.dragStartCrop.y+s},l=r.props.restrictPosition?Xl(u,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):u;r.props.onCropChange(l)}}))},r.onDragStopped=function(){var n,i;r.isTouching=!1,r.cleanEvents(),r.emitCropData(),(i=(n=r.props).onInteractionEnd)===null||i===void 0||i.call(n)},r.onWheel=function(n){if(r.currentWindow&&!(r.props.onWheelRequest&&!r.props.onWheelRequest(n))){n.preventDefault();var i=t.getMousePoint(n),o=Nq(n).pixelY,a=r.props.zoom-o*r.props.zoomSpeed/200;r.setNewZoom(a,i,{shouldUpdatePosition:!0}),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},function(){var s,u;return(u=(s=r.props).onInteractionStart)===null||u===void 0?void 0:u.call(s)}),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=r.currentWindow.setTimeout(function(){return r.setState({hasWheelJustStarted:!1},function(){var s,u;return(u=(s=r.props).onInteractionEnd)===null||u===void 0?void 0:u.call(s)})},250)}},r.getPointOnContainer=function(n){var i=n.x,o=n.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(i-r.containerRect.left),y:r.containerRect.height/2-(o-r.containerRect.top)}},r.getPointOnMedia=function(n){var i=n.x,o=n.y,a=r.props,s=a.crop,u=a.zoom;return{x:(i+s.x)/u,y:(o+s.y)/u}},r.setNewZoom=function(n,i,o){var a=o===void 0?{}:o,s=a.shouldUpdatePosition,u=s===void 0?!0:s;if(!(!r.state.cropSize||!r.props.onZoomChange)){var l=Zl(n,r.props.minZoom,r.props.maxZoom);if(u){var c=r.getPointOnContainer(i),f=r.getPointOnMedia(c),d={x:f.x*l-c.x,y:f.y*l-c.y},h=r.props.restrictPosition?Xl(d,r.mediaSize,r.state.cropSize,l,r.props.rotation):d;r.props.onCropChange(h)}r.props.onZoomChange(l)}},r.getCropData=function(){if(!r.state.cropSize)return null;var n=r.props.restrictPosition?Xl(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;return Vq(n,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition)},r.emitCropData=function(){var n=r.getCropData();if(n){var i=n.croppedAreaPercentages,o=n.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(i,o),r.props.onCropAreaChange&&r.props.onCropAreaChange(i,o)}},r.emitCropAreaChange=function(){var n=r.getCropData();if(n){var i=n.croppedAreaPercentages,o=n.croppedAreaPixels;r.props.onCropAreaChange&&r.props.onCropAreaChange(i,o)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var n=r.props.restrictPosition?Xl(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;r.props.onCropChange(n),r.emitCropData()}},r}return t.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=Kq,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var r,n;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(r=this.resizeObserver)===null||r===void 0||r.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((n=this.styleRef.parentNode)===null||n===void 0||n.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(r){var n,i,o,a,s,u,l,c,f;r.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):r.aspect!==this.props.aspect?this.computeSizes():r.zoom!==this.props.zoom?this.recomputeCropPosition():((n=r.cropSize)===null||n===void 0?void 0:n.height)!==((i=this.props.cropSize)===null||i===void 0?void 0:i.height)||((o=r.cropSize)===null||o===void 0?void 0:o.width)!==((a=this.props.cropSize)===null||a===void 0?void 0:a.width)?this.computeSizes():(((s=r.crop)===null||s===void 0?void 0:s.x)!==((u=this.props.crop)===null||u===void 0?void 0:u.x)||((l=r.crop)===null||l===void 0?void 0:l.y)!==((c=this.props.crop)===null||c===void 0?void 0:c.y))&&this.emitCropAreaChange(),r.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),r.video!==this.props.video&&((f=this.videoRef.current)===null||f===void 0||f.load())},t.prototype.getAspect=function(){var r=this.props,n=r.cropSize,i=r.aspect;return n?n.width/n.height:i},t.prototype.getObjectFit=function(){var r,n,i,o;if(this.props.objectFit==="cover"){var a=this.imageRef.current||this.videoRef.current;if(a&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var s=this.containerRect.width/this.containerRect.height,u=((r=this.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((n=this.videoRef.current)===null||n===void 0?void 0:n.videoWidth)||0,l=((i=this.imageRef.current)===null||i===void 0?void 0:i.naturalHeight)||((o=this.videoRef.current)===null||o===void 0?void 0:o.videoHeight)||0,c=u/l;return c<s?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(r){var n=t.getTouchPoint(r.touches[0]),i=t.getTouchPoint(r.touches[1]);this.lastPinchDistance=y2(n,i),this.lastPinchRotation=b2(n,i),this.onDragStart(x2(n,i))},t.prototype.onPinchMove=function(r){var n=this;if(!(!this.currentDoc||!this.currentWindow)){var i=t.getTouchPoint(r.touches[0]),o=t.getTouchPoint(r.touches[1]),a=x2(i,o);this.onDrag(a),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var s=y2(i,o),u=n.props.zoom*(s/n.lastPinchDistance);n.setNewZoom(u,a,{shouldUpdatePosition:!1}),n.lastPinchDistance=s;var l=b2(i,o),c=n.props.rotation+(l-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(c),n.lastPinchRotation=l})}},t.prototype.render=function(){var r=this,n=this.props,i=n.image,o=n.video,a=n.mediaProps,s=n.transform,u=n.crop,l=u.x,c=u.y,f=n.rotation,d=n.zoom,h=n.cropShape,m=n.showGrid,p=n.style,v=p.containerStyle,x=p.cropAreaStyle,b=p.mediaStyle,C=n.classes,E=C.containerClassName,w=C.cropAreaClassName,k=C.mediaClassName,T=this.getObjectFit();return g.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(A){return r.containerRef=A},"data-testid":"container",style:v,className:Ql("reactEasyCrop_Container",E)},i?g.createElement("img",zt({alt:"",className:Ql("reactEasyCrop_Image",T==="contain"&&"reactEasyCrop_Contain",T==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",T==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",k)},a,{src:i,ref:this.imageRef,style:zt(zt({},b),{transform:s||"translate(".concat(l,"px, ").concat(c,"px) rotate(").concat(f,"deg) scale(").concat(d,")")}),onLoad:this.onMediaLoad})):o&&g.createElement("video",zt({autoPlay:!0,loop:!0,muted:!0,className:Ql("reactEasyCrop_Video",T==="contain"&&"reactEasyCrop_Contain",T==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",T==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",k)},a,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:zt(zt({},b),{transform:s||"translate(".concat(l,"px, ").concat(c,"px) rotate(").concat(f,"deg) scale(").concat(d,")")}),controls:!1}),(Array.isArray(o)?o:[{src:o}]).map(function(O){return g.createElement("source",zt({key:O.src},O))})),this.state.cropSize&&g.createElement("div",{style:zt(zt({},x),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:Ql("reactEasyCrop_CropArea",h==="round"&&"reactEasyCrop_CropAreaRound",m&&"reactEasyCrop_CropAreaGrid",w)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:Zq,minZoom:Xq,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(r){return{x:Number(r.clientX),y:Number(r.clientY)}},t.getTouchPoint=function(r){return{x:Number(r.clientX),y:Number(r.clientY)}},t}(g.Component);const Jq=e=>new Promise((t,r)=>{const n=new Image;n.addEventListener("load",()=>t(n)),n.addEventListener("error",i=>r(i)),n.setAttribute("crossOrigin","anonymous"),n.src=e});function w2(e){return e*Math.PI/180}function eK(e,t,r){const n=w2(r);return{width:Math.abs(Math.cos(n)*e)+Math.abs(Math.sin(n)*t),height:Math.abs(Math.sin(n)*e)+Math.abs(Math.cos(n)*t)}}async function tK(e,t,r=0,n={horizontal:!1,vertical:!1}){const i=await Jq(e),o=document.createElement("canvas"),a=o.getContext("2d");if(!a)return null;const s=w2(r),{width:u,height:l}=eK(i.width,i.height,r);o.width=u,o.height=l,a.translate(u/2,l/2),a.rotate(s),a.scale(n.horizontal?-1:1,n.vertical?-1:1),a.translate(-i.width/2,-i.height/2),a.drawImage(i,0,0);const c=a.getImageData(t.x,t.y,t.width,t.height);return o.width=t.width,o.height=t.height,a.putImageData(c,0,0),new Promise((f,d)=>{o.toBlob(h=>{f(h)},"image/png")})}const C2=({title:e,open:t,onClose:r,onFileCropped:n,image:{width:i,height:o,aspect:a,imgSrc:s=""}})=>{const[u,l]=g.useState({x:0,y:0}),[c,f]=g.useState(1),d=g.useRef(),h=g.useRef(),m=async(x,b)=>{try{const C=await tK(s,b,0);d.current=new File([C],"image.png",{type:C.type})}catch{n(void 0)}},p=async()=>{n(h.current),r()},v=()=>{n(d.current),h.current=d.current,r()};return y.jsxs(P.Dialog,{open:t,scroll:"body",PaperProps:{sx:{maxWidth:"100%"}},children:[y.jsx(P.DialogTitle,{children:e}),y.jsx(P.DialogContent,{children:y.jsx(P.Stack,{position:"relative",alignItems:"center",justifyContent:"center",style:{position:"relative",width:i*1.1,height:o*1.1,margin:"auto"},children:y.jsx(Qq,{image:s,crop:u,zoom:c,minZoom:1,maxZoom:5,cropSize:{width:i,height:o},aspect:a,onCropChange:l,onZoomChange:f,onCropComplete:m,objectFit:"horizontal-cover"})})}),y.jsxs(P.DialogActions,{children:[y.jsxs(P.Stack,{direction:"row",gap:3,flex:1,alignItems:"center",maxWidth:200,mr:"auto",children:[y.jsx(P.Typography,{variant:"body1",children:"Zoom"}),y.jsx(P.Slider,{value:c,onChange:(x,b)=>f(Array.isArray(b)?b[0]:b),min:1,max:5,size:"medium",step:.5})]}),y.jsx(P.Button,{variant:"soft",size:"medium",onClick:p,children:"Descartar"}),y.jsx(P.Button,{variant:"contained",size:"medium",onClick:v,children:"Salvar"})]})]})},rK=It(P.Box)(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=t.variant==="filled",i=t.variant==="outlined",o=t.variant==="soft",a={...t.color==="default"&&{...i&&{backgroundColor:"transparent",color:e.palette.text.primary,border:`1px solid ${W(e.palette.grey[500],.32)}`},...o&&{color:r?e.palette.text.primary:e.palette.common.white,backgroundColor:W(e.palette.grey[500],.16)}}},s={...t.color!=="default"&&{...n&&{color:e.palette[t.color].contrastText,backgroundColor:e.palette[t.color].main},...i&&{backgroundColor:"transparent",color:e.palette[t.color].main,border:`1px solid ${e.palette[t.color].main}`},...o&&{color:e.palette[t.color][r?"dark":"light"],backgroundColor:W(e.palette[t.color].main,.16)}}};return{height:24,minWidth:22,lineHeight:0,borderRadius:6,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",textTransform:"capitalize",padding:e.spacing(0,1),color:e.palette.grey[800],fontSize:e.typography.pxToRem(12),fontFamily:e.typography.fontFamily,backgroundColor:e.palette.grey[300],fontWeight:e.typography.fontWeightBold,...s,...a}}),S2=g.forwardRef(({children:e,color:t="default",variant:r="soft",startIcon:n,endIcon:i,sx:o,...a},s)=>{const u=An(),l={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return y.jsxs(rK,{ref:s,component:"span",ownerState:{color:t,variant:r},sx:{...n&&{pl:.75},...i&&{pr:.75},...o},theme:u,...a,children:[n&&y.jsxs(P.Box,{sx:{mr:.75,...l},children:[" ",n," "]}),e,i&&y.jsxs(P.Box,{sx:{ml:.75,...l},children:[" ",i," "]})]})});S2.displayName="Label";function yn(e){return typeof e=="string"||e instanceof String}function E2(e){var t;return typeof e=="object"&&e!=null&&(e==null||(t=e.constructor)==null?void 0:t.name)==="Object"}function T2(e,t){return Array.isArray(t)?T2(e,(r,n)=>t.includes(n)):Object.entries(e).reduce((r,n)=>{let[i,o]=n;return t(o,i)&&(r[i]=o),r},{})}const ye={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function nK(e){switch(e){case ye.LEFT:return ye.FORCE_LEFT;case ye.RIGHT:return ye.FORCE_RIGHT;default:return e}}function uh(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function Jl(e,t){if(t===e)return!0;const r=Array.isArray(t),n=Array.isArray(e);let i;if(r&&n){if(t.length!=e.length)return!1;for(i=0;i<t.length;i++)if(!Jl(t[i],e[i]))return!1;return!0}if(r!=n)return!1;if(t&&e&&typeof t=="object"&&typeof e=="object"){const o=t instanceof Date,a=e instanceof Date;if(o&&a)return t.getTime()==e.getTime();if(o!=a)return!1;const s=t instanceof RegExp,u=e instanceof RegExp;if(s&&u)return t.toString()==e.toString();if(s!=u)return!1;const l=Object.keys(t);for(i=0;i<l.length;i++)if(!Object.prototype.hasOwnProperty.call(e,l[i]))return!1;for(i=0;i<l.length;i++)if(!Jl(e[l[i]],t[l[i]]))return!1;return!0}else if(t&&e&&typeof t=="function"&&typeof e=="function")return t.toString()===e.toString();return!1}class iK{constructor(t){for(Object.assign(this,t);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?ye.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?ye.RIGHT:ye.LEFT}}function ke(e,t){return new ke.InputMask(e,t)}function k2(e){if(e==null)throw new Error("mask property should be defined");return e instanceof RegExp?ke.MaskedRegExp:yn(e)?ke.MaskedPattern:e===Date?ke.MaskedDate:e===Number?ke.MaskedNumber:Array.isArray(e)||e===Array?ke.MaskedDynamic:ke.Masked&&e.prototype instanceof ke.Masked?e:ke.Masked&&e instanceof ke.Masked?e.constructor:e instanceof Function?ke.MaskedFunction:(console.warn("Mask not found for mask",e),ke.Masked)}function eu(e){if(!e)throw new Error("Options in not defined");if(ke.Masked){if(e.prototype instanceof ke.Masked)return{mask:e};const{mask:t=void 0,...r}=e instanceof ke.Masked?{mask:e}:E2(e)&&e.mask instanceof ke.Masked?e:{};if(t){const n=t.mask;return{...T2(t,(i,o)=>!o.startsWith("_")),mask:t.constructor,_mask:n,...r}}}return E2(e)?{...e}:{mask:e}}function Zn(e){if(ke.Masked&&e instanceof ke.Masked)return e;const t=eu(e),r=k2(t.mask);if(!r)throw new Error("Masked class is not found for provided mask, appropriate module needs to be imported manually before creating mask.");return t.mask===r&&delete t.mask,t._mask&&(t.mask=t._mask,delete t._mask),new r(t)}ke.createMask=Zn;class ch{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch{}return t??this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch{}return t??this.value.length}select(t,r){if(!(t==null||r==null||t===this.selectionStart&&r===this.selectionEnd))try{this._unsafeSelect(t,r)}catch{}}get isActive(){return!1}}ke.MaskElement=ch;class Qn extends ch{constructor(t){super(),this.input=t,this._handlers={}}get rootElement(){var t,r,n;return(t=(r=(n=this.input).getRootNode)==null?void 0:r.call(n))!=null?t:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(t){Object.keys(t).forEach(r=>this._toggleEventHandler(Qn.EVENTS_MAP[r],t[r]))}unbindEvents(){Object.keys(this._handlers).forEach(t=>this._toggleEventHandler(t))}_toggleEventHandler(t,r){this._handlers[t]&&(this.input.removeEventListener(t,this._handlers[t]),delete this._handlers[t]),r&&(this.input.addEventListener(t,r),this._handlers[t]=r)}}Qn.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"},ke.HTMLMaskElement=Qn;class oK extends Qn{constructor(t){super(t),this.input=t,this._handlers={}}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,r){this.input.setSelectionRange(t,r)}get value(){return this.input.value}set value(t){this.input.value=t}}ke.HTMLMaskElement=Qn;class _2 extends Qn{get _unsafeSelectionStart(){const t=this.rootElement,r=t.getSelection&&t.getSelection(),n=r&&r.anchorOffset,i=r&&r.focusOffset;return i==null||n==null||n<i?n:i}get _unsafeSelectionEnd(){const t=this.rootElement,r=t.getSelection&&t.getSelection(),n=r&&r.anchorOffset,i=r&&r.focusOffset;return i==null||n==null||n>i?n:i}_unsafeSelect(t,r){if(!this.rootElement.createRange)return;const n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,t),n.setEnd(this.input.lastChild||this.input,r);const i=this.rootElement,o=i.getSelection&&i.getSelection();o&&(o.removeAllRanges(),o.addRange(n))}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}}ke.HTMLContenteditableMaskElement=_2;class aK{constructor(t,r){this.el=t instanceof ch?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new _2(t):new oK(t),this.masked=Zn(r),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(t){var r;return t==null||((r=this.masked)==null?void 0:r.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof ke.Masked)&&this.masked.constructor===k2(t)){this.masked.updateOptions({mask:t});return}const r=t instanceof ke.Masked?t:Zn({mask:t});r.unmaskedValue=this.masked.unmaskedValue,this.masked=r}get value(){return this._value}set value(t){this.value!==t&&(this.masked.value=t,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){this.unmaskedValue!==t&&(this.masked.unmaskedValue=t,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(t){this.masked.typedValueEquals(t)||(this.masked.typedValue=t,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(t,r){const n=this._listeners[t];n&&n.forEach(i=>i(r))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){!this.el||!this.el.isActive||(this.el.select(t,t),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){const t=this.masked.unmaskedValue,r=this.masked.value,n=this.displayValue,i=this.unmaskedValue!==t||this.value!==r;this._unmaskedValue=t,this._value=r,this.el.value!==n&&(this.el.value=n),i&&this._fireChangeEvents()}updateOptions(t){const{mask:r,...n}=t,i=!this.maskEquals(r),o=!Jl(this.masked,n);i&&(this.mask=r),o&&this.masked.updateOptions(n),(i||o)&&this.updateControl()}updateCursor(t){t!=null&&(this.cursorPos=t,this._delayUpdateCursor(t))}_delayUpdateCursor(t){this._abortUpdateCursor(),this._changingCursorPos=t,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,ye.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(t,r){return this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(r),this}off(t,r){if(!this._listeners[t])return this;if(!r)return delete this._listeners[t],this;const n=this._listeners[t].indexOf(r);return n>=0&&this._listeners[t].splice(n,1),this}_onInput(t){if(this._inputEvent=t,this._abortUpdateCursor(),!this._selection)return this.updateValue();const r=new iK({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),n=this.masked.rawInputValue,i=this.masked.splice(r.startChangePos,r.removed.length,r.inserted,r.removeDirection,{input:!0,raw:!0}).offset,o=n===this.masked.rawInputValue?r.removeDirection:ye.NONE;let a=this.masked.nearestInputPos(r.startChangePos+i,o);o!==ye.NONE&&(a=this.masked.nearestInputPos(a,ye.NONE)),this.updateControl(),this.updateCursor(a),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(t){t.preventDefault(),t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}ke.InputMask=aK;class nt{static normalize(t){return Array.isArray(t)?t:[t,new nt]}constructor(t){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},t)}aggregate(t){return this.rawInserted+=t.rawInserted,this.skip=this.skip||t.skip,this.inserted+=t.inserted,this.tailShift+=t.tailShift,this}get offset(){return this.tailShift+this.inserted.length}}ke.ChangeDetails=nt;class Zr{constructor(t,r,n){t===void 0&&(t=""),r===void 0&&(r=0),this.value=t,this.from=r,this.stop=n}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";const r=this.value[0];return this.value=this.value.slice(1),r}shift(){if(!this.value.length)return"";const t=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),t}}class ar{constructor(t){this._value="",this._update({...ar.DEFAULTS,...t}),this._initialized=!0}updateOptions(t){Object.keys(t).length&&this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:!0})}resolve(t,r){r===void 0&&(r={input:!0}),this.reset(),this.append(t,r,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){this.format?this.value=this.format(t,this):this.unmaskedValue=String(t)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(t){this.resolve(t,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(t,r){return t}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),Math.min(this.displayValue.length,r-t)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this.displayValue.slice(t,r)}extractTail(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),new Zr(this.extractInput(t,r),t)}appendTail(t){return yn(t)&&(t=new Zr(String(t))),t.appendTo(this)}_appendCharRaw(t,r){return t?(this._value+=t,new nt({inserted:t,rawInserted:t})):new nt}_appendChar(t,r,n){r===void 0&&(r={});const i=this.state;let o;if([t,o]=this.doPrepareChar(t,r),o=o.aggregate(this._appendCharRaw(t,r)),o.inserted){let a,s=this.doValidate(r)!==!1;if(s&&n!=null){const u=this.state;this.overwrite===!0&&(a=n.state,n.unshift(this.displayValue.length-o.tailShift));let l=this.appendTail(n);s=l.rawInserted===n.toString(),!(s&&l.inserted)&&this.overwrite==="shift"&&(this.state=u,a=n.state,n.shift(),l=this.appendTail(n),s=l.rawInserted===n.toString()),s&&l.inserted&&(this.state=u)}s||(o=new nt,this.state=i,n&&a&&(n.state=a))}return o}_appendPlaceholder(){return new nt}_appendEager(){return new nt}append(t,r,n){if(!yn(t))throw new Error("value should be string");const i=yn(n)?new Zr(String(n)):n;r!=null&&r.tail&&(r._beforeTailState=this.state);let o;[t,o]=this.doPrepare(t,r);for(let a=0;a<t.length;++a){const s=this._appendChar(t[a],r,i);if(!s.rawInserted&&!this.doSkipInvalid(t[a],r,i))break;o.aggregate(s)}return(this.eager===!0||this.eager==="append")&&r!=null&&r.input&&t&&o.aggregate(this._appendEager()),i!=null&&(o.tailShift+=this.appendTail(i).tailShift),o}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this._value=this.displayValue.slice(0,t)+this.displayValue.slice(r),new nt}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=!0;const r=this.rawInputValue,n=this.value,i=t();return this.rawInputValue=r,this.value&&this.value!==n&&n.indexOf(this.value)===0&&this.append(n.slice(this.displayValue.length),{},""),delete this._refreshing,i}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=!0;const r=this.state,n=t(this);return this.state=r,delete this._isolated,n}doSkipInvalid(t,r,n){return!!this.skipInvalid}doPrepare(t,r){return r===void 0&&(r={}),nt.normalize(this.prepare?this.prepare(t,this,r):t)}doPrepareChar(t,r){return r===void 0&&(r={}),nt.normalize(this.prepareChar?this.prepareChar(t,this,r):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){this.commit&&this.commit(this.value,this)}splice(t,r,n,i,o){i===void 0&&(i=ye.NONE),o===void 0&&(o={input:!0});const a=t+r,s=this.extractTail(a),u=this.eager===!0||this.eager==="remove";let l;u&&(i=nK(i),l=this.extractInput(0,a,{raw:!0}));let c=t;const f=new nt;if(i!==ye.NONE&&(c=this.nearestInputPos(t,r>1&&t!==0&&!u?ye.NONE:i),f.tailShift=c-t),f.aggregate(this.remove(c)),u&&i!==ye.NONE&&l===this.rawInputValue)if(i===ye.FORCE_LEFT){let d;for(;l===this.rawInputValue&&(d=this.displayValue.length);)f.aggregate(new nt({tailShift:-1})).aggregate(this.remove(d-1))}else i===ye.FORCE_RIGHT&&s.unshift();return f.aggregate(this.append(n,o,s))}maskEquals(t){return this.mask===t}typedValueEquals(t){const r=this.typedValue;return t===r||ar.EMPTY_VALUES.includes(t)&&ar.EMPTY_VALUES.includes(r)||(this.format?this.format(t,this)===this.format(this.typedValue,this):!1)}}ar.DEFAULTS={skipInvalid:!0},ar.EMPTY_VALUES=[void 0,null,""],ke.Masked=ar;class Jn{constructor(t,r){t===void 0&&(t=[]),r===void 0&&(r=0),this.chunks=t,this.from=r}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=yn(t)?new Zr(String(t)):t;const r=this.chunks[this.chunks.length-1],n=r&&(r.stop===t.stop||t.stop==null)&&t.from===r.from+r.toString().length;if(t instanceof Zr)n?r.extend(t.toString()):this.chunks.push(t);else if(t instanceof Jn){if(t.stop==null){let i;for(;t.chunks.length&&t.chunks[0].stop==null;)i=t.chunks.shift(),i.from+=t.from,this.extend(i)}t.toString()&&(t.stop=t.blockIndex,this.chunks.push(t))}}appendTo(t){if(!(t instanceof ke.MaskedPattern))return new Zr(this.toString()).appendTo(t);const r=new nt;for(let n=0;n<this.chunks.length&&!r.skip;++n){const i=this.chunks[n],o=t._mapPosToBlock(t.displayValue.length),a=i.stop;let s;if(a!=null&&(!o||o.index<=a)){if(i instanceof Jn||t._stops.indexOf(a)>=0){const u=t._appendPlaceholder(a);r.aggregate(u)}s=i instanceof Jn&&t._blocks[a]}if(s){const u=s.appendTail(i);u.skip=!1,r.aggregate(u),t._value+=u.inserted;const l=i.toString().slice(u.rawInserted.length);l&&r.aggregate(t.append(l,{tail:!0}))}else r.aggregate(t.append(i.toString(),{tail:!0}))}return r}get state(){return{chunks:this.chunks.map(t=>t.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){const{chunks:r,...n}=t;Object.assign(this,n),this.chunks=r.map(i=>{const o="chunks"in i?new Jn:new Zr;return o.state=i,o})}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";const r=t!=null?t-this.from:t;let n=0;for(;n<this.chunks.length;){const i=this.chunks[n],o=i.unshift(r);if(i.toString()){if(!o)break;++n}else this.chunks.splice(n,1);if(o)return o}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;for(;0<=t;){const r=this.chunks[t],n=r.shift();if(r.toString()){if(!n)break;--t}else this.chunks.splice(t,1);if(n)return n}return""}}class sK{constructor(t,r){this.masked=t,this._log=[];const{offset:n,index:i}=t._mapPosToBlock(r)||(r<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=n,this.index=i,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){const t=this._log.pop();return t&&(this.state=t),t}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(t){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((r=this.block)==null?void 0:r.displayValue.length)||0){var r;if(t())return this.ok=!0}return this.ok=!1}_pushRight(t){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(t())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,ye.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,ye.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,ye.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,ye.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,ye.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,ye.NONE),!0})}}class O2{constructor(t){Object.assign(this,t),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._value=this._value.slice(0,t)+this._value.slice(r),this._value||(this._isRawInput=!1),new nt}nearestInputPos(t,r){r===void 0&&(r=ye.NONE);const n=0,i=this._value.length;switch(r){case ye.LEFT:case ye.FORCE_LEFT:return n;case ye.NONE:case ye.RIGHT:case ye.FORCE_RIGHT:default:return i}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._isRawInput?r-t:0}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),n===void 0&&(n={}),n.raw&&this._isRawInput&&this._value.slice(t,r)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(t,r){r===void 0&&(r={});const n=new nt;if(this.isFilled)return n;const i=this.eager===!0||this.eager==="append",a=this.char===t&&(this.isUnmasking||r.input||r.raw)&&(!r.raw||!i)&&!r.tail;return a&&(n.rawInserted=this.char),this._value=n.inserted=this.char,this._isRawInput=a&&(r.raw||r.input),n}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const t=new nt;return this.isFilled||(this._value=t.inserted=this.char),t}extractTail(){return new Zr("")}appendTail(t){return yn(t)&&(t=new Zr(String(t))),t.appendTo(this)}append(t,r,n){const i=this._appendChar(t[0],r);return n!=null&&(i.tailShift+=this.appendTail(n).tailShift),i}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value,this._isRawInput=!!t._rawInputValue}}class tu{constructor(t){const{parent:r,isOptional:n,placeholderChar:i,displayChar:o,lazy:a,eager:s,...u}=t;this.masked=Zn(u),Object.assign(this,{parent:r,isOptional:n,placeholderChar:i,displayChar:o,lazy:a,eager:s})}reset(){this.isFilled=!1,this.masked.reset()}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),t===0&&r>=1?(this.isFilled=!1,this.masked.remove(t,r)):new nt}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(t,r){if(r===void 0&&(r={}),this.isFilled)return new nt;const n=this.masked.state,i=this.masked._appendChar(t,this.currentMaskFlags(r));return i.inserted&&this.doValidate(r)===!1&&(i.inserted=i.rawInserted="",this.masked.state=n),!i.inserted&&!this.isOptional&&!this.lazy&&!r.input&&(i.inserted=this.placeholderChar),i.skip=!i.inserted&&!this.isOptional,this.isFilled=!!i.inserted,i}append(t,r,n){return this.masked.append(t,this.currentMaskFlags(r),n)}_appendPlaceholder(){const t=new nt;return this.isFilled||this.isOptional||(this.isFilled=!0,t.inserted=this.placeholderChar),t}_appendEager(){return new nt}extractTail(t,r){return this.masked.extractTail(t,r)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.masked.extractInput(t,r,n)}nearestInputPos(t,r){r===void 0&&(r=ye.NONE);const n=0,i=this.value.length,o=Math.min(Math.max(t,n),i);switch(r){case ye.LEFT:case ye.FORCE_LEFT:return this.isComplete?o:n;case ye.RIGHT:case ye.FORCE_RIGHT:return this.isComplete?o:i;case ye.NONE:default:return o}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.value.slice(t,r).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked,this.isFilled=t.isFilled}currentMaskFlags(t){var r;return{...t,_beforeTailState:(t==null||(r=t._beforeTailState)==null?void 0:r.masked)||(t==null?void 0:t._beforeTailState)}}}tu.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class lK extends ar{updateOptions(t){super.updateOptions(t)}_update(t){const r=t.mask;r&&(t.validate=n=>n.search(r)>=0),super._update(t)}}ke.MaskedRegExp=lK;class sr extends ar{constructor(t){super({...sr.DEFAULTS,...t,definitions:Object.assign({},tu.DEFAULT_DEFINITIONS,t==null?void 0:t.definitions)})}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions),super._update(t),this._rebuildMask()}_rebuildMask(){const t=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const r=this.mask;if(!r||!t)return;let n=!1,i=!1;for(let o=0;o<r.length;++o){if(this.blocks){const l=r.slice(o),c=Object.keys(this.blocks).filter(d=>l.indexOf(d)===0);c.sort((d,h)=>h.length-d.length);const f=c[0];if(f){const{expose:d,...h}=eu(this.blocks[f]),m=Zn({lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,...h,parent:this});m&&(this._blocks.push(m),d&&(this.exposeBlock=m),this._maskedBlocks[f]||(this._maskedBlocks[f]=[]),this._maskedBlocks[f].push(this._blocks.length-1)),o+=f.length-1;continue}}let a=r[o],s=a in t;if(a===sr.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(a==="{"||a==="}"){n=!n;continue}if(a==="["||a==="]"){i=!i;continue}if(a===sr.ESCAPE_CHAR){if(++o,a=r[o],!a)break;s=!1}const u=s?new tu({isOptional:i,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...eu(t[a]),parent:this}):new O2({char:a,eager:this.eager,isUnmasking:n});this._blocks.push(u)}}get state(){return{...super.state,_blocks:this._blocks.map(t=>t.state)}}set state(t){const{_blocks:r,...n}=t;this._blocks.forEach((i,o)=>i.state=r[o]),super.state=n}reset(){super.reset(),this._blocks.forEach(t=>t.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(t=>t.isComplete)}get isFilled(){return this._blocks.every(t=>t.isFilled)}get isFixed(){return this._blocks.every(t=>t.isFixed)}get isOptional(){return this._blocks.every(t=>t.isOptional)}doCommit(){this._blocks.forEach(t=>t.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((t,r)=>t+=r.unmaskedValue,"")}set unmaskedValue(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t,this.appendTail(r),this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((t,r)=>t+=r.value,"")}set value(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t,this.appendTail(r),this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){const r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t,this.appendTail(r),this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce((t,r)=>t+=r.displayValue,"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;const r=new nt;let n=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(n==null)return r;this._blocks[n].isFilled&&++n;for(let i=n;i<this._blocks.length;++i){const o=this._blocks[i]._appendEager();if(!o.inserted)break;r.aggregate(o)}return r}_appendCharRaw(t,r){r===void 0&&(r={});const n=this._mapPosToBlock(this.displayValue.length),i=new nt;if(!n)return i;for(let a=n.index;;++a){var o;const s=this._blocks[a];if(!s)break;const u=s._appendChar(t,{...r,_beforeTailState:(o=r._beforeTailState)==null||(o=o._blocks)==null?void 0:o[a]}),l=u.skip;if(i.aggregate(u),l||u.rawInserted)break}return i}extractTail(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);const n=new Jn;return t===r||this._forEachBlocksInRange(t,r,(i,o,a,s)=>{const u=i.extractTail(a,s);u.stop=this._findStopBefore(o),u.from=this._blockStartPos(o),u instanceof Jn&&(u.blockIndex=o),n.extend(u)}),n}extractInput(t,r,n){if(t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),n===void 0&&(n={}),t===r)return"";let i="";return this._forEachBlocksInRange(t,r,(o,a,s,u)=>{i+=o.extractInput(s,u,n)}),i}_findStopBefore(t){let r;for(let n=0;n<this._stops.length;++n){const i=this._stops[n];if(i<=t)r=i;else break}return r}_appendPlaceholder(t){const r=new nt;if(this.lazy&&t==null)return r;const n=this._mapPosToBlock(this.displayValue.length);if(!n)return r;const i=n.index,o=t??this._blocks.length;return this._blocks.slice(i,o).forEach(a=>{if(!a.lazy||t!=null){var s;const u=a._appendPlaceholder((s=a._blocks)==null?void 0:s.length);this._value+=u.inserted,r.aggregate(u)}}),r}_mapPosToBlock(t){let r="";for(let n=0;n<this._blocks.length;++n){const i=this._blocks[n],o=r.length;if(r+=i.displayValue,t<=r.length)return{index:n,offset:t-o}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce((r,n)=>r+=n.displayValue.length,0)}_forEachBlocksInRange(t,r,n){r===void 0&&(r=this.displayValue.length);const i=this._mapPosToBlock(t);if(i){const o=this._mapPosToBlock(r),a=o&&i.index===o.index,s=i.offset,u=o&&a?o.offset:this._blocks[i.index].displayValue.length;if(n(this._blocks[i.index],i.index,s,u),o&&!a){for(let l=i.index+1;l<o.index;++l)n(this._blocks[l],l,0,this._blocks[l].displayValue.length);n(this._blocks[o.index],o.index,0,o.offset)}}}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);const n=super.remove(t,r);return this._forEachBlocksInRange(t,r,(i,o,a,s)=>{n.aggregate(i.remove(a,s))}),n}nearestInputPos(t,r){if(r===void 0&&(r=ye.NONE),!this._blocks.length)return 0;const n=new sK(this,t);if(r===ye.NONE)return n.pushRightBeforeInput()||(n.popState(),n.pushLeftBeforeInput())?n.pos:this.displayValue.length;if(r===ye.LEFT||r===ye.FORCE_LEFT){if(r===ye.LEFT){if(n.pushRightBeforeFilled(),n.ok&&n.pos===t)return t;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),r===ye.LEFT){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&&n.pos<=t||(n.popState(),n.ok&&n.pos<=t))return n.pos;n.popState()}return n.ok?n.pos:r===ye.FORCE_LEFT?0:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:0)}return r===ye.RIGHT||r===ye.FORCE_RIGHT?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:r===ye.FORCE_RIGHT?this.displayValue.length:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:this.nearestInputPos(t,ye.LEFT))):t}totalInputPositions(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let n=0;return this._forEachBlocksInRange(t,r,(i,o,a,s)=>{n+=i.totalInputPositions(a,s)}),n}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){const r=this._maskedBlocks[t];return r?r.map(n=>this._blocks[n]):[]}}sr.DEFAULTS={lazy:!0,placeholderChar:"_"},sr.STOP_CHAR="`",sr.ESCAPE_CHAR="\\",sr.InputDefinition=tu,sr.FixedDefinition=O2,ke.MaskedPattern=sr;class ru extends sr{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{to:r=this.to||0,from:n=this.from||0,maxLength:i=this.maxLength||0,autofix:o=this.autofix,...a}=t;this.to=r,this.from=n,this.maxLength=Math.max(String(r).length,i),this.autofix=o;const s=String(this.from).padStart(this.maxLength,"0"),u=String(this.to).padStart(this.maxLength,"0");let l=0;for(;l<u.length&&u[l]===s[l];)++l;a.mask=u.slice(0,l).replace(/0/g,"\\0")+"0".repeat(this.maxLength-l),super._update(a)}get isComplete(){return super.isComplete&&!!this.value}boundaries(t){let r="",n="";const[,i,o]=t.match(/^(\D*)(\d*)(\D*)/)||[];return o&&(r="0".repeat(i.length)+o,n="9".repeat(i.length)+o),r=r.padEnd(this.maxLength,"0"),n=n.padEnd(this.maxLength,"9"),[r,n]}doPrepareChar(t,r){r===void 0&&(r={});let n;if([t,n]=super.doPrepareChar(t.replace(/\D/g,""),r),!this.autofix||!t)return[t,n];const i=String(this.from).padStart(this.maxLength,"0"),o=String(this.to).padStart(this.maxLength,"0"),a=this.value+t;if(a.length>this.maxLength)return["",n];const[s,u]=this.boundaries(a);return Number(u)<this.from?[i[a.length-1],n]:Number(s)>this.to?this.autofix==="pad"&&a.length<this.maxLength?["",n.aggregate(this.append(i[a.length-1]+t,r))]:[o[a.length-1],n]:[t,n]}doValidate(t){const r=this.value;if(r.search(/[^0]/)===-1&&r.length<=this._matchFrom)return!0;const[i,o]=this.boundaries(r);return this.from<=Number(o)&&Number(i)<=this.to&&super.doValidate(t)}}ke.MaskedRange=ru;class ei extends sr{constructor(t){const{mask:r,pattern:n,...i}={...ei.DEFAULTS,...t};super({...i,mask:yn(r)?r:n})}updateOptions(t){super.updateOptions(t)}_update(t){const{mask:r,pattern:n,blocks:i,...o}={...ei.DEFAULTS,...t},a=Object.assign({},ei.GET_DEFAULT_BLOCKS());t.min&&(a.Y.from=t.min.getFullYear()),t.max&&(a.Y.to=t.max.getFullYear()),t.min&&t.max&&a.Y.from===a.Y.to&&(a.m.from=t.min.getMonth()+1,a.m.to=t.max.getMonth()+1,a.m.from===a.m.to&&(a.d.from=t.min.getDate(),a.d.to=t.max.getDate())),Object.assign(a,this.blocks,i),Object.keys(a).forEach(s=>{const u=a[s];!("autofix"in u)&&"autofix"in t&&(u.autofix=t.autofix)}),super._update({...o,mask:yn(r)?r:n,blocks:a})}doValidate(t){const r=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&r!=null&&(this.min==null||this.min<=r)&&(this.max==null||r<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}}ei.GET_DEFAULT_BLOCKS=()=>({d:{mask:ru,from:1,to:31,maxLength:2},m:{mask:ru,from:1,to:12,maxLength:2},Y:{mask:ru,from:1900,to:9999}}),ei.DEFAULTS={mask:Date,pattern:"d{.}`m{.}`Y",format:(e,t)=>{if(!e)return"";const r=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),i=e.getFullYear();return[r,n,i].join(".")},parse:(e,t)=>{const[r,n,i]=e.split(".").map(Number);return new Date(i,n-1,r)}},ke.MaskedDate=ei;class ja extends ar{constructor(t){super({...ja.DEFAULTS,...t}),this.currentMask=void 0}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),"mask"in t&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(t.mask)?t.mask.map(r=>{const{expose:n,...i}=eu(r),o=Zn({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...i});return n&&(this.exposeMask=o),o}):[])}_appendCharRaw(t,r){r===void 0&&(r={});const n=this._applyDispatch(t,r);return this.currentMask&&n.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(r))),n}_applyDispatch(t,r,n){t===void 0&&(t=""),r===void 0&&(r={}),n===void 0&&(n="");const i=r.tail&&r._beforeTailState!=null?r._beforeTailState._value:this.value,o=this.rawInputValue,a=r.tail&&r._beforeTailState!=null?r._beforeTailState._rawInputValue:o,s=o.slice(a.length),u=this.currentMask,l=new nt,c=u==null?void 0:u.state;if(this.currentMask=this.doDispatch(t,{...r},n),this.currentMask)if(this.currentMask!==u){if(this.currentMask.reset(),a){const f=this.currentMask.append(a,{raw:!0});l.tailShift=f.inserted.length-i.length}s&&(l.tailShift+=this.currentMask.append(s,{raw:!0,tail:!0}).tailShift)}else c&&(this.currentMask.state=c);return l}_appendPlaceholder(){const t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}_appendEager(){const t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}appendTail(t){const r=new nt;return t&&r.aggregate(this._applyDispatch("",{},t)),r.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var r,n;return{...t,_beforeTailState:((r=t._beforeTailState)==null?void 0:r.currentMaskRef)===this.currentMask&&((n=t._beforeTailState)==null?void 0:n.currentMask)||t._beforeTailState}}doDispatch(t,r,n){return r===void 0&&(r={}),n===void 0&&(n=""),this.dispatch(t,this,r,n)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,r){r===void 0&&(r={});let[n,i]=super.doPrepare(t,r);if(this.currentMask){let o;[n,o]=super.doPrepare(n,this.currentMaskFlags(r)),i=i.aggregate(o)}return[n,i]}doPrepareChar(t,r){r===void 0&&(r={});let[n,i]=super.doPrepareChar(t,r);if(this.currentMask){let o;[n,o]=super.doPrepareChar(n,this.currentMaskFlags(r)),i=i.aggregate(o)}return[n,i]}reset(){var t;(t=this.currentMask)==null||t.reset(),this.compiledMasks.forEach(r=>r.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){this.exposeMask?(this.exposeMask.value=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){this.exposeMask?(this.exposeMask.unmaskedValue=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t,this.currentMask=this.exposeMask,this._applyDispatch();return}let r=String(t);this.currentMask&&(this.currentMask.typedValue=t,r=this.currentMask.unmaskedValue),this.unmaskedValue=r}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return!!((t=this.currentMask)!=null&&t.isComplete)}get isFilled(){var t;return!!((t=this.currentMask)!=null&&t.isFilled)}remove(t,r){const n=new nt;return this.currentMask&&n.aggregate(this.currentMask.remove(t,r)).aggregate(this._applyDispatch()),n}get state(){var t;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(r=>r.state),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state}}set state(t){const{compiledMasks:r,currentMaskRef:n,currentMask:i,...o}=t;r&&this.compiledMasks.forEach((a,s)=>a.state=r[s]),n!=null&&(this.currentMask=n,this.currentMask.state=i),super.state=o}extractInput(t,r,n){return this.currentMask?this.currentMask.extractInput(t,r,n):""}extractTail(t,r){return this.currentMask?this.currentMask.extractTail(t,r):super.extractTail(t,r)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(t,r){return this.currentMask?this.currentMask.nearestInputPos(t,r):super.nearestInputPos(t,r)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every((r,n)=>{if(!t[n])return;const{mask:i,...o}=t[n];return Jl(r,o)&&r.maskEquals(i)}):super.maskEquals(t)}typedValueEquals(t){var r;return!!((r=this.currentMask)!=null&&r.typedValueEquals(t))}}ja.DEFAULTS=void 0,ja.DEFAULTS={dispatch:(e,t,r,n)=>{if(!t.compiledMasks.length)return;const i=t.rawInputValue,o=t.compiledMasks.map((a,s)=>{const u=t.currentMask===a,l=u?a.displayValue.length:a.nearestInputPos(a.displayValue.length,ye.FORCE_LEFT);return a.rawInputValue!==i?(a.reset(),a.append(i,{raw:!0})):u||a.remove(l),a.append(e,t.currentMaskFlags(r)),a.appendTail(n),{index:s,weight:a.rawInputValue.length,totalInputPositions:a.totalInputPositions(0,Math.max(l,a.nearestInputPos(a.displayValue.length,ye.FORCE_LEFT)))}});return o.sort((a,s)=>s.weight-a.weight||s.totalInputPositions-a.totalInputPositions),t.compiledMasks[o[0].index]}},ke.MaskedDynamic=ja;class uK extends sr{constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{enum:r,...n}=t;if(r){const i=r.map(s=>s.length),o=Math.min(...i),a=Math.max(...i)-o;n.mask="*".repeat(o),a&&(n.mask+="["+"*".repeat(a)+"]"),this.enum=r}super._update(n)}doValidate(t){return this.enum.some(r=>r.indexOf(this.unmaskedValue)===0)&&super.doValidate(t)}}ke.MaskedEnum=uK;class cK extends ar{updateOptions(t){super.updateOptions(t)}_update(t){super._update({...t,validate:t.mask})}}ke.MaskedFunction=cK;class hr extends ar{constructor(t){super({...hr.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),this._updateRegExps()}_updateRegExps(){const t="^"+(this.allowNegative?"[+|\\-]?":""),r="\\d*",n=(this.scale?"("+uh(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+r+n),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(uh).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(uh(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const r=t.split(this.radix);return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),r.join(this.radix)}doPrepareChar(t,r){r===void 0&&(r={});const[n,i]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(r.input&&r.raw||!r.input&&!r.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),r);return t&&!n&&(i.skip=!0),n&&!this.allowPositive&&!this.value&&n!=="-"&&i.aggregate(this._appendChar("-")),[n,i]}_separatorsCount(t,r){r===void 0&&(r=!1);let n=0;for(let i=0;i<t;++i)this._value.indexOf(this.thousandsSeparator,i)===i&&(++n,r&&(t+=this.thousandsSeparator.length));return n}_separatorsCountFromSlice(t){return t===void 0&&(t=this._value),this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}extractInput(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r),this._removeThousandsSeparators(super.extractInput(t,r,n))}_appendCharRaw(t,r){if(r===void 0&&(r={}),!this.thousandsSeparator)return super._appendCharRaw(t,r);const n=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,i=this._separatorsCountFromSlice(n);this._value=this._removeThousandsSeparators(this.value);const o=super._appendCharRaw(t,r);this._value=this._insertThousandsSeparators(this._value);const a=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,s=this._separatorsCountFromSlice(a);return o.tailShift+=(s-i)*this.thousandsSeparator.length,o.skip=!o.rawInserted&&t===this.thousandsSeparator,o}_findSeparatorAround(t){if(this.thousandsSeparator){const r=t-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,r);if(n<=t)return n}return-1}_adjustRangeWithSeparators(t,r){const n=this._findSeparatorAround(t);n>=0&&(t=n);const i=this._findSeparatorAround(r);return i>=0&&(r=i+this.thousandsSeparator.length),[t,r]}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r);const n=this.value.slice(0,t),i=this.value.slice(r),o=this._separatorsCount(n.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+i));const a=this._separatorsCountFromSlice(n);return new nt({tailShift:(a-o)*this.thousandsSeparator.length})}nearestInputPos(t,r){if(!this.thousandsSeparator)return t;switch(r){case ye.NONE:case ye.LEFT:case ye.FORCE_LEFT:{const n=this._findSeparatorAround(t-1);if(n>=0){const i=n+this.thousandsSeparator.length;if(t<i||this.value.length<=i||r===ye.FORCE_LEFT)return n}break}case ye.RIGHT:case ye.FORCE_RIGHT:{const n=this._findSeparatorAround(t);if(n>=0)return n+this.thousandsSeparator.length}}return t}doValidate(t){let r=!!this._removeThousandsSeparators(this.value).match(this._numberRegExp);if(r){const n=this.number;r=r&&!isNaN(n)&&(this.min==null||this.min>=0||this.min<=this.number)&&(this.max==null||this.max<=0||this.number<=this.max)}return r&&super.doValidate(t)}doCommit(){if(this.value){const t=this.number;let r=t;this.min!=null&&(r=Math.max(r,this.min)),this.max!=null&&(r=Math.min(r,this.max)),r!==t&&(this.unmaskedValue=this.format(r,this));let n=this.value;this.normalizeZeros&&(n=this._normalizeZeros(n)),this.padFractionalZeros&&this.scale>0&&(n=this._padFractionalZeros(n)),this._value=n}super.doCommit()}_normalizeZeros(t){const r=this._removeThousandsSeparators(t).split(this.radix);return r[0]=r[0].replace(/^(\D*)(0*)(\d*)/,(n,i,o,a)=>i+a),t.length&&!/\d$/.test(r[0])&&(r[0]=r[0]+"0"),r.length>1&&(r[1]=r[1].replace(/0*$/,""),r[1].length||(r.length=1)),this._insertThousandsSeparators(r.join(this.radix))}_padFractionalZeros(t){if(!t)return t;const r=t.split(this.radix);return r.length<2&&r.push(""),r[1]=r[1].padEnd(this.scale,"0"),r.join(this.radix)}doSkipInvalid(t,r,n){r===void 0&&(r={});const i=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===hr.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,r,n)&&!i}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,hr.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(hr.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||hr.EMPTY_VALUES.includes(t)&&hr.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}}hr.UNMASKED_RADIX=".",hr.EMPTY_VALUES=[...ar.EMPTY_VALUES,0],hr.DEFAULTS={mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[hr.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},ke.MaskedNumber=hr;const fh={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function M2(e,t,r){t===void 0&&(t=fh.MASKED),r===void 0&&(r=fh.MASKED);const n=Zn(e);return i=>n.runIsolated(o=>(o[t]=i,o[r]))}function fK(e,t,r,n){return M2(t,r,n)(e)}ke.PIPE_TYPE=fh,ke.createPipe=M2,ke.pipe=fK;try{globalThis.IMask=ke}catch{}const P2={mask:_.oneOfType([_.array,_.func,_.string,_.instanceOf(RegExp),_.oneOf([Date,Number,ke.Masked]),_.instanceOf(ke.Masked)]),value:_.any,unmask:_.oneOfType([_.bool,_.oneOf(["typed"])]),prepare:_.func,prepareChar:_.func,validate:_.func,commit:_.func,overwrite:_.oneOfType([_.bool,_.oneOf(["shift"])]),eager:_.oneOfType([_.bool,_.oneOf(["append","remove"])]),skipInvalid:_.bool,onAccept:_.func,onComplete:_.func,placeholderChar:_.string,displayChar:_.string,lazy:_.bool,definitions:_.object,blocks:_.object,enum:_.arrayOf(_.string),maxLength:_.number,from:_.number,to:_.number,pattern:_.string,format:_.func,parse:_.func,autofix:_.oneOfType([_.bool,_.oneOf(["pad"])]),radix:_.string,thousandsSeparator:_.string,mapToRadix:_.arrayOf(_.string),scale:_.number,normalizeZeros:_.bool,padFractionalZeros:_.bool,min:_.oneOfType([_.number,_.instanceOf(Date)]),max:_.oneOfType([_.number,_.instanceOf(Date)]),dispatch:_.func,inputRef:_.oneOfType([_.func,_.shape({current:_.object})])},A2=Object.keys(P2).filter(e=>e!=="value"),dK=["value","unmask","onAccept","onComplete","inputRef"],hK=A2.filter(e=>dK.indexOf(e)<0);function pK(e){var t;const r=(t=class extends g.Component{constructor(o){super(o),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){const o=this.props,a=this._extractMaskOptionsFromProps(o);if(a.mask)this.maskRef?(this.maskRef.updateOptions(a),"value"in o&&o.value!==void 0&&(this.maskValue=o.value)):this.initMask(a);else if(this.destroyMask(),"value"in o&&o.value!==void 0){var s;(s=this.element)!=null&&s.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=o.value:this.element.value=o.value}}componentWillUnmount(){this.destroyMask()}_inputRef(o){this.element=o,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=o:this.props.inputRef(o))}initMask(o){o===void 0&&(o=this._extractMaskOptionsFromProps(this.props)),this.maskRef=ke(this.element,o).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(o){const{...a}=o;return Object.keys(a).filter(s=>hK.indexOf(s)<0).forEach(s=>{delete a[s]}),a}_extractNonMaskProps(o){const{...a}=o;return A2.forEach(s=>{delete a[s]}),"defaultValue"in a||(a.defaultValue=o.mask?"":a.value),delete a.value,a}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(o){this.maskRef&&(o=o==null&&this.props.unmask!=="typed"?"":o,this.props.unmask==="typed"?this.maskRef.typedValue=o:this.props.unmask?this.maskRef.unmaskedValue=o:this.maskRef.value=o)}_onAccept(o){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,o)}_onComplete(o){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,o)}render(){return g.createElement(e,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}},t.displayName=void 0,t.propTypes=void 0,t),n=e.displayName||e.name||"Component";return r.displayName="IMask("+n+")",r.propTypes=P2,g.forwardRef((i,o)=>g.createElement(r,{...i,ref:o}))}const gK=pK(e=>{let{inputRef:t,...r}=e;return g.createElement("input",{...r,ref:t})}),mK=(e,t)=>g.createElement(gK,{...e,ref:t});g.forwardRef(mK);function vK(e,t){let{onAccept:r,onComplete:n}=t===void 0?{}:t;const i=g.useRef(null),o=g.useRef(null),[a,s]=g.useState(!1),[u,l]=g.useState({}),[c,f]=g.useState(""),[d,h]=g.useState(""),[m,p]=g.useState(),v=g.useCallback(()=>{var C;a&&((C=o.current)==null||C.destroy(),o.current=null)},[]),x=g.useCallback(C=>{const E=o.current;E&&(l({value:E.value,unmaskedValue:E.unmaskedValue,typedValue:E.typedValue}),p(E.typedValue),h(E.unmaskedValue),f(E.value),r==null||r(E.value,E,C))},[r]),b=g.useCallback(()=>o.current&&(n==null?void 0:n(o.current.value,o.current)),[n]);return g.useEffect(()=>{const C=i.current;if(!C||!(e!=null&&e.mask))return v();const E=o.current;E?E==null||E.updateOptions(e):C&&e!=null&&e.mask&&(o.current=ke(C,e),x()),s(!!o.current)},[e,v,x]),g.useEffect(()=>{if(!o.current)return;const C=o.current;return C.on("accept",x),C.on("complete",b),()=>{C.off("accept",x),C.off("complete",b)}},[x,b]),g.useEffect(()=>{const{value:C,...E}=u,w=o.current;w&&a&&(C!==c&&(w.value=c),l(E))},[c]),g.useEffect(()=>{const{unmaskedValue:C,...E}=u,w=o.current;w&&a&&(C!==d&&(w.unmaskedValue=d),l(E))},[d]),g.useEffect(()=>{const{typedValue:C,...E}=u,w=o.current;w&&a&&(C!==m&&(w.typedValue=m),l(E))},[m]),g.useEffect(()=>v,[v]),{ref:i,maskRef:o,value:c,setValue:f,unmaskedValue:d,setUnmaskedValue:h,typedValue:m,setTypedValue:p}}const dh=g.forwardRef(({name:e,value:t,mask:r,onChange:n,...i},o)=>{const{ref:a,unmaskedValue:s,value:u,maskRef:l}=vK({mask:r});return g.useEffect(()=>{l.current.value=t||""},[l,t]),g.useEffect(()=>{n({target:{name:e,value:s||t||""}})},[e,s,t]),y.jsx(P.TextField,{inputRef:o,inputProps:{ref:a},name:e,value:u,onChange:()=>n({target:{name:e,value:s}}),...i})});dh.displayName="MaskedInput";function yK(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}const bK=It("span")(({arrow:e,theme:t})=>{const i=`solid 1px ${W(t.palette.grey[500],.12)}`,o={borderRadius:"0 0 3px 0",top:-6,borderBottom:i,borderRight:i},a={borderRadius:"3px 0 0 0",bottom:-6,borderTop:i,borderLeft:i},s={borderRadius:"0 3px 0 0",left:-6,borderTop:i,borderRight:i},u={borderRadius:"0 0 0 3px",right:-6,borderBottom:i,borderLeft:i};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:'""',display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper},...e==="top-left"&&{...o,left:20},...e==="top-center"&&{...o,left:0,right:0,margin:"auto"},...e==="top-right"&&{...o,right:20},...e==="bottom-left"&&{...a,left:20},...e==="bottom-center"&&{...a,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...a,right:20},...e==="left-top"&&{...s,top:20},...e==="left-center"&&{...s,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...s,bottom:20},...e==="right-top"&&{...u,top:20},...e==="right-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...u,bottom:20}}}),xK=({open:e,children:t,arrow:r="top-right",disabledArrow:n,sx:i,...o})=>{const{style:a,anchorOrigin:s,transformOrigin:u}=yK(r);return y.jsxs(P.Popover,{open:!!e,anchorEl:e,anchorOrigin:s,transformOrigin:u,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...a,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...i}},...o,children:[!n&&y.jsx(bK,{arrow:r}),t]})},wK=({children:e,container:t})=>gu.createPortal(e,document.getElementById(t)||document.body);var CK=!!(typeof window<"u"&&window.document&&window.document.createElement),SK=CK;const D2=Sn(SK);var vo=function(){return vo=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},vo.apply(this,arguments)},yo=null,$2=null;D2&&window.addEventListener("resize",function(){$2!==window.devicePixelRatio&&($2=window.devicePixelRatio,yo=null)});function I2(){if(yo===null){if(typeof document>"u")return yo=0,yo;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var r=t.getBoundingClientRect().right;e.removeChild(t),yo=r}return yo}function F2(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function j2(e){return!e||!e.ownerDocument?document:e.ownerDocument}var L2=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var a=o[1].replace(/\W+(.)/g,function(s,u){return u.toUpperCase()});switch(i.value){case"true":n[a]=!0;break;case"false":n[a]=!1;break;case void 0:n[a]=!0;break;default:n[a]=i.value}}return n},t);return r};function R2(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function N2(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function B2(e){return".".concat(e.split(" ").join("."))}var EK=Object.freeze({__proto__:null,getElementWindow:F2,getElementDocument:j2,getOptions:L2,addClasses:R2,removeClasses:N2,classNamesToQuery:B2}),bn=F2,hh=j2,TK=L2,xn=R2,wn=N2,Xt=B2,nu=function(){function e(t,r){r===void 0&&(r={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=bn(n.el);n.scrollXTicking||(i.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(i.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,xn(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){wn(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(xn(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){wn(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(i){n.mouseX=i.clientX,n.mouseY=i.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var o,a;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(o=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(a=n.isWithinBounds(n.axis.y.track.rect)),(o||a)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(i,"x"):n.onTrackClick(i,"x")),a&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(i,"y"):n.onTrackClick(i,"y"))))}},this.drag=function(i){var o,a,s,u,l,c,f,d,h,m,p;if(!(!n.draggedAxis||!n.contentWrapperEl)){var v,x=n.axis[n.draggedAxis].track,b=(a=(o=x.rect)===null||o===void 0?void 0:o[n.axis[n.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,C=n.axis[n.draggedAxis].scrollbar,E=(u=(s=n.contentWrapperEl)===null||s===void 0?void 0:s[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,w=parseInt((c=(l=n.elStyles)===null||l===void 0?void 0:l[n.axis[n.draggedAxis].sizeAttr])!==null&&c!==void 0?c:"0px",10);i.preventDefault(),i.stopPropagation(),n.draggedAxis==="y"?v=i.pageY:v=i.pageX;var k=v-((d=(f=x.rect)===null||f===void 0?void 0:f[n.axis[n.draggedAxis].offsetAttr])!==null&&d!==void 0?d:0)-n.axis[n.draggedAxis].dragOffset;k=n.draggedAxis==="x"&&n.isRtl?((m=(h=x.rect)===null||h===void 0?void 0:h[n.axis[n.draggedAxis].sizeAttr])!==null&&m!==void 0?m:0)-C.size-k:k;var T=k/(b-C.size),O=T*(E-w);n.draggedAxis==="x"&&n.isRtl&&(O=!((p=e.getRtlHelpers())===null||p===void 0)&&p.isScrollingToNegative?-O:O),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=O}},this.onEndDrag=function(i){var o=hh(n.el),a=bn(n.el);i.preventDefault(),i.stopPropagation(),wn(n.el,n.classNames.dragging),o.removeEventListener("mousemove",n.drag,!0),o.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=a.setTimeout(function(){o.removeEventListener("click",n.preventClick,!0),o.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=vo(vo({},e.defaultOptions),r),this.classNames=vo(vo({},e.defaultOptions.classNames),r.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=yy(this._onMouseMove,64),this.onWindowResize=Ea(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Ea(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Ea(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var r=t.firstElementChild,n=r==null?void 0:r.firstElementChild;if(!n)return null;document.body.appendChild(r),r.scrollLeft=0;var i=e.getOffset(r),o=e.getOffset(n);r.scrollLeft=-999;var a=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==a.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:I2()}catch{return I2()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=hh(t),i=bn(t);return{top:r.top+(i.pageYOffset||n.documentElement.scrollTop),left:r.left+(i.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){D2&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,r;this.wrapperEl=this.el.querySelector(Xt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Xt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Xt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Xt(this.classNames.offset)),this.maskEl=this.el.querySelector(Xt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Xt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Xt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Xt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Xt(this.classNames.track)).concat(Xt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Xt(this.classNames.track)).concat(Xt(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Xt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(Xt(this.classNames.scrollbar)))||null,this.options.autoHide||(xn(this.axis.x.scrollbar.el,this.classNames.visible),xn(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=bn(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(r=this.contentWrapperEl)===null||r===void 0||r.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=n.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=bn(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||r>0,o=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=i?"".concat(r||l,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&l>r,this.axis.y.isOverflowing=u>c,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=s==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var f=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>o-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>c-f,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var r,n;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],o=(n=(r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])!==null&&n!==void 0?n:0,a=o/i,s;return s=Math.max(~~(a*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(s=Math.min(s,this.options.scrollbarMaxSize)),s},e.prototype.positionScrollbar=function(t){var r,n,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var a=this.contentWrapperEl[this.axis[t].scrollSizeAttr],s=((r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),l=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];l=t==="x"&&this.isRtl&&(!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero)?-l:l,t==="x"&&this.isRtl&&(l=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?l:-l);var c=l/(a-u),f=~~((s-o.size)*c);f=t==="x"&&this.isRtl?-f+(s-o.size):f,o.el.style.transform=t==="x"?"translate3d(".concat(f,"px, 0, 0)"):"translate3d(0, ".concat(f,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var r=this.axis[t].track.el,n=this.axis[t].scrollbar.el;!r||!n||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(xn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(wn(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var r=this.axis[t];!r.track.el||!r.scrollbar.el||(r.track.rect=r.track.el.getBoundingClientRect(),r.scrollbar.rect=r.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(r.track.rect)?(this.showScrollbar(t),xn(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?xn(r.scrollbar.el,this.classNames.hover):wn(r.scrollbar.el,this.classNames.hover)):(wn(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),wn(this.axis[t].track.el,this.classNames.hover),wn(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,r){var n;r===void 0&&(r="y");var i=hh(this.el),o=bn(this.el),a=this.axis[r].scrollbar,s=r==="y"?t.pageY:t.pageX;this.axis[r].dragOffset=s-(((n=a.rect)===null||n===void 0?void 0:n[this.axis[r].offsetAttr])||0),this.draggedAxis=r,xn(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,i,o,a,s;r===void 0&&(r="y");var u=this.axis[r];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var l=bn(this.el);this.axis[r].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var c=this.axis[r].scrollbar,f=(o=(i=c.rect)===null||i===void 0?void 0:i[this.axis[r].offsetAttr])!==null&&o!==void 0?o:0,d=parseInt((s=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[r].sizeAttr])!==null&&s!==void 0?s:"0px",10),h=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],m=r==="y"?this.mouseY-f:this.mouseX-f,p=m<0?-1:1,v=p===-1?h-d:h+d,x=40,b=function(){n.contentWrapperEl&&(p===-1?h>v&&(h-=x,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=h,l.requestAnimationFrame(b)):h<v&&(h+=x,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=h,l.requestAnimationFrame(b)))};b()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=bn(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,r){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return n.call(i,r)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=TK,e.helpers=EK,e}(),lr=function(){return lr=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},lr.apply(this,arguments)};function kK(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var z2=xe.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,i=n===void 0?{}:n,o=kK(e,["children","scrollableNodeProps"]),a=xe.useRef(),s=xe.useRef(),u=xe.useRef(),l={},c={};Object.keys(o).forEach(function(h){Object.prototype.hasOwnProperty.call(nu.defaultOptions,h)?l[h]=o[h]:c[h]=o[h]});var f=lr(lr({},nu.defaultOptions.classNames),l.classNames),d=lr(lr({},i),{className:"".concat(f.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":l.ariaLabel||nu.defaultOptions.ariaLabel});return xe.useEffect(function(){var h;return s.current=d.ref?d.ref.current:s.current,a.current&&(h=new nu(a.current,lr(lr(lr({},l),s.current&&{scrollableNode:s.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(h):t&&(t.current=h)),function(){h==null||h.unMount(),h=null,typeof t=="function"&&t(null)}},[]),xe.createElement("div",lr({"data-simplebar":"init",ref:a},c),xe.createElement("div",{className:f.wrapper},xe.createElement("div",{className:f.heightAutoObserverWrapperEl},xe.createElement("div",{className:f.heightAutoObserverEl})),xe.createElement("div",{className:f.mask},xe.createElement("div",{className:f.offset},typeof r=="function"?r({scrollableNodeRef:s,scrollableNodeProps:lr(lr({},d),{ref:s}),contentNodeRef:u,contentNodeProps:{className:f.contentEl,ref:u}}):xe.createElement("div",lr({},d),xe.createElement("div",{className:f.contentEl},r)))),xe.createElement("div",{className:f.placeholder})),xe.createElement("div",{className:"".concat(f.track," simplebar-horizontal")},xe.createElement("div",{className:f.scrollbar})),xe.createElement("div",{className:"".concat(f.track," simplebar-vertical")},xe.createElement("div",{className:f.scrollbar})))});z2.displayName="SimpleBar";const _K=It("div")(()=>({flexGrow:1,height:"100%",overflow:"hidden"})),OK=It(z2)(({theme:e})=>({maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:W(e.palette.grey[600],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-mask":{zIndex:"inherit"}})),MK=({children:e,sx:t,...r})=>{const n=typeof navigator>"u"?"SSR":navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n)?y.jsx(P.Box,{sx:{overflowX:"auto",...t},...r,children:e}):y.jsx(_K,{children:y.jsx(OK,{clickOnTrack:!1,sx:t,...r,children:e})})},PK=g.memo(MK),AK=({name:e,helperText:t,rules:r,...n})=>{const{control:i}=bt.useFormContext();return y.jsx(bt.Controller,{name:e,control:i,rules:r,render:({field:o,fieldState:{error:a}})=>y.jsx(yf,{...o,...n,onChange:s=>o.onChange(s),error:!!a,helperText:(a==null?void 0:a.message)||t})})},DK=({name:e,rules:t,helperText:r,...n})=>{const{control:i}=bt.useFormContext();return y.jsx(bt.Controller,{name:e,control:i,rules:t,render:({field:{ref:o,onChange:a,...s},fieldState:{error:u}})=>y.jsx(fb,{...s,onChangeColor:a,inputRef:o,fullWidth:!0,error:!!u,helperText:(u==null?void 0:u.message)||r,...n})})},$K=({name:e,...t})=>{const{control:r}=bt.useFormContext();return y.jsx(bt.Controller,{name:e,control:r,render:({field:{ref:n,...i},fieldState:{error:o}})=>{var a;return y.jsx(So.DatePicker,{inputRef:n,format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...t.localeText},...i,...t,value:i.value?new Date(i.value):null,slotProps:{textField:{...(a=t.slotProps)==null?void 0:a.textField,error:!!o,helperText:o==null?void 0:o.message,autoComplete:"off",spellCheck:"false",fullWidth:!0}}})}})},IK=({name:e,label:t,...r})=>{const{control:n,setError:i}=bt.useFormContext();return y.jsx(bt.Controller,{name:e,control:n,render:({field:{value:o,onChange:a},fieldState:{error:s}})=>y.jsx(So.DateRangePicker,{format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...r.localeText},value:[(o==null?void 0:o.startDate)||null,(o==null?void 0:o.endDate)||null],onChange:u=>a({startDate:u[0],endDate:u[1]}),onError:u=>{i(e,{message:u[0]||u[1]||void 0})},...r,slotProps:{textField:({position:u})=>{var l;return{...(l=r.slotProps)==null?void 0:l.textField,error:!!s,helperText:s==null?void 0:s.message,autoComplete:"off",spellCheck:"false",fullWidth:!0,label:u==="start"?`${t} (Dt. Início)`:`${t} (Dt. Fim)`}}},sx:{width:1}})})},FK=({name:e,...t})=>{const{control:r}=bt.useFormContext();return y.jsx(bt.Controller,{name:e,control:r,render:({field:{ref:n,...i},fieldState:{error:o}})=>{var a;return y.jsx(So.DateTimePicker,{format:"dd/MM/yyyy HH:mm",inputRef:n,localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...t.localeText},...i,...t,value:i.value?new Date(i.value):null,slotProps:{textField:{...(a=t.slotProps)==null?void 0:a.textField,error:!!o,helperText:o==null?void 0:o.message,autoComplete:"off",spellCheck:"false",fullWidth:!0}}})}})},V2=({name:e,helperText:t,rules:r,...n})=>{const{control:i}=bt.useFormContext();return y.jsx(bt.Controller,{name:e,control:i,rules:r,render:({field:{ref:o,...a},fieldState:{error:s}})=>y.jsx(P.TextField,{...a,inputRef:o,fullWidth:!0,error:!!s,helperText:(s==null?void 0:s.message)||t,...n})})},jK=({id:e,children:t,onSubmit:r,methods:n})=>y.jsx(bt.FormProvider,{...n,children:y.jsx(P.Stack,{component:"form",id:e,onSubmit:r,flex:1,width:1,noValidate:!0,children:t})}),LK=({name:e,helperText:t,rules:r,...n})=>{const{control:i}=bt.useFormContext();return y.jsx(bt.Controller,{name:e,control:i,rules:r,render:({field:{name:o,onChange:a,value:s,ref:u},fieldState:{error:l}})=>y.jsx(dh,{ref:u,...n,name:o,value:s,error:!!l,helperText:(l==null?void 0:l.message)||t,onChange:({target:{value:c}})=>a(c)})})},RK=e=>{const[t,r]=g.useState(!1);return y.jsx(V2,{...e,type:t?"text":"password",InputProps:{endAdornment:y.jsx(P.InputAdornment,{position:"end",children:y.jsx(P.IconButton,{onClick:()=>r(!t),edge:"end","aria-label":"Mostrar/Ocultar senha",children:y.jsx(Ft,{icon:t?"eva:eye-off-fill":"eva:eye-fill"})})})}})},NK=({name:e,helperText:t,...r})=>{const{control:n}=bt.useFormContext();return y.jsx(bt.Controller,{name:e,control:n,render:({field:i,fieldState:{error:o}})=>y.jsxs("div",{children:[y.jsx(P.FormControlLabel,{control:y.jsx(P.Switch,{...i,checked:i.value}),...r}),(!!o||t)&&y.jsx(P.FormHelperText,{error:!!o,children:o?o==null?void 0:o.message:t})]})})},BK=({name:e,...t})=>{const{control:r}=bt.useFormContext();return y.jsx(bt.Controller,{name:e,control:r,render:({field:{ref:n,...i},fieldState:{error:o}})=>{var a;return y.jsx(So.TimePicker,{ampm:!1,format:"HH:mm",inputRef:n,localeText:{fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...t.localeText},...i,...t,value:i.value?new Date(i.value):null,slotProps:{textField:{...(a=t.slotProps)==null?void 0:a.textField,error:!!o,helperText:o==null?void 0:o.message,autoComplete:"off",spellCheck:"false",fullWidth:!0}}})}})};function bo(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(c){try{l(n.next(c))}catch(f){a(f)}}function u(c){try{l(n.throw(c))}catch(f){a(f)}}function l(c){c.done?o(c.value):i(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})}function xo(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(c){l=[6,c],i=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function W2(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function H2(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var zK=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function La(e,t){var r=VK(e);if(typeof r.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function VK(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),i=zK.get(n);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var WK=[".DS_Store","Thumbs.db"];function HK(e){return bo(this,void 0,void 0,function(){return xo(this,function(t){return iu(e)&&UK(e.dataTransfer)?[2,KK(e.dataTransfer,e.type)]:YK(e)?[2,GK(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,qK(e)]:[2,[]]})})}function UK(e){return iu(e)}function YK(e){return iu(e)&&iu(e.target)}function iu(e){return typeof e=="object"&&e!==null}function GK(e){return ph(e.target.files).map(function(t){return La(t)})}function qK(e){return bo(this,void 0,void 0,function(){var t;return xo(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(n){return n.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(n){return La(n)})]}})})}function KK(e,t){return bo(this,void 0,void 0,function(){var r,n;return xo(this,function(i){switch(i.label){case 0:return e.items?(r=ph(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(XK))]):[3,2];case 1:return n=i.sent(),[2,U2(Y2(n))];case 2:return[2,U2(ph(e.files).map(function(o){return La(o)}))]}})})}function U2(e){return e.filter(function(t){return WK.indexOf(t.name)===-1})}function ph(e){if(e===null)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function XK(e){if(typeof e.webkitGetAsEntry!="function")return G2(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?q2(t):G2(e)}function Y2(e){return e.reduce(function(t,r){return H2(H2([],W2(t),!1),W2(Array.isArray(r)?Y2(r):[r]),!1)},[])}function G2(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var r=La(t);return Promise.resolve(r)}function ZK(e){return bo(this,void 0,void 0,function(){return xo(this,function(t){return[2,e.isDirectory?q2(e):QK(e)]})})}function q2(e){var t=e.createReader();return new Promise(function(r,n){var i=[];function o(){var a=this;t.readEntries(function(s){return bo(a,void 0,void 0,function(){var u,l,c;return xo(this,function(f){switch(f.label){case 0:if(s.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return u=f.sent(),r(u),[3,4];case 3:return l=f.sent(),n(l),[3,4];case 4:return[3,6];case 5:c=Promise.all(s.map(ZK)),i.push(c),o(),f.label=6;case 6:return[2]}})})},function(s){n(s)})}o()})}function QK(e){return bo(this,void 0,void 0,function(){return xo(this,function(t){return[2,new Promise(function(r,n){e.file(function(i){var o=La(i,e.fullPath);r(o)},function(i){n(i)})})]})})}var JK=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return r.some(function(a){var s=a.trim().toLowerCase();return s.charAt(0)==="."?n.toLowerCase().endsWith(s):s.endsWith("/*")?o===s.replace(/\/.*$/,""):i===s})}return!0};function K2(e){return rX(e)||tX(e)||J2(e)||eX()}function eX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
243
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rX(e){if(Array.isArray(e))return gh(e)}function X2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Z2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X2(Object(r),!0).forEach(function(n){Q2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ra(e,t){return oX(e)||iX(e,t)||J2(e,t)||nX()}function nX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
244
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J2(e,t){if(e){if(typeof e=="string")return gh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gh(e,t)}}function gh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function oX(e){if(Array.isArray(e))return e}var aX="file-invalid-type",sX="file-too-large",lX="file-too-small",uX="too-many-files",cX=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var r=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:aX,message:"File type must be ".concat(r)}},ex=function(t){return{code:sX,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},tx=function(t){return{code:lX,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},fX={code:uX,message:"Too many files"};function rx(e,t){var r=e.type==="application/x-moz-file"||JK(e,t);return[r,r?null:cX(t)]}function nx(e,t,r){if(ti(e.size))if(ti(t)&&ti(r)){if(e.size>r)return[!1,ex(r)];if(e.size<t)return[!1,tx(t)]}else{if(ti(t)&&e.size<t)return[!1,tx(t)];if(ti(r)&&e.size>r)return[!1,ex(r)]}return[!0,null]}function ti(e){return e!=null}function dX(e){var t=e.files,r=e.accept,n=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(u){var l=rx(u,r),c=Ra(l,1),f=c[0],d=nx(u,n,i),h=Ra(d,1),m=h[0],p=s?s(u):null;return f&&m&&!p})}function ou(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function au(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function ix(e){e.preventDefault()}function hX(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function pX(e){return e.indexOf("Edge/")!==-1}function gX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return hX(e)||pX(e)}function Fr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(s){return!ou(n)&&s&&s.apply(void 0,[n].concat(o)),ou(n)})}}function mX(){return"showOpenFilePicker"in window}function vX(e){if(ti(e)){var t=Object.entries(e).filter(function(r){var n=Ra(r,2),i=n[0],o=n[1],a=!0;return ox(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(ax))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(r,n){var i=Ra(n,2),o=i[0],a=i[1];return Z2(Z2({},r),{},Q2({},o,a))},{});return[{description:"Files",accept:t}]}return e}function yX(e){if(ti(e))return Object.entries(e).reduce(function(t,r){var n=Ra(r,2),i=n[0],o=n[1];return[].concat(K2(t),[i],K2(o))},[]).filter(function(t){return ox(t)||ax(t)}).join(",")}function bX(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function xX(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function ox(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function ax(e){return/^.*\.[\w]+$/.test(e)}var wX=["children"],CX=["open"],SX=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],EX=["refKey","onChange","onClick"];function TX(e){return OX(e)||_X(e)||sx(e)||kX()}function kX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
245
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _X(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OX(e){if(Array.isArray(e))return vh(e)}function mh(e,t){return AX(e)||PX(e,t)||sx(e,t)||MX()}function MX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
246
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sx(e,t){if(e){if(typeof e=="string")return vh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vh(e,t)}}function vh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function AX(e){if(Array.isArray(e))return e}function lx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lx(Object(r),!0).forEach(function(n){yh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function su(e,t){if(e==null)return{};var r=DX(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DX(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var bh=g.forwardRef(function(e,t){var r=e.children,n=su(e,wX),i=lu(n),o=i.open,a=su(i,CX);return g.useImperativeHandle(t,function(){return{open:o}},[o]),g.createElement(g.Fragment,null,r(vt(vt({},a),{},{open:o})))});bh.displayName="Dropzone";var ux={disabled:!1,getFilesFromEvent:HK,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};bh.defaultProps=ux,bh.propTypes={children:_.func,accept:_.objectOf(_.arrayOf(_.string)),multiple:_.bool,preventDropOnDocument:_.bool,noClick:_.bool,noKeyboard:_.bool,noDrag:_.bool,noDragEventsBubbling:_.bool,minSize:_.number,maxSize:_.number,maxFiles:_.number,disabled:_.bool,getFilesFromEvent:_.func,onFileDialogCancel:_.func,onFileDialogOpen:_.func,useFsAccessApi:_.bool,autoFocus:_.bool,onDragEnter:_.func,onDragLeave:_.func,onDragOver:_.func,onDrop:_.func,onDropAccepted:_.func,onDropRejected:_.func,onError:_.func,validator:_.func};var xh={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function lu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=vt(vt({},ux),e),r=t.accept,n=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,u=t.maxFiles,l=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,p=t.onFileDialogCancel,v=t.onFileDialogOpen,x=t.useFsAccessApi,b=t.autoFocus,C=t.preventDropOnDocument,E=t.noClick,w=t.noKeyboard,k=t.noDrag,T=t.noDragEventsBubbling,O=t.onError,A=t.validator,L=g.useMemo(function(){return yX(r)},[r]),Z=g.useMemo(function(){return vX(r)},[r]),pe=g.useMemo(function(){return typeof v=="function"?v:cx},[v]),se=g.useMemo(function(){return typeof p=="function"?p:cx},[p]),q=g.useRef(null),G=g.useRef(null),me=g.useReducer($X,xh),Ee=mh(me,2),Ie=Ee[0],_e=Ee[1],$=Ie.isFocused,j=Ie.isFileDialogActive,X=g.useRef(typeof window<"u"&&window.isSecureContext&&x&&mX()),te=function(){!X.current&&j&&setTimeout(function(){if(G.current){var ve=G.current.files;ve.length||(_e({type:"closeDialog"}),se())}},300)};g.useEffect(function(){return window.addEventListener("focus",te,!1),function(){window.removeEventListener("focus",te,!1)}},[G,j,se,X]);var H=g.useRef([]),fe=function(ve){q.current&&q.current.contains(ve.target)||(ve.preventDefault(),H.current=[])};g.useEffect(function(){return C&&(document.addEventListener("dragover",ix,!1),document.addEventListener("drop",fe,!1)),function(){C&&(document.removeEventListener("dragover",ix),document.removeEventListener("drop",fe))}},[q,C]),g.useEffect(function(){return!n&&b&&q.current&&q.current.focus(),function(){}},[q,b,n]);var ue=g.useCallback(function(K){O?O(K):console.error(K)},[O]),ge=g.useCallback(function(K){K.preventDefault(),K.persist(),Sr(K),H.current=[].concat(TX(H.current),[K.target]),au(K)&&Promise.resolve(i(K)).then(function(ve){if(!(ou(K)&&!T)){var ft=ve.length,I=ft>0&&dX({files:ve,accept:L,minSize:a,maxSize:o,multiple:s,maxFiles:u,validator:A}),M=ft>0&&!I;_e({isDragAccept:I,isDragReject:M,isDragActive:!0,type:"setDraggedFiles"}),l&&l(K)}}).catch(function(ve){return ue(ve)})},[i,l,ue,T,L,a,o,s,u,A]),Q=g.useCallback(function(K){K.preventDefault(),K.persist(),Sr(K);var ve=au(K);if(ve&&K.dataTransfer)try{K.dataTransfer.dropEffect="copy"}catch{}return ve&&f&&f(K),!1},[f,T]),J=g.useCallback(function(K){K.preventDefault(),K.persist(),Sr(K);var ve=H.current.filter(function(I){return q.current&&q.current.contains(I)}),ft=ve.indexOf(K.target);ft!==-1&&ve.splice(ft,1),H.current=ve,!(ve.length>0)&&(_e({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),au(K)&&c&&c(K))},[q,c,T]),ne=g.useCallback(function(K,ve){var ft=[],I=[];K.forEach(function(M){var B=rx(M,L),z=mh(B,2),Ce=z[0],Oe=z[1],Be=nx(M,a,o),D=mh(Be,2),F=D[0],ce=D[1],oe=A?A(M):null;if(Ce&&F&&!oe)ft.push(M);else{var ie=[Oe,ce];oe&&(ie=ie.concat(oe)),I.push({file:M,errors:ie.filter(function(Me){return Me})})}}),(!s&&ft.length>1||s&&u>=1&&ft.length>u)&&(ft.forEach(function(M){I.push({file:M,errors:[fX]})}),ft.splice(0)),_e({acceptedFiles:ft,fileRejections:I,type:"setFiles"}),d&&d(ft,I,ve),I.length>0&&m&&m(I,ve),ft.length>0&&h&&h(ft,ve)},[_e,s,L,a,o,u,d,h,m,A]),be=g.useCallback(function(K){K.preventDefault(),K.persist(),Sr(K),H.current=[],au(K)&&Promise.resolve(i(K)).then(function(ve){ou(K)&&!T||ne(ve,K)}).catch(function(ve){return ue(ve)}),_e({type:"reset"})},[i,ne,ue,T]),N=g.useCallback(function(){if(X.current){_e({type:"openDialog"}),pe();var K={multiple:s,types:Z};window.showOpenFilePicker(K).then(function(ve){return i(ve)}).then(function(ve){ne(ve,null),_e({type:"closeDialog"})}).catch(function(ve){bX(ve)?(se(ve),_e({type:"closeDialog"})):xX(ve)?(X.current=!1,G.current?(G.current.value=null,G.current.click()):ue(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ue(ve)});return}G.current&&(_e({type:"openDialog"}),pe(),G.current.value=null,G.current.click())},[_e,pe,se,x,ne,ue,Z,s]),Ne=g.useCallback(function(K){!q.current||!q.current.isEqualNode(K.target)||(K.key===" "||K.key==="Enter"||K.keyCode===32||K.keyCode===13)&&(K.preventDefault(),N())},[q,N]),le=g.useCallback(function(){_e({type:"focus"})},[]),pt=g.useCallback(function(){_e({type:"blur"})},[]),Qt=g.useCallback(function(){E||(gX()?setTimeout(N,0):N())},[E,N]),Wt=function(ve){return n?null:ve},Qr=function(ve){return w?null:Wt(ve)},Cr=function(ve){return k?null:Wt(ve)},Sr=function(ve){T&&ve.stopPropagation()},Ba=g.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve=K.refKey,ft=ve===void 0?"ref":ve,I=K.role,M=K.onKeyDown,B=K.onFocus,z=K.onBlur,Ce=K.onClick,Oe=K.onDragEnter,Be=K.onDragOver,D=K.onDragLeave,F=K.onDrop,ce=su(K,SX);return vt(vt(yh({onKeyDown:Qr(Fr(M,Ne)),onFocus:Qr(Fr(B,le)),onBlur:Qr(Fr(z,pt)),onClick:Wt(Fr(Ce,Qt)),onDragEnter:Cr(Fr(Oe,ge)),onDragOver:Cr(Fr(Be,Q)),onDragLeave:Cr(Fr(D,J)),onDrop:Cr(Fr(F,be)),role:typeof I=="string"&&I!==""?I:"presentation"},ft,q),!n&&!w?{tabIndex:0}:{}),ce)}},[q,Ne,le,pt,Qt,ge,Q,J,be,w,k,n]),Cn=g.useCallback(function(K){K.stopPropagation()},[]),ri=g.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve=K.refKey,ft=ve===void 0?"ref":ve,I=K.onChange,M=K.onClick,B=su(K,EX),z=yh({accept:L,multiple:s,type:"file",style:{display:"none"},onChange:Wt(Fr(I,be)),onClick:Wt(Fr(M,Cn)),tabIndex:-1},ft,G);return vt(vt({},z),B)}},[G,r,s,be,n]);return vt(vt({},Ie),{},{isFocused:$&&!n,getRootProps:Ba,getInputProps:ri,rootRef:q,inputRef:G,open:Wt(N)})}function $X(e,t){switch(t.type){case"focus":return vt(vt({},e),{},{isFocused:!0});case"blur":return vt(vt({},e),{},{isFocused:!1});case"openDialog":return vt(vt({},xh),{},{isFileDialogActive:!0});case"closeDialog":return vt(vt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return vt(vt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return vt(vt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return vt({},xh);default:return e}}function cx(){}const IX=()=>{const t=An().palette.primary.main;return y.jsxs(y.Fragment,{children:[y.jsx("defs",{children:y.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[y.jsx("stop",{offset:"0%",stopColor:t}),y.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:"0"})]})}),y.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"})]})},FX=g.memo(IX),jX=({...e})=>{const t=An(),r=t.palette.primary.main,n=t.palette.primary.dark,i=t.palette.primary.darker;return y.jsx(P.Box,{...e,children:y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx(FX,{}),y.jsx("defs",{children:y.jsxs("linearGradient",{id:"linearGradient-2",x1:"30.113%",x2:"30.113%",y1:"0%",y2:"100%",children:[y.jsx("stop",{offset:"0%",stopOpacity:"0"}),y.jsx("stop",{offset:"100%"})]})}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M293.006 206.192c-2.248 2.672-4.676 2.628-6.123 2.251l.054-1.384s5.979-2.733 5.827-2.159c-.057.215.057.733.242 1.292zM309.393 209.217c-3.818 2.206-6.058-.38-6.578-1.112.32-.84.801-2.204.703-2.592-.144-.577 5.827 2.155 5.827 2.155l.048 1.549zM305.303 187.204s3.632-2.093 4.425-1.151c.792.942-4.425 1.151-4.425 1.151zM307.497 188.355s-.598.299.721.681c1.318.383-.721-.681-.721-.681zM285.532 182.599c-.123.036 3.022 2.123 5.862.395-.012 0-5.154-.61-5.862-.395zM291.239 186.591s-.861 1.692-2.625 1.943c-1.764.251 2.625-1.943 2.625-1.943zM302.785 190.262s4.138 6.578 3.346 8.129c-.793 1.552-3.346-8.129-3.346-8.129zM294.62 216.416c0 .368 0 .712-.036.996-.107 1.33-3.381.828-3.381.828-2.99.416-4.066-1.019-4.422-2.392a5.444 5.444 0 01-.164-1.363 5.606 5.606 0 01.054-.819v-.272a1.998 1.998 0 011.859.379c1.331 1.08 3.095.252 3.095.252s1.294.107 1.793.538c.281.242.745-.341 1.098-.897.021.359.054 1.007.074 1.701.024.356.03.714.03 1.049z",opacity:"0.05"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M289.37 216.339s-.897.879-2.589-.479a5.444 5.444 0 01-.164-1.363c.864.658 2.466 1.842 2.753 1.842zM294.62 216.416a.67.67 0 01-.519.132.672.672 0 01-.452-.287c.348-.266.669-.566.956-.897.009.359.015.717.015 1.052zM301.637 217.032c0 .371 0 .715.033.996.108 1.333 3.382.828 3.382.828 2.989.419 4.066-1.017 4.421-2.392a5.728 5.728 0 00.111-2.182v-.272a2.024 2.024 0 00-1.862.379c-1.331 1.08-3.092.251-3.092.251s-1.294.111-1.794.542c-.281.242-.744-.341-1.094-.897a61.426 61.426 0 00-.078 1.701c-.024.35-.03.708-.027 1.046z",opacity:"0.05"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M306.887 216.949s.897.879 2.587-.479c.112-.444.169-.901.167-1.36-.867.655-2.47 1.839-2.754 1.839zM301.637 217.032a.67.67 0 00.969-.155 6.35 6.35 0 01-.957-.897c-.009.356-.014.714-.012 1.052zM319.614 106.269c.063-.138.123-.275.18-.41.057-.134.077-.209.11-.317-.11.237-.206.48-.29.727z",opacity:"0.05"}),y.jsx("path",{fill:i,fillRule:"nonzero",d:"M157.592 279.461a4.114 4.114 0 01-.917-3.131l13.196-107.979 1.094-8.97a4.142 4.142 0 014.078-3.635l38.654-.257a4.135 4.135 0 004.108-4.249l-.015-.409a4.14 4.14 0 014.135-4.279h40.619a4.134 4.134 0 014.098 4.682 4.137 4.137 0 003.995 4.682l39.01.996a4.13 4.13 0 013.97 4.831l-19.502 113.909-.368 2.152a4.042 4.042 0 01-.598 1.543l-135.557.114z"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M251.256817 123.296578L274.098317 123.296578 274.098317 200.823078 251.256817 200.823078z",transform:"rotate(34.64 262.678 162.06)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M270.624591 129.857671L286.750291 129.857671 286.750291 145.983371 270.624591 145.983371z",transform:"rotate(34.804 278.687 137.92)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M260.275579 145.813111L276.423079 145.813111 276.423079 161.960611 260.275579 161.960611z",opacity:"0.5",transform:"rotate(34.64 268.35 153.887)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M249.191579 161.852111L265.339079 161.852111 265.339079 177.999611 249.191579 177.999611z",opacity:"0.3",transform:"rotate(34.64 257.265 169.926)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M237.472537 121.334214L260.314037 121.334214 260.314037 198.567714 237.472537 198.567714z",transform:"rotate(16.29 248.893 159.951)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M249.053192 123.761554L265.200692 123.761554 265.200692 139.909054 249.053192 139.909054z",transform:"rotate(16.29 257.127 131.835)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M243.584192 142.473554L259.731692 142.473554 259.731692 158.621053 243.584192 158.621053z",opacity:"0.5",transform:"rotate(16.29 251.658 150.547)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M238.116192 161.182554L254.263692 161.182554 254.263692 177.330054 238.116192 177.330054z",opacity:"0.3",transform:"rotate(16.29 246.19 169.256)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M230.099192 121.641542L252.940692 121.641542 252.940692 198.875042 230.099192 198.875042z",transform:"rotate(4.6 241.52 160.258)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M235.800489 122.985499L251.947989 122.985499 251.947989 139.132999 235.800489 139.132999z",transform:"rotate(4.6 243.874 131.06)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M234.234488 142.413498L250.381988 142.413498 250.381988 158.560998 234.234488 158.560998z",opacity:"0.5",transform:"rotate(4.6 242.308 150.487)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M232.672488 161.846499L248.819988 161.846499 248.819988 177.993999 232.672488 177.993999z",opacity:"0.3",transform:"rotate(4.6 240.746 169.92)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M224.736657 123.384871L247.578157 123.384871 247.578157 200.618371 224.736657 200.618371z",transform:"rotate(-2.61 236.157 162.002)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M226.751283 124.659968L242.898783 124.659968 242.898783 140.807468 226.751283 140.807468z",transform:"rotate(-2.61 234.825 132.734)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.305601 143.479224L244.473301 143.479224 244.473301 159.646924 228.305601 159.646924z",opacity:"0.5",transform:"rotate(-2.862 236.39 151.563)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.525282 163.608968L244.672782 163.608968 244.672782 179.756468 228.525282 179.756468z",opacity:"0.3",transform:"rotate(-2.61 236.599 171.683)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851-29.661 11.466c-1.121-2.093-2.771-4.921-4.813-8.297-7.026-11.642-18.65-29.75-29.001-45.665-11.66-17.938-21.696-33.075-21.696-33.075l7.265-2.093 59.346-17.23 38.854 87.043z"}),y.jsx("path",{fill:"#000",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851a152.535 152.535 0 01-34.484 3.169c-7.026-11.642-18.65-29.75-29-45.665l-14.42-35.18 59.343-17.218 38.855 87.043z",opacity:"0.1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M247.777 220.841s-31.526 18.65-78.596 14.432l-37.525-91.486 17.984-3.091 62.168-10.677 35.279 89.043.69 1.779z"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M247.075 219.074c-7.424.365-16.013.329-24.654-.702-9.351-1.101-18.757-3.367-26.82-7.523-6.742-3.471-12.506-7.247-17.532-11.776-13.074-11.759-21.164-28.579-28.429-58.365l62.168-10.677 35.267 89.043z",opacity:"0.1"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M270.203 213.959s-23.239 4.55-46.894 1.749c-9.351-1.1-18.757-3.367-26.82-7.522-6.742-3.471-12.503-7.247-17.532-11.777-16.181-14.557-24.725-36.866-33.536-81.918 0 0 38.633 9.325 76.836-11.101-.012.015 12.865 80.373 47.946 110.569z"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M165.405 131.03s31.416-1.776 40.187-8.548l1.331 4.276s-20.758 9.157-41.518 9.268v-4.996zM165.405 152.137s30.417-1.665 53.399-12.766l.777 1.776s-18.237 10.647-54.176 13.433v-2.443zM167.853 160.362s30.418-1.665 53.397-12.766l.777 1.776s-18.237 10.643-54.174 13.433v-2.443zM170.299 168.599s30.417-1.666 53.399-12.766l.774 1.775s-18.237 10.647-54.173 13.433v-2.442zM172.748 176.835s30.417-1.665 53.396-12.766l.777 1.776s-18.237 10.647-54.173 13.433v-2.443zM175.193 185.075s30.417-1.665 53.399-12.766l.774 1.776s-18.237 10.643-54.173 13.433v-2.443z",opacity:"0.3"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M389.069 287.344s-12.641-.762-11.152 8.097c0 0-.299 1.563 1.124 2.275 0 0 .021-.658 1.295-.434.454.077.916.099 1.375.066a2.832 2.832 0 001.677-.694c.468-.409 3.555-1.468 4.936-7.274 0 0 1.023-1.267.981-1.593l-2.132.897s.73 1.54.156 2.816c0 0-.069-2.759-.479-2.691-.083 0-1.109.533-1.109.533s1.253 2.69.299 4.628c0 0 .359-3.304-.699-4.434l-1.495.876s1.465 2.768.472 5.029c0 0 .254-3.465-.789-4.817l-1.361 1.062s1.379 2.729.539 4.604c0 0-.111-4.036-.835-4.341 0 0-1.195 1.049-1.369 1.494 0 0 .942 1.98.356 3.026 0 0-.359-2.691-.652-2.691 0 0-1.196 1.794-1.309 2.99 0 0 .051-1.818 1.022-3.172a3.593 3.593 0 00-1.818.942s.186-1.262 2.111-1.37c0 0 .981-1.351 1.241-1.435 0 0-1.914-.158-3.074.356 0 0 1.023-1.196 3.427-.649l1.342-1.094s-2.52-.347-3.588.036c0 0 1.229-1.052 3.95-.299l1.462-.873s-2.147-.463-3.426-.299c0 0 1.348-.729 3.856.06l1.044-.47s-1.573-.299-2.033-.358c-.461-.06-.488-.174-.488-.174a5.426 5.426 0 012.957.329s2.222-.813 2.186-.954z"}),y.jsx("ellipse",{cx:"380.363",cy:"298.487",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"8.945",ry:"1.513"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M394.956 258.102s-7.125-.43-6.279 4.565a1.218 1.218 0 00.631 1.283s.015-.371.733-.245c.255.042.515.054.774.036.349-.023.681-.159.945-.389.264-.23 2.003-.828 2.783-4.102 0 0 .577-.714.553-.897l-1.196.511s.41.87.087 1.591c0 0-.039-1.558-.269-1.522-.048 0-.625.299-.625.299s.706 1.495.173 2.61c0 0 .204-1.862-.394-2.502l-.846.496s.825 1.561.266 2.834c0 0 .143-1.955-.446-2.714l-.765.598s.774 1.539.299 2.595c0 0-.063-2.275-.469-2.446a4.75 4.75 0 00-.775.834s.532 1.118.204 1.707c0 0-.204-1.515-.368-1.521 0 0-.67 1.001-.739 1.689a3.671 3.671 0 01.577-1.794 2.007 2.007 0 00-1.025.532s.104-.711 1.196-.771c0 0 .553-.763.699-.81 0 0-1.079-.09-1.734.2 0 0 .577-.67 1.932-.365l.759-.619s-1.423-.194-2.024.021c0 0 .694-.598 2.227-.161l.826-.494a7.445 7.445 0 00-1.935-.164s.763-.413 2.174.033l.598-.263s-.897-.177-1.148-.203c-.252-.027-.275-.099-.275-.099a3.078 3.078 0 011.668.185s1.232-.46 1.208-.538z"}),y.jsx("ellipse",{cx:"390.052",cy:"264.383",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"5.044",ry:"1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M352.896 262.437s-8.604-.52-7.588 5.51a1.47 1.47 0 00.763 1.549s0-.449.897-.299c.309.052.623.067.935.045a1.923 1.923 0 001.142-.473c.318-.279 2.419-.998 3.361-4.951 0 0 .697-.861.667-1.085l-1.468.622s.496 1.046.104 1.916c0 0-.048-1.877-.326-1.835-.056 0-.753.364-.753.364s.852 1.824.209 3.152c0 0 .245-2.249-.475-3.02l-1.023.598s.996 1.886.32 3.423c0 0 .174-2.359-.535-3.289l-.927.724s.939 1.857.365 3.133c0 0-.072-2.747-.565-2.954 0 0-.81.715-.933 1.008 0 0 .64 1.348.242 2.06 0 0-.245-1.83-.445-1.839 0 0-.804 1.214-.897 2.042.04-.768.28-1.512.697-2.159a2.427 2.427 0 00-1.235.643s.125-.858 1.435-.933c0 0 .667-.92.846-.974 0 0-1.303-.111-2.093.239 0 0 .694-.807 2.329-.44l.915-.747s-1.713-.233-2.442.024c0 0 .837-.715 2.69-.191l.996-.598s-1.462-.314-2.335-.201c0 0 .921-.496 2.625.042l.711-.32s-1.07-.209-1.384-.242c-.314-.033-.329-.119-.329-.119a3.69 3.69 0 012.012.221s1.519-.553 1.492-.646z"}),y.jsx("ellipse",{cx:"346.97",cy:"270.022",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"6.09",ry:"1.028"}),y.jsx("rect",{width:"51.026",height:"91.312",x:"303.926",y:"69.211",fill:"#FFF",fillRule:"nonzero",rx:"4.737",transform:"rotate(-71.99 329.44 114.867)"}),y.jsx("circle",{cx:"303.613",cy:"103.507",r:"9.376",fill:r,fillRule:"nonzero",opacity:"0.2"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M344.582495 86.4883769L347.150665 86.4883769 347.150665 127.336977 344.582495 127.336977z",opacity:"0.2",transform:"rotate(-71.99 345.867 106.913)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M333.028401 99.6373982L335.596571 99.6373982 335.596571 120.445898 333.028401 120.445898z",opacity:"0.2",transform:"rotate(-71.99 334.312 110.042)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M337.109071 101.431004L339.677241 101.431004 339.677241 135.086304 337.109071 135.086304z",opacity:"0.2",transform:"rotate(-71.99 338.393 118.259)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M338.505494 105.174377L341.073664 105.174377 341.073664 146.022978 338.505494 146.022978z",opacity:"0.2",transform:"rotate(-71.99 339.79 125.599)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M348.060839 134.648161L353.026769 134.648161 353.026769 145.952261 348.060839 145.952261z",opacity:"0.5",transform:"rotate(-71.99 350.544 140.3)"}),y.jsx("rect",{width:"50.3",height:"78.305",x:"291.549",y:"174.486",fill:"#FFF",fillRule:"nonzero",rx:"4",transform:"rotate(-57.265 316.7 213.638)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M278.038439 203.88874L292.269539 203.88874 292.269539 207.23723 278.038439 207.23723z",transform:"rotate(-57.57 285.154 205.563)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M283.007935 199.201889L314.262535 199.201889 314.262535 202.272339 283.007935 202.272339z",transform:"rotate(-57.57 298.635 200.737)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M288.543935 202.715889L319.798535 202.715889 319.798535 205.786339 288.543935 205.786339z",transform:"rotate(-57.57 304.171 204.251)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M294.078936 206.235889L325.333536 206.235889 325.333536 209.306339 294.078936 209.306339z",transform:"rotate(-57.57 309.706 207.771)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M299.879919 211.40702L331.090719 211.40702 331.090719 214.47316 299.879919 214.47316z",transform:"rotate(-57.265 315.485 212.94)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M305.149936 213.268889L336.404536 213.268889 336.404536 216.339339 305.149936 216.339339z",transform:"rotate(-57.57 320.777 214.804)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M310.685935 216.782889L341.940535 216.782889 341.940535 219.853339 310.685935 219.853339z",transform:"rotate(-57.57 326.313 218.318)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M341.417983 210.406958L349.511163 210.406958 349.511163 218.500138 341.417983 218.500138z",transform:"rotate(-57.57 345.465 214.454)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.243"}),y.jsx("path",{fill:"url(#linearGradient-2)",fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.32"}),y.jsx("ellipse",{cx:"119.593",cy:"258.664",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),y.jsx("ellipse",{cx:"101.03",cy:"260.545",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),y.jsx("ellipse",{cx:"108.459",cy:"265.905",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),y.jsx("ellipse",{cx:"89.193",cy:"265.433",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.925 260.398s6.796-22.279-1.064-31.204c-5.881-6.676-12.557-5.877-15.547-5.052a5.528 5.528 0 00-3.564 2.963c-1.046 2.254-.858 5.913 6.521 10.186 12.35 7.151 13.119 16.96 13.119 16.96l.535 6.147z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M85.382 227.302s20.031 6.278 15.546 33.096M97.083 229.547s-2.76 1.86-1.88 4.655M87.39 231.203s1.687-1.716 3.741-.768M95.31 239.832s2.963-1.495 3.728.379M102.638 242.962s-2.224-.176-2.263.897"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M101.2 260.575s-7.961-16.193-10.147-15.846c-1.037.17-1.516 1.196-1.734 2.218a6.516 6.516 0 00.434 3.941c1.13 2.601 4.165 7.519 11.447 9.687z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M91.113 247.808s8.353 12.115 9.968 12.647"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M90.344 249.701L92.293 249.701"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M92.68 254.132L95.738 254.263"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M94.542 250.586L94.21 252.179"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M97.792 255.432L97.732 256.879"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.964 260.575s7.959-16.193 10.144-15.846c1.041.17 1.519 1.196 1.734 2.218a6.514 6.514 0 01-.433 3.941c-1.13 2.601-4.168 7.519-11.445 9.687z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.051 247.808s-8.371 12.115-9.97 12.647"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.82 249.701L109.871 249.701"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M109.485 254.132L106.426 254.263"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M107.622 250.586L107.954 252.179"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M104.372 255.432L104.432 256.879"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M87.295 264.357a1.375 1.375 0 01-.452-.685.599.599 0 01.317-.697c.3-.11.598.09.837.299.24.21.512.431.81.38a1.237 1.237 0 01-.382-1.16.47.47 0 01.105-.236c.161-.174.454-.099.648.039.598.43.787 1.264.79 2.018.03-.277.03-.555 0-.831a.853.853 0 01.334-.727.938.938 0 01.476-.114.988.988 0 01.774.222.767.767 0 01-.03.947c-.229.257-.5.474-.801.64a1.805 1.805 0 00-.571.547.399.399 0 00-.042.096h-1.74a4.826 4.826 0 01-1.073-.738zM117.626 257.833a1.355 1.355 0 01-.452-.682.599.599 0 01.314-.696c.299-.111.598.089.837.299.239.209.509.436.817.391a1.236 1.236 0 01-.386-1.157.472.472 0 01.107-.236c.162-.173.455-.099.649.036.613.433.787 1.268.79 2.021a4.008 4.008 0 000-.834.852.852 0 01.299-.736.955.955 0 01.475-.11.998.998 0 01.774.218.768.768 0 01-.033.951 2.996 2.996 0 01-.798.64 1.767 1.767 0 00-.571.544.499.499 0 00-.042.098h-1.701a4.78 4.78 0 01-1.079-.747zM107.518 264.357a1.406 1.406 0 01-.455-.685.6.6 0 01.317-.697c.299-.11.598.09.837.299.239.21.505.437.816.395a1.247 1.247 0 01-.385-1.16.472.472 0 01.107-.236c.162-.174.455-.099.649.039.613.43.783 1.264.789 2.018.03-.277.03-.555 0-.832a.855.855 0 01.314-.735.93.93 0 01.476-.114.988.988 0 01.774.222.764.764 0 01-.033.947 3.028 3.028 0 01-.798.64 1.798 1.798 0 00-.571.547.411.411 0 00-.042.096h-1.734c-.385-.2-.742-.45-1.061-.744z"}),y.jsx("circle",{cx:"84.467",cy:"87.003",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"395.425",cy:"138.681",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"279.178",cy:"66.467",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"97.4",cy:"122.68",r:"10.838",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M206.029 209.911c-7.975 0-14.44 6.465-14.44 14.44s6.465 14.44 14.44 14.44 14.44-6.465 14.44-14.44-6.465-14.44-14.44-14.44z"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M206.029 211.59c7.047 0 12.761 5.714 12.761 12.761 0 7.048-5.714 12.761-12.761 12.761-7.048 0-12.761-5.713-12.761-12.761.006-7.045 5.716-12.754 12.761-12.761",opacity:"0.72"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M200.058 225.406l-.699-.681a.721.721 0 010-1.065l6.127-5.984a.753.753 0 01.546-.231c.206 0 .404.083.545.231l6.127 5.978a.733.733 0 010 1.065l-.699.682a.768.768 0 01-1.091 0l-3.622-3.727v8.843a.725.725 0 01-.219.523.76.76 0 01-.534.217h-1.009a.75.75 0 01-.759-.74v-8.832l-3.622 3.726a.768.768 0 01-1.091-.005z"})]})})},LX=g.memo(jX),RX=["pdf"],NX=["txt"],BX=["psd"],zX=["doc","docx"],VX=["xls","xlsx"],WX=["zip","rar","iso"],HX=["ai","esp"],UX=["ppt","pptx"],YX=["wav","aif","mp3","aac"],GX=["jpg","jpeg","gif","bmp","png","svg"],qX=["m4v","avi","mpg","mp4","webm"],ur=e=>`/assets/icons/files/${e}.svg`;function fx(e){let t;switch(e==null?void 0:e.includes(Zt(e))){case NX.includes(Zt(e)):t="txt";break;case WX.includes(Zt(e)):t="zip";break;case YX.includes(Zt(e)):t="audio";break;case GX.includes(Zt(e)):t="image";break;case qX.includes(Zt(e)):t="video";break;case zX.includes(Zt(e)):t="word";break;case VX.includes(Zt(e)):t="excel";break;case UX.includes(Zt(e)):t="powerpoint";break;case RX.includes(Zt(e)):t="pdf";break;case BX.includes(Zt(e)):t="photoshop";break;case HX.includes(Zt(e)):t="illustrator";break;default:t=Zt(e)}return t}function KX(e){let t;switch(fx(e)){case"folder":t=ur("ic_folder");break;case"txt":t=ur("ic_txt");break;case"zip":t=ur("ic_zip");break;case"audio":t=ur("ic_audio");break;case"video":t=ur("ic_video");break;case"word":t=ur("ic_word");break;case"excel":t=ur("ic_excel");break;case"powerpoint":t=ur("ic_power_point");break;case"pdf":t=ur("ic_pdf");break;case"photoshop":t=ur("ic_pts");break;case"illustrator":t=ur("ic_ai");break;case"image":t=ur("ic_img");break;default:t=ur("ic_file")}return t}function Zt(e=""){return e&&e.split(".").pop()||""}function XX(e){return e.split("/").pop()}function wh(e){return typeof e=="string"?{key:e,preview:e,name:XX(e),type:Zt(e)}:{key:e.preview,name:e.name,size:e.size,path:e.path,type:e.type,preview:e.preview,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate}}function uu(e){const t=(e==null?void 0:e.color)||"#000000",r=(e==null?void 0:e.blur)||6,n=(e==null?void 0:e.opacity)||.8,i=e==null?void 0:e.imgUrl;return i?{position:"relative",backgroundImage:`url(${i})`,"&:before":{position:"absolute",top:0,left:0,zIndex:9,content:'""',width:"100%",height:"100%",backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:W(t,n)}}:{backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:W(t,n)}}function ZX(e){const t=(e==null?void 0:e.direction)||"to bottom",r=e==null?void 0:e.startColor,n=e==null?void 0:e.endColor,i=e==null?void 0:e.imgUrl,o=e==null?void 0:e.color;return i?{background:`linear-gradient(${t}, ${r||o}, ${n||o}), url(${i})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}:{background:`linear-gradient(${t}, ${r}, ${n})`}}function QX(e){return{background:`-webkit-linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}function JX(e){return{filter:e,WebkitFilter:e,MozFilter:e}}const dx={msOverflowStyle:"none",scrollbarWidth:"none",overflowY:"scroll","&::-webkit-scrollbar":{display:"none"}},eZ=Object.freeze(Object.defineProperty({__proto__:null,bgBlur:uu,bgGradient:ZX,filterStyles:JX,hideScrollbarX:{msOverflowStyle:"none",scrollbarWidth:"none",overflowX:"scroll","&::-webkit-scrollbar":{display:"none"}},hideScrollbarY:dx,textGradient:QX},Symbol.toStringTag,{value:"Module"})),hx=({onDownload:e})=>{const t=An();return y.jsx(P.IconButton,{onClick:e,sx:{p:0,top:0,right:0,width:1,height:1,zIndex:9,opacity:0,position:"absolute",borderRadius:"unset",justifyContent:"center",bgcolor:"grey.800",color:"common.white",transition:t.transitions.create("opacity"),"&:hover":{opacity:1,...uu({opacity:.64,color:t.palette.grey[900]})}},children:y.jsx(Ft,{icon:"eva:arrow-circle-down-fill",width:24})})},px=({file:e,tooltip:t,imageView:r,onDownload:n,sx:i,imgSx:o})=>{const{name:a="",path:s="",preview:u=""}=wh(e),l=fx(s||u),c=l==="image"&&r?y.jsx(P.Box,{component:"img",src:u,sx:{width:1,height:1,flexShrink:0,objectFit:"cover",...o}}):y.jsx(P.Box,{component:"img",src:KX(l),sx:{width:32,height:32,flexShrink:0,...i}});return t?y.jsx(P.Tooltip,{title:a,children:y.jsxs(P.Stack,{flexShrink:0,component:"span",alignItems:"center",justifyContent:"center",sx:{width:"fit-content",height:"inherit"},children:[c,n&&y.jsx(hx,{onDownload:n})]})}):y.jsxs(y.Fragment,{children:[c,n&&y.jsx(hx,{onDownload:n})]})};var gx={exports:{}};/*! @preserve
|
|
243
247
|
* numeral.js
|
|
244
248
|
* version : 2.0.6
|
|
245
249
|
* author : Adam Draper
|
|
246
250
|
* license : MIT
|
|
247
251
|
* http://adamwdraper.github.com/Numeral-js/
|
|
248
|
-
*/(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(ho,function(){var t,r,n="2.0.6",i={},o={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function u(l,c){this._input=l,this._value=c}return t=function(l){var c,f,d,h;if(t.isNumeral(l))c=l.value();else if(l===0||typeof l>"u")c=0;else if(l===null||r.isNaN(l))c=null;else if(typeof l=="string")if(s.zeroFormat&&l===s.zeroFormat)c=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)c=null;else{for(f in i)if(h=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,h&&l.match(h)){d=i[f].unformat;break}d=d||t._.stringToNumber,c=d(l)}else c=Number(l)||null;return new u(l,c)},t.version=n,t.isNumeral=function(l){return l instanceof u},t._=r={numberToFormat:function(l,c,f){var d=o[t.options.currentLocale],h=!1,m=!1,p=0,v="",x=1e12,b=1e9,C=1e6,E=1e3,w="",_=!1,O,k,D,L,re,pe,se;if(l=l||0,k=Math.abs(l),t._.includes(c,"(")?(h=!0,c=c.replace(/[\(|\)]/g,"")):(t._.includes(c,"+")||t._.includes(c,"-"))&&(re=t._.includes(c,"+")?c.indexOf("+"):l<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),t._.includes(c,"a")&&(O=c.match(/a(k|m|b|t)?/),O=O?O[1]:!1,t._.includes(c," a")&&(v=" "),c=c.replace(new RegExp(v+"a[kmbt]?"),""),k>=x&&!O||O==="t"?(v+=d.abbreviations.trillion,l=l/x):k<x&&k>=b&&!O||O==="b"?(v+=d.abbreviations.billion,l=l/b):k<b&&k>=C&&!O||O==="m"?(v+=d.abbreviations.million,l=l/C):(k<C&&k>=E&&!O||O==="k")&&(v+=d.abbreviations.thousand,l=l/E)),t._.includes(c,"[.]")&&(m=!0,c=c.replace("[.]",".")),D=l.toString().split(".")[0],L=c.split(".")[1],pe=c.indexOf(","),p=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,L?(t._.includes(L,"[")?(L=L.replace("]",""),L=L.split("["),w=t._.toFixed(l,L[0].length+L[1].length,f,L[1].length)):w=t._.toFixed(l,L.length,f),D=w.split(".")[0],t._.includes(w,".")?w=d.delimiters.decimal+w.split(".")[1]:w="",m&&Number(w.slice(1))===0&&(w="")):D=t._.toFixed(l,0,f),v&&!O&&Number(D)>=1e3&&v!==d.abbreviations.trillion)switch(D=String(Number(D)/1e3),v){case d.abbreviations.thousand:v=d.abbreviations.million;break;case d.abbreviations.million:v=d.abbreviations.billion;break;case d.abbreviations.billion:v=d.abbreviations.trillion;break}if(t._.includes(D,"-")&&(D=D.slice(1),_=!0),D.length<p)for(var q=p-D.length;q>0;q--)D="0"+D;return pe>-1&&(D=D.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),c.indexOf(".")===0&&(D=""),se=D+w+(v||""),h?se=(h&&_?"(":"")+se+(h&&_?")":""):re>=0?se=re===0?(_?"-":"+")+se:se+(_?"-":"+"):_&&(se="-"+se),se},stringToNumber:function(l){var c=o[s.currentLocale],f=l,d={thousand:3,million:6,billion:9,trillion:12},h,m,p;if(s.zeroFormat&&l===s.zeroFormat)m=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)m=null;else{m=1,c.delimiters.decimal!=="."&&(l=l.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(h in d)if(p=new RegExp("[^a-zA-Z]"+c.abbreviations[h]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(p)){m*=Math.pow(10,d[h]);break}m*=(l.split("-").length+Math.min(l.split("(").length-1,l.split(")").length-1))%2?1:-1,l=l.replace(/[^0-9\.]+/g,""),m*=Number(l)}return m},isNaN:function(l){return typeof l=="number"&&isNaN(l)},includes:function(l,c){return l.indexOf(c)!==-1},insert:function(l,c,f){return l.slice(0,f)+c+l.slice(f)},reduce:function(l,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var f=Object(l),d=f.length>>>0,h=0,m;if(arguments.length===3)m=arguments[2];else{for(;h<d&&!(h in f);)h++;if(h>=d)throw new TypeError("Reduce of empty array with no initial value");m=f[h++]}for(;h<d;h++)h in f&&(m=c(m,f[h],h,f));return m},multiplier:function(l){var c=l.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var l=Array.prototype.slice.call(arguments);return l.reduce(function(c,f){var d=r.multiplier(f);return c>d?c:d},1)},toFixed:function(l,c,f,d){var h=l.toString().split("."),m=c-(d||0),p,v,x,b;return h.length===2?p=Math.min(Math.max(h[1].length,m),c):p=m,x=Math.pow(10,p),b=(f(l+"e+"+p)/x).toFixed(p),d>c-p&&(v=new RegExp("\\.?0{1,"+(d-(c-p))+"}$"),b=b.replace(v,"")),b}},t.options=s,t.formats=i,t.locales=o,t.locale=function(l){return l&&(s.currentLocale=l.toLowerCase()),s.currentLocale},t.localeData=function(l){if(!l)return o[s.currentLocale];if(l=l.toLowerCase(),!o[l])throw new Error("Unknown locale : "+l);return o[l]},t.reset=function(){for(var l in a)s[l]=a[l]},t.zeroFormat=function(l){s.zeroFormat=typeof l=="string"?l:null},t.nullFormat=function(l){s.nullFormat=typeof l=="string"?l:null},t.defaultFormat=function(l){s.defaultFormat=typeof l=="string"?l:"0.0"},t.register=function(l,c,f){if(c=c.toLowerCase(),this[l+"s"][c])throw new TypeError(c+" "+l+" already registered.");return this[l+"s"][c]=f,f},t.validate=function(l,c){var f,d,h,m,p,v,x,b;if(typeof l!="string"&&(l+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",l)),l=l.trim(),l.match(/^\d+$/))return!0;if(l==="")return!1;try{x=t.localeData(c)}catch{x=t.localeData(t.locale())}return h=x.currency.symbol,p=x.abbreviations,f=x.delimiters.decimal,x.delimiters.thousands==="."?d="\\.":d=x.delimiters.thousands,b=l.match(/^[^\d]+/),b!==null&&(l=l.substr(1),b[0]!==h)||(b=l.match(/[^\d]+$/),b!==null&&(l=l.slice(0,-1),b[0]!==p.thousand&&b[0]!==p.million&&b[0]!==p.billion&&b[0]!==p.trillion))?!1:(v=new RegExp(d+"{2}"),l.match(/[^\d.,]/g)?!1:(m=l.split(f),m.length>2?!1:m.length<2?!!m[0].match(/^\d+.*\d$/)&&!m[0].match(v):m[0].length===1?!!m[0].match(/^\d+$/)&&!m[0].match(v)&&!!m[1].match(/^\d+$/):!!m[0].match(/^\d+.*\d$/)&&!m[0].match(v)&&!!m[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(l,c){var f=this._value,d=l||s.defaultFormat,h,m,p;if(c=c||Math.round,f===0&&s.zeroFormat!==null)m=s.zeroFormat;else if(f===null&&s.nullFormat!==null)m=s.nullFormat;else{for(h in i)if(d.match(i[h].regexps.format)){p=i[h].format;break}p=p||t._.numberToFormat,m=p(f,d,c)}return m},value:function(){return this._value},input:function(){return this._input},set:function(l){return this._value=Number(l),this},add:function(l){var c=r.correctionFactor.call(null,this._value,l);function f(d,h,m,p){return d+Math.round(c*h)}return this._value=r.reduce([this._value,l],f,0)/c,this},subtract:function(l){var c=r.correctionFactor.call(null,this._value,l);function f(d,h,m,p){return d-Math.round(c*h)}return this._value=r.reduce([l],f,Math.round(this._value*c))/c,this},multiply:function(l){function c(f,d,h,m){var p=r.correctionFactor(f,d);return Math.round(f*p)*Math.round(d*p)/Math.round(p*p)}return this._value=r.reduce([this._value,l],c,1),this},divide:function(l){function c(f,d,h,m){var p=r.correctionFactor(f,d);return Math.round(f*p)/Math.round(d*p)}return this._value=r.reduce([this._value,l],c),this},difference:function(l){return Math.abs(t(this._value).subtract(l).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(l){var c=l%10;return~~(l%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(l,c,f){var d=t._.includes(c," BPS")?" ":"",h;return l=l*1e4,c=c.replace(/\s?BPS/,""),h=t._.numberToFormat(l,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"BPS"),h=h.join("")):h=h+d+"BPS",h},unformat:function(l){return+(t._.stringToNumber(l)*1e-4).toFixed(15)}})}(),function(){var l={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=l.suffixes.concat(c.suffixes.filter(function(h){return l.suffixes.indexOf(h)<0})),d=f.join("|");d="("+d.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(d)},format:function(h,m,p){var v,x=t._.includes(m,"ib")?c:l,b=t._.includes(m," b")||t._.includes(m," ib")?" ":"",C,E,w;for(m=m.replace(/\s?i?b/,""),C=0;C<=x.suffixes.length;C++)if(E=Math.pow(x.base,C),w=Math.pow(x.base,C+1),h===null||h===0||h>=E&&h<w){b+=x.suffixes[C],E>0&&(h=h/E);break}return v=t._.numberToFormat(h,m,p),v+b},unformat:function(h){var m=t._.stringToNumber(h),p,v;if(m){for(p=l.suffixes.length-1;p>=0;p--){if(t._.includes(h,l.suffixes[p])){v=Math.pow(l.base,p);break}if(t._.includes(h,c.suffixes[p])){v=Math.pow(c.base,p);break}}m*=v||1}return m}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(l,c,f){var d=t.locales[t.options.currentLocale],h={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},m,p,v;for(c=c.replace(/\s?\$\s?/,""),m=t._.numberToFormat(l,c,f),l>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):l<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),v=0;v<h.before.length;v++)switch(p=h.before[v],p){case"$":m=t._.insert(m,d.currency.symbol,v);break;case" ":m=t._.insert(m," ",v+d.currency.symbol.length-1);break}for(v=h.after.length-1;v>=0;v--)switch(p=h.after[v],p){case"$":m=v===h.after.length-1?m+d.currency.symbol:t._.insert(m,d.currency.symbol,-(h.after.length-(1+v)));break;case" ":m=v===h.after.length-1?m+" ":t._.insert(m," ",-(h.after.length-(1+v)+d.currency.symbol.length-1));break}return m}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(l,c,f){var d,h=typeof l=="number"&&!t._.isNaN(l)?l.toExponential():"0e+0",m=h.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),d=t._.numberToFormat(Number(m[0]),c,f),d+"e"+m[1]},unformat:function(l){var c=t._.includes(l,"e+")?l.split("e+"):l.split("e-"),f=Number(c[0]),d=Number(c[1]);d=t._.includes(l,"e-")?d*=-1:d;function h(m,p,v,x){var b=t._.correctionFactor(m,p),C=m*b*(p*b)/(b*b);return C}return t._.reduce([f,Math.pow(10,d)],h,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(l,c,f){var d=t.locales[t.options.currentLocale],h,m=t._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),m+=d.ordinal(l),h=t._.numberToFormat(l,c,f),h+m}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(l,c,f){var d=t._.includes(c," %")?" ":"",h;return t.options.scalePercentBy100&&(l=l*100),c=c.replace(/\s?\%/,""),h=t._.numberToFormat(l,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"%"),h=h.join("")):h=h+d+"%",h},unformat:function(l){var c=t._.stringToNumber(l);return t.options.scalePercentBy100?c*.01:c}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(l,c,f){var d=Math.floor(l/60/60),h=Math.floor((l-d*60*60)/60),m=Math.round(l-d*60*60-h*60);return d+":"+(h<10?"0"+h:h)+":"+(m<10?"0"+m:m)},unformat:function(l){var c=l.split(":"),f=0;return c.length===3?(f=f+Number(c[0])*60*60,f=f+Number(c[1])*60,f=f+Number(c[2])):c.length===2&&(f=f+Number(c[0])*60,f=f+Number(c[1])),Number(f)}})}(),t})})(n2);var cK=n2.exports;const wa=xn(cK);function fK(e){return wa(e).format()}function dK(e){const t=e?wa(e).format("$0,0.00"):"";return jl(t,".00")}function hK(e){const t=e?wa(Number(e)/100).format("0.0%"):"";return jl(t,".0")}function pK(e){const t=e?wa(e).format("0.00a"):"";return jl(t,".00")}function jd(e){const t=e?wa(e).format("0.0 b"):"";return jl(t,".0")}function jl(e,t=".00"){return e.includes(t)?e.replace(t,""):e}const gK=Object.freeze(Object.defineProperty({__proto__:null,fCurrency:dK,fData:jd,fNumber:fK,fPercent:hK,fShortenNumber:pK},Symbol.toStringTag,{value:"Module"})),i2=({fileRejections:e})=>e.length?y.jsx(P.Paper,{variant:"outlined",sx:{py:1,px:2,mt:3,bgcolor:t=>W(t.palette.error.main,.08),borderColor:t=>W(t.palette.error.main,.24)},children:e.map(({file:t,errors:r})=>{const{path:n,size:i}=Fd(t);return y.jsxs(P.Box,{sx:{my:1},children:[y.jsxs(P.Typography,{variant:"subtitle2",noWrap:!0,children:[n," - ",i?jd(i):""]}),r.map(o=>y.jsxs(P.Box,{component:"span",sx:{typography:"caption"},children:["- ",o.message]},o.code))]},n)})}):null,mK=({thumbnail:e,files:t,onRemove:r,sx:n})=>t!=null&&t.length?y.jsx(h0,{initial:!1,children:t.map(i=>{const{key:o,name:a="",size:s=0}=Fd(i),u=typeof i=="string";return e?y.jsxs(P.Stack,{component:gr.div,...fo().inUp,alignItems:"center",display:"inline-flex",justifyContent:"center",sx:{m:.5,width:80,height:80,borderRadius:1.25,overflow:"hidden",position:"relative",border:l=>`solid 1px ${l.palette.divider}`,...n},children:[y.jsx(r2,{tooltip:!0,imageView:!0,file:i,sx:{position:"absolute"},imgSx:{position:"absolute"}}),r&&y.jsx(P.IconButton,{size:"small",onClick:()=>r(i),sx:{top:4,right:4,p:"1px",position:"absolute",color:l=>W(l.palette.common.white,.72),bgcolor:l=>W(l.palette.grey[900],.48),"&:hover":{bgcolor:l=>W(l.palette.grey[900],.72)}},children:y.jsx(Rt,{icon:"eva:close-fill",width:16})})]},o):y.jsxs(P.Stack,{component:gr.div,...fo().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:l=>`solid 1px ${l.palette.divider}`,...n},children:[y.jsx(r2,{file:i}),y.jsxs(P.Stack,{flexGrow:1,sx:{minWidth:0},children:[y.jsx(P.Typography,{variant:"subtitle2",noWrap:!0,children:u?i:a}),y.jsx(P.Typography,{variant:"caption",sx:{color:"text.secondary"},children:u?"":jd(s)})]}),r&&y.jsx(P.IconButton,{edge:"end",size:"small",onClick:()=>r(i),children:y.jsx(Rt,{icon:"eva:close-fill"})})]},o)})}):null,vK=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return y.jsx(P.Stack,{position:"absolute",width:1,height:160,alignItems:"center",justifyContent:"center",top:0,right:0,bottom:0,left:0,padding:2,margin:"auto",children:y.jsx(vl,{alt:"file preview",src:t,sx:{borderRadius:1,width:"auto",maxWidth:"100%",maxHeight:"100%",height:"auto"}})})},yK=$t("div")(({theme:e})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:e.spacing(5),borderRadius:e.shape.borderRadius,transition:e.transitions.create("padding"),backgroundColor:e.palette.background.neutral,border:`1px dashed ${W(e.palette.grey[500],.32)}`,"&:hover":{opacity:.72}})),bK=({header:e,description:t,sx:r,...n})=>y.jsxs(P.Stack,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...r},...n,children:[y.jsx(Yq,{sx:{width:220}}),y.jsxs("div",{children:[e||y.jsx(P.Typography,{gutterBottom:!0,variant:"h5",children:"Soltar ou selecionar arquivos"}),t||y.jsxs(P.Typography,{variant:"body2",sx:{color:"text.secondary"},children:["Solte os arquivos aqui ou clique",y.jsx(P.Typography,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua máquina"]})]})]}),o2=({disabled:e,multiple:t=!1,error:r,helperText:n,file:i,onDelete:o,files:a,thumbnail:s,onUpload:u,onRemove:l,onRemoveAll:c,sx:f,dropZoneProps:d,placeholderProps:h,placeholderAlt:m,...p})=>{const{getRootProps:v,getInputProps:x,isDragActive:b,isDragReject:C,fileRejections:E}=Il({multiple:t,disabled:e,...p}),w=!!i&&!t,_=a&&t&&a.length>0,O=C||!!r;return y.jsxs(P.Box,{sx:{width:1,position:"relative",...f},children:[y.jsxs(yK,{...v(),sx:{...b&&{opacity:.72},...O&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...e&&{opacity:.48,pointerEvents:"none"},...d},children:[y.jsx("input",{...x()}),m?y.jsx(P.Stack,{sx:{...w&&{opacity:0}},children:m}):y.jsx(bK,{sx:{...w&&{opacity:0}},header:h==null?void 0:h.title,description:h==null?void 0:h.description}),w&&y.jsx(vK,{file:i})]}),n&&n,y.jsx(i2,{fileRejections:E}),w&&o&&y.jsx(P.IconButton,{size:"small",onClick:o,sx:{top:16,right:16,zIndex:9,position:"absolute",color:k=>W(k.palette.common.white,.8),bgcolor:k=>W(k.palette.grey[900],.72),"&:hover":{bgcolor:k=>W(k.palette.grey[900],.48)}},children:y.jsx(Rt,{icon:"eva:close-fill",width:18})}),_&&y.jsxs(y.Fragment,{children:[y.jsx(P.Box,{sx:{my:3},children:y.jsx(mK,{files:a,thumbnail:s,onRemove:l})}),y.jsxs(P.Stack,{direction:"row",justifyContent:"flex-end",spacing:1.5,children:[c&&y.jsx(P.Button,{color:"inherit",variant:"outlined",size:"small",onClick:c,children:"Remove all"}),u&&y.jsx(P.Button,{size:"small",variant:"contained",onClick:u,children:"Upload files"})]})]})]})},a2=({onFileCropped:e,aspect:t,size:{width:r,height:n},label:i,image:o="",...a})=>{const[s,u]=cc(),[l,c]=g.useState(o),f=d=>{d||c(""),e(d)};return y.jsxs(y.Fragment,{children:[y.jsxs(P.Stack,{position:"relative",width:1,children:[y.jsx(o2,{...a,onDrop:d=>{if(d.length>0){u(),e(void 0);const h=new FileReader;h.addEventListener("load",()=>{var p;const m=((p=h.result)==null?void 0:p.toString())||"";c(m)}),h.readAsDataURL(d[0])}}}),l&&y.jsx(P.Stack,{sx:{position:"absolute",top:12,right:12,zIndex:999},bgcolor:"grey.0",borderRadius:"50%",children:y.jsx(P.IconButton,{color:"primary",onClick:u,children:y.jsx(Rt,{icon:"ic:round-crop"})})})]}),y.jsx(cb,{open:s,onClose:u,title:i,image:{width:r,height:n,aspect:t,imgSrc:l},onFileCropped:f})]})};function xK(e,t){const{watch:r,setValue:n}=yt.useFormContext(),[i,o]=g.useState(t),a=r(e)||[];return{uploadFile:async d=>{if(!d){n(e,void 0),o(void 0);return}n(e,d),o(Object.assign(d,{preview:URL.createObjectURL(d)}))},uploadFiles:async d=>{n(e,[...a,...d.map(h=>Object.assign(h,{preview:URL.createObjectURL(h)}))])},handleDeleteFile:()=>{n(e,void 0),o(void 0)},handleRemoveAll:()=>{n(e,void 0)},handleRemove:d=>{const h=a.filter(m=>m!==d);n(e,h)},file:i}}const wK=({name:e,rules:t,helperText:r,aspect:n,label:i,size:o,image:a,...s})=>{const{control:u}=yt.useFormContext(),{uploadFile:l,file:c}=xK(e);return y.jsx(yt.Controller,{name:e,control:u,rules:t,render:({fieldState:{error:f}})=>y.jsx(a2,{accept:{"image/*":[]},file:c,onFileCropped:l,error:!!f,disableMultiple:!0,helperText:(!!f||r)&&y.jsx(P.FormHelperText,{error:!!f,sx:{px:2},children:f?f==null?void 0:f.message:r}),aspect:n,label:i,size:o,image:a,...s})})},Ll=(e,t=!0)=>{const{pathname:r}=Fr.useLocation(),n=e?!!Fr.matchPath({path:e,end:!0},r):!1,i=e?!!Fr.matchPath({path:e,end:!1},r):!1;return{active:t?i:n,isExternalLink:e.includes("http")}},Rl={W_BASE:260,W_DASHBOARD:280,W_DASHBOARD_MINI:88,H_DASHBOARD_ITEM:48,H_DASHBOARD_ITEM_SUB:36,H_DASHBOARD_ITEM_HORIZONTAL:32},lo={NAV_ITEM:24,NAV_ITEM_HORIZONTAL:22,NAV_ITEM_MINI:22},CK=$t(P.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="open"})(({active:e,disabled:t,open:r,depth:n,theme:i})=>{const o=i.palette.mode==="light",a=n!==1,s={color:i.palette.primary.main,backgroundColor:W(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},u={color:i.palette.text.primary,backgroundColor:"transparent"},l={color:i.palette.text.primary,backgroundColor:i.palette.action.hover};return{flexDirection:"column",textTransform:"capitalize",padding:i.spacing(1,0,.5,0),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,"&:hover":l,...a&&{flexDirection:"row",padding:i.spacing(1)},...e&&{...s,"&:hover":{...s}},...a&&e&&{...u,"&:hover":{...u}},...r&&!e&&l,...t&&{"&.Mui-disabled":{opacity:.64}}}}),SK=$t(P.ListItemIcon)({marginRight:0,marginBottom:4,width:lo.NAV_ITEM_MINI,height:lo.NAV_ITEM_MINI}),EK=$t(P.Popover)(({theme:e})=>({pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:e.spacing(1),marginTop:e.spacing(.5),boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5,...Fl({color:e.palette.background.default})}})),s2=g.forwardRef(({item:e,depth:t,open:r,active:n,isExternalLink:i,...o},a)=>{const{title:s,path:u,icon:l,children:c,disabled:f,caption:d}=e,h=t!==1,m=y.jsxs(CK,{ref:a,open:r,depth:t,active:n,disabled:f,...o,children:[l&&y.jsx(SK,{children:l}),y.jsx(P.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,sx:{width:72,fontSize:10,lineHeight:"16px",textAlign:"center",...n&&{fontWeight:"fontWeightMedium"},...h&&{fontSize:14,width:"auto",textAlign:"left"}}}}),d&&y.jsx(P.Tooltip,{title:d,arrow:!0,placement:"right",children:y.jsx(Rt,{icon:"eva:info-outline",width:16,sx:{top:11,left:6,position:"absolute"}})}),!!c&&y.jsx(Rt,{width:16,icon:"eva:chevron-right-fill",sx:{top:11,right:6,position:"absolute"}})]});return(()=>i?y.jsx(P.Link,{href:u,target:"_blank",rel:"noopener",underline:"none",children:m}):y.jsx(P.Link,{component:Fr.Link,to:u,underline:"none",children:m}))()});s2.displayName="NavItem";const TK=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(l2,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),l2=({data:e,depth:t,hasChild:r})=>{const n=g.useRef(null),{pathname:i}=Fr.useLocation(),{active:o,isExternalLink:a}=Ll(e.path),[s,u]=g.useState(!1);g.useEffect(()=>{s&&c()},[i]),g.useEffect(()=>{const f=Array.from(document.querySelectorAll(".MuiAppBar-root")),d=()=>{document.body.style.overflow="",document.body.style.padding="",f.forEach(h=>{h.style.padding=""})};d()},[s]);const l=()=>{u(!0)},c=()=>{u(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(s2,{ref:n,item:e,depth:t,open:s,active:o,isExternalLink:a,onMouseEnter:l,onMouseLeave:c}),r&&y.jsx(EK,{open:s,anchorEl:n.current,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:l,onMouseLeave:c},children:y.jsx(TK,{data:e.children,depth:t})})]})},_K=({items:e,isLastGroup:t})=>y.jsxs(y.Fragment,{children:[e.map(r=>y.jsx(l2,{data:r,depth:1,hasChild:!!r.children},r.title+r.path)),!t&&y.jsx(P.Box,{sx:{width:24,height:"1px",bgcolor:"divider",my:"8px !important"}})]}),OK=({data:e,sx:t,...r})=>y.jsx(P.Stack,{spacing:.5,alignItems:"center",sx:{px:.75,...t},...r,children:e.map((n,i)=>y.jsx(_K,{items:n.items,isLastGroup:i+1===e.length},n.subheader))}),kK=g.memo(OK),MK=$t(P.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="caption"})(({active:e,disabled:t,depth:r,caption:n,theme:i})=>{const o=i.palette.mode==="light",a=r!==1,s={color:i.palette.primary.main,backgroundColor:W(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},u={color:i.palette.text.primary,backgroundColor:"transparent"};return{position:"relative",textTransform:"capitalize",paddingLeft:i.spacing(2),paddingRight:i.spacing(1.5),marginBottom:i.spacing(.5),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,height:Rl.H_DASHBOARD_ITEM,...a&&{height:Rl.H_DASHBOARD_ITEM_SUB,...r>2&&{paddingLeft:i.spacing(r)},...n&&{height:Rl.H_DASHBOARD_ITEM}},...e&&{...s,"&:hover":{...s}},...a&&e&&{...u,"&:hover":{...u}},...t&&{"&.Mui-disabled":{opacity:.64}}}}),u2=$t(P.ListItemIcon)({display:"flex",alignItems:"center",justifyContent:"center",width:lo.NAV_ITEM,height:lo.NAV_ITEM}),PK=$t("span",{shouldForwardProp:e=>e!=="active"})(({active:e,theme:t})=>({width:4,height:4,borderRadius:"50%",backgroundColor:t.palette.text.disabled,transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter}),...e&&{transform:"scale(2)",backgroundColor:t.palette.primary.main}})),AK=$t(P.ListSubheader)(({theme:e})=>({...e.typography.overline,fontSize:11,paddingTop:e.spacing(3),paddingBottom:e.spacing(1),color:e.palette.text.secondary})),DK=({item:e,depth:t,open:r,active:n,isExternalLink:i,...o})=>{const{title:a,path:s,icon:u,info:l,children:c,disabled:f,caption:d}=e,h=t!==1,m=y.jsxs(MK,{depth:t,active:n,disabled:f,caption:!!d,...o,children:[u&&y.jsx(u2,{children:u}),h&&y.jsx(u2,{children:y.jsx(PK,{active:n&&h})}),y.jsx(P.ListItemText,{primary:a,secondary:d&&y.jsx(P.Tooltip,{title:d,placement:"top-start",children:y.jsx("span",{children:d})}),primaryTypographyProps:{noWrap:!0,component:"span",variant:n?"subtitle2":"body2"},secondaryTypographyProps:{noWrap:!0,variant:"caption"}}),l&&y.jsx(P.Box,{component:"span",sx:{lineHeight:0},children:l}),!!c&&y.jsx(Rt,{width:16,icon:r?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{ml:1,flexShrink:0}})]});return(()=>i?y.jsx(P.Link,{href:s,target:"_blank",rel:"noopener",underline:"none",children:m}):c?m:y.jsx(P.Link,{component:Fr.Link,to:s,underline:"none",children:m}))()},$K=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(c2,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),c2=({data:e,depth:t,hasChild:r})=>{const{pathname:n}=Fr.useLocation(),{active:i,isExternalLink:o}=Ll(e.path),[a,s]=g.useState(i);g.useEffect(()=>{i||l()},[n]);const u=()=>{s(!a)},l=()=>{s(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(DK,{item:e,depth:t,open:a,active:i,isExternalLink:o,onClick:u}),r&&y.jsx(P.Collapse,{in:a,unmountOnExit:!0,children:y.jsx($K,{data:e.children,depth:t})})]})},IK=({data:e,sx:t,...r})=>y.jsx(P.Stack,{sx:t,...r,children:e.map(n=>{const i=n.subheader||n.items[0].title;return y.jsxs(P.List,{disablePadding:!0,sx:{px:2},children:[n.subheader&&y.jsx(AK,{disableSticky:!0,children:n.subheader}),n.items.map(o=>y.jsx(c2,{data:o,depth:1,hasChild:!!o.children},o.title+o.path))]},i)})}),FK=$t(P.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="open"})(({active:e,disabled:t,open:r,depth:n,theme:i})=>{const o=i.palette.mode==="light",a=n!==1,s={color:i.palette.primary.main,backgroundColor:W(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},u={color:i.palette.text.primary,backgroundColor:"transparent"},l={color:i.palette.text.primary,backgroundColor:i.palette.action.hover};return{flexShrink:0,display:"inline-flex",textTransform:"capitalize",padding:i.spacing(0,.75),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,height:Rl.H_DASHBOARD_ITEM_HORIZONTAL,"&:hover":l,...a&&{width:"100%",margin:0,paddingRight:0,paddingLeft:i.spacing(1)},...e&&{...s,"&:hover":{...s}},...a&&e&&{...u,"&:hover":{...u}},...r&&!e&&l,...t&&{"&.Mui-disabled":{opacity:.64}}}}),jK=$t(P.ListItemIcon)({marginRight:8,flexShrink:0,width:lo.NAV_ITEM_HORIZONTAL,height:lo.NAV_ITEM_HORIZONTAL}),LK=$t(P.Popover)(({theme:e})=>({pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:e.spacing(1),marginTop:e.spacing(.5),boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5,...Fl({color:e.palette.background.default})}})),f2=g.forwardRef(({item:e,depth:t,open:r,active:n,isExternalLink:i,...o},a)=>{const{title:s,path:u,icon:l,info:c,children:f,disabled:d,caption:h}=e,m=t!==1,p=y.jsxs(FK,{ref:a,open:r,depth:t,active:n,disabled:d,...o,children:[l&&y.jsx(jK,{children:l}),y.jsx(P.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,component:"span",variant:n?"subtitle2":"body2"}}),c&&y.jsx(P.Box,{component:"span",sx:{ml:1,lineHeight:0},children:c}),h&&y.jsx(P.Tooltip,{title:h,arrow:!0,children:y.jsx(P.Box,{component:"span",sx:{ml:.5,lineHeight:0},children:y.jsx(Rt,{icon:"eva:info-outline",width:16})})}),!!f&&y.jsx(Rt,{icon:m?"eva:chevron-right-fill":"eva:chevron-down-fill",width:16,sx:{ml:.5,flexShrink:0}})]});return(()=>i?y.jsx(P.Link,{href:u,target:"_blank",rel:"noopener",underline:"none",children:p}):y.jsx(P.Link,{component:Fr.Link,to:u,underline:"none",children:p}))()});f2.displayName="NavItem";const RK=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(d2,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),d2=({data:e,depth:t,hasChild:r})=>{const n=g.useRef(null),{pathname:i}=Fr.useLocation(),{active:o,isExternalLink:a}=Ll(e.path),[s,u]=g.useState(!1);g.useEffect(()=>{s&&c()},[i]),g.useEffect(()=>{const f=Array.from(document.querySelectorAll(".MuiAppBar-root")),d=()=>{document.body.style.overflow="",document.body.style.padding="",f.forEach(h=>{h.style.padding=""})};d()},[s]);const l=()=>{u(!0)},c=()=>{u(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(f2,{ref:n,item:e,depth:t,open:s,active:o,isExternalLink:a,onMouseEnter:l,onMouseLeave:c}),r&&y.jsx(LK,{open:s,anchorEl:n.current,anchorOrigin:t===1?{vertical:"bottom",horizontal:"left"}:{vertical:"center",horizontal:"right"},transformOrigin:t===1?{vertical:"top",horizontal:"left"}:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:l,onMouseLeave:c},children:y.jsx(RK,{data:e.children,depth:t})})]})},BK=({items:e})=>y.jsx(y.Fragment,{children:e.map(t=>y.jsx(d2,{data:t,depth:1,hasChild:!!t.children},t.title+t.path))}),NK=({data:e,sx:t,...r})=>y.jsx(P.Stack,{direction:"row",spacing:1,sx:{mx:"auto",...e2,...t},...r,children:e.map(n=>y.jsx(BK,{items:n.items},n.subheader))}),zK=g.memo(NK),VK=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return y.jsx(vl,{alt:"avatar",src:t,sx:{zIndex:8,overflow:"hidden",borderRadius:"50%",position:"absolute",width:"calc(100% - 16px)",height:"calc(100% - 16px)"}})},WK=$t("div")(({theme:e})=>({width:144,height:144,margin:"auto",display:"flex",cursor:"pointer",overflow:"hidden",borderRadius:"50%",alignItems:"center",position:"relative",justifyContent:"center",border:`1px dashed ${W(e.palette.grey[500],.32)}`})),HK=$t("div")(({theme:e})=>({zIndex:7,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",flexDirection:"column",justifyContent:"center",width:"calc(100% - 16px)",height:"calc(100% - 16px)",color:e.palette.text.disabled,backgroundColor:e.palette.background.neutral,transition:e.transitions.create("opacity",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter})})),UK=({error:e,file:t,disabled:r,helperText:n,sx:i,...o})=>{const{getRootProps:a,getInputProps:s,isDragActive:u,isDragReject:l,fileRejections:c}=Il({multiple:!1,disabled:r,...o}),f=!!t,d=l||!!e;return y.jsxs(y.Fragment,{children:[y.jsxs(WK,{...a(),sx:{...u&&{opacity:.72},...d&&{borderColor:"error.light",...f&&{bgcolor:"error.lighter"}},...r&&{opacity:.48,pointerEvents:"none"},...f&&{"&:hover":{"& .placeholder":{opacity:1}}},...i},children:[y.jsx("input",{...s()}),f&&y.jsx(VK,{file:t}),y.jsxs(HK,{className:"placeholder",sx:{"&:hover":{opacity:.72},...f&&{zIndex:9,opacity:0,color:"common.white",bgcolor:h=>W(h.palette.grey[900],.64)},...d&&{color:"error.main",bgcolor:"error.lighter"}},children:[y.jsx(Rt,{icon:"ic:round-add-a-photo",width:24,sx:{mb:1}}),y.jsx(P.Typography,{variant:"caption",children:t?"Update photo":"Upload photo"})]})]}),n&&n,y.jsx(i2,{fileRejections:c})]})},YK=$t("div")(({theme:e})=>({width:64,height:64,fontSize:24,display:"flex",flexShrink:0,cursor:"pointer",alignItems:"center",justifyContent:"center",margin:e.spacing(.5),color:e.palette.text.disabled,borderRadius:e.shape.borderRadius,border:`dashed 1px ${e.palette.divider}`,backgroundColor:W(e.palette.grey[500],.08),"&:hover":{opacity:.72}})),GK=({placeholderAlt:e,error:t,disabled:r,sx:n,...i})=>{const{getRootProps:o,getInputProps:a,isDragActive:s,isDragReject:u}=Il({disabled:r,...i}),l=u||t;return y.jsxs(YK,{...o(),sx:{...s&&{opacity:.72},...l&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...r&&{opacity:.48,pointerEvents:"none"},...n},children:[y.jsx("input",{...a()}),e||y.jsx(Rt,{icon:"eva:cloud-upload-fill",width:28})]})},qK=()=>{const[e,t]=g.useState(!1),[r,n]=g.useState(document.activeElement);return g.useEffect(()=>{const i=a=>n(a.target),o=()=>n(null);return window.addEventListener("focus",i,!0),window.addEventListener("blur",o,!0),t(!0),()=>{window.removeEventListener("focus",i),window.removeEventListener("blur",o)}},[]),{activeElement:r,listenersReady:e}};function KK(){const[e,t]=g.useState(null);return{copiedText:e,copy:async n=>{if(!(navigator!=null&&navigator.clipboard))return!1;try{return await navigator.clipboard.writeText(n),t(n),!0}catch{return t(null),!1}}}}var XK=jc;function ZK(e,t){return XK(e,t)}var QK=ZK;const JK=xn(QK),eX=(e,t)=>JK(e,t),tX=e=>{const t=g.useRef();return eX(e,t.current)||(t.current=e),t.current},rX=(e,t)=>{g.useEffect(e,t.map(tX))},nX=()=>{const e=g.useRef(!0);return e.current?(e.current=!1,!0):e.current};function iX(e){const[t,r]=g.useState(e||"");return{currentTab:t,onChangeTab:(n,i)=>{r(i)},setCurrentTab:r}}const oX=Object.freeze(Object.defineProperty({__proto__:null,downloadFile:(e,t,r)=>{const n=`data:application/octet-stream;base64,${r}`,i=document.createElement("a"),o=`${e.replace(t,"")}.${t}`;i.href=n,i.download=o,i.click()}},Symbol.toStringTag,{value:"Module"}));function aX(e){return id({},e)}var h2=1440,sX=2520,Ld=43200,lX=86400;function uX(e,t,r){var n,i;U(2,arguments);var o=xr(),a=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:o.locale)!==null&&n!==void 0?n:ul;if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=Yi(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var u=id(aX(r),{addSuffix:!!(r!=null&&r.addSuffix),comparison:s}),l,c;s>0?(l=Y(t),c=Y(e)):(l=Y(e),c=Y(t));var f=iy(c,l),d=(Gi(c)-Gi(l))/1e3,h=Math.round((f-d)/60),m;if(h<2)return r!=null&&r.includeSeconds?f<5?a.formatDistance("lessThanXSeconds",5,u):f<10?a.formatDistance("lessThanXSeconds",10,u):f<20?a.formatDistance("lessThanXSeconds",20,u):f<40?a.formatDistance("halfAMinute",0,u):f<60?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",1,u):h===0?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",h,u);if(h<45)return a.formatDistance("xMinutes",h,u);if(h<90)return a.formatDistance("aboutXHours",1,u);if(h<h2){var p=Math.round(h/60);return a.formatDistance("aboutXHours",p,u)}else{if(h<sX)return a.formatDistance("xDays",1,u);if(h<Ld){var v=Math.round(h/h2);return a.formatDistance("xDays",v,u)}else if(h<lX)return m=Math.round(h/Ld),a.formatDistance("aboutXMonths",m,u)}if(m=Zf(c,l),m<12){var x=Math.round(h/Ld);return a.formatDistance("xMonths",x,u)}else{var b=m%12,C=Math.floor(m/12);return b<3?a.formatDistance("aboutXYears",C,u):b<9?a.formatDistance("overXYears",C,u):a.formatDistance("almostXYears",C+1,u)}}function cX(e,t){return U(1,arguments),uX(e,Date.now(),t)}function fX(e){U(1,arguments);var t=Y(e),r=t.getTime();return r}function dX(e,t){const r=t||"dd/MM/yyyy";return e?rd(new Date(e),r):null}function hX(e,t){const r=t||"dd/MM/yyyy HH:mm:ss";return e?rd(new Date(e),r):null}function pX(e){return e?fX(new Date(e)):null}function gX(e){return e?cX(new Date(e),{addSuffix:!0}):null}const mX=Object.freeze(Object.defineProperty({__proto__:null,fDate:dX,fDateTime:hX,fTimestamp:pX,fToNow:gX},Symbol.toStringTag,{value:"Module"}));function vX(e){const t=e.match(/\/([^/]+)/);return t?t[0]:e}const yX=Object.freeze(Object.defineProperty({__proto__:null,getRoot:vX},Symbol.toStringTag,{value:"Module"})),bX=e=>function(r){return y.jsx(g.Suspense,{fallback:y.jsx(P.CircularProgress,{}),children:y.jsx(e,{...r})})},xX=Object.freeze(Object.defineProperty({__proto__:null,default:z3},Symbol.toStringTag,{value:"Module"}));N.Autocomplete=gc,N.AutocompleteField=NG,N.ColorPickerField=zG,N.ColorPickerInput=J1,N.Common=MY,N.CustomAvatar=Hy,N.CustomAvatarGroup=Uy,N.DataGrid=DY,N.DatePicker=VG,N.DateRangePicker=WG,N.DateTimePicker=HG,N.Delayed=$Y,N.DialogAnimate=V3,N.FabButtonAnimate=p0,N.Field=Pb,N.Form=UG,N.IconButtonAnimate=g0,N.Iconify=Rt,N.Image=vl,N.ImageCropModal=cb,N.Label=fb,N.MaskedInput=_d,N.MaskedInputField=YG,N.MenuPopover=MG,N.MotionContainer=LS,N.MotionLazyContainer=BS,N.MotionViewport=jS,N.NavSectionHorizontal=zK,N.NavSectionMini=kK,N.NavSectionVertical=IK,N.PasswordField=GG,N.Portal=PG,N.Scrollbar=BG,N.Switch=qG,N.TRANSITION=Bd,N.TextAnimate=W3,N.ThemeProvider=Wy,N.TimePicker=KG,N.Upload=o2,N.UploadAvatar=UK,N.UploadBox=GK,N.UploadWithCrop=a2,N.UploadWithCropField=wK,N.cssStyles=uK,N.file=oX,N.formatNumber=gK,N.formatTime=mX,N.loadable=bX,N.routes=yX,N.useActiveElement=qK,N.useActiveLink=Ll,N.useCopyToClipboard=KK,N.useDeepCompareEffect=rX,N.useIsMounting=nX,N.useResponsive=yg,N.useTabs=iX,N.useToggle=cc,N.varBgColor=O2,N.varBgKenburns=k2,N.varBgPan=M2,N.varBounce=E2,N.varContainer=Ea,N.varFade=fo,N.varFlip=w2,N.varHover=_2,N.varPath=y2,N.varRotate=T2,N.varScale=S2,N.varSlide=C2,N.varTranEnter=Pe,N.varTranExit=$e,N.varTranHover=b2,N.varZoom=x2,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|
|
252
|
+
*/(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(To,function(){var t,r,n="2.0.6",i={},o={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function u(l,c){this._input=l,this._value=c}return t=function(l){var c,f,d,h;if(t.isNumeral(l))c=l.value();else if(l===0||typeof l>"u")c=0;else if(l===null||r.isNaN(l))c=null;else if(typeof l=="string")if(s.zeroFormat&&l===s.zeroFormat)c=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)c=null;else{for(f in i)if(h=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,h&&l.match(h)){d=i[f].unformat;break}d=d||t._.stringToNumber,c=d(l)}else c=Number(l)||null;return new u(l,c)},t.version=n,t.isNumeral=function(l){return l instanceof u},t._=r={numberToFormat:function(l,c,f){var d=o[t.options.currentLocale],h=!1,m=!1,p=0,v="",x=1e12,b=1e9,C=1e6,E=1e3,w="",k=!1,T,O,A,L,Z,pe,se;if(l=l||0,O=Math.abs(l),t._.includes(c,"(")?(h=!0,c=c.replace(/[\(|\)]/g,"")):(t._.includes(c,"+")||t._.includes(c,"-"))&&(Z=t._.includes(c,"+")?c.indexOf("+"):l<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),t._.includes(c,"a")&&(T=c.match(/a(k|m|b|t)?/),T=T?T[1]:!1,t._.includes(c," a")&&(v=" "),c=c.replace(new RegExp(v+"a[kmbt]?"),""),O>=x&&!T||T==="t"?(v+=d.abbreviations.trillion,l=l/x):O<x&&O>=b&&!T||T==="b"?(v+=d.abbreviations.billion,l=l/b):O<b&&O>=C&&!T||T==="m"?(v+=d.abbreviations.million,l=l/C):(O<C&&O>=E&&!T||T==="k")&&(v+=d.abbreviations.thousand,l=l/E)),t._.includes(c,"[.]")&&(m=!0,c=c.replace("[.]",".")),A=l.toString().split(".")[0],L=c.split(".")[1],pe=c.indexOf(","),p=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,L?(t._.includes(L,"[")?(L=L.replace("]",""),L=L.split("["),w=t._.toFixed(l,L[0].length+L[1].length,f,L[1].length)):w=t._.toFixed(l,L.length,f),A=w.split(".")[0],t._.includes(w,".")?w=d.delimiters.decimal+w.split(".")[1]:w="",m&&Number(w.slice(1))===0&&(w="")):A=t._.toFixed(l,0,f),v&&!T&&Number(A)>=1e3&&v!==d.abbreviations.trillion)switch(A=String(Number(A)/1e3),v){case d.abbreviations.thousand:v=d.abbreviations.million;break;case d.abbreviations.million:v=d.abbreviations.billion;break;case d.abbreviations.billion:v=d.abbreviations.trillion;break}if(t._.includes(A,"-")&&(A=A.slice(1),k=!0),A.length<p)for(var q=p-A.length;q>0;q--)A="0"+A;return pe>-1&&(A=A.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),c.indexOf(".")===0&&(A=""),se=A+w+(v||""),h?se=(h&&k?"(":"")+se+(h&&k?")":""):Z>=0?se=Z===0?(k?"-":"+")+se:se+(k?"-":"+"):k&&(se="-"+se),se},stringToNumber:function(l){var c=o[s.currentLocale],f=l,d={thousand:3,million:6,billion:9,trillion:12},h,m,p;if(s.zeroFormat&&l===s.zeroFormat)m=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)m=null;else{m=1,c.delimiters.decimal!=="."&&(l=l.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(h in d)if(p=new RegExp("[^a-zA-Z]"+c.abbreviations[h]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(p)){m*=Math.pow(10,d[h]);break}m*=(l.split("-").length+Math.min(l.split("(").length-1,l.split(")").length-1))%2?1:-1,l=l.replace(/[^0-9\.]+/g,""),m*=Number(l)}return m},isNaN:function(l){return typeof l=="number"&&isNaN(l)},includes:function(l,c){return l.indexOf(c)!==-1},insert:function(l,c,f){return l.slice(0,f)+c+l.slice(f)},reduce:function(l,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var f=Object(l),d=f.length>>>0,h=0,m;if(arguments.length===3)m=arguments[2];else{for(;h<d&&!(h in f);)h++;if(h>=d)throw new TypeError("Reduce of empty array with no initial value");m=f[h++]}for(;h<d;h++)h in f&&(m=c(m,f[h],h,f));return m},multiplier:function(l){var c=l.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var l=Array.prototype.slice.call(arguments);return l.reduce(function(c,f){var d=r.multiplier(f);return c>d?c:d},1)},toFixed:function(l,c,f,d){var h=l.toString().split("."),m=c-(d||0),p,v,x,b;return h.length===2?p=Math.min(Math.max(h[1].length,m),c):p=m,x=Math.pow(10,p),b=(f(l+"e+"+p)/x).toFixed(p),d>c-p&&(v=new RegExp("\\.?0{1,"+(d-(c-p))+"}$"),b=b.replace(v,"")),b}},t.options=s,t.formats=i,t.locales=o,t.locale=function(l){return l&&(s.currentLocale=l.toLowerCase()),s.currentLocale},t.localeData=function(l){if(!l)return o[s.currentLocale];if(l=l.toLowerCase(),!o[l])throw new Error("Unknown locale : "+l);return o[l]},t.reset=function(){for(var l in a)s[l]=a[l]},t.zeroFormat=function(l){s.zeroFormat=typeof l=="string"?l:null},t.nullFormat=function(l){s.nullFormat=typeof l=="string"?l:null},t.defaultFormat=function(l){s.defaultFormat=typeof l=="string"?l:"0.0"},t.register=function(l,c,f){if(c=c.toLowerCase(),this[l+"s"][c])throw new TypeError(c+" "+l+" already registered.");return this[l+"s"][c]=f,f},t.validate=function(l,c){var f,d,h,m,p,v,x,b;if(typeof l!="string"&&(l+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",l)),l=l.trim(),l.match(/^\d+$/))return!0;if(l==="")return!1;try{x=t.localeData(c)}catch{x=t.localeData(t.locale())}return h=x.currency.symbol,p=x.abbreviations,f=x.delimiters.decimal,x.delimiters.thousands==="."?d="\\.":d=x.delimiters.thousands,b=l.match(/^[^\d]+/),b!==null&&(l=l.substr(1),b[0]!==h)||(b=l.match(/[^\d]+$/),b!==null&&(l=l.slice(0,-1),b[0]!==p.thousand&&b[0]!==p.million&&b[0]!==p.billion&&b[0]!==p.trillion))?!1:(v=new RegExp(d+"{2}"),l.match(/[^\d.,]/g)?!1:(m=l.split(f),m.length>2?!1:m.length<2?!!m[0].match(/^\d+.*\d$/)&&!m[0].match(v):m[0].length===1?!!m[0].match(/^\d+$/)&&!m[0].match(v)&&!!m[1].match(/^\d+$/):!!m[0].match(/^\d+.*\d$/)&&!m[0].match(v)&&!!m[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(l,c){var f=this._value,d=l||s.defaultFormat,h,m,p;if(c=c||Math.round,f===0&&s.zeroFormat!==null)m=s.zeroFormat;else if(f===null&&s.nullFormat!==null)m=s.nullFormat;else{for(h in i)if(d.match(i[h].regexps.format)){p=i[h].format;break}p=p||t._.numberToFormat,m=p(f,d,c)}return m},value:function(){return this._value},input:function(){return this._input},set:function(l){return this._value=Number(l),this},add:function(l){var c=r.correctionFactor.call(null,this._value,l);function f(d,h,m,p){return d+Math.round(c*h)}return this._value=r.reduce([this._value,l],f,0)/c,this},subtract:function(l){var c=r.correctionFactor.call(null,this._value,l);function f(d,h,m,p){return d-Math.round(c*h)}return this._value=r.reduce([l],f,Math.round(this._value*c))/c,this},multiply:function(l){function c(f,d,h,m){var p=r.correctionFactor(f,d);return Math.round(f*p)*Math.round(d*p)/Math.round(p*p)}return this._value=r.reduce([this._value,l],c,1),this},divide:function(l){function c(f,d,h,m){var p=r.correctionFactor(f,d);return Math.round(f*p)/Math.round(d*p)}return this._value=r.reduce([this._value,l],c),this},difference:function(l){return Math.abs(t(this._value).subtract(l).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(l){var c=l%10;return~~(l%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(l,c,f){var d=t._.includes(c," BPS")?" ":"",h;return l=l*1e4,c=c.replace(/\s?BPS/,""),h=t._.numberToFormat(l,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"BPS"),h=h.join("")):h=h+d+"BPS",h},unformat:function(l){return+(t._.stringToNumber(l)*1e-4).toFixed(15)}})}(),function(){var l={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=l.suffixes.concat(c.suffixes.filter(function(h){return l.suffixes.indexOf(h)<0})),d=f.join("|");d="("+d.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(d)},format:function(h,m,p){var v,x=t._.includes(m,"ib")?c:l,b=t._.includes(m," b")||t._.includes(m," ib")?" ":"",C,E,w;for(m=m.replace(/\s?i?b/,""),C=0;C<=x.suffixes.length;C++)if(E=Math.pow(x.base,C),w=Math.pow(x.base,C+1),h===null||h===0||h>=E&&h<w){b+=x.suffixes[C],E>0&&(h=h/E);break}return v=t._.numberToFormat(h,m,p),v+b},unformat:function(h){var m=t._.stringToNumber(h),p,v;if(m){for(p=l.suffixes.length-1;p>=0;p--){if(t._.includes(h,l.suffixes[p])){v=Math.pow(l.base,p);break}if(t._.includes(h,c.suffixes[p])){v=Math.pow(c.base,p);break}}m*=v||1}return m}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(l,c,f){var d=t.locales[t.options.currentLocale],h={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},m,p,v;for(c=c.replace(/\s?\$\s?/,""),m=t._.numberToFormat(l,c,f),l>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):l<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),v=0;v<h.before.length;v++)switch(p=h.before[v],p){case"$":m=t._.insert(m,d.currency.symbol,v);break;case" ":m=t._.insert(m," ",v+d.currency.symbol.length-1);break}for(v=h.after.length-1;v>=0;v--)switch(p=h.after[v],p){case"$":m=v===h.after.length-1?m+d.currency.symbol:t._.insert(m,d.currency.symbol,-(h.after.length-(1+v)));break;case" ":m=v===h.after.length-1?m+" ":t._.insert(m," ",-(h.after.length-(1+v)+d.currency.symbol.length-1));break}return m}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(l,c,f){var d,h=typeof l=="number"&&!t._.isNaN(l)?l.toExponential():"0e+0",m=h.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),d=t._.numberToFormat(Number(m[0]),c,f),d+"e"+m[1]},unformat:function(l){var c=t._.includes(l,"e+")?l.split("e+"):l.split("e-"),f=Number(c[0]),d=Number(c[1]);d=t._.includes(l,"e-")?d*=-1:d;function h(m,p,v,x){var b=t._.correctionFactor(m,p),C=m*b*(p*b)/(b*b);return C}return t._.reduce([f,Math.pow(10,d)],h,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(l,c,f){var d=t.locales[t.options.currentLocale],h,m=t._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),m+=d.ordinal(l),h=t._.numberToFormat(l,c,f),h+m}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(l,c,f){var d=t._.includes(c," %")?" ":"",h;return t.options.scalePercentBy100&&(l=l*100),c=c.replace(/\s?\%/,""),h=t._.numberToFormat(l,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"%"),h=h.join("")):h=h+d+"%",h},unformat:function(l){var c=t._.stringToNumber(l);return t.options.scalePercentBy100?c*.01:c}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(l,c,f){var d=Math.floor(l/60/60),h=Math.floor((l-d*60*60)/60),m=Math.round(l-d*60*60-h*60);return d+":"+(h<10?"0"+h:h)+":"+(m<10?"0"+m:m)},unformat:function(l){var c=l.split(":"),f=0;return c.length===3?(f=f+Number(c[0])*60*60,f=f+Number(c[1])*60,f=f+Number(c[2])):c.length===2&&(f=f+Number(c[0])*60,f=f+Number(c[1])),Number(f)}})}(),t})})(gx);var tZ=gx.exports;const Na=Sn(tZ);function rZ(e){return Na(e).format()}function nZ(e){const t=e?Na(e).format("$0,0.00"):"";return cu(t,".00")}function iZ(e){const t=e?Na(Number(e)/100).format("0.0%"):"";return cu(t,".0")}function oZ(e){const t=e?Na(e).format("0.00a"):"";return cu(t,".00")}function Ch(e){const t=e?Na(e).format("0.0 b"):"";return cu(t,".0")}function cu(e,t=".00"){return e.includes(t)?e.replace(t,""):e}const aZ=Object.freeze(Object.defineProperty({__proto__:null,fCurrency:nZ,fData:Ch,fNumber:rZ,fPercent:iZ,fShortenNumber:oZ},Symbol.toStringTag,{value:"Module"})),mx=({fileRejections:e})=>e.length?y.jsx(P.Paper,{variant:"outlined",sx:{py:1,px:2,mt:3,bgcolor:t=>W(t.palette.error.main,.08),borderColor:t=>W(t.palette.error.main,.24)},children:e.map(({file:t,errors:r})=>{const{path:n,size:i}=wh(t);return y.jsxs(P.Box,{sx:{my:1},children:[y.jsxs(P.Typography,{variant:"subtitle2",noWrap:!0,children:[n," - ",i?Ch(i):""]}),r.map(o=>y.jsxs(P.Box,{component:"span",sx:{typography:"caption"},children:["- ",o.message]},o.code))]},n)})}):null,sZ=({thumbnail:e,files:t,onRemove:r,sx:n})=>t!=null&&t.length?y.jsx(Q0,{initial:!1,children:t.map(i=>{const{key:o,name:a="",size:s=0}=wh(i),u=typeof i=="string";return e?y.jsxs(P.Stack,{component:mr.div,...Eo().inUp,alignItems:"center",display:"inline-flex",justifyContent:"center",sx:{m:.5,width:80,height:80,borderRadius:1.25,overflow:"hidden",position:"relative",border:l=>`solid 1px ${l.palette.divider}`,...n},children:[y.jsx(px,{tooltip:!0,imageView:!0,file:i,sx:{position:"absolute"},imgSx:{position:"absolute"}}),r&&y.jsx(P.IconButton,{size:"small",onClick:()=>r(i),sx:{top:4,right:4,p:"1px",position:"absolute",color:l=>W(l.palette.common.white,.72),bgcolor:l=>W(l.palette.grey[900],.48),"&:hover":{bgcolor:l=>W(l.palette.grey[900],.72)}},children:y.jsx(Ft,{icon:"eva:close-fill",width:16})})]},o):y.jsxs(P.Stack,{component:mr.div,...Eo().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:l=>`solid 1px ${l.palette.divider}`,...n},children:[y.jsx(px,{file:i}),y.jsxs(P.Stack,{flexGrow:1,sx:{minWidth:0},children:[y.jsx(P.Typography,{variant:"subtitle2",noWrap:!0,children:u?i:a}),y.jsx(P.Typography,{variant:"caption",sx:{color:"text.secondary"},children:u?"":Ch(s)})]}),r&&y.jsx(P.IconButton,{edge:"end",size:"small",onClick:()=>r(i),children:y.jsx(Ft,{icon:"eva:close-fill"})})]},o)})}):null,lZ=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return y.jsx(P.Stack,{position:"absolute",width:1,height:160,alignItems:"center",justifyContent:"center",top:0,right:0,bottom:0,left:0,padding:2,margin:"auto",children:y.jsx(Ul,{alt:"file preview",src:t,sx:{borderRadius:1,width:"auto",maxWidth:"100%",maxHeight:"100%",height:"auto"}})})},uZ=It("div")(({theme:e})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:e.spacing(5),borderRadius:e.shape.borderRadius,transition:e.transitions.create("padding"),backgroundColor:e.palette.background.neutral,border:`1px dashed ${W(e.palette.grey[500],.32)}`,"&:hover":{opacity:.72}})),cZ=({header:e,description:t,sx:r,...n})=>y.jsxs(P.Stack,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...r},...n,children:[y.jsx(LX,{sx:{width:220}}),y.jsxs("div",{children:[e||y.jsx(P.Typography,{gutterBottom:!0,variant:"h5",children:"Soltar ou selecionar arquivos"}),t||y.jsxs(P.Typography,{variant:"body2",sx:{color:"text.secondary"},children:["Solte os arquivos aqui ou clique",y.jsx(P.Typography,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua máquina"]})]})]}),vx=({disabled:e,multiple:t=!1,error:r,helperText:n,file:i,onDelete:o,files:a,thumbnail:s,onUpload:u,onRemove:l,onRemoveAll:c,sx:f,dropZoneProps:d,placeholderProps:h,placeholderAlt:m,...p})=>{const{getRootProps:v,getInputProps:x,isDragActive:b,isDragReject:C,fileRejections:E}=lu({multiple:t,disabled:e,...p}),w=!!i&&!t,k=a&&t&&a.length>0,T=C||!!r;return y.jsxs(P.Box,{sx:{width:1,position:"relative",...f},children:[y.jsxs(uZ,{...v(),sx:{...b&&{opacity:.72},...T&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...e&&{opacity:.48,pointerEvents:"none"},...d},children:[y.jsx("input",{...x()}),m?y.jsx(P.Stack,{sx:{...w&&{opacity:0}},children:m}):y.jsx(cZ,{sx:{...w&&{opacity:0}},header:h==null?void 0:h.title,description:h==null?void 0:h.description}),w&&y.jsx(lZ,{file:i})]}),n&&n,y.jsx(mx,{fileRejections:E}),w&&o&&y.jsx(P.IconButton,{size:"small",onClick:o,sx:{top:16,right:16,zIndex:9,position:"absolute",color:O=>W(O.palette.common.white,.8),bgcolor:O=>W(O.palette.grey[900],.72),"&:hover":{bgcolor:O=>W(O.palette.grey[900],.48)}},children:y.jsx(Ft,{icon:"eva:close-fill",width:18})}),k&&y.jsxs(y.Fragment,{children:[y.jsx(P.Box,{sx:{my:3},children:y.jsx(sZ,{files:a,thumbnail:s,onRemove:l})}),y.jsxs(P.Stack,{direction:"row",justifyContent:"flex-end",spacing:1.5,children:[c&&y.jsx(P.Button,{color:"inherit",variant:"outlined",size:"small",onClick:c,children:"Remove all"}),u&&y.jsx(P.Button,{size:"small",variant:"contained",onClick:u,children:"Upload files"})]})]})]})},yx=({onFileCropped:e,aspect:t,size:{width:r,height:n},label:i,image:o="",...a})=>{const[s,u]=hf(),[l,c]=g.useState(o),f=d=>{d||c(""),e(d)};return y.jsxs(y.Fragment,{children:[y.jsxs(P.Stack,{position:"relative",width:1,children:[y.jsx(vx,{...a,onDrop:d=>{if(d.length>0){u(),e(void 0);const h=new FileReader;h.addEventListener("load",()=>{var p;const m=((p=h.result)==null?void 0:p.toString())||"";c(m)}),h.readAsDataURL(d[0])}}}),l&&y.jsx(P.Stack,{sx:{position:"absolute",top:12,right:12,zIndex:999},bgcolor:"grey.0",borderRadius:"50%",children:y.jsx(P.IconButton,{color:"primary",onClick:u,children:y.jsx(Ft,{icon:"ic:round-crop"})})})]}),y.jsx(C2,{open:s,onClose:u,title:i,image:{width:r,height:n,aspect:t,imgSrc:l},onFileCropped:f})]})};function fZ(e,t){const{watch:r,setValue:n}=bt.useFormContext(),[i,o]=g.useState(t),a=r(e)||[];return{uploadFile:async d=>{if(!d){n(e,void 0),o(void 0);return}n(e,d),o(Object.assign(d,{preview:URL.createObjectURL(d)}))},uploadFiles:async d=>{n(e,[...a,...d.map(h=>Object.assign(h,{preview:URL.createObjectURL(h)}))])},handleDeleteFile:()=>{n(e,void 0),o(void 0)},handleRemoveAll:()=>{n(e,void 0)},handleRemove:d=>{const h=a.filter(m=>m!==d);n(e,h)},file:i}}const dZ=({name:e,rules:t,helperText:r,aspect:n,label:i,size:o,image:a,...s})=>{const{control:u}=bt.useFormContext(),{uploadFile:l,file:c}=fZ(e);return y.jsx(bt.Controller,{name:e,control:u,rules:t,render:({fieldState:{error:f}})=>y.jsx(yx,{accept:{"image/*":[]},file:c,onFileCropped:l,error:!!f,disableMultiple:!0,helperText:(!!f||r)&&y.jsx(P.FormHelperText,{error:!!f,sx:{px:2},children:f?f==null?void 0:f.message:r}),aspect:n,label:i,size:o,image:a,...s})})},fu=(e,t=!0)=>{const{pathname:r}=jr.useLocation(),n=e?!!jr.matchPath({path:e,end:!0},r):!1,i=e?!!jr.matchPath({path:e,end:!1},r):!1;return{active:t?i:n,isExternalLink:e.includes("http")}},du={W_BASE:260,W_DASHBOARD:280,W_DASHBOARD_MINI:88,H_DASHBOARD_ITEM:48,H_DASHBOARD_ITEM_SUB:36,H_DASHBOARD_ITEM_HORIZONTAL:32},wo={NAV_ITEM:24,NAV_ITEM_HORIZONTAL:22,NAV_ITEM_MINI:22},hZ=It(P.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="open"})(({active:e,disabled:t,open:r,depth:n,theme:i})=>{const o=i.palette.mode==="light",a=n!==1,s={color:i.palette.primary.main,backgroundColor:W(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},u={color:i.palette.text.primary,backgroundColor:"transparent"},l={color:i.palette.text.primary,backgroundColor:i.palette.action.hover};return{flexDirection:"column",textTransform:"capitalize",padding:i.spacing(1,0,.5,0),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,"&:hover":l,...a&&{flexDirection:"row",padding:i.spacing(1)},...e&&{...s,"&:hover":{...s}},...a&&e&&{...u,"&:hover":{...u}},...r&&!e&&l,...t&&{"&.Mui-disabled":{opacity:.64}}}}),pZ=It(P.ListItemIcon)({marginRight:0,marginBottom:4,width:wo.NAV_ITEM_MINI,height:wo.NAV_ITEM_MINI}),gZ=It(P.Popover)(({theme:e})=>({pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:e.spacing(1),marginTop:e.spacing(.5),boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5,...uu({color:e.palette.background.default})}})),bx=g.forwardRef(({item:e,depth:t,open:r,active:n,isExternalLink:i,...o},a)=>{const{title:s,path:u,icon:l,children:c,disabled:f,caption:d}=e,h=t!==1,m=y.jsxs(hZ,{ref:a,open:r,depth:t,active:n,disabled:f,...o,children:[l&&y.jsx(pZ,{children:l}),y.jsx(P.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,sx:{width:72,fontSize:10,lineHeight:"16px",textAlign:"center",...n&&{fontWeight:"fontWeightMedium"},...h&&{fontSize:14,width:"auto",textAlign:"left"}}}}),d&&y.jsx(P.Tooltip,{title:d,arrow:!0,placement:"right",children:y.jsx(Ft,{icon:"eva:info-outline",width:16,sx:{top:11,left:6,position:"absolute"}})}),!!c&&y.jsx(Ft,{width:16,icon:"eva:chevron-right-fill",sx:{top:11,right:6,position:"absolute"}})]});return(()=>i?y.jsx(P.Link,{href:u,target:"_blank",rel:"noopener",underline:"none",children:m}):y.jsx(P.Link,{component:jr.Link,to:u,underline:"none",children:m}))()});bx.displayName="NavItem";const mZ=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(xx,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),xx=({data:e,depth:t,hasChild:r})=>{const n=g.useRef(null),{pathname:i}=jr.useLocation(),{active:o,isExternalLink:a}=fu(e.path),[s,u]=g.useState(!1);g.useEffect(()=>{s&&c()},[i]),g.useEffect(()=>{const f=Array.from(document.querySelectorAll(".MuiAppBar-root")),d=()=>{document.body.style.overflow="",document.body.style.padding="",f.forEach(h=>{h.style.padding=""})};d()},[s]);const l=()=>{u(!0)},c=()=>{u(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(bx,{ref:n,item:e,depth:t,open:s,active:o,isExternalLink:a,onMouseEnter:l,onMouseLeave:c}),r&&y.jsx(gZ,{open:s,anchorEl:n.current,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:l,onMouseLeave:c},children:y.jsx(mZ,{data:e.children,depth:t})})]})},vZ=({items:e,isLastGroup:t})=>y.jsxs(y.Fragment,{children:[e.map(r=>y.jsx(xx,{data:r,depth:1,hasChild:!!r.children},r.title+r.path)),!t&&y.jsx(P.Box,{sx:{width:24,height:"1px",bgcolor:"divider",my:"8px !important"}})]}),yZ=({data:e,sx:t,...r})=>y.jsx(P.Stack,{spacing:.5,alignItems:"center",sx:{px:.75,...t},...r,children:e.map((n,i)=>y.jsx(vZ,{items:n.items,isLastGroup:i+1===e.length},n.subheader))}),bZ=g.memo(yZ),xZ=It(P.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="caption"})(({active:e,disabled:t,depth:r,caption:n,theme:i})=>{const o=i.palette.mode==="light",a=r!==1,s={color:i.palette.primary.main,backgroundColor:W(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},u={color:i.palette.text.primary,backgroundColor:"transparent"};return{position:"relative",textTransform:"capitalize",paddingLeft:i.spacing(2),paddingRight:i.spacing(1.5),marginBottom:i.spacing(.5),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,height:du.H_DASHBOARD_ITEM,...a&&{height:du.H_DASHBOARD_ITEM_SUB,...r>2&&{paddingLeft:i.spacing(r)},...n&&{height:du.H_DASHBOARD_ITEM}},...e&&{...s,"&:hover":{...s}},...a&&e&&{...u,"&:hover":{...u}},...t&&{"&.Mui-disabled":{opacity:.64}}}}),wx=It(P.ListItemIcon)({display:"flex",alignItems:"center",justifyContent:"center",width:wo.NAV_ITEM,height:wo.NAV_ITEM}),wZ=It("span",{shouldForwardProp:e=>e!=="active"})(({active:e,theme:t})=>({width:4,height:4,borderRadius:"50%",backgroundColor:t.palette.text.disabled,transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter}),...e&&{transform:"scale(2)",backgroundColor:t.palette.primary.main}})),CZ=It(P.ListSubheader)(({theme:e})=>({...e.typography.overline,fontSize:11,paddingTop:e.spacing(3),paddingBottom:e.spacing(1),color:e.palette.text.secondary})),SZ=({item:e,depth:t,open:r,active:n,isExternalLink:i,...o})=>{const{title:a,path:s,icon:u,info:l,children:c,disabled:f,caption:d}=e,h=t!==1,m=y.jsxs(xZ,{depth:t,active:n,disabled:f,caption:!!d,...o,children:[u&&y.jsx(wx,{children:u}),h&&y.jsx(wx,{children:y.jsx(wZ,{active:n&&h})}),y.jsx(P.ListItemText,{primary:a,secondary:d&&y.jsx(P.Tooltip,{title:d,placement:"top-start",children:y.jsx("span",{children:d})}),primaryTypographyProps:{noWrap:!0,component:"span",variant:n?"subtitle2":"body2"},secondaryTypographyProps:{noWrap:!0,variant:"caption"}}),l&&y.jsx(P.Box,{component:"span",sx:{lineHeight:0},children:l}),!!c&&y.jsx(Ft,{width:16,icon:r?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{ml:1,flexShrink:0}})]});return(()=>i?y.jsx(P.Link,{href:s,target:"_blank",rel:"noopener",underline:"none",children:m}):c?m:y.jsx(P.Link,{component:jr.Link,to:s,underline:"none",children:m}))()},EZ=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(Cx,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),Cx=({data:e,depth:t,hasChild:r})=>{const{pathname:n}=jr.useLocation(),{active:i,isExternalLink:o}=fu(e.path),[a,s]=g.useState(i);g.useEffect(()=>{i||l()},[n]);const u=()=>{s(!a)},l=()=>{s(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(SZ,{item:e,depth:t,open:a,active:i,isExternalLink:o,onClick:u}),r&&y.jsx(P.Collapse,{in:a,unmountOnExit:!0,children:y.jsx(EZ,{data:e.children,depth:t})})]})},TZ=({data:e,sx:t,...r})=>y.jsx(P.Stack,{sx:t,...r,children:e.map(n=>{const i=n.subheader||n.items[0].title;return y.jsxs(P.List,{disablePadding:!0,sx:{px:2},children:[n.subheader&&y.jsx(CZ,{disableSticky:!0,children:n.subheader}),n.items.map(o=>y.jsx(Cx,{data:o,depth:1,hasChild:!!o.children},o.title+o.path))]},i)})}),kZ=It(P.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="open"})(({active:e,disabled:t,open:r,depth:n,theme:i})=>{const o=i.palette.mode==="light",a=n!==1,s={color:i.palette.primary.main,backgroundColor:W(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},u={color:i.palette.text.primary,backgroundColor:"transparent"},l={color:i.palette.text.primary,backgroundColor:i.palette.action.hover};return{flexShrink:0,display:"inline-flex",textTransform:"capitalize",padding:i.spacing(0,.75),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,height:du.H_DASHBOARD_ITEM_HORIZONTAL,"&:hover":l,...a&&{width:"100%",margin:0,paddingRight:0,paddingLeft:i.spacing(1)},...e&&{...s,"&:hover":{...s}},...a&&e&&{...u,"&:hover":{...u}},...r&&!e&&l,...t&&{"&.Mui-disabled":{opacity:.64}}}}),_Z=It(P.ListItemIcon)({marginRight:8,flexShrink:0,width:wo.NAV_ITEM_HORIZONTAL,height:wo.NAV_ITEM_HORIZONTAL}),OZ=It(P.Popover)(({theme:e})=>({pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:e.spacing(1),marginTop:e.spacing(.5),boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5,...uu({color:e.palette.background.default})}})),Sx=g.forwardRef(({item:e,depth:t,open:r,active:n,isExternalLink:i,...o},a)=>{const{title:s,path:u,icon:l,info:c,children:f,disabled:d,caption:h}=e,m=t!==1,p=y.jsxs(kZ,{ref:a,open:r,depth:t,active:n,disabled:d,...o,children:[l&&y.jsx(_Z,{children:l}),y.jsx(P.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,component:"span",variant:n?"subtitle2":"body2"}}),c&&y.jsx(P.Box,{component:"span",sx:{ml:1,lineHeight:0},children:c}),h&&y.jsx(P.Tooltip,{title:h,arrow:!0,children:y.jsx(P.Box,{component:"span",sx:{ml:.5,lineHeight:0},children:y.jsx(Ft,{icon:"eva:info-outline",width:16})})}),!!f&&y.jsx(Ft,{icon:m?"eva:chevron-right-fill":"eva:chevron-down-fill",width:16,sx:{ml:.5,flexShrink:0}})]});return(()=>i?y.jsx(P.Link,{href:u,target:"_blank",rel:"noopener",underline:"none",children:p}):y.jsx(P.Link,{component:jr.Link,to:u,underline:"none",children:p}))()});Sx.displayName="NavItem";const MZ=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(Ex,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),Ex=({data:e,depth:t,hasChild:r})=>{const n=g.useRef(null),{pathname:i}=jr.useLocation(),{active:o,isExternalLink:a}=fu(e.path),[s,u]=g.useState(!1);g.useEffect(()=>{s&&c()},[i]),g.useEffect(()=>{const f=Array.from(document.querySelectorAll(".MuiAppBar-root")),d=()=>{document.body.style.overflow="",document.body.style.padding="",f.forEach(h=>{h.style.padding=""})};d()},[s]);const l=()=>{u(!0)},c=()=>{u(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(Sx,{ref:n,item:e,depth:t,open:s,active:o,isExternalLink:a,onMouseEnter:l,onMouseLeave:c}),r&&y.jsx(OZ,{open:s,anchorEl:n.current,anchorOrigin:t===1?{vertical:"bottom",horizontal:"left"}:{vertical:"center",horizontal:"right"},transformOrigin:t===1?{vertical:"top",horizontal:"left"}:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:l,onMouseLeave:c},children:y.jsx(MZ,{data:e.children,depth:t})})]})},PZ=({items:e})=>y.jsx(y.Fragment,{children:e.map(t=>y.jsx(Ex,{data:t,depth:1,hasChild:!!t.children},t.title+t.path))}),AZ=({data:e,sx:t,...r})=>y.jsx(P.Stack,{direction:"row",spacing:1,sx:{mx:"auto",...dx,...t},...r,children:e.map(n=>y.jsx(PZ,{items:n.items},n.subheader))}),DZ=g.memo(AZ),$Z=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return y.jsx(Ul,{alt:"avatar",src:t,sx:{zIndex:8,overflow:"hidden",borderRadius:"50%",position:"absolute",width:"calc(100% - 16px)",height:"calc(100% - 16px)"}})},IZ=It("div")(({theme:e})=>({width:144,height:144,margin:"auto",display:"flex",cursor:"pointer",overflow:"hidden",borderRadius:"50%",alignItems:"center",position:"relative",justifyContent:"center",border:`1px dashed ${W(e.palette.grey[500],.32)}`})),FZ=It("div")(({theme:e})=>({zIndex:7,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",flexDirection:"column",justifyContent:"center",width:"calc(100% - 16px)",height:"calc(100% - 16px)",color:e.palette.text.disabled,backgroundColor:e.palette.background.neutral,transition:e.transitions.create("opacity",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter})})),jZ=({error:e,file:t,disabled:r,helperText:n,sx:i,...o})=>{const{getRootProps:a,getInputProps:s,isDragActive:u,isDragReject:l,fileRejections:c}=lu({multiple:!1,disabled:r,...o}),f=!!t,d=l||!!e;return y.jsxs(y.Fragment,{children:[y.jsxs(IZ,{...a(),sx:{...u&&{opacity:.72},...d&&{borderColor:"error.light",...f&&{bgcolor:"error.lighter"}},...r&&{opacity:.48,pointerEvents:"none"},...f&&{"&:hover":{"& .placeholder":{opacity:1}}},...i},children:[y.jsx("input",{...s()}),f&&y.jsx($Z,{file:t}),y.jsxs(FZ,{className:"placeholder",sx:{"&:hover":{opacity:.72},...f&&{zIndex:9,opacity:0,color:"common.white",bgcolor:h=>W(h.palette.grey[900],.64)},...d&&{color:"error.main",bgcolor:"error.lighter"}},children:[y.jsx(Ft,{icon:"ic:round-add-a-photo",width:24,sx:{mb:1}}),y.jsx(P.Typography,{variant:"caption",children:t?"Update photo":"Upload photo"})]})]}),n&&n,y.jsx(mx,{fileRejections:c})]})},LZ=It("div")(({theme:e})=>({width:64,height:64,fontSize:24,display:"flex",flexShrink:0,cursor:"pointer",alignItems:"center",justifyContent:"center",margin:e.spacing(.5),color:e.palette.text.disabled,borderRadius:e.shape.borderRadius,border:`dashed 1px ${e.palette.divider}`,backgroundColor:W(e.palette.grey[500],.08),"&:hover":{opacity:.72}})),RZ=({placeholderAlt:e,error:t,disabled:r,sx:n,...i})=>{const{getRootProps:o,getInputProps:a,isDragActive:s,isDragReject:u}=lu({disabled:r,...i}),l=u||t;return y.jsxs(LZ,{...o(),sx:{...s&&{opacity:.72},...l&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...r&&{opacity:.48,pointerEvents:"none"},...n},children:[y.jsx("input",{...a()}),e||y.jsx(Ft,{icon:"eva:cloud-upload-fill",width:28})]})},NZ=()=>{const[e,t]=g.useState(!1),[r,n]=g.useState(document.activeElement);return g.useEffect(()=>{const i=a=>n(a.target),o=()=>n(null);return window.addEventListener("focus",i,!0),window.addEventListener("blur",o,!0),t(!0),()=>{window.removeEventListener("focus",i),window.removeEventListener("blur",o)}},[]),{activeElement:r,listenersReady:e}};function BZ(){const[e,t]=g.useState(null);return{copiedText:e,copy:async n=>{if(!(navigator!=null&&navigator.clipboard))return!1;try{return await navigator.clipboard.writeText(n),t(n),!0}catch{return t(null),!1}}}}var zZ=Nf;function VZ(e,t){return zZ(e,t)}var WZ=VZ;const HZ=Sn(WZ),UZ=(e,t)=>HZ(e,t),YZ=e=>{const t=g.useRef();return UZ(e,t.current)||(t.current=e),t.current},GZ=(e,t)=>{g.useEffect(e,t.map(YZ))},qZ=()=>{const e=g.useRef(!0);return e.current?(e.current=!1,!0):e.current};function KZ(e){const[t,r]=g.useState(e||"");return{currentTab:t,onChangeTab:(n,i)=>{r(i)},setCurrentTab:r}}const XZ=Object.freeze(Object.defineProperty({__proto__:null,downloadFile:(e,t,r)=>{const n=`data:application/octet-stream;base64,${r}`,i=document.createElement("a"),o=`${e.replace(t,"")}.${t}`;i.href=n,i.download=o,i.click()}},Symbol.toStringTag,{value:"Module"}));function ZZ(e){return Hd({},e)}var Tx=1440,QZ=2520,Sh=43200,JZ=86400;function eQ(e,t,r){var n,i;U(2,arguments);var o=wr(),a=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:o.locale)!==null&&n!==void 0?n:Ll;if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=io(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var u=Hd(ZZ(r),{addSuffix:!!(r!=null&&r.addSuffix),comparison:s}),l,c;s>0?(l=Y(t),c=Y(e)):(l=Y(e),c=Y(t));var f=mb(c,l),d=(oo(c)-oo(l))/1e3,h=Math.round((f-d)/60),m;if(h<2)return r!=null&&r.includeSeconds?f<5?a.formatDistance("lessThanXSeconds",5,u):f<10?a.formatDistance("lessThanXSeconds",10,u):f<20?a.formatDistance("lessThanXSeconds",20,u):f<40?a.formatDistance("halfAMinute",0,u):f<60?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",1,u):h===0?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",h,u);if(h<45)return a.formatDistance("xMinutes",h,u);if(h<90)return a.formatDistance("aboutXHours",1,u);if(h<Tx){var p=Math.round(h/60);return a.formatDistance("aboutXHours",p,u)}else{if(h<QZ)return a.formatDistance("xDays",1,u);if(h<Sh){var v=Math.round(h/Tx);return a.formatDistance("xDays",v,u)}else if(h<JZ)return m=Math.round(h/Sh),a.formatDistance("aboutXMonths",m,u)}if(m=Ld(c,l),m<12){var x=Math.round(h/Sh);return a.formatDistance("xMonths",x,u)}else{var b=m%12,C=Math.floor(m/12);return b<3?a.formatDistance("aboutXYears",C,u):b<9?a.formatDistance("overXYears",C,u):a.formatDistance("almostXYears",C+1,u)}}function tQ(e,t){return U(1,arguments),eQ(e,Date.now(),t)}function rQ(e){U(1,arguments);var t=Y(e),r=t.getTime();return r}function nQ(e,t){const r=t||"dd/MM/yyyy";return e?Vd(new Date(e),r):null}function iQ(e,t){const r=t||"dd/MM/yyyy HH:mm:ss";return e?Vd(new Date(e),r):null}function oQ(e){return e?rQ(new Date(e)):null}function aQ(e){return e?tQ(new Date(e),{addSuffix:!0}):null}const sQ=Object.freeze(Object.defineProperty({__proto__:null,fDate:nQ,fDateTime:iQ,fTimestamp:oQ,fToNow:aQ},Symbol.toStringTag,{value:"Module"}));function lQ(e){const t=e.match(/\/([^/]+)/);return t?t[0]:e}const uQ=Object.freeze(Object.defineProperty({__proto__:null,getRoot:lQ},Symbol.toStringTag,{value:"Module"})),cQ=e=>function(r){return y.jsx(g.Suspense,{fallback:y.jsx(P.CircularProgress,{}),children:y.jsx(e,{...r})})},fQ=Object.freeze(Object.defineProperty({__proto__:null,default:JC},Symbol.toStringTag,{value:"Module"}));R.Autocomplete=yf,R.AutocompleteField=AK,R.ColorPickerField=DK,R.ColorPickerInput=fb,R.Common=xq,R.CustomAvatar=r2,R.CustomAvatarGroup=n2,R.DataGrid=Sq,R.DatePicker=$K,R.DateRangePicker=IK,R.DateTimePicker=FK,R.Delayed=Eq,R.DialogAnimate=eS,R.FabButtonAnimate=J0,R.Field=V2,R.Form=jK,R.IconButtonAnimate=eg,R.Iconify=Ft,R.Image=Ul,R.ImageCropModal=C2,R.Label=S2,R.MaskedInput=dh,R.MaskedInputField=LK,R.MaterialDesignContent=_m,R.MenuPopover=xK,R.MotionContainer=K4,R.MotionLazyContainer=Z4,R.MotionViewport=q4,R.NavSectionHorizontal=DZ,R.NavSectionMini=bZ,R.NavSectionVertical=TZ,R.PasswordField=RK,R.Portal=wK,R.Scrollbar=PK,R.SnackbarContent=Yc,R.SnackbarProvider=Pm,R.Switch=NK,R.TRANSITION=Eh,R.TextAnimate=tS,R.ThemeProvider=t2,R.TimePicker=BK,R.Transition=Rs,R.Upload=vx,R.UploadAvatar=jZ,R.UploadBox=RZ,R.UploadWithCrop=yx,R.UploadWithCropField=dZ,R.cssStyles=eZ,R.file=XZ,R.formatNumber=aZ,R.formatTime=sQ,R.loadable=cQ,R.routes=uQ,R.useActiveElement=NZ,R.useActiveLink=fu,R.useCopyToClipboard=BZ,R.useDeepCompareEffect=GZ,R.useIsMounting=qZ,R.useResponsive=nm,R.useSnackbar=OT,R.useTabs=KZ,R.useToggle=hf,R.varBgColor=Nx,R.varBgKenburns=Bx,R.varBgPan=zx,R.varBounce=jx,R.varContainer=Va,R.varFade=Eo,R.varFlip=$x,R.varHover=Rx,R.varPath=Px,R.varRotate=Lx,R.varScale=Fx,R.varSlide=Ix,R.varTranEnter=Pe,R.varTranExit=$e,R.varTranHover=Ax,R.varZoom=Dx,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
|