@daoyi/nmtl-ui 1.1.31-beta.0 → 1.1.31-beta.4
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/lib/components/Autocomplete.js +1 -1
- package/lib/components/Avatar.js +1 -1
- package/lib/components/BackTop.js +1 -1
- package/lib/components/Breadcrumbs.js +1 -1
- package/lib/components/Button.js +1 -1
- package/lib/components/Carousel.js +1 -1
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/ContactModal-89e39f42.js +18 -0
- package/lib/components/ContactModal.js +1 -18
- package/lib/components/Drawer.js +1 -1
- package/lib/components/Dropdown.js +1 -1
- package/lib/components/Empty-8f489bf1.js +7 -0
- package/lib/components/Empty.js +1 -1
- package/lib/components/Footer.js +1 -0
- package/lib/components/Header.js +1 -1
- package/lib/components/Image.js +1 -1
- package/lib/components/Input.js +1 -1
- package/lib/components/InputMethod.js +3 -3
- package/lib/components/KeywordSearch-628c9f15.js +1 -0
- package/lib/components/KeywordSearch.js +1 -1
- package/lib/components/Loading.js +1 -1
- package/lib/components/MUITheme.js +1 -1
- package/lib/components/Modal.js +1 -1
- package/lib/components/Radio.js +1 -1
- package/lib/components/Select-6b3fa902.js +1 -0
- package/lib/components/Select.js +1 -1
- package/lib/components/Spin.js +1 -1
- package/lib/components/Table.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/{_rollupPluginBabelHelpers-6c1cf22a.js → _rollupPluginBabelHelpers-b18bba19.js} +1 -1
- package/lib/components/debounce-c993109b.js +1 -0
- package/lib/components/index-b2745105.js +7 -0
- package/lib/components/withStyles-12e04256.js +1 -0
- package/lib/index.d.ts +3 -2
- package/lib/index.js +3 -2
- package/package.json +2 -1
- package/lib/components/Backdrop-d3d2985b.js +0 -1
- package/lib/components/Button-3b3ff093.js +0 -1
- package/lib/components/ButtonBase-013fbd95.js +0 -1
- package/lib/components/CircularProgress-0af3f40f.js +0 -1
- package/lib/components/Drawer-e93c7c89.js +0 -1
- package/lib/components/Fade-92cf2aad.js +0 -1
- package/lib/components/FormControlContext-90b149a2.js +0 -1
- package/lib/components/FormControlLabel-cf8d4563.js +0 -1
- package/lib/components/Grow-2b0c4caa.js +0 -1
- package/lib/components/IconButton-920a73fd.js +0 -1
- package/lib/components/ListItemText-cc180de2.js +0 -1
- package/lib/components/Menu-d1267946.js +0 -1
- package/lib/components/MenuItem-56abef4a.js +0 -1
- package/lib/components/Modal-3941cd33.js +0 -1
- package/lib/components/OutlinedInput-e0ddbd3a.js +0 -1
- package/lib/components/Paper-fa04140f.js +0 -1
- package/lib/components/Popper-896103c0.js +0 -25
- package/lib/components/Portal-411c252b.js +0 -1
- package/lib/components/RadioGroup-5506cea3.js +0 -1
- package/lib/components/Select-c0d0b016.js +0 -1
- package/lib/components/TextField-940e48e6.js +0 -1
- package/lib/components/TransitionGroupContext-2ba64e99.js +0 -1
- package/lib/components/Typography-642487e3.js +0 -1
- package/lib/components/capitalize-4566b0fe.js +0 -1
- package/lib/components/createChainedFunction-8d6683d4.js +0 -1
- package/lib/components/createSvgIcon-12e6925b.js +0 -1
- package/lib/components/createSvgIcon-231b6223.js +0 -1
- package/lib/components/debounce-65582d84.js +0 -1
- package/lib/components/debounce-7d215a19.js +0 -1
- package/lib/components/index-d90e1489.js +0 -7
- package/lib/components/isMuiElement-64ad493a.js +0 -1
- package/lib/components/ownerWindow-ba2c31bc.js +0 -1
- package/lib/components/unstable_useId-45c5b1e4.js +0 -1
- package/lib/components/useControlled-b5d6fb94.js +0 -1
- package/lib/components/useEventCallback-8817ed1c.js +0 -1
- package/lib/components/useForkRef-4ff8cc89.js +0 -1
- package/lib/components/useFormControl-607a2e33.js +0 -1
- package/lib/components/useIsFocusVisible-217260c3.js +0 -1
- package/lib/components/useTheme-ea7e9223.js +0 -1
- package/lib/components/utils-bb216124.js +0 -1
- package/lib/components/withStyles-75fe409f.js +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t,b as o}from"./_rollupPluginBabelHelpers-6c1cf22a.js";import*as n from"react";import r,{useCallback as a,useState as i,useRef as l,useMemo as c,useEffect as u}from"react";import s from"prop-types";import{c as p}from"./index-d90e1489.js";import{d}from"./debounce-7d215a19.js";import{w as f,b as m,e as g,_ as v,a as b,c as h,d as y}from"./withStyles-75fe409f.js";import{c as x,a as C}from"./capitalize-4566b0fe.js";import{c as I}from"./createSvgIcon-231b6223.js";import{u as S,s as k}from"./useForkRef-4ff8cc89.js";import{B as O}from"./ButtonBase-013fbd95.js";import{T as E}from"./TextField-940e48e6.js";import{C as P}from"./CircularProgress-0af3f40f.js";import T from"./Empty.js";import{s as w}from"./style-inject.es-1f59c1d0.js";import{u as L}from"./unstable_useId-45c5b1e4.js";import{u as A}from"./useControlled-b5d6fb94.js";import{u as $}from"./useEventCallback-8817ed1c.js";import{I as R}from"./IconButton-920a73fd.js";import{P as j}from"./Paper-fa04140f.js";import{P as N}from"./Popper-896103c0.js";import"./_commonjsHelpers-ae1b5db5.js";import"./isObjectLike-75179648.js";import"react-is";import"react-dom";import"./useIsFocusVisible-217260c3.js";import"./TransitionGroupContext-2ba64e99.js";import"./Select-c0d0b016.js";import"./OutlinedInput-e0ddbd3a.js";import"./useTheme-ea7e9223.js";import"./FormControlContext-90b149a2.js";import"./debounce-65582d84.js";import"./isMuiElement-64ad493a.js";import"./ownerWindow-ba2c31bc.js";import"./Menu-d1267946.js";import"./createChainedFunction-8d6683d4.js";import"./Modal-3941cd33.js";import"./Portal-411c252b.js";import"./Grow-2b0c4caa.js";import"./utils-bb216124.js";import"./useFormControl-607a2e33.js";var D=I(n.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function F(e){return"Backspace"===e.key||"Delete"===e.key}var z=n.forwardRef((function(e,t){var o=e.avatar,r=e.classes,a=e.className,i=e.clickable,l=e.color,c=void 0===l?"default":l,u=e.component,s=e.deleteIcon,p=e.disabled,d=void 0!==p&&p,f=e.icon,m=e.label,g=e.onClick,h=e.onDelete,y=e.onKeyDown,I=e.onKeyUp,k=e.size,E=void 0===k?"medium":k,P=e.variant,T=void 0===P?"default":P,w=v(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),L=n.useRef(null),A=S(L,t),$=function(e){e.stopPropagation(),h&&h(e)},R=!(!1===i||!g)||i,j="small"===E,N=u||(R?O:"div"),z=N===O?{component:"div"}:{},M=null;if(h){var V=x("default"!==c&&("default"===T?r["deleteIconColor".concat(C(c))]:r["deleteIconOutlinedColor".concat(C(c))]),j&&r.deleteIconSmall);M=s&&n.isValidElement(s)?n.cloneElement(s,{className:x(s.props.className,r.deleteIcon,V),onClick:$}):n.createElement(D,{className:x(r.deleteIcon,V),onClick:$})}var H=null;o&&n.isValidElement(o)&&(H=n.cloneElement(o,{className:x(r.avatar,o.props.className,j&&r.avatarSmall,"default"!==c&&r["avatarColor".concat(C(c))])}));var B=null;return f&&n.isValidElement(f)&&(B=n.cloneElement(f,{className:x(r.icon,f.props.className,j&&r.iconSmall,"default"!==c&&r["iconColor".concat(C(c))])})),n.createElement(N,b({role:R||h?"button":void 0,className:x(r.root,a,"default"!==c&&[r["color".concat(C(c))],R&&r["clickableColor".concat(C(c))],h&&r["deletableColor".concat(C(c))]],"default"!==T&&[r.outlined,{primary:r.outlinedPrimary,secondary:r.outlinedSecondary}[c]],d&&r.disabled,j&&r.sizeSmall,R&&r.clickable,h&&r.deletable),"aria-disabled":!!d||void 0,tabIndex:R||h?0:void 0,onClick:g,onKeyDown:function(e){e.currentTarget===e.target&&F(e)&&e.preventDefault(),y&&y(e)},onKeyUp:function(e){e.currentTarget===e.target&&(h&&F(e)?h(e):"Escape"===e.key&&L.current&&L.current.blur()),I&&I(e)},ref:A},z,w),H||B,n.createElement("span",{className:x(r.label,j&&r.labelSmall)},m),M)})),M=f((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],o=m(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:g(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:g(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:g(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:g(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:g(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:g(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:m(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:m(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:m(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:o,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:m(o,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:m(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:m(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:m(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:m(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(z),V=n.forwardRef((function(e,t){var o=e.classes,r=e.className,a=e.color,i=void 0===a?"default":a,l=e.component,c=void 0===l?"li":l,u=e.disableGutters,s=void 0!==u&&u,p=e.disableSticky,d=void 0!==p&&p,f=e.inset,m=void 0!==f&&f,g=v(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return n.createElement(c,b({className:x(o.root,r,"default"!==i&&o["color".concat(C(i))],m&&o.inset,!d&&o.sticky,!s&&o.gutters),ref:t},g))})),H=f((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(V),B=I(n.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),W=I(n.createElement("path",{d:"M7 10l5 5 5-5z"}));function _(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function K(e,t){for(var o=0;o<e.length;o+=1)if(t(e[o]))return o;return-1}var G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,o=void 0===t||t,n=e.ignoreCase,r=void 0===n||n,a=e.limit,i=e.matchFrom,l=void 0===i?"any":i,c=e.stringify,u=e.trim,s=void 0!==u&&u;return function(e,t){var n=t.inputValue,i=t.getOptionLabel,u=s?n.trim():n;r&&(u=u.toLowerCase()),o&&(u=_(u));var p=e.filter((function(e){var t=(c||i)(e);return r&&(t=t.toLowerCase()),o&&(t=_(t)),"start"===l?0===t.indexOf(u):t.indexOf(u)>-1}));return"number"==typeof a?p.slice(0,a):p}}();function U(e){var t=e.autoComplete,o=void 0!==t&&t,r=e.autoHighlight,a=void 0!==r&&r,i=e.autoSelect,l=void 0!==i&&i,c=e.blurOnSelect,u=void 0!==c&&c,s=e.clearOnBlur,p=void 0===s?!e.freeSolo:s,d=e.clearOnEscape,f=void 0!==d&&d,m=e.componentName,g=void 0===m?"useAutocomplete":m,v=e.debug,y=void 0!==v&&v,x=e.defaultValue,C=void 0===x?e.multiple?[]:null:x,I=e.disableClearable,S=void 0!==I&&I,O=e.disableCloseOnSelect,E=void 0!==O&&O,P=e.disabledItemsFocusable,T=void 0!==P&&P,w=e.disableListWrap,R=void 0!==w&&w,j=e.filterOptions,N=void 0===j?G:j,D=e.filterSelectedOptions,F=void 0!==D&&D,z=e.freeSolo,M=void 0!==z&&z,V=e.getOptionDisabled,H=e.getOptionLabel,B=void 0===H?function(e){return e}:H,W=e.getOptionSelected,_=void 0===W?function(e,t){return e===t}:W,U=e.groupBy,q=e.handleHomeEndKeys,J=void 0===q?!e.freeSolo:q,Q=e.id,X=e.includeInputInList,Y=void 0!==X&&X,Z=e.inputValue,ee=e.multiple,te=void 0!==ee&&ee,oe=e.onChange,ne=e.onClose,re=e.onHighlightChange,ae=e.onInputChange,ie=e.onOpen,le=e.open,ce=e.openOnFocus,ue=void 0!==ce&&ce,se=e.options,pe=e.selectOnFocus,de=void 0===pe?!e.freeSolo:pe,fe=e.value,me=L(Q),ge=B,ve=n.useRef(!1),be=n.useRef(!0),he=n.useRef(null),ye=n.useRef(null),xe=n.useState(null),Ce=xe[0],Ie=xe[1],Se=n.useState(-1),ke=Se[0],Oe=Se[1],Ee=a?0:-1,Pe=n.useRef(Ee),Te=A({controlled:fe,default:C,name:g}),we=h(Te,2),Le=we[0],Ae=we[1],$e=A({controlled:Z,default:"",name:g,state:"inputValue"}),Re=h($e,2),je=Re[0],Ne=Re[1],De=n.useState(!1),Fe=De[0],ze=De[1],Me=$((function(e,t){var o;if(te)o="";else if(null==t)o="";else{var n=ge(t);o="string"==typeof n?n:""}je!==o&&(Ne(o),ae&&ae(e,o,"reset"))}));n.useEffect((function(){Me(null,Le)}),[Le,Me]);var Ve=A({controlled:le,default:!1,name:g,state:"open"}),He=h(Ve,2),Be=He[0],We=He[1],_e=!te&&null!=Le&&je===ge(Le),Ke=Be,Ge=Ke?N(se.filter((function(e){return!F||!(te?Le:[Le]).some((function(t){return null!==t&&_(e,t)}))})),{inputValue:_e?"":je,getOptionLabel:ge}):[],Ue=$((function(e){-1===e?he.current.focus():Ce.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));n.useEffect((function(){te&&ke>Le.length-1&&(Oe(-1),Ue(-1))}),[Le,te,ke,Ue]);var qe=$((function(e){var t=e.event,o=e.index,n=e.reason,r=void 0===n?"auto":n;if(Pe.current=o,-1===o?he.current.removeAttribute("aria-activedescendant"):he.current.setAttribute("aria-activedescendant","".concat(me,"-option-").concat(o)),re&&re(t,-1===o?null:Ge[o],r),ye.current){var a=ye.current.querySelector("[data-focus]");a&&a.removeAttribute("data-focus");var i=ye.current.parentElement.querySelector('[role="listbox"]');if(i)if(-1!==o){var l=ye.current.querySelector('[data-option-index="'.concat(o,'"]'));if(l&&(l.setAttribute("data-focus","true"),i.scrollHeight>i.clientHeight&&"mouse"!==r)){var c=l,u=i.clientHeight+i.scrollTop,s=c.offsetTop+c.offsetHeight;s>u?i.scrollTop=s-i.clientHeight:c.offsetTop-c.offsetHeight*(U?1.3:0)<i.scrollTop&&(i.scrollTop=c.offsetTop-c.offsetHeight*(U?1.3:0))}}else i.scrollTop=0}})),Je=$((function(e){var t=e.event,n=e.diff,r=e.direction,a=void 0===r?"next":r,i=e.reason,l=void 0===i?"auto":i;if(Ke){var c=function(e,t){if(!ye.current||-1===e)return-1;for(var o=e;;){if("next"===t&&o===Ge.length||"previous"===t&&-1===o)return-1;var n=ye.current.querySelector('[data-option-index="'.concat(o,'"]')),r=!T&&n&&(n.disabled||"true"===n.getAttribute("aria-disabled"));if(!(n&&!n.hasAttribute("tabindex")||r))return o;o+="next"===t?1:-1}}(function(){var e=Ge.length-1;if("reset"===n)return Ee;if("start"===n)return 0;if("end"===n)return e;var t=Pe.current+n;return t<0?-1===t&&Y?-1:R&&-1!==Pe.current||Math.abs(n)>1?0:e:t>e?t===e+1&&Y?-1:R||Math.abs(n)>1?e:0:t}(),a);if(qe({index:c,reason:l,event:t}),o&&"reset"!==n)if(-1===c)he.current.value=je;else{var u=ge(Ge[c]);he.current.value=u,0===u.toLowerCase().indexOf(je.toLowerCase())&&je.length>0&&he.current.setSelectionRange(je.length,u.length)}}})),Qe=n.useCallback((function(){if(Ke){var e=te?Le[0]:Le;if(0!==Ge.length&&null!=e){if(ye.current)if(F||null==e)Pe.current>=Ge.length-1?qe({index:Ge.length-1}):qe({index:Pe.current});else{var t=Ge[Pe.current];if(te&&t&&-1!==K(Le,(function(e){return _(t,e)})))return;var o=K(Ge,(function(t){return _(t,e)}));-1===o?Je({diff:"reset"}):qe({index:o})}}else Je({diff:"reset"})}}),[0===Ge.length,!te&&Le,F,Je,qe,Ke,je,te]),Xe=$((function(e){k(ye,e),e&&Qe()}));n.useEffect((function(){Qe()}),[Qe]);var Ye=function(e){Be||(We(!0),ie&&ie(e))},Ze=function(e,t){Be&&(We(!1),ne&&ne(e,t))},et=function(e,t,o,n){Le!==t&&(oe&&oe(e,t,o,n),Ae(t))},tt=n.useRef(!1),ot=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"select-option",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",r=o,a=t;if(te){var i=K(a=Array.isArray(Le)?Le.slice():[],(function(e){return _(t,e)}));-1===i?a.push(t):"freeSolo"!==n&&(a.splice(i,1),r="remove-option")}Me(e,a),et(e,a,r,{option:t}),E||Ze(e,r),(!0===u||"touch"===u&&tt.current||"mouse"===u&&!tt.current)&&he.current.blur()};var nt=function(e,t){if(te){Ze(e,"toggleInput");var o=ke;-1===ke?""===je&&"previous"===t&&(o=Le.length-1):((o+="next"===t?1:-1)<0&&(o=0),o===Le.length&&(o=-1)),o=function(e,t){if(-1===e)return-1;for(var o=e;;){if("next"===t&&o===Le.length||"previous"===t&&-1===o)return-1;var n=Ce.querySelector('[data-tag-index="'.concat(o,'"]'));if(!n||n.hasAttribute("tabindex")&&!n.disabled&&"true"!==n.getAttribute("aria-disabled"))return o;o+="next"===t?1:-1}}(o,t),Oe(o),Ue(o)}},rt=function(e){ve.current=!0,Ne(""),ae&&ae(e,"","clear"),et(e,te?[]:null,"clear")},at=function(e){return function(t){switch(-1!==ke&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Oe(-1),Ue(-1)),t.key){case"Home":Ke&&J&&(t.preventDefault(),Je({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Ke&&J&&(t.preventDefault(),Je({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Je({diff:-5,direction:"previous",reason:"keyboard",event:t}),Ye(t);break;case"PageDown":t.preventDefault(),Je({diff:5,direction:"next",reason:"keyboard",event:t}),Ye(t);break;case"ArrowDown":t.preventDefault(),Je({diff:1,direction:"next",reason:"keyboard",event:t}),Ye(t);break;case"ArrowUp":t.preventDefault(),Je({diff:-1,direction:"previous",reason:"keyboard",event:t}),Ye(t);break;case"ArrowLeft":nt(t,"previous");break;case"ArrowRight":nt(t,"next");break;case"Enter":if(229===t.which)break;if(-1!==Pe.current&&Ke){var n=Ge[Pe.current],r=!!V&&V(n);if(t.preventDefault(),r)return;ot(t,n,"select-option"),o&&he.current.setSelectionRange(he.current.value.length,he.current.value.length)}else M&&""!==je&&!1===_e&&(te&&t.preventDefault(),ot(t,je,"create-option","freeSolo"));break;case"Escape":Ke?(t.preventDefault(),t.stopPropagation(),Ze(t,"escape")):f&&(""!==je||te&&Le.length>0)&&(t.preventDefault(),t.stopPropagation(),rt(t));break;case"Backspace":if(te&&""===je&&Le.length>0){var a=-1===ke?Le.length-1:ke,i=Le.slice();i.splice(a,1),et(t,i,"remove-option",{option:Le[a]})}}e.onKeyDown&&e.onKeyDown(t)}},it=function(e){ze(!0),ue&&!ve.current&&Ye(e)},lt=function(e){null===ye.current||document.activeElement!==ye.current.parentElement?(ze(!1),be.current=!0,ve.current=!1,y&&""!==je||(l&&-1!==Pe.current&&Ke?ot(e,Ge[Pe.current],"blur"):l&&M&&""!==je?ot(e,je,"blur","freeSolo"):p&&Me(e,Le),Ze(e,"blur"))):he.current.focus()},ct=function(e){var t=e.target.value;je!==t&&(Ne(t),ae&&ae(e,t,"input")),""===t?S||te||et(e,null,"clear"):Ye(e)},ut=function(e){qe({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},st=function(){tt.current=!0},pt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));ot(e,Ge[t],"select-option"),tt.current=!1},dt=function(e){return function(t){var o=Le.slice();o.splice(e,1),et(t,o,"remove-option",{option:Le[e]})}},ft=function(e){Be?Ze(e,"toggleInput"):Ye(e)},mt=function(e){e.target.getAttribute("id")!==me&&e.preventDefault()},gt=function(){he.current.focus(),de&&be.current&&he.current.selectionEnd-he.current.selectionStart==0&&he.current.select(),be.current=!1},vt=function(e){""!==je&&Be||ft(e)},bt=M&&je.length>0;bt=bt||(te?Le.length>0:null!==Le);var ht=Ge;return U&&(ht=Ge.reduce((function(e,t,o){var n=U(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:o,index:o,group:n,options:[t]}),e}),[])),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b({"aria-owns":Ke?"".concat(me,"-popup"):null,role:"combobox","aria-expanded":Ke},e,{onKeyDown:at(e),onMouseDown:mt,onClick:gt})},getInputLabelProps:function(){return{id:"".concat(me,"-label"),htmlFor:me}},getInputProps:function(){return{id:me,value:je,onBlur:lt,onFocus:it,onChange:ct,onMouseDown:vt,"aria-activedescendant":Ke?"":null,"aria-autocomplete":o?"both":"list","aria-controls":Ke?"".concat(me,"-popup"):null,autoComplete:"off",ref:he,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:rt}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:ft}},getTagProps:function(e){var t=e.index;return{key:t,"data-tag-index":t,tabIndex:-1,onDelete:dt(t)}},getListboxProps:function(){return{role:"listbox",id:"".concat(me,"-popup"),"aria-labelledby":"".concat(me,"-label"),ref:Xe,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,o=e.option,n=(te?Le:[Le]).some((function(e){return null!=e&&_(o,e)})),r=!!V&&V(o);return{key:t,tabIndex:-1,role:"option",id:"".concat(me,"-option-").concat(t),onMouseOver:ut,onClick:pt,onTouchStart:st,"data-option-index":t,"aria-disabled":r,"aria-selected":n}},id:me,inputValue:je,value:Le,dirty:bt,popupOpen:Ke,focused:Fe||-1!==ke,anchorEl:Ce,setAnchorEl:Ie,focusedTag:ke,groupedOptions:ht}}function q(e){e.anchorEl,e.open;var t=v(e,["anchorEl","open"]);return n.createElement("div",t)}var J=n.createElement(B,{fontSize:"small"}),Q=n.createElement(W,null),X=n.forwardRef((function(e,t){e.autoComplete,e.autoHighlight,e.autoSelect,e.blurOnSelect;var o=e.ChipProps,r=e.classes,a=e.className,i=e.clearOnBlur;void 0===i&&e.freeSolo,e.clearOnEscape;var l=e.clearText,c=void 0===l?"Clear":l,u=e.closeIcon,s=void 0===u?J:u,p=e.closeText,d=void 0===p?"Close":p;e.debug;var f=e.defaultValue;void 0===f&&e.multiple;var m=e.disableClearable,g=void 0!==m&&m;e.disableCloseOnSelect;var h=e.disabled,y=void 0!==h&&h;e.disabledItemsFocusable,e.disableListWrap;var C=e.disablePortal,I=void 0!==C&&C;e.filterOptions,e.filterSelectedOptions;var S=e.forcePopupIcon,k=void 0===S?"auto":S,O=e.freeSolo,E=void 0!==O&&O,P=e.fullWidth,T=void 0!==P&&P,w=e.getLimitTagsText,L=void 0===w?function(e){return"+".concat(e)}:w;e.getOptionDisabled;var A=e.getOptionLabel,$=void 0===A?function(e){return e}:A;e.getOptionSelected;var D=e.groupBy,F=e.handleHomeEndKeys;void 0===F&&e.freeSolo,e.id,e.includeInputInList,e.inputValue;var z=e.limitTags,V=void 0===z?-1:z,B=e.ListboxComponent,W=void 0===B?"ul":B,_=e.ListboxProps,K=e.loading,G=void 0!==K&&K,X=e.loadingText,Y=void 0===X?"Loading…":X,Z=e.multiple,ee=void 0!==Z&&Z,te=e.noOptionsText,oe=void 0===te?"No options":te;e.onChange,e.onClose,e.onHighlightChange,e.onInputChange,e.onOpen,e.open,e.openOnFocus;var ne=e.openText,re=void 0===ne?"Open":ne;e.options;var ae=e.PaperComponent,ie=void 0===ae?j:ae,le=e.PopperComponent,ce=void 0===le?N:le,ue=e.popupIcon,se=void 0===ue?Q:ue,pe=e.renderGroup,de=e.renderInput,fe=e.renderOption,me=e.renderTags,ge=e.selectOnFocus;void 0===ge&&e.freeSolo;var ve=e.size,be=void 0===ve?"medium":ve;e.value;var he,ye=v(e,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"]),xe=I?q:ce,Ce=U(b({},e,{componentName:"Autocomplete"})),Ie=Ce.getRootProps,Se=Ce.getInputProps,ke=Ce.getInputLabelProps,Oe=Ce.getPopupIndicatorProps,Ee=Ce.getClearProps,Pe=Ce.getTagProps,Te=Ce.getListboxProps,we=Ce.getOptionProps,Le=Ce.value,Ae=Ce.dirty,$e=Ce.id,Re=Ce.popupOpen,je=Ce.focused,Ne=Ce.focusedTag,De=Ce.anchorEl,Fe=Ce.setAnchorEl,ze=Ce.inputValue,Me=Ce.groupedOptions;if(ee&&Le.length>0){var Ve=function(e){return b({className:x(r.tag,"small"===be&&r.tagSizeSmall),disabled:y},Pe(e))};he=me?me(Le,Ve):Le.map((function(e,t){return n.createElement(M,b({label:$(e),size:be},Ve({index:t}),o))}))}if(V>-1&&Array.isArray(he)){var He=he.length-V;!je&&He>0&&(he=he.splice(0,V)).push(n.createElement("span",{className:r.tag,key:he.length},L(He)))}var Be=pe||function(e){return n.createElement("li",{key:e.key},n.createElement(H,{className:r.groupLabel,component:"div"},e.group),n.createElement("ul",{className:r.groupUl},e.children))},We=fe||$,_e=function(e,t){var o=we({option:e,index:t});return n.createElement("li",b({},o,{className:r.option}),We(e,{selected:o["aria-selected"],inputValue:ze}))},Ke=!g&&!y,Ge=(!E||!0===k)&&!1!==k;return n.createElement(n.Fragment,null,n.createElement("div",b({ref:t,className:x(r.root,a,je&&r.focused,T&&r.fullWidth,Ke&&r.hasClearIcon,Ge&&r.hasPopupIcon)},Ie(ye)),de({id:$e,disabled:y,fullWidth:!0,size:"small"===be?"small":void 0,InputLabelProps:ke(),InputProps:{ref:Fe,className:r.inputRoot,startAdornment:he,endAdornment:n.createElement("div",{className:r.endAdornment},Ke?n.createElement(R,b({},Ee(),{"aria-label":c,title:c,className:x(r.clearIndicator,Ae&&r.clearIndicatorDirty)}),s):null,Ge?n.createElement(R,b({},Oe(),{disabled:y,"aria-label":Re?d:re,title:Re?d:re,className:x(r.popupIndicator,Re&&r.popupIndicatorOpen)}),se):null)},inputProps:b({className:x(r.input,-1===Ne&&r.inputFocused),disabled:y},Se())})),Re&&De?n.createElement(xe,{className:x(r.popper,I&&r.popperDisablePortal),style:{width:De?De.clientWidth:null},role:"presentation",anchorEl:De,open:!0},n.createElement(ie,{className:r.paper},G&&0===Me.length?n.createElement("div",{className:r.loading},Y):null,0!==Me.length||E||G?null:n.createElement("div",{className:r.noOptions},oe),Me.length>0?n.createElement(W,b({className:r.listbox},Te(),_),Me.map((function(e,t){return D?Be({key:e.key,group:e.group,children:e.options.map((function(t,o){return _e(t,e.index+o)}))}):_e(e,t)}))):null)):null)})),Y=f((function(e){var t;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:e.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:b({},e.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:e.palette.text.secondary,padding:"14px 16px"},noOptions:{color:e.palette.text.secondary,padding:"14px 16px"},option:(t={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},y(t,e.breakpoints.up("sm"),{minHeight:"auto"}),y(t,'&[aria-selected="true"]',{backgroundColor:e.palette.action.selected}),y(t,'&[data-focus="true"]',{backgroundColor:e.palette.action.hover}),y(t,"&:active",{backgroundColor:e.palette.action.selected}),y(t,'&[aria-disabled="true"]',{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"}),t),groupLabel:{backgroundColor:e.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}}),{name:"MuiAutocomplete"})(X),Z=I(n.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),ee=I(n.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}));w(".autocomplete .MuiAutocomplete-inputRoot[class*='MuiOutlinedInput-root'] {\n padding: 0px 8px; }\n\n.autocomplete .MuiChip-deleteIcon {\n width: 16px;\n height: 16px; }\n\n.autocomplete__icon {\n font-size: 1.25rem;\n margin-right: 8px; }\n\n.autocomplete--showSearchIcon .MuiAutocomplete-inputRoot[class*='MuiOutlinedInput-root'] {\n display: flex;\n flex-wrap: nowrap;\n padding: 4px 8px;\n border: 1px solid #434343; }\n");var te=function(n){var s=n.options,f=n.defaultValue,m=n.filterable,g=n.loading,v=n.labelInValue,b=n.disabled,h=n.className,y=n.multiple,x=n.freeTyping,C=n.placeholder,I=n.searchIcon,S=n.renderInput,k=n.renderTags,O=n.onChange,w=n.onSearch,L=n.onFocus,A=n.onBlur,$=i(!0),R=t($,2),j=R[0],N=R[1],D=i(),F=t(D,2),z=F[0],V=F[1],H=(({options:t,placeholder:o,loading:n,searchIcon:i,labelInValue:l})=>{const c=a((e=>"object"==typeof e?e.value:e),[]),u=a((e=>{const o=(Array.isArray(t)?t:[]).find((t=>c(t)===c(e)));return o?"object"==typeof o?o.label:o:"object"==typeof e?e.label:e}),[t]),s=a((e=>{if(Array.isArray(t)){if(Array.isArray(e))return e.map((e=>"object"==typeof e&&t.find((({value:t})=>e.value===t))||e));const o=t.find((({value:t})=>e===t));return l?e:o||{label:e,value:e}}return e}),[t,l]),p=a(((t,o)=>t.map(((t,n)=>r.createElement(M,e({label:u(t),deleteIcon:r.createElement(Z,null)},o({index:n})))))),[t]),d=a((t=>r.createElement(E,e({},t,{variant:"outlined",placeholder:o,InputProps:{...t.InputProps,endAdornment:r.createElement(r.Fragment,null,n&&r.createElement(P,{className:"autocomplete__icon",color:"inherit",size:20}),i&&r.createElement(ee,{className:"autocomplete__icon"}),t.InputProps.endAdornment)}}))),[n,i]);return{getValue:c,getValueFromOptions:s,defaultTag:p,defaultRenderInput:d}})(o({},{options:s,placeholder:C,loading:g,searchIcon:I,labelInValue:v})),B=H.getValue,W=H.getValueFromOptions,_=H.defaultTag,K=H.defaultRenderInput,G=l(d((function(e){return w(e)}),500)).current,U=c((function(){return"string"==typeof f&&y?void 0:W(f)}),[f]);return u((function(){return N(!1)}),[U]),u((function(){j||N(!0)}),[j]),r.createElement("div",{className:p("autocomplete",{"autocomplete--showSearchIcon":I},h)},j&&r.createElement(Y,{className:"autocomplete__component",options:Array.isArray(s)&&(x&&z?[{label:z,value:z}].concat(s):s)||[],defaultValue:U,disabled:b,multiple:y,filterOptions:function(e,t){var o=t.inputValue,n=void 0===o?"":o;return(Array.isArray(e)?e:[]).filter((function(e){var t=(e||{}).label;return!m||(void 0===t?"":t).toLowerCase().indexOf(n.toLowerCase())>-1}))},onChange:function(e,t){Array.isArray(t)?O(t.map((function(e){return v?e:B(e)}))):t&&O(v?t:B(t))},onInputChange:function(e,t){t&&"string"==typeof t&&(V(t),G(t))},getOptionLabel:function(e){return e&&e.label||""},getOptionDisabled:function(e){return e.disabled},renderInput:function(e){return S&&S(e)||K(e)},renderTags:function(e,t){return k&&k(e,t)||_(e,t)},popupIcon:null,noOptionsText:r.createElement(T,null),onFocus:L,onBlur:A}))};te.defaultProps={className:void 0,defaultValue:void 0,options:void 0,freeTyping:!1,loading:!1,disabled:!1,labelInValue:!0,searchIcon:!0,multiple:!1,placeholder:"Search...",filterable:!1,renderInput:void 0,renderTags:void 0,onChange:function(){},onSearch:function(){},onFocus:function(){},onBlur:function(){}},te.propTypes={className:s.string,defaultValue:s.any,options:s.arrayOf(s.any),freeTyping:s.bool,loading:s.bool,disabled:s.bool,labelInValue:s.bool,searchIcon:s.bool,multiple:s.bool,placeholder:s.string,filterable:s.bool,renderInput:s.func,renderTags:s.func,onChange:s.func,onSearch:s.func,onFocus:s.func,onBlur:s.func};export{te as default};
|
|
1
|
+
import{_ as e,a as n,b as o}from"./_rollupPluginBabelHelpers-b18bba19.js";import t,{useCallback as a,useState as r,useRef as l,useMemo as u,useEffect as i}from"react";import c from"prop-types";import{c as p}from"./index-b2745105.js";import{d as s}from"./debounce-c993109b.js";import{Autocomplete as d}from"@material-ui/lab";import{Chip as f,TextField as m,CircularProgress as b}from"@material-ui/core";import{Close as g,SearchOutlined as h}from"@material-ui/icons";import y from"./Empty.js";import{s as I}from"./style-inject.es-1f59c1d0.js";I(".autocomplete .MuiAutocomplete-inputRoot[class*='MuiOutlinedInput-root'] {\n padding: 0px 8px; }\n\n.autocomplete .MuiChip-deleteIcon {\n width: 16px;\n height: 16px; }\n\n.autocomplete__icon {\n font-size: 1.25rem;\n margin-right: 8px; }\n\n.autocomplete--showSearchIcon .MuiAutocomplete-inputRoot[class*='MuiOutlinedInput-root'] {\n display: flex;\n flex-wrap: nowrap;\n padding: 4px 8px;\n border: 1px solid #8c8c8c; }\n");var v=function(c){var I=c.options,v=c.defaultValue,A=c.renderAfterDefaultValueChange,V=c.filterable,x=c.loading,C=c.labelInValue,T=c.disabled,j=c.className,E=c.multiple,O=c.freeTyping,_=c.placeholder,w=c.searchIcon,F=c.renderInput,N=c.renderTags,S=c.onChange,B=c.onSearch,M=c.onFocus,P=c.onBlur,D=r(!0),R=n(D,2),L=R[0],z=R[1],H=r(),k=n(H,2),q=k[0],G=k[1],J=r(),K=n(J,2),Q=K[0],U=K[1],W=(({options:n,placeholder:o,loading:r,searchIcon:l,labelInValue:u})=>{const i=a((e=>"object"==typeof e?e.value:e),[]),c=a((e=>{const o=(Array.isArray(n)?n:[]).find((n=>i(n)===i(e)));return o?"object"==typeof o?o.label:o:"object"==typeof e?e.label:e}),[n]),p=a((e=>{if(Array.isArray(n)){if(Array.isArray(e))return e.map((e=>"object"==typeof e&&n.find((({value:n})=>e.value===n))||e));const o=n.find((({value:n})=>e===n));return u?e:o||{label:e,value:e}}return e}),[n,u]),s=a(((n,o)=>n.map(((n,a)=>t.createElement(f,e({label:c(n),deleteIcon:t.createElement(g,null)},o({index:a})))))),[n]),d=a((n=>t.createElement(m,e({},n,{variant:"outlined",placeholder:o,InputProps:{...n.InputProps,endAdornment:t.createElement(t.Fragment,null,r&&t.createElement(b,{className:"autocomplete__icon",color:"inherit",size:20}),l&&t.createElement(h,{className:"autocomplete__icon"}),n.InputProps.endAdornment)}}))),[r,l]);return{getValue:i,getValueFromOptions:p,defaultTag:s,defaultRenderInput:d}})(o({},{options:I,placeholder:_,loading:x,searchIcon:w,labelInValue:C})),X=W.getValue,Y=W.getValueFromOptions,Z=W.defaultTag,$=W.defaultRenderInput,ee=l(s((function(e){return B(e)}),500)).current,ne=u((function(){return"string"==typeof v&&E?{label:q,value:q}:Y(v)}),[v]);return i((function(){A&&z(!1)}),[ne]),i((function(){L||z(!0)}),[L]),i((function(){Q&&(G(Q),ee(Q))}),[Q]),t.createElement("div",{className:p("autocomplete",{"autocomplete--showSearchIcon":w},j)},L&&t.createElement(d,{className:"autocomplete__component",options:Array.isArray(I)&&(O&&q?[{label:q,value:q}].concat(I):I)||[],defaultValue:ne,disabled:T,multiple:E,filterOptions:function(e,n){var o=n.inputValue,t=void 0===o?"":o;return(Array.isArray(e)?e:[]).filter((function(e){var n=(e||{}).label;return!V||(void 0===n?"":n).toLowerCase().indexOf(t.toLowerCase())>-1}))},onChange:function(e,n){Array.isArray(n)?S(n.map((function(e){return C?e:X(e)}))):n&&S(C?n:X(n))},onInputChange:function(e,n,o){n&&"string"==typeof n&&"input"===o&&U(n)},getOptionLabel:function(e){return e&&e.label||""},getOptionDisabled:function(e){return e.disabled},renderInput:function(e){return F&&F(e)||$(e)},renderTags:function(e,n){return N&&N(e,n)||Z(e,n)},popupIcon:null,noOptionsText:t.createElement(y,null),onFocus:M,onBlur:P}))};v.defaultProps={className:void 0,defaultValue:void 0,renderAfterDefaultValueChange:!1,options:void 0,freeTyping:!1,loading:!1,disabled:!1,labelInValue:!0,searchIcon:!0,multiple:!1,placeholder:"Search...",filterable:!1,renderInput:void 0,renderTags:void 0,onChange:function(){},onSearch:function(){},onFocus:function(){},onBlur:function(){}},v.propTypes={className:c.string,defaultValue:c.any,renderAfterDefaultValueChange:c.bool,options:c.arrayOf(c.any),freeTyping:c.bool,loading:c.bool,disabled:c.bool,labelInValue:c.bool,searchIcon:c.bool,multiple:c.bool,placeholder:c.string,filterable:c.bool,renderInput:c.func,renderTags:c.func,onChange:c.func,onSearch:c.func,onFocus:c.func,onBlur:c.func};export{v as default};
|
package/lib/components/Avatar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from"react";import{c as a}from"./index-b2745105.js";import s from"prop-types";import{Avatar as e}from"@material-ui/core";import{s as t}from"./style-inject.es-1f59c1d0.js";t("");var o=function(s){var t=s.className,o=s.shape,c=s.src,i=s.onError;return r.createElement(e,{className:a("avatar",t),variant:"circle"===o?"circular":o,src:c},r.createElement("img",{src:c,onError:function(){return i()},alt:"test",style:{display:"none"}}))};o.defaultProps={className:void 0,shape:"circular",src:void 0,onError:void 0},o.propTypes={className:s.string,shape:s.string,src:s.string,onError:s.func};export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./_rollupPluginBabelHelpers-6c1cf22a.js";import n,{useState as o,useRef as e,useEffect as r}from"react";import i from"prop-types";import{c as a}from"./index-d90e1489.js";import{d as s}from"./debounce-7d215a19.js";import{u as c,c as p}from"./_commonjsHelpers-ae1b5db5.js";import{i as l,a as m,r as d,B as u}from"./createSvgIcon-12e6925b.js";import{s as b}from"./style-inject.es-1f59c1d0.js";import{F as f}from"./Fade-92cf2aad.js";import"./isObjectLike-75179648.js";import"./withStyles-75fe409f.js";import"react-is";import"./capitalize-4566b0fe.js";import"./createChainedFunction-8d6683d4.js";import"./createSvgIcon-231b6223.js";import"./debounce-65582d84.js";import"./isMuiElement-64ad493a.js";import"./ownerWindow-ba2c31bc.js";import"./useForkRef-4ff8cc89.js";import"./useControlled-b5d6fb94.js";import"./useEventCallback-8817ed1c.js";import"./unstable_useId-45c5b1e4.js";import"./useIsFocusVisible-217260c3.js";import"react-dom";import"./useTheme-ea7e9223.js";import"./utils-bb216124.js";import"./TransitionGroupContext-2ba64e99.js";var h=c(p((function(t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var e=l(n),r=(0,m(d).default)(e.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z"}),"ExpandLessSharp");o.default=r})));b(".backTop {\n right: 50px;\n bottom: 50px;\n position: fixed;\n z-index: 10;\n opacity: 0;\n cursor: pointer; }\n .backTop__default {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 60px;\n height: 60px;\n border-radius: 45px;\n opacity: 0.8;\n transition: opacity 0.3s ease-in-out; }\n .backTop__default:hover {\n opacity: 1; }\n .backTop__default .MuiSvgIcon-root {\n margin-bottom: -3px; }\n .backTop:hover {\n opacity: 0.7; }\n\n.custom-backTop {\n width: 80px;\n height: 80px; }\n\n.back-top-button {\n flex-wrap: wrap;\n max-width: 80px;\n max-height: 80px;\n padding: 15px;\n transition: all 0.3s ease;\n margin-bottom: 40px; }\n .back-top-button:hover .back-top-bg {\n transform: scale(1.1, 1.1); }\n\n.back-top-bg {\n transition: all 0.3s ease;\n position: absolute;\n width: 72px;\n height: 72px;\n transform: scale(1, 1);\n border-radius: 80px;\n background-color: rgba(87, 61, 26, 0.3);\n margin: auto;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n transform-origin: 50% 50%; }\n\n.back-top-icon {\n width: 0px;\n height: 8px;\n border-style: solid;\n border-width: 0 12px 15px 12px;\n border-color: transparent transparent #462a04 transparent;\n margin: auto;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0; }\n\n.back-top-txt {\n width: 46px;\n font-size: 16px;\n font-weight: bold;\n text-align: center;\n color: #5b3c11;\n margin: auto;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0; }\n");var x=function(i){var c=i.className,p=i.visibilityHeight,l=i.onClick,m=i.children,d=o(!1),b=t(d,2),x=b[0],g=b[1],j=e(s((function(){var t=window.scrollY;g(t>=p)}),100)).current;return r((function(){return window.addEventListener("scroll",(function(){return j()})),function(){window.removeEventListener("scroll",(function(){return j()}))}}),[]),n.createElement(f,{in:x,timeout:500,unmountOnExit:!0},n.createElement("div",{className:a("backTop",c),onClick:function(){window.scrollTo?window.scrollTo({top:0,left:0,behavior:"smooth"}):window.scrollTop=0,l()}},m?n.createElement("div",null,m):n.createElement(u,{className:"backTop__default",color:"text.primary",bgcolor:"primary.main",borderColor:"text.secondary"},n.createElement(h,null),"Top")))};x.defaultProps={className:void 0,visibilityHeight:300,onClick:function(){},children:void 0},x.propTypes={className:i.string,visibilityHeight:i.number,onClick:i.func,children:i.objectOf(i.any)};export{x as default};
|
|
1
|
+
import{a as e}from"./_rollupPluginBabelHelpers-b18bba19.js";import*as t from"react";import n,{useState as r,useRef as o,useEffect as i}from"react";import a from"prop-types";import{b as c,u,c as f}from"./index-b2745105.js";import{d as l}from"./debounce-c993109b.js";import{Fade as s,Box as d}from"@material-ui/core";import{withStyles as p}from"@material-ui/styles";import*as m from"react-dom";import{s as h}from"./style-inject.es-1f59c1d0.js";var v=c((function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0}));u(v);var g=c((function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}));u(g);var b=c((function(e){var t=g.default;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}e.exports=function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!==t(e)&&"function"!=typeof e)return{default:e};var o=n(r);if(o&&o.has(e))return o.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var u=a?Object.getOwnPropertyDescriptor(e,c):null;u&&(u.get||u.set)?Object.defineProperty(i,c,u):i[c]=e[c]}return i.default=e,o&&o.set(e,i),i},e.exports.default=e.exports,e.exports.__esModule=!0}));function y(){return(y=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}).apply(this,arguments)}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e){return e&&"object"===x(e)&&e.constructor===Object}function O(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?y({},e):e;return w(e)&&w(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(w(t[o])&&o in e?r[o]=O(e[o],t[o],n):r[o]=t[o])})),r}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function k(e){if("string"!=typeof e)throw new Error(S(7));return e.charAt(0).toUpperCase()+e.slice(1)}function M(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function E(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=E(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function _(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=E(e))&&(r&&(r+=" "),r+=t);return r}u(b);var j=["xs","sm","md","lg","xl"];function T(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,c=M(e,["values","unit","step"]);function u(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function f(e,t){var r=j.indexOf(t);return r===j.length-1?u(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[j[r+1]]?n[j[r+1]]:t)-a/100).concat(o,")")}return y({keys:j,values:n,up:u,down:function(e){var t=j.indexOf(e)+1,r=n[j[t]];return t===j.length?u("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},c)}function z(e,t,n){var r;return y({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),y({paddingLeft:t(2),paddingRight:t(2)},n,A({},e.up("sm"),y({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},A(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),A(r,e.up("sm"),{minHeight:64}),r)},n)}var R={black:"#000",white:"#fff"},P={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},I={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},L={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},C={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},N={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},W={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},F={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function H(e){if(e.type)return e;if("#"===e.charAt(0))return H(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(S(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function D(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function V(e){var t="hsl"===(e=H(e)).type?H(function(e){var t=(e=H(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),D({type:c,values:u})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}var U={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:R.white,default:P[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},K={text:{primary:R.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:P[800],default:"#303030"},action:{active:R.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Y(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=H(e),t=B(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return D(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=H(e),t=B(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return D(e)}(e.main,i)))}function q(e){var t=e.primary,n=void 0===t?{light:I[300],main:I[500],dark:I[700]}:t,r=e.secondary,o=void 0===r?{light:L.A200,main:L.A400,dark:L.A700}:r,i=e.error,a=void 0===i?{light:C[300],main:C[500],dark:C[700]}:i,c=e.warning,u=void 0===c?{light:N[300],main:N[500],dark:N[700]}:c,f=e.info,l=void 0===f?{light:W[300],main:W[500],dark:W[700]}:f,s=e.success,d=void 0===s?{light:F[300],main:F[500],dark:F[700]}:s,p=e.type,m=void 0===p?"light":p,h=e.contrastThreshold,v=void 0===h?3:h,g=e.tonalOffset,b=void 0===g?.2:g,x=M(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function w(e){return function(e,t){var n=V(e),r=V(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,K.text.primary)>=v?K.text.primary:U.text.primary}var A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=y({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(S(4,t));if("string"!=typeof e.main)throw new Error(S(5,JSON.stringify(e.main)));return Y(e,"light",n,b),Y(e,"dark",r,b),e.contrastText||(e.contrastText=w(e.main)),e},k={dark:K,light:U};return O(y({common:R,type:m,primary:A(n),secondary:A(o,"A400","A200","A700"),error:A(a),warning:A(u),info:A(l),success:A(d),grey:P,contrastThreshold:v,getContrastText:w,augmentColor:A,tonalOffset:b},k[m]),x)}function J(e){return Math.round(1e5*e)/1e5}function X(e){return J(e)}var G={textTransform:"uppercase"};function Q(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?'"Roboto", "Helvetica", "Arial", sans-serif':r,i=n.fontSize,a=void 0===i?14:i,c=n.fontWeightLight,u=void 0===c?300:c,f=n.fontWeightRegular,l=void 0===f?400:f,s=n.fontWeightMedium,d=void 0===s?500:s,p=n.fontWeightBold,m=void 0===p?700:p,h=n.htmlFontSize,v=void 0===h?16:h,g=n.allVariants,b=n.pxToRem,x=M(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),w=a/14,A=b||function(e){return"".concat(e/v*w,"rem")},S=function(e,t,n,r,i){return y({fontFamily:o,fontWeight:e,fontSize:A(t),lineHeight:n},'"Roboto", "Helvetica", "Arial", sans-serif'===o?{letterSpacing:"".concat(J(r/t),"em")}:{},i,g)},k={h1:S(u,96,1.167,-1.5),h2:S(u,60,1.2,-.5),h3:S(l,48,1.167,0),h4:S(l,34,1.235,.25),h5:S(l,24,1.334,0),h6:S(d,20,1.6,.15),subtitle1:S(l,16,1.75,.15),subtitle2:S(d,14,1.57,.1),body1:S(l,16,1.5,.15),body2:S(l,14,1.43,.15),button:S(d,14,1.75,.4,G),caption:S(l,12,1.66,.4),overline:S(l,12,2.66,1,G)};return O(y({htmlFontSize:v,pxToRem:A,round:X,fontFamily:o,fontSize:a,fontWeightLight:u,fontWeightRegular:l,fontWeightMedium:d,fontWeightBold:m},k),x,{clone:!1})}function Z(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var $=["none",Z(0,2,1,-1,0,1,1,0,0,1,3,0),Z(0,3,1,-2,0,2,2,0,0,1,5,0),Z(0,3,3,-2,0,3,4,0,0,1,8,0),Z(0,2,4,-1,0,4,5,0,0,1,10,0),Z(0,3,5,-1,0,5,8,0,0,1,14,0),Z(0,3,5,-1,0,6,10,0,0,1,18,0),Z(0,4,5,-2,0,7,10,1,0,2,16,1),Z(0,5,5,-3,0,8,10,1,0,3,14,2),Z(0,5,6,-3,0,9,12,1,0,3,16,2),Z(0,6,6,-3,0,10,14,1,0,4,18,3),Z(0,6,7,-4,0,11,15,1,0,4,20,3),Z(0,7,8,-4,0,12,17,2,0,5,22,4),Z(0,7,8,-4,0,13,19,2,0,5,24,4),Z(0,7,9,-4,0,14,21,2,0,5,26,4),Z(0,8,9,-5,0,15,22,2,0,6,28,5),Z(0,8,10,-5,0,16,24,2,0,6,30,5),Z(0,8,11,-5,0,17,26,2,0,6,32,5),Z(0,9,11,-5,0,18,28,2,0,7,34,6),Z(0,9,12,-6,0,19,29,2,0,7,36,6),Z(0,10,13,-6,0,20,31,3,0,8,38,7),Z(0,10,13,-6,0,21,33,3,0,8,40,7),Z(0,10,14,-6,0,22,35,3,0,8,42,7),Z(0,11,14,-7,0,23,36,3,0,9,44,8),Z(0,11,15,-7,0,24,38,3,0,9,46,8)],ee={borderRadius:4};function te(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=te({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var re={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},oe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ie(e){return"".concat(Math.round(e),"ms")}var ae={easing:re,duration:oe,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?oe.standard:n,o=t.easing,i=void 0===o?re.easeInOut:o,a=t.delay,c=void 0===a?0:a;return M(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:ie(r)," ").concat(i," ").concat("string"==typeof c?c:ie(c))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},ce={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};var ue=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,c=e.spacing,u=e.typography,f=void 0===u?{}:u,l=M(e,["breakpoints","mixins","palette","spacing","typography"]),s=q(a),d=T(n),p=ne(c),m=O({breakpoints:d,direction:"ltr",mixins:z(d,p,o),overrides:{},palette:s,props:{},shadows:$,typography:Q(s,f),spacing:p,shape:ee,transitions:ae,zIndex:ce},l),h=arguments.length,v=new Array(h>1?h-1:0),g=1;g<h;g++)v[g-1]=arguments[g];return m=v.reduce((function(e,t){return O(e,t)}),m)}();var fe=t.forwardRef((function(e,n){var r=e.children,o=e.classes,i=e.className,a=e.color,c=void 0===a?"inherit":a,u=e.component,f=void 0===u?"svg":u,l=e.fontSize,s=void 0===l?"medium":l,d=e.htmlColor,p=e.titleAccess,m=e.viewBox,h=void 0===m?"0 0 24 24":m,v=M(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return t.createElement(f,y({className:_(o.root,i,"inherit"!==c&&o["color".concat(k(c))],"default"!==s&&"medium"!==s&&o["fontSize".concat(k(s))]),focusable:"false",viewBox:h,color:d,"aria-hidden":!p||void 0,role:p?"img":void 0,ref:n},v),r,p?t.createElement("title",null,p):null)}));fe.muiName="SvgIcon";var le=p((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),y({defaultTheme:ue},{name:"MuiSvgIcon"}))(fe);function se(e){return e&&e.ownerDocument||document}function de(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var pe="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;var me=!0,he=!1,ve=null,ge={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function be(e){e.metaKey||e.altKey||e.ctrlKey||(me=!0)}function ye(){me=!1}function xe(){"hidden"===this.visibilityState&&he&&(me=!0)}function we(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return me||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!ge[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function Oe(){he=!0,window.clearTimeout(ve),ve=window.setTimeout((function(){he=!1}),100)}var Ae=Object.freeze({__proto__:null,capitalize:k,createChainedFunction:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))},createSvgIcon:function(e,t){var r=function(t,r){return n.createElement(le,y({ref:r},t),e)};return r.muiName=le.muiName,n.memo(n.forwardRef(r))},debounce:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,c=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(c,n)}return r.clear=function(){clearTimeout(t)},r},deprecatedPropType:function(e,t){return function(){return null}},isMuiElement:function(e,n){return t.isValidElement(e)&&-1!==n.indexOf(e.type.muiName)},ownerDocument:se,ownerWindow:function(e){return se(e).defaultView||window},requirePropFactory:function(e){return function(){return null}},setRef:de,unsupportedProp:function(e,t,n,r,o){return null},useControlled:function(e){var n=e.controlled,r=e.default;e.name,e.state;var o=t.useRef(void 0!==n).current,i=t.useState(r),a=i[0],c=i[1];return[o?n:a,t.useCallback((function(e){o||c(e)}),[])]},useEventCallback:function(e){var n=t.useRef(e);return pe((function(){n.current=e})),t.useCallback((function(){return n.current.apply(void 0,arguments)}),[])},useForkRef:function(e,n){return t.useMemo((function(){return null==e&&null==n?null:function(t){de(e,t),de(n,t)}}),[e,n])},unstable_useId:function(e){var n=t.useState(e),r=n[0],o=n[1],i=e||r;return t.useEffect((function(){null==r&&o("mui-".concat(Math.round(1e5*Math.random())))}),[r]),i},useIsFocusVisible:function(){return{isFocusVisible:we,onBlurVisible:Oe,ref:t.useCallback((function(e){var t,n=m.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",be,!0),t.addEventListener("mousedown",ye,!0),t.addEventListener("pointerdown",ye,!0),t.addEventListener("touchstart",ye,!0),t.addEventListener("visibilitychange",xe,!0))}),[])}}}),Se=c((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return Ae.createSvgIcon}})}));u(Se);var ke=Se,Me=u(c((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=b(n),o=(0,v(ke).default)(r.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z"}),"ExpandLessSharp");t.default=o}))),Ee="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function _e(e){var n=e.children,r=e.defer,o=void 0!==r&&r,i=e.fallback,a=void 0===i?null:i,c=t.useState(!1),u=c[0],f=c[1];return Ee((function(){o||f(!0)}),[o]),t.useEffect((function(){o&&f(!0)}),[o]),t.createElement(t.Fragment,null,u?n:a)}h(".backTop {\n right: 50px;\n bottom: 50px;\n position: fixed;\n z-index: 10;\n opacity: 0;\n cursor: pointer; }\n .backTop__default {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 70px;\n height: 70px;\n border-radius: 45px;\n opacity: 0.8;\n transition: opacity 0.3s ease-in-out; }\n .backTop__default:hover {\n opacity: 1; }\n .backTop__default .MuiSvgIcon-root {\n margin-bottom: -3px; }\n .backTop:hover {\n opacity: 0.7; }\n");var je=function(t){var a=t.className,c=t.visibilityHeight,u=t.onClick,p=t.children,m=r(!1),h=e(m,2),v=h[0],g=h[1],b=o(l((function(){var e=window.scrollY;g(e>=c)}),100)).current;return i((function(){return window.addEventListener("scroll",(function(){return b()})),function(){window.removeEventListener("scroll",(function(){return b()}))}}),[]),n.createElement(s,{in:v,timeout:500,unmountOnExit:!0},n.createElement("div",{className:f("backTop",a),onClick:function(){window.scrollTo?window.scrollTo({top:0,left:0,behavior:"smooth"}):window.scrollTop=0,u()}},p?n.createElement("div",null,p):n.createElement(_e,null,n.createElement(d,{className:"backTop__default",color:"text.primary",bgcolor:"primary.main",borderColor:"text.secondary"},n.createElement(Me,null),"Top"))))};je.defaultProps={className:void 0,visibilityHeight:300,onClick:function(){},children:void 0},je.propTypes={className:a.string,visibilityHeight:a.number,onClick:a.func,children:a.objectOf(a.any)};export{je as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import{c as t}from"./index-b2745105.js";import r from"prop-types";import{NavLink as a}from"react-router-dom";import{Typography as n,Breadcrumbs as o}from"@material-ui/core";import{s as c}from"./style-inject.es-1f59c1d0.js";c(".breadcrumbItem {\n display: flex;\n opacity: 0.8;\n transition: opacity 0.1s ease-in-out; }\n .breadcrumbItem:hover {\n opacity: 1; }\n .breadcrumbItem--last {\n opacity: 1;\n font-weight: bold !important; }\n .breadcrumbItem__icon {\n display: flex;\n align-items: center;\n margin-right: 4px; }\n .breadcrumbItem__icon svg {\n font-size: 18px; }\n");const i=({className:r,icon:a,text:o,lastItem:c,onClick:i})=>e.createElement(n,{color:"textPrimary",className:r,onClick:i},e.createElement("div",{className:t("breadcrumbItem",{"breadcrumbItem--last":c})},a&&e.createElement("span",{className:"breadcrumbItem__icon"},a),e.createElement("span",{className:"breadcrumbItem__text"},o)));i.defaultProps={className:void 0,icon:void 0,text:void 0,lastItem:void 0,onClick:()=>{}},i.propTypes={className:r.string,icon:r.node,text:r.string,lastItem:r.bool,onClick:r.func};c(".breadcrumbs__link {\n cursor: pointer;\n text-decoration: none !important; }\n");var s=function(r){var n=r.className,c=r.links,s=r.separator;return e.createElement(o,{className:t("breadcrumbs",n),"aria-label":"breadcrumb",separator:s&&s.length>0?s:void 0},Array.isArray(c)&&c.length>0&&c.map((function(t,r){var n=t.icon,o=t.text,s=t.href,m=t.onClick;return r===c.length-1?e.createElement(i,{key:r.toString(),lastItem:!0,icon:n,text:o,onClick:m}):0===r?e.createElement(a,{className:"breadcrumbs__link",key:r.toString(),to:s||"/",onClick:m},e.createElement(i,{icon:n,text:o})):s?e.createElement(a,{className:"breadcrumbs__link",key:r.toString(),to:s,onClick:m},e.createElement(i,{icon:n,text:o})):e.createElement(i,{key:r.toString(),lastItem:!0,icon:n,text:o,onClick:m})})))};s.defaultProps={className:void 0,links:void 0,separator:void 0},s.propTypes={className:r.string,links:r.arrayOf(r.any),separator:r.string};export{s as default};
|
package/lib/components/Button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import o from"prop-types";import{c as n}from"./index-b2745105.js";import{Button as t,CircularProgress as i}from"@material-ui/core";import{s as a}from"./style-inject.es-1f59c1d0.js";a(".button {\n border: 1px solid #ffffff99;\n border-radius: 45px;\n padding: 8px 16px;\n background: #007bff;\n color: white;\n cursor: pointer; }\n .button:hover {\n opacity: 0.9; }\n");var r=function(o){var a=o.style,r=o.className,d=o.tabIndex,l=o.alt,s=o.text,c=o.size,f=o.variant,p=o.type,m=o.color,b=o.loading,u=o.disabled,v=o.icon,y=o.endIcon,x=o.children,g=o.onClick;return e.createElement(t,{style:a,className:n("button",r),tabIndex:d,alt:l,size:c,variant:f,color:p||m,disabled:b||u,onClick:g,startIcon:v,endIcon:b?e.createElement(i,{size:16}):y},s,x)};r.defaultProps={style:void 0,className:void 0,tabIndex:void 0,alt:void 0,text:void 0,loading:!1,disabled:!1,variant:void 0,size:"small",color:"primary",type:void 0,children:void 0,icon:void 0,endIcon:void 0,onClick:function(){}},r.propTypes={style:o.objectOf(o.any),className:o.string,tabIndex:o.number,alt:o.string,text:o.string,loading:o.bool,disabled:o.bool,variant:o.oneOf(["contained","outlined","text"]),size:o.oneOf(["small","medium","large"]),color:o.oneOf(["default","inherit","primary","secondary"]),type:o.oneOf(["default","inherit","primary","secondary"]),children:o.node,icon:o.node,endIcon:o.node,onClick:o.func};export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,b as t,_ as n}from"./_rollupPluginBabelHelpers-6c1cf22a.js";import r,{forwardRef as i,useRef as o,useImperativeHandle as a}from"react";import{c as s}from"./index-d90e1489.js";import l from"prop-types";import{c,u,a as d}from"./_commonjsHelpers-ae1b5db5.js";import{s as f}from"./style-inject.es-1f59c1d0.js";var p=c((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};t.default=n}));u(p);var h=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,b=/^0o[0-7]+$/i,g=parseInt,m="object"==typeof d&&d&&d.Object===Object&&d,S="object"==typeof self&&self&&self.Object===Object&&self,w=m||S||Function("return this")(),k=Object.prototype.toString,O=Math.max,x=Math.min,T=function(){return w.Date.now()};function _(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function P(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==k.call(e)}(e))return NaN;if(_(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=_(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=y.test(e);return n||b.test(e)?g(e.slice(2),n?2:8):v.test(e)?NaN:+e}var j=function(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function h(e){return c=e,s=setTimeout(y,t),u?p(e):a}function v(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function y(){var e=T();if(v(e))return b(e);s=setTimeout(y,function(e){var n=t-(e-l);return d?x(n,o-(e-c)):n}(e))}function b(e){return s=void 0,f&&r?p(e):(r=i=void 0,a)}function g(){var e=T(),n=v(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return h(l);if(d)return s=setTimeout(y,t),p(l)}return void 0===s&&(s=setTimeout(y,t)),a}return t=P(t)||0,_(n)&&(u=!!n.leading,o=(d="maxWait"in n)?O(P(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),g.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},g.flush=function(){return void 0===s?a:b(T())},g},E=c((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.clamp=l,t.canUseDOM=t.slidesOnLeft=t.slidesOnRight=t.siblingDirection=t.getTotalSlides=t.getPostClones=t.getPreClones=t.getTrackLeft=t.getTrackAnimateCSS=t.getTrackCSS=t.checkSpecKeys=t.getSlideCount=t.checkNavigable=t.getNavigableIndexes=t.swipeEnd=t.swipeMove=t.swipeStart=t.keyHandler=t.changeSlide=t.slideHandler=t.initializedState=t.extractObject=t.canGoNext=t.getSwipeDirection=t.getHeight=t.getWidth=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.lazyStartIndex=t.getRequiredLazySlides=t.getOnDemandLazySlides=t.safePreventDefault=void 0;var n,i=(n=r)&&n.__esModule?n:{default:n};function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t,n){return Math.max(t,Math.min(e,n))}var c=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()};t.safePreventDefault=c;var u=function(e){for(var t=[],n=d(e),r=f(e),i=n;i<r;i++)e.lazyLoadedList.indexOf(i)<0&&t.push(i);return t};t.getOnDemandLazySlides=u;t.getRequiredLazySlides=function(e){for(var t=[],n=d(e),r=f(e),i=n;i<r;i++)t.push(i);return t};var d=function(e){return e.currentSlide-p(e)};t.lazyStartIndex=d;var f=function(e){return e.currentSlide+h(e)};t.lazyEndIndex=f;var p=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0};t.lazySlidesOnLeft=p;var h=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow};t.lazySlidesOnRight=h;var v=function(e){return e&&e.offsetWidth||0};t.getWidth=v;var y=function(e){return e&&e.offsetHeight||0};t.getHeight=y;var b=function(e){var t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(i=Math.round(180*r/Math.PI))<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315?"left":i>=135&&i<=225?"right":!0===o?i>=35&&i<=135?"up":"down":"vertical"};t.getSwipeDirection=b;var g=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t};t.canGoNext=g;t.extractObject=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n};t.initializedState=function(e){var t,n=i.default.Children.count(e.children),r=e.listRef,o=Math.ceil(v(r)),s=e.trackRef&&e.trackRef.node,l=Math.ceil(v(s));if(e.vertical)t=o;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=o/100),t=Math.ceil((o-c)/e.slidesToShow)}var d=r&&y(r.querySelector('[data-index="0"]')),f=d*e.slidesToShow,p=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(p=n-1-e.initialSlide);var h=e.lazyLoadedList||[],b=u(a(a({},e),{},{currentSlide:p,lazyLoadedList:h})),g={slideCount:n,slideWidth:t,listWidth:o,trackWidth:l,currentSlide:p,slideHeight:d,listHeight:f,lazyLoadedList:h=h.concat(b)};return null===e.autoplaying&&e.autoplay&&(g.autoplaying="playing"),g};t.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,i=e.infinite,o=e.index,s=e.slideCount,c=e.lazyLoad,d=e.currentSlide,f=e.centerMode,p=e.slidesToScroll,h=e.slidesToShow,v=e.useCSS,y=e.lazyLoadedList;if(t&&n)return{};var b,m,S,w=o,k={},_={},P=i?o:l(o,0,s-1);if(r){if(!i&&(o<0||o>=s))return{};o<0?w=o+s:o>=s&&(w=o-s),c&&y.indexOf(w)<0&&(y=y.concat(w)),k={animating:!0,currentSlide:w,lazyLoadedList:y,targetSlide:w},_={animating:!1,targetSlide:w}}else b=w,w<0?(b=w+s,i?s%p!=0&&(b=s-s%p):b=0):!g(e)&&w>d?w=b=d:f&&w>=s?(w=i?s:s-1,b=i?0:s-1):w>=s&&(b=w-s,i?s%p!=0&&(b=0):b=s-h),!i&&w+h>=s&&(b=s-h),m=T(a(a({},e),{},{slideIndex:w})),S=T(a(a({},e),{},{slideIndex:b})),i||(m===S&&(w=b),m=S),c&&(y=y.concat(u(a(a({},e),{},{currentSlide:w})))),v?(k={animating:!0,currentSlide:b,trackStyle:x(a(a({},e),{},{left:m})),lazyLoadedList:y,targetSlide:P},_={animating:!1,currentSlide:b,trackStyle:O(a(a({},e),{},{left:S})),swipeLeft:null,targetSlide:P}):k={currentSlide:b,trackStyle:O(a(a({},e),{},{left:S})),lazyLoadedList:y,targetSlide:P};return{state:k,nextState:_}};t.changeSlide=function(e,t){var n,r,i,o,s=e.slidesToScroll,l=e.slidesToShow,c=e.slideCount,u=e.currentSlide,d=e.targetSlide,f=e.lazyLoad,p=e.infinite;if(n=c%s!=0?0:(c-u)%s,"previous"===t.message)o=u-(i=0===n?s:l-n),f&&!p&&(o=-1===(r=u-i)?c-1:r),p||(o=d-s);else if("next"===t.message)o=u+(i=0===n?s:n),f&&!p&&(o=(u+s)%c+n),p||(o=d+s);else if("dots"===t.message)o=t.index*t.slidesToScroll;else if("children"===t.message){if(o=t.index,p){var h=E(a(a({},e),{},{targetSlide:o}));o>t.currentSlide&&"left"===h?o-=c:o<t.currentSlide&&"right"===h&&(o+=c)}}else"index"===t.message&&(o=Number(t.index));return o};t.keyHandler=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""};t.swipeStart=function(e,t,n){return"IMG"===e.target.tagName&&c(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}};t.swipeMove=function(e,t){var n=t.scrolling,r=t.animating,i=t.vertical,o=t.swipeToSlide,s=t.verticalSwiping,l=t.rtl,u=t.currentSlide,d=t.edgeFriction,f=t.edgeDragged,p=t.onEdge,h=t.swiped,v=t.swiping,y=t.slideCount,m=t.slidesToScroll,S=t.infinite,w=t.touchObject,k=t.swipeEvent,x=t.listHeight,_=t.listWidth;if(!n){if(r)return c(e);i&&o&&s&&c(e);var P,j={},E=T(t);w.curX=e.touches?e.touches[0].pageX:e.clientX,w.curY=e.touches?e.touches[0].pageY:e.clientY,w.swipeLength=Math.round(Math.sqrt(Math.pow(w.curX-w.startX,2)));var L=Math.round(Math.sqrt(Math.pow(w.curY-w.startY,2)));if(!s&&!v&&L>10)return{scrolling:!0};s&&(w.swipeLength=L);var M=(l?-1:1)*(w.curX>w.startX?1:-1);s&&(M=w.curY>w.startY?1:-1);var C=Math.ceil(y/m),z=b(t.touchObject,s),R=w.swipeLength;return S||(0===u&&("right"===z||"down"===z)||u+1>=C&&("left"===z||"up"===z)||!g(t)&&("left"===z||"up"===z))&&(R=w.swipeLength*d,!1===f&&p&&(p(z),j.edgeDragged=!0)),!h&&k&&(k(z),j.swiped=!0),P=i?E+R*(x/_)*M:l?E-R*M:E+R*M,s&&(P=E+R*M),j=a(a({},j),{},{touchObject:w,swipeLeft:P,trackStyle:O(a(a({},t),{},{left:P}))}),Math.abs(w.curX-w.startX)<.8*Math.abs(w.curY-w.startY)?j:(w.swipeLength>10&&(j.swiping=!0,c(e)),j)}};t.swipeEnd=function(e,t){var n=t.dragging,r=t.swipe,i=t.touchObject,o=t.listWidth,s=t.touchThreshold,l=t.verticalSwiping,u=t.listHeight,d=t.swipeToSlide,f=t.scrolling,p=t.onSwipe,h=t.targetSlide,v=t.currentSlide,y=t.infinite;if(!n)return r&&c(e),{};var g=l?u/s:o/s,m=b(i,l),k={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(f)return k;if(!i.swipeLength)return k;if(i.swipeLength>g){var O,_;c(e),p&&p(m);var P=y?v:h;switch(m){case"left":case"up":_=P+w(t),O=d?S(t,_):_,k.currentDirection=0;break;case"right":case"down":_=P-w(t),O=d?S(t,_):_,k.currentDirection=1;break;default:O=P}k.triggerSlideHandler=O}else{var j=T(t);k.trackStyle=x(a(a({},t),{},{left:j}))}return k};var m=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,i=[];n<t;)i.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return i};t.getNavigableIndexes=m;var S=function(e,t){var n=m(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var i in n){if(t<n[i]){t=r;break}r=n[i]}return t};t.checkNavigable=S;var w=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef,i=r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[];if(Array.from(i).every((function(r){if(e.vertical){if(r.offsetTop+y(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+v(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var o=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-o)||1}return e.slidesToScroll};t.getSlideCount=w;var k=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)};t.checkSpecKeys=k;var O=function(e){var t,n;k(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=j(e)*e.slideWidth;var i={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";i=a(a({},i),{},{WebkitTransform:o,transform:s,msTransform:l})}else e.vertical?i.top=e.left:i.left=e.left;return e.fade&&(i={opacity:1}),t&&(i.width=t),n&&(i.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?i.marginTop=e.left+"px":i.marginLeft=e.left+"px"),i};t.getTrackCSS=O;var x=function(e){k(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=O(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t};t.getTrackAnimateCSS=x;var T=function(e){if(e.unslick)return 0;k(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,i=e.trackRef,o=e.infinite,a=e.centerMode,s=e.slideCount,l=e.slidesToShow,c=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,f=e.variableWidth,p=e.slideHeight,h=e.fade,v=e.vertical;if(h||1===e.slideCount)return 0;var y=0;if(o?(y=-_(e),s%c!=0&&r+c>s&&(y=-(r>s?l-(r-s):s%c)),a&&(y+=parseInt(l/2))):(s%c!=0&&r+c>s&&(y=l-s%c),a&&(y=parseInt(l/2))),t=v?r*p*-1+y*p:r*u*-1+y*u,!0===f){var b,g=i&&i.node;if(b=r+_(e),t=(n=g&&g.childNodes[b])?-1*n.offsetLeft:0,!0===a){b=o?r+_(e):r,n=g&&g.children[b],t=0;for(var m=0;m<b;m++)t-=g&&g.children[m]&&g.children[m].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t};t.getTrackLeft=T;var _=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)};t.getPreClones=_;var P=function(e){return e.unslick||!e.infinite?0:e.slideCount};t.getPostClones=P;var j=function(e){return 1===e.slideCount?1:_(e)+e.slideCount+P(e)};t.getTotalSlides=j;var E=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+L(e)?"left":"right":e.targetSlide<e.currentSlide-M(e)?"right":"left"};t.siblingDirection=E;var L=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(i)>0&&(o+=1),r&&t%2==0&&(o+=1),o}return r?0:t-1};t.slidesOnRight=L;var M=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(i)>0&&(o+=1),r||t%2!=0||(o+=1),o}return r?t-1:0};t.slidesOnLeft=M;t.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}}));u(E),E.clamp,E.canUseDOM,E.slidesOnLeft,E.slidesOnRight,E.siblingDirection,E.getTotalSlides,E.getPostClones,E.getPreClones,E.getTrackLeft,E.getTrackAnimateCSS,E.getTrackCSS,E.checkSpecKeys,E.getSlideCount,E.checkNavigable,E.getNavigableIndexes,E.swipeEnd,E.swipeMove,E.swipeStart,E.keyHandler,E.changeSlide,E.slideHandler,E.initializedState,E.extractObject,E.canGoNext,E.getSwipeDirection,E.getHeight,E.getWidth,E.lazySlidesOnRight,E.lazySlidesOnLeft,E.lazyEndIndex,E.lazyStartIndex,E.getRequiredLazySlides,E.getOnDemandLazySlides,E.safePreventDefault;var L=c((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var n=o(r),i=o(s);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=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}).apply(this,arguments)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){var t,n,r,i,o;return r=(o=e.rtl?e.slideCount-1-e.index:e.index)<0||o>=e.slideCount,e.centerMode?(i=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount==0,o>e.currentSlide-i-1&&o<=e.currentSlide+i&&(t=!0)):t=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":o===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},S=function(e,t){return e.key||t},w=function(e){var t,r=[],o=[],a=[],s=n.default.Children.count(e.children),l=(0,E.lazyStartIndex)(e),c=(0,E.lazyEndIndex)(e);return n.default.Children.forEach(e.children,(function(u,d){var f,p={message:"children",index:d,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};f=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0?u:n.default.createElement("div",null);var h=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(b(b({},e),{},{index:d})),v=f.props.className||"",y=m(b(b({},e),{},{index:d}));if(r.push(n.default.cloneElement(f,{key:"original"+S(f,d),"data-index":d,className:(0,i.default)(y,v),tabIndex:"-1","aria-hidden":!y["slick-active"],style:b(b({outline:"none"},f.props.style||{}),h),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&!1===e.fade){var g=s-d;g<=(0,E.getPreClones)(e)&&s!==e.slidesToShow&&((t=-g)>=l&&(f=u),y=m(b(b({},e),{},{index:t})),o.push(n.default.cloneElement(f,{key:"precloned"+S(f,t),"data-index":t,tabIndex:"-1",className:(0,i.default)(y,v),"aria-hidden":!y["slick-active"],style:b(b({},f.props.style||{}),h),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))),s!==e.slidesToShow&&((t=s+d)<c&&(f=u),y=m(b(b({},e),{},{index:t})),a.push(n.default.cloneElement(f,{key:"postcloned"+S(f,t),"data-index":t,tabIndex:"-1",className:(0,i.default)(y,v),"aria-hidden":!y["slick-active"],style:b(b({},f.props.style||{}),h),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})))}})),e.rtl?o.concat(r,a).reverse():o.concat(r,a)},k=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}}),t&&d(e,t)}(a,e);var t,r,i,o=f(a);function a(){var e;c(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g(h(e=o.call.apply(o,[this].concat(n))),"node",null),g(h(e),"handleRef",(function(t){e.node=t})),e}return t=a,(r=[{key:"render",value:function(){var e=w(this.props),t=this.props,r={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return n.default.createElement("div",l({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},r),e)}}])&&u(t.prototype,r),i&&u(t,i),a}(n.default.PureComponent);t.Track=k}));u(L),L.Track;var M=c((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Dots=void 0;var n=o(r),i=o(s);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(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 c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=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}}),t&&f(e,t)}(s,e);var t,r,o,a=p(s);function s(){return u(this,s),a.apply(this,arguments)}return t=s,(r=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,r=t.onMouseEnter,o=t.onMouseOver,a=t.onMouseLeave,s=t.infinite,u=t.slidesToScroll,d=t.slidesToShow,f=t.slideCount,p=t.currentSlide,h=(e={slideCount:f,slidesToScroll:u,slidesToShow:d,infinite:s}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,v={onMouseEnter:r,onMouseOver:o,onMouseLeave:a},y=[],b=0;b<h;b++){var g=(b+1)*u-1,m=s?g:(0,E.clamp)(g,0,f-1),S=m-(u-1),w=s?S:(0,E.clamp)(S,0,f-1),k=(0,i.default)({"slick-active":s?p>=w&&p<=m:p===w}),O={message:"dots",index:b,slidesToScroll:u,currentSlide:p},x=this.clickHandler.bind(this,O);y=y.concat(n.default.createElement("li",{key:b,className:k},n.default.cloneElement(this.props.customPaging(b),{onClick:x})))}return n.default.cloneElement(this.props.appendDots(y),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:this.props.dotsClass},v))}}])&&d(t.prototype,r),o&&d(t,o),s}(n.default.PureComponent);t.Dots=y}));u(M),M.Dots;var C=c((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.NextArrow=t.PrevArrow=void 0;var n=o(r),i=o(s);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=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}).apply(this,arguments)}function c(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 h(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function v(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}}),t&&y(e,t)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=function(e){v(r,e);var t=b(r);function r(){return f(this,r),t.apply(this,arguments)}return h(r,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var r={key:"0","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?n.default.cloneElement(this.props.prevArrow,u(u({},r),o)):n.default.createElement("button",l({key:"0",type:"button"},r)," ","Previous")}}]),r}(n.default.PureComponent);t.PrevArrow=S;var w=function(e){v(r,e);var t=b(r);function r(){return f(this,r),t.apply(this,arguments)}return h(r,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,E.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var r={key:"1","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?n.default.cloneElement(this.props.nextArrow,u(u({},r),o)):n.default.createElement("button",l({key:"1",type:"button"},r)," ","Next")}}]),r}(n.default.PureComponent);t.NextArrow=w}));u(C),C.NextArrow,C.PrevArrow;var z=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),R="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,D="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),H="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(D):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var W=["top","right","bottom","left","width","height","size","weight"],I="undefined"!=typeof MutationObserver,N=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){H(o)}function s(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){R&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),I?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){R&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;W.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),A=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},q=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||D},X=K(0,0,0,0);function Y(e){return parseFloat(e)||0}function F(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Y(e["border-"+n+"-width"])}),0)}function G(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return X;var r=q(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=Y(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=Y(r.width),l=Y(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=F(r,"left","right")+o),Math.round(l+a)!==n&&(l-=F(r,"top","bottom")+a)),!function(e){return e===q(e).document.documentElement}(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return K(i.left,i.top,s,l)}var U="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof q(e).SVGGraphicsElement}:function(e){return e instanceof q(e).SVGElement&&"function"==typeof e.getBBox};function B(e){return R?U(e)?function(e){var t=e.getBBox();return K(0,0,t.width,t.height)}(e):G(e):X}function K(e,t,n,r){return{x:e,y:t,width:n,height:r}}var V=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=K(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=B(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),$=function(e,t){var n,r,i,o,a,s,l,c=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),A(l,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),l);A(this,{target:e,contentRect:c})},Z=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new z,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof q(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new V(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof q(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new $(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),J="undefined"!=typeof WeakMap?new WeakMap:new z,Q=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=N.getInstance(),r=new Z(t,n,this);J.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Q.prototype[e]=function(){var t;return(t=J.get(this))[e].apply(t,arguments)}}));var ee=void 0!==D.ResizeObserver?D.ResizeObserver:Q,te=c((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.InnerSlider=void 0;var n=c(r),i=c(p),o=c(j),a=c(s),l=c(ee);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=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}).apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function h(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(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 b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?S(e):t}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=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}}),t&&b(e,t)}(p,e);var t,r,s,c=g(p);function p(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),k(S(t=c.call(this,e)),"listRefHandler",(function(e){return t.list=e})),k(S(t),"trackRefHandler",(function(e){return t.track=e})),k(S(t),"adaptHeight",(function(){if(t.props.adaptiveHeight&&t.list){var e=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,E.getHeight)(e)+"px"}})),k(S(t),"componentDidMount",(function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,E.getOnDemandLazySlides)(v(v({},t.props),t.state));e.length>0&&(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e))}var n=v({listRef:t.list,trackRef:t.track},t.props);t.updateState(n,!0,(function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")})),"progressive"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new l.default((function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout((function(){return t.onWindowResized()}),t.props.speed))):t.onWindowResized()})),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)})),k(S(t),"componentWillUnmount",(function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach((function(e){return clearTimeout(e)})),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()})),k(S(t),"componentDidUpdate",(function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var r=(0,E.getOnDemandLazySlides)(v(v({},t.props),t.state));r.length>0&&(t.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(r)}})),t.props.onLazyLoad&&t.props.onLazyLoad(r))}t.adaptHeight();var i=v(v({listRef:t.list,trackRef:t.track},t.props),t.state),o=t.didPropsChange(e);o&&t.updateState(i,o,(function(){t.state.currentSlide>=n.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:n.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")}))})),k(S(t),"onWindowResized",(function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,o.default)((function(){return t.resizeWindow(e)}),50),t.debouncedResize()})),k(S(t),"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=Boolean(t.track&&t.track.node);if(n){var r=v(v({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(r,e,(function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")})),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}})),k(S(t),"updateState",(function(e,r,i){var o=(0,E.initializedState)(e);e=v(v(v({},e),o),{},{slideIndex:o.currentSlide});var a=(0,E.getTrackLeft)(e);e=v(v({},e),{},{left:a});var s=(0,E.getTrackCSS)(e);(r||n.default.Children.count(t.props.children)!==n.default.Children.count(e.children))&&(o.trackStyle=s),t.setState(o,i)})),k(S(t),"ssrInit",(function(){if(t.props.variableWidth){var e=0,r=0,i=[],o=(0,E.getPreClones)(v(v(v({},t.props),t.state),{},{slideCount:t.props.children.length})),a=(0,E.getPostClones)(v(v(v({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach((function(t){i.push(t.props.style.width),e+=t.props.style.width}));for(var s=0;s<o;s++)r+=i[i.length-1-s],e+=i[i.length-1-s];for(var l=0;l<a;l++)e+=i[l];for(var c=0;c<t.state.currentSlide;c++)r+=i[c];var u={width:e+"px",left:-r+"px"};if(t.props.centerMode){var d="".concat(i[t.state.currentSlide],"px");u.left="calc(".concat(u.left," + (100% - ").concat(d,") / 2 ) ")}return{trackStyle:u}}var f=n.default.Children.count(t.props.children),p=v(v(v({},t.props),t.state),{},{slideCount:f}),h=(0,E.getPreClones)(p)+(0,E.getPostClones)(p)+f,y=100/t.props.slidesToShow*h,b=100/h,g=-b*((0,E.getPreClones)(p)+t.state.currentSlide)*y/100;return t.props.centerMode&&(g+=(100-b*y/100)/2),{slideWidth:b+"%",trackStyle:{width:y+"%",left:g+"%"}}})),k(S(t),"checkImagesLoad",(function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],n=e.length,r=0;Array.prototype.forEach.call(e,(function(e){var i=function(){return++r&&r>=n&&t.onWindowResized()};if(e.onclick){var o=e.onclick;e.onclick=function(){o(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=i,e.onerror=function(){i(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))}))})),k(S(t),"progressiveLazyLoad",(function(){for(var e=[],n=v(v({},t.props),t.state),r=t.state.currentSlide;r<t.state.slideCount+(0,E.getPostClones)(n);r++)if(t.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}for(var i=t.state.currentSlide-1;i>=-(0,E.getPreClones)(n);i--)if(t.state.lazyLoadedList.indexOf(i)<0){e.push(i);break}e.length>0?(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)})),k(S(t),"slideHandler",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.props,i=r.asNavFor,o=r.beforeChange,a=r.onLazyLoad,s=r.speed,l=r.afterChange,c=t.state.currentSlide,u=(0,E.slideHandler)(v(v(v({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!n})),d=u.state,p=u.nextState;if(d){o&&o(c,d.currentSlide);var h=d.lazyLoadedList.filter((function(e){return t.state.lazyLoadedList.indexOf(e)<0}));a&&h.length>0&&a(h),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),l&&l(c),delete t.animationEndCallback),t.setState(d,(function(){i&&t.asNavForIndex!==e&&(t.asNavForIndex=e,i.innerSlider.slideHandler(e)),p&&(t.animationEndCallback=setTimeout((function(){var e=p.animating,n=f(p,["animating"]);t.setState(n,(function(){t.callbackTimers.push(setTimeout((function(){return t.setState({animating:e})}),10)),l&&l(d.currentSlide),delete t.animationEndCallback}))}),s))}))}})),k(S(t),"changeSlide",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=v(v({},t.props),t.state),i=(0,E.changeSlide)(r,e);if((0===i||i)&&(!0===n?t.slideHandler(i,n):t.slideHandler(i),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var o=t.list.querySelectorAll(".slick-current");o[0]&&o[0].focus()}})),k(S(t),"clickHandler",(function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0})),k(S(t),"keyHandler",(function(e){var n=(0,E.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==n&&t.changeSlide({message:n})})),k(S(t),"selectHandler",(function(e){t.changeSlide(e)})),k(S(t),"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),k(S(t),"enableBodyScroll",(function(){window.ontouchmove=null})),k(S(t),"swipeStart",(function(e){t.props.verticalSwiping&&t.disableBodyScroll();var n=(0,E.swipeStart)(e,t.props.swipe,t.props.draggable);""!==n&&t.setState(n)})),k(S(t),"swipeMove",(function(e){var n=(0,E.swipeMove)(e,v(v(v({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));n&&(n.swiping&&(t.clickable=!1),t.setState(n))})),k(S(t),"swipeEnd",(function(e){var n=(0,E.swipeEnd)(e,v(v(v({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(n){var r=n.triggerSlideHandler;delete n.triggerSlideHandler,t.setState(n),void 0!==r&&(t.slideHandler(r),t.props.verticalSwiping&&t.enableBodyScroll())}})),k(S(t),"touchEnd",(function(e){t.swipeEnd(e),t.clickable=!0})),k(S(t),"slickPrev",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"previous"})}),0))})),k(S(t),"slickNext",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"next"})}),0))})),k(S(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"index",index:e,currentSlide:t.state.currentSlide},n)}),0))})),k(S(t),"play",(function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,E.canGoNext)(v(v({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)})),k(S(t),"autoPlay",(function(e){t.autoplayTimer&&clearInterval(t.autoplayTimer);var n=t.state.autoplaying;if("update"===e){if("hovered"===n||"focused"===n||"paused"===n)return}else if("leave"===e){if("paused"===n||"focused"===n)return}else if("blur"===e&&("paused"===n||"hovered"===n))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:"playing"})})),k(S(t),"pause",(function(e){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var n=t.state.autoplaying;"paused"===e?t.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==n&&"playing"!==n||t.setState({autoplaying:"focused"}):"playing"===n&&t.setState({autoplaying:"hovered"})})),k(S(t),"onDotsOver",(function(){return t.props.autoplay&&t.pause("hovered")})),k(S(t),"onDotsLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),k(S(t),"onTrackOver",(function(){return t.props.autoplay&&t.pause("hovered")})),k(S(t),"onTrackLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),k(S(t),"onSlideFocus",(function(){return t.props.autoplay&&t.pause("focused")})),k(S(t),"onSlideBlur",(function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")})),k(S(t),"render",(function(){var e,r,i,o=(0,a.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),s=v(v({},t.props),t.state),l=(0,E.extractObject)(s,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),c=t.props.pauseOnHover;if(l=v(v({},l),{},{onMouseEnter:c?t.onTrackOver:null,onMouseLeave:c?t.onTrackLeave:null,onMouseOver:c?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null}),!0===t.props.dots&&t.state.slideCount>=t.props.slidesToShow){var u=(0,E.extractObject)(s,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=t.props.pauseOnDotsHover;u=v(v({},u),{},{clickHandler:t.changeSlide,onMouseEnter:f?t.onDotsLeave:null,onMouseOver:f?t.onDotsOver:null,onMouseLeave:f?t.onDotsLeave:null}),e=n.default.createElement(M.Dots,u)}var p=(0,E.extractObject)(s,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);p.clickHandler=t.changeSlide,t.props.arrows&&(r=n.default.createElement(C.PrevArrow,p),i=n.default.createElement(C.NextArrow,p));var h=null;t.props.vertical&&(h={height:t.state.listHeight});var y=null;!1===t.props.vertical?!0===t.props.centerMode&&(y={padding:"0px "+t.props.centerPadding}):!0===t.props.centerMode&&(y={padding:t.props.centerPadding+" 0px"});var b=v(v({},h),y),g=t.props.touchMove,m={className:"slick-list",style:b,onClick:t.clickHandler,onMouseDown:g?t.swipeStart:null,onMouseMove:t.state.dragging&&g?t.swipeMove:null,onMouseUp:g?t.swipeEnd:null,onMouseLeave:t.state.dragging&&g?t.swipeEnd:null,onTouchStart:g?t.swipeStart:null,onTouchMove:t.state.dragging&&g?t.swipeMove:null,onTouchEnd:g?t.touchEnd:null,onTouchCancel:t.state.dragging&&g?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},S={className:o,dir:"ltr",style:t.props.style};return t.props.unslick&&(m={className:"slick-list"},S={className:o}),n.default.createElement("div",S,t.props.unslick?"":r,n.default.createElement("div",d({ref:t.listRefHandler},m),n.default.createElement(L.Track,d({ref:t.trackRefHandler},l),t.props.children)),t.props.unslick?"":i,t.props.unslick?"":e)})),t.list=null,t.track=null,t.state=v(v({},i.default),{},{currentSlide:t.props.initialSlide,slideCount:n.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var r=t.ssrInit();return t.state=v(v({},t.state),r),t}return t=p,(r=[{key:"didPropsChange",value:function(e){for(var t=!1,r=0,i=Object.keys(this.props);r<i.length;r++){var o=i[r];if(!e.hasOwnProperty(o)){t=!0;break}if("object"!==u(e[o])&&"function"!=typeof e[o]&&e[o]!==this.props[o]){t=!0;break}}return t||n.default.Children.count(this.props.children)!==n.default.Children.count(e.children)}}])&&y(t.prototype,r),s&&y(t,s),p}(n.default.Component);t.InnerSlider=O}));u(te),te.InnerSlider;var ne=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()},re=function(e){var t="",n=Object.keys(e);return n.forEach((function(r,i){var o=e[r];(function(e){return/[height|width]$/.test(e)})(r=ne(r))&&"number"==typeof o&&(o+="px"),t+=!0===o?r:!1===o?"not "+r:"("+r+": "+o+")",i<n.length-1&&(t+=" and ")})),t},ie=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,r){t+=re(n),r<e.length-1&&(t+=", ")})),t):re(e)},oe=c((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r)&&n.__esModule?n:{default:n};var o={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return i.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return i.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0};t.default=o}));function ae(e){this.options=e,!e.deferSetup&&this.setup()}u(oe),ae.prototype={constructor:ae,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}};var se=ae;var le=function(e){return"function"==typeof e},ce=function(e){return"[object Array]"===Object.prototype.toString.apply(e)},ue=function(e,t){for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);},de=ue;function fe(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}fe.prototype={constuctor:fe,addHandler:function(e){var t=new se(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;de(t,(function(n,r){if(n.equals(e))return n.destroy(),!t.splice(r,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){de(this.handlers,(function(e){e.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";de(this.handlers,(function(t){t[e]()}))}};var pe=fe,he=ue,ve=le,ye=ce;function be(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}be.prototype={constructor:be,register:function(e,t,n){var r=this.queries,i=n&&this.browserIsIncapable;return r[e]||(r[e]=new pe(e,i)),ve(t)&&(t={match:t}),ye(t)||(t=[t]),he(t,(function(t){ve(t)&&(t={match:t}),r[e].addHandler(t)})),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}};var ge=new be,me=c((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r),i=a(ie),o=a(oe);function a(e){return e&&e.__esModule?e:{default:e}}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})(e)}function l(){return(l=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}).apply(this,arguments)}function c(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(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 f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,E.canUseDOM)()&&ge,m=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}}),t&&f(e,t)}(c,e);var t,r,a,s=p(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),b(v(t=s.call(this,e)),"innerSliderRefHandler",(function(e){return t.innerSlider=e})),b(v(t),"slickPrev",(function(){return t.innerSlider.slickPrev()})),b(v(t),"slickNext",(function(){return t.innerSlider.slickNext()})),b(v(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,n)})),b(v(t),"slickPause",(function(){return t.innerSlider.pause("paused")})),b(v(t),"slickPlay",(function(){return t.innerSlider.autoPlay("play")})),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return t=c,(r=[{key:"media",value:function(e,t){g.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,r){var o;o=0===r?(0,i.default)({minWidth:0,maxWidth:n}):(0,i.default)({minWidth:t[r-1]+1,maxWidth:n}),(0,E.canUseDOM)()&&e.media(o,(function(){e.setState({breakpoint:n})}))}));var n=(0,i.default)({minWidth:t.slice(-1)[0]});(0,E.canUseDOM)()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){g.unregister(e.query,e.handler)}))}},{key:"render",value:function(){var e,t,r=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===r.state.breakpoint})))[0].settings?"unslick":u(u(u({},o.default),this.props),t[0].settings):u(u({},o.default),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var i=n.default.Children.toArray(this.props.children);i=i.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var a=[],s=null,c=0;c<i.length;c+=e.rows*e.slidesPerRow){for(var d=[],f=c;f<c+e.rows*e.slidesPerRow;f+=e.slidesPerRow){for(var p=[],h=f;h<f+e.slidesPerRow&&(e.variableWidth&&i[h].props.style&&(s=i[h].props.style.width),!(h>=i.length));h+=1)p.push(n.default.cloneElement(i[h],{key:100*c+10*f+h,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));d.push(n.default.createElement("div",{key:10*c+f},p))}e.variableWidth?a.push(n.default.createElement("div",{key:c,style:{width:s}},d)):a.push(n.default.createElement("div",{key:c},d))}if("unslick"===e){var v="regular slider "+(this.props.className||"");return n.default.createElement("div",{className:v},i)}return a.length<=e.slidesToShow&&(e.unslick=!0),n.default.createElement(te.InnerSlider,l({style:this.props.style,ref:this.innerSliderRefHandler},e),a)}}])&&d(t.prototype,r),a&&d(t,a),c}(n.default.Component);t.default=m}));u(me);var Se=u(c((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=((n=me)&&n.__esModule?n:{default:n}).default;t.default=r})));f("/* Slider */\n.slick-slider\n{\n position: relative;\n\n display: block;\n box-sizing: border-box;\n\n -webkit-user-select: none;\n user-select: none;\n\n -webkit-touch-callout: none;\n -khtml-user-select: none;\n touch-action: pan-y;\n -webkit-tap-highlight-color: transparent;\n}\n\n.slick-list\n{\n position: relative;\n\n display: block;\n overflow: hidden;\n\n margin: 0;\n padding: 0;\n}\n.slick-list:focus\n{\n outline: none;\n}\n.slick-list.dragging\n{\n cursor: pointer;\n cursor: hand;\n}\n\n.slick-slider .slick-track,\n.slick-slider .slick-list\n{\n transform: translate3d(0, 0, 0);\n}\n\n.slick-track\n{\n position: relative;\n top: 0;\n left: 0;\n\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n.slick-track:before,\n.slick-track:after\n{\n display: table;\n\n content: '';\n}\n.slick-track:after\n{\n clear: both;\n}\n.slick-loading .slick-track\n{\n visibility: hidden;\n}\n\n.slick-slide\n{\n display: none;\n float: left;\n\n height: 100%;\n min-height: 1px;\n}\n[dir='rtl'] .slick-slide\n{\n float: right;\n}\n.slick-slide img\n{\n display: block;\n}\n.slick-slide.slick-loading img\n{\n display: none;\n}\n.slick-slide.dragging img\n{\n pointer-events: none;\n}\n.slick-initialized .slick-slide\n{\n display: block;\n}\n.slick-loading .slick-slide\n{\n visibility: hidden;\n}\n.slick-vertical .slick-slide\n{\n display: block;\n\n height: auto;\n\n border: 1px solid transparent;\n}\n.slick-arrow.slick-hidden {\n display: none;\n}\n");f("@charset 'UTF-8';\n/* Slider */\n.slick-loading .slick-list\n{\n background: #fff url('./ajax-loader.gif') center center no-repeat;\n}\n\n/* Icons */\n@font-face\n{\n font-family: 'slick';\n font-weight: normal;\n font-style: normal;\n\n src: url('./fonts/slick.eot');\n src: url('./fonts/slick.eot?#iefix') format('embedded-opentype'), url('./fonts/slick.woff') format('woff'), url('./fonts/slick.ttf') format('truetype'), url('./fonts/slick.svg#slick') format('svg');\n}\n/* Arrows */\n.slick-prev,\n.slick-next\n{\n font-size: 0;\n line-height: 0;\n\n position: absolute;\n top: 50%;\n\n display: block;\n\n width: 20px;\n height: 20px;\n padding: 0;\n transform: translate(0, -50%);\n\n cursor: pointer;\n\n color: transparent;\n border: none;\n outline: none;\n background: transparent;\n}\n.slick-prev:hover,\n.slick-prev:focus,\n.slick-next:hover,\n.slick-next:focus\n{\n color: transparent;\n outline: none;\n background: transparent;\n}\n.slick-prev:hover:before,\n.slick-prev:focus:before,\n.slick-next:hover:before,\n.slick-next:focus:before\n{\n opacity: 1;\n}\n.slick-prev.slick-disabled:before,\n.slick-next.slick-disabled:before\n{\n opacity: .25;\n}\n\n.slick-prev:before,\n.slick-next:before\n{\n font-family: 'slick';\n font-size: 20px;\n line-height: 1;\n\n opacity: .75;\n color: white;\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.slick-prev\n{\n left: -25px;\n}\n[dir='rtl'] .slick-prev\n{\n right: -25px;\n left: auto;\n}\n.slick-prev:before\n{\n content: '←';\n}\n[dir='rtl'] .slick-prev:before\n{\n content: '→';\n}\n\n.slick-next\n{\n right: -25px;\n}\n[dir='rtl'] .slick-next\n{\n right: auto;\n left: -25px;\n}\n.slick-next:before\n{\n content: '→';\n}\n[dir='rtl'] .slick-next:before\n{\n content: '←';\n}\n\n/* Dots */\n.slick-dotted.slick-slider\n{\n margin-bottom: 30px;\n}\n\n.slick-dots\n{\n position: absolute;\n bottom: -25px;\n\n display: block;\n\n width: 100%;\n padding: 0;\n margin: 0;\n\n list-style: none;\n\n text-align: center;\n}\n.slick-dots li\n{\n position: relative;\n\n display: inline-block;\n\n width: 20px;\n height: 20px;\n margin: 0 5px;\n padding: 0;\n\n cursor: pointer;\n}\n.slick-dots li button\n{\n font-size: 0;\n line-height: 0;\n\n display: block;\n\n width: 20px;\n height: 20px;\n padding: 5px;\n\n cursor: pointer;\n\n color: transparent;\n border: 0;\n outline: none;\n background: transparent;\n}\n.slick-dots li button:hover,\n.slick-dots li button:focus\n{\n outline: none;\n}\n.slick-dots li button:hover:before,\n.slick-dots li button:focus:before\n{\n opacity: 1;\n}\n.slick-dots li button:before\n{\n font-family: 'slick';\n font-size: 6px;\n line-height: 20px;\n\n position: absolute;\n top: 0;\n left: 0;\n\n width: 20px;\n height: 20px;\n\n content: '•';\n text-align: center;\n\n opacity: .25;\n color: black;\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.slick-dots li.slick-active button:before\n{\n opacity: .75;\n color: black;\n}\n");f(".carousel .slick-arrow {\n display: none !important; }\n");var we=["className","autoplay","children"],ke=i((function(i,l){var c=i.className,u=i.autoplay,d=i.children,f=e(i,we),p=o(null),h=t({dots:!0,fade:!0,infinite:!0,slidesToShow:1,slidesToScroll:1,autoplay:u,speed:500,autoplaySpeed:2e3,cssEase:"linear"},f);return a(l,(function(){return{prev:function(){p.current.slickPrev()},next:function(){p.current.slickNext()}}})),r.createElement(Se,n({className:s("carousel",c),ref:p},h),d)}));ke.defaultProps={className:void 0,autoplay:!1,children:void 0},ke.propTypes={className:l.string,autoplay:l.bool,children:l.arrayOf(l.any)};export{ke as default};
|
|
1
|
+
import{c as e,b as t,_ as n}from"./_rollupPluginBabelHelpers-b18bba19.js";import r,{forwardRef as i,useRef as o,useImperativeHandle as a}from"react";import{b as s,u as l,a as c,c as u}from"./index-b2745105.js";import d from"prop-types";import{s as f}from"./style-inject.es-1f59c1d0.js";var p=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};t.default=n}));l(p);var h=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,b=/^0o[0-7]+$/i,g=parseInt,m="object"==typeof c&&c&&c.Object===Object&&c,S="object"==typeof self&&self&&self.Object===Object&&self,w=m||S||Function("return this")(),k=Object.prototype.toString,O=Math.max,x=Math.min,T=function(){return w.Date.now()};function _(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function P(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==k.call(e)}(e))return NaN;if(_(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=_(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=y.test(e);return n||b.test(e)?g(e.slice(2),n?2:8):v.test(e)?NaN:+e}var j=function(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function h(e){return c=e,s=setTimeout(y,t),u?p(e):a}function v(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function y(){var e=T();if(v(e))return b(e);s=setTimeout(y,function(e){var n=t-(e-l);return d?x(n,o-(e-c)):n}(e))}function b(e){return s=void 0,f&&r?p(e):(r=i=void 0,a)}function g(){var e=T(),n=v(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return h(l);if(d)return s=setTimeout(y,t),p(l)}return void 0===s&&(s=setTimeout(y,t)),a}return t=P(t)||0,_(n)&&(u=!!n.leading,o=(d="maxWait"in n)?O(P(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),g.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},g.flush=function(){return void 0===s?a:b(T())},g},E=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.clamp=l,t.canUseDOM=t.slidesOnLeft=t.slidesOnRight=t.siblingDirection=t.getTotalSlides=t.getPostClones=t.getPreClones=t.getTrackLeft=t.getTrackAnimateCSS=t.getTrackCSS=t.checkSpecKeys=t.getSlideCount=t.checkNavigable=t.getNavigableIndexes=t.swipeEnd=t.swipeMove=t.swipeStart=t.keyHandler=t.changeSlide=t.slideHandler=t.initializedState=t.extractObject=t.canGoNext=t.getSwipeDirection=t.getHeight=t.getWidth=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.lazyStartIndex=t.getRequiredLazySlides=t.getOnDemandLazySlides=t.safePreventDefault=void 0;var n,i=(n=r)&&n.__esModule?n:{default:n};function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t,n){return Math.max(t,Math.min(e,n))}var c=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()};t.safePreventDefault=c;var u=function(e){for(var t=[],n=d(e),r=f(e),i=n;i<r;i++)e.lazyLoadedList.indexOf(i)<0&&t.push(i);return t};t.getOnDemandLazySlides=u;t.getRequiredLazySlides=function(e){for(var t=[],n=d(e),r=f(e),i=n;i<r;i++)t.push(i);return t};var d=function(e){return e.currentSlide-p(e)};t.lazyStartIndex=d;var f=function(e){return e.currentSlide+h(e)};t.lazyEndIndex=f;var p=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0};t.lazySlidesOnLeft=p;var h=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow};t.lazySlidesOnRight=h;var v=function(e){return e&&e.offsetWidth||0};t.getWidth=v;var y=function(e){return e&&e.offsetHeight||0};t.getHeight=y;var b=function(e){var t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(i=Math.round(180*r/Math.PI))<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315?"left":i>=135&&i<=225?"right":!0===o?i>=35&&i<=135?"up":"down":"vertical"};t.getSwipeDirection=b;var g=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t};t.canGoNext=g;t.extractObject=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n};t.initializedState=function(e){var t,n=i.default.Children.count(e.children),r=e.listRef,o=Math.ceil(v(r)),s=e.trackRef&&e.trackRef.node,l=Math.ceil(v(s));if(e.vertical)t=o;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=o/100),t=Math.ceil((o-c)/e.slidesToShow)}var d=r&&y(r.querySelector('[data-index="0"]')),f=d*e.slidesToShow,p=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(p=n-1-e.initialSlide);var h=e.lazyLoadedList||[],b=u(a(a({},e),{},{currentSlide:p,lazyLoadedList:h})),g={slideCount:n,slideWidth:t,listWidth:o,trackWidth:l,currentSlide:p,slideHeight:d,listHeight:f,lazyLoadedList:h=h.concat(b)};return null===e.autoplaying&&e.autoplay&&(g.autoplaying="playing"),g};t.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,i=e.infinite,o=e.index,s=e.slideCount,c=e.lazyLoad,d=e.currentSlide,f=e.centerMode,p=e.slidesToScroll,h=e.slidesToShow,v=e.useCSS,y=e.lazyLoadedList;if(t&&n)return{};var b,m,S,w=o,k={},_={},P=i?o:l(o,0,s-1);if(r){if(!i&&(o<0||o>=s))return{};o<0?w=o+s:o>=s&&(w=o-s),c&&y.indexOf(w)<0&&(y=y.concat(w)),k={animating:!0,currentSlide:w,lazyLoadedList:y,targetSlide:w},_={animating:!1,targetSlide:w}}else b=w,w<0?(b=w+s,i?s%p!=0&&(b=s-s%p):b=0):!g(e)&&w>d?w=b=d:f&&w>=s?(w=i?s:s-1,b=i?0:s-1):w>=s&&(b=w-s,i?s%p!=0&&(b=0):b=s-h),!i&&w+h>=s&&(b=s-h),m=T(a(a({},e),{},{slideIndex:w})),S=T(a(a({},e),{},{slideIndex:b})),i||(m===S&&(w=b),m=S),c&&(y=y.concat(u(a(a({},e),{},{currentSlide:w})))),v?(k={animating:!0,currentSlide:b,trackStyle:x(a(a({},e),{},{left:m})),lazyLoadedList:y,targetSlide:P},_={animating:!1,currentSlide:b,trackStyle:O(a(a({},e),{},{left:S})),swipeLeft:null,targetSlide:P}):k={currentSlide:b,trackStyle:O(a(a({},e),{},{left:S})),lazyLoadedList:y,targetSlide:P};return{state:k,nextState:_}};t.changeSlide=function(e,t){var n,r,i,o,s=e.slidesToScroll,l=e.slidesToShow,c=e.slideCount,u=e.currentSlide,d=e.targetSlide,f=e.lazyLoad,p=e.infinite;if(n=c%s!=0?0:(c-u)%s,"previous"===t.message)o=u-(i=0===n?s:l-n),f&&!p&&(o=-1===(r=u-i)?c-1:r),p||(o=d-s);else if("next"===t.message)o=u+(i=0===n?s:n),f&&!p&&(o=(u+s)%c+n),p||(o=d+s);else if("dots"===t.message)o=t.index*t.slidesToScroll;else if("children"===t.message){if(o=t.index,p){var h=E(a(a({},e),{},{targetSlide:o}));o>t.currentSlide&&"left"===h?o-=c:o<t.currentSlide&&"right"===h&&(o+=c)}}else"index"===t.message&&(o=Number(t.index));return o};t.keyHandler=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""};t.swipeStart=function(e,t,n){return"IMG"===e.target.tagName&&c(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}};t.swipeMove=function(e,t){var n=t.scrolling,r=t.animating,i=t.vertical,o=t.swipeToSlide,s=t.verticalSwiping,l=t.rtl,u=t.currentSlide,d=t.edgeFriction,f=t.edgeDragged,p=t.onEdge,h=t.swiped,v=t.swiping,y=t.slideCount,m=t.slidesToScroll,S=t.infinite,w=t.touchObject,k=t.swipeEvent,x=t.listHeight,_=t.listWidth;if(!n){if(r)return c(e);i&&o&&s&&c(e);var P,j={},E=T(t);w.curX=e.touches?e.touches[0].pageX:e.clientX,w.curY=e.touches?e.touches[0].pageY:e.clientY,w.swipeLength=Math.round(Math.sqrt(Math.pow(w.curX-w.startX,2)));var L=Math.round(Math.sqrt(Math.pow(w.curY-w.startY,2)));if(!s&&!v&&L>10)return{scrolling:!0};s&&(w.swipeLength=L);var M=(l?-1:1)*(w.curX>w.startX?1:-1);s&&(M=w.curY>w.startY?1:-1);var C=Math.ceil(y/m),z=b(t.touchObject,s),R=w.swipeLength;return S||(0===u&&("right"===z||"down"===z)||u+1>=C&&("left"===z||"up"===z)||!g(t)&&("left"===z||"up"===z))&&(R=w.swipeLength*d,!1===f&&p&&(p(z),j.edgeDragged=!0)),!h&&k&&(k(z),j.swiped=!0),P=i?E+R*(x/_)*M:l?E-R*M:E+R*M,s&&(P=E+R*M),j=a(a({},j),{},{touchObject:w,swipeLeft:P,trackStyle:O(a(a({},t),{},{left:P}))}),Math.abs(w.curX-w.startX)<.8*Math.abs(w.curY-w.startY)?j:(w.swipeLength>10&&(j.swiping=!0,c(e)),j)}};t.swipeEnd=function(e,t){var n=t.dragging,r=t.swipe,i=t.touchObject,o=t.listWidth,s=t.touchThreshold,l=t.verticalSwiping,u=t.listHeight,d=t.swipeToSlide,f=t.scrolling,p=t.onSwipe,h=t.targetSlide,v=t.currentSlide,y=t.infinite;if(!n)return r&&c(e),{};var g=l?u/s:o/s,m=b(i,l),k={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(f)return k;if(!i.swipeLength)return k;if(i.swipeLength>g){var O,_;c(e),p&&p(m);var P=y?v:h;switch(m){case"left":case"up":_=P+w(t),O=d?S(t,_):_,k.currentDirection=0;break;case"right":case"down":_=P-w(t),O=d?S(t,_):_,k.currentDirection=1;break;default:O=P}k.triggerSlideHandler=O}else{var j=T(t);k.trackStyle=x(a(a({},t),{},{left:j}))}return k};var m=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,i=[];n<t;)i.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return i};t.getNavigableIndexes=m;var S=function(e,t){var n=m(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var i in n){if(t<n[i]){t=r;break}r=n[i]}return t};t.checkNavigable=S;var w=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef,i=r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[];if(Array.from(i).every((function(r){if(e.vertical){if(r.offsetTop+y(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+v(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var o=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-o)||1}return e.slidesToScroll};t.getSlideCount=w;var k=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)};t.checkSpecKeys=k;var O=function(e){var t,n;k(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=j(e)*e.slideWidth;var i={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";i=a(a({},i),{},{WebkitTransform:o,transform:s,msTransform:l})}else e.vertical?i.top=e.left:i.left=e.left;return e.fade&&(i={opacity:1}),t&&(i.width=t),n&&(i.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?i.marginTop=e.left+"px":i.marginLeft=e.left+"px"),i};t.getTrackCSS=O;var x=function(e){k(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=O(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t};t.getTrackAnimateCSS=x;var T=function(e){if(e.unslick)return 0;k(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,i=e.trackRef,o=e.infinite,a=e.centerMode,s=e.slideCount,l=e.slidesToShow,c=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,f=e.variableWidth,p=e.slideHeight,h=e.fade,v=e.vertical;if(h||1===e.slideCount)return 0;var y=0;if(o?(y=-_(e),s%c!=0&&r+c>s&&(y=-(r>s?l-(r-s):s%c)),a&&(y+=parseInt(l/2))):(s%c!=0&&r+c>s&&(y=l-s%c),a&&(y=parseInt(l/2))),t=v?r*p*-1+y*p:r*u*-1+y*u,!0===f){var b,g=i&&i.node;if(b=r+_(e),t=(n=g&&g.childNodes[b])?-1*n.offsetLeft:0,!0===a){b=o?r+_(e):r,n=g&&g.children[b],t=0;for(var m=0;m<b;m++)t-=g&&g.children[m]&&g.children[m].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t};t.getTrackLeft=T;var _=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)};t.getPreClones=_;var P=function(e){return e.unslick||!e.infinite?0:e.slideCount};t.getPostClones=P;var j=function(e){return 1===e.slideCount?1:_(e)+e.slideCount+P(e)};t.getTotalSlides=j;var E=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+L(e)?"left":"right":e.targetSlide<e.currentSlide-M(e)?"right":"left"};t.siblingDirection=E;var L=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(i)>0&&(o+=1),r&&t%2==0&&(o+=1),o}return r?0:t-1};t.slidesOnRight=L;var M=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(i)>0&&(o+=1),r||t%2!=0||(o+=1),o}return r?t-1:0};t.slidesOnLeft=M;t.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}}));l(E),E.clamp,E.canUseDOM,E.slidesOnLeft,E.slidesOnRight,E.siblingDirection,E.getTotalSlides,E.getPostClones,E.getPreClones,E.getTrackLeft,E.getTrackAnimateCSS,E.getTrackCSS,E.checkSpecKeys,E.getSlideCount,E.checkNavigable,E.getNavigableIndexes,E.swipeEnd,E.swipeMove,E.swipeStart,E.keyHandler,E.changeSlide,E.slideHandler,E.initializedState,E.extractObject,E.canGoNext,E.getSwipeDirection,E.getHeight,E.getWidth,E.lazySlidesOnRight,E.lazySlidesOnLeft,E.lazyEndIndex,E.lazyStartIndex,E.getRequiredLazySlides,E.getOnDemandLazySlides,E.safePreventDefault;var L=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var n=o(r),i=o(u);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=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}).apply(this,arguments)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){var t,n,r,i,o;return r=(o=e.rtl?e.slideCount-1-e.index:e.index)<0||o>=e.slideCount,e.centerMode?(i=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount==0,o>e.currentSlide-i-1&&o<=e.currentSlide+i&&(t=!0)):t=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":o===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},S=function(e,t){return e.key||t},w=function(e){var t,r=[],o=[],a=[],s=n.default.Children.count(e.children),l=(0,E.lazyStartIndex)(e),c=(0,E.lazyEndIndex)(e);return n.default.Children.forEach(e.children,(function(u,d){var f,p={message:"children",index:d,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};f=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0?u:n.default.createElement("div",null);var h=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(b(b({},e),{},{index:d})),v=f.props.className||"",y=m(b(b({},e),{},{index:d}));if(r.push(n.default.cloneElement(f,{key:"original"+S(f,d),"data-index":d,className:(0,i.default)(y,v),tabIndex:"-1","aria-hidden":!y["slick-active"],style:b(b({outline:"none"},f.props.style||{}),h),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&!1===e.fade){var g=s-d;g<=(0,E.getPreClones)(e)&&s!==e.slidesToShow&&((t=-g)>=l&&(f=u),y=m(b(b({},e),{},{index:t})),o.push(n.default.cloneElement(f,{key:"precloned"+S(f,t),"data-index":t,tabIndex:"-1",className:(0,i.default)(y,v),"aria-hidden":!y["slick-active"],style:b(b({},f.props.style||{}),h),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))),s!==e.slidesToShow&&((t=s+d)<c&&(f=u),y=m(b(b({},e),{},{index:t})),a.push(n.default.cloneElement(f,{key:"postcloned"+S(f,t),"data-index":t,tabIndex:"-1",className:(0,i.default)(y,v),"aria-hidden":!y["slick-active"],style:b(b({},f.props.style||{}),h),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})))}})),e.rtl?o.concat(r,a).reverse():o.concat(r,a)},k=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}}),t&&d(e,t)}(a,e);var t,r,i,o=f(a);function a(){var e;l(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g(h(e=o.call.apply(o,[this].concat(n))),"node",null),g(h(e),"handleRef",(function(t){e.node=t})),e}return t=a,(r=[{key:"render",value:function(){var e=w(this.props),t=this.props,r={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return n.default.createElement("div",s({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},r),e)}}])&&c(t.prototype,r),i&&c(t,i),a}(n.default.PureComponent);t.Track=k}));l(L),L.Track;var M=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Dots=void 0;var n=o(r),i=o(u);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}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 l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=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}}),t&&f(e,t)}(u,e);var t,r,o,a=p(u);function u(){return c(this,u),a.apply(this,arguments)}return t=u,(r=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,r=t.onMouseEnter,o=t.onMouseOver,a=t.onMouseLeave,c=t.infinite,u=t.slidesToScroll,d=t.slidesToShow,f=t.slideCount,p=t.currentSlide,h=(e={slideCount:f,slidesToScroll:u,slidesToShow:d,infinite:c}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,v={onMouseEnter:r,onMouseOver:o,onMouseLeave:a},y=[],b=0;b<h;b++){var g=(b+1)*u-1,m=c?g:(0,E.clamp)(g,0,f-1),S=m-(u-1),w=c?S:(0,E.clamp)(S,0,f-1),k=(0,i.default)({"slick-active":c?p>=w&&p<=m:p===w}),O={message:"dots",index:b,slidesToScroll:u,currentSlide:p},x=this.clickHandler.bind(this,O);y=y.concat(n.default.createElement("li",{key:b,className:k},n.default.cloneElement(this.props.customPaging(b),{onClick:x})))}return n.default.cloneElement(this.props.appendDots(y),function(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){l(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}({className:this.props.dotsClass},v))}}])&&d(t.prototype,r),o&&d(t,o),u}(n.default.PureComponent);t.Dots=y}));l(M),M.Dots;var C=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.NextArrow=t.PrevArrow=void 0;var n=o(r),i=o(u);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=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}).apply(this,arguments)}function l(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 h(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function v(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}}),t&&y(e,t)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=function(e){v(r,e);var t=b(r);function r(){return f(this,r),t.apply(this,arguments)}return h(r,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var r={key:"0","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?n.default.cloneElement(this.props.prevArrow,c(c({},r),o)):n.default.createElement("button",s({key:"0",type:"button"},r)," ","Previous")}}]),r}(n.default.PureComponent);t.PrevArrow=S;var w=function(e){v(r,e);var t=b(r);function r(){return f(this,r),t.apply(this,arguments)}return h(r,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,E.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var r={key:"1","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?n.default.cloneElement(this.props.nextArrow,c(c({},r),o)):n.default.createElement("button",s({key:"1",type:"button"},r)," ","Next")}}]),r}(n.default.PureComponent);t.NextArrow=w}));l(C),C.NextArrow,C.PrevArrow;var z=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),R="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,D="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),H="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(D):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var W=["top","right","bottom","left","width","height","size","weight"],I="undefined"!=typeof MutationObserver,N=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){H(o)}function s(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){R&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),I?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){R&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;W.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),A=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},q=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||D},X=K(0,0,0,0);function Y(e){return parseFloat(e)||0}function F(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Y(e["border-"+n+"-width"])}),0)}function G(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return X;var r=q(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=Y(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=Y(r.width),l=Y(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=F(r,"left","right")+o),Math.round(l+a)!==n&&(l-=F(r,"top","bottom")+a)),!function(e){return e===q(e).document.documentElement}(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return K(i.left,i.top,s,l)}var U="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof q(e).SVGGraphicsElement}:function(e){return e instanceof q(e).SVGElement&&"function"==typeof e.getBBox};function B(e){return R?U(e)?function(e){var t=e.getBBox();return K(0,0,t.width,t.height)}(e):G(e):X}function K(e,t,n,r){return{x:e,y:t,width:n,height:r}}var V=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=K(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=B(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),$=function(e,t){var n,r,i,o,a,s,l,c=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),A(l,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),l);A(this,{target:e,contentRect:c})},Z=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new z,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof q(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new V(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof q(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new $(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),J="undefined"!=typeof WeakMap?new WeakMap:new z,Q=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=N.getInstance(),r=new Z(t,n,this);J.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Q.prototype[e]=function(){var t;return(t=J.get(this))[e].apply(t,arguments)}}));var ee=void 0!==D.ResizeObserver?D.ResizeObserver:Q,te=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.InnerSlider=void 0;var n=l(r),i=l(p),o=l(j),a=l(u),s=l(ee);function l(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){return(d=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}).apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function h(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(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 b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?S(e):t}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=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}}),t&&b(e,t)}(p,e);var t,r,l,u=g(p);function p(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),k(S(t=u.call(this,e)),"listRefHandler",(function(e){return t.list=e})),k(S(t),"trackRefHandler",(function(e){return t.track=e})),k(S(t),"adaptHeight",(function(){if(t.props.adaptiveHeight&&t.list){var e=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,E.getHeight)(e)+"px"}})),k(S(t),"componentDidMount",(function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,E.getOnDemandLazySlides)(v(v({},t.props),t.state));e.length>0&&(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e))}var n=v({listRef:t.list,trackRef:t.track},t.props);t.updateState(n,!0,(function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")})),"progressive"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new s.default((function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout((function(){return t.onWindowResized()}),t.props.speed))):t.onWindowResized()})),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)})),k(S(t),"componentWillUnmount",(function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach((function(e){return clearTimeout(e)})),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()})),k(S(t),"componentDidUpdate",(function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var r=(0,E.getOnDemandLazySlides)(v(v({},t.props),t.state));r.length>0&&(t.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(r)}})),t.props.onLazyLoad&&t.props.onLazyLoad(r))}t.adaptHeight();var i=v(v({listRef:t.list,trackRef:t.track},t.props),t.state),o=t.didPropsChange(e);o&&t.updateState(i,o,(function(){t.state.currentSlide>=n.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:n.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")}))})),k(S(t),"onWindowResized",(function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,o.default)((function(){return t.resizeWindow(e)}),50),t.debouncedResize()})),k(S(t),"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=Boolean(t.track&&t.track.node);if(n){var r=v(v({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(r,e,(function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")})),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}})),k(S(t),"updateState",(function(e,r,i){var o=(0,E.initializedState)(e);e=v(v(v({},e),o),{},{slideIndex:o.currentSlide});var a=(0,E.getTrackLeft)(e);e=v(v({},e),{},{left:a});var s=(0,E.getTrackCSS)(e);(r||n.default.Children.count(t.props.children)!==n.default.Children.count(e.children))&&(o.trackStyle=s),t.setState(o,i)})),k(S(t),"ssrInit",(function(){if(t.props.variableWidth){var e=0,r=0,i=[],o=(0,E.getPreClones)(v(v(v({},t.props),t.state),{},{slideCount:t.props.children.length})),a=(0,E.getPostClones)(v(v(v({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach((function(t){i.push(t.props.style.width),e+=t.props.style.width}));for(var s=0;s<o;s++)r+=i[i.length-1-s],e+=i[i.length-1-s];for(var l=0;l<a;l++)e+=i[l];for(var c=0;c<t.state.currentSlide;c++)r+=i[c];var u={width:e+"px",left:-r+"px"};if(t.props.centerMode){var d="".concat(i[t.state.currentSlide],"px");u.left="calc(".concat(u.left," + (100% - ").concat(d,") / 2 ) ")}return{trackStyle:u}}var f=n.default.Children.count(t.props.children),p=v(v(v({},t.props),t.state),{},{slideCount:f}),h=(0,E.getPreClones)(p)+(0,E.getPostClones)(p)+f,y=100/t.props.slidesToShow*h,b=100/h,g=-b*((0,E.getPreClones)(p)+t.state.currentSlide)*y/100;return t.props.centerMode&&(g+=(100-b*y/100)/2),{slideWidth:b+"%",trackStyle:{width:y+"%",left:g+"%"}}})),k(S(t),"checkImagesLoad",(function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],n=e.length,r=0;Array.prototype.forEach.call(e,(function(e){var i=function(){return++r&&r>=n&&t.onWindowResized()};if(e.onclick){var o=e.onclick;e.onclick=function(){o(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=i,e.onerror=function(){i(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))}))})),k(S(t),"progressiveLazyLoad",(function(){for(var e=[],n=v(v({},t.props),t.state),r=t.state.currentSlide;r<t.state.slideCount+(0,E.getPostClones)(n);r++)if(t.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}for(var i=t.state.currentSlide-1;i>=-(0,E.getPreClones)(n);i--)if(t.state.lazyLoadedList.indexOf(i)<0){e.push(i);break}e.length>0?(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)})),k(S(t),"slideHandler",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.props,i=r.asNavFor,o=r.beforeChange,a=r.onLazyLoad,s=r.speed,l=r.afterChange,c=t.state.currentSlide,u=(0,E.slideHandler)(v(v(v({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!n})),d=u.state,p=u.nextState;if(d){o&&o(c,d.currentSlide);var h=d.lazyLoadedList.filter((function(e){return t.state.lazyLoadedList.indexOf(e)<0}));a&&h.length>0&&a(h),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),l&&l(c),delete t.animationEndCallback),t.setState(d,(function(){i&&t.asNavForIndex!==e&&(t.asNavForIndex=e,i.innerSlider.slideHandler(e)),p&&(t.animationEndCallback=setTimeout((function(){var e=p.animating,n=f(p,["animating"]);t.setState(n,(function(){t.callbackTimers.push(setTimeout((function(){return t.setState({animating:e})}),10)),l&&l(d.currentSlide),delete t.animationEndCallback}))}),s))}))}})),k(S(t),"changeSlide",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=v(v({},t.props),t.state),i=(0,E.changeSlide)(r,e);if((0===i||i)&&(!0===n?t.slideHandler(i,n):t.slideHandler(i),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var o=t.list.querySelectorAll(".slick-current");o[0]&&o[0].focus()}})),k(S(t),"clickHandler",(function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0})),k(S(t),"keyHandler",(function(e){var n=(0,E.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==n&&t.changeSlide({message:n})})),k(S(t),"selectHandler",(function(e){t.changeSlide(e)})),k(S(t),"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),k(S(t),"enableBodyScroll",(function(){window.ontouchmove=null})),k(S(t),"swipeStart",(function(e){t.props.verticalSwiping&&t.disableBodyScroll();var n=(0,E.swipeStart)(e,t.props.swipe,t.props.draggable);""!==n&&t.setState(n)})),k(S(t),"swipeMove",(function(e){var n=(0,E.swipeMove)(e,v(v(v({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));n&&(n.swiping&&(t.clickable=!1),t.setState(n))})),k(S(t),"swipeEnd",(function(e){var n=(0,E.swipeEnd)(e,v(v(v({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(n){var r=n.triggerSlideHandler;delete n.triggerSlideHandler,t.setState(n),void 0!==r&&(t.slideHandler(r),t.props.verticalSwiping&&t.enableBodyScroll())}})),k(S(t),"touchEnd",(function(e){t.swipeEnd(e),t.clickable=!0})),k(S(t),"slickPrev",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"previous"})}),0))})),k(S(t),"slickNext",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"next"})}),0))})),k(S(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"index",index:e,currentSlide:t.state.currentSlide},n)}),0))})),k(S(t),"play",(function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,E.canGoNext)(v(v({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)})),k(S(t),"autoPlay",(function(e){t.autoplayTimer&&clearInterval(t.autoplayTimer);var n=t.state.autoplaying;if("update"===e){if("hovered"===n||"focused"===n||"paused"===n)return}else if("leave"===e){if("paused"===n||"focused"===n)return}else if("blur"===e&&("paused"===n||"hovered"===n))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:"playing"})})),k(S(t),"pause",(function(e){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var n=t.state.autoplaying;"paused"===e?t.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==n&&"playing"!==n||t.setState({autoplaying:"focused"}):"playing"===n&&t.setState({autoplaying:"hovered"})})),k(S(t),"onDotsOver",(function(){return t.props.autoplay&&t.pause("hovered")})),k(S(t),"onDotsLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),k(S(t),"onTrackOver",(function(){return t.props.autoplay&&t.pause("hovered")})),k(S(t),"onTrackLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),k(S(t),"onSlideFocus",(function(){return t.props.autoplay&&t.pause("focused")})),k(S(t),"onSlideBlur",(function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")})),k(S(t),"render",(function(){var e,r,i,o=(0,a.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),s=v(v({},t.props),t.state),l=(0,E.extractObject)(s,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),c=t.props.pauseOnHover;if(l=v(v({},l),{},{onMouseEnter:c?t.onTrackOver:null,onMouseLeave:c?t.onTrackLeave:null,onMouseOver:c?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null}),!0===t.props.dots&&t.state.slideCount>=t.props.slidesToShow){var u=(0,E.extractObject)(s,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=t.props.pauseOnDotsHover;u=v(v({},u),{},{clickHandler:t.changeSlide,onMouseEnter:f?t.onDotsLeave:null,onMouseOver:f?t.onDotsOver:null,onMouseLeave:f?t.onDotsLeave:null}),e=n.default.createElement(M.Dots,u)}var p=(0,E.extractObject)(s,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);p.clickHandler=t.changeSlide,t.props.arrows&&(r=n.default.createElement(C.PrevArrow,p),i=n.default.createElement(C.NextArrow,p));var h=null;t.props.vertical&&(h={height:t.state.listHeight});var y=null;!1===t.props.vertical?!0===t.props.centerMode&&(y={padding:"0px "+t.props.centerPadding}):!0===t.props.centerMode&&(y={padding:t.props.centerPadding+" 0px"});var b=v(v({},h),y),g=t.props.touchMove,m={className:"slick-list",style:b,onClick:t.clickHandler,onMouseDown:g?t.swipeStart:null,onMouseMove:t.state.dragging&&g?t.swipeMove:null,onMouseUp:g?t.swipeEnd:null,onMouseLeave:t.state.dragging&&g?t.swipeEnd:null,onTouchStart:g?t.swipeStart:null,onTouchMove:t.state.dragging&&g?t.swipeMove:null,onTouchEnd:g?t.touchEnd:null,onTouchCancel:t.state.dragging&&g?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},S={className:o,dir:"ltr",style:t.props.style};return t.props.unslick&&(m={className:"slick-list"},S={className:o}),n.default.createElement("div",S,t.props.unslick?"":r,n.default.createElement("div",d({ref:t.listRefHandler},m),n.default.createElement(L.Track,d({ref:t.trackRefHandler},l),t.props.children)),t.props.unslick?"":i,t.props.unslick?"":e)})),t.list=null,t.track=null,t.state=v(v({},i.default),{},{currentSlide:t.props.initialSlide,slideCount:n.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var r=t.ssrInit();return t.state=v(v({},t.state),r),t}return t=p,(r=[{key:"didPropsChange",value:function(e){for(var t=!1,r=0,i=Object.keys(this.props);r<i.length;r++){var o=i[r];if(!e.hasOwnProperty(o)){t=!0;break}if("object"!==c(e[o])&&"function"!=typeof e[o]&&e[o]!==this.props[o]){t=!0;break}}return t||n.default.Children.count(this.props.children)!==n.default.Children.count(e.children)}}])&&y(t.prototype,r),l&&y(t,l),p}(n.default.Component);t.InnerSlider=O}));l(te),te.InnerSlider;var ne=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()},re=function(e){var t="",n=Object.keys(e);return n.forEach((function(r,i){var o=e[r];(function(e){return/[height|width]$/.test(e)})(r=ne(r))&&"number"==typeof o&&(o+="px"),t+=!0===o?r:!1===o?"not "+r:"("+r+": "+o+")",i<n.length-1&&(t+=" and ")})),t},ie=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,r){t+=re(n),r<e.length-1&&(t+=", ")})),t):re(e)},oe=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r)&&n.__esModule?n:{default:n};var o={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return i.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return i.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0};t.default=o}));function ae(e){this.options=e,!e.deferSetup&&this.setup()}l(oe),ae.prototype={constructor:ae,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}};var se=ae;var le=function(e){return"function"==typeof e},ce=function(e){return"[object Array]"===Object.prototype.toString.apply(e)},ue=function(e,t){for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);},de=ue;function fe(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}fe.prototype={constuctor:fe,addHandler:function(e){var t=new se(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;de(t,(function(n,r){if(n.equals(e))return n.destroy(),!t.splice(r,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){de(this.handlers,(function(e){e.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";de(this.handlers,(function(t){t[e]()}))}};var pe=fe,he=ue,ve=le,ye=ce;function be(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}be.prototype={constructor:be,register:function(e,t,n){var r=this.queries,i=n&&this.browserIsIncapable;return r[e]||(r[e]=new pe(e,i)),ve(t)&&(t={match:t}),ye(t)||(t=[t]),he(t,(function(t){ve(t)&&(t={match:t}),r[e].addHandler(t)})),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}};var ge=new be,me=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r),i=a(ie),o=a(oe);function a(e){return e&&e.__esModule?e:{default:e}}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})(e)}function l(){return(l=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}).apply(this,arguments)}function c(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(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 f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,E.canUseDOM)()&&ge,m=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}}),t&&f(e,t)}(c,e);var t,r,a,s=p(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),b(v(t=s.call(this,e)),"innerSliderRefHandler",(function(e){return t.innerSlider=e})),b(v(t),"slickPrev",(function(){return t.innerSlider.slickPrev()})),b(v(t),"slickNext",(function(){return t.innerSlider.slickNext()})),b(v(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,n)})),b(v(t),"slickPause",(function(){return t.innerSlider.pause("paused")})),b(v(t),"slickPlay",(function(){return t.innerSlider.autoPlay("play")})),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return t=c,(r=[{key:"media",value:function(e,t){g.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,r){var o;o=0===r?(0,i.default)({minWidth:0,maxWidth:n}):(0,i.default)({minWidth:t[r-1]+1,maxWidth:n}),(0,E.canUseDOM)()&&e.media(o,(function(){e.setState({breakpoint:n})}))}));var n=(0,i.default)({minWidth:t.slice(-1)[0]});(0,E.canUseDOM)()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){g.unregister(e.query,e.handler)}))}},{key:"render",value:function(){var e,t,r=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===r.state.breakpoint})))[0].settings?"unslick":u(u(u({},o.default),this.props),t[0].settings):u(u({},o.default),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var i=n.default.Children.toArray(this.props.children);i=i.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var a=[],s=null,c=0;c<i.length;c+=e.rows*e.slidesPerRow){for(var d=[],f=c;f<c+e.rows*e.slidesPerRow;f+=e.slidesPerRow){for(var p=[],h=f;h<f+e.slidesPerRow&&(e.variableWidth&&i[h].props.style&&(s=i[h].props.style.width),!(h>=i.length));h+=1)p.push(n.default.cloneElement(i[h],{key:100*c+10*f+h,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));d.push(n.default.createElement("div",{key:10*c+f},p))}e.variableWidth?a.push(n.default.createElement("div",{key:c,style:{width:s}},d)):a.push(n.default.createElement("div",{key:c},d))}if("unslick"===e){var v="regular slider "+(this.props.className||"");return n.default.createElement("div",{className:v},i)}return a.length<=e.slidesToShow&&(e.unslick=!0),n.default.createElement(te.InnerSlider,l({style:this.props.style,ref:this.innerSliderRefHandler},e),a)}}])&&d(t.prototype,r),a&&d(t,a),c}(n.default.Component);t.default=m}));l(me);var Se=l(s((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=((n=me)&&n.__esModule?n:{default:n}).default;t.default=r})));f("/* Slider */\n.slick-slider\n{\n position: relative;\n\n display: block;\n box-sizing: border-box;\n\n -webkit-user-select: none;\n user-select: none;\n\n -webkit-touch-callout: none;\n -khtml-user-select: none;\n touch-action: pan-y;\n -webkit-tap-highlight-color: transparent;\n}\n\n.slick-list\n{\n position: relative;\n\n display: block;\n overflow: hidden;\n\n margin: 0;\n padding: 0;\n}\n.slick-list:focus\n{\n outline: none;\n}\n.slick-list.dragging\n{\n cursor: pointer;\n cursor: hand;\n}\n\n.slick-slider .slick-track,\n.slick-slider .slick-list\n{\n transform: translate3d(0, 0, 0);\n}\n\n.slick-track\n{\n position: relative;\n top: 0;\n left: 0;\n\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n.slick-track:before,\n.slick-track:after\n{\n display: table;\n\n content: '';\n}\n.slick-track:after\n{\n clear: both;\n}\n.slick-loading .slick-track\n{\n visibility: hidden;\n}\n\n.slick-slide\n{\n display: none;\n float: left;\n\n height: 100%;\n min-height: 1px;\n}\n[dir='rtl'] .slick-slide\n{\n float: right;\n}\n.slick-slide img\n{\n display: block;\n}\n.slick-slide.slick-loading img\n{\n display: none;\n}\n.slick-slide.dragging img\n{\n pointer-events: none;\n}\n.slick-initialized .slick-slide\n{\n display: block;\n}\n.slick-loading .slick-slide\n{\n visibility: hidden;\n}\n.slick-vertical .slick-slide\n{\n display: block;\n\n height: auto;\n\n border: 1px solid transparent;\n}\n.slick-arrow.slick-hidden {\n display: none;\n}\n");f("@charset 'UTF-8';\n/* Slider */\n.slick-loading .slick-list\n{\n background: #fff url('./ajax-loader.gif') center center no-repeat;\n}\n\n/* Icons */\n@font-face\n{\n font-family: 'slick';\n font-weight: normal;\n font-style: normal;\n\n src: url('./fonts/slick.eot');\n src: url('./fonts/slick.eot?#iefix') format('embedded-opentype'), url('./fonts/slick.woff') format('woff'), url('./fonts/slick.ttf') format('truetype'), url('./fonts/slick.svg#slick') format('svg');\n}\n/* Arrows */\n.slick-prev,\n.slick-next\n{\n font-size: 0;\n line-height: 0;\n\n position: absolute;\n top: 50%;\n\n display: block;\n\n width: 20px;\n height: 20px;\n padding: 0;\n transform: translate(0, -50%);\n\n cursor: pointer;\n\n color: transparent;\n border: none;\n outline: none;\n background: transparent;\n}\n.slick-prev:hover,\n.slick-prev:focus,\n.slick-next:hover,\n.slick-next:focus\n{\n color: transparent;\n outline: none;\n background: transparent;\n}\n.slick-prev:hover:before,\n.slick-prev:focus:before,\n.slick-next:hover:before,\n.slick-next:focus:before\n{\n opacity: 1;\n}\n.slick-prev.slick-disabled:before,\n.slick-next.slick-disabled:before\n{\n opacity: .25;\n}\n\n.slick-prev:before,\n.slick-next:before\n{\n font-family: 'slick';\n font-size: 20px;\n line-height: 1;\n\n opacity: .75;\n color: white;\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.slick-prev\n{\n left: -25px;\n}\n[dir='rtl'] .slick-prev\n{\n right: -25px;\n left: auto;\n}\n.slick-prev:before\n{\n content: '←';\n}\n[dir='rtl'] .slick-prev:before\n{\n content: '→';\n}\n\n.slick-next\n{\n right: -25px;\n}\n[dir='rtl'] .slick-next\n{\n right: auto;\n left: -25px;\n}\n.slick-next:before\n{\n content: '→';\n}\n[dir='rtl'] .slick-next:before\n{\n content: '←';\n}\n\n/* Dots */\n.slick-dotted.slick-slider\n{\n margin-bottom: 30px;\n}\n\n.slick-dots\n{\n position: absolute;\n bottom: -25px;\n\n display: block;\n\n width: 100%;\n padding: 0;\n margin: 0;\n\n list-style: none;\n\n text-align: center;\n}\n.slick-dots li\n{\n position: relative;\n\n display: inline-block;\n\n width: 20px;\n height: 20px;\n margin: 0 5px;\n padding: 0;\n\n cursor: pointer;\n}\n.slick-dots li button\n{\n font-size: 0;\n line-height: 0;\n\n display: block;\n\n width: 20px;\n height: 20px;\n padding: 5px;\n\n cursor: pointer;\n\n color: transparent;\n border: 0;\n outline: none;\n background: transparent;\n}\n.slick-dots li button:hover,\n.slick-dots li button:focus\n{\n outline: none;\n}\n.slick-dots li button:hover:before,\n.slick-dots li button:focus:before\n{\n opacity: 1;\n}\n.slick-dots li button:before\n{\n font-family: 'slick';\n font-size: 6px;\n line-height: 20px;\n\n position: absolute;\n top: 0;\n left: 0;\n\n width: 20px;\n height: 20px;\n\n content: '•';\n text-align: center;\n\n opacity: .25;\n color: black;\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.slick-dots li.slick-active button:before\n{\n opacity: .75;\n color: black;\n}\n");f(".carousel .slick-arrow {\n display: none !important; }\n");var we=["className","autoplay","children"],ke=i((function(i,s){var l=i.className,c=i.autoplay,d=i.children,f=e(i,we),p=o(null),h=t({dots:!0,fade:!0,infinite:!0,slidesToShow:1,slidesToScroll:1,autoplay:c,speed:500,autoplaySpeed:2e3,cssEase:"linear"},f);return a(s,(function(){return{prev:function(){p.current.slickPrev()},next:function(){p.current.slickNext()}}})),r.createElement(Se,n({className:u("carousel",l),ref:p},h),d)}));ke.defaultProps={className:void 0,autoplay:!1,children:void 0},ke.propTypes={className:d.string,autoplay:d.bool,children:d.arrayOf(d.any)};export{ke as default};
|