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..36ee51f7 --- /dev/null +++ b/404.html @@ -0,0 +1,1211 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/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/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..838508d5 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..45a321a4 --- /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(27),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(34),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(102),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(9),i=n(103),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(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:"aaf4084522e3a:1674595607486"}},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(105))(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(34),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(31),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(30),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(30),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(31),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(31),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(31),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(28),u=n(0),c=n(9).get("scribeCallback"),d=2083,f=[],l=i.url(o.CLIENT_EVENT_ENDPOINT,{dnt:0,l:""}),h=encodeURIComponent(l).length;function p(t,e,n,r,i){var d=!u.isObject(t),f=!!e&&!u.isObject(e);if(!d&&!f)return c&&c(arguments),s.getExperiments().then(function(s){s&&s.tfw_duplicate_scribes_to_settings&&"on"===s.tfw_duplicate_scribes_to_settings.bucket?((e=e||{}).context="rufous-eol",m(o.formatClientEventNamespace(t),o.formatClientEventData(e,n,r),a.settingsScribe(),i)):m(o.formatClientEventNamespace(t),o.formatClientEventData(e,n,r),o.CLIENT_EVENT_ENDPOINT,i)})}function m(t,e,n,s){var a;n&&u.isObject(t)&&u.isObject(e)&&(r.log(t,e),a=o.flattenClientEventPayload(t,e),s=u.aug({},s,{l:o.stringify(a)}),a.dnt&&(s.dnt=1),g(i.url(n,s)))}function v(t){return f.push(t),f}function g(t){return(new Image).src=t}t.exports={canFlushOneItem:function(t){var e=o.stringify(t),n=encodeURIComponent(e).length+3;return h+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=A(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,S,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,n){var r=n(72),i=n(29),o=n(3),s=n(4),a=n(28),u=n(20),c=n(24),d=n(8),f=n(18),l=n(104),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={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){t.exports={settings:"twttr.settings"}},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){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(30);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..8419ace4 --- /dev/null +++ b/assets/external/unpkg.com/@dotlottie/player-component@latest/dist/dotlottie-player.js @@ -0,0 +1,1061 @@ +(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 Fl=Object.defineProperty;var Gc=Object.getOwnPropertyDescriptor;var Pr=(t,e)=>()=>(t&&(e=t(t=0)),e);var qs=(t,e)=>{for(var i in e)Fl(t,i,{get:e[i],enumerable:!0});};var rr=(t,e,i,r)=>{for(var s=r>1?void 0:r?Gc(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&&Fl(e,i,s),s};function Ke(t,e="dotLottie-common"){return new Error(`[${e}]: ${t}`)}function Hs(t,e="dotLottie-common",...i){console.error(`[${e}]:`,t,...i);}function Ci(t,e="dotLottie-common",...i){console.warn(`[${e}]:`,t,...i);}function eh(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 ih(t){try{let e=JSON.parse(t);return qa(e)}catch{return !1}}function so(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 en=Pr(()=>{});function Zc(t,e,i){return i||(i=e,e={}),typeof i!="function"&&Xr(7),Yc(t,e,[Xc],function(r){return Zl(mh(r.data[0],Kl(r.data[1])))},1,i)}function mh(t,e){return Yl(t,e)}function sn(t,e){if(e){for(var i="",r=0;r65558)return n(Xr(13,0,1),null),s;var o=$s(t,l+8);if(o){var p=o,g=Ts(t,l+16),v=g==4294967295||p==65535;if(v){var f=Ts(t,l-12);v=Ts(t,f)==101075792,v&&(p=o=Ts(t,f+32),g=Ts(t,f+48));}for(var _=e&&e.filter,m=function(C){var u=eu(t,g,v),c=u[0],y=u[1],P=u[2],A=u[3],F=u[4],B=u[5],H=tu(t,B);g=F;var nt=function(ut,mt){ut?(s(),n(ut,null)):(mt&&(a[A]=mt),--o||n(null,a));};if(!_||_({name:A,size:y,originalSize:P,compression:c}))if(!c)nt(null,lo(t,H,H+y));else if(c==8){var ct=t.subarray(H,H+y);if(y<32e4)try{nt(null,mh(ct,new zr(P)));}catch(ut){nt(ut,null);}else r.push(Zc(ct,{size:P},nt));}else nt(Xr(14,"unknown compression type "+c,1),null);else nt(null,null);},d=0;d{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 xa(t,e,i){let r=t,s=[];if(e.forEach(a=>{try{r=a(r,i);}catch(n){if(i.abortEarly||i.abortPipeEarly)throw n;s.push(...n.issues);}}),s.length)throw new Sr(s);return r}function Sn(t,e){return [...t?.path||[],e]}function Ds(t,e){let[i,r=[]]=!t||typeof t=="string"?[t,e]:[void 0,t];return {error:i,pipe:r}}function au(t=[]){return {schema:"any",async:!1,parse(e,i){return xa(e,t,{...i,reason:"any"})}}}function _n(t,e,i){let{error:r,pipe:s}=Ds(e,i);return {schema:"array",array:{item:t},async:!1,parse(a,n){if(!Array.isArray(a))throw new Sr([{reason:"type",validation:"array",origin:"value",message:r||"Invalid type",input:a,...n}]);let l=[],o=[];if(a.forEach((p,g)=>{try{l.push(t.parse(p,{...n,path:Sn(n,{schema:"array",input:a,key:g,value:p})}));}catch(v){if(n?.abortEarly)throw v;o.push(...v.issues);}}),o.length)throw new Sr(o);return xa(l,s,{...n,reason:"array"})}}}function sh(t,e){let{error:i,pipe:r}=Ds(t,e);return {schema:"boolean",async:!1,parse(s,a){if(typeof s!="boolean")throw new Sr([{reason:"type",validation:"boolean",origin:"value",message:i||"Invalid type",input:s,...a}]);return xa(s,r,{...a,reason:"boolean"})}}}function Rl(t,e){return {schema:"literal",literal:t,async:!1,parse(i,r){if(i!==t)throw new Sr([{reason:"type",validation:"literal",origin:"value",message:e||"Invalid type",input:i,...r}]);return i}}}function nu(t,e){return {schema:"native_enum",nativeEnum:t,async:!1,parse(i,r){if(!Object.values(t).includes(i))throw new Sr([{reason:"type",validation:"native_enum",origin:"value",message:e||"Invalid type",input:i,...r}]);return i}}}function Ms(t,e){let{error:i,pipe:r}=Ds(t,e);return {schema:"number",async:!1,parse(s,a){if(typeof s!="number")throw new Sr([{reason:"type",validation:"number",origin:"value",message:i||"Invalid type",input:s,...a}]);return xa(s,r,{...a,reason:"number"})}}}function ds(t,e,i){let{error:r,pipe:s}=Ds(e,i);return {schema:"object",object:t,async:!1,parse(a,n){if(!a||typeof a!="object"||a.toString()!=="[object Object]")throw new Sr([{reason:"type",validation:"object",origin:"value",message:r||"Invalid type",input:a,...n}]);let l={},o=[];if(Object.entries(t).forEach(([p,g])=>{try{let v=a[p];l[p]=g.parse(v,{...n,path:Sn(n,{schema:"object",input:a,key:p,value:v})});}catch(v){if(n?.abortEarly)throw v;o.push(...v.issues);}}),o.length)throw new Sr(o);return xa(l,s,{...n,reason:"object"})}}}function yi(t){return {schema:"optional",wrapped:t,async:!1,parse(e,i){return e===void 0?e:t.parse(e,i)}}}function _r(t,e){let{error:i,pipe:r}=Ds(t,e);return {schema:"string",async:!1,parse(s,a){if(typeof s!="string")throw new Sr([{reason:"type",validation:"string",origin:"value",message:i||"Invalid type",input:s,...a}]);return xa(s,r,{...a,reason:"string"})}}}function ou(t,e,i,r){let{key:s,value:a,error:n,pipe:l}=typeof e=="object"&&!Array.isArray(e)?{key:t,value:e,...Ds(i,r)}:{key:_r(),value:t,...Ds(e,i)};return {schema:"record",record:{key:s,value:a},async:!1,parse(o,p){if(!o||typeof o!="object"||o.toString()!=="[object Object]")throw new Sr([{reason:"type",validation:"record",origin:"value",message:n||"Invalid type",input:o,...p}]);let g={},v=[];if(Object.entries(o).forEach(([f,_])=>{let m=Sn(p,{schema:"record",input:o,key:f,value:_}),d;try{d=s.parse(f,{...p,origin:"key",path:m});}catch(u){if(p?.abortEarly)throw u;v.push(...u.issues);}let C;try{C=[a.parse(_,{...p,path:m})];}catch(u){if(p?.abortEarly)throw u;v.push(...u.issues);}d&&C&&(g[d]=C[0]);}),v.length)throw new Sr(v);return xa(g,l,{...p,reason:"record"})}}}function Ol(t,e,i,r){let{rest:s,error:a,pipe:n}=typeof e=="object"&&!Array.isArray(e)?{rest:e,...Ds(i,r)}:Ds(e,i);return {schema:"tuple",tuple:{items:t,rest:s},async:!1,parse(l,o){if(!Array.isArray(l)||!s&&t.length!==l.length||s&&t.length>l.length)throw new Sr([{reason:"type",validation:"tuple",origin:"value",message:a||"Invalid type",input:l,...o}]);let p=[],g=[];if(t.forEach((v,f)=>{try{let _=l[f];p[f]=v.parse(_,{...o,path:Sn(o,{schema:"tuple",input:l,key:f,value:_})});}catch(_){if(o?.abortEarly)throw _;g.push(..._.issues);}}),s&&l.slice(t.length).forEach((v,f)=>{try{let _=t.length+f;p[_]=s.parse(v,{...o,path:Sn(o,{schema:"tuple",input:l,key:_,value:v})});}catch(_){if(o?.abortEarly)throw _;g.push(..._.issues);}}),g.length)throw new Sr(g);return xa(p,n,{...o,reason:"tuple"})}}}function nh(t,e){return {schema:"union",union:t,async:!1,parse(i,r){let s,a=[];for(let n of t)try{s=[n.parse(i,r)];break}catch(l){a.push(...l.issues);}if(!s)throw new Sr([{reason:"type",validation:"union",origin:"value",message:e||"Invalid type",input:i,issues:a,...r}]);return s[0]}}}function En(t,e,i){let{error:r,pipe:s}=Ds(e,i);return ds(t.reduce((a,n)=>({...a,...n.object}),{}),r,s)}function hu(t,e,i,r){let{error:s,pipe:a}=Ds(i,r);return ds(Object.entries(t.object).reduce((n,[l,o])=>e.includes(l)?n:{...n,[l]:o},{}),s,a)}function lu(t,e,i){try{return {success:!0,data:t.parse(e,i)}}catch(r){return {success:!1,error:r}}}function oh(t,e){return (i,r)=>{if(i>t)throw new Sr([{validation:"max_value",origin:"value",message:e||"Invalid value",input:i,...r}]);return i}}function hh(t,e){return (i,r)=>{if(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:${Ru(e)};base64,${e}`}function zl(t){return "w"in t&&"h"in t&&!("xt"in t)&&"p"in t}async function po(t,e=()=>!0){if(!(t instanceof Uint8Array))throw new gh("DotLottie not found","INVALID_DOTLOTTIE");return await new Promise((i,r)=>{ru(t,{filter:e},(s,a)=>{s&&r(s),i(a);});})}async function vh(t,e,i){if(!(t instanceof Uint8Array))throw new gh("DotLottie not found","INVALID_DOTLOTTIE");return (await po(t,r=>r.name===e&&(!i||i(r))))[e]}async function lh(t){let e="manifest.json",i=(await po(t,r=>r.name===e))[e];if(!(typeof i>"u"))return JSON.parse(sn(i,!1))}async function Bu(t){if(!(t instanceof Uint8Array))return {success:!1,error:"DotLottie not found"};let e=await lh(t);if(typeof e>"u")return {success:!1,error:"Invalid .lottie file, manifest.json is missing"};let i=lu(Eu,e);return i.success?{success:!0}:{success:!1,error:`Invalid .lottie file, manifest.json structure is invalid, ${JSON.stringify(su(i.error).nested,null,2)}`}}async function Nl(t){let e=new Uint8Array(t),i=await Bu(e);if(i.error)throw new gh(i.error,"INVALID_DOTLOTTIE");return e}async function zu(t,e){let i=await po(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]=Ou(a);}}return r}async function Nu(t,e){let i=new Map;for(let[s,a]of Object.entries(e))for(let n of a.assets||[])if(zl(n)){let l=n.p;i.has(l)||i.set(l,new Set),i.get(l)?.add(s);}let r=await zu(t,s=>i.has(s.name));for(let[s,a]of i){let n=r[s];if(n)for(let l of a){let o=e[l];for(let p of o?.assets||[])zl(p)&&p.p===s&&(p.p=n,p.u="",p.e=1);}}}async function Gu(t,e,{inlineAssets:i}={},r){let s=`animations/${e}.json`,a=await vh(t,s,r);if(typeof a>"u")return;let n=JSON.parse(sn(a,!1));if(!i)return n;let l={[e]:n};return await Nu(t,l),n}async function ju(t,e,i){let r=`themes/${e}.lss`,s=await vh(t,r,i);if(!(typeof s>"u"))return sn(s,!1)}async function qu(t,e){let i={},r=await po(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]=sn(a,!1);}}return i}async function Hu(t,e,i){let r=`states/${e}.json`,s=await vh(t,r,i);return typeof s>"u"?void 0:JSON.parse(sn(s,!1))}var Il,jc,zr,ba,ph,fh,ch,Gl,jl,ql,uh,qc,Hc,Hl,ho,ra,ui,rn,kn,ui,ui,ui,ui,$l,ui,Wl,Ul,no,ms,oo,Jl,lo,Xl,Xr,Yl,$c,Wc,Ll,ao,Uc,Jc,Xc,Zl,Kl,Yc,$s,Ts,rh,ah,Kc,Qc,tu,eu,iu,Vl,Sr,pu,dh,fu,Ql,cu,uu,mu,Cn,du,yu,gu,vu,bu,xu,Pu,_u,tp,Su,ep,ku,Eu,yh,Ha,Cu,wu,Au,Tu,Mu,Du,Fu,Iu,Lu,Vu,Bl,Ru,gh,ip,fo=Pr(()=>{en();Il={},jc=function(t,e,i,r,s){var a=new Worker(Il[e]||(Il[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 l=n.data,o=l.$e$;if(o){var p=new Error(o[0]);p.code=o[1],p.stack=o[2],s(p,null);}else s(null,l);},a.postMessage(i,r),a},zr=Uint8Array,ba=Uint16Array,ph=Uint32Array,fh=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]),ch=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]),Gl=new zr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),jl=function(t,e){for(var i=new ba(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;rn=function(t,e,i){for(var r=t.length,s=0,a=new ba(e);s>>o]=p;}else for(l=new ba(r),s=0;s>>15-t[s]);return l},kn=new zr(288);for(ui=0;ui<144;++ui)kn[ui]=8;for(ui=144;ui<256;++ui)kn[ui]=9;for(ui=256;ui<280;++ui)kn[ui]=7;for(ui=280;ui<288;++ui)kn[ui]=8;$l=new zr(32);for(ui=0;ui<32;++ui)$l[ui]=5;Wl=rn(kn,9,1),Ul=rn($l,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)},Jl=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(t.BYTES_PER_ELEMENT==2?ba:t.BYTES_PER_ELEMENT==4?ph:zr)(i-e);return r.set(t.subarray(e,i)),r},Xl=["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"],Xr=function(t,e,i){var r=new Error(e||Xl[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,Xr),!i)throw r;return r},Yl=function(t,e,i){var r=t.length;if(!r||i&&i.f&&!i.l)return e||new zr(0);var s=!e||i,a=!i||i.i;i||(i={}),e||(e=new zr(r*3));var n=function(ee){var ae=e.length;if(ee>ae){var le=new zr(Math.max(ae*2,ee));le.set(e),e=le;}},l=i.f||0,o=i.p||0,p=i.b||0,g=i.l,v=i.d,f=i.m,_=i.n,m=r*8;do{if(!g){l=ms(t,o,1);var d=ms(t,o+1,3);if(o+=3,d)if(d==1)g=Wl,v=Ul,f=9,_=5;else if(d==2){var C=ms(t,o,31)+257,u=ms(t,o+10,15)+4,c=C+ms(t,o+5,31)+1;o+=14;for(var y=new zr(c),P=new zr(19),A=0;A>>4;if(ct<16)y[A++]=ct;else {var ut=0,mt=0;for(ct==16?(mt=3+ms(t,o,3),o+=2,ut=y[A-1]):ct==17?(mt=3+ms(t,o,7),o+=3):ct==18&&(mt=11+ms(t,o,127),o+=7);mt--;)y[A++]=ut;}}var _t=y.subarray(0,C),et=y.subarray(C);f=no(_t),_=no(et),g=rn(_t,f,1),v=rn(et,_,1);}else Xr(1);else {var ct=Jl(o)+4,bt=t[ct-4]|t[ct-3]<<8,D=ct+bt;if(D>r){a&&Xr(0);break}s&&n(p+bt),e.set(t.subarray(ct,D),p),i.b=p+=bt,i.p=o=D*8,i.f=l;continue}if(o>m){a&&Xr(0);break}}s&&n(p+131072);for(var O=(1<>>4;if(o+=ut&15,o>m){a&&Xr(0);break}if(ut||Xr(2),K<256)e[p++]=K;else if(K==256){L=o,g=null;break}else {var U=K-254;if(K>264){var A=K-257,qt=fh[A];U=ms(t,o,(1<>>4;It||Xr(3),o+=It&15;var et=Hl[Gt];if(Gt>3){var qt=ch[Gt];et+=oo(t,o)&(1<m){a&&Xr(0);break}s&&n(p+131072);for(var Ot=p+U;p>>0},rh=function(t,e){return Ts(t,e)+Ts(t,e+4)*4294967296};ah=typeof TextDecoder<"u"&&new TextDecoder,Kc=0;try{ah.decode($c,{stream:!0}),Kc=1;}catch{}Qc=function(t){for(var e="",i=0;;){var r=t[i++],s=(r>127)+(r>223)+(r>239);if(i+s>t.length)return [e,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);}};tu=function(t,e){return e+30+$s(t,e+26)+$s(t,e+28)},eu=function(t,e,i){var r=$s(t,e+28),s=sn(t.subarray(e+46,e+46+r),!($s(t,e+8)&2048)),a=e+46+r,n=Ts(t,e+20),l=i&&n==4294967295?iu(t,a):[n,Ts(t,e+24),Ts(t,e+42)],o=l[0],p=l[1],g=l[2];return [$s(t,e+10),o,p,s,a+$s(t,e+30)+$s(t,e+32),g]},iu=function(t,e){for(;$s(t,e)!=1;e+=4+$s(t,e+2));return [rh(t,e+12),rh(t,e+4),rh(t,e+20)]},Vl=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(t){t();};Sr=class extends Error{issues;constructor(t){super(t[0].message),this.name="ValiError",this.issues=t;}};pu=Object.create,dh=Object.defineProperty,fu=Object.getOwnPropertyDescriptor,Ql=Object.getOwnPropertyNames,cu=Object.getPrototypeOf,uu=Object.prototype.hasOwnProperty,mu=(t,e,i)=>e in t?dh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Cn=(t,e)=>function(){return e||(0, t[Ql(t)[0]])((e={exports:{}}).exports,e),e.exports},du=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ql(e))!uu.call(t,s)&&s!==i&&dh(t,s,{get:()=>e[s],enumerable:!(r=fu(e,s))||r.enumerable});return t},yu=(t,e,i)=>(i=t!=null?pu(cu(t)):{},du(e||!t||!t.__esModule?dh(i,"default",{value:t,enumerable:!0}):i,t)),gu=(t,e,i)=>(mu(t,typeof e!="symbol"?e+"":e,i),i),vu=Cn({"../../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,l=i.height-a,o=0,p=0)=>{if(s=s|0,a=a|0,n=n|0,l=l|0,o=o|0,p=p|0,n<=0||l<=0)return;let g=new Uint32Array(i.data.buffer),v=new Uint32Array(r.data.buffer);for(let f=0;f=i.height)continue;let m=p+f;if(!(m<0||m>=r.height))for(let d=0;d=i.width)continue;let u=o+d;if(u<0||u>=r.width)continue;let c=_*i.width+C,y=m*r.width+u;v[y]=g[c];}}};t.copy=e;}}),bu=Cn({"../../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 l=s*a*i;if(n===void 0&&(n=new Uint8ClampedArray(l)),n instanceof Uint8ClampedArray){if(n.length!==l)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 l=a*Math.PI;return Math.sin(l)/l*Math.sin(l/n)/(l/n)},r=a=>Math.round(a*((1<{let g=p?2:3,v=1/l,f=Math.min(1,l),_=g/f,m=Math.floor((_+1)*2),d=new Int16Array((m+2)*n),C=0;for(let u=0;u>1]+=r(1-ct);let ut=0;for(;ut0&&B[mt]===0;)mt--;let _t=y+ut,et=mt-ut+1;d[C++]=_t,d[C++]=et,d.set(B.subarray(ut,mt+1),C),C+=et;}return d};t.filters=s;}}),Pu=Cn({"../../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,l,o)=>{let p=0,g=0;for(let v=0;v0;P--){let A=o[f++];C=C+A*r[d]|0,u=u+A*r[d+1]|0,c=c+A*r[d+2]|0,y=y+A*r[d+3]|0,d=d+4|0;}s[g]=C+8192>>e,s[g+1]=u+8192>>e,s[g+2]=c+8192>>e,s[g+3]=y+8192>>e,g=g+n*4|0;}g=(v+1)*4|0,p=(v+1)*a*4|0;}};t.convolve=i;}}),_u=Cn({"../../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=vu(),i=bu(),r=xu(),s=Pu(),a=(o,p,g=!1)=>{let v=p.width/o.width,f=p.height/o.height,_=r.filters(o.width,p.width,v,0,g),m=r.filters(o.height,p.height,f,0,g),d=new Uint8ClampedArray(p.width*o.height*4);s.convolve(o.data,d,o.width,o.height,p.width,_),s.convolve(d,p.data,o.height,p.width,p.height,m);},n=(o,p,g=0,v=0,f=o.width-g,_=o.height-v,m=0,d=0,C=p.width-m,u=p.height-d)=>{if(g=g|0,v=v|0,f=f|0,_=_|0,m=m|0,d=d|0,C=C|0,u=u|0,f<=0||_<=0||C<=0||u<=0)return;if(g===0&&v===0&&f===o.width&&_===o.height&&m===0&&d===0&&C===p.width&&u===p.height){a(o,p);return}let c=i.createImage(f,_),y=i.createImage(C,u);e.copy(o,c,g,v),a(c,y),e.copy(y,p,0,0,y.width,y.height,m,d);};t.lanczos=n;var l=(o,p,g=0,v=0,f=o.width-g,_=o.height-v,m=0,d=0,C=p.width-m,u=p.height-d)=>{if(g=g|0,v=v|0,f=f|0,_=_|0,m=m|0,d=d|0,C=C|0,u=u|0,f<=0||_<=0||C<=0||u<=0)return;if(g===0&&v===0&&f===o.width&&_===o.height&&m===0&&d===0&&C===p.width&&u===p.height){a(o,p,!0);return}let c=i.createImage(f,_),y=i.createImage(C,u);e.copy(o,c,g,v),a(c,y,!0),e.copy(y,p,0,0,y.width,y.height,m,d);};t.lanczos2=l;}}),tp=(t=>(t.Bounce="bounce",t.Normal="normal",t))(tp||{}),Su=nu(tp),ep=ds({autoplay:yi(sh()),defaultTheme:yi(_r()),direction:yi(nh([Rl(1),Rl(-1)])),hover:yi(sh()),id:_r(),intermission:yi(Ms()),loop:yi(nh([sh(),Ms()])),playMode:yi(Su),speed:yi(Ms()),themeColor:yi(_r())}),ku=ds({animations:_n(_r()),id:_r()}),Eu=ds({activeAnimationId:yi(_r()),animations:_n(ep),author:yi(_r()),custom:yi(ou(_r(),au())),description:yi(_r()),generator:yi(_r()),keywords:yi(_r()),revision:yi(Ms()),themes:yi(_n(ku)),states:yi(_n(_r())),version:yi(_r())}),yh=hu(ep,["id"]),Ha=ds({state:_r()}),Cu=Ha,wu=En([Ha,ds({ms:Ms()})]),Au=En([Ha,ds({count:Ms()})]),Tu=Ha,Mu=Ha,Du=Ha,Fu=En([Ha,ds({threshold:yi(_n(Ms([hh(0),oh(1)])))})]),Iu=ds({onAfter:yi(wu),onClick:yi(Cu),onComplete:yi(Du),onEnter:yi(Au),onMouseEnter:yi(Tu),onMouseLeave:yi(Mu),onShow:yi(Fu)}),Lu=En([yh,ds({playOnScroll:yi(Ol([Ms([hh(0),oh(1)]),Ms([hh(0),oh(1)])])),segments:yi(nh([Ol([Ms(),Ms()]),_r()]))})]);En([Iu,ds({animationId:yi(_r()),playbackSettings:Lu})]);Vu={jpeg:"image/jpeg",png:"image/png",gif:"image/gif",bmp:"image/bmp",svg:"image/svg+xml",webp:"image/webp"},Bl={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]},Ru=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;al===n[o]))return Vu[a]}return null},gh=class extends Error{constructor(t,e){super(t),gu(this,"code"),this.name="[dotlottie-js]",this.code=e;}};yu(_u());ip=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}`);if(e.headers.get("content-type")?.includes("application/json")){let i=await e.json();if(!qa(i))throw new Error(`Invalid lottie JSON at ${t}`);let r=eh(t);this._animationsMap.set(r,i);let s={activeAnimationId:r,animations:[{id:r}]};this._manifest=s;}else {this._dotLottie=await Nl(await e.arrayBuffer());let i=await lh(this._dotLottie);if(!i)throw new Error("Manifest not found");this._manifest=i;}}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 Nl(t);let e=await lh(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 Gu(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 ju(this._dotLottie,t);return e&&this._themeMap.set(t,e),e}async getStateMachines(){if(!this._dotLottie)return;let t=await qu(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 Hu(this._dotLottie,t);return e&&this._stateMachinesMap.set(e.descriptor.id,e),e}};});var $u,rp,Wu,Uu,Ju,Xu,me,Yu,Fs,ys=Pr(()=>{$u=Object.create,rp=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,Uu=Object.getOwnPropertyNames,Ju=Object.getPrototypeOf,Xu=Object.prototype.hasOwnProperty,me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Yu=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Uu(e))!Xu.call(t,s)&&s!==i&&rp(t,s,{get:()=>e[s],enumerable:!(r=Wu(e,s))||r.enumerable});return t},Fs=(t,e,i)=>(i=t!=null?$u(Ju(t)):{},Yu(e||!t||!t.__esModule?rp(i,"default",{value:t,enumerable:!0}):i,t));});var Dp={};qs(Dp,{relottie:()=>fd});function co(t){if(Array.isArray(t))return t;if(typeof t=="function"){let e=t();return co(e)}else return typeof t>"u"?[]:[t]}function uo(t){if(Array.isArray(t))return t.length>0?[t[0]]:[];if(typeof t=="function"){let e=t();return uo(e)}else return typeof t>"u"?[]:[t]}function tm(t){return t===void 0?"empty":t}function hm(t){let e=[],i=-1;for(;++i0?{messages:e.messages}:{}}};Object.assign(e.data,o);let p=n.pop();if(nn(p,"root"))return p.hasExpressions=l.hasExpressions,p;e.fail(`Stack's last item has to be "root" but it's "${p?.type}"`,p);}function an(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]=an(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]?an(t.children[0]):null;case"collection":return t.children[0]?an(t.children[0]):null;case"element":return t.children[0]?an(t.children[0]):null;case"array":return t.children.map(an);case"root":return e(t);case"object":return e(t);default:throw new Error(`Unknown node type ${t.type}.`)}}function Gm(t,e,i={}){let r={...Nm,...i.stringify},s=an(t);return JSON.stringify(s,null,r.indent)}function up(t){if(t)throw t}function Ch(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 $m(){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);l(null,...s);function l(o,...p){let g=t[++a],v=-1;if(o){n(o);return}for(;++vn.length,o;l&&n.push(s);try{o=t.apply(this,n);}catch(p){let g=p;if(l&&i)throw g;return s(g)}l||(o instanceof Promise?o.then(a,s):o instanceof Error?s(o):a(o));}function s(n,...l){i||(i=!0,e(n,...l));}function a(n){s(null,n);}}function Jm(t){return !t||typeof t!="object"?"":"position"in t||"type"in t?dp(t.position):"start"in t||"end"in t?dp(t):"line"in t||"column"in t?wh(t):""}function wh(t){return yp(t&&t.line)+":"+yp(t&&t.column)}function dp(t){return wh(t&&t.start)+"-"+wh(t&&t.end)}function yp(t){return t&&typeof t=="number"?t:1}function Xm(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Mn(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,l=e.length-1;for(;s--;)if(t.charCodeAt(s)===47){if(a){i=s+1;break}}else n<0&&(a=!0,n=s+1),l>-1&&(t.charCodeAt(s)===e.charCodeAt(l--)?l<0&&(r=s):(l=-1,r=n));return i===r?r=n:r<0&&(r=t.length),t.slice(i,r)}function Ym(t){if(Mn(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 Zm(t){Mn(t);let e=t.length,i=-1,r=0,s=-1,a=0,n;for(;e--;){let l=t.charCodeAt(e);if(l===47){if(n){r=e+1;break}continue}i<0&&(n=!0,i=e+1),l===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 Km(...t){let e=-1,i;for(;++e0&&t.charCodeAt(t.length-1)===47&&(i+="/"),e?"/"+i:i}function td(t,e){let i="",r=0,s=-1,a=0,n=-1,l,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 l===46&&a>-1?a++:a=-1;}return i}function Mn(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function id(){return "/"}function Ah(t){return t!==null&&typeof t=="object"&&t.href&&t.origin}function rd(t){if(typeof t=="string")t=new URL(t);else if(!Ah(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 sd(t)}function sd(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||!H)A(F);else {let nt=a.stringify(B,H);nt==null||(pd(nt)?H.value=nt:H.result=nt),A(F,H);}});function A(F,B){F||!B?y(F):c?c(B):C(null,B);}}}function m(d){let C;a.freeze(),Sh("processSync",a.Parser),kh("processSync",a.Compiler);let u=wn(d);return a.process(u,c),xp("processSync","process",C),u;function c(y){C=!0,up(y);}}}function vp(t,e){return typeof t=="function"&&t.prototype&&(hd(t.prototype)||e in t.prototype)}function hd(t){let e;for(e in t)if(Tp.call(t,e))return !0;return !1}function Sh(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `Parser`")}function kh(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `Compiler`")}function Eh(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 bp(t){if(!Ch(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function xp(t,e,i){if(!i)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function wn(t){return ld(t)?t:new ad(t)}function ld(t){return !!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function pd(t){return typeof t=="string"||(0, Hm.default)(t)}var Pp,Zu,_p,Ku,Qu,sp,Sp,_a,em,im,ap,np,rm,sm,am,nm,om,nn,kp,cm,um,op,Di,Qt,An,dt,We,ie,ft,he,Tn,ce,bh,hp,Pa,gs,Ep,Xe,mm,Cp,dm,ym,gm,vm,bm,xm,Pm,_m,Sm,sa,km,Em,Cm,wm,Am,Tm,lp,Mm,yo,pp,Dm,Fm,wp,Im,Lm,Ap,fp,cp,Vm,Rm,Bm,zm,Nm,jm,qm,Hm,mp,Um,vs,Ws,ed,xh,ad,od,Tp,fd,Fp=Pr(()=>{ys();Pp=me((t,e)=>{var i=200,r="__lodash_hash_undefined__",s=800,a=16,n=9007199254740991,l="[object Arguments]",o="[object Array]",p="[object AsyncFunction]",g="[object Boolean]",v="[object Date]",f="[object Error]",_="[object Function]",m="[object GeneratorFunction]",d="[object Map]",C="[object Number]",u="[object Null]",c="[object Object]",y="[object Proxy]",P="[object RegExp]",A="[object Set]",F="[object String]",B="[object Undefined]",H="[object WeakMap]",nt="[object ArrayBuffer]",ct="[object DataView]",ut="[object Float32Array]",mt="[object Float64Array]",_t="[object Int8Array]",et="[object Int16Array]",bt="[object Int32Array]",D="[object Uint8Array]",O="[object Uint8ClampedArray]",k="[object Uint16Array]",L="[object Uint32Array]",K=/[\\^$.*+?()[\]{}|]/g,U=/^\[object .+?Constructor\]$/,qt=/^(?:0|[1-9]\d*)$/,It={};It[ut]=It[mt]=It[_t]=It[et]=It[bt]=It[D]=It[O]=It[k]=It[L]=!0,It[l]=It[o]=It[nt]=It[g]=It[ct]=It[v]=It[f]=It[_]=It[d]=It[C]=It[c]=It[P]=It[A]=It[F]=It[H]=!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,de=ye&&Gt.process,Xt=function(){try{var Nt=le&&le.require&&le.require("util").types;return Nt||de&&de.binding&&de.binding("util")}catch{}}(),pe=Xt&&Xt.isTypedArray;function Wt(Nt,Yt,se){switch(se.length){case 0:return Nt.call(Yt);case 1:return Nt.call(Yt,se[0]);case 2:return Nt.call(Yt,se[0],se[1]);case 3:return Nt.call(Yt,se[0],se[1],se[2])}return Nt.apply(Yt,se)}function zt(Nt,Yt){for(var se=-1,Pe=Array(Nt);++se-1}function Er(Nt,Yt){var se=this.__data__,Pe=Qr(se,Nt);return Pe<0?(++this.size,se.push([Nt,Yt])):se[Pe][1]=Yt,this}Ne.prototype.clear=Qi,Ne.prototype.delete=hi,Ne.prototype.get=yr,Ne.prototype.has=He,Ne.prototype.set=Er;function ge(Nt){var Yt=-1,se=Nt==null?0:Nt.length;for(this.clear();++Yt1?se[Fe-1]:void 0,Ve=Fe>2?se[2]:void 0;for(Re=Nt.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);++Pe-1&&Nt%1==0&&Nt0){if(++Yt>=s)return arguments[0]}else Yt=0;return Nt.apply(void 0,arguments)}}function gr(Nt){if(Nt!=null){try{return re.call(Nt)}catch{}try{return Nt+""}catch{}}return ""}function Ur(Nt,Yt){return Nt===Yt||Nt!==Nt&&Yt!==Yt}var Ar=ei(function(){return arguments}())?ei:function(Nt){return vr(Nt)&&Ht.call(Nt,"callee")&&!Vr.call(Nt,"callee")},fs=Array.isArray;function Os(Nt){return Nt!=null&&Li(Nt.length)&&!cs(Nt)}function Bs(Nt){return vr(Nt)&&Os(Nt)}var Tr=Xs||za;function cs(Nt){if(!Mr(Nt))return !1;var Yt=li(Nt);return Yt==_||Yt==m||Yt==p||Yt==y}function Li(Nt){return typeof Nt=="number"&&Nt>-1&&Nt%1==0&&Nt<=n}function Mr(Nt){var Yt=typeof Nt;return Nt!=null&&(Yt=="object"||Yt=="function")}function vr(Nt){return Nt!=null&&typeof Nt=="object"}function hr(Nt){if(!vr(Nt)||li(Nt)!=c)return !1;var Yt=Yi(Nt);if(Yt===null)return !0;var se=Ht.call(Yt,"constructor")&&Yt.constructor;return typeof se=="function"&&se instanceof se&&re.call(se)==be}var es=pe?Le(pe):Gi;function us(Nt){return je(Nt,zs(Nt))}function zs(Nt){return Os(Nt)?Ys(Nt,!0):bi(Nt)}var Oa=Rs(function(Nt,Yt,se){ar(Nt,Yt,se);});function Ba(Nt){return function(){return Nt}}function ua(Nt){return Nt}function za(){return !1}e.exports=Oa;}),Zu=me(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e="[",i="]",r="{",s="}",a=":",n=",",l="true",o="false",p="null",g='"',v=new Map([["t",l],["f",o],["n",p]]),f=new Map([[g,g],["\\","\\"],["/","/"],["b","\b"],["n",` +`],["f","\f"],["r","\r"],["t"," "]]),_=new Map([[e,"Punctuator"],[i,"Punctuator"],[r,"Punctuator"],[s,"Punctuator"],[a,"Punctuator"],[n,"Punctuator"],[l,"Boolean"],[o,"Boolean"],[p,"Null"]]),m=class extends Error{constructor(Ot,{line:ee,column:ae,index:le}){super(`${Ot} (${ee}:${ae})`),this.line=ee,this.column=ae,this.index=le;}},d=class extends m{constructor(Ot,ee){super(`Unexpected character ${Ot} found.`,ee);}},C=class extends m{constructor(Ot){super(`Unexpected token ${Ot.type}(${Ot.value}) found.`,Ot.loc.start);}},u=class extends m{constructor(Ot){super("Unexpected end of input found.",Ot);}},c='"',y="/",P="*",A={comments:!1,ranges:!1};function F(Ot){return /[\s\n]/.test(Ot)}function B(Ot){return Ot>="0"&&Ot<="9"}function H(Ot){return B(Ot)||/[a-f]/i.test(Ot)}function nt(Ot){return Ot>="1"&&Ot<="9"}function ct(Ot){return /[tfn]/.test(Ot)}function ut(Ot){return B(Ot)||Ot==="."||Ot==="-"}function mt(Ot,ee){ee=Object.freeze({...A,...ee});let ae=-1,le=1,ye=0,de=!1,Xt=[];function pe(re,Ht,ne,oe){let be=ne.offset+Ht.length,ze=ee.ranges?{range:[ne.offset,be]}:void 0;return {type:re,value:Ht,loc:{start:ne,end:oe||{line:ne.line,column:ne.column+Ht.length,offset:be}},...ze}}function Wt(){let re=Ot.charAt(++ae);return de?(le++,ye=1,de=!1):ye++,re==="\r"?(de=!0,Ot.charAt(ae+1)===` +`&&ae++):re===` +`&&(de=!0),re}function zt(){return {line:le,column:ye,offset:ae}}function Le(re){let Ht=v.get(re);if(Ot.slice(ae,ae+Ht.length)===Ht)return ae+=Ht.length-1,ye+=Ht.length-1,{value:Ht,c:Wt()};for(let ne=1;ne=0;){ae+=ee.slice(ye,le);let de=ee.charAt(le+1);if(f.has(de))ae+=f.get(de),ye=le+2;else if(de==="u"){let Xt=ee.slice(le+2,le+6);if(Xt.length<4||/[^0-9a-f]/i.test(Xt))throw new m(`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 m(`Invalid escape \\${de}.`,{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 bt(Ot)}}function O(Ot,ee){ee=Object.freeze({...et,...ee});let ae=mt(Ot,{comments:!!ee.comments,ranges:!!ee.ranges}),le=0;function ye(){return ae[le++]}function de(){let Ht=ae[le++];return Ht&&Ht.type.endsWith("Comment")?de():Ht}let Xt=ee.comments?de:ye;function pe(Ht,ne){if(!Ht||Ht.value!==ne)throw new C(Ht)}function Wt(Ht,ne){if(!Ht||Ht.type!==ne)throw new C(Ht)}function zt(Ht,ne){return ee.ranges?{range:[Ht.offset,ne.offset]}:void 0}function Le(Ht){let ne=zt(Ht.loc.start,Ht.loc.end);return {type:Ht.type,value:D(Ht),loc:{start:{...Ht.loc.start},end:{...Ht.loc.end}},...ne}}function qe(Ht){Wt(Ht,"String");let ne=Le(Ht);Ht=Xt(),pe(Ht,":");let oe=Te(),be=zt(ne.loc.start,oe.loc.end);return _t.member(ne,oe,{loc:{start:{...ne.loc.start},end:{...oe.loc.end}},...be})}function Be(Ht){pe(Ht,"{");let ne=[],oe=Xt();if(oe&&oe.value!=="}")do if(ne.push(qe(oe)),oe=Xt(),oe.value===",")oe=Xt();else break;while(oe);pe(oe,"}");let be=zt(Ht.loc.start,oe.loc.end);return _t.object(ne,{loc:{start:{...Ht.loc.start},end:{...oe.loc.end}},...be})}function Ae(Ht){pe(Ht,"[");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=zt(Ht.loc.start,oe.loc.end);return _t.array(ne,{type:"Array",elements:ne,loc:{start:{...Ht.loc.start},end:{...oe.loc.end}},...be})}function Te(Ht){switch(Ht=Ht||Xt(),Ht.type){case"String":case"Boolean":case"Number":case"Null":return Le(Ht);case"Punctuator":if(Ht.value==="{")return Be(Ht);if(Ht.value==="[")return Ae(Ht);default:throw new C(Ht)}}let Me=Te(),ue=Xt();if(ue)throw new C(ue);let re={loc:{start:{line:1,column:1,offset:0},end:{...Me.loc.end}}};return ee.tokens&&(re.tokens=ae),ee.ranges&&(re.range=zt(re.loc.start,re.loc.end)),_t.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 de of k.get(le.type)){let Xt=le[de];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 qt(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=qt,t.parse=O,t.print=Gt,t.tokenize=mt,t.traverse=U,t.types=_t;}),_p=me((t,e)=>{e.exports=function(i){return i!=null&&i.constructor!=null&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)};}),Ku=me((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]"},l=function(g){if(!g||r.call(g)!=="[object Object]")return !1;var v=i.call(g,"constructor"),f=g.constructor&&g.constructor.prototype&&i.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!v&&!f)return !1;var _;for(_ in g);return typeof _>"u"||i.call(g,_)},o=function(g,v){s&&v.name==="__proto__"?s(g,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):g[v.name]=v.newValue;},p=function(g,v){if(v==="__proto__")if(i.call(g,v)){if(a)return a(g,v).value}else return;return g[v]};e.exports=function g(){var v,f,_,m,d,C,u=arguments[0],c=1,y=arguments.length,P=!1;for(typeof u=="boolean"&&(P=u,u=arguments[1]||{},c=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});c_a("primitive",{value:tm(t),...e}),im=(t,e)=>_a("key",{...e},t),ap=(t,e,i)=>_a("object",{title:t,...i},[...co(e)]),np=(t,e,i)=>_a("array",{title:t,...i},[...co(e)]),rm=(t,e,i,r)=>_a("attribute",{key:t,title:e,...r},uo(i)),sm=(t,e,i,r)=>_a("element",{key:t,title:e,...r},uo(i)),am=(t,e,i,r)=>_a("collection",{key:t,title:e,...r},uo(i)),nm=(t,e)=>_a("root",{title:Sp.object.animation,hasExpressions:!1,...e},[...co(t)]),om=Fs(Pp(),1),nn=function t(e,i,r,s,a){let n=kp(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},kp=function(t){if(t==null)return fm;if(typeof t=="string")return pm(t);if(typeof t=="object")return Array.isArray(t)?hm(t):lm(t);if(typeof t=="function")return mo(t);throw new Error("Expected function, string, or object as test")};cm=Object.defineProperty,um=(t,e,i)=>e in t?cm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,op=(t,e,i)=>(um(t,typeof e!="symbol"?e+"":e,i),i),{boolean:Di,collection:Qt,custom:An,element:dt,intBoolean:We,number:ie,object:ft,string:he}=Sp,Tn=(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}}}]}),ce={...Tn(ft.animatedValue,Qt.keyframeList)},bh={...Tn(ft.animatedShape,Qt.shapeKeyframeList)},hp={...Tn(ft.animatedPosition,Qt.positionKeyframeList)},Pa={...Tn(ft.animatedColor,Qt.keyframeList)},gs={...Tn(ft.animatedMultidimensional,Qt.keyframeList)},Ep={[Qt.composition]:{defaultTitle:ft.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:ft.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:ft.assetPrecomposition,dependents:[{key:"w",type:"Number",title:ie.width,parentTitle:ft.assetImage},{key:"h",type:"Number",title:ie.height,parentTitle:ft.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:ft.assetPrecomposition},{key:"mn",type:"String",title:he.matchName,parentTitle:ft.assetPrecomposition},{key:"fr",type:"Number",title:ie.framerate,parentTitle:ft.assetPrecomposition},{key:"xt",type:"Number",title:We.extraComposition,parentTitle:ft.assetPrecomposition}]},[Qt.effectList]:{defaultTitle:ft.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:ft.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:ft.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"}}}]},[dt.animatedPositionProp]:{...hp},[dt.animatedShapeProp]:{...bh},[dt.animatedShapeBezier]:{defaultTitle:ft.bezier},[dt.animatedColorProp]:{...Pa},[dt.animatedMultidimensionalProp]:{...gs},[dt.anchorPoint]:{...hp},[Qt.keyframeList]:{defaultTitle:ft.keyframe},[Qt.keyframeValue]:{defaultTitle:ft.bezier},[Qt.keyframeEndValue]:{defaultTitle:ft.bezier},[Qt.positionKeyframeList]:{defaultTitle:ft.positionKeyframe},[dt.inTangent]:{defaultTitle:ft.keyframeBezierHandle},[dt.outTangent]:{defaultTitle:ft.keyframeBezierHandle},[dt.translation]:{defaultTitle:ft.animatedPositionStatic,dependents:[{key:"k",type:"Array",title:Qt.positionKeyframeList,childType:"Object",parentTitle:ft.animatedPosition},{key:"a",type:"Constant",title:We.animated,parentTitle:{defaultValue:0,values:{0:ft.animatedPositionStatic,1:ft.animatedPosition}}},{key:"s",type:"Boolean",title:Di.splitEnabled,parentTitle:ft.splitVector},{key:"x",type:"Object",title:dt.animatedValueProp,parentTitle:ft.splitVector},{key:"y",type:"Object",title:dt.animatedValueProp,parentTitle:ft.splitVector},{key:"z",type:"Object",title:dt.animatedValueProp,parentTitle:ft.splitVector}]},[dt.scale]:{...gs},[dt.rotationClockwise]:{...ce},[dt.polygonRotationClockwise]:{...ce},[dt.rotationX]:{...ce},[dt.rotationY]:{...ce},[dt.rotationZ]:{...ce},[dt.skew]:{...ce},[dt.skewAxis]:{...ce},[dt.orientation]:{...gs},[dt.size]:{...gs},[dt.rounded]:{...ce},[dt.level]:{...gs},[dt.shapeEllipseSize]:{...gs},[dt.startPoint]:{...gs},[dt.endPoint]:{...gs},[dt.splitX]:{...ce},[dt.splitY]:{...ce},[dt.splitZ]:{...ce},[dt.effectValueAngleValue]:{...ce},[dt.effectValueCheckboxValue]:{...ce},[dt.effectValueColorValue]:{...Pa},[dt.effectValueDropdownValue]:{...ce},[dt.effectValueLayerValue]:{...ce},[dt.effectValuePointValue]:{...gs},[dt.effectValueSliderValue]:{...ce},[dt.opacity]:{...ce},[dt.transformOpacity]:{...ce},[dt.maskOpacity]:{...ce},[dt.timeRemapping]:{...ce},[dt.dilate]:{...ce},[dt.perspective]:{...ce},[dt.highlightLength]:{...ce},[dt.highlightAngle]:{...ce},[ft.strokeDashDefault]:{...ce},[dt.miterLimitAlternative]:{...ce},[dt.strokeWidth]:{...ce},[dt.outerRadius]:{...ce},[dt.outerRoundness]:{...ce},[dt.points]:{...ce},[dt.innerRadius]:{...ce},[dt.innerRoundness]:{...ce},[dt.amount]:{...ce},[dt.copies]:{...ce},[dt.offset]:{...ce},[dt.radius]:{...ce},[Qt.shapeKeyframeList]:{defaultTitle:ft.shapeKeyframe},[Qt.shapeKeyframeStart]:{defaultTitle:ft.bezier},[ft.animatedShapeStatic]:{defaultTitle:ft.bezier},[dt.shapeTrimStart]:{...ce},[dt.shapeTrimEnd]:{...ce},[dt.angle]:{...ce},[dt.miterLimit]:{...ce},[dt.roundness]:{...ce},[dt.shapeZigZagSize]:{...ce},[ft.layerStyleChokeSpread]:{...ce},[dt.chokeSpread]:{...ce},[dt.layerStyleBlendMode]:{...ce},[dt.blurSize]:{...ce},[dt.noise]:{...ce},[dt.distance]:{...ce},[dt.layerStyleColor]:{...Pa},[dt.layerConceal]:{...ce},[dt.range]:{...ce},[dt.jitter]:{...ce},[dt.source]:{...ce},[dt.strength]:{...ce},[dt.bevelStyle]:{...ce},[dt.technique]:{...ce},[dt.soften]:{...ce},[dt.globalAngle]:{...ce},[dt.altitude]:{...ce},[dt.highlightMode]:{...ce},[dt.highlightColor]:{...ce},[dt.highlightOpacity]:{...ce},[dt.shadowMode]:{...ce},[dt.shadowColor]:{...Pa},[dt.shadowOpacity]:{...ce},[dt.invert]:{...ce},[dt.smoothness]:{...ce},[dt.reverse]:{...ce},[dt.align]:{...ce},[ft.gradientOverlay]:{...ce},[dt.firstMargin]:{...ce},[dt.lastMargin]:{...ce},[dt.reversePath]:{...ce},[dt.forceAlignment]:{...ce},[dt.perpendicularToPath]:{...ce},[dt.strokeWidth]:{...ce},[dt.strokeHue]:{...ce},[dt.strokeSaturation]:{...ce},[dt.strokeBrightness]:{...ce},[dt.strokeOpacity]:{...ce},[dt.strokeHue]:{...ce},[dt.fillColor]:{...Pa},[dt.fillHue]:{...ce},[dt.fillSaturation]:{...ce},[dt.fillOpacity]:{...ce},[dt.fillBrightness]:{...ce},[dt.letterSpacing]:{...ce},[dt.blur]:{...ce},[dt.lineSpacing]:{...ce},[dt.minEase]:{...ce},[dt.maxEase]:{...ce},[dt.maxAmount]:{...ce},[dt.textSelectorStart]:{...ce},[dt.textSelectorEnd]:{...ce},[dt.shape]:{...bh},[dt.maskVertices]:{...bh},[dt.shapeFillColor]:{...Pa},[dt.shapeStrokeColor]:{...gs},[Qt.documentStrokeColor]:{...Pa},[Qt.documentFillColor]:{...Pa},[dt.center]:{...gs},[dt.textGroupAlignment]:{...gs},[Qt.masksProperties]:{defaultTitle:ft.mask},[Qt.textFontList]:{defaultTitle:ft.textFont},[dt.startOpacity]:{...ce},[ft.endOpacity]:{...ce},[Qt.strokeDashList]:{defaultTitle:ft.strokeDashDefault,dependents:[{key:"n",type:"Constant",title:he.strokeDashType,parentTitle:{prefix:"stroke-dash",defaultValue:"d",values:{d:"default",g:"gap",o:"offset"}}}]},[dt.strokeLength]:{...ce},[Qt.markers]:{defaultTitle:ft.marker},[dt.textCharacterData]:{defaultTitle:ft.characterShapes,dependents:[{key:"shapes",type:"Array",title:Qt.shapeList,parentTitle:ft.characterShapes},{key:"refId",type:"String",title:he.referenceId,parentTitle:ft.characterPrecomp},{key:"ks",type:"Object",title:dt.layerTransform,parentTitle:ft.characterPrecomp},{key:"ip",type:"Number",title:ie.inPoint,parentTitle:ft.characterPrecomp},{key:"op",type:"Number",title:ie.outPoint,parentTitle:ft.characterPrecomp},{key:"sr",type:"Number",title:ie.timeStretch,parentTitle:ft.characterPrecomp},{key:"st",type:"Number",title:ie.timeStart,parentTitle:ft.characterPrecomp}]},[Qt.textDocumentKeyframes]:{defaultTitle:ft.textDocumentKeyframe},[Qt.textRanges]:{defaultTitle:ft.textRange}},Xe=(t,e,i="ty")=>{let r=Ep[t]?.dependents?.find(p=>p.key===i);if(r?.type!=="Constant")return {};let{prefix:s,values:a}=r.parentTitle,n=s?`${s}-`:"",l=Object.values(a),o={};for(let p of l)typeof p=="string"&&(o[n+p]=e);return o},mm={},Cp=(t,e)=>{switch(t.type){case"Object":return Ep[e]||{defaultTitle:e};case"Array":return mm[e]||{defaultTitle:e};default:throw new Error("The node.type has to be 'Array' or 'Object'")}},dm={required:{p:{[ft.assetImage]:he.filename,[ft.assetPrecomposition]:he.filename,[ft.assetDataSource]:he.filename},sc:{[ft.layerSolidColor]:he.hexColor},ch:{[Qt.textCharacters]:he.character},fName:{[ft.textFont]:he.fontName},fStyle:{[ft.textFont]:he.fontStyle},style:{[Qt.textCharacters]:he.fontStyle},fFamily:{[ft.textFont]:he.fontFamily,[Qt.textCharacters]:he.fontFamily},f:{[dt.textDocument]:he.fontFamily},t:{[dt.textDocument]:he.text}},known:{x:{[ft.animatedValue]:he.expression,[ft.animatedValueStatic]:he.expression,[ft.animatedShape]:he.expression,[ft.animatedShapeStatic]:he.expression,[ft.animatedPosition]:he.expression,[ft.animatedPositionStatic]:he.expression,[ft.animatedColor]:he.expression,[ft.animatedColorStatic]:he.expression,[ft.animatedMultidimensional]:he.expression,[ft.animatedMultidimensionalStatic]:he.expression,[dt.textAnimatedDocument]:he.expression},v:{[ft.animation]:he.version},cm:{[ft.marker]:he.markerComment},a:{[dt.metadata]:he.author},k:{[dt.metadata]:he.keyword},d:{[dt.metadata]:he.description},tc:{[dt.metadata]:he.themeColor},g:{[dt.metadata]:he.generator},id:{[ft.assetImage]:he.id,[ft.assetPrecomposition]:he.id,[ft.assetDataSource]:he.id},refId:{[ft.layerAudio]:he.idSound,[ft.layerPrecomposition]:he.idReference,[ft.layerImage]:he.idImage,[ft.layerData]:he.idDataSource,[ft.characterPrecomp]:he.idReference},u:{[ft.assetImage]:he.path,[ft.assetPrecomposition]:he.path,[ft.assetDataSource]:he.path},nm:{[ft.animation]:he.name,[ft.assetImage]:he.name,[ft.assetPrecomposition]:he.name,[ft.assetDataSource]:he.name,[ft.textRange]:he.name,[dt.transformRepeater]:he.name,[ft.animatedValue]:he.name,[ft.animatedValueStatic]:he.name,[ft.animatedShape]:he.name,[ft.animatedShapeStatic]:he.name,[ft.animatedPosition]:he.name,[ft.animatedPositionStatic]:he.name,[ft.animatedColor]:he.name,[ft.animatedColorStatic]:he.name,[ft.animatedMultidimensional]:he.name,[ft.animatedMultidimensionalStatic]:he.name,...Xe(Qt.effectParameters,he.name),...Xe(Qt.effectList,he.name),[ft.mask]:he.name,...Xe(Qt.composition,he.name),...Xe(Qt.shapeList,he.name),[ft.strokeDashDefault]:he.name,[ft.strokeDashGap]:he.name,[ft.strokeDashOffset]:he.name,[ft.layerStyleBevelEmboss]:he.name,[ft.layerStyleColorOverlay]:he.name,[ft.layerStyleDropShadow]:he.name,[ft.layerStyleGradientOverlay]:he.name,[ft.layerStyleInnerShadow]:he.name,[ft.layerStyleOuterGlow]:he.name,[ft.layerStyleSatin]:he.name,[ft.layerStyleStroke]:he.name,[dt.layerTransform]:he.name},mn:{[ft.animation]:he.matchName,[ft.animatedValue]:he.matchName,[ft.animatedValueStatic]:he.matchName,[ft.animatedShape]:he.matchName,[ft.animatedShapeStatic]:he.matchName,[ft.animatedPosition]:he.matchName,[ft.animatedPositionStatic]:he.matchName,[ft.animatedColor]:he.matchName,[ft.animatedColorStatic]:he.matchName,[ft.animatedMultidimensional]:he.matchName,[ft.animatedMultidimensionalStatic]:he.matchName,...Xe(Qt.effectParameters,he.matchName),...Xe(Qt.effectList,he.matchName),[ft.mask]:he.matchName,...Xe(Qt.composition,he.matchName),...Xe(Qt.shapeList,he.matchName),[ft.strokeDashDefault]:he.matchName,[ft.strokeDashGap]:he.matchName,[ft.strokeDashOffset]:he.matchName,[ft.layerStyleBevelEmboss]:he.name,[ft.layerStyleColorOverlay]:he.name,[ft.layerStyleDropShadow]:he.name,[ft.layerStyleGradientOverlay]:he.name,[ft.layerStyleInnerShadow]:he.name,[ft.layerStyleOuterGlow]:he.name,[ft.layerStyleSatin]:he.name,[ft.layerStyleStroke]:he.name,[dt.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:{[ft.textFont]:he.fontPath},fWeight:{[ft.textFont]:he.fontWeight},fClass:{[ft.textFont]:he.fontCssClass},tg:{...Xe(Qt.composition,he.layerXmlTagName)},t:{[ft.assetImage]:he.assetImageType}}},ym={required:{ty:{...Xe(Qt.composition,ie.layerType),...Xe(Qt.shapeList,he.shapeType)}},known:{mode:{[ft.mask]:he.maskMode},n:{[ft.strokeDashDefault]:he.strokeDashType,[ft.strokeDashGap]:he.strokeDashType,[ft.strokeDashOffset]:he.strokeDashType},t:{[ft.assetImage]:he.assetImageType}}},gm={required:{ip:{[ft.animation]:ie.inPoint,...Xe(Qt.composition,ie.inPoint)},op:{[ft.animation]:ie.outPoint,...Xe(Qt.composition,ie.outPoint),[ft.characterPrecomp]:ie.outPoint},p:{[dt.animatedGradientColors]:ie.count},k:{[ft.animatedValueStatic]:ie.staticValue,[ft.animatedMultidimensionalStatic]:ie.staticValue,[ft.animatedPositionStatic]:ie.staticValue,[ft.animatedValue]:ie.staticValue},w:{[ft.animation]:ie.width,[ft.assetImage]:ie.width,[ft.assetPrecomposition]:ie.width,[Qt.textCharacters]:ie.width,[ft.layerPrecomposition]:ie.width},sw:{[ft.layerSolidColor]:ie.width},h:{[ft.animation]:ie.height,[ft.assetImage]:ie.height,[ft.assetPrecomposition]:ie.height,[ft.layerPrecomposition]:ie.height},sh:{[ft.layerSolidColor]:ie.height},size:{[Qt.textCharacters]:ie.fontSize},ls:{[dt.textDocument]:ie.baselineShift},t:{[ft.keyframe]:ie.time,[Qt.keyframeList]:ie.time,[Qt.keyframeValue]:ie.time,[ft.positionKeyframe]:ie.time,[Qt.positionKeyframeList]:ie.time,[ft.keyframeBezierHandle]:ie.time,[ft.shapeKeyframe]:ie.time,[ft.textDocumentKeyframe]:ie.timeStart},s:{[dt.textDocument]:ie.fontSize}},known:{v:{[ft.effectValueIgnored]:ie.value},tm:{[ft.marker]:ie.markerTime},dr:{[ft.marker]:ie.markerDuration},sa:{[dt.motionBlur]:ie.shutterAngle},sp:{[dt.motionBlur]:ie.shutterPhase},spf:{[dt.motionBlur]:ie.samplesPerFrame},asl:{[dt.motionBlur]:ie.adaptiveSampleLimit},ix:{...Xe(Qt.shapeList,ie.propertyIndex),...Xe(Qt.effectList,ie.propertyIndex),...Xe(Qt.effectParameters,ie.propertyIndex),[ft.animatedValue]:ie.propertyIndex,[ft.animatedValueStatic]:ie.propertyIndex,[ft.animatedShape]:ie.propertyIndex,[ft.animatedShapeStatic]:ie.propertyIndex,[ft.animatedPosition]:ie.propertyIndex,[ft.animatedPositionStatic]:ie.propertyIndex,[ft.animatedColor]:ie.propertyIndex,[ft.animatedColorStatic]:ie.propertyIndex,[ft.animatedMultidimensional]:ie.propertyIndex,[ft.animatedMultidimensionalStatic]:ie.propertyIndex},ind:{...Xe(Qt.composition,ie.compositionIndex),[ft.shapePath]:ie.shapePathIndex,...Xe(Qt.effectParameters,ie.effectParametersIndex),...Xe(Qt.effectList,ie.effectListIndex)},cix:{...Xe(Qt.shapeList,ie.expressionPropertyIndex)},fr:{[ft.animation]:ie.framerate,[ft.assetPrecomposition]:ie.framerate},sr:{...Xe(Qt.composition,ie.timeStretch),[ft.characterPrecomp]:ie.timeStretch},st:{...Xe(Qt.composition,ie.timeStart),[ft.characterPrecomp]:ie.timeStart},l:{[ft.animatedMultidimensional]:ie.length,[ft.animatedMultidimensionalStatic]:ie.length,[ft.animatedPosition]:ie.length,[ft.animatedPositionStatic]:ie.length,[dt.translation]:ie.length},parent:{...Xe(Qt.composition,ie.parentIndex)},td:{[ft.layerPrecomposition]:ie.matteTarget,[ft.layerShape]:ie.matteTarget,[ft.layerSolidColor]:ie.matteTarget,[ft.layerImage]:ie.matteTarget,[ft.layerNull]:ie.matteTarget,[ft.layerText]:ie.matteTarget},ml:{[ft.shapeGradientStroke]:ie.miterLimitValue,[ft.shapeStroke]:ie.miterLimitValue},np:{[ft.shapeGroup]:ie.numberOfProperties,[dt.effectValueAngleValue]:ie.numberOfProperties,[dt.effectValueCheckboxValue]:ie.numberOfProperties,[dt.effectValueColorValue]:ie.numberOfProperties,[dt.effectValueDropdownValue]:ie.numberOfProperties,[dt.effectValueIgnoredValue]:ie.numberOfProperties,[dt.effectValueLayerValue]:ie.numberOfProperties,[dt.effectValuePointValue]:ie.numberOfProperties,[dt.effectValueSliderValue]:ie.numberOfProperties,[ft.effect]:ie.numberOfProperties,[Qt.effectList]:ie.numberOfProperties,[Qt.effectParameters]:ie.numberOfProperties,...Xe(Qt.effectList,ie.numberOfProperties),...Xe(Qt.effectParameters,ie.numberOfProperties)},mm:{[ft.shapeMerge]:ie.mergeMode},ip:{[ft.characterPrecomp]:ie.inPoint},ascent:{[ft.textFont]:ie.ascent},r:{[dt.textSelector]:ie.rangeUnits},lh:{[dt.textDocument]:ie.lineHeight},tr:{[dt.textDocument]:ie.textTracking},ls:{[dt.textDocument]:ie.baselineShift}}},vm={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:{[ft.shapeEllipse]:ie.shapeDirection,[ft.shapePath]:ie.shapeDirection,[ft.shapePolygon]:ie.shapeDirection,[ft.shapeStar]:ie.shapeDirection,[ft.shapeRectangle]:ie.shapeDirection},t:{[ft.assetDataSource]:ie.dataSourceType},origin:{[ft.textFont]:ie.textType},b:{[dt.textSelector]:ie.basedOn},sh:{[dt.textSelector]:ie.textTypeShape}},known:{tt:{[ft.layerPrecomposition]:ie.matteMode,[ft.layerShape]:ie.matteMode,[ft.layerSolidColor]:ie.matteMode,[ft.layerImage]:ie.matteMode,[ft.layerNull]:ie.matteMode,[ft.layerText]:ie.matteMode},m:{[ft.shapeRepeater]:ie.composite,[ft.shapeTrim]:ie.multiple,[dt.textFollowPath]:ie.textMask},r:{[ft.shapeFill]:ie.fillRuleValue,[ft.shapeGradientFill]:ie.fillRuleValue},t:{[ft.shapeGradientFill]:ie.gradientType,[ft.shapeGradientStroke]:ie.gradientType},gt:{[ft.layerStyleGradientOverlay]:ie.gradientType},lc:{[ft.shapeGradientStroke]:ie.lineCapType,[ft.shapeStroke]:ie.lineCapType},lj:{[ft.shapeGradientStroke]:ie.lineJoinType,[ft.shapeStroke]:ie.lineJoinType,[ft.shapeOffsetPath]:ie.lineJoin},sy:{[ft.shapePolygon]:ie.shapePolygonStarType,[ft.shapeStar]:ie.shapePolygonStarType},g:{[dt.textAlignmentOptions]:ie.textTypeGrouping},j:{[dt.textDocument]:ie.textTypeJustify},ca:{[dt.textDocument]:ie.textTypeCaps},vj:{[dt.textDocument]:ie.textTypeVerticalJustify}}},bm={required:{},known:{}},xm={required:{x:{[ft.keyframe]:We.xAxisValue,[Qt.keyframeList]:We.xAxisValue,[Qt.keyframeValue]:We.xAxisValue,[ft.positionKeyframe]:We.xAxisValue,[Qt.positionKeyframeList]:We.xAxisValue,[ft.keyframeBezierHandle]:We.xAxisValue},y:{[ft.keyframe]:We.yAxisValue,[Qt.keyframeList]:We.yAxisValue,[Qt.keyframeValue]:We.yAxisValue,[ft.positionKeyframe]:We.yAxisValue,[Qt.positionKeyframeList]:We.yAxisValue,[ft.keyframeBezierHandle]:We.yAxisValue},t:{[dt.textSelector]:We.expressible}},known:{rn:{[dt.textSelector]:We.randomize},ddd:{[ft.animation]:We.threedimensional,...Xe(Qt.composition,We.threedimensional)},ao:{[ft.layerPrecomposition]:We.autoOrient,[ft.layerShape]:We.autoOrient,[ft.layerSolidColor]:We.autoOrient,[ft.layerImage]:We.autoOrient,[ft.layerNull]:We.autoOrient,[ft.layerText]:We.autoOrient},a:{[ft.animatedValue]:We.animated,[ft.animatedValueStatic]:We.animated,[ft.animatedShape]:We.animated,[ft.animatedShapeStatic]:We.animated,[ft.animatedPosition]:We.animated,[ft.animatedPositionStatic]:We.animated,[ft.animatedColor]:We.animated,[ft.animatedColorStatic]:We.animated,[ft.animatedMultidimensional]:We.animated,[ft.animatedMultidimensionalStatic]:We.animated},e:{[ft.assetImage]:We.embedded,[ft.assetDataSource]:We.embedded},en:{...Xe(Qt.effectList,We.enabled)},xt:{[ft.assetPrecomposition]:We.extraComposition},h:{[ft.keyframe]:We.hold,[Qt.keyframeList]:We.hold,[Qt.keyframeValue]:We.hold,[ft.positionKeyframe]:We.hold,[Qt.positionKeyframeList]:We.hold,[ft.keyframeBezierHandle]:We.hold,[ft.shapeKeyframe]:We.hold}}},Pm={required:{s:{[ft.splitVector]:Di.splitEnabled}},known:{c:{[ft.bezier]:Di.closed},inv:{[ft.mask]:Di.inverted},hd:{...Xe(Qt.composition,Di.hidden),...Xe(Qt.shapeList,Di.hidden)},cp:{[ft.layerPrecomposition]:Di.collapseTransform,[ft.layerShape]:Di.collapseTransform,[ft.layerSolidColor]:Di.collapseTransform,[ft.layerImage]:Di.collapseTransform,[ft.layerNull]:Di.collapseTransform,[ft.layerText]:Di.collapseTransform},hasMask:{[ft.layerPrecomposition]:Di.hasMask,[ft.layerShape]:Di.hasMask,[ft.layerSolidColor]:Di.hasMask,[ft.layerImage]:Di.hasMask,[ft.layerNull]:Di.hasMask,[ft.layerText]:Di.hasMask},mb:{[ft.layerPrecomposition]:Di.motionBlurEnabled,[ft.layerShape]:Di.motionBlurEnabled,[ft.layerSolidColor]:Di.motionBlurEnabled,[ft.layerImage]:Di.motionBlurEnabled,[ft.layerNull]:Di.motionBlurEnabled,[ft.layerText]:Di.motionBlurEnabled},of:{[dt.textDocument]:Di.strokeOverFill}}},_m={required:{assets:{[ft.animation]:Qt.assets},layers:{[ft.animation]:Qt.composition,[ft.assetPrecomposition]:Qt.composition},shapes:{[ft.layerShape]:Qt.shapeList,[ft.characterShapes]:Qt.shapeList},ef:{[ft.effect]:Qt.effectParameters,...Xe(Qt.effectList,Qt.effectParameters)},i:{[ft.bezier]:Qt.inTangents},o:{[ft.bezier]:Qt.outTangents},v:{[ft.bezier]:Qt.vertices},k:{[dt.textAnimatedDocument]:Qt.textDocumentKeyframes,[ft.animatedValue]:Qt.keyframeList,[ft.animatedValueStatic]:Qt.staticValues,[ft.animatedMultidimensional]:Qt.keyframeList,[ft.animatedMultidimensionalStatic]:Qt.staticValues,[ft.animatedPosition]:Qt.positionKeyframeList,[ft.animatedPositionStatic]:Qt.staticValues,[ft.animatedColor]:Qt.keyframeList,[ft.animatedShape]:Qt.shapeKeyframeList,[ft.animatedColorStatic]:Qt.colorRgba},a:{[dt.textAnimatorData]:Qt.textRanges},x:{[ft.keyframeBezierHandle]:Qt.xAxis},y:{[ft.keyframeBezierHandle]:Qt.yAxis},s:{[ft.shapeKeyframe]:Qt.shapeKeyframeStart},fc:{[dt.textDocument]:Qt.documentFillColor}},known:{k:{[dt.metadata]:Qt.keywords},comps:{[ft.animation]:Qt.extraCompositions},chars:{[ft.animation]:Qt.textCharacters},markers:{[ft.animation]:Qt.markers},masksProperties:{[ft.layerPrecomposition]:Qt.masksProperties,[ft.layerShape]:Qt.masksProperties,[ft.layerSolidColor]:Qt.masksProperties,[ft.layerImage]:Qt.masksProperties,[ft.layerNull]:Qt.masksProperties,[ft.layerText]:Qt.masksProperties},ef:{[ft.layerPrecomposition]:Qt.effectList,[ft.layerShape]:Qt.effectList,[ft.layerSolidColor]:Qt.effectList,[ft.layerImage]:Qt.effectList,[ft.layerNull]:Qt.effectList,[ft.layerText]:Qt.effectList},sy:{[ft.layerPrecomposition]:Qt.layerStyle,[ft.layerShape]:Qt.layerStyle,[ft.layerSolidColor]:Qt.layerStyle,[ft.layerImage]:Qt.layerStyle,[ft.layerNull]:Qt.layerStyle,[ft.layerText]:Qt.layerStyle},d:{[ft.shapeGradientStroke]:Qt.strokeDashList,[ft.shapeStroke]:Qt.strokeDashList},it:{[ft.shapeGroup]:Qt.shapeList},s:{[ft.keyframe]:Qt.keyframeValue,[Qt.keyframeList]:Qt.keyframeValue,[ft.positionKeyframe]:Qt.keyframeValue,[Qt.positionKeyframeList]:Qt.keyframeValue,[ft.keyframeBezierHandle]:Qt.keyframeValue},e:{[ft.keyframe]:Qt.keyframeEndValue,[Qt.keyframeList]:Qt.keyframeEndValue,[Qt.keyframeValue]:Qt.keyframeEndValue,[ft.positionKeyframe]:Qt.keyframeEndValue,[Qt.positionKeyframeList]:Qt.keyframeEndValue,[ft.keyframeBezierHandle]:Qt.keyframeEndValue,[ft.shapeKeyframe]:Qt.keyframeEndValue},to:{[ft.positionKeyframe]:Qt.valueOutTangent},ti:{[ft.positionKeyframe]:Qt.valueInTangent},sz:{[dt.textDocument]:Qt.wrapSize},sc:{[dt.textDocument]:Qt.documentStrokeColor},ps:{[dt.textDocument]:Qt.wrapPosition},list:{[dt.textFonts]:Qt.textFontList}}},Sm={required:{r:{[dt.layerTransform]:dt.rotationClockwise,[ft.shapeTransform]:dt.rotationClockwise,[dt.transformRepeater]:dt.rotationClockwise,[dt.textStyle]:dt.rotationClockwise,[ft.shapePolygon]:dt.polygonRotationClockwise,[ft.shapeStar]:dt.polygonRotationClockwise,[ft.shapeRectangle]:dt.rounded,[ft.shapeRoundedCorners]:dt.radius},au:{[ft.layerAudio]:dt.layerAudioSettings},t:{[ft.layerText]:dt.textAnimatorData},pe:{[ft.layerCamera]:dt.perspective},ks:{[ft.layerPrecomposition]:dt.layerTransform,[ft.layerShape]:dt.layerTransform,[ft.layerSolidColor]:dt.layerTransform,[ft.layerImage]:dt.layerTransform,[ft.layerNull]:dt.layerTransform,[ft.layerText]:dt.layerTransform,[ft.layerCamera]:dt.layerTransform,[ft.shapePath]:dt.animatedShapeProp},p:{[ft.shapeEllipse]:dt.animatedPositionProp,[ft.shapePolygon]:dt.animatedPositionProp,[ft.shapeStar]:dt.animatedPositionProp,[ft.shapeRectangle]:dt.animatedPositionProp,[dt.textAnimatorData]:dt.textFollowPath},s:{[ft.shapeEllipse]:dt.shapeEllipseSize,[ft.shapeGradientFill]:dt.startPoint,[ft.shapeGradientStroke]:dt.startPoint,[ft.shapeRectangle]:dt.size,[ft.shapeTrim]:dt.shapeTrimStart,[ft.textDocumentKeyframe]:dt.textDocument,[ft.layerStyleStroke]:dt.blurSize,[ft.layerStyleDropShadow]:dt.blurSize,[ft.layerStyleInnerShadow]:dt.blurSize,[ft.layerStyleBevelEmboss]:dt.blurSize,[ft.layerStyleSatin]:dt.blurSize},o:{[ft.shapeFill]:dt.opacity,[ft.shapeGradientFill]:dt.opacity,[ft.shapeTrim]:dt.offset,[ft.shapeGradientStroke]:dt.strokeOpacity,[ft.shapeStroke]:dt.strokeOpacity},c:{[ft.shapeFill]:dt.shapeFillColor,[ft.shapeRepeater]:dt.copies,[ft.shapeStroke]:dt.shapeStrokeColor},e:{[ft.shapeGradientFill]:dt.endPoint,[ft.shapeGradientStroke]:dt.endPoint,[ft.shapeTrim]:dt.shapeTrimEnd},g:{[ft.shapeGradientFill]:dt.animatedGradientColors,[ft.shapeGradientStroke]:dt.animatedGradientColors},or:{[ft.shapePolygon]:dt.outerRadius,[ft.shapeStar]:dt.outerRadius},os:{[ft.shapePolygon]:dt.outerRoundness,[ft.shapeStar]:dt.outerRoundness},pt:{[ft.shapePolygon]:dt.points,[ft.shapeStar]:dt.points},ir:{[ft.shapeStar]:dt.innerRadius},is:{[ft.shapeStar]:dt.innerRoundness},tr:{[ft.shapeRepeater]:dt.transformRepeater},data:{[Qt.textCharacters]:dt.textCharacterData},a:{[dt.textSelector]:dt.maxAmount},d:{[dt.textAnimatorData]:dt.textAnimatedDocument},k:{[ft.animatedShapeStatic]:dt.animatedShapeBezier,[dt.animatedGradientColors]:dt.animatedMultidimensionalProp},lv:{[dt.layerAudioSettings]:dt.level},x:{[ft.splitVector]:dt.splitX},y:{[ft.splitVector]:dt.splitY},z:{[ft.splitVector]:dt.splitZ},lc:{[ft.layerStyleDropShadow]:dt.layerConceal},m:{[dt.textAnimatorData]:dt.textAlignmentOptions},w:{[ft.shapeGradientStroke]:dt.strokeWidth,[ft.shapeStroke]:dt.strokeWidth}},known:{xe:{[dt.textSelector]:dt.maxEase},ne:{[dt.textSelector]:dt.minEase},meta:{[ft.animation]:dt.metadata},[dt.metadata]:{[ft.animation]:dt.userMetadata},mb:{[ft.animation]:dt.motionBlur},fonts:{[ft.animation]:dt.textFonts},v:{...Xe(Qt.effectParameters,ie.value),[ft.strokeDashDefault]:dt.strokeLength,[ft.strokeDashGap]:dt.strokeLength,[ft.strokeDashOffset]:dt.strokeLength,[ft.effectValueAngle]:dt.effectValueAngleValue,[ft.effectValueCheckbox]:dt.effectValueCheckboxValue,[ft.effectValueColor]:dt.effectValueColorValue,[ft.effectValueDropdown]:dt.effectValueDropdownValue,[ft.effectValueIgnored]:dt.effectValueIgnoredValue,[ft.effectValueLayer]:dt.effectValueLayerValue,[ft.effectValuePoint]:dt.effectValuePointValue,[ft.effectValueSlider]:dt.effectValueSliderValue},rx:{[dt.layerTransform]:dt.rotationX,[ft.shapeTransform]:dt.rotationX,[dt.transformRepeater]:dt.rotationX,[dt.textStyle]:dt.rotationX},ry:{[dt.layerTransform]:dt.rotationY,[ft.shapeTransform]:dt.rotationY,[dt.transformRepeater]:dt.rotationY,[dt.textStyle]:dt.rotationY},rz:{[dt.layerTransform]:dt.rotationZ,[ft.shapeTransform]:dt.rotationZ,[dt.transformRepeater]:dt.rotationZ,[dt.textStyle]:dt.rotationZ},or:{[dt.layerTransform]:dt.orientation,[ft.shapeTransform]:dt.orientation,[dt.transformRepeater]:dt.orientation,[dt.textStyle]:dt.orientation},a:{[dt.layerTransform]:dt.anchorPoint,[dt.transformRepeater]:dt.anchorPoint,[ft.shapeTransform]:dt.anchorPoint,[dt.textStyle]:dt.anchorPoint,[ft.shapeGradientFill]:dt.highlightAngle,[ft.shapeGradientStroke]:dt.highlightAngle,[ft.shapePuckerBloat]:dt.amount,[ft.shapeTwist]:dt.angle,[ft.shapeOffsetPath]:dt.amount,[ft.textRange]:dt.textStyle,[dt.textFollowPath]:dt.forceAlignment,[dt.textSelector]:dt.maxAmount,[dt.textAlignmentOptions]:dt.textGroupAlignment,[ft.layerStyleDropShadow]:dt.angle,[ft.layerStyleInnerShadow]:dt.angle,[ft.layerStyleBevelEmboss]:dt.angle,[ft.layerStyleSatin]:dt.angle,[ft.layerStyleGradientOverlay]:dt.angle},s:{[dt.layerTransform]:dt.scale,[ft.shapeTransform]:dt.scale,[dt.transformRepeater]:dt.scale,[dt.textStyle]:dt.scale,[ft.shapeZigZags]:dt.shapeZigZagSize,[ft.textRange]:dt.textSelector,[ft.layerStyleStroke]:dt.size,[ft.layerStyleGradientOverlay]:dt.gradientOverlayScale,[dt.textSelector]:dt.textSelectorStart},o:{[dt.layerTransform]:dt.transformOpacity,[ft.shapeTransform]:dt.transformOpacity,[dt.transformRepeater]:dt.transformOpacity,[dt.textStyle]:dt.transformOpacity,[dt.textSelector]:dt.offset,[ft.shapeFill]:dt.opacity,[ft.shapeGradientFill]:dt.opacity,[ft.shapeGradientStroke]:dt.opacity,[ft.shapeStroke]:dt.opacity,[ft.mask]:dt.maskOpacity,[ft.shapeGradientFill]:dt.opacity,[ft.shapeRepeater]:dt.offset,[ft.keyframe]:dt.outTangent,[Qt.keyframeList]:dt.outTangent,[Qt.keyframeValue]:dt.outTangent,[ft.positionKeyframe]:dt.outTangent,[Qt.positionKeyframeList]:dt.outTangent,[ft.keyframeBezierHandle]:dt.outTangent,[ft.shapeKeyframe]:dt.outTangent,[ft.layerStyleDropShadow]:dt.opacity,[ft.layerStyleInnerShadow]:dt.opacity,[ft.layerStyleBevelEmboss]:dt.opacity,[ft.layerStyleSatin]:dt.opacity,[ft.layerStyleColorOverlay]:dt.opacity,[ft.layerStyleGradientOverlay]:dt.opacity},i:{[ft.keyframe]:dt.inTangent,[Qt.keyframeList]:dt.inTangent,[Qt.keyframeValue]:dt.inTangent,[ft.positionKeyframe]:dt.inTangent,[Qt.positionKeyframeList]:dt.inTangent,[ft.keyframeBezierHandle]:dt.inTangent,[ft.shapeKeyframe]:dt.inTangent},sk:{[dt.layerTransform]:dt.skew,[ft.shapeTransform]:dt.skew,[dt.transformRepeater]:dt.skew,[dt.textStyle]:dt.skew},sa:{[dt.layerTransform]:dt.skewAxis,[ft.shapeTransform]:dt.skewAxis,[dt.transformRepeater]:dt.skewAxis,[dt.textStyle]:dt.skewAxis},p:{[dt.layerTransform]:dt.translation,[ft.shapeTransform]:dt.translation,[dt.transformRepeater]:dt.translation,[dt.textStyle]:dt.translation,[dt.textFollowPath]:dt.perpendicularToPath},pt:{[ft.mask]:dt.maskVertices,[ft.shapeZigZags]:dt.points},x:{[ft.mask]:dt.dilate},tm:{[ft.layerPrecomposition]:dt.timeRemapping},h:{[ft.shapeGradientFill]:dt.highlightLength,[ft.shapeGradientStroke]:dt.highlightLength},r:{[ft.shapeGradientFill]:dt.fillRule,[ft.shapeZigZags]:dt.roundness,[dt.textFollowPath]:dt.reversePath,[ft.layerStyleOuterGlow]:dt.range},ml2:{[ft.shapeGradientStroke]:dt.miterLimitAlternative,[ft.shapeStroke]:dt.miterLimitAlternative},w:{[ft.shapeGradientStroke]:dt.strokeWidth,[ft.shapeStroke]:dt.strokeWidth},c:{[ft.shapeTrim]:dt.center,[ft.layerStyleStroke]:dt.layerStyleColor,[ft.layerStyleDropShadow]:dt.layerStyleColor,[ft.layerStyleInnerShadow]:dt.layerStyleColor,[ft.layerStyleBevelEmboss]:dt.layerStyleColor,[ft.layerStyleOuterGlow]:dt.layerStyleColor},ml:{[ft.shapeOffsetPath]:dt.miterLimit},so:{[ft.layerStyleBevelEmboss]:dt.shadowOpacity,[ft.layerStyleColorOverlay]:dt.opacity,[dt.transformRepeater]:dt.startOpacity},eo:{[dt.transformRepeater]:dt.startOpacity},ks:{[ft.characterPrecomp]:dt.layerTransform,[ft.shapePath]:dt.shape},f:{[dt.textFollowPath]:dt.firstMargin},l:{[dt.textFollowPath]:dt.lastMargin},sw:{[dt.textStyle]:dt.strokeWidth,[dt.textDocument]:dt.strokeWidth},sc:{[dt.textStyle]:dt.strokeColor,[dt.textDocument]:dt.strokeColor,[ft.layerStyleBevelEmboss]:dt.shadowColor},sh:{[dt.textStyle]:dt.strokeHue},ss:{[dt.textStyle]:dt.strokeSaturation},sb:{[dt.textStyle]:dt.strokeBrightness},fc:{[dt.textStyle]:dt.fillColor},fh:{[dt.textStyle]:dt.fillHue},fs:{[dt.textStyle]:dt.fillSaturation},fo:{[dt.textStyle]:dt.fillOpacity},fb:{[dt.textStyle]:dt.fillBrightness},t:{[dt.textStyle]:dt.letterSpacing},bl:{[dt.textStyle]:dt.blur},ls:{[dt.textStyle]:dt.lineSpacing},sm:{[dt.textSelector]:dt.selectorSmoothness,[ft.layerStyleBevelEmboss]:dt.shadowMode},e:{[dt.textSelector]:dt.textSelectorEnd},gf:{[ft.layerStyleGradientOverlay]:dt.animatedGradientColors},ch:{[ft.layerStyleDropShadow]:dt.chokeSpread,[ft.layerStyleInnerShadow]:dt.chokeSpread,[ft.layerStyleBevelEmboss]:dt.chokeSpread,[ft.layerStyleOuterGlow]:dt.chokeSpread},bm:{[ft.layerStyleDropShadow]:dt.layerStyleBlendMode,[ft.layerStyleInnerShadow]:dt.layerStyleBlendMode,[ft.layerStyleBevelEmboss]:dt.layerStyleBlendMode,[ft.layerStyleSatin]:dt.layerStyleBlendMode,[ft.layerStyleColorOverlay]:dt.layerStyleBlendMode,[ft.layerStyleGradientOverlay]:dt.layerStyleBlendMode},no:{[ft.layerStyleDropShadow]:dt.noise,[ft.layerStyleInnerShadow]:dt.noise,[ft.layerStyleOuterGlow]:dt.noise,[ft.layerStyleInnerGlow]:dt.noise},d:{[ft.layerStyleDropShadow]:dt.distance,[ft.layerStyleInnerShadow]:dt.distance,[ft.layerStyleBevelEmboss]:dt.distance,[ft.layerStyleOuterGlow]:dt.distance},j:{[ft.layerStyleOuterGlow]:dt.jitter},sr:{[ft.layerStyleInnerGlow]:dt.source,[ft.layerStyleBevelEmboss]:dt.strength},bs:{[ft.layerStyleBevelEmboss]:dt.bevelStyle},bt:{[ft.layerStyleBevelEmboss]:dt.technique},sf:{[ft.layerStyleBevelEmboss]:dt.soften},ga:{[ft.layerStyleBevelEmboss]:dt.globalAngle},ll:{[ft.layerStyleBevelEmboss]:dt.altitude},hm:{[ft.layerStyleBevelEmboss]:dt.highlightMode},hc:{[ft.layerStyleBevelEmboss]:dt.highlightColor},ho:{[ft.layerStyleBevelEmboss]:dt.highlightOpacity},in:{[ft.layerStyleSatin]:dt.invert},gs:{[ft.layerStyleGradientOverlay]:dt.smoothness},re:{[ft.layerStyleGradientOverlay]:dt.reverse},al:{[ft.layerStyleGradientOverlay]:dt.align},of:{[ft.layerStyleGradientOverlay]:dt.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]||An;return {type:r,title:a,parentTitle:e,required:!1}},km=(t,e)=>sa(t,e,_m,"collection"),Em=(t,e)=>sa(t,e,Sm,"element"),Cm=(t,e,i)=>{switch(e.value.type){case"String":let r=sa(t,i,dm,"attribute");return r.title===An?sa(t,i,ym,"constant"):r;case"Boolean":return sa(t,i,Pm,"attribute");case"Number":let s=sa(t,i,gm,"attribute");if(s.title===An){let a=sa(t,i,vm,"constant");return a.title===An?sa(t,i,xm,"integer-boolean"):a}else return s;case"Null":return sa(t,i,bm,"attribute");default:return {type:"missing",title:An,parentTitle:i,required:!1}}},wm=(t,e,i)=>{switch(e.value.type){case"Array":return km(t,i);case"Object":return Em(t,i);default:return Cm(t,e,i)}},Am=class{constructor(t=1/0){this._capacity=t,op(this,"_keys",[]),op(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}},Tm={position:!0,valueType:!0,messages:{warning:!1}},lp=(t,e,i)=>{i.messages.warning&&t.message(e);},Mm=(t,e)=>!e.valueType||t.type==="Array"||t.type==="Object"||t.type==="Document"?{}:{valueType:t.type.toLowerCase()},yo=(t,e)=>e.position?{position:{...t.loc}}:{},pp=(t,e)=>{let i=yo(t,e),r=Mm(t,e);return em(t.value,{...i,...r})},Dm=(t,e)=>{let i=t.name.value;if(e.position){let r=yo(t.name,e);return im(i,{...r})}else return i},Fm=(t,e,i)=>{let r=Dm(t,i),s=typeof r=="string"?r:r.value,a={...yo(t,i)},{title:n}=wm(s,t,e);switch(t.value.type){case"Array":return am(r,n,[],{...a});case"Object":return sm(r,n,[],{...a});default:return rm(r,n,[],{...a})}},wp=(t,e)=>e.loc.end.column===t.loc.end.column;Im=t=>{let e=[];return t.elements.forEach(i=>{nn(i,"Object")&&i.members.forEach(r=>e.push(r));}),e},Lm=(t,e,i,r,s)=>{let{key:a,parentTitle:n,type:l}=i;switch(l){case"Constant":if(!nn(t,"String")&&!nn(t,"Number"))break;let{defaultValue:o,prefix:p,values:g}=n,v=g[o];if(!v)throw new Error(`[${e}] '${o}' has to present in "dependent.parentTitle.values"`);let f=t.value,_=g[f];if(!_){let C=`[${e}] '${f}' is missing in "dependent.parentTitle.values"`;lp(r,C,s);}let m=typeof _>"u"?v:_;return p&&p.length>0?`${p}-${m}`:m;case"Array":if(!nn(t,"Array"))break;let d=i.childType;if(!(d&&t.elements.find(C=>C.type===d)))break;return n;default:if(l!==t.type){let C=`${e}'s '${a}' type is ${t.type} but has to be ${l}`;lp(r,C,s);break}return n}},Ap=(t,e,i,r,s)=>{let a=e.reduce((n,l)=>{let o=l.name.value;return n[o]=l.value,n},{});for(let n of i){let{key:l}=n,o=a[l];if(!o)continue;let p=Lm(o,t,n,r,s);if(p)return p}},fp=(t,e,i,r)=>{let s=Cp(t,e),{defaultTitle:a,dependents:n}=s;return n&&Ap(e,t.members,n,i,r)||a},cp=(t,e,i,r)=>{let s=Cp(t,e),{defaultTitle:a,dependents:n}=s;if(!n)return a;let l=Im(t);return Ap(e,l,n,i,r)||a},Vm=(t,e,i,r,s)=>{let a=yo(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(Fm(t,n.title,s));break;case"Object":switch(e.type){case"Document":i.push(nm([],{...a}));break;case"Member":let l=i.peek();Lr(l,"element",r);let o=fp(t,l.title,r,s);i.push(ap(o,[],{...a}));break;case"Array":let p=i.peek();Lr(p,"array",r);let g=fp(t,p.title,r,s);i.push(ap(g,[],{...a}));break}break;case"Array":switch(e.type){case"Member":let l=i.peek();Lr(l,"collection",r);let o=cp(t,l.title,r,s);i.push(np(o,[],{...a}));break;case"Array":let p=i.peek();Lr(p,"array",r);let g=cp(t,p.title,r,s);i.push(np(g,[],{...a}));break}break;default:switch(e.type){case"Member":wp(t,e)&&i.push(pp(t,s));break;case"Array":i.push(pp(t,s));break}break}},Rm=(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 l=i.peek();switch(l.type){case"object":break;case"root":break;default:r.fail("ParentNode's type has to be 'object' or 'root'");}l.children.push(n);break;case"Object":switch(e.type){case"Document":break;case"Member":let o=i.pop();Lr(o,"object",r);let p=i.peek();Lr(p,"element",r),o.title===p.title&&(o.title=`${p.title}-children`),p.children=[o];break;case"Array":let g=i.pop();Lr(g,"object",r);let v=i.peek();Lr(v,"array",r),v.children.push(g);break}break;case"Array":switch(e.type){case"Member":let o=i.pop();Lr(o,"array",r);let p=i.peek();Lr(p,"collection",r),o.title===p.title&&(o.title=`${p.title}-children`),p.children=[o];break;case"Array":let g=i.pop();Lr(g,"array",r);let v=i.peek();Lr(v,"array",r),v.children.push(g);break}break;default:switch(e.type){case"Member":if(wp(t,e)){let g=i.pop();Lr(g,"primitive",r);let v=i.peek();Lr(v,"attribute",r),v.children=[g];}break;case"Array":let o=i.pop();Lr(o,"primitive",r);let p=i.peek();Lr(p,"array",r),p.children.push(o);break}break}};Bm=function(t={}){let e=this.data("settings")||{parse:{}};e.parse=(0, Qu.default)(e.parse,t),Object.assign(this,{Parser:(i,r)=>Om(i,r,e)});},zm=Bm;Nm={indent:0};jm=function(t={}){let e=this.data("settings")||{stringify:{}};e.stringify={...e.stringify,...t},Object.assign(this,{Compiler:(i,r)=>Gm(i,r,e)});},qm=jm;Hm=Fs(_p(),1),mp=Fs(Ku(),1);Um=Fs(_p(),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=Jm(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:Xm,dirname:Ym,extname:Zm,join:Km,sep:"/"};ed={cwd:id};xh=["history","path","basename","stem","extname","dirname"],ad=class{constructor(t){let e;t?typeof t=="string"||nd(t)?e={value:t}:Ah(t)?e={path:t}:e=t:e={},this.data={},this.messages=[],this.history=[],this.cwd=ed.cwd(),this.value,this.stored,this.result,this.map;let i=-1;for(;++ik0});function qd(t){let e=Th(Nd,[]);return zd(t).walkRules(i=>{let r=Th(Gd,{selectors:[],selector:""},[]);r.selectors=[...i.selectors],r.selector=i.selector,i.walkDecls(s=>{let a=Th(jd,{important:s.important,property:s.prop,value:s.value});r.children.push(a);}),e.children.push(r);}),e}function df(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 l,o,p=r[this.toHex()];if(p)return p;if(n?.closest){var g=this.toRgb(),v=1/0,f="black";if(!a.length)for(var _ in i)a[_]=new t(i[_]).toRgb();for(var m in i){var d=(l=g,o=a[m],Math.pow(l.r-o.r,2)+Math.pow(l.g-o.g,2)+Math.pow(l.b-o.b,2));d(i.push({value:a,offset:n}),"\uE000".repeat(a.length))),t=t.replace(r0,(a,n,l,o)=>(i.push({value:a,offset:o}),`${n}${"\uE001".repeat(l.length)}${n}`));{let a=0,n;for(;(n=t.indexOf("(",a))>-1;){let l=e0(t,n);i.push({value:l,offset:n}),t=`${t.substring(0,n)}(${"\xB6".repeat(l.length-2)})${t.substring(n+l.length)}`,a=n+l.length;}}let r=i0(t,e),s=new Set;for(let a of i.reverse())for(let n of r){let{offset:l,value:o}=a;if(!(n.pos[0]<=l&&l+o.length<=n.pos[1]))continue;let{content:p}=n,g=l-n.pos[0];n.content=p.slice(0,g)+o+p.slice(g+o.length),n.content!==p&&s.add(n);}for(let a of s){let n=t0(a.type);if(!n)throw new Error(`Unknown token type: ${a.type}`);n.lastIndex=0;let l=n.exec(a.content);if(!l)throw new Error(`Unable to parse content for ${a.type}: ${a.content}`);Object.assign(a,l.groups);}return r}function Dn(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:Dn(s),right:Dn(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*In(t,e){switch(t.type){case"list":for(let i of t.list)yield*In(i,t);break;case"complex":yield*In(t.left,t),yield*In(t.right,t);break;case"compound":yield*t.list.map(i=>[i,t]);break;default:yield [t,e];}}function n0(t,e,i){if(t)for(let[r,s]of In(t,i))e(r,s);}function yf(t,{recursive:e=!0,list:i=!0}={}){let r=a0(t);if(!r)return;let s=Dn(r,{list:i});if(!e)return s;for(let[a]of In(s)){if(a.type!=="pseudo-class"||!a.argument||!Kd.has(a.name))continue;let n=a.argument,l=Qd[a.name];if(l){let o=l.exec(n);if(!o)continue;Object.assign(a,o.groups),n=o.groups.subtree;}n&&Object.assign(a,{subtree:yf(n,{recursive:!0,list:!0})});}return s}function h0(t){let e=[],i=-1;for(;++i{ys();qp=me((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;}),Hp=me(()=>{}),Oh=me((t,e)=>{var i=qp(),r=Hp(),s=class extends Error{constructor(a,n,l,o,p,g){super(a),this.name="CssSyntaxError",this.reason=a,p&&(this.file=p),o&&(this.source=o),g&&(this.plugin=g),typeof n<"u"&&typeof l<"u"&&(typeof n=="number"?(this.line=n,this.column=l):(this.line=n.line,this.column=n.column,this.endLine=l.line,this.endColumn=l.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s);}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(a){if(!this.source)return "";let n=this.source;a==null&&(a=i.isColorSupported),r&&a&&(n=r(n));let l=n.split(/\r?\n/),o=Math.max(this.line-3,0),p=Math.min(this.line+2,l.length),g=String(p).length,v,f;if(a){let{bold:_,red:m,gray:d}=i.createColors(!0);v=C=>_(m(C)),f=C=>d(C);}else v=f=_=>_;return l.slice(o,p).map((_,m)=>{let d=o+1+m,C=" "+(" "+d).slice(-g)+" | ";if(d===this.line){let u=f(C.replace(/\d/g," "))+_.slice(0,this.column-1).replace(/[^\t]/g," ");return v(">")+f(C)+_+` + `+u+v("^")}return " "+f(C)+_}).join(` +`)}toString(){let a=this.showSourceCode();return a&&(a=` + +`+a+` +`),this.name+": "+this.message+a}};e.exports=s,s.default=s;}),Bh=me((t,e)=>{e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my");}),$p=me((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"),l=this.raw(a,"right","commentRight");this.builder("/*"+n+a.text+l+"*/",a);}decl(a,n){let l=this.raw(a,"between","colon"),o=a.prop+l+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 l="@"+a.name,o=a.params?this.rawValue(a,"params"):"";if(typeof a.raws.afterName<"u"?l+=a.raws.afterName:o&&(l+=" "),a.nodes)this.block(a,l+o);else {let p=(a.raws.between||"")+(n?";":"");this.builder(l+o+p,a);}}body(a){let n=a.nodes.length-1;for(;n>0&&a.nodes[n].type==="comment";)n-=1;let l=this.raw(a,"semicolon");for(let o=0;o{if(o=f.raws[n],typeof o<"u")return !1});}return typeof o>"u"&&(o=i[l]),g.rawCache[l]=o,o}rawSemicolon(a){let n;return a.walk(l=>{if(l.nodes&&l.nodes.length&&l.last.type==="decl"&&(n=l.raws.semicolon,typeof n<"u"))return !1}),n}rawEmptyBody(a){let n;return a.walk(l=>{if(l.nodes&&l.nodes.length===0&&(n=l.raws.after,typeof n<"u"))return !1}),n}rawIndent(a){if(a.raws.indent)return a.raws.indent;let n;return a.walk(l=>{let o=l.parent;if(o&&o!==a&&o.parent&&o.parent===a&&typeof l.raws.before<"u"){let p=l.raws.before.split(` +`);return n=p[p.length-1],n=n.replace(/\S/g,""),!1}}),n}rawBeforeComment(a,n){let l;return a.walkComments(o=>{if(typeof o.raws.before<"u")return l=o.raws.before,l.includes(` +`)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(n,null,"beforeDecl"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeDecl(a,n){let l;return a.walkDecls(o=>{if(typeof o.raws.before<"u")return l=o.raws.before,l.includes(` +`)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(n,null,"beforeRule"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeRule(a){let n;return a.walk(l=>{if(l.nodes&&(l.parent!==a||a.first!==l)&&typeof l.raws.before<"u")return n=l.raws.before,n.includes(` +`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeClose(a){let n;return a.walk(l=>{if(l.nodes&&l.nodes.length>0&&typeof l.raws.after<"u")return n=l.raws.after,n.includes(` +`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(a){let n;return a.walk(l=>{if(l.type!=="decl"&&(n=l.raws.between,typeof n<"u"))return !1}),n}rawColon(a){let n;return a.walkDecls(l=>{if(typeof l.raws.between<"u")return n=l.raws.between.replace(/[^\s:]/g,""),!1}),n}beforeAfter(a,n){let l;a.type==="decl"?l=this.raw(a,null,"beforeDecl"):a.type==="comment"?l=this.raw(a,null,"beforeComment"):n==="before"?l=this.raw(a,null,"beforeRule"):l=this.raw(a,null,"beforeClose");let o=a.parent,p=0;for(;o&&o.type!=="root";)p+=1,o=o.parent;if(l.includes(` +`)){let g=this.raw(a,null,"indent");if(g.length)for(let v=0;v{var i=$p();function r(s,a){new i(a).stringify(s);}e.exports=r,r.default=r;}),_o=me((t,e)=>{var{isClean:i,my:r}=Bh(),s=Oh(),a=$p(),n=Po();function l(p,g){let v=new p.constructor;for(let f in p){if(!Object.prototype.hasOwnProperty.call(p,f)||f==="proxyCache")continue;let _=p[f],m=typeof _;f==="parent"&&m==="object"?g&&(v[f]=g):f==="source"?v[f]=_:Array.isArray(_)?v[f]=_.map(d=>l(d,v)):(m==="object"&&_!==null&&(_=l(_)),v[f]=_);}return v}var o=class{constructor(p={}){this.raws={},this[i]=!1,this[r]=!0;for(let g in p)if(g==="nodes"){this.nodes=[];for(let v of p[g])typeof v.clone=="function"?this.append(v.clone()):this.append(v);}else this[g]=p[g];}error(p,g={}){if(this.source){let{start:v,end:f}=this.rangeBy(g);return this.source.input.error(p,{line:v.line,column:v.column},{line:f.line,column:f.column},g)}return new s(p)}warn(p,g,v){let f={node:this};for(let _ in v)f[_]=v[_];return p.warn(g,f)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(p=n){p.stringify&&(p=p.stringify);let g="";return p(this,v=>{g+=v;}),g}assign(p={}){for(let g in p)this[g]=p[g];return this}clone(p={}){let g=l(this);for(let v in p)g[v]=p[v];return g}cloneBefore(p={}){let g=this.clone(p);return this.parent.insertBefore(this,g),g}cloneAfter(p={}){let g=this.clone(p);return this.parent.insertAfter(this,g),g}replaceWith(...p){if(this.parent){let g=this,v=!1;for(let f of p)f===this?v=!0:v?(this.parent.insertAfter(g,f),g=f):this.parent.insertBefore(g,f);v||this.remove();}return this}next(){if(!this.parent)return;let p=this.parent.index(this);return this.parent.nodes[p+1]}prev(){if(!this.parent)return;let p=this.parent.index(this);return this.parent.nodes[p-1]}before(p){return this.parent.insertBefore(this,p),this}after(p){return this.parent.insertAfter(this,p),this}root(){let p=this;for(;p.parent&&p.parent.type!=="document";)p=p.parent;return p}raw(p,g){return new a().raw(this,p,g)}cleanRaws(p){delete this.raws.before,delete this.raws.after,p||delete this.raws.between;}toJSON(p,g){let v={},f=g==null;g=g||new Map;let _=0;for(let m in this){if(!Object.prototype.hasOwnProperty.call(this,m)||m==="parent"||m==="proxyCache")continue;let d=this[m];if(Array.isArray(d))v[m]=d.map(C=>typeof C=="object"&&C.toJSON?C.toJSON(null,g):C);else if(typeof d=="object"&&d.toJSON)v[m]=d.toJSON(null,g);else if(m==="source"){let C=g.get(d.input);C==null&&(C=_,g.set(d.input,_),_++),v[m]={inputId:C,start:d.start,end:d.end};}else v[m]=d;}return f&&(v.inputs=[...g.keys()].map(m=>m.toJSON())),v}positionInside(p){let g=this.toString(),v=this.source.start.column,f=this.source.start.line;for(let _=0;_p.root().toProxy():p[g]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(p){if(p.postcssNode=this,p.stack&&this.source&&/\n\s{4}at /.test(p.stack)){let g=this.source;p.stack=p.stack.replace(/\n\s{4}at /,`$&${g.input.from}:${g.start.line}:${g.start.column}$&`);}return p}markDirty(){if(this[i]){this[i]=!1;let p=this;for(;p=p.parent;)p[i]=!1;}}get proxyOf(){return this}};e.exports=o,o.default=o;}),So=me((t,e)=>{var i=_o(),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;}),Ln=me(()=>{}),Vn=me(()=>{}),zh=me(()=>{}),Wp=me((t,e)=>{var i="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",r=(a,n=21)=>(l=n)=>{let o="",p=l;for(;p--;)o+=a[Math.random()*a.length|0];return o},s=(a=21)=>{let n="",l=a;for(;l--;)n+=i[Math.random()*64|0];return n};e.exports={nanoid:s,customAlphabet:r};}),Up=me(()=>{}),Jp=me((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=Ln(),{existsSync:s,readFileSync:a}=Up(),{dirname:n,join:l}=Vn();function o(g){return Buffer?Buffer.from(g,"base64").toString():window.atob(g)}var p=class{constructor(g,v){if(v.map===!1)return;this.loadAnnotation(g),this.inline=this.startWith(this.annotation,"data:");let f=v.map?v.map.prev:void 0,_=this.loadMap(v.from,f);!this.mapFile&&v.from&&(this.mapFile=v.from),this.mapFile&&(this.root=n(this.mapFile)),_&&(this.text=_);}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}withContent(){return !!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(g,v){return g?g.substr(0,v.length)===v:!1}getAnnotationURL(g){return g.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(g){let v=g.match(/\/\*\s*# sourceMappingURL=/gm);if(!v)return;let f=g.lastIndexOf(v.pop()),_=g.indexOf("*/",f);f>-1&&_>-1&&(this.annotation=this.getAnnotationURL(g.substring(f,_)));}decodeInline(g){let v=/^data:application\/json;charset=utf-?8;base64,/,f=/^data:application\/json;base64,/,_=/^data:application\/json;charset=utf-?8,/,m=/^data:application\/json,/;if(_.test(g)||m.test(g))return decodeURIComponent(g.substr(RegExp.lastMatch.length));if(v.test(g)||f.test(g))return o(g.substr(RegExp.lastMatch.length));let d=g.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+d)}loadFile(g){if(this.root=n(g),s(g))return this.mapFile=g,a(g,"utf-8").toString().trim()}loadMap(g,v){if(v===!1)return !1;if(v){if(typeof v=="string")return v;if(typeof v=="function"){let f=v(g);if(f){let _=this.loadFile(f);if(!_)throw new Error("Unable to load previous source map: "+f.toString());return _}}else {if(v instanceof i)return r.fromSourceMap(v).toString();if(v instanceof r)return v.toString();if(this.isMap(v))return JSON.stringify(v);throw new Error("Unsupported previous source map format: "+v.toString())}}else {if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let f=this.annotation;return g&&(f=l(n(g),f)),this.loadFile(f)}}}isMap(g){return typeof g!="object"?!1:typeof g.mappings=="string"||typeof g._mappings=="string"||Array.isArray(g.sections)}};e.exports=p,p.default=p;}),ko=me((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=Ln(),{fileURLToPath:s,pathToFileURL:a}=zh(),{resolve:n,isAbsolute:l}=Vn(),{nanoid:o}=Wp(),p=Hp(),g=Oh(),v=Jp(),f=Symbol("fromOffsetCache"),_=!!(i&&r),m=!!(n&&l),d=class{constructor(C,u={}){if(C===null||typeof C>"u"||typeof C=="object"&&!C.toString)throw new Error(`PostCSS received ${C} instead of CSS string`);if(this.css=C.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,u.from&&(!m||/^\w+:\/\//.test(u.from)||l(u.from)?this.file=u.from:this.file=n(u.from)),m&&_){let c=new v(this.css,u);if(c.text){this.map=c;let y=c.consumer().file;!this.file&&y&&(this.file=this.mapResolve(y));}}this.file||(this.id=""),this.map&&(this.map.file=this.from);}fromOffset(C){let u,c;if(this[f])c=this[f];else {let P=this.css.split(` +`);c=new Array(P.length);let A=0;for(let F=0,B=P.length;F=u)y=c.length-1;else {let P=c.length-2,A;for(;y>1),C=c[A+1])y=A+1;else {y=A;break}}return {line:y+1,col:C-c[y]+1}}error(C,u,c,y={}){let P,A,F;if(u&&typeof u=="object"){let H=u,nt=c;if(typeof H.offset=="number"){let ct=this.fromOffset(H.offset);u=ct.line,c=ct.col;}else u=H.line,c=H.column;if(typeof nt.offset=="number"){let ct=this.fromOffset(nt.offset);A=ct.line,F=ct.col;}else A=nt.line,F=nt.column;}else if(!c){let H=this.fromOffset(u);u=H.line,c=H.col;}let B=this.origin(u,c,A,F);return B?P=new g(C,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(C,A===void 0?u:{line:u,column:c},A===void 0?c:{line:A,column:F},this.css,this.file,y.plugin),P.input={line:u,column:c,endLine:A,endColumn:F,source:this.css},this.file&&(a&&(P.input.url=a(this.file).toString()),P.input.file=this.file),P}origin(C,u,c,y){if(!this.map)return !1;let P=this.map.consumer(),A=P.originalPositionFor({line:C,column:u});if(!A.source)return !1;let F;typeof c=="number"&&(F=P.originalPositionFor({line:c,column:y}));let B;l(A.source)?B=a(A.source):B=new URL(A.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let H={url:B.toString(),line:A.line,column:A.column,endLine:F&&F.line,endColumn:F&&F.column};if(B.protocol==="file:")if(s)H.file=s(B);else throw new Error("file: protocol is not available in this PostCSS build");let nt=P.sourceContentFor(A.source);return nt&&(H.source=nt),H}mapResolve(C){return /^\w+:\/\//.test(C)?C:n(this.map.consumer().sourceRoot||this.map.root||".",C)}get from(){return this.file||this.id}toJSON(){let C={};for(let u of ["hasBOM","css","file","id"])this[u]!=null&&(C[u]=this[u]);return this.map&&(C.map={...this.map},C.map.consumerCache&&(C.map.consumerCache=void 0)),C}};e.exports=d,d.default=d,p&&p.registerInput&&p.registerInput(d);}),Xp=me((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=Ln(),{dirname:s,resolve:a,relative:n,sep:l}=Vn(),{pathToFileURL:o}=zh(),p=ko(),g=!!(i&&r),v=!!(s&&a&&n&&l),f=class{constructor(_,m,d,C){this.stringify=_,this.mapOpts=d.map||{},this.root=m,this.opts=d,this.css=C,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(_=>{if(_.source&&_.source.input.map){let m=_.source.input.map;this.previousMaps.includes(m)||this.previousMaps.push(m);}});else {let _=new p(this.css,this.opts);_.map&&this.previousMaps.push(_.map);}return this.previousMaps}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let _=this.mapOpts.annotation;return typeof _<"u"&&_!==!0?!1:this.previous().length?this.previous().some(m=>m.inline):!0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(_=>_.withContent()):!0}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let _;for(let m=this.root.nodes.length-1;m>=0;m--)_=this.root.nodes[m],_.type==="comment"&&_.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(m);}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""));}setSourcesContent(){let _={};if(this.root)this.root.walk(m=>{if(m.source){let d=m.source.input.from;if(d&&!_[d]){_[d]=!0;let C=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(C,m.source.input.css);}}});else if(this.css){let m=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(m,this.css);}}applyPrevMaps(){for(let _ of this.previous()){let m=this.toUrl(this.path(_.file)),d=_.root||s(_.file),C;this.mapOpts.sourcesContent===!1?(C=new i(_.text),C.sourcesContent&&(C.sourcesContent=C.sourcesContent.map(()=>null))):C=_.consumer(),this.map.applySourceMap(C,m,this.toUrl(this.path(d)));}}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(_=>_.annotation):!0}toBase64(_){return Buffer?Buffer.from(_).toString("base64"):window.btoa(unescape(encodeURIComponent(_)))}addAnnotation(){let _;this.isInline()?_="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?_=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?_=this.mapOpts.annotation(this.opts.to,this.root):_=this.outputFile()+".map";let m=` +`;this.css.includes(`\r +`)&&(m=`\r +`),this.css+=m+"/*# sourceMappingURL="+_+" */";}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 _=this.previous()[0].consumer();_.file=this.outputFile(),this.map=r.fromSourceMap(_);}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(_){if(_.indexOf("<")===0||/^\w+:\/\//.test(_)||this.mapOpts.absolute)return _;let m=this.opts.to?s(this.opts.to):".";return typeof this.mapOpts.annotation=="string"&&(m=s(a(m,this.mapOpts.annotation))),_=n(m,_),_}toUrl(_){return l==="\\"&&(_=_.replace(/\\/g,"/")),encodeURI(_).replace(/[#?]/g,encodeURIComponent)}toFileUrl(_){if(o)return o(_).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}sourcePath(_){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(_.source.input.from):this.toUrl(this.path(_.source.input.from))}generateString(){this.css="",this.map=new r({file:this.outputFile()});let _=1,m=1,d="",C={source:"",generated:{line:0,column:0},original:{line:0,column:0}},u,c;this.stringify(this.root,(y,P,A)=>{if(this.css+=y,P&&A!=="end"&&(C.generated.line=_,C.generated.column=m-1,P.source&&P.source.start?(C.source=this.sourcePath(P),C.original.line=P.source.start.line,C.original.column=P.source.start.column-1,this.map.addMapping(C)):(C.source=d,C.original.line=1,C.original.column=0,this.map.addMapping(C))),u=y.match(/\n/g),u?(_+=u.length,c=y.lastIndexOf(` +`),m=y.length-c):m+=y.length,P&&A!=="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?(C.source=this.sourcePath(P),C.original.line=P.source.end.line,C.original.column=P.source.end.column-1,C.generated.line=_,C.generated.column=m-2,this.map.addMapping(C)):(C.source=d,C.original.line=1,C.original.column=0,C.generated.line=_,C.generated.column=m-1,this.map.addMapping(C)));}});}generate(){if(this.clearAnnotation(),v&&g&&this.isMap())return this.generateMap();{let _="";return this.stringify(this.root,m=>{_+=m;}),[_]}}};e.exports=f;}),Eo=me((t,e)=>{var i=_o(),r=class extends i{constructor(s){super(s),this.type="comment";}};e.exports=r,r.default=r;}),$a=me((t,e)=>{var{isClean:i,my:r}=Bh(),s=So(),a=Eo(),n=_o(),l,o,p,g;function v(m){return m.map(d=>(d.nodes&&(d.nodes=v(d.nodes)),delete d.source,d))}function f(m){if(m[i]=!1,m.proxyOf.nodes)for(let d of m.proxyOf.nodes)f(d);}var _=class extends n{push(m){return m.parent=this,this.proxyOf.nodes.push(m),this}each(m){if(!this.proxyOf.nodes)return;let d=this.getIterator(),C,u;for(;this.indexes[d]{let u;try{u=m(d,C);}catch(c){throw d.addToError(c)}return u!==!1&&d.walk&&(u=d.walk(m)),u})}walkDecls(m,d){return d?m instanceof RegExp?this.walk((C,u)=>{if(C.type==="decl"&&m.test(C.prop))return d(C,u)}):this.walk((C,u)=>{if(C.type==="decl"&&C.prop===m)return d(C,u)}):(d=m,this.walk((C,u)=>{if(C.type==="decl")return d(C,u)}))}walkRules(m,d){return d?m instanceof RegExp?this.walk((C,u)=>{if(C.type==="rule"&&m.test(C.selector))return d(C,u)}):this.walk((C,u)=>{if(C.type==="rule"&&C.selector===m)return d(C,u)}):(d=m,this.walk((C,u)=>{if(C.type==="rule")return d(C,u)}))}walkAtRules(m,d){return d?m instanceof RegExp?this.walk((C,u)=>{if(C.type==="atrule"&&m.test(C.name))return d(C,u)}):this.walk((C,u)=>{if(C.type==="atrule"&&C.name===m)return d(C,u)}):(d=m,this.walk((C,u)=>{if(C.type==="atrule")return d(C,u)}))}walkComments(m){return this.walk((d,C)=>{if(d.type==="comment")return m(d,C)})}append(...m){for(let d of m){let C=this.normalize(d,this.last);for(let u of C)this.proxyOf.nodes.push(u);}return this.markDirty(),this}prepend(...m){m=m.reverse();for(let d of m){let C=this.normalize(d,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 d of this.nodes)d.cleanRaws(m);}insertBefore(m,d){let C=this.index(m),u=C===0?"prepend":!1,c=this.normalize(d,this.proxyOf.nodes[C],u).reverse();C=this.index(m);for(let P of c)this.proxyOf.nodes.splice(C,0,P);let y;for(let P in this.indexes)y=this.indexes[P],C<=y&&(this.indexes[P]=y+c.length);return this.markDirty(),this}insertAfter(m,d){let C=this.index(m),u=this.normalize(d,this.proxyOf.nodes[C]).reverse();C=this.index(m);for(let y of u)this.proxyOf.nodes.splice(C+1,0,y);let c;for(let y in this.indexes)c=this.indexes[y],C=m&&(this.indexes[C]=d-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,d,C){return C||(C=d,d={}),this.walkDecls(u=>{d.props&&!d.props.includes(u.prop)||d.fast&&!u.value.includes(d.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,d){if(typeof m=="string")m=v(l(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 p(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]||_.rebuild(C),C=C.proxyOf,C.parent&&C.parent.removeChild(C),C[i]&&f(C),typeof C.raws.before>"u"&&d&&typeof d.raws.before<"u"&&(C.raws.before=d.raws.before.replace(/\S/g,"")),C.parent=this.proxyOf,C))}getProxyProcessor(){return {set(m,d,C){return m[d]===C||(m[d]=C,(d==="name"||d==="params"||d==="selector")&&m.markDirty()),!0},get(m,d){return d==="proxyOf"?m:m[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...C)=>m[d](...C.map(u=>typeof u=="function"?(c,y)=>u(c.toProxy(),y):u)):d==="every"||d==="some"?C=>m[d]((u,...c)=>C(u.toProxy(),...c)):d==="root"?()=>m.root().toProxy():d==="nodes"?m.nodes.map(C=>C.toProxy()):d==="first"||d==="last"?m[d].toProxy():m[d]:m[d]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let m=this.lastEach;return this.indexes[m]=0,m}};_.registerParse=m=>{l=m;},_.registerRule=m=>{o=m;},_.registerAtRule=m=>{p=m;},_.registerRoot=m=>{g=m;},e.exports=_,_.default=_,_.rebuild=m=>{m.type==="atrule"?Object.setPrototypeOf(m,p.prototype):m.type==="rule"?Object.setPrototypeOf(m,o.prototype):m.type==="decl"?Object.setPrototypeOf(m,s.prototype):m.type==="comment"?Object.setPrototypeOf(m,a.prototype):m.type==="root"&&Object.setPrototypeOf(m,g.prototype),m[r]=!0,m.nodes&&m.nodes.forEach(d=>{_.rebuild(d);});};}),Nh=me((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;}),Yp=me((t,e)=>{var i={};e.exports=function(r){i[r]||(i[r]=!0,typeof console<"u"&&console.warn&&console.warn(r));};}),Zp=me((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;}),Gh=me((t,e)=>{var i=Zp(),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;}),cd=me((t,e)=>{var i="'".charCodeAt(0),r='"'.charCodeAt(0),s="\\".charCodeAt(0),a="/".charCodeAt(0),n=` +`.charCodeAt(0),l=" ".charCodeAt(0),o="\f".charCodeAt(0),p=" ".charCodeAt(0),g="\r".charCodeAt(0),v="[".charCodeAt(0),f="]".charCodeAt(0),_="(".charCodeAt(0),m=")".charCodeAt(0),d="{".charCodeAt(0),C="}".charCodeAt(0),u=";".charCodeAt(0),c="*".charCodeAt(0),y=":".charCodeAt(0),P="@".charCodeAt(0),A=/[\t\n\f\r "#'()/;[\\\]{}]/g,F=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,B=/.[\n"'(/\\]/,H=/[\da-f]/i;e.exports=function(nt,ct={}){let ut=nt.css.valueOf(),mt=ct.ignoreErrors,_t,et,bt,D,O,k,L,K,U,qt,It=ut.length,Gt=0,Ot=[],ee=[];function ae(){return Gt}function le(pe){throw nt.error("Unclosed "+pe,Gt)}function ye(){return ee.length===0&&Gt>=It}function de(pe){if(ee.length)return ee.pop();if(Gt>=It)return;let Wt=pe?pe.ignoreUnclosed:!1;switch(_t=ut.charCodeAt(Gt),_t){case n:case l:case p:case g:case o:{et=Gt;do et+=1,_t=ut.charCodeAt(et);while(_t===l||_t===n||_t===p||_t===g||_t===o);qt=["space",ut.slice(Gt,et)],Gt=et-1;break}case v:case f:case d:case C:case y:case u:case m:{let zt=String.fromCharCode(_t);qt=[zt,zt,Gt];break}case _:{if(K=Ot.length?Ot.pop()[1]:"",U=ut.charCodeAt(Gt+1),K==="url"&&U!==i&&U!==r&&U!==l&&U!==n&&U!==p&&U!==o&&U!==g){et=Gt;do{if(k=!1,et=ut.indexOf(")",et+1),et===-1)if(mt||Wt){et=Gt;break}else le("bracket");for(L=et;ut.charCodeAt(L-1)===s;)L-=1,k=!k;}while(k);qt=["brackets",ut.slice(Gt,et+1),Gt,et],Gt=et;}else et=ut.indexOf(")",Gt+1),D=ut.slice(Gt,et+1),et===-1||B.test(D)?qt=["(","(",Gt]:(qt=["brackets",D,Gt,et],Gt=et);break}case i:case r:{bt=_t===i?"'":'"',et=Gt;do{if(k=!1,et=ut.indexOf(bt,et+1),et===-1)if(mt||Wt){et=Gt+1;break}else le("string");for(L=et;ut.charCodeAt(L-1)===s;)L-=1,k=!k;}while(k);qt=["string",ut.slice(Gt,et+1),Gt,et],Gt=et;break}case P:{A.lastIndex=Gt+1,A.test(ut),A.lastIndex===0?et=ut.length-1:et=A.lastIndex-2,qt=["at-word",ut.slice(Gt,et+1),Gt,et],Gt=et;break}case s:{for(et=Gt,O=!0;ut.charCodeAt(et+1)===s;)et+=1,O=!O;if(_t=ut.charCodeAt(et+1),O&&_t!==a&&_t!==l&&_t!==n&&_t!==p&&_t!==g&&_t!==o&&(et+=1,H.test(ut.charAt(et)))){for(;H.test(ut.charAt(et+1));)et+=1;ut.charCodeAt(et+1)===l&&(et+=1);}qt=["word",ut.slice(Gt,et+1),Gt,et],Gt=et;break}default:{_t===a&&ut.charCodeAt(Gt+1)===c?(et=ut.indexOf("*/",Gt+2)+1,et===0&&(mt||Wt?et=ut.length:le("comment")),qt=["comment",ut.slice(Gt,et+1),Gt,et],Gt=et):(F.lastIndex=Gt+1,F.test(ut),F.lastIndex===0?et=ut.length-1:et=F.lastIndex-2,qt=["word",ut.slice(Gt,et+1),Gt,et],Ot.push(qt),Gt=et);break}}return Gt++,qt}function Xt(pe){ee.push(pe);}return {back:Xt,nextToken:de,endOfFile:ye,position:ae}};}),jh=me((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);}),Rn=me((t,e)=>{var i=$a(),r,s,a=class extends i{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[]);}removeChild(n,l){let o=this.index(n);return !l&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),super.removeChild(n)}normalize(n,l,o){let p=super.normalize(n);if(l){if(o==="prepend")this.nodes.length>1?l.raws.before=this.nodes[1].raws.before:delete l.raws.before;else if(this.first!==l)for(let g of p)g.raws.before=l.raws.before;}return p}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);}),Kp=me((t,e)=>{var i={split(r,s,a){let n=[],l="",o=!1,p=0,g=!1,v="",f=!1;for(let _ of r)f?f=!1:_==="\\"?f=!0:g?_===v&&(g=!1):_==='"'||_==="'"?(g=!0,v=_):_==="("?p+=1:_===")"?p>0&&(p-=1):p===0&&s.includes(_)&&(o=!0),o?(l!==""&&n.push(l.trim()),l="",o=!1):l+=_;return (a||l!=="")&&n.push(l.trim()),n},space(r){let s=[" ",` +`," "];return i.split(r,s)},comma(r){return i.split(r,[","],!0)}};e.exports=i,i.default=i;}),qh=me((t,e)=>{var i=$a(),r=Kp(),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,l=n?n[0]:","+this.raw("between","beforeOpen");this.selector=a.join(l);}};e.exports=s,s.default=s,i.registerRule(s);}),ud=me((t,e)=>{var i=So(),r=cd(),s=Eo(),a=jh(),n=Rn(),l=qh(),o={empty:!0,space:!0};function p(v){for(let f=v.length-1;f>=0;f--){let _=v[f],m=_[3]||_[2];if(m)return m}}var g=class{constructor(v){this.input=v,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:v,start:{offset:0,line:1,column:1}};}createTokenizer(){this.tokenizer=r(this.input);}parse(){let v;for(;!this.tokenizer.endOfFile();)switch(v=this.tokenizer.nextToken(),v[0]){case"space":this.spaces+=v[1];break;case";":this.freeSemicolon(v);break;case"}":this.end(v);break;case"comment":this.comment(v);break;case"at-word":this.atrule(v);break;case"{":this.emptyRule(v);break;default:this.other(v);break}this.endFile();}comment(v){let f=new s;this.init(f,v[2]),f.source.end=this.getPosition(v[3]||v[2]);let _=v[1].slice(2,-2);if(/^\s*$/.test(_))f.text="",f.raws.left=_,f.raws.right="";else {let m=_.match(/^(\s*)([^]*\S)(\s*)$/);f.text=m[2],f.raws.left=m[1],f.raws.right=m[3];}}emptyRule(v){let f=new l;this.init(f,v[2]),f.selector="",f.raws.between="",this.current=f;}other(v){let f=!1,_=null,m=!1,d=null,C=[],u=v[1].startsWith("--"),c=[],y=v;for(;y;){if(_=y[0],c.push(y),_==="("||_==="[")d||(d=y),C.push(_==="("?")":"]");else if(u&&m&&_==="{")d||(d=y),C.push("}");else if(C.length===0)if(_===";")if(m){this.decl(c,u);return}else break;else if(_==="{"){this.rule(c);return}else if(_==="}"){this.tokenizer.back(c.pop()),f=!0;break}else _===":"&&(m=!0);else _===C[C.length-1]&&(C.pop(),C.length===0&&(d=null));y=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(f=!0),C.length>0&&this.unclosedBracket(d),f&&m){if(!u)for(;c.length&&(y=c[c.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(c.pop());this.decl(c,u);}else this.unknownWord(c);}rule(v){v.pop();let f=new l;this.init(f,v[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(v),this.raw(f,"selector",v),this.current=f;}decl(v,f){let _=new i;this.init(_,v[0][2]);let m=v[v.length-1];for(m[0]===";"&&(this.semicolon=!0,v.pop()),_.source.end=this.getPosition(m[3]||m[2]||p(v));v[0][0]!=="word";)v.length===1&&this.unknownWord(v),_.raws.before+=v.shift()[1];for(_.source.start=this.getPosition(v[0][2]),_.prop="";v.length;){let c=v[0][0];if(c===":"||c==="space"||c==="comment")break;_.prop+=v.shift()[1];}_.raws.between="";let d;for(;v.length;)if(d=v.shift(),d[0]===":"){_.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),_.raws.between+=d[1];(_.prop[0]==="_"||_.prop[0]==="*")&&(_.raws.before+=_.prop[0],_.prop=_.prop.slice(1));let C=[],u;for(;v.length&&(u=v[0][0],!(u!=="space"&&u!=="comment"));)C.push(v.shift());this.precheckMissedSemicolon(v);for(let c=v.length-1;c>=0;c--){if(d=v[c],d[1].toLowerCase()==="!important"){_.important=!0;let y=this.stringFrom(v,c);y=this.spacesFromEnd(v)+y,y!==" !important"&&(_.raws.important=y);break}else if(d[1].toLowerCase()==="important"){let y=v.slice(0),P="";for(let A=c;A>0;A--){let F=y[A][0];if(P.trim().indexOf("!")===0&&F!=="space")break;P=y.pop()[1]+P;}P.trim().indexOf("!")===0&&(_.important=!0,_.raws.important=P,v=y);}if(d[0]!=="space"&&d[0]!=="comment")break}v.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(_.raws.between+=C.map(c=>c[1]).join(""),C=[]),this.raw(_,"value",C.concat(v),f),_.value.includes(":")&&!f&&this.checkMissedSemicolon(v);}atrule(v){let f=new a;f.name=v[1].slice(1),f.name===""&&this.unnamedAtrule(f,v),this.init(f,v[2]);let _,m,d,C=!1,u=!1,c=[],y=[];for(;!this.tokenizer.endOfFile();){if(v=this.tokenizer.nextToken(),_=v[0],_==="("||_==="["?y.push(_==="("?")":"]"):_==="{"&&y.length>0?y.push("}"):_===y[y.length-1]&&y.pop(),y.length===0)if(_===";"){f.source.end=this.getPosition(v[2]),this.semicolon=!0;break}else if(_==="{"){u=!0;break}else if(_==="}"){if(c.length>0){for(d=c.length-1,m=c[d];m&&m[0]==="space";)m=c[--d];m&&(f.source.end=this.getPosition(m[3]||m[2]));}this.end(v);break}else c.push(v);else c.push(v);if(this.tokenizer.endOfFile()){C=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(f.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(f,"params",c),C&&(v=c[c.length-1],f.source.end=this.getPosition(v[3]||v[2]),this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),u&&(f.nodes=[],this.current=f);}end(v){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(v[2]),this.current=this.current.parent):this.unexpectedClose(v);}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(v){if(this.spaces+=v[1],this.current.nodes){let f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="");}}getPosition(v){let f=this.input.fromOffset(v);return {offset:v,line:f.line,column:f.col}}init(v,f){this.current.push(v),v.source={start:this.getPosition(f),input:this.input},v.raws.before=this.spaces,this.spaces="",v.type!=="comment"&&(this.semicolon=!1);}raw(v,f,_,m){let d,C,u=_.length,c="",y=!0,P,A;for(let F=0;FB+H[1],"");v.raws[f]={value:c,raw:F};}v[f]=c;}spacesAndCommentsFromEnd(v){let f,_="";for(;v.length&&(f=v[v.length-1][0],!(f!=="space"&&f!=="comment"));)_=v.pop()[1]+_;return _}spacesAndCommentsFromStart(v){let f,_="";for(;v.length&&(f=v[0][0],!(f!=="space"&&f!=="comment"));)_+=v.shift()[1];return _}spacesFromEnd(v){let f,_="";for(;v.length&&(f=v[v.length-1][0],f==="space");)_=v.pop()[1]+_;return _}stringFrom(v,f){let _="";for(let m=f;m=0&&(m=v[d],!(m[0]!=="space"&&(_+=1,_===2)));d--);throw this.input.error("Missed semicolon",m[0]==="word"?m[3]+1:m[2])}};e.exports=g;}),Hh=me((t,e)=>{var i=$a(),r=ud(),s=ko();function a(n,l){let o=new s(n,l),p=new r(o);try{p.parse();}catch(g){throw g}return p.root}e.exports=a,a.default=a,i.registerParse(a);}),Qp=me((t,e)=>{var{isClean:i,my:r}=Bh(),s=Xp(),a=Po(),n=$a(),l=Nh();Yp();var o=Gh(),p=Hh(),g=Rn(),v={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},f={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},_={postcssPlugin:!0,prepare:!0,Once:!0},m=0;function d(A){return typeof A=="object"&&typeof A.then=="function"}function C(A){let F=!1,B=v[A.type];return A.type==="decl"?F=A.prop.toLowerCase():A.type==="atrule"&&(F=A.name.toLowerCase()),F&&A.append?[B,B+"-"+F,m,B+"Exit",B+"Exit-"+F]:F?[B,B+"-"+F,B+"Exit",B+"Exit-"+F]:A.append?[B,m,B+"Exit"]:[B,B+"Exit"]}function u(A){let F;return A.type==="document"?F=["Document",m,"DocumentExit"]:A.type==="root"?F=["Root",m,"RootExit"]:F=C(A),{node:A,events:F,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function c(A){return A[i]=!1,A.nodes&&A.nodes.forEach(F=>c(F)),A}var y={},P=class{constructor(A,F,B){this.stringified=!1,this.processed=!1;let H;if(typeof F=="object"&&F!==null&&(F.type==="root"||F.type==="document"))H=c(F);else if(F instanceof P||F instanceof o)H=c(F.root),F.map&&(typeof B.map>"u"&&(B.map={}),B.map.inline||(B.map.inline=!1),B.map.prev=F.map);else {let nt=p;B.syntax&&(nt=B.syntax.parse),B.parser&&(nt=B.parser),nt.parse&&(nt=nt.parse);try{H=nt(F,B);}catch(ct){this.processed=!0,this.error=ct;}H&&!H[r]&&n.rebuild(H);}this.result=new o(A,H,B),this.helpers={...y,result:this.result,postcss:y},this.plugins=this.processor.plugins.map(nt=>typeof nt=="object"&&nt.prepare?{...nt,...nt.prepare(this.result)}:nt);}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(A,F){return this.async().then(A,F)}catch(A){return this.async().catch(A)}finally(A){return this.async().then(A,A)}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 A of this.plugins){let F=this.runOnRoot(A);if(d(F))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let A=this.result.root;for(;!A[i];)A[i]=!0,this.walkSync(A);if(this.listeners.OnceExit)if(A.type==="document")for(let F of A.nodes)this.visitSync(this.listeners.OnceExit,F);else this.visitSync(this.listeners.OnceExit,A);}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let A=this.result.opts,F=a;A.syntax&&(F=A.syntax.stringify),A.stringifier&&(F=A.stringifier),F.stringify&&(F=F.stringify);let B=new s(F,this.result.root,this.result.opts).generate();return this.result.css=B[0],this.result.map=B[1],this.result}walkSync(A){A[i]=!0;let F=C(A);for(let B of F)if(B===m)A.nodes&&A.each(H=>{H[i]||this.walkSync(H);});else {let H=this.listeners[B];if(H&&this.visitSync(H,A.toProxy()))return}}visitSync(A,F){for(let[B,H]of A){this.result.lastPlugin=B;let nt;try{nt=H(F,this.helpers);}catch(ct){throw this.handleError(ct,F.proxyOf)}if(F.type!=="root"&&F.type!=="document"&&!F.parent)return !0;if(d(nt))throw this.getAsyncError()}}runOnRoot(A){this.result.lastPlugin=A;try{if(typeof A=="object"&&A.Once){if(this.result.root.type==="document"){let F=this.result.root.nodes.map(B=>A.Once(B,this.helpers));return d(F[0])?Promise.all(F):F}return A.Once(this.result.root,this.helpers)}else if(typeof A=="function")return A(this.result.root,this.result)}catch(F){throw this.handleError(F)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(A,F){let B=this.result.lastPlugin;try{F&&F.addToError(A),this.error=A,A.name==="CssSyntaxError"&&!A.plugin?(A.plugin=B.postcssPlugin,A.setMessage()):B.postcssVersion;}catch(H){console&&console.error&&console.error(H);}return A}async runAsync(){this.plugin=0;for(let A=0;A0;){let B=this.visitTick(F);if(d(B))try{await B;}catch(H){let nt=F[F.length-1].node;throw this.handleError(H,nt)}}}if(this.listeners.OnceExit)for(let[F,B]of this.listeners.OnceExit){this.result.lastPlugin=F;try{if(A.type==="document"){let H=A.nodes.map(nt=>B(nt,this.helpers));await Promise.all(H);}else await B(A,this.helpers);}catch(H){throw this.handleError(H)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let A=(F,B,H)=>{this.listeners[B]||(this.listeners[B]=[]),this.listeners[B].push([F,H]);};for(let F of this.plugins)if(typeof F=="object")for(let B in F){if(!f[B]&&/^[A-Z]/.test(B))throw new Error(`Unknown event ${B} in ${F.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!_[B])if(typeof F[B]=="object")for(let H in F[B])H==="*"?A(F,B,F[B][H]):A(F,B+"-"+H.toLowerCase(),F[B][H]);else typeof F[B]=="function"&&A(F,B,F[B]);}this.hasListener=Object.keys(this.listeners).length>0;}visitTick(A){let F=A[A.length-1],{node:B,visitors:H}=F;if(B.type!=="root"&&B.type!=="document"&&!B.parent){A.pop();return}if(H.length>0&&F.visitorIndex{y=A;},e.exports=P,P.default=P,g.registerLazyResult(P),l.registerLazyResult(P);}),md=me((t,e)=>{var i=Xp(),r=Po();Yp();var s=Hh(),a=Gh(),n=class{constructor(l,o,p){o=o.toString(),this.stringified=!1,this._processor=l,this._css=o,this._opts=p,this._map=void 0;let g,v=r;this.result=new a(this._processor,g,this._opts),this.result.css=o;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let _=new i(v,g,this._opts,o);if(_.isMap()){let[m,d]=_.generate();m&&(this.result.css=m),d&&(this.result.map=d);}}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 l,o=s;try{l=o(this._css,this._opts);}catch(p){this.error=p;}if(this.error)throw this.error;return this._root=l,l}get messages(){return []}warnings(){return []}toString(){return this._css}then(l,o){return this.async().then(l,o)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}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;}),dd=me((t,e)=>{var i=md(),r=Qp(),s=Nh(),a=Rn(),n=class{constructor(l=[]){this.version="8.4.24",this.plugins=this.normalize(l);}use(l){return this.plugins=this.plugins.concat(this.normalize([l])),this}process(l,o={}){return this.plugins.length===0&&typeof o.parser>"u"&&typeof o.stringifier>"u"&&typeof o.syntax>"u"?new i(this,l,o):new r(this,l,o)}normalize(l){let o=[];for(let p of l)if(p.postcss===!0?p=p():p.postcss&&(p=p.postcss),typeof p=="object"&&Array.isArray(p.plugins))o=o.concat(p.plugins);else if(typeof p=="object"&&p.postcssPlugin)o.push(p);else if(typeof p=="function")o.push(p);else if(!(typeof p=="object"&&(p.parse||p.stringify)))throw new Error(p+" is not a PostCSS plugin");return o}};e.exports=n,n.default=n,a.registerProcessor(n),s.registerProcessor(n);}),yd=me((t,e)=>{var i=So(),r=Jp(),s=Eo(),a=jh(),n=ko(),l=Rn(),o=qh();function p(g,v){if(Array.isArray(g))return g.map(m=>p(m));let{inputs:f,..._}=g;if(f){v=[];for(let m of f){let d={...m,__proto__:n.prototype};d.map&&(d.map={...d.map,__proto__:r.prototype}),v.push(d);}}if(_.nodes&&(_.nodes=g.nodes.map(m=>p(m,v))),_.source){let{inputId:m,...d}=_.source;_.source=d,m!=null&&(_.source.input=v[m]);}if(_.type==="root")return new l(_);if(_.type==="decl")return new i(_);if(_.type==="rule")return new o(_);if(_.type==="comment")return new s(_);if(_.type==="atrule")return new a(_);throw new Error("Unknown node type: "+g.type)}e.exports=p,p.default=p;}),gd=me((t,e)=>{var i=Oh(),r=So(),s=Qp(),a=$a(),n=dd(),l=Po(),o=yd(),p=Nh(),g=Zp(),v=Eo(),f=jh(),_=Gh(),m=ko(),d=Hh(),C=Kp(),u=qh(),c=Rn(),y=_o();function P(...A){return A.length===1&&Array.isArray(A[0])&&(A=A[0]),new n(A)}P.plugin=function(A,F){let B=!1;function H(...ct){console&&console.warn&&!B&&(B=!0,console.warn(A+`: postcss.plugin was deprecated. Migration guide: +https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(A+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357: +https://www.w3ctech.com/topic/2226`));let ut=F(...ct);return ut.postcssPlugin=A,ut.postcssVersion=new n().version,ut}let nt;return Object.defineProperty(H,"postcss",{get(){return nt||(nt=H()),nt}}),H.process=function(ct,ut,mt){return P([H(mt)]).process(ct,ut)},H},P.stringify=l,P.parse=d,P.fromJSON=o,P.list=C,P.comment=A=>new v(A),P.atRule=A=>new f(A),P.decl=A=>new r(A),P.rule=A=>new u(A),P.root=A=>new c(A),P.document=A=>new p(A),P.CssSyntaxError=i,P.Declaration=r,P.Container=a,P.Processor=n,P.Document=p,P.Comment=v,P.Warning=g,P.AtRule=f,P.Result=_,P.Input=m,P.Rule=u,P.Root=c,P.Node=y,s.registerPostcss(P),e.exports=P,P.default=P;}),tf=me(()=>{}),ef=me((t,e)=>{var i=qp(),r=tf(),s=class extends Error{constructor(a,n,l,o,p,g){super(a),this.name="CssSyntaxError",this.reason=a,p&&(this.file=p),o&&(this.source=o),g&&(this.plugin=g),typeof n<"u"&&typeof l<"u"&&(typeof n=="number"?(this.line=n,this.column=l):(this.line=n.line,this.column=n.column,this.endLine=l.line,this.endColumn=l.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s);}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(a){if(!this.source)return "";let n=this.source;a==null&&(a=i.isColorSupported),r&&a&&(n=r(n));let l=n.split(/\r?\n/),o=Math.max(this.line-3,0),p=Math.min(this.line+2,l.length),g=String(p).length,v,f;if(a){let{bold:_,red:m,gray:d}=i.createColors(!0);v=C=>_(m(C)),f=C=>d(C);}else v=f=_=>_;return l.slice(o,p).map((_,m)=>{let d=o+1+m,C=" "+(" "+d).slice(-g)+" | ";if(d===this.line){let u=f(C.replace(/\d/g," "))+_.slice(0,this.column-1).replace(/[^\t]/g," ");return v(">")+f(C)+_+` + `+u+v("^")}return " "+f(C)+_}).join(` +`)}toString(){let a=this.showSourceCode();return a&&(a=` + +`+a+` +`),this.name+": "+this.message+a}};e.exports=s,s.default=s;}),vd=me((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=Ln(),{existsSync:s,readFileSync:a}=Up(),{dirname:n,join:l}=Vn();function o(g){return Buffer?Buffer.from(g,"base64").toString():window.atob(g)}var p=class{constructor(g,v){if(v.map===!1)return;this.loadAnnotation(g),this.inline=this.startWith(this.annotation,"data:");let f=v.map?v.map.prev:void 0,_=this.loadMap(v.from,f);!this.mapFile&&v.from&&(this.mapFile=v.from),this.mapFile&&(this.root=n(this.mapFile)),_&&(this.text=_);}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}withContent(){return !!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(g,v){return g?g.substr(0,v.length)===v:!1}getAnnotationURL(g){return g.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(g){let v=g.match(/\/\*\s*# sourceMappingURL=/gm);if(!v)return;let f=g.lastIndexOf(v.pop()),_=g.indexOf("*/",f);f>-1&&_>-1&&(this.annotation=this.getAnnotationURL(g.substring(f,_)));}decodeInline(g){let v=/^data:application\/json;charset=utf-?8;base64,/,f=/^data:application\/json;base64,/,_=/^data:application\/json;charset=utf-?8,/,m=/^data:application\/json,/;if(_.test(g)||m.test(g))return decodeURIComponent(g.substr(RegExp.lastMatch.length));if(v.test(g)||f.test(g))return o(g.substr(RegExp.lastMatch.length));let d=g.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+d)}loadFile(g){if(this.root=n(g),s(g))return this.mapFile=g,a(g,"utf-8").toString().trim()}loadMap(g,v){if(v===!1)return !1;if(v){if(typeof v=="string")return v;if(typeof v=="function"){let f=v(g);if(f){let _=this.loadFile(f);if(!_)throw new Error("Unable to load previous source map: "+f.toString());return _}}else {if(v instanceof i)return r.fromSourceMap(v).toString();if(v instanceof r)return v.toString();if(this.isMap(v))return JSON.stringify(v);throw new Error("Unsupported previous source map format: "+v.toString())}}else {if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let f=this.annotation;return g&&(f=l(n(g),f)),this.loadFile(f)}}}isMap(g){return typeof g!="object"?!1:typeof g.mappings=="string"||typeof g._mappings=="string"||Array.isArray(g.sections)}};e.exports=p,p.default=p;}),rf=me((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=Ln(),{fileURLToPath:s,pathToFileURL:a}=zh(),{resolve:n,isAbsolute:l}=Vn(),{nanoid:o}=Wp(),p=tf(),g=ef(),v=vd(),f=Symbol("fromOffsetCache"),_=!!(i&&r),m=!!(n&&l),d=class{constructor(C,u={}){if(C===null||typeof C>"u"||typeof C=="object"&&!C.toString)throw new Error(`PostCSS received ${C} instead of CSS string`);if(this.css=C.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,u.from&&(!m||/^\w+:\/\//.test(u.from)||l(u.from)?this.file=u.from:this.file=n(u.from)),m&&_){let c=new v(this.css,u);if(c.text){this.map=c;let y=c.consumer().file;!this.file&&y&&(this.file=this.mapResolve(y));}}this.file||(this.id=""),this.map&&(this.map.file=this.from);}fromOffset(C){let u,c;if(this[f])c=this[f];else {let P=this.css.split(` +`);c=new Array(P.length);let A=0;for(let F=0,B=P.length;F=u)y=c.length-1;else {let P=c.length-2,A;for(;y>1),C=c[A+1])y=A+1;else {y=A;break}}return {line:y+1,col:C-c[y]+1}}error(C,u,c,y={}){let P,A,F;if(u&&typeof u=="object"){let H=u,nt=c;if(typeof H.offset=="number"){let ct=this.fromOffset(H.offset);u=ct.line,c=ct.col;}else u=H.line,c=H.column;if(typeof nt.offset=="number"){let ct=this.fromOffset(nt.offset);A=ct.line,F=ct.col;}else A=nt.line,F=nt.column;}else if(!c){let H=this.fromOffset(u);u=H.line,c=H.col;}let B=this.origin(u,c,A,F);return B?P=new g(C,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(C,A===void 0?u:{line:u,column:c},A===void 0?c:{line:A,column:F},this.css,this.file,y.plugin),P.input={line:u,column:c,endLine:A,endColumn:F,source:this.css},this.file&&(a&&(P.input.url=a(this.file).toString()),P.input.file=this.file),P}origin(C,u,c,y){if(!this.map)return !1;let P=this.map.consumer(),A=P.originalPositionFor({line:C,column:u});if(!A.source)return !1;let F;typeof c=="number"&&(F=P.originalPositionFor({line:c,column:y}));let B;l(A.source)?B=a(A.source):B=new URL(A.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let H={url:B.toString(),line:A.line,column:A.column,endLine:F&&F.line,endColumn:F&&F.column};if(B.protocol==="file:")if(s)H.file=s(B);else throw new Error("file: protocol is not available in this PostCSS build");let nt=P.sourceContentFor(A.source);return nt&&(H.source=nt),H}mapResolve(C){return /^\w+:\/\//.test(C)?C:n(this.map.consumer().sourceRoot||this.map.root||".",C)}get from(){return this.file||this.id}toJSON(){let C={};for(let u of ["hasBOM","css","file","id"])this[u]!=null&&(C[u]=this[u]);return this.map&&(C.map={...this.map},C.map.consumerCache&&(C.map.consumerCache=void 0)),C}};e.exports=d,d.default=d,p&&p.registerInput&&p.registerInput(d);}),sf=me((t,e)=>{e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my");}),$h=me((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"),l=this.raw(a,"right","commentRight");this.builder("/*"+n+a.text+l+"*/",a);}decl(a,n){let l=this.raw(a,"between","colon"),o=a.prop+l+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 l="@"+a.name,o=a.params?this.rawValue(a,"params"):"";if(typeof a.raws.afterName<"u"?l+=a.raws.afterName:o&&(l+=" "),a.nodes)this.block(a,l+o);else {let p=(a.raws.between||"")+(n?";":"");this.builder(l+o+p,a);}}body(a){let n=a.nodes.length-1;for(;n>0&&a.nodes[n].type==="comment";)n-=1;let l=this.raw(a,"semicolon");for(let o=0;o{if(o=f.raws[n],typeof o<"u")return !1});}return typeof o>"u"&&(o=i[l]),g.rawCache[l]=o,o}rawSemicolon(a){let n;return a.walk(l=>{if(l.nodes&&l.nodes.length&&l.last.type==="decl"&&(n=l.raws.semicolon,typeof n<"u"))return !1}),n}rawEmptyBody(a){let n;return a.walk(l=>{if(l.nodes&&l.nodes.length===0&&(n=l.raws.after,typeof n<"u"))return !1}),n}rawIndent(a){if(a.raws.indent)return a.raws.indent;let n;return a.walk(l=>{let o=l.parent;if(o&&o!==a&&o.parent&&o.parent===a&&typeof l.raws.before<"u"){let p=l.raws.before.split(` +`);return n=p[p.length-1],n=n.replace(/\S/g,""),!1}}),n}rawBeforeComment(a,n){let l;return a.walkComments(o=>{if(typeof o.raws.before<"u")return l=o.raws.before,l.includes(` +`)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(n,null,"beforeDecl"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeDecl(a,n){let l;return a.walkDecls(o=>{if(typeof o.raws.before<"u")return l=o.raws.before,l.includes(` +`)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(n,null,"beforeRule"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeRule(a){let n;return a.walk(l=>{if(l.nodes&&(l.parent!==a||a.first!==l)&&typeof l.raws.before<"u")return n=l.raws.before,n.includes(` +`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeClose(a){let n;return a.walk(l=>{if(l.nodes&&l.nodes.length>0&&typeof l.raws.after<"u")return n=l.raws.after,n.includes(` +`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(a){let n;return a.walk(l=>{if(l.type!=="decl"&&(n=l.raws.between,typeof n<"u"))return !1}),n}rawColon(a){let n;return a.walkDecls(l=>{if(typeof l.raws.between<"u")return n=l.raws.between.replace(/[^\s:]/g,""),!1}),n}beforeAfter(a,n){let l;a.type==="decl"?l=this.raw(a,null,"beforeDecl"):a.type==="comment"?l=this.raw(a,null,"beforeComment"):n==="before"?l=this.raw(a,null,"beforeRule"):l=this.raw(a,null,"beforeClose");let o=a.parent,p=0;for(;o&&o.type!=="root";)p+=1,o=o.parent;if(l.includes(` +`)){let g=this.raw(a,null,"indent");if(g.length)for(let v=0;v{var i=$h();function r(s,a){new i(a).stringify(s);}e.exports=r,r.default=r;}),On=me((t,e)=>{var{isClean:i,my:r}=sf(),s=ef(),a=$h(),n=bd();function l(p,g){let v=new p.constructor;for(let f in p){if(!Object.prototype.hasOwnProperty.call(p,f)||f==="proxyCache")continue;let _=p[f],m=typeof _;f==="parent"&&m==="object"?g&&(v[f]=g):f==="source"?v[f]=_:Array.isArray(_)?v[f]=_.map(d=>l(d,v)):(m==="object"&&_!==null&&(_=l(_)),v[f]=_);}return v}var o=class{constructor(p={}){this.raws={},this[i]=!1,this[r]=!0;for(let g in p)if(g==="nodes"){this.nodes=[];for(let v of p[g])typeof v.clone=="function"?this.append(v.clone()):this.append(v);}else this[g]=p[g];}error(p,g={}){if(this.source){let{start:v,end:f}=this.rangeBy(g);return this.source.input.error(p,{line:v.line,column:v.column},{line:f.line,column:f.column},g)}return new s(p)}warn(p,g,v){let f={node:this};for(let _ in v)f[_]=v[_];return p.warn(g,f)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(p=n){p.stringify&&(p=p.stringify);let g="";return p(this,v=>{g+=v;}),g}assign(p={}){for(let g in p)this[g]=p[g];return this}clone(p={}){let g=l(this);for(let v in p)g[v]=p[v];return g}cloneBefore(p={}){let g=this.clone(p);return this.parent.insertBefore(this,g),g}cloneAfter(p={}){let g=this.clone(p);return this.parent.insertAfter(this,g),g}replaceWith(...p){if(this.parent){let g=this,v=!1;for(let f of p)f===this?v=!0:v?(this.parent.insertAfter(g,f),g=f):this.parent.insertBefore(g,f);v||this.remove();}return this}next(){if(!this.parent)return;let p=this.parent.index(this);return this.parent.nodes[p+1]}prev(){if(!this.parent)return;let p=this.parent.index(this);return this.parent.nodes[p-1]}before(p){return this.parent.insertBefore(this,p),this}after(p){return this.parent.insertAfter(this,p),this}root(){let p=this;for(;p.parent&&p.parent.type!=="document";)p=p.parent;return p}raw(p,g){return new a().raw(this,p,g)}cleanRaws(p){delete this.raws.before,delete this.raws.after,p||delete this.raws.between;}toJSON(p,g){let v={},f=g==null;g=g||new Map;let _=0;for(let m in this){if(!Object.prototype.hasOwnProperty.call(this,m)||m==="parent"||m==="proxyCache")continue;let d=this[m];if(Array.isArray(d))v[m]=d.map(C=>typeof C=="object"&&C.toJSON?C.toJSON(null,g):C);else if(typeof d=="object"&&d.toJSON)v[m]=d.toJSON(null,g);else if(m==="source"){let C=g.get(d.input);C==null&&(C=_,g.set(d.input,_),_++),v[m]={inputId:C,start:d.start,end:d.end};}else v[m]=d;}return f&&(v.inputs=[...g.keys()].map(m=>m.toJSON())),v}positionInside(p){let g=this.toString(),v=this.source.start.column,f=this.source.start.line;for(let _=0;_p.root().toProxy():p[g]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(p){if(p.postcssNode=this,p.stack&&this.source&&/\n\s{4}at /.test(p.stack)){let g=this.source;p.stack=p.stack.replace(/\n\s{4}at /,`$&${g.input.from}:${g.start.line}:${g.start.column}$&`);}return p}markDirty(){if(this[i]){this[i]=!1;let p=this;for(;p=p.parent;)p[i]=!1;}}get proxyOf(){return this}};e.exports=o,o.default=o;}),af=me((t,e)=>{var i=On(),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;}),nf=me((t,e)=>{var i="'".charCodeAt(0),r='"'.charCodeAt(0),s="\\".charCodeAt(0),a="/".charCodeAt(0),n=` +`.charCodeAt(0),l=" ".charCodeAt(0),o="\f".charCodeAt(0),p=" ".charCodeAt(0),g="\r".charCodeAt(0),v="[".charCodeAt(0),f="]".charCodeAt(0),_="(".charCodeAt(0),m=")".charCodeAt(0),d="{".charCodeAt(0),C="}".charCodeAt(0),u=";".charCodeAt(0),c="*".charCodeAt(0),y=":".charCodeAt(0),P="@".charCodeAt(0),A=/[\t\n\f\r "#'()/;[\\\]{}]/g,F=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,B=/.[\n"'(/\\]/,H=/[\da-f]/i;e.exports=function(nt,ct={}){let ut=nt.css.valueOf(),mt=ct.ignoreErrors,_t,et,bt,D,O,k,L,K,U,qt,It=ut.length,Gt=0,Ot=[],ee=[];function ae(){return Gt}function le(pe){throw nt.error("Unclosed "+pe,Gt)}function ye(){return ee.length===0&&Gt>=It}function de(pe){if(ee.length)return ee.pop();if(Gt>=It)return;let Wt=pe?pe.ignoreUnclosed:!1;switch(_t=ut.charCodeAt(Gt),_t){case n:case l:case p:case g:case o:{et=Gt;do et+=1,_t=ut.charCodeAt(et);while(_t===l||_t===n||_t===p||_t===g||_t===o);qt=["space",ut.slice(Gt,et)],Gt=et-1;break}case v:case f:case d:case C:case y:case u:case m:{let zt=String.fromCharCode(_t);qt=[zt,zt,Gt];break}case _:{if(K=Ot.length?Ot.pop()[1]:"",U=ut.charCodeAt(Gt+1),K==="url"&&U!==i&&U!==r&&U!==l&&U!==n&&U!==p&&U!==o&&U!==g){et=Gt;do{if(k=!1,et=ut.indexOf(")",et+1),et===-1)if(mt||Wt){et=Gt;break}else le("bracket");for(L=et;ut.charCodeAt(L-1)===s;)L-=1,k=!k;}while(k);qt=["brackets",ut.slice(Gt,et+1),Gt,et],Gt=et;}else et=ut.indexOf(")",Gt+1),D=ut.slice(Gt,et+1),et===-1||B.test(D)?qt=["(","(",Gt]:(qt=["brackets",D,Gt,et],Gt=et);break}case i:case r:{bt=_t===i?"'":'"',et=Gt;do{if(k=!1,et=ut.indexOf(bt,et+1),et===-1)if(mt||Wt){et=Gt+1;break}else le("string");for(L=et;ut.charCodeAt(L-1)===s;)L-=1,k=!k;}while(k);qt=["string",ut.slice(Gt,et+1),Gt,et],Gt=et;break}case P:{A.lastIndex=Gt+1,A.test(ut),A.lastIndex===0?et=ut.length-1:et=A.lastIndex-2,qt=["at-word",ut.slice(Gt,et+1),Gt,et],Gt=et;break}case s:{for(et=Gt,O=!0;ut.charCodeAt(et+1)===s;)et+=1,O=!O;if(_t=ut.charCodeAt(et+1),O&&_t!==a&&_t!==l&&_t!==n&&_t!==p&&_t!==g&&_t!==o&&(et+=1,H.test(ut.charAt(et)))){for(;H.test(ut.charAt(et+1));)et+=1;ut.charCodeAt(et+1)===l&&(et+=1);}qt=["word",ut.slice(Gt,et+1),Gt,et],Gt=et;break}default:{_t===a&&ut.charCodeAt(Gt+1)===c?(et=ut.indexOf("*/",Gt+2)+1,et===0&&(mt||Wt?et=ut.length:le("comment")),qt=["comment",ut.slice(Gt,et+1),Gt,et],Gt=et):(F.lastIndex=Gt+1,F.test(ut),F.lastIndex===0?et=ut.length-1:et=F.lastIndex-2,qt=["word",ut.slice(Gt,et+1),Gt,et],Ot.push(qt),Gt=et);break}}return Gt++,qt}function Xt(pe){ee.push(pe);}return {back:Xt,nextToken:de,endOfFile:ye,position:ae}};}),Wh=me((t,e)=>{var i=On(),r=class extends i{constructor(s){super(s),this.type="comment";}};e.exports=r,r.default=r;}),Bn=me((t,e)=>{var{isClean:i,my:r}=sf(),s=af(),a=Wh(),n=On(),l,o,p,g;function v(m){return m.map(d=>(d.nodes&&(d.nodes=v(d.nodes)),delete d.source,d))}function f(m){if(m[i]=!1,m.proxyOf.nodes)for(let d of m.proxyOf.nodes)f(d);}var _=class extends n{push(m){return m.parent=this,this.proxyOf.nodes.push(m),this}each(m){if(!this.proxyOf.nodes)return;let d=this.getIterator(),C,u;for(;this.indexes[d]{let u;try{u=m(d,C);}catch(c){throw d.addToError(c)}return u!==!1&&d.walk&&(u=d.walk(m)),u})}walkDecls(m,d){return d?m instanceof RegExp?this.walk((C,u)=>{if(C.type==="decl"&&m.test(C.prop))return d(C,u)}):this.walk((C,u)=>{if(C.type==="decl"&&C.prop===m)return d(C,u)}):(d=m,this.walk((C,u)=>{if(C.type==="decl")return d(C,u)}))}walkRules(m,d){return d?m instanceof RegExp?this.walk((C,u)=>{if(C.type==="rule"&&m.test(C.selector))return d(C,u)}):this.walk((C,u)=>{if(C.type==="rule"&&C.selector===m)return d(C,u)}):(d=m,this.walk((C,u)=>{if(C.type==="rule")return d(C,u)}))}walkAtRules(m,d){return d?m instanceof RegExp?this.walk((C,u)=>{if(C.type==="atrule"&&m.test(C.name))return d(C,u)}):this.walk((C,u)=>{if(C.type==="atrule"&&C.name===m)return d(C,u)}):(d=m,this.walk((C,u)=>{if(C.type==="atrule")return d(C,u)}))}walkComments(m){return this.walk((d,C)=>{if(d.type==="comment")return m(d,C)})}append(...m){for(let d of m){let C=this.normalize(d,this.last);for(let u of C)this.proxyOf.nodes.push(u);}return this.markDirty(),this}prepend(...m){m=m.reverse();for(let d of m){let C=this.normalize(d,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 d of this.nodes)d.cleanRaws(m);}insertBefore(m,d){let C=this.index(m),u=C===0?"prepend":!1,c=this.normalize(d,this.proxyOf.nodes[C],u).reverse();C=this.index(m);for(let P of c)this.proxyOf.nodes.splice(C,0,P);let y;for(let P in this.indexes)y=this.indexes[P],C<=y&&(this.indexes[P]=y+c.length);return this.markDirty(),this}insertAfter(m,d){let C=this.index(m),u=this.normalize(d,this.proxyOf.nodes[C]).reverse();C=this.index(m);for(let y of u)this.proxyOf.nodes.splice(C+1,0,y);let c;for(let y in this.indexes)c=this.indexes[y],C=m&&(this.indexes[C]=d-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,d,C){return C||(C=d,d={}),this.walkDecls(u=>{d.props&&!d.props.includes(u.prop)||d.fast&&!u.value.includes(d.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,d){if(typeof m=="string")m=v(l(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 p(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]||_.rebuild(C),C=C.proxyOf,C.parent&&C.parent.removeChild(C),C[i]&&f(C),typeof C.raws.before>"u"&&d&&typeof d.raws.before<"u"&&(C.raws.before=d.raws.before.replace(/\S/g,"")),C.parent=this.proxyOf,C))}getProxyProcessor(){return {set(m,d,C){return m[d]===C||(m[d]=C,(d==="name"||d==="params"||d==="selector")&&m.markDirty()),!0},get(m,d){return d==="proxyOf"?m:m[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...C)=>m[d](...C.map(u=>typeof u=="function"?(c,y)=>u(c.toProxy(),y):u)):d==="every"||d==="some"?C=>m[d]((u,...c)=>C(u.toProxy(),...c)):d==="root"?()=>m.root().toProxy():d==="nodes"?m.nodes.map(C=>C.toProxy()):d==="first"||d==="last"?m[d].toProxy():m[d]:m[d]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let m=this.lastEach;return this.indexes[m]=0,m}};_.registerParse=m=>{l=m;},_.registerRule=m=>{o=m;},_.registerAtRule=m=>{p=m;},_.registerRoot=m=>{g=m;},e.exports=_,_.default=_,_.rebuild=m=>{m.type==="atrule"?Object.setPrototypeOf(m,p.prototype):m.type==="rule"?Object.setPrototypeOf(m,o.prototype):m.type==="decl"?Object.setPrototypeOf(m,s.prototype):m.type==="comment"?Object.setPrototypeOf(m,a.prototype):m.type==="root"&&Object.setPrototypeOf(m,g.prototype),m[r]=!0,m.nodes&&m.nodes.forEach(d=>{_.rebuild(d);});};}),xd=me((t,e)=>{var i=Bn(),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);}),Pd=me((t,e)=>{var i=Bn(),r,s,a=class extends i{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[]);}removeChild(n,l){let o=this.index(n);return !l&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),super.removeChild(n)}normalize(n,l,o){let p=super.normalize(n);if(l){if(o==="prepend")this.nodes.length>1?l.raws.before=this.nodes[1].raws.before:delete l.raws.before;else if(this.first!==l)for(let g of p)g.raws.before=l.raws.before;}return p}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);}),_d=me((t,e)=>{var i={split(r,s,a){let n=[],l="",o=!1,p=0,g=!1,v="",f=!1;for(let _ of r)f?f=!1:_==="\\"?f=!0:g?_===v&&(g=!1):_==='"'||_==="'"?(g=!0,v=_):_==="("?p+=1:_===")"?p>0&&(p-=1):p===0&&s.includes(_)&&(o=!0),o?(l!==""&&n.push(l.trim()),l="",o=!1):l+=_;return (a||l!=="")&&n.push(l.trim()),n},space(r){let s=[" ",` +`," "];return i.split(r,s)},comma(r){return i.split(r,[","],!0)}};e.exports=i,i.default=i;}),Sd=me((t,e)=>{var i=Bn(),r=_d(),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,l=n?n[0]:","+this.raw("between","beforeOpen");this.selector=a.join(l);}};e.exports=s,s.default=s,i.registerRule(s);}),kd=me((t,e)=>{var i=af(),r=nf(),s=Wh(),a=xd(),n=Pd(),l=Sd(),o={empty:!0,space:!0};function p(v){for(let f=v.length-1;f>=0;f--){let _=v[f],m=_[3]||_[2];if(m)return m}}var g=class{constructor(v){this.input=v,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:v,start:{offset:0,line:1,column:1}};}createTokenizer(){this.tokenizer=r(this.input);}parse(){let v;for(;!this.tokenizer.endOfFile();)switch(v=this.tokenizer.nextToken(),v[0]){case"space":this.spaces+=v[1];break;case";":this.freeSemicolon(v);break;case"}":this.end(v);break;case"comment":this.comment(v);break;case"at-word":this.atrule(v);break;case"{":this.emptyRule(v);break;default:this.other(v);break}this.endFile();}comment(v){let f=new s;this.init(f,v[2]),f.source.end=this.getPosition(v[3]||v[2]);let _=v[1].slice(2,-2);if(/^\s*$/.test(_))f.text="",f.raws.left=_,f.raws.right="";else {let m=_.match(/^(\s*)([^]*\S)(\s*)$/);f.text=m[2],f.raws.left=m[1],f.raws.right=m[3];}}emptyRule(v){let f=new l;this.init(f,v[2]),f.selector="",f.raws.between="",this.current=f;}other(v){let f=!1,_=null,m=!1,d=null,C=[],u=v[1].startsWith("--"),c=[],y=v;for(;y;){if(_=y[0],c.push(y),_==="("||_==="[")d||(d=y),C.push(_==="("?")":"]");else if(u&&m&&_==="{")d||(d=y),C.push("}");else if(C.length===0)if(_===";")if(m){this.decl(c,u);return}else break;else if(_==="{"){this.rule(c);return}else if(_==="}"){this.tokenizer.back(c.pop()),f=!0;break}else _===":"&&(m=!0);else _===C[C.length-1]&&(C.pop(),C.length===0&&(d=null));y=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(f=!0),C.length>0&&this.unclosedBracket(d),f&&m){if(!u)for(;c.length&&(y=c[c.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(c.pop());this.decl(c,u);}else this.unknownWord(c);}rule(v){v.pop();let f=new l;this.init(f,v[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(v),this.raw(f,"selector",v),this.current=f;}decl(v,f){let _=new i;this.init(_,v[0][2]);let m=v[v.length-1];for(m[0]===";"&&(this.semicolon=!0,v.pop()),_.source.end=this.getPosition(m[3]||m[2]||p(v));v[0][0]!=="word";)v.length===1&&this.unknownWord(v),_.raws.before+=v.shift()[1];for(_.source.start=this.getPosition(v[0][2]),_.prop="";v.length;){let c=v[0][0];if(c===":"||c==="space"||c==="comment")break;_.prop+=v.shift()[1];}_.raws.between="";let d;for(;v.length;)if(d=v.shift(),d[0]===":"){_.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),_.raws.between+=d[1];(_.prop[0]==="_"||_.prop[0]==="*")&&(_.raws.before+=_.prop[0],_.prop=_.prop.slice(1));let C=[],u;for(;v.length&&(u=v[0][0],!(u!=="space"&&u!=="comment"));)C.push(v.shift());this.precheckMissedSemicolon(v);for(let c=v.length-1;c>=0;c--){if(d=v[c],d[1].toLowerCase()==="!important"){_.important=!0;let y=this.stringFrom(v,c);y=this.spacesFromEnd(v)+y,y!==" !important"&&(_.raws.important=y);break}else if(d[1].toLowerCase()==="important"){let y=v.slice(0),P="";for(let A=c;A>0;A--){let F=y[A][0];if(P.trim().indexOf("!")===0&&F!=="space")break;P=y.pop()[1]+P;}P.trim().indexOf("!")===0&&(_.important=!0,_.raws.important=P,v=y);}if(d[0]!=="space"&&d[0]!=="comment")break}v.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(_.raws.between+=C.map(c=>c[1]).join(""),C=[]),this.raw(_,"value",C.concat(v),f),_.value.includes(":")&&!f&&this.checkMissedSemicolon(v);}atrule(v){let f=new a;f.name=v[1].slice(1),f.name===""&&this.unnamedAtrule(f,v),this.init(f,v[2]);let _,m,d,C=!1,u=!1,c=[],y=[];for(;!this.tokenizer.endOfFile();){if(v=this.tokenizer.nextToken(),_=v[0],_==="("||_==="["?y.push(_==="("?")":"]"):_==="{"&&y.length>0?y.push("}"):_===y[y.length-1]&&y.pop(),y.length===0)if(_===";"){f.source.end=this.getPosition(v[2]),this.semicolon=!0;break}else if(_==="{"){u=!0;break}else if(_==="}"){if(c.length>0){for(d=c.length-1,m=c[d];m&&m[0]==="space";)m=c[--d];m&&(f.source.end=this.getPosition(m[3]||m[2]));}this.end(v);break}else c.push(v);else c.push(v);if(this.tokenizer.endOfFile()){C=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(f.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(f,"params",c),C&&(v=c[c.length-1],f.source.end=this.getPosition(v[3]||v[2]),this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),u&&(f.nodes=[],this.current=f);}end(v){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(v[2]),this.current=this.current.parent):this.unexpectedClose(v);}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(v){if(this.spaces+=v[1],this.current.nodes){let f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="");}}getPosition(v){let f=this.input.fromOffset(v);return {offset:v,line:f.line,column:f.col}}init(v,f){this.current.push(v),v.source={start:this.getPosition(f),input:this.input},v.raws.before=this.spaces,this.spaces="",v.type!=="comment"&&(this.semicolon=!1);}raw(v,f,_,m){let d,C,u=_.length,c="",y=!0,P,A;for(let F=0;FB+H[1],"");v.raws[f]={value:c,raw:F};}v[f]=c;}spacesAndCommentsFromEnd(v){let f,_="";for(;v.length&&(f=v[v.length-1][0],!(f!=="space"&&f!=="comment"));)_=v.pop()[1]+_;return _}spacesAndCommentsFromStart(v){let f,_="";for(;v.length&&(f=v[0][0],!(f!=="space"&&f!=="comment"));)_+=v.shift()[1];return _}spacesFromEnd(v){let f,_="";for(;v.length&&(f=v[v.length-1][0],f==="space");)_=v.pop()[1]+_;return _}stringFrom(v,f){let _="";for(let m=f;m=0&&(m=v[d],!(m[0]!=="space"&&(_+=1,_===2)));d--);throw this.input.error("Missed semicolon",m[0]==="word"?m[3]+1:m[2])}};e.exports=g;}),na=me((t,e)=>{var i=Bn(),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((l,o)=>{if(n&&l instanceof s||!n&&l.type===s)return a.call(this,l,o)})},e.exports={registerWalker:r};}),zn=me((t,e)=>{var i=$h();e.exports=class of extends i{static stringify(s,a){new of(a).stringify(s);}basic(s,a){let n=a||s.value,l=s.raws.after&&this.raw(s,"after")||"";this.builder(n,s,"start"),this.builder(l,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 l=n.raws.before?this.raw(n,"before"):"";l&&this.builder(l),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);}};}),Ed=me((t,e)=>{var i=On(),{registerWalker:r}=na(),{stringify:s}=zn(),a=class extends i{toString(n=s){return super.toString(n)}};r(a),e.exports=a;}),Cd=me((t,e)=>{var i=Wh(),{stringify:r}=zn(),s=/(\/\/)/,a=class extends i{static testInline(n){return s.test(n[1])}static tokenizeNext(n,l){let[o]=n,p=n.findIndex(d=>/\n/.test(d[1])),g=n,v=[];p>=0&&(g=n.slice(0,p),v=n.slice(p)),g=g.map(d=>d[1]);let f=g.concat("~~").join(""),_=g[g.length-1],m=["comment",f,o[2],o[3],_[2],_[3]];l.back([m,...v]);}static tokenizeInline(n,l){let[o,...p]=n,g=o[1].split(/(\/\/.+)/).filter(C=>!!C),v=[],[,,f,,_]=o,[,,,m,,d]=o;for(let C of g){let u=C.slice(0,2)==="//",c=u?"comment":"word";u&&(C+="~~"),C!==g[0]&&(m=d+1),d=m+C.length-1,v.push([c,C,f,m,_,d]);}l.back(v.concat(p));}toString(n=r){return super.toString(n)}};e.exports=a;}),hf=me((t,e)=>{var i=rf(),r=nf(),s=["*","-","%","+","/"],a=/([*/])/g,n=(v,f)=>{let[,,_,m,d,C]=v,u=v[1].slice(1,v[1].length-1),c=o(u);for(let P of c)if(P[0]!=="space"){let A=P[5]-P[3];P[2]=_,P[3]+=m,P[4]+=d-1,P[5]=P[3]+A;}let y=[["(","(",_,m,_,m],...c];y.push([")",")",_,C,d,C]);for(let P of y.reverse())f.back(P);},l=(v,f)=>{let _=v[1].split(/([,])/),m=[],[,,d,,C]=v,[,,,u,,c]=v;for(let y of _){y=y||",";let P=y===","?"comma":"word";y!==_[0]&&(u=c+1),c=u+y.length-1,m.push([P,y,d,u,C,c]);}for(let y of m.reverse())f.back(y);},o=v=>{let f=new i(v,{}),_=g(f),m=[];for(;!_.endOfFile();){let d=_.nextToken();m.push(d);}return m},p=(v,f)=>{let[,_,m,,d,C]=v,u=_.split(a),[,,,c]=v,y=u.map(P=>{let A=[s.includes(P)?"operator":"word",P,m,c,d,C];return c+=P.length,A});for(let P of y.reverse())f.back(P);},g=(...v)=>{let f=r(...v),_=f.nextToken;return f.nextToken=(...m)=>{let d=_(...m);if(!d)return d;let[C,u]=d;return C==="brackets"?(n(d,f),d=_(...m)):C==="word"&&(s.includes(u)?d[0]="operator":a.test(u)?(p(d,f),d=_(...m)):u.length>1&&u.includes(",")&&(l(d,f),d=_(...m))),d},f};e.exports={getTokens:o,tokenizer:g};}),lf=me((t,e)=>{var i=Bn(),{stringify:r}=zn(),s=class extends i{toString(a=r){return super.toString(a)}};e.exports=s;}),on=me((t,e)=>{var i=On(),{stringify:r}=zn(),s=class extends i{toString(a=r){return super.toString(a||{})}};e.exports=s;}),pf=me((t,e)=>{var{getTokens:i}=hf(),{registerWalker:r}=na(),s=on(),a=class extends s{constructor(n){super(n),this.type="punctuation";}static get chars(){return [",",":","(",")","[","]","{","}"]}static fromTokens(n,l){l.fromFirst(n,a);}static tokenizeBrackets(n,l){let[o,...p]=n,g=o[1].split(/([()])/g).filter(C=>!!C),v=[],[,,f,,_]=o,[,,,m,,d]=o;for(let C of g){let u=C==="("?"(":C===")"?")":"word";if(/^\s+$/.test(C)&&(u="space"),C!==g[0]&&(m=d+1),d=m+C.length-1,u==="word"){let c=i(C);for(let y of c)y[3]+=m-1,v.push(y);}else v.push([u,C,f,m,_,d]);}l.back(v.concat(p));}static tokenizeCommas(n,l){let[o,...p]=n,g=o[1].split(/([,])/g).filter(C=>!!C),v=[],[,,f,,_]=o,[,,,m,,d]=o;for(let C of g)C!==g[0]&&(m=d+1),d=m+C.length-1,v.push(["word",C,f,m,_,d]);l.back(v.concat(p));}};r(a),e.exports=a;}),wd=me((t,e)=>{var{getTokens:i}=hf(),{registerWalker:r}=na(),s=lf(),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"],l=["-webkit-","-moz-","-ms-","-o-"],o=new RegExp(`^(${l.join("|")})?(${n.join("|")})`,"i"),p=new RegExp(`^(\\${a.chars.join("|\\")})`),g=/^(hsla?|hwb|lab|lch|rgba?)$/i,v=/^var$/i,f=/^--[^\s]+$/,_=class 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"&&!p.test(m[0][1])&&(m[1][0]==="brackets"||m[1][0]==="(")}static fromTokens(m,d){let[[,,C,u]]=m,[c,y]=m.splice(0,2),P=new _({name:c[1]}),A=0,F=1,B=y;if(!o.test(P.name)&&!/^[a-zA-Z\-\.]+$/.test(P.name)){let mt=i(P.name);m.unshift(...mt,y),d.back(m);return}d.init(P,C,u),d.current=P,y[0]==="brackets"&&(F=y[1].match(/[(]/g).length-1);let H=[];for(let mt of m)A{var{registerWalker:i}=na(),r=lf(),s=class extends r{constructor(a={}){super(a),this.type="interpolation",this.prefix=a.prefix||"",this.nodes||(this.nodes=[]);}static test(a,n){let{prefix:l}=n.options.interpolation,[o,p]=a;return a.length>1&&o[0]==="word"&&l===o[1]&&p[0]==="{"}static fromTokens(a,n){let[[,,l,o]]=a,[p]=a.splice(0,2),[,g]=p,v=new s({prefix:g}),f=[],_=!1,m,d="{";n.init(v,l,o),n.current=v;for(let u of a)_?f.push(u):(u[1]==="}"&&(_=!0),d+=u[1],m=u);_||n.unclosedBracket(p),v.params=d;let C=d.slice(1,-1);if(C.length){let{parse:u}=Uh(),{nodes:c}=u(C,n.options);for(let y of c)v.push(y);}n.end(m),n.back(f);}};i(s),e.exports=s;}),Td=me((t,e)=>{var{registerWalker:i}=na(),r=on(),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)}?$`),l=class extends r{constructor(o={}){super(o),this.type="numeric",this.unit=o.unit||"";}static fromTokens(o,p){p.fromFirst(o,l);let[[,g]]=o,[,v,f=""]=g.match(n),{lastNode:_}=p;_.unit=f,_.value=v;}static test(o){return n.test(o)}};i(l),e.exports=l;}),Md=me((t,e)=>{var{registerWalker:i}=na(),r=on(),s=["+","-","/","*","%","=","<=",">=","<",">"],a=new RegExp("([/|*}])"),n=/^[*/]\b/,l=class extends r{constructor(o){super(o),this.type="operator";}static get chars(){return s}static fromTokens(o,p){p.fromFirst(o,l);}static get regex(){return a}static test(o,p){let[g]=o,[,v]=g,{lastNode:f}=p;return f&&f.type==="func"&&n.test(v)}static tokenize(o,p){let[g,...v]=o,[,f,_,,m,d]=g,C=f.split(a).filter(y=>!!y),[,,,u]=g,c=C.map(y=>{let P=["word",y,_,u,m,d];return u+=y.length,P});p.back(c.concat(v));}};i(l),e.exports=l;}),Dd=me(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)};}),Fd=me((t,e)=>{var{unquote:i}=Dd(),{registerWalker:r}=na(),s=on(),a=class extends s{constructor(n){super(n),this.type="quoted",n&&n.value&&(this.contents=i(n.value),[this.quote]=n.value);}static fromTokens(n,l){l.fromFirst(n,a);}};r(a),e.exports=a;}),Id=me((t,e)=>{var{registerWalker:i}=na(),r=on(),s=class extends r{constructor(a){super(a),this.type="unicodeRange";}static fromTokens(a,n){n.fromFirst(a,s);}static test(a){return /U\+(\d|\w)+(-\w+)?(\?+)?/.test(a)}};i(s),e.exports=s;}),Ld=me((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]};}),Vd=me((t,e)=>{e.exports=i=>{if(typeof i!="string")throw new TypeError("Expected a string");try{return new URL(i),!0}catch{return !1}};}),Rd=me((t,e)=>{var i=Ld(),r=Vd(),{registerWalker:s}=na(),a=on(),n=/^\\(.+)/,l=/^#(.+)/,o=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,p=Object.keys(i),g=class extends a{constructor(v){super(v),this.type="word",this.isColor=!1,this.isHex=!1,this.isUrl=!1,this.isVariable=!1;}static fromTokens(v,f){f.fromFirst(v,g);let{lastNode:_}=f,{value:m}=_;_.isColor=o.test(m)||p.includes(m.toLowerCase()),_.isHex=l.test(m),_.isUrl=m.startsWith("//")?r(`http:${m}`):r(m),_.isVariable=g.testVariable(v[0],f);}static testEscaped(v){let[f,_]=v,[m,d]=f;return m==="word"&&(n.test(d)||d==="\\"&&_&&!/^\s+$/.test(_[1]))}static testHex(v){let[f,_]=v;return f==="word"&&l.test(_)}static testVariable(v,f){let[_,m]=v,{prefixes:d}=f.options.variables,C=new RegExp(`^(${d.join("|")})`);return _==="word"&&C.test(m)}static testWord(v,f){let[_]=v;return g.testEscaped(v)||g.testHex(_)||g.testVariable(_,f)}};s(g),e.exports=g;}),Od=me((t,e)=>{var i=kd(),r=Ed(),s=Cd(),a=wd(),n=Ad(),l=Td(),o=Md(),p=pf(),g=Fd(),v=Id(),f=Rd(),_={ignoreUnknownWords:!1,interpolation:!1,parentNode:null,variables:{prefixes:["--"]}};e.exports=class extends i{constructor(m,d={}){super(m),this.lastNode=null,this.options=Object.assign({},_,d),this.parentNode=this.options.parentNode;}back(m){for(let d of m.reverse())this.tokenizer.back(d);}comment(m){super.comment(m);let d=s.testInline(m),C=this.lastNode;C.inline=d,Object.setPrototypeOf(C,s.prototype);}fromFirst(m,d){let[C]=m,[,u,c,y]=C,P=new d({value:u});this.init(P,c,y),this.current=P,this.end(C),this.back(m.slice(1));}init(m,d,C){super.init(m,d,C),this.lastNode=m;}other(m){let d=[],C=[],u=m,c=null,y=null;for(;u;)[c]=u,C.push(u),c==="("||c==="["?(y||(y=u),d.push(c==="("?")":"]")):c===d[d.length-1]&&(d.pop(),d.length===0&&(y=null)),u=this.tokenizer.nextToken();d.length>0&&this.unclosedBracket(y),this.unknownWord(C);}parse(){let m;for(;!this.tokenizer.endOfFile();)switch(m=this.tokenizer.nextToken(),m[0]){case"space":this.spaces+=m[1];break;case"comment":this.comment(m);break;case"at-word":this.atrule(m),Object.setPrototypeOf(this.lastNode,r.prototype),this.lastNode.type="atword";break;default:this.other(m);break}this.endFile();}unknownWord(m){let[d]=m,[C,u]=d;if(p.chars.includes(C))p.fromTokens(m,this);else if(C==="word"&&o.test(m,this))o.fromTokens(m,this);else if(a.test(m))a.fromTokens(m,this);else if(this.options.interpolation&&n.test(m,this))n.fromTokens(m,this);else if(C==="brackets")p.tokenizeBrackets(m,this);else if(C==="comma")p.fromTokens(m,this);else if(C==="operator")o.fromTokens(m,this);else if(C==="string")g.fromTokens(m,this);else if(C==="word")if(u===",")p.fromTokens(m,this);else if(u==="//")s.tokenizeNext(m,this);else if(s.testInline(d)){let{parentNode:c}=this;c&&c.type==="func"&&c.name==="url"?f.fromTokens(m,this):s.tokenizeInline(m,this);}else u.includes(",")?p.tokenizeCommas(m,this):f.testWord(m,this)?f.fromTokens(m,this):l.test(u)?l.fromTokens(m,this):v.test(u)?v.fromTokens(m,this):o.chars.includes(u)?o.fromTokens(m,this):/^[\w-]+$/.test(u)?f.fromTokens(m,this):o.regex.test(u)?o.tokenize(m,this):this.options.ignoreUnknownWords?f.fromTokens(m,this):super.unknownWord(m);else super.unknownWord(m);}};}),Uh=me((t,e)=>{var i=rf(),r=Od(),{stringify:s}=zn();e.exports={parse(a,n){let l=new i(a,n),o=new r(l,n);o.parse();let{root:p}=o,g=p.toString;function v(f){return g.bind(p)(f||e.exports.stringify)}return p.toString=v.bind(p),o.root},stringify:s,nodeToString(a){let n="";return e.exports.stringify(a,l=>{n+=l;}),n}};}),Bd=me(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,l){s+=i.visit(n),l0&&s("Invalid input not EOF"),L}function n(){return A(l)}function l(){return o("linear-gradient",i.linearGradient,g)||o("repeating-linear-gradient",i.repeatingLinearGradient,g)||o("radial-gradient",i.radialGradient,_)||o("repeating-radial-gradient",i.repeatingRadialGradient,_)}function o(L,K,U){return p(K,function(qt){var It=U();return It&&(O(i.comma)||s("Missing comma before color stops")),{type:L,orientation:It,colorStops:A(F)}})}function p(L,K){var U=O(L);if(U){O(i.startCall)||s("Missing (");var qt=K(U);return O(i.endCall)||s("Missing )"),qt}}function g(){return v()||f()}function v(){return D("directional",i.sideOrCorner,1)}function f(){return D("angular",i.angleValue,1)}function _(){var L,K=m(),U;return K&&(L=[],L.push(K),U=r,O(i.comma)&&(K=m(),K?L.push(K):r=U)),L}function m(){var L=d()||C();if(L)L.at=c();else {var K=u();if(K){L=K;var U=c();U&&(L.at=U);}else {var qt=y();qt&&(L={type:"default-radial",at:qt});}}return L}function d(){var L=D("shape",/^(circle)/i,0);return L&&(L.style=bt()||u()),L}function C(){var L=D("shape",/^(ellipse)/i,0);return L&&(L.style=_t()||u()),L}function u(){return D("extent-keyword",i.extentKeywords,1)}function c(){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:_t(),y:_t()}}function A(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=_t(),L}function B(){return nt()||ut()||ct()||H()}function H(){return D("literal",i.literalColor,0)}function nt(){return D("hex",i.hexColor,1)}function ct(){return p(i.rgbColor,function(){return {type:"rgb",value:A(mt)}})}function ut(){return p(i.rgbaColor,function(){return {type:"rgba",value:A(mt)}})}function mt(){return O(i.number)[1]}function _t(){return D("%",i.percentageValue,1)||et()||bt()}function et(){return D("position-keyword",i.positionKeywords,1)}function bt(){return D("px",i.pixelValue,1)||D("em",i.emValue,1)}function D(L,K,U){var qt=O(K);if(qt)return {type:L,value:qt[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=Fs(gd(),1);Bi.default.stringify;Bi.default.fromJSON;Bi.default.plugin;zd=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;Th=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},Nd="root",Gd="rule",jd="declaration";Hd={grad:.9,turn:360,rad:360/(2*Math.PI)},aa=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},cr=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},ff=function(t){return (t=isFinite(t)?t%360:0)>0?t:t+360},Ip=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)}},Mh=function(t){return {r:cr(t.r),g:cr(t.g),b:cr(t.b),a:cr(t.a,3)}},$d=/^#([0-9a-f]{3,8})$/i,go=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},cf=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),l=n?a===e?(i-r)/n:a===i?2+(r-e)/n:4+(e-i)/n:0;return {h:60*(l<0?l+6:l),s:a?n/a*100:0,v:a/255*100,a:s}},uf=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),l=r*(1-(e-a)*i),o=r*(1-(1-e+a)*i),p=a%6;return {r:255*[r,l,n,n,o,r][p],g:255*[o,r,r,l,n,n][p],b:255*[n,n,o,r,r,l][p],a:s}},Lp=function(t){return {h:ff(t.h),s:bs(t.s,0,100),l:bs(t.l,0,100),a:bs(t.a)}},Vp=function(t){return {h:cr(t.h),s:cr(t.s),l:cr(t.l),a:cr(t.a,3)}},Rp=function(t){return uf((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;},Fn=function(t){return {h:(e=cf(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;},Wd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ud=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Jd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Xd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Lh={string:[[function(t){var e=$d.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?cr(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?cr(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=Jd.exec(t)||Xd.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:Ip({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=Wd.exec(t)||Ud.exec(t);if(!e)return null;var i,r,s=Lp({h:(i=e[1],r=e[2],r===void 0&&(r="deg"),Number(i)*(Hd[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Rp(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)?Ip({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=Lp({h:Number(e),s:Number(i),l:Number(r),a:Number(a)});return Rp(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(l){return {h:ff(l.h),s:bs(l.s,0,100),v:bs(l.v,0,100),a:bs(l.a)}}({h:Number(e),s:Number(i),v:Number(r),a:Number(a)});return uf(n)},"hsv"]]},Op=function(t,e){for(var i=0;i=.5},t.prototype.toHex=function(){return e=Mh(this.rgba),i=e.r,r=e.g,s=e.b,n=(a=e.a)<1?go(cr(255*a)):"","#"+go(i)+go(r)+go(s)+n;var e,i,r,s,a,n;},t.prototype.toRgb=function(){return Mh(this.rgba)},t.prototype.toRgbString=function(){return e=Mh(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 Vp(Fn(this.rgba))},t.prototype.toHslString=function(){return e=Vp(Fn(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=cf(this.rgba),{h:cr(e.h),s:cr(e.s),v:cr(e.v),a:cr(e.a,3)};var e;},t.prototype.invert=function(){return Yr({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),Yr(Dh(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),Yr(Dh(this.rgba,-e))},t.prototype.grayscale=function(){return Yr(Dh(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),Yr(Bp(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),Yr(Bp(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"?Yr({r:(i=this.rgba).r,g:i.g,b:i.b,a:e}):cr(this.rgba.a,3);var i;},t.prototype.hue=function(e){var i=Fn(this.rgba);return typeof e=="number"?Yr({h:e,s:i.s,l:i.l,a:i.a}):cr(i.h)},t.prototype.isEqual=function(e){return this.toHex()===Yr(e).toHex()},t}(),Yr=function(t){return t instanceof Vh?t:new Vh(t)},zp=[],mf=function(t){t.forEach(function(e){zp.indexOf(e)<0&&(e(Vh,Lh),zp.push(e));});};bo={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},Zd=new Set(["combinator","comma"]),Kd=new Set(["not","is","where","has","matches","-moz-any","-webkit-any","nth-child","nth-last-child"]),Np=/(?[\dn+-]+)\s+of\s+(?.+)/,Qd={"nth-child":Np,"nth-last-child":Np},t0=t=>{switch(t){case"pseudo-element":case"pseudo-class":return new RegExp(bo[t].source.replace("(?\xB6*)","(?.*)"),"gu");default:return bo[t]}};r0=/(['"])([^\\\n]+?)\1/g,s0=/\\./g;o0=Fs(Uh(),1),gf=function(t){if(t==null)return f0;if(typeof t=="string")return p0(t);if(typeof t=="object")return Array.isArray(t)?h0(t):l0(t);if(typeof t=="function")return Co(t);throw new Error("Expected function, string, or object as test")};Rh=!0,xo=!1,c0="skip",u0=function(t,e,i,r){typeof e=="function"&&typeof i!="function"&&(r=i,i=e,e=null);let s=gf(e),a=r?-1:1;n(t,void 0,[])();function n(l,o,p){let g=l&&typeof l=="object"?l:{};if(typeof g.type=="string"){let f=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(l.type+(f?"<"+f+">":""))+")"});}return v;function v(){let f=[],_,m,d;if((!e||s(l,o,p[p.length-1]||null))&&(f=m0(i(l,p)),f[0]===xo))return f;if(l.children&&f[0]!==c0)for(m=(r?l.children.length:-1)+a,d=p.concat(l);m>-1&&m{try{if(!t.startsWith("linear-gradient"))return !1;let e=(0,Jh.parse)(t);return !(e.length===0||e[0]?.type!=="linear-gradient")}catch{return !1}},bf=t=>{try{if(!t.startsWith("radial-gradient"))return !1;let e=(0,Jh.parse)(t);return !(e.length===0||e[0]?.type!=="radial-gradient")}catch{return !1}},Gp=t=>{let e=[],i=[];if(!(vf(t)||bf(t)))return [];let r=(0, Jh.parse)(t)[0];return r?.colorStops.forEach((s,a)=>{let n=[],l=0;if(s.type==="hex"||s.type==="literal"){let p=Yr(s.value);n.push(parseFloat((p.rgba.r/255).toFixed(2)),parseFloat((p.rgba.g/255).toFixed(2)),parseFloat((p.rgba.b/255).toFixed(2))),l=p.rgba.a;}else if(["rgb","rgba"].includes(s.type)){let p=Yr({r:Number(s.value[0]),g:Number(s.value[1]),b:Number(s.value[2]),a:s.value[3]?Number(s.value[3]):1});n.push(parseFloat((p.rgba.r/255).toFixed(2)),parseFloat((p.rgba.g/255).toFixed(2)),parseFloat((p.rgba.b/255).toFixed(2))),l=p.rgba.a;}let o=parseFloat((a/(r.colorStops.length-1||1)).toFixed(2));s.length?.value&&Number(s.length.value)>0&&(o=parseFloat((Number(s.length.value)/100).toFixed(2))),e.push(o,...n),i.push(o,l);}),e.push(...i),e},jp=(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}));}});};mf([df]);vo=(t,e,i,r=!1)=>{let s=new Set,a=Array.isArray(t)?t:[t];for(let n of a)Nr(n,"attribute",(l,o,p)=>{l.title===i&&l.children[0]?.value===e&&p&&p.type!=="root"&&(r?p===n&&s.add(p):s.add(p));});return Array.from(s)},d0=(t,e)=>{let i=[];for(let r of e){let s=[],a=yf(r);n0(a,(n,l)=>{let o=s.length>0?s:t;if(n.type==="id")s=vo(o,n.name,"layer-xml-id",l?.type==="compound");else if(n.type==="class")s=vo(o,n.name,"css-class",l?.type==="compound");else if(n.type==="type"){let p="",g=null;n.name==="FillShape"?(g="shape-type",p="fl"):n.name==="StrokeShape"?(g="shape-type",p="st"):n.name==="GradientFillShape"?(g="shape-type",p="gf"):n.name==="GradientStrokeShape"?(g="shape-type",p="gs"):n.name==="ShapeLayer"?(g="layer-type",p=4):n.name==="SolidColorLayer"?(g="layer-type",p=1):n.name==="ImageLayer"&&(g="layer-type",p=2),g&&p&&(s=vo(o,p,g));}else if(n.type==="attribute"){let p=null,g=n.value;n.name==="id"?p="layer-xml-id":n.name==="class"?p="css-class":n.name==="name"?p="name":n.name==="shape-type"?p="shape-type":n.name==="layer-type"&&(p="layer-type",g=Number(n.value)),p&&g&&["number","string"].includes(typeof g)&&(s=vo(o,g,p,l?.type==="compound"));}}),i.push(...s);}return Array.from(new Set(i))},Ih=t=>t.includes("-color"),y0=t=>t==="nonzero"||t==="evenodd",g0=t=>t.endsWith("%")?parseFloat(t):parseFloat(t)*100,v0=t=>t==="nonzero"?1:2,b0=t=>{try{new URL(t);}catch{return !1}return !0},x0=t=>{let e=(0, o0.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 ""},P0=t=>{let e={};for(let i of t)if(Ih(i.property)&&Yr(i.value).isValid()){let r=Yr(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(Ih(i.property)&&vf(i.value)){let r=Gp(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(Ih(i.property)&&bf(i.value)){let r=Gp(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"&&y0(i.value))e["fill-rule"]=v0(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=x0(i.value);b0(r)&&(e.src=r);}return e},_0=(t,e,i)=>{for(let r in e)switch(r){case"fill-color":let s=e[r];t.title==="shape-fill"?Array.isArray(s)&&Nr(t,"array",a=>a.title==="color-rgba-children"&&a.children.length===4?(a.children=a.children.map((n,l)=>({...n,value:s[l]})),xo):Rh):t.title==="layer-solid-color"&&Nr(t,"attribute",a=>{if(a.title==="hex-color"&&a.children[0]?.value&&s?.length===4){let n=Yr({r:s[0]*255,g:s[1]*255,b:s[2]*255,a:s[3]}).toHex();a.children[0].value=n;}});break;case"stroke-color":if(t.title==="shape-stroke"){let a=e[r];Array.isArray(a)&&Nr(t,"array",n=>n.title==="static-values-children"&&n.children.length===4?(n.children=n.children.map((l,o)=>({...l,value:a[o]})),xo):Rh);}break;case"stroke-width":(t.title==="shape-stroke"||t.title==="shape-gradient-stroke")&&Nr(t,"element",a=>{a.title==="stroke-width"&&Nr(a,"attribute",(n,l,o)=>{n.title==="static-value"&&n.children[0]?.value&&n.children[0].valueType==="number"&&o?.title==="animated-value-static"&&(n.children[0].value=e[r]);});});break;case"fill-rule":["shape-fill","shape-gradient-fill"].includes(t.title)&&Nr(t,"attribute",a=>{a.title==="fill-rule-value"&&a.children[0]?.value&&(a.children[0].value=e[r]);});break;case"opacity":["shape-stroke","shape-fill","shape-gradient-fill","shape-gradient-stroke"].includes(t.title)&&Nr(t,"element",a=>{["stroke-opacity","opacity"].includes(a.title)&&Nr(a,"attribute",(n,l,o)=>{n.title==="static-value"&&n.children[0]?.value&&n.children[0].valueType==="number"&&o?.title==="animated-value-static"&&(n.children[0].value=e[r]);});});break;case"hidden":(t.title.includes("shape")||t.title.includes("layer"))&&Nr(t,"attribute",a=>{a.title==="hidden"&&a.children[0]&&(a.children[0].value=e[r]);});break;case"linear-gradient-fill-color":case"linear-gradient-stroke-color":jp(t,e[r],"linear");break;case"radial-gradient-fill-color":case"radial-gradient-stroke-color":jp(t,e[r],"radial");break;case"src":if(t.title==="layer-image"){let a=t.children.find(n=>n.title==="image-id");if(a?.type==="attribute"){let n=a.children[0]?.value;Nr(i,"object",l=>{l.title==="asset-image"&&l.children.some(o=>o.title==="id"&&o.children[0]?.type==="primitive"&&o.children[0].value===n)&&Nr(l,"attribute",o=>{o.title==="embedded"&&o.children[0]?o.children[0].value=0:o.title==="path"&&o.children[0]?o.children[0].value="":o.title==="filename"&&o.children[0]&&(o.children[0].value=e[r]);});});}}break}},S0=(t={lss:""})=>async e=>{let i=qd(t.lss);Nr(i,"rule",r=>{let s=d0(e,r.selectors),a=P0(r.children);for(let n of s)_0(n,a,e);});},k0=S0;});async function _f(t,e){let[{relottie:i},{default:r}]=await Promise.all([Promise.resolve().then(()=>(Fp(),Dp)),Promise.resolve().then(()=>(Pf(),xf))]),s=await i().use(r,{lss:e}).process(JSON.stringify(t));return JSON.parse(s.value)}var wo=Pr(()=>{});function To(){throw new Error("Cycle detected")}function Yh(){if(hn>1)hn--;else {for(var t,e=!1;Nn!==void 0;){var i=Nn;for(Nn=void 0,Xh++;i!==void 0;){var r=i.o;if(i.o=void 0,i.f&=-3,!(8&i.f)&&kf(i))try{i.c();}catch(s){e||(t=s,e=!0);}i=r;}}if(Xh=0,hn--,e)throw t}}function Sf(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 Zr(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0;}function E0(t){return new Zr(t)}function kf(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 Ef(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 Cf(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){Zr.call(this,void 0),this.x=t,this.s=void 0,this.g=Ao-1,this.f=4;}function wf(t){var e=t.u;if(t.u=void 0,typeof e=="function"){hn++;var i=Wi;Wi=void 0;try{e();}catch(r){throw t.f&=-2,t.f|=8,Zh(t),r}finally{Wi=i,Yh();}}}function Zh(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 C0(t){if(Wi!==this)throw new Error("Out-of-order effect");Cf(this),Wi=t,this.f&=-2,8&this.f&&Zh(this),Yh();}function Gn(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32;}function w0(t){var e=new Gn(t);try{e.c();}catch(i){throw e.d(),i}return e.d.bind(e)}var Wi,Nn,hn,Xh,Ao,Af,Mo=Pr(()=>{Wi=void 0,Nn=void 0,hn=0,Xh=0,Ao=0;Zr.prototype.h=function(){return !0};Zr.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);};Zr.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);}};Zr.prototype.subscribe=function(t){var e=this;return w0(function(){var i=e.value,r=32&this.f;this.f&=-33;try{t(i);}finally{this.f|=r;}})};Zr.prototype.valueOf=function(){return this.value};Zr.prototype.toString=function(){return this.value+""};Zr.prototype.toJSON=function(){return this.value};Zr.prototype.peek=function(){return this.v};Object.defineProperty(Zr.prototype,"value",{get:function(){var t=Sf(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){Xh>100&&To(),this.v=t,this.i++,Ao++,hn++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N();}finally{Yh();}}}});(Wa.prototype=new Zr).h=function(){if(this.f&=-3,1&this.f)return !1;if((36&this.f)==32||(this.f&=-5,this.g===Ao))return !0;if(this.g=Ao,this.f|=1,this.i>0&&!kf(this))return this.f&=-2,!0;var t=Wi;try{Ef(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,Cf(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);}Zr.prototype.S.call(this,t);};Wa.prototype.U=function(t){if(this.t!==void 0&&(Zr.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()||To(),16&this.f)throw this.v;return this.v};Object.defineProperty(Wa.prototype,"value",{get:function(){1&this.f&&To();var t=Sf(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});Gn.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();}};Gn.prototype.S=function(){1&this.f&&To(),this.f|=1,this.f&=-9,wf(this),Ef(this),hn++;var t=Wi;return Wi=this,C0.bind(this,t)};Gn.prototype.N=function(){2&this.f||(this.f|=2,this.o=Nn,Nn=this);};Gn.prototype.d=function(){this.f|=8,1&this.f||Zh(this);};Af=class{_state;_prevState;constructor(t){this._prevState=t,this._state=E0(t);}setState(t){this._prevState=this._state.value,this._state.value=t;}subscribe(t){return this._state.subscribe(e=>t(e,this._prevState))}};});var tc={};qs(tc,{DotLottieStateMachineManager:()=>Sy});function hl(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(l){n={error:l};}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"||yn(r)?{target:r,event:t}:ke(ke({},r),{event:t})});return i}function H0(t){if(!(t===void 0||t===I0))return Is(t)}function $f(t,e,i,r,s){var a=t.options.guards,n={state:s,cond:e,_event:r};if(e.type===il)return (a?.[e.name]||e.predicate)(i,r.data,n);var l=a?.[e.type];if(!l)throw new Error("Guard '".concat(e.type,"' is not implemented on machine '").concat(t.id,"'."));return l(i,r.data,n)}function Wf(t){return typeof t=="string"?{type:t}:t}function Oo(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 Fo(t,e){return "".concat(t,":invocation[").concat(e,"]")}function sl(t){return (t.type===Yn||t.type===Ho&&t.to===dn.Internal)&&typeof t.delay!="number"}function al(t,e){return e&&e[t]||void 0}function Jn(t,e){var i;if(gi(t)||typeof t=="number"){var r=al(t,e);mi(r)?i={type:t,exec:r}:r?i=r:i={type:t,exec:void 0};}else if(mi(t))i={type:t.name||t.toString(),exec:t};else {var r=al(t.type,e);if(mi(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 fl(t){var e=Jn(t);return ke(ke({id:gi(t)?t:e.id},e),{type:e.type})}function $0(t,e){return {type:Yn,event:typeof t=="function"?t:$o(t),delay:e?e.delay:void 0,id:e?.id}}function W0(t,e,i,r){var s={_event:i},a=kr(mi(t.event)?t.event(e,i.data,s):t.event),n;if(gi(t.delay)){var l=r&&r[t.delay];n=mi(l)?l(e,i.data,s):l;}else n=mi(t.delay)?t.delay(e,i.data,s):t.delay;return ke(ke({},t),{type:Yn,_event:a,delay:n})}function U0(t,e){return {to:e?e.to:void 0,type:Ho,event:mi(t)?t:$o(t),delay:e?e.delay:void 0,id:e&&e.id!==void 0?e.id:mi(t)?t.name:Gf(t)}}function J0(t,e,i,r){var s={_event:i},a=kr(mi(t.event)?t.event(e,i.data,s):t.event),n;if(gi(t.delay)){var l=r&&r[t.delay];n=mi(l)?l(e,i.data,s):l;}else n=mi(t.delay)?t.delay(e,i.data,s):t.delay;var o=mi(t.to)?t.to(e,i.data,s):t.to;return ke(ke({},t),{to:o,_event:a,event:a.data,delay:n})}function Z0(t){var e=fl(t);return {type:ki.Start,activity:e,exec:void 0}}function K0(t){var e=mi(t)?t:fl(t);return {type:ki.Stop,activity:e,exec:void 0}}function Q0(t,e,i){var r=mi(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 ty(t,e){var i=e?"#".concat(e):"";return "".concat(ki.After,"(").concat(t,")").concat(i)}function Io(t,e){var i="".concat(ki.DoneState,".").concat(t),r={type:i,data:e};return r.toString=function(){return i},r}function Bo(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 jo(t,e,i,r,s,a,n){n===void 0&&(n=!1);var l=n?[]:ey(s),o=l.length?If(i,r,l,e):i,p=n?[i]:void 0,g=[];function v(m,d){var C;switch(d.type){case Yn:{var u=W0(d,o,r,t.options.delays);return a&&typeof u.delay=="number"&&a(u,o,r),u}case Ho:var c=J0(d,o,r,t.options.delays);return a&&c.to!==dn.Internal&&(m==="entry"?g.push(c):a(c,o,r)),c;case Bf:{var y=X0(d,o,r);return a?.(y,o,r),y}case D0:{var P=d,A=(C=P.conds.find(function(D){var O=Hf(D.cond,t.options.guards);return !O||$f(t,O,o,r,a?void 0:e)}))===null||C===void 0?void 0:C.actions;if(!A)return [];var F=ci(jo(t,e,o,r,[{type:m,actions:ka(Is(A),t.options.actions)}],a,n),2),B=F[0],H=F[1];return o=H,p?.push(o),B}case F0:{var A=d.get(o,r.data);if(!A)return [];var nt=ci(jo(t,e,o,r,[{type:m,actions:ka(Is(A),t.options.actions)}],a,n),2),ct=nt[0],ut=nt[1];return o=ut,p?.push(o),ct}case ll:{var y=Q0(d,o,r);return a?.(y,i,r),y}case Of:{o=If(o,r,[d],a?void 0:e),p?.push(o);break}default:var mt=Jn(d,t.options.actions),_t=mt.exec;if(a)a(mt,o,r);else if(_t&&p){var et=p.length-1,bt=ke(ke({},mt),{exec:function(D){for(var O=[],k=1;k0;){var p=s.shift();i=t.transition(i,p,o),r.forEach(function(g){return g.next(i)});}a=!1;}},l=ay({id:e.id,send:function(p){s.push(p),n();},getSnapshot:function(){return i},subscribe:function(p,g,v){var f=Oo(p,g,v);return r.add(f),f.next(i),{unsubscribe:function(){r.delete(f);}}}}),o={parent:e.parent,self:l,id:e.id||"anonymous",observers:r};return i=t.start?t.start(o):i,l}function Qf(t,e){var i=new gy(t,e);return i}function vy(t){if(typeof t=="string"){var e={type:t};return e.toString=function(){return t},e}return t}function Lo(t){return ke(ke({type:el},t),{toJSON:function(){t.onDone,t.onError;var e=hl(t,["onDone","onError"]);return ke(ke({},e),{type:el,src:vy(t.src)})}})}function Py(t,e){return new xy(t,e)}var ke,ki,dn,tl,ll,Yn,Ho,Rf,A0,Of,Bf,T0,el,Tf,M0,zf,D0,F0,Nf,Mf,il,I0,Do,V0,G0,Sa,mn,ka,X0,Y0,ey,cn,qo,Us,fy,Vf,Kh,cy,jn,yy,ur,gy,Vo,ol,Qh,pn,fn,by,xy,un,_y,Sy,ec=Pr(()=>{ul();fo();Wo();wo();Mo();en();ys();ke=function(){return ke=Object.assign||function(t){for(var e,i=1,r=arguments.length;i0});if(!d)return this.next(i,r);var C=Ni(Object.keys(n).map(function(u){return n[u].configuration}));return {transitions:m,exitSet:Ni(_.map(function(u){return u.exitSet})),configuration:C,source:i,actions:Ni(Object.keys(n).map(function(u){return n[u].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,kr(i))},t.prototype.next=function(e,i){var r,s,a=this,n=i.name,l=[],o=[],p;try{for(var g=ii(this.getCandidates(n)),v=g.next();!v.done;v=g.next()){var f=v.value,_=f.cond,m=f.in,d=e.context,C=m?gi(m)&&fn(m)?e.matches(Un(this.getStateNodeById(m).path,this.delimiter)):pl(Un(m,this.delimiter),V0(this.path.slice(0,-2))(e.value)):!0,u=!1;try{u=!_||$f(this.machine,_,d,i,e);}catch(P){throw new Error("Unable to evaluate guard '".concat(_.name||_.type,"' in transition for event '").concat(n,"' in state node '").concat(this.id,`': +`).concat(P.message))}if(u&&C){f.target!==void 0&&(o=f.target),l.push.apply(l,Fi([],ci(f.actions),!1)),p=f;break}}}catch(P){r={error:P};}finally{try{v&&!v.done&&(s=g.return)&&s.call(g);}finally{if(r)throw r.error}}if(p){if(!o.length)return {transitions:[p],exitSet:[],configuration:e.value?[this]:[],source:e,actions:l};var c=Ni(o.map(function(P){return a.getRelativeStateNodes(P,e.historyValue)})),y=!!p.internal;return {transitions:[p],exitSet:y?[]:Ni(o.map(function(P){return a.getPotentiallyReenteringNodes(P)})),configuration:c,source:e,actions:l}}},t.prototype.getPotentiallyReenteringNodes=function(e){if(this.order0,_=f?e.configuration:i?i.configuration:[],m=zo(_,this),d=f?ny(this.machine,v):void 0,C=i?i.historyValue?i.historyValue:e.source?this.machine.historyValue(i.value):void 0:void 0,u=this.getActions(new Set(_),m,e,r,a,i,s),c=i?ke({},i.activities):{};try{for(var y=ii(u),P=y.next();!P.done;P=y.next()){var A=P.value;try{for(var F=(o=void 0,ii(A.actions)),B=F.next();!B.done;B=F.next()){var H=B.value;H.type===tl?c[H.activity.id||H.activity.type]=H:H.type===ll&&(c[H.activity.id||H.activity.type]=!1);}}catch(Gt){o={error:Gt};}finally{try{B&&!B.done&&(p=F.return)&&p.call(F);}finally{if(o)throw o.error}}}}catch(Gt){n={error:Gt};}finally{try{P&&!P.done&&(l=y.return)&&l.call(y);}finally{if(n)throw n.error}}var nt=ci(jo(this,i,r,a,u,s,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),ct=nt[0],ut=nt[1],mt=ci(z0(ct,sl),2),_t=mt[0],et=mt[1],bt=ct.filter(function(Gt){var Ot;return Gt.type===tl&&((Ot=Gt.activity)===null||Ot===void 0?void 0:Ot.type)===el}),D=bt.reduce(function(Gt,Ot){return Gt[Ot.activity.id]=iy(Ot.activity,g.machine,ut,a),Gt},i?ke({},i.children):{}),O=new Us({value:d||i.value,context:ut,_event:a,_sessionid:i?i._sessionid:null,historyValue:d?C?N0(C,d):void 0:i?i.historyValue:void 0,history:!d||e.source?i:void 0,actions:d?et:[],activities:d?c:i?i.activities:{},events:[],configuration:_,transitions:e.transitions,children:D,done:m,tags:Lf(_),machine:this}),k=r!==ut;O.changed=a.name===zf||k;var L=O.history;L&&delete L.history;var K=!m&&(this._transient||v.some(function(Gt){return Gt._transient}));if(!f&&(!K||a.name===Vo))return O;var U=O;if(!m)for(K&&(U=this.resolveRaisedTransition(U,{type:A0},a,s));_t.length;){var qt=_t.shift();U=this.resolveRaisedTransition(U,qt._event,a,s);}var It=U.changed||(L?!!U.actions.length||k||typeof L.value!=typeof U.value||!Kf(U.value,L.value):void 0);return U.changed=It,U.history=L,U},t.prototype.getStateNode=function(e){if(fn(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=fn(e)?e.slice(ol.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"&&fn(e))try{return this.getStateNodeById(e.slice(1))}catch{}for(var i=rl(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||pn;switch(this.type){case"parallel":return qn(this.initialStateValue,function(a,n){return a?r.getStateNode(n).resolve(e[n]||a):pn});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?qn(e,function(a,n){return a?r.getStateNode(n).resolve(a):pn}):this.initialStateValue||{};default:return e||pn}},t.prototype.getResolvedPath=function(e){if(fn(e)){var i=this.machine.idMap[e.slice(ol.length)];if(!i)throw new Error("Unable to find state node '".concat(e,"'"));return i.path}return rl(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=Df(this.states,function(r){return r.initialStateValue||pn},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??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=fn(i.target)?No(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=Ro(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:Df(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(Ro(s).map(function(n){return r.getFromRelativePath(n)})):r.initialStateNodes}var a=R0(r.path,"states")(e).current;return gi(a)?[r.getStateNode(a)]:Ni(Ro(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 l=ii(Object.keys(a)),o=l.next();!o.done;o=l.next()){var p=o.value,g=a[p];if(g.states)try{for(var v=(r=void 0,ii(g.events)),f=v.next();!f.done;f=v.next()){var _=f.value;n.add("".concat(_));}}catch(m){r={error:m};}finally{try{f&&!f.done&&(s=v.return)&&s.call(v);}finally{if(r)throw r.error}}}}catch(m){e={error:m};}finally{try{o&&!o.done&&(i=l.return)&&i.call(l);}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(l){throw new Error("Invalid transition definition for state node '".concat(i.id,`': +`).concat(l.message))}else return i.getStateNodeByPath(a)})},t.prototype.formatTransition=function(e){var i=this,r=H0(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),l=ke(ke({},e),{actions:ka(Is(e.actions)),cond:Hf(e.cond,a),target:n,source:this,internal:s,eventType:e.event,toJSON:function(){return ke(ke({},l),{target:l.target?l.target.map(function(o){return "#".concat(o.id)}):void 0,source:"#".concat(i.id)})}});return l},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=Qh,l=a[n],o=l===void 0?[]:l,p=hl(a,[typeof n=="symbol"?n:n+""]);s=Ni(Object.keys(p).map(function(c){var y=ln(c,p[c]);return y}).concat(ln(Qh,o)));}var g=this.config.always?ln("",this.config.always):[],v=this.config.onDone?ln(String(Io(this.id)),this.config.onDone):[],f=Ni(this.invoke.map(function(c){var y=[];return c.onDone&&y.push.apply(y,Fi([],ci(ln(String(Bo(c.id)),c.onDone)),!1)),c.onError&&y.push.apply(y,Fi([],ci(ln(String(Hn(c.id)),c.onError)),!1)),y})),_=this.after,m=Ni(Fi(Fi(Fi(Fi([],ci(v),!1),ci(f),!1),ci(s),!1),ci(g),!1).map(function(c){return Is(c).map(function(y){return r.formatTransition(y)})}));try{for(var d=ii(_),C=d.next();!C.done;C=d.next()){var u=C.value;m.push(u);}}catch(c){e={error:c};}finally{try{C&&!C.done&&(i=d.return)&&i.call(d);}finally{if(e)throw e.error}}return m},t}();un={click:"onClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",complete:"onComplete",after:"onAfter",enter:"onEnter",show:"onShow"};Object.values(un);_y=Object.keys(un),Sy=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=Qf(Py(e)),this._addEventListeners(),this._service.start();}stop(){this._removeEventListeners(),this._service?.stop(),this._player.stop();}_removeEventListeners(){this._requiresDomElement();for(let[t,e]of this._domListeners)t==="visibilityChange"&&this._player.stopPlayOnShow(),this._domElement?.removeEventListener(t,e),this._domListeners.delete(t);for(let[t,e]of this._playerListeners)this._player.removeEventListener(t,e),this._playerListeners.delete(t);}_addEventListeners(){this._requiresDomElement();let t=i=>{this._service.send({type:i});},e=i=>{function r(){t(i);}return r};this._service.subscribe(i=>{if(typeof i.changed>"u"||i.changed){this._removeEventListeners();for(let r of i.nextEvents)if(_y.filter(s=>s!=="complete"&&s!=="show").includes(r)){let s=e(r);this._domListeners.set(r,s),this._domElement?.addEventListener(r,s,{once:!0});}else if(r==="complete"){let s=e(r);this._player.addEventListener(r,s),this._playerListeners.set(r,s);}else if(r==="show"){let s=e(r);this._player.addIntersectionObserver({callbackOnIntersect:a=>{a>0&&(a!==100&&this._onShowPrevValue!==a&&s(),this._onShowPrevValue=a);},threshold:[]}),this._domListeners.set("visibilityChange",s);}}});}subscribe(t){throw Ke(t.toString())}_transformToXStateSchema(t){let e=new Map;for(let i of t){let r={},s={};if(s.id=i.descriptor.id,typeof i.descriptor.initial<"u"&&(s.initial=i.descriptor.initial),typeof i<"u"){let a=i.states;for(let n in a)if(typeof a[n]<"u"&&a[n]){let l=a[n],o=l.playbackSettings,p=Object.keys(l).filter(f=>f.startsWith("on")),g={},v={};for(let f of p)if(typeof l[f]<"u"){let _=l[f];if(f===un.after){let m=_;v[m.ms]={target:_?.state??""};}else f===un.enter?g[so(un,f)]={target:_?.state??""}:g[so(un,f)]={target:_?.state??""};}r[n]={entry:()=>{!this._player.getAnimationInstance()||l.animationId&&l.animationId!==this._player.currentAnimationId?this._player.play(l.animationId,()=>({...Gr,...o})).then(()=>{this._updatePlaybackSettings(o);}).catch(f=>{Hs(`State machine error: ${f.message}`);}):this._updatePlaybackSettings(o);},exit:()=>{typeof o.segments<"u"&&this._player.resetSegments(!1),typeof o.playOnScroll<"u"&&this._player.stopPlayOnScroll();},on:g,after:v,meta:o};}}s.states=r,e.set(s.id,s);}return e}_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 ic(t,e){let[{DotLottieStateMachineManager:i}]=await Promise.all([Promise.resolve().then(()=>(ec(),tc))]);if(!t.length)throw Ke("No state machines available inside this .lottie!");return new i(t,e)}var Wo=Pr(()=>{en();});var rc={};qs(rc,{default:()=>Ey});var ky,Ey,sc=Pr(()=>{ys();ky=me((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(f){i({data:f});}},a={postMessage:function(f){s.onmessage({data:f});}};function n(f){if(window.Worker&&window.Blob&&getWebWorker()){var _=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),m=URL.createObjectURL(_);return new Worker(m)}return i=f,s}function l(){r||(r=n(function(f){function _(){function d(et,bt){var D,O,k=et.length,L,K,U,qt;for(O=0;O=0;bt-=1)if(et[bt].ty==="sh")if(et[bt].ks.k.i)P(et[bt].ks.k);else for(k=et[bt].ks.k.length,O=0;OD[0]?!0:D[0]>et[0]?!1:et[1]>D[1]?!0:D[1]>et[1]?!1:et[2]>D[2]?!0:D[2]>et[2]?!1:null}var F=function(){var et=[4,4,14];function bt(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)),c+=1;}.bind(this),50);}function a(u){var c=r(u,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",c),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var P={img:y,assetData:u};return P}function n(u){var c=r(u,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=c;var P={img:y,assetData:u};return P}function l(u){var c={assetData:u},y=r(u,this.assetsPath,this.path);return dataManager.loadData(y,function(P){c.img=P,this._footageLoaded();}.bind(this),function(){c.img={},this._footageLoaded();}.bind(this)),c}function o(u,c){this.imagesLoadedCb=c;var y,P=u.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 H(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=H:y=H;while(Math.abs(B)>a&&++nt=s?C(c,ct,y,P):ut===0?ct:d(c,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:l,release:o};function l(){var p;return r?(r-=1,p=a[r]):p=e(),p}function o(p){r===s&&(a=pooling.double(a),s*=2),i&&i(p),a[r]=p,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&&c<.001}function i(f,_,m,d,C,u,c,y,P){if(m===0&&u===0&&P===0)return e(f,_,d,C,c,y);var A=t.sqrt(t.pow(d-f,2)+t.pow(C-_,2)+t.pow(u-m,2)),F=t.sqrt(t.pow(c-f,2)+t.pow(y-_,2)+t.pow(P-m,2)),B=t.sqrt(t.pow(c-d,2)+t.pow(y-C,2)+t.pow(P-u,2)),H;return A>F?A>B?H=A-F-B:H=B-F-A:B>F?H=B-F-A:H=F-A-B,H>-1e-4&&H<1e-4}var r=function(){return function(f,_,m,d){var C=getDefaultCurveSegments(),u,c,y,P,A,F=0,B,H=[],nt=[],ct=bezierLengthPool.newElement();for(y=m.length,u=0;uc?-1:1,A=!0;A;)if(d[u]<=c&&d[u+1]>c?(y=(c-d[u])/(d[u+1]-d[u]),A=!1):u+=P,u<0||u>=C-1){if(u===C-1)return m[u];A=!1;}return m[u]+(m[u+1]-m[u])*y}function p(f,_,m,d,C,u){var c=o(C,u),y=1-c,P=t.round((y*y*y*f[0]+(c*y*y+y*c*y+y*y*c)*m[0]+(c*c*y+y*c*c+c*y*c)*d[0]+c*c*c*_[0])*1e3)/1e3,A=t.round((y*y*y*f[1]+(c*y*y+y*c*y+y*y*c)*m[1]+(c*c*y+y*c*c+c*y*c)*d[1]+c*c*c*_[1])*1e3)/1e3;return [P,A]}var g=createTypedArray("float32",8);function v(f,_,m,d,C,u,c){C<0?C=0:C>1&&(C=1);var y=o(C,c);u=u>1?1:u;var P=o(u,c),A,F=f.length,B=1-y,H=1-P,nt=B*B*B,ct=y*B*B*3,ut=y*y*B*3,mt=y*y*y,_t=B*B*H,et=y*B*H+B*y*H+B*B*P,bt=y*y*H+B*y*P+y*B*P,D=y*y*P,O=B*H*H,k=y*H*H+B*P*H+B*H*P,L=y*P*H+B*P*P+y*H*P,K=y*P*P,U=H*H*H,qt=P*H*H+H*P*H+H*H*P,It=P*P*H+H*P*P+P*H*P,Gt=P*P*P;for(A=0;A=p.t-i){o.h&&(o=p),s=0;break}if(p.t-i>t){s=a;break}a=u||t=u?P.points.length-1:0;for(f=P.points[A].point.length,v=0;v=H&&F=u)r[0]=y[0],r[1]=y[1],r[2]=y[2];else if(t<=c)r[0]=o.s[0],r[1]=o.s[1],r[2]=o.s[2];else {var et=createQuaternion(o.s),bt=createQuaternion(y),D=(t-c)/(u-c);quaternionToEuler(r,slerp(et,bt,D));}else for(a=0;a=u?_=1:t1e-6?(f=Math.acos(_),m=Math.sin(f),d=Math.sin((1-i)*f)/m,C=Math.sin(i*f)/m):(d=1-i,C=i),r[0]=d*s+C*o,r[1]=d*a+C*p,r[2]=d*n+C*g,r[3]=d*l+C*v,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),l=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]=l/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),l=Math.sin(e/2),o=Math.sin(i/2),p=Math.sin(r/2),g=s*a*n-l*o*p,v=l*o*n+s*a*p,f=l*a*n+s*o*p,_=s*o*n-l*a*p;return [v,f,_,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,l){this.setXYAt(t,e,"v",n,l),this.setXYAt(i,r,"o",n,l),this.setXYAt(s,a,"i",n,l);},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,l;for(l=s;l=et[et.length-1].t-this.offsetTime)A=et[et.length-1].s?et[et.length-1].s[0]:et[et.length-2].e[0],B=!0;else {for(var bt=P,D=et.length-1,O=!0,k,L,K;O&&(k=et[bt],L=et[bt+1],!(L.t-this.offsetTime>u));)bt=L.t-this.offsetTime)mt=1;else if(uy&&u>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]),qt=D(k[5]),It=D(k[12]),Gt=D(k[13]);return "matrix("+L+","+K+","+U+","+qt+","+It+","+Gt+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=n,this.rotateY=l,this.rotateZ=o,this.skew=g,this.skewFromAxis=v,this.shear=p,this.scale=f,this.setTransform=_,this.translate=m,this.transform=d,this.multiply=C,this.applyToPoint=A,this.applyToX=F,this.applyToY=B,this.applyToZ=H,this.applyToPointArray=_t,this.applyToTriplePoints=mt,this.applyToPointStringified=et,this.toCSS=bt,this.to2dCSS=O,this.clone=y,this.cloneFromProps=P,this.equals=c,this.inversePoints=ut,this.inversePoint=ct,this.getInverseMatrix=nt,this._t=this.transform,this.isIdentity=u,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=[],l,o=a.length,p;for(l=0;lr+i)){var g,v;p.s*s<=r?g=0:g=(p.s*s-r)/i,p.e*s>=r+i?v=1:v=(p.e*s-r)/i,n.push([g,v]);}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,l=this.shapes.length,o,p,g,v,f,_=0;if(i===e)for(n=0;n=0;n-=1)if(d=this.shapes[n],d.shape._mdf){for(C=d.localShapeCollection,C.releaseShapes(),this.m===2&&l>1?(P=this.calculateShapeEdges(e,i,d.totalShapeLength,y,_),y+=d.totalShapeLength):P=[[u,c]],p=P.length,o=0;o=1?m.push({s:d.totalShapeLength*(u-1),e:d.totalShapeLength*(c-1)}):(m.push({s:d.totalShapeLength*u,e:d.totalShapeLength}),m.push({s:0,e:d.totalShapeLength*(c-1)}));var A=this.addShapes(d,m[0]);if(m[0].s!==m[0].e){if(m.length>1){var F=d.shape.paths.shapes[d.shape.paths._length-1];if(F.c){var B=A.pop();this.addPaths(A,C),A=this.addShapes(d,m[1],B);}else this.addPaths(A,C),A=this.addShapes(d,m[1]);}this.addPaths(A,C);}}d.shape.paths=C;}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;ie.e){i.c=!1;break}else e.s<=p&&e.e>=p+g.addedLength?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[l],s[a].v[l],i,v,C),C=!1):(_=bez.getNewSegment(s[a].v[l-1],s[a].v[l],s[a].o[l-1],s[a].i[l],(e.s-p)/g.addedLength,(e.e-p)/g.addedLength,f[l-1]),this.addSegmentFromArray(_,i,v,C),C=!1,i.c=!1),p+=g.addedLength,v+=1;if(s[a].c&&f.length){if(g=f[l-1],p<=e.e){var u=f[l-1].addedLength;e.s<=p&&e.e>=p+u?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[0],s[a].v[0],i,v,C),C=!1):(_=bez.getNewSegment(s[a].v[l-1],s[a].v[0],s[a].o[l-1],s[a].i[0],(e.s-p)/u,(e.e-p)/u,f[l-1]),this.addSegmentFromArray(_,i,v,C),C=!1,i.c=!1);}else i.c=!1;p+=g.addedLength,v+=1;}if(i._length&&(i.setXYAt(i.v[d][0],i.v[d][1],"i",d),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),p>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/p,0),v=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/p,0)):(g=this.p.pv,v=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/p,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){g=[],v=[];var f=this.px,_=this.py;f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t?(g[0]=f.getValueAtTime((f.keyframes[0].t+.01)/p,0),g[1]=_.getValueAtTime((_.keyframes[0].t+.01)/p,0),v[0]=f.getValueAtTime(f.keyframes[0].t/p,0),v[1]=_.getValueAtTime(_.keyframes[0].t/p,0)):f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t?(g[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/p,0),g[1]=_.getValueAtTime(_.keyframes[_.keyframes.length-1].t/p,0),v[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/p,0),v[1]=_.getValueAtTime((_.keyframes[_.keyframes.length-1].t-.01)/p,0)):(g=[f.pv,_.pv],v[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/p,f.offsetTime),v[1]=_.getValueAtTime((_._caching.lastFrame+_.offsetTime-.01)/p,_.offsetTime));}else v=t,g=v;this.v.rotate(-Math.atan2(g[1]-v[1],g[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 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,p,g){if(this.elem=o,this.frameId=-1,this.propType="transform",this.data=p,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(g||o),p.p&&p.p.s?(this.px=PropertyFactory.getProp(o,p.p.x,0,0,this),this.py=PropertyFactory.getProp(o,p.p.y,0,0,this),p.p.z&&(this.pz=PropertyFactory.getProp(o,p.p.z,0,0,this))):this.p=PropertyFactory.getProp(o,p.p||{k:[0,0,0]},1,0,this),p.rx){if(this.rx=PropertyFactory.getProp(o,p.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(o,p.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(o,p.rz,0,degToRads,this),p.or.k[0].ti){var v,f=p.or.k.length;for(v=0;v0;)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(f):Math.ceil(f),d=this.pMatrix.props,C=this.rMatrix.props,u=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var c=0;if(f>0){for(;cm;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),c-=1;_&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-_,!0),c-=_);}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)),c!==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(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(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]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),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 l=t.point(a[n])[e];lr&&(r=l);}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),l=splitData(e);intersectsImpl(n[0],l[0],i+1,r,s,a),intersectsImpl(n[0],l[1],i+1,r,s,a),intersectsImpl(n[1],l[0],i+1,r,s,a),intersectsImpl(n[1],l[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],l=[r[0],r[1],1],o=crossProduct(crossProduct(s,a),crossProduct(n,l));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 l=i-Math.PI/2,o=i+Math.PI/2,p=e[0]+Math.cos(i)*r*s,g=e[1]-Math.sin(i)*r*s;t.setTripleAt(p,g,p+Math.cos(l)*a,g-Math.sin(l)*a,p+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 l=getProjectingAngle(e,i),o=e.v[i%e._length],p=e.v[i===0?e._length-1:i-1],g=e.v[(i+1)%e._length],v=a===2?Math.sqrt(Math.pow(o[0]-p[0],2)+Math.pow(o[1]-p[1],2)):0,f=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],l,n,r,f/((s+1)*2),v/((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 l=(i[1]-i[0])/(1-i[0]);return a=a[1].split(l),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,l,o,p=[];for(n=0;n=0;n-=1)o=PolynomialBezier.shapeSegmentInverted(t,n),p.push(offsetSegmentSplit(o,e));p=pruneIntersections(p);var g=null,v=null;for(n=0;n0&&(qt=!1),qt){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 v.indexOf(k)!==-1}function B(D){return D===o}function H(D){return D===l}function nt(D){var O=A(D);return O>=p&&O<=g}function ct(D){return nt(D.substr(0,2))&&nt(D.substr(2,2))}function ut(D){return i.indexOf(D)!==-1}function mt(D,O){var k=A(D.substr(O,2));if(k!==r)return !1;var L=0;for(O+=2;L<5;){if(k=A(D.substr(O,2)),kn)return !1;L+=1,O+=2;}return A(D.substr(O,2))===s}function _t(){this.isLoaded=!0;}var et=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);};et.isModifier=F,et.isZeroWidthJoiner=B,et.isFlagEmoji=ct,et.isRegionalCode=nt,et.isCombinedCharacter=ut,et.isRegionalFlag=mt,et.isVariationSelector=H,et.BLACK_FLAG_CODE_POINT=r;var bt={addChars:u,addFonts:C,getCharData:c,getFontByName:P,measureText:y,checkLoadedFonts:m,setIsLoaded:_t};return et.prototype=bt,et}();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",f),this.element.maskedElement.setAttribute(c,"url("+getLocationHref()+"#"+f+")"),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 l;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;)u=f.transformers[nt].mProps._mdf||u,H-=1,nt-=1;if(u)for(H=A-f.styles[y].lvl,nt=f.transformers.length-1;H>0;)B.multiply(f.transformers[nt].mProps.v),H-=1,nt-=1;}else B=t;if(F=f.sh.paths,d=F._length,u){for(C="",m=0;m=1?_t=.99:_t<=-1&&(_t=-.99);var et=ut*_t,bt=Math.cos(mt+f.a.v)*et+C[0],D=Math.sin(mt+f.a.v)*et+C[1];m.setAttribute("fx",bt),m.setAttribute("fy",D),d&&!f.g._collapsable&&(f.of.setAttribute("fx",bt),f.of.setAttribute("fy",D));}}}function g(v,f,_){var m=f.style,d=f.d;d&&(d._mdf||_)&&d.dashStr&&(m.pElem.setAttribute("stroke-dasharray",d.dashStr),m.pElem.setAttribute("stroke-dashoffset",d.dashoffset[0])),f.c&&(f.c._mdf||_)&&m.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||_)&&m.pElem.setAttribute("stroke-opacity",f.o.v),(f.w._mdf||_)&&(m.pElem.setAttribute("stroke-width",f.w.v),m.msElem&&m.msElem.setAttribute("stroke-width",f.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=[],l=!1;for(r=0;r1&&l&&this.setShapesAsAnimated(n);}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;o-=1){if(C=this.searchProcessedElement(t[o]),C?e[o]=i[C-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")C?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),f.push(e[o].style);else if(t[o].ty==="gr"){if(!C)e[o]=this.createGroupElement(t[o]);else for(v=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,l=!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,l=!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,l=0,o,p=i.m.g,g=0,v=0,f=0,_=[],m=0,d=0,C,u,c=e.getFontByName(t.f),y,P=0,A=getFontProperties(c);t.fWeight=A.weight,t.fStyle=A.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 H=!0,nt=t.sz[0],ct=t.sz[1],ut,mt;H;){mt=this.buildFinalText(t.t),ut=0,m=0,a=mt.length,F=t.tr/1e3*t.finalSize;var _t=-1;for(s=0;snt&&mt[s]!==" "?(_t===-1?a+=1:s=_t,ut+=t.finalLineHeight||t.finalSize*1.2,mt.splice(s,_t===s?1:0,"\r"),_t=-1,m=0):(m+=P,m+=F);ut+=c.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&ctd?m:d,m=-2*F,o="",n=!0,f+=1):o=bt,e.chars?(y=e.getCharData(bt,c.fStyle,e.getFontByName(t.f).fFamily),P=n?0:y.w*t.finalSize/100):P=e.measureText(o,t.f,t.finalSize),bt===" "?et+=P+F:(m+=P+F+et,et=0),r.push({l:P,an:P,add:g,n,anIndexes:[],val:o,line:f,animatorJustifyOffset:0}),p==2){if(g+=P,o===""||o===" "||s===a-1){for((o===""||o===" ")&&(g-=P);v<=s;)r[v].an=g,r[v].ind=l,r[v].extra=P,v+=1;l+=1,g=0;}}else if(p==3){if(g+=P,o===""||s===a-1){for(o===""&&(g-=P);v<=s;)r[v].an=g,r[v].ind=l,r[v].extra=P,v+=1;g=0,l+=1;}}else r[l].ind=l,r[l].extra=0,l+=1;if(t.l=r,d=m>d?m:d,_.push(m),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=d,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0;}t.lineWidths=_;var D=i.a,O,k;u=D.length;var L,K,U=[];for(C=0;C0?n=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:p=1+this.xe.v/100;var g=BezierFactory.getBezierEasing(n,l,o,p).get,v=0,f=this.finalS,_=this.finalE,m=this.data.sh;if(m===2)_===f?v=a>=_?1:0:v=t(0,e(.5/(_-f)+(a-f)/(_-f),1)),v=g(v);else if(m===3)_===f?v=a>=_?0:1:v=1-t(0,e(.5/(_-f)+(a-f)/(_-f),1)),v=g(v);else if(m===4)_===f?v=0:(v=t(0,e(.5/(_-f)+(a-f)/(_-f),1)),v<.5?v*=2:v=1-2*(v-.5)),v=g(v);else if(m===5){if(_===f)v=0;else {var d=_-f;a=e(t(0,a+.5-f),_-f);var C=-d/2+a,u=d/2;v=Math.sqrt(1-C*C/(u*u));}v=g(v);}else m===6?(_===f?v=0:(a=e(t(0,a+.5-f),_-f),v=(1+Math.cos(Math.PI+Math.PI*2*a/(_-f)))/2),v=g(v)):(a>=i(f)&&(a-f<0?v=t(0,e(e(_,1)-(f-a),1)):v=t(0,e(_-a,1))),v=g(v));if(this.sm.v!==100){var c=this.sm.v*.01;c===0&&(c=1e-8);var y=.5-c*.5;v1&&(v=1));}return v*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,l=this.o.v/n,o=this.s.v/n+l,p=this.e.v/n+l;if(o>p){var g=o;o=p,p=g;}this.finalS=o,this.finalE=p;}},extendPrototype([DynamicPropertyContainer],r);function s(a,n,l){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=m+be||!A?(nt=(m+be-C)/d.partialLength,Gt=P.point[0]+(d.point[0]-P.point[0])*nt,Ot=P.point[1]+(d.point[1]-P.point[1])*nt,a.translate(-i[0]*f[g].an*.005,-(i[1]*et)*.01),u=!1):A&&(C+=d.partialLength,c+=1,c>=A.length&&(c=0,y+=1,F[y]?A=F[y].points:ut.v.c?(c=0,y=0,A=F[y].points):(C-=d.partialLength,A=null)),A&&(P=d,d=A[c],B=d.partialLength));It=f[g].an/2-f[g].add,a.translate(-It,0,0);}else It=f[g].an/2-f[g].add,a.translate(-It,0,0),a.translate(-i[0]*f[g].an*.005,-i[1]*et*.01,0);for(k=0;kt?this.textSpans[t].span:createNS(l?"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,l){var A=createNS("g");o.appendChild(A),this.textSpans[t].childSpan=A;}this.textSpans[t].span=o,this.layerElement.appendChild(o);}o.style.display="inherit";}if(p.reset(),v&&(n[t].n&&(f=-d,_+=i.yOffset,_+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(i,p,n[t].line,f,_),f+=n[t].l||0,f+=d),l){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 H=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(H.layerElement),H.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 v&&o.setAttribute("transform","translate("+p.props[12]+","+p.props[13]+")"),o.textContent=n[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}v&&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,l;for(a=0;a=0;a-=1){if(v=this.searchProcessedElement(t[a]),v?e[a]=i[v-1]:t[a]._shouldRender=r,t[a].ty==="fl"||t[a].ty==="st"||t[a].ty==="gf"||t[a].ty==="gs")v?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],m),p.push(e[a].style);else if(t[a].ty==="gr"){if(!v)e[a]=this.createGroupElement(t[a]);else for(o=e[a].it.length,l=0;l=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,l=r._length;i.length=0;var o=t.transforms.finalTransform;for(n=0;n=1?g=.99:g<=-1&&(g=-.99);var v=o*g,f=Math.cos(p+e.a.v)*v+n[0],_=Math.sin(p+e.a.v)*v+n[1];s=a.createRadialGradient(f,_,0,n[0],n[1],o);}var m,d=t.g.p,C=e.g.c,u=1;for(m=0;ma&&o==="xMidYMid slice"||ss&&l==="meet"||as&&l==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:p==="xMax"&&(as&&l==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,g==="YMid"&&(a>s&&l==="meet"||as&&l==="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[f].push(this.calculateF(o,t,e,i,r,f))):(p=n*n-4*l*a,p>=0&&(g=(-n+bmSqrt(p))/(2*a),g>0&&g<1&&s[f].push(this.calculateF(g,t,e,i,r,f)),v=(-n-bmSqrt(p))/(2*a),v>0&&v<1&&s[f].push(this.calculateF(v,t,e,i,r,f)))));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],l=Math.sqrt(n[2]*n[2]+n[0]*n[0]),o=Math.atan2(n[1],l),p=Math.atan2(n[0],-n[2]);this.mat.rotateY(p).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 v,f,_;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 l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=l,s.webkitTransform=l;}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,l=(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,l=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+n+","+l+",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=p;)ct/=2,ut/=2,mt>>>=1;return (ct+mt)/ut};return nt.int32=function(){return H.g(4)|0},nt.quick=function(){return H.g(4)/4294967296},nt.double=nt,C(c(H.S),t),(P.pass||A||function(ct,ut,mt,_t){return _t&&(_t.S&&m(_t,H),ct.state=function(){return m(H,{})}),mt?(e[n]=ct,ut):ct})(nt,B,"global"in P?P.global:this==e,P.state)}e["seed"+n]=f;function _(y){var P,A=y.length,F=this,B=0,H=F.i=F.j=0,nt=F.S=[];for(A||(y=[A++]);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?p/(2-s-a):p/(s+a),s){case e:n=(i-r)/p+(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 l=r<.5?r*(1+i):r+i-r*i,o=2*r-l;s=hue2rgb(o,l,e+1/3),a=hue2rgb(o,l,e),n=hue2rgb(o,l,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 l,o=r.length,p=createTypedArray("float32",o);for(l=0;l1){for(s=0;s1?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){var l,o=s.length,p=createTypedArray("float32",o);for(l=0;ldata.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;iC.length-1)&&(_=C.length-1),y=C[C.length-1-_].t,c=u-y);var P,A,F;if(f==="pingpong"){var B=Math.floor((d-y)/c);if(B%2!==0)return this.getValueAtTime((c-(d-y)%c+y)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var H=this.getValueAtTime(y/this.comp.globalData.frameRate,0),nt=this.getValueAtTime(u/this.comp.globalData.frameRate,0),ct=this.getValueAtTime(((d-y)%c+y)/this.comp.globalData.frameRate,0),ut=Math.floor((d-y)/c);if(this.pv.length){for(F=new Array(H.length),A=F.length,P=0;P=u)return this.pv;var c,y;m?(_?c=Math.abs(this.elem.comp.globalData.frameRate*_):c=Math.max(0,this.elem.data.op-u),y=u+c):((!_||_>C.length-1)&&(_=C.length-1),y=C[_].t,c=y-u);var P,A,F;if(f==="pingpong"){var B=Math.floor((u-d)/c);if(B%2===0)return this.getValueAtTime(((u-d)%c+u)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var H=this.getValueAtTime(u/this.comp.globalData.frameRate,0),nt=this.getValueAtTime(y/this.comp.globalData.frameRate,0),ct=this.getValueAtTime((c-(u-d)%c+u)/this.comp.globalData.frameRate,0),ut=Math.floor((u-d)/c)+1;if(this.pv.length){for(F=new Array(H.length),A=F.length,P=0;P1?(C-d)/(_-1):1,c=0,y=0,P;this.pv.length?P=createTypedArray("float32",this.pv.length):P=0;for(var A;c<_;){if(A=this.getValueAtTime(d+c*u),this.pv.length)for(y=0;yu){var F=c,B=m.c&&c===y-1?0:c+1,H=(u-P)/C[c].addedLength;A=bez.getPointInSegment(m.v[F],m.v[B],m.o[F],m.i[B],H,C[c]);break}else P+=C[c].addedLength;c+=1;}return A||(A=m.c?[m.v[0][0],m.v[0][1]]:[m.v[m._length-1][0],m.v[m._length-1][1]]),A},vectorOnPath:function(f,_,m){f==1?f=this.v.c:f==0&&(f=.999);var d=this.pointOnPath(f,_),C=this.pointOnPath(f+.001,_),u=C[0]-d[0],c=C[1]-d[1],y=Math.sqrt(Math.pow(u,2)+Math.pow(c,2));if(y===0)return [0,0];var P=m==="tangent"?[u/y,c/y]:[-c/y,u/y];return P},tangentOnPath:function(f,_){return this.vectorOnPath(f,_,"tangent")},normalOnPath:function(f,_){return this.vectorOnPath(f,_,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([g],o),extendPrototype([g],p),p.prototype.getValueAtTime=l,p.prototype.initiateExpression=ExpressionManager.initiateExpression;var v=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,_,m,d,C){var u=v(f,_,m,d,C);return u.propertyIndex=_.ix,u.lock=!1,m===3?expressionHelpers.searchExpressions(f,_.pt,u):m===4&&expressionHelpers.searchExpressions(f,_.ks,u),u.k&&f.addDynamicProperty(u),u};}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=p?v=m<0?r:s:v=r+_*Math.pow((l-t)/m,1/i),g[f]=v,f+=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 l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",r+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,t.appendChild(l);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 p=createNS("feFlood");p.setAttribute("flood-color","#00ff00"),p.setAttribute("flood-opacity","1"),p.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=p,t.appendChild(p);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 v=this.createMergeNode(r,[r+"_drop_shadow_4",s]);t.appendChild(v);}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);}}(),l=function(){return function(F){var B=r[F.id],H=B.container,nt=B.elements;a(F.tree,H,nt);}}();function o(F,B){for(var H,nt=0;nt"u"?(H.canvas=mt,H.instructionsHandler=_(mt)):(mt instanceof OffscreenCanvas||(et=mt.transferControlToOffscreen(),ct.rendererSettings.canvas=et),ut.push(et));}r[B]=H,t.postMessage({type:"load",payload:{params:ct,id:B}},ut);}),nt}var A={loadAnimation:P};return A}();return lottie});}),Ey=ky();});var ac={};qs(ac,{default:()=>wy});var Cy,wy,nc=Pr(()=>{ys();Cy=me((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(E){s=!!E;},l=function(){return s},o=function(E){r=E;},p=function(){return r};function g(E){return document.createElement(E)}function v(E,I){var q,Y=E.length,ot;for(q=0;q1?q[1]=1:q[1]<=0&&(q[1]=0),L(q[0],q[1],q[2])}function qt(E,I){var q=K(E[0]*255,E[1]*255,E[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(E,I){var q=K(E[0]*255,E[1]*255,E[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 E=[],I,q;for(I=0;I<256;I+=1)q=I.toString(16),E[I]=q.length===1?"0"+q:q;return function(Y,ot,rt){return Y<0&&(Y=0),ot<0&&(ot=0),rt<0&&(rt=0),"#"+E[Y]+E[ot]+E[rt]}})();var Gt=function(E){C=!!E;},Ot=function(){return C},ee=function(E){u=E;},ae=function(){return u},le=function(E){H=E;},ye=function(){return H},de=function(E){c=E;};function Xt(E){return document.createElementNS(i,E)}function pe(E){"@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(E)}var Wt=function(){var E=1,I=[],q,Y,ot={onmessage:function(){},postMessage:function(Ct){q({data:Ct});}},rt={postMessage:function(Ct){ot.onmessage({data:Ct});}};function xt(Ct){if(window.Worker&&window.Blob&&l()){var b=new Blob(["var _workerSelf = self; self.onmessage = ",Ct.toString()],{type:"text/javascript"}),w=URL.createObjectURL(b);return new Worker(w)}return q=Ct,ot}function Dt(){Y||(Y=xt(function(Ct){function b(){function T(it,J){var W,X,G=it.length,at,ht,Q,yt;for(X=0;X=0;J-=1)if(it[J].ty==="sh")if(it[J].ks.k.i)x(it[J].ks.k);else for(G=it[J].ks.k.length,X=0;XW[0]?!0:W[0]>it[0]?!1:it[1]>W[1]?!0:W[1]>it[1]?!1:it[2]>W[2]?!0:W[2]>it[2]?!1:null}var M=function(){var it=[4,4,14];function J(X){var G=X.t.d;X.t.d={k:[{s:G,t:0}]};}function W(X){var G,at=X.length;for(G=0;G=0;G-=1)if(X[G].ty==="sh")if(X[G].ks.k.i)X[G].ks.k.c=X[G].closed;else for(Q=X[G].ks.k.length,ht=0;ht500)&&(this._imageLoaded(),clearInterval(h)),N+=1;}.bind(this),50);}function rt(j){var N=Y(j,this.assetsPath,this.path),h=Xt("image");y?this.testImageLoaded(h):h.addEventListener("load",this._imageLoaded,!1),h.addEventListener("error",function(){x.img=E,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:j};return x}function xt(j){var N=Y(j,this.assetsPath,this.path),h=g("img");h.crossOrigin="anonymous",h.addEventListener("load",this._imageLoaded,!1),h.addEventListener("error",function(){x.img=E,this._imageLoaded();}.bind(this),!1),h.src=N;var x={img:h,assetData:j};return x}function Dt(j){var N={assetData:j},h=Y(j,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 Pt(j,N){this.imagesLoadedCb=N;var h,x=j.length;for(h=0;hthis.animationData.op&&(this.animationData.op=E.op,this.totalFrames=Math.floor(E.op-this.animationData.ip));var I=this.animationData.layers,q,Y=I.length,ot=E.layers,rt,xt=ot.length;for(rt=0;rtthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame");},Ht.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame);}catch(E){this.triggerRenderFrameError(E);}},Ht.prototype.play=function(E){E&&this.name!==E||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")));},Ht.prototype.pause=function(E){E&&this.name!==E||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause());},Ht.prototype.togglePause=function(E){E&&this.name!==E||(this.isPaused===!0?this.play():this.pause());},Ht.prototype.stop=function(E){E&&this.name!==E||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0));},Ht.prototype.getMarkerData=function(E){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"));}},Ht.prototype.adjustSegment=function(E,I){this.playCount=0,E[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=E[0]-E[1],this.timeCompleted=this.totalFrames,this.firstFrame=E[1],this.setCurrentRawFrameValue(this.totalFrames-.001-I)):E[1]>E[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=E[1]-E[0],this.timeCompleted=this.totalFrames,this.firstFrame=E[0],this.setCurrentRawFrameValue(.001+I)),this.trigger("segmentStart");},Ht.prototype.setSegment=function(E,I){var q=-1;this.isPaused&&(this.currentRawFrame+this.firstFrameI&&(q=I-E)),this.firstFrame=E,this.totalFrames=I-E,this.timeCompleted=this.totalFrames,q!==-1&&this.goToAndStop(q,!0);},Ht.prototype.playSegments=function(E,I){if(I&&(this.segments.length=0),re(E[0])==="object"){var q,Y=E.length;for(q=0;q=0;X-=1)I[X].animation.destroy(W);}function V(W,X,G){var at=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),ht,Q=at.length;for(ht=0;ht0?x=V:h=V;while(Math.abs(R)>rt&&++$=ot?z(N,tt,h,x):Z===0?tt:T(N,M,M+Pt,h,x)}},E}(),be=function(){function E(I){return I.concat(d(I.length))}return {double:E}}(),ze=function(){return function(E,I,q){var Y=0,ot=E,rt=d(ot),xt={newElement:Dt,release:Pt};function Dt(){var jt;return Y?(Y-=1,jt=rt[Y]):jt=I(),jt}function Pt(jt){Y===ot&&(rt=be.double(rt),ot*=2),q&&q(jt),rt[Y]=jt,Y+=1;}return xt}}(),si=function(){function E(){return {addedLength:0,percents:m("float32",ye()),lengths:m("float32",ye())}}return ze(8,E)}(),ai=function(){function E(){return {lengths:[],totalLength:0}}function I(q){var Y,ot=q.lengths.length;for(Y=0;Y-.001&&N<.001}function q(Ct,b,w,T,z,j,N,h,x){if(w===0&&j===0&&x===0)return I(Ct,b,T,z,N,h);var S=E.sqrt(E.pow(T-Ct,2)+E.pow(z-b,2)+E.pow(j-w,2)),M=E.sqrt(E.pow(N-Ct,2)+E.pow(h-b,2)+E.pow(x-w,2)),R=E.sqrt(E.pow(N-T,2)+E.pow(h-z,2)+E.pow(x-j,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(Ct,b,w,T){var z=ye(),j,N,h,x,S,M=0,R,V=[],$=[],tt=si.newElement();for(h=w.length,j=0;jN?-1:1,S=!0;S;)if(T[j]<=N&&T[j+1]>N?(h=(N-T[j])/(T[j+1]-T[j]),S=!1):j+=x,j<0||j>=z-1){if(j===z-1)return w[j];S=!1;}return w[j]+(w[j+1]-w[j])*h}function jt(Ct,b,w,T,z,j){var N=Pt(z,j),h=1-N,x=E.round((h*h*h*Ct[0]+(N*h*h+h*N*h+h*h*N)*w[0]+(N*N*h+h*N*N+N*h*N)*T[0]+N*N*N*b[0])*1e3)/1e3,S=E.round((h*h*h*Ct[1]+(N*h*h+h*N*h+h*h*N)*w[1]+(N*N*h+h*N*N+N*h*N)*T[1]+N*N*N*b[1])*1e3)/1e3;return [x,S]}var Rt=m("float32",8);function Jt(Ct,b,w,T,z,j,N){z<0?z=0:z>1&&(z=1);var h=Pt(z,N);j=j>1?1:j;var x=Pt(j,N),S,M=Ct.length,R=1-h,V=1-x,$=R*R*R,tt=h*R*R*3,Z=h*h*R*3,st=h*h*h,pt=R*R*V,it=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,G=h*V*V+R*x*V+R*V*x,at=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,vt=x*x*V+V*x*x+x*V*x,kt=x*x*x;for(S=0;S=jt.t-q){Pt.h&&(Pt=jt),ot=0;break}if(jt.t-q>E){ot=rt;break}rt=j||E=j?x.points.length-1:0;for(Ct=x.points[S].point.length,Jt=0;Jt=V&&M=j)Y[0]=h[0],Y[1]=h[1],Y[2]=h[2];else if(E<=N)Y[0]=Pt.s[0],Y[1]=Pt.s[1],Y[2]=Pt.s[2];else {var it=ns(Pt.s),J=ns(h),W=(E-N)/(j-N);jr(Y,ha(it,J,W));}else for(rt=0;rt=j?b=1:E1e-6?(Ct=Math.acos(b),w=Math.sin(Ct),T=Math.sin((1-q)*Ct)/w,z=Math.sin(q*Ct)/w):(T=1-q,z=q),Y[0]=T*ot+z*Pt,Y[1]=T*rt+z*jt,Y[2]=T*xt+z*Rt,Y[3]=T*Dt+z*Jt,Y}function jr(E,I){var q=I[0],Y=I[1],ot=I[2],rt=I[3],xt=Math.atan2(2*Y*rt-2*q*ot,1-2*Y*Y-2*ot*ot),Dt=Math.asin(2*q*Y+2*ot*rt),Pt=Math.atan2(2*q*rt-2*Y*ot,1-2*q*q-2*ot*ot);E[0]=xt/nt,E[1]=Dt/nt,E[2]=Pt/nt;}function ns(E){var I=E[0]*nt,q=E[1]*nt,Y=E[2]*nt,ot=Math.cos(I/2),rt=Math.cos(q/2),xt=Math.cos(Y/2),Dt=Math.sin(I/2),Pt=Math.sin(q/2),jt=Math.sin(Y/2),Rt=ot*rt*xt-Dt*Pt*jt,Jt=Dt*Pt*xt+ot*rt*jt,Ct=Dt*rt*xt+ot*Pt*jt,b=ot*Pt*xt-Dt*rt*jt;return [Jt,Ct,b,Rt]}function Xs(){var E=this.comp.renderedFrame-this.offsetTime,I=this.keyframes[0].t-this.offsetTime,q=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(E===this._caching.lastFrame||this._caching.lastFrame!==Yi&&(this._caching.lastFrame>=q&&E>=q||this._caching.lastFrame=E&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var Y=this.interpolateValue(E,this._caching);this.pv=Y;}return this._caching.lastFrame=E,this.pv}function Rr(E){var I;if(this.propType==="unidimensional")I=E*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 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 E,I=this.effectsSequence.length,q=this.kf?this.pv:this.data.k;for(E=0;E=this._maxLength&&this.doubleArrayLength(),q){case"v":rt=this.v;break;case"i":rt=this.i;break;case"o":rt=this.o;break;default:rt=[];break}(!rt[Y]||rt[Y]&&!ot)&&(rt[Y]=fe.newElement()),rt[Y][0]=E,rt[Y][1]=I;},Ze.prototype.setTripleAt=function(E,I,q,Y,ot,rt,xt,Dt){this.setXYAt(E,I,"v",xt,Dt),this.setXYAt(q,Y,"o",xt,Dt),this.setXYAt(ot,rt,"i",xt,Dt);},Ze.prototype.reverse=function(){var E=new Ze;E.setPathData(this.c,this._length);var I=this.v,q=this.o,Y=this.i,ot=0;this.c&&(E.setTripleAt(I[0][0],I[0][1],Y[0][0],Y[0][1],q[0][0],q[0][1],0,!1),ot=1);var rt=this._length-1,xt=this._length,Dt;for(Dt=ot;Dt=it[it.length-1].t-this.offsetTime)S=it[it.length-1].s?it[it.length-1].s[0]:it[it.length-2].e[0],R=!0;else {for(var J=x,W=it.length-1,X=!0,G,at,ht;X&&(G=it[J],at=it[J+1],!(at.t-this.offsetTime>j));)J=at.t-this.offsetTime)st=1;else if(jh&&j>h)||(this._caching.lastIndex=x0||G>-1e-6&&G<0?Y(G*at)/at:G}function X(){var G=this.props,at=W(G[0]),ht=W(G[1]),Q=W(G[4]),yt=W(G[5]),vt=W(G[12]),kt=W(G[13]);return "matrix("+at+","+ht+","+Q+","+yt+","+vt+","+kt+")"}return function(){this.reset=ot,this.rotate=rt,this.rotateX=xt,this.rotateY=Dt,this.rotateZ=Pt,this.skew=Rt,this.skewFromAxis=Jt,this.shear=jt,this.scale=Ct,this.setTransform=b,this.translate=w,this.transform=T,this.multiply=z,this.applyToPoint=S,this.applyToX=M,this.applyToY=R,this.applyToZ=V,this.applyToPointArray=pt,this.applyToTriplePoints=st,this.applyToPointStringified=it,this.toCSS=J,this.to2dCSS=X,this.clone=h,this.cloneFromProps=x,this.equals=N,this.inversePoints=Z,this.inversePoint=tt,this.getInverseMatrix=$,this._t=this.transform,this.isIdentity=j,this._identity=!0,this._identityCalculated=!1,this.props=m("float32",16),this.reset();}}();function Er(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Er=function(I){return typeof I}:Er=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},Er(E)}var ge={};function Vs(E){o(E);}function ti(){ne.searchAnimations();}function Ta(E){Gt(E);}function la(E){de(E);}function Ma(E){return ne.loadAnimation(E)}function os(E){if(typeof E=="string")switch(E){case"high":le(200);break;default:case"medium":le(50);break;case"low":le(10);break}else !isNaN(E)&&E>1&&le(E);}function Da(){return typeof navigator<"u"}function Fa(E,I){E==="expressions"&&ee(I);}function Ia(E){switch(E){case"propertyFactory":return te;case"shapePropertyFactory":return yr;case"matrix":return He;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=Ma,ge.setSubframeRendering=Ta,ge.resize=ne.resize,ge.goToAndStop=ne.goToAndStop,ge.destroy=ne.destroy,ge.setQuality=os,ge.inBrowser=Da,ge.installPlugin=Fa,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=Ia,ge.version="5.12.2";function La(){document.readyState==="complete"&&(clearInterval(Zs),ti());}function Va(E){for(var I=Ys.split("&"),q=0;q"u"?"undefined":Er(t))==="object"&&typeof e<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=ge);}catch{}var Ii=function(){var E={},I={};E.registerModifier=q,E.getModifier=Y;function q(ot,rt){I[ot]||(I[ot]=rt);}function Y(ot,rt,xt){return new I[ot](rt,xt)}return E}();function li(){}li.prototype.initModifierProperties=function(){},li.prototype.addShapeToModifier=function(){},li.prototype.addShape=function(E){if(!this.closed){E.sh.container.addDynamicProperty(E.sh);var I={shape:E.sh,data:E,localShapeCollection:hi.newShapeCollection()};this.shapes.push(I),this.addShapeToModifier(I),this._isAnimated&&E.setAsAnimated();}},li.prototype.init=function(E,I){this.shapes=[],this.elem=E,this.initDynamicPropertyContainer(E),this.initModifierProperties(E,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());},v([Ye],li);function ei(){}v([li],ei),ei.prototype.initModifierProperties=function(E,I){this.s=te.getProp(E,I.s,0,.01,this),this.e=te.getProp(E,I.e,0,.01,this),this.o=te.getProp(E,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(E){E.pathsData=[];},ei.prototype.calculateShapeEdges=function(E,I,q,Y,ot){var rt=[];I<=1?rt.push({s:E,e:I}):E>=1?rt.push({s:E-1,e:I-1}):(rt.push({s:E,e:1}),rt.push({s:0,e:I-1}));var xt=[],Dt,Pt=rt.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,xt.push([Rt,Jt]);}return xt.length||xt.push([0,0]),xt},ei.prototype.releasePathsData=function(E){var I,q=E.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 rt,xt,Dt=this.shapes.length,Pt,jt,Rt,Jt,Ct,b=0;if(q===I)for(xt=0;xt=0;xt-=1)if(T=this.shapes[xt],T.shape._mdf){for(z=T.localShapeCollection,z.releaseShapes(),this.m===2&&Dt>1?(x=this.calculateShapeEdges(I,q,T.totalShapeLength,h,b),h+=T.totalShapeLength):x=[[j,N]],jt=x.length,Pt=0;Pt=1?w.push({s:T.totalShapeLength*(j-1),e:T.totalShapeLength*(N-1)}):(w.push({s:T.totalShapeLength*j,e:T.totalShapeLength}),w.push({s:0,e:T.totalShapeLength*(N-1)}));var S=this.addShapes(T,w[0]);if(w[0].s!==w[0].e){if(w.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,w[1],R);}else this.addPaths(S,z),S=this.addShapes(T,w[1]);}this.addPaths(S,z);}}T.shape.paths=z;}}},ei.prototype.addPaths=function(E,I){var q,Y=E.length;for(q=0;qI.e){q.c=!1;break}else I.s<=jt&&I.e>=jt+Rt.addedLength?(this.addSegment(ot[rt].v[Dt-1],ot[rt].o[Dt-1],ot[rt].i[Dt],ot[rt].v[Dt],q,Jt,z),z=!1):(b=Ei.getNewSegment(ot[rt].v[Dt-1],ot[rt].v[Dt],ot[rt].o[Dt-1],ot[rt].i[Dt],(I.s-jt)/Rt.addedLength,(I.e-jt)/Rt.addedLength,Ct[Dt-1]),this.addSegmentFromArray(b,q,Jt,z),z=!1,q.c=!1),jt+=Rt.addedLength,Jt+=1;if(ot[rt].c&&Ct.length){if(Rt=Ct[Dt-1],jt<=I.e){var j=Ct[Dt-1].addedLength;I.s<=jt&&I.e>=jt+j?(this.addSegment(ot[rt].v[Dt-1],ot[rt].o[Dt-1],ot[rt].i[0],ot[rt].v[0],q,Jt,z),z=!1):(b=Ei.getNewSegment(ot[rt].v[Dt-1],ot[rt].v[0],ot[rt].o[Dt-1],ot[rt].i[0],(I.s-jt)/j,(I.e-jt)/j,Ct[Dt-1]),this.addSegmentFromArray(b,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;rt=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 Ct=this.px,b=this.py;Ct._caching.lastFrame+Ct.offsetTime<=Ct.keyframes[0].t?(Rt[0]=Ct.getValueAtTime((Ct.keyframes[0].t+.01)/jt,0),Rt[1]=b.getValueAtTime((b.keyframes[0].t+.01)/jt,0),Jt[0]=Ct.getValueAtTime(Ct.keyframes[0].t/jt,0),Jt[1]=b.getValueAtTime(b.keyframes[0].t/jt,0)):Ct._caching.lastFrame+Ct.offsetTime>=Ct.keyframes[Ct.keyframes.length-1].t?(Rt[0]=Ct.getValueAtTime(Ct.keyframes[Ct.keyframes.length-1].t/jt,0),Rt[1]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/jt,0),Jt[0]=Ct.getValueAtTime((Ct.keyframes[Ct.keyframes.length-1].t-.01)/jt,0),Jt[1]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/jt,0)):(Rt=[Ct.pv,b.pv],Jt[0]=Ct.getValueAtTime((Ct._caching.lastFrame+Ct.offsetTime-.01)/jt,Ct.offsetTime),Jt[1]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/jt,b.offsetTime));}else Jt=E,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 rt(Pt){this._addDynamicProperty(Pt),this.elem.addDynamicProperty(Pt),this._isDirty=!0;}function xt(Pt,jt,Rt){if(this.elem=Pt,this.frameId=-1,this.propType="transform",this.data=jt,this.v=new He,this.pre=new He,this.appliedTransformations=0,this.initDynamicPropertyContainer(Rt||Pt),jt.p&&jt.p.s?(this.px=te.getProp(Pt,jt.p.x,0,0,this),this.py=te.getProp(Pt,jt.p.y,0,0,this),jt.p.z&&(this.pz=te.getProp(Pt,jt.p.z,0,0,this))):this.p=te.getProp(Pt,jt.p||{k:[0,0,0]},1,0,this),jt.rx){if(this.rx=te.getProp(Pt,jt.rx,0,nt,this),this.ry=te.getProp(Pt,jt.ry,0,nt,this),this.rz=te.getProp(Pt,jt.rz,0,nt,this),jt.or.k[0].ti){var Jt,Ct=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(E){var I,q=E.length;for(I=0;I0?Math.floor(Ct):Math.ceil(Ct),T=this.pMatrix.props,z=this.rMatrix.props,j=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var N=0;if(Ct>0){for(;Nw;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),N-=1;b&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-b,!0),N-=b);}Y=this.data.m===1?0:this._currentCopies-1,ot=this.data.m===1?1:-1,rt=this._currentCopies;for(var h,x;rt;){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(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]),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(E){if(E<=0)return [Ks(this.points[0]),this];if(E>=1)return [this,Ks(this.points[this.points.length-1])];var I=zi(this.points[0],this.points[1],E),q=zi(this.points[1],this.points[2],E),Y=zi(this.points[2],this.points[3],E),ot=zi(I,q,E),rt=zi(q,Y,E),xt=zi(ot,rt,E);return [new je(this.points[0],I,ot,xt,!0),new je(xt,rt,Y,this.points[3],!0)]};function Rs(E,I){var q=E.points[0][I],Y=E.points[E.points.length-1][I];if(q>Y){var ot=Y;Y=q,q=ot;}for(var rt=fa(3*E.a[I],2*E.b[I],E.c[I]),xt=0;xt0&&rt[xt]<1){var Dt=E.point(rt[xt])[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 E=this.bounds();return {left:E.x.min,right:E.x.max,top:E.y.min,bottom:E.y.max,width:E.x.max-E.x.min,height:E.y.max-E.y.min,cx:(E.x.max+E.x.min)/2,cy:(E.y.max+E.y.min)/2}};function ni(E,I,q){var Y=E.boundingBox();return {cx:Y.cx,cy:Y.cy,width:Y.width,height:Y.height,bez:E,t:(I+q)/2,t1:I,t2:q}}function ts(E){var I=E.bez.split(.5);return [ni(I[0],E.t1,E.t),ni(I[1],E.t,E.t2)]}function ls(E,I){return Math.abs(E.cx-I.cx)*2=rt||E.width<=Y&&E.height<=Y&&I.width<=Y&&I.height<=Y){ot.push([E.t,I.t]);return}var xt=ts(E),Dt=ts(I);wr(xt[0],Dt[0],q+1,Y,ot,rt),wr(xt[0],Dt[1],q+1,Y,ot,rt),wr(xt[1],Dt[0],q+1,Y,ot,rt),wr(xt[1],Dt[1],q+1,Y,ot,rt);}}je.prototype.intersections=function(E,I,q){I===void 0&&(I=2),q===void 0&&(q=7);var Y=[];return wr(ni(this,0,1),ni(E,0,1),0,I,Y,q),Y},je.shapeSegment=function(E,I){var q=(I+1)%E.length();return new je(E.v[I],E.o[I],E.i[q],E.v[q],!0)},je.shapeSegmentInverted=function(E,I){var q=(I+1)%E.length();return new je(E.v[q],E.i[q],E.o[I],E.v[I],!0)};function Ps(E,I){return [E[1]*I[2]-E[2]*I[1],E[2]*I[0]-E[0]*I[2],E[0]*I[1]-E[1]*I[0]]}function nr(E,I,q,Y){var ot=[E[0],E[1],1],rt=[I[0],I[1],1],xt=[q[0],q[1],1],Dt=[Y[0],Y[1],1],Pt=Ps(Ps(ot,rt),Ps(xt,Dt));return Or(Pt[2])?null:[Pt[0]/Pt[2],Pt[1]/Pt[2]]}function tr(E,I,q){return [E[0]+Math.cos(I)*q,E[1]-Math.sin(I)*q]}function $r(E,I){return Math.hypot(E[0]-I[0],E[1]-I[1])}function qi(E,I){return ji(E[0],I[0])&&ji(E[1],I[1])}function or(){}v([li],or),or.prototype.initModifierProperties=function(E,I){this.getValue=this.processKeys,this.amplitude=te.getProp(E,I.s,0,null,this),this.frequency=te.getProp(E,I.r,0,null,this),this.pointsType=te.getProp(E,I.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0;};function Wr(E,I,q,Y,ot,rt,xt){var Dt=q-Math.PI/2,Pt=q+Math.PI/2,jt=I[0]+Math.cos(q)*Y*ot,Rt=I[1]-Math.sin(q)*Y*ot;E.setTripleAt(jt,Rt,jt+Math.cos(Dt)*rt,Rt-Math.sin(Dt)*rt,jt+Math.cos(Pt)*xt,Rt-Math.sin(Pt)*xt,E.length());}function _s(E,I){var q=[I[0]-E[0],I[1]-E[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(E,I){var q=I===0?E.length()-1:I-1,Y=(I+1)%E.length(),ot=E.v[q],rt=E.v[Y],xt=_s(ot,rt);return Math.atan2(0,1)-Math.atan2(xt[1],xt[0])}function Ss(E,I,q,Y,ot,rt,xt){var Dt=ca(I,q),Pt=I.v[q%I._length],jt=I.v[q===0?I._length-1:q-1],Rt=I.v[(q+1)%I._length],Jt=rt===2?Math.sqrt(Math.pow(Pt[0]-jt[0],2)+Math.pow(Pt[1]-jt[1],2)):0,Ct=rt===2?Math.sqrt(Math.pow(Pt[0]-Rt[0],2)+Math.pow(Pt[1]-Rt[1],2)):0;Wr(E,I.v[q%I._length],Dt,xt,Y,Ct/((ot+1)*2),Jt/((ot+1)*2));}function Ra(E,I,q,Y,ot,rt){for(var xt=0;xt1&&I.length>1&&(ot=Ar(E[0],I[I.length-1]),ot)?[[E[0].split(ot[0])[0]],[I[I.length-1].split(ot[1])[1]]]:[q,Y]}function Os(E){for(var I,q=1;q1&&(I=fs(E[E.length-1],E[0]),E[E.length-1]=I[0],E[0]=I[1]),E}function Bs(E,I){var q=E.inflectionPoints(),Y,ot,rt,xt;if(q.length===0)return [gr(E,I)];if(q.length===1||ji(q[1],1))return rt=E.split(q[0]),Y=rt[0],ot=rt[1],[gr(Y,I),gr(ot,I)];rt=E.split(q[0]),Y=rt[0];var Dt=(q[1]-q[0])/(1-q[0]);return rt=rt[1].split(Dt),xt=rt[0],ot=rt[1],[gr(Y,I),gr(xt,I),gr(ot,I)]}function Tr(){}v([li],Tr),Tr.prototype.initModifierProperties=function(E,I){this.getValue=this.processKeys,this.amount=te.getProp(E,I.a,0,null,this),this.miterLimit=te.getProp(E,I.ml,0,null,this),this.lineJoin=I.lj,this._isAnimated=this.amount.effectsSequence.length!==0;},Tr.prototype.processPath=function(E,I,q,Y){var ot=Ne.newElement();ot.c=E.c;var rt=E.length();E.c||(rt-=1);var xt,Dt,Pt,jt=[];for(xt=0;xt=0;xt-=1)Pt=je.shapeSegmentInverted(E,xt),jt.push(Bs(Pt,I));jt=Os(jt);var Rt=null,Jt=null;for(xt=0;xt0&&(yt=!1),yt){var Bt=g("style");Bt.setAttribute("f-forigin",G[at].fOrigin),Bt.setAttribute("f-origin",G[at].origin),Bt.setAttribute("f-family",G[at].fFamily),Bt.type="text/css",Bt.innerText="@font-face {font-family: "+G[at].fFamily+"; font-style: normal; src: url('"+G[at].fPath+"');}",X.appendChild(Bt);}}else if(G[at].fOrigin==="g"||G[at].origin===1){for(vt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),kt=0;kt=55296&&G<=56319){var at=W.charCodeAt(1);at>=56320&&at<=57343&&(X=(G-55296)*1024+at-56320+65536);}return X}function M(W,X){var G=W.toString(16)+X.toString(16);return Jt.indexOf(G)!==-1}function R(W){return W===Pt}function V(W){return W===Dt}function $(W){var X=S(W);return X>=jt&&X<=Rt}function tt(W){return $(W.substr(0,2))&&$(W.substr(2,2))}function Z(W){return q.indexOf(W)!==-1}function st(W,X){var G=S(W.substr(X,2));if(G!==Y)return !1;var at=0;for(X+=2;at<5;){if(G=S(W.substr(X,2)),Gxt)return !1;at+=1,X+=2;}return S(W.substr(X,2))===ot}function pt(){this.isLoaded=!0;}var it=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);};it.isModifier=M,it.isZeroWidthJoiner=R,it.isFlagEmoji=tt,it.isRegionalCode=$,it.isCombinedCharacter=Z,it.isRegionalFlag=st,it.isVariationSelector=V,it.BLACK_FLAG_CODE_POINT=Y;var J={addChars:j,addFonts:z,getCharData:N,getFontByName:x,measureText:h,checkLoadedFonts:w,setIsLoaded:pt};return it.prototype=J,it}();function Mr(E){this.animationData=E;}Mr.prototype.getProp=function(E){return this.animationData.slots&&this.animationData.slots[E.sid]?Object.assign(E,this.animationData.slots[E.sid].p):E};function vr(E){return new Mr(E)}function hr(){}hr.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[];},addRenderableComponent:function(E){this.renderableComponents.indexOf(E)===-1&&this.renderableComponents.push(E);},removeRenderableComponent:function(E){this.renderableComponents.indexOf(E)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(E),1);},prepareRenderableFrame:function(E){this.checkLayerLimits(E);},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(E){this.data.ip-this.data.st<=E&&this.data.op-this.data.st>E?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 E,I=this.renderableComponents.length;for(E=0;E.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0));},_e.prototype.show=function(){},_e.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1;},_e.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1;},_e.prototype.resume=function(){this._canPlay=!0;},_e.prototype.setRate=function(E){this.audio.rate(E);},_e.prototype.volume=function(E){this._volumeMultiplier=E,this._previousVolume=E*this._volume,this.audio.volume(this._previousVolume);},_e.prototype.getBaseElement=function(){return null},_e.prototype.destroy=function(){},_e.prototype.sourceRectAtTime=function(){},_e.prototype.initExpressions=function(){};function we(){}we.prototype.checkLayers=function(E){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<=E-this.layers[I].st&&Y.op-Y.st>E-this.layers[I].st&&this.buildItem(I)),this.completeLayers=this.elements[I]?this.completeLayers:!1;this.checkPendingElements();},we.prototype.createItem=function(E){switch(E.ty){case 2:return this.createImage(E);case 0:return this.createComp(E);case 1:return this.createSolid(E);case 3:return this.createNull(E);case 4:return this.createShape(E);case 5:return this.createText(E);case 6:return this.createAudio(E);case 13:return this.createCamera(E);case 15:return this.createFootage(E);default:return this.createNull(E)}},we.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},we.prototype.createAudio=function(E){return new _e(E,this.globalData,this)},we.prototype.createFootage=function(E){return new Ve(E,this.globalData,this)},we.prototype.buildAllItems=function(){var E,I=this.layers.length;for(E=0;E0&&(this.maskElement.setAttribute("id",Ct),this.element.maskedElement.setAttribute(N,"url("+p()+"#"+Ct+")"),Y.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this);}Vi.prototype.getMaskProperty=function(E){return this.viewData[E].prop},Vi.prototype.renderFrame=function(E){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 xt="";q.elem&&(I.c&&(xt=E.inv?this.solidPath+Y:Y),q.elem.setAttribute("d",xt)),q.lastPath=Y;}},Vi.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null;};var Ai=function(){var E={};E.createFilter=I,E.createAlphaToLuminanceFilter=q;function I(Y,ot){var rt=Xt("filter");return rt.setAttribute("id",Y),ot!==!0&&(rt.setAttribute("filterUnits","objectBoundingBox"),rt.setAttribute("x","0%"),rt.setAttribute("y","0%"),rt.setAttribute("width","100%"),rt.setAttribute("height","100%")),rt}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 E}(),Zi=function(){var E={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))&&(E.maskType=!1),/firefox/i.test(navigator.userAgent)&&(E.svgLumaHidden=!1),E}(),Dr={},ma="filter_result_";function ks(E){var I,q="SourceGraphic",Y=E.data.ef?E.data.ef.length:0,ot=k(),rt=Ai.createFilter(ot,!0),xt=0;this.filters=[];var Dt;for(I=0;I=0&&(q=this.shapeModifiers[E].processShapes(this._isFirstFrame),!q);E-=1);}},searchProcessedElement:function(E){for(var I=this.processedElements,q=0,Y=I.length;q.01)return !1;q+=1;}return !0},Br.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return !1;if(this.data.k.k[0].s)for(var E=0,I=this.data.k.k.length;E0;)j=Ct.transformers[$].mProps._mdf||j,V-=1,$-=1;if(j)for(V=S-Ct.styles[h].lvl,$=Ct.transformers.length-1;V>0;)R.multiply(Ct.transformers[$].mProps.v),V-=1,$-=1;}else R=E;if(M=Ct.sh.paths,T=M._length,j){for(z="",w=0;w=1?pt=.99:pt<=-1&&(pt=-.99);var it=Z*pt,J=Math.cos(st+Ct.a.v)*it+z[0],W=Math.sin(st+Ct.a.v)*it+z[1];w.setAttribute("fx",J),w.setAttribute("fy",W),T&&!Ct.g._collapsable&&(Ct.of.setAttribute("fx",J),Ct.of.setAttribute("fy",W));}}}function Rt(Jt,Ct,b){var w=Ct.style,T=Ct.d;T&&(T._mdf||b)&&T.dashStr&&(w.pElem.setAttribute("stroke-dasharray",T.dashStr),w.pElem.setAttribute("stroke-dashoffset",T.dashoffset[0])),Ct.c&&(Ct.c._mdf||b)&&w.pElem.setAttribute("stroke","rgb("+F(Ct.c.v[0])+","+F(Ct.c.v[1])+","+F(Ct.c.v[2])+")"),(Ct.o._mdf||b)&&w.pElem.setAttribute("stroke-opacity",Ct.o.v),(Ct.w._mdf||b)&&(w.pElem.setAttribute("stroke-width",Ct.w.v),w.msElem&&w.msElem.setAttribute("stroke-width",Ct.w.v));}return q}();function $e(E,I,q){this.shapes=[],this.shapesData=E.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(E,I,q),this.prevViewData=[];}v([Fe,Ge,Jr,is,Ui,Re,er],$e),$e.prototype.initSecondaryElement=function(){},$e.prototype.identityMatrix=new He,$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 E,I=this.shapes.length,q,Y,ot=this.stylesList.length,rt,xt=[],Dt=!1;for(Y=0;Y1&&Dt&&this.setShapesAsAnimated(xt);}},$e.prototype.setShapesAsAnimated=function(E){var I,q=E.length;for(I=0;I=0;Pt-=1){if(z=this.searchProcessedElement(E[Pt]),z?I[Pt]=q[z-1]:E[Pt]._render=xt,E[Pt].ty==="fl"||E[Pt].ty==="st"||E[Pt].ty==="gf"||E[Pt].ty==="gs"||E[Pt].ty==="no")z?I[Pt].style.closed=!1:I[Pt]=this.createStyleElement(E[Pt],ot),E[Pt]._render&&I[Pt].style.pElem.parentNode!==Y&&Y.appendChild(I[Pt].style.pElem),Ct.push(I[Pt].style);else if(E[Pt].ty==="gr"){if(!z)I[Pt]=this.createGroupElement(E[Pt]);else for(Jt=I[Pt].it.length,Rt=0;Rt1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Oe.prototype.addEffect=function(E){this.effectsSequence.push(E),this.elem.addDynamicProperty(this);},Oe.prototype.getValue=function(E){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!E)){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,rt=E||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(E){for(var I=[],q=0,Y=E.length,ot,rt,xt=!1,Dt=!1,Pt="";q=55296&&ot<=56319?Li.isRegionalFlag(E,q)?Pt=E.substr(q,14):(rt=E.charCodeAt(q+1),rt>=56320&&rt<=57343&&(Li.isModifier(ot,rt)?(Pt=E.substr(q,2),xt=!0):Li.isFlagEmoji(E.substr(q,4))?Pt=E.substr(q,4):Pt=E.substr(q,2))):ot>56319?(rt=E.charCodeAt(q+1),Li.isVariationSelector(ot)&&(xt=!0)):Li.isZeroWidthJoiner(ot)&&(xt=!0,Dt=!0),xt?(I[I.length-1]+=Pt,xt=!1):I.push(Pt),q+=Pt.length;return I},Oe.prototype.completeTextData=function(E){E.__complete=!0;var I=this.elem.globalData.fontManager,q=this.data,Y=[],ot,rt,xt,Dt=0,Pt,jt=q.m.g,Rt=0,Jt=0,Ct=0,b=[],w=0,T=0,z,j,N=I.getFontByName(E.f),h,x=0,S=cs(N);E.fWeight=S.weight,E.fStyle=S.style,E.finalSize=E.s,E.finalText=this.buildFinalText(E.t),rt=E.finalText.length,E.finalLineHeight=E.lh;var M=E.tr/1e3*E.finalSize,R;if(E.sz)for(var V=!0,$=E.sz[0],tt=E.sz[1],Z,st;V;){st=this.buildFinalText(E.t),Z=0,w=0,rt=st.length,M=E.tr/1e3*E.finalSize;var pt=-1;for(ot=0;ot$&&st[ot]!==" "?(pt===-1?rt+=1:ot=pt,Z+=E.finalLineHeight||E.finalSize*1.2,st.splice(ot,pt===ot?1:0,"\r"),pt=-1,w=0):(w+=x,w+=M);Z+=N.ascent*E.finalSize/100,this.canResize&&E.finalSize>this.minimumFontSize&&ttT?w:T,w=-2*M,Pt="",xt=!0,Ct+=1):Pt=J,I.chars?(h=I.getCharData(J,N.fStyle,I.getFontByName(E.f).fFamily),x=xt?0:h.w*E.finalSize/100):x=I.measureText(Pt,E.f,E.finalSize),J===" "?it+=x+M:(w+=x+M+it,it=0),Y.push({l:x,an:x,add:Rt,n:xt,anIndexes:[],val:Pt,line:Ct,animatorJustifyOffset:0}),jt==2){if(Rt+=x,Pt===""||Pt===" "||ot===rt-1){for((Pt===""||Pt===" ")&&(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,Pt===""||ot===rt-1){for(Pt===""&&(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(E.l=Y,T=w>T?w:T,b.push(w),E.sz)E.boxWidth=E.sz[0],E.justifyOffset=0;else switch(E.boxWidth=T,E.j){case 1:E.justifyOffset=-E.boxWidth;break;case 2:E.justifyOffset=-E.boxWidth/2;break;default:E.justifyOffset=0;}E.lineWidths=b;var W=q.a,X,G;j=W.length;var at,ht,Q=[];for(z=0;z0?xt=this.ne.v/100:Dt=-this.ne.v/100,this.xe.v>0?Pt=1-this.xe.v/100:jt=1+this.xe.v/100;var Rt=oe.getBezierEasing(xt,Dt,Pt,jt).get,Jt=0,Ct=this.finalS,b=this.finalE,w=this.data.sh;if(w===2)b===Ct?Jt=rt>=b?1:0:Jt=E(0,I(.5/(b-Ct)+(rt-Ct)/(b-Ct),1)),Jt=Rt(Jt);else if(w===3)b===Ct?Jt=rt>=b?0:1:Jt=1-E(0,I(.5/(b-Ct)+(rt-Ct)/(b-Ct),1)),Jt=Rt(Jt);else if(w===4)b===Ct?Jt=0:(Jt=E(0,I(.5/(b-Ct)+(rt-Ct)/(b-Ct),1)),Jt<.5?Jt*=2:Jt=1-2*(Jt-.5)),Jt=Rt(Jt);else if(w===5){if(b===Ct)Jt=0;else {var T=b-Ct;rt=I(E(0,rt+.5-Ct),b-Ct);var z=-T/2+rt,j=T/2;Jt=Math.sqrt(1-z*z/(j*j));}Jt=Rt(Jt);}else w===6?(b===Ct?Jt=0:(rt=I(E(0,rt+.5-Ct),b-Ct),Jt=(1+Math.cos(Math.PI+Math.PI*2*rt/(b-Ct)))/2),Jt=Rt(Jt)):(rt>=q(Ct)&&(rt-Ct<0?Jt=E(0,I(I(b,1)-(Ct-rt),1)):Jt=E(0,I(b-rt,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(rt){this.iterateDynamicProperties(),this._mdf=rt||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,rt&&this.data.r===2&&(this.e.v=this._currentTextLength);var xt=this.data.r===2?1:100/this.data.totalChars,Dt=this.o.v/xt,Pt=this.s.v/xt+Dt,jt=this.e.v/xt+Dt;if(Pt>jt){var Rt=Pt;Pt=jt,jt=Rt;}this.finalS=Pt,this.finalE=jt;}},v([Ye],Y);function ot(rt,xt,Dt){return new Y(rt,xt)}return {getTextSelectorProp:ot}}();function ir(E,I,q){var Y={propType:!1},ot=te.getProp,rt=I.a;this.a={r:rt.r?ot(E,rt.r,0,nt,q):Y,rx:rt.rx?ot(E,rt.rx,0,nt,q):Y,ry:rt.ry?ot(E,rt.ry,0,nt,q):Y,sk:rt.sk?ot(E,rt.sk,0,nt,q):Y,sa:rt.sa?ot(E,rt.sa,0,nt,q):Y,s:rt.s?ot(E,rt.s,1,.01,q):Y,a:rt.a?ot(E,rt.a,1,0,q):Y,o:rt.o?ot(E,rt.o,0,.01,q):Y,p:rt.p?ot(E,rt.p,1,0,q):Y,sw:rt.sw?ot(E,rt.sw,0,0,q):Y,sc:rt.sc?ot(E,rt.sc,1,0,q):Y,fc:rt.fc?ot(E,rt.fc,1,0,q):Y,fh:rt.fh?ot(E,rt.fh,0,0,q):Y,fs:rt.fs?ot(E,rt.fs,0,.01,q):Y,fb:rt.fb?ot(E,rt.fb,0,.01,q):Y,t:rt.t?ot(E,rt.t,0,0,q):Y},this.s=Ga.getTextSelectorProp(E,I.s,q),this.s.t=I.s.t;}function br(E,I,q){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=E,this._renderType=I,this._elem=q,this._animatorsData=d(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(q);}br.prototype.searchProperties=function(){var E,I=this._textData.a.length,q,Y=te.getProp;for(E=0;E=w+De||!S?($=(w+De-z)/T.partialLength,kt=x.point[0]+(T.point[0]-x.point[0])*$,Bt=x.point[1]+(T.point[1]-x.point[1])*$,rt.translate(-q[0]*Ct[Rt].an*.005,-(q[1]*it)*.01),j=!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));vt=Ct[Rt].an/2-Ct[Rt].add,rt.translate(-vt,0,0);}else vt=Ct[Rt].an/2-Ct[Rt].add,rt.translate(-vt,0,0),rt.translate(-q[0]*Ct[Rt].an*.005,-q[1]*it*.01,0);for(G=0;GE?this.textSpans[E].span:Xt(Dt?"g":"text"),h<=E){if(Pt.setAttribute("stroke-linecap","butt"),Pt.setAttribute("stroke-linejoin","round"),Pt.setAttribute("stroke-miterlimit","4"),this.textSpans[E].span=Pt,Dt){var S=Xt("g");Pt.appendChild(S),this.textSpans[E].childSpan=S;}this.textSpans[E].span=Pt,this.layerElement.appendChild(Pt);}Pt.style.display="inherit";}if(jt.reset(),Jt&&(xt[E].n&&(Ct=-T,b+=q.yOffset,b+=w?1:0,w=!1),this.applyTextPropertiesToMatrix(q,jt,xt[E].line,Ct,b),Ct+=xt[E].l||0,Ct+=T),Dt){x=this.globalData.fontManager.getCharData(q.finalText[E],Y.fStyle,this.globalData.fontManager.getFontByName(q.f).fFamily);var M;if(x.t===1)M=new di(x.data,this.globalData,this);else {var R=ws;x.data&&x.data.shapes&&(R=this.buildShapeData(x.data,q.finalSize)),M=new $e(R,this.globalData,this);}if(this.textSpans[E].glyph){var V=this.textSpans[E].glyph;this.textSpans[E].childSpan.removeChild(V.layerElement),V.destroy();}this.textSpans[E].glyph=M,M._debug=!0,M.prepareFrame(0),M.renderFrame(),this.textSpans[E].childSpan.appendChild(M.layerElement),x.t===1&&this.textSpans[E].childSpan.setAttribute("transform","scale("+q.finalSize/100+","+q.finalSize/100+")");}else Jt&&Pt.setAttribute("transform","translate("+jt.props[12]+","+jt.props[13]+")"),Pt.textContent=xt[E].val,Pt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}Jt&&Pt&&Pt.setAttribute("d",Rt);}for(;E=0;I-=1)(this.completeLayers||this.elements[I])&&this.elements[I].prepareFrame(E-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));}},xi.prototype.renderInnerContent=function(){var E,I=this.layers.length;for(E=0;ETy});var Ay,Ty,hc=Pr(()=>{ys();Ay=me((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(f){i({data:f});}},a={postMessage:function(f){s.onmessage({data:f});}};function n(f){if(window.Worker&&window.Blob&&getWebWorker()){var _=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),m=URL.createObjectURL(_);return new Worker(m)}return i=f,s}function l(){r||(r=n(function(f){function _(){function d(et,bt){var D,O,k=et.length,L,K,U,qt;for(O=0;O=0;bt-=1)if(et[bt].ty==="sh")if(et[bt].ks.k.i)P(et[bt].ks.k);else for(k=et[bt].ks.k.length,O=0;OD[0]?!0:D[0]>et[0]?!1:et[1]>D[1]?!0:D[1]>et[1]?!1:et[2]>D[2]?!0:D[2]>et[2]?!1:null}var F=function(){var et=[4,4,14];function bt(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)),c+=1;}.bind(this),50);}function a(u){var c=r(u,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",c),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var P={img:y,assetData:u};return P}function n(u){var c=r(u,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=c;var P={img:y,assetData:u};return P}function l(u){var c={assetData:u},y=r(u,this.assetsPath,this.path);return dataManager.loadData(y,function(P){c.img=P,this._footageLoaded();}.bind(this),function(){c.img={},this._footageLoaded();}.bind(this)),c}function o(u,c){this.imagesLoadedCb=c;var y,P=u.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 H(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=H:y=H;while(Math.abs(B)>a&&++nt=s?C(c,ct,y,P):ut===0?ct:d(c,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:l,release:o};function l(){var p;return r?(r-=1,p=a[r]):p=e(),p}function o(p){r===s&&(a=pooling.double(a),s*=2),i&&i(p),a[r]=p,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&&c<.001}function i(f,_,m,d,C,u,c,y,P){if(m===0&&u===0&&P===0)return e(f,_,d,C,c,y);var A=t.sqrt(t.pow(d-f,2)+t.pow(C-_,2)+t.pow(u-m,2)),F=t.sqrt(t.pow(c-f,2)+t.pow(y-_,2)+t.pow(P-m,2)),B=t.sqrt(t.pow(c-d,2)+t.pow(y-C,2)+t.pow(P-u,2)),H;return A>F?A>B?H=A-F-B:H=B-F-A:B>F?H=B-F-A:H=F-A-B,H>-1e-4&&H<1e-4}var r=function(){return function(f,_,m,d){var C=getDefaultCurveSegments(),u,c,y,P,A,F=0,B,H=[],nt=[],ct=bezierLengthPool.newElement();for(y=m.length,u=0;uc?-1:1,A=!0;A;)if(d[u]<=c&&d[u+1]>c?(y=(c-d[u])/(d[u+1]-d[u]),A=!1):u+=P,u<0||u>=C-1){if(u===C-1)return m[u];A=!1;}return m[u]+(m[u+1]-m[u])*y}function p(f,_,m,d,C,u){var c=o(C,u),y=1-c,P=t.round((y*y*y*f[0]+(c*y*y+y*c*y+y*y*c)*m[0]+(c*c*y+y*c*c+c*y*c)*d[0]+c*c*c*_[0])*1e3)/1e3,A=t.round((y*y*y*f[1]+(c*y*y+y*c*y+y*y*c)*m[1]+(c*c*y+y*c*c+c*y*c)*d[1]+c*c*c*_[1])*1e3)/1e3;return [P,A]}var g=createTypedArray("float32",8);function v(f,_,m,d,C,u,c){C<0?C=0:C>1&&(C=1);var y=o(C,c);u=u>1?1:u;var P=o(u,c),A,F=f.length,B=1-y,H=1-P,nt=B*B*B,ct=y*B*B*3,ut=y*y*B*3,mt=y*y*y,_t=B*B*H,et=y*B*H+B*y*H+B*B*P,bt=y*y*H+B*y*P+y*B*P,D=y*y*P,O=B*H*H,k=y*H*H+B*P*H+B*H*P,L=y*P*H+B*P*P+y*H*P,K=y*P*P,U=H*H*H,qt=P*H*H+H*P*H+H*H*P,It=P*P*H+H*P*P+P*H*P,Gt=P*P*P;for(A=0;A=p.t-i){o.h&&(o=p),s=0;break}if(p.t-i>t){s=a;break}a=u||t=u?P.points.length-1:0;for(f=P.points[A].point.length,v=0;v=H&&F=u)r[0]=y[0],r[1]=y[1],r[2]=y[2];else if(t<=c)r[0]=o.s[0],r[1]=o.s[1],r[2]=o.s[2];else {var et=createQuaternion(o.s),bt=createQuaternion(y),D=(t-c)/(u-c);quaternionToEuler(r,slerp(et,bt,D));}else for(a=0;a=u?_=1:t1e-6?(f=Math.acos(_),m=Math.sin(f),d=Math.sin((1-i)*f)/m,C=Math.sin(i*f)/m):(d=1-i,C=i),r[0]=d*s+C*o,r[1]=d*a+C*p,r[2]=d*n+C*g,r[3]=d*l+C*v,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),l=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]=l/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),l=Math.sin(e/2),o=Math.sin(i/2),p=Math.sin(r/2),g=s*a*n-l*o*p,v=l*o*n+s*a*p,f=l*a*n+s*o*p,_=s*o*n-l*a*p;return [v,f,_,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,l){this.setXYAt(t,e,"v",n,l),this.setXYAt(i,r,"o",n,l),this.setXYAt(s,a,"i",n,l);},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,l;for(l=s;l=et[et.length-1].t-this.offsetTime)A=et[et.length-1].s?et[et.length-1].s[0]:et[et.length-2].e[0],B=!0;else {for(var bt=P,D=et.length-1,O=!0,k,L,K;O&&(k=et[bt],L=et[bt+1],!(L.t-this.offsetTime>u));)bt=L.t-this.offsetTime)mt=1;else if(uy&&u>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]),qt=D(k[5]),It=D(k[12]),Gt=D(k[13]);return "matrix("+L+","+K+","+U+","+qt+","+It+","+Gt+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=n,this.rotateY=l,this.rotateZ=o,this.skew=g,this.skewFromAxis=v,this.shear=p,this.scale=f,this.setTransform=_,this.translate=m,this.transform=d,this.multiply=C,this.applyToPoint=A,this.applyToX=F,this.applyToY=B,this.applyToZ=H,this.applyToPointArray=_t,this.applyToTriplePoints=mt,this.applyToPointStringified=et,this.toCSS=bt,this.to2dCSS=O,this.clone=y,this.cloneFromProps=P,this.equals=c,this.inversePoints=ut,this.inversePoint=ct,this.getInverseMatrix=nt,this._t=this.transform,this.isIdentity=u,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=[],l,o=a.length,p;for(l=0;lr+i)){var g,v;p.s*s<=r?g=0:g=(p.s*s-r)/i,p.e*s>=r+i?v=1:v=(p.e*s-r)/i,n.push([g,v]);}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,l=this.shapes.length,o,p,g,v,f,_=0;if(i===e)for(n=0;n=0;n-=1)if(d=this.shapes[n],d.shape._mdf){for(C=d.localShapeCollection,C.releaseShapes(),this.m===2&&l>1?(P=this.calculateShapeEdges(e,i,d.totalShapeLength,y,_),y+=d.totalShapeLength):P=[[u,c]],p=P.length,o=0;o=1?m.push({s:d.totalShapeLength*(u-1),e:d.totalShapeLength*(c-1)}):(m.push({s:d.totalShapeLength*u,e:d.totalShapeLength}),m.push({s:0,e:d.totalShapeLength*(c-1)}));var A=this.addShapes(d,m[0]);if(m[0].s!==m[0].e){if(m.length>1){var F=d.shape.paths.shapes[d.shape.paths._length-1];if(F.c){var B=A.pop();this.addPaths(A,C),A=this.addShapes(d,m[1],B);}else this.addPaths(A,C),A=this.addShapes(d,m[1]);}this.addPaths(A,C);}}d.shape.paths=C;}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;ie.e){i.c=!1;break}else e.s<=p&&e.e>=p+g.addedLength?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[l],s[a].v[l],i,v,C),C=!1):(_=bez.getNewSegment(s[a].v[l-1],s[a].v[l],s[a].o[l-1],s[a].i[l],(e.s-p)/g.addedLength,(e.e-p)/g.addedLength,f[l-1]),this.addSegmentFromArray(_,i,v,C),C=!1,i.c=!1),p+=g.addedLength,v+=1;if(s[a].c&&f.length){if(g=f[l-1],p<=e.e){var u=f[l-1].addedLength;e.s<=p&&e.e>=p+u?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[0],s[a].v[0],i,v,C),C=!1):(_=bez.getNewSegment(s[a].v[l-1],s[a].v[0],s[a].o[l-1],s[a].i[0],(e.s-p)/u,(e.e-p)/u,f[l-1]),this.addSegmentFromArray(_,i,v,C),C=!1,i.c=!1);}else i.c=!1;p+=g.addedLength,v+=1;}if(i._length&&(i.setXYAt(i.v[d][0],i.v[d][1],"i",d),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),p>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/p,0),v=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/p,0)):(g=this.p.pv,v=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/p,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){g=[],v=[];var f=this.px,_=this.py;f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t?(g[0]=f.getValueAtTime((f.keyframes[0].t+.01)/p,0),g[1]=_.getValueAtTime((_.keyframes[0].t+.01)/p,0),v[0]=f.getValueAtTime(f.keyframes[0].t/p,0),v[1]=_.getValueAtTime(_.keyframes[0].t/p,0)):f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t?(g[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/p,0),g[1]=_.getValueAtTime(_.keyframes[_.keyframes.length-1].t/p,0),v[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/p,0),v[1]=_.getValueAtTime((_.keyframes[_.keyframes.length-1].t-.01)/p,0)):(g=[f.pv,_.pv],v[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/p,f.offsetTime),v[1]=_.getValueAtTime((_._caching.lastFrame+_.offsetTime-.01)/p,_.offsetTime));}else v=t,g=v;this.v.rotate(-Math.atan2(g[1]-v[1],g[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 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,p,g){if(this.elem=o,this.frameId=-1,this.propType="transform",this.data=p,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(g||o),p.p&&p.p.s?(this.px=PropertyFactory.getProp(o,p.p.x,0,0,this),this.py=PropertyFactory.getProp(o,p.p.y,0,0,this),p.p.z&&(this.pz=PropertyFactory.getProp(o,p.p.z,0,0,this))):this.p=PropertyFactory.getProp(o,p.p||{k:[0,0,0]},1,0,this),p.rx){if(this.rx=PropertyFactory.getProp(o,p.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(o,p.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(o,p.rz,0,degToRads,this),p.or.k[0].ti){var v,f=p.or.k.length;for(v=0;v0;)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(f):Math.ceil(f),d=this.pMatrix.props,C=this.rMatrix.props,u=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var c=0;if(f>0){for(;cm;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),c-=1;_&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-_,!0),c-=_);}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)),c!==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(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(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]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),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 l=t.point(a[n])[e];lr&&(r=l);}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),l=splitData(e);intersectsImpl(n[0],l[0],i+1,r,s,a),intersectsImpl(n[0],l[1],i+1,r,s,a),intersectsImpl(n[1],l[0],i+1,r,s,a),intersectsImpl(n[1],l[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],l=[r[0],r[1],1],o=crossProduct(crossProduct(s,a),crossProduct(n,l));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 l=i-Math.PI/2,o=i+Math.PI/2,p=e[0]+Math.cos(i)*r*s,g=e[1]-Math.sin(i)*r*s;t.setTripleAt(p,g,p+Math.cos(l)*a,g-Math.sin(l)*a,p+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 l=getProjectingAngle(e,i),o=e.v[i%e._length],p=e.v[i===0?e._length-1:i-1],g=e.v[(i+1)%e._length],v=a===2?Math.sqrt(Math.pow(o[0]-p[0],2)+Math.pow(o[1]-p[1],2)):0,f=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],l,n,r,f/((s+1)*2),v/((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 l=(i[1]-i[0])/(1-i[0]);return a=a[1].split(l),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,l,o,p=[];for(n=0;n=0;n-=1)o=PolynomialBezier.shapeSegmentInverted(t,n),p.push(offsetSegmentSplit(o,e));p=pruneIntersections(p);var g=null,v=null;for(n=0;n0&&(qt=!1),qt){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 v.indexOf(k)!==-1}function B(D){return D===o}function H(D){return D===l}function nt(D){var O=A(D);return O>=p&&O<=g}function ct(D){return nt(D.substr(0,2))&&nt(D.substr(2,2))}function ut(D){return i.indexOf(D)!==-1}function mt(D,O){var k=A(D.substr(O,2));if(k!==r)return !1;var L=0;for(O+=2;L<5;){if(k=A(D.substr(O,2)),kn)return !1;L+=1,O+=2;}return A(D.substr(O,2))===s}function _t(){this.isLoaded=!0;}var et=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);};et.isModifier=F,et.isZeroWidthJoiner=B,et.isFlagEmoji=ct,et.isRegionalCode=nt,et.isCombinedCharacter=ut,et.isRegionalFlag=mt,et.isVariationSelector=H,et.BLACK_FLAG_CODE_POINT=r;var bt={addChars:u,addFonts:C,getCharData:c,getFontByName:P,measureText:y,checkLoadedFonts:m,setIsLoaded:_t};return et.prototype=bt,et}();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",f),this.element.maskedElement.setAttribute(c,"url("+getLocationHref()+"#"+f+")"),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 l;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;)u=f.transformers[nt].mProps._mdf||u,H-=1,nt-=1;if(u)for(H=A-f.styles[y].lvl,nt=f.transformers.length-1;H>0;)B.multiply(f.transformers[nt].mProps.v),H-=1,nt-=1;}else B=t;if(F=f.sh.paths,d=F._length,u){for(C="",m=0;m=1?_t=.99:_t<=-1&&(_t=-.99);var et=ut*_t,bt=Math.cos(mt+f.a.v)*et+C[0],D=Math.sin(mt+f.a.v)*et+C[1];m.setAttribute("fx",bt),m.setAttribute("fy",D),d&&!f.g._collapsable&&(f.of.setAttribute("fx",bt),f.of.setAttribute("fy",D));}}}function g(v,f,_){var m=f.style,d=f.d;d&&(d._mdf||_)&&d.dashStr&&(m.pElem.setAttribute("stroke-dasharray",d.dashStr),m.pElem.setAttribute("stroke-dashoffset",d.dashoffset[0])),f.c&&(f.c._mdf||_)&&m.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||_)&&m.pElem.setAttribute("stroke-opacity",f.o.v),(f.w._mdf||_)&&(m.pElem.setAttribute("stroke-width",f.w.v),m.msElem&&m.msElem.setAttribute("stroke-width",f.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=[],l=!1;for(r=0;r1&&l&&this.setShapesAsAnimated(n);}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;o-=1){if(C=this.searchProcessedElement(t[o]),C?e[o]=i[C-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")C?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),f.push(e[o].style);else if(t[o].ty==="gr"){if(!C)e[o]=this.createGroupElement(t[o]);else for(v=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,l=!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,l=!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,l=0,o,p=i.m.g,g=0,v=0,f=0,_=[],m=0,d=0,C,u,c=e.getFontByName(t.f),y,P=0,A=getFontProperties(c);t.fWeight=A.weight,t.fStyle=A.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 H=!0,nt=t.sz[0],ct=t.sz[1],ut,mt;H;){mt=this.buildFinalText(t.t),ut=0,m=0,a=mt.length,F=t.tr/1e3*t.finalSize;var _t=-1;for(s=0;snt&&mt[s]!==" "?(_t===-1?a+=1:s=_t,ut+=t.finalLineHeight||t.finalSize*1.2,mt.splice(s,_t===s?1:0,"\r"),_t=-1,m=0):(m+=P,m+=F);ut+=c.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&ctd?m:d,m=-2*F,o="",n=!0,f+=1):o=bt,e.chars?(y=e.getCharData(bt,c.fStyle,e.getFontByName(t.f).fFamily),P=n?0:y.w*t.finalSize/100):P=e.measureText(o,t.f,t.finalSize),bt===" "?et+=P+F:(m+=P+F+et,et=0),r.push({l:P,an:P,add:g,n,anIndexes:[],val:o,line:f,animatorJustifyOffset:0}),p==2){if(g+=P,o===""||o===" "||s===a-1){for((o===""||o===" ")&&(g-=P);v<=s;)r[v].an=g,r[v].ind=l,r[v].extra=P,v+=1;l+=1,g=0;}}else if(p==3){if(g+=P,o===""||s===a-1){for(o===""&&(g-=P);v<=s;)r[v].an=g,r[v].ind=l,r[v].extra=P,v+=1;g=0,l+=1;}}else r[l].ind=l,r[l].extra=0,l+=1;if(t.l=r,d=m>d?m:d,_.push(m),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=d,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0;}t.lineWidths=_;var D=i.a,O,k;u=D.length;var L,K,U=[];for(C=0;C0?n=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:p=1+this.xe.v/100;var g=BezierFactory.getBezierEasing(n,l,o,p).get,v=0,f=this.finalS,_=this.finalE,m=this.data.sh;if(m===2)_===f?v=a>=_?1:0:v=t(0,e(.5/(_-f)+(a-f)/(_-f),1)),v=g(v);else if(m===3)_===f?v=a>=_?0:1:v=1-t(0,e(.5/(_-f)+(a-f)/(_-f),1)),v=g(v);else if(m===4)_===f?v=0:(v=t(0,e(.5/(_-f)+(a-f)/(_-f),1)),v<.5?v*=2:v=1-2*(v-.5)),v=g(v);else if(m===5){if(_===f)v=0;else {var d=_-f;a=e(t(0,a+.5-f),_-f);var C=-d/2+a,u=d/2;v=Math.sqrt(1-C*C/(u*u));}v=g(v);}else m===6?(_===f?v=0:(a=e(t(0,a+.5-f),_-f),v=(1+Math.cos(Math.PI+Math.PI*2*a/(_-f)))/2),v=g(v)):(a>=i(f)&&(a-f<0?v=t(0,e(e(_,1)-(f-a),1)):v=t(0,e(_-a,1))),v=g(v));if(this.sm.v!==100){var c=this.sm.v*.01;c===0&&(c=1e-8);var y=.5-c*.5;v1&&(v=1));}return v*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,l=this.o.v/n,o=this.s.v/n+l,p=this.e.v/n+l;if(o>p){var g=o;o=p,p=g;}this.finalS=o,this.finalE=p;}},extendPrototype([DynamicPropertyContainer],r);function s(a,n,l){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=m+be||!A?(nt=(m+be-C)/d.partialLength,Gt=P.point[0]+(d.point[0]-P.point[0])*nt,Ot=P.point[1]+(d.point[1]-P.point[1])*nt,a.translate(-i[0]*f[g].an*.005,-(i[1]*et)*.01),u=!1):A&&(C+=d.partialLength,c+=1,c>=A.length&&(c=0,y+=1,F[y]?A=F[y].points:ut.v.c?(c=0,y=0,A=F[y].points):(C-=d.partialLength,A=null)),A&&(P=d,d=A[c],B=d.partialLength));It=f[g].an/2-f[g].add,a.translate(-It,0,0);}else It=f[g].an/2-f[g].add,a.translate(-It,0,0),a.translate(-i[0]*f[g].an*.005,-i[1]*et*.01,0);for(k=0;kt?this.textSpans[t].span:createNS(l?"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,l){var A=createNS("g");o.appendChild(A),this.textSpans[t].childSpan=A;}this.textSpans[t].span=o,this.layerElement.appendChild(o);}o.style.display="inherit";}if(p.reset(),v&&(n[t].n&&(f=-d,_+=i.yOffset,_+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(i,p,n[t].line,f,_),f+=n[t].l||0,f+=d),l){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 H=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(H.layerElement),H.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 v&&o.setAttribute("transform","translate("+p.props[12]+","+p.props[13]+")"),o.textContent=n[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}v&&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=p;)ct/=2,ut/=2,mt>>>=1;return (ct+mt)/ut};return nt.int32=function(){return H.g(4)|0},nt.quick=function(){return H.g(4)/4294967296},nt.double=nt,C(c(H.S),t),(P.pass||A||function(ct,ut,mt,_t){return _t&&(_t.S&&m(_t,H),ct.state=function(){return m(H,{})}),mt?(e[n]=ct,ut):ct})(nt,B,"global"in P?P.global:this==e,P.state)}e["seed"+n]=f;function _(y){var P,A=y.length,F=this,B=0,H=F.i=F.j=0,nt=F.S=[];for(A||(y=[A++]);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?p/(2-s-a):p/(s+a),s){case e:n=(i-r)/p+(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 l=r<.5?r*(1+i):r+i-r*i,o=2*r-l;s=hue2rgb(o,l,e+1/3),a=hue2rgb(o,l,e),n=hue2rgb(o,l,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 l,o=r.length,p=createTypedArray("float32",o);for(l=0;l1){for(s=0;s1?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){var l,o=s.length,p=createTypedArray("float32",o);for(l=0;ldata.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;iC.length-1)&&(_=C.length-1),y=C[C.length-1-_].t,c=u-y);var P,A,F;if(f==="pingpong"){var B=Math.floor((d-y)/c);if(B%2!==0)return this.getValueAtTime((c-(d-y)%c+y)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var H=this.getValueAtTime(y/this.comp.globalData.frameRate,0),nt=this.getValueAtTime(u/this.comp.globalData.frameRate,0),ct=this.getValueAtTime(((d-y)%c+y)/this.comp.globalData.frameRate,0),ut=Math.floor((d-y)/c);if(this.pv.length){for(F=new Array(H.length),A=F.length,P=0;P=u)return this.pv;var c,y;m?(_?c=Math.abs(this.elem.comp.globalData.frameRate*_):c=Math.max(0,this.elem.data.op-u),y=u+c):((!_||_>C.length-1)&&(_=C.length-1),y=C[_].t,c=y-u);var P,A,F;if(f==="pingpong"){var B=Math.floor((u-d)/c);if(B%2===0)return this.getValueAtTime(((u-d)%c+u)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var H=this.getValueAtTime(u/this.comp.globalData.frameRate,0),nt=this.getValueAtTime(y/this.comp.globalData.frameRate,0),ct=this.getValueAtTime((c-(u-d)%c+u)/this.comp.globalData.frameRate,0),ut=Math.floor((u-d)/c)+1;if(this.pv.length){for(F=new Array(H.length),A=F.length,P=0;P1?(C-d)/(_-1):1,c=0,y=0,P;this.pv.length?P=createTypedArray("float32",this.pv.length):P=0;for(var A;c<_;){if(A=this.getValueAtTime(d+c*u),this.pv.length)for(y=0;yu){var F=c,B=m.c&&c===y-1?0:c+1,H=(u-P)/C[c].addedLength;A=bez.getPointInSegment(m.v[F],m.v[B],m.o[F],m.i[B],H,C[c]);break}else P+=C[c].addedLength;c+=1;}return A||(A=m.c?[m.v[0][0],m.v[0][1]]:[m.v[m._length-1][0],m.v[m._length-1][1]]),A},vectorOnPath:function(f,_,m){f==1?f=this.v.c:f==0&&(f=.999);var d=this.pointOnPath(f,_),C=this.pointOnPath(f+.001,_),u=C[0]-d[0],c=C[1]-d[1],y=Math.sqrt(Math.pow(u,2)+Math.pow(c,2));if(y===0)return [0,0];var P=m==="tangent"?[u/y,c/y]:[-c/y,u/y];return P},tangentOnPath:function(f,_){return this.vectorOnPath(f,_,"tangent")},normalOnPath:function(f,_){return this.vectorOnPath(f,_,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([g],o),extendPrototype([g],p),p.prototype.getValueAtTime=l,p.prototype.initiateExpression=ExpressionManager.initiateExpression;var v=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,_,m,d,C){var u=v(f,_,m,d,C);return u.propertyIndex=_.ix,u.lock=!1,m===3?expressionHelpers.searchExpressions(f,_.pt,u):m===4&&expressionHelpers.searchExpressions(f,_.ks,u),u.k&&f.addDynamicProperty(u),u};}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=p?v=m<0?r:s:v=r+_*Math.pow((l-t)/m,1/i),g[f]=v,f+=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 l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",r+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,t.appendChild(l);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 p=createNS("feFlood");p.setAttribute("flood-color","#00ff00"),p.setAttribute("flood-opacity","1"),p.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=p,t.appendChild(p);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 v=this.createMergeNode(r,[r+"_drop_shadow_4",s]);t.appendChild(v);}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;eDy});var My,Dy,pc=Pr(()=>{ys();My=me((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;},l=function(){return s},o=function(h){r=h;},p=function(){return r};function g(h){return document.createElement(h)}function v(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 qt(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){C=!!h;},Ot=function(){return C},ee=function(h){u=h;},ae=function(){return u},le=function(h){H=h;},ye=function(){return H},de=function(h){c=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&&l()){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 tt(){M||(M=$(function(J){function W(){function G(Lt,wt){var Et,Tt,gt=Lt.length,Ft,Zt,Ut,Se;for(Tt=0;Tt=0;wt-=1)if(Lt[wt].ty==="sh")if(Lt[wt].ks.k.i)vt(Lt[wt].ks.k);else for(gt=Lt[wt].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 Bt=function(){var Lt=[4,4,14];function wt(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(){vt.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 vt={img:yt,assetData:ht};return vt}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(){vt.img=h,this._imageLoaded();}.bind(this),!1),yt.src=Q;var vt={img:yt,assetData:ht};return vt}function tt(ht){var Q={assetData:ht},yt=M(ht,this.assetsPath,this.path);return Wt.loadData(yt,function(vt){Q.img=vt,this._footageLoaded();}.bind(this),function(){Q.img={},this._footageLoaded();}.bind(this)),Q}function Z(ht,Q){this.imagesLoadedCb=Q;var yt,vt=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");},Ht.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);}},Ht.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")));},Ht.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());},Ht.prototype.togglePause=function(h){h&&this.name!==h||(this.isPaused===!0?this.play():this.pause());},Ht.prototype.stop=function(h){h&&this.name!==h||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0));},Ht.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"));}},Ht.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");},Ht.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);},Ht.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?vt=Vt:yt=Vt;while(Math.abs($t)>V&&++Kt<$);return Vt}function at(Q,yt,vt,kt){for(var Bt=0;Bt=R?at(Q,St,yt,vt):At===0?St:G(Q,Bt,Bt+Z,yt,vt)}},h}(),be=function(){function h(x){return x.concat(d(x.length))}return {double:h}}(),ze=function(){return function(h,x,S){var M=0,R=h,V=d(R),$={newElement:tt,release:Z};function tt(){var st;return M?(M-=1,st=V[M]):st=x(),st}function Z(st){M===R&&(V=be.double(V),R*=2),S&&S(st),V[M]=st,M+=1;}return $}}(),si=function(){function h(){return {addedLength:0,percents:m("float32",ye()),lengths:m("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,G,at,ht,Q,yt,vt){if(X===0&&ht===0&&vt===0)return x(J,W,G,at,Q,yt);var kt=h.sqrt(h.pow(G-J,2)+h.pow(at-W,2)+h.pow(ht-X,2)),Bt=h.sqrt(h.pow(Q-J,2)+h.pow(yt-W,2)+h.pow(vt-X,2)),$t=h.sqrt(h.pow(Q-G,2)+h.pow(yt-at,2)+h.pow(vt-ht,2)),Vt;return kt>Bt?kt>$t?Vt=kt-Bt-$t:Vt=$t-Bt-kt:$t>Bt?Vt=$t-Bt-kt:Vt=Bt-kt-$t,Vt>-1e-4&&Vt<1e-4}var M=function(){return function(J,W,X,G){var at=ye(),ht,Q,yt,vt,kt,Bt=0,$t,Vt=[],Kt=[],St=si.newElement();for(yt=X.length,ht=0;htQ?-1:1,kt=!0;kt;)if(G[ht]<=Q&&G[ht+1]>Q?(yt=(Q-G[ht])/(G[ht+1]-G[ht]),kt=!1):ht+=vt,ht<0||ht>=at-1){if(ht===at-1)return X[ht];kt=!1;}return X[ht]+(X[ht+1]-X[ht])*yt}function st(J,W,X,G,at,ht){var Q=Z(at,ht),yt=1-Q,vt=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)*G[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)*G[1]+Q*Q*Q*W[1])*1e3)/1e3;return [vt,kt]}var pt=m("float32",8);function it(J,W,X,G,at,ht,Q){at<0?at=0:at>1&&(at=1);var yt=Z(at,Q);ht=ht>1?1:ht;var vt=Z(ht,Q),kt,Bt=J.length,$t=1-yt,Vt=1-vt,Kt=$t*$t*$t,St=yt*$t*$t*3,At=yt*yt*$t*3,lt=yt*yt*yt,Mt=$t*$t*Vt,Lt=yt*$t*Vt+$t*yt*Vt+$t*$t*vt,wt=yt*yt*Vt+$t*yt*vt+yt*$t*vt,Et=yt*yt*vt,Tt=$t*Vt*Vt,gt=yt*Vt*Vt+$t*vt*Vt+$t*Vt*vt,Ft=yt*vt*Vt+$t*vt*vt+yt*Vt*vt,Zt=yt*vt*vt,Ut=Vt*Vt*Vt,Se=vt*Vt*Vt+Vt*vt*Vt+Vt*Vt*vt,xe=vt*vt*Vt+Vt*vt*vt+vt*Vt*vt,Ie=vt*vt*vt;for(kt=0;kt=st.t-S){Z.h&&(Z=st),R=0;break}if(st.t-S>h){R=V;break}V<$-1?V+=1:(R=0,tt=!1);}pt=this.keyframesMetadata[V]||{};var it,J,W,X,G,at,ht=st.t-S,Q=Z.t-S,yt;if(Z.to){pt.bezierData||(pt.bezierData=Ei.buildBezierData(Z.s,st.s||Z.e,Z.to,Z.ti));var vt=pt.bezierData;if(h>=ht||h=ht?vt.points.length-1:0;for(J=vt.points[kt].point.length,it=0;it=Vt&&Bt=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=ns(Z.s),wt=ns(yt),Et=(h-Q)/(ht-Q);jr(M,ha(Lt,wt,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),G=Math.sin((1-S)*J)/X,at=Math.sin(S*J)/X):(G=1-S,at=S),M[0]=G*R+at*Z,M[1]=G*V+at*st,M[2]=G*$+at*pt,M[3]=G*tt+at*it,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),tt=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]=$/nt,h[1]=tt/nt,h[2]=Z/nt;}function ns(h){var x=h[0]*nt,S=h[1]*nt,M=h[2]*nt,R=Math.cos(x/2),V=Math.cos(S/2),$=Math.cos(M/2),tt=Math.sin(x/2),Z=Math.sin(S/2),st=Math.sin(M/2),pt=R*V*$-tt*Z*st,it=tt*Z*$+R*V*st,J=tt*V*$+R*Z*st,W=R*Z*$-tt*V*st;return [it,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 Rr(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 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 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,$,tt){this.setXYAt(h,x,"v",$,tt),this.setXYAt(S,M,"o",$,tt),this.setXYAt(R,V,"i",$,tt);},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,tt;for(tt=R;tt<$;tt+=1)h.setTripleAt(x[V][0],x[V][1],M[V][0],M[V][1],S[V][0],S[V][1],tt,!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 wt=vt,Et=Lt.length-1,Tt=!0,gt,Ft,Zt;Tt&&(gt=Lt[wt],Ft=Lt[wt+1],!(Ft.t-this.offsetTime>ht));)wt=Ft.t-this.offsetTime)lt=1;else if(htyt&&ht>yt)||(this._caching.lastIndex=vt0||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]),xe=Et(gt[12]),Ie=Et(gt[13]);return "matrix("+Ft+","+Zt+","+Ut+","+Se+","+xe+","+Ie+")"}return function(){this.reset=R,this.rotate=V,this.rotateX=$,this.rotateY=tt,this.rotateZ=Z,this.skew=pt,this.skewFromAxis=it,this.shear=st,this.scale=J,this.setTransform=W,this.translate=X,this.transform=G,this.multiply=at,this.applyToPoint=kt,this.applyToX=Bt,this.applyToY=$t,this.applyToZ=Vt,this.applyToPointArray=Mt,this.applyToTriplePoints=lt,this.applyToPointStringified=Lt,this.toCSS=wt,this.to2dCSS=Tt,this.clone=yt,this.cloneFromProps=vt,this.equals=Q,this.inversePoints=At,this.inversePoint=St,this.getInverseMatrix=Kt,this._t=this.transform,this.isIdentity=ht,this._identity=!0,this._identityCalculated=!1,this.props=m("float32",16),this.reset();}}();function Er(h){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Er=function(x){return typeof x}:Er=function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},Er(h)}var ge={};function Vs(h){o(h);}function ti(){ne.searchAnimations();}function Ta(h){Gt(h);}function la(h){de(h);}function Ma(h){return ne.loadAnimation(h)}function os(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 Da(){return typeof navigator<"u"}function Fa(h,x){h==="expressions"&&ee(x);}function Ia(h){switch(h){case"propertyFactory":return te;case"shapePropertyFactory":return yr;case"matrix":return He;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=Ma,ge.setSubframeRendering=Ta,ge.resize=ne.resize,ge.goToAndStop=ne.goToAndStop,ge.destroy=ne.destroy,ge.setQuality=os,ge.inBrowser=Da,ge.installPlugin=Fa,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=Ia,ge.version="5.12.2";function La(){document.readyState==="complete"&&(clearInterval(Zs),ti());}function Va(h){for(var x=Ys.split("&"),S=0;S"u"?"undefined":Er(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());},v([Ye],li);function ei(){}v([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 $=[],tt,Z=V.length,st;for(tt=0;ttM+S)){var pt,it;st.s*R<=M?pt=0:pt=(st.s*R-M)/S,st.e*R>=M+S?it=1:it=(st.e*R-M)/S,$.push([pt,it]);}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,$,tt=this.shapes.length,Z,st,pt,it,J,W=0;if(S===x)for($=0;$=0;$-=1)if(G=this.shapes[$],G.shape._mdf){for(at=G.localShapeCollection,at.releaseShapes(),this.m===2&&tt>1?(vt=this.calculateShapeEdges(x,S,G.totalShapeLength,yt,W),yt+=G.totalShapeLength):vt=[[ht,Q]],st=vt.length,Z=0;Z=1?X.push({s:G.totalShapeLength*(ht-1),e:G.totalShapeLength*(Q-1)}):(X.push({s:G.totalShapeLength*ht,e:G.totalShapeLength}),X.push({s:0,e:G.totalShapeLength*(Q-1)}));var kt=this.addShapes(G,X[0]);if(X[0].s!==X[0].e){if(X.length>1){var Bt=G.shape.paths.shapes[G.shape.paths._length-1];if(Bt.c){var $t=kt.pop();this.addPaths(kt,at),kt=this.addShapes(G,X[1],$t);}else this.addPaths(kt,at),kt=this.addShapes(G,X[1]);}this.addPaths(kt,at);}}G.shape.paths=at;}}},ei.prototype.addPaths=function(h,x){var S,M=h.length;for(S=0;Sx.e){S.c=!1;break}else x.s<=st&&x.e>=st+pt.addedLength?(this.addSegment(R[V].v[tt-1],R[V].o[tt-1],R[V].i[tt],R[V].v[tt],S,it,at),at=!1):(W=Ei.getNewSegment(R[V].v[tt-1],R[V].v[tt],R[V].o[tt-1],R[V].i[tt],(x.s-st)/pt.addedLength,(x.e-st)/pt.addedLength,J[tt-1]),this.addSegmentFromArray(W,S,it,at),at=!1,S.c=!1),st+=pt.addedLength,it+=1;if(R[V].c&&J.length){if(pt=J[tt-1],st<=x.e){var ht=J[tt-1].addedLength;x.s<=st&&x.e>=st+ht?(this.addSegment(R[V].v[tt-1],R[V].o[tt-1],R[V].i[0],R[V].v[0],S,it,at),at=!1):(W=Ei.getNewSegment(R[V].v[tt-1],R[V].v[0],R[V].o[tt-1],R[V].i[0],(x.s-st)/ht,(x.e-st)/ht,J[tt-1]),this.addSegmentFromArray(W,S,it,at),at=!1,S.c=!1);}else S.c=!1;st+=pt.addedLength,it+=1;}if(S._length&&(S.setXYAt(S.v[G][0],S.v[G][1],"i",G),S.setXYAt(S.v[S._length-1][0],S.v[S._length-1][1],"o",S._length-1)),st>x.e)break;V<$-1&&(S=Ne.newElement(),at=!0,X.push(S),it=0);}return X};function wi(){}v([li],wi),wi.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;},wi.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/st,0),it=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/st,0)):(pt=this.p.pv,it=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/st,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){pt=[],it=[];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)/st,0),pt[1]=W.getValueAtTime((W.keyframes[0].t+.01)/st,0),it[0]=J.getValueAtTime(J.keyframes[0].t/st,0),it[1]=W.getValueAtTime(W.keyframes[0].t/st,0)):J._caching.lastFrame+J.offsetTime>=J.keyframes[J.keyframes.length-1].t?(pt[0]=J.getValueAtTime(J.keyframes[J.keyframes.length-1].t/st,0),pt[1]=W.getValueAtTime(W.keyframes[W.keyframes.length-1].t/st,0),it[0]=J.getValueAtTime((J.keyframes[J.keyframes.length-1].t-.01)/st,0),it[1]=W.getValueAtTime((W.keyframes[W.keyframes.length-1].t-.01)/st,0)):(pt=[J.pv,W.pv],it[0]=J.getValueAtTime((J._caching.lastFrame+J.offsetTime-.01)/st,J.offsetTime),it[1]=W.getValueAtTime((W._caching.lastFrame+W.offsetTime-.01)/st,W.offsetTime));}else it=h,pt=it;this.v.rotate(-Math.atan2(pt[1]-it[1],pt[0]-it[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,st,pt){if(this.elem=Z,this.frameId=-1,this.propType="transform",this.data=st,this.v=new He,this.pre=new He,this.appliedTransformations=0,this.initDynamicPropertyContainer(pt||Z),st.p&&st.p.s?(this.px=te.getProp(Z,st.p.x,0,0,this),this.py=te.getProp(Z,st.p.y,0,0,this),st.p.z&&(this.pz=te.getProp(Z,st.p.z,0,0,this))):this.p=te.getProp(Z,st.p||{k:[0,0,0]},1,0,this),st.rx){if(this.rx=te.getProp(Z,st.rx,0,nt,this),this.ry=te.getProp(Z,st.ry,0,nt,this),this.rz=te.getProp(Z,st.rz,0,nt,this),st.or.k[0].ti){var it,J=st.or.k.length;for(it=0;it0;)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),G=this.pMatrix.props,at=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,vt;V;){if(x=this.elemsData[M].it,S=x[x.length-1].transform.mProps.v.props,vt=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(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]),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(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]),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 tt=h.point(V[$])[x];ttM&&(M=tt);}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 ts(h){var x=h.bez.split(.5);return [ni(x[0],h.t1,h.t),ni(x[1],h.t,h.t2)]}function ls(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 $=ts(h),tt=ts(x);wr($[0],tt[0],S+1,M,R,V),wr($[0],tt[1],S+1,M,R,V),wr($[1],tt[0],S+1,M,R,V),wr($[1],tt[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 wr(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 Ps(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],tt=[M[0],M[1],1],Z=Ps(Ps(R,V),Ps($,tt));return Or(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 qi(h,x){return ji(h[0],x[0])&&ji(h[1],x[1])}function or(){}v([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 tt=S-Math.PI/2,Z=S+Math.PI/2,st=x[0]+Math.cos(S)*M*R,pt=x[1]-Math.sin(S)*M*R;h.setTripleAt(st,pt,st+Math.cos(tt)*V,pt-Math.sin(tt)*V,st+Math.cos(Z)*$,pt-Math.sin(Z)*$,h.length());}function _s(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],$=_s(R,V);return Math.atan2(0,1)-Math.atan2($[1],$[0])}function Ss(h,x,S,M,R,V,$){var tt=ca(x,S),Z=x.v[S%x._length],st=x.v[S===0?x._length-1:S-1],pt=x.v[(S+1)%x._length],it=V===2?Math.sqrt(Math.pow(Z[0]-st[0],2)+Math.pow(Z[1]-st[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],tt,$,M,J/((R+1)*2),it/((R+1)*2));}function Ra(h,x,S,M,R,V){for(var $=0;$1&&x.length>1&&(R=Ar(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=fs(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 [gr(h,x)];if(S.length===1||ji(S[1],1))return V=h.split(S[0]),M=V[0],R=V[1],[gr(M,x),gr(R,x)];V=h.split(S[0]),M=V[0];var tt=(S[1]-S[0])/(1-S[0]);return V=V[1].split(tt),$=V[0],R=V[1],[gr(M,x),gr($,x),gr(R,x)]}function Tr(){}v([li],Tr),Tr.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;},Tr.prototype.processPath=function(h,x,S,M){var R=Ne.newElement();R.c=h.c;var V=h.length();h.c||(V-=1);var $,tt,Z,st=[];for($=0;$=0;$-=1)Z=je.shapeSegmentInverted(h,$),st.push(Bs(Z,x));st=Os(st);var pt=null,it=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(xe=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ie=0;Ie=55296&><=56319){var Ft=Et.charCodeAt(1);Ft>=56320&&Ft<=57343&&(Tt=(gt-55296)*1024+Ft-56320+65536);}return Tt}function Bt(Et,Tt){var gt=Et.toString(16)+Tt.toString(16);return it.indexOf(gt)!==-1}function $t(Et){return Et===Z}function Vt(Et){return Et===tt}function Kt(Et){var Tt=kt(Et);return Tt>=st&&Tt<=pt}function St(Et){return Kt(Et.substr(0,2))&&Kt(Et.substr(2,2))}function At(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=Bt,Lt.isZeroWidthJoiner=$t,Lt.isFlagEmoji=St,Lt.isRegionalCode=Kt,Lt.isCombinedCharacter=At,Lt.isRegionalFlag=lt,Lt.isVariationSelector=Vt,Lt.BLACK_FLAG_CODE_POINT=M;var wt={addChars:ht,addFonts:at,getCharData:Q,getFontByName:vt,measureText:yt,checkLoadedFonts:X,setIsLoaded:Mt};return Lt.prototype=wt,Lt}();function Mr(h){this.animationData=h;}Mr.prototype.getProp=function(h){return this.animationData.slots&&this.animationData.slots[h.sid]?Object.assign(h,this.animationData.slots[h.sid].p):h};function vr(h){return new Mr(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));},_e.prototype.show=function(){},_e.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1;},_e.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1;},_e.prototype.resume=function(){this._canPlay=!0;},_e.prototype.setRate=function(h){this.audio.rate(h);},_e.prototype.volume=function(h){this._volumeMultiplier=h,this._previousVolume=h*this._volume,this.audio.volume(this._previousVolume);},_e.prototype.getBaseElement=function(){return null},_e.prototype.destroy=function(){},_e.prototype.sourceRectAtTime=function(){},_e.prototype.initExpressions=function(){};function we(){}we.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();},we.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)}},we.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},we.prototype.createAudio=function(h){return new _e(h,this.globalData,this)},we.prototype.createFootage=function(h){return new Ve(h,this.globalData,this)},we.prototype.buildAllItems=function(){var h,x=this.layers.length;for(h=0;h0&&(this.maskElement.setAttribute("id",J),this.element.maskedElement.setAttribute(Q,"url("+p()+"#"+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 Ai=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}(),Dr={},ma="filter_result_";function ks(h){var x,S="SourceGraphic",M=h.data.ef?h.data.ef.length:0,R=k(),V=Ai.createFilter(R,!0),$=0;this.filters=[];var tt;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},Br.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(Bt=J.sh.paths,G=Bt._length,ht){for(at="",X=0;X=1?Mt=.99:Mt<=-1&&(Mt=-.99);var Lt=At*Mt,wt=Math.cos(lt+J.a.v)*Lt+at[0],Et=Math.sin(lt+J.a.v)*Lt+at[1];X.setAttribute("fx",wt),X.setAttribute("fy",Et),G&&!J.g._collapsable&&(J.of.setAttribute("fx",wt),J.of.setAttribute("fy",Et));}}}function pt(it,J,W){var X=J.style,G=J.d;G&&(G._mdf||W)&&G.dashStr&&(X.pElem.setAttribute("stroke-dasharray",G.dashStr),X.pElem.setAttribute("stroke-dashoffset",G.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=[];}v([Fe,Ge,Jr,is,Ui,Re,er],$e),$e.prototype.initSecondaryElement=function(){},$e.prototype.identityMatrix=new He,$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,$=[],tt=!1;for(M=0;M1&&tt&&this.setShapesAsAnimated($);}},$e.prototype.setShapesAsAnimated=function(h){var x,S=h.length;for(x=0;x=0;Z-=1){if(at=this.searchProcessedElement(h[Z]),at?x[Z]=S[at-1]:h[Z]._render=$,h[Z].ty==="fl"||h[Z].ty==="st"||h[Z].ty==="gf"||h[Z].ty==="gs"||h[Z].ty==="no")at?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(!at)x[Z]=this.createGroupElement(h[Z]);else for(it=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,tt=!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,tt=!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,$,tt=0,Z,st=S.m.g,pt=0,it=0,J=0,W=[],X=0,G=0,at,ht,Q=x.getFontByName(h.f),yt,vt=0,kt=cs(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 Bt=h.tr/1e3*h.finalSize,$t;if(h.sz)for(var Vt=!0,Kt=h.sz[0],St=h.sz[1],At,lt;Vt;){lt=this.buildFinalText(h.t),At=0,X=0,V=lt.length,Bt=h.tr/1e3*h.finalSize;var Mt=-1;for(R=0;RKt&<[R]!==" "?(Mt===-1?V+=1:R=Mt,At+=h.finalLineHeight||h.finalSize*1.2,lt.splice(R,Mt===R?1:0,"\r"),Mt=-1,X=0):(X+=vt,X+=Bt);At+=Q.ascent*h.finalSize/100,this.canResize&&h.finalSize>this.minimumFontSize&&StG?X:G,X=-2*Bt,Z="",$=!0,J+=1):Z=wt,x.chars?(yt=x.getCharData(wt,Q.fStyle,x.getFontByName(h.f).fFamily),vt=$?0:yt.w*h.finalSize/100):vt=x.measureText(Z,h.f,h.finalSize),wt===" "?Lt+=vt+Bt:(X+=vt+Bt+Lt,Lt=0),M.push({l:vt,an:vt,add:pt,n:$,anIndexes:[],val:Z,line:J,animatorJustifyOffset:0}),st==2){if(pt+=vt,Z===""||Z===" "||R===V-1){for((Z===""||Z===" ")&&(pt-=vt);it<=R;)M[it].an=pt,M[it].ind=tt,M[it].extra=vt,it+=1;tt+=1,pt=0;}}else if(st==3){if(pt+=vt,Z===""||R===V-1){for(Z===""&&(pt-=vt);it<=R;)M[it].an=pt,M[it].ind=tt,M[it].extra=vt,it+=1;pt=0,tt+=1;}}else M[tt].ind=tt,M[tt].extra=0,tt+=1;if(h.l=M,G=X>G?X:G,W.push(X),h.sz)h.boxWidth=h.sz[0],h.justifyOffset=0;else switch(h.boxWidth=G,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(at=0;at0?$=this.ne.v/100:tt=-this.ne.v/100,this.xe.v>0?Z=1-this.xe.v/100:st=1+this.xe.v/100;var pt=oe.getBezierEasing($,tt,Z,st).get,it=0,J=this.finalS,W=this.finalE,X=this.data.sh;if(X===2)W===J?it=V>=W?1:0:it=h(0,x(.5/(W-J)+(V-J)/(W-J),1)),it=pt(it);else if(X===3)W===J?it=V>=W?0:1:it=1-h(0,x(.5/(W-J)+(V-J)/(W-J),1)),it=pt(it);else if(X===4)W===J?it=0:(it=h(0,x(.5/(W-J)+(V-J)/(W-J),1)),it<.5?it*=2:it=1-2*(it-.5)),it=pt(it);else if(X===5){if(W===J)it=0;else {var G=W-J;V=x(h(0,V+.5-J),W-J);var at=-G/2+V,ht=G/2;it=Math.sqrt(1-at*at/(ht*ht));}it=pt(it);}else X===6?(W===J?it=0:(V=x(h(0,V+.5-J),W-J),it=(1+Math.cos(Math.PI+Math.PI*2*V/(W-J)))/2),it=pt(it)):(V>=S(J)&&(V-J<0?it=h(0,x(x(W,1)-(J-V),1)):it=h(0,x(W-V,1))),it=pt(it));if(this.sm.v!==100){var Q=this.sm.v*.01;Q===0&&(Q=1e-8);var yt=.5-Q*.5;it1&&(it=1));}return it*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,tt=this.o.v/$,Z=this.s.v/$+tt,st=this.e.v/$+tt;if(Z>st){var pt=Z;Z=st,st=pt;}this.finalS=Z,this.finalE=st;}},v([Ye],M);function R(V,$,tt){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,nt,S):M,rx:V.rx?R(h,V.rx,0,nt,S):M,ry:V.ry?R(h,V.ry,0,nt,S):M,sk:V.sk?R(h,V.sk,0,nt,S):M,sa:V.sa?R(h,V.sa,0,nt,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=Ga.getTextSelectorProp(h,x.s,S),this.s.t=x.s.t;}function br(h,x,S){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=h,this._renderType=x,this._elem=S,this._animatorsData=d(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(S);}br.prototype.searchProperties=function(){var h,x=this._textData.a.length,S,M=te.getProp;for(h=0;h=X+As||!kt?(Kt=(X+As-at)/G.partialLength,Ie=vt.point[0]+(G.point[0]-vt.point[0])*Kt,Ee=vt.point[1]+(G.point[1]-vt.point[1])*Kt,V.translate(-S[0]*J[pt].an*.005,-(S[1]*Lt)*.01),ht=!1):kt&&(at+=G.partialLength,Q+=1,Q>=kt.length&&(Q=0,yt+=1,Bt[yt]?kt=Bt[yt].points:At.v.c?(Q=0,yt=0,kt=Bt[yt].points):(at-=G.partialLength,kt=null)),kt&&(vt=G,G=kt[Q],$t=G.partialLength));xe=J[pt].an/2-J[pt].add,V.translate(-xe,0,0);}else xe=J[pt].an/2-J[pt].add,V.translate(-xe,0,0),V.translate(-S[0]*J[pt].an*.005,-S[1]*Lt*.01,0);for(gt=0;gth?this.textSpans[h].span:Xt(tt?"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,tt){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(st.reset(),it&&($[h].n&&(J=-G,W+=S.yOffset,W+=X?1:0,X=!1),this.applyTextPropertiesToMatrix(S,st,$[h].line,J,W),J+=$[h].l||0,J+=G),tt){vt=this.globalData.fontManager.getCharData(S.finalText[h],M.fStyle,this.globalData.fontManager.getFontByName(S.f).fFamily);var Bt;if(vt.t===1)Bt=new di(vt.data,this.globalData,this);else {var $t=ws;vt.data&&vt.data.shapes&&($t=this.buildShapeData(vt.data,S.finalSize)),Bt=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=Bt,Bt._debug=!0,Bt.prepareFrame(0),Bt.renderFrame(),this.textSpans[h].childSpan.appendChild(Bt.layerElement),vt.t===1&&this.textSpans[h].childSpan.setAttribute("transform","scale("+S.finalSize/100+","+S.finalSize/100+")");}else it&&Z.setAttribute("transform","translate("+st.props[12]+","+st.props[13]+")"),Z.textContent=$[h].val,Z.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}it&&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));}},xi.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 rt(this),this.searchEffectTransforms();},createContent:function(){},setBlendMode:function(){var h=this.globalData;if(h.blendMode!==this.data.bm){h.blendMode=this.data.bm;var x=es(this.data.bm);h.canvasContext.globalCompositeOperation=x;}},createRenderableComponents:function(){this.maskManager=new xt(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=Pt[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 He},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=yr.getShapeProp(h,x,R,h);var V,$=S.length,tt;for(V=0;V<$;V+=1)S[V].closed||(tt={transforms:M.addTransformSequence(S[V].transforms),trNodes:[]},this.styledShapes.push(tt),S[V].elements.push(tt));}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 E,this.initElement(h,x,S);}v([Fe,Ge,Dt,is,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,nt,this),M.g=new Br(this,h.g,this)),M.o=te.getProp(this,h.o,0,.01,this),h.ty==="st"||h.ty==="gs"){if(S.lc=da[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 rs(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(it=this.searchProcessedElement(h[V]),it?x[V]=S[it-1]:h[V]._shouldRender=M,h[V].ty==="fl"||h[V].ty==="st"||h[V].ty==="gf"||h[V].ty==="gs")it?x[V].style.closed=!1:x[V]=this.createStyleElement(h[V],X),st.push(x[V].style);else if(h[V].ty==="gr"){if(!it)x[V]=this.createGroupElement(h[V]);else for(Z=x[V].it.length,tt=0;tt=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,$,tt=M._length;S.length=0;var Z=h.transforms.finalTransform;for($=0;$=1?pt=.99:pt<=-1&&(pt=-.99);var it=Z*pt,J=Math.cos(st+x.a.v)*it+$[0],W=Math.sin(st+x.a.v)*it+$[1];R=V.createRadialGradient(J,W,0,$[0],$[1],Z);}var X,G=h.g.p,at=x.g.c,ht=1;for(X=0;XV&&Z==="xMidYMid slice"||RR&&tt==="meet"||VR&&tt==="slice")?this.transformCanvas.tx=(S-this.transformCanvas.w*(M/this.transformCanvas.h))/2*this.renderConfig.dpr:st==="xMax"&&(VR&&tt==="slice")?this.transformCanvas.tx=(S-this.transformCanvas.w*(M/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,pt==="YMid"&&(V>R&&tt==="meet"||VR&&tt==="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;},w.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();}}},w.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();}},w.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var h=this.pendingElements.pop();h.checkParenting();}},w.prototype.hide=function(){this.animationItem.container.style.display="none";},w.prototype.show=function(){this.animationItem.container.style.display="block";};function T(){this.opacity=-1,this.transform=m("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 He;var h,x=15;for(h=0;h=0;x-=1)(this.completeLayers||this.elements[x])&&this.elements[x].renderFrame();},j.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;},j.prototype.createComp=function(h){return new j(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 He,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 v([w],N),N.prototype.createComp=function(h){return new j(h,this.globalData,this)},Te("canvas",N),Ii.registerModifier("tm",ei),Ii.registerModifier("pb",wi),Ii.registerModifier("rp",bi),Ii.registerModifier("rd",ar),Ii.registerModifier("zz",or),Ii.registerModifier("op",Tr),ge});}),Dy=My();});var fc={};qs(fc,{default:()=>Iy});var Fy,Iy,cc=Pr(()=>{ys();Fy=me((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(f){i({data:f});}},a={postMessage:function(f){s.onmessage({data:f});}};function n(f){if(window.Worker&&window.Blob&&getWebWorker()){var _=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),m=URL.createObjectURL(_);return new Worker(m)}return i=f,s}function l(){r||(r=n(function(f){function _(){function d(et,bt){var D,O,k=et.length,L,K,U,qt;for(O=0;O=0;bt-=1)if(et[bt].ty==="sh")if(et[bt].ks.k.i)P(et[bt].ks.k);else for(k=et[bt].ks.k.length,O=0;OD[0]?!0:D[0]>et[0]?!1:et[1]>D[1]?!0:D[1]>et[1]?!1:et[2]>D[2]?!0:D[2]>et[2]?!1:null}var F=function(){var et=[4,4,14];function bt(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)),c+=1;}.bind(this),50);}function a(u){var c=r(u,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",c),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var P={img:y,assetData:u};return P}function n(u){var c=r(u,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=c;var P={img:y,assetData:u};return P}function l(u){var c={assetData:u},y=r(u,this.assetsPath,this.path);return dataManager.loadData(y,function(P){c.img=P,this._footageLoaded();}.bind(this),function(){c.img={},this._footageLoaded();}.bind(this)),c}function o(u,c){this.imagesLoadedCb=c;var y,P=u.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 H(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=H:y=H;while(Math.abs(B)>a&&++nt=s?C(c,ct,y,P):ut===0?ct:d(c,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:l,release:o};function l(){var p;return r?(r-=1,p=a[r]):p=e(),p}function o(p){r===s&&(a=pooling.double(a),s*=2),i&&i(p),a[r]=p,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&&c<.001}function i(f,_,m,d,C,u,c,y,P){if(m===0&&u===0&&P===0)return e(f,_,d,C,c,y);var A=t.sqrt(t.pow(d-f,2)+t.pow(C-_,2)+t.pow(u-m,2)),F=t.sqrt(t.pow(c-f,2)+t.pow(y-_,2)+t.pow(P-m,2)),B=t.sqrt(t.pow(c-d,2)+t.pow(y-C,2)+t.pow(P-u,2)),H;return A>F?A>B?H=A-F-B:H=B-F-A:B>F?H=B-F-A:H=F-A-B,H>-1e-4&&H<1e-4}var r=function(){return function(f,_,m,d){var C=getDefaultCurveSegments(),u,c,y,P,A,F=0,B,H=[],nt=[],ct=bezierLengthPool.newElement();for(y=m.length,u=0;uc?-1:1,A=!0;A;)if(d[u]<=c&&d[u+1]>c?(y=(c-d[u])/(d[u+1]-d[u]),A=!1):u+=P,u<0||u>=C-1){if(u===C-1)return m[u];A=!1;}return m[u]+(m[u+1]-m[u])*y}function p(f,_,m,d,C,u){var c=o(C,u),y=1-c,P=t.round((y*y*y*f[0]+(c*y*y+y*c*y+y*y*c)*m[0]+(c*c*y+y*c*c+c*y*c)*d[0]+c*c*c*_[0])*1e3)/1e3,A=t.round((y*y*y*f[1]+(c*y*y+y*c*y+y*y*c)*m[1]+(c*c*y+y*c*c+c*y*c)*d[1]+c*c*c*_[1])*1e3)/1e3;return [P,A]}var g=createTypedArray("float32",8);function v(f,_,m,d,C,u,c){C<0?C=0:C>1&&(C=1);var y=o(C,c);u=u>1?1:u;var P=o(u,c),A,F=f.length,B=1-y,H=1-P,nt=B*B*B,ct=y*B*B*3,ut=y*y*B*3,mt=y*y*y,_t=B*B*H,et=y*B*H+B*y*H+B*B*P,bt=y*y*H+B*y*P+y*B*P,D=y*y*P,O=B*H*H,k=y*H*H+B*P*H+B*H*P,L=y*P*H+B*P*P+y*H*P,K=y*P*P,U=H*H*H,qt=P*H*H+H*P*H+H*H*P,It=P*P*H+H*P*P+P*H*P,Gt=P*P*P;for(A=0;A=p.t-i){o.h&&(o=p),s=0;break}if(p.t-i>t){s=a;break}a=u||t=u?P.points.length-1:0;for(f=P.points[A].point.length,v=0;v=H&&F=u)r[0]=y[0],r[1]=y[1],r[2]=y[2];else if(t<=c)r[0]=o.s[0],r[1]=o.s[1],r[2]=o.s[2];else {var et=createQuaternion(o.s),bt=createQuaternion(y),D=(t-c)/(u-c);quaternionToEuler(r,slerp(et,bt,D));}else for(a=0;a=u?_=1:t1e-6?(f=Math.acos(_),m=Math.sin(f),d=Math.sin((1-i)*f)/m,C=Math.sin(i*f)/m):(d=1-i,C=i),r[0]=d*s+C*o,r[1]=d*a+C*p,r[2]=d*n+C*g,r[3]=d*l+C*v,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),l=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]=l/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),l=Math.sin(e/2),o=Math.sin(i/2),p=Math.sin(r/2),g=s*a*n-l*o*p,v=l*o*n+s*a*p,f=l*a*n+s*o*p,_=s*o*n-l*a*p;return [v,f,_,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,l){this.setXYAt(t,e,"v",n,l),this.setXYAt(i,r,"o",n,l),this.setXYAt(s,a,"i",n,l);},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,l;for(l=s;l=et[et.length-1].t-this.offsetTime)A=et[et.length-1].s?et[et.length-1].s[0]:et[et.length-2].e[0],B=!0;else {for(var bt=P,D=et.length-1,O=!0,k,L,K;O&&(k=et[bt],L=et[bt+1],!(L.t-this.offsetTime>u));)bt=L.t-this.offsetTime)mt=1;else if(uy&&u>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]),qt=D(k[5]),It=D(k[12]),Gt=D(k[13]);return "matrix("+L+","+K+","+U+","+qt+","+It+","+Gt+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=n,this.rotateY=l,this.rotateZ=o,this.skew=g,this.skewFromAxis=v,this.shear=p,this.scale=f,this.setTransform=_,this.translate=m,this.transform=d,this.multiply=C,this.applyToPoint=A,this.applyToX=F,this.applyToY=B,this.applyToZ=H,this.applyToPointArray=_t,this.applyToTriplePoints=mt,this.applyToPointStringified=et,this.toCSS=bt,this.to2dCSS=O,this.clone=y,this.cloneFromProps=P,this.equals=c,this.inversePoints=ut,this.inversePoint=ct,this.getInverseMatrix=nt,this._t=this.transform,this.isIdentity=u,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=[],l,o=a.length,p;for(l=0;lr+i)){var g,v;p.s*s<=r?g=0:g=(p.s*s-r)/i,p.e*s>=r+i?v=1:v=(p.e*s-r)/i,n.push([g,v]);}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,l=this.shapes.length,o,p,g,v,f,_=0;if(i===e)for(n=0;n=0;n-=1)if(d=this.shapes[n],d.shape._mdf){for(C=d.localShapeCollection,C.releaseShapes(),this.m===2&&l>1?(P=this.calculateShapeEdges(e,i,d.totalShapeLength,y,_),y+=d.totalShapeLength):P=[[u,c]],p=P.length,o=0;o=1?m.push({s:d.totalShapeLength*(u-1),e:d.totalShapeLength*(c-1)}):(m.push({s:d.totalShapeLength*u,e:d.totalShapeLength}),m.push({s:0,e:d.totalShapeLength*(c-1)}));var A=this.addShapes(d,m[0]);if(m[0].s!==m[0].e){if(m.length>1){var F=d.shape.paths.shapes[d.shape.paths._length-1];if(F.c){var B=A.pop();this.addPaths(A,C),A=this.addShapes(d,m[1],B);}else this.addPaths(A,C),A=this.addShapes(d,m[1]);}this.addPaths(A,C);}}d.shape.paths=C;}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;ie.e){i.c=!1;break}else e.s<=p&&e.e>=p+g.addedLength?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[l],s[a].v[l],i,v,C),C=!1):(_=bez.getNewSegment(s[a].v[l-1],s[a].v[l],s[a].o[l-1],s[a].i[l],(e.s-p)/g.addedLength,(e.e-p)/g.addedLength,f[l-1]),this.addSegmentFromArray(_,i,v,C),C=!1,i.c=!1),p+=g.addedLength,v+=1;if(s[a].c&&f.length){if(g=f[l-1],p<=e.e){var u=f[l-1].addedLength;e.s<=p&&e.e>=p+u?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[0],s[a].v[0],i,v,C),C=!1):(_=bez.getNewSegment(s[a].v[l-1],s[a].v[0],s[a].o[l-1],s[a].i[0],(e.s-p)/u,(e.e-p)/u,f[l-1]),this.addSegmentFromArray(_,i,v,C),C=!1,i.c=!1);}else i.c=!1;p+=g.addedLength,v+=1;}if(i._length&&(i.setXYAt(i.v[d][0],i.v[d][1],"i",d),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),p>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/p,0),v=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/p,0)):(g=this.p.pv,v=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/p,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){g=[],v=[];var f=this.px,_=this.py;f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t?(g[0]=f.getValueAtTime((f.keyframes[0].t+.01)/p,0),g[1]=_.getValueAtTime((_.keyframes[0].t+.01)/p,0),v[0]=f.getValueAtTime(f.keyframes[0].t/p,0),v[1]=_.getValueAtTime(_.keyframes[0].t/p,0)):f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t?(g[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/p,0),g[1]=_.getValueAtTime(_.keyframes[_.keyframes.length-1].t/p,0),v[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/p,0),v[1]=_.getValueAtTime((_.keyframes[_.keyframes.length-1].t-.01)/p,0)):(g=[f.pv,_.pv],v[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/p,f.offsetTime),v[1]=_.getValueAtTime((_._caching.lastFrame+_.offsetTime-.01)/p,_.offsetTime));}else v=t,g=v;this.v.rotate(-Math.atan2(g[1]-v[1],g[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 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,p,g){if(this.elem=o,this.frameId=-1,this.propType="transform",this.data=p,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(g||o),p.p&&p.p.s?(this.px=PropertyFactory.getProp(o,p.p.x,0,0,this),this.py=PropertyFactory.getProp(o,p.p.y,0,0,this),p.p.z&&(this.pz=PropertyFactory.getProp(o,p.p.z,0,0,this))):this.p=PropertyFactory.getProp(o,p.p||{k:[0,0,0]},1,0,this),p.rx){if(this.rx=PropertyFactory.getProp(o,p.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(o,p.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(o,p.rz,0,degToRads,this),p.or.k[0].ti){var v,f=p.or.k.length;for(v=0;v0;)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(f):Math.ceil(f),d=this.pMatrix.props,C=this.rMatrix.props,u=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var c=0;if(f>0){for(;cm;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),c-=1;_&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-_,!0),c-=_);}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)),c!==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(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(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]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),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 l=t.point(a[n])[e];lr&&(r=l);}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),l=splitData(e);intersectsImpl(n[0],l[0],i+1,r,s,a),intersectsImpl(n[0],l[1],i+1,r,s,a),intersectsImpl(n[1],l[0],i+1,r,s,a),intersectsImpl(n[1],l[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],l=[r[0],r[1],1],o=crossProduct(crossProduct(s,a),crossProduct(n,l));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 l=i-Math.PI/2,o=i+Math.PI/2,p=e[0]+Math.cos(i)*r*s,g=e[1]-Math.sin(i)*r*s;t.setTripleAt(p,g,p+Math.cos(l)*a,g-Math.sin(l)*a,p+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 l=getProjectingAngle(e,i),o=e.v[i%e._length],p=e.v[i===0?e._length-1:i-1],g=e.v[(i+1)%e._length],v=a===2?Math.sqrt(Math.pow(o[0]-p[0],2)+Math.pow(o[1]-p[1],2)):0,f=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],l,n,r,f/((s+1)*2),v/((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 l=(i[1]-i[0])/(1-i[0]);return a=a[1].split(l),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,l,o,p=[];for(n=0;n=0;n-=1)o=PolynomialBezier.shapeSegmentInverted(t,n),p.push(offsetSegmentSplit(o,e));p=pruneIntersections(p);var g=null,v=null;for(n=0;n0&&(qt=!1),qt){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 v.indexOf(k)!==-1}function B(D){return D===o}function H(D){return D===l}function nt(D){var O=A(D);return O>=p&&O<=g}function ct(D){return nt(D.substr(0,2))&&nt(D.substr(2,2))}function ut(D){return i.indexOf(D)!==-1}function mt(D,O){var k=A(D.substr(O,2));if(k!==r)return !1;var L=0;for(O+=2;L<5;){if(k=A(D.substr(O,2)),kn)return !1;L+=1,O+=2;}return A(D.substr(O,2))===s}function _t(){this.isLoaded=!0;}var et=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);};et.isModifier=F,et.isZeroWidthJoiner=B,et.isFlagEmoji=ct,et.isRegionalCode=nt,et.isCombinedCharacter=ut,et.isRegionalFlag=mt,et.isVariationSelector=H,et.BLACK_FLAG_CODE_POINT=r;var bt={addChars:u,addFonts:C,getCharData:c,getFontByName:P,measureText:y,checkLoadedFonts:m,setIsLoaded:_t};return et.prototype=bt,et}();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",f),this.element.maskedElement.setAttribute(c,"url("+getLocationHref()+"#"+f+")"),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 l;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;)u=f.transformers[nt].mProps._mdf||u,H-=1,nt-=1;if(u)for(H=A-f.styles[y].lvl,nt=f.transformers.length-1;H>0;)B.multiply(f.transformers[nt].mProps.v),H-=1,nt-=1;}else B=t;if(F=f.sh.paths,d=F._length,u){for(C="",m=0;m=1?_t=.99:_t<=-1&&(_t=-.99);var et=ut*_t,bt=Math.cos(mt+f.a.v)*et+C[0],D=Math.sin(mt+f.a.v)*et+C[1];m.setAttribute("fx",bt),m.setAttribute("fy",D),d&&!f.g._collapsable&&(f.of.setAttribute("fx",bt),f.of.setAttribute("fy",D));}}}function g(v,f,_){var m=f.style,d=f.d;d&&(d._mdf||_)&&d.dashStr&&(m.pElem.setAttribute("stroke-dasharray",d.dashStr),m.pElem.setAttribute("stroke-dashoffset",d.dashoffset[0])),f.c&&(f.c._mdf||_)&&m.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||_)&&m.pElem.setAttribute("stroke-opacity",f.o.v),(f.w._mdf||_)&&(m.pElem.setAttribute("stroke-width",f.w.v),m.msElem&&m.msElem.setAttribute("stroke-width",f.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=[],l=!1;for(r=0;r1&&l&&this.setShapesAsAnimated(n);}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;o-=1){if(C=this.searchProcessedElement(t[o]),C?e[o]=i[C-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")C?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),f.push(e[o].style);else if(t[o].ty==="gr"){if(!C)e[o]=this.createGroupElement(t[o]);else for(v=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,l=!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,l=!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,l=0,o,p=i.m.g,g=0,v=0,f=0,_=[],m=0,d=0,C,u,c=e.getFontByName(t.f),y,P=0,A=getFontProperties(c);t.fWeight=A.weight,t.fStyle=A.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 H=!0,nt=t.sz[0],ct=t.sz[1],ut,mt;H;){mt=this.buildFinalText(t.t),ut=0,m=0,a=mt.length,F=t.tr/1e3*t.finalSize;var _t=-1;for(s=0;snt&&mt[s]!==" "?(_t===-1?a+=1:s=_t,ut+=t.finalLineHeight||t.finalSize*1.2,mt.splice(s,_t===s?1:0,"\r"),_t=-1,m=0):(m+=P,m+=F);ut+=c.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&ctd?m:d,m=-2*F,o="",n=!0,f+=1):o=bt,e.chars?(y=e.getCharData(bt,c.fStyle,e.getFontByName(t.f).fFamily),P=n?0:y.w*t.finalSize/100):P=e.measureText(o,t.f,t.finalSize),bt===" "?et+=P+F:(m+=P+F+et,et=0),r.push({l:P,an:P,add:g,n,anIndexes:[],val:o,line:f,animatorJustifyOffset:0}),p==2){if(g+=P,o===""||o===" "||s===a-1){for((o===""||o===" ")&&(g-=P);v<=s;)r[v].an=g,r[v].ind=l,r[v].extra=P,v+=1;l+=1,g=0;}}else if(p==3){if(g+=P,o===""||s===a-1){for(o===""&&(g-=P);v<=s;)r[v].an=g,r[v].ind=l,r[v].extra=P,v+=1;g=0,l+=1;}}else r[l].ind=l,r[l].extra=0,l+=1;if(t.l=r,d=m>d?m:d,_.push(m),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=d,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0;}t.lineWidths=_;var D=i.a,O,k;u=D.length;var L,K,U=[];for(C=0;C0?n=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:p=1+this.xe.v/100;var g=BezierFactory.getBezierEasing(n,l,o,p).get,v=0,f=this.finalS,_=this.finalE,m=this.data.sh;if(m===2)_===f?v=a>=_?1:0:v=t(0,e(.5/(_-f)+(a-f)/(_-f),1)),v=g(v);else if(m===3)_===f?v=a>=_?0:1:v=1-t(0,e(.5/(_-f)+(a-f)/(_-f),1)),v=g(v);else if(m===4)_===f?v=0:(v=t(0,e(.5/(_-f)+(a-f)/(_-f),1)),v<.5?v*=2:v=1-2*(v-.5)),v=g(v);else if(m===5){if(_===f)v=0;else {var d=_-f;a=e(t(0,a+.5-f),_-f);var C=-d/2+a,u=d/2;v=Math.sqrt(1-C*C/(u*u));}v=g(v);}else m===6?(_===f?v=0:(a=e(t(0,a+.5-f),_-f),v=(1+Math.cos(Math.PI+Math.PI*2*a/(_-f)))/2),v=g(v)):(a>=i(f)&&(a-f<0?v=t(0,e(e(_,1)-(f-a),1)):v=t(0,e(_-a,1))),v=g(v));if(this.sm.v!==100){var c=this.sm.v*.01;c===0&&(c=1e-8);var y=.5-c*.5;v1&&(v=1));}return v*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,l=this.o.v/n,o=this.s.v/n+l,p=this.e.v/n+l;if(o>p){var g=o;o=p,p=g;}this.finalS=o,this.finalE=p;}},extendPrototype([DynamicPropertyContainer],r);function s(a,n,l){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=m+be||!A?(nt=(m+be-C)/d.partialLength,Gt=P.point[0]+(d.point[0]-P.point[0])*nt,Ot=P.point[1]+(d.point[1]-P.point[1])*nt,a.translate(-i[0]*f[g].an*.005,-(i[1]*et)*.01),u=!1):A&&(C+=d.partialLength,c+=1,c>=A.length&&(c=0,y+=1,F[y]?A=F[y].points:ut.v.c?(c=0,y=0,A=F[y].points):(C-=d.partialLength,A=null)),A&&(P=d,d=A[c],B=d.partialLength));It=f[g].an/2-f[g].add,a.translate(-It,0,0);}else It=f[g].an/2-f[g].add,a.translate(-It,0,0),a.translate(-i[0]*f[g].an*.005,-i[1]*et*.01,0);for(k=0;kt?this.textSpans[t].span:createNS(l?"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,l){var A=createNS("g");o.appendChild(A),this.textSpans[t].childSpan=A;}this.textSpans[t].span=o,this.layerElement.appendChild(o);}o.style.display="inherit";}if(p.reset(),v&&(n[t].n&&(f=-d,_+=i.yOffset,_+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(i,p,n[t].line,f,_),f+=n[t].l||0,f+=d),l){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 H=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(H.layerElement),H.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 v&&o.setAttribute("transform","translate("+p.props[12]+","+p.props[13]+")"),o.textContent=n[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}v&&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,l;for(a=0;a=0;a-=1){if(v=this.searchProcessedElement(t[a]),v?e[a]=i[v-1]:t[a]._shouldRender=r,t[a].ty==="fl"||t[a].ty==="st"||t[a].ty==="gf"||t[a].ty==="gs")v?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],m),p.push(e[a].style);else if(t[a].ty==="gr"){if(!v)e[a]=this.createGroupElement(t[a]);else for(o=e[a].it.length,l=0;l=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,l=r._length;i.length=0;var o=t.transforms.finalTransform;for(n=0;n=1?g=.99:g<=-1&&(g=-.99);var v=o*g,f=Math.cos(p+e.a.v)*v+n[0],_=Math.sin(p+e.a.v)*v+n[1];s=a.createRadialGradient(f,_,0,n[0],n[1],o);}var m,d=t.g.p,C=e.g.c,u=1;for(m=0;ma&&o==="xMidYMid slice"||ss&&l==="meet"||as&&l==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:p==="xMax"&&(as&&l==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,g==="YMid"&&(a>s&&l==="meet"||as&&l==="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=p;)ct/=2,ut/=2,mt>>>=1;return (ct+mt)/ut};return nt.int32=function(){return H.g(4)|0},nt.quick=function(){return H.g(4)/4294967296},nt.double=nt,C(c(H.S),t),(P.pass||A||function(ct,ut,mt,_t){return _t&&(_t.S&&m(_t,H),ct.state=function(){return m(H,{})}),mt?(e[n]=ct,ut):ct})(nt,B,"global"in P?P.global:this==e,P.state)}e["seed"+n]=f;function _(y){var P,A=y.length,F=this,B=0,H=F.i=F.j=0,nt=F.S=[];for(A||(y=[A++]);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?p/(2-s-a):p/(s+a),s){case e:n=(i-r)/p+(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 l=r<.5?r*(1+i):r+i-r*i,o=2*r-l;s=hue2rgb(o,l,e+1/3),a=hue2rgb(o,l,e),n=hue2rgb(o,l,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 l,o=r.length,p=createTypedArray("float32",o);for(l=0;l1){for(s=0;s1?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){var l,o=s.length,p=createTypedArray("float32",o);for(l=0;ldata.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;iC.length-1)&&(_=C.length-1),y=C[C.length-1-_].t,c=u-y);var P,A,F;if(f==="pingpong"){var B=Math.floor((d-y)/c);if(B%2!==0)return this.getValueAtTime((c-(d-y)%c+y)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var H=this.getValueAtTime(y/this.comp.globalData.frameRate,0),nt=this.getValueAtTime(u/this.comp.globalData.frameRate,0),ct=this.getValueAtTime(((d-y)%c+y)/this.comp.globalData.frameRate,0),ut=Math.floor((d-y)/c);if(this.pv.length){for(F=new Array(H.length),A=F.length,P=0;P=u)return this.pv;var c,y;m?(_?c=Math.abs(this.elem.comp.globalData.frameRate*_):c=Math.max(0,this.elem.data.op-u),y=u+c):((!_||_>C.length-1)&&(_=C.length-1),y=C[_].t,c=y-u);var P,A,F;if(f==="pingpong"){var B=Math.floor((u-d)/c);if(B%2===0)return this.getValueAtTime(((u-d)%c+u)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var H=this.getValueAtTime(u/this.comp.globalData.frameRate,0),nt=this.getValueAtTime(y/this.comp.globalData.frameRate,0),ct=this.getValueAtTime((c-(u-d)%c+u)/this.comp.globalData.frameRate,0),ut=Math.floor((u-d)/c)+1;if(this.pv.length){for(F=new Array(H.length),A=F.length,P=0;P1?(C-d)/(_-1):1,c=0,y=0,P;this.pv.length?P=createTypedArray("float32",this.pv.length):P=0;for(var A;c<_;){if(A=this.getValueAtTime(d+c*u),this.pv.length)for(y=0;yu){var F=c,B=m.c&&c===y-1?0:c+1,H=(u-P)/C[c].addedLength;A=bez.getPointInSegment(m.v[F],m.v[B],m.o[F],m.i[B],H,C[c]);break}else P+=C[c].addedLength;c+=1;}return A||(A=m.c?[m.v[0][0],m.v[0][1]]:[m.v[m._length-1][0],m.v[m._length-1][1]]),A},vectorOnPath:function(f,_,m){f==1?f=this.v.c:f==0&&(f=.999);var d=this.pointOnPath(f,_),C=this.pointOnPath(f+.001,_),u=C[0]-d[0],c=C[1]-d[1],y=Math.sqrt(Math.pow(u,2)+Math.pow(c,2));if(y===0)return [0,0];var P=m==="tangent"?[u/y,c/y]:[-c/y,u/y];return P},tangentOnPath:function(f,_){return this.vectorOnPath(f,_,"tangent")},normalOnPath:function(f,_){return this.vectorOnPath(f,_,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([g],o),extendPrototype([g],p),p.prototype.getValueAtTime=l,p.prototype.initiateExpression=ExpressionManager.initiateExpression;var v=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,_,m,d,C){var u=v(f,_,m,d,C);return u.propertyIndex=_.ix,u.lock=!1,m===3?expressionHelpers.searchExpressions(f,_.pt,u):m===4&&expressionHelpers.searchExpressions(f,_.ks,u),u.k&&f.addDynamicProperty(u),u};}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,l=e[5].p.v,o=e[6].p.v,p=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(-p*degToRads),this.matrix.skewFromAxis(-l*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});}),Iy=Fy();});var uc={};qs(uc,{default:()=>Vy});var Ly,Vy,mc=Pr(()=>{ys();Ly=me((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(b){s=!!b;},l=function(){return s},o=function(b){r=b;},p=function(){return r};function g(b){return document.createElement(b)}function v(b,w){var T,z=b.length,j;for(T=0;T1?T[1]=1:T[1]<=0&&(T[1]=0),U(T[0],T[1],T[2])}function Gt(b,w){var T=qt(b[0]*255,b[1]*255,b[2]*255);return T[2]+=w,T[2]>1?T[2]=1:T[2]<0&&(T[2]=0),U(T[0],T[1],T[2])}function Ot(b,w){var T=qt(b[0]*255,b[1]*255,b[2]*255);return T[0]+=w/360,T[0]>1?T[0]-=1:T[0]<0&&(T[0]+=1),U(T[0],T[1],T[2])}(function(){var b=[],w,T;for(w=0;w<256;w+=1)T=w.toString(16),b[w]=T.length===1?"0"+T:T;return function(z,j,N){return z<0&&(z=0),j<0&&(j=0),N<0&&(N=0),"#"+b[z]+b[j]+b[N]}})();var ee=function(b){C=!!b;},ae=function(){return C},le=function(b){u=b;},ye=function(){return u},de=function(b){nt=b;},Xt=function(){return nt},pe=function(b){c=b;};function Wt(b){return document.createElementNS(i,b)}function zt(b){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zt=function(w){return typeof w}:zt=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},zt(b)}var Le=function(){var b=1,w=[],T,z,j={onmessage:function(){},postMessage:function($){T({data:$});}},N={postMessage:function($){j.onmessage({data:$});}};function h($){if(window.Worker&&window.Blob&&l()){var tt=new Blob(["var _workerSelf = self; self.onmessage = ",$.toString()],{type:"text/javascript"}),Z=URL.createObjectURL(tt);return new Worker(Z)}return T=$,j}function x(){z||(z=h(function($){function tt(){function st(Vt,Kt){var St,At,lt=Vt.length,Mt,Lt,wt,Et;for(At=0;At=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,At=0;AtSt[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 at=function(){var Vt=[4,4,14];function Kt(At){var lt=At.t.d;At.t.d={k:[{s:lt,t:0}]};}function St(At){var lt,Mt=At.length;for(lt=0;lt=0;lt-=1)if(At[lt].ty==="sh")if(At[lt].ks.k.i)At[lt].ks.k.c=At[lt].closed;else for(wt=At[lt].ks.k.length,Lt=0;Lt500)&&(this._imageLoaded(),clearInterval(W)),J+=1;}.bind(this),50);}function N(it){var J=z(it,this.assetsPath,this.path),W=Wt("image");y?this.testImageLoaded(W):W.addEventListener("load",this._imageLoaded,!1),W.addEventListener("error",function(){X.img=b,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:it};return X}function h(it){var J=z(it,this.assetsPath,this.path),W=g("img");W.crossOrigin="anonymous",W.addEventListener("load",this._imageLoaded,!1),W.addEventListener("error",function(){X.img=b,this._imageLoaded();}.bind(this),!1),W.src=J;var X={img:W,assetData:it};return X}function x(it){var J={assetData:it},W=z(it,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(it,J){this.imagesLoadedCb=J;var W,X=it.length;for(W=0;Wthis.animationData.op&&(this.animationData.op=b.op,this.totalFrames=Math.floor(b.op-this.animationData.ip));var w=this.animationData.layers,T,z=w.length,j=b.layers,N,h=j.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(b){this.triggerRenderFrameError(b);}},oe.prototype.play=function(b){b&&this.name!==b||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")));},oe.prototype.pause=function(b){b&&this.name!==b||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause());},oe.prototype.togglePause=function(b){b&&this.name!==b||(this.isPaused===!0?this.play():this.pause());},oe.prototype.stop=function(b){b&&this.name!==b||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0));},oe.prototype.getMarkerData=function(b){for(var w,T=0;T=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(w>this.totalFrames?w%this.totalFrames:0)||(T=!0,w=this.totalFrames-1):w>=this.totalFrames?(this.playCount+=1,this.checkSegments(w%this.totalFrames)||(this.setCurrentRawFrameValue(w%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(w):w<0?this.checkSegments(w%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+w%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(T=!0,w=0)):this.setCurrentRawFrameValue(w),T&&(this.setCurrentRawFrameValue(w),this.pause(),this.trigger("complete"));}},oe.prototype.adjustSegment=function(b,w){this.playCount=0,b[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=b[0]-b[1],this.timeCompleted=this.totalFrames,this.firstFrame=b[1],this.setCurrentRawFrameValue(this.totalFrames-.001-w)):b[1]>b[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=b[1]-b[0],this.timeCompleted=this.totalFrames,this.firstFrame=b[0],this.setCurrentRawFrameValue(.001+w)),this.trigger("segmentStart");},oe.prototype.setSegment=function(b,w){var T=-1;this.isPaused&&(this.currentRawFrame+this.firstFramew&&(T=w-b)),this.firstFrame=b,this.totalFrames=w-b,this.timeCompleted=this.totalFrames,T!==-1&&this.goToAndStop(T,!0);},oe.prototype.playSegments=function(b,w){if(w&&(this.segments.length=0),ne(b[0])==="object"){var T,z=b.length;for(T=0;T=0;At-=1)w[At].animation.destroy(St);}function Q(St,At,lt){var Mt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Lt,wt=Mt.length;for(Lt=0;Lt0?X=Q:W=Q;while(Math.abs(ht)>N&&++yt=j?pt(J,vt,W,X):kt===0?vt:st(J,at,at+S,W,X)}},b}(),si=function(){function b(w){return w.concat(d(w.length))}return {double:b}}(),ai=function(){return function(b,w,T){var z=0,j=b,N=d(j),h={newElement:x,release:S};function x(){var M;return z?(z-=1,M=N[z]):M=w(),M}function S(M){z===j&&(N=si.double(N),j*=2),T&&T(M),N[z]=M,z+=1;}return h}}(),vi=function(){function b(){return {addedLength:0,percents:m("float32",Xt()),lengths:m("float32",Xt())}}return ai(8,b)}(),Ei=function(){function b(){return {lengths:[],totalLength:0}}function w(T){var z,j=T.lengths.length;for(z=0;z-.001&&J<.001}function T($,tt,Z,st,pt,it,J,W,X){if(Z===0&&it===0&&X===0)return w($,tt,st,pt,J,W);var G=b.sqrt(b.pow(st-$,2)+b.pow(pt-tt,2)+b.pow(it-Z,2)),at=b.sqrt(b.pow(J-$,2)+b.pow(W-tt,2)+b.pow(X-Z,2)),ht=b.sqrt(b.pow(J-st,2)+b.pow(W-pt,2)+b.pow(X-it,2)),Q;return G>at?G>ht?Q=G-at-ht:Q=ht-at-G:ht>at?Q=ht-at-G:Q=at-G-ht,Q>-1e-4&&Q<1e-4}var z=function(){return function($,tt,Z,st){var pt=Xt(),it,J,W,X,G,at=0,ht,Q=[],yt=[],vt=vi.newElement();for(W=Z.length,it=0;itJ?-1:1,G=!0;G;)if(st[it]<=J&&st[it+1]>J?(W=(J-st[it])/(st[it+1]-st[it]),G=!1):it+=X,it<0||it>=pt-1){if(it===pt-1)return Z[it];G=!1;}return Z[it]+(Z[it+1]-Z[it])*W}function M($,tt,Z,st,pt,it){var J=S(pt,it),W=1-J,X=b.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)*st[0]+J*J*J*tt[0])*1e3)/1e3,G=b.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)*st[1]+J*J*J*tt[1])*1e3)/1e3;return [X,G]}var R=m("float32",8);function V($,tt,Z,st,pt,it,J){pt<0?pt=0:pt>1&&(pt=1);var W=S(pt,J);it=it>1?1:it;var X=S(it,J),G,at=$.length,ht=1-W,Q=1-X,yt=ht*ht*ht,vt=W*ht*ht*3,kt=W*W*ht*3,Bt=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,At=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,wt=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(G=0;G=M.t-T){S.h&&(S=M),j=0;break}if(M.t-T>b){j=N;break}N=it||b=it?X.points.length-1:0;for($=X.points[G].point.length,V=0;V<$;V+=1)z[V]=X.points[G].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),tt=pt((b-J)/(it-J));var at=X.segmentLength*tt,ht,Q=w.lastFrame=Q&&at=it)z[0]=W[0],z[1]=W[1],z[2]=W[2];else if(b<=J)z[0]=S.s[0],z[1]=S.s[1],z[2]=S.s[2];else {var Vt=Rr(S.s),Kt=Rr(W),St=(b-J)/(it-J);Xs(z,ns(Vt,Kt,St));}else for(N=0;N=it?tt=1:b1e-6?($=Math.acos(tt),Z=Math.sin($),st=Math.sin((1-T)*$)/Z,pt=Math.sin(T*$)/Z):(st=1-T,pt=T),z[0]=st*j+pt*S,z[1]=st*N+pt*M,z[2]=st*h+pt*R,z[3]=st*x+pt*V,z}function Xs(b,w){var T=w[0],z=w[1],j=w[2],N=w[3],h=Math.atan2(2*z*N-2*T*j,1-2*z*z-2*j*j),x=Math.asin(2*T*z+2*j*N),S=Math.atan2(2*T*N-2*z*j,1-2*T*T-2*j*j);b[0]=h/ct,b[1]=x/ct,b[2]=S/ct;}function Rr(b){var w=b[0]*ct,T=b[1]*ct,z=b[2]*ct,j=Math.cos(w/2),N=Math.cos(T/2),h=Math.cos(z/2),x=Math.sin(w/2),S=Math.sin(T/2),M=Math.sin(z/2),R=j*N*h-x*S*M,V=x*S*h+j*N*M,$=x*N*h+j*S*M,tt=j*S*h-x*N*M;return [V,$,tt,R]}function qr(){var b=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(b===this._caching.lastFrame||this._caching.lastFrame!==Vr&&(this._caching.lastFrame>=T&&b>=T||this._caching.lastFrame=b&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var z=this.interpolateValue(b,this._caching);this.pv=z;}return this._caching.lastFrame=b,this.pv}function dr(b){var w;if(this.propType==="unidimensional")w=b*this.mult,ha(this.v-w)>1e-5&&(this.v=w,this._mdf=!0);else for(var T=0,z=this.v.length;T1e-5&&(this.v[T]=w,this._mdf=!0),T+=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 b,w=this.effectsSequence.length,T=this.kf?this.pv:this.data.k;for(b=0;b=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]&&!j)&&(N[z]=Ne.newElement()),N[z][0]=b,N[z][1]=w;},Qi.prototype.setTripleAt=function(b,w,T,z,j,N,h,x){this.setXYAt(b,w,"v",h,x),this.setXYAt(T,z,"o",h,x),this.setXYAt(j,N,"i",h,x);},Qi.prototype.reverse=function(){var b=new Qi;b.setPathData(this.c,this._length);var w=this.v,T=this.o,z=this.i,j=0;this.c&&(b.setTripleAt(w[0][0],w[0][1],z[0][0],z[0][1],T[0][0],T[0][1],0,!1),j=1);var N=this._length-1,h=this._length,x;for(x=j;x=Vt[Vt.length-1].t-this.offsetTime)G=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,At=!0,lt,Mt,Lt;At&&(lt=Vt[Kt],Mt=Vt[Kt+1],!(Mt.t-this.offsetTime>it));)Kt=Mt.t-this.offsetTime)Bt=1;else if(itW&&it>W)||(this._caching.lastIndex=X0||lt>-1e-6&<<0?z(lt*Mt)/Mt:lt}function At(){var lt=this.props,Mt=St(lt[0]),Lt=St(lt[1]),wt=St(lt[4]),Et=St(lt[5]),Tt=St(lt[12]),gt=St(lt[13]);return "matrix("+Mt+","+Lt+","+wt+","+Et+","+Tt+","+gt+")"}return function(){this.reset=j,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=tt,this.translate=Z,this.transform=st,this.multiply=pt,this.applyToPoint=G,this.applyToX=at,this.applyToY=ht,this.applyToZ=Q,this.applyToPointArray=$t,this.applyToTriplePoints=Bt,this.applyToPointStringified=Vt,this.toCSS=Kt,this.to2dCSS=At,this.clone=W,this.cloneFromProps=X,this.equals=J,this.inversePoints=kt,this.inversePoint=vt,this.getInverseMatrix=yt,this._t=this.transform,this.isIdentity=it,this._identity=!0,this._identityCalculated=!1,this.props=m("float32",16),this.reset();}}();function Vs(b){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vs=function(w){return typeof w}:Vs=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},Vs(b)}var ti={};function Ta(b){o(b);}function la(){be.searchAnimations();}function Ma(b){ee(b);}function os(b){pe(b);}function Da(b){return be.loadAnimation(b)}function Fa(b){if(typeof b=="string")switch(b){case"high":de(200);break;default:case"medium":de(50);break;case"low":de(10);break}else !isNaN(b)&&b>1&&de(b);}function Ia(){return typeof navigator<"u"}function La(b,w){b==="expressions"&&le(w);}function Va(b){switch(b){case"propertyFactory":return fe;case"shapePropertyFactory":return Er;case"matrix":return ge;default:return null}}ti.play=be.play,ti.pause=be.pause,ti.setLocationHref=Ta,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=Da,ti.setSubframeRendering=Ma,ti.resize=be.resize,ti.goToAndStop=be.goToAndStop,ti.destroy=be.destroy,ti.setQuality=Fa,ti.inBrowser=Ia,ti.installPlugin=La,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=os,ti.__getFactory=Va,ti.version="5.12.2";function Ys(){document.readyState==="complete"&&(clearInterval(li),la());}function xs(b){for(var w=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 b={},w={};b.registerModifier=T,b.getModifier=z;function T(j,N){w[j]||(w[j]=N);}function z(j,N,h){return new w[j](N,h)}return b}();function wi(){}wi.prototype.initModifierProperties=function(){},wi.prototype.addShapeToModifier=function(){},wi.prototype.addShape=function(b){if(!this.closed){b.sh.container.addDynamicProperty(b.sh);var w={shape:b.sh,data:b,localShapeCollection:He.newShapeCollection()};this.shapes.push(w),this.addShapeToModifier(w),this._isAnimated&&b.setAsAnimated();}},wi.prototype.init=function(b,w){this.shapes=[],this.elem=b,this.initDynamicPropertyContainer(b),this.initModifierProperties(b,w),this.frameId=a,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0);},wi.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties());},v([Ze],wi);function Gi(){}v([wi],Gi),Gi.prototype.initModifierProperties=function(b,w){this.s=fe.getProp(b,w.s,0,.01,this),this.e=fe.getProp(b,w.e,0,.01,this),this.o=fe.getProp(b,w.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=w.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length;},Gi.prototype.addShapeToModifier=function(b){b.pathsData=[];},Gi.prototype.calculateShapeEdges=function(b,w,T,z,j){var N=[];w<=1?N.push({s:b,e:w}):b>=1?N.push({s:b-1,e:w-1}):(N.push({s:b,e:1}),N.push({s:0,e:w-1}));var h=[],x,S=N.length,M;for(x=0;xz+T)){var R,V;M.s*j<=z?R=0:R=(M.s*j-z)/T,M.e*j>=z+T?V=1:V=(M.e*j-z)/T,h.push([R,V]);}return h.length||h.push([0,0]),h},Gi.prototype.releasePathsData=function(b){var w,T=b.length;for(w=0;w1?w=1+z:this.s.v<0?w=0+z:w=this.s.v+z,this.e.v>1?T=1+z:this.e.v<0?T=0+z:T=this.e.v+z,w>T){var j=w;w=T,T=j;}w=Math.round(w*1e4)*1e-4,T=Math.round(T*1e4)*1e-4,this.sValue=w,this.eValue=T;}else w=this.sValue,T=this.eValue;var N,h,x=this.shapes.length,S,M,R,V,$,tt=0;if(T===w)for(h=0;h=0;h-=1)if(st=this.shapes[h],st.shape._mdf){for(pt=st.localShapeCollection,pt.releaseShapes(),this.m===2&&x>1?(X=this.calculateShapeEdges(w,T,st.totalShapeLength,W,tt),W+=st.totalShapeLength):X=[[it,J]],M=X.length,S=0;S=1?Z.push({s:st.totalShapeLength*(it-1),e:st.totalShapeLength*(J-1)}):(Z.push({s:st.totalShapeLength*it,e:st.totalShapeLength}),Z.push({s:0,e:st.totalShapeLength*(J-1)}));var G=this.addShapes(st,Z[0]);if(Z[0].s!==Z[0].e){if(Z.length>1){var at=st.shape.paths.shapes[st.shape.paths._length-1];if(at.c){var ht=G.pop();this.addPaths(G,pt),G=this.addShapes(st,Z[1],ht);}else this.addPaths(G,pt),G=this.addShapes(st,Z[1]);}this.addPaths(G,pt);}}st.shape.paths=pt;}}},Gi.prototype.addPaths=function(b,w){var T,z=b.length;for(T=0;Tw.e){T.c=!1;break}else w.s<=M&&w.e>=M+R.addedLength?(this.addSegment(j[N].v[x-1],j[N].o[x-1],j[N].i[x],j[N].v[x],T,V,pt),pt=!1):(tt=Ki.getNewSegment(j[N].v[x-1],j[N].v[x],j[N].o[x-1],j[N].i[x],(w.s-M)/R.addedLength,(w.e-M)/R.addedLength,$[x-1]),this.addSegmentFromArray(tt,T,V,pt),pt=!1,T.c=!1),M+=R.addedLength,V+=1;if(j[N].c&&$.length){if(R=$[x-1],M<=w.e){var it=$[x-1].addedLength;w.s<=M&&w.e>=M+it?(this.addSegment(j[N].v[x-1],j[N].o[x-1],j[N].i[0],j[N].v[0],T,V,pt),pt=!1):(tt=Ki.getNewSegment(j[N].v[x-1],j[N].v[0],j[N].o[x-1],j[N].i[0],(w.s-M)/it,(w.e-M)/it,$[x-1]),this.addSegmentFromArray(tt,T,V,pt),pt=!1,T.c=!1);}else T.c=!1;M+=R.addedLength,V+=1;}if(T._length&&(T.setXYAt(T.v[st][0],T.v[st][1],"i",st),T.setXYAt(T.v[T._length-1][0],T.v[T._length-1][1],"o",T._length-1)),M>w.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,tt=this.py;$._caching.lastFrame+$.offsetTime<=$.keyframes[0].t?(R[0]=$.getValueAtTime(($.keyframes[0].t+.01)/M,0),R[1]=tt.getValueAtTime((tt.keyframes[0].t+.01)/M,0),V[0]=$.getValueAtTime($.keyframes[0].t/M,0),V[1]=tt.getValueAtTime(tt.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]=tt.getValueAtTime(tt.keyframes[tt.keyframes.length-1].t/M,0),V[0]=$.getValueAtTime(($.keyframes[$.keyframes.length-1].t-.01)/M,0),V[1]=tt.getValueAtTime((tt.keyframes[tt.keyframes.length-1].t-.01)/M,0)):(R=[$.pv,tt.pv],V[0]=$.getValueAtTime(($._caching.lastFrame+$.offsetTime-.01)/M,$.offsetTime),V[1]=tt.getValueAtTime((tt._caching.lastFrame+tt.offsetTime-.01)/M,tt.offsetTime));}else V=b,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 j(){}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,ct,this),this.ry=fe.getProp(S,M.ry,0,ct,this),this.rz=fe.getProp(S,M.rz,0,ct,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,ct,this),this.or.sh=!0;}else this.r=fe.getProp(S,M.r||{k:0},0,ct,this);M.sk&&(this.sk=fe.getProp(S,M.sk,0,ct,this),this.sa=fe.getProp(S,M.sa,0,ct,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:w,getValue:T,precalculateMatrix:z,autoOrient:j},v([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(){}v([wi],ji),ji.prototype.initModifierProperties=function(b,w){this.getValue=this.processKeys,this.c=fe.getProp(b,w.c,0,null,this),this.o=fe.getProp(b,w.o,0,null,this),this.tr=ar.getTransformProperty(b,w.tr,this),this.so=fe.getProp(b,w.tr.so,0,.01,this),this.eo=fe.getProp(b,w.tr.eo,0,.01,this),this.data=w,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(b,w,T,z,j,N){var h=N?-1:1,x=z.s.v[0]+(1-z.s.v[0])*(1-j),S=z.s.v[1]+(1-z.s.v[1])*(1-j);b.translate(z.p.v[0]*h*j,z.p.v[1]*h*j,z.p.v[2]),w.translate(-z.a.v[0],-z.a.v[1],z.a.v[2]),w.rotate(-z.r.v*h*j),w.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(b,w,T,z){for(this.elem=b,this.arr=w,this.pos=T,this.elemsData=z,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(b),this.initModifierProperties(b,w[T]);T>0;)T-=1,this._elements.unshift(w[T]);this.dynamicProperties.length?this.k=!0:this.getValue(!0);},ji.prototype.resetElements=function(b){var w,T=b.length;for(w=0;w0?Math.floor($):Math.ceil($),st=this.pMatrix.props,pt=this.rMatrix.props,it=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;tt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-tt,!0),J-=tt);}z=this.data.m===1?0:this._currentCopies-1,j=this.data.m===1?1:-1,N=this._currentCopies;for(var W,X;N;){if(w=this.elemsData[z].it,T=w[w.length-1].transform.mProps.v.props,X=T.length,w[w.length-1].transform.mProps._mdf=!0,w[w.length-1].transform.op._mdf=!0,w[w.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&&j===1||z!==this._currentCopies-1&&j===-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(it[0],it[1],it[2],it[3],it[4],it[5],it[6],it[7],it[8],it[9],it[10],it[11],it[12],it[13],it[14],it[15]),this.matrix.transform(st[0],st[1],st[2],st[3],st[4],st[5],st[6],st[7],st[8],st[9],st[10],st[11],st[12],st[13],st[14],st[15]),W=0;W0&&z<1?[w]:[]:[w-z,w+z].filter(function(j){return j>0&&j<1})},ni.prototype.split=function(b){if(b<=0)return [Rs(this.points[0]),this];if(b>=1)return [this,Rs(this.points[this.points.length-1])];var w=Cr(this.points[0],this.points[1],b),T=Cr(this.points[1],this.points[2],b),z=Cr(this.points[2],this.points[3],b),j=Cr(w,T,b),N=Cr(T,z,b),h=Cr(j,N,b);return [new ni(this.points[0],w,j,h,!0),new ni(h,N,z,this.points[3],!0)]};function ts(b,w){var T=b.points[0][w],z=b.points[b.points.length-1][w];if(T>z){var j=z;z=T,T=j;}for(var N=Ks(3*b.a[w],2*b.b[w],b.c[w]),h=0;h0&&N[h]<1){var x=b.point(N[h])[w];xz&&(z=x);}return {min:T,max:z}}ni.prototype.bounds=function(){return {x:ts(this,0),y:ts(this,1)}},ni.prototype.boundingBox=function(){var b=this.bounds();return {left:b.x.min,right:b.x.max,top:b.y.min,bottom:b.y.max,width:b.x.max-b.x.min,height:b.y.max-b.y.min,cx:(b.x.max+b.x.min)/2,cy:(b.y.max+b.y.min)/2}};function ls(b,w,T){var z=b.boundingBox();return {cx:z.cx,cy:z.cy,width:z.width,height:z.height,bez:b,t:(w+T)/2,t1:w,t2:T}}function wr(b){var w=b.bez.split(.5);return [ls(w[0],b.t1,b.t),ls(w[1],b.t,b.t2)]}function Ps(b,w){return Math.abs(b.cx-w.cx)*2=N||b.width<=z&&b.height<=z&&w.width<=z&&w.height<=z){j.push([b.t,w.t]);return}var h=wr(b),x=wr(w);nr(h[0],x[0],T+1,z,j,N),nr(h[0],x[1],T+1,z,j,N),nr(h[1],x[0],T+1,z,j,N),nr(h[1],x[1],T+1,z,j,N);}}ni.prototype.intersections=function(b,w,T){w===void 0&&(w=2),T===void 0&&(T=7);var z=[];return nr(ls(this,0,1),ls(b,0,1),0,w,z,T),z},ni.shapeSegment=function(b,w){var T=(w+1)%b.length();return new ni(b.v[w],b.o[w],b.i[T],b.v[T],!0)},ni.shapeSegmentInverted=function(b,w){var T=(w+1)%b.length();return new ni(b.v[T],b.i[T],b.o[w],b.v[w],!0)};function tr(b,w){return [b[1]*w[2]-b[2]*w[1],b[2]*w[0]-b[0]*w[2],b[0]*w[1]-b[1]*w[0]]}function $r(b,w,T,z){var j=[b[0],b[1],1],N=[w[0],w[1],1],h=[T[0],T[1],1],x=[z[0],z[1],1],S=tr(tr(j,N),tr(h,x));return zi(S[2])?null:[S[0]/S[2],S[1]/S[2]]}function qi(b,w,T){return [b[0]+Math.cos(w)*T,b[1]-Math.sin(w)*T]}function or(b,w){return Math.hypot(b[0]-w[0],b[1]-w[1])}function Wr(b,w){return hs(b[0],w[0])&&hs(b[1],w[1])}function _s(){}v([wi],_s),_s.prototype.initModifierProperties=function(b,w){this.getValue=this.processKeys,this.amplitude=fe.getProp(b,w.s,0,null,this),this.frequency=fe.getProp(b,w.r,0,null,this),this.pointsType=fe.getProp(b,w.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0;};function ca(b,w,T,z,j,N,h){var x=T-Math.PI/2,S=T+Math.PI/2,M=w[0]+Math.cos(T)*z*j,R=w[1]-Math.sin(T)*z*j;b.setTripleAt(M,R,M+Math.cos(x)*N,R-Math.sin(x)*N,M+Math.cos(S)*h,R-Math.sin(S)*h,b.length());}function Ss(b,w){var T=[w[0]-b[0],w[1]-b[1]],z=-Math.PI*.5,j=[Math.cos(z)*T[0]-Math.sin(z)*T[1],Math.sin(z)*T[0]+Math.cos(z)*T[1]];return j}function Ra(b,w){var T=w===0?b.length()-1:w-1,z=(w+1)%b.length(),j=b.v[T],N=b.v[z],h=Ss(j,N);return Math.atan2(0,1)-Math.atan2(h[1],h[0])}function ps(b,w,T,z,j,N,h){var x=Ra(w,T),S=w.v[T%w._length],M=w.v[T===0?w._length-1:T-1],R=w.v[(T+1)%w._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(b,w.v[T%w._length],x,h,z,$/((j+1)*2),V/((j+1)*2));}function gr(b,w,T,z,j,N){for(var h=0;h1&&w.length>1&&(j=Os(b[0],w[w.length-1]),j)?[[b[0].split(j[0])[0]],[w[w.length-1].split(j[1])[1]]]:[T,z]}function Tr(b){for(var w,T=1;T1&&(w=Bs(b[b.length-1],b[0]),b[b.length-1]=w[0],b[0]=w[1]),b}function cs(b,w){var T=b.inflectionPoints(),z,j,N,h;if(T.length===0)return [Ar(b,w)];if(T.length===1||hs(T[1],1))return N=b.split(T[0]),z=N[0],j=N[1],[Ar(z,w),Ar(j,w)];N=b.split(T[0]),z=N[0];var x=(T[1]-T[0])/(1-T[0]);return N=N[1].split(x),h=N[0],j=N[1],[Ar(z,w),Ar(h,w),Ar(j,w)]}function Li(){}v([wi],Li),Li.prototype.initModifierProperties=function(b,w){this.getValue=this.processKeys,this.amount=fe.getProp(b,w.a,0,null,this),this.miterLimit=fe.getProp(b,w.ml,0,null,this),this.lineJoin=w.lj,this._isAnimated=this.amount.effectsSequence.length!==0;},Li.prototype.processPath=function(b,w,T,z){var j=hi.newElement();j.c=b.c;var N=b.length();b.c||(N-=1);var h,x,S,M=[];for(h=0;h=0;h-=1)S=ni.shapeSegmentInverted(b,h),M.push(cs(S,w));M=Tr(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+"');}",At.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&&(At=(lt-55296)*1024+Mt-56320+65536);}return At}function at(St,At){var lt=St.toString(16)+At.toString(16);return V.indexOf(lt)!==-1}function ht(St){return St===S}function Q(St){return St===x}function yt(St){var At=G(St);return At>=M&&At<=R}function vt(St){return yt(St.substr(0,2))&&yt(St.substr(2,2))}function kt(St){return T.indexOf(St)!==-1}function Bt(St,At){var lt=G(St.substr(At,2));if(lt!==z)return !1;var Mt=0;for(At+=2;Mt<5;){if(lt=G(St.substr(At,2)),lth)return !1;Mt+=1,At+=2;}return G(St.substr(At,2))===j}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=at,Vt.isZeroWidthJoiner=ht,Vt.isFlagEmoji=vt,Vt.isRegionalCode=yt,Vt.isCombinedCharacter=kt,Vt.isRegionalFlag=Bt,Vt.isVariationSelector=Q,Vt.BLACK_FLAG_CODE_POINT=z;var Kt={addChars:it,addFonts:pt,getCharData:J,getFontByName:X,measureText:W,checkLoadedFonts:Z,setIsLoaded:$t};return Vt.prototype=Kt,Vt}();function hr(b){this.animationData=b;}hr.prototype.getProp=function(b){return this.animationData.slots&&this.animationData.slots[b.sid]?Object.assign(b,this.animationData.slots[b.sid].p):b};function es(b){return new hr(b)}function us(){}us.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[];},addRenderableComponent:function(b){this.renderableComponents.indexOf(b)===-1&&this.renderableComponents.push(b);},removeRenderableComponent:function(b){this.renderableComponents.indexOf(b)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(b),1);},prepareRenderableFrame:function(b){this.checkLayerLimits(b);},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(b){this.data.ip-this.data.st<=b&&this.data.op-this.data.st>b?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 b,w=this.renderableComponents.length;for(b=0;b.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(b){this.audio.rate(b);},pi.prototype.volume=function(b){this._volumeMultiplier=b,this._previousVolume=b*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(b){var w,T=this.layers.length,z;for(this.completeLayers=!0,w=T-1;w>=0;w-=1)this.elements[w]||(z=this.layers[w],z.ip-z.st<=b-this.layers[w].st&&z.op-z.st>b-this.layers[w].st&&this.buildItem(w)),this.completeLayers=this.elements[w]?this.completeLayers:!1;this.checkPendingElements();},Ge.prototype.createItem=function(b){switch(b.ty){case 2:return this.createImage(b);case 0:return this.createComp(b);case 1:return this.createSolid(b);case 3:return this.createNull(b);case 4:return this.createShape(b);case 5:return this.createText(b);case 6:return this.createAudio(b);case 13:return this.createCamera(b);case 15:return this.createFootage(b);default:return this.createNull(b)}},Ge.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Ge.prototype.createAudio=function(b){return new pi(b,this.globalData,this)},Ge.prototype.createFootage=function(b){return new we(b,this.globalData,this)},Ge.prototype.buildAllItems=function(){var b,w=this.layers.length;for(b=0;b0&&(this.maskElement.setAttribute("id",$),this.element.maskedElement.setAttribute(J,"url("+p()+"#"+$+")"),z.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this);}Zi.prototype.getMaskProperty=function(b){return this.viewData[b].prop},Zi.prototype.renderFrame=function(b){var w=this.element.finalTransform.mat,T,z=this.masksProperties.length;for(T=0;T1&&(z+=" C"+w.o[j-1][0]+","+w.o[j-1][1]+" "+w.i[0][0]+","+w.i[0][1]+" "+w.v[0][0]+","+w.v[0][1]),T.lastPath!==z){var h="";T.elem&&(w.c&&(h=b.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 Dr=function(){var b={};b.createFilter=w,b.createAlphaToLuminanceFilter=T;function w(z,j){var N=Wt("filter");return N.setAttribute("id",z),j!==!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 b}(),ma=function(){var b={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))&&(b.maskType=!1),/firefox/i.test(navigator.userAgent)&&(b.svgLumaHidden=!1),b}(),ks={},Jr="filter_result_";function Ui(b){var w,T="SourceGraphic",z=b.data.ef?b.data.ef.length:0,j=K(),N=Dr.createFilter(j,!0),h=0;this.filters=[];var x;for(w=0;w=0&&(T=this.shapeModifiers[b].processShapes(this._isFirstFrame),!T);b-=1);}},searchProcessedElement:function(b){for(var w=this.processedElements,T=0,z=w.length;T.01)return !1;T+=1;}return !0},Cs.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return !1;if(this.data.k.k[0].s)for(var b=0,w=this.data.k.k.length;b0;)it=$.transformers[yt].mProps._mdf||it,Q-=1,yt-=1;if(it)for(Q=G-$.styles[W].lvl,yt=$.transformers.length-1;Q>0;)ht.multiply($.transformers[yt].mProps.v),Q-=1,yt-=1;}else ht=b;if(at=$.sh.paths,st=at._length,it){for(pt="",Z=0;Z=1?$t=.99:$t<=-1&&($t=-.99);var Vt=kt*$t,Kt=Math.cos(Bt+$.a.v)*Vt+pt[0],St=Math.sin(Bt+$.a.v)*Vt+pt[1];Z.setAttribute("fx",Kt),Z.setAttribute("fy",St),st&&!$.g._collapsable&&($.of.setAttribute("fx",Kt),$.of.setAttribute("fy",St));}}}function R(V,$,tt){var Z=$.style,st=$.d;st&&(st._mdf||tt)&&st.dashStr&&(Z.pElem.setAttribute("stroke-dasharray",st.dashStr),Z.pElem.setAttribute("stroke-dashoffset",st.dashoffset[0])),$.c&&($.c._mdf||tt)&&Z.pElem.setAttribute("stroke","rgb("+F($.c.v[0])+","+F($.c.v[1])+","+F($.c.v[2])+")"),($.o._mdf||tt)&&Z.pElem.setAttribute("stroke-opacity",$.o.v),($.w._mdf||tt)&&(Z.pElem.setAttribute("stroke-width",$.w.v),Z.msElem&&Z.msElem.setAttribute("stroke-width",$.w.v));}return T}();function Oe(b,w,T){this.shapes=[],this.shapesData=b.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(b,w,T),this.prevViewData=[];}v([Ve,Ai,er,Qs,Ti,_e,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 b,w=this.shapes.length,T,z,j=this.stylesList.length,N,h=[],x=!1;for(z=0;z1&&x&&this.setShapesAsAnimated(h);}},Oe.prototype.setShapesAsAnimated=function(b){var w,T=b.length;for(w=0;w=0;S-=1){if(pt=this.searchProcessedElement(b[S]),pt?w[S]=T[pt-1]:b[S]._render=h,b[S].ty==="fl"||b[S].ty==="st"||b[S].ty==="gf"||b[S].ty==="gs"||b[S].ty==="no")pt?w[S].style.closed=!1:w[S]=this.createStyleElement(b[S],j),b[S]._render&&w[S].style.pElem.parentNode!==z&&z.appendChild(w[S].style.pElem),$.push(w[S].style);else if(b[S].ty==="gr"){if(!pt)w[S]=this.createGroupElement(b[S]);else for(V=w[S].it.length,R=0;R1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},ir.prototype.addEffect=function(b){this.effectsSequence.push(b),this.elem.addDynamicProperty(this);},ir.prototype.getValue=function(b){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!b)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var w=this.currentData,T=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var z,j=this.effectsSequence.length,N=b||this.data.d.k[this.keysIndex].s;for(z=0;zw);)T+=1;return this.keysIndex!==T&&(this.keysIndex=T),this.data.d.k[this.keysIndex].s},ir.prototype.buildFinalText=function(b){for(var w=[],T=0,z=b.length,j,N,h=!1,x=!1,S="";T=55296&&j<=56319?vr.isRegionalFlag(b,T)?S=b.substr(T,14):(N=b.charCodeAt(T+1),N>=56320&&N<=57343&&(vr.isModifier(j,N)?(S=b.substr(T,2),h=!0):vr.isFlagEmoji(b.substr(T,4))?S=b.substr(T,4):S=b.substr(T,2))):j>56319?(N=b.charCodeAt(T+1),vr.isVariationSelector(j)&&(h=!0)):vr.isZeroWidthJoiner(j)&&(h=!0,x=!0),h?(w[w.length-1]+=S,h=!1):w.push(S),T+=S.length;return w},ir.prototype.completeTextData=function(b){b.__complete=!0;var w=this.elem.globalData.fontManager,T=this.data,z=[],j,N,h,x=0,S,M=T.m.g,R=0,V=0,$=0,tt=[],Z=0,st=0,pt,it,J=w.getFontByName(b.f),W,X=0,G=Mr(J);b.fWeight=G.weight,b.fStyle=G.style,b.finalSize=b.s,b.finalText=this.buildFinalText(b.t),N=b.finalText.length,b.finalLineHeight=b.lh;var at=b.tr/1e3*b.finalSize,ht;if(b.sz)for(var Q=!0,yt=b.sz[0],vt=b.sz[1],kt,Bt;Q;){Bt=this.buildFinalText(b.t),kt=0,Z=0,N=Bt.length,at=b.tr/1e3*b.finalSize;var $t=-1;for(j=0;jyt&&Bt[j]!==" "?($t===-1?N+=1:j=$t,kt+=b.finalLineHeight||b.finalSize*1.2,Bt.splice(j,$t===j?1:0,"\r"),$t=-1,Z=0):(Z+=X,Z+=at);kt+=J.ascent*b.finalSize/100,this.canResize&&b.finalSize>this.minimumFontSize&&vtst?Z:st,Z=-2*at,S="",h=!0,$+=1):S=Kt,w.chars?(W=w.getCharData(Kt,J.fStyle,w.getFontByName(b.f).fFamily),X=h?0:W.w*b.finalSize/100):X=w.measureText(S,b.f,b.finalSize),Kt===" "?Vt+=X+at:(Z+=X+at+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===" "||j===N-1){for((S===""||S===" ")&&(R-=X);V<=j;)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===""||j===N-1){for(S===""&&(R-=X);V<=j;)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(b.l=z,st=Z>st?Z:st,tt.push(Z),b.sz)b.boxWidth=b.sz[0],b.justifyOffset=0;else switch(b.boxWidth=st,b.j){case 1:b.justifyOffset=-b.boxWidth;break;case 2:b.justifyOffset=-b.boxWidth/2;break;default:b.justifyOffset=0;}b.lineWidths=tt;var St=T.a,At,lt;it=St.length;var Mt,Lt,wt=[];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,tt=this.finalE,Z=this.data.sh;if(Z===2)tt===$?V=N>=tt?1:0:V=b(0,w(.5/(tt-$)+(N-$)/(tt-$),1)),V=R(V);else if(Z===3)tt===$?V=N>=tt?0:1:V=1-b(0,w(.5/(tt-$)+(N-$)/(tt-$),1)),V=R(V);else if(Z===4)tt===$?V=0:(V=b(0,w(.5/(tt-$)+(N-$)/(tt-$),1)),V<.5?V*=2:V=1-2*(V-.5)),V=R(V);else if(Z===5){if(tt===$)V=0;else {var st=tt-$;N=w(b(0,N+.5-$),tt-$);var pt=-st/2+N,it=st/2;V=Math.sqrt(1-pt*pt/(it*it));}V=R(V);}else Z===6?(tt===$?V=0:(N=w(b(0,N+.5-$),tt-$),V=(1+Math.cos(Math.PI+Math.PI*2*N/(tt-$)))/2),V=R(V)):(N>=T($)&&(N-$<0?V=b(0,w(w(tt,1)-($-N),1)):V=b(0,w(tt-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;}},v([Ze],z);function j(N,h,x){return new z(N,h)}return {getTextSelectorProp:j}}();function Pi(b,w,T){var z={propType:!1},j=fe.getProp,N=w.a;this.a={r:N.r?j(b,N.r,0,ct,T):z,rx:N.rx?j(b,N.rx,0,ct,T):z,ry:N.ry?j(b,N.ry,0,ct,T):z,sk:N.sk?j(b,N.sk,0,ct,T):z,sa:N.sa?j(b,N.sa,0,ct,T):z,s:N.s?j(b,N.s,1,.01,T):z,a:N.a?j(b,N.a,1,0,T):z,o:N.o?j(b,N.o,0,.01,T):z,p:N.p?j(b,N.p,1,0,T):z,sw:N.sw?j(b,N.sw,0,0,T):z,sc:N.sc?j(b,N.sc,1,0,T):z,fc:N.fc?j(b,N.fc,1,0,T):z,fh:N.fh?j(b,N.fh,0,0,T):z,fs:N.fs?j(b,N.fs,0,.01,T):z,fb:N.fb?j(b,N.fb,0,.01,T):z,t:N.t?j(b,N.t,0,0,T):z},this.s=br.getTextSelectorProp(b,w.s,T),this.s.t=w.s.t;}function ws(b,w,T){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=b,this._renderType=w,this._elem=T,this._animatorsData=d(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(T);}ws.prototype.searchProperties=function(){var b,w=this._textData.a.length,T,z=fe.getProp;for(b=0;b=Z+Ji||!G?(yt=(Z+Ji-pt)/st.partialLength,gt=X.point[0]+(st.point[0]-X.point[0])*yt,Ft=X.point[1]+(st.point[1]-X.point[1])*yt,N.translate(-T[0]*$[R].an*.005,-(T[1]*Vt)*.01),it=!1):G&&(pt+=st.partialLength,J+=1,J>=G.length&&(J=0,W+=1,at[W]?G=at[W].points:kt.v.c?(J=0,W=0,G=at[W].points):(pt-=st.partialLength,G=null)),G&&(X=st,st=G[J],ht=st.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;ltb?this.textSpans[b].span:Wt(x?"g":"text"),W<=b){if(S.setAttribute("stroke-linecap","butt"),S.setAttribute("stroke-linejoin","round"),S.setAttribute("stroke-miterlimit","4"),this.textSpans[b].span=S,x){var G=Wt("g");S.appendChild(G),this.textSpans[b].childSpan=G;}this.textSpans[b].span=S,this.layerElement.appendChild(S);}S.style.display="inherit";}if(M.reset(),V&&(h[b].n&&($=-st,tt+=T.yOffset,tt+=Z?1:0,Z=!1),this.applyTextPropertiesToMatrix(T,M,h[b].line,$,tt),$+=h[b].l||0,$+=st),x){X=this.globalData.fontManager.getCharData(T.finalText[b],z.fStyle,this.globalData.fontManager.getFontByName(T.f).fFamily);var at;if(X.t===1)at=new E(X.data,this.globalData,this);else {var ht=ia;X.data&&X.data.shapes&&(ht=this.buildShapeData(X.data,T.finalSize)),at=new Oe(ht,this.globalData,this);}if(this.textSpans[b].glyph){var Q=this.textSpans[b].glyph;this.textSpans[b].childSpan.removeChild(Q.layerElement),Q.destroy();}this.textSpans[b].glyph=at,at._debug=!0,at.prepareFrame(0),at.renderFrame(),this.textSpans[b].childSpan.appendChild(at.layerElement),X.t===1&&this.textSpans[b].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[b].val,S.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}V&&S&&S.setAttribute("d",R);}for(;b=0;w-=1)(this.completeLayers||this.elements[w])&&this.elements[w].prepareFrame(b-this.layers[w].st);if(this.globalData._mdf)for(w=0;w=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 b,w=this.layers.length;for(b=0;b0&&S<1&&j[$].push(this.calculateF(S,b,w,T,z,$))):(M=h*h-4*x*N,M>=0&&(R=(-h+A(M))/(2*N),R>0&&R<1&&j[$].push(this.calculateF(R,b,w,T,z,$)),V=(-h-A(M))/(2*N),V>0&&V<1&&j[$].push(this.calculateF(V,b,w,T,z,$)))));this.shapeBoundingBox.left=H.apply(null,j[0]),this.shapeBoundingBox.top=H.apply(null,j[1]),this.shapeBoundingBox.right=B.apply(null,j[0]),this.shapeBoundingBox.bottom=B.apply(null,j[1]);},xt.prototype.calculateF=function(b,w,T,z,j,N){return P(1-b,3)*w[N]+3*P(1-b,2)*b*T[N]+3*(1-b)*P(b,2)*z[N]+P(b,3)*j[N]},xt.prototype.calculateBoundingBox=function(b,w){var T,z=b.length;for(T=0;TT&&(T=j);}T*=b.mult;}else T=b.v*b.mult;w.x-=T,w.xMax+=T,w.y-=T,w.yMax+=T;},xt.prototype.currentBoxContains=function(b){return this.currentBBox.x<=b.x&&this.currentBBox.y<=b.y&&this.currentBBox.width+this.currentBBox.x>=b.x+b.width&&this.currentBBox.height+this.currentBBox.y>=b.y+b.height},xt.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var b=this.tempBoundingBox,w=999999;if(b.x=w,b.xMax=-w,b.y=w,b.yMax=-w,this.calculateBoundingBox(this.itemsData,b),b.width=b.xMax=0;w-=1){var z=this.hierarchy[w].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 j;this.p?j=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:j=[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(j[0],2)+Math.pow(j[1],2)+Math.pow(j[2],2)),h=[j[0]/N,j[1]/N,j[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,$,tt;for(w=0;w=b)return this.threeDElements[w].perspectiveElem;w+=1;}return null},Rt.prototype.createThreeDContainer=function(b,w){var T=g("div"),z,j;mt(T);var N=g("div");if(mt(N),w==="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,j=N.style;var x="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";j.transform=x,j.webkitTransform=x;}T.appendChild(N);var S={container:N,perspectiveElem:T,startPos:b,endPos:b,type:w};return this.threeDElements.push(S),S},Rt.prototype.build3dContainers=function(){var b,w=this.layers.length,T,z="";for(b=0;b=0;b-=1)this.resizerElem.appendChild(this.threeDElements[b].perspectiveElem);},Rt.prototype.addTo3dContainer=function(b,w){for(var T=0,z=this.threeDElements.length;TT?(j=b/this.globalData.compSize.w,N=b/this.globalData.compSize.w,h=0,x=(w-this.globalData.compSize.h*(b/this.globalData.compSize.w))/2):(j=w/this.globalData.compSize.h,N=w/this.globalData.compSize.h,h=(b-this.globalData.compSize.w*(w/this.globalData.compSize.h))/2,x=0);var S=this.resizerElem.style;S.webkitTransform="matrix3d("+j+",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 b=this.globalData.compSize.w,w=this.globalData.compSize.h,T,z=this.threeDElements.length;for(T=0;TOy});var Ry,Oy,yc=Pr(()=>{ys();Ry=me((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(f){i({data:f});}},a={postMessage:function(f){s.onmessage({data:f});}};function n(f){if(window.Worker&&window.Blob&&getWebWorker()){var _=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),m=URL.createObjectURL(_);return new Worker(m)}return i=f,s}function l(){r||(r=n(function(f){function _(){function d(et,bt){var D,O,k=et.length,L,K,U,qt;for(O=0;O=0;bt-=1)if(et[bt].ty==="sh")if(et[bt].ks.k.i)P(et[bt].ks.k);else for(k=et[bt].ks.k.length,O=0;OD[0]?!0:D[0]>et[0]?!1:et[1]>D[1]?!0:D[1]>et[1]?!1:et[2]>D[2]?!0:D[2]>et[2]?!1:null}var F=function(){var et=[4,4,14];function bt(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)),c+=1;}.bind(this),50);}function a(u){var c=r(u,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",c),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var P={img:y,assetData:u};return P}function n(u){var c=r(u,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=c;var P={img:y,assetData:u};return P}function l(u){var c={assetData:u},y=r(u,this.assetsPath,this.path);return dataManager.loadData(y,function(P){c.img=P,this._footageLoaded();}.bind(this),function(){c.img={},this._footageLoaded();}.bind(this)),c}function o(u,c){this.imagesLoadedCb=c;var y,P=u.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 H(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=H:y=H;while(Math.abs(B)>a&&++nt=s?C(c,ct,y,P):ut===0?ct:d(c,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:l,release:o};function l(){var p;return r?(r-=1,p=a[r]):p=e(),p}function o(p){r===s&&(a=pooling.double(a),s*=2),i&&i(p),a[r]=p,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&&c<.001}function i(f,_,m,d,C,u,c,y,P){if(m===0&&u===0&&P===0)return e(f,_,d,C,c,y);var A=t.sqrt(t.pow(d-f,2)+t.pow(C-_,2)+t.pow(u-m,2)),F=t.sqrt(t.pow(c-f,2)+t.pow(y-_,2)+t.pow(P-m,2)),B=t.sqrt(t.pow(c-d,2)+t.pow(y-C,2)+t.pow(P-u,2)),H;return A>F?A>B?H=A-F-B:H=B-F-A:B>F?H=B-F-A:H=F-A-B,H>-1e-4&&H<1e-4}var r=function(){return function(f,_,m,d){var C=getDefaultCurveSegments(),u,c,y,P,A,F=0,B,H=[],nt=[],ct=bezierLengthPool.newElement();for(y=m.length,u=0;uc?-1:1,A=!0;A;)if(d[u]<=c&&d[u+1]>c?(y=(c-d[u])/(d[u+1]-d[u]),A=!1):u+=P,u<0||u>=C-1){if(u===C-1)return m[u];A=!1;}return m[u]+(m[u+1]-m[u])*y}function p(f,_,m,d,C,u){var c=o(C,u),y=1-c,P=t.round((y*y*y*f[0]+(c*y*y+y*c*y+y*y*c)*m[0]+(c*c*y+y*c*c+c*y*c)*d[0]+c*c*c*_[0])*1e3)/1e3,A=t.round((y*y*y*f[1]+(c*y*y+y*c*y+y*y*c)*m[1]+(c*c*y+y*c*c+c*y*c)*d[1]+c*c*c*_[1])*1e3)/1e3;return [P,A]}var g=createTypedArray("float32",8);function v(f,_,m,d,C,u,c){C<0?C=0:C>1&&(C=1);var y=o(C,c);u=u>1?1:u;var P=o(u,c),A,F=f.length,B=1-y,H=1-P,nt=B*B*B,ct=y*B*B*3,ut=y*y*B*3,mt=y*y*y,_t=B*B*H,et=y*B*H+B*y*H+B*B*P,bt=y*y*H+B*y*P+y*B*P,D=y*y*P,O=B*H*H,k=y*H*H+B*P*H+B*H*P,L=y*P*H+B*P*P+y*H*P,K=y*P*P,U=H*H*H,qt=P*H*H+H*P*H+H*H*P,It=P*P*H+H*P*P+P*H*P,Gt=P*P*P;for(A=0;A=p.t-i){o.h&&(o=p),s=0;break}if(p.t-i>t){s=a;break}a=u||t=u?P.points.length-1:0;for(f=P.points[A].point.length,v=0;v=H&&F=u)r[0]=y[0],r[1]=y[1],r[2]=y[2];else if(t<=c)r[0]=o.s[0],r[1]=o.s[1],r[2]=o.s[2];else {var et=createQuaternion(o.s),bt=createQuaternion(y),D=(t-c)/(u-c);quaternionToEuler(r,slerp(et,bt,D));}else for(a=0;a=u?_=1:t1e-6?(f=Math.acos(_),m=Math.sin(f),d=Math.sin((1-i)*f)/m,C=Math.sin(i*f)/m):(d=1-i,C=i),r[0]=d*s+C*o,r[1]=d*a+C*p,r[2]=d*n+C*g,r[3]=d*l+C*v,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),l=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]=l/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),l=Math.sin(e/2),o=Math.sin(i/2),p=Math.sin(r/2),g=s*a*n-l*o*p,v=l*o*n+s*a*p,f=l*a*n+s*o*p,_=s*o*n-l*a*p;return [v,f,_,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,l){this.setXYAt(t,e,"v",n,l),this.setXYAt(i,r,"o",n,l),this.setXYAt(s,a,"i",n,l);},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,l;for(l=s;l=et[et.length-1].t-this.offsetTime)A=et[et.length-1].s?et[et.length-1].s[0]:et[et.length-2].e[0],B=!0;else {for(var bt=P,D=et.length-1,O=!0,k,L,K;O&&(k=et[bt],L=et[bt+1],!(L.t-this.offsetTime>u));)bt=L.t-this.offsetTime)mt=1;else if(uy&&u>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]),qt=D(k[5]),It=D(k[12]),Gt=D(k[13]);return "matrix("+L+","+K+","+U+","+qt+","+It+","+Gt+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=n,this.rotateY=l,this.rotateZ=o,this.skew=g,this.skewFromAxis=v,this.shear=p,this.scale=f,this.setTransform=_,this.translate=m,this.transform=d,this.multiply=C,this.applyToPoint=A,this.applyToX=F,this.applyToY=B,this.applyToZ=H,this.applyToPointArray=_t,this.applyToTriplePoints=mt,this.applyToPointStringified=et,this.toCSS=bt,this.to2dCSS=O,this.clone=y,this.cloneFromProps=P,this.equals=c,this.inversePoints=ut,this.inversePoint=ct,this.getInverseMatrix=nt,this._t=this.transform,this.isIdentity=u,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=[],l,o=a.length,p;for(l=0;lr+i)){var g,v;p.s*s<=r?g=0:g=(p.s*s-r)/i,p.e*s>=r+i?v=1:v=(p.e*s-r)/i,n.push([g,v]);}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,l=this.shapes.length,o,p,g,v,f,_=0;if(i===e)for(n=0;n=0;n-=1)if(d=this.shapes[n],d.shape._mdf){for(C=d.localShapeCollection,C.releaseShapes(),this.m===2&&l>1?(P=this.calculateShapeEdges(e,i,d.totalShapeLength,y,_),y+=d.totalShapeLength):P=[[u,c]],p=P.length,o=0;o=1?m.push({s:d.totalShapeLength*(u-1),e:d.totalShapeLength*(c-1)}):(m.push({s:d.totalShapeLength*u,e:d.totalShapeLength}),m.push({s:0,e:d.totalShapeLength*(c-1)}));var A=this.addShapes(d,m[0]);if(m[0].s!==m[0].e){if(m.length>1){var F=d.shape.paths.shapes[d.shape.paths._length-1];if(F.c){var B=A.pop();this.addPaths(A,C),A=this.addShapes(d,m[1],B);}else this.addPaths(A,C),A=this.addShapes(d,m[1]);}this.addPaths(A,C);}}d.shape.paths=C;}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;ie.e){i.c=!1;break}else e.s<=p&&e.e>=p+g.addedLength?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[l],s[a].v[l],i,v,C),C=!1):(_=bez.getNewSegment(s[a].v[l-1],s[a].v[l],s[a].o[l-1],s[a].i[l],(e.s-p)/g.addedLength,(e.e-p)/g.addedLength,f[l-1]),this.addSegmentFromArray(_,i,v,C),C=!1,i.c=!1),p+=g.addedLength,v+=1;if(s[a].c&&f.length){if(g=f[l-1],p<=e.e){var u=f[l-1].addedLength;e.s<=p&&e.e>=p+u?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[0],s[a].v[0],i,v,C),C=!1):(_=bez.getNewSegment(s[a].v[l-1],s[a].v[0],s[a].o[l-1],s[a].i[0],(e.s-p)/u,(e.e-p)/u,f[l-1]),this.addSegmentFromArray(_,i,v,C),C=!1,i.c=!1);}else i.c=!1;p+=g.addedLength,v+=1;}if(i._length&&(i.setXYAt(i.v[d][0],i.v[d][1],"i",d),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),p>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/p,0),v=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/p,0)):(g=this.p.pv,v=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/p,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){g=[],v=[];var f=this.px,_=this.py;f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t?(g[0]=f.getValueAtTime((f.keyframes[0].t+.01)/p,0),g[1]=_.getValueAtTime((_.keyframes[0].t+.01)/p,0),v[0]=f.getValueAtTime(f.keyframes[0].t/p,0),v[1]=_.getValueAtTime(_.keyframes[0].t/p,0)):f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t?(g[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/p,0),g[1]=_.getValueAtTime(_.keyframes[_.keyframes.length-1].t/p,0),v[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/p,0),v[1]=_.getValueAtTime((_.keyframes[_.keyframes.length-1].t-.01)/p,0)):(g=[f.pv,_.pv],v[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/p,f.offsetTime),v[1]=_.getValueAtTime((_._caching.lastFrame+_.offsetTime-.01)/p,_.offsetTime));}else v=t,g=v;this.v.rotate(-Math.atan2(g[1]-v[1],g[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 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,p,g){if(this.elem=o,this.frameId=-1,this.propType="transform",this.data=p,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(g||o),p.p&&p.p.s?(this.px=PropertyFactory.getProp(o,p.p.x,0,0,this),this.py=PropertyFactory.getProp(o,p.p.y,0,0,this),p.p.z&&(this.pz=PropertyFactory.getProp(o,p.p.z,0,0,this))):this.p=PropertyFactory.getProp(o,p.p||{k:[0,0,0]},1,0,this),p.rx){if(this.rx=PropertyFactory.getProp(o,p.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(o,p.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(o,p.rz,0,degToRads,this),p.or.k[0].ti){var v,f=p.or.k.length;for(v=0;v0;)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(f):Math.ceil(f),d=this.pMatrix.props,C=this.rMatrix.props,u=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var c=0;if(f>0){for(;cm;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),c-=1;_&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-_,!0),c-=_);}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)),c!==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(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(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]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),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 l=t.point(a[n])[e];lr&&(r=l);}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),l=splitData(e);intersectsImpl(n[0],l[0],i+1,r,s,a),intersectsImpl(n[0],l[1],i+1,r,s,a),intersectsImpl(n[1],l[0],i+1,r,s,a),intersectsImpl(n[1],l[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],l=[r[0],r[1],1],o=crossProduct(crossProduct(s,a),crossProduct(n,l));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 l=i-Math.PI/2,o=i+Math.PI/2,p=e[0]+Math.cos(i)*r*s,g=e[1]-Math.sin(i)*r*s;t.setTripleAt(p,g,p+Math.cos(l)*a,g-Math.sin(l)*a,p+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 l=getProjectingAngle(e,i),o=e.v[i%e._length],p=e.v[i===0?e._length-1:i-1],g=e.v[(i+1)%e._length],v=a===2?Math.sqrt(Math.pow(o[0]-p[0],2)+Math.pow(o[1]-p[1],2)):0,f=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],l,n,r,f/((s+1)*2),v/((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 l=(i[1]-i[0])/(1-i[0]);return a=a[1].split(l),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,l,o,p=[];for(n=0;n=0;n-=1)o=PolynomialBezier.shapeSegmentInverted(t,n),p.push(offsetSegmentSplit(o,e));p=pruneIntersections(p);var g=null,v=null;for(n=0;n0&&(qt=!1),qt){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 v.indexOf(k)!==-1}function B(D){return D===o}function H(D){return D===l}function nt(D){var O=A(D);return O>=p&&O<=g}function ct(D){return nt(D.substr(0,2))&&nt(D.substr(2,2))}function ut(D){return i.indexOf(D)!==-1}function mt(D,O){var k=A(D.substr(O,2));if(k!==r)return !1;var L=0;for(O+=2;L<5;){if(k=A(D.substr(O,2)),kn)return !1;L+=1,O+=2;}return A(D.substr(O,2))===s}function _t(){this.isLoaded=!0;}var et=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);};et.isModifier=F,et.isZeroWidthJoiner=B,et.isFlagEmoji=ct,et.isRegionalCode=nt,et.isCombinedCharacter=ut,et.isRegionalFlag=mt,et.isVariationSelector=H,et.BLACK_FLAG_CODE_POINT=r;var bt={addChars:u,addFonts:C,getCharData:c,getFontByName:P,measureText:y,checkLoadedFonts:m,setIsLoaded:_t};return et.prototype=bt,et}();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",f),this.element.maskedElement.setAttribute(c,"url("+getLocationHref()+"#"+f+")"),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 l;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;)u=f.transformers[nt].mProps._mdf||u,H-=1,nt-=1;if(u)for(H=A-f.styles[y].lvl,nt=f.transformers.length-1;H>0;)B.multiply(f.transformers[nt].mProps.v),H-=1,nt-=1;}else B=t;if(F=f.sh.paths,d=F._length,u){for(C="",m=0;m=1?_t=.99:_t<=-1&&(_t=-.99);var et=ut*_t,bt=Math.cos(mt+f.a.v)*et+C[0],D=Math.sin(mt+f.a.v)*et+C[1];m.setAttribute("fx",bt),m.setAttribute("fy",D),d&&!f.g._collapsable&&(f.of.setAttribute("fx",bt),f.of.setAttribute("fy",D));}}}function g(v,f,_){var m=f.style,d=f.d;d&&(d._mdf||_)&&d.dashStr&&(m.pElem.setAttribute("stroke-dasharray",d.dashStr),m.pElem.setAttribute("stroke-dashoffset",d.dashoffset[0])),f.c&&(f.c._mdf||_)&&m.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||_)&&m.pElem.setAttribute("stroke-opacity",f.o.v),(f.w._mdf||_)&&(m.pElem.setAttribute("stroke-width",f.w.v),m.msElem&&m.msElem.setAttribute("stroke-width",f.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=[],l=!1;for(r=0;r1&&l&&this.setShapesAsAnimated(n);}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;o-=1){if(C=this.searchProcessedElement(t[o]),C?e[o]=i[C-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")C?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),f.push(e[o].style);else if(t[o].ty==="gr"){if(!C)e[o]=this.createGroupElement(t[o]);else for(v=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,l=!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,l=!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,l=0,o,p=i.m.g,g=0,v=0,f=0,_=[],m=0,d=0,C,u,c=e.getFontByName(t.f),y,P=0,A=getFontProperties(c);t.fWeight=A.weight,t.fStyle=A.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 H=!0,nt=t.sz[0],ct=t.sz[1],ut,mt;H;){mt=this.buildFinalText(t.t),ut=0,m=0,a=mt.length,F=t.tr/1e3*t.finalSize;var _t=-1;for(s=0;snt&&mt[s]!==" "?(_t===-1?a+=1:s=_t,ut+=t.finalLineHeight||t.finalSize*1.2,mt.splice(s,_t===s?1:0,"\r"),_t=-1,m=0):(m+=P,m+=F);ut+=c.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&ctd?m:d,m=-2*F,o="",n=!0,f+=1):o=bt,e.chars?(y=e.getCharData(bt,c.fStyle,e.getFontByName(t.f).fFamily),P=n?0:y.w*t.finalSize/100):P=e.measureText(o,t.f,t.finalSize),bt===" "?et+=P+F:(m+=P+F+et,et=0),r.push({l:P,an:P,add:g,n,anIndexes:[],val:o,line:f,animatorJustifyOffset:0}),p==2){if(g+=P,o===""||o===" "||s===a-1){for((o===""||o===" ")&&(g-=P);v<=s;)r[v].an=g,r[v].ind=l,r[v].extra=P,v+=1;l+=1,g=0;}}else if(p==3){if(g+=P,o===""||s===a-1){for(o===""&&(g-=P);v<=s;)r[v].an=g,r[v].ind=l,r[v].extra=P,v+=1;g=0,l+=1;}}else r[l].ind=l,r[l].extra=0,l+=1;if(t.l=r,d=m>d?m:d,_.push(m),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=d,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0;}t.lineWidths=_;var D=i.a,O,k;u=D.length;var L,K,U=[];for(C=0;C0?n=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:p=1+this.xe.v/100;var g=BezierFactory.getBezierEasing(n,l,o,p).get,v=0,f=this.finalS,_=this.finalE,m=this.data.sh;if(m===2)_===f?v=a>=_?1:0:v=t(0,e(.5/(_-f)+(a-f)/(_-f),1)),v=g(v);else if(m===3)_===f?v=a>=_?0:1:v=1-t(0,e(.5/(_-f)+(a-f)/(_-f),1)),v=g(v);else if(m===4)_===f?v=0:(v=t(0,e(.5/(_-f)+(a-f)/(_-f),1)),v<.5?v*=2:v=1-2*(v-.5)),v=g(v);else if(m===5){if(_===f)v=0;else {var d=_-f;a=e(t(0,a+.5-f),_-f);var C=-d/2+a,u=d/2;v=Math.sqrt(1-C*C/(u*u));}v=g(v);}else m===6?(_===f?v=0:(a=e(t(0,a+.5-f),_-f),v=(1+Math.cos(Math.PI+Math.PI*2*a/(_-f)))/2),v=g(v)):(a>=i(f)&&(a-f<0?v=t(0,e(e(_,1)-(f-a),1)):v=t(0,e(_-a,1))),v=g(v));if(this.sm.v!==100){var c=this.sm.v*.01;c===0&&(c=1e-8);var y=.5-c*.5;v1&&(v=1));}return v*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,l=this.o.v/n,o=this.s.v/n+l,p=this.e.v/n+l;if(o>p){var g=o;o=p,p=g;}this.finalS=o,this.finalE=p;}},extendPrototype([DynamicPropertyContainer],r);function s(a,n,l){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=m+be||!A?(nt=(m+be-C)/d.partialLength,Gt=P.point[0]+(d.point[0]-P.point[0])*nt,Ot=P.point[1]+(d.point[1]-P.point[1])*nt,a.translate(-i[0]*f[g].an*.005,-(i[1]*et)*.01),u=!1):A&&(C+=d.partialLength,c+=1,c>=A.length&&(c=0,y+=1,F[y]?A=F[y].points:ut.v.c?(c=0,y=0,A=F[y].points):(C-=d.partialLength,A=null)),A&&(P=d,d=A[c],B=d.partialLength));It=f[g].an/2-f[g].add,a.translate(-It,0,0);}else It=f[g].an/2-f[g].add,a.translate(-It,0,0),a.translate(-i[0]*f[g].an*.005,-i[1]*et*.01,0);for(k=0;kt?this.textSpans[t].span:createNS(l?"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,l){var A=createNS("g");o.appendChild(A),this.textSpans[t].childSpan=A;}this.textSpans[t].span=o,this.layerElement.appendChild(o);}o.style.display="inherit";}if(p.reset(),v&&(n[t].n&&(f=-d,_+=i.yOffset,_+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(i,p,n[t].line,f,_),f+=n[t].l||0,f+=d),l){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 H=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(H.layerElement),H.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 v&&o.setAttribute("transform","translate("+p.props[12]+","+p.props[13]+")"),o.textContent=n[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}v&&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[f].push(this.calculateF(o,t,e,i,r,f))):(p=n*n-4*l*a,p>=0&&(g=(-n+bmSqrt(p))/(2*a),g>0&&g<1&&s[f].push(this.calculateF(g,t,e,i,r,f)),v=(-n-bmSqrt(p))/(2*a),v>0&&v<1&&s[f].push(this.calculateF(v,t,e,i,r,f)))));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],l=Math.sqrt(n[2]*n[2]+n[0]*n[0]),o=Math.atan2(n[1],l),p=Math.atan2(n[0],-n[2]);this.mat.rotateY(p).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 v,f,_;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 l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=l,s.webkitTransform=l;}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,l=(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,l=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+n+","+l+",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=p;)ct/=2,ut/=2,mt>>>=1;return (ct+mt)/ut};return nt.int32=function(){return H.g(4)|0},nt.quick=function(){return H.g(4)/4294967296},nt.double=nt,C(c(H.S),t),(P.pass||A||function(ct,ut,mt,_t){return _t&&(_t.S&&m(_t,H),ct.state=function(){return m(H,{})}),mt?(e[n]=ct,ut):ct})(nt,B,"global"in P?P.global:this==e,P.state)}e["seed"+n]=f;function _(y){var P,A=y.length,F=this,B=0,H=F.i=F.j=0,nt=F.S=[];for(A||(y=[A++]);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?p/(2-s-a):p/(s+a),s){case e:n=(i-r)/p+(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 l=r<.5?r*(1+i):r+i-r*i,o=2*r-l;s=hue2rgb(o,l,e+1/3),a=hue2rgb(o,l,e),n=hue2rgb(o,l,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 l,o=r.length,p=createTypedArray("float32",o);for(l=0;l1){for(s=0;s1?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){var l,o=s.length,p=createTypedArray("float32",o);for(l=0;ldata.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;iC.length-1)&&(_=C.length-1),y=C[C.length-1-_].t,c=u-y);var P,A,F;if(f==="pingpong"){var B=Math.floor((d-y)/c);if(B%2!==0)return this.getValueAtTime((c-(d-y)%c+y)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var H=this.getValueAtTime(y/this.comp.globalData.frameRate,0),nt=this.getValueAtTime(u/this.comp.globalData.frameRate,0),ct=this.getValueAtTime(((d-y)%c+y)/this.comp.globalData.frameRate,0),ut=Math.floor((d-y)/c);if(this.pv.length){for(F=new Array(H.length),A=F.length,P=0;P=u)return this.pv;var c,y;m?(_?c=Math.abs(this.elem.comp.globalData.frameRate*_):c=Math.max(0,this.elem.data.op-u),y=u+c):((!_||_>C.length-1)&&(_=C.length-1),y=C[_].t,c=y-u);var P,A,F;if(f==="pingpong"){var B=Math.floor((u-d)/c);if(B%2===0)return this.getValueAtTime(((u-d)%c+u)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var H=this.getValueAtTime(u/this.comp.globalData.frameRate,0),nt=this.getValueAtTime(y/this.comp.globalData.frameRate,0),ct=this.getValueAtTime((c-(u-d)%c+u)/this.comp.globalData.frameRate,0),ut=Math.floor((u-d)/c)+1;if(this.pv.length){for(F=new Array(H.length),A=F.length,P=0;P1?(C-d)/(_-1):1,c=0,y=0,P;this.pv.length?P=createTypedArray("float32",this.pv.length):P=0;for(var A;c<_;){if(A=this.getValueAtTime(d+c*u),this.pv.length)for(y=0;yu){var F=c,B=m.c&&c===y-1?0:c+1,H=(u-P)/C[c].addedLength;A=bez.getPointInSegment(m.v[F],m.v[B],m.o[F],m.i[B],H,C[c]);break}else P+=C[c].addedLength;c+=1;}return A||(A=m.c?[m.v[0][0],m.v[0][1]]:[m.v[m._length-1][0],m.v[m._length-1][1]]),A},vectorOnPath:function(f,_,m){f==1?f=this.v.c:f==0&&(f=.999);var d=this.pointOnPath(f,_),C=this.pointOnPath(f+.001,_),u=C[0]-d[0],c=C[1]-d[1],y=Math.sqrt(Math.pow(u,2)+Math.pow(c,2));if(y===0)return [0,0];var P=m==="tangent"?[u/y,c/y]:[-c/y,u/y];return P},tangentOnPath:function(f,_){return this.vectorOnPath(f,_,"tangent")},normalOnPath:function(f,_){return this.vectorOnPath(f,_,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([g],o),extendPrototype([g],p),p.prototype.getValueAtTime=l,p.prototype.initiateExpression=ExpressionManager.initiateExpression;var v=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,_,m,d,C){var u=v(f,_,m,d,C);return u.propertyIndex=_.ix,u.lock=!1,m===3?expressionHelpers.searchExpressions(f,_.pt,u):m===4&&expressionHelpers.searchExpressions(f,_.ks,u),u.k&&f.addDynamicProperty(u),u};}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=p?v=m<0?r:s:v=r+_*Math.pow((l-t)/m,1/i),g[f]=v,f+=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 l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",r+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,t.appendChild(l);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 p=createNS("feFlood");p.setAttribute("flood-color","#00ff00"),p.setAttribute("flood-opacity","1"),p.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=p,t.appendChild(p);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 v=this.createMergeNode(r,[r+"_drop_shadow_4",s]);t.appendChild(v);}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{fo();Wo();wo();Mo();en();By={name:"@dotlottie/common",version:"0.6.0",type:"module",description:"",author:"Afsal , Sam Osborne ",license:"MIT",private:!0,engines:{node:">18.0.0"},module:"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.5.2","@lottiefiles/relottie":"1.0.0","@lottiefiles/relottie-style":"0.4.1","@preact/signals-core":"^1.2.3","lottie-web":"^5.12.2",xstate:"^4.38.1"},devDependencies:{"@lottiefiles/lottie-types":"^1.2.0",tsup:"^6.1.3",typescript:"^4.7.4"},publishConfig:{access:"restricted"}},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||{}),Ea=(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))(Ea||{}),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:""},Jo={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},Xo=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 Af(Jo);_light=!1;_worker=!1;_dotLottieLoader=new ip;_activeStateId;_inInteractiveMode=!1;_scrollTicking=!1;_scrollCallback=void 0;_onShowIntersectionObserver=void 0;_visibilityPercentage=0;_stateMachineManager;constructor(t,e,i){this._src=structuredClone(t),i?.testId&&(this._testId=i.testId),this._defaultTheme=i?.defaultTheme||"",this._userPlaybackOptions=this._validatePlaybackOptions(i||{}),typeof i?.activeAnimationId=="string"&&(this._activeAnimationId=i.activeAnimationId),this._container=e||null,typeof i?.background=="string"&&this.setBackground(i.background),typeof 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?.light&&(this._light=i.light),i?.worker&&(this._worker=i.worker),this._listenToHover(),this._listenToVisibilityChange();}_listenToHover(){let t=()=>{this._hover&&this.currentState!=="playing"&&this.play();},e=()=>{this._hover&&this.currentState==="playing"&&this.stop();};this._container?.removeEventListener("mouseenter",t),this._container?.removeEventListener("mouseleave",e),this._container?.addEventListener("mouseleave",e),this._container?.addEventListener("mouseenter",t);}_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){if(typeof this._userPlaybackOptions[t]<"u")return this._userPlaybackOptions[t];let e=this._dotLottieLoader.manifest?.animations.find(i=>i.id===this._currentAnimationId);return e&&typeof e[t]<"u"?e[t]:Gr[t]}_getPlaybackOptions(){let t={};for(let e in Gr)typeof Gr[e]<"u"&&(t[e]=this._getOption(e));return t}_setPlayerState(t){let e=t(this._getPlaybackOptions());try{yh.parse(e);}catch{Ci(`Invalid PlaybackOptions, ${JSON.stringify(e,null,2)}`);return}typeof e.defaultTheme<"u"&&(this._defaultTheme=e.defaultTheme),typeof e.playMode<"u"&&(this._mode=e.playMode),typeof e.intermission<"u"&&(this._intermission=e.intermission),typeof e.hover<"u"&&(this._hover=e.hover),typeof e.loop<"u"&&(this.clearCountTimer(),this._loop=e.loop,this._counter=0,this._lottie?.setLoop(typeof e.loop=="number"?!0:e.loop)),typeof e.speed<"u"&&this._lottie?.setSpeed(e.speed),typeof e.autoplay<"u"&&this._lottie&&(this._lottie.autoplay=e.autoplay),typeof e.direction<"u"&&this._lottie?.setDirection(e.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});}get currentState(){return this._currentState}clearCountTimer(){this._counterInterval&&clearInterval(this._counterInterval);}setCurrentState(t){this._currentState=t,this._notify(),this._updateTestData();}static isPathJSON(t){return t.split(".").pop()?.toLowerCase()==="json"}get src(){return this._src}updateSrc(t){this._src!==t&&(this._src=structuredClone(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)){Ci("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)){Ci("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)){Ci("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??[0,this.totalFrames-1],[a,n]=e??[0,1];if(!this._areNumbersInRange(a,n)){Hs("threshold values must be between 0 and 1");return}if(this.container){let{height:l,top:o}=this.container.getBoundingClientRect(),p=window.innerHeight-o,g=window.innerHeight+l,v=p/g,f=r+Math.round((v-a)/(n-a)*(s-r));i&&i(v),this.goToAndStop(f,!0),(f>=s||v>=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?.segments,t?.threshold,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?.threshold?t.threshold:[0,1]},i=r=>{r.forEach(s=>{this._visibilityPercentage=s.intersectionRatio*100,s.isIntersecting?(t?.callbackOnIntersect&&t.callbackOnIntersect(this._visibilityPercentage),this._container?.dispatchEvent(new Event("visibilityChange"))):t?.callbackOnIntersect&&(t.callbackOnIntersect(0),this._container?.dispatchEvent(new Event("visibilityChange")));});};this._onShowIntersectionObserver=new IntersectionObserver(i,e),this._onShowIntersectionObserver.observe(this.container);}playOnShow(t){if(this.stop(),!this.container)throw Ke("Can't play on show, player container element not available.");this._onShowIntersectionObserver&&this.stopPlayOnShow(),this.addIntersectionObserver({threshold:t?.threshold??[],callbackOnIntersect:e=>{e===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(){if(!this._dotLottieLoader.manifest?.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){if(["initial","loading"].includes(this._currentState)){Ci("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 i=this._dotLottieLoader.manifest?.animations[t];if(!i)throw Ke("animation not found.");typeof e=="function"?await this.render({id:i.id,...e(this._getPlaybackOptions(),this._getOptionsFromAnimation(i))}):await this.render({id:i.id});}if(typeof t=="string"){let i=this._dotLottieLoader.manifest?.animations.find(r=>r.id===t);if(!i)throw Ke("animation not found.");typeof e=="function"?await this.render({id:i.id,...e(this._getPlaybackOptions(),this._getOptionsFromAnimation(i))}):await this.render({id:i.id});}}playSegments(t,e){if(!this._lottie||["loading"].includes(this._currentState)){Ci("playSegments() Can't use whilst loading.");return}this._lottie.playSegments(t,e),this.setCurrentState("playing");}resetSegments(t){if(!this._lottie||["loading"].includes(this._currentState)){Ci("resetSegments() Can't use whilst loading.");return}this._lottie.resetSegments(t);}togglePlay(){this.currentState==="playing"?this.pause():this.play();}_getAnimationByIdOrIndex(t){if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),typeof t=="number"){let e=this._dotLottieLoader.manifest?.animations[t];if(!e)throw Ke("animation not found.");return e}if(typeof t=="string"){let e=this._dotLottieLoader.manifest?.animations.find(i=>i.id===t);if(!e)throw Ke("animation not found.");return e}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){Hs("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 ic(Array.from(this._dotLottieLoader.stateMachinesMap.values()),this)),this._stateMachineManager.start(t);}enterInteractiveMode(t){if(t)this._inInteractiveMode||(this._prevUserPlaybackOptions={...this._userPlaybackOptions}),this._inInteractiveMode&&this._stateMachineManager?.stop(),this._activeStateId=t,this._inInteractiveMode=!0,this._startInteractivity(t);else throw Ke("stateId must be a non-empty string.")}exitInteractiveMode(){this._inInteractiveMode&&(this._inInteractiveMode=!1,this._activeStateId="",this._stateMachineManager?.stop(),this._userPlaybackOptions={},this._userPlaybackOptions={...this._prevUserPlaybackOptions},this._prevUserPlaybackOptions={},this.reset());}reset(){let t=this._getActiveAnimationId(),e=this._dotLottieLoader.manifest?.animations.find(i=>i.id===t);if(this._inInteractiveMode&&this.exitInteractiveMode(),!e)throw Ke("animation not found.");this.play(t);}previous(t){if(!this._dotLottieLoader.manifest||!this._dotLottieLoader.manifest.animations.length)throw Ke("manifest not found.");if(this._inInteractiveMode){Ci("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){Ci("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)){Ci("resize() Can't use whilst loading.");return}this._lottie.resize();}stop(){if(!this._lottie||["loading"].includes(this._currentState)){Ci("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)){Ci("pause() Can't use whilst loading.");return}this.clearCountTimer(),this._lottie.pause(),this.setCurrentState("paused");}freeze(){if(!this._lottie||["loading"].includes(this._currentState)){Ci("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)){Ci("unfreeze() Can't use whilst loading.");return}this._stateBeforeFreeze==="playing"?this.play():this.pause();}destroy(){this._container?.__lottie&&(this._container.__lottie.destroy(),this._container.__lottie=null),this.clearCountTimer(),typeof document<"u"&&document.removeEventListener("visibilitychange",()=>this._onVisibilityChange()),this._counter=0,this._lottie?.destroy();}getAnimationInstance(){return this._lottie}static getLottieWebVersion(){return `${By.dependencies["lottie-web"]}`}addEventListener(t,e){this._listeners.has(t)||this._listeners.set(t,new Set),this._listeners.get(t)?.add(e);try{t==="complete"?this._container?.addEventListener(t,e):this._lottie?.addEventListener(t,e);}catch(i){Hs(`addEventListener ${i}`);}}getState(){return {autoplay:this._lottie?.autoplay??!1,currentState:this._currentState,frame:this._frame,visibilityPercentage:this._visibilityPercentage,seeker:this._seeker,direction:this._lottie?.playDirection??1,hover:this._hover,loop:this._loop||!1,playMode:this._mode,speed:this._lottie?.playSpeed??1,background:this._background,intermission:this._intermission,defaultTheme:this._defaultTheme,currentAnimationId:this._currentAnimationId,activeStateId:this._activeStateId??""}}_notify(){this.state.setState(this.getState());}get totalFrames(){return this._lottie?.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(){return this._lottie?.playSpeed||1}setSpeed(t){this._requireValidSpeed(t),this._setPlayerState(()=>({speed:t})),this._userPlaybackOptions.speed=t;}get autoplay(){return this._lottie?.autoplay??!1}setAutoplay(t){if(this._requireValidAutoplay(t),!this._lottie||["loading"].includes(this._currentState)){Ci("setAutoplay() Can't use whilst loading.");return}this._setPlayerState(()=>({autoplay:t})),this._userPlaybackOptions.autoplay=t;}toggleAutoplay(){if(!this._lottie||["loading"].includes(this._currentState)){Ci("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)){Ci("toggleLoop() Can't use whilst loading.");return}this.setLoop(!this._loop);}get background(){return this._background}setBackground(t){this._requireValidBackground(t),this._container&&(this._background=t,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){let e;!Array.isArray(t)||t.length===0?e=["autoplay","defaultTheme","direction","hover","intermission","loop","playMode","speed","activeAnimationId"]:e=t;let i=!1;if(e.includes("activeAnimationId")){let r=this._dotLottieLoader.manifest?.activeAnimationId,s=this._getAnimationByIdOrIndex(r||0);this._activeAnimationId=r,await this._setCurrentAnimation(s.id),i=!0;}e.forEach(r=>{switch(r){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}}),i&&this.render();}removeEventListener(t,e){try{t==="complete"?this._container?.removeEventListener(t,e):this._lottie?.removeEventListener(t,e),this._listeners.get(t)?.delete(e);}catch(i){Hs("removeEventListener",i);}}_handleAnimationComplete(){typeof this._loop=="number"&&this.stop();let t=this.direction===-1?0:this.totalFrames;this.goToAndStop(t,!0),this._counter=0,this.clearCountTimer(),this.setCurrentState("completed"),this._container?.dispatchEvent(new Event("complete"));}addEventListeners(){if(!this._lottie||["loading"].includes(this._currentState)){Ci("addEventListeners() Can't use whilst loading.");return}this._lottie.addEventListener("enterFrame",()=>{if(!this._lottie){Ci("enterFrame event : Lottie is undefined.");return}Math.floor(this._lottie.currentFrame)===0&&this.direction===-1&&(this._container?.dispatchEvent(new Event("complete")),this.loop||this.setCurrentState("completed")),this._notify();}),this._lottie.addEventListener("loopComplete",()=>{if(!this._lottie){Ci("loopComplete event : Lottie is undefined.");return}this._container?.dispatchEvent(new Event("loopComplete")),this.intermission>0&&this.pause();let t=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 t=="number"&&(t=Number(t)*-1);let e=t===-1?this._lottie.totalFrames-1:0;this.intermission?(this.goToAndPlay(e,!0),this.pause(),this._counterInterval=window.setTimeout(()=>{this._lottie&&(this._setPlayerState(()=>({direction:t})),this.goToAndPlay(e,!0));},this._intermission)):(this._setPlayerState(()=>({direction:t})),this.goToAndPlay(t===-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 t=this._lottie.playDirection;this._mode==="bounce"&&typeof t=="number"&&(t=Number(t)*-1);let e=t===-1?this.totalFrames-1:0;this._setPlayerState(()=>({direction:t})),this.goToAndPlay(e,!0);},this._intermission);}else this._handleAnimationComplete();});for(let[t,e]of this._listeners)if(t==="complete")for(let i of e)this._container?.addEventListener(t,i);else for(let i of e)this._lottie.addEventListener(t,i);}async _setCurrentAnimation(t){this._currentState="loading";let e=await this._dotLottieLoader.getAnimation(t);this._currentAnimationId=t,this._animation=e,this._currentState="ready";}async render(t){if(t?.id)await this._setCurrentAnimation(t.id);else if(!this._animation)throw Ke("no animation selected");let e=Gr.loop??!1,i=Gr.autoplay??!1,r=Gr.playMode??"normal",s=Gr.intermission??0,a=Gr.hover??!1,n=Gr.direction??1,l=Gr.speed??1,o=Gr.defaultTheme??"";e=t?.loop??this._getOption("loop"),i=t?.autoplay??this._getOption("autoplay"),r=t?.playMode??this._getOption("playMode"),s=t?.intermission??this._getOption("intermission"),a=t?.hover??this._getOption("hover"),n=t?.direction??this._getOption("direction"),l=t?.speed??this._getOption("speed"),o=t?.defaultTheme??this._getOption("defaultTheme");let p={...this._animationConfig,autoplay:a?!1:i,loop:typeof e=="number"?!0:e,renderer:this._worker?"svg":this._animationConfig.renderer??"svg"},g=await this._dotLottieLoader.getTheme(o);g&&this._animation?this._animation=await _f(this._animation,g):this._animation=await this._dotLottieLoader.getAnimation(this._currentAnimationId??"");let v=await this._getLottiePlayerInstance();if(this._activeStateId&&!this._inInteractiveMode){this.enterInteractiveMode(this._activeStateId);return}this.destroy(),this._setPlayerState(()=>({defaultTheme:o,playMode:r,intermission:s,hover:a,loop:e})),this._lottie=v.loadAnimation({...p,container:this._container,animationData:this._animation}),typeof this._lottie.resetSegments>"u"&&(this._lottie.resetSegments=()=>{this._lottie?.playSegments([0,this._lottie.totalFrames],!0);}),this.addEventListeners(),this._container&&(this._container.__lottie=this._lottie),this._setPlayerState(()=>({direction:n,speed:l})),i&&!a&&this.play(),this._updateTestData();}async _getLottiePlayerInstance(){let t=this._animationConfig.renderer??"svg",e;if(this._worker)return t!=="svg"&&Ci("Worker is only supported with svg renderer. Change or remove renderer prop to get rid of this warning."),e=await Promise.resolve().then(()=>(sc(),rc)),e.default;switch(t){case"svg":{this._light?e=await Promise.resolve().then(()=>(nc(),ac)):e=await Promise.resolve().then(()=>(hc(),oc));break}case"canvas":{this._light?e=await Promise.resolve().then(()=>(pc(),lc)):e=await Promise.resolve().then(()=>(cc(),fc));break}case"html":{this._light?e=await Promise.resolve().then(()=>(mc(),uc)):e=await Promise.resolve().then(()=>(yc(),dc));break}default:throw new Error(`Invalid renderer: ${t}`)}return e.default}_getActiveAnimationId(){let t=this._dotLottieLoader.manifest;return this._activeAnimationId??t?.activeAnimationId??t?.animations[0]?.id??void 0}async load(t){if(this._currentState==="loading"){Ci("Loading in progress..");return}try{if(this.setCurrentState("loading"),typeof this._src=="string")if(ih(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&&Hs(`Error loading animation: ${e.message}`);}}setErrorState(t){this.setCurrentState("error"),Hs(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);}};});ul();fo();Wo();wo();Mo();en();ys();var Yo=window,Zo=Yo.ShadowRoot&&(Yo.ShadyCSS===void 0||Yo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ml=Symbol(),gc=new WeakMap,Zn=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==ml)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(Zo&&e===void 0){let r=i!==void 0&&i.length===1;r&&(e=gc.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&gc.set(i,e));}return e}toString(){return this.cssText}},vc=t=>new Zn(typeof t=="string"?t:t+"",void 0,ml),dl=(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 Zn(i,t,ml)},yl=(t,e)=>{Zo?t.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{let r=document.createElement("style"),s=Yo.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=i.cssText,t.appendChild(r);});},Ko=Zo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let i="";for(let r of e.cssRules)i+=r.cssText;return vc(i)})(t):t;var gl,Qo=window,bc=Qo.trustedTypes,zy=bc?bc.emptyScript:"",xc=Qo.reactiveElementPolyfillSupport,bl={toAttribute(t,e){switch(e){case Boolean:t=t?zy: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}},Pc=(t,e)=>e!==t&&(e==e||t==t),vl={attribute:!0,type:String,converter:bl,reflect:!1,hasChanged:Pc},xl="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=vl){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)||vl}static finalize(){if(this.hasOwnProperty(xl))return !1;this[xl]=!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(Ko(s));}else e!==void 0&&i.push(Ko(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 yl(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=vl){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:bl).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),l=typeof n.converter=="function"?{fromAttribute:n.converter}:((r=n.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?n.converter:bl;this._$El=a,this[a]=l.fromAttribute(i,n.type),this._$El=null;}}requestUpdate(e,i,r){let s=!0;e!==void 0&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||Pc)(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[xl]=!0,oa.elementProperties=new Map,oa.elementStyles=[],oa.shadowRootOptions={mode:"open"},xc?.({ReactiveElement:oa}),((gl=Qo.reactiveElementVersions)!==null&&gl!==void 0?gl:Qo.reactiveElementVersions=[]).push("1.6.3");var Pl,th=window,vn=th.trustedTypes,_c=vn?vn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Sl="$lit$",Ca=`lit$${(Math.random()+"").slice(9)}$`,Tc="?"+Ca,Ny=`<${Tc}>`,Xa=document,Qn=()=>Xa.createComment(""),to=t=>t===null||typeof t!="object"&&typeof t!="function",Mc=Array.isArray,Gy=t=>Mc(t)||typeof t?.[Symbol.iterator]=="function",_l=`[ +\f\r]`,Kn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Sc=/-->/g,kc=/>/g,Ua=RegExp(`>|${_l}(?:([^\\s"'>=/]+)(${_l}*=${_l}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),Ec=/'/g,Cc=/"/g,Dc=/^(?:script|style|textarea|title)$/i,Fc=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),ri=Fc(1),Ya=Symbol.for("lit-noChange"),mr=Symbol.for("lit-nothing"),wc=new WeakMap,Ja=Xa.createTreeWalker(Xa,129,null,!1);function Ic(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return _c!==void 0?_c.createHTML(e):e}var jy=(t,e)=>{let i=t.length-1,r=[],s,a=e===2?"":"",n=Kn;for(let l=0;l"?(n=s??Kn,v=-1):g[1]===void 0?v=-2:(v=n.lastIndex-g[2].length,p=g[1],n=g[3]===void 0?Ua:g[3]==='"'?Cc:Ec):n===Cc||n===Ec?n=Ua:n===Sc||n===kc?n=Kn:(n=Ua,s=void 0);let _=n===Ua&&t[l+1].startsWith("/>")?" ":"";a+=n===Kn?o+Ny:v>=0?(r.push(p),o.slice(0,v)+Sl+o.slice(v)+Ca+_):o+Ca+(v===-2?(r.push(void 0),l):_);}return [Ic(t,a+(t[i]||"")+(e===2?"":"")),r]},Za=class{constructor({strings:e,_$litType$:i},r){let s;this.parts=[];let a=0,n=0,l=e.length-1,o=this.parts,[p,g]=jy(e,i);if(this.el=Za.createElement(p,r),Ja.currentNode=this.el.content,i===2){let v=this.el.content,f=v.firstChild;f.remove(),v.append(...f.childNodes);}for(;(s=Ja.nextNode())!==null&&o.length0){s.textContent=vn?vn.emptyScript:"";for(let _=0;_2||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=bn(this,e,i,0),n=!to(e)||e!==this._$AH&&e!==Ya,n&&(this._$AH=e);else {let l=e,o,p;for(e=a[0],o=0;o{var r,s;let a=(r=i?.renderBefore)!==null&&r!==void 0?r:e,n=a._$litPart$;if(n===void 0){let l=(s=i?.renderBefore)!==null&&s!==void 0?s:null;a._$litPart$=n=new Ka(e.insertBefore(Qn(),l),l,void 0,i??{});}return n._$AI(t),n};var Tl,Ml;var wa=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=Lc(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}};wa.finalized=!0,wa._$litElement$=!0,(Tl=globalThis.litElementHydrateSupport)===null||Tl===void 0||Tl.call(globalThis,{LitElement:wa});var Vc=globalThis.litElementPolyfillSupport;Vc?.({LitElement:wa});((Ml=globalThis.litElementVersions)!==null&&Ml!==void 0?Ml:globalThis.litElementVersions=[]).push("3.3.3");var Hy=(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);}},$y=(t,e,i)=>{e.constructor.createProperty(i,t);};function sr(t){return (e,i)=>i!==void 0?$y(t,e,i):Hy(t,e)}function Rc(t){return sr({...t,state:!0})}var Qa=({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(l){t(l,a);}),n}{let a=i.constructor;e!==void 0&&Object.defineProperty(i,r,e(r)),t?.(a,r);}};function Oc(t,e){return Qa({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 Dl;((Dl=window.HTMLSlotElement)===null||Dl===void 0?void 0:Dl.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(i=>i.nodeType===Node.ELEMENT_NODE);var Bc={name:"@dotlottie/player-component",version:"2.6.0",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:{lit:"^2.7.5"},devDependencies:{"@dotlottie/common":"workspace:^","@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:"^6.1.3",typescript:"^4.7.4",vite:"^4.3.9"},publishConfig:{access:"public"},browserslist:["> 3%"]};var zc=dl` + @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 Nc="dotlottie-player";var Xi=class extends wa{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):(Ci("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){Ci("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=new Xo(e,this.container,{rendererSettings: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(){return this._dotLottieCommonPlayer?.currentAnimationId}animationCount(){return this._dotLottieCommonPlayer&&this._dotLottieCommonPlayer.getManifest()?.animations.length||0}animations(){return this._dotLottieCommonPlayer?this._dotLottieCommonPlayer.getManifest()?.animations.map(i=>i.id)||[]:[]}currentAnimation(){return !this._dotLottieCommonPlayer||!this._dotLottieCommonPlayer.currentAnimationId?"":this._dotLottieCommonPlayer.currentAnimationId}getState(){return this._dotLottieCommonPlayer?this._dotLottieCommonPlayer.getState():Jo}getManifest(){return this._dotLottieCommonPlayer?.getManifest()}getLottie(){return this._dotLottieCommonPlayer?.getAnimationInstance()}getVersions(){return {lottieWebVersion:Xo.getLottieWebVersion(),dotLottiePlayerVersion:`${Bc.version}`}}previous(e){this._dotLottieCommonPlayer?.previous(e);}next(e){this._dotLottieCommonPlayer?.next(e);}reset(){this._dotLottieCommonPlayer?.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){this._dotLottieCommonPlayer?.setDefaultTheme(e);}themes(){return this._dotLottieCommonPlayer?this._dotLottieCommonPlayer.getManifest()?.themes?.map(i=>i.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){this._dotLottieCommonPlayer?.revertToManifestValues(e);}static get styles(){return zc}async firstUpdated(){this.container=this.shadowRoot?.querySelector("#animation"),"IntersectionObserver"in window&&(this._io=new IntersectionObserver(e=>{e[0]!==void 0&&e[0].isIntersecting?this._dotLottieCommonPlayer?.currentState===Ea.Frozen&&this.play():this._dotLottieCommonPlayer?.currentState===Ea.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(){this._io&&(this._io.disconnect(),this._io=void 0),this._dotLottieCommonPlayer?.destroy(),this._unsubscribeListeners?.(),window&&window.removeEventListener("click",e=>this._clickOutListener(e));}_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(){let e=this._dotLottieCommonPlayer?.currentState===Ea.Playing,i=this._dotLottieCommonPlayer?.currentState===Ea.Paused;return ri` +
+ ${this._hasMultipleAnimations?ri` + + `:ri``} + + ${this._hasMultipleAnimations?ri` + + `:ri``} + this._handleSeekChange(r)} + @mousedown=${()=>{this._freeze();}} + @mouseup=${()=>{this._dotLottieCommonPlayer?.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(r=>ri` +
  • + +
  • + `)} +
+
`:ri``} + ${this._styleTabIsOpen?ri`
+ + `} + +
+
+
+
    + ${this._themesForCurrentAnimation.map(r=>ri` +
  • + +
  • + `)} +
+
`:ri``} + ${this._statesTabIsOpen?ri`
+ + +
+
+
+
    + ${this._statesForCurrentAnimation.map(r=>ri` +
  • + +
  • + `)} +
+
`:ri``} +
+ `:ri``} + `}render(){let e=this.controls?"main controls":"main",i=this.controls?"animation controls":"animation";return ri` + + `}};rr([sr({type:String})],Xi.prototype,"defaultTheme",2),rr([Oc("#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([Rc()],Xi.prototype,"_seeker",2);customElements.get(Nc)||customElements.define(Nc,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: + + 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(/