@quintara.ai/ui 0.0.1
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/README.md +127 -0
- package/dist/components.d.ts +485 -0
- package/dist/components.esm.js +1575 -0
- package/dist/components.esm.js.map +1 -0
- package/dist/components.js +1575 -0
- package/dist/components.js.map +1 -0
- package/dist/constants.d.ts +159 -0
- package/dist/constants.esm.js +2 -0
- package/dist/constants.esm.js.map +1 -0
- package/dist/constants.js +2 -0
- package/dist/constants.js.map +1 -0
- package/dist/index.d.ts +680 -0
- package/dist/index.esm.js +1575 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +1575 -0
- package/dist/index.js.map +1 -0
- package/dist/utils.d.ts +38 -0
- package/dist/utils.esm.js +2 -0
- package/dist/utils.esm.js.map +1 -0
- package/dist/utils.js +2 -0
- package/dist/utils.js.map +1 -0
- package/package.json +86 -0
|
@@ -0,0 +1,1575 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{useState as i,useMemo as o,useEffect as a,useId as l,memo as c,useRef as u,useCallback as s}from"react";import d,{css as f,keyframes as p}from"styled-components";import{HdDisplay as h,RefreshDouble as g,CloudUpload as v,Trash as m,Calendar as b,Plus as y,MoreHoriz as w,Bell as x,Download as $,Upload as _,CreditCard as k,Bank as j,Link as z,FastArrowRight as C,CloudXmark as A,Xmark as S,Search as R,Home as O,HandCash as E,Wallet as P,MenuScale as I,NavArrowRight as L,NavArrowLeft as F,CheckCircleSolid as N,Circle as W,CheckSquare as B,Square as T,XmarkCircle as D,WarningTriangle as M,CheckCircle as U,InfoCircle as V,NavArrowDown as K,MessageAlert as q,EyeClosed as Z,ArrowRight as H,ArrowLeft as X,ShareAndroid as Y,X as G,Instagram as J,Facebook as Q,Eye as ee,Key as te,Fingerprint as re}from"iconoir-react";const ne=[320,768,980,1280,1440],ie=["xs","sm","md","lg","xl"],oe={maxw:"max-width",minw:"min-width",maxh:"max-height",minh:"min-height",size:"font-size",order:"order",weight:"font-weight",family:"font-family",decoration:"text-decoration",justify:"justify-content",items:"align-items",wrap:"flex-wrap",content:"align-content",direction:"flex-direction",align:"text-align",bg:"background-color",flexalign:["align-items","align-content","justify-content"],shrink:"flex-shrink",grow:"flex-grow",basis:"flex-basis",pv:["padding-top","padding-bottom"],ph:["padding-left","padding-right"],mv:["margin-top","margin-bottom"],mh:["margin-left","margin-right"],wsvg:["width","height","min-width","min-height"],dimentions:["width","height","min-width","min-height"],$height:["height","max-height"],radius:"border-radius",spacing:"letter-spacing",pl:"padding-left",pr:"padding-right",ml:"margin-left",mr:"margin-right",pt:"padding-top",pb:"padding-bottom",mt:"margin-top",mb:"margin-bottom",ttrans:"text-transform",cols:"grid-template-columns",acols:"grid-auto-columns",rows:"grid-template-rows",arows:"grid-auto-rows",colstart:"grid-column-start",colend:"grid-column-end",rowstart:"grid-row-start",rowend:"grid-row-end",col:"grid-column",row:"grid-row",ratio:"aspect-ratio",events:"pointer-events"},ae={around:"space-around",between:"space-between",start:"flex-start",startSnap:"start",end:"flex-end",primary:"var(--db-primary)",secondary:"var(--db-secondary)",white:"var(--db-white)",black:"var(--db-black)",light:"var(--db-light)",info:"var(--db-info)",success:"var(--db-success)",warning:"var(--db-warning)",danger:"var(--db-danger)",upper:"uppercase",lower:"lowercase"},le={alias:oe,values:ae,BREAKPOINTS:ne,BREAKPOINTS_PREFIX:ie},ce={curpRgx:/^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HM](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/,emailRgx:/^[a-zA-Z0-9_\-.]+@(?:[a-zA-Z0-9]+\.)+[A-Za-z]+$/,specialChars:/[°"'#=?¡`<>|\\´{}¿.,\-¨[];:_`^~¬]/g,onlyLetterNumbers:/^[a-zA-Z0-9]_-#\|/g,onlyNumbers:/[^0-9]_-#\|/g,onlyPhone:/[^0-9]/g,onlySlug:/[°"'!$%&/)(?¡][+*¿#=?¡`<>|´{}¿.,¨[];:_`^~¬]/g,onlyLetters:/[^a-zA-ZáéíóúÁÉÍÓÚäëïöüÄËÏÖÜàèìòùÀÈÌÒÙâêîôûÂÊÎÔÛñÑçÇ\s]/g};function ue(e){const t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let r="";for(let n=0;n<e;n++){r+=t[Math.floor(62*Math.random())]}return r}const se=["align-content","align-self","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","image-orientation","image-rendering","image-resolution","inline-size","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","margin-block","margin-inline","max-height","max-width","min-height","min-width","mix-blend-mode","object-fit","object-position","opacity","order","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","padding-block","padding-inline","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","quotes","resize","right","row-gap","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","tab-size","table-layout","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","white-space","width","will-change","word-break","word-spacing","word-wrap","writing-mode","backdrop-filter","z-index"],de=["key","ref","dangerouslySetInnerHTML","style","children","className","htmlFor","id"],fe=[320,768,1024,1360,1540],pe=["xs","sm","md","lg","xl"];const he=new class{constructor(e){const{breakpoints:t=[],breakpointsPrefix:r=[],supportCSSProps:n=[],reservedProps:i=[],alias:o={},values:a={}}=e;this.BREAKPOINTS=t||fe||[],this.CSS_PROPS=[...se,...n],this.BREAKPOINTS_PREFIX=r||pe||[],this.REACT_RESERVED_PROPS=[...de,...i],this.ALIAS=o,this.VALUES=a,this.hydrate=this.hydrate.bind(this),this.hexToRGB=this.hexToRGB.bind(this),this.toKebabCase=this.toKebabCase.bind(this),this.hydrateObject=this.hydrateObject.bind(this),this.mapProperties=this.mapProperties.bind(this),this.mapDynamicProps=this.mapDynamicProps.bind(this),this.breakpointsOrder=this.breakpointsOrder.bind(this),this.addResponsiveSupport=this.addResponsiveSupport.bind(this)}cleanDollarProps(e){return e.map(([e,t])=>(e.startsWith("$")&&(e=e.substring(1)),[e,t]))}toKebabCase(e){return e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase().replace(/^-/,"")}hexToRGB(e,t){e=e.replace(/#/g,"");const r=parseInt(e.slice(0,2),16),n=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16);return t?`rgba(${r}, ${n}, ${i}, ${t})`:`rgb(${r}, ${n}, ${i})`}breakpointsOrder(e){const t=[],r={};for(let e=0;e<this.BREAKPOINTS_PREFIX.length;e++)r[this.BREAKPOINTS_PREFIX[e]]=e;for(let n=0;n<e.length;n++){const i=e[n],o=null===i?.breakpoint?-1:r[i.breakpoint];t.push({index:n,value:o})}return t.sort((e,t)=>e.value-t.value),t.map(t=>e[t.index])}mapProperties(e){const t=[],r=this.VALUES,n=this.cleanDollarProps(e);for(let i=0;i<e.length;i++){const e=n[i],o=e[0],a=e[1],l=o.substring(0,2),c=this.BREAKPOINTS_PREFIX.includes(l)?l:null,u=this.BREAKPOINTS_PREFIX.includes(l)?o.substring(2):o,s="number"==typeof a?`${a}px`:r[a]||a;this.REACT_RESERVED_PROPS.includes(u)||t.push({breakpoint:c,property:u,value:s})}return this.breakpointsOrder(t)}hydrateObject(e){const t={},r=this.ALIAS,n=Object.entries(e);return this.mapProperties(n).forEach(({breakpoint:e,property:n,value:i})=>{const o=toKebabCase(n),a=r[o]||o,l=a.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());if(this.CSS_PROPS.includes(a))if(e){const r=t[l]||{};r[e]=i,t[l]=r}else t[l]=i}),t}hydrate(e){let t="";const r=this.ALIAS,n=Object.entries(e);return this.mapProperties(n).forEach(({breakpoint:e,property:n,value:i})=>{const o=this.toKebabCase(n),a=r[o]||o,l=Array.isArray(a)?[...a]:[a];t+=l.map(t=>{if(this.CSS_PROPS.includes(t)){if(!e)return`${t}: ${i};`;if(e){return`@media screen and (min-width: ${this.BREAKPOINTS[this.BREAKPOINTS_PREFIX.indexOf(e)]}px) {\n ${t}: ${i};\n }`}}}).join(" ")}),t}addResponsiveSupport(e){return""}mapDynamicProps(e){return""}}({alias:oe,values:ae,breakpoints:ne,breakpointsPrefix:ie,supportCSSProps:["backdrop-filter"]}),ge=()=>"undefined"!=typeof window,ve=e=>e.toString().normalize("NFKD").toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-"),me=e=>e.replace(/ {2}/g," ").trim(),be=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,""),ye=e=>{if("undefined"==typeof window)return"";const t=e.startsWith("--")?e:`--${e}`;return getComputedStyle(document.documentElement).getPropertyValue(t).trim()},we=e=>e.reduce((e,t)=>(e[t.startsWith("--")?t.slice(2):t]=ye(t),e),{}),xe=(e,t)=>{if("undefined"==typeof window)return;const r=e.startsWith("--")?e:`--${e}`;document.documentElement.style.setProperty(r,t)},$e=d.div`
|
|
2
|
+
width: 100%;
|
|
3
|
+
max-width: 100%;
|
|
4
|
+
margin-left: auto;
|
|
5
|
+
margin-right: auto;
|
|
6
|
+
display: block;
|
|
7
|
+
${e=>he.hydrate(e)}
|
|
8
|
+
`;var _e=n.memo(({children:t,smMaxw:r,mdMaxw:n,lgMaxw:i,...o})=>e($e,{$smMaxw:r||"90%",$mdMaxw:n||"80%",$lgMaxw:i||"1300px",...o,children:t}));const ke=d.div`
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: start;
|
|
11
|
+
align-content: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
overflow-x: hidden;
|
|
14
|
+
z-index: 99999;
|
|
15
|
+
|
|
16
|
+
padding-top: 150px;
|
|
17
|
+
padding-bottom: 50px;
|
|
18
|
+
padding-left: 20px;
|
|
19
|
+
padding-right: 20px;
|
|
20
|
+
|
|
21
|
+
position: fixed;
|
|
22
|
+
top: 0;
|
|
23
|
+
left: 0;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
background-color: rgb(from var(--db-white) r g b / 95%);
|
|
27
|
+
transition: opacity 100ms ease;
|
|
28
|
+
|
|
29
|
+
opacity: ${({$show:e})=>e?1:0};
|
|
30
|
+
pointer-events: ${({$show:e})=>e?"all":"none"};
|
|
31
|
+
${e=>he.hydrate(e)}
|
|
32
|
+
`,je=d.div`
|
|
33
|
+
display: block;
|
|
34
|
+
border-radius: 5px;
|
|
35
|
+
min-height: 100px;
|
|
36
|
+
z-index: 9999999;
|
|
37
|
+
background-color: var(--db-white);
|
|
38
|
+
color: var(--db-black);
|
|
39
|
+
box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.2);
|
|
40
|
+
${e=>he.hydrate(e)}
|
|
41
|
+
`,ze=d.div`
|
|
42
|
+
position: relative;
|
|
43
|
+
display: block;
|
|
44
|
+
padding: 40px 5% 0;
|
|
45
|
+
${e=>he.hydrate(e)}
|
|
46
|
+
`,Ce=d.div`
|
|
47
|
+
position: relative;
|
|
48
|
+
display: block;
|
|
49
|
+
padding: 0;
|
|
50
|
+
${e=>he.hydrate(e)}
|
|
51
|
+
`,Ae=d.div`
|
|
52
|
+
position: relative;
|
|
53
|
+
display: block;
|
|
54
|
+
padding: 40px 5%;
|
|
55
|
+
${e=>he.hydrate(e)}
|
|
56
|
+
`,Se=d.div`
|
|
57
|
+
display: ${({$type:e})=>"inline"===e?"inline-flex":"flex"};
|
|
58
|
+
width: ${({$type:e})=>"inline"===e?"auto":"100%"};
|
|
59
|
+
|
|
60
|
+
${({$autofill:e})=>e&&f`
|
|
61
|
+
& > *:not(.ignore) {
|
|
62
|
+
flex: 1;
|
|
63
|
+
}
|
|
64
|
+
`}
|
|
65
|
+
|
|
66
|
+
${e=>he.hydrate(e)}
|
|
67
|
+
`;var Re=n.memo(({children:t,...r})=>e(Se,{...r,children:t}));const Oe=f`
|
|
68
|
+
${e=>he.hydrate(e)}
|
|
69
|
+
`,Ee=d.p`
|
|
70
|
+
${Oe}
|
|
71
|
+
`,Pe=d.a`
|
|
72
|
+
color: inherit;
|
|
73
|
+
text-decoration: none;
|
|
74
|
+
transition: all 200ms ease;
|
|
75
|
+
|
|
76
|
+
&:hover {
|
|
77
|
+
color: ${({$hoverColor:e})=>e||"black"};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
${Oe}
|
|
81
|
+
`,Ie=d.strong`
|
|
82
|
+
color: black;
|
|
83
|
+
${Oe}
|
|
84
|
+
`,Le=d.span`
|
|
85
|
+
${Oe}
|
|
86
|
+
`,Fe=d.small`
|
|
87
|
+
${Oe}
|
|
88
|
+
`;var Ne=n.memo(({$type:t,children:r,...n})=>{switch(t){case"link":return e(Pe,{...n,children:r});case"strong":return e(Ie,{...n,children:r});case"span":return e(Le,{...n,children:r});case"small":return e(Fe,{...n,children:r});default:return e(Ee,{...n,children:r})}});const We=f`
|
|
89
|
+
background-color: var(--db-primary);
|
|
90
|
+
color: var(--db-white);
|
|
91
|
+
|
|
92
|
+
&:hover:not(:disabled) {
|
|
93
|
+
background-color: var(--db-primary-darken-10);
|
|
94
|
+
}
|
|
95
|
+
`,Be=f`
|
|
96
|
+
background-color: var(--db-secondary);
|
|
97
|
+
color: var(--db-white);
|
|
98
|
+
|
|
99
|
+
&:hover:not(:disabled) {
|
|
100
|
+
background-color: var(--db-secondary-darken-10);
|
|
101
|
+
color: var(--db-white);
|
|
102
|
+
}
|
|
103
|
+
`,Te=f`
|
|
104
|
+
background-color: var(--db-tertiary);
|
|
105
|
+
color: var(--db-white);
|
|
106
|
+
|
|
107
|
+
&:hover:not(:disabled) {
|
|
108
|
+
background-color: var(--db-tertiary-darken-10);
|
|
109
|
+
color: var(--db-white);
|
|
110
|
+
}
|
|
111
|
+
`,De=f`
|
|
112
|
+
background-color: transparent;
|
|
113
|
+
|
|
114
|
+
${({$loading:e})=>!e&&f`
|
|
115
|
+
border: 1px solid var(--db-primary);
|
|
116
|
+
color: var(--db-primary);
|
|
117
|
+
`}
|
|
118
|
+
|
|
119
|
+
${({$loading:e})=>e&&f`
|
|
120
|
+
border: 1px solid var(--db-tertiary-lighten-20);
|
|
121
|
+
color: var(--db-tertiary-lighten-20);
|
|
122
|
+
`}
|
|
123
|
+
|
|
124
|
+
span {
|
|
125
|
+
opacity: 1;
|
|
126
|
+
}
|
|
127
|
+
`,Me=f`
|
|
128
|
+
border: 1px solid var(--db-background);
|
|
129
|
+
background-color: var(--db-background);
|
|
130
|
+
color: var(--db-primary-lighten-10);
|
|
131
|
+
|
|
132
|
+
${({$hoverless:e})=>!e&&f`
|
|
133
|
+
&:hover {
|
|
134
|
+
background-color: var(--db-tertiary-lighten-45);
|
|
135
|
+
border-color: var(--db-tertiary-lighten-45);
|
|
136
|
+
}
|
|
137
|
+
`}
|
|
138
|
+
`,Ue=f`
|
|
139
|
+
display: inline-flex;
|
|
140
|
+
background-color: transparent;
|
|
141
|
+
gap: calc(16px / 2);
|
|
142
|
+
align-items: center;
|
|
143
|
+
align-content: center;
|
|
144
|
+
justify-content: center;
|
|
145
|
+
text-align: center;
|
|
146
|
+
position: relative;
|
|
147
|
+
white-space: nowrap;
|
|
148
|
+
transition: all 200ms ease;
|
|
149
|
+
padding: 0 16px;
|
|
150
|
+
border: 1px solid transparent;
|
|
151
|
+
font-weight: 300;
|
|
152
|
+
overflow: hidden;
|
|
153
|
+
cursor: pointer;
|
|
154
|
+
font: inherit;
|
|
155
|
+
line-height: 1;
|
|
156
|
+
|
|
157
|
+
height: 50px;
|
|
158
|
+
border-radius: 12px;
|
|
159
|
+
|
|
160
|
+
* {
|
|
161
|
+
margin: 0;
|
|
162
|
+
padding: 0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&:disabled,
|
|
166
|
+
&:disabled:hover {
|
|
167
|
+
cursor: not-allowed;
|
|
168
|
+
opacity: 0.2;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
span {
|
|
172
|
+
display: inline-flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
justify-content: center;
|
|
175
|
+
font-size: inherit;
|
|
176
|
+
gap: 20;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.loader-button {
|
|
180
|
+
position: absolute;
|
|
181
|
+
transform-origin: center center;
|
|
182
|
+
transform: translateX(-50%);
|
|
183
|
+
top: ${({$w:e})=>`calc(50% - ${e?e/2:12}px)`};
|
|
184
|
+
left: ${({$w:e})=>`calc(50% - ${e?e/2:12}px)`};
|
|
185
|
+
z-index: 2;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
${({$loading:e})=>!!e&&f`
|
|
189
|
+
&,
|
|
190
|
+
span,
|
|
191
|
+
.loader-button {
|
|
192
|
+
pointer-events: none !important;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
span {
|
|
196
|
+
opacity: 0.4;
|
|
197
|
+
}
|
|
198
|
+
`}
|
|
199
|
+
|
|
200
|
+
${({$theme:e})=>"primary"===e&&We}
|
|
201
|
+
${({$theme:e})=>"secondary"===e&&Be}
|
|
202
|
+
${({$theme:e})=>"tertiary"===e&&Te}
|
|
203
|
+
${({$theme:e})=>"outline"===e&&De}
|
|
204
|
+
${({$theme:e})=>"light"===e&&Me}
|
|
205
|
+
${e=>he.hydrate(e)}
|
|
206
|
+
`;d.i`
|
|
207
|
+
height: 25px;
|
|
208
|
+
width: 25px;
|
|
209
|
+
border-radius: 40px;
|
|
210
|
+
background-color: var(--db-black-lighten-30);
|
|
211
|
+
display: inline-block;
|
|
212
|
+
vertical-align: middle;
|
|
213
|
+
text-align: center;
|
|
214
|
+
margin-right: 15px;
|
|
215
|
+
transition: background 100ms linear;
|
|
216
|
+
svg {
|
|
217
|
+
fill: var(--db-white);
|
|
218
|
+
transition: color 100ms linear;
|
|
219
|
+
}
|
|
220
|
+
${e=>he.hydrate(e)}
|
|
221
|
+
`;const Ve=d.button`
|
|
222
|
+
${Ue}
|
|
223
|
+
`,Ke=d.a`
|
|
224
|
+
${Ue}
|
|
225
|
+
`,qe=p`
|
|
226
|
+
from {
|
|
227
|
+
transform: rotate(270deg);
|
|
228
|
+
}
|
|
229
|
+
to{
|
|
230
|
+
transform: rotate(630deg);
|
|
231
|
+
}
|
|
232
|
+
`,Ze=d.div`
|
|
233
|
+
display: inline-block;
|
|
234
|
+
border-radius: 100%;
|
|
235
|
+
border: 2px solid
|
|
236
|
+
${({$whited:e,$color:t})=>e?"var(--db-white)":t?ye(t):"var(--db-black)"};
|
|
237
|
+
border-left-color: transparent;
|
|
238
|
+
animation: ${qe} 1s linear infinite;
|
|
239
|
+
|
|
240
|
+
width: ${({$w:e})=>e||22}px;
|
|
241
|
+
height: ${({$w:e})=>e||22}px;
|
|
242
|
+
min-width: ${({$w:e})=>e||22}px;
|
|
243
|
+
min-height: ${({$w:e})=>e||22}px;
|
|
244
|
+
|
|
245
|
+
${e=>he.hydrate(e)}
|
|
246
|
+
`;var He=n.memo(({...t})=>e(Ze,{...t}));var Xe=n.memo(({children:r,type:n="button",forwardRef:l,mobile:c,loading:u,theme:s,name:d,$w:f=24,...p})=>{const[h,g]=i(void 0),v=o(()=>({$w:f,$theme:s,$mobile:c,$loading:h,type:n,name:d,...p}),[s,c,h,n,d,p,f]);return a(()=>{g(u?"true":void 0)},[u]),t("link"===n?Ke:Ve,{...v,ref:l,children:[h&&e(He,{className:"loader-button",$w:f,$whited:!0}),h&&e("span",{children:r}),!h&&r]})});var Ye=n.memo(({children:t,...r})=>e(Re,{$items:"center",$justify:"center",...r,children:t}));const Ge=({id:t,classes:r,type:n,wsvg:i=24,children:o,...a})=>e(Ye,{...a,$wsvg:i,id:`${n}-${t}`,children:o}),Je=({id:t,classes:r,type:n,wsvg:i=24,containerProps:o={},component:a=null,...c})=>{const u=l();switch(n){case"fingerIcon":return e(Ge,{type:n,wsvg:i,classes:r,id:t||u,...o,children:e(re,{...c})});case"keyIcon":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(te,{...c})});case"rollback":case"close":case"xmark":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(S,{...c})});case"show":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(ee,{...c})});case"facebook":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(Q,{...c})});case"instagram":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(J,{...c})});case"x":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(G,{...c})});case"share":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(Y,{...c})});case"arrowl":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(X,{...c})});case"arrowr":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(H,{...c})});case"hide":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(Z,{...c})});case"messageAlert":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(q,{...c})});case"arrowDown":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(K,{...c})});case"info":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(V,{...c})});case"success":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(U,{...c})});case"warning":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(M,{...c})});case"danger":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(D,{...c})});case"checkEmpty":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(T,{...c})});case"checkFill":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(B,{...c})});case"radioEmpty":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(W,{...c})});case"radioFill":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(N,{...c})});case"navLeft":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(F,{...c})});case"navRight":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(L,{...c})});case"menu":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(I,{...c})});case"wallet":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(P,{...c})});case"cash":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(E,{...c})});case"home":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(O,{...c})});case"search":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(R,{...c})});case"cloudless":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(A,{...c})});case"farrowr":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(C,{...c})});case"link":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(z,{...c})});case"bank":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(j,{...c})});case"creditCard":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(k,{...c})});case"upload":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(_,{...c})});case"download":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e($,{...c})});case"bell":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(x,{...c})});case"more":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(w,{...c})});case"plus":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(y,{...c})});case"calendar":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(b,{...c})});case"trash":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(m,{...c})});case"cloudUpload":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(v,{...c})});case"refresh":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(g,{...c})});case"hdDisplay":return e(Ge,{id:t||u,classes:r,type:n,wsvg:i,...o,children:e(h,{...c})});default:return a}};var Qe=n.memo(({show:r,width:n,onClose:i,children:o,icon:l,iconless:c,type:u,title:s,titleless:d,isCancel:f,className:p,unClosed:h,...g})=>{a(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow="initial"}));return e(ke,{$show:r,children:r&&t(je,{$width:n,...g,children:[t(ze,{children:[!c&&e(Re,{style:{justifyContent:"center",alignItems:"center",marginBottom:20},children:e(Je,{type:l||("success"===u?"success":"warning"),wsvg:80})}),!d&&e(Ne,{$type:"strong",$size:24,$align:"center",children:s||"Oh no!"})]}),e(Ce,{children:o}),!h&&e(Ae,{children:t(Re,{style:{justifyContent:"center",alignItems:"center",gap:20},children:[f&&e(Xe,{theme:"outline",onClick:()=>null==i?void 0:i(),children:"Cancelar"}),e(Xe,{theme:"primary",onClick:()=>null==i?void 0:i(),children:"Aceptar"})]})})]})})});const et=d.div`
|
|
247
|
+
display: flex;
|
|
248
|
+
flex-direction: column;
|
|
249
|
+
align-items: center;
|
|
250
|
+
align-content: center;
|
|
251
|
+
justify-content: center;
|
|
252
|
+
flex-wrap: wrap;
|
|
253
|
+
position: fixed;
|
|
254
|
+
top: 0;
|
|
255
|
+
left: 0;
|
|
256
|
+
width: 100vw;
|
|
257
|
+
height: 100vh;
|
|
258
|
+
overflow: hidden;
|
|
259
|
+
z-index: 9999999;
|
|
260
|
+
background-color: rgba(255, 255, 255, 0.8);
|
|
261
|
+
backdrop-filter: blur(6px);
|
|
262
|
+
`;var tt,rt=n.memo(({title:r="Wait a moment...",message:n="We are processing information"})=>t(et,{children:[e(Re,{$items:"center",$justify:"center",children:e(He,{$w:60})}),e(Ne,{$align:"center",$opacity:"0.8",$xsSize:18,$mdSize:22,$mt:20,children:r}),e(Ne,{$align:"center",$opacity:"0.5",$xsSize:14,$mdSize:16,$mb:40,children:n})]})),nt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},it={exports:{}};var ot,at,lt=(tt||(tt=1,ot=it,at=it.exports,function(){var e,t="Expected a function",r="__lodash_hash_undefined__",n="__lodash_placeholder__",i=32,o=128,a=256,l=1/0,c=9007199254740991,u=NaN,s=4294967295,d=[["ary",o],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",i],["partialRight",64],["rearg",a]],f="[object Arguments]",p="[object Array]",h="[object Boolean]",g="[object Date]",v="[object Error]",m="[object Function]",b="[object GeneratorFunction]",y="[object Map]",w="[object Number]",x="[object Object]",$="[object Promise]",_="[object RegExp]",k="[object Set]",j="[object String]",z="[object Symbol]",C="[object WeakMap]",A="[object ArrayBuffer]",S="[object DataView]",R="[object Float32Array]",O="[object Float64Array]",E="[object Int8Array]",P="[object Int16Array]",I="[object Int32Array]",L="[object Uint8Array]",F="[object Uint8ClampedArray]",N="[object Uint16Array]",W="[object Uint32Array]",B=/\b__p \+= '';/g,T=/\b(__p \+=) '' \+/g,D=/(__e\(.*?\)|\b__t\)) \+\n'';/g,M=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,V=RegExp(M.source),K=RegExp(U.source),q=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,H=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,J=/[\\^$.*+?()[\]{}|]/g,Q=RegExp(J.source),ee=/^\s+/,te=/\s/,re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ne=/\{\n\/\* \[wrapped with (.+)\] \*/,ie=/,? & /,oe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ae=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ue=/\w*$/,se=/^[-+]0x[0-9a-f]+$/i,de=/^0b[01]+$/i,fe=/^\[object .+?Constructor\]$/,pe=/^0o[0-7]+$/i,he=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ve=/($^)/,me=/['\n\r\u2028\u2029\\]/g,be="\\ud800-\\udfff",ye="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",we="\\u2700-\\u27bf",xe="a-z\\xdf-\\xf6\\xf8-\\xff",$e="A-Z\\xc0-\\xd6\\xd8-\\xde",_e="\\ufe0e\\ufe0f",ke="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",je="['’]",ze="["+be+"]",Ce="["+ke+"]",Ae="["+ye+"]",Se="\\d+",Re="["+we+"]",Oe="["+xe+"]",Ee="[^"+be+ke+Se+we+xe+$e+"]",Pe="\\ud83c[\\udffb-\\udfff]",Ie="[^"+be+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="["+$e+"]",We="\\u200d",Be="(?:"+Oe+"|"+Ee+")",Te="(?:"+Ne+"|"+Ee+")",De="(?:['’](?:d|ll|m|re|s|t|ve))?",Me="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ue="(?:"+Ae+"|"+Pe+")?",Ve="["+_e+"]?",Ke=Ve+Ue+"(?:"+We+"(?:"+[Ie,Le,Fe].join("|")+")"+Ve+Ue+")*",qe="(?:"+[Re,Le,Fe].join("|")+")"+Ke,Ze="(?:"+[Ie+Ae+"?",Ae,Le,Fe,ze].join("|")+")",He=RegExp(je,"g"),Xe=RegExp(Ae,"g"),Ye=RegExp(Pe+"(?="+Pe+")|"+Ze+Ke,"g"),Ge=RegExp([Ne+"?"+Oe+"+"+De+"(?="+[Ce,Ne,"$"].join("|")+")",Te+"+"+Me+"(?="+[Ce,Ne+Be,"$"].join("|")+")",Ne+"?"+Be+"+"+De,Ne+"+"+Me,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Se,qe].join("|"),"g"),Je=RegExp("["+We+be+ye+_e+"]"),Qe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,et=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tt=-1,rt={};rt[R]=rt[O]=rt[E]=rt[P]=rt[I]=rt[L]=rt[F]=rt[N]=rt[W]=!0,rt[f]=rt[p]=rt[A]=rt[h]=rt[S]=rt[g]=rt[v]=rt[m]=rt[y]=rt[w]=rt[x]=rt[_]=rt[k]=rt[j]=rt[C]=!1;var it={};it[f]=it[p]=it[A]=it[S]=it[h]=it[g]=it[R]=it[O]=it[E]=it[P]=it[I]=it[y]=it[w]=it[x]=it[_]=it[k]=it[j]=it[z]=it[L]=it[F]=it[N]=it[W]=!0,it[v]=it[m]=it[C]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ut=parseInt,st="object"==typeof nt&&nt&&nt.Object===Object&&nt,dt="object"==typeof self&&self&&self.Object===Object&&self,ft=st||dt||Function("return this")(),pt=at&&!at.nodeType&&at,ht=pt&&ot&&!ot.nodeType&&ot,gt=ht&&ht.exports===pt,vt=gt&&st.process,mt=function(){try{var e=ht&&ht.require&&ht.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),bt=mt&&mt.isArrayBuffer,yt=mt&&mt.isDate,wt=mt&&mt.isMap,xt=mt&&mt.isRegExp,$t=mt&&mt.isSet,_t=mt&&mt.isTypedArray;function kt(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)}function jt(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(n,a,r(a),e)}return n}function zt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Ct(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function At(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function St(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function Rt(e,t){return!(null==e||!e.length)&&Tt(e,t,0)>-1}function Ot(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function Et(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function Pt(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function It(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function Lt(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function Ft(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Nt=Vt("length");function Wt(e,t,r){var n;return r(e,function(e,r,i){if(t(e,r,i))return n=r,!1}),n}function Bt(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Tt(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):Bt(e,Mt,r)}function Dt(e,t,r,n){for(var i=r-1,o=e.length;++i<o;)if(n(e[i],t))return i;return-1}function Mt(e){return e!=e}function Ut(e,t){var r=null==e?0:e.length;return r?Zt(e,t)/r:u}function Vt(t){return function(r){return null==r?e:r[t]}}function Kt(t){return function(r){return null==t?e:t[r]}}function qt(e,t,r,n,i){return i(e,function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)}),r}function Zt(t,r){for(var n,i=-1,o=t.length;++i<o;){var a=r(t[i]);a!==e&&(n=n===e?a:n+a)}return n}function Ht(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Xt(e){return e?e.slice(0,fr(e)+1).replace(ee,""):e}function Yt(e){return function(t){return e(t)}}function Gt(e,t){return Et(t,function(t){return e[t]})}function Jt(e,t){return e.has(t)}function Qt(e,t){for(var r=-1,n=e.length;++r<n&&Tt(t,e[r],0)>-1;);return r}function er(e,t){for(var r=e.length;r--&&Tt(t,e[r],0)>-1;);return r}var tr=Kt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),rr=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nr(e){return"\\"+lt[e]}function ir(e){return Je.test(e)}function or(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function ar(e,t){return function(r){return e(t(r))}}function lr(e,t){for(var r=-1,i=e.length,o=0,a=[];++r<i;){var l=e[r];l!==t&&l!==n||(e[r]=n,a[o++]=r)}return a}function cr(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function ur(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=[e,e]}),r}function sr(e){return ir(e)?function(e){for(var t=Ye.lastIndex=0;Ye.test(e);)++t;return t}(e):Nt(e)}function dr(e){return ir(e)?function(e){return e.match(Ye)||[]}(e):function(e){return e.split("")}(e)}function fr(e){for(var t=e.length;t--&&te.test(e.charAt(t)););return t}var pr=Kt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),hr=function te(be){var ye,we=(be=null==be?ft:hr.defaults(ft.Object(),be,hr.pick(ft,et))).Array,xe=be.Date,$e=be.Error,_e=be.Function,ke=be.Math,je=be.Object,ze=be.RegExp,Ce=be.String,Ae=be.TypeError,Se=we.prototype,Re=_e.prototype,Oe=je.prototype,Ee=be["__core-js_shared__"],Pe=Re.toString,Ie=Oe.hasOwnProperty,Le=0,Fe=(ye=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||""))?"Symbol(src)_1."+ye:"",Ne=Oe.toString,We=Pe.call(je),Be=ft._,Te=ze("^"+Pe.call(Ie).replace(J,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),De=gt?be.Buffer:e,Me=be.Symbol,Ue=be.Uint8Array,Ve=De?De.allocUnsafe:e,Ke=ar(je.getPrototypeOf,je),qe=je.create,Ze=Oe.propertyIsEnumerable,Ye=Se.splice,Je=Me?Me.isConcatSpreadable:e,nt=Me?Me.iterator:e,ot=Me?Me.toStringTag:e,at=function(){try{var e=so(je,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=be.clearTimeout!==ft.clearTimeout&&be.clearTimeout,st=xe&&xe.now!==ft.Date.now&&xe.now,dt=be.setTimeout!==ft.setTimeout&&be.setTimeout,pt=ke.ceil,ht=ke.floor,vt=je.getOwnPropertySymbols,mt=De?De.isBuffer:e,Nt=be.isFinite,Kt=Se.join,gr=ar(je.keys,je),vr=ke.max,mr=ke.min,br=xe.now,yr=be.parseInt,wr=ke.random,xr=Se.reverse,$r=so(be,"DataView"),_r=so(be,"Map"),kr=so(be,"Promise"),jr=so(be,"Set"),zr=so(be,"WeakMap"),Cr=so(je,"create"),Ar=zr&&new zr,Sr={},Rr=No($r),Or=No(_r),Er=No(kr),Pr=No(jr),Ir=No(zr),Lr=Me?Me.prototype:e,Fr=Lr?Lr.valueOf:e,Nr=Lr?Lr.toString:e;function Wr(e){if(el(e)&&!Ua(e)&&!(e instanceof Mr)){if(e instanceof Dr)return e;if(Ie.call(e,"__wrapped__"))return Wo(e)}return new Dr(e)}var Br=function(){function t(){}return function(r){if(!Qa(r))return{};if(qe)return qe(r);t.prototype=r;var n=new t;return t.prototype=e,n}}();function Tr(){}function Dr(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=e}function Mr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=s,this.__views__=[]}function Ur(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Vr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Kr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function qr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Kr;++t<r;)this.add(e[t])}function Zr(e){var t=this.__data__=new Vr(e);this.size=t.size}function Hr(e,t){var r=Ua(e),n=!r&&Ma(e),i=!r&&!n&&Za(e),o=!r&&!n&&!i&&cl(e),a=r||n||i||o,l=a?Ht(e.length,Ce):[],c=l.length;for(var u in e)!t&&!Ie.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||bo(u,c))||l.push(u);return l}function Xr(t){var r=t.length;return r?t[Zn(0,r-1)]:e}function Yr(e,t){return Io(Ai(e),an(t,0,e.length))}function Gr(e){return Io(Ai(e))}function Jr(t,r,n){(n!==e&&!Ba(t[r],n)||n===e&&!(r in t))&&nn(t,r,n)}function Qr(t,r,n){var i=t[r];Ie.call(t,r)&&Ba(i,n)&&(n!==e||r in t)||nn(t,r,n)}function en(e,t){for(var r=e.length;r--;)if(Ba(e[r][0],t))return r;return-1}function tn(e,t,r,n){return dn(e,function(e,i,o){t(n,e,r(e),o)}),n}function rn(e,t){return e&&Si(t,Rl(t),e)}function nn(e,t,r){"__proto__"==t&&at?at(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function on(t,r){for(var n=-1,i=r.length,o=we(i),a=null==t;++n<i;)o[n]=a?e:jl(t,r[n]);return o}function an(t,r,n){return t==t&&(n!==e&&(t=t<=n?t:n),r!==e&&(t=t>=r?t:r)),t}function ln(t,r,n,i,o,a){var l,c=1&r,u=2&r,s=4&r;if(n&&(l=o?n(t,i,o,a):n(t)),l!==e)return l;if(!Qa(t))return t;var d=Ua(t);if(d){if(l=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(t),!c)return Ai(t,l)}else{var p=ho(t),v=p==m||p==b;if(Za(t))return $i(t,c);if(p==x||p==f||v&&!o){if(l=u||v?{}:vo(t),!c)return u?function(e,t){return Si(e,po(e),t)}(t,function(e,t){return e&&Si(t,Ol(t),e)}(l,t)):function(e,t){return Si(e,fo(e),t)}(t,rn(l,t))}else{if(!it[p])return o?t:{};l=function(e,t,r){var n,i=e.constructor;switch(t){case A:return _i(e);case h:case g:return new i(+e);case S:return function(e,t){var r=t?_i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case R:case O:case E:case P:case I:case L:case F:case N:case W:return ki(e,r);case y:return new i;case w:case j:return new i(e);case _:return function(e){var t=new e.constructor(e.source,ue.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new i;case z:return n=e,Fr?je(Fr.call(n)):{}}}(t,p,c)}}a||(a=new Zr);var $=a.get(t);if($)return $;a.set(t,l),ol(t)?t.forEach(function(e){l.add(ln(e,r,n,e,t,a))}):tl(t)&&t.forEach(function(e,i){l.set(i,ln(e,r,n,i,t,a))});var C=d?e:(s?u?no:ro:u?Ol:Rl)(t);return zt(C||t,function(e,i){C&&(e=t[i=e]),Qr(l,i,ln(e,r,n,i,t,a))}),l}function cn(t,r,n){var i=n.length;if(null==t)return!i;for(t=je(t);i--;){var o=n[i],a=r[o],l=t[o];if(l===e&&!(o in t)||!a(l))return!1}return!0}function un(r,n,i){if("function"!=typeof r)throw new Ae(t);return Ro(function(){r.apply(e,i)},n)}function sn(e,t,r,n){var i=-1,o=Rt,a=!0,l=e.length,c=[],u=t.length;if(!l)return c;r&&(t=Et(t,Yt(r))),n?(o=Ot,a=!1):t.length>=200&&(o=Jt,a=!1,t=new qr(t));e:for(;++i<l;){var s=e[i],d=null==r?s:r(s);if(s=n||0!==s?s:0,a&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;c.push(s)}else o(t,d,n)||c.push(s)}return c}Wr.templateSettings={escape:q,evaluate:Z,interpolate:H,variable:"",imports:{_:Wr}},Wr.prototype=Tr.prototype,Wr.prototype.constructor=Wr,Dr.prototype=Br(Tr.prototype),Dr.prototype.constructor=Dr,Mr.prototype=Br(Tr.prototype),Mr.prototype.constructor=Mr,Ur.prototype.clear=function(){this.__data__=Cr?Cr(null):{},this.size=0},Ur.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ur.prototype.get=function(t){var n=this.__data__;if(Cr){var i=n[t];return i===r?e:i}return Ie.call(n,t)?n[t]:e},Ur.prototype.has=function(t){var r=this.__data__;return Cr?r[t]!==e:Ie.call(r,t)},Ur.prototype.set=function(t,n){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=Cr&&n===e?r:n,this},Vr.prototype.clear=function(){this.__data__=[],this.size=0},Vr.prototype.delete=function(e){var t=this.__data__,r=en(t,e);return!(r<0||(r==t.length-1?t.pop():Ye.call(t,r,1),--this.size,0))},Vr.prototype.get=function(t){var r=this.__data__,n=en(r,t);return n<0?e:r[n][1]},Vr.prototype.has=function(e){return en(this.__data__,e)>-1},Vr.prototype.set=function(e,t){var r=this.__data__,n=en(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Kr.prototype.clear=function(){this.size=0,this.__data__={hash:new Ur,map:new(_r||Vr),string:new Ur}},Kr.prototype.delete=function(e){var t=co(this,e).delete(e);return this.size-=t?1:0,t},Kr.prototype.get=function(e){return co(this,e).get(e)},Kr.prototype.has=function(e){return co(this,e).has(e)},Kr.prototype.set=function(e,t){var r=co(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},qr.prototype.add=qr.prototype.push=function(e){return this.__data__.set(e,r),this},qr.prototype.has=function(e){return this.__data__.has(e)},Zr.prototype.clear=function(){this.__data__=new Vr,this.size=0},Zr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Zr.prototype.get=function(e){return this.__data__.get(e)},Zr.prototype.has=function(e){return this.__data__.has(e)},Zr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Vr){var n=r.__data__;if(!_r||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Kr(n)}return r.set(e,t),this.size=r.size,this};var dn=Ei(yn),fn=Ei(wn,!0);function pn(e,t){var r=!0;return dn(e,function(e,n,i){return r=!!t(e,n,i)}),r}function hn(t,r,n){for(var i=-1,o=t.length;++i<o;){var a=t[i],l=r(a);if(null!=l&&(c===e?l==l&&!ll(l):n(l,c)))var c=l,u=a}return u}function gn(e,t){var r=[];return dn(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function vn(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=mo),i||(i=[]);++o<a;){var l=e[o];t>0&&r(l)?t>1?vn(l,t-1,r,n,i):Pt(i,l):n||(i[i.length]=l)}return i}var mn=Pi(),bn=Pi(!0);function yn(e,t){return e&&mn(e,t,Rl)}function wn(e,t){return e&&bn(e,t,Rl)}function xn(e,t){return St(t,function(t){return Ya(e[t])})}function $n(t,r){for(var n=0,i=(r=bi(r,t)).length;null!=t&&n<i;)t=t[Fo(r[n++])];return n&&n==i?t:e}function _n(e,t,r){var n=t(e);return Ua(e)?n:Pt(n,r(e))}function kn(t){return null==t?t===e?"[object Undefined]":"[object Null]":ot&&ot in je(t)?function(t){var r=Ie.call(t,ot),n=t[ot];try{t[ot]=e;var i=!0}catch(e){}var o=Ne.call(t);return i&&(r?t[ot]=n:delete t[ot]),o}(t):function(e){return Ne.call(e)}(t)}function jn(e,t){return e>t}function zn(e,t){return null!=e&&Ie.call(e,t)}function Cn(e,t){return null!=e&&t in je(e)}function An(t,r,n){for(var i=n?Ot:Rt,o=t[0].length,a=t.length,l=a,c=we(a),u=1/0,s=[];l--;){var d=t[l];l&&r&&(d=Et(d,Yt(r))),u=mr(d.length,u),c[l]=!n&&(r||o>=120&&d.length>=120)?new qr(l&&d):e}d=t[0];var f=-1,p=c[0];e:for(;++f<o&&s.length<u;){var h=d[f],g=r?r(h):h;if(h=n||0!==h?h:0,!(p?Jt(p,g):i(s,g,n))){for(l=a;--l;){var v=c[l];if(!(v?Jt(v,g):i(t[l],g,n)))continue e}p&&p.push(g),s.push(h)}}return s}function Sn(t,r,n){var i=null==(t=Co(t,r=bi(r,t)))?t:t[Fo(Xo(r))];return null==i?e:kt(i,t,n)}function Rn(e){return el(e)&&kn(e)==f}function On(t,r,n,i,o){return t===r||(null==t||null==r||!el(t)&&!el(r)?t!=t&&r!=r:function(t,r,n,i,o,a){var l=Ua(t),c=Ua(r),u=l?p:ho(t),s=c?p:ho(r),d=(u=u==f?x:u)==x,m=(s=s==f?x:s)==x,b=u==s;if(b&&Za(t)){if(!Za(r))return!1;l=!0,d=!1}if(b&&!d)return a||(a=new Zr),l||cl(t)?eo(t,r,n,i,o,a):function(e,t,r,n,i,o,a){switch(r){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case A:return!(e.byteLength!=t.byteLength||!o(new Ue(e),new Ue(t)));case h:case g:case w:return Ba(+e,+t);case v:return e.name==t.name&&e.message==t.message;case _:case j:return e==t+"";case y:var l=or;case k:var c=1&n;if(l||(l=cr),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;n|=2,a.set(e,t);var s=eo(l(e),l(t),n,i,o,a);return a.delete(e),s;case z:if(Fr)return Fr.call(e)==Fr.call(t)}return!1}(t,r,u,n,i,o,a);if(!(1&n)){var $=d&&Ie.call(t,"__wrapped__"),C=m&&Ie.call(r,"__wrapped__");if($||C){var R=$?t.value():t,O=C?r.value():r;return a||(a=new Zr),o(R,O,n,i,a)}}return!!b&&(a||(a=new Zr),function(t,r,n,i,o,a){var l=1&n,c=ro(t),u=c.length,s=ro(r),d=s.length;if(u!=d&&!l)return!1;for(var f=u;f--;){var p=c[f];if(!(l?p in r:Ie.call(r,p)))return!1}var h=a.get(t),g=a.get(r);if(h&&g)return h==r&&g==t;var v=!0;a.set(t,r),a.set(r,t);for(var m=l;++f<u;){var b=t[p=c[f]],y=r[p];if(i)var w=l?i(y,b,p,r,t,a):i(b,y,p,t,r,a);if(!(w===e?b===y||o(b,y,n,i,a):w)){v=!1;break}m||(m="constructor"==p)}if(v&&!m){var x=t.constructor,$=r.constructor;x==$||!("constructor"in t)||!("constructor"in r)||"function"==typeof x&&x instanceof x&&"function"==typeof $&&$ instanceof $||(v=!1)}return a.delete(t),a.delete(r),v}(t,r,n,i,o,a))}(t,r,n,i,On,o))}function En(t,r,n,i){var o=n.length,a=o,l=!i;if(null==t)return!a;for(t=je(t);o--;){var c=n[o];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<a;){var u=(c=n[o])[0],s=t[u],d=c[1];if(l&&c[2]){if(s===e&&!(u in t))return!1}else{var f=new Zr;if(i)var p=i(s,d,u,t,r,f);if(!(p===e?On(d,s,3,i,f):p))return!1}}return!0}function Pn(e){return!(!Qa(e)||(t=e,Fe&&Fe in t))&&(Ya(e)?Te:fe).test(No(e));var t}function In(e){return"function"==typeof e?e:null==e?rc:"object"==typeof e?Ua(e)?Tn(e[0],e[1]):Bn(e):dc(e)}function Ln(e){if(!_o(e))return gr(e);var t=[];for(var r in je(e))Ie.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Fn(e){if(!Qa(e))return function(e){var t=[];if(null!=e)for(var r in je(e))t.push(r);return t}(e);var t=_o(e),r=[];for(var n in e)("constructor"!=n||!t&&Ie.call(e,n))&&r.push(n);return r}function Nn(e,t){return e<t}function Wn(e,t){var r=-1,n=Ka(e)?we(e.length):[];return dn(e,function(e,i,o){n[++r]=t(e,i,o)}),n}function Bn(e){var t=uo(e);return 1==t.length&&t[0][2]?jo(t[0][0],t[0][1]):function(r){return r===e||En(r,e,t)}}function Tn(t,r){return wo(t)&&ko(r)?jo(Fo(t),r):function(n){var i=jl(n,t);return i===e&&i===r?zl(n,t):On(r,i,3)}}function Dn(t,r,n,i,o){t!==r&&mn(r,function(a,l){if(o||(o=new Zr),Qa(a))!function(t,r,n,i,o,a,l){var c=Ao(t,n),u=Ao(r,n),s=l.get(u);if(s)Jr(t,n,s);else{var d=a?a(c,u,n+"",t,r,l):e,f=d===e;if(f){var p=Ua(u),h=!p&&Za(u),g=!p&&!h&&cl(u);d=u,p||h||g?Ua(c)?d=c:qa(c)?d=Ai(c):h?(f=!1,d=$i(u,!0)):g?(f=!1,d=ki(u,!0)):d=[]:nl(u)||Ma(u)?(d=c,Ma(c)?d=vl(c):Qa(c)&&!Ya(c)||(d=vo(u))):f=!1}f&&(l.set(u,d),o(d,u,i,a,l),l.delete(u)),Jr(t,n,d)}}(t,r,l,n,Dn,i,o);else{var c=i?i(Ao(t,l),a,l+"",t,r,o):e;c===e&&(c=a),Jr(t,l,c)}},Ol)}function Mn(t,r){var n=t.length;if(n)return bo(r+=r<0?n:0,n)?t[r]:e}function Un(e,t,r){t=t.length?Et(t,function(e){return Ua(e)?function(t){return $n(t,1===e.length?e[0]:e)}:e}):[rc];var n=-1;t=Et(t,Yt(lo()));var i=Wn(e,function(e,r,i){var o=Et(t,function(t){return t(e)});return{criteria:o,index:++n,value:e}});return function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(i,function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,a=i.length,l=r.length;++n<a;){var c=ji(i[n],o[n]);if(c)return n>=l?c:c*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)})}function Vn(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var a=t[n],l=$n(e,a);r(l,a)&&Jn(o,bi(a,e),l)}return o}function Kn(e,t,r,n){var i=n?Dt:Tt,o=-1,a=t.length,l=e;for(e===t&&(t=Ai(t)),r&&(l=Et(e,Yt(r)));++o<a;)for(var c=0,u=t[o],s=r?r(u):u;(c=i(l,s,c,n))>-1;)l!==e&&Ye.call(l,c,1),Ye.call(e,c,1);return e}function qn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;bo(i)?Ye.call(e,i,1):si(e,i)}}return e}function Zn(e,t){return e+ht(wr()*(t-e+1))}function Hn(e,t){var r="";if(!e||t<1||t>c)return r;do{t%2&&(r+=e),(t=ht(t/2))&&(e+=e)}while(t);return r}function Xn(e,t){return Oo(zo(e,t,rc),e+"")}function Yn(e){return Xr(Bl(e))}function Gn(e,t){var r=Bl(e);return Io(r,an(t,0,r.length))}function Jn(t,r,n,i){if(!Qa(t))return t;for(var o=-1,a=(r=bi(r,t)).length,l=a-1,c=t;null!=c&&++o<a;){var u=Fo(r[o]),s=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(o!=l){var d=c[u];(s=i?i(d,u,c):e)===e&&(s=Qa(d)?d:bo(r[o+1])?[]:{})}Qr(c,u,s),c=c[u]}return t}var Qn=Ar?function(e,t){return Ar.set(e,t),e}:rc,ei=at?function(e,t){return at(e,"toString",{configurable:!0,enumerable:!1,value:Ql(t),writable:!0})}:rc;function ti(e){return Io(Bl(e))}function ri(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=we(i);++n<i;)o[n]=e[n+t];return o}function ni(e,t){var r;return dn(e,function(e,n,i){return!(r=t(e,n,i))}),!!r}function ii(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var o=n+i>>>1,a=e[o];null!==a&&!ll(a)&&(r?a<=t:a<t)?n=o+1:i=o}return i}return oi(e,t,rc,r)}function oi(t,r,n,i){var o=0,a=null==t?0:t.length;if(0===a)return 0;for(var l=(r=n(r))!=r,c=null===r,u=ll(r),s=r===e;o<a;){var d=ht((o+a)/2),f=n(t[d]),p=f!==e,h=null===f,g=f==f,v=ll(f);if(l)var m=i||g;else m=s?g&&(i||p):c?g&&p&&(i||!h):u?g&&p&&!h&&(i||!v):!h&&!v&&(i?f<=r:f<r);m?o=d+1:a=d}return mr(a,4294967294)}function ai(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var a=e[r],l=t?t(a):a;if(!r||!Ba(l,c)){var c=l;o[i++]=0===a?0:a}}return o}function li(e){return"number"==typeof e?e:ll(e)?u:+e}function ci(e){if("string"==typeof e)return e;if(Ua(e))return Et(e,ci)+"";if(ll(e))return Nr?Nr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ui(e,t,r){var n=-1,i=Rt,o=e.length,a=!0,l=[],c=l;if(r)a=!1,i=Ot;else if(o>=200){var u=t?null:Hi(e);if(u)return cr(u);a=!1,i=Jt,c=new qr}else c=t?[]:l;e:for(;++n<o;){var s=e[n],d=t?t(s):s;if(s=r||0!==s?s:0,a&&d==d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),l.push(s)}else i(c,d,r)||(c!==l&&c.push(d),l.push(s))}return l}function si(e,t){return null==(e=Co(e,t=bi(t,e)))||delete e[Fo(Xo(t))]}function di(e,t,r,n){return Jn(e,t,r($n(e,t)),n)}function fi(e,t,r,n){for(var i=e.length,o=n?i:-1;(n?o--:++o<i)&&t(e[o],o,e););return r?ri(e,n?0:o,n?o+1:i):ri(e,n?o+1:0,n?i:o)}function pi(e,t){var r=e;return r instanceof Mr&&(r=r.value()),It(t,function(e,t){return t.func.apply(t.thisArg,Pt([e],t.args))},r)}function hi(e,t,r){var n=e.length;if(n<2)return n?ui(e[0]):[];for(var i=-1,o=we(n);++i<n;)for(var a=e[i],l=-1;++l<n;)l!=i&&(o[i]=sn(o[i]||a,e[l],t,r));return ui(vn(o,1),t,r)}function gi(t,r,n){for(var i=-1,o=t.length,a=r.length,l={};++i<o;){var c=i<a?r[i]:e;n(l,t[i],c)}return l}function vi(e){return qa(e)?e:[]}function mi(e){return"function"==typeof e?e:rc}function bi(e,t){return Ua(e)?e:wo(e,t)?[e]:Lo(ml(e))}var yi=Xn;function wi(t,r,n){var i=t.length;return n=n===e?i:n,!r&&n>=i?t:ri(t,r,n)}var xi=lt||function(e){return ft.clearTimeout(e)};function $i(e,t){if(t)return e.slice();var r=e.length,n=Ve?Ve(r):new e.constructor(r);return e.copy(n),n}function _i(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function ki(e,t){var r=t?_i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ji(t,r){if(t!==r){var n=t!==e,i=null===t,o=t==t,a=ll(t),l=r!==e,c=null===r,u=r==r,s=ll(r);if(!c&&!s&&!a&&t>r||a&&l&&u&&!c&&!s||i&&l&&u||!n&&u||!o)return 1;if(!i&&!a&&!s&&t<r||s&&n&&o&&!i&&!a||c&&n&&o||!l&&o||!u)return-1}return 0}function zi(e,t,r,n){for(var i=-1,o=e.length,a=r.length,l=-1,c=t.length,u=vr(o-a,0),s=we(c+u),d=!n;++l<c;)s[l]=t[l];for(;++i<a;)(d||i<o)&&(s[r[i]]=e[i]);for(;u--;)s[l++]=e[i++];return s}function Ci(e,t,r,n){for(var i=-1,o=e.length,a=-1,l=r.length,c=-1,u=t.length,s=vr(o-l,0),d=we(s+u),f=!n;++i<s;)d[i]=e[i];for(var p=i;++c<u;)d[p+c]=t[c];for(;++a<l;)(f||i<o)&&(d[p+r[a]]=e[i++]);return d}function Ai(e,t){var r=-1,n=e.length;for(t||(t=we(n));++r<n;)t[r]=e[r];return t}function Si(t,r,n,i){var o=!n;n||(n={});for(var a=-1,l=r.length;++a<l;){var c=r[a],u=i?i(n[c],t[c],c,n,t):e;u===e&&(u=t[c]),o?nn(n,c,u):Qr(n,c,u)}return n}function Ri(e,t){return function(r,n){var i=Ua(r)?jt:tn,o=t?t():{};return i(r,e,lo(n,2),o)}}function Oi(t){return Xn(function(r,n){var i=-1,o=n.length,a=o>1?n[o-1]:e,l=o>2?n[2]:e;for(a=t.length>3&&"function"==typeof a?(o--,a):e,l&&yo(n[0],n[1],l)&&(a=o<3?e:a,o=1),r=je(r);++i<o;){var c=n[i];c&&t(r,c,i,a)}return r})}function Ei(e,t){return function(r,n){if(null==r)return r;if(!Ka(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=je(r);(t?o--:++o<i)&&!1!==n(a[o],o,a););return r}}function Pi(e){return function(t,r,n){for(var i=-1,o=je(t),a=n(t),l=a.length;l--;){var c=a[e?l:++i];if(!1===r(o[c],c,o))break}return t}}function Ii(t){return function(r){var n=ir(r=ml(r))?dr(r):e,i=n?n[0]:r.charAt(0),o=n?wi(n,1).join(""):r.slice(1);return i[t]()+o}}function Li(e){return function(t){return It(Yl(Ml(t).replace(He,"")),e,"")}}function Fi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Br(e.prototype),n=e.apply(r,t);return Qa(n)?n:r}}function Ni(t){return function(r,n,i){var o=je(r);if(!Ka(r)){var a=lo(n,3);r=Rl(r),n=function(e){return a(o[e],e,o)}}var l=t(r,n,i);return l>-1?o[a?r[l]:l]:e}}function Wi(r){return to(function(n){var i=n.length,o=i,a=Dr.prototype.thru;for(r&&n.reverse();o--;){var l=n[o];if("function"!=typeof l)throw new Ae(t);if(a&&!c&&"wrapper"==oo(l))var c=new Dr([],!0)}for(o=c?o:i;++o<i;){var u=oo(l=n[o]),s="wrapper"==u?io(l):e;c=s&&xo(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?c[oo(s[0])].apply(c,s[3]):1==l.length&&xo(l)?c[u]():c.thru(l)}return function(){var e=arguments,t=e[0];if(c&&1==e.length&&Ua(t))return c.plant(t).value();for(var r=0,o=i?n[r].apply(this,e):t;++r<i;)o=n[r].call(this,o);return o}})}function Bi(t,r,n,i,a,l,c,u,s,d){var f=r&o,p=1&r,h=2&r,g=24&r,v=512&r,m=h?e:Fi(t);return function o(){for(var b=arguments.length,y=we(b),w=b;w--;)y[w]=arguments[w];if(g)var x=ao(o),$=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(y,x);if(i&&(y=zi(y,i,a,g)),l&&(y=Ci(y,l,c,g)),b-=$,g&&b<d){var _=lr(y,x);return qi(t,r,Bi,o.placeholder,n,y,_,u,s,d-b)}var k=p?n:this,j=h?k[t]:t;return b=y.length,u?y=function(t,r){for(var n=t.length,i=mr(r.length,n),o=Ai(t);i--;){var a=r[i];t[i]=bo(a,n)?o[a]:e}return t}(y,u):v&&b>1&&y.reverse(),f&&s<b&&(y.length=s),this&&this!==ft&&this instanceof o&&(j=m||Fi(j)),j.apply(k,y)}}function Ti(e,t){return function(r,n){return function(e,t,r,n){return yn(e,function(e,i,o){t(n,r(e),i,o)}),n}(r,e,t(n),{})}}function Di(t,r){return function(n,i){var o;if(n===e&&i===e)return r;if(n!==e&&(o=n),i!==e){if(o===e)return i;"string"==typeof n||"string"==typeof i?(n=ci(n),i=ci(i)):(n=li(n),i=li(i)),o=t(n,i)}return o}}function Mi(e){return to(function(t){return t=Et(t,Yt(lo())),Xn(function(r){var n=this;return e(t,function(e){return kt(e,n,r)})})})}function Ui(t,r){var n=(r=r===e?" ":ci(r)).length;if(n<2)return n?Hn(r,t):r;var i=Hn(r,pt(t/sr(r)));return ir(r)?wi(dr(i),0,t).join(""):i.slice(0,t)}function Vi(t){return function(r,n,i){return i&&"number"!=typeof i&&yo(r,n,i)&&(n=i=e),r=fl(r),n===e?(n=r,r=0):n=fl(n),function(e,t,r,n){for(var i=-1,o=vr(pt((t-e)/(r||1)),0),a=we(o);o--;)a[n?o:++i]=e,e+=r;return a}(r,n,i=i===e?r<n?1:-1:fl(i),t)}}function Ki(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=gl(t),r=gl(r)),e(t,r)}}function qi(t,r,n,o,a,l,c,u,s,d){var f=8&r;r|=f?i:64,4&(r&=~(f?64:i))||(r&=-4);var p=[t,r,a,f?l:e,f?c:e,f?e:l,f?e:c,u,s,d],h=n.apply(e,p);return xo(t)&&So(h,p),h.placeholder=o,Eo(h,t,r)}function Zi(e){var t=ke[e];return function(e,r){if(e=gl(e),(r=null==r?0:mr(pl(r),292))&&Nt(e)){var n=(ml(e)+"e").split("e");return+((n=(ml(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Hi=jr&&1/cr(new jr([,-0]))[1]==l?function(e){return new jr(e)}:lc;function Xi(e){return function(t){var r=ho(t);return r==y?or(t):r==k?ur(t):function(e,t){return Et(t,function(t){return[t,e[t]]})}(t,e(t))}}function Yi(r,l,c,u,s,d,f,p){var h=2&l;if(!h&&"function"!=typeof r)throw new Ae(t);var g=u?u.length:0;if(g||(l&=-97,u=s=e),f=f===e?f:vr(pl(f),0),p=p===e?p:pl(p),g-=s?s.length:0,64&l){var v=u,m=s;u=s=e}var b=h?e:io(r),y=[r,l,c,u,s,v,m,d,f,p];if(b&&function(e,t){var r=e[1],i=t[1],l=r|i,c=l<131,u=i==o&&8==r||i==o&&r==a&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==r;if(!c&&!u)return e;1&i&&(e[2]=t[2],l|=1&r?0:4);var s=t[3];if(s){var d=e[3];e[3]=d?zi(d,s,t[4]):s,e[4]=d?lr(e[3],n):t[4]}(s=t[5])&&(d=e[5],e[5]=d?Ci(d,s,t[6]):s,e[6]=d?lr(e[5],n):t[6]),(s=t[7])&&(e[7]=s),i&o&&(e[8]=null==e[8]?t[8]:mr(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=l}(y,b),r=y[0],l=y[1],c=y[2],u=y[3],s=y[4],!(p=y[9]=y[9]===e?h?0:r.length:vr(y[9]-g,0))&&24&l&&(l&=-25),l&&1!=l)w=8==l||16==l?function(t,r,n){var i=Fi(t);return function o(){for(var a=arguments.length,l=we(a),c=a,u=ao(o);c--;)l[c]=arguments[c];var s=a<3&&l[0]!==u&&l[a-1]!==u?[]:lr(l,u);return(a-=s.length)<n?qi(t,r,Bi,o.placeholder,e,l,s,e,e,n-a):kt(this&&this!==ft&&this instanceof o?i:t,this,l)}}(r,l,p):l!=i&&33!=l||s.length?Bi.apply(e,y):function(e,t,r,n){var i=1&t,o=Fi(e);return function t(){for(var a=-1,l=arguments.length,c=-1,u=n.length,s=we(u+l),d=this&&this!==ft&&this instanceof t?o:e;++c<u;)s[c]=n[c];for(;l--;)s[c++]=arguments[++a];return kt(d,i?r:this,s)}}(r,l,c,u);else var w=function(e,t,r){var n=1&t,i=Fi(e);return function t(){return(this&&this!==ft&&this instanceof t?i:e).apply(n?r:this,arguments)}}(r,l,c);return Eo((b?Qn:So)(w,y),r,l)}function Gi(t,r,n,i){return t===e||Ba(t,Oe[n])&&!Ie.call(i,n)?r:t}function Ji(t,r,n,i,o,a){return Qa(t)&&Qa(r)&&(a.set(r,t),Dn(t,r,e,Ji,a),a.delete(r)),t}function Qi(t){return nl(t)?e:t}function eo(t,r,n,i,o,a){var l=1&n,c=t.length,u=r.length;if(c!=u&&!(l&&u>c))return!1;var s=a.get(t),d=a.get(r);if(s&&d)return s==r&&d==t;var f=-1,p=!0,h=2&n?new qr:e;for(a.set(t,r),a.set(r,t);++f<c;){var g=t[f],v=r[f];if(i)var m=l?i(v,g,f,r,t,a):i(g,v,f,t,r,a);if(m!==e){if(m)continue;p=!1;break}if(h){if(!Ft(r,function(e,t){if(!Jt(h,t)&&(g===e||o(g,e,n,i,a)))return h.push(t)})){p=!1;break}}else if(g!==v&&!o(g,v,n,i,a)){p=!1;break}}return a.delete(t),a.delete(r),p}function to(t){return Oo(zo(t,e,Vo),t+"")}function ro(e){return _n(e,Rl,fo)}function no(e){return _n(e,Ol,po)}var io=Ar?function(e){return Ar.get(e)}:lc;function oo(e){for(var t=e.name+"",r=Sr[t],n=Ie.call(Sr,t)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==e)return i.name}return t}function ao(e){return(Ie.call(Wr,"placeholder")?Wr:e).placeholder}function lo(){var e=Wr.iteratee||nc;return e=e===nc?In:e,arguments.length?e(arguments[0],arguments[1]):e}function co(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function uo(e){for(var t=Rl(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,ko(i)]}return t}function so(t,r){var n=function(t,r){return null==t?e:t[r]}(t,r);return Pn(n)?n:e}var fo=vt?function(e){return null==e?[]:(e=je(e),St(vt(e),function(t){return Ze.call(e,t)}))}:hc,po=vt?function(e){for(var t=[];e;)Pt(t,fo(e)),e=Ke(e);return t}:hc,ho=kn;function go(e,t,r){for(var n=-1,i=(t=bi(t,e)).length,o=!1;++n<i;){var a=Fo(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&Ja(i)&&bo(a,i)&&(Ua(e)||Ma(e))}function vo(e){return"function"!=typeof e.constructor||_o(e)?{}:Br(Ke(e))}function mo(e){return Ua(e)||Ma(e)||!!(Je&&e&&e[Je])}function bo(e,t){var r=typeof e;return!!(t=null==t?c:t)&&("number"==r||"symbol"!=r&&he.test(e))&&e>-1&&e%1==0&&e<t}function yo(e,t,r){if(!Qa(r))return!1;var n=typeof t;return!!("number"==n?Ka(r)&&bo(t,r.length):"string"==n&&t in r)&&Ba(r[t],e)}function wo(e,t){if(Ua(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ll(e))||Y.test(e)||!X.test(e)||null!=t&&e in je(t)}function xo(e){var t=oo(e),r=Wr[t];if("function"!=typeof r||!(t in Mr.prototype))return!1;if(e===r)return!0;var n=io(r);return!!n&&e===n[0]}($r&&ho(new $r(new ArrayBuffer(1)))!=S||_r&&ho(new _r)!=y||kr&&ho(kr.resolve())!=$||jr&&ho(new jr)!=k||zr&&ho(new zr)!=C)&&(ho=function(t){var r=kn(t),n=r==x?t.constructor:e,i=n?No(n):"";if(i)switch(i){case Rr:return S;case Or:return y;case Er:return $;case Pr:return k;case Ir:return C}return r});var $o=Ee?Ya:gc;function _o(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function ko(e){return e==e&&!Qa(e)}function jo(t,r){return function(n){return null!=n&&n[t]===r&&(r!==e||t in je(n))}}function zo(t,r,n){return r=vr(r===e?t.length-1:r,0),function(){for(var e=arguments,i=-1,o=vr(e.length-r,0),a=we(o);++i<o;)a[i]=e[r+i];i=-1;for(var l=we(r+1);++i<r;)l[i]=e[i];return l[r]=n(a),kt(t,this,l)}}function Co(e,t){return t.length<2?e:$n(e,ri(t,0,-1))}function Ao(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var So=Po(Qn),Ro=dt||function(e,t){return ft.setTimeout(e,t)},Oo=Po(ei);function Eo(e,t,r){var n=t+"";return Oo(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(re,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return zt(d,function(r){var n="_."+r[0];t&r[1]&&!Rt(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(ne);return t?t[1].split(ie):[]}(n),r)))}function Po(t){var r=0,n=0;return function(){var i=br(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(e,arguments)}}function Io(t,r){var n=-1,i=t.length,o=i-1;for(r=r===e?i:r;++n<r;){var a=Zn(n,o),l=t[a];t[a]=t[n],t[n]=l}return t.length=r,t}var Lo=function(e){var t=Pa(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(G,function(e,r,n,i){t.push(n?i.replace(le,"$1"):r||e)}),t});function Fo(e){if("string"==typeof e||ll(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function No(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Wo(e){if(e instanceof Mr)return e.clone();var t=new Dr(e.__wrapped__,e.__chain__);return t.__actions__=Ai(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bo=Xn(function(e,t){return qa(e)?sn(e,vn(t,1,qa,!0)):[]}),To=Xn(function(t,r){var n=Xo(r);return qa(n)&&(n=e),qa(t)?sn(t,vn(r,1,qa,!0),lo(n,2)):[]}),Do=Xn(function(t,r){var n=Xo(r);return qa(n)&&(n=e),qa(t)?sn(t,vn(r,1,qa,!0),e,n):[]});function Mo(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:pl(r);return i<0&&(i=vr(n+i,0)),Bt(e,lo(t,3),i)}function Uo(t,r,n){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return n!==e&&(o=pl(n),o=n<0?vr(i+o,0):mr(o,i-1)),Bt(t,lo(r,3),o,!0)}function Vo(e){return null!=e&&e.length?vn(e,1):[]}function Ko(t){return t&&t.length?t[0]:e}var qo=Xn(function(e){var t=Et(e,vi);return t.length&&t[0]===e[0]?An(t):[]}),Zo=Xn(function(t){var r=Xo(t),n=Et(t,vi);return r===Xo(n)?r=e:n.pop(),n.length&&n[0]===t[0]?An(n,lo(r,2)):[]}),Ho=Xn(function(t){var r=Xo(t),n=Et(t,vi);return(r="function"==typeof r?r:e)&&n.pop(),n.length&&n[0]===t[0]?An(n,e,r):[]});function Xo(t){var r=null==t?0:t.length;return r?t[r-1]:e}var Yo=Xn(Go);function Go(e,t){return e&&e.length&&t&&t.length?Kn(e,t):e}var Jo=to(function(e,t){var r=null==e?0:e.length,n=on(e,t);return qn(e,Et(t,function(e){return bo(e,r)?+e:e}).sort(ji)),n});function Qo(e){return null==e?e:xr.call(e)}var ea=Xn(function(e){return ui(vn(e,1,qa,!0))}),ta=Xn(function(t){var r=Xo(t);return qa(r)&&(r=e),ui(vn(t,1,qa,!0),lo(r,2))}),ra=Xn(function(t){var r=Xo(t);return r="function"==typeof r?r:e,ui(vn(t,1,qa,!0),e,r)});function na(e){if(!e||!e.length)return[];var t=0;return e=St(e,function(e){if(qa(e))return t=vr(e.length,t),!0}),Ht(t,function(t){return Et(e,Vt(t))})}function ia(t,r){if(!t||!t.length)return[];var n=na(t);return null==r?n:Et(n,function(t){return kt(r,e,t)})}var oa=Xn(function(e,t){return qa(e)?sn(e,t):[]}),aa=Xn(function(e){return hi(St(e,qa))}),la=Xn(function(t){var r=Xo(t);return qa(r)&&(r=e),hi(St(t,qa),lo(r,2))}),ca=Xn(function(t){var r=Xo(t);return r="function"==typeof r?r:e,hi(St(t,qa),e,r)}),ua=Xn(na),sa=Xn(function(t){var r=t.length,n=r>1?t[r-1]:e;return n="function"==typeof n?(t.pop(),n):e,ia(t,n)});function da(e){var t=Wr(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var pa=to(function(t){var r=t.length,n=r?t[0]:0,i=this.__wrapped__,o=function(e){return on(e,t)};return!(r>1||this.__actions__.length)&&i instanceof Mr&&bo(n)?((i=i.slice(n,+n+(r?1:0))).__actions__.push({func:fa,args:[o],thisArg:e}),new Dr(i,this.__chain__).thru(function(t){return r&&!t.length&&t.push(e),t})):this.thru(o)}),ha=Ri(function(e,t,r){Ie.call(e,r)?++e[r]:nn(e,r,1)}),ga=Ni(Mo),va=Ni(Uo);function ma(e,t){return(Ua(e)?zt:dn)(e,lo(t,3))}function ba(e,t){return(Ua(e)?Ct:fn)(e,lo(t,3))}var ya=Ri(function(e,t,r){Ie.call(e,r)?e[r].push(t):nn(e,r,[t])}),wa=Xn(function(e,t,r){var n=-1,i="function"==typeof t,o=Ka(e)?we(e.length):[];return dn(e,function(e){o[++n]=i?kt(t,e,r):Sn(e,t,r)}),o}),xa=Ri(function(e,t,r){nn(e,r,t)});function $a(e,t){return(Ua(e)?Et:Wn)(e,lo(t,3))}var _a=Ri(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]}),ka=Xn(function(e,t){if(null==e)return[];var r=t.length;return r>1&&yo(e,t[0],t[1])?t=[]:r>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Un(e,vn(t,1),[])}),ja=st||function(){return ft.Date.now()};function za(t,r,n){return r=n?e:r,r=t&&null==r?t.length:r,Yi(t,o,e,e,e,e,r)}function Ca(r,n){var i;if("function"!=typeof n)throw new Ae(t);return r=pl(r),function(){return--r>0&&(i=n.apply(this,arguments)),r<=1&&(n=e),i}}var Aa=Xn(function(e,t,r){var n=1;if(r.length){var o=lr(r,ao(Aa));n|=i}return Yi(e,n,t,r,o)}),Sa=Xn(function(e,t,r){var n=3;if(r.length){var o=lr(r,ao(Sa));n|=i}return Yi(t,n,e,r,o)});function Ra(r,n,i){var o,a,l,c,u,s,d=0,f=!1,p=!1,h=!0;if("function"!=typeof r)throw new Ae(t);function g(t){var n=o,i=a;return o=a=e,d=t,c=r.apply(i,n)}function v(t){var r=t-s;return s===e||r>=n||r<0||p&&t-d>=l}function m(){var e=ja();if(v(e))return b(e);u=Ro(m,function(e){var t=n-(e-s);return p?mr(t,l-(e-d)):t}(e))}function b(t){return u=e,h&&o?g(t):(o=a=e,c)}function y(){var t=ja(),r=v(t);if(o=arguments,a=this,s=t,r){if(u===e)return function(e){return d=e,u=Ro(m,n),f?g(e):c}(s);if(p)return xi(u),u=Ro(m,n),g(s)}return u===e&&(u=Ro(m,n)),c}return n=gl(n)||0,Qa(i)&&(f=!!i.leading,l=(p="maxWait"in i)?vr(gl(i.maxWait)||0,n):l,h="trailing"in i?!!i.trailing:h),y.cancel=function(){u!==e&&xi(u),d=0,o=s=a=u=e},y.flush=function(){return u===e?c:b(ja())},y}var Oa=Xn(function(e,t){return un(e,1,t)}),Ea=Xn(function(e,t,r){return un(e,gl(t)||0,r)});function Pa(e,r){if("function"!=typeof e||null!=r&&"function"!=typeof r)throw new Ae(t);var n=function(){var t=arguments,i=r?r.apply(this,t):t[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,t);return n.cache=o.set(i,a)||o,a};return n.cache=new(Pa.Cache||Kr),n}function Ia(e){if("function"!=typeof e)throw new Ae(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Pa.Cache=Kr;var La=yi(function(e,t){var r=(t=1==t.length&&Ua(t[0])?Et(t[0],Yt(lo())):Et(vn(t,1),Yt(lo()))).length;return Xn(function(n){for(var i=-1,o=mr(n.length,r);++i<o;)n[i]=t[i].call(this,n[i]);return kt(e,this,n)})}),Fa=Xn(function(t,r){var n=lr(r,ao(Fa));return Yi(t,i,e,r,n)}),Na=Xn(function(t,r){var n=lr(r,ao(Na));return Yi(t,64,e,r,n)}),Wa=to(function(t,r){return Yi(t,a,e,e,e,r)});function Ba(e,t){return e===t||e!=e&&t!=t}var Ta=Ki(jn),Da=Ki(function(e,t){return e>=t}),Ma=Rn(function(){return arguments}())?Rn:function(e){return el(e)&&Ie.call(e,"callee")&&!Ze.call(e,"callee")},Ua=we.isArray,Va=bt?Yt(bt):function(e){return el(e)&&kn(e)==A};function Ka(e){return null!=e&&Ja(e.length)&&!Ya(e)}function qa(e){return el(e)&&Ka(e)}var Za=mt||gc,Ha=yt?Yt(yt):function(e){return el(e)&&kn(e)==g};function Xa(e){if(!el(e))return!1;var t=kn(e);return t==v||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!nl(e)}function Ya(e){if(!Qa(e))return!1;var t=kn(e);return t==m||t==b||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ga(e){return"number"==typeof e&&e==pl(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function Qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function el(e){return null!=e&&"object"==typeof e}var tl=wt?Yt(wt):function(e){return el(e)&&ho(e)==y};function rl(e){return"number"==typeof e||el(e)&&kn(e)==w}function nl(e){if(!el(e)||kn(e)!=x)return!1;var t=Ke(e);if(null===t)return!0;var r=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Pe.call(r)==We}var il=xt?Yt(xt):function(e){return el(e)&&kn(e)==_},ol=$t?Yt($t):function(e){return el(e)&&ho(e)==k};function al(e){return"string"==typeof e||!Ua(e)&&el(e)&&kn(e)==j}function ll(e){return"symbol"==typeof e||el(e)&&kn(e)==z}var cl=_t?Yt(_t):function(e){return el(e)&&Ja(e.length)&&!!rt[kn(e)]},ul=Ki(Nn),sl=Ki(function(e,t){return e<=t});function dl(e){if(!e)return[];if(Ka(e))return al(e)?dr(e):Ai(e);if(nt&&e[nt])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[nt]());var t=ho(e);return(t==y?or:t==k?cr:Bl)(e)}function fl(e){return e?(e=gl(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function pl(e){var t=fl(e),r=t%1;return t==t?r?t-r:t:0}function hl(e){return e?an(pl(e),0,s):0}function gl(e){if("number"==typeof e)return e;if(ll(e))return u;if(Qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var r=de.test(e);return r||pe.test(e)?ut(e.slice(2),r?2:8):se.test(e)?u:+e}function vl(e){return Si(e,Ol(e))}function ml(e){return null==e?"":ci(e)}var bl=Oi(function(e,t){if(_o(t)||Ka(t))Si(t,Rl(t),e);else for(var r in t)Ie.call(t,r)&&Qr(e,r,t[r])}),yl=Oi(function(e,t){Si(t,Ol(t),e)}),wl=Oi(function(e,t,r,n){Si(t,Ol(t),e,n)}),xl=Oi(function(e,t,r,n){Si(t,Rl(t),e,n)}),$l=to(on),_l=Xn(function(t,r){t=je(t);var n=-1,i=r.length,o=i>2?r[2]:e;for(o&&yo(r[0],r[1],o)&&(i=1);++n<i;)for(var a=r[n],l=Ol(a),c=-1,u=l.length;++c<u;){var s=l[c],d=t[s];(d===e||Ba(d,Oe[s])&&!Ie.call(t,s))&&(t[s]=a[s])}return t}),kl=Xn(function(t){return t.push(e,Ji),kt(Pl,e,t)});function jl(t,r,n){var i=null==t?e:$n(t,r);return i===e?n:i}function zl(e,t){return null!=e&&go(e,t,Cn)}var Cl=Ti(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=r},Ql(rc)),Al=Ti(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Ie.call(e,t)?e[t].push(r):e[t]=[r]},lo),Sl=Xn(Sn);function Rl(e){return Ka(e)?Hr(e):Ln(e)}function Ol(e){return Ka(e)?Hr(e,!0):Fn(e)}var El=Oi(function(e,t,r){Dn(e,t,r)}),Pl=Oi(function(e,t,r,n){Dn(e,t,r,n)}),Il=to(function(e,t){var r={};if(null==e)return r;var n=!1;t=Et(t,function(t){return t=bi(t,e),n||(n=t.length>1),t}),Si(e,no(e),r),n&&(r=ln(r,7,Qi));for(var i=t.length;i--;)si(r,t[i]);return r}),Ll=to(function(e,t){return null==e?{}:function(e,t){return Vn(e,t,function(t,r){return zl(e,r)})}(e,t)});function Fl(e,t){if(null==e)return{};var r=Et(no(e),function(e){return[e]});return t=lo(t),Vn(e,r,function(e,r){return t(e,r[0])})}var Nl=Xi(Rl),Wl=Xi(Ol);function Bl(e){return null==e?[]:Gt(e,Rl(e))}var Tl=Li(function(e,t,r){return t=t.toLowerCase(),e+(r?Dl(t):t)});function Dl(e){return Xl(ml(e).toLowerCase())}function Ml(e){return(e=ml(e))&&e.replace(ge,tr).replace(Xe,"")}var Ul=Li(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Vl=Li(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Kl=Ii("toLowerCase"),ql=Li(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}),Zl=Li(function(e,t,r){return e+(r?" ":"")+Xl(t)}),Hl=Li(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Xl=Ii("toUpperCase");function Yl(t,r,n){return t=ml(t),(r=n?e:r)===e?function(e){return Qe.test(e)}(t)?function(e){return e.match(Ge)||[]}(t):function(e){return e.match(oe)||[]}(t):t.match(r)||[]}var Gl=Xn(function(t,r){try{return kt(t,e,r)}catch(e){return Xa(e)?e:new $e(e)}}),Jl=to(function(e,t){return zt(t,function(t){t=Fo(t),nn(e,t,Aa(e[t],e))}),e});function Ql(e){return function(){return e}}var ec=Wi(),tc=Wi(!0);function rc(e){return e}function nc(e){return In("function"==typeof e?e:ln(e,1))}var ic=Xn(function(e,t){return function(r){return Sn(r,e,t)}}),oc=Xn(function(e,t){return function(r){return Sn(e,r,t)}});function ac(e,t,r){var n=Rl(t),i=xn(t,n);null!=r||Qa(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=xn(t,Rl(t)));var o=!(Qa(r)&&"chain"in r&&!r.chain),a=Ya(e);return zt(i,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=Ai(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Pt([this.value()],arguments))})}),e}function lc(){}var cc=Mi(Et),uc=Mi(At),sc=Mi(Ft);function dc(e){return wo(e)?Vt(Fo(e)):function(e){return function(t){return $n(t,e)}}(e)}var fc=Vi(),pc=Vi(!0);function hc(){return[]}function gc(){return!1}var vc,mc=Di(function(e,t){return e+t},0),bc=Zi("ceil"),yc=Di(function(e,t){return e/t},1),wc=Zi("floor"),xc=Di(function(e,t){return e*t},1),$c=Zi("round"),_c=Di(function(e,t){return e-t},0);return Wr.after=function(e,r){if("function"!=typeof r)throw new Ae(t);return e=pl(e),function(){if(--e<1)return r.apply(this,arguments)}},Wr.ary=za,Wr.assign=bl,Wr.assignIn=yl,Wr.assignInWith=wl,Wr.assignWith=xl,Wr.at=$l,Wr.before=Ca,Wr.bind=Aa,Wr.bindAll=Jl,Wr.bindKey=Sa,Wr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ua(e)?e:[e]},Wr.chain=da,Wr.chunk=function(t,r,n){r=(n?yo(t,r,n):r===e)?1:vr(pl(r),0);var i=null==t?0:t.length;if(!i||r<1)return[];for(var o=0,a=0,l=we(pt(i/r));o<i;)l[a++]=ri(t,o,o+=r);return l},Wr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var o=e[t];o&&(i[n++]=o)}return i},Wr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=we(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Pt(Ua(r)?Ai(r):[r],vn(t,1))},Wr.cond=function(e){var r=null==e?0:e.length,n=lo();return e=r?Et(e,function(e){if("function"!=typeof e[1])throw new Ae(t);return[n(e[0]),e[1]]}):[],Xn(function(t){for(var n=-1;++n<r;){var i=e[n];if(kt(i[0],this,t))return kt(i[1],this,t)}})},Wr.conforms=function(e){return function(e){var t=Rl(e);return function(r){return cn(r,e,t)}}(ln(e,1))},Wr.constant=Ql,Wr.countBy=ha,Wr.create=function(e,t){var r=Br(e);return null==t?r:rn(r,t)},Wr.curry=function t(r,n,i){var o=Yi(r,8,e,e,e,e,e,n=i?e:n);return o.placeholder=t.placeholder,o},Wr.curryRight=function t(r,n,i){var o=Yi(r,16,e,e,e,e,e,n=i?e:n);return o.placeholder=t.placeholder,o},Wr.debounce=Ra,Wr.defaults=_l,Wr.defaultsDeep=kl,Wr.defer=Oa,Wr.delay=Ea,Wr.difference=Bo,Wr.differenceBy=To,Wr.differenceWith=Do,Wr.drop=function(t,r,n){var i=null==t?0:t.length;return i?ri(t,(r=n||r===e?1:pl(r))<0?0:r,i):[]},Wr.dropRight=function(t,r,n){var i=null==t?0:t.length;return i?ri(t,0,(r=i-(r=n||r===e?1:pl(r)))<0?0:r):[]},Wr.dropRightWhile=function(e,t){return e&&e.length?fi(e,lo(t,3),!0,!0):[]},Wr.dropWhile=function(e,t){return e&&e.length?fi(e,lo(t,3),!0):[]},Wr.fill=function(t,r,n,i){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&yo(t,r,n)&&(n=0,i=o),function(t,r,n,i){var o=t.length;for((n=pl(n))<0&&(n=-n>o?0:o+n),(i=i===e||i>o?o:pl(i))<0&&(i+=o),i=n>i?0:hl(i);n<i;)t[n++]=r;return t}(t,r,n,i)):[]},Wr.filter=function(e,t){return(Ua(e)?St:gn)(e,lo(t,3))},Wr.flatMap=function(e,t){return vn($a(e,t),1)},Wr.flatMapDeep=function(e,t){return vn($a(e,t),l)},Wr.flatMapDepth=function(t,r,n){return n=n===e?1:pl(n),vn($a(t,r),n)},Wr.flatten=Vo,Wr.flattenDeep=function(e){return null!=e&&e.length?vn(e,l):[]},Wr.flattenDepth=function(t,r){return null!=t&&t.length?vn(t,r=r===e?1:pl(r)):[]},Wr.flip=function(e){return Yi(e,512)},Wr.flow=ec,Wr.flowRight=tc,Wr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},Wr.functions=function(e){return null==e?[]:xn(e,Rl(e))},Wr.functionsIn=function(e){return null==e?[]:xn(e,Ol(e))},Wr.groupBy=ya,Wr.initial=function(e){return null!=e&&e.length?ri(e,0,-1):[]},Wr.intersection=qo,Wr.intersectionBy=Zo,Wr.intersectionWith=Ho,Wr.invert=Cl,Wr.invertBy=Al,Wr.invokeMap=wa,Wr.iteratee=nc,Wr.keyBy=xa,Wr.keys=Rl,Wr.keysIn=Ol,Wr.map=$a,Wr.mapKeys=function(e,t){var r={};return t=lo(t,3),yn(e,function(e,n,i){nn(r,t(e,n,i),e)}),r},Wr.mapValues=function(e,t){var r={};return t=lo(t,3),yn(e,function(e,n,i){nn(r,n,t(e,n,i))}),r},Wr.matches=function(e){return Bn(ln(e,1))},Wr.matchesProperty=function(e,t){return Tn(e,ln(t,1))},Wr.memoize=Pa,Wr.merge=El,Wr.mergeWith=Pl,Wr.method=ic,Wr.methodOf=oc,Wr.mixin=ac,Wr.negate=Ia,Wr.nthArg=function(e){return e=pl(e),Xn(function(t){return Mn(t,e)})},Wr.omit=Il,Wr.omitBy=function(e,t){return Fl(e,Ia(lo(t)))},Wr.once=function(e){return Ca(2,e)},Wr.orderBy=function(t,r,n,i){return null==t?[]:(Ua(r)||(r=null==r?[]:[r]),Ua(n=i?e:n)||(n=null==n?[]:[n]),Un(t,r,n))},Wr.over=cc,Wr.overArgs=La,Wr.overEvery=uc,Wr.overSome=sc,Wr.partial=Fa,Wr.partialRight=Na,Wr.partition=_a,Wr.pick=Ll,Wr.pickBy=Fl,Wr.property=dc,Wr.propertyOf=function(t){return function(r){return null==t?e:$n(t,r)}},Wr.pull=Yo,Wr.pullAll=Go,Wr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Kn(e,t,lo(r,2)):e},Wr.pullAllWith=function(t,r,n){return t&&t.length&&r&&r.length?Kn(t,r,e,n):t},Wr.pullAt=Jo,Wr.range=fc,Wr.rangeRight=pc,Wr.rearg=Wa,Wr.reject=function(e,t){return(Ua(e)?St:gn)(e,Ia(lo(t,3)))},Wr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,i=[],o=e.length;for(t=lo(t,3);++n<o;){var a=e[n];t(a,n,e)&&(r.push(a),i.push(n))}return qn(e,i),r},Wr.rest=function(r,n){if("function"!=typeof r)throw new Ae(t);return Xn(r,n=n===e?n:pl(n))},Wr.reverse=Qo,Wr.sampleSize=function(t,r,n){return r=(n?yo(t,r,n):r===e)?1:pl(r),(Ua(t)?Yr:Gn)(t,r)},Wr.set=function(e,t,r){return null==e?e:Jn(e,t,r)},Wr.setWith=function(t,r,n,i){return i="function"==typeof i?i:e,null==t?t:Jn(t,r,n,i)},Wr.shuffle=function(e){return(Ua(e)?Gr:ti)(e)},Wr.slice=function(t,r,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&yo(t,r,n)?(r=0,n=i):(r=null==r?0:pl(r),n=n===e?i:pl(n)),ri(t,r,n)):[]},Wr.sortBy=ka,Wr.sortedUniq=function(e){return e&&e.length?ai(e):[]},Wr.sortedUniqBy=function(e,t){return e&&e.length?ai(e,lo(t,2)):[]},Wr.split=function(t,r,n){return n&&"number"!=typeof n&&yo(t,r,n)&&(r=n=e),(n=n===e?s:n>>>0)?(t=ml(t))&&("string"==typeof r||null!=r&&!il(r))&&!(r=ci(r))&&ir(t)?wi(dr(t),0,n):t.split(r,n):[]},Wr.spread=function(e,r){if("function"!=typeof e)throw new Ae(t);return r=null==r?0:vr(pl(r),0),Xn(function(t){var n=t[r],i=wi(t,0,r);return n&&Pt(i,n),kt(e,this,i)})},Wr.tail=function(e){var t=null==e?0:e.length;return t?ri(e,1,t):[]},Wr.take=function(t,r,n){return t&&t.length?ri(t,0,(r=n||r===e?1:pl(r))<0?0:r):[]},Wr.takeRight=function(t,r,n){var i=null==t?0:t.length;return i?ri(t,(r=i-(r=n||r===e?1:pl(r)))<0?0:r,i):[]},Wr.takeRightWhile=function(e,t){return e&&e.length?fi(e,lo(t,3),!1,!0):[]},Wr.takeWhile=function(e,t){return e&&e.length?fi(e,lo(t,3)):[]},Wr.tap=function(e,t){return t(e),e},Wr.throttle=function(e,r,n){var i=!0,o=!0;if("function"!=typeof e)throw new Ae(t);return Qa(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Ra(e,r,{leading:i,maxWait:r,trailing:o})},Wr.thru=fa,Wr.toArray=dl,Wr.toPairs=Nl,Wr.toPairsIn=Wl,Wr.toPath=function(e){return Ua(e)?Et(e,Fo):ll(e)?[e]:Ai(Lo(ml(e)))},Wr.toPlainObject=vl,Wr.transform=function(e,t,r){var n=Ua(e),i=n||Za(e)||cl(e);if(t=lo(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:Qa(e)&&Ya(o)?Br(Ke(e)):{}}return(i?zt:yn)(e,function(e,n,i){return t(r,e,n,i)}),r},Wr.unary=function(e){return za(e,1)},Wr.union=ea,Wr.unionBy=ta,Wr.unionWith=ra,Wr.uniq=function(e){return e&&e.length?ui(e):[]},Wr.uniqBy=function(e,t){return e&&e.length?ui(e,lo(t,2)):[]},Wr.uniqWith=function(t,r){return r="function"==typeof r?r:e,t&&t.length?ui(t,e,r):[]},Wr.unset=function(e,t){return null==e||si(e,t)},Wr.unzip=na,Wr.unzipWith=ia,Wr.update=function(e,t,r){return null==e?e:di(e,t,mi(r))},Wr.updateWith=function(t,r,n,i){return i="function"==typeof i?i:e,null==t?t:di(t,r,mi(n),i)},Wr.values=Bl,Wr.valuesIn=function(e){return null==e?[]:Gt(e,Ol(e))},Wr.without=oa,Wr.words=Yl,Wr.wrap=function(e,t){return Fa(mi(t),e)},Wr.xor=aa,Wr.xorBy=la,Wr.xorWith=ca,Wr.zip=ua,Wr.zipObject=function(e,t){return gi(e||[],t||[],Qr)},Wr.zipObjectDeep=function(e,t){return gi(e||[],t||[],Jn)},Wr.zipWith=sa,Wr.entries=Nl,Wr.entriesIn=Wl,Wr.extend=yl,Wr.extendWith=wl,ac(Wr,Wr),Wr.add=mc,Wr.attempt=Gl,Wr.camelCase=Tl,Wr.capitalize=Dl,Wr.ceil=bc,Wr.clamp=function(t,r,n){return n===e&&(n=r,r=e),n!==e&&(n=(n=gl(n))==n?n:0),r!==e&&(r=(r=gl(r))==r?r:0),an(gl(t),r,n)},Wr.clone=function(e){return ln(e,4)},Wr.cloneDeep=function(e){return ln(e,5)},Wr.cloneDeepWith=function(t,r){return ln(t,5,r="function"==typeof r?r:e)},Wr.cloneWith=function(t,r){return ln(t,4,r="function"==typeof r?r:e)},Wr.conformsTo=function(e,t){return null==t||cn(e,t,Rl(t))},Wr.deburr=Ml,Wr.defaultTo=function(e,t){return null==e||e!=e?t:e},Wr.divide=yc,Wr.endsWith=function(t,r,n){t=ml(t),r=ci(r);var i=t.length,o=n=n===e?i:an(pl(n),0,i);return(n-=r.length)>=0&&t.slice(n,o)==r},Wr.eq=Ba,Wr.escape=function(e){return(e=ml(e))&&K.test(e)?e.replace(U,rr):e},Wr.escapeRegExp=function(e){return(e=ml(e))&&Q.test(e)?e.replace(J,"\\$&"):e},Wr.every=function(t,r,n){var i=Ua(t)?At:pn;return n&&yo(t,r,n)&&(r=e),i(t,lo(r,3))},Wr.find=ga,Wr.findIndex=Mo,Wr.findKey=function(e,t){return Wt(e,lo(t,3),yn)},Wr.findLast=va,Wr.findLastIndex=Uo,Wr.findLastKey=function(e,t){return Wt(e,lo(t,3),wn)},Wr.floor=wc,Wr.forEach=ma,Wr.forEachRight=ba,Wr.forIn=function(e,t){return null==e?e:mn(e,lo(t,3),Ol)},Wr.forInRight=function(e,t){return null==e?e:bn(e,lo(t,3),Ol)},Wr.forOwn=function(e,t){return e&&yn(e,lo(t,3))},Wr.forOwnRight=function(e,t){return e&&wn(e,lo(t,3))},Wr.get=jl,Wr.gt=Ta,Wr.gte=Da,Wr.has=function(e,t){return null!=e&&go(e,t,zn)},Wr.hasIn=zl,Wr.head=Ko,Wr.identity=rc,Wr.includes=function(e,t,r,n){e=Ka(e)?e:Bl(e),r=r&&!n?pl(r):0;var i=e.length;return r<0&&(r=vr(i+r,0)),al(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Tt(e,t,r)>-1},Wr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:pl(r);return i<0&&(i=vr(n+i,0)),Tt(e,t,i)},Wr.inRange=function(t,r,n){return r=fl(r),n===e?(n=r,r=0):n=fl(n),function(e,t,r){return e>=mr(t,r)&&e<vr(t,r)}(t=gl(t),r,n)},Wr.invoke=Sl,Wr.isArguments=Ma,Wr.isArray=Ua,Wr.isArrayBuffer=Va,Wr.isArrayLike=Ka,Wr.isArrayLikeObject=qa,Wr.isBoolean=function(e){return!0===e||!1===e||el(e)&&kn(e)==h},Wr.isBuffer=Za,Wr.isDate=Ha,Wr.isElement=function(e){return el(e)&&1===e.nodeType&&!nl(e)},Wr.isEmpty=function(e){if(null==e)return!0;if(Ka(e)&&(Ua(e)||"string"==typeof e||"function"==typeof e.splice||Za(e)||cl(e)||Ma(e)))return!e.length;var t=ho(e);if(t==y||t==k)return!e.size;if(_o(e))return!Ln(e).length;for(var r in e)if(Ie.call(e,r))return!1;return!0},Wr.isEqual=function(e,t){return On(e,t)},Wr.isEqualWith=function(t,r,n){var i=(n="function"==typeof n?n:e)?n(t,r):e;return i===e?On(t,r,e,n):!!i},Wr.isError=Xa,Wr.isFinite=function(e){return"number"==typeof e&&Nt(e)},Wr.isFunction=Ya,Wr.isInteger=Ga,Wr.isLength=Ja,Wr.isMap=tl,Wr.isMatch=function(e,t){return e===t||En(e,t,uo(t))},Wr.isMatchWith=function(t,r,n){return n="function"==typeof n?n:e,En(t,r,uo(r),n)},Wr.isNaN=function(e){return rl(e)&&e!=+e},Wr.isNative=function(e){if($o(e))throw new $e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pn(e)},Wr.isNil=function(e){return null==e},Wr.isNull=function(e){return null===e},Wr.isNumber=rl,Wr.isObject=Qa,Wr.isObjectLike=el,Wr.isPlainObject=nl,Wr.isRegExp=il,Wr.isSafeInteger=function(e){return Ga(e)&&e>=-9007199254740991&&e<=c},Wr.isSet=ol,Wr.isString=al,Wr.isSymbol=ll,Wr.isTypedArray=cl,Wr.isUndefined=function(t){return t===e},Wr.isWeakMap=function(e){return el(e)&&ho(e)==C},Wr.isWeakSet=function(e){return el(e)&&"[object WeakSet]"==kn(e)},Wr.join=function(e,t){return null==e?"":Kt.call(e,t)},Wr.kebabCase=Ul,Wr.last=Xo,Wr.lastIndexOf=function(t,r,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==e&&(o=(o=pl(n))<0?vr(i+o,0):mr(o,i-1)),r==r?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(t,r,o):Bt(t,Mt,o,!0)},Wr.lowerCase=Vl,Wr.lowerFirst=Kl,Wr.lt=ul,Wr.lte=sl,Wr.max=function(t){return t&&t.length?hn(t,rc,jn):e},Wr.maxBy=function(t,r){return t&&t.length?hn(t,lo(r,2),jn):e},Wr.mean=function(e){return Ut(e,rc)},Wr.meanBy=function(e,t){return Ut(e,lo(t,2))},Wr.min=function(t){return t&&t.length?hn(t,rc,Nn):e},Wr.minBy=function(t,r){return t&&t.length?hn(t,lo(r,2),Nn):e},Wr.stubArray=hc,Wr.stubFalse=gc,Wr.stubObject=function(){return{}},Wr.stubString=function(){return""},Wr.stubTrue=function(){return!0},Wr.multiply=xc,Wr.nth=function(t,r){return t&&t.length?Mn(t,pl(r)):e},Wr.noConflict=function(){return ft._===this&&(ft._=Be),this},Wr.noop=lc,Wr.now=ja,Wr.pad=function(e,t,r){e=ml(e);var n=(t=pl(t))?sr(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return Ui(ht(i),r)+e+Ui(pt(i),r)},Wr.padEnd=function(e,t,r){e=ml(e);var n=(t=pl(t))?sr(e):0;return t&&n<t?e+Ui(t-n,r):e},Wr.padStart=function(e,t,r){e=ml(e);var n=(t=pl(t))?sr(e):0;return t&&n<t?Ui(t-n,r)+e:e},Wr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),yr(ml(e).replace(ee,""),t||0)},Wr.random=function(t,r,n){if(n&&"boolean"!=typeof n&&yo(t,r,n)&&(r=n=e),n===e&&("boolean"==typeof r?(n=r,r=e):"boolean"==typeof t&&(n=t,t=e)),t===e&&r===e?(t=0,r=1):(t=fl(t),r===e?(r=t,t=0):r=fl(r)),t>r){var i=t;t=r,r=i}if(n||t%1||r%1){var o=wr();return mr(t+o*(r-t+ct("1e-"+((o+"").length-1))),r)}return Zn(t,r)},Wr.reduce=function(e,t,r){var n=Ua(e)?It:qt,i=arguments.length<3;return n(e,lo(t,4),r,i,dn)},Wr.reduceRight=function(e,t,r){var n=Ua(e)?Lt:qt,i=arguments.length<3;return n(e,lo(t,4),r,i,fn)},Wr.repeat=function(t,r,n){return r=(n?yo(t,r,n):r===e)?1:pl(r),Hn(ml(t),r)},Wr.replace=function(){var e=arguments,t=ml(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Wr.result=function(t,r,n){var i=-1,o=(r=bi(r,t)).length;for(o||(o=1,t=e);++i<o;){var a=null==t?e:t[Fo(r[i])];a===e&&(i=o,a=n),t=Ya(a)?a.call(t):a}return t},Wr.round=$c,Wr.runInContext=te,Wr.sample=function(e){return(Ua(e)?Xr:Yn)(e)},Wr.size=function(e){if(null==e)return 0;if(Ka(e))return al(e)?sr(e):e.length;var t=ho(e);return t==y||t==k?e.size:Ln(e).length},Wr.snakeCase=ql,Wr.some=function(t,r,n){var i=Ua(t)?Ft:ni;return n&&yo(t,r,n)&&(r=e),i(t,lo(r,3))},Wr.sortedIndex=function(e,t){return ii(e,t)},Wr.sortedIndexBy=function(e,t,r){return oi(e,t,lo(r,2))},Wr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ii(e,t);if(n<r&&Ba(e[n],t))return n}return-1},Wr.sortedLastIndex=function(e,t){return ii(e,t,!0)},Wr.sortedLastIndexBy=function(e,t,r){return oi(e,t,lo(r,2),!0)},Wr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=ii(e,t,!0)-1;if(Ba(e[r],t))return r}return-1},Wr.startCase=Zl,Wr.startsWith=function(e,t,r){return e=ml(e),r=null==r?0:an(pl(r),0,e.length),t=ci(t),e.slice(r,r+t.length)==t},Wr.subtract=_c,Wr.sum=function(e){return e&&e.length?Zt(e,rc):0},Wr.sumBy=function(e,t){return e&&e.length?Zt(e,lo(t,2)):0},Wr.template=function(t,r,n){var i=Wr.templateSettings;n&&yo(t,r,n)&&(r=e),t=ml(t),r=wl({},r,i,Gi);var o,a,l=wl({},r.imports,i.imports,Gi),c=Rl(l),u=Gt(l,c),s=0,d=r.interpolate||ve,f="__p += '",p=ze((r.escape||ve).source+"|"+d.source+"|"+(d===H?ce:ve).source+"|"+(r.evaluate||ve).source+"|$","g"),h="//# sourceURL="+(Ie.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tt+"]")+"\n";t.replace(p,function(e,r,n,i,l,c){return n||(n=i),f+=t.slice(s,c).replace(me,nr),r&&(o=!0,f+="' +\n__e("+r+") +\n'"),l&&(a=!0,f+="';\n"+l+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),s=c+e.length,e}),f+="';\n";var g=Ie.call(r,"variable")&&r.variable;if(g){if(ae.test(g))throw new $e("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(B,""):f).replace(T,"$1").replace(D,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Gl(function(){return _e(c,h+"return "+f).apply(e,u)});if(v.source=f,Xa(v))throw v;return v},Wr.times=function(e,t){if((e=pl(e))<1||e>c)return[];var r=s,n=mr(e,s);t=lo(t),e-=s;for(var i=Ht(n,t);++r<e;)t(r);return i},Wr.toFinite=fl,Wr.toInteger=pl,Wr.toLength=hl,Wr.toLower=function(e){return ml(e).toLowerCase()},Wr.toNumber=gl,Wr.toSafeInteger=function(e){return e?an(pl(e),-9007199254740991,c):0===e?e:0},Wr.toString=ml,Wr.toUpper=function(e){return ml(e).toUpperCase()},Wr.trim=function(t,r,n){if((t=ml(t))&&(n||r===e))return Xt(t);if(!t||!(r=ci(r)))return t;var i=dr(t),o=dr(r);return wi(i,Qt(i,o),er(i,o)+1).join("")},Wr.trimEnd=function(t,r,n){if((t=ml(t))&&(n||r===e))return t.slice(0,fr(t)+1);if(!t||!(r=ci(r)))return t;var i=dr(t);return wi(i,0,er(i,dr(r))+1).join("")},Wr.trimStart=function(t,r,n){if((t=ml(t))&&(n||r===e))return t.replace(ee,"");if(!t||!(r=ci(r)))return t;var i=dr(t);return wi(i,Qt(i,dr(r))).join("")},Wr.truncate=function(t,r){var n=30,i="...";if(Qa(r)){var o="separator"in r?r.separator:o;n="length"in r?pl(r.length):n,i="omission"in r?ci(r.omission):i}var a=(t=ml(t)).length;if(ir(t)){var l=dr(t);a=l.length}if(n>=a)return t;var c=n-sr(i);if(c<1)return i;var u=l?wi(l,0,c).join(""):t.slice(0,c);if(o===e)return u+i;if(l&&(c+=u.length-c),il(o)){if(t.slice(c).search(o)){var s,d=u;for(o.global||(o=ze(o.source,ml(ue.exec(o))+"g")),o.lastIndex=0;s=o.exec(d);)var f=s.index;u=u.slice(0,f===e?c:f)}}else if(t.indexOf(ci(o),c)!=c){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+i},Wr.unescape=function(e){return(e=ml(e))&&V.test(e)?e.replace(M,pr):e},Wr.uniqueId=function(e){var t=++Le;return ml(e)+t},Wr.upperCase=Hl,Wr.upperFirst=Xl,Wr.each=ma,Wr.eachRight=ba,Wr.first=Ko,ac(Wr,(vc={},yn(Wr,function(e,t){Ie.call(Wr.prototype,t)||(vc[t]=e)}),vc),{chain:!1}),Wr.VERSION="4.17.21",zt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Wr[e].placeholder=Wr}),zt(["drop","take"],function(t,r){Mr.prototype[t]=function(n){n=n===e?1:vr(pl(n),0);var i=this.__filtered__&&!r?new Mr(this):this.clone();return i.__filtered__?i.__takeCount__=mr(n,i.__takeCount__):i.__views__.push({size:mr(n,s),type:t+(i.__dir__<0?"Right":"")}),i},Mr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),zt(["filter","map","takeWhile"],function(e,t){var r=t+1,n=1==r||3==r;Mr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:lo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),zt(["head","last"],function(e,t){var r="take"+(t?"Right":"");Mr.prototype[e]=function(){return this[r](1).value()[0]}}),zt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");Mr.prototype[e]=function(){return this.__filtered__?new Mr(this):this[r](1)}}),Mr.prototype.compact=function(){return this.filter(rc)},Mr.prototype.find=function(e){return this.filter(e).head()},Mr.prototype.findLast=function(e){return this.reverse().find(e)},Mr.prototype.invokeMap=Xn(function(e,t){return"function"==typeof e?new Mr(this):this.map(function(r){return Sn(r,e,t)})}),Mr.prototype.reject=function(e){return this.filter(Ia(lo(e)))},Mr.prototype.slice=function(t,r){t=pl(t);var n=this;return n.__filtered__&&(t>0||r<0)?new Mr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),r!==e&&(n=(r=pl(r))<0?n.dropRight(-r):n.take(r-t)),n)},Mr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Mr.prototype.toArray=function(){return this.take(s)},yn(Mr.prototype,function(t,r){var n=/^(?:filter|find|map|reject)|While$/.test(r),i=/^(?:head|last)$/.test(r),o=Wr[i?"take"+("last"==r?"Right":""):r],a=i||/^find/.test(r);o&&(Wr.prototype[r]=function(){var r=this.__wrapped__,l=i?[1]:arguments,c=r instanceof Mr,u=l[0],s=c||Ua(r),d=function(e){var t=o.apply(Wr,Pt([e],l));return i&&f?t[0]:t};s&&n&&"function"==typeof u&&1!=u.length&&(c=s=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,g=c&&!p;if(!a&&s){r=g?r:new Mr(this);var v=t.apply(r,l);return v.__actions__.push({func:fa,args:[d],thisArg:e}),new Dr(v,f)}return h&&g?t.apply(this,l):(v=this.thru(d),h?i?v.value()[0]:v.value():v)})}),zt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Se[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Wr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(Ua(i)?i:[],e)}return this[r](function(r){return t.apply(Ua(r)?r:[],e)})}}),yn(Mr.prototype,function(e,t){var r=Wr[t];if(r){var n=r.name+"";Ie.call(Sr,n)||(Sr[n]=[]),Sr[n].push({name:t,func:r})}}),Sr[Bi(e,2).name]=[{name:"wrapper",func:e}],Mr.prototype.clone=function(){var e=new Mr(this.__wrapped__);return e.__actions__=Ai(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ai(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ai(this.__views__),e},Mr.prototype.reverse=function(){if(this.__filtered__){var e=new Mr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Mr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Ua(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var o=r[n],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=mr(t,e+a);break;case"takeRight":e=vr(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,l=o.end,c=l-a,u=n?l:a-1,s=this.__iteratees__,d=s.length,f=0,p=mr(c,this.__takeCount__);if(!r||!n&&i==c&&p==c)return pi(e,this.__actions__);var h=[];e:for(;c--&&f<p;){for(var g=-1,v=e[u+=t];++g<d;){var m=s[g],b=m.iteratee,y=m.type,w=b(v);if(2==y)v=w;else if(!w){if(1==y)continue e;break e}}h[f++]=v}return h},Wr.prototype.at=pa,Wr.prototype.chain=function(){return da(this)},Wr.prototype.commit=function(){return new Dr(this.value(),this.__chain__)},Wr.prototype.next=function(){this.__values__===e&&(this.__values__=dl(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},Wr.prototype.plant=function(t){for(var r,n=this;n instanceof Tr;){var i=Wo(n);i.__index__=0,i.__values__=e,r?o.__wrapped__=i:r=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,r},Wr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Mr){var r=t;return this.__actions__.length&&(r=new Mr(this)),(r=r.reverse()).__actions__.push({func:fa,args:[Qo],thisArg:e}),new Dr(r,this.__chain__)}return this.thru(Qo)},Wr.prototype.toJSON=Wr.prototype.valueOf=Wr.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Wr.prototype.first=Wr.prototype.head,nt&&(Wr.prototype[nt]=function(){return this}),Wr}();ht?((ht.exports=hr)._=hr,pt._=hr):ft._=hr}.call(it.exports)),it.exports);const ct=d.div`
|
|
263
|
+
position: relative;
|
|
264
|
+
display: flex;
|
|
265
|
+
flex-wrap: nowrap;
|
|
266
|
+
align-items: flex-start;
|
|
267
|
+
justify-content: space-between;
|
|
268
|
+
border-radius: 12px;
|
|
269
|
+
|
|
270
|
+
font-size: inherit;
|
|
271
|
+
font-family: inherit;
|
|
272
|
+
border: 1px solid transparent;
|
|
273
|
+
background-color: ${({$disabled:e})=>e?"var(--db-background)":"transparent"};
|
|
274
|
+
|
|
275
|
+
${({$role:e,$height:t})=>"textarea"===e?f`
|
|
276
|
+
height: auto;
|
|
277
|
+
min-height: 80px;
|
|
278
|
+
`:f`
|
|
279
|
+
height: ${t}px;
|
|
280
|
+
`}
|
|
281
|
+
|
|
282
|
+
border-color: ${({$hasError:e,$hasWarning:t,$hasFocus:r,$disabled:n,readOnly:i})=>t?"var(--db-warning)":e?"var(--db-danger)":r?"var(--db-primary)":n||i?"var(--db-background)":"var(--db-tertiary-lighten-10)"};
|
|
283
|
+
|
|
284
|
+
${({$hasError:e,$hasWarning:t})=>t?f`
|
|
285
|
+
box-shadow: 0 0 0 3px
|
|
286
|
+
color-mix(in srgb, var(--db-warning-lighten-20), transparent);
|
|
287
|
+
`:e?f`
|
|
288
|
+
box-shadow: 0 0 0 3px
|
|
289
|
+
color-mix(in srgb, var(--db-danger-lighten-20), transparent);
|
|
290
|
+
`:void 0}
|
|
291
|
+
|
|
292
|
+
${({readOnly:e})=>e&&f`
|
|
293
|
+
opacity: 0.7;
|
|
294
|
+
|
|
295
|
+
* {
|
|
296
|
+
cursor: not-allowed;
|
|
297
|
+
}
|
|
298
|
+
`}
|
|
299
|
+
|
|
300
|
+
${e=>he.hydrate(e)}
|
|
301
|
+
`,ut=d.input`
|
|
302
|
+
flex: 1;
|
|
303
|
+
border: none;
|
|
304
|
+
outline: none;
|
|
305
|
+
background: transparent;
|
|
306
|
+
font-size: inherit;
|
|
307
|
+
font-weight: 300;
|
|
308
|
+
color: var(--db-primary);
|
|
309
|
+
|
|
310
|
+
/* Padding dinámico basado en altura */
|
|
311
|
+
${({height:e,role:t})=>{if("textarea"===t)return f`
|
|
312
|
+
padding: 16px;
|
|
313
|
+
height: auto;
|
|
314
|
+
min-height: 80px;
|
|
315
|
+
resize: vertical;
|
|
316
|
+
`;if(e&&Number(e)<50){const t=Math.max(8,(Number(e)-16)/2);return f`
|
|
317
|
+
padding: ${t}px 40px ${t}px 16px;
|
|
318
|
+
height: 100%;
|
|
319
|
+
`}return f`
|
|
320
|
+
padding: 16px 40px 8px 16px;
|
|
321
|
+
height: 100%;
|
|
322
|
+
`}}
|
|
323
|
+
|
|
324
|
+
text-align: ${({$align:e})=>e||"left"};
|
|
325
|
+
cursor: ${({disabled:e,readOnly:t})=>e||t?"not-allowed":"initial"};
|
|
326
|
+
&::-webkit-outer-spin-button,
|
|
327
|
+
&::-webkit-inner-spin-button {
|
|
328
|
+
-webkit-appearance: none;
|
|
329
|
+
margin: 0;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
&::-webkit-calendar-picker-indicator {
|
|
333
|
+
display: none;
|
|
334
|
+
-webkit-appearance: none;
|
|
335
|
+
margin: 0;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
&:disabled {
|
|
339
|
+
& ~ .actionButton {
|
|
340
|
+
display: none;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
${e=>he.hydrate(e)}
|
|
345
|
+
`,st=d.label`
|
|
346
|
+
color: var(--db-tertiary-lighten-10);
|
|
347
|
+
font-weight: 300;
|
|
348
|
+
font-size: ${({$hasFocus:e,$role:t})=>e||"calendar"===t?"70%":"14px"};
|
|
349
|
+
padding: 0;
|
|
350
|
+
line-height: 1;
|
|
351
|
+
background: transparent;
|
|
352
|
+
position: absolute;
|
|
353
|
+
top: ${({$hasFocus:e,$role:t})=>e||"calendar"===t?"4px":"16px"};
|
|
354
|
+
bottom: 0;
|
|
355
|
+
left: 14px;
|
|
356
|
+
width: auto;
|
|
357
|
+
max-width: 80%;
|
|
358
|
+
text-align: ${({$right:e})=>e?"right":"left"};
|
|
359
|
+
pointer-events: none;
|
|
360
|
+
transition: font-size 150ms ease-in-out, border-width 150ms ease-in-out,
|
|
361
|
+
border-color 150ms ease-in-out, top 100ms ease-in-out;
|
|
362
|
+
|
|
363
|
+
${e=>he.hydrate(e)}
|
|
364
|
+
`,dt=d.span`
|
|
365
|
+
color: var(--db-tertiary-lighten-10);
|
|
366
|
+
font-weight: 300;
|
|
367
|
+
font-size: ${({$hasFocus:e})=>e?"70%":"inherit"};
|
|
368
|
+
padding: 0;
|
|
369
|
+
line-height: 1;
|
|
370
|
+
background: transparent;
|
|
371
|
+
position: absolute;
|
|
372
|
+
top: ${({$hasFocus:e})=>e?"4px":"16px"};
|
|
373
|
+
bottom: 0;
|
|
374
|
+
right: 14px;
|
|
375
|
+
width: auto;
|
|
376
|
+
max-width: 300px;
|
|
377
|
+
text-align: ${({$right:e})=>e?"right":"left"};
|
|
378
|
+
pointer-events: none;
|
|
379
|
+
transition: font-size 150ms ease-in-out, border-width 150ms ease-in-out,
|
|
380
|
+
border-color 150ms ease-in-out, top 100ms ease-in-out;
|
|
381
|
+
|
|
382
|
+
${e=>he.hydrate(e)}
|
|
383
|
+
`,ft=d.span`
|
|
384
|
+
color: var(--db-danger);
|
|
385
|
+
font-size: 10px;
|
|
386
|
+
position: absolute;
|
|
387
|
+
left: 0;
|
|
388
|
+
bottom: -18px;
|
|
389
|
+
|
|
390
|
+
${e=>he.hydrate(e)}
|
|
391
|
+
`,pt=d.span`
|
|
392
|
+
color: var(--db-background-darken-5);
|
|
393
|
+
font-size: 10px;
|
|
394
|
+
position: absolute;
|
|
395
|
+
right: 0;
|
|
396
|
+
bottom: -18px;
|
|
397
|
+
|
|
398
|
+
${e=>he.hydrate(e)}
|
|
399
|
+
`,ht=d.span`
|
|
400
|
+
min-width: 30px;
|
|
401
|
+
width: 30px;
|
|
402
|
+
|
|
403
|
+
height: 100%;
|
|
404
|
+
max-height: 50px;
|
|
405
|
+
|
|
406
|
+
display: flex;
|
|
407
|
+
align-items: center;
|
|
408
|
+
justify-content: center;
|
|
409
|
+
cursor: pointer;
|
|
410
|
+
${e=>he.hydrate(e)}
|
|
411
|
+
`,gt=d.div`
|
|
412
|
+
pointer-events: none;
|
|
413
|
+
display: inline-flex;
|
|
414
|
+
align-items: center;
|
|
415
|
+
justify-content: center;
|
|
416
|
+
min-width: 30px;
|
|
417
|
+
height: 100%;
|
|
418
|
+
padding: 0 12px;
|
|
419
|
+
`,{emailRgx:vt,curpRgx:mt,specialChars:bt,onlyLetterNumbers:yt,onlySlug:wt,onlyPhone:xt,onlyLetters:$t}=ce,_t=c(({isSlug:r,placeholder:n="",type:c="text",getValue:d,role:f="input",value:p="",forwardRef:h,onKeyDown:g,onKeyUp:v,onChange:m,onBlur:b,onFocus:y,onCopy:w,onPaste:x,error:$="",warning:_="",disabled:k=!1,maxLength:j,isNumber:z=!1,scapeCharacters:C=!1,onlyCharaters:A=!1,onlyAlpha:S=!1,normalizer:R=!1,isCurp:O=!1,onlyNL:E=!1,onlyLetters:P=!1,onlyPositiveNumbers:I=!1,readOnly:L=!1,capitalize:F=!1,showCalendar:N=!1,hasRequired:W="",autoComplete:B=!1,align:T="left",styles:D={},height:M=50,suffix:U,...V})=>{const K=u(null),q=l(),[Z,H]=i(!1),[X,Y]=i(""),[G,J]=i(!1),[Q,ee]=i(p),te=u(!1),re=o(()=>ve(n)+q,[n,q]),ne=o(()=>lt.debounce(e=>{null==d||d(e),te.current=!1},300),[d]);a(()=>{te.current||p!==Q&&ee(p)},[p]),a(()=>{const e=setTimeout(()=>{if(K.current){const e=K.current.value;e&&!p&&(ee(e),null==d||d(e))}},200);return()=>clearTimeout(e)},[]);const ie=s(e=>{let{value:t}=e.target;const n={onlyAlpha:()=>t.replace(/[0-9$&\\+:·,.;=¬?´@¿¡ç#|'"/`|°¨<>_^*()%![\]}+~{-]/g,""),scapeCharacters:()=>t.replace(bt,""),onlyCharaters:()=>t.replace(/[$&\\+:·,;=¬?´@¿¡ç|'"/`|°¨<>_^*()%![\]}+~{]/g,""),onlyNL:()=>t.replace(yt,""),onlyLetters:()=>t.replace($t,""),onlyPhone:()=>t.replace(xt,"").replace(/e/g,""),isSlug:()=>t.replace(wt,"").replace(/ /g,"-"),onlyPositiveNumbers:()=>/^[1-9]$|^[1-9][0-9]$|^(100)$/.test(t)?t:t.slice(0,-1),isCurp:()=>{const e=mt.test(t);return Y(e||0===t.length?"":"Curp no válido"),t},email:()=>{const e=vt.test(t);return Y(e||0===t.length?"":"Email no válido"),t},capitalize:()=>t.toLowerCase().replace(/\w/,e=>e.toUpperCase()),normalizer:()=>be(t),maxLength:()=>void 0!==j&&!isNaN(j)&&j>0&&t.length>j?t.slice(0,j):t};Object.entries({onlyAlpha:S,scapeCharacters:C,onlyCharaters:A,onlyNL:E,isSlug:r,onlyPositiveNumbers:I,onlyLetters:P,onlyPhone:"tel"===c,isCurp:"curp"===c,email:"email"===c,capitalize:F,normalizer:R,maxLength:j}).forEach(([e,r])=>{var i,o;r&&(t=null!==(o=null===(i=n[e])||void 0===i?void 0:i.call(n))&&void 0!==o?o:t)}),te.current=!0,ee(t),null==m||m(t),ne(t)},[S,C,A,E,r,I,c,F,R,m,ne,P,j]),oe=s(e=>{if(K.current){const e=K.current.value;e!==Q&&ee(e),null==d||d(e)}H(!1),null==b||b()},[Q,d,b]),ae=s(e=>{K.current=e,h&&"function"==typeof h?h(e):h&&(h.current=e)},[h]),le=s(()=>{H(!0),null==y||y()},[y]),ce=s(()=>J(e=>!e),[]),ue=s(()=>{ee(""),null==d||d("")},[d]),se=s(()=>{"calendar"===c&&K.current.showPicker()},[c]),de=o(()=>$||X,[$,X]),fe=o(()=>_,[_]);return t(ct,{$hasFocus:Z,$hasError:!!de,$hasWarning:!de&&!!fe,$disabled:k,$height:M,$role:f,...V,...D,children:[e(ut,{as:f,role:f,height:M,readOnly:L,onFocus:le,onBlur:oe,value:Q,ref:ae,onChange:ie,onInput:ie,onKeyDown:g,onKeyUp:v,onPaste:x?e=>e.preventDefault():void 0,onCopy:w?e=>e.preventDefault():void 0,disabled:k,maxLength:j,$align:T,type:z?"number":"password"===c?G?"text":"password":"calendar"===c?"date":c,min:z?"0":void 0,max:z?"9":void 0,autoComplete:re,id:re,name:re}),U&&e(gt,{onClick:se,children:U}),!!Q&&!L&&e(ht,{className:"actionButton",style:{right:["password","calendar"].includes(c)?"2rem":"0rem"},children:e(Je,{type:"rollback",onClick:ue,wsvg:22,color:"var(--db-tertiary-lighten-10)"})}),"password"===c&&!!Q.length&&e(ht,{className:"actionButton",children:e(Je,{wsvg:22,type:G?"hide":"show",color:"var(--db-tertiary-lighten-10)",onClick:ce})}),e(st,{$role:c,$height:M,htmlFor:re,disabled:k,$hasFocus:Z||!!Q,children:n||"Missing placeholder"}),W&&!!Q.length&&e(dt,{$hasFocus:!0,disabled:k,$right:!0,children:W}),!!de&&!!Q.length&&e(ft,{children:de}),!!fe&&!!Q.length&&e(pt,{children:fe})]})},function(e,t){if(e.suffix||t.suffix)return!1;return["value","error","warning","disabled","readOnly","hasRequired","isSlug","type","isNumber","maxLength","align"].every(r=>lt.isEqual(e[r],t[r]))&&e.styles===t.styles});var kt=n.memo(_t);const jt=d.div`
|
|
420
|
+
${e=>he.hydrate(e)}
|
|
421
|
+
`;var zt=n.memo(({children:t,...r})=>e(jt,{...r,children:t}));const Ct=d.span`
|
|
422
|
+
display: inline-flex;
|
|
423
|
+
align-items: center;
|
|
424
|
+
justify-content: center;
|
|
425
|
+
position: relative;
|
|
426
|
+
cursor: pointer;
|
|
427
|
+
|
|
428
|
+
&:hover .content {
|
|
429
|
+
visibility: visible;
|
|
430
|
+
opacity: 1;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
${e=>he.hydrate(e)}
|
|
434
|
+
`,At=d.span`
|
|
435
|
+
display: inline-block;
|
|
436
|
+
padding: 6px 10px;
|
|
437
|
+
color: var(--db-white);
|
|
438
|
+
font-size: 16px;
|
|
439
|
+
line-height: 1;
|
|
440
|
+
font-weight: 500;
|
|
441
|
+
min-width: ${({$w:e})=>e}px;
|
|
442
|
+
position: absolute;
|
|
443
|
+
background-color: var(--db-${({$theme:e})=>e||"black"});
|
|
444
|
+
z-index: 5;
|
|
445
|
+
cursor: initial;
|
|
446
|
+
text-align: left;
|
|
447
|
+
border-radius: 8px;
|
|
448
|
+
visibility: hidden;
|
|
449
|
+
transition: opacity ${({$delay:e})=>e}ms linear;
|
|
450
|
+
pointer-events: none;
|
|
451
|
+
opacity: 0;
|
|
452
|
+
|
|
453
|
+
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
|
|
454
|
+
|
|
455
|
+
&:before {
|
|
456
|
+
content: "";
|
|
457
|
+
display: inline-block;
|
|
458
|
+
width: 0;
|
|
459
|
+
height: 0;
|
|
460
|
+
border: 6px solid transparent;
|
|
461
|
+
position: absolute;
|
|
462
|
+
pointer-events: none;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
${({$direction:e})=>"top"===e?St:"left"===e?Ot:"bottom"===e?Rt:"right"===e?Et:""}
|
|
466
|
+
|
|
467
|
+
${e=>he.hydrate(e)}
|
|
468
|
+
`,St=f`
|
|
469
|
+
bottom: calc(100% + 10px);
|
|
470
|
+
|
|
471
|
+
&:before {
|
|
472
|
+
top: 100%;
|
|
473
|
+
left: calc(50% - 6px);
|
|
474
|
+
border-top-color: var(--db-${({$theme:e})=>e||"black"});
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
${e=>he.hydrate(e)}
|
|
478
|
+
`,Rt=f`
|
|
479
|
+
top: calc(100% + 10px);
|
|
480
|
+
|
|
481
|
+
&:before {
|
|
482
|
+
bottom: 100%;
|
|
483
|
+
left: calc(50% - 6px);
|
|
484
|
+
border-bottom-color: var(--db-${({$theme:e})=>e||"black"});
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
${e=>he.hydrate(e)}
|
|
488
|
+
`,Ot=f`
|
|
489
|
+
right: calc(100% + 10px);
|
|
490
|
+
|
|
491
|
+
&:before {
|
|
492
|
+
left: 100%;
|
|
493
|
+
top: calc(50% - 6px);
|
|
494
|
+
border-left-color: var(--db-${({$theme:e})=>e||"black"});
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
${e=>he.hydrate(e)}
|
|
498
|
+
`,Et=f`
|
|
499
|
+
left: calc(100% + 10px);
|
|
500
|
+
|
|
501
|
+
&:before {
|
|
502
|
+
right: 100%;
|
|
503
|
+
top: calc(50% - 6px);
|
|
504
|
+
border-right-color: var(--db-${({$theme:e})=>e||"black"});
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
${e=>he.hydrate(e)}
|
|
508
|
+
`,Pt={info:"info"},It=({w:r,icon:n,direction:i,delay:o=150,widthIcon:a=20,theme:l,iconStyle:c={},element:u,children:s})=>t(Ct,{children:[u&&u,n&&e(Je,{type:Pt[n],wsvg:a,...c}),s&&e(At,{$w:r||200,$delay:o,className:"content",$direction:i||"top",$theme:l,children:e("small",{style:{fontWeight:300},children:s})})]});var Lt=n.memo(({children:r,tooltip:n,...i})=>t(Re,{className:"mt:15",...i,children:[e(zt,{$xsWidth:"100%",$mdWidth:"75%",children:r}),e(zt,{$xsWidth:"100%",$mdWidth:"10%",className:"ph:05",children:e(It,{icon:"info",w:250,direction:"right",children:n})})]}));const Ft=d.div`
|
|
509
|
+
font-family: inherit;
|
|
510
|
+
font-size: inherit;
|
|
511
|
+
height: ${({$small:e})=>e?"44px":"54px"};
|
|
512
|
+
width: 100%;
|
|
513
|
+
background-color: var(--db-white);
|
|
514
|
+
border: 1px solid transparent;
|
|
515
|
+
|
|
516
|
+
${({$hasFocus:e})=>e&&"border-width: 2px;"}
|
|
517
|
+
|
|
518
|
+
border-color: ${({$hasError:e,$hasWarning:t,$hasFocus:r,disabled:n})=>t?"var(--db-warning)":e?"var(--db-danger)":r?"var(--db-tertiary)":n?"rgba(83,86,90,0.4)":"var(--db-smoke-darken-10)"};
|
|
519
|
+
|
|
520
|
+
${({$hasError:e,$hasWarning:t})=>t?"box-shadow: 0 0 0 4px rgba(228,141,0,0.2);":e?"box-shadow: 0 0 0 4px rgba(232,42,77,0.2);":void 0}
|
|
521
|
+
|
|
522
|
+
position: relative;
|
|
523
|
+
border-radius: 8px;
|
|
524
|
+
`,Nt=d.select`
|
|
525
|
+
border: none;
|
|
526
|
+
outline: none;
|
|
527
|
+
padding: 22px 40px 8px 16px;
|
|
528
|
+
background: transparent;
|
|
529
|
+
position: absolute;
|
|
530
|
+
top: 0;
|
|
531
|
+
bottom: 0;
|
|
532
|
+
left: 0;
|
|
533
|
+
right: 0;
|
|
534
|
+
width: 100%;
|
|
535
|
+
height: 100%;
|
|
536
|
+
z-index: 2;
|
|
537
|
+
font-size: inherit;
|
|
538
|
+
color: var(--db-black-lighten-40);
|
|
539
|
+
font-weight: 300;
|
|
540
|
+
text-align: ${({$align:e})=>e||"left"};
|
|
541
|
+
cursor: ${({disabled:e})=>e?"not-allowed":"initial"};
|
|
542
|
+
&::-webkit-outer-spin-button,
|
|
543
|
+
&::-webkit-inner-spin-button {
|
|
544
|
+
-webkit-appearance: none;
|
|
545
|
+
display: none;
|
|
546
|
+
margin: 0;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
&:disabled {
|
|
550
|
+
& ~ .actionButton {
|
|
551
|
+
display: none;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
appearance: none;
|
|
556
|
+
`,Wt=d.span`
|
|
557
|
+
color: var(--db-tertiary-lighten-30);
|
|
558
|
+
font-weight: 300;
|
|
559
|
+
font-size: ${({$hasFocus:e})=>e?"70%":"inherit"};
|
|
560
|
+
padding: 0;
|
|
561
|
+
line-height: 1;
|
|
562
|
+
background: transparent;
|
|
563
|
+
position: absolute;
|
|
564
|
+
top: ${({$hasFocus:e})=>e?"4px":"16px"};
|
|
565
|
+
bottom: 0;
|
|
566
|
+
left: 14px;
|
|
567
|
+
right: 0;
|
|
568
|
+
width: auto;
|
|
569
|
+
text-align: ${({$right:e})=>e?"right":"left"};
|
|
570
|
+
pointer-events: none;
|
|
571
|
+
z-index: 1;
|
|
572
|
+
transition: font-size 150ms ease-in-out, border-width 150ms ease-in-out,
|
|
573
|
+
border-color 150ms ease-in-out, top 100ms ease-in-out;
|
|
574
|
+
`,Bt=d.em`
|
|
575
|
+
color: var(--db-danger);
|
|
576
|
+
font-size: 12px;
|
|
577
|
+
position: absolute;
|
|
578
|
+
right: 0;
|
|
579
|
+
bottom: -20px;
|
|
580
|
+
`,Tt=d.em`
|
|
581
|
+
color: var(--db-warning);
|
|
582
|
+
font-size: 12px;
|
|
583
|
+
position: absolute;
|
|
584
|
+
right: 0;
|
|
585
|
+
bottom: -20px;
|
|
586
|
+
`,Dt=d.span`
|
|
587
|
+
min-width: ${({$small:e})=>e?"44px":"54px"};
|
|
588
|
+
min-height: ${({$small:e})=>e?"44px":"54px"};
|
|
589
|
+
width: ${({$small:e})=>e?"44px":"54px"};
|
|
590
|
+
height: ${({$small:e})=>e?"44px":"54px"};
|
|
591
|
+
|
|
592
|
+
display: flex;
|
|
593
|
+
align-items: center;
|
|
594
|
+
justify-content: center;
|
|
595
|
+
position: absolute;
|
|
596
|
+
right: 0;
|
|
597
|
+
top: 0;
|
|
598
|
+
opacity: 0.7;
|
|
599
|
+
pointer-events: none;
|
|
600
|
+
z-index: 2;
|
|
601
|
+
`,Mt=({key:e,name:r,value:n,disabled:i,exclusion:o=!1})=>(console.log("exclusion: ",o),o?null:t("option",{value:n,disabled:i,children:[r,i?" (disabled)":""]},e)),Ut=({options:r,id:n,defaultValue:o,otherLess:l,excludes:c,exclusion:u="default",placeholder:d,type:f,getValue:p,value:h,onChange:g,onBlur:v,onFocus:m,error:b="",warning:y="",disabled:w,hasRequired:x,...$})=>{const[_,k]=i([]),[j,z]=i(!1);a(()=>{if(c){let e=[];e=c.map(e=>null==e?void 0:e.id).filter(Boolean),(null==e?void 0:e.length)&&k(e),console.log("exclusions ids :: ",e)}},[c]);const C=s(()=>{m&&m(),z(!0)},[m]);return t(Ft,{...$,$hasFocus:j,$small:!d,$hasError:b.length,$hasWarning:y.length,disabled:w,children:[t(Nt,{id:n,value:h,name:n||"select",disabled:w,required:x,onFocus:()=>C(),$right:!!x,onChange:e=>null==p?void 0:p((e=>e.target.value)(e)),onBlur:()=>z(!1),defaultValue:o||"",title:d||"Seleccionar opción","aria-label":d||"Seleccionar opción",children:[e(Mt,{value:"",name:"",selected:!1,exclusion:!1},0),r&&r.map(t=>e(Mt,{value:t.id,name:t.name,selected:!!t.selected,exclusion:"invert"===u&&!_.includes(t.id),disabled:"invert"===u?!_.includes(t.id):_.includes(t.id)},t.id)),!l&&"invert"!==u&&e("option",{value:"9999",children:"Other"})]}),e(Dt,{children:e(Je,{type:"arrowDown",wsvg:20})}),d&&e(Wt,{htmlFor:n,$hasFocus:j||!!h,disabled:w,children:d}),x&&e(Wt,{htmlFor:n,$hasFocus:!0,disabled:w,$right:!0,children:"Required"}),b&&e(Bt,{children:b}),y&&e(Tt,{children:y})]})},Vt=p`
|
|
602
|
+
from {
|
|
603
|
+
opacity: 0;
|
|
604
|
+
transform: translateX(-12px);
|
|
605
|
+
}
|
|
606
|
+
to {
|
|
607
|
+
opacity: 1;
|
|
608
|
+
transform: translateX(0);
|
|
609
|
+
}
|
|
610
|
+
`,Kt=f`
|
|
611
|
+
border-color: var(--db-background);
|
|
612
|
+
background: var(--db-background);
|
|
613
|
+
color: var(--db-tertiary);
|
|
614
|
+
`,qt=f`
|
|
615
|
+
border-color: var(--db-tertiary-lighten-30);
|
|
616
|
+
background: var(--db-white);
|
|
617
|
+
`,Zt=f`
|
|
618
|
+
border-color: var(--db-primary);
|
|
619
|
+
background: var(--db-primary);
|
|
620
|
+
`,Ht=d.div`
|
|
621
|
+
position: relative;
|
|
622
|
+
display: ${({block:e})=>e?"flex":"inline-flex"};
|
|
623
|
+
width: ${({block:e})=>e?"100%":"auto"};
|
|
624
|
+
|
|
625
|
+
${e=>he.hydrate(e)}
|
|
626
|
+
`,Xt=d.div`
|
|
627
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
628
|
+
opacity: ${({$disabled:e})=>e?.5:1};
|
|
629
|
+
user-select: none;
|
|
630
|
+
width: ${({block:e})=>e?"100%":"auto"};
|
|
631
|
+
|
|
632
|
+
${e=>he.hydrate(e)}
|
|
633
|
+
`,Yt=d.div`
|
|
634
|
+
position: absolute;
|
|
635
|
+
z-index: 100;
|
|
636
|
+
${({$verticalPosition:e})=>"top"===e?"bottom: calc(100% + 8px);":"top: calc(100% + 8px);"}
|
|
637
|
+
${({$position:e})=>"left"===e?"left: 0;":"right: 0;"}
|
|
638
|
+
|
|
639
|
+
display: flex;
|
|
640
|
+
flex-direction: column;
|
|
641
|
+
align-items: stretch;
|
|
642
|
+
gap: 2px;
|
|
643
|
+
min-width: ${({$minWidth:e})=>e||160}px;
|
|
644
|
+
max-height: ${({$maxHeight:e})=>e?`${e}px`:"none"};
|
|
645
|
+
overflow-y: ${({$maxHeight:e})=>e?"auto":"visible"};
|
|
646
|
+
|
|
647
|
+
background: var(--db-white);
|
|
648
|
+
padding-block: 8px;
|
|
649
|
+
border-radius: ${({$position:e,$verticalPosition:t})=>"top"===t?"left"===e?"16px 16px 16px 6px":"16px 16px 6px 16px":"left"===e?"6px 16px 16px 16px":"16px 6px 16px 16px"};
|
|
650
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
|
651
|
+
transform-origin: ${({$position:e,$verticalPosition:t})=>`${"top"===t?"bottom":"top"} ${"left"===e?"left":"right"}`};
|
|
652
|
+
|
|
653
|
+
/* Scrollbar estilizado */
|
|
654
|
+
&::-webkit-scrollbar {
|
|
655
|
+
width: 6px;
|
|
656
|
+
}
|
|
657
|
+
&::-webkit-scrollbar-track {
|
|
658
|
+
background: transparent;
|
|
659
|
+
}
|
|
660
|
+
&::-webkit-scrollbar-thumb {
|
|
661
|
+
background: var(--db-tertiary-lighten-30);
|
|
662
|
+
border-radius: 3px;
|
|
663
|
+
}
|
|
664
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
665
|
+
background: var(--db-tertiary);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
/* Estado cerrado */
|
|
669
|
+
opacity: 0;
|
|
670
|
+
pointer-events: none;
|
|
671
|
+
visibility: hidden;
|
|
672
|
+
transform: ${({$verticalPosition:e})=>"top"===e?"translateY(8px) scale(0.95)":"translateY(-8px) scale(0.95)"};
|
|
673
|
+
transition: opacity 200ms ease-out, transform 200ms ease-out,
|
|
674
|
+
visibility 0ms 200ms;
|
|
675
|
+
|
|
676
|
+
/* Estado abierto */
|
|
677
|
+
${({$isOpen:e})=>e&&f`
|
|
678
|
+
opacity: 1;
|
|
679
|
+
pointer-events: all;
|
|
680
|
+
visibility: visible;
|
|
681
|
+
transform: translateY(0) scale(1);
|
|
682
|
+
transition: opacity 250ms cubic-bezier(0.34, 1.56, 0.64, 1),
|
|
683
|
+
transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0ms 0ms;
|
|
684
|
+
`}
|
|
685
|
+
|
|
686
|
+
${e=>he.hydrate(e)}
|
|
687
|
+
`,Gt=d.div`
|
|
688
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
689
|
+
transition: background-color 150ms ease;
|
|
690
|
+
background-color: ${({$selected:e})=>e?"var(--db-background)":"transparent"};
|
|
691
|
+
opacity: 0;
|
|
692
|
+
padding: 10px 16px;
|
|
693
|
+
|
|
694
|
+
${({$disabled:e})=>e&&f`
|
|
695
|
+
opacity: 0.5;
|
|
696
|
+
pointer-events: none;
|
|
697
|
+
`}
|
|
698
|
+
|
|
699
|
+
&:hover {
|
|
700
|
+
background-color: var(--db-background);
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
* {
|
|
704
|
+
pointer-events: none;
|
|
705
|
+
user-select: none;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
/* Animación de entrada escalonada */
|
|
709
|
+
${({$isOpen:e,$delay:t})=>e&&f`
|
|
710
|
+
animation: ${Vt} 300ms ease-out ${t}ms forwards;
|
|
711
|
+
`}
|
|
712
|
+
|
|
713
|
+
${e=>he.hydrate(e)}
|
|
714
|
+
`,Jt=d.div`
|
|
715
|
+
height: 1px;
|
|
716
|
+
background-color: var(--db-tertiary-lighten-45);
|
|
717
|
+
margin: 4px 12px;
|
|
718
|
+
|
|
719
|
+
${e=>he.hydrate(e)}
|
|
720
|
+
`,Qt=d.div`
|
|
721
|
+
display: flex;
|
|
722
|
+
align-items: center;
|
|
723
|
+
gap: 8px;
|
|
724
|
+
padding: 10px 12px;
|
|
725
|
+
border-radius: 12px;
|
|
726
|
+
border: 1px solid transparent;
|
|
727
|
+
background: transparent;
|
|
728
|
+
min-width: 120px;
|
|
729
|
+
transition: border-color 200ms ease, box-shadow 200ms ease;
|
|
730
|
+
|
|
731
|
+
&:hover {
|
|
732
|
+
border-color: var(--db-tertiary);
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
${({$theme:e})=>"fill"===e&&Zt}
|
|
736
|
+
${({$theme:e})=>"light"===e&&Kt}
|
|
737
|
+
${({$theme:e})=>"outline"===e&&qt}
|
|
738
|
+
|
|
739
|
+
${({$isOpen:e})=>e&&f`
|
|
740
|
+
border-color: var(--db-primary);
|
|
741
|
+
box-shadow: 0 0 0 2px var(--db-primary-lighten-45);
|
|
742
|
+
`}
|
|
743
|
+
|
|
744
|
+
svg {
|
|
745
|
+
transition: transform 200ms ease;
|
|
746
|
+
transform: ${({$isOpen:e})=>e?"rotate(180deg)":"rotate(0)"};
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
${e=>he.hydrate(e)}
|
|
750
|
+
`;function er({options:r,placeholder:n="Seleccionar",value:o,onSelect:l,block:c=!1,theme:d="outline",position:f="left",minWidth:p=160,maxHeight:h=280,disabled:g=!1,renderTrigger:v,renderOption:m,closeOnSelect:b=!0,trigger:y,panel:w,...x}){const[$,_]=i(!1),[k,j]=i("bottom"),[z,C]=i(h),A=u(null),S=r.find(e=>e.id===o),R=s(()=>{if(!A.current)return;const e=A.current.getBoundingClientRect(),t=window.innerHeight-e.bottom-16,r=e.top-16;t>=h?(j("bottom"),C(h)):r>t?(j("top"),C(Math.min(h,r))):(j("bottom"),C(Math.min(h,t)))},[h]),O=s(()=>{g||_(e=>(e||R(),!e))},[g,R]),E=s(e=>{e.disabled||(null==l||l(e),b&&_(!1))},[l,b]);return a(()=>{const e=e=>{A.current&&!A.current.contains(e.target)&&_(!1)};return $&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[$]),a(()=>{const e=e=>{"Escape"===e.key&&_(!1)};return $&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[$]),a(()=>{if(!$)return;const e=()=>R();return window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}},[$,R]),t(Ht,{block:c?"true":void 0,ref:A,...x,children:[e(Xt,{$disabled:g,onClick:O,block:c?"true":void 0,...y,children:v?v({isOpen:$,selectedOption:S,toggle:O}):t(Qt,{$isOpen:$,$theme:d,...y,children:[e(Ne,{$color:S?"var(--db-primary)":"var(--db-tertiary-lighten-20)",$size:14,$flex:"1",children:(null==S?void 0:S.name)||n}),e(Je,{type:"arrowDown",wsvg:18,color:"var(--db-tertiary)"})]})}),e(Yt,{$isOpen:$,$position:f,$verticalPosition:k,$minWidth:p,$maxHeight:z,...w,children:r.map((r,n)=>{if(r.divider)return e(Jt,{},`divider-${n}`);const i=r.id===o,a=50+30*n;return m?e(Gt,{$isOpen:$,$delay:a,$disabled:r.disabled,$selected:i,onClick:()=>E(r),children:m(r,n)},r.id):t(Gt,{$isOpen:$,$delay:a,$disabled:r.disabled,$selected:i,onClick:()=>E(r),children:[r.icon&&e(Je,{type:r.icon,wsvg:18,color:i?"var(--db-primary)":"var(--db-tertiary)"}),t(Re,{$direction:"column",children:[e(Ne,{$color:i?"var(--db-primary)":r.disabled?"var(--db-tertiary-lighten-30)":"var(--db-tertiary)",$size:14,$lineHeight:14,children:r.name}),r.tooltip&&e(Ne,{$size:10,$weight:"500",$type:"small",$lineHeight:10,$color:"var(--db-tertiary-lighten-20)",children:r.tooltip})]})]},r.id)})})]})}const tr=d.input`
|
|
751
|
+
display: block;
|
|
752
|
+
height: 0px;
|
|
753
|
+
margin: 0;
|
|
754
|
+
opacity: 0;
|
|
755
|
+
width: 0px;
|
|
756
|
+
|
|
757
|
+
&:checked ~ #checked {
|
|
758
|
+
display: inline-flex;
|
|
759
|
+
}
|
|
760
|
+
&:checked ~ #empty {
|
|
761
|
+
display: none;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
&:not(:checked) ~ #checked {
|
|
765
|
+
display: none;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
&:not(:checked) ~ #empty {
|
|
769
|
+
display: inline-flex;
|
|
770
|
+
}
|
|
771
|
+
${e=>he.hydrate(e)}
|
|
772
|
+
`,rr=d.span`
|
|
773
|
+
display: flex;
|
|
774
|
+
justify-content: start;
|
|
775
|
+
align-items: center;
|
|
776
|
+
width: 100%;
|
|
777
|
+
|
|
778
|
+
label {
|
|
779
|
+
text-decoration: ${({disabled:e})=>e?"line-through":"none"};
|
|
780
|
+
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
781
|
+
color: ${({disabled:e})=>e?"var(--db-black-lighten-40)":"var(--db-black)"};
|
|
782
|
+
}
|
|
783
|
+
${e=>he.hydrate(e)}
|
|
784
|
+
`,nr=d.label`
|
|
785
|
+
cursor: pointer;
|
|
786
|
+
display: inline-flex;
|
|
787
|
+
align-items: center;
|
|
788
|
+
font-size: 14px;
|
|
789
|
+
${e=>he.hydrate(e)}
|
|
790
|
+
`;var ir=n.memo(({children:r,name:n,id:o,getValue:l,value:c,disabled:u,selected:d=null,...f})=>{const[p,h]=i(null);a(()=>{null!==d&&h(d)},[d]);const g=s(e=>{h(e),l&&l({checked:e,value:c})},[l,c]);return e(rr,{disabled:u,...f,children:t(nr,{htmlFor:o,children:[e(tr,{type:"checkbox",id:o,name:n,disabled:u,onChange:({target:e})=>g(e.checked),value:c,checked:p}),e(Je,{id:"checked",type:"checkFill",wsvg:24,containerProps:{style:{marginRight:10}}}),e(Je,{id:"empty",type:"checkEmpty",wsvg:24,containerProps:{style:{marginRight:10}}}),r]})})});const or=d.input`
|
|
791
|
+
display: block;
|
|
792
|
+
height: 0px;
|
|
793
|
+
margin: 0;
|
|
794
|
+
opacity: 0;
|
|
795
|
+
width: 0px;
|
|
796
|
+
|
|
797
|
+
&:checked ~ #checked {
|
|
798
|
+
display: inline-flex;
|
|
799
|
+
}
|
|
800
|
+
&:checked ~ #empty {
|
|
801
|
+
display: none;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
&:not(:checked) ~ #checked {
|
|
805
|
+
display: none;
|
|
806
|
+
}
|
|
807
|
+
&:not(:checked) ~ #empty {
|
|
808
|
+
display: inline-flex;
|
|
809
|
+
}
|
|
810
|
+
`,ar=d.span`
|
|
811
|
+
display: flex;
|
|
812
|
+
justify-content: start;
|
|
813
|
+
align-items: center;
|
|
814
|
+
`,lr=d.label`
|
|
815
|
+
cursor: pointer;
|
|
816
|
+
display: inline-flex;
|
|
817
|
+
align-items: center;
|
|
818
|
+
font-size: 14px;
|
|
819
|
+
`;var cr=n.memo(({children:r,name:n,id:i,getValue:o,value:a,selected:l=!1})=>{const c=s(e=>{o&&o({checked:e,value:a})},[o,a]);return e(ar,{children:t(lr,{htmlFor:i,children:[e(or,{checked:l,type:"radio",id:i,name:n,onChange:({target:e})=>c(e.checked),value:a}),e(Je,{id:"checked",type:"radioFill",wsvg:24,containerProps:{style:{marginRight:10}}}),e(Je,{id:"empty",type:"radioEmpty",wsvg:24,containerProps:{style:{marginRight:10}}}),r]})})});const ur=f`
|
|
820
|
+
color: var(--db-tertiary);
|
|
821
|
+
|
|
822
|
+
&:hover {
|
|
823
|
+
background-color: var(--db-background);
|
|
824
|
+
}
|
|
825
|
+
`,sr=f`
|
|
826
|
+
background-color: transparent;
|
|
827
|
+
color: var(--db-black);
|
|
828
|
+
|
|
829
|
+
&:hover {
|
|
830
|
+
color: #000;
|
|
831
|
+
background-color: var(--db-smoke);
|
|
832
|
+
}
|
|
833
|
+
`,dr=f`
|
|
834
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
835
|
+
|
|
836
|
+
&:hover {
|
|
837
|
+
background-color: var(--db-white);
|
|
838
|
+
}
|
|
839
|
+
`,fr=f`
|
|
840
|
+
background-color: var(--db-primary);
|
|
841
|
+
color: var(--db-white);
|
|
842
|
+
|
|
843
|
+
&:hover {
|
|
844
|
+
background-color: var(--db-primary-darken-10);
|
|
845
|
+
}
|
|
846
|
+
`,pr=f`
|
|
847
|
+
background-color: var(--db-black);
|
|
848
|
+
color: #fff;
|
|
849
|
+
`,hr=f`
|
|
850
|
+
background-color: transparent;
|
|
851
|
+
box-shadow: 0 0 0 1px rgb(from var(--db-black) r g b / 40%);
|
|
852
|
+
transition: all 100ms linear;
|
|
853
|
+
color: #000;
|
|
854
|
+
|
|
855
|
+
&:hover {
|
|
856
|
+
box-shadow: 0 0 0 1px var(--db-black);
|
|
857
|
+
background-color: transparent;
|
|
858
|
+
}
|
|
859
|
+
`,gr=d.button`
|
|
860
|
+
display: inline-flex;
|
|
861
|
+
align-items: center;
|
|
862
|
+
align-content: center;
|
|
863
|
+
justify-content: center;
|
|
864
|
+
background-color: transparent;
|
|
865
|
+
border-radius: ${({$square:e,$circle:t})=>e?0:t?50:10}px;
|
|
866
|
+
border: 2px solid transparent;
|
|
867
|
+
cursor: pointer;
|
|
868
|
+
font-family: "Poppins";
|
|
869
|
+
font-size: 14px;
|
|
870
|
+
width: ${({$w:e,$small:t})=>e||(t?30:40)}px;
|
|
871
|
+
height: ${({$w:e,$small:t})=>e||(t?30:40)}px;
|
|
872
|
+
min-width: ${({$w:e,$small:t})=>e||(t?30:40)}px;
|
|
873
|
+
min-height: ${({$w:e,$small:t})=>e||(t?30:40)}px;
|
|
874
|
+
text-align: center;
|
|
875
|
+
transition: background 200ms ease-in-out;
|
|
876
|
+
|
|
877
|
+
&:disabled,
|
|
878
|
+
&:disabled:hover {
|
|
879
|
+
box-shadow: none;
|
|
880
|
+
background: transparent;
|
|
881
|
+
border: 2px solid var(--db-smoke-darken-10);
|
|
882
|
+
color: var(--db-smoke-darken-10);
|
|
883
|
+
cursor: not-allowed;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
${({$nohover:e})=>!e&&f`
|
|
887
|
+
&:hover,
|
|
888
|
+
&:focus,
|
|
889
|
+
&:active {
|
|
890
|
+
background-color: var(--db-smoke);
|
|
891
|
+
border: 2px solid transparent;
|
|
892
|
+
color: white;
|
|
893
|
+
}
|
|
894
|
+
`}
|
|
895
|
+
|
|
896
|
+
${({$theme:e})=>"primary"===e&&fr}
|
|
897
|
+
${({$theme:e})=>"secondary"===e&&pr}
|
|
898
|
+
${({$theme:e})=>"outline"===e&&hr}
|
|
899
|
+
${({$theme:e})=>"link"===e&&sr}
|
|
900
|
+
${({$theme:e})=>"over"===e&&dr}
|
|
901
|
+
${({$theme:e})=>"light"===e&&ur}
|
|
902
|
+
|
|
903
|
+
${e=>he.hydrate(e)}
|
|
904
|
+
`;var vr=n.memo(({children:r,mobile:n,loading:i,direction:o,theme:a,widthTooltip:l,themeTooltip:c,tooltip:u,small:s,name:d,width:f,nohover:p,...h})=>u?e(It,{direction:o,w:l,theme:c,element:t(gr,{$nohover:p,$w:f,$small:s,$theme:a,name:d,"aria-label":d,type:"button",...h,children:[i&&e(He,{$w:20}),r]}),children:e(Ne,{$size:12,$weight:"500",$align:"center",$color:"background"===c?"var(--db-primary)":"var(--db-white)",children:u})}):t(gr,{$nohover:p,$w:f,name:d,$theme:a,"aria-label":d,type:"button",...h,children:[i&&e(He,{$w:20}),r]}));const mr=d.div`
|
|
905
|
+
display: flex;
|
|
906
|
+
align-items: ${({$align:e})=>null!=e?e:"stretch"};
|
|
907
|
+
align-content: ${({$align:e})=>null!=e?e:"stretch"};
|
|
908
|
+
flex-direction: ${({$reverse:e})=>e?"row-reverse":"row"};
|
|
909
|
+
flex-wrap: nowrap;
|
|
910
|
+
width: ${({$block:e})=>e?"100%":"auto"};
|
|
911
|
+
min-width: 200px;
|
|
912
|
+
max-width: ${({$mw:e})=>null!=e?e:"400px"};
|
|
913
|
+
padding: 0.5rem;
|
|
914
|
+
border-radius: ${({$rounded:e})=>e?200:10}px;
|
|
915
|
+
background-color: white;
|
|
916
|
+
|
|
917
|
+
${({$inline:e,$borderColor:t})=>e?`border: 1px solid ${null!=t?t:"rgba(0, 0, 0, 0.1)"};`:"box-shadow: 0 2px 10px -5px rgba(0, 0, 0, 0.2);"}
|
|
918
|
+
${e=>he.hydrate(e)}
|
|
919
|
+
`,br=d.div`
|
|
920
|
+
flex: 1;
|
|
921
|
+
padding-left: 1rem;
|
|
922
|
+
padding-right: 1rem;
|
|
923
|
+
${e=>he.hydrate(e)}
|
|
924
|
+
`,yr=d.span`
|
|
925
|
+
display: inline-flex;
|
|
926
|
+
border-radius: ${({$rounded:e})=>e?200:8}px;
|
|
927
|
+
align-items: center;
|
|
928
|
+
align-content: center;
|
|
929
|
+
justify-content: center;
|
|
930
|
+
width: 40px;
|
|
931
|
+
min-width: 40px;
|
|
932
|
+
height: 40px;
|
|
933
|
+
min-height: 40px;
|
|
934
|
+
${e=>he.hydrate(e)}
|
|
935
|
+
`,wr=d.span`
|
|
936
|
+
display: inline-flex;
|
|
937
|
+
align-items: center;
|
|
938
|
+
align-content: center;
|
|
939
|
+
justify-content: center;
|
|
940
|
+
width: 100%;
|
|
941
|
+
height: 100%;
|
|
942
|
+
border-radius: ${({$rounded:e})=>e?200:8}px;
|
|
943
|
+
${({$type:e})=>(e=>{if(!e)return;return{info:f`
|
|
944
|
+
background-color: color-mix(in srgb, var(--db-tertiary) 20%, transparent);
|
|
945
|
+
`,success:f`
|
|
946
|
+
background-color: color-mix(in srgb, var(--db-success) 20%, transparent);
|
|
947
|
+
`,warning:f`
|
|
948
|
+
background-color: color-mix(in srgb, var(--db-warning) 20%, transparent);
|
|
949
|
+
`,danger:f`
|
|
950
|
+
background-color: color-mix(in srgb, var(--db-danger) 20%, transparent);
|
|
951
|
+
`}[e]})(e)}
|
|
952
|
+
${e=>he.hydrate(e)}
|
|
953
|
+
`,xr={info:"info",success:"success",warning:"warning",danger:"danger"};var $r=n.memo(({children:r,type:n,align:i,noClose:o,className:a,onClose:l,...c})=>t(mr,{$type:n,$align:i,className:a,...c,children:[e(yr,{children:e(wr,{$type:n,children:e(Je,{type:xr[n],wsvg:28,color:`var(--db-${n})`})})}),e(br,{$color:`var(--db-${n}-darken-10)`,children:r}),!o&&e(Je,{type:"close",wsvg:28,style:{cursor:"pointer"},color:"var(--db-tertiary-lighten-30)",onClick:()=>null==l?void 0:l()})]}));const _r=d.i`
|
|
954
|
+
display: inline-flex;
|
|
955
|
+
position: relative;
|
|
956
|
+
background-image: url(${({$icon:e})=>e});
|
|
957
|
+
background-repeat: no-repeat;
|
|
958
|
+
background-position: center;
|
|
959
|
+
background-size: contain;
|
|
960
|
+
transition: all 200ms linear;
|
|
961
|
+
object-fit: contain;
|
|
962
|
+
${e=>he.hydrate(e)}
|
|
963
|
+
`;var kr=n.memo(({children:t,...r})=>e(_r,{...r,children:t}));const jr=d.div`
|
|
964
|
+
position: relative;
|
|
965
|
+
width: 100%;
|
|
966
|
+
height: 100%;
|
|
967
|
+
overflow: hidden;
|
|
968
|
+
background-color: var(--db-black);
|
|
969
|
+
|
|
970
|
+
&.loading {
|
|
971
|
+
animation: pulse 1.5s infinite ease-in-out;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
&.loaded {
|
|
975
|
+
animation: none;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
@keyframes pulse {
|
|
979
|
+
0% {
|
|
980
|
+
opacity: 0.6;
|
|
981
|
+
}
|
|
982
|
+
50% {
|
|
983
|
+
opacity: 0.8;
|
|
984
|
+
}
|
|
985
|
+
100% {
|
|
986
|
+
opacity: 0.6;
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
video {
|
|
991
|
+
max-width: 100%;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
${e=>he.hydrate(e)}
|
|
995
|
+
`,zr=d.video`
|
|
996
|
+
width: 100%;
|
|
997
|
+
height: 100%;
|
|
998
|
+
${e=>he.hydrate(e)}
|
|
999
|
+
`,Cr=d.div`
|
|
1000
|
+
position: absolute;
|
|
1001
|
+
top: 50%;
|
|
1002
|
+
left: 50%;
|
|
1003
|
+
transform: translate(-50%, -50%);
|
|
1004
|
+
color: var(--db-white);
|
|
1005
|
+
z-index: 1;
|
|
1006
|
+
${e=>he.hydrate(e)}
|
|
1007
|
+
`,Ar=d.div`
|
|
1008
|
+
width: 100%;
|
|
1009
|
+
height: 100%;
|
|
1010
|
+
background-color: var(--db-black-lighten-10);
|
|
1011
|
+
${e=>he.hydrate(e)}
|
|
1012
|
+
`;var Sr=n.memo(({src:r,title:n,type:o="video/mp4",controls:l=!0,autoPlay:c=!1,muted:s=!1,loop:d=!1,className:f="",containerStyles:p={},videoStyles:h={},fit:g="contain",poster:v="",id:m="",name:b="",persistAutoplay:y=!1,...w})=>{const x=u(null),$=u(null),[_,k]=i(!1),[j,z]=i(!1);return a(()=>{(w.fetchpriority||w.preload)&&z(!0)},[w.fetchpriority,w.preload]),a(()=>{$.current&&y&&$.current.play().catch(e=>{console.warn("Video autoplay blocked:",e)})},[y]),a(()=>{if("undefined"==typeof IntersectionObserver)return console.log("IntersectionObserver not supported, loading video directly"),void z(!0);const e=x.current,t=new IntersectionObserver(e=>{const[t]=e;t.isIntersecting?(console.log("Video in viewport"),z(!0),c&&$.current&&$.current.play().catch(e=>{console.warn("Video autoplay blocked:",e)}),$.current&&y&&$.current.play().catch(e=>{console.warn("Video autoplay blocked:",e)})):(console.log("Video out of viewport, pausing"),$.current&&$.current.pause())},{root:null,rootMargin:"0px",threshold:.1});return e&&t.observe(e),()=>{e&&t.disconnect()}},[c,y]),t(jr,{ref:x,className:`video-component ${f} ${_?"loaded":"loading"}`,style:p,"data-testid":m,"data-name":b,children:[!_&&j&&e(Cr,{children:"Cargando..."}),j?t(zr,{ref:$,poster:v,title:n,controls:l,autoPlay:c,muted:s,loop:d,onLoadedData:()=>{k(!0)},preload:"metadata",playsInline:!0,$objectFit:g,style:h,...w,children:[e("source",{src:r,type:o}),"Tu navegador no soporta videos HTML5."]}):e(Ar,{})]})});const Rr=d.picture`
|
|
1013
|
+
overflow: hidden;
|
|
1014
|
+
position: relative;
|
|
1015
|
+
display: block;
|
|
1016
|
+
border: none;
|
|
1017
|
+
outline: 0;
|
|
1018
|
+
|
|
1019
|
+
width: 100%;
|
|
1020
|
+
height: 100%;
|
|
1021
|
+
|
|
1022
|
+
img {
|
|
1023
|
+
width: 100%;
|
|
1024
|
+
height: 100%;
|
|
1025
|
+
opacity: 0;
|
|
1026
|
+
|
|
1027
|
+
transition: opacity 400ms ease-out;
|
|
1028
|
+
&.load {
|
|
1029
|
+
opacity: 1;
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
${e=>he.hydrate(e)}
|
|
1034
|
+
`;var Or=n.memo(({url:r,name:n,fit:i="contain",imagePosition:l,children:c,blur:d="",ratio:f,radius:p,...h})=>{const g=u(null),v=o(()=>({objectFit:i,objectPosition:l||"center",aspectRatio:f,borderRadius:p}),[i,l,f,p]),m=s(()=>r?ge()?`${r}?v=${Date.now()}`:r:"",[r]);return a(()=>{if(!g.current)return;const e=new IntersectionObserver(t=>{const r=t[0];if(r.isIntersecting){const t=r.target;t.src=m(),t.classList.add("load"),e.unobserve(t)}},{threshold:.1});e.observe(g.current)},[g,r]),t(Rr,{...h,$backdropFilter:d,children:[c,e("img",{ref:g,className:"lazy",loading:"lazy",width:1,height:1,"data-src":r,alt:n||"image",style:v})]})});const Er=d.div`
|
|
1035
|
+
width: 100%;
|
|
1036
|
+
display: ${({$type:e})=>"inline"===e?"inline-grid":"grid"};
|
|
1037
|
+
${e=>he.hydrate(e)}
|
|
1038
|
+
`;var Pr=n.memo(({children:t,type:r=null,...n})=>e(Er,{$type:r,...n,children:t}));const Ir=d.div`
|
|
1039
|
+
display: flex;
|
|
1040
|
+
flex-direction: column;
|
|
1041
|
+
align-items: center;
|
|
1042
|
+
align-content: center;
|
|
1043
|
+
justify-content: center;
|
|
1044
|
+
overflow-x: hidden;
|
|
1045
|
+
z-index: 999999;
|
|
1046
|
+
position: fixed;
|
|
1047
|
+
top: 0;
|
|
1048
|
+
left: 0;
|
|
1049
|
+
width: 100dvw;
|
|
1050
|
+
height: 100dvh;
|
|
1051
|
+
background-color: ${({$theme:e})=>"dark"!==e?"rgba(255, 255, 255, 0.9)":"rgba(0, 0, 0, 0.9)"};
|
|
1052
|
+
backdrop-filter: blur(8px);
|
|
1053
|
+
transition: opacity 100ms ease;
|
|
1054
|
+
opacity: ${({$show:e})=>e?1:0};
|
|
1055
|
+
pointer-events: ${({$show:e})=>e?"all":"none"};
|
|
1056
|
+
|
|
1057
|
+
.grid {
|
|
1058
|
+
@media (max-height: 640px) {
|
|
1059
|
+
grid-template-rows: 1fr !important;
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
#slide {
|
|
1064
|
+
transition: margin-left 500ms ease-in-out;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
.slide_thumbnails {
|
|
1068
|
+
@media (max-height: 640px) {
|
|
1069
|
+
display: none !important;
|
|
1070
|
+
pointer-events: none !important;
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
.slide_item {
|
|
1075
|
+
transition: all 0.2s;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
${e=>he.hydrate(e)}
|
|
1079
|
+
`,Lr=d.div`
|
|
1080
|
+
display: grid;
|
|
1081
|
+
grid-template-columns: 1fr;
|
|
1082
|
+
grid-template-rows: auto 1fr;
|
|
1083
|
+
align-items: center;
|
|
1084
|
+
align-content: center;
|
|
1085
|
+
justify-content: center;
|
|
1086
|
+
justify-items: center;
|
|
1087
|
+
width: 100%;
|
|
1088
|
+
height: 100%;
|
|
1089
|
+
${e=>he.hydrate(e)}
|
|
1090
|
+
`,Fr=d.div`
|
|
1091
|
+
width: 100%;
|
|
1092
|
+
z-index: 200;
|
|
1093
|
+
padding: 1rem;
|
|
1094
|
+
${e=>he.hydrate(e)}
|
|
1095
|
+
`,Nr=d.div`
|
|
1096
|
+
display: flex;
|
|
1097
|
+
flex-direction: column;
|
|
1098
|
+
align-items: center;
|
|
1099
|
+
align-content: center;
|
|
1100
|
+
justify-content: center;
|
|
1101
|
+
justify-items: center;
|
|
1102
|
+
position: relative;
|
|
1103
|
+
overflow: hidden;
|
|
1104
|
+
width: 100%;
|
|
1105
|
+
height: 100%;
|
|
1106
|
+
padding: 1rem;
|
|
1107
|
+
${e=>he.hydrate(e)}
|
|
1108
|
+
`,Wr=d.div`
|
|
1109
|
+
position: absolute;
|
|
1110
|
+
transform: translateY(-50%);
|
|
1111
|
+
top: calc(50% - 20px);
|
|
1112
|
+
transition: opacity 100ms ease;
|
|
1113
|
+
background: var(--db-white);
|
|
1114
|
+
display: flex;
|
|
1115
|
+
justify-content: center;
|
|
1116
|
+
align-items: center;
|
|
1117
|
+
height: 40px;
|
|
1118
|
+
width: 40px;
|
|
1119
|
+
padding: 0.6em;
|
|
1120
|
+
border-radius: 100%;
|
|
1121
|
+
box-shadow:
|
|
1122
|
+
20px 20px 60px var(--db-smoke-darken-20),
|
|
1123
|
+
-20px -20px 60px var(--db-white);
|
|
1124
|
+
cursor: pointer;
|
|
1125
|
+
z-index: 500;
|
|
1126
|
+
|
|
1127
|
+
&:hover {
|
|
1128
|
+
opacity: 1;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
@media (max-width: 768px) {
|
|
1132
|
+
top: 106%;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
@media (max-width: 425px) {
|
|
1136
|
+
top: 115%;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
${e=>he.hydrate(e)}
|
|
1140
|
+
`,Br=d.div`
|
|
1141
|
+
position: relative;
|
|
1142
|
+
width: 100%;
|
|
1143
|
+
max-height: 700px;
|
|
1144
|
+
height: 100%;
|
|
1145
|
+
display: flex;
|
|
1146
|
+
align-items: center;
|
|
1147
|
+
justify-content: center;
|
|
1148
|
+
${e=>he.hydrate(e)}
|
|
1149
|
+
`,Tr=d.div`
|
|
1150
|
+
left: 50%;
|
|
1151
|
+
position: absolute;
|
|
1152
|
+
transform: translateX(-50%);
|
|
1153
|
+
background: rgba(0, 0, 0, 0.3);
|
|
1154
|
+
backdrop-filter: blur(8px);
|
|
1155
|
+
color: var(--db-white);
|
|
1156
|
+
padding: 8px 12px;
|
|
1157
|
+
border-radius: 2rem;
|
|
1158
|
+
font-style: italic;
|
|
1159
|
+
text-align: center;
|
|
1160
|
+
justify-content: center;
|
|
1161
|
+
align-items: center;
|
|
1162
|
+
width: 90%;
|
|
1163
|
+
|
|
1164
|
+
@media (max-width: 960px) {
|
|
1165
|
+
top: 0;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
@media (min-width: 960px) {
|
|
1169
|
+
bottom: 2%;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
@media (min-width: 1024px) {
|
|
1173
|
+
bottom: 2%;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
${e=>he.hydrate(e)}
|
|
1177
|
+
`,Dr=({id:r="viewer",show:n=!1,files:l=[],currentImg:c=0,onClose:u=null,hideInfo:d=!1,title:f="",caption:p="",theme:h="light"})=>{const[g,v]=i(0),[m,b]=i(0),y=o(()=>["jpeg","jpg","png","webp"],[]),w=o(()=>["mp4","webm","avi"],[]),x=s(()=>{const e=g+1;v(e<m?e:m)},[g,m]),$=s(()=>{v(g-1>0?g-1:0)},[g]),_=s(()=>{v(0),null==u||u()},[u,v]);return a(()=>{console.log("Viewer files",l),b(l.length-1)},[l]),a(()=>{v(c)},[c]),a(()=>{if(ge())return n&&(document.body.style.overflowY="hidden"),()=>{document.body.style.overflowY="auto"}},[n]),e(Ir,{$show:n,$current:g,$theme:h,id:r,children:t(Lr,{children:[e(Fr,{$xsPb:0,$mdPb:20,children:e(_e,{children:t(Re,{$items:"center",$justify:d?"end":"between",$xsDirection:"column",$mdDirection:"row",children:[!d&&e(Ne,{$xsSize:18,$mdSize:22,$weight:"500",children:f}),t(Xe,{$theme:"light",$padding:"10px 20px",$bg:"white",onClick:_,$boxShadow:"0 6px 30px -10px rgba(0, 0, 0, 0.05)",children:[e(Je,{name:"rollback",size:24,color:"black"}),e(Ne,{$size:16,$weight:"500",children:"Cerrar"})]})]})})}),t(Nr,{children:[e(Wr,{onClick:$,$xsLeft:"35%",$smLeft:"10%",$mdLeft:"16%",$pointerEvents:g>0?"all":"none",$opacity:g>0?1:0,children:e(Je,{name:"arrowl",size:24,color:"black"})}),t(Pr,{$cols:"1fr",$rows:"1fr 100px",$minw:"50%",$xsWidth:"90%",$mdWidth:"70%",$xsHeight:"90%",$mdHeight:"100%",className:"grid",children:[e(Re,{$align:"center",$items:"center",$content:"center",$overflow:"hidden",children:e(Re,{id:"slide",$maxw:"100%",$ml:`-${g}00%`,$width:`${l.length}00%`,$height:"100%",children:!!l.length&&l.map(({url:r,format:n,alt:i,fit:o="contain",persistAutoplay:a=!1},l)=>t(Re,{$justify:"center",$align:"center",className:"slide_item",$direction:"column",style:{minWidth:"100%",opacity:g===l?1:.5,transform:g===l?"scale(1)":"scale(0.7)"},children:[t(Br,{children:[w.includes(n)&&e(Sr,{src:r,alt:i,title:i,type:`video/${n}`,preload:"metadata",fetchpriority:"auto",persistAutoplay:a,style:{objectFit:o}}),y.includes(n)&&e(Or,{alt:i,url:r,fit:o,loading:"lazy"})]}),e(Tr,{$xsSize:8,$smSize:10,$xlSize:12,$mdWidth:"70%",$xlWidth:"60%",$display:p?"inline-flex":"none",children:p})]},l))})}),e(Re,{$mt:20,$gap:10,$xsJustify:"start",$mdJustify:"center",$xsFlexWrap:"nowrap",$mdFlexWrap:"wrap",$xsOverflowX:"auto",className:"slide_thumbnails",children:l.map(({url:r,format:n,alt:i,fit:o},a)=>{const l=w.includes(n);return e(Re,{$xsWsvg:50,$smWsvg:60,$xlWsvg:80,$radius:10,$overflow:"hidden",$cursor:"pointer",$opacity:g===a?1:.7,$transition:"all 0.2s ease-in-out",$boxShadow:"inset 0 0 0 3px var(--db-white)",$border:"3px solid transparent",$borderColor:g===a?"var(--db-primary)":"transparent",onClick:()=>v(a),children:l?t(Re,{$width:"100%",$height:"100%",$align:"center",$conten:"center",$justify:"center",$direction:"column",$bg:"rgba(255, 255, 255, 0.6)",$backdropFilter:"blur(4px)",children:[e(Ye,{children:e(Je,{name:"hdDisplay",size:24,color:"black"})}),e(Ne,{$size:10,$weight:"600",$align:"center",children:"Video"})]}):e(Or,{alt:i,url:r,fit:o,loading:"lazy"})},a)})})]}),e(Wr,{onClick:x,$xsRight:"35%",$smRight:"10%",$mdRight:"16%",$pointerEvents:g!==m?"all":"none",$opacity:g!==m?1:0,children:e(Je,{name:"arrowr",size:24,color:"black"})})]})]})})},Mr=f`
|
|
1178
|
+
background-color: var(--db-primary);
|
|
1179
|
+
color: var(--db-white);
|
|
1180
|
+
`,Ur=f`
|
|
1181
|
+
background-color: var(--db-secondary);
|
|
1182
|
+
color: var(--db-white);
|
|
1183
|
+
`,Vr=f`
|
|
1184
|
+
background-color: var(--db-tertiary);
|
|
1185
|
+
color: var(--db-white);
|
|
1186
|
+
`,Kr=f`
|
|
1187
|
+
background-color: var(--db-background);
|
|
1188
|
+
`,qr=f`
|
|
1189
|
+
color: var(--db-primary);
|
|
1190
|
+
background-color: var(--db-background);
|
|
1191
|
+
`,Zr=f`
|
|
1192
|
+
background-color: var(--db-black);
|
|
1193
|
+
color: var(--db-white);
|
|
1194
|
+
`,Hr=d.span`
|
|
1195
|
+
display: inline-flex;
|
|
1196
|
+
align-items: center;
|
|
1197
|
+
align-content: center;
|
|
1198
|
+
justify-content: center;
|
|
1199
|
+
gap: 6px;
|
|
1200
|
+
line-height: 10px;
|
|
1201
|
+
min-width: 24px;
|
|
1202
|
+
padding: 6px 8px;
|
|
1203
|
+
border-radius: 30px;
|
|
1204
|
+
font-weight: bold;
|
|
1205
|
+
text-transform: uppercase;
|
|
1206
|
+
white-space: nowrap;
|
|
1207
|
+
font-size: 10px;
|
|
1208
|
+
|
|
1209
|
+
${({$theme:e})=>"primary"===e&&Mr}
|
|
1210
|
+
${({$theme:e})=>"secondary"===e&&Ur}
|
|
1211
|
+
${({$theme:e})=>"tertiary"===e&&Vr}
|
|
1212
|
+
${({$theme:e})=>"action"===e&&Zr}
|
|
1213
|
+
${({$theme:e})=>"light"===e&&Kr}
|
|
1214
|
+
${({$theme:e})=>"pill"===e&&qr}
|
|
1215
|
+
${e=>he.hydrate(e)}
|
|
1216
|
+
`,Xr=d.span`
|
|
1217
|
+
display: inline-flex;
|
|
1218
|
+
align-items: center;
|
|
1219
|
+
cursor: pointer;
|
|
1220
|
+
margin-left: 2px;
|
|
1221
|
+
opacity: 0.8;
|
|
1222
|
+
transition: opacity 150ms ease;
|
|
1223
|
+
|
|
1224
|
+
&:hover {
|
|
1225
|
+
opacity: 1;
|
|
1226
|
+
}
|
|
1227
|
+
`;var Yr=n.memo(({children:r,$closable:n,onClose:i,...o})=>t(Hr,{...o,children:[r,n&&i&&e(Xr,{onClick:e=>{e.stopPropagation(),null==i||i()},children:e(Je,{type:"xmark",wsvg:14})})]}));const Gr=d.div`
|
|
1228
|
+
width: 100%;
|
|
1229
|
+
display: block;
|
|
1230
|
+
border: 1px solid transparent;
|
|
1231
|
+
|
|
1232
|
+
${({$inline:e})=>e?"border-color: var(--db-smoke-darken-10);":"box-shadow: 0 2px 10px -5px rgba(0, 0, 0, 0.1);"}
|
|
1233
|
+
|
|
1234
|
+
border-radius: 10px;
|
|
1235
|
+
${e=>he.hydrate(e)}
|
|
1236
|
+
`;var Jr=n.memo(({children:t,...r})=>e(Gr,{...r,children:t}));const Qr=d.h1`
|
|
1237
|
+
${e=>he.hydrate(e)}
|
|
1238
|
+
`,en=d.h2`
|
|
1239
|
+
${e=>he.hydrate(e)}
|
|
1240
|
+
`,tn=d.h3`
|
|
1241
|
+
${e=>he.hydrate(e)}
|
|
1242
|
+
`,rn=d.h4`
|
|
1243
|
+
${e=>he.hydrate(e)}
|
|
1244
|
+
`,nn=d.h5`
|
|
1245
|
+
${e=>he.hydrate(e)}
|
|
1246
|
+
`,on=d.h6`
|
|
1247
|
+
${e=>he.hydrate(e)}
|
|
1248
|
+
`;var an=n.memo(({$type:t,children:r,...n})=>{switch(t){case"h2":return e(en,{...n,children:r});case"h3":return e(tn,{...n,children:r});case"h4":return e(rn,{...n,children:r});case"h5":return e(nn,{...n,children:r});case"h6":return e(on,{...n,children:r});default:return e(Qr,{...n,children:r})}});const ln=d.div`
|
|
1249
|
+
display: inline-flex;
|
|
1250
|
+
position: relative;
|
|
1251
|
+
|
|
1252
|
+
.whiteColor {
|
|
1253
|
+
display: inline;
|
|
1254
|
+
text-align: center;
|
|
1255
|
+
position: absolute;
|
|
1256
|
+
top: calc(50% - 11px);
|
|
1257
|
+
left: calc(50% - 11px);
|
|
1258
|
+
font-size: 22px;
|
|
1259
|
+
z-index: 2;
|
|
1260
|
+
opacity: 0.2;
|
|
1261
|
+
pointer-events: none;
|
|
1262
|
+
}
|
|
1263
|
+
${e=>he.hydrate(e)}
|
|
1264
|
+
`,cn=d.button`
|
|
1265
|
+
display: inline-flex;
|
|
1266
|
+
width: 40px;
|
|
1267
|
+
min-width: 40px;
|
|
1268
|
+
height: 40px;
|
|
1269
|
+
min-height: 40px;
|
|
1270
|
+
cursor: pointer;
|
|
1271
|
+
border: none;
|
|
1272
|
+
|
|
1273
|
+
border-radius: 14px;
|
|
1274
|
+
background-color: ${({$color:e})=>e||"var(--db-white)"};
|
|
1275
|
+
box-shadow: 0 0 0 2px var(--db-white), 0 0 0 6px var(--db-background);
|
|
1276
|
+
|
|
1277
|
+
transition: box-shadow 200ms ease;
|
|
1278
|
+
|
|
1279
|
+
&.active,
|
|
1280
|
+
&:hover {
|
|
1281
|
+
box-shadow: 0 0 0 2px var(--db-white), 0 0 0 6px var(--db-primary);
|
|
1282
|
+
}
|
|
1283
|
+
${e=>he.hydrate(e)}
|
|
1284
|
+
`;var un=n.memo(({getValue:r,color:n,value:i,...o})=>t(ln,{children:[e(cn,{$color:n,onClick:()=>r&&r(i),...o}),"white"===n&&e("span",{className:"whiteColor",children:"W"})]}));const sn=d.div`
|
|
1285
|
+
width: 100%;
|
|
1286
|
+
height: 100%;
|
|
1287
|
+
overflow: ${({$noOverflow:e})=>e?"visible":"hidden"};
|
|
1288
|
+
position: relative;
|
|
1289
|
+
${e=>he.hydrate(e)}
|
|
1290
|
+
`,dn=d.div`
|
|
1291
|
+
display: flex;
|
|
1292
|
+
height: 100%;
|
|
1293
|
+
transition: transform 0.5s ease-in-out;
|
|
1294
|
+
${({$activeIndex:e})=>f`
|
|
1295
|
+
transform: translateX(-${100*e}%);
|
|
1296
|
+
`}
|
|
1297
|
+
${e=>he.hydrate(e)}
|
|
1298
|
+
`,fn=d.div`
|
|
1299
|
+
min-width: 100%;
|
|
1300
|
+
${e=>he.hydrate(e)}
|
|
1301
|
+
`,pn=d.div`
|
|
1302
|
+
min-width: 100%;
|
|
1303
|
+
height: ${({height:e})=>isNaN(e)?e:`${e}px`};
|
|
1304
|
+
position: relative;
|
|
1305
|
+
overflow: hidden;
|
|
1306
|
+
|
|
1307
|
+
img,
|
|
1308
|
+
video {
|
|
1309
|
+
width: 100%;
|
|
1310
|
+
height: 100%;
|
|
1311
|
+
object-fit: cover;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
${e=>he.hydrate(e)}
|
|
1315
|
+
`,hn=d.button`
|
|
1316
|
+
position: absolute;
|
|
1317
|
+
top: 50%;
|
|
1318
|
+
transform: translateY(-50%);
|
|
1319
|
+
background: rgb(from black r g b / 50%);
|
|
1320
|
+
backdrop-filter: blur(4px);
|
|
1321
|
+
opacity: 0.4;
|
|
1322
|
+
border: none;
|
|
1323
|
+
border-radius: 6px;
|
|
1324
|
+
padding: 10px;
|
|
1325
|
+
cursor: pointer;
|
|
1326
|
+
z-index: 1;
|
|
1327
|
+
|
|
1328
|
+
transition: all 200ms ease;
|
|
1329
|
+
|
|
1330
|
+
&:hover {
|
|
1331
|
+
opacity: 1;
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
${({left:e})=>e&&f`
|
|
1335
|
+
left: 1rem;
|
|
1336
|
+
`}
|
|
1337
|
+
|
|
1338
|
+
${({right:e})=>e&&f`
|
|
1339
|
+
right: 1rem;
|
|
1340
|
+
`}
|
|
1341
|
+
${e=>he.hydrate(e)}
|
|
1342
|
+
`,gn=d.div`
|
|
1343
|
+
position: absolute;
|
|
1344
|
+
width: 100%;
|
|
1345
|
+
display: flex;
|
|
1346
|
+
justify-content: center;
|
|
1347
|
+
bottom: 30px;
|
|
1348
|
+
|
|
1349
|
+
@media (max-width: 768px) {
|
|
1350
|
+
bottom: 25px;
|
|
1351
|
+
}
|
|
1352
|
+
${e=>he.hydrate(e)}
|
|
1353
|
+
`,vn=d.button`
|
|
1354
|
+
border: none;
|
|
1355
|
+
padding: 2px 16px;
|
|
1356
|
+
margin: 0 5px;
|
|
1357
|
+
border-radius: 6px;
|
|
1358
|
+
cursor: pointer;
|
|
1359
|
+
margin-bottom: 1.5rem;
|
|
1360
|
+
background: ${({$active:e})=>e?"var(--db-white)":"rgb(from var(--db-white) r g b / 30%)"};
|
|
1361
|
+
transition: background-color 0.2s ease;
|
|
1362
|
+
${e=>he.hydrate(e)}
|
|
1363
|
+
`,mn=d.p`
|
|
1364
|
+
position: absolute;
|
|
1365
|
+
bottom: 8px;
|
|
1366
|
+
width: 98%;
|
|
1367
|
+
left: 0;
|
|
1368
|
+
right: 0;
|
|
1369
|
+
margin: 0 auto;
|
|
1370
|
+
text-align: center;
|
|
1371
|
+
color: var(--db-white);
|
|
1372
|
+
font-size: 0.7rem;
|
|
1373
|
+
font-weight: 400;
|
|
1374
|
+
padding: 0.4rem 2rem;
|
|
1375
|
+
z-index: 1;
|
|
1376
|
+
background: rgba(0, 0, 0, 0.05);
|
|
1377
|
+
backdrop-filter: blur(8px);
|
|
1378
|
+
border-radius: 1rem;
|
|
1379
|
+
max-width: max-content;
|
|
1380
|
+
${e=>he.hydrate(e)}
|
|
1381
|
+
`;var bn=n.memo(({children:o,height:l=500,autoPlay:c=!0,autoPlayTime:d=3e3,hideControls:f=!0,indicators:p=!0,noOverflow:h=!1,caption:g,...v})=>{const[m,b]=i(0),y=n.Children.count(o),w=u(null),x=s(()=>{b(e=>(e+1)%y)},[y]),$=s(()=>{b(e=>(e-1+y)%y)},[y]),_=s(e=>{b(e)},[]),k=s(e=>{const t=e.touches[0].clientX;e.target.ontouchmove=e=>{const r=e.touches[0].clientX;t-r>50&&x(),t-r<-50&&$()},e.target.ontouchend=()=>{e.target.ontouchmove=null}},[x,$]);return a(()=>{if(c)return w.current=setTimeout(x,d),()=>clearTimeout(w.current)},[m,c,d,x]),t(sn,{$noOverflow:h,...v,children:[e(dn,{$activeIndex:m,children:n.Children.map(o,(r,n)=>e(fn,{onTouchStart:k,children:t(pn,{height:l,children:[r,g&&e(mn,{children:g})]})},n))}),!f&&t(r,{children:[e(hn,{left:!0,onClick:$,children:e(Je,{type:"navLeft",wsvg:26})}),e(hn,{right:!0,onClick:x,children:e(Je,{type:"navRight",wsvg:26})})]}),p&&e(gn,{children:Array.from({length:y}).map((t,r)=>e(vn,{$active:r===m,onClick:()=>_(r)},r))})]})});const yn=f`
|
|
1382
|
+
transition: transform 400ms ease-in;
|
|
1383
|
+
|
|
1384
|
+
&,
|
|
1385
|
+
* {
|
|
1386
|
+
pointer-events: all;
|
|
1387
|
+
}
|
|
1388
|
+
`,wn=f`
|
|
1389
|
+
transition: transform 400ms ease-out;
|
|
1390
|
+
|
|
1391
|
+
opacity: 1;
|
|
1392
|
+
transform: translateY(0px);
|
|
1393
|
+
|
|
1394
|
+
&,
|
|
1395
|
+
* {
|
|
1396
|
+
pointer-events: all;
|
|
1397
|
+
}
|
|
1398
|
+
`,xn=d.div`
|
|
1399
|
+
display: block;
|
|
1400
|
+
pointer-events: none;
|
|
1401
|
+
position: fixed;
|
|
1402
|
+
top: 0;
|
|
1403
|
+
left: 0;
|
|
1404
|
+
width: 100%;
|
|
1405
|
+
height: 100%;
|
|
1406
|
+
z-index: 9999;
|
|
1407
|
+
|
|
1408
|
+
background-color: rgb(from var(--db-black) r g b / 0.4);
|
|
1409
|
+
backdrop-filter: blur(10px);
|
|
1410
|
+
transition: opacity 200ms linear;
|
|
1411
|
+
opacity: ${({$show:e})=>e?1:0};
|
|
1412
|
+
${e=>he.hydrate(e)}
|
|
1413
|
+
`,$n=d.div`
|
|
1414
|
+
position: fixed;
|
|
1415
|
+
top: 0;
|
|
1416
|
+
left: 0;
|
|
1417
|
+
z-index: 99999;
|
|
1418
|
+
padding-top: 2rem;
|
|
1419
|
+
overflow-x: hidden;
|
|
1420
|
+
|
|
1421
|
+
display: flex;
|
|
1422
|
+
width: 100%;
|
|
1423
|
+
height: 100%;
|
|
1424
|
+
|
|
1425
|
+
align-items: flex-start;
|
|
1426
|
+
justify-content: center;
|
|
1427
|
+
transform: translateY(-100%);
|
|
1428
|
+
opacity: 0;
|
|
1429
|
+
|
|
1430
|
+
transition-delay: 600ms;
|
|
1431
|
+
transition: transform 400ms linear;
|
|
1432
|
+
|
|
1433
|
+
@media screen and (min-width: 768px) {
|
|
1434
|
+
padding-block: 40px;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
${({$position:e})=>(e=>{switch(e){case"top":return f`
|
|
1438
|
+
transform: translateY(-100%);
|
|
1439
|
+
`;case"bottom":return f`
|
|
1440
|
+
transform: translateY(100%);
|
|
1441
|
+
align-items: flex-end;
|
|
1442
|
+
`;case"center":return f`
|
|
1443
|
+
transform: translateY(40%);
|
|
1444
|
+
align-items: center;
|
|
1445
|
+
`;default:return f``}})(e)}
|
|
1446
|
+
${({$show:e})=>e?wn:yn}
|
|
1447
|
+
${e=>he.hydrate(e)}
|
|
1448
|
+
`,_n=d.div`
|
|
1449
|
+
display: flex;
|
|
1450
|
+
flex-direction: column;
|
|
1451
|
+
gap: 10px;
|
|
1452
|
+
|
|
1453
|
+
align-items: center;
|
|
1454
|
+
justify-content: center;
|
|
1455
|
+
align-content: center;
|
|
1456
|
+
width: 100%;
|
|
1457
|
+
max-width: 90%;
|
|
1458
|
+
padding-block: 20px;
|
|
1459
|
+
padding-inline: 20px;
|
|
1460
|
+
position: relative;
|
|
1461
|
+
|
|
1462
|
+
background-color: var(--db-white);
|
|
1463
|
+
border-radius: 20px 20px 0 0;
|
|
1464
|
+
|
|
1465
|
+
@media screen and (min-width: 460px) {
|
|
1466
|
+
max-width: 400px;
|
|
1467
|
+
}
|
|
1468
|
+
@media screen and (min-width: 768px) {
|
|
1469
|
+
border-radius: 20px;
|
|
1470
|
+
padding-inline: 40px;
|
|
1471
|
+
max-width: 440px;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
${e=>he.hydrate(e)}
|
|
1475
|
+
`;var kn=n.memo(({show:n=!1,position:o="top",children:l,$overlay:c={},$wrapper:u={},$content:s={}})=>{const[d,f]=i(void 0);return a(()=>{f(n?"true":void 0),ge()&&(document.body.style.overflowY=n?"hidden":"auto")},[n]),t(r,{children:[e(xn,{$show:d,...c}),e($n,{$position:o,$show:d,...u,children:e(_n,{$show:d,...s,children:l})})]})});const jn=d.div`
|
|
1476
|
+
display: flex;
|
|
1477
|
+
flex-direction: column;
|
|
1478
|
+
gap: 8px;
|
|
1479
|
+
width: 100%;
|
|
1480
|
+
|
|
1481
|
+
${e=>he.hydrate(e)}
|
|
1482
|
+
`,zn=d.div`
|
|
1483
|
+
display: flex;
|
|
1484
|
+
flex-direction: column;
|
|
1485
|
+
align-items: center;
|
|
1486
|
+
justify-content: center;
|
|
1487
|
+
gap: 8px;
|
|
1488
|
+
border: 2px dashed var(--db-tertiary-lighten-40);
|
|
1489
|
+
border-radius: 8px;
|
|
1490
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1491
|
+
opacity: ${({$disabled:e})=>e?.5:1};
|
|
1492
|
+
transition: all 200ms ease;
|
|
1493
|
+
|
|
1494
|
+
${({$theme:e})=>"default"===e&&f`
|
|
1495
|
+
padding: 2rem;
|
|
1496
|
+
min-height: 120px;
|
|
1497
|
+
`}
|
|
1498
|
+
|
|
1499
|
+
${({$theme:e})=>"compact"===e&&f`
|
|
1500
|
+
padding: 1rem;
|
|
1501
|
+
min-height: 80px;
|
|
1502
|
+
`}
|
|
1503
|
+
|
|
1504
|
+
${({$theme:e})=>"minimal"===e&&f`
|
|
1505
|
+
padding: 0.75rem;
|
|
1506
|
+
min-height: 60px;
|
|
1507
|
+
border-style: solid;
|
|
1508
|
+
border-width: 1px;
|
|
1509
|
+
`}
|
|
1510
|
+
|
|
1511
|
+
${({$isDragging:e})=>e&&f`
|
|
1512
|
+
border-color: var(--db-primary);
|
|
1513
|
+
background-color: var(--db-primary-lighten-50);
|
|
1514
|
+
`}
|
|
1515
|
+
|
|
1516
|
+
&:hover {
|
|
1517
|
+
border-color: ${({$disabled:e})=>e?"var(--db-tertiary-lighten-40)":"var(--db-primary)"};
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
${e=>he.hydrate(e)}
|
|
1521
|
+
`,Cn=d.div`
|
|
1522
|
+
display: flex;
|
|
1523
|
+
flex-direction: column;
|
|
1524
|
+
gap: 8px;
|
|
1525
|
+
|
|
1526
|
+
${e=>he.hydrate(e)}
|
|
1527
|
+
`,An=d.div`
|
|
1528
|
+
display: flex;
|
|
1529
|
+
align-items: center;
|
|
1530
|
+
justify-content: space-between;
|
|
1531
|
+
padding: 0.75rem 1rem;
|
|
1532
|
+
background: var(--db-tertiary-lighten-50);
|
|
1533
|
+
border-radius: 8px;
|
|
1534
|
+
gap: 12px;
|
|
1535
|
+
|
|
1536
|
+
${e=>he.hydrate(e)}
|
|
1537
|
+
`,Sn=d.div`
|
|
1538
|
+
display: flex;
|
|
1539
|
+
align-items: center;
|
|
1540
|
+
gap: 12px;
|
|
1541
|
+
flex: 1;
|
|
1542
|
+
min-width: 0;
|
|
1543
|
+
|
|
1544
|
+
${e=>he.hydrate(e)}
|
|
1545
|
+
`,Rn=d.span`
|
|
1546
|
+
font-size: 14px;
|
|
1547
|
+
color: var(--db-tertiary);
|
|
1548
|
+
white-space: nowrap;
|
|
1549
|
+
overflow: hidden;
|
|
1550
|
+
text-overflow: ellipsis;
|
|
1551
|
+
`,On=d.span`
|
|
1552
|
+
font-size: 12px;
|
|
1553
|
+
color: var(--db-tertiary-lighten-20);
|
|
1554
|
+
white-space: nowrap;
|
|
1555
|
+
`,En=d.button`
|
|
1556
|
+
display: flex;
|
|
1557
|
+
align-items: center;
|
|
1558
|
+
justify-content: center;
|
|
1559
|
+
padding: 4px;
|
|
1560
|
+
border: none;
|
|
1561
|
+
background: transparent;
|
|
1562
|
+
cursor: pointer;
|
|
1563
|
+
border-radius: 4px;
|
|
1564
|
+
transition: background-color 150ms ease;
|
|
1565
|
+
|
|
1566
|
+
&:hover {
|
|
1567
|
+
background-color: var(--db-tertiary-lighten-40);
|
|
1568
|
+
}
|
|
1569
|
+
`,Pn=d.span`
|
|
1570
|
+
font-size: 12px;
|
|
1571
|
+
color: var(--db-danger);
|
|
1572
|
+
`,In=d.input`
|
|
1573
|
+
display: none;
|
|
1574
|
+
`,Ln={pdf:["application/pdf","application/x-pdf"],jpg:["image/jpeg","image/pjpeg"],jpeg:["image/jpeg","image/pjpeg"],png:["image/png"],webp:["image/webp"],"*":["*/*"]},Fn=e=>{if(0===e)return"0 Bytes";const t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(2))+" "+["Bytes","KB","MB","GB"][t]},Nn=e=>{var t;const r=e.split(".");return r.length>1&&(null===(t=r.pop())||void 0===t?void 0:t.toLowerCase())||""},Wn=(e,t,r)=>{const n=Nn(e.name),i=((e,t)=>{if(t.includes("*"))return!0;const r=Nn(e.name),n=(e.type||"").toLowerCase();return!!t.includes(r)||t.some(e=>{var t;const r=Ln[e];return null!==(t=null==r?void 0:r.some(e=>"*/*"===e||n===e))&&void 0!==t&&t})})(e,t),o=e.size<=r,a=i&&o;let l;i?o||(l=`El archivo excede el tamaño máximo de ${Fn(r)}`):l=`Formato no permitido. Formatos aceptados: ${t.join(", ")}`;const c=e.type.startsWith("image/");return{file:e,id:`file_${Date.now()}_${Math.random().toString(36).substring(2,9)}`,name:e.name,size:e.size,sizeFormatted:Fn(e.size),type:e.type,extension:n,previewUrl:c?URL.createObjectURL(e):void 0,lastModified:new Date(e.lastModified),isValid:a,errorMessage:l}};function Bn({accept:r=["*"],multiple:n=!1,maxSize:o=10485760,maxFiles:l=10,files:c,onChange:d,onError:f,placeholder:p="Arrastra archivos aquí o haz clic para seleccionar",placeholderSecondary:h,disabled:g=!1,showFileList:v=!0,theme:m="default",...b}){const[y,w]=i([]),[x,$]=i(!1),_=u(null),k=null!=c?c:y,j=r.includes("*")?"*/*":r.map(e=>{const t=Ln[e];return t?t.join(","):`.${e}`}).join(","),z=`Formatos: ${r.join(", ").toUpperCase()} | Máx: ${Fn(o)}`;a(()=>()=>{k.forEach(e=>{e.previewUrl&&URL.revokeObjectURL(e.previewUrl)})},[]);const C=s(e=>{if(!e||0===e.length)return;const t=[],i=k.length,a=n?l-i:1;if(a<=0)return void(null==f||f(`Máximo ${l} archivos permitidos`));const u=Array.from(e).slice(0,a);for(const e of u){const n=Wn(e,r,o);t.push(n),!n.isValid&&n.errorMessage&&(null==f||f(n.errorMessage))}const s=n?[...k,...t]:t;void 0===c&&w(s),null==d||d(s)},[k,n,l,r,o,d,f,c]),A=s(e=>{e.preventDefault(),e.stopPropagation(),g||$(!0)},[g]),S=s(e=>{e.preventDefault(),e.stopPropagation(),$(!1)},[]),R=s(e=>{e.preventDefault(),e.stopPropagation()},[]),O=s(e=>{e.preventDefault(),e.stopPropagation(),$(!1),g||C(e.dataTransfer.files)},[g,C]),E=s(()=>{var e;g||null===(e=_.current)||void 0===e||e.click()},[g]),P=s(e=>{C(e.target.files),_.current&&(_.current.value="")},[C]),I=s(e=>{const t=k.find(t=>t.id===e);(null==t?void 0:t.previewUrl)&&URL.revokeObjectURL(t.previewUrl);const r=k.filter(t=>t.id!==e);void 0===c&&w(r),null==d||d(r)},[k,d,c]);return t(jn,{...b,children:[e(In,{ref:_,type:"file",accept:j,multiple:n,onChange:P,disabled:g}),t(zn,{$isDragging:x,$disabled:g,$theme:m,onClick:E,onDragEnter:A,onDragLeave:S,onDragOver:R,onDrop:O,children:[e(Je,{type:"cloudUpload",wsvg:"minimal"===m?24:32,color:x?"var(--db-primary)":"var(--db-tertiary-lighten-20)"}),e(Ne,{$size:14,$color:"var(--db-tertiary-lighten-10)",$textAlign:"center",children:p}),"minimal"!==m&&e(Ne,{$size:12,$color:"var(--db-tertiary-lighten-30)",$textAlign:"center",children:h||z})]}),v&&k.length>0&&e(Cn,{children:k.map(r=>t(An,{children:[t(Sn,{children:[e(Je,{type:"cloudUpload",wsvg:20,color:r.isValid?"var(--db-primary)":"var(--db-danger)"}),t("div",{style:{minWidth:0,flex:1,display:"inline-flex",gap:6},children:[e(Rn,{children:r.name}),e(On,{children:r.sizeFormatted}),!r.isValid&&r.errorMessage&&e(Pn,{children:r.errorMessage})]})]}),e(En,{type:"button",onClick:e=>{e.stopPropagation(),I(r.id)},children:e(Je,{type:"close",wsvg:18,color:"var(--db-tertiary)"})})]},r.id))})]})}const Tn="1.0.0",Dn="@quintarai/react";export{$r as Alert,ne as BREAKPOINTS,ie as BREAKPOINTS_PREFIX,Yr as Badge,Jr as Box,Xe as Button,vr as ButtonIcon,Ye as Center,ir as CheckBox,zt as Col,un as Color,_e as Container,kn as Dialog,er as Dropdown,Bn as FileUpload,Re as Flex,Pr as Grid,Ge as IconWrapper,Je as Icons,Or as Image,kt as Input,Lt as InputHelper,He as Loader,rt as Loading,Qe as Modal,ce as REGEX,cr as Radio,Ut as Select,bn as Slide,he as SuperCSS,kr as Svg,Ne as Text,an as Title,It as Tooltip,Sr as Video,Dr as Viewer,oe as alias,ye as cssVar,we as cssVars,ge as hasWindow,be as normalize,Dn as packageName,ue as randomKey,le as reactive,me as sanitize,xe as setCssVar,ve as slugify,ae as values,Tn as version};
|
|
1575
|
+
//# sourceMappingURL=index.esm.js.map
|