@proprioo/salatim 35.8.0 → 35.10.0
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/CHANGELOG.md +8 -0
- package/README.md +13 -0
- package/lib/index.js +323 -332
- package/lib/index.js.map +1 -1
- package/lib/ui/src/dateInput/DateInput.d.ts +1 -1
- package/lib/ui/src/numberInput/NumberInput.d.ts +1 -1
- package/package.json +23 -23
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("date-fns/format"),n=require("react"),r=require("@proprioo/hokkaido"),o=require("styled-components"),a=require("polished"),i=require("date-fns"),s=require("date-fns/locale"),l=require("date-fns/isBefore"),d=require("yup"),c=require("date-fns/isAfter"),u=require("date-fns/isValid"),f=require("date-fns/parse"),p=require("date-fns/subYears"),h=require("react-dom");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function m(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var b=g(t),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("date-fns/format"),n=require("react"),r=require("@proprioo/hokkaido"),o=require("styled-components"),a=require("polished"),i=require("date-fns"),s=require("date-fns/locale"),l=require("date-fns/isBefore"),d=require("yup"),c=require("date-fns/isAfter"),u=require("date-fns/isValid"),f=require("date-fns/parse"),p=require("date-fns/subYears"),h=require("react-dom");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function m(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var b=g(t),v=m(n),y=g(o),$=g(l),x=m(d),w=g(c),C=g(u),O=g(f),k=g(p),j=m(h);function S(e,t){n.useEffect((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",n,{passive:!0}),document.addEventListener("touchstart",n,{passive:!0}),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}),[e,t])}const E=()=>e.jsx("svg",{viewBox:"0 0 32 32",children:e.jsx("path",{fill:"#E82929","fill-rule":"evenodd",d:"M16.33333,8 C20.93567,8 24.66667,11.73096 24.66667,16.33331 C24.66667,20.93571 20.93567,24.66671 16.33333,24.66671 C11.73096,24.66671 8,20.93571 8,16.33331 C8,11.73096 11.73096,8 16.33333,8 Z M16.33333,8.83333 C12.19119,8.83333 8.83333,12.19119 8.83333,16.33331 C8.83333,20.47551 12.19119,23.83331 16.33333,23.83331 C20.47547,23.83331 23.83337,20.47551 23.83337,16.33331 C23.83337,12.19119 20.47547,8.83333 16.33333,8.83333 Z M16.33337,18.83331 C16.56357,18.83331 16.75007,19.01981 16.75007,19.25001 C16.75007,19.48011 16.56357,19.66661 16.33337,19.66661 C16.10329,19.66661 15.91674,19.48011 15.91674,19.25001 C15.91674,19.01981 16.10329,18.83331 16.33337,18.83331 Z M16.33337,12.58332 C16.56357,12.58332 16.75007,12.76987 16.75007,12.99998 L16.75007,12.99998 L16.75007,17.16661 C16.75007,17.39681 16.56357,17.58332 16.33337,17.58332 C16.10329,17.58332 15.91674,17.39681 15.91674,17.16661 L15.91674,17.16661 L15.91674,12.99998 C15.91674,12.76987 16.10329,12.58332 16.33337,12.58332 Z"})});var P={smallest:360,xsmall:480,small:840,medium:960,base:1024,normal:1280,large:1440,xlarge:1600};const I=(e,t)=>Math.round(255*(1-t)+t*e),N=(e,t)=>{const{red:n,green:r,blue:o}=a.parseToRgb(a.rgba(e,t));return a.toColorString({red:I(n,t),green:I(r,t),blue:I(o,t)})},A=e=>({base:e,base80:N(e,.8),base60:N(e,.6),base40:N(e,.4),base20:N(e,.2),base10:N(e,.1),base5:N(e,.05)});var T={background:"#FFFFFF",blue:A("#D6F5FF"),dark:A("#1B1B1B"),green:A("#063D39"),greenLight:A("#25C1A3"),grey:A("#8C8C8C"),pink:A("#F6F6F1"),red:A("#E82929"),terracota:A("#FF991F"),yellow:A("#DAA73C")};const D=e=>e/16+"rem",F=y.default.div`
|
|
2
2
|
min-height: 100%;
|
|
3
3
|
margin: 0 auto;
|
|
4
4
|
padding: 0 ${D(16)};
|
|
@@ -17,41 +17,41 @@
|
|
|
17
17
|
}
|
|
18
18
|
`,L=o.css`
|
|
19
19
|
font-family: Bagoss Condensed, sans-serif;
|
|
20
|
-
`,
|
|
20
|
+
`,M=o.css`
|
|
21
21
|
font-family: Inter, sans-serif;
|
|
22
|
-
`;var
|
|
22
|
+
`;var R={important:D(48),xbiggest:D(42),biggest:D(40),bigger:D(32),big:D(24),medium:D(18),base:D(16),small:D(14),smaller:D(13),smallest:D(12)};const B=y.default.div`
|
|
23
23
|
& + & {
|
|
24
24
|
margin-top: ${D(24)};
|
|
25
25
|
}
|
|
26
|
-
`,
|
|
27
|
-
font-size: ${
|
|
26
|
+
`,_=o.css`
|
|
27
|
+
font-size: ${R.base};
|
|
28
28
|
line-height: ${D(24)};
|
|
29
29
|
margin: 0;
|
|
30
30
|
`,z=o.css`
|
|
31
|
-
font-size: ${
|
|
31
|
+
font-size: ${R.small};
|
|
32
32
|
line-height: ${D(18)};
|
|
33
33
|
margin: 0;
|
|
34
34
|
`,U=o.css`
|
|
35
|
-
${
|
|
35
|
+
${_};
|
|
36
36
|
font-weight: 300;
|
|
37
37
|
`,G=o.css`
|
|
38
38
|
${z};
|
|
39
39
|
font-weight: 300;
|
|
40
|
-
`,
|
|
41
|
-
font-size: ${
|
|
40
|
+
`,H=o.css`
|
|
41
|
+
font-size: ${R.smaller};
|
|
42
42
|
line-height: ${D(18)};
|
|
43
43
|
margin: 0;
|
|
44
|
-
`,
|
|
45
|
-
font-size: ${
|
|
44
|
+
`,W=o.css`
|
|
45
|
+
font-size: ${R.small};
|
|
46
46
|
line-height: ${D(18)};
|
|
47
47
|
font-weight: 600;
|
|
48
48
|
margin: 0;
|
|
49
|
-
`,
|
|
50
|
-
font-size: ${
|
|
49
|
+
`,q=o.css`
|
|
50
|
+
font-size: ${R.smallest};
|
|
51
51
|
line-height: 1;
|
|
52
52
|
letter-spacing: 0.02em;
|
|
53
53
|
margin: 0;
|
|
54
|
-
`,
|
|
54
|
+
`,V=o.css`
|
|
55
55
|
font-size: ${D(20)};
|
|
56
56
|
line-height: ${D(24)};
|
|
57
57
|
margin: 0;
|
|
@@ -63,28 +63,28 @@
|
|
|
63
63
|
letter-spacing: 0.02em;
|
|
64
64
|
|
|
65
65
|
@media (min-width: ${P.base}px) {
|
|
66
|
-
font-size: ${
|
|
66
|
+
font-size: ${R.biggest};
|
|
67
67
|
}
|
|
68
68
|
`,K=o.css`
|
|
69
69
|
${Y};
|
|
70
70
|
font-size: ${D(24)};
|
|
71
71
|
|
|
72
72
|
@media (min-width: ${P.base}px) {
|
|
73
|
-
font-size: ${
|
|
73
|
+
font-size: ${R.bigger};
|
|
74
74
|
}
|
|
75
75
|
`,X=o.css`
|
|
76
|
-
${
|
|
77
|
-
font-size: ${
|
|
76
|
+
${M};
|
|
77
|
+
font-size: ${R.small};
|
|
78
78
|
line-height: 1.3;
|
|
79
|
-
`;var Z={body1:
|
|
80
|
-
font-size: ${
|
|
79
|
+
`;var Z={body1:_,body2:z,bodyLight1:U,bodyLight2:G,caption:H,tab:W,breadcrumb:q,big:V,quote:Y,quoteSmaller:K,subtitle1:o.css`
|
|
80
|
+
font-size: ${R.base};
|
|
81
81
|
line-height: ${D(24)};
|
|
82
82
|
font-weight: 500;
|
|
83
83
|
`,subtitle2:o.css`
|
|
84
|
-
font-size: ${
|
|
84
|
+
font-size: ${R.small};
|
|
85
85
|
line-height: ${D(20)};
|
|
86
86
|
font-weight: bold;
|
|
87
|
-
`,label:X},J={small:D(5),normal:D(8),big:D(10),bigger:D(16),biggest:D(24),rounded:"50%",max:"100%"};const Q=
|
|
87
|
+
`,label:X},J={small:D(5),normal:D(8),big:D(10),bigger:D(16),biggest:D(24),rounded:"50%",max:"100%"};const Q=y.default.div`
|
|
88
88
|
display: flex;
|
|
89
89
|
justify-content: space-between;
|
|
90
90
|
flex-direction: column;
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
-moz-osx-font-smoothing: inherit;
|
|
162
162
|
-webkit-appearance: none;
|
|
163
163
|
`;var se;exports.GoogleSearchType=void 0,(se=exports.GoogleSearchType||(exports.GoogleSearchType={})).ADMINISTRATIVE_AREA_LEVEL_1="administrative_area_level_1",se.ADMINISTRATIVE_AREA_LEVEL_2="administrative_area_level_2",se.LOCALITY="locality",se.NEIGHBORHOOD="neighborhood",se.POSTAL_CODE="postal_code",se.SUBLOCALITY="sublocality";const le=e=>e.filter((({types:e})=>e.some((e=>[exports.GoogleSearchType.ADMINISTRATIVE_AREA_LEVEL_1,exports.GoogleSearchType.ADMINISTRATIVE_AREA_LEVEL_2,exports.GoogleSearchType.LOCALITY,exports.GoogleSearchType.POSTAL_CODE,exports.GoogleSearchType.SUBLOCALITY].includes(e))))),de=o.css`
|
|
164
|
-
${
|
|
164
|
+
${M};
|
|
165
165
|
${Z.body1};
|
|
166
166
|
display: block;
|
|
167
167
|
position: absolute;
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
padding: 0 ${D(28)};
|
|
178
178
|
caret-color: ${T.dark.base};
|
|
179
179
|
min-height: ${D(48)};
|
|
180
|
-
`,ce=
|
|
180
|
+
`,ce=y.default.input`
|
|
181
181
|
${de} :not(:disabled) {
|
|
182
182
|
:focus,
|
|
183
183
|
:active {
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
:-webkit-autofill:active {
|
|
193
193
|
box-shadow: 0 0 0 ${D(40)} white inset;
|
|
194
194
|
}
|
|
195
|
-
`;var ue;exports.InputType=void 0,(ue=exports.InputType||(exports.InputType={})).EMAIL="email",ue.NUMBER="number",ue.PASSWORD="password",ue.TEL="tel",ue.TEXT="text";const fe=n.forwardRef(((t,r)=>{const{dataTest:o,disabled:a,focused:i,gmap:s,id:l,inputElement:d,max:c,maxLength:u,min:f,minLength:p,name:h,required:g=!1,style:m,type:b,value:
|
|
195
|
+
`;var ue;exports.InputType=void 0,(ue=exports.InputType||(exports.InputType={})).EMAIL="email",ue.NUMBER="number",ue.PASSWORD="password",ue.TEL="tel",ue.TEXT="text";const fe=n.forwardRef(((t,r)=>{const{dataTest:o,disabled:a,focused:i,gmap:s,id:l,inputElement:d,max:c,maxLength:u,min:f,minLength:p,name:h,required:g=!1,style:m,type:b,value:v,handleBlur:y,handleFocus:$,handleOnChange:x}=t;return e.jsx(n.Fragment,{children:d?n.createElement(d,Object.assign({},t)):e.jsx(ce,Object.assign({autoComplete:"off","data-test":o||`input-${b}`,disabled:a,id:l,max:c,maxLength:u,min:f,minLength:p,name:h,ref:r,required:g,onBlur:y,onChange:e=>x(e),onFocus:$,type:b,value:null===v?"":v},i&&{style:m},s))})}));var pe;exports.InputColors=void 0,(pe=exports.InputColors||(exports.InputColors={})).ORANGE="orange",pe.GREEN="green",pe.BLUE="blue",pe.PINK="pink";const he=y.default.fieldset`
|
|
196
196
|
position: absolute;
|
|
197
197
|
top: 0;
|
|
198
198
|
left: 0;
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
border-radius: ${J.biggest};
|
|
205
205
|
z-index: 0;
|
|
206
206
|
overflow: hidden;
|
|
207
|
-
`,ge=
|
|
207
|
+
`,ge=y.default.legend`
|
|
208
208
|
padding: 0;
|
|
209
209
|
text-align: left;
|
|
210
210
|
transition: width 0ms cubic-bezier(0, 0, 0.2, 1) 0ms;
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
${({isVisible:e})=>e&&o.css`
|
|
224
224
|
max-width: ${D(1e3)};
|
|
225
225
|
`}
|
|
226
|
-
`,me=
|
|
226
|
+
`,me=y.default.label`
|
|
227
227
|
position: absolute;
|
|
228
228
|
z-index: 1;
|
|
229
229
|
top: 0;
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
font-smoothing: subpixel-antialiased;
|
|
243
243
|
display: block;
|
|
244
244
|
max-width: ${({suffixLength:e})=>Boolean(e)?o.css`calc(100% - ${D(52+12*e)})`:o.css`calc(100% - ${D(48)})`};
|
|
245
|
-
`,be=
|
|
245
|
+
`,be=y.default.div`
|
|
246
246
|
position: absolute;
|
|
247
247
|
right: ${D(4)};
|
|
248
248
|
top: ${D(4)};
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
& + ${ce} {
|
|
256
256
|
padding-right: ${D(48)};
|
|
257
257
|
}
|
|
258
|
-
`,
|
|
258
|
+
`,ve=y.default.div`
|
|
259
259
|
position: absolute;
|
|
260
260
|
top: 0;
|
|
261
261
|
left: 0;
|
|
@@ -280,8 +280,8 @@
|
|
|
280
280
|
background: ${T.dark.base10};
|
|
281
281
|
}
|
|
282
282
|
`}
|
|
283
|
-
`,
|
|
284
|
-
${
|
|
283
|
+
`,ye=y.default.div`
|
|
284
|
+
${M};
|
|
285
285
|
${Z.body2};
|
|
286
286
|
position: relative;
|
|
287
287
|
z-index: ${e=>e.zIndex||0};
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
transform: translate(${D(60)}, ${D(18)});
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
-
${
|
|
295
|
+
${ve} {
|
|
296
296
|
> svg {
|
|
297
297
|
left: initial;
|
|
298
298
|
right: ${D(12)};
|
|
@@ -393,16 +393,7 @@
|
|
|
393
393
|
}
|
|
394
394
|
`}
|
|
395
395
|
}
|
|
396
|
-
`,$e=({dataTest:t,disabled:o,displayField:a,error:i,field:s,focused:l=!1,gmap:d,label:c,id:u,inputElement:f,max:p,maxLength:h,min:g,minLength:m,name:b,outline:y,phoneWithFlags:v=!1,required:$,selectOnFocus:x,suffix:w,type:C=exports.InputType.TEXT,value:O,zIndex:k,onBlur:j,onChange:S,onFocus:P})=>{var I;const N=n.useRef(null),A=`input-${n.useId()}`,T=n.useMemo((()=>u||A),[]),[D,F]=n.useState(l),L=()=>{F(!1),j&&j()},R=void 0!==O?r.isNotEmpty(O||""):r.isNotEmpty((null===(I=N.current)||void 0===I?void 0:I.value)||""),M=Object.assign(Object.assign({disabled:o,field:s,focused:D,type:C},void 0!==O&&{value:O}),{dataTest:t,required:$,id:T,handleBlur:L,handleFocus:()=>{F(!0),x&&N.current&&N.current.select(),P&&P()},handleOnChange:e=>{const{target:{value:t}}=e;!o&&S&&S(t)},name:b,gmap:Object.assign(Object.assign({},d),{onBlur:r.compose(d&&d.onBlur,L)}),min:g,max:p,minLength:m,maxLength:h,suffix:w,phoneWithFlags:v});return n.useEffect((()=>{F(l)}),[l]),e.jsxs(ve,{disabled:o,error:i,focused:D,notched:R,outline:y,phoneWithFlags:v,zIndex:k,children:[e.jsx(me,{htmlFor:T,suffixLength:(null==w?void 0:w.length)||0,children:c}),e.jsxs(ye,{disabled:o,children:[e.jsxs(he,{children:[e.jsx(ge,{isVisible:R||D,children:e.jsx("span",{dangerouslySetInnerHTML:{__html:c}})}),a?e.jsx(n.Fragment,{children:a}):e.jsxs(n.Fragment,{children:[w&&e.jsx(be,{"data-test":"input-suffix",children:w}),e.jsx(fe,Object.assign({ref:N},M,{inputElement:f}))]})]}),s&&e.jsx(n.Fragment,{children:s}),i&&e.jsx(E,{})]})]})};function xe(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}xe(".rdp{--rdp-cell-size:40px;--rdp-caption-font-size:18px;--rdp-accent-color:#00f;--rdp-background-color:#e7edff;--rdp-accent-color-dark:#3003e1;--rdp-background-color-dark:#180270;--rdp-outline:2px solid var(--rdp-accent-color);--rdp-outline-selected:3px solid var(--rdp-accent-color);--rdp-selected-color:#fff;margin:1em}.rdp-vhidden{clip:rect(1px,1px,1px,1px)!important;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;border:0!important;box-sizing:border-box;height:1px!important;margin:0;overflow:hidden!important;padding:0;padding:0!important;position:absolute!important;top:0;width:1px!important}.rdp-button_reset{appearance:none;-moz-appearance:none;-webkit-appearance:none;background:none;color:inherit;cursor:default;font:inherit;margin:0;padding:0;position:relative}.rdp-button_reset:focus-visible{outline:none}.rdp-button{border:2px solid transparent}.rdp-button[disabled]:not(.rdp-day_selected){opacity:.25}.rdp-button:not([disabled]){cursor:pointer}.rdp-button:focus-visible:not([disabled]){background-color:var(--rdp-background-color);border:var(--rdp-outline);color:inherit}.rdp-button:hover:not([disabled]):not(.rdp-day_selected){background-color:var(--rdp-background-color)}.rdp-months{display:flex}.rdp-month{margin:0 1em}.rdp-month:first-child{margin-left:0}.rdp-month:last-child{margin-right:0}.rdp-table{border-collapse:collapse;margin:0;max-width:calc(var(--rdp-cell-size)*7)}.rdp-with_weeknumber .rdp-table{border-collapse:collapse;max-width:calc(var(--rdp-cell-size)*8)}.rdp-caption{align-items:center;display:flex;justify-content:space-between;padding:0;text-align:left}.rdp-multiple_months .rdp-caption{display:block;position:relative;text-align:center}.rdp-caption_dropdowns,.rdp-caption_label{display:inline-flex;position:relative}.rdp-caption_label{align-items:center;border:2px solid transparent;color:currentColor;font-family:inherit;font-size:var(--rdp-caption-font-size);font-weight:700;margin:0;padding:0 .25em;white-space:nowrap;z-index:1}.rdp-nav{white-space:nowrap}.rdp-multiple_months .rdp-caption_start .rdp-nav{left:0;position:absolute;top:50%;transform:translateY(-50%)}.rdp-multiple_months .rdp-caption_end .rdp-nav{position:absolute;right:0;top:50%;transform:translateY(-50%)}.rdp-nav_button{align-items:center;border-radius:100%;display:inline-flex;height:var(--rdp-cell-size);justify-content:center;padding:.25em;width:var(--rdp-cell-size)}.rdp-dropdown_month,.rdp-dropdown_year{align-items:center;display:inline-flex;position:relative}.rdp-dropdown{appearance:none;background-color:transparent;border:none;bottom:0;cursor:inherit;font-family:inherit;font-size:inherit;left:0;line-height:inherit;margin:0;opacity:0;padding:0;position:absolute;top:0;width:100%;z-index:2}.rdp-dropdown[disabled]{color:unset;opacity:unset}.rdp-dropdown:focus-visible:not([disabled])+.rdp-caption_label{background-color:var(--rdp-background-color);border:var(--rdp-outline);border-radius:6px}.rdp-dropdown_icon{margin:0 0 0 5px}.rdp-head{border:0}.rdp-head_row,.rdp-row{height:100%}.rdp-head_cell{font-size:.75em;font-weight:700;height:100%;height:var(--rdp-cell-size);padding:0;text-align:center;text-transform:uppercase;vertical-align:middle}.rdp-tbody{border:0}.rdp-tfoot{margin:.5em}.rdp-cell{height:100%;height:var(--rdp-cell-size);padding:0;text-align:center;width:var(--rdp-cell-size)}.rdp-weeknumber{font-size:.75em}.rdp-day,.rdp-weeknumber{align-items:center;border:2px solid transparent;border-radius:100%;box-sizing:border-box;display:flex;height:var(--rdp-cell-size);justify-content:center;margin:0;max-width:var(--rdp-cell-size);overflow:hidden;width:var(--rdp-cell-size)}.rdp-day_today:not(.rdp-day_outside){font-weight:700}.rdp-day_selected,.rdp-day_selected:focus-visible,.rdp-day_selected:hover{background-color:var(--rdp-accent-color);color:var(--rdp-selected-color);opacity:1}.rdp-day_outside{opacity:.5}.rdp-day_selected:focus-visible{outline:var(--rdp-outline);outline-offset:2px;z-index:1}.rdp:not([dir=rtl]) .rdp-day_range_start:not(.rdp-day_range_end){border-bottom-right-radius:0;border-top-right-radius:0}.rdp:not([dir=rtl]) .rdp-day_range_end:not(.rdp-day_range_start),.rdp[dir=rtl] .rdp-day_range_start:not(.rdp-day_range_end){border-bottom-left-radius:0;border-top-left-radius:0}.rdp[dir=rtl] .rdp-day_range_end:not(.rdp-day_range_start){border-bottom-right-radius:0;border-top-right-radius:0}.rdp-day_range_end.rdp-day_range_start{border-radius:100%}.rdp-day_range_middle{border-radius:0}");var we=function(){return we=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},we.apply(this,arguments)};function Ce(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Oe,ke={exports:{}},je={};var Se,Ee={};
|
|
397
|
-
/**
|
|
398
|
-
* @license React
|
|
399
|
-
* react-jsx-runtime.production.min.js
|
|
400
|
-
*
|
|
401
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
402
|
-
*
|
|
403
|
-
* This source code is licensed under the MIT license found in the
|
|
404
|
-
* LICENSE file in the root directory of this source tree.
|
|
405
|
-
*/"production"===process.env.NODE_ENV?ke.exports=function(){if(Se)return Ee;Se=1;var e=y.default,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(e,n,i){var s,l={},d=null,c=null;for(s in void 0!==i&&(d=""+i),void 0!==n.key&&(d=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!a.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:d,ref:c,props:l,_owner:o.current}}return Ee.Fragment=n,Ee.jsx=i,Ee.jsxs=i,Ee}():ke.exports=(Oe||(Oe=1,"production"!==process.env.NODE_ENV&&function(){var e=y.default,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),h=Symbol.iterator,g="@@iterator",m=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=m.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}("error",e,n)}var v,$=!1,x=!1,w=!1,C=!1,O=!1;function k(e){return e.displayName||"Context"}function j(e){if(null==e)return null;if("number"==typeof e.tag&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case c:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return k(e)+".Consumer";case i:return k(e._context)+".Provider";case l:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case u:var t=e.displayName||null;return null!==t?t:j(e.type)||"Memo";case f:var p=e,h=p._payload,g=p._init;try{return j(g(h))}catch(e){return null}}return null}v=Symbol.for("react.module.reference");var S,E,P,I,N,A,T,D=Object.assign,F=0;function L(){}L.__reactDisabledLog=!0;var R,M=m.ReactCurrentDispatcher;function _(e,t,n){if(void 0===R)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);R=r&&r[1]||""}return"\n"+R+e}var B,z=!1,U="function"==typeof WeakMap?WeakMap:Map;function G(e,t){if(!e||z)return"";var n,r=B.get(e);if(void 0!==r)return r;z=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=M.current,M.current=null,function(){if(0===F){S=console.log,E=console.info,P=console.warn,I=console.error,N=console.group,A=console.groupCollapsed,T=console.groupEnd;var e={configurable:!0,enumerable:!0,value:L,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){n=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){n=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),d=s.length-1,c=l.length-1;d>=1&&c>=0&&s[d]!==l[c];)c--;for(;d>=1&&c>=0;d--,c--)if(s[d]!==l[c]){if(1!==d||1!==c)do{if(d--,--c<0||s[d]!==l[c]){var u="\n"+s[d].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),"function"==typeof e&&B.set(e,u),u}}while(d>=1&&c>=0);break}}}finally{z=!1,M.current=o,function(){if(0==--F){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:S}),info:D({},e,{value:E}),warn:D({},e,{value:P}),error:D({},e,{value:I}),group:D({},e,{value:N}),groupCollapsed:D({},e,{value:A}),groupEnd:D({},e,{value:T})})}F<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var f=e?e.displayName||e.name:"",p=f?_(f):"";return"function"==typeof e&&B.set(e,p),p}function W(e,t,n){if(null==e)return"";if("function"==typeof e)return G(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return _(e);switch(e){case d:return _("Suspense");case c:return _("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case l:return G(e.render,!1);case u:return W(e.type,t,n);case f:var o=e,a=o._payload,i=o._init;try{return W(i(a),t,n)}catch(e){}}return""}B=new U;var H=Object.prototype.hasOwnProperty,V={},q=m.ReactDebugCurrentFrame;function Y(e){if(e){var t=e._owner,n=W(e.type,e._source,t?t.type:null);q.setExtraStackFrame(n)}else q.setExtraStackFrame(null)}var K=Array.isArray;function X(e){return K(e)}function Z(e){return""+e}function J(e){if(function(e){try{return Z(e),!1}catch(e){return!0}}(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),Z(e)}var Q,ee,te,ne=m.ReactCurrentOwner,re={key:!0,ref:!0,__self:!0,__source:!0};te={};var oe=function(e,n,r,o,a,i,s){var l={$$typeof:t,type:e,key:n,ref:r,props:s,_owner:i,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ae(e,t,n,r,o){var a,i={},s=null,l=null;for(a in void 0!==n&&(J(n),s=""+n),function(e){if(H.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(J(t.key),s=""+t.key),function(e){if(H.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(l=t.ref,function(e,t){if("string"==typeof e.ref&&ne.current&&t&&ne.current.stateNode!==t){var n=j(ne.current.type);te[n]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',j(ne.current.type),e.ref),te[n]=!0)}}(t,o)),t)H.call(t,a)&&!re.hasOwnProperty(a)&&(i[a]=t[a]);if(e&&e.defaultProps){var d=e.defaultProps;for(a in d)void 0===i[a]&&(i[a]=d[a])}if(s||l){var c="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var n=function(){Q||(Q=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(i,c),l&&function(e,t){var n=function(){ee||(ee=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(i,c)}return oe(e,s,l,o,r,ne.current,i)}var ie,se=m.ReactCurrentOwner,le=m.ReactDebugCurrentFrame;function de(e){if(e){var t=e._owner,n=W(e.type,e._source,t?t.type:null);le.setExtraStackFrame(n)}else le.setExtraStackFrame(null)}function ce(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function ue(){if(se.current){var e=j(se.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ie=!1;var fe={};function pe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ue();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!fe[n]){fe[n]=!0;var r="";e&&e._owner&&e._owner!==se.current&&(r=" It was passed a child from "+j(e._owner.type)+"."),de(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),de(null)}}}function he(e,t){if("object"==typeof e)if(X(e))for(var n=0;n<e.length;n++){var r=e[n];ce(r)&&pe(r,t)}else if(ce(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=h&&e[h]||e[g];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ce(a.value)&&pe(a.value,t)}}function ge(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==l&&n.$$typeof!==u)return;t=n.propTypes}if(t){var r=j(n);!function(e,t,n,r,o){var a=Function.call.bind(H);for(var i in e)if(a(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var l=Error((r||"React class")+": "+n+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(Y(o),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,i,typeof s),Y(null)),s instanceof Error&&!(s.message in V)&&(V[s.message]=!0,Y(o),b("Failed %s type: %s",n,s.message),Y(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||ie||(ie=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",j(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function me(e,n,h,g,m,y){var k=function(e){return"string"==typeof e||"function"==typeof e||!!(e===r||e===a||O||e===o||e===d||e===c||C||e===p||$||x||w)||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===u||e.$$typeof===i||e.$$typeof===s||e.$$typeof===l||e.$$typeof===v||void 0!==e.getModuleId)}(e);if(!k){var S="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var E,P=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(m);S+=P||ue(),null===e?E="null":X(e)?E="array":void 0!==e&&e.$$typeof===t?(E="<"+(j(e.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):E=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,S)}var I=ae(e,n,h,m,y);if(null==I)return I;if(k){var N=n.children;if(void 0!==N)if(g)if(X(N)){for(var A=0;A<N.length;A++)he(N[A],e);Object.freeze&&Object.freeze(N)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else he(N,e)}return e===r?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){de(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),de(null);break}}null!==e.ref&&(de(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),de(null))}(I):ge(I),I}var be=function(e,t,n){return me(e,t,n,!1)},ye=function(e,t,n){return me(e,t,n,!0)};je.Fragment=r,je.jsx=be,je.jsxs=ye}()),je);var Pe=ke.exports;function Ie(e){return"multiple"===e.mode}function Ne(e){return"range"===e.mode}function Ae(e){return"single"===e.mode}var Te={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var De=Object.freeze({__proto__:null,formatCaption:function(e,t){return i.format(e,"LLLL y",t)},formatDay:function(e,t){return i.format(e,"d",t)},formatMonthCaption:function(e,t){return i.format(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return i.format(e,"cccccc",t)},formatYearCaption:function(e,t){return i.format(e,"yyyy",t)}}),Fe=Object.freeze({__proto__:null,labelDay:function(e,t,n){return i.format(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return i.format(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});var Le=n.createContext(void 0);function Re(e){var t,n,r=e.initialProps,o=function(){var e=Te,t=s.enUS,n=new Date;return{captionLayout:"buttons",classNames:e,formatters:De,labels:Fe,locale:t,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:n,mode:"default"}}(),a=function(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,o=e.toMonth,a=e.fromDate,s=e.toDate;return r?a=i.startOfMonth(r):t&&(a=new Date(t,0,1)),o?s=i.endOfMonth(o):n&&(s=new Date(n,11,31)),{fromDate:a?i.startOfDay(a):void 0,toDate:s?i.startOfDay(s):void 0}}(r),l=a.fromDate,d=a.toDate,c=null!==(t=r.captionLayout)&&void 0!==t?t:o.captionLayout;"buttons"===c||l&&d||(c="buttons"),(Ae(r)||Ie(r)||Ne(r))&&(n=r.onSelect);var u=we(we(we({},o),r),{captionLayout:c,classNames:we(we({},o.classNames),r.classNames),components:we({},r.components),formatters:we(we({},o.formatters),r.formatters),fromDate:l,labels:we(we({},o.labels),r.labels),mode:r.mode||o.mode,modifiers:we(we({},o.modifiers),r.modifiers),modifiersClassNames:we(we({},o.modifiersClassNames),r.modifiersClassNames),onSelect:n,styles:we(we({},o.styles),r.styles),toDate:d});return Pe.jsx(Le.Provider,{value:u,children:e.children})}function Me(){var e=n.useContext(Le);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function _e(e){var t=Me(),n=t.locale,r=t.classNames,o=t.styles,a=t.formatters.formatCaption;return Pe.jsx("div",{className:r.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:n})})}function Be(e){return Pe.jsx("svg",we({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:Pe.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function ze(e){var t,n,r=e.onChange,o=e.value,a=e.children,i=e.caption,s=e.className,l=e.style,d=Me(),c=null!==(n=null===(t=d.components)||void 0===t?void 0:t.IconDropdown)&&void 0!==n?n:Be;return Pe.jsxs("div",{className:s,style:l,children:[Pe.jsx("span",{className:d.classNames.vhidden,children:e["aria-label"]}),Pe.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:d.classNames.dropdown,style:d.styles.dropdown,value:o,onChange:r,children:a}),Pe.jsxs("div",{className:d.classNames.caption_label,style:d.styles.caption_label,"aria-hidden":"true",children:[i,Pe.jsx(c,{className:d.classNames.dropdown_icon,style:d.styles.dropdown_icon})]})]})}function Ue(e){var t,n=Me(),r=n.fromDate,o=n.toDate,a=n.styles,s=n.locale,l=n.formatters.formatMonthCaption,d=n.classNames,c=n.components,u=n.labels.labelMonthDropdown;if(!r)return Pe.jsx(Pe.Fragment,{});if(!o)return Pe.jsx(Pe.Fragment,{});var f=[];if(i.isSameYear(r,o))for(var p=i.startOfMonth(r),h=r.getMonth();h<=o.getMonth();h++)f.push(i.setMonth(p,h));else for(p=i.startOfMonth(new Date),h=0;h<=11;h++)f.push(i.setMonth(p,h));var g=null!==(t=null==c?void 0:c.Dropdown)&&void 0!==t?t:ze;return Pe.jsx(g,{name:"months","aria-label":u(),className:d.dropdown_month,style:a.dropdown_month,onChange:function(t){var n=Number(t.target.value),r=i.setMonth(i.startOfMonth(e.displayMonth),n);e.onChange(r)},value:e.displayMonth.getMonth(),caption:l(e.displayMonth,{locale:s}),children:f.map((function(e){return Pe.jsx("option",{value:e.getMonth(),children:l(e,{locale:s})},e.getMonth())}))})}function Ge(e){var t,n=e.displayMonth,r=Me(),o=r.fromDate,a=r.toDate,s=r.locale,l=r.styles,d=r.classNames,c=r.components,u=r.formatters.formatYearCaption,f=r.labels.labelYearDropdown,p=[];if(!o)return Pe.jsx(Pe.Fragment,{});if(!a)return Pe.jsx(Pe.Fragment,{});for(var h=o.getFullYear(),g=a.getFullYear(),m=h;m<=g;m++)p.push(i.setYear(i.startOfYear(new Date),m));var b=null!==(t=null==c?void 0:c.Dropdown)&&void 0!==t?t:ze;return Pe.jsx(b,{name:"years","aria-label":f(),className:d.dropdown_year,style:l.dropdown_year,onChange:function(t){var r=i.setYear(i.startOfMonth(n),Number(t.target.value));e.onChange(r)},value:n.getFullYear(),caption:u(n,{locale:s}),children:p.map((function(e){return Pe.jsx("option",{value:e.getFullYear(),children:u(e,{locale:s})},e.getFullYear())}))})}function We(){var e=Me(),t=function(e){var t=e.month,n=e.defaultMonth,r=e.today,o=t||n||r||new Date,a=e.toDate,s=e.fromDate,l=e.numberOfMonths,d=void 0===l?1:l;if(a&&i.differenceInCalendarMonths(a,o)<0){var c=-1*(d-1);o=i.addMonths(a,c)}return s&&i.differenceInCalendarMonths(o,s)<0&&(o=s),i.startOfMonth(o)}(e),r=function(e,t){var r=n.useState(e),o=r[0];return[void 0===t?o:t,r[1]]}(t,e.month),o=r[0],a=r[1];return[o,function(t){var n;if(!e.disableNavigation){var r=i.startOfMonth(t);a(r),null===(n=e.onMonthChange)||void 0===n||n.call(e,r)}}]}var He=n.createContext(void 0);function Ve(e){var t=Me(),n=We(),r=n[0],o=n[1],a=function(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,o=i.startOfMonth(e),a=i.startOfMonth(i.addMonths(o,r)),s=i.differenceInCalendarMonths(a,o),l=[],d=0;d<s;d++){var c=i.addMonths(o,d);l.push(c)}return n&&(l=l.reverse()),l}(r,t),s=function(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,o=t.numberOfMonths,a=void 0===o?1:o,s=r?a:1,l=i.startOfMonth(e);if(!n)return i.addMonths(l,s);if(!(i.differenceInCalendarMonths(n,e)<a))return i.addMonths(l,s)}}(r,t),l=function(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,o=t.numberOfMonths,a=r?void 0===o?1:o:1,s=i.startOfMonth(e);if(!n)return i.addMonths(s,-a);if(!(i.differenceInCalendarMonths(s,n)<=0))return i.addMonths(s,-a)}}(r,t),d=function(e){return a.some((function(t){return i.isSameMonth(e,t)}))},c={currentMonth:r,displayMonths:a,goToMonth:o,goToDate:function(e,n){d(e)||(n&&i.isBefore(e,n)?o(i.addMonths(e,1+-1*t.numberOfMonths)):o(e))},previousMonth:l,nextMonth:s,isDateDisplayed:d};return Pe.jsx(He.Provider,{value:c,children:e.children})}function qe(){var e=n.useContext(He);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function Ye(e){var t,n=Me(),r=n.classNames,o=n.styles,a=n.components,s=qe().goToMonth,l=function(t){s(i.addMonths(t,e.displayIndex?-e.displayIndex:0))},d=null!==(t=null==a?void 0:a.CaptionLabel)&&void 0!==t?t:_e,c=Pe.jsx(d,{id:e.id,displayMonth:e.displayMonth});return Pe.jsxs("div",{className:r.caption_dropdowns,style:o.caption_dropdowns,children:[Pe.jsx("div",{className:r.vhidden,children:c}),Pe.jsx(Ue,{onChange:l,displayMonth:e.displayMonth}),Pe.jsx(Ge,{onChange:l,displayMonth:e.displayMonth})]})}function Ke(e){return Pe.jsx("svg",we({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:Pe.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Xe(e){return Pe.jsx("svg",we({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:Pe.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Ze=n.forwardRef((function(e,t){var n=Me(),r=n.classNames,o=n.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var i=a.join(" "),s=we(we({},o.button_reset),o.button);return e.style&&Object.assign(s,e.style),Pe.jsx("button",we({},e,{ref:t,type:"button",className:i,style:s}))}));function Je(e){var t,n,r=Me(),o=r.dir,a=r.locale,i=r.classNames,s=r.styles,l=r.labels,d=l.labelPrevious,c=l.labelNext,u=r.components;if(!e.nextMonth&&!e.previousMonth)return Pe.jsx(Pe.Fragment,{});var f=d(e.previousMonth,{locale:a}),p=[i.nav_button,i.nav_button_previous].join(" "),h=c(e.nextMonth,{locale:a}),g=[i.nav_button,i.nav_button_next].join(" "),m=null!==(t=null==u?void 0:u.IconRight)&&void 0!==t?t:Xe,b=null!==(n=null==u?void 0:u.IconLeft)&&void 0!==n?n:Ke;return Pe.jsxs("div",{className:i.nav,style:s.nav,children:[!e.hidePrevious&&Pe.jsx(Ze,{name:"previous-month","aria-label":f,className:p,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:"rtl"===o?Pe.jsx(m,{className:i.nav_icon,style:s.nav_icon}):Pe.jsx(b,{className:i.nav_icon,style:s.nav_icon})}),!e.hideNext&&Pe.jsx(Ze,{name:"next-month","aria-label":h,className:g,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:"rtl"===o?Pe.jsx(b,{className:i.nav_icon,style:s.nav_icon}):Pe.jsx(m,{className:i.nav_icon,style:s.nav_icon})})]})}function Qe(e){var t=Me().numberOfMonths,n=qe(),r=n.previousMonth,o=n.nextMonth,a=n.goToMonth,s=n.displayMonths,l=s.findIndex((function(t){return i.isSameMonth(e.displayMonth,t)})),d=0===l,c=l===s.length-1,u=t>1&&(d||!c),f=t>1&&(c||!d);return Pe.jsx(Je,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:f,nextMonth:o,previousMonth:r,onPreviousClick:function(){r&&a(r)},onNextClick:function(){o&&a(o)}})}function et(e){var t,n,r=Me(),o=r.classNames,a=r.disableNavigation,i=r.styles,s=r.captionLayout,l=r.components,d=null!==(t=null==l?void 0:l.CaptionLabel)&&void 0!==t?t:_e;return n=a?Pe.jsx(d,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===s?Pe.jsx(Ye,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===s?Pe.jsxs(Pe.Fragment,{children:[Pe.jsx(Ye,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),Pe.jsx(Qe,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):Pe.jsxs(Pe.Fragment,{children:[Pe.jsx(d,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),Pe.jsx(Qe,{displayMonth:e.displayMonth,id:e.id})]}),Pe.jsx("div",{className:o.caption,style:i.caption,children:n})}function tt(e){var t=Me(),n=t.footer,r=t.styles,o=t.classNames.tfoot;return n?Pe.jsx("tfoot",{className:o,style:r.tfoot,children:Pe.jsx("tr",{children:Pe.jsx("td",{colSpan:8,children:n})})}):Pe.jsx(Pe.Fragment,{})}function nt(){var e=Me(),t=e.classNames,n=e.styles,r=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,s=e.ISOWeek,l=e.formatters.formatWeekdayName,d=e.labels.labelWeekday,c=function(e,t,n){for(var r=n?i.startOfISOWeek(new Date):i.startOfWeek(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var s=i.addDays(r,a);o.push(s)}return o}(o,a,s);return Pe.jsxs("tr",{style:n.head_row,className:t.head_row,children:[r&&Pe.jsx("td",{style:n.head_cell,className:t.head_cell}),c.map((function(e,r){return Pe.jsx("th",{scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":d(e,{locale:o}),children:l(e,{locale:o})},r)}))]})}function rt(){var e,t=Me(),n=t.classNames,r=t.styles,o=t.components,a=null!==(e=null==o?void 0:o.HeadRow)&&void 0!==e?e:nt;return Pe.jsx("thead",{style:r.head,className:n.head,children:Pe.jsx(a,{})})}function ot(e){var t=Me(),n=t.locale,r=t.formatters.formatDay;return Pe.jsx(Pe.Fragment,{children:r(e.date,{locale:n})})}var at=n.createContext(void 0);function it(e){if(!Ie(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return Pe.jsx(at.Provider,{value:t,children:e.children})}return Pe.jsx(st,{initialProps:e.initialProps,children:e.children})}function st(e){var t=e.initialProps,n=e.children,r=t.selected,o=t.min,a=t.max,s={disabled:[]};r&&s.disabled.push((function(e){var t=a&&r.length>a-1,n=r.some((function(t){return i.isSameDay(t,e)}));return Boolean(t&&!n)}));var l={selected:r,onDayClick:function(e,n,s){var l,d;if((null===(l=t.onDayClick)||void 0===l||l.call(t,e,n,s),!Boolean(n.selected&&o&&(null==r?void 0:r.length)===o))&&!Boolean(!n.selected&&a&&(null==r?void 0:r.length)===a)){var c=r?Ce([],r,!0):[];if(n.selected){var u=c.findIndex((function(t){return i.isSameDay(e,t)}));c.splice(u,1)}else c.push(e);null===(d=t.onSelect)||void 0===d||d.call(t,c,e,n,s)}},modifiers:s};return Pe.jsx(at.Provider,{value:l,children:n})}function lt(){var e=n.useContext(at);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var dt,ct=n.createContext(void 0);function ut(e){if(!Ne(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return Pe.jsx(ct.Provider,{value:t,children:e.children})}return Pe.jsx(ft,{initialProps:e.initialProps,children:e.children})}function ft(e){var t=e.initialProps,n=e.children,r=t.selected,o=r||{},a=o.from,s=o.to,l=t.min,d=t.max,c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(c.range_start=[a],s?(c.range_end=[s],i.isSameDay(a,s)||(c.range_middle=[{after:a,before:s}])):c.range_end=[a]):s&&(c.range_start=[s],c.range_end=[s]),l&&(a&&!s&&c.disabled.push({after:i.subDays(a,l-1),before:i.addDays(a,l-1)}),a&&s&&c.disabled.push({after:a,before:i.addDays(a,l-1)}),!a&&s&&c.disabled.push({after:i.subDays(s,l-1),before:i.addDays(s,l-1)})),d){if(a&&!s&&(c.disabled.push({before:i.addDays(a,1-d)}),c.disabled.push({after:i.addDays(a,d-1)})),a&&s){var u=d-(i.differenceInCalendarDays(s,a)+1);c.disabled.push({before:i.subDays(a,u)}),c.disabled.push({after:i.addDays(s,u)})}!a&&s&&(c.disabled.push({before:i.addDays(s,1-d)}),c.disabled.push({after:i.addDays(s,d-1)}))}return Pe.jsx(ct.Provider,{value:{selected:r,onDayClick:function(e,n,o){var a,s;null===(a=t.onDayClick)||void 0===a||a.call(t,e,n,o);var l=function(e,t){var n=t||{},r=n.from,o=n.to;if(r&&o){if(i.isSameDay(o,e)&&i.isSameDay(r,e))return;if(i.isSameDay(o,e))return{from:o,to:void 0};if(i.isSameDay(r,e))return;return i.isAfter(r,e)?{from:e,to:o}:{from:r,to:e}}return o?i.isAfter(e,o)?{from:o,to:e}:{from:e,to:o}:r?i.isBefore(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}(e,r);null===(s=t.onSelect)||void 0===s||s.call(t,l,e,n,o)},modifiers:c},children:n})}function pt(){var e=n.useContext(ct);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function ht(e){return Array.isArray(e)?Ce([],e,!0):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(dt||(dt={}));var gt=dt.Selected,mt=dt.Disabled,bt=dt.Hidden,yt=dt.Today,vt=dt.RangeEnd,$t=dt.RangeMiddle,xt=dt.RangeStart,wt=dt.Outside;var Ct=n.createContext(void 0);function Ot(e){var t=Me(),n=function(e,t,n){var r,o=((r={})[gt]=ht(e.selected),r[mt]=ht(e.disabled),r[bt]=ht(e.hidden),r[yt]=[e.today],r[vt]=[],r[$t]=[],r[xt]=[],r[wt]=[],r);return e.fromDate&&o[mt].push({before:e.fromDate}),e.toDate&&o[mt].push({after:e.toDate}),Ie(e)?o[mt]=o[mt].concat(t.modifiers[mt]):Ne(e)&&(o[mt]=o[mt].concat(n.modifiers[mt]),o[xt]=n.modifiers[xt],o[$t]=n.modifiers[$t],o[vt]=n.modifiers[vt]),o}(t,lt(),pt()),r=function(e){var t={};return Object.entries(e).forEach((function(e){var n=e[0],r=e[1];t[n]=ht(r)})),t}(t.modifiers),o=we(we({},n),r);return Pe.jsx(Ct.Provider,{value:o,children:e.children})}function kt(){var e=n.useContext(Ct);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function jt(e,t){return t.some((function(t){if("boolean"==typeof t)return t;if(n=t,i.isDate(n))return i.isSameDay(e,t);var n,r,o,a,s,l;if(function(e){return Array.isArray(e)&&e.every(i.isDate)}(t))return t.includes(e);if(function(e){return Boolean(e&&"object"==typeof e&&"from"in e)}(t))return r=e,s=(o=t).from,l=o.to,s&&l?(i.differenceInCalendarDays(l,s)<0&&(s=(a=[l,s])[0],l=a[1]),i.differenceInCalendarDays(r,s)>=0&&i.differenceInCalendarDays(l,r)>=0):l?i.isSameDay(l,r):!!s&&i.isSameDay(s,r);if(function(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var d=i.differenceInCalendarDays(t.before,e)>0,c=i.differenceInCalendarDays(t.after,e)<0;return i.isAfter(t.before,t.after)?c&&d:d||c}return function(e){return Boolean(e&&"object"==typeof e&&"after"in e)}(t)?i.differenceInCalendarDays(e,t.after)>0:function(e){return Boolean(e&&"object"==typeof e&&"before"in e)}(t)?i.differenceInCalendarDays(t.before,e)>0:"function"==typeof t&&t(e)}))}function St(e,t,n){var r=Object.keys(t).reduce((function(n,r){var o=t[r];return jt(e,o)&&n.push(r),n}),[]),o={};return r.forEach((function(e){return o[e]=!0})),n&&!i.isSameMonth(e,n)&&(o.outside=!0),o}var Et=365;function Pt(e,t){var n=t.moveBy,r=t.direction,o=t.context,a=t.modifiers,s=t.retry,l=void 0===s?{count:0,lastFocused:e}:s,d=o.weekStartsOn,c=o.fromDate,u=o.toDate,f=o.locale,p={day:i.addDays,week:i.addWeeks,month:i.addMonths,year:i.addYears,startOfWeek:function(e){return o.ISOWeek?i.startOfISOWeek(e):i.startOfWeek(e,{locale:f,weekStartsOn:d})},endOfWeek:function(e){return o.ISOWeek?i.endOfISOWeek(e):i.endOfWeek(e,{locale:f,weekStartsOn:d})}}[n](e,"after"===r?1:-1);"before"===r&&c?p=i.max([c,p]):"after"===r&&u&&(p=i.min([u,p]));var h=!0;if(a){var g=St(p,a);h=!g.disabled&&!g.hidden}return h?p:l.count>Et?l.lastFocused:Pt(p,{moveBy:n,direction:r,context:o,modifiers:a,retry:we(we({},l),{count:l.count+1})})}var It=n.createContext(void 0);function Nt(e){var t=qe(),r=kt(),o=n.useState(),a=o[0],s=o[1],l=n.useState(),d=l[0],c=l[1],u=function(e,t){for(var n,r,o=i.startOfMonth(e[0]),a=i.endOfMonth(e[e.length-1]),s=o;s<=a;){var l=St(s,t);if(l.disabled||l.hidden)s=i.addDays(s,1);else{if(l.selected)return s;l.today&&!r&&(r=s),n||(n=s),s=i.addDays(s,1)}}return r||n}(t.displayMonths,r),f=(null!=a?a:d&&t.isDateDisplayed(d))?d:u,p=function(e){s(e)},h=Me(),g=function(e,n){if(a){var o=Pt(a,{moveBy:e,direction:n,context:h,modifiers:r});i.isSameDay(a,o)||(t.goToDate(o,a),p(o))}},m={focusedDay:a,focusTarget:f,blur:function(){c(a),s(void 0)},focus:p,focusDayAfter:function(){return g("day","after")},focusDayBefore:function(){return g("day","before")},focusWeekAfter:function(){return g("week","after")},focusWeekBefore:function(){return g("week","before")},focusMonthBefore:function(){return g("month","before")},focusMonthAfter:function(){return g("month","after")},focusYearBefore:function(){return g("year","before")},focusYearAfter:function(){return g("year","after")},focusStartOfWeek:function(){return g("startOfWeek","before")},focusEndOfWeek:function(){return g("endOfWeek","after")}};return Pe.jsx(It.Provider,{value:m,children:e.children})}function At(){var e=n.useContext(It);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var Tt=n.createContext(void 0);function Dt(e){if(!Ae(e.initialProps)){var t={selected:void 0};return Pe.jsx(Tt.Provider,{value:t,children:e.children})}return Pe.jsx(Ft,{initialProps:e.initialProps,children:e.children})}function Ft(e){var t=e.initialProps,n=e.children,r={selected:t.selected,onDayClick:function(e,n,r){var o,a,i;null===(o=t.onDayClick)||void 0===o||o.call(t,e,n,r),!n.selected||t.required?null===(i=t.onSelect)||void 0===i||i.call(t,e,e,n,r):null===(a=t.onSelect)||void 0===a||a.call(t,void 0,e,n,r)}};return Pe.jsx(Tt.Provider,{value:r,children:n})}function Lt(){var e=n.useContext(Tt);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function Rt(e,t){var n=[e.classNames.day];return Object.keys(t).forEach((function(t){var r=e.modifiersClassNames[t];if(r)n.push(r);else if(function(e){return Object.values(dt).includes(e)}(t)){var o=e.classNames["day_".concat(t)];o&&n.push(o)}})),n}function Mt(e,t,r){var o,a,s,l=Me(),d=At(),c=function(e,t){return St(e,kt(),t)}(e,t),u=function(e,t){var n=Me(),r=Lt(),o=lt(),a=pt(),i=At(),s=i.focusDayAfter,l=i.focusDayBefore,d=i.focusWeekAfter,c=i.focusWeekBefore,u=i.blur,f=i.focus,p=i.focusMonthBefore,h=i.focusMonthAfter,g=i.focusYearBefore,m=i.focusYearAfter,b=i.focusStartOfWeek,y=i.focusEndOfWeek,v={onClick:function(i){var s,l,d,c;Ae(n)?null===(s=r.onDayClick)||void 0===s||s.call(r,e,t,i):Ie(n)?null===(l=o.onDayClick)||void 0===l||l.call(o,e,t,i):Ne(n)?null===(d=a.onDayClick)||void 0===d||d.call(a,e,t,i):null===(c=n.onDayClick)||void 0===c||c.call(n,e,t,i)},onFocus:function(r){var o;f(e),null===(o=n.onDayFocus)||void 0===o||o.call(n,e,t,r)},onBlur:function(r){var o;u(),null===(o=n.onDayBlur)||void 0===o||o.call(n,e,t,r)},onKeyDown:function(r){var o;switch(r.key){case"ArrowLeft":r.preventDefault(),r.stopPropagation(),"rtl"===n.dir?s():l();break;case"ArrowRight":r.preventDefault(),r.stopPropagation(),"rtl"===n.dir?l():s();break;case"ArrowDown":r.preventDefault(),r.stopPropagation(),d();break;case"ArrowUp":r.preventDefault(),r.stopPropagation(),c();break;case"PageUp":r.preventDefault(),r.stopPropagation(),r.shiftKey?g():p();break;case"PageDown":r.preventDefault(),r.stopPropagation(),r.shiftKey?m():h();break;case"Home":r.preventDefault(),r.stopPropagation(),b();break;case"End":r.preventDefault(),r.stopPropagation(),y()}null===(o=n.onDayKeyDown)||void 0===o||o.call(n,e,t,r)},onKeyUp:function(r){var o;null===(o=n.onDayKeyUp)||void 0===o||o.call(n,e,t,r)},onMouseEnter:function(r){var o;null===(o=n.onDayMouseEnter)||void 0===o||o.call(n,e,t,r)},onMouseLeave:function(r){var o;null===(o=n.onDayMouseLeave)||void 0===o||o.call(n,e,t,r)},onPointerEnter:function(r){var o;null===(o=n.onDayPointerEnter)||void 0===o||o.call(n,e,t,r)},onPointerLeave:function(r){var o;null===(o=n.onDayPointerLeave)||void 0===o||o.call(n,e,t,r)},onTouchCancel:function(r){var o;null===(o=n.onDayTouchCancel)||void 0===o||o.call(n,e,t,r)},onTouchEnd:function(r){var o;null===(o=n.onDayTouchEnd)||void 0===o||o.call(n,e,t,r)},onTouchMove:function(r){var o;null===(o=n.onDayTouchMove)||void 0===o||o.call(n,e,t,r)},onTouchStart:function(r){var o;null===(o=n.onDayTouchStart)||void 0===o||o.call(n,e,t,r)}};return v}(e,c),f=function(){var e=Me(),t=Lt(),n=lt(),r=pt();return Ae(e)?t.selected:Ie(e)?n.selected:Ne(e)?r.selected:void 0}(),p=Boolean(l.onDayClick||"default"!==l.mode);n.useEffect((function(){var t;c.outside||d.focusedDay&&p&&i.isSameDay(d.focusedDay,e)&&(null===(t=r.current)||void 0===t||t.focus())}),[d.focusedDay,e,r,p,c.outside]);var h=Rt(l,c).join(" "),g=function(e,t){var n=we({},e.styles.day);return Object.keys(t).forEach((function(t){var r;n=we(we({},n),null===(r=e.modifiersStyles)||void 0===r?void 0:r[t])})),n}(l,c),m=Boolean(c.outside&&!l.showOutsideDays||c.hidden),b=null!==(s=null===(a=l.components)||void 0===a?void 0:a.DayContent)&&void 0!==s?s:ot,y={style:g,className:h,children:Pe.jsx(b,{date:e,displayMonth:t,activeModifiers:c}),role:"gridcell"},v=d.focusTarget&&i.isSameDay(d.focusTarget,e)&&!c.outside,$=d.focusedDay&&i.isSameDay(d.focusedDay,e),x=we(we(we({},y),((o={disabled:c.disabled,role:"gridcell"})["aria-selected"]=c.selected,o.tabIndex=$||v?0:-1,o)),u);return{isButton:p,isHidden:m,activeModifiers:c,selectedDays:f,buttonProps:x,divProps:y}}function _t(e){var t=n.useRef(null),r=Mt(e.date,e.displayMonth,t);return r.isHidden?Pe.jsx("div",{role:"gridcell"}):r.isButton?Pe.jsx(Ze,we({name:"day",ref:t},r.buttonProps)):Pe.jsx("div",we({},r.divProps))}function Bt(e){var t=e.number,n=e.dates,r=Me(),o=r.onWeekNumberClick,a=r.styles,i=r.classNames,s=r.locale,l=r.labels.labelWeekNumber,d=(0,r.formatters.formatWeekNumber)(Number(t),{locale:s});if(!o)return Pe.jsx("span",{className:i.weeknumber,style:a.weeknumber,children:d});var c=l(Number(t),{locale:s});return Pe.jsx(Ze,{name:"week-number","aria-label":c,className:i.weeknumber,style:a.weeknumber,onClick:function(e){o(t,n,e)},children:d})}function zt(e){var t,n,r,o=Me(),a=o.styles,s=o.classNames,l=o.showWeekNumber,d=o.components,c=null!==(t=null==d?void 0:d.Day)&&void 0!==t?t:_t,u=null!==(n=null==d?void 0:d.WeekNumber)&&void 0!==n?n:Bt;return l&&(r=Pe.jsx("td",{className:s.cell,style:a.cell,children:Pe.jsx(u,{number:e.weekNumber,dates:e.dates})})),Pe.jsxs("tr",{className:s.row,style:a.row,children:[r,e.dates.map((function(t){return Pe.jsx("td",{className:s.cell,style:a.cell,role:"presentation",children:Pe.jsx(c,{displayMonth:e.displayMonth,date:t})},i.getUnixTime(t))}))]})}function Ut(e,t,n){for(var r=(null==n?void 0:n.ISOWeek)?i.endOfISOWeek(t):i.endOfWeek(t,n),o=(null==n?void 0:n.ISOWeek)?i.startOfISOWeek(e):i.startOfWeek(e,n),a=i.differenceInCalendarDays(r,o),s=[],l=0;l<=a;l++)s.push(i.addDays(o,l));var d=s.reduce((function(e,t){var r=(null==n?void 0:n.ISOWeek)?i.getISOWeek(t):i.getWeek(t,n),o=e.find((function(e){return e.weekNumber===r}));return o?(o.dates.push(t),e):(e.push({weekNumber:r,dates:[t]}),e)}),[]);return d}function Gt(e){var t,n,r,o=Me(),a=o.locale,s=o.classNames,l=o.styles,d=o.hideHead,c=o.fixedWeeks,u=o.components,f=o.weekStartsOn,p=o.firstWeekContainsDate,h=o.ISOWeek,g=function(e,t){var n=Ut(i.startOfMonth(e),i.endOfMonth(e),t);if(null==t?void 0:t.useFixedWeeks){var r=i.getWeeksInMonth(e,t);if(r<6){var o=n[n.length-1],a=o.dates[o.dates.length-1],s=i.addWeeks(a,6-r),l=Ut(i.addWeeks(a,1),s,t);n.push.apply(n,l)}}return n}(e.displayMonth,{useFixedWeeks:Boolean(c),ISOWeek:h,locale:a,weekStartsOn:f,firstWeekContainsDate:p}),m=null!==(t=null==u?void 0:u.Head)&&void 0!==t?t:rt,b=null!==(n=null==u?void 0:u.Row)&&void 0!==n?n:zt,y=null!==(r=null==u?void 0:u.Footer)&&void 0!==r?r:tt;return Pe.jsxs("table",{id:e.id,className:s.table,style:l.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!d&&Pe.jsx(m,{}),Pe.jsx("tbody",{className:s.tbody,style:l.tbody,children:g.map((function(t){return Pe.jsx(b,{displayMonth:e.displayMonth,dates:t.dates,weekNumber:t.weekNumber},t.weekNumber)}))}),Pe.jsx(y,{displayMonth:e.displayMonth})]})}var Wt="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect,Ht=!1,Vt=0;function qt(){return"react-day-picker-".concat(++Vt)}function Yt(e){var t,r,o=Me(),a=o.dir,i=o.classNames,s=o.styles,l=o.components,d=qe().displayMonths,c=function(e){var t,r=null!=e?e:Ht?qt():null,o=n.useState(r),a=o[0],i=o[1];return Wt((function(){null===a&&i(qt())}),[]),n.useEffect((function(){!1===Ht&&(Ht=!0)}),[]),null!==(t=null!=e?e:a)&&void 0!==t?t:void 0}(o.id?"".concat(o.id,"-").concat(e.displayIndex):void 0),u=o.id?"".concat(o.id,"-grid-").concat(e.displayIndex):void 0,f=[i.month],p=s.month,h=0===e.displayIndex,g=e.displayIndex===d.length-1,m=!h&&!g;"rtl"===a&&(g=(t=[h,g])[0],h=t[1]),h&&(f.push(i.caption_start),p=we(we({},p),s.caption_start)),g&&(f.push(i.caption_end),p=we(we({},p),s.caption_end)),m&&(f.push(i.caption_between),p=we(we({},p),s.caption_between));var b=null!==(r=null==l?void 0:l.Caption)&&void 0!==r?r:et;return Pe.jsxs("div",{className:f.join(" "),style:p,children:[Pe.jsx(b,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),Pe.jsx(Gt,{id:u,"aria-labelledby":c,displayMonth:e.displayMonth})]},e.displayIndex)}function Kt(e){var t=Me(),n=t.classNames,r=t.styles;return Pe.jsx("div",{className:n.months,style:r.months,children:e.children})}function Xt(e){var t,r,o=e.initialProps,a=Me(),i=At(),s=qe(),l=n.useState(!1),d=l[0],c=l[1];n.useEffect((function(){a.initialFocus&&i.focusTarget&&(d||(i.focus(i.focusTarget),c(!0)))}),[a.initialFocus,d,i.focus,i.focusTarget,i]);var u=[a.classNames.root,a.className];a.numberOfMonths>1&&u.push(a.classNames.multiple_months),a.showWeekNumber&&u.push(a.classNames.with_weeknumber);var f=we(we({},a.styles.root),a.style),p=Object.keys(o).filter((function(e){return e.startsWith("data-")})).reduce((function(e,t){var n;return we(we({},e),((n={})[t]=o[t],n))}),{}),h=null!==(r=null===(t=o.components)||void 0===t?void 0:t.Months)&&void 0!==r?r:Kt;return Pe.jsx("div",we({className:u.join(" "),style:f,dir:a.dir,id:a.id,nonce:o.nonce,title:o.title,lang:o.lang},p,{children:Pe.jsx(h,{children:s.displayMonths.map((function(e,t){return Pe.jsx(Yt,{displayIndex:t,displayMonth:e},t)}))})}))}function Zt(e){var t=e.children,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children"]);return Pe.jsx(Re,{initialProps:n,children:Pe.jsx(Ve,{children:Pe.jsx(Dt,{initialProps:n,children:Pe.jsx(it,{initialProps:n,children:Pe.jsx(ut,{initialProps:n,children:Pe.jsx(Ot,{children:Pe.jsx(Nt,{children:t})})})})})})})}function Jt(e){return Pe.jsx(Zt,we({},e,{children:Pe.jsx(Xt,{initialProps:e})}))}const Qt=v.default.div`
|
|
396
|
+
`,$e=({dataTest:t,disabled:o,displayField:a,error:i,field:s,focused:l=!1,gmap:d,label:c,id:u,inputElement:f,max:p,maxLength:h,min:g,minLength:m,name:b,outline:v,phoneWithFlags:y=!1,required:$,selectOnFocus:x,suffix:w,type:C=exports.InputType.TEXT,value:O,zIndex:k,onBlur:j,onChange:S,onFocus:P})=>{var I;const N=n.useRef(null),A=`input-${n.useId()}`,T=n.useMemo((()=>u||A),[]),[D,F]=n.useState(l),L=()=>{F(!1),j&&j()},M=void 0!==O?r.isNotEmpty(O||""):r.isNotEmpty((null===(I=N.current)||void 0===I?void 0:I.value)||""),R=Object.assign(Object.assign({disabled:o,field:s,focused:D,type:C},void 0!==O&&{value:O}),{dataTest:t,required:$,id:T,handleBlur:L,handleFocus:()=>{F(!0),x&&N.current&&N.current.select(),P&&P()},handleOnChange:e=>{const{target:{value:t}}=e;!o&&S&&S(t)},name:b,gmap:Object.assign(Object.assign({},d),{onBlur:r.compose(d&&d.onBlur,L)}),min:g,max:p,minLength:m,maxLength:h,suffix:w,phoneWithFlags:y});return n.useEffect((()=>{F(l)}),[l]),e.jsxs(ye,{disabled:o,error:i,focused:D,notched:M,outline:v,phoneWithFlags:y,zIndex:k,children:[e.jsx(me,{htmlFor:T,suffixLength:(null==w?void 0:w.length)||0,children:c}),e.jsxs(ve,{disabled:o,children:[e.jsxs(he,{children:[e.jsx(ge,{isVisible:M||D,children:e.jsx("span",{dangerouslySetInnerHTML:{__html:c}})}),a?e.jsx(n.Fragment,{children:a}):e.jsxs(n.Fragment,{children:[w&&e.jsx(be,{"data-test":"input-suffix",children:w}),e.jsx(fe,Object.assign({ref:N},R,{inputElement:f}))]})]}),s&&e.jsx(n.Fragment,{children:s}),i&&e.jsx(E,{})]})]})};function xe(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}xe(".rdp{--rdp-cell-size:40px;--rdp-caption-font-size:18px;--rdp-accent-color:#00f;--rdp-background-color:#e7edff;--rdp-accent-color-dark:#3003e1;--rdp-background-color-dark:#180270;--rdp-outline:2px solid var(--rdp-accent-color);--rdp-outline-selected:3px solid var(--rdp-accent-color);--rdp-selected-color:#fff;margin:1em}.rdp-vhidden{clip:rect(1px,1px,1px,1px)!important;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;border:0!important;box-sizing:border-box;height:1px!important;margin:0;overflow:hidden!important;padding:0;padding:0!important;position:absolute!important;top:0;width:1px!important}.rdp-button_reset{appearance:none;-moz-appearance:none;-webkit-appearance:none;background:none;color:inherit;cursor:default;font:inherit;margin:0;padding:0;position:relative}.rdp-button_reset:focus-visible{outline:none}.rdp-button{border:2px solid transparent}.rdp-button[disabled]:not(.rdp-day_selected){opacity:.25}.rdp-button:not([disabled]){cursor:pointer}.rdp-button:focus-visible:not([disabled]){background-color:var(--rdp-background-color);border:var(--rdp-outline);color:inherit}.rdp-button:hover:not([disabled]):not(.rdp-day_selected){background-color:var(--rdp-background-color)}.rdp-months{display:flex}.rdp-month{margin:0 1em}.rdp-month:first-child{margin-left:0}.rdp-month:last-child{margin-right:0}.rdp-table{border-collapse:collapse;margin:0;max-width:calc(var(--rdp-cell-size)*7)}.rdp-with_weeknumber .rdp-table{border-collapse:collapse;max-width:calc(var(--rdp-cell-size)*8)}.rdp-caption{align-items:center;display:flex;justify-content:space-between;padding:0;text-align:left}.rdp-multiple_months .rdp-caption{display:block;position:relative;text-align:center}.rdp-caption_dropdowns,.rdp-caption_label{display:inline-flex;position:relative}.rdp-caption_label{align-items:center;border:2px solid transparent;color:currentColor;font-family:inherit;font-size:var(--rdp-caption-font-size);font-weight:700;margin:0;padding:0 .25em;white-space:nowrap;z-index:1}.rdp-nav{white-space:nowrap}.rdp-multiple_months .rdp-caption_start .rdp-nav{left:0;position:absolute;top:50%;transform:translateY(-50%)}.rdp-multiple_months .rdp-caption_end .rdp-nav{position:absolute;right:0;top:50%;transform:translateY(-50%)}.rdp-nav_button{align-items:center;border-radius:100%;display:inline-flex;height:var(--rdp-cell-size);justify-content:center;padding:.25em;width:var(--rdp-cell-size)}.rdp-dropdown_month,.rdp-dropdown_year{align-items:center;display:inline-flex;position:relative}.rdp-dropdown{appearance:none;background-color:transparent;border:none;bottom:0;cursor:inherit;font-family:inherit;font-size:inherit;left:0;line-height:inherit;margin:0;opacity:0;padding:0;position:absolute;top:0;width:100%;z-index:2}.rdp-dropdown[disabled]{color:unset;opacity:unset}.rdp-dropdown:focus-visible:not([disabled])+.rdp-caption_label{background-color:var(--rdp-background-color);border:var(--rdp-outline);border-radius:6px}.rdp-dropdown_icon{margin:0 0 0 5px}.rdp-head{border:0}.rdp-head_row,.rdp-row{height:100%}.rdp-head_cell{font-size:.75em;font-weight:700;height:100%;height:var(--rdp-cell-size);padding:0;text-align:center;text-transform:uppercase;vertical-align:middle}.rdp-tbody{border:0}.rdp-tfoot{margin:.5em}.rdp-cell{height:100%;height:var(--rdp-cell-size);padding:0;text-align:center;width:var(--rdp-cell-size)}.rdp-weeknumber{font-size:.75em}.rdp-day,.rdp-weeknumber{align-items:center;border:2px solid transparent;border-radius:100%;box-sizing:border-box;display:flex;height:var(--rdp-cell-size);justify-content:center;margin:0;max-width:var(--rdp-cell-size);overflow:hidden;width:var(--rdp-cell-size)}.rdp-day_today:not(.rdp-day_outside){font-weight:700}.rdp-day_selected,.rdp-day_selected:focus-visible,.rdp-day_selected:hover{background-color:var(--rdp-accent-color);color:var(--rdp-selected-color);opacity:1}.rdp-day_outside{opacity:.5}.rdp-day_selected:focus-visible{outline:var(--rdp-outline);outline-offset:2px;z-index:1}.rdp:not([dir=rtl]) .rdp-day_range_start:not(.rdp-day_range_end){border-bottom-right-radius:0;border-top-right-radius:0}.rdp:not([dir=rtl]) .rdp-day_range_end:not(.rdp-day_range_start),.rdp[dir=rtl] .rdp-day_range_start:not(.rdp-day_range_end){border-bottom-left-radius:0;border-top-left-radius:0}.rdp[dir=rtl] .rdp-day_range_end:not(.rdp-day_range_start){border-bottom-right-radius:0;border-top-right-radius:0}.rdp-day_range_end.rdp-day_range_start{border-radius:100%}.rdp-day_range_middle{border-radius:0}");var we=function(){return we=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},we.apply(this,arguments)};function Ce(e,t,n){for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Oe(e){return"multiple"===e.mode}function ke(e){return"range"===e.mode}function je(e){return"single"===e.mode}"function"==typeof SuppressedError&&SuppressedError;var Se={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var Ee=Object.freeze({__proto__:null,formatCaption:function(e,t){return i.format(e,"LLLL y",t)},formatDay:function(e,t){return i.format(e,"d",t)},formatMonthCaption:function(e,t){return i.format(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return i.format(e,"cccccc",t)},formatYearCaption:function(e,t){return i.format(e,"yyyy",t)}}),Pe=Object.freeze({__proto__:null,labelDay:function(e,t,n){return i.format(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return i.format(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});var Ie=n.createContext(void 0);function Ne(t){var n,r,o=t.initialProps,a=function(){var e=Se,t=s.enUS,n=new Date;return{captionLayout:"buttons",classNames:e,formatters:Ee,labels:Pe,locale:t,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:n,mode:"default"}}(),l=function(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,o=e.toMonth,a=e.fromDate,s=e.toDate;return r?a=i.startOfMonth(r):t&&(a=new Date(t,0,1)),o?s=i.endOfMonth(o):n&&(s=new Date(n,11,31)),{fromDate:a?i.startOfDay(a):void 0,toDate:s?i.startOfDay(s):void 0}}(o),d=l.fromDate,c=l.toDate,u=null!==(n=o.captionLayout)&&void 0!==n?n:a.captionLayout;"buttons"===u||d&&c||(u="buttons"),(je(o)||Oe(o)||ke(o))&&(r=o.onSelect);var f=we(we(we({},a),o),{captionLayout:u,classNames:we(we({},a.classNames),o.classNames),components:we({},o.components),formatters:we(we({},a.formatters),o.formatters),fromDate:d,labels:we(we({},a.labels),o.labels),mode:o.mode||a.mode,modifiers:we(we({},a.modifiers),o.modifiers),modifiersClassNames:we(we({},a.modifiersClassNames),o.modifiersClassNames),onSelect:r,styles:we(we({},a.styles),o.styles),toDate:c});return e.jsx(Ie.Provider,{value:f,children:t.children})}function Ae(){var e=n.useContext(Ie);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Te(t){var n=Ae(),r=n.locale,o=n.classNames,a=n.styles,i=n.formatters.formatCaption;return e.jsx("div",{className:o.caption_label,style:a.caption_label,"aria-live":"polite",role:"presentation",id:t.id,children:i(t.displayMonth,{locale:r})})}function De(t){return e.jsx("svg",we({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},t,{children:e.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Fe(t){var n,r,o=t.onChange,a=t.value,i=t.children,s=t.caption,l=t.className,d=t.style,c=Ae(),u=null!==(r=null===(n=c.components)||void 0===n?void 0:n.IconDropdown)&&void 0!==r?r:De;return e.jsxs("div",{className:l,style:d,children:[e.jsx("span",{className:c.classNames.vhidden,children:t["aria-label"]}),e.jsx("select",{name:t.name,"aria-label":t["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:a,onChange:o,children:i}),e.jsxs("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[s,e.jsx(u,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function Le(t){var n,r=Ae(),o=r.fromDate,a=r.toDate,s=r.styles,l=r.locale,d=r.formatters.formatMonthCaption,c=r.classNames,u=r.components,f=r.labels.labelMonthDropdown;if(!o)return e.jsx(e.Fragment,{});if(!a)return e.jsx(e.Fragment,{});var p=[];if(i.isSameYear(o,a))for(var h=i.startOfMonth(o),g=o.getMonth();g<=a.getMonth();g++)p.push(i.setMonth(h,g));else for(h=i.startOfMonth(new Date),g=0;g<=11;g++)p.push(i.setMonth(h,g));var m=null!==(n=null==u?void 0:u.Dropdown)&&void 0!==n?n:Fe;return e.jsx(m,{name:"months","aria-label":f(),className:c.dropdown_month,style:s.dropdown_month,onChange:function(e){var n=Number(e.target.value),r=i.setMonth(i.startOfMonth(t.displayMonth),n);t.onChange(r)},value:t.displayMonth.getMonth(),caption:d(t.displayMonth,{locale:l}),children:p.map((function(t){return e.jsx("option",{value:t.getMonth(),children:d(t,{locale:l})},t.getMonth())}))})}function Me(t){var n,r=t.displayMonth,o=Ae(),a=o.fromDate,s=o.toDate,l=o.locale,d=o.styles,c=o.classNames,u=o.components,f=o.formatters.formatYearCaption,p=o.labels.labelYearDropdown,h=[];if(!a)return e.jsx(e.Fragment,{});if(!s)return e.jsx(e.Fragment,{});for(var g=a.getFullYear(),m=s.getFullYear(),b=g;b<=m;b++)h.push(i.setYear(i.startOfYear(new Date),b));var v=null!==(n=null==u?void 0:u.Dropdown)&&void 0!==n?n:Fe;return e.jsx(v,{name:"years","aria-label":p(),className:c.dropdown_year,style:d.dropdown_year,onChange:function(e){var n=i.setYear(i.startOfMonth(r),Number(e.target.value));t.onChange(n)},value:r.getFullYear(),caption:f(r,{locale:l}),children:h.map((function(t){return e.jsx("option",{value:t.getFullYear(),children:f(t,{locale:l})},t.getFullYear())}))})}function Re(){var e=Ae(),t=function(e){var t=e.month,n=e.defaultMonth,r=e.today,o=t||n||r||new Date,a=e.toDate,s=e.fromDate,l=e.numberOfMonths,d=void 0===l?1:l;if(a&&i.differenceInCalendarMonths(a,o)<0){var c=-1*(d-1);o=i.addMonths(a,c)}return s&&i.differenceInCalendarMonths(o,s)<0&&(o=s),i.startOfMonth(o)}(e),r=function(e,t){var r=n.useState(e),o=r[0];return[void 0===t?o:t,r[1]]}(t,e.month),o=r[0],a=r[1];return[o,function(t){var n;if(!e.disableNavigation){var r=i.startOfMonth(t);a(r),null===(n=e.onMonthChange)||void 0===n||n.call(e,r)}}]}var Be=n.createContext(void 0);function _e(t){var n=Ae(),r=Re(),o=r[0],a=r[1],s=function(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,o=i.startOfMonth(e),a=i.startOfMonth(i.addMonths(o,r)),s=i.differenceInCalendarMonths(a,o),l=[],d=0;d<s;d++){var c=i.addMonths(o,d);l.push(c)}return n&&(l=l.reverse()),l}(o,n),l=function(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,o=t.numberOfMonths,a=void 0===o?1:o,s=r?a:1,l=i.startOfMonth(e);if(!n)return i.addMonths(l,s);if(!(i.differenceInCalendarMonths(n,e)<a))return i.addMonths(l,s)}}(o,n),d=function(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,o=t.numberOfMonths,a=r?void 0===o?1:o:1,s=i.startOfMonth(e);if(!n)return i.addMonths(s,-a);if(!(i.differenceInCalendarMonths(s,n)<=0))return i.addMonths(s,-a)}}(o,n),c=function(e){return s.some((function(t){return i.isSameMonth(e,t)}))},u={currentMonth:o,displayMonths:s,goToMonth:a,goToDate:function(e,t){c(e)||(t&&i.isBefore(e,t)?a(i.addMonths(e,1+-1*n.numberOfMonths)):a(e))},previousMonth:d,nextMonth:l,isDateDisplayed:c};return e.jsx(Be.Provider,{value:u,children:t.children})}function ze(){var e=n.useContext(Be);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function Ue(t){var n,r=Ae(),o=r.classNames,a=r.styles,s=r.components,l=ze().goToMonth,d=function(e){l(i.addMonths(e,t.displayIndex?-t.displayIndex:0))},c=null!==(n=null==s?void 0:s.CaptionLabel)&&void 0!==n?n:Te,u=e.jsx(c,{id:t.id,displayMonth:t.displayMonth});return e.jsxs("div",{className:o.caption_dropdowns,style:a.caption_dropdowns,children:[e.jsx("div",{className:o.vhidden,children:u}),e.jsx(Le,{onChange:d,displayMonth:t.displayMonth}),e.jsx(Me,{onChange:d,displayMonth:t.displayMonth})]})}function Ge(t){return e.jsx("svg",we({width:"16px",height:"16px",viewBox:"0 0 120 120"},t,{children:e.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function He(t){return e.jsx("svg",we({width:"16px",height:"16px",viewBox:"0 0 120 120"},t,{children:e.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var We=n.forwardRef((function(t,n){var r=Ae(),o=r.classNames,a=r.styles,i=[o.button_reset,o.button];t.className&&i.push(t.className);var s=i.join(" "),l=we(we({},a.button_reset),a.button);return t.style&&Object.assign(l,t.style),e.jsx("button",we({},t,{ref:n,type:"button",className:s,style:l}))}));function qe(t){var n,r,o=Ae(),a=o.dir,i=o.locale,s=o.classNames,l=o.styles,d=o.labels,c=d.labelPrevious,u=d.labelNext,f=o.components;if(!t.nextMonth&&!t.previousMonth)return e.jsx(e.Fragment,{});var p=c(t.previousMonth,{locale:i}),h=[s.nav_button,s.nav_button_previous].join(" "),g=u(t.nextMonth,{locale:i}),m=[s.nav_button,s.nav_button_next].join(" "),b=null!==(n=null==f?void 0:f.IconRight)&&void 0!==n?n:He,v=null!==(r=null==f?void 0:f.IconLeft)&&void 0!==r?r:Ge;return e.jsxs("div",{className:s.nav,style:l.nav,children:[!t.hidePrevious&&e.jsx(We,{name:"previous-month","aria-label":p,className:h,style:l.nav_button_previous,disabled:!t.previousMonth,onClick:t.onPreviousClick,children:"rtl"===a?e.jsx(b,{className:s.nav_icon,style:l.nav_icon}):e.jsx(v,{className:s.nav_icon,style:l.nav_icon})}),!t.hideNext&&e.jsx(We,{name:"next-month","aria-label":g,className:m,style:l.nav_button_next,disabled:!t.nextMonth,onClick:t.onNextClick,children:"rtl"===a?e.jsx(v,{className:s.nav_icon,style:l.nav_icon}):e.jsx(b,{className:s.nav_icon,style:l.nav_icon})})]})}function Ve(t){var n=Ae().numberOfMonths,r=ze(),o=r.previousMonth,a=r.nextMonth,s=r.goToMonth,l=r.displayMonths,d=l.findIndex((function(e){return i.isSameMonth(t.displayMonth,e)})),c=0===d,u=d===l.length-1,f=n>1&&(c||!u),p=n>1&&(u||!c);return e.jsx(qe,{displayMonth:t.displayMonth,hideNext:f,hidePrevious:p,nextMonth:a,previousMonth:o,onPreviousClick:function(){o&&s(o)},onNextClick:function(){a&&s(a)}})}function Ye(t){var n,r,o=Ae(),a=o.classNames,i=o.disableNavigation,s=o.styles,l=o.captionLayout,d=o.components,c=null!==(n=null==d?void 0:d.CaptionLabel)&&void 0!==n?n:Te;return r=i?e.jsx(c,{id:t.id,displayMonth:t.displayMonth}):"dropdown"===l?e.jsx(Ue,{displayMonth:t.displayMonth,id:t.id}):"dropdown-buttons"===l?e.jsxs(e.Fragment,{children:[e.jsx(Ue,{displayMonth:t.displayMonth,displayIndex:t.displayIndex,id:t.id}),e.jsx(Ve,{displayMonth:t.displayMonth,displayIndex:t.displayIndex,id:t.id})]}):e.jsxs(e.Fragment,{children:[e.jsx(c,{id:t.id,displayMonth:t.displayMonth,displayIndex:t.displayIndex}),e.jsx(Ve,{displayMonth:t.displayMonth,id:t.id})]}),e.jsx("div",{className:a.caption,style:s.caption,children:r})}function Ke(t){var n=Ae(),r=n.footer,o=n.styles,a=n.classNames.tfoot;return r?e.jsx("tfoot",{className:a,style:o.tfoot,children:e.jsx("tr",{children:e.jsx("td",{colSpan:8,children:r})})}):e.jsx(e.Fragment,{})}function Xe(){var t=Ae(),n=t.classNames,r=t.styles,o=t.showWeekNumber,a=t.locale,s=t.weekStartsOn,l=t.ISOWeek,d=t.formatters.formatWeekdayName,c=t.labels.labelWeekday,u=function(e,t,n){for(var r=n?i.startOfISOWeek(new Date):i.startOfWeek(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var s=i.addDays(r,a);o.push(s)}return o}(a,s,l);return e.jsxs("tr",{style:r.head_row,className:n.head_row,children:[o&&e.jsx("td",{style:r.head_cell,className:n.head_cell}),u.map((function(t,o){return e.jsx("th",{scope:"col",className:n.head_cell,style:r.head_cell,"aria-label":c(t,{locale:a}),children:d(t,{locale:a})},o)}))]})}function Ze(){var t,n=Ae(),r=n.classNames,o=n.styles,a=n.components,i=null!==(t=null==a?void 0:a.HeadRow)&&void 0!==t?t:Xe;return e.jsx("thead",{style:o.head,className:r.head,children:e.jsx(i,{})})}function Je(t){var n=Ae(),r=n.locale,o=n.formatters.formatDay;return e.jsx(e.Fragment,{children:o(t.date,{locale:r})})}var Qe=n.createContext(void 0);function et(t){if(!Oe(t.initialProps)){var n={selected:void 0,modifiers:{disabled:[]}};return e.jsx(Qe.Provider,{value:n,children:t.children})}return e.jsx(tt,{initialProps:t.initialProps,children:t.children})}function tt(t){var n=t.initialProps,r=t.children,o=n.selected,a=n.min,s=n.max,l={disabled:[]};o&&l.disabled.push((function(e){var t=s&&o.length>s-1,n=o.some((function(t){return i.isSameDay(t,e)}));return Boolean(t&&!n)}));var d={selected:o,onDayClick:function(e,t,r){var l,d;if((null===(l=n.onDayClick)||void 0===l||l.call(n,e,t,r),!Boolean(t.selected&&a&&(null==o?void 0:o.length)===a))&&!Boolean(!t.selected&&s&&(null==o?void 0:o.length)===s)){var c=o?Ce([],o):[];if(t.selected){var u=c.findIndex((function(t){return i.isSameDay(e,t)}));c.splice(u,1)}else c.push(e);null===(d=n.onSelect)||void 0===d||d.call(n,c,e,t,r)}},modifiers:l};return e.jsx(Qe.Provider,{value:d,children:r})}function nt(){var e=n.useContext(Qe);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var rt,ot=n.createContext(void 0);function at(t){if(!ke(t.initialProps)){var n={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return e.jsx(ot.Provider,{value:n,children:t.children})}return e.jsx(it,{initialProps:t.initialProps,children:t.children})}function it(t){var n=t.initialProps,r=t.children,o=n.selected,a=o||{},s=a.from,l=a.to,d=n.min,c=n.max,u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(s?(u.range_start=[s],l?(u.range_end=[l],i.isSameDay(s,l)||(u.range_middle=[{after:s,before:l}])):u.range_end=[s]):l&&(u.range_start=[l],u.range_end=[l]),d&&(s&&!l&&u.disabled.push({after:i.subDays(s,d-1),before:i.addDays(s,d-1)}),s&&l&&u.disabled.push({after:s,before:i.addDays(s,d-1)}),!s&&l&&u.disabled.push({after:i.subDays(l,d-1),before:i.addDays(l,d-1)})),c){if(s&&!l&&(u.disabled.push({before:i.addDays(s,1-c)}),u.disabled.push({after:i.addDays(s,c-1)})),s&&l){var f=c-(i.differenceInCalendarDays(l,s)+1);u.disabled.push({before:i.subDays(s,f)}),u.disabled.push({after:i.addDays(l,f)})}!s&&l&&(u.disabled.push({before:i.addDays(l,1-c)}),u.disabled.push({after:i.addDays(l,c-1)}))}return e.jsx(ot.Provider,{value:{selected:o,onDayClick:function(e,t,r){var a,s;null===(a=n.onDayClick)||void 0===a||a.call(n,e,t,r);var l=function(e,t){var n=t||{},r=n.from,o=n.to;if(r&&o){if(i.isSameDay(o,e)&&i.isSameDay(r,e))return;if(i.isSameDay(o,e))return{from:o,to:void 0};if(i.isSameDay(r,e))return;return i.isAfter(r,e)?{from:e,to:o}:{from:r,to:e}}return o?i.isAfter(e,o)?{from:o,to:e}:{from:e,to:o}:r?i.isBefore(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}(e,o);null===(s=n.onSelect)||void 0===s||s.call(n,l,e,t,r)},modifiers:u},children:r})}function st(){var e=n.useContext(ot);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function lt(e){return Array.isArray(e)?Ce([],e):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(rt||(rt={}));var dt=rt.Selected,ct=rt.Disabled,ut=rt.Hidden,ft=rt.Today,pt=rt.RangeEnd,ht=rt.RangeMiddle,gt=rt.RangeStart,mt=rt.Outside;var bt=n.createContext(void 0);function vt(t){var n=Ae(),r=function(e,t,n){var r,o=((r={})[dt]=lt(e.selected),r[ct]=lt(e.disabled),r[ut]=lt(e.hidden),r[ft]=[e.today],r[pt]=[],r[ht]=[],r[gt]=[],r[mt]=[],r);return e.fromDate&&o[ct].push({before:e.fromDate}),e.toDate&&o[ct].push({after:e.toDate}),Oe(e)?o[ct]=o[ct].concat(t.modifiers[ct]):ke(e)&&(o[ct]=o[ct].concat(n.modifiers[ct]),o[gt]=n.modifiers[gt],o[ht]=n.modifiers[ht],o[pt]=n.modifiers[pt]),o}(n,nt(),st()),o=function(e){var t={};return Object.entries(e).forEach((function(e){var n=e[0],r=e[1];t[n]=lt(r)})),t}(n.modifiers),a=we(we({},r),o);return e.jsx(bt.Provider,{value:a,children:t.children})}function yt(){var e=n.useContext(bt);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function $t(e,t){return t.some((function(t){if("boolean"==typeof t)return t;if(n=t,i.isDate(n))return i.isSameDay(e,t);var n,r,o,a,s,l;if(function(e){return Array.isArray(e)&&e.every(i.isDate)}(t))return t.includes(e);if(function(e){return Boolean(e&&"object"==typeof e&&"from"in e)}(t))return r=e,s=(o=t).from,l=o.to,s&&l?(i.differenceInCalendarDays(l,s)<0&&(s=(a=[l,s])[0],l=a[1]),i.differenceInCalendarDays(r,s)>=0&&i.differenceInCalendarDays(l,r)>=0):l?i.isSameDay(l,r):!!s&&i.isSameDay(s,r);if(function(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var d=i.differenceInCalendarDays(t.before,e)>0,c=i.differenceInCalendarDays(t.after,e)<0;return i.isAfter(t.before,t.after)?c&&d:d||c}return function(e){return Boolean(e&&"object"==typeof e&&"after"in e)}(t)?i.differenceInCalendarDays(e,t.after)>0:function(e){return Boolean(e&&"object"==typeof e&&"before"in e)}(t)?i.differenceInCalendarDays(t.before,e)>0:"function"==typeof t&&t(e)}))}function xt(e,t,n){var r=Object.keys(t).reduce((function(n,r){var o=t[r];return $t(e,o)&&n.push(r),n}),[]),o={};return r.forEach((function(e){return o[e]=!0})),n&&!i.isSameMonth(e,n)&&(o.outside=!0),o}var wt=365;function Ct(e,t){var n=t.moveBy,r=t.direction,o=t.context,a=t.modifiers,s=t.retry,l=void 0===s?{count:0,lastFocused:e}:s,d=o.weekStartsOn,c=o.fromDate,u=o.toDate,f=o.locale,p={day:i.addDays,week:i.addWeeks,month:i.addMonths,year:i.addYears,startOfWeek:function(e){return o.ISOWeek?i.startOfISOWeek(e):i.startOfWeek(e,{locale:f,weekStartsOn:d})},endOfWeek:function(e){return o.ISOWeek?i.endOfISOWeek(e):i.endOfWeek(e,{locale:f,weekStartsOn:d})}}[n](e,"after"===r?1:-1);"before"===r&&c?p=i.max([c,p]):"after"===r&&u&&(p=i.min([u,p]));var h=!0;if(a){var g=xt(p,a);h=!g.disabled&&!g.hidden}return h?p:l.count>wt?l.lastFocused:Ct(p,{moveBy:n,direction:r,context:o,modifiers:a,retry:we(we({},l),{count:l.count+1})})}var Ot=n.createContext(void 0);function kt(t){var r=ze(),o=yt(),a=n.useState(),s=a[0],l=a[1],d=n.useState(),c=d[0],u=d[1],f=function(e,t){for(var n,r,o=i.startOfMonth(e[0]),a=i.endOfMonth(e[e.length-1]),s=o;s<=a;){var l=xt(s,t);if(l.disabled||l.hidden)s=i.addDays(s,1);else{if(l.selected)return s;l.today&&!r&&(r=s),n||(n=s),s=i.addDays(s,1)}}return r||n}(r.displayMonths,o),p=(null!=s?s:c&&r.isDateDisplayed(c))?c:f,h=function(e){l(e)},g=Ae(),m=function(e,t){if(s){var n=Ct(s,{moveBy:e,direction:t,context:g,modifiers:o});i.isSameDay(s,n)||(r.goToDate(n,s),h(n))}},b={focusedDay:s,focusTarget:p,blur:function(){u(s),l(void 0)},focus:h,focusDayAfter:function(){return m("day","after")},focusDayBefore:function(){return m("day","before")},focusWeekAfter:function(){return m("week","after")},focusWeekBefore:function(){return m("week","before")},focusMonthBefore:function(){return m("month","before")},focusMonthAfter:function(){return m("month","after")},focusYearBefore:function(){return m("year","before")},focusYearAfter:function(){return m("year","after")},focusStartOfWeek:function(){return m("startOfWeek","before")},focusEndOfWeek:function(){return m("endOfWeek","after")}};return e.jsx(Ot.Provider,{value:b,children:t.children})}function jt(){var e=n.useContext(Ot);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var St=n.createContext(void 0);function Et(t){if(!je(t.initialProps)){var n={selected:void 0};return e.jsx(St.Provider,{value:n,children:t.children})}return e.jsx(Pt,{initialProps:t.initialProps,children:t.children})}function Pt(t){var n=t.initialProps,r=t.children,o={selected:n.selected,onDayClick:function(e,t,r){var o,a,i;null===(o=n.onDayClick)||void 0===o||o.call(n,e,t,r),!t.selected||n.required?null===(i=n.onSelect)||void 0===i||i.call(n,e,e,t,r):null===(a=n.onSelect)||void 0===a||a.call(n,void 0,e,t,r)}};return e.jsx(St.Provider,{value:o,children:r})}function It(){var e=n.useContext(St);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function Nt(e,t){var n=[e.classNames.day];return Object.keys(t).forEach((function(t){var r=e.modifiersClassNames[t];if(r)n.push(r);else if(function(e){return Object.values(rt).includes(e)}(t)){var o=e.classNames["day_".concat(t)];o&&n.push(o)}})),n}function At(t,r,o){var a,s,l,d=Ae(),c=jt(),u=function(e,t){return xt(e,yt(),t)}(t,r),f=function(e,t){var n=Ae(),r=It(),o=nt(),a=st(),i=jt(),s=i.focusDayAfter,l=i.focusDayBefore,d=i.focusWeekAfter,c=i.focusWeekBefore,u=i.blur,f=i.focus,p=i.focusMonthBefore,h=i.focusMonthAfter,g=i.focusYearBefore,m=i.focusYearAfter,b=i.focusStartOfWeek,v=i.focusEndOfWeek,y={onClick:function(i){var s,l,d,c;je(n)?null===(s=r.onDayClick)||void 0===s||s.call(r,e,t,i):Oe(n)?null===(l=o.onDayClick)||void 0===l||l.call(o,e,t,i):ke(n)?null===(d=a.onDayClick)||void 0===d||d.call(a,e,t,i):null===(c=n.onDayClick)||void 0===c||c.call(n,e,t,i)},onFocus:function(r){var o;f(e),null===(o=n.onDayFocus)||void 0===o||o.call(n,e,t,r)},onBlur:function(r){var o;u(),null===(o=n.onDayBlur)||void 0===o||o.call(n,e,t,r)},onKeyDown:function(r){var o;switch(r.key){case"ArrowLeft":r.preventDefault(),r.stopPropagation(),"rtl"===n.dir?s():l();break;case"ArrowRight":r.preventDefault(),r.stopPropagation(),"rtl"===n.dir?l():s();break;case"ArrowDown":r.preventDefault(),r.stopPropagation(),d();break;case"ArrowUp":r.preventDefault(),r.stopPropagation(),c();break;case"PageUp":r.preventDefault(),r.stopPropagation(),r.shiftKey?g():p();break;case"PageDown":r.preventDefault(),r.stopPropagation(),r.shiftKey?m():h();break;case"Home":r.preventDefault(),r.stopPropagation(),b();break;case"End":r.preventDefault(),r.stopPropagation(),v()}null===(o=n.onDayKeyDown)||void 0===o||o.call(n,e,t,r)},onKeyUp:function(r){var o;null===(o=n.onDayKeyUp)||void 0===o||o.call(n,e,t,r)},onMouseEnter:function(r){var o;null===(o=n.onDayMouseEnter)||void 0===o||o.call(n,e,t,r)},onMouseLeave:function(r){var o;null===(o=n.onDayMouseLeave)||void 0===o||o.call(n,e,t,r)},onPointerEnter:function(r){var o;null===(o=n.onDayPointerEnter)||void 0===o||o.call(n,e,t,r)},onPointerLeave:function(r){var o;null===(o=n.onDayPointerLeave)||void 0===o||o.call(n,e,t,r)},onTouchCancel:function(r){var o;null===(o=n.onDayTouchCancel)||void 0===o||o.call(n,e,t,r)},onTouchEnd:function(r){var o;null===(o=n.onDayTouchEnd)||void 0===o||o.call(n,e,t,r)},onTouchMove:function(r){var o;null===(o=n.onDayTouchMove)||void 0===o||o.call(n,e,t,r)},onTouchStart:function(r){var o;null===(o=n.onDayTouchStart)||void 0===o||o.call(n,e,t,r)}};return y}(t,u),p=function(){var e=Ae(),t=It(),n=nt(),r=st();return je(e)?t.selected:Oe(e)?n.selected:ke(e)?r.selected:void 0}(),h=Boolean(d.onDayClick||"default"!==d.mode);n.useEffect((function(){var e;u.outside||c.focusedDay&&h&&i.isSameDay(c.focusedDay,t)&&(null===(e=o.current)||void 0===e||e.focus())}),[c.focusedDay,t,o,h,u.outside]);var g=Nt(d,u).join(" "),m=function(e,t){var n=we({},e.styles.day);return Object.keys(t).forEach((function(t){var r;n=we(we({},n),null===(r=e.modifiersStyles)||void 0===r?void 0:r[t])})),n}(d,u),b=Boolean(u.outside&&!d.showOutsideDays||u.hidden),v=null!==(l=null===(s=d.components)||void 0===s?void 0:s.DayContent)&&void 0!==l?l:Je,y={style:m,className:g,children:e.jsx(v,{date:t,displayMonth:r,activeModifiers:u}),role:"gridcell"},$=c.focusTarget&&i.isSameDay(c.focusTarget,t)&&!u.outside,x=c.focusedDay&&i.isSameDay(c.focusedDay,t),w=we(we(we({},y),((a={disabled:u.disabled,role:"gridcell"})["aria-selected"]=u.selected,a.tabIndex=x||$?0:-1,a)),f);return{isButton:h,isHidden:b,activeModifiers:u,selectedDays:p,buttonProps:w,divProps:y}}function Tt(t){var r=n.useRef(null),o=At(t.date,t.displayMonth,r);return o.isHidden?e.jsx("div",{role:"gridcell"}):o.isButton?e.jsx(We,we({name:"day",ref:r},o.buttonProps)):e.jsx("div",we({},o.divProps))}function Dt(t){var n=t.number,r=t.dates,o=Ae(),a=o.onWeekNumberClick,i=o.styles,s=o.classNames,l=o.locale,d=o.labels.labelWeekNumber,c=(0,o.formatters.formatWeekNumber)(Number(n),{locale:l});if(!a)return e.jsx("span",{className:s.weeknumber,style:i.weeknumber,children:c});var u=d(Number(n),{locale:l});return e.jsx(We,{name:"week-number","aria-label":u,className:s.weeknumber,style:i.weeknumber,onClick:function(e){a(n,r,e)},children:c})}function Ft(t){var n,r,o,a=Ae(),s=a.styles,l=a.classNames,d=a.showWeekNumber,c=a.components,u=null!==(n=null==c?void 0:c.Day)&&void 0!==n?n:Tt,f=null!==(r=null==c?void 0:c.WeekNumber)&&void 0!==r?r:Dt;return d&&(o=e.jsx("td",{className:l.cell,style:s.cell,children:e.jsx(f,{number:t.weekNumber,dates:t.dates})})),e.jsxs("tr",{className:l.row,style:s.row,children:[o,t.dates.map((function(n){return e.jsx("td",{className:l.cell,style:s.cell,role:"presentation",children:e.jsx(u,{displayMonth:t.displayMonth,date:n})},i.getUnixTime(n))}))]})}function Lt(e,t,n){for(var r=(null==n?void 0:n.ISOWeek)?i.endOfISOWeek(t):i.endOfWeek(t,n),o=(null==n?void 0:n.ISOWeek)?i.startOfISOWeek(e):i.startOfWeek(e,n),a=i.differenceInCalendarDays(r,o),s=[],l=0;l<=a;l++)s.push(i.addDays(o,l));var d=s.reduce((function(e,t){var r=(null==n?void 0:n.ISOWeek)?i.getISOWeek(t):i.getWeek(t,n),o=e.find((function(e){return e.weekNumber===r}));return o?(o.dates.push(t),e):(e.push({weekNumber:r,dates:[t]}),e)}),[]);return d}function Mt(t){var n,r,o,a=Ae(),s=a.locale,l=a.classNames,d=a.styles,c=a.hideHead,u=a.fixedWeeks,f=a.components,p=a.weekStartsOn,h=a.firstWeekContainsDate,g=a.ISOWeek,m=function(e,t){var n=Lt(i.startOfMonth(e),i.endOfMonth(e),t);if(null==t?void 0:t.useFixedWeeks){var r=i.getWeeksInMonth(e,t);if(r<6){var o=n[n.length-1],a=o.dates[o.dates.length-1],s=i.addWeeks(a,6-r),l=Lt(i.addWeeks(a,1),s,t);n.push.apply(n,l)}}return n}(t.displayMonth,{useFixedWeeks:Boolean(u),ISOWeek:g,locale:s,weekStartsOn:p,firstWeekContainsDate:h}),b=null!==(n=null==f?void 0:f.Head)&&void 0!==n?n:Ze,v=null!==(r=null==f?void 0:f.Row)&&void 0!==r?r:Ft,y=null!==(o=null==f?void 0:f.Footer)&&void 0!==o?o:Ke;return e.jsxs("table",{id:t.id,className:l.table,style:d.table,role:"grid","aria-labelledby":t["aria-labelledby"],children:[!c&&e.jsx(b,{}),e.jsx("tbody",{className:l.tbody,style:d.tbody,children:m.map((function(n){return e.jsx(v,{displayMonth:t.displayMonth,dates:n.dates,weekNumber:n.weekNumber},n.weekNumber)}))}),e.jsx(y,{displayMonth:t.displayMonth})]})}var Rt="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect,Bt=!1,_t=0;function zt(){return"react-day-picker-".concat(++_t)}function Ut(t){var r,o,a=Ae(),i=a.dir,s=a.classNames,l=a.styles,d=a.components,c=ze().displayMonths,u=function(e){var t,r=null!=e?e:Bt?zt():null,o=n.useState(r),a=o[0],i=o[1];return Rt((function(){null===a&&i(zt())}),[]),n.useEffect((function(){!1===Bt&&(Bt=!0)}),[]),null!==(t=null!=e?e:a)&&void 0!==t?t:void 0}(a.id?"".concat(a.id,"-").concat(t.displayIndex):void 0),f=a.id?"".concat(a.id,"-grid-").concat(t.displayIndex):void 0,p=[s.month],h=l.month,g=0===t.displayIndex,m=t.displayIndex===c.length-1,b=!g&&!m;"rtl"===i&&(m=(r=[g,m])[0],g=r[1]),g&&(p.push(s.caption_start),h=we(we({},h),l.caption_start)),m&&(p.push(s.caption_end),h=we(we({},h),l.caption_end)),b&&(p.push(s.caption_between),h=we(we({},h),l.caption_between));var v=null!==(o=null==d?void 0:d.Caption)&&void 0!==o?o:Ye;return e.jsxs("div",{className:p.join(" "),style:h,children:[e.jsx(v,{id:u,displayMonth:t.displayMonth,displayIndex:t.displayIndex}),e.jsx(Mt,{id:f,"aria-labelledby":u,displayMonth:t.displayMonth})]},t.displayIndex)}function Gt(t){var n=Ae(),r=n.classNames,o=n.styles;return e.jsx("div",{className:r.months,style:o.months,children:t.children})}function Ht(t){var r,o,a=t.initialProps,i=Ae(),s=jt(),l=ze(),d=n.useState(!1),c=d[0],u=d[1];n.useEffect((function(){i.initialFocus&&s.focusTarget&&(c||(s.focus(s.focusTarget),u(!0)))}),[i.initialFocus,c,s.focus,s.focusTarget,s]);var f=[i.classNames.root,i.className];i.numberOfMonths>1&&f.push(i.classNames.multiple_months),i.showWeekNumber&&f.push(i.classNames.with_weeknumber);var p=we(we({},i.styles.root),i.style),h=Object.keys(a).filter((function(e){return e.startsWith("data-")})).reduce((function(e,t){var n;return we(we({},e),((n={})[t]=a[t],n))}),{}),g=null!==(o=null===(r=a.components)||void 0===r?void 0:r.Months)&&void 0!==o?o:Gt;return e.jsx("div",we({className:f.join(" "),style:p,dir:i.dir,id:i.id,nonce:a.nonce,title:a.title,lang:a.lang},h,{children:e.jsx(g,{children:l.displayMonths.map((function(t,n){return e.jsx(Ut,{displayIndex:n,displayMonth:t},n)}))})}))}function Wt(t){var n=t.children,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["children"]);return e.jsx(Ne,{initialProps:r,children:e.jsx(_e,{children:e.jsx(Et,{initialProps:r,children:e.jsx(et,{initialProps:r,children:e.jsx(at,{initialProps:r,children:e.jsx(vt,{children:e.jsx(kt,{children:n})})})})})})})}function qt(t){return e.jsx(Wt,we({},t,{children:e.jsx(Ht,{initialProps:t})}))}const Vt=y.default.div`
|
|
406
397
|
position: absolute;
|
|
407
398
|
z-index: 1;
|
|
408
399
|
background: white;
|
|
@@ -412,28 +403,28 @@
|
|
|
412
403
|
|
|
413
404
|
.rdp {
|
|
414
405
|
--rdp-cell-size: ${D(36)};
|
|
415
|
-
--rdp-caption-font-size: ${
|
|
406
|
+
--rdp-caption-font-size: ${R.base};
|
|
416
407
|
--rdp-accent-color: ${T.green.base};
|
|
417
408
|
--rdp-background-color: ${T.terracota.base};
|
|
418
409
|
--rdp-accent-color-dark: ${T.terracota.base};
|
|
419
410
|
--rdp-background-color-dark: ${T.dark.base};
|
|
420
411
|
margin: ${D(8)};
|
|
421
412
|
}
|
|
422
|
-
`,
|
|
413
|
+
`,Yt=({date:t,disabledDays:n,locale:r,onDateChange:o})=>{const a=new Date;return e.jsx(Vt,{"data-test":"date-picker",children:e.jsx(qt,Object.assign({mode:"single",disabled:n,locale:r,onSelect:e=>o(e||null),today:a},t&&{selected:t}))})},Kt=y.default.div`
|
|
423
414
|
position: relative;
|
|
424
415
|
z-index: ${({isOpen:e})=>e?1:0};
|
|
425
416
|
|
|
426
|
-
${
|
|
417
|
+
${Vt} {
|
|
427
418
|
top: ${D(60)};
|
|
428
419
|
}
|
|
429
|
-
`,
|
|
420
|
+
`,Xt=y.default.div`
|
|
430
421
|
position: relative;
|
|
431
422
|
|
|
432
|
-
${
|
|
423
|
+
${Vt} {
|
|
433
424
|
display: inline-block;
|
|
434
425
|
position: relative;
|
|
435
426
|
}
|
|
436
|
-
`;var
|
|
427
|
+
`;var Zt,Jt,Qt;exports.EnergyLevel=void 0,(Zt=exports.EnergyLevel||(exports.EnergyLevel={}))[Zt.A=1]="A",Zt[Zt.B=2]="B",Zt[Zt.C=3]="C",Zt[Zt.D=4]="D",Zt[Zt.E=5]="E",Zt[Zt.F=6]="F",Zt[Zt.G=7]="G",function(e){e.A="#32B982",e.B="#5ED44A",e.C="#B3CA41",e.D="#DCC646",e.E="#DB9C38",e.F="#D46B3B",e.G="#CF2D25"}(Jt||(Jt={})),function(e){e.A="#ac57ed",e.B="#a140ea",e.C="#9529e8",e.D="#8918df",e.E="#7b16c8",e.F="#6d13b1",e.G="#5f119a"}(Qt||(Qt={}));const en=new Date("07/01/2021"),tn=e=>{switch(e){case exports.EnergyLevel.A:return Jt.A;case exports.EnergyLevel.B:return Jt.B;case exports.EnergyLevel.C:return Jt.C;case exports.EnergyLevel.D:return Jt.D;case exports.EnergyLevel.E:return Jt.E;case exports.EnergyLevel.F:return Jt.F;default:return Jt.G}},nn=e=>{switch(e){case exports.EnergyLevel.A:return Qt.A;case exports.EnergyLevel.B:return Qt.B;case exports.EnergyLevel.C:return Qt.C;case exports.EnergyLevel.D:return Qt.D;case exports.EnergyLevel.E:return Qt.E;case exports.EnergyLevel.F:return Qt.F;default:return Qt.G}},rn=(e,t)=>$.default(t,en)?e<=50?exports.EnergyLevel.A:e<91?exports.EnergyLevel.B:e<151?exports.EnergyLevel.C:e<231?exports.EnergyLevel.D:e<331?exports.EnergyLevel.E:e<451?exports.EnergyLevel.F:exports.EnergyLevel.G:e<70?exports.EnergyLevel.A:e<=110?exports.EnergyLevel.B:e<=180?exports.EnergyLevel.C:e<=250?exports.EnergyLevel.D:e<=330?exports.EnergyLevel.E:e<=420?exports.EnergyLevel.F:exports.EnergyLevel.G,on=(e,t)=>$.default(t,en)?e<6?exports.EnergyLevel.A:e<=10?exports.EnergyLevel.B:e<=20?exports.EnergyLevel.C:e<=35?exports.EnergyLevel.D:e<=55?exports.EnergyLevel.E:e<80?exports.EnergyLevel.F:exports.EnergyLevel.G:e<6?exports.EnergyLevel.A:e<=11?exports.EnergyLevel.B:e<=30?exports.EnergyLevel.C:e<=50?exports.EnergyLevel.D:e<=70?exports.EnergyLevel.E:e<=100?exports.EnergyLevel.F:exports.EnergyLevel.G,an=(e,t,n)=>$.default(n,en)||e>t?e:t,sn=(e,t,n,r=!1)=>`linear-gradient(${r?45:135}deg, transparent 0px, transparent ${t}px, ${e} ${t}px, ${e} ${n}px, transparent ${n}px)`,ln=y.default.div`
|
|
437
428
|
display: flex;
|
|
438
429
|
flex-direction: column;
|
|
439
430
|
width: 100%;
|
|
@@ -442,30 +433,30 @@
|
|
|
442
433
|
@media print, (min-width: ${P.base}px) {
|
|
443
434
|
flex-direction: row;
|
|
444
435
|
}
|
|
445
|
-
`,
|
|
436
|
+
`,dn=y.default.span`
|
|
446
437
|
${Z.tab};
|
|
447
438
|
|
|
448
|
-
font-size: ${
|
|
449
|
-
`,
|
|
439
|
+
font-size: ${R.small};
|
|
440
|
+
`,cn=y.default(dn)`
|
|
450
441
|
display: block;
|
|
451
442
|
text-align: center;
|
|
452
|
-
`,
|
|
443
|
+
`,un=y.default.div`
|
|
453
444
|
position: relative;
|
|
454
445
|
margin: ${D(24)} 0;
|
|
455
446
|
width: ${D(250)};
|
|
456
447
|
height: ${D(25)};
|
|
457
|
-
background: ${()=>((e,t)=>{const n=Object.values(e);return n.reduce(((e,r)=>{const o=n.indexOf(r),a=Math.floor(1.4*t),i=a+(o-1)*t,s=i+t,l=
|
|
448
|
+
background: ${()=>((e,t)=>{const n=Object.values(e);return n.reduce(((e,r)=>{const o=n.indexOf(r),a=Math.floor(1.4*t),i=a+(o-1)*t,s=i+t,l=sn(r,i,s);if(0===o){const t=sn(r,0,a);e.unshift(t)}if(o===n.length-1){const n=a+o*t,s=n+t,d=sn(r,i,a+(o-1)*t+t,!0),c=sn("white",n,s,!0),u=sn("white",n,s);e.unshift(c,u,d,l)}else{const t=sn(r,i,s,!0);e.unshift(t,l)}return e}),[]).join(",")})(Jt,25)};
|
|
458
449
|
|
|
459
450
|
@media print, (min-width: ${P.base}px) {
|
|
460
451
|
margin: ${D(52)} 0 0 0;
|
|
461
452
|
}
|
|
462
|
-
`,
|
|
453
|
+
`,fn=y.default.span`
|
|
463
454
|
padding: ${D(6)} ${D(8)};
|
|
464
455
|
border: ${D(2)} solid white;
|
|
465
456
|
border-radius: ${J.normal};
|
|
466
457
|
background-color: ${({background:e})=>e};
|
|
467
458
|
color: white;
|
|
468
|
-
font-size: ${
|
|
459
|
+
font-size: ${R.smaller};
|
|
469
460
|
|
|
470
461
|
${({isMainScore:e,letterSize:t,pos:n})=>e&&t&&o.css`
|
|
471
462
|
position: absolute;
|
|
@@ -475,7 +466,7 @@
|
|
|
475
466
|
${D(Math.floor(.6*t))};
|
|
476
467
|
text-align: center;
|
|
477
468
|
border-radius: ${J.bigger};
|
|
478
|
-
font-size: ${
|
|
469
|
+
font-size: ${R.big};
|
|
479
470
|
`};
|
|
480
471
|
|
|
481
472
|
//dashed line
|
|
@@ -501,28 +492,28 @@
|
|
|
501
492
|
}
|
|
502
493
|
`}
|
|
503
494
|
}
|
|
504
|
-
`,
|
|
495
|
+
`,pn=y.default.span`
|
|
505
496
|
${Z.tab};
|
|
506
497
|
display: block;
|
|
507
|
-
font-size: ${
|
|
498
|
+
font-size: ${R.smallest};
|
|
508
499
|
color: ${T.grey.base};
|
|
509
500
|
text-transform: uppercase;
|
|
510
|
-
|
|
501
|
+
`,hn=y.default.span`
|
|
511
502
|
display: flex;
|
|
512
503
|
justify-content: space-between;
|
|
513
504
|
align-items: center;
|
|
514
505
|
padding: ${D(16)} 0;
|
|
515
|
-
`,
|
|
506
|
+
`,gn=y.default.div`
|
|
516
507
|
min-width: ${D(128)};
|
|
517
508
|
width: 50%;
|
|
518
509
|
padding: 0 ${D(16)} ${D(18)};
|
|
519
|
-
`,
|
|
510
|
+
`,mn=y.default.div`
|
|
520
511
|
display: flex;
|
|
521
512
|
position: relative;
|
|
522
513
|
width: 40%;
|
|
523
514
|
max-width: ${D(300)};
|
|
524
515
|
|
|
525
|
-
${
|
|
516
|
+
${gn} + ${gn} {
|
|
526
517
|
position: relative;
|
|
527
518
|
|
|
528
519
|
::before {
|
|
@@ -566,16 +557,16 @@
|
|
|
566
557
|
width: ${D(316)};
|
|
567
558
|
}
|
|
568
559
|
}
|
|
569
|
-
`,
|
|
560
|
+
`,bn=y.default.span`
|
|
570
561
|
font-size: ${D(30)};
|
|
571
562
|
font-weight: bold;
|
|
572
|
-
`,
|
|
573
|
-
font-size: ${
|
|
574
|
-
`,
|
|
563
|
+
`,vn=y.default.span`
|
|
564
|
+
font-size: ${R.smaller};
|
|
565
|
+
`,yn=y.default.div`
|
|
575
566
|
${Z.bodyLight2};
|
|
576
567
|
color: ${T.red.base};
|
|
577
568
|
margin-top: ${D(8)};
|
|
578
|
-
|
|
569
|
+
`,$n=({children:t,dataTest:n})=>e.jsx(yn,{className:"error","data-test":`error-${n}`,children:t});xe(':root{--PhoneInput-color--focus:#03b2cb;--PhoneInputInternationalIconPhone-opacity:0.8;--PhoneInputInternationalIconGlobe-opacity:0.65;--PhoneInputCountrySelect-marginRight:0.35em;--PhoneInputCountrySelectArrow-width:0.3em;--PhoneInputCountrySelectArrow-marginLeft:var(--PhoneInputCountrySelect-marginRight);--PhoneInputCountrySelectArrow-borderWidth:1px;--PhoneInputCountrySelectArrow-opacity:0.45;--PhoneInputCountrySelectArrow-color:currentColor;--PhoneInputCountrySelectArrow-color--focus:var(--PhoneInput-color--focus);--PhoneInputCountrySelectArrow-transform:rotate(45deg);--PhoneInputCountryFlag-aspectRatio:1.5;--PhoneInputCountryFlag-height:1em;--PhoneInputCountryFlag-borderWidth:1px;--PhoneInputCountryFlag-borderColor:rgba(0,0,0,.5);--PhoneInputCountryFlag-borderColor--focus:var(--PhoneInput-color--focus);--PhoneInputCountryFlag-backgroundColor--loading:rgba(0,0,0,.1)}.PhoneInput{align-items:center;display:flex}.PhoneInputInput{flex:1;min-width:0}.PhoneInputCountryIcon{height:var(--PhoneInputCountryFlag-height);width:calc(var(--PhoneInputCountryFlag-height)*var(--PhoneInputCountryFlag-aspectRatio))}.PhoneInputCountryIcon--square{width:var(--PhoneInputCountryFlag-height)}.PhoneInputCountryIcon--border{background-color:var(--PhoneInputCountryFlag-backgroundColor--loading);box-shadow:0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor),inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor)}.PhoneInputCountryIconImg{display:block;height:100%;width:100%}.PhoneInputInternationalIconPhone{opacity:var(--PhoneInputInternationalIconPhone-opacity)}.PhoneInputInternationalIconGlobe{opacity:var(--PhoneInputInternationalIconGlobe-opacity)}.PhoneInputCountry{align-items:center;align-self:stretch;display:flex;margin-right:var(--PhoneInputCountrySelect-marginRight);position:relative}.PhoneInputCountrySelect{border:0;cursor:pointer;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:1}.PhoneInputCountrySelect[disabled],.PhoneInputCountrySelect[readonly]{cursor:default}.PhoneInputCountrySelectArrow{border-bottom-width:var(--PhoneInputCountrySelectArrow-borderWidth);border-color:var(--PhoneInputCountrySelectArrow-color);border-left-width:0;border-right-width:var(--PhoneInputCountrySelectArrow-borderWidth);border-style:solid;border-top-width:0;content:"";display:block;height:var(--PhoneInputCountrySelectArrow-width);margin-left:var(--PhoneInputCountrySelectArrow-marginLeft);opacity:var(--PhoneInputCountrySelectArrow-opacity);transform:var(--PhoneInputCountrySelectArrow-transform);width:var(--PhoneInputCountrySelectArrow-width)}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon+.PhoneInputCountrySelectArrow{color:var(--PhoneInputCountrySelectArrow-color--focus);opacity:1}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon--border{box-shadow:0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus),inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus)}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon .PhoneInputInternationalIconGlobe{color:var(--PhoneInputCountrySelectArrow-color--focus);opacity:1}');var xn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function wn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cn,On={exports:{}},kn={exports:{}},jn={};var Sn,En,Pn,In,Nn,An,Tn,Dn,Fn,Ln,Mn,Rn,Bn,_n,zn={};
|
|
579
570
|
/** @license React v16.13.1
|
|
580
571
|
* react-is.development.js
|
|
581
572
|
*
|
|
@@ -583,18 +574,18 @@
|
|
|
583
574
|
*
|
|
584
575
|
* This source code is licensed under the MIT license found in the
|
|
585
576
|
* LICENSE file in the root directory of this source tree.
|
|
586
|
-
*/function
|
|
577
|
+
*/function Un(){return En||(En=1,"production"===process.env.NODE_ENV?kn.exports=function(){if(Cn)return jn;Cn=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case d:case r:case a:case o:case u:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case p:case i:return e;default:return f}}case n:return f}}}function $(e){return y(e)===d}return jn.AsyncMode=l,jn.ConcurrentMode=d,jn.ContextConsumer=s,jn.ContextProvider=i,jn.Element=t,jn.ForwardRef=c,jn.Fragment=r,jn.Lazy=h,jn.Memo=p,jn.Portal=n,jn.Profiler=a,jn.StrictMode=o,jn.Suspense=u,jn.isAsyncMode=function(e){return $(e)||y(e)===l},jn.isConcurrentMode=$,jn.isContextConsumer=function(e){return y(e)===s},jn.isContextProvider=function(e){return y(e)===i},jn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},jn.isForwardRef=function(e){return y(e)===c},jn.isFragment=function(e){return y(e)===r},jn.isLazy=function(e){return y(e)===h},jn.isMemo=function(e){return y(e)===p},jn.isPortal=function(e){return y(e)===n},jn.isProfiler=function(e){return y(e)===a},jn.isStrictMode=function(e){return y(e)===o},jn.isSuspense=function(e){return y(e)===u},jn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===d||e===a||e===o||e===u||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===i||e.$$typeof===s||e.$$typeof===c||e.$$typeof===m||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g)},jn.typeOf=y,jn}():kn.exports=(Sn||(Sn=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var g=e.type;switch(g){case l:case d:case r:case a:case o:case u:return g;default:var m=g&&g.$$typeof;switch(m){case s:case c:case h:case p:case i:return m;default:return f}}case n:return f}}}var $=l,x=d,w=s,C=i,O=t,k=c,j=r,S=h,E=p,P=n,I=a,N=o,A=u,T=!1;function D(e){return y(e)===d}zn.AsyncMode=$,zn.ConcurrentMode=x,zn.ContextConsumer=w,zn.ContextProvider=C,zn.Element=O,zn.ForwardRef=k,zn.Fragment=j,zn.Lazy=S,zn.Memo=E,zn.Portal=P,zn.Profiler=I,zn.StrictMode=N,zn.Suspense=A,zn.isAsyncMode=function(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(e)||y(e)===l},zn.isConcurrentMode=D,zn.isContextConsumer=function(e){return y(e)===s},zn.isContextProvider=function(e){return y(e)===i},zn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},zn.isForwardRef=function(e){return y(e)===c},zn.isFragment=function(e){return y(e)===r},zn.isLazy=function(e){return y(e)===h},zn.isMemo=function(e){return y(e)===p},zn.isPortal=function(e){return y(e)===n},zn.isProfiler=function(e){return y(e)===a},zn.isStrictMode=function(e){return y(e)===o},zn.isSuspense=function(e){return y(e)===u},zn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===d||e===a||e===o||e===u||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===i||e.$$typeof===s||e.$$typeof===c||e.$$typeof===m||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g)},zn.typeOf=y}()),zn)),kn.exports}
|
|
587
578
|
/*
|
|
588
579
|
object-assign
|
|
589
580
|
(c) Sindre Sorhus
|
|
590
581
|
@license MIT
|
|
591
|
-
*/function Kn(){if(Ln)return Fn;Ln=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Fn=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var a,i,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var d in a=Object(arguments[l]))t.call(a,d)&&(s[d]=a[d]);if(e){i=e(a);for(var c=0;c<i.length;c++)n.call(a,i[c])&&(s[i[c]]=a[i[c]])}}return s},Fn}function Xn(){if(Mn)return Rn;Mn=1;return Rn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Zn(){return Bn?_n:(Bn=1,_n=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Jn=Yn();In.exports=function(){if(Wn)return Gn;Wn=1;var e=Yn(),t=Kn(),n=Xn(),r=Zn(),o=function(){if(Un)return zn;Un=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Xn(),n={},r=Zn();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,a,i,s,l){if("production"!==process.env.NODE_ENV)for(var d in o)if(r(o,d)){var c;try{if("function"!=typeof o[d]){var u=Error((s||"React class")+": "+i+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}c=o[d](a,d,s,i,null,t)}catch(e){c=e}if(!c||c instanceof Error||e((s||"React class")+": type specification of "+i+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var f=l?l():"";e("Failed "+i+" type: "+c.message+(null!=f?f:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},zn=o}(),a=function(){};function i(){return null}return"production"!==process.env.NODE_ENV&&(a=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Gn=function(s,l){var d="function"==typeof Symbol&&Symbol.iterator,c="@@iterator",u="<<anonymous>>",f={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:g(i),arrayOf:function(e){return g((function(t,r,o,a,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new h("Invalid "+a+" `"+i+"` of type `"+v(s)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<s.length;l++){var d=e(s,l,o,a,i+"["+l+"]",n);if(d instanceof Error)return d}return null}))},element:g((function(e,t,n,r,o){var a=e[t];return s(a)?null:new h("Invalid "+r+" `"+o+"` of type `"+v(a)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:g((function(t,n,r,o,a){var i=t[n];return e.isValidElementType(i)?null:new h("Invalid "+o+" `"+a+"` of type `"+v(i)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(t,n,r,o,a){if(!(t[n]instanceof e)){var i=e.name||u;return new h("Invalid "+o+" `"+a+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+i+"`.")}var s;return null}))},node:g((function(e,t,n,r,o){return y(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,o,a,i,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var l=t[o],d=v(l);if("object"!==d)return new h("Invalid "+i+" `"+s+"` of type `"+d+"` supplied to `"+a+"`, expected an object.");for(var c in l)if(r(l,c)){var u=e(l,c,a,i,s+"."+c,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,o,a){for(var i=t[n],s=0;s<e.length;s++)if(p(i,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===$(t)?String(t):t}));return new h("Invalid "+o+" `"+a+"` of value `"+String(i)+"` supplied to `"+r+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&a(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),i)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),i}return g((function(t,o,a,i,s){for(var l=[],d=0;d<e.length;d++){var c=(0,e[d])(t,o,a,i,s,n);if(null==c)return null;c.data&&r(c.data,"expectedType")&&l.push(c.data.expectedType)}return new h("Invalid "+i+" `"+s+"` supplied to `"+a+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(t,r,o,a,i){var s=t[r],l=v(s);if("object"!==l)return new h("Invalid "+a+" `"+i+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var d in e){var c=e[d];if("function"!=typeof c)return b(o,a,i,d,$(c));var u=c(s,d,o,a,i+"."+d,n);if(u)return u}return null}))},exact:function(e){return g((function(o,a,i,s,l){var d=o[a],c=v(d);if("object"!==c)return new h("Invalid "+s+" `"+l+"` of type `"+c+"` supplied to `"+i+"`, expected `object`.");var u=t({},o[a],e);for(var f in u){var p=e[f];if(r(e,f)&&"function"!=typeof p)return b(i,s,l,f,$(p));if(!p)return new h("Invalid "+s+" `"+l+"` key `"+f+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(o[a],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=p(d,f,i,s,l+"."+f,n);if(g)return g}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,i,s,d,c,f,p){if(d=d||u,f=f||s,p!==n){if(l){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=d+":"+s;!t[m]&&r<3&&(a("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+d+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[m]=!0,r++)}}return null==i[s]?o?null===i[s]?new h("The "+c+" `"+f+"` is marked as required in `"+d+"`, but its value is `null`."):new h("The "+c+" `"+f+"` is marked as required in `"+d+"`, but its value is `undefined`."):null:e(i,s,d,c,f)}var i=o.bind(null,!1);return i.isRequired=o.bind(null,!0),i}function m(e){return g((function(t,n,r,o,a,i){var s=t[n];return v(s)!==e?new h("Invalid "+o+" `"+a+"` of type `"+$(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function b(e,t,n,r,o){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||s(e))return!0;var t=function(e){var t=e&&(d&&e[d]||e[c]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function $(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=$(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f},Gn}()(Jn.isElement,!0)}else In.exports=function(){if(Vn)return Hn;Vn=1;var e=Xn();function t(){}function n(){}return n.resetWarningCache=t,Hn=function(){function r(t,n,r,o,a,i){if(i!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a}}()();var Qn,er=In.exports,tr=En(er),nr={exports:{}};
|
|
582
|
+
*/function Gn(){if(In)return Pn;In=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Pn=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var a,i,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var d in a=Object(arguments[l]))t.call(a,d)&&(s[d]=a[d]);if(e){i=e(a);for(var c=0;c<i.length;c++)n.call(a,i[c])&&(s[i[c]]=a[i[c]])}}return s},Pn}function Hn(){if(An)return Nn;An=1;return Nn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Wn(){return Dn?Tn:(Dn=1,Tn=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var qn=Un();On.exports=function(){if(Rn)return Mn;Rn=1;var e=Un(),t=Gn(),n=Hn(),r=Wn(),o=function(){if(Ln)return Fn;Ln=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Hn(),n={},r=Wn();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,a,i,s,l){if("production"!==process.env.NODE_ENV)for(var d in o)if(r(o,d)){var c;try{if("function"!=typeof o[d]){var u=Error((s||"React class")+": "+i+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}c=o[d](a,d,s,i,null,t)}catch(e){c=e}if(!c||c instanceof Error||e((s||"React class")+": type specification of "+i+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var f=l?l():"";e("Failed "+i+" type: "+c.message+(null!=f?f:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Fn=o}(),a=function(){};function i(){return null}return"production"!==process.env.NODE_ENV&&(a=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Mn=function(s,l){var d="function"==typeof Symbol&&Symbol.iterator,c="@@iterator",u="<<anonymous>>",f={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:g(i),arrayOf:function(e){return g((function(t,r,o,a,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new h("Invalid "+a+" `"+i+"` of type `"+y(s)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<s.length;l++){var d=e(s,l,o,a,i+"["+l+"]",n);if(d instanceof Error)return d}return null}))},element:g((function(e,t,n,r,o){var a=e[t];return s(a)?null:new h("Invalid "+r+" `"+o+"` of type `"+y(a)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:g((function(t,n,r,o,a){var i=t[n];return e.isValidElementType(i)?null:new h("Invalid "+o+" `"+a+"` of type `"+y(i)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(t,n,r,o,a){if(!(t[n]instanceof e)){var i=e.name||u;return new h("Invalid "+o+" `"+a+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+i+"`.")}var s;return null}))},node:g((function(e,t,n,r,o){return v(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,o,a,i,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var l=t[o],d=y(l);if("object"!==d)return new h("Invalid "+i+" `"+s+"` of type `"+d+"` supplied to `"+a+"`, expected an object.");for(var c in l)if(r(l,c)){var u=e(l,c,a,i,s+"."+c,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,o,a){for(var i=t[n],s=0;s<e.length;s++)if(p(i,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===$(t)?String(t):t}));return new h("Invalid "+o+" `"+a+"` of value `"+String(i)+"` supplied to `"+r+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&a(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),i)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),i}return g((function(t,o,a,i,s){for(var l=[],d=0;d<e.length;d++){var c=(0,e[d])(t,o,a,i,s,n);if(null==c)return null;c.data&&r(c.data,"expectedType")&&l.push(c.data.expectedType)}return new h("Invalid "+i+" `"+s+"` supplied to `"+a+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(t,r,o,a,i){var s=t[r],l=y(s);if("object"!==l)return new h("Invalid "+a+" `"+i+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var d in e){var c=e[d];if("function"!=typeof c)return b(o,a,i,d,$(c));var u=c(s,d,o,a,i+"."+d,n);if(u)return u}return null}))},exact:function(e){return g((function(o,a,i,s,l){var d=o[a],c=y(d);if("object"!==c)return new h("Invalid "+s+" `"+l+"` of type `"+c+"` supplied to `"+i+"`, expected `object`.");var u=t({},o[a],e);for(var f in u){var p=e[f];if(r(e,f)&&"function"!=typeof p)return b(i,s,l,f,$(p));if(!p)return new h("Invalid "+s+" `"+l+"` key `"+f+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(o[a],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=p(d,f,i,s,l+"."+f,n);if(g)return g}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,i,s,d,c,f,p){if(d=d||u,f=f||s,p!==n){if(l){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=d+":"+s;!t[m]&&r<3&&(a("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+d+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[m]=!0,r++)}}return null==i[s]?o?null===i[s]?new h("The "+c+" `"+f+"` is marked as required in `"+d+"`, but its value is `null`."):new h("The "+c+" `"+f+"` is marked as required in `"+d+"`, but its value is `undefined`."):null:e(i,s,d,c,f)}var i=o.bind(null,!1);return i.isRequired=o.bind(null,!0),i}function m(e){return g((function(t,n,r,o,a,i){var s=t[n];return y(s)!==e?new h("Invalid "+o+" `"+a+"` of type `"+$(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function b(e,t,n,r,o){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||s(e))return!0;var t=function(e){var t=e&&(d&&e[d]||e[c]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function y(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function $(e){if(null==e)return""+e;var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=$(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f},Mn}()(qn.isElement,!0)}else On.exports=function(){if(_n)return Bn;_n=1;var e=Hn();function t(){}function n(){}return n.resetWarningCache=t,Bn=function(){function r(t,n,r,o,a,i){if(i!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a}}()();var Vn,Yn=On.exports,Kn=wn(Yn),Xn={exports:{}};
|
|
592
583
|
/*!
|
|
593
584
|
Copyright (c) 2018 Jed Watson.
|
|
594
585
|
Licensed under the MIT License (MIT), see
|
|
595
586
|
http://jedwatson.github.io/classnames
|
|
596
587
|
*/
|
|
597
|
-
Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var a in n)e.call(n,a)&&n[a]&&(o=r(o,a));return o}function r(e,t){return t?e?e+" "+t:e+t:e}Qn.exports?(t.default=t,Qn.exports=t):window.classNames=t}();var rr=nr.exports,or=En(rr);function ar(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ir(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ir(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ir(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sr(e,t){for(var n,r=0,o=ar(t.split(""));!(n=o()).done;){n.value===e&&r++}return r}function lr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return dr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function dr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!e)return function(e){return{text:e}};var r=sr(t,e);return function(o){if(!o)return{text:"",template:e};for(var a,i=0,s="",l=lr(e.split(""));!(a=l()).done;){var d=a.value;if(d===t){if(s+=o[i],++i===o.length&&o.length<r)break}else s+=d}return n&&(s=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" ",o=e.length,a=sr("(",e)-sr(")",e);a>0&&o<t.length;)e+=t[o].replace(n,r),")"===t[o]&&a--,o++;return e}(s,e)),{text:s,template:e}}}var ur={Backspace:8,Delete:46};function fr(e,t){void 0!==t&&(!function(){if("undefined"!=typeof navigator)return pr.test(navigator.userAgent)}()?e.setSelectionRange(t,t):setTimeout((function(){return e.setSelectionRange(t,t)}),0))}var pr=/Android/i;function hr(e,t,n,r,o){if(!t.hasAttribute("readonly")){var a=function(e){switch(e.keyCode){case ur.Backspace:return"Backspace";case ur.Delete:return"Delete"}}(e);switch(a){case"Delete":case"Backspace":e.preventDefault();var i=function(e){if(e.selectionStart!==e.selectionEnd)return{start:e.selectionStart,end:e.selectionEnd}}(t);return i?(function(e,t){var n=e.value;n=n.slice(0,t.start)+n.slice(t.end),e.value=n,fr(e,t.start)}(t,i),gr(t,n,r,void 0,o)):gr(t,n,r,a,o)}}}function gr(e,t,n,r,o){var a=function(e,t,n){for(var r={},o="",a=0,i=0;i<e.length;){var s=n(e[i],o,r);void 0!==s&&(o+=s,void 0!==t&&(t===i?a=o.length-1:t>i&&(a=o.length))),i++}return void 0===t&&(a=o.length),{value:o,caret:a}}(e.value,e.selectionStart,t),i=a.value,s=a.caret;if(r){var l=function(e,t,n){switch(n){case"Backspace":t>0&&(e=e.slice(0,t-1)+e.slice(t),t--);break;case"Delete":e=e.slice(0,t)+e.slice(t+1)}return{value:e,caret:t}}(i,s,r);i=l.value,s=l.caret}var d=function(e,t,n){"string"==typeof n&&(n=cr(n));var r=n(e)||{},o=r.text,a=r.template;if(void 0===o&&(o=e),a)if(void 0===t)t=o.length;else{for(var i=0,s=!1,l=-1;i<o.length&&i<a.length;){if(o[i]!==a[i]){if(0===t){s=!0,t=i;break}l=i,t--}i++}s||(t=l+1)}return{text:o,caret:t}}(i,s,n),c=d.text;s=d.caret,e.value=c,fr(e,s),o(i)}var mr=["value","parse","format","inputComponent","onChange","onKeyDown"];function br(){return br=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},br.apply(this,arguments)}function yr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function vr(e,t){var r=e.value,o=e.parse,a=e.format,i=e.inputComponent,s=e.onChange,l=e.onKeyDown,d=yr(e,mr),c=n.useRef(),u=n.useCallback((function(e){c.current=e,t&&("function"==typeof t?t(e):t.current=e)}),[t]),f=n.useCallback((function(e){gr(c.current,o,a,void 0,s)}),[c,o,a,s]),p=n.useCallback((function(e){return l&&l(e),hr(e,c.current,o,a,s)}),[c,o,a,s,l]);return y.default.createElement(i,br({},d,{ref:u,value:a(xr(r)?"":r).text,onKeyDown:p,onChange:f}))}(vr=y.default.forwardRef(vr)).propTypes={parse:tr.func.isRequired,format:tr.func.isRequired,inputComponent:tr.elementType.isRequired,type:tr.string.isRequired,value:tr.string,onChange:tr.func.isRequired,onKeyDown:tr.func,onCut:tr.func,onPaste:tr.func},vr.defaultProps={inputComponent:"input",type:"text"};var $r=vr;function xr(e){return null==e}function wr(e){return wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wr(e)}function Cr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Or(e){var t=Er();return function(){var n,r=Ir(e);if(t){var o=Ir(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===wr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return kr(e)}(this,n)}}function kr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jr(e){var t="function"==typeof Map?new Map:void 0;return jr=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Sr(e,arguments,Ir(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Pr(r,e)},jr(e)}function Sr(e,t,n){return Sr=Er()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Pr(o,n.prototype),o},Sr.apply(null,arguments)}function Er(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Pr(e,t){return Pr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pr(e,t)}function Ir(e){return Ir=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ir(e)}var Nr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pr(e,t)}(a,jr(Error));var t,n,r,o=Or(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=o.call(this,e),Object.setPrototypeOf(kr(t),a.prototype),t.name=t.constructor.name,t}return t=a,n&&Cr(t.prototype,n),r&&Cr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(),Ar=2,Tr=17,Dr=3,Fr="0-90-9٠-٩۰-۹",Lr="".concat("-‐-―−ー-").concat("//").concat("..").concat(" ").concat("()()[]\\[\\]").concat("~⁓∼~");function Rr(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),o=0;o<3;o++){var a=Number(n[o]),i=Number(r[o]);if(a>i)return 1;if(i>a)return-1;if(!isNaN(a)&&isNaN(i))return 1;if(isNaN(a)&&!isNaN(i))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var Mr={}.constructor;function _r(e){return null!=e&&e.constructor===Mr}function Br(e){return Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Br(e)}function zr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gr(e,t,n){return t&&Ur(e.prototype,t),n&&Ur(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Wr=" ext. ",Hr=/^\d+$/,Vr=function(){function e(t){zr(this,e),function(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!_r(e)||!_r(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(_r(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Jr(e)+": "+e,"."))}(t),this.metadata=t,to.call(this,t)}return Gr(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&Hr.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new qr(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new qr(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&1===r.length&&"001"===r[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),e}(),qr=function(){function e(t,n){zr(this,e),this.globalMetadataObject=n,this.metadata=t,to.call(this,n.metadata)}return Gr(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,t=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return t.map((function(t){return new Yr(t,e)}))}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&Zr(this.types(),e))return new Xr(Zr(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?Wr:this.metadata[13]||Wr}}]),e}(),Yr=function(){function e(t,n){zr(this,e),this._format=t,this.metadata=n}return Gr(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||Kr.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),Kr=/^\(?\$1\)?$/,Xr=function(){function e(t,n){zr(this,e),this.type=t,this.metadata=n}return Gr(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function Zr(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}var Jr=function(e){return Br(e)};function Qr(e,t){if((t=new Vr(t)).hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function eo(e,t){return t.countries.hasOwnProperty(e)}function to(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===Rr(t,"1.2.0")?this.v2=!0:-1===Rr(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}var no=function(e){return"([".concat(Fr,"]{1,").concat(e,"})")};function ro(e){var t="[ \\t,]*",n="[:\\..]?[ \\t,-]*",r="#?",o="[ \\t]*";return";ext="+no("20")+"|"+(t+"(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)"+n+no("20")+r)+"|"+(t+"(?:[xx##~~]|int|int)"+n+no("9")+r)+"|"+("[- ]+"+no("6")+"#")+"|"+(o+"(?:,{2}|;)"+n+no("15")+r)+"|"+(o+"(?:,)+"+n+no("9")+r)}var oo="["+Fr+"]{"+Ar+"}",ao="[++]{0,1}(?:["+Lr+"]*["+Fr+"]){3,}["+Lr+Fr+"]*",io=new RegExp("^[++]{0,1}(?:["+Lr+"]*["+Fr+"]){1,2}$","i"),so=ao+"(?:"+ro()+")?",lo=new RegExp("^"+oo+"$|^"+so+"$","i");var co=new RegExp("(?:"+ro()+")$","i");function uo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return fo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var po={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function ho(e){return po[e]}function go(e){for(var t,n="",r=uo(e.split(""));!(t=r()).done;){var o=ho(t.value);o&&(n+=o)}return n}function mo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return bo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yo(e){for(var t,n="",r=mo(e.split(""));!(t=r()).done;){n+=vo(t.value,n)||""}return n}function vo(e,t,n){return"+"===e?t?void("function"==typeof n&&n("end")):"+":ho(e)}function $o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return xo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wo(e,t){return Co(e,void 0,t)}function Co(e,t,n){var r=n.type(t),o=r&&r.possibleLengths()||n.possibleLengths();if(!o)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===t){if(!n.type("FIXED_LINE"))return Co(e,"MOBILE",n);var a=n.type("MOBILE");a&&(o=function(e,t){for(var n,r=e.slice(),o=$o(t);!(n=o()).done;){var a=n.value;e.indexOf(a)<0&&r.push(a)}return r.sort((function(e,t){return e-t}))}(o,a.possibleLengths()))}else if(t&&!r)return"INVALID_LENGTH";var i=e.length,s=o[0];return s===i?"IS_POSSIBLE":s>i?"TOO_SHORT":o[o.length-1]<i?"TOO_LONG":o.indexOf(i,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Oo(e,t){return"IS_POSSIBLE"===wo(e,t)}function ko(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function jo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return So(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return So(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function So(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Eo=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Po(e,t,n){if(t=t||{},e.country||e.countryCallingCode){(n=new Vr(n)).selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(ko(r,n.nationalNumberPattern())){if(Io(r,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":n.type("MOBILE")?Io(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var o,a=jo(Eo);!(o=a()).done;){var i=o.value;if(Io(r,i,n))return i}}}}function Io(e,t,n){return!(!(t=n.type(t))||!t.pattern())&&(!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&ko(e,t.pattern()))}function No(e,t,n){var r=new Vr(n).getCountryCodesForCallingCode(e);return r?r.filter((function(e){return function(e,t,n){var r=new Vr(n);if(r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0)return!0;return!1}(t,e,n)})):[]}function Ao(e){return e.replace(new RegExp("[".concat(Lr,"]+"),"g")," ").trim()}var To=/(\$\d)/;function Do(e,t,n){var r=n.useInternationalFormat,o=n.withNationalPrefix;n.carrierCode,n.metadata;var a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():o&&t.nationalPrefixFormattingRule()?t.format().replace(To,t.nationalPrefixFormattingRule()):t.format());return r?Ao(a):a}var Fo=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Lo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ro(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ro(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ro(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(n),!0).forEach((function(t){Bo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zo={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function Uo(e,t,n,r){if(n=n?_o(_o({},zo),n):zo,r=new Vr(r),e.country&&"001"!==e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)return e.phone||"";r.selectNumberingPlan(e.countryCallingCode)}var o,a=r.countryCallingCode(),i=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return i?Wo(o=Go(i,e.carrierCode,"NATIONAL",r,n),e.ext,r,n.formatExtension):"";case"INTERNATIONAL":return i?(o=Go(i,null,"INTERNATIONAL",r,n),Wo(o="+".concat(a," ").concat(o),e.ext,r,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(i);case"RFC3966":return function(e){var t=e.number,n=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}({number:"+".concat(a).concat(i),ext:e.ext});case"IDD":if(!n.fromCountry)return;var s=function(e,t,n,r,o){var a=Qr(r,o.metadata);if(a===n){var i=Go(e,t,"NATIONAL",o);return"1"===n?n+" "+i:i}var s=function(e,t,n){var r=new Vr(n);return r.selectNumberingPlan(e,t),r.defaultIDDPrefix()?r.defaultIDDPrefix():Fo.test(r.IDDPrefix())?r.IDDPrefix():void 0}(r,void 0,o.metadata);if(s)return"".concat(s," ").concat(n," ").concat(Go(e,null,"INTERNATIONAL",o))}(i,e.carrierCode,a,n.fromCountry,r);return Wo(s,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Go(e,t,n,r,o){var a=function(e,t){for(var n,r=Lo(e);!(n=r()).done;){var o=n.value;if(o.leadingDigitsPatterns().length>0){var a=o.leadingDigitsPatterns()[o.leadingDigitsPatterns().length-1];if(0!==t.search(a))continue}if(ko(t,o.pattern()))return o}}(r.formats(),e);return a?Do(e,a,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!o||!1!==o.nationalPrefix,carrierCode:t,metadata:r}):e}function Wo(e,t,n,r){return t?r(e,t,n):e}function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ho(Object(n),!0).forEach((function(t){qo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ko=function(){function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!n)throw new TypeError("`nationalNumber` not passed");if(!r)throw new TypeError("`metadata` not passed");var o=function(e,t){var n,r,o=new Vr(t);Xo(e)?(n=e,o.selectNumberingPlan(n),r=o.countryCallingCode()):r=e;return{country:n,countryCallingCode:r}}(t,r),a=o.country,i=o.countryCallingCode;this.country=a,this.countryCallingCode=i,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}var t,n,r;return t=e,n=[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:No(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function(e,t,n){if(void 0===t&&(t={}),n=new Vr(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return Oo(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return function(e,t,n){return t=t||{},(n=new Vr(n)).selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?void 0!==Po(e,t,n.metadata):ko(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new Vr(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return Po(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return Uo(this,e,t?Vo(Vo({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}],n&&Yo(t.prototype,n),r&&Yo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Xo=function(e){return/^[A-Z]{2}$/.test(e)};var Zo=new RegExp("(["+Fr+"])");function Jo(e,t,n,r){if(t){var o=new Vr(r);o.selectNumberingPlan(t,n);var a=new RegExp(o.IDDPrefix());if(0===e.search(a)){var i=(e=e.slice(e.match(a)[0].length)).match(Zo);if(!(i&&null!=i[1]&&i[1].length>0&&"0"===i[1]))return e}}}function Qo(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var o,a,i,s=r.length-1,l=s>0&&r[s];if(t.nationalPrefixTransformRule()&&l)o=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(a=r[1]);else{var d=r[0];o=e.slice(d.length),l&&(a=r[1])}if(l){var c=e.indexOf(r[1]);e.slice(0,c)===t.numberingPlan.nationalPrefix()&&(i=t.numberingPlan.nationalPrefix())}else i=r[0];return{nationalNumber:o,nationalPrefix:i,carrierCode:a}}}return{nationalNumber:e}}function ea(e,t){var n=Qo(e,t),r=n.carrierCode,o=n.nationalNumber;if(o!==e){if(!function(e,t,n){if(ko(e,n.nationalNumberPattern())&&!ko(t,n.nationalNumberPattern()))return!1;return!0}(e,o,t))return{nationalNumber:e};if(t.possibleLengths()&&!function(e,t){switch(wo(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(o,t))return{nationalNumber:e}}return{nationalNumber:o,carrierCode:r}}function ta(e,t,n,r){var o=t?Qr(t,r):n;if(0===e.indexOf(o)){(r=new Vr(r)).selectNumberingPlan(t,n);var a=e.slice(o.length),i=ea(a,r).nationalNumber,s=ea(e,r).nationalNumber;if(!ko(s,r.nationalNumberPattern())&&ko(i,r.nationalNumberPattern())||"TOO_LONG"===wo(s,r))return{countryCallingCode:o,number:a}}return{number:e}}function na(e,t,n,r){if(!e)return{};var o;if("+"!==e[0]){var a=Jo(e,t,n,r);if(!a||a===e){if(t||n){var i=ta(e,t,n,r),s=i.countryCallingCode,l=i.number;if(s)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:s,number:l}}return{number:e}}o=!0,e="+"+a}if("0"===e[1])return{};r=new Vr(r);for(var d=2;d-1<=Dr&&d<=e.length;){var c=e.slice(1,d);if(r.hasCallingCode(c))return r.selectNumberingPlan(c),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:c,number:e.slice(d)};d++}return{}}function ra(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return oa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oa(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function oa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aa(e,t){var n=t.countries,r=t.defaultCountry,o=t.metadata;o=new Vr(o);for(var a,i=[],s=ra(n);!(a=s()).done;){var l=a.value;if(o.country(l),o.leadingDigits()){if(e&&0===e.search(o.leadingDigits()))return l}else if(Po({phone:e,country:l},void 0,o.metadata)){if(!r)return l;if(l===r)return l;i.push(l)}}if(i.length>0)return i[0]}var ia=!1;function sa(e,t){var n=t.nationalNumber,r=t.defaultCountry,o=t.metadata;if(ia&&o.isNonGeographicCallingCode(e))return"001";var a=o.getCountryCodesForCallingCode(e);return a?1===a.length?a[0]:aa(n,{countries:a,defaultCountry:r,metadata:o.metadata}):void 0}var la="+",da="(["+Fr+"]|[\\-\\.\\(\\)]?)",ca=new RegExp("^\\"+la+da+"*["+Fr+"]"+da+"*$","g"),ua=new RegExp("^("+("["+Fr+"]+((\\-)*["+Fr+"])*")+"\\.)*"+("[a-zA-Z]+((\\-)*["+Fr+"])*")+"\\.?$","g"),fa="tel:",pa=";phone-context=",ha=";isub=";function ga(e,t){var n,r=t.extractFormattedPhoneNumber,o=function(e){var t=e.indexOf(pa);if(t<0)return null;var n=t+pa.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}(e);if(!function(e){return null===e||0!==e.length&&(ca.test(e)||ua.test(e))}(o))throw new Nr("NOT_A_NUMBER");if(null===o)n=r(e)||"";else{n="",o.charAt(0)===la&&(n+=o);var a,i=e.indexOf(fa);a=i>=0?i+fa.length:0;var s=e.indexOf(pa);n+=e.substring(a,s)}var l=n.indexOf(ha);if(l>0&&(n=n.substring(0,l)),""!==n)return n}var ma=250,ba=new RegExp("[++"+Fr+"]"),ya=new RegExp("[^"+Fr+"#]+$");function va(e,t,n){if(t=t||{},n=new Vr(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry)){if(t.v2)throw new Nr("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var r=function(e,t,n){var r=ga(e,{extractFormattedPhoneNumber:function(e){return function(e,t,n){if(!e)return;if(e.length>ma){if(n)throw new Nr("TOO_LONG");return}if(!1===t)return e;var r=e.search(ba);if(r<0)return;return e.slice(r).replace(ya,"")}(e,n,t)}});if(!r)return{};if(!function(e){return e.length>=Ar&&lo.test(e)}(r))return function(e){return io.test(e)}(r)?{error:"TOO_SHORT"}:{};var o=function(e){var t=e.search(co);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(co),o=1;o<r.length;){if(r[o])return{number:n,ext:r[o]};o++}}(r);if(o.ext)return o;return{number:r}}(e,t.v2,t.extract),o=r.number,a=r.ext,i=r.error;if(!o){if(t.v2){if("TOO_SHORT"===i)throw new Nr("TOO_SHORT");throw new Nr("NOT_A_NUMBER")}return{}}var s=function(e,t,n,r){var o,a=na(yo(e),t,n,r.metadata),i=a.countryCallingCodeSource,s=a.countryCallingCode,l=a.number;if(s)r.selectNumberingPlan(s);else{if(!l||!t&&!n)return{};r.selectNumberingPlan(t,n),t&&(o=t),s=n||Qr(t,r.metadata)}if(!l)return{countryCallingCodeSource:i,countryCallingCode:s};var d=ea(yo(l),r),c=d.nationalNumber,u=d.carrierCode,f=sa(s,{nationalNumber:c,defaultCountry:t,metadata:r});f&&(o=f,"001"===f||r.country(o));return{country:o,countryCallingCode:s,countryCallingCodeSource:i,nationalNumber:c,carrierCode:u}}(o,t.defaultCountry,t.defaultCallingCode,n),l=s.country,d=s.nationalNumber,c=s.countryCallingCode,u=s.countryCallingCodeSource,f=s.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Nr("INVALID_COUNTRY");return{}}if(!d||d.length<Ar){if(t.v2)throw new Nr("TOO_SHORT");return{}}if(d.length>Tr){if(t.v2)throw new Nr("TOO_LONG");return{}}if(t.v2){var p=new Ko(c,d,n.metadata);return l&&(p.country=l),f&&(p.carrierCode=f),a&&(p.ext=a),p.__countryCallingCodeSource=u,p}var h=!!(t.extended?n.hasSelectedNumberingPlan():l)&&ko(d,n.nationalNumberPattern());return t.extended?{country:l,countryCallingCode:c,carrierCode:f,valid:h,possible:!!h||!(!0!==t.extended||!n.possibleLengths()||!Oo(d,n)),phone:d,ext:a}:h?function(e,t,n){var r={country:e,phone:t};n&&(r.ext=n);return r}(l,d,a):{}}function $a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$a(Object(n),!0).forEach((function(t){wa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ka(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ja(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ja(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Sa(e){var t,n,r,o=ka(Array.prototype.slice.call(e),4),a=o[0],i=o[1],s=o[2],l=o[3];if("string"!=typeof a)throw new TypeError("A text for parsing must be a string.");if(t=a,i&&"string"!=typeof i){if(!_r(i))throw new Error("Invalid second argument: ".concat(i));s?(n=i,r=s):r=i}else l?(n=s,r=l):(n=void 0,r=s),i&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ca(Object(n),!0).forEach((function(t){Oa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({defaultCountry:i},n));return{text:t,options:n,metadata:r}}function Ea(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ea(Object(n),!0).forEach((function(t){Ia(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ea(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ia(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Na(e,t,n){t&&t.defaultCountry&&!eo(t.defaultCountry,n)&&(t=Pa(Pa({},t),{},{defaultCountry:void 0}));try{return function(e,t,n){return va(e,xa(xa({},t),{},{v2:!0}),n)}(e,t,n)}catch(e){if(!(e instanceof Nr))throw e}}function Aa(){var e=Sa(arguments);return Na(e.text,e.options,e.metadata)}function Ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ta(Object(n),!0).forEach((function(t){Fa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function La(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ra=function(){function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onCountryChange=n,this.onCallingCodeChange=r}var t,n,r;return t=e,(n=[{key:"reset",value:function(e){var t=e.country,n=e.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(t,n)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];this[r]=e[r]}}},{key:"initCountryAndCallingCode",value:function(e,t){this.setCountry(e),this.setCallingCode(t)}},{key:"setCountry",value:function(e){this.country=e,this.onCountryChange(e)}},{key:"setCallingCode",value:function(e){this.callingCode=e,this.onCallingCodeChange(e,this.country)}},{key:"startInternationalNumber",value:function(e,t){this.international=!0,this.initCountryAndCallingCode(e,t)}},{key:"appendDigits",value:function(e){this.digits+=e}},{key:"appendNationalSignificantNumberDigits",value:function(e){this.nationalSignificantNumber+=e}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])&&La(t.prototype,n),r&&La(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ma(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return _a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ba="x",za=new RegExp(Ba);function Ua(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function Ga(e,t){return")"===e[t]&&t++,function(e){var t=[],n=0;for(;n<e.length;)"("===e[n]?t.push(n):")"===e[n]&&t.pop(),n++;var r=0,o="";t.push(e.length);for(var a=0,i=t;a<i.length;a++){var s=i[a];o+=e.slice(r,s),r=s+1}return o}(e.slice(0,t))}function Wa(e,t,n){var r=n.metadata,o=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;if(new RegExp("^(?:".concat(t.pattern(),")$")).test(e.nationalSignificantNumber))return function(e,t,n){var r=n.metadata,o=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,o(t)){var i=Ha(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:r});if(i)return i}return Ha(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:r})}(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:o,getSeparatorAfterNationalPrefix:a})}function Ha(e,t,n){var r=n.metadata,o=n.useNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,i=Do(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:o,metadata:r});if(o||(e.nationalPrefix?i=e.nationalPrefix+a(t)+i:e.complexPrefixBeforeNationalSignificantNumber&&(i=e.complexPrefixBeforeNationalSignificantNumber+" "+i)),function(e,t){return go(e)===t.getNationalDigits()}(i,e))return i}function Va(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var qa=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"parse",value:function(e){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(e),1!==this.context.length)throw new Error("Non-finalized contexts left when pattern parse ended");var t=this.context[0],n=t.branches,r=t.instructions;if(n)return{op:"|",args:n.concat([Za(r)])};if(0===r.length)throw new Error("Pattern is required");return 1===r.length?r[0]:r}},{key:"startContext",value:function(e){this.context.push(e)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(e){if(!e)throw new Error("Pattern is required");var t=e.match(Xa);if(t){var n=t[1],r=e.slice(0,t.index),o=e.slice(t.index+n.length);switch(n){case"(?:":r&&this.parsePattern(r),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(r&&this.parsePattern(r),0===this.getContext().instructions.length)throw new Error('No instructions found after "|" operator in an "or" group');var a=this.getContext().branches;a.push(Za(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:a});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(r&&this.parsePattern(r),!this.getContext().branches){if(1!==this.context.length)throw new Error('"branches" not found in an "or" group context');this.getContext().branches=[]}this.getContext().branches.push(Za(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":r&&this.parsePattern(r),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:Ya(r)});break;default:throw new Error("Unknown operator: ".concat(n))}o&&this.parsePattern(o)}else{if(Ka.test(e))throw new Error("Illegal characters found in a pattern: ".concat(e));this.getContext().instructions=this.getContext().instructions.concat(e.split(""))}}}])&&Va(t.prototype,n),r&&Va(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ya(e){for(var t=[],n=0;n<e.length;){if("-"===e[n]){if(0===n||n===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var r=e[n-1].charCodeAt(0)+1,o=e[n+1].charCodeAt(0)-1,a=r;a<=o;)t.push(String.fromCharCode(a)),a++}else t.push(e[n]);n++}return t}var Ka=/[\(\)\[\]\?\:\|]/,Xa=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function Za(e){return 1===e.length?e[0]:e}function Ja(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Qa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qa(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ei(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ti=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.matchTree=(new qa).parse(t)}var t,n,r;return t=e,n=[{key:"match",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).allowOverflow;if(!e)throw new Error("String is required");var n=ni(e.split(""),this.matchTree,!0);if(n&&n.match&&delete n.matchedChars,!n||!n.overflow||t)return n}}],n&&ei(t.prototype,n),r&&ei(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ni(e,t,n){if("string"==typeof t){var r=e.join("");return 0===t.indexOf(r)?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:0===r.indexOf(t)?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var o=e.slice(),a=0;a<t.length;){var i=ni(o,t[a],n&&a===t.length-1);if(!i)return;if(i.overflow)return i;if(!i.match){if(i.partialMatch)return{partialMatch:!0};throw new Error("Unsupported match result:\n".concat(JSON.stringify(i,null,2)))}if(0===(o=o.slice(i.matchedChars.length)).length)return a===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0};a++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-o.length)}}switch(t.op){case"|":for(var s,l,d=Ja(t.args);!(l=d()).done;){var c=ni(e,l.value,n);if(c){if(c.overflow)return c;if(c.match)return{match:!0,matchedChars:c.matchedChars};if(!c.partialMatch)throw new Error("Unsupported match result:\n".concat(JSON.stringify(c,null,2)));s=!0}}return s?{partialMatch:!0}:void 0;case"[]":for(var u,f=Ja(t.args);!(u=f()).done;){var p=u.value;if(e[0]===p)return 1===e.length?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[p]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function ri(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return oi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oi(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ai(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ii=Ua("9",15),si=/[- ]/,li=new RegExp("["+Lr+"]*\\$1["+Lr+"]*(\\$\\d["+Lr+"]*)*$"),di=function(){function e(t){t.state;var n=t.metadata;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=n,this.resetFormat()}var t,n,r;return t=e,n=[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(e,t){this.resetFormat(),e?(this.isNANP="1"===e.callingCode(),this.matchingFormats=e.formats(),t.nationalSignificantNumber&&this.narrowDownMatchingFormats(t)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(e,t){var n=this;if(function(e,t){return"IS_POSSIBLE"===wo(e,t)}(t.nationalSignificantNumber,this.metadata))for(var r,o=ri(this.matchingFormats);!(r=o()).done;){var a=r.value,i=Wa(t,a,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(e){return n.shouldTryNationalPrefixFormattingRule(e,{international:t.international,nationalPrefix:t.nationalPrefix})},getSeparatorAfterNationalPrefix:function(e){return n.getSeparatorAfterNationalPrefix(e)}});if(i)return this.resetFormat(),this.chosenFormat=a,this.setNationalNumberTemplate(i.replace(/\d/g,Ba),t),this.populatedNationalNumberTemplate=i,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(Ba),i}return this.formatNationalNumberWithNextDigits(e,t)}},{key:"formatNationalNumberWithNextDigits",value:function(e,t){var n=this.chosenFormat,r=this.chooseFormat(t);if(r)return r===n?this.formatNextNationalNumberDigits(e):this.formatNextNationalNumberDigits(t.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(e){var t=this,n=e.nationalSignificantNumber,r=e.nationalPrefix,o=e.international,a=n,i=a.length-3;i<0&&(i=0),this.matchingFormats=this.matchingFormats.filter((function(e){return t.formatSuits(e,o,r)&&t.formatMatches(e,a,i)})),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function(e,t,n){return!(n&&!e.usesNationalPrefix()&&!e.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!t&&!n&&e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(e,t,n){var r=e.leadingDigitsPatterns().length;if(0===r)return!0;n=Math.min(n,r-1);var o=e.leadingDigitsPatterns()[n];if(t.length<3)try{return void 0!==new ti(o).match(t,{allowOverflow:!0})}catch(e){return console.error(e),!0}return new RegExp("^(".concat(o,")")).test(t)}},{key:"getFormatFormat",value:function(e,t){return t?e.internationalFormat():e.format()}},{key:"chooseFormat",value:function(e){for(var t,n=this,r=function(){var r=t.value;return n.chosenFormat===r?"break":li.test(n.getFormatFormat(r,e.international))?n.createTemplateForFormat(r,e)?(n.chosenFormat=r,"break"):(n.matchingFormats=n.matchingFormats.filter((function(e){return e!==r})),"continue"):"continue"},o=ri(this.matchingFormats.slice());!(t=o()).done;){var a=r();if("break"===a)break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(e,t){if(!(e.pattern().indexOf("|")>=0)){var n=this.getTemplateForFormat(e,t);return n?(this.setNationalNumberTemplate(n,t),!0):void 0}}},{key:"getSeparatorAfterNationalPrefix",value:function(e){return this.isNANP||e&&e.nationalPrefixFormattingRule()&&si.test(e.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(e,t){var n=e.IDDPrefix,r=e.missingPlus;return n?t&&!1===t.spacing?n:n+" ":r?"":"+"}},{key:"getTemplate",value:function(e){if(this.template){for(var t=-1,n=0,r=e.international?this.getInternationalPrefixBeforeCountryCallingCode(e,{spacing:!1}):"";n<r.length+e.getDigitsWithoutInternationalPrefix().length;)t=this.template.indexOf(Ba,t+1),n++;return Ga(this.template,t+1)}}},{key:"setNationalNumberTemplate",value:function(e,t){this.nationalNumberTemplate=e,this.populatedNationalNumberTemplate=e,this.populatedNationalNumberTemplatePosition=-1,t.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\d\+]/g,Ba)+Ua(Ba,t.callingCode.length)+" "+e:this.template=e}},{key:"getTemplateForFormat",value:function(e,t){var n=t.nationalSignificantNumber,r=t.international,o=t.nationalPrefix,a=t.complexPrefixBeforeNationalSignificantNumber,i=e.pattern();i=i.replace(/\[([^\[\]])*\]/g,"\\d").replace(/\d(?=[^,}][^,}])/g,"\\d");var s=ii.match(i)[0];if(!(n.length>s.length)){var l=new RegExp("^"+i+"$"),d=n.replace(/\d/g,"9");l.test(d)&&(s=d);var c,u=this.getFormatFormat(e,r);if(this.shouldTryNationalPrefixFormattingRule(e,{international:r,nationalPrefix:o})){var f=u.replace(To,e.nationalPrefixFormattingRule());if(go(e.nationalPrefixFormattingRule())===(o||"")+go("$1")&&(u=f,c=!0,o))for(var p=o.length;p>0;)u=u.replace(/\d/,Ba),p--}var h=s.replace(new RegExp(i),u).replace(new RegExp("9","g"),Ba);return c||(a?h=Ua(Ba,a.length)+" "+h:o&&(h=Ua(Ba,o.length)+this.getSeparatorAfterNationalPrefix(e)+h)),r&&(h=Ao(h)),h}}},{key:"formatNextNationalNumberDigits",value:function(e){var t=function(e,t,n){for(var r,o=Ma(n.split(""));!(r=o()).done;){var a=r.value;if(e.slice(t+1).search(za)<0)return;t=e.search(za),e=e.replace(za,a)}return[e,t]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);if(t)return this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],Ga(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}},{key:"shouldTryNationalPrefixFormattingRule",value:function(e,t){var n=t.international,r=t.nationalPrefix;if(e.nationalPrefixFormattingRule()){var o=e.usesNationalPrefix();if(o&&r||!o&&!n)return!0}}}],n&&ai(t.prototype,n),r&&ai(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ci(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ui(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ui(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ui(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var pi=new RegExp("^"+("["+Lr+Fr+"]+")+"$","i"),hi="(?:[++]["+Lr+Fr+"]*|["+Lr+Fr+"]+)",gi=new RegExp("[^"+Lr+Fr+"]+.*$"),mi=/[^\d\[\]]/,bi=function(){function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,o=t.metadata,a=t.onNationalSignificantNumberChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=o,this.onNationalSignificantNumberChange=a}var t,n,r;return t=e,(n=[{key:"input",value:function(e,t){var n,r=function(e){var t=function(e){var t=function(e){var t,n=e.search(hi);if(!(n<0))return"+"===(e=e.slice(n))[0]&&(t=!0,e=e.slice(1)),e=e.replace(gi,""),t&&(e="+"+e),e}(e)||"";return"+"===t[0]?[t.slice(1),!0]:[t]}(e),n=ci(t,2),r=n[0],o=n[1];return pi.test(r)||(r=""),[r,o]}(e),o=ci(r,2),a=o[0],i=o[1],s=go(a);return i&&(t.digits||(t.startInternationalNumber(),s||(n=!0))),s&&this.inputDigits(s,t),{digits:s,justLeadingPlus:n}}},{key:"inputDigits",value:function(e,t){var n=t.digits,r=n.length<3&&n.length+e.length>=3;if(t.appendDigits(e),r&&this.extractIddPrefix(t),this.isWaitingForCountryCallingCode(t)){if(!this.extractCountryCallingCode(t))return}else t.appendNationalSignificantNumberDigits(e);t.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(t.getNationalDigits(),(function(e){return t.update(e)}))}},{key:"isWaitingForCountryCallingCode",value:function(e){var t=e.international,n=e.callingCode;return t&&!n}},{key:"extractCountryCallingCode",value:function(e){var t=na("+"+e.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=t.countryCallingCode,r=t.number;if(n)return e.setCallingCode(n),e.update({nationalSignificantNumber:r}),!0}},{key:"reset",value:function(e){if(e){this.hasSelectedNumberingPlan=!0;var t=e._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=t&&mi.test(t)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(e,t){if(this.hasSelectedNumberingPlan){var n=Qo(e,this.metadata),r=n.nationalPrefix,o=n.nationalNumber,a=n.carrierCode;if(o!==e)return this.onExtractedNationalNumber(r,a,o,e,t),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(e,t,n){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(e,n);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var r=Qo(e,this.metadata),o=r.nationalPrefix,a=r.nationalNumber,i=r.carrierCode;if(a!==t)return this.onExtractedNationalNumber(o,i,a,e,n),!0}}},{key:"onExtractedNationalNumber",value:function(e,t,n,r,o){var a,i,s=r.lastIndexOf(n);if(s>=0&&s===r.length-n.length){i=!0;var l=r.slice(0,s);l!==e&&(a=l)}o({nationalPrefix:e,carrierCode:t,nationalSignificantNumber:n,nationalSignificantNumberMatchesInput:i,complexPrefixBeforeNationalSignificantNumber:a}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(e){return!!this.extractAnotherNationalSignificantNumber(e.getNationalDigits(),e.nationalSignificantNumber,(function(t){return e.update(t)}))||(this.extractIddPrefix(e)||this.fixMissingPlus(e)?(this.extractCallingCodeAndNationalSignificantNumber(e),!0):void 0)}},{key:"extractIddPrefix",value:function(e){var t=e.international,n=e.IDDPrefix,r=e.digits;if(e.nationalSignificantNumber,!t&&!n){var o=Jo(r,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==o&&o!==r?(e.update({IDDPrefix:r.slice(0,r.length-o.length)}),this.startInternationalNumber(e,{country:void 0,callingCode:void 0}),!0):void 0}}},{key:"fixMissingPlus",value:function(e){if(!e.international){var t=ta(e.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=t.countryCallingCode;if(t.number,n)return e.update({missingPlus:!0}),this.startInternationalNumber(e,{country:e.country,callingCode:n}),!0}}},{key:"startInternationalNumber",value:function(e,t){var n=t.country,r=t.callingCode;e.startInternationalNumber(n,r),e.nationalSignificantNumber&&(e.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(e){this.extractCountryCallingCode(e)&&this.extractNationalSignificantNumber(e.getNationalDigits(),(function(t){return e.update(t)}))}}])&&fi(t.prototype,n),r&&fi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function yi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var xi=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=new Vr(n);var r=yi(this.getCountryAndCallingCode(t),2),o=r[0],a=r[1];this.defaultCountry=o,this.defaultCallingCode=a,this.reset()}var t,n,r;return t=e,n=[{key:"getCountryAndCallingCode",value:function(e){var t,n;return e&&(_r(e)?(t=e.defaultCountry,n=e.defaultCallingCode):t=e),t&&!this.metadata.hasCountry(t)&&(t=void 0),[t,n]}},{key:"input",value:function(e){var t=this.parser.input(e,this.state),n=t.digits;if(t.justLeadingPlus)this.formattedOutput="+";else if(n){var r;if(this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state),this.metadata.hasSelectedNumberingPlan()&&(r=this.formatter.format(n,this.state)),void 0===r&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var o=this.state.getNationalDigits();o&&(r=this.formatter.format(o,this.state))}this.formattedOutput=r?this.getFullNumber(r):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var e=this;return this.state=new Ra({onCountryChange:function(t){e.country=t},onCallingCodeChange:function(t,n){e.metadata.selectNumberingPlan(n,t),e.formatter.reset(e.metadata.numberingPlan,e.state),e.parser.reset(e.metadata.numberingPlan)}}),this.formatter=new di({state:this.state,metadata:this.metadata}),this.parser=new bi({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){e.determineTheCountryIfNeeded(),e.formatter.reset(e.metadata.numberingPlan,e.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){if(this.state.digits)return this._getCountry()}},{key:"_getCountry",value:function(){return this.state.country}},{key:"determineTheCountryIfNeeded",value:function(){this.state.country&&!this.isCountryCallingCodeAmbiguous()||this.determineTheCountry()}},{key:"getFullNumber",value:function(e){var t=this;if(this.isInternational()){var n=function(e){return t.formatter.getInternationalPrefixBeforeCountryCallingCode(t.state,{spacing:!!e})+e},r=this.state.callingCode;return n(r?e?"".concat(r," ").concat(e):r:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return e}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var e=this.state,t=e.nationalSignificantNumber,n=e.complexPrefixBeforeNationalSignificantNumber,r=e.nationalPrefix,o=t,a=n||r;return a&&(o=a+o),o}},{key:"getNonFormattedNumber",value:function(){var e=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(e?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var e=this.getNonFormattedNumber();if(e)return e.replace(/[\+\d]/g,Ba)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var e=this.state.callingCode,t=this.metadata.getCountryCodesForCallingCode(e);return t&&t.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(sa(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var e=this.state,t=e.digits,n=e.callingCode,r=e.country,o=e.nationalSignificantNumber;if(t)return this.isInternational()?n?"+"+n+o:"+"+t:r||n?"+"+(r?this.metadata.countryCallingCode():n)+o:void 0}},{key:"getNumber",value:function(){var e=this.state,t=e.nationalSignificantNumber,n=e.carrierCode,r=e.callingCode,o=this._getCountry();if(t&&(o||r)){if(o&&o===this.defaultCountry){var a=new Vr(this.metadata.metadata);a.selectNumberingPlan(o);var i=a.numberingPlan.callingCode(),s=this.metadata.getCountryCodesForCallingCode(i);if(s.length>1){var l=aa(t,{countries:s,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});l&&(o=l)}}var d=new Ko(o||r,t,this.metadata.metadata);return n&&(d.carrierCode=n),d}}},{key:"isPossible",value:function(){var e=this.getNumber();return!!e&&e.isPossible()}},{key:"isValid",value:function(){var e=this.getNumber();return!!e&&e.isValid()}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}],n&&$i(t.prototype,n),r&&$i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function wi(e){return new Vr(e).getCountries()}function Ci(e){var t=e.country,n=e.international,r=e.withCountryCallingCode,o=e.metadata;return t&&n&&!r?"+".concat(Qr(t,o)):""}function Oi(e,t){return t&&" "===(e=e.slice(t.length))[0]&&(e=e.slice(1)),e}function ki(e,t,n){if(!n||!n.ignoreRest){return vo(e,t,(function(e){if(n&&"end"===e)n.ignoreRest=!0}))}}var ji=["country","international","withCountryCallingCode","metadata"];function Si(){return Si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Si.apply(this,arguments)}function Ei(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Pi=function(e){function t(t,r){var o=t.country,a=t.international,i=t.withCountryCallingCode,s=t.metadata,l=void 0===s?e:s,d=Ei(t,ji),c=n.useCallback((function(e){var t=new xi(o,l),n=Ci({country:o,international:a,withCountryCallingCode:i,metadata:l}),r=t.input(n+e),s=t.getTemplate();return n&&(r=Oi(r,n),s&&(s=Oi(s,n))),{text:r,template:s}}),[o,l]);return y.default.createElement($r,Si({},d,{ref:r,parse:ki,format:c}))}return(t=y.default.forwardRef(t)).propTypes={value:tr.string.isRequired,onChange:tr.func.isRequired,country:tr.string,international:tr.bool,withCountryCallingCode:tr.bool,metadata:tr.object},t}(),Ii=["value","onChange","country","international","withCountryCallingCode","metadata","inputComponent"];function Ni(){return Ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ni.apply(this,arguments)}function Ai(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ti=function(e){function t(t,r){var o=t.value,a=t.onChange,i=t.country,s=t.international,l=t.withCountryCallingCode,d=t.metadata,c=void 0===d?e:d,u=t.inputComponent,f=void 0===u?"input":u,p=Ai(t,Ii),h=Ci({country:i,international:s,withCountryCallingCode:l,metadata:c}),g=n.useCallback((function(e){var t=yo(e.target.value);t===o&&(0===Di(h,t,i,c).indexOf(e.target.value)&&(t=t.slice(0,-1)));a(t)}),[h,o,a,i,c]);return y.default.createElement(f,Ni({},p,{ref:r,value:Di(h,o,i,c),onChange:g}))}return(t=y.default.forwardRef(t)).propTypes={value:tr.string.isRequired,onChange:tr.func.isRequired,country:tr.string,international:tr.bool,withCountryCallingCode:tr.bool,metadata:tr.object,inputComponent:tr.elementType},t}();function Di(e,t,n,r){return Oi(function(e,t,n){return n||(n=t,t=void 0),new xi(t,n).input(e)}(e+t,n,r),e)}function Fi(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var Li=["value","onChange","options","disabled","readOnly"],Ri=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function Mi(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return _i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bi(){return Bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bi.apply(this,arguments)}function zi(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ui(e){var t=e.value,r=e.onChange,o=e.options,a=e.disabled,i=e.readOnly,s=zi(e,Li),l=n.useCallback((function(e){var t=e.target.value;r("ZZ"===t?void 0:t)}),[r]);return n.useMemo((function(){return Vi(o,t)}),[o,t]),y.default.createElement("select",Bi({},s,{disabled:a||i,readOnly:i,value:t||"ZZ",onChange:l}),o.map((function(e){var t=e.value,n=e.label,r=e.divider;return y.default.createElement("option",{key:r?"|":t||"ZZ",value:r?"|":t||"ZZ",disabled:!!r,style:r?Gi:void 0},n)})))}Ui.propTypes={value:tr.string,onChange:tr.func.isRequired,options:tr.arrayOf(tr.shape({value:tr.string,label:tr.string,divider:tr.bool})).isRequired,disabled:tr.bool,readOnly:tr.bool};var Gi={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function Wi(e){var t=e.value,r=e.options,o=e.className,a=e.iconComponent;e.getIconAspectRatio;var i,s=e.arrowComponent,l=void 0===s?Hi:s,d=e.unicodeFlags,c=zi(e,Ri),u=n.useMemo((function(){return Vi(r,t)}),[r,t]);return y.default.createElement("div",{className:"PhoneInputCountry"},y.default.createElement(Ui,Bi({},c,{value:t,options:r,className:or("PhoneInputCountrySelect",o)})),d&&t&&y.default.createElement("div",{className:"PhoneInputCountryIconUnicode"},Fi((i=t)[0])+Fi(i[1])),!(d&&t)&&y.default.createElement(a,{"aria-hidden":!0,country:t,label:u&&u.label,aspectRatio:d?1:void 0}),y.default.createElement(l,null))}function Hi(){return y.default.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function Vi(e,t){for(var n,r=Mi(e);!(n=r()).done;){var o=n.value;if(!o.divider&&o.value===t)return o}}Wi.propTypes={iconComponent:tr.elementType,arrowComponent:tr.elementType,unicodeFlags:tr.bool};var qi=["country","countryName","flags","flagUrl"];function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yi.apply(this,arguments)}function Ki(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Xi(e){var t=e.country,n=e.countryName,r=e.flags,o=e.flagUrl,a=Ki(e,qi);return r&&r[t]?r[t]({title:n}):y.default.createElement("img",Yi({},a,{alt:n,role:n?void 0:"presentation",src:o.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}Xi.propTypes={country:tr.string.isRequired,countryName:tr.string.isRequired,flags:tr.objectOf(tr.elementType),flagUrl:tr.string.isRequired};var Zi=["aspectRatio"],Ji=["title"],Qi=["title"];function es(){return es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},es.apply(this,arguments)}function ts(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ns(e){var t=e.aspectRatio,n=ts(e,Zi);return 1===t?y.default.createElement(os,n):y.default.createElement(rs,n)}function rs(e){var t=e.title,n=ts(e,Ji);return y.default.createElement("svg",es({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),y.default.createElement("title",null,t),y.default.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},y.default.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),y.default.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),y.default.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),y.default.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),y.default.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),y.default.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),y.default.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}function os(e){var t=e.title,n=ts(e,Qi);return y.default.createElement("svg",es({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),y.default.createElement("title",null,t),y.default.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},y.default.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),y.default.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),y.default.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),y.default.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),y.default.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),y.default.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),y.default.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}function as(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return is(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return is(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function is(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ss(e,t){return!!eo(e,t)||(console.error("Country not found: ".concat(e)),!1)}function ls(e,t){return e&&0===(e=e.filter((function(e){return ss(e,t)}))).length&&(e=void 0),e}ns.propTypes={title:tr.string.isRequired,aspectRatio:tr.number},rs.propTypes={title:tr.string.isRequired},os.propTypes={title:tr.string.isRequired};var ds=["country","label","aspectRatio"];function cs(){return cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cs.apply(this,arguments)}function us(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function fs(e){var t=e.flags,n=e.flagUrl,r=e.flagComponent,o=e.internationalIcon;function a(e){var a=e.country,i=e.label,s=e.aspectRatio,l=us(e,ds),d=o===ns?s:void 0;return y.default.createElement("div",cs({},l,{className:or("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":1===d,"PhoneInputCountryIcon--border":a})}),a?y.default.createElement(r,{country:a,countryName:i,flags:t,flagUrl:n,className:"PhoneInputCountryIconImg"}):y.default.createElement(o,{title:i,aspectRatio:d,className:"PhoneInputCountryIconImg"}))}return a.propTypes={country:tr.string,label:tr.string.isRequired,aspectRatio:tr.number},a}fs({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:Xi,internationalIcon:ns});var ps=tr.shape({country_calling_codes:tr.object.isRequired,countries:tr.object.isRequired}),hs=tr.objectOf(tr.string);function gs(e,t){return"+"+Qr(e,t)}function ms(e,t){return Aa(e||"",t)}function bs(e,t){var n=t.prevCountry,r=t.newCountry,o=t.metadata,a=t.useNationalFormat;if(n===r)return e;if(!e)return a?"":r?gs(r,o):"";if(r){if("+"===e[0]){if(a)return 0===e.indexOf("+"+Qr(r,o))?function(e,t,n){if(t){var r="+"+Qr(t,n);if(e.length<r.length){if(0===r.indexOf(e))return""}else if(0===e.indexOf(r))return e.slice(r.length)}for(var o=0,a=Object.keys(n.country_calling_codes);o<a.length;o++){var i=a[o];if(1===e.indexOf(i))return e.slice(1+i.length)}return""}(e,r,o):"";if(n){var i=gs(r,o);return 0===e.indexOf(i)?e:i}var s=gs(r,o);return 0===e.indexOf(s)?e:s}}else if("+"!==e[0])return ys(e,n,o)||"";return e}function ys(e,t,n){if(e){if("+"===e[0]){if("+"===e)return;var r=new xi(t,n);return r.input(e),r.getNumberValue()}if(t){var o=Cs(e,t,n);return"+".concat(Qr(t,n)).concat(o||"")}}}function vs(e,t,n){var r=Cs(e,t,n);if(r){var o=r.length-function(e,t){return t=new Vr(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}(t,n);if(o>0)return e.slice(0,e.length-o)}return e}function $s(e,t){var n=t.country,r=t.countries,o=t.required,a=t.metadata;if("+"===e)return n;var i=function(e,t){var n=new xi(null,t);return n.input(e),n.getCountry()}(e,a);return i&&(!r||r.indexOf(i)>=0)?i:!n||o||Os(e,n,a)?n:void 0}function xs(e,t,n){if(0===e.indexOf(gs(t,n))){var r=new xi(t,n);r.input(e);var o=r.getNumber();return o?o.formatNational().replace(/\D/g,""):""}return e.replace(/\D/g,"")}function ws(e,t,n){return String.prototype.localeCompare?e.localeCompare(t,n):e<t?-1:e>t?1:0}function Cs(e,t,n){var r=new xi(t,n);r.input(e);var o=r.getNumber();return o&&o.nationalNumber}function Os(e,t,n){for(var r=gs(t,n),o=0;o<e.length&&o<r.length;){if(e[o]!==r[o])return!1;o++}return!0}function ks(e){var t=e.value,n=e.phoneNumber,r=e.defaultCountry,o=e.international,a=e.useNationalFormat,i=e.metadata;return(!1===o||a)&&n&&n.country?function(e){return e.formatNational().replace(/\D/g,"")}(n):!t&&o&&r?gs(r,i):t}function js(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?js(Object(n),!0).forEach((function(t){Es(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):js(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Es(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ps(e,t){return null===e&&(e=void 0),null===t&&(t=void 0),e===t}function Is(e){return Is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Is(e)}var Ns=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function As(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?As(Object(n),!0).forEach((function(t){zs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):As(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ds(){return Ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ds.apply(this,arguments)}function Fs(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ls(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rs(e,t){return Rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rs(e,t)}function Ms(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bs(e);if(t){var o=Bs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Is(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _s(e)}(this,n)}}function _s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bs(e){return Bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bs(e)}function zs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Us=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rs(e,t)}(a,y.default.PureComponent);var t,n,r,o=Ms(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),zs(_s(t=o.call(this,e)),"setInputRef",(function(e){t.inputRef.current=e;var n=t.props.inputRef;n&&("function"==typeof n?n(e):n.current=e)})),zs(_s(t),"isCountrySupportedWithError",(function(e){return ss(e,t.props.metadata)})),zs(_s(t),"onCountryChange",(function(e){var n=t.props,r=n.international,o=n.metadata,a=n.onChange,i=n.focusInputOnCountrySelection,s=t.state,l=bs(s.phoneDigits,{prevCountry:s.country,newCountry:e,metadata:o,useNationalFormat:!r}),d=ys(l,e,o);i&&t.inputRef.current.focus(),t.setState({country:e,hasUserSelectedACountry:!0,phoneDigits:l,value:d},(function(){a(d)}))})),zs(_s(t),"onChange",(function(e){var n=t.props,r=n.defaultCountry,o=n.onChange,a=n.addInternationalOption,i=n.international,s=n.limitMaxLength,l=n.countryCallingCodeEditable,d=n.metadata,c=t.state,u=c.countries,f=function(e,t){var n,r=t.prevPhoneDigits,o=t.country,a=t.defaultCountry,i=t.countryRequired,s=t.getAnyCountry,l=t.countries,d=t.international,c=t.limitMaxLength,u=t.countryCallingCodeEditable,f=t.metadata;if(d&&!1===u&&o){var p,h=gs(o,f);if(0!==e.indexOf(h))return e&&"+"!==e[0]?p=ys(e=h+e,o,f):e=h,{phoneDigits:e,value:p,country:o}}return!1===d&&o&&e&&"+"===e[0]&&(e=xs(e,o,f)),e&&o&&c&&(e=vs(e,o,f)),!e||"+"===e[0]||o&&!d||(e="+"+e),!e&&r&&"+"===r[0]&&(o=d?void 0:a),"+"===e&&r&&"+"===r[0]&&r.length>1&&(o=void 0),e&&(n="+"===e[0]&&("+"===e||o&&0===gs(o,f).indexOf(e))?void 0:ys(e,o,f)),n&&(o=$s(n,{country:o,countries:l,metadata:f}),!1===d&&o&&e&&"+"===e[0]&&(n=ys(e=xs(e,o,f),o,f))),!o&&i&&(o=a||s()),{phoneDigits:e,country:o,value:n}}(e,{prevPhoneDigits:c.phoneDigits,country:c.country,countryRequired:!a,defaultCountry:r,getAnyCountry:function(){return t.getFirstSupportedCountry({countries:u})},countries:u,international:i,limitMaxLength:s,countryCallingCodeEditable:l,metadata:d}),p=f.phoneDigits,h=f.country,g=f.value,m={phoneDigits:p,value:g,country:h};!1===l&&(g||p!==t.state.phoneDigits||(m.forceRerender={})),t.setState(m,(function(){return o(g)}))})),zs(_s(t),"_onFocus",(function(){return t.setState({isFocused:!0})})),zs(_s(t),"_onBlur",(function(){return t.setState({isFocused:!1})})),zs(_s(t),"onFocus",(function(e){t._onFocus();var n=t.props.onFocus;n&&n(e)})),zs(_s(t),"onBlur",(function(e){var n=t.props.onBlur;t._onBlur(),n&&n(e)})),zs(_s(t),"onCountryFocus",(function(e){t._onFocus();var n=t.props.countrySelectProps;if(n){var r=n.onFocus;r&&r(e)}})),zs(_s(t),"onCountryBlur",(function(e){t._onBlur();var n=t.props.countrySelectProps;if(n){var r=n.onBlur;r&&r(e)}})),t.inputRef=y.default.createRef();var n=t.props,r=n.value;n.labels;var i=n.international,s=n.addInternationalOption,l=n.displayInitialValueAsLocalNumber,d=n.initialValueFormat,c=n.metadata,u=t.props,f=u.defaultCountry,p=u.countries;f&&(t.isCountrySupportedWithError(f)||(f=void 0)),p=ls(p,c);var h=ms(r,c);t.CountryIcon=fs(t.props);var g=function(e){var t,n=e.value,r=e.phoneNumber,o=e.defaultCountry,a=e.getAnyCountry,i=e.countries,s=e.required,l=e.metadata;return r&&r.country?t=r.country:o&&(n&&!Os(n,o,l)||(t=o)),i&&i.indexOf(t)<0&&(t=void 0),!t&&s&&i&&i.length>0&&(t=a()),t}({value:r,phoneNumber:h,defaultCountry:f,required:!s,countries:p||wi(c),getAnyCountry:function(){return t.getFirstSupportedCountry({countries:p})},metadata:c});return t.state={props:t.props,country:g,countries:p,phoneDigits:ks({value:r,phoneNumber:h,defaultCountry:f,international:i,useNationalFormat:l||"national"===d,metadata:c}),value:r},t}return t=a,n=[{key:"componentDidMount",value:function(){var e=this.props.onCountryChange,t=this.props.defaultCountry,n=this.state.country;e&&(t&&(this.isCountrySupportedWithError(t)||(t=void 0)),n!==t&&e(n))}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.onCountryChange,r=this.state.country;n&&r!==t.country&&n(r)}},{key:"getCountrySelectOptions",value:function(e){var t=e.countries,n=this.props,r=n.international,o=n.countryCallingCodeEditable,a=n.countryOptionsOrder,i=n.addInternationalOption,s=n.labels,l=n.locales,d=n.metadata;return this.useMemoCountrySelectOptions((function(){return function(e,t){if(!t)return e;for(var n,r=[],o=[],a=r,i=as(t);!(n=i()).done;){var s=n.value;"|"===s?a.push({divider:!0}):"..."===s||"…"===s?a=o:function(){var t=void 0;t="🌐"===s?void 0:s;var n=e.indexOf(e.filter((function(e){return e.value===t}))[0]),r=e[n];e.splice(n,1),a.push(r)}()}return r.concat(e).concat(o)}(function(e){var t=e.countries,n=e.countryNames,r=e.addInternationalOption,o=e.compareStringsLocales,a=e.compareStrings;a||(a=ws);var i=t.map((function(e){return{value:e,label:n[e]||e}}));return i.sort((function(e,t){return a(e.label,t.label,o)})),r&&i.unshift({label:n.ZZ}),i}({countries:t||wi(d),countryNames:s,addInternationalOption:(!r||!1!==o)&&i,compareStringsLocales:l}),function(e,t){if(e&&(e=e.filter((function(e){switch(e){case"🌐":case"|":case"...":case"…":return!0;default:return ss(e,t)}}))).length>0)return e}(a,d))}),[t,a,i,s,d])}},{key:"useMemoCountrySelectOptions",value:function(e,t){return this.countrySelectOptionsMemoDependencies&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;){if(e[n]!==t[n])return!1;n++}return!0}(t,this.countrySelectOptionsMemoDependencies)||(this.countrySelectOptionsMemo=e(),this.countrySelectOptionsMemoDependencies=t),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(e){var t=e.countries;return this.getCountrySelectOptions({countries:t})[0].value}},{key:"render",value:function(){var e=this.props,t=e.name,n=e.disabled,r=e.readOnly,o=e.autoComplete,a=e.style,i=e.className;e.inputRef;var s=e.inputComponent,l=e.numberInputProps,d=e.smartCaret,c=e.countrySelectComponent,u=e.countrySelectProps,f=e.containerComponent;e.defaultCountry,e.countries,e.countryOptionsOrder;var p=e.labels;e.flags,e.flagComponent,e.flagUrl,e.addInternationalOption,e.internationalIcon,e.displayInitialValueAsLocalNumber,e.initialValueFormat,e.onCountryChange,e.limitMaxLength,e.countryCallingCodeEditable,e.focusInputOnCountrySelection,e.reset;var h=e.metadata;e.international,e.locales;var g=Fs(e,Ns),m=this.state,b=m.country,v=m.countries,$=m.phoneDigits,x=m.isFocused,w=d?Pi:Ti,C=this.getCountrySelectOptions({countries:v});return y.default.createElement(f,{style:a,className:or(i,"PhoneInput",{"PhoneInput--focus":x,"PhoneInput--disabled":n,"PhoneInput--readOnly":r})},y.default.createElement(c,Ds({name:t?"".concat(t,"Country"):void 0,"aria-label":p.country},u,{value:b,options:C,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:n||u&&u.disabled,readOnly:r||u&&u.readOnly,iconComponent:this.CountryIcon})),y.default.createElement(w,Ds({ref:this.setInputRef,type:"tel",autoComplete:o},l,g,{name:t,metadata:h,country:b,value:$||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:n,readOnly:r,inputComponent:s,className:or("PhoneInputInput",l&&l.className,g.className)})))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return Ts({props:e},function(e,t,n){var r=e.metadata,o=e.countries,a=e.defaultCountry,i=e.value,s=e.reset,l=e.international,d=e.displayInitialValueAsLocalNumber,c=e.initialValueFormat,u=t.defaultCountry,f=t.value,p=t.reset;n.country;var h=n.value,g=n.hasUserSelectedACountry,m=function(e){return ks(Ss(Ss({},e),{},{international:l,useNationalFormat:d||"national"===c,metadata:r}))};if(s!==p)return{phoneDigits:m({value:void 0,defaultCountry:a}),value:void 0,country:a,hasUserSelectedACountry:void 0};if(a!==u){var b=!a||ss(a,r),y=!h||l&&h===m({value:void 0,defaultCountry:u});if(!g&&b&&!i&&y)return{country:a,phoneDigits:m({value:void 0,defaultCountry:a}),value:void 0}}if(!Ps(i,f)&&!Ps(i,h)){var v,$,x;if(i){v=ms(i,r);var w=ls(o,r);v&&v.country?(!w||w.indexOf(v.country)>=0)&&($=v.country):($=$s(i,{country:void 0,countries:w,metadata:r}))||a&&0===i.indexOf(gs(a,r))&&($=a)}return i||(x={hasUserSelectedACountry:void 0}),Ss(Ss({},x),{},{phoneDigits:m({phoneNumber:v,value:i,defaultCountry:a}),value:i,country:i?$:a})}}(e,t.props,t))}}],n&&Ls(t.prototype,n),r&&Ls(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(),Gs=y.default.forwardRef((function(e,t){return y.default.createElement(Us,Ds({},function(e){for(var t in e=Ts({},e),Ws)void 0===e[t]&&(e[t]=Ws[t]);return e}(e),{inputRef:t}))}));Gs.propTypes={value:tr.string,onChange:tr.func.isRequired,onFocus:tr.func,onBlur:tr.func,disabled:tr.bool,readOnly:tr.bool,autoComplete:tr.string,initialValueFormat:tr.oneOf(["national"]),displayInitialValueAsLocalNumber:tr.bool,defaultCountry:tr.string,countries:tr.arrayOf(tr.string),labels:hs,locales:tr.oneOfType([tr.string,tr.arrayOf(tr.string)]),flagUrl:tr.string,flags:tr.objectOf(tr.elementType),flagComponent:tr.elementType,addInternationalOption:tr.bool,internationalIcon:tr.elementType,countryOptionsOrder:tr.arrayOf(tr.string),style:tr.object,className:tr.string,countrySelectComponent:tr.elementType,countrySelectProps:tr.object,inputComponent:tr.elementType,containerComponent:tr.elementType,numberInputProps:tr.object,smartCaret:tr.bool,international:tr.bool,limitMaxLength:tr.bool,countryCallingCodeEditable:tr.bool,metadata:ps,onCountryChange:tr.func,focusInputOnCountrySelection:tr.bool};var Ws={autoComplete:"tel",countrySelectComponent:Wi,flagComponent:Xi,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:ns,inputComponent:"input",containerComponent:"div",reset:tr.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0};var Hs=Gs;function Vs(e){return Vs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vs(e)}function qs(e,t,n){if(n||"object"===Vs(t)&&(n=t,t="NATIONAL"),!e)return"";var r=Aa(e,n);if(!r)return"";switch(t){case"National":t="NATIONAL";break;case"International":t="INTERNATIONAL"}return r.format(t)}var Ys={version:4,country_calling_codes:{1:["US","CA"],7:["RU"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],39:["IT"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG"],45:["DK"],46:["SE"],47:["NO"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],54:["AR"],55:["BR"],57:["CO"],61:["AU"],64:["NZ"],65:["SG"],66:["TH"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],212:["MA"],213:["DZ"],216:["TN"],225:["CI"],226:["BF"],231:["LR"],237:["CM"],240:["GQ"],251:["ET"],256:["UG"],262:["RE"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],358:["FI"],370:["LT"],371:["LV"],372:["EE"],376:["AD"],377:["MC"],380:["UA"],381:["RS"],385:["HR"],386:["SI"],420:["CZ"],421:["SK"],590:["GP"],594:["GF"],596:["MQ"],687:["NC"],689:["PF"],852:["HK"],961:["LB"],971:["AE"],972:["IL"]},countries:{AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,0,"0011"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:1[3-79]|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-2]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]]],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0"],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:22|44|7[27]|87|9[69])[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-689]|8[1-69]|9[1-578])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0"],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:5056(?:[0-35-9]\\d|4[468])|7302[0-4]\\d)\\d{4}|(?:472[24]|505[2-57-9]|7306|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"]]],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"]},nonGeographic:{}};const Ks=["AD","AE","AR","AT","AU","BE","BF","BR","CA","CH","CI","CM","CN","CO","CZ","DE","DK","EE","DZ","ES","ET","FI","FR","GB","GF","GG","GI","GP","GR","GQ","HK","HR","IE","IL","IN","IS","IT","LB","LR","LT","LU","LV","MA","MC","MQ","MX","NC","NL","NO","NZ","PE","PF","PK","PL","PT","RE","RO","RS","RU","SE","SG","SI","SK","TH","TN","TR","UA","UG","US","VN","ZA"],Xs={ext:"ext.",country:"Select phone number country",phone:"Phone",AD:"Andorra",AE:"United Arab Emirates",AR:"Argentina",AT:"Austria",AU:"Australia",BE:"Belgium",BF:"Burkina Faso",BR:"Brazil",CA:"Canada",CH:"Switzerland",CI:"Ivory Coast",CM:"Cameroun",CN:"China",CO:"Colombia",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",DZ:"Algeria",EE:"Estonia",ES:"Spain",ET:"Ethiopia",FI:"Finland",FR:"France",GB:"United Kingdom",GF:"French Guyana",GG:"Guernsey",GI:"Gibraltar",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",HK:"Hong Kong",HR:"Croatia",IE:"Ireland",IL:"Israel",IN:"India",IS:"Iceland",IT:"Italia",LB:"Lebanon",LR:"Liberia",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",MA:"Morocco",MC:"Monaco",MQ:"Martinique",MX:"Mexico",NC:"New Caledonia",NL:"Netherlands",NO:"Norway",NZ:"New Zealand",PE:"Peru",PF:"French Polynesia",PK:"Pakistan",PL:"Poland",PT:"Portugal",RE:"Reunion Island",RO:"Romania",RS:"Serbia",RU:"Russia",SE:"Sweden",SG:"Singapore",SI:"Slovenia",SK:"Slovakia",TH:"Thailand",TN:"Tunisia",TR:"Turkey",UA:"Ukraine",UG:"Uganda",US:"United States",VN:"Vietnam",ZA:"South Africa"},Zs=v.default.div`
|
|
588
|
+
Vn=Xn,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var a in n)e.call(n,a)&&n[a]&&(o=r(o,a));return o}function r(e,t){return t?e?e+" "+t:e+t:e}Vn.exports?(t.default=t,Vn.exports=t):window.classNames=t}();var Zn=Xn.exports,Jn=wn(Zn);function Qn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return er(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return er(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function er(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tr(e,t){for(var n,r=0,o=Qn(t.split(""));!(n=o()).done;){n.value===e&&r++}return r}function nr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return rr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rr(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function or(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!e)return function(e){return{text:e}};var r=tr(t,e);return function(o){if(!o)return{text:"",template:e};for(var a,i=0,s="",l=nr(e.split(""));!(a=l()).done;){var d=a.value;if(d===t){if(s+=o[i],++i===o.length&&o.length<r)break}else s+=d}return n&&(s=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" ",o=e.length,a=tr("(",e)-tr(")",e);a>0&&o<t.length;)e+=t[o].replace(n,r),")"===t[o]&&a--,o++;return e}(s,e)),{text:s,template:e}}}var ar={Backspace:8,Delete:46};function ir(e,t){void 0!==t&&(!function(){if("undefined"!=typeof navigator)return sr.test(navigator.userAgent)}()?e.setSelectionRange(t,t):setTimeout((function(){return e.setSelectionRange(t,t)}),0))}var sr=/Android/i;function lr(e,t,n,r,o){if(!t.hasAttribute("readonly")){var a=function(e){switch(e.keyCode){case ar.Backspace:return"Backspace";case ar.Delete:return"Delete"}}(e);switch(a){case"Delete":case"Backspace":e.preventDefault();var i=function(e){if(e.selectionStart!==e.selectionEnd)return{start:e.selectionStart,end:e.selectionEnd}}(t);return i?(function(e,t){var n=e.value;n=n.slice(0,t.start)+n.slice(t.end),e.value=n,ir(e,t.start)}(t,i),dr(t,n,r,void 0,o)):dr(t,n,r,a,o)}}}function dr(e,t,n,r,o){var a=function(e,t,n){for(var r={},o="",a=0,i=0;i<e.length;){var s=n(e[i],o,r);void 0!==s&&(o+=s,void 0!==t&&(t===i?a=o.length-1:t>i&&(a=o.length))),i++}return void 0===t&&(a=o.length),{value:o,caret:a}}(e.value,e.selectionStart,t),i=a.value,s=a.caret;if(r){var l=function(e,t,n){switch(n){case"Backspace":t>0&&(e=e.slice(0,t-1)+e.slice(t),t--);break;case"Delete":e=e.slice(0,t)+e.slice(t+1)}return{value:e,caret:t}}(i,s,r);i=l.value,s=l.caret}var d=function(e,t,n){"string"==typeof n&&(n=or(n));var r=n(e)||{},o=r.text,a=r.template;if(void 0===o&&(o=e),a)if(void 0===t)t=o.length;else{for(var i=0,s=!1,l=-1;i<o.length&&i<a.length;){if(o[i]!==a[i]){if(0===t){s=!0,t=i;break}l=i,t--}i++}s||(t=l+1)}return{text:o,caret:t}}(i,s,n),c=d.text;s=d.caret,e.value=c,ir(e,s),o(i)}var cr=["value","parse","format","inputComponent","onChange","onKeyDown"];function ur(){return ur=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ur.apply(this,arguments)}function fr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pr(e,t){var r=e.value,o=e.parse,a=e.format,i=e.inputComponent,s=e.onChange,l=e.onKeyDown,d=fr(e,cr),c=n.useRef(),u=n.useCallback((function(e){c.current=e,t&&("function"==typeof t?t(e):t.current=e)}),[t]),f=n.useCallback((function(e){dr(c.current,o,a,void 0,s)}),[c,o,a,s]),p=n.useCallback((function(e){if(l&&l(e),!e.defaultPrevented)return lr(e,c.current,o,a,s)}),[c,o,a,s,l]);return v.default.createElement(i,ur({},d,{ref:u,value:a(hr(r)?"":r).text,onKeyDown:p,onChange:f}))}function hr(e){return null==e}function gr(e){return gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gr(e)}function mr(e){var t=$r();return function(){var n,r=wr(e);if(t){var o=wr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===gr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return br(e)}(this,n)}}function br(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vr(e){var t="function"==typeof Map?new Map:void 0;return vr=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return yr(e,arguments,wr(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),xr(r,e)},vr(e)}function yr(e,t,n){return yr=$r()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&xr(o,n.prototype),o},yr.apply(null,arguments)}function $r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function xr(e,t){return xr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xr(e,t)}function wr(e){return wr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wr(e)}(pr=v.default.forwardRef(pr)).propTypes={parse:Kn.func.isRequired,format:Kn.func.isRequired,inputComponent:Kn.elementType.isRequired,type:Kn.string.isRequired,value:Kn.string,onChange:Kn.func.isRequired,onKeyDown:Kn.func,onCut:Kn.func,onPaste:Kn.func},pr.defaultProps={inputComponent:"input",type:"text"};var Cr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xr(e,t)}(r,vr(Error));var t,n=mr(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t=n.call(this,e),Object.setPrototypeOf(br(t),r.prototype),t.name=t.constructor.name,t}return t=r,Object.defineProperty(t,"prototype",{writable:!1}),t}(),Or=2,kr=17,jr=3,Sr="0-90-9٠-٩۰-۹",Er="".concat("-‐-―−ー-").concat("//").concat("..").concat(" ").concat("()()[]\\[\\]").concat("~⁓∼~");function Pr(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),o=0;o<3;o++){var a=Number(n[o]),i=Number(r[o]);if(a>i)return 1;if(i>a)return-1;if(!isNaN(a)&&isNaN(i))return 1;if(isNaN(a)&&!isNaN(i))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var Ir={}.constructor;function Nr(e){return null!=e&&e.constructor===Ir}function Ar(e){return Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(e)}function Tr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dr(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Fr=" ext. ",Lr=/^\d+$/,Mr=function(){function e(t){Tr(this,e),function(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Nr(e)||!Nr(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Nr(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Gr(e)+": "+e,"."))}(t),this.metadata=t,qr.call(this,t)}return Dr(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&Lr.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new Rr(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new Rr(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&1===r.length&&"001"===r[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),e}(),Rr=function(){function e(t,n){Tr(this,e),this.globalMetadataObject=n,this.metadata=t,qr.call(this,n.metadata)}return Dr(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,t=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return t.map((function(t){return new Br(t,e)}))}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&Ur(this.types(),e))return new zr(Ur(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?Fr:this.metadata[13]||Fr}}]),e}(),Br=function(){function e(t,n){Tr(this,e),this._format=t,this.metadata=n}return Dr(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||_r.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),_r=/^\(?\$1\)?$/,zr=function(){function e(t,n){Tr(this,e),this.type=t,this.metadata=n}return Dr(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function Ur(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}var Gr=function(e){return Ar(e)};function Hr(e,t){if((t=new Mr(t)).hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function Wr(e,t){return t.countries.hasOwnProperty(e)}function qr(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===Pr(t,"1.2.0")?this.v2=!0:-1===Pr(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}var Vr=function(e){return"([".concat(Sr,"]{1,").concat(e,"})")};function Yr(e){var t="[ \\t,]*",n="[:\\..]?[ \\t,-]*",r="#?",o="[ \\t]*";return";ext="+Vr("20")+"|"+(t+"(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)"+n+Vr("20")+r)+"|"+(t+"(?:[xx##~~]|int|int)"+n+Vr("9")+r)+"|"+("[- ]+"+Vr("6")+"#")+"|"+(o+"(?:,{2}|;)"+n+Vr("15")+r)+"|"+(o+"(?:,)+"+n+Vr("9")+r)}var Kr="["+Sr+"]{"+Or+"}",Xr="[++]{0,1}(?:["+Er+"]*["+Sr+"]){3,}["+Er+Sr+"]*",Zr=new RegExp("^[++]{0,1}(?:["+Er+"]*["+Sr+"]){1,2}$","i"),Jr=Xr+"(?:"+Yr()+")?",Qr=new RegExp("^"+Kr+"$|^"+Jr+"$","i");var eo=new RegExp("(?:"+Yr()+")$","i");function to(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return no(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return no(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function no(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ro={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function oo(e){return ro[e]}function ao(e){for(var t,n="",r=to(e.split(""));!(t=r()).done;){var o=oo(t.value);o&&(n+=o)}return n}function io(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return so(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return so(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function so(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lo(e){for(var t,n="",r=io(e.split(""));!(t=r()).done;){n+=co(t.value,n)||""}return n}function co(e,t,n){return"+"===e?t?void("function"==typeof n&&n("end")):"+":oo(e)}function uo(e,t){return function(e,t,n){var r=n.type(t),o=r&&r.possibleLengths()||n.possibleLengths();if(!o)return"IS_POSSIBLE";var a=e.length,i=o[0];if(i===a)return"IS_POSSIBLE";if(i>a)return"TOO_SHORT";if(o[o.length-1]<a)return"TOO_LONG";return o.indexOf(a,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}(e,void 0,t)}function fo(e,t){return"IS_POSSIBLE"===uo(e,t)}function po(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function ho(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return go(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return go(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function go(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mo=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function bo(e,t,n){if(t=t||{},e.country||e.countryCallingCode){(n=new Mr(n)).selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(po(r,n.nationalNumberPattern())){if(vo(r,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":n.type("MOBILE")?vo(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var o,a=ho(mo);!(o=a()).done;){var i=o.value;if(vo(r,i,n))return i}}}}function vo(e,t,n){return!(!(t=n.type(t))||!t.pattern())&&(!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&po(e,t.pattern()))}function yo(e,t,n){var r=new Mr(n).getCountryCodesForCallingCode(e);return r?r.filter((function(e){return function(e,t,n){var r=new Mr(n);if(r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0)return!0;return!1}(t,e,n)})):[]}function $o(e){return e.replace(new RegExp("[".concat(Er,"]+"),"g")," ").trim()}var xo=/(\$\d)/;function wo(e,t,n){var r=n.useInternationalFormat,o=n.withNationalPrefix;n.carrierCode,n.metadata;var a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():o&&t.nationalPrefixFormattingRule()?t.format().replace(xo,t.nationalPrefixFormattingRule()):t.format());return r?$o(a):a}var Co=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Oo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ko(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ko(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ko(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function So(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(n),!0).forEach((function(t){Eo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Eo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Po={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function Io(e,t,n,r){if(n=n?So(So({},Po),n):Po,r=new Mr(r),e.country&&"001"!==e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)return e.phone||"";r.selectNumberingPlan(e.countryCallingCode)}var o,a=r.countryCallingCode(),i=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return i?Ao(o=No(i,e.carrierCode,"NATIONAL",r,n),e.ext,r,n.formatExtension):"";case"INTERNATIONAL":return i?(o=No(i,null,"INTERNATIONAL",r,n),Ao(o="+".concat(a," ").concat(o),e.ext,r,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(i);case"RFC3966":return function(e){var t=e.number,n=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}({number:"+".concat(a).concat(i),ext:e.ext});case"IDD":if(!n.fromCountry)return;var s=function(e,t,n,r,o){var a=Hr(r,o.metadata);if(a===n){var i=No(e,t,"NATIONAL",o);return"1"===n?n+" "+i:i}var s=function(e,t,n){var r=new Mr(n);return r.selectNumberingPlan(e,t),r.defaultIDDPrefix()?r.defaultIDDPrefix():Co.test(r.IDDPrefix())?r.IDDPrefix():void 0}(r,void 0,o.metadata);if(s)return"".concat(s," ").concat(n," ").concat(No(e,null,"INTERNATIONAL",o))}(i,e.carrierCode,a,n.fromCountry,r);return Ao(s,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function No(e,t,n,r,o){var a=function(e,t){for(var n,r=Oo(e);!(n=r()).done;){var o=n.value;if(o.leadingDigitsPatterns().length>0){var a=o.leadingDigitsPatterns()[o.leadingDigitsPatterns().length-1];if(0!==t.search(a))continue}if(po(t,o.pattern()))return o}}(r.formats(),e);return a?wo(e,a,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!o||!1!==o.nationalPrefix,carrierCode:t,metadata:r}):e}function Ao(e,t,n,r){return t?r(e,t,n):e}function To(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Do(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?To(Object(n),!0).forEach((function(t){Fo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lo(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Mo=function(){function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!n)throw new TypeError("`nationalNumber` not passed");if(!r)throw new TypeError("`metadata` not passed");var o=function(e,t){var n,r,o=new Mr(t);Ro(e)?(n=e,o.selectNumberingPlan(n),r=o.countryCallingCode()):r=e;return{country:n,countryCallingCode:r}}(t,r),a=o.country,i=o.countryCallingCode;this.country=a,this.countryCallingCode=i,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return Lo(e,[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:yo(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function(e,t,n){if(void 0===t&&(t={}),n=new Mr(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return fo(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return function(e,t,n){return t=t||{},(n=new Mr(n)).selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?void 0!==bo(e,t,n.metadata):po(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new Mr(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return bo(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return Io(this,e,t?Do(Do({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}]),e}(),Ro=function(e){return/^[A-Z]{2}$/.test(e)};var Bo=new RegExp("(["+Sr+"])");function _o(e,t,n,r){if(t){var o=new Mr(r);o.selectNumberingPlan(t,n);var a=new RegExp(o.IDDPrefix());if(0===e.search(a)){var i=(e=e.slice(e.match(a)[0].length)).match(Bo);if(!(i&&null!=i[1]&&i[1].length>0&&"0"===i[1]))return e}}}function zo(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var o,a,i,s=r.length-1,l=s>0&&r[s];if(t.nationalPrefixTransformRule()&&l)o=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(a=r[1]);else{var d=r[0];o=e.slice(d.length),l&&(a=r[1])}if(l){var c=e.indexOf(r[1]);e.slice(0,c)===t.numberingPlan.nationalPrefix()&&(i=t.numberingPlan.nationalPrefix())}else i=r[0];return{nationalNumber:o,nationalPrefix:i,carrierCode:a}}}return{nationalNumber:e}}function Uo(e,t){var n=zo(e,t),r=n.carrierCode,o=n.nationalNumber;if(o!==e){if(!function(e,t,n){if(po(e,n.nationalNumberPattern())&&!po(t,n.nationalNumberPattern()))return!1;return!0}(e,o,t))return{nationalNumber:e};if(t.possibleLengths()&&!function(e,t){switch(uo(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(o,t))return{nationalNumber:e}}return{nationalNumber:o,carrierCode:r}}function Go(e,t,n,r){var o=t?Hr(t,r):n;if(0===e.indexOf(o)){(r=new Mr(r)).selectNumberingPlan(t,n);var a=e.slice(o.length),i=Uo(a,r).nationalNumber,s=Uo(e,r).nationalNumber;if(!po(s,r.nationalNumberPattern())&&po(i,r.nationalNumberPattern())||"TOO_LONG"===uo(s,r))return{countryCallingCode:o,number:a}}return{number:e}}function Ho(e,t,n,r){if(!e)return{};var o;if("+"!==e[0]){var a=_o(e,t,n,r);if(!a||a===e){if(t||n){var i=Go(e,t,n,r),s=i.countryCallingCode,l=i.number;if(s)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:s,number:l}}return{number:e}}o=!0,e="+"+a}if("0"===e[1])return{};r=new Mr(r);for(var d=2;d-1<=jr&&d<=e.length;){var c=e.slice(1,d);if(r.hasCallingCode(c))return r.selectNumberingPlan(c),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:c,number:e.slice(d)};d++}return{}}function Wo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return qo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qo(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function qo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vo(e,t){var n=t.countries,r=t.defaultCountry,o=t.metadata;o=new Mr(o);for(var a,i=[],s=Wo(n);!(a=s()).done;){var l=a.value;if(o.country(l),o.leadingDigits()){if(e&&0===e.search(o.leadingDigits()))return l}else if(bo({phone:e,country:l},void 0,o.metadata)){if(!r)return l;if(l===r)return l;i.push(l)}}if(i.length>0)return i[0]}function Yo(e,t){var n=t.nationalNumber,r=t.defaultCountry,o=t.metadata,a=o.getCountryCodesForCallingCode(e);if(a)return 1===a.length?a[0]:Vo(n,{countries:a,defaultCountry:r,metadata:o.metadata})}var Ko="+",Xo="(["+Sr+"]|[\\-\\.\\(\\)]?)",Zo=new RegExp("^\\"+Ko+Xo+"*["+Sr+"]"+Xo+"*$","g"),Jo=new RegExp("^("+("["+Sr+"]+((\\-)*["+Sr+"])*")+"\\.)*"+("[a-zA-Z]+((\\-)*["+Sr+"])*")+"\\.?$","g"),Qo="tel:",ea=";phone-context=",ta=";isub=";function na(e,t){var n,r=t.extractFormattedPhoneNumber,o=function(e){var t=e.indexOf(ea);if(t<0)return null;var n=t+ea.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}(e);if(!function(e){return null===e||0!==e.length&&(Zo.test(e)||Jo.test(e))}(o))throw new Cr("NOT_A_NUMBER");if(null===o)n=r(e)||"";else{n="",o.charAt(0)===Ko&&(n+=o);var a,i=e.indexOf(Qo);a=i>=0?i+Qo.length:0;var s=e.indexOf(ea);n+=e.substring(a,s)}var l=n.indexOf(ta);if(l>0&&(n=n.substring(0,l)),""!==n)return n}var ra=250,oa=new RegExp("[++"+Sr+"]"),aa=new RegExp("[^"+Sr+"#]+$");function ia(e,t,n){if(t=t||{},n=new Mr(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry)){if(t.v2)throw new Cr("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var r=function(e,t,n){var r=na(e,{extractFormattedPhoneNumber:function(e){return function(e,t,n){if(!e)return;if(e.length>ra){if(n)throw new Cr("TOO_LONG");return}if(!1===t)return e;var r=e.search(oa);if(r<0)return;return e.slice(r).replace(aa,"")}(e,n,t)}});if(!r)return{};if(!function(e){return e.length>=Or&&Qr.test(e)}(r))return function(e){return Zr.test(e)}(r)?{error:"TOO_SHORT"}:{};var o=function(e){var t=e.search(eo);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(eo),o=1;o<r.length;){if(r[o])return{number:n,ext:r[o]};o++}}(r);if(o.ext)return o;return{number:r}}(e,t.v2,t.extract),o=r.number,a=r.ext,i=r.error;if(!o){if(t.v2){if("TOO_SHORT"===i)throw new Cr("TOO_SHORT");throw new Cr("NOT_A_NUMBER")}return{}}var s=function(e,t,n,r){var o,a=Ho(lo(e),t,n,r.metadata),i=a.countryCallingCodeSource,s=a.countryCallingCode,l=a.number;if(s)r.selectNumberingPlan(s);else{if(!l||!t&&!n)return{};r.selectNumberingPlan(t,n),t&&(o=t),s=n||Hr(t,r.metadata)}if(!l)return{countryCallingCodeSource:i,countryCallingCode:s};var d=Uo(lo(l),r),c=d.nationalNumber,u=d.carrierCode,f=Yo(s,{nationalNumber:c,defaultCountry:t,metadata:r});f&&(o=f,"001"===f||r.country(o));return{country:o,countryCallingCode:s,countryCallingCodeSource:i,nationalNumber:c,carrierCode:u}}(o,t.defaultCountry,t.defaultCallingCode,n),l=s.country,d=s.nationalNumber,c=s.countryCallingCode,u=s.countryCallingCodeSource,f=s.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Cr("INVALID_COUNTRY");return{}}if(!d||d.length<Or){if(t.v2)throw new Cr("TOO_SHORT");return{}}if(d.length>kr){if(t.v2)throw new Cr("TOO_LONG");return{}}if(t.v2){var p=new Mo(c,d,n.metadata);return l&&(p.country=l),f&&(p.carrierCode=f),a&&(p.ext=a),p.__countryCallingCodeSource=u,p}var h=!!(t.extended?n.hasSelectedNumberingPlan():l)&&po(d,n.nationalNumberPattern());return t.extended?{country:l,countryCallingCode:c,carrierCode:f,valid:h,possible:!!h||!(!0!==t.extended||!n.possibleLengths()||!fo(d,n)),phone:d,ext:a}:h?function(e,t,n){var r={country:e,phone:t};n&&(r.ext=n);return r}(l,d,a):{}}function sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function la(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sa(Object(n),!0).forEach((function(t){da(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function da(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ua(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pa(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ha(e){var t,n,r,o=fa(Array.prototype.slice.call(e),4),a=o[0],i=o[1],s=o[2],l=o[3];if("string"!=typeof a)throw new TypeError("A text for parsing must be a string.");if(t=a,i&&"string"!=typeof i){if(!Nr(i))throw new Error("Invalid second argument: ".concat(i));s?(n=i,r=s):r=i}else l?(n=s,r=l):(n=void 0,r=s),i&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(n),!0).forEach((function(t){ua(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({defaultCountry:i},n));return{text:t,options:n,metadata:r}}function ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ga(Object(n),!0).forEach((function(t){ba(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ga(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ba(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function va(e,t,n){t&&t.defaultCountry&&!Wr(t.defaultCountry,n)&&(t=ma(ma({},t),{},{defaultCountry:void 0}));try{return function(e,t,n){return ia(e,la(la({},t),{},{v2:!0}),n)}(e,t,n)}catch(e){if(!(e instanceof Cr))throw e}}function ya(){var e=ha(arguments);return va(e.text,e.options,e.metadata)}function $a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$a(Object(n),!0).forEach((function(t){wa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ca(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Oa=function(){function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onCountryChange=n,this.onCallingCodeChange=r}return Ca(e,[{key:"reset",value:function(e){var t=e.country,n=e.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(t,n)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];this[r]=e[r]}}},{key:"initCountryAndCallingCode",value:function(e,t){this.setCountry(e),this.setCallingCode(t)}},{key:"setCountry",value:function(e){this.country=e,this.onCountryChange(e)}},{key:"setCallingCode",value:function(e){this.callingCode=e,this.onCallingCodeChange(e,this.country)}},{key:"startInternationalNumber",value:function(e,t){this.international=!0,this.initCountryAndCallingCode(e,t)}},{key:"appendDigits",value:function(e){this.digits+=e}},{key:"appendNationalSignificantNumberDigits",value:function(e){this.nationalSignificantNumber+=e}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}]),e}();function ka(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ja(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ja(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Sa="x",Ea=new RegExp(Sa);function Pa(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function Ia(e,t){return")"===e[t]&&t++,function(e){var t=[],n=0;for(;n<e.length;)"("===e[n]?t.push(n):")"===e[n]&&t.pop(),n++;var r=0,o="";t.push(e.length);for(var a=0,i=t;a<i.length;a++){var s=i[a];o+=e.slice(r,s),r=s+1}return o}(e.slice(0,t))}function Na(e,t,n){var r=n.metadata,o=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;if(new RegExp("^(?:".concat(t.pattern(),")$")).test(e.nationalSignificantNumber))return function(e,t,n){var r=n.metadata,o=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,o(t)){var i=Aa(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:r});if(i)return i}return Aa(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:r})}(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:o,getSeparatorAfterNationalPrefix:a})}function Aa(e,t,n){var r=n.metadata,o=n.useNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,i=wo(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:o,metadata:r});if(o||(e.nationalPrefix?i=e.nationalPrefix+a(t)+i:e.complexPrefixBeforeNationalSignificantNumber&&(i=e.complexPrefixBeforeNationalSignificantNumber+" "+i)),function(e,t){return ao(e)===t.getNationalDigits()}(i,e))return i}function Ta(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Da=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return Ta(e,[{key:"parse",value:function(e){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(e),1!==this.context.length)throw new Error("Non-finalized contexts left when pattern parse ended");var t=this.context[0],n=t.branches,r=t.instructions;if(n)return{op:"|",args:n.concat([Ra(r)])};if(0===r.length)throw new Error("Pattern is required");return 1===r.length?r[0]:r}},{key:"startContext",value:function(e){this.context.push(e)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(e){if(!e)throw new Error("Pattern is required");var t=e.match(Ma);if(t){var n=t[1],r=e.slice(0,t.index),o=e.slice(t.index+n.length);switch(n){case"(?:":r&&this.parsePattern(r),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(r&&this.parsePattern(r),0===this.getContext().instructions.length)throw new Error('No instructions found after "|" operator in an "or" group');var a=this.getContext().branches;a.push(Ra(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:a});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(r&&this.parsePattern(r),!this.getContext().branches){if(1!==this.context.length)throw new Error('"branches" not found in an "or" group context');this.getContext().branches=[]}this.getContext().branches.push(Ra(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":r&&this.parsePattern(r),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:Fa(r)});break;default:throw new Error("Unknown operator: ".concat(n))}o&&this.parsePattern(o)}else{if(La.test(e))throw new Error("Illegal characters found in a pattern: ".concat(e));this.getContext().instructions=this.getContext().instructions.concat(e.split(""))}}}]),e}();function Fa(e){for(var t=[],n=0;n<e.length;){if("-"===e[n]){if(0===n||n===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var r=e[n-1].charCodeAt(0)+1,o=e[n+1].charCodeAt(0)-1,a=r;a<=o;)t.push(String.fromCharCode(a)),a++}else t.push(e[n]);n++}return t}var La=/[\(\)\[\]\?\:\|]/,Ma=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function Ra(e){return 1===e.length?e[0]:e}function Ba(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return _a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _a(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function za(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Ua=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.matchTree=(new Da).parse(t)}return za(e,[{key:"match",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).allowOverflow;if(!e)throw new Error("String is required");var n=Ga(e.split(""),this.matchTree,!0);if(n&&n.match&&delete n.matchedChars,!n||!n.overflow||t)return n}}]),e}();function Ga(e,t,n){if("string"==typeof t){var r=e.join("");return 0===t.indexOf(r)?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:0===r.indexOf(t)?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var o=e.slice(),a=0;a<t.length;){var i=Ga(o,t[a],n&&a===t.length-1);if(!i)return;if(i.overflow)return i;if(!i.match){if(i.partialMatch)return{partialMatch:!0};throw new Error("Unsupported match result:\n".concat(JSON.stringify(i,null,2)))}if(0===(o=o.slice(i.matchedChars.length)).length)return a===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0};a++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-o.length)}}switch(t.op){case"|":for(var s,l,d=Ba(t.args);!(l=d()).done;){var c=Ga(e,l.value,n);if(c){if(c.overflow)return c;if(c.match)return{match:!0,matchedChars:c.matchedChars};if(!c.partialMatch)throw new Error("Unsupported match result:\n".concat(JSON.stringify(c,null,2)));s=!0}}return s?{partialMatch:!0}:void 0;case"[]":for(var u,f=Ba(t.args);!(u=f()).done;){var p=u.value;if(e[0]===p)return 1===e.length?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[p]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function Ha(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Wa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wa(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Wa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qa(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Va=Pa("9",15),Ya=/[- ]/,Ka=new RegExp("["+Er+"]*\\$1["+Er+"]*(\\$\\d["+Er+"]*)*$"),Xa=function(){function e(t){t.state;var n=t.metadata;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=n,this.resetFormat()}return qa(e,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(e,t){this.resetFormat(),e?(this.isNANP="1"===e.callingCode(),this.matchingFormats=e.formats(),t.nationalSignificantNumber&&this.narrowDownMatchingFormats(t)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(e,t){var n=this;if(function(e,t){return"IS_POSSIBLE"===uo(e,t)}(t.nationalSignificantNumber,this.metadata))for(var r,o=Ha(this.matchingFormats);!(r=o()).done;){var a=r.value,i=Na(t,a,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(e){return n.shouldTryNationalPrefixFormattingRule(e,{international:t.international,nationalPrefix:t.nationalPrefix})},getSeparatorAfterNationalPrefix:function(e){return n.getSeparatorAfterNationalPrefix(e)}});if(i)return this.resetFormat(),this.chosenFormat=a,this.setNationalNumberTemplate(i.replace(/\d/g,Sa),t),this.populatedNationalNumberTemplate=i,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(Sa),i}return this.formatNationalNumberWithNextDigits(e,t)}},{key:"formatNationalNumberWithNextDigits",value:function(e,t){var n=this.chosenFormat,r=this.chooseFormat(t);if(r)return r===n?this.formatNextNationalNumberDigits(e):this.formatNextNationalNumberDigits(t.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(e){var t=this,n=e.nationalSignificantNumber,r=e.nationalPrefix,o=e.international,a=n,i=a.length-3;i<0&&(i=0),this.matchingFormats=this.matchingFormats.filter((function(e){return t.formatSuits(e,o,r)&&t.formatMatches(e,a,i)})),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function(e,t,n){return!(n&&!e.usesNationalPrefix()&&!e.nationalPrefixIsOptionalWhenFormattingInNationalFormat())&&!(!t&&!n&&e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(e,t,n){var r=e.leadingDigitsPatterns().length;if(0===r)return!0;n=Math.min(n,r-1);var o=e.leadingDigitsPatterns()[n];if(t.length<3)try{return void 0!==new Ua(o).match(t,{allowOverflow:!0})}catch(e){return console.error(e),!0}return new RegExp("^(".concat(o,")")).test(t)}},{key:"getFormatFormat",value:function(e,t){return t?e.internationalFormat():e.format()}},{key:"chooseFormat",value:function(e){for(var t,n=this,r=function(){var r=t.value;return n.chosenFormat===r?"break":Ka.test(n.getFormatFormat(r,e.international))?n.createTemplateForFormat(r,e)?(n.chosenFormat=r,"break"):(n.matchingFormats=n.matchingFormats.filter((function(e){return e!==r})),"continue"):"continue"},o=Ha(this.matchingFormats.slice());!(t=o()).done;){var a=r();if("break"===a)break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(e,t){if(!(e.pattern().indexOf("|")>=0)){var n=this.getTemplateForFormat(e,t);return n?(this.setNationalNumberTemplate(n,t),!0):void 0}}},{key:"getSeparatorAfterNationalPrefix",value:function(e){return this.isNANP||e&&e.nationalPrefixFormattingRule()&&Ya.test(e.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(e,t){var n=e.IDDPrefix,r=e.missingPlus;return n?t&&!1===t.spacing?n:n+" ":r?"":"+"}},{key:"getTemplate",value:function(e){if(this.template){for(var t=-1,n=0,r=e.international?this.getInternationalPrefixBeforeCountryCallingCode(e,{spacing:!1}):"";n<r.length+e.getDigitsWithoutInternationalPrefix().length;)t=this.template.indexOf(Sa,t+1),n++;return Ia(this.template,t+1)}}},{key:"setNationalNumberTemplate",value:function(e,t){this.nationalNumberTemplate=e,this.populatedNationalNumberTemplate=e,this.populatedNationalNumberTemplatePosition=-1,t.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\d\+]/g,Sa)+Pa(Sa,t.callingCode.length)+" "+e:this.template=e}},{key:"getTemplateForFormat",value:function(e,t){var n=t.nationalSignificantNumber,r=t.international,o=t.nationalPrefix,a=t.complexPrefixBeforeNationalSignificantNumber,i=e.pattern();i=i.replace(/\[([^\[\]])*\]/g,"\\d").replace(/\d(?=[^,}][^,}])/g,"\\d");var s=Va.match(i)[0];if(!(n.length>s.length)){var l=new RegExp("^"+i+"$"),d=n.replace(/\d/g,"9");l.test(d)&&(s=d);var c,u=this.getFormatFormat(e,r);if(this.shouldTryNationalPrefixFormattingRule(e,{international:r,nationalPrefix:o})){var f=u.replace(xo,e.nationalPrefixFormattingRule());if(ao(e.nationalPrefixFormattingRule())===(o||"")+ao("$1")&&(u=f,c=!0,o))for(var p=o.length;p>0;)u=u.replace(/\d/,Sa),p--}var h=s.replace(new RegExp(i),u).replace(new RegExp("9","g"),Sa);return c||(a?h=Pa(Sa,a.length)+" "+h:o&&(h=Pa(Sa,o.length)+this.getSeparatorAfterNationalPrefix(e)+h)),r&&(h=$o(h)),h}}},{key:"formatNextNationalNumberDigits",value:function(e){var t=function(e,t,n){for(var r,o=ka(n.split(""));!(r=o()).done;){var a=r.value;if(e.slice(t+1).search(Ea)<0)return;t=e.search(Ea),e=e.replace(Ea,a)}return[e,t]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);if(t)return this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],Ia(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}},{key:"shouldTryNationalPrefixFormattingRule",value:function(e,t){var n=t.international,r=t.nationalPrefix;if(e.nationalPrefixFormattingRule()){var o=e.usesNationalPrefix();if(o&&r||!o&&!n)return!0}}}]),e}();function Za(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ja(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ja(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qa(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var ei=new RegExp("^"+("["+Er+Sr+"]+")+"$","i"),ti="(?:[++]["+Er+Sr+"]*|["+Er+Sr+"]+)",ni=new RegExp("[^"+Er+Sr+"]+.*$"),ri=/[^\d\[\]]/,oi=function(){function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,o=t.metadata,a=t.onNationalSignificantNumberChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=o,this.onNationalSignificantNumberChange=a}return Qa(e,[{key:"input",value:function(e,t){var n,r=function(e){var t=function(e){var t=function(e){var t,n=e.search(ti);if(n<0)return;e=e.slice(n),"+"===e[0]&&(t=!0,e=e.slice(1));e=e.replace(ni,""),t&&(e="+"+e);return e}(e)||"";if("+"===t[0])return[t.slice(1),!0];return[t]}(e),n=Za(t,2),r=n[0],o=n[1];ei.test(r)||(r="");return[r,o]}(e),o=Za(r,2),a=o[0],i=o[1],s=ao(a);return i&&(t.digits||(t.startInternationalNumber(),s||(n=!0))),s&&this.inputDigits(s,t),{digits:s,justLeadingPlus:n}}},{key:"inputDigits",value:function(e,t){var n=t.digits,r=n.length<3&&n.length+e.length>=3;if(t.appendDigits(e),r&&this.extractIddPrefix(t),this.isWaitingForCountryCallingCode(t)){if(!this.extractCountryCallingCode(t))return}else t.appendNationalSignificantNumberDigits(e);t.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(t.getNationalDigits(),(function(e){return t.update(e)}))}},{key:"isWaitingForCountryCallingCode",value:function(e){var t=e.international,n=e.callingCode;return t&&!n}},{key:"extractCountryCallingCode",value:function(e){var t=Ho("+"+e.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=t.countryCallingCode,r=t.number;if(n)return e.setCallingCode(n),e.update({nationalSignificantNumber:r}),!0}},{key:"reset",value:function(e){if(e){this.hasSelectedNumberingPlan=!0;var t=e._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=t&&ri.test(t)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(e,t){if(this.hasSelectedNumberingPlan){var n=zo(e,this.metadata),r=n.nationalPrefix,o=n.nationalNumber,a=n.carrierCode;if(o!==e)return this.onExtractedNationalNumber(r,a,o,e,t),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(e,t,n){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(e,n);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var r=zo(e,this.metadata),o=r.nationalPrefix,a=r.nationalNumber,i=r.carrierCode;if(a!==t)return this.onExtractedNationalNumber(o,i,a,e,n),!0}}},{key:"onExtractedNationalNumber",value:function(e,t,n,r,o){var a,i,s=r.lastIndexOf(n);if(s>=0&&s===r.length-n.length){i=!0;var l=r.slice(0,s);l!==e&&(a=l)}o({nationalPrefix:e,carrierCode:t,nationalSignificantNumber:n,nationalSignificantNumberMatchesInput:i,complexPrefixBeforeNationalSignificantNumber:a}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(e){return!!this.extractAnotherNationalSignificantNumber(e.getNationalDigits(),e.nationalSignificantNumber,(function(t){return e.update(t)}))||(this.extractIddPrefix(e)||this.fixMissingPlus(e)?(this.extractCallingCodeAndNationalSignificantNumber(e),!0):void 0)}},{key:"extractIddPrefix",value:function(e){var t=e.international,n=e.IDDPrefix,r=e.digits;if(e.nationalSignificantNumber,!t&&!n){var o=_o(r,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==o&&o!==r?(e.update({IDDPrefix:r.slice(0,r.length-o.length)}),this.startInternationalNumber(e,{country:void 0,callingCode:void 0}),!0):void 0}}},{key:"fixMissingPlus",value:function(e){if(!e.international){var t=Go(e.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=t.countryCallingCode;if(t.number,n)return e.update({missingPlus:!0}),this.startInternationalNumber(e,{country:e.country,callingCode:n}),!0}}},{key:"startInternationalNumber",value:function(e,t){var n=t.country,r=t.callingCode;e.startInternationalNumber(n,r),e.nationalSignificantNumber&&(e.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(e){this.extractCountryCallingCode(e)&&this.extractNationalSignificantNumber(e.getNationalDigits(),(function(t){return e.update(t)}))}}]),e}();function ai(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ii(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ii(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ii(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function si(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var li=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=new Mr(n);var r=ai(this.getCountryAndCallingCode(t),2),o=r[0],a=r[1];this.defaultCountry=o,this.defaultCallingCode=a,this.reset()}return si(e,[{key:"getCountryAndCallingCode",value:function(e){var t,n;return e&&(Nr(e)?(t=e.defaultCountry,n=e.defaultCallingCode):t=e),t&&!this.metadata.hasCountry(t)&&(t=void 0),[t,n]}},{key:"input",value:function(e){var t=this.parser.input(e,this.state),n=t.digits;if(t.justLeadingPlus)this.formattedOutput="+";else if(n){var r;if(this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state),this.metadata.hasSelectedNumberingPlan()&&(r=this.formatter.format(n,this.state)),void 0===r&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var o=this.state.getNationalDigits();o&&(r=this.formatter.format(o,this.state))}this.formattedOutput=r?this.getFullNumber(r):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var e=this;return this.state=new Oa({onCountryChange:function(t){e.country=t},onCallingCodeChange:function(t,n){e.metadata.selectNumberingPlan(n,t),e.formatter.reset(e.metadata.numberingPlan,e.state),e.parser.reset(e.metadata.numberingPlan)}}),this.formatter=new Xa({state:this.state,metadata:this.metadata}),this.parser=new oi({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){e.determineTheCountryIfNeeded(),e.formatter.reset(e.metadata.numberingPlan,e.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){if(this.state.digits)return this._getCountry()}},{key:"_getCountry",value:function(){return this.state.country}},{key:"determineTheCountryIfNeeded",value:function(){this.state.country&&!this.isCountryCallingCodeAmbiguous()||this.determineTheCountry()}},{key:"getFullNumber",value:function(e){var t=this;if(this.isInternational()){var n=function(e){return t.formatter.getInternationalPrefixBeforeCountryCallingCode(t.state,{spacing:!!e})+e},r=this.state.callingCode;return n(r?e?"".concat(r," ").concat(e):r:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return e}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var e=this.state,t=e.nationalSignificantNumber,n=e.complexPrefixBeforeNationalSignificantNumber,r=e.nationalPrefix,o=t,a=n||r;return a&&(o=a+o),o}},{key:"getNonFormattedNumber",value:function(){var e=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(e?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var e=this.getNonFormattedNumber();if(e)return e.replace(/[\+\d]/g,Sa)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var e=this.state.callingCode,t=this.metadata.getCountryCodesForCallingCode(e);return t&&t.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(Yo(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var e=this.state,t=e.digits,n=e.callingCode,r=e.country,o=e.nationalSignificantNumber;if(t)return this.isInternational()?n?"+"+n+o:"+"+t:r||n?"+"+(r?this.metadata.countryCallingCode():n)+o:void 0}},{key:"getNumber",value:function(){var e=this.state,t=e.nationalSignificantNumber,n=e.carrierCode,r=e.callingCode,o=this._getCountry();if(t&&(o||r)){if(o&&o===this.defaultCountry){var a=new Mr(this.metadata.metadata);a.selectNumberingPlan(o);var i=a.numberingPlan.callingCode(),s=this.metadata.getCountryCodesForCallingCode(i);if(s.length>1){var l=Vo(t,{countries:s,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});l&&(o=l)}}var d=new Mo(o||r,t,this.metadata.metadata);return n&&(d.carrierCode=n),d}}},{key:"isPossible",value:function(){var e=this.getNumber();return!!e&&e.isPossible()}},{key:"isValid",value:function(){var e=this.getNumber();return!!e&&e.isValid()}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),e}();function di(e){return new Mr(e).getCountries()}function ci(e){var t=e.country,n=e.international,r=e.withCountryCallingCode,o=e.metadata;return t&&n&&!r?"+".concat(Hr(t,o)):""}function ui(e,t){return t&&" "===(e=e.slice(t.length))[0]&&(e=e.slice(1)),e}function fi(e,t,n){if(!n||!n.ignoreRest){return co(e,t,(function(e){if(n&&"end"===e)n.ignoreRest=!0}))}}function pi(e){var t=e.onKeyDown,r=e.international;return n.useCallback((function(e){e.keyCode===hi&&r&&e.target instanceof HTMLInputElement&&e.target.selectionStart===gi?e.preventDefault():t&&t(e)}),[t,r])}var hi=8;var gi=1,mi=["onKeyDown","country","international","withCountryCallingCode","metadata"];function bi(){return bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bi.apply(this,arguments)}function vi(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var yi=function(e){function t(t,r){var o=t.onKeyDown,a=t.country,i=t.international,s=t.withCountryCallingCode,l=t.metadata,d=void 0===l?e:l,c=vi(t,mi),u=n.useCallback((function(e){var t=new li(a,d),n=ci({country:a,international:i,withCountryCallingCode:s,metadata:d}),r=t.input(n+e),o=t.getTemplate();return n&&(r=ui(r,n),o&&(o=ui(o,n))),{text:r,template:o}}),[a,d]),f=pi({onKeyDown:o,international:i});return v.default.createElement(pr,bi({},c,{ref:r,parse:fi,format:u,onKeyDown:f}))}return(t=v.default.forwardRef(t)).propTypes={value:Kn.string.isRequired,onChange:Kn.func.isRequired,onKeyDown:Kn.func,country:Kn.string,international:Kn.bool,withCountryCallingCode:Kn.bool,metadata:Kn.object},t}(),$i=["value","onChange","onKeyDown","country","international","withCountryCallingCode","metadata","inputComponent"];function xi(){return xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xi.apply(this,arguments)}function wi(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ci=function(e){function t(t,r){var o=t.value,a=t.onChange,i=t.onKeyDown,s=t.country,l=t.international,d=t.withCountryCallingCode,c=t.metadata,u=void 0===c?e:c,f=t.inputComponent,p=void 0===f?"input":f,h=wi(t,$i),g=ci({country:s,international:l,withCountryCallingCode:d,metadata:u}),m=n.useCallback((function(e){var t=lo(e.target.value);t===o&&(0===Oi(g,t,s,u).indexOf(e.target.value)&&(t=t.slice(0,-1)));a(t)}),[g,o,a,s,u]),b=pi({onKeyDown:i,international:l});return v.default.createElement(p,xi({},h,{ref:r,value:Oi(g,o,s,u),onChange:m,onKeyDown:b}))}return(t=v.default.forwardRef(t)).propTypes={value:Kn.string.isRequired,onChange:Kn.func.isRequired,onKeyDown:Kn.func,country:Kn.string,international:Kn.bool,withCountryCallingCode:Kn.bool,metadata:Kn.object,inputComponent:Kn.elementType},t}();function Oi(e,t,n,r){return ui(function(e,t,n){return n||(n=t,t=void 0),new li(t,n).input(e)}(e+t,n,r),e)}function ki(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var ji=["value","onChange","options","disabled","readOnly"],Si=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function Ei(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Pi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pi(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Pi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ii(){return Ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ii.apply(this,arguments)}function Ni(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ai(e){var t=e.value,r=e.onChange,o=e.options,a=e.disabled,i=e.readOnly,s=Ni(e,ji),l=n.useCallback((function(e){var t=e.target.value;r("ZZ"===t?void 0:t)}),[r]);return n.useMemo((function(){return Li(o,t)}),[o,t]),v.default.createElement("select",Ii({},s,{disabled:a||i,readOnly:i,value:t||"ZZ",onChange:l}),o.map((function(e){var t=e.value,n=e.label,r=e.divider;return v.default.createElement("option",{key:r?"|":t||"ZZ",value:r?"|":t||"ZZ",disabled:!!r,style:r?Ti:void 0},n)})))}Ai.propTypes={value:Kn.string,onChange:Kn.func.isRequired,options:Kn.arrayOf(Kn.shape({value:Kn.string,label:Kn.string,divider:Kn.bool})).isRequired,disabled:Kn.bool,readOnly:Kn.bool};var Ti={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function Di(e){var t=e.value,r=e.options,o=e.className,a=e.iconComponent;e.getIconAspectRatio;var i,s=e.arrowComponent,l=void 0===s?Fi:s,d=e.unicodeFlags,c=Ni(e,Si),u=n.useMemo((function(){return Li(r,t)}),[r,t]);return v.default.createElement("div",{className:"PhoneInputCountry"},v.default.createElement(Ai,Ii({},c,{value:t,options:r,className:Jn("PhoneInputCountrySelect",o)})),d&&t&&v.default.createElement("div",{className:"PhoneInputCountryIconUnicode"},ki((i=t)[0])+ki(i[1])),!(d&&t)&&v.default.createElement(a,{"aria-hidden":!0,country:t,label:u&&u.label,aspectRatio:d?1:void 0}),v.default.createElement(l,null))}function Fi(){return v.default.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function Li(e,t){for(var n,r=Ei(e);!(n=r()).done;){var o=n.value;if(!o.divider&&o.value===t)return o}}Di.propTypes={iconComponent:Kn.elementType,arrowComponent:Kn.elementType,unicodeFlags:Kn.bool};var Mi=["country","countryName","flags","flagUrl"];function Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ri.apply(this,arguments)}function Bi(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _i(e){var t=e.country,n=e.countryName,r=e.flags,o=e.flagUrl,a=Bi(e,Mi);return r&&r[t]?r[t]({title:n}):v.default.createElement("img",Ri({},a,{alt:n,role:n?void 0:"presentation",src:o.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}_i.propTypes={country:Kn.string.isRequired,countryName:Kn.string.isRequired,flags:Kn.objectOf(Kn.elementType),flagUrl:Kn.string.isRequired};var zi=["aspectRatio"],Ui=["title"],Gi=["title"];function Hi(){return Hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hi.apply(this,arguments)}function Wi(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function qi(e){var t=e.aspectRatio,n=Wi(e,zi);return 1===t?v.default.createElement(Yi,n):v.default.createElement(Vi,n)}function Vi(e){var t=e.title,n=Wi(e,Ui);return v.default.createElement("svg",Hi({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),v.default.createElement("title",null,t),v.default.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},v.default.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),v.default.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),v.default.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),v.default.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),v.default.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),v.default.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),v.default.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}function Yi(e){var t=e.title,n=Wi(e,Gi);return v.default.createElement("svg",Hi({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),v.default.createElement("title",null,t),v.default.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},v.default.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),v.default.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),v.default.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),v.default.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),v.default.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),v.default.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),v.default.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}function Ki(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Xi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xi(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zi(e,t){return!!Wr(e,t)||(console.error("Country not found: ".concat(e)),!1)}function Ji(e,t){return e&&0===(e=e.filter((function(e){return Zi(e,t)}))).length&&(e=void 0),e}qi.propTypes={title:Kn.string.isRequired,aspectRatio:Kn.number},Vi.propTypes={title:Kn.string.isRequired},Yi.propTypes={title:Kn.string.isRequired};var Qi=["country","label","aspectRatio"];function es(){return es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},es.apply(this,arguments)}function ts(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ns(e){var t=e.flags,n=e.flagUrl,r=e.flagComponent,o=e.internationalIcon;function a(e){var a=e.country,i=e.label,s=e.aspectRatio,l=ts(e,Qi),d=o===qi?s:void 0;return v.default.createElement("div",es({},l,{className:Jn("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":1===d,"PhoneInputCountryIcon--border":a})}),a?v.default.createElement(r,{country:a,countryName:i,flags:t,flagUrl:n,className:"PhoneInputCountryIconImg"}):v.default.createElement(o,{title:i,aspectRatio:d,className:"PhoneInputCountryIconImg"}))}return a.propTypes={country:Kn.string,label:Kn.string.isRequired,aspectRatio:Kn.number},a}function rs(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return os(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return os(e,t)}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function os(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function as(e,t){"function"==typeof e?e(t):e.current=t}ns({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:_i,internationalIcon:qi});var is=Kn.shape({country_calling_codes:Kn.object.isRequired,countries:Kn.object.isRequired}),ss=Kn.objectOf(Kn.string);function ls(e,t){return"+"+Hr(e,t)}function ds(e,t){return ya(e||"",t)}function cs(e,t){var n=t.prevCountry,r=t.newCountry,o=t.metadata,a=t.useNationalFormat;if(n===r)return e;if(!e)return a?"":r?ls(r,o):"";if(r){if("+"===e[0]){if(a)return 0===e.indexOf("+"+Hr(r,o))?function(e,t,n){if(t){var r="+"+Hr(t,n);if(e.length<r.length){if(0===r.indexOf(e))return""}else if(0===e.indexOf(r))return e.slice(r.length)}for(var o=0,a=Object.keys(n.country_calling_codes);o<a.length;o++){var i=a[o];if(1===e.indexOf(i))return e.slice(1+i.length)}return""}(e,r,o):"";if(n){var i=ls(r,o);return 0===e.indexOf(i)?e:i}var s=ls(r,o);return 0===e.indexOf(s)?e:s}}else if("+"!==e[0])return us(e,n,o)||"";return e}function us(e,t,n){if(e){if("+"===e[0]){if("+"===e)return;var r=new li(t,n);return r.input(e),r.getNumberValue()}if(t){var o=ms(e,t,n);return"+".concat(Hr(t,n)).concat(o||"")}}}function fs(e,t,n){var r=ms(e,t,n);if(r){var o=r.length-function(e,t){return t=new Mr(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}(t,n);if(o>0)return e.slice(0,e.length-o)}return e}function ps(e,t){var n=t.country,r=t.countries,o=t.defaultCountry,a=t.latestCountrySelectedByUser,i=t.required,s=t.metadata;if("+"===e)return n;var l=function(e,t){var n=new li(null,t);return n.input(e),n.getCountry()}(e,s);if(l)return!r||r.indexOf(l)>=0?l:void 0;if(n)if(bs(e,n,s)){if(a&&bs(e,a,s))return a;if(o&&bs(e,o,s))return o;if(!i)return}else if(!i)return;return n}function hs(e,t,n){if(0===e.indexOf(ls(t,n))){var r=new li(t,n);r.input(e);var o=r.getNumber();return o?o.formatNational().replace(/\D/g,""):""}return e.replace(/\D/g,"")}function gs(e,t,n){return String.prototype.localeCompare?e.localeCompare(t,n):e<t?-1:e>t?1:0}function ms(e,t,n){var r=new li(t,n);r.input(e);var o=r.getNumber();return o&&o.nationalNumber}function bs(e,t,n){for(var r=ls(t,n),o=0;o<e.length&&o<r.length;){if(e[o]!==r[o])return!1;o++}return!0}function vs(e){var t=e.value,n=e.phoneNumber,r=e.defaultCountry,o=e.international,a=e.useNationalFormat,i=e.metadata;return(!1===o||a)&&n&&n.country?function(e){return e.formatNational().replace(/\D/g,"")}(n):!t&&o&&r?ls(r,i):t}function ys(e){return ys="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ys(e)}function $s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$s(Object(n),!0).forEach((function(t){ws(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ws(e,t,n){var r;return r=function(e,t){if("object"!=ys(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ys(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ys(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cs(e,t){return null===e&&(e=void 0),null===t&&(t=void 0),e===t}var Os=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function ks(e){return ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ks(e)}function js(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?js(Object(n),!0).forEach((function(t){Fs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):js(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Es(){return Es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Es.apply(this,arguments)}function Ps(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Is(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ls(r.key),r)}}function Ns(e,t,n){return t=Ts(t),function(e,t){if(t&&("object"===ks(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,As()?Reflect.construct(t,n||[],Ts(e).constructor):t.apply(e,n))}function As(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(As=function(){return!!e})()}function Ts(e){return Ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ts(e)}function Ds(e,t){return Ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ds(e,t)}function Fs(e,t,n){return(t=Ls(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ls(e){var t=function(e,t){if("object"!=ks(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ks(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ks(t)?t:t+""}var Ms=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Fs(n=Ns(this,t,[e]),"setInputRef",(function(e){!function(e,t){for(var n,r=rs(e);!(n=r()).done;){var o=n.value;o&&as(o,t)}}([n.props.inputRef,n.inputRef],e)})),Fs(n,"isCountrySupportedWithError",(function(e){return Zi(e,n.props.metadata)})),Fs(n,"onCountryChange",(function(e){var t=n.props,r=t.international,o=t.metadata,a=t.onChange,i=t.focusInputOnCountrySelection,s=n.state,l=cs(s.phoneDigits,{prevCountry:s.country,newCountry:e,metadata:o,useNationalFormat:!r}),d=us(l,e,o);i&&n.inputRef.current.focus(),n.setState({country:e,latestCountrySelectedByUser:e,hasUserSelectedACountry:!0,phoneDigits:l,value:d},(function(){a(d)}))})),Fs(n,"onChange",(function(e){var t=n.props,r=t.defaultCountry,o=t.onChange,a=t.addInternationalOption,i=t.international,s=t.limitMaxLength,l=t.countryCallingCodeEditable,d=t.metadata,c=n.state,u=c.countries,f=c.phoneDigits,p=c.country,h=c.latestCountrySelectedByUser,g=function(e,t){var n,r=t.prevPhoneDigits,o=t.country,a=t.defaultCountry,i=t.latestCountrySelectedByUser,s=t.countryRequired,l=t.getAnyCountry,d=t.countries,c=t.international,u=t.limitMaxLength,f=t.countryCallingCodeEditable,p=t.metadata;if(c&&!1===f&&o){var h,g=ls(o,p);if(0!==e.indexOf(g))return e&&"+"!==e[0]?h=us(e=g+e,o,p):e=g,{phoneDigits:e,value:h,country:o}}return!1===c&&o&&e&&"+"===e[0]&&(e=hs(e,o,p)),e&&o&&u&&(e=fs(e,o,p)),!e||"+"===e[0]||o&&!c||(e="+"+e),!e&&r&&"+"===r[0]&&(o=c?void 0:a),"+"===e&&r&&"+"===r[0]&&r.length>1&&(o=void 0),e&&(n="+"===e[0]&&("+"===e||o&&0===ls(o,p).indexOf(e))?void 0:us(e,o,p)),n&&(o=ps(n,{country:o,countries:d,defaultCountry:a,latestCountrySelectedByUser:i,required:!1,metadata:p}),!1===c&&o&&e&&"+"===e[0]&&(n=us(e=hs(e,o,p),o,p))),!o&&s&&(o=a||l()),{phoneDigits:e,country:o,value:n}}(e,{prevPhoneDigits:f,country:p,countryRequired:!a,defaultCountry:r,latestCountrySelectedByUser:h,getAnyCountry:function(){return n.getFirstSupportedCountry({countries:u})},countries:u,international:i,limitMaxLength:s,countryCallingCodeEditable:l,metadata:d}),m=g.phoneDigits,b=g.country,v=g.value,y={phoneDigits:m,value:v,country:b};h&&v&&!bs(v,h,d)&&(y.latestCountrySelectedByUser=void 0),!1===l&&(v||m!==n.state.phoneDigits||(y.forceRerender={})),n.setState(y,(function(){return o(v)}))})),Fs(n,"_onFocus",(function(){return n.setState({isFocused:!0})})),Fs(n,"_onBlur",(function(){return n.setState({isFocused:!1})})),Fs(n,"onFocus",(function(e){n._onFocus();var t=n.props.onFocus;t&&t(e)})),Fs(n,"onBlur",(function(e){var t=n.props.onBlur;n._onBlur(),t&&t(e)})),Fs(n,"onCountryFocus",(function(e){n._onFocus();var t=n.props.countrySelectProps;if(t){var r=t.onFocus;r&&r(e)}})),Fs(n,"onCountryBlur",(function(e){n._onBlur();var t=n.props.countrySelectProps;if(t){var r=t.onBlur;r&&r(e)}})),n.inputRef=v.default.createRef();var r=n.props,o=r.value;r.labels;var a=r.international,i=r.addInternationalOption,s=r.displayInitialValueAsLocalNumber,l=r.initialValueFormat,d=r.metadata,c=n.props,u=c.defaultCountry,f=c.countries;u&&(n.isCountrySupportedWithError(u)||(u=void 0)),f=Ji(f,d);var p=ds(o,d);n.CountryIcon=ns(n.props);var h=function(e){var t,n=e.value,r=e.phoneNumber,o=e.defaultCountry,a=e.getAnyCountry,i=e.countries,s=e.required,l=e.metadata;return r&&r.country?t=r.country:o&&(n&&!bs(n,o,l)||(t=o)),i&&i.indexOf(t)<0&&(t=void 0),!t&&s&&i&&i.length>0&&(t=a()),t}({value:o,phoneNumber:p,defaultCountry:u,required:!i,countries:f||di(d),getAnyCountry:function(){return n.getFirstSupportedCountry({countries:f})},metadata:d});return n.state={props:n.props,country:h,countries:f,phoneDigits:vs({value:o,phoneNumber:p,defaultCountry:u,international:a,useNationalFormat:s||"national"===l,metadata:d}),value:o},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ds(e,t)}(t,v.default.PureComponent),n=t,r=[{key:"componentDidMount",value:function(){var e=this.props.onCountryChange,t=this.props.defaultCountry,n=this.state.country;e&&(t&&(this.isCountrySupportedWithError(t)||(t=void 0)),n!==t&&e(n))}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.onCountryChange,r=this.state.country;n&&r!==t.country&&n(r)}},{key:"getCountrySelectOptions",value:function(e){var t=e.countries,n=this.props,r=n.international,o=n.countryCallingCodeEditable,a=n.countryOptionsOrder,i=n.addInternationalOption,s=n.labels,l=n.locales,d=n.metadata;return this.useMemoCountrySelectOptions((function(){return function(e,t){if(!t)return e;for(var n,r=[],o=[],a=r,i=function(){var t=n.value;if("|"===t)a.push({divider:!0});else if("..."===t||"…"===t)a=o;else{var r;r="🌐"===t?void 0:t;var i=e.indexOf(e.filter((function(e){return e.value===r}))[0]),s=e[i];e.splice(i,1),a.push(s)}},s=Ki(t);!(n=s()).done;)i();return r.concat(e).concat(o)}(function(e){var t=e.countries,n=e.countryNames,r=e.addInternationalOption,o=e.compareStringsLocales,a=e.compareStrings;a||(a=gs);var i=t.map((function(e){return{value:e,label:n[e]||e}}));return i.sort((function(e,t){return a(e.label,t.label,o)})),r&&i.unshift({label:n.ZZ}),i}({countries:t||di(d),countryNames:s,addInternationalOption:(!r||!1!==o)&&i,compareStringsLocales:l}),function(e,t){if(e&&(e=e.filter((function(e){switch(e){case"🌐":case"|":case"...":case"…":return!0;default:return Zi(e,t)}}))).length>0)return e}(a,d))}),[t,a,i,s,d])}},{key:"useMemoCountrySelectOptions",value:function(e,t){return this.countrySelectOptionsMemoDependencies&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;){if(e[n]!==t[n])return!1;n++}return!0}(t,this.countrySelectOptionsMemoDependencies)||(this.countrySelectOptionsMemo=e(),this.countrySelectOptionsMemoDependencies=t),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(e){var t=e.countries;return this.getCountrySelectOptions({countries:t})[0].value}},{key:"render",value:function(){var e=this.props,t=e.name,n=e.disabled,r=e.readOnly,o=e.autoComplete,a=e.style,i=e.className;e.inputRef;var s=e.inputComponent,l=e.numberInputProps,d=e.smartCaret,c=e.countrySelectComponent,u=e.countrySelectProps,f=e.containerComponent,p=e.containerComponentProps;e.defaultCountry,e.countries,e.countryOptionsOrder;var h=e.labels;e.flags,e.flagComponent,e.flagUrl,e.addInternationalOption,e.internationalIcon,e.displayInitialValueAsLocalNumber,e.initialValueFormat,e.onCountryChange,e.limitMaxLength,e.countryCallingCodeEditable,e.focusInputOnCountrySelection,e.reset;var g=e.metadata,m=e.international;e.locales;var b=Ps(e,Os),y=this.state,$=y.country,x=y.countries,w=y.phoneDigits,C=y.isFocused,O=d?yi:Ci,k=this.getCountrySelectOptions({countries:x});return v.default.createElement(f,Es({style:a,className:Jn(i,"PhoneInput",{"PhoneInput--focus":C,"PhoneInput--disabled":n,"PhoneInput--readOnly":r})},p),v.default.createElement(c,Es({name:t?"".concat(t,"Country"):void 0,"aria-label":h.country},u,{value:$,options:k,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:n||u&&u.disabled,readOnly:r||u&&u.readOnly,iconComponent:this.CountryIcon})),v.default.createElement(O,Es({ref:this.setInputRef,type:"tel",autoComplete:o},l,b,{international:!!m||void 0,withCountryCallingCode:!!m||void 0,name:t,metadata:g,country:$,value:w||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:n,readOnly:r,inputComponent:s,className:Jn("PhoneInputInput",l&&l.className,b.className)})))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return Ss({props:e},function(e,t,n){var r=e.metadata,o=e.countries,a=e.defaultCountry,i=e.value,s=e.reset,l=e.international,d=e.displayInitialValueAsLocalNumber,c=e.initialValueFormat,u=t.defaultCountry,f=t.value,p=t.reset;n.country;var h=n.value,g=n.hasUserSelectedACountry,m=n.latestCountrySelectedByUser,b=function(e){return vs(xs(xs({},e),{},{international:l,useNationalFormat:d||"national"===c,metadata:r}))};if(s!==p)return{phoneDigits:b({value:void 0,defaultCountry:a}),value:void 0,country:a,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(a!==u){var v=!a||Zi(a,r),y=!h||l&&h===b({value:void 0,defaultCountry:u});if(!g&&v&&!i&&y)return{country:a,phoneDigits:b({value:void 0,defaultCountry:a}),value:void 0}}if(!Cs(i,f)&&!Cs(i,h)){var $,x,w;if(i){$=ds(i,r);var C=Ji(o,r);$&&$.country?(!C||C.indexOf($.country)>=0)&&(x=$.country):(x=ps(i,{country:void 0,countries:C,metadata:r}))||a&&0===i.indexOf(ls(a,r))&&(x=a)}return i?m&&((x?m===x:bs(i,m,r))?x||(x=m):w={latestCountrySelectedByUser:void 0}):w={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0},xs(xs({},w),{},{phoneDigits:b({phoneNumber:$,value:i,defaultCountry:a}),value:i,country:i?x:a})}}(e,t.props,t))}}],r&&Is(n.prototype,r),o&&Is(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(),Rs=v.default.forwardRef((function(e,t){return v.default.createElement(Ms,Es({},function(e){for(var t in e=Ss({},e),Bs)void 0===e[t]&&(e[t]=Bs[t]);return e}(e),{inputRef:t}))}));Rs.propTypes={value:Kn.string,onChange:Kn.func.isRequired,onFocus:Kn.func,onBlur:Kn.func,disabled:Kn.bool,readOnly:Kn.bool,autoComplete:Kn.string,initialValueFormat:Kn.oneOf(["national"]),displayInitialValueAsLocalNumber:Kn.bool,defaultCountry:Kn.string,countries:Kn.arrayOf(Kn.string),labels:ss,locales:Kn.oneOfType([Kn.string,Kn.arrayOf(Kn.string)]),flagUrl:Kn.string,flags:Kn.objectOf(Kn.elementType),flagComponent:Kn.elementType,addInternationalOption:Kn.bool,internationalIcon:Kn.elementType,countryOptionsOrder:Kn.arrayOf(Kn.string),style:Kn.object,className:Kn.string,countrySelectComponent:Kn.elementType,countrySelectProps:Kn.object,inputComponent:Kn.elementType,numberInputProps:Kn.object,containerComponent:Kn.elementType,containerComponentProps:Kn.object,smartCaret:Kn.bool,international:Kn.bool,limitMaxLength:Kn.bool,countryCallingCodeEditable:Kn.bool,metadata:is,onCountryChange:Kn.func,focusInputOnCountrySelection:Kn.bool};var Bs={autoComplete:"tel",countrySelectComponent:Di,flagComponent:_i,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:qi,inputComponent:"input",containerComponent:"div",reset:Kn.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0};function _s(e){return _s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_s(e)}function zs(e,t,n){if(n||"object"===_s(t)&&(n=t,t="NATIONAL"),!e)return"";var r=ya(e,n);if(!r)return"";switch(t){case"National":t="NATIONAL";break;case"International":t="INTERNATIONAL"}return r.format(t)}var Us={version:4,country_calling_codes:{1:["US","CA"],7:["RU"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],39:["IT"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG"],45:["DK"],46:["SE"],47:["NO"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],54:["AR"],55:["BR"],57:["CO"],61:["AU"],64:["NZ"],65:["SG"],66:["TH"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],212:["MA"],213:["DZ"],216:["TN"],225:["CI"],226:["BF"],231:["LR"],237:["CM"],240:["GQ"],251:["ET"],256:["UG"],262:["RE"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],358:["FI"],370:["LT"],371:["LV"],372:["EE"],376:["AD"],377:["MC"],380:["UA"],381:["RS"],385:["HR"],386:["SI"],420:["CZ"],421:["SK"],590:["GP"],594:["GF"],596:["MQ"],687:["NC"],689:["PF"],852:["HK"],961:["LB"],971:["AE"],972:["IL"]},countries:{AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,0,"0011"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:1[3-79]|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-2]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]]],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0"],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:22|44|7[27]|87|9[69])[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-689]|8[1-69]|9[1-578])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0"],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:5056(?:[0-35-9]\\d|4[468])|7302[0-4]\\d)\\d{4}|(?:472[24]|505[2-57-9]|7306|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"]]],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"]},nonGeographic:{}};const Gs=["AD","AE","AR","AT","AU","BE","BF","BR","CA","CH","CI","CM","CN","CO","CZ","DE","DK","EE","DZ","ES","ET","FI","FR","GB","GF","GG","GI","GP","GR","GQ","HK","HR","IE","IL","IN","IS","IT","LB","LR","LT","LU","LV","MA","MC","MQ","MX","NC","NL","NO","NZ","PE","PF","PK","PL","PT","RE","RO","RS","RU","SE","SG","SI","SK","TH","TN","TR","UA","UG","US","VN","ZA"],Hs={ext:"ext.",country:"Select phone number country",phone:"Phone",AD:"Andorra",AE:"United Arab Emirates",AR:"Argentina",AT:"Austria",AU:"Australia",BE:"Belgium",BF:"Burkina Faso",BR:"Brazil",CA:"Canada",CH:"Switzerland",CI:"Ivory Coast",CM:"Cameroun",CN:"China",CO:"Colombia",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",DZ:"Algeria",EE:"Estonia",ES:"Spain",ET:"Ethiopia",FI:"Finland",FR:"France",GB:"United Kingdom",GF:"French Guyana",GG:"Guernsey",GI:"Gibraltar",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",HK:"Hong Kong",HR:"Croatia",IE:"Ireland",IL:"Israel",IN:"India",IS:"Iceland",IT:"Italia",LB:"Lebanon",LR:"Liberia",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",MA:"Morocco",MC:"Monaco",MQ:"Martinique",MX:"Mexico",NC:"New Caledonia",NL:"Netherlands",NO:"Norway",NZ:"New Zealand",PE:"Peru",PF:"French Polynesia",PK:"Pakistan",PL:"Poland",PT:"Portugal",RE:"Reunion Island",RO:"Romania",RS:"Serbia",RU:"Russia",SE:"Sweden",SG:"Singapore",SI:"Slovenia",SK:"Slovakia",TH:"Thailand",TN:"Tunisia",TR:"Turkey",UA:"Ukraine",UG:"Uganda",US:"United States",VN:"Vietnam",ZA:"South Africa"},Ws=y.default.div`
|
|
598
589
|
position: relative;
|
|
599
590
|
padding-left: ${D(22)};
|
|
600
591
|
|
|
@@ -616,7 +607,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
616
607
|
|
|
617
608
|
.PhoneInputCountrySelect {
|
|
618
609
|
option {
|
|
619
|
-
font-size: ${
|
|
610
|
+
font-size: ${R.base};
|
|
620
611
|
font-weight: lighter;
|
|
621
612
|
}
|
|
622
613
|
}
|
|
@@ -647,12 +638,12 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
647
638
|
display: none;
|
|
648
639
|
}
|
|
649
640
|
`}
|
|
650
|
-
`,
|
|
641
|
+
`,qs=({id:t,disabled:r,value:o,handleBlur:a,handleOnChange:i,handleFocus:s,dataTest:l,required:d=!1,phoneWithFlags:c=!0})=>{const[u,f]=n.useState(o||"");return e.jsx(Ws,{"data-test":l||"phone-wrapper",onBlur:a,onFocus:s,phoneWithFlags:c,children:e.jsx(Rs,{addInternationalOption:!1,id:t,metadata:Us,"data-test":"phone-input",defaultCountry:"FR",countries:Gs,flagUrl:"https://cdn.proprioo.fr/assets/flags/{XX}.svg",labels:Hs,value:o||"",disabled:r,autoComplete:"off",required:d,onFocus:s,onChange:e=>{e!==u&&i({target:{value:e,selectionStart:null}}),f(e)},countrySelectProps:{arrowComponent:()=>e.jsx(n.Fragment,{})}})})};function Vs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Ys(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;var Ks={exports:{}};!function(e){var t={domainThreshold:2,secondLevelThreshold:2,topLevelThreshold:2,defaultDomains:["msn.com","bellsouth.net","telus.net","comcast.net","optusnet.com.au","earthlink.net","qq.com","sky.com","icloud.com","mac.com","sympatico.ca","googlemail.com","att.net","xtra.co.nz","web.de","cox.net","gmail.com","ymail.com","aim.com","rogers.com","verizon.net","rocketmail.com","google.com","optonline.net","sbcglobal.net","aol.com","me.com","btinternet.com","charter.net","shaw.ca"],defaultSecondLevelDomains:["yahoo","hotmail","mail","live","outlook","gmx"],defaultTopLevelDomains:["com","com.au","com.tw","ca","co.nz","co.uk","de","fr","it","ru","net","org","edu","gov","jp","nl","kr","se","eu","ie","co.il","us","at","be","dk","hk","es","gr","ch","no","cz","in","net","net.au","info","biz","mil","co.jp","sg","hu"],run:function(e){e.domains=e.domains||t.defaultDomains,e.secondLevelDomains=e.secondLevelDomains||t.defaultSecondLevelDomains,e.topLevelDomains=e.topLevelDomains||t.defaultTopLevelDomains,e.distanceFunction=e.distanceFunction||t.sift3Distance;var n=function(e){return e},r=e.suggested||n,o=e.empty||n,a=t.suggest(t.encodeEmail(e.email),e.domains,e.secondLevelDomains,e.topLevelDomains,e.distanceFunction);return a?r(a):o()},suggest:function(e,t,n,r,o){e=e.toLowerCase();var a=this.splitEmail(e);if(n&&r&&-1!==n.indexOf(a.secondLevelDomain)&&-1!==r.indexOf(a.topLevelDomain))return!1;if(l=this.findClosestDomain(a.domain,t,o,this.domainThreshold))return l!=a.domain&&{address:a.address,domain:l,full:a.address+"@"+l};var i=this.findClosestDomain(a.secondLevelDomain,n,o,this.secondLevelThreshold),s=this.findClosestDomain(a.topLevelDomain,r,o,this.topLevelThreshold);if(a.domain){var l=a.domain,d=!1;if(i&&i!=a.secondLevelDomain&&(l=l.replace(a.secondLevelDomain,i),d=!0),s&&s!=a.topLevelDomain&&(l=l.replace(a.topLevelDomain,s),d=!0),1==d)return{address:a.address,domain:l,full:a.address+"@"+l}}return!1},findClosestDomain:function(e,t,n,r){var o;r=r||this.topLevelThreshold;var a=99,i=null;if(!e||!t)return!1;n||(n=this.sift3Distance);for(var s=0;s<t.length;s++){if(e===t[s])return e;(o=n(e,t[s]))<a&&(a=o,i=t[s])}return a<=r&&null!==i&&i},sift3Distance:function(e,t){if(null==e||0===e.length)return null==t||0===t.length?0:t.length;if(null==t||0===t.length)return e.length;for(var n=0,r=0,o=0,a=0;n+r<e.length&&n+o<t.length;){if(e.charAt(n+r)==t.charAt(n+o))a++;else{r=0,o=0;for(var i=0;i<5;i++){if(n+i<e.length&&e.charAt(n+i)==t.charAt(n)){r=i;break}if(n+i<t.length&&e.charAt(n)==t.charAt(n+i)){o=i;break}}}n++}return(e.length+t.length)/2-a},splitEmail:function(e){var t=e.trim().split("@");if(t.length<2)return!1;for(var n=0;n<t.length;n++)if(""===t[n])return!1;var r=t.pop(),o=r.split("."),a="",i="";if(0==o.length)return!1;if(1==o.length)i=o[0];else{a=o[0];for(n=1;n<o.length;n++)i+=o[n]+".";i=i.substring(0,i.length-1)}return{topLevelDomain:i,secondLevelDomain:a,domain:r,address:t.join("@")}},encodeEmail:function(e){var t=encodeURI(e);return t=t.replace("%20"," ").replace("%25","%").replace("%5E","^").replace("%60","`").replace("%7B","{").replace("%7C","|").replace("%7D","}")}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.jQuery&&(jQuery.fn.mailcheck=function(e){var n=this;if(e.suggested){var r=e.suggested;e.suggested=function(e){r(n,e)}}if(e.empty){var o=e.empty;e.empty=function(){o.call(null,n)}}e.email=this.val(),t.run(e)})}(Ks);var Xs=wn(Ks.exports);function Zs(e,t){const[r,o]=n.useState(e);return n.useEffect((()=>{if(t>0){const n=setTimeout((()=>{o(e)}),t);return()=>{clearTimeout(n)}}}),[e,t]),0===t?e:r}const Js=["gmail.com","yahoo.fr","hotmail.fr","hotmail.com","wanadoo.fr","orange.fr","free.fr","yahoo.com","live.fr","outlook.fr","laposte.net","icloud.com","sfr.fr","outlook.com","me.com","aol.com","neuf.fr","msn.com","yopmail.com","ymail.com","club-internet.fr","live.com","bbox.fr"],Qs=["com","net","org","edu","info","be","ch","de","es","eu","fr"];function el({debounce:e=500,email:t}){const[r,o]=n.useState(void 0),a=Zs(r,e);return n.useEffect((()=>{var e;t&&(e=t,Xs.run({email:e,domains:Js,topLevelDomains:Qs,suggested:e=>{o(e.full)}}))}),[t]),a}const tl=y.default.div`
|
|
651
642
|
${Z.body2}
|
|
652
643
|
color: ${T.green.base};
|
|
653
644
|
padding: 0 ${D(16)};
|
|
654
645
|
margin-top: ${D(8)};
|
|
655
|
-
`,
|
|
646
|
+
`,nl=y.default.button`
|
|
656
647
|
border: none;
|
|
657
648
|
margin: 0;
|
|
658
649
|
padding: 0;
|
|
@@ -675,15 +666,15 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
675
666
|
-moz-osx-font-smoothing: inherit;
|
|
676
667
|
|
|
677
668
|
-webkit-appearance: none;
|
|
678
|
-
`,
|
|
669
|
+
`,rl={yes:"Oui",no:"Non",suggestion:e=>`Vouliez-vous écrire ${e} ?`};function ol(t){var{disabled:r,i18nLabels:o=rl,isSuggestionEnabled:a=!0,onBlur:i,onChange:s,onFocus:l,type:d,value:c}=t,u=Vs(t,["disabled","i18nLabels","isSuggestionEnabled","onBlur","onChange","onFocus","type","value"]);const[f,p]=n.useState(!1),[h,g]=n.useState(null),m=el({debounce:0,email:c}),b=e=>{s&&s(e)};return n.useEffect((()=>{!a||r||f||m&&h!==m&&g(m)}),[f]),n.useEffect((()=>{c===h&&g(null)}),[h,c]),n.useEffect((()=>{a&&!r||!h||g(null)}),[r,a]),e.jsxs(n.Fragment,{children:[e.jsx($e,Object.assign({},u,{disabled:r,type:exports.InputType.EMAIL,onBlur:()=>{f&&p(!1),i&&i()},onChange:b,onFocus:()=>{f||p(!0),l&&l()},value:c})),h&&e.jsxs(tl,{"data-test":"email-suggestion",children:[o.suggestion(h)," ",e.jsx(nl,{type:"button",onClick:()=>{m&&b(m)},children:o.yes})," ","-"," ",e.jsx(nl,{type:"button",onClick:()=>{g(null)},children:o.no})]})]})}const al=()=>e.jsx("svg",{viewBox:"0 0 32 32",children:e.jsx("path",{fill:"currentColor",d:"M16.5 16 12 20.5l1.527 1.5 5.973-6-5.973-6L12 11.5z"})}),il=y.default.select`
|
|
679
670
|
position: absolute;
|
|
680
671
|
top: 0;
|
|
681
672
|
left: 0;
|
|
682
673
|
width: 100%;
|
|
683
674
|
height: 100%;
|
|
684
675
|
opacity: 0;
|
|
685
|
-
`,
|
|
686
|
-
${
|
|
676
|
+
`,sl=({onChange:t,onClickOutside:n,displayOption:r,options:o,label:a})=>e.jsxs(il,{onChange:t,onPointerOut:n,value:r.value,"data-test":"select-layout",children:[e.jsx("option",{disabled:!0,value:"","data-test":"native-default-option",children:a}),o.map((({value:t,label:n},r)=>e.jsx("option",{value:t,"data-test":`option-label-${t}`,children:n},r)))]}),ll=()=>e.jsx("svg",{viewBox:"0 0 32 32",children:e.jsx("path",{fill:"currentColor",d:"M8.472 0L3.472 4.964 1.528 3.035 0 4.553 3.472 8 10 1.518z",transform:"translate(11 12)"})}),dl=y.default.div`
|
|
677
|
+
${M};
|
|
687
678
|
width: 100%;
|
|
688
679
|
overflow: hidden;
|
|
689
680
|
text-overflow: ellipsis;
|
|
@@ -693,7 +684,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
693
684
|
${e=>!e.isSelected&&o.css`
|
|
694
685
|
padding-right: 0;
|
|
695
686
|
`}
|
|
696
|
-
`,
|
|
687
|
+
`,cl=y.default.div`
|
|
697
688
|
position: relative;
|
|
698
689
|
display: flex;
|
|
699
690
|
align-items: center;
|
|
@@ -717,7 +708,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
717
708
|
${e=>e.isSelected&&o.css`
|
|
718
709
|
background: ${T.terracota.base20};
|
|
719
710
|
`};
|
|
720
|
-
`,
|
|
711
|
+
`,ul=y.default.div`
|
|
721
712
|
width: ${D(32)};
|
|
722
713
|
height: ${D(32)};
|
|
723
714
|
position: absolute;
|
|
@@ -729,7 +720,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
729
720
|
width: 100%;
|
|
730
721
|
height: 100%;
|
|
731
722
|
}
|
|
732
|
-
`,
|
|
723
|
+
`,fl=(e,t)=>t===e,pl=({option:t,value:n,onSelect:r})=>{const o=fl(t.value,n);return e.jsx(cl,{"data-test":"option-layout",isSelected:o,onMouseDown:r,children:e.jsxs(dl,{"data-test":`option-label-${t.value}`,isSelected:o,title:t.label,children:[t.label,o&&e.jsx(ul,{"data-test":`checked-icon-${t.value}`,children:e.jsx(ll,{})})]})})};var hl;!function(e){e.LEFT="left",e.RIGHT="right"}(hl||(hl={}));const gl=y.default.div`
|
|
733
724
|
position: absolute;
|
|
734
725
|
width: 100%;
|
|
735
726
|
top: ${D(60)};
|
|
@@ -740,27 +731,27 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
740
731
|
border: ${D(1)} solid ${T.terracota.base};
|
|
741
732
|
overflow: hidden;
|
|
742
733
|
|
|
743
|
-
${({optionsAlign:e})=>e
|
|
734
|
+
${({optionsAlign:e})=>e===hl.RIGHT&&o.css`
|
|
744
735
|
right: 0;
|
|
745
736
|
`}
|
|
746
737
|
|
|
747
738
|
${({optionsMinWidth:e})=>e&&o.css`
|
|
748
739
|
min-width: ${D(e)};
|
|
749
740
|
`}
|
|
750
|
-
`,
|
|
741
|
+
`,ml=y.default.div`
|
|
751
742
|
${te};
|
|
752
743
|
overflow: auto;
|
|
753
744
|
height: 100%;
|
|
754
745
|
max-height: ${D(100)};
|
|
755
746
|
cursor: pointer;
|
|
756
|
-
`,
|
|
757
|
-
${
|
|
747
|
+
`,bl=y.default.div`
|
|
748
|
+
${M};
|
|
758
749
|
margin: ${D(2)} 0 0;
|
|
759
750
|
|
|
760
751
|
:first-child {
|
|
761
752
|
margin-top: 0;
|
|
762
753
|
}
|
|
763
|
-
`;class
|
|
754
|
+
`;class vl extends n.PureComponent{constructor(e){super(e),this.selectItem=this.selectItem.bind(this)}selectItem(e){const{onClose:t,onSelect:n}=this.props;n(e),t()}componentDidUpdate(){const{selectedOptionRef:e}=this.props;e.current&&e.current.scrollIntoView&&e.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"})}render(){const{isOpen:t,options:n,optionsMinWidth:r,optionsAlign:o,selectRef:a,selectedOptionRef:i,value:s}=this.props;return t?e.jsx(gl,{optionsMinWidth:r,optionsAlign:o,"data-test":"select-layout",ref:a,onMouseDown:e=>e.stopPropagation(),children:e.jsx(ml,{role:"list",children:n.map(((t,n)=>e.jsx(bl,{"aria-label":t.label,role:"listitem",ref:fl(t.value,s)?i:void 0,children:e.jsx(pl,{value:s,option:t,onSelect:()=>this.selectItem(t)})},n)))})}):null}}var yl=n.forwardRef(((t,n)=>e.jsx(vl,Object.assign({ref:n},t))));const $l=y.default.div`
|
|
764
755
|
position: absolute;
|
|
765
756
|
top: ${D(8)};
|
|
766
757
|
right: ${D(16)};
|
|
@@ -773,7 +764,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
773
764
|
${({isOpen:e})=>e&&o.css`
|
|
774
765
|
transform: rotate(-90deg);
|
|
775
766
|
`};
|
|
776
|
-
`,
|
|
767
|
+
`,xl=y.default.div`
|
|
777
768
|
position: relative;
|
|
778
769
|
z-index: 0;
|
|
779
770
|
width: 100%;
|
|
@@ -789,7 +780,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
789
780
|
max-width: calc(100% - ${D(100)});
|
|
790
781
|
`}
|
|
791
782
|
}
|
|
792
|
-
`,
|
|
783
|
+
`,wl=y.default.input`
|
|
793
784
|
${de};
|
|
794
785
|
cursor: pointer;
|
|
795
786
|
|
|
@@ -808,11 +799,11 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
808
799
|
${({error:e})=>e&&o.css`
|
|
809
800
|
padding-left: ${D(48)};
|
|
810
801
|
|
|
811
|
-
${
|
|
802
|
+
${$l} {
|
|
812
803
|
color: ${T.red.base};
|
|
813
804
|
}
|
|
814
805
|
`}
|
|
815
|
-
`,Pl={value:"",label:""},Il=(e,t)=>{const n=e.find((({value:e})=>e===t));return n?n.label:""},Nl=({label:t,disabled:r,error:o,onChange:a,onFocus:i,onBlur:s,onSelect:l,zIndex:d=0,value:c,option:u,options:f,dataTest:p,outline:h,optionsMinWidth:g,optionsAlign:m,native:b=!1,isAutocomplete:y=!1})=>{const v=n.useRef(null),$=n.useRef(null),x=n.useRef(null),[w,C]=n.useState({isFocused:!1,isOpen:!1}),{isFocused:O,isOpen:k}=w,j=()=>{C({isFocused:!1,isOpen:!1})},E=({target:e})=>{e!==$.current&&(k||i&&i(),k&&s&&s(),C(Object.assign(Object.assign({},w),{isOpen:!k})))},P=()=>{k&&j()};S(v,P);const I=Object.assign(Object.assign({},Pl),u);return e.jsx(Sl,{ref:v,"data-test":p?`select-wrapper-${p}`:"select-wrapper",isOpen:k,error:o,onBlur:()=>{C({isOpen:!1,isFocused:!1}),s&&s()},onFocus:()=>{C({isOpen:!0,isFocused:!0}),i&&i()},onMouseDown:e=>{e.stopPropagation(),r||E(e)},children:e.jsx($e,Object.assign({dataTest:p?`input-select-wrapper-${p}`:"input-select-wrapper",disabled:r,error:o,label:t,field:b&&!r?e.jsx(pl,{label:t,displayOption:I,options:f,onChange:e=>{if(!r){const t=e.target.value,n={label:Il(f,t),value:t};E(e),l(n)}},onClickOutside:P}):e.jsx(kl,{isOpen:k,options:f,optionsMinWidth:g,optionsAlign:m,selectRef:$,selectedOptionRef:x,value:I.value,onClose:j,onSelect:l}),focused:O,outline:h,selectOnFocus:y,value:y&&c?c:I.label,zIndex:k?10:d},y&&a&&{onChange:a},!y&&{displayField:e.jsxs(n.Fragment,{children:[e.jsx(El,{readOnly:!0,"aria-label":t,value:I.label,isOpen:k,disabled:r,error:o,"data-test":p?`${p}-value`:"select-wrapper-value"}),!r&&e.jsx(jl,{isOpen:k,children:e.jsx(ul,{})})]})}))})},Al=[{label:"Anglais",value:r.Language.ENGLISH},{label:"Français",value:r.Language.FRENCH},{label:"Italien",value:r.Language.ITALIAN},{label:"Espagnol",value:r.Language.SPANISH}],Tl={email:"Email",firstName:"Prénom",language:"Préférences de langue",lastName:"Nom",phone:"Téléphone"},Dl={email:"Votre email est invalide",firstName:"Votre prénom doit comporter au moins une lettre, aucun chiffre et caractère spécial",language:"Une option doit être sélectionnée parmi la liste déroulante",lastName:"Votre nom doit comporter au moins une lettre, aucun chiffre et caractère spécial",phone:"Numéro de téléphone incorrect"},Fl=e=>e.trim();var Ll=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;const Rl=e=>e.includes("+")?e.includes("+33")?qs(e,Ys):function(e,t){return qs(e,"INTERNATIONAL",t)}(e,Ys):r.formatPhoneNumber(e),Ml=e=>function(){var e=Sa(arguments),t=e.text,n=e.options,r=e.metadata,o=Na(t,n=Da(Da({},n),{},{extract:!1}),r);return o&&o.isValid()||!1}(e,Ys),_l=e=>Aa(e,Ys),Bl=x.string().required().min(1).matches(/^[A-z\u00C0-\u00ff\s]*((-|')*[A-z\u00C0-\u00ff\s])*$/),zl=x.object({firstName:Bl,lastName:Bl,email:x.string().required().test("email","email error",(e=>!e||function(e){if(!e)return!1;if(e.length>254)return!1;if(!Ll.test(e))return!1;var t=e.split("@");return!(t[0].length>64||t[1].split(".").some((function(e){return e.length>63})))}(e))),phone:x.string().required().test("phone","phone error",(e=>!e||Ml(e)))}),Ul="dd/MM/yyyy",Gl=e=>b.default(e,"yyyy-MM-dd"),Wl=e=>C.default(e)&&w.default(e,new Date(1e3,0,1)),Hl=t=>{var{label:r="dd/mm/yyyy",value:o,dataTest:a,onChange:i}=t,s=Qs(t,["label","value","dataTest","onChange"]);const[l,d]=n.useState(o?(c=new Date(o),b.default(c,Ul)):"");var c;return e.jsx($e,Object.assign({},s,{onChange:e=>{if(0===e.length)d(e),i(e);else{const t=(e=>2===e.length&&!e.slice(0,2).includes("/")||5===e.length&&!e.slice(3,5).includes("/")?`${e}/`:e.substr(0,10))(e),n=O.default(t,Ul,new Date);e.length>l.length?(Wl(n)?i(Gl(n)):i(null),d(t)):(d(e),i(null))}},label:r,value:l,dataTest:a||"input-date"}))};var Vl={},ql={},Yl=NaN,Kl="[object Symbol]",Xl=/^\s+|\s+$/g,Zl=/^[-+]0x[0-9a-f]+$/i,Jl=/^0b[01]+$/i,Ql=/^0o[0-7]+$/i,ed=parseInt,td="object"==typeof Sn&&Sn&&Sn.Object===Object&&Sn,nd="object"==typeof self&&self&&self.Object===Object&&self,rd=td||nd||Function("return this")(),od=Object.prototype.toString,ad=Math.max,id=Math.min,sd=function(){return rd.Date.now()};function ld(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function dd(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&od.call(e)==Kl}(e))return Yl;if(ld(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ld(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Xl,"");var n=Jl.test(e);return n||Ql.test(e)?ed(e.slice(2),n?2:8):Zl.test(e)?Yl:+e}var cd=function(e,t,n){var r,o,a,i,s,l,d=0,c=!1,u=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,a=o;return r=o=void 0,d=t,i=e.apply(a,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||u&&e-d>=a}function g(){var e=sd();if(h(e))return m(e);s=setTimeout(g,function(e){var n=t-(e-l);return u?id(n,a-(e-d)):n}(e))}function m(e){return s=void 0,f&&r?p(e):(r=o=void 0,i)}function b(){var e=sd(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return d=e,s=setTimeout(g,t),c?p(e):i}(l);if(u)return s=setTimeout(g,t),p(l)}return void 0===s&&(s=setTimeout(g,t)),i}return t=dd(t)||0,ld(n)&&(c=!!n.leading,a=(u="maxWait"in n)?ad(dd(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),b.cancel=function(){void 0!==s&&clearTimeout(s),d=0,r=l=o=s=void 0},b.flush=function(){return void 0===s?i:m(sd())},b},ud={};Object.defineProperty(ud,"__esModule",{value:!0}),ud.compose=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e&&e.apply(void 0,n)}))}},ud.pick=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(t,n){return e&&e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})},Object.defineProperty(ql,"__esModule",{value:!0});var fd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pd=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),hd=yd(y.default),gd=yd(er),md=yd(cd),bd=ud;function yd(e){return e&&e.__esModule?e:{default:e}}var vd=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.init=function(){if(!window.google)throw new Error("[react-places-autocomplete]: Google Maps JavaScript API library must be loaded. See: https://github.com/kenny-hibino/react-places-autocomplete#load-google-library");if(!window.google.maps.places)throw new Error("[react-places-autocomplete]: Google Maps Places library must be loaded. Please add `libraries=places` to the src URL. See: https://github.com/kenny-hibino/react-places-autocomplete#load-google-library");n.autocompleteService=new window.google.maps.places.AutocompleteService,n.autocompleteOK=window.google.maps.places.PlacesServiceStatus.OK,n.setState((function(e){return e.ready?null:{ready:!0}}))},n.autocompleteCallback=function(e,t){if(n.setState({loading:!1}),t===n.autocompleteOK){var r=n.props.highlightFirstSuggestion;n.setState({suggestions:e.map((function(e,t){return{id:e.id,description:e.description,placeId:e.place_id,active:!(!r||0!==t),index:t,formattedSuggestion:(n=e.structured_formatting,{mainText:n.main_text,secondaryText:n.secondary_text}),matchedSubstrings:e.matched_substrings,terms:e.terms,types:e.types};var n}))})}else n.props.onError(t,n.clearSuggestions)},n.fetchPredictions=function(){var e=n.props.value;e.length&&(n.setState({loading:!0}),n.autocompleteService.getPlacePredictions(fd({},n.props.searchOptions,{input:e}),n.autocompleteCallback))},n.clearSuggestions=function(){n.setState({suggestions:[]})},n.clearActive=function(){n.setState({suggestions:n.state.suggestions.map((function(e){return fd({},e,{active:!1})}))})},n.handleSelect=function(e,t,r){n.clearSuggestions(),n.props.onSelect?n.props.onSelect(e,t,r):n.props.onChange(e)},n.getActiveSuggestion=function(){return n.state.suggestions.find((function(e){return e.active}))},n.selectActiveAtIndex=function(e){var t=n.state.suggestions.find((function(t){return t.index===e})).description;n.setActiveAtIndex(e),n.props.onChange(t)},n.selectUserInputValue=function(){n.clearActive(),n.props.onChange(n.state.userInputValue)},n.handleEnterKey=function(){var e=n.getActiveSuggestion();void 0===e?n.handleSelect(n.props.value,null,null):n.handleSelect(e.description,e.placeId,e)},n.handleDownKey=function(){if(0!==n.state.suggestions.length){var e=n.getActiveSuggestion();void 0===e?n.selectActiveAtIndex(0):e.index===n.state.suggestions.length-1?n.selectUserInputValue():n.selectActiveAtIndex(e.index+1)}},n.handleUpKey=function(){if(0!==n.state.suggestions.length){var e=n.getActiveSuggestion();void 0===e?n.selectActiveAtIndex(n.state.suggestions.length-1):0===e.index?n.selectUserInputValue():n.selectActiveAtIndex(e.index-1)}},n.handleInputKeyDown=function(e){switch(e.key){case"Enter":e.preventDefault(),n.handleEnterKey();break;case"ArrowDown":e.preventDefault(),n.handleDownKey();break;case"ArrowUp":e.preventDefault(),n.handleUpKey();break;case"Escape":n.clearSuggestions()}},n.setActiveAtIndex=function(e){n.setState({suggestions:n.state.suggestions.map((function(t,n){return fd({},t,n===e?{active:!0}:{active:!1})}))})},n.handleInputChange=function(e){var t=e.target.value;n.props.onChange(t),n.setState({userInputValue:t}),t?n.props.shouldFetchSuggestions&&n.debouncedFetchPredictions():n.clearSuggestions()},n.handleInputOnBlur=function(){n.mousedownOnSuggestion||n.clearSuggestions()},n.getActiveSuggestionId=function(){var e=n.getActiveSuggestion();return e?"PlacesAutocomplete__suggestion-"+e.placeId:void 0},n.getIsExpanded=function(){return n.state.suggestions.length>0},n.getInputProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.hasOwnProperty("value"))throw new Error("[react-places-autocomplete]: getInputProps does not accept `value`. Use `value` prop instead");if(e.hasOwnProperty("onChange"))throw new Error("[react-places-autocomplete]: getInputProps does not accept `onChange`. Use `onChange` prop instead");var t={type:"text",autoComplete:"off",role:"combobox","aria-autocomplete":"list","aria-expanded":n.getIsExpanded(),"aria-activedescendant":n.getActiveSuggestionId(),disabled:!n.state.ready};return fd({},t,e,{onKeyDown:(0,bd.compose)(n.handleInputKeyDown,e.onKeyDown),onBlur:(0,bd.compose)(n.handleInputOnBlur,e.onBlur),value:n.props.value,onChange:function(e){n.handleInputChange(e)}})},n.getSuggestionItemProps=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.handleSuggestionMouseEnter.bind(n,e.index),o=n.handleSuggestionClick.bind(n,e);return fd({},t,{key:e.id,id:n.getActiveSuggestionId(),role:"option",onMouseEnter:(0,bd.compose)(r,t.onMouseEnter),onMouseLeave:(0,bd.compose)(n.handleSuggestionMouseLeave,t.onMouseLeave),onMouseDown:(0,bd.compose)(n.handleSuggestionMouseDown,t.onMouseDown),onMouseUp:(0,bd.compose)(n.handleSuggestionMouseUp,t.onMouseUp),onTouchStart:(0,bd.compose)(n.handleSuggestionTouchStart,t.onTouchStart),onTouchEnd:(0,bd.compose)(n.handleSuggestionMouseUp,t.onTouchEnd),onClick:(0,bd.compose)(o,t.onClick)})},n.handleSuggestionMouseEnter=function(e){n.setActiveAtIndex(e)},n.handleSuggestionMouseLeave=function(){n.mousedownOnSuggestion=!1,n.clearActive()},n.handleSuggestionMouseDown=function(e){e.preventDefault(),n.mousedownOnSuggestion=!0},n.handleSuggestionTouchStart=function(){n.mousedownOnSuggestion=!0},n.handleSuggestionMouseUp=function(){n.mousedownOnSuggestion=!1},n.handleSuggestionClick=function(e,t){t&&t.preventDefault&&t.preventDefault();var r=e.description,o=e.placeId;n.handleSelect(r,o,e),setTimeout((function(){n.mousedownOnSuggestion=!1}))},n.state={loading:!1,suggestions:[],userInputValue:e.value,ready:!e.googleCallbackName},n.debouncedFetchPredictions=(0,md.default)(n.fetchPredictions,e.debounce),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,hd.default.Component),pd(t,[{key:"componentDidMount",value:function(){var e=this.props.googleCallbackName;e?window.google&&window.google.maps&&window.google.maps.places?this.init():window[e]=this.init:this.init()}},{key:"componentWillUnmount",value:function(){var e=this.props.googleCallbackName;e&&window[e]&&delete window[e]}},{key:"render",value:function(){return this.props.children({getInputProps:this.getInputProps,getSuggestionItemProps:this.getSuggestionItemProps,loading:this.state.loading,suggestions:this.state.suggestions})}}]),t}();vd.propTypes={onChange:gd.default.func.isRequired,value:gd.default.string.isRequired,children:gd.default.func.isRequired,onError:gd.default.func,onSelect:gd.default.func,searchOptions:gd.default.shape({bounds:gd.default.object,componentRestrictions:gd.default.object,location:gd.default.object,offset:gd.default.oneOfType([gd.default.number,gd.default.string]),radius:gd.default.oneOfType([gd.default.number,gd.default.string]),types:gd.default.array}),debounce:gd.default.number,highlightFirstSuggestion:gd.default.bool,shouldFetchSuggestions:gd.default.bool,googleCallbackName:gd.default.string},vd.defaultProps={onError:function(e,t){return console.error("[react-places-autocomplete]: error happened when fetching data from Google Maps API.\nPlease check the docs here (https://developers.google.com/maps/documentation/javascript/places#place_details_responses)\nStatus: ",e)},searchOptions:{},debounce:200,highlightFirstSuggestion:!1,shouldFetchSuggestions:!0},ql.default=vd;var $d={};Object.defineProperty($d,"__esModule",{value:!0}),$d.geocodeByAddress=function(e){var t=new window.google.maps.Geocoder,n=window.google.maps.GeocoderStatus.OK;return new Promise((function(r,o){t.geocode({address:e},(function(e,t){t!==n&&o(t),r(e)}))}))},$d.getLatLng=function(e){return new Promise((function(t,n){try{t({lat:e.geometry.location.lat(),lng:e.geometry.location.lng()})}catch(e){n(e)}}))},$d.geocodeByPlaceId=function(e){var t=new window.google.maps.Geocoder,n=window.google.maps.GeocoderStatus.OK;return new Promise((function(r,o){t.geocode({placeId:e},(function(e,t){t!==n&&o(t),r(e)}))}))},Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.getLatLng=Vl.geocodeByPlaceId=exports.geocodeByAddress=Vl.geocodeByAddress=void 0;var xd,wd=(xd=ql)&&xd.__esModule?xd:{default:xd},Cd=$d;exports.geocodeByAddress=Vl.geocodeByAddress=Cd.geocodeByAddress,Vl.geocodeByPlaceId=Cd.geocodeByPlaceId,Vl.getLatLng=Cd.getLatLng;var Od=Vl.default=wd.default;const kd=({suggestions:t,getSuggestionItemProps:r})=>e.jsx(xl,{"data-test":"gmaps-suggestions",children:e.jsx(wl,{children:t.map(((t,o)=>n.createElement(Cl,Object.assign({"data-test":"item-layout"},r(t,{key:`suggestion-gmap-${o}`,onMouseDown:e=>e.stopPropagation()}),{key:o}),e.jsx(vl,{value:"",option:{value:t.id,label:t.description}}))))})}),jd=o.css`
|
|
806
|
+
`,Cl={value:"",label:""},Ol=(e,t)=>{const n=e.find((({value:e})=>e===t));return n?n.label:""},kl=({label:t,disabled:r,error:o,onChange:a,onFocus:i,onBlur:s,onSelect:l,zIndex:d=0,value:c,option:u,options:f,dataTest:p,outline:h,optionsMinWidth:g,optionsAlign:m,native:b=!1,isAutocomplete:v=!1})=>{const y=n.useRef(null),$=n.useRef(null),x=n.useRef(null),[w,C]=n.useState({isFocused:!1,isOpen:!1}),{isFocused:O,isOpen:k}=w,j=()=>{C({isFocused:!1,isOpen:!1})},E=({target:e})=>{e!==$.current&&(k||i&&i(),k&&s&&s(),C(Object.assign(Object.assign({},w),{isOpen:!k})))},P=()=>{k&&j()};S(y,P);const I=Object.assign(Object.assign({},Cl),u);return e.jsx(xl,{ref:y,"data-test":p?`select-wrapper-${p}`:"select-wrapper",isOpen:k,error:o,onBlur:()=>{C({isOpen:!1,isFocused:!1}),s&&s()},onFocus:()=>{C({isOpen:!0,isFocused:!0}),i&&i()},onMouseDown:e=>{e.stopPropagation(),r||E(e)},children:e.jsx($e,Object.assign({dataTest:p?`input-select-wrapper-${p}`:"input-select-wrapper",disabled:r,error:o,label:t,field:b&&!r?e.jsx(sl,{label:t,displayOption:I,options:f,onChange:e=>{if(!r){const t=e.target.value,n={label:Ol(f,t),value:t};E(e),l(n)}},onClickOutside:P}):e.jsx(yl,{isOpen:k,options:f,optionsMinWidth:g,optionsAlign:m,selectRef:$,selectedOptionRef:x,value:I.value,onClose:j,onSelect:l}),focused:O,outline:h,selectOnFocus:v,value:v&&c?c:I.label,zIndex:k?10:d},v&&a&&{onChange:a},!v&&{displayField:e.jsxs(n.Fragment,{children:[e.jsx(wl,{readOnly:!0,"aria-label":t,value:I.label,isOpen:k,disabled:r,error:o,"data-test":p?`${p}-value`:"select-wrapper-value"}),!r&&e.jsx($l,{isOpen:k,children:e.jsx(al,{})})]})}))})},jl=[{label:"Anglais",value:r.Language.ENGLISH},{label:"Français",value:r.Language.FRENCH},{label:"Italien",value:r.Language.ITALIAN},{label:"Espagnol",value:r.Language.SPANISH}],Sl={email:"Email",firstName:"Prénom",language:"Préférences de langue",lastName:"Nom",phone:"Téléphone"},El={email:"Votre email est invalide",firstName:"Votre prénom doit comporter au moins une lettre, aucun chiffre et caractère spécial",language:"Une option doit être sélectionnée parmi la liste déroulante",lastName:"Votre nom doit comporter au moins une lettre, aucun chiffre et caractère spécial",phone:"Numéro de téléphone incorrect"},Pl=e=>e.trim();var Il=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;const Nl=e=>e.includes("+")?e.includes("+33")?zs(e,Us):function(e,t){return zs(e,"INTERNATIONAL",t)}(e,Us):r.formatPhoneNumber(e),Al=e=>function(){var e=ha(arguments),t=e.text,n=e.options,r=e.metadata,o=va(t,n=xa(xa({},n),{},{extract:!1}),r);return o&&o.isValid()||!1}(e,Us),Tl=e=>ya(e,Us),Dl=x.string().required().min(1).matches(/^[A-z\u00C0-\u00ff\s]*((-|')*[A-z\u00C0-\u00ff\s])*$/),Fl=x.object({firstName:Dl,lastName:Dl,email:x.string().required().test("email","email error",(e=>!e||function(e){if(!e)return!1;if(e.length>254)return!1;if(!Il.test(e))return!1;var t=e.split("@");return!(t[0].length>64||t[1].split(".").some((function(e){return e.length>63})))}(e))),phone:x.string().required().test("phone","phone error",(e=>!e||Al(e)))}),Ll="dd/MM/yyyy",Ml=e=>b.default(e,"yyyy-MM-dd"),Rl=e=>C.default(e)&&w.default(e,new Date(1e3,0,1)),Bl=t=>{var{label:r="dd/mm/yyyy",value:o,dataTest:a,onChange:i}=t,s=Vs(t,["label","value","dataTest","onChange"]);const[l,d]=n.useState(o?(c=new Date(o),b.default(c,Ll)):"");var c;return e.jsx($e,Object.assign({},s,{onChange:e=>{if(0===e.length)d(e),i(e);else{const t=(e=>2===e.length&&!e.slice(0,2).includes("/")||5===e.length&&!e.slice(3,5).includes("/")?`${e}/`:e.substr(0,10))(e),n=O.default(t,Ll,new Date);e.length>l.length?(Rl(n)?i(Ml(n)):i(null),d(t)):(d(e),i(null))}},label:r,value:l,dataTest:a||"input-date"}))};var _l={},zl={},Ul=NaN,Gl="[object Symbol]",Hl=/^\s+|\s+$/g,Wl=/^[-+]0x[0-9a-f]+$/i,ql=/^0b[01]+$/i,Vl=/^0o[0-7]+$/i,Yl=parseInt,Kl="object"==typeof xn&&xn&&xn.Object===Object&&xn,Xl="object"==typeof self&&self&&self.Object===Object&&self,Zl=Kl||Xl||Function("return this")(),Jl=Object.prototype.toString,Ql=Math.max,ed=Math.min,td=function(){return Zl.Date.now()};function nd(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function rd(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&Jl.call(e)==Gl}(e))return Ul;if(nd(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=nd(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Hl,"");var n=ql.test(e);return n||Vl.test(e)?Yl(e.slice(2),n?2:8):Wl.test(e)?Ul:+e}var od=function(e,t,n){var r,o,a,i,s,l,d=0,c=!1,u=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,a=o;return r=o=void 0,d=t,i=e.apply(a,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||u&&e-d>=a}function g(){var e=td();if(h(e))return m(e);s=setTimeout(g,function(e){var n=t-(e-l);return u?ed(n,a-(e-d)):n}(e))}function m(e){return s=void 0,f&&r?p(e):(r=o=void 0,i)}function b(){var e=td(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return d=e,s=setTimeout(g,t),c?p(e):i}(l);if(u)return s=setTimeout(g,t),p(l)}return void 0===s&&(s=setTimeout(g,t)),i}return t=rd(t)||0,nd(n)&&(c=!!n.leading,a=(u="maxWait"in n)?Ql(rd(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),b.cancel=function(){void 0!==s&&clearTimeout(s),d=0,r=l=o=s=void 0},b.flush=function(){return void 0===s?i:m(td())},b},ad={};Object.defineProperty(ad,"__esModule",{value:!0}),ad.compose=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e&&e.apply(void 0,n)}))}},ad.pick=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(t,n){return e&&e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})},Object.defineProperty(zl,"__esModule",{value:!0});var id=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sd=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ld=fd(v.default),dd=fd(Yn),cd=fd(od),ud=ad;function fd(e){return e&&e.__esModule?e:{default:e}}var pd=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.init=function(){if(!window.google)throw new Error("[react-places-autocomplete]: Google Maps JavaScript API library must be loaded. See: https://github.com/kenny-hibino/react-places-autocomplete#load-google-library");if(!window.google.maps.places)throw new Error("[react-places-autocomplete]: Google Maps Places library must be loaded. Please add `libraries=places` to the src URL. See: https://github.com/kenny-hibino/react-places-autocomplete#load-google-library");n.autocompleteService=new window.google.maps.places.AutocompleteService,n.autocompleteOK=window.google.maps.places.PlacesServiceStatus.OK,n.setState((function(e){return e.ready?null:{ready:!0}}))},n.autocompleteCallback=function(e,t){if(n.setState({loading:!1}),t===n.autocompleteOK){var r=n.props.highlightFirstSuggestion;n.setState({suggestions:e.map((function(e,t){return{id:e.id,description:e.description,placeId:e.place_id,active:!(!r||0!==t),index:t,formattedSuggestion:(n=e.structured_formatting,{mainText:n.main_text,secondaryText:n.secondary_text}),matchedSubstrings:e.matched_substrings,terms:e.terms,types:e.types};var n}))})}else n.props.onError(t,n.clearSuggestions)},n.fetchPredictions=function(){var e=n.props.value;e.length&&(n.setState({loading:!0}),n.autocompleteService.getPlacePredictions(id({},n.props.searchOptions,{input:e}),n.autocompleteCallback))},n.clearSuggestions=function(){n.setState({suggestions:[]})},n.clearActive=function(){n.setState({suggestions:n.state.suggestions.map((function(e){return id({},e,{active:!1})}))})},n.handleSelect=function(e,t,r){n.clearSuggestions(),n.props.onSelect?n.props.onSelect(e,t,r):n.props.onChange(e)},n.getActiveSuggestion=function(){return n.state.suggestions.find((function(e){return e.active}))},n.selectActiveAtIndex=function(e){var t=n.state.suggestions.find((function(t){return t.index===e})).description;n.setActiveAtIndex(e),n.props.onChange(t)},n.selectUserInputValue=function(){n.clearActive(),n.props.onChange(n.state.userInputValue)},n.handleEnterKey=function(){var e=n.getActiveSuggestion();void 0===e?n.handleSelect(n.props.value,null,null):n.handleSelect(e.description,e.placeId,e)},n.handleDownKey=function(){if(0!==n.state.suggestions.length){var e=n.getActiveSuggestion();void 0===e?n.selectActiveAtIndex(0):e.index===n.state.suggestions.length-1?n.selectUserInputValue():n.selectActiveAtIndex(e.index+1)}},n.handleUpKey=function(){if(0!==n.state.suggestions.length){var e=n.getActiveSuggestion();void 0===e?n.selectActiveAtIndex(n.state.suggestions.length-1):0===e.index?n.selectUserInputValue():n.selectActiveAtIndex(e.index-1)}},n.handleInputKeyDown=function(e){switch(e.key){case"Enter":e.preventDefault(),n.handleEnterKey();break;case"ArrowDown":e.preventDefault(),n.handleDownKey();break;case"ArrowUp":e.preventDefault(),n.handleUpKey();break;case"Escape":n.clearSuggestions()}},n.setActiveAtIndex=function(e){n.setState({suggestions:n.state.suggestions.map((function(t,n){return id({},t,n===e?{active:!0}:{active:!1})}))})},n.handleInputChange=function(e){var t=e.target.value;n.props.onChange(t),n.setState({userInputValue:t}),t?n.props.shouldFetchSuggestions&&n.debouncedFetchPredictions():n.clearSuggestions()},n.handleInputOnBlur=function(){n.mousedownOnSuggestion||n.clearSuggestions()},n.getActiveSuggestionId=function(){var e=n.getActiveSuggestion();return e?"PlacesAutocomplete__suggestion-"+e.placeId:void 0},n.getIsExpanded=function(){return n.state.suggestions.length>0},n.getInputProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.hasOwnProperty("value"))throw new Error("[react-places-autocomplete]: getInputProps does not accept `value`. Use `value` prop instead");if(e.hasOwnProperty("onChange"))throw new Error("[react-places-autocomplete]: getInputProps does not accept `onChange`. Use `onChange` prop instead");var t={type:"text",autoComplete:"off",role:"combobox","aria-autocomplete":"list","aria-expanded":n.getIsExpanded(),"aria-activedescendant":n.getActiveSuggestionId(),disabled:!n.state.ready};return id({},t,e,{onKeyDown:(0,ud.compose)(n.handleInputKeyDown,e.onKeyDown),onBlur:(0,ud.compose)(n.handleInputOnBlur,e.onBlur),value:n.props.value,onChange:function(e){n.handleInputChange(e)}})},n.getSuggestionItemProps=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.handleSuggestionMouseEnter.bind(n,e.index),o=n.handleSuggestionClick.bind(n,e);return id({},t,{key:e.id,id:n.getActiveSuggestionId(),role:"option",onMouseEnter:(0,ud.compose)(r,t.onMouseEnter),onMouseLeave:(0,ud.compose)(n.handleSuggestionMouseLeave,t.onMouseLeave),onMouseDown:(0,ud.compose)(n.handleSuggestionMouseDown,t.onMouseDown),onMouseUp:(0,ud.compose)(n.handleSuggestionMouseUp,t.onMouseUp),onTouchStart:(0,ud.compose)(n.handleSuggestionTouchStart,t.onTouchStart),onTouchEnd:(0,ud.compose)(n.handleSuggestionMouseUp,t.onTouchEnd),onClick:(0,ud.compose)(o,t.onClick)})},n.handleSuggestionMouseEnter=function(e){n.setActiveAtIndex(e)},n.handleSuggestionMouseLeave=function(){n.mousedownOnSuggestion=!1,n.clearActive()},n.handleSuggestionMouseDown=function(e){e.preventDefault(),n.mousedownOnSuggestion=!0},n.handleSuggestionTouchStart=function(){n.mousedownOnSuggestion=!0},n.handleSuggestionMouseUp=function(){n.mousedownOnSuggestion=!1},n.handleSuggestionClick=function(e,t){t&&t.preventDefault&&t.preventDefault();var r=e.description,o=e.placeId;n.handleSelect(r,o,e),setTimeout((function(){n.mousedownOnSuggestion=!1}))},n.state={loading:!1,suggestions:[],userInputValue:e.value,ready:!e.googleCallbackName},n.debouncedFetchPredictions=(0,cd.default)(n.fetchPredictions,e.debounce),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,ld.default.Component),sd(t,[{key:"componentDidMount",value:function(){var e=this.props.googleCallbackName;e?window.google&&window.google.maps&&window.google.maps.places?this.init():window[e]=this.init:this.init()}},{key:"componentWillUnmount",value:function(){var e=this.props.googleCallbackName;e&&window[e]&&delete window[e]}},{key:"render",value:function(){return this.props.children({getInputProps:this.getInputProps,getSuggestionItemProps:this.getSuggestionItemProps,loading:this.state.loading,suggestions:this.state.suggestions})}}]),t}();pd.propTypes={onChange:dd.default.func.isRequired,value:dd.default.string.isRequired,children:dd.default.func.isRequired,onError:dd.default.func,onSelect:dd.default.func,searchOptions:dd.default.shape({bounds:dd.default.object,componentRestrictions:dd.default.object,location:dd.default.object,offset:dd.default.oneOfType([dd.default.number,dd.default.string]),radius:dd.default.oneOfType([dd.default.number,dd.default.string]),types:dd.default.array}),debounce:dd.default.number,highlightFirstSuggestion:dd.default.bool,shouldFetchSuggestions:dd.default.bool,googleCallbackName:dd.default.string},pd.defaultProps={onError:function(e,t){return console.error("[react-places-autocomplete]: error happened when fetching data from Google Maps API.\nPlease check the docs here (https://developers.google.com/maps/documentation/javascript/places#place_details_responses)\nStatus: ",e)},searchOptions:{},debounce:200,highlightFirstSuggestion:!1,shouldFetchSuggestions:!0},zl.default=pd;var hd={};Object.defineProperty(hd,"__esModule",{value:!0}),hd.geocodeByAddress=function(e){var t=new window.google.maps.Geocoder,n=window.google.maps.GeocoderStatus.OK;return new Promise((function(r,o){t.geocode({address:e},(function(e,t){t!==n&&o(t),r(e)}))}))},hd.getLatLng=function(e){return new Promise((function(t,n){try{t({lat:e.geometry.location.lat(),lng:e.geometry.location.lng()})}catch(e){n(e)}}))},hd.geocodeByPlaceId=function(e){var t=new window.google.maps.Geocoder,n=window.google.maps.GeocoderStatus.OK;return new Promise((function(r,o){t.geocode({placeId:e},(function(e,t){t!==n&&o(t),r(e)}))}))},Object.defineProperty(_l,"__esModule",{value:!0}),_l.getLatLng=_l.geocodeByPlaceId=exports.geocodeByAddress=_l.geocodeByAddress=void 0;var gd,md=(gd=zl)&&gd.__esModule?gd:{default:gd},bd=hd;exports.geocodeByAddress=_l.geocodeByAddress=bd.geocodeByAddress,_l.geocodeByPlaceId=bd.geocodeByPlaceId,_l.getLatLng=bd.getLatLng;var vd=_l.default=md.default;const yd=({suggestions:t,getSuggestionItemProps:r})=>e.jsx(gl,{"data-test":"gmaps-suggestions",children:e.jsx(ml,{children:t.map(((t,o)=>n.createElement(bl,Object.assign({"data-test":"item-layout"},r(t,{key:`suggestion-gmap-${o}`,onMouseDown:e=>e.stopPropagation()}),{key:o}),e.jsx(pl,{value:"",option:{value:t.id,label:t.description}}))))})}),$d=o.css`
|
|
816
807
|
animation: loader-spin 1s infinite linear;
|
|
817
808
|
|
|
818
809
|
@keyframes loader-spin {
|
|
@@ -823,7 +814,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
823
814
|
transform: rotate(360deg);
|
|
824
815
|
}
|
|
825
816
|
}
|
|
826
|
-
`,
|
|
817
|
+
`,xd=y.default.div`
|
|
827
818
|
background: ${({backgroundColor:e})=>e};
|
|
828
819
|
|
|
829
820
|
${({isWrapped:e,loaderHeight:t})=>!e&&o.css`
|
|
@@ -834,15 +825,15 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
834
825
|
height: ${t};
|
|
835
826
|
z-index: 100;
|
|
836
827
|
`}
|
|
837
|
-
`,
|
|
828
|
+
`,wd=y.default.div`
|
|
838
829
|
border: ${D(5)} solid ${T.terracota.base10};
|
|
839
830
|
border-left-color: ${T.terracota.base};
|
|
840
831
|
border-radius: ${J.rounded};
|
|
841
832
|
width: ${D(100)};
|
|
842
833
|
height: ${D(100)};
|
|
843
834
|
|
|
844
|
-
${
|
|
845
|
-
`,
|
|
835
|
+
${$d}
|
|
836
|
+
`,Cd=y.default.div`
|
|
846
837
|
display: flex;
|
|
847
838
|
flex-direction: column;
|
|
848
839
|
align-items: center;
|
|
@@ -854,111 +845,111 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
854
845
|
min-width: ${D(300)};
|
|
855
846
|
transform: translate(-50%, -50%);
|
|
856
847
|
`}
|
|
857
|
-
`,
|
|
858
|
-
font-size: ${
|
|
848
|
+
`,Od=y.default.div`
|
|
849
|
+
font-size: ${R.base};
|
|
859
850
|
color: ${T.dark.base80};
|
|
860
851
|
margin-top: ${D(18)};
|
|
861
852
|
text-align: center;
|
|
862
|
-
`,
|
|
853
|
+
`,kd=y.default.div`
|
|
863
854
|
border: ${D(3)} solid ${T.green.base};
|
|
864
855
|
border-left-color: rgba(0, 0, 0, 0.2);
|
|
865
856
|
border-radius: ${J.rounded};
|
|
866
857
|
width: ${D(24)};
|
|
867
858
|
height: ${D(24)};
|
|
868
859
|
|
|
869
|
-
${
|
|
870
|
-
`,
|
|
860
|
+
${$d}
|
|
861
|
+
`,jd=y.default.div`
|
|
871
862
|
position: absolute;
|
|
872
863
|
top: 50%;
|
|
873
864
|
right: ${D(16)};
|
|
874
865
|
transform: translateY(-50%);
|
|
875
866
|
background-color: white;
|
|
876
867
|
border-left: ${D(10)} solid white;
|
|
877
|
-
`,
|
|
868
|
+
`,Sd=()=>e.jsx(jd,{children:e.jsx(kd,{})}),Ed=({country:t="FR",dataTest:r,disabled:o,error:a,focused:i,id:s,label:l,required:d,types:c=["address"],value:u,withGeocodeType:f=!1,zIndex:p=0,onChange:h,onSelect:g,onError:m})=>{const[{isOpen:b,address:v},y]=n.useState({isOpen:!1,address:u});return n.useEffect((()=>{y({isOpen:b,address:u})}),[u]),e.jsx(vd,{value:v,onChange:e=>{y({isOpen:!0,address:e}),h(e)},onSelect:e=>{y({isOpen:!1,address:e}),g(e)},onError:m,highlightFirstSuggestion:!0,searchOptions:{types:c,componentRestrictions:{country:t}},children:({suggestions:t,getInputProps:c,getSuggestionItemProps:u,loading:h})=>{const g=f?le(t):t;return e.jsx($e,{zIndex:b?10:p,type:exports.InputType.TEXT,"data-test":"select-wrapper-input-base",label:l,disabled:o,error:a,value:v,dataTest:r,required:d,id:s,gmap:Object.assign({},c({autoFocus:i,disabled:o})),field:h&&0===t.length?e.jsx(Sd,{}):b&&Boolean(g.length)?e.jsx(yd,{suggestions:g,getSuggestionItemProps:u}):e.jsx(n.Fragment,{})})}})},Pd=t=>{var{onSelect:n,onError:r}=t,o=Vs(t,["onSelect","onError"]);return e.jsx(Ed,Object.assign({},o,{onError:r,onSelect:e=>Ys(void 0,void 0,void 0,(function*(){try{const[t]=yield exports.geocodeByAddress(e);n(t)}catch(e){r&&r(e)}}))}))},Id="Date de naissance (jj/mm/aaaa)*",Nd="Lieu de naissance*",Ad="Adresse complète*",Td="Statut matrimonial*",Dd={address:"Veuillez sélectionner une adresse parmi les suggestions.",dateOfBirth:"Veuillez renseigner votre date de naissance. Vous devez être majeur.e pour faire une offre sur un bien.",placeOfBirth:"Veuillez renseigner votre lieu de naissance (100 caractères maximum).",maritalStatus:"Veuillez renseigner votre statut matrimonial."},Fd=[{label:"Célibataire",value:r.MaritalStatus.SINGLE},{label:"Pacsé.e",value:r.MaritalStatus.PACSED},{label:"Marié.e",value:r.MaritalStatus.MARRIED},{label:"Divorcé.e",value:r.MaritalStatus.DIVORCED},{label:"Veuf/Veuve",value:r.MaritalStatus.WIDOW}],Ld=x.object({streetNumber:x.string(),street:x.string().required(),city:x.string().required(),postCode:x.string().required(),dateOfBirth:x.date().max(k.default(new Date,18)).required(),placeOfBirth:x.string().max(100).required(),maritalStatus:x.string().required()}),Md=y.default.span`
|
|
878
869
|
display: flex;
|
|
879
870
|
align-items: center;
|
|
880
|
-
`,
|
|
871
|
+
`,Rd=y.default.img`
|
|
881
872
|
height: 1em;
|
|
882
873
|
width: 1.5em;
|
|
883
874
|
margin-right: ${D(8)};
|
|
884
875
|
box-shadow: 0 0 0 ${D(1)} ${T.dark.base},
|
|
885
876
|
inset 0 0 0 ${D(1)} ${T.dark.base};
|
|
886
|
-
`,
|
|
887
|
-
${
|
|
877
|
+
`,Bd=y.default.span`
|
|
878
|
+
${M};
|
|
888
879
|
color: ${({color:e})=>e};
|
|
889
|
-
`,
|
|
880
|
+
`,_d=y.default.span`
|
|
890
881
|
color: ${T.red.base};
|
|
891
|
-
`;var
|
|
882
|
+
`;var zd;exports.AccordionItemColors=void 0,(zd=exports.AccordionItemColors||(exports.AccordionItemColors={})).ORANGE="orange",zd.GREEN="green",zd.DARK="dark";const Ud=(e,t)=>e.filter((e=>e!==t));class Gd{constructor({expanded:e=[],allowMultipleExpanded:t=!1}){this.expanded=e,this.allowMultipleExpanded=t,this.toggleExpanded=this.toggleExpanded.bind(this),this.isItemExpanded=this.isItemExpanded.bind(this),this.updateStore=this.updateStore.bind(this)}toggleExpanded(e){return this.isItemExpanded(e)?this.updateStore({expanded:Ud(this.expanded,e)}):this.updateStore({expanded:this.allowMultipleExpanded?[...this.expanded,e]:[e]})}isItemExpanded(e){return-1!==this.expanded.indexOf(e)}updateStore(e){return new Gd(Object.assign({expanded:this.expanded,allowMultipleExpanded:this.allowMultipleExpanded},e))}}const Hd=n.createContext(null);let Wd=class extends n.PureComponent{constructor(e){super(e),this.state=new Gd({expanded:this.props.preExpanded,allowMultipleExpanded:this.props.allowMultipleExpanded}),this.toggleExpanded=this.toggleExpanded.bind(this),this.isItemExpanded=this.isItemExpanded.bind(this)}toggleExpanded(e){this.setState((t=>t.toggleExpanded(e)))}isItemExpanded(e){return this.state.isItemExpanded(e)}componentDidUpdate(e){e.preExpanded!==this.props.preExpanded&&this.setState((e=>e.updateStore({expanded:this.props.preExpanded})))}render(){return e.jsx(Hd.Provider,{value:{allowMultipleExpanded:this.state.allowMultipleExpanded,isItemExpanded:this.isItemExpanded,toggleExpanded:this.toggleExpanded},children:this.props.children||null})}};const qd=o.css`
|
|
892
883
|
${L};
|
|
893
884
|
font-weight: bold;
|
|
894
885
|
|
|
895
886
|
${({isAlternative:e})=>e&&o.css`
|
|
896
|
-
${
|
|
887
|
+
${M};
|
|
897
888
|
`};
|
|
898
889
|
|
|
899
890
|
@media (min-width: ${P.base}px) {
|
|
900
891
|
white-space: pre-line;
|
|
901
892
|
}
|
|
902
|
-
`,
|
|
903
|
-
${
|
|
893
|
+
`,Vd=o.css`
|
|
894
|
+
${qd};
|
|
904
895
|
font-size: ${D(35)};
|
|
905
896
|
line-height: 1.25;
|
|
906
897
|
|
|
907
898
|
@media (min-width: ${P.base}px) {
|
|
908
|
-
font-size: ${
|
|
899
|
+
font-size: ${R.important};
|
|
909
900
|
}
|
|
910
|
-
`,
|
|
911
|
-
${
|
|
901
|
+
`,Yd=o.css`
|
|
902
|
+
${qd};
|
|
912
903
|
font-size: ${D(24)};
|
|
913
904
|
line-height: 1.1;
|
|
914
905
|
|
|
915
906
|
@media (min-width: ${P.base}px) {
|
|
916
|
-
font-size: ${
|
|
907
|
+
font-size: ${R.bigger};
|
|
917
908
|
}
|
|
918
|
-
`,
|
|
919
|
-
${
|
|
909
|
+
`,Kd=o.css`
|
|
910
|
+
${qd};
|
|
920
911
|
font-size: ${D(18)};
|
|
921
912
|
line-height: 1.1;
|
|
922
913
|
|
|
923
914
|
@media (min-width: ${P.base}px) {
|
|
924
|
-
font-size: ${
|
|
915
|
+
font-size: ${R.big};
|
|
925
916
|
}
|
|
926
|
-
`,
|
|
927
|
-
${
|
|
928
|
-
font-size: ${
|
|
917
|
+
`,Xd=o.css`
|
|
918
|
+
${qd};
|
|
919
|
+
font-size: ${R.base};
|
|
929
920
|
line-height: 1.1;
|
|
930
921
|
|
|
931
922
|
@media (min-width: ${P.base}px) {
|
|
932
923
|
font-size: ${D(20)};
|
|
933
924
|
}
|
|
934
|
-
`,
|
|
935
|
-
${
|
|
936
|
-
font-size: ${
|
|
925
|
+
`,Zd=o.css`
|
|
926
|
+
${qd};
|
|
927
|
+
font-size: ${R.small};
|
|
937
928
|
line-height: 1.1;
|
|
938
929
|
|
|
939
930
|
@media (min-width: ${P.base}px) {
|
|
940
|
-
font-size: ${
|
|
931
|
+
font-size: ${R.medium};
|
|
941
932
|
}
|
|
942
|
-
`,
|
|
943
|
-
${
|
|
944
|
-
font-size: ${
|
|
933
|
+
`,Jd=o.css`
|
|
934
|
+
${qd};
|
|
935
|
+
font-size: ${R.smaller};
|
|
945
936
|
line-height: ${D(24)};
|
|
946
937
|
|
|
947
938
|
@media (min-width: ${P.base}px) {
|
|
948
|
-
font-size: ${
|
|
939
|
+
font-size: ${R.small};
|
|
949
940
|
}
|
|
950
|
-
`,
|
|
941
|
+
`,Qd=o.css`
|
|
951
942
|
${e=>e.color&&o.css`
|
|
952
943
|
color: ${e.color};
|
|
953
944
|
`}
|
|
954
|
-
`,
|
|
945
|
+
`,ec={color:T.dark.base,isAlternative:!1},tc={h1:Vd,h2:Yd,h3:Kd,h4:Xd,h5:Zd,h6:Jd},nc=y.default.div`
|
|
955
946
|
display: flex;
|
|
956
947
|
justify-content: space-between;
|
|
957
948
|
align-items: center;
|
|
958
949
|
cursor: pointer;
|
|
959
950
|
padding-top: ${D(20)};
|
|
960
951
|
padding-bottom: ${D(18)};
|
|
961
|
-
`,
|
|
952
|
+
`,rc=y.default.p`
|
|
962
953
|
cursor: pointer;
|
|
963
954
|
margin: 0;
|
|
964
955
|
padding: 0;
|
|
@@ -968,10 +959,10 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
968
959
|
${({basic:e})=>e?o.css`
|
|
969
960
|
${Z.body1};
|
|
970
961
|
`:o.css`
|
|
971
|
-
${
|
|
962
|
+
${tc.h5};
|
|
972
963
|
font-weight: normal;
|
|
973
964
|
`}
|
|
974
|
-
`,
|
|
965
|
+
`,oc=y.default.div`
|
|
975
966
|
height: ${D(32)};
|
|
976
967
|
width: ${D(32)};
|
|
977
968
|
transform: rotate(90deg);
|
|
@@ -982,7 +973,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
982
973
|
${({isOpen:e})=>e&&o.css`
|
|
983
974
|
transform: rotate(-90deg);
|
|
984
975
|
`}
|
|
985
|
-
`,
|
|
976
|
+
`,ac=y.default.div`
|
|
986
977
|
opacity: 0;
|
|
987
978
|
transition: opacity 0.3s ease;
|
|
988
979
|
|
|
@@ -997,28 +988,28 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
997
988
|
display: block;
|
|
998
989
|
}
|
|
999
990
|
`}
|
|
1000
|
-
`,
|
|
991
|
+
`,ic=y.default.div`
|
|
1001
992
|
border-bottom: ${D(1)} solid ${T.grey.base20};
|
|
1002
993
|
|
|
1003
994
|
${({color:e})=>e===exports.AccordionItemColors.GREEN?o.css`
|
|
1004
995
|
border-color: ${T.green.base};
|
|
1005
996
|
|
|
1006
|
-
${
|
|
997
|
+
${nc} {
|
|
1007
998
|
color: ${T.green.base};
|
|
1008
999
|
}
|
|
1009
1000
|
`:e===exports.AccordionItemColors.DARK?o.css`
|
|
1010
|
-
${
|
|
1001
|
+
${nc} {
|
|
1011
1002
|
color: ${T.dark.base};
|
|
1012
1003
|
}
|
|
1013
1004
|
`:o.css`
|
|
1014
|
-
${
|
|
1005
|
+
${nc} {
|
|
1015
1006
|
color: ${T.terracota.base};
|
|
1016
1007
|
}
|
|
1017
1008
|
`};
|
|
1018
|
-
`,
|
|
1019
|
-
${
|
|
1020
|
-
${
|
|
1021
|
-
|
|
1009
|
+
`,sc=({children:t})=>e.jsx(Hd.Consumer,{children:r=>r&&t?t(r):e.jsx(n.Fragment,{})}),lc=n.createContext(null),dc=({accordionContext:t,uuid:n,children:r})=>{const o=t.isItemExpanded(n);return e.jsx(lc.Provider,{value:{uuid:n,expanded:o,toggleExpanded:()=>{t.toggleExpanded(n)}},children:r})},cc=t=>e.jsx(sc,{children:n=>e.jsx(dc,Object.assign({},t,{accordionContext:n}))}),uc=({children:t})=>e.jsx(lc.Consumer,{children:r=>r&&t?t(r):e.jsx(n.Fragment,{})}),fc=({children:t,uuid:n,color:r})=>e.jsx(cc,{uuid:n,children:e.jsx(uc,{children:({expanded:o})=>e.jsx(ic,{isOpen:o,color:r,"data-test":""+(o?`${n}-item-opened`:`${n}-item-closed`),children:t})})});fc.defaultProps={color:exports.AccordionItemColors.ORANGE};const pc=y.default.h5`
|
|
1010
|
+
${Qd};
|
|
1011
|
+
${tc.h5};
|
|
1012
|
+
`,hc=({title:t,color:n,isAlternative:r})=>e.jsx(pc,{isAlternative:r,color:n,dangerouslySetInnerHTML:{__html:t}});hc.defaultProps=ec;const gc=y.default.div`
|
|
1022
1013
|
display: flex;
|
|
1023
1014
|
position: relative;
|
|
1024
1015
|
align-items: center;
|
|
@@ -1035,7 +1026,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1035
1026
|
${({rounded:e})=>e&&o.css`
|
|
1036
1027
|
border-radius: ${J.big};
|
|
1037
1028
|
`}
|
|
1038
|
-
`,
|
|
1029
|
+
`,mc=y.default.img`
|
|
1039
1030
|
object-fit: cover;
|
|
1040
1031
|
width: 100%;
|
|
1041
1032
|
height: 100%;
|
|
@@ -1044,22 +1035,22 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1044
1035
|
left: 0;
|
|
1045
1036
|
overflow: hidden;
|
|
1046
1037
|
border-radius: ${J.rounded};
|
|
1047
|
-
`,
|
|
1038
|
+
`,bc=y.default.div`
|
|
1048
1039
|
width: 45%;
|
|
1049
1040
|
max-width: ${D(160)};
|
|
1050
1041
|
padding: 0 0 0 ${D(16)};
|
|
1051
|
-
`,
|
|
1042
|
+
`,vc=y.default.div`
|
|
1052
1043
|
overflow: hidden;
|
|
1053
1044
|
position: relative;
|
|
1054
1045
|
padding: 100% 0 0;
|
|
1055
|
-
`,
|
|
1046
|
+
`,yc=y.default.div`
|
|
1056
1047
|
flex: 1;
|
|
1057
1048
|
|
|
1058
1049
|
h5 {
|
|
1059
1050
|
margin: 0;
|
|
1060
1051
|
}
|
|
1061
|
-
|
|
1062
|
-
font-size: ${
|
|
1052
|
+
`,$c=y.default.p`
|
|
1053
|
+
font-size: ${R.small};
|
|
1063
1054
|
line-height: ${D(18)};
|
|
1064
1055
|
margin: ${D(4)} 0 0;
|
|
1065
1056
|
color: ${T.green.base};
|
|
@@ -1067,20 +1058,20 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1067
1058
|
:first-of-type {
|
|
1068
1059
|
margin-top: ${D(12)};
|
|
1069
1060
|
}
|
|
1070
|
-
`,
|
|
1061
|
+
`,xc=y.default.div`
|
|
1071
1062
|
position: relative;
|
|
1072
1063
|
width: 100%;
|
|
1073
|
-
`,
|
|
1064
|
+
`,wc=y.default.div`
|
|
1074
1065
|
position: relative;
|
|
1075
1066
|
border-radius: ${J.big};
|
|
1076
1067
|
height: ${D(184)};
|
|
1077
1068
|
width: 100%;
|
|
1078
1069
|
overflow: hidden;
|
|
1079
|
-
`,
|
|
1070
|
+
`,Cc=y.default.img`
|
|
1080
1071
|
object-fit: cover;
|
|
1081
1072
|
width: 100%;
|
|
1082
1073
|
height: 100%;
|
|
1083
|
-
`,
|
|
1074
|
+
`,Oc=y.default.div`
|
|
1084
1075
|
position: relative;
|
|
1085
1076
|
background: white;
|
|
1086
1077
|
padding: ${D(32)} ${D(24)};
|
|
@@ -1088,12 +1079,12 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1088
1079
|
border: ${D(1)} solid ${T.blue.base20};
|
|
1089
1080
|
border-radius: ${J.big};
|
|
1090
1081
|
color: ${T.green.base};
|
|
1091
|
-
${
|
|
1082
|
+
${M};
|
|
1092
1083
|
|
|
1093
1084
|
@media (min-width: ${P.xsmall}px) {
|
|
1094
1085
|
padding: ${D(40)} ${D(32)};
|
|
1095
1086
|
}
|
|
1096
|
-
`,
|
|
1087
|
+
`,kc=y.default.div`
|
|
1097
1088
|
${L};
|
|
1098
1089
|
line-height: 1.2;
|
|
1099
1090
|
letter-spacing: 0.02em;
|
|
@@ -1101,16 +1092,16 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1101
1092
|
display: flex;
|
|
1102
1093
|
align-items: baseline;
|
|
1103
1094
|
margin: 0;
|
|
1104
|
-
`,
|
|
1095
|
+
`,jc=y.default.div`
|
|
1105
1096
|
margin: ${D(4)} 0;
|
|
1106
1097
|
line-height: ${D(18)};
|
|
1107
|
-
`,
|
|
1098
|
+
`,Sc=y.default.div`
|
|
1108
1099
|
padding: ${D(16)} 0;
|
|
1109
|
-
font-size: ${
|
|
1100
|
+
font-size: ${R.small};
|
|
1110
1101
|
line-height: ${D(21)};
|
|
1111
1102
|
font-weight: 300;
|
|
1112
1103
|
font-style: italic;
|
|
1113
|
-
`,
|
|
1104
|
+
`,Ec=y.default.div`
|
|
1114
1105
|
${L};
|
|
1115
1106
|
position: absolute;
|
|
1116
1107
|
display: flex;
|
|
@@ -1121,7 +1112,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1121
1112
|
padding: ${D(8)} ${D(12)};
|
|
1122
1113
|
border-radius: ${J.bigger};
|
|
1123
1114
|
color: ${T.dark.base};
|
|
1124
|
-
font-size: ${
|
|
1115
|
+
font-size: ${R.smallest};
|
|
1125
1116
|
|
|
1126
1117
|
@media (min-width: ${P.xsmall}px) {
|
|
1127
1118
|
left: ${D(32)};
|
|
@@ -1132,11 +1123,11 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1132
1123
|
width: ${D(16)};
|
|
1133
1124
|
margin-right: ${D(4)};
|
|
1134
1125
|
}
|
|
1135
|
-
`,
|
|
1126
|
+
`,Pc=y.default.div`
|
|
1136
1127
|
display: flex;
|
|
1137
1128
|
justify-content: space-between;
|
|
1138
1129
|
margin-top: ${D(16)};
|
|
1139
|
-
`;const
|
|
1130
|
+
`;const Ic=({agent:{image_agent:t,name:n,zone:r,fonction:o,trustpilot_comment:a},showComment:i=!0})=>t?e.jsxs(xc,{"data-test":"agent-card-layout",children:[e.jsxs(wc,{children:[r&&e.jsxs(Ec,{"data-test":"agent-zone",children:[e.jsx("img",{src:"data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m12%200c-4.198%200-8%203.403-8%207.602%200%204.198%203.469%209.21%208%2016.398%204.531-7.188%208-12.2%208-16.398%200-4.199-3.801-7.602-8-7.602zm0%2011c-1.657%200-3-1.343-3-3s1.343-3%203-3%203%201.343%203%203-1.343%203-3%203z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"}),r]}),e.jsx(Cc,{"data-test":"agent-image",src:t,loading:"lazy"})]}),e.jsxs(Oc,{children:[n&&e.jsx(kc,{"data-test":"agent-name",children:n}),o&&e.jsx(jc,{"data-test":"agent-fontion",children:o}),i&&a&&e.jsxs("div",{children:[e.jsx(Sc,{"data-test":"agent-comment",children:a}),e.jsxs(Pc,{children:[e.jsx("img",{"data-test":"stars",src:"data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2216%22%20width%3D%22112%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cpattern%20id%3D%22a%22%20height%3D%221%22%20patternContentUnits%3D%22objectBoundingBox%22%20width%3D%221%22%3E%3Cimage%20height%3D%2216%22%20transform%3D%22matrix%28.00903%200%200%20.0625%20-.001%200%29%22%20width%3D%22111%22%20xlink%3Ahref%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAG8AAAAQCAYAAAAYsSF0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAc%2FSURBVHgB3Vh7UFTXGf%2FOuXsfuywuIFQFCghxWVaCmSCObZrWam1Dp0k7UK0aa3nMwKQmM23SkEwcJ5t02klIbZtJm0SrkNYwaUKNbS2JxsqY6GDklUwevEFQYXkEVtZlH%2FfuvSff7pqNOBAF%2FmJ%2FM3f33u985zu%2F73HOPfcA3AA%2Bu2StaCnZJ2QV94iWUi%2Fe%2B%2FBqD8jEzJ2ZYcWaR1fBa7ZEWCCaD%2F%2FgTlggmg%2FfvQLtrIAFYrFxoeG7FWUGIav0MFXgPD49TBghwFgD3p9lAFJAxghfA9YtAhzZkwo6ugu224ZgAQg4as4zn1yosyuzrRVp1rTHYAFYjFxCyUvZESuYlFOEsZ1AoF7jtHW%2BjqoMX2fVRvzfJHdUrSRAvyv7IR%2F2ZiSC4j8ELlYJC0QqOhpl4uJSrCnzdrZ5%2F90romKlcmOcVNa8f%2F6BX4xcgskTDYanCJD1BOD3mKzvK5%2B%2B0nSjorfj4Gl4wghA2FsArBpKK6%2FCAhBw1GgSyz1jzRAdI5W9h88wD6TckVlB%2FMN6otr1yWuS5xX4xcqF8qt3rgHQHgIGp7wdVXtQxmbUfPWhJaA3nMDWBthWWSNYih7Xm3clwTwRcJRqI3qmykDZiN68xjxnZwOORicYypWpiyC7LoEpwTCvwC9WLkS0FL%2BAfw9qhOUq7dWtQSmzUSA2LaxV83gscOyfeGcBhVsPe%2Fq9okGawCw%2FhUuqDW4BDS9tTEpIMt0WlZBilgzeVfol4oOqs0nPNBWH54A35XncLt9fvC6l2zfm6OobnOzZ9ED94DQbf%2FyGPio%2BOiMuNdEsRketEgSSr5fGviNfvRBsF6LTwCPHvyu75eM%2B51T3yMBYl%2ByY6vnmw%2Bc8kcgFk1fSzxi45c4qayhRj%2BQCx72DTTbY9uwL8MYWDrT0I9jyY2CkALY%2FcxRyy3hxyn8FNzQtvs7qb39V0hoPbLgjPS%2BzHisxlinj4I%2B6B2CiFjR5HJjqDSlxDDiDiGSigFADUKoHoi0D55jH0dvYu3Fd2ckPu%2BoKq1NWp%2F2CI1eJShJAI9EAzv%2BDpriQBtYZCUSMABdlBKrD%2FgTtEBOovmh2uf3S32%2FLry2ONC4Ul8Fk3Ffag8r%2F%2BM3XgNO9hqPH4fR7Hl6veBIT97dQ4uCNYOICaDmgYMIHUC8ZboJ1Zac%2FHL4wusOvgFvze0AdfgVUz2CIIJIjS%2FCKYaAJXlAZOqFewgD4wC8Tt71vZEcgWAE7zsv9ux0jE3WUNwBWJqjjdaDKzmCwiIQ2YvHfqGIgJ9HGMF5DQWcdQxNvtV3s2x2JXHB5JKh17T236w%2Bj2PEBlPkxMSjF2QdQjFc%2FaP6K6WlhFDvJcAvILjh6fOCD%2FntVkuTmDTHhqiImtMBPf8Xy%2FErwu7%2FuHvj4wr2Bfl%2FI15a3uMffPl9o73Uck%2BJWYzBIUE6M2D%2BKhar9GgiRQBTywN7tPHbmcmPBfdg3ErlQrJYexlhGWGtL5Snww3ocdfxLBrAX7t83EH7eYNMRQjMwu6Nwi7AUHK3vbe35nkqSJ3ljYrCyrncyAB2XiASTJ%2Fuaujdb7jtaf6ONbFubPNz2SeHIBUeNFJ8LRI9C8cb9FQkGa7THUdMw1PjTrVvb5EjlQgkh7%2BBnQprOXPKtsPb9z7QA036ERkbxY%2BJf8LNnX73emDAyUIgzT4ejHIM5IGfr%2F855Jl1Hgo7SmTQITDmn3rx9e13DbDaw6pXepu4nFAUXB702gwbDJcwPAZ2ZghVJXHDm0UM4COMo%2B%2FM0%2FW2V74Os5YPH88g0ubksHk9ffssYcRFFeR3mCF4SrCq4viRATeF7jU2BKApZN7MRm7LUqhPlcIUSImIViuF2TpCDOjezs9i56OTOgx%2BJlqIXUX23mFX6V98V7lGwHwityz9%2FrvV65Zi0ohg3VfYjxVVAtce8fYcvwhyAmxzi6qJWxq4CR%2BNB4M2geAUQJRlkpQsCtUs4mh3QI2SW701E3LI4q4Y2COGB16XjuUHgiJXhK3oIFPUz0DQvxC5fmo3C45HMJTRJCff2NSu%2FFEz%2Bc6K56IfTrKcVSaK5JN8jkfdwiS1AyQG5vXrOx2OnX96QKhr5JSKfC5o3yzPY5tjX%2Bt%2FmrKHOiec0X46HlzaB3sgb3395fepX2RGjpds5GgsSfxdMDhk%2F6Dzbmd95tit%2F0m5s5YUCrFpsM4irI52LLvjLtJIv5j3%2B5uCIdUJmiRcfevCimHosKQhsgt2Y%2Bl%2F52g89D%2FPA8qT4bDw4kEcHp6qGmz5%2Beu2vz9ivNVXgacSf0q3pe5cmx5dGJybmQGCHOwso5bKv2NW2sd7uJzML%2FnMkITdUjViZJzr%2B%2FZOCZRnLn6aU5kQ6l2DGBEtJLY7mxIdmjbFmSuhOFN%2FJCCxDGYdquNNkrZJb%2FN3kxZccME80Vt%2BTp8jyxF3l9b2z6Zx5cVO6qIel64pPNc2mc%2F7g5i0DJ2Le3Fpbq87UzmxAW1I3F64tPlkLEczlc%2BQbm%2Bp%2FZ1T4AAAAAElFTkSuQmCC%22%2F%3E%3C%2Fpattern%3E%3Cpath%20d%3D%22M.906%200h110.727v16H.906z%22%20fill%3D%22url%28%23a%29%22%2F%3E%3C%2Fsvg%3E",width:"112",height:"16"}),e.jsx("img",{"data-test":"review-logo",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAAAcCAYAAADcO8kVAAAHpUlEQVR4Ad2YZXgbSRJAZ5ktjb3MwoBgeVdyjpmZma2xF8OMco6ZmfkudMzMfBc2h5mZ5urJXZtOWwrzj/pmproa6nVVdUve0x9+Th+JZoPniHwnkmvaHM0FoUokGyyL5IJvRHLNg2z7+HdbHxef8Z463s8WOeDjimzp1kiu9OtHYWRLe+R7USRbagOK6kW347J881UVKNOmvv7W6a0PHM3kdXe2JGQDPi/zvPdI+8qaXkbfSCZ40QkFIw7HxflVON77LI1Gl0zedRHtPCWC7hAokyVqXoou9p0pT4lPa/3x0U5elwvu0kg8YjCZpneYTSqfMDB12dINGhHy/Eld5kH/UB0T01rviU1rXRX7dmvsaCeXSMmJdMmcfz7yiGkabvo+csLAyOAzDZQfXpt4y6WHhDKz3A8o8enlwQpW2y7Llq6JZpsfV3G6X0tExnxiNNfcQuj72VI/exzmwlbmvpfvSOrp5/ONNNz0wMXRTPAM+lLz2Cw37bHj6Y5JDaz0y5Ree3m+NLAPVNqZh/Xd1ny7rD9gfRcPfNvNalMx0vSxHKwpREj8u+UuAfN778mvO8fPBDdRgwBSWXC/l7+B8cSZ2QKn48DiXdpOKlZPJcC86nZjt0Z0/3D6trHWWqmk42GH3qqT+zgwAK12MvZW0/4r6qhdOykh2FBbPlktV2OzpqZdKDd/t3xdfFq5LTatvBNAZpKPGucescHoRKSmnw8+QjTqInSuWmC08HMyyvvHSTW1u/y2+xuqgSEydHwD9RMA4fDQbPAyzzzPAYP+96xP3r+v81JDPd1VFqkApKC+qOL89NZRTqQslbZQUwiJ5IM3mQm+7YIhRG2wpIZGDqdaLTBG91Z0Wvhx1ix8SDUwddng573fwVdMdFgnX2k9bXqCKRg2lfR1ohD97zwIIRhoUQUKABB5/xzRI5HyX75JofjwV55r56umjg0GR/h2RXdfcvyNtcDwbS/YWfQXXTCAIGWML7kqc04xUD/jRMy97mGAHpAeA7KD2tjv9++8UCD8UsEgcoHbbqBsdE8hdY7ctsFoBLmiqUsu1wJDFFfpN5420sMFQ23UOlnt8CD6tKbYYNzCzPUEPRdbT8OMCm3DEQjTFIyKppYD5qkafg6YH7q2zgn41uMFhrqzv7i/7bpqR7sB8/3DBoNDJhVeYxtxxRcYn1YopJKmkC0szDjzXgWjhdc9Slk0ejP5HccLDN9aK/1cMMLuR8HV+gSgwwaDsR1mtnAcx75b/iapxN0FnTsplyzj3BPd4msW+0IWwF1Ej1KiBtvjCcbPNjXtP82a7wc8NYS59ArAleKwwXBx0nTCCTVyfyTyrF3UgtlAtMHo5K5U4Ax40y3HF4zalD5YY841pDw2hw0GBSeEOsORepjX+SHaR08CJ2K+z2I4PrkrsHMc7dZpY26vwadw0v7WS6D7i5821so3m8i3u5lECacPJYI7FPcr9+IqPn6EvhpBKtQq9AD29CpOCFo7PV7vAq5w/9DdcnPaBXPG/+2gJ4uKHn3sNrvM7wgua+yEFk9A0kb/sxYMoWUBWUbN0G9XAEKIWvnpgHnF86gj/FdyxoMhGhB+/XJBopCSq+bE+ji3TZ586y/ks13OSqfqU8WX8PvquIEJ/+1dHX7HO6eaYTjHi1fVr/HOD//nXVe1baEXDbu8qkV887/zV58oMH7ivn/VX1e84niBwfmfhXO957hGOC7yDxx128T+ldLvO1XBzPY+JlLqo/+td+m6jke6uldt6QO0IV2c4qeKv65PFn/akL63Pzp5/+Z11911Ke9++r5B8j2s8p5sHIWtnyz+HH1vtBQ+Kt+b0UVubYxx4tYnC+8U278yZl2seEvvmI0DpO9n0SFXJguPF5vpjCfPohf+SnZ8tvdA+F/v0+JgKNIpMlEcHiT6m+R9tMgs2uT7RwJoGKBoF13Z2O8xEN5MhPCU9vejF+kxdk8Lu73L5TmC8TZ0tIRty7b8om3ltqEdS3akWSyO4ADORFKFO8TJBxSWpMcLeccJ2ogIee8EWDReSAFJrx4CZfblifsaqJVABAyp5SeKTxfH/2SgFtWOsYEJtGj6vjxr8EgdceLdOG7JEnH+HsCI/Nlp+08437tS+hSlbb3TNpFJeTr6NTLecw2YX6MDTPvyrWHb0i3/6+nZ4KtT7LjZ3W+yq+grjhMB8eKNtGl0aSSw0zjqppKCBICxY9w90VsLUeyJGGwYV/r8U38GYW+n0QJ1xA7/cIE3wHYSWFafEZb+v6pHFAACeLtWEUkKpmvlztu17cr+j0lTOAEUTRUf5ycLf9c2wPipxq8KjFfxzU5H08XX8MOWCBIn19QA83n6MCY6+uC8C4a5+oChgLKrJuR/Jrv7IcuRp2l6meezrBryJdLLpE2PA2YO6UX9Efm66k0KLtnYeX+5ffmWtrYVW1+gbWYn/8qCiQIiQttwTvSrSB39AUs9ABbRBYBqYEgPxqQde4nC8egPGwzpwTupdUBU/Mu7lhTQoqkFWNv0FHNPJv12TzTGCju8SOU9DC9euGzTVXY/rS+kj/03h59ufIs6hagT2FKk9XhWR227a/L5y7DTwqtgiTp9t9uYm5czQvxUYR7F+WTN939IJEdEG8yGpgAAAABJRU5ErkJggg==",width:"70",height:"28"})]})]})]})]}):null;Ic.defaultProps={showComment:!0};const Nc=y.default.div`
|
|
1140
1131
|
padding: ${D(24)} ${D(16)};
|
|
1141
1132
|
width: 100%;
|
|
1142
1133
|
|
|
@@ -1147,7 +1138,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1147
1138
|
padding: ${D(56)};
|
|
1148
1139
|
`}
|
|
1149
1140
|
}
|
|
1150
|
-
`,
|
|
1141
|
+
`,Ac=y.default.div`
|
|
1151
1142
|
${({picture:e})=>e&&o.css`
|
|
1152
1143
|
background-image: unset;
|
|
1153
1144
|
border-radius: 0 ${J.big} ${J.big} 0;
|
|
@@ -1162,7 +1153,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1162
1153
|
margin-left: ${D(32)};
|
|
1163
1154
|
}
|
|
1164
1155
|
`}
|
|
1165
|
-
`,
|
|
1156
|
+
`,Tc=y.default.div`
|
|
1166
1157
|
background: white;
|
|
1167
1158
|
box-shadow: ${ee.level5};
|
|
1168
1159
|
display: flex;
|
|
@@ -1181,11 +1172,11 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1181
1172
|
}
|
|
1182
1173
|
|
|
1183
1174
|
@media (min-width: ${P.medium}px) {
|
|
1184
|
-
${
|
|
1175
|
+
${Ac} + ${Nc} {
|
|
1185
1176
|
padding-right: 0;
|
|
1186
1177
|
}
|
|
1187
1178
|
}
|
|
1188
|
-
`,
|
|
1179
|
+
`,Dc=D(15),Fc=y.default.span`
|
|
1189
1180
|
display: block;
|
|
1190
1181
|
height: ${D(2)};
|
|
1191
1182
|
width: ${D(22)};
|
|
@@ -1197,7 +1188,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1197
1188
|
& + & {
|
|
1198
1189
|
margin-top: ${D(4)};
|
|
1199
1190
|
}
|
|
1200
|
-
`,
|
|
1191
|
+
`,Lc=y.default.button`
|
|
1201
1192
|
display: flex;
|
|
1202
1193
|
flex-direction: column;
|
|
1203
1194
|
align-items: center;
|
|
@@ -1216,23 +1207,23 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1216
1207
|
}
|
|
1217
1208
|
|
|
1218
1209
|
${({color:e})=>o.css`
|
|
1219
|
-
${
|
|
1210
|
+
${Fc} {
|
|
1220
1211
|
background-color: ${e};
|
|
1221
1212
|
}
|
|
1222
1213
|
`}
|
|
1223
1214
|
|
|
1224
1215
|
${({isOpen:e})=>e&&o.css`
|
|
1225
|
-
${
|
|
1216
|
+
${Fc} {
|
|
1226
1217
|
position: absolute;
|
|
1227
1218
|
|
|
1228
1219
|
&:first-child {
|
|
1229
1220
|
transform: rotate(45deg);
|
|
1230
|
-
top: ${
|
|
1221
|
+
top: ${Dc};
|
|
1231
1222
|
}
|
|
1232
1223
|
|
|
1233
1224
|
&:last-child {
|
|
1234
1225
|
transform: rotate(-45deg);
|
|
1235
|
-
bottom: ${
|
|
1226
|
+
bottom: ${Dc};
|
|
1236
1227
|
}
|
|
1237
1228
|
|
|
1238
1229
|
&:nth-child(2n) {
|
|
@@ -1245,16 +1236,16 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1245
1236
|
height: ${D(24)};
|
|
1246
1237
|
width: ${D(24)};
|
|
1247
1238
|
|
|
1248
|
-
${
|
|
1239
|
+
${Fc} {
|
|
1249
1240
|
width: ${D(12)};
|
|
1250
1241
|
}
|
|
1251
1242
|
|
|
1252
|
-
${
|
|
1243
|
+
${Fc} + ${Fc} {
|
|
1253
1244
|
margin-top: ${D(2)};
|
|
1254
1245
|
}
|
|
1255
1246
|
|
|
1256
1247
|
${t&&o.css`
|
|
1257
|
-
${
|
|
1248
|
+
${Fc} {
|
|
1258
1249
|
&:first-child {
|
|
1259
1250
|
top: ${D(11)};
|
|
1260
1251
|
}
|
|
@@ -1265,7 +1256,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1265
1256
|
}
|
|
1266
1257
|
`}
|
|
1267
1258
|
`}
|
|
1268
|
-
`;var
|
|
1259
|
+
`;var Mc,Rc,Bc,_c;exports.ButtonAppearance=void 0,(Mc=exports.ButtonAppearance||(exports.ButtonAppearance={})).BASIC="basic",Mc.NO_APPEARANCE="noAppearance",Mc.PRIMARY="primary",Mc.SECONDARY="secondary",exports.ButtonTheme=void 0,(Rc=exports.ButtonTheme||(exports.ButtonTheme={})).BLACK="black",Rc.BLUE="blue",Rc.GREEN="green",Rc.PINK="pink",Rc.ORANGE="orange",Rc.RED="red",Rc.WHITE="white",exports.ButtonSizes=void 0,(Bc=exports.ButtonSizes||(exports.ButtonSizes={})).BIG="big",Bc.FULL="full",Bc.LARGE="large",Bc.SMALL="small",exports.IconPosition=void 0,(_c=exports.IconPosition||(exports.IconPosition={})).LEFT="left",_c.RIGHT="right";const zc=e=>{const t=16*Number(e.replace(/rem/,""))-2;return`${D(t)}`},Uc=o.css`
|
|
1269
1260
|
border: ${D(2)} solid transparent;
|
|
1270
1261
|
transition: background-color 0.2s ease-out, border 0.2s ease-out,
|
|
1271
1262
|
color 0.2s ease-out;
|
|
@@ -1274,8 +1265,8 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1274
1265
|
color: ${T.grey.base60};
|
|
1275
1266
|
background-color: ${T.dark.base10};
|
|
1276
1267
|
}
|
|
1277
|
-
`,
|
|
1278
|
-
${
|
|
1268
|
+
`,Gc=o.css`
|
|
1269
|
+
${Uc};
|
|
1279
1270
|
color: white;
|
|
1280
1271
|
|
|
1281
1272
|
${({theme:e})=>e===exports.ButtonTheme.GREEN?o.css`
|
|
@@ -1325,8 +1316,8 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1325
1316
|
background-color: ${T.terracota.base80};
|
|
1326
1317
|
}
|
|
1327
1318
|
`};
|
|
1328
|
-
`,
|
|
1329
|
-
${
|
|
1319
|
+
`,Hc=o.css`
|
|
1320
|
+
${Uc};
|
|
1330
1321
|
border-color: currentColor;
|
|
1331
1322
|
|
|
1332
1323
|
:disabled {
|
|
@@ -1382,7 +1373,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1382
1373
|
background-color: ${a.transparentize(.8,T.terracota.base60)};
|
|
1383
1374
|
}
|
|
1384
1375
|
`};
|
|
1385
|
-
`,
|
|
1376
|
+
`,Wc=o.css`
|
|
1386
1377
|
color: ${T.terracota.base};
|
|
1387
1378
|
min-height: 0;
|
|
1388
1379
|
padding: 0;
|
|
@@ -1454,14 +1445,14 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1454
1445
|
color: ${T.terracota.base60};
|
|
1455
1446
|
}
|
|
1456
1447
|
`};
|
|
1457
|
-
`,
|
|
1448
|
+
`,qc=o.css`
|
|
1458
1449
|
${L};
|
|
1459
1450
|
font-weight: 500;
|
|
1460
1451
|
letter-spacing: 0.04em;
|
|
1461
|
-
`,
|
|
1452
|
+
`,Vc=y.default.div`
|
|
1462
1453
|
display: flex;
|
|
1463
1454
|
align-items: center;
|
|
1464
|
-
`,
|
|
1455
|
+
`,Yc=y.default.div`
|
|
1465
1456
|
svg {
|
|
1466
1457
|
width: 100%;
|
|
1467
1458
|
height: 100%;
|
|
@@ -1494,8 +1485,8 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1494
1485
|
margin-right: 0;
|
|
1495
1486
|
`}
|
|
1496
1487
|
`}
|
|
1497
|
-
`,
|
|
1498
|
-
${
|
|
1488
|
+
`,Kc=y.default.button`
|
|
1489
|
+
${M};
|
|
1499
1490
|
display: inline-flex;
|
|
1500
1491
|
align-items: center;
|
|
1501
1492
|
cursor: pointer;
|
|
@@ -1531,31 +1522,31 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1531
1522
|
}
|
|
1532
1523
|
|
|
1533
1524
|
${({size:e,icon:t,iconPosition:n})=>e===exports.ButtonSizes.FULL?o.css`
|
|
1534
|
-
font-size: ${
|
|
1525
|
+
font-size: ${R.base};
|
|
1535
1526
|
min-height: ${D(48)};
|
|
1536
1527
|
width: 100%;
|
|
1537
1528
|
justify-content: center;
|
|
1538
|
-
padding: ${
|
|
1529
|
+
padding: ${zc(D(4))} 0;
|
|
1539
1530
|
`:e===exports.ButtonSizes.BIG?o.css`
|
|
1540
|
-
font-size: ${
|
|
1531
|
+
font-size: ${R.base};
|
|
1541
1532
|
min-height: ${D(48)};
|
|
1542
|
-
padding: ${
|
|
1543
|
-
${t&&n===exports.IconPosition.RIGHT?0:
|
|
1544
|
-
${
|
|
1545
|
-
${t&&n===exports.IconPosition.LEFT?0:
|
|
1533
|
+
padding: ${zc(D(4))}
|
|
1534
|
+
${t&&n===exports.IconPosition.RIGHT?0:zc(D(24))}
|
|
1535
|
+
${zc(D(4))}
|
|
1536
|
+
${t&&n===exports.IconPosition.LEFT?0:zc(D(24))};
|
|
1546
1537
|
`:e===exports.ButtonSizes.LARGE?o.css`
|
|
1547
|
-
font-size: ${
|
|
1538
|
+
font-size: ${R.base};
|
|
1548
1539
|
min-height: ${D(40)};
|
|
1549
|
-
padding: ${
|
|
1550
|
-
${t&&n===exports.IconPosition.RIGHT?0:
|
|
1551
|
-
${
|
|
1552
|
-
${t&&n===exports.IconPosition.LEFT?0:
|
|
1540
|
+
padding: ${zc(D(4))}
|
|
1541
|
+
${t&&n===exports.IconPosition.RIGHT?0:zc(D(24))}
|
|
1542
|
+
${zc(D(4))}
|
|
1543
|
+
${t&&n===exports.IconPosition.LEFT?0:zc(D(24))};
|
|
1553
1544
|
`:o.css`
|
|
1554
1545
|
min-height: ${D(32)};
|
|
1555
|
-
padding: ${
|
|
1556
|
-
${t&&n===exports.IconPosition.RIGHT?0:
|
|
1557
|
-
${
|
|
1558
|
-
${t&&n===exports.IconPosition.LEFT?0:
|
|
1546
|
+
padding: ${zc(D(4))}
|
|
1547
|
+
${t&&n===exports.IconPosition.RIGHT?0:zc(D(16))}
|
|
1548
|
+
${zc(D(4))}
|
|
1549
|
+
${t&&n===exports.IconPosition.LEFT?0:zc(D(16))};
|
|
1559
1550
|
`}
|
|
1560
1551
|
|
|
1561
1552
|
${({iconPosition:e})=>e===exports.IconPosition.RIGHT&&o.css`
|
|
@@ -1566,7 +1557,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1566
1557
|
border-radius: ${J.rounded};
|
|
1567
1558
|
padding: 0;
|
|
1568
1559
|
|
|
1569
|
-
${
|
|
1560
|
+
${Yc} {
|
|
1570
1561
|
width: 100%;
|
|
1571
1562
|
margin: 0;
|
|
1572
1563
|
}
|
|
@@ -1577,16 +1568,16 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1577
1568
|
`}
|
|
1578
1569
|
|
|
1579
1570
|
${({appearance:e})=>e===exports.ButtonAppearance.PRIMARY?o.css`
|
|
1580
|
-
${
|
|
1571
|
+
${Gc}
|
|
1581
1572
|
`:e===exports.ButtonAppearance.SECONDARY?o.css`
|
|
1582
|
-
${
|
|
1573
|
+
${Hc}
|
|
1583
1574
|
`:e===exports.ButtonAppearance.NO_APPEARANCE?o.css`
|
|
1584
|
-
${
|
|
1575
|
+
${Wc}
|
|
1585
1576
|
`:e===exports.ButtonAppearance.BASIC&&o.css`
|
|
1586
|
-
${
|
|
1587
|
-
${
|
|
1577
|
+
${Wc}
|
|
1578
|
+
${qc}
|
|
1588
1579
|
`}
|
|
1589
|
-
`,
|
|
1580
|
+
`,Xc=y.default.label`
|
|
1590
1581
|
${Z.bodyLight1};
|
|
1591
1582
|
flex: 1;
|
|
1592
1583
|
padding: ${D(16)} ${D(24)};
|
|
@@ -1656,7 +1647,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1656
1647
|
overflow: hidden;
|
|
1657
1648
|
flex-wrap: nowrap;
|
|
1658
1649
|
}
|
|
1659
|
-
`,
|
|
1650
|
+
`,Zc=y.default.input`
|
|
1660
1651
|
border: 0;
|
|
1661
1652
|
clip-path: rect(0, 0, 0, 0);
|
|
1662
1653
|
width: ${D(1)};
|
|
@@ -1666,7 +1657,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1666
1657
|
overflow: hidden;
|
|
1667
1658
|
white-space: nowrap;
|
|
1668
1659
|
position: absolute;
|
|
1669
|
-
`,
|
|
1660
|
+
`,Jc=({isChecked:t,name:r,onClick:o,option:a})=>{const i=`radio-input-label-${n.useId()}`,s=n.useMemo((()=>i),[]);return e.jsxs(Xc,{isActive:t,children:[e.jsx(Zc,{"aria-labelledby":s,checked:t,name:r,type:"radio",value:a.value,onChange:({target:e})=>e.checked&&o()}),e.jsx("div",{"aria-hidden":"true",id:s,children:a.label})]},`radio-option-${a.value}`)},Qc=y.default.div`
|
|
1670
1661
|
position: relative;
|
|
1671
1662
|
z-index: 0;
|
|
1672
1663
|
display: flex;
|
|
@@ -1678,7 +1669,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1678
1669
|
@media (min-width: ${P.small}px) {
|
|
1679
1670
|
flex-direction: row;
|
|
1680
1671
|
}
|
|
1681
|
-
`,
|
|
1672
|
+
`,eu=y.default.label`
|
|
1682
1673
|
${Z.label};
|
|
1683
1674
|
display: flex;
|
|
1684
1675
|
align-items: center;
|
|
@@ -1716,9 +1707,9 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1716
1707
|
background-color: ${T.terracota.base5};
|
|
1717
1708
|
color: ${T.dark.base};
|
|
1718
1709
|
`};
|
|
1719
|
-
`,
|
|
1710
|
+
`,tu=y.default.input`
|
|
1720
1711
|
${a.hideVisually()};
|
|
1721
|
-
`,
|
|
1712
|
+
`,nu=y.default.span`
|
|
1722
1713
|
display: flex;
|
|
1723
1714
|
align-items: center;
|
|
1724
1715
|
justify-content: center;
|
|
@@ -1734,7 +1725,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1734
1725
|
width: ${D(24)};
|
|
1735
1726
|
transition: color 0.1s ease-in;
|
|
1736
1727
|
}
|
|
1737
|
-
`,
|
|
1728
|
+
`,ru=y.default.label`
|
|
1738
1729
|
${Z.breadcrumb};
|
|
1739
1730
|
display: inline-flex;
|
|
1740
1731
|
flex-direction: column;
|
|
@@ -1749,7 +1740,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1749
1740
|
}
|
|
1750
1741
|
|
|
1751
1742
|
${({checked:e})=>e&&o.css`
|
|
1752
|
-
${
|
|
1743
|
+
${nu} {
|
|
1753
1744
|
color: ${T.terracota.base};
|
|
1754
1745
|
border-color: currentColor;
|
|
1755
1746
|
background-color: ${T.terracota.base5};
|
|
@@ -1758,7 +1749,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1758
1749
|
|
|
1759
1750
|
@media (hover: hover) {
|
|
1760
1751
|
:hover {
|
|
1761
|
-
${
|
|
1752
|
+
${nu} {
|
|
1762
1753
|
border-color: ${T.terracota.base};
|
|
1763
1754
|
|
|
1764
1755
|
> svg {
|
|
@@ -1775,9 +1766,9 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1775
1766
|
margin: 0 0 0 ${D(16)};
|
|
1776
1767
|
}
|
|
1777
1768
|
}
|
|
1778
|
-
`;const cu=({fill:t})=>e.jsx("svg",{fill:"none",height:"32",viewBox:"0 0 32 32",width:"32",xmlns:"http://www.w3.org/2000/svg","data-test":"help-icon",children:e.jsx("path",{d:"m18.456 15.4-.72.736c-.576.576-.936 1.064-.936 2.264h-1.6v-.4c0-.888.36-1.688.936-2.264l.992-1.008c.296-.288.472-.688.472-1.128 0-.888-.72-1.6-1.6-1.6-.4243 0-.8313.1685-1.1314.4686-.3.3001-.4686.707-.4686 1.1314h-1.6c0-.8487.3371-1.6627.9373-2.2628.6001-.6001 1.414-.9372 2.2627-.9372s1.6626.3371 2.2627.9372c.6002.6001.9373 1.4141.9373 2.2628 0 .704-.288 1.336-.744 1.8zm-1.656 6.2h-1.6v-1.6h1.6zm-.8-13.60003c-1.0506 0-2.0909.20693-3.0615.60896-.9706.40204-1.8525.99132-2.5954 1.73417-1.50025 1.5003-2.3431 3.5351-2.3431 5.6569 0 2.1217.84285 4.1565 2.3431 5.6568.7429.7429 1.6248 1.3322 2.5954 1.7342s2.0109.609 3.0615.609c2.1217 0 4.1566-.8429 5.6569-2.3432 1.5002-1.5003 2.3431-3.5351 2.3431-5.6568 0-4.424-3.6-8.00003-8-8.00003z",fill:t})});function uu(){return uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uu.apply(this,arguments)}xe('.tooltip-container{--tooltipBackground:#fff;--tooltipBorder:silver;--tooltipColor:#000;background-color:var(--tooltipBackground);border:1px solid var(--tooltipBorder);border-radius:3px;box-shadow:0 2px 4px rgba(0,0,0,.18);color:var(--tooltipColor);display:flex;flex-direction:column;padding:.4rem;transition:opacity .3s;z-index:9999}.tooltip-arrow,.tooltip-container[data-popper-interactive=false]{pointer-events:none}.tooltip-arrow{height:1rem;position:absolute;width:1rem}.tooltip-arrow:after,.tooltip-arrow:before{border-style:solid;content:"";display:block;height:0;margin:auto;width:0}.tooltip-arrow:after{position:absolute}.tooltip-container[data-popper-placement*=bottom] .tooltip-arrow{left:0;margin-top:-.4rem;top:0}.tooltip-container[data-popper-placement*=bottom] .tooltip-arrow:before{border-color:transparent transparent var(--tooltipBorder) transparent;border-width:0 .5rem .4rem;position:absolute;top:-1px}.tooltip-container[data-popper-placement*=bottom] .tooltip-arrow:after{border-color:transparent transparent var(--tooltipBackground) transparent;border-width:0 .5rem .4rem}.tooltip-container[data-popper-placement*=top] .tooltip-arrow{bottom:0;left:0;margin-bottom:-1rem}.tooltip-container[data-popper-placement*=top] .tooltip-arrow:before{border-color:var(--tooltipBorder) transparent transparent transparent;border-width:.4rem .5rem 0;position:absolute;top:1px}.tooltip-container[data-popper-placement*=top] .tooltip-arrow:after{border-color:var(--tooltipBackground) transparent transparent transparent;border-width:.4rem .5rem 0}.tooltip-container[data-popper-placement*=right] .tooltip-arrow{left:0;margin-left:-.7rem}.tooltip-container[data-popper-placement*=right] .tooltip-arrow:before{border-color:transparent var(--tooltipBorder) transparent transparent;border-width:.5rem .4rem .5rem 0}.tooltip-container[data-popper-placement*=right] .tooltip-arrow:after{border-color:transparent var(--tooltipBackground) transparent transparent;border-width:.5rem .4rem .5rem 0;left:6px;top:0}.tooltip-container[data-popper-placement*=left] .tooltip-arrow{margin-right:-.7rem;right:0}.tooltip-container[data-popper-placement*=left] .tooltip-arrow:before{border-color:transparent transparent transparent var(--tooltipBorder);border-width:.5rem 0 .5rem .4em}.tooltip-container[data-popper-placement*=left] .tooltip-arrow:after{border-color:transparent transparent transparent var(--tooltipBackground);border-width:.5rem 0 .5rem .4em;left:3px;top:0}');var fu=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},pu="undefined"!=typeof window&&window.document&&window.document.createElement?y.useLayoutEffect:y.useEffect,hu="top",gu="bottom",mu="right",bu="left",yu="auto",vu=[hu,gu,mu,bu],$u="start",xu="end",wu="clippingParents",Cu="viewport",Ou="popper",ku="reference",ju=vu.reduce((function(e,t){return e.concat([t+"-"+$u,t+"-"+xu])}),[]),Su=[].concat(vu,[yu]).reduce((function(e,t){return e.concat([t,t+"-"+$u,t+"-"+xu])}),[]),Eu=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Pu(e){return e?(e.nodeName||"").toLowerCase():null}function Iu(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Nu(e){return e instanceof Iu(e).Element||e instanceof Element}function Au(e){return e instanceof Iu(e).HTMLElement||e instanceof HTMLElement}function Tu(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Iu(e).ShadowRoot||e instanceof ShadowRoot)}var Du={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Au(o)&&Pu(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Au(r)&&Pu(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Fu(e){return e.split("-")[0]}var Lu=Math.max,Ru=Math.min,Mu=Math.round;function _u(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Bu(){return!/^((?!chrome|android).)*safari/i.test(_u())}function zu(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Au(e)&&(o=e.offsetWidth>0&&Mu(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Mu(r.height)/e.offsetHeight||1);var i=(Nu(e)?Iu(e):window).visualViewport,s=!Bu()&&n,l=(r.left+(s&&i?i.offsetLeft:0))/o,d=(r.top+(s&&i?i.offsetTop:0))/a,c=r.width/o,u=r.height/a;return{width:c,height:u,top:d,right:l+c,bottom:d+u,left:l,x:l,y:d}}function Uu(e){var t=zu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Gu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Tu(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Wu(e){return Iu(e).getComputedStyle(e)}function Hu(e){return["table","td","th"].indexOf(Pu(e))>=0}function Vu(e){return((Nu(e)?e.ownerDocument:e.document)||window.document).documentElement}function qu(e){return"html"===Pu(e)?e:e.assignedSlot||e.parentNode||(Tu(e)?e.host:null)||Vu(e)}function Yu(e){return Au(e)&&"fixed"!==Wu(e).position?e.offsetParent:null}function Ku(e){for(var t=Iu(e),n=Yu(e);n&&Hu(n)&&"static"===Wu(n).position;)n=Yu(n);return n&&("html"===Pu(n)||"body"===Pu(n)&&"static"===Wu(n).position)?t:n||function(e){var t=/firefox/i.test(_u());if(/Trident/i.test(_u())&&Au(e)&&"fixed"===Wu(e).position)return null;var n=qu(e);for(Tu(n)&&(n=n.host);Au(n)&&["html","body"].indexOf(Pu(n))<0;){var r=Wu(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Xu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zu(e,t,n){return Lu(e,Ru(t,n))}function Ju(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Qu(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var ef={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=Fu(n.placement),l=Xu(s),d=[bu,mu].indexOf(s)>=0?"height":"width";if(a&&i){var c=function(e,t){return Ju("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Qu(e,vu))}(o.padding,n),u=Uu(a),f="y"===l?hu:bu,p="y"===l?gu:mu,h=n.rects.reference[d]+n.rects.reference[l]-i[l]-n.rects.popper[d],g=i[l]-n.rects.reference[l],m=Ku(a),b=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,y=h/2-g/2,v=c[f],$=b-u[d]-c[p],x=b/2-u[d]/2+y,w=Zu(v,x,$),C=l;n.modifiersData[r]=((t={})[C]=w,t.centerOffset=w-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Gu(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tf(e){return e.split("-")[1]}var nf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rf(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,u=e.isFixed,f=i.x,p=void 0===f?0:f,h=i.y,g=void 0===h?0:h,m="function"==typeof c?c({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var b=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),v=bu,$=hu,x=window;if(d){var w=Ku(n),C="clientHeight",O="clientWidth";if(w===Iu(n)&&"static"!==Wu(w=Vu(n)).position&&"absolute"===s&&(C="scrollHeight",O="scrollWidth"),o===hu||(o===bu||o===mu)&&a===xu)$=gu,g-=(u&&w===x&&x.visualViewport?x.visualViewport.height:w[C])-r.height,g*=l?1:-1;if(o===bu||(o===hu||o===gu)&&a===xu)v=mu,p-=(u&&w===x&&x.visualViewport?x.visualViewport.width:w[O])-r.width,p*=l?1:-1}var k,j=Object.assign({position:s},d&&nf),S=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Mu(n*o)/o||0,y:Mu(r*o)/o||0}}({x:p,y:g},Iu(n)):{x:p,y:g};return p=S.x,g=S.y,l?Object.assign({},j,((k={})[$]=y?"0":"",k[v]=b?"0":"",k.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",k)):Object.assign({},j,((t={})[$]=y?g+"px":"",t[v]=b?p+"px":"",t.transform="",t))}var of={passive:!0};var af={left:"right",right:"left",bottom:"top",top:"bottom"};function sf(e){return e.replace(/left|right|bottom|top/g,(function(e){return af[e]}))}var lf={start:"end",end:"start"};function df(e){return e.replace(/start|end/g,(function(e){return lf[e]}))}function cf(e){var t=Iu(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function uf(e){return zu(Vu(e)).left+cf(e).scrollLeft}function ff(e){var t=Wu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function pf(e){return["html","body","#document"].indexOf(Pu(e))>=0?e.ownerDocument.body:Au(e)&&ff(e)?e:pf(qu(e))}function hf(e,t){var n;void 0===t&&(t=[]);var r=pf(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Iu(r),i=o?[a].concat(a.visualViewport||[],ff(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(hf(qu(i)))}function gf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mf(e,t,n){return t===Cu?gf(function(e,t){var n=Iu(e),r=Vu(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var d=Bu();(d||!d&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+uf(e),y:l}}(e,n)):Nu(t)?function(e,t){var n=zu(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):gf(function(e){var t,n=Vu(e),r=cf(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Lu(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Lu(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+uf(e),l=-r.scrollTop;return"rtl"===Wu(o||n).direction&&(s+=Lu(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(Vu(e)))}function bf(e,t,n,r){var o="clippingParents"===t?function(e){var t=hf(qu(e)),n=["absolute","fixed"].indexOf(Wu(e).position)>=0&&Au(e)?Ku(e):e;return Nu(n)?t.filter((function(e){return Nu(e)&&Gu(e,n)&&"body"!==Pu(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce((function(t,n){var o=mf(e,n,r);return t.top=Lu(o.top,t.top),t.right=Ru(o.right,t.right),t.bottom=Ru(o.bottom,t.bottom),t.left=Lu(o.left,t.left),t}),mf(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function yf(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Fu(o):null,i=o?tf(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case hu:t={x:s,y:n.y-r.height};break;case gu:t={x:s,y:n.y+n.height};break;case mu:t={x:n.x+n.width,y:l};break;case bu:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var d=a?Xu(a):null;if(null!=d){var c="y"===d?"height":"width";switch(i){case $u:t[d]=t[d]-(n[c]/2-r[c]/2);break;case xu:t[d]=t[d]+(n[c]/2-r[c]/2)}}return t}function vf(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,s=n.boundary,l=void 0===s?wu:s,d=n.rootBoundary,c=void 0===d?Cu:d,u=n.elementContext,f=void 0===u?Ou:u,p=n.altBoundary,h=void 0!==p&&p,g=n.padding,m=void 0===g?0:g,b=Ju("number"!=typeof m?m:Qu(m,vu)),y=f===Ou?ku:Ou,v=e.rects.popper,$=e.elements[h?y:f],x=bf(Nu($)?$:$.contextElement||Vu(e.elements.popper),l,c,i),w=zu(e.elements.reference),C=yf({reference:w,element:v,strategy:"absolute",placement:o}),O=gf(Object.assign({},v,C)),k=f===Ou?O:w,j={top:x.top-k.top+b.top,bottom:k.bottom-x.bottom+b.bottom,left:x.left-k.left+b.left,right:k.right-x.right+b.right},S=e.modifiersData.offset;if(f===Ou&&S){var E=S[o];Object.keys(j).forEach((function(e){var t=[mu,gu].indexOf(e)>=0?1:-1,n=[hu,gu].indexOf(e)>=0?"y":"x";j[e]+=E[n]*t}))}return j}function $f(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,d=void 0===l?Su:l,c=tf(r),u=c?s?ju:ju.filter((function(e){return tf(e)===c})):vu,f=u.filter((function(e){return d.indexOf(e)>=0}));0===f.length&&(f=u);var p=f.reduce((function(t,n){return t[n]=vf(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[Fu(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var xf={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,d=n.padding,c=n.boundary,u=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,g=n.allowedAutoPlacements,m=t.options.placement,b=Fu(m),y=l||(b===m||!h?[sf(m)]:function(e){if(Fu(e)===yu)return[];var t=sf(e);return[df(e),t,df(t)]}(m)),v=[m].concat(y).reduce((function(e,n){return e.concat(Fu(n)===yu?$f(t,{placement:n,boundary:c,rootBoundary:u,padding:d,flipVariations:h,allowedAutoPlacements:g}):n)}),[]),$=t.rects.reference,x=t.rects.popper,w=new Map,C=!0,O=v[0],k=0;k<v.length;k++){var j=v[k],S=Fu(j),E=tf(j)===$u,P=[hu,gu].indexOf(S)>=0,I=P?"width":"height",N=vf(t,{placement:j,boundary:c,rootBoundary:u,altBoundary:f,padding:d}),A=P?E?mu:bu:E?gu:hu;$[I]>x[I]&&(A=sf(A));var T=sf(A),D=[];if(a&&D.push(N[S]<=0),s&&D.push(N[A]<=0,N[T]<=0),D.every((function(e){return e}))){O=j,C=!1;break}w.set(j,D)}if(C)for(var F=function(e){var t=v.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},L=h?3:1;L>0;L--){if("break"===F(L))break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function wf(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Cf(e){return[hu,mu,gu,bu].some((function(t){return e[t]>=0}))}var Of={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=Su.reduce((function(e,n){return e[n]=function(e,t,n){var r=Fu(e),o=[bu,hu].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[bu,mu].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e}),{}),s=i[t.placement],l=s.x,d=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=i}};var kf={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,d=n.rootBoundary,c=n.altBoundary,u=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,g=void 0===h?0:h,m=vf(t,{boundary:l,rootBoundary:d,padding:u,altBoundary:c}),b=Fu(t.placement),y=tf(t.placement),v=!y,$=Xu(b),x="x"===$?"y":"x",w=t.modifiersData.popperOffsets,C=t.rects.reference,O=t.rects.popper,k="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,j="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(w){if(a){var P,I="y"===$?hu:bu,N="y"===$?gu:mu,A="y"===$?"height":"width",T=w[$],D=T+m[I],F=T-m[N],L=p?-O[A]/2:0,R=y===$u?C[A]:O[A],M=y===$u?-O[A]:-C[A],_=t.elements.arrow,B=p&&_?Uu(_):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=z[I],G=z[N],W=Zu(0,C[A],B[A]),H=v?C[A]/2-L-W-U-j.mainAxis:R-W-U-j.mainAxis,V=v?-C[A]/2+L+W+G+j.mainAxis:M+W+G+j.mainAxis,q=t.elements.arrow&&Ku(t.elements.arrow),Y=q?"y"===$?q.clientTop||0:q.clientLeft||0:0,K=null!=(P=null==S?void 0:S[$])?P:0,X=T+V-K,Z=Zu(p?Ru(D,T+H-K-Y):D,T,p?Lu(F,X):F);w[$]=Z,E[$]=Z-T}if(s){var J,Q="x"===$?hu:bu,ee="x"===$?gu:mu,te=w[x],ne="y"===x?"height":"width",re=te+m[Q],oe=te-m[ee],ae=-1!==[hu,bu].indexOf(b),ie=null!=(J=null==S?void 0:S[x])?J:0,se=ae?re:te-C[ne]-O[ne]-ie+j.altAxis,le=ae?te+C[ne]+O[ne]-ie-j.altAxis:oe,de=p&&ae?function(e,t,n){var r=Zu(e,t,n);return r>n?n:r}(se,te,le):Zu(p?se:re,te,p?le:oe);w[x]=de,E[x]=de-te}t.modifiersData[r]=E}},requiresIfExists:["offset"]};function jf(e,t,n){void 0===n&&(n=!1);var r,o,a=Au(t),i=Au(t)&&function(e){var t=e.getBoundingClientRect(),n=Mu(t.width)/e.offsetWidth||1,r=Mu(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=Vu(t),l=zu(e,i,n),d={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&(("body"!==Pu(t)||ff(s))&&(d=(r=t)!==Iu(r)&&Au(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:cf(r)),Au(t)?((c=zu(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=uf(s))),{x:l.left+d.scrollLeft-c.x,y:l.top+d.scrollTop-c.y,width:l.width,height:l.height}}function Sf(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var Ef={placement:"bottom",modifiers:[],strategy:"absolute"};function Pf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function If(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Ef:o;return function(e,t,n){void 0===n&&(n=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ef,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],d=!1,c={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;u(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:Nu(e)?hf(e):e.contextElement?hf(e.contextElement):[],popper:hf(t)};var i,d,f=function(e){var t=Sf(e);return Eu.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,s.options.modifiers),d=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(d).map((function(e){return d[e]}))));return s.orderedModifiers=f.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:s,name:t,instance:c,options:r}),i=function(){};l.push(a||i)}})),c.update()},forceUpdate:function(){if(!d){var e=s.elements,t=e.reference,n=e.popper;if(Pf(t,n)){s.rects={reference:jf(t,Ku(n),"fixed"===s.options.strategy),popper:Uu(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],a=o.fn,i=o.options,l=void 0===i?{}:i,u=o.name;"function"==typeof a&&(s=a({state:s,options:l,name:u,instance:c})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(s)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){u(),d=!0}};if(!Pf(e,t))return c;function u(){l.forEach((function(e){return e()})),l=[]}return c.setOptions(n).then((function(e){!d&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var Nf=If({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=Iu(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach((function(e){e.addEventListener("scroll",n.update,of)})),s&&l.addEventListener("resize",n.update,of),function(){a&&d.forEach((function(e){e.removeEventListener("scroll",n.update,of)})),s&&l.removeEventListener("resize",n.update,of)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=yf({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,d={placement:Fu(t.placement),variation:tf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,rf(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,rf(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Du,Of,xf,kf,ef,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=vf(t,{elementContext:"reference"}),s=vf(t,{altBoundary:!0}),l=wf(i,r),d=wf(s,o,a),c=Cf(l),u=Cf(d);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":u})}}]}),Af="undefined"!=typeof Element,Tf="function"==typeof Map,Df="function"==typeof Set,Ff="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Lf(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,a;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!Lf(e[r],t[r]))return!1;return!0}if(Tf&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!Lf(r.value[1],t.get(r.value[0])))return!1;return!0}if(Df&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Ff&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Af&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!Lf(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var Rf=En((function(e,t){try{return Lf(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}})),Mf=[];function _f(e){var t=y.useRef(e);return t.current=e,y.useCallback((function(){return t.current}),[])}var Bf=function(){};function zf(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:function(){return null}}}}var Uf=["styles","attributes"],Gf={getBoundingClientRect:zf()},Wf={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"};function Hf(e,t){var n,r,o;void 0===e&&(e={}),void 0===t&&(t={});var a=Object.keys(Wf).reduce((function(e,t){var n;return uu({},e,((n={})[t]=void 0!==e[t]?e[t]:Wf[t],n))}),e),i=y.useMemo((function(){return[{name:"offset",options:{offset:a.offset}}]}),Array.isArray(a.offset)?a.offset:[]),s=uu({},t,{placement:t.placement||a.placement,modifiers:t.modifiers||i}),l=y.useState(null),d=l[0],c=l[1],u=y.useState(null),f=u[0],p=u[1],h=function(e){var t=e.initial,n=e.value,r=e.onChange,o=void 0===r?Bf:r;if(void 0===t&&void 0===n)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var a=y.useState(t),i=a[0],s=a[1],l=_f(i),d=y.useCallback((function(e){var t=l(),n="function"==typeof e?e(t):e;"function"==typeof n.persist&&n.persist(),s(n),"function"==typeof o&&o(n)}),[l,o]),c=void 0!==n;return[c?n:i,c?o:d]}({initial:a.defaultVisible,value:a.visible,onChange:a.onVisibleChange}),g=h[0],m=h[1],b=y.useRef();y.useEffect((function(){return function(){return clearTimeout(b.current)}}),[]);var v=function(e,t,n){void 0===n&&(n={});var r=y.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Mf},a=y.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=a[0],s=a[1],l=y.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);j.flushSync((function(){s({styles:fu(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:fu(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),d=y.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[l,{name:"applyStyles",enabled:!1}])};return Rf(r.current,e)?r.current||e:(r.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,l]),c=y.useRef();return pu((function(){c.current&&c.current.setOptions(d)}),[d]),pu((function(){if(null!=e&&null!=t){var r=(n.createPopper||Nf)(e,t,d);return c.current=r,function(){r.destroy(),c.current=null}}}),[e,t,n.createPopper]),{state:c.current?c.current.state:null,styles:i.styles,attributes:i.attributes,update:c.current?c.current.update:null,forceUpdate:c.current?c.current.forceUpdate:null}}(a.followCursor?Gf:d,f,s),$=v.styles,x=v.attributes,w=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(v,Uf),C=w.update,O=_f({visible:g,triggerRef:d,tooltipRef:f,finalConfig:a}),k=y.useCallback((function(e){return Array.isArray(a.trigger)?a.trigger.includes(e):a.trigger===e}),Array.isArray(a.trigger)?a.trigger:[a.trigger]),S=y.useCallback((function(){clearTimeout(b.current),b.current=window.setTimeout((function(){return m(!1)}),a.delayHide)}),[a.delayHide,m]),E=y.useCallback((function(){clearTimeout(b.current),b.current=window.setTimeout((function(){return m(!0)}),a.delayShow)}),[a.delayShow,m]),P=y.useCallback((function(){O().visible?S():E()}),[O,S,E]);y.useEffect((function(){if(O().finalConfig.closeOnOutsideClick){var e=function(e){var t,n=O(),r=n.tooltipRef,o=n.triggerRef,a=(null==e.composedPath||null==(t=e.composedPath())?void 0:t[0])||e.target;a instanceof Node&&(null==r||null==o||r.contains(a)||o.contains(a)||S())};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}}),[O,S]),y.useEffect((function(){if(null!=d&&k("click"))return d.addEventListener("click",P),function(){return d.removeEventListener("click",P)}}),[d,k,P]),y.useEffect((function(){if(null!=d&&k("double-click"))return d.addEventListener("dblclick",P),function(){return d.removeEventListener("dblclick",P)}}),[d,k,P]),y.useEffect((function(){if(null!=d&&k("right-click")){var e=function(e){e.preventDefault(),P()};return d.addEventListener("contextmenu",e),function(){return d.removeEventListener("contextmenu",e)}}}),[d,k,P]),y.useEffect((function(){if(null!=d&&k("focus"))return d.addEventListener("focus",E),d.addEventListener("blur",S),function(){d.removeEventListener("focus",E),d.removeEventListener("blur",S)}}),[d,k,E,S]),y.useEffect((function(){if(null!=d&&k("hover"))return d.addEventListener("mouseenter",E),d.addEventListener("mouseleave",S),function(){d.removeEventListener("mouseenter",E),d.removeEventListener("mouseleave",S)}}),[d,k,E,S]),y.useEffect((function(){if(null!=f&&k("hover")&&O().finalConfig.interactive)return f.addEventListener("mouseenter",E),f.addEventListener("mouseleave",S),function(){f.removeEventListener("mouseenter",E),f.removeEventListener("mouseleave",S)}}),[f,k,E,S,O]);var I=null==w||null==(n=w.state)||null==(r=n.modifiersData)||null==(o=r.hide)?void 0:o.isReferenceHidden;y.useEffect((function(){a.closeOnTriggerHidden&&I&&S()}),[a.closeOnTriggerHidden,S,I]),y.useEffect((function(){if(a.followCursor&&null!=d)return d.addEventListener("mousemove",e),function(){return d.removeEventListener("mousemove",e)};function e(e){var t=e.clientX,n=e.clientY;Gf.getBoundingClientRect=zf(t,n),null==C||C()}}),[a.followCursor,d,C]),y.useEffect((function(){if(null!=f&&null!=C&&null!=a.mutationObserverOptions){var e=new MutationObserver(C);return e.observe(f,a.mutationObserverOptions),function(){return e.disconnect()}}}),[a.mutationObserverOptions,f,C]);return uu({getArrowProps:function(e){return void 0===e&&(e={}),uu({},e,x.arrow,{style:uu({},e.style,$.arrow),"data-popper-arrow":!0})},getTooltipProps:function(e){return void 0===e&&(e={}),uu({},e,{style:uu({},e.style,$.popper)},x.popper,{"data-popper-interactive":a.interactive})},setTooltipRef:p,setTriggerRef:c,tooltipRef:f,triggerRef:d,visible:g},w)}const Vf=v.default.div`
|
|
1769
|
+
`;const ou=({fill:t})=>e.jsx("svg",{fill:"none",height:"32",viewBox:"0 0 32 32",width:"32",xmlns:"http://www.w3.org/2000/svg","data-test":"help-icon",children:e.jsx("path",{d:"m18.456 15.4-.72.736c-.576.576-.936 1.064-.936 2.264h-1.6v-.4c0-.888.36-1.688.936-2.264l.992-1.008c.296-.288.472-.688.472-1.128 0-.888-.72-1.6-1.6-1.6-.4243 0-.8313.1685-1.1314.4686-.3.3001-.4686.707-.4686 1.1314h-1.6c0-.8487.3371-1.6627.9373-2.2628.6001-.6001 1.414-.9372 2.2627-.9372s1.6626.3371 2.2627.9372c.6002.6001.9373 1.4141.9373 2.2628 0 .704-.288 1.336-.744 1.8zm-1.656 6.2h-1.6v-1.6h1.6zm-.8-13.60003c-1.0506 0-2.0909.20693-3.0615.60896-.9706.40204-1.8525.99132-2.5954 1.73417-1.50025 1.5003-2.3431 3.5351-2.3431 5.6569 0 2.1217.84285 4.1565 2.3431 5.6568.7429.7429 1.6248 1.3322 2.5954 1.7342s2.0109.609 3.0615.609c2.1217 0 4.1566-.8429 5.6569-2.3432 1.5002-1.5003 2.3431-3.5351 2.3431-5.6568 0-4.424-3.6-8.00003-8-8.00003z",fill:t})});function au(){return au=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},au.apply(this,arguments)}xe('.tooltip-container{--tooltipBackground:#fff;--tooltipBorder:silver;--tooltipColor:#000;background-color:var(--tooltipBackground);border:1px solid var(--tooltipBorder);border-radius:3px;box-shadow:0 2px 4px rgba(0,0,0,.18);color:var(--tooltipColor);display:flex;flex-direction:column;padding:.4rem;transition:opacity .3s;z-index:9999}.tooltip-arrow,.tooltip-container[data-popper-interactive=false]{pointer-events:none}.tooltip-arrow{height:1rem;position:absolute;width:1rem}.tooltip-arrow:after,.tooltip-arrow:before{border-style:solid;content:"";display:block;height:0;margin:auto;width:0}.tooltip-arrow:after{position:absolute}.tooltip-container[data-popper-placement*=bottom] .tooltip-arrow{left:0;margin-top:-.4rem;top:0}.tooltip-container[data-popper-placement*=bottom] .tooltip-arrow:before{border-color:transparent transparent var(--tooltipBorder) transparent;border-width:0 .5rem .4rem;position:absolute;top:-1px}.tooltip-container[data-popper-placement*=bottom] .tooltip-arrow:after{border-color:transparent transparent var(--tooltipBackground) transparent;border-width:0 .5rem .4rem}.tooltip-container[data-popper-placement*=top] .tooltip-arrow{bottom:0;left:0;margin-bottom:-1rem}.tooltip-container[data-popper-placement*=top] .tooltip-arrow:before{border-color:var(--tooltipBorder) transparent transparent transparent;border-width:.4rem .5rem 0;position:absolute;top:1px}.tooltip-container[data-popper-placement*=top] .tooltip-arrow:after{border-color:var(--tooltipBackground) transparent transparent transparent;border-width:.4rem .5rem 0}.tooltip-container[data-popper-placement*=right] .tooltip-arrow{left:0;margin-left:-.7rem}.tooltip-container[data-popper-placement*=right] .tooltip-arrow:before{border-color:transparent var(--tooltipBorder) transparent transparent;border-width:.5rem .4rem .5rem 0}.tooltip-container[data-popper-placement*=right] .tooltip-arrow:after{border-color:transparent var(--tooltipBackground) transparent transparent;border-width:.5rem .4rem .5rem 0;left:6px;top:0}.tooltip-container[data-popper-placement*=left] .tooltip-arrow{margin-right:-.7rem;right:0}.tooltip-container[data-popper-placement*=left] .tooltip-arrow:before{border-color:transparent transparent transparent var(--tooltipBorder);border-width:.5rem 0 .5rem .4em}.tooltip-container[data-popper-placement*=left] .tooltip-arrow:after{border-color:transparent transparent transparent var(--tooltipBackground);border-width:.5rem 0 .5rem .4em;left:3px;top:0}');var iu=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},su="undefined"!=typeof window&&window.document&&window.document.createElement?v.useLayoutEffect:v.useEffect,lu="top",du="bottom",cu="right",uu="left",fu="auto",pu=[lu,du,cu,uu],hu="start",gu="end",mu="clippingParents",bu="viewport",vu="popper",yu="reference",$u=pu.reduce((function(e,t){return e.concat([t+"-"+hu,t+"-"+gu])}),[]),xu=[].concat(pu,[fu]).reduce((function(e,t){return e.concat([t,t+"-"+hu,t+"-"+gu])}),[]),wu=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Cu(e){return e?(e.nodeName||"").toLowerCase():null}function Ou(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ku(e){return e instanceof Ou(e).Element||e instanceof Element}function ju(e){return e instanceof Ou(e).HTMLElement||e instanceof HTMLElement}function Su(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ou(e).ShadowRoot||e instanceof ShadowRoot)}var Eu={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];ju(o)&&Cu(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});ju(r)&&Cu(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Pu(e){return e.split("-")[0]}var Iu=Math.max,Nu=Math.min,Au=Math.round;function Tu(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Du(){return!/^((?!chrome|android).)*safari/i.test(Tu())}function Fu(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&ju(e)&&(o=e.offsetWidth>0&&Au(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Au(r.height)/e.offsetHeight||1);var i=(ku(e)?Ou(e):window).visualViewport,s=!Du()&&n,l=(r.left+(s&&i?i.offsetLeft:0))/o,d=(r.top+(s&&i?i.offsetTop:0))/a,c=r.width/o,u=r.height/a;return{width:c,height:u,top:d,right:l+c,bottom:d+u,left:l,x:l,y:d}}function Lu(e){var t=Fu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Mu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Su(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ru(e){return Ou(e).getComputedStyle(e)}function Bu(e){return["table","td","th"].indexOf(Cu(e))>=0}function _u(e){return((ku(e)?e.ownerDocument:e.document)||window.document).documentElement}function zu(e){return"html"===Cu(e)?e:e.assignedSlot||e.parentNode||(Su(e)?e.host:null)||_u(e)}function Uu(e){return ju(e)&&"fixed"!==Ru(e).position?e.offsetParent:null}function Gu(e){for(var t=Ou(e),n=Uu(e);n&&Bu(n)&&"static"===Ru(n).position;)n=Uu(n);return n&&("html"===Cu(n)||"body"===Cu(n)&&"static"===Ru(n).position)?t:n||function(e){var t=/firefox/i.test(Tu());if(/Trident/i.test(Tu())&&ju(e)&&"fixed"===Ru(e).position)return null;var n=zu(e);for(Su(n)&&(n=n.host);ju(n)&&["html","body"].indexOf(Cu(n))<0;){var r=Ru(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Hu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wu(e,t,n){return Iu(e,Nu(t,n))}function qu(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Vu(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Yu={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=Pu(n.placement),l=Hu(s),d=[uu,cu].indexOf(s)>=0?"height":"width";if(a&&i){var c=function(e,t){return qu("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Vu(e,pu))}(o.padding,n),u=Lu(a),f="y"===l?lu:uu,p="y"===l?du:cu,h=n.rects.reference[d]+n.rects.reference[l]-i[l]-n.rects.popper[d],g=i[l]-n.rects.reference[l],m=Gu(a),b=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,v=h/2-g/2,y=c[f],$=b-u[d]-c[p],x=b/2-u[d]/2+v,w=Wu(y,x,$),C=l;n.modifiersData[r]=((t={})[C]=w,t.centerOffset=w-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Mu(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ku(e){return e.split("-")[1]}var Xu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zu(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,u=e.isFixed,f=i.x,p=void 0===f?0:f,h=i.y,g=void 0===h?0:h,m="function"==typeof c?c({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var b=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),y=uu,$=lu,x=window;if(d){var w=Gu(n),C="clientHeight",O="clientWidth";if(w===Ou(n)&&"static"!==Ru(w=_u(n)).position&&"absolute"===s&&(C="scrollHeight",O="scrollWidth"),o===lu||(o===uu||o===cu)&&a===gu)$=du,g-=(u&&w===x&&x.visualViewport?x.visualViewport.height:w[C])-r.height,g*=l?1:-1;if(o===uu||(o===lu||o===du)&&a===gu)y=cu,p-=(u&&w===x&&x.visualViewport?x.visualViewport.width:w[O])-r.width,p*=l?1:-1}var k,j=Object.assign({position:s},d&&Xu),S=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Au(n*o)/o||0,y:Au(r*o)/o||0}}({x:p,y:g},Ou(n)):{x:p,y:g};return p=S.x,g=S.y,l?Object.assign({},j,((k={})[$]=v?"0":"",k[y]=b?"0":"",k.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",k)):Object.assign({},j,((t={})[$]=v?g+"px":"",t[y]=b?p+"px":"",t.transform="",t))}var Ju={passive:!0};var Qu={left:"right",right:"left",bottom:"top",top:"bottom"};function ef(e){return e.replace(/left|right|bottom|top/g,(function(e){return Qu[e]}))}var tf={start:"end",end:"start"};function nf(e){return e.replace(/start|end/g,(function(e){return tf[e]}))}function rf(e){var t=Ou(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function of(e){return Fu(_u(e)).left+rf(e).scrollLeft}function af(e){var t=Ru(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function sf(e){return["html","body","#document"].indexOf(Cu(e))>=0?e.ownerDocument.body:ju(e)&&af(e)?e:sf(zu(e))}function lf(e,t){var n;void 0===t&&(t=[]);var r=sf(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Ou(r),i=o?[a].concat(a.visualViewport||[],af(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(lf(zu(i)))}function df(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cf(e,t,n){return t===bu?df(function(e,t){var n=Ou(e),r=_u(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var d=Du();(d||!d&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+of(e),y:l}}(e,n)):ku(t)?function(e,t){var n=Fu(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):df(function(e){var t,n=_u(e),r=rf(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Iu(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Iu(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+of(e),l=-r.scrollTop;return"rtl"===Ru(o||n).direction&&(s+=Iu(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(_u(e)))}function uf(e,t,n,r){var o="clippingParents"===t?function(e){var t=lf(zu(e)),n=["absolute","fixed"].indexOf(Ru(e).position)>=0&&ju(e)?Gu(e):e;return ku(n)?t.filter((function(e){return ku(e)&&Mu(e,n)&&"body"!==Cu(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce((function(t,n){var o=cf(e,n,r);return t.top=Iu(o.top,t.top),t.right=Nu(o.right,t.right),t.bottom=Nu(o.bottom,t.bottom),t.left=Iu(o.left,t.left),t}),cf(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ff(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Pu(o):null,i=o?Ku(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case lu:t={x:s,y:n.y-r.height};break;case du:t={x:s,y:n.y+n.height};break;case cu:t={x:n.x+n.width,y:l};break;case uu:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var d=a?Hu(a):null;if(null!=d){var c="y"===d?"height":"width";switch(i){case hu:t[d]=t[d]-(n[c]/2-r[c]/2);break;case gu:t[d]=t[d]+(n[c]/2-r[c]/2)}}return t}function pf(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,s=n.boundary,l=void 0===s?mu:s,d=n.rootBoundary,c=void 0===d?bu:d,u=n.elementContext,f=void 0===u?vu:u,p=n.altBoundary,h=void 0!==p&&p,g=n.padding,m=void 0===g?0:g,b=qu("number"!=typeof m?m:Vu(m,pu)),v=f===vu?yu:vu,y=e.rects.popper,$=e.elements[h?v:f],x=uf(ku($)?$:$.contextElement||_u(e.elements.popper),l,c,i),w=Fu(e.elements.reference),C=ff({reference:w,element:y,strategy:"absolute",placement:o}),O=df(Object.assign({},y,C)),k=f===vu?O:w,j={top:x.top-k.top+b.top,bottom:k.bottom-x.bottom+b.bottom,left:x.left-k.left+b.left,right:k.right-x.right+b.right},S=e.modifiersData.offset;if(f===vu&&S){var E=S[o];Object.keys(j).forEach((function(e){var t=[cu,du].indexOf(e)>=0?1:-1,n=[lu,du].indexOf(e)>=0?"y":"x";j[e]+=E[n]*t}))}return j}function hf(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,d=void 0===l?xu:l,c=Ku(r),u=c?s?$u:$u.filter((function(e){return Ku(e)===c})):pu,f=u.filter((function(e){return d.indexOf(e)>=0}));0===f.length&&(f=u);var p=f.reduce((function(t,n){return t[n]=pf(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[Pu(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var gf={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,d=n.padding,c=n.boundary,u=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,g=n.allowedAutoPlacements,m=t.options.placement,b=Pu(m),v=l||(b===m||!h?[ef(m)]:function(e){if(Pu(e)===fu)return[];var t=ef(e);return[nf(e),t,nf(t)]}(m)),y=[m].concat(v).reduce((function(e,n){return e.concat(Pu(n)===fu?hf(t,{placement:n,boundary:c,rootBoundary:u,padding:d,flipVariations:h,allowedAutoPlacements:g}):n)}),[]),$=t.rects.reference,x=t.rects.popper,w=new Map,C=!0,O=y[0],k=0;k<y.length;k++){var j=y[k],S=Pu(j),E=Ku(j)===hu,P=[lu,du].indexOf(S)>=0,I=P?"width":"height",N=pf(t,{placement:j,boundary:c,rootBoundary:u,altBoundary:f,padding:d}),A=P?E?cu:uu:E?du:lu;$[I]>x[I]&&(A=ef(A));var T=ef(A),D=[];if(a&&D.push(N[S]<=0),s&&D.push(N[A]<=0,N[T]<=0),D.every((function(e){return e}))){O=j,C=!1;break}w.set(j,D)}if(C)for(var F=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},L=h?3:1;L>0;L--){if("break"===F(L))break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function mf(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function bf(e){return[lu,cu,du,uu].some((function(t){return e[t]>=0}))}var vf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=xu.reduce((function(e,n){return e[n]=function(e,t,n){var r=Pu(e),o=[uu,lu].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[uu,cu].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e}),{}),s=i[t.placement],l=s.x,d=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=i}};var yf={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,d=n.rootBoundary,c=n.altBoundary,u=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,g=void 0===h?0:h,m=pf(t,{boundary:l,rootBoundary:d,padding:u,altBoundary:c}),b=Pu(t.placement),v=Ku(t.placement),y=!v,$=Hu(b),x="x"===$?"y":"x",w=t.modifiersData.popperOffsets,C=t.rects.reference,O=t.rects.popper,k="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,j="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(w){if(a){var P,I="y"===$?lu:uu,N="y"===$?du:cu,A="y"===$?"height":"width",T=w[$],D=T+m[I],F=T-m[N],L=p?-O[A]/2:0,M=v===hu?C[A]:O[A],R=v===hu?-O[A]:-C[A],B=t.elements.arrow,_=p&&B?Lu(B):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=z[I],G=z[N],H=Wu(0,C[A],_[A]),W=y?C[A]/2-L-H-U-j.mainAxis:M-H-U-j.mainAxis,q=y?-C[A]/2+L+H+G+j.mainAxis:R+H+G+j.mainAxis,V=t.elements.arrow&&Gu(t.elements.arrow),Y=V?"y"===$?V.clientTop||0:V.clientLeft||0:0,K=null!=(P=null==S?void 0:S[$])?P:0,X=T+q-K,Z=Wu(p?Nu(D,T+W-K-Y):D,T,p?Iu(F,X):F);w[$]=Z,E[$]=Z-T}if(s){var J,Q="x"===$?lu:uu,ee="x"===$?du:cu,te=w[x],ne="y"===x?"height":"width",re=te+m[Q],oe=te-m[ee],ae=-1!==[lu,uu].indexOf(b),ie=null!=(J=null==S?void 0:S[x])?J:0,se=ae?re:te-C[ne]-O[ne]-ie+j.altAxis,le=ae?te+C[ne]+O[ne]-ie-j.altAxis:oe,de=p&&ae?function(e,t,n){var r=Wu(e,t,n);return r>n?n:r}(se,te,le):Wu(p?se:re,te,p?le:oe);w[x]=de,E[x]=de-te}t.modifiersData[r]=E}},requiresIfExists:["offset"]};function $f(e,t,n){void 0===n&&(n=!1);var r,o,a=ju(t),i=ju(t)&&function(e){var t=e.getBoundingClientRect(),n=Au(t.width)/e.offsetWidth||1,r=Au(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=_u(t),l=Fu(e,i,n),d={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&(("body"!==Cu(t)||af(s))&&(d=(r=t)!==Ou(r)&&ju(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:rf(r)),ju(t)?((c=Fu(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=of(s))),{x:l.left+d.scrollLeft-c.x,y:l.top+d.scrollTop-c.y,width:l.width,height:l.height}}function xf(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var wf={placement:"bottom",modifiers:[],strategy:"absolute"};function Cf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Of(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?wf:o;return function(e,t,n){void 0===n&&(n=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},wf,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],d=!1,c={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;u(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:ku(e)?lf(e):e.contextElement?lf(e.contextElement):[],popper:lf(t)};var i,d,f=function(e){var t=xf(e);return wu.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,s.options.modifiers),d=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(d).map((function(e){return d[e]}))));return s.orderedModifiers=f.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:s,name:t,instance:c,options:r}),i=function(){};l.push(a||i)}})),c.update()},forceUpdate:function(){if(!d){var e=s.elements,t=e.reference,n=e.popper;if(Cf(t,n)){s.rects={reference:$f(t,Gu(n),"fixed"===s.options.strategy),popper:Lu(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],a=o.fn,i=o.options,l=void 0===i?{}:i,u=o.name;"function"==typeof a&&(s=a({state:s,options:l,name:u,instance:c})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(s)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){u(),d=!0}};if(!Cf(e,t))return c;function u(){l.forEach((function(e){return e()})),l=[]}return c.setOptions(n).then((function(e){!d&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var kf=Of({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=Ou(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach((function(e){e.addEventListener("scroll",n.update,Ju)})),s&&l.addEventListener("resize",n.update,Ju),function(){a&&d.forEach((function(e){e.removeEventListener("scroll",n.update,Ju)})),s&&l.removeEventListener("resize",n.update,Ju)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ff({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,d={placement:Pu(t.placement),variation:Ku(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Zu(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Zu(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Eu,vf,gf,yf,Yu,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=pf(t,{elementContext:"reference"}),s=pf(t,{altBoundary:!0}),l=mf(i,r),d=mf(s,o,a),c=bf(l),u=bf(d);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":u})}}]}),jf="undefined"!=typeof Element,Sf="function"==typeof Map,Ef="function"==typeof Set,Pf="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function If(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,a;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!If(e[r],t[r]))return!1;return!0}if(Sf&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!If(r.value[1],t.get(r.value[0])))return!1;return!0}if(Ef&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Pf&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(jf&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!If(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var Nf=wn((function(e,t){try{return If(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}})),Af=[];function Tf(e){var t=v.useRef(e);return t.current=e,v.useCallback((function(){return t.current}),[])}var Df=function(){};function Ff(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:function(){return null}}}}var Lf=["styles","attributes"],Mf={getBoundingClientRect:Ff()},Rf={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"};function Bf(e,t){var n,r,o;void 0===e&&(e={}),void 0===t&&(t={});var a=Object.keys(Rf).reduce((function(e,t){var n;return au({},e,((n={})[t]=void 0!==e[t]?e[t]:Rf[t],n))}),e),i=v.useMemo((function(){return[{name:"offset",options:{offset:a.offset}}]}),Array.isArray(a.offset)?a.offset:[]),s=au({},t,{placement:t.placement||a.placement,modifiers:t.modifiers||i}),l=v.useState(null),d=l[0],c=l[1],u=v.useState(null),f=u[0],p=u[1],h=function(e){var t=e.initial,n=e.value,r=e.onChange,o=void 0===r?Df:r;if(void 0===t&&void 0===n)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var a=v.useState(t),i=a[0],s=a[1],l=Tf(i),d=v.useCallback((function(e){var t=l(),n="function"==typeof e?e(t):e;"function"==typeof n.persist&&n.persist(),s(n),"function"==typeof o&&o(n)}),[l,o]),c=void 0!==n;return[c?n:i,c?o:d]}({initial:a.defaultVisible,value:a.visible,onChange:a.onVisibleChange}),g=h[0],m=h[1],b=v.useRef();v.useEffect((function(){return function(){return clearTimeout(b.current)}}),[]);var y=function(e,t,n){void 0===n&&(n={});var r=v.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Af},a=v.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=a[0],s=a[1],l=v.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);j.flushSync((function(){s({styles:iu(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:iu(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),d=v.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[l,{name:"applyStyles",enabled:!1}])};return Nf(r.current,e)?r.current||e:(r.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,l]),c=v.useRef();return su((function(){c.current&&c.current.setOptions(d)}),[d]),su((function(){if(null!=e&&null!=t){var r=(n.createPopper||kf)(e,t,d);return c.current=r,function(){r.destroy(),c.current=null}}}),[e,t,n.createPopper]),{state:c.current?c.current.state:null,styles:i.styles,attributes:i.attributes,update:c.current?c.current.update:null,forceUpdate:c.current?c.current.forceUpdate:null}}(a.followCursor?Mf:d,f,s),$=y.styles,x=y.attributes,w=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(y,Lf),C=w.update,O=Tf({visible:g,triggerRef:d,tooltipRef:f,finalConfig:a}),k=v.useCallback((function(e){return Array.isArray(a.trigger)?a.trigger.includes(e):a.trigger===e}),Array.isArray(a.trigger)?a.trigger:[a.trigger]),S=v.useCallback((function(){clearTimeout(b.current),b.current=window.setTimeout((function(){return m(!1)}),a.delayHide)}),[a.delayHide,m]),E=v.useCallback((function(){clearTimeout(b.current),b.current=window.setTimeout((function(){return m(!0)}),a.delayShow)}),[a.delayShow,m]),P=v.useCallback((function(){O().visible?S():E()}),[O,S,E]);v.useEffect((function(){if(O().finalConfig.closeOnOutsideClick){var e=function(e){var t,n=O(),r=n.tooltipRef,o=n.triggerRef,a=(null==e.composedPath||null==(t=e.composedPath())?void 0:t[0])||e.target;a instanceof Node&&(null==r||null==o||r.contains(a)||o.contains(a)||S())};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}}),[O,S]),v.useEffect((function(){if(null!=d&&k("click"))return d.addEventListener("click",P),function(){return d.removeEventListener("click",P)}}),[d,k,P]),v.useEffect((function(){if(null!=d&&k("double-click"))return d.addEventListener("dblclick",P),function(){return d.removeEventListener("dblclick",P)}}),[d,k,P]),v.useEffect((function(){if(null!=d&&k("right-click")){var e=function(e){e.preventDefault(),P()};return d.addEventListener("contextmenu",e),function(){return d.removeEventListener("contextmenu",e)}}}),[d,k,P]),v.useEffect((function(){if(null!=d&&k("focus"))return d.addEventListener("focus",E),d.addEventListener("blur",S),function(){d.removeEventListener("focus",E),d.removeEventListener("blur",S)}}),[d,k,E,S]),v.useEffect((function(){if(null!=d&&k("hover"))return d.addEventListener("mouseenter",E),d.addEventListener("mouseleave",S),function(){d.removeEventListener("mouseenter",E),d.removeEventListener("mouseleave",S)}}),[d,k,E,S]),v.useEffect((function(){if(null!=f&&k("hover")&&O().finalConfig.interactive)return f.addEventListener("mouseenter",E),f.addEventListener("mouseleave",S),function(){f.removeEventListener("mouseenter",E),f.removeEventListener("mouseleave",S)}}),[f,k,E,S,O]);var I=null==w||null==(n=w.state)||null==(r=n.modifiersData)||null==(o=r.hide)?void 0:o.isReferenceHidden;v.useEffect((function(){a.closeOnTriggerHidden&&I&&S()}),[a.closeOnTriggerHidden,S,I]),v.useEffect((function(){if(a.followCursor&&null!=d)return d.addEventListener("mousemove",e),function(){return d.removeEventListener("mousemove",e)};function e(e){var t=e.clientX,n=e.clientY;Mf.getBoundingClientRect=Ff(t,n),null==C||C()}}),[a.followCursor,d,C]),v.useEffect((function(){if(null!=f&&null!=C&&null!=a.mutationObserverOptions){var e=new MutationObserver(C);return e.observe(f,a.mutationObserverOptions),function(){return e.disconnect()}}}),[a.mutationObserverOptions,f,C]);return au({getArrowProps:function(e){return void 0===e&&(e={}),au({},e,x.arrow,{style:au({},e.style,$.arrow),"data-popper-arrow":!0})},getTooltipProps:function(e){return void 0===e&&(e={}),au({},e,{style:au({},e.style,$.popper)},x.popper,{"data-popper-interactive":a.interactive})},setTooltipRef:p,setTriggerRef:c,tooltipRef:f,triggerRef:d,visible:g},w)}const _f=y.default.div`
|
|
1779
1770
|
.tooltip-container {
|
|
1780
|
-
${
|
|
1771
|
+
${M};
|
|
1781
1772
|
${Z.body2};
|
|
1782
1773
|
color: ${T.dark.base};
|
|
1783
1774
|
background-color: white;
|
|
@@ -1824,9 +1815,9 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1824
1815
|
border-color: transparent transparent transparent white;
|
|
1825
1816
|
}
|
|
1826
1817
|
}
|
|
1827
|
-
`,
|
|
1818
|
+
`,zf=y.default.span`
|
|
1828
1819
|
display: inline-block;
|
|
1829
|
-
`,
|
|
1820
|
+
`,Uf=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Gf=({isArrowHidden:t,isFollowingCursor:r,usePortal:o=Uf,children:a,tooltip:i,trigger:s=(ae()?"click":"hover"),maxWidth:l="300px",delayHide:d,delayShow:c,placement:u="auto",interactive:f=!1,isVisible:p=!0})=>{const{getTooltipProps:g,getArrowProps:m,setTooltipRef:b,setTriggerRef:v,visible:y}=Bf({trigger:s,followCursor:r,delayHide:d,delayShow:c,placement:u,offset:[0,0],interactive:f}),$=e.jsx(_f,{children:e.jsxs("div",Object.assign({},g({className:"tooltip-container",style:{maxWidth:l}}),{ref:b,children:[!t&&e.jsx("div",Object.assign({},m({className:"tooltip-arrow"}),{"data-popper-arrow":!0})),i]}))}),x=Uf?document.body:null;return e.jsxs(zf,{ref:v,"data-test":"tooltip-wrapped-component",children:[a,p&&y&&e.jsx(n.Fragment,{children:o&&x?h.createPortal($,x):$})]})};var Hf;exports.CardHeaderIconSize=void 0,(Hf=exports.CardHeaderIconSize||(exports.CardHeaderIconSize={}))[Hf.MEDIUM=32]="MEDIUM",Hf[Hf.SMALL=18]="SMALL";const Wf=y.default.div`
|
|
1830
1821
|
background: white;
|
|
1831
1822
|
border: ${D(1)} solid ${T.grey.base40};
|
|
1832
1823
|
box-shadow: ${ee.level1};
|
|
@@ -1842,7 +1833,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1842
1833
|
background: ${T.background};
|
|
1843
1834
|
color: ${T.dark.base40};
|
|
1844
1835
|
`}
|
|
1845
|
-
`,
|
|
1836
|
+
`,qf=y.default.div`
|
|
1846
1837
|
${Z.body2}
|
|
1847
1838
|
display: flex;
|
|
1848
1839
|
align-items: center;
|
|
@@ -1853,11 +1844,11 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1853
1844
|
${({hasToggle:e,disabled:t})=>e&&!t&&o.css`
|
|
1854
1845
|
cursor: pointer;
|
|
1855
1846
|
`}
|
|
1856
|
-
`,
|
|
1847
|
+
`,Vf=y.default.span`
|
|
1857
1848
|
display: flex;
|
|
1858
|
-
`,
|
|
1849
|
+
`,Yf=y.default.span`
|
|
1859
1850
|
margin-left: ${D(8)};
|
|
1860
|
-
`,
|
|
1851
|
+
`,Kf=y.default.div`
|
|
1861
1852
|
position: relative;
|
|
1862
1853
|
display: flex;
|
|
1863
1854
|
|
|
@@ -1868,7 +1859,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1868
1859
|
}
|
|
1869
1860
|
}
|
|
1870
1861
|
}
|
|
1871
|
-
`,
|
|
1862
|
+
`,Xf=y.default.div`
|
|
1872
1863
|
margin: 0 ${D(8)} 0 ${D(-8)};
|
|
1873
1864
|
|
|
1874
1865
|
> svg {
|
|
@@ -1880,24 +1871,24 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1880
1871
|
fill: ${({headerIconColor:e})=>e};
|
|
1881
1872
|
}
|
|
1882
1873
|
}
|
|
1883
|
-
`,
|
|
1874
|
+
`,Zf=y.default.div`
|
|
1884
1875
|
display: flex;
|
|
1885
1876
|
align-items: center;
|
|
1886
|
-
`,
|
|
1877
|
+
`,Jf=y.default.div`
|
|
1887
1878
|
display: flex;
|
|
1888
|
-
`,
|
|
1879
|
+
`,Qf=y.default.div`
|
|
1889
1880
|
${({noPadding:e})=>!e&&o.css`
|
|
1890
1881
|
padding: ${D(24)};
|
|
1891
1882
|
`}
|
|
1892
1883
|
|
|
1893
|
-
${
|
|
1884
|
+
${qf} + &,
|
|
1894
1885
|
& + & {
|
|
1895
1886
|
border-top: ${D(1)} solid ${T.grey.base40};
|
|
1896
1887
|
}
|
|
1897
|
-
`,
|
|
1888
|
+
`,ep=y.default.div`
|
|
1898
1889
|
display: flex;
|
|
1899
1890
|
align-items: center;
|
|
1900
|
-
`;
|
|
1891
|
+
`;y.default.div`
|
|
1901
1892
|
width: ${D(32)};
|
|
1902
1893
|
height: ${D(32)};
|
|
1903
1894
|
|
|
@@ -1906,7 +1897,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1906
1897
|
height: 100%;
|
|
1907
1898
|
transform: scale(1.4);
|
|
1908
1899
|
}
|
|
1909
|
-
`;const
|
|
1900
|
+
`;const tp=D(8),np=y.default.button`
|
|
1910
1901
|
${ie};
|
|
1911
1902
|
position: relative;
|
|
1912
1903
|
min-width: ${D(32)};
|
|
@@ -1920,9 +1911,9 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1920
1911
|
left: ${D(8)};
|
|
1921
1912
|
width: 0;
|
|
1922
1913
|
height: 0;
|
|
1923
|
-
border-left: ${
|
|
1924
|
-
border-right: ${
|
|
1925
|
-
border-top: ${
|
|
1914
|
+
border-left: ${tp} solid transparent;
|
|
1915
|
+
border-right: ${tp} solid transparent;
|
|
1916
|
+
border-top: ${tp} solid ${T.dark.base80};
|
|
1926
1917
|
transition: all 0.2s ease-out;
|
|
1927
1918
|
}
|
|
1928
1919
|
|
|
@@ -1934,7 +1925,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1934
1925
|
&:not(:first-child) {
|
|
1935
1926
|
margin-left: ${D(8)};
|
|
1936
1927
|
}
|
|
1937
|
-
`;var
|
|
1928
|
+
`;var rp;exports.CheckboxSize=void 0,(rp=exports.CheckboxSize||(exports.CheckboxSize={})).BIG="big",rp.SMALL="small";const op=y.default.div`
|
|
1938
1929
|
display: flex;
|
|
1939
1930
|
align-items: center;
|
|
1940
1931
|
position: relative;
|
|
@@ -1952,11 +1943,11 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1952
1943
|
min-width: ${D(24)};
|
|
1953
1944
|
min-height: ${D(24)};
|
|
1954
1945
|
`}
|
|
1955
|
-
`,
|
|
1946
|
+
`,ap=y.default.label`
|
|
1956
1947
|
clear: both;
|
|
1957
1948
|
cursor: pointer;
|
|
1958
1949
|
padding-left: ${({hasLabel:e,checkboxSize:t})=>e&&t===exports.CheckboxSize.BIG?D(40):D(e?32:24)};
|
|
1959
|
-
`,
|
|
1950
|
+
`,ip=y.default.span`
|
|
1960
1951
|
${Z.label};
|
|
1961
1952
|
display: inline-block;
|
|
1962
1953
|
padding-top: ${D(2)};
|
|
@@ -1965,7 +1956,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1965
1956
|
::selection {
|
|
1966
1957
|
background-color: transparent;
|
|
1967
1958
|
}
|
|
1968
|
-
`,
|
|
1959
|
+
`,sp=y.default.input`
|
|
1969
1960
|
display: block;
|
|
1970
1961
|
float: left;
|
|
1971
1962
|
outline: none;
|
|
@@ -1976,7 +1967,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
1976
1967
|
|
|
1977
1968
|
:checked,
|
|
1978
1969
|
:not(:checked) {
|
|
1979
|
-
+ ${
|
|
1970
|
+
+ ${ap} {
|
|
1980
1971
|
::before {
|
|
1981
1972
|
content: '';
|
|
1982
1973
|
position: absolute;
|
|
@@ -2025,7 +2016,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2025
2016
|
}
|
|
2026
2017
|
|
|
2027
2018
|
:checked {
|
|
2028
|
-
+ ${
|
|
2019
|
+
+ ${ap} {
|
|
2029
2020
|
::before {
|
|
2030
2021
|
border-color: ${T.terracota.base20};
|
|
2031
2022
|
}
|
|
@@ -2037,7 +2028,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2037
2028
|
}
|
|
2038
2029
|
|
|
2039
2030
|
:not(:checked):not(:disabled) {
|
|
2040
|
-
+ ${
|
|
2031
|
+
+ ${ap} {
|
|
2041
2032
|
:hover {
|
|
2042
2033
|
::before {
|
|
2043
2034
|
border-color: ${T.terracota.base};
|
|
@@ -2058,7 +2049,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2058
2049
|
}
|
|
2059
2050
|
|
|
2060
2051
|
:disabled {
|
|
2061
|
-
+ ${
|
|
2052
|
+
+ ${ap} {
|
|
2062
2053
|
color: ${T.grey.base60};
|
|
2063
2054
|
cursor: not-allowed;
|
|
2064
2055
|
|
|
@@ -2075,7 +2066,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2075
2066
|
}
|
|
2076
2067
|
|
|
2077
2068
|
:disabled:not(:checked) {
|
|
2078
|
-
+ ${
|
|
2069
|
+
+ ${ap} {
|
|
2079
2070
|
::after {
|
|
2080
2071
|
background-image: ${({indeterminate:e})=>e?"url('data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cline%20stroke-linecap%3D%22round%22%20stroke%3D%22%23d1d1d1%22%20stroke-width%3D%222%22%20x1%3D%2215%22%20x2%3D%229%22%20y1%3D%2212%22%20y2%3D%2212%22%3E%3C%2Fline%3E%3C%2Fsvg%3E')":"none"};
|
|
2081
2072
|
}
|
|
@@ -2083,20 +2074,20 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2083
2074
|
}
|
|
2084
2075
|
|
|
2085
2076
|
:disabled:checked {
|
|
2086
|
-
+ ${
|
|
2077
|
+
+ ${ap} {
|
|
2087
2078
|
::after {
|
|
2088
2079
|
background-image: url('${"data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2032%2032%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22%23d1d1d1%22%20d%3D%22M8.472%200L3.472%204.964%201.528%203.035%200%204.553%203.472%208%2010%201.518z%22%20transform%3D%22translate%2811%2012%29%22%20%2F%3E%3C%2Fsvg%3E"}');
|
|
2089
2080
|
}
|
|
2090
2081
|
}
|
|
2091
2082
|
}
|
|
2092
|
-
`,
|
|
2093
|
-
${
|
|
2083
|
+
`,lp=y.default.label`
|
|
2084
|
+
${M};
|
|
2094
2085
|
${Z.caption};
|
|
2095
2086
|
color: ${T.dark.base};
|
|
2096
2087
|
position: absolute;
|
|
2097
2088
|
top: -${D(9)};
|
|
2098
2089
|
left: ${D(28)};
|
|
2099
|
-
`,
|
|
2090
|
+
`,dp=y.default.fieldset`
|
|
2100
2091
|
border: ${D(1)} solid ${T.grey.base80};
|
|
2101
2092
|
border-radius: ${J.biggest};
|
|
2102
2093
|
padding: 0;
|
|
@@ -2110,7 +2101,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2110
2101
|
${({error:e})=>e&&o.css`
|
|
2111
2102
|
border-color: ${T.red.base};
|
|
2112
2103
|
|
|
2113
|
-
${
|
|
2104
|
+
${lp} {
|
|
2114
2105
|
color: ${T.red.base};
|
|
2115
2106
|
}
|
|
2116
2107
|
`}
|
|
@@ -2121,13 +2112,13 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2121
2112
|
> span {
|
|
2122
2113
|
display: inline-block;
|
|
2123
2114
|
padding: 0 ${D(18)};
|
|
2124
|
-
font-size: ${
|
|
2115
|
+
font-size: ${R.smaller};
|
|
2125
2116
|
}
|
|
2126
2117
|
}
|
|
2127
2118
|
}
|
|
2128
|
-
`,
|
|
2119
|
+
`,cp=y.default.div`
|
|
2129
2120
|
padding: ${D(16)} ${D(28)};
|
|
2130
|
-
`,
|
|
2121
|
+
`,up=({fill:t})=>e.jsx("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M22.4001 10.8892L21.111 9.6001L16.0001 14.711L10.8892 9.6001L9.6001 10.8892L14.711 16.0001L9.6001 21.111L10.8892 22.4001L16.0001 17.2892L21.111 22.4001L22.4001 21.111L17.2892 16.0001L22.4001 10.8892Z",fill:t})}),fp=({isWrapped:t,text:n,backgroundColor:r="rgba(255, 255, 255, 0.85)",loaderHeight:o="100%"})=>e.jsx(xd,{isWrapped:t,backgroundColor:r,loaderHeight:o,"data-test":"loader",children:e.jsxs(Cd,{isWrapped:t,children:[e.jsx(wd,{}),n&&e.jsx(Od,{dangerouslySetInnerHTML:{__html:n}})]})});var pp,hp;!function(e){e.IN="in",e.OUT="out"}(pp||(pp={})),function(e){e.ABORT="abort",e.ANIMATION_END="animationEnd",e.CLOSE="close",e.FADE_OUT="fadeOut",e.OPEN="open",e.RESET="reset",e.TOGGLE_LOAD="toggleLoad"}(hp||(hp={}));const gp={abort:ne(hp.ABORT),animationEnd:ne(hp.ANIMATION_END),close:ne(hp.CLOSE),open:ne(hp.OPEN),reset:ne(hp.RESET),toggleLoad:ne(hp.TOGGLE_LOAD)},mp=(e,{type:t})=>{switch(t){case hp.ABORT:return Object.assign(Object.assign({},e),{isAborting:!0,fade:pp.OUT});case hp.ANIMATION_END:return Object.assign(Object.assign({},e),{isOpen:!1});case hp.CLOSE:return Object.assign(Object.assign({},e),{fade:pp.OUT});case hp.OPEN:return{fade:pp.IN,isAborting:!1,isLoading:!1,isOpen:!0};case hp.RESET:return{fade:pp.IN,isAborting:!1,isLoading:!1,isOpen:!1};case hp.TOGGLE_LOAD:return Object.assign(Object.assign({},e),{isLoading:!e.isLoading});default:throw new Error}},bp=y.default.button`
|
|
2131
2122
|
${ie};
|
|
2132
2123
|
position: absolute;
|
|
2133
2124
|
right: ${D(8)};
|
|
@@ -2165,7 +2156,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2165
2156
|
}
|
|
2166
2157
|
}
|
|
2167
2158
|
}
|
|
2168
|
-
`,
|
|
2159
|
+
`,vp=y.default.div`
|
|
2169
2160
|
position: fixed;
|
|
2170
2161
|
left: 50%;
|
|
2171
2162
|
top: 50%;
|
|
@@ -2204,7 +2195,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2204
2195
|
min-width: ${D(640)};
|
|
2205
2196
|
border-radius: ${J.big};
|
|
2206
2197
|
}
|
|
2207
|
-
`,
|
|
2198
|
+
`,yp=y.default.div`
|
|
2208
2199
|
position: absolute;
|
|
2209
2200
|
left: 0;
|
|
2210
2201
|
right: 0;
|
|
@@ -2216,13 +2207,13 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2216
2207
|
@media (min-width: ${P.small}px) {
|
|
2217
2208
|
display: none;
|
|
2218
2209
|
}
|
|
2219
|
-
|
|
2210
|
+
`,$p=y.default.div`
|
|
2220
2211
|
display: flex;
|
|
2221
2212
|
align-items: center;
|
|
2222
2213
|
flex-direction: column;
|
|
2223
2214
|
margin-bottom: ${D(8)};
|
|
2224
2215
|
text-align: center;
|
|
2225
|
-
`,
|
|
2216
|
+
`,xp=y.default.div`
|
|
2226
2217
|
display: none;
|
|
2227
2218
|
|
|
2228
2219
|
@media (min-width: ${P.small}px) {
|
|
@@ -2235,16 +2226,16 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2235
2226
|
width: 100%;
|
|
2236
2227
|
}
|
|
2237
2228
|
}
|
|
2238
|
-
`,
|
|
2229
|
+
`,wp=y.default.p`
|
|
2239
2230
|
display: none;
|
|
2240
2231
|
|
|
2241
2232
|
@media (min-width: ${P.small}px) {
|
|
2242
|
-
${
|
|
2233
|
+
${tc.h6};
|
|
2243
2234
|
display: block;
|
|
2244
2235
|
margin: 0;
|
|
2245
2236
|
font-weight: bold;
|
|
2246
2237
|
}
|
|
2247
|
-
`,
|
|
2238
|
+
`,Cp=y.default.p`
|
|
2248
2239
|
${Z.body1};
|
|
2249
2240
|
margin: ${D(8)} 0 ${D(24)};
|
|
2250
2241
|
color: ${T.dark.base80};
|
|
@@ -2252,19 +2243,19 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2252
2243
|
@media (min-width: ${P.small}px) {
|
|
2253
2244
|
text-align: left;
|
|
2254
2245
|
}
|
|
2255
|
-
`,
|
|
2246
|
+
`,Op=o.keyframes`
|
|
2256
2247
|
from {
|
|
2257
2248
|
background: ${a.transparentize(1,T.dark.base)};
|
|
2258
2249
|
} to {
|
|
2259
2250
|
background: ${a.transparentize(.2,T.dark.base)};
|
|
2260
2251
|
}
|
|
2261
|
-
`,
|
|
2252
|
+
`,kp=o.keyframes`
|
|
2262
2253
|
from {
|
|
2263
2254
|
background: ${a.transparentize(.2,T.dark.base)};
|
|
2264
2255
|
} to {
|
|
2265
2256
|
background: ${a.transparentize(1,T.dark.base)};
|
|
2266
2257
|
}
|
|
2267
|
-
`,
|
|
2258
|
+
`,jp=o.keyframes`
|
|
2268
2259
|
0% {
|
|
2269
2260
|
opacity: 0;
|
|
2270
2261
|
transform: translate(-50%, -80%);
|
|
@@ -2278,7 +2269,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2278
2269
|
transform: translate(-50%, -50%);
|
|
2279
2270
|
}
|
|
2280
2271
|
|
|
2281
|
-
`,
|
|
2272
|
+
`,Sp=o.keyframes`
|
|
2282
2273
|
0% {
|
|
2283
2274
|
opacity: 1;
|
|
2284
2275
|
transform: translate(-50%, -50%);
|
|
@@ -2291,7 +2282,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2291
2282
|
100% {
|
|
2292
2283
|
transform: translate(-50%, -100%);
|
|
2293
2284
|
}
|
|
2294
|
-
`,
|
|
2285
|
+
`,Ep=y.default.div`
|
|
2295
2286
|
position: fixed;
|
|
2296
2287
|
bottom: 0;
|
|
2297
2288
|
left: 0;
|
|
@@ -2301,46 +2292,46 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2301
2292
|
background: ${a.transparentize(.2,T.dark.base)};
|
|
2302
2293
|
cursor: pointer;
|
|
2303
2294
|
|
|
2304
|
-
${({fade:e})=>e===
|
|
2305
|
-
animation: ${
|
|
2295
|
+
${({fade:e})=>e===pp.IN?o.css`
|
|
2296
|
+
animation: ${Op} 0.2s linear;
|
|
2306
2297
|
|
|
2307
|
-
${
|
|
2308
|
-
animation: ${
|
|
2298
|
+
${vp} {
|
|
2299
|
+
animation: ${jp} 0.3s linear;
|
|
2309
2300
|
}
|
|
2310
2301
|
`:o.css`
|
|
2311
2302
|
background: ${a.transparentize(1,T.dark.base)};
|
|
2312
|
-
animation: ${
|
|
2303
|
+
animation: ${kp} 0.2s linear;
|
|
2313
2304
|
|
|
2314
|
-
${
|
|
2305
|
+
${vp} {
|
|
2315
2306
|
opacity: 0;
|
|
2316
2307
|
transform: translate(-50%, -100%);
|
|
2317
|
-
animation: ${
|
|
2308
|
+
animation: ${Sp} 0.3s linear;
|
|
2318
2309
|
}
|
|
2319
2310
|
`}
|
|
2320
|
-
`,
|
|
2311
|
+
`,Pp=({children:t,fade:r,icon:o,isAlternative:a=!1,isClosable:i=!0,isFullScreen:s,isLoading:l,noPadding:d,text:c,title:u,abortModal:f,onAnimationEnd:p})=>{const g=n.useRef(null),[m,b]=n.useState(0),v=()=>{i&&f()},y=({key:e})=>{"Escape"===e&&v()};return S(g,v),n.useLayoutEffect((()=>{const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}),[]),n.useLayoutEffect((()=>{if(l){const e=document.getElementById("modal");e&&b(e.scrollHeight)}return()=>b(0)}),[l]),n.useEffect((()=>(document.addEventListener("keydown",y,{passive:!0}),()=>document.removeEventListener("keydown",y))),[]),n.useEffect((()=>()=>p()),[]),h.createPortal(e.jsx(Ep,{"data-test":"modal-background",fade:r,onAnimationEnd:()=>{r===pp.OUT&&p()},children:e.jsxs(vp,{id:"modal",isFullScreen:s,noPadding:d,ref:g,children:[l&&e.jsx(fp,{loaderHeight:`${m.toString()}px`}),i&&e.jsx(bp,{"data-test":"close-modal-icon",hasTitle:!!u,onClick:v,children:e.jsx(up,{})}),u&&e.jsx(yp,{children:u}),(o||u||c)&&e.jsxs($p,{children:[o&&e.jsx(xp,{"data-test":"modal-icon",children:o}),u&&e.jsx(wp,{"data-test":"modal-title",dangerouslySetInnerHTML:{__html:u},isAlternative:a}),c&&e.jsx(Cp,{"data-test":"modal-text",dangerouslySetInnerHTML:{__html:c}})]}),e.jsx("div",{children:t})]})}),(null===document||void 0===document?void 0:document.body)||null)},Ip=y.default.div`
|
|
2321
2312
|
position: relative;
|
|
2322
2313
|
min-height: ${D(56)};
|
|
2323
2314
|
border: ${D(1)} solid ${T.grey.base60};
|
|
2324
2315
|
background: ${T.grey.base20};
|
|
2325
2316
|
opacity: 0.3;
|
|
2326
2317
|
border-radius: ${D(4)};
|
|
2327
|
-
`,
|
|
2318
|
+
`,Np=(e,t)=>{const n=e.replace(/\s/g,"").replace(",",".");return t?n:n.replace(/\.$/,"")},Ap=(e,t)=>{const n=Np(e,!0),[r,o]=n.split("."),a=parseInt(r,10);return isNaN(a)?"":`${Intl.NumberFormat("fr").format(a)}${t&&void 0!==o?`.${o}`:""}`.replace(/\u202f/gm," ")},Tp=/^\d*(\.|\,)?\d*$/,Dp=/^\d*$/,Fp=y.default.div`
|
|
2328
2319
|
padding: ${D(4)} ${D(8)} ${D(4)} 0;
|
|
2329
|
-
`,
|
|
2330
|
-
${
|
|
2320
|
+
`,Lp=y.default.label`
|
|
2321
|
+
${M};
|
|
2331
2322
|
cursor: pointer;
|
|
2332
2323
|
color: ${T.dark.base};
|
|
2333
|
-
font-size: ${
|
|
2324
|
+
font-size: ${R.small};
|
|
2334
2325
|
line-height: ${D(18)};
|
|
2335
2326
|
|
|
2336
2327
|
::selection {
|
|
2337
2328
|
background-color: transparent;
|
|
2338
2329
|
}
|
|
2339
|
-
`,
|
|
2330
|
+
`,Mp=y.default.input`
|
|
2340
2331
|
opacity: 0;
|
|
2341
2332
|
margin-right: ${D(16)};
|
|
2342
2333
|
|
|
2343
|
-
+ ${
|
|
2334
|
+
+ ${Lp} {
|
|
2344
2335
|
display: inline-block;
|
|
2345
2336
|
position: relative;
|
|
2346
2337
|
|
|
@@ -2376,13 +2367,13 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2376
2367
|
|
|
2377
2368
|
&:focus,
|
|
2378
2369
|
&:hover {
|
|
2379
|
-
+ ${
|
|
2370
|
+
+ ${Lp}::before {
|
|
2380
2371
|
border-color: ${T.terracota.base};
|
|
2381
2372
|
}
|
|
2382
2373
|
}
|
|
2383
2374
|
|
|
2384
2375
|
&:checked {
|
|
2385
|
-
+ ${
|
|
2376
|
+
+ ${Lp} {
|
|
2386
2377
|
::before {
|
|
2387
2378
|
border-color: ${T.terracota.base20};
|
|
2388
2379
|
}
|
|
@@ -2394,22 +2385,22 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2394
2385
|
}
|
|
2395
2386
|
}
|
|
2396
2387
|
}
|
|
2397
|
-
`,
|
|
2398
|
-
${
|
|
2399
|
-
${
|
|
2400
|
-
`,
|
|
2401
|
-
${
|
|
2402
|
-
${
|
|
2403
|
-
`,
|
|
2404
|
-
${
|
|
2405
|
-
${
|
|
2406
|
-
`,
|
|
2407
|
-
${
|
|
2408
|
-
${
|
|
2409
|
-
`,
|
|
2410
|
-
${
|
|
2411
|
-
${
|
|
2412
|
-
`,
|
|
2388
|
+
`,Rp=y.default.h1`
|
|
2389
|
+
${Qd};
|
|
2390
|
+
${tc.h1};
|
|
2391
|
+
`,Bp=({title:t,color:n,isAlternative:r})=>e.jsx(Rp,{isAlternative:r,color:n,dangerouslySetInnerHTML:{__html:t}});Bp.defaultProps=ec;const _p=y.default.h2`
|
|
2392
|
+
${Qd};
|
|
2393
|
+
${tc.h2};
|
|
2394
|
+
`,zp=({title:t,color:n,isAlternative:r})=>e.jsx(_p,{isAlternative:r,color:n,dangerouslySetInnerHTML:{__html:t}});zp.defaultProps=ec;const Up=y.default.h3`
|
|
2395
|
+
${Qd};
|
|
2396
|
+
${tc.h3};
|
|
2397
|
+
`,Gp=({title:t,color:n,isAlternative:r})=>e.jsx(Up,{isAlternative:r,color:n,dangerouslySetInnerHTML:{__html:t}});Gp.defaultProps=Object.assign(Object.assign({},ec),{isAlternative:!0});const Hp=y.default.h4`
|
|
2398
|
+
${Qd};
|
|
2399
|
+
${tc.h4};
|
|
2400
|
+
`,Wp=({title:t,color:n,isAlternative:r})=>e.jsx(Hp,{isAlternative:r,color:n,dangerouslySetInnerHTML:{__html:t}});Wp.defaultProps=ec;const qp=y.default.h6`
|
|
2401
|
+
${Qd};
|
|
2402
|
+
${tc.h6};
|
|
2403
|
+
`,Vp=({title:t,color:n,isAlternative:r})=>e.jsx(qp,{isAlternative:r,color:n,dangerouslySetInnerHTML:{__html:t}});Vp.defaultProps=Object.assign(Object.assign({},ec),{isAlternative:!0});xe(".react-toggle{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;background-color:transparent;border:0;cursor:pointer;display:inline-block;padding:0;position:relative;touch-action:pan-x;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.react-toggle-screenreader-only{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.react-toggle--disabled{cursor:not-allowed;opacity:.5;-webkit-transition:opacity .25s;transition:opacity .25s}.react-toggle-track{background-color:#4d4d4d;border-radius:30px;height:24px;padding:0;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;transition:all .2s ease;width:50px}.react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track{background-color:#000}.react-toggle--checked .react-toggle-track{background-color:#19ab27}.react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track{background-color:#128d15}.react-toggle-track-check{bottom:0;height:10px;left:8px;line-height:0;margin-bottom:auto;margin-top:auto;opacity:0;position:absolute;top:0;-webkit-transition:opacity .25s ease;-moz-transition:opacity .25s ease;transition:opacity .25s ease;width:14px}.react-toggle--checked .react-toggle-track-check,.react-toggle-track-x{opacity:1;-webkit-transition:opacity .25s ease;-moz-transition:opacity .25s ease;transition:opacity .25s ease}.react-toggle-track-x{bottom:0;height:10px;line-height:0;margin-bottom:auto;margin-top:auto;position:absolute;right:10px;top:0;width:10px}.react-toggle--checked .react-toggle-track-x{opacity:0}.react-toggle-thumb{background-color:#fafafa;border:1px solid #4d4d4d;border-radius:50%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;height:22px;left:1px;position:absolute;top:1px;transition:all .5s cubic-bezier(.23,1,.32,1) 0ms;-webkit-transition:all .25s ease;-moz-transition:all .25s ease;transition:all .25s ease;width:22px}.react-toggle--checked .react-toggle-thumb{border-color:#19ab27;left:27px}.react-toggle--focus .react-toggle-thumb{-webkit-box-shadow:0 0 3px 2px #0099e0;-moz-box-shadow:0 0 3px 2px #0099e0;box-shadow:0 0 2px 3px #0099e0}.react-toggle:active:not(.react-toggle--disabled) .react-toggle-thumb{-webkit-box-shadow:0 0 5px 5px #0099e0;-moz-box-shadow:0 0 5px 5px #0099e0;box-shadow:0 0 5px 5px #0099e0}");var Yp={},Kp={};Object.defineProperty(Kp,"__esModule",{value:!0});var Xp=function(e){return e&&e.__esModule?e:{default:e}}(v.default);Kp.default=function(){return Xp.default.createElement("svg",{width:"14",height:"11",viewBox:"0 0 14 11"},Xp.default.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}))};var Zp={};Object.defineProperty(Zp,"__esModule",{value:!0});var Jp=function(e){return e&&e.__esModule?e:{default:e}}(v.default);Zp.default=function(){return Jp.default.createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10"},Jp.default.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"}))};var Qp={};Object.defineProperty(Qp,"__esModule",{value:!0}),Qp.pointerCoord=function(e){if(e){var t=e.changedTouches;if(t&&t.length>0){var n=t[0];return{x:n.clientX,y:n.clientY}}var r=e.pageX;if(void 0!==r)return{x:r,y:e.pageY}}return{x:0,y:0}},Object.defineProperty(Yp,"__esModule",{value:!0});var eh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},th=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),nh=v.default,rh=dh(nh),oh=dh(Zn),ah=dh(Yn),ih=dh(Kp),sh=dh(Zp),lh=Qp;function dh(e){return e&&e.__esModule?e:{default:e}}var ch=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClick=n.handleClick.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.previouslyChecked=!(!e.checked&&!e.defaultChecked),n.state={checked:!(!e.checked&&!e.defaultChecked),hasFocus:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,nh.PureComponent),th(t,[{key:"componentDidUpdate",value:function(e){e.checked!==this.props.checked&&this.setState({checked:!!this.props.checked})}},{key:"handleClick",value:function(e){if(!this.props.disabled){var t=this.input;if(e.target!==t&&!this.moved)return this.previouslyChecked=t.checked,e.preventDefault(),t.focus(),void t.click();var n=this.props.hasOwnProperty("checked")?this.props.checked:t.checked;this.setState({checked:n})}}},{key:"handleTouchStart",value:function(e){this.props.disabled||(this.startX=(0,lh.pointerCoord)(e).x,this.activated=!0)}},{key:"handleTouchMove",value:function(e){if(this.activated&&(this.moved=!0,this.startX)){var t=(0,lh.pointerCoord)(e).x;this.state.checked&&t+15<this.startX?(this.setState({checked:!1}),this.startX=t,this.activated=!0):t-15>this.startX&&(this.setState({checked:!0}),this.startX=t,this.activated=t<this.startX+5)}}},{key:"handleTouchEnd",value:function(e){if(this.moved){var t=this.input;if(e.preventDefault(),this.startX){var n=(0,lh.pointerCoord)(e).x;!0===this.previouslyChecked&&this.startX+4>n?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,t.click()):this.startX-4<n&&this.previouslyChecked!==this.state.checked&&(this.setState({checked:!0}),this.previouslyChecked=this.state.checked,t.click()),this.activated=!1,this.startX=null,this.moved=!1}}}},{key:"handleFocus",value:function(e){var t=this.props.onFocus;t&&t(e),this.setState({hasFocus:!0})}},{key:"handleBlur",value:function(e){var t=this.props.onBlur;t&&t(e),this.setState({hasFocus:!1})}},{key:"getIcon",value:function(e){var n=this.props.icons;return n?void 0===n[e]?t.defaultProps.icons[e]:n[e]:null}},{key:"render",value:function(){var e=this,t=this.props,n=t.className;t.icons;var r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","icons"]),o=(0,oh.default)("react-toggle",{"react-toggle--checked":this.state.checked,"react-toggle--focus":this.state.hasFocus,"react-toggle--disabled":this.props.disabled},n);return rh.default.createElement("div",{className:o,onClick:this.handleClick,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd},rh.default.createElement("div",{className:"react-toggle-track"},rh.default.createElement("div",{className:"react-toggle-track-check"},this.getIcon("checked")),rh.default.createElement("div",{className:"react-toggle-track-x"},this.getIcon("unchecked"))),rh.default.createElement("div",{className:"react-toggle-thumb"}),rh.default.createElement("input",eh({},r,{ref:function(t){e.input=t},onFocus:this.handleFocus,onBlur:this.handleBlur,className:"react-toggle-screenreader-only",type:"checkbox"})))}}]),t}(),uh=Yp.default=ch;ch.displayName="Toggle",ch.defaultProps={icons:{checked:rh.default.createElement(ih.default,null),unchecked:rh.default.createElement(sh.default,null)}},ch.propTypes={checked:ah.default.bool,disabled:ah.default.bool,defaultChecked:ah.default.bool,onChange:ah.default.func,onFocus:ah.default.func,onBlur:ah.default.func,className:ah.default.string,name:ah.default.string,value:ah.default.string,id:ah.default.string,"aria-labelledby":ah.default.string,"aria-label":ah.default.string,icons:ah.default.oneOfType([ah.default.bool,ah.default.shape({checked:ah.default.node,unchecked:ah.default.node})])};const fh=y.default.label`
|
|
2413
2404
|
${Z.body2};
|
|
2414
2405
|
margin: 0;
|
|
2415
2406
|
cursor: pointer;
|
|
@@ -2418,7 +2409,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2418
2409
|
${({disabled:e})=>e&&o.css`
|
|
2419
2410
|
color: ${T.grey.base60};
|
|
2420
2411
|
`}
|
|
2421
|
-
`,
|
|
2412
|
+
`,ph=y.default.div`
|
|
2422
2413
|
display: flex;
|
|
2423
2414
|
align-items: center;
|
|
2424
2415
|
|
|
@@ -2491,38 +2482,38 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2491
2482
|
background: ${T.dark.base10};
|
|
2492
2483
|
}
|
|
2493
2484
|
}
|
|
2494
|
-
|
|
2485
|
+
`,hh=y.default.div`
|
|
2495
2486
|
display: flex;
|
|
2496
2487
|
align-items: center;
|
|
2497
|
-
`,
|
|
2498
|
-
${
|
|
2488
|
+
`,gh=y.default.div`
|
|
2489
|
+
${Zd};
|
|
2499
2490
|
font-weight: bold;
|
|
2500
2491
|
color: ${({color:e})=>e};
|
|
2501
|
-
`;var
|
|
2502
|
-
${
|
|
2492
|
+
`;var mh,bh;exports.TagAppearance=void 0,(mh=exports.TagAppearance||(exports.TagAppearance={})).BUSINESS="business",mh.CUSTOMER="customer",exports.TagColorsTypes=void 0,(bh=exports.TagColorsTypes||(exports.TagColorsTypes={})).BLUE="BLUE",bh.BLUE_LIGHT="BLUE_LIGHT",bh.GREEN="GREEN",bh.GREEN_LIGHT="GREEN_LIGHT",bh.GREY="GREY",bh.GREY_LIGHT="GREY_LIGHT",bh.ORANGE="ORANGE",bh.ORANGE_LIGHT="ORANGE_LIGHT",bh.ORANGE_LIGHTER="ORANGE_LIGHTER",bh.RED="RED",bh.RED_LIGHT="RED_LIGHT",bh.TERRACOTA="TERRACOTA";const vh=()=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M10 0c5.53 0 10 4.47 10 10s-4.47 10-10 10S0 15.53 0 10 4.47 0 10 0zm3.59 5L10 8.59 6.41 5 5 6.41 8.59 10 5 13.59 6.41 15 10 11.41 13.59 15 15 13.59 11.41 10 15 6.41 13.59 5z",fill:"currentColor"})}),yh={[exports.TagColorsTypes.BLUE]:{color:T.dark.base,background:T.blue.base,colorOutlined:T.dark.base,backgroundOutlined:T.blue.base40},[exports.TagColorsTypes.BLUE_LIGHT]:{color:T.green.base,background:T.blue.base40,colorOutlined:T.green.base,backgroundOutlined:T.blue.base40},[exports.TagColorsTypes.GREY]:{color:"white",background:T.dark.base80,colorOutlined:T.dark.base,backgroundOutlined:T.dark.base40},[exports.TagColorsTypes.GREY_LIGHT]:{color:T.dark.base,background:T.dark.base10,colorOutlined:T.dark.base,backgroundOutlined:T.dark.base40},[exports.TagColorsTypes.GREEN]:{color:T.green.base,background:T.greenLight.base40,colorOutlined:T.green.base40,backgroundOutlined:T.green.base20},[exports.TagColorsTypes.GREEN_LIGHT]:{color:T.green.base,background:T.greenLight.base20,colorOutlined:T.dark.base,backgroundOutlined:T.greenLight.base20},[exports.TagColorsTypes.ORANGE]:{color:"white",background:T.terracota.base,colorOutlined:"white",backgroundOutlined:T.terracota.base20},[exports.TagColorsTypes.ORANGE_LIGHT]:{color:T.dark.base,background:T.terracota.base40,colorOutlined:T.dark.base,backgroundOutlined:T.terracota.base40},[exports.TagColorsTypes.ORANGE_LIGHTER]:{color:T.green.base,background:T.terracota.base10,colorOutlined:T.dark.base,backgroundOutlined:T.terracota.base40},[exports.TagColorsTypes.RED]:{color:"white",background:T.red.base,colorOutlined:T.red.base,backgroundOutlined:T.red.base20},[exports.TagColorsTypes.RED_LIGHT]:{color:T.red.base,background:T.red.base10,colorOutlined:T.red.base,backgroundOutlined:T.red.base20},[exports.TagColorsTypes.TERRACOTA]:{color:T.dark.base,background:T.terracota.base,colorOutlined:T.dark.base,backgroundOutlined:T.terracota.base20}},$h=o.css`
|
|
2493
|
+
${M};
|
|
2503
2494
|
display: inline-flex;
|
|
2504
2495
|
align-items: center;
|
|
2505
2496
|
justify-content: center;
|
|
2506
2497
|
border-radius: ${J.biggest};
|
|
2507
|
-
font-size: ${
|
|
2498
|
+
font-size: ${R.small};
|
|
2508
2499
|
min-width: ${D(24)};
|
|
2509
2500
|
padding: ${D(4)} ${D(16)};
|
|
2510
2501
|
|
|
2511
2502
|
&:not(:only-of-type) {
|
|
2512
2503
|
margin: ${D(2)} ${D(4)} ${D(2)} 0;
|
|
2513
2504
|
}
|
|
2514
|
-
`,
|
|
2505
|
+
`,xh=o.css`
|
|
2515
2506
|
border-radius: ${D(6)};
|
|
2516
2507
|
padding: ${D(4)} ${D(8)};
|
|
2517
|
-
`,
|
|
2518
|
-
color: ${
|
|
2519
|
-
background: ${
|
|
2520
|
-
`,
|
|
2521
|
-
${
|
|
2508
|
+
`,wh=e=>o.css`
|
|
2509
|
+
color: ${yh[e].color};
|
|
2510
|
+
background: ${yh[e].background};
|
|
2511
|
+
`,Ch=y.default.span`
|
|
2512
|
+
${$h};
|
|
2522
2513
|
|
|
2523
|
-
${({appearance:e})=>e===exports.TagAppearance.BUSINESS&&
|
|
2514
|
+
${({appearance:e})=>e===exports.TagAppearance.BUSINESS&&xh}
|
|
2524
2515
|
|
|
2525
|
-
${({color:e})=>e&&
|
|
2516
|
+
${({color:e})=>e&&wh(e)}}
|
|
2526
2517
|
|
|
2527
2518
|
${({icon:e})=>e&&o.css`
|
|
2528
2519
|
padding-left: ${D(8)};
|
|
@@ -2531,7 +2522,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2531
2522
|
${({close:e})=>e&&o.css`
|
|
2532
2523
|
padding-right: ${D(8)};
|
|
2533
2524
|
`}
|
|
2534
|
-
`,
|
|
2525
|
+
`,Oh=y.default.button`
|
|
2535
2526
|
${ie};
|
|
2536
2527
|
width: ${D(16)};
|
|
2537
2528
|
height: ${D(16)};
|
|
@@ -2551,10 +2542,10 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2551
2542
|
opacity: 0.7;
|
|
2552
2543
|
}
|
|
2553
2544
|
}
|
|
2554
|
-
`,
|
|
2545
|
+
`,kh=y.default.li`
|
|
2555
2546
|
white-space: nowrap;
|
|
2556
2547
|
line-height: ${D(16)};
|
|
2557
|
-
`,
|
|
2548
|
+
`,jh=y.default.ul`
|
|
2558
2549
|
display: none;
|
|
2559
2550
|
position: absolute;
|
|
2560
2551
|
bottom: 0;
|
|
@@ -2563,28 +2554,28 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2563
2554
|
padding: ${D(8)} ${D(12)};
|
|
2564
2555
|
border-radius: ${J.normal};
|
|
2565
2556
|
box-shadow: ${ee.level2};
|
|
2566
|
-
font-size: ${
|
|
2557
|
+
font-size: ${R.small};
|
|
2567
2558
|
list-style-type: none;
|
|
2568
2559
|
|
|
2569
|
-
${({appearance:e})=>e===exports.TagAppearance.BUSINESS&&
|
|
2560
|
+
${({appearance:e})=>e===exports.TagAppearance.BUSINESS&&xh};
|
|
2570
2561
|
|
|
2571
|
-
${({color:e})=>e&&
|
|
2572
|
-
`,
|
|
2562
|
+
${({color:e})=>e&&wh(e)};
|
|
2563
|
+
`,Sh=y.default.div`
|
|
2573
2564
|
position: relative;
|
|
2574
2565
|
display: inline-block;
|
|
2575
2566
|
|
|
2576
|
-
&:hover ${
|
|
2567
|
+
&:hover ${jh} {
|
|
2577
2568
|
display: block;
|
|
2578
2569
|
}
|
|
2579
2570
|
|
|
2580
|
-
${
|
|
2571
|
+
${Ch} ~ & {
|
|
2581
2572
|
margin-left: ${D(4)};
|
|
2582
2573
|
}
|
|
2583
2574
|
|
|
2584
|
-
${
|
|
2575
|
+
${Ch}:not(:only-of-type) ~ & {
|
|
2585
2576
|
margin: 0 0 ${D(2)} 0;
|
|
2586
2577
|
}
|
|
2587
|
-
`,
|
|
2578
|
+
`,Eh=y.default.span`
|
|
2588
2579
|
width: ${D(16)};
|
|
2589
2580
|
height: ${D(16)};
|
|
2590
2581
|
margin-right: ${D(8)};
|
|
@@ -2597,15 +2588,15 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2597
2588
|
path {
|
|
2598
2589
|
fill: currentColor;
|
|
2599
2590
|
}
|
|
2600
|
-
`,
|
|
2601
|
-
${
|
|
2591
|
+
`,Ph=y.default.textarea`
|
|
2592
|
+
${M};
|
|
2602
2593
|
min-width: 100%;
|
|
2603
2594
|
max-width: 100%;
|
|
2604
2595
|
border: ${D(1)} solid ${T.grey.base};
|
|
2605
2596
|
border-radius: ${({borderRadius:e})=>e};
|
|
2606
2597
|
box-sizing: border-box;
|
|
2607
2598
|
padding: ${D(16)} ${D(24)};
|
|
2608
|
-
font-size: ${
|
|
2599
|
+
font-size: ${R.base};
|
|
2609
2600
|
line-height: ${D(24)};
|
|
2610
2601
|
color: ${T.dark.base};
|
|
2611
2602
|
resize: none;
|
|
@@ -2640,35 +2631,35 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2640
2631
|
font-weight: 300;
|
|
2641
2632
|
color: currentColor;
|
|
2642
2633
|
}
|
|
2643
|
-
`,
|
|
2634
|
+
`,Ih=y.default.div`
|
|
2644
2635
|
${Z.caption};
|
|
2645
2636
|
color: ${T.dark.base};
|
|
2646
2637
|
text-align: right;
|
|
2647
2638
|
margin-right: ${D(16)};
|
|
2648
|
-
`;class
|
|
2639
|
+
`;class Nh extends n.Component{constructor(e){super(e),this.reflowRaf=null;const{value:t}=e;this.state={value:t,focused:!1},this.loadRef=this.loadRef.bind(this),this.handleOnChange=this.handleOnChange.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleBlur=this.handleBlur.bind(this),this.reflowTextarea=this.reflowTextarea.bind(this),this.textareaRef=null}componentDidMount(){const{focused:e}=this.props;this.textareaRef&&e&&this.textareaRef.focus(),this.reflowRaf=window.requestAnimationFrame(this.reflowTextarea)}componentDidUpdate(e){const{value:t,focused:n}=this.props;e.value===t&&e.focused===n||this.setState((e=>Object.assign(Object.assign(Object.assign({},e),{value:t}),n?{focused:n}:{focused:!1}))),this.props.value===e.value||this.reflowRaf||(this.reflowRaf=window.requestAnimationFrame(this.reflowTextarea))}componentWillUnmount(){this.reflowRaf&&window.cancelAnimationFrame(this.reflowRaf)}handleOnChange(e){const{target:{value:t}}=e,{onChange:n}=this.props;this.setState({value:t},(()=>{n&&n(t)}))}handleFocus(){this.setState({focused:!0})}handleBlur(){this.setState({focused:!1})}reflowTextarea(){this.reflowRaf=null;const e=this.textareaRef,{autoResize:t,minHeight:n=160,maxHeight:r=300}=this.props;if(!e||!t)return;const{height:o}=e.style,a=o&&"auto"!==o;e.style.minHeight="auto",e.style.height="auto";const i=`${Math.max(n,Math.min(e.scrollHeight,r))}px`,s=a&&o&&parseFloat(o)>r?o:"auto";e.style.minHeight=i,e.style.height=s}loadRef(e){this.textareaRef=e,e&&this.reflowTextarea()}render(){const{autoResize:t,placeholder:r,maxlength:o,borderRadius:a=J.biggest,error:i=!1,required:s=!1,disabled:l=!1,spellCheck:d=!1,lang:c="fr-FR",hasCounter:u=!1}=this.props,{value:f,focused:p}=this.state;return e.jsxs(n.Fragment,{children:[e.jsx(Ph,{spellCheck:d,lang:c,error:i,placeholder:r,value:f,autoResize:t,disabled:l,focused:p,maxLength:o,onChange:this.handleOnChange,onFocus:this.handleFocus,onBlur:this.handleBlur,required:s,"data-test":"textarea",ref:this.loadRef,borderRadius:a}),Boolean(o)&&u&&e.jsxs(Ih,{"data-test":"textarea-counter",children:[f.length," / ",o]})]})}}const Ah=T.dark.base,Th=y.default.div`
|
|
2649
2640
|
& + & {
|
|
2650
2641
|
margin-top: ${D(8)};
|
|
2651
2642
|
}
|
|
2652
|
-
`,
|
|
2643
|
+
`,Dh=y.default.button`
|
|
2653
2644
|
${ie};
|
|
2654
|
-
color: ${({hasTitle:e})=>e?
|
|
2645
|
+
color: ${({hasTitle:e})=>e?Ah:T.terracota.base};
|
|
2655
2646
|
|
|
2656
2647
|
${({isComment:e})=>e&&o.css`
|
|
2657
2648
|
display: block;
|
|
2658
2649
|
margin-top: ${D(8)};
|
|
2659
|
-
font-size: ${
|
|
2650
|
+
font-size: ${R.small};
|
|
2660
2651
|
font-weight: bold;
|
|
2661
|
-
color: ${
|
|
2652
|
+
color: ${Ah};
|
|
2662
2653
|
`}
|
|
2663
2654
|
|
|
2664
2655
|
:hover {
|
|
2665
2656
|
cursor: pointer;
|
|
2666
2657
|
text-decoration: underline;
|
|
2667
2658
|
}
|
|
2668
|
-
`,
|
|
2669
|
-
color: ${
|
|
2670
|
-
`,
|
|
2671
|
-
& + ${
|
|
2659
|
+
`,Fh=y.default.span`
|
|
2660
|
+
color: ${Ah};
|
|
2661
|
+
`,Lh=y.default.span`
|
|
2662
|
+
& + ${Dh} {
|
|
2672
2663
|
display: inline-block;
|
|
2673
2664
|
margin-left: ${D(4)};
|
|
2674
2665
|
}
|
|
@@ -2677,10 +2668,10 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<argumen
|
|
|
2677
2668
|
${Z.body1};
|
|
2678
2669
|
font-weight: 500;
|
|
2679
2670
|
|
|
2680
|
-
& + ${
|
|
2671
|
+
& + ${Dh} {
|
|
2681
2672
|
display: block;
|
|
2682
2673
|
margin-left: 0;
|
|
2683
2674
|
}
|
|
2684
2675
|
`}
|
|
2685
|
-
`,Gh=/\n|\r|\r\n/gim;exports.Accordion=({children:t,preExpanded:n,allowMultipleExpanded:r})=>e.jsx(Zd,{preExpanded:n,allowMultipleExpanded:r,children:t}),exports.AccordionHeader=({isAlternative:t,basic:n,children:r})=>e.jsx(bc,{children:({expanded:o,toggleExpanded:a})=>e.jsxs(lc,{onClick:()=>a(),"data-test":"accordion-header",children:[e.jsx(dc,{isAlternative:t,basic:n,children:r}),e.jsx(cc,{isOpen:o,children:e.jsx(ul,{})})]})}),exports.AccordionItem=yc,exports.AccordionPanel=({children:t,unmountOnCollapse:r})=>e.jsx(bc,{children:({expanded:o})=>e.jsx(uc,{isOpen:o,children:!r||o?e.jsx("div",{"data-test":"panel-content",children:t}):e.jsx(n.Fragment,{})})}),exports.AgentBanner=({children:t,agent:{image_agent:n,name:r,zone:o,fonction:a},rounded:i=!0})=>e.jsxs(xc,{"data-test":"agent-card",rounded:i,children:[e.jsxs(kc,{children:[r&&e.jsx($c,{title:r,color:T.green.base}),a&&e.jsx(jc,{"data-test":"agent-fonction",children:a}),o&&e.jsx(jc,{"data-test":"agent-zone",children:o}),t]}),e.jsx(Cc,{children:e.jsx(Oc,{children:e.jsx(wc,{"data-test":"agent-image",src:n,loading:"lazy"})})})]}),exports.AgentCard=Lc,exports.Autocomplete=t=>{var{list:o,native:a=!1,option:i,onSelect:s}=t,l=Qs(t,["list","native","option","onSelect"]);const[{hasFullList:d,internalValue:c,isFocused:u},f]=n.useReducer(((e,t)=>Object.assign(Object.assign({},e),t)),{hasFullList:!1,internalValue:(null==i?void 0:i.label)||"",isFocused:!1}),p=o.filter((({label:e})=>r.normalizeString(e).includes(r.normalizeString(c)))),h=Boolean(c.length>1&&!d)?p:o,g=(e="")=>{e||s(null),f({hasFullList:!1,internalValue:e})};return n.useEffect((()=>{(null==i?void 0:i.label)?g(i.label):f({internalValue:""})}),[i]),e.jsx(Nl,Object.assign({focused:u,isAutocomplete:!0,native:a,option:i,options:a?o:h,onBlur:()=>f({hasFullList:!1,isFocused:!1}),onChange:g,onFocus:()=>{f({hasFullList:!0,isFocused:!0})},onSelect:e=>s(e),value:c},l))},exports.BagossFont=L,exports.Block=({children:t,picture:n,isCompact:r,isRounded:o})=>e.jsxs(_c,{isRounded:o,"data-test":"block",children:[n&&e.jsx(Mc,{picture:n,"data-test":"picture"}),e.jsx(Rc,{isCompact:r,children:t})]}),exports.BlockCheckIcon=({onClick:t,image:n,checked:r,name:o,text:a,dataTest:i})=>{const s=`checkbox-input-label-${a}`;return e.jsxs(du,{checked:r,"data-test":i||`checkbox-button-${a}`,children:[e.jsx(su,{"aria-labelledby":s,checked:r,name:o,onChange:({target:e})=>t(e.checked),type:"checkbox"}),e.jsx(lu,{children:n}),e.jsx("span",{id:s,children:a})]})},exports.BlockIcon=function({onClick:t,image:n,text:r,name:o,selectedValue:a,dataTest:i,value:s,isContentCentered:l=!1}){const d=a===s,c=`radio-input-label-${r}`;return e.jsxs(iu,{"data-test":i||`radio-button-${r}`,isActive:d,isContentCentered:l,children:[e.jsx(su,{"aria-labelledby":c,checked:d,name:o,onChange:()=>t(s),type:"radio"}),e.jsx("span",{id:c,children:r}),n]})},exports.Burger=({isOpen:t,isSmall:n=!1,onClick:r,color:o})=>e.jsxs(Uc,{"data-test":"burger",onClick:r,isOpen:t,isSmall:n,color:o,children:[e.jsx(zc,{}),e.jsx(zc,{}),e.jsx(zc,{})]}),exports.Button=t=>{var{appearance:r=exports.ButtonAppearance.PRIMARY,icon:o,iconPosition:a=exports.IconPosition.RIGHT,label:i,rounded:s=!1,size:l=exports.ButtonSizes.LARGE,theme:d=exports.ButtonTheme.BLACK}=t,c=Qs(t,["appearance","icon","iconPosition","label","rounded","size","theme"]);return e.jsxs(tu,Object.assign({appearance:r,"aria-label":i,icon:o,iconPosition:a,rounded:s,size:l,theme:d},c,{children:[o&&e.jsx(eu,{appearance:r,iconPosition:a,size:l,theme:d,children:n.isValidElement(o)?n.cloneElement(o,{"aria-hidden":!0,focusable:!1}):o}),!s&&e.jsx(Qc,{"data-test":"label",children:i})]}))},exports.ButtonRadio=ou,exports.ButtonRadioGroup=({label:t,name:n,onChange:r,options:o,value:a})=>e.jsx(au,{role:"radiogroup","aria-label":t,children:o.map((t=>e.jsx(ou,{isChecked:a===t.value,name:n,option:t,onClick:()=>r(t)},`radio-option-${t.value}`)))}),exports.Card=({after:t,children:r,closeToggleAriaLabel:o="Cacher le contenu",dataTest:a="card-layout",disabled:i=!1,hasToggle:s=!1,headerIcon:l,headerIconColor:d=T.dark.base,headerIconSize:c=exports.CardHeaderIconSize.MEDIUM,isOpen:u,label:f,labelAfter:p,noPadding:h,onClose:g,onOpen:m,openToggleAriaLabel:b="Afficher le contenu",toggleLabel:y,tooltip:v})=>{const $=oe(),[x,w]=n.useState(u||!1),C=void 0!==u,O=C&&s&&!g,k=C&&s&&!m;return n.useEffect((()=>{C&&w(u)}),[u,C]),e.jsxs(Zf,{"data-test":a,disabled:i,id:f,children:[e.jsxs(Jf,{disabled:i,hasToggle:s,onClick:s&&!i?()=>x?(C&&!O||w(!1),void(g&&g())):(C&&!k||w(!0),void(m&&m())):void 0,children:[e.jsxs(rp,{"data-test":"title-container",children:[l&&e.jsx(np,{headerIconColor:d,headerIconSize:c,children:l}),e.jsx("div",{dangerouslySetInnerHTML:{__html:f},"data-test":`title-${a}`}),p&&e.jsx(ep,{children:p}),v&&e.jsx(Qf,{onClick:e=>e.stopPropagation(),children:e.jsx(Kf,{placement:"auto",tooltip:v,children:e.jsx(tp,{children:e.jsx(cu,{fill:T.grey.base})})})})]}),(t||s)&&e.jsxs(op,{children:[t&&e.jsx(Qf,{onClick:e=>e.stopPropagation(),children:t}),s&&e.jsxs(ip,{children:[!$&&y&&e.jsx("span",{"data-test":"toggle-label",children:y}),e.jsx(lp,{"aria-controls":f,"aria-expanded":x,"aria-label":x?o:y||b})]})]})]}),(!s&&r||s&&x)&&e.jsx(ap,{"data-test":"body-card",noPadding:h,children:r})]})},exports.Checkbox=({checkboxSize:t=exports.CheckboxSize.SMALL,checked:n,children:o,dataTest:a,disabled:i,id:s,indeterminate:l=!1,label:d,name:c,onChange:u})=>{const f=`${s}-${c}`;return e.jsxs(cp,{checkboxSize:t,"data-test":a||`checkbox-${c}`,children:[e.jsx(pp,Object.assign({},Boolean(o)&&{"aria-label":d},{checkboxSize:t,checked:n,"data-test":a?`checkbox-${a}`:"checkbox-input",disabled:i,id:f,indeterminate:l,name:c,onChange:({target:e})=>u(e.checked),type:"checkbox"})),e.jsx(up,{checkboxSize:t,"data-test":a?`checkbox-label-${a}`:"checkbox-label",hasLabel:r.isNotEmpty(d),htmlFor:f,children:o||e.jsx(fp,{dangerouslySetInnerHTML:{__html:d}})})]})},exports.Container=F,exports.DateInput=Hl,exports.DatePicker=({date:t,dataTest:r,disabled:o,disabledDays:a,error:i,formatter:s="EEEE dd MMMM yyyy",label:l,locale:d,onDateChange:c,zIndex:u})=>{const f=n.useRef(null),[p,h]=n.useReducer(((e,t)=>Object.assign(Object.assign({},e),t)),{isFocused:!1,isOpen:!1}),{isOpen:g,isFocused:m}=p;return S(f,(({target:e})=>{var t;(null===(t=f.current)||void 0===t?void 0:t.contains(e))||h({isFocused:!1,isOpen:!1})})),e.jsx(tn,{ref:f,isOpen:g,"data-test":r||"date-picker-wrapper",onClick:()=>{m||o||h({isFocused:!0,isOpen:!0})},children:e.jsx($e,{disabled:o,label:l,error:i,zIndex:u,focused:m,value:t&&b.default(t,s,{locale:d}),field:g?e.jsx(en,{date:t,disabledDays:a,locale:d,onDateChange:e=>{c(e||null),h({isFocused:!1,isOpen:!1})}}):e.jsx(n.Fragment,{})})})},exports.EmailInput=cl,exports.Energy=({carbonFootprint:t,carbonFootprintLevel:n,consumption:r,consumptionLevel:o,EPCLevel:a,textContent:i})=>{const s=1===a?0:25*(a-1)+10*(a-2),{blankEPC:l,carbonFootprintLegend:d,carbonFootprintTitle:c,carbonFootprintUnit:u,consumptionLegend:f,consumptionTitle:p,consumptionUnit:h,EPCLegend:g,EPCTitle:m}=i;return t&&r?e.jsxs("div",{children:[e.jsx(gn,{children:m}),e.jsxs(hn,{"aria-label":m,role:"document",children:[e.jsx("div",{"aria-label":g,role:"group",tabIndex:0,children:e.jsx(bn,{children:e.jsx(yn,{background:ln(a),isMainScore:!0,letterSize:25,pos:s,children:exports.EnergyLevel[a]})})}),e.jsxs(wn,{children:[e.jsxs(xn,{"aria-label":f,role:"group",tabIndex:0,children:[e.jsx(vn,{children:p}),e.jsxs($n,{children:[e.jsx(Cn,{children:r}),e.jsx(yn,{background:ln(o),children:exports.EnergyLevel[o]})]}),e.jsx(On,{children:h})]}),e.jsxs(xn,{"aria-label":d,role:"group",tabIndex:0,children:[e.jsx(vn,{children:c}),e.jsxs($n,{children:[e.jsx(Cn,{children:t}),e.jsx(yn,{background:dn(n),children:exports.EnergyLevel[n]})]}),e.jsx(On,{children:u})]})]})]})]}):e.jsx(mn,{children:l})},exports.ErrorLayout=jn,exports.Fieldset=({label:t,active:n=!1,error:r=!1,children:o})=>e.jsxs(gp,{"data-test":"fieldset-layout",active:n,error:r,children:[e.jsx(hp,{"data-test":"fieldset-label",children:t}),e.jsx(ge,{isVisible:!0,children:e.jsx("span",{dangerouslySetInnerHTML:{__html:t}})}),e.jsx(mp,{children:o})]}),exports.GmapsAutocomplete=Dd,exports.GmapsGeocode=Fd,exports.H1=Hp,exports.H2=qp,exports.H3=Kp,exports.H4=Zp,exports.H5=$c,exports.H6=Qp,exports.Input=$e,exports.InputLoading=()=>e.jsx(Lp,{"data-test":"input-loading"}),exports.InterFont=R,exports.Line=_,exports.Loader=yp,exports.Logo=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 178 41",children:e.jsx("g",{fill:"currentColor",children:e.jsx("path",{d:"M146.119.062 145.337 0l-.68.02a.538.538 0 0 0-.098.012.403.403 0 0 1-.067.01c-.535.04-1.071.082-1.606.164-2.636.474-4.902 1.668-6.693 3.625-2.657 2.883-3.707 6.302-3.151 10.173a11.458 11.458 0 0 0 3.645 6.94c2.904 2.699 6.364 3.749 10.297 3.152a11.458 11.458 0 0 0 6.797-3.584c2.903-3.089 3.933-6.775 3.109-10.915-.576-2.78-1.997-5.066-4.201-6.858a11.906 11.906 0 0 0-6.57-2.677zm5.087 12.192c-.062 3.357-2.842 6.096-6.219 6.075h-.124c-3.439-.082-6.158-2.924-6.075-6.343.082-3.44 2.924-6.158 6.343-6.075 3.439.082 6.158 2.924 6.075 6.343zM3.671 1.274l-3.32.003V24.59h6.301v-5.87H6.9c.722 0 1.441.003 2.16.005 1.434.005 2.866.01 4.307-.004 1.38 0 2.76-.206 4.057-.639 2.471-.824 4.16-2.45 4.881-4.984.577-2.018.577-4.14.02-6.158-.617-2.224-1.997-3.789-4.118-4.716a11.63 11.63 0 0 0-4.572-.927c-3.321-.03-6.642-.027-9.963-.023zM6.837 13.49h-.185V6.487H12.645c.577 0 1.153.103 1.71.31 1.256.473 1.894 1.4 2.038 2.718.083.7-.02 1.441-.309 2.1-.432.948-1.194 1.463-2.183 1.71a5.297 5.297 0 0 1-1.277.165c-1.29.013-2.57.009-3.854.004-.643-.002-1.287-.004-1.933-.004zM166.2 0c.268.02.536.041.783.062a11.863 11.863 0 0 1 7.002 3.068c2.08 1.875 3.398 4.222 3.831 6.982.597 3.748-.33 7.105-2.822 9.988a11.59 11.59 0 0 1-6.775 3.934c-4.058.762-7.621-.288-10.689-3.048a1.715 1.715 0 0 1-.188-.183h-.001v-.001a7.661 7.661 0 0 0-.099-.104 14.88 14.88 0 0 0 1.73-3.295 15.86 15.86 0 0 0 .864-3.605c.557 1.792 1.648 3.13 3.337 3.934a6.011 6.011 0 0 0 5.148.082c3.131-1.359 4.573-5.025 3.193-8.155a6.2 6.2 0 0 0-4.778-3.645c-3.213-.495-6.24 1.606-6.961 4.572a14.7 14.7 0 0 0-2.636-6.961c.206-.206.411-.412.638-.598 1.874-1.585 4.098-2.595 6.487-2.903a19.9 19.9 0 0 1 1.077-.08l.056-.003c.019 0 .037-.004.057-.009a.379.379 0 0 1 .087-.011zM47.677 24.57l-4.408-7.888c.007-.007.014-.012.019-.015l.005-.004c0-.002-.007-.002-.024-.002l.124-.082c1.792-1.133 2.924-2.719 3.398-4.778a10.168 10.168 0 0 0-.02-4.387c-.515-2.492-1.957-4.263-4.325-5.252-1.524-.638-3.151-.885-4.778-.885-2.856-.014-5.712-.01-8.568-.005-1.428.003-2.856.005-4.283.005h-.186v23.251h6.261v-6.384c0-.165.041-.227.227-.227h6.57a.276.276 0 0 1 .288.165c1.153 2.1 2.286 4.202 3.418 6.323.041.123.144.185.247.165h5.829zM31.077 13.2h-.144l-.02-.206V6.714c0-.165.04-.227.226-.227h5.931c.618 0 1.236.103 1.813.33 1.153.453 1.73 1.318 1.874 2.512.082.598.02 1.216-.165 1.792-.33 1.03-1.112 1.648-2.142 1.895a5.036 5.036 0 0 1-1.359.185c-1.333.014-2.674.01-4.013.005-.668-.002-1.336-.005-2-.005zM99.781 1.277h13.016c1.73.02 3.398.268 5.005.968 2.286 1.009 3.645 2.78 4.139 5.21.33 1.483.33 3.007-.02 4.49-.474 1.977-1.607 3.501-3.296 4.613l-.226.144 4.428 7.909h-6.014c-.123.02-.226-.062-.268-.165l-.002-.005a1758.215 1758.215 0 0 1-3.396-6.318c-.041-.103-.144-.164-.267-.164h-6.591c-.165 0-.206.04-.206.206v6.425h-6.26zm6.282 11.924h.185c.659 0 1.318.003 1.977.005 1.318.004 2.636.009 3.954-.005.474 0 .948-.062 1.401-.185.947-.227 1.668-.742 2.08-1.648.268-.638.35-1.338.247-2.039-.124-1.07-.597-1.894-1.586-2.389a4.656 4.656 0 0 0-2.1-.453h-5.952c-.165 0-.206.042-.206.227v6.281zm-32.87-.72c0-6.838-5.519-12.378-12.356-12.399C54.06.062 48.542 5.5 48.439 12.274v.165c0 6.838 5.52 12.378 12.357 12.398 6.837 0 12.398-5.52 12.398-12.357zm-12.418 6.343a6.324 6.324 0 0 1-6.281-6.364v-.062c.02-3.48 2.883-6.281 6.363-6.26 3.48 0 6.302 2.862 6.282 6.404a6.324 6.324 0 0 1-6.364 6.282zm20.986-.103v5.849h-6.26V1.277h12.933c1.647 0 3.254.247 4.778.885 2.368 1.01 3.81 2.801 4.345 5.314.391 1.75.37 3.583-.082 5.334-.66 2.574-2.266 4.284-4.758 5.19a10.28 10.28 0 0 1-3.418.659c-1.607.041-3.193.041-4.799.041h-2.533zm0-8.733v3.296c0 .185.041.226.227.226 1.894 0 3.789 0 5.684-.02.473 0 .926-.062 1.38-.165 1.132-.289 1.977-.948 2.327-2.1.247-.825.247-1.69 0-2.513s-.824-1.483-1.607-1.813a5 5 0 0 0-1.977-.412h-5.807c-.186 0-.206.062-.206.227-.021 1.091-.021 2.183-.021 3.274zm49.036-8.711h-6.261V24.57h6.261zM14.54 32.766h1.277a3.277 3.277 0 0 0-.371-1.174 3.156 3.156 0 0 0-.762-.885 3.213 3.213 0 0 0-1.05-.556 4.12 4.12 0 0 0-1.257-.186c-.72 0-1.359.165-1.936.515-.556.35-1.009.844-1.338 1.483-.33.638-.494 1.421-.494 2.307 0 .885.164 1.668.494 2.306.33.639.762 1.133 1.338 1.483.557.35 1.216.515 1.936.515.453 0 .886-.062 1.277-.206s.742-.33 1.05-.577c.289-.247.557-.535.742-.885.185-.35.33-.721.391-1.133H14.56a1.934 1.934 0 0 1-.288.7c-.144.206-.288.37-.494.515a2.472 2.472 0 0 1-.66.33 3.09 3.09 0 0 1-.761.103c-.494 0-.906-.124-1.298-.371-.39-.247-.68-.597-.906-1.071-.226-.474-.33-1.05-.33-1.73 0-.68.104-1.256.33-1.73.227-.474.536-.824.906-1.07.392-.248.824-.372 1.298-.372.268 0 .515.021.762.103.247.083.453.186.659.33.206.144.37.33.494.535.124.206.227.453.268.721zM1.05 38.347c.31.144.68.227 1.071.227.35 0 .639-.062.906-.165a2.27 2.27 0 0 0 .618-.391c.144-.165.268-.31.35-.474h.042v.865H5.23v-4.18c0-.454-.062-.824-.226-1.113a1.907 1.907 0 0 0-.618-.659 2.288 2.288 0 0 0-.804-.33 3.798 3.798 0 0 0-1.894.083 2.65 2.65 0 0 0-.906.515c-.268.226-.453.535-.598.927l1.154.267c.103-.206.267-.411.494-.597.226-.185.556-.268.968-.268s.7.103.906.289c.206.185.309.473.309.824v.02c0 .165-.062.268-.165.33s-.288.123-.515.144c-.134.012-.298.032-.486.054l-.42.049a6.117 6.117 0 0 0-.885.165c-.289.082-.556.185-.783.308s-.412.289-.556.536c-.144.247-.206.535-.206.885 0 .412.082.763.288 1.05.186.269.453.495.762.64zm2.204-.968c-.227.144-.536.206-.865.206-.35 0-.618-.103-.844-.247-.227-.144-.33-.37-.33-.68 0-.226.041-.411.165-.535.123-.144.288-.247.474-.309.185-.062.411-.123.638-.144.088 0 .19-.015.309-.032l.062-.01c.144-.02.288-.04.453-.061a5 5 0 0 1 .185-.042c.09-.019.172-.036.247-.06a.67.67 0 0 0 .247-.125v.804c0 .247-.061.473-.185.7s-.309.412-.556.535zm15.24 1.195c-.391 0-.762-.083-1.07-.227s-.578-.37-.763-.638a1.906 1.906 0 0 1-.288-1.05c0-.35.062-.639.206-.886s.33-.412.556-.536c.226-.123.494-.226.782-.308s.577-.124.886-.165l.42-.049c.188-.022.351-.042.486-.054.227-.02.412-.083.515-.144s.165-.165.165-.33v-.02c0-.35-.103-.639-.31-.824-.205-.186-.493-.289-.885-.289s-.741.083-.968.268a1.63 1.63 0 0 0-.494.597l-1.153-.267c.144-.392.33-.7.597-.927a2.65 2.65 0 0 1 .906-.515 3.798 3.798 0 0 1 1.895-.082c.288.062.556.165.803.33.247.164.453.37.597.658.144.289.247.66.247 1.112v4.181H20.43v-.865h-.041c-.083.165-.206.309-.35.474-.165.144-.371.288-.618.391a2.65 2.65 0 0 1-.927.165zm.268-.989c.33 0 .638-.062.865-.206.247-.123.432-.309.556-.535s.185-.453.185-.7v-.804a.67.67 0 0 1-.247.124c-.075.025-.157.042-.247.061-.059.013-.12.026-.185.042-.165.02-.31.041-.453.062l-.062.009c-.118.017-.221.032-.31.032-.246.02-.452.082-.658.144-.186.062-.35.165-.474.31-.123.123-.165.308-.165.535 0 .309.103.535.33.68.226.143.515.246.865.246zm7.496-3.727 1.112-.186c-.123-.494-.37-.885-.782-1.174-.391-.288-.927-.432-1.607-.432-.473 0-.885.062-1.256.226-.37.165-.659.371-.865.66a1.555 1.555 0 0 0-.309.967c0 .453.144.824.412 1.113.268.288.72.514 1.298.638l1.07.226c.289.083.515.186.66.31.164.123.226.288.226.494 0 .247-.123.453-.37.618-.248.164-.577.247-.969.247-.35 0-.659-.062-.885-.227-.227-.165-.37-.391-.453-.7l-1.195.185c.103.536.371.968.824 1.277.453.31 1.03.453 1.73.453.494 0 .947-.082 1.339-.247.391-.185.68-.412.906-.7.226-.288.33-.639.33-1.01 0-.452-.145-.802-.433-1.09-.288-.29-.721-.495-1.298-.619l-.988-.226c-.35-.083-.597-.186-.762-.31a.702.702 0 0 1-.227-.514c0-.247.124-.432.35-.597.227-.144.515-.227.865-.227.268 0 .453.041.639.124.185.082.309.185.412.309.103.144.185.267.226.412zm3.83 4.716c-.39 0-.761-.083-1.07-.227a1.926 1.926 0 0 1-.762-.638 1.906 1.906 0 0 1-.288-1.05c0-.35.061-.639.206-.886.144-.247.33-.412.556-.536.226-.123.494-.226.782-.308s.577-.124.886-.165l.42-.049c.188-.022.351-.042.486-.054a1.29 1.29 0 0 0 .515-.144c.103-.062.165-.165.165-.33v-.02c0-.35-.103-.639-.31-.824-.205-.186-.494-.289-.906-.289s-.74.083-.968.268a1.863 1.863 0 0 0-.494.597l-1.153-.267c.144-.392.33-.7.597-.927.268-.227.577-.412.906-.515s.7-.165 1.092-.165c.247 0 .515.02.803.083s.556.165.803.33c.247.164.453.37.597.658.145.289.227.66.227 1.112v4.181h-1.194v-.865h-.042c-.082.165-.206.309-.35.474a2.27 2.27 0 0 1-.618.391 2.264 2.264 0 0 1-.885.165zm.269-.989c.33 0 .638-.062.865-.206.247-.123.432-.309.556-.535.123-.227.185-.453.185-.7v-.804a.671.671 0 0 1-.247.124c-.075.025-.157.042-.247.061-.059.013-.12.026-.186.042-.164.02-.309.041-.453.062l-.061.009a2.288 2.288 0 0 1-.31.032c-.226.02-.452.082-.638.144-.185.062-.35.165-.474.31-.123.123-.185.308-.185.535 0 .309.103.535.33.68.226.164.514.246.865.246zm6.755.845 2.286-6.302H38.08l-1.586 4.84h-.062l-1.586-4.84h-1.318l2.266 6.302zm5.293.123c-.598 0-1.113-.144-1.545-.412a2.751 2.751 0 0 1-1.03-1.132c-.247-.495-.37-1.05-.37-1.71s.123-1.215.37-1.71c.247-.493.577-.864 1.03-1.132.432-.268.947-.412 1.545-.412.597 0 1.112.144 1.544.412.433.268.783.639 1.03 1.133s.37 1.05.37 1.71-.123 1.214-.37 1.709c-.247.494-.577.865-1.03 1.132a2.932 2.932 0 0 1-1.544.412zm0-1.03c.39 0 .7-.103.947-.308a1.88 1.88 0 0 0 .556-.804c.124-.33.185-.7.185-1.112s-.061-.762-.185-1.112a1.764 1.764 0 0 0-.556-.803c-.247-.206-.577-.309-.947-.309s-.7.103-.948.309c-.247.206-.432.474-.556.803s-.185.7-.185 1.112.062.783.185 1.112.309.598.556.804c.247.205.556.308.948.308zm7.29.618c.433.268.947.412 1.565.412a3.76 3.76 0 0 0 1.318-.226c.371-.186.68-.433.886-.762.206-.33.35-.68.391-1.092h-1.194a1.356 1.356 0 0 1-.268.577 1.191 1.191 0 0 1-.474.37 1.68 1.68 0 0 1-.638.124c-.35 0-.66-.082-.906-.268-.268-.185-.453-.453-.598-.782-.144-.35-.206-.742-.206-1.195s.062-.844.206-1.174c.145-.33.35-.576.598-.762.267-.185.556-.267.906-.267.391 0 .7.123.927.33.247.205.39.473.453.761h1.194a2.202 2.202 0 0 0-.412-1.112 2.479 2.479 0 0 0-.906-.741c-.37-.186-.803-.268-1.277-.268-.597 0-1.112.124-1.544.412-.433.288-.762.659-1.01 1.153-.247.494-.37 1.071-.37 1.689s.123 1.174.35 1.668c.226.494.577.886 1.01 1.153zm7.538.412c-.598 0-1.112-.144-1.545-.412a2.751 2.751 0 0 1-1.03-1.132c-.247-.495-.37-1.05-.37-1.71s.123-1.215.37-1.71c.247-.493.577-.864 1.03-1.132.433-.268.947-.412 1.545-.412.597 0 1.112.144 1.544.412.433.268.783.639 1.03 1.133s.37 1.05.37 1.71-.123 1.214-.37 1.709c-.247.494-.577.865-1.03 1.132a2.985 2.985 0 0 1-1.544.412zm0-1.03c.391 0 .7-.103.947-.308.247-.206.432-.474.556-.804s.186-.7.186-1.112-.062-.762-.186-1.112-.309-.597-.556-.803c-.247-.206-.577-.309-.947-.309s-.7.103-.948.309a1.88 1.88 0 0 0-.556.803c-.123.33-.185.7-.185 1.112s.062.783.185 1.112c.124.33.31.598.556.804.248.205.556.308.948.308zm3.707-5.395v6.302l1.235.02v-3.872c0-.267.062-.514.186-.74.123-.228.268-.392.473-.516.186-.123.412-.185.639-.185.33 0 .618.103.824.309.206.206.309.473.309.824v4.18h1.215v-4.016c0-.391.103-.7.33-.947.226-.247.535-.37.926-.37.309 0 .597.102.824.288.226.185.35.494.35.926v4.099h1.235v-4.222c0-.721-.164-1.277-.535-1.627s-.824-.536-1.4-.536c-.454 0-.845.103-1.174.31a1.8 1.8 0 0 0-.721.802h-.062a1.885 1.885 0 0 0-.638-.803c-.268-.185-.639-.288-1.05-.288s-.783.103-1.072.288a1.558 1.558 0 0 0-.638.803h-.082v-1.03zm9.618 8.65v-8.65h1.194v1.009h.103c.062-.124.165-.289.309-.453.123-.165.309-.33.556-.453.226-.124.556-.186.947-.186.515 0 .968.124 1.36.392.39.267.72.618.947 1.112.226.494.35 1.07.35 1.75s-.103 1.257-.33 1.75c-.226.495-.535.866-.926 1.113a2.504 2.504 0 0 1-1.36.391c-.39 0-.7-.061-.926-.185a2.164 2.164 0 0 1-.577-.453 2.217 2.217 0 0 1-.309-.453h-.082v3.315zm1.194-5.5c0 .433.062.824.185 1.154s.31.597.556.783c.248.185.536.288.886.288s.68-.103.927-.288.432-.454.556-.804c.123-.33.185-.72.185-1.132s-.062-.783-.185-1.112c-.124-.33-.31-.598-.556-.783-.247-.185-.556-.288-.927-.288s-.66.082-.906.267a1.638 1.638 0 0 0-.556.762c-.103.33-.165.721-.165 1.154zm6.096 3.07c.309.143.68.226 1.07.226.351 0 .66-.062.948-.165a2.27 2.27 0 0 0 .618-.391c.144-.165.268-.31.35-.474h.041v.865h1.195v-4.18c0-.454-.062-.824-.227-1.113a1.906 1.906 0 0 0-.617-.659c-.248-.165-.515-.268-.804-.33a3.79 3.79 0 0 0-1.894.083 2.65 2.65 0 0 0-.907.515c-.267.226-.453.535-.597.927l1.154.267c.102-.206.267-.411.494-.597.226-.185.576-.268.968-.268s.68.083.885.289c.206.185.31.473.31.824v.02c0 .165-.063.268-.166.33a1.29 1.29 0 0 1-.514.144c-.16.013-.345.035-.556.06l-.371.043c-.31.041-.597.103-.886.165a3.876 3.876 0 0 0-.782.308 1.385 1.385 0 0 0-.556.536c-.145.247-.206.535-.206.885 0 .412.103.783.288 1.05.185.269.453.495.762.64zm2.204-.969c-.247.144-.536.206-.865.206a1.59 1.59 0 0 1-.865-.247c-.227-.144-.33-.37-.33-.68 0-.226.062-.411.186-.535a.954.954 0 0 1 .473-.309c.186-.062.412-.123.639-.144.088 0 .19-.015.309-.032l.061-.01c.145-.02.289-.04.453-.061.065-.016.127-.03.186-.042.09-.019.172-.036.247-.06a.671.671 0 0 0 .247-.125v.804c0 .247-.062.473-.185.7a1.272 1.272 0 0 1-.556.535zm4.263-2.698v3.728h-1.236v-6.281h1.174v1.03h.082c.144-.33.371-.598.68-.804.309-.206.7-.309 1.174-.309.432 0 .803.083 1.133.268.329.185.576.453.74.803.186.35.269.783.269 1.298v3.995h-1.236v-3.851c0-.453-.124-.803-.35-1.071-.227-.247-.556-.391-.989-.391-.288 0-.535.061-.762.185a1.291 1.291 0 0 0-.515.535c-.123.227-.164.536-.164.865zm5.128 6.055c.144.02.309.041.494.041.35.021.639 0 .886-.123.247-.124.473-.268.659-.515.185-.247.33-.515.453-.844l2.595-7.126h-1.318l-1.586 4.88h-.062l-1.586-4.88H88.66l2.307 6.364-.144.412c-.103.267-.206.473-.35.597-.145.103-.289.185-.474.185-.186 0-.37-.02-.597-.082l-.289 1.009c.062.02.186.062.33.082z"})})}),exports.NumberInput=t=>{var{focused:r,isFloat:o=!1,onBlur:a,onChange:i,onFocus:s,value:l}=t,d=Qs(t,["focused","isFloat","onBlur","onChange","onFocus","value"]);const[c,u]=n.useState(Boolean(r)),[f,p]=n.useState(l?l.toString():"");return n.useEffect((()=>{if(null===l)return p("");const e=null==l?void 0:l.toString();e&&e!==f&&p(e)}),[l]),e.jsx($e,Object.assign({},d,{onFocus:()=>{u(!0),s&&s()},onBlur:()=>{u(!1),p(((e,t)=>{const n=Rp(e),r=t?parseFloat(n):parseInt(n,10);return isNaN(r)?"":r.toString()})(f,o)),a&&a()},onChange:e=>{const t=Rp(e,!0),n=t.endsWith(".");if(o&&_p.test(t)||!o&&Bp.test(t)){if(p(t),n)return;if(""===t)return i(null);const e=o?parseFloat(t):parseInt(t,10);isNaN(e)||l===e||i(e)}},value:c?f:Mp(f,o)}))},exports.OfferSignatoryForm=({offerSignatoryInfo:t,errors:o,customErrorMessages:a={},updateOfferSignatory:i})=>{const{dateOfBirth:s,placeOfBirth:l,street:d,streetNumber:c,city:u,postCode:f,maritalStatus:p}=t,[h,g]=n.useState(r.listToString([c,d,f,u])),m=!!o.street||!!o.city||!!o.postCode,b=Object.assign(Object.assign({},Bd),a);return e.jsxs("div",{children:[e.jsxs(_,{children:[e.jsx(Fd,{dataTest:"offer-signatory-address",disabled:!1,label:Md,value:h,onChange:e=>{g(e),e||i(Object.assign(Object.assign({},t),{city:"",postCode:"",street:"",streetNumber:""}))},onSelect:e=>{const{city:n,postalCode:o,street:a,streetNumber:s}=r.getFormattedAddressComponent(e);i(Object.assign(Object.assign({},t),{city:(null==n?void 0:n.long_name)||"",postCode:(null==o?void 0:o.long_name)||"",street:(null==a?void 0:a.long_name)||"",streetNumber:(null==s?void 0:s.long_name)||""}))},error:m,country:""}),m&&e.jsx(jn,{dataTest:"address",children:b.address})]}),e.jsx(_,{children:e.jsxs(Q,{children:[e.jsxs("div",{children:[e.jsx(Hl,{dataTest:"offer-signatory-birth-date",label:Ld,disabled:!1,error:!!o.dateOfBirth,onChange:e=>e&&i(Object.assign(Object.assign({},t),{dateOfBirth:new Date(e)})),value:s?s.toISOString():""}),o.dateOfBirth&&e.jsx(jn,{dataTest:"dateOfBirth",children:b.dateOfBirth})]}),e.jsxs("div",{children:[e.jsx($e,{dataTest:"offer-signatory-birth-place",label:Rd,error:!!o.placeOfBirth,disabled:!1,onChange:e=>i(Object.assign(Object.assign({},t),{placeOfBirth:e})),value:l}),o.placeOfBirth&&e.jsx(jn,{dataTest:"placeOfBirth",children:b.placeOfBirth})]})]})}),e.jsx(_,{children:e.jsxs(Q,{children:[e.jsxs("div",{children:[e.jsx(Nl,{dataTest:"offer-signatory-marital-status",disabled:!1,error:!!o.maritalStatus,label:_d,onSelect:({value:e})=>i(Object.assign(Object.assign({},t),{maritalStatus:e})),option:zd.find((({value:e})=>e===p))||null,options:zd}),o.maritalStatus&&e.jsx(jn,{dataTest:"maritalStatus",children:b.maritalStatus})]}),e.jsx("div",{})]})})]})},exports.OfferSignatoryFormSchema=Ud,exports.Option=vl,exports.Phone=Js,exports.PhoneAndFlag=({color:t=T.dark.base,errorMessage:r,onError:o,phone:a})=>{const i=a?_l(a):null;return n.useEffect((()=>{!i&&o&&o()}),[o,i]),i?e.jsx(Gd,{children:"FR"===i.country?e.jsx(Hd,{color:t,"data-test":"french-phone",children:Rl(i.number)}):e.jsxs(n.Fragment,{children:[e.jsx(Wd,{alt:i.country,"data-test":"flag",src:`https://cdn.proprioo.fr/assets/flags/${i.country}.svg`}),e.jsx(Hd,{color:t,"data-test":"phone",children:Rl(i.number)})]})}):e.jsx(Gd,{children:e.jsx(Vd,{"data-test":"incorrect-phone",children:r})})},exports.PhoneInput=({label:t,value:n,onChange:r,dataTest:o,disabled:a=!1,error:i=!1,phoneWithFlags:s=!1,required:l=!1})=>e.jsx($e,{dataTest:o||"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:a,error:i,label:t,value:n,onChange:r,inputElement:Js,phoneWithFlags:s,required:l}),exports.PlacesAutocomplete=Od,exports.Radio=({name:t,label:n,id:r,isChecked:o,onChange:a,value:i,dataTest:s})=>{const l=`${r}-${t}`;return e.jsxs(zp,{"data-test":s||`radio-${t}`,children:[e.jsx(Gp,{type:"radio",id:l,name:t,value:i,onChange:e=>a(e),checked:o}),e.jsx(Up,{htmlFor:l,children:n})]})},exports.Row=Q,exports.Select=Nl,exports.SingleMonth=t=>e.jsx(nn,{children:e.jsx(en,Object.assign({},t))}),exports.Subtitle=({text:t,color:n=T.dark.base})=>e.jsx($h,{"data-test":"subtitle",children:e.jsx(xh,{color:n,"data-test":"subtitle-label",children:t})}),exports.Tag=({appearance:t=exports.TagAppearance.BUSINESS,closeAriaLabel:r="Supprimer",color:o=exports.TagColorsTypes.TERRACOTA,dataTest:a="basic-tag",icon:i,labels:s,numberOfTags:l=s.length,onClose:d})=>{const c=s.slice(0,l),u=s.slice(l);return e.jsxs(n.Fragment,{children:[c.map(((n,s)=>e.jsxs(Ph,{appearance:t,color:o,close:!!d,"data-test":a,icon:!!i,children:[i&&e.jsx(Dh,{color:o,"data-test":"tag-icon",children:i}),n,d&&e.jsx(Ih,{"aria-label":r,appearance:t,"data-test":"tag-closer",onClick:d,children:e.jsx(Oh,{})})]},s))),Boolean(u.length)&&e.jsxs(Th,{"data-test":"list-tag",children:[e.jsxs(Ph,{appearance:t,color:o,"data-test":a,icon:!!i,children:[i&&e.jsx(Dh,{color:o,"data-test":"tag-icon",children:i}),`+ ${u.length}`]}),e.jsx(Ah,{appearance:t,color:o,children:u.map(((t,n)=>e.jsx(Nh,{"data-test":"tag-element",children:t},n)))})]})]})},exports.TagBase=jh,exports.TextToggle=({text:t,dataTest:r="text-toggle",isComment:o=!1,maxLength:a=300,showLessLabel:i="Lire moins",showMoreLabel:s="Lire plus",title:l})=>{const d=(e=>e.split(Gh).filter(Boolean).join(" "))(t),c=d.length>a,[u,f]=n.useState(c),p=((e,t)=>{if(e.length<=t||t<0)return e;if(" "===e.charAt(t))return e.slice(0,t).concat("…");const n=e.slice(0,t),[r]=e.slice(t,e.length).split(" ");return n.concat(r).concat("…")})(d,a);return e.jsxs(_h,{"data-test":r,children:[l&&e.jsx(zh,{"data-test":"text-toggle-title",children:`${l} : `}),e.jsx(Uh,{isComment:o,children:u?p:d}),c&&e.jsx(Bh,{isComment:o,hasTitle:Boolean(l),onClick:()=>f(!u),children:u?s:i})]})},exports.Textarea=Rh,exports.Toggle=({label:t,id:n,checked:r=!1,disabled:o=!1,name:a,dataTest:i,onChange:s})=>e.jsxs(vh,{children:[e.jsx(bh,{checked:r,onChange:e=>{s(e.target.checked)},icons:!1,name:a,id:n,disabled:o,"data-test":i||`toggle-${a}`}),e.jsx(yh,{htmlFor:n,disabled:o,"data-test":"toggle-label",children:t})]}),exports.Tooltip=Kf,exports.UserForm=({disabledFields:t={},emailSuggestionI18nLabels:n,errorMessages:r={},errors:o,hasLanguagePreferences:a=!1,isEmailSuggestionEnabled:i=!0,labels:s=Tl,phoneWithFlags:l=!1,user:d,userLanguageOptions:c=Al,updateUser:u})=>{const{email:f,firstName:p,language:h,lastName:g,phone:m}=d,b=Object.assign(Object.assign({},Dl),r);return e.jsxs("div",{children:[e.jsx(_,{children:e.jsxs(Q,{children:[e.jsxs("div",{children:[e.jsx($e,{dataTest:"customer-firstName",name:"first-name",type:exports.InputType.TEXT,disabled:t.firstName,error:!!o.firstName,label:s.firstName,value:p,onChange:e=>u(Object.assign(Object.assign({},d),{firstName:e}),"user.firstName")}),!!o.firstName&&e.jsx(jn,{dataTest:"invalid-firstName",children:b.firstName})]}),e.jsxs("div",{children:[e.jsx($e,{dataTest:"customer-lastName",name:"last-name",type:exports.InputType.TEXT,disabled:t.lastName,error:!!o.lastName,label:s.lastName,value:g,onChange:e=>u(Object.assign(Object.assign({},d),{lastName:e}),"user.lastName")}),!!o.lastName&&e.jsx(jn,{dataTest:"invalid-lastName",children:b.lastName})]})]})}),e.jsx(_,{children:e.jsxs(Q,{children:[e.jsxs("div",{children:[e.jsx(cl,{dataTest:"customer-email",name:"email",disabled:t.email,error:!!o.email,label:s.email,isSuggestionEnabled:i,i18nLabels:n,value:f,onChange:e=>u(Object.assign(Object.assign({},d),{email:Fl(e)}),"user.email")}),!!o.email&&e.jsx(jn,{dataTest:"invalid-email",children:b.email})]}),e.jsxs("div",{children:[e.jsx($e,{dataTest:"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:t.phone,error:!!o.phone,label:s.phone,value:m,onChange:e=>u(Object.assign(Object.assign({},d),{phone:e||null}),"user.phone"),inputElement:Js,phoneWithFlags:l}),!!o.phone&&e.jsx(jn,{dataTest:"invalid-phone",children:b.phone})]})]})}),a&&e.jsx(_,{children:e.jsx(Q,{children:e.jsxs("div",{children:[e.jsx(Nl,{dataTest:"customer-language",disabled:t.language,error:!!o.language,label:s.language,onSelect:({value:e})=>{u(Object.assign(Object.assign({},d),{language:e}),"user.language")},option:c.find((({value:e})=>e===h))||null,options:c}),!!o.language&&e.jsx(jn,{dataTest:"invalid-language",children:b.language})]})})})]})},exports.UserSchema=zl,exports.breakpoints=P,exports.colors=T,exports.convertPxToRem=D,exports.createAction=ne,exports.fonts=M,exports.formatISODate=Gl,exports.formatInternationalPhone=Rl,exports.formatPhoneNumber=e=>qs(e,Ys),exports.getCarbonFootprintLevel=un,exports.getConsumptionLevel=cn,exports.getEPCLevel=fn,exports.getEPCLevels=(e,t,n)=>{const r=cn(t,n),o=un(e,n);return{consumptionLevel:r,carbonFootprintLevel:o,EPCLevel:fn(r,o,n)}},exports.getGeoSearchSuggestions=le,exports.isTouchDevice=ae,exports.isValidDate=Wl,exports.isValidPhoneNumber=Ml,exports.paragraphs=Z,exports.parsePhoneNumber=_l,exports.radius=J,exports.resetCssButton=ie,exports.scrollbar=te,exports.shadows=ee,exports.titles=sc,exports.useDebounce=rl,exports.useEmailSuggestion=il,exports.useMobileDevice=()=>re(`(max-width: ${P.base-1}px)`),exports.useModal=({onAbort:t,onOpen:r,onClose:o}={})=>{const[{isAborting:a,fade:i,isLoading:s,isOpen:l},d]=n.useReducer(wp,{isAborting:!1,fade:vp.IN,isOpen:!1,isLoading:!1}),c=(()=>{const e=n.useRef(!0);return n.useEffect((()=>{e.current=!1}),[]),e.current})(),u=n.useCallback((()=>{l&&d(xp.toggleLoad())}),[l]),f=n.useCallback((()=>{r&&r(),d(xp.open())}),[r]),p=n.useCallback((()=>{!s&&l&&d(xp.close())}),[s,l]),h=n.useCallback((()=>{!s&&l&&d(xp.abort())}),[s,l]),g=n.useCallback((()=>d(xp.animationEnd())),[]),m=n.useCallback((()=>{a&&t&&t(),o&&o(),d(xp.reset())}),[a,t,o]);n.useEffect((()=>{l||c||m()}),[l]);return{closeModal:p,createModal:({children:t,icon:r,isAlternative:o=!1,isClosable:a=!0,isFullScreen:d,noPadding:c,text:u,title:f})=>l?e.jsx(Fp,{abortModal:h,fade:i,icon:r,isAlternative:o,isClosable:a,isFullScreen:d,isLoading:s,noPadding:c,onAnimationEnd:g,text:u,title:f,children:t}):e.jsx(n.Fragment,{}),openModal:f,toggleLoader:u}},exports.useOnClickOutside=S,exports.useSmallSmartphoneDevice=()=>re(`(max-width: ${P.smallest-1}px)`),exports.useSmartphoneDevice=oe;
|
|
2676
|
+
`,Mh=/\n|\r|\r\n/gim;exports.Accordion=({children:t,preExpanded:n,allowMultipleExpanded:r})=>e.jsx(Wd,{preExpanded:n,allowMultipleExpanded:r,children:t}),exports.AccordionHeader=({isAlternative:t,basic:n,children:r})=>e.jsx(uc,{children:({expanded:o,toggleExpanded:a})=>e.jsxs(nc,{onClick:()=>a(),"data-test":"accordion-header",children:[e.jsx(rc,{isAlternative:t,basic:n,children:r}),e.jsx(oc,{isOpen:o,children:e.jsx(al,{})})]})}),exports.AccordionItem=fc,exports.AccordionPanel=({children:t,unmountOnCollapse:r})=>e.jsx(uc,{children:({expanded:o})=>e.jsx(ac,{isOpen:o,children:!r||o?e.jsx("div",{"data-test":"panel-content",children:t}):e.jsx(n.Fragment,{})})}),exports.AgentBanner=({children:t,agent:{image_agent:n,name:r,zone:o,fonction:a},rounded:i=!0})=>e.jsxs(gc,{"data-test":"agent-card",rounded:i,children:[e.jsxs(yc,{children:[r&&e.jsx(hc,{title:r,color:T.green.base}),a&&e.jsx($c,{"data-test":"agent-fonction",children:a}),o&&e.jsx($c,{"data-test":"agent-zone",children:o}),t]}),e.jsx(bc,{children:e.jsx(vc,{children:e.jsx(mc,{"data-test":"agent-image",src:n,loading:"lazy"})})})]}),exports.AgentCard=Ic,exports.Autocomplete=t=>{var{list:o,native:a=!1,option:i,onSelect:s}=t,l=Vs(t,["list","native","option","onSelect"]);const[{hasFullList:d,internalValue:c,isFocused:u},f]=n.useReducer(((e,t)=>Object.assign(Object.assign({},e),t)),{hasFullList:!1,internalValue:(null==i?void 0:i.label)||"",isFocused:!1}),p=o.filter((({label:e})=>r.normalizeString(e).includes(r.normalizeString(c)))),h=Boolean(c.length>1&&!d)?p:o,g=(e="")=>{e||s(null),f({hasFullList:!1,internalValue:e})};return n.useEffect((()=>{(null==i?void 0:i.label)?g(i.label):f({internalValue:""})}),[i]),e.jsx(kl,Object.assign({focused:u,isAutocomplete:!0,native:a,option:i,options:a?o:h,onBlur:()=>f({hasFullList:!1,isFocused:!1}),onChange:g,onFocus:()=>{f({hasFullList:!0,isFocused:!0})},onSelect:e=>s(e),value:c},l))},exports.BagossFont=L,exports.Block=({children:t,picture:n,isCompact:r,isRounded:o})=>e.jsxs(Tc,{isRounded:o,"data-test":"block",children:[n&&e.jsx(Ac,{picture:n,"data-test":"picture"}),e.jsx(Nc,{isCompact:r,children:t})]}),exports.BlockCheckIcon=({onClick:t,image:n,checked:r,name:o,text:a,dataTest:i})=>{const s=`checkbox-input-label-${a}`;return e.jsxs(ru,{checked:r,"data-test":i||`checkbox-button-${a}`,children:[e.jsx(tu,{"aria-labelledby":s,checked:r,name:o,onChange:({target:e})=>t(e.checked),type:"checkbox"}),e.jsx(nu,{children:n}),e.jsx("span",{id:s,children:a})]})},exports.BlockIcon=function({onClick:t,image:n,text:r,name:o,selectedValue:a,dataTest:i,value:s,isContentCentered:l=!1}){const d=a===s,c=`radio-input-label-${r}`;return e.jsxs(eu,{"data-test":i||`radio-button-${r}`,isActive:d,isContentCentered:l,children:[e.jsx(tu,{"aria-labelledby":c,checked:d,name:o,onChange:()=>t(s),type:"radio"}),e.jsx("span",{id:c,children:r}),n]})},exports.Burger=({isOpen:t,isSmall:n=!1,onClick:r,color:o})=>e.jsxs(Lc,{"data-test":"burger",onClick:r,isOpen:t,isSmall:n,color:o,children:[e.jsx(Fc,{}),e.jsx(Fc,{}),e.jsx(Fc,{})]}),exports.Button=t=>{var{appearance:r=exports.ButtonAppearance.PRIMARY,icon:o,iconPosition:a=exports.IconPosition.RIGHT,label:i,rounded:s=!1,size:l=exports.ButtonSizes.LARGE,theme:d=exports.ButtonTheme.BLACK}=t,c=Vs(t,["appearance","icon","iconPosition","label","rounded","size","theme"]);return e.jsxs(Kc,Object.assign({appearance:r,"aria-label":i,icon:o,iconPosition:a,rounded:s,size:l,theme:d},c,{children:[o&&e.jsx(Yc,{appearance:r,iconPosition:a,size:l,theme:d,children:n.isValidElement(o)?n.cloneElement(o,{"aria-hidden":!0,focusable:!1}):o}),!s&&e.jsx(Vc,{"data-test":"label",children:i})]}))},exports.ButtonRadio=Jc,exports.ButtonRadioGroup=({label:t,name:n,onChange:r,options:o,value:a})=>e.jsx(Qc,{role:"radiogroup","aria-label":t,children:o.map((t=>e.jsx(Jc,{isChecked:a===t.value,name:n,option:t,onClick:()=>r(t)},`radio-option-${t.value}`)))}),exports.Card=({after:t,children:r,closeToggleAriaLabel:o="Cacher le contenu",dataTest:a="card-layout",disabled:i=!1,hasToggle:s=!1,headerIcon:l,headerIconColor:d=T.dark.base,headerIconSize:c=exports.CardHeaderIconSize.MEDIUM,isOpen:u,label:f,labelAfter:p,noPadding:h,onClose:g,onOpen:m,openToggleAriaLabel:b="Afficher le contenu",toggleLabel:v,tooltip:y})=>{const $=oe(),[x,w]=n.useState(u||!1),C=void 0!==u,O=C&&s&&!g,k=C&&s&&!m;return n.useEffect((()=>{C&&w(u)}),[u,C]),e.jsxs(Wf,{"data-test":a,disabled:i,id:f,children:[e.jsxs(qf,{disabled:i,hasToggle:s,onClick:s&&!i?()=>x?(C&&!O||w(!1),void(g&&g())):(C&&!k||w(!0),void(m&&m())):void 0,children:[e.jsxs(Zf,{"data-test":"title-container",children:[l&&e.jsx(Xf,{headerIconColor:d,headerIconSize:c,children:l}),e.jsx("div",{dangerouslySetInnerHTML:{__html:f},"data-test":`title-${a}`}),p&&e.jsx(Yf,{children:p}),y&&e.jsx(Vf,{onClick:e=>e.stopPropagation(),children:e.jsx(Gf,{placement:"auto",tooltip:y,children:e.jsx(Kf,{children:e.jsx(ou,{fill:T.grey.base})})})})]}),(t||s)&&e.jsxs(Jf,{children:[t&&e.jsx(Vf,{onClick:e=>e.stopPropagation(),children:t}),s&&e.jsxs(ep,{children:[!$&&v&&e.jsx("span",{"data-test":"toggle-label",children:v}),e.jsx(np,{"aria-controls":f,"aria-expanded":x,"aria-label":x?o:v||b})]})]})]}),(!s&&r||s&&x)&&e.jsx(Qf,{"data-test":"body-card",noPadding:h,children:r})]})},exports.Checkbox=({checkboxSize:t=exports.CheckboxSize.SMALL,checked:n,children:o,dataTest:a,disabled:i,id:s,indeterminate:l=!1,label:d,name:c,onChange:u})=>{const f=`${s}-${c}`;return e.jsxs(op,{checkboxSize:t,"data-test":a||`checkbox-${c}`,children:[e.jsx(sp,Object.assign({},Boolean(o)&&{"aria-label":d},{checkboxSize:t,checked:n,"data-test":a?`checkbox-${a}`:"checkbox-input",disabled:i,id:f,indeterminate:l,name:c,onChange:({target:e})=>u(e.checked),type:"checkbox"})),e.jsx(ap,{checkboxSize:t,"data-test":a?`checkbox-label-${a}`:"checkbox-label",hasLabel:r.isNotEmpty(d),htmlFor:f,children:o||e.jsx(ip,{dangerouslySetInnerHTML:{__html:d}})})]})},exports.Container=F,exports.DateInput=Bl,exports.DatePicker=({date:t,dataTest:r,disabled:o,disabledDays:a,error:i,formatter:s="EEEE dd MMMM yyyy",label:l,locale:d,onDateChange:c,zIndex:u})=>{const f=n.useRef(null),[p,h]=n.useReducer(((e,t)=>Object.assign(Object.assign({},e),t)),{isFocused:!1,isOpen:!1}),{isOpen:g,isFocused:m}=p;return S(f,(({target:e})=>{var t;(null===(t=f.current)||void 0===t?void 0:t.contains(e))||h({isFocused:!1,isOpen:!1})})),e.jsx(Kt,{ref:f,isOpen:g,"data-test":r||"date-picker-wrapper",onClick:()=>{m||o||h({isFocused:!0,isOpen:!0})},children:e.jsx($e,{disabled:o,label:l,error:i,zIndex:u,focused:m,value:t&&b.default(t,s,{locale:d}),field:g?e.jsx(Yt,{date:t,disabledDays:a,locale:d,onDateChange:e=>{c(e||null),h({isFocused:!1,isOpen:!1})}}):e.jsx(n.Fragment,{})})})},exports.EmailInput=ol,exports.Energy=({carbonFootprint:t,carbonFootprintLevel:n,consumption:r,consumptionLevel:o,EPCLevel:a,textContent:i})=>{const s=1===a?0:25*(a-1)+10*(a-2),{blankEPC:l,carbonFootprintLegend:d,carbonFootprintTitle:c,carbonFootprintUnit:u,consumptionLegend:f,consumptionTitle:p,consumptionUnit:h,EPCLegend:g,EPCTitle:m}=i;return t&&r?e.jsxs("div",{children:[e.jsx(dn,{children:m}),e.jsxs(ln,{"aria-label":m,role:"document",children:[e.jsx("div",{"aria-label":g,role:"group",tabIndex:0,children:e.jsx(un,{children:e.jsx(fn,{background:tn(a),isMainScore:!0,letterSize:25,pos:s,children:exports.EnergyLevel[a]})})}),e.jsxs(mn,{children:[e.jsxs(gn,{"aria-label":f,role:"group",tabIndex:0,children:[e.jsx(pn,{children:p}),e.jsxs(hn,{children:[e.jsx(bn,{children:r}),e.jsx(fn,{background:tn(o),children:exports.EnergyLevel[o]})]}),e.jsx(vn,{children:h})]}),e.jsxs(gn,{"aria-label":d,role:"group",tabIndex:0,children:[e.jsx(pn,{children:c}),e.jsxs(hn,{children:[e.jsx(bn,{children:t}),e.jsx(fn,{background:nn(n),children:exports.EnergyLevel[n]})]}),e.jsx(vn,{children:u})]})]})]})]}):e.jsx(cn,{children:l})},exports.ErrorLayout=$n,exports.Fieldset=({label:t,active:n=!1,error:r=!1,children:o})=>e.jsxs(dp,{"data-test":"fieldset-layout",active:n,error:r,children:[e.jsx(lp,{"data-test":"fieldset-label",children:t}),e.jsx(ge,{isVisible:!0,children:e.jsx("span",{dangerouslySetInnerHTML:{__html:t}})}),e.jsx(cp,{children:o})]}),exports.GmapsAutocomplete=Ed,exports.GmapsGeocode=Pd,exports.H1=Bp,exports.H2=zp,exports.H3=Gp,exports.H4=Wp,exports.H5=hc,exports.H6=Vp,exports.Input=$e,exports.InputLoading=()=>e.jsx(Ip,{"data-test":"input-loading"}),exports.InterFont=M,exports.Line=B,exports.Loader=fp,exports.Logo=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 178 41",children:e.jsx("g",{fill:"currentColor",children:e.jsx("path",{d:"M146.119.062 145.337 0l-.68.02a.538.538 0 0 0-.098.012.403.403 0 0 1-.067.01c-.535.04-1.071.082-1.606.164-2.636.474-4.902 1.668-6.693 3.625-2.657 2.883-3.707 6.302-3.151 10.173a11.458 11.458 0 0 0 3.645 6.94c2.904 2.699 6.364 3.749 10.297 3.152a11.458 11.458 0 0 0 6.797-3.584c2.903-3.089 3.933-6.775 3.109-10.915-.576-2.78-1.997-5.066-4.201-6.858a11.906 11.906 0 0 0-6.57-2.677zm5.087 12.192c-.062 3.357-2.842 6.096-6.219 6.075h-.124c-3.439-.082-6.158-2.924-6.075-6.343.082-3.44 2.924-6.158 6.343-6.075 3.439.082 6.158 2.924 6.075 6.343zM3.671 1.274l-3.32.003V24.59h6.301v-5.87H6.9c.722 0 1.441.003 2.16.005 1.434.005 2.866.01 4.307-.004 1.38 0 2.76-.206 4.057-.639 2.471-.824 4.16-2.45 4.881-4.984.577-2.018.577-4.14.02-6.158-.617-2.224-1.997-3.789-4.118-4.716a11.63 11.63 0 0 0-4.572-.927c-3.321-.03-6.642-.027-9.963-.023zM6.837 13.49h-.185V6.487H12.645c.577 0 1.153.103 1.71.31 1.256.473 1.894 1.4 2.038 2.718.083.7-.02 1.441-.309 2.1-.432.948-1.194 1.463-2.183 1.71a5.297 5.297 0 0 1-1.277.165c-1.29.013-2.57.009-3.854.004-.643-.002-1.287-.004-1.933-.004zM166.2 0c.268.02.536.041.783.062a11.863 11.863 0 0 1 7.002 3.068c2.08 1.875 3.398 4.222 3.831 6.982.597 3.748-.33 7.105-2.822 9.988a11.59 11.59 0 0 1-6.775 3.934c-4.058.762-7.621-.288-10.689-3.048a1.715 1.715 0 0 1-.188-.183h-.001v-.001a7.661 7.661 0 0 0-.099-.104 14.88 14.88 0 0 0 1.73-3.295 15.86 15.86 0 0 0 .864-3.605c.557 1.792 1.648 3.13 3.337 3.934a6.011 6.011 0 0 0 5.148.082c3.131-1.359 4.573-5.025 3.193-8.155a6.2 6.2 0 0 0-4.778-3.645c-3.213-.495-6.24 1.606-6.961 4.572a14.7 14.7 0 0 0-2.636-6.961c.206-.206.411-.412.638-.598 1.874-1.585 4.098-2.595 6.487-2.903a19.9 19.9 0 0 1 1.077-.08l.056-.003c.019 0 .037-.004.057-.009a.379.379 0 0 1 .087-.011zM47.677 24.57l-4.408-7.888c.007-.007.014-.012.019-.015l.005-.004c0-.002-.007-.002-.024-.002l.124-.082c1.792-1.133 2.924-2.719 3.398-4.778a10.168 10.168 0 0 0-.02-4.387c-.515-2.492-1.957-4.263-4.325-5.252-1.524-.638-3.151-.885-4.778-.885-2.856-.014-5.712-.01-8.568-.005-1.428.003-2.856.005-4.283.005h-.186v23.251h6.261v-6.384c0-.165.041-.227.227-.227h6.57a.276.276 0 0 1 .288.165c1.153 2.1 2.286 4.202 3.418 6.323.041.123.144.185.247.165h5.829zM31.077 13.2h-.144l-.02-.206V6.714c0-.165.04-.227.226-.227h5.931c.618 0 1.236.103 1.813.33 1.153.453 1.73 1.318 1.874 2.512.082.598.02 1.216-.165 1.792-.33 1.03-1.112 1.648-2.142 1.895a5.036 5.036 0 0 1-1.359.185c-1.333.014-2.674.01-4.013.005-.668-.002-1.336-.005-2-.005zM99.781 1.277h13.016c1.73.02 3.398.268 5.005.968 2.286 1.009 3.645 2.78 4.139 5.21.33 1.483.33 3.007-.02 4.49-.474 1.977-1.607 3.501-3.296 4.613l-.226.144 4.428 7.909h-6.014c-.123.02-.226-.062-.268-.165l-.002-.005a1758.215 1758.215 0 0 1-3.396-6.318c-.041-.103-.144-.164-.267-.164h-6.591c-.165 0-.206.04-.206.206v6.425h-6.26zm6.282 11.924h.185c.659 0 1.318.003 1.977.005 1.318.004 2.636.009 3.954-.005.474 0 .948-.062 1.401-.185.947-.227 1.668-.742 2.08-1.648.268-.638.35-1.338.247-2.039-.124-1.07-.597-1.894-1.586-2.389a4.656 4.656 0 0 0-2.1-.453h-5.952c-.165 0-.206.042-.206.227v6.281zm-32.87-.72c0-6.838-5.519-12.378-12.356-12.399C54.06.062 48.542 5.5 48.439 12.274v.165c0 6.838 5.52 12.378 12.357 12.398 6.837 0 12.398-5.52 12.398-12.357zm-12.418 6.343a6.324 6.324 0 0 1-6.281-6.364v-.062c.02-3.48 2.883-6.281 6.363-6.26 3.48 0 6.302 2.862 6.282 6.404a6.324 6.324 0 0 1-6.364 6.282zm20.986-.103v5.849h-6.26V1.277h12.933c1.647 0 3.254.247 4.778.885 2.368 1.01 3.81 2.801 4.345 5.314.391 1.75.37 3.583-.082 5.334-.66 2.574-2.266 4.284-4.758 5.19a10.28 10.28 0 0 1-3.418.659c-1.607.041-3.193.041-4.799.041h-2.533zm0-8.733v3.296c0 .185.041.226.227.226 1.894 0 3.789 0 5.684-.02.473 0 .926-.062 1.38-.165 1.132-.289 1.977-.948 2.327-2.1.247-.825.247-1.69 0-2.513s-.824-1.483-1.607-1.813a5 5 0 0 0-1.977-.412h-5.807c-.186 0-.206.062-.206.227-.021 1.091-.021 2.183-.021 3.274zm49.036-8.711h-6.261V24.57h6.261zM14.54 32.766h1.277a3.277 3.277 0 0 0-.371-1.174 3.156 3.156 0 0 0-.762-.885 3.213 3.213 0 0 0-1.05-.556 4.12 4.12 0 0 0-1.257-.186c-.72 0-1.359.165-1.936.515-.556.35-1.009.844-1.338 1.483-.33.638-.494 1.421-.494 2.307 0 .885.164 1.668.494 2.306.33.639.762 1.133 1.338 1.483.557.35 1.216.515 1.936.515.453 0 .886-.062 1.277-.206s.742-.33 1.05-.577c.289-.247.557-.535.742-.885.185-.35.33-.721.391-1.133H14.56a1.934 1.934 0 0 1-.288.7c-.144.206-.288.37-.494.515a2.472 2.472 0 0 1-.66.33 3.09 3.09 0 0 1-.761.103c-.494 0-.906-.124-1.298-.371-.39-.247-.68-.597-.906-1.071-.226-.474-.33-1.05-.33-1.73 0-.68.104-1.256.33-1.73.227-.474.536-.824.906-1.07.392-.248.824-.372 1.298-.372.268 0 .515.021.762.103.247.083.453.186.659.33.206.144.37.33.494.535.124.206.227.453.268.721zM1.05 38.347c.31.144.68.227 1.071.227.35 0 .639-.062.906-.165a2.27 2.27 0 0 0 .618-.391c.144-.165.268-.31.35-.474h.042v.865H5.23v-4.18c0-.454-.062-.824-.226-1.113a1.907 1.907 0 0 0-.618-.659 2.288 2.288 0 0 0-.804-.33 3.798 3.798 0 0 0-1.894.083 2.65 2.65 0 0 0-.906.515c-.268.226-.453.535-.598.927l1.154.267c.103-.206.267-.411.494-.597.226-.185.556-.268.968-.268s.7.103.906.289c.206.185.309.473.309.824v.02c0 .165-.062.268-.165.33s-.288.123-.515.144c-.134.012-.298.032-.486.054l-.42.049a6.117 6.117 0 0 0-.885.165c-.289.082-.556.185-.783.308s-.412.289-.556.536c-.144.247-.206.535-.206.885 0 .412.082.763.288 1.05.186.269.453.495.762.64zm2.204-.968c-.227.144-.536.206-.865.206-.35 0-.618-.103-.844-.247-.227-.144-.33-.37-.33-.68 0-.226.041-.411.165-.535.123-.144.288-.247.474-.309.185-.062.411-.123.638-.144.088 0 .19-.015.309-.032l.062-.01c.144-.02.288-.04.453-.061a5 5 0 0 1 .185-.042c.09-.019.172-.036.247-.06a.67.67 0 0 0 .247-.125v.804c0 .247-.061.473-.185.7s-.309.412-.556.535zm15.24 1.195c-.391 0-.762-.083-1.07-.227s-.578-.37-.763-.638a1.906 1.906 0 0 1-.288-1.05c0-.35.062-.639.206-.886s.33-.412.556-.536c.226-.123.494-.226.782-.308s.577-.124.886-.165l.42-.049c.188-.022.351-.042.486-.054.227-.02.412-.083.515-.144s.165-.165.165-.33v-.02c0-.35-.103-.639-.31-.824-.205-.186-.493-.289-.885-.289s-.741.083-.968.268a1.63 1.63 0 0 0-.494.597l-1.153-.267c.144-.392.33-.7.597-.927a2.65 2.65 0 0 1 .906-.515 3.798 3.798 0 0 1 1.895-.082c.288.062.556.165.803.33.247.164.453.37.597.658.144.289.247.66.247 1.112v4.181H20.43v-.865h-.041c-.083.165-.206.309-.35.474-.165.144-.371.288-.618.391a2.65 2.65 0 0 1-.927.165zm.268-.989c.33 0 .638-.062.865-.206.247-.123.432-.309.556-.535s.185-.453.185-.7v-.804a.67.67 0 0 1-.247.124c-.075.025-.157.042-.247.061-.059.013-.12.026-.185.042-.165.02-.31.041-.453.062l-.062.009c-.118.017-.221.032-.31.032-.246.02-.452.082-.658.144-.186.062-.35.165-.474.31-.123.123-.165.308-.165.535 0 .309.103.535.33.68.226.143.515.246.865.246zm7.496-3.727 1.112-.186c-.123-.494-.37-.885-.782-1.174-.391-.288-.927-.432-1.607-.432-.473 0-.885.062-1.256.226-.37.165-.659.371-.865.66a1.555 1.555 0 0 0-.309.967c0 .453.144.824.412 1.113.268.288.72.514 1.298.638l1.07.226c.289.083.515.186.66.31.164.123.226.288.226.494 0 .247-.123.453-.37.618-.248.164-.577.247-.969.247-.35 0-.659-.062-.885-.227-.227-.165-.37-.391-.453-.7l-1.195.185c.103.536.371.968.824 1.277.453.31 1.03.453 1.73.453.494 0 .947-.082 1.339-.247.391-.185.68-.412.906-.7.226-.288.33-.639.33-1.01 0-.452-.145-.802-.433-1.09-.288-.29-.721-.495-1.298-.619l-.988-.226c-.35-.083-.597-.186-.762-.31a.702.702 0 0 1-.227-.514c0-.247.124-.432.35-.597.227-.144.515-.227.865-.227.268 0 .453.041.639.124.185.082.309.185.412.309.103.144.185.267.226.412zm3.83 4.716c-.39 0-.761-.083-1.07-.227a1.926 1.926 0 0 1-.762-.638 1.906 1.906 0 0 1-.288-1.05c0-.35.061-.639.206-.886.144-.247.33-.412.556-.536.226-.123.494-.226.782-.308s.577-.124.886-.165l.42-.049c.188-.022.351-.042.486-.054a1.29 1.29 0 0 0 .515-.144c.103-.062.165-.165.165-.33v-.02c0-.35-.103-.639-.31-.824-.205-.186-.494-.289-.906-.289s-.74.083-.968.268a1.863 1.863 0 0 0-.494.597l-1.153-.267c.144-.392.33-.7.597-.927.268-.227.577-.412.906-.515s.7-.165 1.092-.165c.247 0 .515.02.803.083s.556.165.803.33c.247.164.453.37.597.658.145.289.227.66.227 1.112v4.181h-1.194v-.865h-.042c-.082.165-.206.309-.35.474a2.27 2.27 0 0 1-.618.391 2.264 2.264 0 0 1-.885.165zm.269-.989c.33 0 .638-.062.865-.206.247-.123.432-.309.556-.535.123-.227.185-.453.185-.7v-.804a.671.671 0 0 1-.247.124c-.075.025-.157.042-.247.061-.059.013-.12.026-.186.042-.164.02-.309.041-.453.062l-.061.009a2.288 2.288 0 0 1-.31.032c-.226.02-.452.082-.638.144-.185.062-.35.165-.474.31-.123.123-.185.308-.185.535 0 .309.103.535.33.68.226.164.514.246.865.246zm6.755.845 2.286-6.302H38.08l-1.586 4.84h-.062l-1.586-4.84h-1.318l2.266 6.302zm5.293.123c-.598 0-1.113-.144-1.545-.412a2.751 2.751 0 0 1-1.03-1.132c-.247-.495-.37-1.05-.37-1.71s.123-1.215.37-1.71c.247-.493.577-.864 1.03-1.132.432-.268.947-.412 1.545-.412.597 0 1.112.144 1.544.412.433.268.783.639 1.03 1.133s.37 1.05.37 1.71-.123 1.214-.37 1.709c-.247.494-.577.865-1.03 1.132a2.932 2.932 0 0 1-1.544.412zm0-1.03c.39 0 .7-.103.947-.308a1.88 1.88 0 0 0 .556-.804c.124-.33.185-.7.185-1.112s-.061-.762-.185-1.112a1.764 1.764 0 0 0-.556-.803c-.247-.206-.577-.309-.947-.309s-.7.103-.948.309c-.247.206-.432.474-.556.803s-.185.7-.185 1.112.062.783.185 1.112.309.598.556.804c.247.205.556.308.948.308zm7.29.618c.433.268.947.412 1.565.412a3.76 3.76 0 0 0 1.318-.226c.371-.186.68-.433.886-.762.206-.33.35-.68.391-1.092h-1.194a1.356 1.356 0 0 1-.268.577 1.191 1.191 0 0 1-.474.37 1.68 1.68 0 0 1-.638.124c-.35 0-.66-.082-.906-.268-.268-.185-.453-.453-.598-.782-.144-.35-.206-.742-.206-1.195s.062-.844.206-1.174c.145-.33.35-.576.598-.762.267-.185.556-.267.906-.267.391 0 .7.123.927.33.247.205.39.473.453.761h1.194a2.202 2.202 0 0 0-.412-1.112 2.479 2.479 0 0 0-.906-.741c-.37-.186-.803-.268-1.277-.268-.597 0-1.112.124-1.544.412-.433.288-.762.659-1.01 1.153-.247.494-.37 1.071-.37 1.689s.123 1.174.35 1.668c.226.494.577.886 1.01 1.153zm7.538.412c-.598 0-1.112-.144-1.545-.412a2.751 2.751 0 0 1-1.03-1.132c-.247-.495-.37-1.05-.37-1.71s.123-1.215.37-1.71c.247-.493.577-.864 1.03-1.132.433-.268.947-.412 1.545-.412.597 0 1.112.144 1.544.412.433.268.783.639 1.03 1.133s.37 1.05.37 1.71-.123 1.214-.37 1.709c-.247.494-.577.865-1.03 1.132a2.985 2.985 0 0 1-1.544.412zm0-1.03c.391 0 .7-.103.947-.308.247-.206.432-.474.556-.804s.186-.7.186-1.112-.062-.762-.186-1.112-.309-.597-.556-.803c-.247-.206-.577-.309-.947-.309s-.7.103-.948.309a1.88 1.88 0 0 0-.556.803c-.123.33-.185.7-.185 1.112s.062.783.185 1.112c.124.33.31.598.556.804.248.205.556.308.948.308zm3.707-5.395v6.302l1.235.02v-3.872c0-.267.062-.514.186-.74.123-.228.268-.392.473-.516.186-.123.412-.185.639-.185.33 0 .618.103.824.309.206.206.309.473.309.824v4.18h1.215v-4.016c0-.391.103-.7.33-.947.226-.247.535-.37.926-.37.309 0 .597.102.824.288.226.185.35.494.35.926v4.099h1.235v-4.222c0-.721-.164-1.277-.535-1.627s-.824-.536-1.4-.536c-.454 0-.845.103-1.174.31a1.8 1.8 0 0 0-.721.802h-.062a1.885 1.885 0 0 0-.638-.803c-.268-.185-.639-.288-1.05-.288s-.783.103-1.072.288a1.558 1.558 0 0 0-.638.803h-.082v-1.03zm9.618 8.65v-8.65h1.194v1.009h.103c.062-.124.165-.289.309-.453.123-.165.309-.33.556-.453.226-.124.556-.186.947-.186.515 0 .968.124 1.36.392.39.267.72.618.947 1.112.226.494.35 1.07.35 1.75s-.103 1.257-.33 1.75c-.226.495-.535.866-.926 1.113a2.504 2.504 0 0 1-1.36.391c-.39 0-.7-.061-.926-.185a2.164 2.164 0 0 1-.577-.453 2.217 2.217 0 0 1-.309-.453h-.082v3.315zm1.194-5.5c0 .433.062.824.185 1.154s.31.597.556.783c.248.185.536.288.886.288s.68-.103.927-.288.432-.454.556-.804c.123-.33.185-.72.185-1.132s-.062-.783-.185-1.112c-.124-.33-.31-.598-.556-.783-.247-.185-.556-.288-.927-.288s-.66.082-.906.267a1.638 1.638 0 0 0-.556.762c-.103.33-.165.721-.165 1.154zm6.096 3.07c.309.143.68.226 1.07.226.351 0 .66-.062.948-.165a2.27 2.27 0 0 0 .618-.391c.144-.165.268-.31.35-.474h.041v.865h1.195v-4.18c0-.454-.062-.824-.227-1.113a1.906 1.906 0 0 0-.617-.659c-.248-.165-.515-.268-.804-.33a3.79 3.79 0 0 0-1.894.083 2.65 2.65 0 0 0-.907.515c-.267.226-.453.535-.597.927l1.154.267c.102-.206.267-.411.494-.597.226-.185.576-.268.968-.268s.68.083.885.289c.206.185.31.473.31.824v.02c0 .165-.063.268-.166.33a1.29 1.29 0 0 1-.514.144c-.16.013-.345.035-.556.06l-.371.043c-.31.041-.597.103-.886.165a3.876 3.876 0 0 0-.782.308 1.385 1.385 0 0 0-.556.536c-.145.247-.206.535-.206.885 0 .412.103.783.288 1.05.185.269.453.495.762.64zm2.204-.969c-.247.144-.536.206-.865.206a1.59 1.59 0 0 1-.865-.247c-.227-.144-.33-.37-.33-.68 0-.226.062-.411.186-.535a.954.954 0 0 1 .473-.309c.186-.062.412-.123.639-.144.088 0 .19-.015.309-.032l.061-.01c.145-.02.289-.04.453-.061.065-.016.127-.03.186-.042.09-.019.172-.036.247-.06a.671.671 0 0 0 .247-.125v.804c0 .247-.062.473-.185.7a1.272 1.272 0 0 1-.556.535zm4.263-2.698v3.728h-1.236v-6.281h1.174v1.03h.082c.144-.33.371-.598.68-.804.309-.206.7-.309 1.174-.309.432 0 .803.083 1.133.268.329.185.576.453.74.803.186.35.269.783.269 1.298v3.995h-1.236v-3.851c0-.453-.124-.803-.35-1.071-.227-.247-.556-.391-.989-.391-.288 0-.535.061-.762.185a1.291 1.291 0 0 0-.515.535c-.123.227-.164.536-.164.865zm5.128 6.055c.144.02.309.041.494.041.35.021.639 0 .886-.123.247-.124.473-.268.659-.515.185-.247.33-.515.453-.844l2.595-7.126h-1.318l-1.586 4.88h-.062l-1.586-4.88H88.66l2.307 6.364-.144.412c-.103.267-.206.473-.35.597-.145.103-.289.185-.474.185-.186 0-.37-.02-.597-.082l-.289 1.009c.062.02.186.062.33.082z"})})}),exports.NumberInput=t=>{var{focused:r,isFloat:o=!1,onBlur:a,onChange:i,onFocus:s,value:l}=t,d=Vs(t,["focused","isFloat","onBlur","onChange","onFocus","value"]);const[c,u]=n.useState(Boolean(r)),[f,p]=n.useState(l?l.toString():"");return n.useEffect((()=>{if(null===l)return p("");const e=null==l?void 0:l.toString();e&&e!==f&&p(e)}),[l]),e.jsx($e,Object.assign({},d,{onFocus:()=>{u(!0),s&&s()},onBlur:()=>{u(!1),p(((e,t)=>{const n=Np(e),r=t?parseFloat(n):parseInt(n,10);return isNaN(r)?"":r.toString()})(f,o)),a&&a()},onChange:e=>{const t=Np(e,!0),n=t.endsWith(".");if(o&&Tp.test(t)||!o&&Dp.test(t)){if(p(t),n)return;if(""===t)return i(null);const e=o?parseFloat(t):parseInt(t,10);isNaN(e)||l===e||i(e)}},value:c?f:Ap(f,o)}))},exports.OfferSignatoryForm=({offerSignatoryInfo:t,errors:o,customErrorMessages:a={},updateOfferSignatory:i})=>{const{dateOfBirth:s,placeOfBirth:l,street:d,streetNumber:c,city:u,postCode:f,maritalStatus:p}=t,[h,g]=n.useState(r.listToString([c,d,f,u])),m=!!o.street||!!o.city||!!o.postCode,b=Object.assign(Object.assign({},Dd),a);return e.jsxs("div",{children:[e.jsxs(B,{children:[e.jsx(Pd,{dataTest:"offer-signatory-address",disabled:!1,label:Ad,value:h,onChange:e=>{g(e),e||i(Object.assign(Object.assign({},t),{city:"",postCode:"",street:"",streetNumber:""}))},onSelect:e=>{const{city:n,postalCode:o,street:a,streetNumber:s}=r.getFormattedAddressComponent(e);i(Object.assign(Object.assign({},t),{city:(null==n?void 0:n.long_name)||"",postCode:(null==o?void 0:o.long_name)||"",street:(null==a?void 0:a.long_name)||"",streetNumber:(null==s?void 0:s.long_name)||""}))},error:m,country:""}),m&&e.jsx($n,{dataTest:"address",children:b.address})]}),e.jsx(B,{children:e.jsxs(Q,{children:[e.jsxs("div",{children:[e.jsx(Bl,{dataTest:"offer-signatory-birth-date",label:Id,disabled:!1,error:!!o.dateOfBirth,onChange:e=>e&&i(Object.assign(Object.assign({},t),{dateOfBirth:new Date(e)})),value:s?s.toISOString():""}),o.dateOfBirth&&e.jsx($n,{dataTest:"dateOfBirth",children:b.dateOfBirth})]}),e.jsxs("div",{children:[e.jsx($e,{dataTest:"offer-signatory-birth-place",label:Nd,error:!!o.placeOfBirth,disabled:!1,onChange:e=>i(Object.assign(Object.assign({},t),{placeOfBirth:e})),value:l}),o.placeOfBirth&&e.jsx($n,{dataTest:"placeOfBirth",children:b.placeOfBirth})]})]})}),e.jsx(B,{children:e.jsxs(Q,{children:[e.jsxs("div",{children:[e.jsx(kl,{dataTest:"offer-signatory-marital-status",disabled:!1,error:!!o.maritalStatus,label:Td,onSelect:({value:e})=>i(Object.assign(Object.assign({},t),{maritalStatus:e})),option:Fd.find((({value:e})=>e===p))||null,options:Fd}),o.maritalStatus&&e.jsx($n,{dataTest:"maritalStatus",children:b.maritalStatus})]}),e.jsx("div",{})]})})]})},exports.OfferSignatoryFormSchema=Ld,exports.Option=pl,exports.Phone=qs,exports.PhoneAndFlag=({color:t=T.dark.base,errorMessage:r,onError:o,phone:a})=>{const i=a?Tl(a):null;return n.useEffect((()=>{!i&&o&&o()}),[o,i]),i?e.jsx(Md,{children:"FR"===i.country?e.jsx(Bd,{color:t,"data-test":"french-phone",children:Nl(i.number)}):e.jsxs(n.Fragment,{children:[e.jsx(Rd,{alt:i.country,"data-test":"flag",src:`https://cdn.proprioo.fr/assets/flags/${i.country}.svg`}),e.jsx(Bd,{color:t,"data-test":"phone",children:Nl(i.number)})]})}):e.jsx(Md,{children:e.jsx(_d,{"data-test":"incorrect-phone",children:r})})},exports.PhoneInput=({label:t,value:n,onChange:r,dataTest:o,disabled:a=!1,error:i=!1,phoneWithFlags:s=!1,required:l=!1})=>e.jsx($e,{dataTest:o||"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:a,error:i,label:t,value:n,onChange:r,inputElement:qs,phoneWithFlags:s,required:l}),exports.PlacesAutocomplete=vd,exports.Radio=({name:t,label:n,id:r,isChecked:o,onChange:a,value:i,dataTest:s})=>{const l=`${r}-${t}`;return e.jsxs(Fp,{"data-test":s||`radio-${t}`,children:[e.jsx(Mp,{type:"radio",id:l,name:t,value:i,onChange:e=>a(e),checked:o}),e.jsx(Lp,{htmlFor:l,children:n})]})},exports.Row=Q,exports.Select=kl,exports.SingleMonth=t=>e.jsx(Xt,{children:e.jsx(Yt,Object.assign({},t))}),exports.Subtitle=({text:t,color:n=T.dark.base})=>e.jsx(hh,{"data-test":"subtitle",children:e.jsx(gh,{color:n,"data-test":"subtitle-label",children:t})}),exports.Tag=({appearance:t=exports.TagAppearance.BUSINESS,closeAriaLabel:r="Supprimer",color:o=exports.TagColorsTypes.TERRACOTA,dataTest:a="basic-tag",icon:i,labels:s,numberOfTags:l=s.length,onClose:d})=>{const c=s.slice(0,l),u=s.slice(l);return e.jsxs(n.Fragment,{children:[c.map(((n,s)=>e.jsxs(Ch,{appearance:t,color:o,close:!!d,"data-test":a,icon:!!i,children:[i&&e.jsx(Eh,{color:o,"data-test":"tag-icon",children:i}),n,d&&e.jsx(Oh,{"aria-label":r,appearance:t,"data-test":"tag-closer",onClick:d,children:e.jsx(vh,{})})]},s))),Boolean(u.length)&&e.jsxs(Sh,{"data-test":"list-tag",children:[e.jsxs(Ch,{appearance:t,color:o,"data-test":a,icon:!!i,children:[i&&e.jsx(Eh,{color:o,"data-test":"tag-icon",children:i}),`+ ${u.length}`]}),e.jsx(jh,{appearance:t,color:o,children:u.map(((t,n)=>e.jsx(kh,{"data-test":"tag-element",children:t},n)))})]})]})},exports.TagBase=$h,exports.TextToggle=({text:t,dataTest:r="text-toggle",isComment:o=!1,maxLength:a=300,showLessLabel:i="Lire moins",showMoreLabel:s="Lire plus",title:l})=>{const d=(e=>e.split(Mh).filter(Boolean).join(" "))(t),c=d.length>a,[u,f]=n.useState(c),p=((e,t)=>{if(e.length<=t||t<0)return e;if(" "===e.charAt(t))return e.slice(0,t).concat("…");const n=e.slice(0,t),[r]=e.slice(t,e.length).split(" ");return n.concat(r).concat("…")})(d,a);return e.jsxs(Th,{"data-test":r,children:[l&&e.jsx(Fh,{"data-test":"text-toggle-title",children:`${l} : `}),e.jsx(Lh,{isComment:o,children:u?p:d}),c&&e.jsx(Dh,{isComment:o,hasTitle:Boolean(l),onClick:()=>f(!u),children:u?s:i})]})},exports.Textarea=Nh,exports.Toggle=({label:t,id:n,checked:r=!1,disabled:o=!1,name:a,dataTest:i,onChange:s})=>e.jsxs(ph,{children:[e.jsx(uh,{checked:r,onChange:e=>{s(e.target.checked)},icons:!1,name:a,id:n,disabled:o,"data-test":i||`toggle-${a}`}),e.jsx(fh,{htmlFor:n,disabled:o,"data-test":"toggle-label",children:t})]}),exports.Tooltip=Gf,exports.UserForm=({disabledFields:t={},emailSuggestionI18nLabels:n,errorMessages:r={},errors:o,hasLanguagePreferences:a=!1,isEmailSuggestionEnabled:i=!0,labels:s=Sl,phoneWithFlags:l=!1,user:d,userLanguageOptions:c=jl,updateUser:u})=>{const{email:f,firstName:p,language:h,lastName:g,phone:m}=d,b=Object.assign(Object.assign({},El),r);return e.jsxs("div",{children:[e.jsx(B,{children:e.jsxs(Q,{children:[e.jsxs("div",{children:[e.jsx($e,{dataTest:"customer-firstName",name:"first-name",type:exports.InputType.TEXT,disabled:t.firstName,error:!!o.firstName,label:s.firstName,value:p,onChange:e=>u(Object.assign(Object.assign({},d),{firstName:e}),"user.firstName")}),!!o.firstName&&e.jsx($n,{dataTest:"invalid-firstName",children:b.firstName})]}),e.jsxs("div",{children:[e.jsx($e,{dataTest:"customer-lastName",name:"last-name",type:exports.InputType.TEXT,disabled:t.lastName,error:!!o.lastName,label:s.lastName,value:g,onChange:e=>u(Object.assign(Object.assign({},d),{lastName:e}),"user.lastName")}),!!o.lastName&&e.jsx($n,{dataTest:"invalid-lastName",children:b.lastName})]})]})}),e.jsx(B,{children:e.jsxs(Q,{children:[e.jsxs("div",{children:[e.jsx(ol,{dataTest:"customer-email",name:"email",disabled:t.email,error:!!o.email,label:s.email,isSuggestionEnabled:i,i18nLabels:n,value:f,onChange:e=>u(Object.assign(Object.assign({},d),{email:Pl(e)}),"user.email")}),!!o.email&&e.jsx($n,{dataTest:"invalid-email",children:b.email})]}),e.jsxs("div",{children:[e.jsx($e,{dataTest:"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:t.phone,error:!!o.phone,label:s.phone,value:m,onChange:e=>u(Object.assign(Object.assign({},d),{phone:e||null}),"user.phone"),inputElement:qs,phoneWithFlags:l}),!!o.phone&&e.jsx($n,{dataTest:"invalid-phone",children:b.phone})]})]})}),a&&e.jsx(B,{children:e.jsx(Q,{children:e.jsxs("div",{children:[e.jsx(kl,{dataTest:"customer-language",disabled:t.language,error:!!o.language,label:s.language,onSelect:({value:e})=>{u(Object.assign(Object.assign({},d),{language:e}),"user.language")},option:c.find((({value:e})=>e===h))||null,options:c}),!!o.language&&e.jsx($n,{dataTest:"invalid-language",children:b.language})]})})})]})},exports.UserSchema=Fl,exports.breakpoints=P,exports.colors=T,exports.convertPxToRem=D,exports.createAction=ne,exports.fonts=R,exports.formatISODate=Ml,exports.formatInternationalPhone=Nl,exports.formatPhoneNumber=e=>zs(e,Us),exports.getCarbonFootprintLevel=on,exports.getConsumptionLevel=rn,exports.getEPCLevel=an,exports.getEPCLevels=(e,t,n)=>{const r=rn(t,n),o=on(e,n);return{consumptionLevel:r,carbonFootprintLevel:o,EPCLevel:an(r,o,n)}},exports.getGeoSearchSuggestions=le,exports.isTouchDevice=ae,exports.isValidDate=Rl,exports.isValidPhoneNumber=Al,exports.paragraphs=Z,exports.parsePhoneNumber=Tl,exports.radius=J,exports.resetCssButton=ie,exports.scrollbar=te,exports.shadows=ee,exports.titles=tc,exports.useDebounce=Zs,exports.useEmailSuggestion=el,exports.useMobileDevice=()=>re(`(max-width: ${P.base-1}px)`),exports.useModal=({onAbort:t,onOpen:r,onClose:o}={})=>{const[{isAborting:a,fade:i,isLoading:s,isOpen:l},d]=n.useReducer(mp,{isAborting:!1,fade:pp.IN,isOpen:!1,isLoading:!1}),c=(()=>{const e=n.useRef(!0);return n.useEffect((()=>{e.current=!1}),[]),e.current})(),u=n.useCallback((()=>{l&&d(gp.toggleLoad())}),[l]),f=n.useCallback((()=>{r&&r(),d(gp.open())}),[r]),p=n.useCallback((()=>{!s&&l&&d(gp.close())}),[s,l]),h=n.useCallback((()=>{!s&&l&&d(gp.abort())}),[s,l]),g=n.useCallback((()=>d(gp.animationEnd())),[]),m=n.useCallback((()=>{a&&t&&t(),o&&o(),d(gp.reset())}),[a,t,o]);n.useEffect((()=>{l||c||m()}),[l]);return{closeModal:p,createModal:({children:t,icon:r,isAlternative:o=!1,isClosable:a=!0,isFullScreen:d,noPadding:c,text:u,title:f})=>l?e.jsx(Pp,{abortModal:h,fade:i,icon:r,isAlternative:o,isClosable:a,isFullScreen:d,isLoading:s,noPadding:c,onAnimationEnd:g,text:u,title:f,children:t}):e.jsx(n.Fragment,{}),openModal:f,toggleLoader:u}},exports.useOnClickOutside=S,exports.useSmallSmartphoneDevice=()=>re(`(max-width: ${P.smallest-1}px)`),exports.useSmartphoneDevice=oe;
|
|
2686
2677
|
//# sourceMappingURL=index.js.map
|