diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/404.html b/404.html new file mode 100644 index 00000000..831b476c --- /dev/null +++ b/404.html @@ -0,0 +1,1237 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Tart + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + + + +
+ + + + + + + +
+ +
+ + + + +
+
+ + + +
+
+
+ + + + + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+ +
+ +

404 - Not found

+ +
+
+ + + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/CNAME b/CNAME new file mode 100644 index 00000000..0275f08d --- /dev/null +++ b/CNAME @@ -0,0 +1,2 @@ +tart.run +www.tart.run diff --git a/assets/TartLicenseSubscription.pdf b/assets/TartLicenseSubscription.pdf new file mode 100644 index 00000000..ed89196f Binary files /dev/null and b/assets/TartLicenseSubscription.pdf differ diff --git a/assets/animations/Orchard.lottie b/assets/animations/Orchard.lottie new file mode 100644 index 00000000..153598ba Binary files /dev/null and b/assets/animations/Orchard.lottie differ diff --git a/assets/animations/TartLogo.lottie b/assets/animations/TartLogo.lottie new file mode 100644 index 00000000..f22a1153 Binary files /dev/null and b/assets/animations/TartLogo.lottie differ diff --git a/assets/external/fonts.googleapis.com/css.49ea35f2.css b/assets/external/fonts.googleapis.com/css.49ea35f2.css new file mode 100644 index 00000000..da1da116 --- /dev/null +++ b/assets/external/fonts.googleapis.com/css.49ea35f2.css @@ -0,0 +1,594 @@ +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 300; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc3CsTKlA.woff2) format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 300; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc-CsTKlA.woff2) format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 300; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc2CsTKlA.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 300; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc5CsTKlA.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 300; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc1CsTKlA.woff2) format('woff2'); + unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 300; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc0CsTKlA.woff2) format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 300; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc6CsQ.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xFIzIFKw.woff2) format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xMIzIFKw.woff2) format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xEIzIFKw.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xLIzIFKw.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xHIzIFKw.woff2) format('woff2'); + unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xGIzIFKw.woff2) format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xIIzI.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic3CsTKlA.woff2) format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic-CsTKlA.woff2) format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic2CsTKlA.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic5CsTKlA.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic1CsTKlA.woff2) format('woff2'); + unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic0CsTKlA.woff2) format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic6CsQ.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 300; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fCRc4EsA.woff2) format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 300; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fABc4EsA.woff2) format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 300; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fCBc4EsA.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 300; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fBxc4EsA.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 300; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fCxc4EsA.woff2) format('woff2'); + unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 300; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fChc4EsA.woff2) format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 300; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fBBc4.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu72xKOzY.woff2) format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu5mxKOzY.woff2) format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7mxKOzY.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4WxKOzY.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7WxKOzY.woff2) format('woff2'); + unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7GxKOzY.woff2) format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCRc4EsA.woff2) format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfABc4EsA.woff2) format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCBc4EsA.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfBxc4EsA.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCxc4EsA.woff2) format('woff2'); + unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2) format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto Mono'; + font-style: italic; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEluUlYIw.woff2) format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto Mono'; + font-style: italic; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEn-UlYIw.woff2) format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek */ +@font-face { + font-family: 'Roboto Mono'; + font-style: italic; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEmOUlYIw.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto Mono'; + font-style: italic; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtElOUlYIw.woff2) format('woff2'); + unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto Mono'; + font-style: italic; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEleUlYIw.woff2) format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto Mono'; + font-style: italic; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEm-Ul.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto Mono'; + font-style: italic; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEluUlYIw.woff2) format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto Mono'; + font-style: italic; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEn-UlYIw.woff2) format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek */ +@font-face { + font-family: 'Roboto Mono'; + font-style: italic; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEmOUlYIw.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto Mono'; + font-style: italic; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtElOUlYIw.woff2) format('woff2'); + unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto Mono'; + font-style: italic; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEleUlYIw.woff2) format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto Mono'; + font-style: italic; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEm-Ul.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSV0mf0h.woff2) format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSx0mf0h.woff2) format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSt0mf0h.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSd0mf0h.woff2) format('woff2'); + unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSZ0mf0h.woff2) format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSh0mQ.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSV0mf0h.woff2) format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSx0mf0h.woff2) format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSt0mf0h.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSd0mf0h.woff2) format('woff2'); + unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSZ0mf0h.woff2) format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 700; + font-display: fallback; + src: url(../fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSh0mQ.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc-CsTKlA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc-CsTKlA.woff2 new file mode 100644 index 00000000..943c5a0a Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc-CsTKlA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc0CsTKlA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc0CsTKlA.woff2 new file mode 100644 index 00000000..2bfc2cee Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc0CsTKlA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc1CsTKlA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc1CsTKlA.woff2 new file mode 100644 index 00000000..b2391b92 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc1CsTKlA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc2CsTKlA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc2CsTKlA.woff2 new file mode 100644 index 00000000..a4699c78 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc2CsTKlA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc3CsTKlA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc3CsTKlA.woff2 new file mode 100644 index 00000000..bfcc76fa Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc3CsTKlA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc5CsTKlA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc5CsTKlA.woff2 new file mode 100644 index 00000000..d4ec1890 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc5CsTKlA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc6CsQ.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc6CsQ.woff2 new file mode 100644 index 00000000..22c57b01 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc6CsQ.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic-CsTKlA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic-CsTKlA.woff2 new file mode 100644 index 00000000..d2f30b58 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic-CsTKlA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic0CsTKlA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic0CsTKlA.woff2 new file mode 100644 index 00000000..c88b8aea Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic0CsTKlA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic1CsTKlA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic1CsTKlA.woff2 new file mode 100644 index 00000000..6363b1c7 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic1CsTKlA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic2CsTKlA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic2CsTKlA.woff2 new file mode 100644 index 00000000..dd5a4a2e Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic2CsTKlA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic3CsTKlA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic3CsTKlA.woff2 new file mode 100644 index 00000000..6abf54d0 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic3CsTKlA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic5CsTKlA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic5CsTKlA.woff2 new file mode 100644 index 00000000..c8091bc9 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic5CsTKlA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic6CsQ.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic6CsQ.woff2 new file mode 100644 index 00000000..a56a6ede Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic6CsQ.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xEIzIFKw.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xEIzIFKw.woff2 new file mode 100644 index 00000000..508baefb Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xEIzIFKw.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xFIzIFKw.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xFIzIFKw.woff2 new file mode 100644 index 00000000..9213da01 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xFIzIFKw.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xGIzIFKw.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xGIzIFKw.woff2 new file mode 100644 index 00000000..ef920e5a Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xGIzIFKw.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xHIzIFKw.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xHIzIFKw.woff2 new file mode 100644 index 00000000..9a378af0 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xHIzIFKw.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xIIzI.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xIIzI.woff2 new file mode 100644 index 00000000..e1b7a79f Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xIIzI.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xLIzIFKw.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xLIzIFKw.woff2 new file mode 100644 index 00000000..e0d3c435 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xLIzIFKw.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xMIzIFKw.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xMIzIFKw.woff2 new file mode 100644 index 00000000..dd587a2b Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xMIzIFKw.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fABc4EsA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fABc4EsA.woff2 new file mode 100644 index 00000000..9d7fb7f8 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fABc4EsA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fBBc4.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fBBc4.woff2 new file mode 100644 index 00000000..60681387 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fBBc4.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fBxc4EsA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fBxc4EsA.woff2 new file mode 100644 index 00000000..b289f002 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fBxc4EsA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fCBc4EsA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fCBc4EsA.woff2 new file mode 100644 index 00000000..87711c04 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fCBc4EsA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fCRc4EsA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fCRc4EsA.woff2 new file mode 100644 index 00000000..0f6e60b8 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fCRc4EsA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fChc4EsA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fChc4EsA.woff2 new file mode 100644 index 00000000..91231c9c Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fChc4EsA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fCxc4EsA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fCxc4EsA.woff2 new file mode 100644 index 00000000..c0099878 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fCxc4EsA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfABc4EsA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfABc4EsA.woff2 new file mode 100644 index 00000000..1bb7737c Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfABc4EsA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfBBc4.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfBBc4.woff2 new file mode 100644 index 00000000..771fbecc Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfBBc4.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfBxc4EsA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfBxc4EsA.woff2 new file mode 100644 index 00000000..cb9bfa71 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfBxc4EsA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCBc4EsA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCBc4EsA.woff2 new file mode 100644 index 00000000..a0d68e2b Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCBc4EsA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCRc4EsA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCRc4EsA.woff2 new file mode 100644 index 00000000..63995528 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCRc4EsA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2 new file mode 100644 index 00000000..94ab5fb0 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCxc4EsA.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCxc4EsA.woff2 new file mode 100644 index 00000000..3c450111 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCxc4EsA.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4WxKOzY.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4WxKOzY.woff2 new file mode 100644 index 00000000..fc71d944 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4WxKOzY.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2 new file mode 100644 index 00000000..020729ef Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu5mxKOzY.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu5mxKOzY.woff2 new file mode 100644 index 00000000..47da3629 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu5mxKOzY.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu72xKOzY.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu72xKOzY.woff2 new file mode 100644 index 00000000..22ddee9c Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu72xKOzY.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7GxKOzY.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7GxKOzY.woff2 new file mode 100644 index 00000000..8a8de615 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7GxKOzY.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7WxKOzY.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7WxKOzY.woff2 new file mode 100644 index 00000000..6284d2e3 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7WxKOzY.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7mxKOzY.woff2 b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7mxKOzY.woff2 new file mode 100644 index 00000000..72ce0e98 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7mxKOzY.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSV0mf0h.woff2 b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSV0mf0h.woff2 new file mode 100644 index 00000000..022274d4 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSV0mf0h.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSZ0mf0h.woff2 b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSZ0mf0h.woff2 new file mode 100644 index 00000000..48edd1b0 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSZ0mf0h.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSd0mf0h.woff2 b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSd0mf0h.woff2 new file mode 100644 index 00000000..cb41535e Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSd0mf0h.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSh0mQ.woff2 b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSh0mQ.woff2 new file mode 100644 index 00000000..1d988a3f Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSh0mQ.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSt0mf0h.woff2 b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSt0mf0h.woff2 new file mode 100644 index 00000000..11e6a46a Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSt0mf0h.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSx0mf0h.woff2 b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSx0mf0h.woff2 new file mode 100644 index 00000000..50fb8e71 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xTDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vrtSM1J-gEPT5Ese6hmHSx0mf0h.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtElOUlYIw.woff2 b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtElOUlYIw.woff2 new file mode 100644 index 00000000..1f1c97fe Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtElOUlYIw.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEleUlYIw.woff2 b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEleUlYIw.woff2 new file mode 100644 index 00000000..16230051 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEleUlYIw.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEluUlYIw.woff2 b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEluUlYIw.woff2 new file mode 100644 index 00000000..6f232c38 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEluUlYIw.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEm-Ul.woff2 b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEm-Ul.woff2 new file mode 100644 index 00000000..a3e5aef7 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEm-Ul.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEmOUlYIw.woff2 b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEmOUlYIw.woff2 new file mode 100644 index 00000000..f73f27d6 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEmOUlYIw.woff2 differ diff --git a/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEn-UlYIw.woff2 b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEn-UlYIw.woff2 new file mode 100644 index 00000000..135d06e0 Binary files /dev/null and b/assets/external/fonts.gstatic.com/s/robotomono/v23/L0xdDF4xlVMF-BfR8bXMIjhOsXG-q2oeuFoqFrlnAIe2Imhk1T8rbociImtEn-UlYIw.woff2 differ diff --git a/assets/external/github.com/cirruslabs/tart/raw/main/Resources/TartScreenshot.png b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/TartScreenshot.png new file mode 100644 index 00000000..f8db12e5 Binary files /dev/null and b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/TartScreenshot.png differ diff --git a/assets/external/github.com/cirruslabs/tart/raw/main/Resources/TartSocial.png b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/TartSocial.png new file mode 100644 index 00000000..6ee0a564 Binary files /dev/null and b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/TartSocial.png differ diff --git a/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Krisp.png b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Krisp.png new file mode 100644 index 00000000..aedc7bd3 Binary files /dev/null and b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Krisp.png differ diff --git a/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Mullvad.png b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Mullvad.png new file mode 100644 index 00000000..25c68398 Binary files /dev/null and b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Mullvad.png differ diff --git a/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/PITSGlobalDataRecoveryServices.png b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/PITSGlobalDataRecoveryServices.png new file mode 100644 index 00000000..5d7d087c Binary files /dev/null and b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/PITSGlobalDataRecoveryServices.png differ diff --git a/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Suran.png b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Suran.png new file mode 100644 index 00000000..b7799f7a Binary files /dev/null and b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Suran.png differ diff --git a/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Symflower.png b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Symflower.png new file mode 100644 index 00000000..a12bbf7c Binary files /dev/null and b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Symflower.png differ diff --git a/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Transloadit.png b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Transloadit.png new file mode 100644 index 00000000..a5d271d3 Binary files /dev/null and b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Transloadit.png differ diff --git a/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Uphold.png b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Uphold.png new file mode 100644 index 00000000..ea577137 Binary files /dev/null and b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/Uphold.png differ diff --git a/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/ahrefs.png b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/ahrefs.png new file mode 100644 index 00000000..8bd4ca79 Binary files /dev/null and b/assets/external/github.com/cirruslabs/tart/raw/main/Resources/Users/ahrefs.png differ diff --git a/assets/external/github.com/edigaryev.png.jpg b/assets/external/github.com/edigaryev.png.jpg new file mode 100644 index 00000000..6659820d Binary files /dev/null and b/assets/external/github.com/edigaryev.png.jpg differ diff --git a/assets/external/github.com/fkorotkov.png.jpg b/assets/external/github.com/fkorotkov.png.jpg new file mode 100644 index 00000000..65c004af Binary files /dev/null and b/assets/external/github.com/fkorotkov.png.jpg differ diff --git a/assets/external/platform.twitter.com/widgets.js b/assets/external/platform.twitter.com/widgets.js new file mode 100644 index 00000000..5314f2ab --- /dev/null +++ b/assets/external/platform.twitter.com/widgets.js @@ -0,0 +1,8 @@ +Function&&Function.prototype&&Function.prototype.bind&&(/(MSIE ([6789]|10|11))|Trident/.test(navigator.userAgent)||(window.__twttr&&window.__twttr.widgets&&window.__twttr.widgets.loaded&&window.twttr.widgets.load&&window.twttr.widgets.load(),window.__twttr&&window.__twttr.widgets&&window.__twttr.widgets.init||function(t){function e(e){for(var n,i,o=e[0],s=e[1],a=0,c=[];a-1},forIn:i,isObject:s,isEmptyObject:a,toType:o,isType:function(t,e){return t==o(e)},toRealArray:u}},function(t,e){t.exports=window},function(t,e,n){var r=n(16),i=/(?:^|(?:https?:)?\/\/(?:www\.)?twitter\.com(?::\d+)?(?:\/intent\/(?:follow|user)\/?\?screen_name=|(?:\/#!)?\/))@?([\w]+)(?:\?|&|$)/i,o=/(?:^|(?:https?:)?\/\/(?:www\.)?twitter\.com(?::\d+)?\/(?:#!\/)?[\w_]+\/status(?:es)?\/)(\d+)/i,s=/^http(s?):\/\/(\w+\.)*twitter\.com([:/]|$)/i,a=/^http(s?):\/\/(ton|pbs)\.twimg\.com/,u=/^#?([^.,<>!\s/#\-()'"]+)$/,c=/twitter\.com(?::\d{2,4})?\/intent\/(\w+)/,d=/^https?:\/\/(?:www\.)?twitter\.com\/\w+\/timelines\/(\d+)/i,f=/^https?:\/\/(?:www\.)?twitter\.com\/i\/moments\/(\d+)/i,l=/^https?:\/\/(?:www\.)?twitter\.com\/(\w+)\/(?:likes|favorites)/i,h=/^https?:\/\/(?:www\.)?twitter\.com\/(\w+)\/lists\/([\w-%]+)/i,p=/^https?:\/\/(?:www\.)?twitter\.com\/i\/live\/(\d+)/i,m=/^https?:\/\/syndication\.twitter\.com\/settings/i,v=/^https?:\/\/(localhost|platform)\.twitter\.com(?::\d+)?\/widgets\/widget_iframe\.(.+)/i,g=/^https?:\/\/(?:www\.)?twitter\.com\/search\?q=(\w+)/i;function w(t){return"string"==typeof t&&i.test(t)&&RegExp.$1.length<=20}function y(t){if(w(t))return RegExp.$1}function b(t,e){var n=r.decodeURL(t);if(e=e||!1,n.screen_name=y(t),n.screen_name)return r.url("https://twitter.com/intent/"+(e?"follow":"user"),n)}function _(t){return"string"==typeof t&&u.test(t)}function E(t){return"string"==typeof t&&o.test(t)}t.exports={isHashTag:_,hashTag:function(t,e){if(e=void 0===e||e,_(t))return(e?"#":"")+RegExp.$1},isScreenName:w,screenName:y,isStatus:E,status:function(t){return E(t)&&RegExp.$1},intentForProfileURL:b,intentForFollowURL:function(t){return b(t,!0)},isTwitterURL:function(t){return s.test(t)},isTwimgURL:function(t){return a.test(t)},isIntentURL:function(t){return c.test(t)},isSettingsURL:function(t){return m.test(t)},isWidgetIframeURL:function(t){return v.test(t)},isSearchUrl:function(t){return g.test(t)},regexen:{profile:i},momentId:function(t){return f.test(t)&&RegExp.$1},collectionId:function(t){return d.test(t)&&RegExp.$1},intentType:function(t){return c.test(t)&&RegExp.$1},likesScreenName:function(t){return l.test(t)&&RegExp.$1},listScreenNameAndSlug:function(t){var e,n,r;if(h.test(t)){e=RegExp.$1,n=RegExp.$2;try{r=decodeURIComponent(n)}catch(t){}return{ownerScreenName:e,slug:r||n}}return!1},eventId:function(t){return p.test(t)&&RegExp.$1}}},function(t,e,n){var r=n(6);t.exports=function(){var t=this;this.promise=new r(function(e,n){t.resolve=e,t.reject=n})}},function(t,e){t.exports=document},function(t,e,n){var r=n(0),i=[!0,1,"1","on","ON","true","TRUE","yes","YES"],o=[!1,0,"0","off","OFF","false","FALSE","no","NO"];function s(t){return void 0!==t&&null!==t&&""!==t}function a(t){return c(t)&&t%1==0}function u(t){return c(t)&&!a(t)}function c(t){return s(t)&&!isNaN(t)}function d(t){return r.contains(o,t)}function f(t){return r.contains(i,t)}t.exports={hasValue:s,isInt:a,isFloat:u,isNumber:c,isString:function(t){return"string"===r.toType(t)},isArray:function(t){return s(t)&&"array"==r.toType(t)},isTruthValue:f,isFalseValue:d,asInt:function(t){if(a(t))return parseInt(t,10)},asFloat:function(t){if(u(t))return t},asNumber:function(t){if(c(t))return t},asBoolean:function(t){return!(!s(t)||!f(t)&&(d(t)||!t))}}},function(t,e,n){var r=n(1),i=n(20),o=n(45);i.hasPromiseSupport()||(r.Promise=o),t.exports=r.Promise},function(t,e,n){var r=n(0);t.exports=function(t,e){var n=Array.prototype.slice.call(arguments,2);return function(){var i=r.toRealArray(arguments);return t.apply(e,n.concat(i))}}},function(t,e){t.exports=location},function(t,e,n){var r=n(47);t.exports=new r("__twttr")},function(t,e,n){var r=n(0),i=/\b([\w-_]+)\b/g;function o(t){return new RegExp("\\b"+t+"\\b","g")}function s(t,e){t.classList?t.classList.add(e):o(e).test(t.className)||(t.className+=" "+e)}function a(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(o(e)," ")}function u(t,e){return t.classList?t.classList.contains(e):r.contains(c(t),e)}function c(t){return r.toRealArray(t.classList?t.classList:t.className.match(i))}t.exports={add:s,remove:a,replace:function(t,e,n){if(t.classList&&u(t,e))return a(t,e),void s(t,n);t.className=t.className.replace(o(e),n)},toggle:function(t,e,n){return void 0===n&&t.classList&&t.classList.toggle?t.classList.toggle(e,n):(n?s(t,e):a(t,e),n)},present:u,list:c}},function(t,e,n){var r=n(19),i=n(5),o=n(16),s=n(0),a=n(108);t.exports=function(t){var e=t.href&&t.href.split("?")[1],n=e?o.decode(e):{},u={lang:a(t),width:t.getAttribute("data-width")||t.getAttribute("width"),height:t.getAttribute("data-height")||t.getAttribute("height"),related:t.getAttribute("data-related"),partner:t.getAttribute("data-partner")};return i.asBoolean(t.getAttribute("data-dnt"))&&r.setOn(),s.forIn(u,function(t,e){var r=n[t];n[t]=i.hasValue(r)?r:e}),s.compact(n)}},function(t,e,n){var r=n(109),i=n(21);t.exports=function(){var t="data-twitter-extracted-"+i.generate();return function(e,n){return r(e,n).filter(function(e){return!e.hasAttribute(t)}).map(function(e){return e.setAttribute(t,"true"),e})}}},function(t,e){function n(t,e,n,r,i,o,s){this.factory=t,this.Sandbox=e,this.srcEl=o,this.targetEl=i,this.parameters=r,this.className=n,this.options=s}n.prototype.destroy=function(){this.srcEl=this.targetEl=null},t.exports=n},function(t,e){t.exports={DM_BUTTON:"twitter-dm-button",FOLLOW_BUTTON:"twitter-follow-button",HASHTAG_BUTTON:"twitter-hashtag-button",MENTION_BUTTON:"twitter-mention-button",MOMENT:"twitter-moment",PERISCOPE:"periscope-on-air",SHARE_BUTTON:"twitter-share-button",TIMELINE:"twitter-timeline",TWEET:"twitter-tweet"}},function(t,e,n){var r=n(6),i=n(19),o=n(50),s=n(34),a=n(5),u=n(0);t.exports=function(t,e,n){var c;return t=t||[],e=e||{},c="ƒ("+t.join(", ")+", target, [options]);",function(){var d,f,l,h,p=Array.prototype.slice.apply(arguments,[0,t.length]),m=Array.prototype.slice.apply(arguments,[t.length]);return m.forEach(function(t){t&&(t.nodeType!==Node.ELEMENT_NODE?u.isType("function",t)?d=t:u.isType("object",t)&&(f=t):l=t)}),p.length!==t.length||0===m.length?(d&&u.async(function(){d(!1)}),r.reject(new Error("Not enough parameters. Expected: "+c))):l?(f=u.aug({},f||{},e),t.forEach(function(t){f[t]=p.shift()}),a.asBoolean(f.dnt)&&i.setOn(),h=s.getExperiments().then(function(t){return o.addWidget(n(f,l,void 0,t))}),d&&h.then(d,function(){d(!1)}),h):(d&&u.async(function(){d(!1)}),r.reject(new Error("No target element specified. Expected: "+c)))}}},function(t,e,n){var r=n(5),i=n(0);function o(t){return encodeURIComponent(t).replace(/\+/g,"%2B").replace(/'/g,"%27")}function s(t){return decodeURIComponent(t)}function a(t){var e=[];return i.forIn(t,function(t,n){var s=o(t);i.isType("array",n)||(n=[n]),n.forEach(function(t){r.hasValue(t)&&e.push(s+"="+o(t))})}),e.sort().join("&")}function u(t){var e={};return t?(t.split("&").forEach(function(t){var n=t.split("="),r=s(n[0]),o=s(n[1]);if(2==n.length){if(!i.isType("array",e[r]))return r in e?(e[r]=[e[r]],void e[r].push(o)):void(e[r]=o);e[r].push(o)}}),e):{}}t.exports={url:function(t,e){return a(e).length>0?i.contains(t,"?")?t+"&"+a(e):t+"?"+a(e):t},decodeURL:function(t){var e=t&&t.split("?");return 2==e.length?u(e[1]):{}},decode:u,encode:a,encodePart:o,decodePart:s}},function(t,e,n){var r=n(90),i=n(3),o=n(0);function s(t,e){return function(){try{e.resolve(t.call(this))}catch(t){e.reject(t)}}}t.exports={sync:function(t,e){t.call(e)},read:function(t,e){var n=new i;return r.read(s(t,n),e),n.promise},write:function(t,e){var n=new i;return r.write(s(t,n),e),n.promise},defer:function(t,e,n){var a=new i;return o.isType("function",t)&&(n=e,e=t,t=1),r.defer(t,s(e,a),n),a.promise}}},function(t,e,n){var r=n(8),i=n(1),o=n(0),s={},a=o.contains(r.href,"tw_debug=true");function u(){}function c(){}function d(){return i.performance&&+i.performance.now()||+new Date}function f(t,e){if(i.console&&i.console[t])switch(e.length){case 1:i.console[t](e[0]);break;case 2:i.console[t](e[0],e[1]);break;case 3:i.console[t](e[0],e[1],e[2]);break;case 4:i.console[t](e[0],e[1],e[2],e[3]);break;case 5:i.console[t](e[0],e[1],e[2],e[3],e[4]);break;default:0!==e.length&&i.console.warn&&i.console.warn("too many params passed to logger."+t)}}t.exports={devError:u,devInfo:c,devObject:function(t,e){},publicError:function(){f("error",o.toRealArray(arguments))},publicLog:function(){f("info",o.toRealArray(arguments))},publicWarn:function(){f("warn",o.toRealArray(arguments))},time:function(t){a&&(s[t]=d())},timeEnd:function(t){a&&s[t]&&(d(),s[t])}}},function(t,e,n){var r=n(4),i=n(8),o=n(38),s=n(94),a=n(5),u=n(33),c=!1,d=/https?:\/\/([^/]+).*/i;t.exports={setOn:function(){c=!0},enabled:function(t,e){return!!(c||a.asBoolean(u.val("dnt"))||s.isUrlSensitive(e||i.host)||o.isFramed()&&s.isUrlSensitive(o.rootDocumentLocation())||(t=d.test(t||r.referrer)&&RegExp.$1)&&s.isUrlSensitive(t))}}},function(t,e,n){var r=n(4),i=n(83),o=n(1),s=n(0),a=i.userAgent;function u(t){return/(Trident|MSIE|Edge[/ ]?\d)/.test(t=t||a)}t.exports={retina:function(t){return(t=t||o).devicePixelRatio?t.devicePixelRatio>=1.5:!!t.matchMedia&&t.matchMedia("only screen and (min-resolution: 144dpi)").matches},anyIE:u,ie9:function(t){return/MSIE 9/.test(t=t||a)},ie10:function(t){return/MSIE 10/.test(t=t||a)},ios:function(t){return/(iPad|iPhone|iPod)/.test(t=t||a)},android:function(t){return/^Mozilla\/5\.0 \(Linux; (U; )?Android/.test(t=t||a)},canPostMessage:function(t,e){return t=t||o,e=e||a,t.postMessage&&!(u(e)&&t.opener)},touch:function(t,e,n){return t=t||o,e=e||i,n=n||a,"ontouchstart"in t||/Opera Mini/.test(n)||e.msMaxTouchPoints>0},cssTransitions:function(){var t=r.body.style;return void 0!==t.transition||void 0!==t.webkitTransition||void 0!==t.mozTransition||void 0!==t.oTransition||void 0!==t.msTransition},hasPromiseSupport:function(){return!!(o.Promise&&o.Promise.resolve&&o.Promise.reject&&o.Promise.all&&o.Promise.race&&(new o.Promise(function(e){t=e}),s.isType("function",t)));var t},hasIntersectionObserverSupport:function(){return!!o.IntersectionObserver},hasPerformanceInformation:function(){return o.performance&&o.performance.getEntriesByType}}},function(t,e){var n="i",r=0,i=0;t.exports={generate:function(){return n+String(+new Date)+Math.floor(1e5*Math.random())+r++},deterministic:function(){return n+String(i++)}}},function(t,e,n){var r=n(46),i=n(49),o=n(0);t.exports=o.aug(r.get("events")||{},i.Emitter)},function(t,e,n){var r=n(6),i=n(3);function o(t,e){return t.then(e,e)}function s(t){return t instanceof r}t.exports={always:o,allResolved:function(t){var e;return void 0===t?r.reject(new Error("undefined is not an object")):Array.isArray(t)?(e=t.length)?new r(function(n,r){var i=0,o=[];function a(){(i+=1)===e&&(0===o.length?r():n(o))}function u(t){o.push(t),a()}t.forEach(function(t){s(t)?t.then(u,a):u(t)})}):r.resolve([]):r.reject(new Error("Type error"))},some:function(t){var e;return e=(t=t||[]).length,t=t.filter(s),e?e!==t.length?r.reject("non-Promise passed to .some"):new r(function(e,n){var r=0;function i(){(r+=1)===t.length&&n()}t.forEach(function(t){t.then(e,i)})}):r.reject("no promises passed to .some")},isPromise:s,allSettled:function(t){function e(){}return r.all((t||[]).map(function(t){return o(t,e)}))},timeout:function(t,e){var n=new i;return setTimeout(function(){n.reject(new Error("Promise timed out"))},e),t.then(function(t){n.resolve(t)},function(t){n.reject(t)}),n.promise}}},function(t,e,n){var r=n(1).JSON;t.exports={stringify:r.stringify||r.encode,parse:r.parse||r.decode}},function(t,e,n){var r=n(39),i=n(97),o=n(7);(r=Object.create(r)).build=o(r.build,null,i),t.exports=r},function(t,e,n){var r=n(49).makeEmitter();t.exports={emitter:r,START:"start",ALL_WIDGETS_RENDER_START:"all_widgets_render_start",ALL_WIDGETS_RENDER_END:"all_widgets_render_end",ALL_WIDGETS_AND_IMAGES_LOADED:"all_widgets_and_images_loaded"}},function(t,e,n){var r=n(9),i=n(102),o="https://syndication.twitter.com",s="https://platform.twitter.com",a=["https://syndication.twitter.com","https://cdn.syndication.twimg.com","https://localhost.twitter.com:8444"],u=["https://syndication.twitter.com","https://localhost.twitter.com:8445"],c=["https://platform.twitter.com","https://localhost.twitter.com",/^https:\/\/ton\.local\.twitter\.com\/syndication-internal\/embed-iframe\/[0-9A-Za-z_-]+\/app/],d=function(t,e){return t.some(function(t){return t instanceof RegExp?t.test(e):t===e})},f=function(){var t=r.get("backendHost");return t&&d(a,t)?t:"https://cdn.syndication.twimg.com"},l=function(){var t=r.get("settingsSvcHost");return t&&d(u,t)?t:o};function h(t,e){var n=[t];return e.forEach(function(t){n.push(function(t){var e=(t||"").toString(),n="/"===e.slice(0,1)?1:0,r=function(t){return"/"===t.slice(-1)}(e)?-1:void 0;return e.slice(n,r)}(t))}),n.join("/")}t.exports={cookieConsent:function(t){var e=t||[];return e.unshift("cookie/consent"),h(l(),e)},embedIframe:function(t,e){var n=t||[],o=s,a=r.get("embedIframeURL");return a&&d(c,a)?h(a,n)+".html":(n.unshift(i.getBaseURLPath(e)),h(o,n)+".html")},embedService:function(t){var e=t||[],n=o;return e.unshift("srv"),h(n,e)},eventVideo:function(t){var e=t||[];return e.unshift("video/event"),h(f(),e)},grid:function(t){var e=t||[];return e.unshift("grid/collection"),h(f(),e)},moment:function(t){var e=t||[];return e.unshift("moments"),h(f(),e)},settings:function(t){var e=t||[];return e.unshift("settings"),h(l(),e)},settingsScribe:function(t){var e=t||[];return e.unshift("i/jot/embeds"),h(l(),e)},timeline:function(t){var e=t||[];return e.unshift("timeline"),h(f(),e)},tweetBatch:function(t){var e=t||[];return e.unshift("tweets.json"),h(f(),e)},video:function(t){var e=t||[];return e.unshift("widgets/video"),h(f(),e)}}},function(t,e,n){var r=n(4),i=n(0);t.exports=function(t,e,n){var o;if(n=n||r,t=t||{},e=e||{},t.name){try{o=n.createElement('')}catch(e){(o=n.createElement("iframe")).name=t.name}delete t.name}else o=n.createElement("iframe");return t.id&&(o.id=t.id,delete t.id),o.allowtransparency="true",o.scrolling="no",o.setAttribute("frameBorder",0),o.setAttribute("allowTransparency",!0),i.forIn(t,function(t,e){o.setAttribute(t,e)}),i.forIn(e,function(t,e){o.style[t]=e}),o}},function(t,e,n){var r=n(25),i=n(100);t.exports=r.build([i])},function(t,e,n){var r=n(25),i=n(116);t.exports=r.build([i])},function(t,e,n){var r=n(39),i=n(40),o=n(7);(r=Object.create(r)).build=o(r.build,null,i),t.exports=r},function(t,e,n){var r=n(70),i=n(19),o=n(5),s=n(21),a=n(0);t.exports=function(t){t.params({chrome:{},height:{transform:o.asInt},instanceId:{required:!0,fallback:s.deterministic},isPreconfigured:{},lang:{required:!0,transform:r.matchLanguage,fallback:"en"},theme:{},tweetLimit:{transform:o.asInt}}),t.defineProperty("endpoint",{get:function(){throw new Error("endpoint not specified")}}),t.define("queryParams",function(){return a.compact({dnt:i.enabled(),limit:this.params.tweetLimit,lang:this.params.lang})})}},function(t,e,n){var r,i=n(4);function o(t){var e,n,o,s=0;for(r={},e=(t=t||i).getElementsByTagName("meta");e[s];s++){if(n=e[s],/^twitter:/.test(n.getAttribute("name")))o=n.getAttribute("name").replace(/^twitter:/,"");else{if(!/^twitter:/.test(n.getAttribute("property")))continue;o=n.getAttribute("property").replace(/^twitter:/,"")}r[o]=n.getAttribute("content")||n.getAttribute("value")}}o(),t.exports={init:o,val:function(t){return r[t]}}},function(t,e,n){var r=n(104),i=n(24),o=n(1);function s(t){var e="";if(!t)return"";try{return e=i.stringify(t),o.btoa(e)}catch(t){return""}}function a(t){return r.settingsLoaded().then(function(e){return e[t]})}function u(){return a("features")}t.exports={encodeFeatures:s,shouldObtainCookieConsent:function(){return a("shouldObtainCookieConsent")},getExperiments:u,getExperiment:function(t){return u().then(function(e){if(!e[t])throw new Error("Experiment not found");return e[t]})},getHorizonSettings:function(){return r.settingsLoaded().then(function(t){return{features:t.features,sessionId:t.sessionId}})},getActiveExperimentDataString:function(){return u().then(function(t){return s(t)})},getExperimentKeys:function(){return u().then(function(t){return Object.keys(t)})},load:function(){r.load()}}},function(t,e,n){var r=n(10),i={},o=-1,s={};function a(t){var e=t.getAttribute("data-twitter-event-id");return e||(t.setAttribute("data-twitter-event-id",++o),o)}function u(t,e,n){var r=0,i=t&&t.length||0;for(r=0;r1?(e=Math.floor(t.item_ids.length/2),n=t.item_ids.slice(0,e),r={},i=t.item_ids.slice(e),o={},n.forEach(function(e){r[e]=t.item_details[e]}),i.forEach(function(e){o[e]=t.item_details[e]}),[f.aug({},t,{item_ids:n,item_details:r}),f.aug({},t,{item_ids:i,item_details:o})]):[t]},stringify:function(t){var e,n=Array.prototype.toJSON;return delete Array.prototype.toJSON,e=u.stringify(t),n&&(Array.prototype.toJSON=n),e},CLIENT_EVENT_ENDPOINT:p,RUFOUS_REDIRECT:"https://platform.twitter.com/jot.html"}},function(t,e,n){var r=n(8),i=n(73),o=n(0),s=i.getCanonicalURL()||r.href,a=s;t.exports={isFramed:function(){return s!==a},rootDocumentLocation:function(t){return t&&o.isType("string",t)&&(s=t),s},currentDocumentLocation:function(){return a}}},function(t,e,n){var r=n(95),i=n(96),o=n(0);t.exports={couple:function(){return o.toRealArray(arguments)},build:function(t,e,n){var o=new t;return(e=i(r(e||[]))).forEach(function(t){t.call(null,o)}),o.build(n)}}},function(t,e,n){var r=n(98),i=n(0),o=n(41);function s(){this.Component=this.factory(),this._adviceArgs=[],this._lastArgs=[]}i.aug(s.prototype,{factory:o,build:function(t){var e=this;return this.Component,i.aug(this.Component.prototype.boundParams,t),this._adviceArgs.concat(this._lastArgs).forEach(function(t){(function(t,e,n){var r=this[e];if(!r)throw new Error(e+" does not exist");this[e]=t(r,n)}).apply(e.Component.prototype,t)}),delete this._lastArgs,delete this._adviceArgs,this.Component},params:function(t){var e=this.Component.prototype.paramConfigs;t=t||{},this.Component.prototype.paramConfigs=i.aug({},t,e)},define:function(t,e){if(t in this.Component.prototype)throw new Error(t+" has previously been defined");this.override(t,e)},defineStatic:function(t,e){this.Component[t]=e},override:function(t,e){this.Component.prototype[t]=e},defineProperty:function(t,e){if(t in this.Component.prototype)throw new Error(t+" has previously been defined");this.overrideProperty(t,e)},overrideProperty:function(t,e){var n=i.aug({configurable:!0},e);Object.defineProperty(this.Component.prototype,t,n)},before:function(t,e){this._adviceArgs.push([r.before,t,e])},after:function(t,e){this._adviceArgs.push([r.after,t,e])},around:function(t,e){this._adviceArgs.push([r.around,t,e])},last:function(t,e){this._lastArgs.push([r.after,t,e])}}),t.exports=s},function(t,e,n){var r=n(0);function i(){return!0}function o(t){return t}t.exports=function(){function t(t){var e=this;t=t||{},this.params=Object.keys(this.paramConfigs).reduce(function(n,s){var a=[],u=e.boundParams,c=e.paramConfigs[s],d=c.validate||i,f=c.transform||o;if(s in u&&a.push(u[s]),s in t&&a.push(t[s]),a="fallback"in c?a.concat(c.fallback):a,n[s]=function(t,e,n){var i=null;return t.some(function(t){if(t=r.isType("function",t)?t():t,e(t))return i=n(t),!0}),i}(a,d,f),c.required&&null==n[s])throw new Error(s+" is a required parameter");return n},{}),this.initialize()}return r.aug(t.prototype,{paramConfigs:{},boundParams:{},initialize:function(){}}),t}},function(t){t.exports={version:"2615f7e52b7e0:1702314776716"}},function(t,e,n){var r=n(1);t.exports=function(t,e,n){var i,o=0;return n=n||null,function s(){var a=n||this,u=arguments,c=+new Date;if(r.clearTimeout(i),c-o>e)return o=c,void t.apply(a,u);i=r.setTimeout(function(){s.apply(a,u)},e)}}},function(t,e,n){var r=n(18);t.exports=function(){r.publicError("Error: This Timeline type is no longer supported (Likes, Collections, & Moments). \n\t","* Twitter still supports Profile and List Timelines \n\t","* You can learn more about this change in our announcement: \n\t","https://twittercommunity.com/t/removing-support-for-embedded-like-collection-and-moment-timelines/150313 \n\t","* In order to create a new Embedded Timeline, visit: https://publish.twitter.com")}},function(t,e,n){ +/*! + * @overview es6-promise - a tiny implementation of Promises/A+. + * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) + * @license Licensed under MIT license + * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE + * @version v4.2.5+7f2b526d + */var r;r=function(){"use strict";function t(t){return"function"==typeof t}var e=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},n=0,r=void 0,i=void 0,o=function(t,e){l[n]=t,l[n+1]=e,2===(n+=2)&&(i?i(h):w())},s="undefined"!=typeof window?window:void 0,a=s||{},u=a.MutationObserver||a.WebKitMutationObserver,c="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){var t=setTimeout;return function(){return t(h,1)}}var l=new Array(1e3);function h(){for(var t=0;t=0&&this._handlers[t].splice(n,1):this._handlers[t]=[])},trigger:function(t,e){var n=this._handlers&&this._handlers[t];(e=e||{}).type=t,n&&n.forEach(function(t){r.async(i(t,this,e))})}};t.exports={Emitter:o,makeEmitter:function(){return r.aug(function(){},o)}}},function(t,e,n){var r=n(89),i=n(91),o=n(6),s=n(23),a=n(7),u=n(0),c=new i(function(t){var e=function(t){return t.reduce(function(t,e){return t[e._className]=t[e._className]||[],t[e._className].push(e),t},{})}(t.map(r.fromRawTask));u.forIn(e,function(t,e){s.allSettled(e.map(function(t){return t.initialize()})).then(function(){e.forEach(function(t){o.all([t.hydrate(),t.insertIntoDom()]).then(a(t.render,t)).then(a(t.success,t),a(t.fail,t))})})})});t.exports={addWidget:function(t){return c.add(t)}}},function(t,e,n){var r=n(17);t.exports=function(t){return r.write(function(){t&&t.parentNode&&t.parentNode.removeChild(t)})}},function(t,e,n){var r=n(93),i=n(71),o=new(n(103))(function(t){(!function(t){return 1===t.length&&i.canFlushOneItem(t[0])}(t)?function(t){r.init(),t.forEach(function(t){var e=t.input.namespace,n=t.input.data,i=t.input.offsite,o=t.input.version;r.clientEvent(e,n,i,o)}),r.flush().then(function(){t.forEach(function(t){t.taskDoneDeferred.resolve()})},function(){t.forEach(function(t){t.taskDoneDeferred.reject()})})}:function(t){t.forEach(function(t){var e=t.input.namespace,n=t.input.data,r=t.input.offsite,o=t.input.version;i.clientEvent(e,n,r,o),t.taskDoneDeferred.resolve()})})(t)});t.exports={scribe:function(t,e,n,r){return o.add({namespace:t,data:e,offsite:n,version:r})},pause:function(){o.pause()},resume:function(){o.resume()}}},function(t,e,n){n(18),t.exports={log:function(t,e){}}},function(t,e,n){var r=n(1);function i(t){return(t=t||r).getSelection&&t.getSelection()}t.exports={getSelection:i,getSelectedText:function(t){var e=i(t);return e?e.toString():""}}},function(t,e,n){var r=n(4),i=n(1),o=n(3),s=2e4;t.exports=function(t){var e=new o,n=r.createElement("img");return n.onload=n.onerror=function(){i.setTimeout(e.resolve,50)},n.src=t,i.setTimeout(e.reject,s),e.promise}},function(t,e,n){var r,i=n(10),o=n(4),s=n(1),a=n(33),u=n(51),c=n(5),d=n(21),f="csptest";t.exports={inlineStyle:function(){var t=f+d.generate(),e=o.createElement("div"),n=o.createElement("style"),l="."+t+" { visibility: hidden; }";return!!o.body&&(c.asBoolean(a.val("widgets:csp"))&&(r=!1),void 0!==r?r:(e.style.display="none",i.add(e,t),n.type="text/css",n.appendChild(o.createTextNode(l)),o.body.appendChild(n),o.body.appendChild(e),r="hidden"===s.getComputedStyle(e).visibility,u(e),u(n),r))}}},function(t,e){t.exports=function(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height}}},function(t,e,n){var r=n(101);t.exports=function(t){t.define("createElement",r),t.define("createFragment",r),t.define("htmlToElement",r),t.define("hasSelectedText",r),t.define("addRootClass",r),t.define("removeRootClass",r),t.define("hasRootClass",r),t.define("prependStyleSheet",r),t.define("appendStyleSheet",r),t.define("prependCss",r),t.define("appendCss",r),t.define("makeVisible",r),t.define("injectWidgetEl",r),t.define("matchHeightToContent",r),t.define("matchWidthToContent",r)}},function(t,e){t.exports=function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments))}}},function(t,e,n){var r=n(13),i=n(110),o=n(111),s=n(14);t.exports=function(t,e,n){return new r(i,o,s.DM_BUTTON,t,e,n)}},function(t,e,n){var r=n(25),i=n(112);t.exports=r.build([i])},function(t,e,n){var r=n(13),i=n(115),o=n(30),s=n(14);t.exports=function(t,e,n){return new r(i,o,s.FOLLOW_BUTTON,t,e,n)}},function(t,e,n){var r=n(13),i=n(123),o=n(29),s=n(14);t.exports=function(t,e,n){return new r(i,o,s.MOMENT,t,e,n)}},function(t,e,n){var r=n(13),i=n(125),o=n(29),s=n(14);t.exports=function(t,e,n){return new r(i,o,s.PERISCOPE,t,e,n)}},function(t,e,n){var r=n(127),i=n(128),o=n(132),s=n(134),a=n(136),u={collection:i,likes:o,list:s,profile:a,url:d},c=[a,o,i,s];function d(t){return r(c,function(e){try{return new e(t)}catch(t){}})}t.exports=function(t){return t?function(t){var e,n;return e=(t.sourceType+"").toLowerCase(),(n=u[e])?new n(t):null}(t)||d(t):null}},function(t,e,n){var r=n(4),i=n(13),o=n(30),s=n(138),a=n(14);t.exports=function(t,e,n){var u=r.createElement("div");return new i(s,o,a.TIMELINE,t,e,n,{sandboxWrapperEl:u})}},function(t,e,n){var r=n(4),i=n(13),o=n(30),s=n(140),a=n(14);t.exports=function(t,e,n){return new i(s,o,a.TWEET,t,e,n,{sandboxWrapperEl:r.createElement("div")})}},function(t,e,n){var r=n(13),i=n(142),o=n(30),s=n(14);t.exports=function(t,e,n){var a=t&&t.type||"share",u="hashtag"==a?s.HASHTAG_BUTTON:"mention"==a?s.MENTION_BUTTON:s.SHARE_BUTTON;return new r(i,o,u,t,e,n)}},function(t,e,n){var r=n(52),i=n(38),o=n(0);t.exports=function(t){var e={widget_origin:i.rootDocumentLocation(),widget_frame:i.isFramed()?i.currentDocumentLocation():null,duration_ms:t.duration,item_ids:t.widgetIds||[]},n=o.aug(t.namespace,{page:"page",component:"performance"});r.scribe(n,e)}},function(t,e,n){var r=n(0),i=n(129),o=["ar","fa","he","ur"];t.exports={isRtlLang:function(t){return t=String(t).toLowerCase(),r.contains(o,t)},matchLanguage:function(t){return t=(t=(t||"").toLowerCase()).replace("_","-"),i(t)?t:(t=t.replace(/-.*/,""),i(t)?t:"en")}}},function(t,e,n){var r=n(53),i=n(16),o=n(37),s=n(27),a=n(0),u=n(9),c=n(6),d=u.get("scribeCallback"),f=2083,l=[],h=i.url(o.CLIENT_EVENT_ENDPOINT,{dnt:0,l:""}),p=encodeURIComponent(h).length;function m(t,e,n,r,i){var u=!a.isObject(t),f=!!e&&!a.isObject(e);if(!u&&!f)return d&&d(arguments),e=e||{},c.resolve(v(o.formatClientEventNamespace(t),o.formatClientEventData(e,n,r),s.settingsScribe(),i))}function v(t,e,n,s){var u;n&&a.isObject(t)&&a.isObject(e)&&(r.log(t,e),u=o.flattenClientEventPayload(t,e),s=a.aug({},s,{l:o.stringify(u)}),u.dnt&&(s.dnt=1),w(i.url(n,s)))}function g(t){return l.push(t),l}function w(t){return(new Image).src=t}t.exports={canFlushOneItem:function(t){var e=o.stringify(t),n=encodeURIComponent(e).length+3;return p+n")}).then(function(){t.close(),a.resolve(c)})}),c.src=["javascript:",'document.write("");',"try { window.parent.document; }",'catch (e) { document.domain="'+r.domain+'"; }',"window.parent."+g.fullPath(["sandbox",u])+"();"].join(""),c.addEventListener("error",a.reject,!1),o.write(function(){i.parentNode.replaceChild(c,i)}),a.promise}t.exports=a.couple(n(58),function(t){t.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}}),t.overrideProperty("initialized",{get:function(){return!!this.win}}),t.overrideProperty("width",{get:function(){return this._width}}),t.overrideProperty("height",{get:function(){return this._height}}),t.overrideProperty("sandboxEl",{get:function(){return this.iframeEl}}),t.defineProperty("iframeEl",{get:function(){return this._iframe}}),t.defineProperty("rootEl",{get:function(){return this.doc&&this.doc.documentElement}}),t.defineProperty("widgetEl",{get:function(){return this.doc&&this.doc.body.firstElementChild}}),t.defineProperty("win",{get:function(){return this.iframeEl&&this.iframeEl.contentWindow}}),t.defineProperty("doc",{get:function(){return this.win&&this.win.document}}),t.define("_updateCachedDimensions",function(){var t=this;return o.read(function(){var e,n=h(t.sandboxEl);"visible"==t.sandboxEl.style.visibility?t._width=n.width:(e=h(t.sandboxEl.parentElement).width,t._width=Math.min(n.width,e)),t._height=n.height})}),t.define("_setTargetToBlank",function(){var t=this.createElement("base");t.target="_blank",this.doc.head.appendChild(t)}),t.define("_didResize",function(){var t=this,e=this._resizeHandlers.slice(0);return this._updateCachedDimensions().then(function(){e.forEach(function(e){e(t)})})}),t.define("setTitle",function(t){this.iframeEl.title=t}),t.override("createElement",function(t){return this.doc.createElement(t)}),t.override("createFragment",function(){return this.doc.createDocumentFragment()}),t.override("htmlToElement",function(t){var e;return(e=this.createElement("div")).innerHTML=t,e.firstElementChild}),t.override("hasSelectedText",function(){return!!s.getSelectedText(this.win)}),t.override("addRootClass",function(t){var e=this.rootEl;return t=Array.isArray(t)?t:[t],this.initialized?o.write(function(){t.forEach(function(t){i.add(e,t)})}):m.reject(new Error("sandbox not initialized"))}),t.override("removeRootClass",function(t){var e=this.rootEl;return t=Array.isArray(t)?t:[t],this.initialized?o.write(function(){t.forEach(function(t){i.remove(e,t)})}):m.reject(new Error("sandbox not initialized"))}),t.override("hasRootClass",function(t){return i.present(this.rootEl,t)}),t.define("addStyleSheet",function(t,e){var n,r=new p;return this.initialized?((n=this.createElement("link")).type="text/css",n.rel="stylesheet",n.href=t,n.addEventListener("load",r.resolve,!1),n.addEventListener("error",r.reject,!1),o.write(y(e,null,n)).then(function(){return u(t).then(r.resolve,r.reject),r.promise})):m.reject(new Error("sandbox not initialized"))}),t.override("prependStyleSheet",function(t){var e=this.doc;return this.addStyleSheet(t,function(t){var n=e.head.firstElementChild;return n?e.head.insertBefore(t,n):e.head.appendChild(t)})}),t.override("appendStyleSheet",function(t){var e=this.doc;return this.addStyleSheet(t,function(t){return e.head.appendChild(t)})}),t.define("addCss",function(t,e){var n;return c.inlineStyle()?((n=this.createElement("style")).type="text/css",n.appendChild(this.doc.createTextNode(t)),o.write(y(e,null,n))):(l.devError("CSP enabled; cannot embed inline styles"),m.resolve())}),t.override("prependCss",function(t){var e=this.doc;return this.addCss(t,function(t){var n=e.head.firstElementChild;return n?e.head.insertBefore(t,n):e.head.appendChild(t)})}),t.override("appendCss",function(t){var e=this.doc;return this.addCss(t,function(t){return e.head.appendChild(t)})}),t.override("makeVisible",function(){var t=this;return this.styleSelf(E).then(function(){t._updateCachedDimensions()})}),t.override("injectWidgetEl",function(t){var e=this;return this.initialized?this.widgetEl?m.reject(new Error("widget already injected")):o.write(function(){e.doc.body.appendChild(t)}):m.reject(new Error("sandbox not initialized"))}),t.override("matchHeightToContent",function(){var t,e=this;return o.read(function(){t=e.widgetEl?h(e.widgetEl).height:0}),o.write(function(){e.sandboxEl.style.height=t+"px"}).then(function(){return e._updateCachedDimensions()})}),t.override("matchWidthToContent",function(){var t,e=this;return o.read(function(){t=e.widgetEl?h(e.widgetEl).width:0}),o.write(function(){e.sandboxEl.style.width=t+"px"}).then(function(){return e._updateCachedDimensions()})}),t.after("initialize",function(){this._iframe=null,this._width=this._height=0,this._resizeHandlers=[]}),t.override("insert",function(t,e,n,r){var i=this,s=new p,a=this.targetGlobal.document,u=S(t,e,n,a);return o.write(y(r,null,u)),u.addEventListener("load",function(){(function(t){try{t.contentWindow.document}catch(t){return m.reject(t)}return m.resolve(t)})(u).then(null,y(R,null,t,e,n,u,a)).then(s.resolve,s.reject)},!1),u.addEventListener("error",s.reject,!1),s.promise.then(function(t){var e=d(i._didResize,A,i);return i._iframe=t,i.win.addEventListener("resize",e,!1),m.all([i._setTargetToBlank(),i.addRootClass(x),i.prependCss(T)])})}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("styleSelf",function(){return this._updateCachedDimensions()})})},function(t,e){t.exports=function(){throw new Error("unimplemented method")}},function(t,e){t.exports={getBaseURLPath:function(t){switch(t&&t.tfw_team_holdback_11929&&t.tfw_team_holdback_11929.bucket){case"control":return"embed-holdback";case"holdback_prod":return"embed-holdback-prod";default:return"embed"}}}},function(t,e,n){var r=n(3),i=n(7),o=100,s=3e3;function a(t,e){this._inputsQueue=[],this._task=t,this._isPaused=!1,this._flushDelay=e&&e.flushDelay||o,this._pauseLength=e&&e.pauseLength||s,this._flushTimeout=void 0}a.prototype.add=function(t){var e=new r;return this._inputsQueue.push({input:t,taskDoneDeferred:e}),this._scheduleFlush(),e.promise},a.prototype._scheduleFlush=function(){this._isPaused||(clearTimeout(this._flushTimeout),this._flushTimeout=setTimeout(i(this._flush,this),this._flushDelay))},a.prototype._flush=function(){try{this._task.call(null,this._inputsQueue)}catch(t){this._inputsQueue.forEach(function(e){e.taskDoneDeferred.reject(t)})}this._inputsQueue=[],this._flushTimeout=void 0},a.prototype.pause=function(t){clearTimeout(this._flushTimeout),this._isPaused=!0,!t&&this._pauseLength&&setTimeout(i(this.resume,this),this._pauseLength)},a.prototype.resume=function(){this._isPaused=!1,this._scheduleFlush()},t.exports=a},function(t,e,n){var r=n(72),i=n(28),o=n(3),s=n(4),a=n(27),u=n(20),c=n(24),d=n(8),f=n(18),l=n(105),h=n(59),p=n(9),m=n(16),v=n(2),g=n(0),w=n(1),y=h(function(){return new o}),b={shouldObtainCookieConsent:!1,features:{}};t.exports={load:function(){var t,e,n,o;if(u.ie9()||u.ie10()||"http:"!==d.protocol&&"https:"!==d.protocol)return f.devError("Using default settings due to unsupported browser or protocol."),void y().resolve();t={origin:d.origin},a.settings().indexOf("localhost")>-1&&(t.localSettings=!0),e=m.url(r.resourceBaseUrl+r.widgetIframeHtmlPath,t),n=function(t){var n,r,i,o;if(r=v.isTwitterURL(t.origin),i=e.substr(0,t.origin.length)===t.origin,o=v.isTwimgURL(t.origin),i&&r||o)try{(n="string"==typeof t.data?c.parse(t.data):t.data).namespace===l.settings&&(b=g.aug(b,{features:n.settings.features,sessionId:n.sessionId}),y().resolve())}catch(t){f.devError(t)}},w.addEventListener("message",n),o=i({src:e,title:"Twitter settings iframe"},{display:"none"}),s.body.appendChild(o)},settingsLoaded:function(){var t,e;return t=p.get("experimentOverride"),y().promise.then(function(){return t&&t.name&&t.assignment&&((e={})[t.name]={bucket:t.assignment},b.features=g.aug(b.features,e)),b})}}},function(t,e){t.exports={settings:"twttr.settings"}},function(t,e,n){t.exports=[n(107),n(114),n(122),n(124),n(126),n(139),n(141)]},function(t,e,n){var r=n(16),i=n(5),o=n(0),s=n(11),a=n(12)(),u=n(60),c="a.twitter-dm-button";t.exports=function(t){return a(t,c).map(function(t){return u(function(t){var e=t.getAttribute("data-show-screen-name"),n=s(t),a=t.getAttribute("href"),u=t.getAttribute("data-screen-name"),c=e?i.asBoolean(e):null,d=t.getAttribute("data-size"),f=r.decodeURL(a),l=f.recipient_id,h=t.getAttribute("data-text")||f.text,p=t.getAttribute("data-welcome-message-id")||f.welcomeMessageId;return o.aug(n,{screenName:u,showScreenName:c,size:d,text:h,userId:l,welcomeMessageId:p})}(t),t.parentNode,t)})}},function(t,e,n){var r=n(0);t.exports=function t(e){var n;if(e)return n=e.lang||e.getAttribute("data-lang"),r.isType("string",n)?n:t(e.parentElement)}},function(t,e,n){var r=n(0),i=n(48);t.exports=function(t,e){return i(t,e)?[t]:r.toRealArray(t.querySelectorAll(e))}},function(t,e,n){var r=n(3);t.exports=function(t,e){var i=new r;return n.e(1).then(function(r){var o;try{o=n(75),i.resolve(new o(t,e))}catch(t){i.reject(t)}}.bind(null,n)).catch(function(t){i.reject(t)}),i.promise}},function(t,e,n){var r=n(61),i=n(29);t.exports=r.isSupported()?r:i},function(t,e,n){var r=n(113),i=n(1),o=n(10),s=n(35),a=n(17),u=n(54),c=n(25),d=n(55),f=n(56),l=n(57),h=n(7),p=n(43),m=n(6),v=n(0),g=50,w={position:"absolute",visibility:"hidden",display:"block",transform:"rotate(0deg)"},y={position:"static",visibility:"visible"},b="twitter-widget",_="open",E="SandboxRoot",x=".SandboxRoot { display: none; max-height: 10000px; }";t.exports=c.couple(n(58),function(t){t.defineStatic("isSupported",function(){return!!i.HTMLElement.prototype.attachShadow&&f.inlineStyle()}),t.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}}),t.overrideProperty("initialized",{get:function(){return!!this._shadowHost}}),t.overrideProperty("width",{get:function(){return this._width}}),t.overrideProperty("height",{get:function(){return this._height}}),t.overrideProperty("sandboxEl",{get:function(){return this._shadowHost}}),t.define("_updateCachedDimensions",function(){var t=this;return a.read(function(){var e,n=l(t.sandboxEl);"visible"==t.sandboxEl.style.visibility?t._width=n.width:(e=l(t.sandboxEl.parentElement).width,t._width=Math.min(n.width,e)),t._height=n.height})}),t.define("_didResize",function(){var t=this,e=this._resizeHandlers.slice(0);return this._updateCachedDimensions().then(function(){e.forEach(function(e){e(t)})})}),t.override("createElement",function(t){return this.targetGlobal.document.createElement(t)}),t.override("createFragment",function(){return this.targetGlobal.document.createDocumentFragment()}),t.override("htmlToElement",function(t){var e;return(e=this.createElement("div")).innerHTML=t,e.firstElementChild}),t.override("hasSelectedText",function(){return!!u.getSelectedText(this.targetGlobal)}),t.override("addRootClass",function(t){var e=this._shadowRootBody;return t=Array.isArray(t)?t:[t],this.initialized?a.write(function(){t.forEach(function(t){o.add(e,t)})}):m.reject(new Error("sandbox not initialized"))}),t.override("removeRootClass",function(t){var e=this._shadowRootBody;return t=Array.isArray(t)?t:[t],this.initialized?a.write(function(){t.forEach(function(t){o.remove(e,t)})}):m.reject(new Error("sandbox not initialized"))}),t.override("hasRootClass",function(t){return o.present(this._shadowRootBody,t)}),t.override("addStyleSheet",function(t,e){return this.addCss('@import url("'+t+'");',e).then(function(){return d(t)})}),t.override("prependStyleSheet",function(t){var e=this._shadowRoot;return this.addStyleSheet(t,function(t){var n=e.firstElementChild;return n?e.insertBefore(t,n):e.appendChild(t)})}),t.override("appendStyleSheet",function(t){var e=this._shadowRoot;return this.addStyleSheet(t,function(t){return e.appendChild(t)})}),t.override("addCss",function(t,e){var n;return this.initialized?f.inlineStyle()?((n=this.createElement("style")).type="text/css",n.appendChild(this.targetGlobal.document.createTextNode(t)),a.write(h(e,null,n))):m.resolve():m.reject(new Error("sandbox not initialized"))}),t.override("prependCss",function(t){var e=this._shadowRoot;return this.addCss(t,function(t){var n=e.firstElementChild;return n?e.insertBefore(t,n):e.appendChild(t)})}),t.override("appendCss",function(t){var e=this._shadowRoot;return this.addCss(t,function(t){return e.appendChild(t)})}),t.override("makeVisible",function(){return this.styleSelf(y)}),t.override("injectWidgetEl",function(t){var e=this;return this.initialized?this._shadowRootBody.firstElementChild?m.reject(new Error("widget already injected")):a.write(function(){e._shadowRootBody.appendChild(t)}).then(function(){return e._updateCachedDimensions()}).then(function(){var t=p(e._didResize,g,e);new r(e._shadowRootBody,t)}):m.reject(new Error("sandbox not initialized"))}),t.override("matchHeightToContent",function(){return m.resolve()}),t.override("matchWidthToContent",function(){return m.resolve()}),t.override("insert",function(t,e,n,r){var i=this.targetGlobal.document,o=this._shadowHost=i.createElement(b),u=this._shadowRoot=o.attachShadow({mode:_}),c=this._shadowRootBody=i.createElement("div");return v.forIn(e||{},function(t,e){o.setAttribute(t,e)}),o.id=t,u.appendChild(c),s.delegate(c,"click","A",function(t,e){e.hasAttribute("target")||e.setAttribute("target","_blank")}),m.all([this.styleSelf(w),this.addRootClass(E),this.prependCss(x),a.write(r.bind(null,o))])}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("initialize",function(){this._shadowHost=this._shadowRoot=this._shadowRootBody=null,this._width=this._height=0,this._resizeHandlers=[]}),t.after("styleSelf",function(){return this._updateCachedDimensions()})})},function(t,e){var n;(n=function(t,e){function r(t,e){if(t.resizedAttached){if(t.resizedAttached)return void t.resizedAttached.add(e)}else t.resizedAttached=new function(){var t,e;this.q=[],this.add=function(t){this.q.push(t)},this.call=function(){for(t=0,e=this.q.length;t
',t.appendChild(t.resizeSensor),{fixed:1,absolute:1}[function(t,e){return t.currentStyle?t.currentStyle[e]:window.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(e):t.style[e]}(t,"position")]||(t.style.position="relative");var i,o,s=t.resizeSensor.childNodes[0],a=s.childNodes[0],u=t.resizeSensor.childNodes[1],c=(u.childNodes[0],function(){a.style.width=s.offsetWidth+10+"px",a.style.height=s.offsetHeight+10+"px",s.scrollLeft=s.scrollWidth,s.scrollTop=s.scrollHeight,u.scrollLeft=u.scrollWidth,u.scrollTop=u.scrollHeight,i=t.offsetWidth,o=t.offsetHeight});c();var d=function(t,e,n){t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener(e,n)},f=function(){t.offsetWidth==i&&t.offsetHeight==o||t.resizedAttached&&t.resizedAttached.call(),c()};d(s,"scroll",f),d(u,"scroll",f)}var i=Object.prototype.toString.call(t),o="[object Array]"===i||"[object NodeList]"===i||"[object HTMLCollection]"===i||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements;if(o)for(var s=0,a=t.length;s0;return this.updateCachedDimensions().then(function(){e&&t._resizeHandlers.forEach(function(e){e(t)})})}),t.define("loadDocument",function(t){var e=new a;return this.initialized?this.iframeEl.src?u.reject(new Error("widget already loaded")):(this.iframeEl.addEventListener("load",e.resolve,!1),this.iframeEl.addEventListener("error",e.reject,!1),this.iframeEl.src=t,e.promise):u.reject(new Error("sandbox not initialized"))}),t.after("initialize",function(){var t=new a,e=new a;this._iframe=null,this._iframeVersion=null,this._width=this._height=0,this._resizeHandlers=[],this._rendered=t,this._results=e,this._waitToSwapUntilRendered=!1}),t.override("insert",function(t,e,n,i){var a=this;return e=d.aug({id:t},f,e),n=d.aug({},l,n),this._iframe=s(e,n),p[t]=this,a._waitToSwapUntilRendered||this.onResize(o(function(){a.makeVisible()})),r.write(c(i,null,this._iframe))}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("styleSelf",function(){return this.updateCachedDimensions()})}},function(t,e,n){var r=n(1),i=n(118),o=n(120),s=n(22),a=n(5),u=n(121);t.exports=function(t,e,n,c,d){function f(t){var e=u(this);s.trigger(t.type,{target:e,region:t.region,type:t.type,data:t.data||{}})}function l(e){var n=u(this),r=n&&n.id,i=a.asInt(e.width),o=a.asInt(e.height);r&&void 0!==i&&void 0!==o&&t(r,i,o)}(new i).attachReceiver(new o.Receiver(r,"twttr.button")).bind("twttr.private.trigger",f).bind("twttr.private.resizeButton",l),(new i).attachReceiver(new o.Receiver(r,"twttr.embed")).bind("twttr.private.initialized",function(t){var e=u(this),n=e&&e.id,r=t.iframe_version;n&&r&&c&&c(n,r)}).bind("twttr.private.trigger",f).bind("twttr.private.results",function(){var t=u(this),n=t&&t.id;n&&e&&e(n)}).bind("twttr.private.rendered",function(){var t=u(this),e=t&&t.id;e&&n&&n(e)}).bind("twttr.private.no_results",function(){var t=u(this),e=t&&t.id;e&&d&&d(e)}).bind("twttr.private.resize",l)}},function(t,e,n){var r=n(24),i=n(119),o=n(0),s=n(6),a=n(23),u="2.0";function c(t){this.registry=t||{}}function d(t){var e,n;return e=o.isType("string",t),n=o.isType("number",t),e||n||null===t}function f(t,e){return{jsonrpc:u,id:d(t)?t:null,error:e}}c.prototype._invoke=function(t,e){var n,r,i;n=this.registry[t.method],r=t.params||[],r=o.isType("array",r)?r:[r];try{i=n.apply(e.source||null,r)}catch(t){i=s.reject(t.message)}return a.isPromise(i)?i:s.resolve(i)},c.prototype._processRequest=function(t,e){var n,r;return function(t){var e,n,r;return!!o.isObject(t)&&(e=t.jsonrpc===u,n=o.isType("string",t.method),r=!("id"in t)||d(t.id),e&&n&&r)}(t)?(n="params"in t&&(r=t.params,!o.isObject(r)||o.isType("function",r))?s.resolve(f(t.id,i.INVALID_PARAMS)):this.registry[t.method]?this._invoke(t,{source:e}).then(function(e){return n=t.id,{jsonrpc:u,id:n,result:e};var n},function(){return f(t.id,i.INTERNAL_ERROR)}):s.resolve(f(t.id,i.METHOD_NOT_FOUND)),null!=t.id?n:s.resolve()):s.resolve(f(t.id,i.INVALID_REQUEST))},c.prototype.attachReceiver=function(t){return t.attachTo(this),this},c.prototype.bind=function(t,e){return this.registry[t]=e,this},c.prototype.receive=function(t,e){var n,a,u,c=this;try{u=t,t=o.isType("string",u)?r.parse(u):u}catch(t){return s.resolve(f(null,i.PARSE_ERROR))}return e=e||null,a=((n=o.isType("array",t))?t:[t]).map(function(t){return c._processRequest(t,e)}),n?function(t){return s.all(t).then(function(t){return(t=t.filter(function(t){return void 0!==t})).length?t:void 0})}(a):a[0]},t.exports=c},function(t){t.exports={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INTERNAL_ERROR:{code:-32603,message:"Internal error"}}},function(t,e,n){var r=n(8),i=n(1),o=n(24),s=n(3),a=n(20),u=n(0),c=n(2),d=n(7),f=a.ie9();function l(t,e,n){var r;t&&t.postMessage&&(f?r=(n||"")+o.stringify(e):n?(r={})[n]=e:r=e,t.postMessage(r,"*"))}function h(t){return u.isType("string",t)?t:"JSONRPC"}function p(t,e){return e?u.isType("string",t)&&0===t.indexOf(e)?t.substring(e.length):t&&t[e]?t[e]:void 0:t}function m(t,e){var n=t.document;this.filter=h(e),this.server=null,this.isTwitterFrame=c.isTwitterURL(n.location.href),t.addEventListener("message",d(this._onMessage,this),!1)}function v(t,e){this.pending={},this.target=t,this.isTwitterHost=c.isTwitterURL(r.href),this.filter=h(e),i.addEventListener("message",d(this._onMessage,this),!1)}u.aug(m.prototype,{_onMessage:function(t){var e,n=this;this.server&&(this.isTwitterFrame&&!c.isTwitterURL(t.origin)||(e=p(t.data,this.filter))&&this.server.receive(e,t.source).then(function(e){e&&l(t.source,e,n.filter)}))},attachTo:function(t){this.server=t},detach:function(){this.server=null}}),u.aug(v.prototype,{_processResponse:function(t){var e=this.pending[t.id];e&&(e.resolve(t),delete this.pending[t.id])},_onMessage:function(t){var e;if((!this.isTwitterHost||c.isTwitterURL(t.origin))&&(e=p(t.data,this.filter))){if(u.isType("string",e))try{e=o.parse(e)}catch(t){return}(e=u.isType("array",e)?e:[e]).forEach(d(this._processResponse,this))}},send:function(t){var e=new s;return t.id?this.pending[t.id]=e:e.resolve(),l(this.target,t,this.filter),e.promise}}),t.exports={Receiver:m,Dispatcher:v,_stringifyPayload:function(t){return arguments.length>0&&(f=!!t),f}}},function(t,e,n){var r=n(4);t.exports=function(t){for(var e,n=r.getElementsByTagName("iframe"),i=0;n[i];i++)if((e=n[i]).contentWindow===t)return e}},function(t,e,n){var r=n(5),i=n(0),o=n(2),s=n(11),a=n(12)(),u=n(63),c="a.twitter-moment";t.exports=function(t){return a(t,c).map(function(t){return u(function(t){var e=s(t),n={momentId:o.momentId(t.href),chrome:t.getAttribute("data-chrome"),limit:t.getAttribute("data-limit")};return i.forIn(n,function(t,n){var i=e[t];e[t]=r.hasValue(i)?i:n}),e}(t),t.parentNode,t)})}},function(t,e,n){var r=n(3);t.exports=function(t,e){var i=new r;return n.e(3).then(function(r){var o;try{o=n(77),i.resolve(new o(t,e))}catch(t){i.reject(t)}}.bind(null,n)).catch(function(t){i.reject(t)}),i.promise}},function(t,e,n){var r=n(0),i=n(11),o=n(12)(),s=n(64),a="a.periscope-on-air",u=/^https?:\/\/(?:www\.)?(?:periscope|pscp)\.tv\/@?([a-zA-Z0-9_]+)\/?$/i;t.exports=function(t){return o(t,a).map(function(t){return s(function(t){var e=i(t),n=t.getAttribute("href"),o=t.getAttribute("data-size"),s=u.exec(n)[1];return r.aug(e,{username:s,size:o})}(t),t.parentNode,t)})}},function(t,e,n){var r=n(3);t.exports=function(t,e){var i=new r;return n.e(4).then(function(r){var o;try{o=n(78),i.resolve(new o(t,e))}catch(t){i.reject(t)}}.bind(null,n)).catch(function(t){i.reject(t)}),i.promise}},function(t,e,n){var r=n(5),i=n(0),o=n(65),s=n(11),a=n(12)(),u=n(66),c=n(2),d=n(18),f="a.twitter-timeline,div.twitter-timeline,a.twitter-grid",l="Embedded Search timelines have been deprecated. See https://twittercommunity.com/t/deprecating-widget-settings/102295.",h="You may have been affected by an update to settings in embedded timelines. See https://twittercommunity.com/t/deprecating-widget-settings/102295.",p="Embedded grids have been deprecated and will now render as timelines. Please update your embed code to use the twitter-timeline class. More info: https://twittercommunity.com/t/update-on-the-embedded-grid-display-type/119564.";t.exports=function(t,e){return a(t,f).map(function(t){return u(function(t){var e=s(t),n=t.getAttribute("data-show-replies"),a={isPreconfigured:!!t.getAttribute("data-widget-id"),chrome:t.getAttribute("data-chrome"),tweetLimit:t.getAttribute("data-tweet-limit")||t.getAttribute("data-limit"),ariaLive:t.getAttribute("data-aria-polite"),theme:t.getAttribute("data-theme"),borderColor:t.getAttribute("data-border-color"),showReplies:n?r.asBoolean(n):null,profileScreenName:t.getAttribute("data-screen-name"),profileUserId:t.getAttribute("data-user-id"),favoritesScreenName:t.getAttribute("data-favorites-screen-name"),favoritesUserId:t.getAttribute("data-favorites-user-id"),likesScreenName:t.getAttribute("data-likes-screen-name"),likesUserId:t.getAttribute("data-likes-user-id"),listOwnerScreenName:t.getAttribute("data-list-owner-screen-name"),listOwnerUserId:t.getAttribute("data-list-owner-id"),listId:t.getAttribute("data-list-id"),listSlug:t.getAttribute("data-list-slug"),customTimelineId:t.getAttribute("data-custom-timeline-id"),staticContent:t.getAttribute("data-static-content"),url:t.href};return a.isPreconfigured&&(c.isSearchUrl(a.url)?d.publicError(l,t):d.publicLog(h,t)),"twitter-grid"===t.className&&d.publicLog(p,t),(a=i.aug(a,e)).dataSource=o(a),a.id=a.dataSource&&a.dataSource.id,a}(t),t.parentNode,t,e)})}},function(t,e){t.exports=function(t,e,n){for(var r,i=0;i=0;y--){var g;void 0!==(f=old_memberDec(m[y],i,h,o,l,n,s,a,c))&&(old_assertValidReturnValue(n,f),0===n?g=f:1===n?(g=old_getInit(f),u=f.get||c.get,d=f.set||c.set,c={get:u,set:d}):c=f,void 0!==g&&(void 0===p?p=g:"function"==typeof p?p=[p,g]:p.push(g)))}if(0===n||1===n){if(void 0===p)p=function(t,e){return e};else if("function"!=typeof p){var v=p;p=function(t,e){for(var r=e,i=0;i3,g=d>=5;if(g?(c=e,f=i,0!=(d-=5)&&(u=a=a||[])):(c=e.prototype,f=r,0!==d&&(u=s=s||[])),0!==d&&!y){var v=g?l:o,b=v.get(m)||0;if(!0===b||3===b&&4!==d||4===b&&3!==d)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+m);!b&&d>2?v.set(m,d):v.set(m,!0)}old_applyMemberDec(t,c,p,m,d,g,y,f,u)}}old_pushInitializers(t,s),old_pushInitializers(t,a)}function old_pushInitializers(t,e){e&&t.push((function(t){for(var r=0;r0){for(var n=[],s=e,a=e.name,o=i.length-1;o>=0;o--){var l={v:!1};try{var h=Object.assign({kind:"class",name:a,addInitializer:old_createAddInitializerMethod(n,l)},old_createMetadataMethodsForProperty(r,0,a,l)),p=i[o](s,h)}finally{l.v=!0}void 0!==p&&(old_assertValidReturnValue(10,p),s=p)}t.push(s,(function(){for(var t=0;t=0;m--){var y;void 0!==(c=memberDec(d[m],i,l,o,n,s,a,p))&&(assertValidReturnValue(n,c),0===n?y=c:1===n?(y=c.init,f=c.get||p.get,u=c.set||p.set,p={get:f,set:u}):p=c,void 0!==y&&(void 0===h?h=y:"function"==typeof h?h=[h,y]:h.push(y)))}if(0===n||1===n){if(void 0===h)h=function(t,e){return e};else if("function"!=typeof h){var g=h;h=function(t,e){for(var r=e,i=0;i3,d=c>=5;if(d?(h=e,0!=(c-=5)&&(p=n=n||[])):(h=e.prototype,0!==c&&(p=i=i||[])),0!==c&&!u){var m=d?a:s,y=m.get(f)||0;if(!0===y||3===y&&4!==c||4===y&&3!==c)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+f);!y&&c>2?m.set(f,c):m.set(f,!0)}applyMemberDec(t,h,l,f,c,d,u,p)}}pushInitializers(t,i),pushInitializers(t,n)}function pushInitializers(t,e){e&&t.push((function(t){for(var r=0;r0){for(var i=[],n=e,s=e.name,a=r.length-1;a>=0;a--){var o={v:!1};try{var l=r[a](n,{kind:"class",name:s,addInitializer:createAddInitializerMethod(i,o)})}finally{o.v=!0}void 0!==l&&(assertValidReturnValue(10,l),n=l)}t.push(n,(function(){for(var t=0;t1){for(var a=new Array(s),o=0;o=0;--n){var s=this.tryEntries[n],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var o=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(o&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var i=r.completion;if("throw"===i.type){var n=i.arg;x(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),c}},t}function _typeof(t){return(_typeof="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)}function _wrapRegExp(){_wrapRegExp=function(t,e){return new r(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function r(t,i,n){var s=new RegExp(t,i);return e.set(s,n||e.get(t)),_setPrototypeOf(s,r.prototype)}function i(t,r){var i=e.get(r);return Object.keys(i).reduce((function(e,r){var n=i[r];if("number"==typeof n)e[r]=t[n];else{for(var s=0;void 0===t[n[s]]&&s+1]+)>/g,(function(t,e){var r=s[e];return"$"+(Array.isArray(r)?r.join("$"):r)})))}if("function"==typeof n){var a=this;return t[Symbol.replace].call(this,r,(function(){var t=arguments;return"object"!=typeof t[t.length-1]&&(t=[].slice.call(t)).push(i(t,a)),n.apply(this,t)}))}return t[Symbol.replace].call(this,r,n)},_wrapRegExp.apply(this,arguments)}function _AwaitValue(t){this.wrapped=t}function _wrapAsyncGenerator(t){return function(){return new _AsyncGenerator(t.apply(this,arguments))}}function asyncGeneratorStep(t,e,r,i,n,s,a){try{var o=t[s](a),l=o.value}catch(t){return void r(t)}o.done?e(l):Promise.resolve(l).then(i,n)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise((function(i,n){var s=t.apply(e,r);function a(t){asyncGeneratorStep(s,i,n,a,o,"next",t)}function o(t){asyncGeneratorStep(s,i,n,a,o,"throw",t)}a(void 0)}))}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var r=0;r=0||(n[r]=t[r]);return n}function _objectWithoutProperties(t,e){if(null==t)return{};var r,i,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _possibleConstructorReturn(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var r,i=_getPrototypeOf(t);if(e){var n=_getPrototypeOf(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _superPropBase(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _get(){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var i=_superPropBase(t,e);if(i){var n=Object.getOwnPropertyDescriptor(i,e);return n.get?n.get.call(arguments.length<3?t:r):n.value}}).apply(this,arguments)}function set(t,e,r,i){return(set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,r,i){var n,s=_superPropBase(t,e);if(s){if((n=Object.getOwnPropertyDescriptor(s,e)).set)return n.set.call(i,r),!0;if(!n.writable)return!1}if(n=Object.getOwnPropertyDescriptor(i,e)){if(!n.writable)return!1;n.value=r,Object.defineProperty(i,e,n)}else _defineProperty(i,e,r);return!0})(t,e,r,i)}function _set(t,e,r,i,n){if(!set(t,e,r,i||t)&&n)throw new Error("failed to set property");return r}function _taggedTemplateLiteral(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function _taggedTemplateLiteralLoose(t,e){return e||(e=t.slice(0)),t.raw=e,t}function _readOnlyError(t){throw new TypeError('"'+t+'" is read-only')}function _writeOnlyError(t){throw new TypeError('"'+t+'" is write-only')}function _classNameTDZError(t){throw new Error('Class "'+t+'" cannot be referenced in computed property keys.')}function _temporalUndefined(){}function _tdz(t){throw new ReferenceError(t+" is not defined - temporal dead zone")}function _temporalRef(t,e){return t===_temporalUndefined?_tdz(e):t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _slicedToArrayLoose(t,e){return _arrayWithHoles(t)||_iterableToArrayLimitLoose(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _toArray(t){return _arrayWithHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _maybeArrayLike(t,e,r){if(e&&!Array.isArray(e)&&"number"==typeof e.length){var i=e.length;return _arrayLikeToArray(e,void 0!==r&&rt.length)&&(e=t.length);for(var r=0,i=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){o=!0,s=t},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw s}}}}function _createForOfIteratorHelperLoose(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _skipFirstGeneratorNext(t){return function(){var e=t.apply(this,arguments);return e.next(),e}}function _toPrimitive(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.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)}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:String(e)}function _initializerWarningHelper(t,e){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}function _initializerDefineProperty(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function _applyDecoratedDescriptor(t,e,r,i,n){var s={};return Object.keys(i).forEach((function(t){s[t]=i[t]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(t,e,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(t,e,s),s=null),s}_AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},_AsyncGenerator.prototype.next=function(t){return this._invoke("next",t)},_AsyncGenerator.prototype.throw=function(t){return this._invoke("throw",t)},_AsyncGenerator.prototype.return=function(t){return this._invoke("return",t)};var id=0;function _classPrivateFieldLooseKey(t){return"__private_"+id+++"_"+t}function _classPrivateFieldLooseBase(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}function _classPrivateFieldGet(t,e){return _classApplyDescriptorGet(t,_classExtractFieldDescriptor(t,e,"get"))}function _classPrivateFieldSet(t,e,r){return _classApplyDescriptorSet(t,_classExtractFieldDescriptor(t,e,"set"),r),r}function _classPrivateFieldDestructureSet(t,e){return _classApplyDescriptorDestructureSet(t,_classExtractFieldDescriptor(t,e,"set"))}function _classExtractFieldDescriptor(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function _classStaticPrivateFieldSpecGet(t,e,r){return _classCheckPrivateStaticAccess(t,e),_classCheckPrivateStaticFieldDescriptor(r,"get"),_classApplyDescriptorGet(t,r)}function _classStaticPrivateFieldSpecSet(t,e,r,i){return _classCheckPrivateStaticAccess(t,e),_classCheckPrivateStaticFieldDescriptor(r,"set"),_classApplyDescriptorSet(t,r,i),i}function _classStaticPrivateMethodGet(t,e,r){return _classCheckPrivateStaticAccess(t,e),r}function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}function _classApplyDescriptorGet(t,e){return e.get?e.get.call(t):e.value}function _classApplyDescriptorSet(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function _classApplyDescriptorDestructureSet(t,e){if(e.set)return"__destrObj"in e||(e.__destrObj={set value(r){e.set.call(t,r)}}),e.__destrObj;if(!e.writable)throw new TypeError("attempted to set read only private field");return e}function _classStaticPrivateFieldDestructureSet(t,e,r){return _classCheckPrivateStaticAccess(t,e),_classCheckPrivateStaticFieldDescriptor(r,"set"),_classApplyDescriptorDestructureSet(t,r)}function _classCheckPrivateStaticAccess(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}function _decorate(t,e,r,i){var n=_getDecoratorsApi();if(i)for(var s=0;s=0;s--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var o=this.fromElementDescriptor(t),l=this.toElementFinisherExtras((0,n[s])(o)||o);t=l.element,this.addElementPlacement(t,e),l.finisher&&i.push(l.finisher);var h=l.extras;if(h){for(var p=0;p=0;i--){var n=this.fromClassDescriptor(t),s=this.toClassDescriptor((0,e[i])(n)||n);if(void 0!==s.finisher&&r.push(s.finisher),void 0!==s.elements){t=s.elements;for(var a=0;a=0;o--)(n=t[o])&&(a=(s<3?n(a):s>3?n(e,r,a):n(e,r))||a);return s>3&&a&&Object.defineProperty(e,r,a),a}function __param(t,e){return function(r,i){e(r,i,t)}}function __metadata(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function __awaiter(t,e,r,i){return new(r||(r=Promise))((function(n,s){function a(t){try{l(i.next(t))}catch(t){s(t)}}function o(t){try{l(i.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,o)}l((i=i.apply(t,e||[])).next())}))}function __generator(t,e){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,n,s=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=s.next()).done;)a.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a}function __spread(){for(var t=[],e=0;e1||o(t,e)}))})}function o(t,e){try{!function(t){t.value instanceof __await?Promise.resolve(t.value.v).then(l,h):p(s[0][2],t)}(n[t](e))}catch(t){p(s[0][3],t)}}function l(t){o("next",t)}function h(t){o("throw",t)}function p(t,e){t(e),s.shift(),s.length&&o(s[0][0],s[0][1])}}function __asyncDelegator(t){var e,r;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,n){e[i]=t[i]?function(e){return(r=!r)?{value:__await(t[i](e)),done:"return"===i}:n?n(e):e}:n}}function __asyncValues(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(e){return new Promise((function(i,n){(function(t,e,r,i){Promise.resolve(i).then((function(e){t({value:e,done:r})}),e)})(i,n,(e=t[r](e)).done,e.value)}))}}}function __makeTemplateObject(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function __importStar(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function __importDefault(t){return t&&t.__esModule?t:{default:t}}function __classPrivateFieldGet(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function __classPrivateFieldSet(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r} +/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const t$3=window,e$9=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$3=Symbol(),n$4=new WeakMap;class o$6{constructor(t,e,r){if(this._$cssResult$=!0,r!==s$3)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(e$9&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=n$4.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&n$4.set(e,t))}return t}toString(){return this.cssText}}const r$3=t=>new o$6("string"==typeof t?t:t+"",void 0,s$3),i$4=(t,...e)=>{const r=1===t.length?t[0]:e.reduce((e,r,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[i+1],t[0]);return new o$6(r,t,s$3)},S$1=(t,e)=>{e$9?t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(e=>{const r=document.createElement("style"),i=t$3.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=e.cssText,t.appendChild(r)})},c$1=e$9?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return r$3(e)})(t):t +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */;var s$2;const e$8=window,r$2=e$8.trustedTypes,h$2=r$2?r$2.emptyScript:"",o$5=e$8.reactiveElementPolyfillSupport,n$3={toAttribute(t,e){switch(e){case Boolean:t=t?h$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},a$1=(t,e)=>e!==t&&(e==e||t==t),l$3={attribute:!0,type:String,converter:n$3,reflect:!1,hasChanged:a$1};class d$1 extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,r)=>{const i=this._$Ep(r,e);void 0!==i&&(this._$Ev.set(i,r),t.push(i))}),t}static createProperty(t,e=l$3){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,r,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(i){const n=this[t];this[e]=i,this.requestUpdate(t,n,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||l$3}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of e)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(c$1(t))}else void 0!==t&&e.push(c$1(t));return e}static _$Ep(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach(t=>t(this))}addController(t){var e,r;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(r=t.hostConnected)||void 0===r||r.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return S$1(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)})}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e,r=l$3){var i;const n=this.constructor._$Ep(t,r);if(void 0!==n&&!0===r.reflect){const s=(void 0!==(null===(i=r.converter)||void 0===i?void 0:i.toAttribute)?r.converter:n$3).toAttribute(e,r.type);this._$El=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(t,e){var r;const i=this.constructor,n=i._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=i.getPropertyOptions(n),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(r=t.converter)||void 0===r?void 0:r.fromAttribute)?t.converter:n$3;this._$El=n,this[n]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,r){let i=!0;void 0!==t&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||a$1)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,r))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((t,e)=>this[e]=t),this._$Ei=void 0);let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),null===(t=this._$ES)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)}),this.update(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach(t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach((t,e)=>this._$EO(e,this[e],t)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}} +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +var t$2;d$1.finalized=!0,d$1.elementProperties=new Map,d$1.elementStyles=[],d$1.shadowRootOptions={mode:"open"},null==o$5||o$5({ReactiveElement:d$1}),(null!==(s$2=e$8.reactiveElementVersions)&&void 0!==s$2?s$2:e$8.reactiveElementVersions=[]).push("1.5.0");const i$3=window,s$1=i$3.trustedTypes,e$7=s$1?s$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,o$4=`lit$${(Math.random()+"").slice(9)}$`,n$2="?"+o$4,l$2=`<${n$2}>`,h$1=document,r$1=(t="")=>h$1.createComment(t),d=t=>null===t||"object"!=typeof t&&"function"!=typeof t,u=Array.isArray,c=t=>u(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,a=/-->/g,f=/>/g,_=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),m=/'/g,p=/"/g,$=/^(?:script|style|textarea|title)$/i,g=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),y=g(1),w=g(2),x$1=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),T=new WeakMap,A=h$1.createTreeWalker(h$1,129,null,!1),E=(t,e)=>{const r=t.length-1,i=[];let n,s=2===e?"":"",o=v;for(let e=0;e"===h[0]?(o=null!=n?n:v,c=-1):void 0===h[1]?c=-2:(c=o.lastIndex-h[2].length,l=h[1],o=void 0===h[3]?_:'"'===h[3]?p:m):o===p||o===m?o=_:o===a||o===f?o=v:(o=_,n=void 0);const d=o===_&&t[e+1].startsWith("/>")?" ":"";s+=o===v?r+l$2:c>=0?(i.push(l),r.slice(0,c)+"$lit$"+r.slice(c)+o$4+d):r+o$4+(-2===c?(i.push(void 0),e):d)}const l=s+(t[r]||"")+(2===e?"":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==e$7?e$7.createHTML(l):l,i]};class C{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let n=0,s=0;const a=t.length-1,o=this.parts,[l,h]=E(t,e);if(this.el=C.createElement(l,r),A.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=A.nextNode())&&o.length0){i.textContent=s$1?s$1.emptyScript:"";for(let r=0;r2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=b}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,i){const n=this.strings;let s=!1;if(void 0===n)t=P(this,t,e,0),s=!d(t)||t!==this._$AH&&t!==x$1,s&&(this._$AH=t);else{const i=t;let a,o;for(t=n[0],a=0;a{var i,n;const s=null!==(i=null==r?void 0:r.renderBefore)&&void 0!==i?i:e;let a=s._$litPart$;if(void 0===a){const t=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:null;s._$litPart$=a=new N(e.insertBefore(r$1(),t),t,void 0,null!=r?r:{})}return a._$AI(t),a +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */};var l$1,o$3;const r=d$1;class s extends d$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const r=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=r.firstChild),r}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Z(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return x$1}}s.finalized=!0,s._$litElement$=!0,null===(l$1=globalThis.litElementHydrateSupport)||void 0===l$1||l$1.call(globalThis,{LitElement:s});const n$1=globalThis.litElementPolyfillSupport;null==n$1||n$1({LitElement:s});const h={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(null!==(o$3=globalThis.litElementVersions)&&void 0!==o$3?o$3:globalThis.litElementVersions=[]).push("3.2.2"); +/** + * @license + * Copyright 2022 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ +const o$2=!1,e$6=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:r,elements:i}=e;return{kind:r,elements:i,finisher(e){customElements.define(t,e)}}})(t,e) +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */,i$2=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}}; +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function e$5(t){return(e,r)=>void 0!==r?((t,e,r)=>{e.constructor.createProperty(r,t)})(t,e,r):i$2(t,e) +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */}function t$1(t){return e$5({...t,state:!0})} +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const e$4=(t,e,r)=>{Object.defineProperty(e,r,t)},t=(t,e)=>({kind:"method",placement:"prototype",key:e.key,descriptor:t}),o$1=({finisher:t,descriptor:e})=>(r,i)=>{var n;if(void 0===i){const i=null!==(n=r.originalKey)&&void 0!==n?n:r.key,s=null!=e?{kind:"method",placement:"prototype",key:i,descriptor:e(r.key)}:{...r,key:i};return null!=t&&(s.finisher=function(e){t(e,i)}),s}{const n=r.constructor;void 0!==e&&Object.defineProperty(r,i,e(i)),null==t||t(n,i)}} +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */;function e$3(t){return o$1({finisher:(e,r)=>{Object.assign(e.prototype[r],t)}})} +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function i$1(t,e){return o$1({descriptor:r=>{const i={get(){var e,r;return null!==(r=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==r?r:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof r?Symbol():"__"+r;i.get=function(){var r,i;return void 0===this[e]&&(this[e]=null!==(i=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(t))&&void 0!==i?i:null),this[e]}}return i}})} +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function e$2(t){return o$1({descriptor:e=>({get(){var e,r;return null!==(r=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==r?r:[]},enumerable:!0,configurable:!0})})} +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function e$1(t){return o$1({descriptor:e=>({async get(){var e;return await this.updateComplete,null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t)},enumerable:!0,configurable:!0})})} +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var n;const e=null!=(null===(n=window.HTMLSlotElement)||void 0===n?void 0:n.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE);function l(t){const{slot:r,selector:i}=null!=t?t:{};return o$1({descriptor:n=>({get(){var n;const s="slot"+(r?`[name=${r}]`:":not([name])"),a=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(s),o=null!=a?e(a,t):[];return i?o.filter(t=>t.matches(i)):o},enumerable:!0,configurable:!0})})} +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function o(t,e,r){let i,n=t;return"object"==typeof t?(n=t.slot,i=t):i={flatten:e},r?l({slot:n,flatten:e,selector:r}):o$1({descriptor:t=>({get(){var t,e;const r="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(r);return null!==(e=null==s?void 0:s.assignedNodes(i))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return commonjsRequire(t,null==e?r.path:e)}},r.exports),r.exports}function getCjsExportFromNamespace(t){return t&&t.default||t}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var lottie=createCommonjsModule((function(module,exports){"undefined"!=typeof navigator&&function(t,e){module.exports=e()}(0,(function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var r,i,n=t.length;for(r=0;r1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t,e,r=[];for(t=0;t<256;t+=1)e=t.toString(16),r[t]=1===e.length?"0"+e:e;return function(t,e,i){return t<0&&(t=0),e<0&&(e=0),i<0&&(i=0),"#"+r[t]+r[e]+r[i]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return(_typeof$5="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 dataManager=function(){var t,e,r=1,i=[],n={onmessage:function(){},postMessage:function(e){t({data:e})}},s={postMessage:function(t){n.onmessage({data:t})}};function a(){e||((e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),i=URL.createObjectURL(r);return new Worker(i)}return t=e,n}((function(t){if(s.dataManager||(s.dataManager=function(){function t(n,s){var a,o,l,h,p,f,u=n.length;for(o=0;o=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)i(t[e].ks.k);else for(s=t[e].ks.k.length,n=0;nr[0]||!(r[0]>t[0])&&(t[1]>r[1]||!(r[1]>t[1])&&(t[2]>r[2]||!(r[2]>t[2])&&null))}var s,a=function(){var t=[4,4,14];function e(t){var e,r,i,n=t.length;for(e=0;e=0;r-=1)if("sh"===t[r].ty)if(t[r].ks.k.i)t[r].ks.k.c=t[r].closed;else for(n=t[r].ks.k.length,i=0;i500)&&(this._imageLoaded(),clearInterval(r)),e+=1}.bind(this),50)}function s(t){var e={assetData:t},r=i(t,this.assetsPath,this.path);return dataManager.loadData(r,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function a(){this._imageLoaded=e.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(t,e){var r;this.imagesLoadedCb=e;var i=t.length;for(r=0;rthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,r,i=this.animationData.layers,n=i.length,s=t.layers,a=s.length;for(r=0;rthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.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")))},AnimationItem.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())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,r=0;r=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)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]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")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var r,i=t.length;for(r=0;r=0;r-=1)e[r].animation.destroy(t)},t.freeze=function(){a=!0},t.unfreeze=function(){a=!1,d()},t.setVolume=function(t,r){var n;for(n=0;n=.001?function(t,e,r,i){for(var n=0;n<4;++n){var s=o(e,r,i);if(0===s)return e;e-=(a(e,r,i)-t)/s}return e}(t,l,e,r):0===h?l:function(t,e,r,i,n){var s,o,l=0;do{(s=a(o=e+(r-e)/2,i,n)-t)>0?r=o:e=o}while(Math.abs(s)>1e-7&&++l<10);return o}(t,n,n+.1,e,r)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,r){var i=0,n=t,s=createSizedArray(n);return{newElement:function(){return i?s[i-=1]:e()},release:function(t){i===n&&(s=pooling.double(s),n*=2),r&&r(t),s[i]=t,i+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,r=t.lengths.length;for(e=0;e-.001&&a<.001}var r=function(t,e,r,i){var n,s,a,o,l,h,p=getDefaultCurveSegments(),c=0,f=[],u=[],d=bezierLengthPool.newElement();for(a=r.length,n=0;na?-1:1,h=!0;h;)if(i[s]<=a&&i[s+1]>a?(o=(a-i[s])/(i[s+1]-i[s]),h=!1):s+=l,s<0||s>=n-1){if(s===n-1)return r[s];h=!1}return r[s]+(r[s+1]-r[s])*o}var l=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,i=segmentsLengthPool.newElement(),n=t.c,s=t.v,a=t.o,o=t.i,l=t._length,h=i.lengths,p=0;for(e=0;e1&&(s=1);var p,c=o(s,h),f=o(a=a>1?1:a,h),u=e.length,d=1-c,m=1-f,y=d*d*d,g=c*d*d*3,v=c*c*d*3,b=c*c*c,_=d*d*m,P=c*d*m+d*c*m+d*d*f,E=c*c*m+d*c*f+c*d*f,S=c*c*f,x=d*m*m,w=c*m*m+d*f*m+d*m*f,A=c*f*m+d*f*f+c*m*f,C=c*f*f,k=m*m*m,T=f*m*m+m*f*m+m*m*f,M=f*f*m+m*f*f+f*m*f,D=f*f*f;for(p=0;pu?f>d?f-u-d:d-u-f:d>u?d-u-f:u-f-d)>-1e-4&&c<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function r(t,e){var r,n=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var s,a,o,l,h,p,c,f,u,d=e.lastIndex,m=d,y=this.keyframes.length-1,g=!0;g;){if(s=this.keyframes[m],a=this.keyframes[m+1],m===y-1&&t>=a.t-n){s.h&&(s=a),d=0;break}if(a.t-n>t){d=m;break}m=b||t<_){var E=t>=b?P.points.length-1:0;for(h=P.points[E].point.length,l=0;l=w&&x=b)r[0]=v[0],r[1]=v[1],r[2]=v[2];else if(t<=_)r[0]=s.s[0],r[1]=s.s[1],r[2]=s.s[2];else{!function(t,e){var r=e[0],i=e[1],n=e[2],s=e[3],a=Math.atan2(2*i*s-2*r*n,1-2*i*i-2*n*n),o=Math.asin(2*r*i+2*n*s),l=Math.atan2(2*r*s-2*i*n,1-2*r*r-2*n*n);t[0]=a/degToRads,t[1]=o/degToRads,t[2]=l/degToRads}(r,function(t,e,r){var i,n,s,a,o,l=[],h=t[0],p=t[1],c=t[2],f=t[3],u=e[0],d=e[1],m=e[2],y=e[3];(n=h*u+p*d+c*m+f*y)<0&&(n=-n,u=-u,d=-d,m=-m,y=-y);1-n>1e-6?(i=Math.acos(n),s=Math.sin(i),a=Math.sin((1-r)*i)/s,o=Math.sin(r*i)/s):(a=1-r,o=r);return l[0]=a*h+o*u,l[1]=a*p+o*d,l[2]=a*c+o*m,l[3]=a*f+o*y,l}(i(s.s),i(v),(t-_)/(b-_)))}else for(m=0;m=b?p=1:t<_?p=0:(s.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[m]?u=o.__fnct[m]:(A=void 0===s.o.x[m]?s.o.x[0]:s.o.x[m],C=void 0===s.o.y[m]?s.o.y[0]:s.o.y[m],k=void 0===s.i.x[m]?s.i.x[0]:s.i.x[m],T=void 0===s.i.y[m]?s.i.y[0]:s.i.y[m],u=BezierFactory.getBezierEasing(A,C,k,T).get,o.__fnct[m]=u)):o.__fnct?u=o.__fnct:(A=s.o.x,C=s.o.y,k=s.i.x,T=s.i.y,u=BezierFactory.getBezierEasing(A,C,k,T).get,s.keyframeMetadata=u),p=u((t-_)/(b-_)))),v=a.s||s.e,M=1===s.h?s.s[m]:s.s[m]+(v[m]-s.s[m])*p,"multidimensional"===this.propType?r[m]=M:r=M}return e.lastIndex=d,r}function i(t){var e=t[0]*degToRads,r=t[1]*degToRads,i=t[2]*degToRads,n=Math.cos(e/2),s=Math.cos(r/2),a=Math.cos(i/2),o=Math.sin(e/2),l=Math.sin(r/2),h=Math.sin(i/2);return[o*l*a+n*s*h,o*s*a+n*l*h,n*l*a-o*s*h,n*s*a-o*l*h]}function n(){var e=this.comp.renderedFrame-this.offsetTime,r=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=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function s(t){var r;if("unidimensional"===this.propType)r=t*this.mult,e(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var i=0,n=this.v.length;i1e-5&&(this.v[i]=r,this._mdf=!0),i+=1}function a(){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,r=this.kf?this.pv:this.data.k;for(t=0;t=this._maxLength&&this.doubleArrayLength(),r){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}(!s[i]||s[i]&&!n)&&(s[i]=pointPool.newElement()),s[i][0]=t,s[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,i,n,s,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(r,i,"o",a,o),this.setXYAt(n,s,"i",a,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),n=1);var s,a=this._length-1,o=this._length;for(s=n;s=u[u.length-1].t-this.offsetTime)i=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],s=!0;else{for(var d,m,y,g=f,v=u.length-1,b=!0;b&&(d=u[g],!((m=u[g+1]).t-this.offsetTime>t));)g=m.t-this.offsetTime)p=1;else if(tr&&t>r)||(this._caching.lastIndex=i0||t>-1e-6&&t<0?i(1e4*t)/1e4:t}function I(){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=n,this.rotate=s,this.rotateX=a,this.rotateY=o,this.rotateZ=l,this.skew=p,this.skewFromAxis=c,this.shear=h,this.scale=f,this.setTransform=u,this.translate=d,this.transform=m,this.applyToPoint=_,this.applyToX=P,this.applyToY=E,this.applyToZ=S,this.applyToPointArray=k,this.applyToTriplePoints=C,this.applyToPointStringified=T,this.toCSS=M,this.to2dCSS=I,this.clone=v,this.cloneFromProps=b,this.equals=g,this.inversePoints=A,this.inversePoint=w,this.getInverseMatrix=x,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return(_typeof$3="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 lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var a,o,l=[],h=s.length;for(a=0;ai+r))p=o.s*n<=i?0:(o.s*n-i)/r,c=o.e*n>=i+r?1:(o.e*n-i)/r,l.push([p,c])}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e1?1+s:this.s.v<0?0+s:this.s.v+s)>(r=this.e.v>1?1+s:this.e.v<0?0+s:this.e.v+s)){var a=e;e=r,r=a}e=1e-4*Math.round(1e4*e),r=1e-4*Math.round(1e4*r),this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var o,l,h,p,c,f=this.shapes.length,u=0;if(r===e)for(n=0;n=0;n-=1)if((d=this.shapes[n]).shape._mdf){for((m=d.localShapeCollection).releaseShapes(),2===this.m&&f>1?(g=this.calculateShapeEdges(e,r,d.totalShapeLength,_,u),_+=d.totalShapeLength):g=[[v,b]],l=g.length,o=0;o=1?y.push({s:d.totalShapeLength*(v-1),e:d.totalShapeLength*(b-1)}):(y.push({s:d.totalShapeLength*v,e:d.totalShapeLength}),y.push({s:0,e:d.totalShapeLength*(b-1)}));var P=this.addShapes(d,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var E=P.pop();this.addPaths(P,m),P=this.addShapes(d,y[1],E)}else this.addPaths(P,m),P=this.addShapes(d,y[1]);this.addPaths(P,m)}}d.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var r,i=t.length;for(r=0;re.e){r.c=!1;break}e.s<=d&&e.e>=d+a.addedLength?(this.addSegment(f[i].v[n-1],f[i].o[n-1],f[i].i[n],f[i].v[n],r,o,y),y=!1):(h=bez.getNewSegment(f[i].v[n-1],f[i].v[n],f[i].o[n-1],f[i].i[n],(e.s-d)/a.addedLength,(e.e-d)/a.addedLength,l[n-1]),this.addSegmentFromArray(h,r,o,y),y=!1,r.c=!1),d+=a.addedLength,o+=1}if(f[i].c&&l.length){if(a=l[n-1],d<=e.e){var g=l[n-1].addedLength;e.s<=d&&e.e>=d+g?(this.addSegment(f[i].v[n-1],f[i].o[n-1],f[i].i[0],f[i].v[0],r,o,y),y=!1):(h=bez.getNewSegment(f[i].v[n-1],f[i].v[0],f[i].o[n-1],f[i].i[0],(e.s-d)/g,(e.e-d)/g,l[n-1]),this.addSegmentFromArray(h,r,o,y),y=!1,r.c=!1)}else r.c=!1;d+=a.addedLength,o+=1}if(r._length&&(r.setXYAt(r.v[p][0],r.v[p][1],"i",p),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),d>e.e)break;i=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(i=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],n=[];var s=this.px,a=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(i[0]=s.getValueAtTime((s.keyframes[0].t+.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),n[0]=s.getValueAtTime(s.keyframes[0].t/r,0),n[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(i[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/r,0),i[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),n[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(i=[s.pv,a.pv],n[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/r,s.offsetTime),n[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else i=n=t;this.v.rotate(-Math.atan2(i[1]-n[1],i[0]-n[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}},precalculateMatrix:function(){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)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,r,i){return new e(t,r,i)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,r){return t*(1-r)+e*r}function lerpPoint(t,e,r){return[lerp(t[0],e[0],r),lerp(t[1],e[1],r)]}function quadRoots(t,e,r){if(0===t)return[];var i=e*e-4*t*r;if(i<0)return[];var n=-e/(2*t);if(0===i)return[n];var s=Math.sqrt(i)/(2*t);return[n-s,n+s]}function polynomialCoefficients(t,e,r,i){return[3*e-t-3*r+i,3*t-6*e+3*r,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,r,i,n){n&&pointEqual(t,e)&&(e=lerpPoint(t,i,1/3)),n&&pointEqual(r,i)&&(r=lerpPoint(t,i,2/3));var s=polynomialCoefficients(t[0],e[0],r[0],i[0]),a=polynomialCoefficients(t[1],e[1],r[1],i[1]);this.a=[s[0],a[0]],this.b=[s[1],a[1]],this.c=[s[2],a[2]],this.d=[s[3],a[3]],this.points=[t,e,r,i]}function extrema(t,e){var r=t.points[0][e],i=t.points[t.points.length-1][e];if(r>i){var n=i;i=r,r=n}for(var s=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),a=0;a0&&s[a]<1){var o=t.point(s[a])[e];oi&&(i=o)}return{min:r,max:i}}function intersectData(t,e,r){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+r)/2,t1:e,t2:r}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)=s||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i)n.push([t.t,e.t]);else{var a=splitData(t),o=splitData(e);intersectsImpl(a[0],o[0],r+1,i,n,s),intersectsImpl(a[0],o[1],r+1,i,n,s),intersectsImpl(a[1],o[0],r+1,i,n,s),intersectsImpl(a[1],o[1],r+1,i,n,s)}}function crossProduct(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 lineIntersection(t,e,r,i){var n=[t[0],t[1],1],s=[e[0],e[1],1],a=[r[0],r[1],1],o=[i[0],i[1],1],l=crossProduct(crossProduct(n,s),crossProduct(a,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,r){return[t[0]+Math.cos(e)*r,t[1]-Math.sin(e)*r]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,r,i,n,s,a){var o=r-Math.PI/2,l=r+Math.PI/2,h=e[0]+Math.cos(r)*i*n,p=e[1]-Math.sin(r)*i*n;t.setTripleAt(h,p,h+Math.cos(o)*s,p-Math.sin(o)*s,h+Math.cos(l)*a,p-Math.sin(l)*a,t.length())}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[1]],i=.5*-Math.PI;return[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]]}function getProjectingAngle(t,e){var r=0===e?t.length()-1:e-1,i=(e+1)%t.length(),n=getPerpendicularVector(t.v[r],t.v[i]);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,r,i,n,s,a){var o=getProjectingAngle(e,r),l=e.v[r%e._length],h=e.v[0===r?e._length-1:r-1],p=e.v[(r+1)%e._length],c=2===s?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0,f=2===s?Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)):0;setPoint(t,e.v[r%e._length],o,a,i,f/(2*(n+1)),c/(2*(n+1)),s)}function zigZagSegment(t,e,r,i,n,s){for(var a=0;a1&&e.length>1&&(n=getIntersection(t[0],e[e.length-1]))?[[t[0].split(n[0])[0]],[e[e.length-1].split(n[1])[1]]]:[r,i]}function pruneIntersections(t){for(var e,r=1;r1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var r,i,n,s,a=t.inflectionPoints();if(0===a.length)return[offsetSegment(t,e)];if(1===a.length||floatEqual(a[1],1))return r=(n=t.split(a[0]))[0],i=n[1],[offsetSegment(r,e),offsetSegment(i,e)];r=(n=t.split(a[0]))[0];var o=(a[1]-a[0])/(1-a[0]);return s=(n=n[1].split(o))[0],i=n[1],[offsetSegment(r,e),offsetSegment(s,e),offsetSegment(i,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],r="normal",i="normal",n=e.length,s=0;s0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e0?Math.floor(f):Math.ceil(f),m=this.pMatrix.props,y=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,_=0;if(f>0){for(;_d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),_-=u)}for(i=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,s=this._currentCopies;s;){if(b=(r=(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!==_){for((0!==i&&1===n||i!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),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(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(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;v0&&i<1?[e]:[]:[e-i,e+i].filter((function(t){return t>0&&t<1}))},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),r=lerpPoint(this.points[1],this.points[2],t),i=lerpPoint(this.points[2],this.points[3],t),n=lerpPoint(e,r,t),s=lerpPoint(r,i,t),a=lerpPoint(n,s,t);return[new PolynomialBezier(this.points[0],e,n,a,!0),new PolynomialBezier(a,s,i,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.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}},PolynomialBezier.prototype.intersections=function(t,e,r){void 0===e&&(e=2),void 0===r&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,i,r),i},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,r,i){var n=t._length,s=shapePool.newElement();if(s.c=t.c,t.c||(n-=1),0===n)return s;var a=-1,o=PolynomialBezier.shapeSegment(t,0);zigZagCorner(s,t,0,e,r,i,a);for(var l=0;l=0;s-=1)o=PolynomialBezier.shapeSegmentInverted(t,s),h.push(offsetSegmentSplit(o,e));h=pruneIntersections(h);var p=null,c=null;for(s=0;s0&&(p=!1),p){var c=createTag("style");c.setAttribute("f-forigin",i[r].fOrigin),c.setAttribute("f-origin",i[r].origin),c.setAttribute("f-family",i[r].fFamily),c.type="text/css",c.innerText="@font-face {font-family: "+i[r].fFamily+"; font-style: normal; src: url('"+i[r].fPath+"');}",e.appendChild(c)}}else if("g"===i[r].fOrigin||1===i[r].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),h=0;ht?!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;t0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+y+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var r;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,n=this.data.ef.length,s=this.data.ef;for(r=0;r.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,r,i=this.layers.length;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e]).ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.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: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);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t1&&(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]),r.lastPath!==s){var a="";r.elem&&(e.c&&(a=t.inv?this.solidPath+s:s),r.elem.setAttribute("d",a)),r.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={};return t.createFilter=function(t,e){var r=createNS("filter");r.setAttribute("id",t),!0!==e&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%"));return r},t.createAlphaToLuminanceFilter=function(){var t=createNS("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},t}(),featureSupport=function(){var t={maskType:!0};return(/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))&&(t.maskType=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,r,i="SourceGraphic",n=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),o=0;for(this.filters=[],e=0;e=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,r=0,i=e.length;r.01)return!1;r+=1}return!0},GradientProperty.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;t0;)l=i.transformers[m].mProps._mdf||l,d-=1,m-=1;if(l)for(d=g-i.styles[p].lvl,m=i.transformers.length-1;d>0;)u=i.transformers[m].mProps.v.props,f.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),d-=1,m-=1}else f=t;if(a=(c=i.sh.paths)._length,l){for(o="",s=0;s=1?v=.99:v<=-1&&(v=-.99);var b=o*v,_=Math.cos(g+e.a.v)*b+p[0],P=Math.sin(g+e.a.v)*b+p[1];l.setAttribute("fx",_),l.setAttribute("fy",P),h&&!e.g._collapsable&&(e.of.setAttribute("fx",_),e.of.setAttribute("fy",P))}}function l(t,e,r){var i=e.style,n=e.d;n&&(n._mdf||r)&&n.dashStr&&(i.pElem.setAttribute("stroke-dasharray",n.dashStr),i.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),e.c&&(e.c._mdf||r)&&i.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r)&&i.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||r)&&(i.pElem.setAttribute("stroke-width",e.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return s;case"gf":return o;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return n;case"tr":return r;case"no":return i;default:return null}}}}();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}function LetterProps(t,e,r,i,n,s){this.o=t,this.sw=e,this.sc=r,this.fc=i,this.m=n,this.p=s,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!i,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,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)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,r,i,n=this.shapes.length,s=this.stylesList.length,a=[],o=!1;for(r=0;r1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e=0;o-=1){if((f=this.searchProcessedElement(t[o]))?e[o]=r[f-1]:t[o]._render=a,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)f?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],n),t[o]._render&&e[o].style.pElem.parentNode!==i&&i.appendChild(e[o].style.pElem),m.push(e[o].style);else if("gr"===t[o].ty){if(f)for(h=e[o].it.length,l=0;l1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.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,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(i=0;ie);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,r,i=[],n=0,s=t.length,a=!1;n=55296&&e<=56319?(r=t.charCodeAt(n+1))>=56320&&r<=57343?(a||FontManager.isModifier(e,r)?(i[i.length-1]+=t.substr(n,2),a=!1):i.push(t.substr(n,2)),n+=1):i.push(t.charAt(n)):e>56319?(r=t.charCodeAt(n+1),FontManager.isZeroWidthJoiner(e,r)?(a=!0,i[i.length-1]+=t.substr(n,2),n+=1):i.push(t.charAt(n))):FontManager.isZeroWidthJoiner(e)?(i[i.length-1]+=t.charAt(n),a=!0):i.push(t.charAt(n)),n+=1;return i},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,r,i,n,s,a,o,l=this.elem.globalData.fontManager,h=this.data,p=[],c=0,f=h.m.g,u=0,d=0,m=0,y=[],g=0,v=0,b=l.getFontByName(t.f),_=0,P=getFontProperties(b);t.fWeight=P.weight,t.fStyle=P.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),r=t.finalText.length,t.finalLineHeight=t.lh;var E,S=t.tr/1e3*t.finalSize;if(t.sz)for(var x,w,A=!0,C=t.sz[0],k=t.sz[1];A;){x=0,g=0,r=(w=this.buildFinalText(t.t)).length,S=t.tr/1e3*t.finalSize;var T=-1;for(e=0;eC&&" "!==w[e]?(-1===T?r+=1:e=T,x+=t.finalLineHeight||1.2*t.finalSize,w.splice(e,T===e?1:0,"\r"),T=-1,g=0):(g+=_,g+=S);x+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&kv?g:v,g=-2*S,n="",i=!0,m+=1):n=M,l.chars?(o=l.getCharData(M,b.fStyle,l.getFontByName(t.f).fFamily),_=i?0:o.w*t.finalSize/100):_=l.measureText(n,t.f,t.finalSize)," "===M?D+=_+S:(g+=_+S+D,D=0),p.push({l:_,an:_,add:u,n:i,anIndexes:[],val:n,line:m,animatorJustifyOffset:0}),2==f){if(u+=_,""===n||" "===n||e===r-1){for(""!==n&&" "!==n||(u-=_);d<=e;)p[d].an=u,p[d].ind=c,p[d].extra=_,d+=1;c+=1,u=0}}else if(3==f){if(u+=_,""===n||e===r-1){for(""===n&&(u-=_);d<=e;)p[d].an=u,p[d].ind=c,p[d].extra=_,d+=1;u=0,c+=1}}else p[c].ind=c,p[c].extra=0,c+=1;if(t.l=p,v=g>v?g:v,y.push(g),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=y;var I,F,R,B,z=h.a;a=z.length;var O=[];for(s=0;s0?n=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(n,s,a,o).get,h=0,p=this.finalS,c=this.finalE,f=this.data.sh;if(2===f)h=l(h=c===p?i>=c?1:0:t(0,e(.5/(c-p)+(i-p)/(c-p),1)));else if(3===f)h=l(h=c===p?i>=c?0:1:1-t(0,e(.5/(c-p)+(i-p)/(c-p),1)));else if(4===f)c===p?h=0:(h=t(0,e(.5/(c-p)+(i-p)/(c-p),1)))<.5?h*=2:h=1-2*(h-.5),h=l(h);else if(5===f){if(c===p)h=0;else{var u=c-p,d=-u/2+(i=e(t(0,i+.5-p),c-p)),m=u/2;h=Math.sqrt(1-d*d/(m*m))}h=l(h)}else 6===f?(c===p?h=0:(i=e(t(0,i+.5-p),c-p),h=(1+Math.cos(Math.PI+2*Math.PI*i/(c-p)))/2),h=l(h)):(i>=r(p)&&(h=t(0,e(i-p<0?e(c,1)-(p-i):c-i,1))),h=l(h));if(100!==this.sm.v){var y=.01*this.sm.v;0===y&&(y=1e-8);var g=.5-.5*y;h1&&(h=1)}return h*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,r=this.o.v/e,i=this.s.v/e+r,n=this.e.v/e+r;if(i>n){var s=i;i=n,n=s}this.finalS=i,this.finalE=n}},extendPrototype([DynamicPropertyContainer],i),{getTextSelectorProp:function(t,e,r){return new i(t,e,r)}}}();function TextAnimatorDataProperty(t,e,r){var i={propType:!1},n=PropertyFactory.getProp,s=e.a;this.a={r:s.r?n(t,s.r,0,degToRads,r):i,rx:s.rx?n(t,s.rx,0,degToRads,r):i,ry:s.ry?n(t,s.ry,0,degToRads,r):i,sk:s.sk?n(t,s.sk,0,degToRads,r):i,sa:s.sa?n(t,s.sa,0,degToRads,r):i,s:s.s?n(t,s.s,1,.01,r):i,a:s.a?n(t,s.a,1,0,r):i,o:s.o?n(t,s.o,0,.01,r):i,p:s.p?n(t,s.p,1,0,r):i,sw:s.sw?n(t,s.sw,0,0,r):i,sc:s.sc?n(t,s.sc,1,0,r):i,fc:s.fc?n(t,s.fc,1,0,r):i,fh:s.fh?n(t,s.fh,0,0,r):i,fs:s.fs?n(t,s.fs,0,.01,r):i,fb:s.fb?n(t,s.fb,0,.01,r):i,t:s.t?n(t,s.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,r=this._textData.a.length,i=PropertyFactory.getProp;for(t=0;t=o+ot||!d?(v=(o+ot-h)/l.partialLength,L=u.point[0]+(l.point[0]-u.point[0])*v,V=u.point[1]+(l.point[1]-u.point[1])*v,x.translate(-P[0]*C[n].an*.005,-P[1]*B*.01),p=!1):d&&(h+=l.partialLength,(c+=1)>=d.length&&(c=0,m[f+=1]?d=m[f].points:_.v.c?(c=0,d=m[f=0].points):(h-=l.partialLength,d=null)),d&&(u=l,y=(l=d[c]).partialLength));O=C[n].an/2-C[n].add,x.translate(-O,0,0)}else O=C[n].an/2-C[n].add,x.translate(-O,0,0),x.translate(-P[0]*C[n].an*.005,-P[1]*B*.01,0);for(D=0;Dt?this.textSpans[t].span:createNS(l?"g":"text"),y<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,l){var g=createNS("g");a.appendChild(g),this.textSpans[t].childSpan=g}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(h.reset(),p&&(o[t].n&&(c=-d,f+=r.yOffset,f+=u?1:0,u=!1),this.applyTextPropertiesToMatrix(r,h,o[t].line,c,f),c+=o[t].l||0,c+=d),l){var v;if(1===(m=this.globalData.fontManager.getCharData(r.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)v=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,r.finalSize)),v=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[t].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[t].childSpan.appendChild(v.layerElement),1===m.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else p&&a.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}p&&a&&a.setAttribute("d","")}else{var P=this.textContainer,E="start";switch(r.j){case 1:E="end";break;case 2:E="middle";break;default:E="start"}P.setAttribute("text-anchor",E),P.setAttribute("letter-spacing",d);var S=this.buildTextContents(r.finalText);for(e=S.length,f=r.ps?r.ps[1]+r.ascent:0,t=0;t=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=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t=0;i-=1)r=t.transforms[i].transform.mProps.v.props,t.finalTransform.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]);t._mdf=s},processSequences:function(t){var e,r=this.sequenceList.length;for(e=0;e=0;s-=1){if((l=this.searchProcessedElement(t[s]))?e[s]=r[l-1]:t[s]._shouldRender=i,"fl"===t[s].ty||"st"===t[s].ty||"gf"===t[s].ty||"gs"===t[s].ty)l?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],d),f.push(e[s].style);else if("gr"===t[s].ty){if(l)for(o=e[s].it.length,a=0;a=0;n-=1)"tr"===e[n].ty?(s=r[n].transform,this.renderShapeTransform(t,s)):"sh"===e[n].ty||"el"===e[n].ty||"rc"===e[n].ty||"sr"===e[n].ty?this.renderPath(e[n],r[n]):"fl"===e[n].ty?this.renderFill(e[n],r[n],s):"st"===e[n].ty?this.renderStroke(e[n],r[n],s):"gf"===e[n].ty||"gs"===e[n].ty?this.renderGradientFill(e[n],r[n],s):"gr"===e[n].ty?this.renderShape(s,e[n].it,r[n].it):e[n].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r,i,n,s=t.trNodes,a=e.paths,o=a._length;s.length=0;var l=t.transforms.finalTransform;for(n=0;n=1?c=.99:c<=-1&&(c=-.99);var f=h*c,u=Math.cos(p+e.a.v)*f+o[0],d=Math.sin(p+e.a.v)*f+o[1];i=a.createRadialGradient(u,d,0,o[0],o[1],h)}var m=t.g.p,y=e.g.c,g=1;for(s=0;so&&"xMidYMid slice"===l||an&&"meet"===o||sn&&"slice"===o)?(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===h&&(sn&&"slice"===o)?(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===p&&(s>n&&"meet"===o||sn&&"meet"===o||s=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var r;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=0;r=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){this.pendingElements.pop().checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,i=t.length;for(r=0;r0&&o<1&&c[f].push(this.calculateF(o,t,e,r,i,f)):(l=s*s-4*a*n)>=0&&((h=(-s+bmSqrt(l))/(2*n))>0&&h<1&&c[f].push(this.calculateF(h,t,e,r,i,f)),(p=(-s-bmSqrt(l))/(2*n))>0&&p<1&&c[f].push(this.calculateF(p,t,e,r,i,f))));this.shapeBoundingBox.left=bmMin.apply(null,c[0]),this.shapeBoundingBox.top=bmMin.apply(null,c[1]),this.shapeBoundingBox.right=bmMax.apply(null,c[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,c[1])},HShapeElement.prototype.calculateF=function(t,e,r,i,n,s){return bmPow(1-t,3)*e[s]+3*bmPow(1-t,2)*t*r[s]+3*(1-t)*bmPow(t,2)*i[s]+bmPow(t,3)*n[s]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,i=t.length;for(r=0;rr&&(r=n)}r*=t.mult}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax=0;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var n;n=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),a=[n[0]/s,n[1]/s,n[2]/s],o=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],o),h=Math.atan2(a[0],-a[2]);this.mat.rotateY(h).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var p=!this._prevMat.equals(this.mat);if((p||this.pe._mdf)&&this.comp.threeDElements){var c,f,u;for(e=this.comp.threeDElements.length,t=0;t=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var r,i,n=createTag("div");styleDiv(n);var s=createTag("div");if(styleDiv(s),"3d"===e){(r=n.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";r.webkitTransformOrigin="50% 50%",r.mozTransformOrigin="50% 50%",r.transformOrigin="50% 50%";var a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(i=s.style).transform=a,i.webkitTransform=a}n.appendChild(s);var o={container:s,perspectiveElem:n,startPos:t,endPos:t,type:e};return this.threeDElements.push(o),o},HybridRendererBase.prototype.build3dContainers=function(){var t,e,r=this.layers.length,i="";for(t=0;t=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,i=this.threeDElements.length;ra?(t=n/this.globalData.compSize.w,e=n/this.globalData.compSize.w,r=0,i=(s-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,r=(n-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,i=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+i+",0,1)",o.transform=o.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,r=this.globalData.compSize.h,i=this.threeDElements.length;for(t=0;t=s;)t/=2,e/=2,r>>>=1;return(t+r)/e};return y.int32=function(){return 0|m.g(4)},y.quick=function(){return m.g(4)/4294967296},y.double=y,l(h(m.S),t),(c.pass||f||function(t,r,i,n){return n&&(n.S&&o(n,m),t.state=function(){return o(m,{})}),i?(e.random=t,r):t})(y,d,"global"in c?c.global:this==e,c.state)},l(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof(t){return(_typeof="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 ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(t){var e=_typeof(t);if("number"===e||"boolean"===e||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var r,i=t.length,n=[];for(r=0;rr){var i=r;r=e,e=i}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var r;e||(e=helperLengthArray);var i=Math.min(t.length,e.length),n=0;for(r=0;r.5?h/(2-a-o):h/(a+o),a){case i:e=(n-s)/h+(n1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,i,n=t[0],s=t[1],a=t[2];if(0===s)e=a,i=a,r=a;else{var o=a<.5?a*(1+s):a+s-a*s,l=2*a-o;e=hue2rgb(l,o,n+1/3),r=hue2rgb(l,o,n),i=hue2rgb(l,o,n-1/3)}return[e,r,i,t[3]]}function linear(t,e,r,i,n){if(void 0!==i&&void 0!==n||(i=e,n=r,e=0,r=1),r=r)return n;var a,o=r===e?0:(t-e)/(r-e);if(!i.length)return i+(n-i)*o;var l=i.length,h=createTypedArray("float32",l);for(a=0;a1){for(i=0;i1?e=1:e<0&&(e=0);var a=t(e);if($bm_isInstanceOfArray(n)){var o,l=n.length,h=createTypedArray("float32",l);for(o=0;odata.k[e].t&&tdata.k[e+1].t-t?(r=e+2,i=data.k[e+1].t):(r=e+1,i=data.k[e].t);break}}-1===r&&(r=e+1,i=data.k[e].t)}else r=0,i=0;var s={};return s.index=r,s.time=i/elem.comp.globalData.frameRate,s}function key(t){var e,r,i;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var n=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(i=n.length,r=0;rh.length-1)&&(e=h.length-1),i=p-(n=h[h.length-1-e].t)),"pingpong"===t){if(Math.floor((l-n)/i)%2!=0)return this.getValueAtTime((i-(l-n)%i+n)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var c=this.getValueAtTime(n/this.comp.globalData.frameRate,0),f=this.getValueAtTime(p/this.comp.globalData.frameRate,0),u=this.getValueAtTime(((l-n)%i+n)/this.comp.globalData.frameRate,0),d=Math.floor((l-n)/i);if(this.pv.length){for(a=(o=new Array(c.length)).length,s=0;s=p)return this.pv;if(r?n=p+(i=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-p)):((!e||e>h.length-1)&&(e=h.length-1),i=(n=h[e].t)-p),"pingpong"===t){if(Math.floor((p-l)/i)%2==0)return this.getValueAtTime(((p-l)%i+p)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var c=this.getValueAtTime(p/this.comp.globalData.frameRate,0),f=this.getValueAtTime(n/this.comp.globalData.frameRate,0),u=this.getValueAtTime((i-(p-l)%i+p)/this.comp.globalData.frameRate,0),d=Math.floor((p-l)/i)+1;if(this.pv.length){for(a=(o=new Array(c.length)).length,s=0;s1?(n+t-s)/(e-1):1,o=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;oa){var p=o,c=r.c&&o===l-1?0:o+1,f=(a-h)/s[o].addedLength;i=bez.getPointInSegment(r.v[p],r.v[c],r.o[p],r.i[c],f,s[o]);break}h+=s[o].addedLength,o+=1}return i||(i=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),i},vectorOnPath:function(t,e,r){1==t?t=this.v.c:0==t&&(t=.999);var i=this.pointOnPath(t,e),n=this.pointOnPath(t+.001,e),s=n[0]-i[0],a=n[1]-i[1],o=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));return 0===o?[0,0]:"tangent"===r?[s/o,a/o]:[-a/o,s/o]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([h],o),extendPrototype([h],l),l.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime=h?u<0?i:n:i+f*Math.pow((s-t)/u,1/r),p[c]=a,c+=1,o+=256/255;return p.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=r*Math.cos(i),s=r*Math.sin(i);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(t,e,r,i){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var n=createNS("feGaussianBlur");n.setAttribute("result",i),t.appendChild(n),this.feGaussianBlur=n}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e>>1|(21845&i)<<1;x=(52428&x)>>>2|(13107&x)<<2,x=(61680&x)>>>4|(3855&x)<<4,rev[i]=((65280&x)>>>8|(255&x)<<8)>>>1}for(var hMap=function(t,e,r){for(var i=t.length,n=0,s=new u16(e);n>>l]=h}else for(a=new u16(i),n=0;n>>15-t[n]);return a},flt=new u8(288),i=0;i<144;++i)flt[i]=8;for(var i=144;i<256;++i)flt[i]=9;for(var i=256;i<280;++i)flt[i]=7;for(var i=280;i<288;++i)flt[i]=8;for(var fdt=new u8(32),i=0;i<32;++i)fdt[i]=5;var flm=hMap(flt,9,0),flrm=hMap(flt,9,1),fdm=hMap(fdt,5,0),fdrm=hMap(fdt,5,1),max=function(t){for(var e=t[0],r=1;re&&(e=t[r]);return e},bits=function(t,e,r){var i=e/8|0;return(t[i]|t[i+1]<<8)>>(7&e)&r},bits16=function(t,e){var r=e/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&e)},shft=function(t){return(t+7)/8|0},slc=function(t,e,r){(null==e||e<0)&&(e=0),(null==r||r>t.length)&&(r=t.length);var i=new(2==t.BYTES_PER_ELEMENT?u16:4==t.BYTES_PER_ELEMENT?u32:u8)(r-e);return i.set(t.subarray(e,r)),i},FlateErrorCode={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},ec=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],err=function(t,e,r){var i=new Error(e||ec[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,err),!r)throw i;return i},inflt=function(t,e,r){var i=t.length;if(!i||r&&r.f&&!r.l)return e||new u8(0);var n=!e||r,s=!r||r.i;r||(r={}),e||(e=new u8(3*i));var a=function(t){var r=e.length;if(t>r){var i=new u8(Math.max(2*r,t));i.set(e),e=i}},o=r.f||0,l=r.p||0,h=r.b||0,p=r.l,c=r.d,f=r.m,u=r.n,d=8*i;do{if(!p){o=bits(t,l,1);var m=bits(t,l+1,3);if(l+=3,!m){var y=t[(C=shft(l)+4)-4]|t[C-3]<<8,g=C+y;if(g>i){s&&err(0);break}n&&a(h+y),e.set(t.subarray(C,g),h),r.b=h+=y,r.p=l=8*g,r.f=o;continue}if(1==m)p=flrm,c=fdrm,f=9,u=5;else if(2==m){var v=bits(t,l,31)+257,b=bits(t,l+10,15)+4,_=v+bits(t,l+5,31)+1;l+=14;for(var P=new u8(_),E=new u8(19),S=0;S>>4)<16)P[S++]=C;else{var T=0,M=0;for(16==C?(M=3+bits(t,l,3),l+=2,T=P[S-1]):17==C?(M=3+bits(t,l,7),l+=3):18==C&&(M=11+bits(t,l,127),l+=7);M--;)P[S++]=T}}var D=P.subarray(0,v),I=P.subarray(v);f=max(D),u=max(I),p=hMap(D,f,1),c=hMap(I,u,1)}else err(1);if(l>d){s&&err(0);break}}n&&a(h+131072);for(var F=(1<>>4;if((l+=15&T)>d){s&&err(0);break}if(T||err(2),z<256)e[h++]=z;else{if(256==z){B=l,p=null;break}var O=z-254;if(z>264){var L=fleb[S=z-257];O=bits(t,l,(1<>>4;V||err(3),l+=15&V;I=fd[$];if($>3){L=fdeb[$];I+=bits16(t,l)&(1<d){s&&err(0);break}n&&a(h+131072);for(var G=h+O;h>>8},wbits16=function(t,e,r){r<<=7&e;var i=e/8|0;t[i]|=r,t[i+1]|=r>>>8,t[i+2]|=r>>>16},hTree=function(t,e){for(var r=[],i=0;if&&(f=s[i].s);var u=new u16(f+1),d=ln(r[p-1],u,0);if(d>e){i=0;var m=0,y=d-e,g=1<e))break;m+=g-(1<>>=y;m>0;){var b=s[i].s;u[b]=0&&m;--i){var _=s[i].s;u[_]==e&&(--u[_],++m)}d=e}return[new u8(u),d]},ln=function(t,e,r){return-1==t.s?Math.max(ln(t.l,e,r+1),ln(t.r,e,r+1)):e[t.s]=r},lc=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new u16(++e),i=0,n=t[0],s=1,a=function(t){r[i++]=t},o=1;o<=e;++o)if(t[o]==n&&o!=e)++s;else{if(!n&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(n),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}for(;s--;)a(n);s=1,n=t[o]}return[r.subarray(0,i),e]},clen=function(t,e){for(var r=0,i=0;i>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var s=0;s4&&!A[clim[k-1]];--k);var T,M,D,I,F=h+5<<3,R=clen(n,flt)+clen(s,fdt)+a,B=clen(n,f)+clen(s,m)+a+14+3*k+clen(S,A)+(2*S[16]+3*S[17]+7*S[18]);if(F<=R&&F<=B)return wfblk(e,p,t.subarray(l,l+h));if(wbits(e,p,1+(B15&&(wbits(e,p,V[x]>>>5&127),p+=V[x]>>>12)}}}else T=flm,M=flt,D=fdm,I=fdt;for(x=0;x255){$=i[x]>>>18&31;wbits16(e,p,T[$+257]),p+=M[$+257],$>7&&(wbits(e,p,i[x]>>>23&31),p+=fleb[$]);var G=31&i[x];wbits16(e,p,D[G]),p+=I[G],G>3&&(wbits16(e,p,i[x]>>>5&8191),p+=fdeb[G])}else wbits16(e,p,T[i[x]]),p+=M[i[x]];return wbits16(e,p,T[256]),p+M[256]},deo=new u32([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),et=new u8(0),dflt=function(t,e,r,i,n,s){var a=t.length,o=new u8(i+a+5*(1+Math.ceil(a/7e3))+n),l=o.subarray(i,o.length-n),h=0;if(!e||a<8)for(var p=0;p<=a;p+=65535){var c=p+65535;c>=a&&(l[h>>3]=s),h=wfblk(l,h+1,t.subarray(p,c))}else{for(var f=deo[e-1],u=f>>>13,d=8191&f,m=(1<7e3||A>24576)&&I>423){h=wblk(t,l,0,P,E,S,w,A,k,p-k,h),A=x=w=0,k=p;for(var F=0;F<286;++F)E[F]=0;for(F=0;F<30;++F)S[F]=0}var R=2,B=0,z=d,O=M-D&32767;if(I>2&&T==_(p-O))for(var L=Math.min(u,I)-1,V=Math.min(32767,p),$=Math.min(258,I);O<=V&&--z&&M!=D;){if(t[p+R]==t[p+R-O]){for(var G=0;G<$&&t[p+G]==t[p+G-O];++G);if(G>R){if(R=G,B=O,G>L)break;var N=Math.min(O,G-2),j=0;for(F=0;Fj&&(j=q,D=H)}}}O+=(M=D)-(D=y[M])+32768&32767}if(B){P[A++]=268435456|revfl[R]<<18|revfd[B];var W=31&revfl[R],U=31&revfd[B];w+=fleb[W]+fdeb[U],++E[257+W],++S[U],C=p+R,++x}else P[A++]=t[p],++E[t[p]]}}h=wblk(t,l,s,P,E,S,w,A,k,p-k,h),!s&&7&h&&(h=wfblk(l,h+1,et))}return slc(o,0,i+shft(h)+n)},crct=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var r=e,i=9;--i;)r=(1&r&&-306674912)^r>>>1;t[e]=r}return t}(),crc=function(){var t=-1;return{p:function(e){for(var r=t,i=0;i>>8;t=r},d:function(){return~t}}},adler=function(){var t=1,e=0;return{p:function(r){for(var i=t,n=e,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a>16),n=(65535&n)+15*(n>>16)}t=i,e=n},d:function(){return(255&(t%=65521))<<24|t>>>8<<16|(255&(e%=65521))<<8|e>>>8}}},dopt=function(t,e,r,i,n){return dflt(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,r,i,!n)},mrg=function(t,e){var r={};for(var i in t)r[i]=t[i];for(var i in e)r[i]=e[i];return r},wcln=function(t,e,r){for(var i=t(),n=t.toString(),s=n.slice(n.indexOf("[")+1,n.lastIndexOf("]")).replace(/\s+/g,"").split(","),a=0;a>>0},b8=function(t,e){return b4(t,e)+4294967296*b4(t,e+4)},wbytes=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},gzh=function(t,e){var r=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:9==e.level?2:0,t[9]=3,0!=e.mtime&&wbytes(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),r){t[3]=8;for(var i=0;i<=r.length;++i)t[i+10]=r.charCodeAt(i)}},gzs=function(t){31==t[0]&&139==t[1]&&8==t[2]||err(6,"invalid gzip data");var e=t[3],r=10;4&e&&(r+=t[10]|2+(t[11]<<8));for(var i=(e>>3&1)+(e>>4&1);i>0;i-=!t[r++]);return r+(2&e)},gzl=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},gzhl=function(t){return 10+(t.filename&&t.filename.length+1||0)},zlh=function(t,e){var r=e.level,i=0==r?0:r<6?1:9==r?3:2;t[0]=120,t[1]=i<<6|(i?32-2*i:1)},zlv=function(t){(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)&&err(6,"invalid zlib data"),32&t[1]&&err(6,"invalid zlib data: preset dictionaries not supported")};function AsyncCmpStrm(t,e){return e||"function"!=typeof t||(e=t,t={}),this.ondata=e,t}var Deflate=function(){function t(t,e){e||"function"!=typeof t||(e=t,t={}),this.ondata=e,this.o=t||{}}return t.prototype.p=function(t,e){this.ondata(dopt(t,this.o,0,0,!e),e)},t.prototype.push=function(t,e){this.ondata||err(5),this.d&&err(4),this.d=e,this.p(t,e||!1)},t}(),AsyncDeflate=function(){return function(t,e){astrmify([bDflt,function(){return[astrm,Deflate]}],this,AsyncCmpStrm.call(this,t,e),(function(t){var e=new Deflate(t.data);onmessage=astrm(e)}),6)}}();function deflate(t,e,r){return r||(r=e,e={}),"function"!=typeof r&&err(7),cbify(t,e,[bDflt],(function(t){return pbf(deflateSync(t.data[0],t.data[1]))}),0,r)}function deflateSync(t,e){return dopt(t,e||{},0,0)}var Inflate=function(){function t(t){this.s={},this.p=new u8(0),this.ondata=t}return t.prototype.e=function(t){this.ondata||err(5),this.d&&err(4);var e=this.p.length,r=new u8(e+t.length);r.set(this.p),r.set(t,e),this.p=r},t.prototype.c=function(t){this.d=this.s.i=t||!1;var e=this.s.b,r=inflt(this.p,this.o,this.s);this.ondata(slc(r,e,this.s.b),this.d),this.o=slc(r,this.s.b-32768),this.s.b=this.o.length,this.p=slc(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,e){this.e(t),this.c(e)},t}(),AsyncInflate=function(){return function(t){this.ondata=t,astrmify([bInflt,function(){return[astrm,Inflate]}],this,0,(function(){var t=new Inflate;onmessage=astrm(t)}),7)}}();function inflate(t,e,r){return r||(r=e,e={}),"function"!=typeof r&&err(7),cbify(t,e,[bInflt],(function(t){return pbf(inflateSync(t.data[0],gu8(t.data[1])))}),1,r)}function inflateSync(t,e){return inflt(t,e)}var Gzip=function(){function t(t,e){this.c=crc(),this.l=0,this.v=1,Deflate.call(this,t,e)}return t.prototype.push=function(t,e){Deflate.prototype.push.call(this,t,e)},t.prototype.p=function(t,e){this.c.p(t),this.l+=t.length;var r=dopt(t,this.o,this.v&&gzhl(this.o),e&&8,!e);this.v&&(gzh(r,this.o),this.v=0),e&&(wbytes(r,r.length-8,this.c.d()),wbytes(r,r.length-4,this.l)),this.ondata(r,e)},t}(),AsyncGzip=function(){return function(t,e){astrmify([bDflt,gze,function(){return[astrm,Deflate,Gzip]}],this,AsyncCmpStrm.call(this,t,e),(function(t){var e=new Gzip(t.data);onmessage=astrm(e)}),8)}}();function gzip(t,e,r){return r||(r=e,e={}),"function"!=typeof r&&err(7),cbify(t,e,[bDflt,gze,function(){return[gzipSync]}],(function(t){return pbf(gzipSync(t.data[0],t.data[1]))}),2,r)}function gzipSync(t,e){e||(e={});var r=crc(),i=t.length;r.p(t);var n=dopt(t,e,gzhl(e),8),s=n.length;return gzh(n,e),wbytes(n,s-8,r.d()),wbytes(n,s-4,i),n}var Gunzip=function(){function t(t){this.v=1,Inflate.call(this,t)}return t.prototype.push=function(t,e){if(Inflate.prototype.e.call(this,t),this.v){var r=this.p.length>3?gzs(this.p):4;if(r>=this.p.length&&!e)return;this.p=this.p.subarray(r),this.v=0}e&&(this.p.length<8&&err(6,"invalid gzip data"),this.p=this.p.subarray(0,-8)),Inflate.prototype.c.call(this,e)},t}(),AsyncGunzip=function(){return function(t){this.ondata=t,astrmify([bInflt,guze,function(){return[astrm,Inflate,Gunzip]}],this,0,(function(){var t=new Gunzip;onmessage=astrm(t)}),9)}}();function gunzip(t,e,r){return r||(r=e,e={}),"function"!=typeof r&&err(7),cbify(t,e,[bInflt,guze,function(){return[gunzipSync]}],(function(t){return pbf(gunzipSync(t.data[0]))}),3,r)}function gunzipSync(t,e){return inflt(t.subarray(gzs(t),-8),e||new u8(gzl(t)))}var Zlib=function(){function t(t,e){this.c=adler(),this.v=1,Deflate.call(this,t,e)}return t.prototype.push=function(t,e){Deflate.prototype.push.call(this,t,e)},t.prototype.p=function(t,e){this.c.p(t);var r=dopt(t,this.o,this.v&&2,e&&4,!e);this.v&&(zlh(r,this.o),this.v=0),e&&wbytes(r,r.length-4,this.c.d()),this.ondata(r,e)},t}(),AsyncZlib=function(){return function(t,e){astrmify([bDflt,zle,function(){return[astrm,Deflate,Zlib]}],this,AsyncCmpStrm.call(this,t,e),(function(t){var e=new Zlib(t.data);onmessage=astrm(e)}),10)}}();function zlib(t,e,r){return r||(r=e,e={}),"function"!=typeof r&&err(7),cbify(t,e,[bDflt,zle,function(){return[zlibSync]}],(function(t){return pbf(zlibSync(t.data[0],t.data[1]))}),4,r)}function zlibSync(t,e){e||(e={});var r=adler();r.p(t);var i=dopt(t,e,2,4);return zlh(i,e),wbytes(i,i.length-4,r.d()),i}var Unzlib=function(){function t(t){this.v=1,Inflate.call(this,t)}return t.prototype.push=function(t,e){if(Inflate.prototype.e.call(this,t),this.v){if(this.p.length<2&&!e)return;this.p=this.p.subarray(2),this.v=0}e&&(this.p.length<4&&err(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),Inflate.prototype.c.call(this,e)},t}(),AsyncUnzlib=function(){return function(t){this.ondata=t,astrmify([bInflt,zule,function(){return[astrm,Inflate,Unzlib]}],this,0,(function(){var t=new Unzlib;onmessage=astrm(t)}),11)}}();function unzlib(t,e,r){return r||(r=e,e={}),"function"!=typeof r&&err(7),cbify(t,e,[bInflt,zule,function(){return[unzlibSync]}],(function(t){return pbf(unzlibSync(t.data[0],gu8(t.data[1])))}),5,r)}function unzlibSync(t,e){return inflt((zlv(t),t.subarray(2,-4)),e)}var Decompress=function(){function t(t){this.G=Gunzip,this.I=Inflate,this.Z=Unzlib,this.ondata=t}return t.prototype.push=function(t,e){if(this.ondata||err(5),this.s)this.s.push(t,e);else{if(this.p&&this.p.length){var r=new u8(this.p.length+t.length);r.set(this.p),r.set(t,this.p.length)}else this.p=t;if(this.p.length>2){var i=this,n=function(){i.ondata.apply(i,arguments)};this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(n):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(n):new this.Z(n),this.s.push(this.p,e),this.p=null}}},t}(),AsyncDecompress=function(){function t(t){this.G=AsyncGunzip,this.I=AsyncInflate,this.Z=AsyncUnzlib,this.ondata=t}return t.prototype.push=function(t,e){Decompress.prototype.push.call(this,t,e)},t}();function decompress(t,e,r){return r||(r=e,e={}),"function"!=typeof r&&err(7),31==t[0]&&139==t[1]&&8==t[2]?gunzip(t,e,r):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?inflate(t,e,r):unzlib(t,e,r)}function decompressSync(t,e){return 31==t[0]&&139==t[1]&&8==t[2]?gunzipSync(t,e):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?inflateSync(t,e):unzlibSync(t,e)}var fltn=function(t,e,r,i){for(var n in t){var s=t[n],a=e+n,o=i;Array.isArray(s)&&(o=mrg(i,s[1]),s=s[0]),s instanceof u8?r[a]=[s,o]:(r[a+="/"]=[new u8(0),o],fltn(s,a,r,i))}},te="undefined"!=typeof TextEncoder&&new TextEncoder,td="undefined"!=typeof TextDecoder&&new TextDecoder,tds=0;try{td.decode(et,{stream:!0}),tds=1}catch(e){}var dutf8=function(t){for(var e="",r=0;;){var i=t[r++],n=(i>127)+(i>223)+(i>239);if(r+n>t.length)return[e,slc(t,r-1)];n?3==n?(i=((15&i)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,e+=String.fromCharCode(55296|i>>10,56320|1023&i)):e+=1&n?String.fromCharCode((31&i)<<6|63&t[r++]):String.fromCharCode((15&i)<<12|(63&t[r++])<<6|63&t[r++]):e+=String.fromCharCode(i)}},DecodeUTF8=function(){function t(t){this.ondata=t,tds?this.t=new TextDecoder:this.p=et}return t.prototype.push=function(t,e){if(this.ondata||err(5),e=!!e,this.t)return this.ondata(this.t.decode(t,{stream:!0}),e),void(e&&(this.t.decode().length&&err(8),this.t=null));this.p||err(4);var r=new u8(this.p.length+t.length);r.set(this.p),r.set(t,this.p.length);var i=dutf8(r),n=i[0],s=i[1];e?(s.length&&err(8),this.p=null):this.p=s,this.ondata(n,e)},t}(),EncodeUTF8=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,e){this.ondata||err(5),this.d&&err(4),this.ondata(strToU8(t),this.d=e||!1)},t}();function strToU8(t,e){if(e){for(var r=new u8(t.length),i=0;i>1)),a=0,o=function(t){s[a++]=t};for(i=0;is.length){var l=new u8(a+8+(n-i<<1));l.set(s),s=l}var h=t.charCodeAt(i);h<128||e?o(h):h<2048?(o(192|h>>6),o(128|63&h)):h>55295&&h<57344?(o(240|(h=65536+(1047552&h)|1023&t.charCodeAt(++i))>>18),o(128|h>>12&63),o(128|h>>6&63),o(128|63&h)):(o(224|h>>12),o(128|h>>6&63),o(128|63&h))}return slc(s,0,a)}function strFromU8(t,e){if(e){for(var r="",i=0;i65535&&err(9),e+=i+4}return e},wzh=function(t,e,r,i,n,s,a,o){var l=i.length,h=r.extra,p=o&&o.length,c=exfl(h);wbytes(t,e,null!=a?33639248:67324752),e+=4,null!=a&&(t[e++]=20,t[e++]=r.os),t[e]=20,e+=2,t[e++]=r.flag<<1|(s<0&&8),t[e++]=n&&8,t[e++]=255&r.compression,t[e++]=r.compression>>8;var f=new Date(null==r.mtime?Date.now():r.mtime),u=f.getFullYear()-1980;if((u<0||u>119)&&err(10),wbytes(t,e,u<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>>1),e+=4,-1!=s&&(wbytes(t,e,r.crc),wbytes(t,e+4,s<0?-s-2:s),wbytes(t,e+8,r.size)),wbytes(t,e+12,l),wbytes(t,e+14,c),e+=16,null!=a&&(wbytes(t,e,p),wbytes(t,e+6,r.attrs),wbytes(t,e+10,a),e+=14),t.set(i,e),e+=l,c)for(var d in h){var m=h[d],y=m.length;wbytes(t,e,+d),wbytes(t,e+2,y),t.set(m,e+4),e+=4+y}return p&&(t.set(o,e),e+=p),e},wzf=function(t,e,r,i,n){wbytes(t,e,101010256),wbytes(t,e+8,r),wbytes(t,e+10,r),wbytes(t,e+12,i),wbytes(t,e+16,n)},ZipPassThrough=function(){function t(t){this.filename=t,this.c=crc(),this.size=0,this.compression=0}return t.prototype.process=function(t,e){this.ondata(null,t,e)},t.prototype.push=function(t,e){this.ondata||err(5),this.c.p(t),this.size+=t.length,e&&(this.crc=this.c.d()),this.process(t,e||!1)},t}(),ZipDeflate=function(){function t(t,e){var r=this;e||(e={}),ZipPassThrough.call(this,t),this.d=new Deflate(e,(function(t,e){r.ondata(null,t,e)})),this.compression=8,this.flag=dbf(e.level)}return t.prototype.process=function(t,e){try{this.d.push(t,e)}catch(t){this.ondata(t,null,e)}},t.prototype.push=function(t,e){ZipPassThrough.prototype.push.call(this,t,e)},t}(),AsyncZipDeflate=function(){function t(t,e){var r=this;e||(e={}),ZipPassThrough.call(this,t),this.d=new AsyncDeflate(e,(function(t,e,i){r.ondata(t,e,i)})),this.compression=8,this.flag=dbf(e.level),this.terminate=this.d.terminate}return t.prototype.process=function(t,e){this.d.push(t,e)},t.prototype.push=function(t,e){ZipPassThrough.prototype.push.call(this,t,e)},t}(),Zip=function(){function t(t){this.ondata=t,this.u=[],this.d=1}return t.prototype.add=function(t){var e=this;if(this.ondata||err(5),2&this.d)this.ondata(err(4+8*(1&this.d),0,1),null,!1);else{var r=strToU8(t.filename),i=r.length,n=t.comment,s=n&&strToU8(n),a=i!=t.filename.length||s&&n.length!=s.length,o=i+exfl(t.extra)+30;i>65535&&this.ondata(err(11,0,1),null,!1);var l=new u8(o);wzh(l,0,t,r,a,-1);var h=[l],p=function(){for(var t=0,r=h;t65535&&x(err(11,0,1),null),S)if(y<16e4)try{x(null,deflateSync(l,d))}catch(t){x(t,null)}else p.push(deflate(l,d,x));else x(null,l)},m=0;m65535&&err(11);var y=p?deflateSync(l,h):l,g=y.length,v=crc();v.p(l),i.push(mrg(h,{size:l.length,crc:v.d(),c:y,f:S,m:u,u:c!=a.length||u&&f.length!=d,o:n,compression:p})),n+=30+c+m+g,s+=76+2*(c+m)+(d||0)+g}for(var b=new u8(s+22),_=n,P=s-n,E=0;E0){var i=Math.min(this.c,t.length),n=t.subarray(0,i);if(this.c-=i,this.d?this.d.push(n,!this.c):this.k[0].push(n),(t=t.subarray(i)).length)return this.push(t,e)}else{var s=0,a=0,o=void 0,l=void 0;this.p.length?t.length?((l=new u8(this.p.length+t.length)).set(this.p),l.set(t,this.p.length)):l=this.p:l=t;for(var h=l.length,p=this.c,c=p&&this.d,f=function(){var t,e=b4(l,a);if(67324752==e){s=1,o=a,u.d=null,u.c=0;var i=b2(l,a+6),n=b2(l,a+8),c=2048&i,f=8&i,d=b2(l,a+26),m=b2(l,a+28);if(h>a+30+d+m){var y=[];u.k.unshift(y),s=2;var g,v=b4(l,a+18),b=b4(l,a+22),_=strFromU8(l.subarray(a+30,a+=30+d),!c);4294967295==v?(t=f?[-2]:z64e(l,a),v=t[0],b=t[1]):f&&(v=-1),a+=m,u.c=v;var P={name:_,compression:n,start:function(){if(P.ondata||err(5),v){var t=r.o[n];t||P.ondata(err(14,"unknown compression type "+n,1),null,!1),(g=v<0?new t(_):new t(_,v,b)).ondata=function(t,e,r){P.ondata(t,e,r)};for(var e=0,i=y;e=0&&(P.size=v,P.originalSize=b),u.onfile(P)}return"break"}if(p){if(134695760==e)return o=a+=12+(-2==p&&8),s=3,u.c=0,"break";if(33639248==e)return o=a-=4,s=3,u.c=0,"break"}},u=this;a65558)return a(err(13,0,1),null),n;var l=b2(t,o+8);if(l){var h=l,p=b4(t,o+16),c=4294967295==p||65535==h;if(c){var f=b4(t,o-12);(c=101075792==b4(t,f))&&(h=l=b4(t,f+32),p=b4(t,f+48))}for(var u=e&&e.filter,d=function(e){var r=zh(t,p,c),o=r[0],h=r[1],f=r[2],d=r[3],m=r[4],y=r[5],g=slzh(t,y);p=m;var v=function(t,e){t?(n(),a(t,null)):(e&&(s[d]=e),--l||a(null,s))};if(!u||u({name:d,size:h,originalSize:f,compression:o}))if(o)if(8==o){var b=t.subarray(g,g+h);if(h<32e4)try{v(null,inflateSync(b,new u8(f)))}catch(t){v(t,null)}else i.push(inflate(b,{size:f},v))}else v(err(14,"unknown compression type "+o,1),null);else v(null,slc(t,g,g+h));else v(null,null)},m=0;m65558)&&err(13);var n=b2(t,i+8);if(!n)return{};var s=b4(t,i+16),a=4294967295==s||65535==n;if(a){var o=b4(t,i-12);(a=101075792==b4(t,o))&&(n=b4(t,o+32),s=b4(t,o+48))}for(var l=e&&e.filter,h=0;h 3%"],publishConfig={access:"public"},nyc={extends:"@istanbuljs/nyc-config-typescript",all:!0},pkg={name:name,version:version,description:description,main:main,module:module,types:types,homepage:homepage,repository:repository,bugs:bugs,author:author,license:license,scripts:scripts,dependencies:dependencies,devDependencies:devDependencies,files:files,keywords:keywords,browserslist:browserslist,publishConfig:publishConfig,nyc:nyc};const createError=t=>new Error("[dotLottie-player-component] ".concat(t)),error=t=>{const e="[dotLottie-player-component] ".concat(t);console.error(e)},warn=t=>{const e="[dotLottie-player-component] ".concat(t);console.warn(e)};var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,PlayerState,PlayMode,PlayerEvents;exports.PlayerState=void 0,PlayerState=exports.PlayerState||(exports.PlayerState={}),PlayerState.Loading="loading",PlayerState.Playing="playing",PlayerState.Paused="paused",PlayerState.Stopped="stopped",PlayerState.Frozen="frozen",PlayerState.Error="error",exports.PlayMode=void 0,PlayMode=exports.PlayMode||(exports.PlayMode={}),PlayMode.Normal="normal",PlayMode.Bounce="bounce",exports.PlayerEvents=void 0,PlayerEvents=exports.PlayerEvents||(exports.PlayerEvents={}),PlayerEvents.Load="load",PlayerEvents.Error="error",PlayerEvents.Ready="ready",PlayerEvents.Play="play",PlayerEvents.Pause="pause",PlayerEvents.Stop="stop",PlayerEvents.Freeze="freeze",PlayerEvents.Loop="loop",PlayerEvents.Complete="complete",PlayerEvents.Rendered="rendered",PlayerEvents.Frame="frame";const ELEMENT_NAME="dotlottie-player";class DotLottiePlayer extends s{constructor(){super(),this.mode=exports.PlayMode.Normal,this.autoplay=!1,this.background="transparent",this.controls=!1,this.direction=1,this.hover=!1,this.renderer="svg",this.speed=1,this.currentState=exports.PlayerState.Loading,this.intermission=1,this.activeAnimationId=null,this._counter=1,this._activeAnimationIndex=0,this._manifest={animations:[]}}static get properties(){return{mode:{type:String},autoplay:{type:Boolean},background:{type:String},controls:{type:Boolean},direction:{type:Number},hover:{type:Boolean},loop:{type:String},renderer:{type:String},speed:{type:Number},src:{type:String},currentState:{type:String},seeker:{type:Object},intermission:{type:Number},activeAnimationId:{type:String}}}_parseLoop(t){const e=parseInt(t,10);return Number.isInteger(e)&&e>0?(this._count=e,this._loop=!0,!0):"string"==typeof t&&["true","false"].includes(t)?(this._loop="true"===t,this._loop):(warn("loop must be a positive integer or a boolean"),!1)}_onVisibilityChange(){document.hidden&&this.currentState===exports.PlayerState.Playing?this.freeze():this.currentState===exports.PlayerState.Frozen&&this.play()}_handleSeekChange(t){if(!this._lottie||isNaN(t.target.value))return;const e=t.target.value/100*this._lottie.totalFrames;this.seek(e)}isLottie(t){let e=!1;return t.animations&&t.animations.length?(t.animations.forEach(t=>{this.isLottie(t)||(e=!0)}),e):["v","ip","op","layers","fr","w","h"].every(e=>Object.prototype.hasOwnProperty.call(t,e))}parseSrc(t){if("object"==typeof t)return t;try{return JSON.parse(t)}catch(e){return new URL(t,window.location.href).toString()}}async _fetchDotLottie(t){return await fetch(t,{method:"GET",mode:"cors",headers:{"Response-Type":"arraybuffer"}}).then(t=>t.arrayBuffer()).then(async t=>{const e=[],r={animations:[],manifest:void 0},i=await new Promise((e,r)=>{unzip(new Uint8Array(t),(t,i)=>{t&&r(t),e(i)})});let n;if(i["manifest.json"]){const t=strFromU8(i["manifest.json"]),s=JSON.parse(t);if(!("animations"in s))throw createError("Manifest not found");if(0===s.animations.length)throw createError("No animations listed in the manifest");r.manifest=s;for(const t of s.animations)n=JSON.parse(strFromU8(i["animations/".concat(t.id,".json")])),"assets"in n&&n.assets.map(t=>{if(!t.p)return;if(!i["images/".concat(t.p)])return;const e=btoa(strFromU8(i["images/".concat(t.p)],!0));t.p="data:;base64,"+e,t.e=1}),e.push(n);return r.manifest=s,r.animations=e,r}throw createError("No manifest found in file.")}).catch(t=>{throw createError(t)})}async _fetchJsonFile(t){return await fetch(t,{method:"GET",mode:"cors",headers:{"Response-Type":"json"}}).then(t=>t.json()).then(e=>{const r=[],i={animations:[{id:t.substring(t.lastIndexOf("/")+1,t.lastIndexOf(".")),speed:1,loop:"true",direction:1}],description:"",author:"",generator:"dotLottie-player-component",revision:1,version:"1.0.0"},n={animations:[],manifest:void 0};return r.push(e),n.animations=r,n.manifest=i,n}).catch(t=>{throw createError(t)})}async _fetchFileAndLoad(t){var e;let r={animations:[],manifest:void 0};if(r="json"===(null===(e=t.split(/[#?]/)[0].split(".").pop())||void 0===e?void 0:e.toLowerCase())?await this._fetchJsonFile(t):await this._fetchDotLottie(t),!r.animations||!r.manifest||0===r.animations.length)throw this.currentState=exports.PlayerState.Error,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Error)),createError(r.animations&&r.animations.length?"Manifest not found":"Animations are empty");if(this._animations=r.animations,this._manifest=r.manifest,this.activeAnimationId){const t=this._manifest.animations.findIndex(t=>t.id===this.activeAnimationId);-1!==t?this._activeAnimationIndex=t:warn("Active animation not found in manifest")}else if(this._manifest&&this._manifest.activeAnimationId){const t=this._manifest.animations.findIndex(t=>t.id===this._manifest.activeAnimationId);-1!==t?this._activeAnimationIndex=t:warn("Active animation not found in manifest")}const i=this._animations[this._activeAnimationIndex];if(void 0===i)throw createError("No animation to load!");return i}_loadManifestOptions(t){if(this._requireAnimationsInTheManifest(),void 0===this._manifest.animations[t])throw createError("Animation not found in manifest");const{autoplay:e,direction:r,loop:i,playMode:n,speed:s,hover:a,intermission:o}=this._manifest.animations[t];void 0!==e&&(this.autoplay=e),void 0!==r&&(this.direction=r),void 0!==i&&(this.loop=i),void 0!==n&&(this.mode=n),void 0!==s&&(this.speed=s),void 0!==a&&(this.hover=a),void 0!==o&&(this.intermission=o)}_initListeners(){this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Load)),this._lottie.addEventListener("enterFrame",()=>{this.seeker=this._lottie.currentFrame/this._lottie.totalFrames*100,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Frame,{detail:{frame:this._lottie.currentFrame,seeker:this.seeker}}))}),this._lottie.addEventListener("complete",()=>{if(this.currentState===exports.PlayerState.Playing){if(!this._loop||this._count&&this._counter>=this._count){if(this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Complete)),this.mode!==exports.PlayMode.Bounce)return;if(0===this._lottie.currentFrame)return}this.mode===exports.PlayMode.Bounce?(this._count&&(this._counter+=.5),setTimeout(()=>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Loop)),this.currentState===exports.PlayerState.Playing&&(this._lottie.setDirection(-1*this._lottie.playDirection),this._lottie.play())},this.intermission)):(this._count&&(this._counter+=1),window.setTimeout(()=>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Loop)),this.currentState===exports.PlayerState.Playing&&(-1===this.direction?(this.seek("99%"),this.play()):(this._lottie.stop(),this.play()))},this.intermission))}else this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Complete))}),this._lottie.addEventListener("DOMLoaded",()=>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Ready))}),this._lottie.addEventListener("data_ready",()=>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Load))}),this._lottie.addEventListener("data_failed",()=>{this.currentState=exports.PlayerState.Error,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Error))}),this.container.addEventListener("mouseenter",()=>{this.hover&&this.currentState!==exports.PlayerState.Playing&&this.play()}),this.container.addEventListener("mouseleave",()=>{this.hover&&this.currentState===exports.PlayerState.Playing&&this.stop()})}async load(t,e,r){if(!this.shadowRoot)return;const i={container:this.container,loop:!1,autoplay:!1,renderer:this.renderer,rendererSettings:e||{scaleMode:"noScale",clearCanvas:!1,progressiveLoad:!0,hideOnTransparent:!0}};try{const e=this.parseSrc(t);let n=null;if("string"==typeof e)n=await this._fetchFileAndLoad(e);else if("object"==typeof e&&!this.isLottie(e))throw createError("Load method failing. Object is not a valid Lottie.");if(this._lottie&&this._lottie.destroy(),void 0!==r)for(const[t,e]of Object.entries(r))"playMode"===t?this.mode="normal"===e?exports.PlayMode.Normal:exports.PlayMode.Bounce:void 0!==e&&(this[t]=e);else if(0===this._activeAnimationIndex||this._manifest.animations[this._activeAnimationIndex].id===this.activeAnimationId||this._manifest.animations[this._activeAnimationIndex].id===this._manifest.activeAnimationId){const t=this._manifest.animations[this._activeAnimationIndex],e=Object.keys(DotLottiePlayer.properties),r=Array.from(this.getAttributeNames());for(const t of r){const e=this.getAttribute(t);e&&(this[t]=e)}const i=e.filter(t=>!r.includes(t.toLowerCase())&&this._manifest.animations[this._activeAnimationIndex].hasOwnProperty(t));for(const e of i){const r=t[e];void 0!==r&&("playMode"===e?this.mode="normal"===r?exports.PlayMode.Normal:exports.PlayMode.Bounce:this[e]=r)}}else this._loadManifestOptions(this._activeAnimationIndex);this._lottie=lottie.loadAnimation(Object.assign(Object.assign({},i),{animationData:null!==n?n:e}))}catch(t){return this.currentState=exports.PlayerState.Error,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Error)),void console.error(t)}if(!this._lottie)throw this.currentState=exports.PlayerState.Error,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Error)),createError("Player failed to initialize.");this._initListeners(),this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&(-1===this.direction&&this.seek("99%"),this.play())}getActiveId(){return this._manifest.animations?this._manifest.animations[this._activeAnimationIndex].id:null}getActiveAnimationIndex(){return this._activeAnimationIndex}animationCount(){return this._animations?this._animations.length:0}getManifest(){return this._manifest}getLottie(){return this._lottie}getVersions(){return{lottieWebVersion:"".concat(pkg.dependencies["lottie-web"]),dotLottiePlayerVersion:"".concat(pkg.version)}}_requireAnimationsInTheManifest(){if(!this._manifest.animations.length)throw createError("No animations found in manifest.")}_requireAnimationsToBeLoaded(){var t;if(!(null===(t=this._animations)||void 0===t?void 0:t.length))throw createError("No animations have been loaded.")}previous(t){this._activeAnimationIndex=(this._activeAnimationIndex-1+this._manifest.animations.length)%this._manifest.animations.length,this.play(this._activeAnimationIndex,t)}next(t){this._activeAnimationIndex=(this._activeAnimationIndex+1)%this._manifest.animations.length,this.play(this._activeAnimationIndex,t)}reset(){this._manifest&&this._manifest.activeAnimationId?this.play(this._manifest.activeAnimationId):this.activeAnimationId?this.play(this.activeAnimationId):this.play(0)}_validateAnimationIndex(t){if(isNaN(t)||t<0||t>=this._manifest.animations.length)throw createError("Animation index ".concat(t," is out of bounds."))}play(t,e){if(this._lottie){if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),void 0===t)return this._lottie.play(),this.currentState=exports.PlayerState.Playing,void this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Play));if(this._requireAnimationsToBeLoaded(),this._requireAnimationsInTheManifest(),void 0!==t){if(!this._animations)throw createError("No animations have been loaded.");if(this._requireAnimationsInTheManifest(),"string"==typeof t){const r=this._manifest.animations.findIndex(e=>e.id===t);-1!==r?(this._activeAnimationIndex=r,this.load(this._animations[this._activeAnimationIndex],{playbackOptions:e})):error("No animation with the id '".concat(t,"' was found."))}else"number"==typeof t&&(this._validateAnimationIndex(t),this._manifest.animations&&this._manifest.animations[t]?(this._activeAnimationIndex=t,this.load(this._animations[this._activeAnimationIndex],{playbackOptions:e})):error("Animation not found at index: ".concat(t)))}}}pause(){this._lottie&&(this._lottie.pause(),this.currentState=exports.PlayerState.Paused,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Pause)))}stop(){this._lottie&&(this._counter=0,this._lottie.stop(),-1===this.direction&&this._lottie.goToAndStop(this._lottie.totalFrames,!0),this.currentState=exports.PlayerState.Stopped,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Stop)))}seek(t){if(!this._lottie)return;"number"==typeof t&&(t=Math.round(t));const e=/^(\d+)(%?)$/.exec(t.toString());if(!e)return;const r="%"===e[2]?this._lottie.totalFrames*Number(e[1])/100:Number(e[1]);this.seeker=r,this.currentState===exports.PlayerState.Playing?this._lottie.goToAndPlay(r,!0):(this._lottie.goToAndStop(r,!0),this._lottie.pause())}snapshot(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.shadowRoot)return;const e=this.shadowRoot.querySelector(".animation svg"),r=(new XMLSerializer).serializeToString(e);if(t){const t=document.createElement("a");t.href="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(r),t.download="download_"+this.seeker+".svg",document.body.appendChild(t),t.click(),document.body.removeChild(t)}return r}freeze(){this._lottie&&(this._lottie.pause(),this.currentState=exports.PlayerState.Frozen,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Freeze)))}setSpeed(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this._lottie&&this._lottie.setSpeed(t)}setDirection(t){this._lottie&&this._lottie.setDirection(t)}setLooping(t){this._lottie&&(this._lottie.loop=this._parseLoop(t))}isLooping(){return!!this._loop&&this._loop}togglePlay(){return this.currentState===exports.PlayerState.Playing?this.pause():this.play()}toggleLooping(){const t=!this._loop;this.setLooping(t.toString())}static get styles(){return styles}async firstUpdated(){"IntersectionObserver"in window&&(this._io=new IntersectionObserver(t=>{t[0].isIntersecting?this.currentState===exports.PlayerState.Frozen&&this.play():this.currentState===exports.PlayerState.Playing&&this.freeze()}),this._io.observe(this.container)),void 0!==document.hidden&&document.addEventListener("visibilitychange",()=>this._onVisibilityChange()),this.loop?this._parseLoop(this.loop):this.hasAttribute("loop")&&this._parseLoop("true"),this.src&&await this.load(this.src),this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Rendered))}disconnectedCallback(){this._io&&(this._io.disconnect(),this._io=void 0),this._lottie&&this._lottie.destroy(),document.removeEventListener("visibilitychange",()=>this._onVisibilityChange())}renderControls(){const t=this.currentState===exports.PlayerState.Playing,e=this.currentState===exports.PlayerState.Paused,r=this.currentState===exports.PlayerState.Stopped;return y(_templateObject||(_templateObject=_taggedTemplateLiteral(['\n
\n \n ','\n \n \n \n \n \n \n \n \n
\n '])),this.togglePlay,t||e?"active":"",y(t?_templateObject2||(_templateObject2=_taggedTemplateLiteral(['\n \n '])):_templateObject3||(_templateObject3=_taggedTemplateLiteral(['\n \n ']))),this.stop,r?"active":"",this.seeker,this._handleSeekChange,()=>{this._prevState=this.currentState,this.freeze()},()=>{this._prevState===exports.PlayerState.Playing&&this.play(),this.seek(this._lottie.currentFrame)},this.seeker,this.toggleLooping,this._loop?"active":"")}render(){const t=this.controls?"main controls":"main",e=this.controls?"animation controls":"animation";return y(_templateObject4||(_templateObject4=_taggedTemplateLiteral(['\n \n "])),t,e,this.background,this.currentState===exports.PlayerState.Error?y(_templateObject5||(_templateObject5=_taggedTemplateLiteral(['
⚠️
']))):void 0,this.controls?this.renderControls():void 0)}}__decorate([i$1(".animation")],DotLottiePlayer.prototype,"container",void 0),__decorate([e$5()],DotLottiePlayer.prototype,"mode",void 0),__decorate([e$5({type:Boolean})],DotLottiePlayer.prototype,"autoplay",void 0),__decorate([e$5({type:String})],DotLottiePlayer.prototype,"background",void 0),__decorate([e$5({type:Boolean})],DotLottiePlayer.prototype,"controls",void 0),__decorate([e$5({type:Number})],DotLottiePlayer.prototype,"direction",void 0),__decorate([e$5({type:Boolean})],DotLottiePlayer.prototype,"hover",void 0),__decorate([e$5({type:String})],DotLottiePlayer.prototype,"loop",void 0),__decorate([e$5({type:String})],DotLottiePlayer.prototype,"renderer",void 0),__decorate([e$5({type:Number})],DotLottiePlayer.prototype,"speed",void 0),__decorate([e$5({type:String})],DotLottiePlayer.prototype,"src",void 0),__decorate([e$5({type:String})],DotLottiePlayer.prototype,"currentState",void 0),__decorate([e$5()],DotLottiePlayer.prototype,"seeker",void 0),__decorate([e$5()],DotLottiePlayer.prototype,"intermission",void 0),__decorate([e$5({type:String})],DotLottiePlayer.prototype,"activeAnimationId",void 0),customElements.get(ELEMENT_NAME)||e$6(ELEMENT_NAME)(DotLottiePlayer),exports.DotLottiePlayer=DotLottiePlayer,Object.defineProperty(exports,"__esModule",{value:!0})})); +//# sourceMappingURL=dotlottie-player.js.map diff --git a/assets/external/unpkg.com/@dotlottie/player-component@latest/dist/dotlottie-player.js b/assets/external/unpkg.com/@dotlottie/player-component@latest/dist/dotlottie-player.js new file mode 100644 index 00000000..ebcebb88 --- /dev/null +++ b/assets/external/unpkg.com/@dotlottie/player-component@latest/dist/dotlottie-player.js @@ -0,0 +1,1085 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : + typeof define === 'function' && define.amd ? define(['exports'], factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.DotLottiePlayer = {})); +})(this, (function (exports) { 'use strict'; + + var Ll=Object.defineProperty;var hu=Object.getOwnPropertyDescriptor;var cr=(t,e)=>()=>(t&&(e=t(t=0)),e);var Ts=(t,e)=>{for(var i in e)Ll(t,i,{get:e[i],enumerable:!0});};var rr=(t,e,i,r)=>{for(var s=r>1?void 0:r?hu(e,i):e,a=t.length-1,n;a>=0;a--)(n=t[a])&&(s=(r?n(e,i,s):n(s))||s);return r&&s&&Ll(e,i,s),s};function vu(t,e,i){return i||(i=e,e={}),typeof i!="function"&&Br(7),gu(t,e,[yu],function(r){return Ql(ch(r.data[0],tp(r.data[1])))},1,i)}function ch(t,e){return Kl(t,{i:2},e&&e.out,e&&e.dictionary)}function tn(t,e){if(e){for(var i="",r=0;r65558)return n(Br(13,0,1),null),s;var o=Hs(t,p+8);if(o){var d=o,g=Ms(t,p+16),f=g==4294967295||d==65535;if(f){var l=Ms(t,p-12);f=Ms(t,l)==101075792,f&&(d=o=Ms(t,l+32),g=Ms(t,l+48));}for(var b=e&&e.filter,v=function(E){var c=Pu(t,g,f),u=c[0],y=c[1],P=c[2],w=c[3],F=c[4],B=c[5],G=xu(t,B);g=F;var it=function(ct,dt){ct?(s(),n(ct,null)):(dt&&(a[w]=dt),--o||n(null,a));};if(!b||b({name:w,size:y,originalSize:P,compression:u}))if(!u)it(null,lo(t,G,G+y));else if(u==8){var ft=t.subarray(G,G+y);if(y<32e4)try{it(null,ch(ft,{out:new zr(P)}));}catch(ct){it(ct,null);}else r.push(vu(ft,{size:P},it));}else it(Br(14,"unknown compression type "+u,1),null);else it(null,null);},m=0;m{if(i.path){let r=i.path.map(({key:s})=>s).join(".");e.nested[r]=[...e.nested[r]||[],i.message];}else e.root=[...e.root||[],i.message];return e},{nested:{}})}function Cu(t,e){return {reason:t==null?void 0:t.reason,validation:e.validation,origin:(t==null?void 0:t.origin)||"value",message:e.message,input:e.input,abortEarly:t==null?void 0:t.abortEarly,abortPipeEarly:t==null?void 0:t.abortPipeEarly}}function wu(t,e){return {reason:e,origin:t==null?void 0:t.origin,abortEarly:t==null?void 0:t.abortEarly,abortPipeEarly:t==null?void 0:t.abortPipeEarly}}function ba(t,e,i,r){if(!e||!e.length)return {output:t};let s,a,n=t;for(let p of e){let o=p(n);if(o.issue){s=s||wu(i,r);let d=Cu(s,o.issue);if(a?a.push(d):a=[d],s.abortEarly||s.abortPipeEarly)break}else n=o.output;}return a?{issues:a}:{output:n}}function Fs(t,e){return !t||typeof t=="string"?[t,e]:[void 0,t]}function qs(t,e,i,r,s,a){return {issues:[{reason:e,validation:i,origin:(t==null?void 0:t.origin)||"value",message:r,input:s,issues:a,abortEarly:t==null?void 0:t.abortEarly,abortPipeEarly:t==null?void 0:t.abortPipeEarly}]}}function Tu(t=[]){return {schema:"any",async:!1,_parse(e,i){return ba(e,t,i,"any")}}}function xn(t,e,i){let[r,s]=Fs(e,i);return {schema:"array",array:{item:t},async:!1,_parse(a,n){if(!Array.isArray(a))return qs(n,"type","array",r||"Invalid type",a);let p,o=[];for(let d=0;dp.length)return qs(o,"type","tuple",a||"Invalid type",p);let d,g=[];for(let f=0;f({...a,...n.object}),{}),r,s)}function Vu(t,e,i,r){let[s,a]=Fs(i,r);return ys(Object.entries(t.object).reduce((n,[p,o])=>e.includes(p)?n:{...n,[p]:o},{}),s,a)}function Ru(t,e,i){let r=t._parse(e,i);return r.issues?{success:!1,error:new Au(r.issues),issues:r.issues}:{success:!0,data:r.output,output:r.output}}function nh(t,e){return i=>i>t?{issue:{validation:"max_value",message:e||"Invalid value",input:i}}:{output:i}}function oh(t,e){return i=>i"u")e=Buffer.from(t).toString("base64");else {let i=Array.prototype.map.call(t,r=>String.fromCharCode(r)).join("");e=window.btoa(i);}return `data:${ld(e)};base64,${e}`}function Gl(t){return "w"in t&&"h"in t&&!("xt"in t)&&"p"in t}function hh(t){return !("h"in t)&&!("w"in t)&&"p"in t&&"e"in t&&"u"in t&&"id"in t}async function En(t,e=()=>!0){if(!(t instanceof Uint8Array))throw new mh("DotLottie not found","INVALID_DOTLOTTIE");return await new Promise((i,r)=>{ku(t,{filter:e},(s,a)=>{s&&r(s),i(a);});})}async function yh(t,e,i){if(!(t instanceof Uint8Array))throw new mh("DotLottie not found","INVALID_DOTLOTTIE");return (await En(t,r=>r.name===e&&(!i||i(r))))[e]}async function po(t){let e="manifest.json",i=(await En(t,r=>r.name===e))[e];if(!(typeof i>"u"))return JSON.parse(tn(i,!1))}async function pd(t){if(!(t instanceof Uint8Array))return {success:!1,error:"DotLottie not found"};let e=await po(t);if(typeof e>"u")return {success:!1,error:"Invalid .lottie file, manifest.json is missing"};let i=Ru(Ku,e);return i.success?{success:!0}:{success:!1,error:`Invalid .lottie file, manifest.json structure is invalid, ${JSON.stringify(Eu(i.error).nested,null,2)}`}}async function gh(t){let e=new Uint8Array(t),i=await pd(e);if(i.error)throw new mh(i.error,"INVALID_DOTLOTTIE");return e}async function fd(t,e){let i=await En(t,s=>{let a=s.name.replace("audio/","");return s.name.startsWith("audio/")&&(!e||e({...s,name:a}))}),r={};for(let s in i){let a=i[s];if(a instanceof Uint8Array){let n=s.replace("audio/","");r[n]=sp(a);}}return r}async function cd(t,e){var i;let r=new Map;for(let[a,n]of Object.entries(e))for(let p of n.assets||[])if(hh(p)){let o=p.p;r.has(o)||r.set(o,new Set),(i=r.get(o))==null||i.add(a);}let s=await fd(t,a=>r.has(a.name));for(let[a,n]of r){let p=s[a];if(p)for(let o of n){let d=e[o];for(let g of (d==null?void 0:d.assets)||[])hh(g)&&g.p===a&&(g.p=p,g.u="",g.e=1);}}}async function ud(t,e){let i=await En(t,s=>{let a=s.name.replace("images/","");return s.name.startsWith("images/")&&(!e||e({...s,name:a}))}),r={};for(let s in i){let a=i[s];if(a instanceof Uint8Array){let n=s.replace("images/","");r[n]=sp(a);}}return r}async function dd(t,e){var i;let r=new Map;for(let[a,n]of Object.entries(e))for(let p of n.assets||[])if(Gl(p)){let o=p.p;r.has(o)||r.set(o,new Set),(i=r.get(o))==null||i.add(a);}let s=await ud(t,a=>r.has(a.name));for(let[a,n]of r){let p=s[a];if(p)for(let o of n){let d=e[o];for(let g of (d==null?void 0:d.assets)||[])Gl(g)&&g.p===a&&(g.p=p,g.u="",g.e=1);}}}async function ap(t,e,{inlineAssets:i}={},r){let s=`animations/${e}.json`,a=await yh(t,s,r);if(typeof a>"u")return;let n=JSON.parse(tn(a,!1));if(!i)return n;let p={[e]:n};return await dd(t,p),await cd(t,p),n}async function np(t,e,i){let r=`themes/${e}.lss`,s=await yh(t,r,i);if(!(typeof s>"u"))return tn(s,!1)}async function op(t,e){let i={},r=await En(t,s=>{let a=s.name.replace("states/","").replace(".json","");return s.name.startsWith("states/")&&(!e||e({...s,name:a}))});for(let s in r){let a=r[s];if(a instanceof Uint8Array){let n=s.replace("states/","").replace(".json","");i[n]=tn(a,!1);}}return i}async function hp(t,e,i){let r=`states/${e}.json`,s=await yh(t,r,i);return typeof s>"u"?void 0:JSON.parse(tn(s,!1))}function Ke(t,e="dotLottie-common"){return new Error(`[${e}]: ${t}`)}function $s(t,e="dotLottie-common",...i){console.error(`[${e}]:`,t,...i);}function Ai(t,e="dotLottie-common",...i){console.warn(`[${e}]:`,t,...i);}function vh(t=""){let e=t.trim(),i=e.lastIndexOf("/"),r=e.substring(i+1),s=r.indexOf(".");return s!==-1?r.substring(0,s):r}function qa(t){return ["v","ip","op","layers","fr","w","h"].every(e=>Object.prototype.hasOwnProperty.call(t,e))}function bh(t){let e=t.assets;return e?e.some(i=>hh(i)):!1}function _h(t){try{let e=JSON.parse(t);return qa(e)}catch{return !1}}function fo(t,e){let i=Object.keys(t).find(r=>t[r]===e);if(i===void 0)throw new Error("Value not found in the object.");return i}var Vl,lu,zr,ja,jl,lh,ph,Hl,ql,$l,fh,pu,fu,Wl,ho,ra,ui,Qa,Pn,ui,ui,ui,ui,Ul,ui,Jl,Xl,no,ms,oo,Yl,lo,Zl,Br,Kl,cu,uu,Rl,ao,du,mu,yu,Ql,tp,gu,Hs,Ms,ih,sh,bu,_u,xu,Pu,Su,Ol,Au,Fu,Ou,uh,Bu,ep,zu,Nu,Gu,kn,ju,Hu,qu,$u,Wu,Uu,Ju,Xu,ip,Yu,rp,Zu,Ku,dh,Ha,Qu,td,ed,id,rd,sd,ad,nd,od,hd,Nl,ld,mh,en=cr(()=>{Vl={},lu=function(t,e,i,r,s){var a=new Worker(Vl[e]||(Vl[e]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(n){var p=n.data,o=p.$e$;if(o){var d=new Error(o[0]);d.code=o[1],d.stack=o[2],s(d,null);}else s(null,p);},a.postMessage(i,r),a},zr=Uint8Array,ja=Uint16Array,jl=Int32Array,lh=new zr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ph=new zr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Hl=new zr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ql=function(t,e){for(var i=new ja(31),r=0;r<31;++r)i[r]=e+=1<>1|(ui&21845)<<1,ra=(ra&52428)>>2|(ra&13107)<<2,ra=(ra&61680)>>4|(ra&3855)<<4,ho[ui]=((ra&65280)>>8|(ra&255)<<8)>>1;Qa=function(t,e,i){for(var r=t.length,s=0,a=new ja(e);s>o]=d;}else for(p=new ja(r),s=0;s>15-t[s]);return p},Pn=new zr(288);for(ui=0;ui<144;++ui)Pn[ui]=8;for(ui=144;ui<256;++ui)Pn[ui]=9;for(ui=256;ui<280;++ui)Pn[ui]=7;for(ui=280;ui<288;++ui)Pn[ui]=8;Ul=new zr(32);for(ui=0;ui<32;++ui)Ul[ui]=5;Jl=Qa(Pn,9,1),Xl=Qa(Ul,5,1),no=function(t){for(var e=t[0],i=1;ie&&(e=t[i]);return e},ms=function(t,e,i){var r=e/8|0;return (t[r]|t[r+1]<<8)>>(e&7)&i},oo=function(t,e){var i=e/8|0;return (t[i]|t[i+1]<<8|t[i+2]<<16)>>(e&7)},Yl=function(t){return (t+7)/8|0},lo=function(t,e,i){(e==null||e<0)&&(e=0),(i==null||i>t.length)&&(i=t.length);var r=new zr(i-e);return r.set(t.subarray(e,i)),r},Zl=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Br=function(t,e,i){var r=new Error(e||Zl[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,Br),!i)throw r;return r},Kl=function(t,e,i,r){var s=t.length,a=r?r.length:0;if(!s||e.f&&!e.l)return i||new zr(0);var n=!i||e.i!=2,p=e.i;i||(i=new zr(s*3));var o=function(ce){var Xt=i.length;if(ce>Xt){var pe=new zr(Math.max(Xt*2,ce));pe.set(i),i=pe;}},d=e.f||0,g=e.p||0,f=e.b||0,l=e.l,b=e.d,v=e.m,m=e.n,E=s*8;do{if(!l){d=ms(t,g,1);var c=ms(t,g+1,3);if(g+=3,c)if(c==1)l=Jl,b=Xl,v=9,m=5;else if(c==2){var u=ms(t,g,31)+257,y=ms(t,g+10,15)+4,P=u+ms(t,g+5,31)+1;g+=14;for(var w=new zr(P),F=new zr(19),B=0;B>4;if(dt<16)w[B++]=dt;else {var Pt=0,tt=0;for(dt==16?(tt=3+ms(t,g,3),g+=2,Pt=w[B-1]):dt==17?(tt=3+ms(t,g,7),g+=3):dt==18&&(tt=11+ms(t,g,127),g+=7);tt--;)w[B++]=Pt;}}var vt=w.subarray(0,u),D=w.subarray(u);v=no(vt),m=no(D),l=Qa(vt,v,1),b=Qa(D,m,1);}else Br(1);else {var dt=Yl(g)+4,O=t[dt-4]|t[dt-3]<<8,k=dt+O;if(k>s){p&&Br(0);break}n&&o(f+O),i.set(t.subarray(dt,k),f),e.b=f+=O,e.p=g=k*8,e.f=d;continue}if(g>E){p&&Br(0);break}}n&&o(f+131072);for(var L=(1<>4;if(g+=Pt&15,g>E){p&&Br(0);break}if(Pt||Br(2),Ht<256)i[f++]=Ht;else if(Ht==256){U=g,l=null;break}else {var It=Ht-254;if(Ht>264){var B=Ht-257,Gt=lh[B];It=ms(t,g,(1<>4;Ot||Br(3),g+=Ot&15;var D=Wl[ee];if(ee>3){var Gt=ph[ee];D+=oo(t,g)&(1<E){p&&Br(0);break}n&&o(f+131072);var ae=f+It;if(f>>0},ih=function(t,e){return Ms(t,e)+Ms(t,e+4)*4294967296};sh=typeof TextDecoder<"u"&&new TextDecoder,bu=0;try{sh.decode(cu,{stream:!0}),bu=1;}catch{}_u=function(t){for(var e="",i=0;;){var r=t[i++],s=(r>127)+(r>223)+(r>239);if(i+s>t.length)return {s:e,r:lo(t,i-1)};s?s==3?(r=((r&15)<<18|(t[i++]&63)<<12|(t[i++]&63)<<6|t[i++]&63)-65536,e+=String.fromCharCode(55296|r>>10,56320|r&1023)):s&1?e+=String.fromCharCode((r&31)<<6|t[i++]&63):e+=String.fromCharCode((r&15)<<12|(t[i++]&63)<<6|t[i++]&63):e+=String.fromCharCode(r);}};xu=function(t,e){return e+30+Hs(t,e+26)+Hs(t,e+28)},Pu=function(t,e,i){var r=Hs(t,e+28),s=tn(t.subarray(e+46,e+46+r),!(Hs(t,e+8)&2048)),a=e+46+r,n=Ms(t,e+20),p=i&&n==4294967295?Su(t,a):[n,Ms(t,e+24),Ms(t,e+42)],o=p[0],d=p[1],g=p[2];return [Hs(t,e+10),o,d,s,a+Hs(t,e+30)+Hs(t,e+32),g]},Su=function(t,e){for(;Hs(t,e)!=1;e+=4+Hs(t,e+2));return [ih(t,e+12),ih(t,e+4),ih(t,e+20)]},Ol=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(t){t();};Au=class extends Error{issues;constructor(t){super(t[0].message),this.name="ValiError",this.issues=t;}};Fu=["__proto__","prototype","constructor"];Ou=Object.create,uh=Object.defineProperty,Bu=Object.getOwnPropertyDescriptor,ep=Object.getOwnPropertyNames,zu=Object.getPrototypeOf,Nu=Object.prototype.hasOwnProperty,Gu=(t,e,i)=>e in t?uh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,kn=(t,e)=>function(){return e||(0, t[ep(t)[0]])((e={exports:{}}).exports,e),e.exports},ju=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ep(e))!Nu.call(t,s)&&s!==i&&uh(t,s,{get:()=>e[s],enumerable:!(r=Bu(e,s))||r.enumerable});return t},Hu=(t,e,i)=>(i=t!=null?Ou(zu(t)):{},ju(e||!t||!t.__esModule?uh(i,"default",{value:t,enumerable:!0}):i,t)),qu=(t,e,i)=>(Gu(t,typeof e!="symbol"?e+"":e,i),i),$u=kn({"../../node_modules/.pnpm/@rgba-image+copy@0.1.3/node_modules/@rgba-image/copy/dist/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.copy=void 0;var e=(i,r,s=0,a=0,n=i.width-s,p=i.height-a,o=0,d=0)=>{if(s=s|0,a=a|0,n=n|0,p=p|0,o=o|0,d=d|0,n<=0||p<=0)return;let g=new Uint32Array(i.data.buffer),f=new Uint32Array(r.data.buffer);for(let l=0;l=i.height)continue;let v=d+l;if(!(v<0||v>=r.height))for(let m=0;m=i.width)continue;let c=o+m;if(c<0||c>=r.width)continue;let u=b*i.width+E,y=v*r.width+c;f[y]=g[u];}}};t.copy=e;}}),Wu=kn({"../../node_modules/.pnpm/@rgba-image+create-image@0.1.1/node_modules/@rgba-image/create-image/dist/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CreateImageFactory=(e=[0,0,0,0],i=4)=>{if(i=Math.floor(i),isNaN(i)||i<1)throw TypeError("channels should be a positive non-zero number");if(!("length"in e)||e.lengths===0);return (s,a,n)=>{if(s===void 0||a===void 0)throw TypeError("Not enough arguments");if(s=Math.floor(s),a=Math.floor(a),isNaN(s)||s<1||isNaN(a)||a<1)throw TypeError("Index or size is negative or greater than the allowed amount");let p=s*a*i;if(n===void 0&&(n=new Uint8ClampedArray(p)),n instanceof Uint8ClampedArray){if(n.length!==p)throw TypeError("Index or size is negative or greater than the allowed amount");if(!r)for(let o=0;o{if(a<=-n||a>=n||a==0)return 0;let p=a*Math.PI;return Math.sin(p)/p*Math.sin(p/n)/(p/n)},r=a=>Math.round(a*((1<{let g=d?2:3,f=1/p,l=Math.min(1,p),b=g/l,v=Math.floor((b+1)*2),m=new Int16Array((v+2)*n),E=0;for(let c=0;c>1]+=r(1-ft);let ct=0;for(;ct0&&B[dt]===0;)dt--;let Pt=y+ct,tt=dt-ct+1;m[E++]=Pt,m[E++]=tt,m.set(B.subarray(ct,dt+1),E),E+=tt;}return m};t.filters=s;}}),Ju=kn({"../../node_modules/.pnpm/@rgba-image+lanczos@0.1.1/node_modules/@rgba-image/lanczos/dist/convolve.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.convolve=void 0;var e=14,i=(r,s,a,n,p,o)=>{let d=0,g=0;for(let f=0;f0;P--){let w=o[l++];E=E+w*r[m]|0,c=c+w*r[m+1]|0,u=u+w*r[m+2]|0,y=y+w*r[m+3]|0,m=m+4|0;}s[g]=E+8192>>e,s[g+1]=c+8192>>e,s[g+2]=u+8192>>e,s[g+3]=y+8192>>e,g=g+n*4|0;}g=(f+1)*4|0,d=(f+1)*a*4|0;}};t.convolve=i;}}),Xu=kn({"../../node_modules/.pnpm/@rgba-image+lanczos@0.1.1/node_modules/@rgba-image/lanczos/dist/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.lanczos2=t.lanczos=void 0;var e=$u(),i=Wu(),r=Uu(),s=Ju(),a=(o,d,g=!1)=>{let f=d.width/o.width,l=d.height/o.height,b=r.filters(o.width,d.width,f,0,g),v=r.filters(o.height,d.height,l,0,g),m=new Uint8ClampedArray(d.width*o.height*4);s.convolve(o.data,m,o.width,o.height,d.width,b),s.convolve(m,d.data,o.height,d.width,d.height,v);},n=(o,d,g=0,f=0,l=o.width-g,b=o.height-f,v=0,m=0,E=d.width-v,c=d.height-m)=>{if(g=g|0,f=f|0,l=l|0,b=b|0,v=v|0,m=m|0,E=E|0,c=c|0,l<=0||b<=0||E<=0||c<=0)return;if(g===0&&f===0&&l===o.width&&b===o.height&&v===0&&m===0&&E===d.width&&c===d.height){a(o,d);return}let u=i.createImage(l,b),y=i.createImage(E,c);e.copy(o,u,g,f),a(u,y),e.copy(y,d,0,0,y.width,y.height,v,m);};t.lanczos=n;var p=(o,d,g=0,f=0,l=o.width-g,b=o.height-f,v=0,m=0,E=d.width-v,c=d.height-m)=>{if(g=g|0,f=f|0,l=l|0,b=b|0,v=v|0,m=m|0,E=E|0,c=c|0,l<=0||b<=0||E<=0||c<=0)return;if(g===0&&f===0&&l===o.width&&b===o.height&&v===0&&m===0&&E===d.width&&c===d.height){a(o,d,!0);return}let u=i.createImage(l,b),y=i.createImage(E,c);e.copy(o,u,g,f),a(u,y,!0),e.copy(y,d,0,0,y.width,y.height,v,m);};t.lanczos2=p;}}),ip=(t=>(t.Bounce="bounce",t.Normal="normal",t))(ip||{}),Yu=Mu(ip),rp=ys({autoplay:yi(rh()),defaultTheme:yi(Pr()),direction:yi(ah([Bl(1),Bl(-1)])),hover:yi(rh()),id:Pr(),intermission:yi(Ds()),loop:yi(ah([rh(),Ds()])),playMode:yi(Yu),speed:yi(Ds()),themeColor:yi(Pr())}),Zu=ys({animations:xn(Pr()),id:Pr()}),Ku=ys({activeAnimationId:yi(Pr()),animations:xn(rp),author:yi(Pr()),custom:yi(Iu(Pr(),Tu())),description:yi(Pr()),generator:yi(Pr()),keywords:yi(Pr()),revision:yi(Ds()),themes:yi(xn(Zu)),states:yi(xn(Pr())),version:yi(Pr())}),dh=Vu(rp,["id"]),Ha=ys({state:Pr()}),Qu=Ha,td=Sn([Ha,ys({ms:Ds()})]),ed=Sn([Ha,ys({count:Ds()})]),id=Ha,rd=Ha,sd=Ha,ad=Sn([Ha,ys({threshold:yi(xn(Ds([oh(0),nh(1)])))})]),nd=ys({onAfter:yi(td),onClick:yi(Qu),onComplete:yi(sd),onEnter:yi(ed),onMouseEnter:yi(id),onMouseLeave:yi(rd),onShow:yi(ad)}),od=Sn([dh,ys({playOnScroll:yi(zl([Ds([oh(0),nh(1)]),Ds([oh(0),nh(1)])])),segments:yi(ah([zl([Ds(),Ds()]),Pr()]))})]);Sn([nd,ys({animationId:yi(Pr()),playbackSettings:od})]);hd={jpeg:"image/jpeg",png:"image/png",gif:"image/gif",bmp:"image/bmp",svg:"image/svg+xml",webp:"image/webp",mpeg:"audio/mpeg",mp3:"audio/mp3"},Nl={jpeg:[255,216,255],png:[137,80,78,71,13,10,26,10],gif:[71,73,70],bmp:[66,77],webp:[82,73,70,70,87,69,66,80],svg:[60,63,120],mp3:[73,68,51,3,0,0,0,0],mpeg:[73,68,51,3,0,0,0,0]},ld=t=>{let e=null,i=[];if(!t)return null;let r=t.substring(t.indexOf(",")+1);typeof window>"u"?e=Buffer.from(r,"base64").toString("binary"):e=atob(r);let s=new Uint8Array(e.length);for(let a=0;ap===n[o]))return hd[a]}return null},mh=class extends Error{constructor(t,e){super(t),qu(this,"code"),this.name="[dotlottie-js]",this.code=e;}};Hu(Xu());});var lp,co=cr(()=>{en();lp=class{_dotLottie;_animationsMap=new Map;_themeMap=new Map;_stateMachinesMap=new Map;_manifest;get dotLottie(){return this._dotLottie}get animationsMap(){return this._animationsMap}get themeMap(){return this._themeMap}get stateMachinesMap(){return this._stateMachinesMap}get manifest(){return this._manifest}async loadFromUrl(t){let e=await fetch(t,{method:"GET",mode:"cors"});if(!e.ok)throw new Error(`Failed to load dotLottie from ${t} with status ${e.status}`);let i=e.headers.get("content-type");if(i!=null&&i.includes("application/json")){let r=await e.json();if(!qa(r))throw new Error(`Invalid lottie JSON at ${t}`);let s=vh(t);this._animationsMap.set(s,r);let a={activeAnimationId:s,animations:[{id:s}]};this._manifest=a;}else {this._dotLottie=await gh(await e.arrayBuffer());let r=await po(this._dotLottie);if(!r)throw new Error("Manifest not found");this._manifest=r;}}loadFromLottieJSON(t){if(!qa(t))throw new Error("Invalid lottie JSON");let e="my-animation";this._animationsMap.set(e,t);let i={activeAnimationId:e,animations:[{id:e}]};this._manifest=i;}async loadFromArrayBuffer(t){this._dotLottie=await gh(t);let e=await po(this._dotLottie);if(!e)throw new Error("Manifest not found");this._manifest=e;}async getAnimation(t){if(this._animationsMap.get(t))return this._animationsMap.get(t);if(!this._dotLottie)return;let e=await ap(this._dotLottie,t,{inlineAssets:!0});return e&&this._animationsMap.set(t,e),e}async getTheme(t){if(this._themeMap.get(t))return this._themeMap.get(t);if(!this._dotLottie)return;let e=await np(this._dotLottie,t);return e&&this._themeMap.set(t,e),e}async getStateMachines(){if(!this._dotLottie)return;let t=await op(this._dotLottie);for(let e in t)if(e){let i=t[e];if(i){let r=JSON.parse(i);if(r){let s=r.descriptor.id;this._stateMachinesMap.get(s)||this._stateMachinesMap.set(s,r);}}}return Array.from(this._stateMachinesMap.values())}async getStateMachine(t){if(this._stateMachinesMap.get(t))return this._stateMachinesMap.get(t);if(!this._dotLottie)return;let e=await hp(this._dotLottie,t);return e&&this._stateMachinesMap.set(e.descriptor.id,e),e}};});var md,pp,yd,gd,vd,bd,ue,_d,as,ns=cr(()=>{md=Object.create,pp=Object.defineProperty,yd=Object.getOwnPropertyDescriptor,gd=Object.getOwnPropertyNames,vd=Object.getPrototypeOf,bd=Object.prototype.hasOwnProperty,ue=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),_d=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of gd(e))!bd.call(t,s)&&s!==i&&pp(t,s,{get:()=>e[s],enumerable:!(r=yd(e,s))||r.enumerable});return t},as=(t,e,i)=>(i=t!=null?md(vd(t)):{},_d(e||!t||!t.__esModule?pp(i,"default",{value:t,enumerable:!0}):i,t));});var Bp={};Ts(Bp,{relottie:()=>Vm});function uo(t){if(Array.isArray(t))return t;if(typeof t=="function"){let e=t();return uo(e)}else return typeof t>"u"?[]:[t]}function mo(t){if(Array.isArray(t))return t.length>0?[t[0]]:[];if(typeof t=="function"){let e=t();return mo(e)}else return typeof t>"u"?[]:[t]}function kd(t){return t===void 0?"empty":t}function Fd(t){let e=[],i=-1;for(;++i0?{messages:e.messages}:{}}};Object.assign(e.data,o);let d=n.pop();if(sn(d,"root"))return d.hasExpressions=p.hasExpressions,d;e.fail(`Stack's last item has to be "root" but it's "${d==null?void 0:d.type}"`,d);}function rn(t){let e=i=>{let r={};return i.children.forEach(s=>{let a=typeof s.key=="string"?s.key:s.key.value,n=s.children[0];n&&(r[a]=rn(n));}),r};switch(t.type){case"primitive":switch(typeof t.value){case"number":return t.value;case"string":return t.value;case"boolean":return t.value;case"object":return null;default:throw new Error(`Unknown Primitive type ${t.type}.`)}case"attribute":return t.children[0]?rn(t.children[0]):null;case"collection":return t.children[0]?rn(t.children[0]):null;case"element":return t.children[0]?rn(t.children[0]):null;case"array":return t.children.map(rn);case"root":return e(t);case"object":return e(t);default:throw new Error(`Unknown node type ${t.type}.`)}}function fm(t,e,i={}){let r={...pm,...i.stringify},s=rn(t);return JSON.stringify(s,null,r.indent)}function _p(t){if(t)throw t}function wh(t){if(typeof t!="object"||t===null)return !1;let e=Object.getPrototypeOf(t);return (e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function mm(){let t=[],e={run:i,use:r};return e;function i(...s){let a=-1,n=s.pop();if(typeof n!="function")throw new TypeError("Expected function as last argument, not "+n);p(null,...s);function p(o,...d){let g=t[++a],f=-1;if(o){n(o);return}for(;++fn.length,o;p&&n.push(s);try{o=t.apply(this,n);}catch(d){let g=d;if(p&&i)throw g;return s(g)}p||(o instanceof Promise?o.then(a,s):o instanceof Error?s(o):a(o));}function s(n,...p){i||(i=!0,e(n,...p));}function a(n){s(null,n);}}function vm(t){return !t||typeof t!="object"?"":"position"in t||"type"in t?Pp(t.position):"start"in t||"end"in t?Pp(t):"line"in t||"column"in t?Th(t):""}function Th(t){return Sp(t&&t.line)+":"+Sp(t&&t.column)}function Pp(t){return Th(t&&t.start)+"-"+Th(t&&t.end)}function Sp(t){return t&&typeof t=="number"?t:1}function bm(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Tn(t);let i=0,r=-1,s=t.length,a;if(e===void 0||e.length===0||e.length>t.length){for(;s--;)if(t.charCodeAt(s)===47){if(a){i=s+1;break}}else r<0&&(a=!0,r=s+1);return r<0?"":t.slice(i,r)}if(e===t)return "";let n=-1,p=e.length-1;for(;s--;)if(t.charCodeAt(s)===47){if(a){i=s+1;break}}else n<0&&(a=!0,n=s+1),p>-1&&(t.charCodeAt(s)===e.charCodeAt(p--)?p<0&&(r=s):(p=-1,r=n));return i===r?r=n:r<0&&(r=t.length),t.slice(i,r)}function _m(t){if(Tn(t),t.length===0)return ".";let e=-1,i=t.length,r;for(;--i;)if(t.charCodeAt(i)===47){if(r){e=i;break}}else r||(r=!0);return e<0?t.charCodeAt(0)===47?"/":".":e===1&&t.charCodeAt(0)===47?"//":t.slice(0,e)}function xm(t){Tn(t);let e=t.length,i=-1,r=0,s=-1,a=0,n;for(;e--;){let p=t.charCodeAt(e);if(p===47){if(n){r=e+1;break}continue}i<0&&(n=!0,i=e+1),p===46?s<0?s=e:a!==1&&(a=1):s>-1&&(a=-1);}return s<0||i<0||a===0||a===1&&s===i-1&&s===r+1?"":t.slice(s,i)}function Pm(...t){let e=-1,i;for(;++e0&&t.charCodeAt(t.length-1)===47&&(i+="/"),e?"/"+i:i}function km(t,e){let i="",r=0,s=-1,a=0,n=-1,p,o;for(;++n<=t.length;){if(n2){if(o=i.lastIndexOf("/"),o!==i.length-1){o<0?(i="",r=0):(i=i.slice(0,o),r=i.length-1-i.lastIndexOf("/")),s=n,a=0;continue}}else if(i.length>0){i="",r=0,s=n,a=0;continue}}e&&(i=i.length>0?i+"/..":"..",r=2);}else i.length>0?i+="/"+t.slice(s+1,n):i=t.slice(s+1,n),r=n-s-1;s=n,a=0;}else p===46&&a>-1?a++:a=-1;}return i}function Tn(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function Am(){return "/"}function Mh(t){return t!==null&&typeof t=="object"&&t.href&&t.origin}function Cm(t){if(typeof t=="string")t=new URL(t);else if(!Mh(t)){let e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){let e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return wm(t)}function wm(t){if(t.hostname!==""){let r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}let e=t.pathname,i=-1;for(;++i{if(F||!B||!G)w(F);else {let it=a.stringify(B,G);it==null||(Lm(it)?G.value=it:G.result=it),w(F,G);}});function w(F,B){F||!B?y(F):u?u(B):E(null,B);}}}function v(m){let E;a.freeze(),Eh("processSync",a.Parser),Ah("processSync",a.Compiler);let c=An(m);return a.process(c,u),Cp("processSync","process",E),c;function u(y){E=!0,_p(y);}}}function Ep(t,e){return typeof t=="function"&&t.prototype&&(Fm(t.prototype)||e in t.prototype)}function Fm(t){let e;for(e in t)if(Rp.call(t,e))return !0;return !1}function Eh(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `Parser`")}function Ah(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `Compiler`")}function Ch(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ap(t){if(!wh(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Cp(t,e,i){if(!i)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function An(t){return Im(t)?t:new Tm(t)}function Im(t){return !!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function Lm(t){return typeof t=="string"||(0, dm.default)(t)}var wp,xd,Tp,Pd,Sd,fp,Mp,xa,Ed,Ad,cp,up,Cd,wd,Td,Md,Dd,sn,Dp,Rd,Od,dp,Di,Qt,Cn,mt,We,ie,ut,he,wn,de,xh,mp,_a,gs,Fp,Xe,Bd,Ip,zd,Nd,Gd,jd,Hd,qd,$d,Wd,Ud,sa,Jd,Xd,Yd,Zd,Kd,Qd,yp,tm,go,gp,em,im,Lp,rm,sm,Vp,vp,bp,am,nm,hm,lm,pm,cm,um,dm,xp,gm,vs,Ws,Em,Ph,Tm,Dm,Rp,Vm,zp=cr(()=>{ns();wp=ue((t,e)=>{var i=200,r="__lodash_hash_undefined__",s=800,a=16,n=9007199254740991,p="[object Arguments]",o="[object Array]",d="[object AsyncFunction]",g="[object Boolean]",f="[object Date]",l="[object Error]",b="[object Function]",v="[object GeneratorFunction]",m="[object Map]",E="[object Number]",c="[object Null]",u="[object Object]",y="[object Proxy]",P="[object RegExp]",w="[object Set]",F="[object String]",B="[object Undefined]",G="[object WeakMap]",it="[object ArrayBuffer]",ft="[object DataView]",ct="[object Float32Array]",dt="[object Float64Array]",Pt="[object Int8Array]",tt="[object Int16Array]",vt="[object Int32Array]",D="[object Uint8Array]",O="[object Uint8ClampedArray]",k="[object Uint16Array]",L="[object Uint32Array]",K=/[\\^$.*+?()[\]{}|]/g,U=/^\[object .+?Constructor\]$/,Ht=/^(?:0|[1-9]\d*)$/,It={};It[ct]=It[dt]=It[Pt]=It[tt]=It[vt]=It[D]=It[O]=It[k]=It[L]=!0,It[p]=It[o]=It[it]=It[g]=It[ft]=It[f]=It[l]=It[b]=It[m]=It[E]=It[u]=It[P]=It[w]=It[F]=It[G]=!1;var Gt=typeof global=="object"&&global&&global.Object===Object&&global,Ot=typeof self=="object"&&self&&self.Object===Object&&self,ee=Gt||Ot||Function("return this")(),ae=typeof t=="object"&&t&&!t.nodeType&&t,le=ae&&typeof e=="object"&&e&&!e.nodeType&&e,ye=le&&le.exports===ae,ce=ye&&Gt.process,Xt=function(){try{var Bt=le&&le.require&&le.require("util").types;return Bt||ce&&ce.binding&&ce.binding("util")}catch{}}(),pe=Xt&&Xt.isTypedArray;function Wt(Bt,Yt,se){switch(se.length){case 0:return Bt.call(Yt);case 1:return Bt.call(Yt,se[0]);case 2:return Bt.call(Yt,se[0],se[1]);case 3:return Bt.call(Yt,se[0],se[1],se[2])}return Bt.apply(Yt,se)}function Nt(Bt,Yt){for(var se=-1,xe=Array(Bt);++se-1}function kr(Bt,Yt){var se=this.__data__,xe=Kr(se,Bt);return xe<0?(++this.size,se.push([Bt,Yt])):se[xe][1]=Yt,this}Ne.prototype.clear=Qi,Ne.prototype.delete=hi,Ne.prototype.get=gr,Ne.prototype.has=qe,Ne.prototype.set=kr;function ge(Bt){var Yt=-1,se=Bt==null?0:Bt.length;for(this.clear();++Yt1?se[Fe-1]:void 0,Ve=Fe>2?se[2]:void 0;for(Re=Bt.length>3&&typeof Re=="function"?(Fe--,Re):void 0,Ve&&tr(se[0],se[1],Ve)&&(Re=Fe<3?void 0:Re,Fe=1),Yt=Object(Yt);++xe-1&&Bt%1==0&&Bt0){if(++Yt>=s)return arguments[0]}else Yt=0;return Bt.apply(void 0,arguments)}}function vr(Bt){if(Bt!=null){try{return re.call(Bt)}catch{}try{return Bt+""}catch{}}return ""}function Ur(Bt,Yt){return Bt===Yt||Bt!==Bt&&Yt!==Yt}var Cr=ei(function(){return arguments}())?ei:function(Bt){return br(Bt)&&qt.call(Bt,"callee")&&!Lr.call(Bt,"callee")},cs=Array.isArray;function Os(Bt){return Bt!=null&&Li(Bt.length)&&!us(Bt)}function Bs(Bt){return br(Bt)&&Os(Bt)}var wr=Xs||Ba;function us(Bt){if(!Tr(Bt))return !1;var Yt=li(Bt);return Yt==b||Yt==v||Yt==d||Yt==y}function Li(Bt){return typeof Bt=="number"&&Bt>-1&&Bt%1==0&&Bt<=n}function Tr(Bt){var Yt=typeof Bt;return Bt!=null&&(Yt=="object"||Yt=="function")}function br(Bt){return Bt!=null&&typeof Bt=="object"}function hr(Bt){if(!br(Bt)||li(Bt)!=u)return !1;var Yt=Yi(Bt);if(Yt===null)return !0;var se=qt.call(Yt,"constructor")&&Yt.constructor;return typeof se=="function"&&se instanceof se&&re.call(se)==be}var ts=pe?Le(pe):Gi;function ds(Bt){return je(Bt,zs(Bt))}function zs(Bt){return Os(Bt)?Ys(Bt,!0):bi(Bt)}var Ra=Rs(function(Bt,Yt,se){ar(Bt,Yt,se);});function Oa(Bt){return function(){return Bt}}function ua(Bt){return Bt}function Ba(){return !1}e.exports=Ra;}),xd=ue(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e="[",i="]",r="{",s="}",a=":",n=",",p="true",o="false",d="null",g='"',f=new Map([["t",p],["f",o],["n",d]]),l=new Map([[g,g],["\\","\\"],["/","/"],["b","\b"],["n",` +`],["f","\f"],["r","\r"],["t"," "]]),b=new Map([[e,"Punctuator"],[i,"Punctuator"],[r,"Punctuator"],[s,"Punctuator"],[a,"Punctuator"],[n,"Punctuator"],[p,"Boolean"],[o,"Boolean"],[d,"Null"]]),v=class extends Error{constructor(Ot,{line:ee,column:ae,index:le}){super(`${Ot} (${ee}:${ae})`),this.line=ee,this.column=ae,this.index=le;}},m=class extends v{constructor(Ot,ee){super(`Unexpected character ${Ot} found.`,ee);}},E=class extends v{constructor(Ot){super(`Unexpected token ${Ot.type}(${Ot.value}) found.`,Ot.loc.start);}},c=class extends v{constructor(Ot){super("Unexpected end of input found.",Ot);}},u='"',y="/",P="*",w={comments:!1,ranges:!1};function F(Ot){return /[\s\n]/.test(Ot)}function B(Ot){return Ot>="0"&&Ot<="9"}function G(Ot){return B(Ot)||/[a-f]/i.test(Ot)}function it(Ot){return Ot>="1"&&Ot<="9"}function ft(Ot){return /[tfn]/.test(Ot)}function ct(Ot){return B(Ot)||Ot==="."||Ot==="-"}function dt(Ot,ee){ee=Object.freeze({...w,...ee});let ae=-1,le=1,ye=0,ce=!1,Xt=[];function pe(re,qt,ne,oe){let be=ne.offset+qt.length,ze=ee.ranges?{range:[ne.offset,be]}:void 0;return {type:re,value:qt,loc:{start:ne,end:oe||{line:ne.line,column:ne.column+qt.length,offset:be}},...ze}}function Wt(){let re=Ot.charAt(++ae);return ce?(le++,ye=1,ce=!1):ye++,re==="\r"?(ce=!0,Ot.charAt(ae+1)===` +`&&ae++):re===` +`&&(ce=!0),re}function Nt(){return {line:le,column:ye,offset:ae}}function Le(re){let qt=f.get(re);if(Ot.slice(ae,ae+qt.length)===qt)return ae+=qt.length-1,ye+=qt.length-1,{value:qt,c:Wt()};for(let ne=1;ne=0;){ae+=ee.slice(ye,le);let ce=ee.charAt(le+1);if(l.has(ce))ae+=l.get(ce),ye=le+2;else if(ce==="u"){let Xt=ee.slice(le+2,le+6);if(Xt.length<4||/[^0-9a-f]/i.test(Xt))throw new v(`Invalid unicode escape \\u${Xt}.`,{line:Ot.loc.start.line,column:Ot.loc.start.column+le,offset:Ot.loc.start.offset+le});ae+=String.fromCharCode(parseInt(Xt,16)),ye=le+6;}else throw new v(`Invalid escape \\${ce}.`,{line:Ot.loc.start.line,column:Ot.loc.start.column+le,offset:Ot.loc.start.offset+le});le=ee.indexOf("\\",ye);}return ae+=ee.slice(ye),ae}function D(Ot){switch(Ot.type){case"Boolean":return Ot.value==="true";case"Number":return Number(Ot.value);case"Null":return null;case"String":return vt(Ot)}}function O(Ot,ee){ee=Object.freeze({...tt,...ee});let ae=dt(Ot,{comments:!!ee.comments,ranges:!!ee.ranges}),le=0;function ye(){return ae[le++]}function ce(){let qt=ae[le++];return qt&&qt.type.endsWith("Comment")?ce():qt}let Xt=ee.comments?ce:ye;function pe(qt,ne){if(!qt||qt.value!==ne)throw new E(qt)}function Wt(qt,ne){if(!qt||qt.type!==ne)throw new E(qt)}function Nt(qt,ne){return ee.ranges?{range:[qt.offset,ne.offset]}:void 0}function Le(qt){let ne=Nt(qt.loc.start,qt.loc.end);return {type:qt.type,value:D(qt),loc:{start:{...qt.loc.start},end:{...qt.loc.end}},...ne}}function He(qt){Wt(qt,"String");let ne=Le(qt);qt=Xt(),pe(qt,":");let oe=Te(),be=Nt(ne.loc.start,oe.loc.end);return Pt.member(ne,oe,{loc:{start:{...ne.loc.start},end:{...oe.loc.end}},...be})}function Be(qt){pe(qt,"{");let ne=[],oe=Xt();if(oe&&oe.value!=="}")do if(ne.push(He(oe)),oe=Xt(),oe.value===",")oe=Xt();else break;while(oe);pe(oe,"}");let be=Nt(qt.loc.start,oe.loc.end);return Pt.object(ne,{loc:{start:{...qt.loc.start},end:{...oe.loc.end}},...be})}function we(qt){pe(qt,"[");let ne=[],oe=Xt();if(oe&&oe.value!=="]")do if(ne.push(Te(oe)),oe=Xt(),oe.value===",")oe=Xt();else break;while(oe);pe(oe,"]");let be=Nt(qt.loc.start,oe.loc.end);return Pt.array(ne,{type:"Array",elements:ne,loc:{start:{...qt.loc.start},end:{...oe.loc.end}},...be})}function Te(qt){switch(qt=qt||Xt(),qt.type){case"String":case"Boolean":case"Number":case"Null":return Le(qt);case"Punctuator":if(qt.value==="{")return Be(qt);if(qt.value==="[")return we(qt);default:throw new E(qt)}}let Me=Te(),me=Xt();if(me)throw new E(me);let re={loc:{start:{line:1,column:1,offset:0},end:{...Me.loc.end}}};return ee.tokens&&(re.tokens=ae),ee.ranges&&(re.range=Nt(re.loc.start,re.loc.end)),Pt.document(Me,re)}var k=new Map([["Document",["body"]],["Object",["members"]],["Member",["name","value"]],["Array",["elements"]],["String",[]],["Number",[]],["Boolean",[]],["Null",[]]]);function L(Ot){return Ot&&typeof Ot=="object"}function K(Ot){return L(Ot)&&typeof Ot.type=="string"}function U(Ot,ee){function ae(le,ye){typeof ee.enter=="function"&&ee.enter(le,ye);for(let ce of k.get(le.type)){let Xt=le[ce];L(Xt)&&(Array.isArray(Xt)?Xt.forEach(pe=>ae(pe,le)):K(Xt)&&ae(Xt,le));}typeof ee.exit=="function"&&ee.exit(le,ye);}ae(Ot);}function Ht(Ot,ee=()=>!0){let ae=[];return U(Ot,{enter(le,ye){ae.push({node:le,parent:ye,phase:"enter"});},exit(le,ye){ae.push({node:le,parent:ye,phase:"exit"});}}),ae.filter(ee).values()}function It(Ot){switch(Ot.type){case"String":case"Number":case"Boolean":return Ot.value;case"Null":return null;case"Array":return Ot.elements.map(It);case"Object":{let ee={};return Ot.members.forEach(ae=>{ee[It(ae.name)]=It(ae.value);}),ee}case"Document":return It(Ot.body);case"Property":throw new Error("Cannot evaluate object property outside of an object.");default:throw new Error(`Unknown node type ${Ot.type}.`)}}function Gt(Ot,{indent:ee=0}={}){let ae=It(Ot);return JSON.stringify(ae,null,ee)}t.evaluate=It,t.iterator=Ht,t.parse=O,t.print=Gt,t.tokenize=dt,t.traverse=U,t.types=Pt;}),Tp=ue((t,e)=>{e.exports=function(i){return i!=null&&i.constructor!=null&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)};}),Pd=ue((t,e)=>{var i=Object.prototype.hasOwnProperty,r=Object.prototype.toString,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,n=function(g){return typeof Array.isArray=="function"?Array.isArray(g):r.call(g)==="[object Array]"},p=function(g){if(!g||r.call(g)!=="[object Object]")return !1;var f=i.call(g,"constructor"),l=g.constructor&&g.constructor.prototype&&i.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!f&&!l)return !1;var b;for(b in g);return typeof b>"u"||i.call(g,b)},o=function(g,f){s&&f.name==="__proto__"?s(g,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):g[f.name]=f.newValue;},d=function(g,f){if(f==="__proto__")if(i.call(g,f)){if(a)return a(g,f).value}else return;return g[f]};e.exports=function g(){var f,l,b,v,m,E,c=arguments[0],u=1,y=arguments.length,P=!1;for(typeof c=="boolean"&&(P=c,c=arguments[1]||{},u=2),(c==null||typeof c!="object"&&typeof c!="function")&&(c={});uxa("primitive",{value:kd(t),...e}),Ad=(t,e)=>xa("key",{...e},t),cp=(t,e,i)=>xa("object",{title:t,...i},[...uo(e)]),up=(t,e,i)=>xa("array",{title:t,...i},[...uo(e)]),Cd=(t,e,i,r)=>xa("attribute",{key:t,title:e,...r},mo(i)),wd=(t,e,i,r)=>xa("element",{key:t,title:e,...r},mo(i)),Td=(t,e,i,r)=>xa("collection",{key:t,title:e,...r},mo(i)),Md=(t,e)=>xa("root",{title:Mp.object.animation,hasExpressions:!1,...e},[...uo(t)]),Dd=as(wp(),1),sn=function t(e,i,r,s,a){let n=Dp(i);if(r!=null&&(typeof r!="number"||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(s!=null&&(!t(s)||!s.children))throw new Error("Expected parent node");if(s==null!=(r==null))throw new Error("Expected both parent and index");return e&&e.type&&typeof e.type=="string"?!!n.call(a,e,r,s):!1},Dp=function(t){if(t==null)return Vd;if(typeof t=="string")return Ld(t);if(typeof t=="object")return Array.isArray(t)?Fd(t):Id(t);if(typeof t=="function")return yo(t);throw new Error("Expected function, string, or object as test")};Rd=Object.defineProperty,Od=(t,e,i)=>e in t?Rd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,dp=(t,e,i)=>(Od(t,typeof e!="symbol"?e+"":e,i),i),{boolean:Di,collection:Qt,custom:Cn,element:mt,intBoolean:We,number:ie,object:ut,string:he}=Mp,wn=(t,e)=>({defaultTitle:`${t}-static`,dependents:[{key:"k",type:"Array",title:e,childType:"Object",parentTitle:t},{key:"a",type:"Constant",title:We.animated,parentTitle:{defaultValue:0,values:{0:`${t}-static`,1:t}}}]}),de={...wn(ut.animatedValue,Qt.keyframeList)},xh={...wn(ut.animatedShape,Qt.shapeKeyframeList)},mp={...wn(ut.animatedPosition,Qt.positionKeyframeList)},_a={...wn(ut.animatedColor,Qt.keyframeList)},gs={...wn(ut.animatedMultidimensional,Qt.keyframeList)},Fp={[Qt.composition]:{defaultTitle:ut.layerPrecomposition,dependents:[{key:"ty",type:"Constant",title:ie.layerType,parentTitle:{prefix:"layer",defaultValue:0,values:{0:"precomposition",1:"solid-color",2:"image",3:"null",4:"shape",5:"text",6:"audio",7:"video-placeholder",8:"image-sequence",9:"video",10:"image-placeholder",11:"guide",12:"adjustment",13:"camera",14:"light",15:"data"}}}]},[Qt.shapeList]:{defaultTitle:ut.shapeRectangle,dependents:[{key:"ty",type:"Constant",title:he.shapeType,parentTitle:{prefix:"shape",defaultValue:"rc",values:{rc:"rectangle",el:"ellipse",sr:"star",sh:"path",fl:"fill",st:"stroke",gf:"gradient-fill",gs:"gradient-stroke",gr:"group",tr:"transform",rd:"rounded-corners",pb:"pucker-bloat",mm:"merge",tw:"twist",op:"offset-path",zz:"zig-zag","":"modifier",rp:"repeater",tm:"trim"}}},{key:"sy",type:"Constant",title:ie.shapePolygonStarType,parentTitle:{prefix:"shape",defaultValue:1,values:{1:"star",2:"polygon"}}}]},assets:{defaultTitle:ut.assetPrecomposition,dependents:[{key:"w",type:"Number",title:ie.width,parentTitle:ut.assetImage},{key:"h",type:"Number",title:ie.height,parentTitle:ut.assetImage},{key:"t",type:"Constant",title:he.assetType,parentTitle:{prefix:"asset",defaultValue:"seq",values:{seq:"image",3:"data-source"}}},{key:"layers",type:"Array",title:Qt.composition,parentTitle:ut.assetPrecomposition},{key:"mn",type:"String",title:he.matchName,parentTitle:ut.assetPrecomposition},{key:"fr",type:"Number",title:ie.framerate,parentTitle:ut.assetPrecomposition},{key:"xt",type:"Number",title:We.extraComposition,parentTitle:ut.assetPrecomposition}]},[Qt.effectList]:{defaultTitle:ut.effectCustom,dependents:[{key:"ty",type:"Constant",title:ie.effectType,parentTitle:{prefix:"effect",defaultValue:5,values:{25:"drop-shadow",21:"fill",29:"gaussian-blur",28:"matte3",24:"pro-levels",22:"stroke",20:"tint",23:"tritone",26:"radial-wipe",32:"wavy",34:"puppet",33:"spherize",7:"paint-over-transparent",31:"mesh-warp",27:"displacement-map",5:"custom"}}}]},[Qt.effectParameters]:{defaultTitle:ut.effectValueSlider,dependents:[{key:"ty",type:"Constant",title:ie.effectValueType,parentTitle:{defaultValue:0,prefix:"effect-value",values:{4:"checkbox",2:"color",7:"dropdown",6:"ignored",10:"layer",3:"point",0:"slider",1:"angle"}}}]},[Qt.layerStyleList]:{defaultTitle:ut.layerStyleStroke,dependents:[{key:"ty",type:"Constant",title:ie.layerStyleType,parentTitle:{prefix:Qt.layerStyle,defaultValue:0,values:{0:"stroke",1:"drop-shadow",2:"inner-shadow",3:"outer-glow",4:"inner-glow",5:"bevel-emboss",6:"satin",7:"color-overlay",8:"gradient-overlay"}}}]},[mt.animatedPositionProp]:{...mp},[mt.animatedShapeProp]:{...xh},[mt.animatedShapeBezier]:{defaultTitle:ut.bezier},[mt.animatedColorProp]:{..._a},[mt.animatedMultidimensionalProp]:{...gs},[mt.anchorPoint]:{...mp},[Qt.keyframeList]:{defaultTitle:ut.keyframe},[Qt.keyframeValue]:{defaultTitle:ut.bezier},[Qt.keyframeEndValue]:{defaultTitle:ut.bezier},[Qt.positionKeyframeList]:{defaultTitle:ut.positionKeyframe},[mt.inTangent]:{defaultTitle:ut.keyframeBezierHandle},[mt.outTangent]:{defaultTitle:ut.keyframeBezierHandle},[mt.translation]:{defaultTitle:ut.animatedPositionStatic,dependents:[{key:"k",type:"Array",title:Qt.positionKeyframeList,childType:"Object",parentTitle:ut.animatedPosition},{key:"a",type:"Constant",title:We.animated,parentTitle:{defaultValue:0,values:{0:ut.animatedPositionStatic,1:ut.animatedPosition}}},{key:"s",type:"Boolean",title:Di.splitEnabled,parentTitle:ut.splitVector},{key:"x",type:"Object",title:mt.animatedValueProp,parentTitle:ut.splitVector},{key:"y",type:"Object",title:mt.animatedValueProp,parentTitle:ut.splitVector},{key:"z",type:"Object",title:mt.animatedValueProp,parentTitle:ut.splitVector}]},[mt.scale]:{...gs},[mt.rotationClockwise]:{...de},[mt.polygonRotationClockwise]:{...de},[mt.rotationX]:{...de},[mt.rotationY]:{...de},[mt.rotationZ]:{...de},[mt.skew]:{...de},[mt.skewAxis]:{...de},[mt.orientation]:{...gs},[mt.size]:{...gs},[mt.rounded]:{...de},[mt.level]:{...gs},[mt.shapeEllipseSize]:{...gs},[mt.startPoint]:{...gs},[mt.endPoint]:{...gs},[mt.splitX]:{...de},[mt.splitY]:{...de},[mt.splitZ]:{...de},[mt.effectValueAngleValue]:{...de},[mt.effectValueCheckboxValue]:{...de},[mt.effectValueColorValue]:{..._a},[mt.effectValueDropdownValue]:{...de},[mt.effectValueLayerValue]:{...de},[mt.effectValuePointValue]:{...gs},[mt.effectValueSliderValue]:{...de},[mt.opacity]:{...de},[mt.transformOpacity]:{...de},[mt.maskOpacity]:{...de},[mt.timeRemapping]:{...de},[mt.dilate]:{...de},[mt.perspective]:{...de},[mt.highlightLength]:{...de},[mt.highlightAngle]:{...de},[ut.strokeDashDefault]:{...de},[mt.miterLimitAlternative]:{...de},[mt.strokeWidth]:{...de},[mt.outerRadius]:{...de},[mt.outerRoundness]:{...de},[mt.points]:{...de},[mt.innerRadius]:{...de},[mt.innerRoundness]:{...de},[mt.amount]:{...de},[mt.copies]:{...de},[mt.offset]:{...de},[mt.radius]:{...de},[Qt.shapeKeyframeList]:{defaultTitle:ut.shapeKeyframe},[Qt.shapeKeyframeStart]:{defaultTitle:ut.bezier},[ut.animatedShapeStatic]:{defaultTitle:ut.bezier},[mt.shapeTrimStart]:{...de},[mt.shapeTrimEnd]:{...de},[mt.angle]:{...de},[mt.miterLimit]:{...de},[mt.roundness]:{...de},[mt.shapeZigZagSize]:{...de},[ut.layerStyleChokeSpread]:{...de},[mt.chokeSpread]:{...de},[mt.layerStyleBlendMode]:{...de},[mt.blurSize]:{...de},[mt.noise]:{...de},[mt.distance]:{...de},[mt.layerStyleColor]:{..._a},[mt.layerConceal]:{...de},[mt.range]:{...de},[mt.jitter]:{...de},[mt.source]:{...de},[mt.strength]:{...de},[mt.bevelStyle]:{...de},[mt.technique]:{...de},[mt.soften]:{...de},[mt.globalAngle]:{...de},[mt.altitude]:{...de},[mt.highlightMode]:{...de},[mt.highlightColor]:{...de},[mt.highlightOpacity]:{...de},[mt.shadowMode]:{...de},[mt.shadowColor]:{..._a},[mt.shadowOpacity]:{...de},[mt.invert]:{...de},[mt.smoothness]:{...de},[mt.reverse]:{...de},[mt.align]:{...de},[ut.gradientOverlay]:{...de},[mt.firstMargin]:{...de},[mt.lastMargin]:{...de},[mt.reversePath]:{...de},[mt.forceAlignment]:{...de},[mt.perpendicularToPath]:{...de},[mt.strokeWidth]:{...de},[mt.strokeHue]:{...de},[mt.strokeSaturation]:{...de},[mt.strokeBrightness]:{...de},[mt.strokeOpacity]:{...de},[mt.strokeHue]:{...de},[mt.fillColor]:{..._a},[mt.fillHue]:{...de},[mt.fillSaturation]:{...de},[mt.fillOpacity]:{...de},[mt.fillBrightness]:{...de},[mt.letterSpacing]:{...de},[mt.blur]:{...de},[mt.lineSpacing]:{...de},[mt.minEase]:{...de},[mt.maxEase]:{...de},[mt.maxAmount]:{...de},[mt.textSelectorStart]:{...de},[mt.textSelectorEnd]:{...de},[mt.shape]:{...xh},[mt.maskVertices]:{...xh},[mt.shapeFillColor]:{..._a},[mt.shapeStrokeColor]:{...gs},[Qt.documentStrokeColor]:{..._a},[Qt.documentFillColor]:{..._a},[mt.center]:{...gs},[mt.textGroupAlignment]:{...gs},[Qt.masksProperties]:{defaultTitle:ut.mask},[Qt.textFontList]:{defaultTitle:ut.textFont},[mt.startOpacity]:{...de},[ut.endOpacity]:{...de},[Qt.strokeDashList]:{defaultTitle:ut.strokeDashDefault,dependents:[{key:"n",type:"Constant",title:he.strokeDashType,parentTitle:{prefix:"stroke-dash",defaultValue:"d",values:{d:"default",g:"gap",o:"offset"}}}]},[mt.strokeLength]:{...de},[Qt.markers]:{defaultTitle:ut.marker},[mt.textCharacterData]:{defaultTitle:ut.characterShapes,dependents:[{key:"shapes",type:"Array",title:Qt.shapeList,parentTitle:ut.characterShapes},{key:"refId",type:"String",title:he.referenceId,parentTitle:ut.characterPrecomp},{key:"ks",type:"Object",title:mt.layerTransform,parentTitle:ut.characterPrecomp},{key:"ip",type:"Number",title:ie.inPoint,parentTitle:ut.characterPrecomp},{key:"op",type:"Number",title:ie.outPoint,parentTitle:ut.characterPrecomp},{key:"sr",type:"Number",title:ie.timeStretch,parentTitle:ut.characterPrecomp},{key:"st",type:"Number",title:ie.timeStart,parentTitle:ut.characterPrecomp}]},[Qt.textDocumentKeyframes]:{defaultTitle:ut.textDocumentKeyframe},[Qt.textRanges]:{defaultTitle:ut.textRange}},Xe=(t,e,i="ty")=>{var r,s;let a=(s=(r=Fp[t])==null?void 0:r.dependents)==null?void 0:s.find(f=>f.key===i);if((a==null?void 0:a.type)!=="Constant")return {};let{prefix:n,values:p}=a.parentTitle,o=n?`${n}-`:"",d=Object.values(p),g={};for(let f of d)typeof f=="string"&&(g[o+f]=e);return g},Bd={},Ip=(t,e)=>{switch(t.type){case"Object":return Fp[e]||{defaultTitle:e};case"Array":return Bd[e]||{defaultTitle:e};default:throw new Error("The node.type has to be 'Array' or 'Object'")}},zd={required:{p:{[ut.assetImage]:he.filename,[ut.assetPrecomposition]:he.filename,[ut.assetDataSource]:he.filename},sc:{[ut.layerSolidColor]:he.hexColor},ch:{[Qt.textCharacters]:he.character},fName:{[ut.textFont]:he.fontName},fStyle:{[ut.textFont]:he.fontStyle},style:{[Qt.textCharacters]:he.fontStyle},fFamily:{[ut.textFont]:he.fontFamily,[Qt.textCharacters]:he.fontFamily},f:{[mt.textDocument]:he.fontFamily},t:{[mt.textDocument]:he.text}},known:{x:{[ut.animatedValue]:he.expression,[ut.animatedValueStatic]:he.expression,[ut.animatedShape]:he.expression,[ut.animatedShapeStatic]:he.expression,[ut.animatedPosition]:he.expression,[ut.animatedPositionStatic]:he.expression,[ut.animatedColor]:he.expression,[ut.animatedColorStatic]:he.expression,[ut.animatedMultidimensional]:he.expression,[ut.animatedMultidimensionalStatic]:he.expression,[mt.textAnimatedDocument]:he.expression},v:{[ut.animation]:he.version},cm:{[ut.marker]:he.markerComment},a:{[mt.metadata]:he.author},k:{[mt.metadata]:he.keyword},d:{[mt.metadata]:he.description},tc:{[mt.metadata]:he.themeColor},g:{[mt.metadata]:he.generator},id:{[ut.assetImage]:he.id,[ut.assetPrecomposition]:he.id,[ut.assetDataSource]:he.id},refId:{[ut.layerAudio]:he.idSound,[ut.layerPrecomposition]:he.idReference,[ut.layerImage]:he.idImage,[ut.layerData]:he.idDataSource,[ut.characterPrecomp]:he.idReference},u:{[ut.assetImage]:he.path,[ut.assetPrecomposition]:he.path,[ut.assetDataSource]:he.path},nm:{[ut.animation]:he.name,[ut.assetImage]:he.name,[ut.assetPrecomposition]:he.name,[ut.assetDataSource]:he.name,[ut.textRange]:he.name,[mt.transformRepeater]:he.name,[ut.animatedValue]:he.name,[ut.animatedValueStatic]:he.name,[ut.animatedShape]:he.name,[ut.animatedShapeStatic]:he.name,[ut.animatedPosition]:he.name,[ut.animatedPositionStatic]:he.name,[ut.animatedColor]:he.name,[ut.animatedColorStatic]:he.name,[ut.animatedMultidimensional]:he.name,[ut.animatedMultidimensionalStatic]:he.name,...Xe(Qt.effectParameters,he.name),...Xe(Qt.effectList,he.name),[ut.mask]:he.name,...Xe(Qt.composition,he.name),...Xe(Qt.shapeList,he.name),[ut.strokeDashDefault]:he.name,[ut.strokeDashGap]:he.name,[ut.strokeDashOffset]:he.name,[ut.layerStyleBevelEmboss]:he.name,[ut.layerStyleColorOverlay]:he.name,[ut.layerStyleDropShadow]:he.name,[ut.layerStyleGradientOverlay]:he.name,[ut.layerStyleInnerShadow]:he.name,[ut.layerStyleOuterGlow]:he.name,[ut.layerStyleSatin]:he.name,[ut.layerStyleStroke]:he.name,[mt.layerTransform]:he.name},mn:{[ut.animation]:he.matchName,[ut.animatedValue]:he.matchName,[ut.animatedValueStatic]:he.matchName,[ut.animatedShape]:he.matchName,[ut.animatedShapeStatic]:he.matchName,[ut.animatedPosition]:he.matchName,[ut.animatedPositionStatic]:he.matchName,[ut.animatedColor]:he.matchName,[ut.animatedColorStatic]:he.matchName,[ut.animatedMultidimensional]:he.matchName,[ut.animatedMultidimensionalStatic]:he.matchName,...Xe(Qt.effectParameters,he.matchName),...Xe(Qt.effectList,he.matchName),[ut.mask]:he.matchName,...Xe(Qt.composition,he.matchName),...Xe(Qt.shapeList,he.matchName),[ut.strokeDashDefault]:he.matchName,[ut.strokeDashGap]:he.matchName,[ut.strokeDashOffset]:he.matchName,[ut.layerStyleBevelEmboss]:he.name,[ut.layerStyleColorOverlay]:he.name,[ut.layerStyleDropShadow]:he.name,[ut.layerStyleGradientOverlay]:he.name,[ut.layerStyleInnerShadow]:he.name,[ut.layerStyleOuterGlow]:he.name,[ut.layerStyleSatin]:he.name,[ut.layerStyleStroke]:he.name,[mt.transformRepeater]:he.matchName},ln:{...Xe(Qt.composition,he.idLayerXml),...Xe(Qt.shapeList,he.idLayerXml)},cl:{...Xe(Qt.composition,he.cssClass),...Xe(Qt.shapeList,he.cssClass)},fPath:{[ut.textFont]:he.fontPath},fWeight:{[ut.textFont]:he.fontWeight},fClass:{[ut.textFont]:he.fontCssClass},tg:{...Xe(Qt.composition,he.layerXmlTagName)},t:{[ut.assetImage]:he.assetImageType}}},Nd={required:{ty:{...Xe(Qt.composition,ie.layerType),...Xe(Qt.shapeList,he.shapeType)}},known:{mode:{[ut.mask]:he.maskMode},n:{[ut.strokeDashDefault]:he.strokeDashType,[ut.strokeDashGap]:he.strokeDashType,[ut.strokeDashOffset]:he.strokeDashType},t:{[ut.assetImage]:he.assetImageType}}},Gd={required:{ip:{[ut.animation]:ie.inPoint,...Xe(Qt.composition,ie.inPoint)},op:{[ut.animation]:ie.outPoint,...Xe(Qt.composition,ie.outPoint),[ut.characterPrecomp]:ie.outPoint},p:{[mt.animatedGradientColors]:ie.count},k:{[ut.animatedValueStatic]:ie.staticValue,[ut.animatedMultidimensionalStatic]:ie.staticValue,[ut.animatedPositionStatic]:ie.staticValue,[ut.animatedValue]:ie.staticValue},w:{[ut.animation]:ie.width,[ut.assetImage]:ie.width,[ut.assetPrecomposition]:ie.width,[Qt.textCharacters]:ie.width,[ut.layerPrecomposition]:ie.width},sw:{[ut.layerSolidColor]:ie.width},h:{[ut.animation]:ie.height,[ut.assetImage]:ie.height,[ut.assetPrecomposition]:ie.height,[ut.layerPrecomposition]:ie.height},sh:{[ut.layerSolidColor]:ie.height},size:{[Qt.textCharacters]:ie.fontSize},ls:{[mt.textDocument]:ie.baselineShift},t:{[ut.keyframe]:ie.time,[Qt.keyframeList]:ie.time,[Qt.keyframeValue]:ie.time,[ut.positionKeyframe]:ie.time,[Qt.positionKeyframeList]:ie.time,[ut.keyframeBezierHandle]:ie.time,[ut.shapeKeyframe]:ie.time,[ut.textDocumentKeyframe]:ie.timeStart},s:{[mt.textDocument]:ie.fontSize}},known:{v:{[ut.effectValueIgnored]:ie.value},tm:{[ut.marker]:ie.markerTime},dr:{[ut.marker]:ie.markerDuration},sa:{[mt.motionBlur]:ie.shutterAngle},sp:{[mt.motionBlur]:ie.shutterPhase},spf:{[mt.motionBlur]:ie.samplesPerFrame},asl:{[mt.motionBlur]:ie.adaptiveSampleLimit},ix:{...Xe(Qt.shapeList,ie.propertyIndex),...Xe(Qt.effectList,ie.propertyIndex),...Xe(Qt.effectParameters,ie.propertyIndex),[ut.animatedValue]:ie.propertyIndex,[ut.animatedValueStatic]:ie.propertyIndex,[ut.animatedShape]:ie.propertyIndex,[ut.animatedShapeStatic]:ie.propertyIndex,[ut.animatedPosition]:ie.propertyIndex,[ut.animatedPositionStatic]:ie.propertyIndex,[ut.animatedColor]:ie.propertyIndex,[ut.animatedColorStatic]:ie.propertyIndex,[ut.animatedMultidimensional]:ie.propertyIndex,[ut.animatedMultidimensionalStatic]:ie.propertyIndex},ind:{...Xe(Qt.composition,ie.compositionIndex),[ut.shapePath]:ie.shapePathIndex,...Xe(Qt.effectParameters,ie.effectParametersIndex),...Xe(Qt.effectList,ie.effectListIndex)},cix:{...Xe(Qt.shapeList,ie.expressionPropertyIndex)},fr:{[ut.animation]:ie.framerate,[ut.assetPrecomposition]:ie.framerate},sr:{...Xe(Qt.composition,ie.timeStretch),[ut.characterPrecomp]:ie.timeStretch},st:{...Xe(Qt.composition,ie.timeStart),[ut.characterPrecomp]:ie.timeStart},l:{[ut.animatedMultidimensional]:ie.length,[ut.animatedMultidimensionalStatic]:ie.length,[ut.animatedPosition]:ie.length,[ut.animatedPositionStatic]:ie.length,[mt.translation]:ie.length},parent:{...Xe(Qt.composition,ie.parentIndex)},td:{[ut.layerPrecomposition]:ie.matteTarget,[ut.layerShape]:ie.matteTarget,[ut.layerSolidColor]:ie.matteTarget,[ut.layerImage]:ie.matteTarget,[ut.layerNull]:ie.matteTarget,[ut.layerText]:ie.matteTarget},ml:{[ut.shapeGradientStroke]:ie.miterLimitValue,[ut.shapeStroke]:ie.miterLimitValue},np:{[ut.shapeGroup]:ie.numberOfProperties,[mt.effectValueAngleValue]:ie.numberOfProperties,[mt.effectValueCheckboxValue]:ie.numberOfProperties,[mt.effectValueColorValue]:ie.numberOfProperties,[mt.effectValueDropdownValue]:ie.numberOfProperties,[mt.effectValueIgnoredValue]:ie.numberOfProperties,[mt.effectValueLayerValue]:ie.numberOfProperties,[mt.effectValuePointValue]:ie.numberOfProperties,[mt.effectValueSliderValue]:ie.numberOfProperties,[ut.effect]:ie.numberOfProperties,[Qt.effectList]:ie.numberOfProperties,[Qt.effectParameters]:ie.numberOfProperties,...Xe(Qt.effectList,ie.numberOfProperties),...Xe(Qt.effectParameters,ie.numberOfProperties)},mm:{[ut.shapeMerge]:ie.mergeMode},ip:{[ut.characterPrecomp]:ie.inPoint},ascent:{[ut.textFont]:ie.ascent},r:{[mt.textSelector]:ie.rangeUnits},lh:{[mt.textDocument]:ie.lineHeight},tr:{[mt.textDocument]:ie.textTracking},ls:{[mt.textDocument]:ie.baselineShift}}},jd={required:{ty:{...Xe(Qt.composition,ie.layerType),...Xe(Qt.layerStyleList,ie.layerStyleType),...Xe(Qt.effectParameters,ie.effectType),...Xe(Qt.effectList,ie.effectType)},bm:{...Xe(Qt.composition,ie.blendMode),...Xe(Qt.shapeList,ie.blendMode)},d:{[ut.shapeEllipse]:ie.shapeDirection,[ut.shapePath]:ie.shapeDirection,[ut.shapePolygon]:ie.shapeDirection,[ut.shapeStar]:ie.shapeDirection,[ut.shapeRectangle]:ie.shapeDirection},t:{[ut.assetDataSource]:ie.dataSourceType},origin:{[ut.textFont]:ie.textType},b:{[mt.textSelector]:ie.basedOn},sh:{[mt.textSelector]:ie.textTypeShape}},known:{tt:{[ut.layerPrecomposition]:ie.matteMode,[ut.layerShape]:ie.matteMode,[ut.layerSolidColor]:ie.matteMode,[ut.layerImage]:ie.matteMode,[ut.layerNull]:ie.matteMode,[ut.layerText]:ie.matteMode},m:{[ut.shapeRepeater]:ie.composite,[ut.shapeTrim]:ie.multiple,[mt.textFollowPath]:ie.textMask},r:{[ut.shapeFill]:ie.fillRuleValue,[ut.shapeGradientFill]:ie.fillRuleValue},t:{[ut.shapeGradientFill]:ie.gradientType,[ut.shapeGradientStroke]:ie.gradientType},gt:{[ut.layerStyleGradientOverlay]:ie.gradientType},lc:{[ut.shapeGradientStroke]:ie.lineCapType,[ut.shapeStroke]:ie.lineCapType},lj:{[ut.shapeGradientStroke]:ie.lineJoinType,[ut.shapeStroke]:ie.lineJoinType,[ut.shapeOffsetPath]:ie.lineJoin},sy:{[ut.shapePolygon]:ie.shapePolygonStarType,[ut.shapeStar]:ie.shapePolygonStarType},g:{[mt.textAlignmentOptions]:ie.textTypeGrouping},j:{[mt.textDocument]:ie.textTypeJustify},ca:{[mt.textDocument]:ie.textTypeCaps},vj:{[mt.textDocument]:ie.textTypeVerticalJustify}}},Hd={required:{},known:{}},qd={required:{x:{[ut.keyframe]:We.xAxisValue,[Qt.keyframeList]:We.xAxisValue,[Qt.keyframeValue]:We.xAxisValue,[ut.positionKeyframe]:We.xAxisValue,[Qt.positionKeyframeList]:We.xAxisValue,[ut.keyframeBezierHandle]:We.xAxisValue},y:{[ut.keyframe]:We.yAxisValue,[Qt.keyframeList]:We.yAxisValue,[Qt.keyframeValue]:We.yAxisValue,[ut.positionKeyframe]:We.yAxisValue,[Qt.positionKeyframeList]:We.yAxisValue,[ut.keyframeBezierHandle]:We.yAxisValue},t:{[mt.textSelector]:We.expressible}},known:{rn:{[mt.textSelector]:We.randomize},ddd:{[ut.animation]:We.threedimensional,...Xe(Qt.composition,We.threedimensional)},ao:{[ut.layerPrecomposition]:We.autoOrient,[ut.layerShape]:We.autoOrient,[ut.layerSolidColor]:We.autoOrient,[ut.layerImage]:We.autoOrient,[ut.layerNull]:We.autoOrient,[ut.layerText]:We.autoOrient},a:{[ut.animatedValue]:We.animated,[ut.animatedValueStatic]:We.animated,[ut.animatedShape]:We.animated,[ut.animatedShapeStatic]:We.animated,[ut.animatedPosition]:We.animated,[ut.animatedPositionStatic]:We.animated,[ut.animatedColor]:We.animated,[ut.animatedColorStatic]:We.animated,[ut.animatedMultidimensional]:We.animated,[ut.animatedMultidimensionalStatic]:We.animated},e:{[ut.assetImage]:We.embedded,[ut.assetDataSource]:We.embedded},en:{...Xe(Qt.effectList,We.enabled)},xt:{[ut.assetPrecomposition]:We.extraComposition},h:{[ut.keyframe]:We.hold,[Qt.keyframeList]:We.hold,[Qt.keyframeValue]:We.hold,[ut.positionKeyframe]:We.hold,[Qt.positionKeyframeList]:We.hold,[ut.keyframeBezierHandle]:We.hold,[ut.shapeKeyframe]:We.hold}}},$d={required:{s:{[ut.splitVector]:Di.splitEnabled}},known:{c:{[ut.bezier]:Di.closed},inv:{[ut.mask]:Di.inverted},hd:{...Xe(Qt.composition,Di.hidden),...Xe(Qt.shapeList,Di.hidden)},cp:{[ut.layerPrecomposition]:Di.collapseTransform,[ut.layerShape]:Di.collapseTransform,[ut.layerSolidColor]:Di.collapseTransform,[ut.layerImage]:Di.collapseTransform,[ut.layerNull]:Di.collapseTransform,[ut.layerText]:Di.collapseTransform},hasMask:{[ut.layerPrecomposition]:Di.hasMask,[ut.layerShape]:Di.hasMask,[ut.layerSolidColor]:Di.hasMask,[ut.layerImage]:Di.hasMask,[ut.layerNull]:Di.hasMask,[ut.layerText]:Di.hasMask},mb:{[ut.layerPrecomposition]:Di.motionBlurEnabled,[ut.layerShape]:Di.motionBlurEnabled,[ut.layerSolidColor]:Di.motionBlurEnabled,[ut.layerImage]:Di.motionBlurEnabled,[ut.layerNull]:Di.motionBlurEnabled,[ut.layerText]:Di.motionBlurEnabled},of:{[mt.textDocument]:Di.strokeOverFill}}},Wd={required:{assets:{[ut.animation]:Qt.assets},layers:{[ut.animation]:Qt.composition,[ut.assetPrecomposition]:Qt.composition},shapes:{[ut.layerShape]:Qt.shapeList,[ut.characterShapes]:Qt.shapeList},ef:{[ut.effect]:Qt.effectParameters,...Xe(Qt.effectList,Qt.effectParameters)},i:{[ut.bezier]:Qt.inTangents},o:{[ut.bezier]:Qt.outTangents},v:{[ut.bezier]:Qt.vertices},k:{[mt.textAnimatedDocument]:Qt.textDocumentKeyframes,[ut.animatedValue]:Qt.keyframeList,[ut.animatedValueStatic]:Qt.staticValues,[ut.animatedMultidimensional]:Qt.keyframeList,[ut.animatedMultidimensionalStatic]:Qt.staticValues,[ut.animatedPosition]:Qt.positionKeyframeList,[ut.animatedPositionStatic]:Qt.staticValues,[ut.animatedColor]:Qt.keyframeList,[ut.animatedShape]:Qt.shapeKeyframeList,[ut.animatedColorStatic]:Qt.colorRgba},a:{[mt.textAnimatorData]:Qt.textRanges},x:{[ut.keyframeBezierHandle]:Qt.xAxis},y:{[ut.keyframeBezierHandle]:Qt.yAxis},s:{[ut.shapeKeyframe]:Qt.shapeKeyframeStart},fc:{[mt.textDocument]:Qt.documentFillColor}},known:{k:{[mt.metadata]:Qt.keywords},comps:{[ut.animation]:Qt.extraCompositions},chars:{[ut.animation]:Qt.textCharacters},markers:{[ut.animation]:Qt.markers},masksProperties:{[ut.layerPrecomposition]:Qt.masksProperties,[ut.layerShape]:Qt.masksProperties,[ut.layerSolidColor]:Qt.masksProperties,[ut.layerImage]:Qt.masksProperties,[ut.layerNull]:Qt.masksProperties,[ut.layerText]:Qt.masksProperties},ef:{[ut.layerPrecomposition]:Qt.effectList,[ut.layerShape]:Qt.effectList,[ut.layerSolidColor]:Qt.effectList,[ut.layerImage]:Qt.effectList,[ut.layerNull]:Qt.effectList,[ut.layerText]:Qt.effectList},sy:{[ut.layerPrecomposition]:Qt.layerStyle,[ut.layerShape]:Qt.layerStyle,[ut.layerSolidColor]:Qt.layerStyle,[ut.layerImage]:Qt.layerStyle,[ut.layerNull]:Qt.layerStyle,[ut.layerText]:Qt.layerStyle},d:{[ut.shapeGradientStroke]:Qt.strokeDashList,[ut.shapeStroke]:Qt.strokeDashList},it:{[ut.shapeGroup]:Qt.shapeList},s:{[ut.keyframe]:Qt.keyframeValue,[Qt.keyframeList]:Qt.keyframeValue,[ut.positionKeyframe]:Qt.keyframeValue,[Qt.positionKeyframeList]:Qt.keyframeValue,[ut.keyframeBezierHandle]:Qt.keyframeValue},e:{[ut.keyframe]:Qt.keyframeEndValue,[Qt.keyframeList]:Qt.keyframeEndValue,[Qt.keyframeValue]:Qt.keyframeEndValue,[ut.positionKeyframe]:Qt.keyframeEndValue,[Qt.positionKeyframeList]:Qt.keyframeEndValue,[ut.keyframeBezierHandle]:Qt.keyframeEndValue,[ut.shapeKeyframe]:Qt.keyframeEndValue},to:{[ut.positionKeyframe]:Qt.valueOutTangent},ti:{[ut.positionKeyframe]:Qt.valueInTangent},sz:{[mt.textDocument]:Qt.wrapSize},sc:{[mt.textDocument]:Qt.documentStrokeColor},ps:{[mt.textDocument]:Qt.wrapPosition},list:{[mt.textFonts]:Qt.textFontList}}},Ud={required:{r:{[mt.layerTransform]:mt.rotationClockwise,[ut.shapeTransform]:mt.rotationClockwise,[mt.transformRepeater]:mt.rotationClockwise,[mt.textStyle]:mt.rotationClockwise,[ut.shapePolygon]:mt.polygonRotationClockwise,[ut.shapeStar]:mt.polygonRotationClockwise,[ut.shapeRectangle]:mt.rounded,[ut.shapeRoundedCorners]:mt.radius},au:{[ut.layerAudio]:mt.layerAudioSettings},t:{[ut.layerText]:mt.textAnimatorData},pe:{[ut.layerCamera]:mt.perspective},ks:{[ut.layerPrecomposition]:mt.layerTransform,[ut.layerShape]:mt.layerTransform,[ut.layerSolidColor]:mt.layerTransform,[ut.layerImage]:mt.layerTransform,[ut.layerNull]:mt.layerTransform,[ut.layerText]:mt.layerTransform,[ut.layerCamera]:mt.layerTransform,[ut.shapePath]:mt.animatedShapeProp},p:{[ut.shapeEllipse]:mt.animatedPositionProp,[ut.shapePolygon]:mt.animatedPositionProp,[ut.shapeStar]:mt.animatedPositionProp,[ut.shapeRectangle]:mt.animatedPositionProp,[mt.textAnimatorData]:mt.textFollowPath},s:{[ut.shapeEllipse]:mt.shapeEllipseSize,[ut.shapeGradientFill]:mt.startPoint,[ut.shapeGradientStroke]:mt.startPoint,[ut.shapeRectangle]:mt.size,[ut.shapeTrim]:mt.shapeTrimStart,[ut.textDocumentKeyframe]:mt.textDocument,[ut.layerStyleStroke]:mt.blurSize,[ut.layerStyleDropShadow]:mt.blurSize,[ut.layerStyleInnerShadow]:mt.blurSize,[ut.layerStyleBevelEmboss]:mt.blurSize,[ut.layerStyleSatin]:mt.blurSize},o:{[ut.shapeFill]:mt.opacity,[ut.shapeGradientFill]:mt.opacity,[ut.shapeTrim]:mt.offset,[ut.shapeGradientStroke]:mt.strokeOpacity,[ut.shapeStroke]:mt.strokeOpacity},c:{[ut.shapeFill]:mt.shapeFillColor,[ut.shapeRepeater]:mt.copies,[ut.shapeStroke]:mt.shapeStrokeColor},e:{[ut.shapeGradientFill]:mt.endPoint,[ut.shapeGradientStroke]:mt.endPoint,[ut.shapeTrim]:mt.shapeTrimEnd},g:{[ut.shapeGradientFill]:mt.animatedGradientColors,[ut.shapeGradientStroke]:mt.animatedGradientColors},or:{[ut.shapePolygon]:mt.outerRadius,[ut.shapeStar]:mt.outerRadius},os:{[ut.shapePolygon]:mt.outerRoundness,[ut.shapeStar]:mt.outerRoundness},pt:{[ut.shapePolygon]:mt.points,[ut.shapeStar]:mt.points},ir:{[ut.shapeStar]:mt.innerRadius},is:{[ut.shapeStar]:mt.innerRoundness},tr:{[ut.shapeRepeater]:mt.transformRepeater},data:{[Qt.textCharacters]:mt.textCharacterData},a:{[mt.textSelector]:mt.maxAmount},d:{[mt.textAnimatorData]:mt.textAnimatedDocument},k:{[ut.animatedShapeStatic]:mt.animatedShapeBezier,[mt.animatedGradientColors]:mt.animatedMultidimensionalProp},lv:{[mt.layerAudioSettings]:mt.level},x:{[ut.splitVector]:mt.splitX},y:{[ut.splitVector]:mt.splitY},z:{[ut.splitVector]:mt.splitZ},lc:{[ut.layerStyleDropShadow]:mt.layerConceal},m:{[mt.textAnimatorData]:mt.textAlignmentOptions},w:{[ut.shapeGradientStroke]:mt.strokeWidth,[ut.shapeStroke]:mt.strokeWidth}},known:{xe:{[mt.textSelector]:mt.maxEase},ne:{[mt.textSelector]:mt.minEase},meta:{[ut.animation]:mt.metadata},[mt.metadata]:{[ut.animation]:mt.userMetadata},mb:{[ut.animation]:mt.motionBlur},fonts:{[ut.animation]:mt.textFonts},v:{...Xe(Qt.effectParameters,ie.value),[ut.strokeDashDefault]:mt.strokeLength,[ut.strokeDashGap]:mt.strokeLength,[ut.strokeDashOffset]:mt.strokeLength,[ut.effectValueAngle]:mt.effectValueAngleValue,[ut.effectValueCheckbox]:mt.effectValueCheckboxValue,[ut.effectValueColor]:mt.effectValueColorValue,[ut.effectValueDropdown]:mt.effectValueDropdownValue,[ut.effectValueIgnored]:mt.effectValueIgnoredValue,[ut.effectValueLayer]:mt.effectValueLayerValue,[ut.effectValuePoint]:mt.effectValuePointValue,[ut.effectValueSlider]:mt.effectValueSliderValue},rx:{[mt.layerTransform]:mt.rotationX,[ut.shapeTransform]:mt.rotationX,[mt.transformRepeater]:mt.rotationX,[mt.textStyle]:mt.rotationX},ry:{[mt.layerTransform]:mt.rotationY,[ut.shapeTransform]:mt.rotationY,[mt.transformRepeater]:mt.rotationY,[mt.textStyle]:mt.rotationY},rz:{[mt.layerTransform]:mt.rotationZ,[ut.shapeTransform]:mt.rotationZ,[mt.transformRepeater]:mt.rotationZ,[mt.textStyle]:mt.rotationZ},or:{[mt.layerTransform]:mt.orientation,[ut.shapeTransform]:mt.orientation,[mt.transformRepeater]:mt.orientation,[mt.textStyle]:mt.orientation},a:{[mt.layerTransform]:mt.anchorPoint,[mt.transformRepeater]:mt.anchorPoint,[ut.shapeTransform]:mt.anchorPoint,[mt.textStyle]:mt.anchorPoint,[ut.shapeGradientFill]:mt.highlightAngle,[ut.shapeGradientStroke]:mt.highlightAngle,[ut.shapePuckerBloat]:mt.amount,[ut.shapeTwist]:mt.angle,[ut.shapeOffsetPath]:mt.amount,[ut.textRange]:mt.textStyle,[mt.textFollowPath]:mt.forceAlignment,[mt.textSelector]:mt.maxAmount,[mt.textAlignmentOptions]:mt.textGroupAlignment,[ut.layerStyleDropShadow]:mt.angle,[ut.layerStyleInnerShadow]:mt.angle,[ut.layerStyleBevelEmboss]:mt.angle,[ut.layerStyleSatin]:mt.angle,[ut.layerStyleGradientOverlay]:mt.angle},s:{[mt.layerTransform]:mt.scale,[ut.shapeTransform]:mt.scale,[mt.transformRepeater]:mt.scale,[mt.textStyle]:mt.scale,[ut.shapeZigZags]:mt.shapeZigZagSize,[ut.textRange]:mt.textSelector,[ut.layerStyleStroke]:mt.size,[ut.layerStyleGradientOverlay]:mt.gradientOverlayScale,[mt.textSelector]:mt.textSelectorStart},o:{[mt.layerTransform]:mt.transformOpacity,[ut.shapeTransform]:mt.transformOpacity,[mt.transformRepeater]:mt.transformOpacity,[mt.textStyle]:mt.transformOpacity,[mt.textSelector]:mt.offset,[ut.shapeFill]:mt.opacity,[ut.shapeGradientFill]:mt.opacity,[ut.shapeGradientStroke]:mt.opacity,[ut.shapeStroke]:mt.opacity,[ut.mask]:mt.maskOpacity,[ut.shapeGradientFill]:mt.opacity,[ut.shapeRepeater]:mt.offset,[ut.keyframe]:mt.outTangent,[Qt.keyframeList]:mt.outTangent,[Qt.keyframeValue]:mt.outTangent,[ut.positionKeyframe]:mt.outTangent,[Qt.positionKeyframeList]:mt.outTangent,[ut.keyframeBezierHandle]:mt.outTangent,[ut.shapeKeyframe]:mt.outTangent,[ut.layerStyleDropShadow]:mt.opacity,[ut.layerStyleInnerShadow]:mt.opacity,[ut.layerStyleBevelEmboss]:mt.opacity,[ut.layerStyleSatin]:mt.opacity,[ut.layerStyleColorOverlay]:mt.opacity,[ut.layerStyleGradientOverlay]:mt.opacity},i:{[ut.keyframe]:mt.inTangent,[Qt.keyframeList]:mt.inTangent,[Qt.keyframeValue]:mt.inTangent,[ut.positionKeyframe]:mt.inTangent,[Qt.positionKeyframeList]:mt.inTangent,[ut.keyframeBezierHandle]:mt.inTangent,[ut.shapeKeyframe]:mt.inTangent},sk:{[mt.layerTransform]:mt.skew,[ut.shapeTransform]:mt.skew,[mt.transformRepeater]:mt.skew,[mt.textStyle]:mt.skew},sa:{[mt.layerTransform]:mt.skewAxis,[ut.shapeTransform]:mt.skewAxis,[mt.transformRepeater]:mt.skewAxis,[mt.textStyle]:mt.skewAxis},p:{[mt.layerTransform]:mt.translation,[ut.shapeTransform]:mt.translation,[mt.transformRepeater]:mt.translation,[mt.textStyle]:mt.translation,[mt.textFollowPath]:mt.perpendicularToPath},pt:{[ut.mask]:mt.maskVertices,[ut.shapeZigZags]:mt.points},x:{[ut.mask]:mt.dilate},tm:{[ut.layerPrecomposition]:mt.timeRemapping},h:{[ut.shapeGradientFill]:mt.highlightLength,[ut.shapeGradientStroke]:mt.highlightLength},r:{[ut.shapeGradientFill]:mt.fillRule,[ut.shapeZigZags]:mt.roundness,[mt.textFollowPath]:mt.reversePath,[ut.layerStyleOuterGlow]:mt.range},ml2:{[ut.shapeGradientStroke]:mt.miterLimitAlternative,[ut.shapeStroke]:mt.miterLimitAlternative},w:{[ut.shapeGradientStroke]:mt.strokeWidth,[ut.shapeStroke]:mt.strokeWidth},c:{[ut.shapeTrim]:mt.center,[ut.layerStyleStroke]:mt.layerStyleColor,[ut.layerStyleDropShadow]:mt.layerStyleColor,[ut.layerStyleInnerShadow]:mt.layerStyleColor,[ut.layerStyleBevelEmboss]:mt.layerStyleColor,[ut.layerStyleOuterGlow]:mt.layerStyleColor},ml:{[ut.shapeOffsetPath]:mt.miterLimit},so:{[ut.layerStyleBevelEmboss]:mt.shadowOpacity,[ut.layerStyleColorOverlay]:mt.opacity,[mt.transformRepeater]:mt.startOpacity},eo:{[mt.transformRepeater]:mt.startOpacity},ks:{[ut.characterPrecomp]:mt.layerTransform,[ut.shapePath]:mt.shape},f:{[mt.textFollowPath]:mt.firstMargin},l:{[mt.textFollowPath]:mt.lastMargin},sw:{[mt.textStyle]:mt.strokeWidth,[mt.textDocument]:mt.strokeWidth},sc:{[mt.textStyle]:mt.strokeColor,[mt.textDocument]:mt.strokeColor,[ut.layerStyleBevelEmboss]:mt.shadowColor},sh:{[mt.textStyle]:mt.strokeHue},ss:{[mt.textStyle]:mt.strokeSaturation},sb:{[mt.textStyle]:mt.strokeBrightness},fc:{[mt.textStyle]:mt.fillColor},fh:{[mt.textStyle]:mt.fillHue},fs:{[mt.textStyle]:mt.fillSaturation},fo:{[mt.textStyle]:mt.fillOpacity},fb:{[mt.textStyle]:mt.fillBrightness},t:{[mt.textStyle]:mt.letterSpacing},bl:{[mt.textStyle]:mt.blur},ls:{[mt.textStyle]:mt.lineSpacing},sm:{[mt.textSelector]:mt.selectorSmoothness,[ut.layerStyleBevelEmboss]:mt.shadowMode},e:{[mt.textSelector]:mt.textSelectorEnd},gf:{[ut.layerStyleGradientOverlay]:mt.animatedGradientColors},ch:{[ut.layerStyleDropShadow]:mt.chokeSpread,[ut.layerStyleInnerShadow]:mt.chokeSpread,[ut.layerStyleBevelEmboss]:mt.chokeSpread,[ut.layerStyleOuterGlow]:mt.chokeSpread},bm:{[ut.layerStyleDropShadow]:mt.layerStyleBlendMode,[ut.layerStyleInnerShadow]:mt.layerStyleBlendMode,[ut.layerStyleBevelEmboss]:mt.layerStyleBlendMode,[ut.layerStyleSatin]:mt.layerStyleBlendMode,[ut.layerStyleColorOverlay]:mt.layerStyleBlendMode,[ut.layerStyleGradientOverlay]:mt.layerStyleBlendMode},no:{[ut.layerStyleDropShadow]:mt.noise,[ut.layerStyleInnerShadow]:mt.noise,[ut.layerStyleOuterGlow]:mt.noise,[ut.layerStyleInnerGlow]:mt.noise},d:{[ut.layerStyleDropShadow]:mt.distance,[ut.layerStyleInnerShadow]:mt.distance,[ut.layerStyleBevelEmboss]:mt.distance,[ut.layerStyleOuterGlow]:mt.distance},j:{[ut.layerStyleOuterGlow]:mt.jitter},sr:{[ut.layerStyleInnerGlow]:mt.source,[ut.layerStyleBevelEmboss]:mt.strength},bs:{[ut.layerStyleBevelEmboss]:mt.bevelStyle},bt:{[ut.layerStyleBevelEmboss]:mt.technique},sf:{[ut.layerStyleBevelEmboss]:mt.soften},ga:{[ut.layerStyleBevelEmboss]:mt.globalAngle},ll:{[ut.layerStyleBevelEmboss]:mt.altitude},hm:{[ut.layerStyleBevelEmboss]:mt.highlightMode},hc:{[ut.layerStyleBevelEmboss]:mt.highlightColor},ho:{[ut.layerStyleBevelEmboss]:mt.highlightOpacity},in:{[ut.layerStyleSatin]:mt.invert},gs:{[ut.layerStyleGradientOverlay]:mt.smoothness},re:{[ut.layerStyleGradientOverlay]:mt.reverse},al:{[ut.layerStyleGradientOverlay]:mt.align},of:{[ut.layerStyleGradientOverlay]:mt.offset}}},sa=(t,e,i,r)=>{let s=(i.required[t]||{})[e];if(s)return {type:r,title:s,parentTitle:e,required:!0};let a=(i.known[t]||{})[e]||Cn;return {type:r,title:a,parentTitle:e,required:!1}},Jd=(t,e)=>sa(t,e,Wd,"collection"),Xd=(t,e)=>sa(t,e,Ud,"element"),Yd=(t,e,i)=>{switch(e.value.type){case"String":let r=sa(t,i,zd,"attribute");return r.title===Cn?sa(t,i,Nd,"constant"):r;case"Boolean":return sa(t,i,$d,"attribute");case"Number":let s=sa(t,i,Gd,"attribute");if(s.title===Cn){let a=sa(t,i,jd,"constant");return a.title===Cn?sa(t,i,qd,"integer-boolean"):a}else return s;case"Null":return sa(t,i,Hd,"attribute");default:return {type:"missing",title:Cn,parentTitle:i,required:!1}}},Zd=(t,e,i)=>{switch(e.value.type){case"Array":return Jd(t,i);case"Object":return Xd(t,i);default:return Yd(t,e,i)}},Kd=class{constructor(t=1/0){this._capacity=t,dp(this,"_keys",[]),dp(this,"_storage",new WeakMap);}peek(){let t=this.size(),e=this._keys[t-1];return e?this._storage.get(e):void 0}pop(){let t=this._keys.pop();if(t!==void 0){let e=this._storage.get(t);return this._storage.delete(t),e}}push(t){if(this.size()===this._capacity)throw Error("Stack has reached max capacity, you cannot add more items");let e={i:this._keys.length};this._storage.set(e,t),this._keys.push(e);}size(){return this._keys.length}},Qd={position:!0,valueType:!0,messages:{warning:!1}},yp=(t,e,i)=>{i.messages.warning&&t.message(e);},tm=(t,e)=>!e.valueType||t.type==="Array"||t.type==="Object"||t.type==="Document"?{}:{valueType:t.type.toLowerCase()},go=(t,e)=>e.position?{position:{...t.loc}}:{},gp=(t,e)=>{let i=go(t,e),r=tm(t,e);return Ed(t.value,{...i,...r})},em=(t,e)=>{let i=t.name.value;if(e.position){let r=go(t.name,e);return Ad(i,{...r})}else return i},im=(t,e,i)=>{let r=em(t,i),s=typeof r=="string"?r:r.value,a={...go(t,i)},{title:n}=Zd(s,t,e);switch(t.value.type){case"Array":return Td(r,n,[],{...a});case"Object":return wd(r,n,[],{...a});default:return Cd(r,n,[],{...a})}},Lp=(t,e)=>e.loc.end.column===t.loc.end.column;rm=t=>{let e=[];return t.elements.forEach(i=>{sn(i,"Object")&&i.members.forEach(r=>e.push(r));}),e},sm=(t,e,i,r,s)=>{let{key:a,parentTitle:n,type:p}=i;switch(p){case"Constant":if(!sn(t,"String")&&!sn(t,"Number"))break;let{defaultValue:o,prefix:d,values:g}=n,f=g[o];if(!f)throw new Error(`[${e}] '${o}' has to present in "dependent.parentTitle.values"`);let l=t.value,b=g[l];if(!b){let E=`[${e}] '${l}' is missing in "dependent.parentTitle.values"`;yp(r,E,s);}let v=typeof b>"u"?f:b;return d&&d.length>0?`${d}-${v}`:v;case"Array":if(!sn(t,"Array"))break;let m=i.childType;if(!(m&&t.elements.find(E=>E.type===m)))break;return n;default:if(p!==t.type){let E=`${e}'s '${a}' type is ${t.type} but has to be ${p}`;yp(r,E,s);break}return n}},Vp=(t,e,i,r,s)=>{let a=e.reduce((n,p)=>{let o=p.name.value;return n[o]=p.value,n},{});for(let n of i){let{key:p}=n,o=a[p];if(!o)continue;let d=sm(o,t,n,r,s);if(d)return d}},vp=(t,e,i,r)=>{let s=Ip(t,e),{defaultTitle:a,dependents:n}=s;return n&&Vp(e,t.members,n,i,r)||a},bp=(t,e,i,r)=>{let s=Ip(t,e),{defaultTitle:a,dependents:n}=s;if(!n)return a;let p=rm(t);return Vp(e,p,n,i,r)||a},am=(t,e,i,r,s)=>{let a=go(t,s);switch(t.type){case"Document":t.body.type!=="Object"&&r.fail(new Error(`Lottie must be "Object" but it's "${t.body.type}"`));break;case"Member":let n=i.peek();i.push(im(t,n.title,s));break;case"Object":switch(e.type){case"Document":i.push(Md([],{...a}));break;case"Member":let p=i.peek();Ir(p,"element",r);let o=vp(t,p.title,r,s);i.push(cp(o,[],{...a}));break;case"Array":let d=i.peek();Ir(d,"array",r);let g=vp(t,d.title,r,s);i.push(cp(g,[],{...a}));break}break;case"Array":switch(e.type){case"Member":let p=i.peek();Ir(p,"collection",r);let o=bp(t,p.title,r,s);i.push(up(o,[],{...a}));break;case"Array":let d=i.peek();Ir(d,"array",r);let g=bp(t,d.title,r,s);i.push(up(g,[],{...a}));break}break;default:switch(e.type){case"Member":Lp(t,e)&&i.push(gp(t,s));break;case"Array":i.push(gp(t,s));break}break}},nm=(t,e,i,r,s,a)=>{switch(t.type){case"Document":break;case"Member":let n=i.pop();switch(n.type){case"element":break;case"collection":break;case"attribute":!a.hasExpressions&&n.title==="expression"&&(a.hasExpressions=!0);break;default:r.fail("Node's type has to be 'element', 'collection or 'attribute'");}let p=i.peek();switch(p.type){case"object":break;case"root":break;default:r.fail("ParentNode's type has to be 'object' or 'root'");}p.children.push(n);break;case"Object":switch(e.type){case"Document":break;case"Member":let o=i.pop();Ir(o,"object",r);let d=i.peek();Ir(d,"element",r),o.title===d.title&&(o.title=`${d.title}-children`),d.children=[o];break;case"Array":let g=i.pop();Ir(g,"object",r);let f=i.peek();Ir(f,"array",r),f.children.push(g);break}break;case"Array":switch(e.type){case"Member":let o=i.pop();Ir(o,"array",r);let d=i.peek();Ir(d,"collection",r),o.title===d.title&&(o.title=`${d.title}-children`),d.children=[o];break;case"Array":let g=i.pop();Ir(g,"array",r);let f=i.peek();Ir(f,"array",r),f.children.push(g);break}break;default:switch(e.type){case"Member":if(Lp(t,e)){let g=i.pop();Ir(g,"primitive",r);let f=i.peek();Ir(f,"attribute",r),f.children=[g];}break;case"Array":let o=i.pop();Ir(o,"primitive",r);let d=i.peek();Ir(d,"array",r),d.children.push(o);break}break}};hm=function(t={}){let e=this.data("settings")||{parse:{}};e.parse=(0, Sd.default)(e.parse,t),Object.assign(this,{Parser:(i,r)=>om(i,r,e)});},lm=hm;pm={indent:0};cm=function(t={}){let e=this.data("settings")||{stringify:{}};e.stringify={...e.stringify,...t},Object.assign(this,{Compiler:(i,r)=>fm(i,r,e)});},um=cm;dm=as(Tp(),1),xp=as(Pd(),1);gm=as(Tp(),1);vs=class extends Error{constructor(t,e,i){let r=[null,null],s={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof e=="string"&&(i=e,e=void 0),typeof i=="string"){let a=i.indexOf(":");a===-1?r[1]=i:(r[0]=i.slice(0,a),r[1]=i.slice(a+1));}e&&("type"in e||"position"in e?e.position&&(s=e.position):"start"in e||"end"in e?s=e:("line"in e||"column"in e)&&(s.start=e)),this.name=vm(e)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=s.start.line,this.column=s.start.column,this.position=s,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note;}};vs.prototype.file="";vs.prototype.name="";vs.prototype.reason="";vs.prototype.message="";vs.prototype.stack="";vs.prototype.fatal=null;vs.prototype.column=null;vs.prototype.line=null;vs.prototype.source=null;vs.prototype.ruleId=null;vs.prototype.position=null;Ws={basename:bm,dirname:_m,extname:xm,join:Pm,sep:"/"};Em={cwd:Am};Ph=["history","path","basename","stem","extname","dirname"],Tm=class{constructor(t){let e;t?typeof t=="string"||Mm(t)?e={value:t}:Mh(t)?e={path:t}:e=t:e={},this.data={},this.messages=[],this.history=[],this.cwd=Em.cwd(),this.value,this.stored,this.result,this.map;let i=-1;for(;++iJ0});function u0(t){let e=Dh(p0,[]);return l0(t).walkRules(i=>{let r=Dh(f0,{selectors:[],selector:""},[]);r.selectors=[...i.selectors],r.selector=i.selector,i.walkDecls(s=>{let a=Dh(c0,{important:s.important,property:s.prop,value:s.value});r.children.push(a);}),e.children.push(r);}),e}function Lf(t,e){var i={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var s in i)r[i[s]]=s;var a={};t.prototype.toName=function(n){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return "transparent";var p,o,d=r[this.toHex()];if(d)return d;if(n!=null&&n.closest){var g=this.toRgb(),f=1/0,l="black";if(!a.length)for(var b in i)a[b]=new t(i[b]).toRgb();for(var v in i){var m=(p=g,o=a[v],Math.pow(p.r-o.r,2)+Math.pow(p.g-o.g,2)+Math.pow(p.b-o.b,2));m(i.push({value:a,offset:n}),"\uE000".repeat(a.length))),t=t.replace(C0,(a,n,p,o)=>(i.push({value:a,offset:o}),`${n}${"\uE001".repeat(p.length)}${n}`));{let a=0,n;for(;(n=t.indexOf("(",a))>-1;){let p=E0(t,n);i.push({value:p,offset:n}),t=`${t.substring(0,n)}(${"\xB6".repeat(p.length-2)})${t.substring(n+p.length)}`,a=n+p.length;}}let r=A0(t,e),s=new Set;for(let a of i.reverse())for(let n of r){let{offset:p,value:o}=a;if(!(n.pos[0]<=p&&p+o.length<=n.pos[1]))continue;let{content:d}=n,g=p-n.pos[0];n.content=d.slice(0,g)+o+d.slice(g+o.length),n.content!==d&&s.add(n);}for(let a of s){let n=k0(a.type);if(!n)throw new Error(`Unknown token type: ${a.type}`);n.lastIndex=0;let p=n.exec(a.content);if(!p)throw new Error(`Unable to parse content for ${a.type}: ${a.content}`);Object.assign(a,p.groups);}return r}function Mn(t,{list:e=!0}={}){if(e&&t.find(i=>i.type==="comma")){let i=[],r=[];for(let s=0;s=0;i--){let r=t[i];if(r.type==="combinator"){let s=t.slice(0,i),a=t.slice(i+1);return {type:"complex",combinator:r.content,left:Mn(s),right:Mn(a)}}}switch(t.length){case 0:throw new Error("Could not build AST.");case 1:return t[0];default:return {type:"compound",list:[...t]}}}function*Fn(t,e){switch(t.type){case"list":for(let i of t.list)yield*Fn(i,t);break;case"complex":yield*Fn(t.left,t),yield*Fn(t.right,t);break;case"compound":yield*t.list.map(i=>[i,t]);break;default:yield [t,e];}}function M0(t,e,i){if(t)for(let[r,s]of Fn(t,i))e(r,s);}function Vf(t,{recursive:e=!0,list:i=!0}={}){let r=T0(t);if(!r)return;let s=Mn(r,{list:i});if(!e)return s;for(let[a]of Fn(s)){if(a.type!=="pseudo-class"||!a.argument||!P0.has(a.name))continue;let n=a.argument,p=S0[a.name];if(p){let o=p.exec(n);if(!o)continue;Object.assign(a,o.groups),n=o.groups.subtree;}n&&Object.assign(a,{subtree:Vf(n,{recursive:!0,list:!0})});}return s}function F0(t){let e=[],i=-1;for(;++i{ns();Yp=ue((t,e)=>{var i=String,r=function(){return {isColorSupported:!1,reset:i,bold:i,dim:i,italic:i,underline:i,inverse:i,hidden:i,strikethrough:i,black:i,red:i,green:i,yellow:i,blue:i,magenta:i,cyan:i,white:i,gray:i,bgBlack:i,bgRed:i,bgGreen:i,bgYellow:i,bgBlue:i,bgMagenta:i,bgCyan:i,bgWhite:i}};e.exports=r(),e.exports.createColors=r;}),Zp=ue(()=>{}),zh=ue((t,e)=>{var i=Yp(),r=Zp(),s=class Kp extends Error{constructor(n,p,o,d,g,f){super(n),this.name="CssSyntaxError",this.reason=n,g&&(this.file=g),d&&(this.source=d),f&&(this.plugin=f),typeof p<"u"&&typeof o<"u"&&(typeof p=="number"?(this.line=p,this.column=o):(this.line=p.line,this.column=p.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Kp);}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason;}showSourceCode(n){if(!this.source)return "";let p=this.source;n==null&&(n=i.isColorSupported),r&&n&&(p=r(p));let o=p.split(/\r?\n/),d=Math.max(this.line-3,0),g=Math.min(this.line+2,o.length),f=String(g).length,l,b;if(n){let{bold:v,red:m,gray:E}=i.createColors(!0);l=c=>v(m(c)),b=c=>E(c);}else l=b=v=>v;return o.slice(d,g).map((v,m)=>{let E=d+1+m,c=" "+(" "+E).slice(-f)+" | ";if(E===this.line){let u=b(c.replace(/\d/g," "))+v.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+b(c)+v+` + `+u+l("^")}return " "+b(c)+v}).join(` +`)}toString(){let n=this.showSourceCode();return n&&(n=` + +`+n+` +`),this.name+": "+this.message+n}};e.exports=s,s.default=s;}),Nh=ue((t,e)=>{e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my");}),Qp=ue((t,e)=>{var i={colon:": ",indent:" ",beforeDecl:` +`,beforeRule:` +`,beforeOpen:" ",beforeClose:` +`,beforeComment:` +`,after:` +`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function r(a){return a[0].toUpperCase()+a.slice(1)}var s=class{constructor(a){this.builder=a;}stringify(a,n){if(!this[a.type])throw new Error("Unknown AST node type "+a.type+". Maybe you need to change PostCSS stringifier.");this[a.type](a,n);}document(a){this.body(a);}root(a){this.body(a),a.raws.after&&this.builder(a.raws.after);}comment(a){let n=this.raw(a,"left","commentLeft"),p=this.raw(a,"right","commentRight");this.builder("/*"+n+a.text+p+"*/",a);}decl(a,n){let p=this.raw(a,"between","colon"),o=a.prop+p+this.rawValue(a,"value");a.important&&(o+=a.raws.important||" !important"),n&&(o+=";"),this.builder(o,a);}rule(a){this.block(a,this.rawValue(a,"selector")),a.raws.ownSemicolon&&this.builder(a.raws.ownSemicolon,a,"end");}atrule(a,n){let p="@"+a.name,o=a.params?this.rawValue(a,"params"):"";if(typeof a.raws.afterName<"u"?p+=a.raws.afterName:o&&(p+=" "),a.nodes)this.block(a,p+o);else {let d=(a.raws.between||"")+(n?";":"");this.builder(p+o+d,a);}}body(a){let n=a.nodes.length-1;for(;n>0&&a.nodes[n].type==="comment";)n-=1;let p=this.raw(a,"semicolon");for(let o=0;o{if(o=l.raws[n],typeof o<"u")return !1});}return typeof o>"u"&&(o=i[p]),g.rawCache[p]=o,o}rawSemicolon(a){let n;return a.walk(p=>{if(p.nodes&&p.nodes.length&&p.last.type==="decl"&&(n=p.raws.semicolon,typeof n<"u"))return !1}),n}rawEmptyBody(a){let n;return a.walk(p=>{if(p.nodes&&p.nodes.length===0&&(n=p.raws.after,typeof n<"u"))return !1}),n}rawIndent(a){if(a.raws.indent)return a.raws.indent;let n;return a.walk(p=>{let o=p.parent;if(o&&o!==a&&o.parent&&o.parent===a&&typeof p.raws.before<"u"){let d=p.raws.before.split(` +`);return n=d[d.length-1],n=n.replace(/\S/g,""),!1}}),n}rawBeforeComment(a,n){let p;return a.walkComments(o=>{if(typeof o.raws.before<"u")return p=o.raws.before,p.includes(` +`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(n,null,"beforeDecl"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeDecl(a,n){let p;return a.walkDecls(o=>{if(typeof o.raws.before<"u")return p=o.raws.before,p.includes(` +`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(n,null,"beforeRule"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeRule(a){let n;return a.walk(p=>{if(p.nodes&&(p.parent!==a||a.first!==p)&&typeof p.raws.before<"u")return n=p.raws.before,n.includes(` +`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeClose(a){let n;return a.walk(p=>{if(p.nodes&&p.nodes.length>0&&typeof p.raws.after<"u")return n=p.raws.after,n.includes(` +`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(a){let n;return a.walk(p=>{if(p.type!=="decl"&&(n=p.raws.between,typeof n<"u"))return !1}),n}rawColon(a){let n;return a.walkDecls(p=>{if(typeof p.raws.between<"u")return n=p.raws.between.replace(/[^\s:]/g,""),!1}),n}beforeAfter(a,n){let p;a.type==="decl"?p=this.raw(a,null,"beforeDecl"):a.type==="comment"?p=this.raw(a,null,"beforeComment"):n==="before"?p=this.raw(a,null,"beforeRule"):p=this.raw(a,null,"beforeClose");let o=a.parent,d=0;for(;o&&o.type!=="root";)d+=1,o=o.parent;if(p.includes(` +`)){let g=this.raw(a,null,"indent");if(g.length)for(let f=0;f{var i=Qp();function r(s,a){new i(a).stringify(s);}e.exports=r,r.default=r;}),So=ue((t,e)=>{var{isClean:i,my:r}=Nh(),s=zh(),a=Qp(),n=Po();function p(d,g){let f=new d.constructor;for(let l in d){if(!Object.prototype.hasOwnProperty.call(d,l)||l==="proxyCache")continue;let b=d[l],v=typeof b;l==="parent"&&v==="object"?g&&(f[l]=g):l==="source"?f[l]=b:Array.isArray(b)?f[l]=b.map(m=>p(m,f)):(v==="object"&&b!==null&&(b=p(b)),f[l]=b);}return f}var o=class{constructor(d={}){this.raws={},this[i]=!1,this[r]=!0;for(let g in d)if(g==="nodes"){this.nodes=[];for(let f of d[g])typeof f.clone=="function"?this.append(f.clone()):this.append(f);}else this[g]=d[g];}error(d,g={}){if(this.source){let{start:f,end:l}=this.rangeBy(g);return this.source.input.error(d,{line:f.line,column:f.column},{line:l.line,column:l.column},g)}return new s(d)}warn(d,g,f){let l={node:this};for(let b in f)l[b]=f[b];return d.warn(g,l)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(d=n){d.stringify&&(d=d.stringify);let g="";return d(this,f=>{g+=f;}),g}assign(d={}){for(let g in d)this[g]=d[g];return this}clone(d={}){let g=p(this);for(let f in d)g[f]=d[f];return g}cloneBefore(d={}){let g=this.clone(d);return this.parent.insertBefore(this,g),g}cloneAfter(d={}){let g=this.clone(d);return this.parent.insertAfter(this,g),g}replaceWith(...d){if(this.parent){let g=this,f=!1;for(let l of d)l===this?f=!0:f?(this.parent.insertAfter(g,l),g=l):this.parent.insertBefore(g,l);f||this.remove();}return this}next(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d+1]}prev(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d-1]}before(d){return this.parent.insertBefore(this,d),this}after(d){return this.parent.insertAfter(this,d),this}root(){let d=this;for(;d.parent&&d.parent.type!=="document";)d=d.parent;return d}raw(d,g){return new a().raw(this,d,g)}cleanRaws(d){delete this.raws.before,delete this.raws.after,d||delete this.raws.between;}toJSON(d,g){let f={},l=g==null;g=g||new Map;let b=0;for(let v in this){if(!Object.prototype.hasOwnProperty.call(this,v)||v==="parent"||v==="proxyCache")continue;let m=this[v];if(Array.isArray(m))f[v]=m.map(E=>typeof E=="object"&&E.toJSON?E.toJSON(null,g):E);else if(typeof m=="object"&&m.toJSON)f[v]=m.toJSON(null,g);else if(v==="source"){let E=g.get(m.input);E==null&&(E=b,g.set(m.input,b),b++),f[v]={inputId:E,start:m.start,end:m.end};}else f[v]=m;}return l&&(f.inputs=[...g.keys()].map(v=>v.toJSON())),f}positionInside(d){let g=this.toString(),f=this.source.start.column,l=this.source.start.line;for(let b=0;bd.root().toProxy():d[g]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(d){if(d.postcssNode=this,d.stack&&this.source&&/\n\s{4}at /.test(d.stack)){let g=this.source;d.stack=d.stack.replace(/\n\s{4}at /,`$&${g.input.from}:${g.start.line}:${g.start.column}$&`);}return d}markDirty(){if(this[i]){this[i]=!1;let d=this;for(;d=d.parent;)d[i]=!1;}}get proxyOf(){return this}};e.exports=o,o.default=o;}),ko=ue((t,e)=>{var i=So(),r=class extends i{constructor(s){s&&typeof s.value<"u"&&typeof s.value!="string"&&(s={...s,value:String(s.value)}),super(s),this.type="decl";}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};e.exports=r,r.default=r;}),In=ue(()=>{}),Ln=ue(()=>{}),Gh=ue(()=>{}),tf=ue((t,e)=>{var i="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",r=(a,n=21)=>(p=n)=>{let o="",d=p;for(;d--;)o+=a[Math.random()*a.length|0];return o},s=(a=21)=>{let n="",p=a;for(;p--;)n+=i[Math.random()*64|0];return n};e.exports={nanoid:s,customAlphabet:r};}),ef=ue(()=>{}),rf=ue((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=In(),{existsSync:s,readFileSync:a}=ef(),{dirname:n,join:p}=Ln();function o(g){return Buffer?Buffer.from(g,"base64").toString():window.atob(g)}var d=class{constructor(g,f){if(f.map===!1)return;this.loadAnnotation(g),this.inline=this.startWith(this.annotation,"data:");let l=f.map?f.map.prev:void 0,b=this.loadMap(f.from,l);!this.mapFile&&f.from&&(this.mapFile=f.from),this.mapFile&&(this.root=n(this.mapFile)),b&&(this.text=b);}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}withContent(){return !!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(g,f){return g?g.substr(0,f.length)===f:!1}getAnnotationURL(g){return g.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(g){let f=g.match(/\/\*\s*# sourceMappingURL=/gm);if(!f)return;let l=g.lastIndexOf(f.pop()),b=g.indexOf("*/",l);l>-1&&b>-1&&(this.annotation=this.getAnnotationURL(g.substring(l,b)));}decodeInline(g){let f=/^data:application\/json;charset=utf-?8;base64,/,l=/^data:application\/json;base64,/,b=/^data:application\/json;charset=utf-?8,/,v=/^data:application\/json,/;if(b.test(g)||v.test(g))return decodeURIComponent(g.substr(RegExp.lastMatch.length));if(f.test(g)||l.test(g))return o(g.substr(RegExp.lastMatch.length));let m=g.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}loadFile(g){if(this.root=n(g),s(g))return this.mapFile=g,a(g,"utf-8").toString().trim()}loadMap(g,f){if(f===!1)return !1;if(f){if(typeof f=="string")return f;if(typeof f=="function"){let l=f(g);if(l){let b=this.loadFile(l);if(!b)throw new Error("Unable to load previous source map: "+l.toString());return b}}else {if(f instanceof i)return r.fromSourceMap(f).toString();if(f instanceof r)return f.toString();if(this.isMap(f))return JSON.stringify(f);throw new Error("Unsupported previous source map format: "+f.toString())}}else {if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let l=this.annotation;return g&&(l=p(n(g),l)),this.loadFile(l)}}}isMap(g){return typeof g!="object"?!1:typeof g.mappings=="string"||typeof g._mappings=="string"||Array.isArray(g.sections)}};e.exports=d,d.default=d;}),Eo=ue((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=In(),{fileURLToPath:s,pathToFileURL:a}=Gh(),{resolve:n,isAbsolute:p}=Ln(),{nanoid:o}=tf(),d=Zp(),g=zh(),f=rf(),l=Symbol("fromOffsetCache"),b=!!(i&&r),v=!!(n&&p),m=class{constructor(E,c={}){if(E===null||typeof E>"u"||typeof E=="object"&&!E.toString)throw new Error(`PostCSS received ${E} instead of CSS string`);if(this.css=E.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,c.from&&(!v||/^\w+:\/\//.test(c.from)||p(c.from)?this.file=c.from:this.file=n(c.from)),v&&b){let u=new f(this.css,c);if(u.text){this.map=u;let y=u.consumer().file;!this.file&&y&&(this.file=this.mapResolve(y));}}this.file||(this.id=""),this.map&&(this.map.file=this.from);}fromOffset(E){let c,u;if(this[l])u=this[l];else {let P=this.css.split(` +`);u=new Array(P.length);let w=0;for(let F=0,B=P.length;F=c)y=u.length-1;else {let P=u.length-2,w;for(;y>1),E=u[w+1])y=w+1;else {y=w;break}}return {line:y+1,col:E-u[y]+1}}error(E,c,u,y={}){let P,w,F;if(c&&typeof c=="object"){let G=c,it=u;if(typeof G.offset=="number"){let ft=this.fromOffset(G.offset);c=ft.line,u=ft.col;}else c=G.line,u=G.column;if(typeof it.offset=="number"){let ft=this.fromOffset(it.offset);w=ft.line,F=ft.col;}else w=it.line,F=it.column;}else if(!u){let G=this.fromOffset(c);c=G.line,u=G.col;}let B=this.origin(c,u,w,F);return B?P=new g(E,B.endLine===void 0?B.line:{line:B.line,column:B.column},B.endLine===void 0?B.column:{line:B.endLine,column:B.endColumn},B.source,B.file,y.plugin):P=new g(E,w===void 0?c:{line:c,column:u},w===void 0?u:{line:w,column:F},this.css,this.file,y.plugin),P.input={line:c,column:u,endLine:w,endColumn:F,source:this.css},this.file&&(a&&(P.input.url=a(this.file).toString()),P.input.file=this.file),P}origin(E,c,u,y){if(!this.map)return !1;let P=this.map.consumer(),w=P.originalPositionFor({line:E,column:c});if(!w.source)return !1;let F;typeof u=="number"&&(F=P.originalPositionFor({line:u,column:y}));let B;p(w.source)?B=a(w.source):B=new URL(w.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let G={url:B.toString(),line:w.line,column:w.column,endLine:F&&F.line,endColumn:F&&F.column};if(B.protocol==="file:")if(s)G.file=s(B);else throw new Error("file: protocol is not available in this PostCSS build");let it=P.sourceContentFor(w.source);return it&&(G.source=it),G}mapResolve(E){return /^\w+:\/\//.test(E)?E:n(this.map.consumer().sourceRoot||this.map.root||".",E)}get from(){return this.file||this.id}toJSON(){let E={};for(let c of ["hasBOM","css","file","id"])this[c]!=null&&(E[c]=this[c]);return this.map&&(E.map={...this.map},E.map.consumerCache&&(E.map.consumerCache=void 0)),E}};e.exports=m,m.default=m,d&&d.registerInput&&d.registerInput(m);}),sf=ue((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=In(),{dirname:s,resolve:a,relative:n,sep:p}=Ln(),{pathToFileURL:o}=Gh(),d=Eo(),g=!!(i&&r),f=!!(s&&a&&n&&p),l=class{constructor(b,v,m,E){this.stringify=b,this.mapOpts=m.map||{},this.root=v,this.opts=m,this.css=E,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute;}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(b=>{if(b.source&&b.source.input.map){let v=b.source.input.map;this.previousMaps.includes(v)||this.previousMaps.push(v);}});else {let b=new d(this.css,this.opts);b.map&&this.previousMaps.push(b.map);}return this.previousMaps}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let b=this.mapOpts.annotation;return typeof b<"u"&&b!==!0?!1:this.previous().length?this.previous().some(v=>v.inline):!0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(b=>b.withContent()):!0}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let b;for(let v=this.root.nodes.length-1;v>=0;v--)b=this.root.nodes[v],b.type==="comment"&&b.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(v);}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""));}setSourcesContent(){let b={};if(this.root)this.root.walk(v=>{if(v.source){let m=v.source.input.from;if(m&&!b[m]){b[m]=!0;let E=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(E,v.source.input.css);}}});else if(this.css){let v=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(v,this.css);}}applyPrevMaps(){for(let b of this.previous()){let v=this.toUrl(this.path(b.file)),m=b.root||s(b.file),E;this.mapOpts.sourcesContent===!1?(E=new i(b.text),E.sourcesContent&&(E.sourcesContent=E.sourcesContent.map(()=>null))):E=b.consumer(),this.map.applySourceMap(E,v,this.toUrl(this.path(m)));}}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(b=>b.annotation):!0}toBase64(b){return Buffer?Buffer.from(b).toString("base64"):window.btoa(unescape(encodeURIComponent(b)))}addAnnotation(){let b;this.isInline()?b="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?b=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?b=this.mapOpts.annotation(this.opts.to,this.root):b=this.outputFile()+".map";let v=` +`;this.css.includes(`\r +`)&&(v=`\r +`),this.css+=v+"/*# sourceMappingURL="+b+" */";}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let b=this.previous()[0].consumer();b.file=this.outputFile(),this.map=r.fromSourceMap(b);}else this.map=new r({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"",generated:{line:1,column:0},original:{line:1,column:0}});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(b){if(b.indexOf("<")===0||/^\w+:\/\//.test(b)||this.mapOpts.absolute)return b;let v=this.opts.to?s(this.opts.to):".";return typeof this.mapOpts.annotation=="string"&&(v=s(a(v,this.mapOpts.annotation))),b=n(v,b),b}toUrl(b){return p==="\\"&&(b=b.replace(/\\/g,"/")),encodeURI(b).replace(/[#?]/g,encodeURIComponent)}toFileUrl(b){if(o)return o(b).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}sourcePath(b){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(b.source.input.from):this.toUrl(this.path(b.source.input.from))}generateString(){this.css="",this.map=new r({file:this.outputFile()});let b=1,v=1,m="",E={source:"",generated:{line:0,column:0},original:{line:0,column:0}},c,u;this.stringify(this.root,(y,P,w)=>{if(this.css+=y,P&&w!=="end"&&(E.generated.line=b,E.generated.column=v-1,P.source&&P.source.start?(E.source=this.sourcePath(P),E.original.line=P.source.start.line,E.original.column=P.source.start.column-1,this.map.addMapping(E)):(E.source=m,E.original.line=1,E.original.column=0,this.map.addMapping(E))),c=y.match(/\n/g),c?(b+=c.length,u=y.lastIndexOf(` +`),v=y.length-u):v+=y.length,P&&w!=="start"){let F=P.parent||{raws:{}};(!(P.type==="decl"||P.type==="atrule"&&!P.nodes)||P!==F.last||F.raws.semicolon)&&(P.source&&P.source.end?(E.source=this.sourcePath(P),E.original.line=P.source.end.line,E.original.column=P.source.end.column-1,E.generated.line=b,E.generated.column=v-2,this.map.addMapping(E)):(E.source=m,E.original.line=1,E.original.column=0,E.generated.line=b,E.generated.column=v-1,this.map.addMapping(E)));}});}generate(){if(this.clearAnnotation(),f&&g&&this.isMap())return this.generateMap();{let b="";return this.stringify(this.root,v=>{b+=v;}),[b]}}};e.exports=l;}),Ao=ue((t,e)=>{var i=So(),r=class extends i{constructor(s){super(s),this.type="comment";}};e.exports=r,r.default=r;}),$a=ue((t,e)=>{var{isClean:i,my:r}=Nh(),s=ko(),a=Ao(),n=So(),p,o,d,g;function f(v){return v.map(m=>(m.nodes&&(m.nodes=f(m.nodes)),delete m.source,m))}function l(v){if(v[i]=!1,v.proxyOf.nodes)for(let m of v.proxyOf.nodes)l(m);}var b=class af extends n{push(m){return m.parent=this,this.proxyOf.nodes.push(m),this}each(m){if(!this.proxyOf.nodes)return;let E=this.getIterator(),c,u;for(;this.indexes[E]{let u;try{u=m(E,c);}catch(y){throw E.addToError(y)}return u!==!1&&E.walk&&(u=E.walk(m)),u})}walkDecls(m,E){return E?m instanceof RegExp?this.walk((c,u)=>{if(c.type==="decl"&&m.test(c.prop))return E(c,u)}):this.walk((c,u)=>{if(c.type==="decl"&&c.prop===m)return E(c,u)}):(E=m,this.walk((c,u)=>{if(c.type==="decl")return E(c,u)}))}walkRules(m,E){return E?m instanceof RegExp?this.walk((c,u)=>{if(c.type==="rule"&&m.test(c.selector))return E(c,u)}):this.walk((c,u)=>{if(c.type==="rule"&&c.selector===m)return E(c,u)}):(E=m,this.walk((c,u)=>{if(c.type==="rule")return E(c,u)}))}walkAtRules(m,E){return E?m instanceof RegExp?this.walk((c,u)=>{if(c.type==="atrule"&&m.test(c.name))return E(c,u)}):this.walk((c,u)=>{if(c.type==="atrule"&&c.name===m)return E(c,u)}):(E=m,this.walk((c,u)=>{if(c.type==="atrule")return E(c,u)}))}walkComments(m){return this.walk((E,c)=>{if(E.type==="comment")return m(E,c)})}append(...m){for(let E of m){let c=this.normalize(E,this.last);for(let u of c)this.proxyOf.nodes.push(u);}return this.markDirty(),this}prepend(...m){m=m.reverse();for(let E of m){let c=this.normalize(E,this.first,"prepend").reverse();for(let u of c)this.proxyOf.nodes.unshift(u);for(let u in this.indexes)this.indexes[u]=this.indexes[u]+c.length;}return this.markDirty(),this}cleanRaws(m){if(super.cleanRaws(m),this.nodes)for(let E of this.nodes)E.cleanRaws(m);}insertBefore(m,E){let c=this.index(m),u=c===0?"prepend":!1,y=this.normalize(E,this.proxyOf.nodes[c],u).reverse();c=this.index(m);for(let w of y)this.proxyOf.nodes.splice(c,0,w);let P;for(let w in this.indexes)P=this.indexes[w],c<=P&&(this.indexes[w]=P+y.length);return this.markDirty(),this}insertAfter(m,E){let c=this.index(m),u=this.normalize(E,this.proxyOf.nodes[c]).reverse();c=this.index(m);for(let P of u)this.proxyOf.nodes.splice(c+1,0,P);let y;for(let P in this.indexes)y=this.indexes[P],c=m&&(this.indexes[c]=E-1);return this.markDirty(),this}removeAll(){for(let m of this.proxyOf.nodes)m.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(m,E,c){return c||(c=E,E={}),this.walkDecls(u=>{E.props&&!E.props.includes(u.prop)||E.fast&&!u.value.includes(E.fast)||(u.value=u.value.replace(m,c));}),this.markDirty(),this}every(m){return this.nodes.every(m)}some(m){return this.nodes.some(m)}index(m){return typeof m=="number"?m:(m.proxyOf&&(m=m.proxyOf),this.proxyOf.nodes.indexOf(m))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(m,E){if(typeof m=="string")m=f(p(m).nodes);else if(Array.isArray(m)){m=m.slice(0);for(let c of m)c.parent&&c.parent.removeChild(c,"ignore");}else if(m.type==="root"&&this.type!=="document"){m=m.nodes.slice(0);for(let c of m)c.parent&&c.parent.removeChild(c,"ignore");}else if(m.type)m=[m];else if(m.prop){if(typeof m.value>"u")throw new Error("Value field is missed in node creation");typeof m.value!="string"&&(m.value=String(m.value)),m=[new s(m)];}else if(m.selector)m=[new o(m)];else if(m.name)m=[new d(m)];else if(m.text)m=[new a(m)];else throw new Error("Unknown node type in node creation");return m.map(c=>(c[r]||af.rebuild(c),c=c.proxyOf,c.parent&&c.parent.removeChild(c),c[i]&&l(c),typeof c.raws.before>"u"&&E&&typeof E.raws.before<"u"&&(c.raws.before=E.raws.before.replace(/\S/g,"")),c.parent=this.proxyOf,c))}getProxyProcessor(){return {set(m,E,c){return m[E]===c||(m[E]=c,(E==="name"||E==="params"||E==="selector")&&m.markDirty()),!0},get(m,E){return E==="proxyOf"?m:m[E]?E==="each"||typeof E=="string"&&E.startsWith("walk")?(...c)=>m[E](...c.map(u=>typeof u=="function"?(y,P)=>u(y.toProxy(),P):u)):E==="every"||E==="some"?c=>m[E]((u,...y)=>c(u.toProxy(),...y)):E==="root"?()=>m.root().toProxy():E==="nodes"?m.nodes.map(c=>c.toProxy()):E==="first"||E==="last"?m[E].toProxy():m[E]:m[E]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let m=this.lastEach;return this.indexes[m]=0,m}};b.registerParse=v=>{p=v;},b.registerRule=v=>{o=v;},b.registerAtRule=v=>{d=v;},b.registerRoot=v=>{g=v;},e.exports=b,b.default=b,b.rebuild=v=>{v.type==="atrule"?Object.setPrototypeOf(v,d.prototype):v.type==="rule"?Object.setPrototypeOf(v,o.prototype):v.type==="decl"?Object.setPrototypeOf(v,s.prototype):v.type==="comment"?Object.setPrototypeOf(v,a.prototype):v.type==="root"&&Object.setPrototypeOf(v,g.prototype),v[r]=!0,v.nodes&&v.nodes.forEach(m=>{b.rebuild(m);});};}),jh=ue((t,e)=>{var i=$a(),r,s,a=class extends i{constructor(n){super({type:"document",...n}),this.nodes||(this.nodes=[]);}toResult(n={}){return new r(new s,this,n).stringify()}};a.registerLazyResult=n=>{r=n;},a.registerProcessor=n=>{s=n;},e.exports=a,a.default=a;}),nf=ue((t,e)=>{var i={};e.exports=function(r){i[r]||(i[r]=!0,typeof console<"u"&&console.warn&&console.warn(r));};}),of=ue((t,e)=>{var i=class{constructor(r,s={}){if(this.type="warning",this.text=r,s.node&&s.node.source){let a=s.node.rangeBy(s);this.line=a.start.line,this.column=a.start.column,this.endLine=a.end.line,this.endColumn=a.end.column;}for(let a in s)this[a]=s[a];}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};e.exports=i,i.default=i;}),Hh=ue((t,e)=>{var i=of(),r=class{constructor(s,a,n){this.processor=s,this.messages=[],this.root=a,this.opts=n,this.css=void 0,this.map=void 0;}toString(){return this.css}warn(s,a={}){a.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(a.plugin=this.lastPlugin.postcssPlugin);let n=new i(s,a);return this.messages.push(n),n}warnings(){return this.messages.filter(s=>s.type==="warning")}get content(){return this.css}};e.exports=r,r.default=r;}),Rm=ue((t,e)=>{var i="'".charCodeAt(0),r='"'.charCodeAt(0),s="\\".charCodeAt(0),a="/".charCodeAt(0),n=` +`.charCodeAt(0),p=" ".charCodeAt(0),o="\f".charCodeAt(0),d=" ".charCodeAt(0),g="\r".charCodeAt(0),f="[".charCodeAt(0),l="]".charCodeAt(0),b="(".charCodeAt(0),v=")".charCodeAt(0),m="{".charCodeAt(0),E="}".charCodeAt(0),c=";".charCodeAt(0),u="*".charCodeAt(0),y=":".charCodeAt(0),P="@".charCodeAt(0),w=/[\t\n\f\r "#'()/;[\\\]{}]/g,F=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,B=/.[\n"'(/\\]/,G=/[\da-f]/i;e.exports=function(it,ft={}){let ct=it.css.valueOf(),dt=ft.ignoreErrors,Pt,tt,vt,D,O,k,L,K,U,Ht,It=ct.length,Gt=0,Ot=[],ee=[];function ae(){return Gt}function le(pe){throw it.error("Unclosed "+pe,Gt)}function ye(){return ee.length===0&&Gt>=It}function ce(pe){if(ee.length)return ee.pop();if(Gt>=It)return;let Wt=pe?pe.ignoreUnclosed:!1;switch(Pt=ct.charCodeAt(Gt),Pt){case n:case p:case d:case g:case o:{tt=Gt;do tt+=1,Pt=ct.charCodeAt(tt);while(Pt===p||Pt===n||Pt===d||Pt===g||Pt===o);Ht=["space",ct.slice(Gt,tt)],Gt=tt-1;break}case f:case l:case m:case E:case y:case c:case v:{let Nt=String.fromCharCode(Pt);Ht=[Nt,Nt,Gt];break}case b:{if(K=Ot.length?Ot.pop()[1]:"",U=ct.charCodeAt(Gt+1),K==="url"&&U!==i&&U!==r&&U!==p&&U!==n&&U!==d&&U!==o&&U!==g){tt=Gt;do{if(k=!1,tt=ct.indexOf(")",tt+1),tt===-1)if(dt||Wt){tt=Gt;break}else le("bracket");for(L=tt;ct.charCodeAt(L-1)===s;)L-=1,k=!k;}while(k);Ht=["brackets",ct.slice(Gt,tt+1),Gt,tt],Gt=tt;}else tt=ct.indexOf(")",Gt+1),D=ct.slice(Gt,tt+1),tt===-1||B.test(D)?Ht=["(","(",Gt]:(Ht=["brackets",D,Gt,tt],Gt=tt);break}case i:case r:{vt=Pt===i?"'":'"',tt=Gt;do{if(k=!1,tt=ct.indexOf(vt,tt+1),tt===-1)if(dt||Wt){tt=Gt+1;break}else le("string");for(L=tt;ct.charCodeAt(L-1)===s;)L-=1,k=!k;}while(k);Ht=["string",ct.slice(Gt,tt+1),Gt,tt],Gt=tt;break}case P:{w.lastIndex=Gt+1,w.test(ct),w.lastIndex===0?tt=ct.length-1:tt=w.lastIndex-2,Ht=["at-word",ct.slice(Gt,tt+1),Gt,tt],Gt=tt;break}case s:{for(tt=Gt,O=!0;ct.charCodeAt(tt+1)===s;)tt+=1,O=!O;if(Pt=ct.charCodeAt(tt+1),O&&Pt!==a&&Pt!==p&&Pt!==n&&Pt!==d&&Pt!==g&&Pt!==o&&(tt+=1,G.test(ct.charAt(tt)))){for(;G.test(ct.charAt(tt+1));)tt+=1;ct.charCodeAt(tt+1)===p&&(tt+=1);}Ht=["word",ct.slice(Gt,tt+1),Gt,tt],Gt=tt;break}default:{Pt===a&&ct.charCodeAt(Gt+1)===u?(tt=ct.indexOf("*/",Gt+2)+1,tt===0&&(dt||Wt?tt=ct.length:le("comment")),Ht=["comment",ct.slice(Gt,tt+1),Gt,tt],Gt=tt):(F.lastIndex=Gt+1,F.test(ct),F.lastIndex===0?tt=ct.length-1:tt=F.lastIndex-2,Ht=["word",ct.slice(Gt,tt+1),Gt,tt],Ot.push(Ht),Gt=tt);break}}return Gt++,Ht}function Xt(pe){ee.push(pe);}return {back:Xt,nextToken:ce,endOfFile:ye,position:ae}};}),qh=ue((t,e)=>{var i=$a(),r=class extends i{constructor(s){super(s),this.type="atrule";}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}};e.exports=r,r.default=r,i.registerAtRule(r);}),Vn=ue((t,e)=>{var i=$a(),r,s,a=class extends i{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[]);}removeChild(n,p){let o=this.index(n);return !p&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),super.removeChild(n)}normalize(n,p,o){let d=super.normalize(n);if(p){if(o==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let g of d)g.raws.before=p.raws.before;}return d}toResult(n={}){return new r(new s,this,n).stringify()}};a.registerLazyResult=n=>{r=n;},a.registerProcessor=n=>{s=n;},e.exports=a,a.default=a,i.registerRoot(a);}),hf=ue((t,e)=>{var i={split(r,s,a){let n=[],p="",o=!1,d=0,g=!1,f="",l=!1;for(let b of r)l?l=!1:b==="\\"?l=!0:g?b===f&&(g=!1):b==='"'||b==="'"?(g=!0,f=b):b==="("?d+=1:b===")"?d>0&&(d-=1):d===0&&s.includes(b)&&(o=!0),o?(p!==""&&n.push(p.trim()),p="",o=!1):p+=b;return (a||p!=="")&&n.push(p.trim()),n},space(r){let s=[" ",` +`," "];return i.split(r,s)},comma(r){return i.split(r,[","],!0)}};e.exports=i,i.default=i;}),$h=ue((t,e)=>{var i=$a(),r=hf(),s=class extends i{constructor(a){super(a),this.type="rule",this.nodes||(this.nodes=[]);}get selectors(){return r.comma(this.selector)}set selectors(a){let n=this.selector?this.selector.match(/,\s*/):null,p=n?n[0]:","+this.raw("between","beforeOpen");this.selector=a.join(p);}};e.exports=s,s.default=s,i.registerRule(s);}),Om=ue((t,e)=>{var i=ko(),r=Rm(),s=Ao(),a=qh(),n=Vn(),p=$h(),o={empty:!0,space:!0};function d(f){for(let l=f.length-1;l>=0;l--){let b=f[l],v=b[3]||b[2];if(v)return v}}var g=class{constructor(f){this.input=f,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:f,start:{offset:0,line:1,column:1}};}createTokenizer(){this.tokenizer=r(this.input);}parse(){let f;for(;!this.tokenizer.endOfFile();)switch(f=this.tokenizer.nextToken(),f[0]){case"space":this.spaces+=f[1];break;case";":this.freeSemicolon(f);break;case"}":this.end(f);break;case"comment":this.comment(f);break;case"at-word":this.atrule(f);break;case"{":this.emptyRule(f);break;default:this.other(f);break}this.endFile();}comment(f){let l=new s;this.init(l,f[2]),l.source.end=this.getPosition(f[3]||f[2]);let b=f[1].slice(2,-2);if(/^\s*$/.test(b))l.text="",l.raws.left=b,l.raws.right="";else {let v=b.match(/^(\s*)([^]*\S)(\s*)$/);l.text=v[2],l.raws.left=v[1],l.raws.right=v[3];}}emptyRule(f){let l=new p;this.init(l,f[2]),l.selector="",l.raws.between="",this.current=l;}other(f){let l=!1,b=null,v=!1,m=null,E=[],c=f[1].startsWith("--"),u=[],y=f;for(;y;){if(b=y[0],u.push(y),b==="("||b==="[")m||(m=y),E.push(b==="("?")":"]");else if(c&&v&&b==="{")m||(m=y),E.push("}");else if(E.length===0)if(b===";")if(v){this.decl(u,c);return}else break;else if(b==="{"){this.rule(u);return}else if(b==="}"){this.tokenizer.back(u.pop()),l=!0;break}else b===":"&&(v=!0);else b===E[E.length-1]&&(E.pop(),E.length===0&&(m=null));y=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(l=!0),E.length>0&&this.unclosedBracket(m),l&&v){if(!c)for(;u.length&&(y=u[u.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,c);}else this.unknownWord(u);}rule(f){f.pop();let l=new p;this.init(l,f[0][2]),l.raws.between=this.spacesAndCommentsFromEnd(f),this.raw(l,"selector",f),this.current=l;}decl(f,l){let b=new i;this.init(b,f[0][2]);let v=f[f.length-1];for(v[0]===";"&&(this.semicolon=!0,f.pop()),b.source.end=this.getPosition(v[3]||v[2]||d(f));f[0][0]!=="word";)f.length===1&&this.unknownWord(f),b.raws.before+=f.shift()[1];for(b.source.start=this.getPosition(f[0][2]),b.prop="";f.length;){let u=f[0][0];if(u===":"||u==="space"||u==="comment")break;b.prop+=f.shift()[1];}b.raws.between="";let m;for(;f.length;)if(m=f.shift(),m[0]===":"){b.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),b.raws.between+=m[1];(b.prop[0]==="_"||b.prop[0]==="*")&&(b.raws.before+=b.prop[0],b.prop=b.prop.slice(1));let E=[],c;for(;f.length&&(c=f[0][0],!(c!=="space"&&c!=="comment"));)E.push(f.shift());this.precheckMissedSemicolon(f);for(let u=f.length-1;u>=0;u--){if(m=f[u],m[1].toLowerCase()==="!important"){b.important=!0;let y=this.stringFrom(f,u);y=this.spacesFromEnd(f)+y,y!==" !important"&&(b.raws.important=y);break}else if(m[1].toLowerCase()==="important"){let y=f.slice(0),P="";for(let w=u;w>0;w--){let F=y[w][0];if(P.trim().indexOf("!")===0&&F!=="space")break;P=y.pop()[1]+P;}P.trim().indexOf("!")===0&&(b.important=!0,b.raws.important=P,f=y);}if(m[0]!=="space"&&m[0]!=="comment")break}f.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(b.raws.between+=E.map(u=>u[1]).join(""),E=[]),this.raw(b,"value",E.concat(f),l),b.value.includes(":")&&!l&&this.checkMissedSemicolon(f);}atrule(f){let l=new a;l.name=f[1].slice(1),l.name===""&&this.unnamedAtrule(l,f),this.init(l,f[2]);let b,v,m,E=!1,c=!1,u=[],y=[];for(;!this.tokenizer.endOfFile();){if(f=this.tokenizer.nextToken(),b=f[0],b==="("||b==="["?y.push(b==="("?")":"]"):b==="{"&&y.length>0?y.push("}"):b===y[y.length-1]&&y.pop(),y.length===0)if(b===";"){l.source.end=this.getPosition(f[2]),this.semicolon=!0;break}else if(b==="{"){c=!0;break}else if(b==="}"){if(u.length>0){for(m=u.length-1,v=u[m];v&&v[0]==="space";)v=u[--m];v&&(l.source.end=this.getPosition(v[3]||v[2]));}this.end(f);break}else u.push(f);else u.push(f);if(this.tokenizer.endOfFile()){E=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(l.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(l,"params",u),E&&(f=u[u.length-1],l.source.end=this.getPosition(f[3]||f[2]),this.spaces=l.raws.between,l.raws.between="")):(l.raws.afterName="",l.params=""),c&&(l.nodes=[],this.current=l);}end(f){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(f[2]),this.current=this.current.parent):this.unexpectedClose(f);}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;}freeSemicolon(f){if(this.spaces+=f[1],this.current.nodes){let l=this.current.nodes[this.current.nodes.length-1];l&&l.type==="rule"&&!l.raws.ownSemicolon&&(l.raws.ownSemicolon=this.spaces,this.spaces="");}}getPosition(f){let l=this.input.fromOffset(f);return {offset:f,line:l.line,column:l.col}}init(f,l){this.current.push(f),f.source={start:this.getPosition(l),input:this.input},f.raws.before=this.spaces,this.spaces="",f.type!=="comment"&&(this.semicolon=!1);}raw(f,l,b,v){let m,E,c=b.length,u="",y=!0,P,w;for(let F=0;FB+G[1],"");f.raws[l]={value:u,raw:F};}f[l]=u;}spacesAndCommentsFromEnd(f){let l,b="";for(;f.length&&(l=f[f.length-1][0],!(l!=="space"&&l!=="comment"));)b=f.pop()[1]+b;return b}spacesAndCommentsFromStart(f){let l,b="";for(;f.length&&(l=f[0][0],!(l!=="space"&&l!=="comment"));)b+=f.shift()[1];return b}spacesFromEnd(f){let l,b="";for(;f.length&&(l=f[f.length-1][0],l==="space");)b=f.pop()[1]+b;return b}stringFrom(f,l){let b="";for(let v=l;v=0&&(v=f[m],!(v[0]!=="space"&&(b+=1,b===2)));m--);throw this.input.error("Missed semicolon",v[0]==="word"?v[3]+1:v[2])}};e.exports=g;}),Wh=ue((t,e)=>{var i=$a(),r=Om(),s=Eo();function a(n,p){let o=new s(n,p),d=new r(o);try{d.parse();}catch(g){throw g}return d.root}e.exports=a,a.default=a,i.registerParse(a);}),lf=ue((t,e)=>{var{isClean:i,my:r}=Nh(),s=sf(),a=Po(),n=$a(),p=jh();nf();var o=Hh(),d=Wh(),g=Vn(),f={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},l={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},b={postcssPlugin:!0,prepare:!0,Once:!0},v=0;function m(w){return typeof w=="object"&&typeof w.then=="function"}function E(w){let F=!1,B=f[w.type];return w.type==="decl"?F=w.prop.toLowerCase():w.type==="atrule"&&(F=w.name.toLowerCase()),F&&w.append?[B,B+"-"+F,v,B+"Exit",B+"Exit-"+F]:F?[B,B+"-"+F,B+"Exit",B+"Exit-"+F]:w.append?[B,v,B+"Exit"]:[B,B+"Exit"]}function c(w){let F;return w.type==="document"?F=["Document",v,"DocumentExit"]:w.type==="root"?F=["Root",v,"RootExit"]:F=E(w),{node:w,events:F,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function u(w){return w[i]=!1,w.nodes&&w.nodes.forEach(F=>u(F)),w}var y={},P=class pf{constructor(F,B,G){this.stringified=!1,this.processed=!1;let it;if(typeof B=="object"&&B!==null&&(B.type==="root"||B.type==="document"))it=u(B);else if(B instanceof pf||B instanceof o)it=u(B.root),B.map&&(typeof G.map>"u"&&(G.map={}),G.map.inline||(G.map.inline=!1),G.map.prev=B.map);else {let ft=d;G.syntax&&(ft=G.syntax.parse),G.parser&&(ft=G.parser),ft.parse&&(ft=ft.parse);try{it=ft(B,G);}catch(ct){this.processed=!0,this.error=ct;}it&&!it[r]&&n.rebuild(it);}this.result=new o(F,it,G),this.helpers={...y,result:this.result,postcss:y},this.plugins=this.processor.plugins.map(ft=>typeof ft=="object"&&ft.prepare?{...ft,...ft.prepare(this.result)}:ft);}get[Symbol.toStringTag](){return "LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(F,B){return this.async().then(F,B)}catch(F){return this.async().catch(F)}finally(F){return this.async().then(F,F)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let F of this.plugins){let B=this.runOnRoot(F);if(m(B))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let F=this.result.root;for(;!F[i];)F[i]=!0,this.walkSync(F);if(this.listeners.OnceExit)if(F.type==="document")for(let B of F.nodes)this.visitSync(this.listeners.OnceExit,B);else this.visitSync(this.listeners.OnceExit,F);}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let F=this.result.opts,B=a;F.syntax&&(B=F.syntax.stringify),F.stringifier&&(B=F.stringifier),B.stringify&&(B=B.stringify);let G=new s(B,this.result.root,this.result.opts).generate();return this.result.css=G[0],this.result.map=G[1],this.result}walkSync(F){F[i]=!0;let B=E(F);for(let G of B)if(G===v)F.nodes&&F.each(it=>{it[i]||this.walkSync(it);});else {let it=this.listeners[G];if(it&&this.visitSync(it,F.toProxy()))return}}visitSync(F,B){for(let[G,it]of F){this.result.lastPlugin=G;let ft;try{ft=it(B,this.helpers);}catch(ct){throw this.handleError(ct,B.proxyOf)}if(B.type!=="root"&&B.type!=="document"&&!B.parent)return !0;if(m(ft))throw this.getAsyncError()}}runOnRoot(F){this.result.lastPlugin=F;try{if(typeof F=="object"&&F.Once){if(this.result.root.type==="document"){let B=this.result.root.nodes.map(G=>F.Once(G,this.helpers));return m(B[0])?Promise.all(B):B}return F.Once(this.result.root,this.helpers)}else if(typeof F=="function")return F(this.result.root,this.result)}catch(B){throw this.handleError(B)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(F,B){let G=this.result.lastPlugin;try{B&&B.addToError(F),this.error=F,F.name==="CssSyntaxError"&&!F.plugin?(F.plugin=G.postcssPlugin,F.setMessage()):G.postcssVersion;}catch(it){console&&console.error&&console.error(it);}return F}async runAsync(){this.plugin=0;for(let F=0;F0;){let G=this.visitTick(B);if(m(G))try{await G;}catch(it){let ft=B[B.length-1].node;throw this.handleError(it,ft)}}}if(this.listeners.OnceExit)for(let[B,G]of this.listeners.OnceExit){this.result.lastPlugin=B;try{if(F.type==="document"){let it=F.nodes.map(ft=>G(ft,this.helpers));await Promise.all(it);}else await G(F,this.helpers);}catch(it){throw this.handleError(it)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let F=(B,G,it)=>{this.listeners[G]||(this.listeners[G]=[]),this.listeners[G].push([B,it]);};for(let B of this.plugins)if(typeof B=="object")for(let G in B){if(!l[G]&&/^[A-Z]/.test(G))throw new Error(`Unknown event ${G} in ${B.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!b[G])if(typeof B[G]=="object")for(let it in B[G])it==="*"?F(B,G,B[G][it]):F(B,G+"-"+it.toLowerCase(),B[G][it]);else typeof B[G]=="function"&&F(B,G,B[G]);}this.hasListener=Object.keys(this.listeners).length>0;}visitTick(F){let B=F[F.length-1],{node:G,visitors:it}=B;if(G.type!=="root"&&G.type!=="document"&&!G.parent){F.pop();return}if(it.length>0&&B.visitorIndex{y=w;},e.exports=P,P.default=P,g.registerLazyResult(P),p.registerLazyResult(P);}),Bm=ue((t,e)=>{var i=sf(),r=Po();nf();var s=Wh(),a=Hh(),n=class{constructor(p,o,d){o=o.toString(),this.stringified=!1,this._processor=p,this._css=o,this._opts=d,this._map=void 0;let g,f=r;this.result=new a(this._processor,g,this._opts),this.result.css=o;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let b=new i(f,g,this._opts,o);if(b.isMap()){let[v,m]=b.generate();v&&(this.result.css=v),m&&(this.result.map=m);}}get[Symbol.toStringTag](){return "NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let p,o=s;try{p=o(this._css,this._opts);}catch(d){this.error=d;}if(this.error)throw this.error;return this._root=p,p}get messages(){return []}warnings(){return []}toString(){return this._css}then(p,o){return this.async().then(p,o)}catch(p){return this.async().catch(p)}finally(p){return this.async().then(p,p)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}};e.exports=n,n.default=n;}),zm=ue((t,e)=>{var i=Bm(),r=lf(),s=jh(),a=Vn(),n=class{constructor(p=[]){this.version="8.4.24",this.plugins=this.normalize(p);}use(p){return this.plugins=this.plugins.concat(this.normalize([p])),this}process(p,o={}){return this.plugins.length===0&&typeof o.parser>"u"&&typeof o.stringifier>"u"&&typeof o.syntax>"u"?new i(this,p,o):new r(this,p,o)}normalize(p){let o=[];for(let d of p)if(d.postcss===!0?d=d():d.postcss&&(d=d.postcss),typeof d=="object"&&Array.isArray(d.plugins))o=o.concat(d.plugins);else if(typeof d=="object"&&d.postcssPlugin)o.push(d);else if(typeof d=="function")o.push(d);else if(!(typeof d=="object"&&(d.parse||d.stringify)))throw new Error(d+" is not a PostCSS plugin");return o}};e.exports=n,n.default=n,a.registerProcessor(n),s.registerProcessor(n);}),Nm=ue((t,e)=>{var i=ko(),r=rf(),s=Ao(),a=qh(),n=Eo(),p=Vn(),o=$h();function d(g,f){if(Array.isArray(g))return g.map(v=>d(v));let{inputs:l,...b}=g;if(l){f=[];for(let v of l){let m={...v,__proto__:n.prototype};m.map&&(m.map={...m.map,__proto__:r.prototype}),f.push(m);}}if(b.nodes&&(b.nodes=g.nodes.map(v=>d(v,f))),b.source){let{inputId:v,...m}=b.source;b.source=m,v!=null&&(b.source.input=f[v]);}if(b.type==="root")return new p(b);if(b.type==="decl")return new i(b);if(b.type==="rule")return new o(b);if(b.type==="comment")return new s(b);if(b.type==="atrule")return new a(b);throw new Error("Unknown node type: "+g.type)}e.exports=d,d.default=d;}),Gm=ue((t,e)=>{var i=zh(),r=ko(),s=lf(),a=$a(),n=zm(),p=Po(),o=Nm(),d=jh(),g=of(),f=Ao(),l=qh(),b=Hh(),v=Eo(),m=Wh(),E=hf(),c=$h(),u=Vn(),y=So();function P(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new n(w)}P.plugin=function(w,F){let B=!1;function G(...ft){console&&console.warn&&!B&&(B=!0,console.warn(w+`: postcss.plugin was deprecated. Migration guide: +https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(w+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357: +https://www.w3ctech.com/topic/2226`));let ct=F(...ft);return ct.postcssPlugin=w,ct.postcssVersion=new n().version,ct}let it;return Object.defineProperty(G,"postcss",{get(){return it||(it=G()),it}}),G.process=function(ft,ct,dt){return P([G(dt)]).process(ft,ct)},G},P.stringify=p,P.parse=m,P.fromJSON=o,P.list=E,P.comment=w=>new f(w),P.atRule=w=>new l(w),P.decl=w=>new r(w),P.rule=w=>new c(w),P.root=w=>new u(w),P.document=w=>new d(w),P.CssSyntaxError=i,P.Declaration=r,P.Container=a,P.Processor=n,P.Document=d,P.Comment=f,P.Warning=g,P.AtRule=l,P.Result=b,P.Input=v,P.Rule=c,P.Root=u,P.Node=y,s.registerPostcss(P),e.exports=P,P.default=P;}),ff=ue(()=>{}),cf=ue((t,e)=>{var i=Yp(),r=ff(),s=class uf extends Error{constructor(n,p,o,d,g,f){super(n),this.name="CssSyntaxError",this.reason=n,g&&(this.file=g),d&&(this.source=d),f&&(this.plugin=f),typeof p<"u"&&typeof o<"u"&&(typeof p=="number"?(this.line=p,this.column=o):(this.line=p.line,this.column=p.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,uf);}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason;}showSourceCode(n){if(!this.source)return "";let p=this.source;n==null&&(n=i.isColorSupported),r&&n&&(p=r(p));let o=p.split(/\r?\n/),d=Math.max(this.line-3,0),g=Math.min(this.line+2,o.length),f=String(g).length,l,b;if(n){let{bold:v,red:m,gray:E}=i.createColors(!0);l=c=>v(m(c)),b=c=>E(c);}else l=b=v=>v;return o.slice(d,g).map((v,m)=>{let E=d+1+m,c=" "+(" "+E).slice(-f)+" | ";if(E===this.line){let u=b(c.replace(/\d/g," "))+v.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+b(c)+v+` + `+u+l("^")}return " "+b(c)+v}).join(` +`)}toString(){let n=this.showSourceCode();return n&&(n=` + +`+n+` +`),this.name+": "+this.message+n}};e.exports=s,s.default=s;}),jm=ue((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=In(),{existsSync:s,readFileSync:a}=ef(),{dirname:n,join:p}=Ln();function o(g){return Buffer?Buffer.from(g,"base64").toString():window.atob(g)}var d=class{constructor(g,f){if(f.map===!1)return;this.loadAnnotation(g),this.inline=this.startWith(this.annotation,"data:");let l=f.map?f.map.prev:void 0,b=this.loadMap(f.from,l);!this.mapFile&&f.from&&(this.mapFile=f.from),this.mapFile&&(this.root=n(this.mapFile)),b&&(this.text=b);}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}withContent(){return !!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(g,f){return g?g.substr(0,f.length)===f:!1}getAnnotationURL(g){return g.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(g){let f=g.match(/\/\*\s*# sourceMappingURL=/gm);if(!f)return;let l=g.lastIndexOf(f.pop()),b=g.indexOf("*/",l);l>-1&&b>-1&&(this.annotation=this.getAnnotationURL(g.substring(l,b)));}decodeInline(g){let f=/^data:application\/json;charset=utf-?8;base64,/,l=/^data:application\/json;base64,/,b=/^data:application\/json;charset=utf-?8,/,v=/^data:application\/json,/;if(b.test(g)||v.test(g))return decodeURIComponent(g.substr(RegExp.lastMatch.length));if(f.test(g)||l.test(g))return o(g.substr(RegExp.lastMatch.length));let m=g.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}loadFile(g){if(this.root=n(g),s(g))return this.mapFile=g,a(g,"utf-8").toString().trim()}loadMap(g,f){if(f===!1)return !1;if(f){if(typeof f=="string")return f;if(typeof f=="function"){let l=f(g);if(l){let b=this.loadFile(l);if(!b)throw new Error("Unable to load previous source map: "+l.toString());return b}}else {if(f instanceof i)return r.fromSourceMap(f).toString();if(f instanceof r)return f.toString();if(this.isMap(f))return JSON.stringify(f);throw new Error("Unsupported previous source map format: "+f.toString())}}else {if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let l=this.annotation;return g&&(l=p(n(g),l)),this.loadFile(l)}}}isMap(g){return typeof g!="object"?!1:typeof g.mappings=="string"||typeof g._mappings=="string"||Array.isArray(g.sections)}};e.exports=d,d.default=d;}),df=ue((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=In(),{fileURLToPath:s,pathToFileURL:a}=Gh(),{resolve:n,isAbsolute:p}=Ln(),{nanoid:o}=tf(),d=ff(),g=cf(),f=jm(),l=Symbol("fromOffsetCache"),b=!!(i&&r),v=!!(n&&p),m=class{constructor(E,c={}){if(E===null||typeof E>"u"||typeof E=="object"&&!E.toString)throw new Error(`PostCSS received ${E} instead of CSS string`);if(this.css=E.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,c.from&&(!v||/^\w+:\/\//.test(c.from)||p(c.from)?this.file=c.from:this.file=n(c.from)),v&&b){let u=new f(this.css,c);if(u.text){this.map=u;let y=u.consumer().file;!this.file&&y&&(this.file=this.mapResolve(y));}}this.file||(this.id=""),this.map&&(this.map.file=this.from);}fromOffset(E){let c,u;if(this[l])u=this[l];else {let P=this.css.split(` +`);u=new Array(P.length);let w=0;for(let F=0,B=P.length;F=c)y=u.length-1;else {let P=u.length-2,w;for(;y>1),E=u[w+1])y=w+1;else {y=w;break}}return {line:y+1,col:E-u[y]+1}}error(E,c,u,y={}){let P,w,F;if(c&&typeof c=="object"){let G=c,it=u;if(typeof G.offset=="number"){let ft=this.fromOffset(G.offset);c=ft.line,u=ft.col;}else c=G.line,u=G.column;if(typeof it.offset=="number"){let ft=this.fromOffset(it.offset);w=ft.line,F=ft.col;}else w=it.line,F=it.column;}else if(!u){let G=this.fromOffset(c);c=G.line,u=G.col;}let B=this.origin(c,u,w,F);return B?P=new g(E,B.endLine===void 0?B.line:{line:B.line,column:B.column},B.endLine===void 0?B.column:{line:B.endLine,column:B.endColumn},B.source,B.file,y.plugin):P=new g(E,w===void 0?c:{line:c,column:u},w===void 0?u:{line:w,column:F},this.css,this.file,y.plugin),P.input={line:c,column:u,endLine:w,endColumn:F,source:this.css},this.file&&(a&&(P.input.url=a(this.file).toString()),P.input.file=this.file),P}origin(E,c,u,y){if(!this.map)return !1;let P=this.map.consumer(),w=P.originalPositionFor({line:E,column:c});if(!w.source)return !1;let F;typeof u=="number"&&(F=P.originalPositionFor({line:u,column:y}));let B;p(w.source)?B=a(w.source):B=new URL(w.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let G={url:B.toString(),line:w.line,column:w.column,endLine:F&&F.line,endColumn:F&&F.column};if(B.protocol==="file:")if(s)G.file=s(B);else throw new Error("file: protocol is not available in this PostCSS build");let it=P.sourceContentFor(w.source);return it&&(G.source=it),G}mapResolve(E){return /^\w+:\/\//.test(E)?E:n(this.map.consumer().sourceRoot||this.map.root||".",E)}get from(){return this.file||this.id}toJSON(){let E={};for(let c of ["hasBOM","css","file","id"])this[c]!=null&&(E[c]=this[c]);return this.map&&(E.map={...this.map},E.map.consumerCache&&(E.map.consumerCache=void 0)),E}};e.exports=m,m.default=m,d&&d.registerInput&&d.registerInput(m);}),mf=ue((t,e)=>{e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my");}),Uh=ue((t,e)=>{var i={colon:": ",indent:" ",beforeDecl:` +`,beforeRule:` +`,beforeOpen:" ",beforeClose:` +`,beforeComment:` +`,after:` +`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function r(a){return a[0].toUpperCase()+a.slice(1)}var s=class{constructor(a){this.builder=a;}stringify(a,n){if(!this[a.type])throw new Error("Unknown AST node type "+a.type+". Maybe you need to change PostCSS stringifier.");this[a.type](a,n);}document(a){this.body(a);}root(a){this.body(a),a.raws.after&&this.builder(a.raws.after);}comment(a){let n=this.raw(a,"left","commentLeft"),p=this.raw(a,"right","commentRight");this.builder("/*"+n+a.text+p+"*/",a);}decl(a,n){let p=this.raw(a,"between","colon"),o=a.prop+p+this.rawValue(a,"value");a.important&&(o+=a.raws.important||" !important"),n&&(o+=";"),this.builder(o,a);}rule(a){this.block(a,this.rawValue(a,"selector")),a.raws.ownSemicolon&&this.builder(a.raws.ownSemicolon,a,"end");}atrule(a,n){let p="@"+a.name,o=a.params?this.rawValue(a,"params"):"";if(typeof a.raws.afterName<"u"?p+=a.raws.afterName:o&&(p+=" "),a.nodes)this.block(a,p+o);else {let d=(a.raws.between||"")+(n?";":"");this.builder(p+o+d,a);}}body(a){let n=a.nodes.length-1;for(;n>0&&a.nodes[n].type==="comment";)n-=1;let p=this.raw(a,"semicolon");for(let o=0;o{if(o=l.raws[n],typeof o<"u")return !1});}return typeof o>"u"&&(o=i[p]),g.rawCache[p]=o,o}rawSemicolon(a){let n;return a.walk(p=>{if(p.nodes&&p.nodes.length&&p.last.type==="decl"&&(n=p.raws.semicolon,typeof n<"u"))return !1}),n}rawEmptyBody(a){let n;return a.walk(p=>{if(p.nodes&&p.nodes.length===0&&(n=p.raws.after,typeof n<"u"))return !1}),n}rawIndent(a){if(a.raws.indent)return a.raws.indent;let n;return a.walk(p=>{let o=p.parent;if(o&&o!==a&&o.parent&&o.parent===a&&typeof p.raws.before<"u"){let d=p.raws.before.split(` +`);return n=d[d.length-1],n=n.replace(/\S/g,""),!1}}),n}rawBeforeComment(a,n){let p;return a.walkComments(o=>{if(typeof o.raws.before<"u")return p=o.raws.before,p.includes(` +`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(n,null,"beforeDecl"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeDecl(a,n){let p;return a.walkDecls(o=>{if(typeof o.raws.before<"u")return p=o.raws.before,p.includes(` +`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(n,null,"beforeRule"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeRule(a){let n;return a.walk(p=>{if(p.nodes&&(p.parent!==a||a.first!==p)&&typeof p.raws.before<"u")return n=p.raws.before,n.includes(` +`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeClose(a){let n;return a.walk(p=>{if(p.nodes&&p.nodes.length>0&&typeof p.raws.after<"u")return n=p.raws.after,n.includes(` +`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(a){let n;return a.walk(p=>{if(p.type!=="decl"&&(n=p.raws.between,typeof n<"u"))return !1}),n}rawColon(a){let n;return a.walkDecls(p=>{if(typeof p.raws.between<"u")return n=p.raws.between.replace(/[^\s:]/g,""),!1}),n}beforeAfter(a,n){let p;a.type==="decl"?p=this.raw(a,null,"beforeDecl"):a.type==="comment"?p=this.raw(a,null,"beforeComment"):n==="before"?p=this.raw(a,null,"beforeRule"):p=this.raw(a,null,"beforeClose");let o=a.parent,d=0;for(;o&&o.type!=="root";)d+=1,o=o.parent;if(p.includes(` +`)){let g=this.raw(a,null,"indent");if(g.length)for(let f=0;f{var i=Uh();function r(s,a){new i(a).stringify(s);}e.exports=r,r.default=r;}),Rn=ue((t,e)=>{var{isClean:i,my:r}=mf(),s=cf(),a=Uh(),n=Hm();function p(d,g){let f=new d.constructor;for(let l in d){if(!Object.prototype.hasOwnProperty.call(d,l)||l==="proxyCache")continue;let b=d[l],v=typeof b;l==="parent"&&v==="object"?g&&(f[l]=g):l==="source"?f[l]=b:Array.isArray(b)?f[l]=b.map(m=>p(m,f)):(v==="object"&&b!==null&&(b=p(b)),f[l]=b);}return f}var o=class{constructor(d={}){this.raws={},this[i]=!1,this[r]=!0;for(let g in d)if(g==="nodes"){this.nodes=[];for(let f of d[g])typeof f.clone=="function"?this.append(f.clone()):this.append(f);}else this[g]=d[g];}error(d,g={}){if(this.source){let{start:f,end:l}=this.rangeBy(g);return this.source.input.error(d,{line:f.line,column:f.column},{line:l.line,column:l.column},g)}return new s(d)}warn(d,g,f){let l={node:this};for(let b in f)l[b]=f[b];return d.warn(g,l)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(d=n){d.stringify&&(d=d.stringify);let g="";return d(this,f=>{g+=f;}),g}assign(d={}){for(let g in d)this[g]=d[g];return this}clone(d={}){let g=p(this);for(let f in d)g[f]=d[f];return g}cloneBefore(d={}){let g=this.clone(d);return this.parent.insertBefore(this,g),g}cloneAfter(d={}){let g=this.clone(d);return this.parent.insertAfter(this,g),g}replaceWith(...d){if(this.parent){let g=this,f=!1;for(let l of d)l===this?f=!0:f?(this.parent.insertAfter(g,l),g=l):this.parent.insertBefore(g,l);f||this.remove();}return this}next(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d+1]}prev(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d-1]}before(d){return this.parent.insertBefore(this,d),this}after(d){return this.parent.insertAfter(this,d),this}root(){let d=this;for(;d.parent&&d.parent.type!=="document";)d=d.parent;return d}raw(d,g){return new a().raw(this,d,g)}cleanRaws(d){delete this.raws.before,delete this.raws.after,d||delete this.raws.between;}toJSON(d,g){let f={},l=g==null;g=g||new Map;let b=0;for(let v in this){if(!Object.prototype.hasOwnProperty.call(this,v)||v==="parent"||v==="proxyCache")continue;let m=this[v];if(Array.isArray(m))f[v]=m.map(E=>typeof E=="object"&&E.toJSON?E.toJSON(null,g):E);else if(typeof m=="object"&&m.toJSON)f[v]=m.toJSON(null,g);else if(v==="source"){let E=g.get(m.input);E==null&&(E=b,g.set(m.input,b),b++),f[v]={inputId:E,start:m.start,end:m.end};}else f[v]=m;}return l&&(f.inputs=[...g.keys()].map(v=>v.toJSON())),f}positionInside(d){let g=this.toString(),f=this.source.start.column,l=this.source.start.line;for(let b=0;bd.root().toProxy():d[g]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(d){if(d.postcssNode=this,d.stack&&this.source&&/\n\s{4}at /.test(d.stack)){let g=this.source;d.stack=d.stack.replace(/\n\s{4}at /,`$&${g.input.from}:${g.start.line}:${g.start.column}$&`);}return d}markDirty(){if(this[i]){this[i]=!1;let d=this;for(;d=d.parent;)d[i]=!1;}}get proxyOf(){return this}};e.exports=o,o.default=o;}),yf=ue((t,e)=>{var i=Rn(),r=class extends i{constructor(s){s&&typeof s.value<"u"&&typeof s.value!="string"&&(s={...s,value:String(s.value)}),super(s),this.type="decl";}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};e.exports=r,r.default=r;}),gf=ue((t,e)=>{var i="'".charCodeAt(0),r='"'.charCodeAt(0),s="\\".charCodeAt(0),a="/".charCodeAt(0),n=` +`.charCodeAt(0),p=" ".charCodeAt(0),o="\f".charCodeAt(0),d=" ".charCodeAt(0),g="\r".charCodeAt(0),f="[".charCodeAt(0),l="]".charCodeAt(0),b="(".charCodeAt(0),v=")".charCodeAt(0),m="{".charCodeAt(0),E="}".charCodeAt(0),c=";".charCodeAt(0),u="*".charCodeAt(0),y=":".charCodeAt(0),P="@".charCodeAt(0),w=/[\t\n\f\r "#'()/;[\\\]{}]/g,F=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,B=/.[\n"'(/\\]/,G=/[\da-f]/i;e.exports=function(it,ft={}){let ct=it.css.valueOf(),dt=ft.ignoreErrors,Pt,tt,vt,D,O,k,L,K,U,Ht,It=ct.length,Gt=0,Ot=[],ee=[];function ae(){return Gt}function le(pe){throw it.error("Unclosed "+pe,Gt)}function ye(){return ee.length===0&&Gt>=It}function ce(pe){if(ee.length)return ee.pop();if(Gt>=It)return;let Wt=pe?pe.ignoreUnclosed:!1;switch(Pt=ct.charCodeAt(Gt),Pt){case n:case p:case d:case g:case o:{tt=Gt;do tt+=1,Pt=ct.charCodeAt(tt);while(Pt===p||Pt===n||Pt===d||Pt===g||Pt===o);Ht=["space",ct.slice(Gt,tt)],Gt=tt-1;break}case f:case l:case m:case E:case y:case c:case v:{let Nt=String.fromCharCode(Pt);Ht=[Nt,Nt,Gt];break}case b:{if(K=Ot.length?Ot.pop()[1]:"",U=ct.charCodeAt(Gt+1),K==="url"&&U!==i&&U!==r&&U!==p&&U!==n&&U!==d&&U!==o&&U!==g){tt=Gt;do{if(k=!1,tt=ct.indexOf(")",tt+1),tt===-1)if(dt||Wt){tt=Gt;break}else le("bracket");for(L=tt;ct.charCodeAt(L-1)===s;)L-=1,k=!k;}while(k);Ht=["brackets",ct.slice(Gt,tt+1),Gt,tt],Gt=tt;}else tt=ct.indexOf(")",Gt+1),D=ct.slice(Gt,tt+1),tt===-1||B.test(D)?Ht=["(","(",Gt]:(Ht=["brackets",D,Gt,tt],Gt=tt);break}case i:case r:{vt=Pt===i?"'":'"',tt=Gt;do{if(k=!1,tt=ct.indexOf(vt,tt+1),tt===-1)if(dt||Wt){tt=Gt+1;break}else le("string");for(L=tt;ct.charCodeAt(L-1)===s;)L-=1,k=!k;}while(k);Ht=["string",ct.slice(Gt,tt+1),Gt,tt],Gt=tt;break}case P:{w.lastIndex=Gt+1,w.test(ct),w.lastIndex===0?tt=ct.length-1:tt=w.lastIndex-2,Ht=["at-word",ct.slice(Gt,tt+1),Gt,tt],Gt=tt;break}case s:{for(tt=Gt,O=!0;ct.charCodeAt(tt+1)===s;)tt+=1,O=!O;if(Pt=ct.charCodeAt(tt+1),O&&Pt!==a&&Pt!==p&&Pt!==n&&Pt!==d&&Pt!==g&&Pt!==o&&(tt+=1,G.test(ct.charAt(tt)))){for(;G.test(ct.charAt(tt+1));)tt+=1;ct.charCodeAt(tt+1)===p&&(tt+=1);}Ht=["word",ct.slice(Gt,tt+1),Gt,tt],Gt=tt;break}default:{Pt===a&&ct.charCodeAt(Gt+1)===u?(tt=ct.indexOf("*/",Gt+2)+1,tt===0&&(dt||Wt?tt=ct.length:le("comment")),Ht=["comment",ct.slice(Gt,tt+1),Gt,tt],Gt=tt):(F.lastIndex=Gt+1,F.test(ct),F.lastIndex===0?tt=ct.length-1:tt=F.lastIndex-2,Ht=["word",ct.slice(Gt,tt+1),Gt,tt],Ot.push(Ht),Gt=tt);break}}return Gt++,Ht}function Xt(pe){ee.push(pe);}return {back:Xt,nextToken:ce,endOfFile:ye,position:ae}};}),Jh=ue((t,e)=>{var i=Rn(),r=class extends i{constructor(s){super(s),this.type="comment";}};e.exports=r,r.default=r;}),On=ue((t,e)=>{var{isClean:i,my:r}=mf(),s=yf(),a=Jh(),n=Rn(),p,o,d,g;function f(v){return v.map(m=>(m.nodes&&(m.nodes=f(m.nodes)),delete m.source,m))}function l(v){if(v[i]=!1,v.proxyOf.nodes)for(let m of v.proxyOf.nodes)l(m);}var b=class vf extends n{push(m){return m.parent=this,this.proxyOf.nodes.push(m),this}each(m){if(!this.proxyOf.nodes)return;let E=this.getIterator(),c,u;for(;this.indexes[E]{let u;try{u=m(E,c);}catch(y){throw E.addToError(y)}return u!==!1&&E.walk&&(u=E.walk(m)),u})}walkDecls(m,E){return E?m instanceof RegExp?this.walk((c,u)=>{if(c.type==="decl"&&m.test(c.prop))return E(c,u)}):this.walk((c,u)=>{if(c.type==="decl"&&c.prop===m)return E(c,u)}):(E=m,this.walk((c,u)=>{if(c.type==="decl")return E(c,u)}))}walkRules(m,E){return E?m instanceof RegExp?this.walk((c,u)=>{if(c.type==="rule"&&m.test(c.selector))return E(c,u)}):this.walk((c,u)=>{if(c.type==="rule"&&c.selector===m)return E(c,u)}):(E=m,this.walk((c,u)=>{if(c.type==="rule")return E(c,u)}))}walkAtRules(m,E){return E?m instanceof RegExp?this.walk((c,u)=>{if(c.type==="atrule"&&m.test(c.name))return E(c,u)}):this.walk((c,u)=>{if(c.type==="atrule"&&c.name===m)return E(c,u)}):(E=m,this.walk((c,u)=>{if(c.type==="atrule")return E(c,u)}))}walkComments(m){return this.walk((E,c)=>{if(E.type==="comment")return m(E,c)})}append(...m){for(let E of m){let c=this.normalize(E,this.last);for(let u of c)this.proxyOf.nodes.push(u);}return this.markDirty(),this}prepend(...m){m=m.reverse();for(let E of m){let c=this.normalize(E,this.first,"prepend").reverse();for(let u of c)this.proxyOf.nodes.unshift(u);for(let u in this.indexes)this.indexes[u]=this.indexes[u]+c.length;}return this.markDirty(),this}cleanRaws(m){if(super.cleanRaws(m),this.nodes)for(let E of this.nodes)E.cleanRaws(m);}insertBefore(m,E){let c=this.index(m),u=c===0?"prepend":!1,y=this.normalize(E,this.proxyOf.nodes[c],u).reverse();c=this.index(m);for(let w of y)this.proxyOf.nodes.splice(c,0,w);let P;for(let w in this.indexes)P=this.indexes[w],c<=P&&(this.indexes[w]=P+y.length);return this.markDirty(),this}insertAfter(m,E){let c=this.index(m),u=this.normalize(E,this.proxyOf.nodes[c]).reverse();c=this.index(m);for(let P of u)this.proxyOf.nodes.splice(c+1,0,P);let y;for(let P in this.indexes)y=this.indexes[P],c=m&&(this.indexes[c]=E-1);return this.markDirty(),this}removeAll(){for(let m of this.proxyOf.nodes)m.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(m,E,c){return c||(c=E,E={}),this.walkDecls(u=>{E.props&&!E.props.includes(u.prop)||E.fast&&!u.value.includes(E.fast)||(u.value=u.value.replace(m,c));}),this.markDirty(),this}every(m){return this.nodes.every(m)}some(m){return this.nodes.some(m)}index(m){return typeof m=="number"?m:(m.proxyOf&&(m=m.proxyOf),this.proxyOf.nodes.indexOf(m))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(m,E){if(typeof m=="string")m=f(p(m).nodes);else if(Array.isArray(m)){m=m.slice(0);for(let c of m)c.parent&&c.parent.removeChild(c,"ignore");}else if(m.type==="root"&&this.type!=="document"){m=m.nodes.slice(0);for(let c of m)c.parent&&c.parent.removeChild(c,"ignore");}else if(m.type)m=[m];else if(m.prop){if(typeof m.value>"u")throw new Error("Value field is missed in node creation");typeof m.value!="string"&&(m.value=String(m.value)),m=[new s(m)];}else if(m.selector)m=[new o(m)];else if(m.name)m=[new d(m)];else if(m.text)m=[new a(m)];else throw new Error("Unknown node type in node creation");return m.map(c=>(c[r]||vf.rebuild(c),c=c.proxyOf,c.parent&&c.parent.removeChild(c),c[i]&&l(c),typeof c.raws.before>"u"&&E&&typeof E.raws.before<"u"&&(c.raws.before=E.raws.before.replace(/\S/g,"")),c.parent=this.proxyOf,c))}getProxyProcessor(){return {set(m,E,c){return m[E]===c||(m[E]=c,(E==="name"||E==="params"||E==="selector")&&m.markDirty()),!0},get(m,E){return E==="proxyOf"?m:m[E]?E==="each"||typeof E=="string"&&E.startsWith("walk")?(...c)=>m[E](...c.map(u=>typeof u=="function"?(y,P)=>u(y.toProxy(),P):u)):E==="every"||E==="some"?c=>m[E]((u,...y)=>c(u.toProxy(),...y)):E==="root"?()=>m.root().toProxy():E==="nodes"?m.nodes.map(c=>c.toProxy()):E==="first"||E==="last"?m[E].toProxy():m[E]:m[E]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let m=this.lastEach;return this.indexes[m]=0,m}};b.registerParse=v=>{p=v;},b.registerRule=v=>{o=v;},b.registerAtRule=v=>{d=v;},b.registerRoot=v=>{g=v;},e.exports=b,b.default=b,b.rebuild=v=>{v.type==="atrule"?Object.setPrototypeOf(v,d.prototype):v.type==="rule"?Object.setPrototypeOf(v,o.prototype):v.type==="decl"?Object.setPrototypeOf(v,s.prototype):v.type==="comment"?Object.setPrototypeOf(v,a.prototype):v.type==="root"&&Object.setPrototypeOf(v,g.prototype),v[r]=!0,v.nodes&&v.nodes.forEach(m=>{b.rebuild(m);});};}),qm=ue((t,e)=>{var i=On(),r=class extends i{constructor(s){super(s),this.type="atrule";}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}};e.exports=r,r.default=r,i.registerAtRule(r);}),$m=ue((t,e)=>{var i=On(),r,s,a=class extends i{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[]);}removeChild(n,p){let o=this.index(n);return !p&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),super.removeChild(n)}normalize(n,p,o){let d=super.normalize(n);if(p){if(o==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let g of d)g.raws.before=p.raws.before;}return d}toResult(n={}){return new r(new s,this,n).stringify()}};a.registerLazyResult=n=>{r=n;},a.registerProcessor=n=>{s=n;},e.exports=a,a.default=a,i.registerRoot(a);}),Wm=ue((t,e)=>{var i={split(r,s,a){let n=[],p="",o=!1,d=0,g=!1,f="",l=!1;for(let b of r)l?l=!1:b==="\\"?l=!0:g?b===f&&(g=!1):b==='"'||b==="'"?(g=!0,f=b):b==="("?d+=1:b===")"?d>0&&(d-=1):d===0&&s.includes(b)&&(o=!0),o?(p!==""&&n.push(p.trim()),p="",o=!1):p+=b;return (a||p!=="")&&n.push(p.trim()),n},space(r){let s=[" ",` +`," "];return i.split(r,s)},comma(r){return i.split(r,[","],!0)}};e.exports=i,i.default=i;}),Um=ue((t,e)=>{var i=On(),r=Wm(),s=class extends i{constructor(a){super(a),this.type="rule",this.nodes||(this.nodes=[]);}get selectors(){return r.comma(this.selector)}set selectors(a){let n=this.selector?this.selector.match(/,\s*/):null,p=n?n[0]:","+this.raw("between","beforeOpen");this.selector=a.join(p);}};e.exports=s,s.default=s,i.registerRule(s);}),Jm=ue((t,e)=>{var i=yf(),r=gf(),s=Jh(),a=qm(),n=$m(),p=Um(),o={empty:!0,space:!0};function d(f){for(let l=f.length-1;l>=0;l--){let b=f[l],v=b[3]||b[2];if(v)return v}}var g=class{constructor(f){this.input=f,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:f,start:{offset:0,line:1,column:1}};}createTokenizer(){this.tokenizer=r(this.input);}parse(){let f;for(;!this.tokenizer.endOfFile();)switch(f=this.tokenizer.nextToken(),f[0]){case"space":this.spaces+=f[1];break;case";":this.freeSemicolon(f);break;case"}":this.end(f);break;case"comment":this.comment(f);break;case"at-word":this.atrule(f);break;case"{":this.emptyRule(f);break;default:this.other(f);break}this.endFile();}comment(f){let l=new s;this.init(l,f[2]),l.source.end=this.getPosition(f[3]||f[2]);let b=f[1].slice(2,-2);if(/^\s*$/.test(b))l.text="",l.raws.left=b,l.raws.right="";else {let v=b.match(/^(\s*)([^]*\S)(\s*)$/);l.text=v[2],l.raws.left=v[1],l.raws.right=v[3];}}emptyRule(f){let l=new p;this.init(l,f[2]),l.selector="",l.raws.between="",this.current=l;}other(f){let l=!1,b=null,v=!1,m=null,E=[],c=f[1].startsWith("--"),u=[],y=f;for(;y;){if(b=y[0],u.push(y),b==="("||b==="[")m||(m=y),E.push(b==="("?")":"]");else if(c&&v&&b==="{")m||(m=y),E.push("}");else if(E.length===0)if(b===";")if(v){this.decl(u,c);return}else break;else if(b==="{"){this.rule(u);return}else if(b==="}"){this.tokenizer.back(u.pop()),l=!0;break}else b===":"&&(v=!0);else b===E[E.length-1]&&(E.pop(),E.length===0&&(m=null));y=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(l=!0),E.length>0&&this.unclosedBracket(m),l&&v){if(!c)for(;u.length&&(y=u[u.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,c);}else this.unknownWord(u);}rule(f){f.pop();let l=new p;this.init(l,f[0][2]),l.raws.between=this.spacesAndCommentsFromEnd(f),this.raw(l,"selector",f),this.current=l;}decl(f,l){let b=new i;this.init(b,f[0][2]);let v=f[f.length-1];for(v[0]===";"&&(this.semicolon=!0,f.pop()),b.source.end=this.getPosition(v[3]||v[2]||d(f));f[0][0]!=="word";)f.length===1&&this.unknownWord(f),b.raws.before+=f.shift()[1];for(b.source.start=this.getPosition(f[0][2]),b.prop="";f.length;){let u=f[0][0];if(u===":"||u==="space"||u==="comment")break;b.prop+=f.shift()[1];}b.raws.between="";let m;for(;f.length;)if(m=f.shift(),m[0]===":"){b.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),b.raws.between+=m[1];(b.prop[0]==="_"||b.prop[0]==="*")&&(b.raws.before+=b.prop[0],b.prop=b.prop.slice(1));let E=[],c;for(;f.length&&(c=f[0][0],!(c!=="space"&&c!=="comment"));)E.push(f.shift());this.precheckMissedSemicolon(f);for(let u=f.length-1;u>=0;u--){if(m=f[u],m[1].toLowerCase()==="!important"){b.important=!0;let y=this.stringFrom(f,u);y=this.spacesFromEnd(f)+y,y!==" !important"&&(b.raws.important=y);break}else if(m[1].toLowerCase()==="important"){let y=f.slice(0),P="";for(let w=u;w>0;w--){let F=y[w][0];if(P.trim().indexOf("!")===0&&F!=="space")break;P=y.pop()[1]+P;}P.trim().indexOf("!")===0&&(b.important=!0,b.raws.important=P,f=y);}if(m[0]!=="space"&&m[0]!=="comment")break}f.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(b.raws.between+=E.map(u=>u[1]).join(""),E=[]),this.raw(b,"value",E.concat(f),l),b.value.includes(":")&&!l&&this.checkMissedSemicolon(f);}atrule(f){let l=new a;l.name=f[1].slice(1),l.name===""&&this.unnamedAtrule(l,f),this.init(l,f[2]);let b,v,m,E=!1,c=!1,u=[],y=[];for(;!this.tokenizer.endOfFile();){if(f=this.tokenizer.nextToken(),b=f[0],b==="("||b==="["?y.push(b==="("?")":"]"):b==="{"&&y.length>0?y.push("}"):b===y[y.length-1]&&y.pop(),y.length===0)if(b===";"){l.source.end=this.getPosition(f[2]),this.semicolon=!0;break}else if(b==="{"){c=!0;break}else if(b==="}"){if(u.length>0){for(m=u.length-1,v=u[m];v&&v[0]==="space";)v=u[--m];v&&(l.source.end=this.getPosition(v[3]||v[2]));}this.end(f);break}else u.push(f);else u.push(f);if(this.tokenizer.endOfFile()){E=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(l.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(l,"params",u),E&&(f=u[u.length-1],l.source.end=this.getPosition(f[3]||f[2]),this.spaces=l.raws.between,l.raws.between="")):(l.raws.afterName="",l.params=""),c&&(l.nodes=[],this.current=l);}end(f){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(f[2]),this.current=this.current.parent):this.unexpectedClose(f);}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;}freeSemicolon(f){if(this.spaces+=f[1],this.current.nodes){let l=this.current.nodes[this.current.nodes.length-1];l&&l.type==="rule"&&!l.raws.ownSemicolon&&(l.raws.ownSemicolon=this.spaces,this.spaces="");}}getPosition(f){let l=this.input.fromOffset(f);return {offset:f,line:l.line,column:l.col}}init(f,l){this.current.push(f),f.source={start:this.getPosition(l),input:this.input},f.raws.before=this.spaces,this.spaces="",f.type!=="comment"&&(this.semicolon=!1);}raw(f,l,b,v){let m,E,c=b.length,u="",y=!0,P,w;for(let F=0;FB+G[1],"");f.raws[l]={value:u,raw:F};}f[l]=u;}spacesAndCommentsFromEnd(f){let l,b="";for(;f.length&&(l=f[f.length-1][0],!(l!=="space"&&l!=="comment"));)b=f.pop()[1]+b;return b}spacesAndCommentsFromStart(f){let l,b="";for(;f.length&&(l=f[0][0],!(l!=="space"&&l!=="comment"));)b+=f.shift()[1];return b}spacesFromEnd(f){let l,b="";for(;f.length&&(l=f[f.length-1][0],l==="space");)b=f.pop()[1]+b;return b}stringFrom(f,l){let b="";for(let v=l;v=0&&(v=f[m],!(v[0]!=="space"&&(b+=1,b===2)));m--);throw this.input.error("Missed semicolon",v[0]==="word"?v[3]+1:v[2])}};e.exports=g;}),na=ue((t,e)=>{var i=On(),r=s=>{let a=`walk${s.name}`;a.lastIndexOf("s")!==a.length-1&&(a+="s"),!i.prototype[a]&&(i.prototype[a]=function(n){return this.walkType(s,n)});};i.prototype.walkType=function(s,a){if(!s||!a)throw new Error("Parameters {type} and {callback} are required.");let n=typeof s=="function";return this.walk((p,o)=>{if(n&&p instanceof s||!n&&p.type===s)return a.call(this,p,o)})},e.exports={registerWalker:r};}),Bn=ue((t,e)=>{var i=Uh();e.exports=class bf extends i{static stringify(s,a){new bf(a).stringify(s);}basic(s,a){let n=a||s.value,p=s.raws.after&&this.raw(s,"after")||"";this.builder(n,s,"start"),this.builder(p,s,"end");}atword(...s){this.atrule(...s);}comment(s){if(s.inline){let a=this.raw(s,"left","commentLeft"),n=this.raw(s,"right","commentRight");this.builder(`//${a}${s.text}${n}`,s);}else super.comment(s);}func(s){let a=this.raw(s,"after")||"";this.builder(`${s.name}(`,s,"start");for(let n of s.nodes){let p=n.raws.before?this.raw(n,"before"):"";p&&this.builder(p),this.stringify(n);}this.builder(`)${a}`,s,"end");}interpolation(s){this.basic(s,s.prefix+s.params);}numeric(s){let a=s.value+s.unit;this.basic(s,a);}operator(s){this.basic(s);}punctuation(s){this.basic(s);}quoted(s){this.basic(s);}unicodeRange(s){this.basic(s);}word(s){this.basic(s);}};}),Xm=ue((t,e)=>{var i=Rn(),{registerWalker:r}=na(),{stringify:s}=Bn(),a=class extends i{toString(n=s){return super.toString(n)}};r(a),e.exports=a;}),Ym=ue((t,e)=>{var i=Jh(),{stringify:r}=Bn(),s=/(\/\/)/,a=class extends i{static testInline(n){return s.test(n[1])}static tokenizeNext(n,p){let[o]=n,d=n.findIndex(m=>/\n/.test(m[1])),g=n,f=[];d>=0&&(g=n.slice(0,d),f=n.slice(d)),g=g.map(m=>m[1]);let l=g.concat("~~").join(""),b=g[g.length-1],v=["comment",l,o[2],o[3],b[2],b[3]];p.back([v,...f]);}static tokenizeInline(n,p){let[o,...d]=n,g=o[1].split(/(\/\/.+)/).filter(E=>!!E),f=[],[,,l,,b]=o,[,,,v,,m]=o;for(let E of g){let c=E.slice(0,2)==="//",u=c?"comment":"word";c&&(E+="~~"),E!==g[0]&&(v=m+1),m=v+E.length-1,f.push([u,E,l,v,b,m]);}p.back(f.concat(d));}toString(n=r){return super.toString(n)}};e.exports=a;}),_f=ue((t,e)=>{var i=df(),r=gf(),s=["*","-","%","+","/"],a=/([*/])/g,n=(f,l)=>{let[,,b,v,m,E]=f,c=f[1].slice(1,f[1].length-1),u=o(c);for(let P of u)if(P[0]!=="space"){let w=P[5]-P[3];P[2]=b,P[3]+=v,P[4]+=m-1,P[5]=P[3]+w;}let y=[["(","(",b,v,b,v],...u];y.push([")",")",b,E,m,E]);for(let P of y.reverse())l.back(P);},p=(f,l)=>{let b=f[1].split(/([,])/),v=[],[,,m,,E]=f,[,,,c,,u]=f;for(let y of b){y=y||",";let P=y===","?"comma":"word";y!==b[0]&&(c=u+1),u=c+y.length-1,v.push([P,y,m,c,E,u]);}for(let y of v.reverse())l.back(y);},o=f=>{let l=new i(f,{}),b=g(l),v=[];for(;!b.endOfFile();){let m=b.nextToken();v.push(m);}return v},d=(f,l)=>{let[,b,v,,m,E]=f,c=b.split(a),[,,,u]=f,y=c.map(P=>{let w=[s.includes(P)?"operator":"word",P,v,u,m,E];return u+=P.length,w});for(let P of y.reverse())l.back(P);},g=(...f)=>{let l=r(...f),b=l.nextToken;return l.nextToken=(...v)=>{let m=b(...v);if(!m)return m;let[E,c]=m;return E==="brackets"?(n(m,l),m=b(...v)):E==="word"&&(s.includes(c)?m[0]="operator":a.test(c)?(d(m,l),m=b(...v)):c.length>1&&c.includes(",")&&(p(m,l),m=b(...v))),m},l};e.exports={getTokens:o,tokenizer:g};}),xf=ue((t,e)=>{var i=On(),{stringify:r}=Bn(),s=class extends i{toString(a=r){return super.toString(a)}};e.exports=s;}),nn=ue((t,e)=>{var i=Rn(),{stringify:r}=Bn(),s=class extends i{toString(a=r){return super.toString(a||{})}};e.exports=s;}),Pf=ue((t,e)=>{var{getTokens:i}=_f(),{registerWalker:r}=na(),s=nn(),a=class Sf extends s{constructor(p){super(p),this.type="punctuation";}static get chars(){return [",",":","(",")","[","]","{","}"]}static fromTokens(p,o){o.fromFirst(p,Sf);}static tokenizeBrackets(p,o){let[d,...g]=p,f=d[1].split(/([()])/g).filter(c=>!!c),l=[],[,,b,,v]=d,[,,,m,,E]=d;for(let c of f){let u=c==="("?"(":c===")"?")":"word";if(/^\s+$/.test(c)&&(u="space"),c!==f[0]&&(m=E+1),E=m+c.length-1,u==="word"){let y=i(c);for(let P of y)P[3]+=m-1,l.push(P);}else l.push([u,c,b,m,v,E]);}o.back(l.concat(g));}static tokenizeCommas(p,o){let[d,...g]=p,f=d[1].split(/([,])/g).filter(c=>!!c),l=[],[,,b,,v]=d,[,,,m,,E]=d;for(let c of f)c!==f[0]&&(m=E+1),E=m+c.length-1,l.push(["word",c,b,m,v,E]);o.back(l.concat(g));}};r(a),e.exports=a;}),Zm=ue((t,e)=>{var{getTokens:i}=_f(),{registerWalker:r}=na(),s=xf(),a=Pf(),n=["annotation","attr","blur","brightness","calc","character-variant","circle","contrast","cubic-bezier","dir","drop-shadow","element","ellipse","grayscale","hsl","hsla","hue-rotate","image","inset","invert","lang","linear-gradient","matrix","matrix3d","minmax","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","opacity","ornaments","perspective","polygon","radial-gradient","rect","repeat","repeating-linear-gradient","repeating-radial-gradient","rgb","rgba","rotate","rotatex","rotatey","rotatez","rotate3d","saturate","scale","scalex","scaley","scalez","scale3d","sepia","skew","skewx","skewy","steps","styleset","stylistic","swash","symbols","translate","translatex","translatey","translatez","translate3d","url","var"],p=["-webkit-","-moz-","-ms-","-o-"],o=new RegExp(`^(${p.join("|")})?(${n.join("|")})`,"i"),d=new RegExp(`^(\\${a.chars.join("|\\")})`),g=/^(hsla?|hwb|lab|lch|rgba?)$/i,f=/^var$/i,l=/^--[^\s]+$/,b=class kf extends s{constructor(m={}){super(m),this.type="func",this.isColor=!1,this.isVar=!1,this.name=m.name||"",this.nodes||(this.nodes=[]);}static test(m){return m.length>1&&m[0][0]==="word"&&!d.test(m[0][1])&&(m[1][0]==="brackets"||m[1][0]==="(")}static fromTokens(m,E){let[[,,c,u]]=m,[y,P]=m.splice(0,2),w=new kf({name:y[1]}),F=0,B=1,G=P;if(!o.test(w.name)&&!/^[a-zA-Z\-\.]+$/.test(w.name)){let Pt=i(w.name);m.unshift(...Pt,P),E.back(m);return}E.init(w,c,u),E.current=w,P[0]==="brackets"&&(B=P[1].match(/[(]/g).length-1);let it=[];for(let Pt of m)F{var{registerWalker:i}=na(),r=xf(),s=class Ef extends r{constructor(n={}){super(n),this.type="interpolation",this.prefix=n.prefix||"",this.nodes||(this.nodes=[]);}static test(n,p){let{prefix:o}=p.options.interpolation,[d,g]=n;return n.length>1&&d[0]==="word"&&o===d[1]&&g[0]==="{"}static fromTokens(n,p){let[[,,o,d]]=n,[g]=n.splice(0,2),[,f]=g,l=new Ef({prefix:f}),b=[],v=!1,m,E="{";p.init(l,o,d),p.current=l;for(let u of n)v?b.push(u):(u[1]==="}"&&(v=!0),E+=u[1],m=u);v||p.unclosedBracket(g),l.params=E;let c=E.slice(1,-1);if(c.length){let{parse:u}=Xh(),{nodes:y}=u(c,p.options);for(let P of y)l.push(P);}p.end(m),p.back(b);}};i(s),e.exports=s;}),Qm=ue((t,e)=>{var{registerWalker:i}=na(),r=nn(),s=/^([+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)$/,a=/^(-?(?:[-A-Z_a-z]|[^\x00-\x7F]|\\[^\n\f\r])(?:[-\w]|[^\x00-\x7F]|\\[^\n\f\r])*|%)$/,n=new RegExp(`^${s.source.slice(1,-1)+a.source.slice(1,-1)}?$`),p=class Af extends r{constructor(d={}){super(d),this.type="numeric",this.unit=d.unit||"";}static fromTokens(d,g){g.fromFirst(d,Af);let[[,f]]=d,[,l,b=""]=f.match(n),{lastNode:v}=g;v.unit=b,v.value=l;}static test(d){return n.test(d)}};i(p),e.exports=p;}),t0=ue((t,e)=>{var{registerWalker:i}=na(),r=nn(),s=["+","-","/","*","%","=","<=",">=","<",">"],a=new RegExp("([/|*}])"),n=/^[*/]\b/,p=class Cf extends r{constructor(d){super(d),this.type="operator";}static get chars(){return s}static fromTokens(d,g){g.fromFirst(d,Cf);}static get regex(){return a}static test(d,g){let[f]=d,[,l]=f,{lastNode:b}=g;return b&&b.type==="func"&&n.test(l)}static tokenize(d,g){let[f,...l]=d,[,b,v,,m,E]=f,c=b.split(a).filter(P=>!!P),[,,,u]=f,y=c.map(P=>{let w=["word",P,v,u,m,E];return u+=P.length,w});g.back(y.concat(l));}};i(p),e.exports=p;}),e0=ue(t=>{var e=t.single=function(r){return "'"+r.replace(/\\|'/g,function(s){return "\\"+s})+"'"},i=t.double=function(r){return '"'+r.replace(/\\|"/g,function(s){return "\\"+s})+'"'};t.quote=function(r){return /'/.test(r)?i(r):e(r)},t.unquote=function(r){var s=r[0],a=s==="'";return r.substring(1,r.length-1).replace(/\\\\/g,"\\").replace(a?/\\'/g:/\\"/g,s)};}),i0=ue((t,e)=>{var{unquote:i}=e0(),{registerWalker:r}=na(),s=nn(),a=class wf extends s{constructor(p){super(p),this.type="quoted",p&&p.value&&(this.contents=i(p.value),[this.quote]=p.value);}static fromTokens(p,o){o.fromFirst(p,wf);}};r(a),e.exports=a;}),r0=ue((t,e)=>{var{registerWalker:i}=na(),r=nn(),s=class Tf extends r{constructor(n){super(n),this.type="unicodeRange";}static fromTokens(n,p){p.fromFirst(n,Tf);}static test(n){return /U\+(\d|\w)+(-\w+)?(\?+)?/.test(n)}};i(s),e.exports=s;}),s0=ue((t,e)=>{e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};}),a0=ue((t,e)=>{e.exports=i=>{if(typeof i!="string")throw new TypeError("Expected a string");try{return new URL(i),!0}catch{return !1}};}),n0=ue((t,e)=>{var i=s0(),r=a0(),{registerWalker:s}=na(),a=nn(),n=/^\\(.+)/,p=/^#(.+)/,o=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,d=Object.keys(i),g=class an extends a{constructor(l){super(l),this.type="word",this.isColor=!1,this.isHex=!1,this.isUrl=!1,this.isVariable=!1;}static fromTokens(l,b){b.fromFirst(l,an);let{lastNode:v}=b,{value:m}=v;v.isColor=o.test(m)||d.includes(m.toLowerCase()),v.isHex=p.test(m),v.isUrl=m.startsWith("//")?r(`http:${m}`):r(m),v.isVariable=an.testVariable(l[0],b);}static testEscaped(l){let[b,v]=l,[m,E]=b;return m==="word"&&(n.test(E)||E==="\\"&&v&&!/^\s+$/.test(v[1]))}static testHex(l){let[b,v]=l;return b==="word"&&p.test(v)}static testVariable(l,b){let[v,m]=l,{prefixes:E}=b.options.variables,c=new RegExp(`^(${E.join("|")})`);return v==="word"&&c.test(m)}static testWord(l,b){let[v]=l;return an.testEscaped(l)||an.testHex(v)||an.testVariable(v,b)}};s(g),e.exports=g;}),o0=ue((t,e)=>{var i=Jm(),r=Xm(),s=Ym(),a=Zm(),n=Km(),p=Qm(),o=t0(),d=Pf(),g=i0(),f=r0(),l=n0(),b={ignoreUnknownWords:!1,interpolation:!1,parentNode:null,variables:{prefixes:["--"]}};e.exports=class extends i{constructor(v,m={}){super(v),this.lastNode=null,this.options=Object.assign({},b,m),this.parentNode=this.options.parentNode;}back(v){for(let m of v.reverse())this.tokenizer.back(m);}comment(v){super.comment(v);let m=s.testInline(v),E=this.lastNode;E.inline=m,Object.setPrototypeOf(E,s.prototype);}fromFirst(v,m){let[E]=v,[,c,u,y]=E,P=new m({value:c});this.init(P,u,y),this.current=P,this.end(E),this.back(v.slice(1));}init(v,m,E){super.init(v,m,E),this.lastNode=v;}other(v){let m=[],E=[],c=v,u=null,y=null;for(;c;)[u]=c,E.push(c),u==="("||u==="["?(y||(y=c),m.push(u==="("?")":"]")):u===m[m.length-1]&&(m.pop(),m.length===0&&(y=null)),c=this.tokenizer.nextToken();m.length>0&&this.unclosedBracket(y),this.unknownWord(E);}parse(){let v;for(;!this.tokenizer.endOfFile();)switch(v=this.tokenizer.nextToken(),v[0]){case"space":this.spaces+=v[1];break;case"comment":this.comment(v);break;case"at-word":this.atrule(v),Object.setPrototypeOf(this.lastNode,r.prototype),this.lastNode.type="atword";break;default:this.other(v);break}this.endFile();}unknownWord(v){let[m]=v,[E,c]=m;if(d.chars.includes(E))d.fromTokens(v,this);else if(E==="word"&&o.test(v,this))o.fromTokens(v,this);else if(a.test(v))a.fromTokens(v,this);else if(this.options.interpolation&&n.test(v,this))n.fromTokens(v,this);else if(E==="brackets")d.tokenizeBrackets(v,this);else if(E==="comma")d.fromTokens(v,this);else if(E==="operator")o.fromTokens(v,this);else if(E==="string")g.fromTokens(v,this);else if(E==="word")if(c===",")d.fromTokens(v,this);else if(c==="//")s.tokenizeNext(v,this);else if(s.testInline(m)){let{parentNode:u}=this;u&&u.type==="func"&&u.name==="url"?l.fromTokens(v,this):s.tokenizeInline(v,this);}else c.includes(",")?d.tokenizeCommas(v,this):l.testWord(v,this)?l.fromTokens(v,this):p.test(c)?p.fromTokens(v,this):f.test(c)?f.fromTokens(v,this):o.chars.includes(c)?o.fromTokens(v,this):/^[\w-]+$/.test(c)?l.fromTokens(v,this):o.regex.test(c)?o.tokenize(v,this):this.options.ignoreUnknownWords?l.fromTokens(v,this):super.unknownWord(v);else super.unknownWord(v);}};}),Xh=ue((t,e)=>{var i=df(),r=o0(),{stringify:s}=Bn();e.exports={parse(a,n){let p=new i(a,n),o=new r(p,n);o.parse();let{root:d}=o,g=d.toString;function f(l){return g.bind(d)(l||e.exports.stringify)}return d.toString=f.bind(d),o.root},stringify:s,nodeToString(a){let n="";return e.exports.stringify(a,p=>{n+=p;}),n}};}),h0=ue(t=>{var e=e||{};e.stringify=function(){var i={"visit_linear-gradient":function(r){return i.visit_gradient(r)},"visit_repeating-linear-gradient":function(r){return i.visit_gradient(r)},"visit_radial-gradient":function(r){return i.visit_gradient(r)},"visit_repeating-radial-gradient":function(r){return i.visit_gradient(r)},visit_gradient:function(r){var s=i.visit(r.orientation);return s&&(s+=", "),r.type+"("+s+i.visit(r.colorStops)+")"},visit_shape:function(r){var s=r.value,a=i.visit(r.at),n=i.visit(r.style);return n&&(s+=" "+n),a&&(s+=" at "+a),s},"visit_default-radial":function(r){var s="",a=i.visit(r.at);return a&&(s+=a),s},"visit_extent-keyword":function(r){var s=r.value,a=i.visit(r.at);return a&&(s+=" at "+a),s},"visit_position-keyword":function(r){return r.value},visit_position:function(r){return i.visit(r.value.x)+" "+i.visit(r.value.y)},"visit_%":function(r){return r.value+"%"},visit_em:function(r){return r.value+"em"},visit_px:function(r){return r.value+"px"},visit_literal:function(r){return i.visit_color(r.value,r)},visit_hex:function(r){return i.visit_color("#"+r.value,r)},visit_rgb:function(r){return i.visit_color("rgb("+r.value.join(", ")+")",r)},visit_rgba:function(r){return i.visit_color("rgba("+r.value.join(", ")+")",r)},visit_color:function(r,s){var a=r,n=i.visit(s.length);return n&&(a+=" "+n),a},visit_angular:function(r){return r.value+"deg"},visit_directional:function(r){return "to "+r.value},visit_array:function(r){var s="",a=r.length;return r.forEach(function(n,p){s+=i.visit(n),p0&&s("Invalid input not EOF"),L}function n(){return w(p)}function p(){return o("linear-gradient",i.linearGradient,g)||o("repeating-linear-gradient",i.repeatingLinearGradient,g)||o("radial-gradient",i.radialGradient,b)||o("repeating-radial-gradient",i.repeatingRadialGradient,b)}function o(L,K,U){return d(K,function(Ht){var It=U();return It&&(O(i.comma)||s("Missing comma before color stops")),{type:L,orientation:It,colorStops:w(F)}})}function d(L,K){var U=O(L);if(U){O(i.startCall)||s("Missing (");var Ht=K(U);return O(i.endCall)||s("Missing )"),Ht}}function g(){return f()||l()}function f(){return D("directional",i.sideOrCorner,1)}function l(){return D("angular",i.angleValue,1)}function b(){var L,K=v(),U;return K&&(L=[],L.push(K),U=r,O(i.comma)&&(K=v(),K?L.push(K):r=U)),L}function v(){var L=m()||E();if(L)L.at=u();else {var K=c();if(K){L=K;var U=u();U&&(L.at=U);}else {var Ht=y();Ht&&(L={type:"default-radial",at:Ht});}}return L}function m(){var L=D("shape",/^(circle)/i,0);return L&&(L.style=vt()||c()),L}function E(){var L=D("shape",/^(ellipse)/i,0);return L&&(L.style=Pt()||c()),L}function c(){return D("extent-keyword",i.extentKeywords,1)}function u(){if(D("position",/^at/,0)){var L=y();return L||s("Missing positioning value"),L}}function y(){var L=P();if(L.x||L.y)return {type:"position",value:L}}function P(){return {x:Pt(),y:Pt()}}function w(L){var K=L(),U=[];if(K)for(U.push(K);O(i.comma);)K=L(),K?U.push(K):s("One extra comma");return U}function F(){var L=B();return L||s("Expected color definition"),L.length=Pt(),L}function B(){return it()||ct()||ft()||G()}function G(){return D("literal",i.literalColor,0)}function it(){return D("hex",i.hexColor,1)}function ft(){return d(i.rgbColor,function(){return {type:"rgb",value:w(dt)}})}function ct(){return d(i.rgbaColor,function(){return {type:"rgba",value:w(dt)}})}function dt(){return O(i.number)[1]}function Pt(){return D("%",i.percentageValue,1)||tt()||vt()}function tt(){return D("position-keyword",i.positionKeywords,1)}function vt(){return D("px",i.pixelValue,1)||D("em",i.emValue,1)}function D(L,K,U){var Ht=O(K);if(Ht)return {type:L,value:Ht[U]}}function O(L){var K,U;return U=/^[\n\r\t\s]+/.exec(r),U&&k(U[0].length),K=L.exec(r),K&&k(K[0].length),K}function k(L){r=r.substr(L);}return function(L){return r=L.toString(),a()}}(),t.parse=e.parse,t.stringify=e.stringify;}),Bi=as(Gm(),1);Bi.default.stringify;Bi.default.fromJSON;Bi.default.plugin;l0=Bi.default.parse;Bi.default.list;Bi.default.document;Bi.default.comment;Bi.default.atRule;Bi.default.rule;Bi.default.decl;Bi.default.root;Bi.default.CssSyntaxError;Bi.default.Declaration;Bi.default.Container;Bi.default.Processor;Bi.default.Document;Bi.default.Comment;Bi.default.Warning;Bi.default.AtRule;Bi.default.Result;Bi.default.Input;Bi.default.Rule;Bi.default.Root;Bi.default.Node;Dh=function(t,e,i){let r={type:String(t)};return i==null&&(typeof e=="string"||Array.isArray(e))?i=e:Object.assign(r,e),Array.isArray(i)?r.children=i:i!=null&&(r.value=String(i)),r},p0="root",f0="rule",c0="declaration";d0={grad:.9,turn:360,rad:360/(2*Math.PI)},aa=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},ur=function(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=Math.pow(10,e)),Math.round(i*t)/i+0},bs=function(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=1),t>i?i:t>e?t:e},Mf=function(t){return (t=isFinite(t)?t%360:0)>0?t:t+360},Np=function(t){return {r:bs(t.r,0,255),g:bs(t.g,0,255),b:bs(t.b,0,255),a:bs(t.a)}},Fh=function(t){return {r:ur(t.r),g:ur(t.g),b:ur(t.b),a:ur(t.a,3)}},m0=/^#([0-9a-f]{3,8})$/i,vo=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Df=function(t){var e=t.r,i=t.g,r=t.b,s=t.a,a=Math.max(e,i,r),n=a-Math.min(e,i,r),p=n?a===e?(i-r)/n:a===i?2+(r-e)/n:4+(e-i)/n:0;return {h:60*(p<0?p+6:p),s:a?n/a*100:0,v:a/255*100,a:s}},Ff=function(t){var e=t.h,i=t.s,r=t.v,s=t.a;e=e/360*6,i/=100,r/=100;var a=Math.floor(e),n=r*(1-i),p=r*(1-(e-a)*i),o=r*(1-(1-e+a)*i),d=a%6;return {r:255*[r,p,n,n,o,r][d],g:255*[o,r,r,p,n,n][d],b:255*[n,n,o,r,r,p][d],a:s}},Gp=function(t){return {h:Mf(t.h),s:bs(t.s,0,100),l:bs(t.l,0,100),a:bs(t.a)}},jp=function(t){return {h:ur(t.h),s:ur(t.s),l:ur(t.l),a:ur(t.a,3)}},Hp=function(t){return Ff((i=(e=t).s,{h:e.h,s:(i*=((r=e.l)<50?r:100-r)/100)>0?2*i/(r+i)*100:0,v:r+i,a:e.a}));var e,i,r;},Dn=function(t){return {h:(e=Df(t)).h,s:(s=(200-(i=e.s))*(r=e.v)/100)>0&&s<200?i*r/100/(s<=100?s:200-s)*100:0,l:s/2,a:e.a};var e,i,r,s;},y0=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,g0=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v0=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b0=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Rh={string:[[function(t){var e=m0.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?ur(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?ur(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=v0.exec(t)||b0.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:Np({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=y0.exec(t)||g0.exec(t);if(!e)return null;var i,r,s=Gp({h:(i=e[1],r=e[2],r===void 0&&(r="deg"),Number(i)*(d0[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Hp(s)},"hsl"]],object:[[function(t){var e=t.r,i=t.g,r=t.b,s=t.a,a=s===void 0?1:s;return aa(e)&&aa(i)&&aa(r)?Np({r:Number(e),g:Number(i),b:Number(r),a:Number(a)}):null},"rgb"],[function(t){var e=t.h,i=t.s,r=t.l,s=t.a,a=s===void 0?1:s;if(!aa(e)||!aa(i)||!aa(r))return null;var n=Gp({h:Number(e),s:Number(i),l:Number(r),a:Number(a)});return Hp(n)},"hsl"],[function(t){var e=t.h,i=t.s,r=t.v,s=t.a,a=s===void 0?1:s;if(!aa(e)||!aa(i)||!aa(r))return null;var n=function(p){return {h:Mf(p.h),s:bs(p.s,0,100),v:bs(p.v,0,100),a:bs(p.a)}}({h:Number(e),s:Number(i),v:Number(r),a:Number(a)});return Ff(n)},"hsv"]]},qp=function(t,e){for(var i=0;i=.5},t.prototype.toHex=function(){return e=Fh(this.rgba),i=e.r,r=e.g,s=e.b,n=(a=e.a)<1?vo(ur(255*a)):"","#"+vo(i)+vo(r)+vo(s)+n;var e,i,r,s,a,n;},t.prototype.toRgb=function(){return Fh(this.rgba)},t.prototype.toRgbString=function(){return e=Fh(this.rgba),i=e.r,r=e.g,s=e.b,(a=e.a)<1?"rgba("+i+", "+r+", "+s+", "+a+")":"rgb("+i+", "+r+", "+s+")";var e,i,r,s,a;},t.prototype.toHsl=function(){return jp(Dn(this.rgba))},t.prototype.toHslString=function(){return e=jp(Dn(this.rgba)),i=e.h,r=e.s,s=e.l,(a=e.a)<1?"hsla("+i+", "+r+"%, "+s+"%, "+a+")":"hsl("+i+", "+r+"%, "+s+"%)";var e,i,r,s,a;},t.prototype.toHsv=function(){return e=Df(this.rgba),{h:ur(e.h),s:ur(e.s),v:ur(e.v),a:ur(e.a,3)};var e;},t.prototype.invert=function(){return Xr({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e;},t.prototype.saturate=function(e){return e===void 0&&(e=.1),Xr(Ih(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),Xr(Ih(this.rgba,-e))},t.prototype.grayscale=function(){return Xr(Ih(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),Xr($p(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),Xr($p(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?Xr({r:(i=this.rgba).r,g:i.g,b:i.b,a:e}):ur(this.rgba.a,3);var i;},t.prototype.hue=function(e){var i=Dn(this.rgba);return typeof e=="number"?Xr({h:e,s:i.s,l:i.l,a:i.a}):ur(i.h)},t.prototype.isEqual=function(e){return this.toHex()===Xr(e).toHex()},t}(),Xr=function(t){return t instanceof Oh?t:new Oh(t)},Wp=[],If=function(t){t.forEach(function(e){Wp.indexOf(e)<0&&(e(Oh,Rh),Wp.push(e));});};_o={attribute:/\[\s*(?:(?\*|[-\w\P{ASCII}]*)\|)?(?[-\w\P{ASCII}]+)\s*(?:(?\W?=)\s*(?.+?)\s*(\s(?[iIsS]))?\s*)?\]/gu,id:/#(?[-\w\P{ASCII}]+)/gu,class:/\.(?[-\w\P{ASCII}]+)/gu,comma:/\s*,\s*/g,combinator:/\s*[\s>+~]\s*/g,"pseudo-element":/::(?[-\w\P{ASCII}]+)(?:\((?¶*)\))?/gu,"pseudo-class":/:(?[-\w\P{ASCII}]+)(?:\((?¶*)\))?/gu,universal:/(?:(?\*|[-\w\P{ASCII}]*)\|)?\*/gu,type:/(?:(?\*|[-\w\P{ASCII}]*)\|)?(?[-\w\P{ASCII}]+)/gu},x0=new Set(["combinator","comma"]),P0=new Set(["not","is","where","has","matches","-moz-any","-webkit-any","nth-child","nth-last-child"]),Up=/(?[\dn+-]+)\s+of\s+(?.+)/,S0={"nth-child":Up,"nth-last-child":Up},k0=t=>{switch(t){case"pseudo-element":case"pseudo-class":return new RegExp(_o[t].source.replace("(?\xB6*)","(?.*)"),"gu");default:return _o[t]}};C0=/(['"])([^\\\n]+?)\1/g,w0=/\\./g;D0=as(Xh(),1),Rf=function(t){if(t==null)return V0;if(typeof t=="string")return L0(t);if(typeof t=="object")return Array.isArray(t)?F0(t):I0(t);if(typeof t=="function")return Co(t);throw new Error("Expected function, string, or object as test")};Bh=!0,xo=!1,R0="skip",O0=function(t,e,i,r){typeof e=="function"&&typeof i!="function"&&(r=i,i=e,e=null);let s=Rf(e),a=r?-1:1;n(t,void 0,[])();function n(p,o,d){let g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){let l=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(p.type+(l?"<"+l+">":""))+")"});}return f;function f(){let l=[],b,v,m;if((!e||s(p,o,d[d.length-1]||null))&&(l=B0(i(p,d)),l[0]===xo))return l;if(p.children&&l[0]!==R0)for(v=(r?p.children.length:-1)+a,m=d.concat(p);v>-1&&v{try{if(!t.startsWith("linear-gradient"))return !1;let e=(0,Yh.parse)(t);if(e.length===0)return !1;let i=e[0];return (i==null?void 0:i.type)==="linear-gradient"}catch{return !1}},Bf=t=>{try{if(!t.startsWith("radial-gradient"))return !1;let e=(0,Yh.parse)(t);if(e.length===0)return !1;let i=e[0];return (i==null?void 0:i.type)==="radial-gradient"}catch{return !1}},Jp=t=>{let e=[],i=[];if(!(Of(t)||Bf(t)))return [];let r=(0, Yh.parse)(t)[0];return r==null||r.colorStops.forEach((s,a)=>{var n;let p=[],o=0;if(s.type==="hex"||s.type==="literal"){let g=Xr(s.value);p.push(parseFloat((g.rgba.r/255).toFixed(2)),parseFloat((g.rgba.g/255).toFixed(2)),parseFloat((g.rgba.b/255).toFixed(2))),o=g.rgba.a;}else if(["rgb","rgba"].includes(s.type)){let g=Xr({r:Number(s.value[0]),g:Number(s.value[1]),b:Number(s.value[2]),a:s.value[3]?Number(s.value[3]):1});p.push(parseFloat((g.rgba.r/255).toFixed(2)),parseFloat((g.rgba.g/255).toFixed(2)),parseFloat((g.rgba.b/255).toFixed(2))),o=g.rgba.a;}let d=parseFloat((a/(r.colorStops.length-1||1)).toFixed(2));(n=s.length)!=null&&n.value&&Number(s.length.value)>0&&(d=parseFloat((Number(s.length.value)/100).toFixed(2))),e.push(d,...p),i.push(d,o);}),e.push(...i),e},Xp=(t,e,i)=>{if(!["shape-gradient-fill","shape-gradient-stroke"].includes(t.title))return;let r=e.length/6;Nr(t,"attribute",s=>{s.title==="gradient-type"&&s.children[0]?s.children[0].value=i==="linear"?1:2:s.title==="count"&&s.children[0]&&(s.children[0].value=r);}),Nr(t,"collection",s=>{if(s.title==="static-values"&&typeof s.key=="object"&&s.key.value==="k"&&s.children[0]){let a=s.children[0];a.children=e.map(n=>({type:"primitive",valueType:"number",value:n}));}});};If([Lf]);bo=(t,e,i,r=!1)=>{let s=new Set,a=Array.isArray(t)?t:[t];for(let n of a)Nr(n,"attribute",(p,o,d)=>{var g;p.title===i&&((g=p.children[0])==null?void 0:g.value)===e&&d&&d.type!=="root"&&(r?d===n&&s.add(d):s.add(d));});return Array.from(s)},z0=(t,e)=>{let i=[];for(let r of e){let s=[],a=Vf(r);M0(a,(n,p)=>{let o=s.length>0?s:t;if(n.type==="id")s=bo(o,n.name,"layer-xml-id",(p==null?void 0:p.type)==="compound");else if(n.type==="class")s=bo(o,n.name,"css-class",(p==null?void 0:p.type)==="compound");else if(n.type==="type"){let d="",g=null;n.name==="FillShape"?(g="shape-type",d="fl"):n.name==="StrokeShape"?(g="shape-type",d="st"):n.name==="GradientFillShape"?(g="shape-type",d="gf"):n.name==="GradientStrokeShape"?(g="shape-type",d="gs"):n.name==="ShapeLayer"?(g="layer-type",d=4):n.name==="SolidColorLayer"?(g="layer-type",d=1):n.name==="ImageLayer"&&(g="layer-type",d=2),g&&d&&(s=bo(o,d,g));}else if(n.type==="attribute"){let d=null,g=n.value;n.name==="id"?d="layer-xml-id":n.name==="class"?d="css-class":n.name==="name"?d="name":n.name==="shape-type"?d="shape-type":n.name==="layer-type"&&(d="layer-type",g=Number(n.value)),d&&g&&["number","string"].includes(typeof g)&&(s=bo(o,g,d,(p==null?void 0:p.type)==="compound"));}}),i.push(...s);}return Array.from(new Set(i))},Vh=t=>t.includes("-color"),N0=t=>t==="nonzero"||t==="evenodd",G0=t=>t.endsWith("%")?parseFloat(t):parseFloat(t)*100,j0=t=>t==="nonzero"?1:2,H0=t=>{try{new URL(t);}catch{return !1}return !0},q0=t=>{let e=(0, D0.parse)(t).nodes;if(e.length===1){let i=e[0];if(i&&i.type==="func"&&i.name==="url"){let r=i.nodes;if(r.length===1){let s=r[0];if(s&&s.type==="quoted")return s.contents}}}return ""},$0=t=>{let e={};for(let i of t)if(Vh(i.property)&&Xr(i.value).isValid()){let r=Xr(i.value).rgba,s=[r.r/255,r.g/255,r.b/255,r.a];switch(i.property){case"fill-color":e["fill-color"]=s;break;case"stroke-color":e["stroke-color"]=s;break}}else if(Vh(i.property)&&Of(i.value)){let r=Jp(i.value);switch(i.property){case"fill-color":e["linear-gradient-fill-color"]=r;break;case"stroke-color":e["linear-gradient-stroke-color"]=r;break}}else if(Vh(i.property)&&Bf(i.value)){let r=Jp(i.value);switch(i.property){case"fill-color":e["radial-gradient-fill-color"]=r;break;case"stroke-color":e["radial-gradient-stroke-color"]=r;break}}else if(i.property==="stroke-width")e["stroke-width"]=Number(i.value);else if(i.property==="fill-rule"&&N0(i.value))e["fill-rule"]=j0(i.value);else if(i.property==="opacity"){let r=G0(i.value);if(Number.isNaN(r))continue;r<0?e.opacity=0:r>100?e.opacity=100:e.opacity=r;}else if(i.property==="visibility")e.hidden=i.value==="hidden";else if(i.property==="src"){let r=q0(i.value);H0(r)&&(e.src=r);}return e},W0=(t,e,i)=>{var r;for(let s in e)switch(s){case"fill-color":let a=e[s];t.title==="shape-fill"?Array.isArray(a)&&Nr(t,"array",n=>n.title==="color-rgba-children"&&n.children.length===4?(n.children=n.children.map((p,o)=>({...p,value:a[o]})),xo):Bh):t.title==="layer-solid-color"&&Nr(t,"attribute",n=>{var p;if(n.title==="hex-color"&&(p=n.children[0])!=null&&p.value&&(a==null?void 0:a.length)===4){let o=Xr({r:a[0]*255,g:a[1]*255,b:a[2]*255,a:a[3]}).toHex();n.children[0].value=o;}});break;case"stroke-color":if(t.title==="shape-stroke"){let n=e[s];Array.isArray(n)&&Nr(t,"array",p=>p.title==="static-values-children"&&p.children.length===4?(p.children=p.children.map((o,d)=>({...o,value:n[d]})),xo):Bh);}break;case"stroke-width":(t.title==="shape-stroke"||t.title==="shape-gradient-stroke")&&Nr(t,"element",n=>{n.title==="stroke-width"&&Nr(n,"attribute",(p,o,d)=>{var g;p.title==="static-value"&&(g=p.children[0])!=null&&g.value&&p.children[0].valueType==="number"&&(d==null?void 0:d.title)==="animated-value-static"&&(p.children[0].value=e[s]);});});break;case"fill-rule":["shape-fill","shape-gradient-fill"].includes(t.title)&&Nr(t,"attribute",n=>{var p;n.title==="fill-rule-value"&&(p=n.children[0])!=null&&p.value&&(n.children[0].value=e[s]);});break;case"opacity":["shape-stroke","shape-fill","shape-gradient-fill","shape-gradient-stroke"].includes(t.title)&&Nr(t,"element",n=>{["stroke-opacity","opacity"].includes(n.title)&&Nr(n,"attribute",(p,o,d)=>{var g;p.title==="static-value"&&(g=p.children[0])!=null&&g.value&&p.children[0].valueType==="number"&&(d==null?void 0:d.title)==="animated-value-static"&&(p.children[0].value=e[s]);});});break;case"hidden":(t.title.includes("shape")||t.title.includes("layer"))&&Nr(t,"attribute",n=>{n.title==="hidden"&&n.children[0]&&(n.children[0].value=e[s]);});break;case"linear-gradient-fill-color":case"linear-gradient-stroke-color":Xp(t,e[s],"linear");break;case"radial-gradient-fill-color":case"radial-gradient-stroke-color":Xp(t,e[s],"radial");break;case"src":if(t.title==="layer-image"){let n=t.children.find(p=>p.title==="image-id");if((n==null?void 0:n.type)==="attribute"){let p=(r=n.children[0])==null?void 0:r.value;Nr(i,"object",o=>{o.title==="asset-image"&&o.children.some(d=>{var g;return d.title==="id"&&((g=d.children[0])==null?void 0:g.type)==="primitive"&&d.children[0].value===p})&&Nr(o,"attribute",d=>{d.title==="embedded"&&d.children[0]?d.children[0].value=0:d.title==="path"&&d.children[0]?d.children[0].value="":d.title==="filename"&&d.children[0]&&(d.children[0].value=e[s]);});});}}break}},U0=(t={lss:""})=>async e=>{let i=u0(t.lss);Nr(i,"rule",r=>{let s=z0(e,r.selectors),a=$0(r.children);for(let n of s)W0(n,a,e);});},J0=U0;});async function Gf(t,e){let[{relottie:i},{default:r}]=await Promise.all([Promise.resolve().then(()=>(zp(),Bp)),Promise.resolve().then(()=>(Nf(),zf))]),s=await i().use(r,{lss:e}).process(JSON.stringify(t));return JSON.parse(s.value)}var wo=cr(()=>{});function Mo(){throw new Error("Cycle detected")}function Kh(){if(on>1)on--;else {for(var t,e=!1;zn!==void 0;){var i=zn;for(zn=void 0,Zh++;i!==void 0;){var r=i.o;if(i.o=void 0,i.f&=-3,!(8&i.f)&&Hf(i))try{i.c();}catch(s){e||(t=s,e=!0);}i=r;}}if(Zh=0,on--,e)throw t}}function jf(t){if(Wi!==void 0){var e=t.n;if(e===void 0||e.t!==Wi)return e={i:0,S:t,p:Wi.s,n:void 0,t:Wi,e:void 0,x:void 0,r:e},Wi.s!==void 0&&(Wi.s.n=e),Wi.s=e,t.n=e,32&Wi.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=Wi.s,e.n=void 0,Wi.s.n=e,Wi.s=e),e}}function Yr(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0;}function X0(t){return new Yr(t)}function Hf(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return !0;return !1}function qf(t){for(var e=t.s;e!==void 0;e=e.n){var i=e.S.n;if(i!==void 0&&(e.r=i),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function $f(t){for(var e=t.s,i=void 0;e!==void 0;){var r=e.p;e.i===-1?(e.S.U(e),r!==void 0&&(r.n=e.n),e.n!==void 0&&(e.n.p=r)):i=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=r;}t.s=i;}function Wa(t){Yr.call(this,void 0),this.x=t,this.s=void 0,this.g=To-1,this.f=4;}function Wf(t){var e=t.u;if(t.u=void 0,typeof e=="function"){on++;var i=Wi;Wi=void 0;try{e();}catch(r){throw t.f&=-2,t.f|=8,Qh(t),r}finally{Wi=i,Kh();}}}function Qh(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Wf(t);}function Y0(t){if(Wi!==this)throw new Error("Out-of-order effect");$f(this),Wi=t,this.f&=-2,8&this.f&&Qh(this),Kh();}function Nn(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32;}function Z0(t){var e=new Nn(t);try{e.c();}catch(i){throw e.d(),i}return e.d.bind(e)}var Wi,zn,on,Zh,To,Uf,Do=cr(()=>{Wi=void 0,zn=void 0,on=0,Zh=0,To=0;Yr.prototype.h=function(){return !0};Yr.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t);};Yr.prototype.U=function(t){if(this.t!==void 0){var e=t.e,i=t.x;e!==void 0&&(e.x=i,t.e=void 0),i!==void 0&&(i.e=e,t.x=void 0),t===this.t&&(this.t=i);}};Yr.prototype.subscribe=function(t){var e=this;return Z0(function(){var i=e.value,r=32&this.f;this.f&=-33;try{t(i);}finally{this.f|=r;}})};Yr.prototype.valueOf=function(){return this.value};Yr.prototype.toString=function(){return this.value+""};Yr.prototype.toJSON=function(){return this.value};Yr.prototype.peek=function(){return this.v};Object.defineProperty(Yr.prototype,"value",{get:function(){var t=jf(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(Wi instanceof Wa&&function(){throw new Error("Computed cannot have side-effects")}(),t!==this.v){Zh>100&&Mo(),this.v=t,this.i++,To++,on++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N();}finally{Kh();}}}});(Wa.prototype=new Yr).h=function(){if(this.f&=-3,1&this.f)return !1;if((36&this.f)==32||(this.f&=-5,this.g===To))return !0;if(this.g=To,this.f|=1,this.i>0&&!Hf(this))return this.f&=-2,!0;var t=Wi;try{qf(this),Wi=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++);}catch(i){this.v=i,this.f|=16,this.i++;}return Wi=t,$f(this),this.f&=-2,!0};Wa.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e);}Yr.prototype.S.call(this,t);};Wa.prototype.U=function(t){if(this.t!==void 0&&(Yr.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e);}};Wa.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N();}};Wa.prototype.peek=function(){if(this.h()||Mo(),16&this.f)throw this.v;return this.v};Object.defineProperty(Wa.prototype,"value",{get:function(){1&this.f&&Mo();var t=jf(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});Nn.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e);}finally{t();}};Nn.prototype.S=function(){1&this.f&&Mo(),this.f|=1,this.f&=-9,Wf(this),qf(this),on++;var t=Wi;return Wi=this,Y0.bind(this,t)};Nn.prototype.N=function(){2&this.f||(this.f|=2,this.o=zn,zn=this);};Nn.prototype.d=function(){this.f|=8,1&this.f||Qh(this);};Uf=class{_state;_prevState;constructor(t){this._prevState=t,this._state=X0(t);}setState(t){this._prevState=this._state.value,this._state.value=t;}subscribe(t){return this._state.subscribe(e=>t(e,this._prevState))}};});var bc={};Ts(bc,{DotLottieStateMachineManager:()=>Uy});function pl(t,e){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ci(t,e){var i=typeof Symbol=="function"&&t[Symbol.iterator];if(!i)return t;var r=i.call(t),s,a=[],n;try{for(;(e===void 0||e-- >0)&&!(s=r.next()).done;)a.push(s.value);}catch(p){n={error:p};}finally{try{s&&!s.done&&(i=r.return)&&i.call(r);}finally{if(n)throw n.error}}return a}function Fi(t,e,i){if(i||arguments.length===2)for(var r=0,s=e.length,a;r"u"||typeof r=="string"||mn(r)?{target:r,event:t}:ke(ke({},r),{event:t})});return i}function dy(t){if(!(t===void 0||t===ry))return Is(t)}function pc(t,e,i,r,s){var a=t.options.guards,n={state:s,cond:e,_event:r};if(e.type===sl)return ((a==null?void 0:a[e.name])||e.predicate)(i,r.data,n);var p=a==null?void 0:a[e.type];if(!p)throw new Error("Guard '".concat(e.type,"' is not implemented on machine '").concat(t.id,"'."));return p(i,r.data,n)}function fc(t){return typeof t=="string"?{type:t}:t}function Bo(t,e,i){var r=function(){},s=typeof t=="object",a=s?t:null;return {next:((s?t.next:t)||r).bind(a),error:((s?t.error:e)||r).bind(a),complete:((s?t.complete:i)||r).bind(a)}}function Io(t,e){return "".concat(t,":invocation[").concat(e,"]")}function nl(t){return (t.type===Xn||t.type===$o&&t.to===dn.Internal)&&typeof t.delay!="number"}function ol(t,e){return e&&e[t]||void 0}function Un(t,e){var i;if(gi(t)||typeof t=="number"){var r=ol(t,e);di(r)?i={type:t,exec:r}:r?i=r:i={type:t,exec:void 0};}else if(di(t))i={type:t.name||t.toString(),exec:t};else {var r=ol(t.type,e);if(di(r))i=ke(ke({},t),{exec:r});else if(r){var s=r.type||t.type;i=ke(ke(ke({},r),t),{type:s});}else i=t;}return i}function ul(t){var e=Un(t);return ke(ke({id:gi(t)?t:e.id},e),{type:e.type})}function my(t,e){return {type:Xn,event:typeof t=="function"?t:Wo(t),delay:e?e.delay:void 0,id:e==null?void 0:e.id}}function yy(t,e,i,r){var s={_event:i},a=Sr(di(t.event)?t.event(e,i.data,s):t.event),n;if(gi(t.delay)){var p=r&&r[t.delay];n=di(p)?p(e,i.data,s):p;}else n=di(t.delay)?t.delay(e,i.data,s):t.delay;return ke(ke({},t),{type:Xn,_event:a,delay:n})}function gy(t,e){return {to:e?e.to:void 0,type:$o,event:di(t)?t:Wo(t),delay:e?e.delay:void 0,id:e&&e.id!==void 0?e.id:di(t)?t.name:nc(t)}}function vy(t,e,i,r){var s={_event:i},a=Sr(di(t.event)?t.event(e,i.data,s):t.event),n;if(gi(t.delay)){var p=r&&r[t.delay];n=di(p)?p(e,i.data,s):p;}else n=di(t.delay)?t.delay(e,i.data,s):t.delay;var o=di(t.to)?t.to(e,i.data,s):t.to;return ke(ke({},t),{to:o,_event:a,event:a.data,delay:n})}function xy(t){var e=ul(t);return {type:ki.Start,activity:e,exec:void 0}}function Py(t){var e=di(t)?t:ul(t);return {type:ki.Stop,activity:e,exec:void 0}}function Sy(t,e,i){var r=di(t.activity)?t.activity(e,i.data):t.activity,s=typeof r=="string"?{id:r}:r,a={type:ki.Stop,activity:s};return a}function ky(t,e){var i=e?"#".concat(e):"";return "".concat(ki.After,"(").concat(t,")").concat(i)}function Lo(t,e){var i="".concat(ki.DoneState,".").concat(t),r={type:i,data:e};return r.toString=function(){return i},r}function zo(t,e){var i="".concat(ki.DoneInvoke,".").concat(t),r={type:i,data:e};return r.toString=function(){return i},r}function Hn(t,e){var i="".concat(ki.ErrorPlatform,".").concat(t),r={type:i,data:e};return r.toString=function(){return i},r}function Ho(t,e,i,r,s,a,n){n===void 0&&(n=!1);var p=n?[]:Ey(s),o=p.length?Kf(i,r,p,e):i,d=n?[i]:void 0,g=[];function f(v,m){var E;switch(m.type){case Xn:{var c=yy(m,o,r,t.options.delays);return a&&typeof c.delay=="number"&&a(c,o,r),c}case $o:var u=vy(m,o,r,t.options.delays);return a&&u.to!==dn.Internal&&(v==="entry"?g.push(u):a(u,o,r)),u;case rc:{var y=by(m,o,r);return a==null||a(y,o,r),y}case ey:{var P=m,w=(E=P.conds.find(function(D){var O=lc(D.cond,t.options.guards);return !O||pc(t,O,o,r,a?void 0:e)}))===null||E===void 0?void 0:E.actions;if(!w)return [];var F=ci(Ho(t,e,o,r,[{type:v,actions:Sa(Is(w),t.options.actions)}],a,n),2),B=F[0],G=F[1];return o=G,d==null||d.push(o),B}case iy:{var w=m.get(o,r.data);if(!w)return [];var it=ci(Ho(t,e,o,r,[{type:v,actions:Sa(Is(w),t.options.actions)}],a,n),2),ft=it[0],ct=it[1];return o=ct,d==null||d.push(o),ft}case fl:{var y=Sy(m,o,r);return a==null||a(y,i,r),y}case ic:{o=Kf(o,r,[m],a?void 0:e),d==null||d.push(o);break}default:var dt=Un(m,t.options.actions),Pt=dt.exec;if(a)a(dt,o,r);else if(Pt&&d){var tt=d.length-1,vt=ke(ke({},dt),{exec:function(D){for(var O=[],k=1;k0;){var d=s.shift();i=t.transition(i,d,o),r.forEach(function(g){return g.next(i)});}a=!1;}},p=Ty({id:e.id,send:function(d){s.push(d),n();},getSnapshot:function(){return i},subscribe:function(d,g,f){var l=Bo(d,g,f);return r.add(l),l.next(i),{unsubscribe:function(){r.delete(l);}}}}),o={parent:e.parent,self:p,id:e.id||"anonymous",observers:r};return i=t.start?t.start(o):i,p}function vc(t,e){var i=new Gy(t,e);return i}function jy(t){if(typeof t=="string"){var e={type:t};return e.toString=function(){return t},e}return t}function Vo(t){return ke(ke({type:rl},t),{toJSON:function(){t.onDone,t.onError;var e=pl(t,["onDone","onError"]);return ke(ke({},e),{type:rl,src:jy(t.src)})}})}function $y(t,e){return new qy(t,e)}var ke,ki,dn,il,fl,Xn,$o,ec,K0,ic,rc,Q0,rl,Jf,ty,sc,ey,iy,ac,Xf,sl,ry,Fo,ay,fy,Pa,un,Sa,by,_y,Ey,fn,qo,Us,Vy,tc,tl,Ry,Gn,Ny,dr,Gy,Ro,ll,el,ln,pn,Hy,qy,cn,Wy,Uy,_c=cr(()=>{ml();co();Uo();wo();Do();en();ns();ke=function(){return ke=Object.assign||function(t){for(var e,i=1,r=arguments.length;i0});if(!m)return this.next(i,r);var E=Ni(Object.keys(n).map(function(c){return n[c].configuration}));return {transitions:v,exitSet:Ni(b.map(function(c){return c.exitSet})),configuration:E,source:i,actions:Ni(Object.keys(n).map(function(c){return n[c].actions}))}},t.prototype._transition=function(e,i,r){return gi(e)?this.transitionLeafNode(e,i,r):Object.keys(e).length===1?this.transitionCompoundNode(e,i,r):this.transitionParallelNode(e,i,r)},t.prototype.getTransitionData=function(e,i){return this._transition(e.value,e,Sr(i))},t.prototype.next=function(e,i){var r,s,a=this,n=i.name,p=[],o=[],d;try{for(var g=ii(this.getCandidates(n)),f=g.next();!f.done;f=g.next()){var l=f.value,b=l.cond,v=l.in,m=e.context,E=v?gi(v)&&pn(v)?e.matches(Wn(this.getStateNodeById(v).path,this.delimiter)):cl(Wn(v,this.delimiter),ay(this.path.slice(0,-2))(e.value)):!0,c=!1;try{c=!b||pc(this.machine,b,m,i,e);}catch(P){throw new Error("Unable to evaluate guard '".concat(b.name||b.type,"' in transition for event '").concat(n,"' in state node '").concat(this.id,`': +`).concat(P.message))}if(c&&E){l.target!==void 0&&(o=l.target),p.push.apply(p,Fi([],ci(l.actions),!1)),d=l;break}}}catch(P){r={error:P};}finally{try{f&&!f.done&&(s=g.return)&&s.call(g);}finally{if(r)throw r.error}}if(d){if(!o.length)return {transitions:[d],exitSet:[],configuration:e.value?[this]:[],source:e,actions:p};var u=Ni(o.map(function(P){return a.getRelativeStateNodes(P,e.historyValue)})),y=!!d.internal;return {transitions:[d],exitSet:y?[]:Ni(o.map(function(P){return a.getPotentiallyReenteringNodes(P)})),configuration:u,source:e,actions:p}}},t.prototype.getPotentiallyReenteringNodes=function(e){if(this.order0,b=l?e.configuration:i?i.configuration:[],v=No(b,this),m=l?My(this.machine,f):void 0,E=i?i.historyValue?i.historyValue:e.source?this.machine.historyValue(i.value):void 0:void 0,c=this.getActions(new Set(b),v,e,r,a,i,s),u=i?ke({},i.activities):{};try{for(var y=ii(c),P=y.next();!P.done;P=y.next()){var w=P.value;try{for(var F=(o=void 0,ii(w.actions)),B=F.next();!B.done;B=F.next()){var G=B.value;G.type===il?u[G.activity.id||G.activity.type]=G:G.type===fl&&(u[G.activity.id||G.activity.type]=!1);}}catch(Gt){o={error:Gt};}finally{try{B&&!B.done&&(d=F.return)&&d.call(F);}finally{if(o)throw o.error}}}}catch(Gt){n={error:Gt};}finally{try{P&&!P.done&&(p=y.return)&&p.call(y);}finally{if(n)throw n.error}}var it=ci(Ho(this,i,r,a,c,s,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),ft=it[0],ct=it[1],dt=ci(ly(ft,nl),2),Pt=dt[0],tt=dt[1],vt=ft.filter(function(Gt){var Ot;return Gt.type===il&&((Ot=Gt.activity)===null||Ot===void 0?void 0:Ot.type)===rl}),D=vt.reduce(function(Gt,Ot){return Gt[Ot.activity.id]=Ay(Ot.activity,g.machine,ct,a),Gt},i?ke({},i.children):{}),O=new Us({value:m||i.value,context:ct,_event:a,_sessionid:i?i._sessionid:null,historyValue:m?E?py(E,m):void 0:i?i.historyValue:void 0,history:!m||e.source?i:void 0,actions:m?tt:[],activities:m?u:i?i.activities:{},events:[],configuration:b,transitions:e.transitions,children:D,done:v,tags:Qf(b),machine:this}),k=r!==ct;O.changed=a.name===sc||k;var L=O.history;L&&delete L.history;var K=!v&&(this._transient||f.some(function(Gt){return Gt._transient}));if(!l&&(!K||a.name===Ro))return O;var U=O;if(!v)for(K&&(U=this.resolveRaisedTransition(U,{type:K0},a,s));Pt.length;){var Ht=Pt.shift();U=this.resolveRaisedTransition(U,Ht._event,a,s);}var It=U.changed||(L?!!U.actions.length||k||typeof L.value!=typeof U.value||!gc(U.value,L.value):void 0);return U.changed=It,U.history=L,U},t.prototype.getStateNode=function(e){if(pn(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var i=this.states[e];if(!i)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return i},t.prototype.getStateNodeById=function(e){var i=pn(e)?e.slice(ll.length):e;if(i===this.id)return this;var r=this.machine.idMap[i];if(!r)throw new Error("Child state node '#".concat(i,"' does not exist on machine '").concat(this.id,"'"));return r},t.prototype.getStateNodeByPath=function(e){if(typeof e=="string"&&pn(e))try{return this.getStateNodeById(e.slice(1))}catch{}for(var i=al(e,this.delimiter).slice(),r=this;i.length;){var s=i.shift();if(!s.length)break;r=r.getStateNode(s);}return r},t.prototype.resolve=function(e){var i,r=this;if(!e)return this.initialStateValue||ln;switch(this.type){case"parallel":return jn(this.initialStateValue,function(a,n){return a?r.getStateNode(n).resolve(e[n]||a):ln});case"compound":if(gi(e)){var s=this.getStateNode(e);return s.type==="parallel"||s.type==="compound"?(i={},i[e]=s.initialStateValue,i):e}return Object.keys(e).length?jn(e,function(a,n){return a?r.getStateNode(n).resolve(a):ln}):this.initialStateValue||{};default:return e||ln}},t.prototype.getResolvedPath=function(e){if(pn(e)){var i=this.machine.idMap[e.slice(ll.length)];if(!i)throw new Error("Unable to find state node '".concat(e,"'"));return i.path}return al(e,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var i;if(this.type==="parallel")i=Yf(this.states,function(r){return r.initialStateValue||ln},function(r){return r.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));i=qo(this.states[this.initial])?this.initial:(e={},e[this.initial]=this.states[this.initial].initialStateValue,e);}else i={};return this.__cache.initialStateValue=i,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(e,i){this._init();var r=this.getStateNodes(e);return this.resolveTransition({configuration:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,i!=null?i:this.machine.context,void 0)},Object.defineProperty(t.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var e;if(this.type==="history"){var i=this.config;gi(i.target)?e=pn(i.target)?Go(this.machine.getStateNodeById(i.target).path.slice(this.path.length-1)):i.target:e=i.target;}return e},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(e,i,r){return r===void 0&&(r=!0),r?e.type==="history"?e.resolveHistory(i):e.initialStateNodes:[e]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var e=this;if(qo(this))return [this];if(this.type==="compound"&&!this.initial)return [this];var i=Oo(this.initialStateValue);return Ni(i.map(function(r){return e.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(e){if(!e.length)return [this];var i=ci(e),r=i[0],s=i.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var a=this.getStateNode(r);if(a.type==="history")return a.resolveHistory();if(!this.states[r])throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(s)},t.prototype.historyValue=function(e){if(Object.keys(this.states).length)return {current:e||this.initialStateValue,states:Yf(this.states,function(i,r){if(!e)return i.historyValue();var s=gi(e)?void 0:e[r];return i.historyValue(s||i.initialStateValue)},function(i){return !i.history})}},t.prototype.resolveHistory=function(e){var i=this;if(this.type!=="history")return [this];var r=this.parent;if(!e){var s=this.target;return s?Ni(Oo(s).map(function(n){return r.getFromRelativePath(n)})):r.initialStateNodes}var a=ny(r.path,"states")(e).current;return gi(a)?[r.getStateNode(a)]:Ni(Oo(a).map(function(n){return i.history==="deep"?r.getFromRelativePath(n):[r.states[n[0]]]}))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var e=this,i=Ni(Object.keys(this.states).map(function(r){return e.states[r].stateIds}));return [this.id].concat(i)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){var e,i,r,s;if(this.__cache.events)return this.__cache.events;var a=this.states,n=new Set(this.ownEvents);if(a)try{for(var p=ii(Object.keys(a)),o=p.next();!o.done;o=p.next()){var d=o.value,g=a[d];if(g.states)try{for(var f=(r=void 0,ii(g.events)),l=f.next();!l.done;l=f.next()){var b=l.value;n.add("".concat(b));}}catch(v){r={error:v};}finally{try{l&&!l.done&&(s=f.return)&&s.call(f);}finally{if(r)throw r.error}}}}catch(v){e={error:v};}finally{try{o&&!o.done&&(i=p.return)&&i.call(p);}finally{if(e)throw e.error}}return this.__cache.events=Array.from(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter(function(i){return !(!i.target&&!i.actions.length&&i.internal)}).map(function(i){return i.eventType}));return Array.from(e)},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(e){var i=this;if(e!==void 0)return e.map(function(r){if(!gi(r))return r;var s=r[0]===i.delimiter;if(s&&!i.parent)return i.getStateNodeByPath(r.slice(1));var a=s?i.key+r:r;if(i.parent)try{var n=i.parent.getStateNodeByPath(a);return n}catch(p){throw new Error("Invalid transition definition for state node '".concat(i.id,`': +`).concat(p.message))}else return i.getStateNodeByPath(a)})},t.prototype.formatTransition=function(e){var i=this,r=dy(e.target),s="internal"in e?e.internal:r?r.some(function(o){return gi(o)&&o[0]===i.delimiter}):!0,a=this.machine.options.guards,n=this.resolveTarget(r),p=ke(ke({},e),{actions:Sa(Is(e.actions)),cond:lc(e.cond,a),target:n,source:this,internal:s,eventType:e.event,toJSON:function(){return ke(ke({},p),{target:p.target?p.target.map(function(o){return "#".concat(o.id)}):void 0,source:"#".concat(i.id)})}});return p},t.prototype.formatTransitions=function(){var e,i,r=this,s;if(!this.config.on)s=[];else if(Array.isArray(this.config.on))s=this.config.on;else {var a=this.config.on,n=el,p=a[n],o=p===void 0?[]:p,d=pl(a,[typeof n=="symbol"?n:n+""]);s=Ni(Object.keys(d).map(function(u){var y=hn(u,d[u]);return y}).concat(hn(el,o)));}var g=this.config.always?hn("",this.config.always):[],f=this.config.onDone?hn(String(Lo(this.id)),this.config.onDone):[],l=Ni(this.invoke.map(function(u){var y=[];return u.onDone&&y.push.apply(y,Fi([],ci(hn(String(zo(u.id)),u.onDone)),!1)),u.onError&&y.push.apply(y,Fi([],ci(hn(String(Hn(u.id)),u.onError)),!1)),y})),b=this.after,v=Ni(Fi(Fi(Fi(Fi([],ci(f),!1),ci(l),!1),ci(s),!1),ci(g),!1).map(function(u){return Is(u).map(function(y){return r.formatTransition(y)})}));try{for(var m=ii(b),E=m.next();!E.done;E=m.next()){var c=E.value;v.push(c);}}catch(u){e={error:u};}finally{try{E&&!E.done&&(i=m.return)&&i.call(m);}finally{if(e)throw e.error}}return v},t}();cn={click:"onClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",complete:"onComplete",after:"onAfter",enter:"onEnter",show:"onShow"};Object.values(cn);Wy=Object.keys(cn),Uy=class{activeStateId="";_service;_domListeners=new Map;_domElement;_playerListeners=new Map;_player;_machineSchemas=new Map;_onShowPrevValue=0;constructor(t,e){this._player=e,this._machineSchemas=this._transformToXStateSchema(t),this._domElement=e.container;}start(t){this.stop();let e=this._machineSchemas.get(t);if(typeof e>"u")throw Ke(`invalid state machine id ${t}`);this._service=vc($y(e)),this._addEventListeners(),this._service.start();}stop(){var t;this._removeEventListeners(),(t=this._service)==null||t.stop(),this._player.stop();}_removeEventListeners(){var t;this._requiresDomElement();for(let[e,i]of this._domListeners)e==="visibilityChange"&&this._player.stopPlayOnShow(),(t=this._domElement)==null||t.removeEventListener(e,i),this._domListeners.delete(e);for(let[e,i]of this._playerListeners)this._player.removeEventListener(e,i),this._playerListeners.delete(e);}_addEventListeners(){this._requiresDomElement();let t=i=>{this._service.send({type:i});},e=i=>{function r(){t(i);}return r};this._service.subscribe(i=>{var r;if(typeof i.changed>"u"||i.changed){this._removeEventListeners();for(let s of i.nextEvents)if(Wy.filter(a=>a!=="complete"&&a!=="show").includes(s)){let a=e(s);this._domListeners.set(s,a),(r=this._domElement)==null||r.addEventListener(s,a,{once:!0});}else if(s==="complete"){let a=e(s);this._player.addEventListener(s,a),this._playerListeners.set(s,a);}else if(s==="show"){let a=e(s);this._player.addIntersectionObserver({callbackOnIntersect:n=>{n>0&&(n!==100&&this._onShowPrevValue!==n&&a(),this._onShowPrevValue=n);},threshold:[]}),this._domListeners.set("visibilityChange",a);}}});}subscribe(t){throw Ke(t.toString())}_transformToXStateSchema(t){var e,i,r;let s=new Map;for(let a of t){let n={},p={};if(p.id=a.descriptor.id,typeof a.descriptor.initial<"u"&&(p.initial=a.descriptor.initial),typeof a<"u"){let o=a.states;for(let d in o)if(typeof o[d]<"u"&&o[d]){let g=o[d],f=g.playbackSettings,l=Object.keys(g).filter(m=>m.startsWith("on")),b={},v={};for(let m of l)if(typeof g[m]<"u"){let E=g[m];if(m===cn.after){let c=E;v[c.ms]={target:(e=E==null?void 0:E.state)!=null?e:""};}else m===cn.enter?b[fo(cn,m)]={target:(i=E==null?void 0:E.state)!=null?i:""}:b[fo(cn,m)]={target:(r=E==null?void 0:E.state)!=null?r:""};}n[d]={entry:()=>{!this._player.getAnimationInstance()||g.animationId&&g.animationId!==this._player.currentAnimationId?this._player.play(g.animationId,()=>({...Gr,...f})).then(()=>{this._updatePlaybackSettings(f);}).catch(m=>{$s(`State machine error: ${m.message}`);}):this._updatePlaybackSettings(f);},exit:()=>{typeof f.segments<"u"&&this._player.resetSegments(!1),typeof f.playOnScroll<"u"&&this._player.stopPlayOnScroll();},on:b,after:v,meta:f};}}p.states=n,s.set(p.id,p);}return s}_handlePlaySegments(t){if(typeof t.segments=="string")this._player.goToAndPlay(t.segments,!0);else {let[e,i]=t.segments,r=e;e!==0&&e===i&&(r=e-1),e===0&&e===i?this._player.goToAndPlay(e,!0):this._player.playSegments([r,i],!0);}}_handlePlayOnScroll(t){let e=t.playOnScroll;if(t.segments&&typeof t.segments!="string"){let i=t.segments;this._player.playOnScroll({threshold:e,segments:i});}else this._player.playOnScroll({threshold:e});}_updatePlaybackSettings(t){if(!this._player.getAnimationInstance())throw new Error("Unable to update playbackSettings. Animations is not rendered yet.");typeof t.autoplay<"u"&&(this._player.setAutoplay(t.autoplay),t.autoplay?this._player.play():this._player.pause()),typeof t.direction<"u"&&this._player.setDirection(t.direction),typeof t.intermission<"u"&&this._player.setIntermission(t.intermission),typeof t.loop<"u"&&this._player.setLoop(t.loop),typeof t.playMode<"u"&&this._player.setMode(t.playMode),typeof t.speed<"u"&&this._player.setSpeed(t.speed),typeof t.defaultTheme<"u"&&this._player.setDefaultTheme(t.defaultTheme),typeof t.playOnScroll<"u"&&this._handlePlayOnScroll(t),t.segments&&this._handlePlaySegments(t),t.autoplay||this._player.pause();}_requiresDomElement(){if(!this._domElement)throw Ke("Requires a DOM element to attach events.")}};});async function xc(t,e){let[{DotLottieStateMachineManager:i}]=await Promise.all([Promise.resolve().then(()=>(_c(),bc))]);if(!t.length)throw Ke("No state machines available inside this .lottie!");return new i(t,e)}var Uo=cr(()=>{en();});var Pc={};Ts(Pc,{DotLottieAudio:()=>Yy});var Jy,Xy,Yy,Sc=cr(()=>{ns();Jy=ue(t=>{((function(){var e=function(){this.init();};e.prototype={init:function(){var f=this||i;return f._counter=1e3,f._html5AudioPool=[],f.html5PoolSize=10,f._codecs={},f._howls=[],f._muted=!1,f._volume=1,f._canPlayEvent="canplaythrough",f._navigator=typeof window<"u"&&window.navigator?window.navigator:null,f.masterGain=null,f.noAudio=!1,f.usingWebAudio=!0,f.autoSuspend=!0,f.ctx=null,f.autoUnlock=!0,f._setup(),f},volume:function(f){var l=this||i;if(f=parseFloat(f),l.ctx||g(),typeof f<"u"&&f>=0&&f<=1){if(l._volume=f,l._muted)return l;l.usingWebAudio&&l.masterGain.gain.setValueAtTime(f,i.ctx.currentTime);for(var b=0;b=0;l--)f._howls[l].unload();return f.usingWebAudio&&f.ctx&&typeof f.ctx.close<"u"&&(f.ctx.close(),f.ctx=null,g()),f},codecs:function(f){return (this||i)._codecs[f.replace(/^x-/,"")]},_setup:function(){var f=this||i;if(f.state=f.ctx&&f.ctx.state||"suspended",f._autoSuspend(),!f.usingWebAudio)if(typeof Audio<"u")try{var l=new Audio;typeof l.oncanplaythrough>"u"&&(f._canPlayEvent="canplay");}catch{f.noAudio=!0;}else f.noAudio=!0;try{var l=new Audio;l.muted&&(f.noAudio=!0);}catch{}return f.noAudio||f._setupCodecs(),f},_setupCodecs:function(){var f=this||i,l=null;try{l=typeof Audio<"u"?new Audio:null;}catch{return f}if(!l||typeof l.canPlayType!="function")return f;var b=l.canPlayType("audio/mpeg;").replace(/^no$/,""),v=f._navigator?f._navigator.userAgent:"",m=v.match(/OPR\/([0-6].)/g),E=m&&parseInt(m[0].split("/")[1],10)<33,c=v.indexOf("Safari")!==-1&&v.indexOf("Chrome")===-1,u=v.match(/Version\/(.*?) /),y=c&&u&&parseInt(u[1],10)<15;return f._codecs={mp3:!!(!E&&(b||l.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!b,opus:!!l.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!l.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!l.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(l.canPlayType('audio/wav; codecs="1"')||l.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!l.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!l.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(l.canPlayType("audio/x-m4a;")||l.canPlayType("audio/m4a;")||l.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(l.canPlayType("audio/x-m4b;")||l.canPlayType("audio/m4b;")||l.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(l.canPlayType("audio/x-mp4;")||l.canPlayType("audio/mp4;")||l.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!y&&l.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!y&&l.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!l.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(l.canPlayType("audio/x-flac;")||l.canPlayType("audio/flac;")).replace(/^no$/,"")},f},_unlockAudio:function(){var f=this||i;if(!(f._audioUnlocked||!f.ctx)){f._audioUnlocked=!1,f.autoUnlock=!1,!f._mobileUnloaded&&f.ctx.sampleRate!==44100&&(f._mobileUnloaded=!0,f.unload()),f._scratchBuffer=f.ctx.createBuffer(1,1,22050);var l=function(b){for(;f._html5AudioPool.length"u"?y.noteOn(0):y.start(0),typeof f.ctx.resume=="function"&&f.ctx.resume(),y.onended=function(){y.disconnect(0),f._audioUnlocked=!0,document.removeEventListener("touchstart",l,!0),document.removeEventListener("touchend",l,!0),document.removeEventListener("click",l,!0),document.removeEventListener("keydown",l,!0);for(var P=0;P"u"||!i.usingWebAudio)){for(var l=0;l"u"||!i.usingWebAudio))return f.state==="running"&&f.ctx.state!=="interrupted"&&f._suspendTimer?(clearTimeout(f._suspendTimer),f._suspendTimer=null):f.state==="suspended"||f.state==="running"&&f.ctx.state==="interrupted"?(f.ctx.resume().then(function(){f.state="running";for(var l=0;l"u"&&(f="__default",!b._playLock)){for(var m=0,E=0;E0?c._seek:b._sprite[f][0]/1e3),P=Math.max(0,(b._sprite[f][0]+b._sprite[f][1])/1e3-y),w=P*1e3/Math.abs(c._rate),F=b._sprite[f][0]/1e3,B=(b._sprite[f][0]+b._sprite[f][1])/1e3;c._sprite=f,c._ended=!1;var G=function(){c._paused=!1,c._seek=y,c._start=F,c._stop=B,c._loop=!!(c._loop||b._sprite[f][2]);};if(y>=B){b._ended(c);return}var it=c._node;if(b._webAudio){var ft=function(){b._playLock=!1,G(),b._refreshBuffer(c);var tt=c._muted||b._muted?0:c._volume;it.gain.setValueAtTime(tt,i.ctx.currentTime),c._playStart=i.ctx.currentTime,typeof it.bufferSource.start>"u"?c._loop?it.bufferSource.noteGrainOn(0,y,86400):it.bufferSource.noteGrainOn(0,y,P):c._loop?it.bufferSource.start(0,y,86400):it.bufferSource.start(0,y,P),w!==1/0&&(b._endTimers[c._id]=setTimeout(b._ended.bind(b,c),w)),l||setTimeout(function(){b._emit("play",c._id),b._loadQueue();},0);};i.state==="running"&&i.ctx.state!=="interrupted"?ft():(b._playLock=!0,b.once("resume",ft),b._clearTimer(c._id));}else {var ct=function(){it.currentTime=y,it.muted=c._muted||b._muted||i._muted||it.muted,it.volume=c._volume*i.volume(),it.playbackRate=c._rate;try{var tt=it.play();if(tt&&typeof Promise<"u"&&(tt instanceof Promise||typeof tt.then=="function")?(b._playLock=!0,G(),tt.then(function(){b._playLock=!1,it._unlocked=!0,l?b._loadQueue():b._emit("play",c._id);}).catch(function(){b._playLock=!1,b._emit("playerror",c._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),c._ended=!0,c._paused=!0;})):l||(b._playLock=!1,G(),b._emit("play",c._id)),it.playbackRate=c._rate,it.paused){b._emit("playerror",c._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}f!=="__default"||c._loop?b._endTimers[c._id]=setTimeout(b._ended.bind(b,c),w):(b._endTimers[c._id]=function(){b._ended(c),it.removeEventListener("ended",b._endTimers[c._id],!1);},it.addEventListener("ended",b._endTimers[c._id],!1));}catch(vt){b._emit("playerror",c._id,vt);}};it.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(it.src=b._src,it.load());var dt=window&&window.ejecta||!it.readyState&&i._navigator.isCocoonJS;if(it.readyState>=3||dt)ct();else {b._playLock=!0,b._state="loading";var Pt=function(){b._state="loaded",ct(),it.removeEventListener(i._canPlayEvent,Pt,!1);};it.addEventListener(i._canPlayEvent,Pt,!1),b._clearTimer(c._id);}}return c._id},pause:function(f){var l=this;if(l._state!=="loaded"||l._playLock)return l._queue.push({event:"pause",action:function(){l.pause(f);}}),l;for(var b=l._getSoundIds(f),v=0;v"u"?m._node.bufferSource.noteOff(0):m._node.bufferSource.stop(0),l._cleanBuffer(m._node);}else (!isNaN(m._node.duration)||m._node.duration===1/0)&&m._node.pause();arguments[1]||l._emit("pause",m?m._id:null);}return l},stop:function(f,l){var b=this;if(b._state!=="loaded"||b._playLock)return b._queue.push({event:"stop",action:function(){b.stop(f);}}),b;for(var v=b._getSoundIds(f),m=0;m"u"?E._node.bufferSource.noteOff(0):E._node.bufferSource.stop(0),b._cleanBuffer(E._node)):(!isNaN(E._node.duration)||E._node.duration===1/0)&&(E._node.currentTime=E._start||0,E._node.pause(),E._node.duration===1/0&&b._clearSound(E._node))),l||b._emit("stop",E._id));}return b},mute:function(f,l){var b=this;if(b._state!=="loaded"||b._playLock)return b._queue.push({event:"mute",action:function(){b.mute(f,l);}}),b;if(typeof l>"u")if(typeof f=="boolean")b._muted=f;else return b._muted;for(var v=b._getSoundIds(l),m=0;m"u"){var m=f._getSoundIds(),E=m.indexOf(l[0]);E>=0?v=parseInt(l[0],10):b=parseFloat(l[0]);}else l.length>=2&&(b=parseFloat(l[0]),v=parseInt(l[1],10));var c;if(typeof b<"u"&&b>=0&&b<=1){if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"volume",action:function(){f.volume.apply(f,l);}}),f;typeof v>"u"&&(f._volume=b),v=f._getSoundIds(v);for(var u=0;u"u");}}return m},_startFadeInterval:function(f,l,b,v,m,E){var c=this,u=l,y=b-l,P=Math.abs(y/.01),w=Math.max(4,P>0?v/P:v),F=Date.now();f._fadeTo=b,f._interval=setInterval(function(){var B=(Date.now()-F)/v;F=Date.now(),u+=y*B,u=Math.round(u*100)/100,y<0?u=Math.max(b,u):u=Math.min(b,u),c._webAudio?f._volume=u:c.volume(u,f._id,!0),E&&(c._volume=u),(bl&&u>=b)&&(clearInterval(f._interval),f._interval=null,f._fadeTo=null,c.volume(b,f._id),c._emit("fade",f._id));},w);},_stopFade:function(f){var l=this,b=l._soundById(f);return b&&b._interval&&(l._webAudio&&b._node.gain.cancelScheduledValues(i.ctx.currentTime),clearInterval(b._interval),b._interval=null,l.volume(b._fadeTo,f),b._fadeTo=null,l._emit("fade",f)),l},loop:function(){var f=this,l=arguments,b,v,m;if(l.length===0)return f._loop;if(l.length===1)if(typeof l[0]=="boolean")b=l[0],f._loop=b;else return m=f._soundById(parseInt(l[0],10)),m?m._loop:!1;else l.length===2&&(b=l[0],v=parseInt(l[1],10));for(var E=f._getSoundIds(v),c=0;c=0?v=parseInt(l[0],10):b=parseFloat(l[0]);}else l.length===2&&(b=parseFloat(l[0]),v=parseInt(l[1],10));var c;if(typeof b=="number"){if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"rate",action:function(){f.rate.apply(f,l);}}),f;typeof v>"u"&&(f._rate=b),v=f._getSoundIds(v);for(var u=0;u=0?v=parseInt(l[0],10):f._sounds.length&&(v=f._sounds[0]._id,b=parseFloat(l[0]));}else l.length===2&&(b=parseFloat(l[0]),v=parseInt(l[1],10));if(typeof v>"u")return 0;if(typeof b=="number"&&(f._state!=="loaded"||f._playLock))return f._queue.push({event:"seek",action:function(){f.seek.apply(f,l);}}),f;var c=f._soundById(v);if(c)if(typeof b=="number"&&b>=0){var u=f.playing(v);u&&f.pause(v,!0),c._seek=b,c._ended=!1,f._clearTimer(v),!f._webAudio&&c._node&&!isNaN(c._node.duration)&&(c._node.currentTime=b);var y=function(){u&&f.play(v,!0),f._emit("seek",v);};if(u&&!f._webAudio){var P=function(){f._playLock?setTimeout(P,0):y();};setTimeout(P,0);}else y();}else if(f._webAudio){var w=f.playing(v)?i.ctx.currentTime-c._playStart:0,F=c._rateSeek?c._rateSeek-c._seek:0;return c._seek+(F+w*Math.abs(c._rate))}else return c._node.currentTime;return f},playing:function(f){var l=this;if(typeof f=="number"){var b=l._soundById(f);return b?!b._paused:!1}for(var v=0;v=0&&i._howls.splice(v,1);var m=!0;for(b=0;b=0){m=!1;break}return a&&m&&delete a[f._src],i.noAudio=!1,f._state="unloaded",f._sounds=[],f=null,null},on:function(f,l,b,v){var m=this,E=m["_on"+f];return typeof l=="function"&&E.push(v?{id:b,fn:l,once:v}:{id:b,fn:l}),m},off:function(f,l,b){var v=this,m=v["_on"+f],E=0;if(typeof l=="number"&&(b=l,l=null),l||b)for(E=0;E=0;E--)(!m[E].id||m[E].id===l||f==="load")&&(setTimeout(function(c){c.call(this,l,b);}.bind(v,m[E].fn),0),m[E].once&&v.off(f,m[E].fn,m[E].id));return v._loadQueue(f),v},_loadQueue:function(f){var l=this;if(l._queue.length>0){var b=l._queue[0];b.event===f&&(l._queue.shift(),l._loadQueue()),f||b.action();}return l},_ended:function(f){var l=this,b=f._sprite;if(!l._webAudio&&f._node&&!f._node.paused&&!f._node.ended&&f._node.currentTime=0;v--){if(b<=l)return;f._sounds[v]._ended&&(f._webAudio&&f._sounds[v]._node&&f._sounds[v]._node.disconnect(0),f._sounds.splice(v,1),b--);}}},_getSoundIds:function(f){var l=this;if(typeof f>"u"){for(var b=[],v=0;v=0;if(i._scratchBuffer&&f.bufferSource&&(f.bufferSource.onended=null,f.bufferSource.disconnect(0),b))try{f.bufferSource.buffer=i._scratchBuffer;}catch{}return f.bufferSource=null,l},_clearSound:function(f){var l=/MSIE |Trident\//.test(i._navigator&&i._navigator.userAgent);l||(f.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA");}};var s=function(f){this._parent=f,this.init();};s.prototype={init:function(){var f=this,l=f._parent;return f._muted=l._muted,f._loop=l._loop,f._volume=l._volume,f._rate=l._rate,f._seek=0,f._paused=!0,f._ended=!0,f._sprite="__default",f._id=++i._counter,l._sounds.push(f),f.create(),f},create:function(){var f=this,l=f._parent,b=i._muted||f._muted||f._parent._muted?0:f._volume;return l._webAudio?(f._node=typeof i.ctx.createGain>"u"?i.ctx.createGainNode():i.ctx.createGain(),f._node.gain.setValueAtTime(b,i.ctx.currentTime),f._node.paused=!0,f._node.connect(i.masterGain)):i.noAudio||(f._node=i._obtainHtml5Audio(),f._errorFn=f._errorListener.bind(f),f._node.addEventListener("error",f._errorFn,!1),f._loadFn=f._loadListener.bind(f),f._node.addEventListener(i._canPlayEvent,f._loadFn,!1),f._endFn=f._endListener.bind(f),f._node.addEventListener("ended",f._endFn,!1),f._node.src=l._src,f._node.preload=l._preload===!0?"auto":l._preload,f._node.volume=b*i.volume(),f._node.load()),f},reset:function(){var f=this,l=f._parent;return f._muted=l._muted,f._loop=l._loop,f._volume=l._volume,f._rate=l._rate,f._seek=0,f._rateSeek=0,f._paused=!0,f._ended=!0,f._sprite="__default",f._id=++i._counter,f},_errorListener:function(){var f=this;f._parent._emit("loaderror",f._id,f._node.error?f._node.error.code:0),f._node.removeEventListener("error",f._errorFn,!1);},_loadListener:function(){var f=this,l=f._parent;l._duration=Math.ceil(f._node.duration*10)/10,Object.keys(l._sprite).length===0&&(l._sprite={__default:[0,l._duration*1e3]}),l._state!=="loaded"&&(l._state="loaded",l._emit("load"),l._loadQueue()),f._node.removeEventListener(i._canPlayEvent,f._loadFn,!1);},_endListener:function(){var f=this,l=f._parent;l._duration===1/0&&(l._duration=Math.ceil(f._node.duration*10)/10,l._sprite.__default[1]===1/0&&(l._sprite.__default[1]=l._duration*1e3),l._ended(f)),f._node.removeEventListener("ended",f._endFn,!1);}};var a={},n=function(f){var l=f._src;if(a[l]){f._duration=a[l].duration,d(f);return}if(/^data:[^;]+;base64,/.test(l)){for(var b=atob(l.split(",")[1]),v=new Uint8Array(b.length),m=0;m0?(a[l._src]=m,d(l,m)):b();};typeof Promise<"u"&&i.ctx.decodeAudioData.length===1?i.ctx.decodeAudioData(f).then(v).catch(b):i.ctx.decodeAudioData(f,v,b);},d=function(f,l){l&&!f._duration&&(f._duration=l.duration),Object.keys(f._sprite).length===0&&(f._sprite={__default:[0,f._duration*1e3]}),f._state!=="loaded"&&(f._state="loaded",f._emit("load"),f._loadQueue());},g=function(){if(i.usingWebAudio){try{typeof AudioContext<"u"?i.ctx=new AudioContext:typeof webkitAudioContext<"u"?i.ctx=new webkitAudioContext:i.usingWebAudio=!1;}catch{i.usingWebAudio=!1;}i.ctx||(i.usingWebAudio=!1);var f=/iP(hone|od|ad)/.test(i._navigator&&i._navigator.platform),l=i._navigator&&i._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),b=l?parseInt(l[1],10):null;if(f&&b&&b<9){var v=/safari/.test(i._navigator&&i._navigator.userAgent.toLowerCase());i._navigator&&!v&&(i.usingWebAudio=!1);}i.usingWebAudio&&(i.masterGain=typeof i.ctx.createGain>"u"?i.ctx.createGainNode():i.ctx.createGain(),i.masterGain.gain.setValueAtTime(i._muted?0:i._volume,i.ctx.currentTime),i.masterGain.connect(i.ctx.destination)),i._setup();}};typeof define=="function"&&define.amd&&define([],function(){return {Howler:i,Howl:r}}),typeof t<"u"&&(t.Howler=i,t.Howl=r),typeof global<"u"?(global.HowlerGlobal=e,global.Howler=i,global.Howl=r,global.Sound=s):typeof window<"u"&&(window.HowlerGlobal=e,window.Howler=i,window.Howl=r,window.Sound=s);}))(),function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(i){var r=this;if(!r.ctx||!r.ctx.listener)return r;for(var s=r._howls.length-1;s>=0;s--)r._howls[s].stereo(i);return r},HowlerGlobal.prototype.pos=function(i,r,s){var a=this;if(!a.ctx||!a.ctx.listener)return a;if(r=typeof r!="number"?a._pos[1]:r,s=typeof s!="number"?a._pos[2]:s,typeof i=="number")a._pos=[i,r,s],typeof a.ctx.listener.positionX<"u"?(a.ctx.listener.positionX.setTargetAtTime(a._pos[0],Howler.ctx.currentTime,.1),a.ctx.listener.positionY.setTargetAtTime(a._pos[1],Howler.ctx.currentTime,.1),a.ctx.listener.positionZ.setTargetAtTime(a._pos[2],Howler.ctx.currentTime,.1)):a.ctx.listener.setPosition(a._pos[0],a._pos[1],a._pos[2]);else return a._pos;return a},HowlerGlobal.prototype.orientation=function(i,r,s,a,n,p){var o=this;if(!o.ctx||!o.ctx.listener)return o;var d=o._orientation;if(r=typeof r!="number"?d[1]:r,s=typeof s!="number"?d[2]:s,a=typeof a!="number"?d[3]:a,n=typeof n!="number"?d[4]:n,p=typeof p!="number"?d[5]:p,typeof i=="number")o._orientation=[i,r,s,a,n,p],typeof o.ctx.listener.forwardX<"u"?(o.ctx.listener.forwardX.setTargetAtTime(i,Howler.ctx.currentTime,.1),o.ctx.listener.forwardY.setTargetAtTime(r,Howler.ctx.currentTime,.1),o.ctx.listener.forwardZ.setTargetAtTime(s,Howler.ctx.currentTime,.1),o.ctx.listener.upX.setTargetAtTime(a,Howler.ctx.currentTime,.1),o.ctx.listener.upY.setTargetAtTime(n,Howler.ctx.currentTime,.1),o.ctx.listener.upZ.setTargetAtTime(p,Howler.ctx.currentTime,.1)):o.ctx.listener.setOrientation(i,r,s,a,n,p);else return d;return o},Howl.prototype.init=function(i){return function(r){var s=this;return s._orientation=r.orientation||[1,0,0],s._stereo=r.stereo||null,s._pos=r.pos||null,s._pannerAttr={coneInnerAngle:typeof r.coneInnerAngle<"u"?r.coneInnerAngle:360,coneOuterAngle:typeof r.coneOuterAngle<"u"?r.coneOuterAngle:360,coneOuterGain:typeof r.coneOuterGain<"u"?r.coneOuterGain:0,distanceModel:typeof r.distanceModel<"u"?r.distanceModel:"inverse",maxDistance:typeof r.maxDistance<"u"?r.maxDistance:1e4,panningModel:typeof r.panningModel<"u"?r.panningModel:"HRTF",refDistance:typeof r.refDistance<"u"?r.refDistance:1,rolloffFactor:typeof r.rolloffFactor<"u"?r.rolloffFactor:1},s._onstereo=r.onstereo?[{fn:r.onstereo}]:[],s._onpos=r.onpos?[{fn:r.onpos}]:[],s._onorientation=r.onorientation?[{fn:r.onorientation}]:[],i.call(this,r)}}(Howl.prototype.init),Howl.prototype.stereo=function(i,r){var s=this;if(!s._webAudio)return s;if(s._state!=="loaded")return s._queue.push({event:"stereo",action:function(){s.stereo(i,r);}}),s;var a=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof r>"u")if(typeof i=="number")s._stereo=i,s._pos=[i,0,0];else return s._stereo;for(var n=s._getSoundIds(r),p=0;p"u")if(typeof i=="number")n._pos=[i,r,s];else return n._pos;for(var p=n._getSoundIds(a),o=0;o"u")if(typeof i=="number")n._orientation=[i,r,s];else return n._orientation;for(var p=n._getSoundIds(a),o=0;o"u"&&(s.pannerAttr||(s.pannerAttr={coneInnerAngle:s.coneInnerAngle,coneOuterAngle:s.coneOuterAngle,coneOuterGain:s.coneOuterGain,distanceModel:s.distanceModel,maxDistance:s.maxDistance,refDistance:s.refDistance,rolloffFactor:s.rolloffFactor,panningModel:s.panningModel}),i._pannerAttr={coneInnerAngle:typeof s.pannerAttr.coneInnerAngle<"u"?s.pannerAttr.coneInnerAngle:i._coneInnerAngle,coneOuterAngle:typeof s.pannerAttr.coneOuterAngle<"u"?s.pannerAttr.coneOuterAngle:i._coneOuterAngle,coneOuterGain:typeof s.pannerAttr.coneOuterGain<"u"?s.pannerAttr.coneOuterGain:i._coneOuterGain,distanceModel:typeof s.pannerAttr.distanceModel<"u"?s.pannerAttr.distanceModel:i._distanceModel,maxDistance:typeof s.pannerAttr.maxDistance<"u"?s.pannerAttr.maxDistance:i._maxDistance,refDistance:typeof s.pannerAttr.refDistance<"u"?s.pannerAttr.refDistance:i._refDistance,rolloffFactor:typeof s.pannerAttr.rolloffFactor<"u"?s.pannerAttr.rolloffFactor:i._rolloffFactor,panningModel:typeof s.pannerAttr.panningModel<"u"?s.pannerAttr.panningModel:i._panningModel});else return n=i._soundById(parseInt(r[0],10)),n?n._pannerAttr:i._pannerAttr;else r.length===2&&(s=r[0],a=parseInt(r[1],10));for(var p=i._getSoundIds(a),o=0;oKy});var Zy,Ky,Ec=cr(()=>{ns();Zy=ue((exports,module)=>{typeof navigator<"u"&&function(t,e){typeof define=="function"&&define.amd?define(function(){return e(t)}):typeof module=="object"&&module.exports?module.exports=e(t):(t.lottie=e(t),t.bodymovin=t.lottie);}(self||{},function(window){function workerContent(){function extendPrototype(t,e){var i,r=t.length,s;for(i=0;i1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t=[],e,i;for(e=0;e<256;e+=1)i=e.toString(16),t[e]=i.length===1?"0"+i:i;return function(r,s,a){return r<0&&(r=0),s<0&&(s=0),a<0&&(a=0),"#"+t[r]+t[s]+t[a]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t;},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t;},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t;},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t;},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t;};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(e){return typeof e}:_typeof$5=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(t)}var dataManager=function(){var t=1,e=[],i,r,s={onmessage:function(){},postMessage:function(l){i({data:l});}},a={postMessage:function(l){s.onmessage({data:l});}};function n(l){if(window.Worker&&window.Blob&&getWebWorker()){var b=new Blob(["var _workerSelf = self; self.onmessage = ",l.toString()],{type:"text/javascript"}),v=URL.createObjectURL(b);return new Worker(v)}return i=l,s}function p(){r||(r=n(function(l){function b(){function m(tt,vt){var D,O,k=tt.length,L,K,U,Ht;for(O=0;O=0;vt-=1)if(tt[vt].ty==="sh")if(tt[vt].ks.k.i)P(tt[vt].ks.k);else for(k=tt[vt].ks.k.length,O=0;OD[0]?!0:D[0]>tt[0]?!1:tt[1]>D[1]?!0:D[1]>tt[1]?!1:tt[2]>D[2]?!0:D[2]>tt[2]?!1:null}var F=function(){var tt=[4,4,14];function vt(O){var k=O.t.d;O.t.d={k:[{s:k,t:0}]};}function D(O){var k,L=O.length;for(k=0;k=0;k-=1)if(O[k].ty==="sh")if(O[k].ks.k.i)O[k].ks.k.c=O[k].closed;else for(U=O[k].ks.k.length,K=0;K500)&&(this._imageLoaded(),clearInterval(y)),u+=1;}.bind(this),50);}function a(c){var u=r(c,this.assetsPath,this.path),y=createNS("image");isSafari?this.testImageLoaded(y):y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",function(){P.img=t,this._imageLoaded();}.bind(this),!1),y.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var P={img:y,assetData:c};return P}function n(c){var u=r(c,this.assetsPath,this.path),y=createTag("img");y.crossOrigin="anonymous",y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",function(){P.img=t,this._imageLoaded();}.bind(this),!1),y.src=u;var P={img:y,assetData:c};return P}function p(c){var u={assetData:c},y=r(c,this.assetsPath,this.path);return dataManager.loadData(y,function(P){u.img=P,this._footageLoaded();}.bind(this),function(){u.img={},this._footageLoaded();}.bind(this)),u}function o(c,u){this.imagesLoadedCb=u;var y,P=c.length;for(y=0;ythis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e=this.animationData.layers,i,r=e.length,s=t.layers,a,n=s.length;for(a=0;athis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame");},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame);}catch(t){this.triggerRenderFrameError(t);}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")));},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause());},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause());},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0));},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):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):e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,e=0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"));}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]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");},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0);},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),_typeof$4(t[0])==="object"){var i,r=t.length;for(i=0;i=0;O-=1)e[O].animation.destroy(D);}function G(D,O,k){var L=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),K,U=L.length;for(K=0;K0?P=G:y=G;while(Math.abs(B)>a&&++it=s?E(u,ft,y,P):ct===0?ft:m(u,F,F+o,y,P)}},t}(),pooling=function(){function t(e){return e.concat(createSizedArray(e.length))}return {double:t}}(),poolFactory=function(){return function(t,e,i){var r=0,s=t,a=createSizedArray(s),n={newElement:p,release:o};function p(){var d;return r?(r-=1,d=a[r]):d=e(),d}function o(d){r===s&&(a=pooling.double(a),s*=2),i&&i(d),a[r]=d,r+=1;}return n}}(),bezierLengthPool=function(){function t(){return {addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,t)}(),segmentsLengthPool=function(){function t(){return {lengths:[],totalLength:0}}function e(i){var r,s=i.lengths.length;for(r=0;r-.001&&u<.001}function i(l,b,v,m,E,c,u,y,P){if(v===0&&c===0&&P===0)return e(l,b,m,E,u,y);var w=t.sqrt(t.pow(m-l,2)+t.pow(E-b,2)+t.pow(c-v,2)),F=t.sqrt(t.pow(u-l,2)+t.pow(y-b,2)+t.pow(P-v,2)),B=t.sqrt(t.pow(u-m,2)+t.pow(y-E,2)+t.pow(P-c,2)),G;return w>F?w>B?G=w-F-B:G=B-F-w:B>F?G=B-F-w:G=F-w-B,G>-1e-4&&G<1e-4}var r=function(){return function(l,b,v,m){var E=getDefaultCurveSegments(),c,u,y,P,w,F=0,B,G=[],it=[],ft=bezierLengthPool.newElement();for(y=v.length,c=0;cu?-1:1,w=!0;w;)if(m[c]<=u&&m[c+1]>u?(y=(u-m[c])/(m[c+1]-m[c]),w=!1):c+=P,c<0||c>=E-1){if(c===E-1)return v[c];w=!1;}return v[c]+(v[c+1]-v[c])*y}function d(l,b,v,m,E,c){var u=o(E,c),y=1-u,P=t.round((y*y*y*l[0]+(u*y*y+y*u*y+y*y*u)*v[0]+(u*u*y+y*u*u+u*y*u)*m[0]+u*u*u*b[0])*1e3)/1e3,w=t.round((y*y*y*l[1]+(u*y*y+y*u*y+y*y*u)*v[1]+(u*u*y+y*u*u+u*y*u)*m[1]+u*u*u*b[1])*1e3)/1e3;return [P,w]}var g=createTypedArray("float32",8);function f(l,b,v,m,E,c,u){E<0?E=0:E>1&&(E=1);var y=o(E,u);c=c>1?1:c;var P=o(c,u),w,F=l.length,B=1-y,G=1-P,it=B*B*B,ft=y*B*B*3,ct=y*y*B*3,dt=y*y*y,Pt=B*B*G,tt=y*B*G+B*y*G+B*B*P,vt=y*y*G+B*y*P+y*B*P,D=y*y*P,O=B*G*G,k=y*G*G+B*P*G+B*G*P,L=y*P*G+B*P*P+y*G*P,K=y*P*P,U=G*G*G,Ht=P*G*G+G*P*G+G*G*P,It=P*P*G+G*P*P+P*G*P,Gt=P*P*P;for(w=0;w=d.t-i){o.h&&(o=d),s=0;break}if(d.t-i>t){s=a;break}a=c||t=c?P.points.length-1:0;for(l=P.points[w].point.length,f=0;f=G&&F=c)r[0]=y[0],r[1]=y[1],r[2]=y[2];else if(t<=u)r[0]=o.s[0],r[1]=o.s[1],r[2]=o.s[2];else {var tt=createQuaternion(o.s),vt=createQuaternion(y),D=(t-u)/(c-u);quaternionToEuler(r,slerp(tt,vt,D));}else for(a=0;a=c?b=1:t1e-6?(l=Math.acos(b),v=Math.sin(l),m=Math.sin((1-i)*l)/v,E=Math.sin(i*l)/v):(m=1-i,E=i),r[0]=m*s+E*o,r[1]=m*a+E*d,r[2]=m*n+E*g,r[3]=m*p+E*f,r}function quaternionToEuler(t,e){var i=e[0],r=e[1],s=e[2],a=e[3],n=Math.atan2(2*r*a-2*i*s,1-2*r*r-2*s*s),p=Math.asin(2*i*r+2*s*a),o=Math.atan2(2*i*a-2*r*s,1-2*i*i-2*s*s);t[0]=n/degToRads,t[1]=p/degToRads,t[2]=o/degToRads;}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,r=t[2]*degToRads,s=Math.cos(e/2),a=Math.cos(i/2),n=Math.cos(r/2),p=Math.sin(e/2),o=Math.sin(i/2),d=Math.sin(r/2),g=s*a*n-p*o*d,f=p*o*n+s*a*d,l=p*a*n+s*o*d,b=s*o*n-p*a*d;return [f,l,b,g]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(t,this._caching);this.pv=r;}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if(this.propType==="unidimensional")e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,r=this.v.length;i1e-5&&(this.v[i]=e,this._mdf=!0),i+=1;}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[r]||a[r]&&!s)&&(a[r]=pointPool.newElement()),a[r][0]=t,a[r][1]=e;},ShapePath.prototype.setTripleAt=function(t,e,i,r,s,a,n,p){this.setXYAt(t,e,"v",n,p),this.setXYAt(i,r,"o",n,p),this.setXYAt(s,a,"i",n,p);},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,r=this.i,s=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),s=1);var a=this._length-1,n=this._length,p;for(p=s;p=tt[tt.length-1].t-this.offsetTime)w=tt[tt.length-1].s?tt[tt.length-1].s[0]:tt[tt.length-2].e[0],B=!0;else {for(var vt=P,D=tt.length-1,O=!0,k,L,K;O&&(k=tt[vt],L=tt[vt+1],!(L.t-this.offsetTime>c));)vt=L.t-this.offsetTime)dt=1;else if(cy&&c>y)||(this._caching.lastIndex=P0||k>-1e-6&&k<0?r(k*L)/L:k}function O(){var k=this.props,L=D(k[0]),K=D(k[1]),U=D(k[4]),Ht=D(k[5]),It=D(k[12]),Gt=D(k[13]);return "matrix("+L+","+K+","+U+","+Ht+","+It+","+Gt+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=n,this.rotateY=p,this.rotateZ=o,this.skew=g,this.skewFromAxis=f,this.shear=d,this.scale=l,this.setTransform=b,this.translate=v,this.transform=m,this.multiply=E,this.applyToPoint=w,this.applyToX=F,this.applyToY=B,this.applyToZ=G,this.applyToPointArray=Pt,this.applyToTriplePoints=dt,this.applyToPointStringified=tt,this.toCSS=vt,this.to2dCSS=O,this.clone=y,this.cloneFromProps=P,this.equals=u,this.inversePoints=ct,this.inversePoint=ft,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=c,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset();}}();function _typeof$3(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(e){return typeof e}:_typeof$3=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(t)}var lottie={};function setLocation(t){setLocationHref(t);}function searchAnimations(){animationManager.searchAnimations();}function setSubframeRendering(t){setSubframeEnabled(t);}function setPrefix(t){setIdPrefix(t);}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if(typeof t=="string")switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else !isNaN(t)&&t>1&&setDefaultCurveSegments(t);}function inBrowser(){return typeof navigator<"u"}function installPlugin(t,e){t==="expressions"&&setExpressionsPlugin(e);}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations());}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i"u"?"undefined":_typeof$3(exports))==="object"&&typeof module<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=lottie);}catch(t){}var ShapeModifiers=function(){var t={},e={};t.registerModifier=i,t.getModifier=r;function i(s,a){e[s]||(e[s]=a);}function r(s,a,n){return new e[s](a,n)}return t}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated();}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0);},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties());},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.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;},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[];},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,r,s){var a=[];e<=1?a.push({s:t,e}):t>=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var n=[],p,o=a.length,d;for(p=0;pr+i)){var g,f;d.s*s<=r?g=0:g=(d.s*s-r)/i,d.e*s>=r+i?f=1:f=(d.e*s-r)/i,n.push([g,f]);}return n.length||n.push([0,0]),n},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e1?e=1+r:this.s.v<0?e=0+r:e=this.s.v+r,this.e.v>1?i=1+r:this.e.v<0?i=0+r:i=this.e.v+r,e>i){var s=e;e=i,i=s;}e=Math.round(e*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=e,this.eValue=i;}else e=this.sValue,i=this.eValue;var a,n,p=this.shapes.length,o,d,g,f,l,b=0;if(i===e)for(n=0;n=0;n-=1)if(m=this.shapes[n],m.shape._mdf){for(E=m.localShapeCollection,E.releaseShapes(),this.m===2&&p>1?(P=this.calculateShapeEdges(e,i,m.totalShapeLength,y,b),y+=m.totalShapeLength):P=[[c,u]],d=P.length,o=0;o=1?v.push({s:m.totalShapeLength*(c-1),e:m.totalShapeLength*(u-1)}):(v.push({s:m.totalShapeLength*c,e:m.totalShapeLength}),v.push({s:0,e:m.totalShapeLength*(u-1)}));var w=this.addShapes(m,v[0]);if(v[0].s!==v[0].e){if(v.length>1){var F=m.shape.paths.shapes[m.shape.paths._length-1];if(F.c){var B=w.pop();this.addPaths(w,E),w=this.addShapes(m,v[1],B);}else this.addPaths(w,E),w=this.addShapes(m,v[1]);}this.addPaths(w,E);}}m.shape.paths=E;}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;ie.e){i.c=!1;break}else e.s<=d&&e.e>=d+g.addedLength?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[p],s[a].v[p],i,f,E),E=!1):(b=bez.getNewSegment(s[a].v[p-1],s[a].v[p],s[a].o[p-1],s[a].i[p],(e.s-d)/g.addedLength,(e.e-d)/g.addedLength,l[p-1]),this.addSegmentFromArray(b,i,f,E),E=!1,i.c=!1),d+=g.addedLength,f+=1;if(s[a].c&&l.length){if(g=l[p-1],d<=e.e){var c=l[p-1].addedLength;e.s<=d&&e.e>=d+c?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[0],s[a].v[0],i,f,E),E=!1):(b=bez.getNewSegment(s[a].v[p-1],s[a].v[0],s[a].o[p-1],s[a].i[0],(e.s-d)/c,(e.e-d)/c,l[p-1]),this.addSegmentFromArray(b,i,f,E),E=!1,i.c=!1);}else i.c=!1;d+=g.addedLength,f+=1;}if(i._length&&(i.setXYAt(i.v[m][0],i.v[m][1],"i",m),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),d>e.e)break;a=this.p.keyframes[this.p.keyframes.length-1].t?(g=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/d,0),f=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/d,0)):(g=this.p.pv,f=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/d,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){g=[],f=[];var l=this.px,b=this.py;l._caching.lastFrame+l.offsetTime<=l.keyframes[0].t?(g[0]=l.getValueAtTime((l.keyframes[0].t+.01)/d,0),g[1]=b.getValueAtTime((b.keyframes[0].t+.01)/d,0),f[0]=l.getValueAtTime(l.keyframes[0].t/d,0),f[1]=b.getValueAtTime(b.keyframes[0].t/d,0)):l._caching.lastFrame+l.offsetTime>=l.keyframes[l.keyframes.length-1].t?(g[0]=l.getValueAtTime(l.keyframes[l.keyframes.length-1].t/d,0),g[1]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/d,0),f[0]=l.getValueAtTime((l.keyframes[l.keyframes.length-1].t-.01)/d,0),f[1]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/d,0)):(g=[l.pv,b.pv],f[0]=l.getValueAtTime((l._caching.lastFrame+l.offsetTime-.01)/d,l.offsetTime),f[1]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/d,b.offsetTime));}else f=t,g=f;this.v.rotate(-Math.atan2(g[1]-f[1],g[0]-f[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 r(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;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 s(){}function a(o){this._addDynamicProperty(o),this.elem.addDynamicProperty(o),this._isDirty=!0;}function n(o,d,g){if(this.elem=o,this.frameId=-1,this.propType="transform",this.data=d,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(g||o),d.p&&d.p.s?(this.px=PropertyFactory.getProp(o,d.p.x,0,0,this),this.py=PropertyFactory.getProp(o,d.p.y,0,0,this),d.p.z&&(this.pz=PropertyFactory.getProp(o,d.p.z,0,0,this))):this.p=PropertyFactory.getProp(o,d.p||{k:[0,0,0]},1,0,this),d.rx){if(this.rx=PropertyFactory.getProp(o,d.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(o,d.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(o,d.rz,0,degToRads,this),d.or.k[0].ti){var f,l=d.or.k.length;for(f=0;f0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0);},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e0?Math.floor(l):Math.ceil(l),m=this.pMatrix.props,E=this.rMatrix.props,c=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var u=0;if(l>0){for(;uv;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),u-=1;b&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-b,!0),u-=b);}r=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var y,P;a;){if(e=this.elemsData[r].it,i=e[e.length-1].transform.mProps.v.props,P=i.length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),u!==0){for((r!==0&&s===1||r!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15]),this.matrix.transform(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14],c[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]),y=0;y0&&r<1?[e]:[]:[e-r,e+r].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return [singlePoint(this.points[0]),this];if(t>=1)return [this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),i=lerpPoint(this.points[1],this.points[2],t),r=lerpPoint(this.points[2],this.points[3],t),s=lerpPoint(e,i,t),a=lerpPoint(i,r,t),n=lerpPoint(s,a,t);return [new PolynomialBezier(this.points[0],e,s,n,!0),new PolynomialBezier(n,a,r,this.points[3],!0)]};function extrema(t,e){var i=t.points[0][e],r=t.points[t.points.length-1][e];if(i>r){var s=r;r=i,i=s;}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),n=0;n0&&a[n]<1){var p=t.point(a[n])[e];pr&&(r=p);}return {min:i,max:r}}PolynomialBezier.prototype.bounds=function(){return {x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.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}};function intersectData(t,e,i){var r=t.boundingBox();return {cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return [intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return Math.abs(t.cx-e.cx)*2=a||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r){s.push([t.t,e.t]);return}var n=splitData(t),p=splitData(e);intersectsImpl(n[0],p[0],i+1,r,s,a),intersectsImpl(n[0],p[1],i+1,r,s,a),intersectsImpl(n[1],p[0],i+1,r,s,a),intersectsImpl(n[1],p[1],i+1,r,s,a);}}PolynomialBezier.prototype.intersections=function(t,e,i){e===void 0&&(e=2),i===void 0&&(i=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,r,i),r},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)};function crossProduct(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 lineIntersection(t,e,i,r){var s=[t[0],t[1],1],a=[e[0],e[1],1],n=[i[0],i[1],1],p=[r[0],r[1],1],o=crossProduct(crossProduct(s,a),crossProduct(n,p));return floatZero(o[2])?null:[o[0]/o[2],o[1]/o[2]]}function polarOffset(t,e,i){return [t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0;};function setPoint(t,e,i,r,s,a,n){var p=i-Math.PI/2,o=i+Math.PI/2,d=e[0]+Math.cos(i)*r*s,g=e[1]-Math.sin(i)*r*s;t.setTripleAt(d,g,d+Math.cos(p)*a,g-Math.sin(p)*a,d+Math.cos(o)*n,g-Math.sin(o)*n,t.length());}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],r=-Math.PI*.5,s=[Math.cos(r)*i[0]-Math.sin(r)*i[1],Math.sin(r)*i[0]+Math.cos(r)*i[1]];return s}function getProjectingAngle(t,e){var i=e===0?t.length()-1:e-1,r=(e+1)%t.length(),s=t.v[i],a=t.v[r],n=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,i,r,s,a,n){var p=getProjectingAngle(e,i),o=e.v[i%e._length],d=e.v[i===0?e._length-1:i-1],g=e.v[(i+1)%e._length],f=a===2?Math.sqrt(Math.pow(o[0]-d[0],2)+Math.pow(o[1]-d[1],2)):0,l=a===2?Math.sqrt(Math.pow(o[0]-g[0],2)+Math.pow(o[1]-g[1],2)):0;setPoint(t,e.v[i%e._length],p,n,r,l/((s+1)*2),f/((s+1)*2));}function zigZagSegment(t,e,i,r,s,a){for(var n=0;n1&&e.length>1&&(s=getIntersection(t[0],e[e.length-1]),s)?[[t[0].split(s[0])[0]],[e[e.length-1].split(s[1])[1]]]:[i,r]}function pruneIntersections(t){for(var e,i=1;i1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i=t.inflectionPoints(),r,s,a,n;if(i.length===0)return [offsetSegment(t,e)];if(i.length===1||floatEqual(i[1],1))return a=t.split(i[0]),r=a[0],s=a[1],[offsetSegment(r,e),offsetSegment(s,e)];a=t.split(i[0]),r=a[0];var p=(i[1]-i[0])/(1-i[0]);return a=a[1].split(p),n=a[0],s=a[1],[offsetSegment(r,e),offsetSegment(n,e),offsetSegment(s,e)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length!==0;},OffsetPathModifier.prototype.processPath=function(t,e,i,r){var s=shapePool.newElement();s.c=t.c;var a=t.length();t.c||(a-=1);var n,p,o,d=[];for(n=0;n=0;n-=1)o=PolynomialBezier.shapeSegmentInverted(t,n),d.push(offsetSegmentSplit(o,e));d=pruneIntersections(d);var g=null,f=null;for(n=0;n0&&(Ht=!1),Ht){var Ot=createTag("style");Ot.setAttribute("f-forigin",k[L].fOrigin),Ot.setAttribute("f-origin",k[L].origin),Ot.setAttribute("f-family",k[L].fFamily),Ot.type="text/css",Ot.innerText="@font-face {font-family: "+k[L].fFamily+"; font-style: normal; src: url('"+k[L].fPath+"');}",O.appendChild(Ot);}}else if(k[L].fOrigin==="g"||k[L].origin===1){for(It=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Gt=0;Gt=55296&&k<=56319){var L=D.charCodeAt(1);L>=56320&&L<=57343&&(O=(k-55296)*1024+L-56320+65536);}return O}function F(D,O){var k=D.toString(16)+O.toString(16);return f.indexOf(k)!==-1}function B(D){return D===o}function G(D){return D===p}function it(D){var O=w(D);return O>=d&&O<=g}function ft(D){return it(D.substr(0,2))&&it(D.substr(2,2))}function ct(D){return i.indexOf(D)!==-1}function dt(D,O){var k=w(D.substr(O,2));if(k!==r)return !1;var L=0;for(O+=2;L<5;){if(k=w(D.substr(O,2)),kn)return !1;L+=1,O+=2;}return w(D.substr(O,2))===s}function Pt(){this.isLoaded=!0;}var tt=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);};tt.isModifier=F,tt.isZeroWidthJoiner=B,tt.isFlagEmoji=ft,tt.isRegionalCode=it,tt.isCombinedCharacter=ct,tt.isRegionalFlag=dt,tt.isVariationSelector=G,tt.BLACK_FLAG_CODE_POINT=r;var vt={addChars:c,addFonts:E,getCharData:u,getFontByName:P,measureText:y,checkLoadedFonts:v,setIsLoaded:Pt};return tt.prototype=vt,tt}();function SlotManager(t){this.animationData=t;}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[];},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t);},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&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?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide());},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0));},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1;},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1;},AudioElement.prototype.resume=function(){this._canPlay=!0;},AudioElement.prototype.setRate=function(t){this.audio.rate(t);},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume);},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(t){var e,i=this.layers.length,r;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e],r.ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=this.elements[e]?this.completeLayers:!1;this.checkPendingElements();},BaseRenderer.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: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);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t0&&(this.maskElement.setAttribute("id",l),this.element.maskedElement.setAttribute(u,"url("+getLocationHref()+"#"+l+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this);}MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e=this.element.finalTransform.mat,i,r=this.masksProperties.length;for(i=0;i1&&(r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==r){var n="";i.elem&&(e.c&&(n=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",n)),i.lastPath=r;}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null;};var filtersFactory=function(){var t={};t.createFilter=e,t.createAlphaToLuminanceFilter=i;function e(r,s){var a=createNS("filter");return a.setAttribute("id",r),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function i(){var r=createNS("feColorMatrix");return r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),r}return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return (/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))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,i="SourceGraphic",r=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),n=0;this.filters=[];var p;for(e=0;e=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;i.01)return !1;i+=1;}return !0},GradientProperty.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;t0;)c=l.transformers[it].mProps._mdf||c,G-=1,it-=1;if(c)for(G=w-l.styles[y].lvl,it=l.transformers.length-1;G>0;)B.multiply(l.transformers[it].mProps.v),G-=1,it-=1;}else B=t;if(F=l.sh.paths,m=F._length,c){for(E="",v=0;v=1?Pt=.99:Pt<=-1&&(Pt=-.99);var tt=ct*Pt,vt=Math.cos(dt+l.a.v)*tt+E[0],D=Math.sin(dt+l.a.v)*tt+E[1];v.setAttribute("fx",vt),v.setAttribute("fy",D),m&&!l.g._collapsable&&(l.of.setAttribute("fx",vt),l.of.setAttribute("fy",D));}}}function g(f,l,b){var v=l.style,m=l.d;m&&(m._mdf||b)&&m.dashStr&&(v.pElem.setAttribute("stroke-dasharray",m.dashStr),v.pElem.setAttribute("stroke-dashoffset",m.dashoffset[0])),l.c&&(l.c._mdf||b)&&v.pElem.setAttribute("stroke","rgb("+bmFloor(l.c.v[0])+","+bmFloor(l.c.v[1])+","+bmFloor(l.c.v[2])+")"),(l.o._mdf||b)&&v.pElem.setAttribute("stroke-opacity",l.o.v),(l.w._mdf||b)&&(v.pElem.setAttribute("stroke-width",l.w.v),v.msElem&&v.msElem.setAttribute("stroke-width",l.w.v));}return i}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[];}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes();},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e=this.shapes.length,i,r,s=this.stylesList.length,a,n=[],p=!1;for(r=0;r1&&p&&this.setShapesAsAnimated(n);}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;o-=1){if(E=this.searchProcessedElement(t[o]),E?e[o]=i[E-1]:t[o]._render=n,t[o].ty==="fl"||t[o].ty==="st"||t[o].ty==="gf"||t[o].ty==="gs"||t[o].ty==="no")E?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],s),t[o]._render&&e[o].style.pElem.parentNode!==r&&r.appendChild(e[o].style.pElem),l.push(e[o].style);else if(t[o].ty==="gr"){if(!E)e[o]=this.createGroupElement(t[o]);else for(f=e[o].it.length,g=0;g1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this);},TextProperty.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,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var r,s=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(r=0;re);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e=[],i=0,r=t.length,s,a,n=!1,p=!1,o="";i=55296&&s<=56319?FontManager.isRegionalFlag(t,i)?o=t.substr(i,14):(a=t.charCodeAt(i+1),a>=56320&&a<=57343&&(FontManager.isModifier(s,a)?(o=t.substr(i,2),n=!0):FontManager.isFlagEmoji(t.substr(i,4))?o=t.substr(i,4):o=t.substr(i,2))):s>56319?(a=t.charCodeAt(i+1),FontManager.isVariationSelector(s)&&(n=!0)):FontManager.isZeroWidthJoiner(s)&&(n=!0,p=!0),n?(e[e.length-1]+=o,n=!1):e.push(o),i+=o.length;return e},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,i=this.data,r=[],s,a,n,p=0,o,d=i.m.g,g=0,f=0,l=0,b=[],v=0,m=0,E,c,u=e.getFontByName(t.f),y,P=0,w=getFontProperties(u);t.fWeight=w.weight,t.fStyle=w.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),a=t.finalText.length,t.finalLineHeight=t.lh;var F=t.tr/1e3*t.finalSize,B;if(t.sz)for(var G=!0,it=t.sz[0],ft=t.sz[1],ct,dt;G;){dt=this.buildFinalText(t.t),ct=0,v=0,a=dt.length,F=t.tr/1e3*t.finalSize;var Pt=-1;for(s=0;sit&&dt[s]!==" "?(Pt===-1?a+=1:s=Pt,ct+=t.finalLineHeight||t.finalSize*1.2,dt.splice(s,Pt===s?1:0,"\r"),Pt=-1,v=0):(v+=P,v+=F);ct+=u.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&ftm?v:m,v=-2*F,o="",n=!0,l+=1):o=vt,e.chars?(y=e.getCharData(vt,u.fStyle,e.getFontByName(t.f).fFamily),P=n?0:y.w*t.finalSize/100):P=e.measureText(o,t.f,t.finalSize),vt===" "?tt+=P+F:(v+=P+F+tt,tt=0),r.push({l:P,an:P,add:g,n,anIndexes:[],val:o,line:l,animatorJustifyOffset:0}),d==2){if(g+=P,o===""||o===" "||s===a-1){for((o===""||o===" ")&&(g-=P);f<=s;)r[f].an=g,r[f].ind=p,r[f].extra=P,f+=1;p+=1,g=0;}}else if(d==3){if(g+=P,o===""||s===a-1){for(o===""&&(g-=P);f<=s;)r[f].an=g,r[f].ind=p,r[f].extra=P,f+=1;g=0,p+=1;}}else r[p].ind=p,r[p].extra=0,p+=1;if(t.l=r,m=v>m?v:m,b.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=m,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0;}t.lineWidths=b;var D=i.a,O,k;c=D.length;var L,K,U=[];for(E=0;E0?n=this.ne.v/100:p=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:d=1+this.xe.v/100;var g=BezierFactory.getBezierEasing(n,p,o,d).get,f=0,l=this.finalS,b=this.finalE,v=this.data.sh;if(v===2)b===l?f=a>=b?1:0:f=t(0,e(.5/(b-l)+(a-l)/(b-l),1)),f=g(f);else if(v===3)b===l?f=a>=b?0:1:f=1-t(0,e(.5/(b-l)+(a-l)/(b-l),1)),f=g(f);else if(v===4)b===l?f=0:(f=t(0,e(.5/(b-l)+(a-l)/(b-l),1)),f<.5?f*=2:f=1-2*(f-.5)),f=g(f);else if(v===5){if(b===l)f=0;else {var m=b-l;a=e(t(0,a+.5-l),b-l);var E=-m/2+a,c=m/2;f=Math.sqrt(1-E*E/(c*c));}f=g(f);}else v===6?(b===l?f=0:(a=e(t(0,a+.5-l),b-l),f=(1+Math.cos(Math.PI+Math.PI*2*a/(b-l)))/2),f=g(f)):(a>=i(l)&&(a-l<0?f=t(0,e(e(b,1)-(l-a),1)):f=t(0,e(b-a,1))),f=g(f));if(this.sm.v!==100){var u=this.sm.v*.01;u===0&&(u=1e-8);var y=.5-u*.5;f1&&(f=1));}return f*this.a.v},getValue:function(a){this.iterateDynamicProperties(),this._mdf=a||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,a&&this.data.r===2&&(this.e.v=this._currentTextLength);var n=this.data.r===2?1:100/this.data.totalChars,p=this.o.v/n,o=this.s.v/n+p,d=this.e.v/n+p;if(o>d){var g=o;o=d,d=g;}this.finalS=o,this.finalE=d;}},extendPrototype([DynamicPropertyContainer],r);function s(a,n,p){return new r(a,n)}return {getTextSelectorProp:s}}();function TextAnimatorDataProperty(t,e,i){var r={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,i):r,rx:a.rx?s(t,a.rx,0,degToRads,i):r,ry:a.ry?s(t,a.ry,0,degToRads,i):r,sk:a.sk?s(t,a.sk,0,degToRads,i):r,sa:a.sa?s(t,a.sa,0,degToRads,i):r,s:a.s?s(t,a.s,1,.01,i):r,a:a.a?s(t,a.a,1,0,i):r,o:a.o?s(t,a.o,0,.01,i):r,p:a.p?s(t,a.p,1,0,i):r,sw:a.sw?s(t,a.sw,0,0,i):r,sc:a.sc?s(t,a.sc,1,0,i):r,fc:a.fc?s(t,a.fc,1,0,i):r,fh:a.fh?s(t,a.fh,0,0,i):r,fs:a.fs?s(t,a.fs,0,.01,i):r,fb:a.fb?s(t,a.fb,0,.01,i):r,t:a.t?s(t,a.t,0,0,i):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t;}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i);}TextAnimatorProperty.prototype.searchProperties=function(){var t,e=this._textData.a.length,i,r=PropertyFactory.getProp;for(t=0;t=v+be||!w?(it=(v+be-E)/m.partialLength,Gt=P.point[0]+(m.point[0]-P.point[0])*it,Ot=P.point[1]+(m.point[1]-P.point[1])*it,a.translate(-i[0]*l[g].an*.005,-(i[1]*tt)*.01),c=!1):w&&(E+=m.partialLength,u+=1,u>=w.length&&(u=0,y+=1,F[y]?w=F[y].points:ct.v.c?(u=0,y=0,w=F[y].points):(E-=m.partialLength,w=null)),w&&(P=m,m=w[u],B=m.partialLength));It=l[g].an/2-l[g].add,a.translate(-It,0,0);}else It=l[g].an/2-l[g].add,a.translate(-It,0,0),a.translate(-i[0]*l[g].an*.005,-i[1]*tt*.01,0);for(k=0;kt?this.textSpans[t].span:createNS(p?"g":"text"),y<=t){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=o,p){var w=createNS("g");o.appendChild(w),this.textSpans[t].childSpan=w;}this.textSpans[t].span=o,this.layerElement.appendChild(o);}o.style.display="inherit";}if(d.reset(),f&&(n[t].n&&(l=-m,b+=i.yOffset,b+=v?1:0,v=!1),this.applyTextPropertiesToMatrix(i,d,n[t].line,l,b),l+=n[t].l||0,l+=m),p){P=this.globalData.fontManager.getCharData(i.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var F;if(P.t===1)F=new SVGCompElement(P.data,this.globalData,this);else {var B=emptyShapeData;P.data&&P.data.shapes&&(B=this.buildShapeData(P.data,i.finalSize)),F=new SVGShapeElement(B,this.globalData,this);}if(this.textSpans[t].glyph){var G=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(G.layerElement),G.destroy();}this.textSpans[t].glyph=F,F._debug=!0,F.prepareFrame(0),F.renderFrame(),this.textSpans[t].childSpan.appendChild(F.layerElement),P.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")");}else f&&o.setAttribute("transform","translate("+d.props[12]+","+d.props[13]+")"),o.textContent=n[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}f&&o&&o.setAttribute("d",g);}for(;t=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=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0));}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=s;},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e=1){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas();}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms();},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e;}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0);},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0);},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy);},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0],e=t.getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],e=t.getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas),s=r.getContext("2d");s.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0);}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over";}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1);}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy();},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(t,e,i,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;e.ty==="rc"?s=5:e.ty==="el"?s=6:e.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);var a,n=i.length,p;for(a=0;a=0;a-=1){if(f=this.searchProcessedElement(t[a]),f?e[a]=i[f-1]:t[a]._shouldRender=r,t[a].ty==="fl"||t[a].ty==="st"||t[a].ty==="gf"||t[a].ty==="gs")f?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],v),d.push(e[a].style);else if(t[a].ty==="gr"){if(!f)e[a]=this.createGroupElement(t[a]);else for(o=e[a].it.length,p=0;p=0;s-=1)e[s].ty==="tr"?(n=i[s].transform,this.renderShapeTransform(t,n)):e[s].ty==="sh"||e[s].ty==="el"||e[s].ty==="rc"||e[s].ty==="sr"?this.renderPath(e[s],i[s]):e[s].ty==="fl"?this.renderFill(e[s],i[s],n):e[s].ty==="st"?this.renderStroke(e[s],i[s],n):e[s].ty==="gf"||e[s].ty==="gs"?this.renderGradientFill(e[s],i[s],n):e[s].ty==="gr"?this.renderShape(n,e[s].it,i[s].it):e[s].ty;r&&this.drawLayer();},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i=t.trNodes,r=e.paths,s,a,n,p=r._length;i.length=0;var o=t.transforms.finalTransform;for(n=0;n=1?g=.99:g<=-1&&(g=-.99);var f=o*g,l=Math.cos(d+e.a.v)*f+n[0],b=Math.sin(d+e.a.v)*f+n[1];s=a.createRadialGradient(l,b,0,n[0],n[1],o);}var v,m=t.g.p,E=e.g.c,c=1;for(v=0;va&&o==="xMidYMid slice"||ss&&p==="meet"||as&&p==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:d==="xMax"&&(as&&p==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,g==="YMid"&&(a>s&&p==="meet"||as&&p==="meet"||a=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0;},CanvasRendererBase.prototype.renderFrame=function(t,e){if(!(this.renderedFrame===t&&this.renderConfig.clearCanvas===!0&&!e||this.destroyed||t===-1)){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i,r=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore();}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!(e[t]||this.layers[t].ty===99)){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions();}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();t.checkParenting();}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none";},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block";};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random();}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var t,e=15;for(t=0;t=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame();},CVCompElement.prototype.destroy=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null;},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:e&&e.clearCanvas!==void 0?e.clearCanvas:!0,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData));}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement);},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode();},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e;}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v);},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1));},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null);},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData);},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(t,e,i){this.initElement(t,e,i);}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?(t=createNS("rect"),t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(t=createTag("div"),t.style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t);};function HShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0};}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else {t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t);}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t;},HShapeElement.prototype.getTransformedPoint=function(t,e){var i,r=t.length;for(i=0;i0&&o<1&&s[l].push(this.calculateF(o,t,e,i,r,l))):(d=n*n-4*p*a,d>=0&&(g=(-n+bmSqrt(d))/(2*a),g>0&&g<1&&s[l].push(this.calculateF(g,t,e,i,r,l)),f=(-n-bmSqrt(d))/(2*a),f>0&&f<1&&s[l].push(this.calculateF(f,t,e,i,r,l)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1]);},HShapeElement.prototype.calculateF=function(t,e,i,r,s,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*i[a]+3*(1-t)*bmPow(t,2)*r[a]+bmPow(t,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,r=t.length;for(i=0;ii&&(i=s);}i*=t.mult;}else i=t.v*t.mult;e.x-=i,e.xMax+=i,e.y-=i,e.yMax+=i;},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax=0;e-=1){var r=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2]);}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),n=[s[0]/a,s[1]/a,s[2]/a],p=Math.sqrt(n[2]*n[2]+n[0]*n[0]),o=Math.atan2(n[1],p),d=Math.atan2(n[0],-n[2]);this.mat.rotateY(d).rotateX(-o);}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var g=!this._prevMat.equals(this.mat);if((g||this.pe._mdf)&&this.comp.threeDElements){i=this.comp.threeDElements.length;var f,l,b;for(e=0;e=t)return this.threeDElements[e].perspectiveElem;e+=1;}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i=createTag("div"),r,s;styleDiv(i);var a=createTag("div");if(styleDiv(a),e==="3d"){r=i.style,r.width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var n="50% 50%";r.webkitTransformOrigin=n,r.mozTransformOrigin=n,r.transformOrigin=n,s=a.style;var p="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=p,s.webkitTransform=p;}i.appendChild(a);var o={container:a,perspectiveElem:i,startPos:t,endPos:t,type:e};return this.threeDElements.push(o),o},HybridRendererBase.prototype.build3dContainers=function(){var t,e=this.layers.length,i,r="";for(t=0;t=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem);},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,r=this.threeDElements.length;ii?(s=t/this.globalData.compSize.w,a=t/this.globalData.compSize.w,n=0,p=(e-this.globalData.compSize.h*(t/this.globalData.compSize.w))/2):(s=e/this.globalData.compSize.h,a=e/this.globalData.compSize.h,n=(t-this.globalData.compSize.w*(e/this.globalData.compSize.h))/2,p=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+n+","+p+",0,1)",o.transform=o.webkitTransform;},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none";},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block";},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else {var t=this.globalData.compSize.w,e=this.globalData.compSize.h,i,r=this.threeDElements.length;for(i=0;i=d;)ft/=2,ct/=2,dt>>>=1;return (ft+dt)/ct};return it.int32=function(){return G.g(4)|0},it.quick=function(){return G.g(4)/4294967296},it.double=it,E(u(G.S),t),(P.pass||w||function(ft,ct,dt,Pt){return Pt&&(Pt.S&&v(Pt,G),ft.state=function(){return v(G,{})}),dt?(e[n]=ft,ct):ft})(it,B,"global"in P?P.global:this==e,P.state)}e["seed"+n]=l;function b(y){var P,w=y.length,F=this,B=0,G=F.i=F.j=0,it=F.S=[];for(w||(y=[w++]);Bi){var r=i;i=e,e=r;}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if(typeof t=="number"||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var i,r=Math.min(t.length,e.length),s=0;for(i=0;i.5?d/(2-s-a):d/(s+a),s){case e:n=(i-r)/d+(i1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e=t[0],i=t[1],r=t[2],s,a,n;if(i===0)s=r,n=r,a=r;else {var p=r<.5?r*(1+i):r+i-r*i,o=2*r-p;s=hue2rgb(o,p,e+1/3),a=hue2rgb(o,p,e),n=hue2rgb(o,p,e-1/3);}return [s,a,n,t[3]]}function linear(t,e,i,r,s){if((r===void 0||s===void 0)&&(r=e,s=i,e=0,i=1),i=i)return s;var n=i===e?0:(t-e)/(i-e);if(!r.length)return r+(s-r)*n;var p,o=r.length,d=createTypedArray("float32",o);for(p=0;p1){for(s=0;s1?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){var p,o=s.length,d=createTypedArray("float32",o);for(p=0;pdata.k[e].t&&tdata.k[e+1].t-t?(r=e+2,s=data.k[e+1].t):(r=e+1,s=data.k[e].t);break}r===-1&&(r=e+1,s=data.k[e].t);}var a={};return a.index=r,a.time=s/elem.comp.globalData.frameRate,a}function key(t){var e,i,r;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(r=s.length,i=0;iE.length-1)&&(b=E.length-1),y=E[E.length-1-b].t,u=c-y);var P,w,F;if(l==="pingpong"){var B=Math.floor((m-y)/u);if(B%2!==0)return this.getValueAtTime((u-(m-y)%u+y)/this.comp.globalData.frameRate,0)}else if(l==="offset"){var G=this.getValueAtTime(y/this.comp.globalData.frameRate,0),it=this.getValueAtTime(c/this.comp.globalData.frameRate,0),ft=this.getValueAtTime(((m-y)%u+y)/this.comp.globalData.frameRate,0),ct=Math.floor((m-y)/u);if(this.pv.length){for(F=new Array(G.length),w=F.length,P=0;P=c)return this.pv;var u,y;v?(b?u=Math.abs(this.elem.comp.globalData.frameRate*b):u=Math.max(0,this.elem.data.op-c),y=c+u):((!b||b>E.length-1)&&(b=E.length-1),y=E[b].t,u=y-c);var P,w,F;if(l==="pingpong"){var B=Math.floor((c-m)/u);if(B%2===0)return this.getValueAtTime(((c-m)%u+c)/this.comp.globalData.frameRate,0)}else if(l==="offset"){var G=this.getValueAtTime(c/this.comp.globalData.frameRate,0),it=this.getValueAtTime(y/this.comp.globalData.frameRate,0),ft=this.getValueAtTime((u-(c-m)%u+c)/this.comp.globalData.frameRate,0),ct=Math.floor((c-m)/u)+1;if(this.pv.length){for(F=new Array(G.length),w=F.length,P=0;P1?(E-m)/(b-1):1,u=0,y=0,P;this.pv.length?P=createTypedArray("float32",this.pv.length):P=0;for(var w;uc){var F=u,B=v.c&&u===y-1?0:u+1,G=(c-P)/E[u].addedLength;w=bez.getPointInSegment(v.v[F],v.v[B],v.o[F],v.i[B],G,E[u]);break}else P+=E[u].addedLength;u+=1;}return w||(w=v.c?[v.v[0][0],v.v[0][1]]:[v.v[v._length-1][0],v.v[v._length-1][1]]),w},vectorOnPath:function(l,b,v){l==1?l=this.v.c:l==0&&(l=.999);var m=this.pointOnPath(l,b),E=this.pointOnPath(l+.001,b),c=E[0]-m[0],u=E[1]-m[1],y=Math.sqrt(Math.pow(c,2)+Math.pow(u,2));if(y===0)return [0,0];var P=v==="tangent"?[c/y,u/y]:[-u/y,c/y];return P},tangentOnPath:function(l,b){return this.vectorOnPath(l,b,"tangent")},normalOnPath:function(l,b){return this.vectorOnPath(l,b,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([g],o),extendPrototype([g],d),d.prototype.getValueAtTime=p,d.prototype.initiateExpression=ExpressionManager.initiateExpression;var f=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(l,b,v,m,E){var c=f(l,b,v,m,E);return c.propertyIndex=b.ix,c.lock=!1,v===3?expressionHelpers.searchExpressions(l,b.pt,c):v===4&&expressionHelpers.searchExpressions(l,b.ks,c),c.k&&l.addDynamicProperty(c),c};}function initialize$1(){addPropertyDecorator();}function addDecorator(){function t(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(e,i){var r=this.calculateExpression(i);if(e.t!==r){var s={};return this.copyData(s,e),s.t=r.toString(),s.__complete=!1,s}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),i=this.searchExpressions();return this.kf=e||i,this.kf},TextProperty.prototype.searchExpressions=t;}function initialize(){addDecorator();}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function t(e,i){var r=createNS("feMerge");r.setAttribute("result",e);var s,a;for(a=0;a=d?f=v<0?r:s:f=r+b*Math.pow((p-t)/v,1/i),g[l]=f,l+=1,a+=256/(n-1);return g.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e));}};function SVGDropShadowEffect(t,e,i,r,s){var a=e.container.globalData.renderConfig.filterSize,n=e.data.fs||a;t.setAttribute("x",n.x||a.x),t.setAttribute("y",n.y||a.y),t.setAttribute("width",n.width||a.width),t.setAttribute("height",n.height||a.height),this.filterManager=e;var p=createNS("feGaussianBlur");p.setAttribute("in","SourceAlpha"),p.setAttribute("result",r+"_drop_shadow_1"),p.setAttribute("stdDeviation","0"),this.feGaussianBlur=p,t.appendChild(p);var o=createNS("feOffset");o.setAttribute("dx","25"),o.setAttribute("dy","0"),o.setAttribute("in",r+"_drop_shadow_1"),o.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=o,t.appendChild(o);var d=createNS("feFlood");d.setAttribute("flood-color","#00ff00"),d.setAttribute("flood-opacity","1"),d.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=d,t.appendChild(d);var g=createNS("feComposite");g.setAttribute("in",r+"_drop_shadow_3"),g.setAttribute("in2",r+"_drop_shadow_2"),g.setAttribute("operator","in"),g.setAttribute("result",r+"_drop_shadow_4"),t.appendChild(g);var f=this.createMergeNode(r,[r+"_drop_shadow_4",s]);t.appendChild(f);}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(e[0]*255),Math.round(e[1]*255),Math.round(e[2]*255)));}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=i*Math.cos(r),a=i*Math.sin(r);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a);}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement;}SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;eF.timeCompleted&&(B.animInstance.currentFrame=F.timeCompleted);}}(),p=function(){return function(F){var B=r[F.id],G=B.container,it=B.elements;a(F.tree,G,it);}}();function o(F,B){for(var G,it=0;it"u"?(G.canvas=dt,G.instructionsHandler=b(dt)):(dt instanceof OffscreenCanvas||(tt=dt.transferControlToOffscreen(),ft.rendererSettings.canvas=tt),ct.push(tt));}r[B]=G,t.postMessage({type:"load",payload:{params:ft,id:B}},ct);}),it}var w={loadAnimation:P};return w}();return lottie});}),Ky=Zy();});var Ac={};Ts(Ac,{default:()=>tg});var Qy,tg,Cc=cr(()=>{ns();Qy=ue((t,e)=>{typeof navigator<"u"&&function(i,r){typeof t=="object"&&typeof e<"u"?e.exports=r():typeof define=="function"&&define.amd?define(r):(i=typeof globalThis<"u"?globalThis:i||self,i.lottie=r());}(t,function(){var i="http://www.w3.org/2000/svg",r="",s=!1,a=-999999,n=function(A){s=!!A;},p=function(){return s},o=function(A){r=A;},d=function(){return r};function g(A){return document.createElement(A)}function f(A,I){var q,Y=A.length,ot;for(q=0;q1?q[1]=1:q[1]<=0&&(q[1]=0),L(q[0],q[1],q[2])}function Ht(A,I){var q=K(A[0]*255,A[1]*255,A[2]*255);return q[2]+=I,q[2]>1?q[2]=1:q[2]<0&&(q[2]=0),L(q[0],q[1],q[2])}function It(A,I){var q=K(A[0]*255,A[1]*255,A[2]*255);return q[0]+=I/360,q[0]>1?q[0]-=1:q[0]<0&&(q[0]+=1),L(q[0],q[1],q[2])}(function(){var A=[],I,q;for(I=0;I<256;I+=1)q=I.toString(16),A[I]=q.length===1?"0"+q:q;return function(Y,ot,st){return Y<0&&(Y=0),ot<0&&(ot=0),st<0&&(st=0),"#"+A[Y]+A[ot]+A[st]}})();var Gt=function(A){E=!!A;},Ot=function(){return E},ee=function(A){c=A;},ae=function(){return c},le=function(A){G=A;},ye=function(){return G},ce=function(A){u=A;};function Xt(A){return document.createElementNS(i,A)}function pe(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pe=function(I){return typeof I}:pe=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},pe(A)}var Wt=function(){var A=1,I=[],q,Y,ot={onmessage:function(){},postMessage:function(At){q({data:At});}},st={postMessage:function(At){ot.onmessage({data:At});}};function _t(At){if(window.Worker&&window.Blob&&p()){var _=new Blob(["var _workerSelf = self; self.onmessage = ",At.toString()],{type:"text/javascript"}),C=URL.createObjectURL(_);return new Worker(C)}return q=At,ot}function Dt(){Y||(Y=_t(function(At){function _(){function T(rt,J){var W,X,j=rt.length,nt,ht,Q,yt;for(X=0;X=0;J-=1)if(rt[J].ty==="sh")if(rt[J].ks.k.i)x(rt[J].ks.k);else for(j=rt[J].ks.k.length,X=0;XW[0]?!0:W[0]>rt[0]?!1:rt[1]>W[1]?!0:W[1]>rt[1]?!1:rt[2]>W[2]?!0:W[2]>rt[2]?!1:null}var M=function(){var rt=[4,4,14];function J(X){var j=X.t.d;X.t.d={k:[{s:j,t:0}]};}function W(X){var j,nt=X.length;for(j=0;j=0;j-=1)if(X[j].ty==="sh")if(X[j].ks.k.i)X[j].ks.k.c=X[j].closed;else for(Q=X[j].ks.k.length,ht=0;ht500)&&(this._imageLoaded(),clearInterval(h)),N+=1;}.bind(this),50);}function st(H){var N=Y(H,this.assetsPath,this.path),h=Xt("image");y?this.testImageLoaded(h):h.addEventListener("load",this._imageLoaded,!1),h.addEventListener("error",function(){x.img=A,this._imageLoaded();}.bind(this),!1),h.setAttributeNS("http://www.w3.org/1999/xlink","href",N),this._elementHelper.append?this._elementHelper.append(h):this._elementHelper.appendChild(h);var x={img:h,assetData:H};return x}function _t(H){var N=Y(H,this.assetsPath,this.path),h=g("img");h.crossOrigin="anonymous",h.addEventListener("load",this._imageLoaded,!1),h.addEventListener("error",function(){x.img=A,this._imageLoaded();}.bind(this),!1),h.src=N;var x={img:h,assetData:H};return x}function Dt(H){var N={assetData:H},h=Y(H,this.assetsPath,this.path);return Wt.loadData(h,function(x){N.img=x,this._footageLoaded();}.bind(this),function(){N.img={},this._footageLoaded();}.bind(this)),N}function xt(H,N){this.imagesLoadedCb=N;var h,x=H.length;for(h=0;hthis.animationData.op&&(this.animationData.op=A.op,this.totalFrames=Math.floor(A.op-this.animationData.ip));var I=this.animationData.layers,q,Y=I.length,ot=A.layers,st,_t=ot.length;for(st=0;st<_t;st+=1)for(q=0;qthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame");},qt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame);}catch(A){this.triggerRenderFrameError(A);}},qt.prototype.play=function(A){A&&this.name!==A||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")));},qt.prototype.pause=function(A){A&&this.name!==A||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause());},qt.prototype.togglePause=function(A){A&&this.name!==A||(this.isPaused===!0?this.play():this.pause());},qt.prototype.stop=function(A){A&&this.name!==A||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0));},qt.prototype.getMarkerData=function(A){for(var I,q=0;q=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(I>this.totalFrames?I%this.totalFrames:0)||(q=!0,I=this.totalFrames-1):I>=this.totalFrames?(this.playCount+=1,this.checkSegments(I%this.totalFrames)||(this.setCurrentRawFrameValue(I%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(I):I<0?this.checkSegments(I%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+I%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(q=!0,I=0)):this.setCurrentRawFrameValue(I),q&&(this.setCurrentRawFrameValue(I),this.pause(),this.trigger("complete"));}},qt.prototype.adjustSegment=function(A,I){this.playCount=0,A[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=A[0]-A[1],this.timeCompleted=this.totalFrames,this.firstFrame=A[1],this.setCurrentRawFrameValue(this.totalFrames-.001-I)):A[1]>A[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=A[1]-A[0],this.timeCompleted=this.totalFrames,this.firstFrame=A[0],this.setCurrentRawFrameValue(.001+I)),this.trigger("segmentStart");},qt.prototype.setSegment=function(A,I){var q=-1;this.isPaused&&(this.currentRawFrame+this.firstFrameI&&(q=I-A)),this.firstFrame=A,this.totalFrames=I-A,this.timeCompleted=this.totalFrames,q!==-1&&this.goToAndStop(q,!0);},qt.prototype.playSegments=function(A,I){if(I&&(this.segments.length=0),re(A[0])==="object"){var q,Y=A.length;for(q=0;q=0;X-=1)I[X].animation.destroy(W);}function V(W,X,j){var nt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),ht,Q=nt.length;for(ht=0;ht0?x=V:h=V;while(Math.abs(R)>st&&++$<_t);return V}function z(N,h,x,S){for(var M=0;M=ot?z(N,et,h,x):Z===0?et:T(N,M,M+xt,h,x)}},A}(),be=function(){function A(I){return I.concat(m(I.length))}return {double:A}}(),ze=function(){return function(A,I,q){var Y=0,ot=A,st=m(ot),_t={newElement:Dt,release:xt};function Dt(){var jt;return Y?(Y-=1,jt=st[Y]):jt=I(),jt}function xt(jt){Y===ot&&(st=be.double(st),ot*=2),q&&q(jt),st[Y]=jt,Y+=1;}return _t}}(),si=function(){function A(){return {addedLength:0,percents:v("float32",ye()),lengths:v("float32",ye())}}return ze(8,A)}(),ai=function(){function A(){return {lengths:[],totalLength:0}}function I(q){var Y,ot=q.lengths.length;for(Y=0;Y-.001&&N<.001}function q(At,_,C,T,z,H,N,h,x){if(C===0&&H===0&&x===0)return I(At,_,T,z,N,h);var S=A.sqrt(A.pow(T-At,2)+A.pow(z-_,2)+A.pow(H-C,2)),M=A.sqrt(A.pow(N-At,2)+A.pow(h-_,2)+A.pow(x-C,2)),R=A.sqrt(A.pow(N-T,2)+A.pow(h-z,2)+A.pow(x-H,2)),V;return S>M?S>R?V=S-M-R:V=R-M-S:R>M?V=R-M-S:V=M-S-R,V>-1e-4&&V<1e-4}var Y=function(){return function(At,_,C,T){var z=ye(),H,N,h,x,S,M=0,R,V=[],$=[],et=si.newElement();for(h=C.length,H=0;HN?-1:1,S=!0;S;)if(T[H]<=N&&T[H+1]>N?(h=(N-T[H])/(T[H+1]-T[H]),S=!1):H+=x,H<0||H>=z-1){if(H===z-1)return C[H];S=!1;}return C[H]+(C[H+1]-C[H])*h}function jt(At,_,C,T,z,H){var N=xt(z,H),h=1-N,x=A.round((h*h*h*At[0]+(N*h*h+h*N*h+h*h*N)*C[0]+(N*N*h+h*N*N+N*h*N)*T[0]+N*N*N*_[0])*1e3)/1e3,S=A.round((h*h*h*At[1]+(N*h*h+h*N*h+h*h*N)*C[1]+(N*N*h+h*N*N+N*h*N)*T[1]+N*N*N*_[1])*1e3)/1e3;return [x,S]}var Rt=v("float32",8);function Jt(At,_,C,T,z,H,N){z<0?z=0:z>1&&(z=1);var h=xt(z,N);H=H>1?1:H;var x=xt(H,N),S,M=At.length,R=1-h,V=1-x,$=R*R*R,et=h*R*R*3,Z=h*h*R*3,at=h*h*h,pt=R*R*V,rt=h*R*V+R*h*V+R*R*x,J=h*h*V+R*h*x+h*R*x,W=h*h*x,X=R*V*V,j=h*V*V+R*x*V+R*V*x,nt=h*x*V+R*x*x+h*V*x,ht=h*x*x,Q=V*V*V,yt=x*V*V+V*x*V+V*V*x,bt=x*x*V+V*x*x+x*V*x,kt=x*x*x;for(S=0;S=jt.t-q){xt.h&&(xt=jt),ot=0;break}if(jt.t-q>A){ot=st;break}st<_t-1?st+=1:(ot=0,Dt=!1);}Rt=this.keyframesMetadata[st]||{};var Jt,At,_,C,T,z,H=jt.t-q,N=xt.t-q,h;if(xt.to){Rt.bezierData||(Rt.bezierData=Ei.buildBezierData(xt.s,jt.s||xt.e,xt.to,xt.ti));var x=Rt.bezierData;if(A>=H||A=H?x.points.length-1:0;for(At=x.points[S].point.length,Jt=0;Jt=V&&M=H)Y[0]=h[0],Y[1]=h[1],Y[2]=h[2];else if(A<=N)Y[0]=xt.s[0],Y[1]=xt.s[1],Y[2]=xt.s[2];else {var rt=os(xt.s),J=os(h),W=(A-N)/(H-N);jr(Y,ha(rt,J,W));}else for(st=0;st<_t;st+=1)xt.h!==1&&(A>=H?_=1:A1e-6?(At=Math.acos(_),C=Math.sin(At),T=Math.sin((1-q)*At)/C,z=Math.sin(q*At)/C):(T=1-q,z=q),Y[0]=T*ot+z*xt,Y[1]=T*st+z*jt,Y[2]=T*_t+z*Rt,Y[3]=T*Dt+z*Jt,Y}function jr(A,I){var q=I[0],Y=I[1],ot=I[2],st=I[3],_t=Math.atan2(2*Y*st-2*q*ot,1-2*Y*Y-2*ot*ot),Dt=Math.asin(2*q*Y+2*ot*st),xt=Math.atan2(2*q*st-2*Y*ot,1-2*q*q-2*ot*ot);A[0]=_t/it,A[1]=Dt/it,A[2]=xt/it;}function os(A){var I=A[0]*it,q=A[1]*it,Y=A[2]*it,ot=Math.cos(I/2),st=Math.cos(q/2),_t=Math.cos(Y/2),Dt=Math.sin(I/2),xt=Math.sin(q/2),jt=Math.sin(Y/2),Rt=ot*st*_t-Dt*xt*jt,Jt=Dt*xt*_t+ot*st*jt,At=Dt*st*_t+ot*xt*jt,_=ot*xt*_t-Dt*st*jt;return [Jt,At,_,Rt]}function Xs(){var A=this.comp.renderedFrame-this.offsetTime,I=this.keyframes[0].t-this.offsetTime,q=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(A===this._caching.lastFrame||this._caching.lastFrame!==Yi&&(this._caching.lastFrame>=q&&A>=q||this._caching.lastFrame=A&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var Y=this.interpolateValue(A,this._caching);this.pv=Y;}return this._caching.lastFrame=A,this.pv}function Vr(A){var I;if(this.propType==="unidimensional")I=A*this.mult,Ki(this.v-I)>1e-5&&(this.v=I,this._mdf=!0);else for(var q=0,Y=this.v.length;q1e-5&&(this.v[q]=I,this._mdf=!0),q+=1;}function Hr(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var A,I=this.effectsSequence.length,q=this.kf?this.pv:this.data.k;for(A=0;A=this._maxLength&&this.doubleArrayLength(),q){case"v":st=this.v;break;case"i":st=this.i;break;case"o":st=this.o;break;default:st=[];break}(!st[Y]||st[Y]&&!ot)&&(st[Y]=fe.newElement()),st[Y][0]=A,st[Y][1]=I;},Ze.prototype.setTripleAt=function(A,I,q,Y,ot,st,_t,Dt){this.setXYAt(A,I,"v",_t,Dt),this.setXYAt(q,Y,"o",_t,Dt),this.setXYAt(ot,st,"i",_t,Dt);},Ze.prototype.reverse=function(){var A=new Ze;A.setPathData(this.c,this._length);var I=this.v,q=this.o,Y=this.i,ot=0;this.c&&(A.setTripleAt(I[0][0],I[0][1],Y[0][0],Y[0][1],q[0][0],q[0][1],0,!1),ot=1);var st=this._length-1,_t=this._length,Dt;for(Dt=ot;Dt<_t;Dt+=1)A.setTripleAt(I[st][0],I[st][1],Y[st][0],Y[st][1],q[st][0],q[st][1],Dt,!1),st-=1;return A},Ze.prototype.length=function(){return this._length};var Ne=function(){function A(){return new Ze}function I(ot){var st=ot._length,_t;for(_t=0;_t=rt[rt.length-1].t-this.offsetTime)S=rt[rt.length-1].s?rt[rt.length-1].s[0]:rt[rt.length-2].e[0],R=!0;else {for(var J=x,W=rt.length-1,X=!0,j,nt,ht;X&&(j=rt[J],nt=rt[J+1],!(nt.t-this.offsetTime>H));)J=nt.t-this.offsetTime)at=1;else if(Hh&&H>h)||(this._caching.lastIndex=x0||j>-1e-6&&j<0?Y(j*nt)/nt:j}function X(){var j=this.props,nt=W(j[0]),ht=W(j[1]),Q=W(j[4]),yt=W(j[5]),bt=W(j[12]),kt=W(j[13]);return "matrix("+nt+","+ht+","+Q+","+yt+","+bt+","+kt+")"}return function(){this.reset=ot,this.rotate=st,this.rotateX=_t,this.rotateY=Dt,this.rotateZ=xt,this.skew=Rt,this.skewFromAxis=Jt,this.shear=jt,this.scale=At,this.setTransform=_,this.translate=C,this.transform=T,this.multiply=z,this.applyToPoint=S,this.applyToX=M,this.applyToY=R,this.applyToZ=V,this.applyToPointArray=pt,this.applyToTriplePoints=at,this.applyToPointStringified=rt,this.toCSS=J,this.to2dCSS=X,this.clone=h,this.cloneFromProps=x,this.equals=N,this.inversePoints=Z,this.inversePoint=et,this.getInverseMatrix=$,this._t=this.transform,this.isIdentity=H,this._identity=!0,this._identityCalculated=!1,this.props=v("float32",16),this.reset();}}();function kr(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kr=function(I){return typeof I}:kr=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},kr(A)}var ge={};function Vs(A){o(A);}function ti(){ne.searchAnimations();}function wa(A){Gt(A);}function la(A){ce(A);}function Ta(A){return ne.loadAnimation(A)}function hs(A){if(typeof A=="string")switch(A){case"high":le(200);break;default:case"medium":le(50);break;case"low":le(10);break}else !isNaN(A)&&A>1&&le(A);}function Ma(){return typeof navigator<"u"}function Da(A,I){A==="expressions"&&ee(I);}function Fa(A){switch(A){case"propertyFactory":return te;case"shapePropertyFactory":return gr;case"matrix":return qe;default:return null}}ge.play=ne.play,ge.pause=ne.pause,ge.setLocationHref=Vs,ge.togglePause=ne.togglePause,ge.setSpeed=ne.setSpeed,ge.setDirection=ne.setDirection,ge.stop=ne.stop,ge.searchAnimations=ti,ge.registerAnimation=ne.registerAnimation,ge.loadAnimation=Ta,ge.setSubframeRendering=wa,ge.resize=ne.resize,ge.goToAndStop=ne.goToAndStop,ge.destroy=ne.destroy,ge.setQuality=hs,ge.inBrowser=Ma,ge.installPlugin=Da,ge.freeze=ne.freeze,ge.unfreeze=ne.unfreeze,ge.setVolume=ne.setVolume,ge.mute=ne.mute,ge.unmute=ne.unmute,ge.getRegisteredAnimations=ne.getRegisteredAnimations,ge.useWebWorker=n,ge.setIDPrefix=la,ge.__getFactory=Fa,ge.version="5.12.2";function Ia(){document.readyState==="complete"&&(clearInterval(Zs),ti());}function La(A){for(var I=Ys.split("&"),q=0;q"u"?"undefined":kr(t))==="object"&&typeof e<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=ge);}catch{}var Ii=function(){var A={},I={};A.registerModifier=q,A.getModifier=Y;function q(ot,st){I[ot]||(I[ot]=st);}function Y(ot,st,_t){return new I[ot](st,_t)}return A}();function li(){}li.prototype.initModifierProperties=function(){},li.prototype.addShapeToModifier=function(){},li.prototype.addShape=function(A){if(!this.closed){A.sh.container.addDynamicProperty(A.sh);var I={shape:A.sh,data:A,localShapeCollection:hi.newShapeCollection()};this.shapes.push(I),this.addShapeToModifier(I),this._isAnimated&&A.setAsAnimated();}},li.prototype.init=function(A,I){this.shapes=[],this.elem=A,this.initDynamicPropertyContainer(A),this.initModifierProperties(A,I),this.frameId=a,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0);},li.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties());},f([Ye],li);function ei(){}f([li],ei),ei.prototype.initModifierProperties=function(A,I){this.s=te.getProp(A,I.s,0,.01,this),this.e=te.getProp(A,I.e,0,.01,this),this.o=te.getProp(A,I.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=I.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length;},ei.prototype.addShapeToModifier=function(A){A.pathsData=[];},ei.prototype.calculateShapeEdges=function(A,I,q,Y,ot){var st=[];I<=1?st.push({s:A,e:I}):A>=1?st.push({s:A-1,e:I-1}):(st.push({s:A,e:1}),st.push({s:0,e:I-1}));var _t=[],Dt,xt=st.length,jt;for(Dt=0;DtY+q)){var Rt,Jt;jt.s*ot<=Y?Rt=0:Rt=(jt.s*ot-Y)/q,jt.e*ot>=Y+q?Jt=1:Jt=(jt.e*ot-Y)/q,_t.push([Rt,Jt]);}return _t.length||_t.push([0,0]),_t},ei.prototype.releasePathsData=function(A){var I,q=A.length;for(I=0;I1?I=1+Y:this.s.v<0?I=0+Y:I=this.s.v+Y,this.e.v>1?q=1+Y:this.e.v<0?q=0+Y:q=this.e.v+Y,I>q){var ot=I;I=q,q=ot;}I=Math.round(I*1e4)*1e-4,q=Math.round(q*1e4)*1e-4,this.sValue=I,this.eValue=q;}else I=this.sValue,q=this.eValue;var st,_t,Dt=this.shapes.length,xt,jt,Rt,Jt,At,_=0;if(q===I)for(_t=0;_t=0;_t-=1)if(T=this.shapes[_t],T.shape._mdf){for(z=T.localShapeCollection,z.releaseShapes(),this.m===2&&Dt>1?(x=this.calculateShapeEdges(I,q,T.totalShapeLength,h,_),h+=T.totalShapeLength):x=[[H,N]],jt=x.length,xt=0;xt=1?C.push({s:T.totalShapeLength*(H-1),e:T.totalShapeLength*(N-1)}):(C.push({s:T.totalShapeLength*H,e:T.totalShapeLength}),C.push({s:0,e:T.totalShapeLength*(N-1)}));var S=this.addShapes(T,C[0]);if(C[0].s!==C[0].e){if(C.length>1){var M=T.shape.paths.shapes[T.shape.paths._length-1];if(M.c){var R=S.pop();this.addPaths(S,z),S=this.addShapes(T,C[1],R);}else this.addPaths(S,z),S=this.addShapes(T,C[1]);}this.addPaths(S,z);}}T.shape.paths=z;}}},ei.prototype.addPaths=function(A,I){var q,Y=A.length;for(q=0;qI.e){q.c=!1;break}else I.s<=jt&&I.e>=jt+Rt.addedLength?(this.addSegment(ot[st].v[Dt-1],ot[st].o[Dt-1],ot[st].i[Dt],ot[st].v[Dt],q,Jt,z),z=!1):(_=Ei.getNewSegment(ot[st].v[Dt-1],ot[st].v[Dt],ot[st].o[Dt-1],ot[st].i[Dt],(I.s-jt)/Rt.addedLength,(I.e-jt)/Rt.addedLength,At[Dt-1]),this.addSegmentFromArray(_,q,Jt,z),z=!1,q.c=!1),jt+=Rt.addedLength,Jt+=1;if(ot[st].c&&At.length){if(Rt=At[Dt-1],jt<=I.e){var H=At[Dt-1].addedLength;I.s<=jt&&I.e>=jt+H?(this.addSegment(ot[st].v[Dt-1],ot[st].o[Dt-1],ot[st].i[0],ot[st].v[0],q,Jt,z),z=!1):(_=Ei.getNewSegment(ot[st].v[Dt-1],ot[st].v[0],ot[st].o[Dt-1],ot[st].i[0],(I.s-jt)/H,(I.e-jt)/H,At[Dt-1]),this.addSegmentFromArray(_,q,Jt,z),z=!1,q.c=!1);}else q.c=!1;jt+=Rt.addedLength,Jt+=1;}if(q._length&&(q.setXYAt(q.v[T][0],q.v[T][1],"i",T),q.setXYAt(q.v[q._length-1][0],q.v[q._length-1][1],"o",q._length-1)),jt>I.e)break;st<_t-1&&(q=Ne.newElement(),z=!0,C.push(q),Jt=0);}return C};function Ci(){}f([li],Ci),Ci.prototype.initModifierProperties=function(A,I){this.getValue=this.processKeys,this.amount=te.getProp(A,I.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length;},Ci.prototype.processPath=function(A,I){var q=I/100,Y=[0,0],ot=A._length,st=0;for(st=0;st=this.p.keyframes[this.p.keyframes.length-1].t?(Rt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/jt,0),Jt=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/jt,0)):(Rt=this.p.pv,Jt=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/jt,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Rt=[],Jt=[];var At=this.px,_=this.py;At._caching.lastFrame+At.offsetTime<=At.keyframes[0].t?(Rt[0]=At.getValueAtTime((At.keyframes[0].t+.01)/jt,0),Rt[1]=_.getValueAtTime((_.keyframes[0].t+.01)/jt,0),Jt[0]=At.getValueAtTime(At.keyframes[0].t/jt,0),Jt[1]=_.getValueAtTime(_.keyframes[0].t/jt,0)):At._caching.lastFrame+At.offsetTime>=At.keyframes[At.keyframes.length-1].t?(Rt[0]=At.getValueAtTime(At.keyframes[At.keyframes.length-1].t/jt,0),Rt[1]=_.getValueAtTime(_.keyframes[_.keyframes.length-1].t/jt,0),Jt[0]=At.getValueAtTime((At.keyframes[At.keyframes.length-1].t-.01)/jt,0),Jt[1]=_.getValueAtTime((_.keyframes[_.keyframes.length-1].t-.01)/jt,0)):(Rt=[At.pv,_.pv],Jt[0]=At.getValueAtTime((At._caching.lastFrame+At.offsetTime-.01)/jt,At.offsetTime),Jt[1]=_.getValueAtTime((_._caching.lastFrame+_.offsetTime-.01)/jt,_.offsetTime));}else Jt=A,Rt=Jt;this.v.rotate(-Math.atan2(Rt[1]-Jt[1],Rt[0]-Jt[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 Y(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;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 ot(){}function st(xt){this._addDynamicProperty(xt),this.elem.addDynamicProperty(xt),this._isDirty=!0;}function _t(xt,jt,Rt){if(this.elem=xt,this.frameId=-1,this.propType="transform",this.data=jt,this.v=new qe,this.pre=new qe,this.appliedTransformations=0,this.initDynamicPropertyContainer(Rt||xt),jt.p&&jt.p.s?(this.px=te.getProp(xt,jt.p.x,0,0,this),this.py=te.getProp(xt,jt.p.y,0,0,this),jt.p.z&&(this.pz=te.getProp(xt,jt.p.z,0,0,this))):this.p=te.getProp(xt,jt.p||{k:[0,0,0]},1,0,this),jt.rx){if(this.rx=te.getProp(xt,jt.rx,0,it,this),this.ry=te.getProp(xt,jt.ry,0,it,this),this.rz=te.getProp(xt,jt.rz,0,it,this),jt.or.k[0].ti){var Jt,At=jt.or.k.length;for(Jt=0;Jt0;)q-=1,this._elements.unshift(I[q]);this.dynamicProperties.length?this.k=!0:this.getValue(!0);},bi.prototype.resetElements=function(A){var I,q=A.length;for(I=0;I0?Math.floor(At):Math.ceil(At),T=this.pMatrix.props,z=this.rMatrix.props,H=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var N=0;if(At>0){for(;NC;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),N-=1;_&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-_,!0),N-=_);}Y=this.data.m===1?0:this._currentCopies-1,ot=this.data.m===1?1:-1,st=this._currentCopies;for(var h,x;st;){if(I=this.elemsData[Y].it,q=I[I.length-1].transform.mProps.v.props,x=q.length,I[I.length-1].transform.mProps._mdf=!0,I[I.length-1].transform.op._mdf=!0,I[I.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(Y/(this._currentCopies-1)),N!==0){for((Y!==0&&ot===1||Y!==this._currentCopies-1&&ot===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7],z[8],z[9],z[10],z[11],z[12],z[13],z[14],z[15]),this.matrix.transform(H[0],H[1],H[2],H[3],H[4],H[5],H[6],H[7],H[8],H[9],H[10],H[11],H[12],H[13],H[14],H[15]),this.matrix.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]),h=0;h0&&Y<1?[I]:[]:[I-Y,I+Y].filter(function(ot){return ot>0&&ot<1})},je.prototype.split=function(A){if(A<=0)return [Ks(this.points[0]),this];if(A>=1)return [this,Ks(this.points[this.points.length-1])];var I=zi(this.points[0],this.points[1],A),q=zi(this.points[1],this.points[2],A),Y=zi(this.points[2],this.points[3],A),ot=zi(I,q,A),st=zi(q,Y,A),_t=zi(ot,st,A);return [new je(this.points[0],I,ot,_t,!0),new je(_t,st,Y,this.points[3],!0)]};function Rs(A,I){var q=A.points[0][I],Y=A.points[A.points.length-1][I];if(q>Y){var ot=Y;Y=q,q=ot;}for(var st=fa(3*A.a[I],2*A.b[I],A.c[I]),_t=0;_t0&&st[_t]<1){var Dt=A.point(st[_t])[I];DtY&&(Y=Dt);}return {min:q,max:Y}}je.prototype.bounds=function(){return {x:Rs(this,0),y:Rs(this,1)}},je.prototype.boundingBox=function(){var A=this.bounds();return {left:A.x.min,right:A.x.max,top:A.y.min,bottom:A.y.max,width:A.x.max-A.x.min,height:A.y.max-A.y.min,cx:(A.x.max+A.x.min)/2,cy:(A.y.max+A.y.min)/2}};function ni(A,I,q){var Y=A.boundingBox();return {cx:Y.cx,cy:Y.cy,width:Y.width,height:Y.height,bez:A,t:(I+q)/2,t1:I,t2:q}}function Qr(A){var I=A.bez.split(.5);return [ni(I[0],A.t1,A.t),ni(I[1],A.t,A.t2)]}function ps(A,I){return Math.abs(A.cx-I.cx)*2=st||A.width<=Y&&A.height<=Y&&I.width<=Y&&I.height<=Y){ot.push([A.t,I.t]);return}var _t=Qr(A),Dt=Qr(I);Ar(_t[0],Dt[0],q+1,Y,ot,st),Ar(_t[0],Dt[1],q+1,Y,ot,st),Ar(_t[1],Dt[0],q+1,Y,ot,st),Ar(_t[1],Dt[1],q+1,Y,ot,st);}}je.prototype.intersections=function(A,I,q){I===void 0&&(I=2),q===void 0&&(q=7);var Y=[];return Ar(ni(this,0,1),ni(A,0,1),0,I,Y,q),Y},je.shapeSegment=function(A,I){var q=(I+1)%A.length();return new je(A.v[I],A.o[I],A.i[q],A.v[q],!0)},je.shapeSegmentInverted=function(A,I){var q=(I+1)%A.length();return new je(A.v[q],A.i[q],A.o[I],A.v[I],!0)};function xs(A,I){return [A[1]*I[2]-A[2]*I[1],A[2]*I[0]-A[0]*I[2],A[0]*I[1]-A[1]*I[0]]}function nr(A,I,q,Y){var ot=[A[0],A[1],1],st=[I[0],I[1],1],_t=[q[0],q[1],1],Dt=[Y[0],Y[1],1],xt=xs(xs(ot,st),xs(_t,Dt));return Rr(xt[2])?null:[xt[0]/xt[2],xt[1]/xt[2]]}function tr(A,I,q){return [A[0]+Math.cos(I)*q,A[1]-Math.sin(I)*q]}function $r(A,I){return Math.hypot(A[0]-I[0],A[1]-I[1])}function Hi(A,I){return ji(A[0],I[0])&&ji(A[1],I[1])}function or(){}f([li],or),or.prototype.initModifierProperties=function(A,I){this.getValue=this.processKeys,this.amplitude=te.getProp(A,I.s,0,null,this),this.frequency=te.getProp(A,I.r,0,null,this),this.pointsType=te.getProp(A,I.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0;};function Wr(A,I,q,Y,ot,st,_t){var Dt=q-Math.PI/2,xt=q+Math.PI/2,jt=I[0]+Math.cos(q)*Y*ot,Rt=I[1]-Math.sin(q)*Y*ot;A.setTripleAt(jt,Rt,jt+Math.cos(Dt)*st,Rt-Math.sin(Dt)*st,jt+Math.cos(xt)*_t,Rt-Math.sin(xt)*_t,A.length());}function Ps(A,I){var q=[I[0]-A[0],I[1]-A[1]],Y=-Math.PI*.5,ot=[Math.cos(Y)*q[0]-Math.sin(Y)*q[1],Math.sin(Y)*q[0]+Math.cos(Y)*q[1]];return ot}function ca(A,I){var q=I===0?A.length()-1:I-1,Y=(I+1)%A.length(),ot=A.v[q],st=A.v[Y],_t=Ps(ot,st);return Math.atan2(0,1)-Math.atan2(_t[1],_t[0])}function Ss(A,I,q,Y,ot,st,_t){var Dt=ca(I,q),xt=I.v[q%I._length],jt=I.v[q===0?I._length-1:q-1],Rt=I.v[(q+1)%I._length],Jt=st===2?Math.sqrt(Math.pow(xt[0]-jt[0],2)+Math.pow(xt[1]-jt[1],2)):0,At=st===2?Math.sqrt(Math.pow(xt[0]-Rt[0],2)+Math.pow(xt[1]-Rt[1],2)):0;Wr(A,I.v[q%I._length],Dt,_t,Y,At/((ot+1)*2),Jt/((ot+1)*2));}function Va(A,I,q,Y,ot,st){for(var _t=0;_t1&&I.length>1&&(ot=Cr(A[0],I[I.length-1]),ot)?[[A[0].split(ot[0])[0]],[I[I.length-1].split(ot[1])[1]]]:[q,Y]}function Os(A){for(var I,q=1;q1&&(I=cs(A[A.length-1],A[0]),A[A.length-1]=I[0],A[0]=I[1]),A}function Bs(A,I){var q=A.inflectionPoints(),Y,ot,st,_t;if(q.length===0)return [vr(A,I)];if(q.length===1||ji(q[1],1))return st=A.split(q[0]),Y=st[0],ot=st[1],[vr(Y,I),vr(ot,I)];st=A.split(q[0]),Y=st[0];var Dt=(q[1]-q[0])/(1-q[0]);return st=st[1].split(Dt),_t=st[0],ot=st[1],[vr(Y,I),vr(_t,I),vr(ot,I)]}function wr(){}f([li],wr),wr.prototype.initModifierProperties=function(A,I){this.getValue=this.processKeys,this.amount=te.getProp(A,I.a,0,null,this),this.miterLimit=te.getProp(A,I.ml,0,null,this),this.lineJoin=I.lj,this._isAnimated=this.amount.effectsSequence.length!==0;},wr.prototype.processPath=function(A,I,q,Y){var ot=Ne.newElement();ot.c=A.c;var st=A.length();A.c||(st-=1);var _t,Dt,xt,jt=[];for(_t=0;_t=0;_t-=1)xt=je.shapeSegmentInverted(A,_t),jt.push(Bs(xt,I));jt=Os(jt);var Rt=null,Jt=null;for(_t=0;_t0&&(yt=!1),yt){var zt=g("style");zt.setAttribute("f-forigin",j[nt].fOrigin),zt.setAttribute("f-origin",j[nt].origin),zt.setAttribute("f-family",j[nt].fFamily),zt.type="text/css",zt.innerText="@font-face {font-family: "+j[nt].fFamily+"; font-style: normal; src: url('"+j[nt].fPath+"');}",X.appendChild(zt);}}else if(j[nt].fOrigin==="g"||j[nt].origin===1){for(bt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),kt=0;kt=55296&&j<=56319){var nt=W.charCodeAt(1);nt>=56320&&nt<=57343&&(X=(j-55296)*1024+nt-56320+65536);}return X}function M(W,X){var j=W.toString(16)+X.toString(16);return Jt.indexOf(j)!==-1}function R(W){return W===xt}function V(W){return W===Dt}function $(W){var X=S(W);return X>=jt&&X<=Rt}function et(W){return $(W.substr(0,2))&&$(W.substr(2,2))}function Z(W){return q.indexOf(W)!==-1}function at(W,X){var j=S(W.substr(X,2));if(j!==Y)return !1;var nt=0;for(X+=2;nt<5;){if(j=S(W.substr(X,2)),j_t)return !1;nt+=1,X+=2;}return S(W.substr(X,2))===ot}function pt(){this.isLoaded=!0;}var rt=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);};rt.isModifier=M,rt.isZeroWidthJoiner=R,rt.isFlagEmoji=et,rt.isRegionalCode=$,rt.isCombinedCharacter=Z,rt.isRegionalFlag=at,rt.isVariationSelector=V,rt.BLACK_FLAG_CODE_POINT=Y;var J={addChars:H,addFonts:z,getCharData:N,getFontByName:x,measureText:h,checkLoadedFonts:C,setIsLoaded:pt};return rt.prototype=J,rt}();function Tr(A){this.animationData=A;}Tr.prototype.getProp=function(A){return this.animationData.slots&&this.animationData.slots[A.sid]?Object.assign(A,this.animationData.slots[A.sid].p):A};function br(A){return new Tr(A)}function hr(){}hr.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[];},addRenderableComponent:function(A){this.renderableComponents.indexOf(A)===-1&&this.renderableComponents.push(A);},removeRenderableComponent:function(A){this.renderableComponents.indexOf(A)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(A),1);},prepareRenderableFrame:function(A){this.checkLayerLimits(A);},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(A){this.data.ip-this.data.st<=A&&this.data.op-this.data.st>A?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide());},renderRenderable:function(){var A,I=this.renderableComponents.length;for(A=0;A.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0));},Pe.prototype.show=function(){},Pe.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1;},Pe.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1;},Pe.prototype.resume=function(){this._canPlay=!0;},Pe.prototype.setRate=function(A){this.audio.rate(A);},Pe.prototype.volume=function(A){this._volumeMultiplier=A,this._previousVolume=A*this._volume,this.audio.volume(this._previousVolume);},Pe.prototype.getBaseElement=function(){return null},Pe.prototype.destroy=function(){},Pe.prototype.sourceRectAtTime=function(){},Pe.prototype.initExpressions=function(){};function Ce(){}Ce.prototype.checkLayers=function(A){var I,q=this.layers.length,Y;for(this.completeLayers=!0,I=q-1;I>=0;I-=1)this.elements[I]||(Y=this.layers[I],Y.ip-Y.st<=A-this.layers[I].st&&Y.op-Y.st>A-this.layers[I].st&&this.buildItem(I)),this.completeLayers=this.elements[I]?this.completeLayers:!1;this.checkPendingElements();},Ce.prototype.createItem=function(A){switch(A.ty){case 2:return this.createImage(A);case 0:return this.createComp(A);case 1:return this.createSolid(A);case 3:return this.createNull(A);case 4:return this.createShape(A);case 5:return this.createText(A);case 6:return this.createAudio(A);case 13:return this.createCamera(A);case 15:return this.createFootage(A);default:return this.createNull(A)}},Ce.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Ce.prototype.createAudio=function(A){return new Pe(A,this.globalData,this)},Ce.prototype.createFootage=function(A){return new Ve(A,this.globalData,this)},Ce.prototype.buildAllItems=function(){var A,I=this.layers.length;for(A=0;A0&&(this.maskElement.setAttribute("id",At),this.element.maskedElement.setAttribute(N,"url("+d()+"#"+At+")"),Y.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this);}Vi.prototype.getMaskProperty=function(A){return this.viewData[A].prop},Vi.prototype.renderFrame=function(A){var I=this.element.finalTransform.mat,q,Y=this.masksProperties.length;for(q=0;q1&&(Y+=" C"+I.o[ot-1][0]+","+I.o[ot-1][1]+" "+I.i[0][0]+","+I.i[0][1]+" "+I.v[0][0]+","+I.v[0][1]),q.lastPath!==Y){var _t="";q.elem&&(I.c&&(_t=A.inv?this.solidPath+Y:Y),q.elem.setAttribute("d",_t)),q.lastPath=Y;}},Vi.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null;};var wi=function(){var A={};A.createFilter=I,A.createAlphaToLuminanceFilter=q;function I(Y,ot){var st=Xt("filter");return st.setAttribute("id",Y),ot!==!0&&(st.setAttribute("filterUnits","objectBoundingBox"),st.setAttribute("x","0%"),st.setAttribute("y","0%"),st.setAttribute("width","100%"),st.setAttribute("height","100%")),st}function q(){var Y=Xt("feColorMatrix");return Y.setAttribute("type","matrix"),Y.setAttribute("color-interpolation-filters","sRGB"),Y.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),Y}return A}(),Zi=function(){var A={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return (/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))&&(A.maskType=!1),/firefox/i.test(navigator.userAgent)&&(A.svgLumaHidden=!1),A}(),Mr={},da="filter_result_";function ks(A){var I,q="SourceGraphic",Y=A.data.ef?A.data.ef.length:0,ot=k(),st=wi.createFilter(ot,!0),_t=0;this.filters=[];var Dt;for(I=0;I=0&&(q=this.shapeModifiers[A].processShapes(this._isFirstFrame),!q);A-=1);}},searchProcessedElement:function(A){for(var I=this.processedElements,q=0,Y=I.length;q.01)return !1;q+=1;}return !0},Or.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return !1;if(this.data.k.k[0].s)for(var A=0,I=this.data.k.k.length;A0;)H=At.transformers[$].mProps._mdf||H,V-=1,$-=1;if(H)for(V=S-At.styles[h].lvl,$=At.transformers.length-1;V>0;)R.multiply(At.transformers[$].mProps.v),V-=1,$-=1;}else R=A;if(M=At.sh.paths,T=M._length,H){for(z="",C=0;C=1?pt=.99:pt<=-1&&(pt=-.99);var rt=Z*pt,J=Math.cos(at+At.a.v)*rt+z[0],W=Math.sin(at+At.a.v)*rt+z[1];C.setAttribute("fx",J),C.setAttribute("fy",W),T&&!At.g._collapsable&&(At.of.setAttribute("fx",J),At.of.setAttribute("fy",W));}}}function Rt(Jt,At,_){var C=At.style,T=At.d;T&&(T._mdf||_)&&T.dashStr&&(C.pElem.setAttribute("stroke-dasharray",T.dashStr),C.pElem.setAttribute("stroke-dashoffset",T.dashoffset[0])),At.c&&(At.c._mdf||_)&&C.pElem.setAttribute("stroke","rgb("+F(At.c.v[0])+","+F(At.c.v[1])+","+F(At.c.v[2])+")"),(At.o._mdf||_)&&C.pElem.setAttribute("stroke-opacity",At.o.v),(At.w._mdf||_)&&(C.pElem.setAttribute("stroke-width",At.w.v),C.msElem&&C.msElem.setAttribute("stroke-width",At.w.v));}return q}();function $e(A,I,q){this.shapes=[],this.shapesData=A.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(A,I,q),this.prevViewData=[];}f([Fe,Ge,Jr,es,Ui,Re,er],$e),$e.prototype.initSecondaryElement=function(){},$e.prototype.identityMatrix=new qe,$e.prototype.buildExpressionInterface=function(){},$e.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes();},$e.prototype.filterUniqueShapes=function(){var A,I=this.shapes.length,q,Y,ot=this.stylesList.length,st,_t=[],Dt=!1;for(Y=0;Y1&&Dt&&this.setShapesAsAnimated(_t);}},$e.prototype.setShapesAsAnimated=function(A){var I,q=A.length;for(I=0;I=0;xt-=1){if(z=this.searchProcessedElement(A[xt]),z?I[xt]=q[z-1]:A[xt]._render=_t,A[xt].ty==="fl"||A[xt].ty==="st"||A[xt].ty==="gf"||A[xt].ty==="gs"||A[xt].ty==="no")z?I[xt].style.closed=!1:I[xt]=this.createStyleElement(A[xt],ot),A[xt]._render&&I[xt].style.pElem.parentNode!==Y&&Y.appendChild(I[xt].style.pElem),At.push(I[xt].style);else if(A[xt].ty==="gr"){if(!z)I[xt]=this.createGroupElement(A[xt]);else for(Jt=I[xt].it.length,Rt=0;Rt1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Oe.prototype.addEffect=function(A){this.effectsSequence.push(A),this.elem.addDynamicProperty(this);},Oe.prototype.getValue=function(A){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!A)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var I=this.currentData,q=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var Y,ot=this.effectsSequence.length,st=A||this.data.d.k[this.keysIndex].s;for(Y=0;YI);)q+=1;return this.keysIndex!==q&&(this.keysIndex=q),this.data.d.k[this.keysIndex].s},Oe.prototype.buildFinalText=function(A){for(var I=[],q=0,Y=A.length,ot,st,_t=!1,Dt=!1,xt="";q=55296&&ot<=56319?Li.isRegionalFlag(A,q)?xt=A.substr(q,14):(st=A.charCodeAt(q+1),st>=56320&&st<=57343&&(Li.isModifier(ot,st)?(xt=A.substr(q,2),_t=!0):Li.isFlagEmoji(A.substr(q,4))?xt=A.substr(q,4):xt=A.substr(q,2))):ot>56319?(st=A.charCodeAt(q+1),Li.isVariationSelector(ot)&&(_t=!0)):Li.isZeroWidthJoiner(ot)&&(_t=!0,Dt=!0),_t?(I[I.length-1]+=xt,_t=!1):I.push(xt),q+=xt.length;return I},Oe.prototype.completeTextData=function(A){A.__complete=!0;var I=this.elem.globalData.fontManager,q=this.data,Y=[],ot,st,_t,Dt=0,xt,jt=q.m.g,Rt=0,Jt=0,At=0,_=[],C=0,T=0,z,H,N=I.getFontByName(A.f),h,x=0,S=us(N);A.fWeight=S.weight,A.fStyle=S.style,A.finalSize=A.s,A.finalText=this.buildFinalText(A.t),st=A.finalText.length,A.finalLineHeight=A.lh;var M=A.tr/1e3*A.finalSize,R;if(A.sz)for(var V=!0,$=A.sz[0],et=A.sz[1],Z,at;V;){at=this.buildFinalText(A.t),Z=0,C=0,st=at.length,M=A.tr/1e3*A.finalSize;var pt=-1;for(ot=0;ot$&&at[ot]!==" "?(pt===-1?st+=1:ot=pt,Z+=A.finalLineHeight||A.finalSize*1.2,at.splice(ot,pt===ot?1:0,"\r"),pt=-1,C=0):(C+=x,C+=M);Z+=N.ascent*A.finalSize/100,this.canResize&&A.finalSize>this.minimumFontSize&&etT?C:T,C=-2*M,xt="",_t=!0,At+=1):xt=J,I.chars?(h=I.getCharData(J,N.fStyle,I.getFontByName(A.f).fFamily),x=_t?0:h.w*A.finalSize/100):x=I.measureText(xt,A.f,A.finalSize),J===" "?rt+=x+M:(C+=x+M+rt,rt=0),Y.push({l:x,an:x,add:Rt,n:_t,anIndexes:[],val:xt,line:At,animatorJustifyOffset:0}),jt==2){if(Rt+=x,xt===""||xt===" "||ot===st-1){for((xt===""||xt===" ")&&(Rt-=x);Jt<=ot;)Y[Jt].an=Rt,Y[Jt].ind=Dt,Y[Jt].extra=x,Jt+=1;Dt+=1,Rt=0;}}else if(jt==3){if(Rt+=x,xt===""||ot===st-1){for(xt===""&&(Rt-=x);Jt<=ot;)Y[Jt].an=Rt,Y[Jt].ind=Dt,Y[Jt].extra=x,Jt+=1;Rt=0,Dt+=1;}}else Y[Dt].ind=Dt,Y[Dt].extra=0,Dt+=1;if(A.l=Y,T=C>T?C:T,_.push(C),A.sz)A.boxWidth=A.sz[0],A.justifyOffset=0;else switch(A.boxWidth=T,A.j){case 1:A.justifyOffset=-A.boxWidth;break;case 2:A.justifyOffset=-A.boxWidth/2;break;default:A.justifyOffset=0;}A.lineWidths=_;var W=q.a,X,j;H=W.length;var nt,ht,Q=[];for(z=0;z0?_t=this.ne.v/100:Dt=-this.ne.v/100,this.xe.v>0?xt=1-this.xe.v/100:jt=1+this.xe.v/100;var Rt=oe.getBezierEasing(_t,Dt,xt,jt).get,Jt=0,At=this.finalS,_=this.finalE,C=this.data.sh;if(C===2)_===At?Jt=st>=_?1:0:Jt=A(0,I(.5/(_-At)+(st-At)/(_-At),1)),Jt=Rt(Jt);else if(C===3)_===At?Jt=st>=_?0:1:Jt=1-A(0,I(.5/(_-At)+(st-At)/(_-At),1)),Jt=Rt(Jt);else if(C===4)_===At?Jt=0:(Jt=A(0,I(.5/(_-At)+(st-At)/(_-At),1)),Jt<.5?Jt*=2:Jt=1-2*(Jt-.5)),Jt=Rt(Jt);else if(C===5){if(_===At)Jt=0;else {var T=_-At;st=I(A(0,st+.5-At),_-At);var z=-T/2+st,H=T/2;Jt=Math.sqrt(1-z*z/(H*H));}Jt=Rt(Jt);}else C===6?(_===At?Jt=0:(st=I(A(0,st+.5-At),_-At),Jt=(1+Math.cos(Math.PI+Math.PI*2*st/(_-At)))/2),Jt=Rt(Jt)):(st>=q(At)&&(st-At<0?Jt=A(0,I(I(_,1)-(At-st),1)):Jt=A(0,I(_-st,1))),Jt=Rt(Jt));if(this.sm.v!==100){var N=this.sm.v*.01;N===0&&(N=1e-8);var h=.5-N*.5;Jt1&&(Jt=1));}return Jt*this.a.v},getValue:function(st){this.iterateDynamicProperties(),this._mdf=st||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,st&&this.data.r===2&&(this.e.v=this._currentTextLength);var _t=this.data.r===2?1:100/this.data.totalChars,Dt=this.o.v/_t,xt=this.s.v/_t+Dt,jt=this.e.v/_t+Dt;if(xt>jt){var Rt=xt;xt=jt,jt=Rt;}this.finalS=xt,this.finalE=jt;}},f([Ye],Y);function ot(st,_t,Dt){return new Y(st,_t)}return {getTextSelectorProp:ot}}();function ir(A,I,q){var Y={propType:!1},ot=te.getProp,st=I.a;this.a={r:st.r?ot(A,st.r,0,it,q):Y,rx:st.rx?ot(A,st.rx,0,it,q):Y,ry:st.ry?ot(A,st.ry,0,it,q):Y,sk:st.sk?ot(A,st.sk,0,it,q):Y,sa:st.sa?ot(A,st.sa,0,it,q):Y,s:st.s?ot(A,st.s,1,.01,q):Y,a:st.a?ot(A,st.a,1,0,q):Y,o:st.o?ot(A,st.o,0,.01,q):Y,p:st.p?ot(A,st.p,1,0,q):Y,sw:st.sw?ot(A,st.sw,0,0,q):Y,sc:st.sc?ot(A,st.sc,1,0,q):Y,fc:st.fc?ot(A,st.fc,1,0,q):Y,fh:st.fh?ot(A,st.fh,0,0,q):Y,fs:st.fs?ot(A,st.fs,0,.01,q):Y,fb:st.fb?ot(A,st.fb,0,.01,q):Y,t:st.t?ot(A,st.t,0,0,q):Y},this.s=Na.getTextSelectorProp(A,I.s,q),this.s.t=I.s.t;}function _r(A,I,q){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=A,this._renderType=I,this._elem=q,this._animatorsData=m(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(q);}_r.prototype.searchProperties=function(){var A,I=this._textData.a.length,q,Y=te.getProp;for(A=0;A=C+De||!S?($=(C+De-z)/T.partialLength,kt=x.point[0]+(T.point[0]-x.point[0])*$,zt=x.point[1]+(T.point[1]-x.point[1])*$,st.translate(-q[0]*At[Rt].an*.005,-(q[1]*rt)*.01),H=!1):S&&(z+=T.partialLength,N+=1,N>=S.length&&(N=0,h+=1,M[h]?S=M[h].points:Z.v.c?(N=0,h=0,S=M[h].points):(z-=T.partialLength,S=null)),S&&(x=T,T=S[N],R=T.partialLength));bt=At[Rt].an/2-At[Rt].add,st.translate(-bt,0,0);}else bt=At[Rt].an/2-At[Rt].add,st.translate(-bt,0,0),st.translate(-q[0]*At[Rt].an*.005,-q[1]*rt*.01,0);for(j=0;jA?this.textSpans[A].span:Xt(Dt?"g":"text"),h<=A){if(xt.setAttribute("stroke-linecap","butt"),xt.setAttribute("stroke-linejoin","round"),xt.setAttribute("stroke-miterlimit","4"),this.textSpans[A].span=xt,Dt){var S=Xt("g");xt.appendChild(S),this.textSpans[A].childSpan=S;}this.textSpans[A].span=xt,this.layerElement.appendChild(xt);}xt.style.display="inherit";}if(jt.reset(),Jt&&(_t[A].n&&(At=-T,_+=q.yOffset,_+=C?1:0,C=!1),this.applyTextPropertiesToMatrix(q,jt,_t[A].line,At,_),At+=_t[A].l||0,At+=T),Dt){x=this.globalData.fontManager.getCharData(q.finalText[A],Y.fStyle,this.globalData.fontManager.getFontByName(q.f).fFamily);var M;if(x.t===1)M=new mi(x.data,this.globalData,this);else {var R=Cs;x.data&&x.data.shapes&&(R=this.buildShapeData(x.data,q.finalSize)),M=new $e(R,this.globalData,this);}if(this.textSpans[A].glyph){var V=this.textSpans[A].glyph;this.textSpans[A].childSpan.removeChild(V.layerElement),V.destroy();}this.textSpans[A].glyph=M,M._debug=!0,M.prepareFrame(0),M.renderFrame(),this.textSpans[A].childSpan.appendChild(M.layerElement),x.t===1&&this.textSpans[A].childSpan.setAttribute("transform","scale("+q.finalSize/100+","+q.finalSize/100+")");}else Jt&&xt.setAttribute("transform","translate("+jt.props[12]+","+jt.props[13]+")"),xt.textContent=_t[A].val,xt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}Jt&&xt&&xt.setAttribute("d",Rt);}for(;A=0;I-=1)(this.completeLayers||this.elements[I])&&this.elements[I].prepareFrame(A-this.layers[I].st);if(this.globalData._mdf)for(I=0;I=0;q-=1)(this.completeLayers||this.elements[q])&&(this.elements[q].prepareFrame(this.renderedFrame-this.layers[q].st),this.elements[q]._mdf&&(this._mdf=!0));}},_i.prototype.renderInnerContent=function(){var A,I=this.layers.length;for(A=0;Aig});var eg,ig,Tc=cr(()=>{ns();eg=ue((exports,module)=>{typeof navigator<"u"&&function(t,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.lottie=e());}(exports,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t;},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t;},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,r=t.length,s;for(i=0;i1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t=[],e,i;for(e=0;e<256;e+=1)i=e.toString(16),t[e]=i.length===1?"0"+i:i;return function(r,s,a){return r<0&&(r=0),s<0&&(s=0),a<0&&(a=0),"#"+t[r]+t[s]+t[a]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t;},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t;},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t;},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t;},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t;};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(e){return typeof e}:_typeof$5=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(t)}var dataManager=function(){var t=1,e=[],i,r,s={onmessage:function(){},postMessage:function(l){i({data:l});}},a={postMessage:function(l){s.onmessage({data:l});}};function n(l){if(window.Worker&&window.Blob&&getWebWorker()){var b=new Blob(["var _workerSelf = self; self.onmessage = ",l.toString()],{type:"text/javascript"}),v=URL.createObjectURL(b);return new Worker(v)}return i=l,s}function p(){r||(r=n(function(l){function b(){function m(tt,vt){var D,O,k=tt.length,L,K,U,Ht;for(O=0;O=0;vt-=1)if(tt[vt].ty==="sh")if(tt[vt].ks.k.i)P(tt[vt].ks.k);else for(k=tt[vt].ks.k.length,O=0;OD[0]?!0:D[0]>tt[0]?!1:tt[1]>D[1]?!0:D[1]>tt[1]?!1:tt[2]>D[2]?!0:D[2]>tt[2]?!1:null}var F=function(){var tt=[4,4,14];function vt(O){var k=O.t.d;O.t.d={k:[{s:k,t:0}]};}function D(O){var k,L=O.length;for(k=0;k=0;k-=1)if(O[k].ty==="sh")if(O[k].ks.k.i)O[k].ks.k.c=O[k].closed;else for(U=O[k].ks.k.length,K=0;K500)&&(this._imageLoaded(),clearInterval(y)),u+=1;}.bind(this),50);}function a(c){var u=r(c,this.assetsPath,this.path),y=createNS("image");isSafari?this.testImageLoaded(y):y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",function(){P.img=t,this._imageLoaded();}.bind(this),!1),y.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var P={img:y,assetData:c};return P}function n(c){var u=r(c,this.assetsPath,this.path),y=createTag("img");y.crossOrigin="anonymous",y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",function(){P.img=t,this._imageLoaded();}.bind(this),!1),y.src=u;var P={img:y,assetData:c};return P}function p(c){var u={assetData:c},y=r(c,this.assetsPath,this.path);return dataManager.loadData(y,function(P){u.img=P,this._footageLoaded();}.bind(this),function(){u.img={},this._footageLoaded();}.bind(this)),u}function o(c,u){this.imagesLoadedCb=u;var y,P=c.length;for(y=0;ythis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e=this.animationData.layers,i,r=e.length,s=t.layers,a,n=s.length;for(a=0;athis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame");},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame);}catch(t){this.triggerRenderFrameError(t);}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")));},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause());},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause());},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0));},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):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):e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,e=0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"));}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]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");},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0);},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),_typeof$4(t[0])==="object"){var i,r=t.length;for(i=0;i=0;O-=1)e[O].animation.destroy(D);}function G(D,O,k){var L=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),K,U=L.length;for(K=0;K0?P=G:y=G;while(Math.abs(B)>a&&++it=s?E(u,ft,y,P):ct===0?ft:m(u,F,F+o,y,P)}},t}(),pooling=function(){function t(e){return e.concat(createSizedArray(e.length))}return {double:t}}(),poolFactory=function(){return function(t,e,i){var r=0,s=t,a=createSizedArray(s),n={newElement:p,release:o};function p(){var d;return r?(r-=1,d=a[r]):d=e(),d}function o(d){r===s&&(a=pooling.double(a),s*=2),i&&i(d),a[r]=d,r+=1;}return n}}(),bezierLengthPool=function(){function t(){return {addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,t)}(),segmentsLengthPool=function(){function t(){return {lengths:[],totalLength:0}}function e(i){var r,s=i.lengths.length;for(r=0;r-.001&&u<.001}function i(l,b,v,m,E,c,u,y,P){if(v===0&&c===0&&P===0)return e(l,b,m,E,u,y);var w=t.sqrt(t.pow(m-l,2)+t.pow(E-b,2)+t.pow(c-v,2)),F=t.sqrt(t.pow(u-l,2)+t.pow(y-b,2)+t.pow(P-v,2)),B=t.sqrt(t.pow(u-m,2)+t.pow(y-E,2)+t.pow(P-c,2)),G;return w>F?w>B?G=w-F-B:G=B-F-w:B>F?G=B-F-w:G=F-w-B,G>-1e-4&&G<1e-4}var r=function(){return function(l,b,v,m){var E=getDefaultCurveSegments(),c,u,y,P,w,F=0,B,G=[],it=[],ft=bezierLengthPool.newElement();for(y=v.length,c=0;cu?-1:1,w=!0;w;)if(m[c]<=u&&m[c+1]>u?(y=(u-m[c])/(m[c+1]-m[c]),w=!1):c+=P,c<0||c>=E-1){if(c===E-1)return v[c];w=!1;}return v[c]+(v[c+1]-v[c])*y}function d(l,b,v,m,E,c){var u=o(E,c),y=1-u,P=t.round((y*y*y*l[0]+(u*y*y+y*u*y+y*y*u)*v[0]+(u*u*y+y*u*u+u*y*u)*m[0]+u*u*u*b[0])*1e3)/1e3,w=t.round((y*y*y*l[1]+(u*y*y+y*u*y+y*y*u)*v[1]+(u*u*y+y*u*u+u*y*u)*m[1]+u*u*u*b[1])*1e3)/1e3;return [P,w]}var g=createTypedArray("float32",8);function f(l,b,v,m,E,c,u){E<0?E=0:E>1&&(E=1);var y=o(E,u);c=c>1?1:c;var P=o(c,u),w,F=l.length,B=1-y,G=1-P,it=B*B*B,ft=y*B*B*3,ct=y*y*B*3,dt=y*y*y,Pt=B*B*G,tt=y*B*G+B*y*G+B*B*P,vt=y*y*G+B*y*P+y*B*P,D=y*y*P,O=B*G*G,k=y*G*G+B*P*G+B*G*P,L=y*P*G+B*P*P+y*G*P,K=y*P*P,U=G*G*G,Ht=P*G*G+G*P*G+G*G*P,It=P*P*G+G*P*P+P*G*P,Gt=P*P*P;for(w=0;w=d.t-i){o.h&&(o=d),s=0;break}if(d.t-i>t){s=a;break}a=c||t=c?P.points.length-1:0;for(l=P.points[w].point.length,f=0;f=G&&F=c)r[0]=y[0],r[1]=y[1],r[2]=y[2];else if(t<=u)r[0]=o.s[0],r[1]=o.s[1],r[2]=o.s[2];else {var tt=createQuaternion(o.s),vt=createQuaternion(y),D=(t-u)/(c-u);quaternionToEuler(r,slerp(tt,vt,D));}else for(a=0;a=c?b=1:t1e-6?(l=Math.acos(b),v=Math.sin(l),m=Math.sin((1-i)*l)/v,E=Math.sin(i*l)/v):(m=1-i,E=i),r[0]=m*s+E*o,r[1]=m*a+E*d,r[2]=m*n+E*g,r[3]=m*p+E*f,r}function quaternionToEuler(t,e){var i=e[0],r=e[1],s=e[2],a=e[3],n=Math.atan2(2*r*a-2*i*s,1-2*r*r-2*s*s),p=Math.asin(2*i*r+2*s*a),o=Math.atan2(2*i*a-2*r*s,1-2*i*i-2*s*s);t[0]=n/degToRads,t[1]=p/degToRads,t[2]=o/degToRads;}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,r=t[2]*degToRads,s=Math.cos(e/2),a=Math.cos(i/2),n=Math.cos(r/2),p=Math.sin(e/2),o=Math.sin(i/2),d=Math.sin(r/2),g=s*a*n-p*o*d,f=p*o*n+s*a*d,l=p*a*n+s*o*d,b=s*o*n-p*a*d;return [f,l,b,g]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(t,this._caching);this.pv=r;}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if(this.propType==="unidimensional")e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,r=this.v.length;i1e-5&&(this.v[i]=e,this._mdf=!0),i+=1;}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[r]||a[r]&&!s)&&(a[r]=pointPool.newElement()),a[r][0]=t,a[r][1]=e;},ShapePath.prototype.setTripleAt=function(t,e,i,r,s,a,n,p){this.setXYAt(t,e,"v",n,p),this.setXYAt(i,r,"o",n,p),this.setXYAt(s,a,"i",n,p);},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,r=this.i,s=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),s=1);var a=this._length-1,n=this._length,p;for(p=s;p=tt[tt.length-1].t-this.offsetTime)w=tt[tt.length-1].s?tt[tt.length-1].s[0]:tt[tt.length-2].e[0],B=!0;else {for(var vt=P,D=tt.length-1,O=!0,k,L,K;O&&(k=tt[vt],L=tt[vt+1],!(L.t-this.offsetTime>c));)vt=L.t-this.offsetTime)dt=1;else if(cy&&c>y)||(this._caching.lastIndex=P0||k>-1e-6&&k<0?r(k*L)/L:k}function O(){var k=this.props,L=D(k[0]),K=D(k[1]),U=D(k[4]),Ht=D(k[5]),It=D(k[12]),Gt=D(k[13]);return "matrix("+L+","+K+","+U+","+Ht+","+It+","+Gt+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=n,this.rotateY=p,this.rotateZ=o,this.skew=g,this.skewFromAxis=f,this.shear=d,this.scale=l,this.setTransform=b,this.translate=v,this.transform=m,this.multiply=E,this.applyToPoint=w,this.applyToX=F,this.applyToY=B,this.applyToZ=G,this.applyToPointArray=Pt,this.applyToTriplePoints=dt,this.applyToPointStringified=tt,this.toCSS=vt,this.to2dCSS=O,this.clone=y,this.cloneFromProps=P,this.equals=u,this.inversePoints=ct,this.inversePoint=ft,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=c,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset();}}();function _typeof$3(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(e){return typeof e}:_typeof$3=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(t)}var lottie={};function setLocation(t){setLocationHref(t);}function searchAnimations(){animationManager.searchAnimations();}function setSubframeRendering(t){setSubframeEnabled(t);}function setPrefix(t){setIdPrefix(t);}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if(typeof t=="string")switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else !isNaN(t)&&t>1&&setDefaultCurveSegments(t);}function inBrowser(){return typeof navigator<"u"}function installPlugin(t,e){t==="expressions"&&setExpressionsPlugin(e);}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations());}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i"u"?"undefined":_typeof$3(exports))==="object"&&typeof module<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=lottie);}catch(t){}var ShapeModifiers=function(){var t={},e={};t.registerModifier=i,t.getModifier=r;function i(s,a){e[s]||(e[s]=a);}function r(s,a,n){return new e[s](a,n)}return t}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated();}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0);},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties());},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.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;},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[];},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,r,s){var a=[];e<=1?a.push({s:t,e}):t>=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var n=[],p,o=a.length,d;for(p=0;pr+i)){var g,f;d.s*s<=r?g=0:g=(d.s*s-r)/i,d.e*s>=r+i?f=1:f=(d.e*s-r)/i,n.push([g,f]);}return n.length||n.push([0,0]),n},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e1?e=1+r:this.s.v<0?e=0+r:e=this.s.v+r,this.e.v>1?i=1+r:this.e.v<0?i=0+r:i=this.e.v+r,e>i){var s=e;e=i,i=s;}e=Math.round(e*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=e,this.eValue=i;}else e=this.sValue,i=this.eValue;var a,n,p=this.shapes.length,o,d,g,f,l,b=0;if(i===e)for(n=0;n=0;n-=1)if(m=this.shapes[n],m.shape._mdf){for(E=m.localShapeCollection,E.releaseShapes(),this.m===2&&p>1?(P=this.calculateShapeEdges(e,i,m.totalShapeLength,y,b),y+=m.totalShapeLength):P=[[c,u]],d=P.length,o=0;o=1?v.push({s:m.totalShapeLength*(c-1),e:m.totalShapeLength*(u-1)}):(v.push({s:m.totalShapeLength*c,e:m.totalShapeLength}),v.push({s:0,e:m.totalShapeLength*(u-1)}));var w=this.addShapes(m,v[0]);if(v[0].s!==v[0].e){if(v.length>1){var F=m.shape.paths.shapes[m.shape.paths._length-1];if(F.c){var B=w.pop();this.addPaths(w,E),w=this.addShapes(m,v[1],B);}else this.addPaths(w,E),w=this.addShapes(m,v[1]);}this.addPaths(w,E);}}m.shape.paths=E;}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;ie.e){i.c=!1;break}else e.s<=d&&e.e>=d+g.addedLength?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[p],s[a].v[p],i,f,E),E=!1):(b=bez.getNewSegment(s[a].v[p-1],s[a].v[p],s[a].o[p-1],s[a].i[p],(e.s-d)/g.addedLength,(e.e-d)/g.addedLength,l[p-1]),this.addSegmentFromArray(b,i,f,E),E=!1,i.c=!1),d+=g.addedLength,f+=1;if(s[a].c&&l.length){if(g=l[p-1],d<=e.e){var c=l[p-1].addedLength;e.s<=d&&e.e>=d+c?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[0],s[a].v[0],i,f,E),E=!1):(b=bez.getNewSegment(s[a].v[p-1],s[a].v[0],s[a].o[p-1],s[a].i[0],(e.s-d)/c,(e.e-d)/c,l[p-1]),this.addSegmentFromArray(b,i,f,E),E=!1,i.c=!1);}else i.c=!1;d+=g.addedLength,f+=1;}if(i._length&&(i.setXYAt(i.v[m][0],i.v[m][1],"i",m),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),d>e.e)break;a=this.p.keyframes[this.p.keyframes.length-1].t?(g=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/d,0),f=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/d,0)):(g=this.p.pv,f=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/d,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){g=[],f=[];var l=this.px,b=this.py;l._caching.lastFrame+l.offsetTime<=l.keyframes[0].t?(g[0]=l.getValueAtTime((l.keyframes[0].t+.01)/d,0),g[1]=b.getValueAtTime((b.keyframes[0].t+.01)/d,0),f[0]=l.getValueAtTime(l.keyframes[0].t/d,0),f[1]=b.getValueAtTime(b.keyframes[0].t/d,0)):l._caching.lastFrame+l.offsetTime>=l.keyframes[l.keyframes.length-1].t?(g[0]=l.getValueAtTime(l.keyframes[l.keyframes.length-1].t/d,0),g[1]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/d,0),f[0]=l.getValueAtTime((l.keyframes[l.keyframes.length-1].t-.01)/d,0),f[1]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/d,0)):(g=[l.pv,b.pv],f[0]=l.getValueAtTime((l._caching.lastFrame+l.offsetTime-.01)/d,l.offsetTime),f[1]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/d,b.offsetTime));}else f=t,g=f;this.v.rotate(-Math.atan2(g[1]-f[1],g[0]-f[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 r(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;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 s(){}function a(o){this._addDynamicProperty(o),this.elem.addDynamicProperty(o),this._isDirty=!0;}function n(o,d,g){if(this.elem=o,this.frameId=-1,this.propType="transform",this.data=d,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(g||o),d.p&&d.p.s?(this.px=PropertyFactory.getProp(o,d.p.x,0,0,this),this.py=PropertyFactory.getProp(o,d.p.y,0,0,this),d.p.z&&(this.pz=PropertyFactory.getProp(o,d.p.z,0,0,this))):this.p=PropertyFactory.getProp(o,d.p||{k:[0,0,0]},1,0,this),d.rx){if(this.rx=PropertyFactory.getProp(o,d.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(o,d.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(o,d.rz,0,degToRads,this),d.or.k[0].ti){var f,l=d.or.k.length;for(f=0;f0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0);},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e0?Math.floor(l):Math.ceil(l),m=this.pMatrix.props,E=this.rMatrix.props,c=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var u=0;if(l>0){for(;uv;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),u-=1;b&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-b,!0),u-=b);}r=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var y,P;a;){if(e=this.elemsData[r].it,i=e[e.length-1].transform.mProps.v.props,P=i.length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),u!==0){for((r!==0&&s===1||r!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15]),this.matrix.transform(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14],c[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]),y=0;y0&&r<1?[e]:[]:[e-r,e+r].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return [singlePoint(this.points[0]),this];if(t>=1)return [this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),i=lerpPoint(this.points[1],this.points[2],t),r=lerpPoint(this.points[2],this.points[3],t),s=lerpPoint(e,i,t),a=lerpPoint(i,r,t),n=lerpPoint(s,a,t);return [new PolynomialBezier(this.points[0],e,s,n,!0),new PolynomialBezier(n,a,r,this.points[3],!0)]};function extrema(t,e){var i=t.points[0][e],r=t.points[t.points.length-1][e];if(i>r){var s=r;r=i,i=s;}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),n=0;n0&&a[n]<1){var p=t.point(a[n])[e];pr&&(r=p);}return {min:i,max:r}}PolynomialBezier.prototype.bounds=function(){return {x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.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}};function intersectData(t,e,i){var r=t.boundingBox();return {cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return [intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return Math.abs(t.cx-e.cx)*2=a||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r){s.push([t.t,e.t]);return}var n=splitData(t),p=splitData(e);intersectsImpl(n[0],p[0],i+1,r,s,a),intersectsImpl(n[0],p[1],i+1,r,s,a),intersectsImpl(n[1],p[0],i+1,r,s,a),intersectsImpl(n[1],p[1],i+1,r,s,a);}}PolynomialBezier.prototype.intersections=function(t,e,i){e===void 0&&(e=2),i===void 0&&(i=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,r,i),r},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)};function crossProduct(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 lineIntersection(t,e,i,r){var s=[t[0],t[1],1],a=[e[0],e[1],1],n=[i[0],i[1],1],p=[r[0],r[1],1],o=crossProduct(crossProduct(s,a),crossProduct(n,p));return floatZero(o[2])?null:[o[0]/o[2],o[1]/o[2]]}function polarOffset(t,e,i){return [t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0;};function setPoint(t,e,i,r,s,a,n){var p=i-Math.PI/2,o=i+Math.PI/2,d=e[0]+Math.cos(i)*r*s,g=e[1]-Math.sin(i)*r*s;t.setTripleAt(d,g,d+Math.cos(p)*a,g-Math.sin(p)*a,d+Math.cos(o)*n,g-Math.sin(o)*n,t.length());}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],r=-Math.PI*.5,s=[Math.cos(r)*i[0]-Math.sin(r)*i[1],Math.sin(r)*i[0]+Math.cos(r)*i[1]];return s}function getProjectingAngle(t,e){var i=e===0?t.length()-1:e-1,r=(e+1)%t.length(),s=t.v[i],a=t.v[r],n=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,i,r,s,a,n){var p=getProjectingAngle(e,i),o=e.v[i%e._length],d=e.v[i===0?e._length-1:i-1],g=e.v[(i+1)%e._length],f=a===2?Math.sqrt(Math.pow(o[0]-d[0],2)+Math.pow(o[1]-d[1],2)):0,l=a===2?Math.sqrt(Math.pow(o[0]-g[0],2)+Math.pow(o[1]-g[1],2)):0;setPoint(t,e.v[i%e._length],p,n,r,l/((s+1)*2),f/((s+1)*2));}function zigZagSegment(t,e,i,r,s,a){for(var n=0;n1&&e.length>1&&(s=getIntersection(t[0],e[e.length-1]),s)?[[t[0].split(s[0])[0]],[e[e.length-1].split(s[1])[1]]]:[i,r]}function pruneIntersections(t){for(var e,i=1;i1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i=t.inflectionPoints(),r,s,a,n;if(i.length===0)return [offsetSegment(t,e)];if(i.length===1||floatEqual(i[1],1))return a=t.split(i[0]),r=a[0],s=a[1],[offsetSegment(r,e),offsetSegment(s,e)];a=t.split(i[0]),r=a[0];var p=(i[1]-i[0])/(1-i[0]);return a=a[1].split(p),n=a[0],s=a[1],[offsetSegment(r,e),offsetSegment(n,e),offsetSegment(s,e)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length!==0;},OffsetPathModifier.prototype.processPath=function(t,e,i,r){var s=shapePool.newElement();s.c=t.c;var a=t.length();t.c||(a-=1);var n,p,o,d=[];for(n=0;n=0;n-=1)o=PolynomialBezier.shapeSegmentInverted(t,n),d.push(offsetSegmentSplit(o,e));d=pruneIntersections(d);var g=null,f=null;for(n=0;n0&&(Ht=!1),Ht){var Ot=createTag("style");Ot.setAttribute("f-forigin",k[L].fOrigin),Ot.setAttribute("f-origin",k[L].origin),Ot.setAttribute("f-family",k[L].fFamily),Ot.type="text/css",Ot.innerText="@font-face {font-family: "+k[L].fFamily+"; font-style: normal; src: url('"+k[L].fPath+"');}",O.appendChild(Ot);}}else if(k[L].fOrigin==="g"||k[L].origin===1){for(It=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Gt=0;Gt=55296&&k<=56319){var L=D.charCodeAt(1);L>=56320&&L<=57343&&(O=(k-55296)*1024+L-56320+65536);}return O}function F(D,O){var k=D.toString(16)+O.toString(16);return f.indexOf(k)!==-1}function B(D){return D===o}function G(D){return D===p}function it(D){var O=w(D);return O>=d&&O<=g}function ft(D){return it(D.substr(0,2))&&it(D.substr(2,2))}function ct(D){return i.indexOf(D)!==-1}function dt(D,O){var k=w(D.substr(O,2));if(k!==r)return !1;var L=0;for(O+=2;L<5;){if(k=w(D.substr(O,2)),kn)return !1;L+=1,O+=2;}return w(D.substr(O,2))===s}function Pt(){this.isLoaded=!0;}var tt=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);};tt.isModifier=F,tt.isZeroWidthJoiner=B,tt.isFlagEmoji=ft,tt.isRegionalCode=it,tt.isCombinedCharacter=ct,tt.isRegionalFlag=dt,tt.isVariationSelector=G,tt.BLACK_FLAG_CODE_POINT=r;var vt={addChars:c,addFonts:E,getCharData:u,getFontByName:P,measureText:y,checkLoadedFonts:v,setIsLoaded:Pt};return tt.prototype=vt,tt}();function SlotManager(t){this.animationData=t;}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[];},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t);},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&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?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide());},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0));},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1;},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1;},AudioElement.prototype.resume=function(){this._canPlay=!0;},AudioElement.prototype.setRate=function(t){this.audio.rate(t);},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume);},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(t){var e,i=this.layers.length,r;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e],r.ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=this.elements[e]?this.completeLayers:!1;this.checkPendingElements();},BaseRenderer.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: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);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t0&&(this.maskElement.setAttribute("id",l),this.element.maskedElement.setAttribute(u,"url("+getLocationHref()+"#"+l+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this);}MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e=this.element.finalTransform.mat,i,r=this.masksProperties.length;for(i=0;i1&&(r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==r){var n="";i.elem&&(e.c&&(n=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",n)),i.lastPath=r;}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null;};var filtersFactory=function(){var t={};t.createFilter=e,t.createAlphaToLuminanceFilter=i;function e(r,s){var a=createNS("filter");return a.setAttribute("id",r),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function i(){var r=createNS("feColorMatrix");return r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),r}return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return (/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))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,i="SourceGraphic",r=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),n=0;this.filters=[];var p;for(e=0;e=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;i.01)return !1;i+=1;}return !0},GradientProperty.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;t0;)c=l.transformers[it].mProps._mdf||c,G-=1,it-=1;if(c)for(G=w-l.styles[y].lvl,it=l.transformers.length-1;G>0;)B.multiply(l.transformers[it].mProps.v),G-=1,it-=1;}else B=t;if(F=l.sh.paths,m=F._length,c){for(E="",v=0;v=1?Pt=.99:Pt<=-1&&(Pt=-.99);var tt=ct*Pt,vt=Math.cos(dt+l.a.v)*tt+E[0],D=Math.sin(dt+l.a.v)*tt+E[1];v.setAttribute("fx",vt),v.setAttribute("fy",D),m&&!l.g._collapsable&&(l.of.setAttribute("fx",vt),l.of.setAttribute("fy",D));}}}function g(f,l,b){var v=l.style,m=l.d;m&&(m._mdf||b)&&m.dashStr&&(v.pElem.setAttribute("stroke-dasharray",m.dashStr),v.pElem.setAttribute("stroke-dashoffset",m.dashoffset[0])),l.c&&(l.c._mdf||b)&&v.pElem.setAttribute("stroke","rgb("+bmFloor(l.c.v[0])+","+bmFloor(l.c.v[1])+","+bmFloor(l.c.v[2])+")"),(l.o._mdf||b)&&v.pElem.setAttribute("stroke-opacity",l.o.v),(l.w._mdf||b)&&(v.pElem.setAttribute("stroke-width",l.w.v),v.msElem&&v.msElem.setAttribute("stroke-width",l.w.v));}return i}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[];}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes();},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e=this.shapes.length,i,r,s=this.stylesList.length,a,n=[],p=!1;for(r=0;r1&&p&&this.setShapesAsAnimated(n);}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;o-=1){if(E=this.searchProcessedElement(t[o]),E?e[o]=i[E-1]:t[o]._render=n,t[o].ty==="fl"||t[o].ty==="st"||t[o].ty==="gf"||t[o].ty==="gs"||t[o].ty==="no")E?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],s),t[o]._render&&e[o].style.pElem.parentNode!==r&&r.appendChild(e[o].style.pElem),l.push(e[o].style);else if(t[o].ty==="gr"){if(!E)e[o]=this.createGroupElement(t[o]);else for(f=e[o].it.length,g=0;g1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this);},TextProperty.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,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var r,s=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(r=0;re);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e=[],i=0,r=t.length,s,a,n=!1,p=!1,o="";i=55296&&s<=56319?FontManager.isRegionalFlag(t,i)?o=t.substr(i,14):(a=t.charCodeAt(i+1),a>=56320&&a<=57343&&(FontManager.isModifier(s,a)?(o=t.substr(i,2),n=!0):FontManager.isFlagEmoji(t.substr(i,4))?o=t.substr(i,4):o=t.substr(i,2))):s>56319?(a=t.charCodeAt(i+1),FontManager.isVariationSelector(s)&&(n=!0)):FontManager.isZeroWidthJoiner(s)&&(n=!0,p=!0),n?(e[e.length-1]+=o,n=!1):e.push(o),i+=o.length;return e},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,i=this.data,r=[],s,a,n,p=0,o,d=i.m.g,g=0,f=0,l=0,b=[],v=0,m=0,E,c,u=e.getFontByName(t.f),y,P=0,w=getFontProperties(u);t.fWeight=w.weight,t.fStyle=w.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),a=t.finalText.length,t.finalLineHeight=t.lh;var F=t.tr/1e3*t.finalSize,B;if(t.sz)for(var G=!0,it=t.sz[0],ft=t.sz[1],ct,dt;G;){dt=this.buildFinalText(t.t),ct=0,v=0,a=dt.length,F=t.tr/1e3*t.finalSize;var Pt=-1;for(s=0;sit&&dt[s]!==" "?(Pt===-1?a+=1:s=Pt,ct+=t.finalLineHeight||t.finalSize*1.2,dt.splice(s,Pt===s?1:0,"\r"),Pt=-1,v=0):(v+=P,v+=F);ct+=u.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&ftm?v:m,v=-2*F,o="",n=!0,l+=1):o=vt,e.chars?(y=e.getCharData(vt,u.fStyle,e.getFontByName(t.f).fFamily),P=n?0:y.w*t.finalSize/100):P=e.measureText(o,t.f,t.finalSize),vt===" "?tt+=P+F:(v+=P+F+tt,tt=0),r.push({l:P,an:P,add:g,n,anIndexes:[],val:o,line:l,animatorJustifyOffset:0}),d==2){if(g+=P,o===""||o===" "||s===a-1){for((o===""||o===" ")&&(g-=P);f<=s;)r[f].an=g,r[f].ind=p,r[f].extra=P,f+=1;p+=1,g=0;}}else if(d==3){if(g+=P,o===""||s===a-1){for(o===""&&(g-=P);f<=s;)r[f].an=g,r[f].ind=p,r[f].extra=P,f+=1;g=0,p+=1;}}else r[p].ind=p,r[p].extra=0,p+=1;if(t.l=r,m=v>m?v:m,b.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=m,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0;}t.lineWidths=b;var D=i.a,O,k;c=D.length;var L,K,U=[];for(E=0;E0?n=this.ne.v/100:p=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:d=1+this.xe.v/100;var g=BezierFactory.getBezierEasing(n,p,o,d).get,f=0,l=this.finalS,b=this.finalE,v=this.data.sh;if(v===2)b===l?f=a>=b?1:0:f=t(0,e(.5/(b-l)+(a-l)/(b-l),1)),f=g(f);else if(v===3)b===l?f=a>=b?0:1:f=1-t(0,e(.5/(b-l)+(a-l)/(b-l),1)),f=g(f);else if(v===4)b===l?f=0:(f=t(0,e(.5/(b-l)+(a-l)/(b-l),1)),f<.5?f*=2:f=1-2*(f-.5)),f=g(f);else if(v===5){if(b===l)f=0;else {var m=b-l;a=e(t(0,a+.5-l),b-l);var E=-m/2+a,c=m/2;f=Math.sqrt(1-E*E/(c*c));}f=g(f);}else v===6?(b===l?f=0:(a=e(t(0,a+.5-l),b-l),f=(1+Math.cos(Math.PI+Math.PI*2*a/(b-l)))/2),f=g(f)):(a>=i(l)&&(a-l<0?f=t(0,e(e(b,1)-(l-a),1)):f=t(0,e(b-a,1))),f=g(f));if(this.sm.v!==100){var u=this.sm.v*.01;u===0&&(u=1e-8);var y=.5-u*.5;f1&&(f=1));}return f*this.a.v},getValue:function(a){this.iterateDynamicProperties(),this._mdf=a||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,a&&this.data.r===2&&(this.e.v=this._currentTextLength);var n=this.data.r===2?1:100/this.data.totalChars,p=this.o.v/n,o=this.s.v/n+p,d=this.e.v/n+p;if(o>d){var g=o;o=d,d=g;}this.finalS=o,this.finalE=d;}},extendPrototype([DynamicPropertyContainer],r);function s(a,n,p){return new r(a,n)}return {getTextSelectorProp:s}}();function TextAnimatorDataProperty(t,e,i){var r={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,i):r,rx:a.rx?s(t,a.rx,0,degToRads,i):r,ry:a.ry?s(t,a.ry,0,degToRads,i):r,sk:a.sk?s(t,a.sk,0,degToRads,i):r,sa:a.sa?s(t,a.sa,0,degToRads,i):r,s:a.s?s(t,a.s,1,.01,i):r,a:a.a?s(t,a.a,1,0,i):r,o:a.o?s(t,a.o,0,.01,i):r,p:a.p?s(t,a.p,1,0,i):r,sw:a.sw?s(t,a.sw,0,0,i):r,sc:a.sc?s(t,a.sc,1,0,i):r,fc:a.fc?s(t,a.fc,1,0,i):r,fh:a.fh?s(t,a.fh,0,0,i):r,fs:a.fs?s(t,a.fs,0,.01,i):r,fb:a.fb?s(t,a.fb,0,.01,i):r,t:a.t?s(t,a.t,0,0,i):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t;}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i);}TextAnimatorProperty.prototype.searchProperties=function(){var t,e=this._textData.a.length,i,r=PropertyFactory.getProp;for(t=0;t=v+be||!w?(it=(v+be-E)/m.partialLength,Gt=P.point[0]+(m.point[0]-P.point[0])*it,Ot=P.point[1]+(m.point[1]-P.point[1])*it,a.translate(-i[0]*l[g].an*.005,-(i[1]*tt)*.01),c=!1):w&&(E+=m.partialLength,u+=1,u>=w.length&&(u=0,y+=1,F[y]?w=F[y].points:ct.v.c?(u=0,y=0,w=F[y].points):(E-=m.partialLength,w=null)),w&&(P=m,m=w[u],B=m.partialLength));It=l[g].an/2-l[g].add,a.translate(-It,0,0);}else It=l[g].an/2-l[g].add,a.translate(-It,0,0),a.translate(-i[0]*l[g].an*.005,-i[1]*tt*.01,0);for(k=0;kt?this.textSpans[t].span:createNS(p?"g":"text"),y<=t){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=o,p){var w=createNS("g");o.appendChild(w),this.textSpans[t].childSpan=w;}this.textSpans[t].span=o,this.layerElement.appendChild(o);}o.style.display="inherit";}if(d.reset(),f&&(n[t].n&&(l=-m,b+=i.yOffset,b+=v?1:0,v=!1),this.applyTextPropertiesToMatrix(i,d,n[t].line,l,b),l+=n[t].l||0,l+=m),p){P=this.globalData.fontManager.getCharData(i.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var F;if(P.t===1)F=new SVGCompElement(P.data,this.globalData,this);else {var B=emptyShapeData;P.data&&P.data.shapes&&(B=this.buildShapeData(P.data,i.finalSize)),F=new SVGShapeElement(B,this.globalData,this);}if(this.textSpans[t].glyph){var G=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(G.layerElement),G.destroy();}this.textSpans[t].glyph=F,F._debug=!0,F.prepareFrame(0),F.renderFrame(),this.textSpans[t].childSpan.appendChild(F.layerElement),P.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")");}else f&&o.setAttribute("transform","translate("+d.props[12]+","+d.props[13]+")"),o.textContent=n[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}f&&o&&o.setAttribute("d",g);}for(;t=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=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0));}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t=d;)ft/=2,ct/=2,dt>>>=1;return (ft+dt)/ct};return it.int32=function(){return G.g(4)|0},it.quick=function(){return G.g(4)/4294967296},it.double=it,E(u(G.S),t),(P.pass||w||function(ft,ct,dt,Pt){return Pt&&(Pt.S&&v(Pt,G),ft.state=function(){return v(G,{})}),dt?(e[n]=ft,ct):ft})(it,B,"global"in P?P.global:this==e,P.state)}e["seed"+n]=l;function b(y){var P,w=y.length,F=this,B=0,G=F.i=F.j=0,it=F.S=[];for(w||(y=[w++]);Bi){var r=i;i=e,e=r;}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if(typeof t=="number"||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var i,r=Math.min(t.length,e.length),s=0;for(i=0;i.5?d/(2-s-a):d/(s+a),s){case e:n=(i-r)/d+(i1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e=t[0],i=t[1],r=t[2],s,a,n;if(i===0)s=r,n=r,a=r;else {var p=r<.5?r*(1+i):r+i-r*i,o=2*r-p;s=hue2rgb(o,p,e+1/3),a=hue2rgb(o,p,e),n=hue2rgb(o,p,e-1/3);}return [s,a,n,t[3]]}function linear(t,e,i,r,s){if((r===void 0||s===void 0)&&(r=e,s=i,e=0,i=1),i=i)return s;var n=i===e?0:(t-e)/(i-e);if(!r.length)return r+(s-r)*n;var p,o=r.length,d=createTypedArray("float32",o);for(p=0;p1){for(s=0;s1?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){var p,o=s.length,d=createTypedArray("float32",o);for(p=0;pdata.k[e].t&&tdata.k[e+1].t-t?(r=e+2,s=data.k[e+1].t):(r=e+1,s=data.k[e].t);break}r===-1&&(r=e+1,s=data.k[e].t);}var a={};return a.index=r,a.time=s/elem.comp.globalData.frameRate,a}function key(t){var e,i,r;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(r=s.length,i=0;iE.length-1)&&(b=E.length-1),y=E[E.length-1-b].t,u=c-y);var P,w,F;if(l==="pingpong"){var B=Math.floor((m-y)/u);if(B%2!==0)return this.getValueAtTime((u-(m-y)%u+y)/this.comp.globalData.frameRate,0)}else if(l==="offset"){var G=this.getValueAtTime(y/this.comp.globalData.frameRate,0),it=this.getValueAtTime(c/this.comp.globalData.frameRate,0),ft=this.getValueAtTime(((m-y)%u+y)/this.comp.globalData.frameRate,0),ct=Math.floor((m-y)/u);if(this.pv.length){for(F=new Array(G.length),w=F.length,P=0;P=c)return this.pv;var u,y;v?(b?u=Math.abs(this.elem.comp.globalData.frameRate*b):u=Math.max(0,this.elem.data.op-c),y=c+u):((!b||b>E.length-1)&&(b=E.length-1),y=E[b].t,u=y-c);var P,w,F;if(l==="pingpong"){var B=Math.floor((c-m)/u);if(B%2===0)return this.getValueAtTime(((c-m)%u+c)/this.comp.globalData.frameRate,0)}else if(l==="offset"){var G=this.getValueAtTime(c/this.comp.globalData.frameRate,0),it=this.getValueAtTime(y/this.comp.globalData.frameRate,0),ft=this.getValueAtTime((u-(c-m)%u+c)/this.comp.globalData.frameRate,0),ct=Math.floor((c-m)/u)+1;if(this.pv.length){for(F=new Array(G.length),w=F.length,P=0;P1?(E-m)/(b-1):1,u=0,y=0,P;this.pv.length?P=createTypedArray("float32",this.pv.length):P=0;for(var w;uc){var F=u,B=v.c&&u===y-1?0:u+1,G=(c-P)/E[u].addedLength;w=bez.getPointInSegment(v.v[F],v.v[B],v.o[F],v.i[B],G,E[u]);break}else P+=E[u].addedLength;u+=1;}return w||(w=v.c?[v.v[0][0],v.v[0][1]]:[v.v[v._length-1][0],v.v[v._length-1][1]]),w},vectorOnPath:function(l,b,v){l==1?l=this.v.c:l==0&&(l=.999);var m=this.pointOnPath(l,b),E=this.pointOnPath(l+.001,b),c=E[0]-m[0],u=E[1]-m[1],y=Math.sqrt(Math.pow(c,2)+Math.pow(u,2));if(y===0)return [0,0];var P=v==="tangent"?[c/y,u/y]:[-u/y,c/y];return P},tangentOnPath:function(l,b){return this.vectorOnPath(l,b,"tangent")},normalOnPath:function(l,b){return this.vectorOnPath(l,b,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([g],o),extendPrototype([g],d),d.prototype.getValueAtTime=p,d.prototype.initiateExpression=ExpressionManager.initiateExpression;var f=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(l,b,v,m,E){var c=f(l,b,v,m,E);return c.propertyIndex=b.ix,c.lock=!1,v===3?expressionHelpers.searchExpressions(l,b.pt,c):v===4&&expressionHelpers.searchExpressions(l,b.ks,c),c.k&&l.addDynamicProperty(c),c};}function initialize$1(){addPropertyDecorator();}function addDecorator(){function t(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(e,i){var r=this.calculateExpression(i);if(e.t!==r){var s={};return this.copyData(s,e),s.t=r.toString(),s.__complete=!1,s}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),i=this.searchExpressions();return this.kf=e||i,this.kf},TextProperty.prototype.searchExpressions=t;}function initialize(){addDecorator();}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function t(e,i){var r=createNS("feMerge");r.setAttribute("result",e);var s,a;for(a=0;a=d?f=v<0?r:s:f=r+b*Math.pow((p-t)/v,1/i),g[l]=f,l+=1,a+=256/(n-1);return g.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e));}};function SVGDropShadowEffect(t,e,i,r,s){var a=e.container.globalData.renderConfig.filterSize,n=e.data.fs||a;t.setAttribute("x",n.x||a.x),t.setAttribute("y",n.y||a.y),t.setAttribute("width",n.width||a.width),t.setAttribute("height",n.height||a.height),this.filterManager=e;var p=createNS("feGaussianBlur");p.setAttribute("in","SourceAlpha"),p.setAttribute("result",r+"_drop_shadow_1"),p.setAttribute("stdDeviation","0"),this.feGaussianBlur=p,t.appendChild(p);var o=createNS("feOffset");o.setAttribute("dx","25"),o.setAttribute("dy","0"),o.setAttribute("in",r+"_drop_shadow_1"),o.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=o,t.appendChild(o);var d=createNS("feFlood");d.setAttribute("flood-color","#00ff00"),d.setAttribute("flood-opacity","1"),d.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=d,t.appendChild(d);var g=createNS("feComposite");g.setAttribute("in",r+"_drop_shadow_3"),g.setAttribute("in2",r+"_drop_shadow_2"),g.setAttribute("operator","in"),g.setAttribute("result",r+"_drop_shadow_4"),t.appendChild(g);var f=this.createMergeNode(r,[r+"_drop_shadow_4",s]);t.appendChild(f);}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(e[0]*255),Math.round(e[1]*255),Math.round(e[2]*255)));}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=i*Math.cos(r),a=i*Math.sin(r);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a);}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement;}SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;esg});var rg,sg,Dc=cr(()=>{ns();rg=ue((t,e)=>{typeof navigator<"u"&&function(i,r){typeof t=="object"&&typeof e<"u"?e.exports=r():typeof define=="function"&&define.amd?define(r):(i=typeof globalThis<"u"?globalThis:i||self,i.lottie=r());}(t,function(){var i="http://www.w3.org/2000/svg",r="",s=!1,a=-999999,n=function(h){s=!!h;},p=function(){return s},o=function(h){r=h;},d=function(){return r};function g(h){return document.createElement(h)}function f(h,x){var S,M=h.length,R;for(S=0;S1?S[1]=1:S[1]<=0&&(S[1]=0),L(S[0],S[1],S[2])}function Ht(h,x){var S=K(h[0]*255,h[1]*255,h[2]*255);return S[2]+=x,S[2]>1?S[2]=1:S[2]<0&&(S[2]=0),L(S[0],S[1],S[2])}function It(h,x){var S=K(h[0]*255,h[1]*255,h[2]*255);return S[0]+=x/360,S[0]>1?S[0]-=1:S[0]<0&&(S[0]+=1),L(S[0],S[1],S[2])}(function(){var h=[],x,S;for(x=0;x<256;x+=1)S=x.toString(16),h[x]=S.length===1?"0"+S:S;return function(M,R,V){return M<0&&(M=0),R<0&&(R=0),V<0&&(V=0),"#"+h[M]+h[R]+h[V]}})();var Gt=function(h){E=!!h;},Ot=function(){return E},ee=function(h){c=h;},ae=function(){return c},le=function(h){G=h;},ye=function(){return G},ce=function(h){u=h;};function Xt(h){return document.createElementNS(i,h)}function pe(h){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pe=function(x){return typeof x}:pe=function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},pe(h)}var Wt=function(){var h=1,x=[],S,M,R={onmessage:function(){},postMessage:function(J){S({data:J});}},V={postMessage:function(J){R.onmessage({data:J});}};function $(J){if(window.Worker&&window.Blob&&p()){var W=new Blob(["var _workerSelf = self; self.onmessage = ",J.toString()],{type:"text/javascript"}),X=URL.createObjectURL(W);return new Worker(X)}return S=J,R}function et(){M||(M=$(function(J){function W(){function j(Lt,Ct){var Et,Tt,gt=Lt.length,Ft,Zt,Ut,Se;for(Tt=0;Tt=0;Ct-=1)if(Lt[Ct].ty==="sh")if(Lt[Ct].ks.k.i)bt(Lt[Ct].ks.k);else for(gt=Lt[Ct].ks.k.length,Tt=0;TtEt[0]?!0:Et[0]>Lt[0]?!1:Lt[1]>Et[1]?!0:Et[1]>Lt[1]?!1:Lt[2]>Et[2]?!0:Et[2]>Lt[2]?!1:null}var zt=function(){var Lt=[4,4,14];function Ct(Tt){var gt=Tt.t.d;Tt.t.d={k:[{s:gt,t:0}]};}function Et(Tt){var gt,Ft=Tt.length;for(gt=0;gt=0;gt-=1)if(Tt[gt].ty==="sh")if(Tt[gt].ks.k.i)Tt[gt].ks.k.c=Tt[gt].closed;else for(Ut=Tt[gt].ks.k.length,Zt=0;Zt500)&&(this._imageLoaded(),clearInterval(yt)),Q+=1;}.bind(this),50);}function V(ht){var Q=M(ht,this.assetsPath,this.path),yt=Xt("image");y?this.testImageLoaded(yt):yt.addEventListener("load",this._imageLoaded,!1),yt.addEventListener("error",function(){bt.img=h,this._imageLoaded();}.bind(this),!1),yt.setAttributeNS("http://www.w3.org/1999/xlink","href",Q),this._elementHelper.append?this._elementHelper.append(yt):this._elementHelper.appendChild(yt);var bt={img:yt,assetData:ht};return bt}function $(ht){var Q=M(ht,this.assetsPath,this.path),yt=g("img");yt.crossOrigin="anonymous",yt.addEventListener("load",this._imageLoaded,!1),yt.addEventListener("error",function(){bt.img=h,this._imageLoaded();}.bind(this),!1),yt.src=Q;var bt={img:yt,assetData:ht};return bt}function et(ht){var Q={assetData:ht},yt=M(ht,this.assetsPath,this.path);return Wt.loadData(yt,function(bt){Q.img=bt,this._footageLoaded();}.bind(this),function(){Q.img={},this._footageLoaded();}.bind(this)),Q}function Z(ht,Q){this.imagesLoadedCb=Q;var yt,bt=ht.length;for(yt=0;ytthis.animationData.op&&(this.animationData.op=h.op,this.totalFrames=Math.floor(h.op-this.animationData.ip));var x=this.animationData.layers,S,M=x.length,R=h.layers,V,$=R.length;for(V=0;V<$;V+=1)for(S=0;Sthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame");},qt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame);}catch(h){this.triggerRenderFrameError(h);}},qt.prototype.play=function(h){h&&this.name!==h||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")));},qt.prototype.pause=function(h){h&&this.name!==h||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause());},qt.prototype.togglePause=function(h){h&&this.name!==h||(this.isPaused===!0?this.play():this.pause());},qt.prototype.stop=function(h){h&&this.name!==h||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0));},qt.prototype.getMarkerData=function(h){for(var x,S=0;S=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(x>this.totalFrames?x%this.totalFrames:0)||(S=!0,x=this.totalFrames-1):x>=this.totalFrames?(this.playCount+=1,this.checkSegments(x%this.totalFrames)||(this.setCurrentRawFrameValue(x%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(x):x<0?this.checkSegments(x%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+x%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(S=!0,x=0)):this.setCurrentRawFrameValue(x),S&&(this.setCurrentRawFrameValue(x),this.pause(),this.trigger("complete"));}},qt.prototype.adjustSegment=function(h,x){this.playCount=0,h[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=h[0]-h[1],this.timeCompleted=this.totalFrames,this.firstFrame=h[1],this.setCurrentRawFrameValue(this.totalFrames-.001-x)):h[1]>h[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=h[1]-h[0],this.timeCompleted=this.totalFrames,this.firstFrame=h[0],this.setCurrentRawFrameValue(.001+x)),this.trigger("segmentStart");},qt.prototype.setSegment=function(h,x){var S=-1;this.isPaused&&(this.currentRawFrame+this.firstFramex&&(S=x-h)),this.firstFrame=h,this.totalFrames=x-h,this.timeCompleted=this.totalFrames,S!==-1&&this.goToAndStop(S,!0);},qt.prototype.playSegments=function(h,x){if(x&&(this.segments.length=0),re(h[0])==="object"){var S,M=h.length;for(S=0;S=0;Tt-=1)x[Tt].animation.destroy(Et);}function Vt(Et,Tt,gt){var Ft=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Zt,Ut=Ft.length;for(Zt=0;Zt0?bt=Vt:yt=Vt;while(Math.abs($t)>V&&++Kt<$);return Vt}function nt(Q,yt,bt,kt){for(var zt=0;zt=R?nt(Q,St,yt,bt):wt===0?St:j(Q,zt,zt+Z,yt,bt)}},h}(),be=function(){function h(x){return x.concat(m(x.length))}return {double:h}}(),ze=function(){return function(h,x,S){var M=0,R=h,V=m(R),$={newElement:et,release:Z};function et(){var at;return M?(M-=1,at=V[M]):at=x(),at}function Z(at){M===R&&(V=be.double(V),R*=2),S&&S(at),V[M]=at,M+=1;}return $}}(),si=function(){function h(){return {addedLength:0,percents:v("float32",ye()),lengths:v("float32",ye())}}return ze(8,h)}(),ai=function(){function h(){return {lengths:[],totalLength:0}}function x(S){var M,R=S.lengths.length;for(M=0;M-.001&&Q<.001}function S(J,W,X,j,nt,ht,Q,yt,bt){if(X===0&&ht===0&&bt===0)return x(J,W,j,nt,Q,yt);var kt=h.sqrt(h.pow(j-J,2)+h.pow(nt-W,2)+h.pow(ht-X,2)),zt=h.sqrt(h.pow(Q-J,2)+h.pow(yt-W,2)+h.pow(bt-X,2)),$t=h.sqrt(h.pow(Q-j,2)+h.pow(yt-nt,2)+h.pow(bt-ht,2)),Vt;return kt>zt?kt>$t?Vt=kt-zt-$t:Vt=$t-zt-kt:$t>zt?Vt=$t-zt-kt:Vt=zt-kt-$t,Vt>-1e-4&&Vt<1e-4}var M=function(){return function(J,W,X,j){var nt=ye(),ht,Q,yt,bt,kt,zt=0,$t,Vt=[],Kt=[],St=si.newElement();for(yt=X.length,ht=0;htQ?-1:1,kt=!0;kt;)if(j[ht]<=Q&&j[ht+1]>Q?(yt=(Q-j[ht])/(j[ht+1]-j[ht]),kt=!1):ht+=bt,ht<0||ht>=nt-1){if(ht===nt-1)return X[ht];kt=!1;}return X[ht]+(X[ht+1]-X[ht])*yt}function at(J,W,X,j,nt,ht){var Q=Z(nt,ht),yt=1-Q,bt=h.round((yt*yt*yt*J[0]+(Q*yt*yt+yt*Q*yt+yt*yt*Q)*X[0]+(Q*Q*yt+yt*Q*Q+Q*yt*Q)*j[0]+Q*Q*Q*W[0])*1e3)/1e3,kt=h.round((yt*yt*yt*J[1]+(Q*yt*yt+yt*Q*yt+yt*yt*Q)*X[1]+(Q*Q*yt+yt*Q*Q+Q*yt*Q)*j[1]+Q*Q*Q*W[1])*1e3)/1e3;return [bt,kt]}var pt=v("float32",8);function rt(J,W,X,j,nt,ht,Q){nt<0?nt=0:nt>1&&(nt=1);var yt=Z(nt,Q);ht=ht>1?1:ht;var bt=Z(ht,Q),kt,zt=J.length,$t=1-yt,Vt=1-bt,Kt=$t*$t*$t,St=yt*$t*$t*3,wt=yt*yt*$t*3,lt=yt*yt*yt,Mt=$t*$t*Vt,Lt=yt*$t*Vt+$t*yt*Vt+$t*$t*bt,Ct=yt*yt*Vt+$t*yt*bt+yt*$t*bt,Et=yt*yt*bt,Tt=$t*Vt*Vt,gt=yt*Vt*Vt+$t*bt*Vt+$t*Vt*bt,Ft=yt*bt*Vt+$t*bt*bt+yt*Vt*bt,Zt=yt*bt*bt,Ut=Vt*Vt*Vt,Se=bt*Vt*Vt+Vt*bt*Vt+Vt*Vt*bt,_e=bt*bt*Vt+Vt*bt*bt+bt*Vt*bt,Ie=bt*bt*bt;for(kt=0;kt=at.t-S){Z.h&&(Z=at),R=0;break}if(at.t-S>h){R=V;break}V<$-1?V+=1:(R=0,et=!1);}pt=this.keyframesMetadata[V]||{};var rt,J,W,X,j,nt,ht=at.t-S,Q=Z.t-S,yt;if(Z.to){pt.bezierData||(pt.bezierData=Ei.buildBezierData(Z.s,at.s||Z.e,Z.to,Z.ti));var bt=pt.bezierData;if(h>=ht||h=ht?bt.points.length-1:0;for(J=bt.points[kt].point.length,rt=0;rt=Vt&&zt=ht)M[0]=yt[0],M[1]=yt[1],M[2]=yt[2];else if(h<=Q)M[0]=Z.s[0],M[1]=Z.s[1],M[2]=Z.s[2];else {var Lt=os(Z.s),Ct=os(yt),Et=(h-Q)/(ht-Q);jr(M,ha(Lt,Ct,Et));}else for(V=0;V<$;V+=1)Z.h!==1&&(h>=ht?W=1:h1e-6?(J=Math.acos(W),X=Math.sin(J),j=Math.sin((1-S)*J)/X,nt=Math.sin(S*J)/X):(j=1-S,nt=S),M[0]=j*R+nt*Z,M[1]=j*V+nt*at,M[2]=j*$+nt*pt,M[3]=j*et+nt*rt,M}function jr(h,x){var S=x[0],M=x[1],R=x[2],V=x[3],$=Math.atan2(2*M*V-2*S*R,1-2*M*M-2*R*R),et=Math.asin(2*S*M+2*R*V),Z=Math.atan2(2*S*V-2*M*R,1-2*S*S-2*R*R);h[0]=$/it,h[1]=et/it,h[2]=Z/it;}function os(h){var x=h[0]*it,S=h[1]*it,M=h[2]*it,R=Math.cos(x/2),V=Math.cos(S/2),$=Math.cos(M/2),et=Math.sin(x/2),Z=Math.sin(S/2),at=Math.sin(M/2),pt=R*V*$-et*Z*at,rt=et*Z*$+R*V*at,J=et*V*$+R*Z*at,W=R*Z*$-et*V*at;return [rt,J,W,pt]}function Xs(){var h=this.comp.renderedFrame-this.offsetTime,x=this.keyframes[0].t-this.offsetTime,S=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(h===this._caching.lastFrame||this._caching.lastFrame!==Yi&&(this._caching.lastFrame>=S&&h>=S||this._caching.lastFrame=h&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var M=this.interpolateValue(h,this._caching);this.pv=M;}return this._caching.lastFrame=h,this.pv}function Vr(h){var x;if(this.propType==="unidimensional")x=h*this.mult,Ki(this.v-x)>1e-5&&(this.v=x,this._mdf=!0);else for(var S=0,M=this.v.length;S1e-5&&(this.v[S]=x,this._mdf=!0),S+=1;}function Hr(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var h,x=this.effectsSequence.length,S=this.kf?this.pv:this.data.k;for(h=0;h=this._maxLength&&this.doubleArrayLength(),S){case"v":V=this.v;break;case"i":V=this.i;break;case"o":V=this.o;break;default:V=[];break}(!V[M]||V[M]&&!R)&&(V[M]=fe.newElement()),V[M][0]=h,V[M][1]=x;},Ze.prototype.setTripleAt=function(h,x,S,M,R,V,$,et){this.setXYAt(h,x,"v",$,et),this.setXYAt(S,M,"o",$,et),this.setXYAt(R,V,"i",$,et);},Ze.prototype.reverse=function(){var h=new Ze;h.setPathData(this.c,this._length);var x=this.v,S=this.o,M=this.i,R=0;this.c&&(h.setTripleAt(x[0][0],x[0][1],M[0][0],M[0][1],S[0][0],S[0][1],0,!1),R=1);var V=this._length-1,$=this._length,et;for(et=R;et<$;et+=1)h.setTripleAt(x[V][0],x[V][1],M[V][0],M[V][1],S[V][0],S[V][1],et,!1),V-=1;return h},Ze.prototype.length=function(){return this._length};var Ne=function(){function h(){return new Ze}function x(R){var V=R._length,$;for($=0;$=Lt[Lt.length-1].t-this.offsetTime)kt=Lt[Lt.length-1].s?Lt[Lt.length-1].s[0]:Lt[Lt.length-2].e[0],$t=!0;else {for(var Ct=bt,Et=Lt.length-1,Tt=!0,gt,Ft,Zt;Tt&&(gt=Lt[Ct],Ft=Lt[Ct+1],!(Ft.t-this.offsetTime>ht));)Ct=Ft.t-this.offsetTime)lt=1;else if(htyt&&ht>yt)||(this._caching.lastIndex=bt0||gt>-1e-6&><0?M(gt*Ft)/Ft:gt}function Tt(){var gt=this.props,Ft=Et(gt[0]),Zt=Et(gt[1]),Ut=Et(gt[4]),Se=Et(gt[5]),_e=Et(gt[12]),Ie=Et(gt[13]);return "matrix("+Ft+","+Zt+","+Ut+","+Se+","+_e+","+Ie+")"}return function(){this.reset=R,this.rotate=V,this.rotateX=$,this.rotateY=et,this.rotateZ=Z,this.skew=pt,this.skewFromAxis=rt,this.shear=at,this.scale=J,this.setTransform=W,this.translate=X,this.transform=j,this.multiply=nt,this.applyToPoint=kt,this.applyToX=zt,this.applyToY=$t,this.applyToZ=Vt,this.applyToPointArray=Mt,this.applyToTriplePoints=lt,this.applyToPointStringified=Lt,this.toCSS=Ct,this.to2dCSS=Tt,this.clone=yt,this.cloneFromProps=bt,this.equals=Q,this.inversePoints=wt,this.inversePoint=St,this.getInverseMatrix=Kt,this._t=this.transform,this.isIdentity=ht,this._identity=!0,this._identityCalculated=!1,this.props=v("float32",16),this.reset();}}();function kr(h){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kr=function(x){return typeof x}:kr=function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},kr(h)}var ge={};function Vs(h){o(h);}function ti(){ne.searchAnimations();}function wa(h){Gt(h);}function la(h){ce(h);}function Ta(h){return ne.loadAnimation(h)}function hs(h){if(typeof h=="string")switch(h){case"high":le(200);break;default:case"medium":le(50);break;case"low":le(10);break}else !isNaN(h)&&h>1&&le(h);}function Ma(){return typeof navigator<"u"}function Da(h,x){h==="expressions"&&ee(x);}function Fa(h){switch(h){case"propertyFactory":return te;case"shapePropertyFactory":return gr;case"matrix":return qe;default:return null}}ge.play=ne.play,ge.pause=ne.pause,ge.setLocationHref=Vs,ge.togglePause=ne.togglePause,ge.setSpeed=ne.setSpeed,ge.setDirection=ne.setDirection,ge.stop=ne.stop,ge.searchAnimations=ti,ge.registerAnimation=ne.registerAnimation,ge.loadAnimation=Ta,ge.setSubframeRendering=wa,ge.resize=ne.resize,ge.goToAndStop=ne.goToAndStop,ge.destroy=ne.destroy,ge.setQuality=hs,ge.inBrowser=Ma,ge.installPlugin=Da,ge.freeze=ne.freeze,ge.unfreeze=ne.unfreeze,ge.setVolume=ne.setVolume,ge.mute=ne.mute,ge.unmute=ne.unmute,ge.getRegisteredAnimations=ne.getRegisteredAnimations,ge.useWebWorker=n,ge.setIDPrefix=la,ge.__getFactory=Fa,ge.version="5.12.2";function Ia(){document.readyState==="complete"&&(clearInterval(Zs),ti());}function La(h){for(var x=Ys.split("&"),S=0;S"u"?"undefined":kr(t))==="object"&&typeof e<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=ge);}catch{}var Ii=function(){var h={},x={};h.registerModifier=S,h.getModifier=M;function S(R,V){x[R]||(x[R]=V);}function M(R,V,$){return new x[R](V,$)}return h}();function li(){}li.prototype.initModifierProperties=function(){},li.prototype.addShapeToModifier=function(){},li.prototype.addShape=function(h){if(!this.closed){h.sh.container.addDynamicProperty(h.sh);var x={shape:h.sh,data:h,localShapeCollection:hi.newShapeCollection()};this.shapes.push(x),this.addShapeToModifier(x),this._isAnimated&&h.setAsAnimated();}},li.prototype.init=function(h,x){this.shapes=[],this.elem=h,this.initDynamicPropertyContainer(h),this.initModifierProperties(h,x),this.frameId=a,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0);},li.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties());},f([Ye],li);function ei(){}f([li],ei),ei.prototype.initModifierProperties=function(h,x){this.s=te.getProp(h,x.s,0,.01,this),this.e=te.getProp(h,x.e,0,.01,this),this.o=te.getProp(h,x.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=x.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length;},ei.prototype.addShapeToModifier=function(h){h.pathsData=[];},ei.prototype.calculateShapeEdges=function(h,x,S,M,R){var V=[];x<=1?V.push({s:h,e:x}):h>=1?V.push({s:h-1,e:x-1}):(V.push({s:h,e:1}),V.push({s:0,e:x-1}));var $=[],et,Z=V.length,at;for(et=0;etM+S)){var pt,rt;at.s*R<=M?pt=0:pt=(at.s*R-M)/S,at.e*R>=M+S?rt=1:rt=(at.e*R-M)/S,$.push([pt,rt]);}return $.length||$.push([0,0]),$},ei.prototype.releasePathsData=function(h){var x,S=h.length;for(x=0;x1?x=1+M:this.s.v<0?x=0+M:x=this.s.v+M,this.e.v>1?S=1+M:this.e.v<0?S=0+M:S=this.e.v+M,x>S){var R=x;x=S,S=R;}x=Math.round(x*1e4)*1e-4,S=Math.round(S*1e4)*1e-4,this.sValue=x,this.eValue=S;}else x=this.sValue,S=this.eValue;var V,$,et=this.shapes.length,Z,at,pt,rt,J,W=0;if(S===x)for($=0;$=0;$-=1)if(j=this.shapes[$],j.shape._mdf){for(nt=j.localShapeCollection,nt.releaseShapes(),this.m===2&&et>1?(bt=this.calculateShapeEdges(x,S,j.totalShapeLength,yt,W),yt+=j.totalShapeLength):bt=[[ht,Q]],at=bt.length,Z=0;Z=1?X.push({s:j.totalShapeLength*(ht-1),e:j.totalShapeLength*(Q-1)}):(X.push({s:j.totalShapeLength*ht,e:j.totalShapeLength}),X.push({s:0,e:j.totalShapeLength*(Q-1)}));var kt=this.addShapes(j,X[0]);if(X[0].s!==X[0].e){if(X.length>1){var zt=j.shape.paths.shapes[j.shape.paths._length-1];if(zt.c){var $t=kt.pop();this.addPaths(kt,nt),kt=this.addShapes(j,X[1],$t);}else this.addPaths(kt,nt),kt=this.addShapes(j,X[1]);}this.addPaths(kt,nt);}}j.shape.paths=nt;}}},ei.prototype.addPaths=function(h,x){var S,M=h.length;for(S=0;Sx.e){S.c=!1;break}else x.s<=at&&x.e>=at+pt.addedLength?(this.addSegment(R[V].v[et-1],R[V].o[et-1],R[V].i[et],R[V].v[et],S,rt,nt),nt=!1):(W=Ei.getNewSegment(R[V].v[et-1],R[V].v[et],R[V].o[et-1],R[V].i[et],(x.s-at)/pt.addedLength,(x.e-at)/pt.addedLength,J[et-1]),this.addSegmentFromArray(W,S,rt,nt),nt=!1,S.c=!1),at+=pt.addedLength,rt+=1;if(R[V].c&&J.length){if(pt=J[et-1],at<=x.e){var ht=J[et-1].addedLength;x.s<=at&&x.e>=at+ht?(this.addSegment(R[V].v[et-1],R[V].o[et-1],R[V].i[0],R[V].v[0],S,rt,nt),nt=!1):(W=Ei.getNewSegment(R[V].v[et-1],R[V].v[0],R[V].o[et-1],R[V].i[0],(x.s-at)/ht,(x.e-at)/ht,J[et-1]),this.addSegmentFromArray(W,S,rt,nt),nt=!1,S.c=!1);}else S.c=!1;at+=pt.addedLength,rt+=1;}if(S._length&&(S.setXYAt(S.v[j][0],S.v[j][1],"i",j),S.setXYAt(S.v[S._length-1][0],S.v[S._length-1][1],"o",S._length-1)),at>x.e)break;V<$-1&&(S=Ne.newElement(),nt=!0,X.push(S),rt=0);}return X};function Ci(){}f([li],Ci),Ci.prototype.initModifierProperties=function(h,x){this.getValue=this.processKeys,this.amount=te.getProp(h,x.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length;},Ci.prototype.processPath=function(h,x){var S=x/100,M=[0,0],R=h._length,V=0;for(V=0;V=this.p.keyframes[this.p.keyframes.length-1].t?(pt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/at,0),rt=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/at,0)):(pt=this.p.pv,rt=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/at,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){pt=[],rt=[];var J=this.px,W=this.py;J._caching.lastFrame+J.offsetTime<=J.keyframes[0].t?(pt[0]=J.getValueAtTime((J.keyframes[0].t+.01)/at,0),pt[1]=W.getValueAtTime((W.keyframes[0].t+.01)/at,0),rt[0]=J.getValueAtTime(J.keyframes[0].t/at,0),rt[1]=W.getValueAtTime(W.keyframes[0].t/at,0)):J._caching.lastFrame+J.offsetTime>=J.keyframes[J.keyframes.length-1].t?(pt[0]=J.getValueAtTime(J.keyframes[J.keyframes.length-1].t/at,0),pt[1]=W.getValueAtTime(W.keyframes[W.keyframes.length-1].t/at,0),rt[0]=J.getValueAtTime((J.keyframes[J.keyframes.length-1].t-.01)/at,0),rt[1]=W.getValueAtTime((W.keyframes[W.keyframes.length-1].t-.01)/at,0)):(pt=[J.pv,W.pv],rt[0]=J.getValueAtTime((J._caching.lastFrame+J.offsetTime-.01)/at,J.offsetTime),rt[1]=W.getValueAtTime((W._caching.lastFrame+W.offsetTime-.01)/at,W.offsetTime));}else rt=h,pt=rt;this.v.rotate(-Math.atan2(pt[1]-rt[1],pt[0]-rt[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 M(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;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 V(Z){this._addDynamicProperty(Z),this.elem.addDynamicProperty(Z),this._isDirty=!0;}function $(Z,at,pt){if(this.elem=Z,this.frameId=-1,this.propType="transform",this.data=at,this.v=new qe,this.pre=new qe,this.appliedTransformations=0,this.initDynamicPropertyContainer(pt||Z),at.p&&at.p.s?(this.px=te.getProp(Z,at.p.x,0,0,this),this.py=te.getProp(Z,at.p.y,0,0,this),at.p.z&&(this.pz=te.getProp(Z,at.p.z,0,0,this))):this.p=te.getProp(Z,at.p||{k:[0,0,0]},1,0,this),at.rx){if(this.rx=te.getProp(Z,at.rx,0,it,this),this.ry=te.getProp(Z,at.ry,0,it,this),this.rz=te.getProp(Z,at.rz,0,it,this),at.or.k[0].ti){var rt,J=at.or.k.length;for(rt=0;rt0;)S-=1,this._elements.unshift(x[S]);this.dynamicProperties.length?this.k=!0:this.getValue(!0);},bi.prototype.resetElements=function(h){var x,S=h.length;for(x=0;x0?Math.floor(J):Math.ceil(J),j=this.pMatrix.props,nt=this.rMatrix.props,ht=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Q=0;if(J>0){for(;QX;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Q-=1;W&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-W,!0),Q-=W);}M=this.data.m===1?0:this._currentCopies-1,R=this.data.m===1?1:-1,V=this._currentCopies;for(var yt,bt;V;){if(x=this.elemsData[M].it,S=x[x.length-1].transform.mProps.v.props,bt=S.length,x[x.length-1].transform.mProps._mdf=!0,x[x.length-1].transform.op._mdf=!0,x[x.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(M/(this._currentCopies-1)),Q!==0){for((M!==0&&R===1||M!==this._currentCopies-1&&R===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(nt[0],nt[1],nt[2],nt[3],nt[4],nt[5],nt[6],nt[7],nt[8],nt[9],nt[10],nt[11],nt[12],nt[13],nt[14],nt[15]),this.matrix.transform(ht[0],ht[1],ht[2],ht[3],ht[4],ht[5],ht[6],ht[7],ht[8],ht[9],ht[10],ht[11],ht[12],ht[13],ht[14],ht[15]),this.matrix.transform(j[0],j[1],j[2],j[3],j[4],j[5],j[6],j[7],j[8],j[9],j[10],j[11],j[12],j[13],j[14],j[15]),yt=0;yt0&&M<1?[x]:[]:[x-M,x+M].filter(function(R){return R>0&&R<1})},je.prototype.split=function(h){if(h<=0)return [Ks(this.points[0]),this];if(h>=1)return [this,Ks(this.points[this.points.length-1])];var x=zi(this.points[0],this.points[1],h),S=zi(this.points[1],this.points[2],h),M=zi(this.points[2],this.points[3],h),R=zi(x,S,h),V=zi(S,M,h),$=zi(R,V,h);return [new je(this.points[0],x,R,$,!0),new je($,V,M,this.points[3],!0)]};function Rs(h,x){var S=h.points[0][x],M=h.points[h.points.length-1][x];if(S>M){var R=M;M=S,S=R;}for(var V=fa(3*h.a[x],2*h.b[x],h.c[x]),$=0;$0&&V[$]<1){var et=h.point(V[$])[x];etM&&(M=et);}return {min:S,max:M}}je.prototype.bounds=function(){return {x:Rs(this,0),y:Rs(this,1)}},je.prototype.boundingBox=function(){var h=this.bounds();return {left:h.x.min,right:h.x.max,top:h.y.min,bottom:h.y.max,width:h.x.max-h.x.min,height:h.y.max-h.y.min,cx:(h.x.max+h.x.min)/2,cy:(h.y.max+h.y.min)/2}};function ni(h,x,S){var M=h.boundingBox();return {cx:M.cx,cy:M.cy,width:M.width,height:M.height,bez:h,t:(x+S)/2,t1:x,t2:S}}function Qr(h){var x=h.bez.split(.5);return [ni(x[0],h.t1,h.t),ni(x[1],h.t,h.t2)]}function ps(h,x){return Math.abs(h.cx-x.cx)*2=V||h.width<=M&&h.height<=M&&x.width<=M&&x.height<=M){R.push([h.t,x.t]);return}var $=Qr(h),et=Qr(x);Ar($[0],et[0],S+1,M,R,V),Ar($[0],et[1],S+1,M,R,V),Ar($[1],et[0],S+1,M,R,V),Ar($[1],et[1],S+1,M,R,V);}}je.prototype.intersections=function(h,x,S){x===void 0&&(x=2),S===void 0&&(S=7);var M=[];return Ar(ni(this,0,1),ni(h,0,1),0,x,M,S),M},je.shapeSegment=function(h,x){var S=(x+1)%h.length();return new je(h.v[x],h.o[x],h.i[S],h.v[S],!0)},je.shapeSegmentInverted=function(h,x){var S=(x+1)%h.length();return new je(h.v[S],h.i[S],h.o[x],h.v[x],!0)};function xs(h,x){return [h[1]*x[2]-h[2]*x[1],h[2]*x[0]-h[0]*x[2],h[0]*x[1]-h[1]*x[0]]}function nr(h,x,S,M){var R=[h[0],h[1],1],V=[x[0],x[1],1],$=[S[0],S[1],1],et=[M[0],M[1],1],Z=xs(xs(R,V),xs($,et));return Rr(Z[2])?null:[Z[0]/Z[2],Z[1]/Z[2]]}function tr(h,x,S){return [h[0]+Math.cos(x)*S,h[1]-Math.sin(x)*S]}function $r(h,x){return Math.hypot(h[0]-x[0],h[1]-x[1])}function Hi(h,x){return ji(h[0],x[0])&&ji(h[1],x[1])}function or(){}f([li],or),or.prototype.initModifierProperties=function(h,x){this.getValue=this.processKeys,this.amplitude=te.getProp(h,x.s,0,null,this),this.frequency=te.getProp(h,x.r,0,null,this),this.pointsType=te.getProp(h,x.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0;};function Wr(h,x,S,M,R,V,$){var et=S-Math.PI/2,Z=S+Math.PI/2,at=x[0]+Math.cos(S)*M*R,pt=x[1]-Math.sin(S)*M*R;h.setTripleAt(at,pt,at+Math.cos(et)*V,pt-Math.sin(et)*V,at+Math.cos(Z)*$,pt-Math.sin(Z)*$,h.length());}function Ps(h,x){var S=[x[0]-h[0],x[1]-h[1]],M=-Math.PI*.5,R=[Math.cos(M)*S[0]-Math.sin(M)*S[1],Math.sin(M)*S[0]+Math.cos(M)*S[1]];return R}function ca(h,x){var S=x===0?h.length()-1:x-1,M=(x+1)%h.length(),R=h.v[S],V=h.v[M],$=Ps(R,V);return Math.atan2(0,1)-Math.atan2($[1],$[0])}function Ss(h,x,S,M,R,V,$){var et=ca(x,S),Z=x.v[S%x._length],at=x.v[S===0?x._length-1:S-1],pt=x.v[(S+1)%x._length],rt=V===2?Math.sqrt(Math.pow(Z[0]-at[0],2)+Math.pow(Z[1]-at[1],2)):0,J=V===2?Math.sqrt(Math.pow(Z[0]-pt[0],2)+Math.pow(Z[1]-pt[1],2)):0;Wr(h,x.v[S%x._length],et,$,M,J/((R+1)*2),rt/((R+1)*2));}function Va(h,x,S,M,R,V){for(var $=0;$1&&x.length>1&&(R=Cr(h[0],x[x.length-1]),R)?[[h[0].split(R[0])[0]],[x[x.length-1].split(R[1])[1]]]:[S,M]}function Os(h){for(var x,S=1;S1&&(x=cs(h[h.length-1],h[0]),h[h.length-1]=x[0],h[0]=x[1]),h}function Bs(h,x){var S=h.inflectionPoints(),M,R,V,$;if(S.length===0)return [vr(h,x)];if(S.length===1||ji(S[1],1))return V=h.split(S[0]),M=V[0],R=V[1],[vr(M,x),vr(R,x)];V=h.split(S[0]),M=V[0];var et=(S[1]-S[0])/(1-S[0]);return V=V[1].split(et),$=V[0],R=V[1],[vr(M,x),vr($,x),vr(R,x)]}function wr(){}f([li],wr),wr.prototype.initModifierProperties=function(h,x){this.getValue=this.processKeys,this.amount=te.getProp(h,x.a,0,null,this),this.miterLimit=te.getProp(h,x.ml,0,null,this),this.lineJoin=x.lj,this._isAnimated=this.amount.effectsSequence.length!==0;},wr.prototype.processPath=function(h,x,S,M){var R=Ne.newElement();R.c=h.c;var V=h.length();h.c||(V-=1);var $,et,Z,at=[];for($=0;$=0;$-=1)Z=je.shapeSegmentInverted(h,$),at.push(Bs(Z,x));at=Os(at);var pt=null,rt=null;for($=0;$0&&(Se=!1),Se){var Ee=g("style");Ee.setAttribute("f-forigin",gt[Ft].fOrigin),Ee.setAttribute("f-origin",gt[Ft].origin),Ee.setAttribute("f-family",gt[Ft].fFamily),Ee.type="text/css",Ee.innerText="@font-face {font-family: "+gt[Ft].fFamily+"; font-style: normal; src: url('"+gt[Ft].fPath+"');}",Tt.appendChild(Ee);}}else if(gt[Ft].fOrigin==="g"||gt[Ft].origin===1){for(_e=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ie=0;Ie<_e.length;Ie+=1)_e[Ie].href.indexOf(gt[Ft].fPath)!==-1&&(Se=!1);if(Se){var Ue=g("link");Ue.setAttribute("f-forigin",gt[Ft].fOrigin),Ue.setAttribute("f-origin",gt[Ft].origin),Ue.type="text/css",Ue.rel="stylesheet",Ue.href=gt[Ft].fPath,document.body.appendChild(Ue);}}else if(gt[Ft].fOrigin==="t"||gt[Ft].origin===2){for(_e=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ie=0;Ie<_e.length;Ie+=1)gt[Ft].fPath===_e[Ie].src&&(Se=!1);if(Se){var De=g("link");De.setAttribute("f-forigin",gt[Ft].fOrigin),De.setAttribute("f-origin",gt[Ft].origin),De.setAttribute("rel","stylesheet"),De.setAttribute("href",gt[Ft].fPath),Tt.appendChild(De);}}gt[Ft].helper=j(gt[Ft],Tt),gt[Ft].cache={},this.fonts.push(gt[Ft]);}Ut===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100);}function ht(Et){if(Et){this.chars||(this.chars=[]);var Tt,gt=Et.length,Ft,Zt=this.chars.length,Ut;for(Tt=0;Tt=55296&><=56319){var Ft=Et.charCodeAt(1);Ft>=56320&&Ft<=57343&&(Tt=(gt-55296)*1024+Ft-56320+65536);}return Tt}function zt(Et,Tt){var gt=Et.toString(16)+Tt.toString(16);return rt.indexOf(gt)!==-1}function $t(Et){return Et===Z}function Vt(Et){return Et===et}function Kt(Et){var Tt=kt(Et);return Tt>=at&&Tt<=pt}function St(Et){return Kt(Et.substr(0,2))&&Kt(Et.substr(2,2))}function wt(Et){return S.indexOf(Et)!==-1}function lt(Et,Tt){var gt=kt(Et.substr(Tt,2));if(gt!==M)return !1;var Ft=0;for(Tt+=2;Ft<5;){if(gt=kt(Et.substr(Tt,2)),gt$)return !1;Ft+=1,Tt+=2;}return kt(Et.substr(Tt,2))===R}function Mt(){this.isLoaded=!0;}var Lt=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);};Lt.isModifier=zt,Lt.isZeroWidthJoiner=$t,Lt.isFlagEmoji=St,Lt.isRegionalCode=Kt,Lt.isCombinedCharacter=wt,Lt.isRegionalFlag=lt,Lt.isVariationSelector=Vt,Lt.BLACK_FLAG_CODE_POINT=M;var Ct={addChars:ht,addFonts:nt,getCharData:Q,getFontByName:bt,measureText:yt,checkLoadedFonts:X,setIsLoaded:Mt};return Lt.prototype=Ct,Lt}();function Tr(h){this.animationData=h;}Tr.prototype.getProp=function(h){return this.animationData.slots&&this.animationData.slots[h.sid]?Object.assign(h,this.animationData.slots[h.sid].p):h};function br(h){return new Tr(h)}function hr(){}hr.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[];},addRenderableComponent:function(h){this.renderableComponents.indexOf(h)===-1&&this.renderableComponents.push(h);},removeRenderableComponent:function(h){this.renderableComponents.indexOf(h)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(h),1);},prepareRenderableFrame:function(h){this.checkLayerLimits(h);},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(h){this.data.ip-this.data.st<=h&&this.data.op-this.data.st>h?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide());},renderRenderable:function(){var h,x=this.renderableComponents.length;for(h=0;h.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0));},Pe.prototype.show=function(){},Pe.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1;},Pe.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1;},Pe.prototype.resume=function(){this._canPlay=!0;},Pe.prototype.setRate=function(h){this.audio.rate(h);},Pe.prototype.volume=function(h){this._volumeMultiplier=h,this._previousVolume=h*this._volume,this.audio.volume(this._previousVolume);},Pe.prototype.getBaseElement=function(){return null},Pe.prototype.destroy=function(){},Pe.prototype.sourceRectAtTime=function(){},Pe.prototype.initExpressions=function(){};function Ce(){}Ce.prototype.checkLayers=function(h){var x,S=this.layers.length,M;for(this.completeLayers=!0,x=S-1;x>=0;x-=1)this.elements[x]||(M=this.layers[x],M.ip-M.st<=h-this.layers[x].st&&M.op-M.st>h-this.layers[x].st&&this.buildItem(x)),this.completeLayers=this.elements[x]?this.completeLayers:!1;this.checkPendingElements();},Ce.prototype.createItem=function(h){switch(h.ty){case 2:return this.createImage(h);case 0:return this.createComp(h);case 1:return this.createSolid(h);case 3:return this.createNull(h);case 4:return this.createShape(h);case 5:return this.createText(h);case 6:return this.createAudio(h);case 13:return this.createCamera(h);case 15:return this.createFootage(h);default:return this.createNull(h)}},Ce.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Ce.prototype.createAudio=function(h){return new Pe(h,this.globalData,this)},Ce.prototype.createFootage=function(h){return new Ve(h,this.globalData,this)},Ce.prototype.buildAllItems=function(){var h,x=this.layers.length;for(h=0;h0&&(this.maskElement.setAttribute("id",J),this.element.maskedElement.setAttribute(Q,"url("+d()+"#"+J+")"),M.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this);}Vi.prototype.getMaskProperty=function(h){return this.viewData[h].prop},Vi.prototype.renderFrame=function(h){var x=this.element.finalTransform.mat,S,M=this.masksProperties.length;for(S=0;S1&&(M+=" C"+x.o[R-1][0]+","+x.o[R-1][1]+" "+x.i[0][0]+","+x.i[0][1]+" "+x.v[0][0]+","+x.v[0][1]),S.lastPath!==M){var $="";S.elem&&(x.c&&($=h.inv?this.solidPath+M:M),S.elem.setAttribute("d",$)),S.lastPath=M;}},Vi.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null;};var wi=function(){var h={};h.createFilter=x,h.createAlphaToLuminanceFilter=S;function x(M,R){var V=Xt("filter");return V.setAttribute("id",M),R!==!0&&(V.setAttribute("filterUnits","objectBoundingBox"),V.setAttribute("x","0%"),V.setAttribute("y","0%"),V.setAttribute("width","100%"),V.setAttribute("height","100%")),V}function S(){var M=Xt("feColorMatrix");return M.setAttribute("type","matrix"),M.setAttribute("color-interpolation-filters","sRGB"),M.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),M}return h}(),Zi=function(){var h={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return (/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))&&(h.maskType=!1),/firefox/i.test(navigator.userAgent)&&(h.svgLumaHidden=!1),h}(),Mr={},da="filter_result_";function ks(h){var x,S="SourceGraphic",M=h.data.ef?h.data.ef.length:0,R=k(),V=wi.createFilter(R,!0),$=0;this.filters=[];var et;for(x=0;x=0&&(S=this.shapeModifiers[h].processShapes(this._isFirstFrame),!S);h-=1);}},searchProcessedElement:function(h){for(var x=this.processedElements,S=0,M=x.length;S.01)return !1;S+=1;}return !0},Or.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return !1;if(this.data.k.k[0].s)for(var h=0,x=this.data.k.k.length;h0;)ht=J.transformers[Kt].mProps._mdf||ht,Vt-=1,Kt-=1;if(ht)for(Vt=kt-J.styles[yt].lvl,Kt=J.transformers.length-1;Vt>0;)$t.multiply(J.transformers[Kt].mProps.v),Vt-=1,Kt-=1;}else $t=h;if(zt=J.sh.paths,j=zt._length,ht){for(nt="",X=0;X=1?Mt=.99:Mt<=-1&&(Mt=-.99);var Lt=wt*Mt,Ct=Math.cos(lt+J.a.v)*Lt+nt[0],Et=Math.sin(lt+J.a.v)*Lt+nt[1];X.setAttribute("fx",Ct),X.setAttribute("fy",Et),j&&!J.g._collapsable&&(J.of.setAttribute("fx",Ct),J.of.setAttribute("fy",Et));}}}function pt(rt,J,W){var X=J.style,j=J.d;j&&(j._mdf||W)&&j.dashStr&&(X.pElem.setAttribute("stroke-dasharray",j.dashStr),X.pElem.setAttribute("stroke-dashoffset",j.dashoffset[0])),J.c&&(J.c._mdf||W)&&X.pElem.setAttribute("stroke","rgb("+F(J.c.v[0])+","+F(J.c.v[1])+","+F(J.c.v[2])+")"),(J.o._mdf||W)&&X.pElem.setAttribute("stroke-opacity",J.o.v),(J.w._mdf||W)&&(X.pElem.setAttribute("stroke-width",J.w.v),X.msElem&&X.msElem.setAttribute("stroke-width",J.w.v));}return S}();function $e(h,x,S){this.shapes=[],this.shapesData=h.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(h,x,S),this.prevViewData=[];}f([Fe,Ge,Jr,es,Ui,Re,er],$e),$e.prototype.initSecondaryElement=function(){},$e.prototype.identityMatrix=new qe,$e.prototype.buildExpressionInterface=function(){},$e.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes();},$e.prototype.filterUniqueShapes=function(){var h,x=this.shapes.length,S,M,R=this.stylesList.length,V,$=[],et=!1;for(M=0;M1&&et&&this.setShapesAsAnimated($);}},$e.prototype.setShapesAsAnimated=function(h){var x,S=h.length;for(x=0;x=0;Z-=1){if(nt=this.searchProcessedElement(h[Z]),nt?x[Z]=S[nt-1]:h[Z]._render=$,h[Z].ty==="fl"||h[Z].ty==="st"||h[Z].ty==="gf"||h[Z].ty==="gs"||h[Z].ty==="no")nt?x[Z].style.closed=!1:x[Z]=this.createStyleElement(h[Z],R),h[Z]._render&&x[Z].style.pElem.parentNode!==M&&M.appendChild(x[Z].style.pElem),J.push(x[Z].style);else if(h[Z].ty==="gr"){if(!nt)x[Z]=this.createGroupElement(h[Z]);else for(rt=x[Z].it.length,pt=0;pt1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Oe.prototype.addEffect=function(h){this.effectsSequence.push(h),this.elem.addDynamicProperty(this);},Oe.prototype.getValue=function(h){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!h)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var x=this.currentData,S=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var M,R=this.effectsSequence.length,V=h||this.data.d.k[this.keysIndex].s;for(M=0;Mx);)S+=1;return this.keysIndex!==S&&(this.keysIndex=S),this.data.d.k[this.keysIndex].s},Oe.prototype.buildFinalText=function(h){for(var x=[],S=0,M=h.length,R,V,$=!1,et=!1,Z="";S=55296&&R<=56319?Li.isRegionalFlag(h,S)?Z=h.substr(S,14):(V=h.charCodeAt(S+1),V>=56320&&V<=57343&&(Li.isModifier(R,V)?(Z=h.substr(S,2),$=!0):Li.isFlagEmoji(h.substr(S,4))?Z=h.substr(S,4):Z=h.substr(S,2))):R>56319?(V=h.charCodeAt(S+1),Li.isVariationSelector(R)&&($=!0)):Li.isZeroWidthJoiner(R)&&($=!0,et=!0),$?(x[x.length-1]+=Z,$=!1):x.push(Z),S+=Z.length;return x},Oe.prototype.completeTextData=function(h){h.__complete=!0;var x=this.elem.globalData.fontManager,S=this.data,M=[],R,V,$,et=0,Z,at=S.m.g,pt=0,rt=0,J=0,W=[],X=0,j=0,nt,ht,Q=x.getFontByName(h.f),yt,bt=0,kt=us(Q);h.fWeight=kt.weight,h.fStyle=kt.style,h.finalSize=h.s,h.finalText=this.buildFinalText(h.t),V=h.finalText.length,h.finalLineHeight=h.lh;var zt=h.tr/1e3*h.finalSize,$t;if(h.sz)for(var Vt=!0,Kt=h.sz[0],St=h.sz[1],wt,lt;Vt;){lt=this.buildFinalText(h.t),wt=0,X=0,V=lt.length,zt=h.tr/1e3*h.finalSize;var Mt=-1;for(R=0;RKt&<[R]!==" "?(Mt===-1?V+=1:R=Mt,wt+=h.finalLineHeight||h.finalSize*1.2,lt.splice(R,Mt===R?1:0,"\r"),Mt=-1,X=0):(X+=bt,X+=zt);wt+=Q.ascent*h.finalSize/100,this.canResize&&h.finalSize>this.minimumFontSize&&Stj?X:j,X=-2*zt,Z="",$=!0,J+=1):Z=Ct,x.chars?(yt=x.getCharData(Ct,Q.fStyle,x.getFontByName(h.f).fFamily),bt=$?0:yt.w*h.finalSize/100):bt=x.measureText(Z,h.f,h.finalSize),Ct===" "?Lt+=bt+zt:(X+=bt+zt+Lt,Lt=0),M.push({l:bt,an:bt,add:pt,n:$,anIndexes:[],val:Z,line:J,animatorJustifyOffset:0}),at==2){if(pt+=bt,Z===""||Z===" "||R===V-1){for((Z===""||Z===" ")&&(pt-=bt);rt<=R;)M[rt].an=pt,M[rt].ind=et,M[rt].extra=bt,rt+=1;et+=1,pt=0;}}else if(at==3){if(pt+=bt,Z===""||R===V-1){for(Z===""&&(pt-=bt);rt<=R;)M[rt].an=pt,M[rt].ind=et,M[rt].extra=bt,rt+=1;pt=0,et+=1;}}else M[et].ind=et,M[et].extra=0,et+=1;if(h.l=M,j=X>j?X:j,W.push(X),h.sz)h.boxWidth=h.sz[0],h.justifyOffset=0;else switch(h.boxWidth=j,h.j){case 1:h.justifyOffset=-h.boxWidth;break;case 2:h.justifyOffset=-h.boxWidth/2;break;default:h.justifyOffset=0;}h.lineWidths=W;var Et=S.a,Tt,gt;ht=Et.length;var Ft,Zt,Ut=[];for(nt=0;nt0?$=this.ne.v/100:et=-this.ne.v/100,this.xe.v>0?Z=1-this.xe.v/100:at=1+this.xe.v/100;var pt=oe.getBezierEasing($,et,Z,at).get,rt=0,J=this.finalS,W=this.finalE,X=this.data.sh;if(X===2)W===J?rt=V>=W?1:0:rt=h(0,x(.5/(W-J)+(V-J)/(W-J),1)),rt=pt(rt);else if(X===3)W===J?rt=V>=W?0:1:rt=1-h(0,x(.5/(W-J)+(V-J)/(W-J),1)),rt=pt(rt);else if(X===4)W===J?rt=0:(rt=h(0,x(.5/(W-J)+(V-J)/(W-J),1)),rt<.5?rt*=2:rt=1-2*(rt-.5)),rt=pt(rt);else if(X===5){if(W===J)rt=0;else {var j=W-J;V=x(h(0,V+.5-J),W-J);var nt=-j/2+V,ht=j/2;rt=Math.sqrt(1-nt*nt/(ht*ht));}rt=pt(rt);}else X===6?(W===J?rt=0:(V=x(h(0,V+.5-J),W-J),rt=(1+Math.cos(Math.PI+Math.PI*2*V/(W-J)))/2),rt=pt(rt)):(V>=S(J)&&(V-J<0?rt=h(0,x(x(W,1)-(J-V),1)):rt=h(0,x(W-V,1))),rt=pt(rt));if(this.sm.v!==100){var Q=this.sm.v*.01;Q===0&&(Q=1e-8);var yt=.5-Q*.5;rt1&&(rt=1));}return rt*this.a.v},getValue:function(V){this.iterateDynamicProperties(),this._mdf=V||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,V&&this.data.r===2&&(this.e.v=this._currentTextLength);var $=this.data.r===2?1:100/this.data.totalChars,et=this.o.v/$,Z=this.s.v/$+et,at=this.e.v/$+et;if(Z>at){var pt=Z;Z=at,at=pt;}this.finalS=Z,this.finalE=at;}},f([Ye],M);function R(V,$,et){return new M(V,$)}return {getTextSelectorProp:R}}();function ir(h,x,S){var M={propType:!1},R=te.getProp,V=x.a;this.a={r:V.r?R(h,V.r,0,it,S):M,rx:V.rx?R(h,V.rx,0,it,S):M,ry:V.ry?R(h,V.ry,0,it,S):M,sk:V.sk?R(h,V.sk,0,it,S):M,sa:V.sa?R(h,V.sa,0,it,S):M,s:V.s?R(h,V.s,1,.01,S):M,a:V.a?R(h,V.a,1,0,S):M,o:V.o?R(h,V.o,0,.01,S):M,p:V.p?R(h,V.p,1,0,S):M,sw:V.sw?R(h,V.sw,0,0,S):M,sc:V.sc?R(h,V.sc,1,0,S):M,fc:V.fc?R(h,V.fc,1,0,S):M,fh:V.fh?R(h,V.fh,0,0,S):M,fs:V.fs?R(h,V.fs,0,.01,S):M,fb:V.fb?R(h,V.fb,0,.01,S):M,t:V.t?R(h,V.t,0,0,S):M},this.s=Na.getTextSelectorProp(h,x.s,S),this.s.t=x.s.t;}function _r(h,x,S){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=h,this._renderType=x,this._elem=S,this._animatorsData=m(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(S);}_r.prototype.searchProperties=function(){var h,x=this._textData.a.length,S,M=te.getProp;for(h=0;h=X+ws||!kt?(Kt=(X+ws-nt)/j.partialLength,Ie=bt.point[0]+(j.point[0]-bt.point[0])*Kt,Ee=bt.point[1]+(j.point[1]-bt.point[1])*Kt,V.translate(-S[0]*J[pt].an*.005,-(S[1]*Lt)*.01),ht=!1):kt&&(nt+=j.partialLength,Q+=1,Q>=kt.length&&(Q=0,yt+=1,zt[yt]?kt=zt[yt].points:wt.v.c?(Q=0,yt=0,kt=zt[yt].points):(nt-=j.partialLength,kt=null)),kt&&(bt=j,j=kt[Q],$t=j.partialLength));_e=J[pt].an/2-J[pt].add,V.translate(-_e,0,0);}else _e=J[pt].an/2-J[pt].add,V.translate(-_e,0,0),V.translate(-S[0]*J[pt].an*.005,-S[1]*Lt*.01,0);for(gt=0;gth?this.textSpans[h].span:Xt(et?"g":"text"),yt<=h){if(Z.setAttribute("stroke-linecap","butt"),Z.setAttribute("stroke-linejoin","round"),Z.setAttribute("stroke-miterlimit","4"),this.textSpans[h].span=Z,et){var kt=Xt("g");Z.appendChild(kt),this.textSpans[h].childSpan=kt;}this.textSpans[h].span=Z,this.layerElement.appendChild(Z);}Z.style.display="inherit";}if(at.reset(),rt&&($[h].n&&(J=-j,W+=S.yOffset,W+=X?1:0,X=!1),this.applyTextPropertiesToMatrix(S,at,$[h].line,J,W),J+=$[h].l||0,J+=j),et){bt=this.globalData.fontManager.getCharData(S.finalText[h],M.fStyle,this.globalData.fontManager.getFontByName(S.f).fFamily);var zt;if(bt.t===1)zt=new mi(bt.data,this.globalData,this);else {var $t=Cs;bt.data&&bt.data.shapes&&($t=this.buildShapeData(bt.data,S.finalSize)),zt=new $e($t,this.globalData,this);}if(this.textSpans[h].glyph){var Vt=this.textSpans[h].glyph;this.textSpans[h].childSpan.removeChild(Vt.layerElement),Vt.destroy();}this.textSpans[h].glyph=zt,zt._debug=!0,zt.prepareFrame(0),zt.renderFrame(),this.textSpans[h].childSpan.appendChild(zt.layerElement),bt.t===1&&this.textSpans[h].childSpan.setAttribute("transform","scale("+S.finalSize/100+","+S.finalSize/100+")");}else rt&&Z.setAttribute("transform","translate("+at.props[12]+","+at.props[13]+")"),Z.textContent=$[h].val,Z.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}rt&&Z&&Z.setAttribute("d",pt);}for(;h=0;x-=1)(this.completeLayers||this.elements[x])&&this.elements[x].prepareFrame(h-this.layers[x].st);if(this.globalData._mdf)for(x=0;x=0;S-=1)(this.completeLayers||this.elements[S])&&(this.elements[S].prepareFrame(this.renderedFrame-this.layers[S].st),this.elements[S]._mdf&&(this._mdf=!0));}},_i.prototype.renderInnerContent=function(){var h,x=this.layers.length;for(h=0;h=0;S-=1)h.finalTransform.multiply(h.transforms[S].transform.mProps.v);h._mdf=R;},processSequences:function(h){var x,S=this.sequenceList.length;for(x=0;x=1){this.buffers=[];var h=this.globalData.canvasContext,x=Y.createCanvas(h.canvas.width,h.canvas.height);this.buffers.push(x);var S=Y.createCanvas(h.canvas.width,h.canvas.height);this.buffers.push(S),this.data.tt>=3&&!document._isProxy&&Y.loadLumaCanvas();}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new st(this),this.searchEffectTransforms();},createContent:function(){},setBlendMode:function(){var h=this.globalData;if(h.blendMode!==this.data.bm){h.blendMode=this.data.bm;var x=ts(this.data.bm);h.canvasContext.globalCompositeOperation=x;}},createRenderableComponents:function(){this.maskManager=new _t(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(pi.TRANSFORM_EFFECT);},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0);},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0);},clearCanvas:function(h){h.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy);},prepareLayer:function(){if(this.data.tt>=1){var h=this.buffers[0],x=h.getContext("2d");this.clearCanvas(x),x.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);}},exitLayer:function(){if(this.data.tt>=1){var h=this.buffers[1],x=h.getContext("2d");this.clearCanvas(x),x.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var S=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(S.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var M=Y.getLumaCanvas(this.canvasContext.canvas),R=M.getContext("2d");R.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(M,0,0);}this.canvasContext.globalCompositeOperation=xt[this.data.tt],this.canvasContext.drawImage(h,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over";}},renderFrame:function(h){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!h)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var x=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(x),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(x),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1);}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy();},mHelper:new qe},Dt.prototype.hide=Dt.prototype.hideElement,Dt.prototype.show=Dt.prototype.showElement;function jt(h,x,S,M){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var R=4;x.ty==="rc"?R=5:x.ty==="el"?R=6:x.ty==="sr"&&(R=7),this.sh=gr.getShapeProp(h,x,R,h);var V,$=S.length,et;for(V=0;V<$;V+=1)S[V].closed||(et={transforms:M.addTransformSequence(S[V].transforms),trNodes:[]},this.styledShapes.push(et),S[V].elements.push(et));}jt.prototype.setAsAnimated=Ns.prototype.setAsAnimated;function Rt(h,x,S){this.shapes=[],this.shapesData=h.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new A,this.initElement(h,x,S);}f([Fe,Ge,Dt,es,Ui,Re,hr],Rt),Rt.prototype.initElement=er.prototype.initElement,Rt.prototype.transformHelper={opacity:1,_opMdf:!1},Rt.prototype.dashResetter=[],Rt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]);},Rt.prototype.createStyleElement=function(h,x){var S={data:h,type:h.ty,preTransforms:this.transformsManager.addTransformSequence(x),transforms:[],elements:[],closed:h.hd===!0},M={};if(h.ty==="fl"||h.ty==="st"?(M.c=te.getProp(this,h.c,1,255,this),M.c.k||(S.co="rgb("+F(M.c.v[0])+","+F(M.c.v[1])+","+F(M.c.v[2])+")")):(h.ty==="gf"||h.ty==="gs")&&(M.s=te.getProp(this,h.s,1,null,this),M.e=te.getProp(this,h.e,1,null,this),M.h=te.getProp(this,h.h||{k:0},0,.01,this),M.a=te.getProp(this,h.a||{k:0},0,it,this),M.g=new Or(this,h.g,this)),M.o=te.getProp(this,h.o,0,.01,this),h.ty==="st"||h.ty==="gs"){if(S.lc=ma[h.lc||2],S.lj=Qs[h.lj||2],h.lj==1&&(S.ml=h.ml),M.w=te.getProp(this,h.w,0,null,this),M.w.k||(S.wi=M.w.v),h.d){var R=new is(this,h.d,"canvas",this);M.d=R,M.d.k||(S.da=M.d.dashArray,S.do=M.d.dashoffset[0]);}}else S.r=h.r===2?"evenodd":"nonzero";return this.stylesList.push(S),M.style=S,M},Rt.prototype.createGroupElement=function(){var h={it:[],prevViewData:[]};return h},Rt.prototype.createTransformElement=function(h){var x={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:te.getProp(this,h.o,0,.01,this),mProps:Gi.getTransformProperty(this,h,this)}};return x},Rt.prototype.createShapeElement=function(h){var x=new jt(this,h,this.stylesList,this.transformsManager);return this.shapes.push(x),this.addShapeToModifiers(x),x},Rt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var h,x=this.itemsData.length;for(h=0;h=0;V-=1){if(rt=this.searchProcessedElement(h[V]),rt?x[V]=S[rt-1]:h[V]._shouldRender=M,h[V].ty==="fl"||h[V].ty==="st"||h[V].ty==="gf"||h[V].ty==="gs")rt?x[V].style.closed=!1:x[V]=this.createStyleElement(h[V],X),at.push(x[V].style);else if(h[V].ty==="gr"){if(!rt)x[V]=this.createGroupElement(h[V]);else for(Z=x[V].it.length,et=0;et=0;R-=1)x[R].ty==="tr"?($=S[R].transform,this.renderShapeTransform(h,$)):x[R].ty==="sh"||x[R].ty==="el"||x[R].ty==="rc"||x[R].ty==="sr"?this.renderPath(x[R],S[R]):x[R].ty==="fl"?this.renderFill(x[R],S[R],$):x[R].ty==="st"?this.renderStroke(x[R],S[R],$):x[R].ty==="gf"||x[R].ty==="gs"?this.renderGradientFill(x[R],S[R],$):x[R].ty==="gr"?this.renderShape($,x[R].it,S[R].it):x[R].ty;M&&this.drawLayer();},Rt.prototype.renderStyledShape=function(h,x){if(this._isFirstFrame||x._mdf||h.transforms._mdf){var S=h.trNodes,M=x.paths,R,V,$,et=M._length;S.length=0;var Z=h.transforms.finalTransform;for($=0;$=1?pt=.99:pt<=-1&&(pt=-.99);var rt=Z*pt,J=Math.cos(at+x.a.v)*rt+$[0],W=Math.sin(at+x.a.v)*rt+$[1];R=V.createRadialGradient(J,W,0,$[0],$[1],Z);}var X,j=h.g.p,nt=x.g.c,ht=1;for(X=0;XV&&Z==="xMidYMid slice"||RR&&et==="meet"||VR&&et==="slice")?this.transformCanvas.tx=(S-this.transformCanvas.w*(M/this.transformCanvas.h))/2*this.renderConfig.dpr:at==="xMax"&&(VR&&et==="slice")?this.transformCanvas.tx=(S-this.transformCanvas.w*(M/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,pt==="YMid"&&(V>R&&et==="meet"||VR&&et==="meet"||V=0;h-=1)this.elements[h]&&this.elements[h].destroy&&this.elements[h].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0;},C.prototype.renderFrame=function(h,x){if(!(this.renderedFrame===h&&this.renderConfig.clearCanvas===!0&&!x||this.destroyed||h===-1)){this.renderedFrame=h,this.globalData.frameNum=h-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||x,this.globalData.projectInterface.currentFrame=h;var S,M=this.layers.length;for(this.completeLayers||this.checkLayers(h),S=M-1;S>=0;S-=1)(this.completeLayers||this.elements[S])&&this.elements[S].prepareFrame(h-this.layers[S].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),S=M-1;S>=0;S-=1)(this.completeLayers||this.elements[S])&&this.elements[S].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore();}}},C.prototype.buildItem=function(h){var x=this.elements;if(!(x[h]||this.layers[h].ty===99)){var S=this.createItem(this.layers[h],this,this.globalData);x[h]=S,S.initExpressions();}},C.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var h=this.pendingElements.pop();h.checkParenting();}},C.prototype.hide=function(){this.animationItem.container.style.display="none";},C.prototype.show=function(){this.animationItem.container.style.display="block";};function T(){this.opacity=-1,this.transform=v("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random();}function z(){this.stack=[],this.cArrPos=0,this.cTr=new qe;var h,x=15;for(h=0;h=0;x-=1)(this.completeLayers||this.elements[x])&&this.elements[x].renderFrame();},H.prototype.destroy=function(){var h,x=this.layers.length;for(h=x-1;h>=0;h-=1)this.elements[h]&&this.elements[h].destroy();this.layers=null,this.elements=null;},H.prototype.createComp=function(h){return new H(h,this.globalData,this)};function N(h,x){this.animationItem=h,this.renderConfig={clearCanvas:x&&x.clearCanvas!==void 0?x.clearCanvas:!0,context:x&&x.context||null,progressiveLoad:x&&x.progressiveLoad||!1,preserveAspectRatio:x&&x.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:x&&x.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:x&&x.contentVisibility||"visible",className:x&&x.className||"",id:x&&x.id||"",runExpressions:!x||x.runExpressions===void 0||x.runExpressions},this.renderConfig.dpr=x&&x.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=x&&x.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new z,this.elements=[],this.pendingElements=[],this.transformMat=new qe,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData));}return f([C],N),N.prototype.createComp=function(h){return new H(h,this.globalData,this)},Te("canvas",N),Ii.registerModifier("tm",ei),Ii.registerModifier("pb",Ci),Ii.registerModifier("rp",bi),Ii.registerModifier("rd",ar),Ii.registerModifier("zz",or),Ii.registerModifier("op",wr),ge});}),sg=rg();});var Fc={};Ts(Fc,{default:()=>ng});var ag,ng,Ic=cr(()=>{ns();ag=ue((exports,module)=>{typeof navigator<"u"&&function(t,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.lottie=e());}(exports,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t;},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t;},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,r=t.length,s;for(i=0;i1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}(function(){var t=[],e,i;for(e=0;e<256;e+=1)i=e.toString(16),t[e]=i.length===1?"0"+i:i;return function(r,s,a){return r<0&&(r=0),s<0&&(s=0),a<0&&(a=0),"#"+t[r]+t[s]+t[a]}})();var setSubframeEnabled=function(t){subframeEnabled=!!t;},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t;},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t;},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t;},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t;};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(e){return typeof e}:_typeof$5=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(t)}var dataManager=function(){var t=1,e=[],i,r,s={onmessage:function(){},postMessage:function(l){i({data:l});}},a={postMessage:function(l){s.onmessage({data:l});}};function n(l){if(window.Worker&&window.Blob&&getWebWorker()){var b=new Blob(["var _workerSelf = self; self.onmessage = ",l.toString()],{type:"text/javascript"}),v=URL.createObjectURL(b);return new Worker(v)}return i=l,s}function p(){r||(r=n(function(l){function b(){function m(tt,vt){var D,O,k=tt.length,L,K,U,Ht;for(O=0;O=0;vt-=1)if(tt[vt].ty==="sh")if(tt[vt].ks.k.i)P(tt[vt].ks.k);else for(k=tt[vt].ks.k.length,O=0;OD[0]?!0:D[0]>tt[0]?!1:tt[1]>D[1]?!0:D[1]>tt[1]?!1:tt[2]>D[2]?!0:D[2]>tt[2]?!1:null}var F=function(){var tt=[4,4,14];function vt(O){var k=O.t.d;O.t.d={k:[{s:k,t:0}]};}function D(O){var k,L=O.length;for(k=0;k=0;k-=1)if(O[k].ty==="sh")if(O[k].ks.k.i)O[k].ks.k.c=O[k].closed;else for(U=O[k].ks.k.length,K=0;K500)&&(this._imageLoaded(),clearInterval(y)),u+=1;}.bind(this),50);}function a(c){var u=r(c,this.assetsPath,this.path),y=createNS("image");isSafari?this.testImageLoaded(y):y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",function(){P.img=t,this._imageLoaded();}.bind(this),!1),y.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var P={img:y,assetData:c};return P}function n(c){var u=r(c,this.assetsPath,this.path),y=createTag("img");y.crossOrigin="anonymous",y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",function(){P.img=t,this._imageLoaded();}.bind(this),!1),y.src=u;var P={img:y,assetData:c};return P}function p(c){var u={assetData:c},y=r(c,this.assetsPath,this.path);return dataManager.loadData(y,function(P){u.img=P,this._footageLoaded();}.bind(this),function(){u.img={},this._footageLoaded();}.bind(this)),u}function o(c,u){this.imagesLoadedCb=u;var y,P=c.length;for(y=0;ythis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e=this.animationData.layers,i,r=e.length,s=t.layers,a,n=s.length;for(a=0;athis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame");},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame);}catch(t){this.triggerRenderFrameError(t);}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")));},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause());},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause());},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0));},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):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):e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,e=0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"));}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]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");},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0);},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),_typeof$4(t[0])==="object"){var i,r=t.length;for(i=0;i=0;O-=1)e[O].animation.destroy(D);}function G(D,O,k){var L=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),K,U=L.length;for(K=0;K0?P=G:y=G;while(Math.abs(B)>a&&++it=s?E(u,ft,y,P):ct===0?ft:m(u,F,F+o,y,P)}},t}(),pooling=function(){function t(e){return e.concat(createSizedArray(e.length))}return {double:t}}(),poolFactory=function(){return function(t,e,i){var r=0,s=t,a=createSizedArray(s),n={newElement:p,release:o};function p(){var d;return r?(r-=1,d=a[r]):d=e(),d}function o(d){r===s&&(a=pooling.double(a),s*=2),i&&i(d),a[r]=d,r+=1;}return n}}(),bezierLengthPool=function(){function t(){return {addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,t)}(),segmentsLengthPool=function(){function t(){return {lengths:[],totalLength:0}}function e(i){var r,s=i.lengths.length;for(r=0;r-.001&&u<.001}function i(l,b,v,m,E,c,u,y,P){if(v===0&&c===0&&P===0)return e(l,b,m,E,u,y);var w=t.sqrt(t.pow(m-l,2)+t.pow(E-b,2)+t.pow(c-v,2)),F=t.sqrt(t.pow(u-l,2)+t.pow(y-b,2)+t.pow(P-v,2)),B=t.sqrt(t.pow(u-m,2)+t.pow(y-E,2)+t.pow(P-c,2)),G;return w>F?w>B?G=w-F-B:G=B-F-w:B>F?G=B-F-w:G=F-w-B,G>-1e-4&&G<1e-4}var r=function(){return function(l,b,v,m){var E=getDefaultCurveSegments(),c,u,y,P,w,F=0,B,G=[],it=[],ft=bezierLengthPool.newElement();for(y=v.length,c=0;cu?-1:1,w=!0;w;)if(m[c]<=u&&m[c+1]>u?(y=(u-m[c])/(m[c+1]-m[c]),w=!1):c+=P,c<0||c>=E-1){if(c===E-1)return v[c];w=!1;}return v[c]+(v[c+1]-v[c])*y}function d(l,b,v,m,E,c){var u=o(E,c),y=1-u,P=t.round((y*y*y*l[0]+(u*y*y+y*u*y+y*y*u)*v[0]+(u*u*y+y*u*u+u*y*u)*m[0]+u*u*u*b[0])*1e3)/1e3,w=t.round((y*y*y*l[1]+(u*y*y+y*u*y+y*y*u)*v[1]+(u*u*y+y*u*u+u*y*u)*m[1]+u*u*u*b[1])*1e3)/1e3;return [P,w]}var g=createTypedArray("float32",8);function f(l,b,v,m,E,c,u){E<0?E=0:E>1&&(E=1);var y=o(E,u);c=c>1?1:c;var P=o(c,u),w,F=l.length,B=1-y,G=1-P,it=B*B*B,ft=y*B*B*3,ct=y*y*B*3,dt=y*y*y,Pt=B*B*G,tt=y*B*G+B*y*G+B*B*P,vt=y*y*G+B*y*P+y*B*P,D=y*y*P,O=B*G*G,k=y*G*G+B*P*G+B*G*P,L=y*P*G+B*P*P+y*G*P,K=y*P*P,U=G*G*G,Ht=P*G*G+G*P*G+G*G*P,It=P*P*G+G*P*P+P*G*P,Gt=P*P*P;for(w=0;w=d.t-i){o.h&&(o=d),s=0;break}if(d.t-i>t){s=a;break}a=c||t=c?P.points.length-1:0;for(l=P.points[w].point.length,f=0;f=G&&F=c)r[0]=y[0],r[1]=y[1],r[2]=y[2];else if(t<=u)r[0]=o.s[0],r[1]=o.s[1],r[2]=o.s[2];else {var tt=createQuaternion(o.s),vt=createQuaternion(y),D=(t-u)/(c-u);quaternionToEuler(r,slerp(tt,vt,D));}else for(a=0;a=c?b=1:t1e-6?(l=Math.acos(b),v=Math.sin(l),m=Math.sin((1-i)*l)/v,E=Math.sin(i*l)/v):(m=1-i,E=i),r[0]=m*s+E*o,r[1]=m*a+E*d,r[2]=m*n+E*g,r[3]=m*p+E*f,r}function quaternionToEuler(t,e){var i=e[0],r=e[1],s=e[2],a=e[3],n=Math.atan2(2*r*a-2*i*s,1-2*r*r-2*s*s),p=Math.asin(2*i*r+2*s*a),o=Math.atan2(2*i*a-2*r*s,1-2*i*i-2*s*s);t[0]=n/degToRads,t[1]=p/degToRads,t[2]=o/degToRads;}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,r=t[2]*degToRads,s=Math.cos(e/2),a=Math.cos(i/2),n=Math.cos(r/2),p=Math.sin(e/2),o=Math.sin(i/2),d=Math.sin(r/2),g=s*a*n-p*o*d,f=p*o*n+s*a*d,l=p*a*n+s*o*d,b=s*o*n-p*a*d;return [f,l,b,g]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(t,this._caching);this.pv=r;}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if(this.propType==="unidimensional")e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,r=this.v.length;i1e-5&&(this.v[i]=e,this._mdf=!0),i+=1;}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[r]||a[r]&&!s)&&(a[r]=pointPool.newElement()),a[r][0]=t,a[r][1]=e;},ShapePath.prototype.setTripleAt=function(t,e,i,r,s,a,n,p){this.setXYAt(t,e,"v",n,p),this.setXYAt(i,r,"o",n,p),this.setXYAt(s,a,"i",n,p);},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,r=this.i,s=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),s=1);var a=this._length-1,n=this._length,p;for(p=s;p=tt[tt.length-1].t-this.offsetTime)w=tt[tt.length-1].s?tt[tt.length-1].s[0]:tt[tt.length-2].e[0],B=!0;else {for(var vt=P,D=tt.length-1,O=!0,k,L,K;O&&(k=tt[vt],L=tt[vt+1],!(L.t-this.offsetTime>c));)vt=L.t-this.offsetTime)dt=1;else if(cy&&c>y)||(this._caching.lastIndex=P0||k>-1e-6&&k<0?r(k*L)/L:k}function O(){var k=this.props,L=D(k[0]),K=D(k[1]),U=D(k[4]),Ht=D(k[5]),It=D(k[12]),Gt=D(k[13]);return "matrix("+L+","+K+","+U+","+Ht+","+It+","+Gt+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=n,this.rotateY=p,this.rotateZ=o,this.skew=g,this.skewFromAxis=f,this.shear=d,this.scale=l,this.setTransform=b,this.translate=v,this.transform=m,this.multiply=E,this.applyToPoint=w,this.applyToX=F,this.applyToY=B,this.applyToZ=G,this.applyToPointArray=Pt,this.applyToTriplePoints=dt,this.applyToPointStringified=tt,this.toCSS=vt,this.to2dCSS=O,this.clone=y,this.cloneFromProps=P,this.equals=u,this.inversePoints=ct,this.inversePoint=ft,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=c,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset();}}();function _typeof$3(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(e){return typeof e}:_typeof$3=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(t)}var lottie={};function setLocation(t){setLocationHref(t);}function searchAnimations(){animationManager.searchAnimations();}function setSubframeRendering(t){setSubframeEnabled(t);}function setPrefix(t){setIdPrefix(t);}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if(typeof t=="string")switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else !isNaN(t)&&t>1&&setDefaultCurveSegments(t);}function inBrowser(){return typeof navigator<"u"}function installPlugin(t,e){t==="expressions"&&setExpressionsPlugin(e);}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations());}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i"u"?"undefined":_typeof$3(exports))==="object"&&typeof module<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=lottie);}catch(t){}var ShapeModifiers=function(){var t={},e={};t.registerModifier=i,t.getModifier=r;function i(s,a){e[s]||(e[s]=a);}function r(s,a,n){return new e[s](a,n)}return t}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated();}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0);},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties());},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.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;},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[];},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,r,s){var a=[];e<=1?a.push({s:t,e}):t>=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var n=[],p,o=a.length,d;for(p=0;pr+i)){var g,f;d.s*s<=r?g=0:g=(d.s*s-r)/i,d.e*s>=r+i?f=1:f=(d.e*s-r)/i,n.push([g,f]);}return n.length||n.push([0,0]),n},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e1?e=1+r:this.s.v<0?e=0+r:e=this.s.v+r,this.e.v>1?i=1+r:this.e.v<0?i=0+r:i=this.e.v+r,e>i){var s=e;e=i,i=s;}e=Math.round(e*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=e,this.eValue=i;}else e=this.sValue,i=this.eValue;var a,n,p=this.shapes.length,o,d,g,f,l,b=0;if(i===e)for(n=0;n=0;n-=1)if(m=this.shapes[n],m.shape._mdf){for(E=m.localShapeCollection,E.releaseShapes(),this.m===2&&p>1?(P=this.calculateShapeEdges(e,i,m.totalShapeLength,y,b),y+=m.totalShapeLength):P=[[c,u]],d=P.length,o=0;o=1?v.push({s:m.totalShapeLength*(c-1),e:m.totalShapeLength*(u-1)}):(v.push({s:m.totalShapeLength*c,e:m.totalShapeLength}),v.push({s:0,e:m.totalShapeLength*(u-1)}));var w=this.addShapes(m,v[0]);if(v[0].s!==v[0].e){if(v.length>1){var F=m.shape.paths.shapes[m.shape.paths._length-1];if(F.c){var B=w.pop();this.addPaths(w,E),w=this.addShapes(m,v[1],B);}else this.addPaths(w,E),w=this.addShapes(m,v[1]);}this.addPaths(w,E);}}m.shape.paths=E;}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;ie.e){i.c=!1;break}else e.s<=d&&e.e>=d+g.addedLength?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[p],s[a].v[p],i,f,E),E=!1):(b=bez.getNewSegment(s[a].v[p-1],s[a].v[p],s[a].o[p-1],s[a].i[p],(e.s-d)/g.addedLength,(e.e-d)/g.addedLength,l[p-1]),this.addSegmentFromArray(b,i,f,E),E=!1,i.c=!1),d+=g.addedLength,f+=1;if(s[a].c&&l.length){if(g=l[p-1],d<=e.e){var c=l[p-1].addedLength;e.s<=d&&e.e>=d+c?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[0],s[a].v[0],i,f,E),E=!1):(b=bez.getNewSegment(s[a].v[p-1],s[a].v[0],s[a].o[p-1],s[a].i[0],(e.s-d)/c,(e.e-d)/c,l[p-1]),this.addSegmentFromArray(b,i,f,E),E=!1,i.c=!1);}else i.c=!1;d+=g.addedLength,f+=1;}if(i._length&&(i.setXYAt(i.v[m][0],i.v[m][1],"i",m),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),d>e.e)break;a=this.p.keyframes[this.p.keyframes.length-1].t?(g=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/d,0),f=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/d,0)):(g=this.p.pv,f=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/d,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){g=[],f=[];var l=this.px,b=this.py;l._caching.lastFrame+l.offsetTime<=l.keyframes[0].t?(g[0]=l.getValueAtTime((l.keyframes[0].t+.01)/d,0),g[1]=b.getValueAtTime((b.keyframes[0].t+.01)/d,0),f[0]=l.getValueAtTime(l.keyframes[0].t/d,0),f[1]=b.getValueAtTime(b.keyframes[0].t/d,0)):l._caching.lastFrame+l.offsetTime>=l.keyframes[l.keyframes.length-1].t?(g[0]=l.getValueAtTime(l.keyframes[l.keyframes.length-1].t/d,0),g[1]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/d,0),f[0]=l.getValueAtTime((l.keyframes[l.keyframes.length-1].t-.01)/d,0),f[1]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/d,0)):(g=[l.pv,b.pv],f[0]=l.getValueAtTime((l._caching.lastFrame+l.offsetTime-.01)/d,l.offsetTime),f[1]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/d,b.offsetTime));}else f=t,g=f;this.v.rotate(-Math.atan2(g[1]-f[1],g[0]-f[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 r(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;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 s(){}function a(o){this._addDynamicProperty(o),this.elem.addDynamicProperty(o),this._isDirty=!0;}function n(o,d,g){if(this.elem=o,this.frameId=-1,this.propType="transform",this.data=d,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(g||o),d.p&&d.p.s?(this.px=PropertyFactory.getProp(o,d.p.x,0,0,this),this.py=PropertyFactory.getProp(o,d.p.y,0,0,this),d.p.z&&(this.pz=PropertyFactory.getProp(o,d.p.z,0,0,this))):this.p=PropertyFactory.getProp(o,d.p||{k:[0,0,0]},1,0,this),d.rx){if(this.rx=PropertyFactory.getProp(o,d.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(o,d.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(o,d.rz,0,degToRads,this),d.or.k[0].ti){var f,l=d.or.k.length;for(f=0;f0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0);},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e0?Math.floor(l):Math.ceil(l),m=this.pMatrix.props,E=this.rMatrix.props,c=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var u=0;if(l>0){for(;uv;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),u-=1;b&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-b,!0),u-=b);}r=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var y,P;a;){if(e=this.elemsData[r].it,i=e[e.length-1].transform.mProps.v.props,P=i.length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),u!==0){for((r!==0&&s===1||r!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15]),this.matrix.transform(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14],c[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]),y=0;y0&&r<1?[e]:[]:[e-r,e+r].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return [singlePoint(this.points[0]),this];if(t>=1)return [this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),i=lerpPoint(this.points[1],this.points[2],t),r=lerpPoint(this.points[2],this.points[3],t),s=lerpPoint(e,i,t),a=lerpPoint(i,r,t),n=lerpPoint(s,a,t);return [new PolynomialBezier(this.points[0],e,s,n,!0),new PolynomialBezier(n,a,r,this.points[3],!0)]};function extrema(t,e){var i=t.points[0][e],r=t.points[t.points.length-1][e];if(i>r){var s=r;r=i,i=s;}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),n=0;n0&&a[n]<1){var p=t.point(a[n])[e];pr&&(r=p);}return {min:i,max:r}}PolynomialBezier.prototype.bounds=function(){return {x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.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}};function intersectData(t,e,i){var r=t.boundingBox();return {cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return [intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return Math.abs(t.cx-e.cx)*2=a||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r){s.push([t.t,e.t]);return}var n=splitData(t),p=splitData(e);intersectsImpl(n[0],p[0],i+1,r,s,a),intersectsImpl(n[0],p[1],i+1,r,s,a),intersectsImpl(n[1],p[0],i+1,r,s,a),intersectsImpl(n[1],p[1],i+1,r,s,a);}}PolynomialBezier.prototype.intersections=function(t,e,i){e===void 0&&(e=2),i===void 0&&(i=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,r,i),r},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)};function crossProduct(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 lineIntersection(t,e,i,r){var s=[t[0],t[1],1],a=[e[0],e[1],1],n=[i[0],i[1],1],p=[r[0],r[1],1],o=crossProduct(crossProduct(s,a),crossProduct(n,p));return floatZero(o[2])?null:[o[0]/o[2],o[1]/o[2]]}function polarOffset(t,e,i){return [t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0;};function setPoint(t,e,i,r,s,a,n){var p=i-Math.PI/2,o=i+Math.PI/2,d=e[0]+Math.cos(i)*r*s,g=e[1]-Math.sin(i)*r*s;t.setTripleAt(d,g,d+Math.cos(p)*a,g-Math.sin(p)*a,d+Math.cos(o)*n,g-Math.sin(o)*n,t.length());}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],r=-Math.PI*.5,s=[Math.cos(r)*i[0]-Math.sin(r)*i[1],Math.sin(r)*i[0]+Math.cos(r)*i[1]];return s}function getProjectingAngle(t,e){var i=e===0?t.length()-1:e-1,r=(e+1)%t.length(),s=t.v[i],a=t.v[r],n=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,i,r,s,a,n){var p=getProjectingAngle(e,i),o=e.v[i%e._length],d=e.v[i===0?e._length-1:i-1],g=e.v[(i+1)%e._length],f=a===2?Math.sqrt(Math.pow(o[0]-d[0],2)+Math.pow(o[1]-d[1],2)):0,l=a===2?Math.sqrt(Math.pow(o[0]-g[0],2)+Math.pow(o[1]-g[1],2)):0;setPoint(t,e.v[i%e._length],p,n,r,l/((s+1)*2),f/((s+1)*2));}function zigZagSegment(t,e,i,r,s,a){for(var n=0;n1&&e.length>1&&(s=getIntersection(t[0],e[e.length-1]),s)?[[t[0].split(s[0])[0]],[e[e.length-1].split(s[1])[1]]]:[i,r]}function pruneIntersections(t){for(var e,i=1;i1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i=t.inflectionPoints(),r,s,a,n;if(i.length===0)return [offsetSegment(t,e)];if(i.length===1||floatEqual(i[1],1))return a=t.split(i[0]),r=a[0],s=a[1],[offsetSegment(r,e),offsetSegment(s,e)];a=t.split(i[0]),r=a[0];var p=(i[1]-i[0])/(1-i[0]);return a=a[1].split(p),n=a[0],s=a[1],[offsetSegment(r,e),offsetSegment(n,e),offsetSegment(s,e)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length!==0;},OffsetPathModifier.prototype.processPath=function(t,e,i,r){var s=shapePool.newElement();s.c=t.c;var a=t.length();t.c||(a-=1);var n,p,o,d=[];for(n=0;n=0;n-=1)o=PolynomialBezier.shapeSegmentInverted(t,n),d.push(offsetSegmentSplit(o,e));d=pruneIntersections(d);var g=null,f=null;for(n=0;n0&&(Ht=!1),Ht){var Ot=createTag("style");Ot.setAttribute("f-forigin",k[L].fOrigin),Ot.setAttribute("f-origin",k[L].origin),Ot.setAttribute("f-family",k[L].fFamily),Ot.type="text/css",Ot.innerText="@font-face {font-family: "+k[L].fFamily+"; font-style: normal; src: url('"+k[L].fPath+"');}",O.appendChild(Ot);}}else if(k[L].fOrigin==="g"||k[L].origin===1){for(It=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Gt=0;Gt=55296&&k<=56319){var L=D.charCodeAt(1);L>=56320&&L<=57343&&(O=(k-55296)*1024+L-56320+65536);}return O}function F(D,O){var k=D.toString(16)+O.toString(16);return f.indexOf(k)!==-1}function B(D){return D===o}function G(D){return D===p}function it(D){var O=w(D);return O>=d&&O<=g}function ft(D){return it(D.substr(0,2))&&it(D.substr(2,2))}function ct(D){return i.indexOf(D)!==-1}function dt(D,O){var k=w(D.substr(O,2));if(k!==r)return !1;var L=0;for(O+=2;L<5;){if(k=w(D.substr(O,2)),kn)return !1;L+=1,O+=2;}return w(D.substr(O,2))===s}function Pt(){this.isLoaded=!0;}var tt=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);};tt.isModifier=F,tt.isZeroWidthJoiner=B,tt.isFlagEmoji=ft,tt.isRegionalCode=it,tt.isCombinedCharacter=ct,tt.isRegionalFlag=dt,tt.isVariationSelector=G,tt.BLACK_FLAG_CODE_POINT=r;var vt={addChars:c,addFonts:E,getCharData:u,getFontByName:P,measureText:y,checkLoadedFonts:v,setIsLoaded:Pt};return tt.prototype=vt,tt}();function SlotManager(t){this.animationData=t;}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[];},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t);},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&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?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide());},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0));},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1;},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1;},AudioElement.prototype.resume=function(){this._canPlay=!0;},AudioElement.prototype.setRate=function(t){this.audio.rate(t);},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume);},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(t){var e,i=this.layers.length,r;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e],r.ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=this.elements[e]?this.completeLayers:!1;this.checkPendingElements();},BaseRenderer.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: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);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t0&&(this.maskElement.setAttribute("id",l),this.element.maskedElement.setAttribute(u,"url("+getLocationHref()+"#"+l+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this);}MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e=this.element.finalTransform.mat,i,r=this.masksProperties.length;for(i=0;i1&&(r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==r){var n="";i.elem&&(e.c&&(n=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",n)),i.lastPath=r;}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null;};var filtersFactory=function(){var t={};t.createFilter=e,t.createAlphaToLuminanceFilter=i;function e(r,s){var a=createNS("filter");return a.setAttribute("id",r),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function i(){var r=createNS("feColorMatrix");return r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),r}return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return (/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))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,i="SourceGraphic",r=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),n=0;this.filters=[];var p;for(e=0;e=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;i.01)return !1;i+=1;}return !0},GradientProperty.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;t0;)c=l.transformers[it].mProps._mdf||c,G-=1,it-=1;if(c)for(G=w-l.styles[y].lvl,it=l.transformers.length-1;G>0;)B.multiply(l.transformers[it].mProps.v),G-=1,it-=1;}else B=t;if(F=l.sh.paths,m=F._length,c){for(E="",v=0;v=1?Pt=.99:Pt<=-1&&(Pt=-.99);var tt=ct*Pt,vt=Math.cos(dt+l.a.v)*tt+E[0],D=Math.sin(dt+l.a.v)*tt+E[1];v.setAttribute("fx",vt),v.setAttribute("fy",D),m&&!l.g._collapsable&&(l.of.setAttribute("fx",vt),l.of.setAttribute("fy",D));}}}function g(f,l,b){var v=l.style,m=l.d;m&&(m._mdf||b)&&m.dashStr&&(v.pElem.setAttribute("stroke-dasharray",m.dashStr),v.pElem.setAttribute("stroke-dashoffset",m.dashoffset[0])),l.c&&(l.c._mdf||b)&&v.pElem.setAttribute("stroke","rgb("+bmFloor(l.c.v[0])+","+bmFloor(l.c.v[1])+","+bmFloor(l.c.v[2])+")"),(l.o._mdf||b)&&v.pElem.setAttribute("stroke-opacity",l.o.v),(l.w._mdf||b)&&(v.pElem.setAttribute("stroke-width",l.w.v),v.msElem&&v.msElem.setAttribute("stroke-width",l.w.v));}return i}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[];}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes();},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e=this.shapes.length,i,r,s=this.stylesList.length,a,n=[],p=!1;for(r=0;r1&&p&&this.setShapesAsAnimated(n);}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;o-=1){if(E=this.searchProcessedElement(t[o]),E?e[o]=i[E-1]:t[o]._render=n,t[o].ty==="fl"||t[o].ty==="st"||t[o].ty==="gf"||t[o].ty==="gs"||t[o].ty==="no")E?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],s),t[o]._render&&e[o].style.pElem.parentNode!==r&&r.appendChild(e[o].style.pElem),l.push(e[o].style);else if(t[o].ty==="gr"){if(!E)e[o]=this.createGroupElement(t[o]);else for(f=e[o].it.length,g=0;g1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this);},TextProperty.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,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var r,s=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(r=0;re);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e=[],i=0,r=t.length,s,a,n=!1,p=!1,o="";i=55296&&s<=56319?FontManager.isRegionalFlag(t,i)?o=t.substr(i,14):(a=t.charCodeAt(i+1),a>=56320&&a<=57343&&(FontManager.isModifier(s,a)?(o=t.substr(i,2),n=!0):FontManager.isFlagEmoji(t.substr(i,4))?o=t.substr(i,4):o=t.substr(i,2))):s>56319?(a=t.charCodeAt(i+1),FontManager.isVariationSelector(s)&&(n=!0)):FontManager.isZeroWidthJoiner(s)&&(n=!0,p=!0),n?(e[e.length-1]+=o,n=!1):e.push(o),i+=o.length;return e},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,i=this.data,r=[],s,a,n,p=0,o,d=i.m.g,g=0,f=0,l=0,b=[],v=0,m=0,E,c,u=e.getFontByName(t.f),y,P=0,w=getFontProperties(u);t.fWeight=w.weight,t.fStyle=w.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),a=t.finalText.length,t.finalLineHeight=t.lh;var F=t.tr/1e3*t.finalSize,B;if(t.sz)for(var G=!0,it=t.sz[0],ft=t.sz[1],ct,dt;G;){dt=this.buildFinalText(t.t),ct=0,v=0,a=dt.length,F=t.tr/1e3*t.finalSize;var Pt=-1;for(s=0;sit&&dt[s]!==" "?(Pt===-1?a+=1:s=Pt,ct+=t.finalLineHeight||t.finalSize*1.2,dt.splice(s,Pt===s?1:0,"\r"),Pt=-1,v=0):(v+=P,v+=F);ct+=u.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&ftm?v:m,v=-2*F,o="",n=!0,l+=1):o=vt,e.chars?(y=e.getCharData(vt,u.fStyle,e.getFontByName(t.f).fFamily),P=n?0:y.w*t.finalSize/100):P=e.measureText(o,t.f,t.finalSize),vt===" "?tt+=P+F:(v+=P+F+tt,tt=0),r.push({l:P,an:P,add:g,n,anIndexes:[],val:o,line:l,animatorJustifyOffset:0}),d==2){if(g+=P,o===""||o===" "||s===a-1){for((o===""||o===" ")&&(g-=P);f<=s;)r[f].an=g,r[f].ind=p,r[f].extra=P,f+=1;p+=1,g=0;}}else if(d==3){if(g+=P,o===""||s===a-1){for(o===""&&(g-=P);f<=s;)r[f].an=g,r[f].ind=p,r[f].extra=P,f+=1;g=0,p+=1;}}else r[p].ind=p,r[p].extra=0,p+=1;if(t.l=r,m=v>m?v:m,b.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=m,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0;}t.lineWidths=b;var D=i.a,O,k;c=D.length;var L,K,U=[];for(E=0;E0?n=this.ne.v/100:p=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:d=1+this.xe.v/100;var g=BezierFactory.getBezierEasing(n,p,o,d).get,f=0,l=this.finalS,b=this.finalE,v=this.data.sh;if(v===2)b===l?f=a>=b?1:0:f=t(0,e(.5/(b-l)+(a-l)/(b-l),1)),f=g(f);else if(v===3)b===l?f=a>=b?0:1:f=1-t(0,e(.5/(b-l)+(a-l)/(b-l),1)),f=g(f);else if(v===4)b===l?f=0:(f=t(0,e(.5/(b-l)+(a-l)/(b-l),1)),f<.5?f*=2:f=1-2*(f-.5)),f=g(f);else if(v===5){if(b===l)f=0;else {var m=b-l;a=e(t(0,a+.5-l),b-l);var E=-m/2+a,c=m/2;f=Math.sqrt(1-E*E/(c*c));}f=g(f);}else v===6?(b===l?f=0:(a=e(t(0,a+.5-l),b-l),f=(1+Math.cos(Math.PI+Math.PI*2*a/(b-l)))/2),f=g(f)):(a>=i(l)&&(a-l<0?f=t(0,e(e(b,1)-(l-a),1)):f=t(0,e(b-a,1))),f=g(f));if(this.sm.v!==100){var u=this.sm.v*.01;u===0&&(u=1e-8);var y=.5-u*.5;f1&&(f=1));}return f*this.a.v},getValue:function(a){this.iterateDynamicProperties(),this._mdf=a||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,a&&this.data.r===2&&(this.e.v=this._currentTextLength);var n=this.data.r===2?1:100/this.data.totalChars,p=this.o.v/n,o=this.s.v/n+p,d=this.e.v/n+p;if(o>d){var g=o;o=d,d=g;}this.finalS=o,this.finalE=d;}},extendPrototype([DynamicPropertyContainer],r);function s(a,n,p){return new r(a,n)}return {getTextSelectorProp:s}}();function TextAnimatorDataProperty(t,e,i){var r={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,i):r,rx:a.rx?s(t,a.rx,0,degToRads,i):r,ry:a.ry?s(t,a.ry,0,degToRads,i):r,sk:a.sk?s(t,a.sk,0,degToRads,i):r,sa:a.sa?s(t,a.sa,0,degToRads,i):r,s:a.s?s(t,a.s,1,.01,i):r,a:a.a?s(t,a.a,1,0,i):r,o:a.o?s(t,a.o,0,.01,i):r,p:a.p?s(t,a.p,1,0,i):r,sw:a.sw?s(t,a.sw,0,0,i):r,sc:a.sc?s(t,a.sc,1,0,i):r,fc:a.fc?s(t,a.fc,1,0,i):r,fh:a.fh?s(t,a.fh,0,0,i):r,fs:a.fs?s(t,a.fs,0,.01,i):r,fb:a.fb?s(t,a.fb,0,.01,i):r,t:a.t?s(t,a.t,0,0,i):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t;}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i);}TextAnimatorProperty.prototype.searchProperties=function(){var t,e=this._textData.a.length,i,r=PropertyFactory.getProp;for(t=0;t=v+be||!w?(it=(v+be-E)/m.partialLength,Gt=P.point[0]+(m.point[0]-P.point[0])*it,Ot=P.point[1]+(m.point[1]-P.point[1])*it,a.translate(-i[0]*l[g].an*.005,-(i[1]*tt)*.01),c=!1):w&&(E+=m.partialLength,u+=1,u>=w.length&&(u=0,y+=1,F[y]?w=F[y].points:ct.v.c?(u=0,y=0,w=F[y].points):(E-=m.partialLength,w=null)),w&&(P=m,m=w[u],B=m.partialLength));It=l[g].an/2-l[g].add,a.translate(-It,0,0);}else It=l[g].an/2-l[g].add,a.translate(-It,0,0),a.translate(-i[0]*l[g].an*.005,-i[1]*tt*.01,0);for(k=0;kt?this.textSpans[t].span:createNS(p?"g":"text"),y<=t){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=o,p){var w=createNS("g");o.appendChild(w),this.textSpans[t].childSpan=w;}this.textSpans[t].span=o,this.layerElement.appendChild(o);}o.style.display="inherit";}if(d.reset(),f&&(n[t].n&&(l=-m,b+=i.yOffset,b+=v?1:0,v=!1),this.applyTextPropertiesToMatrix(i,d,n[t].line,l,b),l+=n[t].l||0,l+=m),p){P=this.globalData.fontManager.getCharData(i.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var F;if(P.t===1)F=new SVGCompElement(P.data,this.globalData,this);else {var B=emptyShapeData;P.data&&P.data.shapes&&(B=this.buildShapeData(P.data,i.finalSize)),F=new SVGShapeElement(B,this.globalData,this);}if(this.textSpans[t].glyph){var G=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(G.layerElement),G.destroy();}this.textSpans[t].glyph=F,F._debug=!0,F.prepareFrame(0),F.renderFrame(),this.textSpans[t].childSpan.appendChild(F.layerElement),P.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")");}else f&&o.setAttribute("transform","translate("+d.props[12]+","+d.props[13]+")"),o.textContent=n[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}f&&o&&o.setAttribute("d",g);}for(;t=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=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0));}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=s;},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e=1){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas();}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms();},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e;}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0);},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0);},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy);},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0],e=t.getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],e=t.getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas),s=r.getContext("2d");s.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0);}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over";}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1);}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy();},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(t,e,i,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;e.ty==="rc"?s=5:e.ty==="el"?s=6:e.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);var a,n=i.length,p;for(a=0;a=0;a-=1){if(f=this.searchProcessedElement(t[a]),f?e[a]=i[f-1]:t[a]._shouldRender=r,t[a].ty==="fl"||t[a].ty==="st"||t[a].ty==="gf"||t[a].ty==="gs")f?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],v),d.push(e[a].style);else if(t[a].ty==="gr"){if(!f)e[a]=this.createGroupElement(t[a]);else for(o=e[a].it.length,p=0;p=0;s-=1)e[s].ty==="tr"?(n=i[s].transform,this.renderShapeTransform(t,n)):e[s].ty==="sh"||e[s].ty==="el"||e[s].ty==="rc"||e[s].ty==="sr"?this.renderPath(e[s],i[s]):e[s].ty==="fl"?this.renderFill(e[s],i[s],n):e[s].ty==="st"?this.renderStroke(e[s],i[s],n):e[s].ty==="gf"||e[s].ty==="gs"?this.renderGradientFill(e[s],i[s],n):e[s].ty==="gr"?this.renderShape(n,e[s].it,i[s].it):e[s].ty;r&&this.drawLayer();},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i=t.trNodes,r=e.paths,s,a,n,p=r._length;i.length=0;var o=t.transforms.finalTransform;for(n=0;n=1?g=.99:g<=-1&&(g=-.99);var f=o*g,l=Math.cos(d+e.a.v)*f+n[0],b=Math.sin(d+e.a.v)*f+n[1];s=a.createRadialGradient(l,b,0,n[0],n[1],o);}var v,m=t.g.p,E=e.g.c,c=1;for(v=0;va&&o==="xMidYMid slice"||ss&&p==="meet"||as&&p==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:d==="xMax"&&(as&&p==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,g==="YMid"&&(a>s&&p==="meet"||as&&p==="meet"||a=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0;},CanvasRendererBase.prototype.renderFrame=function(t,e){if(!(this.renderedFrame===t&&this.renderConfig.clearCanvas===!0&&!e||this.destroyed||t===-1)){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i,r=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore();}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!(e[t]||this.layers[t].ty===99)){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions();}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();t.checkParenting();}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none";},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block";};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random();}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var t,e=15;for(t=0;t=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame();},CVCompElement.prototype.destroy=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null;},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:e&&e.clearCanvas!==void 0?e.clearCanvas:!0,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData));}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},registerRenderer("canvas",CanvasRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier);var CompExpressionInterface=function(){return function(t){function e(i){for(var r=0,s=t.layers.length;r=d;)ft/=2,ct/=2,dt>>>=1;return (ft+dt)/ct};return it.int32=function(){return G.g(4)|0},it.quick=function(){return G.g(4)/4294967296},it.double=it,E(u(G.S),t),(P.pass||w||function(ft,ct,dt,Pt){return Pt&&(Pt.S&&v(Pt,G),ft.state=function(){return v(G,{})}),dt?(e[n]=ft,ct):ft})(it,B,"global"in P?P.global:this==e,P.state)}e["seed"+n]=l;function b(y){var P,w=y.length,F=this,B=0,G=F.i=F.j=0,it=F.S=[];for(w||(y=[w++]);Bi){var r=i;i=e,e=r;}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if(typeof t=="number"||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var i,r=Math.min(t.length,e.length),s=0;for(i=0;i.5?d/(2-s-a):d/(s+a),s){case e:n=(i-r)/d+(i1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e=t[0],i=t[1],r=t[2],s,a,n;if(i===0)s=r,n=r,a=r;else {var p=r<.5?r*(1+i):r+i-r*i,o=2*r-p;s=hue2rgb(o,p,e+1/3),a=hue2rgb(o,p,e),n=hue2rgb(o,p,e-1/3);}return [s,a,n,t[3]]}function linear(t,e,i,r,s){if((r===void 0||s===void 0)&&(r=e,s=i,e=0,i=1),i=i)return s;var n=i===e?0:(t-e)/(i-e);if(!r.length)return r+(s-r)*n;var p,o=r.length,d=createTypedArray("float32",o);for(p=0;p1){for(s=0;s1?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){var p,o=s.length,d=createTypedArray("float32",o);for(p=0;pdata.k[e].t&&tdata.k[e+1].t-t?(r=e+2,s=data.k[e+1].t):(r=e+1,s=data.k[e].t);break}r===-1&&(r=e+1,s=data.k[e].t);}var a={};return a.index=r,a.time=s/elem.comp.globalData.frameRate,a}function key(t){var e,i,r;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(r=s.length,i=0;iE.length-1)&&(b=E.length-1),y=E[E.length-1-b].t,u=c-y);var P,w,F;if(l==="pingpong"){var B=Math.floor((m-y)/u);if(B%2!==0)return this.getValueAtTime((u-(m-y)%u+y)/this.comp.globalData.frameRate,0)}else if(l==="offset"){var G=this.getValueAtTime(y/this.comp.globalData.frameRate,0),it=this.getValueAtTime(c/this.comp.globalData.frameRate,0),ft=this.getValueAtTime(((m-y)%u+y)/this.comp.globalData.frameRate,0),ct=Math.floor((m-y)/u);if(this.pv.length){for(F=new Array(G.length),w=F.length,P=0;P=c)return this.pv;var u,y;v?(b?u=Math.abs(this.elem.comp.globalData.frameRate*b):u=Math.max(0,this.elem.data.op-c),y=c+u):((!b||b>E.length-1)&&(b=E.length-1),y=E[b].t,u=y-c);var P,w,F;if(l==="pingpong"){var B=Math.floor((c-m)/u);if(B%2===0)return this.getValueAtTime(((c-m)%u+c)/this.comp.globalData.frameRate,0)}else if(l==="offset"){var G=this.getValueAtTime(c/this.comp.globalData.frameRate,0),it=this.getValueAtTime(y/this.comp.globalData.frameRate,0),ft=this.getValueAtTime((u-(c-m)%u+c)/this.comp.globalData.frameRate,0),ct=Math.floor((c-m)/u)+1;if(this.pv.length){for(F=new Array(G.length),w=F.length,P=0;P1?(E-m)/(b-1):1,u=0,y=0,P;this.pv.length?P=createTypedArray("float32",this.pv.length):P=0;for(var w;uc){var F=u,B=v.c&&u===y-1?0:u+1,G=(c-P)/E[u].addedLength;w=bez.getPointInSegment(v.v[F],v.v[B],v.o[F],v.i[B],G,E[u]);break}else P+=E[u].addedLength;u+=1;}return w||(w=v.c?[v.v[0][0],v.v[0][1]]:[v.v[v._length-1][0],v.v[v._length-1][1]]),w},vectorOnPath:function(l,b,v){l==1?l=this.v.c:l==0&&(l=.999);var m=this.pointOnPath(l,b),E=this.pointOnPath(l+.001,b),c=E[0]-m[0],u=E[1]-m[1],y=Math.sqrt(Math.pow(c,2)+Math.pow(u,2));if(y===0)return [0,0];var P=v==="tangent"?[c/y,u/y]:[-u/y,c/y];return P},tangentOnPath:function(l,b){return this.vectorOnPath(l,b,"tangent")},normalOnPath:function(l,b){return this.vectorOnPath(l,b,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([g],o),extendPrototype([g],d),d.prototype.getValueAtTime=p,d.prototype.initiateExpression=ExpressionManager.initiateExpression;var f=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(l,b,v,m,E){var c=f(l,b,v,m,E);return c.propertyIndex=b.ix,c.lock=!1,v===3?expressionHelpers.searchExpressions(l,b.pt,c):v===4&&expressionHelpers.searchExpressions(l,b.ks,c),c.k&&l.addDynamicProperty(c),c};}function initialize$1(){addPropertyDecorator();}function addDecorator(){function t(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(e,i){var r=this.calculateExpression(i);if(e.t!==r){var s={};return this.copyData(s,e),s.t=r.toString(),s.__complete=!1,s}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),i=this.searchExpressions();return this.kf=e||i,this.kf},TextProperty.prototype.searchExpressions=t;}function initialize(){addDecorator();}function TransformEffect(){}TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1;},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,i=e[0].p.v,r=e[1].p.v,s=e[2].p.v===1,a=e[3].p.v,n=s?a:e[4].p.v,p=e[5].p.v,o=e[6].p.v,d=e[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(n*.01,a*.01,1),this.matrix.rotate(-d*degToRads),this.matrix.skewFromAxis(-p*degToRads,(o+90)*degToRads),this.matrix.translate(r[0],r[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0);}};function CVTransformEffect(t){this.init(t);}return extendPrototype([TransformEffect],CVTransformEffect),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect(35,CVTransformEffect),lottie});}),ng=ag();});var Lc={};Ts(Lc,{default:()=>hg});var og,hg,Vc=cr(()=>{ns();og=ue((t,e)=>{typeof navigator<"u"&&function(i,r){typeof t=="object"&&typeof e<"u"?e.exports=r():typeof define=="function"&&define.amd?define(r):(i=typeof globalThis<"u"?globalThis:i||self,i.lottie=r());}(t,function(){var i="http://www.w3.org/2000/svg",r="",s=!1,a=-999999,n=function(_){s=!!_;},p=function(){return s},o=function(_){r=_;},d=function(){return r};function g(_){return document.createElement(_)}function f(_,C){var T,z=_.length,H;for(T=0;T1?T[1]=1:T[1]<=0&&(T[1]=0),U(T[0],T[1],T[2])}function Gt(_,C){var T=Ht(_[0]*255,_[1]*255,_[2]*255);return T[2]+=C,T[2]>1?T[2]=1:T[2]<0&&(T[2]=0),U(T[0],T[1],T[2])}function Ot(_,C){var T=Ht(_[0]*255,_[1]*255,_[2]*255);return T[0]+=C/360,T[0]>1?T[0]-=1:T[0]<0&&(T[0]+=1),U(T[0],T[1],T[2])}(function(){var _=[],C,T;for(C=0;C<256;C+=1)T=C.toString(16),_[C]=T.length===1?"0"+T:T;return function(z,H,N){return z<0&&(z=0),H<0&&(H=0),N<0&&(N=0),"#"+_[z]+_[H]+_[N]}})();var ee=function(_){E=!!_;},ae=function(){return E},le=function(_){c=_;},ye=function(){return c},ce=function(_){it=_;},Xt=function(){return it},pe=function(_){u=_;};function Wt(_){return document.createElementNS(i,_)}function Nt(_){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nt=function(C){return typeof C}:Nt=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},Nt(_)}var Le=function(){var _=1,C=[],T,z,H={onmessage:function(){},postMessage:function($){T({data:$});}},N={postMessage:function($){H.onmessage({data:$});}};function h($){if(window.Worker&&window.Blob&&p()){var et=new Blob(["var _workerSelf = self; self.onmessage = ",$.toString()],{type:"text/javascript"}),Z=URL.createObjectURL(et);return new Worker(Z)}return T=$,H}function x(){z||(z=h(function($){function et(){function at(Vt,Kt){var St,wt,lt=Vt.length,Mt,Lt,Ct,Et;for(wt=0;wt=0;Kt-=1)if(Vt[Kt].ty==="sh")if(Vt[Kt].ks.k.i)X(Vt[Kt].ks.k);else for(lt=Vt[Kt].ks.k.length,wt=0;wtSt[0]?!0:St[0]>Vt[0]?!1:Vt[1]>St[1]?!0:St[1]>Vt[1]?!1:Vt[2]>St[2]?!0:St[2]>Vt[2]?!1:null}var nt=function(){var Vt=[4,4,14];function Kt(wt){var lt=wt.t.d;wt.t.d={k:[{s:lt,t:0}]};}function St(wt){var lt,Mt=wt.length;for(lt=0;lt=0;lt-=1)if(wt[lt].ty==="sh")if(wt[lt].ks.k.i)wt[lt].ks.k.c=wt[lt].closed;else for(Ct=wt[lt].ks.k.length,Lt=0;Lt500)&&(this._imageLoaded(),clearInterval(W)),J+=1;}.bind(this),50);}function N(rt){var J=z(rt,this.assetsPath,this.path),W=Wt("image");y?this.testImageLoaded(W):W.addEventListener("load",this._imageLoaded,!1),W.addEventListener("error",function(){X.img=_,this._imageLoaded();}.bind(this),!1),W.setAttributeNS("http://www.w3.org/1999/xlink","href",J),this._elementHelper.append?this._elementHelper.append(W):this._elementHelper.appendChild(W);var X={img:W,assetData:rt};return X}function h(rt){var J=z(rt,this.assetsPath,this.path),W=g("img");W.crossOrigin="anonymous",W.addEventListener("load",this._imageLoaded,!1),W.addEventListener("error",function(){X.img=_,this._imageLoaded();}.bind(this),!1),W.src=J;var X={img:W,assetData:rt};return X}function x(rt){var J={assetData:rt},W=z(rt,this.assetsPath,this.path);return Le.loadData(W,function(X){J.img=X,this._footageLoaded();}.bind(this),function(){J.img={},this._footageLoaded();}.bind(this)),J}function S(rt,J){this.imagesLoadedCb=J;var W,X=rt.length;for(W=0;Wthis.animationData.op&&(this.animationData.op=_.op,this.totalFrames=Math.floor(_.op-this.animationData.ip));var C=this.animationData.layers,T,z=C.length,H=_.layers,N,h=H.length;for(N=0;Nthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame");},oe.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame);}catch(_){this.triggerRenderFrameError(_);}},oe.prototype.play=function(_){_&&this.name!==_||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")));},oe.prototype.pause=function(_){_&&this.name!==_||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause());},oe.prototype.togglePause=function(_){_&&this.name!==_||(this.isPaused===!0?this.play():this.pause());},oe.prototype.stop=function(_){_&&this.name!==_||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0));},oe.prototype.getMarkerData=function(_){for(var C,T=0;T=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(C>this.totalFrames?C%this.totalFrames:0)||(T=!0,C=this.totalFrames-1):C>=this.totalFrames?(this.playCount+=1,this.checkSegments(C%this.totalFrames)||(this.setCurrentRawFrameValue(C%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(C):C<0?this.checkSegments(C%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+C%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(T=!0,C=0)):this.setCurrentRawFrameValue(C),T&&(this.setCurrentRawFrameValue(C),this.pause(),this.trigger("complete"));}},oe.prototype.adjustSegment=function(_,C){this.playCount=0,_[1]<_[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=_[0]-_[1],this.timeCompleted=this.totalFrames,this.firstFrame=_[1],this.setCurrentRawFrameValue(this.totalFrames-.001-C)):_[1]>_[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=_[1]-_[0],this.timeCompleted=this.totalFrames,this.firstFrame=_[0],this.setCurrentRawFrameValue(.001+C)),this.trigger("segmentStart");},oe.prototype.setSegment=function(_,C){var T=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<_?T=_:this.currentRawFrame+this.firstFrame>C&&(T=C-_)),this.firstFrame=_,this.totalFrames=C-_,this.timeCompleted=this.totalFrames,T!==-1&&this.goToAndStop(T,!0);},oe.prototype.playSegments=function(_,C){if(C&&(this.segments.length=0),ne(_[0])==="object"){var T,z=_.length;for(T=0;T=0;wt-=1)C[wt].animation.destroy(St);}function Q(St,wt,lt){var Mt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Lt,Ct=Mt.length;for(Lt=0;Lt0?X=Q:W=Q;while(Math.abs(ht)>N&&++yt=H?pt(J,bt,W,X):kt===0?bt:at(J,nt,nt+S,W,X)}},_}(),si=function(){function _(C){return C.concat(m(C.length))}return {double:_}}(),ai=function(){return function(_,C,T){var z=0,H=_,N=m(H),h={newElement:x,release:S};function x(){var M;return z?(z-=1,M=N[z]):M=C(),M}function S(M){z===H&&(N=si.double(N),H*=2),T&&T(M),N[z]=M,z+=1;}return h}}(),vi=function(){function _(){return {addedLength:0,percents:v("float32",Xt()),lengths:v("float32",Xt())}}return ai(8,_)}(),Ei=function(){function _(){return {lengths:[],totalLength:0}}function C(T){var z,H=T.lengths.length;for(z=0;z-.001&&J<.001}function T($,et,Z,at,pt,rt,J,W,X){if(Z===0&&rt===0&&X===0)return C($,et,at,pt,J,W);var j=_.sqrt(_.pow(at-$,2)+_.pow(pt-et,2)+_.pow(rt-Z,2)),nt=_.sqrt(_.pow(J-$,2)+_.pow(W-et,2)+_.pow(X-Z,2)),ht=_.sqrt(_.pow(J-at,2)+_.pow(W-pt,2)+_.pow(X-rt,2)),Q;return j>nt?j>ht?Q=j-nt-ht:Q=ht-nt-j:ht>nt?Q=ht-nt-j:Q=nt-j-ht,Q>-1e-4&&Q<1e-4}var z=function(){return function($,et,Z,at){var pt=Xt(),rt,J,W,X,j,nt=0,ht,Q=[],yt=[],bt=vi.newElement();for(W=Z.length,rt=0;rtJ?-1:1,j=!0;j;)if(at[rt]<=J&&at[rt+1]>J?(W=(J-at[rt])/(at[rt+1]-at[rt]),j=!1):rt+=X,rt<0||rt>=pt-1){if(rt===pt-1)return Z[rt];j=!1;}return Z[rt]+(Z[rt+1]-Z[rt])*W}function M($,et,Z,at,pt,rt){var J=S(pt,rt),W=1-J,X=_.round((W*W*W*$[0]+(J*W*W+W*J*W+W*W*J)*Z[0]+(J*J*W+W*J*J+J*W*J)*at[0]+J*J*J*et[0])*1e3)/1e3,j=_.round((W*W*W*$[1]+(J*W*W+W*J*W+W*W*J)*Z[1]+(J*J*W+W*J*J+J*W*J)*at[1]+J*J*J*et[1])*1e3)/1e3;return [X,j]}var R=v("float32",8);function V($,et,Z,at,pt,rt,J){pt<0?pt=0:pt>1&&(pt=1);var W=S(pt,J);rt=rt>1?1:rt;var X=S(rt,J),j,nt=$.length,ht=1-W,Q=1-X,yt=ht*ht*ht,bt=W*ht*ht*3,kt=W*W*ht*3,zt=W*W*W,$t=ht*ht*Q,Vt=W*ht*Q+ht*W*Q+ht*ht*X,Kt=W*W*Q+ht*W*X+W*ht*X,St=W*W*X,wt=ht*Q*Q,lt=W*Q*Q+ht*X*Q+ht*Q*X,Mt=W*X*Q+ht*X*X+W*Q*X,Lt=W*X*X,Ct=Q*Q*Q,Et=X*Q*Q+Q*X*Q+Q*Q*X,Tt=X*X*Q+Q*X*X+X*Q*X,gt=X*X*X;for(j=0;j=M.t-T){S.h&&(S=M),H=0;break}if(M.t-T>_){H=N;break}N=rt||_=rt?X.points.length-1:0;for($=X.points[j].point.length,V=0;V<$;V+=1)z[V]=X.points[j].point[V];}else {R.__fnct?pt=R.__fnct:(pt=ze.getBezierEasing(S.o.x,S.o.y,S.i.x,S.i.y,S.n).get,R.__fnct=pt),et=pt((_-J)/(rt-J));var nt=X.segmentLength*et,ht,Q=C.lastFrame<_&&C._lastKeyframeIndex===N?C._lastAddedLength:0;for(at=C.lastFrame<_&&C._lastKeyframeIndex===N?C._lastPoint:0,x=!0,Z=X.points.length;x;){if(Q+=X.points[at].partialLength,nt===0||et===0||at===X.points.length-1){for($=X.points[at].point.length,V=0;V<$;V+=1)z[V]=X.points[at].point[V];break}else if(nt>=Q&&nt=rt)z[0]=W[0],z[1]=W[1],z[2]=W[2];else if(_<=J)z[0]=S.s[0],z[1]=S.s[1],z[2]=S.s[2];else {var Vt=Vr(S.s),Kt=Vr(W),St=(_-J)/(rt-J);Xs(z,os(Vt,Kt,St));}else for(N=0;N=rt?et=1:_1e-6?($=Math.acos(et),Z=Math.sin($),at=Math.sin((1-T)*$)/Z,pt=Math.sin(T*$)/Z):(at=1-T,pt=T),z[0]=at*H+pt*S,z[1]=at*N+pt*M,z[2]=at*h+pt*R,z[3]=at*x+pt*V,z}function Xs(_,C){var T=C[0],z=C[1],H=C[2],N=C[3],h=Math.atan2(2*z*N-2*T*H,1-2*z*z-2*H*H),x=Math.asin(2*T*z+2*H*N),S=Math.atan2(2*T*N-2*z*H,1-2*T*T-2*H*H);_[0]=h/ft,_[1]=x/ft,_[2]=S/ft;}function Vr(_){var C=_[0]*ft,T=_[1]*ft,z=_[2]*ft,H=Math.cos(C/2),N=Math.cos(T/2),h=Math.cos(z/2),x=Math.sin(C/2),S=Math.sin(T/2),M=Math.sin(z/2),R=H*N*h-x*S*M,V=x*S*h+H*N*M,$=x*N*h+H*S*M,et=H*S*h-x*N*M;return [V,$,et,R]}function Hr(){var _=this.comp.renderedFrame-this.offsetTime,C=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(_===this._caching.lastFrame||this._caching.lastFrame!==Lr&&(this._caching.lastFrame>=T&&_>=T||this._caching.lastFrame=_&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var z=this.interpolateValue(_,this._caching);this.pv=z;}return this._caching.lastFrame=_,this.pv}function yr(_){var C;if(this.propType==="unidimensional")C=_*this.mult,ha(this.v-C)>1e-5&&(this.v=C,this._mdf=!0);else for(var T=0,z=this.v.length;T1e-5&&(this.v[T]=C,this._mdf=!0),T+=1;}function qr(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var _,C=this.effectsSequence.length,T=this.kf?this.pv:this.data.k;for(_=0;_=this._maxLength&&this.doubleArrayLength(),T){case"v":N=this.v;break;case"i":N=this.i;break;case"o":N=this.o;break;default:N=[];break}(!N[z]||N[z]&&!H)&&(N[z]=Ne.newElement()),N[z][0]=_,N[z][1]=C;},Qi.prototype.setTripleAt=function(_,C,T,z,H,N,h,x){this.setXYAt(_,C,"v",h,x),this.setXYAt(T,z,"o",h,x),this.setXYAt(H,N,"i",h,x);},Qi.prototype.reverse=function(){var _=new Qi;_.setPathData(this.c,this._length);var C=this.v,T=this.o,z=this.i,H=0;this.c&&(_.setTripleAt(C[0][0],C[0][1],z[0][0],z[0][1],T[0][0],T[0][1],0,!1),H=1);var N=this._length-1,h=this._length,x;for(x=H;x=Vt[Vt.length-1].t-this.offsetTime)j=Vt[Vt.length-1].s?Vt[Vt.length-1].s[0]:Vt[Vt.length-2].e[0],ht=!0;else {for(var Kt=X,St=Vt.length-1,wt=!0,lt,Mt,Lt;wt&&(lt=Vt[Kt],Mt=Vt[Kt+1],!(Mt.t-this.offsetTime>rt));)Kt=Mt.t-this.offsetTime)zt=1;else if(rtW&&rt>W)||(this._caching.lastIndex=X0||lt>-1e-6&<<0?z(lt*Mt)/Mt:lt}function wt(){var lt=this.props,Mt=St(lt[0]),Lt=St(lt[1]),Ct=St(lt[4]),Et=St(lt[5]),Tt=St(lt[12]),gt=St(lt[13]);return "matrix("+Mt+","+Lt+","+Ct+","+Et+","+Tt+","+gt+")"}return function(){this.reset=H,this.rotate=N,this.rotateX=h,this.rotateY=x,this.rotateZ=S,this.skew=R,this.skewFromAxis=V,this.shear=M,this.scale=$,this.setTransform=et,this.translate=Z,this.transform=at,this.multiply=pt,this.applyToPoint=j,this.applyToX=nt,this.applyToY=ht,this.applyToZ=Q,this.applyToPointArray=$t,this.applyToTriplePoints=zt,this.applyToPointStringified=Vt,this.toCSS=Kt,this.to2dCSS=wt,this.clone=W,this.cloneFromProps=X,this.equals=J,this.inversePoints=kt,this.inversePoint=bt,this.getInverseMatrix=yt,this._t=this.transform,this.isIdentity=rt,this._identity=!0,this._identityCalculated=!1,this.props=v("float32",16),this.reset();}}();function Vs(_){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vs=function(C){return typeof C}:Vs=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},Vs(_)}var ti={};function wa(_){o(_);}function la(){be.searchAnimations();}function Ta(_){ee(_);}function hs(_){pe(_);}function Ma(_){return be.loadAnimation(_)}function Da(_){if(typeof _=="string")switch(_){case"high":ce(200);break;default:case"medium":ce(50);break;case"low":ce(10);break}else !isNaN(_)&&_>1&&ce(_);}function Fa(){return typeof navigator<"u"}function Ia(_,C){_==="expressions"&&le(C);}function La(_){switch(_){case"propertyFactory":return fe;case"shapePropertyFactory":return kr;case"matrix":return ge;default:return null}}ti.play=be.play,ti.pause=be.pause,ti.setLocationHref=wa,ti.togglePause=be.togglePause,ti.setSpeed=be.setSpeed,ti.setDirection=be.setDirection,ti.stop=be.stop,ti.searchAnimations=la,ti.registerAnimation=be.registerAnimation,ti.loadAnimation=Ma,ti.setSubframeRendering=Ta,ti.resize=be.resize,ti.goToAndStop=be.goToAndStop,ti.destroy=be.destroy,ti.setQuality=Da,ti.inBrowser=Fa,ti.installPlugin=Ia,ti.freeze=be.freeze,ti.unfreeze=be.unfreeze,ti.setVolume=be.setVolume,ti.mute=be.mute,ti.unmute=be.unmute,ti.getRegisteredAnimations=be.getRegisteredAnimations,ti.useWebWorker=n,ti.setIDPrefix=hs,ti.__getFactory=La,ti.version="5.12.2";function Ys(){document.readyState==="complete"&&(clearInterval(li),la());}function _s(_){for(var C=pa.split("&"),T=0;T"u"?"undefined":Vs(t))==="object"&&typeof e<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=ti);}catch{}var ei=function(){var _={},C={};_.registerModifier=T,_.getModifier=z;function T(H,N){C[H]||(C[H]=N);}function z(H,N,h){return new C[H](N,h)}return _}();function Ci(){}Ci.prototype.initModifierProperties=function(){},Ci.prototype.addShapeToModifier=function(){},Ci.prototype.addShape=function(_){if(!this.closed){_.sh.container.addDynamicProperty(_.sh);var C={shape:_.sh,data:_,localShapeCollection:qe.newShapeCollection()};this.shapes.push(C),this.addShapeToModifier(C),this._isAnimated&&_.setAsAnimated();}},Ci.prototype.init=function(_,C){this.shapes=[],this.elem=_,this.initDynamicPropertyContainer(_),this.initModifierProperties(_,C),this.frameId=a,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0);},Ci.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties());},f([Ze],Ci);function Gi(){}f([Ci],Gi),Gi.prototype.initModifierProperties=function(_,C){this.s=fe.getProp(_,C.s,0,.01,this),this.e=fe.getProp(_,C.e,0,.01,this),this.o=fe.getProp(_,C.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=C.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length;},Gi.prototype.addShapeToModifier=function(_){_.pathsData=[];},Gi.prototype.calculateShapeEdges=function(_,C,T,z,H){var N=[];C<=1?N.push({s:_,e:C}):_>=1?N.push({s:_-1,e:C-1}):(N.push({s:_,e:1}),N.push({s:0,e:C-1}));var h=[],x,S=N.length,M;for(x=0;xz+T)){var R,V;M.s*H<=z?R=0:R=(M.s*H-z)/T,M.e*H>=z+T?V=1:V=(M.e*H-z)/T,h.push([R,V]);}return h.length||h.push([0,0]),h},Gi.prototype.releasePathsData=function(_){var C,T=_.length;for(C=0;C1?C=1+z:this.s.v<0?C=0+z:C=this.s.v+z,this.e.v>1?T=1+z:this.e.v<0?T=0+z:T=this.e.v+z,C>T){var H=C;C=T,T=H;}C=Math.round(C*1e4)*1e-4,T=Math.round(T*1e4)*1e-4,this.sValue=C,this.eValue=T;}else C=this.sValue,T=this.eValue;var N,h,x=this.shapes.length,S,M,R,V,$,et=0;if(T===C)for(h=0;h=0;h-=1)if(at=this.shapes[h],at.shape._mdf){for(pt=at.localShapeCollection,pt.releaseShapes(),this.m===2&&x>1?(X=this.calculateShapeEdges(C,T,at.totalShapeLength,W,et),W+=at.totalShapeLength):X=[[rt,J]],M=X.length,S=0;S=1?Z.push({s:at.totalShapeLength*(rt-1),e:at.totalShapeLength*(J-1)}):(Z.push({s:at.totalShapeLength*rt,e:at.totalShapeLength}),Z.push({s:0,e:at.totalShapeLength*(J-1)}));var j=this.addShapes(at,Z[0]);if(Z[0].s!==Z[0].e){if(Z.length>1){var nt=at.shape.paths.shapes[at.shape.paths._length-1];if(nt.c){var ht=j.pop();this.addPaths(j,pt),j=this.addShapes(at,Z[1],ht);}else this.addPaths(j,pt),j=this.addShapes(at,Z[1]);}this.addPaths(j,pt);}}at.shape.paths=pt;}}},Gi.prototype.addPaths=function(_,C){var T,z=_.length;for(T=0;TC.e){T.c=!1;break}else C.s<=M&&C.e>=M+R.addedLength?(this.addSegment(H[N].v[x-1],H[N].o[x-1],H[N].i[x],H[N].v[x],T,V,pt),pt=!1):(et=Ki.getNewSegment(H[N].v[x-1],H[N].v[x],H[N].o[x-1],H[N].i[x],(C.s-M)/R.addedLength,(C.e-M)/R.addedLength,$[x-1]),this.addSegmentFromArray(et,T,V,pt),pt=!1,T.c=!1),M+=R.addedLength,V+=1;if(H[N].c&&$.length){if(R=$[x-1],M<=C.e){var rt=$[x-1].addedLength;C.s<=M&&C.e>=M+rt?(this.addSegment(H[N].v[x-1],H[N].o[x-1],H[N].i[0],H[N].v[0],T,V,pt),pt=!1):(et=Ki.getNewSegment(H[N].v[x-1],H[N].v[0],H[N].o[x-1],H[N].i[0],(C.s-M)/rt,(C.e-M)/rt,$[x-1]),this.addSegmentFromArray(et,T,V,pt),pt=!1,T.c=!1);}else T.c=!1;M+=R.addedLength,V+=1;}if(T._length&&(T.setXYAt(T.v[at][0],T.v[at][1],"i",at),T.setXYAt(T.v[T._length-1][0],T.v[T._length-1][1],"o",T._length-1)),M>C.e)break;N=this.p.keyframes[this.p.keyframes.length-1].t?(R=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/M,0),V=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/M,0)):(R=this.p.pv,V=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/M,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){R=[],V=[];var $=this.px,et=this.py;$._caching.lastFrame+$.offsetTime<=$.keyframes[0].t?(R[0]=$.getValueAtTime(($.keyframes[0].t+.01)/M,0),R[1]=et.getValueAtTime((et.keyframes[0].t+.01)/M,0),V[0]=$.getValueAtTime($.keyframes[0].t/M,0),V[1]=et.getValueAtTime(et.keyframes[0].t/M,0)):$._caching.lastFrame+$.offsetTime>=$.keyframes[$.keyframes.length-1].t?(R[0]=$.getValueAtTime($.keyframes[$.keyframes.length-1].t/M,0),R[1]=et.getValueAtTime(et.keyframes[et.keyframes.length-1].t/M,0),V[0]=$.getValueAtTime(($.keyframes[$.keyframes.length-1].t-.01)/M,0),V[1]=et.getValueAtTime((et.keyframes[et.keyframes.length-1].t-.01)/M,0)):(R=[$.pv,et.pv],V[0]=$.getValueAtTime(($._caching.lastFrame+$.offsetTime-.01)/M,$.offsetTime),V[1]=et.getValueAtTime((et._caching.lastFrame+et.offsetTime-.01)/M,et.offsetTime));}else V=_,R=V;this.v.rotate(-Math.atan2(R[1]-V[1],R[0]-V[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 z(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;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 H(){}function N(S){this._addDynamicProperty(S),this.elem.addDynamicProperty(S),this._isDirty=!0;}function h(S,M,R){if(this.elem=S,this.frameId=-1,this.propType="transform",this.data=M,this.v=new ge,this.pre=new ge,this.appliedTransformations=0,this.initDynamicPropertyContainer(R||S),M.p&&M.p.s?(this.px=fe.getProp(S,M.p.x,0,0,this),this.py=fe.getProp(S,M.p.y,0,0,this),M.p.z&&(this.pz=fe.getProp(S,M.p.z,0,0,this))):this.p=fe.getProp(S,M.p||{k:[0,0,0]},1,0,this),M.rx){if(this.rx=fe.getProp(S,M.rx,0,ft,this),this.ry=fe.getProp(S,M.ry,0,ft,this),this.rz=fe.getProp(S,M.rz,0,ft,this),M.or.k[0].ti){var V,$=M.or.k.length;for(V=0;V<$;V+=1)M.or.k[V].to=null,M.or.k[V].ti=null;}this.or=fe.getProp(S,M.or,1,ft,this),this.or.sh=!0;}else this.r=fe.getProp(S,M.r||{k:0},0,ft,this);M.sk&&(this.sk=fe.getProp(S,M.sk,0,ft,this),this.sa=fe.getProp(S,M.sa,0,ft,this)),this.a=fe.getProp(S,M.a||{k:[0,0,0]},1,0,this),this.s=fe.getProp(S,M.s||{k:[100,100,100]},1,.01,this),M.o?this.o=fe.getProp(S,M.o,0,.01,S):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0);}h.prototype={applyToMatrix:C,getValue:T,precalculateMatrix:z,autoOrient:H},f([Ze],h),h.prototype.addDynamicProperty=N,h.prototype._addDynamicProperty=Ze.prototype.addDynamicProperty;function x(S,M,R){return new h(S,M,R)}return {getTransformProperty:x}}();function ji(){}f([Ci],ji),ji.prototype.initModifierProperties=function(_,C){this.getValue=this.processKeys,this.c=fe.getProp(_,C.c,0,null,this),this.o=fe.getProp(_,C.o,0,null,this),this.tr=ar.getTransformProperty(_,C.tr,this),this.so=fe.getProp(_,C.tr.so,0,.01,this),this.eo=fe.getProp(_,C.tr.eo,0,.01,this),this.data=C,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new ge,this.rMatrix=new ge,this.sMatrix=new ge,this.tMatrix=new ge,this.matrix=new ge;},ji.prototype.applyTransforms=function(_,C,T,z,H,N){var h=N?-1:1,x=z.s.v[0]+(1-z.s.v[0])*(1-H),S=z.s.v[1]+(1-z.s.v[1])*(1-H);_.translate(z.p.v[0]*h*H,z.p.v[1]*h*H,z.p.v[2]),C.translate(-z.a.v[0],-z.a.v[1],z.a.v[2]),C.rotate(-z.r.v*h*H),C.translate(z.a.v[0],z.a.v[1],z.a.v[2]),T.translate(-z.a.v[0],-z.a.v[1],z.a.v[2]),T.scale(N?1/x:x,N?1/S:S),T.translate(z.a.v[0],z.a.v[1],z.a.v[2]);},ji.prototype.init=function(_,C,T,z){for(this.elem=_,this.arr=C,this.pos=T,this.elemsData=z,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(_),this.initModifierProperties(_,C[T]);T>0;)T-=1,this._elements.unshift(C[T]);this.dynamicProperties.length?this.k=!0:this.getValue(!0);},ji.prototype.resetElements=function(_){var C,T=_.length;for(C=0;C0?Math.floor($):Math.ceil($),at=this.pMatrix.props,pt=this.rMatrix.props,rt=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var J=0;if($>0){for(;JZ;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),J-=1;et&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-et,!0),J-=et);}z=this.data.m===1?0:this._currentCopies-1,H=this.data.m===1?1:-1,N=this._currentCopies;for(var W,X;N;){if(C=this.elemsData[z].it,T=C[C.length-1].transform.mProps.v.props,X=T.length,C[C.length-1].transform.mProps._mdf=!0,C[C.length-1].transform.op._mdf=!0,C[C.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(z/(this._currentCopies-1)),J!==0){for((z!==0&&H===1||z!==this._currentCopies-1&&H===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(pt[0],pt[1],pt[2],pt[3],pt[4],pt[5],pt[6],pt[7],pt[8],pt[9],pt[10],pt[11],pt[12],pt[13],pt[14],pt[15]),this.matrix.transform(rt[0],rt[1],rt[2],rt[3],rt[4],rt[5],rt[6],rt[7],rt[8],rt[9],rt[10],rt[11],rt[12],rt[13],rt[14],rt[15]),this.matrix.transform(at[0],at[1],at[2],at[3],at[4],at[5],at[6],at[7],at[8],at[9],at[10],at[11],at[12],at[13],at[14],at[15]),W=0;W0&&z<1?[C]:[]:[C-z,C+z].filter(function(H){return H>0&&H<1})},ni.prototype.split=function(_){if(_<=0)return [Rs(this.points[0]),this];if(_>=1)return [this,Rs(this.points[this.points.length-1])];var C=Er(this.points[0],this.points[1],_),T=Er(this.points[1],this.points[2],_),z=Er(this.points[2],this.points[3],_),H=Er(C,T,_),N=Er(T,z,_),h=Er(H,N,_);return [new ni(this.points[0],C,H,h,!0),new ni(h,N,z,this.points[3],!0)]};function Qr(_,C){var T=_.points[0][C],z=_.points[_.points.length-1][C];if(T>z){var H=z;z=T,T=H;}for(var N=Ks(3*_.a[C],2*_.b[C],_.c[C]),h=0;h0&&N[h]<1){var x=_.point(N[h])[C];xz&&(z=x);}return {min:T,max:z}}ni.prototype.bounds=function(){return {x:Qr(this,0),y:Qr(this,1)}},ni.prototype.boundingBox=function(){var _=this.bounds();return {left:_.x.min,right:_.x.max,top:_.y.min,bottom:_.y.max,width:_.x.max-_.x.min,height:_.y.max-_.y.min,cx:(_.x.max+_.x.min)/2,cy:(_.y.max+_.y.min)/2}};function ps(_,C,T){var z=_.boundingBox();return {cx:z.cx,cy:z.cy,width:z.width,height:z.height,bez:_,t:(C+T)/2,t1:C,t2:T}}function Ar(_){var C=_.bez.split(.5);return [ps(C[0],_.t1,_.t),ps(C[1],_.t,_.t2)]}function xs(_,C){return Math.abs(_.cx-C.cx)*2<_.width+C.width&&Math.abs(_.cy-C.cy)*2<_.height+C.height}function nr(_,C,T,z,H,N){if(xs(_,C)){if(T>=N||_.width<=z&&_.height<=z&&C.width<=z&&C.height<=z){H.push([_.t,C.t]);return}var h=Ar(_),x=Ar(C);nr(h[0],x[0],T+1,z,H,N),nr(h[0],x[1],T+1,z,H,N),nr(h[1],x[0],T+1,z,H,N),nr(h[1],x[1],T+1,z,H,N);}}ni.prototype.intersections=function(_,C,T){C===void 0&&(C=2),T===void 0&&(T=7);var z=[];return nr(ps(this,0,1),ps(_,0,1),0,C,z,T),z},ni.shapeSegment=function(_,C){var T=(C+1)%_.length();return new ni(_.v[C],_.o[C],_.i[T],_.v[T],!0)},ni.shapeSegmentInverted=function(_,C){var T=(C+1)%_.length();return new ni(_.v[T],_.i[T],_.o[C],_.v[C],!0)};function tr(_,C){return [_[1]*C[2]-_[2]*C[1],_[2]*C[0]-_[0]*C[2],_[0]*C[1]-_[1]*C[0]]}function $r(_,C,T,z){var H=[_[0],_[1],1],N=[C[0],C[1],1],h=[T[0],T[1],1],x=[z[0],z[1],1],S=tr(tr(H,N),tr(h,x));return zi(S[2])?null:[S[0]/S[2],S[1]/S[2]]}function Hi(_,C,T){return [_[0]+Math.cos(C)*T,_[1]-Math.sin(C)*T]}function or(_,C){return Math.hypot(_[0]-C[0],_[1]-C[1])}function Wr(_,C){return ls(_[0],C[0])&&ls(_[1],C[1])}function Ps(){}f([Ci],Ps),Ps.prototype.initModifierProperties=function(_,C){this.getValue=this.processKeys,this.amplitude=fe.getProp(_,C.s,0,null,this),this.frequency=fe.getProp(_,C.r,0,null,this),this.pointsType=fe.getProp(_,C.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0;};function ca(_,C,T,z,H,N,h){var x=T-Math.PI/2,S=T+Math.PI/2,M=C[0]+Math.cos(T)*z*H,R=C[1]-Math.sin(T)*z*H;_.setTripleAt(M,R,M+Math.cos(x)*N,R-Math.sin(x)*N,M+Math.cos(S)*h,R-Math.sin(S)*h,_.length());}function Ss(_,C){var T=[C[0]-_[0],C[1]-_[1]],z=-Math.PI*.5,H=[Math.cos(z)*T[0]-Math.sin(z)*T[1],Math.sin(z)*T[0]+Math.cos(z)*T[1]];return H}function Va(_,C){var T=C===0?_.length()-1:C-1,z=(C+1)%_.length(),H=_.v[T],N=_.v[z],h=Ss(H,N);return Math.atan2(0,1)-Math.atan2(h[1],h[0])}function fs(_,C,T,z,H,N,h){var x=Va(C,T),S=C.v[T%C._length],M=C.v[T===0?C._length-1:T-1],R=C.v[(T+1)%C._length],V=N===2?Math.sqrt(Math.pow(S[0]-M[0],2)+Math.pow(S[1]-M[1],2)):0,$=N===2?Math.sqrt(Math.pow(S[0]-R[0],2)+Math.pow(S[1]-R[1],2)):0;ca(_,C.v[T%C._length],x,h,z,$/((H+1)*2),V/((H+1)*2));}function vr(_,C,T,z,H,N){for(var h=0;h1&&C.length>1&&(H=Os(_[0],C[C.length-1]),H)?[[_[0].split(H[0])[0]],[C[C.length-1].split(H[1])[1]]]:[T,z]}function wr(_){for(var C,T=1;T<_.length;T+=1)C=Bs(_[T-1],_[T]),_[T-1]=C[0],_[T]=C[1];return _.length>1&&(C=Bs(_[_.length-1],_[0]),_[_.length-1]=C[0],_[0]=C[1]),_}function us(_,C){var T=_.inflectionPoints(),z,H,N,h;if(T.length===0)return [Cr(_,C)];if(T.length===1||ls(T[1],1))return N=_.split(T[0]),z=N[0],H=N[1],[Cr(z,C),Cr(H,C)];N=_.split(T[0]),z=N[0];var x=(T[1]-T[0])/(1-T[0]);return N=N[1].split(x),h=N[0],H=N[1],[Cr(z,C),Cr(h,C),Cr(H,C)]}function Li(){}f([Ci],Li),Li.prototype.initModifierProperties=function(_,C){this.getValue=this.processKeys,this.amount=fe.getProp(_,C.a,0,null,this),this.miterLimit=fe.getProp(_,C.ml,0,null,this),this.lineJoin=C.lj,this._isAnimated=this.amount.effectsSequence.length!==0;},Li.prototype.processPath=function(_,C,T,z){var H=hi.newElement();H.c=_.c;var N=_.length();_.c||(N-=1);var h,x,S,M=[];for(h=0;h=0;h-=1)S=ni.shapeSegmentInverted(_,h),M.push(us(S,C));M=wr(M);var R=null,V=null;for(h=0;h0&&(Et=!1),Et){var Ft=g("style");Ft.setAttribute("f-forigin",lt[Mt].fOrigin),Ft.setAttribute("f-origin",lt[Mt].origin),Ft.setAttribute("f-family",lt[Mt].fFamily),Ft.type="text/css",Ft.innerText="@font-face {font-family: "+lt[Mt].fFamily+"; font-style: normal; src: url('"+lt[Mt].fPath+"');}",wt.appendChild(Ft);}}else if(lt[Mt].fOrigin==="g"||lt[Mt].origin===1){for(Tt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),gt=0;gt=55296&<<=56319){var Mt=St.charCodeAt(1);Mt>=56320&&Mt<=57343&&(wt=(lt-55296)*1024+Mt-56320+65536);}return wt}function nt(St,wt){var lt=St.toString(16)+wt.toString(16);return V.indexOf(lt)!==-1}function ht(St){return St===S}function Q(St){return St===x}function yt(St){var wt=j(St);return wt>=M&&wt<=R}function bt(St){return yt(St.substr(0,2))&&yt(St.substr(2,2))}function kt(St){return T.indexOf(St)!==-1}function zt(St,wt){var lt=j(St.substr(wt,2));if(lt!==z)return !1;var Mt=0;for(wt+=2;Mt<5;){if(lt=j(St.substr(wt,2)),lth)return !1;Mt+=1,wt+=2;}return j(St.substr(wt,2))===H}function $t(){this.isLoaded=!0;}var Vt=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);};Vt.isModifier=nt,Vt.isZeroWidthJoiner=ht,Vt.isFlagEmoji=bt,Vt.isRegionalCode=yt,Vt.isCombinedCharacter=kt,Vt.isRegionalFlag=zt,Vt.isVariationSelector=Q,Vt.BLACK_FLAG_CODE_POINT=z;var Kt={addChars:rt,addFonts:pt,getCharData:J,getFontByName:X,measureText:W,checkLoadedFonts:Z,setIsLoaded:$t};return Vt.prototype=Kt,Vt}();function hr(_){this.animationData=_;}hr.prototype.getProp=function(_){return this.animationData.slots&&this.animationData.slots[_.sid]?Object.assign(_,this.animationData.slots[_.sid].p):_};function ts(_){return new hr(_)}function ds(){}ds.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[];},addRenderableComponent:function(_){this.renderableComponents.indexOf(_)===-1&&this.renderableComponents.push(_);},removeRenderableComponent:function(_){this.renderableComponents.indexOf(_)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(_),1);},prepareRenderableFrame:function(_){this.checkLayerLimits(_);},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(_){this.data.ip-this.data.st<=_&&this.data.op-this.data.st>_?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide());},renderRenderable:function(){var _,C=this.renderableComponents.length;for(_=0;_.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0));},pi.prototype.show=function(){},pi.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1;},pi.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1;},pi.prototype.resume=function(){this._canPlay=!0;},pi.prototype.setRate=function(_){this.audio.rate(_);},pi.prototype.volume=function(_){this._volumeMultiplier=_,this._previousVolume=_*this._volume,this.audio.volume(this._previousVolume);},pi.prototype.getBaseElement=function(){return null},pi.prototype.destroy=function(){},pi.prototype.sourceRectAtTime=function(){},pi.prototype.initExpressions=function(){};function Ge(){}Ge.prototype.checkLayers=function(_){var C,T=this.layers.length,z;for(this.completeLayers=!0,C=T-1;C>=0;C-=1)this.elements[C]||(z=this.layers[C],z.ip-z.st<=_-this.layers[C].st&&z.op-z.st>_-this.layers[C].st&&this.buildItem(C)),this.completeLayers=this.elements[C]?this.completeLayers:!1;this.checkPendingElements();},Ge.prototype.createItem=function(_){switch(_.ty){case 2:return this.createImage(_);case 0:return this.createComp(_);case 1:return this.createSolid(_);case 3:return this.createNull(_);case 4:return this.createShape(_);case 5:return this.createText(_);case 6:return this.createAudio(_);case 13:return this.createCamera(_);case 15:return this.createFootage(_);default:return this.createNull(_)}},Ge.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Ge.prototype.createAudio=function(_){return new pi(_,this.globalData,this)},Ge.prototype.createFootage=function(_){return new Ce(_,this.globalData,this)},Ge.prototype.buildAllItems=function(){var _,C=this.layers.length;for(_=0;_0&&(this.maskElement.setAttribute("id",$),this.element.maskedElement.setAttribute(J,"url("+d()+"#"+$+")"),z.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this);}Zi.prototype.getMaskProperty=function(_){return this.viewData[_].prop},Zi.prototype.renderFrame=function(_){var C=this.element.finalTransform.mat,T,z=this.masksProperties.length;for(T=0;T1&&(z+=" C"+C.o[H-1][0]+","+C.o[H-1][1]+" "+C.i[0][0]+","+C.i[0][1]+" "+C.v[0][0]+","+C.v[0][1]),T.lastPath!==z){var h="";T.elem&&(C.c&&(h=_.inv?this.solidPath+z:z),T.elem.setAttribute("d",h)),T.lastPath=z;}},Zi.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null;};var Mr=function(){var _={};_.createFilter=C,_.createAlphaToLuminanceFilter=T;function C(z,H){var N=Wt("filter");return N.setAttribute("id",z),H!==!0&&(N.setAttribute("filterUnits","objectBoundingBox"),N.setAttribute("x","0%"),N.setAttribute("y","0%"),N.setAttribute("width","100%"),N.setAttribute("height","100%")),N}function T(){var z=Wt("feColorMatrix");return z.setAttribute("type","matrix"),z.setAttribute("color-interpolation-filters","sRGB"),z.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),z}return _}(),da=function(){var _={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return (/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))&&(_.maskType=!1),/firefox/i.test(navigator.userAgent)&&(_.svgLumaHidden=!1),_}(),ks={},Jr="filter_result_";function Ui(_){var C,T="SourceGraphic",z=_.data.ef?_.data.ef.length:0,H=K(),N=Mr.createFilter(H,!0),h=0;this.filters=[];var x;for(C=0;C=0&&(T=this.shapeModifiers[_].processShapes(this._isFirstFrame),!T);_-=1);}},searchProcessedElement:function(_){for(var C=this.processedElements,T=0,z=C.length;T.01)return !1;T+=1;}return !0},As.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return !1;if(this.data.k.k[0].s)for(var _=0,C=this.data.k.k.length;_0;)rt=$.transformers[yt].mProps._mdf||rt,Q-=1,yt-=1;if(rt)for(Q=j-$.styles[W].lvl,yt=$.transformers.length-1;Q>0;)ht.multiply($.transformers[yt].mProps.v),Q-=1,yt-=1;}else ht=_;if(nt=$.sh.paths,at=nt._length,rt){for(pt="",Z=0;Z=1?$t=.99:$t<=-1&&($t=-.99);var Vt=kt*$t,Kt=Math.cos(zt+$.a.v)*Vt+pt[0],St=Math.sin(zt+$.a.v)*Vt+pt[1];Z.setAttribute("fx",Kt),Z.setAttribute("fy",St),at&&!$.g._collapsable&&($.of.setAttribute("fx",Kt),$.of.setAttribute("fy",St));}}}function R(V,$,et){var Z=$.style,at=$.d;at&&(at._mdf||et)&&at.dashStr&&(Z.pElem.setAttribute("stroke-dasharray",at.dashStr),Z.pElem.setAttribute("stroke-dashoffset",at.dashoffset[0])),$.c&&($.c._mdf||et)&&Z.pElem.setAttribute("stroke","rgb("+F($.c.v[0])+","+F($.c.v[1])+","+F($.c.v[2])+")"),($.o._mdf||et)&&Z.pElem.setAttribute("stroke-opacity",$.o.v),($.w._mdf||et)&&(Z.pElem.setAttribute("stroke-width",$.w.v),Z.msElem&&Z.msElem.setAttribute("stroke-width",$.w.v));}return T}();function Oe(_,C,T){this.shapes=[],this.shapesData=_.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(_,C,T),this.prevViewData=[];}f([Ve,wi,er,Qs,Ti,Pe,Es],Oe),Oe.prototype.initSecondaryElement=function(){},Oe.prototype.identityMatrix=new ge,Oe.prototype.buildExpressionInterface=function(){},Oe.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes();},Oe.prototype.filterUniqueShapes=function(){var _,C=this.shapes.length,T,z,H=this.stylesList.length,N,h=[],x=!1;for(z=0;z1&&x&&this.setShapesAsAnimated(h);}},Oe.prototype.setShapesAsAnimated=function(_){var C,T=_.length;for(C=0;C=0;S-=1){if(pt=this.searchProcessedElement(_[S]),pt?C[S]=T[pt-1]:_[S]._render=h,_[S].ty==="fl"||_[S].ty==="st"||_[S].ty==="gf"||_[S].ty==="gs"||_[S].ty==="no")pt?C[S].style.closed=!1:C[S]=this.createStyleElement(_[S],H),_[S]._render&&C[S].style.pElem.parentNode!==z&&z.appendChild(C[S].style.pElem),$.push(C[S].style);else if(_[S].ty==="gr"){if(!pt)C[S]=this.createGroupElement(_[S]);else for(V=C[S].it.length,R=0;R1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},ir.prototype.addEffect=function(_){this.effectsSequence.push(_),this.elem.addDynamicProperty(this);},ir.prototype.getValue=function(_){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!_)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var C=this.currentData,T=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var z,H=this.effectsSequence.length,N=_||this.data.d.k[this.keysIndex].s;for(z=0;zC);)T+=1;return this.keysIndex!==T&&(this.keysIndex=T),this.data.d.k[this.keysIndex].s},ir.prototype.buildFinalText=function(_){for(var C=[],T=0,z=_.length,H,N,h=!1,x=!1,S="";T=55296&&H<=56319?br.isRegionalFlag(_,T)?S=_.substr(T,14):(N=_.charCodeAt(T+1),N>=56320&&N<=57343&&(br.isModifier(H,N)?(S=_.substr(T,2),h=!0):br.isFlagEmoji(_.substr(T,4))?S=_.substr(T,4):S=_.substr(T,2))):H>56319?(N=_.charCodeAt(T+1),br.isVariationSelector(H)&&(h=!0)):br.isZeroWidthJoiner(H)&&(h=!0,x=!0),h?(C[C.length-1]+=S,h=!1):C.push(S),T+=S.length;return C},ir.prototype.completeTextData=function(_){_.__complete=!0;var C=this.elem.globalData.fontManager,T=this.data,z=[],H,N,h,x=0,S,M=T.m.g,R=0,V=0,$=0,et=[],Z=0,at=0,pt,rt,J=C.getFontByName(_.f),W,X=0,j=Tr(J);_.fWeight=j.weight,_.fStyle=j.style,_.finalSize=_.s,_.finalText=this.buildFinalText(_.t),N=_.finalText.length,_.finalLineHeight=_.lh;var nt=_.tr/1e3*_.finalSize,ht;if(_.sz)for(var Q=!0,yt=_.sz[0],bt=_.sz[1],kt,zt;Q;){zt=this.buildFinalText(_.t),kt=0,Z=0,N=zt.length,nt=_.tr/1e3*_.finalSize;var $t=-1;for(H=0;Hyt&&zt[H]!==" "?($t===-1?N+=1:H=$t,kt+=_.finalLineHeight||_.finalSize*1.2,zt.splice(H,$t===H?1:0,"\r"),$t=-1,Z=0):(Z+=X,Z+=nt);kt+=J.ascent*_.finalSize/100,this.canResize&&_.finalSize>this.minimumFontSize&&btat?Z:at,Z=-2*nt,S="",h=!0,$+=1):S=Kt,C.chars?(W=C.getCharData(Kt,J.fStyle,C.getFontByName(_.f).fFamily),X=h?0:W.w*_.finalSize/100):X=C.measureText(S,_.f,_.finalSize),Kt===" "?Vt+=X+nt:(Z+=X+nt+Vt,Vt=0),z.push({l:X,an:X,add:R,n:h,anIndexes:[],val:S,line:$,animatorJustifyOffset:0}),M==2){if(R+=X,S===""||S===" "||H===N-1){for((S===""||S===" ")&&(R-=X);V<=H;)z[V].an=R,z[V].ind=x,z[V].extra=X,V+=1;x+=1,R=0;}}else if(M==3){if(R+=X,S===""||H===N-1){for(S===""&&(R-=X);V<=H;)z[V].an=R,z[V].ind=x,z[V].extra=X,V+=1;R=0,x+=1;}}else z[x].ind=x,z[x].extra=0,x+=1;if(_.l=z,at=Z>at?Z:at,et.push(Z),_.sz)_.boxWidth=_.sz[0],_.justifyOffset=0;else switch(_.boxWidth=at,_.j){case 1:_.justifyOffset=-_.boxWidth;break;case 2:_.justifyOffset=-_.boxWidth/2;break;default:_.justifyOffset=0;}_.lineWidths=et;var St=T.a,wt,lt;rt=St.length;var Mt,Lt,Ct=[];for(pt=0;pt0?h=this.ne.v/100:x=-this.ne.v/100,this.xe.v>0?S=1-this.xe.v/100:M=1+this.xe.v/100;var R=ze.getBezierEasing(h,x,S,M).get,V=0,$=this.finalS,et=this.finalE,Z=this.data.sh;if(Z===2)et===$?V=N>=et?1:0:V=_(0,C(.5/(et-$)+(N-$)/(et-$),1)),V=R(V);else if(Z===3)et===$?V=N>=et?0:1:V=1-_(0,C(.5/(et-$)+(N-$)/(et-$),1)),V=R(V);else if(Z===4)et===$?V=0:(V=_(0,C(.5/(et-$)+(N-$)/(et-$),1)),V<.5?V*=2:V=1-2*(V-.5)),V=R(V);else if(Z===5){if(et===$)V=0;else {var at=et-$;N=C(_(0,N+.5-$),et-$);var pt=-at/2+N,rt=at/2;V=Math.sqrt(1-pt*pt/(rt*rt));}V=R(V);}else Z===6?(et===$?V=0:(N=C(_(0,N+.5-$),et-$),V=(1+Math.cos(Math.PI+Math.PI*2*N/(et-$)))/2),V=R(V)):(N>=T($)&&(N-$<0?V=_(0,C(C(et,1)-($-N),1)):V=_(0,C(et-N,1))),V=R(V));if(this.sm.v!==100){var J=this.sm.v*.01;J===0&&(J=1e-8);var W=.5-J*.5;V1&&(V=1));}return V*this.a.v},getValue:function(N){this.iterateDynamicProperties(),this._mdf=N||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,N&&this.data.r===2&&(this.e.v=this._currentTextLength);var h=this.data.r===2?1:100/this.data.totalChars,x=this.o.v/h,S=this.s.v/h+x,M=this.e.v/h+x;if(S>M){var R=S;S=M,M=R;}this.finalS=S,this.finalE=M;}},f([Ze],z);function H(N,h,x){return new z(N,h)}return {getTextSelectorProp:H}}();function xi(_,C,T){var z={propType:!1},H=fe.getProp,N=C.a;this.a={r:N.r?H(_,N.r,0,ft,T):z,rx:N.rx?H(_,N.rx,0,ft,T):z,ry:N.ry?H(_,N.ry,0,ft,T):z,sk:N.sk?H(_,N.sk,0,ft,T):z,sa:N.sa?H(_,N.sa,0,ft,T):z,s:N.s?H(_,N.s,1,.01,T):z,a:N.a?H(_,N.a,1,0,T):z,o:N.o?H(_,N.o,0,.01,T):z,p:N.p?H(_,N.p,1,0,T):z,sw:N.sw?H(_,N.sw,0,0,T):z,sc:N.sc?H(_,N.sc,1,0,T):z,fc:N.fc?H(_,N.fc,1,0,T):z,fh:N.fh?H(_,N.fh,0,0,T):z,fs:N.fs?H(_,N.fs,0,.01,T):z,fb:N.fb?H(_,N.fb,0,.01,T):z,t:N.t?H(_,N.t,0,0,T):z},this.s=_r.getTextSelectorProp(_,C.s,T),this.s.t=C.s.t;}function Cs(_,C,T){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=_,this._renderType=C,this._elem=T,this._animatorsData=m(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(T);}Cs.prototype.searchProperties=function(){var _,C=this._textData.a.length,T,z=fe.getProp;for(_=0;_=Z+Ji||!j?(yt=(Z+Ji-pt)/at.partialLength,gt=X.point[0]+(at.point[0]-X.point[0])*yt,Ft=X.point[1]+(at.point[1]-X.point[1])*yt,N.translate(-T[0]*$[R].an*.005,-(T[1]*Vt)*.01),rt=!1):j&&(pt+=at.partialLength,J+=1,J>=j.length&&(J=0,W+=1,nt[W]?j=nt[W].points:kt.v.c?(J=0,W=0,j=nt[W].points):(pt-=at.partialLength,j=null)),j&&(X=at,at=j[J],ht=at.partialLength));Tt=$[R].an/2-$[R].add,N.translate(-Tt,0,0);}else Tt=$[R].an/2-$[R].add,N.translate(-Tt,0,0),N.translate(-T[0]*$[R].an*.005,-T[1]*Vt*.01,0);for(lt=0;lt_?this.textSpans[_].span:Wt(x?"g":"text"),W<=_){if(S.setAttribute("stroke-linecap","butt"),S.setAttribute("stroke-linejoin","round"),S.setAttribute("stroke-miterlimit","4"),this.textSpans[_].span=S,x){var j=Wt("g");S.appendChild(j),this.textSpans[_].childSpan=j;}this.textSpans[_].span=S,this.layerElement.appendChild(S);}S.style.display="inherit";}if(M.reset(),V&&(h[_].n&&($=-at,et+=T.yOffset,et+=Z?1:0,Z=!1),this.applyTextPropertiesToMatrix(T,M,h[_].line,$,et),$+=h[_].l||0,$+=at),x){X=this.globalData.fontManager.getCharData(T.finalText[_],z.fStyle,this.globalData.fontManager.getFontByName(T.f).fFamily);var nt;if(X.t===1)nt=new A(X.data,this.globalData,this);else {var ht=ia;X.data&&X.data.shapes&&(ht=this.buildShapeData(X.data,T.finalSize)),nt=new Oe(ht,this.globalData,this);}if(this.textSpans[_].glyph){var Q=this.textSpans[_].glyph;this.textSpans[_].childSpan.removeChild(Q.layerElement),Q.destroy();}this.textSpans[_].glyph=nt,nt._debug=!0,nt.prepareFrame(0),nt.renderFrame(),this.textSpans[_].childSpan.appendChild(nt.layerElement),X.t===1&&this.textSpans[_].childSpan.setAttribute("transform","scale("+T.finalSize/100+","+T.finalSize/100+")");}else V&&S.setAttribute("transform","translate("+M.props[12]+","+M.props[13]+")"),S.textContent=h[_].val,S.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}V&&S&&S.setAttribute("d",R);}for(;_=0;C-=1)(this.completeLayers||this.elements[C])&&this.elements[C].prepareFrame(_-this.layers[C].st);if(this.globalData._mdf)for(C=0;C=0;T-=1)(this.completeLayers||this.elements[T])&&(this.elements[T].prepareFrame(this.renderedFrame-this.layers[T].st),this.elements[T]._mdf&&(this._mdf=!0));}},lr.prototype.renderInnerContent=function(){var _,C=this.layers.length;for(_=0;_0&&S<1&&H[$].push(this.calculateF(S,_,C,T,z,$))):(M=h*h-4*x*N,M>=0&&(R=(-h+w(M))/(2*N),R>0&&R<1&&H[$].push(this.calculateF(R,_,C,T,z,$)),V=(-h-w(M))/(2*N),V>0&&V<1&&H[$].push(this.calculateF(V,_,C,T,z,$)))));this.shapeBoundingBox.left=G.apply(null,H[0]),this.shapeBoundingBox.top=G.apply(null,H[1]),this.shapeBoundingBox.right=B.apply(null,H[0]),this.shapeBoundingBox.bottom=B.apply(null,H[1]);},_t.prototype.calculateF=function(_,C,T,z,H,N){return P(1-_,3)*C[N]+3*P(1-_,2)*_*T[N]+3*(1-_)*P(_,2)*z[N]+P(_,3)*H[N]},_t.prototype.calculateBoundingBox=function(_,C){var T,z=_.length;for(T=0;TT&&(T=H);}T*=_.mult;}else T=_.v*_.mult;C.x-=T,C.xMax+=T,C.y-=T,C.yMax+=T;},_t.prototype.currentBoxContains=function(_){return this.currentBBox.x<=_.x&&this.currentBBox.y<=_.y&&this.currentBBox.width+this.currentBBox.x>=_.x+_.width&&this.currentBBox.height+this.currentBBox.y>=_.y+_.height},_t.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var _=this.tempBoundingBox,C=999999;if(_.x=C,_.xMax=-C,_.y=C,_.yMax=-C,this.calculateBoundingBox(this.itemsData,_),_.width=_.xMax<_.x?0:_.xMax-_.x,_.height=_.yMax<_.y?0:_.yMax-_.y,this.currentBoxContains(_))return;var T=!1;if(this.currentBBox.w!==_.width&&(this.currentBBox.w=_.width,this.shapeCont.setAttribute("width",_.width),T=!0),this.currentBBox.h!==_.height&&(this.currentBBox.h=_.height,this.shapeCont.setAttribute("height",_.height),T=!0),T||this.currentBBox.x!==_.x||this.currentBBox.y!==_.y){this.currentBBox.w=_.width,this.currentBBox.h=_.height,this.currentBBox.x=_.x,this.currentBBox.y=_.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var z=this.shapeCont.style,H="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";z.transform=H,z.webkitTransform=H;}}};function Dt(_,C,T){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(_,C,T);}f([Ve,wi,ot,Ti,Pe,Es,oi],Dt),Dt.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var _=Wt("g");this.maskedElement.appendChild(_),this.innerElem=_;}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting();},Dt.prototype.buildNewText=function(){var _=this.textProperty.currentData;this.renderedLetters=m(_.l?_.l.length:0);var C=this.innerElem.style,T=_.fc?this.buildColor(_.fc):"rgba(0,0,0,0)";C.fill=T,C.color=T,_.sc&&(C.stroke=this.buildColor(_.sc),C.strokeWidth=_.sw+"px");var z=this.globalData.fontManager.getFontByName(_.f);if(!this.globalData.fontManager.chars)if(C.fontSize=_.finalSize+"px",C.lineHeight=_.finalSize+"px",z.fClass)this.innerElem.className=z.fClass;else {C.fontFamily=z.fFamily;var H=_.fWeight,N=_.fStyle;C.fontStyle=N,C.fontWeight=H;}var h,x,S=_.l;x=S.length;var M,R,V,$=this.mHelper,et,Z="",at=0;for(h=0;h=0;C-=1){var z=this.hierarchy[C].finalTransform.mProp;this.mat.translate(-z.p.v[0],-z.p.v[1],z.p.v[2]),this.mat.rotateX(-z.or.v[0]).rotateY(-z.or.v[1]).rotateZ(z.or.v[2]),this.mat.rotateX(-z.rx.v).rotateY(-z.ry.v).rotateZ(z.rz.v),this.mat.scale(1/z.s.v[0],1/z.s.v[1],1/z.s.v[2]),this.mat.translate(z.a.v[0],z.a.v[1],z.a.v[2]);}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var H;this.p?H=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:H=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var N=Math.sqrt(Math.pow(H[0],2)+Math.pow(H[1],2)+Math.pow(H[2],2)),h=[H[0]/N,H[1]/N,H[2]/N],x=Math.sqrt(h[2]*h[2]+h[0]*h[0]),S=Math.atan2(h[1],x),M=Math.atan2(h[0],-h[2]);this.mat.rotateY(M).rotateX(-S);}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var R=!this._prevMat.equals(this.mat);if((R||this.pe._mdf)&&this.comp.threeDElements){T=this.comp.threeDElements.length;var V,$,et;for(C=0;C=_)return this.threeDElements[C].perspectiveElem;C+=1;}return null},Rt.prototype.createThreeDContainer=function(_,C){var T=g("div"),z,H;dt(T);var N=g("div");if(dt(N),C==="3d"){z=T.style,z.width=this.globalData.compSize.w+"px",z.height=this.globalData.compSize.h+"px";var h="50% 50%";z.webkitTransformOrigin=h,z.mozTransformOrigin=h,z.transformOrigin=h,H=N.style;var x="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";H.transform=x,H.webkitTransform=x;}T.appendChild(N);var S={container:N,perspectiveElem:T,startPos:_,endPos:_,type:C};return this.threeDElements.push(S),S},Rt.prototype.build3dContainers=function(){var _,C=this.layers.length,T,z="";for(_=0;_=0;_-=1)this.resizerElem.appendChild(this.threeDElements[_].perspectiveElem);},Rt.prototype.addTo3dContainer=function(_,C){for(var T=0,z=this.threeDElements.length;TT?(H=_/this.globalData.compSize.w,N=_/this.globalData.compSize.w,h=0,x=(C-this.globalData.compSize.h*(_/this.globalData.compSize.w))/2):(H=C/this.globalData.compSize.h,N=C/this.globalData.compSize.h,h=(_-this.globalData.compSize.w*(C/this.globalData.compSize.h))/2,x=0);var S=this.resizerElem.style;S.webkitTransform="matrix3d("+H+",0,0,0,0,"+N+",0,0,0,0,1,0,"+h+","+x+",0,1)",S.transform=S.webkitTransform;},Rt.prototype.renderFrame=I.prototype.renderFrame,Rt.prototype.hide=function(){this.resizerElem.style.display="none";},Rt.prototype.show=function(){this.resizerElem.style.display="block";},Rt.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else {var _=this.globalData.compSize.w,C=this.globalData.compSize.h,T,z=this.threeDElements.length;for(T=0;Tpg});var lg,pg,Oc=cr(()=>{ns();lg=ue((exports,module)=>{typeof navigator<"u"&&function(t,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.lottie=e());}(exports,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t;},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t;},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,r=t.length,s;for(i=0;i1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t=[],e,i;for(e=0;e<256;e+=1)i=e.toString(16),t[e]=i.length===1?"0"+i:i;return function(r,s,a){return r<0&&(r=0),s<0&&(s=0),a<0&&(a=0),"#"+t[r]+t[s]+t[a]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t;},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t;},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t;},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t;},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t;};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(e){return typeof e}:_typeof$5=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(t)}var dataManager=function(){var t=1,e=[],i,r,s={onmessage:function(){},postMessage:function(l){i({data:l});}},a={postMessage:function(l){s.onmessage({data:l});}};function n(l){if(window.Worker&&window.Blob&&getWebWorker()){var b=new Blob(["var _workerSelf = self; self.onmessage = ",l.toString()],{type:"text/javascript"}),v=URL.createObjectURL(b);return new Worker(v)}return i=l,s}function p(){r||(r=n(function(l){function b(){function m(tt,vt){var D,O,k=tt.length,L,K,U,Ht;for(O=0;O=0;vt-=1)if(tt[vt].ty==="sh")if(tt[vt].ks.k.i)P(tt[vt].ks.k);else for(k=tt[vt].ks.k.length,O=0;OD[0]?!0:D[0]>tt[0]?!1:tt[1]>D[1]?!0:D[1]>tt[1]?!1:tt[2]>D[2]?!0:D[2]>tt[2]?!1:null}var F=function(){var tt=[4,4,14];function vt(O){var k=O.t.d;O.t.d={k:[{s:k,t:0}]};}function D(O){var k,L=O.length;for(k=0;k=0;k-=1)if(O[k].ty==="sh")if(O[k].ks.k.i)O[k].ks.k.c=O[k].closed;else for(U=O[k].ks.k.length,K=0;K500)&&(this._imageLoaded(),clearInterval(y)),u+=1;}.bind(this),50);}function a(c){var u=r(c,this.assetsPath,this.path),y=createNS("image");isSafari?this.testImageLoaded(y):y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",function(){P.img=t,this._imageLoaded();}.bind(this),!1),y.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var P={img:y,assetData:c};return P}function n(c){var u=r(c,this.assetsPath,this.path),y=createTag("img");y.crossOrigin="anonymous",y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",function(){P.img=t,this._imageLoaded();}.bind(this),!1),y.src=u;var P={img:y,assetData:c};return P}function p(c){var u={assetData:c},y=r(c,this.assetsPath,this.path);return dataManager.loadData(y,function(P){u.img=P,this._footageLoaded();}.bind(this),function(){u.img={},this._footageLoaded();}.bind(this)),u}function o(c,u){this.imagesLoadedCb=u;var y,P=c.length;for(y=0;ythis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e=this.animationData.layers,i,r=e.length,s=t.layers,a,n=s.length;for(a=0;athis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame");},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame);}catch(t){this.triggerRenderFrameError(t);}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")));},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause());},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause());},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0));},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):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):e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,e=0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"));}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]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");},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0);},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),_typeof$4(t[0])==="object"){var i,r=t.length;for(i=0;i=0;O-=1)e[O].animation.destroy(D);}function G(D,O,k){var L=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),K,U=L.length;for(K=0;K0?P=G:y=G;while(Math.abs(B)>a&&++it=s?E(u,ft,y,P):ct===0?ft:m(u,F,F+o,y,P)}},t}(),pooling=function(){function t(e){return e.concat(createSizedArray(e.length))}return {double:t}}(),poolFactory=function(){return function(t,e,i){var r=0,s=t,a=createSizedArray(s),n={newElement:p,release:o};function p(){var d;return r?(r-=1,d=a[r]):d=e(),d}function o(d){r===s&&(a=pooling.double(a),s*=2),i&&i(d),a[r]=d,r+=1;}return n}}(),bezierLengthPool=function(){function t(){return {addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,t)}(),segmentsLengthPool=function(){function t(){return {lengths:[],totalLength:0}}function e(i){var r,s=i.lengths.length;for(r=0;r-.001&&u<.001}function i(l,b,v,m,E,c,u,y,P){if(v===0&&c===0&&P===0)return e(l,b,m,E,u,y);var w=t.sqrt(t.pow(m-l,2)+t.pow(E-b,2)+t.pow(c-v,2)),F=t.sqrt(t.pow(u-l,2)+t.pow(y-b,2)+t.pow(P-v,2)),B=t.sqrt(t.pow(u-m,2)+t.pow(y-E,2)+t.pow(P-c,2)),G;return w>F?w>B?G=w-F-B:G=B-F-w:B>F?G=B-F-w:G=F-w-B,G>-1e-4&&G<1e-4}var r=function(){return function(l,b,v,m){var E=getDefaultCurveSegments(),c,u,y,P,w,F=0,B,G=[],it=[],ft=bezierLengthPool.newElement();for(y=v.length,c=0;cu?-1:1,w=!0;w;)if(m[c]<=u&&m[c+1]>u?(y=(u-m[c])/(m[c+1]-m[c]),w=!1):c+=P,c<0||c>=E-1){if(c===E-1)return v[c];w=!1;}return v[c]+(v[c+1]-v[c])*y}function d(l,b,v,m,E,c){var u=o(E,c),y=1-u,P=t.round((y*y*y*l[0]+(u*y*y+y*u*y+y*y*u)*v[0]+(u*u*y+y*u*u+u*y*u)*m[0]+u*u*u*b[0])*1e3)/1e3,w=t.round((y*y*y*l[1]+(u*y*y+y*u*y+y*y*u)*v[1]+(u*u*y+y*u*u+u*y*u)*m[1]+u*u*u*b[1])*1e3)/1e3;return [P,w]}var g=createTypedArray("float32",8);function f(l,b,v,m,E,c,u){E<0?E=0:E>1&&(E=1);var y=o(E,u);c=c>1?1:c;var P=o(c,u),w,F=l.length,B=1-y,G=1-P,it=B*B*B,ft=y*B*B*3,ct=y*y*B*3,dt=y*y*y,Pt=B*B*G,tt=y*B*G+B*y*G+B*B*P,vt=y*y*G+B*y*P+y*B*P,D=y*y*P,O=B*G*G,k=y*G*G+B*P*G+B*G*P,L=y*P*G+B*P*P+y*G*P,K=y*P*P,U=G*G*G,Ht=P*G*G+G*P*G+G*G*P,It=P*P*G+G*P*P+P*G*P,Gt=P*P*P;for(w=0;w=d.t-i){o.h&&(o=d),s=0;break}if(d.t-i>t){s=a;break}a=c||t=c?P.points.length-1:0;for(l=P.points[w].point.length,f=0;f=G&&F=c)r[0]=y[0],r[1]=y[1],r[2]=y[2];else if(t<=u)r[0]=o.s[0],r[1]=o.s[1],r[2]=o.s[2];else {var tt=createQuaternion(o.s),vt=createQuaternion(y),D=(t-u)/(c-u);quaternionToEuler(r,slerp(tt,vt,D));}else for(a=0;a=c?b=1:t1e-6?(l=Math.acos(b),v=Math.sin(l),m=Math.sin((1-i)*l)/v,E=Math.sin(i*l)/v):(m=1-i,E=i),r[0]=m*s+E*o,r[1]=m*a+E*d,r[2]=m*n+E*g,r[3]=m*p+E*f,r}function quaternionToEuler(t,e){var i=e[0],r=e[1],s=e[2],a=e[3],n=Math.atan2(2*r*a-2*i*s,1-2*r*r-2*s*s),p=Math.asin(2*i*r+2*s*a),o=Math.atan2(2*i*a-2*r*s,1-2*i*i-2*s*s);t[0]=n/degToRads,t[1]=p/degToRads,t[2]=o/degToRads;}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,r=t[2]*degToRads,s=Math.cos(e/2),a=Math.cos(i/2),n=Math.cos(r/2),p=Math.sin(e/2),o=Math.sin(i/2),d=Math.sin(r/2),g=s*a*n-p*o*d,f=p*o*n+s*a*d,l=p*a*n+s*o*d,b=s*o*n-p*a*d;return [f,l,b,g]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(t,this._caching);this.pv=r;}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if(this.propType==="unidimensional")e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,r=this.v.length;i1e-5&&(this.v[i]=e,this._mdf=!0),i+=1;}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[r]||a[r]&&!s)&&(a[r]=pointPool.newElement()),a[r][0]=t,a[r][1]=e;},ShapePath.prototype.setTripleAt=function(t,e,i,r,s,a,n,p){this.setXYAt(t,e,"v",n,p),this.setXYAt(i,r,"o",n,p),this.setXYAt(s,a,"i",n,p);},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,r=this.i,s=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),s=1);var a=this._length-1,n=this._length,p;for(p=s;p=tt[tt.length-1].t-this.offsetTime)w=tt[tt.length-1].s?tt[tt.length-1].s[0]:tt[tt.length-2].e[0],B=!0;else {for(var vt=P,D=tt.length-1,O=!0,k,L,K;O&&(k=tt[vt],L=tt[vt+1],!(L.t-this.offsetTime>c));)vt=L.t-this.offsetTime)dt=1;else if(cy&&c>y)||(this._caching.lastIndex=P0||k>-1e-6&&k<0?r(k*L)/L:k}function O(){var k=this.props,L=D(k[0]),K=D(k[1]),U=D(k[4]),Ht=D(k[5]),It=D(k[12]),Gt=D(k[13]);return "matrix("+L+","+K+","+U+","+Ht+","+It+","+Gt+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=n,this.rotateY=p,this.rotateZ=o,this.skew=g,this.skewFromAxis=f,this.shear=d,this.scale=l,this.setTransform=b,this.translate=v,this.transform=m,this.multiply=E,this.applyToPoint=w,this.applyToX=F,this.applyToY=B,this.applyToZ=G,this.applyToPointArray=Pt,this.applyToTriplePoints=dt,this.applyToPointStringified=tt,this.toCSS=vt,this.to2dCSS=O,this.clone=y,this.cloneFromProps=P,this.equals=u,this.inversePoints=ct,this.inversePoint=ft,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=c,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset();}}();function _typeof$3(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(e){return typeof e}:_typeof$3=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(t)}var lottie={};function setLocation(t){setLocationHref(t);}function searchAnimations(){animationManager.searchAnimations();}function setSubframeRendering(t){setSubframeEnabled(t);}function setPrefix(t){setIdPrefix(t);}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if(typeof t=="string")switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else !isNaN(t)&&t>1&&setDefaultCurveSegments(t);}function inBrowser(){return typeof navigator<"u"}function installPlugin(t,e){t==="expressions"&&setExpressionsPlugin(e);}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations());}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i"u"?"undefined":_typeof$3(exports))==="object"&&typeof module<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=lottie);}catch(t){}var ShapeModifiers=function(){var t={},e={};t.registerModifier=i,t.getModifier=r;function i(s,a){e[s]||(e[s]=a);}function r(s,a,n){return new e[s](a,n)}return t}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated();}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0);},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties());},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.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;},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[];},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,r,s){var a=[];e<=1?a.push({s:t,e}):t>=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var n=[],p,o=a.length,d;for(p=0;pr+i)){var g,f;d.s*s<=r?g=0:g=(d.s*s-r)/i,d.e*s>=r+i?f=1:f=(d.e*s-r)/i,n.push([g,f]);}return n.length||n.push([0,0]),n},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e1?e=1+r:this.s.v<0?e=0+r:e=this.s.v+r,this.e.v>1?i=1+r:this.e.v<0?i=0+r:i=this.e.v+r,e>i){var s=e;e=i,i=s;}e=Math.round(e*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=e,this.eValue=i;}else e=this.sValue,i=this.eValue;var a,n,p=this.shapes.length,o,d,g,f,l,b=0;if(i===e)for(n=0;n=0;n-=1)if(m=this.shapes[n],m.shape._mdf){for(E=m.localShapeCollection,E.releaseShapes(),this.m===2&&p>1?(P=this.calculateShapeEdges(e,i,m.totalShapeLength,y,b),y+=m.totalShapeLength):P=[[c,u]],d=P.length,o=0;o=1?v.push({s:m.totalShapeLength*(c-1),e:m.totalShapeLength*(u-1)}):(v.push({s:m.totalShapeLength*c,e:m.totalShapeLength}),v.push({s:0,e:m.totalShapeLength*(u-1)}));var w=this.addShapes(m,v[0]);if(v[0].s!==v[0].e){if(v.length>1){var F=m.shape.paths.shapes[m.shape.paths._length-1];if(F.c){var B=w.pop();this.addPaths(w,E),w=this.addShapes(m,v[1],B);}else this.addPaths(w,E),w=this.addShapes(m,v[1]);}this.addPaths(w,E);}}m.shape.paths=E;}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;ie.e){i.c=!1;break}else e.s<=d&&e.e>=d+g.addedLength?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[p],s[a].v[p],i,f,E),E=!1):(b=bez.getNewSegment(s[a].v[p-1],s[a].v[p],s[a].o[p-1],s[a].i[p],(e.s-d)/g.addedLength,(e.e-d)/g.addedLength,l[p-1]),this.addSegmentFromArray(b,i,f,E),E=!1,i.c=!1),d+=g.addedLength,f+=1;if(s[a].c&&l.length){if(g=l[p-1],d<=e.e){var c=l[p-1].addedLength;e.s<=d&&e.e>=d+c?(this.addSegment(s[a].v[p-1],s[a].o[p-1],s[a].i[0],s[a].v[0],i,f,E),E=!1):(b=bez.getNewSegment(s[a].v[p-1],s[a].v[0],s[a].o[p-1],s[a].i[0],(e.s-d)/c,(e.e-d)/c,l[p-1]),this.addSegmentFromArray(b,i,f,E),E=!1,i.c=!1);}else i.c=!1;d+=g.addedLength,f+=1;}if(i._length&&(i.setXYAt(i.v[m][0],i.v[m][1],"i",m),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),d>e.e)break;a=this.p.keyframes[this.p.keyframes.length-1].t?(g=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/d,0),f=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/d,0)):(g=this.p.pv,f=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/d,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){g=[],f=[];var l=this.px,b=this.py;l._caching.lastFrame+l.offsetTime<=l.keyframes[0].t?(g[0]=l.getValueAtTime((l.keyframes[0].t+.01)/d,0),g[1]=b.getValueAtTime((b.keyframes[0].t+.01)/d,0),f[0]=l.getValueAtTime(l.keyframes[0].t/d,0),f[1]=b.getValueAtTime(b.keyframes[0].t/d,0)):l._caching.lastFrame+l.offsetTime>=l.keyframes[l.keyframes.length-1].t?(g[0]=l.getValueAtTime(l.keyframes[l.keyframes.length-1].t/d,0),g[1]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/d,0),f[0]=l.getValueAtTime((l.keyframes[l.keyframes.length-1].t-.01)/d,0),f[1]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/d,0)):(g=[l.pv,b.pv],f[0]=l.getValueAtTime((l._caching.lastFrame+l.offsetTime-.01)/d,l.offsetTime),f[1]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/d,b.offsetTime));}else f=t,g=f;this.v.rotate(-Math.atan2(g[1]-f[1],g[0]-f[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 r(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;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 s(){}function a(o){this._addDynamicProperty(o),this.elem.addDynamicProperty(o),this._isDirty=!0;}function n(o,d,g){if(this.elem=o,this.frameId=-1,this.propType="transform",this.data=d,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(g||o),d.p&&d.p.s?(this.px=PropertyFactory.getProp(o,d.p.x,0,0,this),this.py=PropertyFactory.getProp(o,d.p.y,0,0,this),d.p.z&&(this.pz=PropertyFactory.getProp(o,d.p.z,0,0,this))):this.p=PropertyFactory.getProp(o,d.p||{k:[0,0,0]},1,0,this),d.rx){if(this.rx=PropertyFactory.getProp(o,d.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(o,d.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(o,d.rz,0,degToRads,this),d.or.k[0].ti){var f,l=d.or.k.length;for(f=0;f0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0);},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e0?Math.floor(l):Math.ceil(l),m=this.pMatrix.props,E=this.rMatrix.props,c=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var u=0;if(l>0){for(;uv;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),u-=1;b&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-b,!0),u-=b);}r=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var y,P;a;){if(e=this.elemsData[r].it,i=e[e.length-1].transform.mProps.v.props,P=i.length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),u!==0){for((r!==0&&s===1||r!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15]),this.matrix.transform(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14],c[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]),y=0;y0&&r<1?[e]:[]:[e-r,e+r].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return [singlePoint(this.points[0]),this];if(t>=1)return [this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),i=lerpPoint(this.points[1],this.points[2],t),r=lerpPoint(this.points[2],this.points[3],t),s=lerpPoint(e,i,t),a=lerpPoint(i,r,t),n=lerpPoint(s,a,t);return [new PolynomialBezier(this.points[0],e,s,n,!0),new PolynomialBezier(n,a,r,this.points[3],!0)]};function extrema(t,e){var i=t.points[0][e],r=t.points[t.points.length-1][e];if(i>r){var s=r;r=i,i=s;}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),n=0;n0&&a[n]<1){var p=t.point(a[n])[e];pr&&(r=p);}return {min:i,max:r}}PolynomialBezier.prototype.bounds=function(){return {x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.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}};function intersectData(t,e,i){var r=t.boundingBox();return {cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return [intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return Math.abs(t.cx-e.cx)*2=a||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r){s.push([t.t,e.t]);return}var n=splitData(t),p=splitData(e);intersectsImpl(n[0],p[0],i+1,r,s,a),intersectsImpl(n[0],p[1],i+1,r,s,a),intersectsImpl(n[1],p[0],i+1,r,s,a),intersectsImpl(n[1],p[1],i+1,r,s,a);}}PolynomialBezier.prototype.intersections=function(t,e,i){e===void 0&&(e=2),i===void 0&&(i=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,r,i),r},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)};function crossProduct(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 lineIntersection(t,e,i,r){var s=[t[0],t[1],1],a=[e[0],e[1],1],n=[i[0],i[1],1],p=[r[0],r[1],1],o=crossProduct(crossProduct(s,a),crossProduct(n,p));return floatZero(o[2])?null:[o[0]/o[2],o[1]/o[2]]}function polarOffset(t,e,i){return [t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0;};function setPoint(t,e,i,r,s,a,n){var p=i-Math.PI/2,o=i+Math.PI/2,d=e[0]+Math.cos(i)*r*s,g=e[1]-Math.sin(i)*r*s;t.setTripleAt(d,g,d+Math.cos(p)*a,g-Math.sin(p)*a,d+Math.cos(o)*n,g-Math.sin(o)*n,t.length());}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],r=-Math.PI*.5,s=[Math.cos(r)*i[0]-Math.sin(r)*i[1],Math.sin(r)*i[0]+Math.cos(r)*i[1]];return s}function getProjectingAngle(t,e){var i=e===0?t.length()-1:e-1,r=(e+1)%t.length(),s=t.v[i],a=t.v[r],n=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,i,r,s,a,n){var p=getProjectingAngle(e,i),o=e.v[i%e._length],d=e.v[i===0?e._length-1:i-1],g=e.v[(i+1)%e._length],f=a===2?Math.sqrt(Math.pow(o[0]-d[0],2)+Math.pow(o[1]-d[1],2)):0,l=a===2?Math.sqrt(Math.pow(o[0]-g[0],2)+Math.pow(o[1]-g[1],2)):0;setPoint(t,e.v[i%e._length],p,n,r,l/((s+1)*2),f/((s+1)*2));}function zigZagSegment(t,e,i,r,s,a){for(var n=0;n1&&e.length>1&&(s=getIntersection(t[0],e[e.length-1]),s)?[[t[0].split(s[0])[0]],[e[e.length-1].split(s[1])[1]]]:[i,r]}function pruneIntersections(t){for(var e,i=1;i1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i=t.inflectionPoints(),r,s,a,n;if(i.length===0)return [offsetSegment(t,e)];if(i.length===1||floatEqual(i[1],1))return a=t.split(i[0]),r=a[0],s=a[1],[offsetSegment(r,e),offsetSegment(s,e)];a=t.split(i[0]),r=a[0];var p=(i[1]-i[0])/(1-i[0]);return a=a[1].split(p),n=a[0],s=a[1],[offsetSegment(r,e),offsetSegment(n,e),offsetSegment(s,e)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length!==0;},OffsetPathModifier.prototype.processPath=function(t,e,i,r){var s=shapePool.newElement();s.c=t.c;var a=t.length();t.c||(a-=1);var n,p,o,d=[];for(n=0;n=0;n-=1)o=PolynomialBezier.shapeSegmentInverted(t,n),d.push(offsetSegmentSplit(o,e));d=pruneIntersections(d);var g=null,f=null;for(n=0;n0&&(Ht=!1),Ht){var Ot=createTag("style");Ot.setAttribute("f-forigin",k[L].fOrigin),Ot.setAttribute("f-origin",k[L].origin),Ot.setAttribute("f-family",k[L].fFamily),Ot.type="text/css",Ot.innerText="@font-face {font-family: "+k[L].fFamily+"; font-style: normal; src: url('"+k[L].fPath+"');}",O.appendChild(Ot);}}else if(k[L].fOrigin==="g"||k[L].origin===1){for(It=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Gt=0;Gt=55296&&k<=56319){var L=D.charCodeAt(1);L>=56320&&L<=57343&&(O=(k-55296)*1024+L-56320+65536);}return O}function F(D,O){var k=D.toString(16)+O.toString(16);return f.indexOf(k)!==-1}function B(D){return D===o}function G(D){return D===p}function it(D){var O=w(D);return O>=d&&O<=g}function ft(D){return it(D.substr(0,2))&&it(D.substr(2,2))}function ct(D){return i.indexOf(D)!==-1}function dt(D,O){var k=w(D.substr(O,2));if(k!==r)return !1;var L=0;for(O+=2;L<5;){if(k=w(D.substr(O,2)),kn)return !1;L+=1,O+=2;}return w(D.substr(O,2))===s}function Pt(){this.isLoaded=!0;}var tt=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);};tt.isModifier=F,tt.isZeroWidthJoiner=B,tt.isFlagEmoji=ft,tt.isRegionalCode=it,tt.isCombinedCharacter=ct,tt.isRegionalFlag=dt,tt.isVariationSelector=G,tt.BLACK_FLAG_CODE_POINT=r;var vt={addChars:c,addFonts:E,getCharData:u,getFontByName:P,measureText:y,checkLoadedFonts:v,setIsLoaded:Pt};return tt.prototype=vt,tt}();function SlotManager(t){this.animationData=t;}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[];},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t);},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&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?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide());},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0));},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1;},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1;},AudioElement.prototype.resume=function(){this._canPlay=!0;},AudioElement.prototype.setRate=function(t){this.audio.rate(t);},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume);},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(t){var e,i=this.layers.length,r;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e],r.ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=this.elements[e]?this.completeLayers:!1;this.checkPendingElements();},BaseRenderer.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: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);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t0&&(this.maskElement.setAttribute("id",l),this.element.maskedElement.setAttribute(u,"url("+getLocationHref()+"#"+l+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this);}MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e=this.element.finalTransform.mat,i,r=this.masksProperties.length;for(i=0;i1&&(r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==r){var n="";i.elem&&(e.c&&(n=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",n)),i.lastPath=r;}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null;};var filtersFactory=function(){var t={};t.createFilter=e,t.createAlphaToLuminanceFilter=i;function e(r,s){var a=createNS("filter");return a.setAttribute("id",r),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function i(){var r=createNS("feColorMatrix");return r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),r}return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return (/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))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,i="SourceGraphic",r=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),n=0;this.filters=[];var p;for(e=0;e=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;i.01)return !1;i+=1;}return !0},GradientProperty.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;t0;)c=l.transformers[it].mProps._mdf||c,G-=1,it-=1;if(c)for(G=w-l.styles[y].lvl,it=l.transformers.length-1;G>0;)B.multiply(l.transformers[it].mProps.v),G-=1,it-=1;}else B=t;if(F=l.sh.paths,m=F._length,c){for(E="",v=0;v=1?Pt=.99:Pt<=-1&&(Pt=-.99);var tt=ct*Pt,vt=Math.cos(dt+l.a.v)*tt+E[0],D=Math.sin(dt+l.a.v)*tt+E[1];v.setAttribute("fx",vt),v.setAttribute("fy",D),m&&!l.g._collapsable&&(l.of.setAttribute("fx",vt),l.of.setAttribute("fy",D));}}}function g(f,l,b){var v=l.style,m=l.d;m&&(m._mdf||b)&&m.dashStr&&(v.pElem.setAttribute("stroke-dasharray",m.dashStr),v.pElem.setAttribute("stroke-dashoffset",m.dashoffset[0])),l.c&&(l.c._mdf||b)&&v.pElem.setAttribute("stroke","rgb("+bmFloor(l.c.v[0])+","+bmFloor(l.c.v[1])+","+bmFloor(l.c.v[2])+")"),(l.o._mdf||b)&&v.pElem.setAttribute("stroke-opacity",l.o.v),(l.w._mdf||b)&&(v.pElem.setAttribute("stroke-width",l.w.v),v.msElem&&v.msElem.setAttribute("stroke-width",l.w.v));}return i}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[];}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes();},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e=this.shapes.length,i,r,s=this.stylesList.length,a,n=[],p=!1;for(r=0;r1&&p&&this.setShapesAsAnimated(n);}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;o-=1){if(E=this.searchProcessedElement(t[o]),E?e[o]=i[E-1]:t[o]._render=n,t[o].ty==="fl"||t[o].ty==="st"||t[o].ty==="gf"||t[o].ty==="gs"||t[o].ty==="no")E?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],s),t[o]._render&&e[o].style.pElem.parentNode!==r&&r.appendChild(e[o].style.pElem),l.push(e[o].style);else if(t[o].ty==="gr"){if(!E)e[o]=this.createGroupElement(t[o]);else for(f=e[o].it.length,g=0;g1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this);},TextProperty.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,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var r,s=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(r=0;re);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e=[],i=0,r=t.length,s,a,n=!1,p=!1,o="";i=55296&&s<=56319?FontManager.isRegionalFlag(t,i)?o=t.substr(i,14):(a=t.charCodeAt(i+1),a>=56320&&a<=57343&&(FontManager.isModifier(s,a)?(o=t.substr(i,2),n=!0):FontManager.isFlagEmoji(t.substr(i,4))?o=t.substr(i,4):o=t.substr(i,2))):s>56319?(a=t.charCodeAt(i+1),FontManager.isVariationSelector(s)&&(n=!0)):FontManager.isZeroWidthJoiner(s)&&(n=!0,p=!0),n?(e[e.length-1]+=o,n=!1):e.push(o),i+=o.length;return e},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,i=this.data,r=[],s,a,n,p=0,o,d=i.m.g,g=0,f=0,l=0,b=[],v=0,m=0,E,c,u=e.getFontByName(t.f),y,P=0,w=getFontProperties(u);t.fWeight=w.weight,t.fStyle=w.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),a=t.finalText.length,t.finalLineHeight=t.lh;var F=t.tr/1e3*t.finalSize,B;if(t.sz)for(var G=!0,it=t.sz[0],ft=t.sz[1],ct,dt;G;){dt=this.buildFinalText(t.t),ct=0,v=0,a=dt.length,F=t.tr/1e3*t.finalSize;var Pt=-1;for(s=0;sit&&dt[s]!==" "?(Pt===-1?a+=1:s=Pt,ct+=t.finalLineHeight||t.finalSize*1.2,dt.splice(s,Pt===s?1:0,"\r"),Pt=-1,v=0):(v+=P,v+=F);ct+=u.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&ftm?v:m,v=-2*F,o="",n=!0,l+=1):o=vt,e.chars?(y=e.getCharData(vt,u.fStyle,e.getFontByName(t.f).fFamily),P=n?0:y.w*t.finalSize/100):P=e.measureText(o,t.f,t.finalSize),vt===" "?tt+=P+F:(v+=P+F+tt,tt=0),r.push({l:P,an:P,add:g,n,anIndexes:[],val:o,line:l,animatorJustifyOffset:0}),d==2){if(g+=P,o===""||o===" "||s===a-1){for((o===""||o===" ")&&(g-=P);f<=s;)r[f].an=g,r[f].ind=p,r[f].extra=P,f+=1;p+=1,g=0;}}else if(d==3){if(g+=P,o===""||s===a-1){for(o===""&&(g-=P);f<=s;)r[f].an=g,r[f].ind=p,r[f].extra=P,f+=1;g=0,p+=1;}}else r[p].ind=p,r[p].extra=0,p+=1;if(t.l=r,m=v>m?v:m,b.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=m,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0;}t.lineWidths=b;var D=i.a,O,k;c=D.length;var L,K,U=[];for(E=0;E0?n=this.ne.v/100:p=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:d=1+this.xe.v/100;var g=BezierFactory.getBezierEasing(n,p,o,d).get,f=0,l=this.finalS,b=this.finalE,v=this.data.sh;if(v===2)b===l?f=a>=b?1:0:f=t(0,e(.5/(b-l)+(a-l)/(b-l),1)),f=g(f);else if(v===3)b===l?f=a>=b?0:1:f=1-t(0,e(.5/(b-l)+(a-l)/(b-l),1)),f=g(f);else if(v===4)b===l?f=0:(f=t(0,e(.5/(b-l)+(a-l)/(b-l),1)),f<.5?f*=2:f=1-2*(f-.5)),f=g(f);else if(v===5){if(b===l)f=0;else {var m=b-l;a=e(t(0,a+.5-l),b-l);var E=-m/2+a,c=m/2;f=Math.sqrt(1-E*E/(c*c));}f=g(f);}else v===6?(b===l?f=0:(a=e(t(0,a+.5-l),b-l),f=(1+Math.cos(Math.PI+Math.PI*2*a/(b-l)))/2),f=g(f)):(a>=i(l)&&(a-l<0?f=t(0,e(e(b,1)-(l-a),1)):f=t(0,e(b-a,1))),f=g(f));if(this.sm.v!==100){var u=this.sm.v*.01;u===0&&(u=1e-8);var y=.5-u*.5;f1&&(f=1));}return f*this.a.v},getValue:function(a){this.iterateDynamicProperties(),this._mdf=a||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,a&&this.data.r===2&&(this.e.v=this._currentTextLength);var n=this.data.r===2?1:100/this.data.totalChars,p=this.o.v/n,o=this.s.v/n+p,d=this.e.v/n+p;if(o>d){var g=o;o=d,d=g;}this.finalS=o,this.finalE=d;}},extendPrototype([DynamicPropertyContainer],r);function s(a,n,p){return new r(a,n)}return {getTextSelectorProp:s}}();function TextAnimatorDataProperty(t,e,i){var r={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,i):r,rx:a.rx?s(t,a.rx,0,degToRads,i):r,ry:a.ry?s(t,a.ry,0,degToRads,i):r,sk:a.sk?s(t,a.sk,0,degToRads,i):r,sa:a.sa?s(t,a.sa,0,degToRads,i):r,s:a.s?s(t,a.s,1,.01,i):r,a:a.a?s(t,a.a,1,0,i):r,o:a.o?s(t,a.o,0,.01,i):r,p:a.p?s(t,a.p,1,0,i):r,sw:a.sw?s(t,a.sw,0,0,i):r,sc:a.sc?s(t,a.sc,1,0,i):r,fc:a.fc?s(t,a.fc,1,0,i):r,fh:a.fh?s(t,a.fh,0,0,i):r,fs:a.fs?s(t,a.fs,0,.01,i):r,fb:a.fb?s(t,a.fb,0,.01,i):r,t:a.t?s(t,a.t,0,0,i):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t;}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i);}TextAnimatorProperty.prototype.searchProperties=function(){var t,e=this._textData.a.length,i,r=PropertyFactory.getProp;for(t=0;t=v+be||!w?(it=(v+be-E)/m.partialLength,Gt=P.point[0]+(m.point[0]-P.point[0])*it,Ot=P.point[1]+(m.point[1]-P.point[1])*it,a.translate(-i[0]*l[g].an*.005,-(i[1]*tt)*.01),c=!1):w&&(E+=m.partialLength,u+=1,u>=w.length&&(u=0,y+=1,F[y]?w=F[y].points:ct.v.c?(u=0,y=0,w=F[y].points):(E-=m.partialLength,w=null)),w&&(P=m,m=w[u],B=m.partialLength));It=l[g].an/2-l[g].add,a.translate(-It,0,0);}else It=l[g].an/2-l[g].add,a.translate(-It,0,0),a.translate(-i[0]*l[g].an*.005,-i[1]*tt*.01,0);for(k=0;kt?this.textSpans[t].span:createNS(p?"g":"text"),y<=t){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=o,p){var w=createNS("g");o.appendChild(w),this.textSpans[t].childSpan=w;}this.textSpans[t].span=o,this.layerElement.appendChild(o);}o.style.display="inherit";}if(d.reset(),f&&(n[t].n&&(l=-m,b+=i.yOffset,b+=v?1:0,v=!1),this.applyTextPropertiesToMatrix(i,d,n[t].line,l,b),l+=n[t].l||0,l+=m),p){P=this.globalData.fontManager.getCharData(i.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var F;if(P.t===1)F=new SVGCompElement(P.data,this.globalData,this);else {var B=emptyShapeData;P.data&&P.data.shapes&&(B=this.buildShapeData(P.data,i.finalSize)),F=new SVGShapeElement(B,this.globalData,this);}if(this.textSpans[t].glyph){var G=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(G.layerElement),G.destroy();}this.textSpans[t].glyph=F,F._debug=!0,F.prepareFrame(0),F.renderFrame(),this.textSpans[t].childSpan.appendChild(F.layerElement),P.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")");}else f&&o.setAttribute("transform","translate("+d.props[12]+","+d.props[13]+")"),o.textContent=n[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}f&&o&&o.setAttribute("d",g);}for(;t=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=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0));}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t0&&o<1&&s[l].push(this.calculateF(o,t,e,i,r,l))):(d=n*n-4*p*a,d>=0&&(g=(-n+bmSqrt(d))/(2*a),g>0&&g<1&&s[l].push(this.calculateF(g,t,e,i,r,l)),f=(-n-bmSqrt(d))/(2*a),f>0&&f<1&&s[l].push(this.calculateF(f,t,e,i,r,l)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1]);},HShapeElement.prototype.calculateF=function(t,e,i,r,s,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*i[a]+3*(1-t)*bmPow(t,2)*r[a]+bmPow(t,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,r=t.length;for(i=0;ii&&(i=s);}i*=t.mult;}else i=t.v*t.mult;e.x-=i,e.xMax+=i,e.y-=i,e.yMax+=i;},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax=0;e-=1){var r=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2]);}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),n=[s[0]/a,s[1]/a,s[2]/a],p=Math.sqrt(n[2]*n[2]+n[0]*n[0]),o=Math.atan2(n[1],p),d=Math.atan2(n[0],-n[2]);this.mat.rotateY(d).rotateX(-o);}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var g=!this._prevMat.equals(this.mat);if((g||this.pe._mdf)&&this.comp.threeDElements){i=this.comp.threeDElements.length;var f,l,b;for(e=0;e=t)return this.threeDElements[e].perspectiveElem;e+=1;}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i=createTag("div"),r,s;styleDiv(i);var a=createTag("div");if(styleDiv(a),e==="3d"){r=i.style,r.width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var n="50% 50%";r.webkitTransformOrigin=n,r.mozTransformOrigin=n,r.transformOrigin=n,s=a.style;var p="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=p,s.webkitTransform=p;}i.appendChild(a);var o={container:a,perspectiveElem:i,startPos:t,endPos:t,type:e};return this.threeDElements.push(o),o},HybridRendererBase.prototype.build3dContainers=function(){var t,e=this.layers.length,i,r="";for(t=0;t=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem);},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,r=this.threeDElements.length;ii?(s=t/this.globalData.compSize.w,a=t/this.globalData.compSize.w,n=0,p=(e-this.globalData.compSize.h*(t/this.globalData.compSize.w))/2):(s=e/this.globalData.compSize.h,a=e/this.globalData.compSize.h,n=(t-this.globalData.compSize.w*(e/this.globalData.compSize.h))/2,p=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+n+","+p+",0,1)",o.transform=o.webkitTransform;},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none";},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block";},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else {var t=this.globalData.compSize.w,e=this.globalData.compSize.h,i,r=this.threeDElements.length;for(i=0;i=d;)ft/=2,ct/=2,dt>>>=1;return (ft+dt)/ct};return it.int32=function(){return G.g(4)|0},it.quick=function(){return G.g(4)/4294967296},it.double=it,E(u(G.S),t),(P.pass||w||function(ft,ct,dt,Pt){return Pt&&(Pt.S&&v(Pt,G),ft.state=function(){return v(G,{})}),dt?(e[n]=ft,ct):ft})(it,B,"global"in P?P.global:this==e,P.state)}e["seed"+n]=l;function b(y){var P,w=y.length,F=this,B=0,G=F.i=F.j=0,it=F.S=[];for(w||(y=[w++]);Bi){var r=i;i=e,e=r;}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if(typeof t=="number"||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var i,r=Math.min(t.length,e.length),s=0;for(i=0;i.5?d/(2-s-a):d/(s+a),s){case e:n=(i-r)/d+(i1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e=t[0],i=t[1],r=t[2],s,a,n;if(i===0)s=r,n=r,a=r;else {var p=r<.5?r*(1+i):r+i-r*i,o=2*r-p;s=hue2rgb(o,p,e+1/3),a=hue2rgb(o,p,e),n=hue2rgb(o,p,e-1/3);}return [s,a,n,t[3]]}function linear(t,e,i,r,s){if((r===void 0||s===void 0)&&(r=e,s=i,e=0,i=1),i=i)return s;var n=i===e?0:(t-e)/(i-e);if(!r.length)return r+(s-r)*n;var p,o=r.length,d=createTypedArray("float32",o);for(p=0;p1){for(s=0;s1?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){var p,o=s.length,d=createTypedArray("float32",o);for(p=0;pdata.k[e].t&&tdata.k[e+1].t-t?(r=e+2,s=data.k[e+1].t):(r=e+1,s=data.k[e].t);break}r===-1&&(r=e+1,s=data.k[e].t);}var a={};return a.index=r,a.time=s/elem.comp.globalData.frameRate,a}function key(t){var e,i,r;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(r=s.length,i=0;iE.length-1)&&(b=E.length-1),y=E[E.length-1-b].t,u=c-y);var P,w,F;if(l==="pingpong"){var B=Math.floor((m-y)/u);if(B%2!==0)return this.getValueAtTime((u-(m-y)%u+y)/this.comp.globalData.frameRate,0)}else if(l==="offset"){var G=this.getValueAtTime(y/this.comp.globalData.frameRate,0),it=this.getValueAtTime(c/this.comp.globalData.frameRate,0),ft=this.getValueAtTime(((m-y)%u+y)/this.comp.globalData.frameRate,0),ct=Math.floor((m-y)/u);if(this.pv.length){for(F=new Array(G.length),w=F.length,P=0;P=c)return this.pv;var u,y;v?(b?u=Math.abs(this.elem.comp.globalData.frameRate*b):u=Math.max(0,this.elem.data.op-c),y=c+u):((!b||b>E.length-1)&&(b=E.length-1),y=E[b].t,u=y-c);var P,w,F;if(l==="pingpong"){var B=Math.floor((c-m)/u);if(B%2===0)return this.getValueAtTime(((c-m)%u+c)/this.comp.globalData.frameRate,0)}else if(l==="offset"){var G=this.getValueAtTime(c/this.comp.globalData.frameRate,0),it=this.getValueAtTime(y/this.comp.globalData.frameRate,0),ft=this.getValueAtTime((u-(c-m)%u+c)/this.comp.globalData.frameRate,0),ct=Math.floor((c-m)/u)+1;if(this.pv.length){for(F=new Array(G.length),w=F.length,P=0;P1?(E-m)/(b-1):1,u=0,y=0,P;this.pv.length?P=createTypedArray("float32",this.pv.length):P=0;for(var w;uc){var F=u,B=v.c&&u===y-1?0:u+1,G=(c-P)/E[u].addedLength;w=bez.getPointInSegment(v.v[F],v.v[B],v.o[F],v.i[B],G,E[u]);break}else P+=E[u].addedLength;u+=1;}return w||(w=v.c?[v.v[0][0],v.v[0][1]]:[v.v[v._length-1][0],v.v[v._length-1][1]]),w},vectorOnPath:function(l,b,v){l==1?l=this.v.c:l==0&&(l=.999);var m=this.pointOnPath(l,b),E=this.pointOnPath(l+.001,b),c=E[0]-m[0],u=E[1]-m[1],y=Math.sqrt(Math.pow(c,2)+Math.pow(u,2));if(y===0)return [0,0];var P=v==="tangent"?[c/y,u/y]:[-u/y,c/y];return P},tangentOnPath:function(l,b){return this.vectorOnPath(l,b,"tangent")},normalOnPath:function(l,b){return this.vectorOnPath(l,b,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([g],o),extendPrototype([g],d),d.prototype.getValueAtTime=p,d.prototype.initiateExpression=ExpressionManager.initiateExpression;var f=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(l,b,v,m,E){var c=f(l,b,v,m,E);return c.propertyIndex=b.ix,c.lock=!1,v===3?expressionHelpers.searchExpressions(l,b.pt,c):v===4&&expressionHelpers.searchExpressions(l,b.ks,c),c.k&&l.addDynamicProperty(c),c};}function initialize$1(){addPropertyDecorator();}function addDecorator(){function t(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(e,i){var r=this.calculateExpression(i);if(e.t!==r){var s={};return this.copyData(s,e),s.t=r.toString(),s.__complete=!1,s}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),i=this.searchExpressions();return this.kf=e||i,this.kf},TextProperty.prototype.searchExpressions=t;}function initialize(){addDecorator();}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function t(e,i){var r=createNS("feMerge");r.setAttribute("result",e);var s,a;for(a=0;a=d?f=v<0?r:s:f=r+b*Math.pow((p-t)/v,1/i),g[l]=f,l+=1,a+=256/(n-1);return g.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e));}};function SVGDropShadowEffect(t,e,i,r,s){var a=e.container.globalData.renderConfig.filterSize,n=e.data.fs||a;t.setAttribute("x",n.x||a.x),t.setAttribute("y",n.y||a.y),t.setAttribute("width",n.width||a.width),t.setAttribute("height",n.height||a.height),this.filterManager=e;var p=createNS("feGaussianBlur");p.setAttribute("in","SourceAlpha"),p.setAttribute("result",r+"_drop_shadow_1"),p.setAttribute("stdDeviation","0"),this.feGaussianBlur=p,t.appendChild(p);var o=createNS("feOffset");o.setAttribute("dx","25"),o.setAttribute("dy","0"),o.setAttribute("in",r+"_drop_shadow_1"),o.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=o,t.appendChild(o);var d=createNS("feFlood");d.setAttribute("flood-color","#00ff00"),d.setAttribute("flood-opacity","1"),d.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=d,t.appendChild(d);var g=createNS("feComposite");g.setAttribute("in",r+"_drop_shadow_3"),g.setAttribute("in2",r+"_drop_shadow_2"),g.setAttribute("operator","in"),g.setAttribute("result",r+"_drop_shadow_4"),t.appendChild(g);var f=this.createMergeNode(r,[r+"_drop_shadow_4",s]);t.appendChild(f);}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(e[0]*255),Math.round(e[1]*255),Math.round(e[2]*255)));}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=i*Math.cos(r),a=i*Math.sin(r);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a);}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement;}SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e{co();Uo();wo();Do();en();fg={name:"@dotlottie/common",version:"0.7.3",type:"module",description:"",author:"Afsal , Sam Osborne ",license:"MIT",engines:{node:">18.0.0"},module:"dist/index.js",main:"dist/index.js",types:"dist/index.d.ts",files:["dist"],keywords:[],scripts:{build:"tsup",dev:"tsup --watch",lint:"eslint .","type-check":"tsc --noEmit"},dependencies:{"@dotlottie/dotlottie-js":"0.6.0","@lottiefiles/relottie":"1.0.0","@lottiefiles/relottie-style":"0.4.1","@preact/signals-core":"^1.2.3",howler:"^2.2.3","lottie-web":"^5.12.2",xstate:"^4.38.1"},devDependencies:{"@lottiefiles/lottie-types":"^1.2.0","@types/howler":"^2.2.8",tsup:"^7.2.0",typescript:"^4.7.4"},publishConfig:{access:"public"}},Js=(t=>(t.Complete="complete",t.DataFail="data_fail",t.DataReady="data_ready",t.Error="error",t.Frame="frame",t.Freeze="freeze",t.LoopComplete="loopComplete",t.Pause="pause",t.Play="play",t.Ready="ready",t.Stop="stop",t.VisibilityChange="visibilityChange",t))(Js||{}),ka=(t=>(t.Completed="completed",t.Error="error",t.Fetching="fetching",t.Frozen="frozen",t.Initial="initial",t.Loading="loading",t.Paused="paused",t.Playing="playing",t.Ready="ready",t.Stopped="stopped",t))(ka||{}),exports.PlayMode=(t=>(t.Bounce="bounce",t.Normal="normal",t))(exports.PlayMode||{}),Gr={autoplay:!1,direction:1,hover:!1,intermission:0,loop:!1,playMode:"normal",speed:1,defaultTheme:""},Xo={activeStateId:"",autoplay:!1,currentState:"initial",frame:0,seeker:0,direction:1,hover:!1,loop:!1,playMode:"normal",speed:1,background:"transparent",intermission:0,currentAnimationId:void 0,visibilityPercentage:0},Yo=class{_lottie;_src;_animationConfig;_prevUserPlaybackOptions={};_userPlaybackOptions;_hover=!1;_loop=!1;_counter=0;_intermission=0;_counterInterval=null;_container=null;_name;_mode="normal";_background="transparent";_animation;_defaultTheme;_activeAnimationId;_currentAnimationId;_testId;_listeners=new Map;_currentState="initial";_stateBeforeFreeze="initial";state=new Uf(Xo);_light=!1;_worker=!1;_dotLottieLoader=new lp;_activeStateId;_inInteractiveMode=!1;_scrollTicking=!1;_scrollCallback=void 0;_onShowIntersectionObserver=void 0;_visibilityPercentage=0;_audios=[];_stateMachineManager;constructor(t,e,i){typeof t=="string"?this._src=t:this._src=Object.assign({},t),i!=null&&i.testId&&(this._testId=i.testId),this._defaultTheme=(i==null?void 0:i.defaultTheme)||"",this._userPlaybackOptions=this._validatePlaybackOptions(i||{}),typeof(i==null?void 0:i.activeAnimationId)=="string"&&(this._activeAnimationId=i.activeAnimationId),this._container=e||null,typeof(i==null?void 0:i.background)=="string"&&this.setBackground(i.background),typeof(i==null?void 0:i.activeStateId)<"u"&&(this._activeStateId=i.activeStateId);let{rendererSettings:r,...s}=i||{};this._animationConfig={loop:!1,autoplay:!1,renderer:"svg",rendererSettings:{clearCanvas:!0,progressiveLoad:!0,hideOnTransparent:!0,filterSize:{width:"200%",height:"200%",x:"-50%",y:"-50%"},...r},...s},i!=null&&i.light&&(this._light=i.light),i!=null&&i.worker&&(this._worker=i.worker),this._listenToHover(),this._listenToVisibilityChange();}_listenToHover(){var t,e,i,r;let s=()=>{this._hover&&this.currentState!=="playing"&&this.play();},a=()=>{this._hover&&this.currentState==="playing"&&this.stop();};(t=this._container)==null||t.removeEventListener("mouseenter",s),(e=this._container)==null||e.removeEventListener("mouseleave",a),(i=this._container)==null||i.addEventListener("mouseleave",a),(r=this._container)==null||r.addEventListener("mouseenter",s);}_onVisibilityChange(){!this._lottie||typeof document>"u"||(document.hidden&&this.currentState==="playing"?this.freeze():this.currentState==="frozen"&&this.unfreeze());}_listenToVisibilityChange(){typeof document<"u"&&typeof document.hidden<"u"&&document.addEventListener("visibilitychange",()=>this._onVisibilityChange());}_getOption(t){var e;if(typeof this._userPlaybackOptions[t]<"u")return this._userPlaybackOptions[t];let i=(e=this._dotLottieLoader.manifest)==null?void 0:e.animations.find(r=>r.id===this._currentAnimationId);return i&&typeof i[t]<"u"?i[t]:Gr[t]}_getPlaybackOptions(){let t={};for(let e in Gr)typeof Gr[e]<"u"&&(t[e]=this._getOption(e));return t}_setPlayerState(t){var e,i,r;let s=t(this._getPlaybackOptions());try{dh._parse(s);}catch{Ai(`Invalid PlaybackOptions, ${JSON.stringify(s,null,2)}`);return}typeof s.defaultTheme<"u"&&(this._defaultTheme=s.defaultTheme),typeof s.playMode<"u"&&(this._mode=s.playMode),typeof s.intermission<"u"&&(this._intermission=s.intermission),typeof s.hover<"u"&&(this._hover=s.hover),typeof s.loop<"u"&&(this.clearCountTimer(),this._loop=s.loop,this._counter=0,(e=this._lottie)==null||e.setLoop(typeof s.loop=="number"?!0:s.loop)),typeof s.speed<"u"&&((i=this._lottie)==null||i.setSpeed(s.speed)),typeof s.autoplay<"u"&&this._lottie&&(this._lottie.autoplay=s.autoplay),typeof s.direction<"u"&&((r=this._lottie)==null||r.setDirection(s.direction));}_getOptionsFromAnimation(t){let{id:e,...i}=t;return {...Gr,...i}}_updateTestData(){!this._testId||!this._lottie||(window.dotLottiePlayer||(window.dotLottiePlayer={[this._testId]:{}}),window.dotLottiePlayer[this._testId]={direction:this._lottie.playDirection,currentState:this._currentState,loop:this.loop,mode:this._mode,speed:this._lottie.playSpeed});}setContainer(t){t!==this._container&&(this._container=t,this.setBackground(this._background),this._listenToHover());}get currentState(){return this._currentState}clearCountTimer(){this._counterInterval&&clearInterval(this._counterInterval);}setCurrentState(t){this._currentState=t,this._notify(),this._updateTestData();}static isPathJSON(t){var e;return ((e=t.split(".").pop())==null?void 0:e.toLowerCase())==="json"}get src(){return this._src}updateSrc(t){this._src!==t&&(typeof t=="string"?this._src=t:this._src=Object.assign({},t),this._activeAnimationId=void 0,this._currentAnimationId=void 0,this.load());}get intermission(){return this._intermission}get hover(){return this._hover}setHover(t){typeof t=="boolean"&&(this._hover=t,this._userPlaybackOptions.hover=t,this._notify());}setIntermission(t){this._intermission=t,this._userPlaybackOptions.intermission=t,this._notify();}get mode(){return this._mode}get animations(){return this._dotLottieLoader.animationsMap}get themes(){return this._dotLottieLoader.themeMap}setMode(t){typeof t=="string"&&(this._mode=t,this._userPlaybackOptions.playMode=t,this._setPlayerState(()=>({playMode:t})),this._notify(),this._updateTestData());}get container(){if(this._container)return this._container}goToAndPlay(t,e,i){if(!this._lottie||["loading"].includes(this._currentState)){Ai("goToAndPlay() Can't use whilst loading.");return}this._lottie.goToAndPlay(t,e,i),this.setCurrentState("playing");}goToAndStop(t,e,i){if(!this._lottie||["loading"].includes(this._currentState)){Ai("goToAndStop() Can't use whilst loading.");return}this._lottie.goToAndStop(t,e,i),this.setCurrentState("stopped");}seek(t){if(!this._lottie||["loading"].includes(this._currentState)){Ai("seek() Can't use whilst loading.");return}let e=t;typeof e=="number"&&(e=Math.round(e));let i=/^(\d+)(%?)$/u.exec(e.toString());if(!i)return;let r=i[2]==="%"?this.totalFrames*Number(i[1])/100:i[1];r!==void 0&&(this._lottie.goToAndPlay(r,!0),this.currentState==="playing"?this.play():this.currentState==="frozen"?this.freeze():this.pause());}_areNumbersInRange(t,e){return t>=0&&t<=1&&e>=0&&e<=1}_updatePosition(t,e,i){let[r,s]=t!=null?t:[0,this.totalFrames-1],[a,n]=e!=null?e:[0,1];if(!this._areNumbersInRange(a,n)){$s("threshold values must be between 0 and 1");return}if(this.container){let{height:p,top:o}=this.container.getBoundingClientRect(),d=window.innerHeight-o,g=window.innerHeight+p,f=d/g,l=r+Math.round((f-a)/(n-a)*(s-r));i&&i(f),this.goToAndStop(l,!0),(l>=s||f>=n)&&this._handleAnimationComplete();}this._scrollTicking=!1;}_requestTick(t,e,i){this._scrollTicking||(requestAnimationFrame(()=>this._updatePosition(t,e,i)),this._scrollTicking=!0);}playOnScroll(t){this.stop(),this._scrollCallback&&this.stopPlayOnScroll(),this._scrollCallback=()=>this._requestTick(t==null?void 0:t.segments,t==null?void 0:t.threshold,t==null?void 0:t.positionCallback),window.addEventListener("scroll",this._scrollCallback);}stopPlayOnScroll(){this._scrollCallback&&(window.removeEventListener("scroll",this._scrollCallback),this._scrollCallback=void 0);}stopPlayOnShow(){this._onShowIntersectionObserver&&(this._onShowIntersectionObserver.disconnect(),this._onShowIntersectionObserver=void 0);}addIntersectionObserver(t){if(!this.container)throw Ke("Can't play on show, player container element not available.");let e={root:null,rootMargin:"0px",threshold:t!=null&&t.threshold?t.threshold:[0,1]},i=r=>{r.forEach(s=>{var a,n;this._visibilityPercentage=s.intersectionRatio*100,s.isIntersecting?(t!=null&&t.callbackOnIntersect&&t.callbackOnIntersect(this._visibilityPercentage),(a=this._container)==null||a.dispatchEvent(new Event("visibilityChange"))):t!=null&&t.callbackOnIntersect&&(t.callbackOnIntersect(0),(n=this._container)==null||n.dispatchEvent(new Event("visibilityChange")));});};this._onShowIntersectionObserver=new IntersectionObserver(i,e),this._onShowIntersectionObserver.observe(this.container);}playOnShow(t){var e;if(this.stop(),!this.container)throw Ke("Can't play on show, player container element not available.");this._onShowIntersectionObserver&&this.stopPlayOnShow(),this.addIntersectionObserver({threshold:(e=t==null?void 0:t.threshold)!=null?e:[],callbackOnIntersect:i=>{i===0?this.pause():this.play();}});}_validatePlaybackOptions(t){if(!t)return {};let e={};for(let[i,r]of Object.entries(t))switch(i){case"autoplay":typeof r=="boolean"&&(e.autoplay=r);break;case"direction":typeof r=="number"&&[1,-1].includes(r)&&(e.direction=r);break;case"loop":(typeof r=="boolean"||typeof r=="number")&&(e.loop=r);break;case"playMode":typeof r=="string"&&["normal","bounce"].includes(r)&&(e.playMode=r);break;case"speed":typeof r=="number"&&(e.speed=r);break;case"themeColor":typeof r=="string"&&(e.themeColor=r);break;case"hover":typeof r=="boolean"&&(e.hover=r);break;case"intermission":typeof r=="number"&&(e.intermission=r);break;case"defaultTheme":typeof r=="string"&&(e.defaultTheme=r);break}return this._requireValidPlaybackOptions(e),e}_requireAnimationsInTheManifest(){var t;if(!((t=this._dotLottieLoader.manifest)!=null&&t.animations.length))throw Ke("No animations found in manifest.")}_requireAnimationsToBeLoaded(){if(this._dotLottieLoader.animationsMap.size===0)throw Ke("No animations have been loaded.")}async play(t,e){var i,r;if(["initial","loading"].includes(this._currentState)){Ai("Player unable to play whilst loading.");return}if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),this._lottie&&!t){this._lottie.playDirection===-1&&this._lottie.currentFrame===0?this._lottie.goToAndPlay(this._lottie.totalFrames,!0):this._lottie.play(),this.setCurrentState("playing");return}if(typeof t=="number"){let s=(i=this._dotLottieLoader.manifest)==null?void 0:i.animations[t];if(!s)throw Ke("animation not found.");typeof e=="function"?await this.render({id:s.id,...e(this._getPlaybackOptions(),this._getOptionsFromAnimation(s))}):await this.render({id:s.id});}if(typeof t=="string"){let s=(r=this._dotLottieLoader.manifest)==null?void 0:r.animations.find(a=>a.id===t);if(!s)throw Ke("animation not found.");typeof e=="function"?await this.render({id:s.id,...e(this._getPlaybackOptions(),this._getOptionsFromAnimation(s))}):await this.render({id:s.id});}}playSegments(t,e){if(!this._lottie||["loading"].includes(this._currentState)){Ai("playSegments() Can't use whilst loading.");return}this._lottie.playSegments(t,e),this.setCurrentState("playing");}resetSegments(t){if(!this._lottie||["loading"].includes(this._currentState)){Ai("resetSegments() Can't use whilst loading.");return}this._lottie.resetSegments(t);}togglePlay(){this.currentState==="playing"?this.pause():this.play();}_getAnimationByIdOrIndex(t){var e,i;if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),typeof t=="number"){let r=(e=this._dotLottieLoader.manifest)==null?void 0:e.animations[t];if(!r)throw Ke("animation not found.");return r}if(typeof t=="string"){let r=(i=this._dotLottieLoader.manifest)==null?void 0:i.animations.find(s=>s.id===t);if(!r)throw Ke("animation not found.");return r}throw Ke("first param must be a number or string")}get activeAnimationId(){return this._getActiveAnimationId()}get currentAnimationId(){return this._currentAnimationId}get activeStateId(){return this._activeStateId}async _startInteractivity(t){if(!this._inInteractiveMode){$s("Can't start interactivity. Not in interactive mode. Call enterInteractiveMode(stateId: string) to start.");return}if(this._dotLottieLoader.stateMachinesMap.size===0&&await this._dotLottieLoader.getStateMachines(),this._dotLottieLoader.stateMachinesMap.size===0)throw Ke("No interactivity states are available.");if(t==="undefined")throw Ke("stateId is not specified.");this._stateMachineManager||(this._stateMachineManager=await xc(Array.from(this._dotLottieLoader.stateMachinesMap.values()),this)),this._stateMachineManager.start(t);}enterInteractiveMode(t){var e;if(t)this._inInteractiveMode||(this._prevUserPlaybackOptions={...this._userPlaybackOptions}),this._inInteractiveMode&&((e=this._stateMachineManager)==null||e.stop()),this._activeStateId=t,this._inInteractiveMode=!0,this._startInteractivity(t);else throw Ke("stateId must be a non-empty string.")}exitInteractiveMode(){var t;this._inInteractiveMode&&(this._inInteractiveMode=!1,this._activeStateId="",(t=this._stateMachineManager)==null||t.stop(),this._userPlaybackOptions={},this._userPlaybackOptions={...this._prevUserPlaybackOptions},this._prevUserPlaybackOptions={},this.reset());}reset(){var t;let e=this._getActiveAnimationId(),i=(t=this._dotLottieLoader.manifest)==null?void 0:t.animations.find(r=>r.id===e);if(this._inInteractiveMode&&this.exitInteractiveMode(),!i)throw Ke("animation not found.");this.play(e);}previous(t){if(!this._dotLottieLoader.manifest||!this._dotLottieLoader.manifest.animations.length)throw Ke("manifest not found.");if(this._inInteractiveMode){Ai("previous() is not supported in interactive mode.");return}let e=this._dotLottieLoader.manifest.animations.findIndex(r=>r.id===this._currentAnimationId);if(e===-1)throw Ke("animation not found.");let i=this._dotLottieLoader.manifest.animations[(e-1+this._dotLottieLoader.manifest.animations.length)%this._dotLottieLoader.manifest.animations.length];if(!i||!i.id)throw Ke("animation not found.");typeof t=="function"?this.render({id:i.id,...t(this._getPlaybackOptions(),this._getOptionsFromAnimation(i))}):this.render({id:i.id});}next(t){if(!this._dotLottieLoader.manifest||!this._dotLottieLoader.manifest.animations.length)throw Ke("manifest not found.");if(this._inInteractiveMode){Ai("next() is not supported in interactive mode.");return}let e=this._dotLottieLoader.manifest.animations.findIndex(r=>r.id===this._currentAnimationId);if(e===-1)throw Ke("animation not found.");let i=this._dotLottieLoader.manifest.animations[(e+1)%this._dotLottieLoader.manifest.animations.length];if(!i||!i.id)throw Ke("animation not found.");typeof t=="function"?this.render({id:i.id,...t(this._getPlaybackOptions(),this._getOptionsFromAnimation(i))}):this.render({id:i.id});}getManifest(){return this._dotLottieLoader.manifest}resize(){if(!this._lottie||["loading"].includes(this._currentState)){Ai("resize() Can't use whilst loading.");return}this._lottie.resize();}stop(){if(!this._lottie||["loading"].includes(this._currentState)){Ai("stop() Can't use whilst loading.");return}this.clearCountTimer(),this._counter=0,this._setPlayerState(()=>({direction:this._getOption("direction")})),this._lottie.stop(),this.setCurrentState("stopped");}pause(){if(!this._lottie||["loading"].includes(this._currentState)){Ai("pause() Can't use whilst loading.");return}this.clearCountTimer(),this._lottie.pause(),this.setCurrentState("paused");}freeze(){if(!this._lottie||["loading"].includes(this._currentState)){Ai("freeze() Can't use whilst loading.");return}this.currentState!=="frozen"&&(this._stateBeforeFreeze=this.currentState),this._lottie.pause(),this.setCurrentState("frozen");}unfreeze(){if(!this._lottie||["loading"].includes(this._currentState)){Ai("unfreeze() Can't use whilst loading.");return}this._stateBeforeFreeze==="playing"?this.play():this.pause();}destroy(){var t,e;(t=this._container)!=null&&t.__lottie&&(this._container.__lottie.destroy(),this._container.__lottie=null),this._audios.length&&(this._audios.forEach(i=>{i.unload();}),this._audios=[]),this.clearCountTimer(),typeof document<"u"&&document.removeEventListener("visibilitychange",()=>this._onVisibilityChange()),this._counter=0,(e=this._lottie)==null||e.destroy(),this._lottie=void 0;}getAnimationInstance(){return this._lottie}static getLottieWebVersion(){return `${fg.dependencies["lottie-web"]}`}addEventListener(t,e){var i,r,s;this._listeners.has(t)||this._listeners.set(t,new Set),(i=this._listeners.get(t))==null||i.add(e);try{t==="complete"?(r=this._container)==null||r.addEventListener(t,e):(s=this._lottie)==null||s.addEventListener(t,e);}catch(a){$s(`addEventListener ${a}`);}}getState(){var t,e,i,r,s,a,n;return {autoplay:(e=(t=this._lottie)==null?void 0:t.autoplay)!=null?e:!1,currentState:this._currentState,frame:this._frame,visibilityPercentage:this._visibilityPercentage,seeker:this._seeker,direction:(r=(i=this._lottie)==null?void 0:i.playDirection)!=null?r:1,hover:this._hover,loop:this._loop||!1,playMode:this._mode,speed:(a=(s=this._lottie)==null?void 0:s.playSpeed)!=null?a:1,background:this._background,intermission:this._intermission,defaultTheme:this._defaultTheme,currentAnimationId:this._currentAnimationId,activeStateId:(n=this._activeStateId)!=null?n:""}}_notify(){this.state.setState(this.getState());}get totalFrames(){var t;return ((t=this._lottie)==null?void 0:t.totalFrames)||0}get direction(){return this._lottie?this._lottie.playDirection:1}setDirection(t){this._requireValidDirection(t),this._setPlayerState(()=>({direction:t})),this._userPlaybackOptions.direction=t;}get speed(){var t;return ((t=this._lottie)==null?void 0:t.playSpeed)||1}setSpeed(t){this._requireValidSpeed(t),this._setPlayerState(()=>({speed:t})),this._userPlaybackOptions.speed=t;}get autoplay(){var t,e;return (e=(t=this._lottie)==null?void 0:t.autoplay)!=null?e:!1}setAutoplay(t){if(this._requireValidAutoplay(t),!this._lottie||["loading"].includes(this._currentState)){Ai("setAutoplay() Can't use whilst loading.");return}this._setPlayerState(()=>({autoplay:t})),this._userPlaybackOptions.autoplay=t;}toggleAutoplay(){if(!this._lottie||["loading"].includes(this._currentState)){Ai("toggleAutoplay() Can't use whilst loading.");return}this.setAutoplay(!this._lottie.autoplay);}get defaultTheme(){return this._defaultTheme}setDefaultTheme(t){this._setPlayerState(()=>({defaultTheme:t})),this._userPlaybackOptions.defaultTheme=t,this._animation&&this.render();}get loop(){return this._loop}setLoop(t){this._requireValidLoop(t),this._setPlayerState(()=>({loop:t})),this._userPlaybackOptions.loop=t;}toggleLoop(){if(!this._lottie||["loading"].includes(this._currentState)){Ai("toggleLoop() Can't use whilst loading.");return}this.setLoop(!this._loop);}get background(){return this._background}setBackground(t){this._requireValidBackground(t),this._background=t,this._container&&(this._container.style.backgroundColor=t);}get _frame(){return this._lottie?this.currentState==="completed"?this.direction===-1?0:this._lottie.totalFrames:this._lottie.currentFrame:0}get _seeker(){return this._lottie?this._frame/this._lottie.totalFrames*100:0}async revertToManifestValues(t){var e;let i;!Array.isArray(t)||t.length===0?i=["autoplay","defaultTheme","direction","hover","intermission","loop","playMode","speed","activeAnimationId"]:i=t;let r=!1;if(i.includes("activeAnimationId")){let s=(e=this._dotLottieLoader.manifest)==null?void 0:e.activeAnimationId,a=this._getAnimationByIdOrIndex(s||0);this._activeAnimationId=s,await this._setCurrentAnimation(a.id),r=!0;}i.forEach(s=>{switch(s){case"autoplay":delete this._userPlaybackOptions.autoplay,this.setAutoplay(this._getOption("autoplay"));break;case"defaultTheme":delete this._userPlaybackOptions.defaultTheme,this.setDefaultTheme(this._getOption("defaultTheme"));break;case"direction":delete this._userPlaybackOptions.direction,this.setDirection(this._getOption("direction"));break;case"hover":delete this._userPlaybackOptions.hover,this.setHover(this._getOption("hover"));break;case"intermission":delete this._userPlaybackOptions.intermission,this.setIntermission(this._getOption("intermission"));break;case"loop":delete this._userPlaybackOptions.loop,this.setLoop(this._getOption("loop"));break;case"playMode":delete this._userPlaybackOptions.playMode,this.setMode(this._getOption("playMode")),this.setDirection(this._getOption("direction"));break;case"speed":delete this._userPlaybackOptions.speed,this.setSpeed(this._getOption("speed"));break}}),r&&this.render();}removeEventListener(t,e){var i,r,s;try{t==="complete"?(i=this._container)==null||i.removeEventListener(t,e):(r=this._lottie)==null||r.removeEventListener(t,e),(s=this._listeners.get(t))==null||s.delete(e);}catch(a){$s("removeEventListener",a);}}_handleAnimationComplete(){var t;typeof this._loop=="number"&&this.stop();let e=this.direction===-1?0:this.totalFrames;this.goToAndStop(e,!0),this._counter=0,this.clearCountTimer(),this.setCurrentState("completed"),(t=this._container)==null||t.dispatchEvent(new Event("complete"));}addEventListeners(){var t;if(!this._lottie||["loading"].includes(this._currentState)){Ai("addEventListeners() Can't use whilst loading.");return}this._lottie.addEventListener("enterFrame",()=>{var e;if(!this._lottie){Ai("enterFrame event : Lottie is undefined.");return}Math.floor(this._lottie.currentFrame)===0&&this.direction===-1&&((e=this._container)==null||e.dispatchEvent(new Event("complete")),this.loop||this.setCurrentState("completed")),this._notify();}),this._lottie.addEventListener("loopComplete",()=>{var e;if(!this._lottie){Ai("loopComplete event : Lottie is undefined.");return}(e=this._container)==null||e.dispatchEvent(new Event("loopComplete")),this.intermission>0&&this.pause();let i=this._lottie.playDirection;if(typeof this._loop=="number"&&this._loop>0&&(this._counter+=this._mode==="bounce"?.5:1,this._counter>=this._loop)){this._handleAnimationComplete();return}this._mode==="bounce"&&typeof i=="number"&&(i=Number(i)*-1);let r=i===-1?this._lottie.totalFrames-1:0;this.intermission?(this.goToAndPlay(r,!0),this.pause(),this._counterInterval=window.setTimeout(()=>{this._lottie&&(this._setPlayerState(()=>({direction:i})),this.goToAndPlay(r,!0));},this._intermission)):(this._setPlayerState(()=>({direction:i})),this.goToAndPlay(i===-1?this.totalFrames-1:0,!0));}),this._lottie.addEventListener("complete",()=>{if(this._lottie&&this._loop===!1&&this._mode==="bounce"){if(this._counter+=.5,this._counter>=1){this._handleAnimationComplete();return}this._counterInterval=window.setTimeout(()=>{if(!this._lottie)return;let e=this._lottie.playDirection;this._mode==="bounce"&&typeof e=="number"&&(e=Number(e)*-1);let i=e===-1?this.totalFrames-1:0;this._setPlayerState(()=>({direction:e})),this.goToAndPlay(i,!0);},this._intermission);}else this._handleAnimationComplete();});for(let[e,i]of this._listeners)if(e==="complete")for(let r of i)(t=this._container)==null||t.addEventListener(e,r);else for(let r of i)this._lottie.addEventListener(e,r);}async _setCurrentAnimation(t){this._currentState="loading";let e=await this._dotLottieLoader.getAnimation(t);this._currentAnimationId=t,this._animation=e,this._currentState="ready";}async _getAudioFactory(){if(this._animation&&bh(this._animation)){let{DotLottieAudio:t}=await Promise.resolve().then(()=>(Sc(),Pc));return e=>{let i=new t({src:[e]});return this._audios.push(i),i}}return null}async render(t){var e,i,r,s,a,n,p,o,d,g,f,l,b,v,m,E,c,u;if(t!=null&&t.id)await this._setCurrentAnimation(t.id);else if(!this._animation)throw Ke("no animation selected");let y=(e=Gr.loop)!=null?e:!1,P=(i=Gr.autoplay)!=null?i:!1,w=(r=Gr.playMode)!=null?r:"normal",F=(s=Gr.intermission)!=null?s:0,B=(a=Gr.hover)!=null?a:!1,G=(n=Gr.direction)!=null?n:1,it=(p=Gr.speed)!=null?p:1,ft=(o=Gr.defaultTheme)!=null?o:"";y=(d=t==null?void 0:t.loop)!=null?d:this._getOption("loop"),P=(g=t==null?void 0:t.autoplay)!=null?g:this._getOption("autoplay"),w=(f=t==null?void 0:t.playMode)!=null?f:this._getOption("playMode"),F=(l=t==null?void 0:t.intermission)!=null?l:this._getOption("intermission"),B=(b=t==null?void 0:t.hover)!=null?b:this._getOption("hover"),G=(v=t==null?void 0:t.direction)!=null?v:this._getOption("direction"),it=(m=t==null?void 0:t.speed)!=null?m:this._getOption("speed"),ft=(E=t==null?void 0:t.defaultTheme)!=null?E:this._getOption("defaultTheme");let ct={...this._animationConfig,autoplay:B?!1:P,loop:typeof y=="number"?!0:y,renderer:this._worker?"svg":(c=this._animationConfig.renderer)!=null?c:"svg"},[dt,Pt,tt]=await Promise.all([this._dotLottieLoader.getTheme(ft),this._getLottiePlayerInstance(),this._getAudioFactory()]);if(dt&&this._animation?this._animation=await Gf(this._animation,dt):this._animation=await this._dotLottieLoader.getAnimation((u=this._currentAnimationId)!=null?u:""),this._activeStateId&&!this._inInteractiveMode){this.enterInteractiveMode(this._activeStateId);return}this.destroy(),this._setPlayerState(()=>({defaultTheme:ft,playMode:w,intermission:F,hover:B,loop:y})),tt?this._lottie=Pt.loadAnimation({...ct,container:this._container,animationData:this._animation,audioFactory:tt}):this._lottie=Pt.loadAnimation({...ct,container:this._container,animationData:this._animation}),typeof this._lottie.resetSegments>"u"&&(this._lottie.resetSegments=()=>{var vt;(vt=this._lottie)==null||vt.playSegments([0,this._lottie.totalFrames],!0);}),this.addEventListeners(),this._container&&(this._container.__lottie=this._lottie),this._setPlayerState(()=>({direction:G,speed:it})),P&&!B&&this.play(),this._updateTestData();}async _getLottiePlayerInstance(){var t;let e=(t=this._animationConfig.renderer)!=null?t:"svg",i;if(this._worker)return e!=="svg"&&Ai("Worker is only supported with svg renderer. Change or remove renderer prop to get rid of this warning."),i=await Promise.resolve().then(()=>(Ec(),kc)),i.default;switch(e){case"svg":{this._light?i=await Promise.resolve().then(()=>(Cc(),Ac)):i=await Promise.resolve().then(()=>(Tc(),wc));break}case"canvas":{this._light?i=await Promise.resolve().then(()=>(Dc(),Mc)):i=await Promise.resolve().then(()=>(Ic(),Fc));break}case"html":{this._light?i=await Promise.resolve().then(()=>(Vc(),Lc)):i=await Promise.resolve().then(()=>(Oc(),Rc));break}default:throw new Error(`Invalid renderer: ${e}`)}return i.default}_getActiveAnimationId(){var t,e,i,r;let s=this._dotLottieLoader.manifest;return (r=(i=(t=this._activeAnimationId)!=null?t:s==null?void 0:s.activeAnimationId)!=null?i:(e=s==null?void 0:s.animations[0])==null?void 0:e.id)!=null?r:void 0}async load(t){if(this._currentState==="loading"){Ai("Loading in progress..");return}try{if(this.setCurrentState("loading"),typeof this._src=="string")if(_h(this._src)){let i=JSON.parse(this._src);this._dotLottieLoader.loadFromLottieJSON(i);}else {let i=new URL(this._src,window.location.href);await this._dotLottieLoader.loadFromUrl(i.toString());}else if(typeof this._src=="object"&&qa(this._src))this._dotLottieLoader.loadFromLottieJSON(this._src);else throw Ke("Invalid src provided");if(!this._dotLottieLoader.manifest)throw Ke("No manifest found");let e=this._getActiveAnimationId();if(!e)throw Ke("No active animation found");await this._setCurrentAnimation(e),await this.render(t);}catch(e){this.setCurrentState("error"),e instanceof Error&&$s(`Error loading animation: ${e.message}`);}}setErrorState(t){this.setCurrentState("error"),$s(t);}_requireValidDirection(t){if(t!==-1&&t!==1)throw Ke("Direction can only be -1 (backwards) or 1 (forwards)")}_requireValidIntermission(t){if(t<0||!Number.isInteger(t))throw Ke("intermission must be a positive number")}_requireValidLoop(t){if(typeof t=="number"&&(!Number.isInteger(t)||t<0))throw Ke("loop must be a positive number or boolean")}_requireValidSpeed(t){if(typeof t!="number")throw Ke("speed must be a number")}_requireValidBackground(t){if(typeof t!="string")throw Ke("background must be a string")}_requireValidAutoplay(t){if(typeof t!="boolean")throw Ke("autoplay must be a boolean")}_requireValidPlaybackOptions(t){t.direction&&this._requireValidDirection(t.direction),t.intermission&&this._requireValidIntermission(t.intermission),t.loop&&this._requireValidLoop(t.loop),t.speed&&this._requireValidSpeed(t.speed);}};});ml();co();Uo();wo();Do();en();ns();var Zo=window,Ko=Zo.ShadowRoot&&(Zo.ShadyCSS===void 0||Zo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,yl=Symbol(),Bc=new WeakMap,Yn=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==yl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i;}get styleSheet(){let e=this.o,i=this.t;if(Ko&&e===void 0){let r=i!==void 0&&i.length===1;r&&(e=Bc.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Bc.set(i,e));}return e}toString(){return this.cssText}},zc=t=>new Yn(typeof t=="string"?t:t+"",void 0,yl),gl=(t,...e)=>{let i=t.length===1?t[0]:e.reduce((r,s,a)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[a+1],t[0]);return new Yn(i,t,yl)},vl=(t,e)=>{Ko?t.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{let r=document.createElement("style"),s=Zo.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=i.cssText,t.appendChild(r);});},Qo=Ko?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let i="";for(let r of e.cssRules)i+=r.cssText;return zc(i)})(t):t;var bl,th=window,Nc=th.trustedTypes,cg=Nc?Nc.emptyScript:"",Gc=th.reactiveElementPolyfillSupport,xl={toAttribute(t,e){switch(e){case Boolean:t=t?cg:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t);}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=t!==null;break;case Number:i=t===null?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch{i=null;}}return i}},jc=(t,e)=>e!==t&&(e==e||t==t),_l={attribute:!0,type:String,converter:xl,reflect:!1,hasChanged:jc},Pl="finalized",oa=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu();}static addInitializer(e){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(e);}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((i,r)=>{let s=this._$Ep(r,i);s!==void 0&&(this._$Ev.set(s,r),e.push(s));}),e}static createProperty(e,i=_l){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){let r=typeof e=="symbol"?Symbol():"__"+e,s=this.getPropertyDescriptor(e,r,i);s!==void 0&&Object.defineProperty(this.prototype,e,s);}}static getPropertyDescriptor(e,i,r){return {get(){return this[i]},set(s){let a=this[e];this[i]=s,this.requestUpdate(e,a,r);},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||_l}static finalize(){if(this.hasOwnProperty(Pl))return !1;this[Pl]=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let i=this.properties,r=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(let s of r)this.createProperty(s,i[s]);}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let i=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let s of r)i.unshift(Qo(s));}else e!==void 0&&i.push(Qo(e));return i}static _$Ep(e,i){let r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(i=>i(this));}addController(e){var i,r;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)===null||r===void 0||r.call(e));}removeController(e){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(e)>>>0,1);}_$Eg(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i]);});}createRenderRoot(){var e;let i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return vl(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var r;return (r=i.hostConnected)===null||r===void 0?void 0:r.call(i)});}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var r;return (r=i.hostDisconnected)===null||r===void 0?void 0:r.call(i)});}attributeChangedCallback(e,i,r){this._$AK(e,r);}_$EO(e,i,r=_l){var s;let a=this.constructor._$Ep(e,r);if(a!==void 0&&r.reflect===!0){let n=(((s=r.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?r.converter:xl).toAttribute(i,r.type);this._$El=e,n==null?this.removeAttribute(a):this.setAttribute(a,n),this._$El=null;}}_$AK(e,i){var r;let s=this.constructor,a=s._$Ev.get(e);if(a!==void 0&&this._$El!==a){let n=s.getPropertyOptions(a),p=typeof n.converter=="function"?{fromAttribute:n.converter}:((r=n.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?n.converter:xl;this._$El=a,this[a]=p.fromAttribute(i,n.type),this._$El=null;}}requestUpdate(e,i,r){let s=!0;e!==void 0&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||jc)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),r.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,r))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej());}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_;}catch(i){Promise.reject(i);}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,a)=>this[a]=s),this._$Ei=void 0);let i=!1,r=this._$AL;try{i=this.shouldUpdate(r),i?(this.willUpdate(r),(e=this._$ES)===null||e===void 0||e.forEach(s=>{var a;return (a=s.hostUpdate)===null||a===void 0?void 0:a.call(s)}),this.update(r)):this._$Ek();}catch(s){throw i=!1,this._$Ek(),s}i&&this._$AE(r);}willUpdate(e){}_$AE(e){var i;(i=this._$ES)===null||i===void 0||i.forEach(r=>{var s;return (s=r.hostUpdated)===null||s===void 0?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e);}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return !0}update(e){this._$EC!==void 0&&(this._$EC.forEach((i,r)=>this._$EO(r,this[r],i)),this._$EC=void 0),this._$Ek();}updated(e){}firstUpdated(e){}};oa[Pl]=!0,oa.elementProperties=new Map,oa.elementStyles=[],oa.shadowRootOptions={mode:"open"},Gc==null||Gc({ReactiveElement:oa}),((bl=th.reactiveElementVersions)!==null&&bl!==void 0?bl:th.reactiveElementVersions=[]).push("1.6.3");var Sl,eh=window,gn=eh.trustedTypes,Hc=gn?gn.createPolicy("lit-html",{createHTML:t=>t}):void 0,El="$lit$",Ea=`lit$${(Math.random()+"").slice(9)}$`,Yc="?"+Ea,ug=`<${Yc}>`,Xa=document,Kn=()=>Xa.createComment(""),Qn=t=>t===null||typeof t!="object"&&typeof t!="function",Zc=Array.isArray,dg=t=>Zc(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",kl=`[ +\f\r]`,Zn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qc=/-->/g,$c=/>/g,Ua=RegExp(`>|${kl}(?:([^\\s"'>=/]+)(${kl}*=${kl}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),Wc=/'/g,Uc=/"/g,Kc=/^(?:script|style|textarea|title)$/i,Qc=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),ri=Qc(1),Ya=Symbol.for("lit-noChange"),mr=Symbol.for("lit-nothing"),Jc=new WeakMap,Ja=Xa.createTreeWalker(Xa,129,null,!1);function tu(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Hc!==void 0?Hc.createHTML(e):e}var mg=(t,e)=>{let i=t.length-1,r=[],s,a=e===2?"":"",n=Zn;for(let p=0;p"?(n=s!=null?s:Zn,f=-1):g[1]===void 0?f=-2:(f=n.lastIndex-g[2].length,d=g[1],n=g[3]===void 0?Ua:g[3]==='"'?Uc:Wc):n===Uc||n===Wc?n=Ua:n===qc||n===$c?n=Zn:(n=Ua,s=void 0);let b=n===Ua&&t[p+1].startsWith("/>")?" ":"";a+=n===Zn?o+ug:f>=0?(r.push(d),o.slice(0,f)+El+o.slice(f)+Ea+b):o+Ea+(f===-2?(r.push(void 0),p):b);}return [tu(t,a+(t[i]||"")+(e===2?"":"")),r]},to=class t{constructor({strings:e,_$litType$:i},r){let s;this.parts=[];let a=0,n=0,p=e.length-1,o=this.parts,[d,g]=mg(e,i);if(this.el=t.createElement(d,r),Ja.currentNode=this.el.content,i===2){let f=this.el.content,l=f.firstChild;l.remove(),f.append(...l.childNodes);}for(;(s=Ja.nextNode())!==null&&o.length0){s.textContent=gn?gn.emptyScript:"";for(let b=0;b2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=mr;}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,r,s){let a=this.strings,n=!1;if(a===void 0)e=vn(this,e,i,0),n=!Qn(e)||e!==this._$AH&&e!==Ya,n&&(this._$AH=e);else {let p=e,o,d;for(e=a[0],o=0;o{var r,s;let a=(r=i==null?void 0:i.renderBefore)!==null&&r!==void 0?r:e,n=a._$litPart$;if(n===void 0){let p=(s=i==null?void 0:i.renderBefore)!==null&&s!==void 0?s:null;a._$litPart$=n=new eo(e.insertBefore(Kn(),p),p,void 0,i!=null?i:{});}return n._$AI(t),n};var Dl,Fl;var Aa=class extends oa{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e,i;let r=super.createRenderRoot();return (e=(i=this.renderOptions).renderBefore)!==null&&e!==void 0||(i.renderBefore=r.firstChild),r}update(e){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=eu(i,this.renderRoot,this.renderOptions);}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0);}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1);}render(){return Ya}};Aa.finalized=!0,Aa._$litElement$=!0,(Dl=globalThis.litElementHydrateSupport)===null||Dl===void 0||Dl.call(globalThis,{LitElement:Aa});var iu=globalThis.litElementPolyfillSupport;iu==null||iu({LitElement:Aa});((Fl=globalThis.litElementVersions)!==null&&Fl!==void 0?Fl:globalThis.litElementVersions=[]).push("3.3.3");var gg=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t);}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this));},finisher(i){i.createProperty(e.key,t);}},vg=(t,e,i)=>{e.constructor.createProperty(i,t);};function sr(t){return (e,i)=>i!==void 0?vg(t,e,i):gg(t,e)}function ru(t){return sr({...t,state:!0})}var Za=({finisher:t,descriptor:e})=>(i,r)=>{var s;if(r===void 0){let a=(s=i.originalKey)!==null&&s!==void 0?s:i.key,n=e!=null?{kind:"method",placement:"prototype",key:a,descriptor:e(i.key)}:{...i,key:a};return t!=null&&(n.finisher=function(p){t(p,a);}),n}{let a=i.constructor;e!==void 0&&Object.defineProperty(i,r,e(r)),t==null||t(a,r);}};function su(t,e){return Za({descriptor:i=>{let r={get(){var s,a;return (a=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(t))!==null&&a!==void 0?a:null},enumerable:!0,configurable:!0};if(e){let s=typeof i=="symbol"?Symbol():"__"+i;r.get=function(){var a,n;return this[s]===void 0&&(this[s]=(n=(a=this.renderRoot)===null||a===void 0?void 0:a.querySelector(t))!==null&&n!==void 0?n:null),this[s]};}return r}})}var Il;((Il=window.HTMLSlotElement)===null||Il===void 0?void 0:Il.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(i=>i.nodeType===Node.ELEMENT_NODE);var au={name:"@dotlottie/player-component",version:"2.7.2",description:"dotLottie animation player web component.",repository:"https://github.com/dotlottie/player-component.git",homepage:"https://dotlottie.com/players",bugs:"https://github.com/dotlottie/player-component/issues",author:"Jawish Hameed ",license:"MIT",main:"dist/dotlottie-player.js",module:"dist/dotlottie-player.mjs",types:"dist/dotlottie-player.d.ts",files:["dist"],keywords:["dotlottie","animation","web component","component","lit-element","player"],scripts:{build:"tsup","cypress:open":"cypress open --component",dev:"tsup --watch",lint:"eslint .","lint:fix":"eslint --fix",test:"cypress run --component","type-check":"tsc --noEmit"},dependencies:{"@dotlottie/common":"workspace:*",lit:"^2.7.5"},devDependencies:{"@vitejs/plugin-legacy":"^4.1.0","axe-core":"^4.7.2",cypress:"^12.11.0","cypress-axe":"^1.4.0","cypress-ct-lit":"^0.3.2","lottie-web":"^5.12.2",terser:"^5.19.0",tsup:"^7.2.0",typescript:"^4.7.4",vite:"^4.3.9"},publishConfig:{access:"public"},browserslist:["> 3%"]};var nu=gl` + @font-face { + font-family: 'Karla'; + font-weight: regular; + src: url('./fonts/Karla-regular.woff') format('woff'); + } + + * { + box-sizing: border-box; + } + + :host { + --lottie-player-toolbar-height: 35px; + --lottie-player-toolbar-background-color: transparent; + --lottie-player-toolbar-hover-background-color: #f3f6f8; + --lottie-player-toolbar-icon-color: #20272c; + --lottie-player-toolbar-icon-hover-color: #f3f6f8; + --lottie-player-toolbar-icon-active-color: #00ddb3; + --lottie-player-seeker-track-color: #00ddb3; + --lottie-player-seeker-accent-color: #00c1a2; + --lottie-player-seeker-thumb-color: #00c1a2; + --lottie-player-options-separator: #d9e0e6; + + display: block; + width: 100%; + height: 100%; + + font-family: 'Karla', sans-serif; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + } + + .active { + color: var(--lottie-player-toolbar-icon-active-color) !important; + } + + .main { + position: relative; + display: flex; + flex-direction: column; + height: 100%; + width: 100%; + } + + .animation { + position: relative; + width: 100%; + height: 100%; + display: flex; + } + .animation.controls { + height: calc(100% - var(--lottie-player-toolbar-height)); + } + + .toolbar { + display: flex; + align-items: center; + justify-items: center; + background-color: var(--lottie-player-toolbar-background-color); + margin: 0 8px; + height: var(--lottie-player-toolbar-height); + } + + .btn-spacing-left { + margin-right: 4px; + margin-left: 8px; + } + + .btn-spacing-center { + margin-right: 4px; + margin-left: 4px; + } + + .btn-spacing-right { + margin-right: 8px; + margin-left: 4px; + } + + .toolbar button { + color: #20272c; + cursor: pointer; + fill: var(--lottie-player-toolbar-icon-color); + display: flex; + background: none; + border: 0px; + border-radius: 4px; + padding: 4px; + outline: none; + width: 24px; + height: 24px; + align-items: center; + } + + .toolbar button:hover { + background-color: var(--lottie-player-toolbar-icon-hover-color); + border-style: solid; + border-radius: 2px; + } + + .toolbar button.active { + fill: var(--lottie-player-toolbar-icon-active-color); + } + + .toolbar button.active:hover { + fill: var(--lottie-player-toolbar-icon-hover-color); + border-radius: 4px; + } + + .toolbar button:focus-visible { + outline: 2px solid var(--lottie-player-toolbar-icon-active-color); + border-radius: 4px; + box-sizing: border-box; + } + + .toolbar button svg { + width: 16px; + height: 16px; + } + + .toolbar button.disabled svg { + display: none; + } + + .popover { + position: absolute; + bottom: 40px; + left: calc(100% - 239px); + width: 224px; + min-height: 84px; + max-height: 300px; + background-color: #ffffff; + box-shadow: 0px 8px 48px 0px rgba(243, 246, 248, 0.15), 0px 8px 16px 0px rgba(61, 72, 83, 0.16), + 0px 0px 1px 0px rgba(61, 72, 83, 0.36); + border-radius: 8px; + padding: 8px; + z-index: 100; + overflow-y: scroll; + scrollbar-width: none; + } + .popover:focus-visible { + outline: 2px solid var(--lottie-player-toolbar-icon-active-color); + border-radius: 4px; + box-sizing: border-box; + } + + .popover::-webkit-scrollbar { + width: 0px; + } + + .popover-button { + background: none; + border: none; + font-family: inherit; + width: 100%; + flex-direction: row; + cursor: pointer; + height: 32px; + color: #20272c; + justify-content: space-between; + display: flex; + padding: 4px 8px; + align-items: flex-start; + gap: 8px; + align-self: stretch; + border-radius: 4px; + } + + .popover-button:focus-visible { + outline: 2px solid var(--lottie-player-toolbar-icon-active-color); + border-radius: 4px; + box-sizing: border-box; + } + + .popover-button:hover { + background-color: var(--lottie-player-toolbar-hover-background-color); + } + + .popover-button-text { + display: flex; + color: #20272c; + flex-direction: column; + align-self: stretch; + justify-content: center; + font-family: inherit; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: 150%; + letter-spacing: -0.28px; + } + + .reset-btn { + font-size: 12px; + cursor: pointer; + font-family: inherit; + background: none; + border: none; + font-weight: 400; + line-height: 18px; + letter-spacing: 0em; + text-align: left; + color: #63727e; + padding: 0; + width: 31px; + height: 18px; + } + .reset-btn:focus-visible { + outline: 2px solid var(--lottie-player-toolbar-icon-active-color); + border-radius: 4px; + box-sizing: border-box; + } + .reset-btn:hover { + color: #20272c; + } + + .option-title-button { + display: flex; + flex-direction: row; + width: 100%; + height: 32px; + align-items: center; + gap: 4px; + align-self: stretch; + cursor: pointer; + color: var(--lottie-player-toolbar-icon-color); + border: none; + background: none; + padding: 4px; + font-family: inherit; + font-size: 16px; + font-weight: 700; + line-height: 150%; + letter-spacing: -0.32px; + } + .option-title-button.themes { + width: auto; + padding: 0; + } + .option-title-button:hover { + background-color: var(--lottie-player-toolbar-icon-hover-color); + } + + .option-title-themes-row { + display: flex; + align-items: center; + gap: 8px; + flex: 1 0 0; + } + .option-title-themes-row:hover { + background-color: var(--lottie-player-toolbar-icon-hover-color); + } + + .option-title-button:focus-visible { + outline: 2px solid var(--lottie-player-toolbar-icon-active-color); + border-radius: 4px; + box-sizing: border-box; + } + + .option-title-text { + font-size: 16px; + font-style: normal; + font-weight: 700; + line-height: 150%; + letter-spacing: -0.32px; + } + + .option-title-separator { + margin: 8px -8px; + border-bottom: 1px solid var(--lottie-player-options-separator); + } + + .option-title-chevron { + display: flex; + padding: 4px; + border-radius: 8px; + justify-content: center; + align-items: center; + gap: 8px; + } + + .option-row { + display: flex; + flex-direction: column; + } + .option-row > ul { + padding: 0; + margin: 0; + } + + .option-button { + width: 100%; + background: none; + border: none; + font-family: inherit; + display: flex; + padding: 4px 8px; + color: #20272c; + overflow: hidden; + align-items: center; + gap: 8px; + align-self: stretch; + cursor: pointer; + height: 32px; + font-family: inherit; + font-size: 14px; + border-radius: 4px; + } + .option-button:hover { + background-color: var(--lottie-player-toolbar-hover-background-color); + } + .option-button:focus-visible { + outline: 2px solid var(--lottie-player-toolbar-icon-active-color); + border-radius: 4px; + box-sizing: border-box; + } + + .option-tick { + display: flex; + width: 24px; + height: 24px; + align-items: flex-start; + gap: 8px; + } + + .seeker { + height: 4px; + width: 95%; + outline: none; + -webkit-appearance: none; + -moz-apperance: none; + border-radius: 9999px; + cursor: pointer; + background-image: linear-gradient( + to right, + rgb(0, 221, 179) calc(var(--seeker) * 1%), + rgb(217, 224, 230) calc(var(--seeker) * 1%) + ); + } + .seeker.to-left { + background-image: linear-gradient( + to right, + rgb(217, 224, 230) calc(var(--seeker) * 1%), + rgb(0, 221, 179) calc(var(--seeker) * 1%) + ); + } + .seeker::-webkit-slider-runnable-track:focus-visible { + color: #f07167; + accent-color: #00ddb3; + } + + .seeker::-webkit-slider-runnable-track { + width: 100%; + height: 5px; + cursor: pointer; + } + .seeker::-webkit-slider-thumb { + -webkit-appearance: none; + height: 16px; + width: 16px; + border-radius: 50%; + background: var(--lottie-player-seeker-thumb-color); + cursor: pointer; + margin-top: -5px; + } + .seeker:focus-visible::-webkit-slider-thumb { + background: var(--lottie-player-seeker-thumb-color); + outline: 2px solid var(--lottie-player-seeker-track-color); + border: 1.5px solid #ffffff; + } + .seeker::-webkit-slider-thumb:hover { + background: #019d91; + } + .seeker::-moz-range-thumb { + appearance: none; + height: 16px; + width: 16px; + border-radius: 50%; + background: var(--lottie-player-seeker-thumb-color); + cursor: pointer; + margin-top: -5px; + border-color: transparent; + } + .seeker:focus-visible::-moz-range-thumb { + background: var(--lottie-player-seeker-thumb-color); + outline: 2px solid var(--lottie-player-seeker-track-color); + border: 1.5px solid #ffffff; + } + + .error { + display: flex; + justify-content: center; + margin: auto; + height: 100%; + align-items: center; + } +`;var ou="dotlottie-player";var Xi=class extends Aa{defaultTheme="";container;playMode=exports.PlayMode.Normal;autoplay=!1;background="transparent";controls=!1;direction=1;hover=!1;loop;renderer="svg";speed=1;src;intermission=0;activeAnimationId=null;light=!1;worker=!1;activeStateId;_seeker=0;_dotLottieCommonPlayer;_io;_loop;_renderer="svg";_unsubscribeListeners;_hasMultipleAnimations=!1;_hasMultipleThemes=!1;_hasMultipleStates=!1;_popoverIsOpen=!1;_animationsTabIsOpen=!1;_statesTabIsOpen=!1;_styleTabIsOpen=!1;_themesForCurrentAnimation=[];_statesForCurrentAnimation=[];_parseLoop(e){let i=parseInt(e,10);return Number.isInteger(i)&&i>0?(this._loop=i,i):typeof e=="string"&&["true","false"].includes(e)?(this._loop=e==="true",this._loop):(Ai("loop must be a positive integer or a boolean"),!1)}_handleSeekChange(e){let i=e.currentTarget;try{let r=parseInt(i.value,10);if(!this._dotLottieCommonPlayer)return;let s=r/100*this._dotLottieCommonPlayer.totalFrames;this.seek(s);}catch{throw Ke("Error while seeking animation")}}_initListeners(){let e=this._dotLottieCommonPlayer;if(e===void 0){Ai("player not initialized - cannot add event listeners","dotlottie-player-component");return}this._unsubscribeListeners=e.state.subscribe((i,r)=>{this._seeker=i.seeker,this.requestUpdate(),r.currentState!==i.currentState&&this.dispatchEvent(new CustomEvent(i.currentState)),this.dispatchEvent(new CustomEvent(Js.Frame,{detail:{frame:i.frame,seeker:i.seeker}})),this.dispatchEvent(new CustomEvent(Js.VisibilityChange,{detail:{visibilityPercentage:i.visibilityPercentage}}));}),e.addEventListener("complete",()=>{this.dispatchEvent(new CustomEvent(Js.Complete));}),e.addEventListener("loopComplete",()=>{this.dispatchEvent(new CustomEvent(Js.LoopComplete));}),e.addEventListener("DOMLoaded",()=>{let i=this.getManifest();i&&i.themes&&(this._themesForCurrentAnimation=i.themes.filter(r=>r.animations.includes(this.getCurrentAnimationId()||""))),i&&i.states&&(this._hasMultipleStates=i.states.length>0,this._statesForCurrentAnimation=[],i.states.forEach(r=>{this._statesForCurrentAnimation.push(r);})),this.dispatchEvent(new CustomEvent(Js.Ready));}),e.addEventListener("data_ready",()=>{this.dispatchEvent(new CustomEvent(Js.DataReady));}),e.addEventListener("data_failed",()=>{this.dispatchEvent(new CustomEvent(Js.DataFail));}),window&&window.addEventListener("click",i=>this._clickOutListener(i));}async load(e,i,r){if(!this.shadowRoot)return;this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.destroy(),this._dotLottieCommonPlayer=new Yo(e,this.container,{rendererSettings:i!=null?i:{scaleMode:"noScale",clearCanvas:!0,progressiveLoad:!0,hideOnTransparent:!0},hover:this.hasAttribute("hover")?this.hover:void 0,renderer:this.hasAttribute("renderer")?this._renderer:void 0,loop:this.hasAttribute("loop")?this._loop:void 0,direction:this.hasAttribute("direction")?this.direction===1?1:-1:void 0,speed:this.hasAttribute("speed")?this.speed:void 0,intermission:this.hasAttribute("intermission")?Number(this.intermission):void 0,playMode:this.hasAttribute("playMode")?this.playMode:void 0,autoplay:this.hasAttribute("autoplay")?this.autoplay:void 0,activeAnimationId:this.hasAttribute("activeAnimationId")?this.activeAnimationId:void 0,defaultTheme:this.hasAttribute("defaultTheme")?this.defaultTheme:void 0,light:this.light,worker:this.worker,activeStateId:this.hasAttribute("activeStateId")?this.activeStateId:void 0}),await this._dotLottieCommonPlayer.load(r);let s=this.getManifest();this._hasMultipleAnimations=this.animationCount()>1,s&&(s.themes&&(this._themesForCurrentAnimation=s.themes.filter(a=>a.animations.includes(this.getCurrentAnimationId()||"")),this._hasMultipleThemes=s.themes.length>0),s.states&&(this._hasMultipleStates=s.states.length>0,this._statesForCurrentAnimation=[],s.states.forEach(a=>{this._statesForCurrentAnimation.push(a);}))),this._initListeners();}getCurrentAnimationId(){var e;return (e=this._dotLottieCommonPlayer)==null?void 0:e.currentAnimationId}animationCount(){var e;return this._dotLottieCommonPlayer&&((e=this._dotLottieCommonPlayer.getManifest())==null?void 0:e.animations.length)||0}animations(){if(!this._dotLottieCommonPlayer)return [];let e=this._dotLottieCommonPlayer.getManifest();return (e==null?void 0:e.animations.map(i=>i.id))||[]}currentAnimation(){return !this._dotLottieCommonPlayer||!this._dotLottieCommonPlayer.currentAnimationId?"":this._dotLottieCommonPlayer.currentAnimationId}getState(){return this._dotLottieCommonPlayer?this._dotLottieCommonPlayer.getState():Xo}getManifest(){var e;return (e=this._dotLottieCommonPlayer)==null?void 0:e.getManifest()}getLottie(){var e;return (e=this._dotLottieCommonPlayer)==null?void 0:e.getAnimationInstance()}getVersions(){return {lottieWebVersion:Yo.getLottieWebVersion(),dotLottiePlayerVersion:`${au.version}`}}previous(e){var i;(i=this._dotLottieCommonPlayer)==null||i.previous(e);}next(e){var i;(i=this._dotLottieCommonPlayer)==null||i.next(e);}reset(){var e;(e=this._dotLottieCommonPlayer)==null||e.reset();}play(e,i){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.play(e,i);}pause(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.pause();}stop(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.stop();}playOnShow(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.playOnShow(e);}stopPlayOnShow(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.stopPlayOnShow();}playOnScroll(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.playOnScroll(e);}stopPlayOnScroll(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.stopPlayOnScroll();}seek(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.seek(e);}snapshot(e=!0){if(!this.shadowRoot)return "";let i=this.shadowRoot.querySelector(".animation svg"),r=new XMLSerializer().serializeToString(i);if(e){let s=document.createElement("a");s.href=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(r)}`,s.download=`download_${this._seeker}.svg`,document.body.appendChild(s),s.click(),document.body.removeChild(s);}return r}setTheme(e){var i;(i=this._dotLottieCommonPlayer)==null||i.setDefaultTheme(e);}themes(){var i;if(!this._dotLottieCommonPlayer)return [];let e=this._dotLottieCommonPlayer.getManifest();return ((i=e==null?void 0:e.themes)==null?void 0:i.map(r=>r.id))||[]}getDefaultTheme(){return this._dotLottieCommonPlayer?this._dotLottieCommonPlayer.defaultTheme:""}getActiveStateMachine(){return this._dotLottieCommonPlayer?this._dotLottieCommonPlayer.activeStateId:""}_freeze(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.freeze();}setSpeed(e=1){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.setSpeed(e);}setDirection(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.setDirection(e);}setLooping(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.setLoop(e);}isLooping(){return this._dotLottieCommonPlayer?this._dotLottieCommonPlayer.loop:!1}togglePlay(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.togglePlay();}toggleLooping(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.toggleLoop();}setPlayMode(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.setMode(e);}enterInteractiveMode(e){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.enterInteractiveMode(e);}exitInteractiveMode(){this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.exitInteractiveMode();}revertToManifestValues(e){var i;(i=this._dotLottieCommonPlayer)==null||i.revertToManifestValues(e);}static get styles(){return nu}async firstUpdated(){var e;this.container=(e=this.shadowRoot)==null?void 0:e.querySelector("#animation"),"IntersectionObserver"in window&&(this._io=new IntersectionObserver(i=>{var r,s;i[0]!==void 0&&i[0].isIntersecting?((r=this._dotLottieCommonPlayer)==null?void 0:r.currentState)===ka.Frozen&&this.play():((s=this._dotLottieCommonPlayer)==null?void 0:s.currentState)===ka.Playing&&this._freeze();}),this._io.observe(this.container)),this.loop?this._parseLoop(this.loop):this.hasAttribute("loop")&&this._parseLoop("true"),this.renderer==="svg"?this._renderer="svg":this.renderer==="canvas"?this._renderer="canvas":this.renderer==="html"&&(this._renderer="html"),this.src&&await this.load(this.src);}disconnectedCallback(){var e,i;this._io&&(this._io.disconnect(),this._io=void 0),(e=this._dotLottieCommonPlayer)==null||e.destroy(),(i=this._unsubscribeListeners)==null||i.call(this),window&&window.removeEventListener("click",r=>this._clickOutListener(r));}_clickOutListener(e){!e.composedPath().some(r=>r instanceof HTMLElement?r.classList.contains("popover")||r.id==="lottie-animation-options":!1)&&this._popoverIsOpen&&(this._popoverIsOpen=!1,this.requestUpdate());}renderControls(){var r,s,a,n,p;let e=((r=this._dotLottieCommonPlayer)==null?void 0:r.currentState)===ka.Playing,i=((s=this._dotLottieCommonPlayer)==null?void 0:s.currentState)===ka.Paused;return ri` +
+ ${this._hasMultipleAnimations?ri` + + `:ri``} + + ${this._hasMultipleAnimations?ri` + + `:ri``} + this._handleSeekChange(o)} + @mousedown=${()=>{this._freeze();}} + @mouseup=${()=>{var o;(o=this._dotLottieCommonPlayer)==null||o.unfreeze();}} + aria-valuemin="1" + aria-valuemax="100" + role="slider" + aria-valuenow=${this._seeker} + aria-label="lottie-seek-input" + style=${`--seeker: ${this._seeker}`} + /> + + ${this._hasMultipleAnimations||this._hasMultipleThemes||this._hasMultipleStates?ri` + + `:ri``} +
+ ${this._popoverIsOpen?ri` +
+ ${!this._animationsTabIsOpen&&!this._styleTabIsOpen&&!this._statesTabIsOpen?ri` + + `:ri``} + ${this._hasMultipleThemes&&!this._styleTabIsOpen&&!this._animationsTabIsOpen&&!this._statesTabIsOpen?ri` `:""} + ${this._hasMultipleStates&&!this._styleTabIsOpen&&!this._animationsTabIsOpen&&!this._statesTabIsOpen?ri` `:""} + ${this._animationsTabIsOpen?ri` +
+
+
    + ${this.animations().map(o=>ri` +
  • + +
  • + `)} +
+
`:ri``} + ${this._styleTabIsOpen?ri`
+ + `} + +
+
+
+
    + ${this._themesForCurrentAnimation.map(o=>ri` +
  • + +
  • + `)} +
+
`:ri``} + ${this._statesTabIsOpen?ri`
+ + +
+
+
+
    + ${this._statesForCurrentAnimation.map(o=>ri` +
  • + +
  • + `)} +
+
`:ri``} +
+ `:ri``} + `}render(){var r;let e=this.controls?"main controls":"main",i=this.controls?"animation controls":"animation";return ri` + + `}};rr([sr({type:String})],Xi.prototype,"defaultTheme",2),rr([su("#animation")],Xi.prototype,"container",2),rr([sr()],Xi.prototype,"playMode",2),rr([sr({type:Boolean})],Xi.prototype,"autoplay",2),rr([sr({type:String})],Xi.prototype,"background",2),rr([sr({type:Boolean})],Xi.prototype,"controls",2),rr([sr({type:Number})],Xi.prototype,"direction",2),rr([sr({type:Boolean})],Xi.prototype,"hover",2),rr([sr({type:String})],Xi.prototype,"loop",2),rr([sr({type:String})],Xi.prototype,"renderer",2),rr([sr({type:Number})],Xi.prototype,"speed",2),rr([sr({type:String})],Xi.prototype,"src",2),rr([sr()],Xi.prototype,"intermission",2),rr([sr({type:String})],Xi.prototype,"activeAnimationId",2),rr([sr({type:Boolean})],Xi.prototype,"light",2),rr([sr({type:Boolean})],Xi.prototype,"worker",2),rr([sr({type:String})],Xi.prototype,"activeStateId",2),rr([ru()],Xi.prototype,"_seeker",2);customElements.get(ou)||customElements.define(ou,Xi);/*! Bundled license information: + + is-buffer/index.js: + (*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + *) + */ + /*! Bundled license information: + + xstate/es/_virtual/_tslib.js: + (*! ***************************************************************************** + Copyright (c) Microsoft Corporation. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + ***************************************************************************** *) + */ + /*! Bundled license information: + + howler/dist/howler.js: + (*! + * howler.js v2.2.3 + * howlerjs.com + * + * (c) 2013-2020, James Simpson of GoldFire Studios + * goldfirestudios.com + * + * MIT License + *) + (*! + * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported. + * + * howler.js v2.2.3 + * howlerjs.com + * + * (c) 2013-2020, James Simpson of GoldFire Studios + * goldfirestudios.com + * + * MIT License + *) + */ + /*! Bundled license information: + + lottie-web/build/player/lottie_worker.js: + (*! + Transformation Matrix v2.0 + (c) Epistemex 2014-2015 + www.epistemex.com + By Ken Fyrstenberg + Contributions by leeoniya. + License: MIT, header required. + *) + */ + /*! Bundled license information: + + lottie-web/build/player/lottie_light.js: + (*! + Transformation Matrix v2.0 + (c) Epistemex 2014-2015 + www.epistemex.com + By Ken Fyrstenberg + Contributions by leeoniya. + License: MIT, header required. + *) + */ + /*! Bundled license information: + + lottie-web/build/player/lottie_svg.js: + (*! + Transformation Matrix v2.0 + (c) Epistemex 2014-2015 + www.epistemex.com + By Ken Fyrstenberg + Contributions by leeoniya. + License: MIT, header required. + *) + */ + /*! Bundled license information: + + lottie-web/build/player/lottie_light_canvas.js: + (*! + Transformation Matrix v2.0 + (c) Epistemex 2014-2015 + www.epistemex.com + By Ken Fyrstenberg + Contributions by leeoniya. + License: MIT, header required. + *) + */ + /*! Bundled license information: + + lottie-web/build/player/lottie_canvas.js: + (*! + Transformation Matrix v2.0 + (c) Epistemex 2014-2015 + www.epistemex.com + By Ken Fyrstenberg + Contributions by leeoniya. + License: MIT, header required. + *) + */ + /*! Bundled license information: + + lottie-web/build/player/lottie_light_html.js: + (*! + Transformation Matrix v2.0 + (c) Epistemex 2014-2015 + www.epistemex.com + By Ken Fyrstenberg + Contributions by leeoniya. + License: MIT, header required. + *) + */ + /*! Bundled license information: + + lottie-web/build/player/lottie_html.js: + (*! + Transformation Matrix v2.0 + (c) Epistemex 2014-2015 + www.epistemex.com + By Ken Fyrstenberg + Contributions by leeoniya. + License: MIT, header required. + *) + */ + /*! Bundled license information: + + @lit/reactive-element/css-tag.js: + (** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + *) + + @lit/reactive-element/reactive-element.js: + (** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + *) + + lit-html/lit-html.js: + (** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + *) + + lit-element/lit-element.js: + (** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + *) + + lit-html/is-server.js: + (** + * @license + * Copyright 2022 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + *) + + @lit/reactive-element/decorators/custom-element.js: + (** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + *) + + @lit/reactive-element/decorators/property.js: + (** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + *) + + @lit/reactive-element/decorators/state.js: + (** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + *) + + @lit/reactive-element/decorators/base.js: + (** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + *) + + @lit/reactive-element/decorators/event-options.js: + (** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + *) + + @lit/reactive-element/decorators/query.js: + (** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + *) + + @lit/reactive-element/decorators/query-all.js: + (** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + *) + + @lit/reactive-element/decorators/query-async.js: + (** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + *) + + @lit/reactive-element/decorators/query-assigned-elements.js: + (** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + *) + + @lit/reactive-element/decorators/query-assigned-nodes.js: + (** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + *) + */ + + exports.DotLottiePlayer = Xi; + +})); +//# sourceMappingURL=out.js.map +//# sourceMappingURL=dotlottie-player.js.map \ No newline at end of file diff --git a/assets/external/unpkg.com/mermaid@9.4.3/dist/mermaid.min.js b/assets/external/unpkg.com/mermaid@9.4.3/dist/mermaid.min.js new file mode 100644 index 00000000..e6a68e30 --- /dev/null +++ b/assets/external/unpkg.com/mermaid@9.4.3/dist/mermaid.min.js @@ -0,0 +1,1580 @@ +(function(tA,g0){typeof exports=="object"&&typeof module<"u"?module.exports=g0():typeof define=="function"&&define.amd?define(g0):(tA=typeof globalThis<"u"?globalThis:tA||self,tA.mermaid=g0())})(this,function(){"use strict";function tA(s){for(var o=[],f=1;f=X?De:""+Array(X+1-pe.length).join(Re)+De},xe={s:be,z:function(De){var X=-De.utcOffset(),Re=Math.abs(X),pe=Math.floor(Re/60),Ge=Re%60;return(X<=0?"+":"-")+be(pe,2,"0")+":"+be(Ge,2,"0")},m:function De(X,Re){if(X.date()1)return De(ct[0])}else{var bt=X.name;Me[bt]=X,Ge=bt}return!pe&&Ge&&(Ee=Ge),Ge||!pe&&Ee},re=function(De,X){if(fe(De))return De.clone();var Re=typeof X=="object"?X:{};return Re.date=De,Re.args=arguments,new ke(Re)},we=xe;we.l=ye,we.i=fe,we.w=function(De,X){return re(De,{locale:X.$L,utc:X.$u,x:X.$x,$offset:X.$offset})};var ke=function(){function De(Re){this.$L=ye(Re.locale,null,!0),this.parse(Re)}var X=De.prototype;return X.parse=function(Re){this.$d=function(pe){var Ge=pe.date,de=pe.utc;if(Ge===null)return new Date(NaN);if(we.u(Ge))return new Date;if(Ge instanceof Date)return new Date(Ge);if(typeof Ge=="string"&&!/Z$/i.test(Ge)){var ct=Ge.match(ae);if(ct){var bt=ct[2]-1||0,St=(ct[7]||"0").substring(0,3);return de?new Date(Date.UTC(ct[1],bt,ct[3]||1,ct[4]||0,ct[5]||0,ct[6]||0,St)):new Date(ct[1],bt,ct[3]||1,ct[4]||0,ct[5]||0,ct[6]||0,St)}}return new Date(Ge)}(Re),this.$x=Re.x||{},this.init()},X.init=function(){var Re=this.$d;this.$y=Re.getFullYear(),this.$M=Re.getMonth(),this.$D=Re.getDate(),this.$W=Re.getDay(),this.$H=Re.getHours(),this.$m=Re.getMinutes(),this.$s=Re.getSeconds(),this.$ms=Re.getMilliseconds()},X.$utils=function(){return we},X.isValid=function(){return this.$d.toString()!==Z},X.isSame=function(Re,pe){var Ge=re(Re);return this.startOf(pe)<=Ge&&Ge<=this.endOf(pe)},X.isAfter=function(Re,pe){return re(Re){},debug:(...s)=>{},info:(...s)=>{},warn:(...s)=>{},error:(...s)=>{},fatal:(...s)=>{}},ffe=function(s="fatal"){let o=s5.fatal;typeof s=="string"?(s=s.toLowerCase(),s in s5&&(o=s5[s])):typeof s=="number"&&(o=s),je.trace=()=>{},je.debug=()=>{},je.info=()=>{},je.warn=()=>{},je.error=()=>{},je.fatal=()=>{},o<=s5.fatal&&(je.fatal=console.error?console.error.bind(console,$b("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",$b("FATAL"))),o<=s5.error&&(je.error=console.error?console.error.bind(console,$b("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",$b("ERROR"))),o<=s5.warn&&(je.warn=console.warn?console.warn.bind(console,$b("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",$b("WARN"))),o<=s5.info&&(je.info=console.info?console.info.bind(console,$b("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",$b("INFO"))),o<=s5.debug&&(je.debug=console.debug?console.debug.bind(console,$b("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$b("DEBUG"))),o<=s5.trace&&(je.trace=console.debug?console.debug.bind(console,$b("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$b("TRACE")))},$b=s=>`%c${Qg().format("ss.SSS")} : ${s} : `;var dfe={};Object.defineProperty(dfe,"__esModule",{value:!0});var a5=dfe.sanitizeUrl=void 0,r4t=/^([^\w]*)(javascript|data|vbscript)/im,i4t=/&#(\w+)(^\w|;)?/g,s4t=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,a4t=/^([^:]+):/gm,o4t=[".","/"];function c4t(s){return o4t.indexOf(s[0])>-1}function u4t(s){return s.replace(i4t,function(o,f){return String.fromCharCode(f)})}function l4t(s){var o=u4t(s||"").replace(s4t,"").trim();if(!o)return"about:blank";if(c4t(o))return o;var f=o.match(a4t);if(!f)return o;var p=f[0];return r4t.test(p)?"about:blank":o}a5=dfe.sanitizeUrl=l4t;function HV(s,o){return s==null||o==null?NaN:so?1:s>=o?0:NaN}function h4t(s,o){return s==null||o==null?NaN:os?1:o>=s?0:NaN}function gfe(s){let o,f,p;s.length!==2?(o=HV,f=(_,A)=>HV(s(_),A),p=(_,A)=>s(_)-A):(o=s===HV||s===h4t?s:f4t,f=s,p=s);function w(_,A,N=0,B=_.length){if(N>>1;f(_[F],A)<0?N=F+1:B=F}while(N>>1;f(_[F],A)<=0?N=F+1:B=F}while(NN&&p(_[F-1],A)>-p(_[F],A)?F-1:F}return{left:w,center:b,right:k}}function f4t(){return 0}function d4t(s){return s===null?NaN:+s}const g4t=gfe(HV).right;gfe(d4t).center;const p4t=g4t;class qAe extends Map{constructor(o,f=w4t){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:f}}),o!=null)for(const[p,w]of o)this.set(p,w)}get(o){return super.get(VAe(this,o))}has(o){return super.has(VAe(this,o))}set(o,f){return super.set(b4t(this,o),f)}delete(o){return super.delete(v4t(this,o))}}function VAe({_intern:s,_key:o},f){const p=o(f);return s.has(p)?s.get(p):f}function b4t({_intern:s,_key:o},f){const p=o(f);return s.has(p)?s.get(p):(s.set(p,f),f)}function v4t({_intern:s,_key:o},f){const p=o(f);return s.has(p)&&(f=s.get(p),s.delete(p)),f}function w4t(s){return s!==null&&typeof s=="object"?s.valueOf():s}var pfe=Math.sqrt(50),bfe=Math.sqrt(10),vfe=Math.sqrt(2);function m4t(s,o,f){var p,w=-1,k,b,_;if(o=+o,s=+s,f=+f,s===o&&f>0)return[s];if((p=o0){let A=Math.round(s/_),N=Math.round(o/_);for(A*_o&&--N,b=new Array(k=N-A+1);++wo&&--N,b=new Array(k=N-A+1);++w=0?(k>=pfe?10:k>=bfe?5:k>=vfe?2:1)*Math.pow(10,w):-Math.pow(10,-w)/(k>=pfe?10:k>=bfe?5:k>=vfe?2:1)}function wfe(s,o,f){var p=Math.abs(o-s)/Math.max(0,f),w=Math.pow(10,Math.floor(Math.log(p)/Math.LN10)),k=p/w;return k>=pfe?w*=10:k>=bfe?w*=5:k>=vfe&&(w*=2),o=p)&&(f=p);else{let p=-1;for(let w of s)(w=o(w,++p,s))!=null&&(f=w)&&(f=w)}return f}function k4t(s,o){let f;if(o===void 0)for(const p of s)p!=null&&(f>p||f===void 0&&p>=p)&&(f=p);else{let p=-1;for(let w of s)(w=o(w,++p,s))!=null&&(f>w||f===void 0&&w>=w)&&(f=w)}return f}function x4t(s){return s}var zV=1,mfe=2,yfe=3,GV=4,KAe=1e-6;function E4t(s){return"translate("+s+",0)"}function T4t(s){return"translate(0,"+s+")"}function _4t(s){return o=>+s(o)}function C4t(s,o){return o=Math.max(0,s.bandwidth()-o*2)/2,s.round()&&(o=Math.round(o)),f=>+s(f)+o}function S4t(){return!this.__axis}function WAe(s,o){var f=[],p=null,w=null,k=6,b=6,_=3,A=typeof window<"u"&&window.devicePixelRatio>1?0:.5,N=s===zV||s===GV?-1:1,B=s===GV||s===mfe?"x":"y",F=s===zV||s===yfe?E4t:T4t;function H(j){var V=p??(o.ticks?o.ticks.apply(o,f):o.domain()),Z=w??(o.tickFormat?o.tickFormat.apply(o,f):x4t),ae=Math.max(k,0)+_,le=o.range(),ce=+le[0]+A,be=+le[le.length-1]+A,xe=(o.bandwidth?C4t:_4t)(o.copy(),A),Ee=j.selection?j.selection():j,Me=Ee.selectAll(".domain").data([null]),fe=Ee.selectAll(".tick").data(V,o).order(),ye=fe.exit(),re=fe.enter().append("g").attr("class","tick"),we=fe.select("line"),ke=fe.select("text");Me=Me.merge(Me.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),fe=fe.merge(re),we=we.merge(re.append("line").attr("stroke","currentColor").attr(B+"2",N*k)),ke=ke.merge(re.append("text").attr("fill","currentColor").attr(B,N*ae).attr("dy",s===zV?"0em":s===yfe?"0.71em":"0.32em")),j!==Ee&&(Me=Me.transition(j),fe=fe.transition(j),we=we.transition(j),ke=ke.transition(j),ye=ye.transition(j).attr("opacity",KAe).attr("transform",function(he){return isFinite(he=xe(he))?F(he+A):this.getAttribute("transform")}),re.attr("opacity",KAe).attr("transform",function(he){var De=this.parentNode.__axis;return F((De&&isFinite(De=De(he))?De:xe(he))+A)})),ye.remove(),Me.attr("d",s===GV||s===mfe?b?"M"+N*b+","+ce+"H"+A+"V"+be+"H"+N*b:"M"+A+","+ce+"V"+be:b?"M"+ce+","+N*b+"V"+A+"H"+be+"V"+N*b:"M"+ce+","+A+"H"+be),fe.attr("opacity",1).attr("transform",function(he){return F(xe(he)+A)}),we.attr(B+"2",N*k),ke.attr(B,N*ae).text(Z),Ee.filter(S4t).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",s===mfe?"start":s===GV?"end":"middle"),Ee.each(function(){this.__axis=xe})}return H.scale=function(j){return arguments.length?(o=j,H):o},H.ticks=function(){return f=Array.from(arguments),H},H.tickArguments=function(j){return arguments.length?(f=j==null?[]:Array.from(j),H):f.slice()},H.tickValues=function(j){return arguments.length?(p=j==null?null:Array.from(j),H):p&&p.slice()},H.tickFormat=function(j){return arguments.length?(w=j,H):w},H.tickSize=function(j){return arguments.length?(k=b=+j,H):k},H.tickSizeInner=function(j){return arguments.length?(k=+j,H):k},H.tickSizeOuter=function(j){return arguments.length?(b=+j,H):b},H.tickPadding=function(j){return arguments.length?(_=+j,H):_},H.offset=function(j){return arguments.length?(A=+j,H):A},H}function A4t(s){return WAe(zV,s)}function L4t(s){return WAe(yfe,s)}var M4t={value:()=>{}};function YAe(){for(var s=0,o=arguments.length,f={},p;s=0&&(p=f.slice(w+1),f=f.slice(0,w)),f&&!o.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:p}})}qV.prototype=YAe.prototype={constructor:qV,on:function(s,o){var f=this._,p=D4t(s+"",f),w,k=-1,b=p.length;if(arguments.length<2){for(;++k0)for(var f=new Array(w),p=0,w,k;p=0&&(o=s.slice(0,f))!=="xmlns"&&(s=s.slice(f+1)),QAe.hasOwnProperty(o)?{space:QAe[o],local:s}:s}function O4t(s){return function(){var o=this.ownerDocument,f=this.namespaceURI;return f===kfe&&o.documentElement.namespaceURI===kfe?o.createElement(s):o.createElementNS(f,s)}}function N4t(s){return function(){return this.ownerDocument.createElementNS(s.space,s.local)}}function ZAe(s){var o=VV(s);return(o.local?N4t:O4t)(o)}function P4t(){}function xfe(s){return s==null?P4t:function(){return this.querySelector(s)}}function B4t(s){typeof s!="function"&&(s=xfe(s));for(var o=this._groups,f=o.length,p=new Array(f),w=0;w=be&&(be=ce+1);!(Ee=ae[be])&&++be=0;)(b=p[w])&&(k&&b.compareDocumentPosition(k)^4&&k.parentNode.insertBefore(b,k),k=b);return this}function a5t(s){s||(s=o5t);function o(F,H){return F&&H?s(F.__data__,H.__data__):!F-!H}for(var f=this._groups,p=f.length,w=new Array(p),k=0;ko?1:s>=o?0:NaN}function c5t(){var s=arguments[0];return arguments[0]=this,s.apply(null,arguments),this}function u5t(){return Array.from(this)}function l5t(){for(var s=this._groups,o=0,f=s.length;o1?this.each((o==null?k5t:typeof o=="function"?E5t:x5t)(s,o,f??"")):nA(this.node(),s)}function nA(s,o){return s.style.getPropertyValue(o)||iLe(s).getComputedStyle(s,null).getPropertyValue(o)}function _5t(s){return function(){delete this[s]}}function C5t(s,o){return function(){this[s]=o}}function S5t(s,o){return function(){var f=o.apply(this,arguments);f==null?delete this[s]:this[s]=f}}function A5t(s,o){return arguments.length>1?this.each((o==null?_5t:typeof o=="function"?S5t:C5t)(s,o)):this.node()[s]}function sLe(s){return s.trim().split(/^|\s+/)}function Efe(s){return s.classList||new aLe(s)}function aLe(s){this._node=s,this._names=sLe(s.getAttribute("class")||"")}aLe.prototype={add:function(s){var o=this._names.indexOf(s);o<0&&(this._names.push(s),this._node.setAttribute("class",this._names.join(" ")))},remove:function(s){var o=this._names.indexOf(s);o>=0&&(this._names.splice(o,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(s){return this._names.indexOf(s)>=0}};function oLe(s,o){for(var f=Efe(s),p=-1,w=o.length;++p=0&&(f=o.slice(p+1),o=o.slice(0,p)),{type:o,name:f}})}function n6t(s){return function(){var o=this.__on;if(o){for(var f=0,p=-1,w=o.length,k;f>8&15|o>>4&240,o>>4&15|o&240,(o&15)<<4|o&15,1):f===8?YV(o>>24&255,o>>16&255,o>>8&255,(o&255)/255):f===4?YV(o>>12&15|o>>8&240,o>>8&15|o>>4&240,o>>4&15|o&240,((o&15)<<4|o&15)/255):null):(o=h6t.exec(s))?new p0(o[1],o[2],o[3],1):(o=f6t.exec(s))?new p0(o[1]*255/100,o[2]*255/100,o[3]*255/100,1):(o=d6t.exec(s))?YV(o[1],o[2],o[3],o[4]):(o=g6t.exec(s))?YV(o[1]*255/100,o[2]*255/100,o[3]*255/100,o[4]):(o=p6t.exec(s))?vLe(o[1],o[2]/100,o[3]/100,1):(o=b6t.exec(s))?vLe(o[1],o[2]/100,o[3]/100,o[4]):lLe.hasOwnProperty(s)?dLe(lLe[s]):s==="transparent"?new p0(NaN,NaN,NaN,0):null}function dLe(s){return new p0(s>>16&255,s>>8&255,s&255,1)}function YV(s,o,f,p){return p<=0&&(s=o=f=NaN),new p0(s,o,f,p)}function gLe(s){return s instanceof SE||(s=AE(s)),s?(s=s.rgb(),new p0(s.r,s.g,s.b,s.opacity)):new p0}function Cfe(s,o,f,p){return arguments.length===1?gLe(s):new p0(s,o,f,p??1)}function p0(s,o,f,p){this.r=+s,this.g=+o,this.b=+f,this.opacity=+p}tN(p0,Cfe,KV(SE,{brighter(s){return s=s==null?WV:Math.pow(WV,s),new p0(this.r*s,this.g*s,this.b*s,this.opacity)},darker(s){return s=s==null?nN:Math.pow(nN,s),new p0(this.r*s,this.g*s,this.b*s,this.opacity)},rgb(){return this},clamp(){return new p0(LE(this.r),LE(this.g),LE(this.b),XV(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:pLe,formatHex:pLe,formatHex8:m6t,formatRgb:bLe,toString:bLe}));function pLe(){return`#${ME(this.r)}${ME(this.g)}${ME(this.b)}`}function m6t(){return`#${ME(this.r)}${ME(this.g)}${ME(this.b)}${ME((isNaN(this.opacity)?1:this.opacity)*255)}`}function bLe(){const s=XV(this.opacity);return`${s===1?"rgb(":"rgba("}${LE(this.r)}, ${LE(this.g)}, ${LE(this.b)}${s===1?")":`, ${s})`}`}function XV(s){return isNaN(s)?1:Math.max(0,Math.min(1,s))}function LE(s){return Math.max(0,Math.min(255,Math.round(s)||0))}function ME(s){return s=LE(s),(s<16?"0":"")+s.toString(16)}function vLe(s,o,f,p){return p<=0?s=o=f=NaN:f<=0||f>=1?s=o=NaN:o<=0&&(s=NaN),new Fw(s,o,f,p)}function wLe(s){if(s instanceof Fw)return new Fw(s.h,s.s,s.l,s.opacity);if(s instanceof SE||(s=AE(s)),!s)return new Fw;if(s instanceof Fw)return s;s=s.rgb();var o=s.r/255,f=s.g/255,p=s.b/255,w=Math.min(o,f,p),k=Math.max(o,f,p),b=NaN,_=k-w,A=(k+w)/2;return _?(o===k?b=(f-p)/_+(f0&&A<1?0:b,new Fw(b,_,A,s.opacity)}function y6t(s,o,f,p){return arguments.length===1?wLe(s):new Fw(s,o,f,p??1)}function Fw(s,o,f,p){this.h=+s,this.s=+o,this.l=+f,this.opacity=+p}tN(Fw,y6t,KV(SE,{brighter(s){return s=s==null?WV:Math.pow(WV,s),new Fw(this.h,this.s,this.l*s,this.opacity)},darker(s){return s=s==null?nN:Math.pow(nN,s),new Fw(this.h,this.s,this.l*s,this.opacity)},rgb(){var s=this.h%360+(this.h<0)*360,o=isNaN(s)||isNaN(this.s)?0:this.s,f=this.l,p=f+(f<.5?f:1-f)*o,w=2*f-p;return new p0(Sfe(s>=240?s-240:s+120,w,p),Sfe(s,w,p),Sfe(s<120?s+240:s-120,w,p),this.opacity)},clamp(){return new Fw(mLe(this.h),QV(this.s),QV(this.l),XV(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const s=XV(this.opacity);return`${s===1?"hsl(":"hsla("}${mLe(this.h)}, ${QV(this.s)*100}%, ${QV(this.l)*100}%${s===1?")":`, ${s})`}`}}));function mLe(s){return s=(s||0)%360,s<0?s+360:s}function QV(s){return Math.max(0,Math.min(1,s||0))}function Sfe(s,o,f){return(s<60?o+(f-o)*s/60:s<180?f:s<240?o+(f-o)*(240-s)/60:o)*255}const k6t=Math.PI/180,x6t=180/Math.PI,ZV=18,yLe=.96422,kLe=1,xLe=.82521,ELe=4/29,iA=6/29,TLe=3*iA*iA,E6t=iA*iA*iA;function _Le(s){if(s instanceof Qy)return new Qy(s.l,s.a,s.b,s.opacity);if(s instanceof o5)return CLe(s);s instanceof p0||(s=gLe(s));var o=Dfe(s.r),f=Dfe(s.g),p=Dfe(s.b),w=Afe((.2225045*o+.7168786*f+.0606169*p)/kLe),k,b;return o===f&&f===p?k=b=w:(k=Afe((.4360747*o+.3850649*f+.1430804*p)/yLe),b=Afe((.0139322*o+.0971045*f+.7141733*p)/xLe)),new Qy(116*w-16,500*(k-w),200*(w-b),s.opacity)}function T6t(s,o,f,p){return arguments.length===1?_Le(s):new Qy(s,o,f,p??1)}function Qy(s,o,f,p){this.l=+s,this.a=+o,this.b=+f,this.opacity=+p}tN(Qy,T6t,KV(SE,{brighter(s){return new Qy(this.l+ZV*(s??1),this.a,this.b,this.opacity)},darker(s){return new Qy(this.l-ZV*(s??1),this.a,this.b,this.opacity)},rgb(){var s=(this.l+16)/116,o=isNaN(this.a)?s:s+this.a/500,f=isNaN(this.b)?s:s-this.b/200;return o=yLe*Lfe(o),s=kLe*Lfe(s),f=xLe*Lfe(f),new p0(Mfe(3.1338561*o-1.6168667*s-.4906146*f),Mfe(-.9787684*o+1.9161415*s+.033454*f),Mfe(.0719453*o-.2289914*s+1.4052427*f),this.opacity)}}));function Afe(s){return s>E6t?Math.pow(s,1/3):s/TLe+ELe}function Lfe(s){return s>iA?s*s*s:TLe*(s-ELe)}function Mfe(s){return 255*(s<=.0031308?12.92*s:1.055*Math.pow(s,1/2.4)-.055)}function Dfe(s){return(s/=255)<=.04045?s/12.92:Math.pow((s+.055)/1.055,2.4)}function _6t(s){if(s instanceof o5)return new o5(s.h,s.c,s.l,s.opacity);if(s instanceof Qy||(s=_Le(s)),s.a===0&&s.b===0)return new o5(NaN,0()=>s;function SLe(s,o){return function(f){return s+f*o}}function C6t(s,o,f){return s=Math.pow(s,f),o=Math.pow(o,f)-s,f=1/f,function(p){return Math.pow(s+p*o,f)}}function S6t(s,o){var f=o-s;return f?SLe(s,f>180||f<-180?f-360*Math.round(f/360):f):JV(isNaN(s)?o:s)}function A6t(s){return(s=+s)==1?iN:function(o,f){return f-o?C6t(o,f,s):JV(isNaN(o)?f:o)}}function iN(s,o){var f=o-s;return f?SLe(s,f):JV(isNaN(s)?o:s)}const eU=function s(o){var f=A6t(o);function p(w,k){var b=f((w=Cfe(w)).r,(k=Cfe(k)).r),_=f(w.g,k.g),A=f(w.b,k.b),N=iN(w.opacity,k.opacity);return function(B){return w.r=b(B),w.g=_(B),w.b=A(B),w.opacity=N(B),w+""}}return p.gamma=s,p}(1);function L6t(s,o){o||(o=[]);var f=s?Math.min(o.length,s.length):0,p=o.slice(),w;return function(k){for(w=0;wf&&(k=o.slice(f,k),_[b]?_[b]+=k:_[++b]=k),(p=p[0])===(w=w[0])?_[b]?_[b]+=w:_[++b]=w:(_[++b]=null,A.push({i:b,x:Rw(p,w)})),f=Nfe.lastIndex;return f180?B+=360:B-N>180&&(N+=360),H.push({i:F.push(w(F)+"rotate(",null,p)-2,x:Rw(N,B)})):B&&F.push(w(F)+"rotate("+B+p)}function _(N,B,F,H){N!==B?H.push({i:F.push(w(F)+"skewX(",null,p)-2,x:Rw(N,B)}):B&&F.push(w(F)+"skewX("+B+p)}function A(N,B,F,H,j,V){if(N!==F||B!==H){var Z=j.push(w(j)+"scale(",null,",",null,")");V.push({i:Z-4,x:Rw(N,F)},{i:Z-2,x:Rw(B,H)})}else(F!==1||H!==1)&&j.push(w(j)+"scale("+F+","+H+")")}return function(N,B){var F=[],H=[];return N=s(N),B=s(B),k(N.translateX,N.translateY,B.translateX,B.translateY,F,H),b(N.rotate,B.rotate,F,H),_(N.skewX,B.skewX,F,H),A(N.scaleX,N.scaleY,B.scaleX,B.scaleY,F,H),N=B=null,function(j){for(var V=-1,Z=H.length,ae;++V=0&&s._call.call(void 0,o),s=s._next;--sA}function PLe(){DE=(rU=cN.now())+iU,sA=sN=0;try{q6t()}finally{sA=0,U6t(),DE=0}}function V6t(){var s=cN.now(),o=s-rU;o>ILe&&(iU-=o,rU=s)}function U6t(){for(var s,o=nU,f,p=1/0;o;)o._call?(p>o._time&&(p=o._time),s=o,o=o._next):(f=o._next,o._next=null,o=s?s._next=f:nU=f);oN=s,Rfe(p)}function Rfe(s){if(!sA){sN&&(sN=clearTimeout(sN));var o=s-DE;o>24?(s<1/0&&(sN=setTimeout(PLe,s-cN.now()-iU)),aN&&(aN=clearInterval(aN))):(aN||(rU=cN.now(),aN=setInterval(V6t,ILe)),sA=1,OLe(PLe))}}function BLe(s,o,f){var p=new sU;return o=o==null?0:+o,p.restart(w=>{p.stop(),s(w+o)},o,f),p}var K6t=YAe("start","end","cancel","interrupt"),W6t=[],FLe=0,RLe=1,jfe=2,aU=3,jLe=4,$fe=5,oU=6;function cU(s,o,f,p,w,k){var b=s.__transition;if(!b)s.__transition={};else if(f in b)return;Y6t(s,f,{name:o,index:p,group:w,on:K6t,tween:W6t,time:k.time,delay:k.delay,duration:k.duration,ease:k.ease,timer:null,state:FLe})}function Hfe(s,o){var f=jw(s,o);if(f.state>FLe)throw new Error("too late; already scheduled");return f}function Zy(s,o){var f=jw(s,o);if(f.state>aU)throw new Error("too late; already running");return f}function jw(s,o){var f=s.__transition;if(!f||!(f=f[o]))throw new Error("transition not found");return f}function Y6t(s,o,f){var p=s.__transition,w;p[o]=f,f.timer=NLe(k,0,f.time);function k(N){f.state=RLe,f.timer.restart(b,f.delay,f.time),f.delay<=N&&b(N-f.delay)}function b(N){var B,F,H,j;if(f.state!==RLe)return A();for(B in p)if(j=p[B],j.name===f.name){if(j.state===aU)return BLe(b);j.state===jLe?(j.state=oU,j.timer.stop(),j.on.call("interrupt",s,s.__data__,j.index,j.group),delete p[B]):+Bjfe&&p.state<$fe,p.state=oU,p.timer.stop(),p.on.call(w?"interrupt":"cancel",s,s.__data__,p.index,p.group),delete f[b]}k&&delete s.__transition}}function Q6t(s){return this.each(function(){X6t(this,s)})}function Z6t(s,o){var f,p;return function(){var w=Zy(this,s),k=w.tween;if(k!==f){p=f=k;for(var b=0,_=p.length;b<_;++b)if(p[b].name===o){p=p.slice(),p.splice(b,1);break}}w.tween=p}}function J6t(s,o,f){var p,w;if(typeof f!="function")throw new Error;return function(){var k=Zy(this,s),b=k.tween;if(b!==p){w=(p=b).slice();for(var _={name:o,value:f},A=0,N=w.length;A=0&&(o=o.slice(0,f)),!o||o==="start"})}function Ckt(s,o,f){var p,w,k=_kt(o)?Hfe:Zy;return function(){var b=k(this,s),_=b.on;_!==p&&(w=(p=_).copy()).on(o,f),b.on=w}}function Skt(s,o){var f=this._id;return arguments.length<2?jw(this.node(),f).on.on(s):this.each(Ckt(f,s,o))}function Akt(s){return function(){var o=this.parentNode;for(var f in this.__transition)if(+f!==s)return;o&&o.removeChild(this)}}function Lkt(){return this.on("end.remove",Akt(this._id))}function Mkt(s){var o=this._name,f=this._id;typeof s!="function"&&(s=xfe(s));for(var p=this._groups,w=p.length,k=new Array(w),b=0;bIE)if(!(Math.abs(B*_-A*N)>IE)||!w)this._+="L"+(this._x1=s)+","+(this._y1=o);else{var H=f-k,j=p-b,V=_*_+A*A,Z=H*H+j*j,ae=Math.sqrt(V),le=Math.sqrt(F),ce=w*Math.tan((Gfe-Math.acos((V+F-Z)/(2*ae*le)))/2),be=ce/le,xe=ce/ae;Math.abs(be-1)>IE&&(this._+="L"+(s+be*N)+","+(o+be*B)),this._+="A"+w+","+w+",0,0,"+ +(B*H>N*j)+","+(this._x1=s+xe*_)+","+(this._y1=o+xe*A)}},arc:function(s,o,f,p,w,k){s=+s,o=+o,f=+f,k=!!k;var b=f*Math.cos(p),_=f*Math.sin(p),A=s+b,N=o+_,B=1^k,F=k?p-w:w-p;if(f<0)throw new Error("negative radius: "+f);this._x1===null?this._+="M"+A+","+N:(Math.abs(this._x1-A)>IE||Math.abs(this._y1-N)>IE)&&(this._+="L"+A+","+N),f&&(F<0&&(F=F%qfe+qfe),F>t8t?this._+="A"+f+","+f+",0,1,"+B+","+(s-b)+","+(o-_)+"A"+f+","+f+",0,1,"+B+","+(this._x1=A)+","+(this._y1=N):F>IE&&(this._+="A"+f+","+f+",0,"+ +(F>=Gfe)+","+B+","+(this._x1=s+f*Math.cos(w))+","+(this._y1=o+f*Math.sin(w))))},rect:function(s,o,f,p){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+o)+"h"+ +f+"v"+ +p+"h"+-f+"Z"},toString:function(){return this._}};function n8t(s){if(!s.ok)throw new Error(s.status+" "+s.statusText);return s.text()}function r8t(s,o){return fetch(s,o).then(n8t)}function i8t(s){return(o,f)=>r8t(o,f).then(p=>new DOMParser().parseFromString(p,s))}var s8t=i8t("image/svg+xml");function a8t(s){return Math.abs(s=Math.round(s))>=1e21?s.toLocaleString("en").replace(/,/g,""):s.toString(10)}function uU(s,o){if((f=(s=o?s.toExponential(o-1):s.toExponential()).indexOf("e"))<0)return null;var f,p=s.slice(0,f);return[p.length>1?p[0]+p.slice(2):p,+s.slice(f+1)]}function aA(s){return s=uU(Math.abs(s)),s?s[1]:NaN}function o8t(s,o){return function(f,p){for(var w=f.length,k=[],b=0,_=s[0],A=0;w>0&&_>0&&(A+_+1>p&&(_=Math.max(1,p-A)),k.push(f.substring(w-=_,w+_)),!((A+=_+1)>p));)_=s[b=(b+1)%s.length];return k.reverse().join(o)}}function c8t(s){return function(o){return o.replace(/[0-9]/g,function(f){return s[+f]})}}var u8t=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function lU(s){if(!(o=u8t.exec(s)))throw new Error("invalid format: "+s);var o;return new Kfe({fill:o[1],align:o[2],sign:o[3],symbol:o[4],zero:o[5],width:o[6],comma:o[7],precision:o[8]&&o[8].slice(1),trim:o[9],type:o[10]})}lU.prototype=Kfe.prototype;function Kfe(s){this.fill=s.fill===void 0?" ":s.fill+"",this.align=s.align===void 0?">":s.align+"",this.sign=s.sign===void 0?"-":s.sign+"",this.symbol=s.symbol===void 0?"":s.symbol+"",this.zero=!!s.zero,this.width=s.width===void 0?void 0:+s.width,this.comma=!!s.comma,this.precision=s.precision===void 0?void 0:+s.precision,this.trim=!!s.trim,this.type=s.type===void 0?"":s.type+""}Kfe.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function l8t(s){e:for(var o=s.length,f=1,p=-1,w;f0&&(p=0);break}return p>0?s.slice(0,p)+s.slice(w+1):s}var GLe;function h8t(s,o){var f=uU(s,o);if(!f)return s+"";var p=f[0],w=f[1],k=w-(GLe=Math.max(-8,Math.min(8,Math.floor(w/3)))*3)+1,b=p.length;return k===b?p:k>b?p+new Array(k-b+1).join("0"):k>0?p.slice(0,k)+"."+p.slice(k):"0."+new Array(1-k).join("0")+uU(s,Math.max(0,o+k-1))[0]}function qLe(s,o){var f=uU(s,o);if(!f)return s+"";var p=f[0],w=f[1];return w<0?"0."+new Array(-w).join("0")+p:p.length>w+1?p.slice(0,w+1)+"."+p.slice(w+1):p+new Array(w-p.length+2).join("0")}const VLe={"%":(s,o)=>(s*100).toFixed(o),b:s=>Math.round(s).toString(2),c:s=>s+"",d:a8t,e:(s,o)=>s.toExponential(o),f:(s,o)=>s.toFixed(o),g:(s,o)=>s.toPrecision(o),o:s=>Math.round(s).toString(8),p:(s,o)=>qLe(s*100,o),r:qLe,s:h8t,X:s=>Math.round(s).toString(16).toUpperCase(),x:s=>Math.round(s).toString(16)};function ULe(s){return s}var KLe=Array.prototype.map,WLe=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function f8t(s){var o=s.grouping===void 0||s.thousands===void 0?ULe:o8t(KLe.call(s.grouping,Number),s.thousands+""),f=s.currency===void 0?"":s.currency[0]+"",p=s.currency===void 0?"":s.currency[1]+"",w=s.decimal===void 0?".":s.decimal+"",k=s.numerals===void 0?ULe:c8t(KLe.call(s.numerals,String)),b=s.percent===void 0?"%":s.percent+"",_=s.minus===void 0?"−":s.minus+"",A=s.nan===void 0?"NaN":s.nan+"";function N(F){F=lU(F);var H=F.fill,j=F.align,V=F.sign,Z=F.symbol,ae=F.zero,le=F.width,ce=F.comma,be=F.precision,xe=F.trim,Ee=F.type;Ee==="n"?(ce=!0,Ee="g"):VLe[Ee]||(be===void 0&&(be=12),xe=!0,Ee="g"),(ae||H==="0"&&j==="=")&&(ae=!0,H="0",j="=");var Me=Z==="$"?f:Z==="#"&&/[boxX]/.test(Ee)?"0"+Ee.toLowerCase():"",fe=Z==="$"?p:/[%p]/.test(Ee)?b:"",ye=VLe[Ee],re=/[defgprs%]/.test(Ee);be=be===void 0?6:/[gprs]/.test(Ee)?Math.max(1,Math.min(21,be)):Math.max(0,Math.min(20,be));function we(ke){var he=Me,De=fe,X,Re,pe;if(Ee==="c")De=ye(ke)+De,ke="";else{ke=+ke;var Ge=ke<0||1/ke<0;if(ke=isNaN(ke)?A:ye(Math.abs(ke),be),xe&&(ke=l8t(ke)),Ge&&+ke==0&&V!=="+"&&(Ge=!1),he=(Ge?V==="("?V:_:V==="-"||V==="("?"":V)+he,De=(Ee==="s"?WLe[8+GLe/3]:"")+De+(Ge&&V==="("?")":""),re){for(X=-1,Re=ke.length;++Xpe||pe>57){De=(pe===46?w+ke.slice(X+1):ke.slice(X))+De,ke=ke.slice(0,X);break}}}ce&&!ae&&(ke=o(ke,1/0));var de=he.length+ke.length+De.length,ct=de>1)+he+ke+De+ct.slice(de);break;default:ke=ct+he+ke+De;break}return k(ke)}return we.toString=function(){return F+""},we}function B(F,H){var j=N((F=lU(F),F.type="f",F)),V=Math.max(-8,Math.min(8,Math.floor(aA(H)/3)))*3,Z=Math.pow(10,-V),ae=WLe[8+V/3];return function(le){return j(Z*le)+ae}}return{format:N,formatPrefix:B}}var hU,YLe,XLe;d8t({thousands:",",grouping:[3],currency:["$",""]});function d8t(s){return hU=f8t(s),YLe=hU.format,XLe=hU.formatPrefix,hU}function g8t(s){return Math.max(0,-aA(Math.abs(s)))}function p8t(s,o){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(aA(o)/3)))*3-aA(Math.abs(s)))}function b8t(s,o){return s=Math.abs(s),o=Math.abs(o)-s,Math.max(0,aA(o)-aA(s))+1}function Wfe(s,o){switch(arguments.length){case 0:break;case 1:this.range(s);break;default:this.range(o).domain(s);break}return this}const QLe=Symbol("implicit");function ZLe(){var s=new qAe,o=[],f=[],p=QLe;function w(k){let b=s.get(k);if(b===void 0){if(p!==QLe)return p;s.set(k,b=o.push(k)-1)}return f[b%f.length]}return w.domain=function(k){if(!arguments.length)return o.slice();o=[],s=new qAe;for(const b of k)s.has(b)||s.set(b,o.push(b)-1);return w},w.range=function(k){return arguments.length?(f=Array.from(k),w):f.slice()},w.unknown=function(k){return arguments.length?(p=k,w):p},w.copy=function(){return ZLe(o,f).unknown(p)},Wfe.apply(w,arguments),w}function v8t(s){return function(){return s}}function w8t(s){return+s}var JLe=[0,1];function oA(s){return s}function Yfe(s,o){return(o-=s=+s)?function(f){return(f-s)/o}:v8t(isNaN(o)?NaN:.5)}function m8t(s,o){var f;return s>o&&(f=s,s=o,o=f),function(p){return Math.max(s,Math.min(o,p))}}function y8t(s,o,f){var p=s[0],w=s[1],k=o[0],b=o[1];return w2?k8t:y8t,A=N=null,F}function F(H){return H==null||isNaN(H=+H)?k:(A||(A=_(s.map(p),o,f)))(p(b(H)))}return F.invert=function(H){return b(w((N||(N=_(o,s.map(p),Rw)))(H)))},F.domain=function(H){return arguments.length?(s=Array.from(H,w8t),B()):s.slice()},F.range=function(H){return arguments.length?(o=Array.from(H),B()):o.slice()},F.rangeRound=function(H){return o=Array.from(H),f=B6t,B()},F.clamp=function(H){return arguments.length?(b=H?!0:oA,B()):b!==oA},F.interpolate=function(H){return arguments.length?(f=H,B()):f},F.unknown=function(H){return arguments.length?(k=H,F):k},function(H,j){return p=H,w=j,B()}}function tMe(){return x8t()(oA,oA)}function E8t(s,o,f,p){var w=wfe(s,o,f),k;switch(p=lU(p??",f"),p.type){case"s":{var b=Math.max(Math.abs(s),Math.abs(o));return p.precision==null&&!isNaN(k=p8t(w,b))&&(p.precision=k),XLe(p,b)}case"":case"e":case"g":case"p":case"r":{p.precision==null&&!isNaN(k=b8t(w,Math.max(Math.abs(s),Math.abs(o))))&&(p.precision=k-(p.type==="e"));break}case"f":case"%":{p.precision==null&&!isNaN(k=g8t(w))&&(p.precision=k-(p.type==="%")*2);break}}return YLe(p)}function T8t(s){var o=s.domain;return s.ticks=function(f){var p=o();return m4t(p[0],p[p.length-1],f??10)},s.tickFormat=function(f,p){var w=o();return E8t(w[0],w[w.length-1],f??10,p)},s.nice=function(f){f==null&&(f=10);var p=o(),w=0,k=p.length-1,b=p[w],_=p[k],A,N,B=10;for(_0;){if(N=UAe(b,_,f),N===A)return p[w]=b,p[k]=_,o(p);if(N>0)b=Math.floor(b/N)*N,_=Math.ceil(_/N)*N;else if(N<0)b=Math.ceil(b*N)/N,_=Math.floor(_*N)/N;else break;A=N}return s},s}function nMe(){var s=tMe();return s.copy=function(){return eMe(s,nMe())},Wfe.apply(s,arguments),T8t(s)}function _8t(s,o){s=s.slice();var f=0,p=s.length-1,w=s[f],k=s[p],b;return k0))return A;do A.push(N=new Date(+k)),o(k,_),s(k);while(N=b)for(;s(b),!k(b);)b.setTime(b-1)},function(b,_){if(b>=b)if(_<0)for(;++_<=0;)for(;o(b,-1),!k(b););else for(;--_>=0;)for(;o(b,1),!k(b););})},f&&(w.count=function(k,b){return Xfe.setTime(+k),Qfe.setTime(+b),s(Xfe),s(Qfe),Math.floor(f(Xfe,Qfe))},w.every=function(k){return k=Math.floor(k),!isFinite(k)||!(k>0)?null:k>1?w.filter(p?function(b){return p(b)%k===0}:function(b){return w.count(0,b)%k===0}):w}),w}var fU=ed(function(){},function(s,o){s.setTime(+s+o)},function(s,o){return o-s});fU.every=function(s){return s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?ed(function(o){o.setTime(Math.floor(o/s)*s)},function(o,f){o.setTime(+o+f*s)},function(o,f){return(f-o)/s}):fU};const C8t=fU;fU.range;const l5=1e3,Hb=l5*60,h5=Hb*60,OE=h5*24,Zfe=OE*7,rMe=OE*30,Jfe=OE*365;var iMe=ed(function(s){s.setTime(s-s.getMilliseconds())},function(s,o){s.setTime(+s+o*l5)},function(s,o){return(o-s)/l5},function(s){return s.getUTCSeconds()});const uN=iMe;iMe.range;var sMe=ed(function(s){s.setTime(s-s.getMilliseconds()-s.getSeconds()*l5)},function(s,o){s.setTime(+s+o*Hb)},function(s,o){return(o-s)/Hb},function(s){return s.getMinutes()});const dU=sMe;sMe.range;var aMe=ed(function(s){s.setTime(s-s.getMilliseconds()-s.getSeconds()*l5-s.getMinutes()*Hb)},function(s,o){s.setTime(+s+o*h5)},function(s,o){return(o-s)/h5},function(s){return s.getHours()});const gU=aMe;aMe.range;var oMe=ed(s=>s.setHours(0,0,0,0),(s,o)=>s.setDate(s.getDate()+o),(s,o)=>(o-s-(o.getTimezoneOffset()-s.getTimezoneOffset())*Hb)/OE,s=>s.getDate()-1);const cA=oMe;oMe.range;function NE(s){return ed(function(o){o.setDate(o.getDate()-(o.getDay()+7-s)%7),o.setHours(0,0,0,0)},function(o,f){o.setDate(o.getDate()+f*7)},function(o,f){return(f-o-(f.getTimezoneOffset()-o.getTimezoneOffset())*Hb)/Zfe})}var uA=NE(0),pU=NE(1),S8t=NE(2),A8t=NE(3),lA=NE(4),L8t=NE(5),M8t=NE(6);uA.range,pU.range,S8t.range,A8t.range,lA.range,L8t.range,M8t.range;var cMe=ed(function(s){s.setDate(1),s.setHours(0,0,0,0)},function(s,o){s.setMonth(s.getMonth()+o)},function(s,o){return o.getMonth()-s.getMonth()+(o.getFullYear()-s.getFullYear())*12},function(s){return s.getMonth()});const bU=cMe;cMe.range;var e1e=ed(function(s){s.setMonth(0,1),s.setHours(0,0,0,0)},function(s,o){s.setFullYear(s.getFullYear()+o)},function(s,o){return o.getFullYear()-s.getFullYear()},function(s){return s.getFullYear()});e1e.every=function(s){return!isFinite(s=Math.floor(s))||!(s>0)?null:ed(function(o){o.setFullYear(Math.floor(o.getFullYear()/s)*s),o.setMonth(0,1),o.setHours(0,0,0,0)},function(o,f){o.setFullYear(o.getFullYear()+f*s)})};const PE=e1e;e1e.range;var uMe=ed(function(s){s.setUTCSeconds(0,0)},function(s,o){s.setTime(+s+o*Hb)},function(s,o){return(o-s)/Hb},function(s){return s.getUTCMinutes()});const D8t=uMe;uMe.range;var lMe=ed(function(s){s.setUTCMinutes(0,0,0)},function(s,o){s.setTime(+s+o*h5)},function(s,o){return(o-s)/h5},function(s){return s.getUTCHours()});const I8t=lMe;lMe.range;var hMe=ed(function(s){s.setUTCHours(0,0,0,0)},function(s,o){s.setUTCDate(s.getUTCDate()+o)},function(s,o){return(o-s)/OE},function(s){return s.getUTCDate()-1});const t1e=hMe;hMe.range;function BE(s){return ed(function(o){o.setUTCDate(o.getUTCDate()-(o.getUTCDay()+7-s)%7),o.setUTCHours(0,0,0,0)},function(o,f){o.setUTCDate(o.getUTCDate()+f*7)},function(o,f){return(f-o)/Zfe})}var n1e=BE(0),vU=BE(1),O8t=BE(2),N8t=BE(3),hA=BE(4),P8t=BE(5),B8t=BE(6);n1e.range,vU.range,O8t.range,N8t.range,hA.range,P8t.range,B8t.range;var fMe=ed(function(s){s.setUTCDate(1),s.setUTCHours(0,0,0,0)},function(s,o){s.setUTCMonth(s.getUTCMonth()+o)},function(s,o){return o.getUTCMonth()-s.getUTCMonth()+(o.getUTCFullYear()-s.getUTCFullYear())*12},function(s){return s.getUTCMonth()});const F8t=fMe;fMe.range;var r1e=ed(function(s){s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0)},function(s,o){s.setUTCFullYear(s.getUTCFullYear()+o)},function(s,o){return o.getUTCFullYear()-s.getUTCFullYear()},function(s){return s.getUTCFullYear()});r1e.every=function(s){return!isFinite(s=Math.floor(s))||!(s>0)?null:ed(function(o){o.setUTCFullYear(Math.floor(o.getUTCFullYear()/s)*s),o.setUTCMonth(0,1),o.setUTCHours(0,0,0,0)},function(o,f){o.setUTCFullYear(o.getUTCFullYear()+f*s)})};const fA=r1e;r1e.range;function dMe(s,o,f,p,w,k){const b=[[uN,1,l5],[uN,5,5*l5],[uN,15,15*l5],[uN,30,30*l5],[k,1,Hb],[k,5,5*Hb],[k,15,15*Hb],[k,30,30*Hb],[w,1,h5],[w,3,3*h5],[w,6,6*h5],[w,12,12*h5],[p,1,OE],[p,2,2*OE],[f,1,Zfe],[o,1,rMe],[o,3,3*rMe],[s,1,Jfe]];function _(N,B,F){const H=Bae).right(b,H);if(j===b.length)return s.every(wfe(N/Jfe,B/Jfe,F));if(j===0)return C8t.every(Math.max(wfe(N,B,F),1));const[V,Z]=b[H/b[j-1][2]53)return null;"w"in He||(He.w=1),"Z"in He?(Lt=s1e(lN(He.y,0,1)),Ve=Lt.getUTCDay(),Lt=Ve>4||Ve===0?vU.ceil(Lt):vU(Lt),Lt=t1e.offset(Lt,(He.V-1)*7),He.y=Lt.getUTCFullYear(),He.m=Lt.getUTCMonth(),He.d=Lt.getUTCDate()+(He.w+6)%7):(Lt=i1e(lN(He.y,0,1)),Ve=Lt.getDay(),Lt=Ve>4||Ve===0?pU.ceil(Lt):pU(Lt),Lt=cA.offset(Lt,(He.V-1)*7),He.y=Lt.getFullYear(),He.m=Lt.getMonth(),He.d=Lt.getDate()+(He.w+6)%7)}else("W"in He||"U"in He)&&("w"in He||(He.w="u"in He?He.u%7:"W"in He?1:0),Ve="Z"in He?s1e(lN(He.y,0,1)).getUTCDay():i1e(lN(He.y,0,1)).getDay(),He.m=0,He.d="W"in He?(He.w+6)%7+He.W*7-(Ve+5)%7:He.w+He.U*7-(Ve+6)%7);return"Z"in He?(He.H+=He.Z/100|0,He.M+=He.Z%100,s1e(He)):i1e(He)}}function ye(Tt,wt,At,He){for(var Ze=0,Lt=wt.length,Ve=At.length,Mn,Oe;Ze=Ve)return-1;if(Mn=wt.charCodeAt(Ze++),Mn===37){if(Mn=wt.charAt(Ze++),Oe=Ee[Mn in gMe?wt.charAt(Ze++):Mn],!Oe||(He=Oe(Tt,At,He))<0)return-1}else if(Mn!=At.charCodeAt(He++))return-1}return He}function re(Tt,wt,At){var He=N.exec(wt.slice(At));return He?(Tt.p=B.get(He[0].toLowerCase()),At+He[0].length):-1}function we(Tt,wt,At){var He=j.exec(wt.slice(At));return He?(Tt.w=V.get(He[0].toLowerCase()),At+He[0].length):-1}function ke(Tt,wt,At){var He=F.exec(wt.slice(At));return He?(Tt.w=H.get(He[0].toLowerCase()),At+He[0].length):-1}function he(Tt,wt,At){var He=le.exec(wt.slice(At));return He?(Tt.m=ce.get(He[0].toLowerCase()),At+He[0].length):-1}function De(Tt,wt,At){var He=Z.exec(wt.slice(At));return He?(Tt.m=ae.get(He[0].toLowerCase()),At+He[0].length):-1}function X(Tt,wt,At){return ye(Tt,o,wt,At)}function Re(Tt,wt,At){return ye(Tt,f,wt,At)}function pe(Tt,wt,At){return ye(Tt,p,wt,At)}function Ge(Tt){return b[Tt.getDay()]}function de(Tt){return k[Tt.getDay()]}function ct(Tt){return A[Tt.getMonth()]}function bt(Tt){return _[Tt.getMonth()]}function St(Tt){return w[+(Tt.getHours()>=12)]}function yt(Tt){return 1+~~(Tt.getMonth()/3)}function Mt(Tt){return b[Tt.getUTCDay()]}function nn(Tt){return k[Tt.getUTCDay()]}function dn(Tt){return A[Tt.getUTCMonth()]}function vt(Tt){return _[Tt.getUTCMonth()]}function Lr(Tt){return w[+(Tt.getUTCHours()>=12)]}function xt(Tt){return 1+~~(Tt.getUTCMonth()/3)}return{format:function(Tt){var wt=Me(Tt+="",be);return wt.toString=function(){return Tt},wt},parse:function(Tt){var wt=fe(Tt+="",!1);return wt.toString=function(){return Tt},wt},utcFormat:function(Tt){var wt=Me(Tt+="",xe);return wt.toString=function(){return Tt},wt},utcParse:function(Tt){var wt=fe(Tt+="",!0);return wt.toString=function(){return Tt},wt}}}var gMe={"-":"",_:" ",0:"0"},td=/^\s*\d+/,H8t=/^%/,z8t=/[\\^$*+?|[\]().{}]/g;function jc(s,o,f){var p=s<0?"-":"",w=(p?-s:s)+"",k=w.length;return p+(k[o.toLowerCase(),f]))}function q8t(s,o,f){var p=td.exec(o.slice(f,f+1));return p?(s.w=+p[0],f+p[0].length):-1}function V8t(s,o,f){var p=td.exec(o.slice(f,f+1));return p?(s.u=+p[0],f+p[0].length):-1}function U8t(s,o,f){var p=td.exec(o.slice(f,f+2));return p?(s.U=+p[0],f+p[0].length):-1}function K8t(s,o,f){var p=td.exec(o.slice(f,f+2));return p?(s.V=+p[0],f+p[0].length):-1}function W8t(s,o,f){var p=td.exec(o.slice(f,f+2));return p?(s.W=+p[0],f+p[0].length):-1}function pMe(s,o,f){var p=td.exec(o.slice(f,f+4));return p?(s.y=+p[0],f+p[0].length):-1}function bMe(s,o,f){var p=td.exec(o.slice(f,f+2));return p?(s.y=+p[0]+(+p[0]>68?1900:2e3),f+p[0].length):-1}function Y8t(s,o,f){var p=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(o.slice(f,f+6));return p?(s.Z=p[1]?0:-(p[2]+(p[3]||"00")),f+p[0].length):-1}function X8t(s,o,f){var p=td.exec(o.slice(f,f+1));return p?(s.q=p[0]*3-3,f+p[0].length):-1}function Q8t(s,o,f){var p=td.exec(o.slice(f,f+2));return p?(s.m=p[0]-1,f+p[0].length):-1}function vMe(s,o,f){var p=td.exec(o.slice(f,f+2));return p?(s.d=+p[0],f+p[0].length):-1}function Z8t(s,o,f){var p=td.exec(o.slice(f,f+3));return p?(s.m=0,s.d=+p[0],f+p[0].length):-1}function wMe(s,o,f){var p=td.exec(o.slice(f,f+2));return p?(s.H=+p[0],f+p[0].length):-1}function J8t(s,o,f){var p=td.exec(o.slice(f,f+2));return p?(s.M=+p[0],f+p[0].length):-1}function ext(s,o,f){var p=td.exec(o.slice(f,f+2));return p?(s.S=+p[0],f+p[0].length):-1}function txt(s,o,f){var p=td.exec(o.slice(f,f+3));return p?(s.L=+p[0],f+p[0].length):-1}function nxt(s,o,f){var p=td.exec(o.slice(f,f+6));return p?(s.L=Math.floor(p[0]/1e3),f+p[0].length):-1}function rxt(s,o,f){var p=H8t.exec(o.slice(f,f+1));return p?f+p[0].length:-1}function ixt(s,o,f){var p=td.exec(o.slice(f));return p?(s.Q=+p[0],f+p[0].length):-1}function sxt(s,o,f){var p=td.exec(o.slice(f));return p?(s.s=+p[0],f+p[0].length):-1}function mMe(s,o){return jc(s.getDate(),o,2)}function axt(s,o){return jc(s.getHours(),o,2)}function oxt(s,o){return jc(s.getHours()%12||12,o,2)}function cxt(s,o){return jc(1+cA.count(PE(s),s),o,3)}function yMe(s,o){return jc(s.getMilliseconds(),o,3)}function uxt(s,o){return yMe(s,o)+"000"}function lxt(s,o){return jc(s.getMonth()+1,o,2)}function hxt(s,o){return jc(s.getMinutes(),o,2)}function fxt(s,o){return jc(s.getSeconds(),o,2)}function dxt(s){var o=s.getDay();return o===0?7:o}function gxt(s,o){return jc(uA.count(PE(s)-1,s),o,2)}function kMe(s){var o=s.getDay();return o>=4||o===0?lA(s):lA.ceil(s)}function pxt(s,o){return s=kMe(s),jc(lA.count(PE(s),s)+(PE(s).getDay()===4),o,2)}function bxt(s){return s.getDay()}function vxt(s,o){return jc(pU.count(PE(s)-1,s),o,2)}function wxt(s,o){return jc(s.getFullYear()%100,o,2)}function mxt(s,o){return s=kMe(s),jc(s.getFullYear()%100,o,2)}function yxt(s,o){return jc(s.getFullYear()%1e4,o,4)}function kxt(s,o){var f=s.getDay();return s=f>=4||f===0?lA(s):lA.ceil(s),jc(s.getFullYear()%1e4,o,4)}function xxt(s){var o=s.getTimezoneOffset();return(o>0?"-":(o*=-1,"+"))+jc(o/60|0,"0",2)+jc(o%60,"0",2)}function xMe(s,o){return jc(s.getUTCDate(),o,2)}function Ext(s,o){return jc(s.getUTCHours(),o,2)}function Txt(s,o){return jc(s.getUTCHours()%12||12,o,2)}function _xt(s,o){return jc(1+t1e.count(fA(s),s),o,3)}function EMe(s,o){return jc(s.getUTCMilliseconds(),o,3)}function Cxt(s,o){return EMe(s,o)+"000"}function Sxt(s,o){return jc(s.getUTCMonth()+1,o,2)}function Axt(s,o){return jc(s.getUTCMinutes(),o,2)}function Lxt(s,o){return jc(s.getUTCSeconds(),o,2)}function Mxt(s){var o=s.getUTCDay();return o===0?7:o}function Dxt(s,o){return jc(n1e.count(fA(s)-1,s),o,2)}function TMe(s){var o=s.getUTCDay();return o>=4||o===0?hA(s):hA.ceil(s)}function Ixt(s,o){return s=TMe(s),jc(hA.count(fA(s),s)+(fA(s).getUTCDay()===4),o,2)}function Oxt(s){return s.getUTCDay()}function Nxt(s,o){return jc(vU.count(fA(s)-1,s),o,2)}function Pxt(s,o){return jc(s.getUTCFullYear()%100,o,2)}function Bxt(s,o){return s=TMe(s),jc(s.getUTCFullYear()%100,o,2)}function Fxt(s,o){return jc(s.getUTCFullYear()%1e4,o,4)}function Rxt(s,o){var f=s.getUTCDay();return s=f>=4||f===0?hA(s):hA.ceil(s),jc(s.getUTCFullYear()%1e4,o,4)}function jxt(){return"+0000"}function _Me(){return"%"}function CMe(s){return+s}function SMe(s){return Math.floor(+s/1e3)}var dA,wU;$xt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function $xt(s){return dA=$8t(s),wU=dA.format,dA.parse,dA.utcFormat,dA.utcParse,dA}function Hxt(s){return new Date(s)}function zxt(s){return s instanceof Date?+s:+new Date(+s)}function AMe(s,o,f,p,w,k,b,_,A,N){var B=tMe(),F=B.invert,H=B.domain,j=N(".%L"),V=N(":%S"),Z=N("%I:%M"),ae=N("%I %p"),le=N("%a %d"),ce=N("%b %d"),be=N("%B"),xe=N("%Y");function Ee(Me){return(A(Me)1?0:s<-1?dN:Math.acos(s)}function MMe(s){return s>=1?mU:s<=-1?-mU:Math.asin(s)}function Uxt(s){return s.innerRadius}function Kxt(s){return s.outerRadius}function Wxt(s){return s.startAngle}function Yxt(s){return s.endAngle}function Xxt(s){return s&&s.padAngle}function Qxt(s,o,f,p,w,k,b,_){var A=f-s,N=p-o,B=b-w,F=_-k,H=F*A-B*N;if(!(H*HX*X+Re*Re&&(ye=we,re=ke),{cx:ye,cy:re,x01:-B,y01:-F,x11:ye*(w/Ee-1),y11:re*(w/Ee-1)}}function gN(){var s=Uxt,o=Kxt,f=sf(0),p=null,w=Wxt,k=Yxt,b=Xxt,_=null;function A(){var N,B,F=+s.apply(this,arguments),H=+o.apply(this,arguments),j=w.apply(this,arguments)-mU,V=k.apply(this,arguments)-mU,Z=LMe(V-j),ae=V>j;if(_||(_=N=Ufe()),Hv0))_.moveTo(0,0);else if(Z>yU-v0)_.moveTo(H*FE(j),H*Jy(j)),_.arc(0,0,H,j,V,!ae),F>v0&&(_.moveTo(F*FE(V),F*Jy(V)),_.arc(0,0,F,V,j,ae));else{var le=j,ce=V,be=j,xe=V,Ee=Z,Me=Z,fe=b.apply(this,arguments)/2,ye=fe>v0&&(p?+p.apply(this,arguments):gA(F*F+H*H)),re=a1e(LMe(H-F)/2,+f.apply(this,arguments)),we=re,ke=re,he,De;if(ye>v0){var X=MMe(ye/F*Jy(fe)),Re=MMe(ye/H*Jy(fe));(Ee-=X*2)>v0?(X*=ae?1:-1,be+=X,xe-=X):(Ee=0,be=xe=(j+V)/2),(Me-=Re*2)>v0?(Re*=ae?1:-1,le+=Re,ce-=Re):(Me=0,le=ce=(j+V)/2)}var pe=H*FE(le),Ge=H*Jy(le),de=F*FE(xe),ct=F*Jy(xe);if(re>v0){var bt=H*FE(ce),St=H*Jy(ce),yt=F*FE(be),Mt=F*Jy(be),nn;if(Zv0?ke>v0?(he=kU(yt,Mt,pe,Ge,H,ke,ae),De=kU(bt,St,de,ct,H,ke,ae),_.moveTo(he.cx+he.x01,he.cy+he.y01),kev0)||!(Ee>v0)?_.lineTo(de,ct):we>v0?(he=kU(de,ct,bt,St,F,-we,ae),De=kU(pe,Ge,yt,Mt,F,-we,ae),_.lineTo(he.cx+he.x01,he.cy+he.y01),wes?1:o>=s?0:NaN}function t7t(s){return s}function n7t(){var s=t7t,o=e7t,f=null,p=sf(0),w=sf(yU),k=sf(0);function b(_){var A,N=(_=DMe(_)).length,B,F,H=0,j=new Array(N),V=new Array(N),Z=+p.apply(this,arguments),ae=Math.min(yU,Math.max(-yU,w.apply(this,arguments)-Z)),le,ce=Math.min(Math.abs(ae)/N,k.apply(this,arguments)),be=ce*(ae<0?-1:1),xe;for(A=0;A0&&(H+=xe);for(o!=null?j.sort(function(Ee,Me){return o(V[Ee],V[Me])}):f!=null&&j.sort(function(Ee,Me){return f(_[Ee],_[Me])}),A=0,F=H?(ae-N*be)/H:0;A0?xe*F:0)+be,V[B]={data:_[B],index:A,value:xe,startAngle:Z,endAngle:le,padAngle:ce};return V}return b.value=function(_){return arguments.length?(s=typeof _=="function"?_:sf(+_),b):s},b.sortValues=function(_){return arguments.length?(o=_,f=null,b):o},b.sort=function(_){return arguments.length?(f=_,o=null,b):f},b.startAngle=function(_){return arguments.length?(p=typeof _=="function"?_:sf(+_),b):p},b.endAngle=function(_){return arguments.length?(w=typeof _=="function"?_:sf(+_),b):w},b.padAngle=function(_){return arguments.length?(k=typeof _=="function"?_:sf(+_),b):k},b}class OMe{constructor(o,f){this._context=o,this._x=f}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(o,f){switch(o=+o,f=+f,this._point){case 0:{this._point=1,this._line?this._context.lineTo(o,f):this._context.moveTo(o,f);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+o)/2,this._y0,this._x0,f,o,f):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+f)/2,o,this._y0,o,f);break}}this._x0=o,this._y0=f}}function r7t(s){return new OMe(s,!0)}function i7t(s){return new OMe(s,!1)}function qk(){}function xU(s,o,f){s._context.bezierCurveTo((2*s._x0+s._x1)/3,(2*s._y0+s._y1)/3,(s._x0+2*s._x1)/3,(s._y0+2*s._y1)/3,(s._x0+4*s._x1+o)/6,(s._y0+4*s._y1+f)/6)}function EU(s){this._context=s}EU.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:xU(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(s,o){switch(s=+s,o=+o,this._point){case 0:this._point=1,this._line?this._context.lineTo(s,o):this._context.moveTo(s,o);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:xU(this,s,o);break}this._x0=this._x1,this._x1=s,this._y0=this._y1,this._y1=o}};function pA(s){return new EU(s)}function NMe(s){this._context=s}NMe.prototype={areaStart:qk,areaEnd:qk,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(s,o){switch(s=+s,o=+o,this._point){case 0:this._point=1,this._x2=s,this._y2=o;break;case 1:this._point=2,this._x3=s,this._y3=o;break;case 2:this._point=3,this._x4=s,this._y4=o,this._context.moveTo((this._x0+4*this._x1+s)/6,(this._y0+4*this._y1+o)/6);break;default:xU(this,s,o);break}this._x0=this._x1,this._x1=s,this._y0=this._y1,this._y1=o}};function s7t(s){return new NMe(s)}function PMe(s){this._context=s}PMe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(s,o){switch(s=+s,o=+o,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var f=(this._x0+4*this._x1+s)/6,p=(this._y0+4*this._y1+o)/6;this._line?this._context.lineTo(f,p):this._context.moveTo(f,p);break;case 3:this._point=4;default:xU(this,s,o);break}this._x0=this._x1,this._x1=s,this._y0=this._y1,this._y1=o}};function a7t(s){return new PMe(s)}function BMe(s,o){this._basis=new EU(s),this._beta=o}BMe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var s=this._x,o=this._y,f=s.length-1;if(f>0)for(var p=s[0],w=o[0],k=s[f]-p,b=o[f]-w,_=-1,A;++_<=f;)A=_/f,this._basis.point(this._beta*s[_]+(1-this._beta)*(p+A*k),this._beta*o[_]+(1-this._beta)*(w+A*b));this._x=this._y=null,this._basis.lineEnd()},point:function(s,o){this._x.push(+s),this._y.push(+o)}};const o7t=function s(o){function f(p){return o===1?new EU(p):new BMe(p,o)}return f.beta=function(p){return s(+p)},f}(.85);function TU(s,o,f){s._context.bezierCurveTo(s._x1+s._k*(s._x2-s._x0),s._y1+s._k*(s._y2-s._y0),s._x2+s._k*(s._x1-o),s._y2+s._k*(s._y1-f),s._x2,s._y2)}function o1e(s,o){this._context=s,this._k=(1-o)/6}o1e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:TU(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(s,o){switch(s=+s,o=+o,this._point){case 0:this._point=1,this._line?this._context.lineTo(s,o):this._context.moveTo(s,o);break;case 1:this._point=2,this._x1=s,this._y1=o;break;case 2:this._point=3;default:TU(this,s,o);break}this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=o}};const c7t=function s(o){function f(p){return new o1e(p,o)}return f.tension=function(p){return s(+p)},f}(0);function c1e(s,o){this._context=s,this._k=(1-o)/6}c1e.prototype={areaStart:qk,areaEnd:qk,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(s,o){switch(s=+s,o=+o,this._point){case 0:this._point=1,this._x3=s,this._y3=o;break;case 1:this._point=2,this._context.moveTo(this._x4=s,this._y4=o);break;case 2:this._point=3,this._x5=s,this._y5=o;break;default:TU(this,s,o);break}this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=o}};const u7t=function s(o){function f(p){return new c1e(p,o)}return f.tension=function(p){return s(+p)},f}(0);function u1e(s,o){this._context=s,this._k=(1-o)/6}u1e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(s,o){switch(s=+s,o=+o,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:TU(this,s,o);break}this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=o}};const l7t=function s(o){function f(p){return new u1e(p,o)}return f.tension=function(p){return s(+p)},f}(0);function l1e(s,o,f){var p=s._x1,w=s._y1,k=s._x2,b=s._y2;if(s._l01_a>v0){var _=2*s._l01_2a+3*s._l01_a*s._l12_a+s._l12_2a,A=3*s._l01_a*(s._l01_a+s._l12_a);p=(p*_-s._x0*s._l12_2a+s._x2*s._l01_2a)/A,w=(w*_-s._y0*s._l12_2a+s._y2*s._l01_2a)/A}if(s._l23_a>v0){var N=2*s._l23_2a+3*s._l23_a*s._l12_a+s._l12_2a,B=3*s._l23_a*(s._l23_a+s._l12_a);k=(k*N+s._x1*s._l23_2a-o*s._l12_2a)/B,b=(b*N+s._y1*s._l23_2a-f*s._l12_2a)/B}s._context.bezierCurveTo(p,w,k,b,s._x2,s._y2)}function FMe(s,o){this._context=s,this._alpha=o}FMe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(s,o){if(s=+s,o=+o,this._point){var f=this._x2-s,p=this._y2-o;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(f*f+p*p,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(s,o):this._context.moveTo(s,o);break;case 1:this._point=2;break;case 2:this._point=3;default:l1e(this,s,o);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=o}};const h7t=function s(o){function f(p){return o?new FMe(p,o):new o1e(p,0)}return f.alpha=function(p){return s(+p)},f}(.5);function RMe(s,o){this._context=s,this._alpha=o}RMe.prototype={areaStart:qk,areaEnd:qk,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(s,o){if(s=+s,o=+o,this._point){var f=this._x2-s,p=this._y2-o;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(f*f+p*p,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=s,this._y3=o;break;case 1:this._point=2,this._context.moveTo(this._x4=s,this._y4=o);break;case 2:this._point=3,this._x5=s,this._y5=o;break;default:l1e(this,s,o);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=o}};const f7t=function s(o){function f(p){return o?new RMe(p,o):new c1e(p,0)}return f.alpha=function(p){return s(+p)},f}(.5);function jMe(s,o){this._context=s,this._alpha=o}jMe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(s,o){if(s=+s,o=+o,this._point){var f=this._x2-s,p=this._y2-o;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(f*f+p*p,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:l1e(this,s,o);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=o}};const d7t=function s(o){function f(p){return o?new jMe(p,o):new u1e(p,0)}return f.alpha=function(p){return s(+p)},f}(.5);function $Me(s){this._context=s}$Me.prototype={areaStart:qk,areaEnd:qk,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(s,o){s=+s,o=+o,this._point?this._context.lineTo(s,o):(this._point=1,this._context.moveTo(s,o))}};function g7t(s){return new $Me(s)}function HMe(s){return s<0?-1:1}function zMe(s,o,f){var p=s._x1-s._x0,w=o-s._x1,k=(s._y1-s._y0)/(p||w<0&&-0),b=(f-s._y1)/(w||p<0&&-0),_=(k*w+b*p)/(p+w);return(HMe(k)+HMe(b))*Math.min(Math.abs(k),Math.abs(b),.5*Math.abs(_))||0}function GMe(s,o){var f=s._x1-s._x0;return f?(3*(s._y1-s._y0)/f-o)/2:o}function h1e(s,o,f){var p=s._x0,w=s._y0,k=s._x1,b=s._y1,_=(k-p)/3;s._context.bezierCurveTo(p+_,w+_*o,k-_,b-_*f,k,b)}function _U(s){this._context=s}_U.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h1e(this,this._t0,GMe(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(s,o){var f=NaN;if(s=+s,o=+o,!(s===this._x1&&o===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(s,o):this._context.moveTo(s,o);break;case 1:this._point=2;break;case 2:this._point=3,h1e(this,GMe(this,f=zMe(this,s,o)),f);break;default:h1e(this,this._t0,f=zMe(this,s,o));break}this._x0=this._x1,this._x1=s,this._y0=this._y1,this._y1=o,this._t0=f}}};function qMe(s){this._context=new VMe(s)}(qMe.prototype=Object.create(_U.prototype)).point=function(s,o){_U.prototype.point.call(this,o,s)};function VMe(s){this._context=s}VMe.prototype={moveTo:function(s,o){this._context.moveTo(o,s)},closePath:function(){this._context.closePath()},lineTo:function(s,o){this._context.lineTo(o,s)},bezierCurveTo:function(s,o,f,p,w,k){this._context.bezierCurveTo(o,s,p,f,k,w)}};function p7t(s){return new _U(s)}function b7t(s){return new qMe(s)}function UMe(s){this._context=s}UMe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var s=this._x,o=this._y,f=s.length;if(f)if(this._line?this._context.lineTo(s[0],o[0]):this._context.moveTo(s[0],o[0]),f===2)this._context.lineTo(s[1],o[1]);else for(var p=KMe(s),w=KMe(o),k=0,b=1;b=0;--o)w[o]=(b[o]-w[o+1])/k[o];for(k[f-1]=(s[f]+w[f-1])/2,o=0;o=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(s,o){switch(s=+s,o=+o,this._point){case 0:this._point=1,this._line?this._context.lineTo(s,o):this._context.moveTo(s,o);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,o),this._context.lineTo(s,o);else{var f=this._x*(1-this._t)+s*this._t;this._context.lineTo(f,this._y),this._context.lineTo(f,o)}break}}this._x=s,this._y=o}};function w7t(s){return new CU(s,.5)}function m7t(s){return new CU(s,0)}function y7t(s){return new CU(s,1)}function pN(s,o,f){this.k=s,this.x=o,this.y=f}pN.prototype={constructor:pN,scale:function(s){return s===1?this:new pN(this.k*s,this.x,this.y)},translate:function(s,o){return s===0&o===0?this:new pN(this.k,this.x+this.k*s,this.y+this.k*o)},apply:function(s){return[s[0]*this.k+this.x,s[1]*this.k+this.y]},applyX:function(s){return s*this.k+this.x},applyY:function(s){return s*this.k+this.y},invert:function(s){return[(s[0]-this.x)/this.k,(s[1]-this.y)/this.k]},invertX:function(s){return(s-this.x)/this.k},invertY:function(s){return(s-this.y)/this.k},rescaleX:function(s){return s.copy().domain(s.range().map(this.invertX,this).map(s.invert,s))},rescaleY:function(s){return s.copy().domain(s.range().map(this.invertY,this).map(s.invert,s))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},pN.prototype;/*! @license DOMPurify 2.4.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.3/LICENSE */function Vk(s){return Vk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Vk(s)}function f1e(s,o){return f1e=Object.setPrototypeOf||function(p,w){return p.__proto__=w,p},f1e(s,o)}function k7t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function SU(s,o,f){return k7t()?SU=Reflect.construct:SU=function(w,k,b){var _=[null];_.push.apply(_,k);var A=Function.bind.apply(w,_),N=new A;return b&&f1e(N,b.prototype),N},SU.apply(null,arguments)}function $w(s){return x7t(s)||E7t(s)||T7t(s)||_7t()}function x7t(s){if(Array.isArray(s))return d1e(s)}function E7t(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}function T7t(s,o){if(s){if(typeof s=="string")return d1e(s,o);var f=Object.prototype.toString.call(s).slice(8,-1);if(f==="Object"&&s.constructor&&(f=s.constructor.name),f==="Map"||f==="Set")return Array.from(s);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return d1e(s,o)}}function d1e(s,o){(o==null||o>s.length)&&(o=s.length);for(var f=0,p=new Array(o);f1?f-1:0),w=1;w/gm),$7t=Hw(/\${[\w\W]*}/gm),H7t=Hw(/^data-[\-\w.\u00B7-\uFFFF]/),z7t=Hw(/^aria-[\-\w]+$/),G7t=Hw(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q7t=Hw(/^(?:\w+script|data):/i),V7t=Hw(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),U7t=Hw(/^html$/i),K7t=function(){return typeof window>"u"?null:window},W7t=function(o,f){if(Vk(o)!=="object"||typeof o.createPolicy!="function")return null;var p=null,w="data-tt-policy-suffix";f.currentScript&&f.currentScript.hasAttribute(w)&&(p=f.currentScript.getAttribute(w));var k="dompurify"+(p?"#"+p:"");try{return o.createPolicy(k,{createHTML:function(_){return _},createScriptURL:function(_){return _}})}catch{return console.warn("TrustedTypes policy "+k+" could not be created."),null}};function tDe(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:K7t(),o=function($t){return tDe($t)};if(o.version="2.4.3",o.removed=[],!s||!s.document||s.document.nodeType!==9)return o.isSupported=!1,o;var f=s.document,p=s.document,w=s.DocumentFragment,k=s.HTMLTemplateElement,b=s.Node,_=s.Element,A=s.NodeFilter,N=s.NamedNodeMap,B=N===void 0?s.NamedNodeMap||s.MozNamedAttrMap:N,F=s.HTMLFormElement,H=s.DOMParser,j=s.trustedTypes,V=_.prototype,Z=MU(V,"cloneNode"),ae=MU(V,"nextSibling"),le=MU(V,"childNodes"),ce=MU(V,"parentNode");if(typeof k=="function"){var be=p.createElement("template");be.content&&be.content.ownerDocument&&(p=be.content.ownerDocument)}var xe=W7t(j,f),Ee=xe?xe.createHTML(""):"",Me=p,fe=Me.implementation,ye=Me.createNodeIterator,re=Me.createDocumentFragment,we=Me.getElementsByTagName,ke=f.importNode,he={};try{he=jE(p).documentMode?p.documentMode:{}}catch{}var De={};o.isSupported=typeof ce=="function"&&fe&&typeof fe.createHTMLDocument<"u"&&he!==9;var X=R7t,Re=j7t,pe=$7t,Ge=H7t,de=z7t,ct=q7t,bt=V7t,St=G7t,yt=null,Mt=Lo({},[].concat($w(QMe),$w(v1e),$w(w1e),$w(m1e),$w(ZMe))),nn=null,dn=Lo({},[].concat($w(JMe),$w(y1e),$w(eDe),$w(DU))),vt=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Lr=null,xt=null,Tt=!0,wt=!0,At=!1,He=!1,Ze=!1,Lt=!1,Ve=!1,Mn=!1,Oe=!1,Di=!1,rn=!0,pi=!1,Fr="user-content-",tr=!0,Wn=!1,er={},Fn=null,nr=Lo({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ha=null,fa=Lo({},["audio","video","img","source","image","track"]),is=null,Xi=Lo({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),da="http://www.w3.org/1998/Math/MathML",Cc="http://www.w3.org/2000/svg",na="http://www.w3.org/1999/xhtml",Ji=na,Fi=!1,vr=null,wr=Lo({},[da,Cc,na],p1e),ni,Yn=["application/xhtml+xml","text/html"],Gi="text/html",un,Ks=null,Hn=p.createElement("form"),Ms=function($t){return $t instanceof RegExp||$t instanceof Function},Ea=function($t){Ks&&Ks===$t||((!$t||Vk($t)!=="object")&&($t={}),$t=jE($t),ni=Yn.indexOf($t.PARSER_MEDIA_TYPE)===-1?ni=Gi:ni=$t.PARSER_MEDIA_TYPE,un=ni==="application/xhtml+xml"?p1e:LU,yt="ALLOWED_TAGS"in $t?Lo({},$t.ALLOWED_TAGS,un):Mt,nn="ALLOWED_ATTR"in $t?Lo({},$t.ALLOWED_ATTR,un):dn,vr="ALLOWED_NAMESPACES"in $t?Lo({},$t.ALLOWED_NAMESPACES,p1e):wr,is="ADD_URI_SAFE_ATTR"in $t?Lo(jE(Xi),$t.ADD_URI_SAFE_ATTR,un):Xi,ha="ADD_DATA_URI_TAGS"in $t?Lo(jE(fa),$t.ADD_DATA_URI_TAGS,un):fa,Fn="FORBID_CONTENTS"in $t?Lo({},$t.FORBID_CONTENTS,un):nr,Lr="FORBID_TAGS"in $t?Lo({},$t.FORBID_TAGS,un):{},xt="FORBID_ATTR"in $t?Lo({},$t.FORBID_ATTR,un):{},er="USE_PROFILES"in $t?$t.USE_PROFILES:!1,Tt=$t.ALLOW_ARIA_ATTR!==!1,wt=$t.ALLOW_DATA_ATTR!==!1,At=$t.ALLOW_UNKNOWN_PROTOCOLS||!1,He=$t.SAFE_FOR_TEMPLATES||!1,Ze=$t.WHOLE_DOCUMENT||!1,Mn=$t.RETURN_DOM||!1,Oe=$t.RETURN_DOM_FRAGMENT||!1,Di=$t.RETURN_TRUSTED_TYPE||!1,Ve=$t.FORCE_BODY||!1,rn=$t.SANITIZE_DOM!==!1,pi=$t.SANITIZE_NAMED_PROPS||!1,tr=$t.KEEP_CONTENT!==!1,Wn=$t.IN_PLACE||!1,St=$t.ALLOWED_URI_REGEXP||St,Ji=$t.NAMESPACE||na,$t.CUSTOM_ELEMENT_HANDLING&&Ms($t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(vt.tagNameCheck=$t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),$t.CUSTOM_ELEMENT_HANDLING&&Ms($t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(vt.attributeNameCheck=$t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),$t.CUSTOM_ELEMENT_HANDLING&&typeof $t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(vt.allowCustomizedBuiltInElements=$t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),He&&(wt=!1),Oe&&(Mn=!0),er&&(yt=Lo({},$w(ZMe)),nn=[],er.html===!0&&(Lo(yt,QMe),Lo(nn,JMe)),er.svg===!0&&(Lo(yt,v1e),Lo(nn,y1e),Lo(nn,DU)),er.svgFilters===!0&&(Lo(yt,w1e),Lo(nn,y1e),Lo(nn,DU)),er.mathMl===!0&&(Lo(yt,m1e),Lo(nn,eDe),Lo(nn,DU))),$t.ADD_TAGS&&(yt===Mt&&(yt=jE(yt)),Lo(yt,$t.ADD_TAGS,un)),$t.ADD_ATTR&&(nn===dn&&(nn=jE(nn)),Lo(nn,$t.ADD_ATTR,un)),$t.ADD_URI_SAFE_ATTR&&Lo(is,$t.ADD_URI_SAFE_ATTR,un),$t.FORBID_CONTENTS&&(Fn===nr&&(Fn=jE(Fn)),Lo(Fn,$t.FORBID_CONTENTS,un)),tr&&(yt["#text"]=!0),Ze&&Lo(yt,["html","head","body"]),yt.table&&(Lo(yt,["tbody"]),delete Lr.tbody),tg&&tg($t),Ks=$t)},Va=Lo({},["mi","mo","mn","ms","mtext"]),Ba=Lo({},["foreignobject","desc","title","annotation-xml"]),Ta=Lo({},["title","style","font","a","script"]),ss=Lo({},v1e);Lo(ss,w1e),Lo(ss,B7t);var Zs=Lo({},m1e);Lo(Zs,F7t);var Fa=function($t){var Mr=ce($t);(!Mr||!Mr.tagName)&&(Mr={namespaceURI:Ji,tagName:"template"});var bi=LU($t.tagName),Aa=LU(Mr.tagName);return vr[$t.namespaceURI]?$t.namespaceURI===Cc?Mr.namespaceURI===na?bi==="svg":Mr.namespaceURI===da?bi==="svg"&&(Aa==="annotation-xml"||Va[Aa]):Boolean(ss[bi]):$t.namespaceURI===da?Mr.namespaceURI===na?bi==="math":Mr.namespaceURI===Cc?bi==="math"&&Ba[Aa]:Boolean(Zs[bi]):$t.namespaceURI===na?Mr.namespaceURI===Cc&&!Ba[Aa]||Mr.namespaceURI===da&&!Va[Aa]?!1:!Zs[bi]&&(Ta[bi]||!ss[bi]):!!(ni==="application/xhtml+xml"&&vr[$t.namespaceURI]):!1},$s=function($t){bN(o.removed,{element:$t});try{$t.parentNode.removeChild($t)}catch{try{$t.outerHTML=Ee}catch{$t.remove()}}},ap=function($t,Mr){try{bN(o.removed,{attribute:Mr.getAttributeNode($t),from:Mr})}catch{bN(o.removed,{attribute:null,from:Mr})}if(Mr.removeAttribute($t),$t==="is"&&!nn[$t])if(Mn||Oe)try{$s(Mr)}catch{}else try{Mr.setAttribute($t,"")}catch{}},Xb=function($t){var Mr,bi;if(Ve)$t=""+$t;else{var Aa=I7t($t,/^[\r\n\t ]+/);bi=Aa&&Aa[0]}ni==="application/xhtml+xml"&&Ji===na&&($t=''+$t+"");var Nc=xe?xe.createHTML($t):$t;if(Ji===na)try{Mr=new H().parseFromString(Nc,ni)}catch{}if(!Mr||!Mr.documentElement){Mr=fe.createDocument(Ji,"template",null);try{Mr.documentElement.innerHTML=Fi?Ee:Nc}catch{}}var $c=Mr.body||Mr.documentElement;return $t&&bi&&$c.insertBefore(p.createTextNode(bi),$c.childNodes[0]||null),Ji===na?we.call(Mr,Ze?"html":"body")[0]:Ze?Mr.documentElement:$c},bu=function($t){return ye.call($t.ownerDocument||$t,$t,A.SHOW_ELEMENT|A.SHOW_COMMENT|A.SHOW_TEXT,null,!1)},ra=function($t){return $t instanceof F&&(typeof $t.nodeName!="string"||typeof $t.textContent!="string"||typeof $t.removeChild!="function"||!($t.attributes instanceof B)||typeof $t.removeAttribute!="function"||typeof $t.setAttribute!="function"||typeof $t.namespaceURI!="string"||typeof $t.insertBefore!="function"||typeof $t.hasChildNodes!="function")},Ju=function($t){return Vk(b)==="object"?$t instanceof b:$t&&Vk($t)==="object"&&typeof $t.nodeType=="number"&&typeof $t.nodeName=="string"},lf=function($t,Mr,bi){De[$t]&&D7t(De[$t],function(Aa){Aa.call(o,Mr,bi,Ks)})},el=function($t){var Mr;if(lf("beforeSanitizeElements",$t,null),ra($t)||ng(/[\u0080-\uFFFF]/,$t.nodeName))return $s($t),!0;var bi=un($t.nodeName);if(lf("uponSanitizeElement",$t,{tagName:bi,allowedTags:yt}),$t.hasChildNodes()&&!Ju($t.firstElementChild)&&(!Ju($t.content)||!Ju($t.content.firstElementChild))&&ng(/<[/\w]/g,$t.innerHTML)&&ng(/<[/\w]/g,$t.textContent)||bi==="select"&&ng(/