@fluidattacks/design 1.6.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +428 -0
- package/dist/index.mjs +10813 -0
- package/dist/types/components/@core/index.d.ts +5 -0
- package/dist/types/components/@core/styles.d.ts +6 -0
- package/dist/{src → types}/components/@core/types.d.ts +2 -2
- package/dist/{src → types}/components/@core/utils.d.ts +2 -2
- package/dist/{src → types}/components/@core/variants/utils.d.ts +2 -2
- package/dist/{src → types}/components/accordion/accordion-content/index.d.ts +1 -1
- package/dist/types/components/accordion/index.d.ts +4 -0
- package/dist/types/components/alert/index.d.ts +4 -0
- package/dist/types/components/alert/styles.d.ts +9 -0
- package/dist/{src → types}/components/alert/types.d.ts +2 -2
- package/dist/types/components/button/index.d.ts +4 -0
- package/dist/types/components/button/styles.d.ts +9 -0
- package/dist/{src → types}/components/button/types.d.ts +3 -3
- package/dist/types/components/carousel/index.d.ts +4 -0
- package/dist/types/components/carousel/styles.d.ts +10 -0
- package/dist/types/components/checkbox/index.d.ts +3 -0
- package/dist/types/components/checkbox/styles.d.ts +7 -0
- package/dist/{src → types}/components/checkbox/types.d.ts +1 -1
- package/dist/{src → types}/components/cloud-image/index.d.ts +2 -2
- package/dist/{src → types}/components/cloud-image/types.d.ts +1 -1
- package/dist/{src → types}/components/code-snippet/index.d.ts +1 -1
- package/dist/types/components/code-snippet/location-code/index.d.ts +5 -0
- package/dist/types/components/code-snippet/styles.d.ts +3 -0
- package/dist/{src → types}/components/colors/index.d.ts +3 -3
- package/dist/types/components/container/index.d.ts +4 -0
- package/dist/types/components/container/styles.d.ts +9 -0
- package/dist/{src → types}/components/container/types.d.ts +2 -2
- package/dist/{src → types}/components/content-card/index.d.ts +1 -1
- package/dist/types/components/content-card/styles.d.ts +2 -0
- package/dist/{src → types}/components/content-card/types.d.ts +1 -1
- package/dist/{src → types}/components/content-card-carousel/index.d.ts +1 -1
- package/dist/{src → types}/components/content-card-carousel/scroll-buttons/index.d.ts +1 -1
- package/dist/types/components/content-card-carousel/styles.d.ts +3 -0
- package/dist/{src → types}/components/content-card-carousel/types.d.ts +1 -1
- package/dist/types/components/divider/index.d.ts +3 -0
- package/dist/{src → types}/components/divider/types.d.ts +1 -1
- package/dist/{src → types}/components/file-preview/index.d.ts +1 -1
- package/dist/types/components/file-preview/styles.d.ts +6 -0
- package/dist/{src → types}/components/file-preview/utils.d.ts +1 -1
- package/dist/{src → types}/components/form/index.d.ts +3 -3
- package/dist/types/components/form/styles.d.ts +4 -0
- package/dist/types/components/grid-layout/styles.d.ts +12 -0
- package/dist/types/components/icon/index.d.ts +3 -0
- package/dist/types/components/icon/styles.d.ts +14 -0
- package/dist/{src → types}/components/icon/types.d.ts +2 -2
- package/dist/types/components/icon-button/index.d.ts +3 -0
- package/dist/types/components/icon-button/styles.d.ts +9 -0
- package/dist/{src → types}/components/icon-button/types.d.ts +4 -4
- package/dist/types/components/inputs/fields/phone/index.d.ts +3 -0
- package/dist/types/components/inputs/fields/phone/styles.d.ts +6 -0
- package/dist/types/components/inputs/fields/text-input/index.d.ts +3 -0
- package/dist/types/components/inputs/index.d.ts +4 -0
- package/dist/{src → types}/components/inputs/label/index.d.ts +1 -1
- package/dist/{src → types}/components/inputs/outline-container/index.d.ts +2 -2
- package/dist/types/components/inputs/styles.d.ts +3 -0
- package/dist/{src → types}/components/inputs/types.d.ts +2 -2
- package/dist/{src → types}/components/interactive-card/icon/index.d.ts +1 -1
- package/dist/{src → types}/components/interactive-card/index.d.ts +1 -1
- package/dist/types/components/interactive-card/styles.d.ts +3 -0
- package/dist/{src → types}/components/interactive-card/types.d.ts +1 -1
- package/dist/{src → types}/components/language-selector/index.d.ts +1 -1
- package/dist/{src → types}/components/language-selector/item-list/index.d.ts +1 -1
- package/dist/types/components/language-selector/styles.d.ts +5 -0
- package/dist/{src → types}/components/language-selector/types.d.ts +1 -1
- package/dist/{src → types}/components/link/index.d.ts +2 -2
- package/dist/types/components/link/styles.d.ts +8 -0
- package/dist/{src → types}/components/list-item/index.d.ts +2 -2
- package/dist/types/components/list-item/styles.d.ts +3 -0
- package/dist/{src → types}/components/list-item/types.d.ts +2 -2
- package/dist/{src → types}/components/little-flag/index.d.ts +1 -1
- package/dist/{src → types}/components/little-flag/styles.d.ts +1 -1
- package/dist/{src → types}/components/logo/index.d.ts +1 -1
- package/dist/{src → types}/components/logo-carousel/index.d.ts +1 -1
- package/dist/types/components/logo-carousel/styles.d.ts +4 -0
- package/dist/{src → types}/components/lottie/index.d.ts +1 -1
- package/dist/types/components/lottie/styles.d.ts +41 -0
- package/dist/{src → types}/components/lottie/types.d.ts +1 -1
- package/dist/{src → types}/components/message-banner/index.d.ts +1 -1
- package/dist/types/components/message-banner/styles.d.ts +2 -0
- package/dist/{src → types}/components/message-banner/types.d.ts +3 -3
- package/dist/{src → types}/components/message-banner/utils.d.ts +2 -2
- package/dist/{src → types}/components/notification/index.d.ts +1 -1
- package/dist/types/components/notification/styles.d.ts +7 -0
- package/dist/types/components/notification/utils.d.ts +4 -0
- package/dist/types/components/notification-sign/index.d.ts +3 -0
- package/dist/types/components/notification-sign/styles.d.ts +9 -0
- package/dist/{src → types}/components/notification-sign/types.d.ts +1 -1
- package/dist/{src → types}/components/number-input/index.d.ts +2 -2
- package/dist/types/components/number-input/styles.d.ts +3 -0
- package/dist/{src → types}/components/number-input/types.d.ts +1 -1
- package/dist/{src → types}/components/plan-card/index.d.ts +1 -1
- package/dist/types/components/plan-card/styles.d.ts +3 -0
- package/dist/{src → types}/components/plan-card/types.d.ts +1 -1
- package/dist/{src → types}/components/plan-card/utils.d.ts +1 -1
- package/dist/{src → types}/components/progress-bar/index.d.ts +1 -1
- package/dist/types/components/progress-bar/styles.d.ts +6 -0
- package/dist/{src → types}/components/progress-bar/types.d.ts +1 -1
- package/dist/types/components/radio-button/index.d.ts +3 -0
- package/dist/types/components/radio-button/styles.d.ts +7 -0
- package/dist/{src → types}/components/radio-button/types.d.ts +1 -1
- package/dist/{src → types}/components/search-bar/index.d.ts +1 -1
- package/dist/{src → types}/components/search-bar/item-searching/index.d.ts +1 -1
- package/dist/types/components/search-bar/styles.d.ts +15 -0
- package/dist/{src → types}/components/search-bar/types.d.ts +1 -1
- package/dist/{src → types}/components/search-bar/utils.d.ts +1 -1
- package/dist/{src → types}/components/step-lapse/index.d.ts +1 -1
- package/dist/types/components/step-lapse/styles.d.ts +8 -0
- package/dist/{src → types}/components/step-lapse/types.d.ts +1 -1
- package/dist/{src → types}/components/table-button/index.d.ts +1 -1
- package/dist/types/components/table-button/styles.d.ts +2 -0
- package/dist/{src → types}/components/table-button/types.d.ts +2 -2
- package/dist/{src → types}/components/tabs/fixed-tabs/index.d.ts +1 -1
- package/dist/{src → types}/components/tabs/index.d.ts +3 -3
- package/dist/types/components/tabs/styles.d.ts +4 -0
- package/dist/{src → types}/components/tabs/tab/index.d.ts +1 -1
- package/dist/{src → types}/components/tabs/types.d.ts +1 -1
- package/dist/{src → types}/components/tag/index.d.ts +1 -1
- package/dist/types/components/tag/styles.d.ts +7 -0
- package/dist/{src → types}/components/tag/types.d.ts +1 -1
- package/dist/{src → types}/components/toggle/index.d.ts +2 -2
- package/dist/types/components/toggle/styles.d.ts +4 -0
- package/dist/{src → types}/components/toggle/types.d.ts +2 -2
- package/dist/{src → types}/components/toggle-buttons/index.d.ts +1 -1
- package/dist/types/components/toggle-buttons/styles.d.ts +3 -0
- package/dist/types/components/tooltip/index.d.ts +4 -0
- package/dist/types/components/tooltip/styles.d.ts +7 -0
- package/dist/{src → types}/components/tooltip/types.d.ts +2 -2
- package/dist/{src → types}/components/tour/index.d.ts +2 -2
- package/dist/{src → types}/components/tour/types.d.ts +1 -1
- package/dist/types/components/typography/heading/index.d.ts +3 -0
- package/dist/types/components/typography/index.d.ts +3 -0
- package/dist/types/components/typography/styles.d.ts +23 -0
- package/dist/types/components/typography/text/index.d.ts +3 -0
- package/dist/{src → types}/components/typography/types.d.ts +2 -2
- package/dist/types/hooks/index.d.ts +4 -0
- package/dist/{src → types}/hooks/use-cloudinary-image.d.ts +1 -1
- package/dist/types/index.d.ts +42 -0
- package/package.json +8 -7
- package/dist/design.js +0 -2256
- package/dist/design.mjs +0 -22131
- package/dist/src/components/@core/index.d.ts +0 -5
- package/dist/src/components/@core/styles.d.ts +0 -6
- package/dist/src/components/accordion/index.d.ts +0 -4
- package/dist/src/components/alert/index.d.ts +0 -4
- package/dist/src/components/alert/styles.d.ts +0 -9
- package/dist/src/components/button/index.d.ts +0 -4
- package/dist/src/components/button/styles.d.ts +0 -9
- package/dist/src/components/carousel/index.d.ts +0 -4
- package/dist/src/components/carousel/styles.d.ts +0 -10
- package/dist/src/components/checkbox/index.d.ts +0 -3
- package/dist/src/components/checkbox/styles.d.ts +0 -7
- package/dist/src/components/code-snippet/location-code/index.d.ts +0 -3
- package/dist/src/components/code-snippet/styles.d.ts +0 -3
- package/dist/src/components/container/index.d.ts +0 -4
- package/dist/src/components/container/styles.d.ts +0 -9
- package/dist/src/components/content-card/styles.d.ts +0 -2
- package/dist/src/components/content-card-carousel/styles.d.ts +0 -3
- package/dist/src/components/divider/index.d.ts +0 -3
- package/dist/src/components/file-preview/styles.d.ts +0 -6
- package/dist/src/components/form/styles.d.ts +0 -4
- package/dist/src/components/grid-layout/styles.d.ts +0 -12
- package/dist/src/components/icon/index.d.ts +0 -3
- package/dist/src/components/icon/styles.d.ts +0 -14
- package/dist/src/components/icon-button/index.d.ts +0 -3
- package/dist/src/components/icon-button/styles.d.ts +0 -9
- package/dist/src/components/inputs/fields/phone/index.d.ts +0 -3
- package/dist/src/components/inputs/fields/phone/styles.d.ts +0 -6
- package/dist/src/components/inputs/fields/text-input/index.d.ts +0 -3
- package/dist/src/components/inputs/index.d.ts +0 -4
- package/dist/src/components/inputs/styles.d.ts +0 -3
- package/dist/src/components/interactive-card/styles.d.ts +0 -3
- package/dist/src/components/language-selector/styles.d.ts +0 -5
- package/dist/src/components/link/styles.d.ts +0 -8
- package/dist/src/components/list-item/styles.d.ts +0 -3
- package/dist/src/components/logo-carousel/styles.d.ts +0 -4
- package/dist/src/components/lottie/styles.d.ts +0 -41
- package/dist/src/components/message-banner/styles.d.ts +0 -2
- package/dist/src/components/notification/styles.d.ts +0 -7
- package/dist/src/components/notification/utils.d.ts +0 -4
- package/dist/src/components/notification-sign/index.d.ts +0 -3
- package/dist/src/components/notification-sign/styles.d.ts +0 -9
- package/dist/src/components/number-input/styles.d.ts +0 -3
- package/dist/src/components/plan-card/styles.d.ts +0 -3
- package/dist/src/components/progress-bar/styles.d.ts +0 -6
- package/dist/src/components/radio-button/index.d.ts +0 -3
- package/dist/src/components/radio-button/styles.d.ts +0 -7
- package/dist/src/components/search-bar/styles.d.ts +0 -15
- package/dist/src/components/step-lapse/styles.d.ts +0 -8
- package/dist/src/components/table-button/styles.d.ts +0 -2
- package/dist/src/components/tabs/styles.d.ts +0 -4
- package/dist/src/components/tag/styles.d.ts +0 -7
- package/dist/src/components/toggle/styles.d.ts +0 -4
- package/dist/src/components/toggle-buttons/styles.d.ts +0 -3
- package/dist/src/components/tooltip/index.d.ts +0 -4
- package/dist/src/components/tooltip/styles.d.ts +0 -7
- package/dist/src/components/typography/heading/index.d.ts +0 -3
- package/dist/src/components/typography/index.d.ts +0 -3
- package/dist/src/components/typography/styles.d.ts +0 -23
- package/dist/src/components/typography/text/index.d.ts +0 -3
- package/dist/src/hooks/index.d.ts +0 -4
- package/dist/src/index.d.ts +0 -41
- package/dist/vite.config.d.ts +0 -3
- /package/dist/{src → types}/components/@core/constants.d.ts +0 -0
- /package/dist/{src → types}/components/accordion/types.d.ts +0 -0
- /package/dist/{src → types}/components/carousel/types.d.ts +0 -0
- /package/dist/{src → types}/components/code-snippet/types.d.ts +0 -0
- /package/dist/{src → types}/components/content-card/category-tag/index.d.ts +0 -0
- /package/dist/{src → types}/components/content-card/event-date/index.d.ts +0 -0
- /package/dist/{src → types}/components/file-preview/types.d.ts +0 -0
- /package/dist/{src → types}/components/form/types.d.ts +0 -0
- /package/dist/{src → types}/components/link/types.d.ts +0 -0
- /package/dist/{src → types}/components/little-flag/types.d.ts +0 -0
- /package/dist/{src → types}/components/logo/types.d.ts +0 -0
- /package/dist/{src → types}/components/logo-carousel/types.d.ts +0 -0
- /package/dist/{src → types}/components/logo-carousel/utils.d.ts +0 -0
- /package/dist/{src → types}/components/notification/types.d.ts +0 -0
- /package/dist/{src → types}/components/plan-card/recommended-tag/index.d.ts +0 -0
- /package/dist/{src → types}/components/progress-bar/utils.d.ts +0 -0
- /package/dist/{src → types}/components/toggle-buttons/types.d.ts +0 -0
- /package/dist/{src → types}/hooks/use-carousel.d.ts +0 -0
- /package/dist/{src → types}/hooks/use-click-outside.d.ts +0 -0
- /package/dist/{src → types}/utils/open-url.d.ts +0 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-\\[500px\\]{height:500px}.w-\\[400px\\]{width:400px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-72{max-width:18rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}.flex-shrink{flex-shrink:1}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-12{padding-left:3rem;padding-right:3rem}.px-8{padding-left:2rem;padding-right:2rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-\\[90px\\]{padding-top:90px;padding-bottom:90px}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@property --animate-position{syntax: "<angle>"; initial-value: 45deg; inherits: false;}@property --border-angle{syntax: "<angle>"; initial-value: 0deg; inherits: false;}@property --color-1{syntax: "<color>"; initial-value: #f32637; inherits: false;}@property --color-2{syntax: "<color>"; initial-value: #b8075d; inherits: false;}@property --btn-padding-x{syntax: "<length>"; initial-value: 16px; inherits: false;}@property --btn-padding-y{syntax: "<length>"; initial-value: 10px; inherits: false;}@property --btn-spacing{syntax: "<length>"; initial-value: 8px; inherits: false;}@property --grid-columns{syntax: "<number>"; initial-value: 12; inherits: false;}@property --grid-width{syntax: "<length>"; initial-value: 1440px; inherits: false;}@property --angle-grad{syntax: "<angle>"; initial-value: 45deg; inherits: false;}@property --opacity-grad{syntax: "<number>"; initial-value: 0; inherits: false;}@property --tag-padding-x{syntax: "<length>"; initial-value: 4px; inherits: false;}@property --tag-padding-y{syntax: "<length>"; initial-value: 0; inherits: false;}@keyframes spinAnimation{to{--border-angle: 360deg}}@keyframes gradientAnimation{0%{--animate-position: 45deg}33%{--animate-position: -50deg}66%{--animate-position: -100deg}to{--animate-position: 45deg}}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("styled-components"),e=require("react"),n=require("react-dom"),i=require("lodash"),r=require("react-router-dom");function s(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const n in t)if("default"!==n){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}return e.default=t,Object.freeze(e)}const o=s(e),a=s(n),l=t=>({getVariant:(e,n)=>t(e)[n]}),c=["padding","px","py","pl","pr","pt","pb","margin","mx","my","ml","mr","mt","mb","zIndex","position","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","scroll","visibility","display","height","width","maxHeight","maxWidth","minHeight","minWidth","shadow","bgColor","bgGradient","gap","flexDirection","flexGrow","justify","justifySelf","alignItems","alignSelf","wrap","color","fontFamily","fontSize","fontWeight","textAlign","whiteSpace","letterSpacing","lineSpacing","textDecoration","textOverflow","whiteSpace","wordBreak","wordWrap","cursor","transition","borderColorHover","bgColorHover","shadowHover"];var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var p,d,f={exports:{}},m={},g={};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.development.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
"production"===process.env.NODE_ENV?f.exports=function(){if(p)return m;p=1;var t=e,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(t,e,i){var a,l={},c=null,h=null;for(a in void 0!==i&&(c=""+i),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(h=e.ref),e)r.call(e,a)&&!o.hasOwnProperty(a)&&(l[a]=e[a]);if(t&&t.defaultProps)for(a in e=t.defaultProps)void 0===l[a]&&(l[a]=e[a]);return{$$typeof:n,type:t,key:c,ref:h,props:l,_owner:s.current}}return m.Fragment=i,m.jsx=a,m.jsxs=a,m}():f.exports=(d||(d=1,"production"!==process.env.NODE_ENV&&function(){var t,n=e,i=Symbol.for("react.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y=Symbol.iterator,v=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];!function(t,e,n){var i=v.ReactDebugCurrentFrame.getStackAddendum();""!==i&&(e+="%s",n=n.concat([i]));var r=n.map((function(t){return String(t)}));r.unshift("Warning: "+e),Function.prototype.apply.call(console.error,console,r)}(0,t,n)}function x(t){return t.displayName||"Context"}function w(t){if(null==t)return null;if("number"==typeof t.tag&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case s:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case p:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case c:return x(t)+".Consumer";case l:return x(t._context)+".Provider";case h:return function(t,e,n){var i=t.displayName;if(i)return i;var r=e.displayName||e.name||"";return""!==r?n+"("+r+")":n}(t,t.render,"ForwardRef");case d:var e=t.displayName||null;return null!==e?e:w(t.type)||"Memo";case f:var n=t,i=n._payload,m=n._init;try{return w(m(i))}catch(g){return null}}return null}t=Symbol.for("react.module.reference");var k,_,S,$,C,A,P,T=Object.assign,E=0;function j(){}j.__reactDisabledLog=!0;var D,M=v.ReactCurrentDispatcher;function F(t,e,n){if(void 0===D)try{throw Error()}catch(r){var i=r.stack.trim().match(/\n( *(at )?)/);D=i&&i[1]||""}return"\n"+D+t}var I,R=!1,L="function"==typeof WeakMap?WeakMap:Map;function O(t,e){if(!t||R)return"";var n,i=I.get(t);if(void 0!==i)return i;R=!0;var r,s=Error.prepareStackTrace;Error.prepareStackTrace=void 0,r=M.current,M.current=null,function(){if(0===E){k=console.log,_=console.info,S=console.warn,$=console.error,C=console.group,A=console.groupCollapsed,P=console.groupEnd;var t={configurable:!0,enumerable:!0,value:j,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}E++}();try{if(e){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(o,[])}catch(f){n=f}Reflect.construct(t,[],o)}else{try{o.call()}catch(f){n=f}t.call(o.prototype)}}else{try{throw Error()}catch(f){n=f}t()}}catch(m){if(m&&n&&"string"==typeof m.stack){for(var a=m.stack.split("\n"),l=n.stack.split("\n"),c=a.length-1,h=l.length-1;c>=1&&h>=0&&a[c]!==l[h];)h--;for(;c>=1&&h>=0;c--,h--)if(a[c]!==l[h]){if(1!==c||1!==h)do{if(c--,--h<0||a[c]!==l[h]){var u="\n"+a[c].replace(" at new "," at ");return t.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",t.displayName)),"function"==typeof t&&I.set(t,u),u}}while(c>=1&&h>=0);break}}}finally{R=!1,M.current=r,function(){if(0==--E){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},t,{value:k}),info:T({},t,{value:_}),warn:T({},t,{value:S}),error:T({},t,{value:$}),group:T({},t,{value:C}),groupCollapsed:T({},t,{value:A}),groupEnd:T({},t,{value:P})})}E<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=s}var p=t?t.displayName||t.name:"",d=p?F(p):"";return"function"==typeof t&&I.set(t,d),d}function z(t,e,n){if(null==t)return"";if("function"==typeof t)return O(t,!(!(i=t.prototype)||!i.isReactComponent));var i;if("string"==typeof t)return F(t);switch(t){case u:return F("Suspense");case p:return F("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case h:return O(t.render,!1);case d:return z(t.type,e,n);case f:var r=t,s=r._payload,o=r._init;try{return z(o(s),e,n)}catch(a){}}return""}I=new L;var N=Object.prototype.hasOwnProperty,V={},q=v.ReactDebugCurrentFrame;function B(t){if(t){var e=t._owner,n=z(t.type,t._source,e?e.type:null);q.setExtraStackFrame(n)}else q.setExtraStackFrame(null)}var W=Array.isArray;function U(t){return W(t)}function H(t){return""+t}function G(t){if(function(t){try{return H(t),!1}catch(e){return!0}}(t))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",(e=t,"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object")),H(t);var e}var Q,J,K,Y=v.ReactCurrentOwner,X={key:!0,ref:!0,__self:!0,__source:!0};K={};var Z,tt=v.ReactCurrentOwner,et=v.ReactDebugCurrentFrame;function nt(t){if(t){var e=t._owner,n=z(t.type,t._source,e?e.type:null);et.setExtraStackFrame(n)}else et.setExtraStackFrame(null)}function it(t){return"object"==typeof t&&null!==t&&t.$$typeof===i}function rt(){if(tt.current){var t=w(tt.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}Z=!1;var st={};function ot(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=rt();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!st[n]){st[n]=!0;var i="";t&&t._owner&&t._owner!==tt.current&&(i=" It was passed a child from "+w(t._owner.type)+"."),nt(t),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,i),nt(null)}}}function at(t,e){if("object"==typeof t)if(U(t))for(var n=0;n<t.length;n++){var i=t[n];it(i)&&ot(i,e)}else if(it(t))t._store&&(t._store.validated=!0);else if(t){var r=function(t){if(null===t||"object"!=typeof t)return null;var e=y&&t[y]||t["@@iterator"];return"function"==typeof e?e:null}(t);if("function"==typeof r&&r!==t.entries)for(var s,o=r.call(t);!(s=o.next()).done;)it(s.value)&&ot(s.value,e)}}function lt(e,n,r,g,y,v){var x,k="string"==typeof(x=e)||"function"==typeof x||x===s||x===a||x===o||x===u||x===p||x===m||"object"==typeof x&&null!==x&&(x.$$typeof===f||x.$$typeof===d||x.$$typeof===l||x.$$typeof===c||x.$$typeof===h||x.$$typeof===t||void 0!==x.getModuleId);if(!k){var _,S="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),S+=rt(),null===e?_="null":U(e)?_="array":void 0!==e&&e.$$typeof===i?(_="<"+(w(e.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):_=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,S)}var $=function(t,e,n,r,s){var o,a,l,c,h={},u=null,p=null;for(o in void 0!==n&&(G(n),u=""+n),function(t){if(N.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}(e)&&(G(e.key),u=""+e.key),function(t){if(N.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}(e)&&(p=e.ref,function(t,e){if("string"==typeof t.ref&&Y.current&&e&&Y.current.stateNode!==e){var n=w(Y.current.type);K[n]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',w(Y.current.type),t.ref),K[n]=!0)}}(e,s)),e)N.call(e,o)&&!X.hasOwnProperty(o)&&(h[o]=e[o]);if(t&&t.defaultProps){var d=t.defaultProps;for(o in d)void 0===h[o]&&(h[o]=d[o])}if(u||p){var f="function"==typeof t?t.displayName||t.name||"Unknown":t;u&&(a=h,l=f,(c=function(){Q||(Q=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))}).isReactWarning=!0,Object.defineProperty(a,"key",{get:c,configurable:!0})),p&&function(t,e){var n=function(){J||(J=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(h,f)}return function(t,e,n,r,s,o,a){var l={$$typeof:i,type:t,key:e,ref:n,props:a,_owner:o,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(t,u,p,s,r,Y.current,h)}(e,n,r,y,v);if(null==$)return $;if(k){var C=n.children;if(void 0!==C)if(g)if(U(C)){for(var A=0;A<C.length;A++)at(C[A],e);Object.freeze&&Object.freeze(C)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else at(C,e)}return e===s?function(t){for(var e=Object.keys(t.props),n=0;n<e.length;n++){var i=e[n];if("children"!==i&&"key"!==i){nt(t),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),nt(null);break}}null!==t.ref&&(nt(t),b("Invalid attribute `ref` supplied to `React.Fragment`."),nt(null))}($):function(t){var e,n=t.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)e=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==h&&n.$$typeof!==d)return;e=n.propTypes}if(e){var i=w(n);!function(t,e,n,i,r){var s=Function.call.bind(N);for(var o in t)if(s(t,o)){var a=void 0;try{if("function"!=typeof t[o]){var l=Error((i||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}a=t[o](e,o,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){a=c}!a||a instanceof Error||(B(r),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",n,o,typeof a),B(null)),a instanceof Error&&!(a.message in V)&&(V[a.message]=!0,B(r),b("Failed %s type: %s",n,a.message),B(null))}}(e,t.props,"prop",i,t)}else void 0===n.PropTypes||Z||(Z=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}($),$}g.Fragment=s,g.jsx=function(t,e,n){return lt(t,e,n,!1)},g.jsxs=function(t,e,n){return lt(t,e,n,!0)}}()),g);var y=f.exports;const v={typography:{type:{primary:"Roboto, sans-serif",poppins:"'Poppins', sans-serif",mono:"'Space Mono', monospace"},heading:{xxl:"64px",xl:"48px",lg:"32px",md:"24px",sm:"20px",xs:"16px"},text:{xl:"20px",lg:"18px",md:"16px",sm:"14px",xs:"12px"},weight:{bold:"700",semibold:"600",regular:"400"}},shadows:{none:"none",sm:"0px 1px 2px 0px rgba(16, 24, 40, 0.15)",md:"0px 4px 6px 0px rgba(16, 24, 40, 0.15)",lg:"0px 8px 24px 0px rgba(16, 24, 40, 0.15)"},breakpoints:{mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},spacing:{0:"0rem",.125:"0.125rem",.25:"0.25rem",.5:"0.5rem",.625:"0.625rem",.75:"0.75rem",1:"1rem",1.25:"1.25rem",1.5:"1.5rem",1.75:"1.75rem",2:"2rem",2.25:"2.25rem",2.5:"2.5rem",3:"3rem",3.5:"3.5rem",4:"4rem",4.5:"4.5rem",5:"5rem",6:"6rem"},palette:{primary:{25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},complementary:{25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},error:{25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},info:{25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},warning:{25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},success:{25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},black:"#0c111d",white:"#ffffff",gray:{25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},gradients:{"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"}}},b=(t,e)=>void 0===e?"":`${t}: ${e};`,x=t=>{const e=t.py??t.pt??0,n=t.px??t.pr??0,i=t.py??t.pb??0,r=t.px??t.pl??0;if(t.padding){const[e,n,i,r]=t.padding;return`padding: ${v.spacing[e]} ${v.spacing[n]} ${v.spacing[i]} ${v.spacing[r]};`}return`padding: ${v.spacing[e]} ${v.spacing[n]} ${v.spacing[i]} ${v.spacing[r]};`},w=t=>{const e=t.my??t.mt??0,n=t.mx??t.mr??0,i=t.my??t.mb??0,r=t.mx??t.ml??0;if(t.margin){const[e,n,i,r]=t.margin;return`margin: ${v.spacing[e]} ${v.spacing[n]} ${v.spacing[i]} ${v.spacing[r]};`}return`margin: ${v.spacing[e]} ${v.spacing[n]} ${v.spacing[i]} ${v.spacing[r]};`},k=t=>`\n ${b("position",t.position)}\n ${b("top",t.top)}\n ${b("right",t.right)}\n ${b("bottom",t.bottom)}\n ${b("left",t.left)}\n ${b("z-index",t.zIndex)}\n `,_=t=>`\n ${b("border",t.border)}\n ${b("border-top",t.borderTop)}\n ${b("border-right",t.borderRight)}\n ${b("border-bottom",t.borderBottom)}\n ${b("border-left",t.borderLeft)}\n ${b("border-color",t.borderColor)}\n ${b("border-radius",t.borderRadius)}\n `,S=t=>{const e=t.scroll?`\n ${p=t.scroll,p.includes("x")?"overflow-x: auto;":""}\n ${(t=>t.includes("y")?"overflow-y: auto;":"")(t.scroll)}\n `:"",n=b("visibility",t.visibility),i=b("display",t.display),r=b("height",t.height),s=b("width",t.width),o=b("max-height",t.maxHeight),a=b("max-width",t.maxWidth),l=b("min-height",t.minHeight),c=b("min-width",t.minWidth),h=b("box-shadow",t.shadow?v.shadows[t.shadow]:void 0),u=b("gap",void 0===t.gap?void 0:v.spacing[t.gap]);var p;return`\n ${e}\n ${n}\n ${i}\n ${r}\n ${s}\n ${o}\n ${a}\n ${l}\n ${c}\n ${h}\n ${b("background-color",t.bgColor)}\n ${b("background",t.bgGradient)}\n ${u}\n ${b("flex-direction",t.flexDirection)}\n ${b("flex-grow",t.flexGrow)}\n ${b("justify-content",t.justify)}\n ${b("justify-self",t.justifySelf)}\n ${b("align-items",t.alignItems)}\n ${b("align-self",t.alignSelf)}\n ${b("flex-wrap",t.wrap)}\n `},$=t=>`\n ${b("color",t.color)}\n ${b("font-family",t.fontFamily)}\n ${b("font-size",t.fontSize)}\n ${b("font-weight",t.fontWeight)}\n ${b("line-spacing",t.letterSpacing)}\n ${b("line-height",t.lineSpacing)}\n ${b("text-align",t.textAlign)}\n ${b("text-decoration",t.textDecoration)}\n ${b("text-overflow",t.textOverflow)}\n ${b("white-space",t.whiteSpace)}\n ${b("word-break",t.wordBreak)}\n ${b("word-wrap",t.wordWrap)}\n `,C=t=>{const e=b("cursor",t.cursor),n=b("border-color",t.borderColorHover),i=b("background-color",t.bgColorHover),r=b("box-shadow",void 0===t.shadowHover?void 0:v.shadows[t.shadowHover]);return`\n ${e}\n\n &:hover {\n ${b("transition",t.transition)||"transition: all 0.2s;"}\n ${n}\n ${i}\n ${r}\n }\n `},A=()=>({shouldForwardProp:t=>!c.includes(t)}),P=t.styled.div.withConfig(A())`
|
|
13
|
+
${x}
|
|
14
|
+
${w}
|
|
15
|
+
${k}
|
|
16
|
+
${S}
|
|
17
|
+
${$}
|
|
18
|
+
${_}
|
|
19
|
+
${C}
|
|
20
|
+
`,T=t.styled.button.withConfig(A())`
|
|
21
|
+
${x}
|
|
22
|
+
${w}
|
|
23
|
+
${k}
|
|
24
|
+
${S}
|
|
25
|
+
${$}
|
|
26
|
+
${_}
|
|
27
|
+
${C}
|
|
28
|
+
`,E=t.styled.p.withConfig(A())`
|
|
29
|
+
${x}
|
|
30
|
+
${w}
|
|
31
|
+
${k}
|
|
32
|
+
${S}
|
|
33
|
+
${$}
|
|
34
|
+
${_}
|
|
35
|
+
${C}
|
|
36
|
+
`,j=t.styled.span.withConfig(A())`
|
|
37
|
+
${x}
|
|
38
|
+
${w}
|
|
39
|
+
${k}
|
|
40
|
+
${S}
|
|
41
|
+
${$}
|
|
42
|
+
${_}
|
|
43
|
+
${C}
|
|
44
|
+
`,D=t.styled(P)`
|
|
45
|
+
${({theme:t,$center:e=!1,$styleMd:n,$styleSm:i})=>`\n ${e?"margin: auto;":""}\n\n @media screen\n and (min-width: ${t.breakpoints.mobile})\n and (max-width: ${t.breakpoints.tablet})\n {\n ${n};\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n ${i};\n }\n `}
|
|
46
|
+
`,M=e.forwardRef((function({as:t="div",center:e,children:n,id:i,onHover:r,onLeave:s,styleMd:o,styleSm:a,...l},c){return y.jsx(D,{$center:e,$styleMd:o,$styleSm:a,as:t,id:i,onMouseLeave:s,onMouseOver:r,ref:c,...l,children:n})})),F=t.styled(E)`
|
|
47
|
+
${({theme:t,$bgGradient:e="unset",$color:n=t.palette.gray[800],$display:i="block",$fontFamily:r=t.typography.type.primary,$fontWeight:s="bold",$letterSpacing:o=0,$lineSpacing:a=1.5,$lineSpacingSm:l,$size:c,$sizeMd:h,$sizeSm:u,$textFill:p="unset",$wordBreak:d="normal"})=>`\n background: ${e};\n color: ${n};\n display: ${i};\n font-family: ${r};\n font-size: ${t.typography.heading[c]};\n font-weight: ${t.typography.weight[s]};\n letter-spacing: ${o};\n line-height: ${t.spacing[a]};\n width: ${"block"===i?"100%":"auto"};\n word-break: ${d};\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: ${p};\n\n @media screen\n and (min-width: ${t.breakpoints.mobile})\n and (max-width: ${t.breakpoints.tablet})\n {\n font-size: ${t.typography.heading[h??c]};\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n font-size: ${t.typography.heading[u??c]};\n line-height: ${t.spacing[l??a]};\n }\n `}
|
|
48
|
+
`,I=t.styled(E)`
|
|
49
|
+
${({theme:t,$bgGradient:e="unset",$color:n=t.palette.gray[600],$display:i="block",$fontFamily:r=t.typography.type.primary,$fontWeight:s="regular",$letterSpacing:o=0,$lineSpacing:a=1.25,$lineSpacingSm:l,$size:c,$sizeMd:h,$sizeSm:u,$textFill:p="unset",$wordBreak:d="normal"})=>`\n background: ${e};\n color: ${n};\n display: ${i};\n font-family: ${r};\n font-size: ${t.typography.text[c]};\n font-weight: ${t.typography.weight[s]};\n letter-spacing: ${o};\n line-height: ${t.spacing[a]};\n width: ${"block"===i?"100%":"auto"};\n word-break: ${d};\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: ${p};\n\n @media screen\n and (min-width: ${t.breakpoints.mobile})\n and (max-width: ${t.breakpoints.tablet})\n {\n font-size: ${t.typography.text[h??c]};\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n font-size: ${t.typography.text[u??c]};\n line-height: ${t.spacing[l??a]};\n }\n `}
|
|
50
|
+
`,R=e.forwardRef((function({bgGradient:t,children:e,className:n,color:i,display:r,fontFamily:s,fontWeight:o,letterSpacing:a,lineSpacing:l,lineSpacingSm:c,size:h,sizeMd:u,sizeSm:p,textFill:d,wordBreak:f,...m},g){return y.jsx(F,{$bgGradient:t,$color:i,$display:r,$fontFamily:s,$fontWeight:o,$letterSpacing:a,$lineSpacing:l,$lineSpacingSm:c,$size:h,$sizeMd:u,$sizeSm:p,$textFill:d,$wordBreak:f,className:n,ref:g,...m,children:e})})),L=e.forwardRef((function({bgGradient:t,children:e,className:n,color:i,display:r,fontFamily:s,fontWeight:o,letterSpacing:a,lineSpacing:l,lineSpacingSm:c,size:h,sizeMd:u,sizeSm:p,textFill:d,wordBreak:f,...m},g){return y.jsx(I,{$bgGradient:t,$color:i,$display:r,$fontFamily:s,$fontWeight:o,$letterSpacing:a,$lineSpacing:l,$lineSpacingSm:c,$size:h,$sizeMd:u,$sizeSm:p,$textFill:d,$wordBreak:f,className:n,ref:g,...m,children:e})})),O=({isSelectedAndOpen:t,item:e})=>y.jsxs(M,{display:t?"block":"none",padding:[.75,.75,.75,.75],children:[e.description?y.jsx(L,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):void 0,e.extraElement?y.jsx(M,{children:e.extraElement}):void 0]}),z={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},N=t.styled(j)`
|
|
51
|
+
${({$clickable:t,$color:e="inherit",$disabled:n=!1,$hoverColor:i,$rotation:r,$size:s})=>`\n color: ${e};\n cursor: ${t?"pointer":"inherit"};\n font-size: ${z[s]};\n line-height: 0;\n vertical-align: middle;\n pointer-events: inherit;\n opacity: ${n?"0.5":"1"};\n\n > svg {\n transform: ${void 0===r?"":`rotate(${r}deg)`};\n }\n\n .fill-gradient-01 path {\n fill: url(/gradients.svg#gradient-01);\n fill: url(#gradient-01);\n }\n .fill-gradient-02 path {\n fill: url(/gradients.svg#gradient-02);\n fill: url(#gradient-02);\n }\n\n ${t?`&:hover {\n filter: ${i?"":"brightness(50%)"};\n color: ${i??""};\n }`:""}\n `}
|
|
52
|
+
`;t.styled.div`
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
transition: all 0.2s ease-in-out;
|
|
55
|
+
|
|
56
|
+
&:hover:not([disabled]) {
|
|
57
|
+
transform: scale(1.2);
|
|
58
|
+
}
|
|
59
|
+
`;const V=e.forwardRef((function({clickable:t,disabled:e,hoverColor:n,icon:i,iconClass:r="",iconColor:s,iconMask:o,iconSize:a,iconTransform:l,iconType:c="fa-solid",onClick:h,rotation:u,...p},d){return y.jsx(N,{$clickable:t,$color:s,$disabled:e,$hoverColor:n,$rotation:u,$size:a,"data-testid":`${i}-icon`,onClick:h,ref:d,...p,children:y.jsx("i",{className:`${c} fa-${i} ${r}`,...void 0!==o?{"data-fa-mask":o}:{},...void 0!==l?{"data-fa-transform":l}:{}})},`${c}-${i}`)})),q=e.forwardRef((function({aligned:n="end",items:i,bgColor:r},s){const o=t.useTheme(),[a,l]=e.useState(!1),[c,h]=e.useState(-1),u=e.useCallback((t=>()=>{h(t),l(t!==c||(t=>!t))}),[c]);return y.jsx(M,{ref:s,children:i.map(((t,e)=>{const s=e===c&&a;return y.jsxs(M,{bgColor:r??o.palette.white,children:[y.jsx(M,{bgColorHover:o.palette.gray[100],borderBottom:s||e===i.length-1?"1px solid":void 0,borderColor:o.palette.gray[200],borderTop:"1px solid",cursor:"pointer",onClick:u(e),padding:[.75,.75,.75,.75],children:y.jsxs(M,{as:"summary",display:"flex",flexDirection:"end"===n?"row":"row-reverse",gap:.75,justify:"space-between",children:[y.jsx(L,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",children:t.title}),y.jsx(V,{icon:s?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),y.jsx(O,{isSelectedAndOpen:s,item:t})]},t.title)}))})})),B=t=>{switch(t){case"warning":return"triangle-exclamation";case"info":return"circle-info";case"success":return"circle-check";default:return"circle-exclamation"}},{getVariant:W}=l((t=>({error:`\n background: ${t.palette.error[50]};\n border: 1px solid ${t.palette.error[500]};\n color: ${t.palette.error[700]};\n\n button {\n color: ${t.palette.error[700]};\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.error[200]};\n color: ${t.palette.error[700]};\n }\n }\n `,info:`\n background: ${t.palette.info[50]};\n border: 1px solid ${t.palette.info[500]};\n color: ${t.palette.info[700]};\n\n button {\n color: ${t.palette.info[700]};\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.info[200]};\n color: ${t.palette.info[700]};\n }\n }\n `,success:`\n background: ${t.palette.success[50]};\n border: 1px solid ${t.palette.success[500]};\n color: ${t.palette.success[700]};\n\n button {\n color: ${t.palette.success[700]};\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.success[200]};\n color: ${t.palette.success[700]};\n }\n }\n `,warning:`\n background: ${t.palette.warning[50]};\n border: 1px solid ${t.palette.warning[500]};\n color: ${t.palette.warning[700]};\n\n button {\n color: ${t.palette.warning[700]};\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.warning[200]};\n color: ${t.palette.warning[700]};\n }\n }\n `}))),U=t.styled.div`
|
|
60
|
+
${({theme:t,$variant:e})=>`\n background: transparent;\n align-items: center;\n border-radius: ${t.spacing[.25]};\n display: inline-flex;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.bold};\n line-height: ${t.spacing[1.25]};\n min-width: 250px;\n width: 100%;\n padding: ${t.spacing[.75]};\n position: relative;\n gap: ${t.spacing[.75]};\n\n button {\n background-color: transparent;\n }\n\n ${W(t,e??"error")}\n `}
|
|
61
|
+
`,H=t.styled.div`
|
|
62
|
+
padding-right: 4px;
|
|
63
|
+
width: 100%;
|
|
64
|
+
`,{getVariant:G}=l((t=>({ghost:`\n background: transparent;\n border: none;\n color: ${t.palette.gray[800]};\n --btn-padding-x: ${t.spacing[.5]};\n --btn-padding-y: ${t.spacing[.625]};\n --btn-spacing: ${t.spacing[.25]};\n\n &:disabled {\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.gray[100]};\n color: ${t.palette.gray[800]};\n }\n `,ghostWeb:`\n --btn-padding-x: ${t.spacing[.5]};\n --btn-padding-y: ${t.spacing[.5]};\n background: transparent;\n border: none;\n color: ${t.palette.gray[800]};\n\n &:disabled {\n background: transparent;\n color: ${t.palette.gray[300]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.gray[100]};\n color: ${t.palette.gray[800]};\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n --btn-padding-x: ${t.spacing[.75]};\n --btn-padding-y: ${t.spacing[.75]};\n }\n `,link:`\n --btn-padding-x: 0;\n --btn-padding-y: 0;\n &.dark {\n color: ${t.palette.gray[200]};\n\n &:hover {\n color: ${t.palette.gray[400]};\n }\n }\n &.light {\n color: ${t.palette.gray[800]};\n\n &:hover {\n color: ${t.palette.gray[500]};\n }\n }\n `,primary:`\n background: ${t.palette.primary[500]};\n border: none;\n color: ${t.palette.white};\n --btn-spacing: ${t.spacing[.25]};\n\n &:disabled {\n background: ${t.palette.gray[200]};\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.primary[700]};\n color: ${t.palette.white};\n }\n `,primaryWeb:`\n background:\n linear-gradient(var(--animate-position), var(--color-1), var(--color-2));\n background-size: 100%;\n color: ${t.palette.white};\n animation: gradientAnimation 2.5s infinite;\n animation-timing-function: linear;\n\n &:hover {\n --color-1: ${t.palette.primary[700]};\n --color-2: ${t.palette.primary[700]};\n color: ${t.palette.white};\n }\n `,secondary:`\n background: ${t.palette.gray[800]};\n border: none;\n color: ${t.palette.white};\n --btn-spacing: ${t.spacing[.25]};\n\n &:disabled {\n background: ${t.palette.gray[200]};\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.gray[600]};\n color: ${t.palette.white};\n }\n `,secondaryWeb:`\n &.dark {\n background: transparent;\n border: 2px solid ${t.palette.white};\n color: ${t.palette.white};\n\n &:hover {\n background-color: ${t.palette.white};\n color: ${t.palette.primary[500]};\n }\n }\n &.light {\n color: ${t.palette.primary[500]};\n\n &::before {\n background: linear-gradient(var(--border-angle), var(--color-1), var(--color-2)) border-box;\n border-radius: ${t.spacing[.5]};\n content: "";\n position: absolute;\n inset: 0;\n border: 2px solid transparent;\n mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n mask-composite: exclude;\n animation: spinAnimation 1s infinite;\n }\n\n &:hover::before {\n --color-1: ${t.palette.primary[500]};\n --color-2: ${t.palette.primary[500]};\n }\n &:hover {\n background-color: ${t.palette.primary[500]};\n border-color: transparent;\n color: ${t.palette.white};\n }\n }\n `,tertiary:`\n background: transparent;\n border: 1px solid ${t.palette.primary[500]};\n color: ${t.palette.primary[500]};\n --btn-spacing: ${t.spacing[.25]};\n\n &:disabled {\n background: transparent;\n border: 1px solid ${t.palette.gray[200]};\n color: ${t.palette.gray[300]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.primary[500]};\n color: ${t.palette.white};\n }\n `}))),Q=t.styled(T)`
|
|
65
|
+
${({theme:t,$variant:e})=>`\n align-items: center;\n border-radius: var(--btn-spacing);\n cursor: pointer;\n display: inline-flex;\n gap: var(--btn-spacing);\n justify-content: center;\n padding: var(--btn-padding-y) var(--btn-padding-x);\n position: relative;\n text-align: start;\n transition: all 0.5s ease;\n white-space: nowrap;\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n ${"link"!==e?`--btn-padding-y: ${t.spacing[1]}`:""};\n }\n\n ${G(t,e??"primaryWeb")}\n `}
|
|
66
|
+
`,J=t.styled(Q)`
|
|
67
|
+
${({theme:t,$borderRadius:e="4px",$px:n=.5,$py:i=.5})=>`\n --btn-spacing: ${e};\n --btn-padding-x: ${t.spacing[n]};\n --btn-padding-y: ${t.spacing[i]};\n\n align-items: center;\n line-height: 0;\n text-align: center;\n\n > span {\n margin: 0 !important;\n }\n `}
|
|
68
|
+
`,K=Math.min,Y=Math.max,X=Math.round,Z=Math.floor,tt=t=>({x:t,y:t}),et={left:"right",right:"left",bottom:"top",top:"bottom"},nt={start:"end",end:"start"};function it(t,e,n){return Y(t,K(e,n))}function rt(t,e){return"function"==typeof t?t(e):t}function st(t){return t.split("-")[0]}function ot(t){return t.split("-")[1]}function at(t){return"x"===t?"y":"x"}function lt(t){return"y"===t?"height":"width"}function ct(t){return["top","bottom"].includes(st(t))?"y":"x"}function ht(t){return at(ct(t))}function ut(t){return t.replace(/start|end/g,(t=>nt[t]))}function pt(t){return t.replace(/left|right|bottom|top/g,(t=>et[t]))}function dt(t){return"number"!=typeof t?(e=t,{top:0,right:0,bottom:0,left:0,...e}):{top:t,right:t,bottom:t,left:t};var e}function ft(t){const{x:e,y:n,width:i,height:r}=t;return{width:i,height:r,top:n,left:e,right:e+i,bottom:n+r,x:e,y:n}}function mt(t,e,n){let{reference:i,floating:r}=t;const s=ct(e),o=ht(e),a=lt(o),l=st(e),c="y"===s,h=i.x+i.width/2-r.width/2,u=i.y+i.height/2-r.height/2,p=i[a]/2-r[a]/2;let d;switch(l){case"top":d={x:h,y:i.y-r.height};break;case"bottom":d={x:h,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:u};break;case"left":d={x:i.x-r.width,y:u};break;default:d={x:i.x,y:i.y}}switch(ot(e)){case"start":d[o]-=p*(n&&c?-1:1);break;case"end":d[o]+=p*(n&&c?-1:1)}return d}async function gt(t,e){var n;void 0===e&&(e={});const{x:i,y:r,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:p=!1,padding:d=0}=rt(e,t),f=dt(d),m=a[p?"floating"===u?"reference":"floating":u],g=ft(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(m)))||n?m:m.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:h,strategy:l})),y="floating"===u?{x:i,y:r,width:o.floating.width,height:o.floating.height}:o.reference,v=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),b=await(null==s.isElement?void 0:s.isElement(v))&&await(null==s.getScale?void 0:s.getScale(v))||{x:1,y:1},x=ft(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-x.top+f.top)/b.y,bottom:(x.bottom-g.bottom+f.bottom)/b.y,left:(g.left-x.left+f.left)/b.x,right:(x.right-g.right+f.right)/b.x}}function yt(){return"undefined"!=typeof window}function vt(t){return wt(t)?(t.nodeName||"").toLowerCase():"#document"}function bt(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function xt(t){var e;return null==(e=(wt(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function wt(t){return!!yt()&&(t instanceof Node||t instanceof bt(t).Node)}function kt(t){return!!yt()&&(t instanceof Element||t instanceof bt(t).Element)}function _t(t){return!!yt()&&(t instanceof HTMLElement||t instanceof bt(t).HTMLElement)}function St(t){return!(!yt()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof bt(t).ShadowRoot)}function $t(t){const{overflow:e,overflowX:n,overflowY:i,display:r}=jt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(r)}function Ct(t){return["table","td","th"].includes(vt(t))}function At(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(n){return!1}}))}function Pt(t){const e=Tt(),n=kt(t)?jt(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function Tt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Et(t){return["html","body","#document"].includes(vt(t))}function jt(t){return bt(t).getComputedStyle(t)}function Dt(t){return kt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Mt(t){if("html"===vt(t))return t;const e=t.assignedSlot||t.parentNode||St(t)&&t.host||xt(t);return St(e)?e.host:e}function Ft(t){const e=Mt(t);return Et(e)?t.ownerDocument?t.ownerDocument.body:t.body:_t(e)&&$t(e)?e:Ft(e)}function It(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=Ft(t),s=r===(null==(i=t.ownerDocument)?void 0:i.body),o=bt(r);if(s){const t=Rt(o);return e.concat(o,o.visualViewport||[],$t(r)?r:[],t&&n?It(t):[])}return e.concat(r,It(r,[],n))}function Rt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Lt(t){const e=jt(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=_t(t),s=r?t.offsetWidth:n,o=r?t.offsetHeight:i,a=X(n)!==s||X(i)!==o;return a&&(n=s,i=o),{width:n,height:i,$:a}}function Ot(t){return kt(t)?t:t.contextElement}function zt(t){const e=Ot(t);if(!_t(e))return tt(1);const n=e.getBoundingClientRect(),{width:i,height:r,$:s}=Lt(e);let o=(s?X(n.width):n.width)/i,a=(s?X(n.height):n.height)/r;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}const Nt=tt(0);function Vt(t){const e=bt(t);return Tt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Nt}function qt(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),s=Ot(t);let o=tt(1);e&&(i?kt(i)&&(o=zt(i)):o=zt(t));const a=(l=s,void 0===(c=n)&&(c=!1),!(h=i)||c&&h!==bt(l)||!c?tt(0):Vt(s));var l,c,h;let u=(r.left+a.x)/o.x,p=(r.top+a.y)/o.y,d=r.width/o.x,f=r.height/o.y;if(s){const t=bt(s),e=i&&kt(i)?bt(i):i;let n=t,r=Rt(n);for(;r&&i&&e!==n;){const t=zt(r),e=r.getBoundingClientRect(),i=jt(r),s=e.left+(r.clientLeft+parseFloat(i.paddingLeft))*t.x,o=e.top+(r.clientTop+parseFloat(i.paddingTop))*t.y;u*=t.x,p*=t.y,d*=t.x,f*=t.y,u+=s,p+=o,n=bt(r),r=Rt(n)}}return ft({width:d,height:f,x:u,y:p})}function Bt(t,e){const n=Dt(t).scrollLeft;return e?e.left+n:qt(xt(t)).left+n}function Wt(t,e,n){void 0===n&&(n=!1);const i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(n?0:Bt(t,i)),y:i.top+e.scrollTop}}function Ut(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=bt(t),i=xt(t),r=n.visualViewport;let s=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){s=r.width,o=r.height;const t=Tt();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:o,x:a,y:l}}(t,n);else if("document"===e)i=function(t){const e=xt(t),n=Dt(t),i=t.ownerDocument.body,r=Y(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=Y(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let o=-n.scrollLeft+Bt(t);const a=-n.scrollTop;return"rtl"===jt(i).direction&&(o+=Y(e.clientWidth,i.clientWidth)-r),{width:r,height:s,x:o,y:a}}(xt(t));else if(kt(e))i=function(t,e){const n=qt(t,!0,"fixed"===e),i=n.top+t.clientTop,r=n.left+t.clientLeft,s=_t(t)?zt(t):tt(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:r*s.x,y:i*s.y}}(e,n);else{const n=Vt(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return ft(i)}function Ht(t,e){const n=Mt(t);return!(n===e||!kt(n)||Et(n))&&("fixed"===jt(n).position||Ht(n,e))}function Gt(t,e,n){const i=_t(e),r=xt(e),s="fixed"===n,o=qt(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=tt(0);if(i||!i&&!s)if(("body"!==vt(e)||$t(r))&&(a=Dt(e)),i){const t=qt(e,!0,s,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Bt(r));const c=!r||i||s?tt(0):Wt(r,a);return{x:o.left+a.scrollLeft-l.x-c.x,y:o.top+a.scrollTop-l.y-c.y,width:o.width,height:o.height}}function Qt(t){return"static"===jt(t).position}function Jt(t,e){if(!_t(t)||"fixed"===jt(t).position)return null;if(e)return e(t);let n=t.offsetParent;return xt(t)===n&&(n=n.ownerDocument.body),n}function Kt(t,e){const n=bt(t);if(At(t))return n;if(!_t(t)){let e=Mt(t);for(;e&&!Et(e);){if(kt(e)&&!Qt(e))return e;e=Mt(e)}return n}let i=Jt(t,e);for(;i&&Ct(i)&&Qt(i);)i=Jt(i,e);return i&&Et(i)&&Qt(i)&&!Pt(i)?n:i||function(t){let e=Mt(t);for(;_t(e)&&!Et(e);){if(Pt(e))return e;if(At(e))return null;e=Mt(e)}return null}(t)||n}const Yt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:r}=t;const s="fixed"===r,o=xt(i),a=!!e&&At(e.floating);if(i===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=tt(1);const h=tt(0),u=_t(i);if((u||!u&&!s)&&(("body"!==vt(i)||$t(o))&&(l=Dt(i)),_t(i))){const t=qt(i);c=zt(i),h.x=t.x+i.clientLeft,h.y=t.y+i.clientTop}const p=!o||u||s?tt(0):Wt(o,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+h.x+p.x,y:n.y*c.y-l.scrollTop*c.y+h.y+p.y}},getDocumentElement:xt,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:r}=t;const s=[..."clippingAncestors"===n?At(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=It(t,[],!1).filter((t=>kt(t)&&"body"!==vt(t))),r=null;const s="fixed"===jt(t).position;let o=s?Mt(t):t;for(;kt(o)&&!Et(o);){const e=jt(o),n=Pt(o);n||"fixed"!==e.position||(r=null),(s?!n&&!r:!n&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||$t(o)&&!n&&Ht(t,o))?i=i.filter((t=>t!==o)):r=e,o=Mt(o)}return e.set(t,i),i}(e,this._c):[].concat(n),i],o=s[0],a=s.reduce(((t,n)=>{const i=Ut(e,n,r);return t.top=Y(i.top,t.top),t.right=K(i.right,t.right),t.bottom=K(i.bottom,t.bottom),t.left=Y(i.left,t.left),t}),Ut(e,o,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Kt,getElementRects:async function(t){const e=this.getOffsetParent||Kt,n=this.getDimensions,i=await n(t.floating);return{reference:Gt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=Lt(t);return{width:e,height:n}},getScale:zt,isElement:kt,isRTL:function(t){return"rtl"===jt(t).direction}};function Xt(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=Ot(t),h=r||s?[...c?It(c):[],...It(e)]:[];h.forEach((t=>{r&&t.addEventListener("scroll",n,{passive:!0}),s&&t.addEventListener("resize",n)}));const u=c&&a?function(t,e){let n,i=null;const r=xt(t);function s(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return function o(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),s();const{left:c,top:h,width:u,height:p}=t.getBoundingClientRect();if(a||e(),!u||!p)return;const d={rootMargin:-Z(h)+"px "+-Z(r.clientWidth-(c+u))+"px "+-Z(r.clientHeight-(h+p))+"px "+-Z(c)+"px",threshold:Y(0,K(1,l))||1};let f=!0;function m(t){const e=t[0].intersectionRatio;if(e!==l){if(!f)return o();e?o(!1,e):n=setTimeout((()=>{o(!1,1e-7)}),1e3)}f=!1}try{i=new IntersectionObserver(m,{...d,root:r.ownerDocument})}catch(g){i=new IntersectionObserver(m,d)}i.observe(t)}(!0),s}(c,n):null;let p,d=-1,f=null;o&&(f=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&f&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var t;null==(t=f)||t.observe(e)}))),n()})),c&&!l&&f.observe(c),f.observe(e));let m=l?qt(t):null;return l&&function e(){const i=qt(t);!m||i.x===m.x&&i.y===m.y&&i.width===m.width&&i.height===m.height||n(),m=i,p=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach((t=>{r&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)})),null==u||u(),null==(t=f)||t.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Zt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:r,y:s,placement:o,middlewareData:a}=e,l=await async function(t,e){const{placement:n,platform:i,elements:r}=t,s=await(null==i.isRTL?void 0:i.isRTL(r.floating)),o=st(n),a=ot(n),l="y"===ct(n),c=["left","top"].includes(o)?-1:1,h=s&&l?-1:1,u=rt(e,t);let{mainAxis:p,crossAxis:d,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof f&&(d="end"===a?-1*f:f),l?{x:d*h,y:p*c}:{x:p*c,y:d*h}}(e,t);return o===(null==(n=a.offset)?void 0:n.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:o}}}}},te=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:r}=e,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=rt(t,e),c={x:n,y:i},h=await gt(e,l),u=ct(st(r)),p=at(u);let d=c[p],f=c[u];if(s){const t="y"===p?"bottom":"right";d=it(d+h["y"===p?"top":"left"],d,d-h[t])}if(o){const t="y"===u?"bottom":"right";f=it(f+h["y"===u?"top":"left"],f,f-h[t])}const m=a.fn({...e,[p]:d,[u]:f});return{...m,data:{x:m.x-n,y:m.y-i,enabled:{[p]:s,[u]:o}}}}}},ee=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:r,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:h=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=rt(t,e);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const y=st(r),v=ct(a),b=st(a)===a,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(b||!m?[pt(a)]:function(t){const e=pt(t);return[ut(t),e,ut(e)]}(a)),k="none"!==f;!p&&k&&w.push(...function(t,e,n,i){const r=ot(t);let s=function(t,e,n){const i=["left","right"],r=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:i:e?i:r;case"left":case"right":return e?s:o;default:return[]}}(st(t),"start"===n,i);return r&&(s=s.map((t=>t+"-"+r)),e&&(s=s.concat(s.map(ut)))),s}(a,m,f,x));const _=[a,...w],S=await gt(e,g),$=[];let C=(null==(i=s.flip)?void 0:i.overflows)||[];if(h&&$.push(S[y]),u){const t=function(t,e,n){void 0===n&&(n=!1);const i=ot(t),r=ht(t),s=lt(r);let o="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=pt(o)),[o,pt(o)]}(r,o,x);$.push(S[t[0]],S[t[1]])}if(C=[...C,{placement:r,overflows:$}],!$.every((t=>t<=0))){var A,P;const t=((null==(A=s.flip)?void 0:A.index)||0)+1,e=_[t];if(e)return{data:{index:t,overflows:C},reset:{placement:e}};let n=null==(P=C.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:P.placement;if(!n)switch(d){case"bestFit":{var T;const t=null==(T=C.filter((t=>{if(k){const e=ct(t.placement);return e===v||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:T[0];t&&(n=t);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}},ne=(t,e,n)=>{const i=new Map,r={platform:Yt,...n},s={...r.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(null==o.isRTL?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:r}),{x:h,y:u}=mt(c,i,l),p=i,d={},f=0;for(let m=0;m<a.length;m++){const{name:n,fn:s}=a[m],{x:g,y:y,data:v,reset:b}=await s({x:h,y:u,initialPlacement:i,placement:p,strategy:r,middlewareData:d,rects:c,platform:o,elements:{reference:t,floating:e}});h=null!=g?g:h,u=null!=y?y:u,d={...d,[n]:{...d[n],...v}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await o.getElementRects({reference:t,floating:e,strategy:r}):b.rects),({x:h,y:u}=mt(c,p,l))),m=-1)}return{x:h,y:u,placement:p,strategy:r,middlewareData:d}})(t,e,{...r,platform:s})};var ie="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function re(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,i,r;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(i=n;0!=i--;)if(!re(t[i],e[i]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(i=n;0!=i--;)if(!{}.hasOwnProperty.call(e,r[i]))return!1;for(i=n;0!=i--;){const n=r[i];if(!("_owner"===n&&t.$$typeof||re(t[n],e[n])))return!1}return!0}return t!=t&&e!=e}function se(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function oe(t,e){const n=se(t);return Math.round(e*n)/n}function ae(t){const e=o.useRef(t);return ie((()=>{e.current=t})),e}const le=(t,e)=>({...Zt(t),options:[t,e]});var ce=Object.prototype,he=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ce)},ue=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),pe=he,de=ue,fe=Object.prototype.hasOwnProperty,me="object"==typeof h&&h&&h.Object===Object&&h,ge=me,ye="object"==typeof self&&self&&self.Object===Object&&self,ve=ge||ye||Function("return this")(),be=ve.Symbol,xe=be,we=Object.prototype,ke=we.hasOwnProperty,_e=we.toString,Se=xe?xe.toStringTag:void 0,$e=Object.prototype.toString,Ce=function(t){var e=ke.call(t,Se),n=t[Se];try{t[Se]=void 0;var i=!0}catch(s){}var r=_e.call(t);return i&&(e?t[Se]=n:delete t[Se]),r},Ae=be?be.toStringTag:void 0,Pe=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ae&&Ae in Object(t)?Ce(t):function(t){return $e.call(t)}(t)},Te=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const Ee=u(Te);var je,De=Pe,Me=Te,Fe=function(t){if(!Me(t))return!1;var e=De(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Ie=ve["__core-js_shared__"],Re=(je=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+je:"",Le=Function.prototype.toString,Oe=function(t){if(null!=t){try{return Le.call(t)}catch(e){}try{return t+""}catch(e){}}return""},ze=Fe,Ne=function(t){return!!Re&&Re in t},Ve=Te,qe=Oe,Be=/^\[object .+?Constructor\]$/,We=Function.prototype,Ue=Object.prototype,He=We.toString,Ge=Ue.hasOwnProperty,Qe=RegExp("^"+He.call(Ge).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Je=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Ve(t)||Ne(t))&&(ze(t)?Qe:Be).test(qe(t))}(n)?n:void 0},Ke=Je(ve,"DataView"),Ye=Je(ve,"Map"),Xe=Je(ve,"Promise"),Ze=Je(ve,"Set"),tn=Je(ve,"WeakMap"),en=Pe,nn=Oe,rn="[object Map]",sn="[object Promise]",on="[object Set]",an="[object WeakMap]",ln="[object DataView]",cn=nn(Ke),hn=nn(Ye),un=nn(Xe),pn=nn(Ze),dn=nn(tn),fn=en;(Ke&&fn(new Ke(new ArrayBuffer(1)))!=ln||Ye&&fn(new Ye)!=rn||Xe&&fn(Xe.resolve())!=sn||Ze&&fn(new Ze)!=on||tn&&fn(new tn)!=an)&&(fn=function(t){var e=en(t),n="[object Object]"==e?t.constructor:void 0,i=n?nn(n):"";if(i)switch(i){case cn:return ln;case hn:return rn;case un:return sn;case pn:return on;case dn:return an}return e});var mn,gn,yn,vn,bn,xn,wn,kn,_n=fn,Sn=function(t){return null!=t&&"object"==typeof t},$n=Pe,Cn=Sn,An=function(t){return Cn(t)&&"[object Arguments]"==$n(t)},Pn=Sn,Tn=Object.prototype,En=Tn.hasOwnProperty,jn=Tn.propertyIsEnumerable,Dn=An(function(){return arguments}())?An:function(t){return Pn(t)&&En.call(t,"callee")&&!jn.call(t,"callee")},Mn=Array.isArray,Fn=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},In=Fe,Rn=Fn,Ln={exports:{}};mn=Ln,yn=ve,vn=function(){return!1},bn=(gn=Ln.exports)&&!gn.nodeType&&gn,xn=bn&&mn&&!mn.nodeType&&mn,wn=xn&&xn.exports===bn?yn.Buffer:void 0,kn=(wn?wn.isBuffer:void 0)||vn,mn.exports=kn;var On=Ln.exports,zn=Pe,Nn=Fn,Vn=Sn,qn={};qn["[object Float32Array]"]=qn["[object Float64Array]"]=qn["[object Int8Array]"]=qn["[object Int16Array]"]=qn["[object Int32Array]"]=qn["[object Uint8Array]"]=qn["[object Uint8ClampedArray]"]=qn["[object Uint16Array]"]=qn["[object Uint32Array]"]=!0,qn["[object Arguments]"]=qn["[object Array]"]=qn["[object ArrayBuffer]"]=qn["[object Boolean]"]=qn["[object DataView]"]=qn["[object Date]"]=qn["[object Error]"]=qn["[object Function]"]=qn["[object Map]"]=qn["[object Number]"]=qn["[object Object]"]=qn["[object RegExp]"]=qn["[object Set]"]=qn["[object String]"]=qn["[object WeakMap]"]=!1;var Bn={exports:{}};!function(t,e){var n=me,i=e&&!e.nodeType&&e,r=i&&t&&!t.nodeType&&t,s=r&&r.exports===i&&n.process,o=function(){try{return r&&r.require&&r.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=o}(Bn,Bn.exports);var Wn=Bn.exports,Un=function(t){return Vn(t)&&Nn(t.length)&&!!qn[zn(t)]},Hn=function(t){return function(e){return t(e)}},Gn=Wn&&Wn.isTypedArray,Qn=Gn?Hn(Gn):Un,Jn=function(t){if(!pe(t))return de(t);var e=[];for(var n in Object(t))fe.call(t,n)&&"constructor"!=n&&e.push(n);return e},Kn=_n,Yn=Dn,Xn=Mn,Zn=function(t){return null!=t&&Rn(t.length)&&!In(t)},ti=On,ei=he,ni=Qn,ii=Object.prototype.hasOwnProperty;const ri=u((function(t){if(null==t)return!0;if(Zn(t)&&(Xn(t)||"string"==typeof t||"function"==typeof t.splice||ti(t)||ni(t)||Yn(t)))return!t.length;var e=Kn(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(ei(t))return!Jn(t).length;for(var n in t)if(ii.call(t,n))return!1;return!0}));var si,oi={exports:{}};
|
|
69
|
+
/*!
|
|
70
|
+
Copyright (c) 2018 Jed Watson.
|
|
71
|
+
Licensed under the MIT License (MIT), see
|
|
72
|
+
http://jedwatson.github.io/classnames
|
|
73
|
+
*/si=oi,function(){var t={}.hasOwnProperty;function e(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=i(t,n(r)))}return t}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return e.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var r="";for(var s in n)t.call(n,s)&&n[s]&&(r=i(r,s));return r}function i(t,e){return e?t?t+" "+e:t+e:t}si.exports?(e.default=e,si.exports=e):window.classNames=e}();const ai=u(oi.exports),li={core:!1,base:!1};
|
|
74
|
+
/*
|
|
75
|
+
* React Tooltip
|
|
76
|
+
* {@link https://github.com/ReactTooltip/react-tooltip}
|
|
77
|
+
* @copyright ReactTooltip Team
|
|
78
|
+
* @license MIT
|
|
79
|
+
*/function ci({css:t,id:e="react-tooltip-base-styles",type:n="base",ref:i}){var r,s;if(!t||"undefined"==typeof document||li[n])return;if("core"===n&&"undefined"!=typeof process&&(null===(r=null===process||void 0===process?void 0:process.env)||void 0===r?void 0:r.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==n&&"undefined"!=typeof process&&(null===(s=null===process||void 0===process?void 0:process.env)||void 0===s?void 0:s.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===n&&(e="react-tooltip-core-styles"),i||(i={});const{insertAt:o}=i;if(document.getElementById(e))return;const a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=e,l.type="text/css","top"===o&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=t:l.appendChild(document.createTextNode(t)),li[n]=!0}const hi=async({elementReference:t=null,tooltipReference:e=null,tooltipArrowReference:n=null,place:i="top",offset:r=10,strategy:s="absolute",middlewares:o=[Zt(Number(r)),ee({fallbackAxisSideDirection:"start"}),te({padding:5})],border:a})=>{if(!t)return{tooltipStyles:{},tooltipArrowStyles:{},place:i};if(null===e)return{tooltipStyles:{},tooltipArrowStyles:{},place:i};const l=o;return n?(l.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:r,rects:s,platform:o,elements:a,middlewareData:l}=e,{element:c,padding:h=0}=rt(t,e)||{};if(null==c)return{};const u=dt(h),p={x:n,y:i},d=ht(r),f=lt(d),m=await o.getDimensions(c),g="y"===d,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=s.reference[f]+s.reference[d]-p[d]-s.floating[f],w=p[d]-s.reference[d],k=await(null==o.getOffsetParent?void 0:o.getOffsetParent(c));let _=k?k[b]:0;_&&await(null==o.isElement?void 0:o.isElement(k))||(_=a.floating[b]||s.floating[f]);const S=x/2-w/2,$=_/2-m[f]/2-1,C=K(u[y],$),A=K(u[v],$),P=C,T=_-m[f]-A,E=_/2-m[f]/2+S,j=it(P,E,T),D=!l.arrow&&null!=ot(r)&&E!==j&&s.reference[f]/2-(E<P?C:A)-m[f]/2<0,M=D?E<P?E-P:E-T:0;return{[d]:p[d]+M,data:{[d]:j,centerOffset:E-j-M,...D&&{alignmentOffset:M}},reset:D}}}))({element:n,padding:5})),ne(t,e,{placement:i,strategy:s,middleware:l}).then((({x:t,y:e,placement:n,middlewareData:i})=>{var r,s;const o={left:`${t}px`,top:`${e}px`,border:a},{x:l,y:c}=null!==(r=i.arrow)&&void 0!==r?r:{x:0,y:0},h=null!==(s={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==s?s:"bottom",u=a&&{borderBottom:a,borderRight:a};let p=0;if(a){const t=`${a}`.match(/(\d+)px/);p=(null==t?void 0:t[1])?Number(t[1]):1}return{tooltipStyles:o,tooltipArrowStyles:{left:null!=l?`${l}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...u,[h]:`-${4+p}px`},place:n}}))):ne(t,e,{placement:"bottom",strategy:s,middleware:l}).then((({x:t,y:e,placement:n})=>({tooltipStyles:{left:`${t}px`,top:`${e}px`},tooltipArrowStyles:{},place:n})))},ui=(t,e)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(t,e),pi=(t,e,n)=>{let i=null;const r=function(...n){!i&&(t.apply(this,n),i=setTimeout((()=>{i=null}),e))};return r.cancel=()=>{i&&(clearTimeout(i),i=null)},r},di=t=>null!==t&&!Array.isArray(t)&&"object"==typeof t,fi=(t,e)=>{if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every(((t,n)=>fi(t,e[n])));if(Array.isArray(t)!==Array.isArray(e))return!1;if(!di(t)||!di(e))return t===e;const n=Object.keys(t),i=Object.keys(e);return n.length===i.length&&n.every((n=>fi(t[n],e[n])))},mi=t=>{if(!(t instanceof HTMLElement||t instanceof SVGElement))return!1;const e=getComputedStyle(t);return["overflow","overflow-x","overflow-y"].some((t=>{const n=e.getPropertyValue(t);return"auto"===n||"scroll"===n}))},gi=t=>{if(!t)return null;let e=t.parentElement;for(;e;){if(mi(e))return e;e=e.parentElement}return document.scrollingElement||document.documentElement},yi="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,vi=t=>{t.current&&(clearTimeout(t.current),t.current=null)},bi={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},xi=e.createContext({getTooltipData:()=>bi});function wi(t="DEFAULT_TOOLTIP_ID"){return e.useContext(xi).getTooltipData(t)}var ki={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},_i={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Si=({forwardRef:t,id:n,className:i,classNameArrow:r,variant:s="dark",anchorId:o,anchorSelect:a,place:l="top",offset:c=10,events:h=["hover"],openOnClick:u=!1,positionStrategy:p="absolute",middlewares:d,wrapper:f,delayShow:m=0,delayHide:g=0,float:y=!1,hidden:v=!1,noArrow:b=!1,clickable:x=!1,closeOnEsc:w=!1,closeOnScroll:k=!1,closeOnResize:_=!1,openEvents:S,closeEvents:$,globalCloseEvents:C,imperativeModeOnly:A,style:P,position:T,afterShow:E,afterHide:j,disableTooltip:D,content:M,contentWrapperRef:F,isOpen:I,defaultIsOpen:R=!1,setIsOpen:L,activeAnchor:O,setActiveAnchor:z,border:N,opacity:V,arrowColor:q,role:B="tooltip"})=>{var W;const U=e.useRef(null),H=e.useRef(null),G=e.useRef(null),Q=e.useRef(null),J=e.useRef(null),[K,Y]=e.useState({tooltipStyles:{},tooltipArrowStyles:{},place:l}),[X,Z]=e.useState(!1),[tt,et]=e.useState(!1),[nt,it]=e.useState(null),rt=e.useRef(!1),st=e.useRef(null),{anchorRefs:ot,setActiveAnchor:at}=wi(n),lt=e.useRef(!1),[ct,ht]=e.useState([]),ut=e.useRef(!1),pt=u||h.includes("click"),dt=pt||(null==S?void 0:S.click)||(null==S?void 0:S.dblclick)||(null==S?void 0:S.mousedown),ft=S?{...S}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!S&&pt&&Object.assign(ft,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const mt=$?{...$}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!$&&pt&&Object.assign(mt,{mouseleave:!1,blur:!1,mouseout:!1});const gt=C?{...C}:{escape:w||!1,scroll:k||!1,resize:_||!1,clickOutsideAnchor:dt||!1};A&&(Object.assign(ft,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(mt,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(gt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),yi((()=>(ut.current=!0,()=>{ut.current=!1})),[]);const yt=t=>{ut.current&&(t&&et(!0),setTimeout((()=>{ut.current&&(null==L||L(t),void 0===I&&Z(t))}),10))};e.useEffect((()=>{if(void 0===I)return()=>null;I&&et(!0);const t=setTimeout((()=>{Z(I)}),10);return()=>{clearTimeout(t)}}),[I]),e.useEffect((()=>{if(X!==rt.current)if(vi(J),rt.current=X,X)null==E||E();else{const t=(()=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,e,n]=t;return Number(e)*("ms"===n?1:1e3)})();J.current=setTimeout((()=>{et(!1),it(null),null==j||j()}),t+25)}}),[X]);const vt=t=>{Y((e=>fi(e,t)?e:t))},bt=(t=m)=>{vi(G),tt?yt(!0):G.current=setTimeout((()=>{yt(!0)}),t)},xt=(t=g)=>{vi(Q),Q.current=setTimeout((()=>{lt.current||yt(!1)}),t)},wt=t=>{var e;if(!t)return;const n=null!==(e=t.currentTarget)&&void 0!==e?e:t.target;if(!(null==n?void 0:n.isConnected))return z(null),void at({current:null});m?bt():yt(!0),z(n),at({current:n}),vi(Q)},kt=()=>{x?xt(g||100):g?xt():yt(!1),vi(G)},_t=({x:t,y:e})=>{var n;const i={getBoundingClientRect:()=>({x:t,y:e,width:0,height:0,top:e,left:t,right:t,bottom:e})};hi({place:null!==(n=null==nt?void 0:nt.place)&&void 0!==n?n:l,offset:c,elementReference:i,tooltipReference:U.current,tooltipArrowReference:H.current,strategy:p,middlewares:d,border:N}).then((t=>{vt(t)}))},St=t=>{if(!t)return;const e=t,n={x:e.clientX,y:e.clientY};_t(n),st.current=n},$t=t=>{var e;if(!X)return;const n=t.target;n.isConnected&&((null===(e=U.current)||void 0===e?void 0:e.contains(n))||[document.querySelector(`[id='${o}']`),...ct].some((t=>null==t?void 0:t.contains(n)))||(yt(!1),vi(G)))},Ct=pi(wt,50),At=pi(kt,50),Pt=t=>{At.cancel(),Ct(t)},Tt=()=>{Ct.cancel(),At()},Et=e.useCallback((()=>{var t,e;const n=null!==(t=null==nt?void 0:nt.position)&&void 0!==t?t:T;n?_t(n):y?st.current&&_t(st.current):(null==O?void 0:O.isConnected)&&hi({place:null!==(e=null==nt?void 0:nt.place)&&void 0!==e?e:l,offset:c,elementReference:O,tooltipReference:U.current,tooltipArrowReference:H.current,strategy:p,middlewares:d,border:N}).then((t=>{ut.current&&vt(t)}))}),[X,O,M,P,l,null==nt?void 0:nt.place,c,p,T,null==nt?void 0:nt.position,y]);e.useEffect((()=>{var t,e;const n=new Set(ot);ct.forEach((t=>{(null==D?void 0:D(t))||n.add({current:t})}));const i=document.querySelector(`[id='${o}']`);i&&!(null==D?void 0:D(i))&&n.add({current:i});const r=()=>{yt(!1)},s=gi(O),a=gi(U.current);gt.scroll&&(window.addEventListener("scroll",r),null==s||s.addEventListener("scroll",r),null==a||a.addEventListener("scroll",r));let l=null;gt.resize?window.addEventListener("resize",r):O&&U.current&&(l=Xt(O,U.current,Et,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=t=>{"Escape"===t.key&&yt(!1)};gt.escape&&window.addEventListener("keydown",c),gt.clickOutsideAnchor&&window.addEventListener("click",$t);const h=[],u=t=>{X&&(null==t?void 0:t.target)===O||wt(t)},p=t=>{X&&(null==t?void 0:t.target)===O&&kt()},d=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],f=["click","dblclick","mousedown","mouseup"];Object.entries(ft).forEach((([t,e])=>{e&&(d.includes(t)?h.push({event:t,listener:Pt}):f.includes(t)&&h.push({event:t,listener:u}))})),Object.entries(mt).forEach((([t,e])=>{e&&(d.includes(t)?h.push({event:t,listener:Tt}):f.includes(t)&&h.push({event:t,listener:p}))})),y&&h.push({event:"pointermove",listener:St});const m=()=>{lt.current=!0},g=()=>{lt.current=!1,kt()};return x&&!dt&&(null===(t=U.current)||void 0===t||t.addEventListener("mouseenter",m),null===(e=U.current)||void 0===e||e.addEventListener("mouseleave",g)),h.forEach((({event:t,listener:e})=>{n.forEach((n=>{var i;null===(i=n.current)||void 0===i||i.addEventListener(t,e)}))})),()=>{var t,e;gt.scroll&&(window.removeEventListener("scroll",r),null==s||s.removeEventListener("scroll",r),null==a||a.removeEventListener("scroll",r)),gt.resize?window.removeEventListener("resize",r):null==l||l(),gt.clickOutsideAnchor&&window.removeEventListener("click",$t),gt.escape&&window.removeEventListener("keydown",c),x&&!dt&&(null===(t=U.current)||void 0===t||t.removeEventListener("mouseenter",m),null===(e=U.current)||void 0===e||e.removeEventListener("mouseleave",g)),h.forEach((({event:t,listener:e})=>{n.forEach((n=>{var i;null===(i=n.current)||void 0===i||i.removeEventListener(t,e)}))}))}}),[O,Et,tt,ot,ct,S,$,C,pt,m,g]),e.useEffect((()=>{var t,e;let i=null!==(e=null!==(t=null==nt?void 0:nt.anchorSelect)&&void 0!==t?t:a)&&void 0!==e?e:"";!i&&n&&(i=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`);const r=new MutationObserver((t=>{const e=[],r=[];t.forEach((t=>{if("attributes"===t.type&&"data-tooltip-id"===t.attributeName&&(t.target.getAttribute("data-tooltip-id")===n?e.push(t.target):t.oldValue===n&&r.push(t.target)),"childList"===t.type){if(O){const e=[...t.removedNodes].filter((t=>1===t.nodeType));if(i)try{r.push(...e.filter((t=>t.matches(i)))),r.push(...e.flatMap((t=>[...t.querySelectorAll(i)])))}catch(s){}e.some((t=>{var e;return!!(null===(e=null==t?void 0:t.contains)||void 0===e?void 0:e.call(t,O))&&(et(!1),yt(!1),z(null),vi(G),vi(Q),!0)}))}if(i)try{const n=[...t.addedNodes].filter((t=>1===t.nodeType));e.push(...n.filter((t=>t.matches(i)))),e.push(...n.flatMap((t=>[...t.querySelectorAll(i)])))}catch(s){}}})),(e.length||r.length)&&ht((t=>[...t.filter((t=>!r.includes(t))),...e]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}}),[n,a,null==nt?void 0:nt.anchorSelect,O]),e.useEffect((()=>{Et()}),[Et]),e.useEffect((()=>{if(!(null==F?void 0:F.current))return()=>null;const t=new ResizeObserver((()=>{setTimeout((()=>Et()))}));return t.observe(F.current),()=>{t.disconnect()}}),[M,null==F?void 0:F.current]),e.useEffect((()=>{var t;const e=document.querySelector(`[id='${o}']`),n=[...ct,e];O&&n.includes(O)||z(null!==(t=ct[0])&&void 0!==t?t:e)}),[o,ct,O]),e.useEffect((()=>(R&&yt(!0),()=>{vi(G),vi(Q)})),[]),e.useEffect((()=>{var t;let e=null!==(t=null==nt?void 0:nt.anchorSelect)&&void 0!==t?t:a;if(!e&&n&&(e=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`),e)try{const t=Array.from(document.querySelectorAll(e));ht(t)}catch(i){ht([])}}),[n,a,null==nt?void 0:nt.anchorSelect]),e.useEffect((()=>{G.current&&(vi(G),bt(m))}),[m]);const jt=null!==(W=null==nt?void 0:nt.content)&&void 0!==W?W:M,Dt=X&&Object.keys(K.tooltipStyles).length>0;return e.useImperativeHandle(t,(()=>({open:t=>{if(null==t?void 0:t.anchorSelect)try{document.querySelector(t.anchorSelect)}catch(gn){return}it(null!=t?t:null),(null==t?void 0:t.delay)?bt(t.delay):yt(!0)},close:t=>{(null==t?void 0:t.delay)?xt(t.delay):yt(!1)},activeAnchor:O,place:K.place,isOpen:Boolean(tt&&!v&&jt&&Dt)}))),tt&&!v&&jt?e.createElement(f,{id:n,role:B,className:ai("react-tooltip",ki.tooltip,_i.tooltip,_i[s],i,`react-tooltip__place-${K.place}`,ki[Dt?"show":"closing"],Dt?"react-tooltip__show":"react-tooltip__closing","fixed"===p&&ki.fixed,x&&ki.clickable),onTransitionEnd:t=>{vi(J),X||"opacity"!==t.propertyName||(et(!1),it(null),null==j||j())},style:{...P,...K.tooltipStyles,opacity:void 0!==V&&Dt?V:void 0},ref:U},jt,e.createElement(f,{className:ai("react-tooltip-arrow",ki.arrow,_i.arrow,r,b&&ki.noArrow),style:{...K.tooltipArrowStyles,background:q?`linear-gradient(to right bottom, transparent 50%, ${q} 50%)`:void 0},ref:H})):null},$i=({content:t})=>e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),Ci=e.forwardRef((({id:t,anchorId:n,anchorSelect:i,content:r,html:s,render:o,className:a,classNameArrow:l,variant:c="dark",place:h="top",offset:u=10,wrapper:p="div",children:d=null,events:f=["hover"],openOnClick:m=!1,positionStrategy:g="absolute",middlewares:y,delayShow:v=0,delayHide:b=0,float:x=!1,hidden:w=!1,noArrow:k=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:$=!1,closeOnResize:C=!1,openEvents:A,closeEvents:P,globalCloseEvents:T,imperativeModeOnly:E=!1,style:j,position:D,isOpen:M,defaultIsOpen:F=!1,disableStyleInjection:I=!1,border:R,opacity:L,arrowColor:O,setIsOpen:z,afterShow:N,afterHide:V,disableTooltip:q,role:B="tooltip"},W)=>{const[U,H]=e.useState(r),[G,Q]=e.useState(s),[J,K]=e.useState(h),[Y,X]=e.useState(c),[Z,tt]=e.useState(u),[et,nt]=e.useState(v),[it,rt]=e.useState(b),[st,ot]=e.useState(x),[at,lt]=e.useState(w),[ct,ht]=e.useState(p),[ut,pt]=e.useState(f),[dt,ft]=e.useState(g),[mt,gt]=e.useState(null),[yt,vt]=e.useState(null),bt=e.useRef(I),{anchorRefs:xt,activeAnchor:wt}=wi(t),kt=t=>null==t?void 0:t.getAttributeNames().reduce(((e,n)=>{var i;return n.startsWith("data-tooltip-")&&(e[n.replace(/^data-tooltip-/,"")]=null!==(i=null==t?void 0:t.getAttribute(n))&&void 0!==i?i:null),e}),{}),_t=t=>{const e={place:t=>{var e;K(null!==(e=t)&&void 0!==e?e:h)},content:t=>{H(null!=t?t:r)},html:t=>{Q(null!=t?t:s)},variant:t=>{var e;X(null!==(e=t)&&void 0!==e?e:c)},offset:t=>{tt(null===t?u:Number(t))},wrapper:t=>{var e;ht(null!==(e=t)&&void 0!==e?e:p)},events:t=>{const e=null==t?void 0:t.split(" ");pt(null!=e?e:f)},"position-strategy":t=>{var e;ft(null!==(e=t)&&void 0!==e?e:g)},"delay-show":t=>{nt(null===t?v:Number(t))},"delay-hide":t=>{rt(null===t?b:Number(t))},float:t=>{ot(null===t?x:"true"===t)},hidden:t=>{lt(null===t?w:"true"===t)},"class-name":t=>{gt(t)}};Object.values(e).forEach((t=>t(null))),Object.entries(t).forEach((([t,n])=>{var i;null===(i=e[t])||void 0===i||i.call(e,n)}))};e.useEffect((()=>{H(r)}),[r]),e.useEffect((()=>{Q(s)}),[s]),e.useEffect((()=>{K(h)}),[h]),e.useEffect((()=>{X(c)}),[c]),e.useEffect((()=>{tt(u)}),[u]),e.useEffect((()=>{nt(v)}),[v]),e.useEffect((()=>{rt(b)}),[b]),e.useEffect((()=>{ot(x)}),[x]),e.useEffect((()=>{lt(w)}),[w]),e.useEffect((()=>{ft(g)}),[g]),e.useEffect((()=>{bt.current}),[I]),e.useEffect((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===I,disableBase:I}}))}),[]),e.useEffect((()=>{var e;const r=new Set(xt);let s=i;if(!s&&t&&(s=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),s)try{document.querySelectorAll(s).forEach((t=>{r.add({current:t})}))}catch(h){}const o=document.querySelector(`[id='${n}']`);if(o&&r.add({current:o}),!r.size)return()=>null;const a=null!==(e=null!=yt?yt:o)&&void 0!==e?e:wt.current,l=new MutationObserver((t=>{t.forEach((t=>{var e;if(!a||"attributes"!==t.type||!(null===(e=t.attributeName)||void 0===e?void 0:e.startsWith("data-tooltip-")))return;const n=kt(a);_t(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(a){const t=kt(a);_t(t),l.observe(a,c)}return()=>{l.disconnect()}}),[xt,wt,yt,n,i]),e.useEffect((()=>{null==j||j.border,R&&ui("border",`${R}`),null==j||j.opacity,L&&ui("opacity",`${L}`)}),[]);let St=d;const $t=e.useRef(null);if(o){const t=o({content:(null==yt?void 0:yt.getAttribute("data-tooltip-content"))||U||null,activeAnchor:yt});St=t?e.createElement("div",{ref:$t,className:"react-tooltip-content-wrapper"},t):null}else U&&(St=U);G&&(St=e.createElement($i,{content:G}));const Ct={forwardRef:W,id:t,anchorId:n,anchorSelect:i,className:ai(a,mt),classNameArrow:l,content:St,contentWrapperRef:$t,place:J,variant:Y,offset:Z,wrapper:ct,events:ut,openOnClick:m,positionStrategy:dt,middlewares:y,delayShow:et,delayHide:it,float:st,hidden:at,noArrow:k,clickable:_,closeOnEsc:S,closeOnScroll:$,closeOnResize:C,openEvents:A,closeEvents:P,globalCloseEvents:T,imperativeModeOnly:E,style:j,position:D,isOpen:M,defaultIsOpen:F,border:R,opacity:L,arrowColor:O,setIsOpen:z,afterShow:N,afterHide:V,disableTooltip:q,activeAnchor:yt,setActiveAnchor:t=>vt(t),role:B};return e.createElement(Si,{...Ct})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(t=>{t.detail.disableCore||ci({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),t.detail.disableBase||ci({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Ai=t.styled(P)``,Pi=t.styled.div`
|
|
80
|
+
${({theme:t,$maxWidth:e="320px"})=>`\n > :is(.react-tooltip, .react-tooltip__show, .react-tooltip__closing) {\n background-color: ${t.palette.gray[700]};\n border-radius: 8px;\n color: ${t.palette.white};\n font-size: ${t.typography.text.xs};\n max-width: ${e};\n padding: ${t.spacing[.75]};\n z-index: 999999;\n --rt-opacity: 1;\n }\n `}
|
|
81
|
+
`,Ti=e.forwardRef((function({children:i,disabled:r=!1,display:s="inline-block",effect:o="solid",icon:a,iconColor:l,iconSize:c,id:h,maxWidth:u,nodeTip:p,place:d="bottom",tip:f="",title:m="",hide:g=""===f&&""===m&&void 0===p,...v},b){const x=t.useTheme(),[w,k]=e.useState(!1),_=e.useRef(null),S=e.useCallback((()=>{null!==_.current&&clearTimeout(_.current),_.current=setTimeout((()=>{k(!0)}),100)}),[]),$=e.useCallback((()=>{null!==_.current&&clearTimeout(_.current),_.current=setTimeout((()=>{k(!1)}),100)}),[]);return r?y.jsx(e.StrictMode,{children:i}):y.jsxs(Ai,{"data-tooltip-id":h,display:s,onMouseLeave:$,onMouseMove:S,ref:b,...v,children:[a?y.jsx(V,{clickable:!0,disabled:r,icon:a,iconColor:l,iconSize:c??"xxs",iconType:w?"fa-solid":"fa-light"}):i,n.createPortal(y.jsx(Pi,{$maxWidth:u,children:y.jsxs(Ci,{delayShow:500,float:"float"===o||void 0,globalCloseEvents:{resize:!0},hidden:g||!w,id:h,middlewares:[(C={fallbackAxisSideDirection:"start"},{...ee(C),options:[C,undefined]}),le({mainAxis:10})],noArrow:"float"===o,place:d,children:[ri(m)?void 0:y.jsx(L,{color:x.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:m}),ri(f)?void 0:y.jsx(L,{color:x.palette.gray[100],lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:f}),ri(p)?void 0:p]})}),document.getElementById("root")??document.body)]});var C})),Ei=e.forwardRef((function({borderRadius:t,disabled:e,icon:n,iconColor:i,iconSize:r="xxs",iconType:s,id:o,justify:a="center",onClick:l,px:c,py:h,type:u="button",tooltip:p,tooltipPlace:d,value:f,variant:m="primary",...g},v){const b=y.jsx(J,{$borderRadius:t,$px:c,$py:h,$variant:m,"aria-label":o,borderRadius:t,disabled:e,id:o,justify:a,onClick:l,ref:v,type:u,value:f,...g,children:y.jsx(V,{clickable:!1,icon:n,iconColor:i,iconSize:r,iconType:s})}),x=(u+(m??"")+(o??n)).replace(/ /u,"_");return void 0===p?b:y.jsx(Ti,{id:`${x}-tooltip`,place:d,tip:p,children:b})})),ji=e.forwardRef((function({autoHide:t=!1,children:n,closable:i=!1,onTimeOut:r,show:s=!0,time:o=8,variant:a="error",id:l,...c},h){const[u,p]=e.useState(s),d=e.useCallback((()=>{p(!1)}),[]);return e.useEffect((()=>{const e=setTimeout((()=>{null==r||r(!0),t&&d()}),1e3*o);return()=>{clearTimeout(e)}}),[t,d,o,r]),e.useEffect((()=>{p(s)}),[s,p]),y.jsx(M,{display:u?"block":"none",ref:h,...c,children:y.jsxs(U,{$variant:a,id:l,children:[y.jsx(V,{clickable:!1,icon:B(a),iconSize:"xs",iconType:"fa-light"}),y.jsx(H,{children:n}),i?y.jsx(Ei,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:d,px:.125,py:.125,variant:"ghost"}):void 0]})})})),Di=e.forwardRef((function({bold:t=!1,children:n,disabled:i=!1,external:r=!1,href:s,id:o,icon:a,mode:l,name:c,onClick:h,showArrow:u=!1,type:p="button",tooltip:d,tooltipPlace:f="bottom",underline:m=!1,value:g,variant:v="primaryWeb",...b},x){const w=void 0!==d,k=`${o}-tooltip`,_=!v.endsWith("Web")&&"link"!==v,S=e.useCallback((()=>{s&&((t,e=!0)=>{const n=window.open(t,e?void 0:"_self","noopener,noreferrer,");Ee(n)&&(n.opener=null)})(s,r)}),[r,s]);return y.jsx(Ti,{disabled:!w,id:k,place:f,tip:d,children:y.jsxs(Q,{$variant:v,className:l,disabled:i,id:o,name:c,onClick:"link"===v?S:h,ref:x,type:p,value:g,...w?{"data-tooltip-id":k}:{},...b,children:[void 0!==a&&y.jsx(V,{icon:a,iconSize:"xs",iconType:"fa-light"}),y.jsx(L,{color:"inherit",fontWeight:t?"bold":"regular",lineSpacing:_?1.25:1.5,size:_?"sm":"md",sizeSm:"sm",textDecoration:m?"underline":void 0,children:n}),(u||"link"===v)&&y.jsx(V,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"})]})})})),Mi=t.styled.div`
|
|
82
|
+
position: relative;
|
|
83
|
+
margin: auto;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
`,Fi=t.styled.div`
|
|
86
|
+
display: flex;
|
|
87
|
+
transition: transform 0.5s ease-in-out;
|
|
88
|
+
transform: translateX(
|
|
89
|
+
${({$currentIndex:t})=>100*-t}%
|
|
90
|
+
);
|
|
91
|
+
`,Ii=t.styled.div`
|
|
92
|
+
align-items: center;
|
|
93
|
+
display: flex;
|
|
94
|
+
justify-content: center;
|
|
95
|
+
min-width: 100%;
|
|
96
|
+
`,Ri=t.styled.button`
|
|
97
|
+
${({theme:t,$isActive:e})=>`\n background-color: ${e?t.palette.primary[400]:t.palette.white};\n border: none;\n border-radius: 50%;\n cursor: pointer;\n height: ${t.spacing[.75]};\n width: ${t.spacing[.75]};\n `}
|
|
98
|
+
`,Li=t.styled.div`
|
|
99
|
+
align-items: center;
|
|
100
|
+
display: flex;
|
|
101
|
+
gap: ${({theme:t})=>t.spacing[.5]};
|
|
102
|
+
justify-content: center;
|
|
103
|
+
margin-top: ${({theme:t})=>t.spacing[2]};
|
|
104
|
+
`,Oi=(t,n)=>{const[i,r]=e.useState(0),[s,o]=e.useState(0);return e.useEffect((()=>{100===s&&r((t=>t===n-1?0:t+1))}),[s,n]),e.useEffect((()=>{const e=setInterval((()=>{o((t=>100===t?0:t+1))}),t);return()=>{clearInterval(e)}}),[t]),{cycle:i,progress:s,setCycle:r,setProgress:o}},zi=(t,n,i=!1)=>{e.useEffect((()=>{var e;const r=e=>{t&&!t.contains(e.target)&&n()};return i?(document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}):(null==(e=document.getElementById("root"))||e.addEventListener("click",r,!0),()=>{var t;null==(t=document.getElementById("root"))||t.removeEventListener("click",r,!0)})}),[i,t,n])};class Ni{filterOutNonSupportedKeys(t,e){const n=Object.create({});return"object"!=typeof(i=t)||i instanceof Array?Object.create({}):(Object.keys(t).forEach((i=>{e.indexOf(i)>=0&&(n[i]=t[i])})),n);var i}}const Vi=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class qi extends Ni{constructor(t){super();const e=this.filterOutNonSupportedKeys(t,Vi);Object.assign(this,{secure:!0},e)}extend(t){const e=this.filterOutNonSupportedKeys(t,Vi);return new qi(Object.assign({},this,e))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}let Bi=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return null!=t&&""!==t}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter((t=>this.hasValue(t))),this}setDelimiter(t){return this.delimiter=t,this}},Wi=class extends Error{constructor(t="Unsupported"){super(t)}};function Ui(t){return new Wi(t)}function Hi(){return this._qualifierModel||{error:Ui(`unsupported qualifier ${this.constructor.name}`)}}let Gi=class{constructor(){this._qualifierModel={}}toJson(){return Hi.apply(this)}},Qi=class extends Gi{constructor(t,e){super(),this.delimiter="_",this.key=t,e instanceof Bi?this.qualifierValue=e:(this.qualifierValue=new Bi,this.qualifierValue.addValue(e))}toString(){const{key:t,delimiter:e,qualifierValue:n}=this;return`${t}${e}${n.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},Ji=class extends Qi{constructor(t,e){let n;n=e?new Bi([t,`${e}`]).setDelimiter(":"):t,super("fl",n),this.flagValue=e}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function Ki(){var t,e,n;const i=this._actionModel&&Object.keys(this._actionModel).length,r=null===(n=null===(e=null===(t=this._actionModel)||void 0===t?void 0:t.source)||void 0===e?void 0:e.transformation)||void 0===n?void 0:n.error;return r&&r instanceof Error?{error:r}:i?this._actionModel:{error:Ui(`unsupported action ${this.constructor.name}`)}}let Yi=class{constructor(){this._actionModel={}}toJson(){return Ki.apply(this)}},Xi=class extends Yi{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),function(t,e){const n=Array.from(t.entries());return e.forEach((t=>{n.push(["fl",t])})),n.sort().map((t=>t[1]))}(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if("string"==typeof t){const[e,n]=t.toLowerCase().split("_");"fl"===e?this.flags.push(new Ji(n)):this.qualifiers.set(e,new Qi(e,n))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return"string"==typeof t?this.flags.push(new Ji(t)):t instanceof Ji&&this.flags.push(t),this}addValueToQualifier(t,e){return this.qualifiers.get(t).addValue(e),this}},Zi=class extends Xi{constructor(t){var e;super(),this._actionModel={},this.addQualifier(new Qi("b",new Bi((e=t,e&&e.match(/^#/)?`rgb:${e.substr(1)}`:e)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:e}=t;return new this(e)}},tr=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Ui(`unsupported action ${this.constructor.name}`)}}},er=class extends Bi{constructor(t){super(t),this.val=t}getValue(){return this.val}};function nr(t){const e={};return Object.keys(t).forEach((n=>{e[t[n]]=n})),e}nr({444:"CHROMA_444",420:"CHROMA_420"}),nr({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"}),nr({limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"});const ir=nr({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"});nr({redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"}),nr({autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"}),nr({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});let rr=class extends Xi{constructor(t,e,n){let i;super(),this._actionModel={},i=e instanceof er?e.getValue():e,this._actionModel.actionType=ir[t],this._actionModel[n]=i,this.addQualifier(new Qi(t,e))}},sr=class extends Ji{constructor(t){super("progressive",t)}},or=class extends rr{constructor(t,e){super(t,e,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new Ji("lossy")),this}progressive(t){return t instanceof sr?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(new Ji("progressive",t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new Ji("preserve_transparency")),this}static fromJson(t){const{formatType:e,lossy:n,progressive:i,preserveTransparency:r}=t;let s;return s=e?new this("f",e):new this("f"),i&&(i.mode?s.progressive(i.mode):s.progressive()),n&&s.lossy(),r&&s.preserveTransparency(),s}},ar=class t{constructor(){this.actions=[]}addAction(t){let e;if("string"==typeof t){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";e=new tr(t)}else e=t;return this.actions.push(e),this}addTransformation(e){return e instanceof t?this.actions=this.actions.concat(e.actions):this.actions.push(new tr(e)),this}toString(){return this.actions.map((t=>t.toString())).filter((t=>t)).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new or("q",t)),this}format(t){return this.addAction(new or("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new Zi(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const e=new Xi;let n=t;return"string"==typeof t&&(n=new Ji(t)),e.addQualifier(n),this.addAction(e)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const i=n.toJson();if("error"in(e=i)&&e.error)return i;t.push(i)}var e;return{actions:t}}};class lr extends ar{}class cr extends ar{}function hr(t,e,n){let i=0|e,r=String(n);return t.length>i?String(t):(i-=t.length,i>r.length&&(r+=function(t,e){let n=e,i="";for(;n>0;)i+=t,n--;return i}(r,i/r.length)),r.slice(0,i)+String(t))}const ur={};let pr=0;function dr(t){let e="";const n=6*t.split(".").length,i=function(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").map((t=>{const e=+t;if(isNaN(e)||e<0)throw"Invalid version number provided";return hr(t,2,"0")})).join(".")}(function(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").reverse().join(".")}(t));let r=parseInt(i.split(".").join("")).toString(2);if(r=hr(r,n,"0"),r.length%6!=0)throw"Version must be smaller than 43.21.26)";return r.match(/.{1,6}/g).forEach((t=>{e+=ur[t]})),e}function fr(){const t="0.0.0";if("undefined"!=typeof window)return t;try{return process.versions.node||t}catch(gn){return t}}function mr(t){const e=function(t){const e={sdkSemver:t.sdkSemver,techVersion:t.techVersion,sdkCode:t.sdkCode,product:t.product,feature:"0",osType:t.osType,osVersion:t.osVersion};return t.accessibility&&(e.feature="D"),t.lazyload&&(e.feature="C"),t.responsive&&(e.feature="A"),t.placeholder&&(e.feature="B"),e}(function(t){const e={techVersion:fr(),sdkCode:"T",sdkSemver:"1.21.0".split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return t?Object.assign(Object.assign({},e),t):e}(t));try{const t=function(t){const e=t.split(".");return`${e[0]}.${e[1]}`}(e.techVersion),n=dr(e.sdkSemver),i=dr(t),r=function(t){const[e,n]=t.split("."),i=parseInt(e).toString(2),r=parseInt(n).toString(2),s=i.padStart(6,"0"),o=r.padStart(6,"0");return ur[s]+ur[o]}(e.osVersion),s=e.feature,o=e.sdkCode,{product:a,osType:l}=e;return`D${a}${o}${n}${i}${l}${r}${s}`}catch(n){return"E"}}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach((t=>{let e=pr.toString(2);e=hr(e,6,"0"),ur[e]=t,pr++}));const gr={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class yr{constructor(t,e={},n){this.setPublicID(t),this.setCloudConfig(e),this.setURLConfig(n)}setURLConfig(t){return this.urlConfig=new qi(t),this}setCloudConfig(t){return this.cloudName=t.cloudName,this.apiKey=t.apiKey,this.apiSecret=t.apiSecret,this.authToken=t.authToken,this}setPublicID(t){return this.publicID=t?t.toString():"",this}setDeliveryType(t){return this.deliveryType=t,this}setSuffix(t){return this.suffix=t,this}setSignature(t){return this.signature=t,this}setVersion(t){return t&&(this.version=t),this}setAssetType(t){return t&&(this.assetType=t),this}sign(){return this}toURL(t={}){return this.createCloudinaryURL(null,t.trackedAnalytics)}validateAssetForURLCreation(){if(void 0===this.cloudName)throw"You must supply a cloudName when initializing the asset";const t=this.suffix&&this.suffix.indexOf(".")>=0,e=this.suffix&&this.suffix.indexOf("/")>=0;if(t||e)throw"`suffix`` should not include . or /"}getResourceType(){const t=function(t){return t||"image"}(this.assetType),e=function(t){return t||"upload"}(this.deliveryType),n=!!this.suffix,i=`${t}/${e}`,r=gr[`${t}/${e}`],s=this.urlConfig.useRootPath,o=this.urlConfig.shorten;if(s){if("image/upload"===i)return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(o&&"image/upload"===i)return"iu";if(n){if(r)return r;throw new Error(`URL Suffix only supported for ${Object.keys(gr).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,e){if(!this.publicID)return"";this.validateAssetForURLCreation();const n=function(t,e){const n=e.secure,i=e.privateCdn,r=e.cname,s=e.secureDistribution;return n||r?n&&!s&&i?`https://${t}-res.cloudinary.com`:n&&!s?`https://res.cloudinary.com/${t}`:n&&s&&i?`https://${s}`:n&&s?`https://${s}/${t}`:!n&&r?`http://${r}/${t}`:"ERROR":`http://res.cloudinary.com/${t}`}(this.cloudName,this.urlConfig),i=t?t.toString():"",r=function(t,e,n){const i=!1!==n;return e?`v${e}`:t.match(/^v[0-9]+/)||function(t){return t.match(/^https?:\//)}(t)||function(t){return t.indexOf("/")<0}(t)?"":i?"v1":""}(this.publicID,this.version,this.urlConfig.forceVersion),s=this.publicID;if("string"==typeof t)return[n,this.getResourceType(),this.getSignature(),i,r,s.replace(/,/g,"%2C"),this.suffix].filter((t=>t)).join("/");{const t=[encodeURI(n),this.getResourceType(),this.getSignature(),encodeURI(i),r,encodeURI(s).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter((t=>t)).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),a=!1!==this.urlConfig.analytics&&!s.includes("?");let l="";if("object"==typeof this.urlConfig.queryParams)try{const t=new URLSearchParams(this.urlConfig.queryParams);a&&t.set("_a",mr(e)),l=t.toString()}catch(o){}else l=this.urlConfig.queryParams||"",a&&(l+=`${l.length>0?"&":""}_a=${mr(e)}`);return l?`${t}?${l}`:t}}}class vr extends yr{constructor(t,e,n,i){super(t,e,n),this.transformation=i}animated(t){return this.transformation.animated(t),this}border(t){return this.transformation.border(t),this}reshape(t){return this.transformation.reshape(t),this}resize(t){return this.transformation.resize(t),this}quality(t){return this.addAction(new or("q",t)),this}format(t){return this.addAction(new or("f",t)),this}roundCorners(t){return this.transformation.roundCorners(t),this}overlay(t){return this.transformation.overlay(t),this}addVariable(t){return this.transformation.addVariable(t),this}conditional(t){return this.transformation.conditional(t),this}effect(t){return this.transformation.effect(t),this}adjust(t){return this.transformation.adjust(t),this}rotate(t){return this.transformation.rotate(t),this}namedTransformation(t){return this.transformation.namedTransformation(t),this}delivery(t){return this.transformation.delivery(t),this}backgroundColor(t){return this.transformation.backgroundColor(t),this}psdTools(t){return this.transformation.psdTools(t),this}extract(t){return this.transformation.extract(t),this}addFlag(t){return this.transformation.addFlag(t),this}customFunction(t){return this.transformation.customFunction(t),this}addAction(t){return this.transformation.addAction(t),this}addTransformation(t){return this.transformation.addTransformation(t),this}toString(){return this.transformation.toString()}underlay(t){return this.transformation.underlay(t),this}toURL(t={}){return this.createCloudinaryURL(this.transformation,null==t?void 0:t.trackedAnalytics)}}class br extends vr{constructor(t,e,n){super(t,e,n,new lr)}}class xr extends vr{constructor(t,e,n){super(t,e,n,new cr),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class wr{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new br(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new xr(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}const kr=({publicId:t,format:n="webp"})=>{const i=e.useMemo((()=>new wr({cloud:{cloudName:"fluid-attacks"}})),[]);return e.useMemo((()=>i.image(t).format(n)),[i,t,n])},_r={web:{normal:v.typography.text.md,sm:v.typography.text.sm},platform:{normal:v.typography.text.sm,sm:v.typography.text.sm}},Sr=t.styled.label`
|
|
105
|
+
${({$alert:t,$disabled:e,$variant:n})=>{const i=e?300:600;return`\n display: flex;\n align-items: start;\n position: relative;\n cursor: ${e?"not-allowed":"pointer"};\n font-family: ${v.typography.type.primary};\n font-size: ${_r[n].normal};\n font-weight: ${t?"inherit":v.typography.weight.regular};\n line-height: ${v.spacing[1]};\n letter-spacing: 0;\n text-align: left;\n color: ${t?"inherit":v.palette.gray[i]};\n\n input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n }\n\n svg {\n margin-right: ${v.spacing[.5]};\n top: 0;\n left: 0;\n height: ${v.spacing[.5]};\n width: ${v.spacing[.5]};\n padding: ${v.spacing[.25]};\n background-color: ${v.palette.white};\n border-radius: ${"web"===n?v.spacing[.125]:v.spacing[.25]};\n border: 1px solid ${v.palette.gray[600]};\n }\n\n svg > path {\n fill: ${v.palette.white};\n }\n\n input:checked ~ span > svg {\n background-color: ${v.palette.primary[500]};\n border: 1px solid ${v.palette.primary[500]};\n }\n\n input:disabled ~ span > svg {\n border: 1px solid ${v.palette.gray[300]};\n cursor: not-allowed;\n }\n\n input:not(:disabled):hover ~ span > svg {\n box-shadow: 0 0 0 4px ${v.palette.gray[100]};\n }\n\n input:checked:disabled ~ span > svg {\n background-color: ${v.palette.gray[300]};\n border: 1px solid ${v.palette.gray[300]};\n }\n\n input:not(:disabled):hover:checked ~ span > svg {\n box-shadow: 0 0 0 4px ${v.palette.primary[50]};\n }\n\n input:checked ~ span > svg > path {\n fill: ${v.palette.white};\n }\n\n input:checked:disabled ~ span > svg > path {\n fill: ${v.palette.white};\n }\n\n @media screen and (max-width: ${v.breakpoints.mobile}) {\n font-size: ${_r[n].sm};\n }\n `}}
|
|
106
|
+
`,$r=e.forwardRef((function({defaultChecked:t=!1,disabled:e=!1,label:n,name:i,onChange:r,onClick:s,onFocus:o,onKeyDown:a,value:l,variant:c="web",...h},u){return y.jsxs(Sr,{$disabled:e,$variant:c,children:[y.jsx("input",{"aria-label":i,defaultChecked:t,disabled:e,id:i,name:i,onChange:r,onClick:s,onFocus:o,onKeyDown:a,ref:u,type:"checkbox",value:l,...h}),y.jsx(V,{disabled:e,icon:"check",iconSize:"sm"}),n??l]})}));var Cr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ar={exports:{}};!function(t,e){var n="__lodash_hash_undefined__",i=9007199254740991,r="[object Arguments]",s="[object Boolean]",o="[object Date]",a="[object Function]",l="[object GeneratorFunction]",c="[object Map]",h="[object Number]",u="[object Object]",p="[object Promise]",d="[object RegExp]",f="[object Set]",m="[object String]",g="[object Symbol]",y="[object WeakMap]",v="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",k="[object Int8Array]",_="[object Int16Array]",S="[object Int32Array]",$="[object Uint8Array]",C="[object Uint8ClampedArray]",A="[object Uint16Array]",P="[object Uint32Array]",T=/\w*$/,E=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,D={};D[r]=D["[object Array]"]=D[v]=D[b]=D[s]=D[o]=D[x]=D[w]=D[k]=D[_]=D[S]=D[c]=D[h]=D[u]=D[d]=D[f]=D[m]=D[g]=D[$]=D[C]=D[A]=D[P]=!0,D["[object Error]"]=D[a]=D[y]=!1;var M="object"==typeof Cr&&Cr&&Cr.Object===Object&&Cr,F="object"==typeof self&&self&&self.Object===Object&&self,I=M||F||Function("return this")(),R=e&&!e.nodeType&&e,L=R&&t&&!t.nodeType&&t,O=L&&L.exports===R;function z(t,e){return t.set(e[0],e[1]),t}function N(t,e){return t.add(e),t}function V(t,e,n,i){for(var r=-1,s=t?t.length:0;++r<s;)n=e(n,t[r],r,t);return n}function q(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function B(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function W(t,e){return function(n){return t(e(n))}}function U(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var H,G=Array.prototype,Q=Function.prototype,J=Object.prototype,K=I["__core-js_shared__"],Y=(H=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"",X=Q.toString,Z=J.hasOwnProperty,tt=J.toString,et=RegExp("^"+X.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nt=O?I.Buffer:void 0,it=I.Symbol,rt=I.Uint8Array,st=W(Object.getPrototypeOf,Object),ot=Object.create,at=J.propertyIsEnumerable,lt=G.splice,ct=Object.getOwnPropertySymbols,ht=nt?nt.isBuffer:void 0,ut=W(Object.keys,Object),pt=It(I,"DataView"),dt=It(I,"Map"),ft=It(I,"Promise"),mt=It(I,"Set"),gt=It(I,"WeakMap"),yt=It(Object,"create"),vt=Nt(pt),bt=Nt(dt),xt=Nt(ft),wt=Nt(mt),kt=Nt(gt),_t=it?it.prototype:void 0,St=_t?_t.valueOf:void 0;function $t(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Ct(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function At(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Pt(t){this.__data__=new Ct(t)}function Tt(t,e,n){var i=t[e];Z.call(t,e)&&Vt(i,n)&&(void 0!==n||e in t)||(t[e]=n)}function Et(t,e){for(var n=t.length;n--;)if(Vt(t[n][0],e))return n;return-1}function jt(t,e,n,i,p,y,E){var j;if(i&&(j=y?i(t,p,y,E):i(t)),void 0!==j)return j;if(!Ht(t))return t;var M,F,I,R=qt(t);if(R){if(F=(M=t).length,I=M.constructor(F),F&&"string"==typeof M[0]&&Z.call(M,"index")&&(I.index=M.index,I.input=M.input),j=I,!e)return function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}(t,j)}else{var L=Lt(t),O=L==a||L==l;if(Wt(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if(L==u||L==r||O&&!y){if(q(t))return y?t:{};if(j=function(t){return"function"!=typeof t.constructor||zt(t)?{}:Ht(e=st(t))?ot(e):{};var e}(O?{}:t),!e)return function(t,e){return Mt(t,Rt(t),e)}(t,function(t,e){return t&&Mt(e,Gt(e),t)}(j,t))}else{if(!D[L])return y?t:{};j=function(t,e,n,i){var r,a,l,u=t.constructor;switch(e){case v:return Dt(t);case s:case o:return new u(+t);case b:return r=t,a=i?Dt(r.buffer):r.buffer,new r.constructor(a,r.byteOffset,r.byteLength);case x:case w:case k:case _:case S:case $:case C:case A:case P:return function(t,e){var n=e?Dt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,i);case c:return function(t,e,n){return V(e?n(B(t),!0):B(t),z,new t.constructor)}(t,i,n);case h:case m:return new u(t);case d:return function(t){var e=new t.constructor(t.source,T.exec(t));return e.lastIndex=t.lastIndex,e}(t);case f:return function(t,e,n){return V(e?n(U(t),!0):U(t),N,new t.constructor)}(t,i,n);case g:return l=t,St?Object(St.call(l)):{}}}(t,L,jt,e)}}E||(E=new Pt);var W=E.get(t);if(W)return W;if(E.set(t,j),!R)var H=n?function(t){return function(t,e,n){var i=e(t);return qt(t)?i:function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}(i,n(t))}(t,Gt,Rt)}(t):Gt(t);return function(r){for(var s=-1,o=r?r.length:0;++s<o&&!1!==(a=r[s],l=s,H&&(a=t[l=a]),void Tt(j,l,jt(a,e,n,i,l,t,E))););var a,l}(H||t),j}function Dt(t){var e=new t.constructor(t.byteLength);return new rt(e).set(new rt(t)),e}function Mt(t,e,n,i){n||(n={});for(var r=-1,s=e.length;++r<s;){var o=e[r];Tt(n,o,t[o])}return n}function Ft(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function It(t,e){var n,i,r=(i=e,null==(n=t)?void 0:n[i]);return function(t){return!(!Ht(t)||(e=t,Y&&Y in e))&&(Ut(t)||q(t)?et:E).test(Nt(t));var e}(r)?r:void 0}$t.prototype.clear=function(){this.__data__=yt?yt(null):{}},$t.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},$t.prototype.get=function(t){var e=this.__data__;if(yt){var i=e[t];return i===n?void 0:i}return Z.call(e,t)?e[t]:void 0},$t.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:Z.call(e,t)},$t.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?n:e,this},Ct.prototype.clear=function(){this.__data__=[]},Ct.prototype.delete=function(t){var e=this.__data__,n=Et(e,t);return!(n<0||(n==e.length-1?e.pop():lt.call(e,n,1),0))},Ct.prototype.get=function(t){var e=this.__data__,n=Et(e,t);return n<0?void 0:e[n][1]},Ct.prototype.has=function(t){return Et(this.__data__,t)>-1},Ct.prototype.set=function(t,e){var n=this.__data__,i=Et(n,t);return i<0?n.push([t,e]):n[i][1]=e,this},At.prototype.clear=function(){this.__data__={hash:new $t,map:new(dt||Ct),string:new $t}},At.prototype.delete=function(t){return Ft(this,t).delete(t)},At.prototype.get=function(t){return Ft(this,t).get(t)},At.prototype.has=function(t){return Ft(this,t).has(t)},At.prototype.set=function(t,e){return Ft(this,t).set(t,e),this},Pt.prototype.clear=function(){this.__data__=new Ct},Pt.prototype.delete=function(t){return this.__data__.delete(t)},Pt.prototype.get=function(t){return this.__data__.get(t)},Pt.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Ct){var i=n.__data__;if(!dt||i.length<199)return i.push([t,e]),this;n=this.__data__=new At(i)}return n.set(t,e),this};var Rt=ct?W(ct,Object):function(){return[]},Lt=function(t){return tt.call(t)};function Ot(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||j.test(t))&&t>-1&&t%1==0&&t<e}function zt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||J)}function Nt(t){if(null!=t){try{return X.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Vt(t,e){return t===e||t!=t&&e!=e}(pt&&Lt(new pt(new ArrayBuffer(1)))!=b||dt&&Lt(new dt)!=c||ft&&Lt(ft.resolve())!=p||mt&&Lt(new mt)!=f||gt&&Lt(new gt)!=y)&&(Lt=function(t){var e=tt.call(t),n=e==u?t.constructor:void 0,i=n?Nt(n):void 0;if(i)switch(i){case vt:return b;case bt:return c;case xt:return p;case wt:return f;case kt:return y}return e});var qt=Array.isArray;function Bt(t){return null!=t&&("number"==typeof(e=t.length)&&e>-1&&e%1==0&&e<=i)&&!Ut(t);var e}var Wt=ht||function(){return!1};function Ut(t){var e=Ht(t)?tt.call(t):"";return e==a||e==l}function Ht(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Gt(t){return Bt(t)?function(t){var e,n,i=qt(t)||function(t){return!!t&&"object"==typeof t}(n=e=t)&&Bt(n)&&Z.call(e,"callee")&&(!at.call(e,"callee")||tt.call(e)==r)?function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(t.length,String):[],s=i.length,o=!!s;for(var a in t)!Z.call(t,a)||o&&("length"==a||Ot(a,s))||i.push(a);return i}(t):function(t){if(!zt(t))return ut(t);var e=[];for(var n in Object(t))Z.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}t.exports=function(t){return jt(t,!0,!0)}}(Ar,Ar.exports);var Pr=Ar.exports,Tr=function(){return Tr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Tr.apply(this,arguments)};function Er(t,e,n,i,r){return function(t,e,n,i){return new(n||(n=Promise))((function(e,r){function s(t){try{a(i.next(t))}catch(e){r(e)}}function o(t){try{a(i.throw(t))}catch(e){r(e)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(s,o)}a((i=i.apply(t,[])).next())}))}(this,0,void 0,(function(){var s,o;return function(t,e){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(l){a=[6,l],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(a){switch(a.label){case 0:if(void 0===n)return[2];o=0,a.label=1;case 1:return o<n.length?[4,n[o](t,e,i,r,n)]:[3,4];case 2:if("canceled"===(s=a.sent()))return[3,4];a.label=3;case 3:return o++,[3,1];case 4:return"canceled"!==s?[2,s]:[2]}}))}))}"function"==typeof SuppressedError&&SuppressedError;var jr=function(t,e){return void 0===e&&(e={}),t?{trackedAnalytics:Tr({sdkCode:t.sdkCode,sdkSemver:t.sdkSemver,techVersion:t.techVersion},e)}:null},Dr=function(){function t(t,e,n,i){var r=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var s=Pr(e);Er(t,s,n,this.htmlPluginState,i).then((function(t){if(r.isMounted){r.htmlPluginState.pluginEventSubscription.forEach((function(t){t()}));var e=jr(i,t);r.imgElement.setAttribute("src",s.toURL(e))}}))}return t.prototype.update=function(t,e,n){var i=this,r=Pr(t);Er(this.imgElement,r,e,this.htmlPluginState).then((function(t){if(i.isMounted){var e=jr(n,t);i.imgElement.setAttribute("src",r.toURL(e))}}))},t.prototype.unmount=function(){this.isMounted=!1},t}();class Mr{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return null!=t&&""!==t}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter((t=>this.hasValue(t))),this}setDelimiter(t){return this.delimiter=t,this}}class Fr extends Error{constructor(t="Unsupported"){super(t)}}function Ir(t){return new Fr(t)}function Rr(){return this._qualifierModel||{error:Ir(`unsupported qualifier ${this.constructor.name}`)}}class Lr{constructor(){this._qualifierModel={}}toJson(){return Rr.apply(this)}}class Or extends Lr{constructor(t,e){super(),this.delimiter="_",this.key=t,e instanceof Mr?this.qualifierValue=e:(this.qualifierValue=new Mr,this.qualifierValue.addValue(e))}toString(){const{key:t,delimiter:e,qualifierValue:n}=this;return`${t}${e}${n.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class zr extends Or{constructor(t,e){let n;n=e?new Mr([t,`${e}`]).setDelimiter(":"):t,super("fl",n),this.flagValue=e}toString(){return super.toString().replace(/\./,"%2E")}getFlagValue(){return this.flagValue}}function Nr(){var t,e,n;const i=this._actionModel&&Object.keys(this._actionModel).length,r=null===(n=null===(e=null===(t=this._actionModel)||void 0===t?void 0:t.source)||void 0===e?void 0:e.transformation)||void 0===n?void 0:n.error;return r&&r instanceof Error?{error:r}:i?this._actionModel:{error:Ir(`unsupported action ${this.constructor.name}`)}}class Vr{constructor(){this._actionModel={}}toJson(){return Nr.apply(this)}}class qr extends Vr{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),function(t,e){const n=Array.from(t.entries());return e.forEach((t=>{n.push(["fl",t])})),n.sort().map((t=>t[1]))}(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if("string"==typeof t){const[e,n]=t.toLowerCase().split("_");"fl"===e?this.flags.push(new zr(n)):this.qualifiers.set(e,new Or(e,n))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return"string"==typeof t?this.flags.push(new zr(t)):t instanceof zr&&this.flags.push(t),this}addValueToQualifier(t,e){return this.qualifiers.get(t).addValue(e),this}}class Br extends qr{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class Wr extends Br{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Or("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Or("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Or("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Or("h",t)),this}static fromJson(t){const e=new Wr;return t.width&&e.width(t.width),t.height&&e.height(t.height),t.x&&e.x(t.x),t.y&&e.y(t.y),e}}function Ur(){return new Br("faces")}function Hr(t){const e={};return Object.keys(t).forEach((n=>{e[t[n]]=n})),e}const Gr={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad"},Qr={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},Jr={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},Kr={444:"CHROMA_444",420:"CHROMA_420"},Yr=Hr(Kr);Hr({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"});const Xr=Hr(Gr),Zr=Hr({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"}),ts=Hr(Qr);Hr(Jr),Hr({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class es extends qr{constructor(t,e){super(),this._actionModel={},this._actionModel.actionType=ts[t]||t;const n=this.createEffectQualifier(t,e);this.addQualifier(n)}createEffectQualifier(t,e){let n;return n=e?new Mr([t,`${e}`]).setDelimiter(":"):new Mr(t),new Or("e",n)}static fromJson(t){const{actionType:e,level:n,strength:i}=t;return new this(Qr[e]||e,n||i)}}class ns extends es{constructor(t,e){super(t,e),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=ts[t]||t,e&&this.setLevel(e)}setLevel(t){this._actionModel[this.LEVEL_NAME]=t;const e=this.createEffectQualifier(this.effectType,t);return this.addQualifier(e),this}}function is(t){return t&&t.match(/^#/)?`rgb:${t.substr(1)}`:t}class rs extends ns{level(t){return this._actionModel.level=t,this.setLevel(t)}}class ss extends rs{color(t){return this._actionModel.color=t,this.addQualifier(new Or("co",new Mr(is(t))))}static fromJson(t){const{actionType:e,level:n,color:i}=t,r=new this(e,n);return i&&r.color(i),r}}function os(t){return new ss("colorize",t)}class as extends qr{constructor(t){super(),this._actionModel={},this.addQualifier(new Or("b",new Mr(is(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:e}=t;return new this(e)}}class ls{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Ir(`unsupported action ${this.constructor.name}`)}}}class cs extends Mr{constructor(t){super(t),this.val=t}getValue(){return this.val}}class hs extends qr{constructor(t,e,n){let i;super(),this._actionModel={},i=e instanceof cs?e.getValue():e,this._actionModel.actionType=Zr[t],this._actionModel[n]=i,this.addQualifier(new Or(t,e))}}class us extends zr{constructor(t){super("progressive",t)}}class ps extends hs{constructor(t,e){super(t,e,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new zr("lossy")),this}progressive(t){return t instanceof us?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(new zr("progressive",t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new zr("preserve_transparency")),this}static fromJson(t){const{formatType:e,lossy:n,progressive:i,preserveTransparency:r}=t;let s;return s=e?new this("f",e):new this("f"),i&&(i.mode?s.progressive(i.mode):s.progressive()),n&&s.lossy(),r&&s.preserveTransparency(),s}}class ds{constructor(){this.actions=[]}addAction(t){let e;if("string"==typeof t){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";e=new ls(t)}else e=t;return this.actions.push(e),this}addTransformation(t){return t instanceof ds?this.actions=this.actions.concat(t.actions):this.actions.push(new ls(t)),this}toString(){return this.actions.map((t=>t.toString())).filter((t=>t)).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new ps("q",t)),this}format(t){return this.addAction(new ps("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new as(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const e=new qr;let n=t;return"string"==typeof t&&(n=new zr(t)),e.addQualifier(n),this.addAction(e)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const i=n.toJson();if("error"in(e=i)&&e.error)return i;t.push(i)}var e;return{actions:t}}}function fs(t){const e=t.toString();return e.match(/[A-Z]/gi)||e.length>1&&"0"===e[0]||isNaN(parseFloat(e))||-1!==e.indexOf(":")||-1!==e.indexOf(".")?e:`${e}.0`}class ms extends Mr{}class gs extends qr{constructor(t,e,n){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=Xr[t]||t,this.addQualifier(new Or("c",t)),e&&this.width(e),n&&this.height(n)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Or("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Or("w",t))}aspectRatio(t){return t instanceof ms?(this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Or("ar",t))):"number"==typeof t||"string"==typeof t?(this._actionModel.dimensions.aspectRatio=fs(t),this.addQualifier(new Or("ar",fs(t)))):t instanceof zr?(this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)):void 0}relative(){return this._actionModel.relative=!0,this.addFlag(new zr("relative"))}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(new zr("region_relative"))}static fromJson(t){const{actionType:e,dimensions:n,relative:i,regionRelative:r}=t,{aspectRatio:s,width:o,height:a}=n,l=new this(Gr[e]||e,o,a);return s&&l.aspectRatio("ignore_aspect_ratio"===s?new zr("ignore_aspect_ratio"):s),i&&l.relative(),r&&l.regionRelative(),l}}class ys extends Or{constructor(t){super("g",new Mr(t))}}class vs extends ys{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class bs extends ys{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class xs extends ys{constructor(t){super(t)}}function ws(...t){const e=[...t];return new bs(e)}function ks(){return new vs}class _s extends Mr{constructor(t){super(),this.name=t}toString(){return this.name}}function Ss(t){return`${t}`.replace("g_","")}function $s(t){const e=t.toString().split("_"),n={object:e[0]};return e.length>1&&("avoid"===e[1]?n.avoid=!0:n.weight=+e[1]),n}function Cs(t){let e;const n="auto"===t?new vs:t;return e=`${t}`.startsWith("auto:")?`${t}`.split(":").filter((t=>"auto"!==t)):n.qualifierValue.values.filter((t=>"auto"!==t)),{gravityType:"auto",autoFocus:e.map($s)}}class As extends Mr{constructor(t,e){super(),this._weight=e,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,e){return new As(t,e)}shouldAddWeight(){return"number"==typeof this._weight||"string"==typeof this._weight||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class Ps extends Mr{constructor(t){super(),this.val=t}toString(){return this.val}}function Ts(t){const{object:e,weight:n,avoid:i}=t,r=new As(new _s(e));return(n||0===n)&&r.weight(n),i&&r.avoid(),r}function Es(t){const e=(t.autoFocus||[]).map(Ts);return ks().autoFocus(...e)}class js extends gs{gravity(t){this._actionModel.gravity=function(t){return function(t){const e=Ss(t);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(e)}(t)?{compass:Ss(t),gravityType:"direction"}:(e=t,"ocr_text"===Ss(e)?{gravityType:"ocr"}:function(t){return t&&"auto"===`${t}`.split(":")[0]}(t)||function(t){return"auto"===`${t.qualifierValue}`.split(":")[0]}(t)?Cs(t):function(t){const e=`${t}`.split(":").includes("auto"),n=t.qualifierValue.values,i={gravityType:"object",focusOnObjects:(e?n.slice(0,n.length-1):n).map((t=>`${t}`))};if(e){const t=n[n.length-1].values.slice(1),e=ks().autoFocus(...t);i.fallbackGravity=Cs(e)}return i}("string"==typeof t?function(t){const e=t.split(":").map((t=>new _s(t)));return new bs(e)}(t):t));var e}(t);const e="string"==typeof t?new Or("g",t):t;return this.addQualifier(e)}static fromJson(t){const e=super.fromJson.apply(this,[t]);return t.gravity&&e.gravity(function(t){return"direction"===t.gravityType?new xs(new Ps(t.compass)):(e=t,"ocr"===e.gravityType?ws(new _s("ocr_text")):function(t){return"auto"===t.gravityType}(t)?Es(t):function(t){const e=ws(...(t.focusOnObjects||[]).map((t=>new _s(t))));if(t.fallbackGravity){const n=Es(t.fallbackGravity);e.fallbackGravity(n)}return e}(t));var e}(t.gravity)),e}}class Ds extends Or{constructor(t){super("b"),t&&this.addValue(t)}}var Ms=class extends Ds{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){return`b_blurred${void 0!==this.intensityLevel?`:${this.intensityLevel}`:""}${void 0!==this.brightnessLevel?void 0!==this.intensityLevel?`:${this.brightnessLevel}`:`:100:${this.brightnessLevel}`:""}`}};class Fs extends Ds{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map((t=>is(t))),this}}class Is extends Fs{toString(){return`\n b_auto:border\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class Rs extends Fs{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class Ls extends Rs{toString(){return`\n b_auto:border_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class Os extends Rs{toString(){return`\n b_auto:predominant_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class zs extends Fs{toString(){return`\n b_auto:predominant\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class Ns extends Ds{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){return this._prompt=t,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return"b_gen_fill"+(this._prompt?`:prompt_${this._prompt}`:"")}}function Vs(t){return`${t}`.replace("b_","")}function qs(t){const e=t._contrast,n=t._palette,i={backgroundType:""};return e&&(i.contrast=!0),n&&(i.palette=n),i}function Bs(t){const e=t._gradientColors,n=`${t._gradientDirection}`,i=qs(t);return e&&(i.gradientColors=e),n&&(i.gradientDirection=n),i}function Ws(){return new cs("auto")}function Us(){return new Is}function Hs(){return new Ds("auto")}function Gs(){return new Ls}function Qs(){return new Os}function Js(){return new zs}function Ks(t){return new Ds(is(t))}function Ys(){return new Ns}const Xs={auto:Hs,border:Us,borderGradient:Gs,predominantGradient:Qs,predominant:Js,color:Ks,blurred:function(){return new Ms},generativeFill:Ys};function Zs(t,e){const{gradientColors:n,gradientDirection:i,contrast:r,palette:s}=e;return r&&t.contrast(),s&&t.palette(...s),n&&t.gradientColors(+n),i&&t.gradientDirection(i),t}function to(t,e){const{contrast:n,palette:i}=e;return n&&t.contrast(),i&&t.palette(...i),t}class eo extends js{x(t){return this._actionModel.x=t,this.addQualifier(new Or("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Or("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new Or("z",t))}static fromJson(t){const e=super.fromJson.apply(this,[t]);return t.x&&e.x(t.x),t.y&&e.y(t.y),t.zoom&&e.zoom(t.zoom),e}}class no extends js{x(t){return this._actionModel.x=t,this.addQualifier(new Or("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Or("y",t))}static fromJson(t){const e=super.fromJson.apply(this,[t]);return t.x&&e.x(t.x),t.y&&e.y(t.y),e}}class io extends hs{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=Kr[t];const e=new Mr([this._actionModel.level,t]);return e.setDelimiter(":"),this.addQualifier(new Or("q",e))}quantization(t){this._actionModel.quantization=t;const e=new Mr([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new Or("q",e))}static fromJson(t){const{level:e,chromaSubSampling:n,quantization:i}=t,r=new this(Jr[e]||e);if(n){const t=Yr[n.toUpperCase()];t&&r.chromaSubSampling(+t)}return i&&r.quantization(i),r}}function ro(t){return new ps("f",t)}function so(t){return new io(t)}os(70).color("black"),os(40).color("white"),new es("grayscale"),new class extends qr{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Or("e",new Mr("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Or("e",new Mr(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Or("e",new Mr(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:e,type:n,stripesStrength:i}=t,r=new this;return"xray"===n&&r.xray(),"stripes"===n&&i&&r.stripesStrength(i),r}};var oo,ao={vectorize:(new ds).effect(new class extends qr{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new Mr(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Mr(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Mr(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Mr(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Mr(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Or("e",t))}static fromJson(t){const{actionType:e,paths:n,cornersLevel:i,despeckleLevel:r,detailLevel:s,numOfColors:o}=t,a=new this;return n&&a.paths(n),i&&a.cornersLevel(i),r&&a.despeckleLevel(r),s&&a.detailsLevel(s),o&&a.numOfColors(o),a}}).delivery(so("auto")).delivery(ro(new cs("svg"))),pixelate:(new ds).effect(new class extends qr{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach((t=>this.addQualifier(t))),"custom"===this._region.regionType&&this.addQualifier(new Or("e",`pixelate_region${t}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new Or("e",`pixelate_region${t}`)),this.addQualifier(new Or("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new Or("e",`pixelate_faces${t}`))):this.addQualifier(new Or("e",`pixelate${t}`))}static fromJson(t){const{region:e,squareSize:n}=t,i=new this(n);return n&&i.squareSize(n),e&&"faces"===e.regionType&&i.region(Ur()),e&&"custom"===e.regionType&&i.region(new Wr),i}}(undefined)).delivery(so("auto")).delivery(ro(Ws())),blur:(new ds).effect(new class extends qr{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach((t=>this.addQualifier(t))),"custom"===this._region.regionType&&this.addQualifier(new Or("e",`blur_region${t}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new Or("e",`blur_region${t}`)),this.addQualifier(new Or("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new Or("e",`blur_faces${t}`))):this.addQualifier(new Or("e",`blur${t}`))}static fromJson(t){const{strength:e,region:n}=t,i=new this(e);return e&&i.strength(e),n&&"faces"===n.regionType&&i.region(Ur()),n&&"ocr_text"===n.regionType&&i.region(new Br("ocr_text")),n&&"custom"===n.regionType&&i.region(Wr.fromJson(n)),i}}(2e3)).delivery(so("auto")).delivery(ro(Ws())),"predominant-color":(new ds).resize(new class extends js{background(t){return this._actionModel.background=function(t){return"auto"===Vs(t)?{backgroundType:"auto"}:t instanceof Ms?function(t){const{intensityLevel:e,brightnessLevel:n}=t,i={backgroundType:"blurred"};return(e||0===e)&&(i.intensity=e),(n||0===n)&&(i.brightness=n),i}(t):t instanceof Is?(e=t,Object.assign(Object.assign({},qs(e)),{backgroundType:"border"})):t instanceof Ls?function(t){return Object.assign(Object.assign({},Bs(t)),{backgroundType:"borderGradient"})}(t):t instanceof zs?function(t){return Object.assign(Object.assign({},qs(t)),{backgroundType:"predominant"})}(t):t instanceof Os?function(t){return Object.assign(Object.assign({},Bs(t)),{backgroundType:"predominantGradient"})}(t):t instanceof Ns?function(t){return Object.assign({backgroundType:t.getBackgroundType()},t.getPrompt()?{prompt:t.getPrompt()}:{})}(t):function(t){return{backgroundType:"color",color:Vs(t)}}(t);var e}(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new Or("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new Or("y",t))}static fromJson(t){const e=super.fromJson.apply(this,[t]);return t.background&&e.background(function(t){const{backgroundType:e}=t;switch(e){case"auto":return Hs();case"blurred":return function(t){const{brightness:e,intensity:n}=t,i=Xs.blurred();return i.brightness(null!=e?e:0),i.intensity(null!=n?n:100),i}(t);case"border":return to(Us(),t);case"borderGradient":return Zs(Gs(),t);case"predominant":return to(Js(),t);case"predominantGradient":return Zs(Qs(),t);case"generativeFill":return function(t,e){const{prompt:n}=e;return n&&t.prompt(n),t}(Ys(),t);default:return Ks(t.color)}}(t.background)),t.x&&e.offsetX(t.x),t.y&&e.offsetY(t.y),t.zoom&&e.zoom(t.zoom),e}}("pad","iw_div_2",undefined).aspectRatio(1).background(Xs.auto())).resize(new eo("crop",1,1).gravity((oo=new Ps("north_east"),new xs(oo)))).resize(new no("fill",void 0,void 0).height("ih").width("iw")).delivery(so("auto")).delivery(ro(Ws()))},lo="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",co={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},ho="?_a=",uo=function(){function t(t,e,n,i,r,s,o){var a=this;this.mimeType="video",this.mimeSubTypes=co,this.videoElement=t,this.originalVideo=e,this.videoOptions=o,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var l=Pr(e);Er(t,e,i,this.htmlPluginState).then((function(){a.htmlPluginState.pluginEventSubscription.forEach((function(t){t()})),a.setVideoAttributes(r,s),a.handleSourceToVideo(l,n)}))}return t.prototype.handleSourceToVideo=function(t,e){var n=this;e?this.generateUserSources(t,e):["webm","mp4","ogv"].forEach((function(e){n.appendSourceTag(Pr(t),e)}))},t.prototype.generateUserSources=function(t,e){var n=this;e.map((function(e){var i=e.type,r=e.codecs,s=e.transcode;return n.appendSourceTag(Pr(t).transcode(s),i,n.buildMimeType(i,r))}))},t.prototype.appendSourceTag=function(t,e,n){var i,r=document.createElement("source"),s=null===(i=this.videoOptions)||void 0===i?void 0:i.useFetchFormat;s&&t.format(e);var o=t.toURL().split(ho),a=o[1]?"".concat(ho).concat(o[1]):"",l=s?"":".".concat(e);r.src="".concat(o[0]).concat(l).concat(a),r.type=n||"video/".concat(co[e]||e),this.videoElement.appendChild(r)},t.prototype.buildMimeType=function(t,e){var n="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return e&&(n+="; codecs="+(Array.isArray(e)?e.join(", "):e)),n},t.prototype.setVideoAttributes=function(t,e){var n;if(void 0===t&&(t={}),"auto"===e){var i=Pr(this.originalVideo);t.poster=i.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else e&&(t.poster=null===(n=e.toURL)||void 0===n?void 0:n.call(e));for(var r=0,s=Object.entries(t);r<s.length;r++){var o=s[r],a=o[0],l=o[1];l&&this.videoElement.setAttribute(a,"poster"===a?l:"")}},t.prototype.update=function(t,e,n,i,r){var s=this;if(t!==this.originalVideo){for(var o=this.videoElement.getElementsByTagName("SOURCE");o[0];)o[0].parentNode.removeChild(o[0]);Er(this.videoElement,t,n,this.htmlPluginState).then((function(){s.setVideoAttributes(i,r),s.handleSourceToVideo(t,e),s.videoElement.load()}))}},t}(),po="object"==typeof Cr&&Cr&&Cr.Object===Object&&Cr,fo="object"==typeof self&&self&&self.Object===Object&&self;function mo(){return"undefined"!=typeof window}function go(t){var e={},n=e.rootMargin,i=void 0===n?"0px":n,r=e.threshold,s=void 0===r?.1:r;return yo.bind(null,i,s)}function yo(t,e,n,i,r,s){return void 0===t&&(t="0px"),void 0===e&&(e=.1),!!mo()&&new Promise((function(i){var s=function(t,e,n,i){try{if(!window||!("IntersectionObserver"in window))return e(),function(){};var r=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&(r.unobserve(t.target),e())}))}),{rootMargin:n,threshold:i});return r.observe(t),function(){t&&r.observe(t)}}catch(s){e()}}(n,(function(){return i({lazyload:!0})}),t,e);r.cleanupCallbacks.push((function(){s(),i("canceled")}))}))}function vo(t){var e={}.mode,n=void 0===e?"vectorize":e;return bo.bind(null,n)}function bo(t,e,n,i,r,s){ao[t]||(t="vectorize");var o=ao[t].actions,a=Pr(n);if(o.forEach((function(t){a.addAction(t)})),!mo())return n.transformation=a.transformation,!0;if(e instanceof HTMLImageElement){a.transformation.actions.forEach((function(t,e){t instanceof qr&&"responsive"===t.getActionTag()&&delete a.transformation.actions[e]}));var l=jr(r,{placeholder:!0});return e.src=a.toURL(l),e.onerror=function(){e.src=lo},new Promise((function(t){e.onload=function(){t()}})).then((function(){return new Promise((function(t){i.cleanupCallbacks.push((function(){e.src=lo,t("canceled")}));var r=new Image;r.src=n.toURL(l),r.onload=function(){t({placeholder:!0})},r.onerror=function(){t({placeholder:!0})}}))}))}}function xo(t){t.cleanupCallbacks.forEach((function(t){t()}))}po||fo||Function("return this")();var wo=function(t,e){return wo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},wo(t,e)};function ko(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}wo(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var _o=function(){return _o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},_o.apply(this,arguments)};function So(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}"function"==typeof SuppressedError&&SuppressedError;var $o={exports:{}},Co={},Ao=Object.getOwnPropertySymbols,Po=Object.prototype.hasOwnProperty,To=Object.prototype.propertyIsEnumerable,Eo=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(t){i[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(r){return!1}}()?Object.assign:function(t,e){for(var n,i,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),s=1;s<arguments.length;s++){for(var o in n=Object(arguments[s]))Po.call(n,o)&&(r[o]=n[o]);if(Ao){i=Ao(n);for(var a=0;a<i.length;a++)To.call(n,i[a])&&(r[i[a]]=n[i[a]])}}return r},jo=Eo,Do="function"==typeof Symbol&&Symbol.for,Mo=Do?Symbol.for("react.element"):60103,Fo=Do?Symbol.for("react.portal"):60106,Io=Do?Symbol.for("react.fragment"):60107,Ro=Do?Symbol.for("react.strict_mode"):60108,Lo=Do?Symbol.for("react.profiler"):60114,Oo=Do?Symbol.for("react.provider"):60109,zo=Do?Symbol.for("react.context"):60110,No=Do?Symbol.for("react.forward_ref"):60112,Vo=Do?Symbol.for("react.suspense"):60113,qo=Do?Symbol.for("react.memo"):60115,Bo=Do?Symbol.for("react.lazy"):60116,Wo="function"==typeof Symbol&&Symbol.iterator;
|
|
107
|
+
/** @license React v16.14.0
|
|
108
|
+
* react.production.min.js
|
|
109
|
+
*
|
|
110
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the MIT license found in the
|
|
113
|
+
* LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/
|
|
115
|
+
function Uo(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ho={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Go={};function Qo(t,e,n){this.props=t,this.context=e,this.refs=Go,this.updater=n||Ho}function Jo(){}function Ko(t,e,n){this.props=t,this.context=e,this.refs=Go,this.updater=n||Ho}Qo.prototype.isReactComponent={},Qo.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(Uo(85));this.updater.enqueueSetState(this,t,e,"setState")},Qo.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},Jo.prototype=Qo.prototype;var Yo=Ko.prototype=new Jo;Yo.constructor=Ko,jo(Yo,Qo.prototype),Yo.isPureReactComponent=!0;var Xo={current:null},Zo=Object.prototype.hasOwnProperty,ta={key:!0,ref:!0,__self:!0,__source:!0};function ea(t,e,n){var i,r={},s=null,o=null;if(null!=e)for(i in void 0!==e.ref&&(o=e.ref),void 0!==e.key&&(s=""+e.key),e)Zo.call(e,i)&&!ta.hasOwnProperty(i)&&(r[i]=e[i]);var a=arguments.length-2;if(1===a)r.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];r.children=l}if(t&&t.defaultProps)for(i in a=t.defaultProps)void 0===r[i]&&(r[i]=a[i]);return{$$typeof:Mo,type:t,key:s,ref:o,props:r,_owner:Xo.current}}function na(t){return"object"==typeof t&&null!==t&&t.$$typeof===Mo}var ia=/\/+/g,ra=[];function sa(t,e,n,i){if(ra.length){var r=ra.pop();return r.result=t,r.keyPrefix=e,r.func=n,r.context=i,r.count=0,r}return{result:t,keyPrefix:e,func:n,context:i,count:0}}function oa(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>ra.length&&ra.push(t)}function aa(t,e,n,i){var r=typeof t;"undefined"!==r&&"boolean"!==r||(t=null);var s=!1;if(null===t)s=!0;else switch(r){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case Mo:case Fo:s=!0}}if(s)return n(i,t,""===e?"."+ca(t,0):e),1;if(s=0,e=""===e?".":e+":",Array.isArray(t))for(var o=0;o<t.length;o++){var a=e+ca(r=t[o],o);s+=aa(r,a,n,i)}else if("function"==typeof(a=null===t||"object"!=typeof t?null:"function"==typeof(a=Wo&&t[Wo]||t["@@iterator"])?a:null))for(t=a.call(t),o=0;!(r=t.next()).done;)s+=aa(r=r.value,a=e+ca(r,o++),n,i);else if("object"===r)throw n=""+t,Error(Uo(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return s}function la(t,e,n){return null==t?0:aa(t,"",e,n)}function ca(t,e){return"object"==typeof t&&null!==t&&null!=t.key?(n=t.key,i={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(t){return i[t]}))):e.toString(36);var n,i}function ha(t,e){t.func.call(t.context,e,t.count++)}function ua(t,e,n){var i,r,s=t.result,o=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?pa(t,s,n,(function(t){return t})):null!=t&&(na(t)&&(i=t,r=o+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(ia,"$&/")+"/")+n,t={$$typeof:Mo,type:i.type,key:r,ref:i.ref,props:i.props,_owner:i._owner}),s.push(t))}function pa(t,e,n,i,r){var s="";null!=n&&(s=(""+n).replace(ia,"$&/")+"/"),la(t,ua,e=sa(e,s,i,r)),oa(e)}var da={current:null};function fa(){var t=da.current;if(null===t)throw Error(Uo(321));return t}var ma={ReactCurrentDispatcher:da,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Xo,IsSomeRendererActing:{current:!1},assign:jo};Co.Children={map:function(t,e,n){if(null==t)return t;var i=[];return pa(t,i,null,e,n),i},forEach:function(t,e,n){if(null==t)return t;la(t,ha,e=sa(null,null,e,n)),oa(e)},count:function(t){return la(t,(function(){return null}),null)},toArray:function(t){var e=[];return pa(t,e,null,(function(t){return t})),e},only:function(t){if(!na(t))throw Error(Uo(143));return t}},Co.Component=Qo,Co.Fragment=Io,Co.Profiler=Lo,Co.PureComponent=Ko,Co.StrictMode=Ro,Co.Suspense=Vo,Co.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ma,Co.cloneElement=function(t,e,n){if(null==t)throw Error(Uo(267,t));var i=jo({},t.props),r=t.key,s=t.ref,o=t._owner;if(null!=e){if(void 0!==e.ref&&(s=e.ref,o=Xo.current),void 0!==e.key&&(r=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)Zo.call(e,l)&&!ta.hasOwnProperty(l)&&(i[l]=void 0===e[l]&&void 0!==a?a[l]:e[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];i.children=a}return{$$typeof:Mo,type:t.type,key:r,ref:s,props:i,_owner:o}},Co.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:zo,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:Oo,_context:t},t.Consumer=t},Co.createElement=ea,Co.createFactory=function(t){var e=ea.bind(null,t);return e.type=t,e},Co.createRef=function(){return{current:null}},Co.forwardRef=function(t){return{$$typeof:No,render:t}},Co.isValidElement=na,Co.lazy=function(t){return{$$typeof:Bo,_ctor:t,_status:-1,_result:null}},Co.memo=function(t,e){return{$$typeof:qo,type:t,compare:void 0===e?null:e}},Co.useCallback=function(t,e){return fa().useCallback(t,e)},Co.useContext=function(t,e){return fa().useContext(t,e)},Co.useDebugValue=function(){},Co.useEffect=function(t,e){return fa().useEffect(t,e)},Co.useImperativeHandle=function(t,e,n){return fa().useImperativeHandle(t,e,n)},Co.useLayoutEffect=function(t,e){return fa().useLayoutEffect(t,e)},Co.useMemo=function(t,e){return fa().useMemo(t,e)},Co.useReducer=function(t,e,n){return fa().useReducer(t,e,n)},Co.useRef=function(t){return fa().useRef(t)},Co.useState=function(t){return fa().useState(t)},Co.version="16.14.0";var ga={},ya=Function.call.bind(Object.prototype.hasOwnProperty),va=function(){};if("production"!==process.env.NODE_ENV){var ba="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xa={},wa=ya;va=function(t){var e="Warning: "+t;try{throw new Error(e)}catch(n){}}}function ka(t,e,n,i,r){if("production"!==process.env.NODE_ENV)for(var s in t)if(wa(t,s)){var o;try{if("function"!=typeof t[s]){var a=Error((i||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw a.name="Invariant Violation",a}o=t[s](e,s,i,n,null,ba)}catch(c){o=c}if(!o||o instanceof Error||va((i||"React class")+": type specification of "+n+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof o+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),o instanceof Error&&!(o.message in xa)){xa[o.message]=!0;var l=r?r():"";va("Failed "+n+" type: "+o.message+(null!=l?l:""))}}}ka.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(xa={})};var _a=ka;
|
|
116
|
+
/** @license React v16.14.0
|
|
117
|
+
* react.development.js
|
|
118
|
+
*
|
|
119
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
120
|
+
*
|
|
121
|
+
* This source code is licensed under the MIT license found in the
|
|
122
|
+
* LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/"production"!==process.env.NODE_ENV&&function(){var t=Eo,e=_a,n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,h=n?Symbol.for("react.concurrent_mode"):60111,u=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,d=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119,x="function"==typeof Symbol&&Symbol.iterator;function w(t){if(null===t||"object"!=typeof t)return null;var e=x&&t[x]||t["@@iterator"];return"function"==typeof e?e:null}var k={current:null},_={current:null},S=/^(.*)[\\\/]/;function $(t){if(null==t)return null;if("number"==typeof t.tag&&j("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case s:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case p:return"Suspense";case d:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case c:return"Context.Consumer";case l:return"Context.Provider";case u:return i=t,y="ForwardRef",v=(h=t.render).displayName||h.name||"",i.displayName||(""!==v?y+"("+v+")":y);case f:return $(t.type);case g:return $(t.render);case m:var e=1===(n=t)._status?n._result:null;if(e)return $(e)}var n,i,h,y,v;return null}var C={},A=null;function P(t){A=t}C.getCurrentStack=null,C.getStackAddendum=function(){var t="";if(A){var e=$(A.type),n=A._owner;t+=function(t,e,n){var i="";if(e){var r=e.fileName,s=r.replace(S,"");if(/^index\./.test(s)){var o=r.match(S);if(o){var a=o[1];a&&(s=a.replace(S,"")+"/"+s)}}i=" (at "+s+":"+e.lineNumber+")"}else n&&(i=" (created by "+n+")");return"\n in "+(t||"Unknown")+i}(e,A._source,n&&$(n.type))}var i=C.getCurrentStack;return i&&(t+=i()||""),t};var T={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:t};function E(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];D("warn",t,n)}function j(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];D("error",t,n)}function D(t,e,n){if(!(n.length>0&&"string"==typeof n[n.length-1]&&0===n[n.length-1].indexOf("\n in"))){var i=T.ReactDebugCurrentFrame.getStackAddendum();""!==i&&(e+="%s",n=n.concat([i]))}var r=n.map((function(t){return""+t}));r.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,r);try{var s=0,o="Warning: "+e.replace(/%s/g,(function(){return n[s++]}));throw new Error(o)}catch(a){}}t(T,{ReactDebugCurrentFrame:C,ReactComponentTreeHook:{}});var M={};function F(t,e){var n=t.constructor,i=n&&(n.displayName||n.name)||"ReactClass",r=i+"."+e;M[r]||(j("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",e,i),M[r]=!0)}var I={isMounted:function(t){return!1},enqueueForceUpdate:function(t,e,n){F(t,"forceUpdate")},enqueueReplaceState:function(t,e,n,i){F(t,"replaceState")},enqueueSetState:function(t,e,n,i){F(t,"setState")}},R={};function L(t,e,n){this.props=t,this.context=e,this.refs=R,this.updater=n||I}Object.freeze(R),L.prototype.isReactComponent={},L.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},L.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};var O={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},z=function(t,e){Object.defineProperty(L.prototype,t,{get:function(){E("%s(...) is deprecated in plain JavaScript React classes. %s",e[0],e[1])}})};for(var N in O)O.hasOwnProperty(N)&&z(N,O[N]);function V(){}function q(t,e,n){this.props=t,this.context=e,this.refs=R,this.updater=n||I}V.prototype=L.prototype;var B=q.prototype=new V;B.constructor=q,t(B,L.prototype),B.isPureReactComponent=!0;var W,U,H,G=Object.prototype.hasOwnProperty,Q={key:!0,ref:!0,__self:!0,__source:!0};function J(t){if(G.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}function K(t){if(G.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}H={};var Y=function(t,e,n,r,s,o,a){var l={$$typeof:i,type:t,key:e,ref:n,props:a,_owner:o,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function X(t,e,n){var i,r={},s=null,o=null,a=null,l=null;if(null!=e)for(i in J(e)&&(o=e.ref,function(t){if("string"==typeof t.ref&&_.current&&t.__self&&_.current.stateNode!==t.__self){var e=$(_.current.type);H[e]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',$(_.current.type),t.ref),H[e]=!0)}}(e)),K(e)&&(s=""+e.key),a=void 0===e.__self?null:e.__self,l=void 0===e.__source?null:e.__source,e)G.call(e,i)&&!Q.hasOwnProperty(i)&&(r[i]=e[i]);var c,h,u,p=arguments.length-2;if(1===p)r.children=n;else if(p>1){for(var d=Array(p),f=0;f<p;f++)d[f]=arguments[f+2];Object.freeze&&Object.freeze(d),r.children=d}if(t&&t.defaultProps){var m=t.defaultProps;for(i in m)void 0===r[i]&&(r[i]=m[i])}if(s||o){var g="function"==typeof t?t.displayName||t.name||"Unknown":t;s&&(c=r,h=g,(u=function(){W||(W=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",h))}).isReactWarning=!0,Object.defineProperty(c,"key",{get:u,configurable:!0})),o&&function(t,e){var n=function(){U||(U=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(r,g)}return Y(t,s,o,a,l,_.current,r)}function Z(e,n,i){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,s,o=t({},e.props),a=e.key,l=e.ref,c=e._self,h=e._source,u=e._owner;if(null!=n)for(r in J(n)&&(l=n.ref,u=_.current),K(n)&&(a=""+n.key),e.type&&e.type.defaultProps&&(s=e.type.defaultProps),n)G.call(n,r)&&!Q.hasOwnProperty(r)&&(void 0===n[r]&&void 0!==s?o[r]=s[r]:o[r]=n[r]);var p=arguments.length-2;if(1===p)o.children=i;else if(p>1){for(var d=Array(p),f=0;f<p;f++)d[f]=arguments[f+2];o.children=d}return Y(e.type,a,l,c,h,u,o)}function tt(t){return"object"==typeof t&&null!==t&&t.$$typeof===i}var et=!1,nt=/\/+/g;function it(t){return(""+t).replace(nt,"$&/")}var rt,st=[];function ot(t,e,n,i){if(st.length){var r=st.pop();return r.result=t,r.keyPrefix=e,r.func=n,r.context=i,r.count=0,r}return{result:t,keyPrefix:e,func:n,context:i,count:0}}function at(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,st.length<10&&st.push(t)}function lt(t,e,n,s){var o=typeof t;"undefined"!==o&&"boolean"!==o||(t=null);var a,l=!1;if(null===t)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case r:l=!0}}if(l)return n(s,t,""===e?"."+ht(t,0):e),1;var c=0,h=""===e?".":e+":";if(Array.isArray(t))for(var u=0;u<t.length;u++)c+=lt(a=t[u],h+ht(a,u),n,s);else{var p=w(t);if("function"==typeof p){p===t.entries&&(et||E("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),et=!0);for(var d,f=p.call(t),m=0;!(d=f.next()).done;)c+=lt(a=d.value,h+ht(a,m++),n,s)}else if("object"===o){var g;g=" If you meant to render a collection of children, use an array instead."+C.getStackAddendum();var y=""+t;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===y?"object with keys {"+Object.keys(t).join(", ")+"}":y)+")."+g)}}return c}function ct(t,e,n){return null==t?0:lt(t,"",e,n)}function ht(t,e){return"object"==typeof t&&null!==t&&null!=t.key?(n=t.key,i={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(t){return i[t]}))):e.toString(36);var n,i}function ut(t,e,n){var i=t.func,r=t.context;i.call(r,e,t.count++)}function pt(t,e,n){var i,r,s=t.result,o=t.keyPrefix,a=t.func,l=t.context,c=a.call(l,e,t.count++);Array.isArray(c)?dt(c,s,n,(function(t){return t})):null!=c&&(tt(c)&&(i=c,r=o+(!c.key||e&&e.key===c.key?"":it(c.key)+"/")+n,c=Y(i.type,r,i.ref,i._self,i._source,i._owner,i.props)),s.push(c))}function dt(t,e,n,i,r){var s="";null!=n&&(s=it(n)+"/");var o=ot(e,s,i,r);ct(t,pt,o),at(o)}function ft(t){return"string"==typeof t||"function"==typeof t||t===s||t===h||t===a||t===o||t===p||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===f||t.$$typeof===l||t.$$typeof===c||t.$$typeof===u||t.$$typeof===y||t.$$typeof===v||t.$$typeof===b||t.$$typeof===g)}function mt(){var t=k.current;if(null===t)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return t}function gt(){if(_.current){var t=$(_.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}rt=!1;var yt={};function vt(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=gt();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!yt[n]){yt[n]=!0;var i="";t&&t._owner&&t._owner!==_.current&&(i=" It was passed a child from "+$(t._owner.type)+"."),P(t),j('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',n,i),P(null)}}}function bt(t,e){if("object"==typeof t)if(Array.isArray(t))for(var n=0;n<t.length;n++){var i=t[n];tt(i)&&vt(i,e)}else if(tt(t))t._store&&(t._store.validated=!0);else if(t){var r=w(t);if("function"==typeof r&&r!==t.entries)for(var s,o=r.call(t);!(s=o.next()).done;)tt(s.value)&&vt(s.value,e)}}function xt(t){var n=t.type;if(null!=n&&"string"!=typeof n){var i,r=$(n);if("function"==typeof n)i=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==f)return;i=n.propTypes}i?(P(t),e(i,t.props,"prop",r,C.getStackAddendum),P(null)):void 0===n.PropTypes||rt||(rt=!0,j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",r||"Unknown")),"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wt(t,e,n){var r,o,a=ft(t);if(!a){var l,c="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),c+=(null!=(r=e)&&void 0!==(o=r.__source)?"\n\nCheck your code at "+o.fileName.replace(/^.*[\\\/]/,"")+":"+o.lineNumber+".":"")||gt(),null===t?l="null":Array.isArray(t)?l="array":void 0!==t&&t.$$typeof===i?(l="<"+($(t.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):l=typeof t,j("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,c)}var h=X.apply(this,arguments);if(null==h)return h;if(a)for(var u=2;u<arguments.length;u++)bt(arguments[u],t);return t===s?function(t){P(t);for(var e=Object.keys(t.props),n=0;n<e.length;n++){var i=e[n];if("children"!==i&&"key"!==i){j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i);break}}null!==t.ref&&j("Invalid attribute `ref` supplied to `React.Fragment`."),P(null)}(h):xt(h),h}var kt=!1;try{var _t=Object.freeze({}),St=new Map([[_t,null]]),$t=new Set([_t]);St.set(0,0),$t.add(0)}catch(Pt){}var Ct=wt,At={map:function(t,e,n){if(null==t)return t;var i=[];return dt(t,i,null,e,n),i},forEach:function(t,e,n){if(null==t)return t;var i=ot(null,null,e,n);ct(t,ut,i),at(i)},count:function(t){return ct(t,(function(){return null}),null)},toArray:function(t){var e=[];return dt(t,e,null,(function(t){return t})),e},only:function(t){if(!tt(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};ga.Children=At,ga.Component=L,ga.Fragment=s,ga.Profiler=a,ga.PureComponent=q,ga.StrictMode=o,ga.Suspense=p,ga.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,ga.cloneElement=function(t,e,n){for(var i=Z.apply(this,arguments),r=2;r<arguments.length;r++)bt(arguments[r],i.type);return xt(i),i},ga.createContext=function(t,e){void 0===e?e=null:null!==e&&"function"!=typeof e&&j("createContext: Expected the optional second argument to be a function. Instead received: %s",e);var n={$$typeof:c,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null};n.Provider={$$typeof:l,_context:n};var i=!1,r=!1,s={$$typeof:c,_context:n,_calculateChangedBits:n._calculateChangedBits};return Object.defineProperties(s,{Provider:{get:function(){return r||(r=!0,j("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),n.Provider},set:function(t){n.Provider=t}},_currentValue:{get:function(){return n._currentValue},set:function(t){n._currentValue=t}},_currentValue2:{get:function(){return n._currentValue2},set:function(t){n._currentValue2=t}},_threadCount:{get:function(){return n._threadCount},set:function(t){n._threadCount=t}},Consumer:{get:function(){return i||(i=!0,j("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),n.Consumer}}}),n.Consumer=s,n._currentRenderer=null,n._currentRenderer2=null,n},ga.createElement=Ct,ga.createFactory=function(t){var e=wt.bind(null,t);return e.type=t,kt||(kt=!0,E("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(e,"type",{enumerable:!1,get:function(){return E("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:t}),t}}),e},ga.createRef=function(){var t={current:null};return Object.seal(t),t},ga.forwardRef=function(t){return null!=t&&t.$$typeof===f?j("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof t?j("forwardRef requires a render function but was given %s.",null===t?"null":typeof t):0!==t.length&&2!==t.length&&j("forwardRef render functions accept exactly two parameters: props and ref. %s",1===t.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=t&&(null==t.defaultProps&&null==t.propTypes||j("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")),{$$typeof:u,render:t}},ga.isValidElement=tt,ga.lazy=function(t){var e,n,i={$$typeof:m,_ctor:t,_status:-1,_result:null};return Object.defineProperties(i,{defaultProps:{configurable:!0,get:function(){return e},set:function(t){j("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),e=t,Object.defineProperty(i,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(t){j("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=t,Object.defineProperty(i,"propTypes",{enumerable:!0})}}}),i},ga.memo=function(t,e){return ft(t)||j("memo: The first argument must be a component. Instead received: %s",null===t?"null":typeof t),{$$typeof:f,type:t,compare:void 0===e?null:e}},ga.useCallback=function(t,e){return mt().useCallback(t,e)},ga.useContext=function(t,e){var n=mt();if(void 0!==e&&j("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",e,"number"==typeof e&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==t._context){var i=t._context;i.Consumer===t?j("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):i.Provider===t&&j("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return n.useContext(t,e)},ga.useDebugValue=function(t,e){return mt().useDebugValue(t,e)},ga.useEffect=function(t,e){return mt().useEffect(t,e)},ga.useImperativeHandle=function(t,e,n){return mt().useImperativeHandle(t,e,n)},ga.useLayoutEffect=function(t,e){return mt().useLayoutEffect(t,e)},ga.useMemo=function(t,e){return mt().useMemo(t,e)},ga.useReducer=function(t,e,n){return mt().useReducer(t,e,n)},ga.useRef=function(t){return mt().useRef(t)},ga.useState=function(t){return mt().useState(t)},ga.version="16.14.0"}(),"production"===process.env.NODE_ENV?$o.exports=Co:$o.exports=ga;var Sa=$o.exports,$a={sdkSemver:"1.13.0",techVersion:Sa.version,sdkCode:"J"},Ca=function(t){function e(e){var n=t.call(this,e)||this;return n.imageRef=Sa.createRef(),n}return ko(e,t),e.prototype.componentDidMount=function(){this.htmlLayerInstance=new Dr(this.imageRef.current,this.props.cldImg,this.props.plugins,$a)},e.prototype.componentDidUpdate=function(){xo(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,$a)},e.prototype.componentWillUnmount=function(){xo(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},e.prototype.render=function(){var t=this.props;t.cldImg,t.plugins;var e=So(t,["cldImg","plugins"]);if(mo())return Sa.createElement("img",_o({suppressHydrationWarning:!0},e,{ref:this.imageRef}));var n=function(t,e,n){var i=Pr(e);if(t)for(var r=0;r<t.length&&t[r](null,i);r++);return i.toURL(n?{trackedAnalytics:n}:null)}(this.props.plugins,this.props.cldImg,$a);return Sa.createElement("img",_o({},e,{src:n}))},e}(Sa.Component),Aa=["controls","loop","muted","poster","preload","autoplay","playsinline"];!function(t){function e(e){var n=t.call(this,e)||this;return n.videoRef=$o.exports.createRef(),n.attachRef=n.attachRef.bind(n),n}ko(e,t),e.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new uo(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},e.prototype.componentDidUpdate=function(){xo(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},e.prototype.componentWillUnmount=function(){xo(this.htmlVideoLayerInstance.htmlPluginState)},e.prototype.getVideoAttributes=function(){var t=this,e={};return Aa.forEach((function(n){n in t.props&&(e[n]=t.props[n])})),e},e.prototype.attachRef=function(t){this.videoRef.current=t;var e=this.props.innerRef;e&&(e instanceof Function?e(t):e.current=t)},e.prototype.render=function(){var t=this.props;t.cldVid,t.cldPoster,t.plugins,t.sources,t.innerRef,t.useFetchFormat;var e=So(t,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return Sa.createElement("video",_o({},e,{ref:this.attachRef}))}}($o.exports.Component);const Pa=e.memo((({alt:t="img",height:e="",width:n="",plugins:i=[go(),vo()],publicId:r})=>{const s=kr({publicId:r});return y.jsx(Ca,{alt:t,cldImg:s,height:e,plugins:i,width:n})})),Ta=t.styled.div`
|
|
124
|
+
${({theme:t})=>`\n background-color: ${t.palette.gray[100]};\n border-radius: ${t.spacing[.25]};\n display: inline-flex;\n padding: ${t.spacing[1]};\n position: relative;\n width: fit-content;\n\n .line-highlight.language-none {\n background: ${t.palette.gray[100]};\n }\n\n .line-highlight {\n background: hsl(354deg 88% 93% / 50%);\n font-family: ${t.typography.type.mono};\n font-size: ${t.typography.text.xs};\n line-height: ${t.spacing[1]};\n }\n\n .line-highlight::before,\n .line-highlight[data-end]::after {\n background: ${t.palette.primary[300]};\n background-color: hsl(355deg 89% 36%);\n color: ${t.palette.white};\n }\n\n pre code {\n color: #161616;\n font-family: ${t.typography.type.mono};\n font-size: ${t.typography.text.xs};\n line-height: ${t.spacing[1]};\n }\n\n pre:not(.line-highlight) {\n margin-top: unset;\n margin-bottom: unset;\n padding: unset;\n width: 100%;\n }\n\n span:hover {\n background-color: ${t.palette.gray[200]};\n }\n\n .no-data,\n pre.line-highlight {\n background-color: ${t.palette.gray[100]};\n padding-top: unset;\n padding-bottom: unset;\n }\n `}
|
|
125
|
+
`,Ea=t.styled.div`
|
|
126
|
+
${({theme:t})=>`\n align-items: end;\n background-color: ${t.palette.gray[100]};\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n min-width: 103px;\n margin-right: ${t.spacing[1]};\n padding-top: ${t.spacing[1]};\n padding-bottom: ${t.spacing[1]};\n position: relative;\n padding-left: unset;\n\n button:hover:not([disabled]) {\n background-color: ${t.palette.gray[200]};\n }\n `}
|
|
127
|
+
`,ja=({tag:e,tagPosition:n})=>{const i=t.useTheme();return e?y.jsx(M,{alignItems:"center",bgColor:i.palette.white,borderRadius:"8px",display:"flex",justify:"center",margin:"top"===n?[.75,.75,.75,.75]:void 0,padding:[.25,.5,.25,.5],position:"top"===n?"absolute":"relative",top:"0",width:"max-content",children:y.jsx(L,{color:i.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null},Da=({eventDate:e})=>{const n=t.useTheme(),i=ri(e)?null:null==e?void 0:e.split("-");if(i){const[t,e]=i;return y.jsxs(M,{alignItems:"center",bgColor:n.palette.white,borderRadius:"8px",display:"flex",flexDirection:"column",margin:[.75,.75,.75,.75],padding:[.75,1.5,.75,1.5],position:"absolute",right:"0",shadow:"md",top:"0",children:[y.jsx(R,{fontWeight:"semibold",lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:t}),y.jsx(L,{color:n.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e.toUpperCase()})]})}return null},Ma=t.div`
|
|
128
|
+
${({theme:t})=>`\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[1.5]};\n width: 384px;\n\n img {\n height: 100%;\n width: 100%;\n }\n\n #card-image {\n border-radius: ${t.spacing[1]};\n height: 240px;\n overflow: hidden;\n }\n\n &:hover {\n img {\n transform: scale(1.2);\n }\n\n > #card-content {\n > .title-dark {\n color: ${t.palette.gray[400]};\n }\n > .title-light {\n background: ${t.palette.gradients["01"]};\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n }\n }\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n width: 320px;\n\n #card-image {\n height: 200px;\n }\n }\n `}
|
|
129
|
+
`,Fa=({author:e,buttonText:n,description:i,eventDate:r,href:s,imageId:o,mode:a="light",publishDate:l,readingTime:c,tag:h,tagPosition:u="top",title:p})=>{const d=t.useTheme(),f=null==l?void 0:l.split("-"),m="dark"===a,g=y.jsxs(Ma,{"data-testid":`content-card-${p}`,children:[o||r||h&&"top"===u?y.jsxs(M,{id:"card-image",position:"relative",children:[o&&y.jsx(Pa,{publicId:o}),"top"===u&&y.jsx(ja,{tag:h,tagPosition:u}),y.jsx(Da,{eventDate:r})]}):void 0,y.jsxs(M,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:["bottom"===u&&y.jsx(ja,{tag:h,tagPosition:u}),e||f||c?y.jsxs(M,{display:"flex",justify:"space-between",width:"100%",children:[e&&f&&y.jsx(L,{color:d.palette.gray[m?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e+` • ${f[0]} ${f[1]}, ${f[2]}`}),c&&y.jsxs(M,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[y.jsx(V,{icon:"eye",iconColor:d.palette.gray[m?300:400],iconSize:"xs",iconType:"fa-light"}),y.jsx(L,{color:d.palette.gray[m?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:c})]})]}):void 0,y.jsx(R,{className:`title-${a}`,color:m?d.palette.white:d.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:p}),i&&y.jsx(L,{color:d.palette.gray[m?100:600],size:"md",sizeSm:"sm",children:i}),n&&s&&y.jsx(Di,{href:s,mode:a,variant:"link",children:n})]})]});return s?y.jsx("a",{className:"flex w-fit",href:s,rel:"noopener noreferrer",target:"_self",children:g}):g},Ia=t.styled.button`
|
|
130
|
+
display: flex;
|
|
131
|
+
position: relative;
|
|
132
|
+
height: 32px;
|
|
133
|
+
width: 32px;
|
|
134
|
+
|
|
135
|
+
svg {
|
|
136
|
+
position: absolute;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.hovered {
|
|
140
|
+
display: none;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:hover {
|
|
144
|
+
.hovered {
|
|
145
|
+
display: flex;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.uncover {
|
|
149
|
+
display: none;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
`,Ra=t.styled.div`
|
|
153
|
+
${({theme:t})=>`\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[2.5]};\n overflow: hidden;\n min-height: 589px;\n max-width: 1316px;\n\n span {\n background: ${t.palette.gradients["01"]};\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n }\n\n #mobile {\n display: none;\n }\n\n #carousel {\n scrollbar-width: none;\n\n &::-webkit-scrollbar {\n display: none;\n }\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n align-items: center;\n height: auto;\n max-width: 340px;\n\n #desktop {\n display: none;\n }\n #mobile {\n display: flex;\n }\n }\n `}
|
|
154
|
+
`,La=({containerRef:n,id:i})=>{const r=t.useTheme(),s="desktop"===i?380:342,o=e.useCallback((t=>()=>{if(null==n?void 0:n.current){const{current:e}=n;e.scrollBy({left:"right"===t?s:-s,behavior:"smooth"})}}),[n,s]),a=e.useCallback((t=>y.jsxs(Ia,{onClick:o(t),children:[y.jsx(V,{clickable:!0,icon:`circle-arrow-${t}`,iconClass:"hovered",iconColor:r.palette.gray[800],iconSize:"md",iconType:"fa-solid"}),y.jsx(V,{clickable:!0,icon:`circle-arrow-${t}`,iconClass:"uncover",iconColor:r.palette.gray[800],iconSize:"md",iconType:"fa-light"})]})),[o,r]);return y.jsxs(M,{alignItems:"center",display:"flex",gap:1,id:i,width:"max-content",children:[a("left"),a("right")]})},Oa=e.forwardRef((function({color:t=v.palette.gray[100],mt:e=.5,mb:n=.5,...i},r){return y.jsx(M,{as:"hr",borderTop:`1px solid ${t}`,mb:n,mt:e,ref:r,...i})})),za=t.styled(M).attrs((({...t})=>({display:"inline-block",position:"relative",...t})))`
|
|
155
|
+
& img {
|
|
156
|
+
display: block;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&::after {
|
|
160
|
+
content: "";
|
|
161
|
+
position: absolute;
|
|
162
|
+
top: 0;
|
|
163
|
+
left: 0;
|
|
164
|
+
width: 100%;
|
|
165
|
+
height: 100%;
|
|
166
|
+
pointer-events: none;
|
|
167
|
+
${({$opacity:t=0})=>`background-color: rgba(0, 0, 0, ${t});`}
|
|
168
|
+
}
|
|
169
|
+
`,{getVariant:Na}=l((t=>({highRelevance:`\n color: ${t.palette.primary[500]};\n\n &:hover:not([disabled]) {\n color: ${t.palette.primary[400]};\n }\n `,lowRelevance:`\n color: ${t.palette.gray[800]};\n\n &:hover:not([disabled]) {\n color: ${t.palette.gray[500]};\n }\n `}))),Va=t.css`
|
|
170
|
+
${({theme:t,$color:e,$variant:n})=>`\n align-items: center;\n cursor: pointer;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.regular};\n gap: ${t.spacing[.25]};\n line-height: ${t.spacing[1.25]};\n text-decoration: underline;\n word-break: break-word;\n word-wrap: break-word;\n\n &:disabled {\n color: ${t.palette.gray[300]};\n cursor: not-allowed;\n }\n\n &:has(button) {\n text-decoration: none;\n }\n\n ${e??Na(t,n)}\n `}
|
|
171
|
+
`,qa=t.styled.a`
|
|
172
|
+
${Va}
|
|
173
|
+
`,Ba=t.styled(r.Link)`
|
|
174
|
+
${Va}
|
|
175
|
+
`,Wa=({children:t,color:e,download:n,href:i,iconPosition:r="right",onClick:s,target:o,variant:a="lowRelevance"})=>{const l=i.startsWith("https://"),c=y.jsx(V,{icon:void 0===n?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"xxs",iconType:"fa-regular",ml:.25,mr:.25});return l?y.jsxs(qa,{$color:e,$variant:a,download:n,href:i,onClick:s,rel:"nofollow noopener noreferrer",target:o??"_blank",children:["left"===r?c:void 0,t,"right"===r?c:void 0]}):y.jsxs(Ba,{$variant:a,download:n,onClick:s,rel:"nofollow noopener noreferrer",target:o,to:i,children:[void 0!==o&&"left"===r?c:void 0,t,void 0!==o&&"right"===r?c:void 0]})},Ua=t.styled.form`
|
|
176
|
+
${({theme:t})=>`\n align-items: center;\n background: ${t.palette.gray[50]};\n backdrop-filter: blur(11px);\n border-radius: ${t.spacing[1]};\n box-shadow: ${t.shadows.md};\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: ${t.spacing[3]} ${t.spacing[2]};\n width: 628px;\n\n &::before {\n background: ${t.palette.gradients["02"]} border-box;\n border-radius: ${t.spacing[1]};\n content: "";\n position: absolute;\n inset: 0;\n border: 2px solid transparent;\n mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n mask-composite: exclude;\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n width: 320px;\n }\n `}
|
|
177
|
+
`,Ha=t.styled.div`
|
|
178
|
+
align-items: flex-start;
|
|
179
|
+
align-self: stretch;
|
|
180
|
+
display: flex;
|
|
181
|
+
flex-direction: column;
|
|
182
|
+
gap: ${({theme:t})=>t.spacing[1.5]};
|
|
183
|
+
|
|
184
|
+
button[type="submit"] {
|
|
185
|
+
width: 100%;
|
|
186
|
+
|
|
187
|
+
> * {
|
|
188
|
+
text-align: center;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
`,Ga=t.styled.div`
|
|
192
|
+
${({theme:t})=>`\n align-items: flex-start;\n align-self: stretch;\n container-type: inline-size;\n display: flex;\n flex-direction: row;\n gap: ${t.spacing[1]};\n position: relative;\n\n &:has(> :nth-child(2)) {\n > div {\n display: flex;\n width: 50%;\n }\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n flex-direction: column;\n }\n `}
|
|
193
|
+
`;var Qa=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63",".... ......."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],Ja=(...t)=>t.filter((t=>!!t)).join(" ").trim(),Ka=({addPrefix:t,rawClassNames:e})=>Ja(((...t)=>Ja(...t).split(" ").map((t=>`react-international-phone-${t}`)).join(" "))(...t),...e),Ya=t=>!!t&&/^\d+$/.test(t),Xa=t=>t.replace(/\D/g,""),Za=({phone:t,prefix:e})=>t?`${e}${Xa(t)}`:"";function tl({value:t,country:e,insertDialCodeOnEmpty:n,trimNonDigitsEnd:i,countries:r,prefix:s,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:l,defaultMask:c,countryGuessingEnabled:h,disableFormatting:u}){let p=t;l&&(p=p.startsWith(`${s}`)?p:`${s}${e.dialCode}${p}`);let d=h?ll({phone:p,countries:r,currentCountryIso2:null==e?void 0:e.iso2}):void 0,f=(null==d?void 0:d.country)??e,m=((t,e)=>{let n=!e.disableDialCodeAndPrefix&&e.forceDialCode,i=!e.disableDialCodeAndPrefix&&e.insertDialCodeOnEmpty,r=t,s=t=>e.trimNonDigitsEnd?t.trim():t;if(!r)return i&&!r.length||n?s(`${e.prefix}${e.dialCode}${e.charAfterDialCode}`):s(r);if(r=Xa(r),r===e.dialCode&&!e.disableDialCodeAndPrefix)return s(`${e.prefix}${e.dialCode}${e.charAfterDialCode}`);if(e.dialCode.startsWith(r)&&!e.disableDialCodeAndPrefix)return s(n?`${e.prefix}${e.dialCode}${e.charAfterDialCode}`:`${e.prefix}${r}`);if(!r.startsWith(e.dialCode)&&!e.disableDialCodeAndPrefix){if(n)return s(`${e.prefix}${e.dialCode}${e.charAfterDialCode}`);if(r.length<e.dialCode.length)return s(`${e.prefix}${r}`)}let{phoneLeftSide:o,phoneRightSide:a}=(()=>{let t=e.dialCode.length;return{phoneLeftSide:r.slice(0,t),phoneRightSide:r.slice(t)}})();return o=`${e.prefix}${o}${e.charAfterDialCode}`,a=(({value:t,mask:e,maskSymbol:n,offset:i=0,trimNonMaskCharsLeftover:r=!1})=>{if(t.length<i)return t;let s=t.slice(0,i),o=t.slice(i),a=s,l=0;for(let c of e.split("")){if(l>=o.length){if(!r&&c!==n){a+=c;continue}break}c===n?(a+=o[l],l+=1):a+=c}return a})({value:a,mask:e.mask,maskSymbol:e.maskChar,trimNonMaskCharsLeftover:e.trimNonDigitsEnd||e.disableDialCodeAndPrefix&&0===a.length}),e.disableDialCodeAndPrefix&&(o=""),s(`${o}${a}`)})(p,{prefix:s,mask:sl({phone:p,country:f,defaultMask:c,disableFormatting:u}),maskChar:nl,dialCode:f.dialCode,trimNonDigitsEnd:i,charAfterDialCode:o,forceDialCode:a,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),g=h&&!(null==d?void 0:d.fullDialCodeMatch)?e:f;return{phone:Za({phone:l?`${g.dialCode}${m}`:m,prefix:s}),inputValue:m,country:g}}var el={size:20,overrideLastItemDebounceMS:-1};var nl=".",il=Qa,rl=({defaultCountry:t="us",value:n="",countries:i=il,prefix:r="+",defaultMask:s="............",charAfterDialCode:o=" ",historySaveDebounceMS:a=200,disableCountryGuess:l=false,disableDialCodePrefill:c=false,forceDialCode:h=false,disableDialCodeAndPrefix:u=false,disableFormatting:p=false,onChange:d,inputRef:f})=>{let m={countries:i,prefix:r,charAfterDialCode:o,forceDialCode:!u&&h,disableDialCodeAndPrefix:u,defaultMask:s,countryGuessingEnabled:!l,disableFormatting:p},g=e.useRef(null),y=f||g,v=t=>{Promise.resolve().then((()=>{var e;typeof window>"u"||y.current!==(null==document?void 0:document.activeElement)||null==(e=y.current)||e.setSelectionRange(t,t)}))},[{phone:b,inputValue:x,country:w},k,_,S]=function(t,n){let{size:i,overrideLastItemDebounceMS:r,onChange:s}={...el,...n},[o,a]=e.useState(t),[l,c]=e.useState([o]),[h,u]=e.useState(0),p=(()=>{let t=e.useRef(),n=e.useRef(Date.now());return{check:()=>{let e=Date.now(),i=t.current?e-n.current:void 0;return t.current=n.current,n.current=e,i}}})();return[o,(t,e)=>{if("object"==typeof t&&"object"==typeof o&&((t,e)=>{let n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0})(t,o)||t===o)return;let n=r>0,d=p.check(),f=!n||void 0===d||d>r;if(void 0!==(null==e?void 0:e.overrideLastItem)?e.overrideLastItem:!f)c((e=>[...e.slice(0,h),t]));else{let e=l.length>=i;c((n=>[...n.slice(e?1:0,h+1),t])),e||u((t=>t+1))}a(t),null==s||s(t)},()=>{if(h<=0)return{success:!1};let t=l[h-1];return a(t),u((t=>t-1)),null==s||s(t),{success:!0,value:t}},()=>{if(h+1>=l.length)return{success:!1};let t=l[h+1];return a(t),u((t=>t+1)),null==s||s(t),{success:!0,value:t}}]}((()=>{let e=al({value:t,field:"iso2",countries:i}),r=e||al({value:"us",field:"iso2",countries:i}),{phone:s,inputValue:o,country:a}=tl({value:n,country:r,insertDialCodeOnEmpty:!c,...m});return v(o.length),{phone:s,inputValue:o,country:a.iso2}}),{overrideLastItemDebounceMS:a,onChange:({inputValue:t,phone:e,country:n})=>{if(!d)return;let i=$(n);d({phone:e,inputValue:t,country:i})}}),$=e.useCallback((t=>al({value:t,field:"iso2",countries:i})),[i]),C=e.useMemo((()=>$(w)),[w,$]);e.useEffect((()=>{let t=y.current;if(!t)return;let e=t=>{if(!t.key)return;let e=t.ctrlKey,n=t.metaKey,i=t.shiftKey;if("z"===t.key.toLowerCase()){if(typeof window>"u"||!window.navigator.userAgent.toLowerCase().includes("macintosh")){if(!e)return}else if(!n)return;i?S():_()}};return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[y,_,S]);let[A,P]=e.useState(!1);return e.useEffect((()=>{if(!A)return P(!0),void(n!==b&&(null==d||d({inputValue:x,phone:b,country:C})));if(n===b)return;let{phone:t,inputValue:e,country:i}=tl({value:n,country:C,insertDialCodeOnEmpty:!c,...m});k({phone:t,inputValue:e,country:i.iso2})}),[n]),{phone:b,inputValue:x,country:C,setCountry:(t,e={focusOnInput:!1})=>{let n=al({value:t,field:"iso2",countries:i});if(!n)return;let s=u?"":`${r}${n.dialCode}${o}`;k({inputValue:s,phone:`${r}${n.dialCode}`,country:n.iso2}),e.focusOnInput&&Promise.resolve().then((()=>{var t;null==(t=y.current)||t.focus()}))},handlePhoneValueChange:t=>{t.preventDefault();let{phone:e,inputValue:i,country:r,cursorPosition:s}=((t,{country:e,insertDialCodeOnEmpty:n,phoneBeforeInput:i,prefix:r,charAfterDialCode:s,forceDialCode:o,disableDialCodeAndPrefix:a,countryGuessingEnabled:l,defaultMask:c,disableFormatting:h,countries:u})=>{let p=t.nativeEvent,d=p.inputType,f=(t=>{if(null==t?void 0:t.toLocaleLowerCase().includes("delete"))return(null==t?void 0:t.toLocaleLowerCase().includes("forward"))?"forward":"backward"})(d),m=!!(null==d?void 0:d.startsWith("insertFrom")),g="insertText"===d,y=(null==p?void 0:p.data)||void 0,v=t.target.value,b=t.target.selectionStart??0;if(null==d?void 0:d.includes("history"))return{inputValue:i,phone:Za({phone:i,prefix:r}),cursorPosition:i.length,country:e};if(g&&!Ya(y)&&v!==r)return{inputValue:i,phone:Za({phone:a?`${e.dialCode}${i}`:i,prefix:r}),cursorPosition:b-((null==y?void 0:y.length)??0),country:e};if(o&&!v.startsWith(`${r}${e.dialCode}`)&&!m){let t=v?i:`${r}${e.dialCode}${s}`;return{inputValue:t,phone:Za({phone:t,prefix:r}),cursorPosition:r.length+e.dialCode.length+s.length,country:e}}let{phone:x,inputValue:w,country:k}=tl({value:v,country:e,trimNonDigitsEnd:"backward"===f,insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:u,prefix:r,charAfterDialCode:s,forceDialCode:o,disableDialCodeAndPrefix:a,disableFormatting:h,defaultMask:c});return{phone:x,inputValue:w,cursorPosition:(({phoneBeforeInput:t,phoneAfterInput:e,phoneAfterFormatted:n,cursorPositionAfterInput:i,leftOffset:r=0,deletion:s})=>{if(i<r)return r;if(!t)return n.length;let o=null;for(let h=i-1;h>=0;h-=1)if(Ya(e[h])){o=h;break}if(null===o){for(let t=0;t<e.length;t+=1)if(Ya(n[t]))return t;return e.length}let a=0;for(let h=0;h<o;h+=1)Ya(e[h])&&(a+=1);let l=0,c=0;for(let h=0;h<n.length&&(l+=1,Ya(n[h])&&(c+=1),!(c>=a+1));h+=1);if("backward"!==s)for(;!Ya(n[l])&&l<n.length;)l+=1;return l})({cursorPositionAfterInput:b,phoneBeforeInput:i,phoneAfterInput:v,phoneAfterFormatted:w,leftOffset:o?r.length+e.dialCode.length+s.length:0,deletion:f}),country:k}})(t,{country:C,phoneBeforeInput:x,insertDialCodeOnEmpty:!1,...m});return k({inputValue:i,phone:e,country:r.iso2}),v(s),n},inputRef:y}},sl=({phone:t,country:e,defaultMask:n="............",disableFormatting:i=!1})=>{let r=e.format,s=t=>i?t.replace(new RegExp(`[^${nl}]`,"g"),""):t;if(!r)return s(n);if("string"==typeof r)return s(r);if(!r.default)return s(n);let o=Object.keys(r).find((n=>{if("default"===n)return!1;if("/"!==n.charAt(0)||"/"!==n.charAt(n.length-1))return!1;let i=new RegExp(n.substring(1,n.length-1)),r=t.replace(e.dialCode,"");return i.test(Xa(r))}));return s(o?r[o]:r.default)},ol=t=>{let[e,n,i,r,s,o]=t;return{name:e,iso2:n,dialCode:i,format:r,priority:s,areaCodes:o}},al=({field:t,value:e,countries:n=Qa})=>{if(["priority"].includes(t))throw new Error(`Field "${t}" is not supported`);let i=n.find((n=>{let i=ol(n);return e===i[t]}));if(i)return ol(i)},ll=({phone:t,countries:e=Qa,currentCountryIso2:n})=>{var i;let r={country:void 0,fullDialCodeMatch:!1};if(!t)return r;let s=Xa(t);if(!s)return r;let o=r,a=({country:t,fullDialCodeMatch:e})=>{var n,i;let r=t.dialCode===(null==(n=o.country)?void 0:n.dialCode),s=(t.priority??0)<((null==(i=o.country)?void 0:i.priority)??0);(!r||s)&&(o={country:t,fullDialCodeMatch:e})};for(let l of e){let t=ol(l),{dialCode:e,areaCodes:n}=t;if(s.startsWith(e)){let i=!o.country||Number(e)>=Number(o.country.dialCode);if(n){let i=s.substring(e.length);for(let e of n)if(i.startsWith(e))return{country:t,fullDialCodeMatch:!0}}(i||e===s||!o.fullDialCodeMatch)&&a({country:t,fullDialCodeMatch:!0})}o.fullDialCodeMatch||s.length<e.length&&e.startsWith(s)&&(!o.country||Number(e)<=Number(o.country.dialCode))&&a({country:t,fullDialCodeMatch:!1})}if(n){let t=al({value:n,field:"iso2",countries:e});if(!t)return o;let r=!!t&&(t=>{if(!(null==t?void 0:t.areaCodes))return!1;let e=s.substring(t.dialCode.length);return t.areaCodes.some((t=>t.startsWith(e)))})(t);o&&(null==(i=o.country)?void 0:i.dialCode)===t.dialCode&&o.country!==t&&o.fullDialCodeMatch&&(!t.areaCodes||r)&&(o={country:t,fullDialCodeMatch:!0})}return o},cl=(t,e)=>{let n=parseInt(t,16);return Number(n+e).toString(16)},hl="abcdefghijklmnopqrstuvwxyz".split("").reduce(((t,e,n)=>({...t,[e]:cl("1f1e6",n)})),{}),ul=({iso2:t,size:n,src:i,protocol:r="https",disableLazyLoading:s,className:o,style:a,...l})=>t?e.createElement("img",{className:Ka({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:(()=>{if(i)return i;let e=[hl[(n=t)[0]],hl[n[1]]].join("-");var n;return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${e}.svg`})(),width:n,height:n,draggable:!1,"data-country":t,loading:s?void 0:"lazy",style:{width:n,height:n,...a},alt:"",...l}):e.createElement("img",{className:Ka({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:n,height:n,...l}),pl=({show:t,dialCodePrefix:n="+",selectedCountry:i,countries:r=Qa,preferredCountries:s=[],flags:o,onSelect:a,onClose:l,...c})=>{let h=e.useRef(null),u=e.useRef(),p=e.useMemo((()=>{if(!s||!s.length)return r;let t=[],e=[...r];for(let n of s){let i=e.findIndex((t=>ol(t).iso2===n));if(-1!==i){let n=e.splice(i,1)[0];t.push(n)}}return t.concat(e)}),[r,s]),d=e.useRef({updatedAt:void 0,value:""}),f=e.useCallback((t=>p.findIndex((e=>ol(e).iso2===t))),[p]),[m,g]=e.useState(f(i)),y=()=>{u.current!==i&&g(f(i))},v=e.useCallback((t=>{g(f(t.iso2)),null==a||a(t)}),[a,f]),b=t=>{let e=p.length-1;g((n=>{let i=(r=n,"prev"===t?r-1:"next"===t?r+1:"last"===t?e:0);var r;return i<0?0:i>e?e:i}))},x=e.useCallback((()=>{if(!h.current||void 0===m)return;let t=ol(p[m]).iso2;if(t===u.current)return;let e=h.current.querySelector(`[data-country="${t}"]`);e&&(((t,e)=>{let n=t.style.display;"block"!==n&&(t.style.display="block");let i=t.getBoundingClientRect(),r=e.getBoundingClientRect(),s=r.top-i.top,o=i.bottom-r.bottom;s>=0&&o>=0||(Math.abs(s)<Math.abs(o)?t.scrollTop+=s:t.scrollTop-=o),t.style.display=n})(h.current,e),u.current=t)}),[m,p]);return e.useEffect((()=>{x()}),[m,x]),e.useEffect((()=>{h.current&&(t?h.current.focus():y())}),[t]),e.useEffect((()=>{y()}),[i]),e.createElement("ul",{ref:h,role:"listbox",className:Ka({addPrefix:["country-selector-dropdown"],rawClassNames:[c.className]}),style:{display:t?"block":"none",...c.style},onKeyDown:t=>{if(t.stopPropagation(),"Enter"!==t.key){if("Escape"!==t.key)return"ArrowUp"===t.key?(t.preventDefault(),void b("prev")):"ArrowDown"===t.key?(t.preventDefault(),void b("next")):"PageUp"===t.key?(t.preventDefault(),void b("first")):"PageDown"===t.key?(t.preventDefault(),void b("last")):(" "===t.key&&t.preventDefault(),void(1===t.key.length&&!t.altKey&&!t.ctrlKey&&!t.metaKey&&(t=>{let e=d.current.updatedAt&&(new Date).getTime()-d.current.updatedAt.getTime()>1e3;d.current={value:e?t:`${d.current.value}${t}`,updatedAt:new Date};let n=p.findIndex((t=>ol(t).name.toLowerCase().startsWith(d.current.value)));-1!==n&&g(n)})(t.key.toLocaleLowerCase())));null==l||l()}else{t.preventDefault();let e=ol(p[m]);v(e)}},onBlur:l,tabIndex:-1,"aria-activedescendant":`react-international-phone__${ol(p[m]).iso2}-option`},p.map(((t,r)=>{let a=ol(t),l=a.iso2===i,h=r===m,u=s.includes(a.iso2),p=r===s.length-1,d=null==o?void 0:o.find((t=>t.iso2===a.iso2));return e.createElement(e.Fragment,{key:a.iso2},e.createElement("li",{"data-country":a.iso2,role:"option","aria-selected":l,"aria-label":`${a.name} ${n}${a.dialCode}`,id:`react-international-phone__${a.iso2}-option`,className:Ka({addPrefix:["country-selector-dropdown__list-item",u&&"country-selector-dropdown__list-item--preferred",l&&"country-selector-dropdown__list-item--selected",h&&"country-selector-dropdown__list-item--focused"],rawClassNames:[c.listItemClassName]}),onClick:()=>v(a),style:c.listItemStyle,title:a.name},e.createElement(ul,{iso2:a.iso2,src:null==d?void 0:d.src,className:Ka({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[c.listItemFlagClassName]}),style:c.listItemFlagStyle}),e.createElement("span",{className:Ka({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[c.listItemCountryNameClassName]}),style:c.listItemCountryNameStyle},a.name),e.createElement("span",{className:Ka({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[c.listItemDialCodeClassName]}),style:c.listItemDialCodeStyle},n,a.dialCode)),p?e.createElement("hr",{className:Ka({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[c.preferredListDividerClassName]}),style:c.preferredListDividerStyle}):null)})))},dl=({selectedCountry:t,onSelect:n,disabled:i,hideDropdown:r,countries:s=Qa,preferredCountries:o=[],flags:a,renderButtonWrapper:l,...c})=>{let[h,u]=e.useState(!1),p=e.useMemo((()=>{if(t)return al({value:t,field:"iso2",countries:s})}),[s,t]),d=e.useRef(null),f=t=>{t.key&&["ArrowUp","ArrowDown"].includes(t.key)&&(t.preventDefault(),u(!0))};return e.createElement("div",{className:Ka({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:d},(()=>{var n;let s={title:null==p?void 0:p.name,onClick:()=>u((t=>!t)),onMouseDown:t=>t.preventDefault(),onKeyDown:f,disabled:r||i,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":h},o=e.createElement("div",{className:Ka({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},e.createElement(ul,{iso2:t,src:null==(n=null==a?void 0:a.find((e=>e.iso2===t)))?void 0:n.src,className:Ka({addPrefix:["country-selector-button__flag-emoji",i&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:t?"visible":"hidden",...c.flagStyle}}),!r&&e.createElement("div",{className:Ka({addPrefix:["country-selector-button__dropdown-arrow",i&&"country-selector-button__dropdown-arrow--disabled",h&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle}));return l?l({children:o,rootProps:s}):e.createElement("button",{...s,type:"button",className:Ka({addPrefix:["country-selector-button",h&&"country-selector-button--active",i&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":t,style:c.buttonStyle},o)})(),e.createElement(pl,{show:h,countries:s,preferredCountries:o,flags:a,onSelect:t=>{u(!1),null==n||n(t)},selectedCountry:t,onClose:()=>{u(!1)},...c.dropdownStyleProps}))},fl=({dialCode:t,prefix:n,disabled:i,style:r,className:s})=>e.createElement("div",{className:Ka({addPrefix:["dial-code-preview",i&&"dial-code-preview--disabled"],rawClassNames:[s]}),style:r},`${n}${t}`);e.forwardRef((({value:t,onChange:n,countries:i=Qa,preferredCountries:r=[],hideDropdown:s,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:a,flags:l,style:c,className:h,inputStyle:u,inputClassName:p,countrySelectorStyleProps:d,dialCodePreviewStyleProps:f,inputProps:m,placeholder:g,disabled:y,name:v,onFocus:b,onBlur:x,required:w,autoFocus:k,..._},S)=>{let{phone:$,inputValue:C,inputRef:A,country:P,setCountry:T,handlePhoneValueChange:E}=rl({value:t,countries:i,..._,onChange:t=>{null==n||n(t.phone,{country:t.country,inputValue:t.inputValue})}}),j=_.disableDialCodeAndPrefix&&o&&(null==P?void 0:P.dialCode);return e.useImperativeHandle(S,(()=>A.current?Object.assign(A.current,{setCountry:T,state:{phone:$,inputValue:C,country:P}}):null),[A,T,$,C,P]),e.createElement("div",{ref:S,className:Ka({addPrefix:["input-container"],rawClassNames:[h]}),style:c},e.createElement(dl,{onSelect:t=>T(t.iso2,{focusOnInput:!a}),flags:l,selectedCountry:P.iso2,countries:i,preferredCountries:r,disabled:y,hideDropdown:s,...d}),j&&e.createElement(fl,{dialCode:P.dialCode,prefix:_.prefix??"+",disabled:y,...f}),e.createElement("input",{onChange:E,value:C,type:"tel",ref:A,className:Ka({addPrefix:["input",y&&"input--disabled"],rawClassNames:[p]}),placeholder:g,disabled:y,style:u,name:v,onFocus:b,onBlur:x,autoFocus:k,required:w,...m}))}));const ml=t.styled.div`
|
|
194
|
+
${({theme:t})=>`\n align-items: flex-start;\n align-self: stretch;\n display: flex;\n gap: ${t.spacing[.5]};\n width: 380px;\n\n > button, div {\n border: 1px solid ${t.palette.gray[300]};\n border-radius: ${t.spacing[.25]};\n }\n\n &.disabled {\n > button, div {\n background: ${t.palette.gray[100]};\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n }\n }\n\n &.error:not(.disabled) {\n > button, div {\n border: 1px solid ${t.palette.error[500]};\n }\n }\n\n &:focus-within:not(.disabled, .error) {\n > button, div {\n background: ${t.palette.white};\n border: 2px solid ${t.palette.black};\n }\n }\n\n &:hover:not(:focus-within, .disabled, .error) {\n > button, div {\n background: ${t.palette.white};\n border-color: ${t.palette.gray[600]};\n }\n }\n\n @container (width < 320px) or (width < 600px) {\n width: 100%;\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n width: 250px;\n }\n `}
|
|
195
|
+
`,gl=t.styled.button`
|
|
196
|
+
${({theme:t})=>`\n align-items: center;\n background: inherit;\n border-color: inherit;\n display: flex;\n gap: ${t.spacing[.25]};\n height: 44px;\n min-width: 67px;\n padding: ${t.spacing[.625]} ${t.spacing[1]};\n\n &:disabled {\n background: ${t.palette.gray[100]};\n cursor: not-allowed;\n }\n `}
|
|
197
|
+
`,yl=t.styled.ul`
|
|
198
|
+
${({theme:t})=>`\n align-items: flex-start;\n box-shadow: ${t.shadows.md};\n display: flex;\n flex-direction: column;\n max-height: 190px;\n overflow: hidden auto;\n scrollbar-color: ${t.palette.gray[600]} ${t.palette.gray[100]};\n scroll-padding: ${t.spacing[.5]};\n scrollbar-width: thin;\n width: max-content;\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n max-height: 150px;\n }\n `}
|
|
199
|
+
`,vl=t.styled.li`
|
|
200
|
+
${({theme:t})=>`\n align-items: center;\n background: ${t.palette.white};\n cursor: pointer;\n display: inline-flex;\n font-size: ${t.typography.text.sm};\n gap: ${t.spacing[.5]};\n height: 38px;\n line-height: ${t.spacing[1.25]};\n padding: ${t.spacing[.5]} ${t.spacing[1]};\n width: 190px;\n\n &:hover {\n background: ${t.palette.gray[100]};\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n font-size: ${t.typography.text.xs};\n height: 30px;\n width: 160px;\n }\n `}
|
|
201
|
+
`,bl=t.styled.p`
|
|
202
|
+
color: ${({theme:t})=>t.palette.gray[800]};
|
|
203
|
+
font-size: inherit;
|
|
204
|
+
min-width: 55%;
|
|
205
|
+
overflow: hidden;
|
|
206
|
+
text-overflow: ellipsis;
|
|
207
|
+
white-space: nowrap;
|
|
208
|
+
`,xl=({htmlFor:e,label:n,mode:i="light",required:r,tooltip:s})=>{const o=t.useTheme(),a=`${e}-tooltip`,l=void 0!==s&&!ri(s);return y.jsxs("label",{className:`flex gap-1 w-full ${i}`,htmlFor:e,children:[n,r&&y.jsx(V,{icon:"asterisk",iconColor:o.palette.error[500],iconSize:"xxs"}),l?y.jsx(Ti,{icon:"circle-info",id:a,place:"right",tip:s}):null]})},wl=t.styled.div`
|
|
209
|
+
${({theme:t})=>`\n align-items: flex-start;\n display: inline-flex;\n flex-direction: column;\n gap: ${t.spacing[.25]};\n\n label {\n color: ${t.palette.gray[800]};\n\n &.dark {\n color: ${t.palette.white};\n }\n }\n\n > *:not(.error-msg) {\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.md};\n font-style: normal;\n font-weight: ${t.typography.weight.regular};\n line-height: ${t.spacing[1.5]};\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n font-size: ${t.typography.text.sm};\n }\n }\n `}
|
|
210
|
+
`,kl=t.styled.div`
|
|
211
|
+
${({theme:t})=>`\n align-items: center;\n display: flex;\n border-radius: ${t.spacing[.25]};\n border: 1px solid ${t.palette.gray[300]};\n color: ${t.palette.gray[600]};\n gap: ${t.spacing[.625]};\n justify-content: space-between;\n height: 44px;\n padding: ${t.spacing[.625]} ${t.spacing[.75]};\n width: 320px;\n\n input {\n background: inherit;\n cursor: inherit;\n outline: none;\n width: 100%;\n\n &::placeholder {\n &.dark {\n color: ${t.palette.gray[600]};\n }\n &.light {\n color: ${t.palette.gray[400]};\n }\n }\n }\n\n span {\n font-size: 14px;\n }\n\n &.dark {\n border: 1px solid ${t.palette.gray[700]};\n color: ${t.palette.white};\n }\n\n &.disabled {\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n\n &.dark {\n background: ${t.palette.gray[700]};\n }\n &.light {\n background: ${t.palette.gray[100]};\n }\n }\n\n &.error:not(.disabled) {\n border: 1px solid ${t.palette.error[500]};\n }\n\n &:focus-within:not(.disabled, .error) {\n &.dark {\n background: ${t.palette.black};\n border: 2px solid ${t.palette.gray[400]};\n }\n\n &.light {\n background: ${t.palette.white};\n border: 2px solid ${t.palette.black};\n }\n }\n\n &:hover:not(:focus-within, .disabled, .error) {\n &.dark {\n background: ${t.palette.black};\n }\n\n &.light {\n background: ${t.palette.white};\n border: 1px solid ${t.palette.gray[600]};\n }\n }\n\n @container (width < 320px) or (width < 600px) {\n width: 100%;\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n width: 250px;\n }\n `}
|
|
212
|
+
`,_l=({children:e,error:n,htmlFor:i,label:r,mode:s,required:o,tooltip:a})=>{const l=t.useTheme();return y.jsxs(wl,{children:[void 0===r?void 0:y.jsx(xl,{htmlFor:i,label:r,mode:s,required:o,tooltip:a}),e,n?y.jsx(L,{className:"error-msg",color:l.palette.error[500],display:"block",lineSpacing:1,size:"sm",sizeSm:"xs",children:n}):void 0]})},Sl=e.forwardRef((function({disabled:i,error:r,label:s,mode:l="light",name:c,required:h,tooltip:u,value:p,...d},f){const m=t.useTheme(),[g,v]=e.useState(!1),[b,x]=e.useState(""),w=e.useRef(null),{refs:k,floatingStyles:_}=function(t){void 0===t&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:h,open:u}=t,[p,d]=o.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,m]=o.useState(i);re(f,i)||m(i);const[g,y]=o.useState(null),[v,b]=o.useState(null),x=o.useCallback((t=>{t!==S.current&&(S.current=t,y(t))}),[]),w=o.useCallback((t=>{t!==$.current&&($.current=t,b(t))}),[]),k=s||g,_=l||v,S=o.useRef(null),$=o.useRef(null),C=o.useRef(p),A=null!=h,P=ae(h),T=ae(r),E=ae(u),j=o.useCallback((()=>{if(!S.current||!$.current)return;const t={placement:e,strategy:n,middleware:f};T.current&&(t.platform=T.current),ne(S.current,$.current,t).then((t=>{const e={...t,isPositioned:!1!==E.current};D.current&&!re(C.current,e)&&(C.current=e,a.flushSync((()=>{d(e)})))}))}),[f,e,n,T,E]);ie((()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,d((t=>({...t,isPositioned:!1}))))}),[u]);const D=o.useRef(!1);ie((()=>(D.current=!0,()=>{D.current=!1})),[]),ie((()=>{if(k&&(S.current=k),_&&($.current=_),k&&_){if(P.current)return P.current(k,_,j);j()}}),[k,_,j,P,A]);const M=o.useMemo((()=>({reference:S,floating:$,setReference:x,setFloating:w})),[x,w]),F=o.useMemo((()=>({reference:k,floating:_})),[k,_]),I=o.useMemo((()=>{const t={position:n,left:0,top:0};if(!F.floating)return t;const e=oe(F.floating,p.x),i=oe(F.floating,p.y);return c?{...t,transform:"translate("+e+"px, "+i+"px)",...se(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:i}}),[n,c,F.floating,p.x,p.y]);return o.useMemo((()=>({...p,update:j,refs:M,elements:F,floatingStyles:I})),[p,j,M,F,I])}({placement:"bottom-start",whileElementsMounted:Xt}),{inputValue:S,handlePhoneValueChange:$,country:C,setCountry:A}=rl({countries:Qa,defaultCountry:"us",value:p?String(p):void 0}),P=e.useCallback((()=>{v((t=>!t)),g||x("")}),[g]),T=e.useCallback((t=>()=>{A(t),v(!1),x("")}),[A,v]),E=e.useCallback((t=>{1===t.key.length?x((e=>e+t.key)):"Backspace"===t.key&&x((t=>t.slice(0,-1)))}),[]),j=Qa.filter((t=>{const{name:e}=ol(t);return e.toLowerCase().includes(b.toLowerCase())}));return zi(k.floating.current,(()=>{v(!1),x("")}),!0),y.jsx(_l,{error:r,htmlFor:c,label:s,mode:l,required:h,tooltip:u,children:y.jsxs(ml,{className:`${i?"disabled":""} ${r?"error":""}`,ref:w,children:[y.jsxs(gl,{"aria-label":"country-selector","data-testid":"country-selector",disabled:i,id:"country-selector",onClick:P,onKeyDown:E,ref:k.setReference,children:[y.jsx(ul,{iso2:C.iso2,size:"16px"}),y.jsx(V,{icon:"angle-down",iconColor:m.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),y.jsxs(kl,{className:`light ${i?"disabled":""} ${r?"error":""}`,children:[y.jsx("input",{"aria-hidden":!1,"aria-invalid":r?"true":"false","aria-label":c,"aria-required":h,autoComplete:"off","data-testid":`${c}-input`,disabled:i,id:c,name:c,onChange:$,ref:f,type:"tel",value:S,...d}),r?y.jsx(V,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"}):void 0]}),g&&n.createPortal(y.jsx(yl,{ref:k.setFloating,style:_,children:j.map((t=>{const{dialCode:e,iso2:n,name:i}=ol(t);return y.jsxs(vl,{onClick:T(n),value:n,children:[y.jsx(ul,{iso2:n,size:"16px"}),y.jsx(bl,{children:i}),y.jsx(L,{color:m.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+e})]},n)}))}),document.getElementById("root")??document.body)]})})})),$l=e.forwardRef((function({disabled:e,error:n,label:i,mode:r="light",name:s,required:o,tooltip:a,type:l="text",...c},h){const u=t.useTheme();return y.jsx(_l,{error:n,htmlFor:s,label:i,mode:r,required:o,tooltip:a,children:y.jsxs(kl,{className:`${r} ${e?"disabled":""} ${n?"error":""}`,children:[y.jsx("input",{"aria-hidden":!1,"aria-invalid":n?"true":"false","aria-label":s,"aria-required":o,autoComplete:"off","data-testid":`${s}-input`,disabled:e,id:s,name:s,ref:h,type:l,...c}),n?y.jsx(V,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]})})})),Cl=t.styled.div`
|
|
213
|
+
${({theme:t})=>`\n align-items: flex-start;\n backdrop-filter: blur(3.15px);\n background: radial-gradient(\n 68.83% 167.8% at 171.9% 90.34%,\n ${t.palette.complementary[300]} 0%,\n ${t.palette.primary[400]} 100%\n ),\n linear-gradient(\n 241deg,\n ${t.palette.primary[400]} 3.45%,\n ${t.palette.primary[500]} 82.59%\n );\n border-radius: ${t.spacing[1]};\n box-shadow: ${t.shadows.md};\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[.625]};\n height: 300px;\n padding: ${t.spacing[1]};\n position: relative;\n width: 300px;\n\n button > * {\n font-size: ${t.typography.text.sm};\n }\n\n #hovered {\n display: none;\n }\n\n &:hover {\n background: ${t.palette.gray[900]};\n\n #hovered {\n display: flex;\n }\n #uncover {\n display: none;\n }\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n height: 320px;\n width: 320px;\n\n #hovered {\n margin-bottom: ${t.spacing[1.75]};\n }\n }\n `}
|
|
214
|
+
`,Al=t.styled.div`
|
|
215
|
+
align-items: center;
|
|
216
|
+
position: absolute;
|
|
217
|
+
justify-content: center;
|
|
218
|
+
opacity: 0.15;
|
|
219
|
+
top: 14%;
|
|
220
|
+
left: 25%;
|
|
221
|
+
z-index: -1;
|
|
222
|
+
|
|
223
|
+
span {
|
|
224
|
+
font-size: 265px;
|
|
225
|
+
height: 260px;
|
|
226
|
+
width: 260px;
|
|
227
|
+
}
|
|
228
|
+
`,Pl=({icon:t})=>y.jsx(Al,{children:y.jsx(V,{icon:t,iconColor:v.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),Tl=t.styled.button`
|
|
229
|
+
${({theme:t})=>`\n align-items: center;\n border-left: 3px solid transparent;\n display: flex;\n gap: ${t.spacing[.625]};\n height: 42px;\n min-width: 50px;\n padding: ${t.spacing[.625]} ${t.spacing[1]};\n\n &.dark {\n background-color: ${t.palette.gray[800]};\n color: ${t.palette.gray[25]};\n\n &.disabled {\n border-color: ${t.palette.gray[500]};\n color: ${t.palette.gray[500]};\n cursor: not-allowed;\n }\n\n &:hover:not(.disabled) {\n background-color: ${t.palette.gray[700]};\n border-color: ${t.palette.primary[400]};\n }\n }\n\n &.light {\n background-color: ${t.palette.gray[50]};\n color: ${t.palette.gray[800]};\n\n &.disabled {\n background-color: ${t.palette.white};\n border-color: ${t.palette.gray[300]};\n color: ${t.palette.gray[300]};\n cursor: not-allowed;\n }\n\n &:hover:not(.disabled) {\n background-color: ${t.palette.gray[100]};\n border-color: ${t.palette.primary[400]};\n }\n }\n `}
|
|
230
|
+
`,El=t.styled.div`
|
|
231
|
+
${({theme:t})=>`\n align-items: center;\n background-color: transparent;\n border-bottom: 2px solid transparent;\n display: flex;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.regular};\n gap: ${t.spacing[.5]};\n height: 30px;\n justify-content: center;\n padding: ${t.spacing[.25]};\n margin-bottom: ${t.spacing[.25]};\n min-width: 50px;\n width: max-content;\n z-index: 11;\n\n &:hover {\n border-color: ${t.palette.primary[400]};\n }\n\n &.dark {\n color: ${t.palette.gray[25]};\n }\n\n &.light {\n color: ${t.palette.gray[800]};\n }\n `}
|
|
232
|
+
`,jl=t.styled.div`
|
|
233
|
+
${({theme:t})=>`\n background-color: ${t.palette.white};\n border-radius: 0 0 ${t.spacing[.25]} ${t.spacing[.25]};\n box-shadow: ${t.shadows.lg};\n display: none;\n flex-direction: column;\n position: absolute;\n top: 100%;\n z-index: 11;\n\n > button:last-child {\n border-radius: 0 0 ${t.spacing[.25]} ${t.spacing[.25]};\n }\n `}
|
|
234
|
+
`,Dl=t.styled.div`
|
|
235
|
+
${({theme:t})=>`\n align-items: flex-start;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[.25]};\n height: max-content;\n position: relative;\n width: max-content;\n z-index: 10;\n\n &:hover {\n > div:first-child {\n border-color: ${t.palette.primary[400]};\n }\n\n > div:last-child {\n display: flex;\n }\n }\n `}
|
|
236
|
+
`,Ml=({disabled:t=!1,mode:e,onClick:n,text:i})=>y.jsx(Tl,{className:`${t&&"disabled"} ${e}`,disabled:t,onClick:n,children:y.jsx(L,{color:"inherit",size:"sm",sizeSm:"xs",children:i})}),Fl=[{text:"EN"},{text:"ES"}],Il=t.styled.li`
|
|
237
|
+
${({theme:t})=>`\n align-items: center;\n background-color: ${t.palette.white};\n color: ${t.palette.gray[800]};\n cursor: pointer;\n display: flex;\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.regular};\n justify-content: space-between;\n gap: ${t.spacing[.625]};\n line-height: ${t.spacing[1.25]};\n list-style-type: none;\n min-height: 40px;\n min-width: 240px;\n padding: ${t.spacing[.625]} ${t.spacing[1]};\n pointer-events: auto;\n\n p,\n a {\n word-break: break-word;\n }\n\n & > label {\n margin: unset;\n }\n\n a {\n color: ${t.palette.gray[500]};\n }\n\n &[aria-disabled="true"] {\n color: ${t.palette.gray[300]};\n pointer-events: none;\n\n a {\n color: ${t.palette.gray[300]};\n }\n }\n\n &[aria-selected="true"] {\n background-color: ${t.palette.gray[200]};\n }\n\n &:hover:not([aria-selected="true"]) {\n background-color: ${t.palette.gray[100]};\n }\n `}
|
|
238
|
+
`,Rl=t.styled.ul`
|
|
239
|
+
${({theme:t})=>`\n background-color: ${t.palette.white};\n border: 1px solid ${t.palette.gray[200]};\n border-radius: ${t.spacing[.25]};\n box-shadow: ${t.shadows.md};\n display: inline-block;\n margin: unset;\n min-width: 240px;\n padding: ${t.spacing[.25]} 0 ${t.spacing[.25]} 0;\n `}
|
|
240
|
+
`,Ll=t.styled.span`
|
|
241
|
+
${({theme:t,$bgColor:e=t.palette.secondary[500],$txtDecoration:n="none"})=>`\n background-color: ${e};\n border-radius: 5px;\n color: ${t.palette.white};\n font-size: 10px;\n padding: ${t.spacing[.125]} ${t.spacing[.25]} ${t.spacing[.125]} ${t.spacing[.25]};\n text-decoration: ${n}\n `}
|
|
242
|
+
`,Ol={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"}},zl=t.styled.div`
|
|
243
|
+
display: flex;
|
|
244
|
+
height: 80px;
|
|
245
|
+
max-width: 1440px;
|
|
246
|
+
overflow: hidden;
|
|
247
|
+
position: relative;
|
|
248
|
+
`,Nl=t.styled.div`
|
|
249
|
+
height: 79px;
|
|
250
|
+
width: 64px;
|
|
251
|
+
flex-shrink: 0;
|
|
252
|
+
position: absolute;
|
|
253
|
+
z-index: 11;
|
|
254
|
+
|
|
255
|
+
&.left {
|
|
256
|
+
background: linear-gradient(
|
|
257
|
+
to right,
|
|
258
|
+
#fff 57.21%,
|
|
259
|
+
rgb(255 255 255 / 0%) 100.63%
|
|
260
|
+
);
|
|
261
|
+
left: 0;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&.right {
|
|
265
|
+
background: linear-gradient(
|
|
266
|
+
to left,
|
|
267
|
+
#fff 57.21%,
|
|
268
|
+
rgb(255 255 255 / 0%) 100.63%
|
|
269
|
+
);
|
|
270
|
+
right: 0;
|
|
271
|
+
}
|
|
272
|
+
`,Vl=t.styled.div`
|
|
273
|
+
display: flex;
|
|
274
|
+
gap: 40px;
|
|
275
|
+
animation: clients-animation 50s linear infinite;
|
|
276
|
+
width: calc(180px * 30);
|
|
277
|
+
|
|
278
|
+
@keyframes clients-animation {
|
|
279
|
+
0% {
|
|
280
|
+
transform: translateX(0);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
100% {
|
|
284
|
+
transform: translateX(calc(-180px * 15));
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
`,ql=["airs/clients-carousel/color/bancolombia","airs/clients-carousel/color/itau_colombia","airs/clients-carousel/color/lulo_bank","airs/clients-carousel/color/oxxo_international","airs/clients-carousel/color/interbank","airs/clients-carousel/color/global_bank","airs/clients-carousel/color/gesa","airs/clients-carousel/color/copa_airlines","airs/clients-carousel/color/consubanco","airs/clients-carousel/color/bantrab","airs/clients-carousel/color/banistmo","airs/clients-carousel/color/banco_internacional","airs/clients-carousel/color/banco_general","airs/clients-carousel/color/banbif","airs/clients-carousel/color/avianca"];var Bl={};!function(t,e){var n,i=(n=e)&&"object"==typeof n&&"default"in n?n:{default:n},r=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==h||"undefined"!=typeof self&&self,{exports:{}});!function(t,e){"undefined"!=typeof navigator&&(t.exports=function(){var t="http://www.w3.org/2000/svg",n="",i=!1,r=-999999,s=function(t){i=!!t},o=function(){return i},a=function(t){n=t},l=function(){return n};function c(t){return document.createElement(t)}function h(t,e){var n,i,r=t.length;for(n=0;n<r;n+=1)for(var s in i=t[n].prototype)Object.prototype.hasOwnProperty.call(i,s)&&(e.prototype[s]=i[s])}function u(t){function e(){}return e.prototype=t,e}var p=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,n=this.audios.length;for(e=0;e<n;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),d=function(){function t(t,e){var n,i=0,r=[];switch(t){case"int16":case"uint8c":n=1;break;default:n=1.1}for(i=0;i<e;i+=1)r.push(n);return r}function e(e,n){return"float32"===e?new Float32Array(n):"int16"===e?new Int16Array(n):"uint8c"===e?new Uint8ClampedArray(n):t(e,n)}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?e:t}();function f(t){return Array.apply(null,{length:t})}var m=!0,g=null,y="",v=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),b=Math.pow,x=Math.sqrt,w=Math.floor,k=Math.min,_=150,S=Math.PI/180,$=.5519;function C(t,e,n,i){this.type=t,this.currentTime=e,this.totalTime=n,this.direction=i<0?-1:1}function A(t,e){this.type=t,this.direction=e<0?-1:1}function P(t,e,n,i){this.type=t,this.currentLoop=n,this.totalLoops=e,this.direction=i<0?-1:1}function T(t,e,n){this.type=t,this.firstFrame=e,this.totalFrames=n}function E(t,e){this.type=t,this.target=e}function j(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function D(t){this.type="configError",this.nativeError=t}var M,F=(M=0,function(){return y+"__lottie_element_"+(M+=1)});function I(t,e,n){var i,r,s,o,a,l,c,h;switch(l=n*(1-e),c=n*(1-(a=6*t-(o=Math.floor(6*t)))*e),h=n*(1-(1-a)*e),o%6){case 0:i=n,r=h,s=l;break;case 1:i=c,r=n,s=l;break;case 2:i=l,r=n,s=h;break;case 3:i=l,r=c,s=n;break;case 4:i=h,r=l,s=n;break;case 5:i=n,r=l,s=c}return[i,r,s]}function R(t,e,n){var i,r=Math.max(t,e,n),s=Math.min(t,e,n),o=r-s,a=0===r?0:o/r,l=r/255;switch(r){case s:i=0;break;case t:i=e-n+o*(e<n?6:0),i/=6*o;break;case e:i=n-t+2*o,i/=6*o;break;case n:i=t-e+4*o,i/=6*o}return[i,a,l]}function L(t,e){var n=R(255*t[0],255*t[1],255*t[2]);return n[1]+=e,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),I(n[0],n[1],n[2])}function O(t,e){var n=R(255*t[0],255*t[1],255*t[2]);return n[2]+=e,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),I(n[0],n[1],n[2])}function z(t,e){var n=R(255*t[0],255*t[1],255*t[2]);return n[0]+=e/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),I(n[0],n[1],n[2])}!function(){var t,e,n=[];for(t=0;t<256;t+=1)e=t.toString(16),n[t]=1===e.length?"0"+e:e}();var N=function(t){m=!!t},V=function(){return m},q=function(t){g=t},B=function(){return g},W=function(t){_=t},U=function(){return _},H=function(t){y=t};function G(e){return document.createElementNS(t,e)}function Q(t){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var J=function(){var t,e,n=1,i=[],r={onmessage:function(){},postMessage:function(e){t({data:e})}},s={postMessage:function(t){r.onmessage({data:t})}};function a(e){if(window.Worker&&window.Blob&&o()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),i=URL.createObjectURL(n);return new Worker(i)}return t=e,r}function l(){e||((e=a((function(t){function e(){function t(e,n){var o,a,l,c,h,u,p=e.length;for(a=0;a<p;a+=1)if("ks"in(o=e[a])&&!o.completed){if(o.completed=!0,o.hasMask){var d=o.masksProperties;for(c=d.length,l=0;l<c;l+=1)if(d[l].pt.k.i)s(d[l].pt.k);else for(u=d[l].pt.k.length,h=0;h<u;h+=1)d[l].pt.k[h].s&&s(d[l].pt.k[h].s[0]),d[l].pt.k[h].e&&s(d[l].pt.k[h].e[0])}0===o.ty?(o.layers=i(o.refId,n),t(o.layers,n)):4===o.ty?r(o.shapes):5===o.ty&&f(o)}}function e(e,n){if(e){var r=0,s=e.length;for(r=0;r<s;r+=1)1===e[r].t&&(e[r].data.layers=i(e[r].data.refId,n),t(e[r].data.layers,n))}}function n(t,e){for(var n=0,i=e.length;n<i;){if(e[n].id===t)return e[n];n+=1}return null}function i(t,e){var i=n(t,e);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function r(t){var e,n,i;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)s(t[e].ks.k);else for(i=t[e].ks.k.length,n=0;n<i;n+=1)t[e].ks.k[n].s&&s(t[e].ks.k[n].s[0]),t[e].ks.k[n].e&&s(t[e].ks.k[n].e[0]);else"gr"===t[e].ty&&r(t[e].it)}function s(t){var e,n=t.i.length;for(e=0;e<n;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function o(t,e){var n=e?e.split("."):[100,100,100];return t[0]>n[0]||!(n[0]>t[0])&&(t[1]>n[1]||!(n[1]>t[1])&&(t[2]>n[2]||!(n[2]>t[2])&&null))}var a,l=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function n(t){var n,i=t.length;for(n=0;n<i;n+=1)5===t[n].ty&&e(t[n])}return function(e){if(o(t,e.v)&&(n(e.layers),e.assets)){var i,r=e.assets.length;for(i=0;i<r;i+=1)e.assets[i].layers&&n(e.assets[i].layers)}}}(),c=(a=[4,7,99],function(t){if(t.chars&&!o(a,t.v)){var e,n=t.chars.length;for(e=0;e<n;e+=1){var i=t.chars[e];i.data&&i.data.shapes&&(r(i.data.shapes),i.data.ip=0,i.data.op=99999,i.data.st=0,i.data.sr=1,i.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(i.data.shapes.push({ty:"no"}),i.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),h=function(){var t=[5,7,15];function e(t){var e=t.t.p;"number"==typeof e.a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r})}function n(t){var n,i=t.length;for(n=0;n<i;n+=1)5===t[n].ty&&e(t[n])}return function(e){if(o(t,e.v)&&(n(e.layers),e.assets)){var i,r=e.assets.length;for(i=0;i<r;i+=1)e.assets[i].layers&&n(e.assets[i].layers)}}}(),u=function(){var t=[4,1,9];function e(t){var n,i,r,s=t.length;for(n=0;n<s;n+=1)if("gr"===t[n].ty)e(t[n].it);else if("fl"===t[n].ty||"st"===t[n].ty)if(t[n].c.k&&t[n].c.k[0].i)for(r=t[n].c.k.length,i=0;i<r;i+=1)t[n].c.k[i].s&&(t[n].c.k[i].s[0]/=255,t[n].c.k[i].s[1]/=255,t[n].c.k[i].s[2]/=255,t[n].c.k[i].s[3]/=255),t[n].c.k[i].e&&(t[n].c.k[i].e[0]/=255,t[n].c.k[i].e[1]/=255,t[n].c.k[i].e[2]/=255,t[n].c.k[i].e[3]/=255);else t[n].c.k[0]/=255,t[n].c.k[1]/=255,t[n].c.k[2]/=255,t[n].c.k[3]/=255}function n(t){var n,i=t.length;for(n=0;n<i;n+=1)4===t[n].ty&&e(t[n].shapes)}return function(e){if(o(t,e.v)&&(n(e.layers),e.assets)){var i,r=e.assets.length;for(i=0;i<r;i+=1)e.assets[i].layers&&n(e.assets[i].layers)}}}(),p=function(){var t=[4,4,18];function e(t){var n,i,r;for(n=t.length-1;n>=0;n-=1)if("sh"===t[n].ty)if(t[n].ks.k.i)t[n].ks.k.c=t[n].closed;else for(r=t[n].ks.k.length,i=0;i<r;i+=1)t[n].ks.k[i].s&&(t[n].ks.k[i].s[0].c=t[n].closed),t[n].ks.k[i].e&&(t[n].ks.k[i].e[0].c=t[n].closed);else"gr"===t[n].ty&&e(t[n].it)}function n(t){var n,i,r,s,o,a,l=t.length;for(i=0;i<l;i+=1){if((n=t[i]).hasMask){var c=n.masksProperties;for(s=c.length,r=0;r<s;r+=1)if(c[r].pt.k.i)c[r].pt.k.c=c[r].cl;else for(a=c[r].pt.k.length,o=0;o<a;o+=1)c[r].pt.k[o].s&&(c[r].pt.k[o].s[0].c=c[r].cl),c[r].pt.k[o].e&&(c[r].pt.k[o].e[0].c=c[r].cl)}4===n.ty&&e(n.shapes)}}return function(e){if(o(t,e.v)&&(n(e.layers),e.assets)){var i,r=e.assets.length;for(i=0;i<r;i+=1)e.assets[i].layers&&n(e.assets[i].layers)}}}();function d(n){n.__complete||(u(n),l(n),c(n),h(n),p(n),t(n.layers,n.assets),e(n.chars,n.assets),n.__complete=!0)}function f(t){0===t.t.a.length&&t.t.p}var m={};return m.completeData=d,m.checkColors=u,m.checkChars=c,m.checkPathProperties=h,m.checkShapes=p,m.completeLayers=t,m}if(s.dataManager||(s.dataManager=e()),s.assetLoader||(s.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===Q(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}function e(e,n,i,r){var s,o=new XMLHttpRequest;try{o.responseType="json"}catch(a){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)s=t(o),i(s);else try{s=t(o),i(s)}catch(a){r&&r(a)}};try{o.open(["G","E","T"].join(""),e,!0)}catch(a){o.open(["G","E","T"].join(""),n+"/"+e,!0)}o.send()}return{load:e}}()),"loadAnimation"===t.data.type)s.assetLoader.load(t.data.path,t.data.fullPath,(function(e){s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){s.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var n=t.data.animation;s.dataManager.completeData(n),s.postMessage({id:t.data.id,payload:n,status:"success"})}else"loadData"===t.data.type&&s.assetLoader.load(t.data.path,t.data.fullPath,(function(e){s.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){s.postMessage({id:t.data.id,status:"error"})}))}))).onmessage=function(t){var e=t.data,n=e.id,r=i[n];i[n]=null,"success"===e.status?r.onComplete(e.payload):r.onError&&r.onError()})}function c(t,e){var r="processId_"+(n+=1);return i[r]={onComplete:t,onError:e},r}function h(t,n,i){l();var r=c(n,i);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:r})}function u(t,n,i){l();var r=c(n,i);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:r})}function p(t,n,i){l();var r=c(n,i);e.postMessage({type:"complete",animation:t,id:r})}return{loadAnimation:h,loadData:u,completeAnimation:p}}(),K=function(){var t=function(){var t=c("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(t,e,n){var i="";if(t.e)i=t.p;else if(e){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),i=e+r}else i=n,i+=t.u?t.u:"",i+=t.p;return i}function r(t){var e=0,n=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(n)),e+=1}.bind(this),50)}function s(e){var n=i(e,this.assetsPath,this.path),r=G("image");v?this.testImageLoaded(r):r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),r.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(r):this._elementHelper.appendChild(r);var s={img:r,assetData:e};return s}function o(e){var n=i(e,this.assetsPath,this.path),r=c("img");r.crossOrigin="anonymous",r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),r.src=n;var s={img:r,assetData:e};return s}function a(t){var e={assetData:t},n=i(t,this.assetsPath,this.path);return J.loadData(n,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function l(t,e){var n;this.imagesLoadedCb=e;var i=t.length;for(n=0;n<i;n+=1)t[n].layers||(t[n].t&&"seq"!==t[n].t?3===t[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[n]))):(this.totalImages+=1,this.images.push(this._createImageData(t[n]))))}function h(t){this.path=t||""}function u(t){this.assetsPath=t||""}function p(t){for(var e=0,n=this.images.length;e<n;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null}function d(){this.imagesLoadedCb=null,this.images.length=0}function f(){return this.totalImages===this.loadedAssets}function m(){return this.totalFootages===this.loadedFootagesCount}function g(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function y(){this._imageLoaded=e.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return y.prototype={loadAssets:l,setAssetsPath:u,setPath:h,loadedImages:f,loadedFootages:m,destroy:d,getAsset:p,createImgData:o,createImageData:s,imageLoaded:e,footageLoaded:n,setCacheType:g},y}();function Y(){}Y.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var n=this._cbs[t],i=0;i<n.length;i+=1)n[i](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var n=0,i=this._cbs[t].length;n<i;)this._cbs[t][n]===e&&(this._cbs[t].splice(n,1),n-=1,i-=1),n+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var X=function(){function t(t){for(var e,n=t.split("\r\n"),i={},r=0,s=0;s<n.length;s+=1)2===(e=n[s].split(":")).length&&(i[e[0]]=e[1].trim(),r+=1);if(0===r)throw new Error;return i}return function(e){for(var n=[],i=0;i<e.length;i+=1){var r=e[i],s={time:r.tm,duration:r.dr};try{s.payload=JSON.parse(e[i].cm)}catch(o){try{s.payload=t(e[i].cm)}catch(a){s.payload={name:e[i].cm}}}n.push(s)}return n}}(),Z=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,n=this.compositions.length;e<n;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),tt={},et=function(t,e){tt[t]=e};function nt(t){return tt[t]}function it(t){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var rt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=F(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=V(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Z(),this.imagePreloader=new K,this.audioController=p(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new C("drawnFrame",0,0,0)};h([Y],rt),rt.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var n=nt(e);this.renderer=new n(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),J.loadAnimation(t.path,this.configAnimation,this.onSetupError))},rt.prototype.onSetupError=function(){this.trigger("data_failed")},rt.prototype.setupAnimation=function(t){J.completeAnimation(t,this.configAnimation)},rt.prototype.setData=function(t,e){e&&"object"!==it(e)&&(e=JSON.parse(e));var n={wrapper:t,animationData:e},i=t.attributes;n.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",n.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:"canvas";var r=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";"false"===r?n.loop=!1:"true"===r?n.loop=!0:""!==r&&(n.loop=parseInt(r,10));var s=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;n.autoplay="false"!==s,n.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"","false"===(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),this.setParams(n)},rt.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,n,i=this.animationData.layers,r=i.length,s=t.layers,o=s.length;for(n=0;n<o;n+=1)for(e=0;e<r;){if(i[e].id===s[n].id){i[e]=s[n];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(r=t.assets.length,e=0;e<r;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,J.completeAnimation(this.animationData,this.onSegmentComplete)},rt.prototype.onSegmentComplete=function(t){this.animationData=t;var e=B();e&&e.initExpressions(this),this.loadNextSegment()},rt.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,J.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},rt.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},rt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},rt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},rt.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=X(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},rt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},rt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=B();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},rt.prototype.resize=function(t,e){var n="number"==typeof t?t:void 0,i="number"==typeof e?e:void 0;this.renderer.updateContainerSize(n,i)},rt.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},rt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},rt.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},rt.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},rt.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},rt.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},rt.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},rt.prototype.getMarkerData=function(t){for(var e,n=0;n<this.markers.length;n+=1)if((e=this.markers[n]).payload&&e.payload.name===t)return e;return null},rt.prototype.goToAndStop=function(t,e,n){if(!n||this.name===n){var i=Number(t);if(isNaN(i)){var r=this.getMarkerData(t);r&&this.goToAndStop(r.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},rt.prototype.goToAndPlay=function(t,e,n){if(!n||this.name===n){var i=Number(t);if(isNaN(i)){var r=this.getMarkerData(t);r&&(r.duration?this.playSegments([r.time,r.time+r.duration],!0):this.goToAndStop(r.time,!0))}else this.goToAndStop(i,e,n);this.play()}},rt.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,n=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(n=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),n&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},rt.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},rt.prototype.setSegment=function(t,e){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?n=t:this.currentRawFrame+this.firstFrame>e&&(n=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},rt.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===it(t[0])){var n,i=t.length;for(n=0;n<i;n+=1)this.segments.push(t[n])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},rt.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},rt.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},rt.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},rt.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},rt.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},rt.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},rt.prototype.setLoop=function(t){this.loop=t},rt.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},rt.prototype.getVolume=function(){return this.audioController.getVolume()},rt.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},rt.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},rt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},rt.prototype.getPath=function(){return this.path},rt.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),e=this.assetsPath+n}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},rt.prototype.getAssetData=function(t){for(var e=0,n=this.assets.length;e<n;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},rt.prototype.hide=function(){this.renderer.hide()},rt.prototype.show=function(){this.renderer.show()},rt.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},rt.prototype.updateDocumentData=function(t,e,n){try{this.renderer.getElementByPath(t).updateDocumentData(e,n)}catch(i){}},rt.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new C(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new P(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new A(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new T(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new E(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new C(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new P(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new A(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new T(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new E(t,this))},rt.prototype.triggerRenderFrameError=function(t){var e=new j(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},rt.prototype.triggerConfigError=function(t){var e=new D(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var st=function(){var t={},e=[],n=0,i=0,r=0,s=!0,o=!1;function a(t){for(var n=0,r=t.target;n<i;)e[n].animation===r&&(e.splice(n,1),n-=1,i-=1,r.isPaused||p()),n+=1}function l(t,n){if(!t)return null;for(var r=0;r<i;){if(e[r].elem===t&&null!==e[r].elem)return e[r].animation;r+=1}var s=new rt;return d(s,t),s.setData(t,n),s}function h(){var t,n=e.length,i=[];for(t=0;t<n;t+=1)i.push(e[t].animation);return i}function u(){r+=1,A()}function p(){r-=1}function d(t,n){t.addEventListener("destroy",a),t.addEventListener("_active",u),t.addEventListener("_idle",p),e.push({elem:n,animation:t}),i+=1}function f(t){var e=new rt;return d(e,null),e.setParams(t),e}function m(t,n){var r;for(r=0;r<i;r+=1)e[r].animation.setSpeed(t,n)}function g(t,n){var r;for(r=0;r<i;r+=1)e[r].animation.setDirection(t,n)}function y(t){var n;for(n=0;n<i;n+=1)e[n].animation.play(t)}function v(t){var a,l=t-n;for(a=0;a<i;a+=1)e[a].animation.advanceTime(l);n=t,r&&!o?window.requestAnimationFrame(v):s=!0}function b(t){n=t,window.requestAnimationFrame(v)}function x(t){var n;for(n=0;n<i;n+=1)e[n].animation.pause(t)}function w(t,n,r){var s;for(s=0;s<i;s+=1)e[s].animation.goToAndStop(t,n,r)}function k(t){var n;for(n=0;n<i;n+=1)e[n].animation.stop(t)}function _(t){var n;for(n=0;n<i;n+=1)e[n].animation.togglePause(t)}function S(t){var n;for(n=i-1;n>=0;n-=1)e[n].animation.destroy(t)}function $(t,e,n){var i,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=r.length;for(i=0;i<s;i+=1)n&&r[i].setAttribute("data-bm-type",n),l(r[i],t);if(e&&0===s){n||(n="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var a=c("div");a.style.width="100%",a.style.height="100%",a.setAttribute("data-bm-type",n),o.appendChild(a),l(a,t)}}function C(){var t;for(t=0;t<i;t+=1)e[t].animation.resize()}function A(){!o&&r&&s&&(window.requestAnimationFrame(b),s=!1)}function P(){o=!0}function T(){o=!1,A()}function E(t,n){var r;for(r=0;r<i;r+=1)e[r].animation.setVolume(t,n)}function j(t){var n;for(n=0;n<i;n+=1)e[n].animation.mute(t)}function D(t){var n;for(n=0;n<i;n+=1)e[n].animation.unmute(t)}return t.registerAnimation=l,t.loadAnimation=f,t.setSpeed=m,t.setDirection=g,t.play=y,t.pause=x,t.stop=k,t.togglePause=_,t.searchAnimations=$,t.resize=C,t.goToAndStop=w,t.destroy=S,t.freeze=P,t.unfreeze=T,t.setVolume=E,t.mute=j,t.unmute=D,t.getRegisteredAnimations=h,t}(),ot=function(){var t={};t.getBezierEasing=n;var e={};function n(t,n,i,r,s){var o=s||("bez_"+t+"_"+n+"_"+i+"_"+r).replace(/\./g,"p");if(e[o])return e[o];var a=new y([t,n,i,r]);return e[o]=a,a}var i=4,r=.001,s=1e-7,o=10,a=11,l=1/(a-1),c="function"==typeof Float32Array;function h(t,e){return 1-3*e+3*t}function u(t,e){return 3*e-6*t}function p(t){return 3*t}function d(t,e,n){return((h(e,n)*t+u(e,n))*t+p(e))*t}function f(t,e,n){return 3*h(e,n)*t*t+2*u(e,n)*t+p(e)}function m(t,e,n,i,r){var a,l,c=0;do{(a=d(l=e+(n-e)/2,i,r)-t)>0?n=l:e=l}while(Math.abs(a)>s&&++c<o);return l}function g(t,e,n,r){for(var s=0;s<i;++s){var o=f(e,n,r);if(0===o)return e;e-=(d(e,n,r)-t)/o}return e}function y(t){this._p=t,this._mSampleValues=c?new Float32Array(a):new Array(a),this._precomputed=!1,this.get=this.get.bind(this)}return y.prototype={get:function(t){var e=this._p[0],n=this._p[1],i=this._p[2],r=this._p[3];return this._precomputed||this._precompute(),e===n&&i===r?t:0===t?0:1===t?1:d(this._getTForX(t),n,r)},_precompute:function(){var t=this._p[0],e=this._p[1],n=this._p[2],i=this._p[3];this._precomputed=!0,t===e&&n===i||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<a;++n)this._mSampleValues[n]=d(n*l,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],i=this._mSampleValues,s=0,o=1,c=a-1;o!==c&&i[o]<=t;++o)s+=l;var h=s+(t-i[--o])/(i[o+1]-i[o])*l,u=f(h,e,n);return u>=r?g(t,h,e,n):0===u?h:m(t,s,s+l,e,n)}},t}(),at=function(){function t(t){return t.concat(f(t.length))}return{double:t}}(),lt=function(t,e,n){var i=0,r=t,s=f(r);function o(){return i?s[i-=1]:e()}function a(t){i===r&&(s=at.double(s),r*=2),n&&n(t),s[i]=t,i+=1}return{newElement:o,release:a}},ct=function(){function t(){return{addedLength:0,percents:d("float32",U()),lengths:d("float32",U())}}return lt(8,t)}(),ht=function(){function t(){return{lengths:[],totalLength:0}}function e(t){var e,n=t.lengths.length;for(e=0;e<n;e+=1)ct.release(t.lengths[e]);t.lengths.length=0}return lt(8,t,e)}();function ut(){var t=Math;function e(t,e,n,i,r,s){var o=t*i+e*r+n*s-r*i-s*t-n*e;return o>-.001&&o<.001}function n(n,i,r,s,o,a,l,c,h){if(0===r&&0===a&&0===h)return e(n,i,s,o,l,c);var u,p=t.sqrt(t.pow(s-n,2)+t.pow(o-i,2)+t.pow(a-r,2)),d=t.sqrt(t.pow(l-n,2)+t.pow(c-i,2)+t.pow(h-r,2)),f=t.sqrt(t.pow(l-s,2)+t.pow(c-o,2)+t.pow(h-a,2));return(u=p>d?p>f?p-d-f:f-d-p:f>d?f-d-p:d-p-f)>-1e-4&&u<1e-4}var i=function(t,e,n,i){var r,s,o,a,l,c,h=U(),u=0,p=[],d=[],f=ct.newElement();for(o=n.length,r=0;r<h;r+=1){for(l=r/(h-1),c=0,s=0;s<o;s+=1)a=b(1-l,3)*t[s]+3*b(1-l,2)*l*n[s]+3*(1-l)*b(l,2)*i[s]+b(l,3)*e[s],p[s]=a,null!==d[s]&&(c+=b(p[s]-d[s],2)),d[s]=p[s];c&&(u+=c=x(c)),f.percents[r]=l,f.lengths[r]=u}return f.addedLength=u,f};function r(t){var e,n=ht.newElement(),r=t.c,s=t.v,o=t.o,a=t.i,l=t._length,c=n.lengths,h=0;for(e=0;e<l-1;e+=1)c[e]=i(s[e],s[e+1],o[e],a[e+1]),h+=c[e].addedLength;return r&&l&&(c[e]=i(s[e],s[0],o[e],a[0]),h+=c[e].addedLength),n.totalLength=h,n}function s(t){this.segmentLength=0,this.points=new Array(t)}function o(t,e){this.partialLength=t,this.point=e}var a,l=(a={},function(t,n,i,r){var l=(t[0]+"_"+t[1]+"_"+n[0]+"_"+n[1]+"_"+i[0]+"_"+i[1]+"_"+r[0]+"_"+r[1]).replace(/\./g,"p");if(!a[l]){var c,h,u,p,d,m,g,y=U(),v=0,w=null;2===t.length&&(t[0]!==n[0]||t[1]!==n[1])&&e(t[0],t[1],n[0],n[1],t[0]+i[0],t[1]+i[1])&&e(t[0],t[1],n[0],n[1],n[0]+r[0],n[1]+r[1])&&(y=2);var k=new s(y);for(u=i.length,c=0;c<y;c+=1){for(g=f(u),d=c/(y-1),m=0,h=0;h<u;h+=1)p=b(1-d,3)*t[h]+3*b(1-d,2)*d*(t[h]+i[h])+3*(1-d)*b(d,2)*(n[h]+r[h])+b(d,3)*n[h],g[h]=p,null!==w&&(m+=b(g[h]-w[h],2));v+=m=x(m),k.points[c]=new o(m,g),w=g}k.segmentLength=v,a[l]=k}return a[l]});function c(t,e){var n=e.percents,i=e.lengths,r=n.length,s=w((r-1)*t),o=t*e.addedLength,a=0;if(s===r-1||0===s||o===i[s])return n[s];for(var l=i[s]>o?-1:1,c=!0;c;)if(i[s]<=o&&i[s+1]>o?(a=(o-i[s])/(i[s+1]-i[s]),c=!1):s+=l,s<0||s>=r-1){if(s===r-1)return n[s];c=!1}return n[s]+(n[s+1]-n[s])*a}function h(e,n,i,r,s,o){var a=c(s,o),l=1-a;return[t.round(1e3*(l*l*l*e[0]+(a*l*l+l*a*l+l*l*a)*i[0]+(a*a*l+l*a*a+a*l*a)*r[0]+a*a*a*n[0]))/1e3,t.round(1e3*(l*l*l*e[1]+(a*l*l+l*a*l+l*l*a)*i[1]+(a*a*l+l*a*a+a*l*a)*r[1]+a*a*a*n[1]))/1e3]}var u=d("float32",8);function p(e,n,i,r,s,o,a){s<0?s=0:s>1&&(s=1);var l,h=c(s,a),p=c(o=o>1?1:o,a),d=e.length,f=1-h,m=1-p,g=f*f*f,y=h*f*f*3,v=h*h*f*3,b=h*h*h,x=f*f*m,w=h*f*m+f*h*m+f*f*p,k=h*h*m+f*h*p+h*f*p,_=h*h*p,S=f*m*m,$=h*m*m+f*p*m+f*m*p,C=h*p*m+f*p*p+h*m*p,A=h*p*p,P=m*m*m,T=p*m*m+m*p*m+m*m*p,E=p*p*m+m*p*p+p*m*p,j=p*p*p;for(l=0;l<d;l+=1)u[4*l]=t.round(1e3*(g*e[l]+y*i[l]+v*r[l]+b*n[l]))/1e3,u[4*l+1]=t.round(1e3*(x*e[l]+w*i[l]+k*r[l]+_*n[l]))/1e3,u[4*l+2]=t.round(1e3*(S*e[l]+$*i[l]+C*r[l]+A*n[l]))/1e3,u[4*l+3]=t.round(1e3*(P*e[l]+T*i[l]+E*r[l]+j*n[l]))/1e3;return u}return{getSegmentsLength:r,getNewSegment:p,getPointInSegment:h,buildBezierData:l,pointOnLine2D:e,pointOnLine3D:n}}var pt=ut(),dt=function(){var t=r,e=Math.abs;function n(t,e){var n,r=this.offsetTime;"multidimensional"===this.propType&&(n=d("float32",this.pv.length));for(var a,l,c,h,u,p,f,m,g,y=e.lastIndex,v=y,b=this.keyframes.length-1,x=!0;x;){if(a=this.keyframes[v],l=this.keyframes[v+1],v===b-1&&t>=l.t-r){a.h&&(a=l),y=0;break}if(l.t-r>t){y=v;break}v<b-1?v+=1:(y=0,x=!1)}c=this.keyframesMetadata[v]||{};var w,k=l.t-r,_=a.t-r;if(a.to){c.bezierData||(c.bezierData=pt.buildBezierData(a.s,l.s||a.e,a.to,a.ti));var S=c.bezierData;if(t>=k||t<_){var $=t>=k?S.points.length-1:0;for(u=S.points[$].point.length,h=0;h<u;h+=1)n[h]=S.points[$].point[h]}else{c.__fnct?g=c.__fnct:(g=ot.getBezierEasing(a.o.x,a.o.y,a.i.x,a.i.y,a.n).get,c.__fnct=g),p=g((t-_)/(k-_));var C,A=S.segmentLength*p,P=e.lastFrame<t&&e._lastKeyframeIndex===v?e._lastAddedLength:0;for(m=e.lastFrame<t&&e._lastKeyframeIndex===v?e._lastPoint:0,x=!0,f=S.points.length;x;){if(P+=S.points[m].partialLength,0===A||0===p||m===S.points.length-1){for(u=S.points[m].point.length,h=0;h<u;h+=1)n[h]=S.points[m].point[h];break}if(A>=P&&A<P+S.points[m+1].partialLength){for(C=(A-P)/S.points[m+1].partialLength,u=S.points[m].point.length,h=0;h<u;h+=1)n[h]=S.points[m].point[h]+(S.points[m+1].point[h]-S.points[m].point[h])*C;break}m<f-1?m+=1:x=!1}e._lastPoint=m,e._lastAddedLength=P-S.points[m].partialLength,e._lastKeyframeIndex=v}}else{var T,E,j,D,M;if(b=a.s.length,w=l.s||a.e,this.sh&&1!==a.h)t>=k?(n[0]=w[0],n[1]=w[1],n[2]=w[2]):t<=_?(n[0]=a.s[0],n[1]=a.s[1],n[2]=a.s[2]):s(n,i(o(a.s),o(w),(t-_)/(k-_)));else for(v=0;v<b;v+=1)1!==a.h&&(t>=k?p=1:t<_?p=0:(a.o.x.constructor===Array?(c.__fnct||(c.__fnct=[]),c.__fnct[v]?g=c.__fnct[v]:(T=void 0===a.o.x[v]?a.o.x[0]:a.o.x[v],E=void 0===a.o.y[v]?a.o.y[0]:a.o.y[v],j=void 0===a.i.x[v]?a.i.x[0]:a.i.x[v],D=void 0===a.i.y[v]?a.i.y[0]:a.i.y[v],g=ot.getBezierEasing(T,E,j,D).get,c.__fnct[v]=g)):c.__fnct?g=c.__fnct:(T=a.o.x,E=a.o.y,j=a.i.x,D=a.i.y,g=ot.getBezierEasing(T,E,j,D).get,a.keyframeMetadata=g),p=g((t-_)/(k-_)))),w=l.s||a.e,M=1===a.h?a.s[v]:a.s[v]+(w[v]-a.s[v])*p,"multidimensional"===this.propType?n[v]=M:n=M}return e.lastIndex=y,n}function i(t,e,n){var i,r,s,o,a,l=[],c=t[0],h=t[1],u=t[2],p=t[3],d=e[0],f=e[1],m=e[2],g=e[3];return(r=c*d+h*f+u*m+p*g)<0&&(r=-r,d=-d,f=-f,m=-m,g=-g),1-r>1e-6?(i=Math.acos(r),s=Math.sin(i),o=Math.sin((1-n)*i)/s,a=Math.sin(n*i)/s):(o=1-n,a=n),l[0]=o*c+a*d,l[1]=o*h+a*f,l[2]=o*u+a*m,l[3]=o*p+a*g,l}function s(t,e){var n=e[0],i=e[1],r=e[2],s=e[3],o=Math.atan2(2*i*s-2*n*r,1-2*i*i-2*r*r),a=Math.asin(2*n*i+2*r*s),l=Math.atan2(2*n*s-2*i*r,1-2*n*n-2*r*r);t[0]=o/S,t[1]=a/S,t[2]=l/S}function o(t){var e=t[0]*S,n=t[1]*S,i=t[2]*S,r=Math.cos(e/2),s=Math.cos(n/2),o=Math.cos(i/2),a=Math.sin(e/2),l=Math.sin(n/2),c=Math.sin(i/2);return[a*l*o+r*s*c,a*s*o+r*l*c,r*l*o-a*s*c,r*s*o-a*l*c]}function a(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=i&&e>=i||this._caching.lastFrame<n&&e<n))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function l(t){var n;if("unidimensional"===this.propType)n=t*this.mult,e(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var i=0,r=this.v.length;i<r;)n=t[i]*this.mult,e(this.v[i]-n)>1e-5&&(this.v[i]=n,this._mdf=!0),i+=1}function c(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)n=this.effectsSequence[t](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function h(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function u(t,e,n,i){this.propType="unidimensional",this.mult=n||1,this.data=e,this.v=n?e.k*n:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=c,this.setVValue=l,this.addEffect=h}function p(t,e,n,i){var r;this.propType="multidimensional",this.mult=n||1,this.data=e,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s=e.k.length;for(this.v=d("float32",s),this.pv=d("float32",s),this.vel=d("float32",s),r=0;r<s;r+=1)this.v[r]=e.k[r]*this.mult,this.pv[r]=e.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=c,this.setVValue=l,this.addEffect=h}function f(e,i,r,s){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=r||1,this.elem=e,this.container=s,this.comp=e.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=c,this.setVValue=l,this.interpolateValue=n,this.effectsSequence=[a.bind(this)],this.addEffect=h}function m(e,i,r,s){var o;this.propType="multidimensional";var u,p,f,m,g=i.k.length;for(o=0;o<g-1;o+=1)i.k[o].to&&i.k[o].s&&i.k[o+1]&&i.k[o+1].s&&(u=i.k[o].s,p=i.k[o+1].s,f=i.k[o].to,m=i.k[o].ti,(2===u.length&&(u[0]!==p[0]||u[1]!==p[1])&&pt.pointOnLine2D(u[0],u[1],p[0],p[1],u[0]+f[0],u[1]+f[1])&&pt.pointOnLine2D(u[0],u[1],p[0],p[1],p[0]+m[0],p[1]+m[1])||3===u.length&&(u[0]!==p[0]||u[1]!==p[1]||u[2]!==p[2])&&pt.pointOnLine3D(u[0],u[1],u[2],p[0],p[1],p[2],u[0]+f[0],u[1]+f[1],u[2]+f[2])&&pt.pointOnLine3D(u[0],u[1],u[2],p[0],p[1],p[2],p[0]+m[0],p[1]+m[1],p[2]+m[2]))&&(i.k[o].to=null,i.k[o].ti=null),u[0]===p[0]&&u[1]===p[1]&&0===f[0]&&0===f[1]&&0===m[0]&&0===m[1]&&(2===u.length||u[2]===p[2]&&0===f[2]&&0===m[2])&&(i.k[o].to=null,i.k[o].ti=null));this.effectsSequence=[a.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=s,this.comp=e.comp,this.getValue=c,this.setVValue=l,this.interpolateValue=n,this.frameId=-1;var y=i.k[0].s.length;for(this.v=d("float32",y),this.pv=d("float32",y),o=0;o<y;o+=1)this.v[o]=t,this.pv[o]=t;this._caching={lastFrame:t,lastIndex:0,value:d("float32",y)},this.addEffect=h}function g(t,e,n,i,r){var s;if(e.k.length)if("number"==typeof e.k[0])s=new p(t,e,i,r);else switch(n){case 0:s=new f(t,e,i,r);break;case 1:s=new m(t,e,i,r)}else s=new u(t,e,i,r);return s.effectsSequence.length&&r.addDynamicProperty(s),s}return{getProp:g}}();function ft(){}ft.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var mt=function(){function t(){return d("float32",2)}return lt(8,t)}();function gt(){this.c=!1,this._length=0,this._maxLength=8,this.v=f(this._maxLength),this.o=f(this._maxLength),this.i=f(this._maxLength)}gt.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var n=0;n<e;)this.v[n]=mt.newElement(),this.o[n]=mt.newElement(),this.i[n]=mt.newElement(),n+=1},gt.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},gt.prototype.doubleArrayLength=function(){this.v=this.v.concat(f(this._maxLength)),this.i=this.i.concat(f(this._maxLength)),this.o=this.o.concat(f(this._maxLength)),this._maxLength*=2},gt.prototype.setXYAt=function(t,e,n,i,r){var s;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}(!s[i]||s[i]&&!r)&&(s[i]=mt.newElement()),s[i][0]=t,s[i][1]=e},gt.prototype.setTripleAt=function(t,e,n,i,r,s,o,a){this.setXYAt(t,e,"v",o,a),this.setXYAt(n,i,"o",o,a),this.setXYAt(r,s,"i",o,a)},gt.prototype.reverse=function(){var t=new gt;t.setPathData(this.c,this._length);var e=this.v,n=this.o,i=this.i,r=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],n[0][0],n[0][1],0,!1),r=1);var s,o=this._length-1,a=this._length;for(s=r;s<a;s+=1)t.setTripleAt(e[o][0],e[o][1],i[o][0],i[o][1],n[o][0],n[o][1],s,!1),o-=1;return t},gt.prototype.length=function(){return this._length};var yt=function(){function t(){return new gt}function e(t){var e,n=t._length;for(e=0;e<n;e+=1)mt.release(t.v[e]),mt.release(t.i[e]),mt.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}function n(t){var e,n=i.newElement(),r=void 0===t._length?t.v.length:t._length;for(n.setLength(r),n.c=t.c,e=0;e<r;e+=1)n.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return n}var i=lt(4,t,e);return i.clone=n,i}();function vt(){this._length=0,this._maxLength=4,this.shapes=f(this._maxLength)}vt.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(f(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},vt.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)yt.release(this.shapes[t]);this._length=0};var bt=function(){var t={newShapeCollection:r,release:s},e=0,n=4,i=f(n);function r(){return e?i[e-=1]:new vt}function s(t){var r,s=t._length;for(r=0;r<s;r+=1)yt.release(t.shapes[r]);t._length=0,e===n&&(i=at.double(i),n*=2),i[e]=t,e+=1}return t}(),xt=function(){var t=-999999;function e(t,e,n){var i,r,s,o,a,l,c,h,u,p=n.lastIndex,d=this.keyframes;if(t<d[0].t-this.offsetTime)i=d[0].s[0],s=!0,p=0;else if(t>=d[d.length-1].t-this.offsetTime)i=d[d.length-1].s?d[d.length-1].s[0]:d[d.length-2].e[0],s=!0;else{for(var f,m,g,y=p,v=d.length-1,b=!0;b&&(f=d[y],!((m=d[y+1]).t-this.offsetTime>t));)y<v-1?y+=1:b=!1;if(g=this.keyframesMetadata[y]||{},p=y,!(s=1===f.h)){if(t>=m.t-this.offsetTime)h=1;else if(t<f.t-this.offsetTime)h=0;else{var x;g.__fnct?x=g.__fnct:(x=ot.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=x),h=x((t-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}r=m.s?m.s[0]:f.e[0]}i=f.s[0]}for(l=e._length,c=i.i[0].length,n.lastIndex=p,o=0;o<l;o+=1)for(a=0;a<c;a+=1)u=s?i.i[o][a]:i.i[o][a]+(r.i[o][a]-i.i[o][a])*h,e.i[o][a]=u,u=s?i.o[o][a]:i.o[o][a]+(r.o[o][a]-i.o[o][a])*h,e.o[o][a]=u,u=s?i.v[o][a]:i.v[o][a]+(r.v[o][a]-i.v[o][a])*h,e.v[o][a]=u}function n(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==t&&(r<n&&e<n||r>i&&e>i)||(this._caching.lastIndex=r<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function i(){this.paths=this.localShapeCollection}function r(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var n,i=t._length;for(n=0;n<i;n+=1)if(t.v[n][0]!==e.v[n][0]||t.v[n][1]!==e.v[n][1]||t.o[n][0]!==e.o[n][0]||t.o[n][1]!==e.o[n][1]||t.i[n][0]!==e.i[n][0]||t.i[n][1]!==e.i[n][1])return!1;return!0}function s(t){r(this.v,t)||(this.v=yt.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(e=0;e<n;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,n){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var r=3===n?e.pt.k:e.ks.k;this.v=yt.clone(r),this.pv=yt.clone(this.v),this.localShapeCollection=bt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function l(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function c(e,r,s){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===s?r.pt.k:r.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=yt.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=yt.clone(this.v),this.localShapeCollection=bt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=i,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[n.bind(this)]}a.prototype.interpolateShape=e,a.prototype.getValue=o,a.prototype.setVValue=s,a.prototype.addEffect=l,c.prototype.getValue=o,c.prototype.interpolateShape=e,c.prototype.setVValue=s,c.prototype.addEffect=l;var u=function(){var t=$;function e(t,e){this.v=yt.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=bt.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=dt.getProp(t,e.p,1,0,this),this.s=dt.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],n=this.p.v[1],i=this.s.v[0]/2,r=this.s.v[1]/2,s=3!==this.d,o=this.v;o.v[0][0]=e,o.v[0][1]=n-r,o.v[1][0]=s?e+i:e-i,o.v[1][1]=n,o.v[2][0]=e,o.v[2][1]=n+r,o.v[3][0]=s?e-i:e+i,o.v[3][1]=n,o.i[0][0]=s?e-i*t:e+i*t,o.i[0][1]=n-r,o.i[1][0]=s?e+i:e-i,o.i[1][1]=n-r*t,o.i[2][0]=s?e+i*t:e-i*t,o.i[2][1]=n+r,o.i[3][0]=s?e-i:e+i,o.i[3][1]=n+r*t,o.o[0][0]=s?e+i*t:e-i*t,o.o[0][1]=n-r,o.o[1][0]=s?e+i:e-i,o.o[1][1]=n+r*t,o.o[2][0]=s?e-i*t:e+i*t,o.o[2][1]=n+r,o.o[3][0]=s?e-i:e+i,o.o[3][1]=n-r*t}},h([ft],e),e}(),p=function(){function t(t,e){this.v=yt.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=dt.getProp(t,e.ir,0,0,this),this.is=dt.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=dt.getProp(t,e.pt,0,0,this),this.p=dt.getProp(t,e.p,1,0,this),this.r=dt.getProp(t,e.r,0,S,this),this.or=dt.getProp(t,e.or,0,0,this),this.os=dt.getProp(t,e.os,0,.01,this),this.localShapeCollection=bt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,n,i,r=2*Math.floor(this.pt.v),s=2*Math.PI/r,o=!0,a=this.or.v,l=this.ir.v,c=this.os.v,h=this.is.v,u=2*Math.PI*a/(2*r),p=2*Math.PI*l/(2*r),d=-Math.PI/2;d+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<r;t+=1){n=o?c:h,i=o?u:p;var m=(e=o?a:l)*Math.cos(d),g=e*Math.sin(d),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*i*n*f,g-v*i*n*f,m+y*i*n*f,g+v*i*n*f,t,!0),o=!o,d+=s*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),n=2*Math.PI/e,i=this.or.v,r=this.os.v,s=2*Math.PI*i/(4*e),o=.5*-Math.PI,a=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=i*Math.cos(o),c=i*Math.sin(o),h=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),u=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-h*s*r*a,c-u*s*r*a,l+h*s*r*a,c+u*s*r*a,t,!0),o+=n*a}this.paths.length=0,this.paths[0]=this.v}},h([ft],t),t}(),d=function(){function t(t,e){this.v=yt.newElement(),this.v.c=!0,this.localShapeCollection=bt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=dt.getProp(t,e.p,1,0,this),this.s=dt.getProp(t,e.s,1,0,this),this.r=dt.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],n=this.s.v[0]/2,i=this.s.v[1]/2,r=k(n,i,this.r.v),s=r*(1-$);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+n,e-i+r,t+n,e-i+r,t+n,e-i+s,0,!0),this.v.setTripleAt(t+n,e+i-r,t+n,e+i-s,t+n,e+i-r,1,!0),0!==r?(this.v.setTripleAt(t+n-r,e+i,t+n-r,e+i,t+n-s,e+i,2,!0),this.v.setTripleAt(t-n+r,e+i,t-n+s,e+i,t-n+r,e+i,3,!0),this.v.setTripleAt(t-n,e+i-r,t-n,e+i-r,t-n,e+i-s,4,!0),this.v.setTripleAt(t-n,e-i+r,t-n,e-i+s,t-n,e-i+r,5,!0),this.v.setTripleAt(t-n+r,e-i,t-n+r,e-i,t-n+s,e-i,6,!0),this.v.setTripleAt(t+n-r,e-i,t+n-s,e-i,t+n-r,e-i,7,!0)):(this.v.setTripleAt(t-n,e+i,t-n+s,e+i,t-n,e+i,2),this.v.setTripleAt(t-n,e-i,t-n,e-i+s,t-n,e-i,3))):(this.v.setTripleAt(t+n,e-i+r,t+n,e-i+s,t+n,e-i+r,0,!0),0!==r?(this.v.setTripleAt(t+n-r,e-i,t+n-r,e-i,t+n-s,e-i,1,!0),this.v.setTripleAt(t-n+r,e-i,t-n+s,e-i,t-n+r,e-i,2,!0),this.v.setTripleAt(t-n,e-i+r,t-n,e-i+r,t-n,e-i+s,3,!0),this.v.setTripleAt(t-n,e+i-r,t-n,e+i-s,t-n,e+i-r,4,!0),this.v.setTripleAt(t-n+r,e+i,t-n+r,e+i,t-n+s,e+i,5,!0),this.v.setTripleAt(t+n-r,e+i,t+n-s,e+i,t+n-r,e+i,6,!0),this.v.setTripleAt(t+n,e+i-r,t+n,e+i-r,t+n,e+i-s,7,!0)):(this.v.setTripleAt(t-n,e-i,t-n+s,e-i,t-n,e-i,1,!0),this.v.setTripleAt(t-n,e+i,t-n,e+i-s,t-n,e+i,2,!0),this.v.setTripleAt(t+n,e+i,t+n-s,e+i,t+n,e+i,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},h([ft],t),t}();function f(t,e,n){var i;return 3===n||4===n?i=(3===n?e.pt:e.ks).k.length?new c(t,e,n):new a(t,e,n):5===n?i=new d(t,e):6===n?i=new u(t,e):7===n&&(i=new p(t,e)),i.k&&t.addDynamicProperty(i),i}function m(){return a}function g(){return c}var y={};return y.getShapeProp=f,y.getConstructorFunction=m,y.getKeyframedConstructorFunction=g,y}(),wt=function(){var t=Math.cos,e=Math.sin,n=Math.tan,i=Math.round;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function s(n){if(0===n)return this;var i=t(n),r=e(n);return this._t(i,-r,0,0,r,i,0,0,0,0,1,0,0,0,0,1)}function o(n){if(0===n)return this;var i=t(n),r=e(n);return this._t(1,0,0,0,0,i,-r,0,0,r,i,0,0,0,0,1)}function a(n){if(0===n)return this;var i=t(n),r=e(n);return this._t(i,0,r,0,0,1,0,0,-r,0,i,0,0,0,0,1)}function l(n){if(0===n)return this;var i=t(n),r=e(n);return this._t(i,-r,0,0,r,i,0,0,0,0,1,0,0,0,0,1)}function c(t,e){return this._t(1,e,t,1,0,0)}function h(t,e){return this.shear(n(t),n(e))}function u(i,r){var s=t(r),o=e(r);return this._t(s,o,0,0,-o,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(i),1,0,0,0,0,1,0,0,0,0,1)._t(s,-o,0,0,o,s,0,0,0,0,1,0,0,0,0,1)}function p(t,e,n){return n||0===n||(n=1),1===t&&1===e&&1===n?this:this._t(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1)}function f(t,e,n,i,r,s,o,a,l,c,h,u,p,d,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=n,this.props[3]=i,this.props[4]=r,this.props[5]=s,this.props[6]=o,this.props[7]=a,this.props[8]=l,this.props[9]=c,this.props[10]=h,this.props[11]=u,this.props[12]=p,this.props[13]=d,this.props[14]=f,this.props[15]=m,this}function m(t,e,n){return n=n||0,0!==t||0!==e||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1):this}function g(t,e,n,i,r,s,o,a,l,c,h,u,p,d,f,m){var g=this.props;if(1===t&&0===e&&0===n&&0===i&&0===r&&1===s&&0===o&&0===a&&0===l&&0===c&&1===h&&0===u)return g[12]=g[12]*t+g[15]*p,g[13]=g[13]*s+g[15]*d,g[14]=g[14]*h+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],x=g[3],w=g[4],k=g[5],_=g[6],S=g[7],$=g[8],C=g[9],A=g[10],P=g[11],T=g[12],E=g[13],j=g[14],D=g[15];return g[0]=y*t+v*r+b*l+x*p,g[1]=y*e+v*s+b*c+x*d,g[2]=y*n+v*o+b*h+x*f,g[3]=y*i+v*a+b*u+x*m,g[4]=w*t+k*r+_*l+S*p,g[5]=w*e+k*s+_*c+S*d,g[6]=w*n+k*o+_*h+S*f,g[7]=w*i+k*a+_*u+S*m,g[8]=$*t+C*r+A*l+P*p,g[9]=$*e+C*s+A*c+P*d,g[10]=$*n+C*o+A*h+P*f,g[11]=$*i+C*a+A*u+P*m,g[12]=T*t+E*r+j*l+D*p,g[13]=T*e+E*s+j*c+D*d,g[14]=T*n+E*o+j*h+D*f,g[15]=T*i+E*a+j*u+D*m,this._identityCalculated=!1,this}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function b(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function x(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function w(t,e,n){return{x:t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}}function k(t,e,n){return t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12]}function _(t,e,n){return t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13]}function S(t,e,n){return t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}function $(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,n=-this.props[1]/t,i=-this.props[4]/t,r=this.props[0]/t,s=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,a=new wt;return a.props[0]=e,a.props[1]=n,a.props[4]=i,a.props[5]=r,a.props[12]=s,a.props[13]=o,a}function C(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function A(t){var e,n=t.length,i=[];for(e=0;e<n;e+=1)i[e]=C(t[e]);return i}function P(t,e,n){var i=d("float32",6);if(this.isIdentity())i[0]=t[0],i[1]=t[1],i[2]=e[0],i[3]=e[1],i[4]=n[0],i[5]=n[1];else{var r=this.props[0],s=this.props[1],o=this.props[4],a=this.props[5],l=this.props[12],c=this.props[13];i[0]=t[0]*r+t[1]*o+l,i[1]=t[0]*s+t[1]*a+c,i[2]=e[0]*r+e[1]*o+l,i[3]=e[0]*s+e[1]*a+c,i[4]=n[0]*r+n[1]*o+l,i[5]=n[0]*s+n[1]*a+c}return i}function T(t,e,n){return this.isIdentity()?[t,e,n]:[t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]]}function E(t,e){if(this.isIdentity())return t+","+e;var n=this.props;return Math.round(100*(t*n[0]+e*n[4]+n[12]))/100+","+Math.round(100*(t*n[1]+e*n[5]+n[13]))/100}function j(){for(var t=0,e=this.props,n="matrix3d(",r=1e4;t<16;)n+=i(e[t]*r)/r,n+=15===t?")":",",t+=1;return n}function D(t){var e=1e4;return t<1e-6&&t>0||t>-1e-6&&t<0?i(t*e)/e:t}function M(){var t=this.props;return"matrix("+D(t[0])+","+D(t[1])+","+D(t[4])+","+D(t[5])+","+D(t[12])+","+D(t[13])+")"}return function(){this.reset=r,this.rotate=s,this.rotateX=o,this.rotateY=a,this.rotateZ=l,this.skew=h,this.skewFromAxis=u,this.shear=c,this.scale=p,this.setTransform=f,this.translate=m,this.transform=g,this.applyToPoint=w,this.applyToX=k,this.applyToY=_,this.applyToZ=S,this.applyToPointArray=T,this.applyToTriplePoints=P,this.applyToPointStringified=E,this.toCSS=j,this.to2dCSS=M,this.clone=b,this.cloneFromProps=x,this.equals=v,this.inversePoints=A,this.inversePoint=C,this.getInverseMatrix=$,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=d("float32",16),this.reset()}}();function kt(t){return(kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var _t={};function St(t){a(t)}function $t(){st.searchAnimations()}function Ct(t){N(t)}function At(t){H(t)}function Pt(t){return st.loadAnimation(t)}function Tt(t){if("string"==typeof t)switch(t){case"high":W(200);break;default:case"medium":W(50);break;case"low":W(10)}else!isNaN(t)&&t>1&&W(t)}function Et(){return"undefined"!=typeof navigator}function jt(t,e){"expressions"===t&&q(e)}function Dt(t){switch(t){case"propertyFactory":return dt;case"shapePropertyFactory":return xt;case"matrix":return wt;default:return null}}function Mt(){"complete"===document.readyState&&(clearInterval(Ot),$t())}function Ft(t){for(var e=It.split("&"),n=0;n<e.length;n+=1){var i=e[n].split("=");if(decodeURIComponent(i[0])==t)return decodeURIComponent(i[1])}return null}_t.play=st.play,_t.pause=st.pause,_t.setLocationHref=St,_t.togglePause=st.togglePause,_t.setSpeed=st.setSpeed,_t.setDirection=st.setDirection,_t.stop=st.stop,_t.searchAnimations=$t,_t.registerAnimation=st.registerAnimation,_t.loadAnimation=Pt,_t.setSubframeRendering=Ct,_t.resize=st.resize,_t.goToAndStop=st.goToAndStop,_t.destroy=st.destroy,_t.setQuality=Tt,_t.inBrowser=Et,_t.installPlugin=jt,_t.freeze=st.freeze,_t.unfreeze=st.unfreeze,_t.setVolume=st.setVolume,_t.mute=st.mute,_t.unmute=st.unmute,_t.getRegisteredAnimations=st.getRegisteredAnimations,_t.useWebWorker=s,_t.setIDPrefix=At,_t.__getFactory=Dt,_t.version="5.10.2";var It="",Rt=document.getElementsByTagName("script"),Lt=Rt[Rt.length-1]||{src:""};It=Lt.src?Lt.src.replace(/^[^\?]+\??/,""):"",Ft("renderer");var Ot=setInterval(Mt,100);try{"object"!==kt(e)&&(window.bodymovin=_t)}catch(Rn){}var zt=function(){var t={},e={};function n(t,n){e[t]||(e[t]=n)}function i(t,n,i){return new e[t](n,i)}return t.registerModifier=n,t.getModifier=i,t}();function Nt(){}function Vt(){}function qt(){}Nt.prototype.initModifierProperties=function(){},Nt.prototype.addShapeToModifier=function(){},Nt.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:bt.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},Nt.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=r,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Nt.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},h([ft],Nt),h([Nt],Vt),Vt.prototype.initModifierProperties=function(t,e){this.s=dt.getProp(t,e.s,0,.01,this),this.e=dt.getProp(t,e.e,0,.01,this),this.o=dt.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Vt.prototype.addShapeToModifier=function(t){t.pathsData=[]},Vt.prototype.calculateShapeEdges=function(t,e,n,i,r){var s=[];e<=1?s.push({s:t,e:e}):t>=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var o,a,l=[],c=s.length;for(o=0;o<c;o+=1){var h,u;(a=s[o]).e*r<i||a.s*r>i+n||(h=a.s*r<=i?0:(a.s*r-i)/n,u=a.e*r>=i+n?1:(a.e*r-i)/n,l.push([h,u]))}return l.length||l.push([0,0]),l},Vt.prototype.releasePathsData=function(t){var e,n=t.length;for(e=0;e<n;e+=1)ht.release(t[e]);return t.length=0,t},Vt.prototype.processShapes=function(t){var e,n,i,r;if(this._mdf||t){var s=this.o.v%360/360;if(s<0&&(s+=1),(e=this.s.v>1?1+s:this.s.v<0?0+s:this.s.v+s)>(n=this.e.v>1?1+s:this.e.v<0?0+s:this.e.v+s)){var o=e;e=n,n=o}e=1e-4*Math.round(1e4*e),n=1e-4*Math.round(1e4*n),this.sValue=e,this.eValue=n}else e=this.sValue,n=this.eValue;var a,l,c,h,u,p=this.shapes.length,d=0;if(n===e)for(r=0;r<p;r+=1)this.shapes[r].localShapeCollection.releaseShapes(),this.shapes[r].shape._mdf=!0,this.shapes[r].shape.paths=this.shapes[r].localShapeCollection,this._mdf&&(this.shapes[r].pathsData.length=0);else if(1===n&&0===e||0===n&&1===e){if(this._mdf)for(r=0;r<p;r+=1)this.shapes[r].pathsData.length=0,this.shapes[r].shape._mdf=!0}else{var f,m,g=[];for(r=0;r<p;r+=1)if((f=this.shapes[r]).shape._mdf||this._mdf||t||2===this.m){if(l=(i=f.shape.paths)._length,u=0,!f.shape._mdf&&f.pathsData.length)u=f.totalShapeLength;else{for(c=this.releasePathsData(f.pathsData),a=0;a<l;a+=1)h=pt.getSegmentsLength(i.shapes[a]),c.push(h),u+=h.totalLength;f.totalShapeLength=u,f.pathsData=c}d+=u,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var y,v=e,b=n,x=0;for(r=p-1;r>=0;r-=1)if((f=this.shapes[r]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&p>1?(y=this.calculateShapeEdges(e,n,f.totalShapeLength,x,d),x+=f.totalShapeLength):y=[[v,b]],l=y.length,a=0;a<l;a+=1){v=y[a][0],b=y[a][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*v,e:f.totalShapeLength*b}):v>=1?g.push({s:f.totalShapeLength*(v-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*v,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var w=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var k=w.pop();this.addPaths(w,m),w=this.addShapes(f,g[1],k)}else this.addPaths(w,m),w=this.addShapes(f,g[1]);this.addPaths(w,m)}}f.shape.paths=m}}},Vt.prototype.addPaths=function(t,e){var n,i=t.length;for(n=0;n<i;n+=1)e.addShape(t[n])},Vt.prototype.addSegment=function(t,e,n,i,r,s,o){r.setXYAt(e[0],e[1],"o",s),r.setXYAt(n[0],n[1],"i",s+1),o&&r.setXYAt(t[0],t[1],"v",s),r.setXYAt(i[0],i[1],"v",s+1)},Vt.prototype.addSegmentFromArray=function(t,e,n,i){e.setXYAt(t[1],t[5],"o",n),e.setXYAt(t[2],t[6],"i",n+1),i&&e.setXYAt(t[0],t[4],"v",n),e.setXYAt(t[3],t[7],"v",n+1)},Vt.prototype.addShapes=function(t,e,n){var i,r,s,o,a,l,c,h,u=t.pathsData,p=t.shape.paths.shapes,d=t.shape.paths._length,f=0,m=[],g=!0;for(n?(a=n._length,h=n._length):(n=yt.newElement(),a=0,h=0),m.push(n),i=0;i<d;i+=1){for(l=u[i].lengths,n.c=p[i].c,s=p[i].c?l.length:l.length+1,r=1;r<s;r+=1)if(f+(o=l[r-1]).addedLength<e.s)f+=o.addedLength,n.c=!1;else{if(f>e.e){n.c=!1;break}e.s<=f&&e.e>=f+o.addedLength?(this.addSegment(p[i].v[r-1],p[i].o[r-1],p[i].i[r],p[i].v[r],n,a,g),g=!1):(c=pt.getNewSegment(p[i].v[r-1],p[i].v[r],p[i].o[r-1],p[i].i[r],(e.s-f)/o.addedLength,(e.e-f)/o.addedLength,l[r-1]),this.addSegmentFromArray(c,n,a,g),g=!1,n.c=!1),f+=o.addedLength,a+=1}if(p[i].c&&l.length){if(o=l[r-1],f<=e.e){var y=l[r-1].addedLength;e.s<=f&&e.e>=f+y?(this.addSegment(p[i].v[r-1],p[i].o[r-1],p[i].i[0],p[i].v[0],n,a,g),g=!1):(c=pt.getNewSegment(p[i].v[r-1],p[i].v[0],p[i].o[r-1],p[i].i[0],(e.s-f)/y,(e.e-f)/y,l[r-1]),this.addSegmentFromArray(c,n,a,g),g=!1,n.c=!1)}else n.c=!1;f+=o.addedLength,a+=1}if(n._length&&(n.setXYAt(n.v[h][0],n.v[h][1],"i",h),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),f>e.e)break;i<d-1&&(n=yt.newElement(),g=!0,m.push(n),a=0)}return m},h([Nt],qt),qt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=dt.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},qt.prototype.processPath=function(t,e){var n=e/100,i=[0,0],r=t._length,s=0;for(s=0;s<r;s+=1)i[0]+=t.v[s][0],i[1]+=t.v[s][1];i[0]/=r,i[1]/=r;var o,a,l,c,h,u,p=yt.newElement();for(p.c=t.c,s=0;s<r;s+=1)o=t.v[s][0]+(i[0]-t.v[s][0])*n,a=t.v[s][1]+(i[1]-t.v[s][1])*n,l=t.o[s][0]+(i[0]-t.o[s][0])*-n,c=t.o[s][1]+(i[1]-t.o[s][1])*-n,h=t.i[s][0]+(i[0]-t.i[s][0])*-n,u=t.i[s][1]+(i[1]-t.i[s][1])*-n,p.setTripleAt(o,a,l,c,h,u,s);return p},qt.prototype.processShapes=function(t){var e,n,i,r,s,o,a=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<a;n+=1){if(o=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,i=0;i<r;i+=1)o.addShape(this.processPath(e[i],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Bt=function(){var t=[0,0];function e(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var i,r;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(i=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),r=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(i=this.p.pv,r=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],r=[];var s=this.px,o=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(i[0]=s.getValueAtTime((s.keyframes[0].t+.01)/n,0),i[1]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),r[0]=s.getValueAtTime(s.keyframes[0].t/n,0),r[1]=o.getValueAtTime(o.keyframes[0].t/n,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(i[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/n,0),i[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),r[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/n,0),r[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0)):(i=[s.pv,o.pv],r[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/n,s.offsetTime),r[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime))}else i=r=t;this.v.rotate(-Math.atan2(i[1]-r[1],i[0]-r[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function i(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function r(){}function s(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}function o(t,e,n){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new wt,this.pre=new wt,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||t),e.p&&e.p.s?(this.px=dt.getProp(t,e.p.x,0,0,this),this.py=dt.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=dt.getProp(t,e.p.z,0,0,this))):this.p=dt.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=dt.getProp(t,e.rx,0,S,this),this.ry=dt.getProp(t,e.ry,0,S,this),this.rz=dt.getProp(t,e.rz,0,S,this),e.or.k[0].ti){var i,r=e.or.k.length;for(i=0;i<r;i+=1)e.or.k[i].to=null,e.or.k[i].ti=null}this.or=dt.getProp(t,e.or,1,S,this),this.or.sh=!0}else this.r=dt.getProp(t,e.r||{k:0},0,S,this);e.sk&&(this.sk=dt.getProp(t,e.sk,0,S,this),this.sa=dt.getProp(t,e.sa,0,S,this)),this.a=dt.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=dt.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=dt.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function a(t,e,n){return new o(t,e,n)}return o.prototype={applyToMatrix:e,getValue:n,precalculateMatrix:i,autoOrient:r},h([ft],o),o.prototype.addDynamicProperty=s,o.prototype._addDynamicProperty=ft.prototype.addDynamicProperty,{getTransformProperty:a}}();function Wt(){}function Ut(){}function Ht(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function Gt(t){return Math.abs(t)<=1e-5}function Qt(t,e,n){return t*(1-n)+e*n}function Jt(t,e,n){return[Qt(t[0],e[0],n),Qt(t[1],e[1],n)]}function Kt(t,e,n){if(0===t)return[];var i=e*e-4*t*n;if(i<0)return[];var r=-e/(2*t);if(0===i)return[r];var s=Math.sqrt(i)/(2*t);return[r-s,r+s]}function Yt(t,e,n,i){return[3*e-t-3*n+i,3*t-6*e+3*n,-3*t+3*e,t]}function Xt(t){return new Zt(t,t,t,t,!1)}function Zt(t,e,n,i,r){r&&ce(t,e)&&(e=Jt(t,i,1/3)),r&&ce(n,i)&&(n=Jt(t,i,2/3));var s=Yt(t[0],e[0],n[0],i[0]),o=Yt(t[1],e[1],n[1],i[1]);this.a=[s[0],o[0]],this.b=[s[1],o[1]],this.c=[s[2],o[2]],this.d=[s[3],o[3]],this.points=[t,e,n,i]}function te(t,e){var n=t.points[0][e],i=t.points[t.points.length-1][e];if(n>i){var r=i;i=n,n=r}for(var s=Kt(3*t.a[e],2*t.b[e],t.c[e]),o=0;o<s.length;o+=1)if(s[o]>0&&s[o]<1){var a=t.point(s[o])[e];a<n?n=a:a>i&&(i=a)}return{min:n,max:i}}function ee(t,e,n){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+n)/2,t1:e,t2:n}}function ne(t){var e=t.bez.split(.5);return[ee(e[0],t.t1,t.t),ee(e[1],t.t,t.t2)]}function ie(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function re(t,e,n,i,r,s){if(ie(t,e))if(n>=s||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i)r.push([t.t,e.t]);else{var o=ne(t),a=ne(e);re(o[0],a[0],n+1,i,r,s),re(o[0],a[1],n+1,i,r,s),re(o[1],a[0],n+1,i,r,s),re(o[1],a[1],n+1,i,r,s)}}function se(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function oe(t,e,n,i){var r=[t[0],t[1],1],s=[e[0],e[1],1],o=[n[0],n[1],1],a=[i[0],i[1],1],l=se(se(r,s),se(o,a));return Gt(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function ae(t,e,n){return[t[0]+Math.cos(e)*n,t[1]-Math.sin(e)*n]}function le(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function ce(t,e){return Ht(t[0],e[0])&&Ht(t[1],e[1])}function he(){}function ue(t,e,n,i,r,s,o){var a=n-Math.PI/2,l=n+Math.PI/2,c=e[0]+Math.cos(n)*i*r,h=e[1]-Math.sin(n)*i*r;t.setTripleAt(c,h,c+Math.cos(a)*s,h-Math.sin(a)*s,c+Math.cos(l)*o,h-Math.sin(l)*o,t.length())}function pe(t,e){var n=[e[0]-t[0],e[1]-t[1]],i=.5*-Math.PI;return[Math.cos(i)*n[0]-Math.sin(i)*n[1],Math.sin(i)*n[0]+Math.cos(i)*n[1]]}function de(t,e){var n=0===e?t.length()-1:e-1,i=(e+1)%t.length(),r=pe(t.v[n],t.v[i]);return Math.atan2(0,1)-Math.atan2(r[1],r[0])}function fe(t,e,n,i,r,s,o){var a=de(e,n),l=e.v[n%e._length],c=e.v[0===n?e._length-1:n-1],h=e.v[(n+1)%e._length],u=2===s?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,p=2===s?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0;ue(t,e.v[n%e._length],a,o,i,p/(2*(r+1)),u/(2*(r+1)))}function me(t,e,n,i,r,s){for(var o=0;o<i;o+=1){var a=(o+1)/(i+1),l=2===r?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,c=e.normalAngle(a);ue(t,e.point(a),c,s,n,l/(2*(i+1)),l/(2*(i+1))),s=-s}return s}function ge(t,e,n){var i=Math.atan2(e[0]-t[0],e[1]-t[1]);return[ae(t,i,n),ae(e,i,n)]}function ye(t,e){var n,i,r,s,o,a,l;n=(l=ge(t.points[0],t.points[1],e))[0],i=l[1],r=(l=ge(t.points[1],t.points[2],e))[0],s=l[1],o=(l=ge(t.points[2],t.points[3],e))[0],a=l[1];var c=oe(n,i,r,s);null===c&&(c=i);var h=oe(o,a,r,s);return null===h&&(h=o),new Zt(n,c,h,a)}function ve(t,e,n,i,r){var s=e.points[3],o=n.points[0];if(3===i)return s;if(ce(s,o))return s;if(2===i){var a=-e.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,c=oe(s,ae(s,a+Math.PI/2,100),o,ae(o,a+Math.PI/2,100)),h=c?le(c,s):le(s,o)/2,u=ae(s,a,2*h*$);return t.setXYAt(u[0],u[1],"o",t.length()-1),u=ae(o,l,2*h*$),t.setTripleAt(o[0],o[1],o[0],o[1],u[0],u[1],t.length()),o}var p=oe(ce(s,e.points[2])?e.points[0]:e.points[2],s,o,ce(o,n.points[1])?n.points[3]:n.points[1]);return p&&le(p,s)<r?(t.setTripleAt(p[0],p[1],p[0],p[1],p[0],p[1],t.length()),p):s}function be(t,e){var n=t.intersections(e);return n.length&&Ht(n[0][0],1)&&n.shift(),n.length?n[0]:null}function xe(t,e){var n=t.slice(),i=e.slice(),r=be(t[t.length-1],e[0]);return r&&(n[t.length-1]=t[t.length-1].split(r[0])[0],i[0]=e[0].split(r[1])[1]),t.length>1&&e.length>1&&(r=be(t[0],e[e.length-1]))?[[t[0].split(r[0])[0]],[e[e.length-1].split(r[1])[1]]]:[n,i]}function we(t){for(var e,n=1;n<t.length;n+=1)e=xe(t[n-1],t[n]),t[n-1]=e[0],t[n]=e[1];return t.length>1&&(e=xe(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function ke(t,e){var n,i,r,s,o=t.inflectionPoints();if(0===o.length)return[ye(t,e)];if(1===o.length||Ht(o[1],1))return n=(r=t.split(o[0]))[0],i=r[1],[ye(n,e),ye(i,e)];n=(r=t.split(o[0]))[0];var a=(o[1]-o[0])/(1-o[0]);return s=(r=r[1].split(a))[0],i=r[1],[ye(n,e),ye(s,e),ye(i,e)]}function _e(){}function Se(t){for(var e=t.fStyle?t.fStyle.split(" "):[],n="normal",i="normal",r=e.length,s=0;s<r;s+=1)switch(e[s].toLowerCase()){case"italic":i="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:i,weight:t.fWeight||n}}h([Nt],Wt),Wt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=dt.getProp(t,e.c,0,null,this),this.o=dt.getProp(t,e.o,0,null,this),this.tr=Bt.getTransformProperty(t,e.tr,this),this.so=dt.getProp(t,e.tr.so,0,.01,this),this.eo=dt.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new wt,this.rMatrix=new wt,this.sMatrix=new wt,this.tMatrix=new wt,this.matrix=new wt},Wt.prototype.applyTransforms=function(t,e,n,i,r,s){var o=s?-1:1,a=i.s.v[0]+(1-i.s.v[0])*(1-r),l=i.s.v[1]+(1-i.s.v[1])*(1-r);t.translate(i.p.v[0]*o*r,i.p.v[1]*o*r,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*o*r),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.scale(s?1/a:a,s?1/l:l),n.translate(i.a.v[0],i.a.v[1],i.a.v[2])},Wt.prototype.init=function(t,e,n,i){for(this.elem=t,this.arr=e,this.pos=n,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[n]);n>0;)n-=1,this._elements.unshift(e[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Wt.prototype.resetElements=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},Wt.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},Wt.prototype.changeGroupRender=function(t,e){var n,i=t.length;for(n=0;n<i;n+=1)t[n]._render=e,"gr"===t[n].ty&&this.changeGroupRender(t[n].it,e)},Wt.prototype.processShapes=function(t){var e,n,i,r,s,o=!1;if(this._mdf||t){var a,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(s=0,i=0;i<=this._groups.length-1;i+=1){if(a=s<l,this._groups[i]._render=a,this.changeGroupRender(this._groups[i].it,a),!a){var h=this.elemsData[i].it,u=h[h.length-1];0!==u.transform.op.v?(u.transform.op._mdf=!0,u.transform.op.v=0):u.transform.op._mdf=!1}s+=1}this._currentCopies=l;var p=this.o.v,d=p%1,f=p>0?Math.floor(p):Math.ceil(p),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,x=0;if(p>0){for(;x<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,d,!1),x+=d)}else if(p<0){for(;x>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-d,!0),x-=d)}for(i=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,s=this._currentCopies;s;){if(b=(n=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==x){for((0!==i&&1===r||i!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<b;v+=1)n[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)n[v]=this.matrix.props[v];x+=1,s-=1,i+=r}}else for(s=this._currentCopies,i=0,r=1;s;)n=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,s-=1,i+=r;return o},Wt.prototype.addShape=function(){},h([Nt],Ut),Ut.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=dt.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Ut.prototype.processPath=function(t,e){var n,i=yt.newElement();i.c=t.c;var r,s,o,a,l,c,h,u,p,d,f,m,g=t._length,y=0;for(n=0;n<g;n+=1)r=t.v[n],o=t.o[n],s=t.i[n],r[0]===o[0]&&r[1]===o[1]&&r[0]===s[0]&&r[1]===s[1]?0!==n&&n!==g-1||t.c?(a=0===n?t.v[g-1]:t.v[n-1],c=(l=Math.sqrt(Math.pow(r[0]-a[0],2)+Math.pow(r[1]-a[1],2)))?Math.min(l/2,e)/l:0,h=f=r[0]+(a[0]-r[0])*c,u=m=r[1]-(r[1]-a[1])*c,p=h-(h-r[0])*$,d=u-(u-r[1])*$,i.setTripleAt(h,u,p,d,f,m,y),y+=1,a=n===g-1?t.v[0]:t.v[n+1],c=(l=Math.sqrt(Math.pow(r[0]-a[0],2)+Math.pow(r[1]-a[1],2)))?Math.min(l/2,e)/l:0,h=p=r[0]+(a[0]-r[0])*c,u=d=r[1]+(a[1]-r[1])*c,f=h-(h-r[0])*$,m=u-(u-r[1])*$,i.setTripleAt(h,u,p,d,f,m,y),y+=1):(i.setTripleAt(r[0],r[1],o[0],o[1],s[0],s[1],y),y+=1):(i.setTripleAt(t.v[n][0],t.v[n][1],t.o[n][0],t.o[n][1],t.i[n][0],t.i[n][1],y),y+=1);return i},Ut.prototype.processShapes=function(t){var e,n,i,r,s,o,a=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<a;n+=1){if(o=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,i=0;i<r;i+=1)o.addShape(this.processPath(e[i],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},Zt.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},Zt.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},Zt.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},Zt.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},Zt.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Gt(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,n=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(n<0)return[];var i=Math.sqrt(n);return Gt(i)?i>0&&i<1?[e]:[]:[e-i,e+i].filter((function(t){return t>0&&t<1}))},Zt.prototype.split=function(t){if(t<=0)return[Xt(this.points[0]),this];if(t>=1)return[this,Xt(this.points[this.points.length-1])];var e=Jt(this.points[0],this.points[1],t),n=Jt(this.points[1],this.points[2],t),i=Jt(this.points[2],this.points[3],t),r=Jt(e,n,t),s=Jt(n,i,t),o=Jt(r,s,t);return[new Zt(this.points[0],e,r,o,!0),new Zt(o,s,i,this.points[3],!0)]},Zt.prototype.bounds=function(){return{x:te(this,0),y:te(this,1)}},Zt.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},Zt.prototype.intersections=function(t,e,n){void 0===e&&(e=2),void 0===n&&(n=7);var i=[];return re(ee(this,0,1),ee(t,0,1),0,e,i,n),i},Zt.shapeSegment=function(t,e){var n=(e+1)%t.length();return new Zt(t.v[e],t.o[e],t.i[n],t.v[n],!0)},Zt.shapeSegmentInverted=function(t,e){var n=(e+1)%t.length();return new Zt(t.v[n],t.i[n],t.o[e],t.v[e],!0)},h([Nt],he),he.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=dt.getProp(t,e.s,0,null,this),this.frequency=dt.getProp(t,e.r,0,null,this),this.pointsType=dt.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},he.prototype.processPath=function(t,e,n,i){var r=t._length,s=yt.newElement();if(s.c=t.c,t.c||(r-=1),0===r)return s;var o=-1,a=Zt.shapeSegment(t,0);fe(s,t,0,e,n,i,o);for(var l=0;l<r;l+=1)o=me(s,a,e,n,i,-o),a=l!==r-1||t.c?Zt.shapeSegment(t,(l+1)%r):null,fe(s,t,l+1,e,n,i,o);return s},he.prototype.processShapes=function(t){var e,n,i,r,s,o,a=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),h=this.pointsType.v;if(0!==l)for(n=0;n<a;n+=1){if(o=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,i=0;i<r;i+=1)o.addShape(this.processPath(e[i],l,c,h));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},h([Nt],_e),_e.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=dt.getProp(t,e.a,0,null,this),this.miterLimit=dt.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},_e.prototype.processPath=function(t,e,n,i){var r=yt.newElement();r.c=t.c;var s,o,a,l=t.length();t.c||(l-=1);var c=[];for(s=0;s<l;s+=1)a=Zt.shapeSegment(t,s),c.push(ke(a,e));if(!t.c)for(s=l-1;s>=0;s-=1)a=Zt.shapeSegmentInverted(t,s),c.push(ke(a,e));c=we(c);var h=null,u=null;for(s=0;s<c.length;s+=1){var p=c[s];for(u&&(h=ve(r,u,p[0],n,i)),u=p[p.length-1],o=0;o<p.length;o+=1)a=p[o],h&&ce(a.points[0],h)?r.setXYAt(a.points[1][0],a.points[1][1],"o",r.length()-1):r.setTripleAt(a.points[0][0],a.points[0][1],a.points[1][0],a.points[1][1],a.points[0][0],a.points[0][1],r.length()),r.setTripleAt(a.points[3][0],a.points[3][1],a.points[3][0],a.points[3][1],a.points[2][0],a.points[2][1],r.length()),h=a.points[3]}return c.length&&ve(r,u,c[0][0],n,i),r},_e.prototype.processShapes=function(t){var e,n,i,r,s,o,a=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,h=this.lineJoin;if(0!==l)for(n=0;n<a;n+=1){if(o=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,i=0;i<r;i+=1)o.addShape(this.processPath(e[i],l,h,c));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var $e=function(){var t=5e3,e={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],r=[65039,8205];function s(t){var e,n=t.split(","),i=n.length,r=[];for(e=0;e<i;e+=1)"sans-serif"!==n[e]&&"monospace"!==n[e]&&r.push(n[e]);return r.join(",")}function o(t,e){var n=c("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=e;var i=c("span");i.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(i),document.body.appendChild(n);var r=i.offsetWidth;return i.style.fontFamily=s(t)+", "+e,{node:i,w:r,parent:n}}function a(){var e,n,i,r=this.fonts.length,s=r;for(e=0;e<r;e+=1)this.fonts[e].loaded?s-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(n=this.fonts[e].monoCase.node,i=this.fonts[e].monoCase.w,n.offsetWidth!==i?(s-=1,this.fonts[e].loaded=!0):(n=this.fonts[e].sansCase.node,i=this.fonts[e].sansCase.w,n.offsetWidth!==i&&(s-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==s&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function l(t,e){var n,i=document.body&&e?"svg":"canvas",r=Se(t);if("svg"===i){var s=G("text");s.style.fontSize="100px",s.setAttribute("font-family",t.fFamily),s.setAttribute("font-style",r.style),s.setAttribute("font-weight",r.weight),s.textContent="1",t.fClass?(s.style.fontFamily="inherit",s.setAttribute("class",t.fClass)):s.style.fontFamily=t.fFamily,e.appendChild(s),n=s}else{var o=new OffscreenCanvas(500,500).getContext("2d");o.font=r.style+" "+r.weight+" 100px "+t.fFamily,n=o}function a(t){return"svg"===i?(n.textContent=t,n.getComputedTextLength()):n.measureText(t).width}return{measureText:a}}function h(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=l(t),t.cache={}})),void(this.fonts=t.list);var n,i=t.list,r=i.length,s=r;for(n=0;n<r;n+=1){var a,h,u=!0;if(i[n].loaded=!1,i[n].monoCase=o(i[n].fFamily,"monospace"),i[n].sansCase=o(i[n].fFamily,"sans-serif"),i[n].fPath){if("p"===i[n].fOrigin||3===i[n].origin){if((a=document.querySelectorAll('style[f-forigin="p"][f-family="'+i[n].fFamily+'"], style[f-origin="3"][f-family="'+i[n].fFamily+'"]')).length>0&&(u=!1),u){var p=c("style");p.setAttribute("f-forigin",i[n].fOrigin),p.setAttribute("f-origin",i[n].origin),p.setAttribute("f-family",i[n].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+i[n].fFamily+"; font-style: normal; src: url('"+i[n].fPath+"');}",e.appendChild(p)}}else if("g"===i[n].fOrigin||1===i[n].origin){for(a=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),h=0;h<a.length;h+=1)-1!==a[h].href.indexOf(i[n].fPath)&&(u=!1);if(u){var d=c("link");d.setAttribute("f-forigin",i[n].fOrigin),d.setAttribute("f-origin",i[n].origin),d.type="text/css",d.rel="stylesheet",d.href=i[n].fPath,document.body.appendChild(d)}}else if("t"===i[n].fOrigin||2===i[n].origin){for(a=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),h=0;h<a.length;h+=1)i[n].fPath===a[h].src&&(u=!1);if(u){var f=c("link");f.setAttribute("f-forigin",i[n].fOrigin),f.setAttribute("f-origin",i[n].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",i[n].fPath),e.appendChild(f)}}}else i[n].loaded=!0,s-=1;i[n].helper=l(i[n],e),i[n].cache={},this.fonts.push(i[n])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function u(t){if(t){var e;this.chars||(this.chars=[]);var n,i,r=t.length,s=this.chars.length;for(e=0;e<r;e+=1){for(n=0,i=!1;n<s;)this.chars[n].style===t[e].style&&this.chars[n].fFamily===t[e].fFamily&&this.chars[n].ch===t[e].ch&&(i=!0),n+=1;i||(this.chars.push(t[e]),s+=1)}}}function p(t,n,i){for(var r=0,s=this.chars.length;r<s;){if(this.chars[r].ch===t&&this.chars[r].style===n&&this.chars[r].fFamily===i)return this.chars[r];r+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0),e}function d(t,e,n){var i=this.getFontByName(e),r=t.charCodeAt(0);if(!i.cache[r+1]){var s=i.helper;if(" "===t){var o=s.measureText("|"+t+"|"),a=s.measureText("||");i.cache[r+1]=(o-a)/100}else i.cache[r+1]=s.measureText(t)/100}return i.cache[r+1]*n}function f(t){for(var e=0,n=this.fonts.length;e<n;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]}function m(t,e){var n=t.toString(16)+e.toString(16);return-1!==i.indexOf(n)}function g(t,e){return e?t===r[0]&&e===r[1]:t===r[1]}function y(t){return-1!==n.indexOf(t)}function v(){this.isLoaded=!0}var b=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};b.isModifier=m,b.isZeroWidthJoiner=g,b.isCombinedCharacter=y;var x={addChars:u,addFonts:h,getCharData:p,getFontByName:f,measureText:d,checkLoadedFonts:a,setIsLoaded:v};return b.prototype=x,b}();function Ce(){}Ce.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Ae,Pe=(Ae={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return Ae[t]||""});function Te(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function Ee(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function je(t,e,n){this.p=dt.getProp(e,t.v,1,0,n)}function De(t,e,n){this.p=dt.getProp(e,t.v,1,0,n)}function Me(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function Fe(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function Ie(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function Re(){this.p={}}function Le(t,e){var n,i=t.ef||[];this.effectElements=[];var r,s=i.length;for(n=0;n<s;n+=1)r=new Oe(i[n],e),this.effectElements.push(r)}function Oe(t,e){this.init(t,e)}function ze(){}function Ne(){}function Ve(t,e,n){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,n)}function qe(t,e,n){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,n),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?dt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=dt.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function Be(){}function We(){}function Ue(t,e,n){this.data=t,this.element=e,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,r,s=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=f(o),this.solidPath="";var a,c,h,u,p,d,m=this.masksProperties,g=0,y=[],v=F(),b="clipPath",x="clip-path";for(i=0;i<o;i+=1)if(("a"!==m[i].mode&&"n"!==m[i].mode||m[i].inv||100!==m[i].o.k||m[i].o.x)&&(b="mask",x="mask"),"s"!==m[i].mode&&"i"!==m[i].mode||0!==g?h=null:((h=G("rect")).setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),y.push(h)),r=G("path"),"n"===m[i].mode)this.viewData[i]={op:dt.getProp(this.element,m[i].o,0,.01,this.element),prop:xt.getShapeProp(this.element,m[i],3),elem:r,lastPath:""},s.appendChild(r);else{var w;if(g+=1,r.setAttribute("fill","s"===m[i].mode?"#000000":"#ffffff"),r.setAttribute("clip-rule","nonzero"),0!==m[i].x.k?(b="mask",x="mask",d=dt.getProp(this.element,m[i].x,0,null,this.element),w=F(),(u=G("filter")).setAttribute("id",w),(p=G("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),u.appendChild(p),s.appendChild(u),r.setAttribute("stroke","s"===m[i].mode?"#000000":"#ffffff")):(p=null,d=null),this.storedData[i]={elem:r,x:d,expan:p,lastPath:"",lastOperator:"",filterId:w,lastRadius:0},"i"===m[i].mode){c=y.length;var k=G("g");for(a=0;a<c;a+=1)k.appendChild(y[a]);var _=G("mask");_.setAttribute("mask-type","alpha"),_.setAttribute("id",v+"_"+g),_.appendChild(r),s.appendChild(_),k.setAttribute("mask","url("+l()+"#"+v+"_"+g+")"),y.length=0,y.push(k)}else y.push(r);m[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:r,lastPath:"",op:dt.getProp(this.element,m[i].o,0,.01,this.element),prop:xt.getShapeProp(this.element,m[i],3),invRect:h},this.viewData[i].prop.k||this.drawPath(m[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=G(b),o=y.length,i=0;i<o;i+=1)this.maskElement.appendChild(y[i]);g>0&&(this.maskElement.setAttribute("id",v),this.element.maskedElement.setAttribute(x,"url("+l()+"#"+v+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}h([ft],Oe),Oe.prototype.getValue=Oe.prototype.iterateDynamicProperties,Oe.prototype.init=function(t,e){var n;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,r=this.data.ef.length,s=this.data.ef;for(n=0;n<r;n+=1){switch(i=null,s[n].ty){case 0:i=new Te(s[n],e,this);break;case 1:i=new Ee(s[n],e,this);break;case 2:i=new je(s[n],e,this);break;case 3:i=new De(s[n],e,this);break;case 4:case 7:i=new Ie(s[n],e,this);break;case 10:i=new Me(s[n],e,this);break;case 11:i=new Fe(s[n],e,this);break;case 5:i=new Le(s[n],e);break;default:i=new Re(s[n])}i&&this.effectElements.push(i)}},ze.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){},setBlendMode:function(){var t=Pe(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,n){this.globalData=e,this.comp=n,this.data=t,this.layerId=F(),this.data.sr||(this.data.sr=1),this.effectsManager=new Le(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},Ne.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var n,i=this.dynamicProperties.length;for(n=0;n<i;n+=1)(e||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},Ve.prototype.prepareFrame=function(){},h([Ce,ze,Ne],Ve),Ve.prototype.getBaseElement=function(){return null},Ve.prototype.renderFrame=function(){},Ve.prototype.destroy=function(){},Ve.prototype.initExpressions=function(){},Ve.prototype.getFootageData=function(){return this.footageData},qe.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},h([Ce,ze,Ne],qe),qe.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},qe.prototype.show=function(){},qe.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},qe.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},qe.prototype.resume=function(){this._canPlay=!0},qe.prototype.setRate=function(t){this.audio.rate(t)},qe.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},qe.prototype.getBaseElement=function(){return null},qe.prototype.destroy=function(){},qe.prototype.sourceRectAtTime=function(){},qe.prototype.initExpressions=function(){},Be.prototype.checkLayers=function(t){var e,n,i=this.layers.length;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(n=this.layers[e]).ip-n.st<=t-this.layers[e].st&&n.op-n.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},Be.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},Be.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Be.prototype.createAudio=function(t){return new qe(t,this.globalData,this)},Be.prototype.createFootage=function(t){return new Ve(t,this.globalData,this)},Be.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},Be.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var n,i=t.length,r=this.layers.length;for(e=0;e<i;e+=1)for(n=0;n<r;){if(this.layers[n].id===t[e].id){this.layers[n]=t[e];break}n+=1}},Be.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},Be.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Be.prototype.buildElementParenting=function(t,e,n){for(var i=this.elements,r=this.layers,s=0,o=r.length;s<o;)r[s].ind==e&&(i[s]&&!0!==i[s]?(n.push(i[s]),i[s].setAsParent(),void 0!==r[s].parent?this.buildElementParenting(t,r[s].parent,n):t.setHierarchy(n)):(this.buildItem(s),this.addPendingElement(t))),s+=1},Be.prototype.addPendingElement=function(t){this.pendingElements.push(t)},Be.prototype.searchExtraCompositions=function(t){var e,n=t.length;for(e=0;e<n;e+=1)if(t[e].xt){var i=this.createComp(t[e]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},Be.prototype.getElementById=function(t){var e,n=this.elements.length;for(e=0;e<n;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},Be.prototype.getElementByPath=function(t){var e,n=t.shift();if("number"==typeof n)e=this.elements[n];else{var i,r=this.elements.length;for(i=0;i<r;i+=1)if(this.elements[i].data.nm===n){e=this.elements[i];break}}return 0===t.length?e:e.getElementByPath(t)},Be.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new $e,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},We.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Bt.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new wt},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,n=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<i;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),n=0;n<i;n+=1)t=this.hierarchy[n].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var n,i=!0,r=this.comp;i;)r.finalTransform?(r.data.hasMask&&e.splice(0,0,r.finalTransform),r=r.comp):i=!1;var s,o=e.length;for(n=0;n<o;n+=1)s=e[n].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[1],0];return t},mHelper:new wt},Ue.prototype.getMaskProperty=function(t){return this.viewData[t].prop},Ue.prototype.renderFrame=function(t){var e,n=this.element.finalTransform.mat,i=this.masksProperties.length;for(e=0;e<i;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var r=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+l()+"#"+this.storedData[e].filterId+")")),r.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},Ue.prototype.getMaskelement=function(){return this.maskElement},Ue.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},Ue.prototype.drawPath=function(t,e,n){var i,r,s=" M"+e.v[0][0]+","+e.v[0][1];for(r=e._length,i=1;i<r;i+=1)s+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[i][0]+","+e.i[i][1]+" "+e.v[i][0]+","+e.v[i][1];if(e.c&&r>1&&(s+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),n.lastPath!==s){var o="";n.elem&&(e.c&&(o=t.inv?this.solidPath+s:s),n.elem.setAttribute("d",o)),n.lastPath=s}},Ue.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var He,Ge,Qe=function(){var t={};function e(t,e){var n=G("filter");return n.setAttribute("id",t),!0!==e&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n}function n(){var t=G("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}return t.createFilter=e,t.createAlphaToLuminanceFilter=n,t}(),Je=(He={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(He.maskType=!1),/firefox/i.test(navigator.userAgent)&&(He.svgLumaHidden=!1),He),Ke={},Ye="filter_result_";function Xe(t){var e,n,i="SourceGraphic",r=t.data.ef?t.data.ef.length:0,s=F(),o=Qe.createFilter(s,!0),a=0;for(this.filters=[],e=0;e<r;e+=1){n=null;var c=t.data.ef[e].ty;Ke[c]&&(n=new(0,Ke[c].effect)(o,t.effectsManager.effectElements[e],t,Ye+a,i),i=Ye+a,Ke[c].countsAsEffect&&(a+=1)),n&&this.filters.push(n)}a&&(t.globalData.defs.appendChild(o),t.layerElement.setAttribute("filter","url("+l()+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function Ze(){}function tn(){}function en(){}function nn(t,e,n){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function rn(t,e){this.elem=t,this.pos=e}function sn(){}Xe.prototype.renderFrame=function(t){var e,n=this.filters.length;for(e=0;e<n;e+=1)this.filters[e].renderFrame(t)},Ze.prototype={initRendererElement:function(){this.layerElement=G("g")},createContainerElements:function(){this.matteElement=G("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=G("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var n=G("clipPath"),i=G("path");i.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var r=F();if(n.setAttribute("id",r),n.appendChild(i),this.globalData.defs.appendChild(n),this.checkMasks()){var s=G("g");s.setAttribute("clip-path","url("+l()+"#"+r+")"),s.appendChild(this.layerElement),this.transformedElement=s,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+l()+"#"+r+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Ue(this.data,this,this.globalData),this.renderableEffectsManager=new Xe(this)},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,n,i,r,s=this.layerId+"_"+t;if(1===t||3===t){var o=G("mask");o.setAttribute("id",s),o.setAttribute("mask-type",3===t?"luminance":"alpha"),(i=G("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(i),this.globalData.defs.appendChild(o),Je.maskType||1!==t||(o.setAttribute("mask-type","luminance"),e=F(),n=Qe.createFilter(e),this.globalData.defs.appendChild(n),n.appendChild(Qe.createAlphaToLuminanceFilter()),(r=G("g")).appendChild(i),o.appendChild(r),r.setAttribute("filter","url("+l()+"#"+e+")"))}else if(2===t){var a=G("mask");a.setAttribute("id",s),a.setAttribute("mask-type","alpha");var c=G("g");a.appendChild(c),e=F(),n=Qe.createFilter(e);var h=G("feComponentTransfer");h.setAttribute("in","SourceGraphic"),n.appendChild(h);var u=G("feFuncA");u.setAttribute("type","table"),u.setAttribute("tableValues","1.0 0.0"),h.appendChild(u),this.globalData.defs.appendChild(n);var p=G("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),c.setAttribute("filter","url("+l()+"#"+e+")"),c.appendChild(p),(i=G("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(i),Je.maskType||(a.setAttribute("mask-type","luminance"),n.appendChild(Qe.createAlphaToLuminanceFilter()),r=G("g"),c.appendChild(p),r.appendChild(this.layerElement),c.appendChild(r)),this.globalData.defs.appendChild(a)}this.matteMasks[t]=s}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+l()+"#"+t+")")}},tn.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},Ge={initElement:function(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}},h([Ce,u(Ge)],en),h([ze,We,Ze,tn,Ne,en],nn),nn.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=G("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},nn.prototype.sourceRectAtTime=function(){return this.sourceRect},sn.prototype={addShapeToModifiers:function(t){var e,n=this.shapeModifiers.length;for(e=0;e<n;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=0,n=this.shapeModifiers.length;e<n;)if(this.shapeModifiers[e].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,n=0,i=e.length;n<i;){if(e[n].elem===t)return e[n].pos;n+=1}return 0},addProcessedElement:function(t,e){for(var n=this.processedElements,i=n.length;i;)if(n[i-=1].elem===t)return void(n[i].pos=e);n.push(new rn(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var on={1:"butt",2:"round",3:"square"},an={1:"miter",2:"round",3:"bevel"};function ln(t,e,n){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=n,this.lvl=e,this._isAnimated=!!n.k;for(var i=0,r=t.length;i<r;){if(t[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function cn(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=G("path"),this.msElem=null}function hn(t,e,n,i){var r;this.elem=t,this.frameId=-1,this.dataProps=f(e.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=d("float32",e.length?e.length-1:0),this.dashoffset=d("float32",1),this.initDynamicPropertyContainer(i);var s,o=e.length||0;for(r=0;r<o;r+=1)s=dt.getProp(t,e[r].v,0,0,this),this.k=s.k||this.k,this.dataProps[r]={n:e[r].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function un(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=dt.getProp(t,e.o,0,.01,this),this.w=dt.getProp(t,e.w,0,null,this),this.d=new hn(t,e.d||{},"svg",this),this.c=dt.getProp(t,e.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function pn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=dt.getProp(t,e.o,0,.01,this),this.c=dt.getProp(t,e.c,1,255,this),this.style=n}function dn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=n}function fn(t,e,n){this.data=e,this.c=d("uint8c",4*e.p);var i=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=d("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(n),this.prop=dt.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function mn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,n)}function gn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=dt.getProp(t,e.w,0,null,this),this.d=new hn(t,e.d||{},"svg",this),this.initGradientData(t,e,n),this._isAnimated=!!this._isAnimated}function yn(){this.it=[],this.prevViewData=[],this.gr=G("g")}function vn(t,e,n){this.transform={mProps:t,op:e,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}ln.prototype.setAsAnimated=function(){this._isAnimated=!0},cn.prototype.reset=function(){this.d="",this._mdf=!1},hn.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<n;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},h([ft],hn),h([ft],un),h([ft],pn),h([ft],dn),fn.prototype.comparePoints=function(t,e){for(var n=0,i=this.o.length/2;n<i;){if(Math.abs(t[4*n]-t[4*e+2*n])>.01)return!1;n+=1}return!0},fn.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},fn.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,n,i,r=4*this.data.p;for(e=0;e<r;e+=1)n=e%4==0?100:255,i=Math.round(this.prop.v[e]*n),this.c[e]!==i&&(this.c[e]=i,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,e=4*this.data.p;e<r;e+=1)n=e%2==0?100:1,i=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==i&&(this.o[e-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},h([ft],fn),mn.prototype.initGradientData=function(t,e,n){this.o=dt.getProp(t,e.o,0,.01,this),this.s=dt.getProp(t,e.s,1,null,this),this.e=dt.getProp(t,e.e,1,null,this),this.h=dt.getProp(t,e.h||{k:0},0,.01,this),this.a=dt.getProp(t,e.a||{k:0},0,S,this),this.g=new fn(t,e.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,e),this.setGradientOpacity(e,n),this._isAnimated=!!this._isAnimated},mn.prototype.setGradientData=function(t,e){var n=F(),i=G(1===e.t?"linearGradient":"radialGradient");i.setAttribute("id",n),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var r,s,o,a=[];for(o=4*e.g.p,s=0;s<o;s+=4)r=G("stop"),i.appendChild(r),a.push(r);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+l()+"#"+n+")"),this.gf=i,this.cst=a},mn.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var n,i,r,s=G("mask"),o=G("path");s.appendChild(o);var a=F(),c=F();s.setAttribute("id",c);var h=G(1===t.t?"linearGradient":"radialGradient");h.setAttribute("id",a),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),r=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var u=this.stops;for(i=4*t.g.p;i<r;i+=2)(n=G("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(n),u.push(n);o.setAttribute("gf"===t.ty?"fill":"stroke","url("+l()+"#"+a+")"),"gs"===t.ty&&(o.setAttribute("stroke-linecap",on[t.lc||2]),o.setAttribute("stroke-linejoin",an[t.lj||2]),1===t.lj&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=h,this.ms=s,this.ost=u,this.maskId=c,e.msElem=o}},h([ft],mn),h([mn,ft],gn);var bn=function(t,e,n,i){if(0===e)return"";var r,s=t.o,o=t.i,a=t.v,l=" M"+i.applyToPointStringified(a[0][0],a[0][1]);for(r=1;r<e;r+=1)l+=" C"+i.applyToPointStringified(s[r-1][0],s[r-1][1])+" "+i.applyToPointStringified(o[r][0],o[r][1])+" "+i.applyToPointStringified(a[r][0],a[r][1]);return n&&e&&(l+=" C"+i.applyToPointStringified(s[r-1][0],s[r-1][1])+" "+i.applyToPointStringified(o[0][0],o[0][1])+" "+i.applyToPointStringified(a[0][0],a[0][1]),l+="z"),l},xn=function(){var t=new wt,e=new wt;function n(t){switch(t.ty){case"fl":return o;case"gf":return l;case"gs":return a;case"st":return c;case"sh":case"el":case"rc":case"sr":return s;case"tr":return i;case"no":return r;default:return null}}function i(t,e,n){(n||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(n||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function r(){}function s(n,i,r){var s,o,a,l,c,h,u,p,d,f,m,g=i.styles.length,y=i.lvl;for(h=0;h<g;h+=1){if(l=i.sh._mdf||r,i.styles[h].lvl<y){for(p=e.reset(),f=y-i.styles[h].lvl,m=i.transformers.length-1;!l&&f>0;)l=i.transformers[m].mProps._mdf||l,f-=1,m-=1;if(l)for(f=y-i.styles[h].lvl,m=i.transformers.length-1;f>0;)d=i.transformers[m].mProps.v.props,p.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),f-=1,m-=1}else p=t;if(o=(u=i.sh.paths)._length,l){for(a="",s=0;s<o;s+=1)(c=u.shapes[s])&&c._length&&(a+=bn(c,c._length,c.c,p));i.caches[h]=a}else a=i.caches[h];i.styles[h].d+=!0===n.hd?"":a,i.styles[h]._mdf=l||i.styles[h]._mdf}}function o(t,e,n){var i=e.style;(e.c._mdf||n)&&i.pElem.setAttribute("fill","rgb("+w(e.c.v[0])+","+w(e.c.v[1])+","+w(e.c.v[2])+")"),(e.o._mdf||n)&&i.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,n){l(t,e,n),c(t,e,n)}function l(t,e,n){var i,r,s,o,a,l=e.gf,c=e.g._hasOpacity,h=e.s.v,u=e.e.v;if(e.o._mdf||n){var p="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(p,e.o.v)}if(e.s._mdf||n){var d=1===t.t?"x1":"cx",f="x1"===d?"y1":"cy";l.setAttribute(d,h[0]),l.setAttribute(f,h[1]),c&&!e.g._collapsable&&(e.of.setAttribute(d,h[0]),e.of.setAttribute(f,h[1]))}if(e.g._cmdf||n){i=e.cst;var m=e.g.c;for(s=i.length,r=0;r<s;r+=1)(o=i[r]).setAttribute("offset",m[4*r]+"%"),o.setAttribute("stop-color","rgb("+m[4*r+1]+","+m[4*r+2]+","+m[4*r+3]+")")}if(c&&(e.g._omdf||n)){var g=e.g.o;for(s=(i=e.g._collapsable?e.cst:e.ost).length,r=0;r<s;r+=1)o=i[r],e.g._collapsable||o.setAttribute("offset",g[2*r]+"%"),o.setAttribute("stop-opacity",g[2*r+1])}if(1===t.t)(e.e._mdf||n)&&(l.setAttribute("x2",u[0]),l.setAttribute("y2",u[1]),c&&!e.g._collapsable&&(e.of.setAttribute("x2",u[0]),e.of.setAttribute("y2",u[1])));else if((e.s._mdf||e.e._mdf||n)&&(a=Math.sqrt(Math.pow(h[0]-u[0],2)+Math.pow(h[1]-u[1],2)),l.setAttribute("r",a),c&&!e.g._collapsable&&e.of.setAttribute("r",a)),e.e._mdf||e.h._mdf||e.a._mdf||n){a||(a=Math.sqrt(Math.pow(h[0]-u[0],2)+Math.pow(h[1]-u[1],2)));var y=Math.atan2(u[1]-h[1],u[0]-h[0]),v=e.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=a*v,x=Math.cos(y+e.a.v)*b+h[0],w=Math.sin(y+e.a.v)*b+h[1];l.setAttribute("fx",x),l.setAttribute("fy",w),c&&!e.g._collapsable&&(e.of.setAttribute("fx",x),e.of.setAttribute("fy",w))}}function c(t,e,n){var i=e.style,r=e.d;r&&(r._mdf||n)&&r.dashStr&&(i.pElem.setAttribute("stroke-dasharray",r.dashStr),i.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),e.c&&(e.c._mdf||n)&&i.pElem.setAttribute("stroke","rgb("+w(e.c.v[0])+","+w(e.c.v[1])+","+w(e.c.v[2])+")"),(e.o._mdf||n)&&i.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||n)&&(i.pElem.setAttribute("stroke-width",e.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:n}}();function wn(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,n),this.prevViewData=[]}function kn(t,e,n,i,r,s){this.o=t,this.sw=e,this.sc=n,this.fc=i,this.m=r,this.p=s,this._mdf={o:!0,sw:!!e,sc:!!n,fc:!!i,m:!0,p:!0}}function _n(t,e){this._frameId=r,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}h([ze,We,Ze,sn,tn,Ne,en],wn),wn.prototype.initSecondaryElement=function(){},wn.prototype.identityMatrix=new wt,wn.prototype.buildExpressionInterface=function(){},wn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},wn.prototype.filterUniqueShapes=function(){var t,e,n,i,r=this.shapes.length,s=this.stylesList.length,o=[],a=!1;for(n=0;n<s;n+=1){for(i=this.stylesList[n],a=!1,o.length=0,t=0;t<r;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(i)&&(o.push(e),a=e._isAnimated||a);o.length>1&&a&&this.setShapesAsAnimated(o)}},wn.prototype.setShapesAsAnimated=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e].setAsAnimated()},wn.prototype.createStyleElement=function(t,e){var n,i=new cn(t,e),r=i.pElem;return"st"===t.ty?n=new un(this,t,i):"fl"===t.ty?n=new pn(this,t,i):"gf"===t.ty||"gs"===t.ty?(n=new("gf"===t.ty?mn:gn)(this,t,i),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),r.setAttribute("mask","url("+l()+"#"+n.maskId+")"))):"no"===t.ty&&(n=new dn(this,t,i)),"st"!==t.ty&&"gs"!==t.ty||(r.setAttribute("stroke-linecap",on[t.lc||2]),r.setAttribute("stroke-linejoin",an[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=Pe(t.bm)),this.stylesList.push(i),this.addToAnimatedContents(t,n),n},wn.prototype.createGroupElement=function(t){var e=new yn;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=Pe(t.bm)),e},wn.prototype.createTransformElement=function(t,e){var n=Bt.getTransformProperty(this,t,this),i=new vn(n,n.o,e);return this.addToAnimatedContents(t,i),i},wn.prototype.createShapeElement=function(t,e,n){var i=4;"rc"===t.ty?i=5:"el"===t.ty?i=6:"sr"===t.ty&&(i=7);var r=new ln(e,n,xt.getShapeProp(this,t,i,this));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(t,r),r},wn.prototype.addToAnimatedContents=function(t,e){for(var n=0,i=this.animatedContents.length;n<i;){if(this.animatedContents[n].element===e)return;n+=1}this.animatedContents.push({fn:xn.createRenderFunction(t),element:e,data:t})},wn.prototype.setElementStyles=function(t){var e,n=t.styles,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||n.push(this.stylesList[e])},wn.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},wn.prototype.searchShapes=function(t,e,n,i,r,s,o){var a,l,c,h,u,p,d=[].concat(s),f=t.length-1,m=[],g=[];for(a=f;a>=0;a-=1){if((p=this.searchProcessedElement(t[a]))?e[a]=n[p-1]:t[a]._render=o,"fl"===t[a].ty||"st"===t[a].ty||"gf"===t[a].ty||"gs"===t[a].ty||"no"===t[a].ty)p?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],r),t[a]._render&&e[a].style.pElem.parentNode!==i&&i.appendChild(e[a].style.pElem),m.push(e[a].style);else if("gr"===t[a].ty){if(p)for(c=e[a].it.length,l=0;l<c;l+=1)e[a].prevViewData[l]=e[a].it[l];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,e[a].gr,r+1,d,o),t[a]._render&&e[a].gr.parentNode!==i&&i.appendChild(e[a].gr)}else"tr"===t[a].ty?(p||(e[a]=this.createTransformElement(t[a],i)),h=e[a].transform,d.push(h)):"sh"===t[a].ty||"rc"===t[a].ty||"el"===t[a].ty||"sr"===t[a].ty?(p||(e[a]=this.createShapeElement(t[a],d,r)),this.setElementStyles(e[a])):"tm"===t[a].ty||"rd"===t[a].ty||"ms"===t[a].ty||"pb"===t[a].ty||"zz"===t[a].ty||"op"===t[a].ty?(p?(u=e[a]).closed=!1:((u=zt.getModifier(t[a].ty)).init(this,t[a]),e[a]=u,this.shapeModifiers.push(u)),g.push(u)):"rp"===t[a].ty&&(p?(u=e[a]).closed=!0:(u=zt.getModifier(t[a].ty),e[a]=u,u.init(this,t,a,e),this.shapeModifiers.push(u),o=!1),g.push(u));this.addProcessedElement(t[a],a+1)}for(f=m.length,a=0;a<f;a+=1)m[a].closed=!0;for(f=g.length,a=0;a<f;a+=1)g[a].closed=!0},wn.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},wn.prototype.renderShape=function(){var t,e,n=this.animatedContents.length;for(t=0;t<n;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},wn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},kn.prototype.update=function(t,e,n,i,r,s){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,o=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,o=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,o=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,o=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,o=!0),!s.length||this.p[0]===s[0]&&this.p[1]===s[1]&&this.p[4]===s[4]&&this.p[5]===s[5]&&this.p[12]===s[12]&&this.p[13]===s[13]||(this.p=s,this._mdf.p=!0,o=!0),o},_n.prototype.defaultBoxWidth=[0,0],_n.prototype.copyData=function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},_n.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},_n.prototype.searchProperty=function(){return this.searchKeyframes()},_n.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},_n.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},_n.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(i=0;i<r;i+=1)s=n!==this.keysIndex?this.effectsSequence[i](s,s.t):this.effectsSequence[i](this.currentData,s.t);e!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},_n.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,n=0,i=t.length;n<=i-1&&!(n===i-1||t[n+1].t>e);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},_n.prototype.buildFinalText=function(t){for(var e,n,i=[],r=0,s=t.length,o=!1;r<s;)e=t.charCodeAt(r),$e.isCombinedCharacter(e)?i[i.length-1]+=t.charAt(r):e>=55296&&e<=56319?(n=t.charCodeAt(r+1))>=56320&&n<=57343?(o||$e.isModifier(e,n)?(i[i.length-1]+=t.substr(r,2),o=!1):i.push(t.substr(r,2)),r+=1):i.push(t.charAt(r)):e>56319?(n=t.charCodeAt(r+1),$e.isZeroWidthJoiner(e,n)?(o=!0,i[i.length-1]+=t.substr(r,2),r+=1):i.push(t.charAt(r))):$e.isZeroWidthJoiner(e)?(i[i.length-1]+=t.charAt(r),o=!0):i.push(t.charAt(r)),r+=1;return i},_n.prototype.completeTextData=function(t){t.__complete=!0;var e,n,i,r,s,o,a,l=this.elem.globalData.fontManager,c=this.data,h=[],u=0,p=c.m.g,d=0,f=0,m=0,g=[],y=0,v=0,b=l.getFontByName(t.f),x=0,w=Se(b);t.fWeight=w.weight,t.fStyle=w.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),n=t.finalText.length,t.finalLineHeight=t.lh;var k,_=t.tr/1e3*t.finalSize;if(t.sz)for(var S,$,C=!0,A=t.sz[0],P=t.sz[1];C;){S=0,y=0,n=($=this.buildFinalText(t.t)).length,_=t.tr/1e3*t.finalSize;var T=-1;for(e=0;e<n;e+=1)k=$[e].charCodeAt(0),i=!1," "===$[e]?T=e:13!==k&&3!==k||(y=0,i=!0,S+=t.finalLineHeight||1.2*t.finalSize),l.chars?(a=l.getCharData($[e],b.fStyle,b.fFamily),x=i?0:a.w*t.finalSize/100):x=l.measureText($[e],t.f,t.finalSize),y+x>A&&" "!==$[e]?(-1===T?n+=1:e=T,S+=t.finalLineHeight||1.2*t.finalSize,$.splice(e,T===e?1:0,"\r"),T=-1,y=0):(y+=x,y+=_);S+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&P<S?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=$,n=t.finalText.length,C=!1)}y=-_,x=0;var E,j=0;for(e=0;e<n;e+=1)if(i=!1,13===(k=(E=t.finalText[e]).charCodeAt(0))||3===k?(j=0,g.push(y),v=y>v?y:v,y=-2*_,r="",i=!0,m+=1):r=E,l.chars?(a=l.getCharData(E,b.fStyle,l.getFontByName(t.f).fFamily),x=i?0:a.w*t.finalSize/100):x=l.measureText(r,t.f,t.finalSize)," "===E?j+=x+_:(y+=x+_+j,j=0),h.push({l:x,an:x,add:d,n:i,anIndexes:[],val:r,line:m,animatorJustifyOffset:0}),2==p){if(d+=x,""===r||" "===r||e===n-1){for(""!==r&&" "!==r||(d-=x);f<=e;)h[f].an=d,h[f].ind=u,h[f].extra=x,f+=1;u+=1,d=0}}else if(3==p){if(d+=x,""===r||e===n-1){for(""===r&&(d-=x);f<=e;)h[f].an=d,h[f].ind=u,h[f].extra=x,f+=1;d=0,u+=1}}else h[u].ind=u,h[u].extra=0,u+=1;if(t.l=h,v=y>v?y:v,g.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var D,M,F,I,R=c.a;o=R.length;var L=[];for(s=0;s<o;s+=1){for((D=R[s]).a.sc&&(t.strokeColorAnim=!0),D.a.sw&&(t.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(t.fillColorAnim=!0),I=0,F=D.s.b,e=0;e<n;e+=1)(M=h[e]).anIndexes[s]=I,(1==F&&""!==M.val||2==F&&""!==M.val&&" "!==M.val||3==F&&(M.n||" "==M.val||e==n-1)||4==F&&(M.n||e==n-1))&&(1===D.s.rn&&L.push(I),I+=1);c.a[s].s.totalChars=I;var O,z=-1;if(1===D.s.rn)for(e=0;e<n;e+=1)z!=(M=h[e]).anIndexes[s]&&(z=M.anIndexes[s],O=L.splice(Math.floor(Math.random()*L.length),1)[0]),M.anIndexes[s]=O}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},_n.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var n=this.copyData({},this.data.d.k[e].s);n=this.copyData(n,t),this.data.d.k[e].s=n,this.recalculate(e),this.elem.addDynamicProperty(this)},_n.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},_n.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},_n.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Sn=function(){var t=Math.max,e=Math.min,n=Math.floor;function i(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=dt.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?dt.getProp(t,e.e,0,0,this):{v:100},this.o=dt.getProp(t,e.o||{k:0},0,0,this),this.xe=dt.getProp(t,e.xe||{k:0},0,0,this),this.ne=dt.getProp(t,e.ne||{k:0},0,0,this),this.sm=dt.getProp(t,e.sm||{k:100},0,0,this),this.a=dt.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function r(t,e,n){return new i(t,e)}return i.prototype={getMult:function(i){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var r=0,s=0,o=1,a=1;this.ne.v>0?r=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:a=1+this.xe.v/100;var l=ot.getBezierEasing(r,s,o,a).get,c=0,h=this.finalS,u=this.finalE,p=this.data.sh;if(2===p)c=l(c=u===h?i>=u?1:0:t(0,e(.5/(u-h)+(i-h)/(u-h),1)));else if(3===p)c=l(c=u===h?i>=u?0:1:1-t(0,e(.5/(u-h)+(i-h)/(u-h),1)));else if(4===p)u===h?c=0:(c=t(0,e(.5/(u-h)+(i-h)/(u-h),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===p){if(u===h)c=0;else{var d=u-h,f=-d/2+(i=e(t(0,i+.5-h),u-h)),m=d/2;c=Math.sqrt(1-f*f/(m*m))}c=l(c)}else 6===p?(u===h?c=0:(i=e(t(0,i+.5-h),u-h),c=(1+Math.cos(Math.PI+2*Math.PI*i/(u-h)))/2),c=l(c)):(i>=n(h)&&(c=t(0,e(i-h<0?e(u,1)-(h-i):u-i,1))),c=l(c));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;c<y?c=0:(c=(c-y)/g)>1&&(c=1)}return c*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/e,i=this.s.v/e+n,r=this.e.v/e+n;if(i>r){var s=i;i=r,r=s}this.finalS=i,this.finalE=r}},h([ft],i),{getTextSelectorProp:r}}();function $n(t,e,n){var i={propType:!1},r=dt.getProp,s=e.a;this.a={r:s.r?r(t,s.r,0,S,n):i,rx:s.rx?r(t,s.rx,0,S,n):i,ry:s.ry?r(t,s.ry,0,S,n):i,sk:s.sk?r(t,s.sk,0,S,n):i,sa:s.sa?r(t,s.sa,0,S,n):i,s:s.s?r(t,s.s,1,.01,n):i,a:s.a?r(t,s.a,1,0,n):i,o:s.o?r(t,s.o,0,.01,n):i,p:s.p?r(t,s.p,1,0,n):i,sw:s.sw?r(t,s.sw,0,0,n):i,sc:s.sc?r(t,s.sc,1,0,n):i,fc:s.fc?r(t,s.fc,1,0,n):i,fh:s.fh?r(t,s.fh,0,0,n):i,fs:s.fs?r(t,s.fs,0,.01,n):i,fb:s.fb?r(t,s.fb,0,.01,n):i,t:s.t?r(t,s.t,0,0,n):i},this.s=Sn.getTextSelectorProp(t,e.s,n),this.s.t=e.s.t}function Cn(t,e,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=n,this._animatorsData=f(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function An(){}Cn.prototype.searchProperties=function(){var t,e,n=this._textData.a.length,i=dt.getProp;for(t=0;t<n;t+=1)e=this._textData.a[t],this._animatorsData[t]=new $n(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},Cn.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,i,r,s,o,a,l,c,h,u,p,d,f,m,g,y,v,b,x,w=this._moreOptions.alignment.v,k=this._animatorsData,_=this._textData,S=this.mHelper,$=this._renderType,C=this.renderedLetters.length,A=t.l;if(this._hasMaskedPath){if(x=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,T=x.v;for(this._pathData.r.v&&(T=T.reverse()),o={tLength:0,segments:[]},s=T._length-1,y=0,r=0;r<s;r+=1)P=pt.buildBezierData(T.v[r],T.v[r+1],[T.o[r][0]-T.v[r][0],T.o[r][1]-T.v[r][1]],[T.i[r+1][0]-T.v[r+1][0],T.i[r+1][1]-T.v[r+1][1]]),o.tLength+=P.segmentLength,o.segments.push(P),y+=P.segmentLength;r=s,x.v.c&&(P=pt.buildBezierData(T.v[r],T.v[0],[T.o[r][0]-T.v[r][0],T.o[r][1]-T.v[r][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),o.tLength+=P.segmentLength,o.segments.push(P),y+=P.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,a=this._pathData.f.v,p=0,u=1,c=0,h=!0,m=o.segments,a<0&&x.v.c)for(o.tLength<Math.abs(a)&&(a=-Math.abs(a)%o.tLength),u=(f=m[p=m.length-1].points).length-1;a<0;)a+=f[u].partialLength,(u-=1)<0&&(u=(f=m[p-=1].points).length-1);d=(f=m[p].points)[u-1],g=(l=f[u]).partialLength}s=A.length,n=0,i=0;var E,j,D,M,F,I=1.2*t.finalSize*.714,R=!0;D=k.length;var N,V,q,B,W,U,H,G,Q,J,K,Y,X=-1,Z=a,tt=p,et=u,nt=-1,it="",rt=this.defaultPropsArray;if(2===t.j||1===t.j){var st=0,ot=0,at=2===t.j?-.5:-1,lt=0,ct=!0;for(r=0;r<s;r+=1)if(A[r].n){for(st&&(st+=ot);lt<r;)A[lt].animatorJustifyOffset=st,lt+=1;st=0,ct=!0}else{for(j=0;j<D;j+=1)(E=k[j].a).t.propType&&(ct&&2===t.j&&(ot+=E.t.v*at),(F=k[j].s.getMult(A[r].anIndexes[j],_.a[j].s.totalChars)).length?st+=E.t.v*F[0]*at:st+=E.t.v*F*at);ct=!1}for(st&&(st+=ot);lt<r;)A[lt].animatorJustifyOffset=st,lt+=1}for(r=0;r<s;r+=1){if(S.reset(),B=1,A[r].n)n=0,i+=t.yOffset,i+=R?1:0,a=Z,R=!1,this._hasMaskedPath&&(u=et,d=(f=m[p=tt].points)[u-1],g=(l=f[u]).partialLength,c=0),it="",K="",Q="",Y="",rt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(nt!==A[r].line){switch(t.j){case 1:a+=y-t.lineWidths[A[r].line];break;case 2:a+=(y-t.lineWidths[A[r].line])/2}nt=A[r].line}X!==A[r].ind&&(A[X]&&(a+=A[X].extra),a+=A[r].an/2,X=A[r].ind),a+=w[0]*A[r].an*.005;var ht=0;for(j=0;j<D;j+=1)(E=k[j].a).p.propType&&((F=k[j].s.getMult(A[r].anIndexes[j],_.a[j].s.totalChars)).length?ht+=E.p.v[0]*F[0]:ht+=E.p.v[0]*F),E.a.propType&&((F=k[j].s.getMult(A[r].anIndexes[j],_.a[j].s.totalChars)).length?ht+=E.a.v[0]*F[0]:ht+=E.a.v[0]*F);for(h=!0,this._pathData.a.v&&(a=.5*A[0].an+(y-this._pathData.f.v-.5*A[0].an-.5*A[A.length-1].an)*X/(s-1),a+=this._pathData.f.v);h;)c+g>=a+ht||!f?(v=(a+ht-c)/l.partialLength,V=d.point[0]+(l.point[0]-d.point[0])*v,q=d.point[1]+(l.point[1]-d.point[1])*v,S.translate(-w[0]*A[r].an*.005,-w[1]*I*.01),h=!1):f&&(c+=l.partialLength,(u+=1)>=f.length&&(u=0,m[p+=1]?f=m[p].points:x.v.c?(u=0,f=m[p=0].points):(c-=l.partialLength,f=null)),f&&(d=l,g=(l=f[u]).partialLength));N=A[r].an/2-A[r].add,S.translate(-N,0,0)}else N=A[r].an/2-A[r].add,S.translate(-N,0,0),S.translate(-w[0]*A[r].an*.005,-w[1]*I*.01,0);for(j=0;j<D;j+=1)(E=k[j].a).t.propType&&(F=k[j].s.getMult(A[r].anIndexes[j],_.a[j].s.totalChars),0===n&&0===t.j||(this._hasMaskedPath?F.length?a+=E.t.v*F[0]:a+=E.t.v*F:F.length?n+=E.t.v*F[0]:n+=E.t.v*F));for(t.strokeWidthAnim&&(U=t.sw||0),t.strokeColorAnim&&(W=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(H=[t.fc[0],t.fc[1],t.fc[2]]),j=0;j<D;j+=1)(E=k[j].a).a.propType&&((F=k[j].s.getMult(A[r].anIndexes[j],_.a[j].s.totalChars)).length?S.translate(-E.a.v[0]*F[0],-E.a.v[1]*F[1],E.a.v[2]*F[2]):S.translate(-E.a.v[0]*F,-E.a.v[1]*F,E.a.v[2]*F));for(j=0;j<D;j+=1)(E=k[j].a).s.propType&&((F=k[j].s.getMult(A[r].anIndexes[j],_.a[j].s.totalChars)).length?S.scale(1+(E.s.v[0]-1)*F[0],1+(E.s.v[1]-1)*F[1],1):S.scale(1+(E.s.v[0]-1)*F,1+(E.s.v[1]-1)*F,1));for(j=0;j<D;j+=1){if(E=k[j].a,F=k[j].s.getMult(A[r].anIndexes[j],_.a[j].s.totalChars),E.sk.propType&&(F.length?S.skewFromAxis(-E.sk.v*F[0],E.sa.v*F[1]):S.skewFromAxis(-E.sk.v*F,E.sa.v*F)),E.r.propType&&(F.length?S.rotateZ(-E.r.v*F[2]):S.rotateZ(-E.r.v*F)),E.ry.propType&&(F.length?S.rotateY(E.ry.v*F[1]):S.rotateY(E.ry.v*F)),E.rx.propType&&(F.length?S.rotateX(E.rx.v*F[0]):S.rotateX(E.rx.v*F)),E.o.propType&&(F.length?B+=(E.o.v*F[0]-B)*F[0]:B+=(E.o.v*F-B)*F),t.strokeWidthAnim&&E.sw.propType&&(F.length?U+=E.sw.v*F[0]:U+=E.sw.v*F),t.strokeColorAnim&&E.sc.propType)for(G=0;G<3;G+=1)F.length?W[G]+=(E.sc.v[G]-W[G])*F[0]:W[G]+=(E.sc.v[G]-W[G])*F;if(t.fillColorAnim&&t.fc){if(E.fc.propType)for(G=0;G<3;G+=1)F.length?H[G]+=(E.fc.v[G]-H[G])*F[0]:H[G]+=(E.fc.v[G]-H[G])*F;E.fh.propType&&(H=F.length?z(H,E.fh.v*F[0]):z(H,E.fh.v*F)),E.fs.propType&&(H=F.length?L(H,E.fs.v*F[0]):L(H,E.fs.v*F)),E.fb.propType&&(H=F.length?O(H,E.fb.v*F[0]):O(H,E.fb.v*F))}}for(j=0;j<D;j+=1)(E=k[j].a).p.propType&&(F=k[j].s.getMult(A[r].anIndexes[j],_.a[j].s.totalChars),this._hasMaskedPath?F.length?S.translate(0,E.p.v[1]*F[0],-E.p.v[2]*F[1]):S.translate(0,E.p.v[1]*F,-E.p.v[2]*F):F.length?S.translate(E.p.v[0]*F[0],E.p.v[1]*F[1],-E.p.v[2]*F[2]):S.translate(E.p.v[0]*F,E.p.v[1]*F,-E.p.v[2]*F));if(t.strokeWidthAnim&&(Q=U<0?0:U),t.strokeColorAnim&&(J="rgb("+Math.round(255*W[0])+","+Math.round(255*W[1])+","+Math.round(255*W[2])+")"),t.fillColorAnim&&t.fc&&(K="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(S.translate(0,-t.ls),S.translate(0,w[1]*I*.01+i,0),this._pathData.p.v){b=(l.point[1]-d.point[1])/(l.point[0]-d.point[0]);var ut=180*Math.atan(b)/Math.PI;l.point[0]<d.point[0]&&(ut+=180),S.rotate(-ut*Math.PI/180)}S.translate(V,q,0),a-=w[0]*A[r].an*.005,A[r+1]&&X!==A[r+1].ind&&(a+=A[r].an/2,a+=.001*t.tr*t.finalSize)}else{switch(S.translate(n,i,0),t.ps&&S.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:S.translate(A[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[A[r].line]),0,0);break;case 2:S.translate(A[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[A[r].line])/2,0,0)}S.translate(0,-t.ls),S.translate(N,0,0),S.translate(w[0]*A[r].an*.005,w[1]*I*.01,0),n+=A[r].l+.001*t.tr*t.finalSize}"html"===$?it=S.toCSS():"svg"===$?it=S.to2dCSS():rt=[S.props[0],S.props[1],S.props[2],S.props[3],S.props[4],S.props[5],S.props[6],S.props[7],S.props[8],S.props[9],S.props[10],S.props[11],S.props[12],S.props[13],S.props[14],S.props[15]],Y=B}C<=r?(M=new kn(Y,Q,J,K,it,rt),this.renderedLetters.push(M),C+=1,this.lettersChangedFlag=!0):(M=this.renderedLetters[r],this.lettersChangedFlag=M.update(Y,Q,J,K,it,rt)||this.lettersChangedFlag)}}},Cn.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Cn.prototype.mHelper=new wt,Cn.prototype.defaultPropsArray=[],h([ft],Cn),An.prototype.initElement=function(t,e,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,n),this.textProperty=new _n(this,t.t,this.dynamicProperties),this.textAnimator=new Cn(t.t,this.renderType,this),this.initTransform(t,e,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},An.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},An.prototype.createPathShape=function(t,e){var n,i,r=e.length,s="";for(n=0;n<r;n+=1)"sh"===e[n].ty&&(i=e[n].ks.k,s+=bn(i,i.i.length,!0,t));return s},An.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},An.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},An.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},An.prototype.applyTextPropertiesToMatrix=function(t,e,n,i,r){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n])/2,0,0)}e.translate(i,r,0)},An.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},An.prototype.emptyProp=new kn,An.prototype.destroy=function(){};var Pn={shapes:[]};function Tn(t,e,n){this.textSpans=[],this.renderType="svg",this.initElement(t,e,n)}function En(t,e,n){this.initElement(t,e,n)}function jn(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initFrame(),this.initTransform(t,e,n),this.initHierarchy()}function Dn(){}function Mn(){}function Fn(t,e,n){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?f(this.layers.length):[],this.initElement(t,e,n),this.tm=t.tm?dt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function In(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=G("svg");var n="";if(e&&e.title){var i=G("title"),r=F();i.setAttribute("id",r),i.textContent=e.title,this.svgElement.appendChild(i),n+=r}if(e&&e.description){var s=G("desc"),o=F();s.setAttribute("id",o),s.textContent=e.description,this.svgElement.appendChild(s),n+=" "+o}n&&this.svgElement.setAttribute("aria-labelledby",n);var a=G("defs");this.svgElement.appendChild(a);var l=G("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:a,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return h([ze,We,Ze,tn,Ne,en,An],Tn),Tn.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=G("text"))},Tn.prototype.buildTextContents=function(t){for(var e=0,n=t.length,i=[],r="";e<n;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(i.push(r),r=""):r+=t[e],e+=1;return i.push(r),i},Tn.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var n=t.shapes[0];if(n.it){var i=n.it[n.it.length-1];i.s&&(i.s.k[0]=e,i.s.k[1]=e)}}return t},Tn.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=f(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var i=this.globalData.fontManager.getFontByName(n.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var r=n.fWeight,s=n.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",n.t);var o,a=n.l||[],l=!!this.globalData.fontManager.chars;e=a.length;var c=this.mHelper,h="",u=this.data.singleShape,p=0,d=0,m=!0,g=.001*n.tr*n.finalSize;if(!u||l||n.sz){var y,v=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!u||0===t){if(o=v>t?this.textSpans[t].span:G(l?"g":"text"),v<=t){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=o,l){var b=G("g");o.appendChild(b),this.textSpans[t].childSpan=b}this.textSpans[t].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(c.reset(),u&&(a[t].n&&(p=-g,d+=n.yOffset,d+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(n,c,a[t].line,p,d),p+=a[t].l||0,p+=g),l){var x;if(1===(y=this.globalData.fontManager.getCharData(n.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)x=new Fn(y.data,this.globalData,this);else{var w=Pn;y.data&&y.data.shapes&&(w=this.buildShapeData(y.data,n.finalSize)),x=new wn(w,this.globalData,this)}if(this.textSpans[t].glyph){var k=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(k.layerElement),k.destroy()}this.textSpans[t].glyph=x,x._debug=!0,x.prepareFrame(0),x.renderFrame(),this.textSpans[t].childSpan.appendChild(x.layerElement),1===y.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else u&&o.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),o.textContent=a[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&o&&o.setAttribute("d",h)}else{var _=this.textContainer,S="start";switch(n.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}_.setAttribute("text-anchor",S),_.setAttribute("letter-spacing",g);var $=this.buildTextContents(n.finalText);for(e=$.length,d=n.ps?n.ps[1]+n.ascent:0,t=0;t<e;t+=1)(o=this.textSpans[t].span||G("tspan")).textContent=$[t],o.setAttribute("x",0),o.setAttribute("y",d),o.style.display="inherit",_.appendChild(o),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=o,d+=n.finalLineHeight;this.layerElement.appendChild(_)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},Tn.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},Tn.prototype.getValue=function(){var t,e,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<n;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},Tn.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var n,i,r,s=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(e=o.length,t=0;t<e;t+=1)o[t].n||(n=s[t],i=this.textSpans[t].span,(r=this.textSpans[t].glyph)&&r.renderFrame(),n._mdf.m&&i.setAttribute("transform",n.m),n._mdf.o&&i.setAttribute("opacity",n.o),n._mdf.sw&&i.setAttribute("stroke-width",n.sw),n._mdf.sc&&i.setAttribute("stroke",n.sc),n._mdf.fc&&i.setAttribute("fill",n.fc))}},h([nn],En),En.prototype.createContent=function(){var t=G("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},jn.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},jn.prototype.renderFrame=function(){},jn.prototype.getBaseElement=function(){return null},jn.prototype.destroy=function(){},jn.prototype.sourceRectAtTime=function(){},jn.prototype.hide=function(){},h([ze,We,tn,Ne],jn),h([Be],Dn),Dn.prototype.createNull=function(t){return new jn(t,this.globalData,this)},Dn.prototype.createShape=function(t){return new wn(t,this.globalData,this)},Dn.prototype.createText=function(t){return new Tn(t,this.globalData,this)},Dn.prototype.createImage=function(t){return new nn(t,this.globalData,this)},Dn.prototype.createSolid=function(t){return new En(t,this.globalData,this)},Dn.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var n=G("clipPath"),i=G("rect");i.setAttribute("width",t.w),i.setAttribute("height",t.h),i.setAttribute("x",0),i.setAttribute("y",0);var r=F();n.setAttribute("id",r),n.appendChild(i),this.layerElement.setAttribute("clip-path","url("+l()+"#"+r+")"),e.appendChild(n),this.layers=t.layers,this.elements=f(t.layers.length)},Dn.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Dn.prototype.updateContainerSize=function(){},Dn.prototype.findIndexByInd=function(t){var e=0,n=this.layers.length;for(e=0;e<n;e+=1)if(this.layers[e].ind===t)return e;return-1},Dn.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var n=this.createItem(this.layers[t]);if(e[t]=n,B()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,t),this.layers[t].tt){var i="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===i)return;if(this.elements[i]&&!0!==this.elements[i]){var r=e[i].getMatte(this.layers[t].tt);n.setMatte(r)}else this.buildItem(i),this.addPendingElement(n)}}},Dn.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,n=this.elements.length;e<n;){if(this.elements[e]===t){var i="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,r=this.elements[i].getMatte(this.layers[e].tt);t.setMatte(r);break}e+=1}}},Dn.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=n-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<n;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},Dn.prototype.appendElementInPos=function(t,e){var n=t.getBaseElement();if(n){for(var i,r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(n,i):this.layerElement.appendChild(n)}},Dn.prototype.hide=function(){this.layerElement.style.display="none"},Dn.prototype.show=function(){this.layerElement.style.display="block"},h([ze,We,tn,Ne,en],Mn),Mn.prototype.initElement=function(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},Mn.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var n,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},Mn.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},Mn.prototype.setElements=function(t){this.elements=t},Mn.prototype.getElements=function(){return this.elements},Mn.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},Mn.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},h([Dn,Mn,Ze],Fn),Fn.prototype.createComp=function(t){return new Fn(t,this.globalData,this)},h([Dn],In),In.prototype.createComp=function(t){return new Fn(t,this.globalData,this)},et("svg",In),zt.registerModifier("tm",Vt),zt.registerModifier("pb",qt),zt.registerModifier("rp",Wt),zt.registerModifier("rd",Ut),zt.registerModifier("zz",he),zt.registerModifier("op",_e),_t}())}(r,r.exports);var s=r.exports;function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i<s.length;i++)n=s[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)n=s[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,s,o,a=[],l=!0,c=!1;try{if(s=(n=n.call(t)).next,0===e);else for(;!(l=(i=s.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(h){c=!0,r=h}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var d=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],f=function(t,n){var r=t.animationData,o=t.loop,l=t.autoplay,h=t.initialSegment,p=t.onComplete,f=t.onLoopComplete,m=t.onEnterFrame,g=t.onSegmentStart,y=t.onConfigReady,v=t.onDataReady,b=t.onDataFailed,x=t.onLoadedImages,w=t.onDOMLoaded,k=t.onDestroy;t.lottieRef,t.renderer,t.name,t.assetsPath,t.rendererSettings;var _=c(t,d),S=u(e.useState(!1),2),$=S[0],C=S[1],A=e.useRef(),P=e.useRef(null);return e.useEffect((function(){var e=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(P.current){null===(e=A.current)||void 0===e||e.destroy();var i=a(a(a({},t),n),{},{container:P.current});return A.current=s.loadAnimation(i),C(!!A.current),function(){var t;null===(t=A.current)||void 0===t||t.destroy(),A.current=void 0}}}();return function(){return null==e?void 0:e()}}),[r,o]),e.useEffect((function(){A.current&&(A.current.autoplay=!!l)}),[l]),e.useEffect((function(){A.current&&(h?Array.isArray(h)&&h.length&&((A.current.currentRawFrame<h[0]||A.current.currentRawFrame>h[1])&&(A.current.currentRawFrame=h[0]),A.current.setSegment(h[0],h[1])):A.current.resetSegments(!0))}),[h]),e.useEffect((function(){var t=[{name:"complete",handler:p},{name:"loopComplete",handler:f},{name:"enterFrame",handler:m},{name:"segmentStart",handler:g},{name:"config_ready",handler:y},{name:"data_ready",handler:v},{name:"data_failed",handler:b},{name:"loaded_images",handler:x},{name:"DOMLoaded",handler:w},{name:"destroy",handler:k}].filter((function(t){return null!=t.handler}));if(t.length){var e=t.map((function(t){var e;return null===(e=A.current)||void 0===e||e.addEventListener(t.name,t.handler),function(){var e;null===(e=A.current)||void 0===e||e.removeEventListener(t.name,t.handler)}}));return function(){e.forEach((function(t){return t()}))}}}),[p,f,m,g,y,v,b,x,w,k]),{View:i.default.createElement("div",a({style:n,ref:P},_)),play:function(){var t;null===(t=A.current)||void 0===t||t.play()},stop:function(){var t;null===(t=A.current)||void 0===t||t.stop()},pause:function(){var t;null===(t=A.current)||void 0===t||t.pause()},setSpeed:function(t){var e;null===(e=A.current)||void 0===e||e.setSpeed(t)},goToAndStop:function(t,e){var n;null===(n=A.current)||void 0===n||n.goToAndStop(t,e)},goToAndPlay:function(t,e){var n;null===(n=A.current)||void 0===n||n.goToAndPlay(t,e)},setDirection:function(t){var e;null===(e=A.current)||void 0===e||e.setDirection(t)},playSegments:function(t,e){var n;null===(n=A.current)||void 0===n||n.playSegments(t,e)},setSubframe:function(t){var e;null===(e=A.current)||void 0===e||e.setSubframe(t)},getDuration:function(t){var e;return null===(e=A.current)||void 0===e?void 0:e.getDuration(t)},destroy:function(){var t;null===(t=A.current)||void 0===t||t.destroy(),A.current=void 0},animationContainerRef:P,animationLoaded:$,animationItem:A.current}};var m=function(t){var n=t.wrapperRef,i=t.animationItem,r=t.mode,s=t.actions;e.useEffect((function(){var t,e,o=n.current;if(o&&i&&s.length){i.stop();switch(r){case"scroll":return t=null,e=function(){var e=function(t){var e=t.getBoundingClientRect(),n=e.top,i=e.height;return(window.innerHeight-n)/(window.innerHeight+i)}(o),n=s.find((function(t){var n=t.visibility;return n&&e>=n[0]&&e<=n[1]}));if(n){if("seek"===n.type&&n.visibility&&2===n.frames.length){var r=n.frames[0]+Math.ceil((e-n.visibility[0])/(n.visibility[1]-n.visibility[0])*n.frames[1]);
|
|
288
|
+
//! goToAndStop must be relative to the start of the current segment
|
|
289
|
+
i.goToAndStop(r-i.firstFrame-1,!0)}"loop"===n.type&&(null===t||t!==n.frames||i.isPaused)&&(i.playSegments(n.frames,!0),t=n.frames),"play"===n.type&&i.isPaused&&(i.resetSegments(!0),i.play()),"stop"===n.type&&i.goToAndStop(n.frames[0]-i.firstFrame-1,!0)}},document.addEventListener("scroll",e),function(){document.removeEventListener("scroll",e)};case"cursor":return function(){var t=function(t,e){var n=t,r=e;if(-1!==n&&-1!==r){var a=function(t,e,n){var i=t.getBoundingClientRect(),r=i.top;return{x:(e-i.left)/i.width,y:(n-r)/i.height}}(o,n,r);n=a.x,r=a.y}var l=s.find((function(t){var e=t.position;return e&&Array.isArray(e.x)&&Array.isArray(e.y)?n>=e.x[0]&&n<=e.x[1]&&r>=e.y[0]&&r<=e.y[1]:!(!e||Number.isNaN(e.x)||Number.isNaN(e.y))&&n===e.x&&r===e.y}));if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var c=(n-l.position.x[0])/(l.position.x[1]-l.position.x[0]),h=(r-l.position.y[0])/(l.position.y[1]-l.position.y[0]);i.playSegments(l.frames,!0),i.goToAndStop(Math.ceil((c+h)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&i.playSegments(l.frames,!0),"play"===l.type&&(i.isPaused&&i.resetSegments(!1),i.playSegments(l.frames)),"stop"===l.type&&i.goToAndStop(l.frames[0],!0)}},e=function(e){t(e.clientX,e.clientY)},n=function(){t(-1,-1)};return o.addEventListener("mousemove",e),o.addEventListener("mouseout",n),function(){o.removeEventListener("mousemove",e),o.removeEventListener("mouseout",n)}}()}}}),[r,i])},g=function(t){var e=t.actions,n=t.mode,i=t.lottieObj,r=i.animationItem,s=i.View,o=i.animationContainerRef;return m({actions:e,animationItem:r,mode:n,wrapperRef:o}),s},y=["style","interactivity"];t.LottiePlayer=s,t.default=function(t){var n,i,r,s=t.style,o=t.interactivity,a=c(t,y),l=f(a,s),h=l.View,u=l.play,p=l.stop,d=l.pause,m=l.setSpeed,v=l.goToAndStop,b=l.goToAndPlay,x=l.setDirection,w=l.playSegments,k=l.setSubframe,_=l.getDuration,S=l.destroy,$=l.animationContainerRef,C=l.animationLoaded,A=l.animationItem;return e.useEffect((function(){t.lottieRef&&(t.lottieRef.current={play:u,stop:p,pause:d,setSpeed:m,goToAndPlay:b,goToAndStop:v,setDirection:x,playSegments:w,setSubframe:k,getDuration:_,destroy:S,animationContainerRef:$,animationLoaded:C,animationItem:A})}),[null===(n=t.lottieRef)||void 0===n?void 0:n.current]),g({lottieObj:{View:h,play:u,stop:p,pause:d,setSpeed:m,goToAndStop:v,goToAndPlay:b,setDirection:x,playSegments:w,setSubframe:k,getDuration:_,destroy:S,animationContainerRef:$,animationLoaded:C,animationItem:A},actions:null!==(i=null==o?void 0:o.actions)&&void 0!==i?i:[],mode:null!==(r=null==o?void 0:o.mode)&&void 0!==r?r:"scroll"})},t.useLottie=f,t.useLottieInteractivity=g,Object.defineProperty(t,"__esModule",{value:!0})}(Bl,e);const Wl=u(Bl),Ul=t.styled(Wl).attrs((({autoplay:t=!0})=>({autoplay:t,className:"comp-lottie"})))`
|
|
290
|
+
${({$size:t=16})=>`\n height: ${t}px;\n width: ${t}px;\n `}
|
|
291
|
+
`,Hl=t.styled.button`
|
|
292
|
+
align-items: center;
|
|
293
|
+
background-color: transparent;
|
|
294
|
+
border: unset;
|
|
295
|
+
cursor: pointer;
|
|
296
|
+
display: flex;
|
|
297
|
+
justify-content: center;
|
|
298
|
+
gap: 5px;
|
|
299
|
+
padding: 0;
|
|
300
|
+
|
|
301
|
+
&:hover p {
|
|
302
|
+
color: ${v.palette.primary[200]};
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
&:hover span {
|
|
306
|
+
color: ${v.palette.primary[200]};
|
|
307
|
+
}
|
|
308
|
+
`,Gl=t.styled.div`
|
|
309
|
+
${({theme:t,$variant:e})=>`\n background: ${t.palette.white};\n border: 1px solid ${t.palette.gray[200]};\n border-radius: ${t.spacing[.25]};\n border-left: 4px solid ${t.palette[e][500]};\n box-shadow: ${t.shadows.md};\n position: relative;\n display: flex;\n width: 360px;\n padding: ${t.spacing[1.25]} ${t.spacing[1]} ${t.spacing[1.25]} ${t.spacing[.75]};\n gap: ${t.spacing[.5]};\n\n button {\n position: absolute;\n top: 20px;\n right: 16px;\n }\n `}
|
|
310
|
+
`,Ql=t.styled.div`
|
|
311
|
+
${({theme:t,$variant:e})=>`\n height: ${t.spacing[2.5]};\n width: ${t.spacing[2.5]};\n position: relative;\n flex-shrink: 0;\n\n & .ellipse-1,\n & .ellipse-2,\n & .icon {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: absolute;\n }\n\n & .ellipse-1 {\n transform: scale(2.5) translate(-20%, -20%);\n color: ${t.palette[e][50]};\n position: absolute;\n }\n\n & .ellipse-2 {\n transform: scale(2) translate(-25%, -25%);\n color: ${t.palette[e][200]};\n }\n\n & .icon {\n color: ${t.palette[e][500]};\n }\n `}
|
|
312
|
+
`,Jl=t=>"warning"===t?"triangle-exclamation":"info"===t?"circle-info":"success"===t?"circle-check":"circle-exclamation",Kl=t.styled(P)`
|
|
313
|
+
${({theme:t,$variant:e})=>`\n align-items: center;\n background: ${"error"===e?t.palette.primary[400]:t.palette.warning[500]};\n border-radius: 100%;\n font-family: ${t.typography.type.primary};\n justify-content: center;\n padding: 0;\n position: absolute;\n z-index: 11;\n width: ${t.spacing[.5]};\n height: ${t.spacing[.5]};\n `}
|
|
314
|
+
`,Yl=t.styled.div`
|
|
315
|
+
align-items: center;
|
|
316
|
+
color: ${({theme:t})=>t.palette.white};
|
|
317
|
+
display: flex;
|
|
318
|
+
font-size: 6px;
|
|
319
|
+
font-weight: ${({theme:t})=>t.typography.weight.bold};
|
|
320
|
+
justify-content: center;
|
|
321
|
+
`,Xl=e.forwardRef((function({numberIndicator:t,show:e,variant:n="error",...i},r){return y.jsx(Kl,{$variant:n,className:e?"flex":"hidden","data-testid":"notification-sign",ref:r,...i,children:t&&y.jsx(Yl,{children:t<=9?t:9})})})),Zl=t.styled.div`
|
|
322
|
+
width: fit-content;
|
|
323
|
+
border: ${({theme:t})=>`1px solid ${t.palette.gray[300]}`};
|
|
324
|
+
border-radius: 4px;
|
|
325
|
+
background: none;
|
|
326
|
+
color: ${({theme:t})=>t.palette.black};
|
|
327
|
+
font-family: ${({theme:t})=>t.typography.type.primary};
|
|
328
|
+
font-size: ${({theme:t})=>t.typography.text.md};
|
|
329
|
+
height: 40px;
|
|
330
|
+
display: flex;
|
|
331
|
+
align-items: center;
|
|
332
|
+
justify-content: center;
|
|
333
|
+
padding: 0.5em;
|
|
334
|
+
`,tc=t.styled.input`
|
|
335
|
+
width: 4em;
|
|
336
|
+
appearance: textfield;
|
|
337
|
+
border-style: none;
|
|
338
|
+
padding: 0.5rem;
|
|
339
|
+
padding-top: 0.5rem;
|
|
340
|
+
padding-bottom: 0.5rem;
|
|
341
|
+
padding-left: 0.5rem;
|
|
342
|
+
background: none;
|
|
343
|
+
|
|
344
|
+
&:focus {
|
|
345
|
+
border-color: unset;
|
|
346
|
+
box-shadow: none;
|
|
347
|
+
outline: none;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
&::-webkit-outer-spin-button,
|
|
351
|
+
&::-webkit-inner-spin-button {
|
|
352
|
+
opacity: 1;
|
|
353
|
+
}
|
|
354
|
+
`,ec=e.forwardRef((function({autoUpdate:t=!1,decimalPlaces:n=0,defaultValue:r=0,max:s,min:o,onEnter:a,tooltipMessage:l,...c},h){const u=n<0?0:n,[p,d]=e.useState(Number(r).toFixed(u)),f=e.useCallback((e=>{const n=i.toNumber(e.target.value);e.target.value.endsWith(".")?d(e.target.value):n>=Number(o)&&n<=Number(s)&&(d(String(n)),t&&a(i.toNumber(n.toFixed(u)))),e.stopPropagation()}),[t,u,s,o,a]),m=e.useCallback((t=>{t.currentTarget.contains(t.relatedTarget)||d(Number(r).toFixed(u)),t.stopPropagation()}),[u,r]),g=e.useCallback((t=>{t.stopPropagation(),"Enter"!==t.key||i.isEmpty(t.currentTarget.value)||a(i.toNumber(t.currentTarget.value))}),[a]);return y.jsx(Zl,{onBlur:m,tabIndex:-1,children:y.jsx(Ti,{id:"numberInputTooltip",tip:l,children:y.jsx(tc,{...c,max:s,min:o,onChange:f,onKeyUp:g,ref:h,step:10**-u,type:"number",value:p})})})})),nc=t.styled(P)`
|
|
355
|
+
animation: ${({$animationTime:t})=>`progress-bar ${t}s ease-in-out`};
|
|
356
|
+
animation-fill-mode: both;
|
|
357
|
+
|
|
358
|
+
@keyframes progress-bar {
|
|
359
|
+
0% {
|
|
360
|
+
width: 0;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
100% {
|
|
364
|
+
width: 100%;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
`,ic=t.styled.label`
|
|
368
|
+
${({theme:t,$disabled:e})=>{const n=e?300:600,i=e?"not-allowed":"pointer";return`\n display: flex;\n align-items: center;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.regular};\n line-height: ${t.typography.text.lg};\n text-align: left;\n position: relative;\n cursor: ${i};\n color: ${t.palette.gray[n]};\n gap: ${t.spacing[.5]};\n\n input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n width: 0;\n }\n\n .checkmark {\n position: relative;\n top: 0;\n left: 0;\n height: 16px;\n width: 16px;\n background-color: ${t.palette.white};\n border-radius: 50%;\n border: 1px solid ${t.palette.gray[600]};\n }\n\n input:disabled ~ .checkmark {\n border: 1px solid ${t.palette.gray[300]};\n background-color: ${t.palette.white};\n cursor: not-allowed;\n }\n\n input:not(:disabled):checked ~ .checkmark {\n background-color: ${t.palette.white};\n border: 1px solid ${t.palette.primary[500]};\n }\n\n input:not(:disabled):hover ~ .checkmark {\n background-color: ${t.palette.white};\n box-shadow: 0 0 0 4px ${t.palette.gray[100]};\n }\n\n input:not(:disabled):hover:checked ~ .checkmark {\n background-color: ${t.palette.white};\n box-shadow: 0 0 0 4px ${t.palette.primary[50]};\n }\n\n .checkmark::after {\n content: "";\n position: absolute;\n display: none;\n top: 3px;\n left: 3px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background: ${t.palette.primary[500]};\n }\n\n input:checked ~ .checkmark::after {\n display: block;\n }\n\n input:disabled:checked ~ .checkmark::after {\n background-color: ${t.palette.gray[300]};\n }\n `}}
|
|
369
|
+
`,rc=t.styled.span.attrs({className:"checkmark"})``,sc=e.forwardRef((function({defaultChecked:t=!1,disabled:e=!1,label:n,name:i,onChange:r,onClick:s,value:o,...a},l){return y.jsxs(ic,{$disabled:e,children:[y.jsx("input",{"aria-label":i,defaultChecked:t,disabled:e,name:i,onChange:r,onClick:s,ref:l,type:"radio",value:o,...a}),y.jsx(rc,{}),n??null]})})),oc=t.styled.a`
|
|
370
|
+
${({theme:t})=>`\n align-items: center;\n display: flex;\n background: ${t.palette.white};\n border-radius: ${t.spacing[.5]};\n cursor: pointer;\n gap: ${t.spacing[1]};\n padding:\n ${t.spacing[.5]}\n ${t.spacing[1]}\n ${t.spacing[.5]}\n ${t.spacing[.5]};\n width: 1143px;\n\n &:hover {\n background: ${t.palette.gray[100]};\n\n > div.icon-wrap {\n background: ${t.palette.gradients["01"]};\n\n path {\n fill: ${t.palette.white};\n }\n }\n }\n\n @media screen\n and (min-width: ${t.breakpoints.sm})\n and (max-width: ${t.breakpoints.md})\n {\n width: 905px;\n }\n\n @media screen\n and (min-width: 40em)\n and (max-width: ${t.breakpoints.sm})\n {\n width: 475px;\n }\n\n @media screen and (max-width: 40em) {\n width: 270px;\n }\n `}
|
|
371
|
+
`,ac=t.styled.div.attrs({className:"icon-wrap"})`
|
|
372
|
+
${({theme:t})=>`\n align-items: center;\n background: ${t.palette.primary[25]};\n border-radius: ${t.spacing[.25]};\n display: flex;\n justify-content: center;\n min-width: ${t.spacing[2.5]};\n height: ${t.spacing[2.5]};\n padding: ${t.spacing[.5]};\n\n span {\n font-size: 20px;\n }\n `}
|
|
373
|
+
`,lc=t.styled.div`
|
|
374
|
+
${({theme:t})=>`\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[1.5]};\n width: 1193px;\n\n > :is(form, .dropdown) {\n border-radius: ${t.spacing[.5]};\n border: 1px solid ${t.palette.gray[200]};\n background-color: ${t.palette.white};\n }\n\n @media screen\n and (min-width: ${t.breakpoints.sm})\n and (max-width: ${t.breakpoints.md})\n {\n width: 954px;\n }\n\n @media screen\n and (min-width: 40em)\n and (max-width: ${t.breakpoints.sm})\n {\n width: 526px;\n }\n\n @media screen and (max-width: 40em) {\n width: 320px;\n }\n `}
|
|
375
|
+
`,cc=t.styled.form`
|
|
376
|
+
${({theme:t})=>`\n align-items: center;\n display: flex;\n gap: ${t.spacing[.5]};\n justify-content: space-between;\n padding: ${t.spacing[1]} ${t.spacing[1.5]};\n width: 100%;\n `}
|
|
377
|
+
`,hc=t.styled.input`
|
|
378
|
+
${({theme:t})=>`\n flex: 1 0 0;\n border: none;\n color: ${t.palette.gray[600]};\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.md};\n font-weight: ${t.typography.weight.regular};\n line-height: ${t.spacing[1.5]};\n outline: none;\n\n &::placeholder {\n color: ${t.palette.gray[400]};\n }\n\n &::-webkit-search-decoration,\n &::-webkit-search-cancel-button,\n &::-webkit-search-results-button,\n &::-webkit-search-results-decoration {\n -webkit-appearance:none;\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n font-size: ${t.typography.text.sm};\n }\n `}
|
|
379
|
+
`,uc=t.styled.button`
|
|
380
|
+
${({theme:t})=>`\n align-items: center;\n border-radius: ${t.spacing[.5]};\n display: flex;\n width: ${t.spacing[2.5]};\n height: ${t.spacing[2.5]};\n padding: ${t.spacing[.625]} ${t.spacing[1]};\n justify-content: center;\n gap: ${t.spacing[.5]};\n flex-shrink: 0;\n\n span {\n color: ${t.palette.gray[400]};\n }\n\n &:hover {\n background-color: ${t.palette.gray[100]};\n }\n `}
|
|
381
|
+
`,pc=t.styled.div.attrs({className:"dropdown"})`
|
|
382
|
+
${({theme:t,$empty:e=!1,$showHits:n=!1})=>`\n align-items: flex-start;\n align-self: stretch;\n background-repeat: no-repeat;\n background-size: 100% 100%;\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[.5]};\n max-height: ${n?"270px":"500px"};\n overflow: hidden auto;\n padding: ${t.spacing[1.5]};\n scrollbar-color: ${t.palette.gray[600]} ${t.palette.gray[100]};\n scroll-padding: ${t.spacing[.5]};\n scrollbar-width: thin;\n\n @media screen and (max-width: ${t.breakpoints.sm}) and (${!e}) {\n max-height: 410px;\n }\n ${e&&`\n @media screen and (min-width: ${t.breakpoints.mobile}) {\n border: none !important;\n background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729784164/airs/search-bar/empty_state_bg.webp);\n }\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n border: none !important;\n background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729783908/airs/search-bar/empty_state_bg_mobile.webp);\n }\n `}\n\n &::-webkit-scrollbar {\n height: ${t.spacing[.5]};\n width: ${t.spacing[.5]};\n }\n &::-webkit-scrollbar-track {\n background: ${t.palette.gray[100]};\n }\n &::-webkit-scrollbar-thumb {\n background-color: ${t.palette.gray[600]};\n border-radius: ${t.spacing[5]};\n height: ${t.spacing[.5]};\n }\n `}
|
|
383
|
+
`,dc=({hit:t,icon:e="infinity",showIcon:n=!1})=>{const{slug:i,title:r}=t,s=String(i).startsWith("/pages/")?String(i).replace("/pages/","/"):String(i);return y.jsxs(oc,{href:s,rel:"nofollow noopener noreferrer",children:[n&&y.jsx(ac,{children:y.jsx(V,{icon:e,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),y.jsx(L,{color:v.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(r)})]})},fc=[{hit:{slug:"/services/continuous-hacking/",title:"Continuous Hacking"},icon:"infinity"},{hit:{slug:"/platform/",title:"Platform"},icon:"sidebar"},{hit:{slug:"/plans/",title:"Plans"},icon:"star-christmas"},{hit:{slug:"/blog/",title:"Blog"},icon:"pen-line"}],mc={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},gc=t.styled.button`
|
|
384
|
+
${({theme:t})=>`\n align-items: center;\n background-color: ${t.palette.white};\n border: 1px solid ${t.palette.gray[100]};\n border-radius: ${t.spacing[.25]};\n color: ${t.palette.gray[800]};\n cursor: pointer;\n display: flex;\n font-size: ${t.typography.text.sm};\n gap: ${t.spacing[.25]};\n height: 21px;\n width: 21px;\n justify-content: center;\n padding: 6px;\n transition: all 0.25s ease;\n\n &[aria-label] {\n height: auto;\n width: auto;\n }\n\n &.success {\n border-color: ${t.palette.success[500]};\n color: ${t.palette.success[500]};\n\n &:hover {\n background-color: ${t.palette.success[200]};\n }\n }\n\n &:disabled {\n cursor: not-allowed;\n background: ${t.palette.gray[200]};\n border-color: ${t.palette.gray[200]};\n color: ${t.palette.gray[300]};\n }\n\n &:hover:not(.success) {\n background-color: ${t.palette.gray[100]};\n }\n `}
|
|
385
|
+
`,yc={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},vc=t.styled.button`
|
|
386
|
+
${({theme:t})=>`\n align-items: center;\n color: ${t.palette.gray[500]};\n display: flex;\n gap: ${t.spacing[.625]};\n justify-content: center;\n padding: ${t.spacing[.75]};\n text-align: center;\n width: 151px;\n\n &.active {\n color: ${t.palette.gray[800]};\n border-bottom: 3px solid ${t.palette.primary[400]};\n }\n\n &:hover {\n color: ${t.palette.gray[800]};\n }\n `}
|
|
387
|
+
`,bc=t.styled.div`
|
|
388
|
+
${({theme:t})=>`\n align-items: center;\n border-bottom: 2px solid ${t.palette.gray[200]};\n display: flex;\n gap: ${t.spacing[3]};\n height: ${t.spacing[3]};\n width: max-content;\n `}
|
|
389
|
+
`,xc=t.styled(r.NavLink)`
|
|
390
|
+
${({theme:t})=>`\n align-items: center;\n background: transparent;\n cursor: pointer;\n color: ${t.palette.gray[800]};\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n display: flex;\n font-weight: ${t.typography.weight.regular};\n padding: ${t.spacing[.625]} ${t.spacing[.5]};\n position: relative;\n text-align: center;\n text-decoration: unset;\n\n &:disabled {\n cursor: not-allowed;\n background-color: ${t.palette.gray[300]};\n color: ${t.palette.gray[300]};\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.gray[100]};\n color: ${t.palette.gray[800]};\n }\n\n &.active {\n background-color: transparent;\n border-bottom: solid 4px ${t.palette.primary[500]};\n padding-bottom: calc(${t.spacing[.625]} - 4px);\n\n &:hover {\n background-color: transparent;\n border-bottom: solid 4px ${t.palette.primary[500]};\n }\n }\n `}
|
|
391
|
+
`,wc=({label:t,id:e,isActive:n=!1,link:i,notificationSign:r,onClick:s,tooltip:o=""})=>y.jsx(Ti,{display:"flex",id:`${e}-tooltip`,tip:o,children:y.jsxs(xc,{className:n?"active":"",id:e,onClick:s,to:i,children:[t,y.jsx(Xl,{left:null==r?void 0:r.left,numberIndicator:null==r?void 0:r.numberIndicator,show:null==r?void 0:r.show,top:null==r?void 0:r.top,variant:null==r?void 0:r.variant})]})}),{getVariant:kc}=l((t=>({default:`\n --tag-padding-y: ${t.spacing[.25]};\n --tag-padding-x: ${t.spacing[.25]};\n\n background-color: ${t.palette.gray[200]};\n color: ${t.palette.gray[800]};\n `,error:`\n background-color: ${t.palette.error[50]};\n color: ${t.palette.error[700]};\n `,inactive:`\n background-color: ${t.palette.gray[200]};\n color: theme.palette.gray[400];\n `,new:`\n background-color: ${t.palette.primary[300]};\n color: ${t.palette.primary[25]};\n `,reachable:`\n background-color: ${t.palette.gray[50]};\n color: ${t.palette.gray[800]};\n `,remediation:`\n background-color: inherit;\n border: 1px solid ${t.palette.gray[300]};\n color: ${t.palette.gray[400]};\n `,review:`\n background-color: ${t.palette.warning[400]};\n color: ${t.palette.warning[700]};\n `,role:`\n background-color: ${t.palette.gray[800]};\n color: ${t.palette.white};\n `,success:`\n background-color: ${t.palette.success[50]};\n color: ${t.palette.success[700]};\n `,technique:`\n --tag-padding-y: ${t.spacing[.25]};\n --tag-padding-x: ${t.spacing[.75]};\n\n background-color: inherit;\n border: 1px solid ${t.palette.success[800]};\n color: ${t.palette.success[800]};\n `,warning:`\n background-color: ${t.palette.warning[50]};\n color: ${t.palette.warning[700]};\n `}))),_c=t.styled.span`
|
|
392
|
+
${({theme:t,$fontSize:e=t.typography.text.xs,$variant:n})=>`\n align-items: center;\n border-radius: ${t.spacing["technique"===n?1:.25]};\n display: inline-flex;\n gap: ${t.spacing[.25]};\n font-family: ${t.typography.type.primary};\n font-size: ${e};\n font-style: normal;\n font-weight: ${t.typography.weight.regular};\n justify-content: center;\n line-height: 18px;\n margin-right: ${t.spacing[.5]};\n padding: var(--tag-padding-y) var(--tag-padding-x);\n white-space: nowrap;\n width: max-content;\n\n > a {\n font-size: ${t.typography.text.xs};\n }\n\n ${kc(t,n)}\n `}
|
|
393
|
+
`,Sc=t.styled.div`
|
|
394
|
+
${({theme:t})=>`\n align-items: center;\n background-color: ${t.palette.gray[200]};\n border-radius: 34px;\n cursor: pointer;\n display: flex;\n height: 20px;\n position: relative;\n transition: 0.2s;\n width: 36px;\n `}
|
|
395
|
+
`,$c=t.styled.div`
|
|
396
|
+
${({theme:t})=>`\n background-color: ${t.palette.white};\n border-radius: 50%;\n height: ${t.spacing[1]};\n left: 2px;\n position: absolute;\n transition: 0.2s;\n width: ${t.spacing[1]};\n z-index: 1;\n `}
|
|
397
|
+
`,Cc=t.styled.label`
|
|
398
|
+
display: inline-block;
|
|
399
|
+
|
|
400
|
+
input {
|
|
401
|
+
position: absolute;
|
|
402
|
+
height: 0;
|
|
403
|
+
opacity: 0;
|
|
404
|
+
width: 0;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
input:checked + ${Sc} {
|
|
408
|
+
background-color: ${({theme:t})=>t.palette.primary[500]};
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
input:checked + ${Sc} > div {
|
|
412
|
+
transform: translateX(100%);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
input:disabled + ${Sc} {
|
|
416
|
+
cursor: not-allowed;
|
|
417
|
+
background-color: ${({theme:t})=>t.palette.gray[100]};
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
input:disabled + ${Sc} > div {
|
|
421
|
+
background-color: ${({theme:t})=>t.palette.gray[200]};
|
|
422
|
+
border: 1px solid ${({theme:t})=>t.palette.gray[200]};
|
|
423
|
+
}
|
|
424
|
+
`,Ac=e.forwardRef((function({defaultChecked:t,disabled:n=!1,justify:i,name:r,leftDescription:s,rightDescription:o,...a},l){const c=!0===t?"on":"off",h="object"==typeof s&&s.on&&s.off?s[c]:s,u=e.useCallback((t=>{t.stopPropagation()}),[]);return y.jsxs(M,{alignItems:"center",display:"flex",gap:.75,justify:i,children:[h,y.jsxs(Cc,{onClick:u,children:[y.jsx("input",{...a,"aria-disabled":n,"aria-label":r,checked:!0===t,disabled:n,name:r,ref:l,type:"checkbox"}),y.jsx(Sc,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:y.jsx($c,{})})]}),o]})})),Pc=t.styled.div`
|
|
425
|
+
${({theme:t})=>`\n align-items: center;\n display: flex;\n position: relative;\n width: 352px;\n\n > button:first-child {\n border-radius: ${t.spacing[2]} 0 0 ${t.spacing[2]};\n }\n > button:last-child {\n --angle-grad: -45deg;\n border-radius: 0 ${t.spacing[2]} ${t.spacing[2]} 0;\n }\n\n &::before {\n background: ${t.palette.gradients["01"]} border-box;\n border-radius: ${t.spacing[2]};\n content: "";\n position: absolute;\n inset: 0;\n border: 2px solid transparent;\n mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n mask-composite: exclude;\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n width: 320px;\n }\n `}
|
|
426
|
+
`,Tc=t.styled.button`
|
|
427
|
+
${({theme:t})=>`\n align-items: center;\n background: linear-gradient(\n var(--angle-grad),\n rgba(243, 38, 55, var(--opacity-grad)),\n rgba(184, 7, 93, var(--opacity-grad))\n );\n color: ${t.palette.primary[500]};\n cursor: pointer;\n display: flex;\n flex: 1 0 0;\n justify-content: center;\n gap: ${t.spacing[.625]};\n height: ${t.spacing[4]};\n padding: ${t.spacing[1.25]};\n position: relative;\n transition: color, --opacity-grad 0.5s ease-in-out;\n\n &.selected {\n --opacity-grad: 1;\n background: linear-gradient(\n var(--angle-grad),\n rgba(243, 38, 55, var(--opacity-grad)),\n rgba(184, 7, 93, var(--opacity-grad))\n );\n color: ${t.palette.white};\n }\n `}
|
|
428
|
+
`;exports.Accordion=q,exports.Alert=ji,exports.BaseButtonComponent=T,exports.BaseComponent=P,exports.BaseSpanComponent=j,exports.BaseTextComponent=E,exports.Button=Di,exports.Carousel=({slides:t,interval:n=300})=>{const{cycle:i,setCycle:r,setProgress:s}=Oi(n,t.length),o=e.useCallback((t=>()=>{r(t),s(0)}),[r,s]);return y.jsxs(Mi,{children:[y.jsx(Fi,{$currentIndex:i,children:t.map(((t,e)=>{const n=`slide-${e}`;return y.jsx(Ii,{children:t.content},n)}))}),y.jsx(Li,{children:t.map(((t,e)=>{const n=`nav-button-${e}`;return y.jsx(Ri,{$isActive:e===i,"data-testid":e===i?"active":"inactive",onClick:o(e)},n)}))})]})},exports.Checkbox=$r,exports.CloudImage=Pa,exports.CodeSnippet=({noCodeMessage:n="Code snippet not available",snippet:r})=>{const s=t.useTheme(),[o,a]=e.useState(!1),[l,c]=e.useState(!0),h=e.useCallback((()=>{a((t=>!t))}),[a]),u=e.useCallback((()=>{if(i.isNil(r)||i.isEmpty(r)||!i.isString(r))return c(!1),n;const t=r.split("\n");return t.length>8&&!o?`${[...t].splice(0,7).join("\n")}\n${t[8]}...`:(t.length<8&&c(!1),r)}),[o,r,n]),p=e.useMemo(u,[u]),d=e.useCallback((async()=>{await navigator.clipboard.writeText(p)}),[p]);return y.jsxs(M,{bgColor:s.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[y.jsx(Ta,{"data-private":!0,children:y.jsx("pre",{children:y.jsx("code",{className:"language-none",children:p})})}),y.jsxs(Ea,{children:[y.jsx(Ei,{height:s.spacing[2.5],icon:"copy",iconColor:s.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:d,variant:"ghost",width:s.spacing[2.5]}),!!l&&y.jsxs(Di,{onClick:h,variant:"ghost",children:[o?"Show Less":"Show more",y.jsx(V,{icon:o?"chevron-up":"chevron-down",iconColor:s.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:d})]})]})]})},exports.Container=M,exports.ContentCard=Fa,exports.ContentCardCarousel=({description:t,items:n,title:i,titleHighlighted:r})=>{const s=e.useRef(null);return y.jsxs(Ra,{"data-testid":"content-card-carousel",children:[y.jsxs(M,{alignItems:"flex-start",display:"flex",justify:"space-between",children:[y.jsxs(M,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.625,maxWidth:"800px",children:[y.jsxs(R,{display:"inline",fontWeight:"semibold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:[i+" "," ",y.jsx("span",{className:"inline",children:r})]}),y.jsx(L,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:t})]}),y.jsx(La,{containerRef:s,id:"desktop"})]}),y.jsx(M,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:s,scroll:"x",children:y.jsx(M,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:n.map(((t,e)=>y.jsx(Fa,{...t},`${e}-${t.title}`)))})}),y.jsx(La,{containerRef:s,id:"mobile"})]})},exports.CustomThemeProvider=({children:e})=>y.jsx(t.ThemeProvider,{theme:v,children:e}),exports.Divider=Oa,exports.FilePreview=({alt:t,fileType:e,width:n="100%",opacity:r=0,src:s,height:o="auto"})=>"video"===e||((t,e)=>!i.isUndefined(e)&&i.includes(t,(t=>{if(i.isNil(t))return"";const e=t.split(".");return(e.length>1?i.last(e):"").toLowerCase()})(e)))(["webm"],s)?y.jsx(za,{$opacity:r,children:y.jsxs("video",{controls:!0,height:o,muted:!0,width:n,children:[y.jsx("source",{src:s,type:"video/webm"}),y.jsx(Wa,{href:s,iconPosition:"hidden",children:s})]})}):y.jsx(za,{$opacity:r,children:y.jsx("img",{alt:t,height:o,src:s,width:n})}),exports.FixedTabs=({items:t})=>y.jsx(bc,{children:t.map((({isActive:t,label:e,onClick:n},i)=>y.jsx(vc,{className:t?"active":"",onClick:n,type:"button",children:y.jsx(R,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e})},`${e}-${i}`)))}),exports.Form=({children:t,name:e,onSubmit:n,submitDisabled:i,submitLabel:r="Submit"})=>y.jsx(Ua,{"aria-label":e,name:e,onSubmit:n,children:y.jsxs(Ha,{children:[t,y.jsx(Di,{disabled:i,type:"submit",children:r})]})}),exports.FormItem=Ga,exports.Heading=R,exports.Icon=V,exports.IconButton=Ei,exports.InteractiveCard=({category:e,description:n,href:i,icon:r,location:s,title:o})=>{const a=t.useTheme();return y.jsxs(Cl,{children:[y.jsxs(M,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:1.5,height:"100%",id:"uncover",justify:"space-between",children:[y.jsxs("div",{className:"flex flex-col gap-0.5",children:[y.jsx(L,{color:a.palette.white,size:"sm",sizeSm:"xs",children:e}),y.jsx(R,{color:a.palette.white,fontWeight:"bold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:o})]}),y.jsxs("div",{className:"flex flex-col gap-0.5",children:[y.jsx(L,{color:a.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),y.jsx(L,{color:a.palette.white,fontWeight:"bold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:s})]})]}),y.jsxs(M,{alignItems:"self-start",display:"flex",flexDirection:"column",gap:2,height:"100%",id:"hovered",justify:"space-between",pt:1,children:[y.jsx(R,{color:a.palette.white,fontWeight:"bold",lineSpacing:1.75,lineSpacingSm:1.5,size:"md",sizeSm:"sm",children:o}),y.jsxs("div",{className:"flex flex-col gap-8",children:[y.jsx(L,{color:a.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:n}),y.jsx(Di,{external:!0,href:i,mode:"dark",variant:"link",width:"max-content",children:"Download now"})]})]}),y.jsx(Pl,{icon:r})]})},exports.LanguageSelector=({items:t,handleClick:n,mode:i="light"})=>{const r=t??Fl,[s,o]=e.useState(r[0].text),a=e.useCallback((t=>()=>{n(t.text),o(t.text)}),[n]);return y.jsxs(Dl,{children:[y.jsxs(El,{className:i,children:[y.jsx(V,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),s]}),y.jsx(jl,{children:r.map(((t,e)=>y.jsx(Ml,{disabled:t.disabled,mode:i,onClick:a(t),text:t.text},`${t.text}_${e}`)))})]})},exports.Link=Wa,exports.ListItem=({children:n,disabled:i=!1,icon:r,iconType:s="fa-light",href:o,onClick:a,onKeyDown:l,selected:c=!1,value:h,...u})=>{const p=t.useTheme().palette.gray[i?300:800],d=i?e.Children.map(n,(t=>e.isValidElement(t)?e.cloneElement(t,{disabled:i,...t.props}):t)):n;return y.jsxs(Il,{"aria-disabled":i,"aria-label":h,"aria-selected":c,"data-testid":h,onClick:a,onKeyDown:l,value:h,...u,children:[void 0!==r||void 0!==h?y.jsxs(M,{alignItems:"center",display:"flex",gap:.625,children:[r?y.jsx(V,{disabled:i,icon:r,iconColor:p,iconSize:"xs",iconType:s}):null,void 0===o?d:y.jsx(Wa,{href:o,children:d})]}):null,c?y.jsx(V,{disabled:i,icon:"check",iconColor:p,iconSize:"xs",iconType:s}):null]})},exports.ListItemsWrapper=Rl,exports.LittleFlag=({bgColor:t,children:e,txtDecoration:n,ml:i=1})=>y.jsx(Ll,{$bgColor:t,$txtDecoration:n,className:`ml-${i}`,children:e}),exports.Logo=({publicId:t,variant:e})=>y.jsx(M,{...Ol[e],children:y.jsx(Pa,{alt:"logo",publicId:t})}),exports.LogoCarousel=({fusion:t=!1,logos:e=ql})=>y.jsxs(zl,{children:[t&&y.jsx(Nl,{className:"left"}),y.jsx(Vl,{children:[...e,...e].map(((t,e)=>y.jsx(Pa,{alt:`${t}-${e}`,height:"80px",plugins:[vo()],publicId:t,width:"140px"},`${t}-${e}`)))}),t&&y.jsx(Nl,{className:"right"})]}),exports.Lottie=t=>{const{size:e}=t;return y.jsx(Ul,{$size:e,...t})},exports.MessageBanner=({message:n,onClickButton:i,buttonText:r,buttonFontWeight:s="regular",icon:o,onClose:a,variant:l="web"})=>{const c=t.useTheme(),[h,u]=e.useState(!0),p=e.useCallback((()=>{u(!1),null==a||a()}),[a]),d=(t=>"platform"===t?{normal:"sm",small:void 0}:{normal:"md",small:"sm"})(l);return y.jsxs(M,{alignItems:"center",bgGradient:c.palette.gradients["01"],display:h?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[y.jsxs(M,{display:"flex",gap:.5,justify:"center",width:"100%",children:[y.jsx(M,{children:"string"==typeof n?y.jsx(L,{color:c.palette.white,display:"inline",size:d.normal,sizeSm:d.small,children:n}):n}),i?y.jsxs(Hl,{onClick:i,children:[y.jsx(L,{color:c.palette.white,fontWeight:s,size:d.normal,sizeSm:d.small,textDecoration:"underline",children:r}),y.jsx(V,{icon:o??"arrow-right",iconColor:c.palette.white,iconSize:"xs",iconType:"bold"===s?"fa-regular":"fa-light"})]}):void 0]}),y.jsx(V,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"xs",iconType:"fa-light",onClick:p})]})},exports.Notification=({description:n,onClose:i,title:r,variant:s})=>{const o=t.useTheme(),a=e.useCallback((()=>{null==i||i()}),[i]);return y.jsxs(Gl,{$variant:s,className:`notification notification__${s}`,children:[y.jsxs(Ql,{$variant:s,children:[y.jsx(V,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),y.jsx(V,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),y.jsx(V,{icon:Jl(s),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),y.jsxs(M,{pr:1.5,children:[y.jsx(R,{fontWeight:"bold",size:"xs",children:r}),y.jsx(L,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:n})]}),y.jsx(Ei,{height:"fit-content",icon:"close",iconColor:o.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:a,px:.125,py:.125,variant:"ghost"})]})},exports.NotificationSign=Xl,exports.NumberInput=ec,exports.OutlineContainer=_l,exports.PhoneInput=Sl,exports.ProgressBar=({progressTime:n=10,onComplete:i})=>{const r=t.useTheme(),[s,o]=e.useState(0);return e.useEffect((()=>{100===s&&(null==i||i())}),[s,i]),e.useEffect((()=>{const t=setInterval((()=>{o((t=>100===t?0:t+1))}),1e3*n/100);return()=>{clearInterval(t)}}),[s,n]),y.jsx(M,{bgColor:r.palette.gray[200],height:"4px",children:y.jsx(nc,{$animationTime:n,bgGradient:r.palette.gradients["01"],height:"100%",width:`${s}%`})})},exports.RadioButton=sc,exports.SearchBar=({items:t,placeholder:n="Search",refine:i,query:r})=>{const[s,o]=e.useState(r),[a,l]=e.useState(!1),c=e.useRef(null),h=e.useRef(null),u=s.length>=2,p=e.useCallback((t=>{o(t),i(t)}),[i]),d=e.useCallback((()=>{p("")}),[p]),f=e.useCallback((()=>{l(!0)}),[]),m=e.useCallback((t=>{p(t.currentTarget.value)}),[p]),g=e.useCallback((t=>{t.preventDefault(),t.stopPropagation(),d(),h.current&&h.current.focus()}),[d]),b=e.useCallback((t=>{t.preventDefault(),t.stopPropagation(),h.current&&h.current.blur()}),[]);return zi(c.current,(()=>{d(),l(!1)}),!0),y.jsxs(lc,{ref:c,children:[y.jsxs(cc,{action:"",noValidate:!0,onReset:g,onSubmit:b,role:"search",children:[y.jsxs("div",{className:"flex gap-2 w-full",children:[y.jsx("div",{className:"h-10 p-2",children:y.jsx(V,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),y.jsx(hc,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:m,onFocus:f,placeholder:n,ref:h,spellCheck:!1,type:"search",value:s})]}),u&&y.jsx(uc,{type:"reset",children:y.jsx(V,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),a&&s.length<2&&y.jsxs(pc,{children:[y.jsx(L,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Suggested"}),y.jsx("div",{className:"flex flex-col items-start self-stretch",children:fc.map((({hit:t,icon:e},n)=>y.jsx(dc,{hit:t,icon:e,showIcon:!0},`${e}-${n}`)))}),y.jsx(L,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),y.jsx(dc,{hit:mc.hit,icon:mc.icon,showIcon:!0})]}),u&&t.length>0&&y.jsxs(pc,{$showHits:u,children:[y.jsx(L,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Results"}),y.jsx("div",{className:"flex flex-col items-start self-stretch",children:t.map((t=>y.jsx(dc,{hit:t},t.objectID)))})]}),u&&0===t.length&&y.jsx(pc,{$empty:0===t.length,children:y.jsxs("div",{className:"items-center\tflex flex-col\tgap-4 py-[90px] w-full",children:[y.jsx(Pa,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),y.jsx(R,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),y.jsxs(L,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${s}” did not match.`,y.jsx("br",{}),"Please try again."]}),y.jsx(Di,{mode:"light",onClick:d,variant:"secondaryWeb",children:"Clear search"})]})})]})},exports.Tab=wc,exports.TableButton=({disabled:e=!1,icon:n,id:i,label:r,name:s,onClick:o,type:a="button",variant:l})=>{const c=t.useTheme(),h=y.jsxs(gc,{"aria-label":s??void 0,className:l,disabled:e,id:i,onClick:o,type:a,children:[y.jsx(V,{clickable:!1,icon:n??yc[l].icon,iconSize:void 0===s?"xxs":"xs",iconType:"fa-light"}),s??void 0]});return y.jsxs(M,{alignItems:"center",display:"flex",children:[h,r&&y.jsx(L,{color:c.palette.gray[800],ml:.5,size:"sm",children:r})]})},exports.Tabs=({items:e,borders:n=!0,box:i=!1})=>{const r=t.useTheme();return y.jsx(M,{bgColor:r.palette.white,border:i?"1px solid":void 0,borderBottom:n?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:i?r.palette.gray[200]:void 0,borderRadius:i?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,padding:i?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,width:i?"max-content":"100%",children:e.map((({id:t,isActive:e,link:n,label:i,notificationSign:r,onClick:s,tooltip:o})=>y.jsx(wc,{id:t,isActive:e,label:i,link:n,notificationSign:r,onClick:s,tooltip:o},t)))})},exports.Tag=({children:t,disabled:e,icon:n,iconColor:i="inherit",id:r="close-tag",fontSize:s,onClose:o,variant:a="default"})=>y.jsxs(_c,{$fontSize:s,$variant:a,children:[n&&y.jsx(V,{icon:n,iconColor:i,iconSize:"xs"}),t,o?y.jsx(Ei,{disabled:e,icon:"xmark",iconSize:"xs",iconType:"fa-light",id:r,onClick:o,px:.125,py:.125,variant:"ghost"}):void 0]}),exports.Text=L,exports.TextInput=$l,exports.Toggle=Ac,exports.ToggleButton=({defaultSelection:t,options:n,handleClick:i})=>{const[r,s]=e.useState(t??n[0]),o=e.useCallback((t=>()=>{s(t),i(t)}),[i]);return y.jsx(Pc,{children:n.map(((t,e)=>y.jsx(Tc,{className:`${t.includes(r)&&"selected"}`,onClick:o(t),children:y.jsx(L,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:t})},`${t}-${e}`)))})},exports.Tooltip=Ti,exports.getStyledConfig=A,exports.hiddenProps=c,exports.icons=["lock-keyhole","bolt","books","brain-circuit","briefcase","bug","buildings","bullseye-pointer","calendar-clock","calendar-xmark","chart-network","clipboard-check","clouds","comment","envelope","eye","file","flag","globe","hand-holding-dollar","hands-clapping","headset","hexagon-exclamation","light-emergency-on","magnifying-glass","pen-line","plane-departure","screwdriver-wrench","sensor-triangle-exclamation","shield-check","sidebar","skull","sliders","star-christmas","telescope","trash","unlock","user-group","user-hoodie","xmark"],exports.setBorder=_,exports.setDisplay=S,exports.setInteraction=C,exports.setMargin=w,exports.setPadding=x,exports.setPosition=k,exports.setText=$,exports.theme=v,exports.uniqueIcons=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],exports.useCarousel=Oi,exports.useClickOutside=zi,exports.useCloudinaryImage=kr,exports.variantBuilder=l;
|